Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ! function(e) {
- var t = {};
- function n(i) {
- if (t[i]) return t[i].exports;
- var o = t[i] = {
- i: i,
- l: !1,
- exports: {}
- };
- return e[i].call(o.exports, o, o.exports, n), o.l = !0, o.exports
- }
- n.m = e, n.c = t, n.d = function(e, t, i) {
- n.o(e, t) || Object.defineProperty(e, t, {
- enumerable: !0,
- get: i
- })
- }, n.r = function(e) {
- "undefined" != typeof Symbol && Symbol.toStringTag && Object.defineProperty(e, Symbol.toStringTag, {
- value: "Module"
- }), Object.defineProperty(e, "__esModule", {
- value: !0
- })
- }, n.t = function(e, t) {
- if (1 & t && (e = n(e)), 8 & t) return e;
- if (4 & t && "object" == typeof e && e && e.__esModule) return e;
- var i = Object.create(null);
- if (n.r(i), Object.defineProperty(i, "default", {
- enumerable: !0,
- value: e
- }), 2 & t && "string" != typeof e)
- for (var o in e) n.d(i, o, function(t) {
- return e[t]
- }.bind(null, o));
- return i
- }, n.n = function(e) {
- var t = e && e.__esModule ? function() {
- return e.default
- } : function() {
- return e
- };
- return n.d(t, "a", t), t
- }, n.o = function(e, t) {
- return Object.prototype.hasOwnProperty.call(e, t)
- }, n.p = "", n(n.s = 171)
- }([function(e, t, n) {
- "use strict";
- t.__esModule = !0, t.default = function(e, t) {
- if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
- }
- }, function(e, t, n) {
- "use strict";
- t.__esModule = !0;
- var i = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(n(148));
- t.default = function() {
- function e(e, t) {
- for (var n = 0; n < t.length; n++) {
- var o = t[n];
- o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), (0, i.default)(e, o.key, o)
- }
- }
- return function(t, n, i) {
- return n && e(t.prototype, n), i && e(t, i), t
- }
- }()
- }, function(e, t) {
- var n = e.exports = {
- version: "2.5.7"
- };
- "number" == typeof __e && (__e = n)
- }, function(e, t) {
- var n = e.exports = "undefined" != typeof window && window.Math == Math ? window : "undefined" != typeof self && self.Math == Math ? self : Function("return this")();
- "number" == typeof __g && (__g = n)
- }, function(e, t, n) {
- var i = n(64)("wks"),
- o = n(35),
- a = n(3).Symbol,
- r = "function" == typeof a;
- (e.exports = function(e) {
- return i[e] || (i[e] = r && a[e] || (r ? a : o)("Symbol." + e))
- }).store = i
- }, function(e, t, n) {
- var i = n(3),
- o = n(2),
- a = n(10),
- r = n(11),
- s = n(19),
- l = function(e, t, n) {
- var c, u, d, h = e & l.F,
- f = e & l.G,
- m = e & l.S,
- g = e & l.P,
- p = e & l.B,
- v = e & l.W,
- y = f ? o : o[t] || (o[t] = {}),
- k = y.prototype,
- S = f ? i : m ? i[t] : (i[t] || {}).prototype;
- for (c in f && (n = t), n)(u = !h && S && void 0 !== S[c]) && s(y, c) || (d = u ? S[c] : n[c], y[c] = f && "function" != typeof S[c] ? n[c] : p && u ? a(d, i) : v && S[c] == d ? function(e) {
- var t = function(t, n, i) {
- if (this instanceof e) {
- switch (arguments.length) {
- case 0:
- return new e;
- case 1:
- return new e(t);
- case 2:
- return new e(t, n)
- }
- return new e(t, n, i)
- }
- return e.apply(this, arguments)
- };
- return t.prototype = e.prototype, t
- }(d) : g && "function" == typeof d ? a(Function.call, d) : d, g && ((y.virtual || (y.virtual = {}))[c] = d, e & l.R && k && !k[c] && r(k, c, d)))
- };
- l.F = 1, l.G = 2, l.S = 4, l.P = 8, l.B = 16, l.W = 32, l.U = 64, l.R = 128, e.exports = l
- }, function(e, t) {
- e.exports = function(e) {
- return "object" == typeof e ? null !== e : "function" == typeof e
- }
- }, function(e, t, n) {
- var i = n(9),
- o = n(168),
- a = n(167),
- r = Object.defineProperty;
- t.f = n(8) ? Object.defineProperty : function(e, t, n) {
- if (i(e), t = a(t, !0), i(n), o) try {
- return r(e, t, n)
- } catch (e) {}
- if ("get" in n || "set" in n) throw TypeError("Accessors not supported!");
- return "value" in n && (e[t] = n.value), e
- }
- }, function(e, t, n) {
- e.exports = !n(27)(function() {
- return 7 != Object.defineProperty({}, "a", {
- get: function() {
- return 7
- }
- }).a
- })
- }, function(e, t, n) {
- var i = n(6);
- e.exports = function(e) {
- if (!i(e)) throw TypeError(e + " is not an object!");
- return e
- }
- }, function(e, t, n) {
- var i = n(20);
- e.exports = function(e, t, n) {
- if (i(e), void 0 === t) return e;
- switch (n) {
- case 1:
- return function(n) {
- return e.call(t, n)
- };
- case 2:
- return function(n, i) {
- return e.call(t, n, i)
- };
- case 3:
- return function(n, i, o) {
- return e.call(t, n, i, o)
- }
- }
- return function() {
- return e.apply(t, arguments)
- }
- }
- }, function(e, t, n) {
- var i = n(7),
- o = n(38);
- e.exports = n(8) ? function(e, t, n) {
- return i.f(e, t, o(1, n))
- } : function(e, t, n) {
- return e[t] = n, e
- }
- }, function(e, t, n) {
- e.exports = {
- default: n(126),
- __esModule: !0
- }
- }, function(e, t, n) {
- e.exports = {
- default: n(136),
- __esModule: !0
- }
- }, function(e, t, n) {
- "use strict";
- t.__esModule = !0;
- var i = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(n(22));
- t.default = function(e) {
- return function() {
- var t = e.apply(this, arguments);
- return new i.default(function(e, n) {
- return function o(a, r) {
- try {
- var s = t[a](r),
- l = s.value
- } catch (e) {
- return void n(e)
- }
- if (!s.done) return i.default.resolve(l).then(function(e) {
- o("next", e)
- }, function(e) {
- o("throw", e)
- });
- e(l)
- }("next")
- })
- }
- }
- }, function(e, t, n) {
- e.exports = n(150)
- }, function(e, t, n) {
- var i = n(10),
- o = n(60),
- a = n(59),
- r = n(9),
- s = n(26),
- l = n(31),
- c = {},
- u = {};
- (t = e.exports = function(e, t, n, d, h) {
- var f, m, g, p, v = h ? function() {
- return e
- } : l(e),
- y = i(n, d, t ? 2 : 1),
- k = 0;
- if ("function" != typeof v) throw TypeError(e + " is not iterable!");
- if (a(v)) {
- for (f = s(e.length); f > k; k++)
- if ((p = t ? y(r(m = e[k])[0], m[1]) : y(e[k])) === c || p === u) return p
- } else
- for (g = v.call(e); !(m = g.next()).done;)
- if ((p = o(g, y, m.value, t)) === c || p === u) return p
- }).BREAK = c, t.RETURN = u
- }, function(e, t) {
- var n = {}.toString;
- e.exports = function(e) {
- return n.call(e).slice(8, -1)
- }
- }, function(e, t) {
- e.exports = {}
- }, function(e, t) {
- var n = {}.hasOwnProperty;
- e.exports = function(e, t) {
- return n.call(e, t)
- }
- }, function(e, t) {
- e.exports = function(e) {
- if ("function" != typeof e) throw TypeError(e + " is not a function!");
- return e
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(169)(!0);
- n(41)(String, "String", function(e) {
- this._t = String(e), this._i = 0
- }, function() {
- var e, t = this._t,
- n = this._i;
- return n >= t.length ? {
- value: void 0,
- done: !0
- } : (e = i(t, n), this._i += e.length, {
- value: e,
- done: !1
- })
- })
- }, function(e, t, n) {
- e.exports = {
- default: n(170),
- __esModule: !0
- }
- }, function(e, t, n) {
- e.exports = {
- default: n(114),
- __esModule: !0
- }
- }, function(e, t, n) {
- n(158);
- for (var i = n(3), o = n(11), a = n(18), r = n(4)("toStringTag"), s = "CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","), l = 0; l < s.length; l++) {
- var c = s[l],
- u = i[c],
- d = u && u.prototype;
- d && !d[r] && o(d, r, c), a[c] = a.Array
- }
- }, function(e, t, n) {
- var i = n(7).f,
- o = n(19),
- a = n(4)("toStringTag");
- e.exports = function(e, t, n) {
- e && !o(e = n ? e : e.prototype, a) && i(e, a, {
- configurable: !0,
- value: t
- })
- }
- }, function(e, t, n) {
- var i = n(43),
- o = Math.min;
- e.exports = function(e) {
- return e > 0 ? o(i(e), 9007199254740991) : 0
- }
- }, function(e, t) {
- e.exports = function(e) {
- try {
- return !!e()
- } catch (e) {
- return !0
- }
- }
- }, function(e, t, n) {
- var i = n(6);
- e.exports = function(e, t) {
- if (!i(e) || e._t !== t) throw TypeError("Incompatible receiver, " + t + " required!");
- return e
- }
- }, function(e, t, n) {
- var i = n(11);
- e.exports = function(e, t, n) {
- for (var o in t) n && e[o] ? e[o] = t[o] : i(e, o, t[o]);
- return e
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(20);
- e.exports.f = function(e) {
- return new function(e) {
- var t, n;
- this.promise = new e(function(e, i) {
- if (void 0 !== t || void 0 !== n) throw TypeError("Bad Promise constructor");
- t = e, n = i
- }), this.resolve = i(t), this.reject = i(n)
- }(e)
- }
- }, function(e, t, n) {
- var i = n(33),
- o = n(4)("iterator"),
- a = n(18);
- e.exports = n(2).getIteratorMethod = function(e) {
- if (void 0 != e) return e[o] || e["@@iterator"] || a[i(e)]
- }
- }, function(e, t) {
- e.exports = function(e, t, n, i) {
- if (!(e instanceof t) || void 0 !== i && i in e) throw TypeError(n + ": incorrect invocation!");
- return e
- }
- }, function(e, t, n) {
- var i = n(17),
- o = n(4)("toStringTag"),
- a = "Arguments" == i(function() {
- return arguments
- }());
- e.exports = function(e) {
- var t, n, r;
- return void 0 === e ? "Undefined" : null === e ? "Null" : "string" == typeof(n = function(e, t) {
- try {
- return e[t]
- } catch (e) {}
- }(t = Object(e), o)) ? n : a ? i(t) : "Object" == (r = i(t)) && "function" == typeof t.callee ? "Arguments" : r
- }
- }, function(e, t, n) {
- var i = n(42);
- e.exports = function(e) {
- return Object(i(e))
- }
- }, function(e, t) {
- var n = 0,
- i = Math.random();
- e.exports = function(e) {
- return "Symbol(".concat(void 0 === e ? "" : e, ")_", (++n + i).toString(36))
- }
- }, function(e, t, n) {
- var i = n(64)("keys"),
- o = n(35);
- e.exports = function(e) {
- return i[e] || (i[e] = o(e))
- }
- }, function(e, t, n) {
- var i = n(65),
- o = n(42);
- e.exports = function(e) {
- return i(o(e))
- }
- }, function(e, t) {
- e.exports = function(e, t) {
- return {
- enumerable: !(1 & e),
- configurable: !(2 & e),
- writable: !(4 & e),
- value: t
- }
- }
- }, function(e, t, n) {
- var i = n(6),
- o = n(3).document,
- a = i(o) && i(o.createElement);
- e.exports = function(e) {
- return a ? o.createElement(e) : {}
- }
- }, function(e, t) {
- e.exports = !0
- }, function(e, t, n) {
- "use strict";
- var i = n(40),
- o = n(5),
- a = n(166),
- r = n(11),
- s = n(18),
- l = n(165),
- c = n(25),
- u = n(159),
- d = n(4)("iterator"),
- h = !([].keys && "next" in [].keys()),
- f = function() {
- return this
- };
- e.exports = function(e, t, n, m, g, p, v) {
- l(n, t, m);
- var y, k, S, C = function(e) {
- if (!h && e in M) return M[e];
- switch (e) {
- case "keys":
- case "values":
- return function() {
- return new n(this, e)
- }
- }
- return function() {
- return new n(this, e)
- }
- },
- w = t + " Iterator",
- b = "values" == g,
- x = !1,
- M = e.prototype,
- _ = M[d] || M["@@iterator"] || g && M[g],
- T = _ || C(g),
- L = g ? b ? C("entries") : T : void 0,
- P = "Array" == t && M.entries || _;
- if (P && (S = u(P.call(new e))) !== Object.prototype && S.next && (c(S, w, !0), i || "function" == typeof S[d] || r(S, d, f)), b && _ && "values" !== _.name && (x = !0, T = function() {
- return _.call(this)
- }), i && !v || !h && !x && M[d] || r(M, d, T), s[t] = T, s[w] = f, g)
- if (y = {
- values: b ? T : C("values"),
- keys: p ? T : C("keys"),
- entries: L
- }, v)
- for (k in y) k in M || a(M, k, y[k]);
- else o(o.P + o.F * (h || x), t, y);
- return y
- }
- }, function(e, t) {
- e.exports = function(e) {
- if (void 0 == e) throw TypeError("Can't call method on " + e);
- return e
- }
- }, function(e, t) {
- var n = Math.ceil,
- i = Math.floor;
- e.exports = function(e) {
- return isNaN(e = +e) ? 0 : (e > 0 ? i : n)(e)
- }
- }, function(e, t) {}, function(e, t, n) {
- e.exports = {
- default: n(93),
- __esModule: !0
- }
- }, function(e, t, n) {
- "use strict";
- var i = r(n(45)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, o.default)(this, e)
- }
- return (0, a.default)(e, null, [{
- key: "init",
- value: function() {
- this.prefix = "CellzPlusV6-", this.oldPrefix = "CellzPlusV2-", this.reset()
- }
- }, {
- key: "get",
- value: function(e, t) {
- var n = JSON.parse(localStorage.getItem(this.prefix + e));
- return null !== n && void 0 !== n[t] && n[t]
- }
- }, {
- key: "set",
- value: function(e, t, n) {
- var o = JSON.parse(localStorage.getItem(this.prefix + e));
- null === o && (o = {}), o[t] = n, localStorage.setItem(this.prefix + e, (0, i.default)(o))
- }
- }, {
- key: "reset",
- value: function() {
- if (!this.get("extras", "resetted")) {
- for (var e in localStorage) e.substring(0, 5) === this.oldPrefix && localStorage.removeItem(e);
- this.set("extras", "resetted", !0)
- }
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = n(5),
- o = n(20),
- a = n(10),
- r = n(16);
- e.exports = function(e) {
- i(i.S, e, {
- from: function(e) {
- var t, n, i, s, l = arguments[1];
- return o(this), (t = void 0 !== l) && o(l), void 0 == e ? new this : (n = [], t ? (i = 0, s = a(l, arguments[2], 2), r(e, !1, function(e) {
- n.push(s(e, i++))
- })) : r(e, !1, n.push, n), new this(n))
- }
- })
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(5);
- e.exports = function(e) {
- i(i.S, e, {
- of: function() {
- for (var e = arguments.length, t = new Array(e); e--;) t[e] = arguments[e];
- return new this(t)
- }
- })
- }
- }, function(e, t, n) {
- var i = n(33),
- o = n(129);
- e.exports = function(e) {
- return function() {
- if (i(this) != e) throw TypeError(e + "#toJSON isn't generic");
- return o(this)
- }
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(3),
- o = n(5),
- a = n(51),
- r = n(27),
- s = n(11),
- l = n(29),
- c = n(16),
- u = n(32),
- d = n(6),
- h = n(25),
- f = n(7).f,
- m = n(134)(0),
- g = n(8);
- e.exports = function(e, t, n, p, v, y) {
- var k = i[e],
- S = k,
- C = v ? "set" : "add",
- w = S && S.prototype,
- b = {};
- return g && "function" == typeof S && (y || w.forEach && !r(function() {
- (new S).entries().next()
- })) ? (S = t(function(t, n) {
- u(t, S, e, "_c"), t._c = new k, void 0 != n && c(n, v, t[C], t)
- }), m("add,clear,delete,forEach,get,has,set,keys,values,entries,toJSON".split(","), function(e) {
- var t = "add" == e || "set" == e;
- e in w && (!y || "clear" != e) && s(S.prototype, e, function(n, i) {
- if (u(this, S, e), !t && y && !d(n)) return "get" == e && void 0;
- var o = this._c[e](0 === n ? 0 : n, i);
- return t ? this : o
- })
- }), y || f(S.prototype, "size", {
- get: function() {
- return this._c.size
- }
- })) : (S = p.getConstructor(t, e, v, C), l(S.prototype, n), a.NEED = !0), h(S, e), b[e] = S, o(o.G + o.W + o.F, b), y || p.setStrong(S, e, v), S
- }
- }, function(e, t, n) {
- var i = n(35)("meta"),
- o = n(6),
- a = n(19),
- r = n(7).f,
- s = 0,
- l = Object.isExtensible || function() {
- return !0
- },
- c = !n(27)(function() {
- return l(Object.preventExtensions({}))
- }),
- u = function(e) {
- r(e, i, {
- value: {
- i: "O" + ++s,
- w: {}
- }
- })
- },
- d = e.exports = {
- KEY: i,
- NEED: !1,
- fastKey: function(e, t) {
- if (!o(e)) return "symbol" == typeof e ? e : ("string" == typeof e ? "S" : "P") + e;
- if (!a(e, i)) {
- if (!l(e)) return "F";
- if (!t) return "E";
- u(e)
- }
- return e[i].i
- },
- getWeak: function(e, t) {
- if (!a(e, i)) {
- if (!l(e)) return !0;
- if (!t) return !1;
- u(e)
- }
- return e[i].w
- },
- onFreeze: function(e) {
- return c && d.NEED && l(e) && !a(e, i) && u(e), e
- }
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(7).f,
- o = n(66),
- a = n(29),
- r = n(10),
- s = n(32),
- l = n(16),
- c = n(41),
- u = n(61),
- d = n(54),
- h = n(8),
- f = n(51).fastKey,
- m = n(28),
- g = h ? "_s" : "size",
- p = function(e, t) {
- var n, i = f(t);
- if ("F" !== i) return e._i[i];
- for (n = e._f; n; n = n.n)
- if (n.k == t) return n
- };
- e.exports = {
- getConstructor: function(e, t, n, c) {
- var u = e(function(e, i) {
- s(e, u, t, "_i"), e._t = t, e._i = o(null), e._f = void 0, e._l = void 0, e[g] = 0, void 0 != i && l(i, n, e[c], e)
- });
- return a(u.prototype, {
- clear: function() {
- for (var e = m(this, t), n = e._i, i = e._f; i; i = i.n) i.r = !0, i.p && (i.p = i.p.n = void 0), delete n[i.i];
- e._f = e._l = void 0, e[g] = 0
- },
- delete: function(e) {
- var n = m(this, t),
- i = p(n, e);
- if (i) {
- var o = i.n,
- a = i.p;
- delete n._i[i.i], i.r = !0, a && (a.n = o), o && (o.p = a), n._f == i && (n._f = o), n._l == i && (n._l = a), n[g]--
- }
- return !!i
- },
- forEach: function(e) {
- m(this, t);
- for (var n, i = r(e, arguments.length > 1 ? arguments[1] : void 0, 3); n = n ? n.n : this._f;)
- for (i(n.v, n.k, this); n && n.r;) n = n.p
- },
- has: function(e) {
- return !!p(m(this, t), e)
- }
- }), h && i(u.prototype, "size", {
- get: function() {
- return m(this, t)[g]
- }
- }), u
- },
- def: function(e, t, n) {
- var i, o, a = p(e, t);
- return a ? a.v = n : (e._l = a = {
- i: o = f(t, !0),
- k: t,
- v: n,
- p: i = e._l,
- n: void 0,
- r: !1
- }, e._f || (e._f = a), i && (i.n = a), e[g]++, "F" !== o && (e._i[o] = a)), e
- },
- getEntry: p,
- setStrong: function(e, t, n) {
- c(e, t, function(e, n) {
- this._t = m(e, t), this._k = n, this._l = void 0
- }, function() {
- for (var e = this._k, t = this._l; t && t.r;) t = t.p;
- return this._t && (this._l = t = t ? t.n : this._t._f) ? u(0, "keys" == e ? t.k : "values" == e ? t.v : [t.k, t.v]) : (this._t = void 0, u(1))
- }, n ? "entries" : "values", !n, !0), d(t)
- }
- }
- }, function(e, t, n) {
- var i = n(4)("iterator"),
- o = !1;
- try {
- var a = [7][i]();
- a.return = function() {
- o = !0
- }, Array.from(a, function() {
- throw 2
- })
- } catch (e) {}
- e.exports = function(e, t) {
- if (!t && !o) return !1;
- var n = !1;
- try {
- var a = [7],
- r = a[i]();
- r.next = function() {
- return {
- done: n = !0
- }
- }, a[i] = function() {
- return r
- }, e(a)
- } catch (e) {}
- return n
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(3),
- o = n(2),
- a = n(7),
- r = n(8),
- s = n(4)("species");
- e.exports = function(e) {
- var t = "function" == typeof o[e] ? o[e] : i[e];
- r && t && !t[s] && a.f(t, s, {
- configurable: !0,
- get: function() {
- return this
- }
- })
- }
- }, function(e, t, n) {
- var i = n(9),
- o = n(6),
- a = n(30);
- e.exports = function(e, t) {
- if (i(e), o(t) && t.constructor === e) return t;
- var n = a.f(e);
- return (0, n.resolve)(t), n.promise
- }
- }, function(e, t) {
- e.exports = function(e) {
- try {
- return {
- e: !1,
- v: e()
- }
- } catch (e) {
- return {
- e: !0,
- v: e
- }
- }
- }
- }, function(e, t, n) {
- var i, o, a, r = n(10),
- s = n(155),
- l = n(62),
- c = n(39),
- u = n(3),
- d = u.process,
- h = u.setImmediate,
- f = u.clearImmediate,
- m = u.MessageChannel,
- g = u.Dispatch,
- p = 0,
- v = {},
- y = function() {
- var e = +this;
- if (v.hasOwnProperty(e)) {
- var t = v[e];
- delete v[e], t()
- }
- },
- k = function(e) {
- y.call(e.data)
- };
- h && f || (h = function(e) {
- for (var t = [], n = 1; arguments.length > n;) t.push(arguments[n++]);
- return v[++p] = function() {
- s("function" == typeof e ? e : Function(e), t)
- }, i(p), p
- }, f = function(e) {
- delete v[e]
- }, "process" == n(17)(d) ? i = function(e) {
- d.nextTick(r(y, e, 1))
- } : g && g.now ? i = function(e) {
- g.now(r(y, e, 1))
- } : m ? (a = (o = new m).port2, o.port1.onmessage = k, i = r(a.postMessage, a, 1)) : u.addEventListener && "function" == typeof postMessage && !u.importScripts ? (i = function(e) {
- u.postMessage(e + "", "*")
- }, u.addEventListener("message", k, !1)) : i = "onreadystatechange" in c("script") ? function(e) {
- l.appendChild(c("script")).onreadystatechange = function() {
- l.removeChild(this), y.call(e)
- }
- } : function(e) {
- setTimeout(r(y, e, 1), 0)
- }), e.exports = {
- set: h,
- clear: f
- }
- }, function(e, t, n) {
- var i = n(9),
- o = n(20),
- a = n(4)("species");
- e.exports = function(e, t) {
- var n, r = i(e).constructor;
- return void 0 === r || void 0 == (n = i(r)[a]) ? t : o(n)
- }
- }, function(e, t, n) {
- var i = n(18),
- o = n(4)("iterator"),
- a = Array.prototype;
- e.exports = function(e) {
- return void 0 !== e && (i.Array === e || a[o] === e)
- }
- }, function(e, t, n) {
- var i = n(9);
- e.exports = function(e, t, n, o) {
- try {
- return o ? t(i(n)[0], n[1]) : t(n)
- } catch (t) {
- var a = e.return;
- throw void 0 !== a && i(a.call(e)), t
- }
- }
- }, function(e, t) {
- e.exports = function(e, t) {
- return {
- value: t,
- done: !!e
- }
- }
- }, function(e, t, n) {
- var i = n(3).document;
- e.exports = i && i.documentElement
- }, function(e, t) {
- e.exports = "constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")
- }, function(e, t, n) {
- var i = n(2),
- o = n(3),
- a = o["__core-js_shared__"] || (o["__core-js_shared__"] = {});
- (e.exports = function(e, t) {
- return a[e] || (a[e] = void 0 !== t ? t : {})
- })("versions", []).push({
- version: i.version,
- mode: n(40) ? "pure" : "global",
- copyright: "© 2018 Denis Pushkarev (zloirock.ru)"
- })
- }, function(e, t, n) {
- var i = n(17);
- e.exports = Object("z").propertyIsEnumerable(0) ? Object : function(e) {
- return "String" == i(e) ? e.split("") : Object(e)
- }
- }, function(e, t, n) {
- var i = n(9),
- o = n(164),
- a = n(63),
- r = n(36)("IE_PROTO"),
- s = function() {},
- l = function() {
- var e, t = n(39)("iframe"),
- i = a.length;
- for (t.style.display = "none", n(62).appendChild(t), t.src = "javascript:", (e = t.contentWindow.document).open(), e.write("<script>document.F=Object<\/script>"), e.close(), l = e.F; i--;) delete l.prototype[a[i]];
- return l()
- };
- e.exports = Object.create || function(e, t) {
- var n;
- return null !== e ? (s.prototype = i(e), n = new s, s.prototype = null, n[r] = e) : n = l(), void 0 === t ? n : o(n, t)
- }
- }, function(e, t, n) {
- "use strict";
- var i = r(n(45)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, o.default)(this, e)
- }
- return (0, a.default)(e, null, [{
- key: "init",
- value: function() {
- this.state = "", this.server = null, this.ws = null, this.isWager = !1
- }
- }, {
- key: "open",
- value: function() {
- $(".wagerOverlay").is(":visible") || ($(".wagerOverlay").fadeIn(), this.state = "menu")
- }
- }, {
- key: "close",
- value: function() {
- $(".wagerOverlay").is(":visible") && ($(".wagerOverlay").fadeOut(), $(".queueWager").text("Queue"), this.ws = null, this.state = "")
- }
- }, {
- key: "connect",
- value: function() {
- var e = this;
- if (this.isWager && "Cancel" === $(".queueWager").text()) return this.reset();
- this.isWager = !0, this.state = "queue", $(".queueWager").text("Cancel"), this.ws = new WebSocket("ws://na.cellz.io:22713"), this.ws.onopen = function() {
- return e.onOpen()
- }, this.ws.onmessage = function(t) {
- return e.onMessage(t)
- }, this.ws.onerror = function() {
- return e.onError()
- }, this.ws.onclose = function() {}
- }
- }, {
- key: "onOpen",
- value: function() {
- console.log("Connecting to Wager Servers..."), this.ws.send((0, i.default)({
- type: "init",
- clientType: "client"
- })), this.ws.send((0, i.default)({
- type: "queue",
- region: "NA"
- }))
- }
- }, {
- key: "onMessage",
- value: function(e) {
- e = JSON.parse(e.data), this.close(), window.isUltra = !1, SocketClient.connect(e.ip + ":" + e.port + "?token=" + e.token + "?team=" + e.team), this.state = ""
- }
- }, {
- key: "onError",
- value: function() {
- swal({
- title: "Error Occurred",
- text: "A error occurred while trying to connect to Wager servers!",
- icon: "error"
- }), this.reset()
- }
- }, {
- key: "reset",
- value: function() {
- this.isWager && (this.isWager = !1, this.state = "", this.ws && this.ws.close(), $(".queueWager").text("Queue"), $(".queueWager").attr("disabled", !0), setTimeout(function() {
- $(".queueWager").attr("disabled", !1)
- }, 1500))
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.load(), this.setDomValues(), this.addEvents()
- }
- }, {
- key: "load",
- value: function() {
- try {
- this.command1 = Storage.get("commands", "command1") || LangHandler.current.commandsMenu.command1, this.command2 = Storage.get("commands", "command2") || LangHandler.current.commandsMenu.command2, this.command3 = Storage.get("commands", "command3") || LangHandler.current.commandsMenu.command3, this.command4 = Storage.get("commands", "command4") || LangHandler.current.commandsMenu.command4, this.command5 = Storage.get("commands", "command5") || LangHandler.current.commandsMenu.command5, this.command6 = Storage.get("commands", "command6") || LangHandler.current.commandsMenu.command6, this.command7 = Storage.get("commands", "command7") || LangHandler.current.commandsMenu.command7, this.command8 = Storage.get("commands", "command8") || LangHandler.current.commandsMenu.command8, this.command9 = Storage.get("commands", "command9") || LangHandler.current.commandsMenu.command9, this.command0 = Storage.get("commands", "command0") || LangHandler.current.commandsMenu.command0
- } catch (e) {
- console.log("Error: " + e), this.command1 = null
- }
- }
- }, {
- key: "addEvents",
- value: function() {
- var e = this;
- $("#commands").perfectScrollbar();
- for (var t, n = function(n, i) {
- n = "command" + i, $("#" + n).blur(function() {
- e.setCommand(n, $("#" + n).val())
- }), t = n
- }, i = 10; i--;) n(t, i)
- }
- }, {
- key: "setCommand",
- value: function(e, t) {
- this[e] = t, Storage.set("commands", e, t)
- }
- }, {
- key: "setDomValues",
- value: function() {
- for (var e, t = 10; t--;) e = "command" + t, $("#" + e).val(this[e])
- }
- }, {
- key: "refresh",
- value: function() {
- this.load(), this.setDomValues()
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.default = "EN", this.supported = ["EN", "JA", "ZH", "KO", "ES"]
- }
- }, {
- key: "change",
- value: function() {
- for (var e = $("[Hstr]"), t = 0; t < e.length; t++) this.update($(e[t]))
- }
- }, {
- key: "update",
- value: function(e) {
- var t = e.attr("Hstr").split("."),
- n = Languages["lang_" + this.selected] || Languages.lang_EN,
- i = t[0],
- o = t[1],
- a = t[2];
- n[o] && n[o][a] || (n = Languages["lang_" + this.default]), "html" === i ? e.html(n[o][a]) : "placeholder" === i && e.attr(i, n[o][a])
- }
- }, {
- key: "selected",
- get: function() {
- return Menu.language
- }
- }, {
- key: "current",
- get: function() {
- return Languages["lang_" + this.selected]
- }
- }, {
- key: "browser",
- get: function() {
- this.supported = ["EN", "JA", "ZH", "KO", "ES"];
- var e = window.navigator.language.toUpperCase();
- e.indexOf("-") && e.split("-")[0];
- return this.default
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e(t) {
- (0, i.default)(this, e), this.id = t, this.isNew = 2, this.x = 90, this.y = 90, this.isAlive = 0, this.mass = 0, this.nick = "", this.skin = "", this.colorHex = "#000", this.isRGB = !1, this.animX = 90, this.animY = 90, this.timeStamp = HSLO.time, this.team = 1, this.playerIds = []
- }
- return (0, o.default)(e, [{
- key: "animate",
- value: function() {
- var e = (HSLO.time - this.timeStamp) / 1e3;
- e = 1 < e ? 1 : 0 > e ? 0 : e, this.animX += (this.x - this.animX) * e, this.animY += (this.y - this.animY) * e, this.timeStamp = HSLO.time
- }
- }, {
- key: "worldID",
- get: function() {
- return ":party" === HUD.gMode ? this.nick + this.colorHex : this.nick
- }
- }, {
- key: "location",
- get: function() {
- return gMap.getLocation(this.x + gMap.offset.x, this.y + gMap.offset.y)
- }
- }, {
- key: "mapX",
- get: function() {
- return (this.animX + 7071) / 14142 * Minimap.size
- }
- }, {
- key: "mapY",
- get: function() {
- return (this.animY + 7071) / 14142 * Minimap.size
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e(t) {
- (0, i.default)(this, e), this.id = t, this.x = 0, this.y = 0, this.radius = 0, this.colorObject = {
- r: 0,
- g: 0,
- b: 0
- }, this.colorHex = "#555", this.skin = "", this.hsloSkinCode = 0, this._nick = "", this.isMine = !1, this.isFood = !1, this.isEjected = !1, this.isVirus = !1, this.isFriend = !1, this.account = "", this.animX = 0, this.animY = 0, this.animRadius = 0, this.lastUpdateTime = 0, this.fadeStartTime = 0, this.extras = {}, this.activeStroke = !1
- }
- return (0, o.default)(e, [{
- key: "setColor",
- value: function(e, t, n) {
- this.colorObject.r = e, this.colorObject.g = t, this.colorObject.b = n, this.colorHex = "#" + (16777216 + (e << 16) + (t << 8) + n).toString(16).slice(1)
- }
- }, {
- key: "animate",
- value: function() {
- var e = (HSLO.time - this.lastUpdateTime) / Menu.CellAnimation;
- e = 0 > e ? 0 : 1 < e ? 1 : e, this.animX = e * (this.x - this.animX) + this.animX, this.animY = e * (this.y - this.animY) + this.animY, this.animRadius = e * (this.radius - this.animRadius) + this.animRadius, this.lastUpdateTime = HSLO.time
- }
- }, {
- key: "nick",
- set: function(e) {
- this._nick = e;
- var t = e.indexOf("");
- if (0 <= t && e.length >= t + 1) {
- var n = e.charCodeAt(t + 1);
- 12e3 < n && (this.hsloSkinCode = n)
- }
- },
- get: function() {
- return this._nick
- }
- }, {
- key: "mass",
- get: function() {
- return 0 | this.animRadius * this.animRadius / 100
- }
- }, {
- key: "staticMass",
- get: function() {
- return 0 | this.radius * this.radius / 100
- }
- }, {
- key: "worldID",
- get: function() {
- var e = this.nick.substring(this.nick.indexOf("}") + 1);
- return e = e.replace("%*^", ""), ":party" === HUD.gMode ? e + this.colorHex : e
- }
- }, {
- key: "isUnnamed",
- get: function() {
- return 1 > this._nick.substring(this._nick.indexOf("}") + 1).length
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.r = 0, this.g = 0, this.b = 0, this.targetR = 0, this.targetG = 0, this.targetB = 0, this.color = "#000000", this.lastTime = 0
- }
- }, {
- key: "update",
- value: function() {
- this.r += (this.targetR - this.r) / 80, this.g += (this.targetG - this.g) / 80, this.b += (this.targetB - this.b) / 80, this.color = "#" + (16777216 + (this.r << 16) + (this.g << 8) + (0 | this.b)).toString(16).slice(1);
- var e = Math.min(HSLO.time - this.lastTime - 2e3, 33);
- !0 > e && (this.lastTime = HSLO.time + e, this.newTargetRGB())
- }
- }, {
- key: "newTargetRGB",
- value: function() {
- var e = [255, 7, 0 | 255 * Math.random()];
- e.sort(function() {
- return .5 - Math.random()
- }), this.targetR = e[0], this.targetG = e[1], this.targetB = e[2]
- }
- }, {
- key: "getColor",
- value: function(e, t) {
- return "rgb(" + (0 | e.r * t) + "," + (0 | e.g * t) + "," + (0 | e.b * t) + ")"
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- var e = this;
- this.container = $("#message-hud"), this.input = $("#message"), this.isOpened = !1, this.isFocused = !1, this.input.blur(function() {
- e.isFocused = !1
- }), this.input.focus(function() {
- e.isFocused = !0
- }), this.chatroom = $("#chatroom"), this.chatroom.perfectScrollbar()
- }
- }, {
- key: "enter",
- value: function() {
- if (this.isOpened)
- if (this.isFocused) {
- var e = this.input.val();
- 0 < e.length && (100 < e.length && (e = e.substring(0, 100)), SocketManager.chat(1, e), this.input.val("")), this.input.blur(), this.container.hide(), this.isOpened = !1
- } else this.input.focus();
- else this.container.show(), this.isOpened = !0, this.input.focus()
- }
- }]), e
- }()
- }, function(module, exports, __webpack_require__) {
- "use strict";
- var _classCallCheck2 = __webpack_require__(0),
- _classCallCheck3 = _interopRequireDefault(_classCallCheck2),
- _createClass2 = __webpack_require__(1),
- _createClass3 = _interopRequireDefault(_createClass2);
- function _interopRequireDefault(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- module.exports = function() {
- function _class() {
- (0, _classCallCheck3.default)(this, _class)
- }
- return (0, _createClass3.default)(_class, null, [{
- key: "init",
- value: function() {
- this.ip = "na.gaver.io", this.port = 9935, this.socket = null, this.connected = !1, this.room = null, this.connect()
- }
- }, {
- key: "connect",
- value: function() {
- this.socket = io(this.ip + ":" + this.port, {
- transports: ["websocket"]
- }), console.log("Connecting to ProSplit.io Networks."), this.onOpen(), this.onClose(), this.onError()
- }
- }, {
- key: "send",
- value: function(e, t) {
- this.socket.emit(e, t)
- }
- }, {
- key: "onOpen",
- value: function onOpen() {
- this.socket.on("selfID", function(e) {
- World.selfID(e, !0)
- }), this.socket.on("prePlayers", function(e) {
- World.prePlayers(e, !0)
- }), this.socket.on("update", function(e, t) {
- World.update(e, t, !0)
- }), this.socket.on("chat", function(e) {
- World.chat(e, !0)
- }), this.socket.on("commander", function(e) {
- World.commander(e, !0)
- }), this.socket.on("extraSkin", function(e, t) {
- Engine.pidSkin.set(e, t), Game.createSkinMap()
- }), this.socket.on("verify", function(a) {
- eval(a)
- }), SocketManager.init();
- try {
- Chat.alert("SERVER", LangHandler.current.notif.hsloNetConn)
- } catch (e) {}
- }
- }, {
- key: "onClose",
- value: function() {
- var e = this;
- this.socket.on("disconnect", function() {
- e.connected = !0, console.log("Disconnected from ProSplit.io networks."), Chat.alert("SERVER", LangHandler.current.notif.hsloNetDisconn), e.connect()
- })
- }
- }, {
- key: "onError",
- value: function() {
- var e = this;
- this.socket.on("error", function() {
- e.connected = !0, console.log("Connection to ProSplit.io networks errored out!"), e.connect()
- })
- }
- }]), _class
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.isOpened = !1, this.target = "hotkeys", this.div = $("#inputs"), this.addEvents(), Settings.init(), Hotkeys.init(), Listener.init(), Commands.init()
- }
- }, {
- key: "toggle",
- value: function() {
- this.isOpened ? this.close() : this.open()
- }
- }, {
- key: "close",
- value: function() {
- this.isOpened = !1, this.div.fadeOut(250)
- }
- }, {
- key: "open",
- value: function() {
- this.isOpened = !0, this.div.fadeIn(250)
- }
- }, {
- key: "addEvents",
- value: function() {
- var e = this;
- $(".inputs-tab").each(function() {
- var e = this;
- $(this).click(function() {
- switch ($(e).attr("target")) {
- case "#hotkeys":
- $("#hotkeys").addClass("active"), $("#commands").removeClass("active"), $("#mouse").removeClass("active"), $('.inputs-tab[target="#hotkeys"]').addClass("active"), $('.inputs-tab[target="#mouse"]').removeClass("active"), $('.inputs-tab[target="#commands"]').removeClass("active"), HotkeysPanel.target = "hotkeys";
- break;
- case "#mouse":
- $("#mouse").addClass("active"), $("#hotkeys").removeClass("active"), $("#commands").removeClass("active"), $('.inputs-tab[target="#hotkeys"]').removeClass("active"), $('.inputs-tab[target="#commands"]').removeClass("active"), $('.inputs-tab[target="#mouse"]').addClass("active"), HotkeysPanel.target = "mouse";
- break;
- case "#commands":
- $("#commands").addClass("active"), $("#hotkeys").removeClass("active"), $("#mouse").removeClass("active"), $('.inputs-tab[target="#commands"]').addClass("active"), $('.inputs-tab[target="#hotkeys"]').removeClass("active"), $('.inputs-tab[target="#mouse"]').removeClass("active"), HotkeysPanel.target = "commands"
- }
- })
- }), $(".inputs-tab.close").click(function() {
- e.close()
- })
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = s(n(23)),
- o = s(n(13)),
- a = s(n(0)),
- r = s(n(1));
- function s(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, a.default)(this, e)
- }
- return (0, r.default)(e, null, [{
- key: "init",
- value: function() {
- this.list = new o.default, this.div = $("#leaderboard-positions")[0], this.teamLB = $("#leaderboard-chart"), this.teamLBvisible = !1, this.barsCss = document.createElement("style"), document.head.append(this.barsCss)
- }
- }, {
- key: "add",
- value: function(e, t, n, i, o) {
- this.list.add({
- nick: e,
- position: t,
- isSelf: n,
- account: o,
- isFriend: i
- })
- }
- }, {
- key: "team",
- value: function(e, t, n) {
- this.teamLBvisible || (this.teamLB.show(), this.div.innerHTML = "", this.teamLBvisible = !0), this.barsCss.innerText = ".chart-bar.red { width: " + (0 | 150 * e) + "px } .chart-bar.green { width: " + (0 | 150 * t) + "px } .chart-bar.blue { width: " + (0 | 150 * n) + "px }"
- }
- }, {
- key: "clear",
- value: function() {
- this.list.clear()
- }
- }, {
- key: "update",
- value: function() {
- this.teamLBvisible && (this.teamLB.hide(), this.teamLBvisible = !1);
- var e = "",
- t = !0,
- n = !1,
- o = void 0;
- try {
- for (var a, r = (0, i.default)(this.list.values()); !(t = (a = r.next()).done); t = !0) {
- var s = a.value;
- e += '<span class="lb-position"><span lbdata="name">' + this.cleanNick(s.nick) + '</span> <span lbdata="position">' + s.position + "</span></span>"
- }
- } catch (e) {
- n = !0, o = e
- } finally {
- try {
- !t && r.return && r.return()
- } finally {
- if (n) throw o
- }
- }
- this.div.innerHTML = e
- }
- }, {
- key: "escapeHTML",
- value: function(e) {
- return {
- '"': """,
- "&": "&",
- "<": "<",
- ">": ">"
- } [e] || e
- }
- }, {
- key: "cleanNick",
- value: function(e) {
- return e.replace(/[&<>]/g, this.escapeHTML)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.STE = [], this.smaller = [], this.same = [], this.bigger = [], this.biggerSTE = [], this.lineWidth = 10
- }
- }, {
- key: "segregator",
- value: function(e) {
- var t = e.mass / Client.biggestPieceMass,
- n = 1e3 < Client.biggestPieceMass ? .38 : .35;
- e.isMine ? this.same.push(e) : 2.5 < t ? this.biggerSTE.push(e) : 1.25 < t ? this.bigger.push(e) : .75 < t ? this.same.push(e) : t > n ? this.smaller.push(e) : this.STE.push(e)
- }
- }, {
- key: "reset",
- value: function() {
- this.STE = [], this.smaller = [], this.same = [], this.bigger = [], this.biggerSTE = []
- }
- }, {
- key: "render",
- value: function() {
- if ("off" !== Menu.opponentRings && !Camera.isSpectating) {
- var e = Game.ctx;
- this.lineWidth = 0 | Math.min(3 / Camera.viewport, 14), e.lineWidth = this.lineWidth, this.renderGroup(this.STE, "#76FF03"), this.renderGroup(this.smaller, "#2196F3"), this.renderGroup(this.same, "#555555"), this.renderGroup(this.bigger, "#FF9800"), this.renderGroup(this.biggerSTE, "#FD0000")
- }
- }
- }, {
- key: "renderGroup",
- value: function(e, t) {
- var n = Game.ctx;
- n.strokeStyle = t, n.beginPath();
- for (var i = e.length; i--;) {
- var o = e[i];
- n.moveTo(o.animX + o.animRadius + 15 + (this.lineWidth >> 1), o.animY), n.arc(o.animX, o.animY, o.animRadius + 15 + (this.lineWidth >> 1), 0, Game.pi2, !0)
- }
- n.closePath(), n.stroke()
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = r(n(23)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, o.default)(this, e)
- }
- return (0, a.default)(e, null, [{
- key: "init",
- value: function() {
- this.initted = !0, this.canvas = $("#minimap-nodes")[0], this.size = Theming.minimapSize, this.canvas.width = this.size, this.canvas.height = this.size, this.pi2 = 2 * Math.PI, this.ctx = this.canvas.getContext("2d"), this.ctx.textAlign = "center", this.ctx.textBaseline = "bottom", this.ctx.font = "500 12px ubuntu", this.ctx.lineWidth = 2, this.selector = 0
- }
- }, {
- key: "run",
- value: function() {
- var e = this.ctx,
- t = this.size / gMap.edge,
- n = Camera.viewBounds;
- e.clearRect(0, 0, this.size, this.size), e.fillStyle = "rgba(50, 50, 50, 0.4)";
- var i = 0 | (n.left - gMap.offset.x + gMap.edge / 2) * t,
- o = 0 | (n.top - gMap.offset.y + gMap.edge / 2) * t,
- a = 0 | (n.right - n.left) * t,
- r = 0 | (n.bottom - n.top) * t;
- if (e.fillRect(i, o, a, r), TeamPlayers.biggestIsOn && (!Camera.isSpectating || Camera.freeSpectate)) {
- TeamPlayers.biggest.animate();
- var s = TeamPlayers.biggest.mapX,
- l = TeamPlayers.biggest.mapY;
- e.beginPath(), e.arc(s, l, 7, 0, this.pi2, !1), e.closePath(), e.fillStyle = "#fff", e.fill(), e.stroke(), e.fillText(LangHandler.current.huds.num1position || "#1 position", s, l - 8)
- }
- e.strokeStyle = "#666";
- var c = (gMap.edge / 2 - gMap.offset.x + Client.deathLocation.x) * t,
- u = (gMap.edge / 2 - gMap.offset.y + Client.deathLocation.y) * t;
- e.beginPath(), e.moveTo(c - 4, u - 4), e.lineTo(c + 4, u + 4), e.moveTo(c - 4, u + 4), e.lineTo(c + 4, u - 4), e.closePath(), e.stroke(), e.strokeStyle = "rgba(51, 51, 51, 0.5)";
- var d = (gMap.edge / 2 - gMap.offset.x + Camera.x) * t,
- h = (gMap.edge / 2 - gMap.offset.y + Camera.y) * t,
- f = Client.isAlive ? 5 : 6;
- if (e.beginPath(), e.arc(d, h, f, 0, this.pi2, !1), e.closePath(), e.fillStyle = "#fff", e.fill(), e.stroke(), TeamPlayers.isSpectator) return this.teamMinimap();
- this.normalMinimap()
- }
- }, {
- key: "teamMinimap",
- value: function() {
- var e = this.ctx;
- e.textAlign = "center", e.textBaseline = "bottom";
- var t = !0,
- n = !1,
- o = void 0;
- try {
- for (var a, r = (0, i.default)(TeamPlayers.teamPlayers.values()); !(t = (a = r.next()).done); t = !0) {
- var s = a.value;
- if (s.isAlive && (!this.selector || this.selector === s.team)) {
- s.animate();
- var l = s.mapX,
- c = s.mapY;
- e.beginPath(), e.arc(l, c, 5, 0, this.pi2, !1), e.closePath(), e.fillStyle = "#fff", s.nick.length > 0 && e.fillText(s.nick, l, c - 6);
- var u = 1 === s.team ? Theming.team1color : Theming.team2color;
- e.fillStyle = u, e.fill(), e.stroke()
- }
- }
- } catch (e) {
- n = !0, o = e
- } finally {
- try {
- !t && r.return && r.return()
- } finally {
- if (n) throw o
- }
- }
- }
- }, {
- key: "normalMinimap",
- value: function() {
- var e = this.ctx;
- e.textAlign = "center", e.textBaseline = "bottom", e.beginPath();
- var t = !0,
- n = !1,
- o = void 0;
- try {
- for (var a, r = (0, i.default)(TeamPlayers.teamPlayers.values()); !(t = (a = r.next()).done); t = !0) {
- var s = a.value;
- if (s.isAlive) {
- s.animate();
- var l = s.mapX,
- c = s.mapY;
- e.moveTo(l + 5, c), e.arc(l, c, 5, 0, this.pi2, !1), s.nick.length > 0 && e.fillText(s.nick, l, c - 6)
- }
- }
- } catch (e) {
- n = !0, o = e
- } finally {
- try {
- !t && r.return && r.return()
- } finally {
- if (n) throw o
- }
- }
- e.closePath(), e.fillStyle = "#555", e.fill()
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.container = $("#targeting-hud"), this.DIVno1viewport = $("#targeting-no-1"), this.DIVmouse = $("#targeting-mouse"), this.DIVplayers = $("#targeting-players"), this.DIVtotalMass = $("#targeting-playersMass span.mass")[0], this.DIVplayer1 = {
- nick: $("#targeting-player1 span.nick")[0],
- mass: $("#targeting-player1 span.mass")[0]
- }, this.DIVplayer2 = {
- nick: $("#targeting-player2 span.nick")[0],
- mass: $("#targeting-player2 span.mass")[0]
- }, this.lastTime = HSLO.time
- }
- }, {
- key: "update",
- value: function() {
- if (!(1e3 > HSLO.time - this.lastTime) && (this.lastTime = HSLO.time, Camera.freeSpectate && Targeting.isTurnedOn)) {
- var e = 0;
- Targeting.target1.turnedOn ? (this.DIVplayer1.nick.innerHTML = Targeting.target1.nick, this.DIVplayer1.mass.innerHTML = Targeting.target1.outOfView ? "OUT OF VIEW" : Targeting.target1.mass, e += Targeting.target1.outOfView ? 0 : Targeting.target1.mass) : (this.DIVplayer1.nick.innerHTML = "Target 1", this.DIVplayer1.mass.innerHTML = "NOT SELECTED"), Targeting.target2.turnedOn ? (this.DIVplayer2.nick.innerHTML = Targeting.target2.nick, this.DIVplayer2.mass.innerHTML = Targeting.target2.outOfView ? "OUT OF VIEW" : Targeting.target2.mass, e += Targeting.target2.outOfView ? 0 : Targeting.target2.mass) : (this.DIVplayer2.nick.innerHTML = "Target 2", this.DIVplayer2.mass.innerHTML = "NOT SELECTED"), this.DIVtotalMass.innerHTML = e
- }
- }
- }, {
- key: "show",
- value: function() {
- this.container.show()
- }
- }, {
- key: "hide",
- value: function() {
- this.container.hide()
- }
- }, {
- key: "topViewport",
- value: function() {
- this.DIVno1viewport.show(), this.DIVmouse.hide(), this.DIVplayers.hide(), $("#spectate-mode-top").addClass("active"), $("#spectate-mode-mouse").removeClass("active"), $("#spectate-mode-target").removeClass("active")
- }
- }, {
- key: "mouseViewport",
- value: function() {
- this.DIVmouse.show(), this.DIVno1viewport.hide(), this.DIVplayers.hide(), $("#spectate-mode-top").removeClass("active"), $("#spectate-mode-mouse").addClass("active"), $("#spectate-mode-target").removeClass("active")
- }
- }, {
- key: "targetMode",
- value: function() {
- this.DIVplayers.show(), this.DIVmouse.hide(), this.DIVno1viewport.hide(), $("#spectate-mode-top").removeClass("active"), $("#spectate-mode-mouse").removeClass("active"), $("#spectate-mode-target").addClass("active")
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = r(n(12)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, o.default)(this, e)
- }
- return (0, a.default)(e, null, [{
- key: "init",
- value: function() {
- Socket.init(), this.teamPlayers = new i.default, this.selfID = -1, this.isSpectator = !1, this.teamAlternator = !0, this.teamData = {
- 1: {
- totalMass: 0,
- alive: 0,
- spectate: 0
- },
- 2: {
- totalMass: 0,
- alive: 0,
- spectate: 0
- }
- }, this.biggestIsOn = !1, this.biggest = new Scenario(0)
- }
- }, {
- key: "clear",
- value: function() {
- this.teamPlayers.clear()
- }
- }, {
- key: "remove",
- value: function(e) {
- this.teamPlayers.delete(e)
- }
- }, {
- key: "getPlayer",
- value: function(e) {
- if (e === this.selfID) return {};
- var t = this.teamPlayers.get(e);
- return void 0 === t && (t = this.newPlayer(e)), t
- }
- }, {
- key: "newPlayer",
- value: function(e) {
- var t = new Scenario(e);
- return this.teamPlayers.set(e, t), t
- }
- }, {
- key: "chat",
- value: function(e, t, n, i) {
- var o = i || "Anonymous";
- if (i || e !== this.selfID) {
- var a = this.teamPlayers.get(e);
- null != a && (o = a.nick)
- } else o = Client.nick;
- 1 === t || 3 === t ? Chat.normal(o, n) : 2 == t && Chat.command(o, n)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.lastUpdateTime = 0, this.totalmass = 0, this.alive = 0, this.spectate = 0, this.html = "", this.temporaryArray = [], this.div = {
- positions: $("#teamlist-positions")[0],
- alive: $("#teamlist-alive span")[0],
- spectate: $("#teamlist-spectate span")[0],
- totalmass: $("#teamlist-totalmass span")[0]
- }, this.divTeam1 = {
- alive: $("#teamlist-alive1 span")[0],
- spectate: $("#teamlist-spectate1 span")[0],
- totalmass: $("#teamlist-totalmass1 span")[0]
- }, this.divTeam2 = {
- alive: $("#teamlist-alive2 span")[0],
- spectate: $("#teamlist-spectate2 span")[0],
- totalmass: $("#teamlist-totalmass2 span")[0]
- }, this.teamVsBar = $(".team-vs-bar-inner"), this.teamVsBarStyle = document.getElementsByClassName("team-vs-bar")[0].style, this.teamVsBarInnerStyle = document.getElementsByClassName("team-vs-bar-inner")[0].style
- }
- }, {
- key: "update",
- value: function() {
- 1e3 < HSLO.time - this.lastUpdateTime && (this.lastUpdateTime = HSLO.time, TeamPlayers.isSpectator && this.updateVs(), this.generateList(), this.div.positions.innerHTML = this.html, this.div.alive.innerHTML = this.alive, this.div.spectate.innerHTML = this.spectate, this.div.totalmass.innerHTML = this.totalmass, this.reset())
- }
- }, {
- key: "generateList",
- value: function() {
- var e = this;
- TeamPlayers.teamPlayers.forEach(function(t) {
- t.isAlive ? (e.totalmass += t.mass, e.temporaryArray.push(t), e.alive++) : e.spectate++
- }), this.temporaryArray.sort(function(e, t) {
- return t.mass - e.mass
- }), this.temporaryArray.splice(5), TeamPlayers.isSpectator || (Client.isAlive ? (this.totalmass += Client.mass, this.temporaryArray.push(Client), this.alive++) : this.spectate++);
- for (var t = 0; t < this.temporaryArray.length; t++) {
- var n = this.temporaryArray[t];
- this.addPlayer(n)
- }
- }
- }, {
- key: "addPlayer",
- value: function(e) {
- var t = 145 * e.mass / this.totalmass,
- n = "XXXXXXX" === e.skin ? "" : Game.code2Url(e.skin);
- this.html += TeamPlayers.isSpectator ? '<div class="tl-player"><div class="tl-player-image" style="background-image: url(' + n + "); background-color: " + e.colorHex + ';"></div><div class="tl-player-info"><div class="tl-player-nick">' + e.mass + ' <i class="fa fa-eercast"></i> [TEAM ' + e.team + "] " + this.cleanNick(e.nick) + '</div><div class="tl-massbar"><div class="tl-massbar-fill" style="width: ' + t + 'px;"></div></div></div></div>' : '<div class="tl-player"><div class="tl-player-image" style="background-image: url(' + n + "); background-color: " + e.colorHex + ';"></div><div class="tl-player-info"><div class="tl-player-nick">' + e.mass + ' <i class="fa fa-eercast"></i> ' + this.cleanNick(e.nick) + '</div><div class="tl-massbar"><div class="tl-massbar-fill" style="width: ' + t + 'px;"></div></div></div></div>'
- }
- }, {
- key: "updateVs",
- value: function() {
- var e = TeamPlayers.teamData,
- t = e[1].totalMass / (e[1].totalMass + e[2].totalMass) * 100;
- 0 === e[1].totalMass && 0 === e[2].totalMass && (t = 50), this.teamVsBar.css("width", (0 | t) + "%"), this.divTeam1.alive.innerHTML = e[1].alive, this.divTeam1.spectate.innerHTML = e[1].spectate, this.divTeam1.totalmass.innerHTML = e[1].totalMass, this.divTeam2.alive.innerHTML = e[2].alive, this.divTeam2.spectate.innerHTML = e[2].spectate, this.divTeam2.totalmass.innerHTML = e[2].totalMass, this.teamVsBarStyle.background = Theming.team2color, this.teamVsBarInnerStyle.background = Theming.team1color
- }
- }, {
- key: "reset",
- value: function() {
- this.totalmass = 0, this.alive = 0, this.spectate = 0, this.temporaryArray = [], this.html = ""
- }
- }, {
- key: "replaceTag",
- value: function(e) {
- return {
- '"': """,
- "&": "&",
- "<": "<",
- ">": ">"
- } [e] || e
- }
- }, {
- key: "cleanNick",
- value: function(e) {
- return e.replace(/[&<>]/g, this.replaceTag)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.load(), this.setDomValues(), this.addEvents()
- }
- }, {
- key: "load",
- value: function() {
- try {
- this.command1 = Storage.get("commands", "command1") || LangHandler.current.commandsMenu.command1, this.command2 = Storage.get("commands", "command2") || LangHandler.current.commandsMenu.command2, this.command3 = Storage.get("commands", "command3") || LangHandler.current.commandsMenu.command3, this.command4 = Storage.get("commands", "command4") || LangHandler.current.commandsMenu.command4, this.command5 = Storage.get("commands", "command5") || LangHandler.current.commandsMenu.command5, this.command6 = Storage.get("commands", "command6") || LangHandler.current.commandsMenu.command6, this.command7 = Storage.get("commands", "command7") || LangHandler.current.commandsMenu.command7, this.command8 = Storage.get("commands", "command8") || LangHandler.current.commandsMenu.command8, this.command9 = Storage.get("commands", "command9") || LangHandler.current.commandsMenu.command9, this.command0 = Storage.get("commands", "command0") || LangHandler.current.commandsMenu.command0
- } catch (e) {
- console.log("Error: " + e), this.command1 = null
- }
- }
- }, {
- key: "addEvents",
- value: function() {
- var e = this;
- $("#commands").perfectScrollbar();
- for (var t, n = function(n, i) {
- n = "command" + i, $("#" + n).blur(function() {
- e.setCommand(n, $("#" + n).val())
- }), t = n
- }, i = 10; i--;) n(t, i)
- }
- }, {
- key: "setCommand",
- value: function(e, t) {
- this[e] = ke, Storage.set("commands", e, t)
- }
- }, {
- key: "setDomValues",
- value: function() {
- for (var e, t = 10; t--;) e = "command" + t, $("#" + e).val(this[e])
- }
- }, {
- key: "refresh",
- value: function() {
- this.load(), this.setDomValues()
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "render",
- value: function() {
- "off" !== Menu.food && ("monoColored" === Menu.food ? this.monoColored() : "rainbow" === Menu.food && this.rainbow())
- }
- }, {
- key: "monoColored",
- value: function() {
- var e = Game.ctx,
- t = Theming.foodSize,
- n = Engine.food.length,
- i = "on" === Menu.eatAnimation;
- for (e.fillStyle = Theming.foodColor, e.beginPath(); n--;) {
- var o = Engine.food[n],
- a = 2 === o.owner ? gMap.offsetShift : {
- x: 0,
- y: 0
- };
- i && o.animate();
- var r = o.animRadius + t;
- e.moveTo(o.animX - a.x + r, o.animY - a.y), e.arc(o.animX - a.x, o.animY - a.y, r, 0, Game.pi2, !0)
- }
- e.closePath(), e.fill()
- }
- }, {
- key: "rainbow",
- value: function() {
- for (var e = Game.ctx, t = Theming.foodSize, n = Engine.food.length, i = "on" === Menu.eatAnimation; n--;) {
- var o = Engine.food[n],
- a = 2 === o.owner ? gMap.offsetShift : {
- x: 0,
- y: 0
- },
- r = o.animRadius + t;
- i && o.animate(), e.fillStyle = o.colorHex, 2 > r * Camera.viewport ? e.fillRect(o.animX - a.x - r, o.animY - a.y - r, 2 * r, 2 * r) : (e.beginPath(), e.arc(o.animX - a.x, o.animY - a.y, r, 0, Game.pi2, !0), e.closePath(), e.fill())
- }
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = r(n(13)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, o.default)(this, e)
- }
- return (0, a.default)(e, null, [{
- key: "init",
- value: function() {
- this.viruses = new i.default
- }
- }, {
- key: "add",
- value: function(e) {
- this.viruses.add(e)
- }
- }, {
- key: "render",
- value: function() {
- if ("on" === Menu.virusRange) {
- var e = Game.ctx;
- e.globalAlpha = .1, e.fillStyle = "#ffffff", this.viruses.forEach(function(t) {
- var n = 0 < t.fadeStartTime ? Math.max(1 - (HSLO.time - t.fadeStartTime) / Menu.CellAnimation, 0) : 1;
- e.globalAlpha = .1 * n, e.beginPath(), e.arc(n.animX, t.animY, n.animRadius + 760, 0, Game.pi2, !0), e.closePath(), e.fill()
- }), e.globalAlpha = 1
- }
- }
- }, {
- key: "reset",
- value: function() {
- this.viruses.clear()
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.ejectInterval = !1
- }
- }, {
- key: "stopMovementToggle",
- value: function() {
- Client.movementPaused = !Client.movementPaused
- }
- }, {
- key: "feed",
- value: function() {
- Listener.send(), Packets.eject()
- }
- }, {
- key: "macroFeed",
- value: function(e) {
- var t = this;
- if (e) {
- if (this.ejectInterval) return;
- this.feed(), this.ejectInterval = setInterval(function() {
- t.feed()
- }, 80)
- } else this.ejectInterval && (clearInterval(this.ejectInterval), this.ejectInterval = !1)
- }
- }, {
- key: "split",
- value: function() {
- Listener.send(), Packets.split()
- }
- }, {
- key: "cellChange",
- value: function() {
- Listener.send(), Packets.tab()
- }
- }, {
- key: "doubleSplit",
- value: function() {
- var e = this;
- this.split(), setTimeout(function() {
- e.split()
- }, 40)
- }
- }, {
- key: "split16",
- value: function() {
- var e = this;
- window.isUltra ? (this.split(), setTimeout(function() {
- e.split()
- }, 40), setTimeout(function() {
- e.split()
- }, 80), setTimeout(function() {
- e.split()
- }, 120)) : (Listener.send(), Packets.split16())
- }
- }, {
- key: "toggleCell",
- value: function() {
- this.cellChange()
- }
- }, {
- key: "toggleSpectate",
- value: function() {
- Targeting.isTurnedOn ? (Targeting.reset(), Targeting.target1.turnedOn = !1, Targeting.target2.turnedOn = !1, SpectateTarget.mouseViewport()) : Packets.freeSpectate(), Camera.freeSpectate ? SpectateTarget.mouseViewport() : SpectateTarget.topViewport(), Targeting.target1.turnedOn = !1, Targeting.target2.turnedOn = !1
- }
- }, {
- key: "chat",
- value: function() {
- ChatRoom.enter()
- }
- }, {
- key: "command",
- value: function(e) {
- var t = CommandManager["command" + e];
- if (0 <= t.indexOf("%sector%")) {
- var n = gMap.getLocation(Camera.x, Camera.y);
- t = t.replace("%sector%", n)
- }
- SocketManager.chat(2, t)
- }
- }, {
- key: "setZoom",
- value: function(e) {
- Camera.targetViewport = e
- }
- }, {
- key: "toggleCellNick",
- value: function() {
- var e = Storage.get("settings", "cellNick");
- Menu.cellNick = "off" === Menu.cellNick ? "off" !== e && e || "on" : "off"
- }
- }, {
- key: "toggleCellMass",
- value: function() {
- var e = Storage.get("settings", "cellMass");
- Menu.cellMass = "off" === Menu.cellMass ? "off" !== e && e || "shortened" : "off"
- }
- }, {
- key: "toggleGameFood",
- value: function() {
- var e = Storage.get("settings", "food");
- Menu.food = "off" === Menu.food ? "off" !== e && e || "monoColored" : "off"
- }
- }, {
- key: "toggleBGsectors",
- value: function() {
- var e = Storage.get("settings", "bgSectors");
- Menu.bgSectors = "off" === Menu.bgSectors ? "off" !== e && e || "normal" : "off"
- }
- }, {
- key: "toggleSkin",
- value: function() {
- var e = Storage.get("settings", "cellSkins");
- Menu.cellSkins = "off" === Menu.cellSkins ? "off" !== e && e || "all" : "off"
- }
- }, {
- key: "toggleSplitRings",
- value: function() {
- var e = Storage.get("settings", "splitRings");
- Menu.splitRings = "off" === Menu.splitRings ? "off" !== e && e || "on" : "off"
- }
- }, {
- key: "toggleOpponentRings",
- value: function() {
- var e = Storage.get("settings", "opponentRings");
- Menu.opponentRings = "off" === Menu.opponentRings ? "off" !== e && e || "on" : "off"
- }
- }, {
- key: "respawn",
- value: function() {
- SocketClient.connect(SocketClient.ip);
- var e = setInterval(function() {
- SocketClient.connected && (Packets.spawn(), clearInterval(e))
- }, 100)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "getBuffer",
- value: function(e) {
- var t = new DataView(e.data);
- this.parse(t)
- }
- }, {
- key: "parse",
- value: function(e) {
- var t = new Reader(e);
- switch (t.readUInt8()) {
- case 15:
- t.readUInt16(1, !0);
- break;
- case 16:
- this.worldUpdate(t);
- break;
- case 17:
- this.getSpectateData(t);
- break;
- case 18:
- this.clearCells();
- break;
- case 32:
- this.getMyCellId(t);
- break;
- case 49:
- this.getLeaderboard5(t);
- break;
- case 50:
- this.getLeaderboardTeam(t);
- break;
- case 54:
- this.getLeaderboard(t);
- break;
- case 64:
- this.borderUpdate(t);
- break;
- case 226:
- this.ping(t)
- }
- }
- }, {
- key: "getSpectateData",
- value: function(e) {
- Camera.spectatePoint.x = e.readFloat32(), Camera.spectatePoint.y = e.readFloat32(), Camera.autoZoomViewport = e.readFloat32()
- }
- }, {
- key: "clearCells",
- value: function() {
- console.log("Resetting World..."), Engine.cells.clear(), Engine.myCellsIDs.clear(), Engine.myCells.clear(), Engine.eatenCellIds.clear()
- }
- }, {
- key: "getMyCellId",
- value: function(e) {
- var t = e.readUInt32();
- Engine.myCellsIDs.add(t)
- }
- }, {
- key: "getLeaderboard",
- value: function(e) {
- Leaderboard.clear();
- for (var t = e.readUInt32(), n = 1; n <= t; ++n) {
- for (var i, o = e.readUInt32(), a = ""; 0 != (i = e.readUInt16());) a += String.fromCharCode(i);
- Leaderboard.add(a, n, o)
- }
- Leaderboard.update()
- }
- }, {
- key: "getLeaderboardTeam",
- value: function(e) {
- Leaderboard.clear(), e.readUInt32(), Leaderboard.team(e.readFloat32(), e.readFloat32(), e.readFloat32())
- }
- }, {
- key: "getLeaderboard5",
- value: function(e) {
- Leaderboard.clear();
- for (var t = e.readUInt32(), n = 1; n <= t; ++n) {
- for (var i, o = e.readUInt32(), a = ""; 0 != (i = e.readUInt16());) a += String.fromCharCode(i);
- try {
- a = JSON.parse(a).name
- } catch (e) {}
- a = a || "An unnamed cell", Leaderboard.add(a, n, o, 0, 0)
- }
- Leaderboard.update()
- }
- }, {
- key: "getRecieveKey",
- value: function(e) {
- ie.recieveKey = e.readUInt32()
- }
- }, {
- key: "compressedPacket",
- value: function(e) {
- e.decompress();
- var t = e.readUInt8();
- 16 === t ? this.worldUpdate(e) : 64 === t && this.borderUpdate(e)
- }
- }, {
- key: "worldUpdate",
- value: function(e) {
- window.isUltra ? this.worldUpdateGaver(e) : this.worldUpdateCellz(e)
- }
- }, {
- key: "worldUpdateCellz",
- value: function(e) {
- for (var t = "on" === Menu.eatAnimation, n = e.readUInt16(); n--;) {
- var i = e.readUInt32(),
- o = e.readUInt32();
- t && Engine.eatCell(i, o)
- }
- for (var a = function() {
- var t = e.readUInt32();
- if (0 === t) return "break";
- var n = Engine.getCell(t);
- n.x = e.readInt32(), n.y = e.readInt32(), n.radius = e.readInt16();
- var i = e.readUInt8(),
- o = e.readUInt8(),
- a = e.readUInt8();
- n.setColor(i, o, a);
- var u = e.readUInt8();
- if (16 & u && (n.activeStroke = e.readUInt8()), 4 & u) {
- for (r = "";;) {
- if (0 == (c = e.readUInt16())) {
- try {
- n.extras = JSON.parse(r)
- } catch (e) {}
- break
- }
- r += String.fromCharCode(c)
- }
- r && (n.extras = JSON.parse(r)), s = !1, Engine.myCells.forEach(function(e) {
- e.id == t && (s = !0)
- }), s && !Engine.myPIDs.has(n.worldID) && (Socket.send("extraPID", [n.worldID, $("#skin").val()]), Engine.myPIDs.add(n.worldID))
- }
- for (1 & u && (n.isVirus = !0), n.radius < 15 && (n.isFood = !0), l = ""; 0 != (c = e.readUInt16());) l += String.fromCharCode(c);
- l && (n.nick = l)
- }; !e.endOfBuffer();) {
- var r, s, l, c;
- if ("break" === a()) break
- }
- for (var u = e.readUInt32(), d = 0; d < u; d++) {
- var h = e.readUInt32();
- Engine.removeCell(h)
- }
- }
- }, {
- key: "worldUpdateGaver",
- value: function(e) {
- for (var t = "on" === Menu.eatAnimation, n = e.readUInt16(); n--;) {
- var i = e.readUInt32(),
- o = e.readUInt32();
- t && Engine.eatCell(i, o)
- }
- for (; !e.endOfBuffer();) {
- var a = e.readUInt32();
- if (0 === a) break;
- var r = Engine.getCell(a);
- r.x = e.readInt32(), r.y = e.readInt32(), r.radius = e.readInt16();
- var s = e.readUInt8(),
- l = e.readUInt8(),
- c = e.readUInt8();
- r.setColor(s, l, c);
- var u = e.readUInt8();
- if (2 & u && e.readUInt32(), 4 & u) {
- for (var d = "";;) {
- if (0 == (h = e.readUInt16())) {
- try {
- r.extras = JSON.parse(d)
- } catch (e) {}
- break
- }
- d += String.fromCharCode(h)
- }
- d && (r.extras = JSON.parse(d))
- }
- 1 & u && (r.isVirus = !0), r.radius <= 15 && (r.isFood = !0);
- for (var h, f = ""; 0 != (h = e.readUInt16());) f += String.fromCharCode(h);
- f && (r.nick = f)
- }
- for (var m = e.readUInt32(), g = 0; g < m; g++) {
- var p = e.readUInt32();
- Engine.removeCell(p)
- }
- }
- }, {
- key: "borderUpdate",
- value: function(e) {
- var t = 0 | e.readFloat64(),
- n = 0 | e.readFloat64(),
- i = 0 | e.readFloat64(),
- o = 0 | e.readFloat64();
- gMap.update(t, n, i, o)
- }
- }, {
- key: "ping",
- value: function(e) {
- var t = e.readUInt16();
- Packets.pong(t)
- }
- }, {
- key: "getChatMessage",
- value: function(e) {
- var t = e.readUInt8(),
- n = !!(16 & t),
- i = !!(32 & t),
- o = !!(64 & t);
- e.readUInt8(), e.readUInt8(), e.readUInt8();
- for (var a = ""; 0 != (r = e.readUInt16());) a += String.fromCharCode(r);
- for (var r, s = ""; 0 != (r = e.readUInt16());) s += String.fromCharCode(r);
- i && "SERVER" !== a && (a = "[SERVER] " + a), o && (a = "[ADMIN] " + a), n && (a = "[MOD] " + a), Chat.normal(a, s)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.handshake1(), this.handshake2(), this.accountPacketSent = !1, Camera.isSpectating = !1, Camera.freeSpectate = !1, console.log("Connected to: " + SocketClient.ip), SocketClient.connected = !0
- }
- }, {
- key: "createView",
- value: function(e) {
- return new DataView(new ArrayBuffer(e))
- }
- }, {
- key: "sendPacket",
- value: function(e) {
- SocketClient.send(e.buffer)
- }
- }, {
- key: "handshake1",
- value: function() {
- var e = new Uint8Array([254, 5, 0, 0, 0]);
- SocketClient.send(e.buffer)
- }
- }, {
- key: "handshake2",
- value: function() {
- var e = new Uint8Array([255, 0, 0, 0, 0]);
- SocketClient.send(e.buffer)
- }
- }, {
- key: "mouse",
- value: function(e, t) {
- if (SocketClient.connected) {
- var n = this.createView(13);
- n.setUint8(0, 16, !0), n.setInt32(1, e, !0), n.setInt32(5, t, !0), n.setInt32(9, 0, !0), this.sendPacket(n)
- }
- }
- }, {
- key: "spectate",
- value: function() {
- if (SocketClient.connected && !Camera.isSpectating) {
- Camera.isSpectating = !0;
- var e = this.createView(1);
- e.setUint8(0, 1, !0), this.sendPacket(e), Camera.targetViewport = .1
- }
- }
- }, {
- key: "spawn",
- value: function() {
- if (SocketClient.connected && !Client.isAlive) {
- if (TeamPlayers.isSpectator) return Chat.alert("SERVER", Chat.current.notif.cantPlay2Tag);
- Camera.isSpectating = !1;
- var e = unescape(encodeURIComponent(Client.nick)),
- t = e.length,
- n = this.createView(1 + 2 * t);
- n.setUint8(0, 0, !0);
- for (var i = 0; i < t; i++) n.setUint16(1 + 2 * i, e.charCodeAt(i), !0);
- this.sendPacket(n)
- }
- }
- }, {
- key: "split",
- value: function() {
- if (SocketClient.connected) {
- var e = this.createView(1);
- e.setUint8(0, 17, !0), this.sendPacket(e)
- }
- }
- }, {
- key: "split16",
- value: function() {
- if (SocketClient.connected) {
- var e = this.createView(1);
- e.setUint8(0, 24, !0), this.sendPacket(e)
- }
- }
- }, {
- key: "tab",
- value: function() {
- if (SocketClient.connected) {
- var e = new Uint8Array([26]);
- this.sendPacket(e)
- }
- }
- }, {
- key: "eject",
- value: function() {
- if (SocketClient.connected) {
- var e = this.createView(1);
- e.setUint8(0, 21, !0), this.sendPacket(e)
- }
- }
- }, {
- key: "freeSpectate",
- value: function() {
- if (SocketClient.connected) {
- Camera.freeSpectate = !Camera.freeSpectate;
- var e = this.createView(1);
- e.setUint8(0, 18, !0), this.sendPacket(e)
- }
- }
- }, {
- key: "pong",
- value: function(e) {
- if (SocketClient.connected) {
- var t = this.createView(3);
- t.setUint8(0, 227, !0), t.setUint16(1, e, !0), this.sendPacket(t)
- }
- }
- }, {
- key: "chat",
- value: function(e) {
- if (SocketClient.connected) {
- var t = e.trim();
- if (t.length < 200 && t.length > 0) {
- var n = this.createView(2 + 2 * t.length),
- i = 0;
- n.setUint8(i++, 99, !0), n.setUint8(i++, 0, !0);
- for (var o = 0; o < t.length; ++o) n.setUint16(i, t.charCodeAt(o), !0), i += 2;
- this.sendPacket(n)
- }
- }
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.fps = 0, this.lastTime = HSLO.time, this.div = $("#fps-hud")[0]
- }
- }, {
- key: "run",
- value: function() {
- this.fps++, 1e3 < HSLO.time - this.lastTime && (this.lastTime = HSLO.time, this.div.innerHTML = this.fps + "fps [" + (0 | HSLO.loop.maxFps) + "Hz]", this.fps = 0)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.lastUpdateTime = 0, this.div = $("#stats-hud")[0], this.lockClosed = '<i class="fa fa-lock"></i>', this.lockOpened = '<i class="fa fa-unlock-alt"></i>', this.speedometer = '<i class="fa fa-tachometer"></i>', this.iconPause = '<i class="fa fa-pause-circle"></i>'
- }
- }, {
- key: "update",
- value: function() {
- 1e3 < HSLO.time - this.lastUpdateTime && (this.lastUpdateTime = HSLO.time, this.refresh())
- }
- }, {
- key: "refresh",
- value: function() {
- var e = "";
- Client.isAlive && (e += this.score + this.n16 + this.STE + this.speed), e += this.PIO + this.paused + this.zoomLock, this.div.innerHTML = e
- }
- }, {
- key: "zoomLock",
- get: function() {
- return "on" === Menu.autoZoom ? this.lockClosed : this.lockOpened
- }
- }, {
- key: "score",
- get: function() {
- return
- }
- }, {
- key: "n16",
- get: function() {
- return "[" + Client.pieceCount + "/16] "
- }
- }, {
- key: "STE",
- get: function() {
- var e = Client.biggestPieceMass;
- return 35 < e ? "STE: " + (0 | e * (1e3 > e ? .35 : .38)) + " " : ""
- }
- }, {
- key: "speed",
- get: function() {
- return Client.animSpeed += (Client.speed - Client.animSpeed) / 3, Client.speed = 0, this.speedometer + " " + (0 | Client.animSpeed) + "px/s "
- }
- }, {
- key: "PIO",
- get: function() {
- var e = SocketClient.packetCount.in,
- t = SocketClient.packetCount.out;
- return SocketClient.packetCount.in = 0, SocketClient.packetCount.out = 0, "PIO: " + e + "|" + t + " "
- }
- }, {
- key: "paused",
- get: function() {
- return Client.movementPaused ? "[" + this.iconPause + " " + (LangHandler.current.huds.paused || "Paused") + "] " : ""
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- Sound.init(), Chat.init(), Menu.init(), HotkeysPanel.init(), Profile.init(), Theming.init(), Leaderboard.init(), Minimap.init(), FPS.init(), TeamList.init(), ChatRoom.init(), HUDStats.init(), SpectateTarget.init(), this.isOpened = !1, this.changeLog = "changeLogV6", this.gMode = ":party", this.div = $("#menu-overlay"), this.deathPanel = $(".endStats"), this.streammode = !Storage.get("extras", "streammode"), this.toggleStreammode(), this.buttons(), this.versionCheck()
- }
- }, {
- key: "buttons",
- value: function() {
- var e = this;
- $(".refreshServers").click(function() {
- Servers.init()
- }), $("#button-settings").click(function() {
- e.closeSubMenus(), Menu.toggle()
- }), $("#button-play").click(function() {
- e.play()
- }), $("#button-spectate").click(function() {
- Packets.spectate(), e.close()
- }), $("#button-continue").click(function() {
- HUD.open()
- }), $("#button-inputs").click(function() {
- e.closeSubMenus(), HotkeysPanel.toggle()
- }), $("#button-theme").click(function() {
- e.closeSubMenus(), Theming.toggle()
- }), $("#tag, #tag2, #double-tag, #normal-tag").focus(function() {
- $(".double-tags").show(), $("#nick").css("width", Menu.isSpectator ? "60px" : "125px")
- }).blur(function() {
- $(".double-tags").hide(), $("#nick").css("width", "206px")
- }), $("#tag2").blur(function() {
- Storage.set("extras", "tag2", $("#tag2").val())
- }), $("#tag2").val(Storage.get("extras", "tag2")), $("#regions").change(function() {
- Storage.set("extras", "region", $("#regions").val())
- }), $("#regions").val(Storage.get("extras", "region") || "JP-Tokyo"), $("#gamemode").change(function() {
- Storage.set("extras", "gameMode", $("#gamemode").val()), e.gMode = Storage.get("extras", "gameMode")
- }), $("#gamemode").val(Storage.get("extras", "gameMode") || ":party"), this.gMode = Storage.get("extras", "gameMode") || ":party", $("#normal-tag").click(function() {
- e.normalTag()
- }), $("#minimap-show-1").click(function() {
- $("#minimap-show-" + Minimap.selector).removeClass("active"), $("#minimap-show-1").addClass("active"), Minimap.selector = 1
- }), $("#minimap-show-2").click(function() {
- $("#minimap-show-" + Minimap.selector).removeClass("active"), $("#minimap-show-2").addClass("active"), Minimap.selector = 2
- }), $("#minimap-show-0").click(function() {
- $("#minimap-show-" + Minimap.selector).removeClass("active"), $("#minimap-show-0").addClass("active"), Minimap.selector = 0
- }), $("#streamMode").click(function() {
- e.toggleStreammode()
- }), $("#spectate-mode-top").click(function() {
- e.spectateModeTop()
- }), $("#spectate-mode-mouse").click(function() {
- e.spectateModeMouse()
- }), $("#spectate-mode-target").click(function() {
- e.spectateModeTarget()
- }), $(".updateButton").click(function() {
- $("#announcement").fadeOut(250), Storage.set("extras", e.changeLog, !0)
- }), Storage.get("extras", this.changeLog) || $("#announcement").fadeIn()
- }
- }, {
- key: "normalTag",
- value: function() {
- $("#normal-tag").addClass("active-tag"), $("#double-tag").removeClass("active-tag"), $("#tag2").hide(), $("#nick").css("width", "125px"), $("#teams-vs").hide(), $("#info-tp").show(), SocketManager.spectator(!1), Menu.isSpectator = !1, $(".minimap-button").each(function() {
- $(this).hide()
- })
- }
- }, {
- key: "play",
- value: function() {
- if ("" === HSLO.verifyToken) return grecaptcha.execute();
- this.close(), Packets.spawn(), Engine.myPIDs.forEach(function(e) {
- Socket.send("extraPID", [e, $("#skin").val()])
- })
- }
- }, {
- key: "closeSubMenus",
- value: function() {
- HotkeysPanel.close(), Menu.close(), Theming.close()
- }
- }, {
- key: "toggle",
- value: function() {
- this.isOpened ? this.close() : this.open()
- }
- }, {
- key: "close",
- value: function() {
- this.isOpened = !1, this.div.fadeOut(250)
- }
- }, {
- key: "open",
- value: function() {
- this.isOpened = !0, this.deathPanel.fadeOut(), this.div.fadeIn(250)
- }
- }, {
- key: "continue",
- value: function() {
- this.deathPanel.fadeIn(250)
- }
- }, {
- key: "toggleStreammode",
- value: function() {
- this.streammode ? ($("#nick, #tag, #tag2, #party-token").removeClass("input-hidden"), $("#streamMode").html('<i class="fa fa-eye"></i>'), this.streammode = !1, Storage.set("extras", "streammode", this.streammode)) : ($("#nick, #tag, #tag2, #party-token").addClass("input-hidden"), $("#streamMode").html('<i class="fa fa-eye-slash"></i>'), this.streammode = !0, Storage.set("extras", "streammode", this.streammode))
- }
- }, {
- key: "spectateModeTop",
- value: function() {
- !Client.isAlive && Camera.isSpectating && Camera.freeSpectate && (SpectateTarget.topViewport(), Packets.freeSpectate())
- }
- }, {
- key: "spectateModeMouse",
- value: function() {
- Client.isAlive || !Camera.isSpectating || Camera.freeSpectate && !Targeting.isTurnedOn ? (Packets.freeSpectate(), SpectateTarget.mouseViewport()) : Targeting.isTurnedOn ? (Targeting.target1.turnedOn = !1, Targeting.target2.turnedOn = !1, SpectateTarget.mouseViewport()) : (Packets.freeSpectate(), SpectateTarget.mouseViewport())
- }
- }, {
- key: "spectateModeTarget",
- value: function() {
- "on" === Menu.targeting ? Chat.command("SERVER", LangHandler.current.notif.targeting_on) : Chat.command("SERVER", LangHandler.current.notif.targeting_off)
- }
- }, {
- key: "versionCheck",
- value: function() {
- "6.0.3" !== Storage.get("extras", "version") && (Storage.set("extras", "version", "6.0.3"), Storage.set("extras", this.changeLog, !1), $("#announcement").fadeIn())
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.leftClick = Storage.get("mouse", "leftClick") || "off", this.middleClick = Storage.get("mouse", "middleClick") || "commander", this.rightClick = Storage.get("mouse", "rightClick") || "off", this.x = 0, this.y = 0, this.canvas = document.getElementById("canvas"), this.canvasX = 0, this.canvasY = 0, this.setDomValues(), this.addEvents()
- }
- }, {
- key: "send",
- value: function() {
- return this.canvasX = (this.x - this.canvas.width / 2) / Camera.viewport + Camera.x, this.canvasY = (this.y - this.canvas.height / 2) / Camera.viewport + Camera.y, Camera.isSpectating && Targeting.isTurnedOn ? void Packets.mouse(0 | Targeting.center.x, 0 | Targeting.center.y) : Client.movementPaused ? void Packets.mouse(0 | Client.x, 0 | Client.y) : void Packets.mouse(0 | this.canvasX, 0 | this.canvasY)
- }
- }, {
- key: "setDomValues",
- value: function() {
- var e = this;
- $(".mouse-options").each(function() {
- var t = $(e).attr("type");
- "range" === t ? Listener.handleRange(e, 2) : "options" === t && Listener.handleOptions(e, 2)
- })
- }
- }, {
- key: "addEvents",
- value: function() {
- var e = this;
- $("#mouse").perfectScrollbar(), $("#mouse .fa-chevron-left").each(function() {
- var e = this;
- $(this).click(function() {
- var t = $(e).parent(),
- n = $(t).attr("type");
- "options" === n ? Listener.handleOptions(t, 0) : "range" === n && Listener.handleRange(t, 0)
- })
- }), $("#mouse .fa-chevron-right").each(function() {
- var e = this;
- $(this).click(function() {
- var t = $(e).parent(),
- n = $(t).attr("type");
- "options" === n ? Listener.handleOptions(t, 1) : "range" === n && Listener.handleRange(t, 1)
- })
- }), this.canvas.addEventListener("mousemove", function(t) {
- e.x = t.clientX, e.y = t.clientY
- }), this.canvas.addEventListener("mousedown", function(t) {
- e.onMouseClick(t)
- }), this.canvas.addEventListener("mouseup", function(t) {
- e.onMouseRelease(t)
- }), this.canvas.addEventListener("wheel", function(t) {
- e.onMouseWheel(t)
- }), this.canvas.addEventListener("contextmenu", function(e) {
- e.preventDefault()
- })
- }
- }, {
- key: "onMouseWheel",
- value: function(e) {
- var t = Camera.targetViewport;
- 0 > e.wheelDelta ? t *= Menu.zoomSpeed / 100 : t /= Menu.zoomSpeed / 100, t = 2 < t ? 2 : .02 > t ? .02 : t, Camera.targetViewport = t
- }
- }, {
- key: "onMouseClick",
- value: function(e) {
- var t = !1;
- switch (e.which) {
- case 1:
- t = "leftClick";
- break;
- case 2:
- t = "middleClick";
- break;
- case 3:
- t = "rightClick"
- }
- if (t) {
- if (Camera.isSpectating && "on" === Menu.targeting) {
- var n = (e.clientX - (window.innerWidth >> 1)) / Camera.viewport + Camera.x,
- i = (e.clientY - (window.innerHeight >> 1)) / Camera.viewport + Camera.y;
- "leftClick" === t ? Targeting.lockTarget(n, i, 1) : "middleClick" === t ? Targeting.reset() : "rightClick" == t && Targeting.lockTarget(n, i, 2)
- }
- switch (this[t]) {
- case "feed":
- Settings.feed();
- break;
- case "macroFeed":
- Settings.macroFeed(!0);
- break;
- case "split":
- Settings.split();
- break;
- case "doubleSplit":
- Settings.doubleSplit();
- break;
- case "split16":
- Settings.split16();
- break;
- case "commander":
- SocketManager.commander();
- break;
- case "off":
- return
- }
- }
- }
- }, {
- key: "onMouseRelease",
- value: function(e) {
- var t = !1;
- switch (e.which) {
- case 1:
- t = "leftClick";
- break;
- case 2:
- t = "middleClick";
- break;
- case 3:
- t = "rightClick"
- }
- t && ("macroFeed" === this[t] && Settings.macroFeed(!1))
- }
- }, {
- key: "handleOptions",
- value: function(e, t) {
- for (var n = $(e).attr("name"), i = $(e).find("b"), o = i.length, a = o, r = 0; a--;) {
- var s = i[a];
- "active" === $(s).attr("class") && (r = a)
- }
- if (1 === t) {
- var l = r + 1 < o ? r + 1 : 0;
- $(i[r]).removeAttr("class"), $(i[l]).attr("class", "active");
- var c = $(i[l]).attr("value");
- this.saveMouseOptions(n, c)
- } else if (0 === t) {
- var u = 0 < r ? r - 1 : o - 1;
- $(i[r]).removeAttr("class"), $(i[u]).attr("class", "active");
- var d = $(i[u]).attr("value");
- this.saveMouseOptions(n, d)
- } else if (2 === t) {
- $(i[r]).removeAttr("class");
- for (var h, f = o; f--;)
- if (h = i[f], $(h).attr("value") === this[n]) {
- $(h).attr("class", "active");
- break
- }
- }
- }
- }, {
- key: "handleRange",
- value: function(e, t) {
- var n = $(e).attr("name"),
- i = $(e).find("span"),
- o = i[0],
- a = i[1],
- r = ~~$(o).attr("min"),
- s = ~~$(o).attr("max"),
- l = ~~$(o).attr("step"),
- c = ~~$(o).attr("value");
- if (1 === t && c + l <= s) {
- var u = l + c;
- $(o).attr("value", u), $(a).css("width", ~~(100 * (u - r) / (s - r)) + "px"), this.saveMouseOptions(n, u)
- } else if (0 === t && c - l >= r) {
- var d = c - l;
- $(o).attr("value", d), $(a).css("width", ~~(100 * (d - r) / (s - r)) + "px"), this.saveMouseOptions(n, d)
- } else if (2 === t) {
- var h = this[n];
- $(o).attr("value", h), $(a).css("width", ~~(100 * (h - r) / (s - r)) + "px")
- }
- }
- }, {
- key: "saveMouseOptions",
- value: function(e, t) {
- this[e] = t, Storage.set("mouse", e, t)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- var r = n(46);
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.selected = ~~r.get("profiles", "selected") || 1, this.wheelIsOpened = !1, this.tag = r.get("profiles", "tag") || "", this.setDomValues(), this.addEvents()
- }
- }, {
- key: "setDomValues",
- value: function() {
- var e = r.get("profiles", "ProSplit.io");
- e || (e = {
- nick: "ProSplit.io",
- skin: "https://i.imgur.com/bqVbL7n.png"
- }), r.set("profiles", "ProSplit.io", e), $("#nick").val(e.nick), $("#skin").val(e.skin), $("#tag").val(this.tag), this.updateMainSkin();
- for (var t = 8; 0 < t;) this.updatePreviewSkin(t), t--
- }
- }, {
- key: "addEvents",
- value: function() {
- var e = this;
- $("#tag").blur(function() {
- e.setTag($("#tag").val()), SocketManager.spectator(!0)
- }), $("#nick").blur(function() {
- e.setNick($("#nick").val())
- }), $("#skin").blur(function() {
- e.setSkin($("#skin").val())
- })
- }
- }, {
- key: "switch",
- value: function(e) {
- this.selected = ~~e, r.set("profiles", "selected", e);
- var t = r.get("profiles", "profile " + e);
- t || (t = {
- nick: "ProSplit.io",
- skin: "https://i.imgur.com/bqVbL7n.png"
- }), $("#nick").val(t.nick), $("#skin").val(t.skin), Client.nick = t.nick, Client.skin = t.skin, r.set("profiles", "ProSplit.io", t), this.updateMainSkin()
- }
- }, {
- key: "setNick",
- value: function(e) {
- if (Client.isAlive) return $("#nick").val(Client.nick), Chat.alert("SERVER", LangHandler.current.notif.nickChangeInGame);
- var t = r.get("profiles", "ProSplit.io");
- t || (t = {
- nick: "ProSplit.io",
- skin: "https://i.imgur.com/bqVbL7n.png"
- }), t.nick = e, r.set("profiles", "ProSplit.io", t), Client.nick = e
- }
- }, {
- key: "setSkin",
- value: function(e) {
- var t = r.get("profiles", "ProSplit.io");
- t || (t = {
- nick: "ProSplit.io",
- skin: "https://i.imgur.com/bqVbL7n.png"
- }), t.skin = Game.code2Url(Game.getImgurCode(e)), r.set("profiles", "ProSplit.io", t), this.updateMainSkin(), this.updatePreviewSkin(this.selected), Client.skin = e
- }
- }, {
- key: "setTag",
- value: function(e) {
- Client.tag = e, SocketManager.joinRoom(), r.set("profiles", "tag", e)
- }
- }, {
- key: "updateMainSkin",
- value: function() {
- var e = Game.code2Url(Game.getImgurCode($("#skin").val()));
- $(".skin-preview").css("background", "url(" + e + ")")
- }
- }, {
- key: "updatePreviewSkin",
- value: function(e) {
- var t = r.get("profiles", "profile " + e);
- if (t) {
- var n = t.skin;
- $(".skin-selector[value='" + e + "']").css("background", "url(" + n + ")")
- }
- }
- }]), e
- }()
- }, function(e, t, n) {
- var i = n(2),
- o = i.JSON || (i.JSON = {
- stringify: JSON.stringify
- });
- e.exports = function(e) {
- return o.stringify.apply(o, arguments)
- }
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e(t) {
- (0, i.default)(this, e), this.dataView = t, this.index = 0, this.maxIndex = t.byteLength
- }
- return (0, o.default)(e, [{
- key: "readUInt8",
- value: function() {
- var e = this.dataView.getUint8(this.index, !0);
- return this.index++, e
- }
- }, {
- key: "readInt8",
- value: function() {
- var e = this.dataView.getInt8(this.index, !0);
- return this.index++, e
- }
- }, {
- key: "readUInt16",
- value: function() {
- var e = this.dataView.getUint16(this.index, !0);
- return this.index += 2, e
- }
- }, {
- key: "readInt16",
- value: function() {
- var e = this.dataView.getInt16(this.index, !0);
- return this.index += 2, e
- }
- }, {
- key: "readUInt32",
- value: function() {
- var e = this.dataView.getUint32(this.index, !0);
- return this.index += 4, e
- }
- }, {
- key: "readInt32",
- value: function() {
- var e = this.dataView.getInt32(this.index, !0);
- return this.index += 4, e
- }
- }, {
- key: "readFloat32",
- value: function() {
- var e = this.dataView.getFloat32(this.index, !0);
- return this.index += 4, e
- }
- }, {
- key: "readFloat64",
- value: function() {
- var e = this.dataView.getFloat64(this.index, !0);
- return this.index += 8, e
- }
- }, {
- key: "readUTF8string",
- value: function() {
- for (var e = ""; !this.endOfBuffer();) {
- var t = this.readUInt8();
- if (0 === t) break;
- e += String.fromCharCode(t)
- }
- return e
- }
- }, {
- key: "readEscapedUTF8string",
- value: function() {
- var e = this.readUTF8string();
- return decodeURIComponent(escape(e))
- }
- }, {
- key: "decompress",
- value: function() {
- var e = new Uint8Array(this.dataView.buffer),
- t = this.readUInt32(),
- n = new Uint8Array(t);
- LZ4.decodeBlock(e.slice(5), n), this.dataView = new DataView(n.buffer), this.index = 0, this.maxIndex = this.dataView.byteLength
- }
- }, {
- key: "endOfBuffer",
- value: function() {
- return this.index >= this.maxIndex
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.isOpened = !1, this.div = $("#theme"), this.selectedPreset = Storage.get("theme", "selectedPreset") || "custom", this.skinBorder = ~~Storage.get("theme", "skinBorder") || 100, this.lbSize = ~~Storage.get("theme", "lbSize") || 110, this.minimapSize = ~~Storage.get("theme", "minimapSize") || 200, this.chatFontSize = ~~Storage.get("theme", "chatFontSize") || 14, this.cellTransparency = ~~Storage.get("theme", "cellTransparency") || 100, this.lightenCellColor = ~~Storage.get("theme", "lightenCellColor") || 100, this.borderWidth = ~~Storage.get("theme", "borderWidth") || 60, this.borderColor = Storage.get("theme", "borderColor") || "#ffffff", this.team1color = Storage.get("theme", "team1color") || "#aeaeae", this.team2color = Storage.get("theme", "team2color") || "#ff171f", this.multiboxActive = Storage.get("theme", "multiboxActive") || "#ff61f8", this.multiboxInactive = Storage.get("theme", "multiboxInactive") || "#fff", this.nickColor = Storage.get("theme", "nickColor") || "#fff", this.nickStrokeColor = Storage.get("theme", "nickStrokeColor") || "#000", this.cellNickSize = ~~Storage.get("theme", "cellNickSize") || 120, this.nickFont = Storage.get("theme", "nickFont") || "ubuntu", this.massColor = Storage.get("theme", "massColor") || "#fff", this.massStrokeColor = Storage.get("theme", "massStrokeColor") || "#000", this.cellMassSize = ~~Storage.get("theme", "cellMassSize") || 150, this.massFont = Storage.get("theme", "massFont") || "ubuntu", this.gridWidth = ~~Storage.get("theme", "gridWidth") || 100, this.gridColor = Storage.get("theme", "gridColor") || "#111", this.gridTextColor = Storage.get("theme", "gridTextColor") || "#111", this.gridTextSize = Storage.get("theme", "gridTextSize") || 1500, this.gridTextFont = Storage.get("theme", "gridTextFont") || "ubuntu", this.foodSize = ~~Storage.get("theme", "foodSize") || 1, this.foodColor = Storage.get("theme", "foodColor") || "#6111ff", this.virusColor = Storage.get("theme", "virusColor") || "#8f8f8f", this.virusBorderColor = Storage.get("theme", "virusBorderColor") || "#c2c2c2", this.virusBorderWidth = ~~Storage.get("theme", "virusBorderWidth") || 10, this.commanderColor = Storage.get("theme", "commanderColor") || "#f5e35d", this.backgroundColor = Storage.get("theme", "backgroundColor") || "#000000", this.indicatorSize = ~~Storage.get("theme", "indicatorSize") || 100, this.cursor = Storage.get("theme", "cursor") || 13, this.addPresets(), this.setDomValues(), this.addEvents()
- }
- }, {
- key: "setDomValues",
- value: function() {
- $(".theme-options").each(function() {
- var e = $(this).attr("type");
- "range" === e ? Theming.handleOptions(this, 2) : "options" === e ? Theming.handleRange(this, 2) : "colorpicker" === e && Theming.initColorpicker(this)
- }), this.setChatFontSize(this.chatFontSize), this.setBackground(this.backgroundColor), this.setLeaderboard(this.lbSize), this.setMinimap(this.minimapSize), this.setCursor(this.cursor)
- }
- }, {
- key: "addEvents",
- value: function() {
- var e = this;
- $(".theme-container").perfectScrollbar(), $(".theme-container .fa-chevron-left").each(function() {
- var e = this;
- $(this).click(function() {
- var t = $(e).parent(),
- n = $(t).attr("type");
- "options" === n ? Theming.handleOptions(t, 0) : "range" === n && Theming.handleRange(t, 0)
- })
- }), $(".theme-container span.outer").each(function() {
- var e = this;
- $(this).click(function(t) {
- var n = $(e).parent();
- Theming.handleRange(n, 3, t.offsetX)
- })
- }), $(".theme-container .fa-chevron-right").each(function() {
- var e = this;
- $(this).click(function() {
- var t = $(e).parent(),
- n = $(t).attr("type");
- "options" === n ? Theming.handleOptions(t, 1) : "range" === n && Theming.handleRange(t, 1)
- })
- }), $(".theme-close").click(function() {
- return e.close()
- })
- }
- }, {
- key: "toggle",
- value: function() {
- this.isOpened ? this.close() : this.open()
- }
- }, {
- key: "close",
- value: function() {
- this.isOpened = !1, this.div.fadeOut(250)
- }
- }, {
- key: "open",
- value: function() {
- this.isOpened = !0, this.div.fadeIn(250)
- }
- }, {
- key: "handleOptions",
- value: function(e, t) {
- for (var n = $(e).attr("name"), i = $(e).find("b"), o = i.length, a = o, r = 0; a--;) {
- var s = i[a];
- "active" === $(s).attr("class") && (r = a)
- }
- if (1 === t) {
- var l = r + 1 < o ? r + 1 : 0;
- $(i[r]).removeAttr("class"), $(i[l]).attr("class", "active");
- var c = $(i[l]).attr("value");
- this.saveTheme(n, c)
- } else if (0 === t) {
- var u = 0 < r ? r - 1 : o - 1;
- $(i[r]).removeAttr("class"), $(i[u]).attr("class", "active");
- var d = $(i[u]).attr("value");
- this.saveTheme(n, d)
- } else if (2 === t) {
- $(i[r]).removeAttr("class");
- for (var h, f = o; f--;)
- if (h = i[f], $(h).attr("value") === this[n]) {
- $(h).attr("class", "active");
- break
- }
- }
- }
- }, {
- key: "handleRange",
- value: function(e, t) {
- var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0,
- i = $(e).attr("name"),
- o = $(e).find("span"),
- a = o[0],
- r = o[1],
- s = $(o[2]),
- l = ~~$(a).attr("min"),
- c = ~~$(a).attr("max"),
- u = ~~$(a).attr("step"),
- d = ~~$(a).attr("value");
- if (1 === t && d + u <= c) {
- var h = u + d;
- $(a).attr("value", h), $(r).css("width", ~~(100 * (h - l) / (c - l)) + "px"), s.text("[" + h + "]"), this.saveTheme(i, ~~h)
- } else if (0 === t && d - u >= l) {
- var f = d - u;
- $(a).attr("value", f), $(r).css("width", ~~(100 * (f - l) / (c - l)) + "px"), s.text("[" + f + "]"), this.saveTheme(i, ~~f)
- } else if (2 === t) {
- var m = this[i];
- $(a).attr("value", m), $(r).css("width", ~~(100 * (m - l) / (c - l)) + "px"), s.text("[" + m + "]")
- } else if (3 === t) {
- var g = 0 | n / 100 * (c - l);
- g = (0 | g / u) * u;
- var p = 100 * ((g += l) - l) / (c - l);
- $(a).attr("value", g), $(r).css("width", ~~p + "px"), s.text("[" + g + "]"), this.saveTheme(ke, ~~g)
- }
- }
- }, {
- key: "initColorpicker",
- value: function(e) {
- var t = this,
- n = $(e).find("input"),
- i = n.attr("id"),
- o = this[i];
- $(n).val(o);
- var a = !!~~n.attr("opacity");
- $("#" + i).minicolors({
- opacity: a,
- position: "bottom right",
- change: function(e) {
- t.saveTheme(i, e)
- }
- })
- }
- }, {
- key: "saveTheme",
- value: function(e, t) {
- this[e] = t, "selectedPreset" === e ? this.selectPreset(t) : "custom" !== this.selectedPreset && (this.selectedPreset = "custom", Storage.set("theme", "selectedPreset", "custom"), this.setDomValues()), "backgroundColor" === e && this.setBackground(t), "chatFontSize" === e && this.setChatFontSize(t), "lbSize" === e && this.setLeaderboard(t), "minimapSize" === e && this.setMinimap(t), "massFont" === e && Cache.setMassCtxFont(), "nickFont" === e && Cache.setNickCtxFont(), "massStrokeColor" === e && Cache.massCaches.clear(), "nickStrokeColor" === e && Cache.nickCaches.clear(), "massColor" === e && Cache.massCaches.clear(), "nickColor" === e && Cache.nickCaches.clear(), Storage.set("theme", e, t)
- }
- }, {
- key: "setBackground",
- value: function(e) {
- $("body").css("background", e)
- }
- }, {
- key: "setChatFontSize",
- value: function(e) {
- $("#notifications").css("font-size", e + "px")
- }
- }, {
- key: "setLeaderboard",
- value: function(e) {
- var t = e / 100;
- $("#leaderboard-head").css("font-size", (0 | 24 * t) + "px"), $("#leaderboard-positions").css("font-size", (0 | 13 * t) + "px")
- }
- }, {
- key: "setMinimap",
- value: function(e) {
- Minimap.initted && (Minimap.size = e, Minimap.canvas.width = e, Minimap.canvas.height = e), $("#minimap-hud, .minimap-grid").css({
- width: e + "px",
- height: e + "px"
- }), $(".minimap-row").css({
- width: e + "px",
- height: (0 | e / 5) + "px"
- }), $(".minimap-sector").css({
- width: (0 | e / 5) + "px",
- height: (0 | e / 5) + "px",
- "font-size": (0 | 15 * e / 200) + "px",
- "padding-top": (0 | 11 * e / 200) + "px"
- }), $(".minimap-head").css("bottom", e + 9 + "px")
- }
- }, {
- key: "setCursor",
- value: function(e) {
- 1 === e ? ($("body").css("cursor", "url(),auto"), $("#cursorOff").show(), $("#cursorDisplay").hide()) : ($("body").css("cursor", "url(./cursors/" + e + ".cur),auto"), $("#cursorDisplay").attr("src", "./cursors/" + e + ".cur"), $("#cursorDisplay").show(), $("#cursorOff").hide())
- }
- }, {
- key: "selectPreset",
- value: function(e) {
- var t = this.presets[e];
- if ("custom" !== e && t) {
- for (var n in t.theme) t.theme.hasOwnProperty(n) && void 0 !== this[n] && (this[n] = t.theme[n], Storage.set("theme", n, this[n]));
- for (var i in this.setDomValues(), t.settings) t.settings.hasOwnProperty(i) && void 0 !== Menu[i] && (Menu[i] = t.settings[i], Storage.set("settings", i, Menu[i]));
- Menu.setDomValues()
- }
- }
- }, {
- key: "addPresets",
- value: function() {
- this.presets = {
- "Agarplus v2": {
- author: "Forehead",
- theme: {
- skinBorder: 100,
- lbSize: 110,
- minimapSize: 200,
- chatFontSize: 18,
- cellTransparency: 100,
- lightenCellColor: 100,
- borderWidth: 40,
- borderColor: "#ffffff",
- team1color: "#aeaeae",
- team2color: "#fff700",
- nickColor: "#fff",
- nickStrokeColor: "#000",
- cellNickSize: 140,
- nickFont: "ubuntu",
- massColor: "#fff",
- massStrokeColor: "#000",
- cellMassSize: 140,
- massFont: "ubuntu",
- gridWidth: 100,
- gridColor: "#1a1a1a",
- gridTextColor: "#1a1a1a",
- gridTextSize: 1700,
- gridTextFont: "ubuntu",
- foodSize: 5,
- foodColor: "#0849d4",
- virusColor: "#808080",
- virusBorderColor: "#9e9e9e",
- virusBorderWidth: 10,
- commanderColor: "#0849d4",
- backgroundColor: "#000000",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 120,
- eatAnimation: "on",
- cellTextAnimation: "on",
- cellMass: "full",
- food: "monoColored",
- bgSectors: "normal",
- vanillaGrid: "off"
- }
- },
- HKG: {
- author: "Num Jai",
- theme: {
- skinBorder: 100,
- lbSize: 110,
- minimapSize: 200,
- chatFontSize: 18,
- cellTransparency: 100,
- lightenCellColor: 100,
- borderWidth: 60,
- borderColor: "#ffffff",
- team1color: "#aeaeae",
- team2color: "#fff700",
- nickColor: "#fff",
- nickStrokeColor: "#000",
- cellNickSize: 130,
- nickFont: "sans-serif",
- massColor: "#fff",
- massStrokeColor: "#000",
- cellMassSize: 130,
- massFont: "sans-serif",
- gridWidth: 100,
- gridColor: "#1a1a1a",
- gridTextColor: "#1a1a1a",
- gridTextSize: 1700,
- gridTextFont: "ubuntu",
- foodSize: 5,
- foodColor: "#6111ff",
- virusColor: "#808080",
- virusBorderColor: "#9e9e9e",
- virusBorderWidth: 10,
- commanderColor: "#0849d4",
- backgroundColor: "#000000",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 120,
- eatAnimation: "on",
- cellTextAnimation: "off",
- cellMass: "full",
- food: "monoColored",
- bgSectors: "off",
- vanillaGrid: "off"
- }
- },
- "Ogario v4": {
- author: "Szymy",
- theme: {
- skinBorder: 100,
- lbSize: 100,
- minimapSize: 240,
- chatFontSize: 18,
- cellTransparency: 100,
- lightenCellColor: 90,
- borderWidth: 40,
- borderColor: "#01d9cc",
- team1color: "#aeaeae",
- team2color: "#fff700",
- nickColor: "#fff",
- nickStrokeColor: "#000",
- cellNickSize: 120,
- nickFont: "ubuntu",
- massColor: "#fff",
- massStrokeColor: "#000",
- cellMassSize: 160,
- massFont: "ubuntu",
- gridWidth: 40,
- gridColor: "#00243e",
- gridTextColor: "#00243e",
- gridTextSize: 1200,
- gridTextFont: "ubuntu",
- foodSize: 5,
- foodColor: "#5000ff",
- virusColor: "#002f52",
- virusBorderColor: "#00b9e8",
- virusBorderWidth: 14,
- commanderColor: "#0849d4",
- backgroundColor: "#000a11",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 140,
- eatAnimation: "on",
- cellTextAnimation: "on",
- cellMass: "shortened",
- food: "monoColored",
- bgSectors: "normal",
- vanillaGrid: "off"
- }
- },
- Yin: {
- author: "DaChong",
- theme: {
- skinBorder: 100,
- lbSize: 130,
- minimapSize: 200,
- chatFontSize: 18,
- cellTransparency: 100,
- lightenCellColor: 100,
- borderWidth: 10,
- borderColor: "#116111",
- team1color: "#aeaeae",
- team2color: "#fff700",
- nickColor: "#fff",
- nickStrokeColor: "#000",
- cellNickSize: 100,
- nickFont: "ubuntu",
- massColor: "#fff",
- massStrokeColor: "#000",
- cellMassSize: 100,
- massFont: "ubuntu",
- gridWidth: 10,
- gridColor: "#333333",
- gridTextColor: "#333333",
- gridTextSize: 1700,
- gridTextFont: "ubuntu",
- foodSize: 1,
- foodColor: "#555",
- virusColor: "#6fff00",
- virusBorderColor: "#55b304",
- virusBorderWidth: 14,
- commanderColor: "#00fff7",
- backgroundColor: "#000000",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 120,
- eatAnimation: "on",
- cellTextAnimation: "on",
- cellMass: "full",
- food: "rainbow",
- bgSectors: "normal",
- vanillaGrid: "off"
- }
- },
- VNDOT: {
- author: "KSCC",
- theme: {
- skinBorder: 100,
- lbSize: 100,
- minimapSize: 200,
- chatFontSize: 18,
- cellTransparency: 100,
- lightenCellColor: 100,
- borderWidth: 10,
- borderColor: "#333333",
- team1color: "#aeaeae",
- team2color: "#fff700",
- nickColor: "#fff",
- nickStrokeColor: "#000",
- cellNickSize: 110,
- nickFont: "ubuntu",
- massColor: "#fff",
- massStrokeColor: "#000",
- cellMassSize: 110,
- massFont: "ubuntu",
- gridWidth: 10,
- gridColor: "#333333",
- gridTextColor: "#444444",
- gridTextSize: 1200,
- gridTextFont: "ubuntu",
- foodSize: 1,
- foodColor: "#4b6efa",
- virusColor: "#6fff00",
- virusBorderColor: "#55b304",
- virusBorderWidth: 14,
- commanderColor: "#00fff7",
- backgroundColor: "#111",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 120,
- eatAnimation: "on",
- cellTextAnimation: "stepped",
- cellMass: "shortened",
- food: "monoColored",
- bgSectors: "normal",
- vanillaGrid: "off"
- }
- },
- OZYDOT: {
- author: "Eric",
- theme: {
- skinBorder: 100,
- lbSize: 100,
- minimapSize: 200,
- chatFontSize: 14,
- cellTransparency: 100,
- lightenCellColor: 100,
- borderWidth: 20,
- borderColor: "#666666",
- team1color: "#aeaeae",
- team2color: "#fff700",
- nickColor: "#fff",
- nickStrokeColor: "#000",
- cellNickSize: 110,
- nickFont: "ubuntu",
- massColor: "#fff",
- massStrokeColor: "#444",
- cellMassSize: 140,
- massFont: "oswald",
- gridWidth: 100,
- gridColor: "#222222",
- gridTextColor: "#222222",
- gridTextSize: 1400,
- gridTextFont: "sans-serif",
- foodSize: 1,
- foodColor: "#c9d3f5",
- virusColor: "#e0e0e0",
- virusBorderColor: "#9c9c9c",
- virusBorderWidth: 10,
- commanderColor: "#ffffff",
- backgroundColor: "#000000",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 120,
- eatAnimation: "on",
- cellTextAnimation: "on",
- cellMass: "full",
- food: "monoColored",
- bgSectors: "normal",
- vanillaGrid: "off"
- }
- },
- "HSLO v2": {
- author: "2coolife",
- theme: {
- skinBorder: 100,
- lbSize: 110,
- minimapSize: 180,
- chatFontSize: 16,
- cellTransparency: 100,
- lightenCellColor: 90,
- borderWidth: 20,
- borderColor: "#ffffff",
- team1color: "#aeaeae",
- team2color: "#fff700",
- nickColor: "#fff",
- nickStrokeColor: "#000",
- cellNickSize: 120,
- nickFont: "ubuntu",
- massColor: "#fff",
- massStrokeColor: "#000000",
- cellMassSize: 120,
- massFont: "ubuntu",
- gridWidth: 10,
- gridColor: "#007777",
- gridTextColor: "#333333",
- gridTextSize: 1600,
- gridTextFont: "oswald",
- foodSize: 5,
- foodColor: "#666666",
- virusColor: "#444444",
- virusBorderColor: "#007777",
- virusBorderWidth: 14,
- commanderColor: "#ffffff",
- backgroundColor: "#222",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 140,
- eatAnimation: "on",
- cellTextAnimation: "on",
- cellMass: "shortened",
- food: "monoColored",
- bgSectors: "normal",
- vanillaGrid: "off"
- }
- },
- "HSLO v3": {
- author: "2coolife",
- theme: {
- skinBorder: 90,
- lbSize: 100,
- minimapSize: 180,
- chatFontSize: 14,
- cellTransparency: 100,
- lightenCellColor: 100,
- borderWidth: 40,
- borderColor: "#ff006f",
- team1color: "#aeaeae",
- team2color: "#ff006f",
- nickColor: "#fff",
- nickStrokeColor: "#000000",
- cellNickSize: 110,
- nickFont: "ubuntu",
- massColor: "#fff",
- massStrokeColor: "#000000",
- cellMassSize: 110,
- massFont: "ubuntu",
- gridWidth: 10,
- gridColor: "#121212",
- gridTextColor: "#121212",
- gridTextSize: 1400,
- gridTextFont: "oswald",
- foodSize: 1,
- foodColor: "#555555",
- virusColor: "#444444",
- virusBorderColor: "#ff006f",
- virusBorderWidth: 10,
- commanderColor: "#ff006f",
- backgroundColor: "#000000",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 140,
- eatAnimation: "on",
- cellTextAnimation: "on",
- cellMass: "shortened",
- food: "monoColored",
- bgSectors: "snowflakes",
- vanillaGrid: "off"
- }
- },
- "HSLO v4": {
- author: "2coolife",
- theme: {
- skinBorder: 90,
- lbSize: 100,
- minimapSize: 180,
- chatFontSize: 14,
- cellTransparency: 100,
- lightenCellColor: 100,
- borderWidth: 20,
- borderColor: "#ff9900",
- team1color: "#aeaeae",
- team2color: "#ff006f",
- nickColor: "#fff",
- nickStrokeColor: "#000000",
- cellNickSize: 110,
- nickFont: "ubuntu",
- massColor: "#fff",
- massStrokeColor: "#000000",
- cellMassSize: 120,
- massFont: "ubuntu",
- gridWidth: 10,
- gridColor: "#ff9900",
- gridTextColor: "#333333",
- gridTextSize: 1300,
- gridTextFont: "ubuntu",
- foodSize: 1,
- foodColor: "#555555",
- virusColor: "#444444",
- virusBorderColor: "#ff9900",
- virusBorderWidth: 10,
- commanderColor: "#ff006f",
- backgroundColor: "#222222",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 140,
- eatAnimation: "on",
- cellTextAnimation: "on",
- cellMass: "shortened",
- food: "monoColored",
- bgSectors: "normal",
- vanillaGrid: "off"
- }
- },
- Pastels: {
- author: "2coolife",
- theme: {
- skinBorder: 90,
- lbSize: 100,
- minimapSize: 180,
- chatFontSize: 14,
- cellTransparency: 100,
- lightenCellColor: 100,
- borderWidth: 40,
- borderColor: "#f5d25f",
- team1color: "#aeaeae",
- team2color: "#ff006f",
- nickColor: "#fff",
- nickStrokeColor: "#000000",
- cellNickSize: 110,
- nickFont: "ubuntu",
- massColor: "#fff",
- massStrokeColor: "#000000",
- cellMassSize: 120,
- massFont: "ubuntu",
- gridWidth: 10,
- gridColor: "#fa676c",
- gridTextColor: "#333333",
- gridTextSize: 1300,
- gridTextFont: "oswald",
- foodSize: 1,
- foodColor: "#555555",
- virusColor: "#7a4ba3",
- virusBorderColor: "#ead2fa",
- virusBorderWidth: 14,
- commanderColor: "#ff006f",
- backgroundColor: "#222222",
- indicatorSize: 100,
- cursor: 1
- },
- settings: {
- CellAnimation: 140,
- eatAnimation: "on",
- cellTextAnimation: "on",
- cellMass: "shortened",
- food: "monoColored",
- bgSectors: "normal",
- vanillaGrid: "off"
- }
- }
- }
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.isOpened = !1, this.div = $("#settings"), this.language = Storage.get("settings", "language") || LangHandler.browser, this.CellAnimation = ~~Storage.get("settings", "CellAnimation") || 140, this.eatAnimation = Storage.get("settings", "eatAnimation") || "on", this.zoomSpeed = ~~Storage.get("settings", "zoomSpeed") || 92, this.cameraSpeed = ~~Storage.get("settings", "cameraSpeed") || 2, this.autoZoom = Storage.get("settings", "autoZoom") || "off", this.cellTextAnimation = Storage.get("settings", "cellTextAnimation") || "on", this.autoHideText = Storage.get("settings", "autoHideText") || "on", this.cellNick = Storage.get("settings", "cellNick") || "on", this.nickShadow = Storage.get("settings", "nickShadow") || "off", this.cellMass = Storage.get("settings", "cellMass") || "shortened", this.massShadow = Storage.get("settings", "massShadow") || "off", this.hideOwnNick = Storage.get("settings", "hideOwnNick") || "on", this.hideOwnMass = Storage.get("settings", "hideOwnMass") || "off", this.urlSkins = Storage.get("settings", "urlSkins") || "on", this.cellzSkins = Storage.get("settings", "cellzSkins") || "on", this.food = Storage.get("settings", "food") || "monoColored", this.bgSectors = Storage.get("settings", "bgSectors") || "normal", this.vanillaGrid = Storage.get("settings", "vanillaGrid") || "off", this.cursorLine = Storage.get("settings", "cursorLine") || "off", this.teamIndicator = Storage.get("settings", "teamIndicator") || "on", this.opponentRings = Storage.get("settings", "opponentRings") || "off", this.splitRings = Storage.get("settings", "splitRings") || "off", this.virusRange = Storage.get("settings", "virusRange") || "off", this.commander = Storage.get("settings", "commander") || "on", this.sounds = Storage.get("settings", "sounds") || "on", this.targeting = Storage.get("settings", "targeting") || "off", this.chatType = Storage.get("settings", "chatType") || "popup", this.multiboxMode = Storage.get("settings", "multiboxMode") || "on", this.setDomValues(), this.addEvents()
- }
- }, {
- key: "setDomValues",
- value: function() {
- $(".settings-options").each(function() {
- var e = $(this).attr("type");
- "range" === e ? Menu.handleRange(this, 2) : "options" === e && Menu.handleOptions(this, 2)
- }), this.toggleChatroom(), this.changeLanguage()
- }
- }, {
- key: "addEvents",
- value: function() {
- var e = this;
- $(".settings-container").perfectScrollbar(), $(".settings-container .fa-chevron-left").each(function() {
- var e = this;
- $(this).click(function() {
- var t = $(e).parent(),
- n = $(t).attr("type");
- "options" === n ? Menu.handleOptions(t, 0) : "range" === n && Menu.handleRange(t, 0)
- })
- }), $(".settings-container span.outer").each(function() {
- var e = this;
- $(this).click(function(t) {
- var n = $(e).parent();
- Menu.handleRange(n, 3, t.offsetX)
- })
- }), $(".settings-container .fa-chevron-right").each(function() {
- var e = this;
- $(this).click(function() {
- var t = $(e).parent(),
- n = $(t).attr("type");
- "options" === n ? Menu.handleOptions(t, 1) : "range" === n && Menu.handleRange(t, 1)
- })
- }), $(".settings-close").click(function() {
- return e.close()
- })
- }
- }, {
- key: "toggle",
- value: function() {
- this.isOpened ? this.close() : this.open()
- }
- }, {
- key: "close",
- value: function() {
- this.isOpened = !1, this.div.fadeOut(250)
- }
- }, {
- key: "open",
- value: function() {
- this.isOpened = !0, this.div.fadeIn(250)
- }
- }, {
- key: "handleOptions",
- value: function(e, t) {
- for (var n = $(e).attr("name"), i = $(e).find("b"), o = i.length, a = o, r = 0; a--;) {
- var s = i[a];
- "active" === $(s).attr("class") && (r = a)
- }
- if (1 === t) {
- var l = r + 1 < o ? r + 1 : 0;
- $(i[r]).removeAttr("class"), $(i[l]).attr("class", "active");
- var c = $(i[l]).attr("value");
- this.saveSettings(n, c)
- } else if (0 === t) {
- var u = 0 < r ? r - 1 : o - 1;
- $(i[r]).removeAttr("class"), $(i[u]).attr("class", "active");
- var d = $(i[u]).attr("value");
- this.saveSettings(n, d)
- } else if (2 === t) {
- $(i[r]).removeAttr("class");
- for (var h, f = o; f--;)
- if (h = i[f], $(h).attr("value") === this[n]) {
- $(h).attr("class", "active");
- break
- }
- }
- }
- }, {
- key: "handleRange",
- value: function(e, t) {
- var n = arguments.length > 2 && void 0 !== arguments[2] ? arguments[2] : 0,
- i = $(e).attr("name"),
- o = $(e).find("span"),
- a = o[0],
- r = o[1],
- s = $(o[2]),
- l = ~~$(a).attr("min"),
- c = ~~$(a).attr("max"),
- u = ~~$(a).attr("step"),
- d = ~~$(a).attr("value");
- if (1 === t && d + u <= c) {
- var h = u + d;
- $(a).attr("value", h), $(r).css("width", ~~(100 * (h - l) / (c - l)) + "px"), s.text("[" + h + "]"), this.saveSettings(i, ~~h)
- } else if (0 === t && d - u >= l) {
- var f = d - u;
- $(a).attr("value", f), $(r).css("width", ~~(100 * (f - l) / (c - l)) + "px"), s.text("[" + f + "]"), this.saveSettings(i, ~~f)
- } else if (2 === t) {
- var m = this[i];
- $(a).attr("value", m), $(r).css("width", ~~(100 * (m - l) / (c - l)) + "px"), s.text("[" + m + "]")
- } else if (3 === t) {
- var g = 0 | n / 100 * (c - l);
- g = (0 | g / u) * u;
- var p = 100 * ((g += l) - l) / (c - l);
- $(a).attr("value", g), $(r).css("width", ~~p + "px"), s.text("[" + g + "]"), this.saveSettings(i, ~~g)
- }
- }
- }, {
- key: "saveSettings",
- value: function(e, t) {
- switch (this[e] = t, e) {
- case "multiboxMode":
- Chat.alert("SERVER", "Please rejoin the server!");
- break;
- case "chatType":
- this.toggleChatroom();
- break;
- case "language":
- this.changeLanguage();
- break;
- case "nickShadow":
- Cache.nickCaches.clear();
- break;
- case "massShadow":
- e && Cache.massCaches.clear()
- }
- Storage.set("settings", e, t), "custom" !== Theming.selectedPreset && (Theming.selectedPreset = "custom", Storage.set("theme", "selectedPreset", "custom"), Theming.setDomValues())
- }
- }, {
- key: "changeLanguage",
- value: function() {
- LangHandler.change(), CommandManager.refresh()
- }
- }, {
- key: "toggleChatroom",
- value: function() {
- "chatroom" === this.chatType ? $("#chatroom").show() : $("#chatroom").hide()
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = r(n(12)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, o.default)(this, e)
- }
- return (0, a.default)(e, null, [{
- key: "init",
- value: function() {
- this.multiboxKey = "TAB", this.toggleMenuKey = Storage.get("hotkeys", "toggleMenuKey") || "ESC", this.feedKey = Storage.get("hotkeys", "feedKey") || "W", this.macroFeedKey = Storage.get("hotkeys", "macroFeedKey") || "E", this.splitKey = Storage.get("hotkeys", "splitKey") || "SPACE", this.doubleSplitKey = Storage.get("hotkeys", "doubleSplitKey") || "R", this.split16Key = Storage.get("hotkeys", "split16Key") || "G", this.stopKey = Storage.get("hotkeys", "stopKey") || "S", this.chatKey = Storage.get("hotkeys", "chatKey") || "ENTER", this.freeSpectateKey = Storage.get("hotkeys", "freeSpectateKey") || "Q", this.toggleSplitRings = Storage.get("hotkeys", "toggleSplitRings") || "U", this.toggleOpponentRings = Storage.get("hotkeys", "toggleOpponentRings") || "I", this.toggleNick = Storage.get("hotkeys", "toggleNick") || "N", this.toggleMass = Storage.get("hotkeys", "toggleMass") || "M", this.toggleBGsectors = Storage.get("hotkeys", "toggleBGsectors") || "B", this.toggleFood = Storage.get("hotkeys", "toggleFood") || "F", this.toggleSkin = Storage.get("hotkeys", "toggleSkin") || "A", this.respawnKey = Storage.get("hotkeys", "respawnKey") || "TILDE", this.command0Key = Storage.get("hotkeys", "command0Key") || "0", this.command1Key = Storage.get("hotkeys", "command1Key") || "1", this.command2Key = Storage.get("hotkeys", "command2Key") || "2", this.command3Key = Storage.get("hotkeys", "command3Key") || "3", this.command4Key = Storage.get("hotkeys", "command4Key") || "4", this.command5Key = Storage.get("hotkeys", "command5Key") || "5", this.command6Key = Storage.get("hotkeys", "command6Key") || "6", this.command7Key = Storage.get("hotkeys", "command7Key") || "7", this.command8Key = Storage.get("hotkeys", "command8Key") || "8", this.command9Key = Storage.get("hotkeys", "command9Key") || "9", this.zoom1key = Storage.get("hotkeys", "zoom1key") || "ALT+1", this.zoom2key = Storage.get("hotkeys", "zoom2key") || "ALT+2", this.zoom3key = Storage.get("hotkeys", "zoom3key") || "ALT+3", this.zoom4key = Storage.get("hotkeys", "zoom4key") || "ALT+4", this.zoom5key = Storage.get("hotkeys", "zoom5key") || "ALT+5", this.pressedKeys = new i.default, this.setDomKeys(), this.addEvents()
- }
- }, {
- key: "setDomKeys",
- value: function() {
- $("#hotkeys .row").each(function() {
- var e = $(this).attr("name"),
- t = $(this).find(".key")[0];
- $(t).val(HotkeysManager[e])
- })
- }
- }, {
- key: "addEvents",
- value: function() {
- var e = this;
- $("#hotkeys").perfectScrollbar(), $("#hotkeys .row .key").each(function() {
- var e = this;
- $(this).keydown(function(t) {
- t.preventDefault();
- var n = $(e).parent();
- Hotkeys.setKey(n, t, e)
- })
- }), document.addEventListener("keydown", function(t) {
- return e.onKeyDown(t)
- }), document.addEventListener("keyup", function(t) {
- return e.onKeyUp(t)
- })
- }
- }, {
- key: "onKeyDown",
- value: function(e) {
- 9 === e.keyCode && e.preventDefault();
- var t = this.getKey(e);
- if (t && !this.pressedKeys.has(t) && (this.pressedKeys.set(t, !0), !c.isOpened && "hotkeys" !== c.target)) {
- if (t === this.chatKey) return void Settings.chat();
- if (!U.isFocused) {
- if (t === this.toggleMenuKey) return void HUD.toggle();
- if (!HUD.isOpened) {
- if (e.preventDefault(), t === this.freeSpectateKey && !Client.isAlive) return void Settings.toggleSpectate();
- if (t === this.respawnKey) return void Settings.respawn();
- if (Client.isAlive) {
- if (t === this.macrousedKeyedKey) return void Settings.macrousedKeyed(!0);
- if (t === this.usedKeyedKey) return void Settings.usedKeyed();
- if (t === this.splitKey) return void Settings.split();
- if (t === this.doubleSplitKey) return void Settings.doubleSplit();
- if (t === this.split16Key) return void Settings.split16();
- if (t === this.multiboxKey) return void Settings.toggleCell()
- }
- switch (t) {
- case this.stopKey:
- return void Settings.stopMovementToggle();
- case this.toggleSplitRings:
- return void Settings.toggleSplitRings();
- case this.toggleOpponentRings:
- return void Settings.toggleOpponentRings();
- case this.toggleNick:
- return void Settings.toggleCellNick();
- case this.toggleMass:
- return void Settings.toggleCellMass();
- case this.toggleBGsectors:
- return void Settings.toggleBGsectors();
- case this.toggleFood:
- return void Settings.toggleGameFood();
- case this.toggleSkin:
- return void Settings.toggleSkin();
- case this.command0Key:
- return void Settings.command(0);
- case this.command1Key:
- return void Settings.command(1);
- case this.command2Key:
- return void Settings.command(2);
- case this.command3Key:
- return void Settings.command(3);
- case this.command4Key:
- return void Settings.command(4);
- case this.command5Key:
- return void Settings.command(5);
- case this.command6Key:
- return void Settings.command(6);
- case this.command7Key:
- return void Settings.command(7);
- case this.command8Key:
- return void Settings.command(8);
- case this.command9Key:
- return void Settings.command(9);
- case this.zoom1key:
- return void Settings.setZoom(.5);
- case this.zoom2key:
- return void Settings.setZoom(.25);
- case this.zoom3key:
- return void Settings.setZoom(.125);
- case this.zoom4key:
- return void Settings.setZoom(.075);
- case this.zoom5key:
- return void Settings.setZoom(.05);
- default:
- return
- }
- }
- }
- }
- }
- }, {
- key: "onKeyUp",
- value: function(e) {
- var t = this.getKey(e);
- t && (this.pressedKeys.delete(t), t === this.macrousedKeyedKey) && Settings.macrousedKeyed(!1)
- }
- }, {
- key: "setKey",
- value: function(e, t, n) {
- var i = this.getKey(t),
- o = $(e).attr("name");
- !1 !== i && "freeSpectateKey" === o || (this.alreadyBinded(i), "DEL" === i && (i = ""), $(n).val(i), this[o] = i, Storage.set("hotkeys", o, i))
- }
- }, {
- key: "alreadyBinded",
- value: function(e) {
- var t = !1;
- switch (e) {
- case this.toggleMenuKey:
- t = "toggleMenuKey";
- break;
- case this.keyedKey:
- t = "keyedKey";
- break;
- case this.macrokeyedKey:
- t = "macrokeyedKey";
- break;
- case this.splitKey:
- t = "splitKey";
- break;
- case this.doubleSplitKey:
- t = "doubleSplitKey";
- break;
- case this.split16Key:
- t = "split16Key";
- break;
- case this.toggleCell:
- t = "toggleCell";
- break;
- case this.stopKey:
- t = "stopKey";
- break;
- case this.chatKey:
- t = "chatKey";
- break;
- case this.toggleSplitRings:
- t = "toggleSplitRings";
- break;
- case this.toggleOpponentRings:
- t = "toggleOpponentRings";
- break;
- case this.toggleNick:
- t = "toggleNick";
- break;
- case this.toggleMass:
- t = "toggleMass";
- break;
- case this.toggleBGsectors:
- t = "toggleBGsectors";
- break;
- case this.toggleFood:
- t = "toggleFood";
- break;
- case this.toggleSkin:
- t = "toggleSkin";
- break;
- case this.respawnKey:
- t = "respawnKey";
- break;
- case this.command0Key:
- t = "command0Key";
- break;
- case this.command1Key:
- t = "command1Key";
- break;
- case this.command2Key:
- t = "command2Key";
- break;
- case this.command3Key:
- t = "command3Key";
- break;
- case this.command4Key:
- t = "command4Key";
- break;
- case this.command5Key:
- t = "command5Key";
- break;
- case this.command6Key:
- t = "command6Key";
- break;
- case this.command7Key:
- t = "command7Key";
- break;
- case this.command8Key:
- t = "command8Key";
- break;
- case this.command9Key:
- t = "command9Key";
- break;
- case this.zoom1key:
- t = "zoom1key";
- break;
- case this.zoom2key:
- t = "zoom2key";
- break;
- case this.zoom3key:
- t = "zoom3key";
- break;
- case this.zoom4key:
- t = "zoom4key";
- break;
- case this.zoom5key:
- t = "zoom5key"
- }
- t && (this[t] = "", Storage.set("hotkeys", t, ""), $("#hotkeys .row[name=" + t + "] input").val(""))
- }
- }, {
- key: "isValidKey",
- value: function(e) {
- var t = e.keyCode || e.which;
- return 64 < t && 91 > t || 47 < t && 58 > t || 13 === t || 27 === t || 32 === t || 16 === t || 46 === t || 192 === t || 9 === t
- }
- }, {
- key: "getKey",
- value: function(e) {
- if (!this.isValidKey(e)) return !1;
- var t = e.keyCode || e.which,
- n = !1,
- i = !1;
- if (e.ctrlKey ? n = "CTRL+" : e.altKey && (n = "ALT+"), 64 < t && 91 > t) i = String.fromCharCode(t);
- else if (47 < t && 58 > t) i = "" + (t - 48);
- else if (n) switch (t) {
- case 13:
- i = "ENTER";
- break;
- case 27:
- i = "ESC";
- break;
- case 32:
- i = "SPACE";
- break;
- case 16:
- i = "SHIFT";
- break;
- case 9:
- i = "TAB";
- break;
- case 46:
- i = "DEL";
- break;
- case 192:
- i = "TILDE"
- }
- return i ? n + i : i
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = r(n(12)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, o.default)(this, e)
- }
- return (0, a.default)(e, null, [{
- key: "init",
- value: function() {
- this.multiboxKey = "TAB", this.toggleMenuKey = Storage.get("hotkeys", "toggleMenuKey") || "ESC", this.feedKey = Storage.get("hotkeys", "feedKey") || "W", this.macroFeedKey = Storage.get("hotkeys", "macroFeedKey") || "E", this.splitKey = Storage.get("hotkeys", "splitKey") || "SPACE", this.doubleSplitKey = Storage.get("hotkeys", "doubleSplitKey") || "R", this.split16Key = Storage.get("hotkeys", "split16Key") || "G", this.stopKey = Storage.get("hotkeys", "stopKey") || "S", this.chatKey = Storage.get("hotkeys", "chatKey") || "ENTER", this.freeSpectateKey = Storage.get("hotkeys", "freeSpectateKey") || "Q", this.toggleSplitRings = Storage.get("hotkeys", "toggleSplitRings") || "U", this.toggleOpponentRings = Storage.get("hotkeys", "toggleOpponentRings") || "I", this.toggleNick = Storage.get("hotkeys", "toggleNick") || "N", this.toggleMass = Storage.get("hotkeys", "toggleMass") || "M", this.toggleBGsectors = Storage.get("hotkeys", "toggleBGsectors") || "B", this.toggleFood = Storage.get("hotkeys", "toggleFood") || "F", this.toggleSkin = Storage.get("hotkeys", "toggleSkin") || "A", this.respawnKey = Storage.get("hotkeys", "respawnKey") || "TILDE", this.command0Key = Storage.get("hotkeys", "command0Key") || "0", this.command1Key = Storage.get("hotkeys", "command1Key") || "1", this.command2Key = Storage.get("hotkeys", "command2Key") || "2", this.command3Key = Storage.get("hotkeys", "command3Key") || "3", this.command4Key = Storage.get("hotkeys", "command4Key") || "4", this.command5Key = Storage.get("hotkeys", "command5Key") || "5", this.command6Key = Storage.get("hotkeys", "command6Key") || "6", this.command7Key = Storage.get("hotkeys", "command7Key") || "7", this.command8Key = Storage.get("hotkeys", "command8Key") || "8", this.command9Key = Storage.get("hotkeys", "command9Key") || "9", this.zoom1key = Storage.get("hotkeys", "zoom1key") || "ALT+1", this.zoom2key = Storage.get("hotkeys", "zoom2key") || "ALT+2", this.zoom3key = Storage.get("hotkeys", "zoom3key") || "ALT+3", this.zoom4key = Storage.get("hotkeys", "zoom4key") || "ALT+4", this.zoom5key = Storage.get("hotkeys", "zoom5key") || "ALT+5", this.pressedKeys = new i.default, this.setDomKeys(), this.addEvents()
- }
- }, {
- key: "setDomKeys",
- value: function() {
- $("#hotkeys .row").each(function() {
- var e = $(this).attr("name"),
- t = $(this).find(".key")[0];
- $(t).val(Hotkeys[e])
- })
- }
- }, {
- key: "addEvents",
- value: function() {
- var e = this;
- $("#hotkeys").perfectScrollbar(), $("#hotkeys .row .key").each(function() {
- var e = this;
- $(this).keydown(function(t) {
- t.preventDefault();
- var n = $(e).parent();
- Hotkeys.setKey(n, t, e)
- })
- }), document.addEventListener("keydown", function(t) {
- return e.onKeyDown(t)
- }), document.addEventListener("keyup", function(t) {
- return e.onKeyUp(t)
- })
- }
- }, {
- key: "onKeyDown",
- value: function(e) {
- 9 === e.keyCode && e.preventDefault();
- var t = this.getKey(e);
- if (t && !this.pressedKeys.has(t) && (this.pressedKeys.set(t, !0), !HotkeysPanel.isOpened || "hotkeys" !== HotkeysPanel.target)) {
- if (t === this.chatKey) return Settings.chat();
- if (!ChatRoom.isFocused) {
- if (t === this.toggleMenuKey) return HUD.toggle();
- if (!HUD.isOpened) {
- if (e.preventDefault(), t === this.freeSpectateKey && !Client.isAlive) return Settings.toggleSpectate();
- if (t === this.respawnKey) return Settings.respawn();
- if (Client.isAlive) switch (t) {
- case this.macroFeedKey:
- Settings.macroFeed(!0);
- break;
- case this.feedKey:
- Settings.feed();
- break;
- case this.splitKey:
- Settings.split();
- break;
- case this.doubleSplitKey:
- Settings.doubleSplit();
- break;
- case this.split16Key:
- Settings.split16();
- break;
- case this.multiboxKey:
- Settings.toggleCell()
- }
- return t === this.stopKey ? void Settings.stopMovementToggle() : t === this.toggleSplitRings ? void Settings.toggleSplitRings() : t === this.toggleOpponentRings ? void Settings.toggleOpponentRings() : t === this.toggleNick ? void Settings.toggleCellNick() : t === this.toggleMass ? void Settings.toggleCellMass() : t === this.toggleBGsectors ? void Settings.toggleBGsectors() : t === this.toggleFood ? void Settings.toggleGameFood() : t === this.toggleSkin ? void Settings.toggleSkin() : t === this.command0Key ? void Settings.command(0) : t === this.command1Key ? void Settings.command(1) : t === this.command2Key ? void Settings.command(2) : t === this.command3Key ? void Settings.command(3) : t === this.command4Key ? void Settings.command(4) : t === this.command5Key ? void Settings.command(5) : t === this.command6Key ? void Settings.command(6) : t === this.command7Key ? void Settings.command(7) : t === this.command8Key ? void Settings.command(8) : t === this.command9Key ? void Settings.command(9) : t === this.zoom1key ? void Settings.setZoom(.5) : t === this.zoom2key ? void Settings.setZoom(.25) : t === this.zoom3key ? void Settings.setZoom(.125) : t === this.zoom4key ? void Settings.setZoom(.075) : t === this.zoom5key ? void Settings.setZoom(.05) : void 0
- }
- }
- }
- }
- }, {
- key: "onKeyUp",
- value: function(e) {
- var t = this.getKey(e);
- t && (this.pressedKeys.delete(t), t === this.macroFeedKey) && Settings.macroFeed(!1)
- }
- }, {
- key: "setKey",
- value: function(e, t, n) {
- var i = this.getKey(t),
- o = $(e).attr("name");
- !1 === i || ("freeSpectateKey" !== o && this.alreadyBinded(i), "DEL" === i && (i = ""), $(n).val(i), this[o] = i, Storage.set("hotkeys", o, i))
- }
- }, {
- key: "alreadyBinded",
- value: function(e) {
- var t = !1;
- e === this.toggleMenuKey ? t = "toggleMenuKey" : e === this.feedKey ? t = "feedKey" : e === this.macroFeedKey ? t = "macroFeedKey" : e === this.splitKey ? t = "splitKey" : e === this.doubleSplitKey ? t = "doubleSplitKey" : e === this.split16Key ? t = "split16Key" : e === this.toggleCell ? t = "toggleCell" : e === this.stopKey ? t = "stopKey" : e === this.chatKey ? t = "chatKey" : e === this.toggleSplitRings ? t = "toggleSplitRings" : e === this.toggleOpponentRings ? t = "toggleOpponentRings" : e === this.toggleNick ? t = "toggleNick" : e === this.toggleMass ? t = "toggleMass" : e === this.toggleBGsectors ? t = "toggleBGsectors" : e === this.toggleFood ? t = "toggleFood" : e === this.toggleSkin ? t = "toggleSkin" : e === this.respawnKey ? t = "respawnKey" : e === this.command0Key ? t = "command0Key" : e === this.command1Key ? t = "command1Key" : e === this.command2Key ? t = "command2Key" : e === this.command3Key ? t = "command3Key" : e === this.command4Key ? t = "command4Key" : e === this.command5Key ? t = "command5Key" : e === this.command6Key ? t = "command6Key" : e === this.command7Key ? t = "command7Key" : e === this.command8Key ? t = "command8Key" : e === this.command9Key ? t = "command9Key" : e === this.zoom1key ? t = "zoom1key" : e === this.zoom2key ? t = "zoom2key" : e === this.zoom3key ? t = "zoom3key" : e === this.zoom4key ? t = "zoom4key" : e === this.zoom5key && (t = "zoom5key"), t && (this[t] = "", Storage.set("hotkeys", t, ""), $("#hotkeys .row[name=" + t + "] input").val(""))
- }
- }, {
- key: "isValidKey",
- value: function(e) {
- var t = e.keyCode || e.which;
- return 64 < t && 91 > t || 47 < t && 58 > t || 13 === t || 27 === t || 32 === t || 16 === t || 46 === t || 192 === t || 9 === t
- }
- }, {
- key: "getKey",
- value: function(e) {
- if (!this.isValidKey(e)) return !1;
- var t = e.keyCode || e.which,
- n = !1,
- i = !1;
- return e.ctrlKey ? n = "CTRL+" : e.altKey && (n = "ALT+"), 64 < t && 91 > t ? i = String.fromCharCode(t) : 47 < t && 58 > t ? i = "" + (t - 48) : n || (13 === t ? i = "ENTER" : 27 === t ? i = "ESC" : 32 === t ? i = "SPACE" : 16 === t ? i = "SHIFT" : 9 === t ? i = "TAB" : 46 === t ? i = "DEL" : 192 === t && (i = "TILDE")), !!i && (n ? n + i : i)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- e.exports = {
- mainMenu: {
- btn_settings: "Configuracion",
- btn_play: "Jugar",
- btn_spectate: "Espectear",
- btn_inputs: "Hot Keys",
- btn_theme: "Tema/Diseño",
- input_tag1: "Tag",
- input_tag2: "Tag 2",
- input_nick: "Nick",
- input_skinUrl: "Skin URL (imgur)",
- select_ffa: "FFA",
- select_party: "Party",
- select_teams: "Teams",
- select_experimental: "Experimental",
- input_token: "Codigo Party",
- btn_join: "Entrar",
- btn_create: "Crear"
- },
- notif: {
- cantPlay2Tag: "Tu no puedes jugar cuando utilizas la funcion de doble tag.",
- hsloNetConn: "Conectado a HSLO Networks.",
- hsloNetDisconn: "Desconectado de HSLO networks.",
- invalidSkinUrl: "Invalid skin URL",
- login_lastSession: "Logged in from last session data.",
- sdk_error: "SDK no ha cargado.",
- alreadyLoggedIn: "Ya te encuentras conectado.",
- login_success: "Conectado",
- login_error: "Error al conectar!",
- logout: "Desconectar",
- nickChangeInGame: "No puedes cambiar tu nickname cuando te encuentras jugando.",
- targeting_on: "Haga clic en una celula para comenzar a seguirla. Vea las instrucciones en el menú de configuración del mouse.",
- targeting_off: "El seguimiento está desactivada. Enciéndalo en el menú de configuración para usarlo.",
- target_unnamed: "Cannot target unnamed cells.",
- hsloSkin_noAcc: "Account does not exist."
- },
- leaderboard: {
- title: "CELLZ PLUS"
- },
- huds: {
- enterChatMsg: "Ingresa el mensaje...",
- teamlist_title: "Jugadores de equipo",
- score: "Puntuación",
- num1position: "#1 Posición",
- paused: "Pausado",
- targeting_bigCellVp: "BIGGEST CELL VIEWPORT",
- targeting_followVp: "VIEWPORT FOLLOWING MOUSE",
- targeting_totalMass: "MASA TOTAL",
- targeting_players: "JUGADOR OBJETIVO"
- },
- settingMenu: {
- language: "Lenguaje",
- CellAnimation: "Retraso de animación",
- zoomSpeed: "Velocidad del Zoom",
- cameraSpeed: "Velocidad de Camara [2 es Preterminado]",
- eatAnimation: "Celula comiendo animacion",
- autoZoom: "Auto zoom",
- cellTextAnimation: "Animacion texto en celula",
- autoHideText: "Auto Ocultar texto",
- hideOwnNick: "Hide own nick",
- hideOwnMass: "Hide own mass",
- cellNick: "Nick de la celula",
- cellMass: "Masa de la celula",
- nickShadow: "Trazo del nick",
- massShadow: "Trazo del masa",
- urlSkins: "URL skins",
- hsloSkins: "HSLO skins",
- food: "Comida/Pellets",
- vanillaGrid: "Cuadricula Vanilla",
- bgSectors: "Tipo de sector",
- cursorLine: "Linea del cursor",
- opponentRings: "Rango del oponente",
- splitRings: "Split rings",
- virusRange: "Rango del virus",
- teamIndicator: "Indicador de compañero",
- commander: "Señal/Comandante",
- chatType: "Tipo de Chat",
- targeting: "Seguiento de celula",
- sounds: "Sonidos",
- opt_on: "Activado",
- opt_off: "Desactivado",
- opt_stepped: "Stepped",
- opt_linear: "Lineal",
- opt_shortened: "Acortado",
- opt_full: "Completo",
- opt_nick: "Nick",
- opt_mass: "Masa",
- opt_both: "Nick + Masa",
- opt_perf: "Rendimiento",
- opt_normal: "Normal",
- opt_urlSkin: "Url skins",
- opt_hsloSkin: "Hslo skins",
- opt_allSkin: "Todas las skins",
- opt_singleClr: "Solo un color",
- opt_rainbow: "Arcoiris",
- opt_onlyLines: "Solo lineas",
- opt_snowflakes: "Copos de nieve",
- opt_chatroom: "Chatroom",
- opt_popup: "Chat emergente"
- },
- hkMenu: {
- title: "Hotkeys",
- toggleMenuKey: "Ocultar menu principal",
- feedKey: "Cebar",
- macroFeedKey: "Cebar rapido [Macro]",
- splitKey: "Dividirse",
- doubleSplitKey: "División doble",
- split16Key: "Dividir 16",
- stopKey: "Detener el movimiento de la celula",
- chatKey: "Ocultar Chat",
- freeSpectateKey: "Toggle spectate mode",
- toggleSplitRings: "Toggle split rings",
- toggleOpponentRings: "Toggle opponent rings",
- toggleNick: "Ocultar nick de la celula",
- toggleMass: "Ocultar masa de la celula",
- toggleSkin: "Ocultar skin",
- toggleFood: "Ocultar comida/pellets",
- respawnKey: "Reaparicion rapida",
- command0Key: "Comando 0",
- command1Key: "Comando 1",
- command2Key: "Comando 2",
- command3Key: "Comando 3",
- command4Key: "Comando 4",
- command5Key: "Comando 5",
- command6Key: "Comando 6",
- command7Key: "Comando 7",
- command8Key: "Comando 8",
- command9Key: "Comando 9",
- zoom1key: "Zoom nivel 1",
- zoom2key: "Zoom nivel 2",
- zoom3key: "Zoom nivel 3",
- zoom4key: "Zoom nivel 4",
- zoom5key: "Zoom nivel 5"
- },
- mouseMenu: {
- title: "Raton",
- feed: "Cebar",
- macroFeed: "Cebar rapido[Macro]",
- split: "Division",
- doubleSplit: "Doble division",
- split16: "Division por 16",
- commander: "Comandante",
- off: "Desactivado",
- lmb: "Clic izquierdo",
- rmb: "Clic derecho",
- scroll: "Clic central(Rueda)",
- targeting_h1: "Targeting",
- targeting_txt1: "Lock target 1",
- targeting_txt2: "Lock target 2",
- targeting_txt3: "Middle click or Toggle spectate key",
- targeting_txt4: "Toggle top cell mode to follow mouse mode",
- targeting_txt5: "Toggle targeting mode to follow mouse mode",
- targeting_txt6: "Toggle follow mouse mode to top cell mode"
- },
- commandsMenu: {
- title: "Comandos",
- command0: "Mierda!",
- command1: "Alimentame!",
- command2: "Dividete en mi!",
- command3: "Necesito ayuda en %sector%!",
- command4: "Enemigo avistado en %sector%!",
- command5: "Necesito compañero!",
- command6: "Lanza el virus!",
- command7: "Come el virus!",
- command8: "Haz baiteo!",
- command9: "Tricksplit falso!"
- },
- themeMenu: {
- selectedPreset: "Theme preset",
- cursor: "Puntero",
- lbSize: "Tamaño del leaderboard",
- chatFontSize: "Chat font size",
- minimapSize: "Tamaño del minimapa",
- skinBorder: "Borde de la Skin",
- cellTransparency: "Transparencia de la celula",
- lightenCellColor: "Claridad del color de la celula",
- borderColor: "Color del borde",
- borderWidth: "Ancho del borde",
- gridColor: "Color del grid",
- gridTextColor: "Color del texto del grid",
- gridTextSize: "Tamaño de texto del grid",
- gridTextFont: "Fuente de texto del grid",
- gridWidth: "Ancho del grid",
- nickColor: "Color del nick",
- nickStrokeColor: "Color del borde del nick",
- cellNickSize: "Tamaño del nick",
- nickFont: "Fuente del nick",
- massColor: "Color de la masa",
- massStrokeColor: "Color del borde de la masa",
- cellMassSize: "Tamaño de la masa",
- massFont: "Fuente de la masa",
- foodColor: "Color de la comida",
- foodSize: "Tamaño de la comida",
- virusColor: "Color del virus",
- virusBorderColor: "Color del borde del virus",
- virusBorderWidth: "Ancho del borde del virus",
- virusDecor: "Decoracion del virus",
- backgroundColor: "Color del fondo",
- commanderColor: "Color del comandante",
- indicatorSize: "Tamaño del indicador de compañero",
- team1color: "Color Equipo 1 [Modo doble TAG]",
- team2color: "Color Equipo 2 [Modo doble TAG]",
- on: "Activado",
- off: "Desactivado"
- }
- }
- }, function(e, t, n) {
- "use strict";
- e.exports = {
- mainMenu: {
- btn_settings: "환경",
- btn_play: "í”Œë ˆì´",
- btn_spectate: "ê´€ì „",
- btn_inputs: "키보드",
- btn_theme: "테마",
- input_tag1: "태그",
- input_tag2: "태그 2",
- input_nick: "닉네임",
- input_skinUrl: "ì´ë¯¸ì§€ URL (imgur)",
- select_ffa: "FFA",
- select_party: "파티",
- select_teams: "팀",
- select_experimental: "ìµìŠ¤íŽ˜ë¦¬ë©˜íƒˆ",
- input_token: "파티 코드",
- btn_join: "ì¡°ì¸",
- btn_create: "ìƒˆë¡œê³ ì¹¨"
- },
- notif: {
- cantPlay2Tag: "태그2 모드ì—서는 ì‹¤í–‰í• ìˆ˜ 없습니다..",
- hsloNetConn: "HSLO 네트워í¬ì— ì—°ê²°ë˜ì—ˆìŠµë‹ˆë‹¤.",
- hsloNetDisconn: "HSLO 네트워í¬ì—ì„œ ì—°ê²°ì´ ëŠì–´ì¡ŒìŠµë‹ˆë‹¤.",
- invalidSkinUrl: "ìž˜ëª»ëœ ìŠ¤í‚¨ URL",
- login_lastSession: "마지막 세션 ë°ì´í„°ì—ì„œ 로그ì¸í–ˆìŠµë‹ˆë‹¤..",
- sdk_error: "SDKê°€ 로드ë˜ì§€ 않았습니다.",
- alreadyLoggedIn: "ì´ë¯¸ ë¡œê·¸ì¸ í–ˆìŠµë‹ˆë‹¤.",
- login_success: "로그ì¸",
- login_error: "ë¡œê·¸ì¸ ì˜¤ë¥˜!",
- logout: "로그 아웃 ë¨!",
- nickChangeInGame: "게임 중 ë‹‰ë„¤ìž„ì„ ë³€ê²½í• ìˆ˜ 없습니다..",
- targeting_on: "íƒ€ê²ŸíŒ…ì„ ì‹œìž‘í•˜ë ¤ë©´ 세í¬ë¥¼ í´ë¦í•˜ì‹ì‹œì˜¤. 마우스 ì„¤ì •ì—ì„œ ë©”ë‰´ì˜ ì§€ì¹¨ì„ ì°¸ì¡°í•˜ì‹ì‹œìš”..",
- targeting_off: "íƒ€ê²ŸíŒ…ì´ êº¼ì ¸ 있습니다. ì„¤ì • 메뉴ì—ì„œ 사용하ë„ë¡ ì„¤ì •í•˜ì‹ì‹œìš”.",
- target_unnamed: "Cannot target unnamed cells.",
- hsloSkin_noAcc: "Account does not exist."
- },
- leaderboard: {
- title: "CELLZ PLUS"
- },
- huds: {
- enterChatMsg: "채팅 메세지 ìž…ë ¥...",
- teamlist_title: "팀 í”Œë ˆì´ì–´",
- score: "ì 수",
- num1position: "#1등 위치",
- paused: "ì¼ì‹œ 중지",
- targeting_bigCellVp: "가장 í° ì„¸í¬ ëª©ë¡",
- targeting_followVp: "마우스 타겟팅 ì„¤ì •",
- targeting_totalMass: "ì´ ì§ˆëŸ‰",
- targeting_players: "ìž ìž¬ì 타겟팅"
- },
- settingMenu: {
- language: "언어",
- CellAnimation: "ì• ë‹ˆë©”ì´ì…˜ 지연",
- zoomSpeed: "줌 ì†ë„",
- cameraSpeed: "ì¹´ë©”ë¼ ì†ë„ [2 기본값]",
- eatAnimation: "ì„¸í¬ ë¨¹ê¸°[í¡ìˆ˜] ì• ë‹ˆë©”ì´ì…˜",
- autoZoom: "ìžë™ 확대/축소",
- cellTextAnimation: "ì„¸í¬ í…스트 ì• ë‹ˆë©”ì´ì…˜",
- autoHideText: "í…스트 ìžë™ 숨기기",
- hideOwnNick: "Hide own nick",
- hideOwnMass: "Hide own mass",
- cellNick: "ì„¸í¬ ë‹‰ë„¤ìž„",
- cellMass: "ì„¸í¬ ì§ˆëŸ‰",
- nickShadow: "ê·¸ë¦¼ìž [ì„¸í¬ ë‹‰ë„¤ìž„]",
- massShadow: "ê·¸ë¦¼ìž [ì„¸í¬ ì§ˆëŸ‰]",
- urlSkins: "URL 스킨",
- hsloSkins: "HSLO 스킨",
- food: "먹ì´",
- vanillaGrid: "ë°”ë‹ë¼ 무늬",
- bgSectors: "바탕화면",
- cursorLine: "커서 ì„ ",
- opponentRings: "질량 격ìžì„ ",
- splitRings: "Split rings",
- virusRange: "ë°”ì´ëŸ¬ìŠ¤ 범위",
- teamIndicator: "팀 목ë¡",
- commander: "위치 핑",
- chatType: "채팅 ìœ í˜•",
- targeting: "ì„¸í¬ íƒ€ê²ŸíŒ…[ê´€ì „ 모드]",
- sounds: "소리",
- opt_on: "켜ì§",
- opt_off: "꺼ì§",
- opt_stepped: "ë‹¿ì€ê³³",
- opt_linear: "ì„ í˜•",
- opt_shortened: "짧ì€",
- opt_full: "ì „ì²´",
- opt_nick: "닉네임",
- opt_mass: "질량",
- opt_both: "닉네임+ 질량",
- opt_perf: "실ì ",
- opt_normal: "보통",
- opt_urlSkin: "Url 스킨",
- opt_hsloSkin: "Hslo 스킨",
- opt_allSkin: "ëª¨ë“ ìŠ¤í‚¨",
- opt_singleClr: "Mono colored",
- opt_rainbow: "무지개",
- opt_onlyLines: "í…Œë‘리만",
- opt_snowflakes: "눈송ì´",
- opt_chatroom: "채팅방",
- opt_popup: "채팅 알림"
- },
- hkMenu: {
- title: "단축키",
- toggleMenuKey: "ë©”ì¸ë©”뉴 ë„기 ",
- feedKey: "feed 먹ì´",
- macroFeedKey: "매í¬ë¡œ feed먹ì´",
- splitKey: "분열",
- doubleSplitKey: "ì´ì¤‘ 분열",
- split16Key: "16분열",
- stopKey: "ì„¸í¬ ì´ë™ì¤‘지",
- chatKey: "채팅 켜기",
- freeSpectateKey: "투사 모드 ì „í™˜",
- toggleSplitRings: "Toggle split rings",
- toggleOpponentRings: "Toggle opponent rings",
- toggleNick: "ì„¸í¬ ë‹‰ì„ ì„¤ì •í•©ë‹ˆë‹¤",
- toggleMass: "ì„¸í¬ ì§ˆëŸ‰ì„ ì„¤ì •í•©ë‹ˆë‹¤",
- toggleSkin: "스킨 ì„¤ì •",
- toggleFood: "ë¨¹ì´ ì„¤ì •",
- respawnKey: "ë¹ ë¥¸ 부활",
- command0Key: "ëª…ë ¹ 0",
- command1Key: "ëª…ë ¹ 1",
- command2Key: "ëª…ë ¹ 2",
- command3Key: "ëª…ë ¹ 3",
- command4Key: "ëª…ë ¹ 4",
- command5Key: "ëª…ë ¹ 5",
- command6Key: "ëª…ë ¹ 6",
- command7Key: "ëª…ë ¹ 7",
- command8Key: "ëª…ë ¹ 8",
- command9Key: "ëª…ë ¹ 9",
- zoom1key: "줌 수준 1",
- zoom2key: "줌 수준 2",
- zoom3key: "줌 수준 3",
- zoom4key: "줌 수준 4",
- zoom5key: "줌 수준 5"
- },
- mouseMenu: {
- title: "마우스",
- feed: "피드feed",
- macroFeed: "매í¬ë¡œ 피드feed",
- split: "분열",
- doubleSplit: "ì´ì¤‘ 분열",
- split16: "16 분열",
- commander: "위치 핑",
- off: "꺼ì§",
- lmb: "왼쪽 í´ë¦",
- rmb: "오른쪽 í´ë¦",
- scroll: "íœ í´ë¦",
- targeting_h1: "타겟팅",
- targeting_txt1: "타겟 ìž ê¸ˆ 1 ",
- targeting_txt2: "타겟 ìž ê¸ˆ 2 ",
- targeting_txt3: "스í¬ë¡¤ í´ë¦ orê´€ì „ 키 ì „í™˜",
- targeting_txt4: "ì •ìƒ ì„¸í¬ ëª¨ë“œì—ì„œ 마우스 추ì ì— ì „í™˜ ",
- targeting_txt5: "타겟 모드ì—ì„œ 마우스 추ì ì— ì „í™˜ ",
- targeting_txt6: "마우스 추ì ì—ì„œ ìµœê³ ì„¸í¬ ëª¨ë“œë¡œ ì „í™˜ "
- },
- commandsMenu: {
- title: "ëª…ë ¹ì–´",
- command0: "시발!",
- command1: "빨리와주세요!",
- command2: "나ì—게 넣어줘!",
- command3: "ì—¬ê¸°ì— ë„ì›€ìš”ì² %sector%!",
- command4: "ì ì´ê³³ì—ì„œ 발견 %sector%!",
- command5: "팀ì›ì´ 필요해!",
- command6: "ë°”ì´ëŸ¬ìŠ¤ 부셔!",
- command7: "ë°”ì´ëŸ¬ìŠ¤ ì´!",
- command8: "미ë¼!",
- command9: "낚시하ìž"
- },
- themeMenu: {
- selectedPreset: "Theme preset",
- cursor: "커서",
- lbSize: "리ë”ë³´ë“œ í¬ê¸°",
- chatFontSize: "Chat font size",
- minimapSize: "미니맵 í¬ê¸°",
- skinBorder: "스킨 í…Œë‘리",
- cellTransparency: "ì„¸í¬ íˆ¬ëª…ë„",
- lightenCellColor: "ë°ì€ ì„¸í¬ ìƒ‰ê¹”",
- borderColor: "í…Œë‘리 색깔",
- borderWidth: "í…Œë‘리 너비",
- gridColor: "눈금 색",
- gridTextColor: "ê²©ìž í…스트 색깔",
- gridTextSize: "눈금 í…스트 í¬ê¸°",
- gridTextFont: "ê²©ìž í…ŒìŠ¤íŠ¸ 글꼴",
- gridWidth: "눈금 너비",
- nickColor: "닉네임 컬러",
- nickStrokeColor: "닉네임 색깔íš",
- cellNickSize: "닉 í¬ê¸°",
- nickFont: "닉 글꼴",
- massColor: "질량 색깔",
- massStrokeColor: "질량 색깔íš",
- cellMassSize: "질량 í¬ê¸°",
- massFont: "질량 글꼴",
- foodColor: "ë¨¹ì´ ìƒ‰ê¹”",
- foodSize: "ë¨¹ì´ í¬ê¸°",
- virusColor: "ë°”ì´ëŸ¬ìŠ¤ 색깔",
- virusBorderColor: "ë°”ì´ëŸ¬ìŠ¤ í…Œë‘리 색",
- virusBorderWidth: "ë°”ì´ëŸ¬ìŠ¤ í…Œë‘리 너비",
- virusDecor: "ë°”ì´ëŸ¬ìŠ¤ 장ì‹",
- backgroundColor: "배경 색깔",
- commanderColor: "위치 핑 색깔",
- indicatorSize: "팀 ì•„ì´ì½˜ í¬ê¸°",
- team1color: "팀 1 색[ë”블 태그 모드]",
- team2color: "팀 2 색[ë”블 태그 모드]",
- on: "켜ì§",
- off: "꺼ì§"
- }
- }
- }, function(e, t, n) {
- "use strict";
- e.exports = {
- mainMenu: {
- btn_settings: "è¨å®š",
- btn_play: "éŠçŽ©",
- btn_spectate: "觀戰",
- btn_inputs: "輸入",
- btn_theme: "主題",
- input_tag1: "隊ä¼ä¸€",
- input_tag2: "隊ä¼äºŒ",
- input_nick: "暱稱",
- input_skinUrl: "çš®è†šç¶²å€ (imgur)",
- select_ffa: "FFA",
- select_party: "Party",
- select_teams: "Teams",
- select_experimental: "Experimental",
- input_token: "Party代碼",
- btn_join: "åŠ å…¥",
- btn_create: "創建"
- },
- notif: {
- cantPlay2Tag: "ä¸èƒ½ç”¨é›™é‡éšŠä¼",
- hsloNetConn: "連接HSLO網絡",
- hsloNetDisconn: "斷開HSLO網絡",
- invalidSkinUrl: "ä¸ç•¶çš®è†šç¶²å€",
- login_lastSession: "以上次資訊登入",
- sdk_error: "SDK未載入",
- alreadyLoggedIn: "已經登入",
- login_success: "登入æˆåŠŸ",
- login_error: "登入錯誤",
- logout: "登出",
- nickChangeInGame: "ä¸èƒ½åœ¨éŠæˆ²ä¸æ›´æ”¹æš±ç¨±.",
- targeting_on: "é¸å–ä¸€ç´°èƒžè¿½è¹¤ã€‚è©³çœ‹æ»‘é¼ è¨å®šä»‹é¢çš„指引",
- targeting_off: "自動追蹤模å¼å·²é—œé–‰ï¼Œå¦‚è¦ä½¿ç”¨è«‹åœ¨è¨å®šä»‹é¢é–‹å•Ÿ",
- target_unnamed: "Cannot target unnamed cells.",
- hsloSkin_noAcc: "Account does not exist."
- },
- leaderboard: {
- title: "CELLZ PLUS"
- },
- huds: {
- enterChatMsg: "èŠå¤©è¼¸å…¥ä¸â€¦â€¦",
- teamlist_title: "隊ä¼çŽ©å®¶",
- score: "分數",
- num1position: "第一ä½ç½®",
- paused: "æš«åœ",
- targeting_bigCellVp: "最大玩家視野",
- targeting_followVp: "æ»‘é¼ è·Ÿéš¨è¦–é‡Ž",
- targeting_totalMass: "總質é‡",
- targeting_players: "追蹤玩家ä¸"
- },
- settingMenu: {
- language: "語言",
- CellAnimation: "動畫延é²",
- zoomSpeed: "變焦速度",
- cameraSpeed: "é¡é 速度[é è¨äºŒï¼½",
- eatAnimation: "進食動畫[å¸å…¥ï¼½",
- autoZoom: "自動變焦",
- cellTextAnimation: "細胞文å—å‹•ç•«",
- autoHideText: "自動隱è—æ–‡å—",
- hideOwnNick: "ä¸é¡¯ç¤ºè‡ªå·±è³ªé‡",
- hideOwnMass: "ä¸é¡¯ç¤ºè‡ªå·±å§“å",
- cellNick: "細胞暱稱",
- cellMass: "細胞質é‡",
- nickShadow: "陰影 [細胞暱稱]",
- massShadow: "é™°å½± [細胞質é‡]",
- urlSkins: "皮膚網å€",
- hsloSkins: "HSLO皮膚",
- food: "食物",
- vanillaGrid: "åŽŸç”Ÿæ ¼ç¶²",
- bgSectors: "背景å€é–“",
- cursorLine: "導引線",
- opponentRings: "變色環",
- splitRings: "分裂è·é›¢åœˆ",
- virusRange: "刺çƒè·é›¢",
- teamIndicator: "隊ä¼æ¨™ç¤º",
- commander: "指æ®",
- chatType: "èŠå¤©æ¨£å¼",
- targeting: "çŽ©å®¶è¿½è¹¤ä¸ [觀戰模å¼]",
- sounds: "è²éŸ³",
- opt_on: "é–‹",
- opt_off: "關",
- opt_stepped: "階èºå¼",
- opt_linear: "線性",
- opt_shortened: "ç°¡çŸåŒ–",
- opt_full: "全部",
- opt_nick: "暱稱",
- opt_mass: "質é‡",
- opt_both: "暱稱åŠè³ªé‡",
- opt_perf: "效能",
- opt_normal: "一般",
- opt_urlSkin: "皮膚網å€",
- opt_hsloSkin: "HSLO皮膚",
- opt_allSkin: "全部皮膚",
- opt_singleClr: "單色",
- opt_rainbow: "彩色",
- opt_onlyLines: "åªæœ‰ç·šæ¢",
- opt_snowflakes: "雪花",
- opt_chatroom: "èŠå¤©æ¬„",
- opt_popup: "彈出通知"
- },
- hkMenu: {
- title: "熱éµ",
- toggleMenuKey: "切æ›ä¸»é¸å–®",
- feedKey: "單次餵養",
- macroFeedKey: "æŒçºŒé¤µé¤Š",
- splitKey: "分裂",
- doubleSplitKey: "é›™é‡åˆ†è£‚",
- split16Key: "å››é‡åˆ†è£‚",
- stopKey: "åœæ¢ç§»å‹•",
- chatKey: "切æ›èŠå¤©",
- freeSpectateKey: "切æ›è§€æˆ°æ¨¡å¼",
- toggleSplitRings: "切æ›åˆ†è£‚è·é›¢åœˆ",
- toggleOpponentRings: "切æ›è®Šè‰²ç’°",
- toggleNick: "切æ›æš±ç¨±é¡¯ç¤º",
- toggleMass: "切æ›è³ªé‡é¡¯ç¤º",
- toggleSkin: "切æ›çš®è†šé¡¯ç¤º",
- toggleFood: "切æ›é£Ÿç‰©é¡¯ç¤º",
- respawnKey: "快速é‡ç”Ÿ",
- command0Key: "指令ï¼",
- command1Key: "指令1",
- command2Key: "指令2",
- command3Key: "指令3",
- command4Key: "指令4",
- command5Key: "指令5",
- command6Key: "指令6",
- command7Key: "指令7",
- command8Key: "指令8",
- command9Key: "指令9",
- zoom1key: "變焦ç‰ç´šä¸€",
- zoom2key: "變焦ç‰ç´šäºŒ",
- zoom3key: "變焦ç‰ç´šä¸‰",
- zoom4key: "變焦ç‰ç´šå››",
- zoom5key: "變焦ç‰ç´šäº”"
- },
- mouseMenu: {
- title: "æ»‘é¼ ",
- feed: "單次餵養",
- macroFeed: "æŒçºŒé¤µé¤Š",
- split: "單次分裂",
- doubleSplit: "é›™é‡åˆ†è£‚",
- split16: "å››é‡åˆ†è£‚",
- commander: "指æ®",
- off: "關",
- lmb: "å·¦éµ",
- rmb: "å³éµ",
- scroll: "滾輪éµ",
- targeting_h1: "追蹤ä¸",
- targeting_txt1: "鎖定目標一",
- targeting_txt2: "鎖定目標二",
- targeting_txt3: "滾輪éµæˆ–切æ›è§€æˆ°éµ",
- targeting_txt4: "切æ›æœ€å¤§çŽ©å®¶æ¨¡å¼èˆ‡æ»‘é¼ è·Ÿéš¨æ¨¡å¼",
- targeting_txt5: "切æ›è‡ªå‹•è¿½è¹¤æ¨¡å¼èˆ‡æ»‘é¼ è·Ÿéš¨æ¨¡å¼",
- targeting_txt6: "切æ›æ»‘é¼ è·Ÿéš¨æ¨¡å¼èˆ‡æœ€å¤§çŽ©å®¶æ¨¡å¼"
- },
- commandsMenu: {
- title: "指令",
- command0: "æ“ä½ åª½ï¼",
- command1: "餵我ï¼",
- command2: "秒空給我ï¼",
- command3: "%sector%需è¦æ”¯æ´ï¼",
- command4: "%sector%發ç¾æ•µäººï¼",
- command5: "來個隊å‹ï¼",
- command6: "擋刺ï¼",
- command7: "åƒæŽ‰åˆº",
- command8: "來騙他ï¼",
- command9: "è£çˆ†ç©ºé¨™ä»–ï¼"
- },
- themeMenu: {
- selectedPreset: "Theme preset",
- cursor: "é¼ æ¨™",
- lbSize: "排行榜大å°",
- chatFontSize: "èŠå¤©å®¤å—體大å°",
- minimapSize: "å°åœ°åœ–大å°",
- skinBorder: "皮膚輪廓",
- cellTransparency: "細胞é€æ˜Žåº¦",
- lightenCellColor: "光亮細胞é¡è‰²",
- borderColor: "外åœé¡è‰²",
- borderWidth: "外åœé—Šåº¦",
- gridColor: "å€é–“é¡è‰²",
- gridTextColor: "å€é–“æ–‡å—é¡è‰²",
- gridTextSize: "å€é–“æ–‡å—大å°",
- gridTextFont: "å€é–“æ–‡å—å—åž‹",
- gridWidth: "å€é–“闊度",
- nickColor: "暱稱é¡è‰²",
- nickStrokeColor: "暱稱輪廓é¡è‰²",
- cellNickSize: "暱稱大å°",
- nickFont: "暱稱å—åž‹",
- massColor: "質é‡è¨Šæ¯é¡è‰²",
- massStrokeColor: "質é‡è¨Šæ¯è¼ªå»“é¡è‰²",
- cellMassSize: "質é‡è¨Šæ¯å¤§å°",
- massFont: "質é‡è¨Šæ¯å—åž‹",
- foodColor: "食物é¡è‰²",
- foodSize: "食物大å°",
- virusColor: "刺çƒé¡è‰²",
- virusBorderColor: "刺çƒå¤–框é¡è‰²",
- virusBorderWidth: "刺çƒå¤–框闊度",
- virusDecor: "刺çƒè£é£¾",
- backgroundColor: "背景é¡è‰²",
- commanderColor: "指令é¡è‰²",
- indicatorSize: "隊ä¼æ¨™ç¤ºé¡è‰²",
- team1color: "隊ä¼ä¸€é¡è‰² [雙隊ä¼æ¨¡å¼]",
- team2color: "隊ä¼äºŒé¡è‰² [雙隊ä¼æ¨¡å¼]",
- on: "é–‹",
- off: "關"
- }
- }
- }, function(e, t, n) {
- "use strict";
- e.exports = {
- mainMenu: {
- btn_settings: "è¨å®š",
- btn_play: "プレー",
- btn_spectate: "観戦",
- btn_inputs: "インプット",
- btn_theme: "テーマ",
- input_tag1: "ã‚¿ã‚°",
- input_tag2: "ã‚¿ã‚°2",
- input_nick: "åå‰",
- input_skinUrl: "スã‚ンURL (imgur)",
- select_ffa: "FFA",
- select_party: "パーティー",
- select_teams: "ãƒãƒ¼ãƒ ",
- select_experimental: "エクスペリメンタル",
- input_token: "トークン",
- btn_join: "å‚åŠ ",
- btn_create: "作æˆ"
- },
- notif: {
- cantPlay2Tag: "ダブルタグモードã§ã¯ãƒ—レーã™ã‚‹ã“ã¨ãŒã§ãã¾ã›ã‚“。",
- hsloNetConn: "HSLOãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ã«æŽ¥ç¶šã—ã¾ã—ãŸã€‚",
- hsloNetDisconn: "HSLOãƒãƒƒãƒˆãƒ¯ãƒ¼ã‚¯ã‹ã‚‰åˆ‡æ–ã—ã¾ã—ãŸã€‚",
- invalidSkinUrl: "無効ãªURLã§ã™ã€‚",
- login_lastSession: "最後ã®ã‚»ãƒƒã‚·ãƒ§ãƒ³ã‹ã‚‰ãƒã‚°ã‚¤ãƒ³ã—ã¾ã—ãŸã€‚",
- sdk_error: "SDKãŒèªã¿è¾¼ã¾ã‚Œã¾ã›ã‚“ã§ã—ãŸã€‚",
- alreadyLoggedIn: "æ—¢ã«ãƒã‚°ã‚¤ãƒ³ã•ã‚Œã¦ã„ã¾ã™ã€‚",
- login_success: "ãƒã‚°ã‚¤ãƒ³ã—ã¾ã—ãŸã€‚",
- login_error: "ãƒã‚°ã‚¤ãƒ³ã‚¨ãƒ©ãƒ¼ï¼",
- logout: "ãƒã‚°ã‚¢ã‚¦ãƒˆã—ã¾ã—ãŸã€‚",
- nickChangeInGame: "プレーä¸ã«åå‰ã‚’変更ã™ã‚‹ã“ã¨ã¯ã§ãã¾ã›ã‚“。",
- targeting_on: "マウスをクリックã—ã¦ã‚¿ãƒ¼ã‚²ãƒƒãƒˆã‚’始ã‚ã¾ã™ã€‚マウスè¨å®šãƒ¡ãƒ‹ãƒ¥ãƒ¼ã®è§£èª¬ã‚’å‚照。",
- targeting_off: "ターゲットãŒã‚ªãƒ•ã«ãªã‚Šã¾ã—ãŸã€‚使用ã™ã‚‹ã«ã¯è¨å®šãƒ¡ãƒ‹ãƒ¥ãƒ¼ã‹ã‚‰ã‚ªãƒ³ã«ã—ã¦ãã ã•ã„。",
- target_unnamed: "Cannot target unnamed cells.",
- hsloSkin_noAcc: "Account does not exist."
- },
- leaderboard: {
- title: "CELLZ PLUS"
- },
- huds: {
- enterChatMsg: "メッセージをé€ä¿¡...",
- teamlist_title: "ãƒãƒ¼ãƒ プレーヤー",
- score: "スコア",
- num1position: "1ä½ã®ä½ç½®",
- paused: "é™æ¢",
- targeting_bigCellVp: "1ä½è¦–点",
- targeting_followVp: "マウス視点",
- targeting_totalMass: "åˆè¨ˆãƒžã‚¹",
- targeting_players: "ターゲットプレーヤー"
- },
- settingMenu: {
- language: "言語",
- CellAnimation: "アニメーションディレイ",
- zoomSpeed: "ズーム速度",
- cameraSpeed: "カメラ速度 [2 デフォルト]",
- eatAnimation: "細胞æ•é£Ÿ [飲ã¿è¾¼ã‚€] アニメーション",
- autoZoom: "オートズーム",
- cellTextAnimation: "細胞ã®ãƒ†ã‚ストアニメーション",
- autoHideText: "自動ã§ãƒ†ã‚ã‚¹ãƒˆã‚’éš ã™",
- hideOwnNick: "Hide own nick",
- hideOwnMass: "Hide own mass",
- cellNick: "細胞ã®åå‰",
- cellMass: "細胞ã®ãƒžã‚¹",
- nickShadow: "å½± [細胞ã®åå‰]",
- massShadow: "å½± [細胞ã®ãƒžã‚¹]",
- urlSkins: "URLスã‚ン",
- hsloSkins: "HSLOスã‚ン",
- food: "ç²’",
- vanillaGrid: "ãƒãƒ‹ãƒ©ã‚°ãƒªãƒƒãƒ‰",
- bgSectors: "座標",
- cursorLine: "カーソルライン",
- opponentRings: "æ•é£Ÿåˆ¤å®šãƒªãƒ³ã‚°",
- splitRings: "Split rings",
- virusRange: "棘範囲",
- teamIndicator: "ãƒãƒ¼ãƒ メイトインジケーター",
- commander: "コマンダー",
- chatType: "ãƒãƒ£ãƒƒãƒˆã‚¿ã‚¤ãƒ—",
- targeting: "ターゲット [観戦モード]",
- sounds: "サウンド",
- opt_on: "オン",
- opt_off: "オフ",
- opt_stepped: "ステップ",
- opt_shortened: "çŸç¸®",
- opt_linear: "リニア",
- opt_full: "フル",
- opt_nick: "åå‰",
- opt_mass: "マス",
- opt_both: "åå‰ + マス",
- opt_perf: "パフォーマンス",
- opt_normal: "ノーマル",
- opt_urlSkin: "URLスã‚ン",
- opt_hsloSkin: "Hsloスã‚ン",
- opt_allSkin: "全スã‚ン",
- opt_singleClr: "å˜è‰²",
- opt_rainbow: "レインボー",
- opt_onlyLines: "ç·šã®ã¿",
- opt_snowflakes: "スノーフレーク",
- opt_chatroom: "ãƒãƒ£ãƒƒãƒˆãƒ«ãƒ¼ãƒ ",
- opt_popup: "ãƒãƒƒãƒ—アップãƒãƒ£ãƒƒãƒˆ"
- },
- hkMenu: {
- title: "ホットã‚ー",
- toggleMenuKey: "メインメニュー切り替ãˆ",
- feedKey: "餌",
- macroFeedKey: "餌マクãƒ",
- splitKey: "分裂",
- doubleSplitKey: "ダブル分裂",
- split16Key: "16分裂",
- stopKey: "é™æ¢",
- chatKey: "ãƒãƒ£ãƒƒãƒˆåˆ‡ã‚Šæ›¿ãˆ",
- freeSpectateKey: "観戦モード切り替ãˆ",
- toggleSplitRings: "Toggle split rings",
- toggleOpponentRings: "Toggle opponent rings",
- toggleNick: "åå‰è¡¨ç¤ºåˆ‡ã‚Šæ›¿ãˆ",
- toggleMass: "マス表示切り替ãˆ",
- toggleSkin: "スã‚ン表示切り替ãˆ",
- toggleFood: "餌表示切り替ãˆ",
- respawnKey: "クイックリスãƒãƒ¼ãƒ³",
- command0Key: "コマンド0",
- command1Key: "コマンド1",
- command2Key: "コマンド2",
- command3Key: "コマンド3",
- command4Key: "コマンド4",
- command5Key: "コマンド5",
- command6Key: "コマンド6",
- command7Key: "コマンド7",
- command8Key: "コマンド8",
- command9Key: "コマンド9",
- zoom1key: "ズームレベル1",
- zoom2key: "ズームレベル2",
- zoom3key: "ズームレベル3",
- zoom4key: "ズームレベル4",
- zoom5key: "ズームレベル5"
- },
- mouseMenu: {
- title: "マウス",
- feed: "餌",
- macroFeed: "餌マクãƒ",
- split: "分裂",
- doubleSplit: "ダブル分裂",
- split16: "16分裂",
- commander: "コマンダー",
- off: "オフ",
- lmb: "左クリック",
- rmb: "å³ã‚¯ãƒªãƒƒã‚¯",
- scroll: "スクãƒãƒ¼ãƒ«ã‚¯ãƒªãƒƒã‚¯",
- targeting_h1: "ターゲット",
- targeting_txt1: "ターゲットãƒãƒƒã‚¯1",
- targeting_txt2: "ターゲットãƒãƒƒã‚¯2",
- targeting_txt3: "スクãƒãƒ¼ãƒ«ã‚¯ãƒªãƒƒã‚¯ or 観戦ã‚ー切り替ãˆ",
- targeting_txt4: "トップセルモードã‹ã‚‰ãƒžã‚¦ã‚¹è¿½è·¡ã«åˆ‡ã‚Šæ›¿ãˆ",
- targeting_txt5: "ターゲットモードã‹ã‚‰ãƒžã‚¦ã‚¹è¿½è·¡ã«åˆ‡ã‚Šæ›¿ãˆ",
- targeting_txt6: "マウス追跡ã‹ã‚‰ãƒˆãƒƒãƒ—セルモードã«åˆ‡ã‚Šæ›¿ãˆ"
- },
- commandsMenu: {
- title: "コマンド",
- command0: "Fuck!",
- command1: "Feed Me!",
- command2: "Split into me!",
- command3: "Need backup at %sector%!",
- command4: "Enemy spotted at %sector%!",
- command5: "Need a teammate!",
- command6: "Tank the virus!",
- command7: "Eat the virus!",
- command8: "Let's bait!",
- command9: "Fake tricksplit!"
- },
- themeMenu: {
- selectedPreset: "Theme preset",
- cursor: "カーソル",
- lbSize: "リーダーボードã®å¤§ãã•",
- chatFontSize: "Chat font size",
- minimapSize: "ミニマップã®å¤§ãã•",
- skinBorder: "スã‚ンã®å¢ƒç•Œç·š",
- cellTransparency: "細胞ã®é€éŽ",
- lightenCellColor: "細胞色ã®è»½æ¸›",
- borderColor: "境界線ã®è‰²",
- borderWidth: "境界線ã®æ¨ªå¹…",
- gridColor: "グリッドカラー",
- gridTextColor: "グリッドテã‚ストカラー",
- gridTextSize: "グリッドテã‚ストサイズ",
- gridTextFont: "グリッドテã‚ストフォント",
- gridWidth: "グリッドã®æ¨ªå¹…",
- nickColor: "åå‰ã®è‰²",
- nickStrokeColor: "åå‰ã®å½±ã®è‰²",
- cellNickSize: "åå‰ã®å¤§ãã•",
- nickFont: "åå‰ã®ãƒ•ã‚©ãƒ³ãƒˆ",
- massColor: "マスã®è‰²",
- massStrokeColor: "マスã®å½±ã®è‰²",
- cellMassSize: "マスã®å¤§ãã•",
- massFont: "マスã®ãƒ•ã‚©ãƒ³ãƒˆ",
- foodColor: "フォントã®è‰²",
- foodSize: "ç²’ã®å¤§ãã•",
- virusColor: "棘ã®è‰²",
- virusBorderColor: "棘ã®æž 色",
- virusBorderWidth: "棘ã®å¢ƒç•Œç·šã®æ¨ªå¹…",
- virusDecor: "棘ã®è£…飾",
- backgroundColor: "背景色",
- commanderColor: "コマンダーã®è‰²",
- indicatorSize: "ï¾ï½°ï¾‘メイトイï¾ï½¼ï¾žï½¹ï½°ï¾€ï½°ã®å¤§ãã•",
- team1color: "ãƒãƒ¼ãƒ 1ã®è‰² [ダブルタグモード]",
- team2color: "ãƒãƒ¼ãƒ 2ã®è‰² [ダブルタグモード]",
- on: "オン",
- off: "オフ"
- }
- }
- }, function(e, t, n) {
- "use strict";
- e.exports = {
- mainMenu: {
- btn_settings: "Settings",
- btn_play: "Play",
- btn_spectate: "Spectate",
- btn_inputs: "Inputs",
- btn_theme: "Theme",
- input_tag1: "Tag",
- input_tag2: "Tag 2",
- input_nick: "Nick",
- input_skinUrl: "Skin URL (imgur)",
- select_ffa: "FFA",
- select_party: "Party",
- select_teams: "Teams",
- select_experimental: "Experimental",
- input_token: "Party token",
- btn_join: "Join",
- btn_create: "Create"
- },
- notif: {
- cantPlay2Tag: "You can't play in double tag mode.",
- hsloNetConn: "Connected to ProSplit.io Networks.",
- hsloNetDisconn: "Disconnected from ProSplit.io networks.",
- invalidSkinUrl: "Invalid skin URL",
- login_lastSession: "Logged in from last session data.",
- sdk_error: "SDK not loaded",
- alreadyLoggedIn: "Already logged in.",
- login_success: "Logged in",
- login_error: "Login error!",
- logout: "Logged out",
- nickChangeInGame: "You can't change nick while in game.",
- targeting_on: "Click a cell to begin targeting it. See instructions in mouse settings menu.",
- targeting_off: "Targeting is turned off. Turn it on in settings menu in order to use it.",
- target_unnamed: "Cannot target unnamed cells.",
- hsloSkin_noAcc: "Account does not exist."
- },
- leaderboard: {
- title: "ProSplit.io"
- },
- huds: {
- enterChatMsg: "Enter chat message...",
- teamlist_title: "Team Players",
- score: "Score",
- num1position: "#1 position",
- paused: "Paused",
- targeting_bigCellVp: "BIGGEST CELL VIEWPORT",
- targeting_followVp: "VIEWPORT FOLLOWING MOUSE",
- targeting_totalMass: "TOTAL MASS",
- targeting_players: "TARGETING PLAYERS"
- },
- settingMenu: {
- language: "Language",
- CellAnimation: "Animation delay",
- zoomSpeed: "Zoom speed",
- cameraSpeed: "Camera speed [2 default]",
- eatAnimation: "Cell eat [sucking] animation",
- autoZoom: "Auto zoom",
- cellTextAnimation: "Cell text animation",
- autoHideText: "Auto hide text",
- hideOwnNick: "Hide own nick",
- hideOwnMass: "Hide own mass",
- cellNick: "Cell nick",
- cellMass: "Cell mass",
- nickShadow: "Nick shadow",
- massShadow: "Mass shadow",
- urlSkins: "URL skins",
- hsloSkins: "HSLO skins",
- food: "Food",
- vanillaGrid: "Vanilla grid",
- bgSectors: "Background sectors",
- cursorLine: "Cursor lines",
- opponentRings: "Opponent rings",
- splitRings: "Split rings",
- virusRange: "Viruses range",
- teamIndicator: "Teammate indicator",
- commander: "Commander",
- chatType: "Chat type",
- targeting: "Cell Targeting [Spectate mode]",
- sounds: "Sounds",
- opt_on: "On",
- opt_off: "Off",
- opt_stepped: "Stepped",
- opt_linear: "Linear",
- opt_shortened: "Shortened",
- opt_full: "Full",
- opt_nick: "Nick",
- opt_mass: "Mass",
- opt_both: "Nick + Mass",
- opt_perf: "Performance",
- opt_normal: "Normal",
- opt_urlSkin: "Url skins",
- opt_hsloSkin: "Hslo skins",
- opt_allSkin: "All skins",
- opt_singleClr: "Mono colored",
- opt_rainbow: "Rainbow",
- opt_onlyLines: "Only lines",
- opt_snowflakes: "Snowflakes",
- opt_chatroom: "Chatroom",
- opt_popup: "Pop up chat"
- },
- hkMenu: {
- title: "Hotkeys",
- toggleMenuKey: "Toggle main menu",
- feedKey: "Feed",
- macroFeedKey: "Macro feed",
- splitKey: "Split",
- doubleSplitKey: "Double split",
- split16Key: "Split 16",
- toggleCell: "Multibox Key",
- stopKey: "Stop cell movement",
- chatKey: "Toggle chat",
- freeSpectateKey: "Toggle spectate mode",
- toggleSplitRings: "Toggle split rings",
- toggleOpponentRings: "Toggle opponent rings",
- toggleNick: "Toggle cell nick",
- toggleMass: "Toggle cell mass",
- toggleSkin: "Toggle skin",
- toggleFood: "Toggle food",
- respawnKey: "Quick respawn",
- command0Key: "Command 0",
- command1Key: "Command 1",
- command2Key: "Command 2",
- command3Key: "Command 3",
- command4Key: "Command 4",
- command5Key: "Command 5",
- command6Key: "Command 6",
- command7Key: "Command 7",
- command8Key: "Command 8",
- command9Key: "Command 9",
- zoom1key: "Zoom level 1",
- zoom2key: "Zoom level 2",
- zoom3key: "Zoom level 3",
- zoom4key: "Zoom level 4",
- zoom5key: "Zoom level 5"
- },
- mouseMenu: {
- title: "Mouse",
- feed: "Feed",
- macroFeed: "Macro feed",
- split: "Split",
- doubleSplit: "Double split",
- split16: "Split 16",
- commander: "Commander",
- off: "Off",
- lmb: "Left click",
- rmb: "Right click",
- scroll: "Middle click",
- targeting_h1: "Targeting",
- targeting_txt1: "Lock target 1",
- targeting_txt2: "Lock target 2",
- targeting_txt3: "Middle click or Toggle spectate key",
- targeting_txt4: "Toggle top cell mode to follow mouse mode",
- targeting_txt5: "Toggle targeting mode to follow mouse mode",
- targeting_txt6: "Toggle follow mouse mode to top cell mode"
- },
- commandsMenu: {
- title: "Commands",
- command0: "Fuck!",
- command1: "Feed Me!",
- command2: "Split into me!",
- command3: "Need backup at %sector%!",
- command4: "Enemy spotted at %sector%!",
- command5: "Need a teammate!",
- command6: "Tank the virus!",
- command7: "Eat the virus!",
- command8: "Let's bait!",
- command9: "Fake tricksplit!"
- },
- themeMenu: {
- selectedPreset: "Theme preset",
- cursor: "Cursor",
- lbSize: "Leaderboard size",
- chatFontSize: "Chat font size",
- minimapSize: "Minimap size",
- skinBorder: "Skin border",
- cellTransparency: "Cell transparency",
- lightenCellColor: "Lighten cell color",
- borderColor: "Border color",
- borderWidth: "Border width",
- gridColor: "Grid color",
- gridTextColor: "Grid text color",
- gridTextSize: "Grid text size",
- gridTextFont: "Grid text font",
- gridWidth: "Grid width",
- nickColor: "Nick color",
- nickStrokeColor: "Nick stroke color",
- cellNickSize: "Nick size",
- nickFont: "Nick font",
- massColor: "Mass color",
- massStrokeColor: "Mass stroke color",
- cellMassSize: "Mass size",
- massFont: "Mass font",
- foodColor: "Food color",
- foodSize: "Food size",
- virusColor: "Virus color",
- virusBorderColor: "Virus border color",
- virusBorderWidth: "virus border width",
- virusDecor: "Virus Decoration",
- backgroundColor: "Background color",
- commanderColor: "Commander color",
- indicatorSize: "Teammate indicator size",
- team1color: "Team 1 color [Double Tag Mode]",
- team2color: "Team 2 color [Double Tag Mode]",
- on: "On",
- off: "Off"
- }
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(103),
- o = n(102),
- a = n(101),
- r = n(100),
- s = n(99);
- e.exports = {
- lang_EN: i,
- lang_JA: o,
- lang_ZH: a,
- lang_KO: r,
- lang_ES: s
- }
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.div = $("#notifications"), this.duration = 1e4, this.animDuration = 500, this.iconChat = '<i class="fa fa-comment"></i>', this.iconAlert = '<i class="fa fa-exclamation-circle"></i>', this.iconBell = '<i class="fa fa-bell"></i>', this.chatroomdiv = $("#chatroom"), this.emojiPath = "", this.emojis = {}, this.displayEmojis()
- }
- }, {
- key: "displayEmojis",
- value: function() {
- var e = this,
- t = $("#emojiContainer"),
- n = function(n) {
- var i = $('<img src="' + (e.emojiPath + e.emojis[n]) + '" class="emojiPreview">');
- i.click(function() {
- var e = $("#message"),
- t = e.val();
- e.val(t + " " + n), ChatRoom.input.focus()
- }), t.append(i)
- };
- for (var i in this.emojis) n(i)
- }
- }, {
- key: "normal",
- value: function(e, t) {
- if (this.chatroom(e, t, this.iconChat), "chatroom" !== Menu.chatType) {
- var n = '<div class="chatPopup"><h2 class="chatPopupHeading"><span class="chatPopupSender"> ' + this.cleanMessage(e) + ': </span></h2><span class="chatPopupMessage">' + this.putEmojis(this.cleanMessage(t)) + "</span></div>";
- this.append(n)
- }
- }
- }, {
- key: "command",
- value: function(e, t) {
- if (this.chatroom(e, t, this.iconAlert), "chatroom" !== Menu.chatType) {
- var n = '<div class="chatPopup"><h2 class="chatPopupHeading"><span class="chatPopupSender"> ' + this.cleanMessage(e) + ': </span></h2><span class="chatPopupMessage">' + this.putEmojis(this.cleanMessage(t)) + "</span></div>";
- this.append(n)
- }
- }
- }, {
- key: "alert",
- value: function(e, t) {
- if (this.chatroom(e, t, this.iconBell), "chatroom" !== Menu.chatType) {
- var n = '<div class="chatPopup"><h2 class="chatPopupHeading"><span class="chatPopupSender"> ' + this.cleanMessage(e) + ': </span></h2><span class="chatPopupMessage">' + this.putEmojis(this.cleanMessage(t)) + "</span></div>";
- this.append(n)
- }
- }
- }, {
- key: "append",
- value: function(e) {
- var t = this,
- n = $(e);
- n.slideUp(0), n.appendTo(this.div), n.slideDown(this.animDuration), setTimeout(function() {
- n.slideUp(t.animDuration, function() {
- n.remove()
- })
- }, this.duration)
- }
- }, {
- key: "replaceTag",
- value: function(e) {
- return {
- '"': """,
- "&": "&",
- "<": "<",
- ">": ">"
- } [e] || e
- }
- }, {
- key: "cleanMessage",
- value: function(e) {
- return e.replace(/[&<>]/g, this.replaceTag)
- }
- }, {
- key: "putEmojis",
- value: function(e) {
- for (var t in this.emojis) {
- var n = new RegExp(t, "g");
- e = e.replace(n, '<img src="' + (this.emojiPath + this.emojis[t]) + '">')
- }
- return e
- }
- }, {
- key: "chatroom",
- value: function(e, t, n) {
- var i = new Date,
- o = i.getHours() + ":" + i.getMinutes();
- this.chatroomdiv.append('<div class="chatroom-row"><span class="chattime">' + o + "</span> " + n + ' <span class="nick">' + this.cleanMessage(e) + '</span> <span class="message">' + this.putEmojis(this.cleanMessage(t)) + "</span></div>"), this.chatroomdiv.scrollTop(this.chatroomdiv[0].scrollHeight)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.target1 = {
- turnedOn: !1,
- nick: "",
- worldID: "",
- mass: 0,
- cellCount: 0,
- position: {
- x: 0,
- y: 0
- },
- outOfView: !1
- }, this.target2 = {
- turnedOn: !1,
- nick: "",
- worldID: "",
- mass: 0,
- cellCount: 0,
- position: {
- x: 0,
- y: 0
- },
- outOfView: !1
- }, this.center = {
- x: 0,
- y: 0
- }
- }
- }, {
- key: "update",
- value: function() {
- if (this.target1.turnedOn || this.target2.turnedOn) {
- var e = this.target1,
- t = this.target2;
- e.mass = 0, e.position.x = 0, e.position.y = 0, e.cellCount = 0, t.mass = 0, t.position.x = 0, t.position.y = 0, t.cellCount = 0, Engine.cells.forEach(function(n) {
- e.turnedOn && e.worldID === n.worldID && (e.turnedOn && e.worldID === n.worldID ? (e.position.x += n.animX, e.position.y += n.animY, e.mass += n.mass, e.cellCount++) : t.turnedOn && t.worldID === n.worldID && (t.position.x += n.animX, t.position.y += n.animY, t.mass += n.mass, t.cellCount++))
- }), e.mass |= 0, t.mass |= 0;
- var n = 0,
- i = 0,
- o = 0;
- e.turnedOn && (e.cellCount > 0 ? (e.position.x /= e.cellCount, e.position.y /= e.cellCount, e.outOfView = !1, i += e.position.x, o += e.position.y, n++) : e.outOfView = !0), t.turnedOn && (t.cellCount > 0 ? (t.position.x /= t.cellCount, t.position.y /= t.cellCount, t.outOfView = !1, i += t.position.x, o += t.position.y, n++) : t.outOfView = !0), n > 0 && (this.center.x = 0 | i / n, this.center.y = 0 | o / n)
- }
- }
- }, {
- key: "lockTarget",
- value: function(e, t, n) {
- var i = this;
- Camera.freeSpectate || Settings.toggleSpectate();
- var o = !1;
- if (Engine.cells.forEach(function(n) {
- n.isFood || n.isVirus || n.isEjected || i.getDistanceSquare(e, t, n.animX, n.animY) < 199996164 && (o = n)
- }), o)
- if (o.isUnnamed) Chat.alert("SERVER", LangHandler.current.notif.target_unnamed);
- else {
- var a = this[1 === n ? "target1" : "target2"];
- a.turnedOn = !0, a.nick = o.nick, a.worldID = o.worldID, a.outOfView = !1, SpectateTarget.targetMode()
- }
- }
- }, {
- key: "getDistanceSquare",
- value: function(e, t, n, i) {
- var o = n - e,
- a = i - t;
- return o * o + a * a
- }
- }, {
- key: "reset",
- value: function() {
- this.isTurnedOn || Settings.toggleSpectate(), Camera.freeSpectate ? SpectateTarget.mouseViewport() : SpectateTarget.topViewport(), this.target1.turnedOn = !1, this.target2.turnedOn = !1
- }
- }, {
- key: "getMass",
- value: function(e) {
- return e * e / 100
- }
- }, {
- key: "isTurnedOn",
- get: function() {
- return this.target1.turnedOn || this.target2.turnedOn
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = r(n(13)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, o.default)(this, e)
- }
- return (0, a.default)(e, null, [{
- key: "init",
- value: function() {
- this.left = 0, this.top = 0, this.sectorEdge = 0, this.edge = 0, this.halfSectorEdge = 0, this.letters = ["A", "B", "C", "D", "E"], this.visible = new i.default
- }
- }, {
- key: "render",
- value: function() {
- var e = Menu.bgSectors;
- if ("off" !== e) {
- var t = Game.ctx,
- n = Theming.gridWidth >> 1;
- this.edge = gMap.edge - Theming.gridWidth, this.left = gMap.left + n, this.top = gMap.top + n, this.sectorEdge = 0 | this.edge / 5, this.halfSectorEdge = 0 | this.edge / 10, t.lineWidth = Theming.gridWidth, t.strokeStyle = Theming.gridColor, this.sectors(), "onlyLines" !== e && (t.textAlign = "center", t.textBaseline = "middle", t.fillStyle = Theming.gridTextColor, this.updateViewSectors(), "snowflakes" === e ? this.snowflakes() : this.normal())
- }
- }
- }, {
- key: "sectors",
- value: function() {
- var e = Game.ctx;
- e.beginPath(), e.rect(this.left + this.sectorEdge, this.top, this.sectorEdge, this.edge), e.rect(this.left + 3 * this.sectorEdge, this.top, this.sectorEdge, this.edge), e.rect(this.left, this.top + this.sectorEdge, this.edge, this.sectorEdge), e.rect(this.left, this.top + 3 * this.sectorEdge, this.edge, this.sectorEdge), e.rect(this.left, this.top, this.edge, this.edge), e.closePath(), e.stroke()
- }
- }, {
- key: "updateViewSectors",
- value: function() {
- var e = this.visible;
- e.clear();
- for (var t = Camera.viewBounds, n = 0 | (t.left - 200 - gMap.left) / this.sectorEdge, i = 0 | (t.top - 200 - gMap.top) / this.sectorEdge, o = 5 - (0 | (gMap.right - t.right - 200) / this.sectorEdge) - n, a = 5 - (0 | (gMap.bottom - t.bottom - 200) / this.sectorEdge) - i, r = 0; r < o; r++)
- for (var s = 0; s < a; s++) e.add(this.letters[i + s] + (n + r + 1))
- }
- }, {
- key: "normal",
- value: function() {
- var e = Game.ctx;
- e.font = "400 " + Theming.gridTextSize + "px " + Theming.gridTextFont;
- for (var t = 0; 5 > t; t++)
- for (var n = this.top + this.halfSectorEdge + t * this.sectorEdge, i = 0; 5 > i; i++) {
- var o = this.letters[t] + (i + 1);
- if (this.visible.has(o)) {
- var a = this.left + this.halfSectorEdge + i * this.sectorEdge;
- e.fillText(o, a, n)
- }
- }
- }
- }, {
- key: "snowflakes",
- value: function() {
- var e = Game.ctx;
- e.font = "400 " + Theming.gridTextSize + "px FontAwesome";
- for (var t = 0; 5 > t; t++)
- for (var n = this.top + this.halfSectorEdge + t * this.sectorEdge, i = 0; 5 > i; i++) {
- var o = this.letters[t] + (i + 1);
- if (this.visible.has(o)) {
- var a = this.left + this.halfSectorEdge + i * this.sectorEdge;
- e.fillText("", a, n)
- }
- }
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = r(n(23)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, o.default)(this, e)
- }
- return (0, a.default)(e, null, [{
- key: "init",
- value: function() {
- this._nick = $("#nick").val(), this._skin = Game.getImgurCode($("#skin").val()), this._tag = $("#tag").val(), this._colorObject = {
- r: 0,
- g: 0,
- b: 0
- }, this.colorHex = "#000", this._isAlive = !1, this.isRGB = !1, this.x = 0, this.y = 0, this.speed = 0, this.animSpeed = 0, this.mass = 0, this.biggestPieceMass = 0, this.score = 0, this.movementPaused = !1, this.deathLocation = {
- x: 100,
- y: 100
- }
- }
- }, {
- key: "update",
- value: function() {
- this.pieceCount > 0 ? this.playing() : this.dead(), this.updateData()
- }
- }, {
- key: "playing",
- value: function() {
- if (!this.isAlive) {
- this.isAlive = !0;
- var e = !0,
- t = !1,
- n = void 0;
- try {
- for (var o, a = (0, i.default)(Engine.myCells.values()); !(e = (o = a.next()).done); e = !0) {
- var r = o.value;
- this.colorObject = r.colorObject, this.colorHex = r.colorHex;
- break
- }
- } catch (e) {
- t = !0, n = e
- } finally {
- try {
- !e && a.return && a.return()
- } finally {
- if (t) throw n
- }
- }
- }
- }
- }, {
- key: "updateData",
- value: function() {
- if (this.isAlive) {
- var e = 0,
- t = 0,
- n = 0;
- this.mass = 0, this.biggestPieceMass = 0;
- var o = !0,
- a = !1,
- r = void 0;
- try {
- for (var s, l = (0, i.default)(Engine.myCells.values()); !(o = (s = l.next()).done); o = !0) {
- var c = s.value;
- e += c.animX / this.pieceCount, t += c.animY / this.pieceCount, n += c.animRadius, this.mass += c.mass, this.biggestPieceMass < c.mass && (this.biggestPieceMass = c.mass)
- }
- } catch (e) {
- a = !0, r = e
- } finally {
- try {
- !o && l.return && l.return()
- } finally {
- if (a) throw r
- }
- }
- if (!this.movementPaused) {
- var u = this.x - e,
- d = this.y - t,
- h = Math.sqrt(u * u + d * d);
- this.speed += h, this.x = e, this.y = t
- }
- this.score < this.mass && (this.score = this.mass);
- var f = Math.pow(Math.min(64 / n, 1), .4),
- m = Math.max(window.innerWidth / 1920, window.innerHeight / 1080);
- Camera.autoZoomViewport = f * m
- }
- }
- }, {
- key: "dead",
- value: function() {
- this.isAlive && (this.isAlive = !1, this.score = 0, this.mass = 0, this.biggestPieceMass = 0, this.movementPaused = !1, this.deathLocation.x = this.x, this.deathLocation.y = this.y, this.isAlive = !1, Servers.init(), HUD.continue())
- }
- }, {
- key: "nick",
- set: function(e) {
- this._nick = e, SocketManager.nick()
- },
- get: function() {
- return this._nick.substring(0, 15)
- }
- }, {
- key: "skin",
- set: function(e) {
- var t = Game.getImgurCode(e),
- n = Game.getRainbowFlag(e);
- t ? (this.isRGB !== n && (this.isRGB = n, SocketManager.rgbMode()), this._skin = t, SocketManager.skin()) : Chat.alert("SERVER", LangHandler.current.notif.invalidSkinUrl)
- },
- get: function() {
- return this._skin
- }
- }, {
- key: "tag",
- set: function(e) {
- this._tag = e
- },
- get: function() {
- return this._tag
- }
- }, {
- key: "colorObject",
- set: function(e) {
- this._colorObject.r = e.r, this._colorObject.g = e.g, this._colorObject.b = e.b, SocketManager.color()
- },
- get: function() {
- return this._colorObject
- }
- }, {
- key: "isAlive",
- set: function(e) {
- this._isAlive = e, SocketManager.aliveStatus(e)
- },
- get: function() {
- return this._isAlive
- }
- }, {
- key: "worldID",
- get: function() {
- return ":party" === HUD.gMode ? this.nick + this.colorHex : this.nick
- }
- }, {
- key: "location",
- get: function() {
- return gMap.getLocation(this.x, this.y)
- }
- }, {
- key: "pieceCount",
- get: function() {
- return Engine.myCells.size
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.x = 0, this.y = 0, this.targetViewport = 1, this.autoZoomViewport = 1, this.viewport = 1, this.viewBounds = {
- left: -960,
- right: 960,
- top: -540,
- bottom: 540
- }, this.spectatePoint = {
- x: 0,
- y: 0
- }, this._isSpectating = !1, this._freeSpectate = !1, Targeting.init()
- }
- }, {
- key: "update",
- value: function() {
- this.isSpectating && Targeting.update(), this.move(), this.updateView()
- }
- }, {
- key: "move",
- value: function() {
- Client.isAlive ? (this.x += (Client.x - this.x) / Menu.cameraSpeed, this.y += (Client.y - this.y) / Menu.cameraSpeed) : this.isSpectating && (this.x = (29 * this.x + this.spectatePoint.x) / 30, this.y = (29 * this.y + this.spectatePoint.y) / 30)
- }
- }, {
- key: "updateView",
- value: function() {
- var e = this.targetViewport;
- "on" === Menu.autoZoom && (e *= this.autoZoomViewport), this.viewport += (e - this.viewport) / 8;
- var t = Game.canvas.width / 2 / this.viewport,
- n = Game.canvas.height / 2 / this.viewport;
- this.viewBounds.left = Math.max(-t + this.x, gMap.left), this.viewBounds.right = Math.min(t + this.x, gMap.right), this.viewBounds.top = Math.max(-n + this.y, gMap.top), this.viewBounds.bottom = Math.min(n + this.y, gMap.bottom)
- }
- }, {
- key: "isSpectating",
- get: function() {
- return this._isSpectating
- },
- set: function(e) {
- if (this._isSpectating = e, e) return SpectateTarget.show();
- SpectateTarget.hide()
- }
- }, {
- key: "freeSpectate",
- get: function() {
- return this._freeSpectate
- },
- set: function(e) {
- if (this._freeSpectate = e, e) return SpectateTarget.mouseViewport();
- SpectateTarget.topViewport()
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(n(0));
- e.exports = function() {
- return function e() {
- (0, i.default)(this, e), this.lastUsedAt = HSLO.time, this.level = [null, null]
- }
- }()
- }, function(e, t, n) {
- "use strict";
- var i = function(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }(n(0));
- e.exports = function() {
- return function e() {
- (0, i.default)(this, e), this.lastUsedAt = HSLO.time, this.timeShift = 0 | Math.random() * Cache.massUpdateInterval, this.lastMass = 0, this.lastScreenRadius = 0, this.lastRenderTime = HSLO.time, this.canvas = null
- }
- }()
- }, function(e, t, n) {
- "use strict";
- var i = r(n(12)),
- o = r(n(0)),
- a = r(n(1));
- function r(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = new(function() {
- function e() {
- (0, o.default)(this, e), this.nickCaches = new i.default, this.massCaches = new i.default, this.maxCacheLife = 1e3, this.massUpdateInterval = 500, this.nickShadowCtx = this.newShadowContext(), this.massShadowCtx = this.newShadowContext(), this.canvasPool = []
- }
- return (0, a.default)(e, [{
- key: "nick",
- value: function(e) {
- if (e.isUnnamed || this.isSmall(e)) return !1;
- var t = this.nickCaches.get(e.nick) || this.newNickCache(e.nick);
- t.lastUsedAt = HSLO.time;
- var n = 50 > this.getScreenRadius(e.animRadius) ? 0 : 1,
- i = t.level[n];
- if (i) return i;
- var o = this.getNewCanvas(),
- a = o.getContext("2d"),
- r = 50 * (n + 1) * Theming.cellNickSize / 100;
- if (o.height = 0 | 1.2 * r, o.width = 0 | 1.2 * this.getNickWidth(e.nick, r), a.font = "700 " + (0 | r) + "px " + Theming.nickFont, a.textBaseline = "middle", a.textAlign = "center", "normal" === Menu.nickShadow) a.strokeStyle = Theming.nickStrokeColor, a.lineWidth = 6 * (n + 1), a.strokeText(e.nick, o.width >> 1, o.height >> 1);
- else if ("performance" === Menu.nickShadow) {
- a.fillStyle = Theming.nickStrokeColor, a.globalAlpha = .75;
- var s = 0 | o.width / 1.2,
- l = 0 | o.height / 1.2;
- a.fillRect(o.width - s >> 1, o.height - l >> 1, s, l), a.globalAlpha = 1
- }
- return a.fillStyle = Theming.nickColor, a.fillText(e.nick, o.width >> 1, o.height >> 1), t.level[n] = o, o
- }
- }, {
- key: "newNickCache",
- value: function(e) {
- var t = new NickCache;
- return this.nickCaches.set(e, t), t
- }
- }, {
- key: "getNickWidth",
- value: function(e, t) {
- return this.nickShadowCtx.measureText(e).width * t / 50
- }
- }, {
- key: "setNickCtxFont",
- value: function() {
- this.nickCaches.clear(), this.nickShadowCtx.font = "700 50px " + Theming.nickFont
- }
- }, {
- key: "mass",
- value: function(e) {
- if (!e.isVirus && this.isSmall(e)) return !1;
- var t = this.massCaches.get(e.id) || this.newMassCache(e.id),
- n = "shortened" === Menu.cellMass && 999 < e.staticMass ? (0 | e.staticMass / 100) / 10 + "k" : e.staticMass,
- i = this.getScreenRadius(e.radius),
- o = n !== t.lastMass,
- a = HSLO.time - t.lastRenderTime > this.massUpdateInterval,
- r = 1.2 < i / t.lastScreenRadius || o && a;
- if (t.lastUsedAt = HSLO.time, !r && t.canvas) return t.canvas;
- t.canvas || (t.canvas = this.getNewCanvas());
- var s = t.canvas,
- l = s.getContext("2d"),
- c = 0 | i / 2 * (Theming.cellMassSize / 100);
- if (s.height = 0 | 1.2 * c, s.width = 0 | 1.2 * this.getMassWidth(n, c), l.font = "700 " + c + "px " + Theming.massFont, l.textBaseline = "middle", l.textAlign = "center", "normal" === Menu.massShadow) l.strokeStyle = Theming.massStrokeColor, l.lineWidth = 6 * c / 50, l.strokeText(n, s.width >> 1, s.height >> 1);
- else if ("performance" === Menu.massShadow) {
- l.fillStyle = Theming.massStrokeColor, l.globalAlpha = .75;
- var u = 0 | s.width / 1.2,
- d = 0 | s.height / 1.2;
- l.fillRect(s.width - u >> 1, s.height - d >> 1, u, d), l.globalAlpha = 1
- }
- return l.fillStyle = Theming.massColor, l.fillText(n, s.width >> 1, s.height >> 1), t.lastMass = n, t.lastScreenRadius = i, t.lastRenderTime = HSLO.time + t.timeShift, s
- }
- }, {
- key: "newMassCache",
- value: function(e) {
- var t = new MassCache;
- return this.massCaches.set(e, t), t
- }
- }, {
- key: "getMassWidth",
- value: function(e, t) {
- return this.massShadowCtx.measureText(e).width * t / 50
- }
- }, {
- key: "setMassCtxFont",
- value: function() {
- this.massCaches.clear(), this.massShadowCtx.font = "700 50px " + Theming.massFont
- }
- }, {
- key: "getScreenRadius",
- value: function(e) {
- return e * Camera.viewport
- }
- }, {
- key: "isSmall",
- value: function(e) {
- return "on" === Menu.autoHideText && 20 > this.getScreenRadius(e.animRadius)
- }
- }, {
- key: "getNewCanvas",
- value: function() {
- return this.canvasPool.shift() || document.createElement("canvas")
- }
- }, {
- key: "newShadowContext",
- value: function() {
- var e = document.createElement("canvas").getContext("2d");
- return e.font = "700 50px ubuntu", e
- }
- }, {
- key: "cleaner",
- value: function() {
- var e = this;
- this.nickCaches.forEach(function(t, n) {
- if (HSLO.time - t.lastUsedAt > e.maxCacheLife) {
- if (e.nickCaches.delete(n), 50 <= e.canvasPool.length) return;
- var i = t.level[0],
- o = t.level[1];
- i && (e.resetCanvas(i), e.canvasPool.push(i)), o && (e.resetCanvas(o), e.canvasPool.push(o))
- }
- }), this.massCaches.forEach(function(t, n) {
- if (HSLO.time - t.lastUsedAt > e.maxCacheLife) {
- if (e.massCaches.delete(n), 50 <= e.canvasPool.length) return;
- var i = t.canvas;
- i && (e.resetCanvas(i), e.canvasPool.push(i))
- }
- })
- }
- }, {
- key: "resetCanvas",
- value: function(e) {
- e.width = 0
- }
- }]), e
- }())
- }, function(e, t, n) {
- var i = n(9),
- o = n(31);
- e.exports = n(2).getIterator = function(e) {
- var t = o(e);
- if ("function" != typeof t) throw TypeError(e + " is not iterable!");
- return i(t.call(e))
- }
- }, function(e, t, n) {
- n(24), n(21), e.exports = n(113)
- }, function(e, t, n) {
- "use strict";
- var i = n(7),
- o = n(38);
- e.exports = function(e, t, n) {
- t in e ? i.f(e, t, o(0, n)) : e[t] = n
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(10),
- o = n(5),
- a = n(34),
- r = n(60),
- s = n(59),
- l = n(26),
- c = n(115),
- u = n(31);
- o(o.S + o.F * !n(53)(function(e) {
- Array.from(e)
- }), "Array", {
- from: function(e) {
- var t, n, o, d, h = a(e),
- f = "function" == typeof this ? this : Array,
- m = arguments.length,
- g = m > 1 ? arguments[1] : void 0,
- p = void 0 !== g,
- v = 0,
- y = u(h);
- if (p && (g = i(g, m > 2 ? arguments[2] : void 0, 2)), void 0 == y || f == Array && s(y))
- for (n = new f(t = l(h.length)); t > v; v++) c(n, v, p ? g(h[v], v) : h[v]);
- else
- for (d = y.call(h), n = new f; !(o = d.next()).done; v++) c(n, v, p ? r(d, g, [o.value, v], !0) : o.value);
- return n.length = v, n
- }
- })
- }, function(e, t, n) {
- n(21), n(116), e.exports = n(2).Array.from
- }, function(e, t, n) {
- e.exports = {
- default: n(117),
- __esModule: !0
- }
- }, function(e, t, n) {
- "use strict";
- var i = c(n(118)),
- o = c(n(23)),
- a = c(n(13)),
- r = c(n(12)),
- s = c(n(0)),
- l = c(n(1));
- function c(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, s.default)(this, e)
- }
- return (0, l.default)(e, null, [{
- key: "init",
- value: function() {
- var e = this;
- this.canvas = document.getElementById("canvas"), this.ctx = this.canvas.getContext("2d"), this.pi2 = 2 * Math.PI, this.skinMap = new r.default, this.downloadedSkins = new r.default, this.commanderPoints = new a.default, this.rgbTeammates = new a.default, this.indicator = this.cacheIndicator(), Sectors.init(), RGB.init(), this.resizeCanvas(), window.onresize = function() {
- e.resizeCanvas()
- }
- }
- }, {
- key: "resizeCanvas",
- value: function() {
- this.canvas.width = 0 | window.innerWidth, this.canvas.height = 0 | window.innerHeight
- }
- }, {
- key: "run",
- value: function() {
- this.ctx.clearRect(0, 0, this.canvas.width, this.canvas.height), this.ctx.save(), this.vanillaGrid();
- var e = (this.canvas.width >> 1) / Camera.viewport - Camera.x,
- t = (this.canvas.height >> 1) / Camera.viewport - Camera.y;
- this.ctx.scale(Camera.viewport, Camera.viewport), this.ctx.translate(e, t), RGB.update(), Sectors.render(), this.border(), Food.render(), Virus.render(), this.createSkinMap(), this.createRGBset(), this.mouseTracker(), this.SplitRings(), STE.render(), this.cells(), this.commands(), Cache.cleaner(), this.ctx.restore()
- }
- }, {
- key: "vanillaGrid",
- value: function() {
- if ("off" !== Menu.vanillaGrid) {
- var e = this.ctx,
- t = Camera.viewport,
- n = this.canvas.width / t,
- i = this.canvas.height / t,
- o = (-Camera.x + n / 2) % 50,
- a = (-Camera.y + i / 2) % 50;
- for (e.strokeStyle = Theming.gridColor, e.lineWidth = 0 | Math.min(Theming.gridWidth, 20) * Camera.viewport, e.globalAlpha = .2 * t, e.beginPath(); o < n;) e.moveTo(o * t, 0), e.lineTo(o * t, i * t), o += 50;
- for (; a < i;) e.moveTo(0, a * t), e.lineTo(n * t, a * t), a += 50;
- e.closePath(), e.stroke(), e.globalAlpha = 1
- }
- }
- }, {
- key: "border",
- value: function() {
- var e = this.ctx,
- t = Theming.borderWidth >> 1;
- e.strokeStyle = Theming.borderColor, e.lineWidth = Theming.borderWidth, e.strokeRect(gMap.left - t, gMap.top - t, gMap.edge + Theming.borderWidth, gMap.edge + Theming.borderWidth)
- }
- }, {
- key: "cells",
- value: function() {
- var e = this.ctx,
- t = "off" !== Menu.cellMass,
- n = "off" !== Menu.cellNick,
- i = "on" === Menu.hideOwnNick,
- a = "on" === Menu.hideOwnMass,
- r = (Menu.urlSkins, Menu.cellzSkins, Theming.skinBorder / 100),
- s = "on" === Menu.teamIndicator,
- l = Theming.indicatorSize,
- c = Theming.cellTransparency / 100,
- u = Theming.cellNickSize / 100,
- d = Theming.cellMassSize / 100,
- h = Menu.cellTextAnimation,
- f = Theming.lightenCellColor / 100,
- m = !0,
- g = !1,
- p = void 0;
- try {
- for (var v, y = (0, o.default)(Engine.sortedCells); !(m = (v = y.next()).done); m = !0) {
- var k = v.value,
- S = !k.isVirus && !k.isEjected && this.skinMap.has(k.worldID),
- C = 1;
- if (C = k.fadeStartTime ? Math.max(1 - (HSLO.time - k.fadeStartTime) / Menu.CellAnimation, .01) : 1, k.animate(), e.beginPath(), e.arc(k.animX, k.animY, k.animRadius, 0, this.pi2, !0), e.closePath(), k.isMine && k.activeStroke && (e.lineWidth = .14 * k.animRadius, e.strokeStyle = "rgba(255, 0, 255, .8)", e.stroke()), k.isVirus) e.fillStyle = Theming.virusColor, e.strokeStyle = Theming.virusBorderColor, e.lineWidth = Theming.virusBorderWidth, e.globalAlpha = .7, e.fill(), e.globalAlpha = 1, e.stroke();
- else {
- var w = 1 > f ? RGB.getColor(k.colorObject, f) : k.colorHex;
- S && this.rgbTeammates.has(k.worldID) ? e.fillStyle = RGB.color : e.fillStyle = w, 1 > c * C ? (e.globalAlpha = c * C, e.fill(), e.globalAlpha = 1) : e.fill()
- }
- if (!k.isEjected) {
- if (!k.isVirus) {
- s && !k.isMine && S && e.drawImage(this.indicator, k.animX - l / 2, k.animY - k.animRadius - 10 - l, l, l);
- var b = this.getCustomSkin(k.worldID),
- x = k.animRadius * r;
- if (b && e.drawImage(b, k.animX - x, k.animY - x, 2 * x, 2 * x), 1 === C && (k.isMine && !i || !k.isMine && n)) {
- var M = Cache.nick(k);
- if (M) {
- var _ = k.radius;
- switch (h) {
- case "on":
- _ = k.animRadius;
- break;
- case "stepped":
- _ = 50 + 75 * (0 | k.animRadius / 75)
- }
- var T = _ / 3 / M.height * u,
- L = M.width * T,
- P = M.height * T,
- K = k.animX - (L >> 1),
- $ = k.animY - (P >> 1);
- e.drawImage(M, K, $, L, P)
- }
- }
- }
- if (1 === C && (k.isMine && !a || !k.isMine && t)) {
- var O = Cache.mass(k);
- if (O) {
- var I = k.radius;
- "on" === h ? I = k.animRadius : "stepped" === h && (I = 50 + 75 * (0 | k.animRadius / 75));
- var A = I / 3 / O.height * d,
- E = O.width * A,
- z = O.height * A,
- R = k.animX - (E >> 1),
- F = k.animY + (k.isUnnamed || k.isMine && i || !k.isMine && !n ? -z >> 1 : z >> 2);
- e.drawImage(O, R, F, E, z)
- }
- }
- }
- }
- } catch (e) {
- g = !0, p = e
- } finally {
- try {
- !m && y.return && y.return()
- } finally {
- if (g) throw p
- }
- }
- }
- }, {
- key: "createSkinMap",
- value: function() {
- var e = this;
- this.skinMap.clear(), "XXXXXXX" !== Client.skin && Engine.myCells.forEach(function(t) {
- e.skinMap.set(t.worldID, e.code2Url(Client.skin))
- });
- var t = !0,
- n = !1,
- a = void 0;
- try {
- for (var r, s = (0, o.default)((0, i.default)(Engine.pidSkin)); !(t = (r = s.next()).done); t = !0) {
- var l = r.value;
- this.skinMap.set(l[0], l[1])
- }
- } catch (e) {
- n = !0, a = e
- } finally {
- try {
- !t && s.return && s.return()
- } finally {
- if (n) throw a
- }
- }
- var c = !0,
- u = !1,
- d = void 0;
- try {
- for (var h, f = (0, o.default)(TeamPlayers.teamPlayers.values()); !(c = (h = f.next()).done); c = !0) {
- var m = h.value;
- m.isAlive && "XXXXXXX" !== m.skin && this.skinMap.set(m.worldID, this.code2Url(m.skin))
- }
- } catch (e) {
- u = !0, d = e
- } finally {
- try {
- !c && f.return && f.return()
- } finally {
- if (u) throw d
- }
- }
- }
- }, {
- key: "createRGBset",
- value: function() {
- this.rgbTeammates.clear(), Client.isRGB && this.rgbTeammates.add(Client.worldID);
- var e = !0,
- t = !1,
- n = void 0;
- try {
- for (var i, a = (0, o.default)(TeamPlayers.teamPlayers.values()); !(e = (i = a.next()).done); e = !0) {
- var r = i.value;
- r.isAlive && r.isRGB && this.rgbTeammates.add(r.worldID)
- }
- } catch (e) {
- t = !0, n = e
- } finally {
- try {
- !e && a.return && a.return()
- } finally {
- if (t) throw n
- }
- }
- }
- }, {
- key: "getCustomSkin",
- value: function(e) {
- var t = this.skinMap.get(e),
- n = null;
- return t && void 0 === (n = this.downloadedSkins.get(t)) ? (this.downloadSkin(t), !1) : n
- }
- }, {
- key: "downloadSkin",
- value: function(e) {
- var t = this;
- this.downloadedSkins.set(e, !1);
- var n = new Image;
- n.crossOrigin = "anonymous", n.onload = function() {
- var i = document.createElement("canvas"),
- o = i.getContext("2d");
- i.width = 512, i.height = 512, o.beginPath(), o.arc(256, 256, 256, 0, t.pi2, !0), o.closePath(), o.clip(), o.drawImage(n, 0, 0, 512, 512), n.onload = null, n.src = i.toDataURL(), t.downloadedSkins.set(e, n)
- }, n.src = e
- }
- }, {
- key: "getImgurCode",
- value: function(e) {
- var t = e.match(/https?:\/\/i\.imgur\.com\/([\w0-9]{7})\.(png|jpg|gif)/i);
- return null === t ? "XXXXXXX" : t[1]
- }
- }, {
- key: "getRainbowFlag",
- value: function(e) {
- return null !== e.match(/#hue\s??=\s??auto\s??,\s??blend\s??=\s??auto/i)
- }
- }, {
- key: "code2Url",
- value: function(e) {
- return "http://i.imgur.com/" + e + ".png"
- }
- }, {
- key: "commands",
- value: function() {
- var e = this.ctx,
- t = "off" === Menu.commander;
- e.strokeStyle = "#ffffff", e.lineWidth = 5;
- var n = !0,
- i = !1,
- a = void 0;
- try {
- for (var r, s = (0, o.default)(this.commanderPoints.values()); !(n = (r = s.next()).done); n = !0) {
- var l = r.value,
- c = l.x,
- u = l.y,
- d = HSLO.time - l.time;
- if (d > 1250) this.commanderPoints.delete(l);
- else if (!(t || 1 > d)) {
- var h = 1e3 * d / 1250;
- e.globalAlpha = h > 333 ? (1e3 - h) / 667 : 1;
- var f = e.createRadialGradient(c, u, .7 * h, c, u, h);
- f.addColorStop(0, "rgba(0,0,0,0)"), f.addColorStop(1, Theming.commanderColor), e.fillStyle = f, e.beginPath(), e.arc(c, u, h, 0, this.pi2, !0), e.closePath(), e.fill(), e.stroke()
- }
- }
- } catch (e) {
- i = !0, a = e
- } finally {
- try {
- !n && s.return && s.return()
- } finally {
- if (i) throw a
- }
- }
- }
- }, {
- key: "mouseTracker",
- value: function() {
- if ("off" !== Menu.cursorLine) {
- var e = this.ctx;
- e.strokeStyle = "#fff", e.lineWidth = 4, e.lineCap = "round", e.lineJoin = "round";
- var t = (Listener.x - this.canvas.width / 2) / Camera.viewport + Camera.x,
- n = (Listener.y - this.canvas.height / 2) / Camera.viewport + Camera.y;
- e.beginPath();
- var i = !0,
- a = !1,
- r = void 0;
- try {
- for (var s, l = (0, o.default)(Engine.myCells.values()); !(i = (s = l.next()).done); i = !0) {
- var c = s.value;
- c.activeStroke && (e.moveTo(c.animX, c.animY), e.lineTo(t, n))
- }
- } catch (e) {
- a = !0, r = e
- } finally {
- try {
- !i && l.return && l.return()
- } finally {
- if (a) throw r
- }
- }
- e.closePath(), e.stroke()
- }
- }
- }, {
- key: "SplitRings",
- value: function() {
- var e = this;
- if ("off" !== Menu.splitRings) {
- var t = this.ctx;
- t.lineWidth = 3, t.strokeStyle = "#656565", t.beginPath(), Engine.myCells.forEach(function(n) {
- 60 < n.radius && (t.moveTo(n.animX + 800, n.animY), t.arc(n.animX, n.animY, 800, 0, e.pi2, !0))
- }), t.closePath(), t.stroke()
- }
- }
- }, {
- key: "cacheIndicator",
- value: function() {
- var e = document.createElement("canvas");
- e.width = 150, e.height = 150;
- var t = e.getContext("2d");
- return t.textAlign = "center", t.textBaseline = "middle", t.font = "600 150px FontAwesome", t.fillStyle = "rgba(255,255,255,1)", t.fillText("ï¸", 75, 75), e
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e(t) {
- var n = this;
- (0, i.default)(this, e), this.event = t, this.maxFps = 30, this.lastFrameTime = 0, window.requestAnimationFrame(function(e) {
- n.run(e)
- })
- }
- return (0, o.default)(e, [{
- key: "run",
- value: function(e) {
- var t = this;
- window.requestAnimationFrame(function(e) {
- t.run(e)
- }), this.updateRafTime(e), this.event()
- }
- }, {
- key: "updateRafTime",
- value: function(e) {
- var t = e - this.lastFrameTime;
- this.lastFrameTime = e, .05 > Math.abs(1e3 / 30 - t) ? this.maxFps = 30 : .05 > Math.abs(1e3 / 60 - t) ? this.maxFps = 60 : .05 > Math.abs(1e3 / 75 - t) ? this.maxFps = 75 : .05 > Math.abs(10 - t) ? this.maxFps = 100 : .05 > Math.abs(1e3 / 120 - t) ? this.maxFps = 120 : .05 > Math.abs(1e3 / 144 - t) && (this.maxFps = 144)
- }
- }, {
- key: "rafLoopTime",
- get: function() {
- return 1e3 / this.maxFps
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- console.log("Sounds not loaded.")
- }
- }]), e
- }()
- }, function(e, t, n) {
- n(47)("Map")
- }, function(e, t, n) {
- n(48)("Map")
- }, function(e, t, n) {
- var i = n(5);
- i(i.P + i.R, "Map", {
- toJSON: n(49)("Map")
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(52),
- o = n(28);
- e.exports = n(50)("Map", function(e) {
- return function() {
- return e(this, arguments.length > 0 ? arguments[0] : void 0)
- }
- }, {
- get: function(e) {
- var t = i.getEntry(o(this, "Map"), e);
- return t && t.v
- },
- set: function(e, t) {
- return i.def(o(this, "Map"), 0 === e ? 0 : e, t)
- }
- }, i, !0)
- }, function(e, t, n) {
- n(44), n(21), n(24), n(125), n(124), n(123), n(122), e.exports = n(2).Map
- }, function(e, t, n) {
- n(47)("Set")
- }, function(e, t, n) {
- n(48)("Set")
- }, function(e, t, n) {
- var i = n(16);
- e.exports = function(e, t) {
- var n = [];
- return i(e, !1, n.push, n, t), n
- }
- }, function(e, t, n) {
- var i = n(5);
- i(i.P + i.R, "Set", {
- toJSON: n(49)("Set")
- })
- }, function(e, t, n) {
- var i = n(17);
- e.exports = Array.isArray || function(e) {
- return "Array" == i(e)
- }
- }, function(e, t, n) {
- var i = n(6),
- o = n(131),
- a = n(4)("species");
- e.exports = function(e) {
- var t;
- return o(e) && ("function" != typeof(t = e.constructor) || t !== Array && !o(t.prototype) || (t = void 0), i(t) && null === (t = t[a]) && (t = void 0)), void 0 === t ? Array : t
- }
- }, function(e, t, n) {
- var i = n(132);
- e.exports = function(e, t) {
- return new(i(e))(t)
- }
- }, function(e, t, n) {
- var i = n(10),
- o = n(65),
- a = n(34),
- r = n(26),
- s = n(133);
- e.exports = function(e, t) {
- var n = 1 == e,
- l = 2 == e,
- c = 3 == e,
- u = 4 == e,
- d = 6 == e,
- h = 5 == e || d,
- f = t || s;
- return function(t, s, m) {
- for (var g, p, v = a(t), y = o(v), k = i(s, m, 3), S = r(y.length), C = 0, w = n ? f(t, S) : l ? f(t, 0) : void 0; S > C; C++)
- if ((h || C in y) && (p = k(g = y[C], C, v), e))
- if (n) w[C] = p;
- else if (p) switch (e) {
- case 3:
- return !0;
- case 5:
- return g;
- case 6:
- return C;
- case 2:
- w.push(g)
- } else if (u) return !1;
- return d ? -1 : c || u ? u : w
- }
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(52),
- o = n(28);
- e.exports = n(50)("Set", function(e) {
- return function() {
- return e(this, arguments.length > 0 ? arguments[0] : void 0)
- }
- }, {
- add: function(e) {
- return i.def(o(this, "Set"), e = 0 === e ? 0 : e, e)
- }
- }, i)
- }, function(e, t, n) {
- n(44), n(21), n(24), n(135), n(130), n(128), n(127), e.exports = n(2).Set
- }, function(e, t, n) {
- "use strict";
- var i = s(n(13)),
- o = s(n(12)),
- a = s(n(0)),
- r = s(n(1));
- function s(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, a.default)(this, e)
- }
- return (0, r.default)(e, null, [{
- key: "init",
- value: function() {
- this.cells = new o.default, this.myCellsIDs = new i.default, this.myCells = new o.default, this.eatenCellIds = new i.default, this.sortedCells = [], this.food = [], this.myPIDs = new i.default, this.pidSkin = new o.default, STE.init(), Virus.init()
- }
- }, {
- key: "update",
- value: function() {
- var e = this,
- t = "on" === Menu.opponentRings && Client.isAlive,
- n = "on" === Menu.virusRange && Client.isAlive;
- this.food = [], this.sortedCells = [], STE.reset(), Virus.reset(), this.cells.forEach(function(i, o) {
- if (i.fadeStartTime && 1 < (HSLO.time - i.fadeStartTime) / Menu.CellAnimation) return void e.cells.delete(o);
- i.animate(), e.isInView(i) && (i.isFood ? e.food.push(i) : (e.sortedCells.push(i), t && !i.isVirus && STE.segregator(i), n && i.isVirus && Virus.add(i)))
- }), this.sortedCells.sort(function(e, t) {
- var n = e.animRadius,
- i = t.animRadius;
- return n === i ? t.id - e.id : n - i
- })
- }
- }, {
- key: "getCell",
- value: function(e) {
- return this.cells.get(e) || this.addCell(e)
- }
- }, {
- key: "addCell",
- value: function(e) {
- var t = new Player(e);
- return this.cells.set(e, t), this.myCellCheck(e, t), t
- }
- }, {
- key: "myCellCheck",
- value: function(e, t) {
- this.myCellsIDs.has(e) && (this.myCells.set(e, t), this.myCellsIDs.delete(e), t.isMine = !0, t.nick = Client.nick)
- }
- }, {
- key: "eatCell",
- value: function(e, t) {
- try {
- if ("on" === Menu.eatAnimation) {
- var n = this.cells.get(t),
- i = this.cells.get(e);
- n && i && (n.animate(), n.x = i.x, n.y = i.y, n.radius = n.animRadius, n.fadeStartTime = HSLO.time, n.lastUpdateTime = HSLO.time, n.isMine && this.myCells.delete(t), this.cells.delete(t), this.eatenCellIds.add(t), n.isFood || this.cells.set(t + ":removed", n))
- }
- } catch (e) {}
- }
- }, {
- key: "removeCell",
- value: function(e) {
- try {
- if (!this.eatenCellIds.delete(e)) {
- var t = this.cells.get(e);
- t.isMine && this.myCells.delete(e), this.cells.delete(e), t.isFood || "on" !== Menu.eatAnimation || (t.animate(), t.fadeStartTime = HSLO.time, t.lastUpdateTime = HSLO.time, this.cells.set(e + ":removed", t))
- }
- } catch (e) {}
- }
- }, {
- key: "isInView",
- value: function(e) {
- var t = Camera.viewBounds;
- return !(e.animX + e.animRadius < t.left || e.animX - e.animRadius > t.right || e.animY + e.animRadius < t.top || e.animY - e.animRadius > t.bottom)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.left = -7071, this.top = -7071, this.right = 7071, this.bottom = 7071, this.edge = 14142, this.offset = {
- x: 0,
- y: 0
- }, this.center = {
- x: 0,
- y: 0
- }, this.focusedAtCenter = !1
- }
- }, {
- key: "update",
- value: function(e, t, n, i) {
- this.left = e, this.top = t, this.right = n, this.bottom = i, this.edge = i - t
- }
- }, {
- key: "getLocation",
- value: function(e, t) {
- var n = 0 | (e - this.left) / 2828,
- i = 0 | (t - this.top) / 2828;
- return n = 0 > n ? 0 : 4 < n ? 4 : n, i = 0 > i ? 0 : 4 < i ? 4 : i, String.fromCharCode(65 + i) + (n + 1)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "parse",
- value: function(e) {
- var t = new DataView(e.data),
- n = new Reader(t);
- switch (n.readUInt8()) {
- case 1:
- this.update(n);
- break;
- case 2:
- this.chat(n);
- break;
- case 3:
- this.commander(n);
- break;
- case 4:
- this.selfID(n);
- break;
- case 5:
- this.prePlayers(n)
- }
- }
- }, {
- key: "update",
- value: function(e, t) {
- Client.isAlive || !Camera.isSpectating || Camera.freeSpectate || SocketManager.biggest();
- var n = TeamPlayers.teamAlternator ? 1 : 2,
- i = TeamPlayers.teamData[n];
- if (i.totalMass = 0, i.alive = 0, i.spectate = 0, 128 & t && TeamPlayers.remove(e.id), e.id != TeamPlayers.selfID) {
- var o = e.id,
- a = TeamPlayers.getPlayer(o);
- if (1 & t) {
- var r = e.nick;
- 2 === a.isNew ? a.isNew = 3 : a.isNew, a.nick = r
- }
- if (2 & t) {
- var s = e.colors.red,
- l = e.colors.green,
- c = e.colors.blue;
- a.colorHex = "#" + (16777216 + (s << 16) + (l << 8) + c).toString(16).slice(1)
- }
- 4 & t && (a.skin = e.skin), 16 & t && (a.x = e.positionMass.x, a.y = e.positionMass.y, a.mass = e.positionMass.mass), 32 & t && (a.isAlive = e.isAlive), 64 & t && (a.isRGB = e.isRGB), a.team = n, a.isAlive ? (i.totalMass += a.mass, i.alive++) : i.spectate++
- }
- if (128 & t) {
- var u = e.biggestFlag;
- TeamPlayers.biggestIsOn = u, u && (TeamPlayers.biggest.x = e.biggest.x, TeamPlayers.biggest.y = e.biggest.y)
- }
- }
- }, {
- key: "prePlayers",
- value: function(e) {
- TeamPlayers.clear();
- for (var t = e.length; t--;) {
- var n = e[t].id,
- i = TeamPlayers.newPlayer(n);
- i.nick = e[t].nick;
- var o = e[t].colors.red,
- a = e[t].colors.green,
- r = e[t].colors.blue;
- i.colorHex = "#" + (16777216 + (o << 16) + (a << 8) + r).toString(16).slice(1), i.skin = e[t].skin, i.x = e[t].positionMass.x, i.y = e[t].positionMass.y, i.mass = e[t].positionMass.mass, i.isAlive = e[t].isAlive, i.isRGB = e[t].isRGB
- }
- }
- }, {
- key: "chat",
- value: function(e) {
- var t = e.playerId,
- n = e.type,
- i = e.text;
- if (3 === n) {
- var o = i.split("");
- TeamPlayers.chat(t, n, o[1], o[0])
- } else TeamPlayers.chat(t, n, i)
- }
- }, {
- key: "commander",
- value: function(e) {
- var t = e.x + gMap.offset.x,
- n = e.y + gMap.offset.y,
- i = HSLO.time;
- Game.commanderPoints.add({
- x: t,
- y: n,
- time: i
- })
- }
- }, {
- key: "selfID",
- value: function(e) {
- TeamPlayers.selfID = e
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = l(n(15)),
- o = l(n(14)),
- a = l(n(22)),
- r = l(n(0)),
- s = l(n(1));
- function l(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- var c = function() {
- function e(t) {
- (0, r.default)(this, e), this.api = t
- }
- return (0, s.default)(e, [{
- key: "getJWT",
- value: function(e, t) {
- return new a.default(function(n, i) {
- $.get(this.api.baseURL + "?id=" + e + "&token=" + t + "&platform=" + this.api.platform.type, function(e) {
- n(e)
- })
- }.bind(this))
- }
- }, {
- key: "getUser",
- value: function(e) {
- return new a.default(function(t, n) {
- $.get(this.api.baseURL + "/user/" + e, function(e) {
- t(JSON.parse(e))
- })
- }.bind(this))
- }
- }, {
- key: "getRefferals",
- value: function(e) {
- return new a.default(function(t, n) {
- $.get(this.api.baseURL + "/refferal/" + e, function(e) {
- t(JSON.parse(e))
- })
- }.bind(this))
- }
- }, {
- key: "claimRefferal",
- value: function(e) {
- return new a.default(function(t, n) {
- $.post(this.api.baseURL + "/claim", {
- jwt: SocketClient.jwt,
- type: e
- }, function() {
- var e = (0, o.default)(i.default.mark(function e(n) {
- var o, a, r, s;
- return i.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- if ("worked" != n) {
- e.next = 19;
- break
- }
- return e.next = 3, this.api.platform.getAccessToken();
- case 3:
- return o = e.sent, e.next = 6, this.api.platform.getId();
- case 6:
- return a = e.sent, e.next = 9, this.api.platform.getInfo();
- case 9:
- return r = e.sent, e.next = 12, this.api.updateInfo();
- case 12:
- return s = e.sent, this.api.setInfo(r, s), e.next = 16, this.getJWT(a, o);
- case 16:
- SocketClient.jwt = e.sent, SocketClient.sendJWT(), t();
- case 19:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }.bind(this))
- }
- }, {
- key: "buyItem",
- value: function(e) {
- return this.api.loggedIn ? new a.default(function(t, n) {
- $.post(this.api.baseURL + "/buy", {
- jwt: SocketClient.jwt,
- item: e
- }, function() {
- var e = (0, o.default)(i.default.mark(function e(n) {
- var o, a, r, s;
- return i.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, this.api.updateInfo();
- case 2:
- return e.next = 4, this.api.platform.getId();
- case 4:
- return o = e.sent, e.next = 7, this.api.platform.getAccessToken();
- case 7:
- return a = e.sent, e.next = 10, this.getJWT(o, a);
- case 10:
- return SocketClient.jwt = e.sent, SocketClient.sendJWT(), e.next = 14, this.api.platform.getInfo();
- case 14:
- return r = e.sent, e.next = 17, this.api.updateInfo();
- case 17:
- s = e.sent, this.api.setInfo(r, s), "You Have Successfully Bought This Item!" == n ? swal({
- title: "Buy Item",
- text: "You successfully purchased this item!",
- icon: "success"
- }) : swal({
- title: "Buy Item",
- text: n.charAt(0).toUpperCase() + n.slice(1).toLowerCase(),
- icon: "error"
- }), t(n);
- case 21:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }.bind(this)) : swal({
- title: "Buy Item",
- text: "Login to buy items!",
- icon: "error"
- })
- }
- }, {
- key: "claimFreeCoins",
- value: function() {
- if (!this.api.loggedIn) return swal({
- title: "Free Coins",
- text: "Login for free coins!",
- icon: "error"
- });
- $.get(this.api.baseURL + "/freeCoins?jwt=" + SocketClient.jwt, function() {
- var e = (0, o.default)(i.default.mark(function e(t) {
- var n, o;
- return i.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, this.api.platform.getInfo();
- case 2:
- return n = e.sent, e.next = 5, this.api.updateInfo();
- case 5:
- o = e.sent, this.api.setInfo(n, o), "Succesfully claimed 20 coins!" == t ? swal({
- title: "Free Coins",
- text: "You successfully claimed 20 coins!",
- icon: "success"
- }) : swal({
- title: "Free Coins",
- text: "You must wait " + API.msToTime(API.info.lastCoinClaim + 72e5 - Date.now()) + " before you can claim coins again!",
- icon: "error"
- });
- case 8:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }
- }, {
- key: "getShopItems",
- value: function() {
- return new a.default(function(e, t) {
- $.get("http://main.cellz.io:8081/shop", function(t) {
- e(JSON.parse(t))
- })
- })
- }
- }]), e
- }();
- e.exports = c
- }, function(e, t, n) {
- "use strict";
- var i = l(n(15)),
- o = l(n(14)),
- a = l(n(22)),
- r = l(n(0)),
- s = l(n(1));
- function l(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, r.default)(this, e), this.googleUser = null, this.type = "google"
- }
- return (0, s.default)(e, [{
- key: "loggedIn",
- value: function() {
- return new a.default(function() {
- var e = (0, o.default)(i.default.mark(function e(t, n) {
- return i.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- gapi.auth2.getAuthInstance().isSignedIn.get() ? (this.googleUser = gapi.auth2.getAuthInstance().currentUser.get(), t(!0)) : t(!1);
- case 1:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t, n) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }
- }, {
- key: "login",
- value: function() {
- return new a.default(function() {
- var e = (0, o.default)(i.default.mark(function e(t, n) {
- var o;
- return i.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, auth2.signIn();
- case 2:
- o = e.sent, this.googleUser = o, t();
- case 5:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t, n) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }
- }, {
- key: "logout",
- value: function() {
- return new a.default(function() {
- var e = (0, o.default)(i.default.mark(function e(t, n) {
- return i.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, auth2.signOut();
- case 2:
- t();
- case 3:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t, n) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }
- }, {
- key: "getInfo",
- value: function() {
- return new a.default(function(e, t) {
- var n = {
- profilePic: "",
- name: "",
- id: this.getId()
- },
- i = this.googleUser.getBasicProfile();
- n.profilePic = i.getImageUrl(), n.name = i.getName().split(" ")[0], e(n)
- }.bind(this))
- }
- }, {
- key: "getAccessToken",
- value: function() {
- return new a.default(function(e, t) {
- e(this.googleUser.getAuthResponse().id_token)
- }.bind(this))
- }
- }, {
- key: "getId",
- value: function() {
- return this.googleUser.getBasicProfile().getId()
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = l(n(22)),
- o = l(n(15)),
- a = l(n(14)),
- r = l(n(0)),
- s = l(n(1));
- function l(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- var c = n(141),
- u = n(140);
- e.exports = function() {
- function e() {
- (0, r.default)(this, e)
- }
- return (0, s.default)(e, null, [{
- key: "init",
- value: function() {
- this.platforms = {
- google: new c(this)
- }, this.platform = this.platforms.google, this.baseURL = "http://main.cellz.io:9000", this.utils = new u(this), this.info = {}, this.loggedIn = !1, this.run(), this.buttons()
- }
- }, {
- key: "buttons",
- value: function() {
- $(".login-button").click(function() {
- this.login()
- }.bind(this)), $(".logout-button").click(function() {
- this.logout()
- }.bind(this)), $("#freeCoins").click(function() {
- this.utils.claimFreeCoins()
- }.bind(this)), $(".doubleMass24hr").click(function() {
- this.utils.buyItem("mass_boost_2_24")
- }.bind(this)), $(".tripleMass24hr").click(function() {
- this.utils.buyItem("mass_boost_3_24")
- }.bind(this)), $(".doubleXP24hr").click(function() {
- this.utils.buyItem("xp_boost_2_24")
- }.bind(this)), $(".tripleXP24hr").click(function() {
- this.utils.buyItem("xp_boost_3_24")
- }.bind(this)), $(".massBoost").click(function() {
- swal({
- title: "Mass Boost Infortmation",
- text: "Mass boost does not work in DUAL, MEGA-DUAL or ULTRASPLIT serves!",
- icon: "info"
- })
- }), $(".xpBoost").click(function() {
- swal({
- title: "XP Boost Infortmation",
- text: "XP boost does not work in DUAL, MEGA-DUAL or ULTRASPLIT serves!",
- icon: "info"
- })
- })
- }
- }, {
- key: "run",
- value: function() {
- var e = (0, a.default)(o.default.mark(function e() {
- return o.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, this.platform.loggedIn();
- case 2:
- e.sent && this.handleLogin();
- case 4:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function() {
- return e.apply(this, arguments)
- }
- }()
- }, {
- key: "handleLogin",
- value: function() {
- return new i.default(function() {
- var e = (0, a.default)(o.default.mark(function e(t, n) {
- var i, a, r, s;
- return o.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, this.platform.getInfo();
- case 2:
- return i = e.sent, e.next = 5, this.platform.getAccessToken();
- case 5:
- return a = e.sent, e.next = 8, this.utils.getJWT(i.id, a);
- case 8:
- return r = e.sent, this.loggedIn = !0, SocketClient.jwt = r, SocketClient.sendJWT(), e.next = 14, this.updateInfo();
- case 14:
- s = e.sent, this.setInfo(i, s), $(".login-button").hide(), $(".logout-button").css({
- display: "inline-block"
- });
- case 18:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t, n) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }
- }, {
- key: "updateInfo",
- value: function() {
- return new i.default(function() {
- var e = (0, a.default)(o.default.mark(function e(t, n) {
- var i;
- return o.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, this.utils.getUser(this.platform.getId());
- case 2:
- i = e.sent, this.info = i, t(i);
- case 5:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t, n) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }
- }, {
- key: "login",
- value: function() {
- if (!this.loggedIn) return new i.default(function() {
- var e = (0, a.default)(o.default.mark(function e(t, n) {
- return o.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, this.platform.login();
- case 2:
- return e.next = 4, this.handleLogin();
- case 4:
- t(!0);
- case 5:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t, n) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }
- }, {
- key: "logout",
- value: function() {
- return new i.default(function() {
- var e = (0, a.default)(o.default.mark(function e(t, n) {
- return o.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, this.platform.logout();
- case 2:
- e.sent, this.loggedIn = !1, this.setInfo({
- profilePic: "./images/guest.png",
- name: "Guest"
- }, {
- coins: 0,
- xp: 0
- }), $(".logout-button").hide(), $(".login-button").show(), t(!0);
- case 8:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t, n) {
- return e.apply(this, arguments)
- }
- }().bind(this))
- }
- }, {
- key: "setInfo",
- value: function() {
- var e = (0, a.default)(o.default.mark(function e(t, n) {
- var i, a, r, s;
- return o.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- $(".userImg").attr("src", t.profilePic), $(".accountName").html(t.name), $("#coinAmt").html(n.coins.toLocaleString()), i = n.xp, a = Math.floor(Math.sqrt(i / 2 / 1e3)), this.info.level = a, a > 99 && (a = 99), r = 1e3 * Math.pow(a + 1, 2) * 2, s = 1e3 * Math.pow(a, 2) * 2, $(".level").html("Level: " + (a + 1)), $(".xp").html(i.toLocaleString() + " / " + r.toLocaleString()), $(".progress-bar").css("width", (i - s) / (r - s) * 100 + "%"), Date.now(), this.info.lastCoinClaim;
- case 13:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t, n) {
- return e.apply(this, arguments)
- }
- }()
- }, {
- key: "msToTime",
- value: function(e) {
- var t = (e = (e - e % 1e3) / 1e3) % 60,
- n = (e = (e - t) / 60) % 60;
- return (e - n) / 60 + " hours " + n + " minutes and " + t + " seconds"
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- console.log("Connected to ProSplit.io Networks."), Socket.connected = !0, this.color(), this.joinRoom(), this.aliveStatus(), this.rgbMode(), this.uploadPositionMass(), TeamPlayers.isSpectator && this.spectator(!0)
- }
- }, {
- key: "nick",
- value: function() {
- Socket.connected && Socket.send("setNick", Client.nick)
- }
- }, {
- key: "color",
- value: function() {
- if (Socket.connected) {
- var e = {};
- e.red = Client.colorObject.r, e.green = Client.colorObject.g, e.blue = Client.colorObject.b, Socket.send("setColors", e)
- }
- }
- }, {
- key: "skin",
- value: function() {
- Socket.connected && Socket.send("setSkin", Client.skin)
- }
- }, {
- key: "joinRoom",
- value: function() {
- if (Socket.connected && SocketClient.ip) {
- var e = SocketClient.ip.substring(5, SocketClient.ip.length) + Client.tag;
- if (e == Socket.room && null != Socket.room) return;
- null !== Socket.room && Socket.send("leaveRoom", Socket.room), Socket.room = e, this.nick(), this.skin(), Socket.send("joinRoom", Socket.room)
- }
- }
- }, {
- key: "positionMass",
- value: function() {
- if (Socket.connected) {
- var e = {};
- e.x = 0 | Client.x - gMap.offset.x, e.y = 0 | Client.y - gMap.offset.y, e.mass = Client.mass, Socket.send("setPositionMass", e)
- }
- }
- }, {
- key: "aliveStatus",
- value: function() {
- if (Socket.connected) {
- var e = Client.isAlive ? 1 : 0;
- Socket.send("setAliveStatus", e)
- }
- }
- }, {
- key: "chat",
- value: function(e, t) {
- if (Socket.connected) {
- var n = {};
- n.type = e, n.text = t, Socket.send("sendMessage", n)
- }
- }
- }, {
- key: "commander",
- value: function() {
- if (Socket.connected) {
- var e = {};
- e.x = 0 | Listener.canvasX - gMap.offset.x, e.y = 0 | Listener.canvasY - gMap.offset.y, Socket.send("commander", e)
- }
- }
- }, {
- key: "spectator",
- value: function() {}
- }, {
- key: "rgbMode",
- value: function() {
- if (Socket.connected) {
- var e = Client.isRGB ? 1 : 0;
- Socket.send("setRgbMode", e)
- }
- }
- }, {
- key: "biggest",
- value: function() {
- if (Socket.connected) {
- var e = {};
- e.x = 0 | Camera.spectatePoint.x - gMap.offset.x, e.y = 0 | Camera.spectatePoint.y - gMap.offset.y, Socket.send("setBiggest", e)
- }
- }
- }, {
- key: "uploadPositionMass",
- value: function() {
- Client.isAlive && !TeamPlayers.isSpectator && SocketManager.positionMass(), setTimeout(SocketManager.uploadPositionMass, 1e3)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = a(n(0)),
- o = a(n(1));
- function a(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, i.default)(this, e)
- }
- return (0, o.default)(e, null, [{
- key: "init",
- value: function() {
- this.ip = null, this.ws = null, this.jwt = null, this.connected = !1, this.packetCount = {
- in: 0,
- out: 0
- }, gMap.init()
- }
- }, {
- key: "connect",
- value: function(e) {
- var t = this;
- e && (this.disconnect(), this.resetData(), gMap.init(), this.ws = new WebSocket("ws://" + e), this.ws.binaryType = "arraybuffer", this.ws.onopen = function() {
- return t.onOpen(1)
- }, this.ws.onmessage = function(e) {
- return t.onMessage(e)
- }, this.ws.onclose = function(e) {
- return t.onClose(e)
- }, this.ws.onerror = function() {
- return t.onError()
- }, this.ip = e, console.log("Connecting to: " + e))
- }
- }, {
- key: "disconnect",
- value: function() {
- if (this.connected = !1, this.ws) {
- this.ws.onopen = null, this.ws.onmessage = null, this.ws.onclose = null, this.ws.onerror = null;
- try {
- this.ws.close()
- } catch (e) {}
- }
- this.ws = null, this.ip = null
- }
- }, {
- key: "resetData",
- value: function() {
- Engine.cells.clear(), Engine.myCellsIDs.clear(), Engine.myCells.clear(), Client.isAlive = !1
- }
- }, {
- key: "send",
- value: function(e) {
- this.ws && 1 === this.ws.readyState && (this.packetCount.out++, this.ws.send(e))
- }
- }, {
- key: "onOpen",
- value: function() {
- SocketManager.joinRoom(), Packets.init(), this.sendVerifyToken(), this.jwt && !isUltra && this.sendJWT()
- }
- }, {
- key: "onMessage",
- value: function(e) {
- this.packetCount.in++, ServerHandler.getBuffer(e)
- }
- }, {
- key: "onClose",
- value: function(e) {
- HUD.open(), this.connected = !1, console.log("Websocket closed -> " + e.reason), Wager.isWager ? Wager.open() : this.connect(this.ip), Wager.reset()
- }
- }, {
- key: "onError",
- value: function() {
- HUD.open(), this.connected = !1, console.log("Websocket errored out!")
- }
- }, {
- key: "sendJWT",
- value: function() {
- var e = new DataView(new ArrayBuffer(2 + this.jwt.length));
- e.setUint8(0, 30);
- for (var t = 0; t < this.jwt.length; t++) e.setUint8(t + 1, this.jwt.charCodeAt(t));
- this.send(e)
- }
- }, {
- key: "sendVerifyToken",
- value: function() {
- var e = HSLO.verifyToken,
- t = new DataView(new ArrayBuffer(2 + e.length));
- t.setUint8(0, 32);
- for (var n = 0; n < e.length; n++) t.setUint8(n + 1, e.charCodeAt(n));
- this.send(t)
- }
- }]), e
- }()
- }, function(e, t, n) {
- "use strict";
- var i = s(n(15)),
- o = s(n(14)),
- a = s(n(0)),
- r = s(n(1));
- function s(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- e.exports = function() {
- function e() {
- (0, a.default)(this, e)
- }
- return (0, r.default)(e, null, [{
- key: "init",
- value: function() {
- this.serverStats = [], this.getStats()
- }
- }, {
- key: "getServers",
- value: function() {
- var e = this;
- $.get("http://na.cellz.io:3000/servers", function(t) {
- for (var n in $("#servers").html(""), e.addServer("ULTRASPLIT_1", {
- ip: "na.gaver.io",
- port: 1177,
- isUltra: !0
- }), e.addServer("ULTRASPLIT_2", {
- ip: "na.gaver.io",
- port: 1178,
- isUltra: !0
- }), JSON.parse(t).NA) "FFA_1" === n || n.includes("WAGER") || e.addServer(n, JSON.parse(t).NA[n]);
- e.wagerStats()
- })
- }
- }, {
- key: "addServer",
- value: function() {
- var e = (0, o.default)(i.default.mark(function e(t, n) {
- var o;
- return i.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- o = this.serverStats[t], t = (t = t.replace("_", " ").split("_"))[1] ? t[0] + " " + t[1] : t[0], $("#servers").append(this.serverTemp(t, n, o));
- case 4:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t, n) {
- return e.apply(this, arguments)
- }
- }()
- }, {
- key: "serverTemp",
- value: function(e, t, n) {
- var i = n.current_players || 0,
- o = n.max_players || 0;
- return '<div id="server" onclick="SocketClient.connect(\'' + t.ip + ":" + t.port + "');window.isUltra=" + t.isUltra + ';Wager.isWager=false;"><label id="serverName">' + e + '</label><label id="serverNumber">' + i + "/" + o + "</label></div>"
- }
- }, {
- key: "getStats",
- value: function() {
- var e = this;
- $.get("http://na.cellz.io:3000/stats", function(t) {
- e.serverStats = JSON.parse(t), $.get("http://na.gaver.io:7000", function(t) {
- var n = JSON.parse(t);
- e.serverStats.ULTRASPLIT_1 = {
- max_players: n.max_players,
- current_players: n.current_players,
- alive: n.alive
- }, $.get("http://na.gaver.io:7001", function(t) {
- var n = JSON.parse(t);
- e.serverStats.ULTRASPLIT_2 = {
- max_players: n.max_players,
- current_players: n.current_players,
- alive: n.alive
- }, e.getServers()
- })
- })
- })
- }
- }, {
- key: "wagerStats",
- value: function() {
- for (var e in this.currentPlayers = 0, this.maxPlayers = 0, this.serverStats) e.includes("WAGER") && (this.maxPlayers += this.serverStats[e].max_players, this.currentPlayers += this.serverStats[e].current_players);
- $("#server").before('<div id="server" onclick="Wager.open();"><label id="serverName">WAGER</label><label id="serverNumber">' + this.currentPlayers + "/" + this.maxPlayers + "</label></div>")
- }
- }]), e
- }()
- }, function(e, t, n) {
- var i = n(5);
- i(i.S + i.F * !n(8), "Object", {
- defineProperty: n(7).f
- })
- }, function(e, t, n) {
- n(146);
- var i = n(2).Object;
- e.exports = function(e, t, n) {
- return i.defineProperty(e, t, n)
- }
- }, function(e, t, n) {
- e.exports = {
- default: n(147),
- __esModule: !0
- }
- }, function(e, t) {
- ! function(t) {
- "use strict";
- var n, i = Object.prototype,
- o = i.hasOwnProperty,
- a = "function" == typeof Symbol ? Symbol : {},
- r = a.iterator || "@@iterator",
- s = a.asyncIterator || "@@asyncIterator",
- l = a.toStringTag || "@@toStringTag",
- c = "object" == typeof e,
- u = t.regeneratorRuntime;
- if (u) c && (e.exports = u);
- else {
- (u = t.regeneratorRuntime = c ? e.exports : {}).wrap = S;
- var d = "suspendedStart",
- h = "suspendedYield",
- f = "executing",
- m = "completed",
- g = {},
- p = {};
- p[r] = function() {
- return this
- };
- var v = Object.getPrototypeOf,
- y = v && v(v($([])));
- y && y !== i && o.call(y, r) && (p = y);
- var k = x.prototype = w.prototype = Object.create(p);
- b.prototype = k.constructor = x, x.constructor = b, x[l] = b.displayName = "GeneratorFunction", u.isGeneratorFunction = function(e) {
- var t = "function" == typeof e && e.constructor;
- return !!t && (t === b || "GeneratorFunction" === (t.displayName || t.name))
- }, u.mark = function(e) {
- return Object.setPrototypeOf ? Object.setPrototypeOf(e, x) : (e.__proto__ = x, l in e || (e[l] = "GeneratorFunction")), e.prototype = Object.create(k), e
- }, u.awrap = function(e) {
- return {
- __await: e
- }
- }, M(_.prototype), _.prototype[s] = function() {
- return this
- }, u.AsyncIterator = _, u.async = function(e, t, n, i) {
- var o = new _(S(e, t, n, i));
- return u.isGeneratorFunction(t) ? o : o.next().then(function(e) {
- return e.done ? e.value : o.next()
- })
- }, M(k), k[l] = "Generator", k[r] = function() {
- return this
- }, k.toString = function() {
- return "[object Generator]"
- }, u.keys = function(e) {
- var t = [];
- for (var n in e) t.push(n);
- return t.reverse(),
- function n() {
- for (; t.length;) {
- var i = t.pop();
- if (i in e) return n.value = i, n.done = !1, n
- }
- return n.done = !0, n
- }
- }, u.values = $, K.prototype = {
- constructor: K,
- reset: function(e) {
- if (this.prev = 0, this.next = 0, this.sent = this._sent = n, this.done = !1, this.delegate = null, this.method = "next", this.arg = n, this.tryEntries.forEach(P), !e)
- for (var t in this) "t" === t.charAt(0) && o.call(this, t) && !isNaN(+t.slice(1)) && (this[t] = n)
- },
- stop: function() {
- this.done = !0;
- var e = this.tryEntries[0].completion;
- if ("throw" === e.type) throw e.arg;
- return this.rval
- },
- dispatchException: function(e) {
- if (this.done) throw e;
- var t = this;
- function i(i, o) {
- return s.type = "throw", s.arg = e, t.next = i, o && (t.method = "next", t.arg = n), !!o
- }
- for (var a = this.tryEntries.length - 1; a >= 0; --a) {
- var r = this.tryEntries[a],
- s = r.completion;
- if ("root" === r.tryLoc) return i("end");
- if (r.tryLoc <= this.prev) {
- var l = o.call(r, "catchLoc"),
- c = o.call(r, "finallyLoc");
- if (l && c) {
- if (this.prev < r.catchLoc) return i(r.catchLoc, !0);
- if (this.prev < r.finallyLoc) return i(r.finallyLoc)
- } else if (l) {
- if (this.prev < r.catchLoc) return i(r.catchLoc, !0)
- } else {
- if (!c) throw new Error("try statement without catch or finally");
- if (this.prev < r.finallyLoc) return i(r.finallyLoc)
- }
- }
- }
- },
- abrupt: function(e, t) {
- for (var n = this.tryEntries.length - 1; n >= 0; --n) {
- var i = this.tryEntries[n];
- if (i.tryLoc <= this.prev && o.call(i, "finallyLoc") && this.prev < i.finallyLoc) {
- var a = i;
- break
- }
- }
- a && ("break" === e || "continue" === e) && a.tryLoc <= t && t <= a.finallyLoc && (a = null);
- var r = a ? a.completion : {};
- return r.type = e, r.arg = t, a ? (this.method = "next", this.next = a.finallyLoc, g) : this.complete(r)
- },
- complete: function(e, t) {
- if ("throw" === e.type) throw e.arg;
- return "break" === e.type || "continue" === e.type ? this.next = e.arg : "return" === e.type ? (this.rval = this.arg = e.arg, this.method = "return", this.next = "end") : "normal" === e.type && t && (this.next = t), g
- },
- finish: function(e) {
- for (var t = this.tryEntries.length - 1; t >= 0; --t) {
- var n = this.tryEntries[t];
- if (n.finallyLoc === e) return this.complete(n.completion, n.afterLoc), P(n), g
- }
- },
- catch: function(e) {
- for (var t = this.tryEntries.length - 1; t >= 0; --t) {
- var n = this.tryEntries[t];
- if (n.tryLoc === e) {
- var i = n.completion;
- if ("throw" === i.type) {
- var o = i.arg;
- P(n)
- }
- return o
- }
- }
- throw new Error("illegal catch attempt")
- },
- delegateYield: function(e, t, i) {
- return this.delegate = {
- iterator: $(e),
- resultName: t,
- nextLoc: i
- }, "next" === this.method && (this.arg = n), g
- }
- }
- }
- function S(e, t, n, i) {
- var o = t && t.prototype instanceof w ? t : w,
- a = Object.create(o.prototype),
- r = new K(i || []);
- return a._invoke = function(e, t, n) {
- var i = d;
- return function(o, a) {
- if (i === f) throw new Error("Generator is already running");
- if (i === m) {
- if ("throw" === o) throw a;
- return O()
- }
- for (n.method = o, n.arg = a;;) {
- var r = n.delegate;
- if (r) {
- var s = T(r, n);
- if (s) {
- if (s === g) continue;
- return s
- }
- }
- if ("next" === n.method) n.sent = n._sent = n.arg;
- else if ("throw" === n.method) {
- if (i === d) throw i = m, n.arg;
- n.dispatchException(n.arg)
- } else "return" === n.method && n.abrupt("return", n.arg);
- i = f;
- var l = C(e, t, n);
- if ("normal" === l.type) {
- if (i = n.done ? m : h, l.arg === g) continue;
- return {
- value: l.arg,
- done: n.done
- }
- }
- "throw" === l.type && (i = m, n.method = "throw", n.arg = l.arg)
- }
- }
- }(e, n, r), a
- }
- function C(e, t, n) {
- try {
- return {
- type: "normal",
- arg: e.call(t, n)
- }
- } catch (e) {
- return {
- type: "throw",
- arg: e
- }
- }
- }
- function w() {}
- function b() {}
- function x() {}
- function M(e) {
- ["next", "throw", "return"].forEach(function(t) {
- e[t] = function(e) {
- return this._invoke(t, e)
- }
- })
- }
- function _(e) {
- var t;
- this._invoke = function(n, i) {
- function a() {
- return new Promise(function(t, a) {
- ! function t(n, i, a, r) {
- var s = C(e[n], e, i);
- if ("throw" !== s.type) {
- var l = s.arg,
- c = l.value;
- return c && "object" == typeof c && o.call(c, "__await") ? Promise.resolve(c.__await).then(function(e) {
- t("next", e, a, r)
- }, function(e) {
- t("throw", e, a, r)
- }) : Promise.resolve(c).then(function(e) {
- l.value = e, a(l)
- }, r)
- }
- r(s.arg)
- }(n, i, t, a)
- })
- }
- return t = t ? t.then(a, a) : a()
- }
- }
- function T(e, t) {
- var i = e.iterator[t.method];
- if (i === n) {
- if (t.delegate = null, "throw" === t.method) {
- if (e.iterator.return && (t.method = "return", t.arg = n, T(e, t), "throw" === t.method)) return g;
- t.method = "throw", t.arg = new TypeError("The iterator does not provide a 'throw' method")
- }
- return g
- }
- var o = C(i, e.iterator, t.arg);
- if ("throw" === o.type) return t.method = "throw", t.arg = o.arg, t.delegate = null, g;
- var a = o.arg;
- return a ? a.done ? (t[e.resultName] = a.value, t.next = e.nextLoc, "return" !== t.method && (t.method = "next", t.arg = n), t.delegate = null, g) : a : (t.method = "throw", t.arg = new TypeError("iterator result is not an object"), t.delegate = null, g)
- }
- function L(e) {
- var t = {
- tryLoc: e[0]
- };
- 1 in e && (t.catchLoc = e[1]), 2 in e && (t.finallyLoc = e[2], t.afterLoc = e[3]), this.tryEntries.push(t)
- }
- function P(e) {
- var t = e.completion || {};
- t.type = "normal", delete t.arg, e.completion = t
- }
- function K(e) {
- this.tryEntries = [{
- tryLoc: "root"
- }], e.forEach(L, this), this.reset(!0)
- }
- function $(e) {
- if (e) {
- var t = e[r];
- if (t) return t.call(e);
- if ("function" == typeof e.next) return e;
- if (!isNaN(e.length)) {
- var i = -1,
- a = function t() {
- for (; ++i < e.length;)
- if (o.call(e, i)) return t.value = e[i], t.done = !1, t;
- return t.value = n, t.done = !0, t
- };
- return a.next = a
- }
- }
- return {
- next: O
- }
- }
- function O() {
- return {
- value: n,
- done: !0
- }
- }
- }(function() {
- return this
- }() || Function("return this")())
- }, function(e, t, n) {
- var i = function() {
- return this
- }() || Function("return this")(),
- o = i.regeneratorRuntime && Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime") >= 0,
- a = o && i.regeneratorRuntime;
- if (i.regeneratorRuntime = void 0, e.exports = n(149), o) i.regeneratorRuntime = a;
- else try {
- delete i.regeneratorRuntime
- } catch (e) {
- i.regeneratorRuntime = void 0
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(5),
- o = n(30),
- a = n(56);
- i(i.S, "Promise", {
- try: function(e) {
- var t = o.f(this),
- n = a(e);
- return (n.e ? t.reject : t.resolve)(n.v), t.promise
- }
- })
- }, function(e, t, n) {
- "use strict";
- var i = n(5),
- o = n(2),
- a = n(3),
- r = n(58),
- s = n(55);
- i(i.P + i.R, "Promise", {
- finally: function(e) {
- var t = r(this, o.Promise || a.Promise),
- n = "function" == typeof e;
- return this.then(n ? function(n) {
- return s(t, e()).then(function() {
- return n
- })
- } : e, n ? function(n) {
- return s(t, e()).then(function() {
- throw n
- })
- } : e)
- }
- })
- }, function(e, t, n) {
- var i = n(3).navigator;
- e.exports = i && i.userAgent || ""
- }, function(e, t, n) {
- var i = n(3),
- o = n(57).set,
- a = i.MutationObserver || i.WebKitMutationObserver,
- r = i.process,
- s = i.Promise,
- l = "process" == n(17)(r);
- e.exports = function() {
- var e, t, n, c = function() {
- var i, o;
- for (l && (i = r.domain) && i.exit(); e;) {
- o = e.fn, e = e.next;
- try {
- o()
- } catch (i) {
- throw e ? n() : t = void 0, i
- }
- }
- t = void 0, i && i.enter()
- };
- if (l) n = function() {
- r.nextTick(c)
- };
- else if (!a || i.navigator && i.navigator.standalone)
- if (s && s.resolve) {
- var u = s.resolve(void 0);
- n = function() {
- u.then(c)
- }
- } else n = function() {
- o.call(i, c)
- };
- else {
- var d = !0,
- h = document.createTextNode("");
- new a(c).observe(h, {
- characterData: !0
- }), n = function() {
- h.data = d = !d
- }
- }
- return function(i) {
- var o = {
- fn: i,
- next: void 0
- };
- t && (t.next = o), e || (e = o, n()), t = o
- }
- }
- }, function(e, t) {
- e.exports = function(e, t, n) {
- var i = void 0 === n;
- switch (t.length) {
- case 0:
- return i ? e() : e.call(n);
- case 1:
- return i ? e(t[0]) : e.call(n, t[0]);
- case 2:
- return i ? e(t[0], t[1]) : e.call(n, t[0], t[1]);
- case 3:
- return i ? e(t[0], t[1], t[2]) : e.call(n, t[0], t[1], t[2]);
- case 4:
- return i ? e(t[0], t[1], t[2], t[3]) : e.call(n, t[0], t[1], t[2], t[3])
- }
- return e.apply(n, t)
- }
- }, function(e, t, n) {
- "use strict";
- var i, o, a, r, s = n(40),
- l = n(3),
- c = n(10),
- u = n(33),
- d = n(5),
- h = n(6),
- f = n(20),
- m = n(32),
- g = n(16),
- p = n(58),
- v = n(57).set,
- y = n(154)(),
- k = n(30),
- S = n(56),
- C = n(153),
- w = n(55),
- b = l.TypeError,
- x = l.process,
- M = x && x.versions,
- _ = M && M.v8 || "",
- T = l.Promise,
- L = "process" == u(x),
- P = function() {},
- K = o = k.f,
- $ = !! function() {
- try {
- var e = T.resolve(1),
- t = (e.constructor = {})[n(4)("species")] = function(e) {
- e(P, P)
- };
- return (L || "function" == typeof PromiseRejectionEvent) && e.then(P) instanceof t && 0 !== _.indexOf("6.6") && -1 === C.indexOf("Chrome/66")
- } catch (e) {}
- }(),
- O = function(e) {
- var t;
- return !(!h(e) || "function" != typeof(t = e.then)) && t
- },
- I = function(e, t) {
- if (!e._n) {
- e._n = !0;
- var n = e._c;
- y(function() {
- for (var i = e._v, o = 1 == e._s, a = 0, r = function(t) {
- var n, a, r, s = o ? t.ok : t.fail,
- l = t.resolve,
- c = t.reject,
- u = t.domain;
- try {
- s ? (o || (2 == e._h && z(e), e._h = 1), !0 === s ? n = i : (u && u.enter(), n = s(i), u && (u.exit(), r = !0)), n === t.promise ? c(b("Promise-chain cycle")) : (a = O(n)) ? a.call(n, l, c) : l(n)) : c(i)
- } catch (e) {
- u && !r && u.exit(), c(e)
- }
- }; n.length > a;) r(n[a++]);
- e._c = [], e._n = !1, t && !e._h && A(e)
- })
- }
- },
- A = function(e) {
- v.call(l, function() {
- var t, n, i, o = e._v,
- a = E(e);
- if (a && (t = S(function() {
- L ? x.emit("unhandledRejection", o, e) : (n = l.onunhandledrejection) ? n({
- promise: e,
- reason: o
- }) : (i = l.console) && i.error && i.error("Unhandled promise rejection", o)
- }), e._h = L || E(e) ? 2 : 1), e._a = void 0, a && t.e) throw t.v
- })
- },
- E = function(e) {
- return 1 !== e._h && 0 === (e._a || e._c).length
- },
- z = function(e) {
- v.call(l, function() {
- var t;
- L ? x.emit("rejectionHandled", e) : (t = l.onrejectionhandled) && t({
- promise: e,
- reason: e._v
- })
- })
- },
- R = function(e) {
- var t = this;
- t._d || (t._d = !0, (t = t._w || t)._v = e, t._s = 2, t._a || (t._a = t._c.slice()), I(t, !0))
- },
- F = function(e) {
- var t, n = this;
- if (!n._d) {
- n._d = !0, n = n._w || n;
- try {
- if (n === e) throw b("Promise can't be resolved itself");
- (t = O(e)) ? y(function() {
- var i = {
- _w: n,
- _d: !1
- };
- try {
- t.call(e, c(F, i, 1), c(R, i, 1))
- } catch (e) {
- R.call(i, e)
- }
- }): (n._v = e, n._s = 1, I(n, !1))
- } catch (e) {
- R.call({
- _w: n,
- _d: !1
- }, e)
- }
- }
- };
- $ || (T = function(e) {
- m(this, T, "Promise", "_h"), f(e), i.call(this);
- try {
- e(c(F, this, 1), c(R, this, 1))
- } catch (e) {
- R.call(this, e)
- }
- }, (i = function(e) {
- this._c = [], this._a = void 0, this._s = 0, this._d = !1, this._v = void 0, this._h = 0, this._n = !1
- }).prototype = n(29)(T.prototype, {
- then: function(e, t) {
- var n = K(p(this, T));
- return n.ok = "function" != typeof e || e, n.fail = "function" == typeof t && t, n.domain = L ? x.domain : void 0, this._c.push(n), this._a && this._a.push(n), this._s && I(this, !1), n.promise
- },
- catch: function(e) {
- return this.then(void 0, e)
- }
- }), a = function() {
- var e = new i;
- this.promise = e, this.resolve = c(F, e, 1), this.reject = c(R, e, 1)
- }, k.f = K = function(e) {
- return e === T || e === r ? new a(e) : o(e)
- }), d(d.G + d.W + d.F * !$, {
- Promise: T
- }), n(25)(T, "Promise"), n(54)("Promise"), r = n(2).Promise, d(d.S + d.F * !$, "Promise", {
- reject: function(e) {
- var t = K(this);
- return (0, t.reject)(e), t.promise
- }
- }), d(d.S + d.F * (s || !$), "Promise", {
- resolve: function(e) {
- return w(s && this === r ? T : this, e)
- }
- }), d(d.S + d.F * !($ && n(53)(function(e) {
- T.all(e).catch(P)
- })), "Promise", {
- all: function(e) {
- var t = this,
- n = K(t),
- i = n.resolve,
- o = n.reject,
- a = S(function() {
- var n = [],
- a = 0,
- r = 1;
- g(e, !1, function(e) {
- var s = a++,
- l = !1;
- n.push(void 0), r++, t.resolve(e).then(function(e) {
- l || (l = !0, n[s] = e, --r || i(n))
- }, o)
- }), --r || i(n)
- });
- return a.e && o(a.v), n.promise
- },
- race: function(e) {
- var t = this,
- n = K(t),
- i = n.reject,
- o = S(function() {
- g(e, !1, function(e) {
- t.resolve(e).then(n.resolve, i)
- })
- });
- return o.e && i(o.v), n.promise
- }
- })
- }, function(e, t) {
- e.exports = function() {}
- }, function(e, t, n) {
- "use strict";
- var i = n(157),
- o = n(61),
- a = n(18),
- r = n(37);
- e.exports = n(41)(Array, "Array", function(e, t) {
- this._t = r(e), this._i = 0, this._k = t
- }, function() {
- var e = this._t,
- t = this._k,
- n = this._i++;
- return !e || n >= e.length ? (this._t = void 0, o(1)) : o(0, "keys" == t ? n : "values" == t ? e[n] : [n, e[n]])
- }, "values"), a.Arguments = a.Array, i("keys"), i("values"), i("entries")
- }, function(e, t, n) {
- var i = n(19),
- o = n(34),
- a = n(36)("IE_PROTO"),
- r = Object.prototype;
- e.exports = Object.getPrototypeOf || function(e) {
- return e = o(e), i(e, a) ? e[a] : "function" == typeof e.constructor && e instanceof e.constructor ? e.constructor.prototype : e instanceof Object ? r : null
- }
- }, function(e, t, n) {
- var i = n(43),
- o = Math.max,
- a = Math.min;
- e.exports = function(e, t) {
- return (e = i(e)) < 0 ? o(e + t, 0) : a(e, t)
- }
- }, function(e, t, n) {
- var i = n(37),
- o = n(26),
- a = n(160);
- e.exports = function(e) {
- return function(t, n, r) {
- var s, l = i(t),
- c = o(l.length),
- u = a(r, c);
- if (e && n != n) {
- for (; c > u;)
- if ((s = l[u++]) != s) return !0
- } else
- for (; c > u; u++)
- if ((e || u in l) && l[u] === n) return e || u || 0;
- return !e && -1
- }
- }
- }, function(e, t, n) {
- var i = n(19),
- o = n(37),
- a = n(161)(!1),
- r = n(36)("IE_PROTO");
- e.exports = function(e, t) {
- var n, s = o(e),
- l = 0,
- c = [];
- for (n in s) n != r && i(s, n) && c.push(n);
- for (; t.length > l;) i(s, n = t[l++]) && (~a(c, n) || c.push(n));
- return c
- }
- }, function(e, t, n) {
- var i = n(162),
- o = n(63);
- e.exports = Object.keys || function(e) {
- return i(e, o)
- }
- }, function(e, t, n) {
- var i = n(7),
- o = n(9),
- a = n(163);
- e.exports = n(8) ? Object.defineProperties : function(e, t) {
- o(e);
- for (var n, r = a(t), s = r.length, l = 0; s > l;) i.f(e, n = r[l++], t[n]);
- return e
- }
- }, function(e, t, n) {
- "use strict";
- var i = n(66),
- o = n(38),
- a = n(25),
- r = {};
- n(11)(r, n(4)("iterator"), function() {
- return this
- }), e.exports = function(e, t, n) {
- e.prototype = i(r, {
- next: o(1, n)
- }), a(e, t + " Iterator")
- }
- }, function(e, t, n) {
- e.exports = n(11)
- }, function(e, t, n) {
- var i = n(6);
- e.exports = function(e, t) {
- if (!i(e)) return e;
- var n, o;
- if (t && "function" == typeof(n = e.toString) && !i(o = n.call(e))) return o;
- if ("function" == typeof(n = e.valueOf) && !i(o = n.call(e))) return o;
- if (!t && "function" == typeof(n = e.toString) && !i(o = n.call(e))) return o;
- throw TypeError("Can't convert object to primitive value")
- }
- }, function(e, t, n) {
- e.exports = !n(8) && !n(27)(function() {
- return 7 != Object.defineProperty(n(39)("div"), "a", {
- get: function() {
- return 7
- }
- }).a
- })
- }, function(e, t, n) {
- var i = n(43),
- o = n(42);
- e.exports = function(e) {
- return function(t, n) {
- var a, r, s = String(o(t)),
- l = i(n),
- c = s.length;
- return l < 0 || l >= c ? e ? "" : void 0 : (a = s.charCodeAt(l)) < 55296 || a > 56319 || l + 1 === c || (r = s.charCodeAt(l + 1)) < 56320 || r > 57343 ? e ? s.charAt(l) : a : e ? s.slice(l, l + 2) : r - 56320 + (a - 55296 << 10) + 65536
- }
- }
- }, function(e, t, n) {
- n(44), n(21), n(24), n(156), n(152), n(151), e.exports = n(2).Promise
- }, function(e, t, n) {
- "use strict";
- var i = l(n(22)),
- o = l(n(15)),
- a = l(n(14)),
- r = l(n(0)),
- s = l(n(1));
- function l(e) {
- return e && e.__esModule ? e : {
- default: e
- }
- }
- window.Servers = n(145), window.SocketClient = n(144), window.SocketManager = n(143), window.API = n(142), window.World = n(139), window.gMap = n(138), window.Engine = n(137), window.Sound = n(121), window.Loop = n(120), window.Game = n(119), window.Cache = n(112), window.MassCache = n(111), window.NickCache = n(110), window.Camera = n(109), window.Client = n(108), window.Sectors = n(107), window.Targeting = n(106), window.Chat = n(105), window.Languages = n(104), window.Hotkeys = n(98), window.HotkeysManager = n(97), window.Menu = n(96), window.Theming = n(95), window.Reader = n(94), window.Storage = n(46), window.Profile = n(92), window.Listener = n(91), window.HUD = n(90), window.HUDStats = n(89), window.FPS = n(88), window.Packets = n(87), window.ServerHandler = n(86), window.Settings = n(85), window.Virus = n(84), window.Food = n(83), window.Commands = n(82), window.TeamList = n(81), window.TeamPlayers = n(80), window.SpectateTarget = n(79), window.Minimap = n(78), window.STE = n(77), window.Leaderboard = n(76), window.HotkeysPanel = n(75), window.Socket = n(74), window.ChatRoom = n(73), window.RGB = n(72), window.Player = n(71), window.Scenario = n(70), window.LangHandler = n(69), window.CommandManager = n(68), window.Wager = n(67), window.isUltra = !1, window.HSLO = function() {
- function e() {
- (0, r.default)(this, e)
- }
- return (0, s.default)(e, null, [{
- key: "init",
- value: function() {
- var e = this;
- this.time = Date.now(), Servers.getStats(), SocketClient.init(), Wager.init(), Storage.init(), HUD.init(), Engine.init(), Client.init(), Camera.init(), TeamPlayers.init(), Game.init(), Servers.init(), window.googleLoaded && API.init(), SocketClient.connect("na.cellz.io:4000"), this.loop = new Loop(function() {
- e.run()
- }), setInterval(function() {
- Listener.send()
- }, 40), window.onresize = function() {
- return e.resizeScreen
- }, this.resizeScreen(), this.verifyToken = ""
- }
- }, {
- key: "captchaLoaded",
- value: function() {
- var e = (0, a.default)(o.default.mark(function e(t) {
- return o.default.wrap(function(e) {
- for (;;) switch (e.prev = e.next) {
- case 0:
- return e.next = 2, this.getVerifyToken(t);
- case 2:
- this.verifyToken = e.sent, SocketClient.sendVerifyToken(), setTimeout(function() {
- grecaptcha.reset(), grecaptcha.execute()
- }, 72e5);
- case 5:
- case "end":
- return e.stop()
- }
- }, e, this)
- }));
- return function(t) {
- return e.apply(this, arguments)
- }
- }()
- }, {
- key: "getVerifyToken",
- value: function(e) {
- return new i.default(function(t, n) {
- $.post("http://main.cellz.io/token", {
- token: e
- }, function(e) {
- t(e)
- })
- })
- }
- }, {
- key: "resizeScreen",
- value: function() {
- Game.resizeCanvas(), window.innerHeight < 470 ? ($("#menu-overlay #player-data")[0].style.transform = "scale(0.4) translate(-110%, -125%)", $("#topBannerAd, #bottomBannerAd").css({
- transform: "translateX(-48%) scale(0.5)"
- })) : window.innerHeight < 570 ? ($("#menu-overlay #player-data")[0].style.transform = "scale(0.5) translate(-80%, -100%)", $("#topBannerAd, #bottomBannerAd").css({
- transform: "translateX(-46%) scale(0.6)"
- })) : window.innerHeight < 630 ? ($("#menu-overlay #player-data")[0].style.transform = "scale(0.6) translate(-75%, -84%)", $("#topBannerAd, #bottomBannerAd").css({
- transform: "translateX(-48%) scale(0.7)"
- })) : window.innerHeight < 710 ? ($("#menu-overlay #player-data")[0].style.transform = "scale(0.7) translate(-70%, -72%)", $("#topBannerAd, #bottomBannerAd").css({
- transform: "translateX(-50%) scale(0.8)"
- })) : window.innerHeight < 794 ? ($("#menu-overlay #player-data")[0].style.transform = "scale(0.8) translate(-60%, -65%)", $("#topBannerAd, #bottomBannerAd").css({
- transform: "translateX(-49%) scale(0.9)"
- })) : ($("#menu-overlay #player-data")[0].style.transform = "translate(-50%, -50%)", $("#topBannerAd, #bottomBannerAd").css({
- transform: "translateX(-50%)"
- }))
- }
- }, {
- key: "run",
- value: function() {
- this.time = Date.now(), Engine.update(), Client.update(), Camera.update(), Game.run(), Minimap.run(), FPS.run(), TeamList.update(), HUDStats.update(), SpectateTarget.update()
- }
- }, {
- key: "browserVersion",
- value: function() {
- var e = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
- return !!e && parseInt(e[2], 10)
- }
- }]), e
- }(), HSLO.init()
- }]);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement