mirror of https://github.com/KingRan/KR.git
24 lines
21 KiB
JavaScript
24 lines
21 KiB
JavaScript
/*
|
||
一个强大的推送通知库,主要用于汇总多条账号消息后集中推送通知
|
||
默认情况下账号消息指的是单一账号的消息,它由“<前缀><用户名><消息内容>”组成,其中消息内容由一条或多条组成最后用指定字符拼接成一条合并内容
|
||
脚本最终汇总多条账号消息后集中触发推送通知业务,每个账号的消息占用一行,排列顺序以优先触发记录为原则
|
||
此库封装了多条方法,推送通知业务调用自 sendNotify.js,可引用此模块来平替引用它,支持单消息推送
|
||
|
||
账号消息自定义功能如下(环境变量)
|
||
1。关键词过滤,触发时不推送对应单条账号消息 JD_NOTIFY_FILTER_KEYWORDS
|
||
例:export JD_NOTIFY_FILTER_KEYWORDS="空气@会员",多个关键词用@分割
|
||
2。消息内容分隔符 JD_NOTIFY_DELIMITER,默认为中文逗号
|
||
例:export JD_NOTIFY_DELIMITER="、",此分隔符用于分隔多条账号消息
|
||
3。设置替换用户名为昵称 JD_NOTIFY_NICKNAMES
|
||
例:export JD_NOTIFY_NICKNAMES="userpin_α@哥哥,userpin_β@弟弟",多个昵称配置用英文逗号分割,用户名和昵称用@分割
|
||
4。是否显示用户名 JD_NOTIFY_SHOW_USERNAME(true/false),默认显示
|
||
例:export JD_NOTIFY_SHOW_USERNAME="false"
|
||
5。设置消息前缀格式 JD_NOTIFY_PREFIX_FORMATA,默认为 "【京东账号<序号>】"
|
||
例:export JD_NOTIFY_PREFIX_FORMATA="[账号%]",%代表账号序号
|
||
6。设置自动合并消息中用数字开头表示数量的内容 JD_NOTIFY_AUTO_MERGE_TYPE
|
||
例:export JD_NOTIFY_AUTO_MERGE_TYPE="积分 🎟️",多个规则用@分割,正则匹配
|
||
|
||
new Env('sendJDNotify');
|
||
*/
|
||
|
||
var version_='jsjiami.com.v7';function iii1II(_0x183061,_0x2e336b){const _0x54e579=Iii11l();return iii1II=function(_0x2aea3b,_0x1870c6){_0x2aea3b=_0x2aea3b-0x1c9;let _0x32082e=_0x54e579[_0x2aea3b];if(iii1II['IRbRGQ']===undefined){var _0x24b961=function(_0x5a111f){const _0x4cf38b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x436d3a='',_0x5492e1='';for(let _0x21906c=0x0,_0x2bcae4,_0x7c8a8b,_0x9b282f=0x0;_0x7c8a8b=_0x5a111f['charAt'](_0x9b282f++);~_0x7c8a8b&&(_0x2bcae4=_0x21906c%0x4?_0x2bcae4*0x40+_0x7c8a8b:_0x7c8a8b,_0x21906c++%0x4)?_0x436d3a+=String['fromCharCode'](0xff&_0x2bcae4>>(-0x2*_0x21906c&0x6)):0x0){_0x7c8a8b=_0x4cf38b['indexOf'](_0x7c8a8b);}for(let _0x3fca38=0x0,_0x42236b=_0x436d3a['length'];_0x3fca38<_0x42236b;_0x3fca38++){_0x5492e1+='%'+('00'+_0x436d3a['charCodeAt'](_0x3fca38)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5492e1);};const _0x4e544b=function(_0x3429ef,_0x3de768){let _0x255d88=[],_0xf47390=0x0,_0x63a965,_0x3e1371='';_0x3429ef=_0x24b961(_0x3429ef);let _0x55f6b4;for(_0x55f6b4=0x0;_0x55f6b4<0x100;_0x55f6b4++){_0x255d88[_0x55f6b4]=_0x55f6b4;}for(_0x55f6b4=0x0;_0x55f6b4<0x100;_0x55f6b4++){_0xf47390=(_0xf47390+_0x255d88[_0x55f6b4]+_0x3de768['charCodeAt'](_0x55f6b4%_0x3de768['length']))%0x100,_0x63a965=_0x255d88[_0x55f6b4],_0x255d88[_0x55f6b4]=_0x255d88[_0xf47390],_0x255d88[_0xf47390]=_0x63a965;}_0x55f6b4=0x0,_0xf47390=0x0;for(let _0x38495a=0x0;_0x38495a<_0x3429ef['length'];_0x38495a++){_0x55f6b4=(_0x55f6b4+0x1)%0x100,_0xf47390=(_0xf47390+_0x255d88[_0x55f6b4])%0x100,_0x63a965=_0x255d88[_0x55f6b4],_0x255d88[_0x55f6b4]=_0x255d88[_0xf47390],_0x255d88[_0xf47390]=_0x63a965,_0x3e1371+=String['fromCharCode'](_0x3429ef['charCodeAt'](_0x38495a)^_0x255d88[(_0x255d88[_0x55f6b4]+_0x255d88[_0xf47390])%0x100]);}return _0x3e1371;};iii1II['Fptrnq']=_0x4e544b,_0x183061=arguments,iii1II['IRbRGQ']=!![];}const _0x148fcc=_0x54e579[0x0],_0x4aac66=_0x2aea3b+_0x148fcc,_0x1f135b=_0x183061[_0x4aac66];return!_0x1f135b?(iii1II['nDLrJY']===undefined&&(iii1II['nDLrJY']=!![]),_0x32082e=iii1II['Fptrnq'](_0x32082e,_0x1870c6),_0x183061[_0x4aac66]=_0x32082e):_0x32082e=_0x1f135b,_0x32082e;},iii1II(_0x183061,_0x2e336b);}function Iii11l(){const I1il11=(function(){return[...[version_,'bAPjEsBQjPrSiJaLLQmQRiyKe.EQKcuomB.ROve7==','vmoXW4ritgKlxq','W54tWQdcVJi','W4VcNSkNW6pdJW','neBdH3FdJZS','W67cLCkbW7FdGmo7c8oJ','emkcW513','W73cPmkAugpdKYzYW7qLzc0kqa','W5hdVue9mSoZWOS','W5OEtbaP','W6ldIvDNhmkKpqZdKJSCWRGvfq','aSklhSkGW4y','r8oGW4TAW7u','w3NdR8o2W5u','qqi+W40mW6RdV24','ECoKW6rlW5zMzXdcRKC','lx/dKs0Eemoum8kfAmojjYO','WRKRW4aUWQq','W73dVmoQwW/dIJhcV1BdRa','mudcULtcSq','W4dcMgFdN8kv','W7S7lfFdSNa','W641W75cW7S','W7BcH8kHWRRdMmoQWRa','lCk6ECoPWPJdLCk2WOaUra','W6W9nL3dVG','WOddVSooWQJcUa/dTve','k8oyh8oMlmkDyG','WQDsmCkLrhf6WPSCkW','ab1ufmk6','WQ48WQTVWOmHbmk/cW','W5JcPCo0WQq','WR4yW5uWWRpdMSk1WPLlWQxcKSkgWRKE','arL1W7xdSSkCbq','W5BcOmkltMe','W4BdTKC','W6WrtGK8pa/cVHVdUmoEpmoDWOu','m1/cSeJcK8kZW5/cUW','cSkJWOVcRI0','WOTmnmkVthO','rCo4W6HjW4LT','W54BWRdcTHJcQCooW75xjf/dMudcOq','W5VcPmo5WQ/cTG','j8kDvCoMWPu','g8oxc3/dNq','p0BdNv3dNIdcPmo5WONdLG','WQDDo8kLqgP1WOikgCoABmoraq','oL7cVNDT','hSkaW4VdHra','lmoEaSoIjSkaCW','WRFcK8k+W5ddLrZcLGJdT8oOlZy','W5hcRmkrrKRdMr9+W6eV','kSkIWOhcNtS','WRddImouWQNcGCkTk8otmqpcN8ks','prD4W6ldUmkhhZ84brpdMCohWR8','adxcV8kvW5q','FH3cQ1nM','z8o2sCkKWPhcSwlcTdBdRW','hCo0iL/dIsxcQw0mW6Gon8o3CW','WP/cQY52','A8o+WQZcSNa0W5ybfSoMWPq5nq','WPTtnSkYsNfV','W7WWW5LyW4S','WPeRcuTK','fmk9FSoU','ztqPWR4zaSkM'],...(function(){return[...['jMBcQYC9WQCTWPmqcCotW64','emktWOJcSdvr','WQpcG8oIWQNcM8oIW7FdTCka','W5hdUmoNxc7dKcVcOKpdLfusW6ug','W5z9WP9qpW','W7G4WQRcUIu','pmkmW5nXwCkBWONdOmkoW4ldMmoUW7hdSG','z1jglCom','pmoEbCo+la','A1bHkmoHWQFcGcy','CWeIW4WaW6ZdRLWSW6VcS8kwWOLSWPtcQvnpgmo1WRm','f8k6zG','oCkzWQlcSba','W4LOWP1Ep0G','Cs9HWQVdL37cU8oP','ECoNW6HBW45PyrJcJ1hdRSkGE8oUWQFcT2O','iuTnWP4aDG','uCozzCkwWQO','smkjDCkXu8oCkcTEWOtcV8o9yG','W67dK1f6gmk7','W5pdRui5','f8owbmoMjSk+CXraW59PWQNdRCkU','W7STWOBcNZ7cK8okW519chddT2BcMw/cGmoOcdO','W6pdVmo3tcddGIdcPq','hGXmhSkM','WPrznSkHw3C','kSk9W7ldOJy','W6ldLvrG','W6WWW7n6W4C','mf/cTgzWzmo8','labDdSk9WQ5KW7hdJmkpWRpdImkfWPLYW5hcJXKtdCoZWPC','WPbvgCkOrq','W5VcI3hdKCkN','oZhcPSkaW5y','t8obW5FdRNCiW5nzW49Wr8on','W6JdGCoHWO7cL0u','vH7dIf9A','W5/cR8oUWRNcRYZdIxy','W4aHW7XWW5WOwCk3sKmsW4CcAq','WPqJW7X+W4C','zSoNW59uwLSDs8o/pgauxW','z8o5q8kKWPxcQM3cRsddNCkBimoQwG','W6n0WQf+pG','W4ldV2uNhW','dXDR','cbnUW5hdGW','W5FdT14teq','W4fKWObjjfpcV8kIvJCNW4/cISklvmoEW7m','eqz3W6JdOW','ys5vWQ3dVW','ECkeqCkQEmoglYHQW6T+WR/dJq','mmkSW5Pzya','c8oOWOzhhxjAuSk+','44oW5lUG5lQp6lsA5y2YEEocSq','W5hcUCkts3a','omocaSo6','ESkormkKFSokxZjYW5DZWPq','WOjmyJCngXBcSG','cCoqfCozjW','W5VcIwJdKCkZ','hYnFj8ky','zmonCepcTSkNiCoKW7jsbCkHF10','W4FcUCo4WRJcGcRdGwa','BSo4WQJcVxCZWQiTm8ojWROU','W4hcPSkrvMhdMb8','uqrYkSopWQNdPYu','tt48W5Cj'],...(function(){return['n8kECSoUWOy','W5iqhx/dLen9W63dT3lcQd/cKCoktsJcJeZcVtDtW5FdMmofW50','sCoHW4rt','oCokp8kXrCotkWb3WPNcUSoVFSodW6VdRSoonr3cRr3cJW','W5BdQ1qJhCoXWOnN','W4ZcTSk/WRZdNG','fxflWRi3','mL/cRvZcHSk8','if/cT3C','WQJdJSk0vCoAtXldR8ommghcL8oQ','xmo6W4e','avVcOfJcNCkHW5tcVmo/WRykodRdLW','W4tcOmkrrG','W5VdHCoSWORcJfJcNthdPSoelWRdPCkD','osLNm8kbWPTkW5ldK8k5WPhdTCkJWQb3W7xcUYSV','wbuKW5m','W6hcUCk2WQhdMG','eGnOW6K','WOpdGIxcGCoeWQXTwWjRfGq','WR06bKf/aGpdO3DtBmkhhCoR','W70mWPZcQqS','f8oha8o3l8kABIbiW4HqWRhdQq','BSorBW','WRpcQc9GlanGW5KQW53cMbCxWR4lWPPMpwiIWPi','qaiJW5KzW6u','W7JcVwFdJa','W63cQ8o+WQNcOt7dGNhcSf0RWQddUmoV','W5v4WObr','pqNcUCkcW6W','WPFcOazJySkOWODrW4S3WPBcSa','k8k/b8kLW7hdGfvLhW4uW69sDtm8W5ZcU0FdOcTLW6CeWRi','W47dOmoqWQFcRhNcUGpdJmoAeZhdH8kVWO3dKglcU8oW','xdy+WOGlamkPWQpdJHddKCkLqW/dQr/cPeBdTv/dMwO','W7BcRmokWOZcTW','ztO3WOGD','tCoMW55w','amooiSkNuG','aZxcVSktW5FdPW','W6BcVmkdWR3dGW','WRXDd8kFyW','W7z1WRX4aa','WOxcOcr3oq','aJxcO8khW4ldQc7dVW','WQDpmmkPwePOWPmlfSojC8ov','iKXx','bSoYkwFdOa','xGvJa8oBWQ7dQG','zXL5kConWPJdStnEW4/dKmobBG','pKRdKxxdNW','mwtcJeD3','hGHldSkVWQHMW6C','W5KXutKQ','dwz+WQqQumocWPBcH8ohWRWtW6ZcTbBcHfrhnSo+WOnYqSoU','wvH3kmoZWQhcGJddUmk1W5FdJSk2W7tcVJtdTq','WPvzk8k1tNH+WOu','zWBdSgHK','uSo4W6rf','EIxcJwfkvW','rCkZg1tdNGZcMrC','WPi9W7WcWP8','bSkElmkMW5VdP29citq','zSo9W7vhdXy','fCkyWOlcSJK','vSoXW5HAwG','y1TK','z8oOuSkIWPZcTNVcNZZdRSkem8o/'];}())];}())];}());Iii11l=function(){return I1il11;};return Iii11l();};const liI1i1=iii1II;(function(llI11i,i1iIi1,l1l1il,I11i1I,iliIi1,l1l1ii,Il1i1I){return llI11i=llI11i>>0x7,l1l1ii='hs',Il1i1I='hs',function(Ii1iii,iIIilI,il1l1,Ii1iil,Ilil1i){const lill11=iii1II;Ii1iil='tfi',l1l1ii=Ii1iil+l1l1ii,Ilil1i='up',Il1i1I+=Ilil1i,l1l1ii=il1l1(l1l1ii),Il1i1I=il1l1(Il1i1I),il1l1=0x0;const iili1=Ii1iii();while(!![]&&--I11i1I+iIIilI){try{Ii1iil=-parseInt(lill11(0x271,'BePw'))/0x1+-parseInt(lill11(0x1d3,'ZQ)N'))/0x2+-parseInt(lill11(0x25b,'AQD['))/0x3+parseInt(lill11(0x278,'UeR0'))/0x4*(parseInt(lill11(0x272,'8ZP@'))/0x5)+-parseInt(lill11(0x28e,'qfTQ'))/0x6+parseInt(lill11(0x285,'Xd9q'))/0x7+-parseInt(lill11(0x1f0,'Vw!k'))/0x8*(-parseInt(lill11(0x207,'k^6&'))/0x9);}catch(II11ii){Ii1iil=il1l1;}finally{Ilil1i=iili1[l1l1ii]();if(llI11i<=I11i1I)il1l1?iliIi1?Ii1iil=Ilil1i:iliIi1=Ilil1i:il1l1=Ilil1i;else{if(il1l1==iliIi1['replace'](/[KLQerOuPyBAJbESR=]/g,'')){if(Ii1iil===iIIilI){iili1['un'+l1l1ii](Ilil1i);break;}iili1[Il1i1I](Ilil1i);}}}}}(l1l1il,i1iIi1,function(Iil1iI,II11il,iIIil1,IlllII,I1il1I,II111,lI1l1I){return II11il='\x73\x70\x6c\x69\x74',Iil1iI=arguments[0x0],Iil1iI=Iil1iI[II11il](''),iIIil1=`\x72\x65\x76\x65\x72\x73\x65`,Iil1iI=Iil1iI[iIIil1]('\x76'),IlllII=`\x6a\x6f\x69\x6e`,(0x1463db,Iil1iI[IlllII](''));});}(0x6200,0x582b8,Iii11l,0xc6),Iii11l)&&(version_=liI1i1(0x201,'1cUR'));class li1i1l{constructor(){const I11i11=liI1i1,II1i1={'qpaqT':function(lI1lll,iIiII){return lI1lll(iIiII);},'vpSDB':I11i11(0x24b,'xyzQ')};this[I11i11(0x241,'BePw')]='',this[I11i11(0x218,'ljvV')]='',this[I11i11(0x22a,'9d2w')]=II1i1['qpaqT'](require,II1i1['vpSDB'])['sendNotify'],this[I11i11(0x22d,'ljvV')]=[],this['_messageDelimiter']='',this[I11i11(0x1d6,'2TVc')]=[],this['_showUserName']=!![],this[I11i11(0x213,'Cl2]')]={},this[I11i11(0x1f7,'HQ*4')]=I11i11(0x26e,'Q5f!'),this['_autoMergeType']='',this['_Init']();}[liI1i1(0x281,'kwPP')](){const I1llII=liI1i1,iil1lI={'WFfpg':function(iiiliI,li1i1I){return iiiliI===li1i1I;},'cpFKx':function(illIii,ii1il1){return illIii!==ii1il1;},'ajFrH':I1llII(0x22b,'AQD['),'MrjBD':function(lI1llI,illIil){return lI1llI!==illIil;},'SxOAK':I1llII(0x1e7,'khca'),'SNRtT':I1llII(0x1fa,'Z54o'),'DaWYL':function(Ill1I,i11iiI){return Ill1I===i11iiI;}};process['env']['JD_NOTIFY_FILTER_KEYWORDS']&&(iil1lI['MrjBD'](I1llII(0x25a,'e@AG'),iil1lI[I1llII(0x1de,'MUrc')])?this[I1llII(0x257,'ZlKT')]=process[I1llII(0x21a,'ZQ)N')][I1llII(0x1d4,'@AMR')]['split']('@')[I1llII(0x265,'ljvV')](lIli11=>lIli11[I1llII(0x28b,'Hiax')]())['filter'](Boolean):ll1lI[I1llII(0x205,'Hiax')]=this[I1llII(0x1fe,'9d2w')](l1iii['messages'],this['_autoMergeType']));this['_messageDelimiter']=process['env']['JD_NOTIFY_DELIMITER']||',';if(process[I1llII(0x1f6,'Pxu]')][I1llII(0x1d5,'Bo%R')]){if(iil1lI['SNRtT']===I1llII(0x1ca,'rpKn')){const lillI1=process[I1llII(0x1e2,'p9QB')][I1llII(0x24f,'rpKn')][I1llII(0x269,'ljvV')](',');lillI1['forEach'](IlIlii=>{const Iil1il=I1llII;let i1l1i1=IlIlii[Iil1il(0x23d,'MUrc')]('@');iil1lI[Iil1il(0x274,'ky)M')](i1l1i1['length'],0x2)&&i1l1i1[0x0]&&i1l1i1[0x1]&&(iil1lI[Iil1il(0x202,'@AMR')]('VTgJz',iil1lI[Iil1il(0x203,']sJm')])?this['content']=lilIi:this[Iil1il(0x206,']sJm')][i1l1i1[0x0]]=i1l1i1[0x1]);});}else l1iIi!==l1l11i&&(this[I1llII(0x210,')ii!')]=lI11Il),iil1lI['cpFKx'](illIll,iIli1I)&&(this[I1llII(0x279,'9d2w')]=lIII1i),iil1lI[I1llII(0x235,'DuN4')](iiilli,l1iIIl)&&(this['_messageDelimiter']=l11i11);}this[I1llII(0x1e5,'nFdH')]=!iil1lI[I1llII(0x1dd,'Cl2]')](process['env']['JD_NOTIFY_SHOW_USERNAME'],I1llII(0x1d8,'2TVc')),process['env'][I1llII(0x1ea,'p9QB')]&&(this['_prefixFormat']=process[I1llII(0x286,'L7xZ')]['JD_NOTIFY_PREFIX_FORMATA']),process[I1llII(0x244,'46Wg')][I1llII(0x27d,')ii!')]&&(this['_autoMergeType']=process[I1llII(0x1cc,'*n[a')]['JD_NOTIFY_AUTO_MERGE_TYPE']);}[liI1i1(0x21b,'8ZP@')](l1l111,l1iIII){const I11i1i=liI1i1,llI1I1={'lPCIu':function(lIli1I,II1il){return lIli1I(II1il);},'ibgkr':I11i1i(0x23b,'kwPP'),'lNgZV':function(lllI11,I1lIll){return lllI11===I1lIll;},'ozbbW':'xBXwD','bQJFI':function(I1lIli,II1ii){return I1lIli+II1ii;},'RARhJ':function(IIIIII,lillII){return IIIIII<lillII;},'RSjXR':function(ii1ilI,lI1ll1){return ii1ilI+lI1ll1;},'DfWFy':function(iIiI1,liil1I){return iIiI1!==liil1I;},'XKwzy':'hiAnj'},IlIlil=l1l111;try{if(llI1I1[I11i1i(0x275,'ZlKT')](I11i1i(0x28c,'kwPP'),llI1I1[I11i1i(0x259,'qfTQ')]))IiiIil[I11i1i(0x238,'2TVc')](IlIliI=>{const l1l1iI=I11i1i;IlIliI[l1l1iI(0x21c,'Q]OS')]=this['_mergeMessages'](IlIliI[l1l1iI(0x242,'Pxu]')],this[l1l1iI(0x24e,'BePw')]);});else{function l1iII1(lIli1i){const I1llI1=I11i1i,IIIII1=lIli1i[I1llI1(0x251,'ZlKT')](/(\d+)(.+)/);return IIIII1?{'count':llI1I1[I1llI1(0x223,'Vw!k')](parseInt,IIIII1[0x1]),'name':IIIII1[0x2]['trim']()}:{'count':null,'name':lIli1i};}function iiill1(I1lIlI,ii1ill,II1iI){const I11i1l=I11i1i;return ii1ill!==null&&II1iI[I11i1l(0x253,'UeR0')]('@')['includes'](I1lIlI);}for(let llI1II=0x0;llI1II<l1l111[I11i1i(0x283,'Q]OS')];llI1II++){const {count:lIli1l,name:lillIi}=l1iII1(l1l111[llI1II]);if(iiill1(lillIi,lIli1l,l1iIII))for(let illIi1=llI1I1[I11i1i(0x22f,'k^6&')](llI1II,0x1);llI1I1['RARhJ'](illIi1,l1l111[I11i1i(0x246,'MUrc')]);illIi1++){const {count:ii1ili,name:liil1i}=llI1I1['lPCIu'](l1iII1,l1l111[illIi1]);lillIi===liil1i&&(l1l111[llI1II]=''+llI1I1[I11i1i(0x282,'p9QB')](lIli1l,ii1ili)+lillIi,l1l111['splice'](illIi1,0x1),illIi1--);}}return l1l111;}}catch{if(llI1I1[I11i1i(0x1d7,'a5^y')](llI1I1['XKwzy'],I11i1i(0x258,'Cl2]'))){const i1l1iI=llI1I1[I11i1i(0x200,'8ZP@')][I11i1i(0x236,'613Y')]('|');let liil1l=0x0;while(!![]){switch(i1l1iI[liil1l++]){case'0':if(!IllI1i)return;continue;case'1':lil['originMessages']=[IllI1l];continue;case'2':liIl1[I11i1i(0x1f8,'L7xZ')]=[II1lll];continue;case'3':i11I1l[I11i1i(0x1da,'xyzQ')]=!![];continue;case'4':if(i11I1i[I11i1i(0x1db,'e@AG')]>0x0&&IillIl[I11i1i(0x1fd,'*3QV')](lI1lii=>II1lli[I11i1i(0x27a,'nFdH')](lI1lii)))return;continue;}break;}}else return IlIlil;}}[liI1i1(0x1cd,'$Q%Y')](){const il1il=liI1i1,Iiili1={'agTvL':function(i1i11I,il1iIl){return i1i11I===il1iIl;},'iAEQP':il1il(0x1dc,'kwPP'),'vhEat':function(iii1ii,il1iIi){return iii1ii!==il1iIi;},'jeuPT':il1il(0x227,'UeR0'),'aYqid':function(iii1il,II11li){return iii1il!==II11li;},'ozyoC':il1il(0x222,'46Wg')};let Iil1l1=[];for(let {userName:I1l11i,index:iIIiiI,messages:liiI1i}of this[il1il(0x25f,'DuN4')]){liiI1i=liiI1i[il1il(0x24c,'1cUR')](lilIIl=>lilIIl!==null&&lilIIl!==undefined&&lilIIl!=='');const ililIi=Iil1l1[il1il(0x237,'46Wg')](ililIl=>ililIl[il1il(0x280,'ZQ)N')]===I1l11i);if(ililIi){if('uCRhi'!==Iiili1[il1il(0x24a,'HQ*4')])llIlli[il1il(0x270,'BePw')]({'userName':llIlll,'index':lliii1,'messages':Iiii1});else{Iiili1[il1il(0x264,'ZQ)N')](ililIi[il1il(0x226,'khca')],'')&&(ililIi[il1il(0x1f4,'AQD[')]=iIIiiI);if(liiI1i[il1il(0x252,'Cl2]')]>0x0){if(Iiili1['vhEat'](Iiili1[il1il(0x266,'ljvV')],il1il(0x25d,'Qwmc'))){const i1ill=IIII1l['env'][il1il(0x28a,'ZlKT')][il1il(0x214,'ZlKT')](',');i1ill['forEach'](I1l11l=>{const Il1i1i=il1il;let lilIIi=I1l11l[Il1i1i(0x255,'DuN4')]('@');Iiili1[Il1i1i(0x240,'Pxu]')](lilIIi[Il1i1i(0x25c,'Bo%R')],0x2)&&lilIIi[0x0]&&lilIIi[0x1]&&(this['_nicknames'][lilIIi[0x0]]=lilIIi[0x1]);});}else ililIi[il1il(0x250,'VqoF')][il1il(0x1d1,'MUrc')](...liiI1i);}}}else Iil1l1[il1il(0x24d,'ZQ)N')]({'userName':I1l11i,'index':iIIiiI,'messages':liiI1i});}Iil1l1=Iil1l1[il1il(0x249,'p9QB')](i1l1Il=>i1l1Il[il1il(0x25e,'a5^y')]['length']>0x0);if(this['_autoMergeType']){if(Iiili1[il1il(0x27b,'Hiax')](Iiili1[il1il(0x1f9,'rpKn')],Iiili1[il1il(0x20a,'Q]OS')]))return IllIIi;else Iil1l1[il1il(0x1e4,'nFdH')](i1i11l=>{const iIIili=il1il;i1i11l[iIIili(0x1e0,'e@AG')]=this['_mergeMessages'](i1i11l[iIIili(0x1ec,'Cl2]')],this['_autoMergeType']);});}this[il1il(0x287,'Q]OS')]=Iil1l1;}[liI1i1(0x20c,')ii!')]({title:i1i11i,content:II11l1,messageDelimiter:Iil1lI}){const Ii1iiI=liI1i1,IiiliI={'AgdKn':function(iii1iI,llIll){return iii1iI!==llIll;},'HLZBC':function(il1iII,iilli){return il1iII!==iilli;}};IiiliI[Ii1iiI(0x273,'BePw')](i1i11i,undefined)&&(this['title']=i1i11i),IiiliI[Ii1iiI(0x1f1,'iJf4')](II11l1,undefined)&&(this[Ii1iiI(0x212,'BePw')]=II11l1),Iil1lI!==undefined&&(this['_messageDelimiter']=Iil1lI);}['updateTitle'](IlllIl){const Ilil1I=liI1i1;this[Ilil1I(0x20b,'qfTQ')]=IlllIl;}['updateContent'](II11lI){const iliIiI=liI1i1;this[iliIiI(0x256,'khca')]=II11lI;}[liI1i1(0x21f,']sJm')](lI1IIi,I1l11I){const II11iI=liI1i1,Ilil1l={'HBYBj':function(i1l1Ii,I1iIIi){return i1l1Ii>I1iIIi;},'BmFdV':II11iI(0x215,'DuN4'),'vUmyl':function(I1iIIl,lI1IIl){return I1iIIl===lI1IIl;},'EJbdu':II11iI(0x1d2,'e@AG'),'cZfnx':II11iI(0x26a,'mqgJ'),'SAjKV':function(i1ilI,iii1lI){return i1ilI(iii1lI);},'FyRGu':function(i1ilI1,Iiilii,Iil1li,Iiilil){return i1ilI1(Iiilii,Iil1li,Iiilil);},'YhHko':function(Iil1ll,iillI){return Iil1ll<iillI;},'keHzE':function(lI1III,IIliIi){return lI1III(IIliIi);},'jMzBq':function(IllIiI,i1il1){return IllIiI+i1il1;},'PEsoU':function(I1l111,IIii1l){return I1l111(IIii1l);},'ChVVv':function(I1iIII,liiI11){return I1iIII||liiI11;}},iIIiii=this[II11iI(0x27f,'xyzQ')],iilll=this[II11iI(0x1cb,'BePw')],il1iI1=this[II11iI(0x230,'HQ*4')],IlllIi=this[II11iI(0x261,'L7xZ')];Ilil1l[II11iI(0x21d,'AQD[')](lI1IIi,undefined)&&(lI1IIi='');const iIIiil={'index':''+lI1IIi,'userName':I1l11I,'fixed':![],'messages':[],'originMessages':[],'insert'(ililI1){const Il1i1l=II11iI,IIii1i=Il1i1l(0x26d,'L7xZ')['split']('|');let i1ili=0x0;while(!![]){switch(IIii1i[i1ili++]){case'0':iIIiil[Il1i1l(0x276,'*n[a')][Il1i1l(0x28d,'ljvV')](ililI1);continue;case'1':if(iIIiil['fixed'])return;continue;case'2':if(!ililI1)return;continue;case'3':iIIiil[Il1i1l(0x1f8,'L7xZ')][Il1i1l(0x27e,'L7xZ')](ililI1);continue;case'4':if(Ilil1l[Il1i1l(0x204,'wmOg')](iIIiii[Il1i1l(0x1f3,'Jo&u')],0x0)&&iIIiii[Il1i1l(0x284,'khca')](Iiill1=>ililI1[Il1i1l(0x1fc,'Z54o')](Iiill1)))return;continue;}break;}},'fix'(I1iII1){const Iil1ii=II11iI,lilII1=Ilil1l['BmFdV'][Iil1ii(0x26f,'9d2w')]('|');let iill1=0x0;while(!![]){switch(lilII1[iill1++]){case'0':iIIiil[Iil1ii(0x220,'rpKn')]=[I1iII1];continue;case'1':if(!I1iII1)return;continue;case'2':iIIiil[Iil1ii(0x1e8,'ZlKT')]=[I1iII1];continue;case'3':if(iIIiii[Iil1ii(0x1ce,'Hiax')]>0x0&&iIIiii['some'](iii1l1=>I1iII1['includes'](iii1l1)))return;continue;case'4':iIIiil[Iil1ii(0x1e6,'gdps')]=!![];continue;}break;}},'updateIndex'(IIliIl){const lill1I=II11iI;Ilil1l['vUmyl'](Ilil1l[lill1I(0x27c,'46Wg')],Ilil1l[lill1I(0x208,'iJf4')])?this['_messageDelimiter']=lilIl:iIIiil[lill1I(0x221,'a5^y')]=''+IIliIl;},'updateUsername'(liiI1I){const Ii1ii1=II11iI;if(Ilil1l[Ii1ii1(0x1ed,'Qwmc')](Ii1ii1(0x267,'ZQ)N'),Ii1ii1(0x260,'Q5f!')))iIIiil['userName']=liiI1I;else{const {count:lI1II1,name:i1ilII}=Ilil1l[Ii1ii1(0x26c,'*3QV')](lilIil,i1l11[i1l1li]);if(Ilil1l[Ii1ii1(0x263,'MUrc')](i1ilii,i1ilII,lI1II1,iIIII1))for(let iIIii1=Ii1iIi+0x1;Ilil1l['YhHko'](iIIii1,iliIIl[Ii1ii1(0x1fb,'gdps')]);iIIii1++){const {count:IllIi1,name:lilIII}=Ilil1l['keHzE'](li1Ii,Iliiii[iIIii1]);Ilil1l['vUmyl'](i1ilII,lilIII)&&(i1IIi[IIII1I]=''+Ilil1l[Ii1ii1(0x1e9,'8ZP@')](lI1II1,IllIi1)+i1ilII,Iii111[Ii1ii1(0x21e,'Cl2]')](iIIii1,0x1),iIIii1--);}}},'getInlineContent'(){const Ilil11=II11iI;let Ii1ilI=this['originMessages'][Ilil11(0x254,'1cUR')](this[Ilil11(0x1eb,'Pxu]')])[Ilil11(0x1d9,'L7xZ')]();this[Ilil11(0x24e,'BePw')]&&(Ii1ilI=this['_mergeMessages'](Ii1ilI,this['_autoMergeType']));const II11i1=iilll[Ilil11(0x1ff,'ZQ)N')]('%',this['index']),iliIil=IlllIi?Ilil1l['PEsoU'](decodeURIComponent,il1iI1[this[Ilil11(0x277,'a5^y')]]||this[Ilil11(0x247,'mqgJ')])+':':'';return''+II11i1+iliIil+Ilil1l['ChVVv'](Ii1ilI,'无');}};return this[II11iI(0x23c,'VqoF')]['push'](iIIiil),iIIiil;}['dispose'](iliIii){const i1ii1=liI1i1;this[i1ii1(0x262,'HQ*4')]=this[i1ii1(0x225,'Cl2]')][i1ii1(0x1ef,'k^6&')](lill1i=>lill1i!==iliIii);}[liI1i1(0x268,'MUrc')](il1li){const il1ii=liI1i1,iIIill=this[il1ii(0x1c9,'613Y')]['find'](iilii=>decodeURIComponent(iilii['userName'])===decodeURIComponent(il1li));iIIill&&this[il1ii(0x228,'BePw')](iIIill);}[liI1i1(0x217,'iJf4')](Ill11i){const llI111=liI1i1,iilil=this[llI111(0x23f,'*3QV')][llI111(0x288,'9d2w')](Ill11l=>Ill11l[llI111(0x1df,'$Q%Y')]===''+Ill11i);iilil&&this['dispose'](iilil);}[liI1i1(0x224,'gdps')](){const i1iIiI=liI1i1,il1ll={'oeoaw':function(lill1l,l1l1i1){return lill1l===l1l1i1;},'quaQH':'PHxNR','IQskT':function(i1iiI,i1ilIl){return i1iiI(i1ilIl);}};if(il1ll[i1iIiI(0x22e,'e@AG')](this[i1iIiI(0x289,'Bo%R')][i1iIiI(0x23a,'AQD[')],0x0))return'';this[i1iIiI(0x243,'Hiax')]();if(il1ll[i1iIiI(0x1f5,'L7xZ')](this[i1iIiI(0x1d0,'a5^y')]['length'],0x0))return'';let i1ilIi='';for(const {userName:llI11I,index:Il1i11,messages:iii1li}of this['_accountsArray']){if(il1ll[i1iIiI(0x20d,'DuN4')]===il1ll[i1iIiI(0x1e3,'Vw!k')]){const Iil1i1=this['_prefixFormat']['replace']('%',Il1i11),IIii11=this[i1iIiI(0x1e1,'Cl2]')]?il1ll[i1iIiI(0x23e,'rpKn')](decodeURIComponent,this[i1iIiI(0x20f,'46Wg')][llI11I]||llI11I)+':':'',iliIl1=iii1li[i1iIiI(0x216,'a5^y')](this[i1iIiI(0x248,']sJm')])[i1iIiI(0x1cf,'ky)M')]();i1ilIi+=''+Iil1i1+IIii11+iliIl1+'\x0a';}else this['dispose'](i1i1II);}return i1ilIi[i1iIiI(0x1ee,']sJm')]();}async[liI1i1(0x232,'$Q%Y')](iii1ll,IIliI1){await this['sendNotify'](iii1ll,IIliI1);}async[liI1i1(0x209,'VqoF')](il1lI,IliIIl){await this['send'](il1lI,IliIIl);}async['push'](){const IlllI1=liI1i1,I1il1l={'EoDgQ':function(iiliI,Ill11I){return iiliI+Ill11I;}};this['content']=this['content']['trim']();let lI1l1l=this[IlllI1(0x234,'Cl2]')];const IIliII=this[IlllI1(0x1f2,'@AMR')]();if(IIliII)lI1l1l=I1il1l[IlllI1(0x245,'AQD[')](IIliII['trim']()+'\x0a\x0a',lI1l1l);await this['send'](this[IlllI1(0x219,'9d2w')],lI1l1l);}}module[liI1i1(0x20e,'kwPP')]=new li1i1l();var version_ = 'jsjiami.com.v7'; |