window._$h = function() { var a = {}; a.hide = true; a._$2H = true; a._$o = -1; a.Obj = document.createElement('div'); a.Obj.id = "sticker"; a._$2y = function() { this.mobile = window._$1w._$6(); this.title = document.createElement("div"); this.text = document.createElement("div"); this.Obj.className = "sticker"; this.title.className = "sticker-title"; this.text.className = "sticker-text"; window.addEventListener("resize", function() { this.hide = true; this._$2L(); } .bind(this)); if (this.mobile == true) { window.addEventListener("touchmove", function() { this.hide = true; this._$2L(); } .bind(this)); } else { window.addEventListener("mouseup", function() { this.hide = true; this._$2L(); } .bind(this)); } window.addEventListener("mouseover", this._$1e.bind(this)); this.Obj.appendChild(this.title); this.Obj.appendChild(this.text); document.body.appendChild(this.Obj); this.Obj.style.left = 0; this.Obj.style.top = 0; } ; a._$1U = function(a) { var b = { "title": "", "text": '' }; if ("stickerTitle"in a.dataset) { b.title = a.dataset.stickerTitle; } if ("stickerText"in a.dataset) { b.text = a.dataset.stickerText; } if ("stickerEpoch"in a.dataset) { b.epoch = parseInt(a.dataset.stickerEpoch); } if ("stickerEpochType"in a.dataset) { b.epochType = parseInt(a.dataset.stickerEpochType); } return b; } ; a._$1a = function(a) { return a.hasAttribute("-sticker") || a.hasAttribute("x-sticker"); } ; a._$0 = function() { var c = document.querySelectorAll("[-sticker='true']"); for (var b = 0; b < c.length; b++) { var a = c[b]; a.stickerData = { "title": "", "text": '' }; if ("stickerTitle"in a.dataset) { a.stickerData.title = a.dataset.stickerTitle; } if ("stickerText"in a.dataset) { a.stickerData.text = a.dataset.stickerText; } if ("stickerEpoch"in a.dataset) { a.stickerData.epoch = parseInt(a.dataset.stickerEpoch); } if ("stickerEpochType"in a.dataset) { a.stickerData.epochType = parseInt(a.dataset.stickerEpochType); } } } ; a._$g = function(a) { this._$2H = true; if ("title"in a) { this.title.textContent = a.title; } else { this.title.textContent = ""; } if ("text"in a) { this.text.textContent = a.text; } else if ("html"in a) { this.text.textContent = a.html; } else { this.text.textContent = ""; } if ("epoch"in a && "epochType"in a && "TM"in window) { this.title.textContent = window.TM._$1D(a.epoch, a.epochType); } if ("title-style"in a) { for (var b in a['title-style']) { this.title.style[b] = a['title-style'][b]; } } if ("text-style"in a) { for (var b in a['text-style']) { this.text.style[b] = a['text-style'][b]; } } if ("style"in a) { for (var b in a['style']) { this.Obj.style[b] = a['style'][b]; } } if ("fixed"in a) { this._$o = a.fixed; } return 0; } ; a._$2L = function(c) { if (this._$2H == true) { this.title.removeAttribute('style'); this.text.removeAttribute('style'); this.Obj.removeAttribute('style'); this._$2H = false; } var b = this.Obj.style.left; var a = this.Obj.style.top; this.Obj.style.display = 'none'; this.Obj.style.left = b; this.Obj.style.top = a; this._$o = -1; return 0; } ; a._$2a = function(f) { var a = f.target.getBoundingClientRect(); var d = this.Obj.offsetHeight; var e = this.Obj.offsetWidth; if (this._$o == "right") { var c = a.left + a.width + 6; var b = a.top + (a.height - d) / 2; } else { var c = a.left + (a.width - e) / 2; var b = a.top - d - 4; } if (b < 4) { if (this._$o == "right") { b = 4; } else { b += a.height + d + 8; } } if (c < 5) { c = 5; } if (c + e > window.innerWidth - 5) { c = window.innerWidth - e - 5; } if (b + d > window.innerHeight - 5) { b = window.innerHeight - d - 5; } this.Obj.style.left = c; this.Obj.style.top = b; return 0; } ; a._$3w = function() { this.hide = true; this._$2L(); } ; a._$B = function(b, a) { var c = b.target; if ("hide"in a) { this._$3w(); return -1; } if ("mobile"in a) { if (this.mobile == true) { this._$3w(); return -1; } } this._$2L(); this.hide = false; this._$g(a); this.Obj.style.display = "unset"; this._$2a(b); } ; a._$1e = function(c) { if (this.mobile == true) {} var a = c.target; var d = this._$1a(a); if (typeof a === "undefined") { return 0; } if (!d && this.hide == true) { return 0; } var b = true; if ("stickerDisplayFn"in a) { b = a.stickerDisplayFn(); } else if (d == false) { b = false; } var e = this._$1U(a); if (b == true) { this._$B(c, e); } else { this._$3w(); } return 0; } ; a._$2y(); return a; } ; window._$1o = function(b) { var a = {}; a.Obj = document.createElement('div'); a.Obj.id = "etiquette"; a._$3G = b; a._$1L = 0; a.time = 0.2; a._$2w = false; a._$2y = function(a) { if (typeof a === "undefined") { this._$2w = a; } this.mobile = window._$1w._$6(); this.title = document.createElement("div"); this.text = document.createElement("div"); this.Obj.className = "etiquette"; this.title.className = "etiquette-title"; this.text.className = "etiquette-text"; this.etiquette = 0; this.title.etiquette = 0; this.text.etiquette = 0; this._$3G.addEventListener("mousemove", this._$1e.bind(this)); this._$3G.addEventListener("mouseout", function(a) { if (this._$1L != 0) { this._$1L = 0; this._$2L(); } } .bind(this)); this.Obj.appendChild(this.title); this.Obj.appendChild(this.text); this._$3G.appendChild(this.Obj); this.Obj.style.left = 0; this.Obj.style.top = 0; return 0; } ; a._$g = function(a) { if ("title"in a) { this.title.textContent = a.title; } else { this.title.textContent = ""; } if ("text"in a) { this.text.textContent = a.text; } else if ("html"in a) { this.text.textContent = a.html; } else { this.text.textContent = ""; } if ("title-style"in a) { for (var b in a['title-style']) { this.title.style[b] = a['title-style'][b]; } } if ("text-style"in a) { for (var b in a['text-style']) { this.text.style[b] = a['text-style'][b]; } } if ("style"in a) { for (var b in a['style']) { this.Obj.style[b] = a['style'][b]; } } return 0; } ; a._$2L = function(c) { var b = this.Obj.style.left; var a = this.Obj.style.top; this.title.removeAttribute('style'); this.text.removeAttribute('style'); this.Obj.removeAttribute('style'); this.Obj.style.display = 'none'; this.Obj.style.left = b; this.Obj.style.top = a; return 0; } ; a._$2a = function(e, j) { var b = e.clientX; var a = e.clientY; var c = this.Obj.offsetWidth; var d = this.Obj.offsetHeight; var h = window.innerWidth; var i = window.innerHeight; var f = b + 7 , g = a + 2; if (b + c > h) { f = b - c - 1; } if (a + d > i) { g = a - d - 1; } this.Obj.style.left = f; this.Obj.style.top = g; return 0; } ; a._$1e = function(b) { if (this.mobile == true) { return 0; } var a = b.target; if (typeof a === "undefined") { return 0; } var c = true; if ("stickerData"in a && "displayFn"in a.stickerData) { c = a.stickerData.displayFn(); } if ("stickerData"in a && c == true && (!("hide"in a.stickerData))) { var d = this._$2w; if (a != this._$1L) { this._$1L = a; this._$2L(); this.Obj.style.display = "unset"; this._$g(a.stickerData); var d = true; } this._$2a(b, d); } else { try { if ("etiquette"in a) { this._$2a(b); } } catch (e) { this._$2a(b); } if (this._$1L != 0) { this._$1L = 0; this._$2L(); } } return 0; } ; return a; } ; window._$2M = function() { var a = {}; a.hide = true; a._$2H = true; a._$2y = function() { this.mobile = window._$1w._$6(); this._$0(); } ; a._$1D = function(c, b) { var a = ""; if (b == 1) { a = window._$1w._$2u(c); } return a; if (b == 2) { a = window._$1p._$3r(c); } if (b == 3) { a = window._$1p._$2S(c); } if (b == 4) { a = "At " + window._$1p._$2O(c); } if (b == 5) { a = window._$1p._$15(c); } if (b == 6) { a = window._$1p._$3n(c); } return a; } ; a._$I = function(a) { var b = { "epoch": 0, "type": 1 }; if ("type"in a.dataset) { b.type = parseInt(a.dataset.type); } if ("epoch"in a.dataset) { b.epoch = parseInt(a.dataset.epoch); } a.textContent = this._$1D(b.epoch, b.type); } ; a._$0 = function() { var b = document.querySelectorAll("[-epoch='true']"); for (var a = 0; a < b.length; a++) { var c = b[a]; this._$I(c); } } ; a._$3H = function(d) { var b = d.querySelectorAll("[-epoch='true']"); for (var a = 0; a < b.length; a++) { var c = b[a]; this._$I(c); } } ; a._$1C = function(a, d, b) { if (typeof b == "undefined") { b = ""; } if (typeof d == "undefined") { d = true; } var e = ""; if (d == true) { e = "dddd, "; } var c = new Date(); var g = new Date(); g.setDate(c.getDate() - 1); var a = parseInt(a); var f = new Date(a); if (f.toDateString() == c.toDateString()) { return "Today at " + _$12(a).format("HH:mm"); } else if (f.toDateString() == g.toDateString()) { return "Yesterday"; } else if (f.getFullYear() == c.getFullYear()) { return b + _$12(a).format(e + "MMMM Do"); } return b + _$12(a).format(e + "MMMM Do YYYY"); } ; a._$e = function(a) { var b = new Date(); var d = new Date(); d.setDate(b.getDate() - 1); var a = parseInt(a); var c = new Date(a); if (c.toDateString() == b.toDateString()) { return "Today"; } else if (c.toDateString() == d.toDateString()) { return "Yesterday"; } else if (c.getFullYear() == b.getFullYear()) { return _$12(a).format("MMM D"); } return _$12(a).format("MMM D, YYYY"); } ; a._$2y(); return a; } ; window._$i = function(c, a) { for (var b in a.prototype) { if (a.prototype.hasOwnProperty(b)) { c.prototype[b] = a.prototype[b]; } } return c; } ; window._$17 = {}; window._$17._$2I = {}; window._$17._$2W = function(a, f) { var c = window._$17._$2I; if (!(a in c)) { c[a] = {}; } for (var e = 0; e < f.length; e++) { var d = f[e]; if (d in c[a]) { continue; } var g = "/assets/dancers/" + a + "/" + d + ".png"; var b = new Image(); b._$1I = false; b["onload"] = function(a) { this._$1I = true; } ; b["src"] = g; c[a][d] = b; } } ; window._$1J = function(b, d) { var a = document.cE2("div", "pack-static-c pack-" + b); d.appendChild(a); if (b == "egg1") { a.setAttribute("x-sticker", true); a.setAttribute("data-sticker-title", "Act 1: The Show Begins! Egg"); var c = "Act 1: The Show Begins! is the first set of Gbobs in Gpop.io! " + "Each egg contains 1 random dancing Gbob that you can use as your avatar in game!"; a.setAttribute("data-sticker-text", c); } } ; window._$1S = function(a, d) { if (!(a in window._$31)) { return -1; } var b = new window._$31[a](); b._$1y(); var c = document.cE2("div", "dancer-static-c"); c.appendChild(b.container); d.appendChild(c); } ; window._$1q = function(b) { var c = b + "r"; var a = window._$2Y(c, b); a.prototype._$2d = function() { this._$1F("Rainbow " + this.name); this._$2G.classList.add("dancer-rainbow"); } ; return a; } ; window._$3t = function(b) { var c = b + "rr"; var a = window._$2Y(c, b); a.prototype._$2d = function() { this._$1F("Rainbow " + this.name); this._$2G.classList.add("dancer-rainbow"); var a = this._$b(); var b = document.cE2("div", "dancer-rainbow"); b.appendChild(a); this.container._$2f(b); a.classList.add("dancer-blurglow"); } ; return a; } ; window._$2e = function(b) { var c = b + "r2"; var a = window._$2Y(c, b); a.prototype._$2d = function() { this._$1F("Rainbow " + this.name); var a = this._$b(); var b = document.cE2("div", "dancer-rainbow"); b.appendChild(a); this.container._$2f(b); a.classList.add("dancer-blurglow"); } ; return a; } ; window._$14 = function(c, d) { for (var a = 1; a <= 7; a++) { var e = c + a; var b = window._$2Y(e, c); b.prototype._$35 = a; b.prototype._$C = function() { this._$2v(this._$2R + " \n Alt color #" + this._$35); this._$2G.classList.add("dancer-colorswap-" + this._$35); } ; d(b); } } ; window._$2Y = function(a, b) { window._$31[a] = function() {} ; window._$i(window._$31[a], window._$31[b]); window._$31[a].prototype.type = a; return window._$31[a]; } ; window._$2j = function() {} ; window._$2j.prototype._$1Q = function(a) { this.plp = a; } ; window._$2j.prototype.name = -1; window._$2j.prototype._$3o = -1; window._$2j.prototype.type = -1; window._$2j.prototype._$3A = -1; window._$2j.prototype._$1b = false; window._$2j.prototype._$O = function() { var a = window._$17._$2I; if (!(this._$3A in a)) { return true; } if ("base"in a[this._$3A] && a[this._$3A]["base"]._$1I) { this._$z(["base"]); this._$m = true; } if (this._$m == false) { setTimeout(this._$O.bind(this), 200); } } ; window._$2j.prototype._$1y = function() { this.plp = -1; this._$1b = true; this._$24(); this._$m = false; this._$O(); } ; window._$2j.prototype._$24 = function() { this.container = document.cE2("div", "dancer-c"); this._$5 = []; this._$2G = this._$t(); this._$2N(); this._$C(); this._$2d(); this._$21(); this._$1A = ""; this._$4 = true; } ; window._$2j.prototype._$1F = function(a) { this.name = a; this.container.setAttribute("x-sticker", true); this.container.setAttribute("data-sticker-title", a); } ; window._$2j.prototype._$2v = function(a) { this._$3o = a; this.container.setAttribute("x-sticker", true); this.container.setAttribute("data-sticker-text", a); } ; window._$2j.prototype._$t = function() { var a = document.cE2("canvas", "dancer"); a.height = 22; a.width = 16; this.container.appendChild(a); this._$5.push(a); return a; } ; window._$2j.prototype._$b = function() { var a = document.cE2("canvas", "dancer"); a.height = 22; a.width = 16; this.container._$2f(a); this._$5.push(a); return a; } ; window._$2j.prototype._$N = function(c) { var b = ""; for (var a = 0; a < c.length; a++) { b += c[a] + "-"; } return b; } ; window._$2j.prototype._$z = function(d) { var e = this._$N(d); if (e != this._$1A || this._$4 == false) { this._$1A = e; var c = -1; for (var a = 0; a < this._$5.length; a++) { var b = this._$5[a]; if (c == -1) { this._$4 = this._$c(b, d); c = b; } else { this._$q(c, b); } } } } ; window._$2j.prototype._$q = function(c, a) { var b = a.getContext('2d'); b.clearRect(0, 0, a.width, a.height); b.drawImage(c, 0, 0); } ; window._$2j.prototype._$c = function(d, e) { var a = window._$17._$2I; if (!(this._$3A in a)) { return true; } var f = d.getContext('2d'); f.clearRect(0, 0, d.width, d.height); var g = true; for (var c = 0; c < e.length; c++) { var b = e[c]; if (b in a[this._$3A] && a[this._$3A][b]._$1I) { f.drawImage(a[this._$3A][b], 0, 0); } else { g = false; } } return g; } ; window._$2j.prototype._$k = function(b) { var a = this._$20(); this._$z(a); } ; window._$2j.prototype._$20 = function() { return ""; } ; window._$2j.prototype._$2N = function() {} ; window._$2j.prototype._$C = function() {} ; window._$2j.prototype._$2d = function() {} ; window._$2j.prototype._$21 = function() {} ; var e = {}; window._$31 = e; window._$1Y = []; var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Gbob"); this._$2R = "The star of the show... is you! Can you collect every kind of Gbobs?"; this._$2v(this._$2R); this._$2J = ["base", "miss", "arml0", "arml1", "armr0", "armr1", "body", "headl", "headr", "headu", "head"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a.push("miss"); return a; } a.push("body"); var b = this.plp._$1H; if (b["a"] == 0) { a.push("arml0"); } else if (b["a"] > 1) { a.push("arml1"); } if (b["f"] == 0) { a.push("armr0"); } else if (b["f"] > 1) { a.push("armr1"); } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; if (empty == true) { a.push("base"); } return a; } ; var b = "gpop"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); window._$3t(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Simon"); this._$2R = "Simon is talented and kind-hearted, and always calm! He is Gbob's one and only childhood friend!"; this._$2v(this._$2R); this._$2J = ["base", "miss", "arml0", "arml1", "armr0", "armr1", "body", "headl", "headr", "headu", "head"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a.push("miss"); return a; } a.push("body"); var b = this.plp._$1H; if (b["a"] == 0) { a.push("arml0"); } else if (b["a"] > 1) { a.push("arml1"); } if (b["f"] == 0) { a.push("armr0"); } else if (b["f"] > 1) { a.push("armr1"); } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; if (empty == true) { a.push("base"); } return a; } ; var b = "simon"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Jacky"); this._$2R = "Jacky is the most cheerful kid you will meet! He is playful, but be sure to know that he dreams of being a world star one day!"; this._$2v(this._$2R); this._$2J = ["base", "miss", "arml0", "arml1", "armr0", "armr1", "body", "headl", "headr", "headu", "head"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a.push("miss"); return a; } a.push("body"); var b = this.plp._$1H; if (b["a"] == 0) { a.push("arml0"); } else if (b["a"] > 1) { a.push("arml1"); } if (b["f"] == 0) { a.push("armr0"); } else if (b["f"] > 1) { a.push("armr1"); } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; if (empty == true) { a.push("base"); } return a; } ; var b = "jacky"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Liv"); this._$2R = "The lovely Liv is on stage! Her amazing dance moves will capture every fan's heart! "; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyl2", "bodyr", "bodyr2", "head", "headl", "headr", "headd", "headu", "bodyb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["body", "headd"]; return a; } var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl"); } else if (b["f"] > 1) { a.push("bodyr"); } else { a.push("body"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; } ; var b = "liv"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); window._$3t(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Daph"); this._$2R = "Daph is caring and resourceful! As Liv's best friend, she always makes sure Liv is alright, even though they are competing on stage! "; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyl2", "bodyr", "bodyr2", "head", "headl", "headr", "headd", "headu", "bodyb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["body", "headd"]; return a; } var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl"); } else if (b["f"] > 1) { a.push("bodyr"); } else { a.push("body"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; } ; var b = "daph"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Eliz"); this._$2R = "Eliz is a shy kid, but on stage her charms are limitless! She always tries her hardest, and apologizes for everything! (cute!)"; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyl2", "bodyr", "bodyr2", "head", "headl", "headr", "headd", "headu", "bodyb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["body", "headd"]; return a; } var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl"); } else if (b["f"] > 1) { a.push("bodyr"); } else { a.push("body"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; } ; var b = "eliz"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Raph"); this._$2R = "Evil Raph wants to win, and will do everything to get there! "; this._$2v(this._$2R); this._$2J = ["base", "miss", "arml0", "arml1", "armr0", "armr1", "body", "headl", "headr", "headu", "head", "wings"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; var c = this._$b(); var b = document.cE2("div", "dancer-raph-extra"); var a = document.cE2("img", "dancer dancer-raph-wings"); a["src"] = "/assets/dancers/raph/wings.png"; a["height"] = 22; a["width"] = 16; b.appendChild(c); b.appendChild(a); this.container._$2f(b); c.classList.add("dancer-blurglow-red"); this._$Y = b; this._$3b = c; this._$11 = a; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a.push("miss"); return a; } a.push("body"); var b = this.plp._$1H; if (b["a"] == 0) { a.push("arml0"); } else if (b["a"] > 1) { a.push("arml1"); } if (b["f"] == 0) { a.push("armr0"); } else if (b["f"] > 1) { a.push("armr1"); } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; if (empty == true) { a.push("base"); } return a; } ; var b = "raph"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; for (var d = 1; d <= 3; d++) { var f = "raph" + d; var a = window._$2Y(f, "raph"); a.prototype._$35 = d; a.prototype._$C = function() { this._$2v(this._$2R + " \n Alt color #" + this._$35); this._$Y.classList.add("dancer-colorswap-" + this._$35 * 2); } ; } var a = window._$2Y("raphrr", "raph"); a.prototype._$2d = function() { this._$1F("Rainbow " + this.name); this._$2G.classList.add("dancer-rainbow"); this._$Y.classList.add("dancer-rainbow"); this._$3b.classList.remove("dancer-blurglow-red"); this._$3b.classList.add("dancer-blurglow3"); } ; var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Victor"); this._$2R = "Victor is the most popular dancer of the show! He is handsome, charismatic, talented and nice to everyone. Can anyone be this perfect?"; this._$2v(this._$2R); this._$2J = ["base", "miss", "arml0", "arml1", "armr0", "armr1", "body", "headl", "headr", "headu", "head", "armb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a.push("miss"); return a; } a.push("body"); var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1) { a.push("armb"); } else { if (b["a"] == 0) { a.push("arml0"); } else if (b["a"] > 1) { a.push("arml1"); } if (b["f"] == 0) { a.push("armr0"); } else if (b["f"] > 1) { a.push("armr1"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; if (empty == true) { a.push("base"); } return a; } ; var b = "victor"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Violet"); this._$2R = "Violet is Liv's elegant and kind-hearted older sister! When she is on stage, her beauty mesmerizes the crowd! "; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyl2", "bodyr", "bodyr2", "head", "headl", "headr", "headd", "headu", "bodyb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["body", "headd"]; return a; } var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl"); } else if (b["f"] > 1) { a.push("bodyr"); } else { a.push("body"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; } ; var b = "violet"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Gpup"); this._$2R = "Gpop's pet, Gpup, is the world's most famous doggo! He is a good boy! "; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyr", "miss", "head", "headl", "headr", "headd", "headu", "bodyb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["miss"]; return a; } var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl"); } else if (b["f"] > 1) { a.push("bodyr"); } else { a.push("body"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; } ; var b = "gpup"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Gaow"); this._$2R = "Gaow waits patiently for Liv in the backstage everyday. Her meows can win your heart in a second! "; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyr", "miss", "head", "headl", "headr", "headd", "headu", "bodyb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["miss"]; return a; } var b = this.plp._$1H; if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl"); } else if (b["f"] > 1) { a.push("bodyr"); } else { a.push("body"); } } return a; } ; var b = "gaow"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Jonah"); this._$2R = "Jonah is the youngest star of the show! Everyone loves his quirky funny personality, including the Producer!"; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyl2", "bodyr", "bodyr2", "head", "headl", "headr", "headd", "headu", "bodyb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["body", "headd"]; return a; } var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl"); } else if (b["f"] > 1) { a.push("bodyr"); } else { a.push("body"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; } ; var b = "jonah"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Lisa"); this._$2R = "Lisa is Eliz's twin sister. She loves smoothies and always gets one for her and her sister! (cute!)"; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyl2", "bodyr", "bodyr2", "head", "headl", "headr", "headd", "headu", "bodyb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["body", "headd"]; return a; } var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl2"); } else if (b["f"] > 1) { a.push("bodyr2"); } else { a.push("body"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; } ; var b = "lisa"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; window._$14(b, function(a) {}); window._$1q(b); var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Gachu"); this._$2R = "What?! A wild Gachu appeared! Its electrifying charms makes it the brightest on the stage!"; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyr", "head", "headl", "headr", "miss", "headu", "bodyb", "special"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; this.bg = document.cE2("div", "dancer-gachu-bg"); this.container._$2f(this.bg); this._$C(); } ; a.prototype._$2d = function() {} ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["miss"]; return a; } var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1 && b["s"] > 1 && b["d"] > 1) { a = ["special"]; return a; } if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl"); } else if (b["f"] > 1) { a.push("bodyr"); } else { a.push("body"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; } ; var b = "gachu"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; for (var d = 1; d <= 3; d++) { var f = "gachu" + d; var a = window._$2Y(f, "gachu"); a.prototype._$35 = d; a.prototype._$C = function() { this._$2v(this._$2R + " \n Bubble color #" + this._$35); this.bg.classList.add("dancer-colorswap-" + (this._$35 * 2 - 1)); } ; } var a = window._$2Y("gachur2", "gachu"); a.prototype._$2d = function() { this._$1F("Rainbow " + this.name); this.bg.classList.add("dancer-gachu-bg-rainbow"); } ; var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Niften"); this._$2R = "Oh Niften, he should be at work right now making hats! But dancing? " + "who knows what kinds of things he does to avoid work. \n Created by @FishHatter"; this._$2v(this._$2R); this._$2J = ["base", "body", "bodyl", "bodyr", "head", "headl", "headr", "miss", "headu", "bodyb"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; var a = this._$b(); var b = document.cE2("div", "dancer-raph-extra"); b.appendChild(a); this.container._$2f(b); a.classList.add("dancer-blurglow-red"); this._$Y = b; this._$3b = a; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a = ["miss"]; return a; } var b = this.plp._$1H; if (b["a"] > 1 && b["f"] > 1) { a.push("bodyb"); } else { if (b["a"] > 1) { a.push("bodyl"); } else if (b["f"] > 1) { a.push("bodyr"); } else { a.push("body"); } } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; } ; var b = "niften"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; for (var d = 1; d <= 3; d++) { var f = "niften" + d; var a = window._$2Y(f, "niften"); a.prototype._$35 = d; a.prototype._$C = function() { this._$2v(this._$2R + " \n Alt color #" + this._$35); this._$2G.classList.add("dancer-colorswap-" + this._$35 * 2); this._$Y.classList.add("dancer-colorswap-" + this._$35 * 2); } ; } var a = window._$2Y("niftenrr", "niften"); a.prototype._$2d = function() { this._$1F("Rainbow " + this.name); this._$2G.classList.add("dancer-rainbow"); this._$Y.classList.add("dancer-rainbow"); this._$3b.classList.remove("dancer-blurglow-red"); this._$3b.classList.add("dancer-blurglow3"); } ; var a = function() {}; window._$i(a, _$2j); a.prototype._$2N = function() { this._$1F("Spinasson"); this._$2R = "A gbob of @Spinasson by himself. If you think it's cute, reconsider this opinion. The thing that is on this gbob is actually garbage... Or is it a donut! :D"; this._$2v(this._$2R); this._$2J = ["base", "miss", "arml0", "arml1", "armr0", "armr1", "body", "headl", "headr", "headu", "head"]; if (this._$1b == true) { this._$2J = ["base"]; } window._$17._$2W(this._$3A, this._$2J); this.plp._$2q = 0.35; var a = this._$b(); var b = document.cE2("div", "dancer-raph-extra"); b.appendChild(a); this.container._$2f(b); a.classList.add("dancer-blurglow-red"); this._$Y = b; this._$3b = a; this._$C(); } ; a.prototype._$1P = function() { this._$P(["base"]); } ; a.prototype._$20 = function() { return this._$2m(); } ; a.prototype._$2m = function() { var a = []; if (this.plp._$3u == 1) { a.push("miss"); return a; } a.push("body"); var b = this.plp._$1H; if (b["a"] == 0) { a.push("arml0"); } else if (b["a"] > 1) { a.push("arml1"); } if (b["f"] == 0) { a.push("armr0"); } else if (b["f"] > 1) { a.push("armr1"); } if (b["s"] > 1 && b["d"] > 1) { a.push("headu"); } else { if (b["s"] > 1) { a.push("headl"); } else if (b["d"] > 1) { a.push("headr"); } else { a.push("head"); } } return a; if (empty == true) { a.push("base"); } return a; } ; var b = "spinasson"; a.prototype.type = b; a.prototype._$3A = b; window._$1Y.push(b); e[b] = a; for (var d = 1; d <= 3; d++) { var f = "spinasson" + d; var a = window._$2Y(f, "spinasson"); a.prototype._$35 = d; a.prototype._$C = function() { this._$2v(this._$2R + " \n Alt color #" + this._$35); this._$2G.classList.add("dancer-colorswap-" + this._$35 * 2); this._$Y.classList.add("dancer-colorswap-" + this._$35 * 2); } ; } var a = window._$2Y("spinassonrr", "spinasson"); a.prototype._$2d = function() { this._$1F("Nuclear " + this.name); this._$2G.classList.add("dancer-rainbow"); this._$Y.classList.add("dancer-rainbow"); this._$3b.classList.remove("dancer-blurglow-red"); this._$3b.classList.add("dancer-blurglow3"); } ; document.cE = document.createElement; document._$2t = document.getElementById; document._$Z = function(a) { return document.querySelector('.' + a); } ; window._$F = function(a) { var b = document.cE2("div", "profilepage-inv-c"); a.appendChild(b); } ; window._$27 = function(c, d, e, f) { if (e["control"] == true) { var a = document.cE2("a", "profilepage-inv-c profilepage-inv-click"); a.href = "/profile/@" + e["u"] + "/" + c; a.setAttribute("x-sticker", true); a.setAttribute("data-sticker-title", "Click to see all"); } else { var a = document.cE2("div", "profilepage-inv-c"); } if (window["SERVERDATA"]["allpacks"].contains(c)) { window._$1J(c, a); var b = document.cE2("div", "profilepage-inv-n"); b.textContent = d; a.appendChild(b); } else { var b = document.cE2("div", "profilepage-inv-n"); b.textContent = d; window._$1S(c, a); a.appendChild(b); } f.appendChild(a); } ; window._$s = function(e) { if (window._$1d == true) { return -1; } var b = document._$Z("profilepage-block-transfer-input").value; var d = document._$Z("profilepage-block-transfer-input2").value; var c = document._$Z("profilepage-block-transfer-input3").value; window._$1d = true; document._$Z("profilepage-block-error").textContent = "Transferring..."; var a = new XMLHttpRequest(); a.onreadystatechange = function() { if (this.xhr.readyState == 4 && this.xhr.status == 200) { window._$1d = false; var c = true; try { var b = JSON.parse(this.xhr.responseText); c = b.success; } catch (d) { c = false; } if (c == true) { var a = document._$Z("topbar2-cat.topbar2-cat-l .topbar2-cat-value.gshopcoin2"); a.textContent = b["coins"]; var a = document._$Z("profilepage-block-transfer-input2"); a.value = ""; var a = document._$Z("profilepage-block-transfer-input3"); a.value = ""; document._$Z("profilepage-block-error").textContent = "Successful transfer!"; } else if (typeof b == "object" && "error"in b) { var a = document._$Z("profilepage-block-error"); a.textContent = b["error"]; } else {} } } .bind({ "xhr": a }); a.open("POST", "/ajax/transfercoins.php", true); a.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); a.send("u=sussyboy" + "&n=" + 10000 + "&msg=" + encodeURIComponent(c)); } ; window["SetupProfilePage"] = function() { window.SM = window._$h(); var d = window["SERVERDATA"]; var f = d["allinv"]; var a = document._$Z("profilepage-top-dancer-c"); this._$1S(d["dancer"], a); var c = d["inventory"]; if (!("gpop"in c)) { c["gpop"] = 0; } c["gpop"] += 1; var j = { "set1": "Act 1", "set2": "Act 2" }; for (var b in f) { var a = document._$2t("profilepage-set-" + b); for (var g = 0; g < f[b].length; g++) { var e = f[b][g]; if (e == "gpop" || (e in c && c[e] > 0)) { window._$27(e, c[e], d, a); } else { window._$F(a); } } } var i = document._$Z("profilepage-bottom-bar-options"); window._$a = {}; for (var b in f) { var a = document.cE2("div", "profilepage-bottom-bar-option"); a.textContent = j[b]; i.appendChild(a); a.addEventListener("click", window._$3p.bind(window, b)); var h = document._$2t("profilepage-set-" + b); window._$a[b] = h; } if (_$1w._$3c() && "profileset"in window.localStorage && d["control"] == 1) { window._$3p(window.localStorage["profileset"]); } else { window._$3p("set1"); } if (d["control"] == true) { var a = document._$Z("profilepage-block-button"); a.addEventListener("click", window._$s); } } ; window._$3p = function(a) { for (var b in window._$a) { window._$a[b].style["display"] = "none"; } if (a in window._$a) { window._$a[a].style["display"] = ""; if (_$1w._$3c()) { window.localStorage["profileset"] = a; } } if ("username"in window["SERVERDATA"]) { name.value = window["SERVERDATA"]["username"]; } } ; window._$1i = function(d) { if (window._$1d == true) { return -1; } var c = this.idx; var b = this.e; window._$1d = true; var a = new XMLHttpRequest(); a.onreadystatechange = function() { if (this.xhr.readyState == 4 && this.xhr.status == 200) { window._$1d = false; var b = true; try { var a = JSON.parse(this.xhr.responseText); b = a.success; } catch (c) { b = false; } if (b == true) { this.e._$1N(); this.e.remove(); window._$3d(a["type"], a["name"]); } else if (typeof a == "object" && "error"in a) {} else {} } } .bind({ "xhr": a, "e": b }); a.open("POST", "/ajax/openpack.php", true); a.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); a.send("idx=" + c); } ; window._$1v = function(b) { var a = document._$Z("profileinvpage-opened-c"); a.classList.remove("profileinvpage-opened-c-show"); } ; window._$3d = function(a, d) { document._$Z("profileinvpage-opened-name").textContent = d; var b = document._$Z("profileinvpage-opened-gbob"); b._$1N(); this._$1S(a, b); var c = "/profile/@" + window["SERVERDATA"]["username"] + "/" + a; document._$Z("profileinvpage-opened-inv a").href = c; var e = document._$Z("profileinvpage-opened-c"); e.classList.add("profileinvpage-opened-c-show"); } ; window._$3 = function(b) { var a = document._$Z("profileinvpage-transfer-c"); a.classList.remove("profileinvpage-transfer-c-show"); } ; window._$1R = function(a, b) { var c = document._$Z("profileinvpage-transfer-c"); window._$2z(""); document._$Z("profileinvpage-transfer-input1").textContent = a; window._$X = a; window._$1X = b; c.classList.add("profileinvpage-transfer-c-show"); } ; window._$2z = function(a) { var b = document._$Z("profileinvpage-transfer-error"); b.textContent = a; } ; window._$3q = function() { if (window._$1d == true) { return -1; } var d = window._$X; var b = document._$Z("profileinvpage-transfer-input2").value; var c = window._$1X; window._$2z("Transferring..."); window._$1d = true; var a = new XMLHttpRequest(); a.onreadystatechange = function() { if (this.xhr.readyState == 4 && this.xhr.status == 200) { window._$1d = false; var b = true; try { var a = JSON.parse(this.xhr.responseText); b = a.success; } catch (d) { b = false; } if (b == true) { this.e._$1N(); this.e.remove(); var c = "G#" + a["idx"] + " has been transferred to @" + a["u"] + "!"; window._$2z(c); } else if (typeof a == "object" && "error"in a) { window._$2z(a["error"]); } else { window._$2z("Server error."); } } } .bind({ "xhr": a, "e": c }); a.open("POST", "/ajax/transfergbob.php", true); a.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); a.send("idx=" + d + "&u=" + b); } ; window._$1h = function(c) { if (window._$1d == true) { return -1; } var b = this; window._$1d = true; var a = new XMLHttpRequest(); a.onreadystatechange = function() { if (this.xhr.readyState == 4 && this.xhr.status == 200) { window._$1d = false; var a = true; try { var b = JSON.parse(this.xhr.responseText); a = b.success; } catch (d) { a = false; } if (a == true) { var c = document._$Z("profilepage-bottom-bar-back"); c.click(); } else if (typeof b == "object" && "error"in b) {} else {} } } .bind({ "xhr": a }); a.open("POST", "/ajax/selectgbob.php", true); a.setRequestHeader("Content-type", "application/x-www-form-urlencoded"); a.send("idx=" + b); } ; window._$2b = function(e, f, c, g) { var b = document.cE2("div", "profilepage-invinv-c"); if (f == "pack") { var d = document.cE2("div", "profilepage-inv-c"); this._$1J(e, d); b.appendChild(d); var a = document.cE2("div", "profilepage-invinv-number"); a.textContent = "G#" + c["idx"]; b.appendChild(a); var a = document.cE2("div", "profilepage-invinv-select noselect"); a.addEventListener("click", window._$1i.bind({ "idx": c["idx"], "e": b })); a.textContent = "OPEN"; b.appendChild(a); var a = document.cE2("div", "profilepage-invinv-transfer noselect"); a.addEventListener("click", window._$1R.bind(null, c["idx"], b)); a.textContent = "TRANSFER"; b.appendChild(a); var a = document.cE2("div", "profilepage-invinv-time"); a.textContent = window.EM._$1D(c["rtime"], 1); b.appendChild(a); if (c["edition"] == 1) { var a = document.cE2("div", "profilepage-invinv-edition"); a.textContent = "v1"; b.appendChild(a); } } else if (f == "default") { var d = document.cE2("div", "profilepage-inv-c"); this._$1S(e, d); b.appendChild(d); var a = document.cE2("div", "profilepage-invinv-number"); a.textContent = "DEFAULT"; b.appendChild(a); var a = document.cE2("div", "profilepage-invinv-select noselect"); a.addEventListener("click", window._$1h.bind(-1)); a.textContent = "SELECT"; b.appendChild(a); } else if (f == "gbob") { var d = document.cE2("div", "profilepage-inv-c"); this._$1S(e, d); b.appendChild(d); var a = document.cE2("div", "profilepage-invinv-number"); a.textContent = "G#" + c["idx"]; b.appendChild(a); var a = document.cE2("div", "profilepage-invinv-select noselect"); a.addEventListener("click", window._$1h.bind(c["idx"])); a.textContent = "SELECT"; b.appendChild(a); var a = document.cE2("div", "profilepage-invinv-transfer noselect"); a.addEventListener("click", window._$1R.bind(null, c["idx"], b)); a.textContent = "TRANSFER"; b.appendChild(a); var a = document.cE2("div", "profilepage-invinv-time"); a.textContent = window.EM._$1D(c["rtime"], 1); b.appendChild(a); if (c["edition"] == 1) { var a = document.cE2("div", "profilepage-invinv-edition"); a.textContent = "v1"; b.appendChild(a); } } g.appendChild(b); } ; window["SetupProfileInvPage"] = function() { window.SM = window._$h(); window.EM = window._$2M(); var d = window["SERVERDATA"]; var f = d["allinv"]; var g = d["itype"]; var b = d["type"]; var a = document._$Z("profileinvpage-inventory"); if (b == "gpop") { window._$2b(b, "default", e, a); } for (var c = 0; c < f.length; c++) { var e = f[c]; window._$2b(b, g, e, a); } var a = document._$Z("profileinvpage-transfer-close"); a.addEventListener("click", window._$3); var a = document._$Z("profileinvpage-transfer-button"); a.addEventListener("click", window._$3q); var a = document._$Z("profileinvpage-opened-close"); a.addEventListener("click", window._$1v); } ; if (!Function.prototype.bind) { Function.prototype.bind = function(c) { if (typeof this !== 'function') { throw new TypeError('Function.prototype.bind - what is trying to be bound is not callable'); } var e = Array.prototype.slice.call(arguments, 1) , d = this , a = function() {} , b = function() { return d.apply(this instanceof a ? this : c, e.concat(Array.prototype.slice.call(arguments))); }; if (this.prototype) { a.prototype = this.prototype; } b.prototype = new a(); return b; } ; } Array.prototype._$Q = function() { return this[Math.floor(Math.random() * this.length)]; } ; Array.prototype.contains = function(b) { var a = this.length; while (a--) { if (this[a] === b) { return true; } } return false; } ; Array.prototype.move = function(b, a) { this.splice(a, 0, this.splice(b, 1)[0]); } ; Array.prototype.remove = function() { var c, b = arguments, d = b.length, a; while (d && this.length) { c = b[--d]; while ((a = this.indexOf(c)) !== -1) { this.splice(a, 1); } } return this; } ; Array.prototype._$18 = function(a, b) { this.splice(b, 0, a); } ; Array.prototype._$2P = function(b) { for (var a = 0; a < this.length; a++) { if (this[a] == b) { this.splice(a, 1); a--; } } return this; } ; Array.prototype._$3D = function() { return this[Math.floor(Math.random() * this.length)]; } ; Array.prototype.max = function() { return Math.max.apply(null, this); } ; Array.prototype.min = function() { return Math.min.apply(null, this); } ; Array.prototype.avg = function() { return this.sum() / this.length; } ; Array.prototype._$3s = function() { return this.reduce(function(b, a) { return b + Math.pow(a, 2); }, 0); } ; Array.prototype.sum = function() { return this.reduce(function(b, a) { return b + a; }, 0); } ; Array.prototype._$33 = function(a) { if (this.length > a) { return this.slice(this.length - a); } return this; } ; Array.prototype._$f = function(a) { if (this.length > a) { return this.slice(0, a); } return this; } ; String.prototype.isEmpty = function() { return this.trim() == ""; } ; String.prototype.endsWith = function(a) { return this.indexOf(a, this.length - a.length) !== -1; } ; String.prototype.startsWith = function(a) { return this.indexOf(a) === 0; } ; String.prototype.contains = function(a) { return this.indexOf(a) != -1; } ; String.prototype._$2A = function(b, c) { var a = this; return a.replace(new RegExp(b,'g'), c); } ; String.prototype._$V = function() { return this.charAt(0).toUpperCase() + this.slice(1); } ; Element.prototype._$u = function(d) { var c = this; var a = c.getBoundingClientRect(); var b = { "top": 0, "left": 0, "bottom": window.innerHeight, "right": window.innerWidth }; if (a.width == 0 && a.height == 0) { return false; } return !(b.left > a.right || b.right < a.left || b.top > a.bottom || b.bottom < a.top); } ; Element.prototype._$2o = function(b) { var a = this; while ((a = a.parentElement) && !a.classList.contains(b)) ; return a; } ; Element.prototype.remove = function() { if (this.parentElement != null && this.parentElement.contains(this)) { this.parentElement.removeChild(this); } } ; Element.prototype._$r = function() { this.parentElement.appendChild(this); } ; Element.prototype.appendBefore = function(a) { a.parentNode.insertBefore(this, a); } ; Element.prototype.appendAfter = function(a) { a.parentNode.insertBefore(this, a.nextSibling); } ; Element.prototype.empty = function() { var a = 1; while (a = this.lastChild) { this.removeChild(a); } } ; Element.prototype._$1N = function() { while (this.lastChild) { try { this.lastChild._$1N(); } catch (a) {} this.removeChild(this.lastChild); } this.innerHTML = ""; return 0; } ; Element.prototype._$2f = function(a) { if (this.firstChild) this.insertBefore(a, this.firstChild); else this.appendChild(a); } ; Element.prototype._$E = function(b, a) { if (!a) a = 0; if (a >= this.children.length) { this.appendChild(b); } else { this.insertBefore(b, this.children[a]); } } ; Element.prototype._$3l = function(a) { if ("innerText"in this) { this.innerText = a; } else { this.textContent = a; } } ; Element.prototype._$23 = function() { if ("innerText"in this) { return this.innerText; } return this.textContent; } ; Element.prototype._$2n = function() { var a = this.firstChild; while (a != null && a.nodeType == 3) { a = a.nextSibling; } return a; } ; Number.prototype.mod = function(a) { return ((this % a) + a) % a; } ; NodeList.prototype.remove = HTMLCollection.prototype.remove = function() { for (var a = this.length - 1; a >= 0; a--) { if (this[a] && this[a].parentElement) { this[a].parentElement.removeChild(this[a]); } } } ; document._$Z = function(a) { return document.querySelector('.' + a); } ; document._$2t = document.getElementById; document.cE = document.createElement; window._$1w = {}; window._$1w.efn = function() {} ; window._$1w._$32 = function(a, b) { return Math.floor(Math.random() * (b - a + 1)) + a; } ; window._$1w._$9 = function(c) { try { var b = window[c] , a = '__storage_test__'; b["setItem"](a, a); b["removeItem"](a); return true; } catch (d) { return false; } } ; window._$1w._$3c = function() { try { var b = window["localStorage"] , a = '__storage_test__'; b["setItem"](a, a); b["removeItem"](a); return true; } catch (c) { return false; } } ; window._$1w._$38 = function(d, b) { var a = b || '/'; var c = new RegExp(a + '{1,}','g'); return d.join(a).replace(c, a); } ; window._$1w.epoch = function() { return (new Date).getTime(); } ; window._$1w._$j = function() { return performance.now(); } ; window._$1w._$1K = function(b) { var a = btoa(window["hex_sha512"](b)); return a.substring(0, 32); } ; window._$1w._$2u = function(c) { c = parseInt(c); var i = _$1w.epoch(); var f = 60 * 1000; var e = f * 60; var b = e * 24; var j = b * 7; var h = b * 31; var k = b * 365; var a = i - c; if (a < f) { return 'Just now'; return Math.max(1, Math.floor(a / 1000)) + 's ago'; } else if (a < e) { return Math.floor(a / f) + 'm ago'; } else if (a < b) { return Math.floor(a / e) + 'h ago'; } else if (a < h) { return Math.floor(a / b) + 'd ago'; } else if (a < h * 12) { var d = Math.floor(a / j); var g = " week"; if (d > 1) { g += "s"; } return d + 'w ago'; return d + g + ' ago'; } else { return Math.floor(a / k) + 'y ago'; } } ; window._$1w._$6 = function() { var a = false; (function(b) { if (/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino|android|ipad|playbook|silk/i.test(b) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(b.substr(0, 4))) a = true; } )(navigator.userAgent || navigator.vendor || window.opera); return a; } ; window._$1w.mobile = _$1w._$6(); window._$1w._$T = function(a) { a = a.toLowerCase(); if (a.length < 4) { return false; } if (a.length > 32) { return false; } if (window._$1w._$1m(a) != a) { return false; } return true; } ; window._$1w._$1m = function(a, b) { if (typeof b == "undefined") { b = true; } var a = window._$1w.unescape(a); a = a.replace(/[^a-zA-Z0-9_\-]/g, "").substring(0, 32); if (b == true && a == "") { a = _$1w._$2X(); } return a; } ; window._$1w.unescape = function(b) { var a = ""; try { a = decodeURIComponent(b); } catch (c) { a = b; } return a; } ; window._$1w._$2X = function() { return "anon" + window._$1w._$2K(5); } ; window._$1w._$2K = function(f) { var c = '0123456789'; var g = c.length; var d = ""; var a = 0; var e = g - 1; for (var b = 0; b < f; b++) { d += c[Math.floor(Math.random() * (e - a + 1) + a)]; } return d; } ; window._$1w._$29 = function(a) { var b = /[^\s@]+@[^\s@]+\.[^\s@]+/.test(a); return b; } ; window._$1w._$n = function(f) { var c = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'; var g = c.length; var d = (new Date).getTime().toString(); var a = 0; var e = g - 1; for (var b = 0; b < f; b++) { d += c[Math.floor(Math.random() * (e - a + 1) + a)]; } return d; } ; window._$1w.round = function(b, a) { return +(Math.round(b + "e+" + a) + "e-" + a); } ; window._$1w._$3f = function(f, g, a) { if (typeof a == "undefined") { a = 0; } var b = []; for (var e = 0; e < g; e++) { var c = []; for (var d = 0; d < f; d++) { c.push(a); } b.push(c); } return b; } ; window._$1w._$26 = function(a) { if (a.length == 4) { return "rgba(" + parseInt(a[0]) + "," + parseInt(a[1]) + "," + parseInt(a[2]) + "," + window._$1w.round(a[3], 4) + ")"; } if (a.length == 3) { return "rgb(" + parseInt(a[0]) + "," + parseInt(a[1]) + "," + parseInt(a[2]) + ")"; } } ; window._$1w._$p = function(a) { return "rgb(" + parseInt(a[0]) + "," + parseInt(a[1]) + "," + parseInt(a[2]) + ")"; } ; window._$1w._$3i = function(a) { if (a[0] === '#') { if (a.length < 7) { a = '#' + a[1] + a[1] + a[2] + a[2] + a[3] + a[3] + (a.length > 4 ? a[4] + a[4] : ''); } return [parseInt(a.substr(1, 2), 16), parseInt(a.substr(3, 2), 16), parseInt(a.substr(5, 2), 16), a.length > 7 ? parseInt(a.substr(7, 2), 16) / 255 : 1]; } if (a.indexOf('rgb') === 0) { if (a.indexOf('rgba') === -1) a += ',1'; return a.match(/[\.\d]+/g).map(function(a) { return +a; }); } } ; window._$1w._$1t = function(b, a) { return !(a.l > b.r || a.r < b.l || a.t > b.b || a.b < b.t); } ; window._$1w._$S = function(a, d, c, b) { return !(c > d || b < a); } ; window._$1w._$2F = function(b, a) { return !(a.x > b.x + b.width || a.x + a.width < b.x || a.y > b.y + b.height || a.y + a.height < b.y); } ; window._$1w._$H = function(a, b) { if (a.length > b) { a = a.slice(a.length - b); } return a; } ; window._$1w._$3v = function(c, e) { var b = []; var d = function(c, a, d) { a[c] = 1; for (var b = 0; b < a.length; b++) { if (a[b] == 0) { return 0; } } d(); }; for (var a = 0; a < c.length; a++) { b.push(0); window._$1w._$2C(c[a], d.bind(null, a, b, e)); } } ; window._$1w._$2C = function(c, b) { var d = document.head; var a = document.createElement('script'); a.type = 'text/javascript'; a.src = c; a.onreadystatechange = b; a.onload = b; d.appendChild(a); } ; window._$1w._$1Z = function(a) { return +(Math.round(a + "e+1") + "e-1"); } ; window._$1w._$3z = function(a) { return +(Math.round(a + "e+2") + "e-2"); } ; window._$1w._$1G = function(a) { return +(Math.round(a + "e+3") + "e-3"); } ; window._$1w._$1s = function(a) { return JSON.parse(JSON.stringify(a)); } ; window._$1w.distance = function(b, a) { return Math.pow(Math.pow(b, 2) + Math.pow(a, 2), 0.5); } ; window._$1w._$3F = function(a) { c = navigator.userAgent.search(a); if (c > -1) { return true; } return false; } ; window._$1w._$1B = function() { return _$1w._$3F("Firefox"); } ; window._$1w._$y = function(a, b) { a = a.replace(/^\s*#|\s*$/g, ''); if (a.length == 3) { a = a.replace(/(.)/g, '$1$1'); } var c = parseInt(a.substr(0, 2), 16) , d = parseInt(a.substr(2, 2), 16) , e = parseInt(a.substr(4, 2), 16); return '#' + ((0 | (1 << 8) + c + (256 - c) * b / 100).toString(16)).substr(1) + ((0 | (1 << 8) + d + (256 - d) * b / 100).toString(16)).substr(1) + ((0 | (1 << 8) + e + (256 - e) * b / 100).toString(16)).substr(1); } ; window._$1w._$2x = function(d, c, b, e, f, a, j, g) { if (typeof g === 'undefined') { g = true; } if (typeof a === 'undefined') { a = 5; } if (typeof a === 'number') { a = { tl: a, tr: a, br: a, bl: a }; } else { var i = { tl: 0, tr: 0, br: 0, bl: 0 }; for (var h in i) { a[h] = a[h] || i[h]; } } d.beginPath(); d.moveTo(c + a.tl, b); d.lineTo(c + e - a.tr, b); d.quadraticCurveTo(c + e, b, c + e, b + a.tr); d.lineTo(c + e, b + f - a.br); d.quadraticCurveTo(c + e, b + f, c + e - a.br, b + f); d.lineTo(c + a.bl, b + f); d.quadraticCurveTo(c, b + f, c, b + f - a.bl); d.lineTo(c, b + a.tl); d.quadraticCurveTo(c, b, c + a.tl, b); d.closePath(); if (j) { d.fill(); } if (g) { d.stroke(); } } ; window._$1w._$30 = function(a) { a.addEventListener('keydown', function(a) { a.stopPropagation(); return false; }, false); a.addEventListener('keypress', function(a) { a.stopPropagation(); return false; }, false); a.addEventListener('keyup', function(a) { a.stopPropagation(); return false; }, false); a.addEventListener('input', function(a) { a.stopPropagation(); return false; }, false); } ; window._$1w._$3g = function(a) { a._$1g = function() { this.style.height = "auto"; var a = this.scrollHeight; var b = this.clientHeight; if (b != a) { this.style.height = a + 6; return 1; } return 0; } ; a.addEventListener("input", function(b) { var a = this.value; this._$1g(); } .bind(a)); } ; window._$1w._$l = function(a, b) { a._$37 = b; a._$1g = function() { this.style.height = "auto"; var a = this.scrollHeight; var b = this.clientHeight; if (b != a) { this.style.height = a + 6; return 1; } return 0; } ; a.addEventListener("input", function(b) { var a = this.value; if (a.length > this._$37) { this.value = a.substring(0, this._$37); } this._$1g(); } .bind(a)); return 0; } ; window._$1w._$i = function(c, a) { for (var b in a.prototype) { if (a.prototype.hasOwnProperty(b)) { c.prototype[b] = a.prototype[b]; } } return c; } ; window._$1w._$1u = function(c) { if (typeof c != "number") { return "--:--"; } var b = Math.floor(c / 60); var a = parseInt((c).mod(60)); if (b < 10) { b = "0" + b; } if (a < 10) { a = "0" + a; } return b + ":" + a; } ; window._$1w._$M = function(b, c) { for (var a in c) { if (a in b) { if (typeof (b[a]) == "object" && typeof (c[a]) == "object") { window._$1w._$M(b[a], c[a]); continue; } } b[a] = c[a]; } return b; } ; document.cE2 = function(b, c) { var a = document.createElement(b); a.className = c; return a; } ; window._$J = {}; window._$J._$2k = function() { var a = "Unknown"; if ("username"in window.localStorage) { a = window.localStorage.username; } if ("username"in window["SERVERDATA"]) { a = window["SERVERDATA"]["username"]; } return a; } ; window._$J._$1V = function() { var a = 1; if ("level"in window["SERVERDATA"]) { a = window["SERVERDATA"]["level"]; } return a; } ; window._$J._$3y = function() { var a = "gpop"; if ("dancer"in window["SERVERDATA"]) { a = window["SERVERDATA"]["dancer"]; } return a; } ; window._$1w._$2V = 2 * Math.PI; window._$1w._$25 = function(a) { return Math.round(Math.cos(a) * 127 + 128); } ; window._$1w._$2T = function(a) { var b = window._$1w._$25(a) , c = window._$1w._$25(a + window._$1w._$2V / 3) , d = window._$1w._$25(a + window._$1w._$2V / 3 * 2); return 'rgb( ' + b + ',' + c + ',' + d + ' )'; } ; window.debug = {}; window.debug.debug = true; window.debug.print = function() { if (window.debug.debug != true) { return 0; } console.log.apply(this, arguments); } ; window._$2g = false; if (window._$2g == false) { console.log2 = console.log; console.log = function() {} ; console._$10 = function() {} ; console._$1n = function() {} ; } else { console.log2 = console.log; console._$10 = function() { if (window._$2g != true) { return 0; } console.log2.apply(this, arguments); } ; console._$1n = function(a) { if (window._$2g != true) { return 0; } console.log2.apply(this, a); } ; }