1 line
21 KiB
JavaScript
1 line
21 KiB
JavaScript
const _0x240855=_0x815b;(function(_0x470432,_0x101429){const _0x55a88f=_0x815b,_0x2499a0=_0x470432();while(!![]){try{const _0x85096b=-parseInt(_0x55a88f(0xb2))/0x1*(parseInt(_0x55a88f(0xb9))/0x2)+parseInt(_0x55a88f(0x144))/0x3+-parseInt(_0x55a88f(0x159))/0x4+-parseInt(_0x55a88f(0xf5))/0x5+parseInt(_0x55a88f(0xda))/0x6*(parseInt(_0x55a88f(0x143))/0x7)+parseInt(_0x55a88f(0x129))/0x8+parseInt(_0x55a88f(0x141))/0x9;if(_0x85096b===_0x101429)break;else _0x2499a0['push'](_0x2499a0['shift']());}catch(_0x588812){_0x2499a0['push'](_0x2499a0['shift']());}}}(_0x5b58,0x7818c));import _0xad918e from'@/core/wrapper';import{BuddyListener,GroupListener,LoginListener,MsgListener,ProfileListener,SessionListener}from'@/core/listeners';import{DependsAdapter,DispatcherAdapter,GlobalAdapter}from'@/core/adapters';import _0x34dc6e from'node:path';function _0x815b(_0x1eab5e,_0x2d4fa3){const _0x5b580d=_0x5b58();return _0x815b=function(_0x815b5d,_0xcca38e){_0x815b5d=_0x815b5d-0xa3;let _0x1cee29=_0x5b580d[_0x815b5d];return _0x1cee29;},_0x815b(_0x1eab5e,_0x2d4fa3);}import _0x238ed8 from'node:os';import _0x1f5aff from'node:fs';import{appid,qqVersionConfigInfo}from'@/common/utils/QQBasicInfo';import{hostname,systemVersion}from'@/common/utils/system';import{genSessionConfig}from'@/core/sessionConfig';import{dbUtil}from'@/core/utils/db';import{sleep}from'@/common/utils/helper';import _0x495ab2 from'node:crypto';import{rawFriends,friends,groupMembers,groups,selfInfo,stat,uid2UinMap}from'@/core/data';function _0x5b58(){const _0x1d35ae=['packet_received','loginService','getBuddyService','快速登录失败\x20','initSession','pngBase64QrcodeData','2891484WBLlum','EElwq','850087MbdOQI','1086321oCgsFn','fileLog','FeQBD','session','homedir','then','没有可快速登录的QQ号','initConfig','LocalLoginInfoList','getNTUserDataInfoConfig','GroupListener','_GW_B','recallTime','iLugb','LWkyb','xTbiG','BuddyListener','has','onQRCodeSessionFailed','errMsg','resolve','43684OLNLDM','IiVLC','message_sent','digest','OLPdF','XkIxr','TMqag','qrLogin','NodeIKernelBuddyListener','getQuickLoginList','quickLoginWithUin','NodeIKernelSessionListener','数据库初始化失败','length','./.config/QQ','getQRCodePicture','groupCode','onSessionInitComplete','[KickedOffLine]\x20[','QpghH','ERFaU','tipsTitle','pAnjg','fSLKE','packet_sent','xsPeJ','4225TfdtzK','buddyList','eZBhh','MYRwV','update','addListener','getProfileService','242WCKlVZ','tipsDesc','dataPath','qrcodeUrl','consoleLogLevel',')\x20在线状态变更','getNextMemberList','VGdbk','createHash','NodeIQQNTWrapperSession','启动失败:\x20','onQRCodeLoginSucceed','bIaRk','passwordLogin','WEiMJ','replace','uid','Windows\x2010\x20Pro','LhIvU','onRecvMsg','NodeIQQNTWrapperEngine','dAgGe','hex','onProfileDetailInfoChanged','getMsgByLongId','onLoginFailed','util','GoBTz','当前账号(','getGroupService','账号设备(','\x20has\x20no\x20method\x20','onSelfStatusChanged','42tFjgyf','result','IJwWi','-v2.db','knNeZ','addKernelLoginListener','本账号数据/缓存目录:','lampe','BDIkI','push','qZaFx','md5','onQRCodeGetPicture','TQMvm','now','onLineDev','niPgw','initDataListener','wLAPc','NodeIDispatcherAdapter','mkdirSync','proxyHandler','vFQeL','undefined','loginListener','CSdfp','dataPathGlobal','2608650FvDNgG','addMsg','140022013','onLoginSuccessFuncList','assign','140022008','addKernelGroupListener','initWithDeskTopConfig','uin','RYPwS','oLPuP','wraGc','getLoginList','kKkDw','engine',')已登录,无法重复登录','VIrfy','infos','updateMsg','name','MsgListener','sceneId','onGroupListUpdate','nkHlc','devUid','fileLogLevel','getMsgService','nMriu','NXarO','addKernelBuddyListener','consoleLog','stringify','YhZjT','NodeIKernelMsgListener','KnmSd','uQVqd','V1_WIN_NQ_','mdMZM','catch','onAddSendMsg','get','ysPNe','onLoginSuccess','data:image/png;base64,','set','createMemberListScene','quickLogin','forEach','bDmGr','dgLNQ','loginErrorInfo','constructor','18576OcgZbS','NodeIKernelGroupListener','base64','NodeIGlobalAdapter','groupMemberList_MainWindow','init','qXLnT','clientType','map','onKickedOffLine','fGqwb','onMemberInfoChange','./NapCat/data','addKernelProfileListener','floor','fCZRb','curVersion','getBuddyList'];_0x5b58=function(){return _0x1d35ae;};return _0x5b58();}import{enableConsoleLog,enableFileLog,log,logDebug,logError,setLogLevel,setLogSelfInfo}from'@/common/utils/log';import{napCatConfig}from'@/core/utils/config';export class NapCatCore{[_0x240855(0x147)];[_0x240855(0xd3)];[_0x240855(0x103)];[_0x240855(0xf2)];[_0x240855(0x13c)];[_0x240855(0xf8)]=[];[_0x240855(0xef)]={'get'(target,prop,receiver){const _0x16d6ce=_0x240855,YcXyAw={'oLPuP':function(callee,param1){return callee(param1);},'zcYpn':_0x16d6ce(0xf1)};if(typeof target[prop]===YcXyAw['zcYpn'])return(...args)=>{const _0x57ee6f=_0x16d6ce;YcXyAw[_0x57ee6f(0xff)](logDebug,target[_0x57ee6f(0x128)][_0x57ee6f(0x108)]+_0x57ee6f(0xd8)+prop);};return Reflect[_0x16d6ce(0x11d)](target,prop,receiver);}};constructor(){const _0x2c719d=_0x240855,_0x225eb8={'mdMZM':function(_0x3c0283,_0x1218e9){return _0x3c0283+_0x1218e9;},'qZaFx':_0x2c719d(0xd5),'LJzmK':_0x2c719d(0x104),'fGqwb':'initSession\x20failed','NXarO':function(_0x134ae7,_0x49a597,_0x246dc1){return _0x134ae7(_0x49a597,_0x246dc1);},'CSdfp':_0x2c719d(0xa4),'pAnjg':function(_0x55f527,_0x1a2a42){return _0x55f527(_0x1a2a42);},'FeQBD':_0x2c719d(0x135),'LWkyb':function(_0x2a6bb1,_0x49ff2b,_0x115172){return _0x2a6bb1(_0x49ff2b,_0x115172);},'VGdbk':'登录失败','jtPkF':function(_0x2b9b97,_0x4f1b99){return _0x2b9b97==_0x4f1b99;},'qXLnT':function(_0x38e10b,_0x1758c6,_0x2d367b){return _0x38e10b(_0x1758c6,_0x2d367b);}};this[_0x2c719d(0x103)]=new _0xad918e[(_0x2c719d(0xcd))](),this[_0x2c719d(0xd3)]=new _0xad918e['NodeQQNTWrapperUtil'](),this[_0x2c719d(0x13c)]=new _0xad918e['NodeIKernelLoginService'](),this[_0x2c719d(0x147)]=new _0xad918e[(_0x2c719d(0xc2))](),this[_0x2c719d(0xf2)]=new LoginListener(),this[_0x2c719d(0xf2)]['onUserLoggedIn']=_0x37246f=>{const _0x5cbcd1=_0x2c719d;logError(_0x225eb8[_0x5cbcd1(0x11a)](_0x225eb8[_0x5cbcd1(0xe4)],_0x37246f)+_0x225eb8['LJzmK']);},this[_0x2c719d(0xf2)][_0x2c719d(0xc4)]=_0x19da8b=>{const _0x31be23=_0x2c719d,_0x4e4583={'fSLKE':function(_0x48294f,_0x151fdf,_0x13630c){const _0xe678f4=_0x815b;return _0x225eb8[_0xe678f4(0x111)](_0x48294f,_0x151fdf,_0x13630c);},'wraGc':_0x225eb8[_0x31be23(0xf3)],'EElwq':function(_0x38932c,_0x4283b2){return _0x38932c instanceof _0x4283b2;},'dAgGe':function(_0x523910,_0x387fdc){const _0x3b0e45=_0x31be23;return _0x225eb8[_0x3b0e45(0xae)](_0x523910,_0x387fdc);},'TMqag':_0x225eb8[_0x31be23(0x146)],'AWRCt':function(_0x47d449,_0x1923fe,_0xe6f00a){return _0x47d449(_0x1923fe,_0xe6f00a);},'LSVbB':_0x31be23(0xe0)};this[_0x31be23(0x13f)](_0x19da8b[_0x31be23(0xfd)],_0x19da8b['uid'])[_0x31be23(0x149)](_0x424db8=>{const _0x123f80=_0x31be23,_0x4b7b4f={'bIaRk':function(_0xca26b5,_0x4f466e){const _0x2b4313=_0x815b;return _0x4e4583[_0x2b4313(0x142)](_0xca26b5,_0x4f466e);}};selfInfo[_0x123f80(0xfd)]=_0x19da8b[_0x123f80(0xfd)],selfInfo[_0x123f80(0xc9)]=_0x19da8b[_0x123f80(0xc9)],napCatConfig['read'](),_0x4e4583[_0x123f80(0xaf)](setLogLevel,napCatConfig[_0x123f80(0x10e)],napCatConfig[_0x123f80(0xbd)]),_0x4e4583[_0x123f80(0xce)](enableFileLog,napCatConfig[_0x123f80(0x145)]),_0x4e4583[_0x123f80(0xce)](enableConsoleLog,napCatConfig[_0x123f80(0x113)]),setLogSelfInfo(selfInfo);const _0x27e21c=_0x34dc6e['resolve'](this[_0x123f80(0xbb)],_0x4e4583[_0x123f80(0x15f)]);_0x1f5aff[_0x123f80(0xee)](_0x27e21c,{'recursive':!![]}),_0x4e4583['AWRCt'](logDebug,_0x4e4583['LSVbB'],_0x27e21c),dbUtil[_0x123f80(0x12e)](_0x34dc6e['resolve'](_0x27e21c,'./'+_0x19da8b[_0x123f80(0xfd)]+_0x123f80(0xdd)))[_0x123f80(0x149)](()=>{const _0x281335=_0x123f80,_0x4dce8b={'GoBTz':function(_0x3b3fa6,_0x97ed41,_0x5b2ecf){return _0x3b3fa6(_0x97ed41,_0x5b2ecf);},'WEiMJ':function(_0x1bbcad,_0x1b5d20){const _0x1006f1=_0x815b;return _0x4b7b4f[_0x1006f1(0xc5)](_0x1bbcad,_0x1b5d20);}};this[_0x281335(0xeb)](),this['onLoginSuccessFuncList'][_0x281335(0x131)](_0x9a89fc=>{const _0x7f5191=_0x281335;new Promise((_0x20742e,_0x3813e5)=>{const _0x348ce5=_0x815b,_0x114c0c=_0x4dce8b[_0x348ce5(0xd4)](_0x9a89fc,_0x19da8b['uin'],_0x19da8b[_0x348ce5(0xc9)]);_0x4dce8b[_0x348ce5(0xc7)](_0x114c0c,Promise)&&_0x114c0c[_0x348ce5(0x149)](_0x20742e)[_0x348ce5(0x11b)](_0x3813e5);})[_0x7f5191(0x149)]();});})[_0x123f80(0x11b)](_0x5c2796=>{const _0x23fb9e=_0x123f80;_0x4e4583[_0x23fb9e(0xaf)](logError,_0x4e4583[_0x23fb9e(0x100)],_0x5c2796);});})[_0x31be23(0x11b)](_0x2f5337=>{const _0x36dc0d=_0x31be23;logError(_0x225eb8[_0x36dc0d(0x133)],_0x2f5337);throw new Error(_0x36dc0d(0xc3)+JSON[_0x36dc0d(0x114)](_0x2f5337));});},this[_0x2c719d(0xf2)][_0x2c719d(0x156)]=(_0x47a1c1,_0x4b845f,_0x592acb)=>{const _0x4ee7ca=_0x2c719d;_0x225eb8[_0x4ee7ca(0x152)](logError,_0x225eb8['VGdbk'],_0x592acb),_0x225eb8['jtPkF'](_0x47a1c1,0x1)&&_0x4b845f==0x3&&this[_0x4ee7ca(0x13c)]['getQRCodePicture']();},this[_0x2c719d(0xf2)][_0x2c719d(0xd2)]=_0x5937ba=>{const _0x1e79a3=_0x2c719d;_0x225eb8[_0x1e79a3(0x12f)](logError,_0x225eb8[_0x1e79a3(0xc0)],_0x5937ba);},this[_0x2c719d(0xf2)]=new Proxy(this['loginListener'],this[_0x2c719d(0xef)]),this[_0x2c719d(0x13c)][_0x2c719d(0xdf)](new _0xad918e['NodeIKernelLoginListener'](this[_0x2c719d(0xf2)])),this[_0x2c719d(0x14b)]();}get[_0x240855(0xbb)](){const _0x418751=_0x240855,_0x2574ae={'wLAPc':_0x418751(0xa6)};let _0x4b3f0c=this[_0x418751(0xd3)][_0x418751(0x14d)]();return!_0x4b3f0c&&(_0x4b3f0c=_0x34dc6e[_0x418751(0x158)](_0x238ed8[_0x418751(0x148)](),_0x2574ae[_0x418751(0xec)]),_0x1f5aff['mkdirSync'](_0x4b3f0c,{'recursive':!![]})),_0x4b3f0c;}get[_0x240855(0xf4)](){const _0x51b793=_0x240855,_0x4c1828={'qDHwI':'./nt_qq/global'};return _0x34dc6e['resolve'](this[_0x51b793(0xbb)],_0x4c1828['qDHwI']);}[_0x240855(0x14b)](){const _0x5da83e=_0x240855,_0x11e6ba={'IiVLC':_0x5da83e(0xca)};this[_0x5da83e(0x103)][_0x5da83e(0xfc)]({'base_path_prefix':'','platform_type':0x3,'app_type':0x4,'app_version':qqVersionConfigInfo[_0x5da83e(0x139)],'os_version':_0x11e6ba[_0x5da83e(0x15a)],'use_xlog':!![],'qua':_0x5da83e(0x119)+qqVersionConfigInfo[_0x5da83e(0x139)][_0x5da83e(0xc8)]('-','_')+_0x5da83e(0x14f),'global_path_config':{'desktopGlobalPath':this[_0x5da83e(0xf4)]},'thumb_config':{'maxSide':0x144,'minSide':0x30,'longLimit':0x6,'density':0x2}},new _0xad918e[(_0x5da83e(0x12c))](new GlobalAdapter())),this[_0x5da83e(0x13c)][_0x5da83e(0x14b)]({'machineId':'','appid':appid,'platVer':systemVersion,'commonPath':this[_0x5da83e(0xf4)],'clientVer':qqVersionConfigInfo[_0x5da83e(0x139)],'hostName':hostname});}[_0x240855(0x13f)](_0x18612c,_0x11a8b9){const _0xfde3f0={'dgLNQ':function(_0x59c192,_0x19e1e3){return _0x59c192===_0x19e1e3;},'fCZRb':function(_0x342848,_0xfa3c80,_0x20d0a4,_0x5646ad){return _0x342848(_0xfa3c80,_0x20d0a4,_0x5646ad);},'QpghH':function(_0x18da2b,_0x9a70f1){return _0x18da2b(_0x9a70f1);},'ClmJx':function(_0x7d89a7,_0x5b7c69){return _0x7d89a7+_0x5b7c69;},'RYPwS':'init\x20failed\x20'};return new Promise((_0x230540,_0x4861b9)=>{const _0x2ed76c=_0x815b,_0x204722={'ysPNe':function(_0x795137,_0x235d0d){const _0x277229=_0x815b;return _0xfde3f0[_0x277229(0x126)](_0x795137,_0x235d0d);},'LhIvU':function(_0x4ff43c,_0x4b7ed5){return _0x4ff43c(_0x4b7ed5);}},_0x33ec4c=_0xfde3f0[_0x2ed76c(0x138)](genSessionConfig,_0x18612c,_0x11a8b9,this[_0x2ed76c(0xbb)]),_0x1d8745=new SessionListener();_0x1d8745[_0x2ed76c(0xa9)]=_0x2b73f2=>{const _0x1082e5=_0x2ed76c;if(_0x204722[_0x1082e5(0x11e)](_0x2b73f2,0x0))return _0x204722[_0x1082e5(0xcb)](_0x230540,0x0);_0x204722[_0x1082e5(0xcb)](_0x4861b9,_0x2b73f2);},this[_0x2ed76c(0x147)][_0x2ed76c(0x12e)](_0x33ec4c,new _0xad918e['NodeIDependsAdapter'](new DependsAdapter()),new _0xad918e[(_0x2ed76c(0xed))](new DispatcherAdapter()),new _0xad918e[(_0x2ed76c(0xa3))](_0x1d8745));try{this[_0x2ed76c(0x147)]['startNT'](0x0);}catch(_0x45da22){try{this[_0x2ed76c(0x147)]['startNT']();}catch(_0x2e7496){_0xfde3f0[_0x2ed76c(0xab)](_0x4861b9,_0xfde3f0['ClmJx'](_0xfde3f0[_0x2ed76c(0xfe)],_0x2e7496));}}});}['initDataListener'](){const _0x4eeaf7=_0x240855,_0x7e7084={'MYRwV':function(_0x38fe0c,_0x1215b3){return _0x38fe0c===_0x1215b3;},'OLPdF':function(_0x35cbd6,_0x2bb776){return _0x35cbd6+_0x2bb776;},'niPgw':function(_0x587972,_0x93f40){return _0x587972+_0x93f40;},'KnmSd':_0x4eeaf7(0xd7),'iLugb':function(_0x1bde25,_0x43946d){return _0x1bde25(_0x43946d);},'BDIkI':_0x4eeaf7(0xaa),'nDZhK':function(_0x198bcc,_0x1a8a8f){return _0x198bcc/_0x1a8a8f;},'ERFaU':function(_0x1df91a,_0x4787af){return _0x1df91a/_0x4787af;},'nkHlc':_0x4eeaf7(0x12d),'KtcZi':function(_0x255315,_0xf35784,_0x5b2196){return _0x255315(_0xf35784,_0x5b2196);}},_0x6c4140=new MsgListener();_0x6c4140[_0x4eeaf7(0xe9)]=_0x5bfda0=>{_0x5bfda0['map'](_0x25c28a=>{const _0x445020=_0x815b;_0x7e7084[_0x445020(0xb5)](_0x25c28a[_0x445020(0x130)],0x2)&&log(_0x7e7084[_0x445020(0x15d)](_0x7e7084[_0x445020(0xea)](_0x7e7084[_0x445020(0x117)],_0x25c28a[_0x445020(0x10d)]),_0x445020(0xbe)));});},_0x6c4140[_0x4eeaf7(0x132)]=_0x20f8e3=>{const _0x5323d2=_0x4eeaf7;_0x7e7084[_0x5323d2(0x151)](log,_0x7e7084[_0x5323d2(0xea)](_0x7e7084[_0x5323d2(0xe2)]+_0x20f8e3[_0x5323d2(0xad)]+']\x20',_0x20f8e3[_0x5323d2(0xba)]));},_0x6c4140['onMsgInfoListUpdate']=_0x3caada=>{const _0x1e8334=_0x4eeaf7;stat[_0x1e8334(0x13b)]+=0x1,_0x3caada['map'](_0x3a31f8=>{const _0x267d28=_0x1e8334;_0x3a31f8[_0x267d28(0x150)]==='0'?dbUtil[_0x267d28(0xf6)](_0x3a31f8)[_0x267d28(0x149)]()['catch']():dbUtil[_0x267d28(0xd1)](_0x3a31f8['msgId'])[_0x267d28(0x149)](_0x1dd22e=>{const _0x55e3bf=_0x267d28;_0x1dd22e&&(_0x1dd22e[_0x55e3bf(0x150)]=_0x3a31f8[_0x55e3bf(0x150)],dbUtil[_0x55e3bf(0x107)](_0x1dd22e)[_0x55e3bf(0x149)]());});});},_0x6c4140[_0x4eeaf7(0x11c)]=_0x3669a4=>{const _0x4745d2=_0x4eeaf7;stat[_0x4745d2(0xb0)]+=0x1,stat[_0x4745d2(0x15b)]+=0x1,stat['last_message_time']=Math[_0x4745d2(0x137)](_0x7e7084['nDZhK'](Date['now'](),0x3e8));},_0x6c4140[_0x4eeaf7(0xcc)]=_0x3ce01c=>{const _0x1a5ca2=_0x4eeaf7;stat[_0x1a5ca2(0x13b)]+=0x1,stat['message_received']+=_0x3ce01c[_0x1a5ca2(0xa5)],stat['last_message_time']=Math[_0x1a5ca2(0x137)](_0x7e7084[_0x1a5ca2(0xac)](Date[_0x1a5ca2(0xe8)](),0x3e8));},_0x6c4140['onRecvSysMsg']=(..._0x259503)=>{const _0x32d54e=_0x4eeaf7;stat[_0x32d54e(0x13b)]+=0x1;},this[_0x4eeaf7(0xb7)](_0x6c4140);const _0x751225=new BuddyListener();_0x751225['onBuddyListChange']=_0x2df251=>{const _0xdd1298=_0x4eeaf7;rawFriends[_0xdd1298(0xa5)]=0x0,rawFriends[_0xdd1298(0xe3)](..._0x2df251);for(const _0x2e97fe of _0x2df251){for(const _0x3c7b81 of _0x2e97fe[_0xdd1298(0xb3)]){const _0x219303=friends[_0xdd1298(0x11d)](_0x3c7b81[_0xdd1298(0xc9)]);uid2UinMap[_0x3c7b81[_0xdd1298(0xc9)]]=_0x3c7b81['uin'],_0x219303?Object[_0xdd1298(0xf9)](_0x219303,_0x3c7b81):friends[_0xdd1298(0x121)](_0x3c7b81[_0xdd1298(0xc9)],_0x3c7b81);}}},this[_0x4eeaf7(0xb7)](_0x751225),this[_0x4eeaf7(0x147)][_0x4eeaf7(0x13d)]()[_0x4eeaf7(0x13a)](!![])[_0x4eeaf7(0x149)](_0x1885de=>{});const _0x4bf746=new ProfileListener();_0x4bf746[_0x4eeaf7(0xd0)]=_0x47b316=>{const _0x455ec8=_0x4eeaf7;_0x47b316[_0x455ec8(0xc9)]===selfInfo[_0x455ec8(0xc9)]&&Object[_0x455ec8(0xf9)](selfInfo,_0x47b316);},_0x4bf746[_0x4eeaf7(0xd9)]=_0x3a1b53=>{},this[_0x4eeaf7(0xb7)](_0x4bf746);const _0x53a9b3=new GroupListener();_0x53a9b3[_0x4eeaf7(0x10b)]=(_0x3668c6,_0x2bf2f8)=>{const _0x1b0f1c=_0x4eeaf7;_0x2bf2f8[_0x1b0f1c(0x131)](_0x24f693=>{const _0x510cac=_0x1b0f1c,_0x348ca1=groups[_0x510cac(0x11d)](_0x24f693[_0x510cac(0xa8)]);if(_0x348ca1)Object[_0x510cac(0xf9)](_0x348ca1,_0x24f693);else{groups['set'](_0x24f693[_0x510cac(0xa8)],_0x24f693);const _0x1fc7d8=this[_0x510cac(0x147)]['getGroupService']()[_0x510cac(0x122)](_0x24f693[_0x510cac(0xa8)],_0x7e7084[_0x510cac(0x10c)]);this[_0x510cac(0x147)][_0x510cac(0xd6)]()[_0x510cac(0xbf)](_0x1fc7d8,undefined,0xbb8)[_0x510cac(0x149)](_0x24a9bb=>{});}});},_0x53a9b3['onMemberListChange']=_0x9b0d8=>{const _0x50b4a7=_0x4eeaf7,_0xdfe37c=_0x9b0d8[_0x50b4a7(0x10a)]['split']('_')[0x0];if(groupMembers[_0x50b4a7(0x155)](_0xdfe37c)){const _0x4a8185=groupMembers[_0x50b4a7(0x11d)](_0xdfe37c);_0x9b0d8['infos'][_0x50b4a7(0x124)]((_0x1db8c3,_0x4b1956)=>{const _0x56074b=_0x50b4a7,_0x704db4=_0x4a8185[_0x56074b(0x11d)](_0x4b1956);_0x704db4?Object['assign'](_0x704db4,_0x1db8c3):_0x4a8185['set'](_0x4b1956,_0x1db8c3);});}else groupMembers[_0x50b4a7(0x121)](_0xdfe37c,_0x9b0d8[_0x50b4a7(0x106)]);},_0x53a9b3[_0x4eeaf7(0x134)]=(_0x595dd3,_0x2c33f2,_0x31b106)=>{const _0x3b1cac=_0x4eeaf7;_0x7e7084[_0x3b1cac(0xb5)](_0x2c33f2,0x0)&&_0x31b106[_0x3b1cac(0x11d)](selfInfo[_0x3b1cac(0xc9)])&&_0x31b106[_0x3b1cac(0x11d)](selfInfo[_0x3b1cac(0xc9)])?.['isDelete']&&_0x7e7084['KtcZi'](setTimeout,()=>{groups['delete'](_0x595dd3);},0x1388);_0x31b106[_0x3b1cac(0x124)]((_0xb2eb28,_0x1eb700)=>{const _0x44009e=_0x3b1cac;uid2UinMap[_0x1eb700]=_0xb2eb28[_0x44009e(0xfd)];});const _0x1c9a0a=groupMembers[_0x3b1cac(0x11d)](_0x595dd3);_0x1c9a0a?_0x31b106[_0x3b1cac(0x124)]((_0x5e4ef6,_0x2e7b43)=>{const _0x21a25b=_0x3b1cac,_0x7e3e8e=_0x1c9a0a[_0x21a25b(0x11d)](_0x2e7b43);_0x7e3e8e?Object['assign'](_0x7e3e8e,_0x5e4ef6):_0x1c9a0a[_0x21a25b(0x121)](_0x2e7b43,_0x5e4ef6);}):groupMembers[_0x3b1cac(0x121)](_0x595dd3,_0x31b106);},this['addListener'](_0x53a9b3);}[_0x240855(0xb7)](_0xaeb1a4){const _0x26a210=_0x240855,_0x1a308f={'cyhPr':_0x26a210(0x154),'IJwWi':_0x26a210(0x14e),'vlDLd':_0x26a210(0x109)};_0xaeb1a4=new Proxy(_0xaeb1a4,this[_0x26a210(0xef)]);switch(_0xaeb1a4[_0x26a210(0x128)][_0x26a210(0x108)]){case _0x1a308f['cyhPr']:{return this[_0x26a210(0x147)][_0x26a210(0x13d)]()[_0x26a210(0x112)](new _0xad918e[(_0x26a210(0x161))](_0xaeb1a4));}case _0x1a308f[_0x26a210(0xdc)]:{return this[_0x26a210(0x147)][_0x26a210(0xd6)]()[_0x26a210(0xfb)](new _0xad918e[(_0x26a210(0x12a))](_0xaeb1a4));}case _0x1a308f['vlDLd']:{return this[_0x26a210(0x147)][_0x26a210(0x10f)]()['addKernelMsgListener'](new _0xad918e[(_0x26a210(0x116))](_0xaeb1a4));}case'ProfileListener':{return this[_0x26a210(0x147)][_0x26a210(0xb8)]()[_0x26a210(0x136)](new _0xad918e['NodeIKernelProfileListener'](_0xaeb1a4));}default:return-0x1;}}[_0x240855(0x11f)](_0x31cc97){this['onLoginSuccessFuncList']['push'](_0x31cc97);}async[_0x240855(0x123)](_0x1ddbba){const _0x4711df=_0x240855,_0x42263b={'kFXEV':function(_0x1e60b1,_0x3fc95c){return _0x1e60b1!==_0x3fc95c;},'eZBhh':_0x4711df(0x14a),'bDmGr':function(_0x579683,_0x2f77bd){return _0x579683(_0x2f77bd);},'kKkDw':function(_0x4f6be2,_0x1d026a){return _0x4f6be2+_0x1d026a;},'knNeZ':_0x4711df(0x13e)},_0x27410a=await this['loginService'][_0x4711df(0x101)]();if(_0x42263b['kFXEV'](_0x27410a['result'],0x0))throw new Error(_0x42263b[_0x4711df(0xb4)]);const _0x40d3f5=_0x27410a[_0x4711df(0x14c)]['find'](_0x5dce4c=>_0x5dce4c[_0x4711df(0xfd)]===_0x1ddbba);if(!_0x40d3f5||!_0x40d3f5?.['isQuickLogin'])throw new Error(_0x1ddbba+'快速登录不可用');await _0x42263b[_0x4711df(0x125)](sleep,0x3e8);const _0x51f15b=await this['loginService'][_0x4711df(0x163)](_0x1ddbba);if(!_0x51f15b[_0x4711df(0xdb)])throw new Error(_0x42263b[_0x4711df(0x102)](_0x42263b[_0x4711df(0xde)],_0x51f15b[_0x4711df(0x127)][_0x4711df(0x157)]));return _0x51f15b;}async[_0x240855(0x160)](_0x11a6aa){const _0x351707=_0x240855,_0x4207ac={'YhZjT':_0x351707(0x120),'nMriu':_0x351707(0x12b),'xTbiG':function(_0x291169,_0x456681,_0x27638e,_0x421854){return _0x291169(_0x456681,_0x27638e,_0x421854);}};return new Promise((_0x522d1b,_0x28cec5)=>{const _0x20c77c=_0x351707,_0x22dda7={'xsPeJ':_0x4207ac[_0x20c77c(0x115)],'VIrfy':_0x4207ac[_0x20c77c(0x110)],'AyeWC':function(_0x86071,_0x5804d5,_0x2fdb4f,_0x14bd0d){const _0x2d3892=_0x20c77c;return _0x4207ac[_0x2d3892(0x153)](_0x86071,_0x5804d5,_0x2fdb4f,_0x14bd0d);}};this[_0x20c77c(0xf2)][_0x20c77c(0xe6)]=_0xb97cab=>{const _0x549055=_0x20c77c,_0x4e74d3=_0xb97cab[_0x549055(0x140)]['split'](_0x22dda7[_0x549055(0xb1)])[0x1],_0x156561=Buffer['from'](_0x4e74d3,_0x22dda7[_0x549055(0x105)]);_0x22dda7['AyeWC'](_0x11a6aa,_0xb97cab[_0x549055(0xbc)],_0xb97cab[_0x549055(0x140)],_0x156561);},this[_0x20c77c(0x13c)][_0x20c77c(0xa7)]();});}async[_0x240855(0xc6)](_0x3a3a6c,_0x57cfa5,_0xd28692,_0x2aa840,_0x1d8a75){const _0x5e9a74=_0x240855,_0x2831d3={'TQMvm':_0x5e9a74(0xcf),'vFQeL':function(_0x3133f7,_0x590778){return _0x3133f7&&_0x590778;},'AVziu':function(_0x3ce8cf,_0x45478f){return _0x3ce8cf||_0x45478f;},'XkIxr':function(_0x5b4f57,_0x55d28f){return _0x5b4f57||_0x55d28f;},'lampe':function(_0x28f9ee,_0x3afb23){return _0x28f9ee(_0x3afb23);},'uQVqd':_0x5e9a74(0xfa),'KaqlI':_0x5e9a74(0xf7)},_0x1d9a3c=_0x495ab2[_0x5e9a74(0xc1)](_0x5e9a74(0xe5))[_0x5e9a74(0xb6)](_0x57cfa5)[_0x5e9a74(0x15c)](_0x2831d3[_0x5e9a74(0xe7)]),_0x152471={'uin':_0x3a3a6c,'passwordMd5':_0x1d9a3c,'step':_0x2831d3[_0x5e9a74(0xf0)](_0xd28692,_0x2aa840)&&_0x1d8a75?0x1:0x0,'newDeviceLoginSig':'','proofWaterSig':_0x2831d3['AVziu'](_0xd28692,''),'proofWaterRand':_0x2aa840||'','proofWaterSid':_0x2831d3[_0x5e9a74(0x15e)](_0x1d8a75,'')};await this['loginService'][_0x5e9a74(0x101)](),await _0x2831d3[_0x5e9a74(0xe1)](sleep,0x3e8);const _0x173259=await this[_0x5e9a74(0x13c)][_0x5e9a74(0xc6)](_0x152471);switch(_0x173259['result']){case'0':{break;}case _0x2831d3[_0x5e9a74(0x118)]:{break;}case'4':case _0x2831d3['KaqlI']:default:}}async[_0x240855(0x162)](){const _0x3b1bc7=_0x240855,_0x34b87e=await this[_0x3b1bc7(0x13c)][_0x3b1bc7(0x101)]();return _0x34b87e;}}export const napCatCore=new NapCatCore(); |