diff --git a/manifest.json b/manifest.json index adf90a4..9542df7 100644 --- a/manifest.json +++ b/manifest.json @@ -4,7 +4,7 @@ "name": "LLOneBot", "slug": "LLOneBot", "description": "实现 OneBot 11 和 Satori 协议,用于 QQ 机器人开发", - "version": "4.3.0", + "version": "4.3.1", "icon": "./icon.webp", "authors": [ { diff --git a/src/ntqqapi/api/friend.ts b/src/ntqqapi/api/friend.ts index 2effc92..0aae66b 100644 --- a/src/ntqqapi/api/friend.ts +++ b/src/ntqqapi/api/friend.ts @@ -107,8 +107,7 @@ export class NTQQFriendApi extends Service { return ret.arkMsg } - async setBuddyRemark(uid: string, remark?: string) { - remark = remark ?? '' + async setBuddyRemark(uid: string, remark = '') { return await invoke('nodeIKernelBuddyService/setBuddyRemark', [{ remarkParams: { uid, remark } }]) @@ -125,6 +124,6 @@ export class NTQQFriendApi extends Service { } async setBuddyCategory(uid: string, categoryId: number) { - return await invoke('nodeIKernelBuddyService/setBuddyCategory', [{uid, categoryId}]) + return await invoke('nodeIKernelBuddyService/setBuddyCategory', [{ uid, categoryId }]) } } diff --git a/src/ntqqapi/api/group.ts b/src/ntqqapi/api/group.ts index 102c819..9ae2f3c 100644 --- a/src/ntqqapi/api/group.ts +++ b/src/ntqqapi/api/group.ts @@ -9,7 +9,8 @@ import { PublishGroupBulletinReq, GroupAllInfo, GroupFileInfo, - GroupBulletinListResult + GroupBulletinListResult, + GroupMsgMask } from '../types' import { invoke, NTClass, NTMethod } from '../ntcall' import { GeneralCallResult } from '../services' @@ -22,12 +23,6 @@ declare module 'cordis' { } } -export enum GroupMsgMask { - ALLOW_NOTIFY = 1, // 允许提醒 - ALLOW_NOT_NOTIFY = 4, // 接受消息不提醒 - BOX_NOT_NOTIFY = 2, // 收进群助手不提醒 - NOT_ALLOW = 3, // 屏蔽 -} export class NTQQGroupApi extends Service { static inject = ['ntWindowApi'] @@ -348,12 +343,11 @@ export class NTQQGroupApi extends Service { ) } - async setGroupMsgMask(groupCode: string, msgMask: GroupMsgMask){ + async setGroupMsgMask(groupCode: string, msgMask: GroupMsgMask) { return await invoke('nodeIKernelGroupService/setGroupMsgMask', [{ groupCode, msgMask }]) } - async setGroupRemark(groupCode: string, groupRemark?: string) { - groupRemark = groupRemark ?? '' + async setGroupRemark(groupCode: string, groupRemark = '') { return await invoke('nodeIKernelGroupService/modifyGroupRemark', [{ groupCode, groupRemark }]) } } diff --git a/src/ntqqapi/api/system.ts b/src/ntqqapi/api/system.ts index 9b3239c..ebc55c9 100644 --- a/src/ntqqapi/api/system.ts +++ b/src/ntqqapi/api/system.ts @@ -8,13 +8,11 @@ declare module 'cordis' { } export class NTQQSystemApi extends Service { - static inject = ['ntUserApi'] - constructor(protected ctx: Context) { super(ctx, 'ntSystemApi', true) } - async restart(){ + async restart() { // todo: 调用此接口后会将 NTQQ 设置里面的自动登录和无需手机确认打开,重启后将状态恢复到之前的状态 // 设置自动登录 @@ -27,13 +25,14 @@ export class NTQQSystemApi extends Service { // 等待登录界面,模拟点击登录按钮?还是直接调用登录方法? } - // 是否自动登录 - async getSettingAutoLogin(): Promise{ + async getSettingAutoLogin() { + // 查询是否自动登录 return invoke('nodeIKernelNodeMiscService/queryAutoRun', []) } - async setSettingAutoLogin(state: boolean){ - await invoke('nodeIKernelSettingService/setNeedConfirmSwitch', [{state: 1}]) // 1:不需要手机确认,2:需要手机确认 - await invoke('nodeIKernelSettingService/setAutoLoginSwitch', [{state}]) + async setSettingAutoLogin(state: boolean) { + await invoke('nodeIKernelSettingService/setNeedConfirmSwitch', [{ state: 1 }]) // 1:不需要手机确认,2:需要手机确认 + + await invoke('nodeIKernelSettingService/setAutoLoginSwitch', [{ state }]) } } diff --git a/src/ntqqapi/hook.ts b/src/ntqqapi/hook.ts index cf04bbb..9443019 100644 --- a/src/ntqqapi/hook.ts +++ b/src/ntqqapi/hook.ts @@ -28,7 +28,7 @@ export enum ReceiveCmdS { MEDIA_UPLOAD_COMPLETE = 'nodeIKernelMsgListener/onRichMediaUploadComplete', } -const logHook = true +const logHook = false const receiveHooks: Map=this['capacity']){const _0x4ec25a=this['cache'][_0x4e8071(0x183)]()[_0x4e8071(0x174)]()[_0x4e8071(0x182)];_0x4ec25a!==void 0x0&&this['cache'][_0x4e8071(0x172)](_0x4ec25a);}}this['cache'][_0x4e8071(0x17d)](_0xd434fd,_0x19f64d);}} +function _0x2051(_0x2b1d9e,_0x3a8d8f){const _0xae070d=_0xae07();return _0x2051=function(_0x2051c6,_0x3b6f4d){_0x2051c6=_0x2051c6-0x16c;let _0x4dffbc=_0xae070d[_0x2051c6];return _0x4dffbc;},_0x2051(_0x2b1d9e,_0x3a8d8f);}const _0x449c89=_0x2051;function _0xae07(){const _0x19112f=['2161825fPcZka','next','4QIJdVb','keys','2020NwDiij','get','set','capacity','443878ejdriG','size','381570lTBGLA','488571SBUJxB','has','81544XWyran','value','delete','353195NIMajS','301PcJEKX','46080OJzJMc','cache'];_0xae07=function(){return _0x19112f;};return _0xae07();}(function(_0x58ef35,_0x10f386){const _0xf02df1=_0x2051,_0x3aa9f4=_0x58ef35();while(!![]){try{const _0x5abfeb=-parseInt(_0xf02df1(0x174))/0x1+parseInt(_0xf02df1(0x16c))/0x2+parseInt(_0xf02df1(0x16f))/0x3+-parseInt(_0xf02df1(0x17a))/0x4*(parseInt(_0xf02df1(0x178))/0x5)+parseInt(_0xf02df1(0x16e))/0x6+parseInt(_0xf02df1(0x175))/0x7*(-parseInt(_0xf02df1(0x171))/0x8)+-parseInt(_0xf02df1(0x176))/0x9*(-parseInt(_0xf02df1(0x17c))/0xa);if(_0x5abfeb===_0x10f386)break;else _0x3aa9f4['push'](_0x3aa9f4['shift']());}catch(_0x1bb2d8){_0x3aa9f4['push'](_0x3aa9f4['shift']());}}}(_0xae07,0x3f2d4));class LRUCache{[_0x449c89(0x17f)];['cache'];constructor(_0x20b327){const _0x139bd3=_0x449c89;this[_0x139bd3(0x17f)]=_0x20b327,this['cache']=new Map();}[_0x449c89(0x17d)](_0x15fcfd){const _0x2bcab6=_0x449c89,_0x2e860e=this[_0x2bcab6(0x177)][_0x2bcab6(0x17d)](_0x15fcfd);return _0x2e860e!==void 0x0&&(this[_0x2bcab6(0x177)][_0x2bcab6(0x173)](_0x15fcfd),this[_0x2bcab6(0x177)][_0x2bcab6(0x17e)](_0x15fcfd,_0x2e860e)),_0x2e860e;}['put'](_0x3cb1e5,_0x4e9771){const _0x3c784c=_0x449c89;if(this['cache'][_0x3c784c(0x170)](_0x3cb1e5))this['cache'][_0x3c784c(0x173)](_0x3cb1e5);else {if(this[_0x3c784c(0x177)][_0x3c784c(0x16d)]>=this['capacity']){const _0x422410=this['cache'][_0x3c784c(0x17b)]()[_0x3c784c(0x179)]()[_0x3c784c(0x172)];_0x422410!==void 0x0&&this[_0x3c784c(0x177)][_0x3c784c(0x173)](_0x422410);}}this[_0x3c784c(0x177)][_0x3c784c(0x17e)](_0x3cb1e5,_0x4e9771);}} function getDefaultExportFromCjs (x) { return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x; @@ -4127,9 +4127,9 @@ function socketOnError() { const WebSocket$1 = /*@__PURE__*/getDefaultExportFromCjs(websocket); -const _0x425066=_0x4928;function _0x4928(_0x3b59ab,_0x34fb69){const _0x56a86b=_0x56a8();return _0x4928=function(_0x4928ee,_0x577a2b){_0x4928ee=_0x4928ee-0x9a;let _0x2ae2a1=_0x56a86b[_0x4928ee];return _0x2ae2a1;},_0x4928(_0x3b59ab,_0x34fb69);}function _0x56a8(){const _0x549646=['v1.0.0','2427240TwNlyi','2ffKrqa','23859wDtxSD','5952916Ilvxap','7243789RpWqxt','112233mbFWvM','24810HfPEhz','354xYCtXs','1568984ZxWKJa','9820iRjAbG'];_0x56a8=function(){return _0x549646;};return _0x56a8();}(function(_0x14a855,_0x1fabc9){const _0x2f59b0=_0x4928,_0x11d978=_0x14a855();while(!![]){try{const _0x152f05=parseInt(_0x2f59b0(0x9d))/0x1*(-parseInt(_0x2f59b0(0xa4))/0x2)+parseInt(_0x2f59b0(0xa3))/0x3+-parseInt(_0x2f59b0(0x9b))/0x4+parseInt(_0x2f59b0(0x9e))/0x5*(parseInt(_0x2f59b0(0x9f))/0x6)+-parseInt(_0x2f59b0(0x9c))/0x7+-parseInt(_0x2f59b0(0xa0))/0x8+parseInt(_0x2f59b0(0x9a))/0x9*(parseInt(_0x2f59b0(0xa1))/0xa);if(_0x152f05===_0x1fabc9)break;else _0x11d978['push'](_0x11d978['shift']());}catch(_0x122d45){_0x11d978['push'](_0x11d978['shift']());}}}(_0x56a8,0xd54ec));const MoeHooVersion=_0x425066(0xa2); +function _0x501d(){const _0x2c0f26=['608197TkUiFe','6612696aliQZa','340315LwBzLy','2883800XyCgdb','2wOynKJ','7qxUdUy','1323760eIuLRR','3068289tJKTSU','4318388QiAhNA','90iejwNu'];_0x501d=function(){return _0x2c0f26;};return _0x501d();}(function(_0x154808,_0x36e91c){const _0x541caf=_0x2f9f,_0x39008a=_0x154808();while(!![]){try{const _0x1275a8=parseInt(_0x541caf(0x1d0))/0x1+-parseInt(_0x541caf(0x1d4))/0x2*(parseInt(_0x541caf(0x1d7))/0x3)+parseInt(_0x541caf(0x1ce))/0x4+parseInt(_0x541caf(0x1d2))/0x5+-parseInt(_0x541caf(0x1d1))/0x6+-parseInt(_0x541caf(0x1d5))/0x7*(parseInt(_0x541caf(0x1d3))/0x8)+-parseInt(_0x541caf(0x1cf))/0x9*(-parseInt(_0x541caf(0x1d6))/0xa);if(_0x1275a8===_0x36e91c)break;else _0x39008a['push'](_0x39008a['shift']());}catch(_0x2e2549){_0x39008a['push'](_0x39008a['shift']());}}}(_0x501d,0x91157));function _0x2f9f(_0x556d1f,_0x1525d5){const _0x501d27=_0x501d();return _0x2f9f=function(_0x2f9fdb,_0x680ce3){_0x2f9fdb=_0x2f9fdb-0x1ce;let _0x2f203=_0x501d27[_0x2f9fdb];return _0x2f203;},_0x2f9f(_0x556d1f,_0x1525d5);}const MoeHooVersion='v1.0.0'; -const _0x206d80=_0x1407;function _0x1407(_0x4a7788,_0x3aea8){const _0x1af15f=_0x1af1();return _0x1407=function(_0x1407a8,_0x2e5011){_0x1407a8=_0x1407a8-0x195;let _0x4e2fdc=_0x1af15f[_0x1407a8];return _0x4e2fdc;},_0x1407(_0x4a7788,_0x3aea8);}(function(_0x1da540,_0x1174a7){const _0x4a4db9=_0x1407,_0x158305=_0x1da540();while(!![]){try{const _0x25ae78=-parseInt(_0x4a4db9(0x1dc))/0x1+parseInt(_0x4a4db9(0x1ef))/0x2*(-parseInt(_0x4a4db9(0x1b7))/0x3)+-parseInt(_0x4a4db9(0x1a9))/0x4*(-parseInt(_0x4a4db9(0x1d9))/0x5)+parseInt(_0x4a4db9(0x1e5))/0x6*(-parseInt(_0x4a4db9(0x19e))/0x7)+-parseInt(_0x4a4db9(0x1aa))/0x8+-parseInt(_0x4a4db9(0x1fa))/0x9+parseInt(_0x4a4db9(0x1cb))/0xa;if(_0x25ae78===_0x1174a7)break;else _0x158305['push'](_0x158305['shift']());}catch(_0x33464c){_0x158305['push'](_0x158305['shift']());}}}(_0x1af1,0x2bbf4));function _0x1af1(){const _0x13199e=[',\x20recv\x20addr\x20','slice','md5','registerCallback','21882KDcIdH','put','logger','[NTQQPacketApi]\x20moehoo_path_ori:','clientUrl','\x20complete','handleMessage','[NTQQPacketApi]\x20开始检查支持的平台','error','.node','146468tSWTXx','onerror','win32.x64','\x20已达到最大重连次数!','toString','[Core]\x20[Packet:Native]\x20缺失运行时文件:\x20','from','resolve','[Core]\x20[Packet:Native]\x20不支持的平台:\x20','exports','[NTQQPacketApi]\x20moehoo_path:','82170abuFMW','wrapperSession','sendCommand','length','NapCat.Packet\x20未初始化!','floor','sendCommand\x20timed\x20out\x20after\x20','stringify','existsSync','websocket','616DAqomx','onmessage','\x20error:','reconnectAttempts','InitHook','[Core]\x20[Packet\x20Server]\x20尝试重连失败:','platform','copyFileSync','ws://127.0.0.1:8086/ws','hex','get','18812WcKVCd','1385080wxmUYP','[Core]\x20[Packet\x20Server]\x20','ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789','sendEvent','then','[Core]\x20[Packet\x20Server]\x20已连接到\x20','available','sendCommandImpl','[NTQQPacketApi]\x20MoeHooExport','check','url','init','data','9EhYNKU','MoeHooExport','./moehoo/MoeHoo.','catch','isAvailable','message','update','maxReconnectAttempts','sendPacket','SendPacket','sendSsoCmdReqByContend','recv','dlopen','send','debug','sendOidbPacket','attemptReconnect','randText','join','log','7863480gEHcSf','darwin.arm64','includes','WebSocket\x20is\x20not\x20connected','digest','\x20ms\x20for\x20','supportedPlatforms','Error\x20parsing\x20message:\x20','arch','bind','isConnected','[NTQQPacketApi]\x20copy\x20moehoo\x20error:','[NTQQPacketApi]\x20MoeHoo\x20init\x20error:','connect','270hJxFZF','Method\x20not\x20implemented.','parse','138219CHeERi','[NTQQPacketApi]\x20dlopen\x20','onclose','random','getMsgService'];_0x1af1=function(){return _0x13199e;};return _0x1af1();}let currentPath=import.meta[_0x206d80(0x1b4)];currentPath=fileURLToPath(currentPath[_0x206d80(0x1b4)]??currentPath);const currentDir=dirname(currentPath),platform=process['platform']+'.'+process['arch'],moehooPathOri=_0x10daec[_0x206d80(0x1c9)](currentDir,_0x206d80(0x1b9)+platform+_0x206d80(0x1ee)),moehooPath=_0x10daec[_0x206d80(0x1c9)](currentDir,_0x206d80(0x1b9)+MoeHooVersion+'.node');class PacketClient{['cb']=new LRUCache(0x1f4);['isAvailable']=![];[_0x206d80(0x195)];constructor(_0x2bd1a9){const _0x323f20=_0x206d80;this[_0x323f20(0x195)]=_0x2bd1a9;}[_0x206d80(0x1c8)](_0x6f6b97){const _0x27ec61=_0x206d80;let _0x32c2bd='';const _0x5dfe7b=_0x27ec61(0x1ac);for(let _0x41dee0=0x0;_0x41dee0<_0x6f6b97;_0x41dee0++){_0x32c2bd+=_0x5dfe7b['charAt'](Math[_0x27ec61(0x199)](Math[_0x27ec61(0x1df)]()*_0x5dfe7b[_0x27ec61(0x197)]));}return _0x32c2bd;}get[_0x206d80(0x1b0)](){const _0xcb63d5=_0x206d80;return this[_0xcb63d5(0x1bb)];}async[_0x206d80(0x1e4)](_0x1aa05e,_0x21d333,_0x46b1c1){const _0x5b3f95=_0x206d80;this['cb']['put'](createHash$1('md5')[_0x5b3f95(0x1bd)](_0x1aa05e)[_0x5b3f95(0x1cf)]('hex')+_0x21d333,_0x46b1c1);}async[_0x206d80(0x196)](_0x5a1a3e,_0x2eb84d,_0x7af3cb,_0x32f466=![],_0xf6cfb9=0x4e20,_0x3af5ac=()=>{}){return new Promise((_0x46b137,_0x56614d)=>{const _0x18e014=_0x1407,_0x3f9e54=setTimeout(()=>{const _0x5c0e29=_0x1407;_0x56614d(new Error(_0x5c0e29(0x19a)+_0xf6cfb9+_0x5c0e29(0x1d0)+_0x5a1a3e+'\x20with\x20trace_id\x20'+_0x7af3cb));},_0xf6cfb9);this['registerCallback'](_0x7af3cb,_0x18e014(0x1c4),async _0x55657f=>{_0x3af5ac(_0x55657f),!_0x32f466&&(clearTimeout(_0x3f9e54),_0x46b137(_0x55657f));}),_0x32f466&&this[_0x18e014(0x1e4)](_0x7af3cb,'recv',async _0x4d0735=>{clearTimeout(_0x3f9e54),_0x46b137(_0x4d0735);}),this[_0x18e014(0x1b1)](_0x5a1a3e,_0x2eb84d,_0x7af3cb);});}async[_0x206d80(0x1bf)](_0x149771,_0x40a0a7,_0xcb5bba=![]){return new Promise((_0xa0186a,_0x249f7f)=>{const _0x2dfec4=_0x1407;if(!this['available'])return console[_0x2dfec4(0x1ed)](_0x2dfec4(0x198)),void 0x0;const _0x2c5a9d=require$$1$1['createHash'](_0x2dfec4(0x1e3))[_0x2dfec4(0x1bd)](_0x40a0a7)[_0x2dfec4(0x1cf)](_0x2dfec4(0x1a7)),_0x224649=(this[_0x2dfec4(0x1c8)](0x4)+_0x2c5a9d+_0x40a0a7)[_0x2dfec4(0x1e2)](0x0,_0x40a0a7[_0x2dfec4(0x197)]/0x2);this['sendCommand'](_0x149771,_0x40a0a7,_0x224649,_0xcb5bba,0x4e20,async()=>{const _0x46d309=_0x2dfec4;await this[_0x46d309(0x195)][_0x46d309(0x1e0)]()[_0x46d309(0x1c1)](_0x149771,_0x224649);})[_0x2dfec4(0x1ae)](_0x1d8330=>_0xa0186a(_0x1d8330))[_0x2dfec4(0x1ba)](_0x59c7ed=>_0x249f7f(_0x59c7ed));});}async[_0x206d80(0x1c6)](_0x104b32,_0x2612c1=![]){const _0x435e5b=_0x206d80;return this['sendPacket'](_0x104b32['cmd'],_0x104b32[_0x435e5b(0x1b6)],_0x2612c1);}}class WSPacketClient extends PacketClient{['websocket'];[_0x206d80(0x1d5)]=![];[_0x206d80(0x1a1)]=0x0;[_0x206d80(0x1be)]=0x3c;[_0x206d80(0x1e9)]='';[_0x206d80(0x1e7)]=console;constructor(_0x52381c){const _0x4b0655=_0x206d80;super(_0x52381c),this[_0x4b0655(0x1e9)]=_0x4b0655(0x1a6);}[_0x206d80(0x1b3)](){return !![];}[_0x206d80(0x1b1)](_0x12fc40,_0x1e62d7,_0x531277){const _0x2bb9df=_0x206d80;throw new Error(_0x2bb9df(0x1da));}[_0x206d80(0x1d8)](_0xb7703a){return new Promise((_0x1f95e7,_0x25a255)=>{const _0x1fe55f=_0x1407;this[_0x1fe55f(0x19d)]=new WebSocket$1(this[_0x1fe55f(0x1e9)]),this[_0x1fe55f(0x19d)]['on'](_0x1fe55f(0x1ed),_0x3d7a9d=>{}),this[_0x1fe55f(0x19d)]['onopen']=()=>{const _0x2daac6=_0x1fe55f;this['isConnected']=!![],this[_0x2daac6(0x1a1)]=0x0,this[_0x2daac6(0x1e7)][_0x2daac6(0x1ca)]['bind'](this['logger'])(_0x2daac6(0x1af)+this[_0x2daac6(0x1e9)]),_0xb7703a(),_0x1f95e7();},this[_0x1fe55f(0x19d)][_0x1fe55f(0x1f0)]=_0x398b0b=>{const _0x5af8d7=_0x1fe55f;_0x25a255(new Error(''+_0x398b0b[_0x5af8d7(0x1bc)]));},this[_0x1fe55f(0x19d)][_0x1fe55f(0x19f)]=_0x27fc80=>{const _0x593a01=_0x1fe55f;this[_0x593a01(0x1eb)](_0x27fc80[_0x593a01(0x1b6)])[_0x593a01(0x1ae)]()[_0x593a01(0x1ba)]();},this[_0x1fe55f(0x19d)][_0x1fe55f(0x1de)]=()=>{const _0xbb3d4d=_0x1fe55f;this[_0xbb3d4d(0x1d5)]=![],this[_0xbb3d4d(0x1c7)](_0xb7703a);};});}[_0x206d80(0x1c7)](_0xdc28cc){const _0x128462=_0x206d80;try{this[_0x128462(0x1a1)]{const _0x2d8c1b=_0x128462;this[_0x2d8c1b(0x1d8)](_0xdc28cc)['catch'](_0x1febdc=>{const _0x3e2345=_0x2d8c1b;this['logger'][_0x3e2345(0x1ed)]['bind'](this[_0x3e2345(0x1e7)])(_0x3e2345(0x1a3)+_0x1febdc[_0x3e2345(0x1bc)]);});},0x1388*this['reconnectAttempts'])):this['logger'][_0x128462(0x1ed)]['bind'](this[_0x128462(0x1e7)])(_0x128462(0x1ab)+this[_0x128462(0x1e9)]+_0x128462(0x1f2));}catch(_0x381c60){this['logger']['error'][_0x128462(0x1d4)](this[_0x128462(0x1e7)])('[Core]\x20[Packet\x20Server]\x20重连时出错:\x20'+_0x381c60['message']);}}async[_0x206d80(0x1b5)](_0x4d9a93,_0x15f194,_0x546227){const _0x272baf=_0x206d80;if(!this['isConnected']||!this[_0x272baf(0x19d)])throw new Error(_0x272baf(0x1ce));const _0x32f4c9={'action':_0x272baf(0x1b5),'pid':_0x4d9a93,'recv':_0x15f194,'send':_0x546227};this[_0x272baf(0x19d)][_0x272baf(0x1c4)](JSON[_0x272baf(0x19b)](_0x32f4c9));}async[_0x206d80(0x1eb)](_0x535151){const _0x3a5bb7=_0x206d80;try{const _0x31de25=JSON[_0x3a5bb7(0x1db)](_0x535151[_0x3a5bb7(0x1f3)]()),_0x17eb74=_0x31de25['trace_id_md5'],_0x8a129e=_0x31de25?.['type']??_0x3a5bb7(0x1b5),_0xf457c9=this['cb'][_0x3a5bb7(0x1a8)](_0x17eb74+_0x8a129e);_0xf457c9&&await _0xf457c9(_0x31de25[_0x3a5bb7(0x1b6)]);}catch(_0x157fd0){this[_0x3a5bb7(0x1e7)]['error']['bind'](this[_0x3a5bb7(0x1e7)])(_0x3a5bb7(0x1d2)+_0x157fd0);}}}class NativePacketClient extends PacketClient{[_0x206d80(0x1d1)]=[_0x206d80(0x1f1),'linux.x64','linux.arm64',_0x206d80(0x1cc)];[_0x206d80(0x1b8)]={'exports':{}};[_0x206d80(0x1ad)]=new LRUCache(0x1f4);constructor(_0x487191){super(_0x487191);}get[_0x206d80(0x1b0)](){const _0x48a4cf=_0x206d80;return this[_0x48a4cf(0x1bb)];}[_0x206d80(0x1b3)](){const _0x3ad80c=_0x206d80;console['log'](_0x3ad80c(0x1ec));const _0x39d159=process[_0x3ad80c(0x1a4)]+'.'+process[_0x3ad80c(0x1d3)];if(!this[_0x3ad80c(0x1d1)][_0x3ad80c(0x1cd)](_0x39d159))return console[_0x3ad80c(0x1ca)](_0x3ad80c(0x1f7)+_0x39d159),![];if(!_0x3e7a5a[_0x3ad80c(0x19c)](moehooPathOri))return console[_0x3ad80c(0x1ca)](_0x3ad80c(0x1f4)+moehooPath),![];return !![];}async[_0x206d80(0x1b5)](_0x3f2f5e,_0x27a887,_0x4f293c){const _0x4743f8=_0x206d80;console[_0x4743f8(0x1ca)](_0x4743f8(0x1e8),moehooPathOri),console['log'](_0x4743f8(0x1f9),moehooPath);if(_0x3e7a5a['existsSync'](moehooPathOri)&&!_0x3e7a5a['existsSync'](moehooPath))try{_0x3e7a5a[_0x4743f8(0x1a5)](moehooPathOri,moehooPath);}catch(_0x6d7228){console[_0x4743f8(0x1ca)](_0x4743f8(0x1d6),_0x6d7228);}try{process[_0x4743f8(0x1c3)](this[_0x4743f8(0x1b8)],moehooPath,constants$1[_0x4743f8(0x1c3)]['RTLD_LAZY']),console[_0x4743f8(0x1ca)](_0x4743f8(0x1dd)+moehooPath+_0x4743f8(0x1ea));}catch(_0xee5027){console[_0x4743f8(0x1ed)](_0x4743f8(0x1dd)+moehooPath+_0x4743f8(0x1a0),_0xee5027);}try{console['log'](_0x4743f8(0x1b2),this[_0x4743f8(0x1b8)]),console[_0x4743f8(0x1ca)]('[NTQQPacketApi]\x20MoeHoo\x20init\x20hook\x20send\x20addr\x20'+_0x4f293c+_0x4743f8(0x1e1)+_0x27a887),this[_0x4743f8(0x1b8)][_0x4743f8(0x1f8)][_0x4743f8(0x1a2)]?.(_0x4f293c,_0x27a887,(_0x230e79,_0x127d9f,_0xccdced,_0x631559,_0x279b89)=>{const _0x2304d9=_0x4743f8,_0x135e34=createHash$1('md5')[_0x2304d9(0x1bd)](Buffer[_0x2304d9(0x1f5)](_0x279b89,_0x2304d9(0x1a7)))['digest'](_0x2304d9(0x1a7));_0x230e79===0x0&&this['cb'][_0x2304d9(0x1a8)](_0x135e34+'recv')&&this[_0x2304d9(0x1ad)][_0x2304d9(0x1e6)](_0x631559,_0x135e34);if(_0x230e79===0x1&&this[_0x2304d9(0x1ad)][_0x2304d9(0x1a8)](_0x631559)){const _0x1a873c=this[_0x2304d9(0x1ad)][_0x2304d9(0x1a8)](_0x631559),_0x555de8=this['cb']['get'](_0x1a873c+_0x2304d9(0x1c2));_0x555de8?.({'seq':_0x631559,'cmd':_0xccdced,'hex_data':_0x279b89});}}),console[_0x4743f8(0x1c5)]('[NTQQPacketApi]\x20MoeHoo\x20init\x20complete');}catch(_0x296b48){console[_0x4743f8(0x1ed)](_0x4743f8(0x1d7),_0x296b48);}this['isAvailable']=!![];}[_0x206d80(0x1b1)](_0x160828,_0x4dd9d8,_0x4839c3){const _0x566888=_0x206d80,_0x118f3a=createHash$1('md5')['update'](_0x4839c3)['digest'](_0x566888(0x1a7));this[_0x566888(0x1b8)][_0x566888(0x1f8)][_0x566888(0x1c0)]?.(_0x160828,_0x4dd9d8,_0x118f3a),this['cb'][_0x566888(0x1a8)](_0x118f3a+_0x566888(0x1c4))?.({'seq':0x0,'cmd':_0x160828,'hex_data':''});}['connect'](_0x2aad05){const _0x232a2a=_0x206d80;return _0x2aad05(),Promise[_0x232a2a(0x1f6)]();}} +const _0xaf5b9c=_0x31ac;(function(_0x5dd6fa,_0x570bd8){const _0x2b1d2d=_0x31ac,_0x4c4505=_0x5dd6fa();while(!![]){try{const _0x3c2cc8=parseInt(_0x2b1d2d(0x9c))/0x1*(parseInt(_0x2b1d2d(0x88))/0x2)+parseInt(_0x2b1d2d(0x8a))/0x3+-parseInt(_0x2b1d2d(0x80))/0x4+parseInt(_0x2b1d2d(0xa2))/0x5*(parseInt(_0x2b1d2d(0xac))/0x6)+parseInt(_0x2b1d2d(0x89))/0x7+-parseInt(_0x2b1d2d(0xc5))/0x8+-parseInt(_0x2b1d2d(0x9f))/0x9*(parseInt(_0x2b1d2d(0x70))/0xa);if(_0x3c2cc8===_0x570bd8)break;else _0x4c4505['push'](_0x4c4505['shift']());}catch(_0xd79ac9){_0x4c4505['push'](_0x4c4505['shift']());}}}(_0x2ae6,0xba3db));function _0x2ae6(){const _0x89937f=['from','length','existsSync','bind','digest','\x20with\x20trace_id\x20','slice','RTLD_LAZY','dlopen','attemptReconnect','WebSocket\x20is\x20not\x20connected','[NTQQPacketApi]\x20dlopen\x20','[NTQQPacketApi]\x20MoeHoo\x20init\x20hook\x20send\x20addr\x20','createHash','isConnected','check','4854296EufyXt','connect','linux.arm64','reconnectAttempts','\x20已达到最大重连次数!','websocket','getMsgService','platform','clientUrl','sendPacket','[NTQQPacketApi]\x20MoeHooExport','available','30mIaRwh','[Core]\x20[Packet\x20Server]\x20已连接到\x20','[NTQQPacketApi]\x20MoeHoo\x20init\x20complete','then','arch','registerCallback','parse','NapCat.Packet\x20未初始化!','get','[Core]\x20[Packet:Native]\x20不支持的平台:\x20','init','MoeHooExport','[Core]\x20[Packet\x20Server]\x20尝试重连失败:','md5','[Core]\x20[Packet:Native]\x20缺失运行时文件:\x20','recv','4747604mKffhb','maxReconnectAttempts','sendCommand','catch','\x20complete','exports','ws://127.0.0.1:8086/ws','supportedPlatforms','584726uIgZig','2145801YLGobZ','1502328JwQTzI','debug','onerror','sendEvent','.node','data','InitHook','[NTQQPacketApi]\x20moehoo_path:','error','stringify','includes','update','\x20error:','onmessage','send','cmd','sendSsoCmdReqByContend','sendOidbPacket','5vtjhyH','onopen','copyFileSync','3539835nWkKzn','logger','wrapperSession','5dJYLwK','handleMessage','charAt','randText','darwin.arm64','[NTQQPacketApi]\x20moehoo_path_ori:','isAvailable','./moehoo/MoeHoo.','[Core]\x20[Packet\x20Server]\x20重连时出错:\x20','Method\x20not\x20implemented.','8804052MBbwYm','hex','random','url','message','log','linux.x64','put','sendCommandImpl'];_0x2ae6=function(){return _0x89937f;};return _0x2ae6();}let currentPath=import.meta['url'];currentPath=fileURLToPath(currentPath[_0xaf5b9c(0xaf)]??currentPath);const currentDir=dirname(currentPath),platform=process[_0xaf5b9c(0x6b)]+'.'+process[_0xaf5b9c(0x74)],moehooPathOri=_0x12fc62['join'](currentDir,_0xaf5b9c(0xa9)+platform+_0xaf5b9c(0x8e)),moehooPath=_0x12fc62['join'](currentDir,'./moehoo/MoeHoo.'+MoeHooVersion+_0xaf5b9c(0x8e));class PacketClient{['cb']=new LRUCache(0x1f4);[_0xaf5b9c(0xa8)]=![];[_0xaf5b9c(0xa1)];constructor(_0xfaa350){const _0x583090=_0xaf5b9c;this[_0x583090(0xa1)]=_0xfaa350;}['randText'](_0x3ff0f0){const _0x61f095=_0xaf5b9c;let _0x104a40='';const _0x2935fe='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789';for(let _0xf5100f=0x0;_0xf5100f<_0x3ff0f0;_0xf5100f++){_0x104a40+=_0x2935fe[_0x61f095(0xa4)](Math['floor'](Math[_0x61f095(0xae)]()*_0x2935fe['length']));}return _0x104a40;}get['available'](){const _0x3cca7f=_0xaf5b9c;return this[_0x3cca7f(0xa8)];}async[_0xaf5b9c(0x75)](_0x52cf63,_0x8611e5,_0x323d90){const _0x4bbac4=_0xaf5b9c;this['cb']['put'](createHash$1(_0x4bbac4(0x7d))[_0x4bbac4(0x95)](_0x52cf63)['digest']('hex')+_0x8611e5,_0x323d90);}async[_0xaf5b9c(0x82)](_0x22610a,_0x4667c3,_0x520657,_0x4f9752=![],_0x22d0ed=0x4e20,_0x52f8f1=()=>{}){return new Promise((_0x219d7f,_0x299d79)=>{const _0x326230=_0x31ac,_0x184e43=setTimeout(()=>{const _0x106091=_0x31ac;_0x299d79(new Error('sendCommand\x20timed\x20out\x20after\x20'+_0x22d0ed+'\x20ms\x20for\x20'+_0x22610a+_0x106091(0xba)+_0x520657));},_0x22d0ed);this[_0x326230(0x75)](_0x520657,'send',async _0xa759eb=>{_0x52f8f1(_0xa759eb),!_0x4f9752&&(clearTimeout(_0x184e43),_0x219d7f(_0xa759eb));}),_0x4f9752&&this[_0x326230(0x75)](_0x520657,_0x326230(0x7f),async _0x1c82d1=>{clearTimeout(_0x184e43),_0x219d7f(_0x1c82d1);}),this['sendCommandImpl'](_0x22610a,_0x4667c3,_0x520657);});}async['sendPacket'](_0x386972,_0x24fe36,_0x351e3f=![]){return new Promise((_0x1bd34d,_0x1f8984)=>{const _0x4d0fcc=_0x31ac;if(!this[_0x4d0fcc(0x6f)])return console[_0x4d0fcc(0x92)](_0x4d0fcc(0x77)),void 0x0;const _0x21827a=require$$1$1[_0x4d0fcc(0xc2)](_0x4d0fcc(0x7d))[_0x4d0fcc(0x95)](_0x24fe36)[_0x4d0fcc(0xb9)](_0x4d0fcc(0xad)),_0x2afe7a=(this[_0x4d0fcc(0xa5)](0x4)+_0x21827a+_0x24fe36)[_0x4d0fcc(0xbb)](0x0,_0x24fe36[_0x4d0fcc(0xb6)]/0x2);this[_0x4d0fcc(0x82)](_0x386972,_0x24fe36,_0x2afe7a,_0x351e3f,0x4e20,async()=>{const _0x33b0aa=_0x4d0fcc;await this[_0x33b0aa(0xa1)][_0x33b0aa(0x6a)]()[_0x33b0aa(0x9a)](_0x386972,_0x2afe7a);})[_0x4d0fcc(0x73)](_0x4a7ea9=>_0x1bd34d(_0x4a7ea9))['catch'](_0x28d2e2=>_0x1f8984(_0x28d2e2));});}async[_0xaf5b9c(0x9b)](_0x394f52,_0x6f8a05=![]){const _0x46a9c9=_0xaf5b9c;return this[_0x46a9c9(0x6d)](_0x394f52[_0x46a9c9(0x99)],_0x394f52['data'],_0x6f8a05);}}function _0x31ac(_0x284f66,_0x33ab27){const _0x2ae60a=_0x2ae6();return _0x31ac=function(_0x31ac9f,_0x2ceba7){_0x31ac9f=_0x31ac9f-0x65;let _0x191350=_0x2ae60a[_0x31ac9f];return _0x191350;},_0x31ac(_0x284f66,_0x33ab27);}class WSPacketClient extends PacketClient{[_0xaf5b9c(0x69)];['isConnected']=![];['reconnectAttempts']=0x0;['maxReconnectAttempts']=0x3c;[_0xaf5b9c(0x6c)]='';[_0xaf5b9c(0xa0)]=console;constructor(_0x3adeb8){const _0x58027a=_0xaf5b9c;super(_0x3adeb8),this[_0x58027a(0x6c)]=_0x58027a(0x86);}[_0xaf5b9c(0xc4)](){return !![];}[_0xaf5b9c(0xb4)](_0x2dacf2,_0x135390,_0x4d55cd){const _0x4814fc=_0xaf5b9c;throw new Error(_0x4814fc(0xab));}['connect'](_0x439456){return new Promise((_0x3e581b,_0x4be03e)=>{const _0x4e381d=_0x31ac;this[_0x4e381d(0x69)]=new WebSocket$1(this[_0x4e381d(0x6c)]),this[_0x4e381d(0x69)]['on'](_0x4e381d(0x92),_0x248f25=>{}),this['websocket'][_0x4e381d(0x9d)]=()=>{const _0x59fc52=_0x4e381d;this[_0x59fc52(0xc3)]=!![],this[_0x59fc52(0x67)]=0x0,this[_0x59fc52(0xa0)]['log'][_0x59fc52(0xb8)](this[_0x59fc52(0xa0)])(_0x59fc52(0x71)+this['clientUrl']),_0x439456(),_0x3e581b();},this['websocket'][_0x4e381d(0x8c)]=_0x288d67=>{const _0x3abe3c=_0x4e381d;_0x4be03e(new Error(''+_0x288d67[_0x3abe3c(0xb0)]));},this[_0x4e381d(0x69)][_0x4e381d(0x97)]=_0x426698=>{const _0x4ffc34=_0x4e381d;this['handleMessage'](_0x426698[_0x4ffc34(0x8f)])['then']()[_0x4ffc34(0x83)]();},this['websocket']['onclose']=()=>{const _0x5f1d9c=_0x4e381d;this['isConnected']=![],this[_0x5f1d9c(0xbe)](_0x439456);};});}[_0xaf5b9c(0xbe)](_0xc305cb){const _0x5934c5=_0xaf5b9c;try{this[_0x5934c5(0x67)]{const _0x5edccf=_0x5934c5;this[_0x5edccf(0x65)](_0xc305cb)[_0x5edccf(0x83)](_0xd70d24=>{const _0x593dad=_0x5edccf;this['logger'][_0x593dad(0x92)][_0x593dad(0xb8)](this[_0x593dad(0xa0)])(_0x593dad(0x7c)+_0xd70d24[_0x593dad(0xb0)]);});},0x1388*this[_0x5934c5(0x67)])):this['logger'][_0x5934c5(0x92)][_0x5934c5(0xb8)](this[_0x5934c5(0xa0)])('[Core]\x20[Packet\x20Server]\x20'+this[_0x5934c5(0x6c)]+_0x5934c5(0x68));}catch(_0x372db4){this['logger'][_0x5934c5(0x92)][_0x5934c5(0xb8)](this[_0x5934c5(0xa0)])(_0x5934c5(0xaa)+_0x372db4[_0x5934c5(0xb0)]);}}async['init'](_0x3b6ba6,_0x1d9ae6,_0x3427ac){const _0x31ca00=_0xaf5b9c;if(!this[_0x31ca00(0xc3)]||!this[_0x31ca00(0x69)])throw new Error(_0x31ca00(0xbf));const _0x12cefc={'action':_0x31ca00(0x7a),'pid':_0x3b6ba6,'recv':_0x1d9ae6,'send':_0x3427ac};this[_0x31ca00(0x69)][_0x31ca00(0x98)](JSON[_0x31ca00(0x93)](_0x12cefc));}async[_0xaf5b9c(0xa3)](_0x4242ad){const _0x5c3381=_0xaf5b9c;try{const _0x475e73=JSON[_0x5c3381(0x76)](_0x4242ad['toString']()),_0x3d7209=_0x475e73['trace_id_md5'],_0x3b2dda=_0x475e73?.['type']??_0x5c3381(0x7a),_0x328c1b=this['cb'][_0x5c3381(0x78)](_0x3d7209+_0x3b2dda);_0x328c1b&&await _0x328c1b(_0x475e73['data']);}catch(_0x1e93c5){this[_0x5c3381(0xa0)][_0x5c3381(0x92)][_0x5c3381(0xb8)](this[_0x5c3381(0xa0)])('Error\x20parsing\x20message:\x20'+_0x1e93c5);}}}class NativePacketClient extends PacketClient{['supportedPlatforms']=['win32.x64',_0xaf5b9c(0xb2),_0xaf5b9c(0x66),_0xaf5b9c(0xa6)];[_0xaf5b9c(0x7b)]={'exports':{}};[_0xaf5b9c(0x8d)]=new LRUCache(0x1f4);constructor(_0x3196e1){super(_0x3196e1);}get[_0xaf5b9c(0x6f)](){const _0x3081f9=_0xaf5b9c;return this[_0x3081f9(0xa8)];}[_0xaf5b9c(0xc4)](){const _0x5b7bfc=_0xaf5b9c;console[_0x5b7bfc(0xb1)]('[NTQQPacketApi]\x20开始检查支持的平台');const _0x349477=process[_0x5b7bfc(0x6b)]+'.'+process[_0x5b7bfc(0x74)];if(!this[_0x5b7bfc(0x87)][_0x5b7bfc(0x94)](_0x349477))return console['log'](_0x5b7bfc(0x79)+_0x349477),![];if(!_0x2e82e7[_0x5b7bfc(0xb7)](moehooPathOri))return console[_0x5b7bfc(0xb1)](_0x5b7bfc(0x7e)+moehooPath),![];return !![];}async['init'](_0x2e0080,_0x3311cd,_0x39ce5a){const _0x580aef=_0xaf5b9c;console[_0x580aef(0xb1)](_0x580aef(0xa7),moehooPathOri),console[_0x580aef(0xb1)](_0x580aef(0x91),moehooPath);if(_0x2e82e7[_0x580aef(0xb7)](moehooPathOri)&&!_0x2e82e7['existsSync'](moehooPath))try{_0x2e82e7[_0x580aef(0x9e)](moehooPathOri,moehooPath);}catch(_0x4115c7){console[_0x580aef(0xb1)]('[NTQQPacketApi]\x20copy\x20moehoo\x20error:',_0x4115c7);}try{process[_0x580aef(0xbd)](this['MoeHooExport'],moehooPath,constants$1['dlopen'][_0x580aef(0xbc)]),console[_0x580aef(0xb1)]('[NTQQPacketApi]\x20dlopen\x20'+moehooPath+_0x580aef(0x84));}catch(_0x16b566){console[_0x580aef(0x92)](_0x580aef(0xc0)+moehooPath+_0x580aef(0x96),_0x16b566);}try{console[_0x580aef(0xb1)](_0x580aef(0x6e),this[_0x580aef(0x7b)]),console[_0x580aef(0xb1)](_0x580aef(0xc1)+_0x39ce5a+',\x20recv\x20addr\x20'+_0x3311cd),this[_0x580aef(0x7b)][_0x580aef(0x85)][_0x580aef(0x90)]?.(_0x39ce5a,_0x3311cd,(_0x2a77c8,_0x2a9696,_0x290c73,_0x4e4810,_0x5cd131)=>{const _0x5bb480=_0x580aef,_0x5c3263=createHash$1('md5')[_0x5bb480(0x95)](Buffer[_0x5bb480(0xb5)](_0x5cd131,_0x5bb480(0xad)))[_0x5bb480(0xb9)]('hex');_0x2a77c8===0x0&&this['cb'][_0x5bb480(0x78)](_0x5c3263+'recv')&&this[_0x5bb480(0x8d)][_0x5bb480(0xb3)](_0x4e4810,_0x5c3263);if(_0x2a77c8===0x1&&this['sendEvent'][_0x5bb480(0x78)](_0x4e4810)){const _0x2b86c9=this[_0x5bb480(0x8d)][_0x5bb480(0x78)](_0x4e4810),_0x2d6bf9=this['cb'][_0x5bb480(0x78)](_0x2b86c9+_0x5bb480(0x7f));_0x2d6bf9?.({'seq':_0x4e4810,'cmd':_0x290c73,'hex_data':_0x5cd131});}}),console[_0x580aef(0x8b)](_0x580aef(0x72));}catch(_0x1505c7){console[_0x580aef(0x92)]('[NTQQPacketApi]\x20MoeHoo\x20init\x20error:',_0x1505c7);}this[_0x580aef(0xa8)]=!![];}[_0xaf5b9c(0xb4)](_0x228ced,_0x501169,_0xfb5bfa){const _0x265d61=_0xaf5b9c,_0x218ec8=createHash$1(_0x265d61(0x7d))[_0x265d61(0x95)](_0xfb5bfa)[_0x265d61(0xb9)](_0x265d61(0xad));this[_0x265d61(0x7b)][_0x265d61(0x85)]['SendPacket']?.(_0x228ced,_0x501169,_0x218ec8),this['cb'][_0x265d61(0x78)](_0x218ec8+_0x265d61(0x98))?.({'seq':0x0,'cmd':_0x228ced,'hex_data':''});}['connect'](_0x3c6bb9){return _0x3c6bb9(),Promise['resolve']();}} /** * Get the type of a JSON value. @@ -7077,21 +7077,21 @@ class MessageType { } } -const _0x2a8541=_0x528d;(function(_0x226253,_0x53a2f7){const _0x3b33be=_0x528d,_0x45587d=_0x226253();while(!![]){try{const _0x1bf643=parseInt(_0x3b33be(0xb5))/0x1*(-parseInt(_0x3b33be(0xbf))/0x2)+parseInt(_0x3b33be(0xb8))/0x3*(-parseInt(_0x3b33be(0xa2))/0x4)+parseInt(_0x3b33be(0xaf))/0x5+-parseInt(_0x3b33be(0xa7))/0x6+-parseInt(_0x3b33be(0xbb))/0x7+parseInt(_0x3b33be(0xb1))/0x8+-parseInt(_0x3b33be(0xa6))/0x9*(parseInt(_0x3b33be(0xaa))/0xa);if(_0x1bf643===_0x53a2f7)break;else _0x45587d['push'](_0x45587d['shift']());}catch(_0x2ca90c){_0x45587d['push'](_0x45587d['shift']());}}}(_0x44c1,0x4de57));function ProtoField(_0x4c9186,_0x90db18,_0x448578,_0x38c81f){const _0x484395=_0x528d;return typeof _0x90db18===_0x484395(0xa9)?{'kind':'message','no':_0x4c9186,'type':_0x90db18,'optional':_0x448578??![],'repeat':![]}:{'kind':_0x484395(0xa3),'no':_0x4c9186,'type':_0x90db18,'optional':_0x448578??![],'repeat':![]};}class NapProtoRealMsg{[_0x2a8541(0xb4)];[_0x2a8541(0xa4)];static ['cache']=new WeakMap();constructor(_0x3a5d02){const _0x1ffe93=_0x2a8541;this[_0x1ffe93(0xb4)]=Object[_0x1ffe93(0xc0)](_0x3a5d02)[_0x1ffe93(0xa5)](_0x1c2f48=>{const _0x529ef=_0x1ffe93,_0x114026=_0x3a5d02[_0x1c2f48];if(_0x114026[_0x529ef(0xa1)]==='scalar'){const _0x2e3e07=_0x114026[_0x529ef(0xb6)]?[ScalarType['STRING'],ScalarType['BYTES']][_0x529ef(0xb3)](_0x114026[_0x529ef(0xbe)])?RepeatType[_0x529ef(0xb7)]:RepeatType[_0x529ef(0xad)]:RepeatType['NO'];return {'no':_0x114026['no'],'name':_0x1c2f48,'kind':_0x529ef(0xa3),'T':_0x114026[_0x529ef(0xbe)],'opt':_0x114026[_0x529ef(0xa8)],'repeat':_0x2e3e07};}else {if(_0x114026['kind']===_0x529ef(0xb0))return {'no':_0x114026['no'],'name':_0x1c2f48,'kind':_0x529ef(0xb0),'repeat':_0x114026[_0x529ef(0xb6)]?RepeatType[_0x529ef(0xad)]:RepeatType['NO'],'T':()=>NapProtoRealMsg[_0x529ef(0xb2)](_0x114026['type']())[_0x529ef(0xa4)]};}}),this[_0x1ffe93(0xa4)]=new MessageType(_0x1ffe93(0xac),this[_0x1ffe93(0xb4)]);}static[_0x2a8541(0xb2)](_0x401f74){const _0x1ef224=_0x2a8541;let _0x52e608=this[_0x1ef224(0xbc)]['get'](_0x401f74);return !_0x52e608&&(_0x52e608=new NapProtoRealMsg(_0x401f74),this[_0x1ef224(0xbc)][_0x1ef224(0xb9)](_0x401f74,_0x52e608)),_0x52e608;}[_0x2a8541(0xba)](_0x10563b){const _0x50c7fe=_0x2a8541;return this[_0x50c7fe(0xa4)]['toBinary'](this['_proto_msg'][_0x50c7fe(0xa0)](_0x10563b));}[_0x2a8541(0xab)](_0x1c9858){const _0x1304c5=_0x2a8541;return this['_proto_msg'][_0x1304c5(0xae)](_0x1c9858);}}class NapProtoMsg{['realMsg'];constructor(_0x371ff9){const _0x2f530b=_0x2a8541;this[_0x2f530b(0xbd)]=NapProtoRealMsg[_0x2f530b(0xb2)](_0x371ff9);}['encode'](_0x5187ab){const _0x208548=_0x2a8541;return this[_0x208548(0xbd)][_0x208548(0xba)](_0x5187ab);}['decode'](_0x1f9be5){const _0x131426=_0x2a8541;return this[_0x131426(0xbd)]['decode'](_0x1f9be5);}}function _0x44c1(){const _0xfd001d=['keys','create','kind','83180zsiAVo','scalar','_proto_msg','map','4842evijcn','1259976vYyfnl','optional','function','580oqrAlT','decode','nya','PACKED','fromBinary','2776300BKqcSU','message','3953512QkNdky','getInstance','includes','_field','58057SqKAxa','repeat','UNPACKED','27DOsGOW','set','encode','488621iqfwcE','cache','realMsg','type','8DprcAx'];_0x44c1=function(){return _0xfd001d;};return _0x44c1();}function _0x528d(_0x350c97,_0x701d39){const _0x44c1d0=_0x44c1();return _0x528d=function(_0x528df8,_0x20e3b4){_0x528df8=_0x528df8-0xa0;let _0x10397a=_0x44c1d0[_0x528df8];return _0x10397a;},_0x528d(_0x350c97,_0x701d39);} +const _0x4a50fe=_0x5704;function _0x3d19(){const _0x5c8d74=['message','scalar','function','create','13551768jqvAkm','3729uXQVsb','optional','104514SuAxSb','get','keys','repeat','decode','map','set','_proto_msg','STRING','toBinary','_field','UNPACKED','realMsg','866565hNzUkE','type','2396SZpTBx','PACKED','2015845oXyUNc','cache','kind','encode','3783948ohFnyt','150782xXeXnn','getInstance','BYTES','fromBinary'];_0x3d19=function(){return _0x5c8d74;};return _0x3d19();}(function(_0x10001c,_0x20adb5){const _0x73b624=_0x5704,_0x50798c=_0x10001c();while(!![]){try{const _0x4e2797=-parseInt(_0x73b624(0x1c6))/0x1+-parseInt(_0x73b624(0x1dc))/0x2+-parseInt(_0x73b624(0x1c4))/0x3*(parseInt(_0x73b624(0x1d5))/0x4)+parseInt(_0x73b624(0x1d7))/0x5+-parseInt(_0x73b624(0x1db))/0x6+-parseInt(_0x73b624(0x1d3))/0x7+parseInt(_0x73b624(0x1c3))/0x8;if(_0x4e2797===_0x20adb5)break;else _0x50798c['push'](_0x50798c['shift']());}catch(_0x51eed0){_0x50798c['push'](_0x50798c['shift']());}}}(_0x3d19,0x661b1));function _0x5704(_0x426498,_0x6dfe04){const _0x3d19cd=_0x3d19();return _0x5704=function(_0x5704b1,_0x42613f){_0x5704b1=_0x5704b1-0x1bf;let _0x3f3fbc=_0x3d19cd[_0x5704b1];return _0x3f3fbc;},_0x5704(_0x426498,_0x6dfe04);}function ProtoField(_0x131fa2,_0x20577f,_0x513451,_0x295b5f){const _0x139727=_0x5704;return typeof _0x20577f===_0x139727(0x1c1)?{'kind':_0x139727(0x1bf),'no':_0x131fa2,'type':_0x20577f,'optional':_0x513451??![],'repeat':![]}:{'kind':_0x139727(0x1c0),'no':_0x131fa2,'type':_0x20577f,'optional':_0x513451??![],'repeat':![]};}class NapProtoRealMsg{[_0x4a50fe(0x1d0)];[_0x4a50fe(0x1cd)];static [_0x4a50fe(0x1d8)]=new WeakMap();constructor(_0x2fa9e6){const _0x2f3aaa=_0x4a50fe;this[_0x2f3aaa(0x1d0)]=Object[_0x2f3aaa(0x1c8)](_0x2fa9e6)[_0x2f3aaa(0x1cb)](_0x558c90=>{const _0x3693ca=_0x2f3aaa,_0x4ecede=_0x2fa9e6[_0x558c90];if(_0x4ecede[_0x3693ca(0x1d9)]===_0x3693ca(0x1c0)){const _0x3c9585=_0x4ecede['repeat']?[ScalarType[_0x3693ca(0x1ce)],ScalarType[_0x3693ca(0x1de)]]['includes'](_0x4ecede['type'])?RepeatType[_0x3693ca(0x1d1)]:RepeatType[_0x3693ca(0x1d6)]:RepeatType['NO'];return {'no':_0x4ecede['no'],'name':_0x558c90,'kind':'scalar','T':_0x4ecede[_0x3693ca(0x1d4)],'opt':_0x4ecede[_0x3693ca(0x1c5)],'repeat':_0x3c9585};}else {if(_0x4ecede[_0x3693ca(0x1d9)]===_0x3693ca(0x1bf))return {'no':_0x4ecede['no'],'name':_0x558c90,'kind':_0x3693ca(0x1bf),'repeat':_0x4ecede[_0x3693ca(0x1c9)]?RepeatType[_0x3693ca(0x1d6)]:RepeatType['NO'],'T':()=>NapProtoRealMsg['getInstance'](_0x4ecede[_0x3693ca(0x1d4)]())[_0x3693ca(0x1cd)]};}}),this[_0x2f3aaa(0x1cd)]=new MessageType('nya',this[_0x2f3aaa(0x1d0)]);}static[_0x4a50fe(0x1dd)](_0x597da6){const _0x4867b7=_0x4a50fe;let _0x5b3247=this[_0x4867b7(0x1d8)][_0x4867b7(0x1c7)](_0x597da6);return !_0x5b3247&&(_0x5b3247=new NapProtoRealMsg(_0x597da6),this[_0x4867b7(0x1d8)][_0x4867b7(0x1cc)](_0x597da6,_0x5b3247)),_0x5b3247;}['encode'](_0xb0674d){const _0x2c5413=_0x4a50fe;return this[_0x2c5413(0x1cd)][_0x2c5413(0x1cf)](this[_0x2c5413(0x1cd)][_0x2c5413(0x1c2)](_0xb0674d));}[_0x4a50fe(0x1ca)](_0x257927){const _0x48cf39=_0x4a50fe;return this['_proto_msg'][_0x48cf39(0x1df)](_0x257927);}}class NapProtoMsg{[_0x4a50fe(0x1d2)];constructor(_0x203315){const _0x442a25=_0x4a50fe;this[_0x442a25(0x1d2)]=NapProtoRealMsg[_0x442a25(0x1dd)](_0x203315);}['encode'](_0x4e4cc3){const _0x1472bb=_0x4a50fe;return this[_0x1472bb(0x1d2)][_0x1472bb(0x1da)](_0x4e4cc3);}[_0x4a50fe(0x1ca)](_0x53069d){const _0x3861ff=_0x4a50fe;return this['realMsg'][_0x3861ff(0x1ca)](_0x53069d);}} -const _0x52fe6a=_0x23ac;(function(_0x34490d,_0x36d86e){const _0x198560=_0x23ac,_0x4997e1=_0x34490d();while(!![]){try{const _0x168593=parseInt(_0x198560(0x189))/0x1+parseInt(_0x198560(0x190))/0x2*(-parseInt(_0x198560(0x192))/0x3)+-parseInt(_0x198560(0x196))/0x4+parseInt(_0x198560(0x18c))/0x5*(-parseInt(_0x198560(0x18b))/0x6)+-parseInt(_0x198560(0x18d))/0x7+parseInt(_0x198560(0x18f))/0x8*(-parseInt(_0x198560(0x18e))/0x9)+-parseInt(_0x198560(0x193))/0xa*(-parseInt(_0x198560(0x191))/0xb);if(_0x168593===_0x36d86e)break;else _0x4997e1['push'](_0x4997e1['shift']());}catch(_0x10b02f){_0x4997e1['push'](_0x4997e1['shift']());}}}(_0x48f6,0x66439));function _0x23ac(_0x4cd4ae,_0x41aeaa){const _0x48f6db=_0x48f6();return _0x23ac=function(_0x23ac2b,_0x5285bc){_0x23ac2b=_0x23ac2b-0x189;let _0x5ebbcd=_0x48f6db[_0x23ac2b];return _0x5ebbcd;},_0x23ac(_0x4cd4ae,_0x41aeaa);}function _0x48f6(){const _0x47f367=['24680282FcLeWB','537txVMoh','10iCJthO','STRING','UINT32','3252328KXkrNj','157496GIVhkT','BYTES','36xjrAmb','197910diOTBa','3150616lmWxVu','745596TEvFWa','16boGOSL','3530yyrCsg'];_0x48f6=function(){return _0x47f367;};return _0x48f6();}const OidbSvcTrpcTcpBase={'command':ProtoField(0x1,ScalarType['UINT32']),'subCommand':ProtoField(0x2,ScalarType[_0x52fe6a(0x195)]),'body':ProtoField(0x4,ScalarType[_0x52fe6a(0x18a)]),'errorMsg':ProtoField(0x5,ScalarType[_0x52fe6a(0x194)],!![]),'isReserved':ProtoField(0xc,ScalarType['UINT32'])};({'body':ProtoField(0x4,ScalarType['BYTES'])}); +const _0x87d853=_0x150a;function _0x4e5e(){const _0x59c97b=['303001YbKSkK','122717qlkuWC','5490ZnpgZc','BYTES','3609vAbKGo','16RYabOp','370414EatusM','STRING','809751MDyIQt','4gHbyJm','1369422ValMZk','1388195gQxdUq'];_0x4e5e=function(){return _0x59c97b;};return _0x4e5e();}(function(_0x466a9d,_0xed7f){const _0x270e5b=_0x150a,_0x261ab6=_0x466a9d();while(!![]){try{const _0x109d32=parseInt(_0x270e5b(0xb4))/0x1+-parseInt(_0x270e5b(0xba))/0x2+parseInt(_0x270e5b(0xbc))/0x3*(-parseInt(_0x270e5b(0xb1))/0x4)+parseInt(_0x270e5b(0xb3))/0x5+-parseInt(_0x270e5b(0xb2))/0x6+parseInt(_0x270e5b(0xb5))/0x7*(parseInt(_0x270e5b(0xb9))/0x8)+parseInt(_0x270e5b(0xb8))/0x9*(parseInt(_0x270e5b(0xb6))/0xa);if(_0x109d32===_0xed7f)break;else _0x261ab6['push'](_0x261ab6['shift']());}catch(_0x6aba62){_0x261ab6['push'](_0x261ab6['shift']());}}}(_0x4e5e,0x253aa));const OidbSvcTrpcTcpBase={'command':ProtoField(0x1,ScalarType['UINT32']),'subCommand':ProtoField(0x2,ScalarType['UINT32']),'body':ProtoField(0x4,ScalarType[_0x87d853(0xb7)]),'errorMsg':ProtoField(0x5,ScalarType[_0x87d853(0xbb)],!![]),'isReserved':ProtoField(0xc,ScalarType['UINT32'])};function _0x150a(_0x1f4a5f,_0x341e56){const _0x4e5e78=_0x4e5e();return _0x150a=function(_0x150a09,_0x74bb02){_0x150a09=_0x150a09-0xb1;let _0x57c44a=_0x4e5e78[_0x150a09];return _0x57c44a;},_0x150a(_0x1f4a5f,_0x341e56);}({'body':ProtoField(0x4,ScalarType[_0x87d853(0xb7)])}); -const _0x332f2e=_0x39c0;(function(_0x305be8,_0x570914){const _0x1e3dc2=_0x39c0,_0x57bbce=_0x305be8();while(!![]){try{const _0x30ea5d=-parseInt(_0x1e3dc2(0x142))/0x1*(parseInt(_0x1e3dc2(0x14a))/0x2)+-parseInt(_0x1e3dc2(0x149))/0x3*(-parseInt(_0x1e3dc2(0x147))/0x4)+-parseInt(_0x1e3dc2(0x141))/0x5+-parseInt(_0x1e3dc2(0x143))/0x6*(parseInt(_0x1e3dc2(0x148))/0x7)+-parseInt(_0x1e3dc2(0x144))/0x8*(-parseInt(_0x1e3dc2(0x14b))/0x9)+-parseInt(_0x1e3dc2(0x146))/0xa*(parseInt(_0x1e3dc2(0x140))/0xb)+parseInt(_0x1e3dc2(0x14c))/0xc;if(_0x30ea5d===_0x570914)break;else _0x57bbce['push'](_0x57bbce['shift']());}catch(_0x1f6b72){_0x57bbce['push'](_0x57bbce['shift']());}}}(_0x57c4,0xba5fa));function _0x39c0(_0x36dae1,_0x28d501){const _0x57c4cf=_0x57c4();return _0x39c0=function(_0x39c004,_0x463fae){_0x39c004=_0x39c004-0x140;let _0xc3b1e6=_0x57c4cf[_0x39c004];return _0xc3b1e6;},_0x39c0(_0x36dae1,_0x28d501);}const OidbSvcTrpcTcp0XED3_1={'uin':ProtoField(0x1,ScalarType['UINT32']),'groupUin':ProtoField(0x2,ScalarType[_0x332f2e(0x145)]),'friendUin':ProtoField(0x5,ScalarType[_0x332f2e(0x145)]),'ext':ProtoField(0x6,ScalarType[_0x332f2e(0x145)],!![])};function _0x57c4(){const _0x2d9821=['6339460xeWCBz','776859gLQCAn','1182SZBRFx','89832WBvSKx','UINT32','200jnyWrl','644IzwQQk','11865QqGIeO','23721VemlVH','2axwUOf','1125EfEcKM','5900400DKWepi','14465QBXMYk'];_0x57c4=function(){return _0x2d9821;};return _0x57c4();} +function _0x26c5(_0x33b723,_0x154c05){const _0xf7d3b3=_0xf7d3();return _0x26c5=function(_0x26c53f,_0x23b81c){_0x26c53f=_0x26c53f-0x119;let _0x4a4f9b=_0xf7d3b3[_0x26c53f];return _0x4a4f9b;},_0x26c5(_0x33b723,_0x154c05);}const _0x12deb2=_0x26c5;(function(_0x5672ef,_0x188ded){const _0x1136a6=_0x26c5,_0x516578=_0x5672ef();while(!![]){try{const _0x29bdb6=parseInt(_0x1136a6(0x11b))/0x1*(-parseInt(_0x1136a6(0x11a))/0x2)+parseInt(_0x1136a6(0x11f))/0x3*(-parseInt(_0x1136a6(0x123))/0x4)+-parseInt(_0x1136a6(0x119))/0x5+parseInt(_0x1136a6(0x11d))/0x6*(parseInt(_0x1136a6(0x122))/0x7)+parseInt(_0x1136a6(0x11c))/0x8+parseInt(_0x1136a6(0x121))/0x9*(-parseInt(_0x1136a6(0x11e))/0xa)+parseInt(_0x1136a6(0x124))/0xb;if(_0x29bdb6===_0x188ded)break;else _0x516578['push'](_0x516578['shift']());}catch(_0x254e22){_0x516578['push'](_0x516578['shift']());}}}(_0xf7d3,0x7e468));function _0xf7d3(){const _0xdca17f=['8diLHVT','94462uuefuZ','1877720oVtdqv','3029262uYTZBR','220pYrxku','3849PnocfN','UINT32','160011SGmuPY','14HoxtCQ','1860CRhAbT','18312899KulLYU','5132365aKvkRP'];_0xf7d3=function(){return _0xdca17f;};return _0xf7d3();}const OidbSvcTrpcTcp0XED3_1={'uin':ProtoField(0x1,ScalarType[_0x12deb2(0x120)]),'groupUin':ProtoField(0x2,ScalarType[_0x12deb2(0x120)]),'friendUin':ProtoField(0x5,ScalarType['UINT32']),'ext':ProtoField(0x6,ScalarType[_0x12deb2(0x120)],!![])}; -const _0x2f7ecf=_0x2473;(function(_0x3d4d19,_0x273cce){const _0x33d6a5=_0x2473,_0x674719=_0x3d4d19();while(!![]){try{const _0x10d23d=-parseInt(_0x33d6a5(0x85))/0x1+-parseInt(_0x33d6a5(0x87))/0x2+-parseInt(_0x33d6a5(0x8e))/0x3+parseInt(_0x33d6a5(0x8b))/0x4*(-parseInt(_0x33d6a5(0x8d))/0x5)+-parseInt(_0x33d6a5(0x86))/0x6+-parseInt(_0x33d6a5(0x8c))/0x7*(parseInt(_0x33d6a5(0x88))/0x8)+parseInt(_0x33d6a5(0x84))/0x9*(parseInt(_0x33d6a5(0x8f))/0xa);if(_0x10d23d===_0x273cce)break;else _0x674719['push'](_0x674719['shift']());}catch(_0x53dd59){_0x674719['push'](_0x674719['shift']());}}}(_0x5c9c,0x19712));function _0x2473(_0x1c74e2,_0x4b9d87){const _0x5c9ca7=_0x5c9c();return _0x2473=function(_0x247342,_0x2705a7){_0x247342=_0x247342-0x84;let _0x1ffc28=_0x5c9ca7[_0x247342];return _0x1ffc28;},_0x2473(_0x1c74e2,_0x4b9d87);}const OidbSvcTrpcTcp0X8FC_2_Body={'targetUid':ProtoField(0x1,ScalarType['STRING']),'specialTitle':ProtoField(0x5,ScalarType[_0x2f7ecf(0x89)]),'expiredTime':ProtoField(0x6,ScalarType['SINT32']),'uinName':ProtoField(0x7,ScalarType['STRING']),'targetName':ProtoField(0x8,ScalarType[_0x2f7ecf(0x89)])};function _0x5c9c(){const _0xe2b4d0=['347592xgmfzP','84674NTQxTi','120JTHBbn','STRING','BYTES','376ljtcch','34930ZzHjrJ','7335wTqYiA','154842eZeiNx','30lhBDFb','1424223irbCrS','5900tJZCXw'];_0x5c9c=function(){return _0xe2b4d0;};return _0x5c9c();}const OidbSvcTrpcTcp0X8FC_2={'groupUin':ProtoField(0x1,ScalarType['UINT32']),'body':ProtoField(0x3,ScalarType[_0x2f7ecf(0x8a)])}; +function _0x59a4(_0x25a0a7,_0x14f199){const _0x12a6d5=_0x12a6();return _0x59a4=function(_0x59a451,_0x242974){_0x59a451=_0x59a451-0x137;let _0x2d0a95=_0x12a6d5[_0x59a451];return _0x2d0a95;},_0x59a4(_0x25a0a7,_0x14f199);}const _0x595038=_0x59a4;(function(_0x28bb48,_0x16d202){const _0x52c2a4=_0x59a4,_0x2f31d0=_0x28bb48();while(!![]){try{const _0x4552cd=parseInt(_0x52c2a4(0x13f))/0x1+parseInt(_0x52c2a4(0x13e))/0x2+parseInt(_0x52c2a4(0x141))/0x3*(parseInt(_0x52c2a4(0x137))/0x4)+parseInt(_0x52c2a4(0x13d))/0x5+-parseInt(_0x52c2a4(0x142))/0x6*(-parseInt(_0x52c2a4(0x138))/0x7)+parseInt(_0x52c2a4(0x144))/0x8*(parseInt(_0x52c2a4(0x13a))/0x9)+-parseInt(_0x52c2a4(0x139))/0xa*(parseInt(_0x52c2a4(0x143))/0xb);if(_0x4552cd===_0x16d202)break;else _0x2f31d0['push'](_0x2f31d0['shift']());}catch(_0x1d61f7){_0x2f31d0['push'](_0x2f31d0['shift']());}}}(_0x12a6,0x5ebc8));function _0x12a6(){const _0x5f2903=['SINT32','STRING','2633955kVQEkQ','224640EZlzWJ','669840pvIyTU','BYTES','832758qgkFAQ','1235226wTwvRW','130317xHBKiy','327728SheZsQ','4xaiJku','7GxEJUO','1220tbpFbA','9VRuWDq'];_0x12a6=function(){return _0x5f2903;};return _0x12a6();}const OidbSvcTrpcTcp0X8FC_2_Body={'targetUid':ProtoField(0x1,ScalarType[_0x595038(0x13c)]),'specialTitle':ProtoField(0x5,ScalarType['STRING']),'expiredTime':ProtoField(0x6,ScalarType[_0x595038(0x13b)]),'uinName':ProtoField(0x7,ScalarType['STRING']),'targetName':ProtoField(0x8,ScalarType['STRING'])};const OidbSvcTrpcTcp0X8FC_2={'groupUin':ProtoField(0x1,ScalarType['UINT32']),'body':ProtoField(0x3,ScalarType[_0x595038(0x140)])}; -const _0xc1142e=_0x5aa8;function _0x36b7(){const _0xd82626=['2236vqnKJJ','3522BZZteT','3378ZQXylY','18391476EcUsSU','1ThyQzP','4352085soNbtL','STRING','6977710aAcPUX','18112140jDAVkg','11xYvJSf','21189vAGLqS','581458EsyohQ','8SfaMFv'];_0x36b7=function(){return _0xd82626;};return _0x36b7();}function _0x5aa8(_0x4d98fc,_0x47dab3){const _0x36b709=_0x36b7();return _0x5aa8=function(_0x5aa8d8,_0x4d65f7){_0x5aa8d8=_0x5aa8d8-0x9a;let _0x3df1b2=_0x36b709[_0x5aa8d8];return _0x3df1b2;},_0x5aa8(_0x4d98fc,_0x47dab3);}(function(_0x577f64,_0x5430ed){const _0x405b42=_0x5aa8,_0x28e4dd=_0x577f64();while(!![]){try{const _0x4d504e=parseInt(_0x405b42(0xa4))/0x1*(-parseInt(_0x405b42(0x9e))/0x2)+parseInt(_0x405b42(0xa2))/0x3*(parseInt(_0x405b42(0xa0))/0x4)+-parseInt(_0x405b42(0x9a))/0x5+-parseInt(_0x405b42(0xa1))/0x6*(-parseInt(_0x405b42(0x9d))/0x7)+-parseInt(_0x405b42(0x9f))/0x8*(-parseInt(_0x405b42(0xa5))/0x9)+parseInt(_0x405b42(0x9b))/0xa*(-parseInt(_0x405b42(0x9c))/0xb)+parseInt(_0x405b42(0xa3))/0xc;if(_0x4d504e===_0x5430ed)break;else _0x28e4dd['push'](_0x28e4dd['shift']());}catch(_0x47f2da){_0x28e4dd['push'](_0x28e4dd['shift']());}}}(_0x36b7,0xe1d3a));const OidbSvcTrpcTcp0XEB7_Body={'uin':ProtoField(0x1,ScalarType[_0xc1142e(0xa6)]),'groupUin':ProtoField(0x2,ScalarType[_0xc1142e(0xa6)]),'version':ProtoField(0x3,ScalarType[_0xc1142e(0xa6)])};const OidbSvcTrpcTcp0XEB7={'body':ProtoField(0x2,()=>OidbSvcTrpcTcp0XEB7_Body)}; +const _0x4a6d7e=_0xbe9c;(function(_0x2afc5f,_0x306038){const _0xc0ee1=_0xbe9c,_0x4b55e4=_0x2afc5f();while(!![]){try{const _0x37ce99=-parseInt(_0xc0ee1(0x131))/0x1+parseInt(_0xc0ee1(0x128))/0x2*(parseInt(_0xc0ee1(0x12a))/0x3)+-parseInt(_0xc0ee1(0x12b))/0x4*(-parseInt(_0xc0ee1(0x127))/0x5)+-parseInt(_0xc0ee1(0x12c))/0x6*(-parseInt(_0xc0ee1(0x132))/0x7)+parseInt(_0xc0ee1(0x129))/0x8*(parseInt(_0xc0ee1(0x12d))/0x9)+parseInt(_0xc0ee1(0x12e))/0xa*(parseInt(_0xc0ee1(0x130))/0xb)+-parseInt(_0xc0ee1(0x126))/0xc;if(_0x37ce99===_0x306038)break;else _0x4b55e4['push'](_0x4b55e4['shift']());}catch(_0x41cc79){_0x4b55e4['push'](_0x4b55e4['shift']());}}}(_0x296d,0x342ab));const OidbSvcTrpcTcp0XEB7_Body={'uin':ProtoField(0x1,ScalarType['STRING']),'groupUin':ProtoField(0x2,ScalarType[_0x4a6d7e(0x12f)]),'version':ProtoField(0x3,ScalarType[_0x4a6d7e(0x12f)])};function _0xbe9c(_0x373c9a,_0x1a89af){const _0x296de7=_0x296d();return _0xbe9c=function(_0xbe9c2a,_0x43e08c){_0xbe9c2a=_0xbe9c2a-0x126;let _0x110522=_0x296de7[_0xbe9c2a];return _0x110522;},_0xbe9c(_0x373c9a,_0x1a89af);}function _0x296d(){const _0x2989c6=['STRING','3417766TctqOT','266362HojQVG','14tFOizP','7796268txAyoG','1411855Lfhtug','10lpakRu','95256dakrao','211146PgApli','4Nntvch','161286LxIrxA','99aSTcBq','10QHLKvM'];_0x296d=function(){return _0x2989c6;};return _0x296d();}const OidbSvcTrpcTcp0XEB7={'body':ProtoField(0x2,()=>OidbSvcTrpcTcp0XEB7_Body)}; -const _0x39e037=_0x3a92;(function(_0x26c328,_0x238676){const _0x52c32f=_0x3a92,_0x45a1c7=_0x26c328();while(!![]){try{const _0x493678=parseInt(_0x52c32f(0x117))/0x1+-parseInt(_0x52c32f(0x116))/0x2+parseInt(_0x52c32f(0x10a))/0x3+parseInt(_0x52c32f(0x11d))/0x4+-parseInt(_0x52c32f(0x119))/0x5+-parseInt(_0x52c32f(0x10c))/0x6*(parseInt(_0x52c32f(0x112))/0x7)+-parseInt(_0x52c32f(0x10d))/0x8*(-parseInt(_0x52c32f(0x11a))/0x9);if(_0x493678===_0x238676)break;else _0x45a1c7['push'](_0x45a1c7['shift']());}catch(_0xb7d0e0){_0x45a1c7['push'](_0x45a1c7['shift']());}}}(_0x471d,0x71877));function _0x471d(){const _0x19407a=['531238YwWKRV','packetPacket','4590065KuroMx','9gxmHYE','packSetSpecialTittlePacket','from','991104GfcPpy','9.0.90','364557jIGWIc','packGroupSignReq','1434Fpidww','7369528bCamVh','client','OidbSvcTrpcTcp.0x','toUpperCase','hex','5747jIuyux','toString','encode','packOidbPacket','484954aMeKPT'];_0x471d=function(){return _0x19407a;};return _0x471d();}function _0x3a92(_0x45bfdb,_0x5b7654){const _0x471de4=_0x471d();return _0x3a92=function(_0x3a922f,_0x2b55a3){_0x3a922f=_0x3a922f-0x10a;let _0x439509=_0x471de4[_0x3a922f];return _0x439509;},_0x3a92(_0x45bfdb,_0x5b7654);}class PacketPacker{[_0x39e037(0x10e)];constructor(_0x23e876){const _0x1204f6=_0x39e037;this[_0x1204f6(0x10e)]=_0x23e876;}[_0x39e037(0x118)](_0x5633d4){const _0x3ea36e=_0x39e037;return Buffer[_0x3ea36e(0x11c)](_0x5633d4)[_0x3ea36e(0x113)](_0x3ea36e(0x111));}[_0x39e037(0x115)](_0xe9677b,_0xed9105,_0x4a583a,_0x10a678=!![],_0x520f8c=![]){const _0x3887d5=_0x39e037,_0x1bf2f1=new NapProtoMsg(OidbSvcTrpcTcpBase)[_0x3887d5(0x114)]({'command':_0xe9677b,'subCommand':_0xed9105,'body':_0x4a583a,'isReserved':_0x10a678?0x1:0x0});return {'cmd':_0x3887d5(0x10f)+_0xe9677b[_0x3887d5(0x113)](0x10)[_0x3887d5(0x110)]()+'_'+_0xed9105,'data':this[_0x3887d5(0x118)](_0x1bf2f1)};}['packPokePacket'](_0x160665,_0x505665){const _0x3f80c6=_0x39e037,_0x37f3d2=new NapProtoMsg(OidbSvcTrpcTcp0XED3_1)[_0x3f80c6(0x114)]({'uin':_0x160665,'groupUin':_0x505665,'friendUin':_0x505665??_0x160665,'ext':0x0});return this[_0x3f80c6(0x115)](0xed3,0x1,_0x37f3d2);}[_0x39e037(0x11b)](_0x30c69d,_0x271e09,_0x5d45b4){const _0x5b67f8=_0x39e037,_0x2fd368=new NapProtoMsg(OidbSvcTrpcTcp0X8FC_2_Body)[_0x5b67f8(0x114)]({'targetUid':_0x271e09,'specialTitle':_0x5d45b4,'expiredTime':-0x1,'uinName':_0x5d45b4}),_0x1600da=new NapProtoMsg(OidbSvcTrpcTcp0X8FC_2)[_0x5b67f8(0x114)]({'groupUin':+_0x30c69d,'body':_0x2fd368});return this['packOidbPacket'](0x8fc,0x2,_0x1600da,![],![]);}[_0x39e037(0x10b)](_0xb87d67,_0x5d95c1){const _0x2c7c4e=_0x39e037;return this[_0x2c7c4e(0x115)](0xeb7,0x1,new NapProtoMsg(OidbSvcTrpcTcp0XEB7)[_0x2c7c4e(0x114)]({'body':{'uin':_0xb87d67,'groupUin':_0x5d95c1,'version':_0x2c7c4e(0x11e)}}),![],![]);}} +const _0xc3d3ee=_0x5edf;(function(_0x140dca,_0x1912b7){const _0x5753e2=_0x5edf,_0x5a289f=_0x140dca();while(!![]){try{const _0x2b35c6=parseInt(_0x5753e2(0x9d))/0x1+parseInt(_0x5753e2(0xa7))/0x2*(parseInt(_0x5753e2(0x98))/0x3)+parseInt(_0x5753e2(0xa0))/0x4*(-parseInt(_0x5753e2(0x9f))/0x5)+parseInt(_0x5753e2(0xa6))/0x6+parseInt(_0x5753e2(0x9c))/0x7+parseInt(_0x5753e2(0x92))/0x8*(-parseInt(_0x5753e2(0x93))/0x9)+-parseInt(_0x5753e2(0x94))/0xa;if(_0x2b35c6===_0x1912b7)break;else _0x5a289f['push'](_0x5a289f['shift']());}catch(_0x2fac2a){_0x5a289f['push'](_0x5a289f['shift']());}}}(_0x3fec,0xc0796));function _0x3fec(){const _0x3492bc=['9385VPQBQa','372vhaLOV','hex','packGroupSignReq','9.0.90','packPokePacket','packetPacket','4518570mckCKV','62esgGED','16RGOZAo','6562647tiOmyF','6648600CbuwUa','toString','toUpperCase','client','149109mCyBOD','encode','from','packOidbPacket','1042230ebsyWe','643383IPmzVj','OidbSvcTrpcTcp.0x'];_0x3fec=function(){return _0x3492bc;};return _0x3fec();}function _0x5edf(_0x16894e,_0x2aa973){const _0x3fec75=_0x3fec();return _0x5edf=function(_0x5edfc7,_0x25573d){_0x5edfc7=_0x5edfc7-0x92;let _0x15c4c4=_0x3fec75[_0x5edfc7];return _0x15c4c4;},_0x5edf(_0x16894e,_0x2aa973);}class PacketPacker{[_0xc3d3ee(0x97)];constructor(_0x59cd12){const _0x139de9=_0xc3d3ee;this[_0x139de9(0x97)]=_0x59cd12;}['packetPacket'](_0x225460){const _0x2fe62d=_0xc3d3ee;return Buffer[_0x2fe62d(0x9a)](_0x225460)[_0x2fe62d(0x95)](_0x2fe62d(0xa1));}['packOidbPacket'](_0x1f5318,_0x60010c,_0x10b626,_0x23aa20=!![],_0x101160=![]){const _0x14fae3=_0xc3d3ee,_0x231f10=new NapProtoMsg(OidbSvcTrpcTcpBase)['encode']({'command':_0x1f5318,'subCommand':_0x60010c,'body':_0x10b626,'isReserved':_0x23aa20?0x1:0x0});return {'cmd':_0x14fae3(0x9e)+_0x1f5318[_0x14fae3(0x95)](0x10)[_0x14fae3(0x96)]()+'_'+_0x60010c,'data':this[_0x14fae3(0xa5)](_0x231f10)};}[_0xc3d3ee(0xa4)](_0x31d963,_0x1a6226){const _0x4966b0=_0xc3d3ee,_0x2bc073=new NapProtoMsg(OidbSvcTrpcTcp0XED3_1)[_0x4966b0(0x99)]({'uin':_0x31d963,'groupUin':_0x1a6226,'friendUin':_0x1a6226??_0x31d963,'ext':0x0});return this[_0x4966b0(0x9b)](0xed3,0x1,_0x2bc073);}['packSetSpecialTittlePacket'](_0x4856bf,_0x22e41a,_0xd831db){const _0x2ce8cc=_0xc3d3ee,_0x5c5698=new NapProtoMsg(OidbSvcTrpcTcp0X8FC_2_Body)[_0x2ce8cc(0x99)]({'targetUid':_0x22e41a,'specialTitle':_0xd831db,'expiredTime':-0x1,'uinName':_0xd831db}),_0x4cc2d7=new NapProtoMsg(OidbSvcTrpcTcp0X8FC_2)['encode']({'groupUin':+_0x4856bf,'body':_0x5c5698});return this['packOidbPacket'](0x8fc,0x2,_0x4cc2d7,![],![]);}[_0xc3d3ee(0xa2)](_0x1ddb8f,_0x665513){const _0xf01630=_0xc3d3ee;return this['packOidbPacket'](0xeb7,0x1,new NapProtoMsg(OidbSvcTrpcTcp0XEB7)[_0xf01630(0x99)]({'body':{'uin':_0x1ddb8f,'groupUin':_0x665513,'version':_0xf01630(0xa3)}}),![],![]);}} -function _0xaf77(){const _0x1b0086=['1396566fvjGoS','client','error','score',',请检查配置文件!','14110qjRsSJ','12RlvvjC','packer','555lskxeU','3TJzBwT','frida','log','map','[Core]\x20[Packet]\x20未知的PacketBackend\x20','3713880kHIVim','11061611gUnGHO','1096734HbAHCX','[NTQQPacketApi]\x20client\x20初始化','constructor','auto','[Core]\x20[Packet]\x20无可用的后端,NapCat.Packet将不会加载!','judgeClient','name','21FtoRlH','check','[Core]\x20[Packet]\x20使用指定的\x20NativePacketClient\x20作为后端','230219WKmqzS','[Core]\x20[Packet]\x20使用指定的\x20FridaPacketClient\x20作为后端','filter','2439rAfbkw','newClient','sort','wrapperSession','11348eOqKSV','native'];_0xaf77=function(){return _0x1b0086;};return _0xaf77();}function _0x20e4(_0x596c91,_0x52d90a){const _0xaf7718=_0xaf77();return _0x20e4=function(_0x20e485,_0x2170bf){_0x20e485=_0x20e485-0x1a8;let _0x564f21=_0xaf7718[_0x20e485];return _0x564f21;},_0x20e4(_0x596c91,_0x52d90a);}const _0x4e8b38=_0x20e4;(function(_0x2ae657,_0x25e651){const _0x157fb8=_0x20e4,_0x471934=_0x2ae657();while(!![]){try{const _0x3a15a4=-parseInt(_0x157fb8(0x1b4))/0x1+-parseInt(_0x157fb8(0x1bd))/0x2*(-parseInt(_0x157fb8(0x1c6))/0x3)+-parseInt(_0x157fb8(0x1bb))/0x4*(-parseInt(_0x157fb8(0x1c5))/0x5)+-parseInt(_0x157fb8(0x1aa))/0x6*(parseInt(_0x157fb8(0x1b1))/0x7)+-parseInt(_0x157fb8(0x1a8))/0x8+-parseInt(_0x157fb8(0x1b7))/0x9*(parseInt(_0x157fb8(0x1c2))/0xa)+-parseInt(_0x157fb8(0x1a9))/0xb*(-parseInt(_0x157fb8(0x1c3))/0xc);if(_0x3a15a4===_0x25e651)break;else _0x471934['push'](_0x471934['shift']());}catch(_0x3964c){_0x471934['push'](_0x471934['shift']());}}}(_0xaf77,0x60175));const clientPriority={0xa:_0x4a056c=>new NativePacketClient(_0x4a056c),0x1:_0x463ee6=>new WSPacketClient(_0x463ee6)};class PacketSession{[_0x4e8b38(0x1be)];[_0x4e8b38(0x1c4)];[_0x4e8b38(0x1ba)];constructor(_0x3b049c){const _0xb74016=_0x4e8b38;this[_0xb74016(0x1ba)]=_0x3b049c,this[_0xb74016(0x1be)]=this[_0xb74016(0x1b8)](),this[_0xb74016(0x1c4)]=new PacketPacker(this[_0xb74016(0x1be)]);}[_0x4e8b38(0x1b8)](){const _0x32f233=_0x4e8b38;let _0x12c3cd=_0x32f233(0x1bc),_0xbacb6b;switch(_0x12c3cd){case'native':console[_0x32f233(0x1c8)](_0x32f233(0x1b3)),_0xbacb6b=new NativePacketClient(this['wrapperSession']),console[_0x32f233(0x1c8)](_0x32f233(0x1ab),_0xbacb6b);break;case _0x32f233(0x1c7):console['log'](_0x32f233(0x1b5)),_0xbacb6b=new WSPacketClient(this['wrapperSession']);break;case _0x32f233(0x1ad):case void 0x0:_0xbacb6b=this[_0x32f233(0x1af)]();break;default:console[_0x32f233(0x1bf)](_0x32f233(0x1ca)+_0x12c3cd+_0x32f233(0x1c1)),_0xbacb6b=null;}if(!(_0xbacb6b&&_0xbacb6b[_0x32f233(0x1b2)]()))throw new Error('[Core]\x20[Packet]\x20无可用的后端,NapCat.Packet将不会加载!');return _0xbacb6b;}['judgeClient'](){const _0x52e441=_0x4e8b38,_0x388005=Object['entries'](clientPriority)[_0x52e441(0x1c9)](([_0x350713,_0x5d9687])=>{const _0x5c9de9=_0x52e441,_0x14042e=_0x5d9687(this[_0x5c9de9(0x1ba)]),_0x2731fd=+_0x350713*+_0x14042e[_0x5c9de9(0x1b2)]();return {'client':_0x14042e,'score':_0x2731fd};})[_0x52e441(0x1b6)](({score:_0x143766})=>_0x143766>0x0)[_0x52e441(0x1b9)]((_0x32be26,_0xa8e36d)=>_0xa8e36d[_0x52e441(0x1c0)]-_0x32be26['score']),_0x2e4798=_0x388005[0x0]?.[_0x52e441(0x1be)];if(!_0x2e4798)throw new Error(_0x52e441(0x1ae));return console[_0x52e441(0x1c8)]('[Core]\x20[Packet]\x20自动选择\x20'+_0x2e4798[_0x52e441(0x1ac)][_0x52e441(0x1b0)]+'\x20作为后端'),_0x2e4798;}} +const _0x1cc9b5=_0x2760;function _0x2760(_0x594f14,_0x446689){const _0x1255f8=_0x1255();return _0x2760=function(_0x2760ed,_0x3efb3d){_0x2760ed=_0x2760ed-0x190;let _0x172ea2=_0x1255f8[_0x2760ed];return _0x172ea2;},_0x2760(_0x594f14,_0x446689);}(function(_0x3c2ee8,_0x23a0c7){const _0x6a751=_0x2760,_0xc1c0bc=_0x3c2ee8();while(!![]){try{const _0x46bd47=-parseInt(_0x6a751(0x1a4))/0x1+parseInt(_0x6a751(0x19f))/0x2*(parseInt(_0x6a751(0x1a7))/0x3)+-parseInt(_0x6a751(0x1a5))/0x4*(-parseInt(_0x6a751(0x1a6))/0x5)+parseInt(_0x6a751(0x196))/0x6*(parseInt(_0x6a751(0x197))/0x7)+parseInt(_0x6a751(0x1ad))/0x8+-parseInt(_0x6a751(0x1a8))/0x9*(parseInt(_0x6a751(0x198))/0xa)+-parseInt(_0x6a751(0x1a1))/0xb*(parseInt(_0x6a751(0x19c))/0xc);if(_0x46bd47===_0x23a0c7)break;else _0xc1c0bc['push'](_0xc1c0bc['shift']());}catch(_0x54b8d5){_0xc1c0bc['push'](_0xc1c0bc['shift']());}}}(_0x1255,0x711c9));function _0x1255(){const _0x4c4789=['name','judgeClient','packer','386052OcIBPA','check','[Core]\x20[Packet]\x20无可用的后端,NapCat.Packet将不会加载!','2jIHnDs',',请检查配置文件!','143IIcclW','client','error','802052zcHlRY','412ENnRHK','17855JzgOPN','1331448emJxul','9ZcdSJm','native','[Core]\x20[Packet]\x20使用指定的\x20NativePacketClient\x20作为后端','[Core]\x20[Packet]\x20使用指定的\x20FridaPacketClient\x20作为后端','constructor','4109208ZellrR','map','[Core]\x20[Packet]\x20自动选择\x20','wrapperSession','score','newClient','filter','log','auto','18JnQGVJ','1285774MuaaJm','1927460iVsSmi'];_0x1255=function(){return _0x4c4789;};return _0x1255();}const clientPriority={0xa:_0x1f9be6=>new NativePacketClient(_0x1f9be6),0x1:_0x2857bf=>new WSPacketClient(_0x2857bf)};class PacketSession{[_0x1cc9b5(0x1a2)];[_0x1cc9b5(0x19b)];['wrapperSession'];constructor(_0x533375){const _0x269793=_0x1cc9b5;this['wrapperSession']=_0x533375,this['client']=this[_0x269793(0x192)](),this[_0x269793(0x19b)]=new PacketPacker(this[_0x269793(0x1a2)]);}[_0x1cc9b5(0x192)](){const _0xcc3cc1=_0x1cc9b5;let _0x315709=_0xcc3cc1(0x1a9),_0x465458;switch(_0x315709){case _0xcc3cc1(0x1a9):console[_0xcc3cc1(0x194)](_0xcc3cc1(0x1aa)),_0x465458=new NativePacketClient(this[_0xcc3cc1(0x190)]),console[_0xcc3cc1(0x194)]('[NTQQPacketApi]\x20client\x20初始化',_0x465458);break;case'frida':console[_0xcc3cc1(0x194)](_0xcc3cc1(0x1ab)),_0x465458=new WSPacketClient(this['wrapperSession']);break;case _0xcc3cc1(0x195):case void 0x0:_0x465458=this[_0xcc3cc1(0x19a)]();break;default:console[_0xcc3cc1(0x1a3)]('[Core]\x20[Packet]\x20未知的PacketBackend\x20'+_0x315709+_0xcc3cc1(0x1a0)),_0x465458=null;}if(!(_0x465458&&_0x465458[_0xcc3cc1(0x19d)]()))throw new Error(_0xcc3cc1(0x19e));return _0x465458;}[_0x1cc9b5(0x19a)](){const _0x456ae2=_0x1cc9b5,_0x298f04=Object['entries'](clientPriority)[_0x456ae2(0x1ae)](([_0x16bbc1,_0x19e1b5])=>{const _0x3e6c3f=_0x456ae2,_0x3ca1bc=_0x19e1b5(this[_0x3e6c3f(0x190)]),_0x57f242=+_0x16bbc1*+_0x3ca1bc[_0x3e6c3f(0x19d)]();return {'client':_0x3ca1bc,'score':_0x57f242};})[_0x456ae2(0x193)](({score:_0x3eb3c6})=>_0x3eb3c6>0x0)['sort']((_0x50acca,_0xb1fe15)=>_0xb1fe15['score']-_0x50acca[_0x456ae2(0x191)]),_0x2793ab=_0x298f04[0x0]?.['client'];if(!_0x2793ab)throw new Error(_0x456ae2(0x19e));return console[_0x456ae2(0x194)](_0x456ae2(0x1af)+_0x2793ab[_0x456ae2(0x1ac)][_0x456ae2(0x199)]+'\x20作为后端'),_0x2793ab;}} -const _0x391e5e = { +const _0x298322 = { "3.2.12-28418-x64": { recv: "A0723E0", send: "A06EAE0" @@ -7178,10 +7178,10 @@ const _0x391e5e = { } }; -const _0x57d360=_0x5e35;(function(_0x491e9f,_0x33ecd5){const _0x17606f=_0x5e35,_0x58eece=_0x491e9f();while(!![]){try{const _0x32c57f=parseInt(_0x17606f(0x1de))/0x1*(-parseInt(_0x17606f(0x1df))/0x2)+-parseInt(_0x17606f(0x1c1))/0x3+-parseInt(_0x17606f(0x1d6))/0x4*(-parseInt(_0x17606f(0x1c7))/0x5)+-parseInt(_0x17606f(0x1c4))/0x6*(parseInt(_0x17606f(0x1e0))/0x7)+-parseInt(_0x17606f(0x1cc))/0x8*(-parseInt(_0x17606f(0x1bc))/0x9)+-parseInt(_0x17606f(0x1d9))/0xa+parseInt(_0x17606f(0x1dc))/0xb;if(_0x32c57f===_0x33ecd5)break;else _0x58eece['push'](_0x58eece['shift']());}catch(_0x25aa29){_0x58eece['push'](_0x58eece['shift']());}}}(_0x22ff,0xeac0b));function getQQVersionConfigPath(_0xb98b5=''){const _0x2bc714=_0x5e35;let _0xae3f6a;if(_0x2cc836['platform']()===_0x2bc714(0x1c3))_0xae3f6a=_0x2fc670[_0x2bc714(0x1cb)](_0x2fc670['dirname'](_0xb98b5),'versions',_0x2bc714(0x1d5));else {if(_0x2cc836[_0x2bc714(0x1c8)]()===_0x2bc714(0x1d7)){const _0x25d84b=_0x2cc836[_0x2bc714(0x1cf)](),_0x51fb6d=_0x2fc670[_0x2bc714(0x1d1)](_0x25d84b,'./Library/Application\x20Support/QQ');_0xae3f6a=_0x2fc670[_0x2bc714(0x1d1)](_0x51fb6d,_0x2bc714(0x1d0));}else {const _0x3ba0d0=_0x2cc836[_0x2bc714(0x1cf)](),_0x45fde1=_0x2fc670[_0x2bc714(0x1d1)](_0x3ba0d0,_0x2bc714(0x1d8));_0xae3f6a=_0x2fc670['resolve'](_0x45fde1,_0x2bc714(0x1d0));}}if(typeof _0xae3f6a!==_0x2bc714(0x1c6))return void 0x0;!_0x5a9d71[_0x2bc714(0x1c9)](_0xae3f6a)&&(_0xae3f6a=_0x2fc670[_0x2bc714(0x1cb)](_0x2fc670[_0x2bc714(0x1da)](_0xb98b5),_0x2bc714(0x1d2)));if(!_0x5a9d71['existsSync'](_0xae3f6a))return void 0x0;return _0xae3f6a;}function getDefaultQQVersionConfigInfo(){const _0x2c4116=_0x5e35;if(_0x2cc836[_0x2c4116(0x1c8)]()==='linux')return {'baseVersion':_0x2c4116(0x1ce),'curVersion':_0x2c4116(0x1ce),'prevVersion':'','onErrorVersions':[],'buildId':'27254'};if(_0x2cc836['platform']()===_0x2c4116(0x1d7))return {'baseVersion':'6.9.53.28060','curVersion':_0x2c4116(0x1c0),'prevVersion':'','onErrorVersions':[],'buildId':'28060'};return {'baseVersion':_0x2c4116(0x1db),'curVersion':_0x2c4116(0x1db),'prevVersion':'','onErrorVersions':[],'buildId':_0x2c4116(0x1b4)};}function getQQPackageInfoPath(_0x3ff630='',_0x3b4bd2){const _0x3cf202=_0x5e35;let _0x1c2f43;if(_0x2cc836[_0x3cf202(0x1c8)]()===_0x3cf202(0x1d7))_0x1c2f43=_0x2fc670[_0x3cf202(0x1cb)](_0x2fc670[_0x3cf202(0x1da)](_0x3ff630),'..',_0x3cf202(0x1b6),'app',_0x3cf202(0x1d4));else _0x2cc836[_0x3cf202(0x1c8)]()===_0x3cf202(0x1be)?_0x1c2f43=_0x2fc670[_0x3cf202(0x1cb)](_0x2fc670[_0x3cf202(0x1da)](_0x3ff630),_0x3cf202(0x1bf)):_0x1c2f43=_0x2fc670[_0x3cf202(0x1cb)](_0x2fc670[_0x3cf202(0x1da)](_0x3ff630),_0x3cf202(0x1ba)+_0x3b4bd2+'/resources/app/package.json');return !_0x5a9d71[_0x3cf202(0x1c9)](_0x1c2f43)&&(_0x1c2f43=_0x2fc670[_0x3cf202(0x1cb)](_0x2fc670[_0x3cf202(0x1da)](_0x3ff630),_0x3cf202(0x1b9)+_0x3b4bd2+_0x3cf202(0x1c2))),_0x1c2f43;}class QQBasicInfoWrapper{[_0x57d360(0x1cd)];[_0x57d360(0x1dd)];[_0x57d360(0x1bd)];[_0x57d360(0x1ca)];[_0x57d360(0x1b8)];[_0x57d360(0x1b5)];constructor(){const _0x3b41f2=_0x57d360;this[_0x3b41f2(0x1cd)]=process[_0x3b41f2(0x1bb)],this[_0x3b41f2(0x1bd)]=getQQVersionConfigPath(this[_0x3b41f2(0x1cd)]),this[_0x3b41f2(0x1ca)]=!!this[_0x3b41f2(0x1bd)],this['QQVersionConfig']=this[_0x3b41f2(0x1ca)]?JSON['parse'](_0x5a9d71[_0x3b41f2(0x1d3)](this[_0x3b41f2(0x1bd)])[_0x3b41f2(0x1e2)]()):getDefaultQQVersionConfigInfo(),this[_0x3b41f2(0x1dd)]=getQQPackageInfoPath(this['QQMainPath'],this[_0x3b41f2(0x1b8)]?.[_0x3b41f2(0x1c5)]),this[_0x3b41f2(0x1b5)]=JSON['parse'](_0x5a9d71[_0x3b41f2(0x1d3)](this[_0x3b41f2(0x1dd)])[_0x3b41f2(0x1e2)]());}[_0x57d360(0x1b7)](){const _0x34f291=_0x57d360,_0x5c31d9=this[_0x34f291(0x1ca)]?this['QQVersionConfig']?.[_0x34f291(0x1c5)]:this[_0x34f291(0x1b5)]?.['version'];if(!_0x5c31d9)throw new Error(_0x34f291(0x1e1));return _0x5c31d9;}}function _0x5e35(_0x3c1d15,_0x211536){const _0x22ff9c=_0x22ff();return _0x5e35=function(_0x5e35f7,_0xfe043){_0x5e35f7=_0x5e35f7-0x1b4;let _0x5132ae=_0x22ff9c[_0x5e35f7];return _0x5132ae;},_0x5e35(_0x3c1d15,_0x211536);}function _0x22ff(){const _0x4a19dc=['11854920jmIJOj','dirname','9.9.15-28131','31392691iYOsid','QQPackageInfoPath','4069ANqtdS','446MDjbPK','7jvlQTr','QQ版本获取失败','toString','28131','QQPackageInfo','Resources','getFullQQVersion','QQVersionConfig','./resources/app/versions/','./versions/','execPath','81aBlLuB','QQVersionConfigPath','linux','./resources/app/package.json','6.9.53.28060','1996746DlHmOK','/package.json','win32','1782282dreHtq','curVersion','string','2454145MdLTuA','platform','existsSync','isQuickUpdate','join','597640FAGJYd','QQMainPath','3.2.12.28060','homedir','./versions/config.json','resolve','./resources/app/versions/config.json','readFileSync','package.json','config.json','4stzgjk','darwin','./.config/QQ'];_0x22ff=function(){return _0x4a19dc;};return _0x22ff();} +const _0x5d3ab1=_0x24e2;(function(_0x53ae22,_0x5a98b3){const _0x3b8f33=_0x24e2,_0x1f75a9=_0x53ae22();while(!![]){try{const _0x1e379d=parseInt(_0x3b8f33(0x88))/0x1+parseInt(_0x3b8f33(0xad))/0x2+-parseInt(_0x3b8f33(0x95))/0x3*(-parseInt(_0x3b8f33(0xa9))/0x4)+parseInt(_0x3b8f33(0x9b))/0x5*(parseInt(_0x3b8f33(0xb6))/0x6)+parseInt(_0x3b8f33(0x9a))/0x7*(-parseInt(_0x3b8f33(0x9d))/0x8)+parseInt(_0x3b8f33(0xb5))/0x9+-parseInt(_0x3b8f33(0x8e))/0xa;if(_0x1e379d===_0x5a98b3)break;else _0x1f75a9['push'](_0x1f75a9['shift']());}catch(_0xc7d147){_0x1f75a9['push'](_0x1f75a9['shift']());}}}(_0xc339,0x7c035));function getQQVersionConfigPath(_0x2dd6e5=''){const _0xbde825=_0x24e2;let _0x571428;if(_0x9ba475[_0xbde825(0x8d)]()===_0xbde825(0x8f))_0x571428=_0x26c41f[_0xbde825(0x91)](_0x26c41f[_0xbde825(0xa3)](_0x2dd6e5),'versions',_0xbde825(0xb8));else {if(_0x9ba475['platform']()===_0xbde825(0x96)){const _0x2ba0bc=_0x9ba475[_0xbde825(0x93)](),_0x5e1a1f=_0x26c41f[_0xbde825(0xa4)](_0x2ba0bc,_0xbde825(0x99));_0x571428=_0x26c41f[_0xbde825(0xa4)](_0x5e1a1f,'./versions/config.json');}else {const _0x512a0f=_0x9ba475[_0xbde825(0x93)](),_0xdecc90=_0x26c41f['resolve'](_0x512a0f,_0xbde825(0x90));_0x571428=_0x26c41f['resolve'](_0xdecc90,_0xbde825(0xb2));}}if(typeof _0x571428!==_0xbde825(0x98))return void 0x0;!_0x46a3d9['existsSync'](_0x571428)&&(_0x571428=_0x26c41f[_0xbde825(0x91)](_0x26c41f[_0xbde825(0xa3)](_0x2dd6e5),_0xbde825(0xac)));if(!_0x46a3d9[_0xbde825(0x9c)](_0x571428))return void 0x0;return _0x571428;}function _0x24e2(_0x83c3e9,_0x15469f){const _0xc3395b=_0xc339();return _0x24e2=function(_0x24e2ae,_0x4273de){_0x24e2ae=_0x24e2ae-0x87;let _0x3849f8=_0xc3395b[_0x24e2ae];return _0x3849f8;},_0x24e2(_0x83c3e9,_0x15469f);}function getDefaultQQVersionConfigInfo(){const _0x482d62=_0x24e2;if(_0x9ba475[_0x482d62(0x8d)]()==='linux')return {'baseVersion':_0x482d62(0x8b),'curVersion':_0x482d62(0x8b),'prevVersion':'','onErrorVersions':[],'buildId':_0x482d62(0x87)};if(_0x9ba475['platform']()===_0x482d62(0x96))return {'baseVersion':_0x482d62(0xae),'curVersion':_0x482d62(0xae),'prevVersion':'','onErrorVersions':[],'buildId':_0x482d62(0xa2)};return {'baseVersion':_0x482d62(0x8a),'curVersion':_0x482d62(0x8a),'prevVersion':'','onErrorVersions':[],'buildId':_0x482d62(0xaa)};}function getQQPackageInfoPath(_0x470a51='',_0x444dab){const _0x22631b=_0x24e2;let _0x5f0690;if(_0x9ba475[_0x22631b(0x8d)]()===_0x22631b(0x96))_0x5f0690=_0x26c41f[_0x22631b(0x91)](_0x26c41f['dirname'](_0x470a51),'..',_0x22631b(0xb0),_0x22631b(0xa6),'package.json');else _0x9ba475['platform']()===_0x22631b(0xb3)?_0x5f0690=_0x26c41f[_0x22631b(0x91)](_0x26c41f[_0x22631b(0xa3)](_0x470a51),_0x22631b(0xab)):_0x5f0690=_0x26c41f['join'](_0x26c41f[_0x22631b(0xa3)](_0x470a51),'./versions/'+_0x444dab+_0x22631b(0x92));return !_0x46a3d9[_0x22631b(0x9c)](_0x5f0690)&&(_0x5f0690=_0x26c41f[_0x22631b(0x91)](_0x26c41f[_0x22631b(0xa3)](_0x470a51),_0x22631b(0xa0)+_0x444dab+_0x22631b(0xaf))),_0x5f0690;}class QQBasicInfoWrapper{[_0x5d3ab1(0x94)];[_0x5d3ab1(0xb4)];[_0x5d3ab1(0x9f)];[_0x5d3ab1(0xa7)];[_0x5d3ab1(0xa8)];[_0x5d3ab1(0x89)];constructor(){const _0x480afa=_0x5d3ab1;this['QQMainPath']=process[_0x480afa(0x9e)],this['QQVersionConfigPath']=getQQVersionConfigPath(this['QQMainPath']),this[_0x480afa(0xa7)]=!!this[_0x480afa(0x9f)],this[_0x480afa(0xa8)]=this['isQuickUpdate']?JSON['parse'](_0x46a3d9[_0x480afa(0xa1)](this[_0x480afa(0x9f)])[_0x480afa(0xb7)]()):getDefaultQQVersionConfigInfo(),this['QQPackageInfoPath']=getQQPackageInfoPath(this[_0x480afa(0x94)],this[_0x480afa(0xa8)]?.['curVersion']),this[_0x480afa(0x89)]=JSON[_0x480afa(0x97)](_0x46a3d9['readFileSync'](this[_0x480afa(0xb4)])[_0x480afa(0xb7)]());}['getFullQQVersion'](){const _0x3bce8e=_0x5d3ab1,_0x125251=this[_0x3bce8e(0xa7)]?this[_0x3bce8e(0xa8)]?.[_0x3bce8e(0xa5)]:this[_0x3bce8e(0x89)]?.[_0x3bce8e(0xb1)];if(!_0x125251)throw new Error(_0x3bce8e(0x8c));return _0x125251;}}function _0xc339(){const _0x45156b=['./versions/config.json','linux','QQPackageInfoPath','1213659oZYlAn','12DhOguI','toString','config.json','27254','727384oHEMuK','QQPackageInfo','9.9.15-28131','3.2.12.28060','QQ版本获取失败','platform','9964740aSpHwi','win32','./.config/QQ','join','/resources/app/package.json','homedir','QQMainPath','40218OBLgAM','darwin','parse','string','./Library/Application\x20Support/QQ','4669TYmhlR','1363645FTUniC','existsSync','5104bGQNcq','execPath','QQVersionConfigPath','./resources/app/versions/','readFileSync','28060','dirname','resolve','curVersion','app','isQuickUpdate','QQVersionConfig','4qPVukf','28131','./resources/app/package.json','./resources/app/versions/config.json','1017756qtUyIX','6.9.53.28060','/package.json','Resources','version'];_0xc339=function(){return _0x45156b;};return _0xc339();} -const _0x9f4fb=_0x1e82;(function(_0x333529,_0x52fca){const _0x2d7cfb=_0x1e82,_0x2dc69d=_0x333529();while(!![]){try{const _0xa48d05=-parseInt(_0x2d7cfb(0x13a))/0x1*(-parseInt(_0x2d7cfb(0x130))/0x2)+-parseInt(_0x2d7cfb(0x12f))/0x3+parseInt(_0x2d7cfb(0x132))/0x4*(parseInt(_0x2d7cfb(0x141))/0x5)+-parseInt(_0x2d7cfb(0x13b))/0x6+-parseInt(_0x2d7cfb(0x135))/0x7+parseInt(_0x2d7cfb(0x13c))/0x8+-parseInt(_0x2d7cfb(0x139))/0x9*(-parseInt(_0x2d7cfb(0x13f))/0xa);if(_0xa48d05===_0x52fca)break;else _0x2dc69d['push'](_0x2dc69d['shift']());}catch(_0x129f0e){_0x2dc69d['push'](_0x2dc69d['shift']());}}}(_0x1d4e,0x31f03));let Process=require('process'),wrapperSession=null;function _0x1e82(_0x3d65a6,_0x6125c2){const _0x1d4eb8=_0x1d4e();return _0x1e82=function(_0x1e82f3,_0x5aef02){_0x1e82f3=_0x1e82f3-0x12f;let _0x3a68ae=_0x1d4eb8[_0x1e82f3];return _0x3a68ae;},_0x1e82(_0x3d65a6,_0x6125c2);}function _0x1d4e(){const _0x4545ba=['2kmnyxl','exports','935988WxNRIu','NodeIQQNTWrapperSession','dlopen','957334mAxIsb','create','RTLD_LAZY','NodeIQQNTWrapperSession\x20created:','9549VYpsGQ','42865UZYnOt','1477332KfmzeB','973424biEwrl','toString','random','3670pgcTBf','dlopenOri','5xVmhjN','601188eFNPPo'];_0x1d4e=function(){return _0x4545ba;};return _0x1d4e();}const dlopenOriName=_0x9f4fb(0x140)+Math[_0x9f4fb(0x13e)]()[_0x9f4fb(0x13d)](0x24)['substring'](0x7);Process[dlopenOriName]=Process[_0x9f4fb(0x134)],Process['dlopen']=function(_0x170cdc,_0x4a6bdf,_0x3c57cb=_0x2cc836['constants'][_0x9f4fb(0x134)][_0x9f4fb(0x137)]){const _0x204cf8=_0x9f4fb;let _0x55fda6=this[dlopenOriName](_0x170cdc,_0x4a6bdf,_0x3c57cb),_0x112989=_0x170cdc[_0x204cf8(0x131)];return _0x170cdc[_0x204cf8(0x131)]=new Proxy({},{'get':function(_0x1a97ab,_0x5a4f2f,_0x34ba03){if(_0x5a4f2f==='NodeIQQNTWrapperSession')return new Proxy(()=>{},{'get'(_0x26ff97,_0x16ebc2,_0x34f08c){if(_0x16ebc2==='create')return new Proxy(()=>{},{'apply'(_0x3d02dc,_0x296552,_0x55b709){const _0x2cfc6e=_0x1e82;return wrapperSession=_0x112989[_0x2cfc6e(0x133)][_0x2cfc6e(0x136)](..._0x55b709),console['log'](_0x2cfc6e(0x138),wrapperSession),Process[_0x2cfc6e(0x134)]=Process[dlopenOriName],wrapperSession;}});}});return _0x112989[_0x5a4f2f];}}),_0x55fda6;};async function initWrapperSession(){if(wrapperSession)return wrapperSession;return new Promise((_0x4a3fac,_0x34a3e4)=>{let _0x9fb78=setInterval(()=>{wrapperSession&&(clearInterval(_0x9fb78),_0x4a3fac(wrapperSession));},0x64);});} +function _0x2463(){const _0x1984b2=['1599828WFRrph','dlopenOri','6GggWmy','66caHxKK','log','135525ojBAZD','2894180uhpujO','exports','33112CEUORM','2RONqXa','create','constants','NodeIQQNTWrapperSession','567cxOGAl','231185HZWrxY','dlopen','824964kqTtBW','119421jQuxXU','random','NodeIQQNTWrapperSession\x20created:','16SvGRSd'];_0x2463=function(){return _0x1984b2;};return _0x2463();}const _0x5e1858=_0x4a73;(function(_0xdc77b5,_0x38332e){const _0x2d0061=_0x4a73,_0x36114c=_0xdc77b5();while(!![]){try{const _0x389f1b=parseInt(_0x2d0061(0xa6))/0x1*(-parseInt(_0x2d0061(0x9e))/0x2)+-parseInt(_0x2d0061(0x9a))/0x3+parseInt(_0x2d0061(0xa9))/0x4*(parseInt(_0x2d0061(0xa3))/0x5)+parseInt(_0x2d0061(0xac))/0x6*(-parseInt(_0x2d0061(0xa5))/0x7)+-parseInt(_0x2d0061(0x9d))/0x8*(parseInt(_0x2d0061(0xa2))/0x9)+-parseInt(_0x2d0061(0x9b))/0xa+-parseInt(_0x2d0061(0x98))/0xb*(-parseInt(_0x2d0061(0xaa))/0xc);if(_0x389f1b===_0x38332e)break;else _0x36114c['push'](_0x36114c['shift']());}catch(_0x3acf36){_0x36114c['push'](_0x36114c['shift']());}}}(_0x2463,0x252af));let Process=require('process'),wrapperSession=null;function _0x4a73(_0x4f2d12,_0x19c33c){const _0x2463a7=_0x2463();return _0x4a73=function(_0x4a73f9,_0xef0700){_0x4a73f9=_0x4a73f9-0x98;let _0x2e97d5=_0x2463a7[_0x4a73f9];return _0x2e97d5;},_0x4a73(_0x4f2d12,_0x19c33c);}const dlopenOriName=_0x5e1858(0xab)+Math[_0x5e1858(0xa7)]()['toString'](0x24)['substring'](0x7);Process[dlopenOriName]=Process['dlopen'],Process[_0x5e1858(0xa4)]=function(_0x4a0580,_0x3458f7,_0x448f94=_0x9ba475[_0x5e1858(0xa0)][_0x5e1858(0xa4)]['RTLD_LAZY']){const _0x222b60=_0x5e1858;let _0x11d7f8=this[dlopenOriName](_0x4a0580,_0x3458f7,_0x448f94),_0x4fe9bc=_0x4a0580[_0x222b60(0x9c)];return _0x4a0580[_0x222b60(0x9c)]=new Proxy({},{'get':function(_0xcb4e61,_0x580d0f,_0x5e0c7c){const _0x1f7bd5=_0x222b60;if(_0x580d0f===_0x1f7bd5(0xa1))return new Proxy(()=>{},{'get'(_0x33e34a,_0x52af8b,_0x49e895){if(_0x52af8b==='create')return new Proxy(()=>{},{'apply'(_0x256d77,_0x199fd5,_0x58d812){const _0x7f4690=_0x4a73;return wrapperSession=_0x4fe9bc['NodeIQQNTWrapperSession'][_0x7f4690(0x9f)](..._0x58d812),console[_0x7f4690(0x99)](_0x7f4690(0xa8),wrapperSession),Process[_0x7f4690(0xa4)]=Process[dlopenOriName],wrapperSession;}});}});return _0x4fe9bc[_0x580d0f];}}),_0x11d7f8;};async function initWrapperSession(){if(wrapperSession)return wrapperSession;return new Promise((_0x40c874,_0x498bae)=>{let _0x8fe7=setInterval(()=>{wrapperSession&&(clearInterval(_0x8fe7),_0x40c874(wrapperSession));},0x64);});} -const _0x3cd3f1=_0x5b41;(function(_0x4f8714,_0xfe81ea){const _0x40bda7=_0x5b41,_0x920b7c=_0x4f8714();while(!![]){try{const _0x307aaf=parseInt(_0x40bda7(0xde))/0x1*(-parseInt(_0x40bda7(0xee))/0x2)+parseInt(_0x40bda7(0xe6))/0x3+-parseInt(_0x40bda7(0xf3))/0x4+-parseInt(_0x40bda7(0xe2))/0x5+parseInt(_0x40bda7(0xfe))/0x6+parseInt(_0x40bda7(0xfd))/0x7*(parseInt(_0x40bda7(0xff))/0x8)+parseInt(_0x40bda7(0xe9))/0x9;if(_0x307aaf===_0xfe81ea)break;else _0x920b7c['push'](_0x920b7c['shift']());}catch(_0x711c29){_0x920b7c['push'](_0x920b7c['shift']());}}}(_0x147f,0x3a1d6));function _0x5b41(_0x4edc2c,_0x4e00ec){const _0x147f3=_0x147f();return _0x5b41=function(_0x5b41b6,_0x177106){_0x5b41b6=_0x5b41b6-0xdb;let _0x29e353=_0x147f3[_0x5b41b6];return _0x29e353;},_0x5b41(_0x4edc2c,_0x4e00ec);}function _0x147f(){const _0xe0fbf4=['catch','error','sendGroupSignPacket','163401kNYpLU','1282254WRLjaD','56VtxYIl','client','then','sendPokePacket','sendSetSpecialTittlePacket','packetSession','11Yptxry','packer','send','sendPacket','641265KsgPQB','packPokePacket','[NTQQPacketApi]\x20PacketServer\x20Offset\x20table\x20not\x20found\x20for\x20QQVersion:\x20','[NTQQPacketApi]\x20InitSendPacket:\x20','455628hVUpIi','当前\x20QQ\x20版本不支持','log','4626684seUEtF','bind','arch','InitSendPacket','logger','49940dhnwbT','connect','sendOidbPacket','available','checkQQVersion','1608404fGuesM','wrapperSession','qqVersion','getFullQQVersion','pid','packGroupSignReq','data'];_0x147f=function(){return _0xe0fbf4;};return _0x147f();}class NTQQPacketApi{['qqVersion'];[_0x3cd3f1(0xdd)];[_0x3cd3f1(0xed)]=console;[_0x3cd3f1(0xf4)];constructor(_0x8fc3ac){const _0x7d3399=_0x3cd3f1;this[_0x7d3399(0xf4)]=_0x8fc3ac,this[_0x7d3399(0xdd)]=void 0x0,this['InitSendPacket'](new QQBasicInfoWrapper()[_0x7d3399(0xf6)]())[_0x7d3399(0x101)]()[_0x7d3399(0xfa)](console[_0x7d3399(0xfb)]);}get[_0x3cd3f1(0xf1)](){const _0x1861a1=_0x3cd3f1;return this[_0x1861a1(0xdd)]?.[_0x1861a1(0x100)][_0x1861a1(0xf1)]??![];}['checkQQVersion'](){const _0x33b211=_0x3cd3f1,_0x1b3bdc=_0x391e5e,_0x1bf552=_0x1b3bdc[this['qqVersion']+'-'+_0x2378fb[_0x33b211(0xeb)]()];if(!_0x1bf552)throw new Error(_0x33b211(0xe7));}async[_0x3cd3f1(0xec)](_0x42389c){const _0x57b7e2=_0x3cd3f1;this[_0x57b7e2(0xed)]['log'](_0x57b7e2(0xe5),_0x42389c,_0x2378fb[_0x57b7e2(0xeb)]()),this[_0x57b7e2(0xf5)]=_0x42389c;const _0x2ef395=_0x391e5e,_0x4614b3=_0x2ef395[_0x42389c+'-'+_0x2378fb[_0x57b7e2(0xeb)]()];if(!_0x4614b3)return this[_0x57b7e2(0xed)]['log'](_0x57b7e2(0xe4),_0x42389c+'-'+_0x2378fb[_0x57b7e2(0xeb)]()),![];try{this[_0x57b7e2(0xdd)]=new PacketSession(this[_0x57b7e2(0xf4)]),this[_0x57b7e2(0xed)][_0x57b7e2(0xe8)]('[NTQQPacketApi]\x20PacketSession\x20created:\x20',this['packetSession']);}catch(_0x42e80d){return this[_0x57b7e2(0xed)][_0x57b7e2(0xe8)]('[NTQQPacketApi]\x20PacketSession\x20create\x20failed:\x20',_0x42e80d),![];}const _0x4ca443=()=>{const _0x5889bd=_0x57b7e2;this[_0x5889bd(0xdd)]&&this['packetSession'][_0x5889bd(0x100)]&&this[_0x5889bd(0xdd)][_0x5889bd(0x100)]['init'](process[_0x5889bd(0xf7)],_0x4614b3['recv'],_0x4614b3[_0x5889bd(0xe0)])[_0x5889bd(0x101)]()['catch'](this['logger']['error'][_0x5889bd(0xea)](this['logger']));};return await this[_0x57b7e2(0xdd)][_0x57b7e2(0x100)][_0x57b7e2(0xef)](_0x4ca443),!![];}async[_0x3cd3f1(0xe1)](_0x38c0a1,_0x20cbf2,_0x428eea=![]){const _0x136210=_0x3cd3f1;return this[_0x136210(0xf2)](),this[_0x136210(0xdd)][_0x136210(0x100)][_0x136210(0xe1)](_0x38c0a1,_0x20cbf2,_0x428eea);}async[_0x3cd3f1(0xf0)](_0x1d462f,_0x5218b0=![]){const _0x164809=_0x3cd3f1;return this[_0x164809(0xe1)](_0x1d462f['cmd'],_0x1d462f[_0x164809(0xf9)],_0x5218b0);}async[_0x3cd3f1(0xdb)](_0x45c844,_0x5bf0f5){const _0x5daddc=_0x3cd3f1,_0x21429b=this['packetSession']?.['packer'][_0x5daddc(0xe3)](_0x45c844,_0x5bf0f5);await this[_0x5daddc(0xf0)](_0x21429b,![]);}async[_0x3cd3f1(0xfc)](_0x1aeadb,_0x266129){const _0x41d5a6=_0x3cd3f1,_0x1fd408=this[_0x41d5a6(0xdd)]?.[_0x41d5a6(0xdf)][_0x41d5a6(0xf8)](_0x1aeadb,_0x266129);await this['sendOidbPacket'](_0x1fd408,!![]);}async[_0x3cd3f1(0xdc)](_0xeda5c5,_0x5d42f2,_0x2c976d){const _0xc2eec6=_0x3cd3f1,_0x35fea6=this[_0xc2eec6(0xdd)]?.['packer']['packSetSpecialTittlePacket'](_0xeda5c5,_0x5d42f2,_0x2c976d);await this['sendOidbPacket'](_0x35fea6,!![]);}} +const _0x9852a0=_0x54ba;function _0x54ba(_0x143484,_0x1bdc92){const _0x7499ed=_0x7499();return _0x54ba=function(_0x54bad8,_0x4d0531){_0x54bad8=_0x54bad8-0x90;let _0x5eb29f=_0x7499ed[_0x54bad8];return _0x5eb29f;},_0x54ba(_0x143484,_0x1bdc92);}(function(_0x13062f,_0x2cf9a5){const _0x229ee2=_0x54ba,_0x203a6c=_0x13062f();while(!![]){try{const _0x1c9e5f=-parseInt(_0x229ee2(0xa4))/0x1+parseInt(_0x229ee2(0x91))/0x2+-parseInt(_0x229ee2(0xa5))/0x3+-parseInt(_0x229ee2(0x9f))/0x4*(parseInt(_0x229ee2(0xa9))/0x5)+-parseInt(_0x229ee2(0xb5))/0x6+-parseInt(_0x229ee2(0xb4))/0x7+-parseInt(_0x229ee2(0xa8))/0x8*(-parseInt(_0x229ee2(0x95))/0x9);if(_0x1c9e5f===_0x2cf9a5)break;else _0x203a6c['push'](_0x203a6c['shift']());}catch(_0x3a4deb){_0x203a6c['push'](_0x203a6c['shift']());}}}(_0x7499,0xe4175));function _0x7499(){const _0x3b0ec9=['sendGroupSignPacket','[NTQQPacketApi]\x20PacketSession\x20created:\x20','logger','catch','error','then','packSetSpecialTittlePacket','getFullQQVersion','9752085LNmHVF','6654900QsZRIz','data','cmd','[NTQQPacketApi]\x20PacketSession\x20create\x20failed:\x20','2527404UpaYBQ','bind','packGroupSignReq','connect','1118709PHUUrX','wrapperSession','packetSession','recv','sendPacket','init','sendSetSpecialTittlePacket','packer','packPokePacket','InitSendPacket','6259636ofkrPt','arch','client','checkQQVersion','log','458488UxDWJw','1208628RoVKgR','sendPokePacket','qqVersion','296rLbnmo','5AQvWEk','available','[NTQQPacketApi]\x20PacketServer\x20Offset\x20table\x20not\x20found\x20for\x20QQVersion:\x20'];_0x7499=function(){return _0x3b0ec9;};return _0x7499();}class NTQQPacketApi{[_0x9852a0(0xa7)];[_0x9852a0(0x97)];[_0x9852a0(0xae)]=console;[_0x9852a0(0x96)];constructor(_0x201cad){const _0x2ec192=_0x9852a0;this[_0x2ec192(0x96)]=_0x201cad,this[_0x2ec192(0x97)]=void 0x0,this[_0x2ec192(0x9e)](new QQBasicInfoWrapper()[_0x2ec192(0xb3)]())[_0x2ec192(0xb1)]()[_0x2ec192(0xaf)](console[_0x2ec192(0xb0)]);}get[_0x9852a0(0xaa)](){const _0x57047b=_0x9852a0;return this[_0x57047b(0x97)]?.[_0x57047b(0xa1)][_0x57047b(0xaa)]??![];}[_0x9852a0(0xa2)](){const _0x5d487f=_0x9852a0,_0x3b23ba=_0x298322,_0xb155de=_0x3b23ba[this[_0x5d487f(0xa7)]+'-'+_0x36934c[_0x5d487f(0xa0)]()];if(!_0xb155de)throw new Error('当前\x20QQ\x20版本不支持');}async['InitSendPacket'](_0x1a1790){const _0x381bd7=_0x9852a0;this[_0x381bd7(0xae)]['log']('[NTQQPacketApi]\x20InitSendPacket:\x20',_0x1a1790,_0x36934c[_0x381bd7(0xa0)]()),this[_0x381bd7(0xa7)]=_0x1a1790;const _0x325cac=_0x298322,_0xf8a5b1=_0x325cac[_0x1a1790+'-'+_0x36934c['arch']()];if(!_0xf8a5b1)return this['logger'][_0x381bd7(0xa3)](_0x381bd7(0xab),_0x1a1790+'-'+_0x36934c[_0x381bd7(0xa0)]()),![];try{this['packetSession']=new PacketSession(this['wrapperSession']),this[_0x381bd7(0xae)][_0x381bd7(0xa3)](_0x381bd7(0xad),this[_0x381bd7(0x97)]);}catch(_0x1c8645){return this['logger'][_0x381bd7(0xa3)](_0x381bd7(0x90),_0x1c8645),![];}const _0x3fdac2=()=>{const _0x228b7a=_0x381bd7;this[_0x228b7a(0x97)]&&this[_0x228b7a(0x97)]['client']&&this[_0x228b7a(0x97)][_0x228b7a(0xa1)][_0x228b7a(0x9a)](process['pid'],_0xf8a5b1[_0x228b7a(0x98)],_0xf8a5b1['send'])[_0x228b7a(0xb1)]()[_0x228b7a(0xaf)](this[_0x228b7a(0xae)][_0x228b7a(0xb0)][_0x228b7a(0x92)](this[_0x228b7a(0xae)]));};return await this[_0x381bd7(0x97)][_0x381bd7(0xa1)][_0x381bd7(0x94)](_0x3fdac2),!![];}async[_0x9852a0(0x99)](_0x200b35,_0x247141,_0x2cff21=![]){const _0x2aceb5=_0x9852a0;return this[_0x2aceb5(0x97)][_0x2aceb5(0xa1)]['sendPacket'](_0x200b35,_0x247141,_0x2cff21);}async['sendOidbPacket'](_0x21d434,_0x11e044=![]){const _0x251c60=_0x9852a0;return this[_0x251c60(0xa2)](),this[_0x251c60(0x99)](_0x21d434[_0x251c60(0xb7)],_0x21d434[_0x251c60(0xb6)],_0x11e044);}async[_0x9852a0(0xa6)](_0x37db4e,_0x33e864){const _0x401706=_0x9852a0,_0x544bf8=this[_0x401706(0x97)]?.[_0x401706(0x9c)][_0x401706(0x9d)](_0x37db4e,_0x33e864);await this['sendOidbPacket'](_0x544bf8,![]);}async[_0x9852a0(0xac)](_0x4f51d9,_0x25517b){const _0x3dffaf=_0x9852a0,_0x22a62f=this[_0x3dffaf(0x97)]?.['packer'][_0x3dffaf(0x93)](_0x4f51d9,_0x25517b);await this['sendOidbPacket'](_0x22a62f,!![]);}async[_0x9852a0(0x9b)](_0x2ac1f1,_0xdf10b0,_0x1d7e30){const _0x1eaaec=_0x9852a0,_0x3002b1=this[_0x1eaaec(0x97)]?.[_0x1eaaec(0x9c)][_0x1eaaec(0xb2)](_0x2ac1f1,_0xdf10b0,_0x1d7e30);await this['sendOidbPacket'](_0x3002b1,!![]);}} export { NTQQPacketApi, initWrapperSession }; diff --git a/src/ntqqapi/services/NodeIKernelBuddyService.ts b/src/ntqqapi/services/NodeIKernelBuddyService.ts index 88e6135..aab03d0 100644 --- a/src/ntqqapi/services/NodeIKernelBuddyService.ts +++ b/src/ntqqapi/services/NodeIKernelBuddyService.ts @@ -13,7 +13,7 @@ export interface NodeIKernelBuddyService { }[] }> - setBuddyRemark(arg: unknown): void + setBuddyRemark(arg: unknown): Promise isBuddy(uid: string): boolean diff --git a/src/ntqqapi/services/NodeIKernelNodeMiscService.ts b/src/ntqqapi/services/NodeIKernelNodeMiscService.ts index 3c2fe1f..a8ffd6b 100644 --- a/src/ntqqapi/services/NodeIKernelNodeMiscService.ts +++ b/src/ntqqapi/services/NodeIKernelNodeMiscService.ts @@ -12,4 +12,6 @@ export interface NodeIKernelNodeMiscService { score: '' }[] }> + + queryAutoRun(): Promise } diff --git a/src/ntqqapi/types/group.ts b/src/ntqqapi/types/group.ts index 1da2369..e94887a 100644 --- a/src/ntqqapi/types/group.ts +++ b/src/ntqqapi/types/group.ts @@ -1,10 +1,3 @@ -export enum GroupListUpdateType { - REFRESHALL, - GETALL, - MODIFIED, - REMOVE -} - export interface Group { groupCode: string maxMember: number @@ -188,3 +181,10 @@ export interface GroupBulletinListResult { nextIndex: number jointime: string } + +export enum GroupMsgMask { + AllowNotify = 1, // 允许提醒 + AllowNotNotify = 4, // 接受消息不提醒 + BoxNotNotify = 2, // 收进群助手不提醒 + NotAllow = 3, // 屏蔽 +} diff --git a/src/onebot11/action/llonebot/SetFriendCategory.ts b/src/onebot11/action/llonebot/SetFriendCategory.ts index c2ffe9c..05fe558 100644 --- a/src/onebot11/action/llonebot/SetFriendCategory.ts +++ b/src/onebot11/action/llonebot/SetFriendCategory.ts @@ -1,15 +1,19 @@ -import { BaseAction } from '../BaseAction' +import { BaseAction, Schema } from '../BaseAction' import { ActionName } from '../types' interface Payload { - user_id: string, - category_id: number + user_id: number | string + category_id: number | string } -export class SetFriendCategory extends BaseAction { +export class SetFriendCategory extends BaseAction { actionName = ActionName.SetFriendCategory + payloadSchema = Schema.object({ + user_id: Schema.union([Number, String]).required(), + category_id: Schema.union([Number, String]).required() + }) - protected async _handle(payload: Payload): Promise { + protected async _handle(payload: Payload) { const uid = await this.ctx.ntUserApi.getUidByUin(payload.user_id.toString()) if (!uid) throw new Error('无法获取好友信息') return this.ctx.ntFriendApi.setBuddyCategory(uid, +payload.category_id) diff --git a/src/onebot11/action/llonebot/SetFriendRemark.ts b/src/onebot11/action/llonebot/SetFriendRemark.ts index 5083cbb..fac967d 100644 --- a/src/onebot11/action/llonebot/SetFriendRemark.ts +++ b/src/onebot11/action/llonebot/SetFriendRemark.ts @@ -1,15 +1,19 @@ -import { BaseAction } from '../BaseAction' +import { BaseAction, Schema } from '../BaseAction' import { ActionName } from '../types' interface Payload { - user_id: string, + user_id: number | string remark?: string } -export class SetFriendRemark extends BaseAction { +export class SetFriendRemark extends BaseAction { actionName = ActionName.SetFriendRemark + payloadSchema = Schema.object({ + user_id: Schema.union([Number, String]).required(), + remark: Schema.string() + }) - protected async _handle(payload: Payload): Promise { + protected async _handle(payload: Payload) { const uid = await this.ctx.ntUserApi.getUidByUin(payload.user_id.toString()) if (!uid) throw new Error('无法获取好友信息') return this.ctx.ntFriendApi.setBuddyRemark(uid, payload.remark || '') diff --git a/src/onebot11/action/llonebot/SetGroupMsgMask.ts b/src/onebot11/action/llonebot/SetGroupMsgMask.ts index dd1802a..d0b9538 100644 --- a/src/onebot11/action/llonebot/SetGroupMsgMask.ts +++ b/src/onebot11/action/llonebot/SetGroupMsgMask.ts @@ -1,16 +1,19 @@ -import { BaseAction } from '../BaseAction' +import { BaseAction, Schema } from '../BaseAction' import { ActionName } from '../types' -import { GroupMsgMask } from '@/ntqqapi/api' interface Payload { - group_id: string, - mask: GroupMsgMask + group_id: number | string + mask: number | string // 1, 2, 3, 4 } export class SetGroupMsgMask extends BaseAction { actionName = ActionName.SetGroupMsgMask + payloadSchema = Schema.object({ + group_id: Schema.union([Number, String]).required(), + mask: Schema.union([Number, String]).required() + }) - protected async _handle(payload: Payload): Promise{ + protected async _handle(payload: Payload) { return this.ctx.ntGroupApi.setGroupMsgMask(payload.group_id.toString(), +payload.mask) } } diff --git a/src/version.ts b/src/version.ts index b92cf30..b36c880 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export const version = '4.3.0' +export const version = '4.3.1'