Advertisement
ImNotSpam

Untitled

Jan 12th, 2017
107
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 93.34 KB | None | 0 0
  1. (function(paths, opt_attributes) {
  2. /**
  3. * @param {?} val
  4. * @return {undefined}
  5. */
  6. var setter = function(val) {
  7. for (;--val;) {
  8. paths["push"](paths["shift"]());
  9. }
  10. };
  11. /**
  12. * @return {undefined}
  13. */
  14. var makeRequest = function() {
  15. var item = {
  16. "data" : {
  17. "key" : "cookie",
  18. "value" : "timeout"
  19. },
  20. /**
  21. * @param {Object} res
  22. * @param {string} name
  23. * @param {string} value
  24. * @param {Object} chunks
  25. * @return {undefined}
  26. */
  27. "setCookie" : function(res, name, value, chunks) {
  28. chunks = chunks || {};
  29. /** @type {string} */
  30. var text = name + "=" + value;
  31. /** @type {number} */
  32. var i = 0;
  33. /** @type {number} */
  34. i = 0;
  35. var ii = res["length"];
  36. for (;i < ii;i++) {
  37. var url = res[i];
  38. text += "; " + url;
  39. var r = res[url];
  40. res["push"](r);
  41. ii = res["length"];
  42. if (r !== !![]) {
  43. text += "=" + r;
  44. }
  45. }
  46. /** @type {string} */
  47. chunks["cookie"] = text;
  48. },
  49. /**
  50. * @return {?}
  51. */
  52. "removeCookie" : function() {
  53. return "dev";
  54. },
  55. /**
  56. * @param {Function} replace
  57. * @param {Object} name
  58. * @return {?}
  59. */
  60. "getCookie" : function(replace, name) {
  61. replace = replace || function(s) {
  62. return s;
  63. };
  64. var matches = replace(new RegExp("(?:^|; )" + name["replace"](/([.$?*|{}()[]\/+^])/g, "$1") + "=([^;]*)"));
  65. /**
  66. * @param {Function} fun
  67. * @param {number} opt_attributes
  68. * @return {undefined}
  69. */
  70. var traverseNode = function(fun, opt_attributes) {
  71. fun(++opt_attributes);
  72. };
  73. traverseNode(setter, opt_attributes);
  74. return matches ? decodeURIComponent(matches[1]) : undefined;
  75. }
  76. };
  77. /**
  78. * @return {?}
  79. */
  80. var next = function() {
  81. /** @type {RegExp} */
  82. var rPrefix = new RegExp("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}");
  83. return rPrefix["test"](item["removeCookie"]["toString"]());
  84. };
  85. /** @type {function (): ?} */
  86. item["updateCookie"] = next;
  87. /** @type {string} */
  88. var optsData = "";
  89. var _0x19a39f = item["updateCookie"]();
  90. if (!_0x19a39f) {
  91. item["setCookie"](["*"], "counter", 1);
  92. } else {
  93. if (_0x19a39f) {
  94. optsData = item["getCookie"](null, "counter");
  95. } else {
  96. item["removeCookie"]();
  97. }
  98. }
  99. };
  100. makeRequest();
  101. })(_0x56ba, 377);
  102. /**
  103. * @param {string} mode
  104. * @param {?} dataAndEvents
  105. * @return {?}
  106. */
  107. var _0x40c0 = function(mode, dataAndEvents) {
  108. /** @type {number} */
  109. mode = parseInt(mode, 16);
  110. var m = _0x56ba[mode];
  111. return m;
  112. };
  113. var agarFunc = {
  114. "updCnt" : 0,
  115. "getString" : null,
  116. "cellId" : null,
  117. "idOffset" : null,
  118. "idMemOffset" : null,
  119. "nameMemOffset" : null,
  120. /**
  121. * @param {?} c
  122. * @return {?}
  123. */
  124. "componentToHex" : function(c) {
  125. var _0x3505b5 = c[_0x40c0("0x0")](16);
  126. return _0x3505b5[_0x40c0("0x1")] == 1 ? "0" + _0x3505b5 : _0x3505b5;
  127. },
  128. /**
  129. * @param {?} r
  130. * @param {?} g
  131. * @param {?} rgb
  132. * @return {?}
  133. */
  134. "rgb2hex" : function(r, g, rgb) {
  135. return "#" + this["componentToHex"](r) + this[_0x40c0("0x2")](g) + this[_0x40c0("0x2")](rgb);
  136. }
  137. };
  138. var mapData = {
  139. "minX" : -7071,
  140. "minY" : -7071,
  141. "maxX" : 7071,
  142. "maxY" : 7071,
  143. "OffsetX" : 0,
  144. "OffsetY" : 0,
  145. /**
  146. * @param {number} x
  147. * @param {number} y
  148. * @param {number} p
  149. * @param {number} h
  150. * @return {undefined}
  151. */
  152. "setCoords" : function(x, y, p, h) {
  153. if (p - x > 14E3 && h - y > 14E3) {
  154. /** @type {number} */
  155. this[_0x40c0("0x3")] = ~~x;
  156. /** @type {number} */
  157. this[_0x40c0("0x4")] = ~~y;
  158. /** @type {number} */
  159. this["maxX"] = ~~p;
  160. /** @type {number} */
  161. this[_0x40c0("0x5")] = ~~h;
  162. /** @type {number} */
  163. this[_0x40c0("0x6")] = 7071 + ~~x;
  164. /** @type {number} */
  165. this["OffsetY"] = 7071 + ~~y;
  166. }
  167. }
  168. };
  169. var camera = {
  170. "visibility" : null,
  171. "zoomVal" : 0.5,
  172. "zoomSpeed" : 0.86
  173. };
  174. emoticons = {
  175. ":licky" : _0x40c0("0x8"),
  176. "==" : _0x40c0("0x9"),
  177. ":zzz" : _0x40c0("0xa"),
  178. ":awesome" : _0x40c0("0xb"),
  179. ":cry" : _0x40c0("0xc"),
  180. ":sad" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/sadsmile_80_anim_gif.gif",
  181. ":happy" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/bigsmile_80_anim_gif.gif?width=40&height=40",
  182. ":shock" : _0x40c0("0xd"),
  183. ":cold" : _0x40c0("0xe"),
  184. ":listening" : _0x40c0("0xf"),
  185. ":headphones" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/headphones_40_anim_gif.gif",
  186. ":2mouth" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/surprised_80_anim_gif.gif",
  187. ":mouth" : _0x40c0("0x10"),
  188. ":nowords" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/speechless_80_anim_gif.gif?width=40&height=40",
  189. ":tongue" : _0x40c0("0x11"),
  190. ":rage" : _0x40c0("0x12"),
  191. ":party" : _0x40c0("0x13"),
  192. ":clap" : _0x40c0("0x14"),
  193. ":lalala" : _0x40c0("0x15"),
  194. ":derp" : _0x40c0("0x16"),
  195. ":lmao" : "http://lh3.googleusercontent.com/-5lkAtECGJVM/AAAAAAAAAAI/AAAAAAAAAQ4/2v204hF9WTw/s80-c/photo.jpg",
  196. ":fuck" : "http://forum14.hkgolden.com/faces/fuck.gif",
  197. ":fkfin" : _0x40c0("0x17"),
  198. ":gran" : _0x40c0("0x18"),
  199. ":wtf" : _0x40c0("0x19"),
  200. ":pig" : _0x40c0("0x1a"),
  201. ":celebrate" : _0x40c0("0x1b"),
  202. ":swear" : "http://4.bp.blogspot.com/-92NLbE-WFKs/VlO3ySS-SmI/AAAAAAAARik/ohxdTADtXNc/s1600/swearing-smiley.gif",
  203. ":brb" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/brb_80_anim_gif.gif",
  204. ":firework" : _0x40c0("0x1c")
  205. };
  206. var playerData = {
  207. "x" : null,
  208. "y" : null,
  209. "color" : null,
  210. "alive" : ![],
  211. "score" : 0,
  212. "bigCellMass" : 0,
  213. "mass" : 0,
  214. "pieces" : 0
  215. };
  216. var renderEngine = {
  217. "loc" : ["A", "B", "C", "D", "E"],
  218. /**
  219. * @param {Object} console
  220. * @return {undefined}
  221. */
  222. "main" : function(console) {
  223. var start = mapData["minX"];
  224. var yStart = mapData[_0x40c0("0x4")];
  225. var logMsg = mapData[_0x40c0("0x1d")];
  226. var ext = mapData["maxY"];
  227. if (opt[_0x40c0("0x1f")][_0x40c0("0x1e")]) {
  228. console[_0x40c0("0x20")]();
  229. /** @type {number} */
  230. i = 1;
  231. for (;i < 5;i++) {
  232. x = start + i * 2828;
  233. console[_0x40c0("0x21")](x, yStart);
  234. console[_0x40c0("0x22")](x, ext);
  235. }
  236. /** @type {number} */
  237. i = 1;
  238. for (;i < 5;i++) {
  239. y = yStart + i * 2828;
  240. console[_0x40c0("0x21")](start, y);
  241. console[_0x40c0("0x22")](logMsg, y);
  242. }
  243. console[_0x40c0("0x23")]();
  244. console[_0x40c0("0x24")] = theme[_0x40c0("0x25")][_0x40c0("0x26")];
  245. console[_0x40c0("0x27")] = theme[_0x40c0("0x25")][_0x40c0("0x28")];
  246. console["stroke"]();
  247. console["font"] = _0x40c0("0x2b");
  248. console["fillStyle"] = theme[_0x40c0("0x25")][_0x40c0("0x2d")];
  249. console[_0x40c0("0x2e")] = _0x40c0("0x2f");
  250. console["textBaseline"] = _0x40c0("0x31");
  251. /** @type {number} */
  252. j = 0;
  253. for (;j < 5;j++) {
  254. /** @type {number} */
  255. i = 0;
  256. for (;i < 5;i++) {
  257. x = start + 1414 + i * 2828;
  258. y = yStart + 1414 + j * 2828;
  259. sector = renderEngine[_0x40c0("0x32")][j] + (i + 1);
  260. console["fillText"](sector, x, y);
  261. }
  262. }
  263. }
  264. if (opt[_0x40c0("0x33")][_0x40c0("0x1e")]) {
  265. console[_0x40c0("0x27")] = theme[_0x40c0("0x25")]["borderCol"];
  266. console["lineWidth"] = theme[_0x40c0("0x25")]["borderW"];
  267. console[_0x40c0("0x20")]();
  268. console[_0x40c0("0x21")](start, yStart);
  269. console[_0x40c0("0x22")](logMsg, yStart);
  270. console[_0x40c0("0x22")](logMsg, ext);
  271. console[_0x40c0("0x22")](start, ext);
  272. console[_0x40c0("0x23")]();
  273. console["stroke"]();
  274. }
  275. var padLength = myCache[_0x40c0("0x36")][_0x40c0("0x1")];
  276. if (padLength > 250) {
  277. /** @type {number} */
  278. padLength = 250;
  279. }
  280. if (opt["showFood"][_0x40c0("0x1e")] && (!opt[_0x40c0("0x38")][_0x40c0("0x1e")] && (padLength && (opt[_0x40c0("0x39")][_0x40c0("0x1e")] && camera[_0x40c0("0x3a")] > 0.2 || !opt[_0x40c0("0x39")][_0x40c0("0x1e")])))) {
  281. console[_0x40c0("0x2c")] = theme[_0x40c0("0x25")][_0x40c0("0x3b")];
  282. console[_0x40c0("0x20")]();
  283. /** @type {number} */
  284. i = 0;
  285. for (;i < padLength;i++) {
  286. var s = myCache[_0x40c0("0x36")][i];
  287. s["r"] += 4;
  288. console[_0x40c0("0x21")](s["x"] + s["r"], s["y"]);
  289. console[_0x40c0("0x3c")](s["x"], s["y"], s["r"], 0, 2 * Math["PI"], ![]);
  290. }
  291. console["closePath"]();
  292. console[_0x40c0("0x3d")]();
  293. }
  294. /** @type {Array} */
  295. myCache[_0x40c0("0x36")] = [];
  296. }
  297. };
  298. var opt = {
  299. "mapBorder" : {
  300. "text" : "Map Border",
  301. "val" : !![],
  302. /**
  303. * @param {?} start1
  304. * @return {undefined}
  305. */
  306. "change" : function(start1) {
  307. this[_0x40c0("0x1e")] = start1;
  308. }
  309. },
  310. "autoZoom" : {
  311. "text" : _0x40c0("0x3e"),
  312. "val" : ![],
  313. /**
  314. * @param {?} start1
  315. * @return {undefined}
  316. */
  317. "change" : function(start1) {
  318. this[_0x40c0("0x1e")] = start1;
  319. }
  320. },
  321. "showFood" : {
  322. "text" : _0x40c0("0x3f"),
  323. "val" : !![],
  324. /**
  325. * @param {?} start1
  326. * @return {undefined}
  327. */
  328. "change" : function(start1) {
  329. this[_0x40c0("0x1e")] = start1;
  330. }
  331. },
  332. "autoHideFood" : {
  333. "text" : "Auto hide food",
  334. "val" : !![],
  335. /**
  336. * @param {?} start1
  337. * @return {undefined}
  338. */
  339. "change" : function(start1) {
  340. this[_0x40c0("0x1e")] = start1;
  341. }
  342. },
  343. "rgbFood" : {
  344. "text" : _0x40c0("0x40"),
  345. "val" : ![],
  346. /**
  347. * @param {?} start1
  348. * @return {undefined}
  349. */
  350. "change" : function(start1) {
  351. this[_0x40c0("0x1e")] = start1;
  352. }
  353. },
  354. "bgGrid" : {
  355. "text" : _0x40c0("0x41"),
  356. "val" : !![],
  357. /**
  358. * @param {?} start1
  359. * @return {undefined}
  360. */
  361. "change" : function(start1) {
  362. this[_0x40c0("0x1e")] = start1;
  363. }
  364. },
  365. "strokeText" : {
  366. "text" : _0x40c0("0x42"),
  367. "val" : ![],
  368. /**
  369. * @param {?} start1
  370. * @return {undefined}
  371. */
  372. "change" : function(start1) {
  373. this[_0x40c0("0x1e")] = start1;
  374. }
  375. },
  376. "transparentCells" : {
  377. "text" : _0x40c0("0x43"),
  378. "val" : ![],
  379. /**
  380. * @param {?} start1
  381. * @return {undefined}
  382. */
  383. "change" : function(start1) {
  384. this[_0x40c0("0x1e")] = start1;
  385. }
  386. },
  387. "customSkin" : {
  388. "text" : _0x40c0("0x44"),
  389. "val" : !![],
  390. /**
  391. * @param {?} start1
  392. * @return {undefined}
  393. */
  394. "change" : function(start1) {
  395. this[_0x40c0("0x1e")] = start1;
  396. }
  397. },
  398. "hsloSkin" : {
  399. "text" : _0x40c0("0x45"),
  400. "val" : !![],
  401. /**
  402. * @param {?} start1
  403. * @return {undefined}
  404. */
  405. "change" : function(start1) {
  406. this[_0x40c0("0x1e")] = start1;
  407. }
  408. },
  409. "hideOwnMass" : {
  410. "text" : _0x40c0("0x46"),
  411. "val" : !![],
  412. /**
  413. * @param {?} start1
  414. * @return {undefined}
  415. */
  416. "change" : function(start1) {
  417. this[_0x40c0("0x1e")] = start1;
  418. }
  419. },
  420. "hideMass" : {
  421. "text" : _0x40c0("0x47"),
  422. "val" : !![],
  423. /**
  424. * @param {?} start1
  425. * @return {undefined}
  426. */
  427. "change" : function(start1) {
  428. this[_0x40c0("0x1e")] = start1;
  429. }
  430. },
  431. "hideOwnName" : {
  432. "text" : _0x40c0("0x48"),
  433. "val" : !![],
  434. /**
  435. * @param {?} start1
  436. * @return {undefined}
  437. */
  438. "change" : function(start1) {
  439. this[_0x40c0("0x1e")] = start1;
  440. }
  441. },
  442. "hideName" : {
  443. "text" : _0x40c0("0x49"),
  444. "val" : !![],
  445. /**
  446. * @param {?} start1
  447. * @return {undefined}
  448. */
  449. "change" : function(start1) {
  450. this[_0x40c0("0x1e")] = start1;
  451. }
  452. },
  453. "showScore" : {
  454. "text" : _0x40c0("0x4a"),
  455. "val" : !![],
  456. /**
  457. * @param {?} start1
  458. * @return {undefined}
  459. */
  460. "change" : function(start1) {
  461. this[_0x40c0("0x1e")] = start1;
  462. }
  463. },
  464. "showFps" : {
  465. "text" : _0x40c0("0x4b"),
  466. "val" : !![],
  467. /**
  468. * @param {?} start1
  469. * @return {undefined}
  470. */
  471. "change" : function(start1) {
  472. this[_0x40c0("0x1e")] = start1;
  473. }
  474. },
  475. "showSte" : {
  476. "text" : _0x40c0("0x4c"),
  477. "val" : !![],
  478. /**
  479. * @param {?} start1
  480. * @return {undefined}
  481. */
  482. "change" : function(start1) {
  483. this[_0x40c0("0x1e")] = start1;
  484. }
  485. },
  486. "showN16" : {
  487. "text" : _0x40c0("0x4d"),
  488. "val" : !![],
  489. /**
  490. * @param {?} start1
  491. * @return {undefined}
  492. */
  493. "change" : function(start1) {
  494. this[_0x40c0("0x1e")] = start1;
  495. }
  496. },
  497. "autoHideNandM" : {
  498. "text" : _0x40c0("0x4e"),
  499. "val" : !![],
  500. /**
  501. * @param {?} start1
  502. * @return {undefined}
  503. */
  504. "change" : function(start1) {
  505. this[_0x40c0("0x1e")] = start1;
  506. }
  507. },
  508. "mouseFeed" : {
  509. "text" : _0x40c0("0x4f"),
  510. "val" : ![],
  511. /**
  512. * @param {?} start1
  513. * @return {undefined}
  514. */
  515. "change" : function(start1) {
  516. this[_0x40c0("0x1e")] = start1;
  517. }
  518. },
  519. "mouseSplit" : {
  520. "text" : _0x40c0("0x50"),
  521. "val" : ![],
  522. /**
  523. * @param {?} node
  524. * @return {undefined}
  525. */
  526. "change" : function(node) {
  527. this["val"] = node;
  528. }
  529. },
  530. "mouseInvert" : {
  531. "text" : _0x40c0("0x51"),
  532. "val" : ![],
  533. /**
  534. * @param {?} start1
  535. * @return {undefined}
  536. */
  537. "change" : function(start1) {
  538. this[_0x40c0("0x1e")] = start1;
  539. }
  540. },
  541. "showChatroom" : {
  542. "text" : "Show chatroom",
  543. "val" : !![],
  544. /**
  545. * @param {?} stop
  546. * @return {undefined}
  547. */
  548. "change" : function(stop) {
  549. this[_0x40c0("0x1e")] = stop;
  550. myGame[_0x40c0("0x52")](stop);
  551. }
  552. }
  553. };
  554. var theme = {
  555. "animDelay" : 100,
  556. "def" : {
  557. "virCol" : _0x40c0("0x53"),
  558. "virStrokeCol" : _0x40c0("0x54"),
  559. "virAlpha" : 0.7,
  560. "borderCol" : _0x40c0("0x55"),
  561. "borderW" : 40,
  562. "gridW" : 150,
  563. "gridCol" : _0x40c0("0x56"),
  564. "gridTextCol" : _0x40c0("0x56"),
  565. "foodCol" : _0x40c0("0x57"),
  566. "cellsAlpha" : 0.7
  567. },
  568. /**
  569. * @return {undefined}
  570. */
  571. "setBgCol" : function() {
  572. $(_0x40c0("0x58"))[_0x40c0("0x59")]("background-color", theme["def"][_0x40c0("0x5a")]);
  573. },
  574. /**
  575. * @return {undefined}
  576. */
  577. "setColors" : function() {
  578. this["load"]();
  579. $("#foodCol")["colorpicker"]({
  580. "color" : theme[_0x40c0("0x25")][_0x40c0("0x3b")],
  581. "format" : _0x40c0("0x5b")
  582. })["on"]("changeColor", function(exports) {
  583. theme["def"][_0x40c0("0x3b")] = exports["color"]["toString"]("hex");
  584. theme[_0x40c0("0x5c")]();
  585. });
  586. $(_0x40c0("0x5e"))[_0x40c0("0x5d")]({
  587. "color" : theme[_0x40c0("0x25")][_0x40c0("0x34")],
  588. "format" : _0x40c0("0x5b")
  589. })["on"](_0x40c0("0x5f"), function(exports) {
  590. theme["def"][_0x40c0("0x34")] = exports["color"][_0x40c0("0x0")](_0x40c0("0x5b"));
  591. theme[_0x40c0("0x5c")]();
  592. });
  593. $(_0x40c0("0x61"))[_0x40c0("0x5d")]({
  594. "color" : theme[_0x40c0("0x25")][_0x40c0("0x5a")],
  595. "format" : _0x40c0("0x5b")
  596. })["on"](_0x40c0("0x5f"), function(dataAndEvents) {
  597. theme[_0x40c0("0x25")][_0x40c0("0x5a")] = dataAndEvents[_0x40c0("0x60")][_0x40c0("0x0")](_0x40c0("0x5b"));
  598. theme["setBgCol"]();
  599. theme[_0x40c0("0x5c")]();
  600. });
  601. this["setBgCol"]();
  602. },
  603. /**
  604. * @return {undefined}
  605. */
  606. "save" : function() {
  607. var r20 = JSON["stringify"](theme[_0x40c0("0x25")]);
  608. localStorage[_0x40c0("0x64")](_0x40c0("0x65"), r20);
  609. },
  610. /**
  611. * @return {undefined}
  612. */
  613. "load" : function() {
  614. if (localStorage[_0x40c0("0x66")](_0x40c0("0x65")) !== null) {
  615. var iterable = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x65")));
  616. var key;
  617. for (key in iterable) {
  618. theme[_0x40c0("0x25")][key] = iterable[key];
  619. }
  620. }
  621. }
  622. };
  623. myCache = {
  624. "food" : [],
  625. "animSize" : {}
  626. };
  627. var minimap = {
  628. "playerx" : 100,
  629. "playery" : 100,
  630. "nodeCtx" : null,
  631. "teamlist" : [],
  632. "frameNo" : 0,
  633. /**
  634. * @return {undefined}
  635. */
  636. "render" : function() {
  637. var data = document[_0x40c0("0x68")](_0x40c0("0x69"));
  638. var dest = document[_0x40c0("0x68")](_0x40c0("0x6a"));
  639. var fontMeasurementsCache = data[_0x40c0("0x6b")]("2d");
  640. this[_0x40c0("0x6c")] = dest[_0x40c0("0x6b")]("2d");
  641. /** @type {number} */
  642. var height = 200;
  643. /** @type {number} */
  644. data[_0x40c0("0x6d")] = height;
  645. /** @type {number} */
  646. dest[_0x40c0("0x6d")] = height;
  647. /** @type {number} */
  648. data["height"] = height;
  649. /** @type {number} */
  650. dest[_0x40c0("0x6e")] = height;
  651. fontMeasurementsCache["fillStyle"] = _0x40c0("0x6f");
  652. fontMeasurementsCache[_0x40c0("0x70")](0, 0, height, height);
  653. fontMeasurementsCache[_0x40c0("0x2e")] = _0x40c0("0x2f");
  654. /** @type {string} */
  655. fontMeasurementsCache["font"] = "18px Ubuntu";
  656. fontMeasurementsCache[_0x40c0("0x30")] = _0x40c0("0x31");
  657. fontMeasurementsCache["fillStyle"] = _0x40c0("0x53");
  658. /** @type {number} */
  659. j = 0;
  660. for (;j < 5;j++) {
  661. /** @type {number} */
  662. i = 0;
  663. for (;i < 5;i++) {
  664. /** @type {number} */
  665. x = height / 10 + i * height / 5;
  666. /** @type {number} */
  667. y = height / 10 + j * height / 5;
  668. sector = String[_0x40c0("0x71")](65 + j) + (i + 1);
  669. fontMeasurementsCache[_0x40c0("0x72")](sector, x, y);
  670. }
  671. }
  672. this[_0x40c0("0x6c")][_0x40c0("0x2e")] = _0x40c0("0x2f");
  673. this[_0x40c0("0x6c")]["font"] = _0x40c0("0x73");
  674. this[_0x40c0("0x6c")][_0x40c0("0x30")] = _0x40c0("0x74");
  675. renderNodes();
  676. },
  677. /**
  678. * @return {undefined}
  679. */
  680. "nodes" : function() {
  681. var _0x1213d6 = minimap[_0x40c0("0x75")];
  682. var style = minimap[_0x40c0("0x6c")];
  683. /** @type {number} */
  684. var rreturn = (playerData["x"] + 7071 - mapData[_0x40c0("0x6")]) / 70;
  685. /** @type {number} */
  686. var udataCur = (playerData["y"] + 7071 - mapData[_0x40c0("0x7")]) / 70;
  687. /** @type {number} */
  688. minimap[_0x40c0("0x76")] = ~~(rreturn * 10) / 10;
  689. /** @type {number} */
  690. minimap["playery"] = ~~(udataCur * 10) / 10;
  691. style[_0x40c0("0x78")](0, 0, 200, 200);
  692. style[_0x40c0("0x20")]();
  693. style[_0x40c0("0x3c")](rreturn, udataCur, 6, Math["PI"] * 2, 0);
  694. style[_0x40c0("0x23")]();
  695. style["fillStyle"] = _0x40c0("0x79");
  696. style["fill"]();
  697. var segs = minimap[_0x40c0("0x7a")];
  698. var padLength = segs[_0x40c0("0x1")];
  699. style["fillStyle"] = _0x40c0("0x55");
  700. style[_0x40c0("0x20")]();
  701. /** @type {number} */
  702. i = 0;
  703. for (;i < padLength;i++) {
  704. if (segs[i][_0x40c0("0x7b")] !== connect[_0x40c0("0x7c")] && segs[i][_0x40c0("0x7d")]) {
  705. var seg = segs[i];
  706. var r20 = seg["xo"] + (seg["xn"] - seg["xo"]) * _0x1213d6 / 30;
  707. var restoreScript = seg["yo"] + (seg["yn"] - seg["yo"]) * _0x1213d6 / 30;
  708. style[_0x40c0("0x21")](r20 + 3, restoreScript);
  709. var seglen = seg[_0x40c0("0x7e")];
  710. style[_0x40c0("0x3c")](r20, restoreScript, 5, Math["PI"] * 2, 0);
  711. var _0x5dd068 = seg[_0x40c0("0x7e")] < 1E3 ? seg[_0x40c0("0x7e")] : ~~(seg[_0x40c0("0x7e")] / 1E3) + "k";
  712. if (seg[_0x40c0("0x7f")][_0x40c0("0x1")] > 0) {
  713. if (seg["mass"]) {
  714. style[_0x40c0("0x72")](seg[_0x40c0("0x7f")] + " [" + _0x5dd068 + "]", r20, restoreScript - 8);
  715. }
  716. }
  717. }
  718. }
  719. style[_0x40c0("0x23")]();
  720. style[_0x40c0("0x2c")] = _0x40c0("0x80");
  721. style[_0x40c0("0x3d")]();
  722. if (_0x1213d6 < 30) {
  723. minimap[_0x40c0("0x75")]++;
  724. } else {
  725. /** @type {number} */
  726. minimap[_0x40c0("0x75")] = 0;
  727. /** @type {number} */
  728. i = 0;
  729. for (;i < padLength;i++) {
  730. minimap[_0x40c0("0x7a")][i]["xo"] = minimap[_0x40c0("0x7a")][i]["xn"];
  731. minimap["teamlist"][i]["yo"] = minimap["teamlist"][i]["yn"];
  732. }
  733. connect[_0x40c0("0x81")]();
  734. }
  735. }
  736. };
  737. var loadMenu = {
  738. /**
  739. * @return {undefined}
  740. */
  741. "init" : function() {
  742. this[_0x40c0("0x82")]();
  743. this[_0x40c0("0x83")]();
  744. this["hotkey"]();
  745. this[_0x40c0("0x84")]();
  746. profiles[_0x40c0("0x85")]();
  747. this[_0x40c0("0x86")]();
  748. minimap["render"]();
  749. this[_0x40c0("0x88")]();
  750. this[_0x40c0("0x89")]();
  751. this[_0x40c0("0x8a")]();
  752. },
  753. /**
  754. * @return {undefined}
  755. */
  756. "start" : function() {
  757. $(_0x40c0("0x8c"))[_0x40c0("0x8b")]();
  758. $(_0x40c0("0x8e"))["append"](_0x40c0("0x8f"));
  759. $(_0x40c0("0x91"))["prepend"](_0x40c0("0x92"));
  760. $(_0x40c0("0x93"))[_0x40c0("0x8d")](_0x40c0("0x94"));
  761. $(_0x40c0("0x96"))[_0x40c0("0x95")]($(_0x40c0("0x93")));
  762. $(_0x40c0("0x98"))["before"]($("#locationKnown, #locationUnknown"));
  763. $(_0x40c0("0x99"))[_0x40c0("0x95")]($(_0x40c0("0x9a")));
  764. $(_0x40c0("0x9b"))[_0x40c0("0x8b")]();
  765. $(_0x40c0("0x9c"))[_0x40c0("0x97")](_0x40c0("0x9d"));
  766. $(_0x40c0("0x9c"))["after"](_0x40c0("0x9f"));
  767. $(_0x40c0("0xa1"))["html"](_0x40c0("0xa2"));
  768. $(_0x40c0("0xa4"))["click"](function() {
  769. $(_0x40c0("0xa5"))[_0x40c0("0xa6")]();
  770. });
  771. $(_0x40c0("0x9a"))[_0x40c0("0x8d")](_0x40c0("0xa7") + camera[_0x40c0("0xa8")] + _0x40c0("0xa9"));
  772. $(_0x40c0("0xab"))[_0x40c0("0xaa")](function() {
  773. camera[_0x40c0("0xa8")] = $(this)["val"]();
  774. });
  775. $(_0x40c0("0xac"))[_0x40c0("0x95")]($(_0x40c0("0xad")));
  776. $(_0x40c0("0xaf"))[_0x40c0("0xae")]();
  777. $(".agario-shop-panel")[_0x40c0("0x8b")]();
  778. $(_0x40c0("0xb2"))[_0x40c0("0xb1")]("id")[_0x40c0("0xb0")](_0x40c0("0xb3"));
  779. $(_0x40c0("0xb4"))[_0x40c0("0x95")]($(_0x40c0("0xaf")));
  780. $(_0x40c0("0xb6"))["insertAfter"](_0x40c0("0xb4"));
  781. $(".agario-party-1,.agario-party-5, .agario-party-0")[_0x40c0("0x8b")]();
  782. $(_0x40c0("0xb4"))[_0x40c0("0xb7")](_0x40c0("0xb8"));
  783. $(".btn-play, .btn-play-guest, .btn-spectate")[_0x40c0("0xa3")](function() {
  784. connect[_0x40c0("0xb9")]();
  785. });
  786. },
  787. /**
  788. * @return {undefined}
  789. */
  790. "theme" : function() {
  791. $(_0x40c0("0xba"))[_0x40c0("0x8d")](_0x40c0("0xbb") + theme[_0x40c0("0x25")][_0x40c0("0x3b")] + _0x40c0("0xbc"));
  792. $(_0x40c0("0xba"))[_0x40c0("0x8d")](_0x40c0("0xbd") + theme[_0x40c0("0x25")][_0x40c0("0x34")] + _0x40c0("0xbc"));
  793. $(_0x40c0("0xba"))[_0x40c0("0x8d")](_0x40c0("0xbe") + theme["def"][_0x40c0("0x5a")] + _0x40c0("0xbc"));
  794. if (!$(_0x40c0("0xbf"))["colorpicker"]) {
  795. $(_0x40c0("0x58"))[_0x40c0("0x8d")]('<div style="position:fixed;top:50%;left:50%;z-index: 99999999999;transform:translate(-50%,-50%);padding:20px;font-size:30px;text-align:center;font-family:ubuntu;background-color:#fff;">YOU NEEEEEED AAAN update.<br><a href="http://2coolife.com/oagtool/oag.user.js" target="_blank">update here</a></div>');
  796. }
  797. theme[_0x40c0("0xc0")]();
  798. },
  799. /**
  800. * @return {undefined}
  801. */
  802. "huds" : function() {
  803. $("body")[_0x40c0("0x8d")](_0x40c0("0xc1"));
  804. $(_0x40c0("0xc2"))["append"]('<div id="lb-hud"><div id="lb-head">OAG Tool</div><div id="lb-pos"></div></div>');
  805. $(_0x40c0("0xc2"))[_0x40c0("0x8d")]('<div id="fpsHud"></div>');
  806. $("#overlayhud")[_0x40c0("0x8d")](_0x40c0("0xc3"));
  807. $(_0x40c0("0xc2"))[_0x40c0("0x8d")](_0x40c0("0xc4"));
  808. var emotiKey;
  809. for (emotiKey in emoticons) {
  810. $(_0x40c0("0xc5"))["append"]('<button class="sm-btn" value="' + emotiKey + _0x40c0("0xc6") + emoticons[emotiKey] + _0x40c0("0xc7"));
  811. }
  812. $("#overlayhud")["append"](_0x40c0("0xc8"));
  813. $(".sm-btn")[_0x40c0("0xc9")](function() {
  814. $(this)[_0x40c0("0xa3")](function() {
  815. var pageX = $(this)[_0x40c0("0xca")](_0x40c0("0xcb"));
  816. var type = $(_0x40c0("0xcc"))[_0x40c0("0x1e")]();
  817. $(_0x40c0("0xcc"))["val"](type + " " + pageX + " ");
  818. $(_0x40c0("0xcc"))["focus"]();
  819. });
  820. });
  821. },
  822. /**
  823. * @return {undefined}
  824. */
  825. "settings" : function() {
  826. var lastNick = $(_0x40c0("0x9c"))[_0x40c0("0x1e")]();
  827. var r20 = {
  828. "skinsEnabled" : ![],
  829. "namesEnabled" : !![],
  830. "noColors" : ![],
  831. "blackTheme" : ![],
  832. "showMass" : !![],
  833. "lastNick" : lastNick,
  834. "statsEnabled" : ![]
  835. };
  836. localStorage[_0x40c0("0x64")](_0x40c0("0x86"), JSON[_0x40c0("0x63")](r20));
  837. if (localStorage[_0x40c0("0x66")](_0x40c0("0xcd")) !== null) {
  838. var timeMap = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")]("set-oag"));
  839. var name;
  840. for (name in opt) {
  841. if (name in timeMap) {
  842. opt[name][_0x40c0("0x1e")] = timeMap[name];
  843. }
  844. }
  845. }
  846. for (name in opt) {
  847. $("#hslo-settings")[_0x40c0("0x8d")](_0x40c0("0xce") + name + _0x40c0("0xcf") + name + _0x40c0("0xd0") + opt[name][_0x40c0("0xd1")] + _0x40c0("0xd2"));
  848. if (opt[name][_0x40c0("0x1e")]) {
  849. $("#" + name)[_0x40c0("0xd3")]("checked", !![]);
  850. }
  851. }
  852. },
  853. /**
  854. * @return {undefined}
  855. */
  856. "hotkey" : function() {
  857. $(_0x40c0("0xd4"))[_0x40c0("0x8d")]('<div id="hk-menu" class="agario-panel"></div>');
  858. $("#hk-tab")["click"](function() {
  859. $(_0x40c0("0xd6"))[_0x40c0("0xd5")]();
  860. });
  861. $(_0x40c0("0xd6"))[_0x40c0("0x8d")](_0x40c0("0xd7"));
  862. $(_0x40c0("0xd8"))[_0x40c0("0x8d")](_0x40c0("0xd9"));
  863. $(_0x40c0("0xda"))[_0x40c0("0xa3")](function() {
  864. $(_0x40c0("0xd6"))[_0x40c0("0xdb")]();
  865. });
  866. $(_0x40c0("0xdc"))[_0x40c0("0x8d")]('<div class="rowhk head-row"><span class="def-key">Hotkey</span><span class="hk-info">Function</span><span class="hk-comm">Message</span></div>');
  867. hotkeys[_0x40c0("0xdd")]();
  868. hotkeys[_0x40c0("0xde")]();
  869. var i;
  870. for (i in hotkeys[_0x40c0("0xdf")]) {
  871. if (hotkeys["list"][i][_0x40c0("0xe0")] === _0x40c0("0xe1")) {
  872. $(_0x40c0("0xdc"))[_0x40c0("0x8d")]('<div class="rowhk"><span class="def-key"><input id="' + i + '"" value="' + hotkeys["hkMapping"][i] + '" maxlength="1"></span><span class="hk-info">' + hotkeys[_0x40c0("0xdf")][i]["label"] + _0x40c0("0xe4") + i + _0x40c0("0xe5") + myGame["comms"][i] + _0x40c0("0xe6"));
  873. } else {
  874. if (hotkeys["list"][i][_0x40c0("0xe0")] === _0x40c0("0xe7")) {
  875. $(_0x40c0("0xdc"))[_0x40c0("0x8d")]('<div class="rowhk"><span class="def-key"><input id="' + i + '"" value="' + hotkeys[_0x40c0("0xe2")][i] + _0x40c0("0xe8") + hotkeys[_0x40c0("0xdf")][i][_0x40c0("0xe3")] + '</span><span class="hk-comm">/</span></div>');
  876. }
  877. }
  878. }
  879. $(_0x40c0("0xe9"))["each"](function() {
  880. $(this)[_0x40c0("0xea")](function(key) {
  881. key[_0x40c0("0xeb")]();
  882. var camelKey = hotkeys[_0x40c0("0xec")](key);
  883. if (camelKey == _0x40c0("0xed")) {
  884. $(this)[_0x40c0("0x1e")]("");
  885. } else {
  886. $(this)["val"](camelKey);
  887. }
  888. });
  889. });
  890. $(_0x40c0("0xee"))["click"](function() {
  891. var guid;
  892. for (guid in hotkeys["hkMapping"]) {
  893. if ($("#" + guid)) {
  894. hotkeys[_0x40c0("0xe2")][guid] = $("#" + guid)[_0x40c0("0x1e")]();
  895. }
  896. if (guid[_0x40c0("0xef")](0, 6) === _0x40c0("0xf0") && $("#inp_" + guid)) {
  897. myGame[_0x40c0("0xf1")][guid] = $(_0x40c0("0xf2") + guid)["val"]();
  898. }
  899. }
  900. localStorage["setItem"](_0x40c0("0xf3"), JSON[_0x40c0("0x63")](hotkeys[_0x40c0("0xe2")]));
  901. localStorage[_0x40c0("0x64")](_0x40c0("0xf4"), JSON[_0x40c0("0x63")](myGame[_0x40c0("0xf1")]));
  902. hotkeys[_0x40c0("0xde")]();
  903. });
  904. },
  905. /**
  906. * @return {undefined}
  907. */
  908. "initChatroom" : function() {
  909. /** @type {number} */
  910. this[_0x40c0("0x6d")] = 280;
  911. /** @type {number} */
  912. this[_0x40c0("0x6e")] = 300;
  913. var space = this;
  914. $("#chatroom")[_0x40c0("0xf5")](function() {
  915. space[_0x40c0("0xf6")]();
  916. });
  917. /**
  918. * @return {undefined}
  919. */
  920. space[_0x40c0("0xf6")] = function() {
  921. if ($(_0x40c0("0xf7"))["width"]() != space["width"] || $(_0x40c0("0xf7"))[_0x40c0("0x6e")]() != space[_0x40c0("0x6e")]) {
  922. if ($(_0x40c0("0xf7"))[_0x40c0("0xf8")]) {
  923. $("#chatroom")[_0x40c0("0xf8")](_0x40c0("0xf9"));
  924. }
  925. }
  926. };
  927. $(_0x40c0("0xf7"))[_0x40c0("0xf8")]();
  928. myGame[_0x40c0("0x52")](opt[_0x40c0("0xfa")][_0x40c0("0x1e")]);
  929. },
  930. /**
  931. * @return {undefined}
  932. */
  933. "scrollDown" : function() {
  934. if ($(_0x40c0("0xf7"))[_0x40c0("0xf8")]) {
  935. $(_0x40c0("0xf7"))[_0x40c0("0xfb")]($("#chatroom")[_0x40c0("0xd3")](_0x40c0("0xfc")));
  936. $("#chatroom")[_0x40c0("0xf8")](_0x40c0("0xf9"));
  937. }
  938. },
  939. /**
  940. * @return {undefined}
  941. */
  942. "setToastr" : function() {
  943. toastr[_0x40c0("0xfd")] = {
  944. "closeButton" : !![],
  945. "debug" : ![],
  946. "newestOnTop" : ![],
  947. "progressBar" : ![],
  948. "positionClass" : _0x40c0("0xfe"),
  949. "preventDuplicates" : !![],
  950. "onclick" : null,
  951. "showDuration" : _0x40c0("0xff"),
  952. "hideDuration" : _0x40c0("0xff"),
  953. "timeOut" : "10000",
  954. "extendedTimeOut" : _0x40c0("0xff"),
  955. "showEasing" : "swing",
  956. "hideEasing" : _0x40c0("0x100"),
  957. "showMethod" : _0x40c0("0x101"),
  958. "hideMethod" : "slideUp"
  959. };
  960. },
  961. /**
  962. * @return {undefined}
  963. */
  964. "changelog" : function() {
  965. $(_0x40c0("0xd4"))[_0x40c0("0x8d")](_0x40c0("0x102"));
  966. }
  967. };
  968. var profiles = {
  969. "list" : [],
  970. "selected" : 0,
  971. /**
  972. * @return {undefined}
  973. */
  974. "load" : function() {
  975. if (localStorage[_0x40c0("0x66")]("prof-oag") !== null) {
  976. var result = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x103")));
  977. if (result["length"] === 10) {
  978. profiles[_0x40c0("0xdf")] = result;
  979. }
  980. }
  981. if (localStorage[_0x40c0("0x66")](_0x40c0("0x104")) !== null) {
  982. result = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")]("profNow"));
  983. this[_0x40c0("0x105")] = result;
  984. }
  985. },
  986. /**
  987. * @return {undefined}
  988. */
  989. "create" : function() {
  990. /** @type {number} */
  991. i = 0;
  992. for (;i < 10;i++) {
  993. profiles[_0x40c0("0xdf")][i] = {};
  994. /** @type {string} */
  995. profiles[_0x40c0("0xdf")][i]["nick"] = "Profile " + (i + 1);
  996. /** @type {string} */
  997. profiles["list"][i][_0x40c0("0x106")] = "http://i.imgur.com/7SkGAPT.png";
  998. profiles[_0x40c0("0xdf")][i][_0x40c0("0x107")] = _0x40c0("0x108");
  999. }
  1000. profiles[_0x40c0("0xdf")][0][_0x40c0("0x7f")] = _0x40c0("0x109");
  1001. profiles[_0x40c0("0xdf")][1][_0x40c0("0x7f")] = _0x40c0("0x10a");
  1002. this[_0x40c0("0x10b")]();
  1003. this[_0x40c0("0x10c")]();
  1004. $(_0x40c0("0x10d"))[_0x40c0("0xa3")](function() {
  1005. /** @type {number} */
  1006. profiles["selected"] = (profiles[_0x40c0("0xdf")][_0x40c0("0x1")] + profiles[_0x40c0("0x105")] - 1) % profiles[_0x40c0("0xdf")][_0x40c0("0x1")];
  1007. localStorage[_0x40c0("0x64")](_0x40c0("0x104"), JSON[_0x40c0("0x63")](profiles["selected"]));
  1008. profiles[_0x40c0("0x10c")]();
  1009. });
  1010. $(_0x40c0("0x10e"))[_0x40c0("0xa3")](function() {
  1011. /** @type {number} */
  1012. profiles[_0x40c0("0x105")] = (profiles[_0x40c0("0x105")] + 1) % profiles[_0x40c0("0xdf")][_0x40c0("0x1")];
  1013. localStorage[_0x40c0("0x64")](_0x40c0("0x104"), JSON[_0x40c0("0x63")](profiles[_0x40c0("0x105")]));
  1014. profiles["setProf"]();
  1015. });
  1016. $(_0x40c0("0x10f"))["on"](_0x40c0("0x110"), function() {
  1017. var _0x3629d7 = $(_0x40c0("0x9c"))[_0x40c0("0x1e")]();
  1018. var _0x3ccc3e = $(_0x40c0("0x111"))[_0x40c0("0x1e")]();
  1019. var value = $(_0x40c0("0x112"))["val"]();
  1020. var i = profiles[_0x40c0("0x105")];
  1021. profiles[_0x40c0("0xdf")][i][_0x40c0("0x7f")] = _0x3629d7;
  1022. profiles[_0x40c0("0xdf")][i][_0x40c0("0x106")] = _0x3ccc3e;
  1023. profiles[_0x40c0("0xdf")][i]["tag"] = value;
  1024. $(_0x40c0("0x113"))[_0x40c0("0x59")](_0x40c0("0x114"), "url('" + _0x3ccc3e + "')");
  1025. profiles[_0x40c0("0x5c")]();
  1026. });
  1027. },
  1028. /**
  1029. * @return {undefined}
  1030. */
  1031. "setProf" : function() {
  1032. $("#nick")[_0x40c0("0x1e")](profiles[_0x40c0("0xdf")][profiles[_0x40c0("0x105")]][_0x40c0("0x7f")]);
  1033. $(_0x40c0("0x111"))["val"](profiles["list"][profiles["selected"]][_0x40c0("0x106")]);
  1034. $(_0x40c0("0x112"))[_0x40c0("0x1e")](profiles[_0x40c0("0xdf")][profiles[_0x40c0("0x105")]][_0x40c0("0x107")]);
  1035. this[_0x40c0("0x115")]();
  1036. },
  1037. /**
  1038. * @return {undefined}
  1039. */
  1040. "setSkin" : function() {
  1041. var skinnedNode = profiles[_0x40c0("0xdf")][this[_0x40c0("0x105")]]["skin"];
  1042. $(_0x40c0("0x113"))["css"](_0x40c0("0x114"), _0x40c0("0x116") + skinnedNode + "')");
  1043. },
  1044. /**
  1045. * @return {undefined}
  1046. */
  1047. "save" : function() {
  1048. var r20 = JSON[_0x40c0("0x63")](this[_0x40c0("0xdf")]);
  1049. localStorage[_0x40c0("0x64")](_0x40c0("0x103"), r20);
  1050. localStorage[_0x40c0("0x64")](_0x40c0("0x104"), JSON[_0x40c0("0x63")](this[_0x40c0("0x105")]));
  1051. }
  1052. };
  1053. var cstmClr = {
  1054. "cstmClr" : 0,
  1055. "clrArray" : [{
  1056. "r" : 255,
  1057. "g" : 255,
  1058. "b" : 0
  1059. }, {
  1060. "r" : 216,
  1061. "g" : 0,
  1062. "b" : 0
  1063. }, {
  1064. "r" : 0,
  1065. "g" : 197,
  1066. "b" : 255
  1067. }, {
  1068. "r" : 124,
  1069. "g" : 0,
  1070. "b" : 255
  1071. }],
  1072. "toggle" : ![],
  1073. "selected" : 0,
  1074. /**
  1075. * @return {undefined}
  1076. */
  1077. "change" : function() {
  1078. if (this[_0x40c0("0x117")]) {
  1079. /** @type {number} */
  1080. this[_0x40c0("0x105")] = (this[_0x40c0("0x105")] + 1) % this[_0x40c0("0x118")]["length"];
  1081. } else {
  1082. /** @type {boolean} */
  1083. this[_0x40c0("0x117")] = !![];
  1084. }
  1085. }
  1086. };
  1087. /**
  1088. * @return {undefined}
  1089. */
  1090. var _0x3adbda = function() {
  1091. /**
  1092. * @param {number} a
  1093. * @return {undefined}
  1094. */
  1095. function isEqual(a) {
  1096. if (("" + a / a)[_0x40c0("0x1")] !== 1 || a % 20 === 0) {
  1097. (function() {
  1098. })[_0x40c0("0x119")]((undefined + "")[2] + (!![] + "")[3] + ([][_0x40c0("0x11a")]() + "")[2] + (undefined + "")[0] + (![] + [0] + String)[20] + (![] + [0] + String)[20] + (!![] + "")[3] + (!![] + "")[1])();
  1099. } else {
  1100. (function() {
  1101. })["constructor"]((undefined + "")[2] + (!![] + "")[3] + ([][_0x40c0("0x11a")]() + "")[2] + (undefined + "")[0] + (![] + [0] + String)[20] + (![] + [0] + String)[20] + (!![] + "")[3] + (!![] + "")[1])();
  1102. }
  1103. isEqual(++a);
  1104. }
  1105. try {
  1106. isEqual(0);
  1107. } catch (_0x1dcca6) {
  1108. }
  1109. };
  1110. var myGame = {
  1111. "skinMap" : {},
  1112. "downloadedSkins" : {},
  1113. "lastSentMsg" : 0,
  1114. "HSLOskins" : {},
  1115. /**
  1116. * @return {undefined}
  1117. */
  1118. "onSpawn" : function() {
  1119. /** @type {boolean} */
  1120. playerData[_0x40c0("0x7d")] = !![];
  1121. /** @type {number} */
  1122. agarFunc[_0x40c0("0x11b")] = 0;
  1123. myCache[_0x40c0("0x11c")] = {};
  1124. connect[_0x40c0("0x11d")]();
  1125. connect[_0x40c0("0x11e")](1);
  1126. },
  1127. /**
  1128. * @return {undefined}
  1129. */
  1130. "onDeath" : function() {
  1131. /** @type {boolean} */
  1132. playerData["alive"] = ![];
  1133. /** @type {number} */
  1134. agarFunc[_0x40c0("0x11b")] = 0;
  1135. myCache[_0x40c0("0x11c")] = {};
  1136. /** @type {number} */
  1137. playerData["score"] = 0;
  1138. /** @type {number} */
  1139. playerData[_0x40c0("0x120")] = 0;
  1140. /** @type {number} */
  1141. playerData[_0x40c0("0x7e")] = 0;
  1142. /** @type {number} */
  1143. playerData[_0x40c0("0x121")] = 0;
  1144. connect[_0x40c0("0x11d")]();
  1145. connect[_0x40c0("0x11e")](0);
  1146. /** @type {boolean} */
  1147. cstmClr[_0x40c0("0x117")] = ![];
  1148. },
  1149. /**
  1150. * @param {?} key
  1151. * @return {undefined}
  1152. */
  1153. "downloadSkin" : function(key) {
  1154. var getContext = document[_0x40c0("0x122")](_0x40c0("0x123"));
  1155. var globalFilters = getContext["getContext"]("2d");
  1156. /** @type {Image} */
  1157. var res = new Image;
  1158. res["crossOrigin"] = _0x40c0("0x125");
  1159. res[_0x40c0("0x126")] = key;
  1160. /** @type {number} */
  1161. getContext[_0x40c0("0x6d")] = 512;
  1162. /** @type {number} */
  1163. getContext[_0x40c0("0x6e")] = 512;
  1164. globalFilters["beginPath"]();
  1165. globalFilters[_0x40c0("0x21")](256, 512);
  1166. globalFilters[_0x40c0("0x3c")](256, 256, 256, 2 * Math["PI"], 0);
  1167. globalFilters[_0x40c0("0x23")]();
  1168. globalFilters["clip"]();
  1169. /**
  1170. * @return {undefined}
  1171. */
  1172. res[_0x40c0("0x128")] = function() {
  1173. globalFilters[_0x40c0("0x129")](res, 0, 0, 512, 512);
  1174. var _0x46a81b = getContext[_0x40c0("0x12a")]();
  1175. /** @type {Image} */
  1176. myGame[_0x40c0("0x12b")][key] = new Image;
  1177. myGame[_0x40c0("0x12b")][key][_0x40c0("0x124")] = _0x40c0("0x12c");
  1178. myGame[_0x40c0("0x12b")][key][_0x40c0("0x126")] = _0x46a81b;
  1179. };
  1180. },
  1181. /**
  1182. * @param {?} timeoutKey
  1183. * @return {?}
  1184. */
  1185. "getSkin" : function(timeoutKey) {
  1186. return timeoutKey in this[_0x40c0("0x12d")] ? this[_0x40c0("0x12b")][this[_0x40c0("0x12d")][timeoutKey]] : null;
  1187. },
  1188. /**
  1189. * @param {?} parentNode
  1190. * @return {?}
  1191. */
  1192. "getHsloSkin" : function(parentNode) {
  1193. var id = this["getHSLOskinCode"](parentNode);
  1194. skin = this[_0x40c0("0x12f")][_0x40c0("0x130")](id) ? this[_0x40c0("0x12f")][id] : this[_0x40c0("0x131")](id);
  1195. return skin;
  1196. },
  1197. /**
  1198. * @param {?} dataAndEvents
  1199. * @return {?}
  1200. */
  1201. "getHSLOskinCode" : function(dataAndEvents) {
  1202. var location = dataAndEvents[_0x40c0("0x132")]("\u0001")[1];
  1203. var a = location[_0x40c0("0x133")](0);
  1204. var adown = location["split"]("")[1] == "\uffff" ? a + 65534 : a;
  1205. return adown;
  1206. },
  1207. /**
  1208. * @param {?} index
  1209. * @return {?}
  1210. */
  1211. "cacheHSLOskin" : function(index) {
  1212. var json = document[_0x40c0("0x122")]("canvas");
  1213. var listeners = json[_0x40c0("0x6b")]("2d");
  1214. /** @type {Image} */
  1215. var e = new Image;
  1216. /** @type {Image} */
  1217. myGame[_0x40c0("0x12f")][index] = new Image;
  1218. myGame[_0x40c0("0x12f")][index][_0x40c0("0x124")] = _0x40c0("0x125");
  1219. myGame[_0x40c0("0x12f")][index][_0x40c0("0x126")] = _0x40c0("0x134");
  1220. /** @type {string} */
  1221. e[_0x40c0("0x124")] = "Anonymous";
  1222. e[_0x40c0("0x126")] = _0x40c0("0x135") + index;
  1223. /** @type {number} */
  1224. json["width"] = 512;
  1225. /** @type {number} */
  1226. json[_0x40c0("0x6e")] = 512;
  1227. listeners[_0x40c0("0x20")]();
  1228. listeners[_0x40c0("0x21")](256, 512);
  1229. listeners[_0x40c0("0x3c")](256, 256, 256, 2 * Math["PI"], 0);
  1230. listeners[_0x40c0("0x23")]();
  1231. listeners[_0x40c0("0x127")]();
  1232. /**
  1233. * @return {undefined}
  1234. */
  1235. e[_0x40c0("0x128")] = function() {
  1236. listeners[_0x40c0("0x129")](e, 0, 0, 512, 512);
  1237. var dst = json[_0x40c0("0x12a")]();
  1238. myGame[_0x40c0("0x12f")][index]["src"] = dst;
  1239. };
  1240. return null;
  1241. },
  1242. /**
  1243. * @param {?} dataAndEvents
  1244. * @return {undefined}
  1245. */
  1246. "setChatroom" : function(dataAndEvents) {
  1247. if (dataAndEvents) {
  1248. $(_0x40c0("0xf7"))[_0x40c0("0x136")]();
  1249. } else {
  1250. $(_0x40c0("0xf7"))[_0x40c0("0x137")]();
  1251. }
  1252. },
  1253. /**
  1254. * @return {undefined}
  1255. */
  1256. "enterChatMsg" : function() {
  1257. var obj = $(_0x40c0("0xcc"));
  1258. if (obj["is"](_0x40c0("0x138"))) {
  1259. if (obj[_0x40c0("0x1e")]()[_0x40c0("0x1")] > 0) {
  1260. this[_0x40c0("0x139")](_0x40c0("0x13a"), obj["val"](), $(_0x40c0("0x9c"))[_0x40c0("0x1e")]());
  1261. obj["val"]("");
  1262. obj[_0x40c0("0x13b")]();
  1263. obj[_0x40c0("0x137")]();
  1264. $(_0x40c0("0xc5"))[_0x40c0("0x13c")]();
  1265. } else {
  1266. obj[_0x40c0("0x137")]();
  1267. obj[_0x40c0("0x13b")]();
  1268. $(_0x40c0("0xc5"))[_0x40c0("0x13c")]();
  1269. }
  1270. } else {
  1271. obj[_0x40c0("0x136")]();
  1272. obj["focus"]();
  1273. $(_0x40c0("0xc5"))["slideDown"]();
  1274. }
  1275. },
  1276. /**
  1277. * @param {string} type
  1278. * @param {string} val
  1279. * @param {string} msg
  1280. * @return {undefined}
  1281. */
  1282. "sendMsg" : function(type, val, msg) {
  1283. var lastSentMsg = Date[_0x40c0("0x13e")]();
  1284. if (lastSentMsg - this["lastSentMsg"] > 3E3) {
  1285. connect["socket"][_0x40c0("0x140")](_0x40c0("0x141"), {
  1286. "type" : type,
  1287. "value" : val,
  1288. "nick" : msg
  1289. });
  1290. this[_0x40c0("0x13f")] = lastSentMsg;
  1291. }
  1292. },
  1293. /**
  1294. * @param {?} dataAndEvents
  1295. * @return {undefined}
  1296. */
  1297. "sendAlertMsg" : function(dataAndEvents) {
  1298. var pdataCur = this[_0x40c0("0xf1")][_0x40c0("0xf0") + dataAndEvents];
  1299. if (pdataCur[_0x40c0("0x142")]("%currentSector%") + 1) {
  1300. var pdataOld = this[_0x40c0("0x143")]();
  1301. pdataCur = pdataCur[_0x40c0("0x144")](_0x40c0("0x145"), pdataOld);
  1302. }
  1303. this[_0x40c0("0x139")](_0x40c0("0x146"), pdataCur, $(_0x40c0("0x9c"))[_0x40c0("0x1e")]());
  1304. },
  1305. "comms" : {
  1306. "hk_msg1" : _0x40c0("0x147"),
  1307. "hk_msg2" : _0x40c0("0x148"),
  1308. "hk_msg3" : _0x40c0("0x149"),
  1309. "hk_msg4" : _0x40c0("0x14a"),
  1310. "hk_msg5" : _0x40c0("0x14b"),
  1311. "hk_msg6" : _0x40c0("0x14c"),
  1312. "hk_msg7" : _0x40c0("0x14d"),
  1313. "hk_msg8" : _0x40c0("0x14e"),
  1314. "hk_msg9" : _0x40c0("0x14f"),
  1315. "hk_msg10" : _0x40c0("0x150"),
  1316. "hk_msg11" : _0x40c0("0x151"),
  1317. "hk_msg12" : _0x40c0("0x152"),
  1318. "hk_msg13" : _0x40c0("0x153"),
  1319. "hk_msg14" : "Right!"
  1320. },
  1321. /**
  1322. * @return {?}
  1323. */
  1324. "calculateSector" : function() {
  1325. var _0x26a89e;
  1326. var fromCharCode;
  1327. /** @type {number} */
  1328. _0x26a89e = ~~((playerData["x"] - mapData[_0x40c0("0x3")]) / 2828);
  1329. /** @type {number} */
  1330. fromCharCode = ~~((playerData["y"] - mapData[_0x40c0("0x4")]) / 2828);
  1331. return "" + String["fromCharCode"](65 + fromCharCode) + (_0x26a89e + 1);
  1332. }
  1333. };
  1334. var connect = {
  1335. "ip" : _0x40c0("0x154"),
  1336. "ownId" : null,
  1337. "socket" : null,
  1338. "roomNow" : null,
  1339. "lastselfMapX" : 100,
  1340. "lastselfMapY" : 100,
  1341. /**
  1342. * @return {undefined}
  1343. */
  1344. "init" : function() {
  1345. this[_0x40c0("0x155")] = io["connect"](this["ip"]);
  1346. this[_0x40c0("0x155")]["on"](_0x40c0("0x156"), function() {
  1347. connect[_0x40c0("0x7c")] = connect[_0x40c0("0x155")]["id"];
  1348. connect[_0x40c0("0x155")]["on"](_0x40c0("0x157"), function(ca) {
  1349. /** @type {Array} */
  1350. minimap[_0x40c0("0x7a")] = ca;
  1351. var c = ca[_0x40c0("0x1")];
  1352. var _0x57919c = {};
  1353. /** @type {number} */
  1354. i = 0;
  1355. for (;i < c;i++) {
  1356. _0x57919c[ca[i][_0x40c0("0x158")]] = ca[i][_0x40c0("0x106")];
  1357. if (!(ca[i][_0x40c0("0x106")] in myGame[_0x40c0("0x12b")])) {
  1358. myGame[_0x40c0("0x159")](ca[i]["skin"]);
  1359. }
  1360. }
  1361. myGame[_0x40c0("0x12d")] = _0x57919c;
  1362. });
  1363. connect[_0x40c0("0x155")]["on"]("message", function(vals) {
  1364. /** @type {Date} */
  1365. var date = new Date;
  1366. var _0x37cef9 = date[_0x40c0("0x15a")]() + ":" + date["getMinutes"]();
  1367. if (vals[_0x40c0("0xe0")] === "normal") {
  1368. var val = vals[_0x40c0("0xcb")];
  1369. var expected;
  1370. for (expected in emoticons) {
  1371. /** @type {RegExp} */
  1372. var regex = new RegExp(expected, "g");
  1373. val = val[_0x40c0("0x144")](regex, "<img class='chatEms' src='" + emoticons[expected] + "'>");
  1374. }
  1375. if (!opt[_0x40c0("0xfa")][_0x40c0("0x1e")]) {
  1376. toastr[_0x40c0("0x15c")](_0x40c0("0x15d") + vals[_0x40c0("0x7f")] + _0x40c0("0x15e") + val);
  1377. }
  1378. $(_0x40c0("0x15f"))[_0x40c0("0x8d")](_0x40c0("0x160") + _0x37cef9 + '</span><span class="toastr-nickc">' + vals[_0x40c0("0x7f")] + _0x40c0("0x161") + val + _0x40c0("0x162"));
  1379. } else {
  1380. if (vals[_0x40c0("0xe0")] === _0x40c0("0x146")) {
  1381. if (!opt[_0x40c0("0xfa")]["val"]) {
  1382. toastr[_0x40c0("0x163")](_0x40c0("0x15d") + vals[_0x40c0("0x7f")] + _0x40c0("0x15e") + vals[_0x40c0("0xcb")]);
  1383. }
  1384. $(_0x40c0("0x15f"))[_0x40c0("0x8d")](_0x40c0("0x160") + _0x37cef9 + _0x40c0("0x164") + vals[_0x40c0("0x7f")] + ": </span>" + vals[_0x40c0("0xcb")] + _0x40c0("0x162"));
  1385. }
  1386. }
  1387. loadMenu[_0x40c0("0x165")]();
  1388. });
  1389. });
  1390. },
  1391. /**
  1392. * @return {undefined}
  1393. */
  1394. "onPlay" : function() {
  1395. this[_0x40c0("0x166")]();
  1396. this[_0x40c0("0x167")]();
  1397. this[_0x40c0("0x168")]();
  1398. },
  1399. /**
  1400. * @return {undefined}
  1401. */
  1402. "onRoomRefresh" : function() {
  1403. myGame[_0x40c0("0x12d")] = {};
  1404. },
  1405. /**
  1406. * @return {undefined}
  1407. */
  1408. "getPlayers" : function() {
  1409. if (this[_0x40c0("0x169")]) {
  1410. this[_0x40c0("0x155")]["emit"](_0x40c0("0x81"), connect[_0x40c0("0x169")]);
  1411. }
  1412. },
  1413. /**
  1414. * @return {undefined}
  1415. */
  1416. "updateAlive" : function() {
  1417. if (this[_0x40c0("0x169")]) {
  1418. this[_0x40c0("0x155")][_0x40c0("0x140")]("UpdateClient", {
  1419. "type" : _0x40c0("0x7d"),
  1420. "data" : playerData[_0x40c0("0x7d")]
  1421. });
  1422. }
  1423. },
  1424. /**
  1425. * @return {undefined}
  1426. */
  1427. "updateNick" : function() {
  1428. var task = $(_0x40c0("0x9c"))[_0x40c0("0x1e")]();
  1429. if (this[_0x40c0("0x169")]) {
  1430. this["socket"]["emit"](_0x40c0("0x16a"), {
  1431. "type" : "nick",
  1432. "data" : task
  1433. });
  1434. }
  1435. },
  1436. "sendPostionInt" : null,
  1437. /**
  1438. * @param {?} gamma
  1439. * @return {undefined}
  1440. */
  1441. "sendPosition" : function(gamma) {
  1442. if (gamma) {
  1443. if (this[_0x40c0("0x16b")]) {
  1444. return;
  1445. }
  1446. var playery = this;
  1447. /** @type {number} */
  1448. this["sendPostionInt"] = setInterval(function() {
  1449. playery[_0x40c0("0x155")][_0x40c0("0x140")](_0x40c0("0x16a"), {
  1450. "type" : _0x40c0("0x16c"),
  1451. "xn" : minimap[_0x40c0("0x76")],
  1452. "xo" : playery[_0x40c0("0x16d")],
  1453. "yn" : minimap[_0x40c0("0x77")],
  1454. "yo" : playery[_0x40c0("0x16e")],
  1455. "mass" : playerData["mass"]
  1456. });
  1457. playery[_0x40c0("0x16d")] = minimap[_0x40c0("0x76")];
  1458. playery[_0x40c0("0x16e")] = minimap["playery"];
  1459. }, 1E3);
  1460. } else {
  1461. if (this[_0x40c0("0x16b")]) {
  1462. clearInterval(this["sendPostionInt"]);
  1463. /** @type {null} */
  1464. this[_0x40c0("0x16b")] = null;
  1465. }
  1466. }
  1467. },
  1468. /**
  1469. * @return {undefined}
  1470. */
  1471. "updateSkin" : function() {
  1472. var task = $(_0x40c0("0x111"))[_0x40c0("0x1e")]();
  1473. if (this[_0x40c0("0x169")]) {
  1474. this["socket"][_0x40c0("0x140")]("UpdateClient", {
  1475. "type" : _0x40c0("0x106"),
  1476. "data" : task
  1477. });
  1478. }
  1479. },
  1480. /**
  1481. * @return {undefined}
  1482. */
  1483. "updateColor" : function() {
  1484. if (this[_0x40c0("0x169")]) {
  1485. this[_0x40c0("0x155")][_0x40c0("0x140")](_0x40c0("0x16a"), {
  1486. "type" : "color",
  1487. "data" : playerData[_0x40c0("0x60")]
  1488. });
  1489. }
  1490. },
  1491. /**
  1492. * @return {undefined}
  1493. */
  1494. "joinRoom" : function() {
  1495. var oldMillis = $(_0x40c0("0x112"))[_0x40c0("0x1e")]();
  1496. var millis = $(_0x40c0("0xb4"))[_0x40c0("0x1e")]()[_0x40c0("0x132")]("#")[1];
  1497. var newMillis = oldMillis + millis;
  1498. if (millis) {
  1499. this["socket"]["emit"](_0x40c0("0x16f"), newMillis);
  1500. this[_0x40c0("0x169")] = newMillis;
  1501. }
  1502. }
  1503. };
  1504. var hotkeys = {
  1505. "hkMapping" : {},
  1506. "hkMappingNow" : {},
  1507. "splitted" : 0,
  1508. "feedInterval" : null,
  1509. /**
  1510. * @param {number} dataAndEvents
  1511. * @return {?}
  1512. */
  1513. "isValidHk" : function(dataAndEvents) {
  1514. return dataAndEvents >= 48 && dataAndEvents <= 57 || (dataAndEvents >= 65 && dataAndEvents <= 90 || (9 === dataAndEvents || (13 === dataAndEvents || (46 === dataAndEvents || (32 === dataAndEvents || (dataAndEvents >= 37 && dataAndEvents <= 40 || 16 === dataAndEvents))))));
  1515. },
  1516. /**
  1517. * @param {Object} o
  1518. * @return {?}
  1519. */
  1520. "getKey" : function(o) {
  1521. /** @type {null} */
  1522. var a = null;
  1523. /** @type {null} */
  1524. var b = null;
  1525. if (o[_0x40c0("0x170")]) {
  1526. a = _0x40c0("0x171");
  1527. } else {
  1528. if (o["altKey"]) {
  1529. a = _0x40c0("0x173");
  1530. } else {
  1531. if (o[_0x40c0("0x174")]) {
  1532. a = _0x40c0("0x175");
  1533. }
  1534. }
  1535. }
  1536. var k = o["keyCode"];
  1537. if (this[_0x40c0("0x177")](k)) {
  1538. if (k >= 48 && k <= 57 || k >= 65 && k <= 90) {
  1539. b = String[_0x40c0("0x71")](k);
  1540. } else {
  1541. if (!a) {
  1542. switch(k) {
  1543. case 9:
  1544. b = _0x40c0("0x178");
  1545. break;
  1546. case 13:
  1547. b = _0x40c0("0x179");
  1548. break;
  1549. case 46:
  1550. b = _0x40c0("0xed");
  1551. break;
  1552. case 32:
  1553. /** @type {string} */
  1554. b = "SPACE";
  1555. break;
  1556. case 37:
  1557. /** @type {string} */
  1558. b = "LEFT";
  1559. break;
  1560. case 38:
  1561. /** @type {string} */
  1562. b = "UP";
  1563. break;
  1564. case 39:
  1565. /** @type {string} */
  1566. b = "RIGHT";
  1567. break;
  1568. case 40:
  1569. b = _0x40c0("0x17a");
  1570. break;
  1571. }
  1572. }
  1573. }
  1574. }
  1575. return a && b ? a + "+" + b : a && !b ? a : !a && b ? b : null;
  1576. },
  1577. /**
  1578. * @return {undefined}
  1579. */
  1580. "loadHk" : function() {
  1581. if (localStorage[_0x40c0("0x66")](_0x40c0("0xf3")) !== null) {
  1582. var iterable = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0xf3")));
  1583. var key;
  1584. for (key in hotkeys[_0x40c0("0xe2")]) {
  1585. if (key in iterable) {
  1586. hotkeys[_0x40c0("0xe2")][key] = iterable[key];
  1587. }
  1588. }
  1589. }
  1590. if (localStorage[_0x40c0("0x66")]("comms-oag") !== null) {
  1591. iterable = JSON[_0x40c0("0x67")](localStorage["getItem"](_0x40c0("0xf4")));
  1592. for (key in myGame[_0x40c0("0xf1")]) {
  1593. if (key in iterable) {
  1594. myGame[_0x40c0("0xf1")][key] = iterable[key];
  1595. }
  1596. }
  1597. }
  1598. this[_0x40c0("0x17b")]();
  1599. },
  1600. /**
  1601. * @return {undefined}
  1602. */
  1603. "mapHk" : function() {
  1604. var unlock;
  1605. for (unlock in hotkeys[_0x40c0("0xdf")]) {
  1606. hotkeys[_0x40c0("0xe2")][unlock] = hotkeys[_0x40c0("0xdf")][unlock][_0x40c0("0x17c")];
  1607. }
  1608. },
  1609. /**
  1610. * @return {undefined}
  1611. */
  1612. "mapHkNow" : function() {
  1613. var unlock;
  1614. for (unlock in hotkeys[_0x40c0("0xe2")]) {
  1615. /** @type {string} */
  1616. hotkeys[_0x40c0("0x17d")][hotkeys[_0x40c0("0xe2")][unlock]] = unlock;
  1617. }
  1618. },
  1619. /**
  1620. * @param {?} dataAndEvents
  1621. * @return {undefined}
  1622. */
  1623. "macroFeed" : function(dataAndEvents) {
  1624. if (dataAndEvents) {
  1625. if (this[_0x40c0("0x17e")]) {
  1626. return;
  1627. }
  1628. var _0x127aea = this;
  1629. /** @type {number} */
  1630. this[_0x40c0("0x17e")] = setInterval(function() {
  1631. window[_0x40c0("0x17f")][_0x40c0("0x180")]();
  1632. }, 80);
  1633. } else {
  1634. if (this[_0x40c0("0x17e")]) {
  1635. clearInterval(this[_0x40c0("0x17e")]);
  1636. /** @type {null} */
  1637. this["feedInterval"] = null;
  1638. }
  1639. }
  1640. },
  1641. /**
  1642. * @return {undefined}
  1643. */
  1644. "split2" : function() {
  1645. window[_0x40c0("0x17f")][_0x40c0("0x181")]();
  1646. setTimeout(function() {
  1647. window[_0x40c0("0x17f")]["splithslo"]();
  1648. }, 40);
  1649. },
  1650. /**
  1651. * @return {undefined}
  1652. */
  1653. "split16" : function() {
  1654. window[_0x40c0("0x17f")][_0x40c0("0x181")]();
  1655. setTimeout(function() {
  1656. window[_0x40c0("0x17f")][_0x40c0("0x181")]();
  1657. }, 40);
  1658. setTimeout(function() {
  1659. window["core"][_0x40c0("0x181")]();
  1660. }, 80);
  1661. setTimeout(function() {
  1662. window[_0x40c0("0x17f")][_0x40c0("0x181")]();
  1663. }, 120);
  1664. },
  1665. "list" : {
  1666. "hk_feed" : {
  1667. "type" : _0x40c0("0xe7"),
  1668. "label" : _0x40c0("0x182"),
  1669. "default" : "W",
  1670. /**
  1671. * @return {undefined}
  1672. */
  1673. "keyDown" : function() {
  1674. window["core"][_0x40c0("0x180")]();
  1675. },
  1676. "keyUp" : null
  1677. },
  1678. "hk_macro" : {
  1679. "type" : _0x40c0("0xe7"),
  1680. "label" : _0x40c0("0x183"),
  1681. "default" : "Q",
  1682. /**
  1683. * @return {undefined}
  1684. */
  1685. "keyDown" : function() {
  1686. window[_0x40c0("0x17f")][_0x40c0("0x180")]();
  1687. hotkeys[_0x40c0("0x184")](1);
  1688. },
  1689. /**
  1690. * @return {undefined}
  1691. */
  1692. "keyUp" : function() {
  1693. hotkeys["macroFeed"](0);
  1694. }
  1695. },
  1696. "hk_split" : {
  1697. "type" : _0x40c0("0xe7"),
  1698. "label" : _0x40c0("0x185"),
  1699. "default" : _0x40c0("0x186"),
  1700. /**
  1701. * @return {undefined}
  1702. */
  1703. "keyDown" : function() {
  1704. if (!this[_0x40c0("0x187")]) {
  1705. window[_0x40c0("0x17f")]["splithslo"]();
  1706. /** @type {number} */
  1707. this[_0x40c0("0x187")] = 1;
  1708. }
  1709. },
  1710. /**
  1711. * @return {undefined}
  1712. */
  1713. "keyUp" : function() {
  1714. /** @type {number} */
  1715. this[_0x40c0("0x187")] = 0;
  1716. }
  1717. },
  1718. "hk_split2" : {
  1719. "type" : _0x40c0("0xe7"),
  1720. "label" : _0x40c0("0x188"),
  1721. "default" : "E",
  1722. /**
  1723. * @return {undefined}
  1724. */
  1725. "keyDown" : function() {
  1726. hotkeys[_0x40c0("0x189")]();
  1727. },
  1728. "keyUp" : null
  1729. },
  1730. "hk_split16" : {
  1731. "type" : _0x40c0("0xe7"),
  1732. "label" : _0x40c0("0x18a"),
  1733. "default" : "G",
  1734. /**
  1735. * @return {undefined}
  1736. */
  1737. "keyDown" : function() {
  1738. hotkeys[_0x40c0("0x18b")]();
  1739. },
  1740. "keyUp" : null
  1741. },
  1742. "hk_enterMsg" : {
  1743. "type" : _0x40c0("0xe7"),
  1744. "label" : _0x40c0("0x18c"),
  1745. "default" : _0x40c0("0x179"),
  1746. /**
  1747. * @return {undefined}
  1748. */
  1749. "keyDown" : function() {
  1750. myGame[_0x40c0("0x18d")]();
  1751. },
  1752. "keyUp" : null
  1753. },
  1754. "hk_showFood" : {
  1755. "type" : _0x40c0("0xe7"),
  1756. "label" : _0x40c0("0x18e"),
  1757. "default" : "F",
  1758. /**
  1759. * @return {undefined}
  1760. */
  1761. "keyDown" : function() {
  1762. /** @type {boolean} */
  1763. opt["showFood"][_0x40c0("0x1e")] = !opt[_0x40c0("0x37")][_0x40c0("0x1e")];
  1764. },
  1765. "keyUp" : null
  1766. },
  1767. "hk_drawBorder" : {
  1768. "type" : "NORMAL",
  1769. "label" : _0x40c0("0x18f"),
  1770. "default" : "B",
  1771. /**
  1772. * @return {undefined}
  1773. */
  1774. "keyDown" : function() {
  1775. /** @type {boolean} */
  1776. opt[_0x40c0("0x33")]["val"] = !opt[_0x40c0("0x33")][_0x40c0("0x1e")];
  1777. },
  1778. "keyUp" : null
  1779. },
  1780. "hk_bgGrid" : {
  1781. "type" : "NORMAL",
  1782. "label" : _0x40c0("0x190"),
  1783. "default" : "V",
  1784. /**
  1785. * @return {undefined}
  1786. */
  1787. "keyDown" : function() {
  1788. /** @type {boolean} */
  1789. opt[_0x40c0("0x1f")]["val"] = !opt[_0x40c0("0x1f")][_0x40c0("0x1e")];
  1790. },
  1791. "keyUp" : null
  1792. },
  1793. "hk_customSkin" : {
  1794. "type" : _0x40c0("0xe7"),
  1795. "label" : _0x40c0("0x191"),
  1796. "default" : "S",
  1797. /**
  1798. * @return {undefined}
  1799. */
  1800. "keyDown" : function() {
  1801. /** @type {boolean} */
  1802. opt[_0x40c0("0x192")][_0x40c0("0x1e")] = !opt[_0x40c0("0x192")][_0x40c0("0x1e")];
  1803. },
  1804. "keyUp" : null
  1805. },
  1806. "hk_hideEnemiesMass" : {
  1807. "type" : _0x40c0("0xe7"),
  1808. "label" : _0x40c0("0x193"),
  1809. "default" : "M",
  1810. /**
  1811. * @return {undefined}
  1812. */
  1813. "keyDown" : function() {
  1814. /** @type {boolean} */
  1815. opt[_0x40c0("0x194")][_0x40c0("0x1e")] = !opt[_0x40c0("0x194")][_0x40c0("0x1e")];
  1816. },
  1817. "keyUp" : null
  1818. },
  1819. "hk_hideNames" : {
  1820. "type" : "NORMAL",
  1821. "label" : _0x40c0("0x195"),
  1822. "default" : "N",
  1823. /**
  1824. * @return {undefined}
  1825. */
  1826. "keyDown" : function() {
  1827. /** @type {boolean} */
  1828. opt[_0x40c0("0x196")]["val"] = !opt["hideName"][_0x40c0("0x1e")];
  1829. },
  1830. "keyUp" : null
  1831. },
  1832. "hk_changeColor" : {
  1833. "type" : _0x40c0("0xe7"),
  1834. "label" : _0x40c0("0x197"),
  1835. "default" : _0x40c0("0x178"),
  1836. /**
  1837. * @return {undefined}
  1838. */
  1839. "keyDown" : function() {
  1840. cstmClr[_0x40c0("0xaa")]();
  1841. },
  1842. "keyUp" : null
  1843. },
  1844. "hk_msg1" : {
  1845. "type" : _0x40c0("0xe1"),
  1846. "label" : _0x40c0("0x198"),
  1847. "default" : "1",
  1848. /**
  1849. * @return {undefined}
  1850. */
  1851. "keyDown" : function() {
  1852. myGame[_0x40c0("0x199")](1);
  1853. },
  1854. "keyUp" : null
  1855. },
  1856. "hk_msg2" : {
  1857. "type" : _0x40c0("0xe1"),
  1858. "label" : _0x40c0("0x19a"),
  1859. "default" : "2",
  1860. /**
  1861. * @return {undefined}
  1862. */
  1863. "keyDown" : function() {
  1864. myGame[_0x40c0("0x199")](2);
  1865. },
  1866. "keyUp" : null
  1867. },
  1868. "hk_msg3" : {
  1869. "type" : "MESSAGE",
  1870. "label" : _0x40c0("0x19b"),
  1871. "default" : "3",
  1872. /**
  1873. * @return {undefined}
  1874. */
  1875. "keyDown" : function() {
  1876. myGame[_0x40c0("0x199")](3);
  1877. },
  1878. "keyUp" : null
  1879. },
  1880. "hk_msg4" : {
  1881. "type" : "MESSAGE",
  1882. "label" : _0x40c0("0x19c"),
  1883. "default" : "4",
  1884. /**
  1885. * @return {undefined}
  1886. */
  1887. "keyDown" : function() {
  1888. myGame[_0x40c0("0x199")](4);
  1889. },
  1890. "keyUp" : null
  1891. },
  1892. "hk_msg5" : {
  1893. "type" : "MESSAGE",
  1894. "label" : _0x40c0("0x19d"),
  1895. "default" : "5",
  1896. /**
  1897. * @return {undefined}
  1898. */
  1899. "keyDown" : function() {
  1900. myGame[_0x40c0("0x199")](5);
  1901. },
  1902. "keyUp" : null
  1903. },
  1904. "hk_msg6" : {
  1905. "type" : _0x40c0("0xe1"),
  1906. "label" : _0x40c0("0x19e"),
  1907. "default" : "6",
  1908. /**
  1909. * @return {undefined}
  1910. */
  1911. "keyDown" : function() {
  1912. myGame["sendAlertMsg"](6);
  1913. },
  1914. "keyUp" : null
  1915. },
  1916. "hk_msg7" : {
  1917. "type" : _0x40c0("0xe1"),
  1918. "label" : _0x40c0("0x19f"),
  1919. "default" : "7",
  1920. /**
  1921. * @return {undefined}
  1922. */
  1923. "keyDown" : function() {
  1924. myGame[_0x40c0("0x199")](7);
  1925. },
  1926. "keyUp" : null
  1927. },
  1928. "hk_msg8" : {
  1929. "type" : _0x40c0("0xe1"),
  1930. "label" : _0x40c0("0x1a0"),
  1931. "default" : "8",
  1932. /**
  1933. * @return {undefined}
  1934. */
  1935. "keyDown" : function() {
  1936. myGame[_0x40c0("0x199")](8);
  1937. },
  1938. "keyUp" : null
  1939. },
  1940. "hk_msg9" : {
  1941. "type" : _0x40c0("0xe1"),
  1942. "label" : _0x40c0("0x1a1"),
  1943. "default" : "9",
  1944. /**
  1945. * @return {undefined}
  1946. */
  1947. "keyDown" : function() {
  1948. myGame[_0x40c0("0x199")](9);
  1949. },
  1950. "keyUp" : null
  1951. },
  1952. "hk_msg10" : {
  1953. "type" : _0x40c0("0xe1"),
  1954. "label" : _0x40c0("0x1a2"),
  1955. "default" : "0",
  1956. /**
  1957. * @return {undefined}
  1958. */
  1959. "keyDown" : function() {
  1960. myGame["sendAlertMsg"](10);
  1961. },
  1962. "keyUp" : null
  1963. },
  1964. "hk_msg11" : {
  1965. "type" : _0x40c0("0xe1"),
  1966. "label" : _0x40c0("0x1a3"),
  1967. "default" : "UP",
  1968. /**
  1969. * @return {undefined}
  1970. */
  1971. "keyDown" : function() {
  1972. myGame[_0x40c0("0x199")](11);
  1973. },
  1974. "keyUp" : null
  1975. },
  1976. "hk_msg12" : {
  1977. "type" : _0x40c0("0xe1"),
  1978. "label" : _0x40c0("0x1a4"),
  1979. "default" : _0x40c0("0x17a"),
  1980. /**
  1981. * @return {undefined}
  1982. */
  1983. "keyDown" : function() {
  1984. myGame[_0x40c0("0x199")](12);
  1985. },
  1986. "keyUp" : null
  1987. },
  1988. "hk_msg13" : {
  1989. "type" : _0x40c0("0xe1"),
  1990. "label" : _0x40c0("0x1a5"),
  1991. "default" : _0x40c0("0x1a6"),
  1992. /**
  1993. * @return {undefined}
  1994. */
  1995. "keyDown" : function() {
  1996. myGame[_0x40c0("0x199")](13);
  1997. },
  1998. "keyUp" : null
  1999. },
  2000. "hk_msg14" : {
  2001. "type" : "MESSAGE",
  2002. "label" : _0x40c0("0x1a7"),
  2003. "default" : _0x40c0("0x1a8"),
  2004. /**
  2005. * @return {undefined}
  2006. */
  2007. "keyDown" : function() {
  2008. myGame[_0x40c0("0x199")](14);
  2009. },
  2010. "keyUp" : null
  2011. }
  2012. }
  2013. };
  2014. var leaderB = {
  2015. "isLBtext" : ![],
  2016. "count" : 0,
  2017. "html" : "",
  2018. /**
  2019. * @param {string} reset
  2020. * @param {?} highlighter
  2021. * @return {undefined}
  2022. */
  2023. "getHtml" : function(reset, highlighter) {
  2024. if (reset === "Leaderboard") {
  2025. /** @type {number} */
  2026. this[_0x40c0("0x1a9")] = 0;
  2027. /** @type {boolean} */
  2028. this[_0x40c0("0x1aa")] = !![];
  2029. /** @type {string} */
  2030. this[_0x40c0("0xa0")] = "";
  2031. return;
  2032. }
  2033. if (this["count"] < 11) {
  2034. this[_0x40c0("0x1a9")]++;
  2035. if (this["count"] !== 11) {
  2036. this[_0x40c0("0xa0")] += highlighter === _0x40c0("0x1ab") ? _0x40c0("0x1ac") + reset + "</span>" : "<span>" + reset + "</span>";
  2037. }
  2038. }
  2039. if (this[_0x40c0("0x1a9")] === 11 && this["isLBtext"]) {
  2040. this[_0x40c0("0x1ad")]();
  2041. /** @type {boolean} */
  2042. this[_0x40c0("0x1aa")] = ![];
  2043. }
  2044. },
  2045. /**
  2046. * @return {undefined}
  2047. */
  2048. "updateLB" : function() {
  2049. document[_0x40c0("0x68")]("lb-pos")["innerHTML"] = this["html"];
  2050. }
  2051. };
  2052. var fpsBar = {
  2053. "oldDate" : 0,
  2054. "fpsCount" : 0,
  2055. "FPS" : 0,
  2056. /**
  2057. * @return {undefined}
  2058. */
  2059. "calcFps" : function() {
  2060. var _0x57dbc5 = Date[_0x40c0("0x13e")]();
  2061. if (_0x57dbc5 - this[_0x40c0("0x1af")] > 1E3) {
  2062. this[_0x40c0("0x1af")] = _0x57dbc5;
  2063. this[_0x40c0("0x1b0")] = this["fpsCount"];
  2064. /** @type {number} */
  2065. this[_0x40c0("0x1b1")] = 0;
  2066. this[_0x40c0("0x1b2")]();
  2067. } else {
  2068. this[_0x40c0("0x1b1")]++;
  2069. }
  2070. },
  2071. /**
  2072. * @param {number} dataAndEvents
  2073. * @return {?}
  2074. */
  2075. "calcSTE" : function(dataAndEvents) {
  2076. return dataAndEvents > 35 ? Math["floor"](dataAndEvents * (1E3 > dataAndEvents ? 0.35 : 0.38)) : null;
  2077. },
  2078. /**
  2079. * @return {undefined}
  2080. */
  2081. "updateFPSbar" : function() {
  2082. /** @type {string} */
  2083. var str = "";
  2084. var pre = this[_0x40c0("0x1b4")](playerData[_0x40c0("0x120")]);
  2085. if (opt["showFps"]["val"]) {
  2086. str += _0x40c0("0x1b5") + this["FPS"];
  2087. }
  2088. if (playerData[_0x40c0("0x7d")]) {
  2089. if (opt[_0x40c0("0x1b6")] && playerData["score"]) {
  2090. str += _0x40c0("0x1b7") + playerData[_0x40c0("0x11f")];
  2091. }
  2092. if (opt[_0x40c0("0x1b8")] && pre) {
  2093. str += _0x40c0("0x1b9") + pre;
  2094. }
  2095. if (opt[_0x40c0("0x1ba")] && playerData[_0x40c0("0x121")]) {
  2096. str += " [" + playerData[_0x40c0("0x121")] + _0x40c0("0x1bb");
  2097. }
  2098. if (!opt[_0x40c0("0x1bc")][_0x40c0("0x1e")]) {
  2099. str += _0x40c0("0x1bd");
  2100. }
  2101. }
  2102. /** @type {string} */
  2103. document[_0x40c0("0x68")](_0x40c0("0x1be"))[_0x40c0("0x1ae")] = str;
  2104. }
  2105. };
  2106. /**
  2107. * @return {undefined}
  2108. */
  2109. function editCore() {
  2110. $[_0x40c0("0x1bf")](_0x40c0("0x1c0"), {
  2111. /**
  2112. * @param {?} response
  2113. * @return {undefined}
  2114. */
  2115. "success" : function(response) {
  2116. var data = response;
  2117. data = data[_0x40c0("0x144")](/(\(function\(\w\){)(function\s\w+\(\w\))/i, "$1var myCtx = null;$2");
  2118. data = data[_0x40c0("0x144")](/(if\(null==(\w)\)return-1;)(\w=\w\.getContext\("2d"\));/i, _0x40c0("0x1c1"));
  2119. data = data[_0x40c0("0x144")](/(function\s(\w)\(\w\){return\s\w+\(\w,\w\)})(function)/i, "$1agarFunc.getString = $2;$3");
  2120. data = data["replace"](/if\(\(\w\[\d+\]\|0\)!=0\?\(\w\[\d+\]\|\w\[(\w)\+\d+>>0\]\)<<\d+>>\d+==0:0\)\w=\w\[\w\+\d+>>2\]\|0;else\s(y=0;)/i, _0x40c0("0x1c2"));
  2121. data = data["replace"](/(>>3\]\*1\.1;return}function\s\w+\(\w,\w\){)(\w=\w)/i, _0x40c0("0x1c3"));
  2122. data = data[_0x40c0("0x144")](/(\w=\w\[\w>>2\]\|0;\w\[\w\+\d+>>3\]=(\w);\w\[\w\+\d+>>3\]=(\w);\w\[\w\+\d+>>3\]=(\w);\w\[\w\+\d+>>3\]=(\w);)/i, "$1mapData.setCoords($2,$3,$4,$5);");
  2123. data = data[_0x40c0("0x144")](/(\w+\(\d+,\w\[\w>>2\]\|0,\+(\w),\+\w\)\|0;\w+\(\d+,\w\[\w>>2\]\|0,\+-(\+\w\[\w\+\d+>>3\]),\+-(\+\w\[\w\+\d+>>3\])\)\|0;)/i, "$1 camera.visibility = $2; playerData.x = $3; playerData.y = $4; renderEngine.main(myCtx);agarFunc.updCnt++;fpsBar.calcFps();");
  2124. data = data["replace"](/(return}\w+\(\w\);\w=\w\[\w>>2\]\|0;)(\w\[\w>>3\]=)(\w);(\w)/i, _0x40c0("0x1c4"));
  2125. data = data["replace"](/(\w)(=\+(\w\[\w>>3\])\*\+\w\()(\.\d)(,\+\w\);)/i, _0x40c0("0x1c5"));
  2126. data = data["replace"](/if\((\+\w\[\w>>3\])<1\.0\){/i, _0x40c0("0x1c6"));
  2127. data = data["replace"](/(do{\w=\+\w\[\(\w\[\w>>2\]\|0\)\+\d+>>2];)(\w=\w\+\s(\+\(~~\+\w\(\+\(\w\*\w\/100\.0\)\)\|0\));\w=\w\+\d+\|0}while\(\(\w\|0\)!=\(\w\|0\)\);(\w)=\w;)/i, "playerData.pieces=0;playerData.bigCellMass=0;$1 playerData.pieces+=1;massN = $3;if(massN>playerData.bigCellMass){playerData.bigCellMass = massN}$2if($4>playerData.score){playerData.score=$4}playerData.mass=$4;");
  2128. data = data["replace"](/(\w=0;\w=\w\[\w\+(\d+)>>2\]\|0;\w=\w\[(\d+)\]\|0;\w=\w\[\d+\]\|0;)(\w:do)/i, _0x40c0("0x1c7"));
  2129. data = data["replace"](/(\|0\)!=0:0\){\w=\w;break}\w=\w\+(\d+)\|0;)(\w=~~\()/, _0x40c0("0x1c8"));
  2130. data = data["replace"](/(\w)\.(\w+)\.onPlayerSpawn\(\)/i, _0x40c0("0x1c9"));
  2131. data = data["replace"](/(\w)\.(\w+)\.onPlayerDeath(\(\w,\w,\w,\w,\w,\w\))/i, _0x40c0("0x1ca"));
  2132. data = data[_0x40c0("0x144")](/(\w=\+\w\[\w>>2\];if\(\w)<=20\.0(\){\w=\w;return})(if\(!(\w)\){if\(\(\w\[\d+\]\|0\)!=\(\w\[\d+\]\|0\)\){\w=\w;return}if\(\(\w\[\w\+\d+>>0\]\|0\)!=0\?\(\w\[\w>>0\]\|0\)==0:0\){\w=\w;return}})/, _0x40c0("0x1cb"));
  2133. data = data["replace"](/(\w+\(\d+,\w\|0\)\|0;\w=\w;return})(\w+\(\w,\w\);)(\w=\w\[\w>>2\])/i, _0x40c0("0x1cc"));
  2134. data = data[_0x40c0("0x144")](/split:function\(\){(\w+)\(\)}/i, _0x40c0("0x1cd"));
  2135. data = data[_0x40c0("0x144")](/eject:function\(\){(\w+)\(\)}/i, _0x40c0("0x1ce"));
  2136. data = data[_0x40c0("0x144")](/(>>2]=\w;)(do\sif\((\w)\|\(\w\[\d+\]\|0\)!=0\){\w=\w\[\w\+)/, _0x40c0("0x1cf"));
  2137. data = data[_0x40c0("0x144")](/(\w+\(\d+,\w\[\w>>2\]\|0,\w\|0,\+\w,\+\w,\+\(\+\(\w\|0\)\),\+\(\+\(\w\|0\)\)\)\|0)(}\w=\w\+5)/, _0x40c0("0x1d0"));
  2138. data = data[_0x40c0("0x144")](/do if\((\w)\){\w=!\(\+\w\[\w>>2\]<=20\.0\);\w+\(\d+,\w\[\w>>2\]\|0\)\|0;\w+\(\d+,\w\[\w>>2\]\|0,\+\(\+\w\[\w>>2\]\),\+\(\+\w\[\w>>2]\),\+\(\+\w\[\w>>2\]\+5\.0\),0\.0,6\.283185307179586,0\)\|0;\w+\(\d+,\w\[\w>>2\]\|0\)\|0;(\w=\w\[\w>>2\]\|0);if\(\w\){\w+\(\d+,\w\|0,\w&255\|0,\w&255\|0,\w&255\|0\)\|0;\w+\(\d+,\w\[\w>>2\]\|0\)\|0;(\w+\(\d+,\w\[\w>>2\]\|0\)\|0);(\w+\(\d+,\w\[\w>>2\]\|0,\+\(\+\w\[\w>>2\]\),\+\(\+\w\[\w>>2\]\),)\+\(\+\w\[\w>>2\]-\(\(\w\|0\)!=0\?0\.0:5\.0\)\)(,0\.0,6\.283185307179586,0\)\|0);(\w+\(\d+,\w\[\w>>2\]\|0\)\|0);(\w+\(\d+,\w\[\w>>2\]\|0,\w&255\|0,\w&255\|0,\w&255\|0\)\|0);(\w+\(\d+,\w\[\w>>2\]\|0\)\|0);break}else{\w+\(\d+,\w\|0,\w&255\|0,\w&255\|0,\w&255\|0\)\|0;\w+\(\d+,\w\[\w>>2\]\|0\)\|0;break}}/i,
  2139. _0x40c0("0x1d1"));
  2140. data = data["replace"](_0x40c0("0x1d2"), _0x40c0("0x1d3"));
  2141. data = data[_0x40c0("0x144")]("n.g[a].strokeText(F(b),c,e)", _0x40c0("0x1d4"));
  2142. data = data["replace"](_0x40c0("0x1d5"), "");
  2143. data = data[_0x40c0("0x144")](_0x40c0("0x1d6"), "");
  2144. data = data[_0x40c0("0x144")](_0x40c0("0x1d7"), "");
  2145. data = data[_0x40c0("0x144")](_0x40c0("0x1d8"), "");
  2146. data = data["replace"](_0x40c0("0x1d9"), "");
  2147. data = data[_0x40c0("0x144")](/(\d+\|0;)(\w)(=\(\w\|0\)<20\?20\.0:\+\(e\|0\);\w=\w\+\d+\|0;)/i, _0x40c0("0x1da"));
  2148. data = data[_0x40c0("0x144")](/(\d+\);)(\w)(=\(\w\|0\)<26\?26\.0:\+\(\w\|0\);)/, "$1$2$3$2=~~($2*1.3);");
  2149. data = data[_0x40c0("0x144")](/(while\(0\);)([\w$]+\(\w,\w\);)([\w$]+\(\w,\w\);)([\w$]+\(\w,\w\);)([\w$]+\(\w,\w\);)(\w\[\w\+\d+>>0\]=1;\w=\w;return})/i, "$1$6");
  2150. var oResult = document[_0x40c0("0x122")](_0x40c0("0x1db"));
  2151. oResult[_0x40c0("0x1dc")] = data;
  2152. /** @type {boolean} */
  2153. oResult[_0x40c0("0x1dd")] = !![];
  2154. document[_0x40c0("0x58")][_0x40c0("0x1de")](oResult);
  2155. },
  2156. "dataType" : _0x40c0("0xd1"),
  2157. "method" : "GET",
  2158. "cache" : ![],
  2159. "crossDomain" : !![]
  2160. });
  2161. }
  2162. /**
  2163. * @param {string} k
  2164. * @return {undefined}
  2165. */
  2166. function setOpt(k) {
  2167. var r20 = $("#" + k)["is"](_0x40c0("0x1df"));
  2168. if (k in opt) {
  2169. opt[k][_0x40c0("0xaa")](r20);
  2170. }
  2171. var msg = {};
  2172. var name;
  2173. for (name in opt) {
  2174. msg[name] = opt[name][_0x40c0("0x1e")];
  2175. }
  2176. localStorage[_0x40c0("0x64")](_0x40c0("0xcd"), JSON["stringify"](msg));
  2177. }
  2178. /**
  2179. * @return {undefined}
  2180. */
  2181. function renderNodes() {
  2182. setInterval(minimap[_0x40c0("0x1e0")], 100 / 3);
  2183. }
  2184. /**
  2185. * @return {undefined}
  2186. */
  2187. function addListeners() {
  2188. document[_0x40c0("0x58")][_0x40c0("0x1e1")](_0x40c0("0xea"), function(args) {
  2189. var fragment = hotkeys[_0x40c0("0x177")](args[_0x40c0("0x176")]);
  2190. if (fragment) {
  2191. fragment = hotkeys[_0x40c0("0xec")](args);
  2192. if ($(_0x40c0("0xd4"))["is"](_0x40c0("0x1e2")) && (!$(_0x40c0("0xcc"))["is"](_0x40c0("0x1e3")) || fragment == hotkeys[_0x40c0("0xe2")][_0x40c0("0x1e4")])) {
  2193. if (fragment in hotkeys["hkMappingNow"]) {
  2194. if (hotkeys[_0x40c0("0xdf")][hotkeys[_0x40c0("0x17d")][fragment]]["keyDown"]) {
  2195. hotkeys[_0x40c0("0xdf")][hotkeys[_0x40c0("0x17d")][fragment]][_0x40c0("0x1e5")]();
  2196. }
  2197. }
  2198. }
  2199. if ($(_0x40c0("0xd6"))["is"](_0x40c0("0x138")) && (args[_0x40c0("0x1e6")]["id"][_0x40c0("0x142")](_0x40c0("0x1e7")) + 1 && fragment === _0x40c0("0x186"))) {
  2200. var r20 = $("#" + args[_0x40c0("0x1e6")]["id"])[_0x40c0("0x1e")]();
  2201. r20 += " ";
  2202. $("#" + args[_0x40c0("0x1e6")]["id"])[_0x40c0("0x1e")](r20);
  2203. }
  2204. if ($(_0x40c0("0xcc"))["is"](_0x40c0("0x1e3")) && fragment === _0x40c0("0x186")) {
  2205. r20 = $(_0x40c0("0xcc"))[_0x40c0("0x1e")]();
  2206. r20 += " ";
  2207. $(_0x40c0("0xcc"))["val"](r20);
  2208. }
  2209. }
  2210. }, ![]);
  2211. document[_0x40c0("0x58")][_0x40c0("0x1e1")]("keyup", function(value) {
  2212. var strValue = hotkeys[_0x40c0("0x177")](value[_0x40c0("0x176")]);
  2213. if (strValue) {
  2214. strValue = hotkeys[_0x40c0("0xec")](value);
  2215. if ($(_0x40c0("0xd4"))["is"](_0x40c0("0x1e2"))) {
  2216. if (strValue in hotkeys[_0x40c0("0x17d")]) {
  2217. if (hotkeys["list"][hotkeys["hkMappingNow"][strValue]][_0x40c0("0x1e8")]) {
  2218. hotkeys["list"][hotkeys[_0x40c0("0x17d")][strValue]]["keyUp"]();
  2219. }
  2220. }
  2221. }
  2222. }
  2223. }, ![]);
  2224. document[_0x40c0("0x58")][_0x40c0("0x1e1")](_0x40c0("0x1e9"), function(Data) {
  2225. if ($("#overlays")["is"](_0x40c0("0x1e2"))) {
  2226. if (opt[_0x40c0("0x1ea")][_0x40c0("0x1e")] && (1 == Data[_0x40c0("0x1eb")] && !opt[_0x40c0("0x1ec")]["val"] || 3 == Data[_0x40c0("0x1eb")] && opt[_0x40c0("0x1ec")][_0x40c0("0x1e")])) {
  2227. hotkeys["macroFeed"](1);
  2228. }
  2229. if (opt[_0x40c0("0x1ed")][_0x40c0("0x1e")] && (3 == Data["which"] && !opt[_0x40c0("0x1ec")][_0x40c0("0x1e")] || 1 == Data[_0x40c0("0x1eb")] && opt["mouseInvert"][_0x40c0("0x1e")])) {
  2230. window[_0x40c0("0x17f")][_0x40c0("0x181")]();
  2231. }
  2232. }
  2233. }, ![]);
  2234. document[_0x40c0("0x58")][_0x40c0("0x1e1")]("mouseup", function(dataAndEvents) {
  2235. if ($(_0x40c0("0xd4"))["is"](_0x40c0("0x1e2"))) {
  2236. if (opt[_0x40c0("0x1ea")][_0x40c0("0x1e")] && (1 == dataAndEvents[_0x40c0("0x1eb")] && !opt[_0x40c0("0x1ec")][_0x40c0("0x1e")] || 3 == dataAndEvents[_0x40c0("0x1eb")] && opt["mouseInvert"][_0x40c0("0x1e")])) {
  2237. hotkeys[_0x40c0("0x184")](0);
  2238. }
  2239. }
  2240. }, ![]);
  2241. document[_0x40c0("0x68")]("canvas")[_0x40c0("0x1e1")](_0x40c0("0x1ee"), function(dataAndEvents) {
  2242. dataAndEvents[_0x40c0("0xeb")]();
  2243. return![];
  2244. }, ![]);
  2245. }
  2246. /**
  2247. * @return {undefined}
  2248. */
  2249. function init() {
  2250. var valueAccessor = function() {
  2251. /** @type {boolean} */
  2252. var showMessage = !![];
  2253. return function(R, create) {
  2254. /** @type {Function} */
  2255. var body = showMessage ? function() {
  2256. if (create) {
  2257. var r = create["apply"](R, arguments);
  2258. /** @type {null} */
  2259. create = null;
  2260. return r;
  2261. }
  2262. } : function() {
  2263. };
  2264. /** @type {boolean} */
  2265. showMessage = ![];
  2266. return body;
  2267. };
  2268. }();
  2269. var observable = valueAccessor(this, function() {
  2270. /**
  2271. * @return {?}
  2272. */
  2273. var tobj = function() {
  2274. return "dev";
  2275. };
  2276. /**
  2277. * @return {?}
  2278. */
  2279. var stringify = function() {
  2280. return "window";
  2281. };
  2282. /**
  2283. * @return {?}
  2284. */
  2285. var callback = function() {
  2286. /** @type {RegExp} */
  2287. var rPrefix = new RegExp("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}");
  2288. return!rPrefix["test"](tobj["toString"]());
  2289. };
  2290. /**
  2291. * @return {?}
  2292. */
  2293. var init = function() {
  2294. /** @type {RegExp} */
  2295. var rPrefix = new RegExp("(\\\\[x|u](\\w){2,4})+");
  2296. return rPrefix["test"](stringify["toString"]());
  2297. };
  2298. /**
  2299. * @param {(Object|string)} deepDataAndEvents
  2300. * @return {undefined}
  2301. */
  2302. var done = function(deepDataAndEvents) {
  2303. /** @type {number} */
  2304. var lastIdx = ~-1 >> 1 + 255 % 0;
  2305. if (deepDataAndEvents["indexOf"]("i" === lastIdx)) {
  2306. onComplete(deepDataAndEvents);
  2307. }
  2308. };
  2309. /**
  2310. * @param {(Object|string)} deepDataAndEvents
  2311. * @return {undefined}
  2312. */
  2313. var onComplete = function(deepDataAndEvents) {
  2314. /** @type {number} */
  2315. var _0x4fe64a = ~-4 >> 1 + 255 % 0;
  2316. if (deepDataAndEvents["indexOf"]((!![] + "")[3]) !== _0x4fe64a) {
  2317. done(deepDataAndEvents);
  2318. }
  2319. };
  2320. if (!callback()) {
  2321. if (!init()) {
  2322. done("ind\u0435xOf");
  2323. } else {
  2324. done("indexOf");
  2325. }
  2326. } else {
  2327. done("ind\u0435xOf");
  2328. }
  2329. });
  2330. observable();
  2331. var requestAnimationFrame = function() {
  2332. /** @type {boolean} */
  2333. var showMessage = !![];
  2334. return function(value, deferred) {
  2335. /** @type {Function} */
  2336. var body = showMessage ? function() {
  2337. if (deferred) {
  2338. var str = deferred[_0x40c0("0x1ef")](value, arguments);
  2339. /** @type {null} */
  2340. deferred = null;
  2341. return str;
  2342. }
  2343. } : function() {
  2344. };
  2345. /** @type {boolean} */
  2346. showMessage = ![];
  2347. return body;
  2348. };
  2349. }();
  2350. var id = requestAnimationFrame(this, function() {
  2351. var factory = Function(_0x40c0("0x1f0") + _0x40c0("0x1f1") + ");");
  2352. /**
  2353. * @return {undefined}
  2354. */
  2355. var e = function() {
  2356. };
  2357. var global = factory();
  2358. if (!global[_0x40c0("0x1f2")]) {
  2359. global[_0x40c0("0x1f2")] = function(error) {
  2360. var console = {};
  2361. /** @type {function (): undefined} */
  2362. console["log"] = error;
  2363. /** @type {function (): undefined} */
  2364. console["warn"] = error;
  2365. /** @type {function (): undefined} */
  2366. console[_0x40c0("0x1f5")] = error;
  2367. /** @type {function (): undefined} */
  2368. console[_0x40c0("0x163")] = error;
  2369. /** @type {function (): undefined} */
  2370. console["error"] = error;
  2371. /** @type {function (): undefined} */
  2372. console[_0x40c0("0x1f7")] = error;
  2373. /** @type {function (): undefined} */
  2374. console[_0x40c0("0x1f8")] = error;
  2375. return console;
  2376. }(e);
  2377. } else {
  2378. /** @type {function (): undefined} */
  2379. global[_0x40c0("0x1f2")]["log"] = e;
  2380. /** @type {function (): undefined} */
  2381. global[_0x40c0("0x1f2")][_0x40c0("0x1f4")] = e;
  2382. /** @type {function (): undefined} */
  2383. global[_0x40c0("0x1f2")][_0x40c0("0x1f5")] = e;
  2384. /** @type {function (): undefined} */
  2385. global[_0x40c0("0x1f2")][_0x40c0("0x163")] = e;
  2386. /** @type {function (): undefined} */
  2387. global[_0x40c0("0x1f2")][_0x40c0("0x1f6")] = e;
  2388. /** @type {function (): undefined} */
  2389. global["console"]["exception"] = e;
  2390. /** @type {function (): undefined} */
  2391. global[_0x40c0("0x1f2")]["trace"] = e;
  2392. }
  2393. });
  2394. id();
  2395. editCore();
  2396. loadMenu[_0x40c0("0x1f9")]();
  2397. addListeners();
  2398. connect[_0x40c0("0x1f9")]();
  2399. }
  2400. init();
  2401. setTimeout(function() {
  2402. $("#connect")["on"](_0x40c0("0xa3"), function() {
  2403. functions["connect"]();
  2404. });
  2405. var functions = {
  2406. "i" : 0,
  2407. /**
  2408. * @return {undefined}
  2409. */
  2410. "init" : function() {
  2411. var deferred = WebSocket[_0x40c0("0x1fb")][_0x40c0("0x1fa")];
  2412. /**
  2413. * @return {undefined}
  2414. */
  2415. WebSocket["prototype"]["send"] = function() {
  2416. if (this[_0x40c0("0x1fd")]["match"](/tech\.agar\.io/i)) {
  2417. functions["i"]++;
  2418. if (functions["i"] < 2) {
  2419. var splits = this[_0x40c0("0x1fd")];
  2420. splits = splits[_0x40c0("0x132")]("ip-")[_0x40c0("0x1fe")]("");
  2421. splits = splits["split"](_0x40c0("0x1ff"))[_0x40c0("0x1fe")]("");
  2422. splits = splits["split"](_0x40c0("0x200"))["join"]("");
  2423. splits = splits[_0x40c0("0x132")]("/")[_0x40c0("0x1fe")]("");
  2424. splits = splits[_0x40c0("0x132")]("-")[_0x40c0("0x1fe")](".");
  2425. functions[_0x40c0("0x201")] = _0x40c0("0x200") + splits;
  2426. document[_0x40c0("0x68")](_0x40c0("0x202"))[_0x40c0("0xcb")] = functions["serverIp"];
  2427. toastr[_0x40c0("0x163")](_0x40c0("0x203") + _0x40c0("0x200") + splits);
  2428. }
  2429. }
  2430. deferred[_0x40c0("0x1ef")](this, arguments);
  2431. };
  2432. functions[_0x40c0("0x204")]();
  2433. },
  2434. "serverIp" : null,
  2435. /**
  2436. * @return {undefined}
  2437. */
  2438. "onClose" : function() {
  2439. var f = WebSocket[_0x40c0("0x1fb")][_0x40c0("0x205")];
  2440. /**
  2441. * @return {undefined}
  2442. */
  2443. WebSocket[_0x40c0("0x1fb")][_0x40c0("0x205")] = function() {
  2444. toastr[_0x40c0("0x206")](_0x40c0("0x207"));
  2445. /** @type {number} */
  2446. functions["i"] = 0;
  2447. };
  2448. f["apply"](this, arguments);
  2449. },
  2450. /**
  2451. * @return {undefined}
  2452. */
  2453. "connect" : function() {
  2454. var r20 = document[_0x40c0("0x68")](_0x40c0("0x202"))[_0x40c0("0xcb")];
  2455. core[_0x40c0("0x156")](r20);
  2456. }
  2457. };
  2458. functions["init"]();
  2459. }, 2E3);
  2460. setTimeout(function() {
  2461. /**
  2462. * @return {undefined}
  2463. */
  2464. function f() {
  2465. if ($("#overlays")["is"](_0x40c0("0x138"))) {
  2466. var _0x31c0d4 = $(_0x40c0("0xb4"))[_0x40c0("0x1e")]()[_0x40c0("0x132")]("#")[1];
  2467. var _0x2dd4cd = $(_0x40c0("0x222"))["text"]();
  2468. var _0x15c709 = $(_0x40c0("0x216"))["val"]()[_0x40c0("0x132")](_0x40c0("0x200"))[1];
  2469. var _0x6116a9 = $(_0x40c0("0x223"))[_0x40c0("0xd1")]();
  2470. $(_0x40c0("0x224"))["empty"]();
  2471. $(_0x40c0("0x225"))[_0x40c0("0x8d")](" " + _0x31c0d4);
  2472. $(_0x40c0("0x226"))[_0x40c0("0x8d")](" " + _0x15c709);
  2473. $(_0x40c0("0x227"))[_0x40c0("0x8d")](" " + _0x2dd4cd);
  2474. $(_0x40c0("0x228"))[_0x40c0("0x8d")](" " + _0x6116a9);
  2475. var r20 = $(_0x40c0("0x21f"))["html"]();
  2476. $("#lbposition")[_0x40c0("0xa0")](r20);
  2477. }
  2478. setTimeout(f, 100);
  2479. }
  2480. /**
  2481. * @return {undefined}
  2482. */
  2483. function process() {
  2484. /** @type {Date} */
  2485. var date = new Date;
  2486. var x = date[_0x40c0("0x23d")]();
  2487. var y = date[_0x40c0("0x23e")]();
  2488. y = round(y);
  2489. var oid = date["getFullYear"]();
  2490. var _0x9b60e2 = date[_0x40c0("0x15a")]();
  2491. var pos1 = date[_0x40c0("0x15b")]();
  2492. var pos2 = date[_0x40c0("0x240")]();
  2493. pos1 = clone(pos1);
  2494. pos2 = clone(pos2);
  2495. /** @type {string} */
  2496. document[_0x40c0("0x68")](_0x40c0("0x241"))[_0x40c0("0x1ae")] = x + "-" + y + "-" + oid + _0x40c0("0x242") + _0x9b60e2 + ":" + pos1 + ":" + pos2;
  2497. /** @type {number} */
  2498. var to = setTimeout(process, 500);
  2499. }
  2500. /**
  2501. * @param {number} object
  2502. * @return {?}
  2503. */
  2504. function clone(object) {
  2505. if (object < 10) {
  2506. /** @type {string} */
  2507. object = "0" + object;
  2508. }
  2509. return object;
  2510. }
  2511. /**
  2512. * @param {number} v11
  2513. * @return {?}
  2514. */
  2515. function round(v11) {
  2516. if (v11 == 0) {
  2517. return "1";
  2518. }
  2519. if (v11 == 1) {
  2520. return "2";
  2521. }
  2522. if (v11 == 2) {
  2523. return "3";
  2524. }
  2525. if (v11 == 3) {
  2526. return "4";
  2527. }
  2528. if (v11 == 4) {
  2529. return "5";
  2530. }
  2531. if (v11 == 5) {
  2532. return "6";
  2533. }
  2534. if (v11 == 6) {
  2535. return "7";
  2536. }
  2537. if (v11 == 7) {
  2538. return "8";
  2539. }
  2540. if (v11 == 8) {
  2541. return "9";
  2542. }
  2543. if (v11 == 9) {
  2544. return "10";
  2545. }
  2546. if (v11 == 10) {
  2547. return "11";
  2548. }
  2549. if (v11 == 11) {
  2550. return "12";
  2551. }
  2552. }
  2553. var special = document[_0x40c0("0x122")](_0x40c0("0x208"));
  2554. /** @type {string} */
  2555. special["rel"] = "icon";
  2556. special[_0x40c0("0x20a")] = _0x40c0("0x20b");
  2557. special["type"] = _0x40c0("0x20c");
  2558. try {
  2559. document[_0x40c0("0x20d")](_0x40c0("0x20e"))[0][_0x40c0("0x1de")](special);
  2560. } catch (_0xdacaac) {
  2561. }
  2562. $(_0x40c0("0x20f"))["html"](_0x40c0("0x210"));
  2563. setTimeout(function() {
  2564. toastr[_0x40c0("0x15c")](_0x40c0("0x211"));
  2565. }, 100);
  2566. setTimeout(function() {
  2567. toastr[_0x40c0("0x163")](_0x40c0("0x212"));
  2568. }, 500);
  2569. $(".agario-panel-freecoins")[_0x40c0("0x9e")](_0x40c0("0x213"));
  2570. $(_0x40c0("0x214"))[_0x40c0("0x8d")](_0x40c0("0x215"));
  2571. $(_0x40c0("0x216"))[_0x40c0("0x9e")](_0x40c0("0x217"));
  2572. $(_0x40c0("0x218"))[_0x40c0("0x8d")](_0x40c0("0x219"));
  2573. $(_0x40c0("0x21a"))[_0x40c0("0x8d")](_0x40c0("0x21b"));
  2574. $(_0x40c0("0x21c"))["on"](_0x40c0("0xa3"), function() {
  2575. var relatedTarget = $(_0x40c0("0x21d"));
  2576. $(_0x40c0("0x58"))["append"](relatedTarget);
  2577. relatedTarget[_0x40c0("0x1e")]($(_0x40c0("0x21f"))["text"]())[_0x40c0("0x21e")]();
  2578. try {
  2579. document["execCommand"](_0x40c0("0x221"));
  2580. } catch (_0x25ba1b) {
  2581. }
  2582. relatedTarget[_0x40c0("0x8b")]();
  2583. });
  2584. f();
  2585. $(_0x40c0("0xad"))[_0x40c0("0x8d")](_0x40c0("0x229"));
  2586. $(_0x40c0("0x22a"))[_0x40c0("0x8d")](_0x40c0("0x22b"));
  2587. $(_0x40c0("0xad"))["append"]('<label>Profile </label><div id="panelAgario" style="border-radius: 8px; padding: 10px; margin: 0px 0px 10px; overflow: hidden; border: 2px solid #20103b!important;"></div>');
  2588. $(_0x40c0("0x22c"))[_0x40c0("0x95")]($(_0x40c0("0x22d")));
  2589. $("#openShopBtn")[_0x40c0("0x95")]($(_0x40c0("0x22d")));
  2590. $(_0x40c0("0x22e"))[_0x40c0("0x95")]($(_0x40c0("0x22d")));
  2591. $(_0x40c0("0x22f"))["appendTo"]($("#panelAgario"));
  2592. $(_0x40c0("0x58"))[_0x40c0("0x8d")]('<div id="mySettings" class="modal fade" role="dialog"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">&times;</button><h4 class="modal-title">Extra Settings</h4></div><div id="extrasettingspage" class="modal-body"></div><div class="modal-footer"><button type="button" class="btn btn-danger" id="close" data-dismiss="modal">Close</button></div></div></div>');
  2593. $(_0x40c0("0xad"))[_0x40c0("0x8d")](_0x40c0("0x230"));
  2594. $(_0x40c0("0x231"))["append"](_0x40c0("0x232"));
  2595. $("#hslo-profile")[_0x40c0("0x8d")](_0x40c0("0x233"));
  2596. $(_0x40c0("0x234"))[_0x40c0("0x8d")](_0x40c0("0x235"));
  2597. $(_0x40c0("0x236"))["remove"]();
  2598. $(_0x40c0("0x237"))[_0x40c0("0x97")]($(_0x40c0("0xab")));
  2599. $(_0x40c0("0xab"))["before"]($(_0x40c0("0x238")));
  2600. $(_0x40c0("0x239"))[_0x40c0("0x8b")]();
  2601. $(_0x40c0("0x23a"))["remove"]();
  2602. $(_0x40c0("0x23c"))[_0x40c0("0x23b")](_0x40c0("0xc2"));
  2603. process();
  2604. $(_0x40c0("0x243"))["append"](_0x40c0("0x244"));
  2605. if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x245"))) === !![]) {
  2606. $(_0x40c0("0x246"))[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
  2607. $("head")[_0x40c0("0x8d")](_0x40c0("0x248"));
  2608. } else {
  2609. if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x245"))) === ![]) {
  2610. $(_0x40c0("0x249"))[_0x40c0("0x8b")]();
  2611. $(_0x40c0("0x246"))[_0x40c0("0xd3")]("checked", ![]);
  2612. localStorage[_0x40c0("0x64")](_0x40c0("0x245"), ![]);
  2613. } else {
  2614. $("#blockads")[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
  2615. localStorage["setItem"](_0x40c0("0x245"), ![]);
  2616. }
  2617. }
  2618. $(_0x40c0("0x246"))[_0x40c0("0xaa")](function() {
  2619. if ($(this)["is"](":checked")) {
  2620. $(_0x40c0("0x246"))[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
  2621. $(_0x40c0("0x20e"))["append"](_0x40c0("0x248"));
  2622. localStorage[_0x40c0("0x64")](_0x40c0("0x245"), !![]);
  2623. } else {
  2624. $(_0x40c0("0x249"))[_0x40c0("0x8b")]();
  2625. $(_0x40c0("0x246"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
  2626. localStorage[_0x40c0("0x64")](_0x40c0("0x245"), ![]);
  2627. }
  2628. });
  2629. $(_0x40c0("0x243"))[_0x40c0("0x8d")]('<input id="nadpisnorm" class="form-control extrasettingsbox" disabled="" value=" Leaderboard header" ><input id="changelbheader" style="display:inline-block!important;width:35px!important;height:35px!important; margin-top: 15px!important;vertical-align:middle!important;background:url(check_radio_sheet.png) left top no-repeat;cursor:pointer!important;" type="checkbox">');
  2630. $(_0x40c0("0x24a"))[_0x40c0("0xaa")](function() {
  2631. if (this["checked"]) {
  2632. $(_0x40c0("0x24b"))[_0x40c0("0xd1")](_0x40c0("0x24c"));
  2633. localStorage[_0x40c0("0x64")](_0x40c0("0x24d"), _0x40c0("0x24e"));
  2634. } else {
  2635. $(_0x40c0("0x24b"))[_0x40c0("0xd1")](_0x40c0("0x210"));
  2636. localStorage[_0x40c0("0x64")]("S_changelbheader", "false");
  2637. }
  2638. });
  2639. if (localStorage[_0x40c0("0x66")]("S_changelbheader") == _0x40c0("0x24e")) {
  2640. $(_0x40c0("0x24a"))[_0x40c0("0xd3")]("checked", !![]);
  2641. $(_0x40c0("0x24a"))[_0x40c0("0x24f")]("change");
  2642. } else {
  2643. $(_0x40c0("0x24a"))["prop"](_0x40c0("0x247"), ![]);
  2644. $(_0x40c0("0x24a"))[_0x40c0("0x24f")](_0x40c0("0xaa"));
  2645. }
  2646. $(_0x40c0("0x243"))[_0x40c0("0x8d")]('<p><input id="strmm" class="form-control extrasettingsbox" disabled="" value=" Stream mode" ></p><input id="streamMode" style="display:inline-block!important;width:35px!important;height:35px!important;margin:5px 4px 0 0!important;vertical-align:middle!important;background:url(check_radio_sheet.png) left top no-repeat;cursor:pointer!important;" type="checkbox">');
  2647. if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")]("streamMode")) === !![]) {
  2648. $(_0x40c0("0x250"))["prop"](_0x40c0("0x247"), !![]);
  2649. $(_0x40c0("0x20e"))[_0x40c0("0x8d")](_0x40c0("0x251"));
  2650. } else {
  2651. if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x252"))) === ![]) {
  2652. $(_0x40c0("0x253"))[_0x40c0("0x8b")]();
  2653. $(_0x40c0("0x250"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
  2654. localStorage[_0x40c0("0x64")]("streamMode", ![]);
  2655. } else {
  2656. $(_0x40c0("0x250"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
  2657. localStorage[_0x40c0("0x64")]("streamMode", ![]);
  2658. }
  2659. }
  2660. $(_0x40c0("0x250"))[_0x40c0("0xaa")](function() {
  2661. if ($(this)["is"](":checked")) {
  2662. $("#streamMode")[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
  2663. $(_0x40c0("0x20e"))[_0x40c0("0x8d")](_0x40c0("0x251"));
  2664. localStorage["setItem"](_0x40c0("0x252"), !![]);
  2665. } else {
  2666. $(_0x40c0("0x253"))["remove"]();
  2667. $(_0x40c0("0x250"))["prop"](_0x40c0("0x247"), ![]);
  2668. localStorage["setItem"](_0x40c0("0x252"), ![]);
  2669. }
  2670. });
  2671. $(_0x40c0("0x243"))[_0x40c0("0x8d")](_0x40c0("0x254"));
  2672. if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x255"))) === !![]) {
  2673. $(_0x40c0("0x256"))[_0x40c0("0xd3")]("checked", !![]);
  2674. $(_0x40c0("0x20e"))["append"]('<style type="text/css" id="blockadss2">* {cursor: url(http://mgx-script.com/cursors/white.cur), auto;}</style>');
  2675. } else {
  2676. if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x255"))) === ![]) {
  2677. $(_0x40c0("0x257"))[_0x40c0("0x8b")]();
  2678. $(_0x40c0("0x256"))["prop"](_0x40c0("0x247"), ![]);
  2679. localStorage[_0x40c0("0x64")](_0x40c0("0x255"), ![]);
  2680. } else {
  2681. $(_0x40c0("0x256"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
  2682. localStorage[_0x40c0("0x64")](_0x40c0("0x255"), ![]);
  2683. }
  2684. }
  2685. $(_0x40c0("0x256"))[_0x40c0("0xaa")](function() {
  2686. if ($(this)["is"](_0x40c0("0x1df"))) {
  2687. $("#blockadss")[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
  2688. $(_0x40c0("0x20e"))[_0x40c0("0x8d")](_0x40c0("0x258"));
  2689. localStorage[_0x40c0("0x64")]("blockadss", !![]);
  2690. } else {
  2691. $("#blockadss2")[_0x40c0("0x8b")]();
  2692. $(_0x40c0("0x256"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
  2693. localStorage[_0x40c0("0x64")](_0x40c0("0x255"), ![]);
  2694. }
  2695. });
  2696. setTimeout(function(dataAndEvents) {
  2697. $(_0x40c0("0x243"))[_0x40c0("0x8d")](_0x40c0("0x259"));
  2698. $(_0x40c0("0x25a"))["change"](function() {
  2699. if (this[_0x40c0("0x247")]) {
  2700. twotimesfps();
  2701. localStorage[_0x40c0("0x64")](_0x40c0("0x25b"), _0x40c0("0x24e"));
  2702. } else {
  2703. normalfps();
  2704. localStorage[_0x40c0("0x64")](_0x40c0("0x25b"), _0x40c0("0x25c"));
  2705. }
  2706. });
  2707. if (localStorage[_0x40c0("0x66")](_0x40c0("0x25b")) == _0x40c0("0x24e")) {
  2708. $(_0x40c0("0x25a"))[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
  2709. $(_0x40c0("0x25a"))[_0x40c0("0x24f")](_0x40c0("0xaa"));
  2710. } else {
  2711. $("#ttfps")[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
  2712. $(_0x40c0("0x25a"))[_0x40c0("0x24f")](_0x40c0("0xaa"));
  2713. }
  2714. }, 1E3);
  2715. $(_0x40c0("0x25d"))["attr"]("src", _0x40c0("0x25e"));
  2716. $(_0x40c0("0xba"))[_0x40c0("0x8d")]('<span class="thBxHd">Background Sectors Color</span><div id="bgsCol" class="input-group colorpicker-component"><input type="text" value=' + theme[_0x40c0("0x25")][_0x40c0("0x28")] + _0x40c0("0xbc"));
  2717. $("#hslo-theme")[_0x40c0("0x8d")](_0x40c0("0x25f") + theme[_0x40c0("0x25")][_0x40c0("0x260")] + _0x40c0("0xbc"));
  2718. $(_0x40c0("0xba"))[_0x40c0("0x8d")]('<span class="thBxHd">Virus Stroke Color</span><div id="vrsCol" class="input-group colorpicker-component"><input type="text" value=' + theme[_0x40c0("0x25")]["virStrokeCol"] + _0x40c0("0xbc"));
  2719. $(_0x40c0("0x20e"))[_0x40c0("0x8d")](_0x40c0("0x262"));
  2720. $(_0x40c0("0x263"))[_0x40c0("0x5d")]({
  2721. "color" : theme[_0x40c0("0x25")][_0x40c0("0x260")],
  2722. "format" : _0x40c0("0x5b")
  2723. })["on"](_0x40c0("0x5f"), function(dataAndEvents) {
  2724. theme["def"][_0x40c0("0x260")] = dataAndEvents[_0x40c0("0x60")]["toString"](_0x40c0("0x5b"));
  2725. theme[_0x40c0("0x5c")]();
  2726. });
  2727. $(_0x40c0("0x264"))[_0x40c0("0x5d")]({
  2728. "color" : theme["def"][_0x40c0("0x261")],
  2729. "format" : "hex"
  2730. })["on"](_0x40c0("0x5f"), function(dataAndEvents) {
  2731. theme[_0x40c0("0x25")][_0x40c0("0x261")] = dataAndEvents[_0x40c0("0x60")][_0x40c0("0x0")]("hex");
  2732. theme[_0x40c0("0x5c")]();
  2733. });
  2734. $(_0x40c0("0x265"))[_0x40c0("0x5d")]({
  2735. "color" : theme["def"][_0x40c0("0x28")],
  2736. "color" : theme[_0x40c0("0x25")][_0x40c0("0x2d")],
  2737. "format" : _0x40c0("0x5b")
  2738. })["on"](_0x40c0("0x5f"), function(exports) {
  2739. theme[_0x40c0("0x25")][_0x40c0("0x28")] = exports["color"][_0x40c0("0x0")](_0x40c0("0x5b"));
  2740. theme[_0x40c0("0x25")][_0x40c0("0x2d")] = exports[_0x40c0("0x60")][_0x40c0("0x0")](_0x40c0("0x5b"));
  2741. theme[_0x40c0("0x5c")]();
  2742. });
  2743. /**
  2744. * @param {?} dataAndEvents
  2745. * @return {undefined}
  2746. */
  2747. twotimesfps = function(dataAndEvents) {
  2748. fpsBar = {
  2749. "oldDate" : 0,
  2750. "fpsCount" : 0,
  2751. "FPS" : 0,
  2752. /**
  2753. * @return {undefined}
  2754. */
  2755. "calcFps" : function() {
  2756. var _0x4b524a = Date[_0x40c0("0x13e")]();
  2757. if (_0x4b524a - this[_0x40c0("0x1af")] > 1E3) {
  2758. this[_0x40c0("0x1af")] = _0x4b524a;
  2759. this["FPS"] = this[_0x40c0("0x1b1")];
  2760. /** @type {number} */
  2761. this[_0x40c0("0x1b1")] = 0;
  2762. this["updateFPSbar"]();
  2763. } else {
  2764. this["fpsCount"]++;
  2765. }
  2766. },
  2767. /**
  2768. * @param {number} dataAndEvents
  2769. * @return {?}
  2770. */
  2771. "calcSTE" : function(dataAndEvents) {
  2772. return dataAndEvents > 35 ? Math[_0x40c0("0x1b3")](dataAndEvents * (1E3 > dataAndEvents ? 0.35 : 0.38)) : null;
  2773. },
  2774. /**
  2775. * @return {undefined}
  2776. */
  2777. "updateFPSbar" : function() {
  2778. /** @type {string} */
  2779. var str = "";
  2780. var pre = this["calcSTE"](playerData[_0x40c0("0x120")]);
  2781. if (opt["showFps"][_0x40c0("0x1e")]) {
  2782. str += _0x40c0("0x1b5") + this[_0x40c0("0x1b0")] * 2;
  2783. }
  2784. if (playerData["alive"]) {
  2785. if (opt[_0x40c0("0x1b6")]) {
  2786. if (playerData[_0x40c0("0x11f")]) {
  2787. str += " Score: " + playerData[_0x40c0("0x11f")];
  2788. }
  2789. }
  2790. if (opt[_0x40c0("0x1b8")]) {
  2791. if (pre) {
  2792. str += _0x40c0("0x1b9") + pre;
  2793. }
  2794. }
  2795. if (opt[_0x40c0("0x1ba")]) {
  2796. if (playerData["pieces"]) {
  2797. str += _0x40c0("0x266") + playerData[_0x40c0("0x121")] + "/16]";
  2798. }
  2799. }
  2800. if (!opt[_0x40c0("0x1bc")]["val"]) {
  2801. str += _0x40c0("0x267");
  2802. }
  2803. }
  2804. /** @type {string} */
  2805. document[_0x40c0("0x68")](_0x40c0("0x1be"))[_0x40c0("0x1ae")] = str;
  2806. }
  2807. };
  2808. };
  2809. /**
  2810. * @param {?} dataAndEvents
  2811. * @return {undefined}
  2812. */
  2813. normalfps = function(dataAndEvents) {
  2814. fpsBar = {
  2815. "oldDate" : 0,
  2816. "fpsCount" : 0,
  2817. "FPS" : 0,
  2818. /**
  2819. * @return {undefined}
  2820. */
  2821. "calcFps" : function() {
  2822. var oldDate = Date[_0x40c0("0x13e")]();
  2823. if (oldDate - this[_0x40c0("0x1af")] > 1E3) {
  2824. this["oldDate"] = oldDate;
  2825. this[_0x40c0("0x1b0")] = this[_0x40c0("0x1b1")];
  2826. /** @type {number} */
  2827. this[_0x40c0("0x1b1")] = 0;
  2828. this[_0x40c0("0x1b2")]();
  2829. } else {
  2830. this[_0x40c0("0x1b1")]++;
  2831. }
  2832. },
  2833. /**
  2834. * @param {number} dataAndEvents
  2835. * @return {?}
  2836. */
  2837. "calcSTE" : function(dataAndEvents) {
  2838. return dataAndEvents > 35 ? Math[_0x40c0("0x1b3")](dataAndEvents * (1E3 > dataAndEvents ? 0.35 : 0.38)) : null;
  2839. },
  2840. /**
  2841. * @return {undefined}
  2842. */
  2843. "updateFPSbar" : function() {
  2844. /** @type {string} */
  2845. var str = "";
  2846. var pre = this["calcSTE"](playerData[_0x40c0("0x120")]);
  2847. if (opt["showFps"][_0x40c0("0x1e")]) {
  2848. str += _0x40c0("0x1b5") + this["FPS"];
  2849. }
  2850. if (playerData[_0x40c0("0x7d")]) {
  2851. if (opt[_0x40c0("0x1b6")]) {
  2852. if (playerData[_0x40c0("0x11f")]) {
  2853. str += _0x40c0("0x1b7") + playerData[_0x40c0("0x11f")];
  2854. }
  2855. }
  2856. if (opt[_0x40c0("0x1b8")]) {
  2857. if (pre) {
  2858. str += _0x40c0("0x1b9") + pre;
  2859. }
  2860. }
  2861. if (opt[_0x40c0("0x1ba")]) {
  2862. if (playerData["pieces"]) {
  2863. str += _0x40c0("0x266") + playerData[_0x40c0("0x121")] + "/16]";
  2864. }
  2865. }
  2866. if (!opt["autoZoom"][_0x40c0("0x1e")]) {
  2867. str += _0x40c0("0x267");
  2868. }
  2869. }
  2870. /** @type {string} */
  2871. document[_0x40c0("0x68")](_0x40c0("0x1be"))[_0x40c0("0x1ae")] = str;
  2872. }
  2873. };
  2874. };
  2875. }, 1500);
  2876. _0x3adbda();
  2877. setInterval(function() {
  2878. _0x3adbda();
  2879. }, 4E3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement