From 3552f80a213ff2d8aab63192d455d2209924a8c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Wed, 1 May 2024 23:56:43 +0800 Subject: [PATCH 1/9] fix --- src/core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core b/src/core index ab09048a..0eb7205f 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit ab09048af41587f0f84c48eb6bfb9ea6806e45fa +Subproject commit 0eb7205f727149443b28ab0ae24052b26ad6aa12 From 93c646e3e4c5a9c2aade0a4f975558be8b4c9b7a Mon Sep 17 00:00:00 2001 From: linyuchen Date: Thu, 2 May 2024 01:27:37 +0800 Subject: [PATCH 2/9] Update README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ee059c6d..e6b206c1 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,8 @@ NapCatQQ 是基于NTQQ本体实现一套 Bot 框架。 可前往 Release 页面下载最新版本 +如果你想体验最新的功能,可以到 Actions 下载开发版本,但不保证其稳定性 + ### Windows 启动 运行`powershell ./napcat.ps1`, 或者 `napcat.bat`,如果出现乱码,可以尝试运行`napcat-utf8.ps1` 或 `napcat-utf8.bat` From 3b1b200f6f6b17b563268874bfd578a4294acc99 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Thu, 2 May 2024 01:28:24 +0800 Subject: [PATCH 3/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e6b206c1..42b0e7d7 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ NapCatQQ 是基于NTQQ本体实现一套 Bot 框架。 可前往 Release 页面下载最新版本 -如果你想体验最新的功能,可以到 Actions 下载开发版本,但不保证其稳定性 +如果你想体验最新的功能,可以到 [Actions](https://github.com/NapNeko/NapCatQQ/actions/workflows/build.yml) 下载开发版本,但不保证其稳定性 ### Windows 启动 From 869599126ec45b0d2e201db6f5b97d7bfaa09ec0 Mon Sep 17 00:00:00 2001 From: linyuchen Date: Thu, 2 May 2024 03:33:29 +0800 Subject: [PATCH 4/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 42b0e7d7..ba9ac043 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ NapCatQQ 是基于NTQQ本体实现一套 Bot 框架。 -名字寓意 瞌睡猫QQ ,但是不准叫NCQQ!,像睡着了一样在后台低占用运行的无需GUI界面的NTQQ。 +名字寓意 瞌睡猫QQ (不准叫我 NCQQ!),像睡着了一样在后台低占用运行的无需GUI界面的NTQQ。 ## 使用教程 From f2e919725ee7db0e10be1e9ffb85c949cf551a3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 2 May 2024 18:08:26 +0800 Subject: [PATCH 5/9] build: 1.2.0-beta11 --- src/core | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core b/src/core index 0eb7205f..e520a60d 160000 --- a/src/core +++ b/src/core @@ -1 +1 @@ -Subproject commit 0eb7205f727149443b28ab0ae24052b26ad6aa12 +Subproject commit e520a60dedb82bc1a385220fe24ab67f9758b9e4 From 6cf71f67a9c5685d6a8259c7bb0f2fabbfd3a07d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 2 May 2024 18:11:59 +0800 Subject: [PATCH 6/9] update: core.lib --- src/core.lib/src/adapters/NodeIDependsAdapter.js | 2 +- src/core.lib/src/adapters/NodeIDispatcherAdapter.js | 2 +- src/core.lib/src/adapters/NodeIGlobalAdapter.js | 2 +- src/core.lib/src/adapters/index.js | 2 +- src/core.lib/src/apis/file.js | 2 +- src/core.lib/src/apis/friend.js | 2 +- src/core.lib/src/apis/group.js | 2 +- src/core.lib/src/apis/index.js | 2 +- src/core.lib/src/apis/msg.js | 2 +- src/core.lib/src/apis/sign.js | 2 +- src/core.lib/src/apis/user.js | 2 +- src/core.lib/src/apis/webapi.js | 2 +- src/core.lib/src/apis/window.js | 2 +- src/core.lib/src/core.js | 2 +- src/core.lib/src/data.js | 2 +- src/core.lib/src/entities/cache.js | 2 +- src/core.lib/src/entities/constructor.js | 2 +- src/core.lib/src/entities/group.js | 2 +- src/core.lib/src/entities/index.js | 2 +- src/core.lib/src/entities/msg.js | 2 +- src/core.lib/src/entities/notify.js | 2 +- src/core.lib/src/entities/user.js | 2 +- src/core.lib/src/external/hook.js | 2 +- src/core.lib/src/index.js | 2 +- src/core.lib/src/listeners/NodeIKernelBuddyListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelGroupListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelLoginListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelMsgListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelProfileListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelRobotListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelSessionListener.js | 2 +- src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js | 2 +- src/core.lib/src/listeners/index.js | 2 +- src/core.lib/src/services/common.js | 2 +- src/core.lib/src/services/index.js | 2 +- src/core.lib/src/sessionConfig.js | 2 +- src/core.lib/src/utils/config.js | 2 +- src/core.lib/src/utils/db.js | 2 +- src/core.lib/src/wrapper.js | 2 +- 40 files changed, 40 insertions(+), 40 deletions(-) diff --git a/src/core.lib/src/adapters/NodeIDependsAdapter.js b/src/core.lib/src/adapters/NodeIDependsAdapter.js index 93244a97..ea94346a 100644 --- a/src/core.lib/src/adapters/NodeIDependsAdapter.js +++ b/src/core.lib/src/adapters/NodeIDependsAdapter.js @@ -1 +1 @@ -var _0x535d6c=_0x56a7;(function(_0x5e7506,_0x55bac3){var _0x169bb6=_0x56a7,_0x4b753b=_0x5e7506();while(!![]){try{var _0x377349=-parseInt(_0x169bb6(0x125))/0x1+-parseInt(_0x169bb6(0x123))/0x2*(-parseInt(_0x169bb6(0x12d))/0x3)+parseInt(_0x169bb6(0x124))/0x4*(-parseInt(_0x169bb6(0x127))/0x5)+-parseInt(_0x169bb6(0x12b))/0x6+-parseInt(_0x169bb6(0x126))/0x7+-parseInt(_0x169bb6(0x12a))/0x8+parseInt(_0x169bb6(0x12c))/0x9;if(_0x377349===_0x55bac3)break;else _0x4b753b['push'](_0x4b753b['shift']());}catch(_0x20be2a){_0x4b753b['push'](_0x4b753b['shift']());}}}(_0x1f0c,0x5d76f));export class DependsAdapter{[_0x535d6c(0x129)](_0x3e00ba){}['onMSFSsoError'](_0x2efe99){}[_0x535d6c(0x128)](_0x73c8e9){}}function _0x56a7(_0x4de768,_0x4cdaef){var _0x1f0cfa=_0x1f0c();return _0x56a7=function(_0x56a7ad,_0x5ae070){_0x56a7ad=_0x56a7ad-0x123;var _0x4f56f0=_0x1f0cfa[_0x56a7ad];return _0x4f56f0;},_0x56a7(_0x4de768,_0x4cdaef);}function _0x1f0c(){var _0x1e7fe4=['getGroupCode','onMSFStatusChange','3412768zMspEO','4100118kKCmXS','21255363aFTRqm','1881OJvyLE','1460TeLIYo','4mqJsjP','151549QwYncx','3081673OTjXio','3674245MHldVN'];_0x1f0c=function(){return _0x1e7fe4;};return _0x1f0c();} \ No newline at end of file +var _0x5ac775=_0x584b;(function(_0x30d547,_0x3470b2){var _0x3d9a4b=_0x584b,_0x1de3fe=_0x30d547();while(!![]){try{var _0x29426c=-parseInt(_0x3d9a4b(0x150))/0x1*(parseInt(_0x3d9a4b(0x155))/0x2)+-parseInt(_0x3d9a4b(0x156))/0x3+-parseInt(_0x3d9a4b(0x15b))/0x4*(-parseInt(_0x3d9a4b(0x154))/0x5)+parseInt(_0x3d9a4b(0x158))/0x6+parseInt(_0x3d9a4b(0x152))/0x7+-parseInt(_0x3d9a4b(0x151))/0x8+parseInt(_0x3d9a4b(0x15a))/0x9;if(_0x29426c===_0x3470b2)break;else _0x1de3fe['push'](_0x1de3fe['shift']());}catch(_0x59fd11){_0x1de3fe['push'](_0x1de3fe['shift']());}}}(_0x30ed,0xc2a93));function _0x584b(_0x5072e5,_0x493718){var _0x30ed34=_0x30ed();return _0x584b=function(_0x584bbc,_0x20fe2c){_0x584bbc=_0x584bbc-0x150;var _0x23a2d1=_0x30ed34[_0x584bbc];return _0x23a2d1;},_0x584b(_0x5072e5,_0x493718);}function _0x30ed(){var _0x767886=['onMSFSsoError','30PqufDA','50QFSgiw','4440369TSBpPZ','getGroupCode','8122158jhFQuK','onMSFStatusChange','7190073pEfLjL','719676uxpesh','32404qffHUB','9245336cghnAY','7077819lpozRt'];_0x30ed=function(){return _0x767886;};return _0x30ed();}export class DependsAdapter{[_0x5ac775(0x159)](_0x3f350a){}[_0x5ac775(0x153)](_0x58c39a){}[_0x5ac775(0x157)](_0x439544){}} \ 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 696363d6..06ca9b86 100644 --- a/src/core.lib/src/adapters/NodeIDispatcherAdapter.js +++ b/src/core.lib/src/adapters/NodeIDispatcherAdapter.js @@ -1 +1 @@ -var _0x3cde09=_0x4ab8;function _0x1e9c(){var _0x51c2f7=['1070ElamCt','16PniIve','272063fIJLiZ','16MoZoRx','6744123rFGOFp','dispatchRequest','1056510FORQOG','dispatchCallWithJson','10578267JaJAOL','1BeOGco','6359592TiXzmG','dispatchCall','782975vgLoEd','2024182jngGHN'];_0x1e9c=function(){return _0x51c2f7;};return _0x1e9c();}(function(_0x425e5c,_0x1e1fc0){var _0x52fd75=_0x4ab8,_0x132660=_0x425e5c();while(!![]){try{var _0x3b09bf=parseInt(_0x52fd75(0x9f))/0x1*(-parseInt(_0x52fd75(0xa3))/0x2)+-parseInt(_0x52fd75(0x9c))/0x3+parseInt(_0x52fd75(0xa5))/0x4*(parseInt(_0x52fd75(0xa2))/0x5)+-parseInt(_0x52fd75(0xa0))/0x6+-parseInt(_0x52fd75(0x9e))/0x7+-parseInt(_0x52fd75(0xa7))/0x8*(-parseInt(_0x52fd75(0xa8))/0x9)+-parseInt(_0x52fd75(0xa4))/0xa*(-parseInt(_0x52fd75(0xa6))/0xb);if(_0x3b09bf===_0x1e1fc0)break;else _0x132660['push'](_0x132660['shift']());}catch(_0x4cb4fb){_0x132660['push'](_0x132660['shift']());}}}(_0x1e9c,0xcc223));function _0x4ab8(_0x147a53,_0x26f594){var _0x1e9c3c=_0x1e9c();return _0x4ab8=function(_0x4ab8a9,_0x2ae2e3){_0x4ab8a9=_0x4ab8a9-0x9c;var _0x2d9b0c=_0x1e9c3c[_0x4ab8a9];return _0x2d9b0c;},_0x4ab8(_0x147a53,_0x26f594);}export class DispatcherAdapter{[_0x3cde09(0xa9)](_0x563b94){}[_0x3cde09(0xa1)](_0xadfcaa){}[_0x3cde09(0x9d)](_0x509436){}} \ No newline at end of file +var _0x3f2b49=_0x5f19;function _0x3c8a(){var _0x3de665=['424061AGzBUd','15690840CmPizS','3pnFoDd','dispatchRequest','10551216oNflqy','187855zRjpcd','833DuWaqU','9xWtvAl','59442cnSrjH','14672530YcEdlL','2959222ipIfJa','52DTGlCY','dispatchCallWithJson'];_0x3c8a=function(){return _0x3de665;};return _0x3c8a();}(function(_0xed04e0,_0x3d8ad1){var _0x2fb462=_0x5f19,_0x95ca5a=_0xed04e0();while(!![]){try{var _0x4d9b1e=parseInt(_0x2fb462(0xb9))/0x1+-parseInt(_0x2fb462(0xb6))/0x2*(parseInt(_0x2fb462(0xbb))/0x3)+-parseInt(_0x2fb462(0xb7))/0x4*(parseInt(_0x2fb462(0xbe))/0x5)+-parseInt(_0x2fb462(0xb4))/0x6*(-parseInt(_0x2fb462(0xb2))/0x7)+parseInt(_0x2fb462(0xbd))/0x8+parseInt(_0x2fb462(0xb3))/0x9*(-parseInt(_0x2fb462(0xb5))/0xa)+parseInt(_0x2fb462(0xba))/0xb;if(_0x4d9b1e===_0x3d8ad1)break;else _0x95ca5a['push'](_0x95ca5a['shift']());}catch(_0x4b980d){_0x95ca5a['push'](_0x95ca5a['shift']());}}}(_0x3c8a,0xdee99));function _0x5f19(_0x76a8bc,_0x2228e7){var _0x3c8a83=_0x3c8a();return _0x5f19=function(_0x5f1935,_0x11f10f){_0x5f1935=_0x5f1935-0xb2;var _0x366511=_0x3c8a83[_0x5f1935];return _0x366511;},_0x5f19(_0x76a8bc,_0x2228e7);}export class DispatcherAdapter{[_0x3f2b49(0xbc)](_0x511844){}['dispatchCall'](_0x1db657){}[_0x3f2b49(0xb8)](_0x3587a6){}} \ 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 9d4ddaa1..3b84e400 100644 --- a/src/core.lib/src/adapters/NodeIGlobalAdapter.js +++ b/src/core.lib/src/adapters/NodeIGlobalAdapter.js @@ -1 +1 @@ -function _0x124f(_0x538dce,_0x10c78b){var _0x1d6d64=_0x1d6d();return _0x124f=function(_0x124f87,_0x5dc6e8){_0x124f87=_0x124f87-0x1e5;var _0x4872d6=_0x1d6d64[_0x124f87];return _0x4872d6;},_0x124f(_0x538dce,_0x10c78b);}var _0xb9b815=_0x124f;(function(_0xb174fe,_0xfdd7d9){var _0x4ddeb8=_0x124f,_0x5a5d9f=_0xb174fe();while(!![]){try{var _0x29e627=parseInt(_0x4ddeb8(0x1ee))/0x1*(parseInt(_0x4ddeb8(0x1f2))/0x2)+parseInt(_0x4ddeb8(0x1ef))/0x3+parseInt(_0x4ddeb8(0x1e9))/0x4+parseInt(_0x4ddeb8(0x1e8))/0x5+-parseInt(_0x4ddeb8(0x1f0))/0x6*(parseInt(_0x4ddeb8(0x1ed))/0x7)+parseInt(_0x4ddeb8(0x1e6))/0x8+-parseInt(_0x4ddeb8(0x1f1))/0x9*(parseInt(_0x4ddeb8(0x1eb))/0xa);if(_0x29e627===_0xfdd7d9)break;else _0x5a5d9f['push'](_0x5a5d9f['shift']());}catch(_0x1d5e53){_0x5a5d9f['push'](_0x5a5d9f['shift']());}}}(_0x1d6d,0xa0f79));export class GlobalAdapter{[_0xb9b815(0x1e7)](..._0x5362dd){}['onGetSrvCalTime'](..._0x417a29){}[_0xb9b815(0x1ec)](..._0x1224b1){}['fixPicImgType'](..._0x3f684c){}[_0xb9b815(0x1f3)](..._0x6341c4){}[_0xb9b815(0x1e5)](..._0x5164a7){}[_0xb9b815(0x1f4)](..._0x5e6116){}[_0xb9b815(0x1ea)](..._0x85cd69){}}function _0x1d6d(){var _0x55b159=['4403408pTJEYo','onLog','291155yDjDOK','4943684hbHNKM','onGetOfflineMsg','5681140bmKhJK','onShowErrUITips','4221gpBTwf','30IIhIQZ','3250179kgNmNX','7200IHlzRb','45PNMiax','86368VdDwkt','getAppSetting','onUpdateGeneralFlag','onInstallFinished'];_0x1d6d=function(){return _0x55b159;};return _0x1d6d();} \ No newline at end of file +function _0x42f8(_0x4e954c,_0x5610ab){var _0x83a076=_0x83a0();return _0x42f8=function(_0x42f8cb,_0x5f3111){_0x42f8cb=_0x42f8cb-0x1df;var _0x567684=_0x83a076[_0x42f8cb];return _0x567684;},_0x42f8(_0x4e954c,_0x5610ab);}var _0x70d04f=_0x42f8;(function(_0x362cd8,_0x585814){var _0x398bef=_0x42f8,_0x2a0f23=_0x362cd8();while(!![]){try{var _0x484bbc=-parseInt(_0x398bef(0x1e0))/0x1*(-parseInt(_0x398bef(0x1df))/0x2)+-parseInt(_0x398bef(0x1e4))/0x3*(parseInt(_0x398bef(0x1ec))/0x4)+-parseInt(_0x398bef(0x1e7))/0x5+parseInt(_0x398bef(0x1e1))/0x6*(-parseInt(_0x398bef(0x1e6))/0x7)+-parseInt(_0x398bef(0x1e8))/0x8+-parseInt(_0x398bef(0x1e9))/0x9+-parseInt(_0x398bef(0x1e3))/0xa*(-parseInt(_0x398bef(0x1eb))/0xb);if(_0x484bbc===_0x585814)break;else _0x2a0f23['push'](_0x2a0f23['shift']());}catch(_0x5f13b6){_0x2a0f23['push'](_0x2a0f23['shift']());}}}(_0x83a0,0x31a65));export class GlobalAdapter{['onLog'](..._0x512a9a){}['onGetSrvCalTime'](..._0xf5d0f9){}['onShowErrUITips'](..._0x54c30c){}[_0x70d04f(0x1ea)](..._0x2b6faa){}['getAppSetting'](..._0x588625){}[_0x70d04f(0x1e2)](..._0x3dc4ef){}['onUpdateGeneralFlag'](..._0x349acc){}[_0x70d04f(0x1e5)](..._0x532d55){}}function _0x83a0(){var _0x26ff04=['onGetOfflineMsg','6881uSCVKC','206650rVRjgK','2538056moVoxa','658620mwJFXH','fixPicImgType','11trQxou','12036sQaJNa','716502veclHt','1oGSeCT','2346mfKByC','onInstallFinished','8447830zHLlSb','183jvTSlY'];_0x83a0=function(){return _0x26ff04;};return _0x83a0();} \ 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 0c207bcd..27486083 100644 --- a/src/core.lib/src/adapters/index.js +++ b/src/core.lib/src/adapters/index.js @@ -1 +1 @@ -function _0x4f82(_0x47e765,_0x3d1f0d){var _0x1e0680=_0x1e06();return _0x4f82=function(_0x4f82b5,_0x34a014){_0x4f82b5=_0x4f82b5-0x8e;var _0x272c4d=_0x1e0680[_0x4f82b5];return _0x272c4d;},_0x4f82(_0x47e765,_0x3d1f0d);}(function(_0x1221d8,_0x49bb5f){var _0x9b6630=_0x4f82,_0x173bb2=_0x1221d8();while(!![]){try{var _0x128aec=-parseInt(_0x9b6630(0x8f))/0x1+parseInt(_0x9b6630(0x90))/0x2+-parseInt(_0x9b6630(0x91))/0x3+parseInt(_0x9b6630(0x93))/0x4*(-parseInt(_0x9b6630(0x92))/0x5)+parseInt(_0x9b6630(0x98))/0x6*(parseInt(_0x9b6630(0x97))/0x7)+parseInt(_0x9b6630(0x94))/0x8*(parseInt(_0x9b6630(0x96))/0x9)+-parseInt(_0x9b6630(0x8e))/0xa*(-parseInt(_0x9b6630(0x95))/0xb);if(_0x128aec===_0x49bb5f)break;else _0x173bb2['push'](_0x173bb2['shift']());}catch(_0x1d1821){_0x173bb2['push'](_0x173bb2['shift']());}}}(_0x1e06,0xee5e6));export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';function _0x1e06(){var _0x455fd0=['68160mhsqik','1608669bBBxsl','1416970Ybclyz','2695029WrxOKZ','4309865JKyuYW','4Fzdwmc','8MDfcRI','2134qYbPIt','11197647EcynTA','5579YCAPfq','8058DRZZxG'];_0x1e06=function(){return _0x455fd0;};return _0x1e06();}export*from'./NodeIGlobalAdapter'; \ No newline at end of file +(function(_0x316c0f,_0x45a6f5){var _0x5cc8a8=_0x4b0f,_0x982db3=_0x316c0f();while(!![]){try{var _0x334c1f=-parseInt(_0x5cc8a8(0x1da))/0x1+parseInt(_0x5cc8a8(0x1de))/0x2+parseInt(_0x5cc8a8(0x1dd))/0x3*(-parseInt(_0x5cc8a8(0x1db))/0x4)+parseInt(_0x5cc8a8(0x1df))/0x5+parseInt(_0x5cc8a8(0x1d8))/0x6*(parseInt(_0x5cc8a8(0x1d7))/0x7)+-parseInt(_0x5cc8a8(0x1dc))/0x8+-parseInt(_0x5cc8a8(0x1e0))/0x9*(parseInt(_0x5cc8a8(0x1d9))/0xa);if(_0x334c1f===_0x45a6f5)break;else _0x982db3['push'](_0x982db3['shift']());}catch(_0x4a1422){_0x982db3['push'](_0x982db3['shift']());}}}(_0x53da,0xdebf8));function _0x4b0f(_0x5f0434,_0x436618){var _0x53da33=_0x53da();return _0x4b0f=function(_0x4b0f9a,_0x2c0ece){_0x4b0f9a=_0x4b0f9a-0x1d7;var _0x5e6360=_0x53da33[_0x4b0f9a];return _0x5e6360;},_0x4b0f(_0x5f0434,_0x436618);}export*from'./NodeIDependsAdapter';export*from'./NodeIDispatcherAdapter';export*from'./NodeIGlobalAdapter';function _0x53da(){var _0x1a1e96=['3701945AYaSdR','9JOkNSB','21HPONXX','2192172oieeFl','3974540xNwaMr','135424XjOOUh','2488JRuBZP','2863888lMbgch','8553lmNRlU','3480174fATtqx'];_0x53da=function(){return _0x1a1e96;};return _0x53da();} \ No newline at end of file diff --git a/src/core.lib/src/apis/file.js b/src/core.lib/src/apis/file.js index d10c60dc..40ce0c02 100644 --- a/src/core.lib/src/apis/file.js +++ b/src/core.lib/src/apis/file.js @@ -1 +1 @@ -const _0x1607d6=_0xaaa2;function _0x53c0(){const _0x6a6399=['msgId','addCacheScannedPaths','onLoginSuccess','util','downloadPath','获取图片rkey...','PIC','downloadMedia','12959782FwDvKP','picElement','uploadFile','ndSKu','42FXtfVB','addTask','EUdWn','onRichMediaDownloadComplete','elementId','getFileType','ItTUe','start\x20downloadMedia','poyJX','CgDRU','NAdVH','tmp','then','645930uqmjFE','156932nAuUGn','getMsgService','4301800AOajZo','scanCache','clearCache','LMVOM','getFileCacheInfo','getFileSize','pehQc','getRichMediaFilePathForGuild','defaultFileDownloadPath','downloadMedia\x20complete','existsSync','iEldg','receive\x20downloadMedia\x20task','VLAuJ','set','9poSoOs','join','getChatCacheInfo','图片rkey获取失败','pboiI','igjDC','session','/download','find','toUpperCase','delete','startsWith','group','peerUid','56yXdDXM','zwtbA','hDmut','basename','图片rkey获取成功','1DTpWCq','SwKeT','unlink','copyFile','6649928MHdHqL','setCacheSilentScan','chatType','图片url获取失败','catch','getStorageCleanService','qHLKS','fileUuid','/gchatpic_new/0/0-0-','TUexq','RXbxZ','787810vOeXeh','6356180YeIkbV','cLbFE','udvly','getHotUpdateCachePath','开始调用moeHook获取rkey','djuni','hookApi\x20is\x20not\x20available','getImageUrl','elements','yyqmT','getChatCacheList','addCacheScanedPaths','hotUpdate','md5HexStr'];_0x53c0=function(){return _0x6a6399;};return _0x53c0();}(function(_0x282078,_0x26be8a){const _0x29f146=_0xaaa2,_0x3878be=_0x282078();while(!![]){try{const _0xc0eb2a=-parseInt(_0x29f146(0x1af))/0x1*(parseInt(_0x29f146(0x1be))/0x2)+-parseInt(_0x29f146(0x1d9))/0x3*(-parseInt(_0x29f146(0x18b))/0x4)+parseInt(_0x29f146(0x18d))/0x5+parseInt(_0x29f146(0x18a))/0x6*(-parseInt(_0x29f146(0x1aa))/0x7)+parseInt(_0x29f146(0x1b3))/0x8+-parseInt(_0x29f146(0x19c))/0x9*(-parseInt(_0x29f146(0x1bf))/0xa)+-parseInt(_0x29f146(0x1d5))/0xb;if(_0xc0eb2a===_0x26be8a)break;else _0x3878be['push'](_0x3878be['shift']());}catch(_0x5b1acd){_0x3878be['push'](_0x3878be['shift']());}}}(_0x53c0,0x6c326));import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x1c1882 from'path';import _0x1ed1b5 from'fs';import _0x96fd61 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';function _0xaaa2(_0x2b1e74,_0x1c7c40){const _0x53c000=_0x53c0();return _0xaaa2=function(_0xaaa25f,_0x36a9ee){_0xaaa25f=_0xaaa25f-0x17e;let _0x44d1f2=_0x53c000[_0xaaa25f];return _0x44d1f2;},_0xaaa2(_0x2b1e74,_0x1c7c40);}import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x33e6ac from'file-type';import{MsgListener}from'@/core/listeners';import _0x2ebb28 from'image-size';import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0x1607d6(0x180)]=_0x355912=>{const _0x467387=_0x1607d6,_0x15236b={'EUdWn':function(_0xdf9d8a,_0x4fec73){return _0xdf9d8a(_0x4fec73);}};for(const [_0x103fd4,_0x2f795b]of downloadMediaTasks){_0x15236b[_0x467387(0x17f)](_0x2f795b,_0x355912),downloadMediaTasks[_0x467387(0x1a6)](_0x103fd4);}},setTimeout(()=>{const _0x5b0d96=_0x1607d6;napCatCore[_0x5b0d96(0x1cf)](()=>{napCatCore['addListener'](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0x1607d6(0x182)](_0x52dc33){return _0x33e6ac['fileTypeFromFile'](_0x52dc33);}static async[_0x1607d6(0x1b2)](_0x3aea0c,_0x3f407b){const _0x222195=_0x1607d6;await napCatCore[_0x222195(0x1d0)]['copyFile'](_0x3aea0c,_0x3f407b);}static async[_0x1607d6(0x192)](_0x4a5e6b){const _0xc93f50=_0x1607d6;return await napCatCore[_0xc93f50(0x1d0)]['getFileSize'](_0x4a5e6b);}static async[_0x1607d6(0x1d7)](_0x443f04,_0x16f038=ElementType[_0x1607d6(0x1d3)],_0x3e4c41=0x0){const _0x23e8e9=_0x1607d6,_0x1f842f={'qHLKS':function(_0x2c2b50,_0x2f316c){return _0x2c2b50(_0x2f316c);}},_0x303cc8=await _0x1f842f[_0x23e8e9(0x1b9)](calculateFileMD5,_0x443f04);let _0x1a9148=(await NTQQFileApi[_0x23e8e9(0x182)](_0x443f04))?.['ext']||'';_0x1a9148&&(_0x1a9148='.'+_0x1a9148);let _0x3ff695=''+_0x1c1882[_0x23e8e9(0x1ad)](_0x443f04);_0x3ff695['indexOf']('.')===-0x1&&(_0x3ff695+=_0x1a9148);const _0x3bfef0=napCatCore['session'][_0x23e8e9(0x18c)]()[_0x23e8e9(0x194)]({'md5HexStr':_0x303cc8,'fileName':_0x3ff695,'elementType':_0x16f038,'elementSubType':_0x3e4c41,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi['copyFile'](_0x443f04,_0x3bfef0);const _0x2dfffd=await NTQQFileApi['getFileSize'](_0x443f04);return{'md5':_0x303cc8,'fileName':_0x3ff695,'path':_0x3bfef0,'fileSize':_0x2dfffd,'ext':_0x1a9148};}static async[_0x1607d6(0x1d4)](_0x3f4d15,_0x2a0000,_0x925469,_0x116919,_0x282b6a,_0x20a8b2,_0x2b2d5a=0x3e8*0x3c*0x2,_0x21d12f=![]){const _0x61c90=_0x1607d6,_0x192c90={'TXTBB':function(_0x15c7e0,_0x248497,_0x193df9,_0x22732){return _0x15c7e0(_0x248497,_0x193df9,_0x22732);},'poyJX':_0x61c90(0x196),'SwKeT':function(_0x258975,_0xb619b6){return _0x258975===_0xb619b6;},'CgDRU':function(_0x1cbfd7,_0x2846ce,_0x49cf0b){return _0x1cbfd7(_0x2846ce,_0x49cf0b);},'ItTUe':function(_0x1371d,_0x2e9d42){return _0x1371d(_0x2e9d42);},'hFFXH':'下载超时','pboiI':function(_0x54b43){return _0x54b43();},'TUexq':function(_0x147ccf,_0x35b4a8,_0x5f1684,_0x2c4719,_0x4f8801,_0x33ae47,_0x57f29a,_0x5d844f,_0x23e49b,_0x54afbd){return _0x147ccf(_0x35b4a8,_0x5f1684,_0x2c4719,_0x4f8801,_0x33ae47,_0x57f29a,_0x5d844f,_0x23e49b,_0x54afbd);},'pehQc':_0x61c90(0x184)};_0x192c90[_0x61c90(0x1bc)](logDebug,_0x61c90(0x199),_0x3f4d15,_0x2a0000,_0x925469,_0x116919,_0x282b6a,_0x20a8b2,_0x2b2d5a,_0x21d12f);if(_0x20a8b2&&_0x1ed1b5[_0x61c90(0x197)](_0x20a8b2)){if(_0x21d12f)try{await _0x96fd61[_0x61c90(0x1b1)](_0x20a8b2);}catch(_0x1b5cc6){}else return _0x20a8b2;}return _0x192c90[_0x61c90(0x1bc)](logDebug,_0x192c90[_0x61c90(0x193)],_0x3f4d15,_0x2a0000,_0x925469,_0x116919,_0x282b6a,_0x20a8b2,_0x2b2d5a,_0x21d12f),new Promise((_0xd96671,_0x3adb7a)=>{const _0x3f8a0f=_0x61c90;let _0x115d0e=![];const _0x26293e=_0x5291c9=>{const _0x3b7ed2=_0xaaa2;_0x192c90['TXTBB'](logDebug,_0x192c90[_0x3b7ed2(0x185)],_0x5291c9,_0x3f4d15);if(_0x192c90[_0x3b7ed2(0x1b0)](_0x5291c9[_0x3b7ed2(0x1cd)],_0x3f4d15)){_0x115d0e=!![];let _0x4769bb=_0x5291c9['filePath'];if(_0x4769bb[_0x3b7ed2(0x1a7)]('\x5c')){const _0x253a94=sessionConfig[_0x3b7ed2(0x195)];_0x192c90[_0x3b7ed2(0x186)](logDebug,_0x3b7ed2(0x1d1),_0x253a94),_0x4769bb=_0x1c1882[_0x3b7ed2(0x19d)](_0x253a94,_0x4769bb);}_0x192c90[_0x3b7ed2(0x183)](_0xd96671,_0x4769bb);}};downloadMediaTasks[_0x3f8a0f(0x19b)](_0x192c90[_0x3f8a0f(0x1a0)](randomUUID),_0x26293e),setTimeout(()=>{const _0x16cf7a=_0x3f8a0f;!_0x115d0e&&_0x192c90[_0x16cf7a(0x183)](_0x3adb7a,_0x192c90['hFFXH']);},_0x2b2d5a),napCatCore['session']['getMsgService']()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x3f4d15,'chatType':_0x2a0000,'peerUid':_0x925469,'elementId':_0x116919,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x282b6a});});}static async['getImageSize'](_0x247990){const _0x30ff64={'iUhha':function(_0x5495a5,_0x5b94a0){return _0x5495a5(_0x5b94a0);},'VLAuJ':function(_0x23424a,_0x4f5368,_0x375193){return _0x23424a(_0x4f5368,_0x375193);}};return new Promise((_0x2641ab,_0x56ff96)=>{const _0x55dc82=_0xaaa2;_0x30ff64[_0x55dc82(0x19a)](_0x2ebb28,_0x247990,(_0x4b8e34,_0x4067f1)=>{_0x4b8e34?_0x30ff64['iUhha'](_0x56ff96,_0x4b8e34):_0x2641ab(_0x4067f1);});});}static async[_0x1607d6(0x1c6)](_0x3e7dbf){const _0x382a12=_0x1607d6,_0x47627c={'RXbxZ':function(_0x15dce1,_0x443798){return _0x15dce1(_0x443798);},'ndSKu':_0x382a12(0x1d2),'NAdVH':function(_0x37d151,_0x3de28b){return _0x37d151*_0x3de28b;},'bznSd':_0x382a12(0x1c3),'rifBy':function(_0x32c366,_0x258c13,_0x282814){return _0x32c366(_0x258c13,_0x282814);},'aBBJw':_0x382a12(0x1ae),'zwtbA':function(_0x35a64c){return _0x35a64c();},'cLbFE':function(_0x2cb508,_0x311bc7){return _0x2cb508!==_0x311bc7;},'JqntF':_0x382a12(0x1a3),'LMVOM':'&rkey=','yyqmT':function(_0x3784c4,_0x5ce619){return _0x3784c4+_0x5ce619;},'igjDC':_0x382a12(0x1c5),'upNWr':function(_0x37469b,_0x490035){return _0x37469b>_0x490035;},'hDmut':function(_0x55fad2,_0x537437){return _0x55fad2-_0x537437;},'iEldg':function(_0x28475e,_0x54b632){return _0x28475e+_0x54b632;},'djuni':function(_0x4a7a52,_0x41ecde,_0x1a7aaf){return _0x4a7a52(_0x41ecde,_0x1a7aaf);},'udvly':function(_0x116092,_0x3f5de2){return _0x116092||_0x3f5de2;}},_0x5440ac=_0x47627c[_0x382a12(0x1c0)](_0x3e7dbf[_0x382a12(0x1b5)],ChatType[_0x382a12(0x1a8)]),_0x34e647=_0x3e7dbf[_0x382a12(0x1c7)][_0x382a12(0x1a4)](_0x424538=>!!_0x424538[_0x382a12(0x1d6)]);if(!_0x34e647)return'';const _0x2d828d=_0x34e647[_0x382a12(0x1d6)]['originImageUrl'],_0x3d1127=_0x34e647['picElement'][_0x382a12(0x1cc)],_0x4aea7f=_0x34e647[_0x382a12(0x1d6)][_0x382a12(0x1cc)],_0x28fc92=_0x34e647[_0x382a12(0x1d6)][_0x382a12(0x1ba)],_0x5dace7=_0x4d9763=>{_0x5440ac?(privateImageRKey=_0x4d9763,lastGetPrivateRKeyTime=Date['now']()):(groupImageRKey=_0x4d9763,lastGetGroupRKeyTime=Date['now']());};if(_0x2d828d){if(_0x2d828d[_0x382a12(0x1a7)](_0x47627c['JqntF'])){if(_0x2d828d['includes'](_0x47627c[_0x382a12(0x190)]))return _0x47627c[_0x382a12(0x1c8)](IMAGE_HTTP_HOST_NT,_0x2d828d);if(!hookApi['isAvailable']())return logDebug(_0x47627c[_0x382a12(0x1a1)]),'';const _0x507765=async()=>{const _0x251c78=_0x382a12;_0x47627c['RXbxZ'](logDebug,_0x47627c[_0x251c78(0x1d8)]),NTQQFileApi['downloadMedia'](_0x3e7dbf[_0x251c78(0x1cd)],_0x3e7dbf[_0x251c78(0x1b5)],_0x3e7dbf[_0x251c78(0x1a9)],_0x34e647[_0x251c78(0x181)],'',_0x34e647[_0x251c78(0x1d6)]['sourcePath'],_0x47627c[_0x251c78(0x187)](0x3e8,0x1e),![])[_0x251c78(0x189)](_0x36ce3d=>{})[_0x251c78(0x1b7)](logError),await sleep(0x3e8),_0x47627c[_0x251c78(0x1bd)](logDebug,_0x47627c['bznSd']);const _0x306c5f=hookApi['getRKey']()||'';return _0x306c5f&&(_0x47627c['rifBy'](logDebug,_0x47627c['aBBJw'],_0x306c5f),_0x5dace7(_0x306c5f)),_0x306c5f;},_0x4aff4d=new Promise((_0x2a2b02,_0x992fe8)=>{const _0x216e19=_0x382a12;getRKeyTaskQueue[_0x216e19(0x17e)](async()=>{const _0x36edb7=_0x216e19,_0x534e6f=await _0x47627c[_0x36edb7(0x1ab)](_0x507765);_0x47627c['RXbxZ'](_0x2a2b02,_0x534e6f);});}),_0x1bf0f1=_0x5440ac?privateImageRKey:groupImageRKey,_0x1aa66f=_0x5440ac?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x47627c['upNWr'](_0x47627c[_0x382a12(0x1ac)](Date['now'](),_0x1aa66f),rkeyExpireTime)||!_0x1bf0f1){const _0x4ed104=await _0x4aff4d;if(_0x4ed104)return _0x47627c['yyqmT'](_0x47627c[_0x382a12(0x198)](IMAGE_HTTP_HOST_NT,_0x2d828d),''+_0x4ed104);else _0x47627c[_0x382a12(0x1c4)](logError,_0x382a12(0x19f),_0x2d828d);}if(_0x1bf0f1)return _0x47627c['yyqmT'](_0x47627c[_0x382a12(0x198)](IMAGE_HTTP_HOST_NT,_0x2d828d),''+_0x1bf0f1);return'';}else return _0x47627c[_0x382a12(0x198)](IMAGE_HTTP_HOST,_0x2d828d);}else{if(_0x47627c[_0x382a12(0x1c1)](_0x4aea7f,_0x3d1127))return IMAGE_HTTP_HOST+_0x382a12(0x1bb)+_0x47627c[_0x382a12(0x1c1)](_0x4aea7f,_0x3d1127)[_0x382a12(0x1a5)]()+'/0';}return logDebug(_0x382a12(0x1b6),_0x3e7dbf),'';}}export class NTQQFileCacheApi{static async[_0x1607d6(0x1b4)](_0x1b8e71=!![]){return'';}static['getCacheSessionPathList'](){return'';}static[_0x1607d6(0x18f)](_0x1c866=[_0x1607d6(0x188),_0x1607d6(0x1cb)]){const _0x28ba05=_0x1607d6;return napCatCore[_0x28ba05(0x1a2)][_0x28ba05(0x1b8)]()['clearCacheDataByKeys'](_0x1c866);}static[_0x1607d6(0x1ce)](_0x5b1a5b={}){const _0x3fe17b=_0x1607d6;return napCatCore[_0x3fe17b(0x1a2)][_0x3fe17b(0x1b8)]()[_0x3fe17b(0x1ca)](_0x5b1a5b);}static['scanCache'](){const _0x521a17=_0x1607d6;return napCatCore['session'][_0x521a17(0x1b8)]()[_0x521a17(0x18e)]();}static[_0x1607d6(0x1c2)](){return'';}static['getDesktopTmpPath'](){return'';}static[_0x1607d6(0x1c9)](_0x4b22e8,_0x4bee39=0x3e8,_0x471ff7=0x0){const _0x5e9019=_0x1607d6;return napCatCore[_0x5e9019(0x1a2)][_0x5e9019(0x1b8)]()[_0x5e9019(0x19e)](_0x4b22e8,_0x4bee39,0x1,_0x471ff7);}static[_0x1607d6(0x191)](_0x4a0802,_0x186537=0x3e8,_0x1fd395){const _0x3eedc9=_0x1fd395?_0x1fd395:{'fileType':_0x4a0802};}static async['clearChatCache'](_0x292c2d=[],_0x4218c8=[]){const _0x3e9615=_0x1607d6;return napCatCore[_0x3e9615(0x1a2)][_0x3e9615(0x1b8)]()['clearChatCacheInfo'](_0x292c2d,_0x4218c8);}} \ No newline at end of file +const _0xc92868=_0x58c6;(function(_0x5eba76,_0x4dc5dc){const _0x4896d9=_0x58c6,_0x25d6f6=_0x5eba76();while(!![]){try{const _0x5f4a58=-parseInt(_0x4896d9(0x80))/0x1*(-parseInt(_0x4896d9(0xb8))/0x2)+-parseInt(_0x4896d9(0xdb))/0x3*(parseInt(_0x4896d9(0xde))/0x4)+parseInt(_0x4896d9(0xa6))/0x5+parseInt(_0x4896d9(0xe4))/0x6+-parseInt(_0x4896d9(0xd8))/0x7*(parseInt(_0x4896d9(0xc0))/0x8)+-parseInt(_0x4896d9(0xbe))/0x9+-parseInt(_0x4896d9(0x92))/0xa*(-parseInt(_0x4896d9(0x88))/0xb);if(_0x5f4a58===_0x4dc5dc)break;else _0x25d6f6['push'](_0x25d6f6['shift']());}catch(_0x4f9d2b){_0x25d6f6['push'](_0x25d6f6['shift']());}}}(_0x3ef6,0xa182c));function _0x58c6(_0x3b87b1,_0x327657){const _0x3ef67c=_0x3ef6();return _0x58c6=function(_0x58c662,_0x390bf3){_0x58c662=_0x58c662-0x76;let _0x16c1ef=_0x3ef67c[_0x58c662];return _0x16c1ef;},_0x58c6(_0x3b87b1,_0x327657);}import{ChatType,ElementType,IMAGE_HTTP_HOST,IMAGE_HTTP_HOST_NT}from'@/core/entities';import _0x1586bd from'path';import _0x23e3a0 from'fs';import _0x411272 from'fs/promises';import{logDebug,logError}from'@/common/utils/log';import{napCatCore}from'@/core';import{calculateFileMD5}from'@/common/utils/file';import*as _0x3b7740 from'file-type';import{MsgListener}from'@/core/listeners';import _0xface3 from'image-size';function _0x3ef6(){const _0x58e7d5=['kWKpm','hookApi\x20is\x20not\x20available','lXgXj','tmp','4828645UBSHCZ','bViTu','图片rkey获取失败','getFileType','MUTHH','KPvcI','catch','elements','Ibnjb','join','addTask','bsiSc','FAtmv','addListener','fSiPS','PIC','myFsp','图片url获取失败','2Whpiwx','originImageUrl','IQnWK','basename','group','then','4178880smSHzX','getImageSize','9547336CksHhd','/download','isAvailable','setCacheSilentScan','session','jntxw','scanCache','clearChatCache','downloadPath','aVVuR','QzmeQ','CUskj','getDesktopTmpPath','clearCacheDataByKeys','getStorageCleanService','CzkfJ','onLoginSuccess','set','MsMKp','includes','开始调用moeHook获取rkey','hotUpdate','UKBqw','startsWith','7SJaLAH','downloadMedia','getFileCacheInfo','496464KCTrJR','GenKq','kecGz','20OPBmOw','getRichMediaFilePathForGuild','onRichMediaDownloadComplete','getMsgService','statusCode','DQuCU','4865046ediyky','UFzBS','md5HexStr','start\x20downloadMedia','DOZBF','getChatCacheList','ElZaS','elementId','getFileSize','bNhwG','检查rkey是否有效','549638oWCnCi','sourcePath','hbsua','mHkhh','下载超时','FhPsY','ugxdV','bkkVm','1529cOZFFs','unlink','uploadFile','chatType','msgId','图片rkey有效','vsCrR','mciIJ','downloadMedia\x20complete','getCacheSessionPathList','59030YDzlVr','picElement','copyFile','uKHMc','filePath','/gchatpic_new/0/0-0-','indexOf','xqbhU','now','util','ZrkvM','pXmDs','javVZ','error','addCacheScannedPaths','getImageUrl'];_0x3ef6=function(){return _0x58e7d5;};return _0x3ef6();}import{sessionConfig}from'@/core/sessionConfig';import{hookApi}from'@/core/external/hook';import{randomUUID}from'crypto';import{AsyncQueue}from'@/common/utils/AsyncQueue';import{sleep}from'@/common/utils/helper';import _0x2c9409 from'https';let privateImageRKey='',groupImageRKey='',lastGetPrivateRKeyTime=0x0,lastGetGroupRKeyTime=0x0;const rkeyExpireTime=0x3e8*0x3c*0x1e,getRKeyTaskQueue=new AsyncQueue(),downloadMediaTasks=new Map(),downloadMediaListener=new MsgListener();downloadMediaListener[_0xc92868(0xe0)]=_0x16f03a=>{const _0x5be2a3=_0xc92868,_0x175548={'ZrkvM':function(_0x2d5611,_0x1c42f3){return _0x2d5611(_0x1c42f3);}};for(const [_0x32014d,_0x3ebd8d]of downloadMediaTasks){_0x175548[_0x5be2a3(0x9c)](_0x3ebd8d,_0x16f03a),downloadMediaTasks['delete'](_0x32014d);}},setTimeout(()=>{const _0x3c7877=_0xc92868;napCatCore[_0x3c7877(0xd0)](()=>{const _0x4e159c=_0x3c7877;napCatCore[_0x4e159c(0xb3)](downloadMediaListener);});},0x64);export class NTQQFileApi{static async[_0xc92868(0xa9)](_0x524c80){return _0x3b7740['fileTypeFromFile'](_0x524c80);}static async[_0xc92868(0x94)](_0xf85d6c,_0x1c5609){const _0x273ee7=_0xc92868;await napCatCore[_0x273ee7(0x9b)][_0x273ee7(0x94)](_0xf85d6c,_0x1c5609);}static async[_0xc92868(0x7d)](_0x1d3ae0){const _0x5ef5d2=_0xc92868;return await napCatCore[_0x5ef5d2(0x9b)][_0x5ef5d2(0x7d)](_0x1d3ae0);}static async[_0xc92868(0x8a)](_0x5a16f6,_0x15231d=ElementType[_0xc92868(0xb5)],_0x4b6a6c=0x0){const _0x1fc4f0=_0xc92868,_0x52f541={'FhPsY':function(_0x388ab1,_0x29b51d){return _0x388ab1+_0x29b51d;},'jntxw':function(_0x5702d7,_0xbdebbd){return _0x5702d7===_0xbdebbd;}},_0x1cf268=await calculateFileMD5(_0x5a16f6);let _0x32db73=(await NTQQFileApi[_0x1fc4f0(0xa9)](_0x5a16f6))?.['ext']||'';_0x32db73&&(_0x32db73=_0x52f541[_0x1fc4f0(0x85)]('.',_0x32db73));let _0x576a5e=''+_0x1586bd[_0x1fc4f0(0xbb)](_0x5a16f6);_0x52f541[_0x1fc4f0(0xc5)](_0x576a5e[_0x1fc4f0(0x98)]('.'),-0x1)&&(_0x576a5e+=_0x32db73);const _0x33b755=napCatCore[_0x1fc4f0(0xc4)][_0x1fc4f0(0xe1)]()[_0x1fc4f0(0xdf)]({'md5HexStr':_0x1cf268,'fileName':_0x576a5e,'elementType':_0x15231d,'elementSubType':_0x4b6a6c,'thumbSize':0x0,'needCreate':!![],'downloadType':0x1,'file_uuid':''});await NTQQFileApi[_0x1fc4f0(0x94)](_0x5a16f6,_0x33b755);const _0x14a4f1=await NTQQFileApi[_0x1fc4f0(0x7d)](_0x5a16f6);return{'md5':_0x1cf268,'fileName':_0x576a5e,'path':_0x33b755,'fileSize':_0x14a4f1,'ext':_0x32db73};}static async[_0xc92868(0xd9)](_0x465ffd,_0x534c15,_0x2a8d7e,_0x40ec1d,_0x477ba6,_0x5c0e97,_0x542c25=0x3e8*0x3c*0x2,_0x45a395=![]){const _0x17738e=_0xc92868,_0x443168={'mHkhh':_0x17738e(0x84),'Ibnjb':function(_0x53fdef,_0x29bee0,_0x571f71,_0x29b08d){return _0x53fdef(_0x29bee0,_0x571f71,_0x29b08d);},'bViTu':function(_0x17434c,_0x52d8d2,_0x205b90){return _0x17434c(_0x52d8d2,_0x205b90);},'ElZaS':function(_0x5c4c9e,_0x524da4){return _0x5c4c9e(_0x524da4);},'BxMUw':function(_0x28aaba){return _0x28aaba();},'UKBqw':function(_0x1604a6,_0x428167,_0x143a89,_0x5871bb,_0x14ddde,_0x8ac1d9,_0x21be45,_0x224957,_0x4bdcb4,_0xf00384){return _0x1604a6(_0x428167,_0x143a89,_0x5871bb,_0x14ddde,_0x8ac1d9,_0x21be45,_0x224957,_0x4bdcb4,_0xf00384);},'IQnWK':'receive\x20downloadMedia\x20task','kWKpm':function(_0x413fbd,_0x2ca87e,_0x44fe34,_0x109ea4,_0x572940,_0x557236,_0x4f757f,_0x2ce15f,_0x5808aa,_0x5a05cb){return _0x413fbd(_0x2ca87e,_0x44fe34,_0x109ea4,_0x572940,_0x557236,_0x4f757f,_0x2ce15f,_0x5808aa,_0x5a05cb);},'aVVuR':_0x17738e(0x78)};_0x443168[_0x17738e(0xd6)](logDebug,_0x443168[_0x17738e(0xba)],_0x465ffd,_0x534c15,_0x2a8d7e,_0x40ec1d,_0x477ba6,_0x5c0e97,_0x542c25,_0x45a395);if(_0x5c0e97&&_0x23e3a0['existsSync'](_0x5c0e97)){if(_0x45a395)try{await _0x411272[_0x17738e(0x89)](_0x5c0e97);}catch(_0x4affd7){}else return _0x5c0e97;}return _0x443168[_0x17738e(0xa2)](logDebug,_0x443168[_0x17738e(0xc9)],_0x465ffd,_0x534c15,_0x2a8d7e,_0x40ec1d,_0x477ba6,_0x5c0e97,_0x542c25,_0x45a395),new Promise((_0x25712d,_0x5ee221)=>{const _0xf2ddae=_0x17738e,_0x1f36cc={'lXgXj':function(_0x398871,_0x1015c2,_0x1809d9,_0x4e6b6b){const _0x52fc99=_0x58c6;return _0x443168[_0x52fc99(0xae)](_0x398871,_0x1015c2,_0x1809d9,_0x4e6b6b);},'MUTHH':_0xf2ddae(0x90),'eVEIb':function(_0x50dfd6,_0x170dd2,_0x2488f8){return _0x443168['bViTu'](_0x50dfd6,_0x170dd2,_0x2488f8);},'UFzBS':function(_0x2a4d4b,_0x5554de){const _0x96cc6e=_0xf2ddae;return _0x443168[_0x96cc6e(0x7b)](_0x2a4d4b,_0x5554de);}};let _0x2d91b8=![];const _0x24f2a4=_0x3be5fa=>{const _0x35f6b3=_0xf2ddae;_0x1f36cc[_0x35f6b3(0xa4)](logDebug,_0x1f36cc[_0x35f6b3(0xaa)],_0x3be5fa,_0x465ffd);if(_0x3be5fa[_0x35f6b3(0x8c)]===_0x465ffd){_0x2d91b8=!![];let _0x4eb763=_0x3be5fa[_0x35f6b3(0x96)];if(_0x4eb763['startsWith']('\x5c')){const _0x3ee043=sessionConfig['defaultFileDownloadPath'];_0x1f36cc['eVEIb'](logDebug,_0x35f6b3(0xc8),_0x3ee043),_0x4eb763=_0x1586bd[_0x35f6b3(0xaf)](_0x3ee043,_0x4eb763);}_0x1f36cc[_0x35f6b3(0x76)](_0x25712d,_0x4eb763);}};downloadMediaTasks[_0xf2ddae(0xd1)](_0x443168['BxMUw'](randomUUID),_0x24f2a4),_0x443168[_0xf2ddae(0xa7)](setTimeout,()=>{const _0x2d966c=_0xf2ddae;!_0x2d91b8&&_0x5ee221(_0x443168[_0x2d966c(0x83)]);},_0x542c25),napCatCore[_0xf2ddae(0xc4)][_0xf2ddae(0xe1)]()['downloadRichMedia']({'fileModelId':'0','downloadSourceType':0x0,'triggerType':0x1,'msgId':_0x465ffd,'chatType':_0x534c15,'peerUid':_0x2a8d7e,'elementId':_0x40ec1d,'thumbSize':0x0,'downloadType':0x1,'filePath':_0x477ba6});});}static async[_0xc92868(0xbf)](_0x1a7f0e){const _0x4ea815={'bNhwG':function(_0x2889e8,_0x5c6d4a){return _0x2889e8(_0x5c6d4a);},'bsiSc':function(_0x35d069,_0x14a6c1,_0x2e75b4){return _0x35d069(_0x14a6c1,_0x2e75b4);}};return new Promise((_0x1a6af8,_0x249a5e)=>{const _0x2caeb9=_0x58c6;_0x4ea815[_0x2caeb9(0xb1)](_0xface3,_0x1a7f0e,(_0x47a2f4,_0x383e2d)=>{const _0xa02eba=_0x2caeb9;_0x47a2f4?_0x249a5e(_0x47a2f4):_0x4ea815[_0xa02eba(0x7e)](_0x1a6af8,_0x383e2d);});});}static async[_0xc92868(0xa1)](_0x284378){const _0x545403=_0xc92868,_0x35e186={'javVZ':_0x545403(0x9f),'MsMKp':function(_0xc2b434,_0x5e8428){return _0xc2b434!==_0x5e8428;},'myFsp':function(_0x18a5b4,_0xc3bc6b){return _0x18a5b4(_0xc3bc6b);},'uKHMc':'获取图片rkey...','bkkVm':function(_0x247833,_0x1ef88c){return _0x247833(_0x1ef88c);},'pXmDs':_0x545403(0xd4),'CzkfJ':function(_0x6d568,_0x457a7e){return _0x6d568+_0x457a7e;},'FAtmv':_0x545403(0x7f),'CUskj':function(_0x4a3c80,_0x392b99,_0x3e289e){return _0x4a3c80(_0x392b99,_0x3e289e);},'xqbhU':_0x545403(0x8d),'PkLBg':function(_0x598f35,_0x1eba24){return _0x598f35(_0x1eba24);},'kecGz':function(_0x21434e,_0xa08508,_0x2bb236,_0x4ff0c5){return _0x21434e(_0xa08508,_0x2bb236,_0x4ff0c5);},'WZWcG':'图片rkey有误','Uamtg':_0x545403(0xc1),'KPvcI':'&rkey=','GenKq':function(_0x1e4f5a,_0x22969d){return _0x1e4f5a(_0x22969d);},'ugxdV':_0x545403(0xa3),'QzmeQ':function(_0x88394a,_0x16910d){return _0x88394a>_0x16910d;},'mciIJ':function(_0x6d48a3,_0x2f6371){return _0x6d48a3-_0x2f6371;},'fSiPS':function(_0xa993de,_0x51ab26){return _0xa993de+_0x51ab26;},'cZmwI':_0x545403(0xa8),'vsCrR':function(_0x3c8c44,_0x35e55b){return _0x3c8c44+_0x35e55b;},'hbsua':function(_0x34361b,_0x546f87){return _0x34361b||_0x546f87;},'adlpJ':_0x545403(0xb7)},_0x4feb62=_0x35e186[_0x545403(0xd2)](_0x284378[_0x545403(0x8b)],ChatType[_0x545403(0xbc)]),_0x3bb15f=_0x284378[_0x545403(0xad)]['find'](_0x2fce58=>!!_0x2fce58[_0x545403(0x93)]);if(!_0x3bb15f)return'';const _0x28e869=_0x3bb15f[_0x545403(0x93)][_0x545403(0xb9)],_0x284906=_0x3bb15f[_0x545403(0x93)][_0x545403(0x77)],_0x292cd8=_0x3bb15f[_0x545403(0x93)][_0x545403(0x77)],_0x15c435=_0x3bb15f['picElement']['fileUuid'],_0x3ecbf9=_0xb3e18=>{const _0x117b5b=_0x545403;_0x4feb62?(privateImageRKey=_0xb3e18,lastGetPrivateRKeyTime=Date['now']()):(groupImageRKey=_0xb3e18,lastGetGroupRKeyTime=Date[_0x117b5b(0x9a)]());};if(_0x28e869){if(_0x28e869[_0x545403(0xd7)](_0x35e186['Uamtg'])){if(_0x28e869[_0x545403(0xd3)](_0x35e186[_0x545403(0xab)]))return _0x35e186[_0x545403(0xcf)](IMAGE_HTTP_HOST_NT,_0x28e869);if(!hookApi[_0x545403(0xc2)]())return _0x35e186[_0x545403(0xdc)](logDebug,_0x35e186[_0x545403(0x86)]),'';const _0x1393d5=async()=>{const _0x2867fe=_0x545403,_0xe58866={'MANXz':function(_0x6c4762,_0x534c22){return _0x35e186['MsMKp'](_0x6c4762,_0x534c22);},'DOZBF':function(_0x55a5e8,_0x56ea0c){const _0x1fa92b=_0x58c6;return _0x35e186[_0x1fa92b(0xb6)](_0x55a5e8,_0x56ea0c);}};_0x35e186['myFsp'](logDebug,_0x35e186[_0x2867fe(0x95)]),NTQQFileApi['downloadMedia'](_0x284378[_0x2867fe(0x8c)],_0x284378[_0x2867fe(0x8b)],_0x284378['peerUid'],_0x3bb15f[_0x2867fe(0x7c)],'',_0x3bb15f[_0x2867fe(0x93)][_0x2867fe(0x81)],0x3e8*0x1e,![])[_0x2867fe(0xbd)](_0x4171ae=>{})[_0x2867fe(0xac)](logError),await _0x35e186['myFsp'](sleep,0x3e8),_0x35e186['bkkVm'](logDebug,_0x35e186[_0x2867fe(0x9d)]);const _0x40f2bb=hookApi['getRKey']()||'',_0x34d4d7=_0x35e186['CzkfJ'](_0x35e186[_0x2867fe(0xcf)](IMAGE_HTTP_HOST_NT,_0x28e869),_0x40f2bb);if(_0x40f2bb)try{logDebug(_0x35e186[_0x2867fe(0xb2)],_0x34d4d7),await new Promise((_0x56fb24,_0x2eca4d)=>{const _0x28f245=_0x2867fe;_0x2c9409['get'](_0x34d4d7,_0xc18814=>{const _0x5eeaa=_0x58c6;_0xe58866['MANXz'](_0xc18814[_0x5eeaa(0xe2)],0xc8)?_0xe58866[_0x5eeaa(0x79)](_0x2eca4d,_0x5eeaa(0xa8)):_0xe58866[_0x5eeaa(0x79)](_0x56fb24,_0xc18814);})['on'](_0x35e186[_0x28f245(0x9e)],_0x220a9e=>{_0x2eca4d(_0x220a9e);});}),_0x35e186[_0x2867fe(0xcb)](logDebug,_0x35e186[_0x2867fe(0x99)],_0x34d4d7),_0x35e186['PkLBg'](_0x3ecbf9,_0x40f2bb);}catch(_0x15576b){return _0x35e186[_0x2867fe(0xdd)](logError,_0x35e186['WZWcG'],_0x34d4d7,_0x15576b),'';}return _0x40f2bb;},_0x12add3=new Promise((_0x2a0e02,_0x2b5f15)=>{const _0x287428=_0x545403,_0x1cabb9={'DQuCU':function(_0x5bf93a,_0x14e76f){const _0x170b48=_0x58c6;return _0x35e186[_0x170b48(0x87)](_0x5bf93a,_0x14e76f);}};getRKeyTaskQueue[_0x287428(0xb0)](async()=>{const _0x2401c4=_0x287428,_0x4da0d7=await _0x1393d5();_0x1cabb9[_0x2401c4(0xe3)](_0x2a0e02,_0x4da0d7);});}),_0x1fa0fc=_0x4feb62?privateImageRKey:groupImageRKey,_0x3fcc95=_0x4feb62?lastGetPrivateRKeyTime:lastGetGroupRKeyTime;if(_0x35e186[_0x545403(0xca)](_0x35e186[_0x545403(0x8f)](Date[_0x545403(0x9a)](),_0x3fcc95),rkeyExpireTime)||!_0x1fa0fc){const _0x6e876a=await _0x12add3;if(_0x6e876a)return _0x35e186[_0x545403(0xb4)](_0x35e186[_0x545403(0xb4)](IMAGE_HTTP_HOST_NT,_0x28e869),''+_0x6e876a);else _0x35e186[_0x545403(0xcb)](logError,_0x35e186['cZmwI'],_0x28e869);}if(_0x1fa0fc)return _0x35e186[_0x545403(0x8e)](IMAGE_HTTP_HOST_NT+_0x28e869,''+_0x1fa0fc);return'';}else return _0x35e186[_0x545403(0x8e)](IMAGE_HTTP_HOST,_0x28e869);}else{if(_0x35e186[_0x545403(0x82)](_0x292cd8,_0x284906))return IMAGE_HTTP_HOST+_0x545403(0x97)+_0x35e186[_0x545403(0x82)](_0x292cd8,_0x284906)['toUpperCase']()+'/0';}return _0x35e186[_0x545403(0xcb)](logDebug,_0x35e186['adlpJ'],_0x284378),'';}}export class NTQQFileCacheApi{static async[_0xc92868(0xc3)](_0x24eef3=!![]){return'';}static[_0xc92868(0x91)](){return'';}static['clearCache'](_0x44f1c3=[_0xc92868(0xa5),_0xc92868(0xd5)]){const _0x5d5bc0=_0xc92868;return napCatCore[_0x5d5bc0(0xc4)]['getStorageCleanService']()[_0x5d5bc0(0xcd)](_0x44f1c3);}static[_0xc92868(0xa0)](_0x27101c={}){const _0xa87003=_0xc92868;return napCatCore[_0xa87003(0xc4)]['getStorageCleanService']()['addCacheScanedPaths'](_0x27101c);}static[_0xc92868(0xc6)](){const _0x116459=_0xc92868;return napCatCore['session'][_0x116459(0xce)]()[_0x116459(0xc6)]();}static['getHotUpdateCachePath'](){return'';}static[_0xc92868(0xcc)](){return'';}static[_0xc92868(0x7a)](_0x444a1f,_0x11c775=0x3e8,_0x9c57b3=0x0){const _0x4840c3=_0xc92868;return napCatCore['session'][_0x4840c3(0xce)]()['getChatCacheInfo'](_0x444a1f,_0x11c775,0x1,_0x9c57b3);}static[_0xc92868(0xda)](_0x1f286e,_0x5e30d2=0x3e8,_0x5b7812){const _0x355fe0=_0x5b7812?_0x5b7812:{'fileType':_0x1f286e};}static async[_0xc92868(0xc7)](_0x305934=[],_0x53597a=[]){const _0x37aea4=_0xc92868;return napCatCore[_0x37aea4(0xc4)][_0x37aea4(0xce)]()['clearChatCacheInfo'](_0x305934,_0x53597a);}} \ 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 ba979298..13c20185 100644 --- a/src/core.lib/src/apis/friend.js +++ b/src/core.lib/src/apis/friend.js @@ -1 +1 @@ -function _0x35fe(){const _0x4b98f5=['xhrQw','开始获取好友列表','3EOIXPR','uid','push','uepXE','179720kTLqkY','getBuddyList','11668ywXZPU','8DOpeDG','JQarV','BivHe','获取好友列表完成','onLoginSuccess','zdvca','594tllWdn','bgfPp','buddyList','uin','516AiVTrp','getFriends','获取好友列表超时','29753112onZUnh','onBuddyListChange','delete','getBuddyService','MfDdZ','REPKy','then','38752YBEjOZ','set','addListener','1544607yFobFX','214394XbLhjK','1827640CtlXAO','handleFriendRequest','ImXUC','981eBMSDE'];_0x35fe=function(){return _0x4b98f5;};return _0x35fe();}const _0x2df2f5=_0x3f43;(function(_0x34cc4d,_0x5059e0){const _0x12d8c1=_0x3f43,_0x1739f4=_0x34cc4d();while(!![]){try{const _0x2a117a=-parseInt(_0x12d8c1(0xec))/0x1*(-parseInt(_0x12d8c1(0xe5))/0x2)+-parseInt(_0x12d8c1(0xe9))/0x3*(parseInt(_0x12d8c1(0xf2))/0x4)+parseInt(_0x12d8c1(0xe6))/0x5+-parseInt(_0x12d8c1(0xfd))/0x6*(parseInt(_0x12d8c1(0xe1))/0x7)+-parseInt(_0x12d8c1(0xf3))/0x8*(parseInt(_0x12d8c1(0xe4))/0x9)+-parseInt(_0x12d8c1(0xf0))/0xa*(parseInt(_0x12d8c1(0xf9))/0xb)+parseInt(_0x12d8c1(0x100))/0xc;if(_0x2a117a===_0x5059e0)break;else _0x1739f4['push'](_0x1739f4['shift']());}catch(_0x738426){_0x1739f4['push'](_0x1739f4['shift']());}}}(_0x35fe,0x9122f));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';function _0x3f43(_0x12feea,_0x487f86){const _0x35fe4b=_0x35fe();return _0x3f43=function(_0x3f4322,_0x3d4e0c){_0x3f4322=_0x3f4322-0xdf;let _0x4e0b28=_0x35fe4b[_0x3f4322];return _0x4e0b28;},_0x3f43(_0x12feea,_0x487f86);}import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x2df2f5(0x101)]=_0x569ccc=>{const _0x36abe=_0x2df2f5,_0x40073c={'bgfPp':function(_0x146761,_0x19e0ee){return _0x146761(_0x19e0ee);}};for(const [_0x2935a9,_0x565d3a]of buddyChangeTasks){_0x40073c[_0x36abe(0xfa)](_0x565d3a,_0x569ccc),buddyChangeTasks[_0x36abe(0x102)](_0x2935a9);}},setTimeout(()=>{const _0x5e243f=_0x2df2f5;napCatCore[_0x5e243f(0xf7)](()=>{const _0x5d8fff=_0x5e243f;napCatCore[_0x5d8fff(0xe3)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x2df2f5(0xfe)](_0x41900d=![]){const _0x34576a=_0x2df2f5,_0x1cbde7={'cqkKH':function(_0x4f61ef,_0x264354,_0x1f849e){return _0x4f61ef(_0x264354,_0x1f849e);},'maKXj':_0x34576a(0xf6),'BivHe':function(_0x209076,_0x46b2f3){return _0x209076(_0x46b2f3);},'ImXUC':_0x34576a(0xff),'zdvca':function(_0x5a95e0,_0x307e1f,_0x10afc9){return _0x5a95e0(_0x307e1f,_0x10afc9);},'kKzPO':function(_0x202d79){return _0x202d79();}};return new Promise((_0x218f5f,_0x5c1810)=>{const _0x326fe2=_0x34576a,_0x3b415e={'uepXE':function(_0x352c63,_0x121c72){const _0x51de5e=_0x3f43;return _0x1cbde7[_0x51de5e(0xf5)](_0x352c63,_0x121c72);},'xhrQw':_0x1cbde7[_0x326fe2(0xe8)],'MfDdZ':function(_0x3ed5f6,_0x45db31){const _0x452323=_0x326fe2;return _0x1cbde7[_0x452323(0xf5)](_0x3ed5f6,_0x45db31);},'REPKy':function(_0x18888a,_0x462e3c,_0xe14d8e){const _0x2da236=_0x326fe2;return _0x1cbde7[_0x2da236(0xf8)](_0x18888a,_0x462e3c,_0xe14d8e);},'JQarV':_0x326fe2(0xeb)};let _0x435ac0=![];_0x1cbde7[_0x326fe2(0xf8)](setTimeout,()=>{const _0x58a3af=_0x326fe2;!_0x435ac0&&(_0x3b415e[_0x58a3af(0xef)](logDebug,_0x3b415e[_0x58a3af(0xea)]),_0x3b415e[_0x58a3af(0x104)](_0x5c1810,_0x3b415e['xhrQw']));},0x1388);const _0x3efcc3=[],_0x2b2214=_0x3bfc5f=>{const _0x59a258=_0x326fe2;for(const _0x177c6b of _0x3bfc5f){for(const _0x5e51cb of _0x177c6b[_0x59a258(0xfb)]){_0x3efcc3[_0x59a258(0xee)](_0x5e51cb),uid2UinMap[_0x5e51cb[_0x59a258(0xed)]]=_0x5e51cb[_0x59a258(0xfc)];}}_0x435ac0=!![],_0x1cbde7['cqkKH'](logDebug,_0x1cbde7['maKXj'],_0x3efcc3),_0x218f5f(_0x3efcc3);};buddyChangeTasks[_0x326fe2(0xe2)](_0x1cbde7['kKzPO'](randomUUID),_0x2b2214),napCatCore['session'][_0x326fe2(0x103)]()[_0x326fe2(0xf1)](_0x41900d)[_0x326fe2(0xe0)](_0x498c42=>{const _0x3ed981=_0x326fe2;_0x3b415e[_0x3ed981(0xdf)](logDebug,_0x3b415e[_0x3ed981(0xf4)],_0x498c42);});});}static async[_0x2df2f5(0xe7)](_0x153650,_0x343781){const _0x1f7b6f=_0x2df2f5;napCatCore['session'][_0x1f7b6f(0x103)]()?.['approvalFriendRequest']({'friendUid':_0x153650['friendUid'],'reqTime':_0x153650['reqTime'],'accept':_0x343781});}} \ No newline at end of file +const _0x43d642=_0x5283;function _0x5a19(){const _0x313216=['3110132nsSkDz','session','获取好友列表完成','then','handleFriendRequest','wprWh','8JVnusO','onLoginSuccess','KyYXa','uid','getBuddyList','5tesFLr','onBuddyListChange','1aULIET','9184175EMvyLs','45oNcEyj','getBuddyService','3629460iMzpbQ','getFriends','721882abwrCH','ufezq','2834349VNynUF','2038090ufqPPG','push','YDTCJ','开始获取好友列表','获取好友列表超时','addListener','uin','cmPnp','Wgtxj','683018yJqWAG','dSCJk'];_0x5a19=function(){return _0x313216;};return _0x5a19();}(function(_0x3f105c,_0x489ddf){const _0x3f80ab=_0x5283,_0x434d1f=_0x3f105c();while(!![]){try{const _0x5d47f2=parseInt(_0x3f80ab(0x100))/0x1*(-parseInt(_0x3f80ab(0xf1))/0x2)+-parseInt(_0x3f80ab(0xe7))/0x3+parseInt(_0x3f80ab(0xf3))/0x4*(parseInt(_0x3f80ab(0xfe))/0x5)+-parseInt(_0x3f80ab(0xe3))/0x6+-parseInt(_0x3f80ab(0xe5))/0x7*(-parseInt(_0x3f80ab(0xf9))/0x8)+parseInt(_0x3f80ab(0xe1))/0x9*(parseInt(_0x3f80ab(0xe8))/0xa)+parseInt(_0x3f80ab(0x101))/0xb;if(_0x5d47f2===_0x489ddf)break;else _0x434d1f['push'](_0x434d1f['shift']());}catch(_0x4eda4e){_0x434d1f['push'](_0x434d1f['shift']());}}}(_0x5a19,0xcdea3));import{BuddyListener,napCatCore}from'@/core';import{logDebug}from'@/common/utils/log';import{uid2UinMap}from'@/core/data';function _0x5283(_0x55554a,_0x5ad60f){const _0x5a1985=_0x5a19();return _0x5283=function(_0x528377,_0x5e9eb9){_0x528377=_0x528377-0xe1;let _0x1ada88=_0x5a1985[_0x528377];return _0x1ada88;},_0x5283(_0x55554a,_0x5ad60f);}import{randomUUID}from'crypto';const buddyChangeTasks=new Map(),buddyListener=new BuddyListener();buddyListener[_0x43d642(0xff)]=_0x4dda90=>{const _0x2c75a1=_0x43d642,_0x37cae2={'wprWh':function(_0x5745f0,_0x90d404){return _0x5745f0(_0x90d404);}};for(const [_0x5d542a,_0xac083f]of buddyChangeTasks){_0x37cae2[_0x2c75a1(0xf8)](_0xac083f,_0x4dda90),buddyChangeTasks['delete'](_0x5d542a);}},setTimeout(()=>{const _0x414423=_0x43d642;napCatCore[_0x414423(0xfa)](()=>{const _0x4ac090=_0x414423;napCatCore[_0x4ac090(0xed)](buddyListener);});},0x64);export class NTQQFriendApi{static async[_0x43d642(0xe4)](_0x3c4ba=![]){const _0x47d9e6=_0x43d642,_0x125d98={'cmPnp':_0x47d9e6(0xec),'jDoYH':function(_0x337f23,_0x14fadf){return _0x337f23(_0x14fadf);},'KyYXa':function(_0x1916f3,_0x39703c,_0x379e3f){return _0x1916f3(_0x39703c,_0x379e3f);},'YDTCJ':_0x47d9e6(0xf5),'Wgtxj':_0x47d9e6(0xeb),'dSCJk':function(_0x2b40c8){return _0x2b40c8();}};return new Promise((_0x3bc4bd,_0x27e824)=>{const _0x56c7cc=_0x47d9e6,_0x1a2e05={'ufezq':_0x125d98[_0x56c7cc(0xf0)]};let _0x27d963=![];setTimeout(()=>{const _0x478448=_0x56c7cc;!_0x27d963&&(logDebug(_0x125d98[_0x478448(0xef)]),_0x125d98['jDoYH'](_0x27e824,_0x125d98[_0x478448(0xef)]));},0x1388);const _0x2af3a2=[],_0x349379=_0x543a78=>{const _0x4e5250=_0x56c7cc;for(const _0x15ef9a of _0x543a78){for(const _0x241c9f of _0x15ef9a['buddyList']){_0x2af3a2[_0x4e5250(0xe9)](_0x241c9f),uid2UinMap[_0x241c9f[_0x4e5250(0xfc)]]=_0x241c9f[_0x4e5250(0xee)];}}_0x27d963=!![],_0x125d98[_0x4e5250(0xfb)](logDebug,_0x125d98[_0x4e5250(0xea)],_0x2af3a2),_0x3bc4bd(_0x2af3a2);};buddyChangeTasks['set'](_0x125d98[_0x56c7cc(0xf2)](randomUUID),_0x349379),napCatCore['session'][_0x56c7cc(0xe2)]()[_0x56c7cc(0xfd)](_0x3c4ba)[_0x56c7cc(0xf6)](_0x4f088e=>{const _0x324439=_0x56c7cc;logDebug(_0x1a2e05[_0x324439(0xe6)],_0x4f088e);});});}static async[_0x43d642(0xf7)](_0x47b0a6,_0x4bae5c){const _0x21fd3e=_0x43d642;napCatCore[_0x21fd3e(0xf4)][_0x21fd3e(0xe2)]()?.['approvalFriendRequest']({'friendUid':_0x47b0a6['friendUid'],'reqTime':_0x47b0a6['reqTime'],'accept':_0x4bae5c});}} \ No newline at end of file diff --git a/src/core.lib/src/apis/group.js b/src/core.lib/src/apis/group.js index f02f98bf..70368575 100644 --- a/src/core.lib/src/apis/group.js +++ b/src/core.lib/src/apis/group.js @@ -1 +1 @@ -const _0x2f642f=_0x32d2;(function(_0x1a7863,_0x223439){const _0x1f04b5=_0x32d2,_0xb3b918=_0x1a7863();while(!![]){try{const _0x152272=-parseInt(_0x1f04b5(0xde))/0x1*(-parseInt(_0x1f04b5(0xc4))/0x2)+-parseInt(_0x1f04b5(0xed))/0x3*(-parseInt(_0x1f04b5(0xcd))/0x4)+parseInt(_0x1f04b5(0xf6))/0x5*(-parseInt(_0x1f04b5(0xf0))/0x6)+-parseInt(_0x1f04b5(0xd5))/0x7+-parseInt(_0x1f04b5(0xd9))/0x8*(parseInt(_0x1f04b5(0xec))/0x9)+-parseInt(_0x1f04b5(0xee))/0xa+parseInt(_0x1f04b5(0xc1))/0xb;if(_0x152272===_0x223439)break;else _0xb3b918['push'](_0xb3b918['shift']());}catch(_0x5cbea4){_0xb3b918['push'](_0xb3b918['shift']());}}}(_0x237b,0x65afe));import{napCatCore}from'@/core';import{GroupListener}from'@/core/index';import{uid2UinMap}from'@/core/data';function _0x32d2(_0x562eaa,_0x259b9f){const _0x237bd0=_0x237b();return _0x32d2=function(_0x32d23e,_0x1c8c38){_0x32d23e=_0x32d23e-0xbe;let _0x174dd1=_0x237bd0[_0x32d23e];return _0x174dd1;},_0x32d2(_0x562eaa,_0x259b9f);}import{logDebug}from'@/common/utils/log';import{randomUUID}from'crypto';const groupMemberTasks=new Map(),groupListener=new GroupListener();function _0x237b(){const _0xf4b266=['banMember','groupMemberList_MainWindow','4enSafB','type','errCode','zybKP','onGroupListUpdate','PUZlJ','uin','VIKEx','modifyMemberCardName','1141692XcBQvG','group','set','handleGroupRequest','getNextMemberList','createMemberListScene','RelZH','获取群成员列表出错,','3627519ZAjJVG','yKEyH','getGroupService','getGroupList','24xdlZpe','获取群列表超时','HcMpD','kickMember','publishGroupBulletin','401669NhfbXl','groupCode','quitGroup','iEBIM','infos','then','modifyMemberRole','finish','addListener','uid','getGroupIgnoreNotifies','SlVaK',')成员列表结果:','getGroups','446895gBlGMW','6BVhqXa','2516740COhPpy','lfLNj','6yPHDaM','operateSysNotify','获取群(','getGroupNotifies','banGroup','setMemberShutUp','2060735PQLbpP','session','forEach','jhgAY','PJSbf','modifyGroupName','onLoginSuccess','获取群列表完成','4106619qfNsMA'];_0x237b=function(){return _0xf4b266;};return _0x237b();}groupListener[_0x2f642f(0xc8)]=(_0x3e9bda,_0x588b66)=>{const _0x583a7c=_0x2f642f,_0xddc456={'iEBIM':function(_0x5c814d,_0x40614e,_0x248385){return _0x5c814d(_0x40614e,_0x248385);}};for(const [_0x2f5cd6,_0xe4dbb]of groupMemberTasks){_0xddc456[_0x583a7c(0xe1)](_0xe4dbb,_0x3e9bda,_0x588b66),groupMemberTasks['delete'](_0x2f5cd6);}},setTimeout(()=>{const _0x7336dd=_0x2f642f;napCatCore[_0x7336dd(0xbf)](()=>{const _0x17ba46=_0x7336dd;napCatCore[_0x17ba46(0xe6)](groupListener);});},0x64);export class NTQQGroupApi{static async[_0x2f642f(0xeb)](_0x7d95c5=![]){const _0xa1f2e4=_0x2f642f,_0x5049b4={'jhgAY':_0xa1f2e4(0xda),'RelZH':function(_0x5e31be,_0x1f36cd){return _0x5e31be(_0x1f36cd);},'HcMpD':function(_0x28838b,_0x488a64,_0xc30cd2){return _0x28838b(_0x488a64,_0xc30cd2);},'zybKP':_0xa1f2e4(0xc0),'PUZlJ':function(_0x2b8b73,_0x3f47eb){return _0x2b8b73(_0x3f47eb);},'TANHd':function(_0x395092,_0x228989,_0x41930f){return _0x395092(_0x228989,_0x41930f);},'SuSrc':function(_0x135a16){return _0x135a16();}};let _0x35609a=![];return new Promise((_0xcc84e4,_0x2f3968)=>{const _0xeb711e=_0xa1f2e4,_0x228be8={'SlVaK':function(_0x975c0c,_0xc29904,_0x1be332){const _0x35ae05=_0x32d2;return _0x5049b4[_0x35ae05(0xdb)](_0x975c0c,_0xc29904,_0x1be332);},'tLuLp':_0x5049b4[_0xeb711e(0xc7)],'yKEyH':function(_0x391e77,_0x232400){const _0x5a5b07=_0xeb711e;return _0x5049b4[_0x5a5b07(0xc9)](_0x391e77,_0x232400);}};_0x5049b4['TANHd'](setTimeout,()=>{const _0x510754=_0xeb711e;!_0x35609a&&(logDebug(_0x5049b4[_0x510754(0xf9)]),_0x5049b4[_0x510754(0xd3)](_0x2f3968,_0x5049b4[_0x510754(0xf9)]));},0x1388);const _0x3d9d07=(_0x10f3be,_0x2dc96a)=>{const _0x270176=_0xeb711e;_0x35609a=!![],_0x228be8[_0x270176(0xe9)](logDebug,_0x228be8['tLuLp'],_0x2dc96a),_0x228be8[_0x270176(0xd6)](_0xcc84e4,_0x2dc96a);};groupMemberTasks[_0xeb711e(0xcf)](_0x5049b4['SuSrc'](randomUUID),_0x3d9d07),napCatCore[_0xeb711e(0xf7)]['getGroupService']()[_0xeb711e(0xd8)](_0x7d95c5)[_0xeb711e(0xe3)]();});}static async['getGroupMembers'](_0x3fa614,_0x33105a=0xbb8){const _0x5e50be=_0x2f642f,_0x36dfed={'ySjNp':_0x5e50be(0xc3),'PJSbf':function(_0x71c5af,_0x5cc89a){return _0x71c5af!==_0x5cc89a;},'VIKEx':function(_0x1cbe5c,_0xd5f12f){return _0x1cbe5c+_0xd5f12f;},'llBPH':_0x5e50be(0xd4)},_0x30272a=napCatCore[_0x5e50be(0xf7)][_0x5e50be(0xd7)](),_0x51f305=_0x30272a[_0x5e50be(0xd2)](_0x3fa614,_0x36dfed['ySjNp']),_0x2deaa1=await _0x30272a[_0x5e50be(0xd1)](_0x51f305,undefined,_0x33105a);if(_0x36dfed[_0x5e50be(0xfa)](_0x2deaa1[_0x5e50be(0xc6)],0x0))throw _0x36dfed[_0x5e50be(0xcb)](_0x36dfed['llBPH'],_0x2deaa1['errMsg']);return logDebug(_0x5e50be(0xf2)+_0x3fa614+_0x5e50be(0xea),'finish:\x20'+_0x2deaa1['result'][_0x5e50be(0xe5)]),_0x2deaa1['result'][_0x5e50be(0xe2)][_0x5e50be(0xf8)](_0x44f2c8=>{const _0x5e28c4=_0x5e50be;uid2UinMap[_0x44f2c8[_0x5e28c4(0xe7)]]=_0x44f2c8[_0x5e28c4(0xca)];}),_0x2deaa1['result'][_0x5e50be(0xe2)];}static async[_0x2f642f(0xf3)](){}static async[_0x2f642f(0xe8)](){}static async[_0x2f642f(0xd0)](_0x3ab103,_0x5dd3e0,_0x3bc4ab){const _0x463fa2=_0x2f642f,_0x3ed321={'lfLNj':function(_0xabf3f9,_0x25e3cc){return _0xabf3f9||_0x25e3cc;}};return napCatCore['session'][_0x463fa2(0xd7)]()[_0x463fa2(0xf1)](![],{'operateType':_0x5dd3e0,'targetMsg':{'seq':_0x3ab103['seq'],'type':_0x3ab103[_0x463fa2(0xc5)],'groupCode':_0x3ab103[_0x463fa2(0xce)][_0x463fa2(0xdf)],'postscript':_0x3ed321[_0x463fa2(0xef)](_0x3bc4ab,'')}});}static async[_0x2f642f(0xe0)](_0x95ebe1){const _0x5c9466=_0x2f642f;return napCatCore[_0x5c9466(0xf7)][_0x5c9466(0xd7)]()['quitGroup'](_0x95ebe1);}static async[_0x2f642f(0xdc)](_0x6a1e59,_0x976597,_0x575acf=![],_0x16ed28=''){const _0x454c3e=_0x2f642f;return napCatCore[_0x454c3e(0xf7)][_0x454c3e(0xd7)]()[_0x454c3e(0xdc)](_0x6a1e59,_0x976597,_0x575acf,_0x16ed28);}static async[_0x2f642f(0xc2)](_0x3179aa,_0x441abc){const _0x91fc07=_0x2f642f;return napCatCore[_0x91fc07(0xf7)][_0x91fc07(0xd7)]()[_0x91fc07(0xf5)](_0x3179aa,_0x441abc);}static async[_0x2f642f(0xf4)](_0x2abbd7,_0x43ddeb){const _0x295800=_0x2f642f;return napCatCore[_0x295800(0xf7)]['getGroupService']()['setGroupShutUp'](_0x2abbd7,_0x43ddeb);}static async['setMemberCard'](_0x32d281,_0x1e4ec0,_0x1bd417){const _0x4f7d61=_0x2f642f;return napCatCore[_0x4f7d61(0xf7)][_0x4f7d61(0xd7)]()[_0x4f7d61(0xcc)](_0x32d281,_0x1e4ec0,_0x1bd417);}static async['setMemberRole'](_0x20bc3e,_0x465808,_0x34ed37){const _0xb98efc=_0x2f642f;return napCatCore[_0xb98efc(0xf7)][_0xb98efc(0xd7)]()[_0xb98efc(0xe4)](_0x20bc3e,_0x465808,_0x34ed37);}static async['setGroupName'](_0x399382,_0x1f030d){const _0x38f0c3=_0x2f642f;return napCatCore[_0x38f0c3(0xf7)][_0x38f0c3(0xd7)]()[_0x38f0c3(0xbe)](_0x399382,_0x1f030d,![]);}static async['setGroupTitle'](_0x569824,_0x42d374,_0x17761a){}static[_0x2f642f(0xdd)](_0x20405f,_0x11bbd4,_0x60847d){}} \ No newline at end of file +const _0x47b66f=_0x430a;function _0x430a(_0xd88bc1,_0x166c81){const _0x793b65=_0x793b();return _0x430a=function(_0x430a2d,_0x4c1801){_0x430a2d=_0x430a2d-0x1b4;let _0x5d769e=_0x793b65[_0x430a2d];return _0x5d769e;},_0x430a(_0xd88bc1,_0x166c81);}(function(_0x2948fb,_0x3b52a2){const _0x1dd74f=_0x430a,_0x274afa=_0x2948fb();while(!![]){try{const _0x1991b5=-parseInt(_0x1dd74f(0x1ef))/0x1+parseInt(_0x1dd74f(0x1ee))/0x2+-parseInt(_0x1dd74f(0x1c6))/0x3*(parseInt(_0x1dd74f(0x1d2))/0x4)+parseInt(_0x1dd74f(0x1c5))/0x5+parseInt(_0x1dd74f(0x1d1))/0x6*(parseInt(_0x1dd74f(0x1c4))/0x7)+parseInt(_0x1dd74f(0x1e3))/0x8*(-parseInt(_0x1dd74f(0x1e5))/0x9)+-parseInt(_0x1dd74f(0x1b7))/0xa*(-parseInt(_0x1dd74f(0x1dc))/0xb);if(_0x1991b5===_0x3b52a2)break;else _0x274afa['push'](_0x274afa['shift']());}catch(_0x128a7d){_0x274afa['push'](_0x274afa['shift']());}}}(_0x793b,0x222ca));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[_0x47b66f(0x1bf)]=(_0x56a8f5,_0x3d2982)=>{const _0x167c18=_0x47b66f,_0x36eeec={'MbghO':function(_0x3099e1,_0x21f9d5,_0x4e163a){return _0x3099e1(_0x21f9d5,_0x4e163a);}};for(const [_0xbff11e,_0x2ee555]of groupMemberTasks){_0x36eeec[_0x167c18(0x1b9)](_0x2ee555,_0x56a8f5,_0x3d2982),groupMemberTasks[_0x167c18(0x1e2)](_0xbff11e);}},setTimeout(()=>{napCatCore['onLoginSuccess'](()=>{napCatCore['addListener'](groupListener);});},0x64);export class NTQQGroupApi{static async['getGroups'](_0x39a0d5=![]){const _0x24cbe3=_0x47b66f,_0x58c7f6={'LZxuV':function(_0x2a9d6e,_0x3813c3){return _0x2a9d6e(_0x3813c3);},'waTZK':_0x24cbe3(0x1e4),'OVHfG':function(_0x300e5b,_0x52abf5){return _0x300e5b(_0x52abf5);},'fBneT':function(_0x2bfdcc,_0x3264be,_0x274925){return _0x2bfdcc(_0x3264be,_0x274925);},'XBvSy':_0x24cbe3(0x1d0),'jmyTe':function(_0x746cc2){return _0x746cc2();}};let _0x576fc3=![];return new Promise((_0x564e9c,_0xdc9925)=>{const _0x53a2f1=_0x24cbe3,_0x4fb02e={'nqDnO':function(_0x41a518,_0x36f643,_0x3c9e9b){const _0x4e265c=_0x430a;return _0x58c7f6[_0x4e265c(0x1eb)](_0x41a518,_0x36f643,_0x3c9e9b);},'tgqlo':_0x58c7f6[_0x53a2f1(0x1b6)]};_0x58c7f6[_0x53a2f1(0x1eb)](setTimeout,()=>{const _0x385cf8=_0x53a2f1;!_0x576fc3&&(_0x58c7f6['LZxuV'](logDebug,_0x58c7f6['waTZK']),_0x58c7f6[_0x385cf8(0x1cd)](_0xdc9925,_0x58c7f6[_0x385cf8(0x1bc)]));},0x1388);const _0x160289=(_0x1e6888,_0x31952b)=>{const _0xe8dfba=_0x53a2f1;_0x576fc3=!![],_0x4fb02e[_0xe8dfba(0x1ce)](logDebug,_0x4fb02e[_0xe8dfba(0x1e7)],_0x31952b),_0x564e9c(_0x31952b);};groupMemberTasks[_0x53a2f1(0x1ca)](_0x58c7f6['jmyTe'](randomUUID),_0x160289),napCatCore[_0x53a2f1(0x1cb)][_0x53a2f1(0x1d9)]()[_0x53a2f1(0x1e0)](_0x39a0d5)[_0x53a2f1(0x1b8)]();});}static async[_0x47b66f(0x1e9)](_0x4b5450,_0x2c4665=0xbb8){const _0x182f22=_0x47b66f,_0x18f8cf={'uWxBI':_0x182f22(0x1bb),'iqvou':function(_0xdb4ba2,_0x5dc789){return _0xdb4ba2!==_0x5dc789;},'MmcqR':function(_0x54ad1a,_0xbd2b33){return _0x54ad1a+_0xbd2b33;},'ulcXy':_0x182f22(0x1d6),'vIqMT':function(_0x2b86f8,_0x404586,_0x87ff81){return _0x2b86f8(_0x404586,_0x87ff81);}},_0x3371e2=napCatCore[_0x182f22(0x1cb)]['getGroupService'](),_0x3ae78f=_0x3371e2['createMemberListScene'](_0x4b5450,_0x18f8cf[_0x182f22(0x1ba)]),_0x1e4cc2=await _0x3371e2[_0x182f22(0x1bd)](_0x3ae78f,undefined,_0x2c4665);if(_0x18f8cf[_0x182f22(0x1da)](_0x1e4cc2['errCode'],0x0))throw _0x18f8cf[_0x182f22(0x1ec)](_0x18f8cf[_0x182f22(0x1c2)],_0x1e4cc2[_0x182f22(0x1d7)]);return _0x18f8cf[_0x182f22(0x1db)](logDebug,'获取群('+_0x4b5450+_0x182f22(0x1c8),_0x182f22(0x1c3)+_0x1e4cc2['result'][_0x182f22(0x1b4)]),_0x1e4cc2[_0x182f22(0x1c1)][_0x182f22(0x1cf)]['forEach'](_0x2f2390=>{uid2UinMap[_0x2f2390['uid']]=_0x2f2390['uin'];}),_0x1e4cc2['result']['infos'];}static async[_0x47b66f(0x1c9)](){}static async[_0x47b66f(0x1be)](){}static async[_0x47b66f(0x1c7)](_0x4363d4,_0x1f7581,_0x4d5cd4){const _0x50ec2d=_0x47b66f;return napCatCore[_0x50ec2d(0x1cb)][_0x50ec2d(0x1d9)]()[_0x50ec2d(0x1cc)](![],{'operateType':_0x1f7581,'targetMsg':{'seq':_0x4363d4[_0x50ec2d(0x1d5)],'type':_0x4363d4[_0x50ec2d(0x1d3)],'groupCode':_0x4363d4[_0x50ec2d(0x1df)][_0x50ec2d(0x1e6)],'postscript':_0x4d5cd4||''}});}static async['quitGroup'](_0x14a369){const _0x3b105b=_0x47b66f;return napCatCore['session'][_0x3b105b(0x1d9)]()[_0x3b105b(0x1e8)](_0x14a369);}static async[_0x47b66f(0x1de)](_0x1ec710,_0x5d333e,_0x5599dc=![],_0x2db314=''){const _0x19e25a=_0x47b66f;return napCatCore[_0x19e25a(0x1cb)][_0x19e25a(0x1d9)]()[_0x19e25a(0x1de)](_0x1ec710,_0x5d333e,_0x5599dc,_0x2db314);}static async[_0x47b66f(0x1d8)](_0x501bd3,_0x3d8a67){const _0x34f235=_0x47b66f;return napCatCore[_0x34f235(0x1cb)][_0x34f235(0x1d9)]()[_0x34f235(0x1dd)](_0x501bd3,_0x3d8a67);}static async['banGroup'](_0x145d1f,_0x36c34a){const _0x2f31e6=_0x47b66f;return napCatCore[_0x2f31e6(0x1cb)][_0x2f31e6(0x1d9)]()[_0x2f31e6(0x1ed)](_0x145d1f,_0x36c34a);}static async[_0x47b66f(0x1e1)](_0x14d2b9,_0x201922,_0x24fca4){const _0x3a0b2e=_0x47b66f;return napCatCore[_0x3a0b2e(0x1cb)][_0x3a0b2e(0x1d9)]()['modifyMemberCardName'](_0x14d2b9,_0x201922,_0x24fca4);}static async[_0x47b66f(0x1b5)](_0x55fcbc,_0x5d5768,_0x2f1eda){const _0x4bb48e=_0x47b66f;return napCatCore['session']['getGroupService']()[_0x4bb48e(0x1ea)](_0x55fcbc,_0x5d5768,_0x2f1eda);}static async['setGroupName'](_0x276e17,_0xe9c800){const _0x3e8d09=_0x47b66f;return napCatCore[_0x3e8d09(0x1cb)]['getGroupService']()[_0x3e8d09(0x1d4)](_0x276e17,_0xe9c800,![]);}static async['setGroupTitle'](_0x2c36c6,_0x5d3dd6,_0x4cb378){}static[_0x47b66f(0x1c0)](_0x5df339,_0x86ba5e,_0x36c304){}}function _0x793b(){const _0x5aaff7=['setMemberRole','XBvSy','412330dFNRRU','then','MbghO','uWxBI','groupMemberList_MainWindow','waTZK','getNextMemberList','getGroupIgnoreNotifies','onGroupListUpdate','publishGroupBulletin','result','ulcXy','finish:\x20','737002gKKlYz','651805nDXNEh','564mTynpn','handleGroupRequest',')成员列表结果:','getGroupNotifies','set','session','operateSysNotify','OVHfG','nqDnO','infos','获取群列表完成','6jMkpDm','3012FVAVgI','type','modifyGroupName','seq','获取群成员列表出错,','errMsg','banMember','getGroupService','iqvou','vIqMT','99jtlNhx','setMemberShutUp','kickMember','group','getGroupList','setMemberCard','delete','1177768inDKPY','获取群列表超时','9BNnnMl','groupCode','tgqlo','quitGroup','getGroupMembers','modifyMemberRole','fBneT','MmcqR','setGroupShutUp','22244OgIAqG','189103eCpEXa','finish'];_0x793b=function(){return _0x5aaff7;};return _0x793b();} \ 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 a57d680e..9335ec3b 100644 --- a/src/core.lib/src/apis/index.js +++ b/src/core.lib/src/apis/index.js @@ -1 +1 @@ -(function(_0x57316c,_0x1e2b29){var _0x11e8ad=_0x19c3,_0x33c184=_0x57316c();while(!![]){try{var _0xe45816=-parseInt(_0x11e8ad(0x1a1))/0x1*(-parseInt(_0x11e8ad(0x19d))/0x2)+parseInt(_0x11e8ad(0x19e))/0x3*(-parseInt(_0x11e8ad(0x19f))/0x4)+parseInt(_0x11e8ad(0x199))/0x5*(parseInt(_0x11e8ad(0x1a0))/0x6)+-parseInt(_0x11e8ad(0x198))/0x7+-parseInt(_0x11e8ad(0x19a))/0x8*(parseInt(_0x11e8ad(0x197))/0x9)+-parseInt(_0x11e8ad(0x19c))/0xa*(-parseInt(_0x11e8ad(0x196))/0xb)+parseInt(_0x11e8ad(0x19b))/0xc;if(_0xe45816===_0x1e2b29)break;else _0x33c184['push'](_0x33c184['shift']());}catch(_0x4882fa){_0x33c184['push'](_0x33c184['shift']());}}}(_0x27af,0xc3754));export*from'./file';function _0x27af(){var _0x239a67=['4pTsAPl','303uXWCzx','43916VWajJv','1470eVCNqa','466891FMmZyS','14003396anGmlR','9eOpuDg','10854578IfDkIk','965dlwvIv','3961064rsLWFj','20413908vnFrSI','10tfkAMC'];_0x27af=function(){return _0x239a67;};return _0x27af();}export*from'./friend';export*from'./group';function _0x19c3(_0x253f89,_0x5e154f){var _0x27afdb=_0x27af();return _0x19c3=function(_0x19c3af,_0x21ca05){_0x19c3af=_0x19c3af-0x196;var _0x4b2466=_0x27afdb[_0x19c3af];return _0x4b2466;},_0x19c3(_0x253f89,_0x5e154f);}export*from'./msg';export*from'./user';export*from'./webapi';export*from'./window'; \ No newline at end of file +(function(_0x2fef20,_0x3d56fc){var _0x60620e=_0x4590,_0x1ae66e=_0x2fef20();while(!![]){try{var _0x380e03=parseInt(_0x60620e(0x19e))/0x1*(parseInt(_0x60620e(0x195))/0x2)+parseInt(_0x60620e(0x19b))/0x3*(-parseInt(_0x60620e(0x198))/0x4)+-parseInt(_0x60620e(0x19d))/0x5*(parseInt(_0x60620e(0x19f))/0x6)+parseInt(_0x60620e(0x19c))/0x7*(parseInt(_0x60620e(0x199))/0x8)+-parseInt(_0x60620e(0x196))/0x9*(parseInt(_0x60620e(0x197))/0xa)+-parseInt(_0x60620e(0x1a0))/0xb+parseInt(_0x60620e(0x19a))/0xc;if(_0x380e03===_0x3d56fc)break;else _0x1ae66e['push'](_0x1ae66e['shift']());}catch(_0x4ab55d){_0x1ae66e['push'](_0x1ae66e['shift']());}}}(_0x975c,0x2bc54));function _0x4590(_0x587f05,_0x49bd8f){var _0x975cf6=_0x975c();return _0x4590=function(_0x459041,_0x419a6a){_0x459041=_0x459041-0x195;var _0x5868ab=_0x975cf6[_0x459041];return _0x5868ab;},_0x4590(_0x587f05,_0x49bd8f);}export*from'./file';export*from'./friend';function _0x975c(){var _0x3b9a88=['702nVPjic','3746215NQpjON','230072zBbBPv','1584675IUpRrg','10cWWNtt','57220uvImTc','8iSeCFz','7630980duuBKj','36KLkAWR','775306WLMGSG','4665ZniUxO','2HyjHBI'];_0x975c=function(){return _0x3b9a88;};return _0x975c();}export*from'./group';export*from'./msg';export*from'./user';export*from'./webapi';export*from'./window'; \ 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 ea10d5d7..ff1a462f 100644 --- a/src/core.lib/src/apis/msg.js +++ b/src/core.lib/src/apis/msg.js @@ -1 +1 @@ -const _0x37bea7=_0x5702;(function(_0x33ac15,_0x3a12f5){const _0x55f1d6=_0x5702,_0x5400da=_0x33ac15();while(!![]){try{const _0x3d52e8=-parseInt(_0x55f1d6(0x149))/0x1*(parseInt(_0x55f1d6(0x137))/0x2)+-parseInt(_0x55f1d6(0x128))/0x3+-parseInt(_0x55f1d6(0x124))/0x4*(parseInt(_0x55f1d6(0x13c))/0x5)+-parseInt(_0x55f1d6(0x154))/0x6+-parseInt(_0x55f1d6(0x14f))/0x7+parseInt(_0x55f1d6(0x14e))/0x8*(-parseInt(_0x55f1d6(0x12c))/0x9)+-parseInt(_0x55f1d6(0x138))/0xa*(-parseInt(_0x55f1d6(0x12b))/0xb);if(_0x3d52e8===_0x3a12f5)break;else _0x5400da['push'](_0x5400da['shift']());}catch(_0x5acfa6){_0x5400da['push'](_0x5400da['shift']());}}}(_0x142a,0x71fb0));function _0x142a(){const _0x3ca95a=['19774yBrFOy','721450elpsZC','getMsgsBySeqAndCount','app','RXgEi','130Jgpeqe','onMsgInfoListUpdate','com.tencent.multimsg','getMultiMsg','length','map','vkvss','peerUid','multiForwardMsgWithComment','fetchRecentContact','TJGYV','recallMsg','parse','41YhJivP','sONiv','getMsgService','then','senderUid','8HMFwwW','2068934ofhOBS','nick','delete','bytesData','qbZSJ','3880812oeVRch','cTtMz','OSPBz','set','session','mMAHL','onLoginSuccess','nraax','tfKCU','OtwKg','activateChat','getMsgsIncludeSelf','find','catch','msgId','addListener','uid','12316fIfHIz','AtuHy','发送超时','sendMsg','142149aZETFG','szxMe','guildId','385lxIIoB','5247387SjQfZq','elements','chatType','getMsgsByMsgId','sendStatus','vxJQt','jbvrS','setMsgRead','edNLT','onAddSendMsg','getMsgHistory'];_0x142a=function(){return _0x3ca95a;};return _0x142a();}import{selfInfo}from'@/core/data';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[_0x37bea7(0x135)]=_0x23dab8=>{const _0xfb4074=_0x37bea7,_0x54280f={'UVyGB':function(_0x52f6a9,_0xba9710){return _0x52f6a9(_0xba9710);},'OSPBz':function(_0x5dfcb1,_0x49f5b0){return _0x5dfcb1 instanceof _0x49f5b0;}};for(const [_0x1917b6,_0x55db9b]of sentMsgTasks){_0x54280f['UVyGB'](_0x55db9b,_0x23dab8),sentMsgTasks[_0xfb4074(0x151)](_0x1917b6);}if(sendMessagePool[_0x23dab8[_0xfb4074(0x143)]]){const _0x30f8eb=sendMessagePool[_0x23dab8[_0xfb4074(0x143)]]?.(_0x23dab8);_0x54280f[_0xfb4074(0x156)](_0x30f8eb,Promise)&&_0x30f8eb[_0xfb4074(0x14c)]()[_0xfb4074(0x120)](logError);}},msgListener[_0x37bea7(0x13d)]=_0x12291b=>{const _0x10d337={'jbvrS':function(_0x579d85,_0x268a25){return _0x579d85 instanceof _0x268a25;}};_0x12291b['forEach'](_0x2924ba=>{const _0x27a042={'edNLT':function(_0x53afcf,_0x25696b){return _0x53afcf(_0x25696b);},'kPggl':function(_0x363293,_0x2ac91a){const _0x19ef96=_0x5702;return _0x10d337[_0x19ef96(0x132)](_0x363293,_0x2ac91a);}};new Promise((_0x5790a9,_0x56ad9c)=>{const _0x770409=_0x5702;for(const _0xd9695c in sendSuccessCBMap){const _0x1f55cb=sendSuccessCBMap[_0xd9695c],_0x20d5a2=_0x27a042['edNLT'](_0x1f55cb,_0x2924ba),_0x3c4095=_0x333760=>{_0x333760&&delete sendSuccessCBMap[_0xd9695c];};_0x27a042['kPggl'](_0x20d5a2,Promise)?_0x20d5a2['then'](_0x3c4095):_0x27a042[_0x770409(0x134)](_0x3c4095,_0x20d5a2);}})['then']()['catch'](log);});},setTimeout(()=>{const _0x444328=_0x37bea7;napCatCore[_0x444328(0x119)](()=>{const _0x7d2b00=_0x444328;napCatCore[_0x7d2b00(0x122)](msgListener);});},0x64);function _0x5702(_0xb88da5,_0x2bf19f){const _0x142af8=_0x142a();return _0x5702=function(_0x57021a,_0x24e07f){_0x57021a=_0x57021a-0x118;let _0x25ebfd=_0x142af8[_0x57021a];return _0x25ebfd;},_0x5702(_0xb88da5,_0x2bf19f);}export class NTQQMsgApi{static async['setEmojiLike'](_0x4f2dac,_0x4de3c9,_0x16fe2e,_0x1e5ab7=!![]){const _0x12c641=_0x37bea7,_0x5dce2d={'qbZSJ':function(_0x23c3ce,_0x29c3bb){return _0x23c3ce>_0x29c3bb;}};return napCatCore[_0x12c641(0x158)]['getMsgService']()['setMsgEmojiLikes'](_0x4f2dac,_0x4de3c9,_0x16fe2e,_0x5dce2d[_0x12c641(0x153)](_0x16fe2e[_0x12c641(0x140)],0x3)?'2':'1',_0x1e5ab7);}static async[_0x37bea7(0x13f)](_0x449579,_0x39c7f3,_0x57fcdd){const _0x34fb71=_0x37bea7;return napCatCore[_0x34fb71(0x158)][_0x34fb71(0x14b)]()[_0x34fb71(0x13f)](_0x449579,_0x39c7f3,_0x57fcdd);}static async['getMsgsByMsgId'](_0x59ed68,_0x483430){const _0xf428b3=_0x37bea7;return await napCatCore[_0xf428b3(0x158)][_0xf428b3(0x14b)]()[_0xf428b3(0x12f)](_0x59ed68,_0x483430);}static async[_0x37bea7(0x139)](_0x22c97b,_0x34d225,_0x11569,_0x360a11,_0xacdc4d){const _0x4a6fd9=_0x37bea7;return await napCatCore['session']['getMsgService']()[_0x4a6fd9(0x139)](_0x22c97b,_0x34d225,_0x11569,_0x360a11,_0xacdc4d);}static async[_0x37bea7(0x11d)](_0x538964){}static async['activateChatAndGetHistory'](_0x1f961e){}static async[_0x37bea7(0x133)](_0x1d33e9){const _0x34ebcd=_0x37bea7;return napCatCore[_0x34ebcd(0x158)]['getMsgService']()[_0x34ebcd(0x133)](_0x1d33e9[_0x34ebcd(0x12e)],_0x1d33e9[_0x34ebcd(0x143)],_0x1d33e9[_0x34ebcd(0x12a)]);}static async[_0x37bea7(0x136)](_0x4804eb,_0x47765b,_0x3076a3){const _0x15a02e=_0x37bea7;return napCatCore['session'][_0x15a02e(0x14b)]()[_0x15a02e(0x11e)](_0x4804eb,_0x47765b,_0x3076a3,!![]);}static async[_0x37bea7(0x145)](){}static async[_0x37bea7(0x147)](_0x49207b,_0x491585){const _0x5cf218=_0x37bea7;await napCatCore[_0x5cf218(0x158)][_0x5cf218(0x14b)]()['recallMsg']({'chatType':_0x49207b[_0x5cf218(0x12e)],'peerUid':_0x49207b[_0x5cf218(0x143)]},_0x491585);}static async[_0x37bea7(0x127)](_0x10fc4c,_0x376d8f,_0x3f1e5c=!![],_0xf11b28=0x2710){const _0x1659cb=_0x37bea7,_0x1f5146={'vxJQt':function(_0x192091,_0xb224e){return _0x192091>_0xb224e;},'sONiv':_0x1659cb(0x126),'vkvss':function(_0x593ce8,_0x4da300){return _0x593ce8(_0x4da300);},'mMAHL':function(_0x834a5d,_0x354bba){return _0x834a5d===_0x354bba;},'szxMe':function(_0x2b9d66,_0x2c339a){return _0x2b9d66(_0x2c339a);},'tfKCU':function(_0xbeaf8b){return _0xbeaf8b();},'LiCUT':function(_0x5e9834,_0x5978a0,_0x1296fd){return _0x5e9834(_0x5978a0,_0x1296fd);},'RXgEi':function(_0x18c21e){return _0x18c21e();}},_0x193155=_0x10fc4c['peerUid'];let _0x484181=0x0;const _0x8e593d=async()=>{const _0x1aa56f=_0x1659cb;if(_0x1f5146[_0x1aa56f(0x131)](_0x484181,_0xf11b28))throw _0x1f5146[_0x1aa56f(0x14a)];const _0x40924d=sendMessagePool[_0x10fc4c['peerUid']];if(_0x40924d)return await _0x1f5146['vkvss'](sleep,0x1f4),_0x484181+=0x1f4,await _0x8e593d();else return;};return await _0x1f5146[_0x1659cb(0x13b)](_0x8e593d),new Promise((_0x2c3c9f,_0x28e0ec)=>{const _0x509aea=_0x1659cb;let _0x4da80b=![],_0x2f0b76=null;const _0x544cb4=_0x1f5146[_0x509aea(0x11b)](randomUUID);sendSuccessCBMap[_0x544cb4]=_0x5d5b0c=>{const _0x5e2149=_0x509aea;if(_0x1f5146[_0x5e2149(0x118)](_0x5d5b0c[_0x5e2149(0x121)],_0x2f0b76?.[_0x5e2149(0x121)])){if(_0x1f5146[_0x5e2149(0x118)](_0x5d5b0c[_0x5e2149(0x130)],0x2))return delete sendSuccessCBMap[_0x544cb4],_0x4da80b=!![],_0x1f5146[_0x5e2149(0x129)](_0x2c3c9f,_0x5d5b0c),!![];return![];}return![];},sendMessagePool[_0x193155]=async _0x2c0401=>{delete sendMessagePool[_0x193155],_0x2f0b76=_0x2c0401;},_0x1f5146['LiCUT'](setTimeout,()=>{const _0x4a48f7=_0x509aea;if(_0x4da80b)return;delete sendMessagePool[_0x193155],delete sendSuccessCBMap[_0x544cb4],_0x1f5146[_0x4a48f7(0x142)](_0x28e0ec,_0x1f5146[_0x4a48f7(0x14a)]);},_0xf11b28);const _0x43c02e=napCatCore['session'][_0x509aea(0x14b)]()[_0x509aea(0x127)]('0',_0x10fc4c,_0x376d8f,new Map());});}static async['forwardMsg'](_0x4bee1e,_0x2d5302,_0x3990d3){}static async['multiForwardMsg'](_0x461171,_0x10615a,_0x33f1ad){const _0x5968df=_0x37bea7,_0x283231={'AtuHy':function(_0x4ac101,_0x2df05f){return _0x4ac101!=_0x2df05f;},'cTtMz':_0x5968df(0x13e),'nraax':'转发消息超时','OtwKg':function(_0x2dcc16){return _0x2dcc16();}},_0xc697ac=_0x33f1ad[_0x5968df(0x141)](_0x1d8a3c=>{const _0x268e1b=_0x5968df;return{'msgId':_0x1d8a3c,'senderShowName':selfInfo[_0x268e1b(0x150)]};});return new Promise((_0x26f09c,_0x7590ab)=>{const _0x2d3f68=_0x5968df,_0x5053a6={'TJGYV':_0x283231[_0x2d3f68(0x11a)]};let _0x1576d6=![];const _0x59eff1=_0x41c704=>{const _0x39263c=_0x2d3f68,_0x319bbc=_0x41c704[_0x39263c(0x12d)][_0x39263c(0x11f)](_0x50c150=>_0x50c150['arkElement']);if(!_0x319bbc)return;const _0x2d98ce=JSON[_0x39263c(0x148)](_0x319bbc['arkElement'][_0x39263c(0x152)]);if(_0x283231[_0x39263c(0x125)](_0x2d98ce[_0x39263c(0x13a)],_0x283231[_0x39263c(0x155)]))return;_0x41c704[_0x39263c(0x143)]==_0x10615a[_0x39263c(0x143)]&&_0x41c704[_0x39263c(0x14d)]==selfInfo[_0x39263c(0x123)]&&(_0x1576d6=!![],_0x26f09c(_0x41c704));};sentMsgTasks[_0x2d3f68(0x157)](_0x283231[_0x2d3f68(0x11c)](randomUUID),_0x59eff1),setTimeout(()=>{const _0x52b299=_0x2d3f68;!_0x1576d6&&_0x7590ab(_0x5053a6[_0x52b299(0x146)]);},0x1388),napCatCore[_0x2d3f68(0x158)]['getMsgService']()[_0x2d3f68(0x144)](_0xc697ac,_0x461171,_0x10615a,[],new Map());});}} \ No newline at end of file +const _0x8aa741=_0x22e3;(function(_0x141319,_0xc4ed8f){const _0x27f394=_0x22e3,_0x305f7d=_0x141319();while(!![]){try{const _0x2744e0=-parseInt(_0x27f394(0x218))/0x1*(-parseInt(_0x27f394(0x1ef))/0x2)+parseInt(_0x27f394(0x217))/0x3+parseInt(_0x27f394(0x214))/0x4*(-parseInt(_0x27f394(0x206))/0x5)+parseInt(_0x27f394(0x1fd))/0x6*(-parseInt(_0x27f394(0x1ff))/0x7)+-parseInt(_0x27f394(0x20a))/0x8*(-parseInt(_0x27f394(0x209))/0x9)+parseInt(_0x27f394(0x1f1))/0xa*(-parseInt(_0x27f394(0x215))/0xb)+parseInt(_0x27f394(0x22d))/0xc*(parseInt(_0x27f394(0x21e))/0xd);if(_0x2744e0===_0xc4ed8f)break;else _0x305f7d['push'](_0x305f7d['shift']());}catch(_0x68e94d){_0x305f7d['push'](_0x305f7d['shift']());}}}(_0x34e1,0x4ce6d));import{selfInfo}from'@/core/data';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';function _0x22e3(_0x38d410,_0x2a1171){const _0x34e100=_0x34e1();return _0x22e3=function(_0x22e399,_0x1dca63){_0x22e399=_0x22e399-0x1e7;let _0x318bfa=_0x34e100[_0x22e399];return _0x318bfa;},_0x22e3(_0x38d410,_0x2a1171);}const sendMessagePool={},sendSuccessCBMap={},sentMsgTasks=new Map(),msgListener=new MsgListener();msgListener[_0x8aa741(0x1e7)]=_0x332f18=>{const _0x939640=_0x8aa741,_0x2f9222={'OYjvD':function(_0x3e8007,_0x4209f0){return _0x3e8007(_0x4209f0);},'IbeSz':function(_0x3bc940,_0x1bf5b2){return _0x3bc940 instanceof _0x1bf5b2;}};for(const [_0x15ee69,_0x77bf8e]of sentMsgTasks){_0x2f9222[_0x939640(0x1fb)](_0x77bf8e,_0x332f18),sentMsgTasks['delete'](_0x15ee69);}if(sendMessagePool[_0x332f18['peerUid']]){const _0x3b8e4e=sendMessagePool[_0x332f18[_0x939640(0x22a)]]?.(_0x332f18);_0x2f9222['IbeSz'](_0x3b8e4e,Promise)&&_0x3b8e4e[_0x939640(0x200)]()[_0x939640(0x223)](logError);}},msgListener[_0x8aa741(0x201)]=_0x5e2fe6=>{const _0x5b5f58=_0x8aa741,_0x13d1c6={'MFJyc':function(_0x59c91d,_0x23ba24){return _0x59c91d(_0x23ba24);},'rZCHs':function(_0x3155be,_0x402583){return _0x3155be instanceof _0x402583;},'cbSaZ':function(_0x4ae19e,_0x4aabec){return _0x4ae19e(_0x4aabec);}};_0x5e2fe6[_0x5b5f58(0x221)](_0x595f3f=>{const _0x5ec394=_0x5b5f58;new Promise((_0x185869,_0x1afca6)=>{const _0x4c2fe4=_0x22e3;for(const _0x4a0ac0 in sendSuccessCBMap){const _0x36561e=sendSuccessCBMap[_0x4a0ac0],_0x485246=_0x13d1c6[_0x4c2fe4(0x224)](_0x36561e,_0x595f3f),_0x3c77f5=_0x2f745a=>{_0x2f745a&&delete sendSuccessCBMap[_0x4a0ac0];};_0x13d1c6[_0x4c2fe4(0x1ea)](_0x485246,Promise)?_0x485246[_0x4c2fe4(0x200)](_0x3c77f5):_0x13d1c6[_0x4c2fe4(0x21f)](_0x3c77f5,_0x485246);}})['then']()[_0x5ec394(0x223)](log);});},setTimeout(()=>{const _0x52c4c7=_0x8aa741;napCatCore[_0x52c4c7(0x216)](()=>{const _0x10e394=_0x52c4c7;napCatCore[_0x10e394(0x21d)](msgListener);});},0x64);export class NTQQMsgApi{static async[_0x8aa741(0x1f0)](_0x11cda8,_0x59ced9,_0x18e90e,_0x5b4c0c=!![]){const _0x506cc5=_0x8aa741,_0x31df44={'zkWUc':function(_0xd5f9f1,_0xcfe05d){return _0xd5f9f1>_0xcfe05d;}};return napCatCore[_0x506cc5(0x210)][_0x506cc5(0x20f)]()[_0x506cc5(0x1fc)](_0x11cda8,_0x59ced9,_0x18e90e,_0x31df44[_0x506cc5(0x20b)](_0x18e90e[_0x506cc5(0x212)],0x3)?'2':'1',_0x5b4c0c);}static async[_0x8aa741(0x1f3)](_0x47dd3c,_0x3d1866,_0x5a7de6){const _0x19cc2f=_0x8aa741;return napCatCore[_0x19cc2f(0x210)][_0x19cc2f(0x20f)]()[_0x19cc2f(0x1f3)](_0x47dd3c,_0x3d1866,_0x5a7de6);}static async['getMsgsByMsgId'](_0x3e5f33,_0x9deb62){const _0x4b7c19=_0x8aa741;return await napCatCore[_0x4b7c19(0x210)][_0x4b7c19(0x20f)]()[_0x4b7c19(0x1eb)](_0x3e5f33,_0x9deb62);}static async[_0x8aa741(0x1f8)](_0x1badd5,_0xd0ba3c,_0x4d29e3,_0x41ce68,_0x1d0c03){const _0x3a51f2=_0x8aa741;return await napCatCore[_0x3a51f2(0x210)]['getMsgService']()[_0x3a51f2(0x1f8)](_0x1badd5,_0xd0ba3c,_0x4d29e3,_0x41ce68,_0x1d0c03);}static async[_0x8aa741(0x1ee)](_0x2563ea){}static async[_0x8aa741(0x1e8)](_0x47841b){}static async[_0x8aa741(0x20d)](_0x4dfa41){const _0xb96a0f=_0x8aa741;return napCatCore['session'][_0xb96a0f(0x20f)]()[_0xb96a0f(0x20d)](_0x4dfa41[_0xb96a0f(0x1ed)],_0x4dfa41['peerUid'],_0x4dfa41[_0xb96a0f(0x208)]);}static async[_0x8aa741(0x220)](_0x3d5a9a,_0x5544c2,_0x46efd6){const _0x3aba28=_0x8aa741;return napCatCore[_0x3aba28(0x210)]['getMsgService']()[_0x3aba28(0x1fe)](_0x3d5a9a,_0x5544c2,_0x46efd6,!![]);}static async[_0x8aa741(0x229)](){}static async[_0x8aa741(0x1f2)](_0x3c0f3b,_0x47ba78){const _0x50670d=_0x8aa741;await napCatCore['session'][_0x50670d(0x20f)]()[_0x50670d(0x1f2)]({'chatType':_0x3c0f3b['chatType'],'peerUid':_0x3c0f3b[_0x50670d(0x22a)]},_0x47ba78);}static async[_0x8aa741(0x1f4)](_0xa1c787,_0x189db6,_0x4d2997=!![],_0x471429=0x2710){const _0xad5475=_0x8aa741,_0x180685={'hcEfj':function(_0x59b2ca,_0xf2a175){return _0x59b2ca>_0xf2a175;},'PWpYH':_0xad5475(0x225),'xxRPJ':function(_0x52dd1c,_0x1fdc60){return _0x52dd1c===_0x1fdc60;},'GtPjz':function(_0x4dba6e,_0x972fef){return _0x4dba6e(_0x972fef);},'mAvDv':function(_0x13cb72){return _0x13cb72();},'MzIzn':function(_0x131ff8,_0x370df8,_0x2c56ef){return _0x131ff8(_0x370df8,_0x2c56ef);},'SXgXh':function(_0x382e53){return _0x382e53();}},_0x4f708a=_0xa1c787['peerUid'];let _0x370001=0x0;const _0x25b78d=async()=>{const _0x385286=_0xad5475;if(_0x180685[_0x385286(0x204)](_0x370001,_0x471429))throw _0x180685['PWpYH'];const _0x4ce3c3=sendMessagePool[_0xa1c787[_0x385286(0x22a)]];if(_0x4ce3c3)return await sleep(0x1f4),_0x370001+=0x1f4,await _0x25b78d();else return;};return await _0x180685['SXgXh'](_0x25b78d),new Promise((_0x189255,_0x3cec88)=>{const _0x2aa672=_0xad5475,_0x5df499={'BcJfV':function(_0x185343,_0x34adfc){return _0x185343(_0x34adfc);},'XMthO':_0x180685[_0x2aa672(0x211)]};let _0x399561=![],_0x4c6c35=null;const _0x79af2=_0x180685[_0x2aa672(0x20c)](randomUUID);sendSuccessCBMap[_0x79af2]=_0x26ae93=>{const _0x273712=_0x2aa672;if(_0x26ae93[_0x273712(0x219)]===_0x4c6c35?.[_0x273712(0x219)]){if(_0x180685['xxRPJ'](_0x26ae93[_0x273712(0x22b)],0x2))return delete sendSuccessCBMap[_0x79af2],_0x399561=!![],_0x180685[_0x273712(0x226)](_0x189255,_0x26ae93),!![];return![];}return![];},sendMessagePool[_0x4f708a]=async _0x3f13c3=>{delete sendMessagePool[_0x4f708a],_0x4c6c35=_0x3f13c3;},_0x180685['MzIzn'](setTimeout,()=>{const _0x313aee=_0x2aa672;if(_0x399561)return;delete sendMessagePool[_0x4f708a],delete sendSuccessCBMap[_0x79af2],_0x5df499[_0x313aee(0x20e)](_0x3cec88,_0x5df499['XMthO']);},_0x471429);const _0x52cde1=napCatCore[_0x2aa672(0x210)][_0x2aa672(0x20f)]()[_0x2aa672(0x1f4)]('0',_0xa1c787,_0x189db6,new Map());});}static async[_0x8aa741(0x1fa)](_0x531789,_0xed8a53,_0x5c19c3){}static async[_0x8aa741(0x205)](_0xb283d4,_0x49fa42,_0xa88e70){const _0x307f23=_0x8aa741,_0x5698eb={'jPgDH':function(_0x3649d8,_0x58cdb8){return _0x3649d8!=_0x58cdb8;},'PUPwD':'com.tencent.multimsg','QrReR':function(_0x6b95df,_0x3735a8){return _0x6b95df==_0x3735a8;},'GgrPn':function(_0x6753d5,_0x28656f){return _0x6753d5(_0x28656f);},'IopUX':function(_0x571cf9){return _0x571cf9();},'PqVRa':function(_0x2e48da,_0x1920c6,_0x55997f){return _0x2e48da(_0x1920c6,_0x55997f);}},_0x46e3f1=_0xa88e70[_0x307f23(0x22c)](_0x1a3a4f=>{return{'msgId':_0x1a3a4f,'senderShowName':selfInfo['nick']};});return new Promise((_0x365860,_0x5330a0)=>{const _0x2f17b9=_0x307f23,_0x3d445f={'teqYh':function(_0x35cfb8,_0x3bd322){return _0x5698eb['GgrPn'](_0x35cfb8,_0x3bd322);}};let _0x547b2a=![];const _0x51904f=_0x4b342f=>{const _0x3ff6a7=_0x22e3,_0x2ed4d8=_0x4b342f[_0x3ff6a7(0x21b)][_0x3ff6a7(0x203)](_0x295814=>_0x295814['arkElement']);if(!_0x2ed4d8)return;const _0x5ed23f=JSON[_0x3ff6a7(0x1ec)](_0x2ed4d8[_0x3ff6a7(0x1f9)][_0x3ff6a7(0x1e9)]);if(_0x5698eb[_0x3ff6a7(0x213)](_0x5ed23f[_0x3ff6a7(0x207)],_0x5698eb[_0x3ff6a7(0x1f6)]))return;_0x4b342f[_0x3ff6a7(0x22a)]==_0x49fa42['peerUid']&&_0x5698eb[_0x3ff6a7(0x21c)](_0x4b342f[_0x3ff6a7(0x222)],selfInfo[_0x3ff6a7(0x1f5)])&&(_0x547b2a=!![],_0x5698eb[_0x3ff6a7(0x227)](_0x365860,_0x4b342f));};sentMsgTasks[_0x2f17b9(0x202)](_0x5698eb['IopUX'](randomUUID),_0x51904f),_0x5698eb[_0x2f17b9(0x228)](setTimeout,()=>{const _0x3fbbf4=_0x2f17b9;!_0x547b2a&&_0x3d445f[_0x3fbbf4(0x1f7)](_0x5330a0,_0x3fbbf4(0x21a));},0x1388),napCatCore[_0x2f17b9(0x210)][_0x2f17b9(0x20f)]()['multiForwardMsgWithComment'](_0x46e3f1,_0xb283d4,_0x49fa42,[],new Map());});}}function _0x34e1(){const _0x2329ba=['getMsgsIncludeSelf','7eVIImM','then','onMsgInfoListUpdate','set','find','hcEfj','multiForwardMsg','5285JfKLSX','app','guildId','13617Atqidg','1624YtwVQI','zkWUc','mAvDv','setMsgRead','BcJfV','getMsgService','session','PWpYH','length','jPgDH','2284WzLTcS','627okuiQD','onLoginSuccess','914667QmnCCz','163233wONVhu','msgId','转发消息超时','elements','QrReR','addListener','218894MdRsHC','cbSaZ','getMsgHistory','forEach','senderUid','catch','MFJyc','发送超时','GtPjz','GgrPn','PqVRa','fetchRecentContact','peerUid','sendStatus','map','588aknQFs','onAddSendMsg','activateChatAndGetHistory','bytesData','rZCHs','getMsgsByMsgId','parse','chatType','activateChat','2IzWsJB','setEmojiLike','81590YXDTXE','recallMsg','getMultiMsg','sendMsg','uid','PUPwD','teqYh','getMsgsBySeqAndCount','arkElement','forwardMsg','OYjvD','setMsgEmojiLikes','1300344FaBefu'];_0x34e1=function(){return _0x2329ba;};return _0x34e1();} \ 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 5329c934..65b93747 100644 --- a/src/core.lib/src/apis/sign.js +++ b/src/core.lib/src/apis/sign.js @@ -1 +1 @@ -var _0x39d812=_0x38b0;function _0x38b0(_0x273eeb,_0x3c76d8){var _0x642bc=_0x642b();return _0x38b0=function(_0x38b022,_0x4fee8f){_0x38b022=_0x38b022-0x9f;var _0x2e14d5=_0x642bc[_0x38b022];return _0x2e14d5;},_0x38b0(_0x273eeb,_0x3c76d8);}(function(_0x36fd12,_0x81dd7b){var _0x5e72ef=_0x38b0,_0x4689c0=_0x36fd12();while(!![]){try{var _0xeb5cc5=parseInt(_0x5e72ef(0xac))/0x1*(-parseInt(_0x5e72ef(0xa2))/0x2)+-parseInt(_0x5e72ef(0xb4))/0x3*(parseInt(_0x5e72ef(0xaf))/0x4)+parseInt(_0x5e72ef(0xad))/0x5*(parseInt(_0x5e72ef(0xa7))/0x6)+-parseInt(_0x5e72ef(0xa9))/0x7*(-parseInt(_0x5e72ef(0xb2))/0x8)+parseInt(_0x5e72ef(0xb5))/0x9+-parseInt(_0x5e72ef(0xb8))/0xa*(parseInt(_0x5e72ef(0xb0))/0xb)+parseInt(_0x5e72ef(0xa1))/0xc*(parseInt(_0x5e72ef(0xb9))/0xd);if(_0xeb5cc5===_0x81dd7b)break;else _0x4689c0['push'](_0x4689c0['shift']());}catch(_0x2c5f9f){_0x4689c0['push'](_0x4689c0['shift']());}}}(_0x642b,0x53938));function _0x642b(){var _0x10278a=['2767914JEsGWM','CrdSG','KqDvZ','10XUHqNJ','81913Rncivk','url','sign','音乐消息生成成功','dRyjR','348QuluTJ','7852dNoVAy','application/json','POST','statusText','then','3540IJlDCr','catch','7VbMErF','mXkLg','UGPaf','59YGlVgn','3695xyxdvE','stringify','1223808LOXchn','4021743uvVczl','idtJS','5001552IfPyuc','COaxV','6mpnKhB'];_0x642b=function(){return _0x10278a;};return _0x642b();}import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x39d812(0xba)];constructor(_0x13615c){this['url']=_0x13615c;}[_0x39d812(0xbb)](_0x276c2f){var _0x4dc5c9=_0x39d812,_0x5c8b7b={'UGPaf':function(_0x5d4c11,_0x272db8){return _0x5d4c11(_0x272db8);},'dRyjR':function(_0x10dbe6,_0x45f088,_0x2088d7){return _0x10dbe6(_0x45f088,_0x2088d7);},'CrdSG':_0x4dc5c9(0x9f),'idtJS':function(_0x34636e,_0x2ffd9f){return _0x34636e(_0x2ffd9f);},'yzMkd':_0x4dc5c9(0xa4),'COaxV':_0x4dc5c9(0xa3)};return new Promise((_0x22268d,_0x591232)=>{var _0x3048b0=_0x4dc5c9,_0x52b4bb={'tadgS':function(_0x50f133,_0x13b476,_0x2bac63){return _0x5c8b7b['dRyjR'](_0x50f133,_0x13b476,_0x2bac63);},'KqDvZ':_0x5c8b7b[_0x3048b0(0xb6)],'mXkLg':function(_0x228820,_0x51d19c){var _0x2500fc=_0x3048b0;return _0x5c8b7b[_0x2500fc(0xb1)](_0x228820,_0x51d19c);}};_0x5c8b7b[_0x3048b0(0xa0)](fetch,this[_0x3048b0(0xba)],{'method':_0x5c8b7b['yzMkd'],'headers':{'Content-Type':_0x5c8b7b[_0x3048b0(0xb3)]},'body':JSON[_0x3048b0(0xae)](_0x276c2f)})[_0x3048b0(0xa6)](_0x8b8ccb=>{var _0x4ee4c3=_0x3048b0;return!_0x8b8ccb['ok']&&_0x5c8b7b[_0x4ee4c3(0xab)](_0x591232,_0x8b8ccb[_0x4ee4c3(0xa5)]),_0x8b8ccb['json']();})['then'](_0x301bd0=>{var _0x4f1c48=_0x3048b0;_0x52b4bb['tadgS'](logDebug,_0x52b4bb[_0x4f1c48(0xb7)],_0x301bd0),_0x52b4bb[_0x4f1c48(0xaa)](_0x22268d,_0x301bd0);})[_0x3048b0(0xa8)](_0x3e9c1f=>{_0x591232(_0x3e9c1f);});});}} \ No newline at end of file +var _0x3656a9=_0x47ed;(function(_0x171c3,_0x3d78bf){var _0x17dfb0=_0x47ed,_0x104e93=_0x171c3();while(!![]){try{var _0x5c3733=-parseInt(_0x17dfb0(0x159))/0x1*(parseInt(_0x17dfb0(0x162))/0x2)+-parseInt(_0x17dfb0(0x150))/0x3+parseInt(_0x17dfb0(0x14e))/0x4*(-parseInt(_0x17dfb0(0x15b))/0x5)+parseInt(_0x17dfb0(0x15e))/0x6*(-parseInt(_0x17dfb0(0x153))/0x7)+parseInt(_0x17dfb0(0x15c))/0x8*(-parseInt(_0x17dfb0(0x154))/0x9)+parseInt(_0x17dfb0(0x163))/0xa*(-parseInt(_0x17dfb0(0x157))/0xb)+parseInt(_0x17dfb0(0x15d))/0xc;if(_0x5c3733===_0x3d78bf)break;else _0x104e93['push'](_0x104e93['shift']());}catch(_0x1bc3ae){_0x104e93['push'](_0x104e93['shift']());}}}(_0x336a,0x3a697));function _0x336a(){var _0x5e7687=['POST','url','11DsHsWR','BPABk','227647jPQhWk','stringify','1395965YjNhWr','3651448bZaleZ','25322592ZXqWAE','6eYvPWI','sign','then','ygniY','2AXiEJc','2382470fLTfRv','kbomq','catch','音乐消息生成成功','4ghuIde','application/json','956427AftkhZ','VIYQP','json','2454438haOjll','9jjCjaZ'];_0x336a=function(){return _0x5e7687;};return _0x336a();}function _0x47ed(_0x31a760,_0x377417){var _0x336ad6=_0x336a();return _0x47ed=function(_0x47ed8f,_0x45d29e){_0x47ed8f=_0x47ed8f-0x14e;var _0xebea34=_0x336ad6[_0x47ed8f];return _0xebea34;},_0x47ed(_0x31a760,_0x377417);}import{logDebug}from'@/common/utils/log';export class MusicSign{[_0x3656a9(0x156)];constructor(_0x262293){this['url']=_0x262293;}[_0x3656a9(0x15f)](_0x769393){var _0x4a51c4=_0x3656a9,_0x4ba2d={'ygniY':function(_0xdb5d97,_0x5c20b0,_0x131192){return _0xdb5d97(_0x5c20b0,_0x131192);},'kbomq':function(_0x2cb0d8,_0x226472,_0x1c5582){return _0x2cb0d8(_0x226472,_0x1c5582);},'BPABk':_0x4a51c4(0x155)};return new Promise((_0x15a6aa,_0x4c9a3c)=>{var _0x57cd45=_0x4a51c4,_0x284e3b={'VIYQP':function(_0x1966e1,_0x1bbe58){return _0x1966e1(_0x1bbe58);}};_0x4ba2d[_0x57cd45(0x164)](fetch,this[_0x57cd45(0x156)],{'method':_0x4ba2d[_0x57cd45(0x158)],'headers':{'Content-Type':_0x57cd45(0x14f)},'body':JSON[_0x57cd45(0x15a)](_0x769393)})['then'](_0xeedf95=>{var _0x437401=_0x57cd45;return!_0xeedf95['ok']&&_0x284e3b[_0x437401(0x151)](_0x4c9a3c,_0xeedf95['statusText']),_0xeedf95[_0x437401(0x152)]();})[_0x57cd45(0x160)](_0x11f152=>{var _0x44643d=_0x57cd45;_0x4ba2d[_0x44643d(0x161)](logDebug,_0x44643d(0x166),_0x11f152),_0x15a6aa(_0x11f152);})[_0x57cd45(0x165)](_0x54033c=>{var _0x245283=_0x57cd45;_0x284e3b[_0x245283(0x151)](_0x4c9a3c,_0x54033c);});});}} \ 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 78e355cd..d6b1a12d 100644 --- a/src/core.lib/src/apis/user.js +++ b/src/core.lib/src/apis/user.js @@ -1 +1 @@ -const _0x205a59=_0x2d09;(function(_0x2eefbd,_0x2d240a){const _0x35d5fd=_0x2d09,_0x53b884=_0x2eefbd();while(!![]){try{const _0x54ea52=-parseInt(_0x35d5fd(0x1b2))/0x1*(-parseInt(_0x35d5fd(0x1b3))/0x2)+parseInt(_0x35d5fd(0x19e))/0x3*(-parseInt(_0x35d5fd(0x1b0))/0x4)+-parseInt(_0x35d5fd(0x187))/0x5+-parseInt(_0x35d5fd(0x185))/0x6+parseInt(_0x35d5fd(0x18a))/0x7+-parseInt(_0x35d5fd(0x1b4))/0x8+parseInt(_0x35d5fd(0x1ad))/0x9;if(_0x54ea52===_0x2d240a)break;else _0x53b884['push'](_0x53b884['shift']());}catch(_0x551a54){_0x53b884['push'](_0x53b884['shift']());}}}(_0xab1d,0x2d9a3));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';function _0x2d09(_0x520335,_0x4d04c6){const _0xab1d00=_0xab1d();return _0x2d09=function(_0x2d0901,_0x415035){_0x2d0901=_0x2d0901-0x180;let _0x522c8e=_0xab1d00[_0x2d0901];return _0x522c8e;},_0x2d09(_0x520335,_0x4d04c6);}import{ProfileListener}from'@/core/listeners';function _0xab1d(){const _0x5b1477=['getUserDetailInfo','&clientkey=','session','addListener','setQQAvatar','5099832NusYNQ','getRobotService','forEach','1596DLOdJm','getUserDetailInfo\x20timeout','107ohUCjb','596OLRUnY','157408nRYaZZ','sqxWz','setBuddyProfileLike','Skey','getProfileService','uid','keyIndex','forceFetchClientKey','getMsgService','292326LeOAmk','getSelfInfo','1106570aZpnJX','pwoRJ','errMsg','1056160TFScwH','CreatTime','getUserInfo','getTicketService','getProfileLikeService','nhTpl','response','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','getSkey','fromEntries','robotUinRanges','uin','PaLeG','duWIZ','set','get','onProfileDetailInfoChanged','result','now','XJTcZ','2052yGKNUF','BjZrF','delete','onLoginSuccess','OGdEv','getRobotUinRange','like','setStatus','getPskey','setHeader'];_0xab1d=function(){return _0x5b1477;};return _0xab1d();}import{randomUUID}from'crypto';import{HttpGetWithCookies}from'../../../common/utils/request';const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x205a59(0x19a)]=_0x199efb=>{const _0x1d0aa1=_0x205a59;userInfoCache[_0x199efb[_0x1d0aa1(0x181)]]=_0x199efb,userDetailHandlers[_0x1d0aa1(0x1af)](_0x174d9a=>_0x174d9a(_0x199efb));},setTimeout(()=>{const _0x393c2b=_0x205a59;napCatCore[_0x393c2b(0x1a1)](()=>{const _0x38ffdb=_0x393c2b;napCatCore[_0x38ffdb(0x1ab)](profileListener);});},0x64);export class NTQQUserApi{static async['setSelfOnlineStatus'](_0x3463d4,_0x2274e9,_0x3f2bec){const _0x41eacd=_0x205a59;return napCatCore[_0x41eacd(0x1aa)][_0x41eacd(0x184)]()[_0x41eacd(0x1a5)]({'status':_0x3463d4,'extStatus':_0x2274e9,'batteryStatus':_0x3f2bec});}static async[_0x205a59(0x1a4)](_0x251aec,_0x230253=0x1){const _0x57fa1a=_0x205a59;return napCatCore[_0x57fa1a(0x1aa)][_0x57fa1a(0x18e)]()[_0x57fa1a(0x1b6)]({'friendUid':_0x251aec,'sourceId':0x47,'doLikeCount':_0x230253,'doLikeTollCount':0x0});}static async[_0x205a59(0x1ac)](_0x119547){const _0x3f479a=_0x205a59,_0x4f20d9=napCatCore[_0x3f479a(0x1aa)][_0x3f479a(0x180)]()[_0x3f479a(0x1a7)](_0x119547);return{'result':_0x4f20d9?.['result'],'errMsg':_0x4f20d9?.[_0x3f479a(0x189)]};}static async[_0x205a59(0x186)](){}static async[_0x205a59(0x18c)](_0x49e6f6){}static async[_0x205a59(0x1a8)](_0x3dd111){const _0x1e5f41=_0x205a59,_0x2e36db={'cffOz':_0x1e5f41(0x1b1),'XJTcZ':function(_0x25ef00){return _0x25ef00();}},_0x9ad457=napCatCore[_0x1e5f41(0x1aa)][_0x1e5f41(0x180)]();return new Promise((_0x185da7,_0x58978c)=>{const _0x171702=_0x1e5f41,_0x4e3fbf=_0x2e36db[_0x171702(0x19d)](randomUUID);let _0x1bab87=![];setTimeout(()=>{!_0x1bab87&&_0x58978c(_0x2e36db['cffOz']);},0x1388),userDetailHandlers[_0x171702(0x198)](_0x4e3fbf,_0x355dd3=>{const _0xf58c29=_0x171702;_0x355dd3[_0xf58c29(0x181)]===_0x3dd111&&(_0x1bab87=!![],userDetailHandlers[_0xf58c29(0x1a0)](_0x4e3fbf),_0x185da7(_0x355dd3));}),_0x9ad457['getUserDetailInfoWithBizInfo'](_0x3dd111,[0x0])['then'](_0x117ff8=>{});});}static async['getPSkey'](_0x523a18){const _0x2299e7=_0x205a59,_0x31f964={'pwoRJ':function(_0x55712c,_0x242703){return _0x55712c===_0x242703;}},_0x271ea6=await napCatCore[_0x2299e7(0x1aa)]['getTipOffService']()[_0x2299e7(0x1a6)](_0x523a18,!![]);if(_0x31f964[_0x2299e7(0x188)](_0x271ea6[_0x2299e7(0x19b)],0x0)){const _0x4a137c=_0x271ea6['domainPskeyMap'];return Object[_0x2299e7(0x193)](_0x4a137c);}return{};}static async[_0x205a59(0x1a3)](){const _0x584c05=_0x205a59,_0x299b6e=await napCatCore[_0x584c05(0x1aa)][_0x584c05(0x1ae)]()[_0x584c05(0x1a3)]({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x299b6e?.[_0x584c05(0x190)]?.[_0x584c05(0x194)];}static async[_0x205a59(0x192)](){const _0x16df5b=_0x205a59,_0x386599={'duWIZ':function(_0x2f2383,_0x3b4508){return _0x2f2383==_0x3b4508;},'hFdhR':function(_0x21442a,_0x3c7e73){return _0x21442a>_0x3c7e73;},'USLDF':function(_0x595f71,_0x36ad79){return _0x595f71-_0x36ad79;},'LXuBV':function(_0x3c75ec,_0x4df7a0){return _0x3c75ec*_0x4df7a0;},'LgZsu':function(_0x13a05e,_0x51feb5){return _0x13a05e!==_0x51feb5;},'OGdEv':function(_0x3d152d,_0xb82944){return _0x3d152d+_0xb82944;},'BjZrF':function(_0x5d5f14,_0x7ca706){return _0x5d5f14+_0x7ca706;},'ABUCo':function(_0x5b1860,_0x1438e3){return _0x5b1860+_0x1438e3;},'nhTpl':_0x16df5b(0x1a9),'PaLeG':function(_0x439d3a,_0x36e428){return _0x439d3a(_0x36e428);},'sqxWz':'skey'};try{if(_0x386599[_0x16df5b(0x197)](Credentials[_0x16df5b(0x18b)],0x0)||_0x386599['hFdhR'](_0x386599['USLDF'](Date['now'](),Credentials[_0x16df5b(0x18b)]),_0x386599['LXuBV'](0x3e8,0xe10))){const _0x3164f7=await napCatCore[_0x16df5b(0x1aa)][_0x16df5b(0x18d)]()[_0x16df5b(0x183)]('');if(_0x386599['LgZsu'](_0x3164f7[_0x16df5b(0x19b)],0x0))return'';const _0x14e54d=_0x3164f7['clientKey'],_0x6108c1=_0x3164f7[_0x16df5b(0x182)],_0x48f4d8=_0x386599[_0x16df5b(0x1a2)](_0x386599['OGdEv'](_0x386599[_0x16df5b(0x19f)](_0x386599[_0x16df5b(0x19f)](_0x386599['ABUCo'](_0x16df5b(0x191),selfInfo[_0x16df5b(0x195)]),_0x386599[_0x16df5b(0x18f)]),_0x14e54d),'&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex='),_0x6108c1),_0x29f314=await _0x386599[_0x16df5b(0x196)](HttpGetWithCookies,_0x48f4d8);let _0x16ec29=_0x29f314[_0x16df5b(0x199)](_0x386599[_0x16df5b(0x1b5)]);if(!_0x16ec29)return'';return Credentials['CreatTime']=Date[_0x16df5b(0x19c)](),Credentials[_0x16df5b(0x1b7)]=_0x16ec29,_0x16ec29;}return Credentials[_0x16df5b(0x1b7)];}catch(_0x543d8f){}return undefined;}} \ No newline at end of file +const _0x4b9cbd=_0x1233;(function(_0x14de53,_0x4e01a5){const _0x158b6e=_0x1233,_0x471f56=_0x14de53();while(!![]){try{const _0x5af259=-parseInt(_0x158b6e(0x1b1))/0x1+parseInt(_0x158b6e(0x19e))/0x2+parseInt(_0x158b6e(0x19b))/0x3*(-parseInt(_0x158b6e(0x19d))/0x4)+-parseInt(_0x158b6e(0x1a7))/0x5+-parseInt(_0x158b6e(0x1ae))/0x6+parseInt(_0x158b6e(0x1a1))/0x7*(parseInt(_0x158b6e(0x187))/0x8)+parseInt(_0x158b6e(0x186))/0x9*(parseInt(_0x158b6e(0x1a0))/0xa);if(_0x5af259===_0x4e01a5)break;else _0x471f56['push'](_0x471f56['shift']());}catch(_0x4729a4){_0x471f56['push'](_0x471f56['shift']());}}}(_0x4e7f,0xca7bd));import{Credentials,selfInfo}from'@/core/data';import{napCatCore}from'@/core';function _0x4e7f(){const _0x1280fd=['delete','setBuddyProfileLike','result','addListener','16419eHNqxn','getProfileLikeService','844pmDKid','2301098QOMkjp','RJvbn','4271330fnIiTQ','7IWbSNT','getUserInfo','iznpd','getUserDetailInfoWithBizInfo','getMsgService','getTicketService','7150790lnlqFi','uin','get','response','setQQAvatar','kzmbY','Skey','5532048uqjzKL','LkRxQ','rqkQq','175884NshCiJ','onLoginSuccess','fromEntries','zjDWo','fZBXh','setStatus','forceFetchClientKey','now','LlrMU','&u1=https%3A%2F%2Fh5.qzone.qq.com%2Fqqnt%2Fqzoneinpcqq%2Ffriend%3Frefresh%3D0%26clientuin%3D0%26darkMode%3D0&keyindex=','then','skey','robotUinRanges','like','setHeader','uid','RdGbK','getUserDetailInfo\x20timeout','getUserDetailInfo','clientKey','getSelfInfo','getPSkey','AoFRL','set','domainPskeyMap','54Oyddaf','6391032dQlLPB','https://ssl.ptlogin2.qq.com/jump?ptlang=1033&clientuin=','&clientkey=','getProfileService','getRobotUinRange','onProfileDetailInfoChanged','sAIBK','qbmqd','CreatTime','session','ffvmC','uVcbR','errMsg','mMySr','getRobotService','FKvmp'];_0x4e7f=function(){return _0x1280fd;};return _0x4e7f();}import{ProfileListener}from'@/core/listeners';import{randomUUID}from'crypto';import{HttpGetWithCookies}from'../../../common/utils/request';function _0x1233(_0x13b63f,_0x18e7b0){const _0x4e7f32=_0x4e7f();return _0x1233=function(_0x123308,_0x17722b){_0x123308=_0x123308-0x176;let _0x3d3b90=_0x4e7f32[_0x123308];return _0x3d3b90;},_0x1233(_0x13b63f,_0x18e7b0);}const userInfoCache={},profileListener=new ProfileListener(),userDetailHandlers=new Map();profileListener[_0x4b9cbd(0x18c)]=_0x3ff136=>{const _0x59b606=_0x4b9cbd;userInfoCache[_0x3ff136[_0x59b606(0x17c)]]=_0x3ff136,userDetailHandlers['forEach'](_0x4702b4=>_0x4702b4(_0x3ff136));},setTimeout(()=>{const _0x4f9d21=_0x4b9cbd;napCatCore[_0x4f9d21(0x1b2)](()=>{const _0x1d7a4c=_0x4f9d21;napCatCore[_0x1d7a4c(0x19a)](profileListener);});},0x64);export class NTQQUserApi{static async['setSelfOnlineStatus'](_0x31a300,_0x1e3b11,_0x2e21da){const _0x1561eb=_0x4b9cbd;return napCatCore[_0x1561eb(0x190)][_0x1561eb(0x1a5)]()[_0x1561eb(0x1b6)]({'status':_0x31a300,'extStatus':_0x1e3b11,'batteryStatus':_0x2e21da});}static async[_0x4b9cbd(0x17a)](_0x4941ce,_0x43640e=0x1){const _0x352275=_0x4b9cbd;return napCatCore[_0x352275(0x190)][_0x352275(0x19c)]()[_0x352275(0x198)]({'friendUid':_0x4941ce,'sourceId':0x47,'doLikeCount':_0x43640e,'doLikeTollCount':0x0});}static async[_0x4b9cbd(0x1ab)](_0x4ce9a4){const _0x11c288=_0x4b9cbd,_0x596479=napCatCore[_0x11c288(0x190)][_0x11c288(0x18a)]()[_0x11c288(0x17b)](_0x4ce9a4);return{'result':_0x596479?.[_0x11c288(0x199)],'errMsg':_0x596479?.[_0x11c288(0x193)]};}static async[_0x4b9cbd(0x181)](){}static async[_0x4b9cbd(0x1a2)](_0x5e2afb){}static async[_0x4b9cbd(0x17f)](_0x5991e0){const _0x22d2b7=_0x4b9cbd,_0x5145a6={'uVcbR':_0x22d2b7(0x17e),'rqkQq':function(_0x58f72d,_0x2394b0){return _0x58f72d===_0x2394b0;},'mMySr':function(_0x485983,_0x254976){return _0x485983(_0x254976);},'GNlqo':function(_0x46425d){return _0x46425d();},'ZdYXB':function(_0x3dc6ec,_0x20ea86,_0x2c7343){return _0x3dc6ec(_0x20ea86,_0x2c7343);}},_0x23ba12=napCatCore[_0x22d2b7(0x190)][_0x22d2b7(0x18a)]();return new Promise((_0x3f1061,_0x17864e)=>{const _0x304d9f=_0x22d2b7,_0x19bd39={'fZBXh':function(_0x22f944,_0x205571){return _0x22f944(_0x205571);},'LkRxQ':_0x5145a6[_0x304d9f(0x192)],'brodi':function(_0x31f2f3,_0x10be85){const _0x4ba1cd=_0x304d9f;return _0x5145a6[_0x4ba1cd(0x1b0)](_0x31f2f3,_0x10be85);},'LlrMU':function(_0x14ce72,_0x2f52a3){const _0x29eba1=_0x304d9f;return _0x5145a6[_0x29eba1(0x194)](_0x14ce72,_0x2f52a3);}},_0x559f44=_0x5145a6['GNlqo'](randomUUID);let _0x1b469c=![];_0x5145a6['ZdYXB'](setTimeout,()=>{const _0xf7aec1=_0x304d9f;!_0x1b469c&&_0x19bd39[_0xf7aec1(0x1b5)](_0x17864e,_0x19bd39[_0xf7aec1(0x1af)]);},0x1388),userDetailHandlers[_0x304d9f(0x184)](_0x559f44,_0x30b926=>{const _0x4c4347=_0x304d9f;_0x19bd39['brodi'](_0x30b926[_0x4c4347(0x17c)],_0x5991e0)&&(_0x1b469c=!![],userDetailHandlers[_0x4c4347(0x197)](_0x559f44),_0x19bd39[_0x4c4347(0x1b9)](_0x3f1061,_0x30b926));}),_0x23ba12[_0x304d9f(0x1a4)](_0x5991e0,[0x0])[_0x304d9f(0x177)](_0x8c6d3f=>{});});}static async[_0x4b9cbd(0x182)](_0x22c649){const _0x3452d3=_0x4b9cbd,_0x1b8e0f={'zjDWo':function(_0x561674,_0x1337f9){return _0x561674===_0x1337f9;}},_0x4b21df=await napCatCore[_0x3452d3(0x190)]['getTipOffService']()['getPskey'](_0x22c649,!![]);if(_0x1b8e0f[_0x3452d3(0x1b4)](_0x4b21df[_0x3452d3(0x199)],0x0)){const _0xe5694f=_0x4b21df[_0x3452d3(0x185)];return Object[_0x3452d3(0x1b3)](_0xe5694f);}return{};}static async[_0x4b9cbd(0x18b)](){const _0x1a7401=_0x4b9cbd,_0x5100d9=await napCatCore[_0x1a7401(0x190)][_0x1a7401(0x195)]()['getRobotUinRange']({'justFetchMsgConfig':'1','type':0x1,'version':0x0,'aioKeywordVersion':0x0});return _0x5100d9?.[_0x1a7401(0x1aa)]?.[_0x1a7401(0x179)];}static async['getSkey'](){const _0x401ed4=_0x4b9cbd,_0x34a145={'MNehV':function(_0x54dbbc,_0x3044cc){return _0x54dbbc==_0x3044cc;},'iznpd':function(_0xd42ba7,_0xfe2091){return _0xd42ba7>_0xfe2091;},'qbmqd':function(_0x6c6dd3,_0x3c9bd0){return _0x6c6dd3-_0x3c9bd0;},'xQKwP':function(_0x2994ac,_0x371398){return _0x2994ac*_0x371398;},'ckhJR':function(_0x229fb8,_0x3eb32e){return _0x229fb8!==_0x3eb32e;},'RJvbn':function(_0x56534c,_0x134f67){return _0x56534c+_0x134f67;},'FKvmp':function(_0x2352e0,_0x16f0a0){return _0x2352e0+_0x16f0a0;},'AoFRL':_0x401ed4(0x188),'sAIBK':_0x401ed4(0x189),'ffvmC':_0x401ed4(0x176),'kzmbY':function(_0x4f3bba,_0xafc269){return _0x4f3bba(_0xafc269);},'RdGbK':_0x401ed4(0x178)};try{if(_0x34a145['MNehV'](Credentials[_0x401ed4(0x18f)],0x0)||_0x34a145[_0x401ed4(0x1a3)](_0x34a145[_0x401ed4(0x18e)](Date[_0x401ed4(0x1b8)](),Credentials['CreatTime']),_0x34a145['xQKwP'](0x3e8,0xe10))){const _0x3fa067=await napCatCore[_0x401ed4(0x190)][_0x401ed4(0x1a6)]()[_0x401ed4(0x1b7)]('');if(_0x34a145['ckhJR'](_0x3fa067[_0x401ed4(0x199)],0x0))return'';const _0x3e4c5d=_0x3fa067[_0x401ed4(0x180)],_0x5e9f0e=_0x3fa067['keyIndex'],_0x216cf0=_0x34a145[_0x401ed4(0x19f)](_0x34a145[_0x401ed4(0x19f)](_0x34a145[_0x401ed4(0x196)](_0x34a145[_0x401ed4(0x183)],selfInfo[_0x401ed4(0x1a8)])+_0x34a145[_0x401ed4(0x18d)]+_0x3e4c5d,_0x34a145[_0x401ed4(0x191)]),_0x5e9f0e),_0x3e45bd=await _0x34a145[_0x401ed4(0x1ac)](HttpGetWithCookies,_0x216cf0);let _0x4ea53e=_0x3e45bd[_0x401ed4(0x1a9)](_0x34a145[_0x401ed4(0x17d)]);if(!_0x4ea53e)return'';return Credentials[_0x401ed4(0x18f)]=Date[_0x401ed4(0x1b8)](),Credentials[_0x401ed4(0x1ad)]=_0x4ea53e,_0x4ea53e;}return Credentials[_0x401ed4(0x1ad)];}catch(_0x52ef2b){}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 39ed5c02..e245740e 100644 --- a/src/core.lib/src/apis/webapi.js +++ b/src/core.lib/src/apis/webapi.js @@ -1 +1 @@ -const _0x43b392=_0x2096;(function(_0x38a6ef,_0x465f01){const _0x1aac49=_0x2096,_0x10b969=_0x38a6ef();while(!![]){try{const _0x12c294=parseInt(_0x1aac49(0x233))/0x1*(-parseInt(_0x1aac49(0x205))/0x2)+-parseInt(_0x1aac49(0x1f4))/0x3+-parseInt(_0x1aac49(0x203))/0x4*(parseInt(_0x1aac49(0x230))/0x5)+parseInt(_0x1aac49(0x22f))/0x6+-parseInt(_0x1aac49(0x238))/0x7+-parseInt(_0x1aac49(0x1dd))/0x8+-parseInt(_0x1aac49(0x20b))/0x9*(-parseInt(_0x1aac49(0x21b))/0xa);if(_0x12c294===_0x465f01)break;else _0x10b969['push'](_0x10b969['shift']());}catch(_0xfc8d36){_0x10b969['push'](_0x10b969['shift']());}}}(_0x291e,0xbdbb4));function _0x2096(_0x37b6c6,_0x44ef96){const _0x291e03=_0x291e();return _0x2096=function(_0x2096e9,_0x345cb6){_0x2096e9=_0x2096e9-0x1d0;let _0x13197f=_0x291e03[_0x2096e9];return _0x13197f;},_0x2096(_0x37b6c6,_0x44ef96);}import{selfInfo}from'@/core/data';import{NTQQUserApi}from'./user';export class WebApi{static async[_0x43b392(0x20f)](_0x5bbbe5,_0x263d09){const _0x9e1b1e=_0x43b392,_0x2049fb={'PyzXn':'qun.qq.com','qXVZX':function(_0x5916ee,_0x59b0b8){return _0x5916ee+_0x59b0b8;},'BfUBu':function(_0xc9c709,_0x4dc0e5){return _0xc9c709+_0x4dc0e5;},'LZSrO':'p_skey=','mEwxo':_0x9e1b1e(0x213),'iVQLy':_0x9e1b1e(0x22c),'aOmeE':function(_0x2fc6c1,_0x3ee3d7){return _0x2fc6c1||_0x3ee3d7;},'fYrQi':function(_0x210828,_0x10bac8){return _0x210828+_0x10bac8;},'HRgRr':_0x9e1b1e(0x228),'EWdVP':'GET'},_0xc7dd82=(await NTQQUserApi[_0x9e1b1e(0x22a)]([_0x2049fb['PyzXn']]))[_0x2049fb[_0x9e1b1e(0x229)]],_0x49bb3a=await NTQQUserApi[_0x9e1b1e(0x1ea)](),_0x5bbcb9=_0x2049fb[_0x9e1b1e(0x1dc)](_0x2049fb[_0x9e1b1e(0x1dc)](_0x2049fb[_0x9e1b1e(0x1dc)](_0x2049fb['qXVZX'](_0x2049fb[_0x9e1b1e(0x1fc)](_0x2049fb[_0x9e1b1e(0x1d7)],_0xc7dd82)+_0x2049fb[_0x9e1b1e(0x20a)],_0x49bb3a)+_0x2049fb[_0x9e1b1e(0x1ec)],selfInfo[_0x9e1b1e(0x1ed)]),';\x20uin=o'),selfInfo[_0x9e1b1e(0x1ed)]);if(_0x2049fb[_0x9e1b1e(0x235)](!_0x49bb3a,!_0xc7dd82))return undefined;const _0x4ed5f9=WebApi[_0x9e1b1e(0x20d)](_0x49bb3a);let _0x44cf3e=_0x2049fb[_0x9e1b1e(0x1dc)](_0x2049fb[_0x9e1b1e(0x210)](_0x2049fb[_0x9e1b1e(0x210)](_0x2049fb['fYrQi'](_0x2049fb[_0x9e1b1e(0x1fc)](_0x9e1b1e(0x1da),_0x4ed5f9),_0x9e1b1e(0x23a)),_0x5bbbe5),_0x2049fb[_0x9e1b1e(0x239)]),_0x263d09)+_0x9e1b1e(0x1ff),_0x349ce8=await WebApi[_0x9e1b1e(0x22b)](_0x44cf3e,_0x2049fb[_0x9e1b1e(0x1d4)],'',_0x5bbcb9);if(_0x349ce8[_0x9e1b1e(0x204)]!==0x0)return undefined;return _0x349ce8;}static async[_0x43b392(0x220)](_0x5a8655){const _0x242ff4=_0x43b392,_0x4541ea={'Tryfe':_0x242ff4(0x219),'nzNBu':function(_0x6a3f33,_0x5d824b){return _0x6a3f33+_0x5d824b;},'eXQwR':function(_0x10e8f7,_0x9f5d88){return _0x10e8f7+_0x9f5d88;},'mCFGY':_0x242ff4(0x206),'CigOm':_0x242ff4(0x22c),'MJUys':function(_0x10c4f8,_0x19bfca){return _0x10c4f8+_0x19bfca;},'xdbyx':_0x242ff4(0x1e3),'PiAJF':_0x242ff4(0x1db),'ZFPJY':_0x242ff4(0x1f3),'awnnj':function(_0x2603f3,_0x59e9d5){return _0x2603f3+_0x59e9d5;},'aVghG':function(_0x5cca78,_0x337124){return _0x5cca78+_0x337124;},'OgqkL':function(_0x1d13ff,_0x311e9c){return _0x1d13ff+_0x311e9c;},'VGFSB':'https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','scndk':function(_0x3ac969,_0x325384){return _0x3ac969*_0x325384;},'pUlAC':function(_0x13d247,_0x481dba){return _0x13d247*_0x481dba;},'hzdVC':_0x242ff4(0x226),'ANByV':function(_0x58d6cc,_0x156024){return _0x58d6cc<=_0x156024;},'yQKfn':function(_0x3c53e1,_0x346573){return _0x3c53e1!==_0x346573;}},_0xf0d78e=(await NTQQUserApi[_0x242ff4(0x22a)]([_0x4541ea[_0x242ff4(0x202)]]))[_0x4541ea[_0x242ff4(0x202)]],_0x9bca9e=await NTQQUserApi[_0x242ff4(0x1ea)](),_0x1dd4cb=_0x4541ea[_0x242ff4(0x215)](_0x4541ea[_0x242ff4(0x1fb)](_0x4541ea[_0x242ff4(0x1e1)]+_0xf0d78e,_0x242ff4(0x213)),_0x9bca9e)+_0x4541ea[_0x242ff4(0x20c)]+selfInfo[_0x242ff4(0x1ed)],_0x261e9e=new Array();if(!_0x9bca9e||!_0xf0d78e)return _0x261e9e;const _0x4b2b86=WebApi[_0x242ff4(0x20d)](_0x9bca9e);let _0x45bcd1=[],_0x35e882=await WebApi[_0x242ff4(0x22b)](_0x4541ea[_0x242ff4(0x1fb)](_0x4541ea[_0x242ff4(0x221)](_0x4541ea[_0x242ff4(0x207)]+_0x5a8655,_0x4541ea[_0x242ff4(0x1d9)]),_0x4b2b86),_0x4541ea[_0x242ff4(0x1d0)],'',_0x1dd4cb);if(!_0x35e882?.[_0x242ff4(0x23d)]||_0x35e882?.[_0x242ff4(0x212)]!==0x0||!_0x35e882?.[_0x242ff4(0x234)])return[];else for(let _0x1d16ac in _0x35e882[_0x242ff4(0x234)]){_0x261e9e[_0x242ff4(0x23c)](_0x35e882[_0x242ff4(0x234)][_0x1d16ac]);}let _0x210e10=Math[_0x242ff4(0x21a)](_0x35e882[_0x242ff4(0x23d)]/0x28);for(let _0x50ae99=0x2;_0x50ae99<=_0x210e10;_0x50ae99++){let _0x30146f=WebApi[_0x242ff4(0x22b)](_0x4541ea['awnnj'](_0x4541ea[_0x242ff4(0x209)](_0x4541ea[_0x242ff4(0x1f2)](_0x4541ea['eXQwR'](_0x4541ea['nzNBu'](_0x4541ea[_0x242ff4(0x209)](_0x4541ea[_0x242ff4(0x209)](_0x4541ea[_0x242ff4(0x236)],_0x4541ea[_0x242ff4(0x23e)](_0x50ae99-0x1,0x28)),_0x242ff4(0x1f8)),_0x4541ea['pUlAC'](_0x50ae99,0x28)),_0x4541ea[_0x242ff4(0x222)]),_0x5a8655),_0x4541ea[_0x242ff4(0x1d9)]),_0x4b2b86),_0x4541ea['ZFPJY'],'',_0x1dd4cb);_0x45bcd1[_0x242ff4(0x23c)](_0x30146f);}for(let _0x3a32de=0x1;_0x4541ea[_0x242ff4(0x1df)](_0x3a32de,_0x210e10);_0x3a32de++){let _0x4bf8f9=await _0x45bcd1[_0x3a32de];if(!_0x4bf8f9?.[_0x242ff4(0x23d)]||_0x4541ea['yQKfn'](_0x4bf8f9?.[_0x242ff4(0x212)],0x0)||!_0x4bf8f9?.[_0x242ff4(0x234)])continue;for(let _0x18d260 in _0x4bf8f9[_0x242ff4(0x234)]){_0x261e9e[_0x242ff4(0x23c)](_0x4bf8f9[_0x242ff4(0x234)][_0x18d260]);}}return _0x261e9e;}static async['setGroupNotice'](_0x20e489,_0x199ea4=''){const _0x2c9b98=_0x43b392,_0x4a23ff={'LzZBE':_0x2c9b98(0x219),'dKeNd':function(_0x4c8224,_0x1416b8){return _0x4c8224+_0x1416b8;},'RSMOH':function(_0x2bf33a,_0x3b8cd7){return _0x2bf33a+_0x3b8cd7;},'dorFP':function(_0x1d3dd9,_0x493d4a){return _0x1d3dd9+_0x493d4a;},'rpWMe':_0x2c9b98(0x206),'XrYzX':_0x2c9b98(0x213),'yBsLI':_0x2c9b98(0x22c),'MKsIH':function(_0xde2154,_0x33e0d8){return _0xde2154||_0x33e0d8;},'qquPl':function(_0x464592,_0x382705){return _0x464592+_0x382705;},'nsugd':function(_0x21d77c,_0x494ba8){return _0x21d77c+_0x494ba8;},'RsKCn':function(_0x253475,_0x571a07){return _0x253475+_0x571a07;},'SVZsF':_0x2c9b98(0x21f),'nekyT':_0x2c9b98(0x1f6),'DyLjy':function(_0x5733e1,_0x16e2cc){return _0x5733e1+_0x16e2cc;},'qEcwv':_0x2c9b98(0x211),'dxcyK':_0x2c9b98(0x232)};let _0x1cc215=(await NTQQUserApi['getPSkey']([_0x4a23ff[_0x2c9b98(0x1d1)]]))['qun.qq.com'],_0x4806fc=await NTQQUserApi[_0x2c9b98(0x1ea)](),_0x2d7c8e=_0x4a23ff[_0x2c9b98(0x225)](_0x4a23ff[_0x2c9b98(0x1d3)](_0x4a23ff['dorFP'](_0x4a23ff[_0x2c9b98(0x1d3)](_0x4a23ff['rpWMe'],_0x1cc215)+_0x4a23ff[_0x2c9b98(0x1ee)],_0x4806fc),_0x4a23ff['yBsLI']),selfInfo['uin']),_0x33746c=undefined;if(_0x4a23ff['MKsIH'](!_0x4806fc,!_0x1cc215))return undefined;let _0x284134=WebApi[_0x2c9b98(0x20d)](_0x4806fc),_0x540b48=_0x4a23ff[_0x2c9b98(0x1d3)](_0x4a23ff[_0x2c9b98(0x217)](_0x4a23ff['nsugd'](_0x4a23ff[_0x2c9b98(0x22d)](_0x4a23ff[_0x2c9b98(0x22e)](_0x4a23ff['dKeNd'](_0x4a23ff[_0x2c9b98(0x1e2)],_0x20e489),_0x2c9b98(0x1db)),_0x284134),_0x4a23ff[_0x2c9b98(0x200)]),_0x199ea4),_0x2c9b98(0x1e9)),_0x248514=_0x4a23ff['DyLjy'](_0x4a23ff[_0x2c9b98(0x1f1)],_0x284134);try{return _0x33746c=await WebApi[_0x2c9b98(0x22b)](_0x248514,_0x4a23ff[_0x2c9b98(0x21c)],'',_0x2d7c8e),_0x33746c;}catch(_0x54ee97){return undefined;}return undefined;}static async['getGrouptNotice'](_0x23324c){const _0x4b3ddc=_0x43b392,_0x3be045={'YFGML':'qun.qq.com','AIliG':function(_0x4f6298,_0x3c4582){return _0x4f6298+_0x3c4582;},'trVnA':function(_0xfe23ee,_0x13c7f9){return _0xfe23ee+_0x13c7f9;},'aVtnM':function(_0x214739,_0xd97e1e){return _0x214739+_0xd97e1e;},'KebNU':';\x20skey=','xUPsN':_0x4b3ddc(0x22c),'oVoIg':function(_0x598deb,_0x42659c){return _0x598deb||_0x42659c;},'MfgwC':function(_0x17421c,_0x2e0c29){return _0x17421c+_0x2e0c29;},'gDrjc':'&qid=','XBMLb':'GET','OVEgY':function(_0x93bfe4,_0xcea070){return _0x93bfe4!==_0xcea070;}};let _0x5f0788=(await NTQQUserApi[_0x4b3ddc(0x22a)]([_0x3be045['YFGML']]))[_0x3be045[_0x4b3ddc(0x214)]],_0x110180=await NTQQUserApi[_0x4b3ddc(0x1ea)](),_0x5432d4=_0x3be045[_0x4b3ddc(0x1eb)](_0x3be045[_0x4b3ddc(0x1e7)](_0x3be045[_0x4b3ddc(0x1f9)](_0x3be045['AIliG'](_0x4b3ddc(0x206)+_0x5f0788,_0x3be045[_0x4b3ddc(0x1f7)]),_0x110180),_0x3be045[_0x4b3ddc(0x1e4)]),selfInfo['uin']),_0x112ab2=undefined;if(_0x3be045[_0x4b3ddc(0x237)](!_0x110180,!_0x5f0788))return undefined;let _0x2464cc=WebApi['genBkn'](_0x110180),_0x1710ba=_0x3be045[_0x4b3ddc(0x1eb)](_0x3be045[_0x4b3ddc(0x20e)](_0x3be045['AIliG'](_0x4b3ddc(0x208)+_0x2464cc,_0x3be045['gDrjc']),_0x23324c),_0x4b3ddc(0x1d2));try{_0x112ab2=await WebApi['httpDataJson'](_0x1710ba,_0x3be045[_0x4b3ddc(0x227)],'',_0x5432d4);if(_0x3be045[_0x4b3ddc(0x1e6)](_0x112ab2?.['ec'],0x0))return undefined;return _0x112ab2;}catch(_0x23d757){return undefined;}return undefined;}static async[_0x43b392(0x1e8)](_0x5a9796='',_0xedf6ec='GET',_0x10e36f='',_0x3ce3b9=''){const _0x3f4d8b=_0x43b392,_0xdcf14a={'HULAP':function(_0x11daf2,_0x10b993){return _0x11daf2===_0x10b993;},'WSmqE':_0x3f4d8b(0x232),'EpKfa':_0x3f4d8b(0x1e5),'bBtOq':function(_0x2a9cdd,_0x47f234,_0x1cf357){return _0x2a9cdd(_0x47f234,_0x1cf357);},'IrBCf':function(_0x184d89,_0xf9ae7b,_0x238d65){return _0x184d89(_0xf9ae7b,_0x238d65);},'hianq':_0x3f4d8b(0x218),'mZcgb':function(_0x42875c,_0x470ae2){return _0x42875c(_0x470ae2);}};let _0x48244c='';return new Promise(async(_0x2ec188,_0xd7555d)=>{const _0x42c8d3=_0x3f4d8b;try{let _0x5f315b=undefined;_0xdcf14a['HULAP'](_0xedf6ec,_0xdcf14a[_0x42c8d3(0x1d8)])||_0xedf6ec===_0xdcf14a[_0x42c8d3(0x1d5)]?_0x5f315b=await _0xdcf14a[_0x42c8d3(0x1f5)](fetch,_0x5a9796,{'method':_0xedf6ec,'headers':{'Content-Type':'application/x-www-form-urlencoded','Cookie':_0x3ce3b9}}):_0x5f315b=await _0xdcf14a[_0x42c8d3(0x1e0)](fetch,_0x5a9796,{'method':_0xedf6ec,'headers':{'Content-Type':_0xdcf14a[_0x42c8d3(0x1d6)],'Cookie':_0x3ce3b9},'body':_0x10e36f});if(_0x5f315b['ok'])_0x48244c=await _0x5f315b[_0x42c8d3(0x1f0)]();else{}}catch(_0x1439ed){}_0xdcf14a[_0x42c8d3(0x1ef)](_0x2ec188,_0x48244c);});}static async['httpDataJson'](_0x22cbfc='',_0x19e002=_0x43b392(0x232),_0x225150='',_0xf21b35=''){const _0x48ec38=_0x43b392,_0x23f450={'jdFVg':function(_0x3d7783,_0xde2d6b){return _0x3d7783===_0xde2d6b;},'osZrw':_0x48ec38(0x232),'VxEhW':function(_0xbfdfdf,_0x2cbdf3){return _0xbfdfdf===_0x2cbdf3;},'PtYyR':_0x48ec38(0x1e5),'Gfdud':_0x48ec38(0x218),'yOMep':function(_0x5479ab,_0x1274f5,_0x27c4f3){return _0x5479ab(_0x1274f5,_0x27c4f3);},'HAjfR':function(_0x5d5e87,_0x5d04df){return _0x5d5e87(_0x5d04df);}};let _0x483a6c=undefined;return new Promise(async(_0x2a11af,_0x3aa98b)=>{const _0x4ea915=_0x48ec38;try{let _0xdf0c67=undefined;_0x23f450[_0x4ea915(0x21d)](_0x19e002,_0x23f450[_0x4ea915(0x1fe)])||_0x23f450[_0x4ea915(0x224)](_0x19e002,_0x23f450['PtYyR'])?_0xdf0c67=await fetch(_0x22cbfc,{'method':_0x19e002,'headers':{'Content-Type':_0x23f450[_0x4ea915(0x1fa)],'Cookie':_0xf21b35}}):_0xdf0c67=await _0x23f450[_0x4ea915(0x1fd)](fetch,_0x22cbfc,{'method':_0x19e002,'headers':{'Content-Type':_0x23f450['Gfdud'],'Cookie':_0xf21b35},'body':_0x225150});if(_0xdf0c67['ok'])_0x483a6c=await _0xdf0c67[_0x4ea915(0x23b)]();else{}}catch(_0x5364f9){}_0x23f450[_0x4ea915(0x1de)](_0x2a11af,_0x483a6c);});}static['genBkn'](_0x3ea7be){const _0x57029e=_0x43b392,_0x5cc3f7={'dCima':function(_0x1f048c,_0x24c84e){return _0x1f048c||_0x24c84e;},'lUydW':function(_0x2bb667,_0x2624ab){return _0x2bb667<_0x2624ab;},'tcEvm':function(_0x82427d,_0x23eb9d){return _0x82427d+_0x23eb9d;},'fYqik':function(_0xdb52cc,_0x1d159c){return _0xdb52cc<<_0x1d159c;}};_0x3ea7be=_0x5cc3f7[_0x57029e(0x216)](_0x3ea7be,'');let _0x3af802=0x1505;for(let _0x380f57=0x0;_0x5cc3f7['lUydW'](_0x380f57,_0x3ea7be[_0x57029e(0x223)]);_0x380f57++){const _0x592a79=_0x3ea7be['charCodeAt'](_0x380f57);_0x3af802=_0x5cc3f7[_0x57029e(0x21e)](_0x3af802+_0x5cc3f7[_0x57029e(0x201)](_0x3af802,0x5),_0x592a79);}return(_0x3af802&0x7fffffff)[_0x57029e(0x231)]();}}function _0x291e(){const _0x577169=['dCima','qquPl','application/x-www-form-urlencoded','qun.qq.com','ceil','10iCDgkG','dxcyK','jdFVg','tcEvm','qid=','getGroupMembers','MJUys','hzdVC','length','VxEhW','dKeNd','&sort=1&gc=','XBMLb','&page_start=','PyzXn','getPSkey','httpDataJson',';\x20p_uin=o','dorFP','RsKCn','7573380zBLEpy','2216090KVoZDx','toString','GET','114031ZLixzh','mems','aOmeE','VGFSB','oVoIg','383922kQUVAV','HRgRr','&group_code=','json','push','count','scndk','ZFPJY','LzZBE','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','RSMOH','EWdVP','EpKfa','hianq','LZSrO','WSmqE','PiAJF','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','&bkn=','qXVZX','7618592eyHCfS','HAjfR','ANByV','IrBCf','mCFGY','SVZsF','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','xUPsN','HEAD','OVEgY','trVnA','httpDataText','&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}','getSkey','AIliG','iVQLy','uin','XrYzX','mZcgb','text','qEcwv','OgqkL','POST','2701632jxTubM','bBtOq','&text=','KebNU','&end=','aVtnM','Gfdud','eXQwR','BfUBu','yOMep','osZrw','&page_limit=20','nekyT','fYqik','Tryfe','12hHJGmT','retcode','2ljGcMk','p_skey=','xdbyx','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','aVghG','mEwxo','25796781IClETg','CigOm','genBkn','MfgwC','getGroupEssenceMsg','fYrQi','https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=','errcode',';\x20skey=','YFGML','nzNBu'];_0x291e=function(){return _0x577169;};return _0x291e();} \ No newline at end of file +const _0x531ace=_0x37c4;(function(_0x4c8b19,_0x2deb44){const _0x41a19a=_0x37c4,_0x303192=_0x4c8b19();while(!![]){try{const _0x37b49a=-parseInt(_0x41a19a(0x179))/0x1*(-parseInt(_0x41a19a(0x166))/0x2)+-parseInt(_0x41a19a(0x14b))/0x3+-parseInt(_0x41a19a(0x146))/0x4*(-parseInt(_0x41a19a(0x19e))/0x5)+parseInt(_0x41a19a(0x159))/0x6*(-parseInt(_0x41a19a(0x1a4))/0x7)+-parseInt(_0x41a19a(0x181))/0x8+parseInt(_0x41a19a(0x19c))/0x9+-parseInt(_0x41a19a(0x1a3))/0xa;if(_0x37b49a===_0x2deb44)break;else _0x303192['push'](_0x303192['shift']());}catch(_0x2ffcef){_0x303192['push'](_0x303192['shift']());}}}(_0x4efc,0xd6039));import{selfInfo}from'@/core/data';function _0x37c4(_0x1c0e0c,_0x4d0105){const _0x4efc66=_0x4efc();return _0x37c4=function(_0x37c47c,_0x588142){_0x37c47c=_0x37c47c-0x140;let _0xbd62a8=_0x4efc66[_0x37c47c];return _0xbd62a8;},_0x37c4(_0x1c0e0c,_0x4d0105);}function _0x4efc(){const _0x5a1afe=[';\x20uin=o','KUceh','PbBKa','Wxybr','Sgyoy','hZbje','errcode','XXsJq','mJJeC','cspdr','count','p_skey=','Fxrfc','RWQjS','CiXOb','1qNopyg','GET','JIcdu','PYTYW','tDptc','AMOAs','tibSN','getGroupEssenceMsg','432528JRbthp','VrUYX','yhSoc','tnROA','wMEEP','Eipnp','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=0&end=40&sort=1&gc=','KGBiL','&qid=','OdkRX','charCodeAt','IINPz','UddIp','SoOij','HArei','feNOC','getGroupMembers','QDYAK','Zxszp','&page_start=','MjafZ','mems','getPSkey','ebGRZ','pAMsr','Nqjwa','uMYBc','5248305eeqFew','&ft=23&ni=1&n=1&i=1&log_read=1&platform=1&s=-1&n=20','11150ySURBG','push','sYPhY','qun.qq.com','uin','7697550OvFZwi','3967159iqjYcQ','hCLuZ','XBqdr','JTKdX','nhxvX','dSdHV','PkUyM','pSiSl','bzREA','sRUDM','Tesab','https://qun.qq.com/cgi-bin/qun_mgr/search_group_members?st=','&group_code=','getGrouptNotice','toString','&page_limit=20','NAHOD','slcXm','1276OyEtbg','text','DxTTb','vEQiB','HUceZ','227745HGEvyY','getSkey','retcode','Gzqyb','rZnkS','AWYzN','httpDataJson','DJwTM','SOTTl','YKusY','genBkn','HEAD','EoOzZ','Hfsjq','6JPXvzU','https://qun.qq.com/cgi-bin/group_digest/digest_list?bkn=','stDQH','QCqMC',';\x20p_uin=o','xDjGP',';\x20skey=','KylTi','TGzWD','CoCgx','ceil','&bkn=','https://web.qun.qq.com/cgi-bin/announce/get_t_list?bkn=','2097118LWFHKG','json','gmAdl','application/x-www-form-urlencoded'];_0x4efc=function(){return _0x5a1afe;};return _0x4efc();}import{NTQQUserApi}from'./user';export class WebApi{static async[_0x531ace(0x180)](_0x4c9a69,_0x4bc928){const _0x23c97c=_0x531ace,_0x4032ca={'VrUYX':_0x23c97c(0x1a1),'JIcdu':function(_0x1380cc,_0x5db953){return _0x1380cc+_0x5db953;},'xMqgh':function(_0x45a1e2,_0x1ab481){return _0x45a1e2+_0x1ab481;},'sRUDM':function(_0x4574a9,_0x5d2a14){return _0x4574a9+_0x5d2a14;},'tibSN':function(_0x257c99,_0xab9197){return _0x257c99+_0xab9197;},'HUceZ':function(_0x5c208b,_0x55cc29){return _0x5c208b+_0x55cc29;},'ebGRZ':function(_0x5a4f7e,_0x86ca36){return _0x5a4f7e+_0x86ca36;},'MjafZ':'p_skey=','Zxszp':_0x23c97c(0x15f),'pAMsr':_0x23c97c(0x15d),'slcXm':_0x23c97c(0x16a),'QDYAK':function(_0x41d5e7,_0x124129){return _0x41d5e7||_0x124129;},'cbLXY':_0x23c97c(0x140),'hCLuZ':_0x23c97c(0x194),'TGzWD':_0x23c97c(0x143),'QCqMC':function(_0x3006b3,_0xb5410b){return _0x3006b3!==_0xb5410b;}},_0xc497b7=(await NTQQUserApi[_0x23c97c(0x197)]([_0x4032ca[_0x23c97c(0x182)]]))[_0x23c97c(0x1a1)],_0x4c9eba=await NTQQUserApi[_0x23c97c(0x14c)](),_0x5cec34=_0x4032ca[_0x23c97c(0x17b)](_0x4032ca[_0x23c97c(0x17b)](_0x4032ca['xMqgh'](_0x4032ca[_0x23c97c(0x1ad)](_0x4032ca[_0x23c97c(0x17f)](_0x4032ca[_0x23c97c(0x14a)](_0x4032ca[_0x23c97c(0x198)](_0x4032ca[_0x23c97c(0x195)],_0xc497b7),_0x4032ca[_0x23c97c(0x193)]),_0x4c9eba),_0x4032ca[_0x23c97c(0x199)]),selfInfo[_0x23c97c(0x1a2)]),_0x4032ca[_0x23c97c(0x145)]),selfInfo[_0x23c97c(0x1a2)]);if(_0x4032ca[_0x23c97c(0x192)](!_0x4c9eba,!_0xc497b7))return undefined;const _0x4247ca=WebApi[_0x23c97c(0x155)](_0x4c9eba);let _0x1e5d4d=_0x4032ca['tibSN'](_0x4032ca['JIcdu'](_0x4032ca[_0x23c97c(0x17f)](_0x23c97c(0x15a),_0x4247ca),_0x4032ca['cbLXY'])+_0x4c9a69+_0x4032ca[_0x23c97c(0x1a5)],_0x4bc928)+_0x4032ca[_0x23c97c(0x161)],_0x426a22=await WebApi[_0x23c97c(0x151)](_0x1e5d4d,'GET','',_0x5cec34);if(_0x4032ca[_0x23c97c(0x15c)](_0x426a22[_0x23c97c(0x14d)],0x0))return undefined;return _0x426a22;}static async[_0x531ace(0x191)](_0x5c2dc3){const _0x3aa63f=_0x531ace,_0x5402f2={'KylTi':_0x3aa63f(0x1a1),'cspdr':function(_0x17f425,_0x3cd8b4){return _0x17f425+_0x3cd8b4;},'OdkRX':function(_0x20090e,_0x57b714){return _0x20090e+_0x57b714;},'cvCvu':function(_0x34263e,_0x2678bc){return _0x34263e+_0x2678bc;},'uMYBc':'p_skey=','wMEEP':_0x3aa63f(0x15f),'KGBiL':';\x20p_uin=o','SOTTl':function(_0x43b055,_0x3543bc){return _0x43b055||_0x3543bc;},'sYPhY':function(_0x439239,_0x290e92){return _0x439239+_0x290e92;},'XSLDb':_0x3aa63f(0x187),'JRrYL':_0x3aa63f(0x164),'tnROA':'POST','ZFTiA':function(_0x3079bb,_0x55910f){return _0x3079bb<=_0x55910f;},'pSiSl':function(_0x6139c4,_0x433fb4){return _0x6139c4+_0x433fb4;},'PbBKa':function(_0x1fe6f8,_0x3e162b){return _0x1fe6f8+_0x3e162b;},'EoOzZ':function(_0x184a58,_0xd33eca){return _0x184a58+_0xd33eca;},'xDjGP':_0x3aa63f(0x1af),'Gzqyb':function(_0x2530d3,_0x4d025c){return _0x2530d3-_0x4d025c;},'rZnkS':'&end=','hwGGj':function(_0x193c81,_0x1f5c9c){return _0x193c81*_0x1f5c9c;},'RWQjS':function(_0x243f2a,_0x4289f4){return _0x243f2a!==_0x4289f4;}},_0x57e797=(await NTQQUserApi[_0x3aa63f(0x197)]([_0x5402f2['KylTi']]))[_0x5402f2[_0x3aa63f(0x160)]],_0x481e36=await NTQQUserApi[_0x3aa63f(0x14c)](),_0x32d23f=_0x5402f2[_0x3aa63f(0x173)](_0x5402f2[_0x3aa63f(0x18a)](_0x5402f2['cvCvu'](_0x5402f2[_0x3aa63f(0x19b)]+_0x57e797+_0x5402f2[_0x3aa63f(0x185)],_0x481e36),_0x5402f2[_0x3aa63f(0x188)]),selfInfo[_0x3aa63f(0x1a2)]),_0x435f53=new Array();if(_0x5402f2[_0x3aa63f(0x153)](!_0x481e36,!_0x57e797))return _0x435f53;const _0x49441f=WebApi[_0x3aa63f(0x155)](_0x481e36);let _0x41507d=[],_0x3cc450=await WebApi[_0x3aa63f(0x151)](_0x5402f2[_0x3aa63f(0x1a0)](_0x5402f2['XSLDb']+_0x5c2dc3+_0x5402f2['JRrYL'],_0x49441f),_0x5402f2[_0x3aa63f(0x184)],'',_0x32d23f);if(!_0x3cc450?.[_0x3aa63f(0x174)]||_0x3cc450?.[_0x3aa63f(0x170)]!==0x0||!_0x3cc450?.[_0x3aa63f(0x196)])return[];else for(let _0x51f65f in _0x3cc450[_0x3aa63f(0x196)]){_0x435f53['push'](_0x3cc450[_0x3aa63f(0x196)][_0x51f65f]);}let _0x183727=Math[_0x3aa63f(0x163)](_0x3cc450['count']/0x28);for(let _0x1f1e4a=0x2;_0x5402f2['ZFTiA'](_0x1f1e4a,_0x183727);_0x1f1e4a++){let _0xa1301c=WebApi[_0x3aa63f(0x151)](_0x5402f2[_0x3aa63f(0x1ab)](_0x5402f2[_0x3aa63f(0x16c)](_0x5402f2[_0x3aa63f(0x157)](_0x5402f2[_0x3aa63f(0x16c)](_0x5402f2[_0x3aa63f(0x18a)](_0x5402f2['cspdr'](_0x5402f2[_0x3aa63f(0x15e)],_0x5402f2[_0x3aa63f(0x14e)](_0x1f1e4a,0x1)*0x28),_0x5402f2[_0x3aa63f(0x14f)])+_0x5402f2['hwGGj'](_0x1f1e4a,0x28),'&sort=1&gc='),_0x5c2dc3),'&bkn='),_0x49441f),'POST','',_0x32d23f);_0x41507d['push'](_0xa1301c);}for(let _0x4c75be=0x1;_0x5402f2['ZFTiA'](_0x4c75be,_0x183727);_0x4c75be++){let _0x499788=await _0x41507d[_0x4c75be];if(!_0x499788?.[_0x3aa63f(0x174)]||_0x5402f2[_0x3aa63f(0x177)](_0x499788?.[_0x3aa63f(0x170)],0x0)||!_0x499788?.[_0x3aa63f(0x196)])continue;for(let _0x426d46 in _0x499788[_0x3aa63f(0x196)]){_0x435f53[_0x3aa63f(0x19f)](_0x499788['mems'][_0x426d46]);}}return _0x435f53;}static async['setGroupNotice'](_0x276f89,_0x4b6c69=''){const _0x77f411=_0x531ace,_0x36bec6={'XBqdr':function(_0x1d5ce4,_0x327688){return _0x1d5ce4+_0x327688;},'IINPz':function(_0x186611,_0x153f33){return _0x186611+_0x153f33;},'dSdHV':function(_0x1ea721,_0x5e0b1a){return _0x1ea721+_0x5e0b1a;},'RPmMB':function(_0x19ebfc,_0x29b6a2){return _0x19ebfc+_0x29b6a2;},'Tesab':_0x77f411(0x175),'HtIBA':_0x77f411(0x15f),'qjbbW':';\x20p_uin=o','Sgyoy':function(_0x13ecc8,_0x226973){return _0x13ecc8||_0x226973;},'Nqjwa':function(_0x7f9740,_0x4232a3){return _0x7f9740+_0x4232a3;},'Hfsjq':function(_0x1377ac,_0x370c10){return _0x1377ac+_0x370c10;},'NAHOD':'qid=','JOYBf':'&text=','Wxybr':'&pinned=0&type=1&settings={\x22is_show_edit_card\x22:1,\x22tip_window_type\x22:1,\x22confirm_required\x22:1}'};let _0x17850d=(await NTQQUserApi[_0x77f411(0x197)](['qun.qq.com']))['qun.qq.com'],_0x1b2bb8=await NTQQUserApi[_0x77f411(0x14c)](),_0x3b76a9=_0x36bec6['XBqdr'](_0x36bec6[_0x77f411(0x1a6)](_0x36bec6[_0x77f411(0x18c)](_0x36bec6[_0x77f411(0x1a9)](_0x36bec6['RPmMB'](_0x36bec6[_0x77f411(0x1ae)],_0x17850d),_0x36bec6['HtIBA']),_0x1b2bb8),_0x36bec6['qjbbW']),selfInfo['uin']),_0x5e04cf=undefined;if(_0x36bec6[_0x77f411(0x16e)](!_0x1b2bb8,!_0x17850d))return undefined;let _0x40f244=WebApi[_0x77f411(0x155)](_0x1b2bb8),_0x90f509=_0x36bec6[_0x77f411(0x19a)](_0x36bec6[_0x77f411(0x158)](_0x36bec6[_0x77f411(0x158)](_0x36bec6[_0x77f411(0x18c)](_0x36bec6['XBqdr'](_0x36bec6[_0x77f411(0x18c)](_0x36bec6[_0x77f411(0x144)],_0x276f89),_0x77f411(0x164)),_0x40f244),_0x36bec6['JOYBf']),_0x4b6c69),_0x36bec6[_0x77f411(0x16d)]),_0x15b8df=_0x36bec6[_0x77f411(0x1a6)]('https://web.qun.qq.com/cgi-bin/announce/add_qun_notice?bkn=',_0x40f244);try{return _0x5e04cf=await WebApi[_0x77f411(0x151)](_0x15b8df,_0x77f411(0x17a),'',_0x3b76a9),_0x5e04cf;}catch(_0x27b832){return undefined;}return undefined;}static async[_0x531ace(0x141)](_0x4bf41a){const _0x1578ad=_0x531ace,_0x4c07a3={'bzREA':_0x1578ad(0x1a1),'uGJwl':function(_0x1c10f8,_0xd8ab2c){return _0x1c10f8+_0xd8ab2c;},'XXsJq':function(_0x25de4b,_0x50eab9){return _0x25de4b+_0x50eab9;},'mJJeC':function(_0x2523da,_0x29693c){return _0x2523da+_0x29693c;},'Fxrfc':function(_0x5e90fb,_0x267723){return _0x5e90fb+_0x267723;},'gmAdl':_0x1578ad(0x175),'DJwTM':';\x20skey=','PYTYW':function(_0xd19ce1,_0x3af8d1){return _0xd19ce1||_0x3af8d1;},'egbXo':function(_0x2590d3,_0x3db071){return _0x2590d3+_0x3db071;},'AWYzN':function(_0x44e492,_0x25a3bd){return _0x44e492+_0x25a3bd;},'hZbje':function(_0x48c0ab,_0x1208e9){return _0x48c0ab+_0x1208e9;},'feNOC':_0x1578ad(0x165),'HArei':_0x1578ad(0x189),'tvbTN':_0x1578ad(0x19d),'CiXOb':_0x1578ad(0x17a),'oAKJj':function(_0x23b934,_0x46558c){return _0x23b934!==_0x46558c;}};let _0x52294d=(await NTQQUserApi[_0x1578ad(0x197)]([_0x4c07a3['bzREA']]))[_0x4c07a3[_0x1578ad(0x1ac)]],_0xacbe61=await NTQQUserApi['getSkey'](),_0x517837=_0x4c07a3['uGJwl'](_0x4c07a3['XXsJq'](_0x4c07a3[_0x1578ad(0x172)](_0x4c07a3[_0x1578ad(0x176)](_0x4c07a3[_0x1578ad(0x168)],_0x52294d),_0x4c07a3[_0x1578ad(0x152)])+_0xacbe61,_0x1578ad(0x15d)),selfInfo['uin']),_0x4b5bc2=undefined;if(_0x4c07a3[_0x1578ad(0x17c)](!_0xacbe61,!_0x52294d))return undefined;let _0x278aa3=WebApi['genBkn'](_0xacbe61),_0x47bd4f=_0x4c07a3['egbXo'](_0x4c07a3[_0x1578ad(0x150)](_0x4c07a3[_0x1578ad(0x171)](_0x4c07a3[_0x1578ad(0x16f)](_0x4c07a3[_0x1578ad(0x190)],_0x278aa3),_0x4c07a3[_0x1578ad(0x18f)]),_0x4bf41a),_0x4c07a3['tvbTN']);try{_0x4b5bc2=await WebApi['httpDataJson'](_0x47bd4f,_0x4c07a3[_0x1578ad(0x178)],'',_0x517837);if(_0x4c07a3['oAKJj'](_0x4b5bc2?.['ec'],0x0))return undefined;return _0x4b5bc2;}catch(_0x5765c8){return undefined;}return undefined;}static async['httpDataText'](_0x5d17cc='',_0x3095bd=_0x531ace(0x17a),_0x597697='',_0x5e2c76=''){const _0x4bee82=_0x531ace,_0x4d036d={'CKGkv':function(_0x40d743,_0x109abe){return _0x40d743===_0x109abe;},'vEQiB':_0x4bee82(0x17a),'JTKdX':function(_0x309033,_0x12c8bd){return _0x309033===_0x12c8bd;},'UddIp':_0x4bee82(0x156),'tDptc':function(_0x534a6d,_0x305b6b,_0x326e56){return _0x534a6d(_0x305b6b,_0x326e56);},'Eipnp':_0x4bee82(0x169)};let _0x156a1f='';return new Promise(async(_0xe89eae,_0x30d233)=>{const _0x509fc6=_0x4bee82;try{let _0x2d7f85=undefined;_0x4d036d['CKGkv'](_0x3095bd,_0x4d036d[_0x509fc6(0x149)])||_0x4d036d[_0x509fc6(0x1a7)](_0x3095bd,_0x4d036d[_0x509fc6(0x18d)])?_0x2d7f85=await _0x4d036d[_0x509fc6(0x17d)](fetch,_0x5d17cc,{'method':_0x3095bd,'headers':{'Content-Type':_0x4d036d[_0x509fc6(0x186)],'Cookie':_0x5e2c76}}):_0x2d7f85=await fetch(_0x5d17cc,{'method':_0x3095bd,'headers':{'Content-Type':_0x509fc6(0x169),'Cookie':_0x5e2c76},'body':_0x597697});if(_0x2d7f85['ok'])_0x156a1f=await _0x2d7f85[_0x509fc6(0x147)]();else{}}catch(_0x39399a){}_0xe89eae(_0x156a1f);});}static async[_0x531ace(0x151)](_0x2b97c1='',_0x5bc3fc=_0x531ace(0x17a),_0x156b32='',_0x1310dd=''){const _0x1b23fd=_0x531ace,_0x1b3c12={'SoOij':function(_0x589f7e,_0xe6afae){return _0x589f7e===_0xe6afae;},'DTufR':_0x1b23fd(0x17a),'nhxvX':_0x1b23fd(0x156),'AMOAs':'application/x-www-form-urlencoded','YKusY':function(_0x449375,_0x10db99,_0x3f05f9){return _0x449375(_0x10db99,_0x3f05f9);},'yhSoc':function(_0x1b45f4,_0x2b9244){return _0x1b45f4(_0x2b9244);}};let _0x54f6b0=undefined;return new Promise(async(_0x41e1aa,_0x13a396)=>{const _0x17abae=_0x1b23fd;try{let _0x2c6e32=undefined;_0x1b3c12[_0x17abae(0x18e)](_0x5bc3fc,_0x1b3c12['DTufR'])||_0x1b3c12[_0x17abae(0x18e)](_0x5bc3fc,_0x1b3c12[_0x17abae(0x1a8)])?_0x2c6e32=await fetch(_0x2b97c1,{'method':_0x5bc3fc,'headers':{'Content-Type':_0x1b3c12[_0x17abae(0x17e)],'Cookie':_0x1310dd}}):_0x2c6e32=await _0x1b3c12[_0x17abae(0x154)](fetch,_0x2b97c1,{'method':_0x5bc3fc,'headers':{'Content-Type':'application/x-www-form-urlencoded','Cookie':_0x1310dd},'body':_0x156b32});if(_0x2c6e32['ok'])_0x54f6b0=await _0x2c6e32[_0x17abae(0x167)]();else{}}catch(_0x56de2c){}_0x1b3c12[_0x17abae(0x183)](_0x41e1aa,_0x54f6b0);});}static[_0x531ace(0x155)](_0x1df534){const _0x3eedc8=_0x531ace,_0x18b77d={'CoCgx':function(_0x2f2a04,_0x22eefe){return _0x2f2a04||_0x22eefe;},'stDQH':function(_0x5dafbd,_0x2498af){return _0x5dafbd<_0x2498af;},'PkUyM':function(_0x417414,_0x586559){return _0x417414+_0x586559;},'DxTTb':function(_0x146278,_0x230a40){return _0x146278<<_0x230a40;},'KUceh':function(_0x2a694d,_0x16560f){return _0x2a694d&_0x16560f;}};_0x1df534=_0x18b77d[_0x3eedc8(0x162)](_0x1df534,'');let _0x4b7834=0x1505;for(let _0x27f574=0x0;_0x18b77d[_0x3eedc8(0x15b)](_0x27f574,_0x1df534['length']);_0x27f574++){const _0x39e9ee=_0x1df534[_0x3eedc8(0x18b)](_0x27f574);_0x4b7834=_0x18b77d[_0x3eedc8(0x1aa)](_0x4b7834,_0x18b77d[_0x3eedc8(0x148)](_0x4b7834,0x5))+_0x39e9ee;}return _0x18b77d[_0x3eedc8(0x16b)](_0x4b7834,0x7fffffff)[_0x3eedc8(0x142)]();}} \ No newline at end of file diff --git a/src/core.lib/src/apis/window.js b/src/core.lib/src/apis/window.js index 3627951c..1a8c67ab 100644 --- a/src/core.lib/src/apis/window.js +++ b/src/core.lib/src/apis/window.js @@ -1 +1 @@ -function _0x3f4f(_0xcf3413,_0x330aec){var _0x282f46=_0x282f();return _0x3f4f=function(_0x3f4f91,_0x23b810){_0x3f4f91=_0x3f4f91-0x1e7;var _0x341471=_0x282f46[_0x3f4f91];return _0x341471;},_0x3f4f(_0xcf3413,_0x330aec);}var _0x38f7e9=_0x3f4f;function _0x282f(){var _0x5616b4=['2163007sfWdlf','4722700apBgRN','2112buOIGQ','GroupEssenceWindow','#/group-essence','3678ZKrGLj','GroupHomeWorkWindow','4nRgFwN','13266LAYlyX','44qboeHp','4135kcybhQ','2696571MrMTVn','16898xMsOQT','GroupNotifyFilterWindow','#/group-notify-filter','14686jerLgz','#/group-home-work'];_0x282f=function(){return _0x5616b4;};return _0x282f();}(function(_0x89292a,_0xa5cb23){var _0x4d0b65=_0x3f4f,_0x51b029=_0x89292a();while(!![]){try{var _0xba4c66=parseInt(_0x4d0b65(0x1ed))/0x1*(parseInt(_0x4d0b65(0x1f2))/0x2)+parseInt(_0x4d0b65(0x1ee))/0x3*(-parseInt(_0x4d0b65(0x1ef))/0x4)+parseInt(_0x4d0b65(0x1f0))/0x5*(-parseInt(_0x4d0b65(0x1eb))/0x6)+-parseInt(_0x4d0b65(0x1f5))/0x7*(-parseInt(_0x4d0b65(0x1e8))/0x8)+-parseInt(_0x4d0b65(0x1f1))/0x9+parseInt(_0x4d0b65(0x1e7))/0xa+parseInt(_0x4d0b65(0x1f7))/0xb;if(_0xba4c66===_0xa5cb23)break;else _0x51b029['push'](_0x51b029['shift']());}catch(_0x1f8d7b){_0x51b029['push'](_0x51b029['shift']());}}}(_0x282f,0x61fd3));export class NTQQWindows{static ['GroupHomeWorkWindow']={'windowName':_0x38f7e9(0x1ec),'windowUrlHash':_0x38f7e9(0x1f6)};static [_0x38f7e9(0x1f3)]={'windowName':_0x38f7e9(0x1f3),'windowUrlHash':_0x38f7e9(0x1f4)};static [_0x38f7e9(0x1e9)]={'windowName':_0x38f7e9(0x1e9),'windowUrlHash':_0x38f7e9(0x1ea)};}export class NTQQWindowApi{} \ No newline at end of file +var _0x46abb0=_0x502b;(function(_0x546920,_0x4dd8a0){var _0x5f29a7=_0x502b,_0xa72c38=_0x546920();while(!![]){try{var _0x31cd44=parseInt(_0x5f29a7(0x81))/0x1+-parseInt(_0x5f29a7(0x75))/0x2*(parseInt(_0x5f29a7(0x83))/0x3)+-parseInt(_0x5f29a7(0x80))/0x4+-parseInt(_0x5f29a7(0x78))/0x5+-parseInt(_0x5f29a7(0x7d))/0x6*(parseInt(_0x5f29a7(0x79))/0x7)+parseInt(_0x5f29a7(0x7e))/0x8+parseInt(_0x5f29a7(0x77))/0x9*(parseInt(_0x5f29a7(0x7f))/0xa);if(_0x31cd44===_0x4dd8a0)break;else _0xa72c38['push'](_0xa72c38['shift']());}catch(_0x557e3a){_0xa72c38['push'](_0xa72c38['shift']());}}}(_0x207e,0x874c8));export class NTQQWindows{static ['GroupHomeWorkWindow']={'windowName':'GroupHomeWorkWindow','windowUrlHash':_0x46abb0(0x7c)};static [_0x46abb0(0x7a)]={'windowName':'GroupNotifyFilterWindow','windowUrlHash':_0x46abb0(0x7b)};static ['GroupEssenceWindow']={'windowName':_0x46abb0(0x82),'windowUrlHash':_0x46abb0(0x76)};}function _0x502b(_0x2019f6,_0x78a8f3){var _0x207ebe=_0x207e();return _0x502b=function(_0x502b73,_0x3799ee){_0x502b73=_0x502b73-0x75;var _0x53d9e7=_0x207ebe[_0x502b73];return _0x53d9e7;},_0x502b(_0x2019f6,_0x78a8f3);}function _0x207e(){var _0x5a34b7=['77HOBIWb','GroupNotifyFilterWindow','#/group-notify-filter','#/group-home-work','320934RniygA','6837928tHkGlb','190OnGUBS','1245952qwucxb','318629hCyoUw','GroupEssenceWindow','196743kqmlyE','28eFvzGQ','#/group-essence','675999ZZagbh','1141470dQduNl'];_0x207e=function(){return _0x5a34b7;};return _0x207e();}export class NTQQWindowApi{} \ No newline at end of file diff --git a/src/core.lib/src/core.js b/src/core.lib/src/core.js index 0f208a77..f68bc497 100644 --- a/src/core.lib/src/core.js +++ b/src/core.lib/src/core.js @@ -1 +1 @@ -const _0x38334f=_0x570e;(function(_0x235243,_0x3bbc1d){const _0x8ffae0=_0x570e,_0x4e7b37=_0x235243();while(!![]){try{const _0x50aa33=parseInt(_0x8ffae0(0xf0))/0x1+-parseInt(_0x8ffae0(0xce))/0x2*(parseInt(_0x8ffae0(0x125))/0x3)+parseInt(_0x8ffae0(0xcb))/0x4*(-parseInt(_0x8ffae0(0xe6))/0x5)+-parseInt(_0x8ffae0(0xdb))/0x6+parseInt(_0x8ffae0(0xca))/0x7+-parseInt(_0x8ffae0(0xc1))/0x8+parseInt(_0x8ffae0(0x10f))/0x9*(parseInt(_0x8ffae0(0xdc))/0xa);if(_0x50aa33===_0x3bbc1d)break;else _0x4e7b37['push'](_0x4e7b37['shift']());}catch(_0x4ff3e3){_0x4e7b37['push'](_0x4e7b37['shift']());}}}(_0x33a8,0x4fcbd));import _0x531d56 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x101742 from'node:path';import _0x40b0eb from'node:os';import _0x5c6f2f from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';function _0x33a8(){const _0x29784e=['push','getMsgByLongId','base64','./.config/QQ','NodeIKernelLoginListener','ZLTvI','forEach','GroupListener','updateMsg','initConfig','onProfileDetailInfoChanged','digest','homedir','onQRCodeLoginSucceed','./NapCat/data','onQRCodeSessionFailed','XSjVh','TbOqR','vmrCq','addKernelBuddyListener','find','HSsch','startNT','onLoginSuccess','constructor','140022008','getBuddyService','addKernelGroupListener','NodeIKernelProfileListener','cHiMB','2664208zaRyfV','TWvCO','快速登录不可用','passwordLogin','vJezi','resolve','name','YKQVA','dataPathGlobal','993552eHVIpn','69356CCvcIz','ProfileListener','Zcxzc','10194rqVLQI','jWWHq','kGktn','quickLogin','ERbMh','getProfileService','msgId','uYMrX','proxyHandler','loginService','initWithDeskTopConfig','update','VLovb','799308PyfyRV','10AHnuUD','启动失败:\x20','getNTUserDataInfoConfig','NodeQQNTWrapperUtil','getMsgService','onMsgInfoListUpdate','catch','split','NodeIQQNTWrapperSession','assign','75wFXJCK','iYQsl','initSession','getGroupService','groupMemberList_MainWindow','V1_WIN_NQ_','-v2.db','onLoginFailed','Jfyto','init','271459XqdEUc','onBuddyListChange','NodeIKernelLoginService','vScdT','then','NodeIDependsAdapter','_GW_B','replace','curVersion','jvUiZ','map','uid','\x20has\x20no\x20method\x20','BuddyListener','uin','本账号数据/缓存目录:','Windows\x2010\x20Pro','addListener','result','infos','getLoginList','TBjPN','getNextMemberList','ZRyvh','addMsg','HMNTY','onLoginState','set','快速登录失败\x20','NodeIKernelMsgListener','Mgaww','9703089tvCaeH','CINBe','hRyMw','md5','addKernelMsgListener','NodeIDispatcherAdapter','data:image/png;base64,','getBuddyList','onMemberInfoChange','PQXVH','没有可快速登录的QQ号','addKernelProfileListener','stringify','undefined','UmDKH','NodeIKernelGroupListener','SMPyq','quickLoginWithUin','NodeIKernelBuddyListener','loginListener','init\x20failed\x20','登录失败','258LxVQfx','Dcxzh','dataPath','pBGcK','initDataListener','pngBase64QrcodeData','./nt_qq/global','groupCode','recallTime','session','get','zOlCR','当前账号已登录,无法重复登录','onMemberListChange','consoleLogLevel','leRVW','onSessionInitComplete','createHash','fileLog','NodeIGlobalAdapter','NodeIKernelSessionListener','onLoginSuccessFuncList','util','mKsVu'];_0x33a8=function(){return _0x29784e;};return _0x33a8();}import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x40a5b3 from'node:crypto';function _0x570e(_0x1c4ce1,_0xdcc05d){const _0x33a879=_0x33a8();return _0x570e=function(_0x570e2a,_0x141413){_0x570e2a=_0x570e2a-0x9d;let _0x52ae25=_0x33a879[_0x570e2a];return _0x52ae25;},_0x570e(_0x1c4ce1,_0xdcc05d);}import{friends,groupMembers,groups,selfInfo,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x38334f(0x12e)];[_0x38334f(0xa1)];['engine'];[_0x38334f(0xd7)];[_0x38334f(0x122)];['onLoginSuccessFuncList']=[];[_0x38334f(0xd6)]={'get'(target,prop,receiver){const _0x5f237f=_0x38334f,Mijbzd={'HSsch':function(callee,param1){return callee(param1);},'HMNTY':function(x,y){return x===y;}};if(Mijbzd[_0x5f237f(0x109)](typeof target[prop],_0x5f237f(0x11c)))return(...args)=>{const _0x4a8811=_0x5f237f;Mijbzd[_0x4a8811(0xb8)](logDebug,target[_0x4a8811(0xbb)][_0x4a8811(0xc7)]+_0x4a8811(0xfc)+prop);};return Reflect[_0x5f237f(0x12f)](target,prop,receiver);}};constructor(){const _0x5e5cea=_0x38334f,_0x50afe0={'vJezi':function(_0x360bf5,_0x4433c8){return _0x360bf5(_0x4433c8);},'mKsVu':function(_0x440889,_0x4209c1,_0x5c19cd){return _0x440889(_0x4209c1,_0x5c19cd);},'pBGcK':'initSession\x20failed','jvUiZ':'数据库初始化失败','vmrCq':'登录失败'};this['engine']=new _0x531d56['NodeIQQNTWrapperEngine'](),this[_0x5e5cea(0xa1)]=new _0x531d56[(_0x5e5cea(0xdf))](),this['loginService']=new _0x531d56[(_0x5e5cea(0xf2))](),this[_0x5e5cea(0x12e)]=new _0x531d56[(_0x5e5cea(0xe4))](),this[_0x5e5cea(0x122)]=new LoginListener(),this[_0x5e5cea(0x122)][_0x5e5cea(0x10a)]=_0x2f4ee4=>{const _0x49051e=_0x5e5cea;_0x2f4ee4==0x3&&_0x50afe0['vJezi'](logError,_0x49051e(0x131));},this[_0x5e5cea(0x122)][_0x5e5cea(0xb0)]=_0x42ecab=>{const _0xd1b07f=_0x5e5cea,_0x4f785f={'Jfyto':_0x50afe0[_0xd1b07f(0xf9)],'PQXVH':function(_0x38c6f1,_0xa43111,_0x4c1f37){return _0x38c6f1(_0xa43111,_0x4c1f37);},'XpRSw':function(_0x396a69,_0x3f9a20){const _0x1f9e67=_0xd1b07f;return _0x50afe0[_0x1f9e67(0xc5)](_0x396a69,_0x3f9a20);},'Mgaww':function(_0x39e1e2,_0x4c4dbe){const _0xd38455=_0xd1b07f;return _0x50afe0[_0xd38455(0xc5)](_0x39e1e2,_0x4c4dbe);},'vScdT':_0xd1b07f(0xff)};this[_0xd1b07f(0xe8)](_0x42ecab[_0xd1b07f(0xfe)],_0x42ecab['uid'])[_0xd1b07f(0xf4)](_0x48637e=>{const _0x3e1a18=_0xd1b07f;selfInfo[_0x3e1a18(0xfe)]=_0x42ecab['uin'],selfInfo[_0x3e1a18(0xfb)]=_0x42ecab[_0x3e1a18(0xfb)],napCatConfig['read'](),_0x4f785f[_0x3e1a18(0x118)](setLogLevel,napCatConfig['fileLogLevel'],napCatConfig[_0x3e1a18(0x133)]),_0x4f785f['XpRSw'](enableFileLog,napCatConfig[_0x3e1a18(0x9d)]),enableConsoleLog(napCatConfig['consoleLog']),_0x4f785f[_0x3e1a18(0x10e)](setLogSelfInfo,selfInfo);const _0x50287b=_0x101742['resolve'](this[_0x3e1a18(0x127)],_0x3e1a18(0xb1));_0x5c6f2f['mkdirSync'](_0x50287b,{'recursive':!![]}),logDebug(_0x4f785f[_0x3e1a18(0xf3)],_0x50287b),dbUtil[_0x3e1a18(0xef)](_0x101742['resolve'](_0x50287b,'./'+_0x42ecab[_0x3e1a18(0xfe)]+_0x3e1a18(0xec)))['then'](()=>{const _0x391513=_0x3e1a18;this[_0x391513(0x129)](),this['onLoginSuccessFuncList'][_0x391513(0xfa)](_0x1f56ea=>{const _0x337ea0=_0x391513,_0x23083b={'VLovb':function(_0x3cb480,_0x2456eb){return _0x3cb480 instanceof _0x2456eb;}};new Promise((_0x2eb2f9,_0x4717b)=>{const _0x45e4e8=_0x570e,_0x2669ea=_0x1f56ea(_0x42ecab[_0x45e4e8(0xfe)],_0x42ecab['uid']);_0x23083b[_0x45e4e8(0xda)](_0x2669ea,Promise)&&_0x2669ea[_0x45e4e8(0xf4)](_0x2eb2f9)['catch'](_0x4717b);})[_0x337ea0(0xf4)]();});})[_0x3e1a18(0xe2)](_0x3a5712=>{const _0x303b5d=_0x3e1a18;logError(_0x4f785f[_0x303b5d(0xee)],_0x3a5712);});})[_0xd1b07f(0xe2)](_0x507ae9=>{const _0x138ea7=_0xd1b07f;_0x50afe0[_0x138ea7(0xa2)](logError,_0x50afe0[_0x138ea7(0x128)],_0x507ae9);throw new Error(_0x138ea7(0xdd)+JSON[_0x138ea7(0x11b)](_0x507ae9));});},this['loginListener'][_0x5e5cea(0xb2)]=_0x4e9d0b=>{const _0x571e15=_0x5e5cea;logError(_0x571e15(0x124),_0x4e9d0b);},this['loginListener'][_0x5e5cea(0xed)]=_0x3a2316=>{const _0x43193f=_0x5e5cea;logError(_0x50afe0[_0x43193f(0xb5)],_0x3a2316);},this[_0x5e5cea(0x122)]=new Proxy(this[_0x5e5cea(0x122)],this[_0x5e5cea(0xd6)]),this[_0x5e5cea(0xd7)]['addKernelLoginListener'](new _0x531d56[(_0x5e5cea(0xa7))](this[_0x5e5cea(0x122)])),this[_0x5e5cea(0xac)]();}get['dataPath'](){const _0x2a65d7=_0x38334f,_0x13c79a={'ZRyvh':_0x2a65d7(0xa6)};let _0x1aac63=this[_0x2a65d7(0xa1)][_0x2a65d7(0xde)]();return!_0x1aac63&&(_0x1aac63=_0x101742[_0x2a65d7(0xc6)](_0x40b0eb[_0x2a65d7(0xaf)](),_0x13c79a[_0x2a65d7(0x107)]),_0x5c6f2f['mkdirSync'](_0x1aac63,{'recursive':!![]})),_0x1aac63;}get[_0x38334f(0xc9)](){const _0x12dd4f=_0x38334f,_0x9f8eb1={'TBjPN':_0x12dd4f(0x12b)};return _0x101742['resolve'](this['dataPath'],_0x9f8eb1[_0x12dd4f(0x105)]);}[_0x38334f(0xac)](){const _0x284323=_0x38334f,_0x510521={'Zcxzc':_0x284323(0x100)};this['engine'][_0x284323(0xd8)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x284323(0xf8)],'os_version':_0x510521[_0x284323(0xcd)],'use_xlog':!![],'qua':_0x284323(0xeb)+qqVersionConfigInfo[_0x284323(0xf8)][_0x284323(0xf7)]('-','_')+_0x284323(0xf6),'global_path_config':{'desktopGlobalPath':this['dataPathGlobal']},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x531d56[(_0x284323(0x9e))](new GlobalAdapter())),this['loginService'][_0x284323(0xac)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x284323(0xc9)],'clientVer':qqVersionConfigInfo[_0x284323(0xf8)],'hostName':hostname});}[_0x38334f(0xe8)](_0x26278b,_0x3f85c5){const _0x2ba7d4=_0x38334f,_0x237241={'IdWqY':function(_0x52eaf9,_0x224512){return _0x52eaf9===_0x224512;},'XSjVh':function(_0x3f651d,_0x4572db){return _0x3f651d(_0x4572db);},'FaVUm':function(_0x21592e,_0x5d2ddf,_0x11b331,_0x1b21a7){return _0x21592e(_0x5d2ddf,_0x11b331,_0x1b21a7);},'uYMrX':function(_0x5ccef1,_0x38206e){return _0x5ccef1+_0x38206e;},'YKQVA':_0x2ba7d4(0x123)};return new Promise((_0x88fd4c,_0x4d679c)=>{const _0x52e7d6=_0x2ba7d4,_0x459983=_0x237241['FaVUm'](genSessionConfig,_0x26278b,_0x3f85c5,this['dataPath']),_0x167225=new SessionListener();_0x167225[_0x52e7d6(0x135)]=_0x4151c7=>{const _0x1696fc=_0x52e7d6;if(_0x237241['IdWqY'](_0x4151c7,0x0))return _0x237241[_0x1696fc(0xb3)](_0x88fd4c,0x0);_0x4d679c(_0x4151c7);},this['session'][_0x52e7d6(0xef)](_0x459983,new _0x531d56[(_0x52e7d6(0xf5))](new DependsAdapter()),new _0x531d56[(_0x52e7d6(0x114))](new DispatcherAdapter()),new _0x531d56[(_0x52e7d6(0x9f))](_0x167225));try{this[_0x52e7d6(0x12e)][_0x52e7d6(0xb9)](0x0);}catch(_0x410f97){try{this[_0x52e7d6(0x12e)]['startNT']();}catch(_0x16aaab){_0x237241['XSjVh'](_0x4d679c,_0x237241[_0x52e7d6(0xd5)](_0x237241[_0x52e7d6(0xc8)],_0x16aaab));}}});}[_0x38334f(0x129)](){const _0xbc2812=_0x38334f,_0x45103b={'ZLTvI':function(_0x40b1de,_0x1243fc){return _0x40b1de===_0x1243fc;}},_0x468004=new MsgListener();_0x468004[_0xbc2812(0xe1)]=_0x33820c=>{const _0x4446d6={'ePtxU':function(_0x3e3d6f,_0x40c48f){const _0x5c22d3=_0x570e;return _0x45103b[_0x5c22d3(0xa8)](_0x3e3d6f,_0x40c48f);}};_0x33820c['map'](_0x47815e=>{const _0x2b1e9f=_0x570e;_0x4446d6['ePtxU'](_0x47815e[_0x2b1e9f(0x12d)],'0')?dbUtil[_0x2b1e9f(0x108)](_0x47815e)[_0x2b1e9f(0xf4)]()[_0x2b1e9f(0xe2)]():dbUtil[_0x2b1e9f(0xa4)](_0x47815e[_0x2b1e9f(0xd4)])[_0x2b1e9f(0xf4)](_0xac3ab2=>{const _0xf3026=_0x2b1e9f;_0xac3ab2&&(_0xac3ab2[_0xf3026(0x12d)]=_0x47815e[_0xf3026(0x12d)],dbUtil[_0xf3026(0xab)](_0xac3ab2)[_0xf3026(0xf4)]());});});},this[_0xbc2812(0x101)](_0x468004);const _0x1535ed=new BuddyListener();_0x1535ed[_0xbc2812(0xf1)]=_0x1a8d1c=>{const _0x1f9309=_0xbc2812;for(const _0x37dbd3 of _0x1a8d1c){for(const _0x199f2f of _0x37dbd3['buddyList']){const _0x64e7fc=friends['get'](_0x199f2f['uid']);uid2UinMap[_0x199f2f[_0x1f9309(0xfb)]]=_0x199f2f[_0x1f9309(0xfe)],_0x64e7fc?Object[_0x1f9309(0xe5)](_0x64e7fc,_0x199f2f):friends['set'](_0x199f2f[_0x1f9309(0xfb)],_0x199f2f);}}},this[_0xbc2812(0x101)](_0x1535ed),this['session'][_0xbc2812(0xbd)]()[_0xbc2812(0x116)](!![])[_0xbc2812(0xf4)](_0x3b5a75=>{});const _0xb1da6c=new ProfileListener();_0xb1da6c[_0xbc2812(0xad)]=_0xe685c8=>{const _0x51ae7c=_0xbc2812;_0x45103b[_0x51ae7c(0xa8)](_0xe685c8[_0x51ae7c(0xfb)],selfInfo[_0x51ae7c(0xfb)])&&Object[_0x51ae7c(0xe5)](selfInfo,_0xe685c8);},this[_0xbc2812(0x101)](_0xb1da6c);const _0x30def5=new GroupListener();_0x30def5['onGroupListUpdate']=(_0x493799,_0x257b3)=>{_0x257b3['map'](_0x6bdd54=>{const _0x1ea671=_0x570e,_0x361f3d=groups['get'](_0x6bdd54['groupCode']);if(_0x361f3d)Object[_0x1ea671(0xe5)](_0x361f3d,_0x6bdd54);else{groups[_0x1ea671(0x10b)](_0x6bdd54[_0x1ea671(0x12c)],_0x6bdd54);const _0x3fb9cd=this['session']['getGroupService']()['createMemberListScene'](_0x6bdd54[_0x1ea671(0x12c)],_0x1ea671(0xea));this[_0x1ea671(0x12e)]['getGroupService']()[_0x1ea671(0x106)](_0x3fb9cd,undefined,0xbb8)[_0x1ea671(0xf4)](_0x5c9210=>{});}});},_0x30def5[_0xbc2812(0x132)]=_0x12c9b5=>{const _0x167531=_0xbc2812,_0x5e435b=_0x12c9b5['sceneId'][_0x167531(0xe3)]('_')[0x0];if(groupMembers['has'](_0x5e435b)){const _0x46f783=groupMembers[_0x167531(0x12f)](_0x5e435b);_0x12c9b5[_0x167531(0x103)][_0x167531(0xa9)]((_0x7c7c96,_0x22d408)=>{const _0x5e8d2d=_0x167531,_0x2df85e=_0x46f783[_0x5e8d2d(0x12f)](_0x22d408);_0x2df85e?Object[_0x5e8d2d(0xe5)](_0x2df85e,_0x7c7c96):_0x46f783['set'](_0x22d408,_0x7c7c96);});}else groupMembers[_0x167531(0x10b)](_0x5e435b,_0x12c9b5[_0x167531(0x103)]);},_0x30def5[_0xbc2812(0x117)]=(_0x1c91fc,_0x18ca8d,_0x21fdf3)=>{const _0x42c397=_0xbc2812;_0x21fdf3[_0x42c397(0xa9)]((_0x92b1d9,_0x1ab087)=>{const _0x48889a=_0x42c397;uid2UinMap[_0x1ab087]=_0x92b1d9[_0x48889a(0xfe)];});const _0x2ad2e8=groupMembers[_0x42c397(0x12f)](_0x1c91fc);_0x2ad2e8?_0x21fdf3[_0x42c397(0xa9)]((_0x357dd6,_0xd5e0dd)=>{const _0x142c61=_0x42c397,_0x461472=_0x2ad2e8[_0x142c61(0x12f)](_0xd5e0dd);_0x461472?Object['assign'](_0x461472,_0x357dd6):_0x2ad2e8[_0x142c61(0x10b)](_0xd5e0dd,_0x357dd6);}):groupMembers['set'](_0x1c91fc,_0x21fdf3);},this[_0xbc2812(0x101)](_0x30def5);}[_0x38334f(0x101)](_0x50ee23){const _0xa4fa30=_0x38334f,_0x595ab5={'cHiMB':_0xa4fa30(0xfd),'IBNmi':_0xa4fa30(0xcc)};_0x50ee23=new Proxy(_0x50ee23,this['proxyHandler']);switch(_0x50ee23[_0xa4fa30(0xbb)][_0xa4fa30(0xc7)]){case _0x595ab5[_0xa4fa30(0xc0)]:{return this[_0xa4fa30(0x12e)][_0xa4fa30(0xbd)]()[_0xa4fa30(0xb6)](new _0x531d56[(_0xa4fa30(0x121))](_0x50ee23));}case _0xa4fa30(0xaa):{return this[_0xa4fa30(0x12e)][_0xa4fa30(0xe9)]()[_0xa4fa30(0xbe)](new _0x531d56[(_0xa4fa30(0x11e))](_0x50ee23));}case'MsgListener':{return this[_0xa4fa30(0x12e)][_0xa4fa30(0xe0)]()[_0xa4fa30(0x113)](new _0x531d56[(_0xa4fa30(0x10d))](_0x50ee23));}case _0x595ab5['IBNmi']:{return this['session'][_0xa4fa30(0xd3)]()[_0xa4fa30(0x11a)](new _0x531d56[(_0xa4fa30(0xbf))](_0x50ee23));}default:return-0x1;}}[_0x38334f(0xba)](_0x3913f8){const _0x58adac=_0x38334f;this[_0x58adac(0xa0)][_0x58adac(0xa3)](_0x3913f8);}async[_0x38334f(0xd1)](_0x5ea256){const _0x26b375=_0x38334f,_0x24f6a0={'pfmEe':function(_0x1b358e,_0x10d01e){return _0x1b358e!==_0x10d01e;},'ERbMh':_0x26b375(0x119),'TWvCO':function(_0x458259,_0x13f4dc){return _0x458259(_0x13f4dc);},'jWWHq':function(_0x5e2ddb,_0x6f80bf){return _0x5e2ddb+_0x6f80bf;}},_0x3574e4=await this['loginService'][_0x26b375(0x104)]();if(_0x24f6a0['pfmEe'](_0x3574e4['result'],0x0))throw new Error(_0x24f6a0[_0x26b375(0xd2)]);const _0x5f4e61=_0x3574e4['LocalLoginInfoList'][_0x26b375(0xb7)](_0x50deb4=>_0x50deb4[_0x26b375(0xfe)]===_0x5ea256);if(!_0x5f4e61||!_0x5f4e61?.['isQuickLogin'])throw new Error(_0x5ea256+_0x26b375(0xc3));await _0x24f6a0[_0x26b375(0xc2)](sleep,0x3e8);const _0x1a504f=await this[_0x26b375(0xd7)][_0x26b375(0x120)](_0x5ea256);if(!_0x1a504f[_0x26b375(0x102)])throw new Error(_0x24f6a0[_0x26b375(0xcf)](_0x26b375(0x10c),_0x1a504f['loginErrorInfo']['errMsg']));return _0x1a504f;}async['qrLogin'](){const _0xced23=_0x38334f,_0x3fcd01={'Dcxzh':_0xced23(0x115),'hRyMw':function(_0x101aa3,_0x57d3da){return _0x101aa3(_0x57d3da);},'kMJbM':'获取二维码登录超时','UmDKH':function(_0x314436,_0x41a471,_0x2522c7){return _0x314436(_0x41a471,_0x2522c7);}};let _0x404159=![];return new Promise((_0xbca97,_0x4bd2f8)=>{const _0x38915f=_0xced23,_0x133648={'kGktn':function(_0x553944,_0x398ddd){return _0x553944(_0x398ddd);},'TbOqR':_0x3fcd01['kMJbM']};_0x3fcd01[_0x38915f(0x11d)](setTimeout,()=>{const _0x17da8f=_0x38915f;!_0x404159&&_0x133648[_0x17da8f(0xd0)](_0x4bd2f8,_0x133648[_0x17da8f(0xb4)]);},0x2710),this[_0x38915f(0x122)]['onQRCodeGetPicture']=_0x4c653d=>{const _0x30c3da=_0x38915f;_0x404159=!![];const _0x4876eb=_0x4c653d[_0x30c3da(0x12a)][_0x30c3da(0xe3)](_0x3fcd01[_0x30c3da(0x126)])[0x1],_0x5d3c34=Buffer['from'](_0x4876eb,_0x30c3da(0xa5));_0x3fcd01[_0x30c3da(0x111)](_0xbca97,{'url':_0x4c653d['qrcodeUrl'],'base64':_0x4c653d[_0x30c3da(0x12a)],'buffer':_0x5d3c34});},this[_0x38915f(0xd7)]['getQRCodePicture']();});}async[_0x38334f(0xc4)](_0x3c98d,_0x53df7d,_0x324e12,_0x58ca4a,_0x34109f){const _0x12cbd8=_0x38334f,_0x44f5ea={'zOlCR':_0x12cbd8(0x112),'dxbNx':'hex','leRVW':function(_0x2d6dcc,_0xd3e7da){return _0x2d6dcc||_0xd3e7da;},'CINBe':function(_0x5ab527,_0x1c445a){return _0x5ab527||_0x1c445a;},'SMPyq':function(_0x2a70d0,_0x4c9046){return _0x2a70d0(_0x4c9046);},'iYQsl':'140022013'},_0x44e893=_0x40a5b3[_0x12cbd8(0x136)](_0x44f5ea[_0x12cbd8(0x130)])[_0x12cbd8(0xd9)](_0x53df7d)[_0x12cbd8(0xae)](_0x44f5ea['dxbNx']),_0x15c6e6={'uin':_0x3c98d,'passwordMd5':_0x44e893,'step':_0x324e12&&_0x58ca4a&&_0x34109f?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x44f5ea[_0x12cbd8(0x134)](_0x324e12,''),'proofWaterRand':_0x58ca4a||'','proofWaterSid':_0x44f5ea[_0x12cbd8(0x110)](_0x34109f,'')};await this[_0x12cbd8(0xd7)][_0x12cbd8(0x104)](),await _0x44f5ea[_0x12cbd8(0x11f)](sleep,0x3e8);const _0x2e81f7=await this[_0x12cbd8(0xd7)][_0x12cbd8(0xc4)](_0x15c6e6);switch(_0x2e81f7[_0x12cbd8(0x102)]){case'0':{break;}case _0x12cbd8(0xbc):{break;}case'4':case _0x44f5ea[_0x12cbd8(0xe7)]:default:}}}export const napCatCore=new NapCatCore(); \ No newline at end of file +const _0x473d88=_0x30d2;(function(_0x385daf,_0x45cc3e){const _0x237561=_0x30d2,_0x357018=_0x385daf();while(!![]){try{const _0x188853=-parseInt(_0x237561(0x168))/0x1*(-parseInt(_0x237561(0x15b))/0x2)+parseInt(_0x237561(0x11b))/0x3+parseInt(_0x237561(0x163))/0x4*(-parseInt(_0x237561(0x175))/0x5)+-parseInt(_0x237561(0x106))/0x6+-parseInt(_0x237561(0x159))/0x7+parseInt(_0x237561(0x131))/0x8+-parseInt(_0x237561(0x153))/0x9*(-parseInt(_0x237561(0x158))/0xa);if(_0x188853===_0x45cc3e)break;else _0x357018['push'](_0x357018['shift']());}catch(_0x28fffd){_0x357018['push'](_0x357018['shift']());}}}(_0x2302,0xad1c5));import _0x31d530 from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0xff16b7 from'node:path';import _0x4e00f2 from'node:os';import _0x3301a2 from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';function _0x30d2(_0x55318f,_0x5268bc){const _0x230243=_0x2302();return _0x30d2=function(_0x30d26a,_0x1a3473){_0x30d26a=_0x30d26a-0xfe;let _0x5aeed4=_0x230243[_0x30d26a];return _0x5aeed4;},_0x30d2(_0x55318f,_0x5268bc);}import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x354633 from'node:crypto';import{friends,groupMembers,groups,selfInfo,uid2UinMap}from'@/core/data';import{enableConsoleLog,enableFileLog,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x473d88(0x161)];[_0x473d88(0x181)];[_0x473d88(0x182)];[_0x473d88(0x174)];[_0x473d88(0x138)];[_0x473d88(0x103)]=[];[_0x473d88(0x104)]={'get'(target,prop,receiver){const _0x478990=_0x473d88,ZFoAcc={'SHwfW':function(callee,param1){return callee(param1);},'qijtc':function(x,y){return x===y;},'CjzXv':_0x478990(0x178)};if(ZFoAcc[_0x478990(0x127)](typeof target[prop],ZFoAcc['CjzXv']))return(...args)=>{const _0x2603ba=_0x478990;ZFoAcc[_0x2603ba(0x190)](logDebug,target[_0x2603ba(0x108)][_0x2603ba(0x172)]+_0x2603ba(0x10a)+prop);};return Reflect['get'](target,prop,receiver);}};constructor(){const _0x41fb4a=_0x473d88,_0x4fbf7a={'QXNev':function(_0x418f3f,_0x37f17a){return _0x418f3f(_0x37f17a);},'sdvex':function(_0x177207,_0x5e77cb){return _0x177207+_0x5e77cb;},'cDsav':_0x41fb4a(0x126),'KirCu':_0x41fb4a(0x160),'LXNIn':function(_0x33b29b,_0x335271){return _0x33b29b(_0x335271);},'zhfcp':_0x41fb4a(0x10f),'zUgFr':_0x41fb4a(0x17d),'wsxUr':function(_0x3d84e3,_0x1a60a2,_0x410fa8){return _0x3d84e3(_0x1a60a2,_0x410fa8);},'vriyM':_0x41fb4a(0x141),'wIxKi':_0x41fb4a(0x13f),'GyKdN':function(_0x3a2418,_0x478d50,_0x45bbfe){return _0x3a2418(_0x478d50,_0x45bbfe);}};this[_0x41fb4a(0x182)]=new _0x31d530[(_0x41fb4a(0x117))](),this['util']=new _0x31d530['NodeQQNTWrapperUtil'](),this[_0x41fb4a(0x174)]=new _0x31d530[(_0x41fb4a(0x167))](),this[_0x41fb4a(0x161)]=new _0x31d530[(_0x41fb4a(0x148))](),this[_0x41fb4a(0x138)]=new LoginListener(),this[_0x41fb4a(0x138)][_0x41fb4a(0x12b)]=_0x23b889=>{const _0xd0eac0=_0x41fb4a;_0x4fbf7a[_0xd0eac0(0x177)](logError,_0x4fbf7a['sdvex'](_0x4fbf7a[_0xd0eac0(0x17a)]+_0x23b889,_0x4fbf7a['KirCu']));},this['loginListener'][_0x41fb4a(0x179)]=_0x26300d=>{const _0x5da77f=_0x41fb4a,_0x213aeb={'tBhoJ':function(_0x902161,_0xee27b8,_0x9be272){const _0x25c877=_0x30d2;return _0x4fbf7a[_0x25c877(0x10d)](_0x902161,_0xee27b8,_0x9be272);},'wgpIU':_0x4fbf7a[_0x5da77f(0x12c)]};this['initSession'](_0x26300d[_0x5da77f(0x194)],_0x26300d[_0x5da77f(0x16b)])['then'](_0x5eacd8=>{const _0x4b6b09=_0x5da77f;selfInfo[_0x4b6b09(0x194)]=_0x26300d[_0x4b6b09(0x194)],selfInfo[_0x4b6b09(0x16b)]=_0x26300d['uid'],napCatConfig[_0x4b6b09(0x17f)](),setLogLevel(napCatConfig[_0x4b6b09(0x143)],napCatConfig['consoleLogLevel']),_0x4fbf7a[_0x4b6b09(0x177)](enableFileLog,napCatConfig[_0x4b6b09(0x149)]),_0x4fbf7a[_0x4b6b09(0x18b)](enableConsoleLog,napCatConfig[_0x4b6b09(0xfe)]),setLogSelfInfo(selfInfo);const _0xcca3d1=_0xff16b7[_0x4b6b09(0x17c)](this[_0x4b6b09(0x130)],_0x4fbf7a['zhfcp']);_0x3301a2['mkdirSync'](_0xcca3d1,{'recursive':!![]}),logDebug(_0x4fbf7a[_0x4b6b09(0x102)],_0xcca3d1),dbUtil[_0x4b6b09(0x16d)](_0xff16b7[_0x4b6b09(0x17c)](_0xcca3d1,'./'+_0x26300d[_0x4b6b09(0x194)]+'-v2.db'))[_0x4b6b09(0x120)](()=>{const _0xc6f861=_0x4b6b09;this[_0xc6f861(0x114)](),this[_0xc6f861(0x103)][_0xc6f861(0x10e)](_0x2f1877=>{const _0x1a0338=_0xc6f861,_0x372e6b={'TCeNn':function(_0x566296,_0x100581,_0x3aec67){return _0x566296(_0x100581,_0x3aec67);}};new Promise((_0x4351ee,_0x372c1e)=>{const _0x3591d0=_0x30d2,_0x2fb474=_0x372e6b[_0x3591d0(0x12d)](_0x2f1877,_0x26300d[_0x3591d0(0x194)],_0x26300d[_0x3591d0(0x16b)]);_0x2fb474 instanceof Promise&&_0x2fb474[_0x3591d0(0x120)](_0x4351ee)[_0x3591d0(0x105)](_0x372c1e);})[_0x1a0338(0x120)]();});})[_0x4b6b09(0x105)](_0x315273=>{const _0x6c0e89=_0x4b6b09;_0x213aeb['tBhoJ'](logError,_0x213aeb[_0x6c0e89(0x192)],_0x315273);});})[_0x5da77f(0x105)](_0x5cfc03=>{const _0x4b7be9=_0x5da77f;_0x4fbf7a[_0x4b7be9(0x10d)](logError,'initSession\x20failed',_0x5cfc03);throw new Error(_0x4b7be9(0x11d)+JSON['stringify'](_0x5cfc03));});},this[_0x41fb4a(0x138)][_0x41fb4a(0x136)]=_0x3bde07=>{const _0x10b218=_0x41fb4a;_0x4fbf7a[_0x10b218(0x10d)](logError,_0x4fbf7a[_0x10b218(0x139)],_0x3bde07);},this[_0x41fb4a(0x138)][_0x41fb4a(0x147)]=_0xf10880=>{const _0x1c7ebc=_0x41fb4a;_0x4fbf7a[_0x1c7ebc(0x11a)](logError,_0x1c7ebc(0x13f),_0xf10880);},this[_0x41fb4a(0x138)]=new Proxy(this[_0x41fb4a(0x138)],this['proxyHandler']),this['loginService'][_0x41fb4a(0x18a)](new _0x31d530[(_0x41fb4a(0x15a))](this[_0x41fb4a(0x138)])),this[_0x41fb4a(0x11f)]();}get[_0x473d88(0x130)](){const _0x58671e=_0x473d88,_0x58b4e2={'hawKs':_0x58671e(0x110)};let _0x4862fa=this[_0x58671e(0x181)]['getNTUserDataInfoConfig']();return!_0x4862fa&&(_0x4862fa=_0xff16b7[_0x58671e(0x17c)](_0x4e00f2[_0x58671e(0x146)](),_0x58b4e2[_0x58671e(0x11e)]),_0x3301a2[_0x58671e(0x152)](_0x4862fa,{'recursive':!![]})),_0x4862fa;}get[_0x473d88(0x113)](){const _0x2cedfe=_0x473d88,_0x383d7d={'vLfZU':_0x2cedfe(0x154)};return _0xff16b7[_0x2cedfe(0x17c)](this['dataPath'],_0x383d7d['vLfZU']);}[_0x473d88(0x11f)](){const _0x252060=_0x473d88,_0x40a573={'SAioy':'Windows\x2010\x20Pro'};this[_0x252060(0x182)][_0x252060(0x170)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo['curVersion'],'os_version':_0x40a573[_0x252060(0x14c)],'use_xlog':!![],'qua':_0x252060(0x155)+qqVersionConfigInfo['curVersion']['replace']('-','_')+_0x252060(0x124),'global_path_config':{'desktopGlobalPath':this[_0x252060(0x113)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0x31d530[(_0x252060(0x10b))](new GlobalAdapter())),this[_0x252060(0x174)]['initConfig']({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x252060(0x113)],'clientVer':qqVersionConfigInfo[_0x252060(0x166)],'hostName':hostname});}[_0x473d88(0x109)](_0x3cb857,_0x5cf7de){const _0x3ed94f=_0x473d88,_0x32fc1b={'JXfUo':function(_0x50371e,_0x4c949a){return _0x50371e===_0x4c949a;},'HIDtx':function(_0x487f1f,_0x496acc,_0x3791af,_0x2d138b){return _0x487f1f(_0x496acc,_0x3791af,_0x2d138b);},'RZUpw':function(_0x16722b,_0x4f90fe){return _0x16722b(_0x4f90fe);},'GIPgh':function(_0x1704c5,_0x542951){return _0x1704c5+_0x542951;},'luRRn':_0x3ed94f(0x150)};return new Promise((_0x416a6e,_0x2ede5a)=>{const _0x1bd3f2=_0x3ed94f,_0x59a3c3=_0x32fc1b['HIDtx'](genSessionConfig,_0x3cb857,_0x5cf7de,this[_0x1bd3f2(0x130)]),_0x1a15af=new SessionListener();_0x1a15af['onSessionInitComplete']=_0x17a531=>{if(_0x32fc1b['JXfUo'](_0x17a531,0x0))return _0x416a6e(0x0);_0x2ede5a(_0x17a531);},this['session']['init'](_0x59a3c3,new _0x31d530[(_0x1bd3f2(0x140))](new DependsAdapter()),new _0x31d530['NodeIDispatcherAdapter'](new DispatcherAdapter()),new _0x31d530[(_0x1bd3f2(0x134))](_0x1a15af));try{this[_0x1bd3f2(0x161)][_0x1bd3f2(0x122)](0x0);}catch(_0x2cc881){try{this[_0x1bd3f2(0x161)][_0x1bd3f2(0x122)]();}catch(_0x41621d){_0x32fc1b['RZUpw'](_0x2ede5a,_0x32fc1b[_0x1bd3f2(0xff)](_0x32fc1b['luRRn'],_0x41621d));}}});}[_0x473d88(0x114)](){const _0x428045=_0x473d88,_0x455f9d={'eOuRy':function(_0x22c5b2,_0x4b36d9){return _0x22c5b2===_0x4b36d9;}},_0x260aa2=new MsgListener();_0x260aa2[_0x428045(0x162)]=_0x39ac6b=>{const _0x5217dc=_0x428045;_0x39ac6b[_0x5217dc(0x10e)](_0x323ab6=>{const _0x4ef79c=_0x5217dc;_0x323ab6[_0x4ef79c(0x187)]==='0'?dbUtil[_0x4ef79c(0x12e)](_0x323ab6)[_0x4ef79c(0x120)]()[_0x4ef79c(0x105)]():dbUtil[_0x4ef79c(0x151)](_0x323ab6['msgId'])[_0x4ef79c(0x120)](_0x1391e3=>{const _0x276e93=_0x4ef79c;_0x1391e3&&(_0x1391e3[_0x276e93(0x187)]=_0x323ab6[_0x276e93(0x187)],dbUtil[_0x276e93(0x129)](_0x1391e3)[_0x276e93(0x120)]());});});},this[_0x428045(0x171)](_0x260aa2);const _0x348cca=new BuddyListener();_0x348cca[_0x428045(0x193)]=_0x33b2fa=>{const _0x5ad5b5=_0x428045;for(const _0x309a99 of _0x33b2fa){for(const _0x1365df of _0x309a99[_0x5ad5b5(0x189)]){const _0x4cdb6f=friends[_0x5ad5b5(0x183)](_0x1365df[_0x5ad5b5(0x16b)]);uid2UinMap[_0x1365df[_0x5ad5b5(0x16b)]]=_0x1365df[_0x5ad5b5(0x194)],_0x4cdb6f?Object[_0x5ad5b5(0x180)](_0x4cdb6f,_0x1365df):friends['set'](_0x1365df[_0x5ad5b5(0x16b)],_0x1365df);}}},this['addListener'](_0x348cca),this['session'][_0x428045(0x18c)]()[_0x428045(0x13d)](!![])[_0x428045(0x120)](_0x5d8bc5=>{});const _0x2564bc=new ProfileListener();_0x2564bc['onProfileDetailInfoChanged']=_0xf6ba20=>{const _0x13bf85=_0x428045;_0x455f9d[_0x13bf85(0x188)](_0xf6ba20[_0x13bf85(0x16b)],selfInfo['uid'])&&Object['assign'](selfInfo,_0xf6ba20);},this[_0x428045(0x171)](_0x2564bc);const _0x375149=new GroupListener();_0x375149['onGroupListUpdate']=(_0x490570,_0x5133b1)=>{const _0x50d956=_0x428045;_0x5133b1[_0x50d956(0x10e)](_0x50ccfa=>{const _0x427f58=_0x50d956,_0x5153f1=groups['get'](_0x50ccfa[_0x427f58(0x135)]);if(_0x5153f1)Object[_0x427f58(0x180)](_0x5153f1,_0x50ccfa);else{groups[_0x427f58(0x13c)](_0x50ccfa[_0x427f58(0x135)],_0x50ccfa);const _0x15a22a=this[_0x427f58(0x161)][_0x427f58(0x112)]()['createMemberListScene'](_0x50ccfa[_0x427f58(0x135)],'groupMemberList_MainWindow');this[_0x427f58(0x161)]['getGroupService']()[_0x427f58(0x12f)](_0x15a22a,undefined,0xbb8)['then'](_0x1e1425=>{});}});},_0x375149['onMemberListChange']=_0x1eb369=>{const _0x32b5fc=_0x428045,_0x6138fa=_0x1eb369[_0x32b5fc(0x185)]['split']('_')[0x0];if(groupMembers[_0x32b5fc(0x14e)](_0x6138fa)){const _0x480df7=groupMembers[_0x32b5fc(0x183)](_0x6138fa);_0x1eb369[_0x32b5fc(0x142)][_0x32b5fc(0x18e)]((_0x3ca746,_0x2b252a)=>{const _0x4d045b=_0x32b5fc,_0x3a78db=_0x480df7['get'](_0x2b252a);_0x3a78db?Object[_0x4d045b(0x180)](_0x3a78db,_0x3ca746):_0x480df7[_0x4d045b(0x13c)](_0x2b252a,_0x3ca746);});}else groupMembers['set'](_0x6138fa,_0x1eb369[_0x32b5fc(0x142)]);},_0x375149[_0x428045(0x16a)]=(_0x249c7c,_0x3e401f,_0x58541a)=>{const _0x2342d6=_0x428045;_0x58541a[_0x2342d6(0x18e)]((_0x4a648c,_0x2922b2)=>{const _0x309731=_0x2342d6;uid2UinMap[_0x2922b2]=_0x4a648c[_0x309731(0x194)];});const _0x3d94ac=groupMembers['get'](_0x249c7c);_0x3d94ac?_0x58541a[_0x2342d6(0x18e)]((_0x4a851b,_0x3bc523)=>{const _0x21ef2b=_0x2342d6,_0xad1262=_0x3d94ac[_0x21ef2b(0x183)](_0x3bc523);_0xad1262?Object['assign'](_0xad1262,_0x4a851b):_0x3d94ac[_0x21ef2b(0x13c)](_0x3bc523,_0x4a851b);}):groupMembers['set'](_0x249c7c,_0x58541a);},this[_0x428045(0x171)](_0x375149);}[_0x473d88(0x171)](_0x45797b){const _0x2e5ef1=_0x473d88,_0x56eea4={'jzQCV':_0x2e5ef1(0x11c),'malLY':'MsgListener'};_0x45797b=new Proxy(_0x45797b,this[_0x2e5ef1(0x104)]);switch(_0x45797b[_0x2e5ef1(0x108)][_0x2e5ef1(0x172)]){case _0x56eea4[_0x2e5ef1(0x107)]:{return this['session'][_0x2e5ef1(0x18c)]()[_0x2e5ef1(0x100)](new _0x31d530[(_0x2e5ef1(0x12a))](_0x45797b));}case'GroupListener':{return this[_0x2e5ef1(0x161)]['getGroupService']()[_0x2e5ef1(0x195)](new _0x31d530['NodeIKernelGroupListener'](_0x45797b));}case _0x56eea4['malLY']:{return this['session'][_0x2e5ef1(0x173)]()[_0x2e5ef1(0x184)](new _0x31d530['NodeIKernelMsgListener'](_0x45797b));}case _0x2e5ef1(0x15e):{return this[_0x2e5ef1(0x161)][_0x2e5ef1(0x101)]()[_0x2e5ef1(0x144)](new _0x31d530[(_0x2e5ef1(0x16e))](_0x45797b));}default:return-0x1;}}[_0x473d88(0x186)](_0x21b449){const _0x1099ab=_0x473d88;this[_0x1099ab(0x103)][_0x1099ab(0x14f)](_0x21b449);}async['quickLogin'](_0x403e10){const _0x27aa0c=_0x473d88,_0x309793={'LTsyH':function(_0x35184f,_0x515903){return _0x35184f!==_0x515903;},'SbTaz':'没有可快速登录的QQ号','QqOCk':function(_0x4d21da,_0x2b4018){return _0x4d21da(_0x2b4018);},'DYICN':function(_0x243ddc,_0x2b2b79){return _0x243ddc+_0x2b2b79;}},_0x5f495d=await this['loginService'][_0x27aa0c(0x17b)]();if(_0x309793[_0x27aa0c(0x15f)](_0x5f495d[_0x27aa0c(0x121)],0x0))throw new Error(_0x309793[_0x27aa0c(0x137)]);const _0x1e4c5e=_0x5f495d[_0x27aa0c(0x145)][_0x27aa0c(0x16c)](_0x5ed4c1=>_0x5ed4c1[_0x27aa0c(0x194)]===_0x403e10);if(!_0x1e4c5e||!_0x1e4c5e?.[_0x27aa0c(0x116)])throw new Error(_0x403e10+_0x27aa0c(0x156));await _0x309793[_0x27aa0c(0x169)](sleep,0x3e8);const _0x4d7161=await this[_0x27aa0c(0x174)]['quickLoginWithUin'](_0x403e10);if(!_0x4d7161[_0x27aa0c(0x121)])throw new Error(_0x309793['DYICN'](_0x27aa0c(0x13b),_0x4d7161['loginErrorInfo'][_0x27aa0c(0x14b)]));return _0x4d7161;}async[_0x473d88(0x133)](){const _0x21f145=_0x473d88,_0x7acb4b={'AjxrF':_0x21f145(0x125),'nIqHi':_0x21f145(0x15d),'OkTKx':function(_0x555407,_0x2512dd){return _0x555407(_0x2512dd);},'vDrxL':_0x21f145(0x111),'qgDAt':function(_0x1b9aed,_0x3e0e0b,_0x558000){return _0x1b9aed(_0x3e0e0b,_0x558000);}};let _0x78de7b=![];return new Promise((_0x140581,_0x1177f1)=>{const _0x56579f=_0x21f145,_0x13b5d1={'yoXhd':function(_0x5595ee,_0x4d549f){return _0x7acb4b['OkTKx'](_0x5595ee,_0x4d549f);},'GimuF':_0x7acb4b['vDrxL']};_0x7acb4b[_0x56579f(0x14d)](setTimeout,()=>{const _0x1d0c78=_0x56579f;!_0x78de7b&&_0x13b5d1['yoXhd'](_0x1177f1,_0x13b5d1[_0x1d0c78(0x118)]);},0x2710),this[_0x56579f(0x138)][_0x56579f(0x132)]=_0x23f23c=>{const _0x81a296=_0x56579f;_0x78de7b=!![];const _0x247f2c=_0x23f23c[_0x81a296(0x14a)][_0x81a296(0x13e)](_0x7acb4b[_0x81a296(0x18d)])[0x1],_0x382717=Buffer[_0x81a296(0x18f)](_0x247f2c,_0x7acb4b[_0x81a296(0x123)]);_0x7acb4b[_0x81a296(0x164)](_0x140581,{'url':_0x23f23c[_0x81a296(0x176)],'base64':_0x23f23c['pngBase64QrcodeData'],'buffer':_0x382717});},this[_0x56579f(0x174)]['getQRCodePicture']();});}async['passwordLogin'](_0x4f9e4d,_0x1e0806,_0x43b768,_0x4c6a80,_0x28de2d){const _0x4e1ab8=_0x473d88,_0x339b00={'cPrdF':_0x4e1ab8(0x15c),'ZaopG':function(_0x1f634f,_0x55a6bc){return _0x1f634f&&_0x55a6bc;},'mGlOx':function(_0x452ad0,_0x411029){return _0x452ad0||_0x411029;},'qWyLC':function(_0x47e5d0,_0x1b4f1b){return _0x47e5d0||_0x1b4f1b;},'DEOiA':function(_0x106b74,_0xc805ce){return _0x106b74(_0xc805ce);},'evQTb':_0x4e1ab8(0x13a)},_0x494da0=_0x354633[_0x4e1ab8(0x157)](_0x339b00['cPrdF'])[_0x4e1ab8(0x10c)](_0x1e0806)['digest'](_0x4e1ab8(0x191)),_0x46e43c={'uin':_0x4f9e4d,'passwordMd5':_0x494da0,'step':_0x339b00[_0x4e1ab8(0x115)](_0x43b768,_0x4c6a80)&&_0x28de2d?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x339b00[_0x4e1ab8(0x119)](_0x43b768,''),'proofWaterRand':_0x339b00[_0x4e1ab8(0x17e)](_0x4c6a80,''),'proofWaterSid':_0x28de2d||''};await this[_0x4e1ab8(0x174)]['getLoginList'](),await _0x339b00[_0x4e1ab8(0x165)](sleep,0x3e8);const _0x5c878d=await this[_0x4e1ab8(0x174)][_0x4e1ab8(0x16f)](_0x46e43c);switch(_0x5c878d['result']){case'0':{break;}case'140022008':{break;}case'4':case _0x339b00[_0x4e1ab8(0x128)]:default:}}}export const napCatCore=new NapCatCore();function _0x2302(){const _0x34e294=['recallTime','eOuRy','buddyList','addKernelLoginListener','LXNIn','getBuddyService','AjxrF','forEach','from','SHwfW','hex','wgpIU','onBuddyListChange','uin','addKernelGroupListener','consoleLog','GIPgh','addKernelBuddyListener','getProfileService','zUgFr','onLoginSuccessFuncList','proxyHandler','catch','5844672DGgNjk','jzQCV','constructor','initSession','\x20has\x20no\x20method\x20','NodeIGlobalAdapter','update','wsxUr','map','./NapCat/data','./.config/QQ','获取二维码登录超时','getGroupService','dataPathGlobal','initDataListener','ZaopG','isQuickLogin','NodeIQQNTWrapperEngine','GimuF','mGlOx','GyKdN','1933296srAQQo','BuddyListener','启动失败:\x20','hawKs','initConfig','then','result','startNT','nIqHi','_GW_B','data:image/png;base64,','当前账号(','qijtc','evQTb','updateMsg','NodeIKernelBuddyListener','onUserLoggedIn','vriyM','TCeNn','addMsg','getNextMemberList','dataPath','2802800WTKPbG','onQRCodeGetPicture','qrLogin','NodeIKernelSessionListener','groupCode','onQRCodeSessionFailed','SbTaz','loginListener','wIxKi','140022013','快速登录失败\x20','set','getBuddyList','split','登录失败','NodeIDependsAdapter','数据库初始化失败','infos','fileLogLevel','addKernelProfileListener','LocalLoginInfoList','homedir','onLoginFailed','NodeIQQNTWrapperSession','fileLog','pngBase64QrcodeData','errMsg','SAioy','qgDAt','has','push','init\x20failed\x20','getMsgByLongId','mkdirSync','15672537xcIPaC','./nt_qq/global','V1_WIN_NQ_','快速登录不可用','createHash','10udjTyq','7962801jiltNF','NodeIKernelLoginListener','4FQbgxB','md5','base64','ProfileListener','LTsyH',')已登录,无法重复登录','session','onMsgInfoListUpdate','4soocNp','OkTKx','DEOiA','curVersion','NodeIKernelLoginService','479747SBiWwV','QqOCk','onMemberInfoChange','uid','find','init','NodeIKernelProfileListener','passwordLogin','initWithDeskTopConfig','addListener','name','getMsgService','loginService','4374765ZpkmTu','qrcodeUrl','QXNev','undefined','onQRCodeLoginSucceed','cDsav','getLoginList','resolve','本账号数据/缓存目录:','qWyLC','read','assign','util','engine','get','addKernelMsgListener','sceneId','onLoginSuccess'];_0x2302=function(){return _0x34e294;};return _0x2302();} \ No newline at end of file diff --git a/src/core.lib/src/data.js b/src/core.lib/src/data.js index 5b07e7be..bdbc1971 100644 --- a/src/core.lib/src/data.js +++ b/src/core.lib/src/data.js @@ -1 +1 @@ -const _0x3f6401=_0x2060;(function(_0x582b42,_0x2302a7){const _0x50fa20=_0x2060,_0x1f80a1=_0x582b42();while(!![]){try{const _0x4075b9=-parseInt(_0x50fa20(0x1d6))/0x1*(parseInt(_0x50fa20(0x1d0))/0x2)+-parseInt(_0x50fa20(0x1d2))/0x3*(parseInt(_0x50fa20(0x1d7))/0x4)+parseInt(_0x50fa20(0x1d4))/0x5*(-parseInt(_0x50fa20(0x1cc))/0x6)+-parseInt(_0x50fa20(0x1c7))/0x7*(parseInt(_0x50fa20(0x1d1))/0x8)+-parseInt(_0x50fa20(0x1be))/0x9+-parseInt(_0x50fa20(0x1c0))/0xa+parseInt(_0x50fa20(0x1bf))/0xb;if(_0x4075b9===_0x2302a7)break;else _0x1f80a1['push'](_0x1f80a1['shift']());}catch(_0x1996b6){_0x1f80a1['push'](_0x1f80a1['shift']());}}}(_0x29b2,0xcec33));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};function _0x2060(_0x56be57,_0xa4cb0a){const _0x29b2a6=_0x29b2();return _0x2060=function(_0x206078,_0x1e4110){_0x206078=_0x206078-0x1be;let _0x10a0d1=_0x29b2a6[_0x206078];return _0x10a0d1;},_0x2060(_0x56be57,_0xa4cb0a);}export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};function _0x29b2(){const _0x5df709=['80137497rJtdgI','12813610sGvqzm','NapCat未能正常启动,请检查日志查看错误','getGroupMembers','from','length','delete','uin','5159154mzZavv','find','groupCode','RhZnf','set','6xNoylo','toString','MDnhQ','values','26odFJXj','16kuZmzm','902289vzPDTY','get','5403865PdRNyj','GuSoy','5097CRuymI','20PqrgEF','9288666qyFEyL'];_0x29b2=function(){return _0x5df709;};return _0x29b2();}export const groups=new Map();export function deleteGroup(_0x5d4146){const _0x330582=_0x2060;groups[_0x330582(0x1c5)](_0x5d4146),groupMembers['delete'](_0x5d4146);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':_0x3f6401(0x1c1)};export async function getFriend(_0x5def35){const _0x30467c=_0x3f6401;_0x5def35=_0x5def35['toString']();if(isNumeric(_0x5def35)){const _0x3f58c7=Array[_0x30467c(0x1c3)](friends[_0x30467c(0x1cf)]());return _0x3f58c7[_0x30467c(0x1c8)](_0x3ae692=>_0x3ae692['uin']===_0x5def35);}else return friends[_0x30467c(0x1d3)](_0x5def35);}export async function getGroup(_0x107cb7){const _0x57a0f8=_0x3f6401;let _0x3d6a34=groups[_0x57a0f8(0x1d3)](_0x107cb7[_0x57a0f8(0x1cd)]());if(!_0x3d6a34)try{const _0x57ab63=await NTQQGroupApi['getGroups']();_0x57ab63[_0x57a0f8(0x1c4)]&&_0x57ab63['forEach'](_0x2fe575=>{const _0x4f3c27=_0x57a0f8;groups[_0x4f3c27(0x1cb)](_0x2fe575[_0x4f3c27(0x1c9)],_0x2fe575);});}catch(_0x536306){return undefined;}return _0x3d6a34=groups[_0x57a0f8(0x1d3)](_0x107cb7[_0x57a0f8(0x1cd)]()),_0x3d6a34;}export async function getGroupMember(_0xb751f8,_0x15e5aa){const _0x1cd4c0=_0x3f6401,_0x3c4a71={'RhZnf':function(_0x3f8eb5,_0x582301){return _0x3f8eb5(_0x582301);},'GuSoy':function(_0x4fb4a1){return _0x4fb4a1();}};_0xb751f8=_0xb751f8[_0x1cd4c0(0x1cd)](),_0x15e5aa=_0x15e5aa[_0x1cd4c0(0x1cd)]();let _0x48b791=groupMembers[_0x1cd4c0(0x1d3)](_0xb751f8);if(!_0x48b791)try{_0x48b791=await NTQQGroupApi[_0x1cd4c0(0x1c2)](_0xb751f8),groupMembers[_0x1cd4c0(0x1cb)](_0xb751f8,_0x48b791);}catch(_0x87a774){return null;}const _0x3e9a2d=()=>{const _0x427591=_0x1cd4c0;let _0x4eadc6=undefined;return _0x3c4a71[_0x427591(0x1ca)](isNumeric,_0x15e5aa)?_0x4eadc6=Array['from'](_0x48b791[_0x427591(0x1cf)]())[_0x427591(0x1c8)](_0x20ffe0=>_0x20ffe0[_0x427591(0x1c6)]===_0x15e5aa):_0x4eadc6=_0x48b791[_0x427591(0x1d3)](_0x15e5aa),_0x4eadc6;};let _0x43db96=_0x3e9a2d();return!_0x43db96&&(_0x48b791=await NTQQGroupApi[_0x1cd4c0(0x1c2)](_0xb751f8),_0x43db96=_0x3c4a71[_0x1cd4c0(0x1d5)](_0x3e9a2d)),_0x43db96;}export const uid2UinMap={};export function getUidByUin(_0x22c742){const _0x12d8fa=_0x3f6401,_0x71df34={'MDnhQ':function(_0x174769,_0x57a243){return _0x174769===_0x57a243;}};for(const _0x25cd2e in uid2UinMap){if(_0x71df34[_0x12d8fa(0x1ce)](uid2UinMap[_0x25cd2e],_0x22c742))return _0x25cd2e;}}export const tempGroupCodeMap={}; \ No newline at end of file +function _0x3c79(_0x2c7a05,_0x5a473f){const _0x9229ad=_0x9229();return _0x3c79=function(_0x3c7907,_0x5c8689){_0x3c7907=_0x3c7907-0xff;let _0x366379=_0x9229ad[_0x3c7907];return _0x366379;},_0x3c79(_0x2c7a05,_0x5a473f);}(function(_0x2e0ec4,_0x1197be){const _0x4ae9a5=_0x3c79,_0x50164e=_0x2e0ec4();while(!![]){try{const _0x2d7595=parseInt(_0x4ae9a5(0x100))/0x1+parseInt(_0x4ae9a5(0x104))/0x2*(parseInt(_0x4ae9a5(0x10a))/0x3)+-parseInt(_0x4ae9a5(0x10f))/0x4+-parseInt(_0x4ae9a5(0x115))/0x5*(parseInt(_0x4ae9a5(0x101))/0x6)+-parseInt(_0x4ae9a5(0x114))/0x7+-parseInt(_0x4ae9a5(0x10c))/0x8*(-parseInt(_0x4ae9a5(0x112))/0x9)+-parseInt(_0x4ae9a5(0x109))/0xa*(parseInt(_0x4ae9a5(0x113))/0xb);if(_0x2d7595===_0x1197be)break;else _0x50164e['push'](_0x50164e['shift']());}catch(_0x55e1cf){_0x50164e['push'](_0x50164e['shift']());}}}(_0x9229,0x4960f));import{isNumeric}from'@/common/utils/helper';import{NTQQGroupApi}from'@/core/apis';export const Credentials={'Skey':'','CreatTime':0x0};export const selfInfo={'uid':'','uin':'','nick':'','online':!![]};export const groups=new Map();export function deleteGroup(_0x2773be){groups['delete'](_0x2773be),groupMembers['delete'](_0x2773be);}export const groupMembers=new Map();export const friends=new Map();export const friendRequests={};export const groupNotifies={};export const napCatError={'ffmpegError':'','httpServerError':'','wsServerError':'','otherError':'NapCat未能正常启动,请检查日志查看错误'};export async function getFriend(_0x12ed29){const _0x206596=_0x3c79,_0x170ec1={'XFhHy':function(_0x328092,_0x2a820d){return _0x328092(_0x2a820d);}};_0x12ed29=_0x12ed29['toString']();if(_0x170ec1[_0x206596(0x116)](isNumeric,_0x12ed29)){const _0x1cdd8e=Array[_0x206596(0x106)](friends['values']());return _0x1cdd8e[_0x206596(0x10e)](_0x3f3c07=>_0x3f3c07[_0x206596(0x108)]===_0x12ed29);}else return friends[_0x206596(0xff)](_0x12ed29);}function _0x9229(){const _0x4ede86=['toString','18702KdFEXY','516296TLJCXa','1048873EMdfuN','503855WdPIKV','XFhHy','length','get','129660FnFzgZ','6OVaYOI','hGzAI','forEach','6mHHuzD','qgRAf','from','getGroups','uin','90RFEQsN','398400EiETDD','getGroupMembers','1784weqUdW','pvxzt','find','71444hpptSu','set'];_0x9229=function(){return _0x4ede86;};return _0x9229();}export async function getGroup(_0x246f2a){const _0x218411=_0x3c79;let _0x297e0c=groups['get'](_0x246f2a[_0x218411(0x111)]());if(!_0x297e0c)try{const _0x4ccd59=await NTQQGroupApi[_0x218411(0x107)]();_0x4ccd59[_0x218411(0x117)]&&_0x4ccd59[_0x218411(0x103)](_0x828aa4=>{const _0x22d81f=_0x218411;groups[_0x22d81f(0x110)](_0x828aa4['groupCode'],_0x828aa4);});}catch(_0x4265f6){return undefined;}return _0x297e0c=groups['get'](_0x246f2a[_0x218411(0x111)]()),_0x297e0c;}export async function getGroupMember(_0x383585,_0x569f1d){const _0x536a87=_0x3c79,_0x1d784b={'qgRAf':function(_0x431487,_0x446389){return _0x431487(_0x446389);},'bhOJo':function(_0x26ac82){return _0x26ac82();},'pvxzt':function(_0x48dfbb){return _0x48dfbb();}};_0x383585=_0x383585[_0x536a87(0x111)](),_0x569f1d=_0x569f1d[_0x536a87(0x111)]();let _0x52d429=groupMembers[_0x536a87(0xff)](_0x383585);if(!_0x52d429)try{_0x52d429=await NTQQGroupApi['getGroupMembers'](_0x383585),groupMembers[_0x536a87(0x110)](_0x383585,_0x52d429);}catch(_0x22027d){return null;}const _0x1a0671=()=>{const _0x3535a7=_0x536a87;let _0x147cf0=undefined;return _0x1d784b[_0x3535a7(0x105)](isNumeric,_0x569f1d)?_0x147cf0=Array[_0x3535a7(0x106)](_0x52d429['values']())['find'](_0x2b4930=>_0x2b4930['uin']===_0x569f1d):_0x147cf0=_0x52d429[_0x3535a7(0xff)](_0x569f1d),_0x147cf0;};let _0x5e5d3d=_0x1d784b['bhOJo'](_0x1a0671);return!_0x5e5d3d&&(_0x52d429=await NTQQGroupApi[_0x536a87(0x10b)](_0x383585),_0x5e5d3d=_0x1d784b[_0x536a87(0x10d)](_0x1a0671)),_0x5e5d3d;}export const uid2UinMap={};export function getUidByUin(_0x2520b5){const _0x28c6fc=_0x3c79,_0x8d75b={'hGzAI':function(_0x1848db,_0x1a5232){return _0x1848db===_0x1a5232;}};for(const _0x39e79a in uid2UinMap){if(_0x8d75b[_0x28c6fc(0x102)](uid2UinMap[_0x39e79a],_0x2520b5))return _0x39e79a;}}export const tempGroupCodeMap={}; \ 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 54eb7057..0c8e7160 100644 --- a/src/core.lib/src/entities/cache.js +++ b/src/core.lib/src/entities/cache.js @@ -1 +1 @@ -function _0xd382(){var _0x10c2ba=['vYUpA','30EoYePl','5376000vDwHpn','1625514RnlHND','VIDEO','1943140XSOsPU','575447rYoqyp','1511960NNXxNI','split','DOCUMENT','gwRCI','1421700FRZnsS','TFNZm','AUDIO','104020qwDLuv','OTHER','2|3|0|1|4'];_0xd382=function(){return _0x10c2ba;};return _0xd382();}function _0x2034(_0x41cf7a,_0x18fd5e){var _0xd38288=_0xd382();return _0x2034=function(_0x203481,_0x3d077e){_0x203481=_0x203481-0x1d7;var _0x1b23d2=_0xd38288[_0x203481];return _0x1b23d2;},_0x2034(_0x41cf7a,_0x18fd5e);}(function(_0x37d3b8,_0x3a8f36){var _0x41cc54=_0x2034,_0x38cf8e=_0x37d3b8();while(!![]){try{var _0x1866e6=-parseInt(_0x41cc54(0x1dd))/0x1+parseInt(_0x41cc54(0x1e5))/0x2*(parseInt(_0x41cc54(0x1d8))/0x3)+-parseInt(_0x41cc54(0x1dc))/0x4+-parseInt(_0x41cc54(0x1de))/0x5+parseInt(_0x41cc54(0x1da))/0x6+parseInt(_0x41cc54(0x1e2))/0x7+parseInt(_0x41cc54(0x1d9))/0x8;if(_0x1866e6===_0x3a8f36)break;else _0x38cf8e['push'](_0x38cf8e['shift']());}catch(_0x3d3ef1){_0x38cf8e['push'](_0x38cf8e['shift']());}}}(_0xd382,0x49d9f));export var CacheFileType;(function(_0x8f35){var _0x3944a9=_0x2034,_0x2ccb55={'vYUpA':_0x3944a9(0x1e4),'gwRCI':_0x3944a9(0x1e0),'TFNZm':'IMAGE','TGqAa':_0x3944a9(0x1db),'OrEnj':_0x3944a9(0x1e6)},_0x3954ba=_0x3944a9(0x1e7)[_0x3944a9(0x1df)]('|'),_0x21fb63=0x0;while(!![]){switch(_0x3954ba[_0x21fb63++]){case'0':_0x8f35[_0x8f35[_0x2ccb55[_0x3944a9(0x1d7)]]=0x2]=_0x2ccb55[_0x3944a9(0x1d7)];continue;case'1':_0x8f35[_0x8f35[_0x3944a9(0x1e0)]=0x3]=_0x2ccb55[_0x3944a9(0x1e1)];continue;case'2':_0x8f35[_0x8f35[_0x2ccb55[_0x3944a9(0x1e3)]]=0x0]=_0x2ccb55[_0x3944a9(0x1e3)];continue;case'3':_0x8f35[_0x8f35[_0x2ccb55['TGqAa']]=0x1]=_0x3944a9(0x1db);continue;case'4':_0x8f35[_0x8f35['OTHER']=0x4]=_0x2ccb55['OrEnj'];continue;}break;}}(CacheFileType||(CacheFileType={}))); \ No newline at end of file +(function(_0x20eb58,_0x544c07){var _0x4b8c22=_0x2605,_0x819da4=_0x20eb58();while(!![]){try{var _0x2cb069=parseInt(_0x4b8c22(0xc9))/0x1+-parseInt(_0x4b8c22(0xcb))/0x2*(parseInt(_0x4b8c22(0xba))/0x3)+parseInt(_0x4b8c22(0xbf))/0x4*(parseInt(_0x4b8c22(0xc4))/0x5)+parseInt(_0x4b8c22(0xc1))/0x6+-parseInt(_0x4b8c22(0xc6))/0x7+parseInt(_0x4b8c22(0xc7))/0x8*(-parseInt(_0x4b8c22(0xbc))/0x9)+-parseInt(_0x4b8c22(0xc3))/0xa*(parseInt(_0x4b8c22(0xca))/0xb);if(_0x2cb069===_0x544c07)break;else _0x819da4['push'](_0x819da4['shift']());}catch(_0xe0b6ce){_0x819da4['push'](_0x819da4['shift']());}}}(_0x5518,0x814c0));export var CacheFileType;function _0x2605(_0x5c8697,_0x519c9c){var _0x551896=_0x5518();return _0x2605=function(_0x26058c,_0x4c039c){_0x26058c=_0x26058c-0xb9;var _0x11bfd3=_0x551896[_0x26058c];return _0x11bfd3;},_0x2605(_0x5c8697,_0x519c9c);}(function(_0x566c41){var _0x4a2663=_0x2605,_0x5f1ea7={'MauVV':'4|0|1|3|2','nTkMB':_0x4a2663(0xb9),'uawNZ':'AUDIO','wtMBT':_0x4a2663(0xbe),'VUZOu':_0x4a2663(0xbd),'QdDqL':_0x4a2663(0xc5)},_0x232257=_0x5f1ea7['MauVV'][_0x4a2663(0xcd)]('|'),_0x1b880a=0x0;while(!![]){switch(_0x232257[_0x1b880a++]){case'0':_0x566c41[_0x566c41[_0x5f1ea7['nTkMB']]=0x1]=_0x5f1ea7[_0x4a2663(0xc8)];continue;case'1':_0x566c41[_0x566c41[_0x5f1ea7[_0x4a2663(0xc0)]]=0x2]=_0x5f1ea7[_0x4a2663(0xc0)];continue;case'2':_0x566c41[_0x566c41[_0x5f1ea7[_0x4a2663(0xbb)]]=0x4]=_0x5f1ea7[_0x4a2663(0xbb)];continue;case'3':_0x566c41[_0x566c41[_0x5f1ea7[_0x4a2663(0xcc)]]=0x3]=_0x5f1ea7[_0x4a2663(0xcc)];continue;case'4':_0x566c41[_0x566c41[_0x5f1ea7[_0x4a2663(0xc2)]]=0x0]=_0x5f1ea7['QdDqL'];continue;}break;}}(CacheFileType||(CacheFileType={})));function _0x5518(){var _0x268733=['nTkMB','976428WQzniQ','33VqMxvM','434946rlxjsF','VUZOu','split','VIDEO','3sHRqFP','wtMBT','99UmkxSB','DOCUMENT','OTHER','12YslWIj','uawNZ','4800864Pqishm','QdDqL','4057630cMMPOb','1283780yyzLJb','IMAGE','2750097PLyfhd','137896vDLUdg'];_0x5518=function(){return _0x268733;};return _0x5518();} \ 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 1c37df9e..4dd9859f 100644 --- a/src/core.lib/src/entities/constructor.js +++ b/src/core.lib/src/entities/constructor.js @@ -1 +1 @@ -const _0x5294ca=_0x18e6;(function(_0x2d8590,_0x446afd){const _0x18e06e=_0x18e6,_0x7505c8=_0x2d8590();while(!![]){try{const _0x141aa6=parseInt(_0x18e06e(0x134))/0x1*(parseInt(_0x18e06e(0x10b))/0x2)+parseInt(_0x18e06e(0x118))/0x3*(-parseInt(_0x18e06e(0x11a))/0x4)+-parseInt(_0x18e06e(0x109))/0x5+-parseInt(_0x18e06e(0x112))/0x6*(-parseInt(_0x18e06e(0x132))/0x7)+-parseInt(_0x18e06e(0xfb))/0x8+-parseInt(_0x18e06e(0xfe))/0x9+parseInt(_0x18e06e(0x127))/0xa;if(_0x141aa6===_0x446afd)break;else _0x7505c8['push'](_0x7505c8['shift']());}catch(_0x56f768){_0x7505c8['push'](_0x7505c8['shift']());}}}(_0x351b,0xca069));import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';function _0x351b(){const _0x6b943c=['4151295nYCLSj','Hjwbk','18brkMAu','time','AfzYK','Ori','PIC','BHYQr','CGgjz','234hCbrBO','replace','VIDEO','markdown','PTT','width','3210558VtmdXk','FACE','4IVdNsQ','LOHZz','end','Thumb','uploadFile','语音转换失败,\x20请检查语音文件是否正常','获取视频信息失败','dXWYb','getImageSize','video','normal','join','normal2','27748070uwOyZh','then','copyFile','face','coJQO','cLYMb','FILE','catch','EEHHs','视频信息','vzOqM','105959ZxWfip','aoQJA','29881JkJouT','jlleq','vfzxE','height','TEXT','notAt','MARKDOWN','rcfhh','stringify','文件异常,大小为0','mp4','text','ark','JrFvM','path','error','TcEmn','snNjF','string','ptt','jpg','_0.png','获取视频封面失败,使用默认封面','iOhgo','writeFile','screenshots','[骰子]','4903016inUSnK','dice','set','2639340fJkPVu','XLNFE','ejXwy','图片信息','file','sep','toString','RPS','gif','dirname','mucvy'];_0x351b=function(){return _0x6b943c;};return _0x351b();}import{promises as _0x1ac955}from'node:fs';import _0xebb3d2 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';function _0x18e6(_0x32258a,_0x5c46c7){const _0x351bb4=_0x351b();return _0x18e6=function(_0x18e693,_0x540fe9){_0x18e693=_0x18e693-0xed;let _0x4105af=_0x351bb4[_0x18e693];return _0x4105af;},_0x18e6(_0x32258a,_0x5c46c7);}export class SendMsgElementConstructor{static[_0x5294ca(0x13f)](_0x20ecd2){const _0x360791=_0x5294ca;return{'elementType':ElementType[_0x360791(0x138)],'elementId':'','textElement':{'content':_0x20ecd2,'atType':AtType[_0x360791(0x139)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x52642d,_0x3f00a2,_0x4f0b79,_0x50d213){const _0x1e0cf0=_0x5294ca;return{'elementType':ElementType[_0x1e0cf0(0x138)],'elementId':'','textElement':{'content':'@'+_0x50d213,'atType':_0x4f0b79,'atUid':_0x52642d,'atTinyId':'','atNtUid':_0x3f00a2}};}static['reply'](_0x5e2854,_0x54d363,_0x55cbab,_0xc60292){return{'elementType':ElementType['REPLY'],'elementId':'','replyElement':{'replayMsgSeq':_0x5e2854,'replayMsgId':_0x54d363,'senderUin':_0x55cbab,'senderUinStr':_0xc60292}};}static async['pic'](_0x339774,_0x3636ef='',_0xd3e49c=0x0){const _0x4fd27c=_0x5294ca,_0x3f7189={'mucvy':function(_0x27a557,_0x2740a6){return _0x27a557===_0x2740a6;},'rcfhh':_0x4fd27c(0x13d),'jlJIe':function(_0x58eb69,_0x580c4c){return _0x58eb69(_0x580c4c);},'XLNFE':function(_0xbea493,_0x14fc17,_0x1abea2){return _0xbea493(_0x14fc17,_0x1abea2);}},{md5:_0x312b99,fileName:_0xa87643,path:_0x4586a9,fileSize:_0x107b2d}=await NTQQFileApi['uploadFile'](_0x339774,ElementType[_0x4fd27c(0x10f)],_0xd3e49c);if(_0x3f7189[_0x4fd27c(0x108)](_0x107b2d,0x0))throw _0x3f7189[_0x4fd27c(0x13b)];const _0x3d7c8b=await NTQQFileApi[_0x4fd27c(0x122)](_0x339774),_0x25325d={'md5HexStr':_0x312b99,'fileSize':_0x107b2d[_0x4fd27c(0x104)](),'picWidth':_0x3d7c8b?.[_0x4fd27c(0x117)],'picHeight':_0x3d7c8b?.[_0x4fd27c(0x137)],'fileName':_0xa87643,'sourcePath':_0x4586a9,'original':!![],'picType':_0x3f7189['jlJIe'](isGIF,_0x339774)?PicType[_0x4fd27c(0x106)]:PicType[_0x4fd27c(0xf4)],'picSubType':_0xd3e49c,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x3636ef};return _0x3f7189[_0x4fd27c(0xff)](logDebug,_0x4fd27c(0x101),_0x25325d),{'elementType':ElementType[_0x4fd27c(0x10f)],'elementId':'','picElement':_0x25325d};}static async[_0x5294ca(0x102)](_0x5bbb6a,_0x23dc64=''){const _0x49fd8b=_0x5294ca,_0x2dc23c={'KaaDl':function(_0x57d3a4,_0x2cd101){return _0x57d3a4||_0x2cd101;}},{md5:_0x88a9b8,fileName:_0x6e8e7a,path:_0x9ae96a,fileSize:_0x40ddbd}=await NTQQFileApi[_0x49fd8b(0x11e)](_0x5bbb6a,ElementType[_0x49fd8b(0x12d)]);if(_0x40ddbd===0x0)throw _0x49fd8b(0x13d);const _0x1004e7={'elementType':ElementType['FILE'],'elementId':'','fileElement':{'fileName':_0x2dc23c['KaaDl'](_0x23dc64,_0x6e8e7a),'filePath':_0x9ae96a,'fileSize':_0x40ddbd[_0x49fd8b(0x104)]()}};return _0x1004e7;}static async[_0x5294ca(0x123)](_0x5693e7,_0x29c2f8='',_0x5ae564=''){const _0x254cf4=_0x5294ca,_0x411d51={'LOHZz':function(_0x5f2f68,_0x3b60d8){return _0x5f2f68(_0x3b60d8);},'CGgjz':_0x254cf4(0xf6),'EEHHs':function(_0x38c522,_0x2ba941){return _0x38c522(_0x2ba941);},'dXWYb':_0x254cf4(0x11c),'jlleq':_0x254cf4(0xef),'BHYQr':function(_0x4bea7e,_0x7a6ce4){return _0x4bea7e+_0x7a6ce4;},'Hjwbk':function(_0xaf7ac0,_0x1c0413){return _0xaf7ac0===_0x1c0413;},'TcEmn':_0x254cf4(0x13d),'vfzxE':_0x254cf4(0xee),'ejXwy':_0x254cf4(0x13e),'iOhgo':function(_0x4e8aa6,_0x3730ae,_0x39cbc4){return _0x4e8aa6(_0x3730ae,_0x39cbc4);},'cLYMb':_0x254cf4(0x120)},{fileName:_0x23e46d,path:_0x46c7ae,fileSize:_0x3c905e,md5:_0x591f28}=await NTQQFileApi[_0x254cf4(0x11e)](_0x5693e7,ElementType[_0x254cf4(0x114)]);if(_0x411d51[_0x254cf4(0x10a)](_0x3c905e,0x0))throw _0x411d51[_0x254cf4(0xf0)];const _0x270fc6=_0x411d51[_0x254cf4(0x11b)](require,_0x411d51[_0x254cf4(0x136)]);let _0x1d83f5=_0x46c7ae[_0x254cf4(0x113)](_0x270fc6[_0x254cf4(0x103)]+_0x254cf4(0x10e)+_0x270fc6[_0x254cf4(0x103)],_0x270fc6[_0x254cf4(0x103)]+_0x254cf4(0x11d)+_0x270fc6['sep']);_0x1d83f5=_0x270fc6[_0x254cf4(0x107)](_0x1d83f5);let _0x55aaea={'width':0x780,'height':0x438,'time':0xf,'format':_0x411d51[_0x254cf4(0x100)],'size':_0x3c905e,'filePath':_0x5693e7};try{_0x55aaea=await _0x411d51[_0x254cf4(0x12f)](getVideoInfo,_0x46c7ae),_0x411d51[_0x254cf4(0xf7)](logDebug,_0x254cf4(0x130),_0x55aaea);}catch(_0x4b6f2f){_0x411d51[_0x254cf4(0xf7)](logError,_0x411d51[_0x254cf4(0x12c)],_0x4b6f2f);}const _0x4cd681=new Promise((_0x3701e1,_0x5f2fce)=>{const _0x2e7932=_0x254cf4,_0x355e91={'JrFvM':function(_0x2b180d,_0x2c042d){const _0x58cdf5=_0x18e6;return _0x411d51[_0x58cdf5(0x11b)](_0x2b180d,_0x2c042d);}},_0x59736a=_0x591f28+_0x2e7932(0xf5),_0x1f967d=_0x270fc6[_0x2e7932(0x125)](_0x1d83f5,_0x59736a);_0x411d51[_0x2e7932(0x12f)](_0xebb3d2,_0x5693e7)['on'](_0x411d51[_0x2e7932(0x121)],()=>{})['on'](_0x411d51[_0x2e7932(0x135)],_0x59ead4=>{const _0x40ad1c=_0x2e7932,_0x29d7d0={'vzOqM':function(_0x229bf5,_0xaa812c){const _0x307544=_0x18e6;return _0x411d51[_0x307544(0x11b)](_0x229bf5,_0xaa812c);}};logDebug(_0x411d51[_0x40ad1c(0x111)],_0x59ead4),_0x5ae564?_0x1ac955[_0x40ad1c(0x129)](_0x5ae564,_0x1f967d)['then'](()=>{const _0x1211a1=_0x40ad1c;_0x29d7d0[_0x1211a1(0x131)](_0x3701e1,_0x1f967d);})[_0x40ad1c(0x12e)](_0x5f2fce):_0x1ac955[_0x40ad1c(0xf8)](_0x1f967d,defaultVideoThumb)['then'](()=>{const _0x391c48=_0x40ad1c;_0x29d7d0[_0x391c48(0x131)](_0x3701e1,_0x1f967d);})[_0x40ad1c(0x12e)](_0x5f2fce);})[_0x2e7932(0xf9)]({'timestamps':[0x0],'filename':_0x59736a,'folder':_0x1d83f5,'size':_0x411d51[_0x2e7932(0x110)](_0x55aaea['width']+'x',_0x55aaea[_0x2e7932(0x137)])})['on'](_0x411d51[_0x2e7932(0x121)],()=>{const _0x51dd87=_0x2e7932;_0x355e91[_0x51dd87(0xed)](_0x3701e1,_0x1f967d);});}),_0x10848d=new Map(),_0x1ee739=await _0x4cd681,_0xf7560a=(await _0x1ac955['stat'](_0x1ee739))['size'];_0x10848d[_0x254cf4(0xfd)](0x0,_0x1ee739);const _0x5a88cc=await calculateFileMD5(_0x1ee739),_0x4cb28e={'elementType':ElementType[_0x254cf4(0x114)],'elementId':'','videoElement':{'fileName':_0x29c2f8||_0x23e46d,'filePath':_0x46c7ae,'videoMd5':_0x591f28,'thumbMd5':_0x5a88cc,'fileTime':_0x55aaea[_0x254cf4(0x10c)],'thumbPath':_0x10848d,'thumbSize':_0xf7560a,'thumbWidth':_0x55aaea['width'],'thumbHeight':_0x55aaea['height'],'fileSize':''+_0x3c905e}};return _0x4cb28e;}static async[_0x5294ca(0xf3)](_0x4ce23c){const _0x6f09f1=_0x5294ca,_0x5c6b67={'AfzYK':function(_0x2dc061,_0x2a666f){return _0x2dc061(_0x2a666f);},'HxICh':_0x6f09f1(0x11f),'coJQO':function(_0x629cd1,_0x419a4e){return _0x629cd1===_0x419a4e;},'aiYXW':_0x6f09f1(0x13d)},{converted:_0x5bcf30,path:_0x53fc3b,duration:_0x118c67}=await _0x5c6b67[_0x6f09f1(0x10d)](encodeSilk,_0x4ce23c);if(!_0x53fc3b)throw _0x5c6b67['HxICh'];const {md5:_0x33bab4,fileName:_0x323d51,path:_0x1d2af8,fileSize:_0x421e14}=await NTQQFileApi[_0x6f09f1(0x11e)](_0x53fc3b,ElementType[_0x6f09f1(0x116)]);if(_0x5c6b67[_0x6f09f1(0x12b)](_0x421e14,0x0))throw _0x5c6b67['aiYXW'];return _0x5bcf30&&_0x1ac955['unlink'](_0x53fc3b)[_0x6f09f1(0x128)](),{'elementType':ElementType[_0x6f09f1(0x116)],'elementId':'','pttElement':{'fileName':_0x323d51,'filePath':_0x1d2af8,'md5HexStr':_0x33bab4,'fileSize':_0x421e14,'duration':_0x118c67||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[_0x5294ca(0x12a)](_0x1bf5f5){const _0x2921d1=_0x5294ca;return{'elementType':ElementType[_0x2921d1(0x119)],'elementId':'','faceElement':{'faceIndex':_0x1bf5f5,'faceType':_0x1bf5f5<0xde?FaceType[_0x2921d1(0x124)]:FaceType[_0x2921d1(0x126)]}};}static[_0x5294ca(0xfc)](_0x525fa0){const _0x1ab916=_0x5294ca,_0x286f4e={'aoQJA':_0x1ab916(0xfa)};return{'elementType':ElementType[_0x1ab916(0x119)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x1ab916(0xfc)],'faceType':FaceType[_0x1ab916(0xfc)],'faceText':_0x286f4e[_0x1ab916(0x133)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static['rps'](_0x1264c2){const _0x1956bc=_0x5294ca,_0x5b3936={'snNjF':'[包剪锤]'};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x1956bc(0x105)],'faceText':_0x5b3936[_0x1956bc(0xf1)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x5294ca(0x140)](_0x2f0741){const _0xe0c16b=_0x5294ca,_0x536daa={'NskSF':function(_0x3e4aeb,_0x4bc036){return _0x3e4aeb!==_0x4bc036;},'zzfOx':_0xe0c16b(0xf2)};return _0x536daa['NskSF'](typeof _0x2f0741,_0x536daa['zzfOx'])&&(_0x2f0741=JSON[_0xe0c16b(0x13c)](_0x2f0741)),{'elementType':ElementType['ARK'],'elementId':'','arkElement':{'bytesData':_0x2f0741,'linkInfo':null,'subElementType':null}};}static[_0x5294ca(0x115)](_0x1e9934){const _0xce017d=_0x5294ca;return{'elementType':ElementType[_0xce017d(0x13a)],'elementId':'','markdownElement':{'content':_0x1e9934}};}} \ No newline at end of file +const _0x4f201b=_0x20da;(function(_0xc777a6,_0x1524cb){const _0x37e4fa=_0x20da,_0xdc1bdb=_0xc777a6();while(!![]){try{const _0x27deb2=parseInt(_0x37e4fa(0x16e))/0x1+-parseInt(_0x37e4fa(0x16b))/0x2*(parseInt(_0x37e4fa(0x15b))/0x3)+-parseInt(_0x37e4fa(0x148))/0x4*(-parseInt(_0x37e4fa(0x17f))/0x5)+-parseInt(_0x37e4fa(0x161))/0x6*(parseInt(_0x37e4fa(0x13f))/0x7)+-parseInt(_0x37e4fa(0x167))/0x8+parseInt(_0x37e4fa(0x184))/0x9*(parseInt(_0x37e4fa(0x180))/0xa)+parseInt(_0x37e4fa(0x165))/0xb*(-parseInt(_0x37e4fa(0x17a))/0xc);if(_0x27deb2===_0x1524cb)break;else _0xdc1bdb['push'](_0xdc1bdb['shift']());}catch(_0x555e53){_0xdc1bdb['push'](_0xdc1bdb['shift']());}}}(_0x526d,0x731df));function _0x20da(_0x4d3e46,_0xfdc2a5){const _0x526d8a=_0x526d();return _0x20da=function(_0x20da22,_0x476156){_0x20da22=_0x20da22-0x13a;let _0x18ec29=_0x526d8a[_0x20da22];return _0x18ec29;},_0x20da(_0x4d3e46,_0xfdc2a5);}import{AtType,ElementType,FaceIndex,FaceType,PicType}from'./index';import{promises as _0x9f2ce4}from'node:fs';import _0x3733ed from'fluent-ffmpeg';function _0x526d(){const _0x9ed8da=['JpJWq','GTFxq','time','6tkAfEW','MARKDOWN','MStqd','set','2576233CbbqfV','Ynhuy','66312UsrjCe','HFKfd','video','KpQTN','1488980KbQLkq','VZXOx','width','287892McGQWd','rps','getImageSize','ZHlVH','dlKOL','unlink','jpg','dice','ilIfc','QCTdm','PTT','sep','12SVPcsh','FACE','获取视频信息失败','soDQK','size','18310TxvHPw','430gfArMN','Ori','EtrNS','QXdjo','193374sCEWGG','copyFile','pic','height','PIC','toString','gif','CiShy','[包剪锤]','stringify','uploadFile','error','VHPIa','writeFile','reply','视频信息','TEXT','REPLY','normal2','notAt','2553901tfPXjq','LuBcy','ark','markdown','mp4','then','ygdTl','string','_0.png','668ppxSiP','wuSZm','UJnAr','FILE','ryNmP','path','获取视频封面失败,使用默认封面','ptt','ARK','[骰子]','dljMl','stat','oYHAW','face','screenshots','文件异常,大小为0','normal','file','iNZsE','3xkWYSY','VIDEO','hlhzv'];_0x526d=function(){return _0x9ed8da;};return _0x526d();}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 class SendMsgElementConstructor{static['text'](_0x13c814){const _0x19e1d6=_0x20da;return{'elementType':ElementType[_0x19e1d6(0x13b)],'elementId':'','textElement':{'content':_0x13c814,'atType':AtType[_0x19e1d6(0x13e)],'atUid':'','atTinyId':'','atNtUid':''}};}static['at'](_0x4dec1a,_0x5e5f50,_0xaea0ee,_0x1a96e){const _0x27a258=_0x20da;return{'elementType':ElementType[_0x27a258(0x13b)],'elementId':'','textElement':{'content':'@'+_0x1a96e,'atType':_0xaea0ee,'atUid':_0x4dec1a,'atTinyId':'','atNtUid':_0x5e5f50}};}static[_0x4f201b(0x192)](_0x37d0c7,_0x1adcc6,_0x43aca6,_0x17debd){const _0x1bcbdd=_0x4f201b;return{'elementType':ElementType[_0x1bcbdd(0x13c)],'elementId':'','replyElement':{'replayMsgSeq':_0x37d0c7,'replayMsgId':_0x1adcc6,'senderUin':_0x43aca6,'senderUinStr':_0x17debd}};}static async[_0x4f201b(0x186)](_0x26a8d1,_0x40df71='',_0x45afd2=0x0){const _0x4feb86=_0x4f201b,_0x13d1b0={'dljMl':_0x4feb86(0x157),'GTFxq':function(_0x4705a9,_0x511449){return _0x4705a9(_0x511449);},'MStqd':function(_0x3adac2,_0x425de3,_0x95f252){return _0x3adac2(_0x425de3,_0x95f252);},'ZbMKT':'图片信息'},{md5:_0x5b5830,fileName:_0x1d56c5,path:_0x4c5eb6,fileSize:_0x2e71f3}=await NTQQFileApi[_0x4feb86(0x18e)](_0x26a8d1,ElementType[_0x4feb86(0x188)],_0x45afd2);if(_0x2e71f3===0x0)throw _0x13d1b0[_0x4feb86(0x152)];const _0x3d2dae=await NTQQFileApi[_0x4feb86(0x170)](_0x26a8d1),_0x3a18f1={'md5HexStr':_0x5b5830,'fileSize':_0x2e71f3[_0x4feb86(0x189)](),'picWidth':_0x3d2dae?.[_0x4feb86(0x16d)],'picHeight':_0x3d2dae?.[_0x4feb86(0x187)],'fileName':_0x1d56c5,'sourcePath':_0x4c5eb6,'original':!![],'picType':_0x13d1b0[_0x4feb86(0x15f)](isGIF,_0x26a8d1)?PicType[_0x4feb86(0x18a)]:PicType[_0x4feb86(0x174)],'picSubType':_0x45afd2,'fileUuid':'','fileSubId':'','thumbFileSize':0x0,'summary':_0x40df71};return _0x13d1b0[_0x4feb86(0x163)](logDebug,_0x13d1b0['ZbMKT'],_0x3a18f1),{'elementType':ElementType[_0x4feb86(0x188)],'elementId':'','picElement':_0x3a18f1};}static async[_0x4f201b(0x159)](_0x5b357a,_0x522c76=''){const _0x550acc=_0x4f201b,_0x2e8b42={'droaY':function(_0x1af633,_0x1a8c30){return _0x1af633===_0x1a8c30;},'oYHAW':_0x550acc(0x157),'GjMgS':function(_0x59a3c6,_0x57fbb2){return _0x59a3c6||_0x57fbb2;}},{md5:_0x5b6073,fileName:_0x1c4eae,path:_0x35d4b3,fileSize:_0x1043a6}=await NTQQFileApi[_0x550acc(0x18e)](_0x5b357a,ElementType[_0x550acc(0x14b)]);if(_0x2e8b42['droaY'](_0x1043a6,0x0))throw _0x2e8b42[_0x550acc(0x154)];const _0x192a2c={'elementType':ElementType[_0x550acc(0x14b)],'elementId':'','fileElement':{'fileName':_0x2e8b42['GjMgS'](_0x522c76,_0x1c4eae),'filePath':_0x35d4b3,'fileSize':_0x1043a6['toString']()}};return _0x192a2c;}static async[_0x4f201b(0x169)](_0x3e2e65,_0xf02c44='',_0xb6095d=''){const _0x428742=_0x4f201b,_0x285c0c={'VHPIa':function(_0x10c9ac,_0xaa2ca0){return _0x10c9ac(_0xaa2ca0);},'wuSZm':function(_0x346fdf,_0x6ade5a,_0x5e724c){return _0x346fdf(_0x6ade5a,_0x5e724c);},'soDQK':_0x428742(0x14e),'EtrNS':'end','ryNmP':_0x428742(0x18f),'iNZsE':function(_0x2167ec,_0x1e3778){return _0x2167ec===_0x1e3778;},'dlKOL':_0x428742(0x17c),'QXdjo':function(_0x10fc51,_0x37b954){return _0x10fc51||_0x37b954;}},{fileName:_0x26010f,path:_0x2fa6ba,fileSize:_0x9011b1,md5:_0x39ad2e}=await NTQQFileApi[_0x428742(0x18e)](_0x3e2e65,ElementType['VIDEO']);if(_0x285c0c[_0x428742(0x15a)](_0x9011b1,0x0))throw _0x428742(0x157);const _0x5ee328=_0x285c0c[_0x428742(0x190)](require,_0x428742(0x14d));let _0x361992=_0x2fa6ba['replace'](_0x5ee328[_0x428742(0x179)]+_0x428742(0x181)+_0x5ee328[_0x428742(0x179)],_0x5ee328[_0x428742(0x179)]+'Thumb'+_0x5ee328[_0x428742(0x179)]);_0x361992=_0x5ee328['dirname'](_0x361992);let _0x2ad02b={'width':0x780,'height':0x438,'time':0xf,'format':_0x428742(0x143),'size':_0x9011b1,'filePath':_0x3e2e65};try{_0x2ad02b=await _0x285c0c[_0x428742(0x190)](getVideoInfo,_0x2fa6ba),_0x285c0c[_0x428742(0x149)](logDebug,_0x428742(0x13a),_0x2ad02b);}catch(_0x4b5edc){_0x285c0c['wuSZm'](logError,_0x285c0c[_0x428742(0x172)],_0x4b5edc);}const _0x22940b=new Promise((_0x1b2d62,_0x441377)=>{const _0x47a6f0=_0x428742,_0xcea6ed={'UJnAr':function(_0x1cb2ad,_0x1564c1){const _0x16b136=_0x20da;return _0x285c0c[_0x16b136(0x190)](_0x1cb2ad,_0x1564c1);},'ygdTl':function(_0x39180c,_0x2db1ff){return _0x39180c(_0x2db1ff);},'Ynhuy':function(_0x1a278b,_0xdf3e3b,_0x3d69d6){const _0x17fc78=_0x20da;return _0x285c0c[_0x17fc78(0x149)](_0x1a278b,_0xdf3e3b,_0x3d69d6);},'ZHlVH':_0x285c0c[_0x47a6f0(0x17d)]},_0x1b93ce=_0x39ad2e+_0x47a6f0(0x147),_0x243c4c=_0x5ee328['join'](_0x361992,_0x1b93ce);_0x285c0c[_0x47a6f0(0x190)](_0x3733ed,_0x3e2e65)['on'](_0x285c0c['EtrNS'],()=>{})['on'](_0x285c0c[_0x47a6f0(0x14c)],_0x508759=>{const _0x4aac42=_0x47a6f0,_0x1a001a={'QCTdm':function(_0x118e94,_0x1a5894){const _0x1bddfd=_0x20da;return _0xcea6ed[_0x1bddfd(0x145)](_0x118e94,_0x1a5894);}};_0xcea6ed[_0x4aac42(0x166)](logDebug,_0xcea6ed[_0x4aac42(0x171)],_0x508759),_0xb6095d?_0x9f2ce4[_0x4aac42(0x185)](_0xb6095d,_0x243c4c)[_0x4aac42(0x144)](()=>{const _0x5243eb=_0x4aac42;_0xcea6ed[_0x5243eb(0x14a)](_0x1b2d62,_0x243c4c);})['catch'](_0x441377):_0x9f2ce4[_0x4aac42(0x191)](_0x243c4c,defaultVideoThumb)[_0x4aac42(0x144)](()=>{const _0x3f1a6f=_0x4aac42;_0x1a001a[_0x3f1a6f(0x177)](_0x1b2d62,_0x243c4c);})['catch'](_0x441377);})[_0x47a6f0(0x156)]({'timestamps':[0x0],'filename':_0x1b93ce,'folder':_0x361992,'size':_0x2ad02b[_0x47a6f0(0x16d)]+'x'+_0x2ad02b['height']})['on'](_0x285c0c[_0x47a6f0(0x182)],()=>{_0x1b2d62(_0x243c4c);});}),_0x4db80e=new Map(),_0x514784=await _0x22940b,_0x598c53=(await _0x9f2ce4[_0x428742(0x153)](_0x514784))[_0x428742(0x17e)];_0x4db80e[_0x428742(0x164)](0x0,_0x514784);const _0x50d7ba=await calculateFileMD5(_0x514784),_0x48fcfb={'elementType':ElementType[_0x428742(0x15c)],'elementId':'','videoElement':{'fileName':_0x285c0c[_0x428742(0x183)](_0xf02c44,_0x26010f),'filePath':_0x2fa6ba,'videoMd5':_0x39ad2e,'thumbMd5':_0x50d7ba,'fileTime':_0x2ad02b[_0x428742(0x160)],'thumbPath':_0x4db80e,'thumbSize':_0x598c53,'thumbWidth':_0x2ad02b['width'],'thumbHeight':_0x2ad02b[_0x428742(0x187)],'fileSize':''+_0x9011b1}};return _0x48fcfb;}static async[_0x4f201b(0x14f)](_0x5df3c9){const _0xba906a=_0x4f201b,_0x500c34={'LuBcy':function(_0x311306,_0x124eb9){return _0x311306(_0x124eb9);},'JpJWq':'语音转换失败,\x20请检查语音文件是否正常','KpQTN':function(_0x29d88d,_0x2a123a){return _0x29d88d===_0x2a123a;},'VZXOx':_0xba906a(0x157),'pbBdS':function(_0x382828,_0x3dcaae){return _0x382828||_0x3dcaae;}},{converted:_0x2d1b71,path:_0x31af3d,duration:_0x604fc5}=await _0x500c34[_0xba906a(0x140)](encodeSilk,_0x5df3c9);if(!_0x31af3d)throw _0x500c34[_0xba906a(0x15e)];const {md5:_0x28ff74,fileName:_0x5df15e,path:_0x59288a,fileSize:_0x1de6fb}=await NTQQFileApi[_0xba906a(0x18e)](_0x31af3d,ElementType[_0xba906a(0x178)]);if(_0x500c34[_0xba906a(0x16a)](_0x1de6fb,0x0))throw _0x500c34[_0xba906a(0x16c)];return _0x2d1b71&&_0x9f2ce4[_0xba906a(0x173)](_0x31af3d)[_0xba906a(0x144)](),{'elementType':ElementType[_0xba906a(0x178)],'elementId':'','pttElement':{'fileName':_0x5df15e,'filePath':_0x59288a,'md5HexStr':_0x28ff74,'fileSize':_0x1de6fb,'duration':_0x500c34['pbBdS'](_0x604fc5,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[_0x4f201b(0x155)](_0x3e34c4){const _0x79394c=_0x4f201b,_0x35e799={'RbmFl':function(_0x1b8672,_0x36d93c){return _0x1b8672<_0x36d93c;}};return{'elementType':ElementType[_0x79394c(0x17b)],'elementId':'','faceElement':{'faceIndex':_0x3e34c4,'faceType':_0x35e799['RbmFl'](_0x3e34c4,0xde)?FaceType[_0x79394c(0x158)]:FaceType[_0x79394c(0x13d)]}};}static[_0x4f201b(0x175)](_0x55ee67){const _0x4fcbef=_0x4f201b,_0x1496fc={'ilIfc':_0x4fcbef(0x151)};return{'elementType':ElementType[_0x4fcbef(0x17b)],'elementId':'','faceElement':{'faceIndex':FaceIndex[_0x4fcbef(0x175)],'faceType':FaceType[_0x4fcbef(0x175)],'faceText':_0x1496fc[_0x4fcbef(0x176)],'packId':'1','stickerId':'33','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x4f201b(0x16f)](_0x1b9862){const _0xb0fcc3=_0x4f201b,_0x2bf44d={'CiShy':_0xb0fcc3(0x18c)};return{'elementType':ElementType['FACE'],'elementId':'','faceElement':{'faceIndex':FaceIndex['RPS'],'faceText':_0x2bf44d[_0xb0fcc3(0x18b)],'faceType':0x3,'packId':'1','stickerId':'34','sourceType':0x1,'stickerType':0x2,'surpriseId':''}};}static[_0x4f201b(0x141)](_0x357bbb){const _0x4c4929=_0x4f201b,_0x117e53={'HFKfd':function(_0x2a0dec,_0x554b02){return _0x2a0dec!==_0x554b02;},'hlhzv':_0x4c4929(0x146)};return _0x117e53[_0x4c4929(0x168)](typeof _0x357bbb,_0x117e53[_0x4c4929(0x15d)])&&(_0x357bbb=JSON[_0x4c4929(0x18d)](_0x357bbb)),{'elementType':ElementType[_0x4c4929(0x150)],'elementId':'','arkElement':{'bytesData':_0x357bbb,'linkInfo':null,'subElementType':null}};}static[_0x4f201b(0x142)](_0x27f8db){const _0x6b0cd=_0x4f201b;return{'elementType':ElementType[_0x6b0cd(0x162)],'elementId':'','markdownElement':{'content':_0x27f8db}};}} \ 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 95d39779..2d8fb3ab 100644 --- a/src/core.lib/src/entities/group.js +++ b/src/core.lib/src/entities/group.js @@ -1 +1 @@ -(function(_0x386120,_0x105f2b){var _0x34ddc1=_0x2238,_0x29bd56=_0x386120();while(!![]){try{var _0x529ddc=-parseInt(_0x34ddc1(0x12b))/0x1*(parseInt(_0x34ddc1(0x130))/0x2)+-parseInt(_0x34ddc1(0x129))/0x3+parseInt(_0x34ddc1(0x12a))/0x4+parseInt(_0x34ddc1(0x127))/0x5+-parseInt(_0x34ddc1(0x12e))/0x6*(parseInt(_0x34ddc1(0x128))/0x7)+parseInt(_0x34ddc1(0x12c))/0x8+parseInt(_0x34ddc1(0x131))/0x9;if(_0x529ddc===_0x105f2b)break;else _0x29bd56['push'](_0x29bd56['shift']());}catch(_0x27152c){_0x29bd56['push'](_0x29bd56['shift']());}}}(_0x45dc,0x3935c));export var GroupMemberRole;function _0x45dc(){var _0x166830=['110XezFKI','1361700OaksNf','normal','admin','HiLQR','1463780exYTfY','2343607gPcgho','351828RnNnVy','1275448NjsIDS','7405oACyJm','2646128KvPQax','ylhwz','6VpgXMQ','owner'];_0x45dc=function(){return _0x166830;};return _0x45dc();}function _0x2238(_0x3186f8,_0x3b4202){var _0x45dce4=_0x45dc();return _0x2238=function(_0x22382a,_0x4828f0){_0x22382a=_0x22382a-0x125;var _0x3ce346=_0x45dce4[_0x22382a];return _0x3ce346;},_0x2238(_0x3186f8,_0x3b4202);}(function(_0x32c10b){var _0x28ab73=_0x2238,_0x4f3ac8={'HiLQR':_0x28ab73(0x132),'YxmHs':_0x28ab73(0x125),'ylhwz':_0x28ab73(0x12f)};_0x32c10b[_0x32c10b[_0x4f3ac8[_0x28ab73(0x126)]]=0x2]=_0x4f3ac8['HiLQR'],_0x32c10b[_0x32c10b['admin']=0x3]=_0x4f3ac8['YxmHs'],_0x32c10b[_0x32c10b[_0x4f3ac8[_0x28ab73(0x12d)]]=0x4]=_0x4f3ac8['ylhwz'];}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file +function _0x4817(_0x37fe6e,_0x3024ce){var _0x40ded3=_0x40de();return _0x4817=function(_0x4817f4,_0x1b1bc7){_0x4817f4=_0x4817f4-0x14d;var _0x3a2c25=_0x40ded3[_0x4817f4];return _0x3a2c25;},_0x4817(_0x37fe6e,_0x3024ce);}function _0x40de(){var _0x4e0fb6=['50iaViZp','admin','hatUR','381771DjdDrO','owner','39221FhtaPR','312LUSCZA','217000qJwLnB','184908DLYKSd','68716ltzOCJ','726207XFlJJS','869884zltHJR','normal'];_0x40de=function(){return _0x4e0fb6;};return _0x40de();}(function(_0xbc7bb9,_0x3b5934){var _0xfe9f32=_0x4817,_0x2f66f7=_0xbc7bb9();while(!![]){try{var _0x370a4e=parseInt(_0xfe9f32(0x153))/0x1+-parseInt(_0xfe9f32(0x155))/0x2+-parseInt(_0xfe9f32(0x156))/0x3+-parseInt(_0xfe9f32(0x157))/0x4+-parseInt(_0xfe9f32(0x159))/0x5*(-parseInt(_0xfe9f32(0x154))/0x6)+-parseInt(_0xfe9f32(0x151))/0x7*(-parseInt(_0xfe9f32(0x152))/0x8)+-parseInt(_0xfe9f32(0x14f))/0x9;if(_0x370a4e===_0x3b5934)break;else _0x2f66f7['push'](_0x2f66f7['shift']());}catch(_0x3f0580){_0x2f66f7['push'](_0x2f66f7['shift']());}}}(_0x40de,0x32a14));export var GroupMemberRole;(function(_0x542569){var _0xb00448=_0x4817,_0x523f8e={'ykAXL':_0xb00448(0x158),'SMLds':_0xb00448(0x14d),'hatUR':_0xb00448(0x150)};_0x542569[_0x542569[_0x523f8e['ykAXL']]=0x2]=_0x523f8e['ykAXL'],_0x542569[_0x542569[_0x523f8e['SMLds']]=0x3]=_0x523f8e['SMLds'],_0x542569[_0x542569[_0x523f8e[_0xb00448(0x14e)]]=0x4]='owner';}(GroupMemberRole||(GroupMemberRole={}))); \ No newline at end of file diff --git a/src/core.lib/src/entities/index.js b/src/core.lib/src/entities/index.js index b57e9000..e31e482a 100644 --- a/src/core.lib/src/entities/index.js +++ b/src/core.lib/src/entities/index.js @@ -1 +1 @@ -(function(_0x22ecf0,_0x5723c8){var _0x2f3ff3=_0x4d87,_0x2c7a01=_0x22ecf0();while(!![]){try{var _0x1ea440=parseInt(_0x2f3ff3(0x131))/0x1+parseInt(_0x2f3ff3(0x135))/0x2*(-parseInt(_0x2f3ff3(0x12f))/0x3)+-parseInt(_0x2f3ff3(0x132))/0x4+-parseInt(_0x2f3ff3(0x12d))/0x5*(-parseInt(_0x2f3ff3(0x133))/0x6)+parseInt(_0x2f3ff3(0x134))/0x7+-parseInt(_0x2f3ff3(0x130))/0x8+parseInt(_0x2f3ff3(0x12e))/0x9;if(_0x1ea440===_0x5723c8)break;else _0x2c7a01['push'](_0x2c7a01['shift']());}catch(_0x1fb045){_0x2c7a01['push'](_0x2c7a01['shift']());}}}(_0x30a5,0xb2f7d));export*from'./user';export*from'./group';function _0x4d87(_0x14e701,_0xdf7e2d){var _0x30a535=_0x30a5();return _0x4d87=function(_0x4d878d,_0x2ae83e){_0x4d878d=_0x4d878d-0x12d;var _0x41fe5c=_0x30a535[_0x4d878d];return _0x41fe5c;},_0x4d87(_0x14e701,_0xdf7e2d);}export*from'./msg';export*from'./notify';function _0x30a5(){var _0x2cba56=['372695gSjshJ','3499904FjeFcW','24eLJvmC','3694320RVjEAy','49332qqDKXp','1003965gulMNN','6053040LeRZpj','84BKSHah','620080ThaSgX'];_0x30a5=function(){return _0x2cba56;};return _0x30a5();}export*from'./cache';export*from'./constructor'; \ No newline at end of file +(function(_0x392b98,_0x159fcd){var _0x3c072a=_0x3e73,_0x41a73c=_0x392b98();while(!![]){try{var _0x52b505=-parseInt(_0x3c072a(0xc4))/0x1+-parseInt(_0x3c072a(0xc6))/0x2*(parseInt(_0x3c072a(0xc7))/0x3)+parseInt(_0x3c072a(0xbe))/0x4*(-parseInt(_0x3c072a(0xbf))/0x5)+-parseInt(_0x3c072a(0xc0))/0x6+parseInt(_0x3c072a(0xc3))/0x7+-parseInt(_0x3c072a(0xc2))/0x8+parseInt(_0x3c072a(0xc1))/0x9*(parseInt(_0x3c072a(0xc5))/0xa);if(_0x52b505===_0x159fcd)break;else _0x41a73c['push'](_0x41a73c['shift']());}catch(_0x3dfe8e){_0x41a73c['push'](_0x41a73c['shift']());}}}(_0xfec8,0xd99d3));function _0xfec8(){var _0x1a93c9=['72zwSXep','10814056OzNJhT','2363207JFufKx','1653204cRVVDs','9135380mYMVKK','53328tOkDbM','108ucWfnj','84qcvyEC','269315nQMtLK','9951420JqkioN'];_0xfec8=function(){return _0x1a93c9;};return _0xfec8();}export*from'./user';export*from'./group';function _0x3e73(_0x25b145,_0x4731a2){var _0xfec844=_0xfec8();return _0x3e73=function(_0x3e731c,_0xd78927){_0x3e731c=_0x3e731c-0xbe;var _0x30e702=_0xfec844[_0x3e731c];return _0x30e702;},_0x3e73(_0x25b145,_0x4731a2);}export*from'./msg';export*from'./notify';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 2d03d9df..46fd8c26 100644 --- a/src/core.lib/src/entities/msg.js +++ b/src/core.lib/src/entities/msg.js @@ -1 +1 @@ -var _0xce2357=_0x1a72;(function(_0x5e88f0,_0x35801e){var _0x25ad22=_0x1a72,_0xdb4056=_0x5e88f0();while(!![]){try{var _0x4f1d36=-parseInt(_0x25ad22(0x12a))/0x1+parseInt(_0x25ad22(0x123))/0x2+parseInt(_0x25ad22(0x112))/0x3+parseInt(_0x25ad22(0x11c))/0x4*(parseInt(_0x25ad22(0xfd))/0x5)+-parseInt(_0x25ad22(0x12c))/0x6*(parseInt(_0x25ad22(0x104))/0x7)+-parseInt(_0x25ad22(0x10a))/0x8*(parseInt(_0x25ad22(0x117))/0x9)+-parseInt(_0x25ad22(0x118))/0xa;if(_0x4f1d36===_0x35801e)break;else _0xdb4056['push'](_0xdb4056['shift']());}catch(_0x2bac0c){_0xdb4056['push'](_0xdb4056['shift']());}}}(_0x4a4c,0x18a27));export var ElementType;function _0x4a4c(){var _0x34840a=['BGYup','KFvKO','memberIncrease','49gecEJr','RLocV','SrHFV','FACE','HCvBf','split','72khfjri','normal','5|1|8|0|2|4|3|7|6','xoQAa','PGKYt','https://multimedia.nt.qq.com.cn','face','temp','30123bSMmRI','MARKDOWN','JVuBy','SBJVQ','atAll','981QcGLHj','271270MWQGuf','kicked','group','RkTnS','16njmVtv','Rnmfq','LsxYe','normal2','TEXT','ARK','atUser','231836dGWrWg','PIC','xEMDJ','VIDEO','jpg','lQvnR','gif','156411kNcmxp','WNxfJ','29994BJsUoy','wQfNL','VVNwm','INVITE_NEW_MEMBER','QSQCp','IvJmf','RPS','QAkch','REPLY','MEMBER_NEW_TITLE','243070CLOtGO','PTT','dice','ban'];_0x4a4c=function(){return _0x34840a;};return _0x4a4c();}(function(_0x302443){var _0x58247a=_0x1a72,_0x288c22={'jysOk':_0x58247a(0x10c),'RLocV':'PTT','SBJVQ':'PIC','xoQAa':_0x58247a(0x126),'KFvKO':_0x58247a(0x134),'mzAOS':_0x58247a(0x120),'DCDdu':_0x58247a(0x113),'DDhsg':_0x58247a(0x121),'PGKYt':'FILE'},_0x1011ec=_0x288c22['jysOk'][_0x58247a(0x109)]('|'),_0x536d99=0x0;while(!![]){switch(_0x1011ec[_0x536d99++]){case'0':_0x302443[_0x302443[_0x288c22[_0x58247a(0x105)]]=0x4]=_0x58247a(0xfe);continue;case'1':_0x302443[_0x302443[_0x288c22[_0x58247a(0x115)]]=0x2]=_0x58247a(0x124);continue;case'2':_0x302443[_0x302443[_0x288c22[_0x58247a(0x10d)]]=0x5]=_0x288c22[_0x58247a(0x10d)];continue;case'3':_0x302443[_0x302443[_0x288c22[_0x58247a(0x102)]]=0x7]=_0x288c22['KFvKO'];continue;case'4':_0x302443[_0x302443[_0x58247a(0x107)]=0x6]='FACE';continue;case'5':_0x302443[_0x302443[_0x288c22['mzAOS']]=0x1]='TEXT';continue;case'6':_0x302443[_0x302443[_0x288c22['DCDdu']]=0xe]=_0x288c22['DCDdu'];continue;case'7':_0x302443[_0x302443[_0x288c22['DDhsg']]=0xa]=_0x58247a(0x121);continue;case'8':_0x302443[_0x302443[_0x288c22[_0x58247a(0x10e)]]=0x3]=_0x288c22[_0x58247a(0x10e)];continue;}break;}}(ElementType||(ElementType={})));export var PicType;(function(_0x383da1){var _0x2448a6=_0x1a72,_0x4e7d29={'IvJmf':_0x2448a6(0x129),'WNxfJ':_0x2448a6(0x127)};_0x383da1[_0x383da1[_0x4e7d29['IvJmf']]=0x7d0]=_0x4e7d29[_0x2448a6(0x131)],_0x383da1[_0x383da1[_0x2448a6(0x127)]=0x3e8]=_0x4e7d29[_0x2448a6(0x12b)];}(PicType||(PicType={})));export var PicSubType;(function(_0x57d711){var _0x388391=_0x1a72,_0x599ecd={'xEMDJ':_0x388391(0x10b),'eELRU':_0x388391(0x110)};_0x57d711[_0x57d711[_0x599ecd[_0x388391(0x125)]]=0x0]=_0x599ecd[_0x388391(0x125)],_0x57d711[_0x57d711[_0x599ecd['eELRU']]=0x1]='face';}(PicSubType||(PicSubType={})));export var AtType;(function(_0x1a64a4){var _0x1e0bd1=_0x1a72,_0x2f0448={'Rnmfq':'notAt','QVmmh':_0x1e0bd1(0x122)};_0x1a64a4[_0x1a64a4[_0x2f0448[_0x1e0bd1(0x11d)]]=0x0]=_0x2f0448[_0x1e0bd1(0x11d)],_0x1a64a4[_0x1a64a4['atAll']=0x1]=_0x1e0bd1(0x116),_0x1a64a4[_0x1a64a4[_0x1e0bd1(0x122)]=0x2]=_0x2f0448['QVmmh'];}(AtType||(AtType={})));export var ChatType;(function(_0x3c8465){var _0x2471a0=_0x1a72,_0x16ecd5={'JVuBy':'friend','RkTnS':_0x2471a0(0x11a),'BGYup':_0x2471a0(0x111)};_0x3c8465[_0x3c8465[_0x16ecd5[_0x2471a0(0x114)]]=0x1]='friend',_0x3c8465[_0x3c8465[_0x16ecd5['RkTnS']]=0x2]=_0x16ecd5[_0x2471a0(0x11b)],_0x3c8465[_0x3c8465['temp']=0x64]=_0x16ecd5[_0x2471a0(0x101)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST='https://gchat.qpic.cn';export const IMAGE_HTTP_HOST_NT=_0xce2357(0x10f);export var GrayTipElementSubType;(function(_0x9688ab){var _0x1db4d9=_0xce2357,_0x5d81c5={'SrHFV':_0x1db4d9(0x12f),'VVNwm':_0x1db4d9(0x135)};_0x9688ab[_0x9688ab[_0x5d81c5[_0x1db4d9(0x106)]]=0xc]=_0x1db4d9(0x12f),_0x9688ab[_0x9688ab[_0x5d81c5[_0x1db4d9(0x12e)]]=0x11]=_0x5d81c5[_0x1db4d9(0x12e)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x31c116){var _0x192f79=_0xce2357,_0x82f4a5={'QzLmt':_0x192f79(0x10b),'wQfNL':_0x192f79(0x11f),'QSQCp':_0x192f79(0xff)};_0x31c116[_0x31c116[_0x82f4a5['QzLmt']]=0x1]='normal',_0x31c116[_0x31c116[_0x82f4a5[_0x192f79(0x12d)]]=0x2]=_0x82f4a5[_0x192f79(0x12d)],_0x31c116[_0x31c116[_0x82f4a5[_0x192f79(0x130)]]=0x3]=_0x82f4a5[_0x192f79(0x130)];}(FaceType||(FaceType={})));export var FaceIndex;(function(_0x59d601){var _0xb0a4bd=_0xce2357,_0x427239={'HCvBf':'dice','LsxYe':_0xb0a4bd(0x132)};_0x59d601[_0x59d601[_0x427239['HCvBf']]=0x166]=_0x427239[_0xb0a4bd(0x108)],_0x59d601[_0x59d601[_0x427239[_0xb0a4bd(0x11e)]]=0x167]=_0x427239[_0xb0a4bd(0x11e)];}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;function _0x1a72(_0x3cc7bb,_0x301b5e){var _0x4a4c35=_0x4a4c();return _0x1a72=function(_0x1a7296,_0xaeba19){_0x1a7296=_0x1a7296-0xfd;var _0x2f0859=_0x4a4c35[_0x1a7296];return _0x2f0859;},_0x1a72(_0x3cc7bb,_0x301b5e);}(function(_0xab8697){var _0x34e6c4=_0xce2357,_0x39a98d={'QAkch':_0x34e6c4(0x103),'pRKaE':_0x34e6c4(0x119),'lQvnR':_0x34e6c4(0x100)};_0xab8697[_0xab8697[_0x39a98d[_0x34e6c4(0x133)]]=0x1]=_0x39a98d[_0x34e6c4(0x133)],_0xab8697[_0xab8697[_0x34e6c4(0x119)]=0x3]=_0x39a98d['pRKaE'],_0xab8697[_0xab8697[_0x34e6c4(0x100)]=0x8]=_0x39a98d[_0x34e6c4(0x128)];}(TipGroupElementType||(TipGroupElementType={}))); \ No newline at end of file +var _0x453e61=_0x57e0;(function(_0x13d95a,_0x3de408){var _0x40d8ed=_0x57e0,_0x49e37a=_0x13d95a();while(!![]){try{var _0x4fb6ac=-parseInt(_0x40d8ed(0x14f))/0x1+-parseInt(_0x40d8ed(0x160))/0x2+-parseInt(_0x40d8ed(0x15b))/0x3+-parseInt(_0x40d8ed(0x147))/0x4+-parseInt(_0x40d8ed(0x152))/0x5+-parseInt(_0x40d8ed(0x13c))/0x6*(-parseInt(_0x40d8ed(0x13d))/0x7)+parseInt(_0x40d8ed(0x15c))/0x8;if(_0x4fb6ac===_0x3de408)break;else _0x49e37a['push'](_0x49e37a['shift']());}catch(_0x426a4b){_0x49e37a['push'](_0x49e37a['shift']());}}}(_0x4f17,0x8d1dc));export var ElementType;(function(_0x3af6da){var _0x34325d=_0x57e0,_0x227221={'FFmPA':_0x34325d(0x161),'SAKWA':_0x34325d(0x162),'fDTto':_0x34325d(0x14c),'GpypB':'PTT','claXg':_0x34325d(0x14b),'gdStK':'MARKDOWN','Npemx':'VIDEO','RAtrP':_0x34325d(0x131),'HWrBx':_0x34325d(0x140),'pUeey':_0x34325d(0x143)},_0x1e29f5=_0x227221[_0x34325d(0x12f)][_0x34325d(0x15a)]('|'),_0x427b79=0x0;while(!![]){switch(_0x1e29f5[_0x427b79++]){case'0':_0x3af6da[_0x3af6da[_0x227221[_0x34325d(0x14d)]]=0x2]=_0x34325d(0x162);continue;case'1':_0x3af6da[_0x3af6da[_0x34325d(0x14c)]=0x3]=_0x227221[_0x34325d(0x155)];continue;case'2':_0x3af6da[_0x3af6da[_0x34325d(0x14e)]=0x4]=_0x227221[_0x34325d(0x165)];continue;case'3':_0x3af6da[_0x3af6da[_0x227221[_0x34325d(0x146)]]=0x6]=_0x227221[_0x34325d(0x146)];continue;case'4':_0x3af6da[_0x3af6da[_0x227221[_0x34325d(0x144)]]=0xe]=_0x227221[_0x34325d(0x144)];continue;case'5':_0x3af6da[_0x3af6da[_0x227221[_0x34325d(0x15d)]]=0x5]=_0x227221[_0x34325d(0x15d)];continue;case'6':_0x3af6da[_0x3af6da['TEXT']=0x1]=_0x227221[_0x34325d(0x150)];continue;case'7':_0x3af6da[_0x3af6da[_0x227221[_0x34325d(0x15e)]]=0x7]=_0x227221[_0x34325d(0x15e)];continue;case'8':_0x3af6da[_0x3af6da[_0x227221[_0x34325d(0x138)]]=0xa]=_0x227221['pUeey'];continue;}break;}}(ElementType||(ElementType={})));export var PicType;function _0x4f17(){var _0x58b7e8=['gdStK','normal2','claXg','1808800HexZbp','dice','notAt','face','FACE','FILE','SAKWA','PTT','223731rNPwvI','RAtrP','BqkMX','1629925vENkDJ','group','zbxCX','fDTto','igmJl','VLBXy','jpg','kicked','split','2501715biWNNJ','20456600IXLoJH','Npemx','HWrBx','https://multimedia.nt.qq.com.cn','1253524IEESUP','6|0|1|2|5|3|7|8|4','PIC','vAuhP','ban','GpypB','ItuCr','atUser','ZdUZq','normal','UKTCi','FFmPA','RPS','TEXT','atAll','jcrwm','INVITE_NEW_MEMBER','MEMBER_NEW_TITLE','temp','gif','pUeey','MqHsz','IEVRu','https://gchat.qpic.cn','362640ocAwQo','56tWyLwt','memberIncrease','MajTk','REPLY','nmrws','lIcgT','ARK'];_0x4f17=function(){return _0x58b7e8;};return _0x4f17();}(function(_0x45559e){var _0x262798=_0x57e0,_0x2aa9d8={'jcrwm':_0x262798(0x137),'lIcgT':_0x262798(0x158)};_0x45559e[_0x45559e[_0x2aa9d8['jcrwm']]=0x7d0]=_0x2aa9d8[_0x262798(0x133)],_0x45559e[_0x45559e[_0x2aa9d8[_0x262798(0x142)]]=0x3e8]=_0x2aa9d8[_0x262798(0x142)];}(PicType||(PicType={})));export var PicSubType;(function(_0x4846fa){var _0x5edebf=_0x57e0,_0x1a9505={'ItuCr':_0x5edebf(0x14a)};_0x4846fa[_0x4846fa['normal']=0x0]=_0x5edebf(0x12d),_0x4846fa[_0x4846fa[_0x1a9505['ItuCr']]=0x1]=_0x1a9505[_0x5edebf(0x12a)];}(PicSubType||(PicSubType={})));export var AtType;(function(_0x1b1c49){var _0x3823bb=_0x57e0,_0x5319b5={'VglHk':_0x3823bb(0x149),'MajTk':_0x3823bb(0x12b)};_0x1b1c49[_0x1b1c49['notAt']=0x0]=_0x5319b5['VglHk'],_0x1b1c49[_0x1b1c49[_0x3823bb(0x132)]=0x1]='atAll',_0x1b1c49[_0x1b1c49[_0x5319b5[_0x3823bb(0x13f)]]=0x2]=_0x5319b5[_0x3823bb(0x13f)];}(AtType||(AtType={})));export var ChatType;(function(_0x25e6fc){var _0x45d822=_0x57e0,_0x5319eb={'ZdUZq':'friend','VLBXy':_0x45d822(0x153),'vAuhP':_0x45d822(0x136)};_0x25e6fc[_0x25e6fc[_0x5319eb[_0x45d822(0x12c)]]=0x1]=_0x5319eb[_0x45d822(0x12c)],_0x25e6fc[_0x25e6fc[_0x5319eb['VLBXy']]=0x2]=_0x5319eb[_0x45d822(0x157)],_0x25e6fc[_0x25e6fc[_0x5319eb[_0x45d822(0x163)]]=0x64]=_0x5319eb[_0x45d822(0x163)];}(ChatType||(ChatType={})));export const IMAGE_HTTP_HOST=_0x453e61(0x13b);export const IMAGE_HTTP_HOST_NT=_0x453e61(0x15f);export var GrayTipElementSubType;(function(_0x54c951){var _0x7af135=_0x453e61,_0x328c1e={'igmJl':_0x7af135(0x135)};_0x54c951[_0x54c951[_0x7af135(0x134)]=0xc]='INVITE_NEW_MEMBER',_0x54c951[_0x54c951[_0x328c1e[_0x7af135(0x156)]]=0x11]=_0x328c1e[_0x7af135(0x156)];}(GrayTipElementSubType||(GrayTipElementSubType={})));export var FaceType;(function(_0x25136e){var _0x4c0824=_0x453e61,_0x17d3b8={'IEVRu':_0x4c0824(0x12d),'zbxCX':_0x4c0824(0x145),'UKTCi':_0x4c0824(0x148)};_0x25136e[_0x25136e['normal']=0x1]=_0x17d3b8[_0x4c0824(0x13a)],_0x25136e[_0x25136e[_0x17d3b8[_0x4c0824(0x154)]]=0x2]=_0x17d3b8[_0x4c0824(0x154)],_0x25136e[_0x25136e[_0x4c0824(0x148)]=0x3]=_0x17d3b8[_0x4c0824(0x12e)];}(FaceType||(FaceType={})));export var FaceIndex;function _0x57e0(_0x2fa51d,_0x204f45){var _0x4f17b2=_0x4f17();return _0x57e0=function(_0x57e036,_0x4f1ad5){_0x57e036=_0x57e036-0x12a;var _0x19e22c=_0x4f17b2[_0x57e036];return _0x19e22c;},_0x57e0(_0x2fa51d,_0x204f45);}(function(_0x4abbd5){var _0x3546fe=_0x453e61,_0x2d63ae={'MqHsz':_0x3546fe(0x148),'BqkMX':_0x3546fe(0x130)};_0x4abbd5[_0x4abbd5[_0x3546fe(0x148)]=0x166]=_0x2d63ae[_0x3546fe(0x139)],_0x4abbd5[_0x4abbd5[_0x2d63ae[_0x3546fe(0x151)]]=0x167]='RPS';}(FaceIndex||(FaceIndex={})));export var TipGroupElementType;(function(_0x3e7468){var _0x4a1ea9=_0x453e61,_0x568563={'nmrws':'memberIncrease'};_0x3e7468[_0x3e7468[_0x4a1ea9(0x13e)]=0x1]=_0x568563[_0x4a1ea9(0x141)],_0x3e7468[_0x3e7468[_0x4a1ea9(0x159)]=0x3]=_0x4a1ea9(0x159),_0x3e7468[_0x3e7468[_0x4a1ea9(0x164)]=0x8]='ban';}(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 d9eb85fd..89462616 100644 --- a/src/core.lib/src/entities/notify.js +++ b/src/core.lib/src/entities/notify.js @@ -1 +1 @@ -(function(_0x2e848e,_0x329525){var _0x39ae92=_0x1631,_0x2405d9=_0x2e848e();while(!![]){try{var _0x15e37f=parseInt(_0x39ae92(0x103))/0x1+-parseInt(_0x39ae92(0xf4))/0x2*(-parseInt(_0x39ae92(0x100))/0x3)+parseInt(_0x39ae92(0xe7))/0x4+parseInt(_0x39ae92(0x102))/0x5+-parseInt(_0x39ae92(0xeb))/0x6+-parseInt(_0x39ae92(0xfa))/0x7*(parseInt(_0x39ae92(0xe8))/0x8)+parseInt(_0x39ae92(0xf3))/0x9;if(_0x15e37f===_0x329525)break;else _0x2405d9['push'](_0x2405d9['shift']());}catch(_0x58203a){_0x2405d9['push'](_0x2405d9['shift']());}}}(_0x2465,0xca87a));export var GroupNotifyTypes;(function(_0x298cf0){var _0x288d95=_0x1631,_0x46f981={'XJlXn':_0x288d95(0xf0),'ESbxY':'INVITED_JOIN','AKalQ':_0x288d95(0xff),'ZgWxB':_0x288d95(0xf1),'uSMfR':_0x288d95(0xfb),'VenYZ':_0x288d95(0xed)};_0x298cf0[_0x298cf0[_0x288d95(0xf0)]=0x1]=_0x46f981[_0x288d95(0x101)],_0x298cf0[_0x298cf0[_0x46f981[_0x288d95(0xea)]]=0x4]=_0x46f981[_0x288d95(0xea)],_0x298cf0[_0x298cf0[_0x46f981[_0x288d95(0xe5)]]=0x7]=_0x46f981[_0x288d95(0xe5)],_0x298cf0[_0x298cf0[_0x288d95(0xf1)]=0x8]=_0x46f981[_0x288d95(0xf2)],_0x298cf0[_0x298cf0[_0x46f981[_0x288d95(0xfe)]]=0x9]=_0x288d95(0xfb),_0x298cf0[_0x298cf0[_0x288d95(0xed)]=0xb]=_0x46f981['VenYZ'],_0x298cf0[_0x298cf0['ADMIN_UNSET']=0xc]=_0x288d95(0xf9);}(GroupNotifyTypes||(GroupNotifyTypes={})));function _0x1631(_0x30a62f,_0x367209){var _0x246596=_0x2465();return _0x1631=function(_0x163111,_0x4afeee){_0x163111=_0x163111-0xe4;var _0x21d344=_0x246596[_0x163111];return _0x21d344;},_0x1631(_0x30a62f,_0x367209);}export var GroupNotifyStatus;(function(_0x4a657b){var _0xc0d196=_0x1631,_0x320a0b={'HHQgi':_0xc0d196(0xec),'uxdKL':_0xc0d196(0xfd),'WUtzp':_0xc0d196(0xf6),'atqwt':_0xc0d196(0xfc)};_0x4a657b[_0x4a657b[_0x320a0b[_0xc0d196(0xef)]]=0x0]=_0x320a0b['HHQgi'],_0x4a657b[_0x4a657b[_0x320a0b[_0xc0d196(0xe4)]]=0x1]=_0x320a0b[_0xc0d196(0xe4)],_0x4a657b[_0x4a657b[_0x320a0b['WUtzp']]=0x2]=_0x320a0b[_0xc0d196(0xf7)],_0x4a657b[_0x4a657b[_0x320a0b[_0xc0d196(0xe9)]]=0x3]=_0x320a0b[_0xc0d196(0xe9)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;(function(_0x213ca5){var _0x3e47d4=_0x1631,_0x48f687={'EonoM':_0x3e47d4(0xe6),'TuyyA':_0x3e47d4(0xf8)};_0x213ca5[_0x213ca5[_0x48f687[_0x3e47d4(0xee)]]=0x1]='approve',_0x213ca5[_0x213ca5[_0x48f687[_0x3e47d4(0xf5)]]=0x2]=_0x48f687[_0x3e47d4(0xf5)];}(GroupRequestOperateTypes||(GroupRequestOperateTypes={})));function _0x2465(){var _0x4f8077=['1447376HxxBIe','atqwt','ESbxY','1684734bbnMZj','IGNORE','MEMBER_EXIT','EonoM','HHQgi','INVITE_ME','ADMIN_SET','ZgWxB','5046912HdTkmV','4754ypJFkq','TuyyA','APPROVE','WUtzp','reject','ADMIN_UNSET','49NKCDow','KICK_MEMBER','REJECT','WAIT_HANDLE','uSMfR','JOIN_REQUEST','57RxwiOf','XJlXn','1728385tduPVg','820925OGPHTe','uxdKL','AKalQ','approve','2417088SVBVuI'];_0x2465=function(){return _0x4f8077;};return _0x2465();} \ No newline at end of file +(function(_0x1608bd,_0x143667){var _0x4a0405=_0x1005,_0x20333f=_0x1608bd();while(!![]){try{var _0x4a6ede=-parseInt(_0x4a0405(0x19a))/0x1+-parseInt(_0x4a0405(0x1aa))/0x2+parseInt(_0x4a0405(0x1ac))/0x3*(parseInt(_0x4a0405(0x1a2))/0x4)+parseInt(_0x4a0405(0x1a3))/0x5+parseInt(_0x4a0405(0x1b1))/0x6*(-parseInt(_0x4a0405(0x19c))/0x7)+parseInt(_0x4a0405(0x1a4))/0x8+-parseInt(_0x4a0405(0x1a0))/0x9;if(_0x4a6ede===_0x143667)break;else _0x20333f['push'](_0x20333f['shift']());}catch(_0x32746b){_0x20333f['push'](_0x20333f['shift']());}}}(_0x5a69,0x5bd3a));export var GroupNotifyTypes;(function(_0x4135b7){var _0x56712f=_0x1005,_0x4db484={'xpEqW':_0x56712f(0x199),'GSlII':_0x56712f(0x1ad),'xQDXs':_0x56712f(0x1a6),'mwncn':'ADMIN_SET','QSBDN':'KICK_MEMBER','VZshY':_0x56712f(0x198),'BMQHe':_0x56712f(0x19d)};_0x4135b7[_0x4135b7[_0x56712f(0x199)]=0x1]=_0x4db484[_0x56712f(0x1a8)],_0x4135b7[_0x4135b7[_0x4db484['GSlII']]=0x4]=_0x4db484[_0x56712f(0x1ab)],_0x4135b7[_0x4135b7[_0x4db484[_0x56712f(0x1b0)]]=0x7]=_0x56712f(0x1a6),_0x4135b7[_0x4135b7[_0x4db484[_0x56712f(0x19e)]]=0x8]=_0x4db484[_0x56712f(0x19e)],_0x4135b7[_0x4135b7[_0x4db484[_0x56712f(0x19f)]]=0x9]=_0x4db484[_0x56712f(0x19f)],_0x4135b7[_0x4135b7[_0x4db484[_0x56712f(0x1ae)]]=0xb]=_0x4db484['VZshY'],_0x4135b7[_0x4135b7[_0x4db484['BMQHe']]=0xc]=_0x4db484[_0x56712f(0x1a1)];}(GroupNotifyTypes||(GroupNotifyTypes={})));export var GroupNotifyStatus;function _0x1005(_0x127c07,_0x499818){var _0x5a6904=_0x5a69();return _0x1005=function(_0x1005d4,_0x342a76){_0x1005d4=_0x1005d4-0x197;var _0x427b95=_0x5a6904[_0x1005d4];return _0x427b95;},_0x1005(_0x127c07,_0x499818);}(function(_0x4adf2d){var _0x20b1a6=_0x1005,_0x3d4799={'YTOKz':_0x20b1a6(0x1a7),'ppsax':'WAIT_HANDLE','hdyQt':'APPROVE','DlrQa':_0x20b1a6(0x1b2)};_0x4adf2d[_0x4adf2d[_0x20b1a6(0x1a7)]=0x0]=_0x3d4799['YTOKz'],_0x4adf2d[_0x4adf2d[_0x3d4799[_0x20b1a6(0x197)]]=0x1]=_0x3d4799[_0x20b1a6(0x197)],_0x4adf2d[_0x4adf2d[_0x3d4799[_0x20b1a6(0x1a5)]]=0x2]=_0x3d4799[_0x20b1a6(0x1a5)],_0x4adf2d[_0x4adf2d[_0x3d4799[_0x20b1a6(0x1af)]]=0x3]=_0x3d4799[_0x20b1a6(0x1af)];}(GroupNotifyStatus||(GroupNotifyStatus={})));export var GroupRequestOperateTypes;function _0x5a69(){var _0x25f410=['QSBDN','766386CkBVyR','BMQHe','8356DBWzAg','503705yWypJt','5534760nNvCqx','hdyQt','JOIN_REQUEST','IGNORE','xpEqW','aEoSC','1053480RgwFrL','GSlII','711VKhAsL','INVITED_JOIN','VZshY','DlrQa','xQDXs','53142OUrFaB','REJECT','ppsax','MEMBER_EXIT','INVITE_ME','219950ayNPAI','approve','63eVmUWu','ADMIN_UNSET','mwncn'];_0x5a69=function(){return _0x25f410;};return _0x5a69();}(function(_0x1ef02f){var _0x28ec1e=_0x1005,_0x31dfdf={'aEoSC':'approve','ziRCF':'reject'};_0x1ef02f[_0x1ef02f[_0x31dfdf[_0x28ec1e(0x1a9)]]=0x1]=_0x28ec1e(0x19b),_0x1ef02f[_0x1ef02f['reject']=0x2]=_0x31dfdf['ziRCF'];}(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 8cf37697..879c7aee 100644 --- a/src/core.lib/src/entities/user.js +++ b/src/core.lib/src/entities/user.js @@ -1 +1 @@ -function _0x16c1(_0x5776b9,_0x5e236e){var _0x15ed12=_0x15ed();return _0x16c1=function(_0x16c1c1,_0xd12bb8){_0x16c1c1=_0x16c1c1-0xd3;var _0x4c8413=_0x15ed12[_0x16c1c1];return _0x4c8413;},_0x16c1(_0x5776b9,_0x5e236e);}(function(_0x3d0145,_0x371e4b){var _0x572981=_0x16c1,_0x89c393=_0x3d0145();while(!![]){try{var _0x5497ef=parseInt(_0x572981(0xe0))/0x1+parseInt(_0x572981(0xd5))/0x2*(parseInt(_0x572981(0xe2))/0x3)+parseInt(_0x572981(0xd3))/0x4*(-parseInt(_0x572981(0xdc))/0x5)+parseInt(_0x572981(0xe1))/0x6*(parseInt(_0x572981(0xdf))/0x7)+parseInt(_0x572981(0xd7))/0x8*(-parseInt(_0x572981(0xd6))/0x9)+-parseInt(_0x572981(0xdd))/0xa*(parseInt(_0x572981(0xdb))/0xb)+parseInt(_0x572981(0xe3))/0xc;if(_0x5497ef===_0x371e4b)break;else _0x89c393['push'](_0x89c393['shift']());}catch(_0x2e8305){_0x89c393['push'](_0x89c393['shift']());}}}(_0x15ed,0xe0b23));function _0x15ed(){var _0x365142=['2820918QKHPpQ','3XvShbw','6848520vRuBxq','unknown','148dmmTLd','male','3439406mLUZWf','13383Uijxay','4376rCqMYo','tQFbQ','female','QNVOa','821150TMycKG','188000yBtXnV','80MviRRJ','ZHllI','7VwzQTn','961578pTjAdF'];_0x15ed=function(){return _0x365142;};return _0x15ed();}export var Sex;(function(_0x20406c){var _0x2b1eeb=_0x16c1,_0x27d9bf={'tQFbQ':_0x2b1eeb(0xd4),'ZHllI':'female','QNVOa':_0x2b1eeb(0xe4)};_0x20406c[_0x20406c[_0x2b1eeb(0xd4)]=0x1]=_0x27d9bf[_0x2b1eeb(0xd8)],_0x20406c[_0x20406c[_0x2b1eeb(0xd9)]=0x2]=_0x27d9bf[_0x2b1eeb(0xde)],_0x20406c[_0x20406c[_0x27d9bf['QNVOa']]=0xff]=_0x27d9bf[_0x2b1eeb(0xda)];}(Sex||(Sex={}))); \ No newline at end of file +function _0x745a(){var _0x3739a7=['unknown','944356wyvpNT','18ZVZrMl','3775976PTNFpW','female','58611eCeECf','4416731gcEyDV','715886ShCwFC','JZPvb','4880480tpNQNM','90MMVrOZ','2EJKPaD','bkLLn','4486422KsBcIF','male','204HVAUgI'];_0x745a=function(){return _0x3739a7;};return _0x745a();}function _0x3547(_0x58e202,_0x21de7b){var _0x745a3b=_0x745a();return _0x3547=function(_0x354745,_0x247995){_0x354745=_0x354745-0x19a;var _0x5f102b=_0x745a3b[_0x354745];return _0x5f102b;},_0x3547(_0x58e202,_0x21de7b);}(function(_0x23e1ee,_0x16bc8b){var _0x2ce79e=_0x3547,_0x9103b5=_0x23e1ee();while(!![]){try{var _0x1bd0ed=-parseInt(_0x2ce79e(0x1a7))/0x1+parseInt(_0x2ce79e(0x19b))/0x2*(-parseInt(_0x2ce79e(0x19d))/0x3)+-parseInt(_0x2ce79e(0x1a1))/0x4+-parseInt(_0x2ce79e(0x1a9))/0x5+parseInt(_0x2ce79e(0x19f))/0x6*(-parseInt(_0x2ce79e(0x1a5))/0x7)+parseInt(_0x2ce79e(0x1a3))/0x8*(parseInt(_0x2ce79e(0x1a2))/0x9)+parseInt(_0x2ce79e(0x19a))/0xa*(parseInt(_0x2ce79e(0x1a6))/0xb);if(_0x1bd0ed===_0x16bc8b)break;else _0x9103b5['push'](_0x9103b5['shift']());}catch(_0x15a4a1){_0x9103b5['push'](_0x9103b5['shift']());}}}(_0x745a,0xcf630));export var Sex;(function(_0x385734){var _0x1252de=_0x3547,_0x10001c={'bkLLn':_0x1252de(0x19e),'JZPvb':_0x1252de(0x1a4)};_0x385734[_0x385734[_0x10001c[_0x1252de(0x19c)]]=0x1]=_0x10001c[_0x1252de(0x19c)],_0x385734[_0x385734[_0x10001c[_0x1252de(0x1a8)]]=0x2]=_0x10001c['JZPvb'],_0x385734[_0x385734[_0x1252de(0x1a0)]=0xff]=_0x1252de(0x1a0);}(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 f5a47c89..aaed12d3 100644 --- a/src/core.lib/src/external/hook.js +++ b/src/core.lib/src/external/hook.js @@ -1 +1 @@ -function _0x269d(){const _0x256ca2=['erkna','./MoeHoo.node','2257088llqdBo','18454EmdwAF','moeHook','655440GLURKS','加载\x20moehoo\x20失败','HookRkey','25713QQJmeW','3896830gnSHxd','935145cxmXVW','getRKey','hImUo','5mMMPpf','2aLDyHm','isAvailable','1882048hInMOp','1832IaDyEd','loMXg','MoeHoo'];_0x269d=function(){return _0x256ca2;};return _0x269d();}const _0x54d27a=_0x4e8a;(function(_0x5f1f4d,_0x9e7f80){const _0x367390=_0x4e8a,_0x405426=_0x5f1f4d();while(!![]){try{const _0xb82360=-parseInt(_0x367390(0x159))/0x1*(parseInt(_0x367390(0x150))/0x2)+parseInt(_0x367390(0x14c))/0x3+-parseInt(_0x367390(0x158))/0x4+-parseInt(_0x367390(0x14f))/0x5*(-parseInt(_0x367390(0x15b))/0x6)+parseInt(_0x367390(0x152))/0x7+parseInt(_0x367390(0x153))/0x8*(parseInt(_0x367390(0x14a))/0x9)+-parseInt(_0x367390(0x14b))/0xa;if(_0xb82360===_0x9e7f80)break;else _0x405426['push'](_0x405426['shift']());}catch(_0x2c820a){_0x405426['push'](_0x405426['shift']());}}}(_0x269d,0x5abcf));import{logError}from'@/common/utils/log';import{cpModule}from'@/common/utils/cpmodule';class HookApi{[_0x54d27a(0x15a)]=null;constructor(){const _0x45a960=_0x54d27a,_0x239356={'erkna':_0x45a960(0x155),'hImUo':function(_0x1172cf,_0x2bb739){return _0x1172cf(_0x2bb739);},'loMXg':_0x45a960(0x157),'YumLF':function(_0x2e38fa,_0x5843dd,_0x140e2d){return _0x2e38fa(_0x5843dd,_0x140e2d);}};try{cpModule(_0x239356[_0x45a960(0x156)]),this[_0x45a960(0x15a)]=_0x239356[_0x45a960(0x14e)](require,_0x239356[_0x45a960(0x154)]),this[_0x45a960(0x15a)][_0x45a960(0x149)]();}catch(_0x3c9e8b){_0x239356['YumLF'](logError,_0x45a960(0x15c),_0x3c9e8b);}}[_0x54d27a(0x14d)](){const _0x59b38d=_0x54d27a;return this[_0x59b38d(0x15a)]?.['GetRkey']()||'';}[_0x54d27a(0x151)](){const _0x93ad15=_0x54d27a;return!!this[_0x93ad15(0x15a)];}}function _0x4e8a(_0xbabd3f,_0x185c64){const _0x269d17=_0x269d();return _0x4e8a=function(_0x4e8a47,_0x3def6c){_0x4e8a47=_0x4e8a47-0x149;let _0x95288c=_0x269d17[_0x4e8a47];return _0x95288c;},_0x4e8a(_0xbabd3f,_0x185c64);}export const hookApi=new HookApi(); \ No newline at end of file +const _0xb7bb6f=_0x3656;function _0x11b5(){const _0x3e105f=['MoeHoo','./MoeHoo.node','5397112iSaWfl','7jTaxzL','231HbkzoM','6062130NUfEiO','35455284xjhTNR','NrUMm','49870DpsqOU','442554tmvOaG','isAvailable','362116FoUDck','QVSEu','qtHUv','36ruHIxQ','2005928crnZDC','VvDCC','getRKey','55KkXNCm','HookRkey','1AvWEok','moeHook'];_0x11b5=function(){return _0x3e105f;};return _0x11b5();}(function(_0x3b313c,_0x45772a){const _0x5038aa=_0x3656,_0x27b627=_0x3b313c();while(!![]){try{const _0x83d516=-parseInt(_0x5038aa(0xe6))/0x1*(-parseInt(_0x5038aa(0xe1))/0x2)+-parseInt(_0x5038aa(0xe0))/0x3*(parseInt(_0x5038aa(0xdd))/0x4)+-parseInt(_0x5038aa(0xe4))/0x5*(parseInt(_0x5038aa(0xdb))/0x6)+-parseInt(_0x5038aa(0xd5))/0x7*(parseInt(_0x5038aa(0xd4))/0x8)+-parseInt(_0x5038aa(0xd7))/0x9+-parseInt(_0x5038aa(0xda))/0xa*(parseInt(_0x5038aa(0xd6))/0xb)+parseInt(_0x5038aa(0xd8))/0xc;if(_0x83d516===_0x45772a)break;else _0x27b627['push'](_0x27b627['shift']());}catch(_0x59b0e6){_0x27b627['push'](_0x27b627['shift']());}}}(_0x11b5,0x942da));import{logError}from'@/common/utils/log';function _0x3656(_0x47bfd2,_0x557357){const _0x11b581=_0x11b5();return _0x3656=function(_0x3656b5,_0x445bfd){_0x3656b5=_0x3656b5-0xd4;let _0x24cedf=_0x11b581[_0x3656b5];return _0x24cedf;},_0x3656(_0x47bfd2,_0x557357);}import{cpModule}from'@/common/utils/cpmodule';class HookApi{[_0xb7bb6f(0xe7)]=null;constructor(){const _0x4e4a06=_0xb7bb6f,_0x244463={'NrUMm':function(_0x48226f,_0x4531c5){return _0x48226f(_0x4531c5);},'qtHUv':_0x4e4a06(0xe8),'CzEih':function(_0x2b86b7,_0x4a06de){return _0x2b86b7(_0x4a06de);},'QVSEu':_0x4e4a06(0xe9),'VvDCC':function(_0x4ba46b,_0x38f069,_0x1900f3){return _0x4ba46b(_0x38f069,_0x1900f3);}};try{_0x244463[_0x4e4a06(0xd9)](cpModule,_0x244463[_0x4e4a06(0xdf)]),this['moeHook']=_0x244463['CzEih'](require,_0x244463[_0x4e4a06(0xde)]),this['moeHook'][_0x4e4a06(0xe5)]();}catch(_0x495e1a){_0x244463[_0x4e4a06(0xe2)](logError,'加载\x20moehoo\x20失败',_0x495e1a);}}[_0xb7bb6f(0xe3)](){return this['moeHook']?.['GetRkey']()||'';}[_0xb7bb6f(0xdc)](){return!!this['moeHook'];}}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 c93a6b8e..eb242cc2 100644 --- a/src/core.lib/src/index.js +++ b/src/core.lib/src/index.js @@ -1 +1 @@ -function _0x563d(){var _0x4fe3a5=['7679371MDRSwJ','9ftwDfA','8RlwGSP','2501022efVyRG','1510999MtyRiH','4Yhjnth','12148100GJxjhB','3753380OxRwMt','2909094KgpFNI','6767058hOolId'];_0x563d=function(){return _0x4fe3a5;};return _0x563d();}(function(_0x4442d2,_0x4fecab){var _0x453a81=_0x4903,_0x4ef078=_0x4442d2();while(!![]){try{var _0x146592=-parseInt(_0x453a81(0x91))/0x1+parseInt(_0x453a81(0x90))/0x2+-parseInt(_0x453a81(0x8b))/0x3*(parseInt(_0x453a81(0x88))/0x4)+parseInt(_0x453a81(0x8a))/0x5+parseInt(_0x453a81(0x8c))/0x6+-parseInt(_0x453a81(0x8d))/0x7*(parseInt(_0x453a81(0x8f))/0x8)+parseInt(_0x453a81(0x8e))/0x9*(parseInt(_0x453a81(0x89))/0xa);if(_0x146592===_0x4fecab)break;else _0x4ef078['push'](_0x4ef078['shift']());}catch(_0x326062){_0x4ef078['push'](_0x4ef078['shift']());}}}(_0x563d,0xbb08a));import _0x5ccfed from'./wrapper';export*from'./adapters';function _0x4903(_0x41b61,_0x32dfcc){var _0x563d19=_0x563d();return _0x4903=function(_0x4903bf,_0xe95c38){_0x4903bf=_0x4903bf-0x88;var _0x189796=_0x563d19[_0x4903bf];return _0x189796;},_0x4903(_0x41b61,_0x32dfcc);}export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';export{_0x5ccfed as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core'; \ No newline at end of file +(function(_0x39bff6,_0x4c7f47){var _0x4468a4=_0x42de,_0x476371=_0x39bff6();while(!![]){try{var _0x48115d=parseInt(_0x4468a4(0x147))/0x1+-parseInt(_0x4468a4(0x13e))/0x2*(parseInt(_0x4468a4(0x148))/0x3)+-parseInt(_0x4468a4(0x145))/0x4*(-parseInt(_0x4468a4(0x146))/0x5)+-parseInt(_0x4468a4(0x141))/0x6+-parseInt(_0x4468a4(0x143))/0x7*(-parseInt(_0x4468a4(0x13d))/0x8)+-parseInt(_0x4468a4(0x142))/0x9*(-parseInt(_0x4468a4(0x140))/0xa)+-parseInt(_0x4468a4(0x144))/0xb*(-parseInt(_0x4468a4(0x13f))/0xc);if(_0x48115d===_0x4c7f47)break;else _0x476371['push'](_0x476371['shift']());}catch(_0x48be48){_0x476371['push'](_0x476371['shift']());}}}(_0x3383,0x244c4));import _0x5a41b9 from'./wrapper';export*from'./adapters';export*from'./apis';export*from'./entities';export*from'./listeners';export*from'./services';export*as Adapters from'./adapters';export*as APIs from'./apis';export*as Entities from'./entities';export*as Listeners from'./listeners';export*as Services from'./services';function _0x42de(_0x34f6a1,_0x1969d0){var _0x33839e=_0x3383();return _0x42de=function(_0x42dea0,_0x3c5458){_0x42dea0=_0x42dea0-0x13d;var _0xcef0e4=_0x33839e[_0x42dea0];return _0xcef0e4;},_0x42de(_0x34f6a1,_0x1969d0);}export{_0x5a41b9 as Wrapper};export*as WrapperInterface from'./wrapper';export*as SessionConfig from'./sessionConfig';export{napCatCore}from'./core';function _0x3383(){var _0x12468a=['528878rBDhCZ','3019148oERbLk','1072SPqYHu','500cIzRpD','162CPriDl','9CqlrPV','24HUrfQp','180806Bzatql','12mQYpDa','224530ulphDl','1322832oJThyl','45zcMnqD'];_0x3383=function(){return _0x12468a;};return _0x3383();} \ 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 592825fc..671c4733 100644 --- a/src/core.lib/src/listeners/NodeIKernelBuddyListener.js +++ b/src/core.lib/src/listeners/NodeIKernelBuddyListener.js @@ -1 +1 @@ -function _0x12a5(_0x3fe0f7,_0x29a2bf){var _0x23a591=_0x23a5();return _0x12a5=function(_0x12a586,_0xa00828){_0x12a586=_0x12a586-0xae;var _0x4c0ecd=_0x23a591[_0x12a586];return _0x4c0ecd;},_0x12a5(_0x3fe0f7,_0x29a2bf);}var _0x59002a=_0x12a5;(function(_0x1246a5,_0x16961c){var _0x191c17=_0x12a5,_0x18e156=_0x1246a5();while(!![]){try{var _0x358ec2=parseInt(_0x191c17(0xbd))/0x1*(parseInt(_0x191c17(0xae))/0x2)+parseInt(_0x191c17(0xb3))/0x3*(parseInt(_0x191c17(0xb0))/0x4)+-parseInt(_0x191c17(0xc2))/0x5*(-parseInt(_0x191c17(0xb2))/0x6)+-parseInt(_0x191c17(0xc0))/0x7+-parseInt(_0x191c17(0xc1))/0x8+-parseInt(_0x191c17(0xb6))/0x9*(-parseInt(_0x191c17(0xb9))/0xa)+-parseInt(_0x191c17(0xc3))/0xb;if(_0x358ec2===_0x16961c)break;else _0x18e156['push'](_0x18e156['shift']());}catch(_0x52c3a8){_0x18e156['push'](_0x18e156['shift']());}}}(_0x23a5,0x3dda1));export class BuddyListener{['onAddBuddyNeedVerify'](_0x3810fd){}[_0x59002a(0xb8)](_0x4a0c90){}['onAvatarUrlUpdated'](_0x5544df){}[_0x59002a(0xbf)](_0x5b955e){}['onBuddyDetailInfoChange'](_0x4a157e){}[_0x59002a(0xb7)](_0x230250){}[_0x59002a(0xbb)](_0x53c69b){}[_0x59002a(0xba)](_0x3eea6e){}[_0x59002a(0xc4)](_0x3226c3){}[_0x59002a(0xb4)](_0x308625){}[_0x59002a(0xbe)](_0x51539b){}[_0x59002a(0xb5)](_0x24228e){}['onDoubtBuddyReqChange'](_0x37c4bf){}[_0x59002a(0xbc)](_0x2ed7c4){}['onNickUpdated'](_0x51be46){}[_0x59002a(0xaf)](_0x186ea5){}[_0x59002a(0xb1)](_0x5781a5){}}function _0x23a5(){var _0x452fa0=['onDelBatchBuddyInfos','819EHgAid','onBuddyInfoChange','onAddMeSettingChanged','50380QgTKvN','onBuddyRemarkUpdated','onBuddyListChange','onDoubtBuddyReqUnreadNumChange','9751UGbKIB','onCheckBuddySettingResult','onBlockChanged','2600549ZcHCkz','1489248pexMXt','685PdpGCY','2410595QMRquS','onBuddyReqChange','14KsNPfS','onSmartInfos','636628LACiZb','onSpacePermissionInfos','15078euHOAZ','3rMLztO','onBuddyReqUnreadCntChange'];_0x23a5=function(){return _0x452fa0;};return _0x23a5();} \ No newline at end of file +var _0x5a07ee=_0x1b95;function _0x1b95(_0x3643e4,_0x5e1579){var _0x2ce457=_0x2ce4();return _0x1b95=function(_0x1b95e1,_0x14faa1){_0x1b95e1=_0x1b95e1-0x1b9;var _0x4281df=_0x2ce457[_0x1b95e1];return _0x4281df;},_0x1b95(_0x3643e4,_0x5e1579);}function _0x2ce4(){var _0x390a9e=['onBuddyInfoChange','onBlockChanged','onSpacePermissionInfos','onBuddyReqUnreadCntChange','698793zoJRSq','670NpYdmr','1234872wYcWcl','onAddMeSettingChanged','onBuddyListChange','onNickUpdated','onAvatarUrlUpdated','onDoubtBuddyReqChange','onCheckBuddySettingResult','10738056lDBlBj','42155806gThVqN','onSmartInfos','87678RQccNV','12lsHprd','103187GRhWrv','onDelBatchBuddyInfos','1LzqiYH','2407198vEIbEK','onBuddyDetailInfoChange','5gkSOmP'];_0x2ce4=function(){return _0x390a9e;};return _0x2ce4();}(function(_0xe6b788,_0x399f77){var _0xeafc01=_0x1b95,_0x420c93=_0xe6b788();while(!![]){try{var _0xe310e5=parseInt(_0xeafc01(0x1ba))/0x1*(-parseInt(_0xeafc01(0x1bb))/0x2)+-parseInt(_0xeafc01(0x1c2))/0x3+parseInt(_0xeafc01(0x1c4))/0x4*(parseInt(_0xeafc01(0x1bd))/0x5)+-parseInt(_0xeafc01(0x1cf))/0x6*(parseInt(_0xeafc01(0x1d0))/0x7)+-parseInt(_0xeafc01(0x1cb))/0x8+parseInt(_0xeafc01(0x1ce))/0x9*(-parseInt(_0xeafc01(0x1c3))/0xa)+parseInt(_0xeafc01(0x1cc))/0xb;if(_0xe310e5===_0x399f77)break;else _0x420c93['push'](_0x420c93['shift']());}catch(_0x1b28ef){_0x420c93['push'](_0x420c93['shift']());}}}(_0x2ce4,0xa6091));export class BuddyListener{['onAddBuddyNeedVerify'](_0x1248da){}[_0x5a07ee(0x1c5)](_0x1583b6){}[_0x5a07ee(0x1c8)](_0x28f595){}[_0x5a07ee(0x1bf)](_0x105927){}[_0x5a07ee(0x1bc)](_0x2b34ed){}[_0x5a07ee(0x1be)](_0x137f1b){}[_0x5a07ee(0x1c6)](_0x3dfb74){}['onBuddyRemarkUpdated'](_0x237971){}['onBuddyReqChange'](_0x204e55){}[_0x5a07ee(0x1c1)](_0xcd6f20){}[_0x5a07ee(0x1ca)](_0x8a0048){}[_0x5a07ee(0x1b9)](_0x2f7786){}[_0x5a07ee(0x1c9)](_0x14f9dd){}['onDoubtBuddyReqUnreadNumChange'](_0x36721a){}[_0x5a07ee(0x1c7)](_0x18865c){}[_0x5a07ee(0x1cd)](_0x488b31){}[_0x5a07ee(0x1c0)](_0x3b290a){}} \ 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 3eebe66d..95139c9b 100644 --- a/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js +++ b/src/core.lib/src/listeners/NodeIKernelFileAssistantListener.js @@ -1 +1 @@ -var _0x1f4e80=_0x22e2;(function(_0x1ce2ae,_0x1faf4c){var _0x3734f7=_0x22e2,_0x486078=_0x1ce2ae();while(!![]){try{var _0x594ac0=parseInt(_0x3734f7(0x1b3))/0x1*(parseInt(_0x3734f7(0x1c0))/0x2)+parseInt(_0x3734f7(0x1ba))/0x3*(-parseInt(_0x3734f7(0x1b4))/0x4)+parseInt(_0x3734f7(0x1bf))/0x5*(parseInt(_0x3734f7(0x1b6))/0x6)+-parseInt(_0x3734f7(0x1c2))/0x7*(-parseInt(_0x3734f7(0x1bc))/0x8)+parseInt(_0x3734f7(0x1b7))/0x9*(parseInt(_0x3734f7(0x1b5))/0xa)+-parseInt(_0x3734f7(0x1be))/0xb+-parseInt(_0x3734f7(0x1bd))/0xc;if(_0x594ac0===_0x1faf4c)break;else _0x486078['push'](_0x486078['shift']());}catch(_0x2eaa8d){_0x486078['push'](_0x486078['shift']());}}}(_0x55a2,0x8b61d));function _0x55a2(){var _0x27ccff=['54218Plithf','onFileStatusChanged','17045oRDwUq','onFileSearch','15fkNkif','2040868hBaFDC','162250QJvDxr','6JrDAke','459iAiUxs','onFileListChanged','onSessionListChanged','3zLCrZz','onSessionChanged','248UxtIya','3007788ixMSJl','2790601YyDqnw','1379355LUdFSd'];_0x55a2=function(){return _0x27ccff;};return _0x55a2();}function _0x22e2(_0x554954,_0x24fcc1){var _0x55a27b=_0x55a2();return _0x22e2=function(_0x22e2bf,_0x18cb2a){_0x22e2bf=_0x22e2bf-0x1b3;var _0x16c315=_0x55a27b[_0x22e2bf];return _0x16c315;},_0x22e2(_0x554954,_0x24fcc1);}export class KernelFileAssistantListener{[_0x1f4e80(0x1c1)](..._0x59b9e3){}[_0x1f4e80(0x1b9)](..._0x21f9b6){}[_0x1f4e80(0x1bb)](..._0x2b2c8f){}[_0x1f4e80(0x1b8)](..._0x1cd059){}[_0x1f4e80(0x1c3)](..._0xd1ce8e){}} \ No newline at end of file +function _0x5467(_0x26c939,_0x276957){var _0x1d020a=_0x1d02();return _0x5467=function(_0x54676e,_0x5cca81){_0x54676e=_0x54676e-0x1cc;var _0x1e145d=_0x1d020a[_0x54676e];return _0x1e145d;},_0x5467(_0x26c939,_0x276957);}function _0x1d02(){var _0x160f2c=['13828180GUZLBR','828314QxCynn','onFileStatusChanged','315uVThkC','13524vKmsBV','1984125WvQfAA','18ISwFDc','893392lULNHF','onSessionListChanged','12tKdhwO','onFileSearch','167694txZSLD','206192wVSeNE'];_0x1d02=function(){return _0x160f2c;};return _0x1d02();}var _0x36ce3e=_0x5467;(function(_0x11b062,_0x312ce7){var _0x3d74e5=_0x5467,_0x5c401a=_0x11b062();while(!![]){try{var _0x92e772=-parseInt(_0x3d74e5(0x1cd))/0x1+-parseInt(_0x3d74e5(0x1cf))/0x2+parseInt(_0x3d74e5(0x1cc))/0x3*(parseInt(_0x3d74e5(0x1d7))/0x4)+-parseInt(_0x3d74e5(0x1d3))/0x5+parseInt(_0x3d74e5(0x1d2))/0x6*(-parseInt(_0x3d74e5(0x1d1))/0x7)+-parseInt(_0x3d74e5(0x1d5))/0x8*(parseInt(_0x3d74e5(0x1d4))/0x9)+parseInt(_0x3d74e5(0x1ce))/0xa;if(_0x92e772===_0x312ce7)break;else _0x5c401a['push'](_0x5c401a['shift']());}catch(_0x288ba5){_0x5c401a['push'](_0x5c401a['shift']());}}}(_0x1d02,0x32eb0));export class KernelFileAssistantListener{[_0x36ce3e(0x1d0)](..._0x5e8f51){}[_0x36ce3e(0x1d6)](..._0x313f5d){}['onSessionChanged'](..._0x14ac86){}['onFileListChanged'](..._0x2a5f59){}[_0x36ce3e(0x1d8)](..._0x33d070){}} \ 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 39153548..cb752596 100644 --- a/src/core.lib/src/listeners/NodeIKernelGroupListener.js +++ b/src/core.lib/src/listeners/NodeIKernelGroupListener.js @@ -1 +1 @@ -var _0x3f471f=_0x1112;function _0x1112(_0x6cd6fe,_0x4f8140){var _0x2d61d8=_0x2d61();return _0x1112=function(_0x11120d,_0x5f5131){_0x11120d=_0x11120d-0x10a;var _0x49361a=_0x2d61d8[_0x11120d];return _0x49361a;},_0x1112(_0x6cd6fe,_0x4f8140);}(function(_0x1a4672,_0x4f7dd0){var _0x5401a2=_0x1112,_0x5302a0=_0x1a4672();while(!![]){try{var _0x352f0a=-parseInt(_0x5401a2(0x11c))/0x1+parseInt(_0x5401a2(0x138))/0x2*(-parseInt(_0x5401a2(0x11d))/0x3)+-parseInt(_0x5401a2(0x10e))/0x4*(-parseInt(_0x5401a2(0x11e))/0x5)+parseInt(_0x5401a2(0x139))/0x6+parseInt(_0x5401a2(0x111))/0x7+parseInt(_0x5401a2(0x113))/0x8*(parseInt(_0x5401a2(0x12a))/0x9)+parseInt(_0x5401a2(0x12b))/0xa;if(_0x352f0a===_0x4f7dd0)break;else _0x5302a0['push'](_0x5302a0['shift']());}catch(_0x3f4491){_0x5302a0['push'](_0x5302a0['shift']());}}}(_0x2d61,0x493d8));function _0x2d61(){var _0x5b4509=['yHWdC','BUvPb','onGroupDetailInfoChange','onGroupBulletinRichMediaDownloadComplete','onGroupConfMemberChange','onMemberListChange:','onGroupBulletinRemindNotify','onGroupFirstBulletinNotify','onGroupStatisticInfoChange','Evxwm','onGroupMemberLevelInfoChange','onGroupAllInfoChange','onMemberListChange','VswDt','271436wpVyYe','onJoinGroupNotify','onSearchMemberChange','1837563CjAgRW','onGroupListUpdate','620344lcPdBg','CczCk','onGetGroupBulletinListResult:','onGroupsMsgMaskResult','PFSkW','onMemberInfoChange:','onGroupStatisticInfoChange:','onGroupBulletinChange','onGroupMemberLevelInfoChange:','103218tLOMRC','3ohWKJg','25ahsPSr','iZijB','DJpmQ','onGroupsMsgMaskResult:','onGroupFirstBulletinNotify:','mcWqx','eRpzS','onShutUpMemberListChanged:','onGroupConfMemberChange:','onJoinGroupNotify:','onGroupListUpdate:','onGroupNotifiesUpdated','9FpEQOA','1681900klmIjU','onGetGroupBulletinListResult','onGroupArkInviteStateResult','onGroupArkInviteStateResult:','atXKp','onSearchMemberChange:','onGroupBulletinRemindNotify:','log','onGroupBulletinChange:','onGroupDetailInfoChange:','onJoinGroupNoVerifyFlag','onGroupNotifiesUpdated:','onGroupExtListUpdate','946618NSleQF','173892ZXUfzx','onGroupNotifiesUnreadCountUpdated:','onGroupSingleScreenNotifies','onGroupNotifiesUnreadCountUpdated','onMemberInfoChange','qlCpy','EBRZP'];_0x2d61=function(){return _0x5b4509;};return _0x2d61();}export class GroupListener{['onGroupMemberLevelInfoChange'](..._0x537e4e){}[_0x3f471f(0x12c)](..._0xce6023){}[_0x3f471f(0x10b)](..._0x226b9b){}[_0x3f471f(0x11a)](..._0x33fa7a){}[_0x3f471f(0x146)](..._0x50b7d5){}[_0x3f471f(0x12d)](..._0x2d891e){}['onGroupBulletinRichMediaDownloadComplete'](..._0x43b2d3){}[_0x3f471f(0x144)](..._0x534a36){}['onGroupDetailInfoChange'](..._0x3d1234){}[_0x3f471f(0x137)](..._0x4af23b){}[_0x3f471f(0x147)](..._0x19f905){}[_0x3f471f(0x112)](_0xe53d6e,_0x41d1ac){}['onGroupNotifiesUpdated'](_0x3deafa,_0x19c9f4){}['onGroupBulletinRichMediaProgressUpdate'](..._0x4104dd){}[_0x3f471f(0x13c)](..._0x42f86f){}['onGroupSingleScreenNotifies'](..._0x3e18d9){}[_0x3f471f(0x116)](..._0x309491){}[_0x3f471f(0x148)](..._0x30b449){}['onJoinGroupNotify'](..._0x15acf6){}[_0x3f471f(0x135)](..._0xe1d6c9){}[_0x3f471f(0x13d)](_0x23c55b,_0x5ecb10,_0x25bf29){}['onMemberListChange'](_0x222763){}['onSearchMemberChange'](..._0x5dfbc2){}['onShutUpMemberListChanged'](..._0x24ff8b){}}export class DebugGroupListener{[_0x3f471f(0x10a)](..._0x45bfaa){var _0xbcf208=_0x3f471f;console['log'](_0xbcf208(0x11b),..._0x45bfaa);}['onGetGroupBulletinListResult'](..._0x50f204){var _0x119f52=_0x3f471f,_0x4809d6={'yHWdC':_0x119f52(0x115)};console[_0x119f52(0x132)](_0x4809d6[_0x119f52(0x140)],..._0x50f204);}[_0x3f471f(0x10b)](..._0x3d3ba9){var _0x3dc5cb=_0x3f471f,_0x32a1d1={'eRpzS':'onGroupAllInfoChange:'};console[_0x3dc5cb(0x132)](_0x32a1d1[_0x3dc5cb(0x124)],..._0x3d3ba9);}['onGroupBulletinChange'](..._0x5af2bb){var _0x320ec7=_0x3f471f,_0x1fe5f0={'iZijB':_0x320ec7(0x133)};console['log'](_0x1fe5f0[_0x320ec7(0x11f)],..._0x5af2bb);}[_0x3f471f(0x146)](..._0x3f5e92){var _0x341119=_0x3f471f,_0x5f5559={'DJpmQ':_0x341119(0x131)};console[_0x341119(0x132)](_0x5f5559[_0x341119(0x120)],..._0x3f5e92);}[_0x3f471f(0x12d)](..._0x478ba1){var _0x1248ac=_0x3f471f;console[_0x1248ac(0x132)](_0x1248ac(0x12e),..._0x478ba1);}[_0x3f471f(0x143)](..._0x141e6c){var _0x40179c=_0x3f471f,_0x5a392e={'atXKp':'onGroupBulletinRichMediaDownloadComplete:'};console[_0x40179c(0x132)](_0x5a392e[_0x40179c(0x12f)],..._0x141e6c);}[_0x3f471f(0x144)](..._0x3b640f){var _0x27fb16=_0x3f471f;console[_0x27fb16(0x132)](_0x27fb16(0x126),..._0x3b640f);}[_0x3f471f(0x142)](..._0x49135b){var _0x277109=_0x3f471f,_0x5ccd2a={'PFSkW':_0x277109(0x134)};console[_0x277109(0x132)](_0x5ccd2a[_0x277109(0x117)],..._0x49135b);}['onGroupExtListUpdate'](..._0x1102fa){var _0x36e845=_0x3f471f,_0x1f09ac={'EBRZP':'onGroupExtListUpdate:'};console[_0x36e845(0x132)](_0x1f09ac[_0x36e845(0x13f)],..._0x1102fa);}['onGroupFirstBulletinNotify'](..._0x30cef3){var _0x4969a7=_0x3f471f;console[_0x4969a7(0x132)](_0x4969a7(0x122),..._0x30cef3);}['onGroupListUpdate'](..._0x38ac9d){var _0x1dc672=_0x3f471f,_0x48b6d2={'Evxwm':_0x1dc672(0x128)};console[_0x1dc672(0x132)](_0x48b6d2[_0x1dc672(0x149)],..._0x38ac9d);}[_0x3f471f(0x129)](..._0x56d6f9){var _0x1239bd=_0x3f471f,_0x33d51a={'VswDt':_0x1239bd(0x136)};console[_0x1239bd(0x132)](_0x33d51a[_0x1239bd(0x10d)],..._0x56d6f9);}['onGroupBulletinRichMediaProgressUpdate'](..._0x30b8ba){var _0x4e45ad=_0x3f471f;console[_0x4e45ad(0x132)]('onGroupBulletinRichMediaProgressUpdate:',..._0x30b8ba);}[_0x3f471f(0x13c)](..._0x590044){var _0x163951=_0x3f471f,_0x170f38={'waQzP':_0x163951(0x13a)};console['log'](_0x170f38['waQzP'],..._0x590044);}[_0x3f471f(0x13b)](..._0x3158e2){var _0x570c4d=_0x3f471f;console[_0x570c4d(0x132)]('onGroupSingleScreenNotifies:',..._0x3158e2);}[_0x3f471f(0x116)](..._0x1ca963){var _0x38bdfb=_0x3f471f;console['log'](_0x38bdfb(0x121),..._0x1ca963);}[_0x3f471f(0x148)](..._0x4dc178){var _0x2ab36b=_0x3f471f;console[_0x2ab36b(0x132)](_0x2ab36b(0x119),..._0x4dc178);}[_0x3f471f(0x10f)](..._0x11ba51){var _0x5dc14f=_0x3f471f,_0x4645c6={'qlCpy':_0x5dc14f(0x127)};console[_0x5dc14f(0x132)](_0x4645c6[_0x5dc14f(0x13e)],..._0x11ba51);}[_0x3f471f(0x135)](..._0x510964){var _0x35f710=_0x3f471f,_0x420564={'BUvPb':'onJoinGroupNoVerifyFlag:'};console['log'](_0x420564[_0x35f710(0x141)],..._0x510964);}[_0x3f471f(0x13d)](_0x198a79,_0x481f2c,_0xb39f6f){var _0x311d5a=_0x3f471f;console['log'](_0x311d5a(0x118),_0x198a79,_0x481f2c,_0xb39f6f);}[_0x3f471f(0x10c)](..._0x391cdd){var _0x5ae68b=_0x3f471f,_0x149849={'CczCk':_0x5ae68b(0x145)};console[_0x5ae68b(0x132)](_0x149849[_0x5ae68b(0x114)],..._0x391cdd);}[_0x3f471f(0x110)](..._0x2e2970){var _0x4ce621=_0x3f471f,_0x1a469b={'mcWqx':_0x4ce621(0x130)};console[_0x4ce621(0x132)](_0x1a469b[_0x4ce621(0x123)],..._0x2e2970);}['onShutUpMemberListChanged'](..._0x1d7525){var _0x3ee359=_0x3f471f,_0x296831={'Knpaq':_0x3ee359(0x125)};console[_0x3ee359(0x132)](_0x296831['Knpaq'],..._0x1d7525);}} \ No newline at end of file +var _0x5e9bf3=_0x4158;function _0x244a(){var _0x3ceccf=['GzKpV','1228udkccp','987759FpFGTT','618402cOIyUM','onGroupFirstBulletinNotify:','onGroupNotifiesUnreadCountUpdated','NKQEt','onGroupMemberLevelInfoChange','onGroupListUpdate:','onGroupsMsgMaskResult:','onGetGroupBulletinListResult:','onGroupExtListUpdate:','onGroupListUpdate','onGroupsMsgMaskResult','onGroupConfMemberChange','onGroupExtListUpdate','onJoinGroupNotify','onShutUpMemberListChanged','onGroupAllInfoChange','172583eoKrel','GRUyY','onGroupConfMemberChange:','fFjVl','onMemberInfoChange','onGetGroupBulletinListResult','1882287PTQwej','onJoinGroupNotify:','onGroupAllInfoChange:','15MeRrnj','onGroupSingleScreenNotifies','goXGx','14PeLcLc','20KgHBDT','10442736GxtmWq','onGroupNotifiesUpdated:','onShutUpMemberListChanged:','2HvwGqq','onGroupArkInviteStateResult','onGroupBulletinRichMediaProgressUpdate','onGroupDetailInfoChange','onJoinGroupNoVerifyFlag:','onSearchMemberChange:','ofHee','log','onSearchMemberChange','DCBYZ','1123352ZpLQqE','onGroupNotifiesUpdated','onGroupNotifiesUnreadCountUpdated:','gLVid','DwCNw','onGroupBulletinRemindNotify:','onJoinGroupNoVerifyFlag','2553rSvnFL','onGroupBulletinChange','QVrjz','onGroupBulletinRichMediaDownloadComplete','onGroupBulletinRemindNotify','onGroupStatisticInfoChange:','onGroupBulletinRichMediaDownloadComplete:','onMemberInfoChange:','onGroupFirstBulletinNotify','onGroupMemberLevelInfoChange:','dURnY','onGroupStatisticInfoChange','onMemberListChange','onGroupBulletinRichMediaProgressUpdate:'];_0x244a=function(){return _0x3ceccf;};return _0x244a();}function _0x4158(_0x37f39b,_0x548c6e){var _0x244ac9=_0x244a();return _0x4158=function(_0x41587d,_0x152c10){_0x41587d=_0x41587d-0x102;var _0x1d09d3=_0x244ac9[_0x41587d];return _0x1d09d3;},_0x4158(_0x37f39b,_0x548c6e);}(function(_0x23c518,_0x2db47f){var _0x4ecd48=_0x4158,_0xb3689d=_0x23c518();while(!![]){try{var _0x26767f=-parseInt(_0x4ecd48(0x121))/0x1*(-parseInt(_0x4ecd48(0x132))/0x2)+-parseInt(_0x4ecd48(0x143))/0x3*(-parseInt(_0x4ecd48(0x10f))/0x4)+parseInt(_0x4ecd48(0x12a))/0x5*(parseInt(_0x4ecd48(0x111))/0x6)+parseInt(_0x4ecd48(0x12d))/0x7*(parseInt(_0x4ecd48(0x13c))/0x8)+-parseInt(_0x4ecd48(0x110))/0x9*(-parseInt(_0x4ecd48(0x12e))/0xa)+-parseInt(_0x4ecd48(0x127))/0xb+-parseInt(_0x4ecd48(0x12f))/0xc;if(_0x26767f===_0x2db47f)break;else _0xb3689d['push'](_0xb3689d['shift']());}catch(_0x32c8ff){_0xb3689d['push'](_0xb3689d['shift']());}}}(_0x244a,0x31534));export class GroupListener{[_0x5e9bf3(0x115)](..._0x49f25a){}[_0x5e9bf3(0x126)](..._0xc7794d){}[_0x5e9bf3(0x120)](..._0x52faff){}['onGroupBulletinChange'](..._0x4c9c1a){}[_0x5e9bf3(0x104)](..._0x44d5e8){}['onGroupArkInviteStateResult'](..._0x6b27f9){}[_0x5e9bf3(0x103)](..._0x4b3425){}[_0x5e9bf3(0x11c)](..._0x3b97f2){}['onGroupDetailInfoChange'](..._0x4092db){}[_0x5e9bf3(0x11d)](..._0x4c9a7e){}[_0x5e9bf3(0x108)](..._0x735b9a){}[_0x5e9bf3(0x11a)](_0x4193f1,_0x4be097){}[_0x5e9bf3(0x13d)](_0x1a1e08,_0x110d1f){}[_0x5e9bf3(0x134)](..._0x3cc97d){}['onGroupNotifiesUnreadCountUpdated'](..._0x551171){}['onGroupSingleScreenNotifies'](..._0x43fa61){}[_0x5e9bf3(0x11b)](..._0x1f6085){}[_0x5e9bf3(0x10b)](..._0x4a4c16){}['onJoinGroupNotify'](..._0x54848b){}['onJoinGroupNoVerifyFlag'](..._0xeba42d){}[_0x5e9bf3(0x125)](_0x2a6a5a,_0x3f81b8,_0x13c88b){}[_0x5e9bf3(0x10c)](_0x3555b3){}[_0x5e9bf3(0x13a)](..._0x82418f){}[_0x5e9bf3(0x11f)](..._0x29ed93){}}export class DebugGroupListener{[_0x5e9bf3(0x115)](..._0x51f8e2){var _0x6729be=_0x5e9bf3,_0x2c37cd={'QVrjz':_0x6729be(0x109)};console[_0x6729be(0x139)](_0x2c37cd[_0x6729be(0x102)],..._0x51f8e2);}[_0x5e9bf3(0x126)](..._0x5db798){var _0x2d9578=_0x5e9bf3,_0x4a9aa0={'DwCNw':_0x2d9578(0x118)};console[_0x2d9578(0x139)](_0x4a9aa0[_0x2d9578(0x140)],..._0x5db798);}[_0x5e9bf3(0x120)](..._0x523c42){var _0x31235a=_0x5e9bf3;console[_0x31235a(0x139)](_0x31235a(0x129),..._0x523c42);}[_0x5e9bf3(0x144)](..._0x3d4e9f){var _0xb68300=_0x5e9bf3,_0x17d622={'fFjVl':'onGroupBulletinChange:'};console[_0xb68300(0x139)](_0x17d622[_0xb68300(0x124)],..._0x3d4e9f);}[_0x5e9bf3(0x104)](..._0x16db58){var _0x5d0f5a=_0x5e9bf3;console['log'](_0x5d0f5a(0x141),..._0x16db58);}[_0x5e9bf3(0x133)](..._0x34422f){var _0x4a1d7e=_0x5e9bf3,_0x3d4b65={'NKQEt':'onGroupArkInviteStateResult:'};console[_0x4a1d7e(0x139)](_0x3d4b65[_0x4a1d7e(0x114)],..._0x34422f);}[_0x5e9bf3(0x103)](..._0x5b7a09){var _0x83585c=_0x5e9bf3,_0x18503d={'dURnY':_0x83585c(0x106)};console[_0x83585c(0x139)](_0x18503d[_0x83585c(0x10a)],..._0x5b7a09);}['onGroupConfMemberChange'](..._0x2be701){var _0x3780be=_0x5e9bf3;console[_0x3780be(0x139)](_0x3780be(0x123),..._0x2be701);}[_0x5e9bf3(0x135)](..._0x11825d){var _0x5a9e9f=_0x5e9bf3,_0x15de38={'GRUyY':'onGroupDetailInfoChange:'};console[_0x5a9e9f(0x139)](_0x15de38[_0x5a9e9f(0x122)],..._0x11825d);}[_0x5e9bf3(0x11d)](..._0x234d7e){var _0x4f7bc1=_0x5e9bf3,_0x18646e={'GzKpV':_0x4f7bc1(0x119)};console['log'](_0x18646e[_0x4f7bc1(0x10e)],..._0x234d7e);}[_0x5e9bf3(0x108)](..._0x298724){var _0x3baadc=_0x5e9bf3,_0x1af725={'gLVid':_0x3baadc(0x112)};console[_0x3baadc(0x139)](_0x1af725[_0x3baadc(0x13f)],..._0x298724);}['onGroupListUpdate'](..._0x35d4f0){var _0x36820d=_0x5e9bf3,_0x137111={'goXGx':_0x36820d(0x116)};console[_0x36820d(0x139)](_0x137111[_0x36820d(0x12c)],..._0x35d4f0);}[_0x5e9bf3(0x13d)](..._0x3b1210){var _0x48d0bb=_0x5e9bf3,_0x3b385e={'DCBYZ':_0x48d0bb(0x130)};console[_0x48d0bb(0x139)](_0x3b385e[_0x48d0bb(0x13b)],..._0x3b1210);}['onGroupBulletinRichMediaProgressUpdate'](..._0x451f42){var _0x34df40=_0x5e9bf3;console[_0x34df40(0x139)](_0x34df40(0x10d),..._0x451f42);}[_0x5e9bf3(0x113)](..._0x4919cf){var _0x1c099f=_0x5e9bf3;console[_0x1c099f(0x139)](_0x1c099f(0x13e),..._0x4919cf);}[_0x5e9bf3(0x12b)](..._0x3176a1){var _0x3b863b=_0x5e9bf3;console[_0x3b863b(0x139)]('onGroupSingleScreenNotifies:',..._0x3176a1);}[_0x5e9bf3(0x11b)](..._0x5e2951){var _0xf08690=_0x5e9bf3;console[_0xf08690(0x139)](_0xf08690(0x117),..._0x5e2951);}[_0x5e9bf3(0x10b)](..._0x27abb0){var _0x16e247=_0x5e9bf3,_0x47c426={'hJTiy':_0x16e247(0x105)};console[_0x16e247(0x139)](_0x47c426['hJTiy'],..._0x27abb0);}[_0x5e9bf3(0x11e)](..._0x3b7813){var _0x32a521=_0x5e9bf3,_0x72c023={'AcJBS':_0x32a521(0x128)};console[_0x32a521(0x139)](_0x72c023['AcJBS'],..._0x3b7813);}[_0x5e9bf3(0x142)](..._0xa10ebb){var _0x9f4ad6=_0x5e9bf3,_0x5ec2a7={'ofHee':_0x9f4ad6(0x136)};console['log'](_0x5ec2a7[_0x9f4ad6(0x138)],..._0xa10ebb);}['onMemberInfoChange'](_0x417f7a,_0x5e0669,_0xcf75cd){var _0x55eb6f=_0x5e9bf3;console['log'](_0x55eb6f(0x107),_0x417f7a,_0x5e0669,_0xcf75cd);}[_0x5e9bf3(0x10c)](..._0x1e2a43){var _0x2f1375={'Oyudy':'onMemberListChange:'};console['log'](_0x2f1375['Oyudy'],..._0x1e2a43);}[_0x5e9bf3(0x13a)](..._0x3d06ae){var _0x3524bc=_0x5e9bf3,_0x5b18e6={'WYjsk':_0x3524bc(0x137)};console[_0x3524bc(0x139)](_0x5b18e6['WYjsk'],..._0x3d06ae);}[_0x5e9bf3(0x11f)](..._0x58b5f5){var _0x1142ad=_0x5e9bf3;console[_0x1142ad(0x139)](_0x1142ad(0x131),..._0x58b5f5);}} \ 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 600f93e6..ac1f9fab 100644 --- a/src/core.lib/src/listeners/NodeIKernelLoginListener.js +++ b/src/core.lib/src/listeners/NodeIKernelLoginListener.js @@ -1 +1 @@ -function _0x582b(){var _0x5d0961=['onLoginFailed','onLogoutFailed','onQRCodeSessionQuickLoginFailed','onLoginConnected','onUserLoggedIn','onLoginState','7RzOPKB','3sDcZWz','175808qclkaI','1456180LtkSHk','onQRCodeSessionFailed','onLoginConnecting','248bKZkcs','onQRCodeGetPicture','OnConfirmUnusualDeviceFailed','27QGZqhd','907992lLYYlt','70314PgzoOI','6486294WXDzFZ','onQRCodeLoginPollingStarted','onPasswordLoginFailed','2774270rKJftz','3869140TbYJMo'];_0x582b=function(){return _0x5d0961;};return _0x582b();}var _0x2c2b5a=_0x5dca;function _0x5dca(_0x59c7b7,_0xc2c639){var _0x582b2f=_0x582b();return _0x5dca=function(_0x5dca4e,_0x57466c){_0x5dca4e=_0x5dca4e-0xb6;var _0x1b9d92=_0x582b2f[_0x5dca4e];return _0x1b9d92;},_0x5dca(_0x59c7b7,_0xc2c639);}(function(_0x10e212,_0x4fa8cb){var _0x2910d8=_0x5dca,_0x493dd6=_0x10e212();while(!![]){try{var _0xab017d=parseInt(_0x2910d8(0xc5))/0x1*(-parseInt(_0x2910d8(0xc6))/0x2)+-parseInt(_0x2910d8(0xb8))/0x3*(-parseInt(_0x2910d8(0xca))/0x4)+-parseInt(_0x2910d8(0xc7))/0x5+-parseInt(_0x2910d8(0xb9))/0x6*(parseInt(_0x2910d8(0xc4))/0x7)+-parseInt(_0x2910d8(0xb7))/0x8+parseInt(_0x2910d8(0xb6))/0x9*(parseInt(_0x2910d8(0xbc))/0xa)+parseInt(_0x2910d8(0xbd))/0xb;if(_0xab017d===_0x4fa8cb)break;else _0x493dd6['push'](_0x493dd6['shift']());}catch(_0x541992){_0x493dd6['push'](_0x493dd6['shift']());}}}(_0x582b,0xd8b81));export class LoginListener{[_0x2c2b5a(0xc1)](..._0x56a31b){}['onLoginDisConnected'](..._0x4472ec){}[_0x2c2b5a(0xc9)](..._0x170f19){}[_0x2c2b5a(0xcb)](_0x4be3ab){}[_0x2c2b5a(0xba)](..._0x594745){}['onQRCodeSessionUserScaned'](..._0x5a0399){}['onQRCodeLoginSucceed'](_0x20184f){}[_0x2c2b5a(0xc8)](..._0x21e99d){}[_0x2c2b5a(0xbe)](..._0x2e1ae9){}['onLogoutSucceed'](..._0x431595){}[_0x2c2b5a(0xbf)](..._0xe75afb){}[_0x2c2b5a(0xc2)](..._0x4d160e){}[_0x2c2b5a(0xc0)](..._0x55dcec){}[_0x2c2b5a(0xbb)](..._0x4f6f73){}[_0x2c2b5a(0xcc)](..._0x58e066){}['onQQLoginNumLimited'](..._0x228e64){}[_0x2c2b5a(0xc3)](..._0x208827){}} \ No newline at end of file +function _0x4a22(_0x396c6a,_0x4f2099){var _0x5c40e3=_0x5c40();return _0x4a22=function(_0x4a2274,_0x9e9479){_0x4a2274=_0x4a2274-0x145;var _0x5f39c1=_0x5c40e3[_0x4a2274];return _0x5f39c1;},_0x4a22(_0x396c6a,_0x4f2099);}var _0x160305=_0x4a22;function _0x5c40(){var _0x21cb91=['onUserLoggedIn','3166515RzWpal','141001EnCuwK','8hHbLGY','onLogoutFailed','18SmBYNQ','4912820HaLvTo','onLoginState','onLogoutSucceed','onQRCodeSessionFailed','onLoginConnecting','4XeeuKS','13195017YvQtGK','269757gOlAWs','onLoginDisConnected','onLoginFailed','209614EUDvhp','onQQLoginNumLimited','106452ANoxgX','OnConfirmUnusualDeviceFailed','onQRCodeGetPicture','onQRCodeLoginSucceed','55eRbhLE','onLoginConnected'];_0x5c40=function(){return _0x21cb91;};return _0x5c40();}(function(_0x50617e,_0x3c0cc3){var _0x28106c=_0x4a22,_0x440f38=_0x50617e();while(!![]){try{var _0x168091=parseInt(_0x28106c(0x152))/0x1*(-parseInt(_0x28106c(0x157))/0x2)+parseInt(_0x28106c(0x154))/0x3+parseInt(_0x28106c(0x159))/0x4*(parseInt(_0x28106c(0x145))/0x5)+parseInt(_0x28106c(0x14c))/0x6*(-parseInt(_0x28106c(0x149))/0x7)+-parseInt(_0x28106c(0x14a))/0x8*(parseInt(_0x28106c(0x148))/0x9)+-parseInt(_0x28106c(0x14d))/0xa+parseInt(_0x28106c(0x153))/0xb;if(_0x168091===_0x3c0cc3)break;else _0x440f38['push'](_0x440f38['shift']());}catch(_0x1e0cad){_0x440f38['push'](_0x440f38['shift']());}}}(_0x5c40,0x3f56b));export class LoginListener{[_0x160305(0x146)](..._0x2af620){}[_0x160305(0x155)](..._0x581934){}[_0x160305(0x151)](..._0xadf97f){}[_0x160305(0x15b)](_0x5c4bd8){}['onQRCodeLoginPollingStarted'](..._0x53b3ed){}['onQRCodeSessionUserScaned'](..._0x5ef1ce){}[_0x160305(0x15c)](_0x2cda09){}[_0x160305(0x150)](..._0x4e5ead){}[_0x160305(0x156)](..._0x1e8e7c){}[_0x160305(0x14f)](..._0x518baa){}[_0x160305(0x14b)](..._0x597ddb){}[_0x160305(0x147)](..._0xf8eef6){}['onQRCodeSessionQuickLoginFailed'](..._0x4efdbe){}['onPasswordLoginFailed'](..._0x168240){}[_0x160305(0x15a)](..._0x206590){}[_0x160305(0x158)](..._0x201e21){}[_0x160305(0x14e)](..._0x313280){}} \ 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 33836cc5..efbd5a90 100644 --- a/src/core.lib/src/listeners/NodeIKernelMsgListener.js +++ b/src/core.lib/src/listeners/NodeIKernelMsgListener.js @@ -1 +1 @@ -function _0x218c(){var _0x105ea5=['onUnreadCntUpdate','onFeedEventUpdate','380548ltVsCA','onRichMediaDownloadComplete','onGroupFileInfoAdd','onRecvS2CMsg','onRedTouchChanged','48fWMTdj','onBroadcastHelperDownloadComplete','onContactUnreadCntUpdate','2621744EOFDzB','onNtFirstViewMsgSyncEnd','onFirstViewDirectMsgUpdate','onRecvSysMsg','5FjkwqL','onRichMediaUploadComplete','onlineStatusBigIconDownloadPush','onRecvGroupGuildFlag','onMsgRecall','onUserSecQualityChanged','onMsgInfoListAdd','141172vFiuWz','onTempChatInfoUpdate','onHitEmojiKeywordResult','onlineStatusSmallIconDownloadPush','7986573eSOgiF','onGroupTransferInfoUpdate','2140868hdruUl','onGroupTransferInfoAdd','120lsErTA','onUnreadCntAfterFirstView','onGroupGuildUpdate','970516hRhJnW','onGroupFileInfoUpdate','22908960tdkcUP','onSearchGroupFileInfoUpdate','onGrabPasswordRedBag','onLineDev','onLogLevelChanged','onSysMsgNotification','onUserOnlineStatusChanged','onUserChannelTabStatusChanged','onBroadcastHelperProgerssUpdate','onMsgBoxChanged','onGuildMsgAbFlagChanged','onAddSendMsg','onRichMediaProgerssUpdate','onGuildNotificationAbstractUpdate','onRecvOnlineFileMsg','onMsgAbstractUpdate','onMsgSettingUpdate','onMsgWithRichLinkInfoUpdate','onBroadcastHelperProgressUpdate','onFileMsgCome','onInputStatusPush','onEmojiDownloadComplete','onHitCsRelatedEmojiResult','onUserTabStatusChanged','onDraftUpdate','onFirstViewGroupGuildMapping','onMsgSecurityNotify','onHitRelatedEmojiResult','onRecvUDCFlag','onMsgEventListUpdate'];_0x218c=function(){return _0x105ea5;};return _0x218c();}var _0x22bd07=_0xb647;(function(_0x3d4901,_0x38e564){var _0x188c81=_0xb647,_0x282308=_0x3d4901();while(!![]){try{var _0x4b2510=-parseInt(_0x188c81(0x13c))/0x1+parseInt(_0x188c81(0x131))/0x2*(-parseInt(_0x188c81(0x123))/0x3)+-parseInt(_0x188c81(0x137))/0x4*(-parseInt(_0x188c81(0x12a))/0x5)+-parseInt(_0x188c81(0x139))/0x6*(-parseInt(_0x188c81(0x11e))/0x7)+-parseInt(_0x188c81(0x126))/0x8+-parseInt(_0x188c81(0x135))/0x9+parseInt(_0x188c81(0x13e))/0xa;if(_0x4b2510===_0x38e564)break;else _0x282308['push'](_0x282308['shift']());}catch(_0x52a7af){_0x282308['push'](_0x282308['shift']());}}}(_0x218c,0x92172));function _0xb647(_0x500d81,_0x1ec910){var _0x218c01=_0x218c();return _0xb647=function(_0xb64745,_0x1455b3){_0xb64745=_0xb64745-0x104;var _0x35f73b=_0x218c01[_0xb64745];return _0x35f73b;},_0xb647(_0x500d81,_0x1ec910);}export class MsgListener{[_0x22bd07(0x109)](_0x3d571e){}[_0x22bd07(0x124)](_0x1cab30){}[_0x22bd07(0x110)](_0x558124){}['onChannelFreqLimitInfoUpdate'](_0x3438ca,_0x3e3633,_0x3268ea){}[_0x22bd07(0x125)](_0x2867e4){}['onCustomWithdrawConfigUpdate'](_0x4a3c77){}[_0x22bd07(0x116)](_0x58dd3d,_0x5aec32,_0x1254cb){}[_0x22bd07(0x113)](_0x185e6e){}['onEmojiResourceUpdate'](_0x31519f){}[_0x22bd07(0x11d)](_0x5e22f6){}[_0x22bd07(0x111)](_0x5d51e4){}[_0x22bd07(0x128)](_0x5926e2){}[_0x22bd07(0x117)](_0x5254e3){}[_0x22bd07(0x140)](_0x575ae3,_0x4b697b,_0x28ad71,_0x35c61e,_0x3b8270){}[_0x22bd07(0x120)](_0x1ab9bb){}[_0x22bd07(0x13d)](_0x437239){}[_0x22bd07(0x13b)](_0x405b58){}[_0x22bd07(0x138)](_0x2b5a52){}[_0x22bd07(0x136)](_0x3cab22){}['onGuildInteractiveUpdate'](_0x52cb30){}[_0x22bd07(0x108)](_0x5043ba){}[_0x22bd07(0x10b)](_0x1d8b36){}[_0x22bd07(0x114)](_0x81a6b){}[_0x22bd07(0x133)](_0x142d4b){}[_0x22bd07(0x119)](_0x2eca08){}['onImportOldDbProgressUpdate'](_0x3210e1){}[_0x22bd07(0x112)](_0x181ef1){}['onKickedOffLine'](_0x529c5b){}[_0x22bd07(0x141)](_0x37489f){}[_0x22bd07(0x142)](_0x568f3d){}[_0x22bd07(0x10d)](_0x5b6cc5){}[_0x22bd07(0x107)](_0x5df4f2){}['onMsgDelete'](_0x29dbe2,_0x6dd4f4){}[_0x22bd07(0x11b)](_0x467bcd){}[_0x22bd07(0x130)](_0x2514f9){}['onMsgInfoListUpdate'](_0x59f5df){}['onMsgQRCodeStatusChanged'](_0x3b7bf9){}[_0x22bd07(0x12e)](_0x28f599,_0x1ad17c,_0x230cdd){}[_0x22bd07(0x118)](_0x57a3d2){}[_0x22bd07(0x10e)](_0x56deaf){}[_0x22bd07(0x127)](){}['onNtMsgSyncEnd'](){}['onNtMsgSyncStart'](){}['onReadFeedEventUpdate'](_0x7bf450){}[_0x22bd07(0x12d)](_0x1f03d1){}['onRecvMsg'](_0x1994a8){}['onRecvMsgSvrRspTransInfo'](_0x23b040,_0x2858c1,_0x10f2b1,_0x5958e9,_0x12521a,_0x14f5a5){}[_0x22bd07(0x10c)](_0x1a7510){}[_0x22bd07(0x121)](_0x2f7d27){}[_0x22bd07(0x129)](_0x2527e5){}[_0x22bd07(0x11a)](_0x22b50c){}[_0x22bd07(0x11f)](_0x4d12a2){}[_0x22bd07(0x10a)](_0x5e4789){}[_0x22bd07(0x12b)](_0x3c869d){}[_0x22bd07(0x13f)](_0x3e6222){}['onSendMsgError'](_0x4a1748,_0xe0a1d8,_0x2c25b0,_0x49406d){}[_0x22bd07(0x143)](_0x38c274,_0x2b37af,_0x43181e,_0x919505){}[_0x22bd07(0x132)](_0x226f78){}[_0x22bd07(0x13a)](_0x18de31){}[_0x22bd07(0x11c)](_0x5cf896){}[_0x22bd07(0x105)](_0x50df4c){}[_0x22bd07(0x104)](_0x492368){}[_0x22bd07(0x115)](_0x125721){}[_0x22bd07(0x12c)](_0x439b41,_0x1259cc,_0x477cf8){}[_0x22bd07(0x134)](_0x2cc4cb,_0x354888,_0x54921e){}[_0x22bd07(0x12f)](..._0x424710){}[_0x22bd07(0x10f)](..._0xc3e7b3){}[_0x22bd07(0x122)](..._0x11dd16){}[_0x22bd07(0x106)](..._0x3a3683){}} \ No newline at end of file +function _0x7af7(){var _0x45a029=['onRichMediaProgerssUpdate','onGroupTransferInfoUpdate','onEmojiResourceUpdate','onRichMediaDownloadComplete','onNtMsgSyncStart','onGroupTransferInfoAdd','onEmojiDownloadComplete','onGrabPasswordRedBag','onTempChatInfoUpdate','255025udzyoG','onHitEmojiKeywordResult','onMsgAbstractUpdate','onGuildNotificationAbstractUpdate','onlineStatusBigIconDownloadPush','onRichMediaUploadComplete','51Thigne','onSysMsgNotification','131228qZugoA','onRedTouchChanged','onCustomWithdrawConfigUpdate','onGroupFileInfoAdd','onUserChannelTabStatusChanged','onRecvS2CMsg','onMsgDelete','onFeedEventUpdate','onMsgInfoListAdd','onGroupFileInfoUpdate','3063024TPgCxM','onMsgRecall','onFileMsgCome','onHitCsRelatedEmojiResult','onMsgQRCodeStatusChanged','64vqyzUG','onUserSecQualityChanged','8806lMmQKu','onBroadcastHelperProgressUpdate','onImportOldDbProgressUpdate','onChannelFreqLimitInfoUpdate','onGuildMsgAbFlagChanged','onBroadcastHelperDownloadComplete','onFirstViewGroupGuildMapping','onDraftUpdate','5142dEOtnl','onMsgEventListUpdate','onLineDev','onNtMsgSyncEnd','onReadFeedEventUpdate','onRecvSysMsg','onRecvMsgSvrRspTransInfo','onUserOnlineStatusChanged','onAddSendMsg','27262440XqCqZq','onHitRelatedEmojiResult','317646PKgcVv','onRecvMsg','853338BaAwQz','onSendMsgError','onContactUnreadCntUpdate','onGuildInteractiveUpdate','onMsgSettingUpdate'];_0x7af7=function(){return _0x45a029;};return _0x7af7();}var _0x10f89d=_0x44cc;(function(_0xbd0a4b,_0x3541d5){var _0x21cf58=_0x44cc,_0x51d76f=_0xbd0a4b();while(!![]){try{var _0x186383=-parseInt(_0x21cf58(0x14b))/0x1+-parseInt(_0x21cf58(0x125))/0x2*(parseInt(_0x21cf58(0x123))/0x3)+parseInt(_0x21cf58(0x134))/0x4*(-parseInt(_0x21cf58(0x11d))/0x5)+-parseInt(_0x21cf58(0x13e))/0x6*(-parseInt(_0x21cf58(0x136))/0x7)+-parseInt(_0x21cf58(0x12f))/0x8+parseInt(_0x21cf58(0x149))/0x9+parseInt(_0x21cf58(0x147))/0xa;if(_0x186383===_0x3541d5)break;else _0x51d76f['push'](_0x51d76f['shift']());}catch(_0x404342){_0x51d76f['push'](_0x51d76f['shift']());}}}(_0x7af7,0xa40a6));function _0x44cc(_0x433238,_0x1099b5){var _0x7af758=_0x7af7();return _0x44cc=function(_0x44cc27,_0x13dc56){_0x44cc27=_0x44cc27-0x114;var _0x5d8452=_0x7af758[_0x44cc27];return _0x5d8452;},_0x44cc(_0x433238,_0x1099b5);}export class MsgListener{[_0x10f89d(0x146)](_0x15ecc4){}[_0x10f89d(0x13b)](_0x294134){}[_0x10f89d(0x137)](_0x211707){}[_0x10f89d(0x139)](_0xf4699,_0x55987c,_0x2252e7){}[_0x10f89d(0x14d)](_0x4859c1){}[_0x10f89d(0x127)](_0x2bf2a1){}[_0x10f89d(0x13d)](_0x36cd59,_0x357d0f,_0x56e9c8){}[_0x10f89d(0x11a)](_0x177206){}[_0x10f89d(0x116)](_0x3f4a67){}[_0x10f89d(0x12c)](_0x4f9973){}[_0x10f89d(0x131)](_0x52ef39){}['onFirstViewDirectMsgUpdate'](_0x45dc33){}[_0x10f89d(0x13c)](_0x131679){}[_0x10f89d(0x11b)](_0x4e2a63,_0x427b97,_0x1e2890,_0x5235ec,_0x4b4308){}[_0x10f89d(0x128)](_0x317296){}[_0x10f89d(0x12e)](_0x277a24){}['onGroupGuildUpdate'](_0x175bd4){}[_0x10f89d(0x119)](_0x36cd5e){}[_0x10f89d(0x115)](_0x3e2d3b){}[_0x10f89d(0x14e)](_0x4424d8){}[_0x10f89d(0x13a)](_0x33e3fb){}[_0x10f89d(0x120)](_0x52c9aa){}[_0x10f89d(0x132)](_0x17476c){}[_0x10f89d(0x11e)](_0x2e10d3){}[_0x10f89d(0x148)](_0x566d75){}[_0x10f89d(0x138)](_0x3ab873){}['onInputStatusPush'](_0x2053e9){}['onKickedOffLine'](_0x3a0699){}[_0x10f89d(0x140)](_0x3b133a){}['onLogLevelChanged'](_0x1de37f){}[_0x10f89d(0x11f)](_0x166b97){}['onMsgBoxChanged'](_0x4266a0){}[_0x10f89d(0x12b)](_0x309c4c,_0x3037f0){}[_0x10f89d(0x13f)](_0xc29b8c){}[_0x10f89d(0x12d)](_0x511ee2){}['onMsgInfoListUpdate'](_0x59a074){}[_0x10f89d(0x133)](_0x1ae81e){}[_0x10f89d(0x130)](_0x23ff61,_0x66c1a9,_0x5ea168){}['onMsgSecurityNotify'](_0x5d0e5a){}[_0x10f89d(0x14f)](_0x2263d1){}['onNtFirstViewMsgSyncEnd'](){}[_0x10f89d(0x141)](){}[_0x10f89d(0x118)](){}[_0x10f89d(0x142)](_0x4da631){}['onRecvGroupGuildFlag'](_0x5f224e){}[_0x10f89d(0x14a)](_0x1f0f3){}[_0x10f89d(0x144)](_0x7a8fe9,_0x5f0861,_0x2c1d4c,_0xba1363,_0x5ee5ed,_0x3893b6){}['onRecvOnlineFileMsg'](_0x48edaa){}[_0x10f89d(0x12a)](_0x4f8abf){}[_0x10f89d(0x143)](_0x5add7f){}['onRecvUDCFlag'](_0x82290e){}[_0x10f89d(0x117)](_0xf5a760){}[_0x10f89d(0x114)](_0x233641){}[_0x10f89d(0x122)](_0x3089eb){}['onSearchGroupFileInfoUpdate'](_0xac6373){}[_0x10f89d(0x14c)](_0x115234,_0x5cd5d0,_0x51f852,_0xd529b4){}[_0x10f89d(0x124)](_0x307cda,_0x3c333d,_0x543a80,_0x5d50ed){}[_0x10f89d(0x11c)](_0x15bee2){}['onUnreadCntAfterFirstView'](_0x4b8660){}['onUnreadCntUpdate'](_0x51b6df){}[_0x10f89d(0x129)](_0x7d615d){}[_0x10f89d(0x145)](_0x1c5635){}['onUserTabStatusChanged'](_0x20d40a){}[_0x10f89d(0x121)](_0x5c0d5c,_0x199403,_0x19cf89){}['onlineStatusSmallIconDownloadPush'](_0x312543,_0x269046,_0x52b0ef){}[_0x10f89d(0x135)](..._0x59c09f){}['onMsgWithRichLinkInfoUpdate'](..._0x5d1d78){}[_0x10f89d(0x126)](..._0x56031d){}['onBroadcastHelperProgerssUpdate'](..._0x274805){}} \ 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 6a3f7482..a463c47a 100644 --- a/src/core.lib/src/listeners/NodeIKernelProfileListener.js +++ b/src/core.lib/src/listeners/NodeIKernelProfileListener.js @@ -1 +1 @@ -function _0x5968(_0x10a104,_0x4b350c){var _0x2ae14e=_0x2ae1();return _0x5968=function(_0x596849,_0x2995db){_0x596849=_0x596849-0x1c9;var _0x4fc6b7=_0x2ae14e[_0x596849];return _0x4fc6b7;},_0x5968(_0x10a104,_0x4b350c);}var _0x43a2cb=_0x5968;(function(_0x98cb85,_0x5e7b60){var _0x2161a1=_0x5968,_0x137d08=_0x98cb85();while(!![]){try{var _0x58ad88=parseInt(_0x2161a1(0x1ce))/0x1*(parseInt(_0x2161a1(0x1d1))/0x2)+parseInt(_0x2161a1(0x1d5))/0x3*(-parseInt(_0x2161a1(0x1cc))/0x4)+-parseInt(_0x2161a1(0x1cf))/0x5*(-parseInt(_0x2161a1(0x1ca))/0x6)+-parseInt(_0x2161a1(0x1d7))/0x7+-parseInt(_0x2161a1(0x1d0))/0x8*(-parseInt(_0x2161a1(0x1cb))/0x9)+-parseInt(_0x2161a1(0x1d4))/0xa*(parseInt(_0x2161a1(0x1c9))/0xb)+parseInt(_0x2161a1(0x1d3))/0xc;if(_0x58ad88===_0x5e7b60)break;else _0x137d08['push'](_0x137d08['shift']());}catch(_0x2d0309){_0x137d08['push'](_0x137d08['shift']());}}}(_0x2ae1,0xf3b3b));export class ProfileListener{[_0x43a2cb(0x1d6)](..._0x2ac0e9){}['onProfileDetailInfoChanged'](_0x5af307){}[_0x43a2cb(0x1cd)](..._0xc72f31){}[_0x43a2cb(0x1d2)](..._0x542477){}[_0x43a2cb(0x1d8)](..._0x362175){}}function _0x2ae1(){var _0x4826ae=['16466ZVCKHq','1213130YnVQdC','6318920eqgucL','72FogOUm','onSelfStatusChanged','12817008digalS','10LejEzx','1044XTyXpE','onProfileSimpleChanged','10474002urjhmT','onStrangerRemarkChanged','5096487outKyX','12CJkfXA','18sRoWYY','8828rIZJHb','onStatusUpdate'];_0x2ae1=function(){return _0x4826ae;};return _0x2ae1();} \ No newline at end of file +var _0x33301d=_0x5e6c;function _0x5e6c(_0x534604,_0x645fa0){var _0x37fdd7=_0x37fd();return _0x5e6c=function(_0x5e6cc8,_0x3b508e){_0x5e6cc8=_0x5e6cc8-0x1a5;var _0x13aa91=_0x37fdd7[_0x5e6cc8];return _0x13aa91;},_0x5e6c(_0x534604,_0x645fa0);}function _0x37fd(){var _0x475251=['onSelfStatusChanged','onProfileDetailInfoChanged','14CoFGKg','1955888aFbaUg','154fVSuce','981510ZhYpbm','481002lMikVi','4584oiFCkX','9gQbTdU','383418GLBGTk','588726cperIK','1110750AhvFna','2045qOwyaC'];_0x37fd=function(){return _0x475251;};return _0x37fd();}(function(_0x46c9cd,_0x341953){var _0x4c04ce=_0x5e6c,_0x31443f=_0x46c9cd();while(!![]){try{var _0x5aff18=-parseInt(_0x4c04ce(0x1b0))/0x1+-parseInt(_0x4c04ce(0x1ab))/0x2+-parseInt(_0x4c04ce(0x1ac))/0x3+-parseInt(_0x4c04ce(0x1ad))/0x4*(-parseInt(_0x4c04ce(0x1a5))/0x5)+-parseInt(_0x4c04ce(0x1af))/0x6*(parseInt(_0x4c04ce(0x1a8))/0x7)+parseInt(_0x4c04ce(0x1a9))/0x8*(-parseInt(_0x4c04ce(0x1ae))/0x9)+parseInt(_0x4c04ce(0x1b1))/0xa*(parseInt(_0x4c04ce(0x1aa))/0xb);if(_0x5aff18===_0x341953)break;else _0x31443f['push'](_0x31443f['shift']());}catch(_0x4054e2){_0x31443f['push'](_0x31443f['shift']());}}}(_0x37fd,0x64809));export class ProfileListener{['onProfileSimpleChanged'](..._0x36cca3){}[_0x33301d(0x1a7)](_0x5d741b){}['onStatusUpdate'](..._0xe97c2d){}[_0x33301d(0x1a6)](..._0x45d0e7){}['onStrangerRemarkChanged'](..._0x5477e5){}} \ 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 54cd8df6..e60f94c1 100644 --- a/src/core.lib/src/listeners/NodeIKernelRobotListener.js +++ b/src/core.lib/src/listeners/NodeIKernelRobotListener.js @@ -1 +1 @@ -var _0x4f5e3c=_0x24f9;function _0x24f9(_0x41c9dc,_0x5ed004){var _0x15d7ee=_0x15d7();return _0x24f9=function(_0x24f9d5,_0x350725){_0x24f9d5=_0x24f9d5-0xd9;var _0x16f5bf=_0x15d7ee[_0x24f9d5];return _0x16f5bf;},_0x24f9(_0x41c9dc,_0x5ed004);}(function(_0x2a5932,_0x5155e9){var _0x1bac60=_0x24f9,_0x2366c2=_0x2a5932();while(!![]){try{var _0x3c62d2=parseInt(_0x1bac60(0xdc))/0x1*(parseInt(_0x1bac60(0xe4))/0x2)+-parseInt(_0x1bac60(0xe2))/0x3+-parseInt(_0x1bac60(0xe5))/0x4+parseInt(_0x1bac60(0xde))/0x5+-parseInt(_0x1bac60(0xe0))/0x6*(-parseInt(_0x1bac60(0xda))/0x7)+parseInt(_0x1bac60(0xe3))/0x8*(parseInt(_0x1bac60(0xdd))/0x9)+-parseInt(_0x1bac60(0xdf))/0xa*(parseInt(_0x1bac60(0xe1))/0xb);if(_0x3c62d2===_0x5155e9)break;else _0x2366c2['push'](_0x2366c2['shift']());}catch(_0x1c0c2f){_0x2366c2['push'](_0x2366c2['shift']());}}}(_0x15d7,0x212a0));function _0x15d7(){var _0x15e045=['32951ldCltf','10872rahaSW','799265pDCMQv','62590STTdqb','1251672LjwWxA','363AkDrbp','566994plsVMU','1712MFMEge','10BwXoYk','1041388dmuCuo','onRobotProfileChanged','7AKSKCA','onRobotListChanged'];_0x15d7=function(){return _0x15e045;};return _0x15d7();}export class KernelRobotListener{['onRobotFriendListChanged'](..._0x1e7be8){}[_0x4f5e3c(0xdb)](..._0x1247d0){}[_0x4f5e3c(0xd9)](..._0x1ac5df){}} \ No newline at end of file +var _0x185a26=_0x4b92;function _0x2316(){var _0x168c05=['15225462TysbWi','869688ECwCzA','1055904FkyriN','3379086YWndxt','6180034dvDnKa','2kVycdi','12822IxUDml','1497088HFKwTI','onRobotListChanged','1045PJykMC'];_0x2316=function(){return _0x168c05;};return _0x2316();}function _0x4b92(_0x48ad09,_0x4af831){var _0x231605=_0x2316();return _0x4b92=function(_0x4b92c3,_0x259ecc){_0x4b92c3=_0x4b92c3-0x1f2;var _0x43f65e=_0x231605[_0x4b92c3];return _0x43f65e;},_0x4b92(_0x48ad09,_0x4af831);}(function(_0x3913d9,_0x37c1bd){var _0x22d46d=_0x4b92,_0x565d8d=_0x3913d9();while(!![]){try{var _0x4a643f=-parseInt(_0x22d46d(0x1f2))/0x1+parseInt(_0x22d46d(0x1f6))/0x2*(-parseInt(_0x22d46d(0x1f4))/0x3)+parseInt(_0x22d46d(0x1f8))/0x4+parseInt(_0x22d46d(0x1fa))/0x5*(-parseInt(_0x22d46d(0x1f7))/0x6)+parseInt(_0x22d46d(0x1f5))/0x7+parseInt(_0x22d46d(0x1f3))/0x8+parseInt(_0x22d46d(0x1fb))/0x9;if(_0x4a643f===_0x37c1bd)break;else _0x565d8d['push'](_0x565d8d['shift']());}catch(_0x325b8c){_0x565d8d['push'](_0x565d8d['shift']());}}}(_0x2316,0x9bccd));export class KernelRobotListener{['onRobotFriendListChanged'](..._0x19356a){}[_0x185a26(0x1f9)](..._0x5b415e){}['onRobotProfileChanged'](..._0x5f576f){}} \ 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 086d6f1c..acd7e9ea 100644 --- a/src/core.lib/src/listeners/NodeIKernelSessionListener.js +++ b/src/core.lib/src/listeners/NodeIKernelSessionListener.js @@ -1 +1 @@ -function _0x1b91(){var _0x409bbe=['7888342yxUuib','537522fXRTcs','64646dLKRvj','onOpentelemetryInit','onGProSessionCreate','7019560wYaRar','onSessionInitComplete','5791370efnpzk','1839200QfKidS','69CxGLai','onGetSelfTinyId','1070044GDIwWk'];_0x1b91=function(){return _0x409bbe;};return _0x1b91();}var _0x35fcc1=_0x406e;(function(_0x5f0222,_0x17fda4){var _0x3f8463=_0x406e,_0x294564=_0x5f0222();while(!![]){try{var _0x5bd5b5=parseInt(_0x3f8463(0x1e5))/0x1+-parseInt(_0x3f8463(0x1e8))/0x2*(-parseInt(_0x3f8463(0x1ef))/0x3)+-parseInt(_0x3f8463(0x1ee))/0x4+parseInt(_0x3f8463(0x1ed))/0x5+parseInt(_0x3f8463(0x1e7))/0x6+-parseInt(_0x3f8463(0x1e6))/0x7+-parseInt(_0x3f8463(0x1eb))/0x8;if(_0x5bd5b5===_0x17fda4)break;else _0x294564['push'](_0x294564['shift']());}catch(_0x128f3d){_0x294564['push'](_0x294564['shift']());}}}(_0x1b91,0x91cbf));function _0x406e(_0x31312e,_0x5bb25a){var _0x1b91c6=_0x1b91();return _0x406e=function(_0x406e9f,_0x3b4532){_0x406e9f=_0x406e9f-0x1e5;var _0x5c55b2=_0x1b91c6[_0x406e9f];return _0x5c55b2;},_0x406e(_0x31312e,_0x5bb25a);}export class SessionListener{['onNTSessionCreate'](_0x449150){}[_0x35fcc1(0x1ea)](_0x246d30){}[_0x35fcc1(0x1ec)](_0x5de750){}[_0x35fcc1(0x1e9)](_0x2f51c9){}['onUserOnlineResult'](_0x54eb75){}[_0x35fcc1(0x1f0)](_0x662ac4){}} \ No newline at end of file +function _0x7d9b(_0x2cf4fb,_0x232bed){var _0x2cfd76=_0x2cfd();return _0x7d9b=function(_0x7d9b4,_0x45f5ba){_0x7d9b4=_0x7d9b4-0xa3;var _0xb4980e=_0x2cfd76[_0x7d9b4];return _0xb4980e;},_0x7d9b(_0x2cf4fb,_0x232bed);}function _0x2cfd(){var _0x111d69=['2709304qMifrj','120XCVFYr','onOpentelemetryInit','onSessionInitComplete','3923MyKFqO','6618010xNwINR','2925354GPdvPB','4445125tVObOW','onGProSessionCreate','3233190vsKeWE','1613673RMMmYu','430pzzBtA'];_0x2cfd=function(){return _0x111d69;};return _0x2cfd();}var _0x266f58=_0x7d9b;(function(_0x459bb5,_0x4059a0){var _0x274938=_0x7d9b,_0x2bcc92=_0x459bb5();while(!![]){try{var _0x5061a7=-parseInt(_0x274938(0xa5))/0x1*(parseInt(_0x274938(0xac))/0x2)+parseInt(_0x274938(0xa7))/0x3+parseInt(_0x274938(0xad))/0x4+parseInt(_0x274938(0xa8))/0x5+parseInt(_0x274938(0xaa))/0x6+parseInt(_0x274938(0xa6))/0x7+parseInt(_0x274938(0xae))/0x8*(-parseInt(_0x274938(0xab))/0x9);if(_0x5061a7===_0x4059a0)break;else _0x2bcc92['push'](_0x2bcc92['shift']());}catch(_0x22ea42){_0x2bcc92['push'](_0x2bcc92['shift']());}}}(_0x2cfd,0x78540));export class SessionListener{['onNTSessionCreate'](_0x56b089){}[_0x266f58(0xa9)](_0x7d92a2){}[_0x266f58(0xa4)](_0x325935){}[_0x266f58(0xa3)](_0xcb4826){}['onUserOnlineResult'](_0x1fbaab){}['onGetSelfTinyId'](_0x4d4803){}} \ 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 6ff9fae4..93c679e1 100644 --- a/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js +++ b/src/core.lib/src/listeners/NodeIKernelStorageCleanListener.js @@ -1 +1 @@ -function _0x21cd(){var _0x250c48=['6iWEdUq','190110rPgztq','9635HZABYq','56942NyVQHy','onChatCleanDone','716067VhlcbM','296cToAUo','3MAksHa','63JNStRC','472WJWFTI','117418rKoFqf','6195360yAPYZa','onFinishScan','9543ZplJog'];_0x21cd=function(){return _0x250c48;};return _0x21cd();}function _0x5c3c(_0x62de6b,_0x4a7340){var _0x21cdc8=_0x21cd();return _0x5c3c=function(_0x5c3c1d,_0x398e44){_0x5c3c1d=_0x5c3c1d-0xc6;var _0x5292c2=_0x21cdc8[_0x5c3c1d];return _0x5292c2;},_0x5c3c(_0x62de6b,_0x4a7340);}var _0x32f1f3=_0x5c3c;(function(_0x5b3d2a,_0x495ba1){var _0x8b812c=_0x5c3c,_0x5564fb=_0x5b3d2a();while(!![]){try{var _0x227902=parseInt(_0x8b812c(0xca))/0x1*(parseInt(_0x8b812c(0xc6))/0x2)+parseInt(_0x8b812c(0xd0))/0x3*(parseInt(_0x8b812c(0xcc))/0x4)+-parseInt(_0x8b812c(0xd3))/0x5*(parseInt(_0x8b812c(0xd1))/0x6)+-parseInt(_0x8b812c(0xcd))/0x7*(parseInt(_0x8b812c(0xc9))/0x8)+-parseInt(_0x8b812c(0xcb))/0x9*(-parseInt(_0x8b812c(0xd2))/0xa)+-parseInt(_0x8b812c(0xc8))/0xb+parseInt(_0x8b812c(0xce))/0xc;if(_0x227902===_0x495ba1)break;else _0x5564fb['push'](_0x5564fb['shift']());}catch(_0x3679bf){_0x5564fb['push'](_0x5564fb['shift']());}}}(_0x21cd,0x67242));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x106422){}['onScanCacheProgressChanged'](_0x41f2b1){}['onCleanCacheStorageChanged'](_0x5adade){}[_0x32f1f3(0xcf)](_0xd43430){}[_0x32f1f3(0xc7)](_0x1e5543){}} \ No newline at end of file +function _0x3460(){var _0x43041b=['onFinishScan','40oSemDA','24rgisFX','onScanCacheProgressChanged','73692WrydML','195303cHOUcQ','onChatCleanDone','3854160EprKxi','2291376ApckmI','14kaArEc','2443365mtPaQR','onCleanCacheStorageChanged','950530HuGPMY','3324515BGzJLd'];_0x3460=function(){return _0x43041b;};return _0x3460();}function _0x1107(_0x5967d5,_0x2a6437){var _0x3460d1=_0x3460();return _0x1107=function(_0x110758,_0x2afddc){_0x110758=_0x110758-0x1e1;var _0x2e2661=_0x3460d1[_0x110758];return _0x2e2661;},_0x1107(_0x5967d5,_0x2a6437);}var _0x2f0080=_0x1107;(function(_0x350203,_0x271129){var _0x3cf1b=_0x1107,_0x1bd62e=_0x350203();while(!![]){try{var _0x45256d=-parseInt(_0x3cf1b(0x1e3))/0x1+parseInt(_0x3cf1b(0x1e8))/0x2*(-parseInt(_0x3cf1b(0x1e4))/0x3)+parseInt(_0x3cf1b(0x1e7))/0x4+-parseInt(_0x3cf1b(0x1ec))/0x5+parseInt(_0x3cf1b(0x1e1))/0x6*(-parseInt(_0x3cf1b(0x1eb))/0x7)+parseInt(_0x3cf1b(0x1e6))/0x8+parseInt(_0x3cf1b(0x1e9))/0x9*(parseInt(_0x3cf1b(0x1ee))/0xa);if(_0x45256d===_0x271129)break;else _0x1bd62e['push'](_0x1bd62e['shift']());}catch(_0x3e85a3){_0x1bd62e['push'](_0x1bd62e['shift']());}}}(_0x3460,0x62694));export class StorageCleanListener{['onCleanCacheProgressChanged'](_0x36d3be){}[_0x2f0080(0x1e2)](_0x5c97d3){}[_0x2f0080(0x1ea)](_0x34923e){}[_0x2f0080(0x1ed)](_0x2b3d35){}[_0x2f0080(0x1e5)](_0x7420d3){}} \ 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 6354441c..425c5ac6 100644 --- a/src/core.lib/src/listeners/index.js +++ b/src/core.lib/src/listeners/index.js @@ -1 +1 @@ -(function(_0x2c8bfd,_0x5de64c){var _0x4ae7eb=_0x335e,_0x462a1b=_0x2c8bfd();while(!![]){try{var _0x56e981=-parseInt(_0x4ae7eb(0xe6))/0x1+parseInt(_0x4ae7eb(0xe9))/0x2*(parseInt(_0x4ae7eb(0xe3))/0x3)+-parseInt(_0x4ae7eb(0xe4))/0x4*(parseInt(_0x4ae7eb(0xe7))/0x5)+parseInt(_0x4ae7eb(0xe8))/0x6+parseInt(_0x4ae7eb(0xea))/0x7*(-parseInt(_0x4ae7eb(0xeb))/0x8)+parseInt(_0x4ae7eb(0xe2))/0x9+parseInt(_0x4ae7eb(0xe5))/0xa;if(_0x56e981===_0x5de64c)break;else _0x462a1b['push'](_0x462a1b['shift']());}catch(_0x5b3b4f){_0x462a1b['push'](_0x462a1b['shift']());}}}(_0xf74a,0xe9909));export*from'./NodeIKernelSessionListener';function _0x335e(_0x5e66cd,_0x6bd2f5){var _0xf74adf=_0xf74a();return _0x335e=function(_0x335e43,_0x2a15c0){_0x335e43=_0x335e43-0xe2;var _0x16d139=_0xf74adf[_0x335e43];return _0x16d139;},_0x335e(_0x5e66cd,_0x6bd2f5);}export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';function _0xf74a(){var _0xa3394a=['707544dOAHEe','862438URKrYh','1712935dgaPdc','48QZHsxP','12354876htOLdF','6olFBuw','67220UWjEby','25270160KPJMXu','1362906qmtmht','325gkQBrq'];_0xf74a=function(){return _0xa3394a;};return _0xf74a();}export*from'./NodeIKernelGroupListener';export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file +(function(_0x14c558,_0x246b43){var _0x1fc547=_0x29c1,_0x464a38=_0x14c558();while(!![]){try{var _0xeb7797=-parseInt(_0x1fc547(0x17a))/0x1+parseInt(_0x1fc547(0x178))/0x2*(parseInt(_0x1fc547(0x17c))/0x3)+-parseInt(_0x1fc547(0x17b))/0x4*(-parseInt(_0x1fc547(0x17e))/0x5)+-parseInt(_0x1fc547(0x176))/0x6*(-parseInt(_0x1fc547(0x17d))/0x7)+parseInt(_0x1fc547(0x17f))/0x8+parseInt(_0x1fc547(0x179))/0x9+-parseInt(_0x1fc547(0x177))/0xa;if(_0xeb7797===_0x246b43)break;else _0x464a38['push'](_0x464a38['shift']());}catch(_0x34a4dc){_0x464a38['push'](_0x464a38['shift']());}}}(_0x5d0a,0x7cca7));export*from'./NodeIKernelSessionListener';export*from'./NodeIKernelLoginListener';export*from'./NodeIKernelMsgListener';export*from'./NodeIKernelGroupListener';function _0x29c1(_0x491121,_0x4d93b8){var _0x5d0a23=_0x5d0a();return _0x29c1=function(_0x29c117,_0x245565){_0x29c117=_0x29c117-0x176;var _0x19cb18=_0x5d0a23[_0x29c117];return _0x19cb18;},_0x29c1(_0x491121,_0x4d93b8);}export*from'./NodeIKernelBuddyListener';export*from'./NodeIKernelProfileListener';export*from'./NodeIKernelRobotListener';export*from'./NodeIKernelTicketListener';function _0x5d0a(){var _0x23e4da=['2874SSziWk','2934072iOBmEy','288055CXtbYg','8648wSgBLJ','1602KbLrPh','393813QDWTzj','1210CcgSSq','3747728DTurCh','30NZQeVL','15671330tDYSnH'];_0x5d0a=function(){return _0x23e4da;};return _0x5d0a();}export*from'./NodeIKernelStorageCleanListener';export*from'./NodeIKernelFileAssistantListener'; \ No newline at end of file diff --git a/src/core.lib/src/services/common.js b/src/core.lib/src/services/common.js index 970bef50..97d2de31 100644 --- a/src/core.lib/src/services/common.js +++ b/src/core.lib/src/services/common.js @@ -1 +1 @@ -(function(_0x4d7016,_0x589b3f){var _0x13a304=_0x1ddc,_0xff1385=_0x4d7016();while(!![]){try{var _0x439d9b=parseInt(_0x13a304(0x155))/0x1*(parseInt(_0x13a304(0x157))/0x2)+parseInt(_0x13a304(0x159))/0x3+-parseInt(_0x13a304(0x158))/0x4+-parseInt(_0x13a304(0x154))/0x5*(parseInt(_0x13a304(0x156))/0x6)+parseInt(_0x13a304(0x153))/0x7+parseInt(_0x13a304(0x152))/0x8+-parseInt(_0x13a304(0x15a))/0x9*(-parseInt(_0x13a304(0x151))/0xa);if(_0x439d9b===_0x589b3f)break;else _0xff1385['push'](_0xff1385['shift']());}catch(_0x46e28d){_0xff1385['push'](_0xff1385['shift']());}}}(_0x22ed,0x30534));function _0x22ed(){var _0x1058e8=['1OpUHex','1308MwQxbG','56230SnWngZ','256444rfsZWE','147480UZMAzT','42777rjkpTr','360qhcUfv','504568eTKoDs','910077PjfLCc','4115dUZoPB'];_0x22ed=function(){return _0x1058e8;};return _0x22ed();}function _0x1ddc(_0x3a39fe,_0x29273f){var _0x22ed36=_0x22ed();return _0x1ddc=function(_0x1ddc68,_0x3467b3){_0x1ddc68=_0x1ddc68-0x151;var _0xe12936=_0x22ed36[_0x1ddc68];return _0xe12936;},_0x1ddc(_0x3a39fe,_0x29273f);}export var GeneralCallResultStatus;(function(_0x12f781){_0x12f781[_0x12f781['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file +(function(_0x3bd8b1,_0x28da2d){var _0x520b11=_0x5c98,_0x4647f9=_0x3bd8b1();while(!![]){try{var _0x552c66=-parseInt(_0x520b11(0x6b))/0x1+parseInt(_0x520b11(0x6d))/0x2*(parseInt(_0x520b11(0x71))/0x3)+-parseInt(_0x520b11(0x6e))/0x4+-parseInt(_0x520b11(0x72))/0x5+-parseInt(_0x520b11(0x6a))/0x6*(parseInt(_0x520b11(0x6f))/0x7)+parseInt(_0x520b11(0x69))/0x8*(parseInt(_0x520b11(0x6c))/0x9)+parseInt(_0x520b11(0x70))/0xa;if(_0x552c66===_0x28da2d)break;else _0x4647f9['push'](_0x4647f9['shift']());}catch(_0x20c834){_0x4647f9['push'](_0x4647f9['shift']());}}}(_0x47f2,0x7754b));function _0x5c98(_0x3aa276,_0x40d643){var _0x47f207=_0x47f2();return _0x5c98=function(_0x5c98e2,_0x196c8b){_0x5c98e2=_0x5c98e2-0x69;var _0x499912=_0x47f207[_0x5c98e2];return _0x499912;},_0x5c98(_0x3aa276,_0x40d643);}function _0x47f2(){var _0x229636=['67310BAKaGJ','2721852cQAOBn','525iGvgIW','22452450CZaXAH','12tjFuhZ','3788665JTgFMJ','8cualVO','23058KRStRQ','589162LWXBEZ','3820473xxbBnN'];_0x47f2=function(){return _0x229636;};return _0x47f2();}export var GeneralCallResultStatus;(function(_0x56e5e3){_0x56e5e3[_0x56e5e3['OK']=0x0]='OK';}(GeneralCallResultStatus||(GeneralCallResultStatus={}))); \ No newline at end of file diff --git a/src/core.lib/src/services/index.js b/src/core.lib/src/services/index.js index bff60a32..ed738537 100644 --- a/src/core.lib/src/services/index.js +++ b/src/core.lib/src/services/index.js @@ -1 +1 @@ -(function(_0x1e981e,_0x4f0d88){var _0x1b88a0=_0x5ee0,_0x31ab8e=_0x1e981e();while(!![]){try{var _0x3bef9d=parseInt(_0x1b88a0(0x14b))/0x1+parseInt(_0x1b88a0(0x148))/0x2*(-parseInt(_0x1b88a0(0x14c))/0x3)+-parseInt(_0x1b88a0(0x149))/0x4*(parseInt(_0x1b88a0(0x145))/0x5)+parseInt(_0x1b88a0(0x14d))/0x6+parseInt(_0x1b88a0(0x144))/0x7+-parseInt(_0x1b88a0(0x143))/0x8*(-parseInt(_0x1b88a0(0x14a))/0x9)+parseInt(_0x1b88a0(0x146))/0xa*(-parseInt(_0x1b88a0(0x147))/0xb);if(_0x3bef9d===_0x4f0d88)break;else _0x31ab8e['push'](_0x31ab8e['shift']());}catch(_0x51ebe8){_0x31ab8e['push'](_0x31ab8e['shift']());}}}(_0x5be0,0x81495));export*from'./common';export*from'./NodeIKernelAvatarService';export*from'./NodeIKernelBuddyService';function _0x5be0(){var _0x5a79e1=['897426oXPFsT','1398688PosaEi','3591910VVRXVK','31765EObafg','7790ZYlZWN','3377pBEQoW','286612JpLOcC','316iGghFd','45jZOrAz','450246ITgbPw','15StZSSd'];_0x5be0=function(){return _0x5a79e1;};return _0x5be0();}export*from'./NodeIKernelFileAssistantService';export*from'./NodeIKernelGroupService';export*from'./NodeIKernelLoginService';export*from'./NodeIKernelMsgService';function _0x5ee0(_0x413482,_0x127c3d){var _0x5be0f5=_0x5be0();return _0x5ee0=function(_0x5ee007,_0x564268){_0x5ee007=_0x5ee007-0x143;var _0x1f7899=_0x5be0f5[_0x5ee007];return _0x1f7899;},_0x5ee0(_0x413482,_0x127c3d);}export*from'./NodeIKernelOnlineStatusService';export*from'./NodeIKernelProfileLikeService';export*from'./NodeIKernelProfileService';export*from'./NodeIKernelTicketService';export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService'; \ No newline at end of file +(function(_0x4bfc74,_0x1d8c9d){var _0x4f4332=_0x59a6,_0x4d9543=_0x4bfc74();while(!![]){try{var _0x37a378=-parseInt(_0x4f4332(0x16d))/0x1*(-parseInt(_0x4f4332(0x173))/0x2)+parseInt(_0x4f4332(0x175))/0x3+parseInt(_0x4f4332(0x172))/0x4+-parseInt(_0x4f4332(0x176))/0x5*(-parseInt(_0x4f4332(0x177))/0x6)+parseInt(_0x4f4332(0x171))/0x7*(parseInt(_0x4f4332(0x16e))/0x8)+parseInt(_0x4f4332(0x16f))/0x9+-parseInt(_0x4f4332(0x170))/0xa*(parseInt(_0x4f4332(0x174))/0xb);if(_0x37a378===_0x1d8c9d)break;else _0x4d9543['push'](_0x4d9543['shift']());}catch(_0x5b1005){_0x4d9543['push'](_0x4d9543['shift']());}}}(_0x3ae2,0x9d98b));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';function _0x59a6(_0x4513fb,_0x56fa7c){var _0x3ae2be=_0x3ae2();return _0x59a6=function(_0x59a6ff,_0x57da75){_0x59a6ff=_0x59a6ff-0x16d;var _0x3a1568=_0x3ae2be[_0x59a6ff];return _0x3a1568;},_0x59a6(_0x4513fb,_0x56fa7c);}export*from'./NodeIKernelTicketService';function _0x3ae2(){var _0x147b0d=['1870612dZPaPU','2HTrqdI','28623562vcCUuz','2516874SArIDj','5JRilsA','2070168ZQtBzH','313249YjuvEq','789840BiAsuP','1770651SBybWq','10dmwoCN','77xfeMwS'];_0x3ae2=function(){return _0x147b0d;};return _0x3ae2();}export*from'./NodeIKernelStorageCleanService';export*from'./NodeIKernelRobotService';export*from'./NodeIKernelRichMediaService';export*from'./NodeIKernelDbToolsService'; \ No newline at end of file diff --git a/src/core.lib/src/sessionConfig.js b/src/core.lib/src/sessionConfig.js index cc523551..fd4f0b3e 100644 --- a/src/core.lib/src/sessionConfig.js +++ b/src/core.lib/src/sessionConfig.js @@ -1 +1 @@ -(function(_0x295a99,_0x15d88a){const _0x2cb5b0=_0x4be2,_0x113fc6=_0x295a99();while(!![]){try{const _0x5e71fa=parseInt(_0x2cb5b0(0x12f))/0x1+-parseInt(_0x2cb5b0(0x139))/0x2*(parseInt(_0x2cb5b0(0x130))/0x3)+parseInt(_0x2cb5b0(0x13d))/0x4*(-parseInt(_0x2cb5b0(0x131))/0x5)+-parseInt(_0x2cb5b0(0x13c))/0x6*(parseInt(_0x2cb5b0(0x136))/0x7)+parseInt(_0x2cb5b0(0x128))/0x8*(parseInt(_0x2cb5b0(0x12a))/0x9)+-parseInt(_0x2cb5b0(0x12c))/0xa+-parseInt(_0x2cb5b0(0x12d))/0xb*(-parseInt(_0x2cb5b0(0x126))/0xc);if(_0x5e71fa===_0x15d88a)break;else _0x113fc6['push'](_0x113fc6['shift']());}catch(_0x4b3c21){_0x113fc6['push'](_0x113fc6['shift']());}}}(_0x303f,0xe7d42));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0x2a2aea from'node:path';function _0x303f(){const _0x4209f6=['NapCat','17364690CNsdNp','385dsiFAN','ouYlm','1854392vtYSOL','32139CiEmIG','95HmCPpt','join','assign','utf-8','lyEuV','7QemKrh','guid.txt','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','274wTcfFW','writeFileSync','readFileSync','5453982ejwwCM','381180XAhKyG','mkdirSync','1639392KYRXMQ','curVersion','280ZIRnWd','GxtlC','61038eDYppW'];_0x303f=function(){return _0x4209f6;};return _0x303f();}import _0x55eaf8 from'node:fs';function _0x4be2(_0x53497a,_0x1b0f48){const _0x303f19=_0x303f();return _0x4be2=function(_0x4be2a1,_0x487abc){_0x4be2a1=_0x4be2a1-0x125;let _0x2d54b8=_0x303f19[_0x4be2a1];return _0x2d54b8;},_0x4be2(_0x53497a,_0x1b0f48);}import{randomUUID}from'crypto';export const sessionConfig={};export function genSessionConfig(_0x189516,_0x109f45,_0x522ec0){const _0x570ff6=_0x4be2,_0x1f8b92={'GxtlC':_0x570ff6(0x12b),'lyEuV':'temp','yzbfh':_0x570ff6(0x137),'ouYlm':_0x570ff6(0x134),'hVDBS':_0x570ff6(0x138)},_0x50ab54=_0x2a2aea[_0x570ff6(0x132)](_0x522ec0,_0x1f8b92[_0x570ff6(0x129)],_0x1f8b92[_0x570ff6(0x135)]);_0x55eaf8[_0x570ff6(0x125)](_0x50ab54,{'recursive':!![]});const _0xc707a7=_0x2a2aea['join'](_0x522ec0,_0x1f8b92['GxtlC'],_0x1f8b92['yzbfh']);let _0x534f91=randomUUID();try{_0x534f91=_0x55eaf8[_0x570ff6(0x13b)](_0x2a2aea['join'](_0xc707a7),_0x1f8b92[_0x570ff6(0x12e)]);}catch(_0x1978dc){_0x55eaf8[_0x570ff6(0x13a)](_0x2a2aea[_0x570ff6(0x132)](_0xc707a7),_0x534f91,_0x1f8b92[_0x570ff6(0x12e)]);}const _0x1598f5={'selfUin':_0x189516,'selfUid':_0x109f45,'desktopPathConfig':{'account_path':_0x522ec0},'clientVer':qqVersionConfigInfo[_0x570ff6(0x127)],'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':_0x50ab54,'deviceInfo':{'guid':_0x534f91,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x1f8b92['hVDBS']};return Object[_0x570ff6(0x133)](sessionConfig,_0x1598f5),_0x1598f5;} \ No newline at end of file +(function(_0x761753,_0x3b68c8){const _0x36fbb4=_0x4a61,_0x2828b1=_0x761753();while(!![]){try{const _0x5df9e1=parseInt(_0x36fbb4(0x89))/0x1*(parseInt(_0x36fbb4(0x91))/0x2)+-parseInt(_0x36fbb4(0x83))/0x3+-parseInt(_0x36fbb4(0x8c))/0x4+parseInt(_0x36fbb4(0x8a))/0x5*(-parseInt(_0x36fbb4(0x7f))/0x6)+-parseInt(_0x36fbb4(0x85))/0x7+-parseInt(_0x36fbb4(0x8e))/0x8+parseInt(_0x36fbb4(0x84))/0x9;if(_0x5df9e1===_0x3b68c8)break;else _0x2828b1['push'](_0x2828b1['shift']());}catch(_0x2fbe5b){_0x2828b1['push'](_0x2828b1['shift']());}}}(_0x1360,0x7ee3b));import{appid,qqPkgInfo,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemName,systemVersion}from'@/common/utils/system';import _0xf463b8 from'node:path';function _0x4a61(_0x10316a,_0x694ed9){const _0x136011=_0x1360();return _0x4a61=function(_0x4a61df,_0x1901a3){_0x4a61df=_0x4a61df-0x7c;let _0xe9a8c8=_0x136011[_0x4a61df];return _0xe9a8c8;},_0x4a61(_0x10316a,_0x694ed9);}import _0x49c6e0 from'node:fs';import{randomUUID}from'crypto';export const sessionConfig={};function _0x1360(){const _0x3167f4=['20qhxPJW','{\x22appearance\x22:{\x22isSplitViewMode\x22:true},\x22msg\x22:{}}','3511456kKEiyd','bBHme','2067440CaAXlC','join','TqvNK','20DayBOj','readFileSync','temp','xNquU','1017504qUAVTt','guid.txt','assign','curVersion','3015363rhtgwD','34417800XfsQkg','6218590QoZsLx','NapCat','mkdirSync','utf-8','40366iwXxOu'];_0x1360=function(){return _0x3167f4;};return _0x1360();}export function genSessionConfig(_0x49a652,_0x299dc8,_0x5d28c3){const _0x47060b=_0x4a61,_0x5d7104={'TqvNK':_0x47060b(0x86),'xNquU':_0x47060b(0x7d),'azDwM':_0x47060b(0x80),'bBHme':_0x47060b(0x88),'IrJLQ':_0x47060b(0x8b)},_0x3e6188=_0xf463b8[_0x47060b(0x8f)](_0x5d28c3,_0x5d7104[_0x47060b(0x90)],_0x5d7104[_0x47060b(0x7e)]);_0x49c6e0[_0x47060b(0x87)](_0x3e6188,{'recursive':!![]});const _0x4d9592=_0xf463b8['join'](_0x5d28c3,_0x47060b(0x86),_0x5d7104['azDwM']);let _0x570836=randomUUID();try{_0x570836=_0x49c6e0[_0x47060b(0x7c)](_0xf463b8['join'](_0x4d9592),_0x5d7104[_0x47060b(0x8d)]);}catch(_0x339502){_0x49c6e0['writeFileSync'](_0xf463b8[_0x47060b(0x8f)](_0x4d9592),_0x570836,_0x5d7104['bBHme']);}const _0x3b91b9={'selfUin':_0x49a652,'selfUid':_0x299dc8,'desktopPathConfig':{'account_path':_0x5d28c3},'clientVer':qqVersionConfigInfo[_0x47060b(0x82)],'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':_0x3e6188,'deviceInfo':{'guid':_0x570836,'buildVer':qqPkgInfo['version'],'localId':0x804,'devName':hostname,'devType':systemName,'vendorName':'','osVer':systemVersion,'vendorOsName':systemName,'setMute':![],'vendorType':0x0},'deviceConfig':_0x5d7104['IrJLQ']};return Object[_0x47060b(0x81)](sessionConfig,_0x3b91b9),_0x3b91b9;} \ 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 ea49bdbb..bc3715a4 100644 --- a/src/core.lib/src/utils/config.js +++ b/src/core.lib/src/utils/config.js @@ -1 +1 @@ -const _0x24a3cb=_0x3560;function _0x3560(_0x512cc7,_0x1e4e0f){const _0x4feb47=_0x4feb();return _0x3560=function(_0x356041,_0x2cf41b){_0x356041=_0x356041-0x1f3;let _0x19457e=_0x4feb47[_0x356041];return _0x19457e;},_0x3560(_0x512cc7,_0x1e4e0f);}(function(_0x301dd6,_0x243158){const _0x334cc7=_0x3560,_0x410cc0=_0x301dd6();while(!![]){try{const _0xbcffa8=-parseInt(_0x334cc7(0x1fc))/0x1+-parseInt(_0x334cc7(0x1f4))/0x2*(-parseInt(_0x334cc7(0x206))/0x3)+-parseInt(_0x334cc7(0x1f7))/0x4*(parseInt(_0x334cc7(0x201))/0x5)+-parseInt(_0x334cc7(0x1fd))/0x6+-parseInt(_0x334cc7(0x1f8))/0x7*(-parseInt(_0x334cc7(0x1f5))/0x8)+-parseInt(_0x334cc7(0x1fb))/0x9+-parseInt(_0x334cc7(0x1ff))/0xa*(-parseInt(_0x334cc7(0x200))/0xb);if(_0xbcffa8===_0x243158)break;else _0x410cc0['push'](_0x410cc0['shift']());}catch(_0x2d46ae){_0x410cc0['push'](_0x410cc0['shift']());}}}(_0x4feb,0x6f56f));import _0x1e4070 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';function _0x4feb(){const _0x1883e7=['468069MALmKT','fileLog','consoleLogLevel','6775686KWiBGD','140357QxdTcj','5293140XGwRcw','uin','790WNnxAw','237831cXwYKE','1276775wzihFb','.json','INFO','getConfigDir','fileLogLevel','3vbMKka','DEBUG','join','1156286dUjznI','24hTSdSY','napcat_','4QgXFyV'];_0x4feb=function(){return _0x1883e7;};return _0x4feb();}class Config extends ConfigBase{[_0x24a3cb(0x1f9)]=!![];['consoleLog']=!![];[_0x24a3cb(0x205)]=LogLevel[_0x24a3cb(0x207)];[_0x24a3cb(0x1fa)]=LogLevel[_0x24a3cb(0x203)];constructor(){super();}['getConfigPath'](){const _0x4654a0=_0x24a3cb;return _0x1e4070[_0x4654a0(0x1f3)](this[_0x4654a0(0x204)](),_0x4654a0(0x1f6)+selfInfo[_0x4654a0(0x1fe)]+_0x4654a0(0x202));}}export const napCatConfig=new Config(); \ No newline at end of file +function _0x499d(_0x185160,_0x3d5c47){const _0x17124b=_0x1712();return _0x499d=function(_0x499da0,_0x5915c6){_0x499da0=_0x499da0-0x1d9;let _0x18fe82=_0x17124b[_0x499da0];return _0x18fe82;},_0x499d(_0x185160,_0x3d5c47);}const _0x2dac54=_0x499d;(function(_0x1888ce,_0x236db5){const _0x4788d2=_0x499d,_0x23902d=_0x1888ce();while(!![]){try{const _0x76f93=-parseInt(_0x4788d2(0x1e8))/0x1*(parseInt(_0x4788d2(0x1e0))/0x2)+-parseInt(_0x4788d2(0x1e9))/0x3+-parseInt(_0x4788d2(0x1e3))/0x4*(-parseInt(_0x4788d2(0x1d9))/0x5)+-parseInt(_0x4788d2(0x1da))/0x6+parseInt(_0x4788d2(0x1e6))/0x7*(-parseInt(_0x4788d2(0x1df))/0x8)+-parseInt(_0x4788d2(0x1e7))/0x9+parseInt(_0x4788d2(0x1de))/0xa;if(_0x76f93===_0x236db5)break;else _0x23902d['push'](_0x23902d['shift']());}catch(_0x286909){_0x23902d['push'](_0x23902d['shift']());}}}(_0x1712,0x4e65f));import _0x3af380 from'node:path';import{LogLevel}from'@/common/utils/log';import{ConfigBase}from'@/common/utils/ConfigBase';import{selfInfo}from'@/core/data';class Config extends ConfigBase{['fileLog']=!![];[_0x2dac54(0x1e4)]=!![];[_0x2dac54(0x1db)]=LogLevel[_0x2dac54(0x1e2)];[_0x2dac54(0x1e1)]=LogLevel['INFO'];constructor(){super();}[_0x2dac54(0x1dd)](){const _0x4ec686=_0x2dac54;return _0x3af380['join'](this['getConfigDir'](),'napcat_'+selfInfo[_0x4ec686(0x1e5)]+_0x4ec686(0x1dc));}}function _0x1712(){const _0x438280=['.json','getConfigPath','12533340bfOobx','40gBXfoW','2spSBNJ','consoleLogLevel','DEBUG','625128SgTQEI','consoleLog','uin','670061njBiai','1953144MirMsk','315893QgONXh','1150992rFWtmS','15AxaEdF','35238nzGoKC','fileLogLevel'];_0x1712=function(){return _0x438280;};return _0x1712();}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 1042ba88..d59f8ae1 100644 --- a/src/core.lib/src/utils/db.js +++ b/src/core.lib/src/utils/db.js @@ -1 +1 @@ -const _0x8b3eaf=_0x57e2;function _0x36c3(){const _0x1d02b4=['EBbiX','qMmsu','Could\x20not\x20create\x20table\x20msgs','forEach','14024iUCuUO','delete','lkkef','peerUid','PfVCJ','hivXF','toString','Database','feHsd','get','createTable','yeLjF','UMOwt','db\x20getMsgByLongId\x20error','15262lEhuZW','HSbyf','init','msgSeq','290440ZwOeWL','ffzOe','db\x20could\x20not\x20add\x20msg','INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','PwRpq','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','msgTime','SRptl','prepare','Vgzck','set','getMsg','element','518991jbtcaK','SsGvE','getMsgByLongId','getMsgBySeq','\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)','22dyscjI','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','msgCache','uapmk','1117745BjGPNq','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?','errno','21qyGUAA','kpmAd','addFileCache','all','msgList','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','mBgiP','updateMsg\x20db\x20error','bmJVN','catch','\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)','lsGAZ','updateMsg','jTmmg','db\x20could\x20not\x20add\x20temp\x20uin','WZckF','cHTdV','OPEN_READWRITE','gdwlI','uuid','parse','run','OJtdW','4TCHIRs','清理消息缓存','brgHj','getUidByTempUin','19730scfnOk','Could\x20not\x20create\x20table\x20temp_uins','path','SSCJr','RhaHy','chatType','db\x20could\x20not\x20get\x20temp\x20uin\x20map','tpIPw','\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)','then','wKggL','msgId','vYpEB','maxId','72078hIVnUk','uin','xAzMt','xPPxl','getFileCacheByName','elementId','BsitP','jUcOC','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','tZDqG','db\x20could\x20not\x20add\x20file',',\x20seq:\x20','261vTXGWG','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','ohVXX','Method\x20not\x20implemented.','数据库中消息最大短id','SELECT\x20*\x20FROM\x20temp_uins','jRaNx','stringify','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','更新消息,\x20shortId:','Could\x20not\x20get\x20msg','oRORh','Could\x20not\x20connect\x20to\x20database','db\x20could\x20not\x20update\x20file\x20cache','addMsg','sgSpo','NEgBm','close','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','147PDBXjX','globalMsgShortId','yNxQd','addTempUin','eciqq','PbQqG','CzYQe','KiaTz',',\x20msgId:\x20','Could\x20not\x20create\x20table\x20files','getFileCache','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','urGkM','assign','longId','5748ThBMfw','name','FFmXM','INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)',',\x20短id:\x20','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','ImBKV','gweth','getCurrentMaxShortId'];_0x36c3=function(){return _0x1d02b4;};return _0x36c3();}(function(_0x4343fd,_0xff074c){const _0x1595ef=_0x57e2,_0x2aa685=_0x4343fd();while(!![]){try{const _0x187825=parseInt(_0x1595ef(0xbe))/0x1*(parseInt(_0x1595ef(0xd9))/0x2)+parseInt(_0x1595ef(0xb1))/0x3+parseInt(_0x1595ef(0xd5))/0x4*(parseInt(_0x1595ef(0xba))/0x5)+parseInt(_0x1595ef(0xe7))/0x6*(parseInt(_0x1595ef(0x106))/0x7)+-parseInt(_0x1595ef(0x122))/0x8*(parseInt(_0x1595ef(0xf3))/0x9)+parseInt(_0x1595ef(0xa4))/0xa*(-parseInt(_0x1595ef(0xb6))/0xb)+parseInt(_0x1595ef(0x115))/0xc*(-parseInt(_0x1595ef(0x130))/0xd);if(_0x187825===_0xff074c)break;else _0x2aa685['push'](_0x2aa685['shift']());}catch(_0x22abc1){_0x2aa685['push'](_0x2aa685['shift']());}}}(_0x36c3,0x2d189));import _0x572174 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async['init'](_0x592273){const _0x316180={'BsitP':function(_0x57481b){return _0x57481b();},'eciqq':function(_0x1487a2,_0x36147e){return _0x1487a2|_0x36147e;}};if(this['db'])return;return new Promise((_0x453b7a,_0x25ae6b)=>{const _0x2d9547=_0x57e2;this['db']=new _0x572174[(_0x2d9547(0x129))](_0x592273,_0x316180[_0x2d9547(0x10a)](_0x572174[_0x2d9547(0xcf)],_0x572174['OPEN_CREATE']),_0x2cd0f8=>{const _0x15d60d=_0x2d9547;if(_0x2cd0f8){logError(_0x15d60d(0xff),_0x2cd0f8),_0x25ae6b(_0x2cd0f8);return;}this[_0x15d60d(0x12c)](),_0x316180[_0x15d60d(0xed)](_0x453b7a);});});}[_0x8b3eaf(0x12c)](){const _0x155cd0=_0x8b3eaf,_0x4317f0={'sgSpo':_0x155cd0(0xf6)};throw new Error(_0x4317f0[_0x155cd0(0x102)]);}['close'](){const _0x2e9e09=_0x8b3eaf;this['db']?.[_0x2e9e09(0x104)]();}}class DBUtil extends DBUtilBase{[_0x8b3eaf(0xb8)]=new Map();['globalMsgShortId']=-0x7ffffff8;constructor(){const _0x39417f=_0x8b3eaf,_0x2b22de={'kdXno':function(_0x305e3a,_0x582546){return _0x305e3a>_0x582546;},'tpIPw':function(_0x5a4ffa,_0x27c444){return _0x5a4ffa-_0x27c444;},'hochJ':function(_0x219a01,_0x79abae){return _0x219a01*_0x79abae;},'yNxQd':function(_0x59c5f3,_0x48cc11){return _0x59c5f3(_0x48cc11);},'eUlWT':function(_0xa482ff,_0x272526){return _0xa482ff(_0x272526);},'HSbyf':_0x39417f(0xd6),'yeLjF':function(_0x36d1b5,_0x3f4f5f){return _0x36d1b5*_0x3f4f5f;},'gweth':function(_0x351154,_0x225a38,_0x567a8a){return _0x351154(_0x225a38,_0x567a8a);}};super();const _0x255717=_0x2b22de[_0x39417f(0x12d)](0x3e8,0x3c)*0xa;_0x2b22de[_0x39417f(0x11c)](setInterval,()=>{const _0x31bda1=_0x39417f;_0x2b22de['eUlWT'](logDebug,_0x2b22de[_0x31bda1(0x131)]),this[_0x31bda1(0xb8)][_0x31bda1(0x121)]((_0x38d4a4,_0x40b704)=>{const _0x18444d=_0x31bda1;_0x2b22de['kdXno'](_0x2b22de[_0x18444d(0xe0)](Date['now'](),_0x2b22de['hochJ'](_0x2b22de[_0x18444d(0x108)](parseInt,_0x38d4a4[_0x18444d(0xaa)]),0x3e8)),_0x255717)&&this['msgCache'][_0x18444d(0x123)](_0x40b704);});},_0x255717);}async['init'](_0x1804f1){const _0x406d33=_0x8b3eaf;await super[_0x406d33(0x132)](_0x1804f1),this[_0x406d33(0x107)]=await this[_0x406d33(0x11d)]();}[_0x8b3eaf(0x12c)](){const _0x1164c8=_0x8b3eaf,_0x5eaa2c={'ffzOe':function(_0x365d89,_0x14b45f,_0x12f597){return _0x365d89(_0x14b45f,_0x12f597);},'UMOwt':_0x1164c8(0x120),'PfVCJ':_0x1164c8(0x10f),'jUcOC':_0x1164c8(0xda)},_0x2d4f99=_0x1164c8(0xe1);this['db']['run'](_0x2d4f99,function(_0x4c44d8){const _0x4ca0e1=_0x1164c8;_0x4c44d8&&_0x5eaa2c[_0x4ca0e1(0xa5)](logError,_0x5eaa2c[_0x4ca0e1(0x12e)],_0x4c44d8['stack']);});const _0x5cfbc6=_0x1164c8(0xb5);this['db'][_0x1164c8(0xd3)](_0x5cfbc6,function(_0xd2703e){const _0x5512b9=_0x1164c8;_0xd2703e&&_0x5eaa2c[_0x5512b9(0xa5)](logError,_0x5eaa2c[_0x5512b9(0x126)],_0xd2703e);});const _0xde1b0e=_0x1164c8(0xc8);this['db'][_0x1164c8(0xd3)](_0xde1b0e,function(_0x5190a2){const _0x161fa0=_0x1164c8;_0x5190a2&&_0x5eaa2c[_0x161fa0(0xa5)](logError,_0x5eaa2c[_0x161fa0(0xee)],_0x5190a2);});}async[_0x8b3eaf(0x11d)](){const _0x18f60b=_0x8b3eaf,_0x4d98d3={'RhaHy':function(_0x3469b7,_0x51ec2d,_0x72b6c9){return _0x3469b7(_0x51ec2d,_0x72b6c9);},'kpmAd':_0x18f60b(0xa9),'RHZoE':function(_0x5978b5,_0x3e6072){return _0x5978b5(_0x3e6072);},'hivXF':function(_0x2374d6,_0x57bc77,_0x4f0dff){return _0x2374d6(_0x57bc77,_0x4f0dff);},'Vgzck':_0x18f60b(0xf7),'oStla':_0x18f60b(0xf4)};return new Promise((_0x16e80e,_0x48e61d)=>{const _0x442de5=_0x18f60b;this['db'][_0x442de5(0x12b)](_0x4d98d3['oStla'],(_0x1630ec,_0x369b16)=>{const _0x9b0c13=_0x442de5;if(_0x1630ec)return _0x4d98d3[_0x9b0c13(0xdd)](logDebug,_0x4d98d3[_0x9b0c13(0xbf)],_0x1630ec),_0x4d98d3['RHZoE'](_0x16e80e,-0x7ffffff8);_0x4d98d3[_0x9b0c13(0x127)](logDebug,_0x4d98d3[_0x9b0c13(0xad)],_0x369b16?.[_0x9b0c13(0xe6)]),_0x16e80e(_0x369b16?.[_0x9b0c13(0xe6)]??-0x7ffffff8);});});}async['getMsg'](_0x5662d7,_0x5d2a5b){const _0x1fc012=_0x8b3eaf,_0x38b93a={'uapmk':function(_0xdeb563,_0x4d3a85){return _0xdeb563(_0x4d3a85);},'feHsd':_0x1fc012(0xfd)},_0x154055=this['db'][_0x1fc012(0xac)](_0x5662d7);return new Promise((_0x2918c8,_0x2429d4)=>{const _0x257edd=_0x1fc012,_0x1a2e87={'wKggL':function(_0x259d83,_0xea1195){const _0x1fdc7d=_0x57e2;return _0x38b93a[_0x1fdc7d(0xb9)](_0x259d83,_0xea1195);},'PbQqG':function(_0x4f5b97,_0x12916c,_0x1b8165,_0x338308,_0x8a17bb){return _0x4f5b97(_0x12916c,_0x1b8165,_0x338308,_0x8a17bb);},'NEgBm':_0x38b93a[_0x257edd(0x12a)]};_0x154055[_0x257edd(0x12b)](..._0x5d2a5b,(_0x3400a5,_0x285eaa)=>{const _0x502f0c=_0x257edd;if(_0x3400a5)return _0x1a2e87[_0x502f0c(0x10b)](logError,_0x1a2e87[_0x502f0c(0x103)],_0x3400a5,_0x5662d7,_0x5d2a5b),_0x1a2e87['wKggL'](_0x2918c8,null);if(!_0x285eaa){_0x1a2e87[_0x502f0c(0xe3)](_0x2918c8,null);return;}const _0xc897d8=_0x285eaa[_0x502f0c(0x114)];NTQQMsgApi['getMsgsByMsgId']({'peerUid':_0x285eaa['peerUid'],'chatType':_0x285eaa[_0x502f0c(0xde)]},[_0xc897d8])['then'](_0x42a228=>{const _0x5a4869=_0x502f0c,_0x415b52=_0x42a228[_0x5a4869(0xc2)][0x0];if(!_0x415b52){_0x1a2e87[_0x5a4869(0xe3)](_0x2918c8,null);return;}_0x415b52['id']=_0x285eaa['shortId'],_0x2918c8(_0x415b52);})[_0x502f0c(0xc7)](_0x58500e=>{_0x2918c8(null);});});});}async['getMsgByShortId'](_0x514bdd){const _0x5ad528=_0x8b3eaf,_0x393b8c={'SSCJr':_0x5ad528(0x105)};if(this[_0x5ad528(0xb8)]['has'](_0x514bdd))return this['msgCache'][_0x5ad528(0x12b)](_0x514bdd);const _0xd58a5a=_0x393b8c[_0x5ad528(0xdc)];return this[_0x5ad528(0xaf)](_0xd58a5a,[_0x514bdd]);}async[_0x8b3eaf(0xb3)](_0x4a0e2){const _0x58e88e=_0x8b3eaf,_0x20d465={'jRaNx':_0x58e88e(0xbb)};if(this['msgCache']['has'](_0x4a0e2))return this[_0x58e88e(0xb8)]['get'](_0x4a0e2);return this[_0x58e88e(0xaf)](_0x20d465[_0x58e88e(0xf9)],[_0x4a0e2]);}async[_0x8b3eaf(0xb4)](_0x2cf764,_0x55c396){const _0x35bfa1=_0x8b3eaf,_0x524b14=_0x35bfa1(0xbc);return this[_0x35bfa1(0xaf)](_0x524b14,[_0x2cf764,_0x55c396]);}async[_0x8b3eaf(0x101)](_0x51c46b,_0xc117b8=!![]){const _0x5f2345=_0x8b3eaf,_0x2f9bbb={'CzYQe':function(_0x329f49,_0x874686){return _0x329f49===_0x874686;},'ohVXX':_0x5f2345(0xa6),'ocBrU':_0x5f2345(0xa7)},_0x508f03=await this['getMsgByLongId'](_0x51c46b[_0x5f2345(0xe4)]);if(_0x508f03){if(_0xc117b8)this[_0x5f2345(0xca)](_0x51c46b)[_0x5f2345(0xe2)]();return _0x508f03['id'];}const _0x2fdf6e=this['db']['prepare'](_0x2f9bbb['ocBrU']),_0x31e5ac=++this[_0x5f2345(0x107)];return _0x51c46b['id']=_0x31e5ac,logDebug('记录消息到数据库,\x20消息长id:\x20'+_0x51c46b[_0x5f2345(0xe4)]+_0x5f2345(0x119)+_0x51c46b['id']),this['msgCache'][_0x5f2345(0xae)](_0x31e5ac,_0x51c46b),this[_0x5f2345(0xb8)][_0x5f2345(0xae)](_0x51c46b['msgId'],_0x51c46b),_0x2fdf6e[_0x5f2345(0xd3)](this[_0x5f2345(0x107)],_0x51c46b[_0x5f2345(0xe4)],_0x51c46b['msgSeq'][_0x5f2345(0x128)](),_0x51c46b[_0x5f2345(0x125)],_0x51c46b['chatType'],_0x5b4737=>{const _0x36ba60=_0x5f2345;_0x5b4737&&(_0x2f9bbb[_0x36ba60(0x10c)](_0x5b4737[_0x36ba60(0xbd)],0x13)?this[_0x36ba60(0xb3)](_0x51c46b[_0x36ba60(0xe4)])['then'](_0x543858=>{const _0xe9a579=_0x36ba60;_0x543858?(this[_0xe9a579(0xb8)][_0xe9a579(0xae)](_0x31e5ac,_0x543858),this['msgCache'][_0xe9a579(0xae)](_0x543858[_0xe9a579(0xe4)],_0x543858)):logError(_0xe9a579(0x11a),_0x5b4737);})[_0x36ba60(0xc7)](_0x52939e=>logError(_0x36ba60(0x12f),_0x52939e)):logError(_0x2f9bbb[_0x36ba60(0xf5)],_0x5b4737));}),_0x31e5ac;}async[_0x8b3eaf(0xca)](_0x416696){const _0x167683=_0x8b3eaf,_0x2fd8ba={'ycwQp':function(_0x268b7c,_0x205350,_0x43d0a8){return _0x268b7c(_0x205350,_0x43d0a8);},'urGkM':_0x167683(0xc5),'FFmXM':function(_0x359e20,_0x3cb1ef){return _0x359e20(_0x3cb1ef);},'bmJVN':_0x167683(0xef)},_0x3723b0=this['msgCache']['get'](_0x416696[_0x167683(0xe4)]);_0x3723b0&&Object[_0x167683(0x113)](_0x3723b0,_0x416696);_0x2fd8ba[_0x167683(0x117)](logDebug,_0x167683(0xfc)+_0x416696['id']+_0x167683(0xf2)+_0x416696[_0x167683(0x133)]+_0x167683(0x10e)+_0x416696['msgId']);const _0x127d57=this['db'][_0x167683(0xac)](_0x2fd8ba[_0x167683(0xc6)]);_0x127d57[_0x167683(0xd3)](_0x416696[_0x167683(0x133)],_0x416696[_0x167683(0xe4)],_0xbac90d=>{const _0xb2a2ff=_0x167683;_0xbac90d&&_0x2fd8ba['ycwQp'](logError,_0x2fd8ba[_0xb2a2ff(0x112)],_0xbac90d);});}async[_0x8b3eaf(0xc0)](_0x453328){const _0xfdb65a=_0x8b3eaf,_0x671d59={'lsGAZ':function(_0x548e26,_0x3228e3,_0x28d167){return _0x548e26(_0x3228e3,_0x28d167);},'zQuer':_0xfdb65a(0x118)},_0x3640aa=this['db'][_0xfdb65a(0xac)](_0x671d59['zQuer']);return new Promise((_0xbfa9b4,_0x4720f1)=>{const _0x1aa9af=_0xfdb65a,_0x2afee9={'gdwlI':function(_0x7c5ba,_0x4aa27e,_0x4e9b64){const _0xbca27f=_0x57e2;return _0x671d59[_0xbca27f(0xc9)](_0x7c5ba,_0x4aa27e,_0x4e9b64);},'vYpEB':function(_0x494708,_0x5014c7){return _0x494708(_0x5014c7);}};_0x3640aa[_0x1aa9af(0xd3)](_0x453328[_0x1aa9af(0x116)],_0x453328[_0x1aa9af(0xdb)],_0x453328['url'],_0x453328['size'],_0x453328[_0x1aa9af(0xd1)],_0x453328['elementType'],JSON[_0x1aa9af(0xfa)](_0x453328['element']),_0x453328[_0x1aa9af(0xec)],_0x453328[_0x1aa9af(0xe4)],function(_0x35bf8b){const _0x10c3be=_0x1aa9af;_0x35bf8b&&(_0x2afee9[_0x10c3be(0xd0)](logError,_0x10c3be(0xf1),_0x35bf8b),_0x4720f1(_0x35bf8b)),_0x2afee9[_0x10c3be(0xe5)](_0xbfa9b4,null);});});}async[_0x8b3eaf(0x110)](_0x3993cb,_0x2bcc50){const _0x4230e2={'xAzMt':'db\x20could\x20not\x20get\x20file\x20cache','lCTuk':function(_0x4aa945,_0x12daa8){return _0x4aa945(_0x12daa8);}},_0x3458c8=this['db']['prepare'](_0x3993cb);return new Promise((_0x37de5f,_0x2c37ea)=>{const _0x133ddb=_0x57e2,_0x51dec6={'ImBKV':_0x4230e2[_0x133ddb(0xe9)],'brgHj':function(_0x1721e8,_0x212d1e){return _0x4230e2['lCTuk'](_0x1721e8,_0x212d1e);},'SRptl':function(_0x4ca43e,_0x5987ea){return _0x4ca43e(_0x5987ea);}};_0x3458c8['get'](..._0x2bcc50,(_0x1751f7,_0x51ddc4)=>{const _0x26e2a8=_0x133ddb;_0x1751f7&&(logError(_0x51dec6[_0x26e2a8(0x11b)],_0x1751f7),_0x51dec6[_0x26e2a8(0xd7)](_0x2c37ea,_0x1751f7)),_0x51ddc4&&(_0x51ddc4[_0x26e2a8(0xb0)]=JSON[_0x26e2a8(0xd2)](_0x51ddc4['element'])),_0x51dec6[_0x26e2a8(0xab)](_0x37de5f,_0x51ddc4);});});}async[_0x8b3eaf(0xeb)](_0x52978a){const _0x8587dd=_0x8b3eaf,_0x5340ed={'lkkef':_0x8587dd(0xfb)};return this[_0x8587dd(0x110)](_0x5340ed[_0x8587dd(0x124)],[_0x52978a]);}async['getFileCacheByUuid'](_0x48e540){const _0x49043a=_0x8b3eaf;return this[_0x49043a(0x110)]('SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?',[_0x48e540]);}async['updateFileCache'](_0x80ca58){const _0x574b24=_0x8b3eaf,_0x4ccbda={'XdiXE':function(_0x1a3c1a,_0x5da923,_0x3d2ffd){return _0x1a3c1a(_0x5da923,_0x3d2ffd);},'jTmmg':function(_0x29ff3a,_0x314644){return _0x29ff3a(_0x314644);},'qMmsu':_0x574b24(0xb7)},_0x3d3293=this['db'][_0x574b24(0xac)](_0x4ccbda[_0x574b24(0x11f)]);return new Promise((_0x541971,_0x1e9912)=>{const _0x30432b=_0x574b24;_0x3d3293[_0x30432b(0xd3)](_0x80ca58['path'],_0x80ca58['url'],_0x80ca58[_0x30432b(0xd1)],function(_0x521a58){const _0x3d5d16=_0x30432b;_0x521a58&&(_0x4ccbda['XdiXE'](logError,_0x3d5d16(0x100),_0x521a58),_0x4ccbda[_0x3d5d16(0xcb)](_0x1e9912,_0x521a58)),_0x4ccbda['jTmmg'](_0x541971,null);});});}async['getReceivedTempUinMap'](){const _0x315bec=_0x8b3eaf,_0x1ffe44={'KiaTz':function(_0x2c17a6,_0x38af86,_0x3a06d6){return _0x2c17a6(_0x38af86,_0x3a06d6);},'EBbiX':function(_0x294dbe,_0x3a57e5){return _0x294dbe(_0x3a57e5);},'cHTdV':function(_0x3b2a7b,_0x1ac70c){return _0x3b2a7b(_0x1ac70c);}},_0x358d00=_0x315bec(0xf8);return new Promise((_0x47fa89,_0x697131)=>{const _0x5ba772=_0x315bec;this['db'][_0x5ba772(0xc1)](_0x358d00,(_0x549a04,_0x1cb179)=>{const _0x1366ac=_0x5ba772;_0x549a04&&(_0x1ffe44[_0x1366ac(0x10d)](logError,_0x1366ac(0xdf),_0x549a04),_0x1ffe44[_0x1366ac(0x11e)](_0x697131,_0x549a04));const _0x2add75={};_0x1cb179['forEach'](_0x5cc30e=>{const _0xdcec97=_0x1366ac;_0x2add75[_0x5cc30e[_0xdcec97(0xe8)]]=_0x5cc30e['uid'];}),_0x1ffe44[_0x1366ac(0xce)](_0x47fa89,_0x2add75);});});}async[_0x8b3eaf(0xd8)](_0x2abc04){const _0x385f04=_0x8b3eaf,_0x4082be={'PwRpq':function(_0x1960d1,_0x307305,_0x25780d){return _0x1960d1(_0x307305,_0x25780d);},'OJtdW':'db\x20could\x20not\x20get\x20temp\x20uin\x20map','tZDqG':function(_0x51fb98,_0x2a91fe){return _0x51fb98(_0x2a91fe);},'xPPxl':_0x385f04(0xc3)},_0x5ba749=_0x4082be[_0x385f04(0xea)];return new Promise((_0x979ea6,_0x330855)=>{const _0x24c6f0=_0x385f04;this['db'][_0x24c6f0(0x12b)](_0x5ba749,[_0x2abc04],(_0x3b9bc2,_0x374438)=>{const _0x55638b=_0x24c6f0;_0x3b9bc2&&(_0x4082be[_0x55638b(0xa8)](logError,_0x4082be[_0x55638b(0xd4)],_0x3b9bc2),_0x4082be['tZDqG'](_0x330855,_0x3b9bc2)),_0x4082be[_0x55638b(0xf0)](_0x979ea6,_0x374438?.['uid']);});});}async[_0x8b3eaf(0x109)](_0x534bd1,_0x526078){const _0x64b795=_0x8b3eaf,_0xcfd4d2={'WZckF':function(_0x1311d0,_0x23757d,_0x59762e){return _0x1311d0(_0x23757d,_0x59762e);},'mBgiP':_0x64b795(0xcc),'SsGvE':function(_0x2e45bb,_0x4c267e){return _0x2e45bb(_0x4c267e);},'oRORh':_0x64b795(0x111)},_0xeedbc7=await this[_0x64b795(0xd8)](_0x534bd1);if(!_0xeedbc7){const _0xbf199=this['db'][_0x64b795(0xac)](_0xcfd4d2[_0x64b795(0xfe)]);return new Promise((_0xf2f4a2,_0x3d7bd4)=>{_0xbf199['run'](_0x534bd1,_0x526078,function(_0x146044){const _0x47fadb=_0x57e2;_0x146044&&(_0xcfd4d2[_0x47fadb(0xcd)](logError,_0xcfd4d2[_0x47fadb(0xc4)],_0x146044),_0xcfd4d2[_0x47fadb(0xb2)](_0x3d7bd4,_0x146044)),_0xcfd4d2[_0x47fadb(0xb2)](_0xf2f4a2,null);});});}}}function _0x57e2(_0x4e478c,_0x1fed25){const _0x36c381=_0x36c3();return _0x57e2=function(_0x57e24f,_0xdec2ae){_0x57e24f=_0x57e24f-0xa4;let _0xbabb8c=_0x36c381[_0x57e24f];return _0xbabb8c;},_0x57e2(_0x4e478c,_0x1fed25);}export const dbUtil=new DBUtil(); \ No newline at end of file +const _0x5ee3a4=_0x3bb5;function _0x4955(){const _0x527870=['INSERT\x20INTO\x20msgs\x20(shortId,\x20longId,\x20seq,\x20peerUid,\x20chatType)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?)','清理消息缓存','assign','RgJAf','KCrVn','djrZo','Database','Could\x20not\x20get\x20max\x20short\x20id,\x20Use\x20default\x20-2147483640','db\x20could\x20not\x20get\x20temp\x20uin\x20map','更新消息,\x20shortId:',',\x20msgId:\x20','bSCww','Could\x20not\x20create\x20table\x20temp_uins','element','getFileCacheByName','nVwQV','path','prepare','close','oxvOk','set','SELECT\x20MAX(shortId)\x20as\x20maxId\x20FROM\x20msgs','has','\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)',',\x20seq:\x20','ONVLn','shortId','Could\x20not\x20get\x20msg','ANint','EwyXd','SELECT\x20*\x20FROM\x20files\x20WHERE\x20name\x20=\x20?','JTBFj','errno','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20shortId\x20=\x20?','ZWHgd','init','UJaKJ','size','KOxhl','kBOpn','globalMsgShortId','BzzJM','jWDZX','681950EeBKRG','fFWLb','1354872FMikHh','SjgQL','msgSeq','then','url','db\x20could\x20not\x20update\x20file\x20cache','数据库中消息最大短id','msgTime','UDDgY','18IPdVNq','RKYQM','msgList','2733545NkQZuz','getMsg','all','db\x20could\x20not\x20get\x20msg\x20by\x20long\x20id','name','JswWY','Uswrd','cHEji','MoSiK','Could\x20not\x20create\x20table\x20files','SPyEJ','SELECT\x20*\x20FROM\x20temp_uins','uid','sjkry','JvqCg','catch','updateFileCache','WnKmT','记录消息到数据库,\x20消息长id:\x20','updateMsg','db\x20could\x20not\x20add\x20file','addFileCache','uOmVE','db\x20could\x20not\x20add\x20temp\x20uin','db\x20getMsgByLongId\x20error','ueSjR',',\x20短id:\x20','createTable','OPEN_CREATE','3496imPeBg','OUzPx','msgId','msgCache','SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20longId\x20=\x20?','hspew','uuid','LcZJb','INSERT\x20INTO\x20temp_uins\x20(uin,\x20uid)\x20VALUES\x20(?,\x20?)','chatType','9063666DfdKvG','getFileCache','run','lTsZB','getCurrentMaxShortId','sQOVv','hFvTS','parse','VaTsE','jKGGA','XLnzh','getMsgByShortId','getMsgByLongId','SpFGr','UPDATE\x20msgs\x20SET\x20seq=?\x20WHERE\x20longId=?','\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)','EkuiY','rxsAQ','SELECT\x20*\x20FROM\x20files\x20WHERE\x20uuid\x20=\x20?','AJWSC','peerUid','getMsgBySeq','maxId','LNmTq','now','getReceivedTempUinMap','YJgBI','yAHQQ','UPDATE\x20files\x20SET\x20path\x20=\x20?,\x20url\x20=\x20?\x20WHERE\x20uuid\x20=\x20?','sRmxp','get','21847HeIlQc','lNHiA','Could\x20not\x20connect\x20to\x20database','5214056eCVIGB','SELECT\x20*\x20FROM\x20temp_uins\x20WHERE\x20uin\x20=\x20?','elementType','yQcBm','UPziN','OPEN_READWRITE','\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)','longId','forEach','stringify','addMsg','1629293kncAXX','KnJLe','delete','db\x20could\x20not\x20add\x20msg'];_0x4955=function(){return _0x527870;};return _0x4955();}(function(_0x1462c0,_0x438bf9){const _0x153e2e=_0x3bb5,_0x2b2fd5=_0x1462c0();while(!![]){try{const _0xb657b4=-parseInt(_0x153e2e(0x12e))/0x1+parseInt(_0x153e2e(0x15d))/0x2+-parseInt(_0x153e2e(0x15f))/0x3+-parseInt(_0x153e2e(0x123))/0x4+parseInt(_0x153e2e(0xda))/0x5*(parseInt(_0x153e2e(0x168))/0x6)+-parseInt(_0x153e2e(0x120))/0x7*(-parseInt(_0x153e2e(0xf7))/0x8)+parseInt(_0x153e2e(0x101))/0x9;if(_0xb657b4===_0x438bf9)break;else _0x2b2fd5['push'](_0x2b2fd5['shift']());}catch(_0x560f4c){_0x2b2fd5['push'](_0x2b2fd5['shift']());}}}(_0x4955,0xec3c6));function _0x3bb5(_0x6b6b46,_0x1075a1){const _0x4955e7=_0x4955();return _0x3bb5=function(_0x3bb508,_0x293124){_0x3bb508=_0x3bb508-0xda;let _0xd40839=_0x4955e7[_0x3bb508];return _0xd40839;},_0x3bb5(_0x6b6b46,_0x1075a1);}import _0xb295d4 from'sqlite3';import{logDebug,logError}from'@/common/utils/log';import{NTQQMsgApi}from'@/core';class DBUtilBase{['db'];async[_0x5ee3a4(0x155)](_0x30ef1d){const _0xb731b7=_0x5ee3a4,_0x560253={'cHEji':_0xb731b7(0x122),'OgyTc':function(_0x51e03b,_0x988bce){return _0x51e03b(_0x988bce);},'XLnzh':function(_0x1d0701){return _0x1d0701();},'jWDZX':function(_0x145f1a,_0x5c8da1){return _0x145f1a|_0x5c8da1;}};if(this['db'])return;return new Promise((_0x18c8a2,_0x2aee19)=>{const _0x397812=_0xb731b7,_0x1e69b5={'TrCEO':_0x560253[_0x397812(0xe1)],'sQOVv':function(_0x3e426c,_0x2eec5a){return _0x560253['OgyTc'](_0x3e426c,_0x2eec5a);},'EwyXd':function(_0xd8bc87){const _0x34bb96=_0x397812;return _0x560253[_0x34bb96(0x10b)](_0xd8bc87);}};this['db']=new _0xb295d4[(_0x397812(0x138))](_0x30ef1d,_0x560253[_0x397812(0x15c)](_0xb295d4[_0x397812(0x128)],_0xb295d4[_0x397812(0xf6)]),_0x228e79=>{const _0x38a5fa=_0x397812;if(_0x228e79){logError(_0x1e69b5['TrCEO'],_0x228e79),_0x1e69b5[_0x38a5fa(0x106)](_0x2aee19,_0x228e79);return;}this[_0x38a5fa(0xf5)](),_0x1e69b5[_0x38a5fa(0x14f)](_0x18c8a2);});});}[_0x5ee3a4(0xf5)](){const _0x4fcf67=_0x5ee3a4,_0x45c9ad={'ANint':'Method\x20not\x20implemented.'};throw new Error(_0x45c9ad[_0x4fcf67(0x14e)]);}['close'](){const _0x54f608=_0x5ee3a4;this['db']?.[_0x54f608(0x144)]();}}class DBUtil extends DBUtilBase{[_0x5ee3a4(0xfa)]=new Map();[_0x5ee3a4(0x15a)]=-0x7ffffff8;constructor(){const _0x865121=_0x5ee3a4,_0x171aa7={'JvqCg':function(_0x54adb4,_0x547935){return _0x54adb4*_0x547935;},'SPyEJ':function(_0x233b36,_0x46fb1){return _0x233b36(_0x46fb1);},'KnJLe':_0x865121(0x133),'WnKmT':function(_0x102549,_0x2963e0){return _0x102549*_0x2963e0;},'AJWSC':function(_0x5524ad,_0x4d64d0,_0x530c71){return _0x5524ad(_0x4d64d0,_0x530c71);}};super();const _0x2f9f3b=_0x171aa7[_0x865121(0xeb)](_0x171aa7['WnKmT'](0x3e8,0x3c),0xa);_0x171aa7[_0x865121(0x114)](setInterval,()=>{const _0xe0fb78=_0x865121,_0x23e95b={'UPziN':function(_0x18a549,_0x3bafb6){return _0x18a549-_0x3bafb6;},'VaTsE':function(_0x564a9b,_0x59d62a){const _0x3ae7a4=_0x3bb5;return _0x171aa7[_0x3ae7a4(0xe8)](_0x564a9b,_0x59d62a);}};_0x171aa7[_0xe0fb78(0xe4)](logDebug,_0x171aa7[_0xe0fb78(0x12f)]),this[_0xe0fb78(0xfa)]['forEach']((_0x4aec3a,_0x42251b)=>{const _0x23fcfe=_0xe0fb78;_0x23e95b[_0x23fcfe(0x127)](Date[_0x23fcfe(0x119)](),_0x23e95b[_0x23fcfe(0x109)](parseInt(_0x4aec3a[_0x23fcfe(0x166)]),0x3e8))>_0x2f9f3b&&this[_0x23fcfe(0xfa)][_0x23fcfe(0x130)](_0x42251b);});},_0x2f9f3b);}async[_0x5ee3a4(0x155)](_0x5aae1a){const _0x2683cd=_0x5ee3a4;await super[_0x2683cd(0x155)](_0x5aae1a),this[_0x2683cd(0x15a)]=await this[_0x2683cd(0x105)]();}[_0x5ee3a4(0xf5)](){const _0x1cd9df=_0x5ee3a4,_0x11c5d7={'lTsZB':'Could\x20not\x20create\x20table\x20msgs','sjkry':function(_0x1e3cd8,_0x337858,_0x57527d){return _0x1e3cd8(_0x337858,_0x57527d);},'KCrVn':_0x1cd9df(0xe3),'LNmTq':_0x1cd9df(0x13e)},_0x3571e6=_0x1cd9df(0x149);this['db'][_0x1cd9df(0x103)](_0x3571e6,function(_0x50e4c5){const _0x13edcd=_0x1cd9df;_0x50e4c5&&logError(_0x11c5d7[_0x13edcd(0x104)],_0x50e4c5['stack']);});const _0x24209d=_0x1cd9df(0x110);this['db'][_0x1cd9df(0x103)](_0x24209d,function(_0x43e97d){const _0x4efac9=_0x1cd9df;_0x43e97d&&_0x11c5d7[_0x4efac9(0xe7)](logError,_0x11c5d7[_0x4efac9(0x136)],_0x43e97d);});const _0x2a3bd6=_0x1cd9df(0x129);this['db'][_0x1cd9df(0x103)](_0x2a3bd6,function(_0x12ead4){const _0x2fc09f=_0x1cd9df;_0x12ead4&&logError(_0x11c5d7[_0x2fc09f(0x118)],_0x12ead4);});}async['getCurrentMaxShortId'](){const _0x2070fe=_0x5ee3a4,_0x502775={'hspew':_0x2070fe(0x139),'Uswrd':function(_0x16f4ed,_0x198b9c){return _0x16f4ed(_0x198b9c);},'OUzPx':function(_0x2c843b,_0x171847,_0x4203a1){return _0x2c843b(_0x171847,_0x4203a1);},'SpFGr':_0x2070fe(0x165),'BzzJM':_0x2070fe(0x147)};return new Promise((_0x3771b5,_0x36795c)=>{const _0x432402=_0x2070fe;this['db'][_0x432402(0x11f)](_0x502775[_0x432402(0x15b)],(_0x40c48b,_0x378b84)=>{const _0x34494a=_0x432402;if(_0x40c48b)return logDebug(_0x502775[_0x34494a(0xfc)],_0x40c48b),_0x502775[_0x34494a(0xe0)](_0x3771b5,-0x7ffffff8);_0x502775[_0x34494a(0xf8)](logDebug,_0x502775[_0x34494a(0x10e)],_0x378b84?.[_0x34494a(0x117)]),_0x502775[_0x34494a(0xe0)](_0x3771b5,_0x378b84?.[_0x34494a(0x117)]??-0x7ffffff8);});});}async['getMsg'](_0x206f95,_0x40b692){const _0x147280=_0x5ee3a4,_0x437302={'JTBFj':function(_0x16ef14,_0x53f6b0){return _0x16ef14(_0x53f6b0);}},_0x5759e0=this['db'][_0x147280(0x143)](_0x206f95);return new Promise((_0x121747,_0x5c6709)=>{const _0x55cf0d=_0x147280,_0x24ad03={'UJaKJ':function(_0x1e45a2,_0x5a9576){return _0x1e45a2(_0x5a9576);}};_0x5759e0[_0x55cf0d(0x11f)](..._0x40b692,(_0x4307df,_0x22cbe5)=>{const _0x37f731=_0x55cf0d;if(_0x4307df)return logError(_0x37f731(0x14d),_0x4307df,_0x206f95,_0x40b692),_0x437302[_0x37f731(0x151)](_0x121747,null);if(!_0x22cbe5){_0x121747(null);return;}const _0x17aada=_0x22cbe5[_0x37f731(0x12a)];NTQQMsgApi['getMsgsByMsgId']({'peerUid':_0x22cbe5['peerUid'],'chatType':_0x22cbe5[_0x37f731(0x100)]},[_0x17aada])[_0x37f731(0x162)](_0x3d5b8a=>{const _0x8cee3b=_0x37f731,_0x223402=_0x3d5b8a[_0x8cee3b(0x16a)][0x0];if(!_0x223402){_0x24ad03[_0x8cee3b(0x156)](_0x121747,null);return;}_0x223402['id']=_0x22cbe5[_0x8cee3b(0x14c)],_0x24ad03['UJaKJ'](_0x121747,_0x223402);})[_0x37f731(0xe9)](_0x3e76ab=>{_0x24ad03['UJaKJ'](_0x121747,null);});});});}async[_0x5ee3a4(0x10c)](_0x499407){const _0xdd1951=_0x5ee3a4,_0x386b58={'EDhWK':_0xdd1951(0x153)};if(this['msgCache'][_0xdd1951(0x148)](_0x499407))return this[_0xdd1951(0xfa)][_0xdd1951(0x11f)](_0x499407);const _0x329485=_0x386b58['EDhWK'];return this[_0xdd1951(0xdb)](_0x329485,[_0x499407]);}async[_0x5ee3a4(0x10d)](_0x2bfb2f){const _0x439a58=_0x5ee3a4,_0x27647f={'bSCww':_0x439a58(0xfb)};if(this[_0x439a58(0xfa)][_0x439a58(0x148)](_0x2bfb2f))return this['msgCache'][_0x439a58(0x11f)](_0x2bfb2f);return this['getMsg'](_0x27647f[_0x439a58(0x13d)],[_0x2bfb2f]);}async[_0x5ee3a4(0x116)](_0x4e3c17,_0x24c615){const _0x711dbe='SELECT\x20*\x20FROM\x20msgs\x20WHERE\x20peerUid\x20=\x20?\x20AND\x20seq\x20=\x20?';return this['getMsg'](_0x711dbe,[_0x4e3c17,_0x24c615]);}async[_0x5ee3a4(0x12d)](_0x41c275,_0x4f4d49=!![]){const _0x1cbf41=_0x5ee3a4,_0x1f4ee8={'JswWY':_0x1cbf41(0xdd),'crbiu':function(_0x13afe0,_0x1a4325){return _0x13afe0===_0x1a4325;},'KOxhl':function(_0x39aaad,_0x436513,_0x270cce){return _0x39aaad(_0x436513,_0x270cce);},'yAHQQ':_0x1cbf41(0x131),'MoSiK':_0x1cbf41(0x132),'yQcBm':function(_0x304173,_0x416a14){return _0x304173(_0x416a14);}},_0x46c00f=await this[_0x1cbf41(0x10d)](_0x41c275[_0x1cbf41(0xf9)]);if(_0x46c00f){if(_0x4f4d49)this[_0x1cbf41(0xed)](_0x41c275)[_0x1cbf41(0x162)]();return _0x46c00f['id'];}const _0x2272fe=this['db'][_0x1cbf41(0x143)](_0x1f4ee8[_0x1cbf41(0xe2)]),_0x46f885=++this[_0x1cbf41(0x15a)];return _0x41c275['id']=_0x46f885,_0x1f4ee8[_0x1cbf41(0x126)](logDebug,_0x1cbf41(0xec)+_0x41c275[_0x1cbf41(0xf9)]+_0x1cbf41(0xf4)+_0x41c275['id']),this[_0x1cbf41(0xfa)][_0x1cbf41(0x146)](_0x46f885,_0x41c275),this[_0x1cbf41(0xfa)][_0x1cbf41(0x146)](_0x41c275[_0x1cbf41(0xf9)],_0x41c275),_0x2272fe[_0x1cbf41(0x103)](this[_0x1cbf41(0x15a)],_0x41c275[_0x1cbf41(0xf9)],_0x41c275[_0x1cbf41(0x161)]['toString'](),_0x41c275[_0x1cbf41(0x115)],_0x41c275[_0x1cbf41(0x100)],_0x32abf6=>{const _0x324da3=_0x1cbf41,_0x3f78be={'LcZJb':function(_0x334bef,_0x3727b3,_0xb0c76){return _0x334bef(_0x3727b3,_0xb0c76);},'YJgBI':_0x1f4ee8[_0x324da3(0xdf)]};_0x32abf6&&(_0x1f4ee8['crbiu'](_0x32abf6[_0x324da3(0x152)],0x13)?this[_0x324da3(0x10d)](_0x41c275[_0x324da3(0xf9)])[_0x324da3(0x162)](_0x250892=>{const _0x36adb4=_0x324da3;_0x250892?(this[_0x36adb4(0xfa)]['set'](_0x46f885,_0x250892),this[_0x36adb4(0xfa)][_0x36adb4(0x146)](_0x250892[_0x36adb4(0xf9)],_0x250892)):_0x3f78be[_0x36adb4(0xfe)](logError,_0x3f78be[_0x36adb4(0x11b)],_0x32abf6);})['catch'](_0x8b9278=>logError(_0x324da3(0xf2),_0x8b9278)):_0x1f4ee8[_0x324da3(0x158)](logError,_0x1f4ee8[_0x324da3(0x11c)],_0x32abf6));}),_0x46f885;}async[_0x5ee3a4(0xed)](_0x53b6e8){const _0x3e3422=_0x5ee3a4,_0x3e5a98={'RKYQM':function(_0x13c68e,_0x104e94,_0x494796){return _0x13c68e(_0x104e94,_0x494796);},'uKgeK':'updateMsg\x20db\x20error','nVwQV':function(_0x3cf0eb,_0x3944b7){return _0x3cf0eb(_0x3944b7);},'fFWLb':_0x3e3422(0x10f)},_0x29377a=this[_0x3e3422(0xfa)][_0x3e3422(0x11f)](_0x53b6e8[_0x3e3422(0xf9)]);_0x29377a&&Object[_0x3e3422(0x134)](_0x29377a,_0x53b6e8);_0x3e5a98[_0x3e3422(0x141)](logDebug,_0x3e3422(0x13b)+_0x53b6e8['id']+_0x3e3422(0x14a)+_0x53b6e8[_0x3e3422(0x161)]+_0x3e3422(0x13c)+_0x53b6e8[_0x3e3422(0xf9)]);const _0x36e2c9=this['db'][_0x3e3422(0x143)](_0x3e5a98[_0x3e3422(0x15e)]);_0x36e2c9['run'](_0x53b6e8[_0x3e3422(0x161)],_0x53b6e8[_0x3e3422(0xf9)],_0x4fac94=>{const _0x2d7120=_0x3e3422;_0x4fac94&&_0x3e5a98[_0x2d7120(0x169)](logError,_0x3e5a98['uKgeK'],_0x4fac94);});}async[_0x5ee3a4(0xef)](_0x4767b1){const _0x7404b1=_0x5ee3a4,_0x4dbda2={'rOdvG':function(_0x19b81a,_0x588e34,_0x4976cd){return _0x19b81a(_0x588e34,_0x4976cd);},'kBOpn':_0x7404b1(0xee),'UFvkV':function(_0x46c185,_0x2f675d){return _0x46c185(_0x2f675d);},'RfUeb':'INSERT\x20INTO\x20files\x20(name,\x20path,\x20url,\x20size,\x20uuid,\x20elementType\x20,element,\x20elementId,\x20msgId)\x20VALUES\x20(?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?,\x20?)'},_0x1dd11a=this['db'][_0x7404b1(0x143)](_0x4dbda2['RfUeb']);return new Promise((_0x1c06d6,_0x4a0f0e)=>{const _0x1851f1=_0x7404b1;_0x1dd11a[_0x1851f1(0x103)](_0x4767b1[_0x1851f1(0xde)],_0x4767b1[_0x1851f1(0x142)],_0x4767b1[_0x1851f1(0x163)],_0x4767b1[_0x1851f1(0x157)],_0x4767b1[_0x1851f1(0xfd)],_0x4767b1[_0x1851f1(0x125)],JSON[_0x1851f1(0x12c)](_0x4767b1['element']),_0x4767b1['elementId'],_0x4767b1['msgId'],function(_0x1cc7a7){const _0x484661=_0x1851f1;_0x1cc7a7&&(_0x4dbda2['rOdvG'](logError,_0x4dbda2[_0x484661(0x159)],_0x1cc7a7),_0x4dbda2['UFvkV'](_0x4a0f0e,_0x1cc7a7)),_0x1c06d6(null);});});}async[_0x5ee3a4(0x102)](_0x54b3c6,_0x4fb6ad){const _0x442b8c=_0x5ee3a4,_0x26a0c4={'UDDgY':function(_0x129190,_0x1cb8bd){return _0x129190(_0x1cb8bd);}},_0x2d3f23=this['db'][_0x442b8c(0x143)](_0x54b3c6);return new Promise((_0x3be77d,_0x1f4d2d)=>{const _0x47419b=_0x442b8c,_0x3f7d1c={'aewKa':function(_0x4fdc89,_0x5db0a7){const _0x175bd3=_0x3bb5;return _0x26a0c4[_0x175bd3(0x167)](_0x4fdc89,_0x5db0a7);}};_0x2d3f23[_0x47419b(0x11f)](..._0x4fb6ad,(_0x413ac3,_0x1ef085)=>{const _0x44dbcb=_0x47419b;_0x413ac3&&(logError('db\x20could\x20not\x20get\x20file\x20cache',_0x413ac3),_0x3f7d1c['aewKa'](_0x1f4d2d,_0x413ac3)),_0x1ef085&&(_0x1ef085['element']=JSON[_0x44dbcb(0x108)](_0x1ef085[_0x44dbcb(0x13f)])),_0x3f7d1c['aewKa'](_0x3be77d,_0x1ef085);});});}async[_0x5ee3a4(0x140)](_0x1564b9){const _0x209ce8=_0x5ee3a4,_0x207c1c={'ueSjR':_0x209ce8(0x150)};return this[_0x209ce8(0x102)](_0x207c1c[_0x209ce8(0xf3)],[_0x1564b9]);}async['getFileCacheByUuid'](_0xb4dff1){const _0x48997b=_0x5ee3a4;return this[_0x48997b(0x102)](_0x48997b(0x113),[_0xb4dff1]);}async[_0x5ee3a4(0xea)](_0x305647){const _0x6f72b3=_0x5ee3a4,_0x41a627={'VlhOz':_0x6f72b3(0x164),'SjgQL':function(_0xd54d5a,_0x28006b){return _0xd54d5a(_0x28006b);},'smtlm':function(_0x4d7d62,_0xd41e7f){return _0x4d7d62(_0xd41e7f);},'ZWHgd':_0x6f72b3(0x11d)},_0x5eaaf4=this['db']['prepare'](_0x41a627[_0x6f72b3(0x154)]);return new Promise((_0x5b5afd,_0x3d0fbf)=>{const _0x301438=_0x6f72b3,_0x12a0d7={'RgJAf':_0x41a627['VlhOz'],'EkuiY':function(_0x3742ef,_0x52ec5e){const _0x1c1ce9=_0x3bb5;return _0x41a627[_0x1c1ce9(0x160)](_0x3742ef,_0x52ec5e);},'rxsAQ':function(_0xd7abca,_0x4ae301){return _0x41a627['smtlm'](_0xd7abca,_0x4ae301);}};_0x5eaaf4[_0x301438(0x103)](_0x305647[_0x301438(0x142)],_0x305647[_0x301438(0x163)],_0x305647[_0x301438(0xfd)],function(_0x137e52){const _0x357bb6=_0x301438;_0x137e52&&(logError(_0x12a0d7[_0x357bb6(0x135)],_0x137e52),_0x12a0d7[_0x357bb6(0x111)](_0x3d0fbf,_0x137e52)),_0x12a0d7[_0x357bb6(0x112)](_0x5b5afd,null);});});}async[_0x5ee3a4(0x11a)](){const _0x528f82=_0x5ee3a4,_0x371fb8={'uOmVE':function(_0x2893f3,_0xcc5e53,_0x4df8d6){return _0x2893f3(_0xcc5e53,_0x4df8d6);},'jKGGA':function(_0x273b0e,_0x22246b){return _0x273b0e(_0x22246b);},'djrZo':_0x528f82(0xe5)},_0xb30bc7=_0x371fb8[_0x528f82(0x137)];return new Promise((_0x34d4d6,_0x75eb4f)=>{const _0x1488f9=_0x528f82;this['db'][_0x1488f9(0xdc)](_0xb30bc7,(_0x4a06c7,_0x3d7f74)=>{const _0x315316=_0x1488f9;_0x4a06c7&&(_0x371fb8[_0x315316(0xf0)](logError,_0x315316(0x13a),_0x4a06c7),_0x75eb4f(_0x4a06c7));const _0x257640={};_0x3d7f74[_0x315316(0x12b)](_0x4809a1=>{_0x257640[_0x4809a1['uin']]=_0x4809a1['uid'];}),_0x371fb8[_0x315316(0x10a)](_0x34d4d6,_0x257640);});});}async['getUidByTempUin'](_0x74d87b){const _0x350452=_0x5ee3a4,_0x1c4c15={'hFvTS':function(_0x152aa2,_0x3c38b1,_0x314d13){return _0x152aa2(_0x3c38b1,_0x314d13);},'sRmxp':_0x350452(0x13a),'lNHiA':function(_0x1a9813,_0x1d9c66){return _0x1a9813(_0x1d9c66);},'cusxH':_0x350452(0x124)},_0x2a5fcc=_0x1c4c15['cusxH'];return new Promise((_0x591bca,_0x4ea1cd)=>{const _0x3410bb=_0x350452;this['db'][_0x3410bb(0x11f)](_0x2a5fcc,[_0x74d87b],(_0x55c90b,_0x2e51e7)=>{const _0x52ac30=_0x3410bb;_0x55c90b&&(_0x1c4c15[_0x52ac30(0x107)](logError,_0x1c4c15[_0x52ac30(0x11e)],_0x55c90b),_0x1c4c15[_0x52ac30(0x121)](_0x4ea1cd,_0x55c90b)),_0x591bca(_0x2e51e7?.[_0x52ac30(0xe6)]);});});}async['addTempUin'](_0x32ad08,_0x484d79){const _0x5bb9e3=_0x5ee3a4,_0x23a49d={'oxvOk':function(_0x23f8f6,_0x2ecf2f,_0xea8f19){return _0x23f8f6(_0x2ecf2f,_0xea8f19);},'ONVLn':function(_0x33b428,_0x3e5e40){return _0x33b428(_0x3e5e40);}},_0x43c720=await this['getUidByTempUin'](_0x32ad08);if(!_0x43c720){const _0x22b0f4=this['db']['prepare'](_0x5bb9e3(0xff));return new Promise((_0x23489f,_0x5849d2)=>{const _0x40a820=_0x5bb9e3;_0x22b0f4[_0x40a820(0x103)](_0x32ad08,_0x484d79,function(_0x3272fe){const _0xcbc00c=_0x40a820;_0x3272fe&&(_0x23a49d[_0xcbc00c(0x145)](logError,_0xcbc00c(0xf1),_0x3272fe),_0x5849d2(_0x3272fe)),_0x23a49d[_0xcbc00c(0x14b)](_0x23489f,null);});});}}}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 4727be23..7d34c6d4 100644 --- a/src/core.lib/src/wrapper.js +++ b/src/core.lib/src/wrapper.js @@ -1 +1 @@ -const _0x15b232=_0x1bae;(function(_0x41abec,_0x495522){const _0xbfdf93=_0x1bae,_0x335898=_0x41abec();while(!![]){try{const _0x284676=-parseInt(_0xbfdf93(0x13c))/0x1+parseInt(_0xbfdf93(0x139))/0x2*(-parseInt(_0xbfdf93(0x13a))/0x3)+parseInt(_0xbfdf93(0x137))/0x4*(parseInt(_0xbfdf93(0x143))/0x5)+-parseInt(_0xbfdf93(0x13b))/0x6*(parseInt(_0xbfdf93(0x144))/0x7)+-parseInt(_0xbfdf93(0x13d))/0x8+parseInt(_0xbfdf93(0x145))/0x9+parseInt(_0xbfdf93(0x138))/0xa;if(_0x284676===_0x495522)break;else _0x335898['push'](_0x335898['shift']());}catch(_0x115e46){_0x335898['push'](_0x335898['shift']());}}}(_0x2f37,0x6e2c8));import _0x2e2ccd from'node:path';import _0x44ba15 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x2f37(){const _0x164cac=['24458520PsWVLm','576762cPxkPS','9vxjFpx','12HcbeCD','845028hGHkDW','6939088hpvGKx','execPath','dirname','curVersion','join','/wrapper.node','140fkWzvi','1352442ddLOZI','612117wXPXzI','existsSync','128768jSkPgh'];_0x2f37=function(){return _0x164cac;};return _0x2f37();}let wrapperNodePath=_0x2e2ccd['resolve'](_0x2e2ccd[_0x15b232(0x13f)](process[_0x15b232(0x13e)]),'./resources/app/wrapper.node');!_0x44ba15[_0x15b232(0x136)](wrapperNodePath)&&(wrapperNodePath=_0x2e2ccd[_0x15b232(0x141)](_0x2e2ccd[_0x15b232(0x13f)](process[_0x15b232(0x13e)]),'resources/app/versions/'+qqVersionConfigInfo[_0x15b232(0x140)]+_0x15b232(0x142)));const QQWrapper=require(wrapperNodePath);function _0x1bae(_0x5172ea,_0x530561){const _0x2f375e=_0x2f37();return _0x1bae=function(_0x1bae55,_0x3d7bf0){_0x1bae55=_0x1bae55-0x136;let _0x2b4ab5=_0x2f375e[_0x1bae55];return _0x2b4ab5;},_0x1bae(_0x5172ea,_0x530561);}export default QQWrapper; \ No newline at end of file +const _0x12620e=_0x9798;(function(_0x39bdd2,_0x3b358e){const _0x45993e=_0x9798,_0x45e127=_0x39bdd2();while(!![]){try{const _0x554466=parseInt(_0x45993e(0x97))/0x1*(parseInt(_0x45993e(0x9c))/0x2)+-parseInt(_0x45993e(0x8c))/0x3*(parseInt(_0x45993e(0x90))/0x4)+-parseInt(_0x45993e(0xa0))/0x5*(parseInt(_0x45993e(0x8f))/0x6)+parseInt(_0x45993e(0x9b))/0x7*(parseInt(_0x45993e(0x92))/0x8)+-parseInt(_0x45993e(0x96))/0x9*(parseInt(_0x45993e(0x8e))/0xa)+parseInt(_0x45993e(0x9a))/0xb+parseInt(_0x45993e(0x93))/0xc*(parseInt(_0x45993e(0x94))/0xd);if(_0x554466===_0x3b358e)break;else _0x45e127['push'](_0x45e127['shift']());}catch(_0x24566a){_0x45e127['push'](_0x45e127['shift']());}}}(_0x563f,0xd6a3f));import _0x4b2abf from'node:path';function _0x9798(_0xaaeb2e,_0x213fe5){const _0x563f02=_0x563f();return _0x9798=function(_0x9798a4,_0x24e891){_0x9798a4=_0x9798a4-0x8c;let _0x2220f8=_0x563f02[_0x9798a4];return _0x2220f8;},_0x9798(_0xaaeb2e,_0x213fe5);}import _0x4deb88 from'node:fs';import{qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';function _0x563f(){const _0x1086b3=['35SPZLJQ','29373swaofS','./resources/app/wrapper.node','83660XweEkr','1024398jnVhPV','200WRMiao','resources/app/versions/','15344eNPzrR','1068vKdSdI','469703RkYiRG','existsSync','1872tYRXLb','257VsafFt','execPath','dirname','321530fgbjmS','3416VDWzjQ','958gGaMMy','join','curVersion','/wrapper.node'];_0x563f=function(){return _0x1086b3;};return _0x563f();}let wrapperNodePath=_0x4b2abf['resolve'](_0x4b2abf[_0x12620e(0x99)](process[_0x12620e(0x98)]),_0x12620e(0x8d));!_0x4deb88[_0x12620e(0x95)](wrapperNodePath)&&(wrapperNodePath=_0x4b2abf[_0x12620e(0x9d)](_0x4b2abf['dirname'](process[_0x12620e(0x98)]),_0x12620e(0x91)+qqVersionConfigInfo[_0x12620e(0x9e)]+_0x12620e(0x9f)));const QQWrapper=require(wrapperNodePath);export default QQWrapper; \ No newline at end of file From 39b8eb6ff15d2c6110d940da106ccde9a4947ddc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 2 May 2024 18:13:32 +0800 Subject: [PATCH 7/9] script: mail change --- script/checkVersion.cjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/script/checkVersion.cjs b/script/checkVersion.cjs index 2cf13cc1..6c0a365d 100644 --- a/script/checkVersion.cjs +++ b/script/checkVersion.cjs @@ -9,5 +9,5 @@ if (currentVersion === targetVersion) { fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\necho \"CheckVersion Is Done\"") } else { let runscript = "sed -i 's/\"version\": \"" + currentVersion + "\"/\"version\": \"" + targetVersion + "\"/g' package.json"; - fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\ngit config --global user.email \"bot@test.nanaeo.cn\"\n git config --global user.name \"Version\"\n" + runscript + "\ngit add .\n git commit -m \"chore:version change\"\n git push -u origin main") + fs.writeFileSync("./checkVersion.sh", "#!/bin/bashe\ngit config --global user.email \"bot@test.wumiao.wang\"\n git config --global user.name \"Version\"\n" + runscript + "\ngit add .\n git commit -m \"chore:version change\"\n git push -u origin main") } From dfa798a35dfbae6010a81bc19f2d1e39209002dd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 2 May 2024 18:15:26 +0800 Subject: [PATCH 8/9] fix --- src/common/server/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/server/http.ts b/src/common/server/http.ts index 5f2371f5..83a4ea6f 100644 --- a/src/common/server/http.ts +++ b/src/common/server/http.ts @@ -7,7 +7,7 @@ import { ob11Config } from '@/onebot11/config'; type RegisterHandler = (res: Response, payload: any) => Promise export abstract class HttpServerBase { - name: string = 'LLOneBot'; + name: string = 'NapCatQQ'; private readonly expressAPP: Express; private server: http.Server | null = null; From fdef821c60558bdb96ee5869ca75067302166e23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Thu, 2 May 2024 18:16:03 +0800 Subject: [PATCH 9/9] style: lint --- src/onebot11/action/group/GetGroupEssence.ts | 14 +++++++------- src/onebot11/action/group/GetGroupNotice.ts | 16 ++++++++-------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/onebot11/action/group/GetGroupEssence.ts b/src/onebot11/action/group/GetGroupEssence.ts index 4ffb2347..3f0bc9dd 100644 --- a/src/onebot11/action/group/GetGroupEssence.ts +++ b/src/onebot11/action/group/GetGroupEssence.ts @@ -12,13 +12,13 @@ interface PayloadType { } export class GetGroupEssence extends BaseAction { - actionName = ActionName.GoCQHTTP_GetEssenceMsg; + actionName = ActionName.GoCQHTTP_GetEssenceMsg; - protected async _handle(payload: PayloadType) { - let ret = await WebApi.getGroupEssenceMsg(payload.group_id.toString(), payload.pages.toString()); - if (!ret) { - throw new Error('获取失败'); - } - return ret; + protected async _handle(payload: PayloadType) { + const ret = await WebApi.getGroupEssenceMsg(payload.group_id.toString(), payload.pages.toString()); + if (!ret) { + throw new Error('获取失败'); } + return ret; + } } diff --git a/src/onebot11/action/group/GetGroupNotice.ts b/src/onebot11/action/group/GetGroupNotice.ts index a0410881..8e8797ce 100644 --- a/src/onebot11/action/group/GetGroupNotice.ts +++ b/src/onebot11/action/group/GetGroupNotice.ts @@ -7,14 +7,14 @@ interface PayloadType { } export class GetGroupNotice extends BaseAction { - actionName = ActionName.GoCQHTTP_GetGroupNotice; + actionName = ActionName.GoCQHTTP_GetGroupNotice; - protected async _handle(payload: PayloadType) { - const group = payload.group_id.toString(); - let ret = await WebApi.getGrouptNotice(group); - if (!ret) { - throw new Error('获取公告失败'); - } - return ret; + protected async _handle(payload: PayloadType) { + const group = payload.group_id.toString(); + const ret = await WebApi.getGrouptNotice(group); + if (!ret) { + throw new Error('获取公告失败'); } + return ret; + } } \ No newline at end of file