diff --git a/input.js b/input.js index a21c240..5e7dcdd 100644 --- a/input.js +++ b/input.js @@ -1 +1 @@ -const _0x391039=_0x1873;(function(_0x59768e,_0x33e63e){const _0x3557c4=_0x1873,_0x3ccd81=_0x59768e();while(!![]){try{const _0x410df7=-parseInt(_0x3557c4(0x1ff))/0x1+parseInt(_0x3557c4(0x1e3))/0x2*(parseInt(_0x3557c4(0x21f))/0x3)+parseInt(_0x3557c4(0x216))/0x4*(parseInt(_0x3557c4(0x212))/0x5)+parseInt(_0x3557c4(0x211))/0x6*(parseInt(_0x3557c4(0x1ec))/0x7)+-parseInt(_0x3557c4(0x1f1))/0x8*(-parseInt(_0x3557c4(0x1e0))/0x9)+parseInt(_0x3557c4(0x209))/0xa+-parseInt(_0x3557c4(0x1fe))/0xb;if(_0x410df7===_0x33e63e)break;else _0x3ccd81['push'](_0x3ccd81['shift']());}catch(_0xddfd0b){_0x3ccd81['push'](_0x3ccd81['shift']());}}}(_0x2aec,0xd059d));const _0x130733=(function(){let _0x27eb71=!![];return function(_0x1d2a13,_0x16ecf0){const _0x302cfe=_0x27eb71?function(){const _0x44d2e0=_0x1873;if(_0x16ecf0){const _0xc4c91c=_0x16ecf0[_0x44d2e0(0x214)](_0x1d2a13,arguments);return _0x16ecf0=null,_0xc4c91c;}}:function(){};return _0x27eb71=![],_0x302cfe;};}()),_0x374877=_0x130733(this,function(){const _0x2f9810=_0x1873;return _0x374877[_0x2f9810(0x1f8)]()[_0x2f9810(0x1fd)](_0x2f9810(0x202))[_0x2f9810(0x1f8)]()[_0x2f9810(0x220)](_0x374877)[_0x2f9810(0x1fd)]('(((.+)+)+)+$');});_0x374877();const _0x1508a2=(function(){let _0x544608=!![];return function(_0x1ce2a5,_0x5407c5){const _0x5ad6e3=_0x544608?function(){const _0x27f432=_0x1873;if(_0x5407c5){const _0x3ea776=_0x5407c5[_0x27f432(0x214)](_0x1ce2a5,arguments);return _0x5407c5=null,_0x3ea776;}}:function(){};return _0x544608=![],_0x5ad6e3;};}()),_0x136325=_0x1508a2(this,function(){const _0x500c22=_0x1873,_0x8dead0=function(){const _0x5343a4=_0x1873;let _0x8b31d9;try{_0x8b31d9=Function(_0x5343a4(0x208)+_0x5343a4(0x20e)+');')();}catch(_0x1158a4){_0x8b31d9=window;}return _0x8b31d9;},_0x20ef73=_0x8dead0(),_0x5ecc21=_0x20ef73[_0x500c22(0x1ee)]=_0x20ef73[_0x500c22(0x1ee)]||{},_0x5aedcc=[_0x500c22(0x218),_0x500c22(0x207),_0x500c22(0x1ed),_0x500c22(0x1fa),_0x500c22(0x1fb),_0x500c22(0x1d8),_0x500c22(0x1dc)];for(let _0x367215=0x0;_0x367215<_0x5aedcc[_0x500c22(0x1e1)];_0x367215++){const _0x3b84e2=_0x1508a2[_0x500c22(0x220)]['prototype'][_0x500c22(0x219)](_0x1508a2),_0x76fa=_0x5aedcc[_0x367215],_0x15ef8a=_0x5ecc21[_0x76fa]||_0x3b84e2;_0x3b84e2['__proto__']=_0x1508a2['bind'](_0x1508a2),_0x3b84e2[_0x500c22(0x1f8)]=_0x15ef8a[_0x500c22(0x1f8)][_0x500c22(0x219)](_0x15ef8a),_0x5ecc21[_0x76fa]=_0x3b84e2;}});_0x136325();function _0x1873(_0x3389a9,_0x1e5f33){const _0x3c77e2=_0x2aec();return _0x1873=function(_0x136325,_0x1508a2){_0x136325=_0x136325-0x1d6;let _0x5abf7b=_0x3c77e2[_0x136325];return _0x5abf7b;},_0x1873(_0x3389a9,_0x1e5f33);}let canvas,ctx;const app=new Vue({'el':_0x391039(0x21b),'data':{'radarImg':'','map':'','rate':1.2,'config':{'hp':![],'name':![],'friend':![],'c4':!![],'color':{'mine':_0x391039(0x1e7),'friend':'rgba(97,\x20189,\x20255,\x200.75)','enemy':_0x391039(0x222),'c4':'rgba(249,\x20229,\x209,\x200.75)'}},'selectIndex':'','ws':'','radarPlayer':[]},'computed':{'players':function(){const _0x11dbdf=_0x391039;let _0x2d36cc=[];if(!this[_0x11dbdf(0x213)])return;return this['radarPlayer'][_0x11dbdf(0x1f4)](_0x18efb0=>{const _0x27f6e0=_0x11dbdf;let _0x488372=_0x18efb0[_0x27f6e0(0x1f0)]===0x0?'匪':'警';if(!_0x2d36cc['find'](_0x44724a=>_0x44724a[_0x27f6e0(0x206)]===_0x488372)){let _0x1a13fc=[];_0x1a13fc[_0x27f6e0(0x21a)](_0x18efb0),_0x2d36cc['push']({'label':_0x488372,'options':_0x1a13fc});}else _0x2d36cc['forEach'](_0xc8e11b=>{const _0x4c569a=_0x27f6e0;_0xc8e11b[_0x4c569a(0x206)]===_0x488372&&_0xc8e11b[_0x4c569a(0x1de)][_0x4c569a(0x21a)](_0x18efb0);});}),_0x2d36cc;},'me':function(){const _0x943993=_0x391039;return app[_0x943993(0x213)]['find'](_0xdcdde0=>_0xdcdde0['id']===this[_0x943993(0x1e4)]);}},'created':function(){const _0x9a869c=_0x391039;this['ws']=new SignalRWebSocket(_0x9a869c(0x20a)+window[_0x9a869c(0x1df)][_0x9a869c(0x203)]+_0x9a869c(0x1e2)),this['ws']['on'](_0x9a869c(0x1eb),_0x2e8442=>{const _0xaf1ad7=_0x9a869c;this[_0xaf1ad7(0x1f5)]=_0x2e8442;}),this['ws']['on']('ReceiveRadar',_0x3d5644=>{const _0x1b81ad=_0x9a869c;_0x3d5644[_0x1b81ad(0x1f5)]!==this['map']&&(this['map']=_0x3d5644['map']),this[_0x1b81ad(0x213)]=_0x3d5644['players'];}),this['ws'][_0x9a869c(0x1db)](()=>{console['log'](this),canvas=this['$refs']['radarCanvas'],ctx=canvas['getContext']('2d'),setTimeout(radarDraw,0x3e8);}),this['ws'][_0x9a869c(0x1f6)]();},'watch':{'rate':function(_0x4c56e1){const _0x349a66=_0x391039;this['$refs'][_0x349a66(0x1d7)][_0x349a66(0x1f2)]=this[_0x349a66(0x1d9)][_0x349a66(0x1f2)]*_0x4c56e1,this[_0x349a66(0x204)][_0x349a66(0x1d7)][_0x349a66(0x1e5)]=this[_0x349a66(0x1d9)][_0x349a66(0x1e5)]*_0x4c56e1,ctx[_0x349a66(0x1da)](_0x4c56e1,_0x4c56e1);},'map':function(_0x3bf75d){const _0x4f3d95=_0x391039;this[_0x4f3d95(0x1d9)]=new Image(),this[_0x4f3d95(0x1d9)][_0x4f3d95(0x217)]=_0x3bf75d;let _0x261eda=this['$refs']['radarCanvas'];_0x261eda[_0x4f3d95(0x223)][_0x4f3d95(0x201)]=_0x4f3d95(0x20b)+_0x3bf75d+'\x22)',this[_0x4f3d95(0x1d9)]['onload']=()=>{const _0x14d2db=_0x4f3d95;_0x261eda[_0x14d2db(0x1e5)]=this[_0x14d2db(0x1d9)][_0x14d2db(0x1e5)]*this[_0x14d2db(0x1dd)],_0x261eda[_0x14d2db(0x1f2)]=this[_0x14d2db(0x1d9)]['width']*this[_0x14d2db(0x1dd)],ctx[_0x14d2db(0x1da)](this[_0x14d2db(0x1dd)],this[_0x14d2db(0x1dd)]);};},'selectedIndex':function(_0x12abc5){const _0x1e067d=_0x391039;if(!radarData['Players'])return;radarData['Players'][_0x1e067d(0x1f4)](_0x27af3d=>{_0x27af3d['Index']===_0x12abc5&&(radarData['Me']=_0x27af3d);});}}});function rgba(_0x97d041,_0x56606e,_0x1fa36f,_0x11a3eb){const _0x7fcd1=_0x391039;return'#'+_0x97d041[_0x7fcd1(0x1f8)](0x10)[_0x7fcd1(0x224)](0x2,'0')+_0x56606e[_0x7fcd1(0x1f8)](0x10)[_0x7fcd1(0x224)](0x2,'0')+_0x1fa36f['toString'](0x10)[_0x7fcd1(0x224)](0x2,'0')+Math[_0x7fcd1(0x205)](_0x11a3eb*0xff)[_0x7fcd1(0x1f8)](0x10)[_0x7fcd1(0x224)](0x2,'0');}function radarDraw(){const _0x5341aa=_0x391039;app['radarPlayer']&&app['me']&&(ctx['clearRect'](0x0,0x0,canvas[_0x5341aa(0x1f2)]+0x1,canvas['height']+0x1),app['radarPlayer']['forEach'](_0x1e31f0=>{const _0x520ca4=_0x5341aa;if(!_0x1e31f0[_0x520ca4(0x210)])return;let _0x56c841=_0x1e31f0[_0x520ca4(0x1f0)]!==app['me'][_0x520ca4(0x1f0)]?0x2:_0x1e31f0['id']===app['me']['id']?0x0:0x1;!app[_0x520ca4(0x225)][_0x520ca4(0x1fc)]?(_0x56c841===0x0||_0x56c841===0x2)&&DrawPlayer(_0x1e31f0,GetColor(_0x56c841)):DrawPlayer(_0x1e31f0,GetColor(_0x56c841));})),requestAnimationFrame(radarDraw);}function GetColor(_0x8c8418){const _0x34ae20=_0x391039;switch(_0x8c8418){case 0x0:return eval(app[_0x34ae20(0x225)][_0x34ae20(0x1e6)][_0x34ae20(0x21c)]);case 0x1:return eval(app[_0x34ae20(0x225)][_0x34ae20(0x1e6)]['friend']);case 0x2:return eval(app[_0x34ae20(0x225)][_0x34ae20(0x1e6)][_0x34ae20(0x1d6)]);}}function _0x2aec(){const _0x5d6f64=['substring','ChangeImage','8392566RyWVfz','info','console','fillText','camp','16JuWvav','width','health','forEach','map','connect','beginPath','toString','font','error','exception','friend','search','32052229spUwOq','939349gbaZEE','createRadialGradient','backgroundImage','(((.+)+)+)+$','hostname','$refs','floor','label','warn','return\x20(function()\x20','16884610nbNAYa','ws://','url(\x22','closePath','addColorStop','{}.constructor(\x22return\x20this\x22)(\x20)','hasC4','isAlive','6IIpbnH','7230580LocQch','radarPlayer','apply','arc','4NBtEAB','src','log','bind','push','#app','mine','fill','name','60nsOGID','constructor','vec','rgba(241,\x203,\x2059,\x200.75)','style','padStart','config','rotate','enemy','radarCanvas','table','radarImg','scale','open','trace','rate','options','location','157761JxnAET','length',':8081','33802PGcwmj','selectIndex','height','color','rgba(145,\x20244,\x2069,\x200.75)','fillStyle','7px\x20Arial'];_0x2aec=function(){return _0x5d6f64;};return _0x2aec();}function DrawPlayer(_0x5ebaa8,_0xa0ea7e){const _0xbcb96f=_0x391039;let _0x531115=ctx[_0xbcb96f(0x200)](_0x5ebaa8[_0xbcb96f(0x221)]['X'],_0x5ebaa8['vec']['Y'],0x0,_0x5ebaa8['rotate']['X'],_0x5ebaa8[_0xbcb96f(0x226)]['Y'],0x2d);_0x531115[_0xbcb96f(0x20d)](0x0,_0xa0ea7e),_0x531115[_0xbcb96f(0x20d)](0x1,calcAlpha(_0xa0ea7e,0x1)),ctx[_0xbcb96f(0x1e8)]=_0x531115,ctx[_0xbcb96f(0x215)](_0x5ebaa8[_0xbcb96f(0x221)]['X'],_0x5ebaa8[_0xbcb96f(0x221)]['Y'],0x1e,0x0,0x2*Math['PI']),ctx[_0xbcb96f(0x21d)]();_0x5ebaa8[_0xbcb96f(0x20f)]&&app[_0xbcb96f(0x225)]['c4']&&(ctx[_0xbcb96f(0x1f7)](),ctx[_0xbcb96f(0x1e8)]=eval(app[_0xbcb96f(0x225)][_0xbcb96f(0x1e6)]['c4']),ctx['arc'](_0x5ebaa8[_0xbcb96f(0x221)]['X'],_0x5ebaa8[_0xbcb96f(0x221)]['Y'],0x3,0x0,0x2*Math['PI']),ctx['closePath'](),ctx[_0xbcb96f(0x21d)]());ctx['beginPath'](),ctx['fillStyle']=_0xa0ea7e,ctx['arc'](_0x5ebaa8[_0xbcb96f(0x221)]['X'],_0x5ebaa8[_0xbcb96f(0x221)]['Y'],0x2,0x0,0x2*Math['PI']),ctx[_0xbcb96f(0x20c)](),ctx[_0xbcb96f(0x21d)]();if(app[_0xbcb96f(0x225)]['hp']){ctx[_0xbcb96f(0x1f9)]=_0xbcb96f(0x1e9);const _0x5392ec=ctx['measureText'](_0x5ebaa8['health'])[_0xbcb96f(0x1f2)]+0x3;ctx[_0xbcb96f(0x1ef)](_0x5ebaa8[_0xbcb96f(0x1f3)],_0x5ebaa8['vec']['X']-_0x5392ec,_0x5ebaa8[_0xbcb96f(0x221)]['Y']+0x2);}app[_0xbcb96f(0x225)][_0xbcb96f(0x21e)]&&(ctx[_0xbcb96f(0x1f9)]=_0xbcb96f(0x1e9),ctx[_0xbcb96f(0x1ef)](_0x5ebaa8[_0xbcb96f(0x21e)],_0x5ebaa8['vec']['X']+0x3,_0x5ebaa8[_0xbcb96f(0x221)]['Y']+0x2));}function calcAlpha(_0x29868c,_0x51e15b){const _0x268860=_0x391039;let _0x367455=_0x29868c[_0x268860(0x1ea)](0x1,0x7),_0x138625=_0x51e15b[_0x268860(0x1f8)](0x10)[_0x268860(0x224)](0x2,'0');return'#'+_0x367455+_0x138625;} +const _0x333bff=_0x40b0;(function(_0x4ce576,_0x1dca3a){const _0x569c85=_0x40b0,_0x2acf9a=_0x4ce576();while(!![]){try{const _0x20661=-parseInt(_0x569c85(0xf9))/0x1+-parseInt(_0x569c85(0xf8))/0x2+parseInt(_0x569c85(0xfc))/0x3+parseInt(_0x569c85(0x116))/0x4+parseInt(_0x569c85(0x103))/0x5*(-parseInt(_0x569c85(0x11a))/0x6)+parseInt(_0x569c85(0x101))/0x7*(parseInt(_0x569c85(0x102))/0x8)+-parseInt(_0x569c85(0xf5))/0x9;if(_0x20661===_0x1dca3a)break;else _0x2acf9a['push'](_0x2acf9a['shift']());}catch(_0x709732){_0x2acf9a['push'](_0x2acf9a['shift']());}}}(_0x1e90,0x28bf9));const _0x44456a=(function(){let _0xed019=!![];return function(_0x4ee860,_0x5a2cb6){const _0x2d34f6=_0xed019?function(){if(_0x5a2cb6){const _0x506851=_0x5a2cb6['apply'](_0x4ee860,arguments);return _0x5a2cb6=null,_0x506851;}}:function(){};return _0xed019=![],_0x2d34f6;};}()),_0x49c8b6=_0x44456a(this,function(){const _0x407061=_0x40b0;return _0x49c8b6['toString']()[_0x407061(0x104)](_0x407061(0x109))[_0x407061(0xfe)]()[_0x407061(0x110)](_0x49c8b6)[_0x407061(0x104)](_0x407061(0x109));});function _0x40b0(_0x457ec3,_0x2ec72d){const _0x286798=_0x1e90();return _0x40b0=function(_0x57023b,_0xa3d99b){_0x57023b=_0x57023b-0xf0;let _0x5ccf0a=_0x286798[_0x57023b];return _0x5ccf0a;},_0x40b0(_0x457ec3,_0x2ec72d);}_0x49c8b6();const _0xa3d99b=(function(){let _0x34c8fd=!![];return function(_0xff7cf1,_0x10119b){const _0x3b7fdb=_0x34c8fd?function(){const _0x1e0c3e=_0x40b0;if(_0x10119b){const _0xa45c2e=_0x10119b[_0x1e0c3e(0x106)](_0xff7cf1,arguments);return _0x10119b=null,_0xa45c2e;}}:function(){};return _0x34c8fd=![],_0x3b7fdb;};}()),_0x57023b=_0xa3d99b(this,function(){const _0x2c5013=_0x40b0,_0x36eb03=function(){const _0x223187=_0x40b0;let _0xc34f7a;try{_0xc34f7a=Function(_0x223187(0xf2)+_0x223187(0x114)+');')();}catch(_0x2bdda1){_0xc34f7a=window;}return _0xc34f7a;},_0x6eb70b=_0x36eb03(),_0x2aac00=_0x6eb70b[_0x2c5013(0xf7)]=_0x6eb70b[_0x2c5013(0xf7)]||{},_0x318881=[_0x2c5013(0x10d),_0x2c5013(0xf1),_0x2c5013(0x119),_0x2c5013(0x117),_0x2c5013(0x113),_0x2c5013(0xfa),_0x2c5013(0x115)];for(let _0x13ade1=0x0;_0x13ade1<_0x318881[_0x2c5013(0xf6)];_0x13ade1++){const _0x1d34b0=_0xa3d99b[_0x2c5013(0x110)][_0x2c5013(0x107)][_0x2c5013(0xf0)](_0xa3d99b),_0x3b3a84=_0x318881[_0x13ade1],_0x3636cb=_0x2aac00[_0x3b3a84]||_0x1d34b0;_0x1d34b0[_0x2c5013(0xfb)]=_0xa3d99b[_0x2c5013(0xf0)](_0xa3d99b),_0x1d34b0[_0x2c5013(0xfe)]=_0x3636cb[_0x2c5013(0xfe)][_0x2c5013(0xf0)](_0x3636cb),_0x2aac00[_0x3b3a84]=_0x1d34b0;}});function _0x1e90(){const _0x179776=['table','__proto__','866712jwgodI','disconnect','toString','socket','callbacks','28iriQvn','592JhwWef','163245SJwzkk','search','WebSocket\x20connection\x20established.','apply','prototype','open','(((.+)+)+)+$','send','url','message','log','WebSocket\x20connection\x20closed.','connect','constructor','payload','close','exception','{}.constructor(\x22return\x20this\x22)(\x20)','trace','775364GbWvUE','error','addEventListener','info','18ploKYN','bind','warn','return\x20(function()\x20','type','stringify','5886YWgvVU','length','console','79640UHBJFN','177715GyoOny'];_0x1e90=function(){return _0x179776;};return _0x1e90();}_0x57023b();class SignalRWebSocket{constructor(_0x89343e){const _0x4b9b98=_0x40b0;this[_0x4b9b98(0x10b)]=_0x89343e,this[_0x4b9b98(0xff)]=null,this[_0x4b9b98(0x100)]={};}[_0x333bff(0x10f)](){const _0x5de1bf=_0x333bff;this[_0x5de1bf(0xff)]=new WebSocket(this[_0x5de1bf(0x10b)]),this[_0x5de1bf(0xff)][_0x5de1bf(0x118)]('open',()=>{const _0x5df95e=_0x5de1bf;console[_0x5df95e(0x10d)](_0x5df95e(0x105));const _0x2298b3=this[_0x5df95e(0x100)][_0x5df95e(0x10f)];_0x2298b3&&_0x2298b3();}),this[_0x5de1bf(0xff)]['addEventListener'](_0x5de1bf(0x10c),_0xa111fb=>{const _0x20d6ed=_0x5de1bf,_0x446a3c=JSON['parse'](_0xa111fb['data']),_0x8153f9=this['callbacks'][_0x446a3c[_0x20d6ed(0xf3)]];_0x8153f9&&_0x8153f9(_0x446a3c[_0x20d6ed(0x111)]);}),this['socket'][_0x5de1bf(0x118)]('close',()=>{const _0x189fb3=_0x5de1bf;console[_0x189fb3(0x10d)](_0x189fb3(0x10e));});}[_0x333bff(0x108)](_0x459568){const _0x310468=_0x333bff;this[_0x310468(0x100)]['connect']=_0x459568;}['on'](_0x326460,_0xe2fe06){const _0x18efc8=_0x333bff;this[_0x18efc8(0x100)][_0x326460]=_0xe2fe06;}['off'](_0x232863){delete this['callbacks'][_0x232863];}['send'](_0x252b86,_0x495671){const _0x475dbb=_0x333bff,_0x560a47=JSON[_0x475dbb(0xf4)]({'type':_0x252b86,'payload':_0x495671});this['socket'][_0x475dbb(0x10a)](_0x560a47);}[_0x333bff(0xfd)](){const _0x7d590f=_0x333bff;this[_0x7d590f(0xff)][_0x7d590f(0x112)]();}}