var b = b || {}; b.Ea = b.Ea || {}; b.o = {}; r = window; r = Object.prototype; delete window._p; b.ic = function(a) { return document.createElement(a) }; b.$a = function(a, d, e, f) { a.addEventListener(d, e, f) }; b.rR = "undefined" !== typeof require && require("fs"); b.OU = function(a, d) { if (a) if (a instanceof Array) for (var e = 0, f = a.length; e < f && !1 !== d.call(void 0, a[e], e); e++); else for (e in a) if (!1 === d.call(void 0, a[e], e)) break }; b.extend = function(a) { var d = 2 <= arguments.length ? Array.prototype.slice.call(arguments, 1) : []; b.OU(d, function(d) { for (var f in d) d.hasOwnProperty(f) && (a[f] = d[f]) }); return a }; b.Ie = function(a) { return "function" === typeof a }; b.Vw = function(a) { return "number" === typeof a || "[object Number]" === Object.prototype.toString.call(a) }; b.Je = function(a) { return "string" === typeof a || "[object String]" === Object.prototype.toString.call(a) }; b.isArray = function(a) { return Array.isArray(a) || "object" === typeof a && "[object Array]" === Object.prototype.toString.call(a) }; b.sj = function(a) { return "undefined" === typeof a }; b.Ww = function(a) { return "object" === typeof a && "[object Object]" === Object.prototype.toString.call(a) }; b.Mn = function(a) { if (!a) return b.log("invalid URL"), !1; var d = a.indexOf("://"); if (-1 === d) return !1; d = a.indexOf("/", d + 3); return (-1 === d ? a : a.substring(0, d)) !== location.origin }; function aa(a, d, e, f, g) { var h = this; h.Hja = a; h.FA = d; h.jf = []; h.zR = e; h.AR = g; h.Zo = f; h.WA = g; h.tS = a instanceof Array ? [] : {}; h.qR = !1; b.OU(a, function(a, d) { h.jf.push({ index: d, value: a }) }); h.size = h.jf.length; h.vK = 0; h.BJ = 0; h.FA = h.FA || h.size; h.rra = function(a, d) { h.zR = a; h.AR = d }; h.qra = function(a, d) { h.Zo = a; h.WA = d }; h.fR = function() { var a = this; if (!(0 === a.jf.length || a.BJ >= a.FA)) { var d = a.jf.shift(), e = d.value, f = d.index; a.BJ++; a.zR.call(a.AR, e, f, function(d) { if (!a.qR) if (a.vK++, a.BJ--, d) a.qR = !0, a.Zo && a.Zo.call(a.WA, d); else { var e = Array.prototype.slice.call(arguments, 1); a.tS[this.index] = e[0]; a.vK === a.size ? a.Zo && a.Zo.call(a.WA, null, a.tS) : a.fR() } }.bind(d), a) } }; h.As = function() { if (0 === this.jf.length) this.Zo && this.Zo.call(this.WA, null, []); else for (var a = 0; a < this.FA; a++) this.fR() } } b.async = { lta: function(a, d, e) { a = new aa(a, 1, function(a, d, h) { a.call(e, h) }, d, e); a.As(); return a }, Pra: function(a, d, e) { a = new aa(a, 0, function(a, d, h) { a.call(e, h) }, d, e); a.As(); return a }, Nwa: function(a, d, e) { var f = [], g = [null], h = new aa(a, 1, function(d, h, n) { f.push(function(d) { f = Array.prototype.slice.call(arguments, 1); a.length - 1 === h && (g = g.concat(f)); n.apply(null, arguments) }); d.apply(e, f) }, function(a) { if (d) { if (a) return d.call(e, a); d.apply(e, g) } }); h.As(); return h }, map: function(a, d, e, f) { var g = d; "object" === typeof d && (e = d.En, f = d.mqa, g = d.lqa); a = new aa(a, 0, g, e, f); a.As(); return a }, Sqa: function(a, d, e, f, g) { a = new aa(a, d, e, f, g); a.As(); return a } }; b.path = { join: function() { for (var a = arguments.length, d = "", e = 0; e < a; e++) d = (d + ("" === d ? "" : "/") + arguments[e]).replace(/(\/|\\\\)$/, ""); return d }, Hn: function(a) { return (a = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(a)) ? a[1] : null }, Rqa: function(a) { if (a) { var d = a.lastIndexOf("."); if (-1 !== d) return a.substring(0, d) } return a }, q7: function(a, d) { var e = a.indexOf("?"); 0 < e && (a = a.substring(0, e)); e = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(a.replace(/(\/|\\\\)$/, "")); if (!e) return null; e = e[2]; return d && a.substring(a.length - d.length).toLowerCase() === d.toLowerCase() ? e.substring(0, e.length - d.length) : e }, dirname: function(a) { return a.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2") }, gU: function(a, d) { d = d || ""; var e = a.indexOf("?"), f = ""; 0 < e && (f = a.substring(e), a = a.substring(0, e)); e = a.lastIndexOf("."); return 0 > e ? a + d + f : a.substring(0, e) + d + f }, qs: function(a, d, e) { if (0 === d.indexOf(".")) return this.gU(a, d); var f = a.indexOf("?"), g = ""; e = e ? this.Hn(a) : ""; 0 < f && (g = a.substring(f), a = a.substring(0, f)); f = a.lastIndexOf("/"); return a.substring(0, 0 >= f ? 0 : f + 1) + d + e + g } }; b.Z = { BR: {}, hB: {}, M4: {}, vo: {}, BD: "", lka: "", td: {}, DC: function() { return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP") }, UQ: function(a) { var d = a[0], e = a[1], f = a[2], g = ["", null, null]; if (1 === a.length) g[1] = d instanceof Array ? d : [d]; else if (2 === a.length) "function" === typeof e ? (g[1] = d instanceof Array ? d : [d], g[2] = e) : (g[0] = d || "", g[1] = e instanceof Array ? e : [e]); else if (3 === a.length) g[0] = d || "", g[1] = e instanceof Array ? e : [e], g[2] = f; else throw "arguments error to load js!"; return g }, oW: function(a, d, e) { var f = this, g = f.BR, h = f.UQ(arguments), k = h[0], m = h[1], h = h[2]; - 1 < navigator.userAgent.indexOf("Trident/5") ? f.HR(k, m, 0, h) : b.async.map(m, function(a, d, e) { a = b.path.join(k, a); if (g[a]) return e(null); f.EP(a, !1, e) }, h) }, pW: function(a, d, e) { var f = this.O4(), g = this.UQ(arguments); this.oW(g[0], g[1], function(a) { if (a) throw a; f.parentNode.removeChild(f); if (g[2]) g[2]() }) }, EP: function(a, d, e) { var f = document, g = b.ic("script"); g.async = d; this.BR[a] = !0; b.pb.Ee.noCache && "string" === typeof a ? this.QR.test(a) ? g.src = a + "\x26_t\x3d" + (new Date - 0) : g.src = a + "?_t\x3d" + (new Date - 0) : g.src = a; b.$a(g, "load", function() { g.parentNode.removeChild(g); this.removeEventListener("load", arguments.callee, !1); e() }, !1); b.$a(g, "error", function() { g.parentNode.removeChild(g); e("Load " + a + " failed!") }, !1); f.body.appendChild(g) }, HR: function(a, d, e, f) { if (e >= d.length) f && f(); else { var g = this; g.EP(b.path.join(a, d[e]), !1, function(h) { if (h) return f(h); g.HR(a, d, e + 1, f) }) } }, O4: function() { var a = document, d = a.getElementById("cocos2d_loadJsImg"); if (!d) { d = b.ic("img"); b.JR && (d.src = b.JR); a = a.getElementById(b.pb.Ee.id); a.style.backgroundColor = "black"; a.parentNode.appendChild(d); var e = getComputedStyle ? getComputedStyle(a) : a.currentStyle; e || (e = { width: a.width, height: a.height }); d.style.left = a.offsetLeft + (parseFloat(e.width) - d.width) / 2 + "px"; d.style.top = a.offsetTop + (parseFloat(e.height) - d.height) / 2 + "px"; d.style.position = "absolute" } return d }, cD: function(a, d) { if (b.rR) require("fs").jsa(a, function(a, e) { a ? d(a) : d(null, e.toString()) }); else { var e = this.DC(), f = "load " + a + " failed!"; e.open("GET", a, !0); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (e.setRequestHeader("Accept-Charset", "utf-8"), e.onreadystatechange = function() { 4 === e.readyState && (200 === e.status ? d(null, e.responseText) : d(f)) }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dutf-8"), e.onload = function() { 4 === e.readyState && (200 === e.status ? d(null, e.responseText) : d(f)) }); e.send(null) } }, IR: function(a) { if (b.rR) return require("fs").ksa(a).toString(); var d = this.DC(); d.open("GET", a, !1); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? d.setRequestHeader("Accept-Charset", "utf-8") : d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dutf-8"); d.send(null); return 4 === !d.readyState || 200 !== d.status ? null : d.responseText }, zba: function(a, d) { var e = new XMLHttpRequest; e.open("GET", a, !0); e.responseType = "arraybuffer"; e.onload = function() { var f = e.response; f && (window.Uqa = f); 4 === e.readyState && (200 === e.status ? d(null, e.response) : d("load " + a + " failed!")) }; e.send(null) }, qW: function(a, d) { this.cD(a, function(e, f) { if (e) d(e); else { try { var g = JSON.parse(f) } catch (h) { throw "parse json [" + a + "] failed : " + h; } d(null, g) } }) }, vP: function(a) { return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(a) }, at: function(a, d, e) { function f() { this.removeEventListener("error", f, !1); k.crossOrigin && "anonymous" === k.crossOrigin.toLowerCase() ? (h.Mn = !1, m.Ad(a), b.Z.at(a, h, e)) : "function" === typeof e && e("load image failed") } function g() { this.removeEventListener("load", g, !1); this.removeEventListener("error", f, !1); b.Z.td[a] = k; e && e(null, k) } var h = { Mn: !0 }; void 0 !== e ? h.Mn = null === d.Mn ? h.Mn : d.Mn : void 0 !== d && (e = d); var k = this.sf(a); if (k) return e && e(null, k), k; k = new Image; h.Mn && "file://" !== location.origin && (k.crossOrigin = "Anonymous"); var m = this; b.$a(k, "load", g); b.$a(k, "error", f); k.src = a; return k }, P4: function(a, d, e) { var f = this, g = null, h = a.type; h ? (h = "." + h.toLowerCase(), g = a.src ? a.src : a.name + h) : (g = a, h = b.path.Hn(g)); if (d = f.sf(g)) return e(null, d); d = null; h && (d = f.hB[h.toLowerCase()]); if (!d) return b.error("loader for [" + h + "] not exists!"), e(); h = d.xK ? d.xK() : f.BD; h = f.S$(h, g); b.pb.Ee.noCache && "string" === typeof h && (h = f.QR.test(h) ? h + ("\x26_t\x3d" + (new Date - 0)) : h + ("?_t\x3d" + (new Date - 0))); d.load(h, g, a, function(a, d) { a ? (b.log(a), f.td[g] = null, delete f.td[g], e()) : (f.td[g] = d, e(null, d)) }) }, QR: /\?/, S$: function(a, d) { var e = this.M4, f = b.path; if (void 0 !== a && void 0 === d) { d = a; var g = f.Hn(d), g = g ? g.toLowerCase() : ""; a = (g = this.hB[g]) ? g.xK ? g.xK() : this.BD : this.BD } d = b.path.join(a || "", d); if (d.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) { if (e[d]) return e[d]; f = f.Hn(d) || ""; d = e[d] = d.substring(0, d.length - f.length) + "_" + b.fa.language + f } return d }, load: function(a, d, e) { var f = this, g = arguments.length; if (0 === g) throw "arguments error!"; 3 === g ? "function" === typeof d && (d = "function" === typeof e ? { Xn: d, En: e } : { En: d, B7: e }) : 2 === g ? "function" === typeof d && (d = { En: d }) : 1 === g && (d = {}); a instanceof Array || (a = [a]); g = new aa(a, 0, function(a, e, g, n) { f.P4(a, e, function(a) { if (a) return g(a); var e = Array.prototype.slice.call(arguments, 1); d.Xn && d.Xn.call(d.qwa, e[0], n.size, n.vK); g(null, e[0]) }) }, d.En, d.B7); g.As(); return g }, eR: function(a, d) { var e = this.vo, f = [], g; for (g in a) { var h = a[g]; e[g] = h; f.push(h) } this.load(f, d) }, Oqa: function(a, d) { var e = this, f = e.sf(a); f ? e.eR(f.filenames, d) : e.load(a, function(a, f) { e.eR(f[0].filenames, d) }) }, Bj: function(a, d) { if (a && d) { if ("string" === typeof a) return this.hB[a.trim().toLowerCase()] = d; for (var e = 0, f = a.length; e < f; e++) this.hB["." + a[e].trim().toLowerCase()] = d } }, sf: function(a) { return this.td[a] || this.td[this.vo[a]] }, Ad: function(a) { var d = this.td, e = this.vo; delete d[a]; delete d[e[a]]; delete e[a] }, tsa: function() { var a = this.td, d = this.vo, e; for (e in a) delete a[e]; for (e in d) delete d[e] } }; b.Aw = function() { var a = arguments, d = a.length; if (1 > d) return ""; var e = a[0], f = !0; "object" === typeof e && (f = !1); for (var g = 1; g < d; ++g) { var h = a[g]; if (f) for (;;) { var k = null; if ("number" === typeof h && (k = e.match(/(%d)|(%s)/))) { e = e.replace(/(%d)|(%s)/, h); break } e = (k = e.match(/%s/)) ? e.replace(/%s/, h) : e + (" " + h); break } else e += " " + h } return e }; (function() { function a() { b.ua && b.pb.dv && b.ua.dispatchEvent(b.pb.dv); b.pb.Oo && (window.cancelAnimationFrame(b.pb.Oo), b.pb.rI()) } function d() { b.ua && b.pb.cv && b.ua.dispatchEvent(b.pb.cv) } var e = window, f, g; b.sj(document.hidden) ? b.sj(document.mozHidden) ? b.sj(document.msHidden) ? b.sj(document.webkitHidden) || (f = "webkitHidden", g = "webkitvisibilitychange") : (f = "msHidden", g = "msvisibilitychange") : (f = "mozHidden", g = "mozvisibilitychange") : (f = "hidden", g = "visibilitychange"); f ? b.$a(document, g, function() { document[f] ? d() : a() }, !1) : (b.$a(e, "blur", d, !1), b.$a(e, "focus", a, !1)); - 1 < navigator.userAgent.indexOf("MicroMessenger") && (e.onfocus = function() { a() }); "onpageshow" in window && "onpagehide" in window && (b.$a(e, "pagehide", d, !1), b.$a(e, "pageshow", a, !1)); g = e = null })(); b.log = b.warn = b.error = b.assert = function() {}; b.sU = function(a, d) { for (var e = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], f = null, g = 0; g < e.length; ++g) { try { f = a.getContext(e[g], d) } catch (h) {} if (f) break } return f }; b.C4 = function(a, d) { b.Jb = 0; b.ya = 1; b.fa = {}; var e = b.fa; e.IC = !0; e.v_ = "en"; e.Sga = "zh"; e.Uga = "fr"; e.Xga = "it"; e.Vga = "de"; e.dha = "es"; e.Tga = "du"; e.cha = "ru"; e.Zga = "ko"; e.Yga = "ja"; e.Wga = "hu"; e.bha = "pt"; e.Rga = "ar"; e.$ga = "no"; e.aha = "pl"; e.wq = "iOS"; e.My = "Android"; e.b0 = "Windows"; e.wha = "Marmalade"; e.$_ = "Linux"; e.uha = "Bada"; e.vha = "Blackberry"; e.RE = "OS X"; e.zha = "WP8"; e.yha = "WINRT"; e.a0 = "Unknown"; e.VO = 0; e.Pga = 1; e.Ffa = 2; e.via = 3; e.gha = 4; e.eha = 5; e.Ofa = 6; e.Pfa = 7; e.fha = 8; e.kha = 9; e.Bga = 10; e.$ha = 11; e.Dha = 12; e.xia = 13; e.wia = 14; e.E_ = 100; e.CZ = 101; e.by = "wechat"; e.EM = "androidbrowser"; e.co = "ie"; e.hE = "qqbrowser"; e.GM = "mqqbrowser"; e.ay = "ucbrowser"; e.DM = "360browser"; e.FM = "baiduboxapp"; e.gE = "baidubrowser"; e.Sfa = "maxthon"; e.HM = "opera"; e.IM = "oupeng"; e.mq = "miuibrowser"; e.bo = "firefox"; e.eo = "safari"; e.ao = "chrome"; e.XY = "liebao"; e.Tfa = "qzone"; e.JM = "sogou"; e.YY = "unknown"; e.$aa = !1; var f = window, g = f.navigator, h = document, k = h.documentElement, m = g.userAgent.toLowerCase(); e.Mk = -1 !== m.indexOf("mobile") || -1 !== m.indexOf("android"); e.platform = e.Mk ? e.E_ : e.CZ; var n = g.language, n = (n = n ? n : g.browserLanguage) ? n.split("-")[0] : e.v_; e.language = n; var n = e.YY, p = m.match(/sogou|qzone|liebao|micromessenger|qqbrowser|ucbrowser|360 aphone|360browser|baiduboxapp|baidubrowser|maxthon|trident|oupeng|opera|miuibrowser|firefox/i) || m.match(/chrome|safari/i); p && 0 < p.length ? (n = p[0], "micromessenger" === n ? n = e.by : "safari" === n && m.match(/android.*applewebkit/) ? n = e.EM : "trident" === n ? n = e.co : "360 aphone" === n && (n = e.DM)) : m.indexOf("iphone") && m.indexOf("mobile") && (n = "safari"); e.di = n; n = m.match(/(iPad|iPhone|iPod)/i) ? !0 : !1; m = m.match(/android/i) || g.platform.match(/android/i) ? !0 : !1; p = e.a0; - 1 !== g.appVersion.indexOf("Win") ? p = e.b0 : n ? p = e.wq : -1 !== g.appVersion.indexOf("Mac") ? p = e.RE : -1 !== g.appVersion.indexOf("X11") && -1 === g.appVersion.indexOf("Linux") ? p = e.xha : m ? p = e.My : -1 !== g.appVersion.indexOf("Linux") && (p = e.$_); e.xj = p; e.Ija = -1 < [e.gE, e.HM, e.bo, e.ao, e.FM, e.eo, e.ay, e.hE, e.GM, e.co].indexOf(e.di); (function(a, e) { var g = e[d.tx] - 0; if (isNaN(g) || 2 < g || 0 > g) g = 0; var h = [a.My], k = [], m = b.ic("canvas"); b.W = b.Jb; b.Xv = !1; var n = f.WebGLRenderingContext; if (2 === g || 0 === g && n && -1 === h.indexOf(a.xj) && -1 === k.indexOf(a.di)) try { b.sU(m, { stencil: !0, preserveDrawingBuffer: !0 }) && (b.W = b.ya, b.Xv = !0) } catch (p) {} if (1 === g || 0 === g && !1 === b.Xv) try { m.getContext("2d"), b.W = b.Jb, b.Xv = !0 } catch (s) {} })(e, a); e.X2 = function() { var a = document.createElement("canvas"); a.width = 1; a.height = 1; a = a.getContext("2d"); a.fillStyle = "#000"; a.fillRect(0, 0, 1, 1); a.globalCompositeOperation = "multiply"; var d = document.createElement("canvas"); d.width = 1; d.height = 1; var e = d.getContext("2d"); e.fillStyle = "#fff"; e.fillRect(0, 0, 1, 1); a.drawImage(d, 0, 0, 1, 1); return 0 === a.getImageData(0, 0, 1, 1).data[0] }; e.DB = e.X2(); try { e.cJ = !!(f.AudioContext || f.webkitAudioContext || f.mozAudioContext) } catch (s) { e.cJ = !1 } try { var t = e.localStorage = f.localStorage; t.setItem("storage", ""); t.removeItem("storage"); t = null } catch (v) { "SECURITY_ERR" !== v.name && "QuotaExceededError" !== v.name || b.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), e.localStorage = function() {} } t = e.VJ = { canvas: !0 }; b.W === b.ya && (t.opengl = !0); if (void 0 !== k.ontouchstart || void 0 !== h.ontouchstart || g.msPointerEnabled) t.touches = !0; void 0 !== k.onmouseup && (t.mouse = !0); void 0 !== k.onkeyup && (t.keyboard = !0); if (f.DeviceMotionEvent || f.DeviceOrientationEvent) t.accelerometer = !0; e.uma = function() {}; e.rla = function() {}; e.Ssa = function() {}; e.Aka = function() {}; e.Vpa = function(a) { return a ? !0 : !1 }; e.pla = function() { var a; a = "" + ("isMobile : " + this.Mk + "\r\n"); a += "language : " + this.language + "\r\n"; a += "browserType : " + this.di + "\r\n"; a += "capabilities : " + JSON.stringify(this.VJ) + "\r\n"; a += "os : " + this.xj + "\r\n"; a += "platform : " + this.platform + "\r\n"; b.log(a) }; e.xra = function(a) { window.open(a) } }; b.rha = 0; b.sha = 1; b.pha = 2; b.qha = 3; b.jl = null; b.A = null; b.ab = null; b.z3 = null; b.jB = !1; b.MS = !1; b.l6 = function(a) { var d, e; if (!b.MS) { b.MS = !0; var f = window, g = b.Rb(a) || b.Rb("#" + a), h; b.pb.CS(); "CANVAS" === g.tagName ? (d = d || g.width, e = e || g.height, h = b.container = b.ic("DIV"), a = b.ab = g, a.parentNode.insertBefore(h, a), a.WT(h), h.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" !== g.tagName && b.log("Warning: target element is not a DIV or CANVAS"), d = d || g.clientWidth, e = e || g.clientHeight, h = b.container = g, a = b.ab = b.Rb(b.ic("CANVAS")), g.appendChild(a)); a.OT("gameCanvas"); a.setAttribute("width", d || 480); a.setAttribute("height", e || 320); a.setAttribute("tabindex", 99); a.style.outline = "none"; g = h.style; g.width = (d || 480) + "px"; g.height = (e || 320) + "px"; g.margin = "0 auto"; g.position = "relative"; g.overflow = "hidden"; h.top = "100%"; b.W === b.ya && (b.A = b.Owa = b.sU(a, { stencil: !0, preserveDrawingBuffer: !0, antialias: !b.fa.Mk, alpha: !1 })); b.A ? (f.gl = b.A, b.jl = new b.NZ(b.A), b.jB = !0, b.Xa.D4(), b.le.rl()) : (b.A = new b.nq(a.getContext("2d")), b.jl = b.$M ? new b.$M(b.A) : null); b.z3 = h; b.log(b.xE); b.U5(); b.fa.Mk && (d = b.ic("style"), d.type = "text/css", document.body.appendChild(d), d.textContent = "body,canvas,div{ -moz-user-select: none;-webkit-user-select: none;-ms-user-select: none;-khtml-user-select: none;-webkit-tap-highlight-color:rgba(0,0,0,0);}"); b.view = b.vE.aH(); b.aW.nca(b.ab); b.P = b.jb.aH(); b.P.OD && b.P.OD(b.view); b.ld = b.P.Fa(); b.eta = new b.Uy; b.Wba = new b.o0 } }; b.pG = function() { if (b.W !== b.ya) throw "This feature supports WebGL render mode only."; }; b.pR = !1; b.U5 = function() { b.pR = !1; b.ab.oncontextmenu = function() { if (!b.pR) return !1 } }; b.pb = { AZ: 0, yZ: 1, lga: 2, UM: 3, zZ: 4, mga: 5, xZ: 6, yE: "game_on_hide", ly: "game_on_show", cv: null, dv: null, rja: [], xh: { tK: "engineDir", Rka: "dependencies", xw: "debugMode", sea: "showFPS", Bw: "frameRate", id: "id", tx: "renderMode", fba: "jsList", E7: "classReleaseMode" }, fS: !1, eB: !1, Ye: !0, Oo: null, wH: null, PQ: null, Ee: null, wL: null, sra: null, Tta: function(a) { this.Ee[this.xh.Bw] = a; this.Oo && window.cancelAnimationFrame(this.Oo); this.Ye = !0; this.CS(); this.rI() }, CS: function() { this.wH = new Date; this.PQ = 1E3 / b.pb.Ee[b.pb.xh.Bw]; b.fa.xj === b.fa.wq && b.fa.di === b.fa.by || 60 !== b.pb.Ee[b.pb.xh.Bw] ? (window.JL = this.ZS, window.cancelAnimationFrame = this.GP) : (window.JL = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame || this.ZS, window.cancelAnimationFrame = window.cancelAnimationFrame || window.cancelRequestAnimationFrame || window.msCancelRequestAnimationFrame || window.mozCancelRequestAnimationFrame || window.oCancelRequestAnimationFrame || window.webkitCancelRequestAnimationFrame || window.msCancelAnimationFrame || window.mozCancelAnimationFrame || window.webkitCancelAnimationFrame || window.oCancelAnimationFrame || this.GP) }, ZS: function(a) { var d = (new Date).getTime(), e = Math.max(0, b.pb.PQ - (d - b.pb.wH)), f = window.setTimeout(function() { a() }, e); b.pb.wH = d + e; return f }, GP: function(a) { window.clearTimeout(a) }, rI: function() { var a = this, d, e = b.P; e.cda(a.Ee[a.xh.sea]); d = function() { a.Ye || (e.Cba(), a.Oo && window.cancelAnimationFrame(a.Oo), a.Oo = window.JL(d)) }; window.JL(d); a.Ye = !1 }, Rsa: function() { b.P.KW(0); b.pw && b.pw.end(); b.pb.wL() }, Jca: function(a) { function d() { a && (e.Ee[e.xh.id] = a); e.fS || e.bca(function() { e.eB = !0 }); b.Xv && (e.Y2 = setInterval(function() { e.eB && (b.l6(e.Ee[e.xh.id]), e.rI(), e.cv = e.cv || new b.ko(e.yE), e.cv.setUserData(e), e.dv = e.dv || new b.ko(e.ly), e.dv.setUserData(e), e.wL(), clearInterval(e.Y2)) }, 10)) } var e = this; document.body ? d() : b.$a(window, "load", function() { this.removeEventListener("load", arguments.callee, !1); d() }, !1) }, w4: function() { function a(a) { a[d.tK] = a[d.tK] || "frameworks/cocos2d-html5"; null == a[d.xw] && (a[d.xw] = 0); a[d.Bw] = a[d.Bw] || 60; null == a[d.tx] && (a[d.tx] = 1); return a } var d = this.xh; if (document.ccConfig) this.Ee = a(document.ccConfig); else try { for (var e = document.getElementsByTagName("script"), f = 0; f < e.length; f++) { var g = e[f].getAttribute("cocos"); if ("" === g || g) break } var h, k, m; if (f < e.length) { if (h = e[f].src) m = /(.*)\//.exec(h)[0], b.Z.BD = m, h = b.path.join(m, "project.json"); k = b.Z.IR(h) } k || (k = b.Z.IR("project.json")); var n = JSON.parse(k); this.Ee = a(n || {}) } catch (p) { b.log("Failed to read or parse project.json"), this.Ee = a({}) } b.C4(this.Ee, d) }, J4: {}, WQ: function(a, d, e) { var f = this.J4; if (f[d]) return null; e = e || ""; var g = [], h = a[d]; if (!h) throw "can not find module [" + d + "]"; d = b.path; for (var k = 0, m = h.length; k < m; k++) { var n = h[k]; if (!f[n]) { var p = d.Hn(n); p ? ".js" === p.toLowerCase() && g.push(d.join(e, n)) : (p = this.WQ(a, n, e)) && (g = g.concat(p)); f[n] = 1 } } return g }, bca: function(a) { var d = this, e = d.Ee, f = d.xh, g = e[f.tK], h = b.Z; if (!b.Xv) throw "The renderer doesn't support the renderMode " + e[f.tx]; d.fS = !0; var k = e[f.fba] || []; b.sa ? h.pW("", k, function(e) { if (e) throw e; d.eB = !0; a && a() }) : (f = b.path.join(g, "moduleConfig.json"), h.qW(f, function(f, h) { if (f) throw f; var p = e.modules || [], s = h.module, t = []; b.W === b.ya ? p.splice(0, 0, "shaders") : 0 > p.indexOf("core") && p.splice(0, 0, "core"); for (var v = 0, w = p.length; v < w; v++) { var x = d.WQ(s, p[v], g); x && (t = t.concat(x)) } if (b.fa.IC) for (v = 0, w = k.length; v < w; v++) k[v] = "res/" + k[v]; t = t.concat(k); b.Z.pW(t, function(e) { if (e) throw e; d.eB = !0; a && a() }) })) } }; b.pb.w4(); Function.prototype.bind = Function.prototype.bind || function(a) { function d() { return g.apply(this instanceof e && a ? this : a, f.concat(Array.prototype.slice.call(arguments))) } function e() {} if (!b.Ie(this)) throw new TypeError("Function.prototype.bind - what is trying to be bound is not callable"); var f = Array.prototype.slice.call(arguments, 1), g = this; e.prototype = this.prototype; d.prototype = new e; return d }; b.o = { AM: "cc.ActionManager.addAction(): action must be non-null", TY: "cocos2d: removeAction: Target not found", Jfa: "cc.ActionManager.removeActionByTag(): an invalid tag", Kfa: "cc.ActionManager.removeActionByTag(): target must be non-null", RY: "cc.ActionManager.getActionByTag(): an invalid tag", SY: "cocos2d : getActionByTag(tag \x3d %s): Action not found", J7: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)", K7: "Expected 'data' dict, but not found. Config file: %s", L7: "Please load the resource first : %s", IZ: "cocos2d: Director: Error in gettimeofday", JZ: "cocos2d: Director: unrecognized projection", Aga: "cocos2d: Director: unrecognized projection", HZ: "cocos2d: Director: Error in gettimeofday", GZ: "running scene should not null", ZM: "the scene should not null", ow: "element type is wrong!", O0: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s", Kha: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.", P0: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.", M0: "cc.Scheduler.pauseTarget():target should be non-null", N0: "cc.Scheduler.resumeTarget():target should be non-null", L0: "cc.Scheduler.isTargetPaused():target should be non-null", N_: "getZOrder is deprecated. Please use getLocalZOrder instead.", X_: "setZOrder is deprecated. Please use setLocalZOrder instead.", L_: "RotationX !\x3d RotationY. Don't know which one to return", M_: "ScaleX !\x3d ScaleY. Don't know which one to return", lha: "An Node can't be added as a child of itself.", mha: "child already added. It can't be added again", I_: "child must be non-null", R_: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead", J_: "boundingBox is deprecated. Use getBoundingBox instead", P_: "argument tag is an invalid tag", Q_: "cocos2d: removeChildByTag(tag \x3d %s): child not found!", oha: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead", Y_: "cc.Node.stopActionBy(): argument tag an invalid tag", K_: "cc.Node.getActionByTag(): argument tag is an invalid tag", T_: "resumeSchedulerAndActions is deprecated, please use resume instead.", O_: "pauseSchedulerAndActions is deprecated, please use pause instead.", H_: "Unknown callback function", S_: "child must be non-null", U_: "cc.Node.runAction(): action must be non-null", V_: "callback function must be non-null", W_: "interval must be positive", nha: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", UY: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses", Nfa: "", BM: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", r2: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!", t2: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!", s2: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!", q2: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil", VZ: "Invalid parameter.", wz: "Don't call this method if the event is for touch.", B8: "Invalid scene graph priority!", C8: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.", G8: "Invalid listener type!", H8: "Can't set fixed priority with scene graph based listener.", D8: "Invalid parameters.", E8: "listener must be a cc.EventListener object when adding a fixed priority listener", F8: "The listener has been registered, please don't register it again.", z_: "parameters should not be ending with null in Javascript", A_: "Invalid index in MultiplexLayer switchTo message", B_: "Invalid index in MultiplexLayer switchTo message", y_: "cc.Layer.addLayer(): layer should be non-null", OZ: "Resolution not valid", PZ: "should set resolutionPolicy", Laa: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s", Dt: "cc.swap is being modified from original macro, please check usage", ss: "WebGL error %s", d7: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.", e7: "cc.AnimationCache. Invalid animation format", l7: "cc.AnimationCache.addAnimations(): File could not be found", f7: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", g7: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.", h7: "cocos2d: cc.AnimationCache: None of the frames for animation '%s' were found in the cc.SpriteFrameCache. Animation is not being added to the Animation Cache.", i7: "cocos2d: cc.AnimationCache: An animation in your dictionary refers to a frame which is not in the cc.SpriteFrameCache. Some or all of the frames for the animation '%s' may be missing.", j7: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", k7: "cocos2d: cc.AnimationCache: Animation '%s' refers to frame '%s' which is not currently in the cc.SpriteFrameCache. This frame will not be added to the animation.", m7: "cc.AnimationCache.addAnimations(): Invalid texture file name", i1: "cc.Sprite.reorderChild(): this child is not in children list", d1: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode", l1: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found", m1: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index", k1: "setDisplayFrame is deprecated, please use setSpriteFrame instead.", $0: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode", f1: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null", g1: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null", h1: " is null, please check.", e1: "cc.Sprite.initWithFile(): filename should be non-null", n1: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null", j1: "cc.Sprite.reorderChild(): child should be non-null", a1: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode", b1: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode", Mha: "cc.Sprite.addChild(): child should be non-null", p1: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode", Qha: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", Oha: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", cO: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", c1: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture", Nha: "Sprite.initWithTexture(): Argument must be non-nil ", o1: "Invalid spriteFrameName", q1: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.", Rha: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", Pha: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", T0: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children", V0: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.", W0: "cocos2d: WARNING: Not enough memory to resize the atlas", Y0: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite", X0: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child", U0: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null", Z0: "cc.SpriteBatchNode.addChild(): child should be non-null", Dea: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist", Eea: "cocos2d: WARNING: an alias with name %s already exists", Cea: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit", Jva: "cocos2d: cc.SpriteFrameCahce: Frame %s not found", jY: "Please load the resource first : %s", kY: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null", Fea: "Argument must be non-nil", gZ: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", eZ: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", cga: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", dZ: "Sprite.initWithTexture(): Argument must be non-nil ", bZ: "cc.Sprite.addChild(): child should be non-null", dga: "Invalid spriteFrameName", ega: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.", hZ: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", fZ: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", cZ: "cc.SpriteBatchNode.addChild(): child should be non-null", O1: "cocos2d: Could not open file: %s", oO: "cc.TextureAtlas.insertQuad(): invalid totalQuads", P1: "cc.TextureAtlas.initWithTexture():texture should be non-null", Z1: "cc.TextureAtlas.updateQuad(): quad should be non-null", a2: "cc.TextureAtlas.updateQuad(): Invalid index", S1: "cc.TextureAtlas.insertQuad(): Invalid index", T1: "cc.TextureAtlas.insertQuad(): Invalid index + amount", Q1: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex", R1: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex", X1: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index", Y1: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds", U1: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds", V1: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex", W1: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex", Rea: "TextureCache:addPVRTCImage does not support on HTML5", Pea: "TextureCache:addPVRTCImage does not support on HTML5", Wea: "textureForKey is deprecated. Please use getTextureForKey instead.", Qea: "addPVRImage does not support on HTML5", Sea: "cocos2d: Couldn't add UIImage in TextureCache", Uea: "cocos2d: '%s' id\x3d%s %s x %s", rY: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s", Vea: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)", Tea: "cc.Texture.addUIImage(): image should be non-null", F1: "initWithETCFile does not support on HTML5", J1: "initWithPVRFile does not support on HTML5", L1: "initWithPVRTCData does not support on HTML5", B1: "cc.Texture.addImage(): path should be non-null", H1: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil", I1: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s", N1: "initWithString isn't supported on cocos2d-html5", G1: "initWithETCFile does not support on HTML5", K1: "initWithPVRFile does not support on HTML5", M1: "initWithPVRTCData does not support on HTML5", D1: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format", A1: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha", C1: "cc.Texture.addImage(): path should be non-null", E1: "NSInternalInconsistencyException", Qj: "Missing file: %s", MW: "cc.radiansToDegress() should be called cc.radiansToDegrees()", jF: "Rect width exceeds maximum margin: %s", iF: "Rect height exceeds maximum margin: %s", WZ: "If program goes here, there should be event in dispatch.", XZ: "_inDispatch should be 1 here." }; b.R4 = function(a) { if (b.ab) { var d = b.Q4, e = document; if (!d) { var f = e.createElement("Div"), d = f.style; f.setAttribute("id", "logInfoDiv"); b.ab.parentNode.appendChild(f); f.setAttribute("width", "200"); f.setAttribute("height", b.ab.height); d.zIndex = "99999"; d.position = "absolute"; d.top = "0"; d.left = "0"; d = b.Q4 = e.createElement("textarea"); e = d.style; d.setAttribute("rows", "20"); d.setAttribute("cols", "30"); d.setAttribute("disabled", !0); f.appendChild(d); e.backgroundColor = "transparent"; e.borderBottom = "1px solid #cccccc"; e.borderRightWidth = "0px"; e.borderLeftWidth = "0px"; e.borderTopWidth = "0px"; e.borderTopStyle = "none"; e.borderRightStyle = "none"; e.borderLeftStyle = "none"; e.padding = "0px"; e.margin = 0 } d.value = d.value + a + "\r\n"; d.scrollTop = d.scrollHeight } }; b.NQ = function(a) { if (b.Ww(a)) try { return JSON.stringify(a) } catch (d) { return "" } else return a }; b.x4 = function() { var a = b.pb.Ee[b.pb.xh.xw], d = b.pb; if (a !== d.AZ) { var e; a > d.UM ? (e = b.R4.bind(b), b.error = function() { e("ERROR : " + b.Aw.apply(b, arguments)) }, b.assert = function(a, d) { if (!a && d) { for (var h = 2; h < arguments.length; h++) d = d.replace(/(%s)|(%d)/, b.NQ(arguments[h])); e("Assert: " + d) } }, a !== d.xZ && (b.warn = function() { e("WARN : " + b.Aw.apply(b, arguments)) }), a === d.zZ && (b.log = function() { e(b.Aw.apply(b, arguments)) })) : console && console.log.apply && (b.error = function() { return console.error.apply(console, arguments) }, b.assert = function(a, d) { if (!a && d) { for (var e = 2; e < arguments.length; e++) d = d.replace(/(%s)|(%d)/, b.NQ(arguments[e])); throw d; } }, a !== d.UM && (b.warn = function() { return console.warn.apply(console, arguments) }), a === d.yZ && (b.log = function() { return console.log.apply(console, arguments) })) } }; b.x4(); b.Z.yba = function(a, d) { var e = this, f = this.DC(), g = "load " + a + " failed!"; f.open("GET", a, !0); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (f.setRequestHeader("Accept-Charset", "x-user-defined"), f.onreadystatechange = function() { if (4 === f.readyState && 200 === f.status) { var a = b.BP(f.responseBody); d(null, e.CB(a)) } else d(g) }) : (f.overrideMimeType && f.overrideMimeType("text/plain; charset\x3dx-user-defined"), f.onload = function() { 4 === f.readyState && 200 === f.status ? d(null, e.CB(f.responseText)) : d(g) }); f.send(null) }; b.Z.CB = function(a) { if (!a) return null; for (var d = new Uint8Array(a.length), e = 0; e < a.length; e++) d[e] = a.charCodeAt(e) & 255; return d }; b.Z.Pqa = function(a) { var d = this.DC(), e = "load " + a + " failed!"; d.open("GET", a, !1); a = null; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { d.setRequestHeader("Accept-Charset", "x-user-defined"); d.send(null); if (200 !== d.status) return b.log(e), null; (d = b.BP(d.responseBody)) && (a = this.CB(d)) } else { d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined"); d.send(null); if (200 !== d.status) return b.log(e), null; a = this.CB(d.responseText) } return a }; var Uint8Array = Uint8Array || Array; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { var ba = b.ic("script"); ba.type = "text/vbscript"; ba.textContent = '\x3c!-- IEBinaryToArray_ByteStr --\x3e\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr \x3d CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex \x3d LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last \x3d Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last \x3d ""\r\n End If\r\nEnd Function\r\n'; document.body.appendChild(ba); b.BP = function(a) { for (var d = {}, e = 0; 256 > e; e++) for (var f = 0; 256 > f; f++) d[String.fromCharCode(e + 256 * f)] = String.fromCharCode(e) + String.fromCharCode(f); e = IEBinaryToArray_ByteStr(a); a = IEBinaryToArray_ByteStr_Last(a); return e.replace(/[\s\S]/g, function(a) { return d[a] }) + a } }; b = b || {}; b.JR = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7"; b.or = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAQAAAAAgCAYAAAD9qabkAAAKQ2lDQ1BJQ0MgcHJvZmlsZQAAeNqdU3dYk/cWPt/3ZQ9WQtjwsZdsgQAiI6wIyBBZohCSAGGEEBJAxYWIClYUFRGcSFXEgtUKSJ2I4qAouGdBiohai1VcOO4f3Ke1fXrv7e371/u855zn/M55zw+AERImkeaiagA5UoU8Otgfj09IxMm9gAIVSOAEIBDmy8JnBcUAAPADeXh+dLA//AGvbwACAHDVLiQSx+H/g7pQJlcAIJEA4CIS5wsBkFIAyC5UyBQAyBgAsFOzZAoAlAAAbHl8QiIAqg0A7PRJPgUA2KmT3BcA2KIcqQgAjQEAmShHJAJAuwBgVYFSLALAwgCgrEAiLgTArgGAWbYyRwKAvQUAdo5YkA9AYACAmUIszAAgOAIAQx4TzQMgTAOgMNK/4KlfcIW4SAEAwMuVzZdL0jMUuJXQGnfy8ODiIeLCbLFCYRcpEGYJ5CKcl5sjE0jnA0zODAAAGvnRwf44P5Dn5uTh5mbnbO/0xaL+a/BvIj4h8d/+vIwCBAAQTs/v2l/l5dYDcMcBsHW/a6lbANpWAGjf+V0z2wmgWgrQevmLeTj8QB6eoVDIPB0cCgsL7SViob0w44s+/zPhb+CLfvb8QB7+23rwAHGaQJmtwKOD/XFhbnauUo7nywRCMW735yP+x4V//Y4p0eI0sVwsFYrxWIm4UCJNx3m5UpFEIcmV4hLpfzLxH5b9CZN3DQCshk/ATrYHtctswH7uAQKLDljSdgBAfvMtjBoLkQAQZzQyefcAAJO/+Y9AKwEAzZek4wAAvOgYXKiUF0zGCAAARKCBKrBBBwzBFKzADpzBHbzAFwJhBkRADCTAPBBCBuSAHAqhGJZBGVTAOtgEtbADGqARmuEQtMExOA3n4BJcgetwFwZgGJ7CGLyGCQRByAgTYSE6iBFijtgizggXmY4EImFINJKApCDpiBRRIsXIcqQCqUJqkV1II/ItchQ5jVxA+pDbyCAyivyKvEcxlIGyUQPUAnVAuagfGorGoHPRdDQPXYCWomvRGrQePYC2oqfRS+h1dAB9io5jgNExDmaM2WFcjIdFYIlYGibHFmPlWDVWjzVjHVg3dhUbwJ5h7wgkAouAE+wIXoQQwmyCkJBHWExYQ6gl7CO0EroIVwmDhDHCJyKTqE+0JXoS+cR4YjqxkFhGrCbuIR4hniVeJw4TX5NIJA7JkuROCiElkDJJC0lrSNtILaRTpD7SEGmcTCbrkG3J3uQIsoCsIJeRt5APkE+S+8nD5LcUOsWI4kwJoiRSpJQSSjVlP+UEpZ8yQpmgqlHNqZ7UCKqIOp9aSW2gdlAvU4epEzR1miXNmxZDy6Qto9XQmmlnafdoL+l0ugndgx5Fl9CX0mvoB+nn6YP0dwwNhg2Dx0hiKBlrGXsZpxi3GS+ZTKYF05eZyFQw1zIbmWeYD5hvVVgq9ip8FZHKEpU6lVaVfpXnqlRVc1U/1XmqC1SrVQ+rXlZ9pkZVs1DjqQnUFqvVqR1Vu6k2rs5Sd1KPUM9RX6O+X/2C+mMNsoaFRqCGSKNUY7fGGY0hFsYyZfFYQtZyVgPrLGuYTWJbsvnsTHYF+xt2L3tMU0NzqmasZpFmneZxzQEOxrHg8DnZnErOIc4NznstAy0/LbHWaq1mrX6tN9p62r7aYu1y7Rbt69rvdXCdQJ0snfU6bTr3dQm6NrpRuoW623XP6j7TY+t56Qn1yvUO6d3RR/Vt9KP1F+rv1u/RHzcwNAg2kBlsMThj8MyQY+hrmGm40fCE4agRy2i6kcRoo9FJoye4Ju6HZ+M1eBc+ZqxvHGKsNN5l3Gs8YWJpMtukxKTF5L4pzZRrmma60bTTdMzMyCzcrNisyeyOOdWca55hvtm82/yNhaVFnMVKizaLx5balnzLBZZNlvesmFY+VnlW9VbXrEnWXOss623WV2xQG1ebDJs6m8u2qK2brcR2m23fFOIUjynSKfVTbtox7PzsCuya7AbtOfZh9iX2bfbPHcwcEh3WO3Q7fHJ0dcx2bHC866ThNMOpxKnD6VdnG2ehc53zNRemS5DLEpd2lxdTbaeKp26fesuV5RruutK10/Wjm7ub3K3ZbdTdzD3Ffav7TS6bG8ldwz3vQfTw91jicczjnaebp8LzkOcvXnZeWV77vR5Ps5wmntYwbcjbxFvgvct7YDo+PWX6zukDPsY+Ap96n4e+pr4i3z2+I37Wfpl+B/ye+zv6y/2P+L/hefIW8U4FYAHBAeUBvYEagbMDawMfBJkEpQc1BY0FuwYvDD4VQgwJDVkfcpNvwBfyG/ljM9xnLJrRFcoInRVaG/owzCZMHtYRjobPCN8Qfm+m+UzpzLYIiOBHbIi4H2kZmRf5fRQpKjKqLupRtFN0cXT3LNas5Fn7Z72O8Y+pjLk722q2cnZnrGpsUmxj7Ju4gLiquIF4h/hF8ZcSdBMkCe2J5MTYxD2J43MC52yaM5zkmlSWdGOu5dyiuRfm6c7Lnnc8WTVZkHw4hZgSl7I/5YMgQlAvGE/lp25NHRPyhJuFT0W+oo2iUbG3uEo8kuadVpX2ON07fUP6aIZPRnXGMwlPUit5kRmSuSPzTVZE1t6sz9lx2S05lJyUnKNSDWmWtCvXMLcot09mKyuTDeR55m3KG5OHyvfkI/lz89sVbIVM0aO0Uq5QDhZML6greFsYW3i4SL1IWtQz32b+6vkjC4IWfL2QsFC4sLPYuHhZ8eAiv0W7FiOLUxd3LjFdUrpkeGnw0n3LaMuylv1Q4lhSVfJqedzyjlKD0qWlQyuCVzSVqZTJy26u9Fq5YxVhlWRV72qX1VtWfyoXlV+scKyorviwRrjm4ldOX9V89Xlt2treSrfK7etI66Trbqz3Wb+vSr1qQdXQhvANrRvxjeUbX21K3nShemr1js20zcrNAzVhNe1bzLas2/KhNqP2ep1/XctW/a2rt77ZJtrWv913e/MOgx0VO97vlOy8tSt4V2u9RX31btLugt2PGmIbur/mft24R3dPxZ6Pe6V7B/ZF7+tqdG9s3K+/v7IJbVI2jR5IOnDlm4Bv2pvtmne1cFoqDsJB5cEn36Z8e+NQ6KHOw9zDzd+Zf7f1COtIeSvSOr91rC2jbaA9ob3v6IyjnR1eHUe+t/9+7zHjY3XHNY9XnqCdKD3x+eSCk+OnZKeenU4/PdSZ3Hn3TPyZa11RXb1nQ8+ePxd07ky3X/fJ897nj13wvHD0Ivdi2yW3S609rj1HfnD94UivW2/rZffL7Vc8rnT0Tes70e/Tf/pqwNVz1/jXLl2feb3vxuwbt24m3Ry4Jbr1+Hb27Rd3Cu5M3F16j3iv/L7a/eoH+g/qf7T+sWXAbeD4YMBgz8NZD+8OCYee/pT/04fh0kfMR9UjRiONj50fHxsNGr3yZM6T4aeypxPPyn5W/3nrc6vn3/3i+0vPWPzY8Av5i8+/rnmp83Lvq6mvOscjxx+8znk98ab8rc7bfe+477rfx70fmSj8QP5Q89H6Y8en0E/3Pud8/vwv94Tz+4A5JREAAAAGYktHRAD/AP8A/6C9p5MAAAAJcEhZcwAACxMAAAsTAQCanBgAAAAHdElNRQfcAgcQLxxUBNp/AAAQZ0lEQVR42u2be3QVVZbGv1N17829eRLyIKAEOiISEtPhJTJAYuyBDmhWjAEx4iAGBhxA4wABbVAMWUAeykMCM+HRTcBRWkNH2l5moS0LCCrQTkYeQWBQSCAIgYRXEpKbW/XNH5zS4noR7faPEeu31l0h4dSpvc+t/Z199jkFWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhYWFhY/H9D/MR9qfKnLj/00U71aqfJn9+HCkCR/Wk36ddsgyJ/1wF4fkDfqqm9/gPsUeTnVr6a2xlQfnxdI7zs0W7irzD17Ytb2WT7EeNv/r4ox1O3Quf2QP2pgt9utwfout4FQE8AVBSlnaRmfvAURQkg2RlAbwB9AThlW5L0GaiKojhJhgOIBqDa7XaPrusdPtr5kQwF0BVAAoBIABRCKDd5aFUhRDAAw57eAOwAhKIoupft3zoqhB1AqLwuHIBut9uFt02qqvqRDJR2dAEQJj/BAOjn56dqmma+xiaECAEQAWAggLsB6A6HQ2iaZggBhBAqgEAAnQB0kzaEmT4hAITT6VQ8Ho/HJAKKECJQtr8LwD1y/A1/vcdfEUIEyfZ9AcQbYvZ942Px88L2UwlJR0dH0EMPPbRj5syZPUeNGrXR7Xb/641xIwJ1XY9NSUlZm52dfW+XLl1w8uRJzJ8//+OGhoYJqqqe1TSt1Wsm9NN1PSIqKmr12rVrR5WUlHy1bdu2AQCumWc3IYRD1/UwVVXnFRQUTIuNjUVzczN2797dWFJSkq8oymZd15sAGAEnFEUJ1nX9nzIzM1dnZmZGh4SE4OTJk5g5c+Zf29vbp9pstrMej6fVOyhIhgAYU1hY+B+hoaGoqKg4XVlZea+XTULTNFdCQsLGiRMnPuR2u3UhBOV9eeDAAWXTpk095DUe6WsoyRE5OTlr0tLSAux2O/bs2cO5c+e+pijKUpIXSHaQVAGkvPLKK++6XK4OksJLCFlXV2cvKSlJBFAjhU+x2WwhHo9nUHp6+urMzMy7wsLCUF9fjxdffPHjxsbGiTab7WuPx9NiEutOuq4PyMjI+M+srKyYqKgoHD58GDNmzNjq8XhyVFU9b/q+LH7hBAEYu3PnTlZVVRFAGgCX6f/tAHoOHDjwa0p27txp/JO9e/f+QM7cipw9nfL3kQBKt2zZQpJ87rnn6mQmoHilw2EACs+cOUOSrK+vZ1NTE0nyo48+IoBpxswoBcMJ4Ndjx471kOTFixe5d+9ekqTH42H//v13A4jyzpAURfEH0H/OnDnthu1z5sw558MmFUCPWbNmnaMP3nrrLZoyDmP8Hl68eDFJ8siRI9/Yc+zYMQKYKdtAztrTrl27xptRXV1NAKMAOAyBBBA/Y8aMdpLs6Ojgxx9//E37+++//29yvFXppwvAwMcee8xjtDHsuXLlCqOjo//ia3wsfpkoALqFhoZuIckJEyackimm3dQmEMDUmpoakmRISMhhAHOHDx/eQJIbN24kgKEyMAHAFRMTs2XXrl1saWkhSZ0kp0+ffhrAr3wEW/S8efOukORLL72kA1gKYMPWrVtJkk899dRJAHeYrgsEsIQkjx8/TgDvAPjd448/3kaSb7zxBmUa7vC6z53BwcFbSHL9+vU6Sc6aNes8gF5ewWAH0PfVV18lSQL4DMBGIcQ6AKtcLleBFC2jXtFt8ODBe0iyoqKCAJYByC8qKmJDQwOzsrK+MAmqo1OnTveHhoa+GRkZ+XZkZOSWiIiIvzgcjk9mzpypkWRmZuZpmbYbGV4AgPnNzc1sa2sjgN0A5iQmJtaSZHl5OQHcb/K3s81mW0uSTU1NBFAFYFbfvn1Pk+Tbb79NAA8IIVzW42/hByA+Pz/fLR/2ZXIda05NI/z9/TeR5J49ewhgqlxTrtI0jY2NjQQw3zTLuWJiYjaUlJToS5Ys6fjkk080kwDEeAmADcA9GzZsIElGRUW9CyAWwLApU6Y0kOSKFSsog9QICGdERMTGsrIyZmVlEcC9AB4IDw/fTpLbtm0jgN94CUAnAJmVlZVcs2aNZ/LkyRdJcvbs2b4EwAkgZfPmzTxw4AABFAN4BkC6vFeUSewcAO5duXIlSTIhIaEawGMAxgKYAmAGgCS73e5vrKVk/yGythANYEhCQsIhkly+fDkBpKqqGmL6DgIALDKN/3yZpVWQZGVlJQE8aPI3KiMjo5okV61aRQAjAPQBMPfIkSN0u90EUCBtsPiFEwpgbn19PdetW2fM5N4zQ9ekpKQqkty0aRMBpMjiWM6JEydIkoqirJUFJ6iq6pAPVy8A6cZMehMBUACEuVyuFwG8HBwcPEIWx367ZMkSjSQXLVrUJouTRorrkAHdA8BdQogsAOsKCwtJkmPGjDkvMw2bDDo/ADEjRoz4XylyFbm5uY0mAbjLyyZ/AOOrq6tZVlbWsWDBgo69e/eyoqKCgwcPPg4gSQaoIRbp27dvN7KF+tLSUr28vJwFBQXtMpvpYRIM7+wrAkDeqVOnePbsWQIoNKfzpiXPg8uXLydJJicnNwF4f+nSpW6STEtLq5fjYwhk1wkTJtSQ5Ouvv04AqTKj+N2xY8dIkgEBAW/Ie1v8wncRegwZMmQvSfbr12+3Ua33WqPfOWbMmP0kWVpaSgCDZAqcfejQIWNZsEGKgvnh9gfQb9myZd8nAEJVVZtMkUNk8CcNHTq0liR1XWdYWNhmH1mJIme80OnTp18x1rp5eXkEsNJms92Fb7e/IgEsvHz5Mp999tkmAI/l5uZeMC0B7vEqqAYAyL106RJJsra2lpWVld+sucePH38ZQG+5NncBeOrgwYMkqbe3t/Po0aOsra011wAWyl0H7x0JJ4DE+fPnu0kyPT29DsDdUrBuyNKEEAkAdpw/f/6GeoEM8GUmfwEgPCIiopwkGxsbabPZPgOw6L777vvm4p49e26VGYjFLxUhhD+ApLKyMp44ccIoVnXybgbgzkcfffRzklyzZg0BDJYCMMmoCwQFBXkLgLGWvvcWAgBToSsKwNPTp09vMR7UuLi4rwH0lgU8c/Db5ezbeeTIkRWzZ8++aMxu+fn5BPCADBwHgP4LFy701NXVEUAJgAnPP/98kyxMNgHo53A4zH77BQQETMvPz7+Um5vbBuAlAFMSExPPmdbVL0qh8Acw8fDhw5SCchVAEYAVb775JknyhRdeaJYztHfxMwLAaqNwCGC2FArv8x0hAHKNLGPKlCme5OTk/Zs3bzb7O0wKiiG8KXl5ed8IxenTp0mSR48e1UmyW7duWywBuD2xyQcgFECgoih+8H1gyJgZV5Lkyy+/3CbTRIePtl2HDBmyw1QBHyGDdXZdXR1JUghRKkXBjOMHCoBdpr0L3nvvPZLkF198wejo6O0A4lVVDTb74HQ6AwD8Wq7Jh8rgGgDgQ13XjVR8qaxJuADMbmlpYXl5uV5UVNRWUFDgfv/993Vj/ZydnU1c37eHXML4S3viAcQqitJD2l104cIFY8lTKsXSBWBMVVWVcd9yed2A1NTUQ6Zl00CvLMMOoHdubm6zFIlWOf5+PsY/Kj09vdrU11QAwwGsv3jxIk21m2DZr10I0RXAuAcffPBgaWkpV69eTYfDcdiwUxY0w6xw+flX8L1xApjevXv3lREREaW6rofB93aPDUDQpEmTMgHgtddeqwBwEd/utZvpqK6uPgEAcXFxkA94NwB9unfvjrNnz4LklwDcf08iIqv66Zs2bXrl4YcfxooVKxAbG7uqrq5uAYA2TdOEqqpGYIi2tjbl6aeffu/YsWPv5uTk7JaC1wHg4Pnz542MwoVvTx+21dbWYvjw4WLixIl+2dnZ9lGjRgmSTE1NRUpKCkwFTGiaxtTU1OXTpk3707Bhw/6g67pDipnT4biuj7qut+Lbk3Vf1tTUXI9qu91Pjq1QFEUBgJaWFgBo8yGOQ8eNGxcAAOvXr/8QwBUfYygAKL169eoCABcuXACAWtn2hOGv0+kMNO1KiPDw8F4A4rZv3/7R1KlTR0+bNu1ht9u9r1+/fqitrQXJgwDarRC6/QjPzs4+QJIffPCB9/aQmSAA43ft2mW0e1QGoi8CAPyLsZccExNTC2BlRkbGRdOyYJCP2csBIN6UAZzCd7cBbQCijYp/dXU1ExMTz6SmptaMHj36f9LS0vYlJCRsl6mxIWSdu3fv/g5J7t+/nwC2AShMTk6+SJKff/45AWRLYbD7+fndAeDf5BJnLoCCyZMnt5JkdnZ2C4B/F0KEm1Pu+Pj4rST55ZdfEsBWAK+mpaVdMo3raDn7KwDuSEpK+m+S3LBhAwG8DuCtHTt2UBbpjgC408vvcFVV15HkuXPnjMp+p5uMf0RcXNyHJNnQ0EBVVfcCWBQXF3fG+Jv0yxABPwB5LS0tRmFxN4BlTzzxxGWSXLx4sS5F3GGFy+1Hp5SUlJq6ujoWFxdTpsZ2H+0iIyMj/0iSWVlZX5mr5jfJFroPGzasxlhTnjp1iiTZ3NxMl8tlrCd9pfa9SkpKSJI5OTmnZOageLUZZqxvfVFWVkZcPwdgNwnSCKPqb17jkmR8fPzfZMDZ5CRsFBmNI7h95s2b1yhT7/MAYmStwCx4vy0uLqa3v5qmEcCfvSr1QQAeXb16NY3Cm3HQ55133iGAp+SxZTNhKSkpfzUddkrFjYevzAQCeGjp0qXfsYckY2NjTwD4leGDLCL2HTdunNtoY+zWSHFcIHdsFCtcfuZ1vO9Eqs3m7/F47sb1k2qX/f3997W2tl7BjWfpBYDOzzzzzIVJkyZh0KBBCwEsB3AJvl9AETabLcDj8dwRFRW1ctasWb8JCgpSzp07d62wsPC/Wltb8xRFadR1/ZqPXYbgAQMGbI2Pjw/+6quv9ldVVT0r01ezuPRJSUn5Y9euXXVd11WzDaqq6kePHm3+7LPPRgO4KlNuxWazhXo8nuTk5OSXMjIyEl0uFxoaGtqKior+dPXq1VdUVT0jj7r68ieoT58+vx8yZMjdx48fP1JVVTVF9m20VW02WyfZf97YsWPjXS4X6urqWvPy8jYCWCyEuEDS8FdVFKWzruv//OSTTy5OTk7uqWkaPv3007qysrJ8RVH+LI8ym8/rB3Tu3HnRI488knLo0KG2ffv2ZQI4C98vP6mqqoZqmpaclpa2cOTIkX39/f3R0NDQUVxc/G5TU9PLqqrWa5rWLH1QVFUN0TStX1JSUvH48eP7BwYG4uDBg1cKCgpeBbBe2u+2Qug2EwD5N5sMPuNtMe8XP4TT6Qxoa2sbIGeXvUKIK7d4IISiKC5d1wPljOfA9bPwzYqiXNV13dd6Uqiq6qdpml2mpe02m63d4/G4vcTF5fF47LJf71nJA6BZVVW3pmntuPHlmAD5wk6Q9NnbHp9vHaqq6tA0zU/64PZhk1FfCZB9G/23ALiqKEqzD39tpvbGUqoFwFUhRLP3yzpCCDtJpxyXDulfG27+pqRR3DXsUWVd4Yq0x/taVQjhIhksC8L+ABpM9ljBf5sKwI8pIBr75L5E4vvu+UNeG/a+hv+AL7yFH8qPtOfHjtOP6V/Bja8D6z/B2Nys/1u9Xv33tLf4GfF/LC4GCJwByWIAAAAASUVORK5CYII\x3d"; b.yH = "data:image/jpeg;base64,/9j/4QAYRXhpZgAASUkqAAgAAAAAAAAAAAAAAP/sABFEdWNreQABAAQAAAAlAAD/4QMpaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLwA8P3hwYWNrZXQgYmVnaW49Iu+7vyIgaWQ9Ilc1TTBNcENlaGlIenJlU3pOVGN6a2M5ZCI/PiA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJBZG9iZSBYTVAgQ29yZSA1LjAtYzA2MCA2MS4xMzQ3NzcsIDIwMTAvMDIvMTItMTc6MzI6MDAgICAgICAgICI+IDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+IDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiIHhtbG5zOnhtcE1NPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvbW0vIiB4bWxuczpzdFJlZj0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL3NUeXBlL1Jlc291cmNlUmVmIyIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOjM4MDBEMDY2QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOjM4MDBEMDY1QTU1MjExRTFBQTAzQjEzMUNFNzMxRkQwIiB4bXA6Q3JlYXRvclRvb2w9IkFkb2JlIFBob3Rvc2hvcCBDUzUgV2luZG93cyI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4bXAuaWlkOkU2RTk0OEM4OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIiBzdFJlZjpkb2N1bWVudElEPSJ4bXAuZGlkOkU2RTk0OEM5OERCNDExRTE5NEUyRkE3M0M3QkE1NTlEIi8+IDwvcmRmOkRlc2NyaXB0aW9uPiA8L3JkZjpSREY+IDwveDp4bXBtZXRhPiA8P3hwYWNrZXQgZW5kPSJyIj8+/+4ADkFkb2JlAGTAAAAAAf/bAIQADQkJCQoJDQoKDRMMCwwTFhENDREWGhUVFhUVGhkUFhUVFhQZGR0fIB8dGScnKionJzk4ODg5QEBAQEBAQEBAQAEODAwOEA4RDw8RFA4RDhQVERISERUfFRUXFRUfKB0ZGRkZHSgjJiAgICYjLCwoKCwsNzc1NzdAQEBAQEBAQEBA/8AAEQgAyACgAwEiAAIRAQMRAf/EALAAAAEFAQEAAAAAAAAAAAAAAAQAAgMFBgcBAQEAAwEBAAAAAAAAAAAAAAAAAQMEAgUQAAIBAgIEBwoLBgQGAwAAAAECAwAEEQUhMRIGQVFxsTITFGGBwdEiQlKSMzWRoeFicqKyI1NzFYJjJDQWB9KjVCbxwkNkJWXik3QRAAIBAgMFBQcDBQEAAAAAAAABAhEDIRIEMUFRcTJhwVIUBZGhsSJyEzOB0ULhYpIjUxX/2gAMAwEAAhEDEQA/AMJSpUqAVKlXuFAeUq9wpUB5XuFe4V6ooDzZHDox0CnGMinzwl7Z8NajaHeoO3vmTBZBtp9YUIqTEV5ROxHKnWRnaU8VRMhFBUjpV7hSoSeUq9pUB5Sr2lhQHlKvcK8oBV7hSFSRrtaKAZs07YNPM1pG2xJIAw1jSeandry/8X4m8VCKkWwaWwam7Xl/4v1W8VLtmX/i/VbxUoKkWwakSM407tmX/i/VbxUmzGwjQsjdY41IARie/U0IbZO0kNtCXnOCkEBeFu4KI3Bs7DNb27ya+jDx3kJeEnpJJEcQVbWDsk17u5urd591ucZkWhym2Vnd9RkCDEpFxDRpbw0bunu5mlp2De2FMLYXOD2wB2xbOeraUcYGJ72mlSUiqzzdzMd3Z3mixltA2yzcK/NlHM1DQyRXce1HocdNOEfJXZ88y9ZojOqhiBszIRiHQ8Y4cK5TvHuzLljHNMqxNoDjLFraHHnjPxcNCGVbxEUzYNTx5jZSxhpW6qTzlwJ+DCvO2Zf+L9VvFSgqyHYNLYNTdssPxfibxUu15f8Ai/VPiqCakOwa82DU/a8v/F+JvFTDdWPBL8R8VKCvYRYV5UzoMAy6QdIIqI0B4KJtxiRQwou16QoGUkntH5Tz0RbZbmF2hktraSVBo2lUkY8tDye0flPPXTslVUyiyVRsjqUOA4yMT8dW2ram2m6UVTNq9S7EIyUVJydMTn/6DnP+im9Wl+g5z/opvVrpteEhQWY4AaSTwAVf5WPiZh/9S5/zj7zltzlmYWkfWXNvJDGTgGcYDHirR7i7mSbwXParsFMrgb7w6jKw/wCmnc9I14kF3vpvCljbMyWMOJL4aEiB8qU/ObUK7HYWVrl1pFZWiCOCBQqKOLjPGTrNZZqKbUXVHq2nNwTuJRk1VpbgXN8s7Rk5ym0UQQzhIG2NAjhxHWbI+gCBVjBBFbwxwQqEiiUJGg1BVGAFe7dV28WYLYZFmF2Th1UD7JGjymGyn1iK5OyzIBGB1HgrLZhamzumQAGJwSqnSCh1q3GOCodxt4cxurdcpzuN4cyhiWaF5Bg09udUmnWw1H/jV9nFuJ7Quo+8h8peThFA+047vduyMtk7fYqTl07YFdfUufMPzT5p71UdtlmYXaGS2t3mQHAsgxANdadYJopLe4QS2867EsZ4QfCNYrCFbjdDPmgkYyWFxgVf04ifJf6ScNdRUW1XBb6FU5TjF5EpSSrGu/s5lN+g5z/opvVpfoOc/wCim9WtdHnatvObJXDW7xLGhB8nrPaY9/HCr+tEdPCVaSeDoYLnqF63lzW4/PFSW3ecxbI84VSzWUwUaSdg0DXXK5nvAipnd6qgKvWnQO7pri9ZUEmm3Vl2j1kr8pRlFRyquBNZjGxQ/S56Y1S2fu9OVueon11Szahoou06QoQUXadIVCD2FJJ7R+U89dMydv8Axdn+TH9muZye0flPPXQstlK5Tbka1gUjlC1q0vVLkeb6r+O3Tx9xcY1nt8c0NrZCyiOE1108NYjGv1joo7Js1jzKyScYLIvkzL6LDwHXVJksH9Sb49dKNq0tj1jA6uriOCL+02FWX7iVtZX1/AzaHTyeoauKn2MX9W79zebiZCuR5MjSrhfXuEtwTrUeZH+yNfdrRNcxI6IzhXlJEak6WIGJ2Rw4ChWnChndtlVBLMdQA0k1gbXNMzzDfDLs6mjaPKppJbWwJ1bOwwxw43OnHh71YT3DpfWUJmFlb5jHHDdeXBHIsrRea5TSqvxqG04cNN62vetoCS4tre5mgnkGE9q+3DKOkuI2WX6LDQRRHWDh1UCtwj7QRg2wdl8Djgw1qe7XvW0BQ3kfZ7mSLgU+T9E6RVbnuVrnWVSWqj+Lt8ZbRuHEdKPkYVcZ2MJY5fSGyeVar45+rkWQHAqccalPE5km1htWK5nK4Wnt5FuUBUwOMG4nGkA/BXUrW4S6torlOjMgcd/xVn7rLo7zKs0uEjCNeSvdwoBhgsZxX1l2j36k3Lu+uyprdj5Vs5A+i/lD48a0aaVJOPi7jB6lbzWozpjB48pf1NDXNN4vfl7+Z4BXS65pvF78vfzPAK71XTHmZ/S/yT+jvJ7L3fHytz1E+upbL+Qj5W56jfXWRnsIYKLtekKEFGWvSFQgyjk9o/Keet3YthlMP/5x9msJJ7R+U89biyb/AMXEv7gD6tadL1T+kwepRrC39ZkLDMbiwMvUHRPG0bjlGg8ore/23sxBldxfMPLupNhT8yL/AORNZbdzJ484scytxgLqJY5LZj6Q2sV5G1Vud1mjjyG0ij0NEGSZToKyhjtqw4waztuiXA3qKTbSxltfGhbZlE95ZtZqxVbgiOZhrER9ph3Svk9+pJILZ4Y4DGBFCUMKjRsGPobPFhUfW0NJmljE2xJcIrcI2vFUEln1lRXd6lrazXT9GCNpD+yNqoI7mOVduNw6nzlOIoPOUa6yye1XXcbMR5GdQ3xY0BSbj31/FcTQZirJ+q431q7anbHCTZ72Bw7lbPrKBMcBWNNgbMBBh+bsjBdni0VJ1lARZs6yWiupxCuMDy6KpS2IwOo6DTr3Mre3e5tZZVUM4ZBjqOOJoWO4jkXajcOOMHGgDISvWIrdAkKR80+TzVl908bPPL3LzxOuHdifxVfiTAg92qI/w+/8gGgSyN/mR7XPVlp0lF/3L3mbVKtu5Hjbk/8AHE2Fc03i9+Xv5ngFdKNc13i9+Xv5ngFaNV0x5nn+l/kn9HeEWXu+PlbnqJ9dS2Xu9OVueon11kZ7CGCjLXpCgxRlr0hUIPYUcntH5Tz1s8vb+Bt1/dqPirGSe0flPPWusG/g4Py15q06XqlyMWvVYQ+ruI9xJOqzO9hOto/sP8tbGOFIrmWeM7IuMDMnAXXQJOUjQeOsJk0nY96ip0CYunrjaHx1t+srPJUbXBm2LrFPikwTOb+T+VhbZxGMrDXp83x1QSy2tucJpUjPETp+Cn5/ftaRvKvtp3Kx48HG3erHMzOxZiWZtLMdJNQSbbL71Vk6yynViOkqnEEfOWtPbXi3EQkGg6mXiNckjeSJxJGxR10qw0GtxuxmvbImD4CZMFlA4fRfv0BqesqqzTMZNMEDbIHtHH2QeCiZJSqMQdOGiue53mz3czQwsRbIcNHnkec3c4qAMuriz68gTIToxwOOnlp0MjxMJYW741Gs3RVldtbygE/dMcHX/moDaxTiWNZB53B3arb8/wC+4SOF4sf/AKxU9kcBsfOGHfoUHtG/RbzY5Die5HHhXdvavqiZ9Q8Jdlq4/gbKua7xe/L38zwCuhpf2Uk/Zo50kmwJKIdogDjw1VzzeL35e/meAVp1LTgqY4nn+mRauzqmqwrjzCLL3fHytz1E+upLL+Qj5W56jfXWRnroYKLtekKEFF2vSFQg9hSSe0flPPWosm/hIfoLzVl5PaPynnrRWb/w0X0F5q06XqlyM2sVYx5gmbFre/t71NY2T+0h8VbSO5SWNJUOKSAMp7jDGspmMPaLRlXS6eWve1/FRO7WYdbZm1Y/eW/R7qHxHRXGojlm3ulid6aVbaW+OALvgCLq2Hm9WxHKWqjhj6xsK1e8dm15l4niG1LZkswGsxtrPeOmsvayBJA1VItlWjptLuTdPMo7LtjRDq9naK4+WF9IrUW7BaHOljGqVHB7w2hzVoZt87d8vaNYSLl02CcRsDEbJbj71Uu7UBkvJ7/D7q2QoDxySaAO8MTXdxRVMpRp5XZOWdF/ms7R5XdyKfKWJsO/5PhrG5XlNxmEywW6bTnTxAAcJNbGSMXkM1pjgbiNo1PziPJ+Os7u7m/6ReM00ZOgxSpqYYHT3wRXMKN4ll9zUG4bQfNshu8sZVuEA2hirA4qe/VOwwrVbzbww5mI44UKRRYkbWG0S3JWctbd7u5WFfOOLHiUdJqmaipfLsIsObhWe001lMkMVvJNjhghIALMcBxCs7fxXQmkupx1bXDswGPlaTidVaEyKNXkoo4eBV+Sq7L7Vs9zcBgeyQ4GQ/MB1crmoim2orezqcowTuSeEY48jQ7oZX2PLzdyLhNd6RjrEY6I7+uspvH78vfzPAK6UAAAFGAGgAcArmu8Xvy9/M8ArTfio24RW5nnaG67uou3H/KPuqT2X8hHytz1G+upLL3enK3PUb66ys9RDBRdr0hQgou06QqEGUkntH5Tz1e238vF9BeaqKT2j8p56vbb+Xi+gvNWjTdUuRn1XTHmTh8KrJTJlt8t1CPIY44cGnpJVjTJYkmjaN9Ib4u7V923njTethRauZJV3PaW1rfLIiXEDYg6R4VYc9CXW7thfOZbKdbGZtLW8uPVY/u3GrkNUkM9zlcxUjbhfWOA90cRq4gv4LhdqN+VToNYWmnRm9NNVWNTyHc6VWBv8wt4YeHqm6xyPmroq1Z7WGFLSxTq7WLSuPSdjrkfumq5yHXDUeA92oO2SKpVumNAaoJLMXH3myp0rpJ4uKhc3tbDM5BMri1zAj79j7KTiY8TcdBpcsith0286o+sPCagEX9Pzg4zXUCp6QYse8oouCG3tk6m1BYv05W6T+IdyolxbHDAAa2OgDlNCz3ryN2WxBd5PJMg1t81eId2ukqnLlTBbfcuY+9uJLiRcvtPvHdsHK+cfRHcHDWsyawjyy0WBcDI3lTP6TeIcFV+S5OmXx9bJg1048o8Cj0V8Jq2DVu09nL80up7OxHi+oal3P8AXB/IsZS8T/YOV65zvCcc7vfzPAK3ivWCz445zeH954BXOr6I8yfSfyz+jvCLP3fHytz1G+upLP3fHytz1E+usbPaQ0UXadIUIKLtekKhB7Ckk9o/Keer22/l4/oLzVRSe0flPPV7b/y8X0F5q0abqlyM+q6Y8yQsBTDMor1o8aiaE1pbluMqS3sbLLHIhSRQyngqukhaJ9uBjo+H5aOa3ao2t34qouRlLajTalGP8v0IY8ylXQ+PKPFU/bYXOLPge6CKia0LaxTOxHu1Q7cuBd9yPEJ7TbjXKO8CajbMIF6CNIeNvJHjqIWJ7tSpYkalqVblwIdyG+RGXur0hXYJFxal+Dhq5y3slkv3Y2pD0pTr+QUClpJRUdo9XW4OLrTHtM16cZLLWkeC7y4jvlNEpcRtw1Ux27Ci448NZrTFy3nn3IQWxlgGrDZ3pza7/M8ArZo+ArF5171uvp+CqdV0R5l/psUrs2vB3hdl7vTlbnqJ9dS2Xu+PlbnqJ9dY2eshooq16QoQUXa9IVCD2FLJ7RuU89WNtmUSQqkgYMgw0accKrpPaPynnrZWG4Vi+VWmY5tnMWXG+XrIYnA0rhj0mdcTgdNdwnKDqjmduM1SRR/qlr8/4KX6pa8T/BVzDuLZXudRZblmbxXcPUNPc3KqCIwrbOzgrHEnHjoyD+3eSXkht7DeKG4umDGOJVUklfouThXfmbnZ7Cvy1vt9pmv1W1+d8FL9VteJvgq5yrcOGfLmzHN80iyyETPbptAEFo2ZG8pmUa1OFNn3Ky6W/sbDKM5hv5bx2WTZA+7RF2y52WOPJTzE+z2Dy1vt9pT/AKpacTerS/U7Tib1a04/t7kDXPY03jhN0W6sQ7K7W3q2dnrMccaDy/8At80kuZfqWYxWNtlcvUPPhiGYhWDeUy7IwYU8xPs9g8tb7faUn6pacTerTxm9oOBvVq3v9z927aynuId44LiWKNnjhAXF2UYhRg516qpsryjLr21665zFLSTaK9U2GOA87SwqY37knRU+BzOzags0s1Oyr+BKM6sxwP6tSDPLMen6vy0rvdm3Sxlu7K/S7WDDrFUDUTxgnTU826eXW7KlxmqQuwDBXUKcD+1Xee/wXuKX5XDGWLapSVcOyhEM/seJ/V+WnjeGx4pPV+Wkm6kKZlFay3Jlt7iFpYZY8ASVK6DjtDDA0f8A0Tl340/1f8Ndx8xJVWXB0KbktFFpNzdVXAC/qOwA0CQni2flrO3Vwbm5lnI2TKxbDirX/wBE5d+NcfV/wVR7xZPa5U9utvI8nWhmbbw0YEAYYAVxfhfy5rlKR4Fulu6X7mW1mzT8S4Yis/5CPlbnqJ9dSWfu9OVueon11mZvQ2i7XpChKKtekKhBlNJ7R+U89bDfGTb3a3ZX0Lcj6kdY+T2j8p560288m1kWQr6MJ+ylSAr+2cnV5renjs3H1loX+3j9XvbbtxLN9lqW4UnV5jdnjtXHxihtyZNjeSBu5J9k1BJe7xy7W5CJ/wCzuD/mTVTf2+fq97LJuLrPsNRueS7W6aJ/38x+vLVXuY+xvHaNxbf2GoCezf8A36j/APsSf8w1sLnqczTefJluYoLm5uo5F61sBshItP1cNFYe1f8A3ir/APfE/wCZUe9bB94r5jwuPsrQFhmG4l/Z2M17HdW90tuu3IkTHaCjWdIw0VVZdks9/C06yJFEp2dp+E1bbqybGTZ8vpQD7L1XRv8A7blT96Oda7tpNuuNE37Cq9KSisjyuUoxrStKllHbLlWTXsMs8chuSuwEPDqwoLe5y+YRE/gLzmqRekvKKtd4327yM/ulHxmrHJStySWVRyrjxKI2XC/CTlnlPPKTpTdFbP0L1bgrf5Lp0G3dPhQHwV0S1lzBsns3sESR8Crh9WAJGjSOKuU3E+zdZQ3oJh8IArdZXFDmOTpHa3i2+YrI2KtKy4ricBsBuHHgFXSo440+Wa2qqxjvM9uMoy+WvzWpLCWWWE28HxL6e43ojgkeSCBY1Ri5BGIUDT51cl3vm276BBqSEH4WbxV0tlkyXJcxTMb+OW6uY9mGHrCzDQwwAbTp2uKuTZ9N1uYsfRRR8WPhrm419mSSjRyiqxVK7y23B/ftuTm2oSdJyzNVw3BFn7vTlbnqF9dS2fu9OVueon11lZuQ2iLdsGFD05H2dNQGV0ntG5Tz1dWm9N1b2kVq8EVwsI2UaQaQOKhmitZGLOmk68DhSFvY+gfWNSAg7z3Qvo7yKCKIohiaNR5LKxx8qpxvjcqS0VpbxvwOAcRQPZ7D0G9Y0uz2HoH1jUCpLY7zXlpbm3eKO5QuzjrBqZji3x17PvNcyT288VvDBJbMWUovS2hslW7mFQ9nsPQPrGl2ew9A+saCod/WNxtbYsrfb17WBxx5ddD2281xC88klvDcSXEnWuzrqOGGC9zRUPZ7D0G9Y0uzWHoH1jQVCLreq6ntZbaO3it1mGy7RjTs1X2mYy20ZiCq8ZOODcdEdmsPQb1jS7PYegfWNdJuLqnQiSUlRqpFLmryxtH1Ma7Qw2gNNPOdSt0oI27p007s9h6B9Y0uz2HoH1jXX3Z+I4+1b8IJdX89xLHKQFMXQUahpxoiPN5P+onfU+A0/s9h6DesaXZ7D0D6xpG7OLbUtu0StW5JJx2bBsmbtiSiEk+cxoCWWSaVpZOk2vDVo0VYdnsPQb1jSNvZcCH1jSd2c+p1XAmFqEOmOPEfaH+BQd1ueo211IzrgFUYKNAAqI1WztCpUqVCRUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoBUqVKgFSpUqAVKlSoD/9k\x3d"; b.yH = "res/textures/loading_bg.png"; var b = b || {}, ca = { id: 0 | 998 * Math.random(), Naa: 0 | 998 * Math.random(), kU: function(a, d, e) { a = a.toString(); var f = a.substring(a.indexOf("(") + 1, a.indexOf(")")), f = f.trim(); for (a = a.substring(a.indexOf("{") + 1, a.lastIndexOf("}")); - 1 !== a.indexOf("this._super");) { var g = a.indexOf("this._super"), h = a.indexOf("(", g), k = a.substring(h + 1, a.indexOf(")", h)), k = k.trim(); a = a.substring(0, g) + "ClassManager[" + e + "]." + d + ".call(this" + (k ? "," : "") + a.substring(h + 1) } return Function(f, a) }, kV: function() { return this.id++ }, b$: function() { return this.Naa++ } }; ca.kU.kga = ca; (function() { var a = /\b_super\b/, d = b.pb.Ee[b.pb.xh.E7]; d && console.log("release Mode"); b.sa = function() {}; b.sa.extend = function(e) { function f() { this.ba = ca.b$(); this.ctor && this.ctor.apply(this, arguments) } var g = this.prototype, h = Object.create(g), k = ca.kV(); ca[k] = g; var m = { writable: !0, enumerable: !1, configurable: !0 }; h.ba = null; f.id = k; m.value = k; Object.defineProperty(h, "__pid", m); f.prototype = h; m.value = f; Object.defineProperty(f.prototype, "constructor", m); this.Wj && (f.Wj = b.q(this.Wj)); this.Xj && (f.Xj = b.q(this.Xj)); for (var n = 0, p = arguments.length; n < p; ++n) { var s = arguments[n], t; for (t in s) { var v = "function" === typeof s[t], w = "function" === typeof g[t], x = a.test(s[t]); d && v && w && x ? (m.value = ca.kU(s[t], t, k), Object.defineProperty(h, t, m)) : v && w && x ? (m.value = function(a, d) { return function() { var e = this._super; this._super = g[a]; var f = d.apply(this, arguments); this._super = e; return f } }(t, s[t]), Object.defineProperty(h, t, m)) : v ? (m.value = s[t], Object.defineProperty(h, t, m)) : h[t] = s[t]; if (v) { var u, y; if (this.Wj && this.Wj[t]) { var v = this.Wj[t], C; for (C in this.Xj) if (this.Xj[C] === v) { y = C; break } b.i(h, v, s[t], s[y] ? s[y] : h[y], t, y) } if (this.Xj && this.Xj[t]) { v = this.Xj[t]; for (C in this.Wj) if (this.Wj[C] === v) { u = C; break } b.i(h, v, s[u] ? s[u] : h[u], s[t], u, t) } } } } f.extend = b.sa.extend; f.ypa = function(a) { for (var d in a) h[d] = a[d] }; return f } })(); b.i = function(a, d, e, f, g, h) { if (a.__defineGetter__) e && a.__defineGetter__(d, e), f && a.__defineSetter__(d, f); else if (Object.defineProperty) { var k = { enumerable: !1, configurable: !0 }; e && (k.get = e); f && (k.set = f); Object.defineProperty(a, d, k) } else throw Error("browser does not support getters"); if (!g && !h) for (var k = null != e, m = void 0 != f, n = Object.getOwnPropertyNames(a), p = 0; p < n.length; p++) { var s = n[p]; if ((a.__lookupGetter__ ? !a.__lookupGetter__(s) : !Object.getOwnPropertyDescriptor(a, s)) && "function" === typeof a[s]) { var t = a[s]; if (k && t === e && (g = s, !m || h)) break; if (m && t === f && (h = s, !k || g)) break } } a = a.constructor; g && (a.Wj || (a.Wj = {}), a.Wj[g] = d); h && (a.Xj || (a.Xj = {}), a.Xj[h] = d) }; b.q = function(a) { var d = a.constructor ? new a.constructor : {}, e; for (e in a) { var f = a[e]; d[e] = "object" !== typeof f || !f || f instanceof b.e || f instanceof HTMLElement ? f : b.q(f) } return d }; b.RC = function(a, d) { for (var e in a) d[e] = a[e] }; b = b || {}; b.Ea = b.Ea || {}; b.kka = function() {}; b.ku = { $qa: 0, back: 6, Tqa: 18, ZT: 8, Mea: 9, QU: 13, shift: 16, Pka: 17, alt: 18, pause: 19, uka: 20, escape: 27, Iva: 32, Ora: 33, Nra: 34, end: 35, home: 36, left: 37, zwa: 38, right: 39, ila: 40, select: 41, Bpa: 45, yga: 46, 0: 48, 1: 49, 2: 50, 3: 51, 4: 52, 5: 53, 6: 54, 7: 55, 8: 56, 9: 57, a: 65, b: 66, c: 67, K: 68, fi: 69, nj: 70, g: 71, wd: 72, Pw: 73, WC: 74, XC: 75, ZC: 76, eD: 77, Pn: 78, hD: 79, d: 80, wD: 81, r: 82, ih: 83, jM: 84, u: 85, v: 86, S: 87, x: 88, y: 89, z: 90, ara: 96, bra: 97, cra: 98, dra: 99, era: 100, fra: 101, gra: 102, hra: 103, ira: 104, jra: 105, "*": 106, "+": 107, "-": 109, numdel: 110, "/": 111, ama: 112, ema: 113, fma: 114, gma: 115, hma: 116, ima: 117, jma: 118, kma: 119, lma: 120, bma: 121, cma: 122, dma: 123, nra: 144, ita: 145, ";": 186, kta: 186, Xla: 187, "\x3d": 187, ",": 188, Eka: 188, Qka: 189, ".": 190, Xra: 190, pma: 191, qpa: 192, "[": 219, yra: 219, mka: 220, "]": 221, Bka: 221, quote: 222, lla: 1E3, mla: 1001, nla: 1003, kla: 1004, jla: 1005 }; b.Fga = 0; b.CE = 1; b.bN = 2; b.Gga = 3; b.Hga = 4; b.a_ = 5; b.E9 = function(a) { return 8 < a.length && 137 === a[0] && 80 === a[1] && 78 === a[2] && 71 === a[3] && 13 === a[4] && 10 === a[5] && 26 === a[6] && 10 === a[7] ? b.CE : 2 < a.length && (73 === a[0] && 73 === a[1] || 77 === a[0] && 77 === a[1] || 255 === a[0] && 216 === a[1]) ? b.bN : b.a_ }; b.zpa = function(a, d) { function e() {} e.prototype = d.prototype; a.XD = d.prototype; a.prototype = new e; a.prototype.constructor = a }; b.nka = function(a, d, e) { var f = arguments.callee.caller; if (f.XD) return ret = f.XD.constructor.apply(a, Array.prototype.slice.call(arguments, 1)); for (var g = Array.prototype.slice.call(arguments, 2), h = !1, k = a.constructor; k; k = k.XD && k.XD.constructor) if (k.prototype[d] === f) h = !0; else if (h) return k.prototype[d].apply(a, g); if (a[d] === f) return a.constructor.prototype[d].apply(a, g); throw Error("cc.base called from a method of one name to a method of a different name"); }; b.p0 = function() { this.y = this.x = 0 }; b.d = function(a, d) { return void 0 === a ? { x: 0, y: 0 } : void 0 === d ? { x: a.x, y: a.y } : { x: a, y: d } }; b.DL = function(a, d) { return a && d && a.x === d.x && a.y === d.y }; b.Lha = function(a, d) { this.width = a || 0; this.height = d || 0 }; b.size = function(a, d) { return void 0 === a ? { width: 0, height: 0 } : void 0 === d ? { width: a.width, height: a.height } : { width: a, height: d } }; b.Gva = function(a, d) { return a && d && a.width === d.width && a.height === d.height }; b.Dh = function(a, d, e, f) { this.x = a || 0; this.y = d || 0; this.width = e || 0; this.height = f || 0 }; b.rect = function(a, d, e, f) { return void 0 === a ? { x: 0, y: 0, width: 0, height: 0 } : void 0 === d ? { x: a.x, y: a.y, width: a.width, height: a.height } : { x: a, y: d, width: e, height: f } }; b.PW = function(a, d) { return a && d && a.x === d.x && a.y === d.y && a.width === d.width && a.height === d.height }; b.Iv = function(a) { return a && 0 === a.x && 0 === a.y && 0 === a.width && 0 === a.height }; b.osa = function(a, d) { return a && d ? !(a.x >= d.x || a.y >= d.y || a.x + a.width <= d.x + d.width || a.y + a.height <= d.y + d.height) : !1 }; b.ox = function(a) { return a.x + a.width }; b.psa = function(a) { return a.x + a.width / 2 }; b.it = function(a) { return a.x }; b.px = function(a) { return a.y + a.height }; b.qsa = function(a) { return a.y + a.height / 2 }; b.jt = function(a) { return a.y }; b.mx = function(a, d) { return d.x >= b.it(a) && d.x <= b.ox(a) && d.y >= b.jt(a) && d.y <= b.px(a) }; b.mca = function(a, d) { var e = a.y + a.height, f = d.x + d.width, g = d.y + d.height; return !(a.x + a.width < d.x || f < a.x || e < d.y || g < a.y) }; b.rsa = function(a, d) { return !(a.x + a.width < d.x || d.x + d.width < a.x || a.y + a.height < d.y || d.y + d.height < a.y) }; b.kt = function(a, d) { var e = b.rect(0, 0, 0, 0); e.x = Math.min(a.x, d.x); e.y = Math.min(a.y, d.y); e.width = Math.max(a.x + a.width, d.x + d.width) - e.x; e.height = Math.max(a.y + a.height, d.y + d.height) - e.y; return e }; b.lca = function(a, d) { var e = b.rect(Math.max(b.it(a), b.it(d)), Math.max(b.jt(a), b.jt(d)), 0, 0); e.width = Math.min(b.ox(a), b.ox(d)) - b.it(e); e.height = Math.min(b.px(a), b.px(d)) - b.jt(e); return e }; b.Uy = b.sa.extend({ aS: null, sH: null, ctor: function() { window.DOMParser ? (this.sH = !0, this.aS = new DOMParser) : this.sH = !1 }, parse: function(a) { return this.SH(a) }, SH: function(a) { var d; this.sH ? d = this.aS.parseFromString(a, "text/xml") : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = "false", d.loadXML(a)); return d } }); b.o0 = b.Uy.extend({ parse: function(a) { var d = this.SH(a).documentElement; if ("plist" !== d.tagName) throw b.log("plist.tagName:" + a), "Not a plist file!"; a = null; for (var e = 0, f = d.childNodes.length; e < f && (a = d.childNodes[e], 1 !== a.nodeType); e++); return this.RH(a) }, RH: function(a) { var d = null, e = a.tagName; if ("dict" === e) d = this.h5(a); else if ("array" === e) d = this.g5(a); else if ("string" === e) if (1 === a.childNodes.length) d = a.firstChild.nodeValue; else for (d = "", e = 0; e < a.childNodes.length; e++) d += a.childNodes[e].nodeValue; else "false" === e ? d = !1 : "true" === e ? d = !0 : "real" === e ? d = parseFloat(a.firstChild.nodeValue) : "integer" === e && (d = parseInt(a.firstChild.nodeValue, 10)); return d }, g5: function(a) { for (var d = [], e = 0, f = a.childNodes.length; e < f; e++) { var g = a.childNodes[e]; 1 === g.nodeType && d.push(this.RH(g)) } return d }, h5: function(a) { for (var d = {}, e = null, f = 0, g = a.childNodes.length; f < g; f++) { var h = a.childNodes[f]; 1 === h.nodeType && ("key" === h.tagName ? e = h.firstChild.nodeValue : d[e] = this.RH(h)) } return d } }); b.oT = { load: function(a, d, e, f) { b.Z.cD(a, f) } }; b.Z.Bj(["txt", "xml", "vsh", "fsh", "atlas"], b.oT); b.L4 = { load: function(a, d, e, f) { b.Z.qW(a, f) } }; b.Z.Bj(["json", "ExportJson"], b.L4); b.K4 = { load: function(a, d, e, f) { b.Z.oW(a, f) } }; b.Z.Bj(["js"], b.K4); b.t4 = { load: function(a, d, e, f) { b.Z.td[d] = b.Z.at(a, function(a, e) { if (a) return f(a); b.Xa.Tb(d); f(null, e) }) } }; b.Z.Bj("png jpg bmp jpeg gif ico".split(" "), b.t4); b.P5 = { load: function(a, d, e, f) { b.Z.td[d] = b.Z.at(e.src, function(a, e) { if (a) return f(a); b.Xa.Tb(d); f(null, e) }) } }; b.Z.Bj(["serverImg"], b.P5); b.q5 = { load: function(a, d, e, f) { b.Z.cD(a, function(a, d) { if (a) return f(a); f(null, b.Wba.parse(d)) }) } }; b.Z.Bj(["plist"], b.q5); b.x3 = { x1: { ".eot": "embedded-opentype", ".ttf": "truetype", ".woff": "woff", ".svg": "svg" }, GR: function(a, d, e) { var f = document, g = b.path, h = this.x1, k = b.ic("style"); k.type = "text/css"; f.body.appendChild(k); var m = "@font-face { font-family:" + a + "; src:"; if (d instanceof Array) for (var n = 0, p = d.length; n < p; n++) e = g.Hn(d[n]).toLowerCase(), m += "url('" + d[n] + "') format('" + h[e] + "')", m += n === p - 1 ? ";" : ","; else m += "url('" + d + "') format('" + h[e] + "');"; k.textContent += m + "};"; d = b.ic("div"); e = d.style; e.fontFamily = a; d.innerHTML = "."; e.position = "absolute"; e.left = "-100px"; e.top = "-100px"; f.body.appendChild(d) }, load: function(a, d, e, f) { d = e.type; a = e.name; d = e.Kva; b.Je(e) ? (d = b.path.Hn(e), a = b.path.q7(e, d), this.GR(a, e, d)) : this.GR(a, d); f(null, !0) } }; b.Z.Bj(["font", "eot", "ttf", "woff", "svg"], b.x3); b.Iia = { load: function(a, d, e, f) { b.Z.yba(a, f) } }; b.i3 = { load: function(a, d, e, f) { b.Z.zba(a, f) } }; b.Z.Bj(["csb"], b.i3); window.CocosEngine = b.xE = "Cocos2d-JS v3.6"; b.Cy = 0; b.tE = b.d(0, 0); b.DZ = 0.5; b.gga = 1; b.qF = 1; b.Z_ = 0; b.fO = 0; b.gO = 0; b.Tha = 0; b.Fha = 1; b.Eha = "-hd"; b.o2 = 1; b.rF = 0; b.Iha = 0; b.u_ = 0; b.t_ = 0; b.IE = 1; b.nga = b.xE + "-canvas"; b.jy = 1; b.Fi = 1; b.Rb = function(a) { var d = this === b ? document : this; if (a = a instanceof HTMLElement ? a : d.querySelector(a)) a.find = a.find || b.Rb, a.$K = a.$K || function(a) { return this.className.match(RegExp("(\\s|^)" + a + "(\\s|$)")) }, a.OT = a.OT || function(a) { this.$K(a) || (this.className && (this.className += " "), this.className += a); return this }, a.sca = a.sca || function(a) { this.$K(a) && (this.className = this.className.replace(a, "")); return this }, a.remove = a.remove || function() { this.parentNode && this.parentNode.removeChild(this); return this }, a.WT = a.WT || function(a) { a.appendChild(this); return this }, a.cca = a.cca || function(a) { a.childNodes[0] ? a.insertBefore(this, a.childNodes[0]) : a.appendChild(this); return this }, a.Qx = a.Qx || function() { this.style[b.Rb.dfa] = b.Rb.translate(this.position) + b.Rb.rotate(this.rotation) + b.Rb.scale(this.scale) + b.Rb.xt(this.xt); return this }, a.position = a.position || { x: 0, y: 0 }, a.rotation = a.rotation || 0, a.scale = a.scale || { x: 1, y: 1 }, a.xt = a.xt || { x: 0, y: 0 }, a.xY = function(a, d) { this.position.x = a; this.position.y = d; this.Qx() }, a.rotate = function(a) { this.rotation = a; this.Qx(); return this }, a.resize = function(a, d) { this.scale.x = a; this.scale.y = d; this.Qx(); return this }, a.Oua = function(a, d) { this.xt.x = a; this.xt.y = d; this.Qx(); return this }; return a }; switch (b.fa.di) { case b.fa.bo: b.Rb.ix = "Moz"; b.Rb.Rs = !0; break; case b.fa.ao: case b.fa.eo: b.Rb.ix = "webkit"; b.Rb.Rs = !0; break; case b.fa.HM: b.Rb.ix = "O"; b.Rb.Rs = !1; break; case b.fa.co: b.Rb.ix = "ms"; b.Rb.Rs = !1; break; default: b.Rb.ix = "webkit", b.Rb.Rs = !0 } b.Rb.dfa = b.Rb.ix + "Transform"; b.Rb.translate = b.Rb.Rs ? function(a) { return "translate3d(" + a.x + "px, " + a.y + "px, 0) " } : function(a) { return "translate(" + a.x + "px, " + a.y + "px) " }; b.Rb.rotate = b.Rb.Rs ? function(a) { return "rotateZ(" + a + "deg) " } : function(a) { return "rotate(" + a + "deg) " }; b.Rb.scale = function(a) { return "scale(" + a.x + ", " + a.y + ") " }; b.Rb.xt = function(a) { return "skewX(" + -a.x + "deg) skewY(" + a.y + "deg)" }; b.PY = function() { return b.Rb(document.createElement("input")) }; b.Rb.nma = function(a) { var d = 0, e = 0; do d += a.offsetLeft, e += a.offsetTop; while (a = a.offsetParent); return { x: d, y: e } }; b.Nj = -1; b.PI = Math.PI; b.$Z = parseFloat("3.402823466e+38F"); b.Ega = parseFloat("1.175494351e-38F"); b.q0 = b.PI / 180; b.WM = 180 / b.PI; b.TO = 4294967295; b.Dt = function(a, d, e) { if (!b.Ww(e) || b.sj(e.x) || b.sj(e.y)) b.log(b.o.Dt); else { var f = e[a]; e[a] = e[d]; e[d] = f } }; b.wba = function(a, d, e) { return a + (d - a) * e }; b.Yb = function() { return 16777215 * Math.random() }; b.ica = function() { return 2 * (Math.random() - 0.5) }; b.hsa = Math.random; b.Md = function(a) { return a * b.q0 }; b.jx = function(a) { return a * b.WM }; b.MW = function(a) { b.log(b.o.MW); return a * b.WM }; b.Ch = Number.MAX_VALUE - 1; b.Td = b.Z_ ? 1 : 770; b.Sd = 771; b.Xqa = function(a) { a.za && (a.za.jc(), a.za.Sk()) }; b.Ula = function() {}; b.Xka = function() {}; b.li = function() { b.Of += 1 }; b.Dy = 1.192092896E-7; b.Db = b.IE ? function() { return b.P.Gg } : function() { return 1 }; b.Xba = function(a) { var d = b.Db(); return b.d(a.x * d, a.y * d) }; b.EL = function(a) { var d = b.Db(); return b.d(a.x / d, a.y / d) }; b.WH = function(a, d) { var e = b.Db(); d.x = a.x / e; d.y = a.y / e }; b.vea = function(a) { var d = b.Db(); return b.size(a.width * d, a.height * d) }; b.fY = function(a) { var d = b.Db(); return b.size(a.width / d, a.height / d) }; b.US = function(a, d) { var e = b.Db(); d.width = a.width / e; d.height = a.height / e }; b.Qn = b.IE ? function(a) { var d = b.Db(); return b.rect(a.x / d, a.y / d, a.width / d, a.height / d) } : function(a) { return a }; b.qx = b.IE ? function(a) { var d = b.Db(); return b.rect(a.x * d, a.y * d, a.width * d, a.height * d) } : function(a) { return a }; b.ONE = 1; b.ZERO = 0; b.SRC_ALPHA = 770; b.SRC_ALPHA_SATURATE = 776; b.SRC_COLOR = 768; b.DST_ALPHA = 772; b.DST_COLOR = 774; b.ONE_MINUS_SRC_ALPHA = 771; b.ONE_MINUS_SRC_COLOR = 769; b.ONE_MINUS_DST_ALPHA = 773; b.ONE_MINUS_DST_COLOR = 775; b.ONE_MINUS_CONSTANT_ALPHA = 32772; b.ONE_MINUS_CONSTANT_COLOR = 32770; b.LINEAR = 9729; b.REPEAT = 10497; b.CLAMP_TO_EDGE = 33071; b.MIRRORED_REPEAT = 33648; b.ss = function() { if (b.tx === b.ya) { var a = b.A.getError(); a && b.log(b.o.ss, a) } }; b.uga = 0; b.sga = 1; b.vga = 2; b.tga = 3; b.rga = 2; b.tia = 0; b.qe = 1; b.Cu = 2; b.Dq = 4; b.Cq = b.qe | b.Cu | b.Dq; b.Jga = 0; b.Ib = 0; b.cf = 1; b.re = 2; b.uia = 3; b.Au = 0; b.zu = 1; b.Bq = 2; b.qz = 3; b.pz = 4; b.oz = 5; b.Bu = 6; b.JF = 7; b.pia = 8; b.Sj = "ShaderPositionTextureColor"; b.Yy = "ShaderPositionTextureColorAlphaTest"; b.Xy = "ShaderPositionColor"; b.uu = "ShaderPositionTexture"; b.oF = "ShaderPositionTexture_uColor"; b.mF = "ShaderPositionTextureA8Color"; b.pF = "ShaderPosition_uColor"; b.VN = "ShaderPositionLengthTextureColor"; b.j2 = "CC_PMatrix"; b.h2 = "CC_MVMatrix"; b.i2 = "CC_MVPMatrix"; b.n2 = "CC_Time"; b.m2 = "CC_SinTime"; b.g2 = "CC_CosTime"; b.k2 = "CC_Random01"; b.l2 = "CC_Texture0"; b.UO = "CC_alpha_value"; b.lq = "a_color"; b.vm = "a_position"; b.$n = "a_texCoord"; b.m_ = 32; b.RM = 3233828865; b.rz = 3233828866; b.G_ = 8801; b.t0 = 8802; b.EZ = 8803; b.ow = function(a, d) { if (a && 0 < a.length) for (var e = 0; e < a.length; e++) if (!(a[e] instanceof d)) return b.log("element type is wrong!"), !1; return !0 }; b.ge = function(a, d) { for (var e = 0, f = a.length; e < f; e++) if (a[e] === d) { a.splice(e, 1); break } }; b.jka = function(a, d) { for (var e = 0, f = d.length; e < f; e++) b.ge(a, d[e]) }; b.ika = function(a, d, e) { a.splice.apply(a, [e, 0].concat(d)); return a }; b.oU = function(a) { var d, e = a.length, f = Array(e); for (d = 0; d < e; d += 1) f[d] = a[d]; return f }; b = b || {}; b.Ea = b.Ea || {}; b.Ea.MF = function() { b.color = function(a, e, f, g, h, k) { return void 0 === a ? new b.bf(0, 0, 0, 255, h, k) : b.Je(a) ? (a = b.LV(a), new b.bf(a.r, a.g, a.b, a.a)) : b.Ww(a) ? new b.bf(a.r, a.g, a.b, a.a, a.arrayBuffer, a.offset) : new b.bf(a, e, f, g, h, k) }; b.bf = function(a, e, f, g, h, k) { this.Dd = h || new ArrayBuffer(b.bf.BYTES_PER_ELEMENT); this.Ja = k || 0; h = this.Dd; k = this.Ja; var m = Uint8Array.BYTES_PER_ELEMENT; this.jI = new Uint8Array(h, k, 1); this.RG = new Uint8Array(h, k + m, 1); this.aG = new Uint8Array(h, k + 2 * m, 1); this.SF = new Uint8Array(h, k + 3 * m, 1); this.jI[0] = a || 0; this.RG[0] = e || 0; this.aG[0] = f || 0; this.SF[0] = null == g ? 255 : g; void 0 === g && (this.MT = !0) }; b.bf.BYTES_PER_ELEMENT = 4; var a = b.bf.prototype; a.c4 = function() { return this.jI[0] }; a.b6 = function(a) { this.jI[0] = 0 > a ? 0 : a }; a.P3 = function() { return this.RG[0] }; a.W5 = function(a) { this.RG[0] = 0 > a ? 0 : a }; a.UG = function() { return this.aG[0] }; a.zI = function(a) { this.aG[0] = 0 > a ? 0 : a }; a.SG = function() { return this.SF[0] }; a.wI = function(a) { this.SF[0] = 0 > a ? 0 : a }; b.i(a, "r", a.c4, a.b6); b.i(a, "g", a.P3, a.W5); b.i(a, "b", a.UG, a.zI); b.i(a, "a", a.SG, a.wI); M = function(a, e, f, g) { this.Dd = f || new ArrayBuffer(M.BYTES_PER_ELEMENT); this.Ja = g || 0; this.zp = new Float32Array(this.Dd, this.Ja, 1); this.Ap = new Float32Array(this.Dd, this.Ja + 4, 1); this.zp[0] = a || 0; this.Ap[0] = e || 0 }; M.BYTES_PER_ELEMENT = 8; a = M.prototype; a.kH = function() { return this.zp[0] }; a.QI = function(a) { this.zp[0] = a }; a.lH = function() { return this.Ap[0] }; a.RI = function(a) { this.Ap[0] = a }; b.i(a, "x", a.kH, a.QI); b.i(a, "y", a.lH, a.RI); N = function(a, e, f, g, h) { this.Dd = g || new ArrayBuffer(N.BYTES_PER_ELEMENT); this.Ja = h || 0; g = this.Dd; h = this.Ja; this.zp = new Float32Array(g, h, 1); this.zp[0] = a || 0; this.Ap = new Float32Array(g, h + Float32Array.BYTES_PER_ELEMENT, 1); this.Ap[0] = e || 0; this.DJ = new Float32Array(g, h + 2 * Float32Array.BYTES_PER_ELEMENT, 1); this.DJ[0] = f || 0 }; N.BYTES_PER_ELEMENT = 12; a = N.prototype; a.kH = function() { return this.zp[0] }; a.QI = function(a) { this.zp[0] = a }; a.lH = function() { return this.Ap[0] }; a.RI = function(a) { this.Ap[0] = a }; a.p4 = function() { return this.DJ[0] }; a.k6 = function(a) { this.DJ[0] = a }; b.i(a, "x", a.kH, a.QI); b.i(a, "y", a.lH, a.RI); b.i(a, "z", a.p4, a.k6); da = function(a, e, f, g) { this.Dd = f || new ArrayBuffer(da.BYTES_PER_ELEMENT); this.Ja = g || 0; this.mJ = new Float32Array(this.Dd, this.Ja, 1); this.sJ = new Float32Array(this.Dd, this.Ja + 4, 1); this.mJ[0] = a || 0; this.sJ[0] = e || 0 }; da.BYTES_PER_ELEMENT = 8; a = da.prototype; a.j4 = function() { return this.mJ[0] }; a.i6 = function(a) { this.mJ[0] = a }; a.m4 = function() { return this.sJ[0] }; a.j6 = function(a) { this.sJ[0] = a }; b.i(a, "u", a.j4, a.i6); b.i(a, "v", a.m4, a.j6); b.gF = function(a, e, f, g, h, k) { this.Dd = h || new ArrayBuffer(b.gF.BYTES_PER_ELEMENT); this.Ja = k || 0; h = this.Dd; k = M.BYTES_PER_ELEMENT; this.Zr = a ? new M(a.x, a.y, h, 0) : new M(0, 0, h, 0); this.cs = e ? new M(e.x, e.y, h, k) : new M(0, 0, h, k); this.Pq = f ? new M(f.x, f.y, h, 2 * k) : new M(0, 0, h, 2 * k); this.Tq = g ? new M(g.x, g.y, h, 3 * k) : new M(0, 0, h, 3 * k) }; b.gF.BYTES_PER_ELEMENT = 32; a = b.gF.prototype; a.fH = function() { return this.Zr }; a.LI = function(a) { this.Zr.x = a.x; this.Zr.y = a.y }; a.gH = function() { return this.cs }; a.MI = function(a) { this.cs.x = a.x; this.cs.y = a.y }; a.VG = function() { return this.Pq }; a.AI = function(a) { this.Pq.x = a.x; this.Pq.y = a.y }; a.WG = function() { return this.Tq }; a.BI = function(a) { this.Tq.x = a.x; this.Tq.y = a.y }; b.i(a, "tl", a.fH, a.LI); b.i(a, "tr", a.gH, a.MI); b.i(a, "bl", a.VG, a.AI); b.i(a, "br", a.WG, a.BI); b.Py = function(a, e, f, g) { this.bl = a || new N(0, 0, 0); this.br = e || new N(0, 0, 0); this.tl = f || new N(0, 0, 0); this.tr = g || new N(0, 0, 0) }; b.Gh = function(a, e, f, g, h) { this.Dd = g || new ArrayBuffer(b.Gh.BYTES_PER_ELEMENT); this.Ja = h || 0; g = this.Dd; h = this.Ja; var k = N.BYTES_PER_ELEMENT; this.kb = a ? new N(a.x, a.y, a.z, g, h) : new N(0, 0, 0, g, h); this.Tu = e ? b.color(e.r, e.g, e.b, e.a, g, h + k) : b.color(0, 0, 0, 0, g, h + k); this.Wg = f ? new da(f.u, f.v, g, h + k + b.bf.BYTES_PER_ELEMENT) : new da(0, 0, g, h + k + b.bf.BYTES_PER_ELEMENT) }; b.Gh.BYTES_PER_ELEMENT = 24; a = b.Gh.prototype; a.iH = function() { return this.kb }; a.OI = function(a) { var e = this.kb; e.x = a.x; e.y = a.y; e.z = a.z }; a.ZG = function() { return this.Tu }; a.CI = function(a) { var e = this.Tu; e.r = a.r; e.g = a.g; e.b = a.b; e.a = a.a }; a.hH = function() { return this.Wg }; a.NI = function(a) { this.Wg.u = a.u; this.Wg.v = a.v }; b.i(a, "vertices", a.iH, a.OI); b.i(a, "colors", a.ZG, a.CI); b.i(a, "texCoords", a.hH, a.NI); b.Zb = function(a, e, f, g, h, k) { this.Dd = h || new ArrayBuffer(b.Zb.BYTES_PER_ELEMENT); this.Ja = k || 0; h = this.Dd; k = this.Ja; var m = b.Gh.BYTES_PER_ELEMENT; this.Zr = a ? new b.Gh(a.vertices, a.colors, a.texCoords, h, k) : new b.Gh(null, null, null, h, k); this.Pq = e ? new b.Gh(e.vertices, e.colors, e.texCoords, h, k + m) : new b.Gh(null, null, null, h, k + m); this.cs = f ? new b.Gh(f.vertices, f.colors, f.texCoords, h, k + 2 * m) : new b.Gh(null, null, null, h, k + 2 * m); this.Tq = g ? new b.Gh(g.vertices, g.colors, g.texCoords, h, k + 3 * m) : new b.Gh(null, null, null, h, k + 3 * m) }; b.Zb.BYTES_PER_ELEMENT = 96; a = b.Zb.prototype; a.fH = function() { return this.Zr }; a.LI = function(a) { var e = this.Zr; e.vertices = a.vertices; e.colors = a.colors; e.texCoords = a.texCoords }; a.VG = function() { return this.Pq }; a.AI = function(a) { var e = this.Pq; e.vertices = a.vertices; e.colors = a.colors; e.texCoords = a.texCoords }; a.gH = function() { return this.cs }; a.MI = function(a) { var e = this.cs; e.vertices = a.vertices; e.colors = a.colors; e.texCoords = a.texCoords }; a.WG = function() { return this.Tq }; a.BI = function(a) { var e = this.Tq; e.vertices = a.vertices; e.colors = a.colors; e.texCoords = a.texCoords }; a.E3 = function() { return this.Dd }; b.i(a, "tl", a.fH, a.LI); b.i(a, "tr", a.gH, a.MI); b.i(a, "bl", a.VG, a.AI); b.i(a, "br", a.WG, a.BI); b.i(a, "arrayBuffer", a.E3, null); b.XO = function() { return new b.Zb }; b.WO = function(a) { if (!a) return b.XO(); var e = a.tl, f = a.bl, g = a.tr; a = a.br; return { tl: { vertices: { x: e.vertices.x, y: e.vertices.y, z: e.vertices.z }, colors: { r: e.colors.r, g: e.colors.g, b: e.colors.b, a: e.colors.a }, texCoords: { u: e.texCoords.u, v: e.texCoords.v } }, bl: { vertices: { x: f.vertices.x, y: f.vertices.y, z: f.vertices.z }, colors: { r: f.colors.r, g: f.colors.g, b: f.colors.b, a: f.colors.a }, texCoords: { u: f.texCoords.u, v: f.texCoords.v } }, tr: { vertices: { x: g.vertices.x, y: g.vertices.y, z: g.vertices.z }, colors: { r: g.colors.r, g: g.colors.g, b: g.colors.b, a: g.colors.a }, texCoords: { u: g.texCoords.u, v: g.texCoords.v } }, br: { vertices: { x: a.vertices.x, y: a.vertices.y, z: a.vertices.z }, colors: { r: a.colors.r, g: a.colors.g, b: a.colors.b, a: a.colors.a }, texCoords: { u: a.texCoords.u, v: a.texCoords.v } } } }; b.sia = function(a) { if (!a) return []; for (var e = [], f = 0; f < a.length; f++) e.push(b.WO(a[f])); return e }; b.pe = function(a, e, f, g, h) { this.Dd = g || new ArrayBuffer(b.pe.BYTES_PER_ELEMENT); this.Ja = h || 0; g = this.Dd; h = this.Ja; var k = M.BYTES_PER_ELEMENT; this.kb = a ? new M(a.x, a.y, g, h) : new M(0, 0, g, h); this.Tu = e ? b.color(e.r, e.g, e.b, e.a, g, h + k) : b.color(0, 0, 0, 0, g, h + k); this.Wg = f ? new da(f.u, f.v, g, h + k + b.bf.BYTES_PER_ELEMENT) : new da(0, 0, g, h + k + b.bf.BYTES_PER_ELEMENT) }; b.pe.BYTES_PER_ELEMENT = 20; a = b.pe.prototype; a.iH = function() { return this.kb }; a.OI = function(a) { this.kb.x = a.x; this.kb.y = a.y }; a.ZG = function() { return this.Tu }; a.CI = function(a) { var e = this.Tu; e.r = a.r; e.g = a.g; e.b = a.b; e.a = a.a }; a.hH = function() { return this.Wg }; a.NI = function(a) { this.Wg.u = a.u; this.Wg.v = a.v }; b.i(a, "vertices", a.iH, a.OI); b.i(a, "colors", a.ZG, a.CI); b.i(a, "texCoords", a.hH, a.NI); b.tc = function(a, e, f, g, h) { this.Dd = g || new ArrayBuffer(b.tc.BYTES_PER_ELEMENT); this.Ja = h || 0; g = this.Dd; h = this.Ja; var k = b.pe.BYTES_PER_ELEMENT; this.gP = a ? new b.pe(a.vertices, a.colors, a.texCoords, g, h) : new b.pe(null, null, null, g, h); this.nP = e ? new b.pe(e.vertices, e.colors, e.texCoords, g, h + k) : new b.pe(null, null, null, g, h + k); this.tP = f ? new b.pe(f.vertices, f.colors, f.texCoords, g, h + 2 * k) : new b.pe(null, null, null, g, h + 2 * k) }; b.tc.BYTES_PER_ELEMENT = 60; a = b.tc.prototype; a.SG = function() { return this.gP }; a.wI = function(a) { var e = this.gP; e.vertices = a.vertices; e.colors = a.colors; e.texCoords = a.texCoords }; a.UG = function() { return this.nP }; a.zI = function(a) { var e = this.nP; e.vertices = a.vertices; e.colors = a.colors; e.texCoords = a.texCoords }; a.I3 = function() { return this.tP }; a.S5 = function(a) { var e = this.tP; e.vertices = a.vertices; e.colors = a.colors; e.texCoords = a.texCoords }; b.i(a, "a", a.SG, a.wI); b.i(a, "b", a.UG, a.zI); b.i(a, "c", a.I3, a.S5) }; b.Ea.bF = function() { var a = b.color; a.n4 = function() { return a(255, 255, 255) }; a.o4 = function() { return a(255, 255, 0) }; a.G3 = function() { return a(0, 0, 255) }; a.S3 = function() { return a(0, 255, 0) }; a.d4 = function() { return a(255, 0, 0) }; a.W3 = function() { return a(255, 0, 255) }; a.F3 = function() { return a(0, 0, 0) }; a.b4 = function() { return a(255, 127, 0) }; a.Q3 = function() { return a(166, 166, 166) }; b.i(a, "WHITE", a.n4); b.i(a, "YELLOW", a.o4); b.i(a, "BLUE", a.G3); b.i(a, "GREEN", a.S3); b.i(a, "RED", a.d4); b.i(a, "MAGENTA", a.W3); b.i(a, "BLACK", a.F3); b.i(a, "ORANGE", a.b4); b.i(a, "GRAY", a.Q3); b.Gc.m3 = function() { return new b.Gc(b.ONE, b.ZERO) }; b.Gc.L2 = function() { return new b.Gc(b.ONE, b.ONE_MINUS_SRC_ALPHA) }; b.Gc.K2 = function() { return new b.Gc(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA) }; b.Gc.H2 = function() { return new b.Gc(b.SRC_ALPHA, b.ONE) }; b.i(b.Gc, "DISABLE", b.Gc.m3); b.i(b.Gc, "ALPHA_PREMULTIPLIED", b.Gc.L2); b.i(b.Gc, "ALPHA_NON_PREMULTIPLIED", b.Gc.K2); b.i(b.Gc, "ADDITIVE", b.Gc.H2) }; b.bf = function(a, d, e, f) { this.r = a || 0; this.g = d || 0; this.b = e || 0; this.a = null == f ? 255 : f }; b.color = function(a, d, e, f) { return void 0 === a ? { r: 0, g: 0, b: 0, a: 255 } : b.Je(a) ? b.LV(a) : b.Ww(a) ? { r: a.r, g: a.g, b: a.b, a: null == a.a ? 255 : a.a } : { r: a, g: d, b: e, a: null == f ? 255 : f } }; b.Cka = function(a, d) { return a.r === d.r && a.g === d.g && a.b === d.b }; function ea() { this.timestamp = this.z = this.y = this.x = 0 } function M(a, d) { this.x = a || 0; this.y = d || 0 } b.cE = function(a, d) { return new M(a, d) }; function N(a, d, e) { this.x = a || 0; this.y = d || 0; this.z = e || 0 } b.Jwa = function(a, d, e) { return new N(a, d, e) }; function da(a, d) { this.u = a || 0; this.v = d || 0 } b.ewa = function(a, d) { return new da(a, d) }; b.Gc = function(a, d) { this.src = a; this.$ = d }; b.pka = function() { return new b.Gc(b.ONE, b.ZERO) }; b.LV = function(a) { a = a.replace(/^#?/, "0x"); a = parseInt(a); return b.color(a >> 16, (a >> 8) % 256, a % 256) }; b.Dka = function(a) { var d = a.r.toString(16), e = a.g.toString(16), f = a.b.toString(16); return "#" + (16 > a.r ? "0" + d : d) + (16 > a.g ? "0" + e : e) + (16 > a.b ? "0" + f : f) }; b.dz = 0; b.ro = 1; b.jO = 2; b.Du = 0; b.LF = 1; b.YO = 2; b.Aia = b.sa.extend({ Er: null, iw: null, QF: 0, ctor: function() { this.Er = {}; this.iw = {}; this.QF = 2 << (0 | 10 * Math.random()) }, z2: function() { this.QF++; return "key_" + this.QF }, tua: function(a, d) { if (null != d) { var e = this.z2(); this.Er[e] = d; this.iw[e] = a } }, Iba: function(a) { if (null == a) return null; var d = this.Er, e; for (e in d) if (d[e] === a) return this.iw[e]; return null }, Hwa: function(a) { return this.Iba(a) }, uca: function(a) { if (null != a) { var d = this.Er, e; for (e in d) if (d[e] === a) { delete this.iw[e]; delete d[e]; break } } }, Isa: function(a) { if (null != a) for (var d = 0; d < a.length; d++) this.uca(a[d]) }, b7: function() { var a = [], d = this.Er, e; for (e in d) a.push(d[e]); return a }, Asa: function() { this.Er = {}; this.iw = {} }, count: function() { return this.b7().length } }); function fa(a) { this.fontName = "Arial"; this.fontSize = 12; this.textAlign = b.ro; this.verticalAlign = b.Du; this.fillStyle = b.color(255, 255, 255, 255); this.boundingHeight = this.boundingWidth = 0; this.iM = !1; this.strokeStyle = b.color(255, 255, 255, 255); this.lineWidth = 1; this.fontWeight = this.fontStyle = this.lineHeight = "normal"; this.eY = !1; this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0; this.shadowOpacity = 1; if (a && a instanceof Object) for (var d in a) this[d] = a[d] } function ga(a) { return a.fontStyle + " " + a.fontWeight + " " + a.fontSize + "px/" + (a.lineHeight.charAt ? a.lineHeight : a.lineHeight + "px") + " '" + a.fontName + "'" } b.W === b.ya && (b.assert(b.Ie(b.Ea.MF), b.o.Qj, "CCTypesWebGL.js"), b.Ea.MF(), delete b.Ea.MF); b.assert(b.Ie(b.Ea.bF), b.o.Qj, "CCTypesPropertyDefine.js"); b.Ea.bF(); delete b.Ea.bF; b.mia = []; b.nia = {}; b.oga = "device-dpi"; b.BZ = "high-dpi"; b.qga = "medium-dpi"; b.pga = "low-dpi"; b.cg = { T: function() { this.MV = document.getElementsByTagName("html")[0] }, availWidth: function(a) { return a && a !== this.MV ? a.clientWidth : window.innerWidth }, availHeight: function(a) { return a && a !== this.MV ? a.clientHeight : window.innerHeight }, fD: { width: "device-width", "user-scalable": "no" }, EJ: b.fa.di }; - 1 < window.navigator.userAgent.indexOf("OS 8_1_") && (b.cg.EJ = b.fa.mq); b.fa.xj === b.fa.wq && (b.cg.EJ = b.fa.eo); switch (b.cg.EJ) { case b.fa.eo: b.cg.fD["minimal-ui"] = "true"; b.cg.availWidth = function(a) { return a.clientWidth }; b.cg.availHeight = function(a) { return a.clientHeight }; break; case b.fa.ao: b.cg.__defineGetter__("target-densitydpi", function() { return b.view.HB }); case b.fa.JM: case b.fa.ay: b.cg.availWidth = function(a) { return a.clientWidth }; b.cg.availHeight = function(a) { return a.clientHeight }; break; case b.fa.mq: b.cg.T = function(a) { if (!a.Hu) { var d = function() { a.yx(a.Oi.width, a.Oi.height, a.Zi); window.removeEventListener("resize", d, !1) }; window.addEventListener("resize", d, !1) } } } b.vE = b.sa.extend({ Wz: null, hg: null, Oi: null, ap: null, pf: null, Cn: null, pI: !1, $F: !0, Fo: 1, yJ: "", nI: null, Wb: 1, VR: 1, Sc: 1, WR: 1, xr: 0, FH: 5, Zi: null, vS: null, zS: null, yS: null, wS: null, xS: null, mv: !1, Kia: !1, Pja: null, cR: null, dR: null, Jja: !1, tG: null, an: null, QG: 1, Hu: !1, oR: !0, HB: null, ctor: function() { var a = document, d = b.wm, e = b.yh; b.cg.T(this); this.an = b.container.parentNode === a.body ? a.documentElement : b.container.parentNode; this.hg = b.size(0, 0); this.pH(); var a = b.ab.width, f = b.ab.height; this.Oi = b.size(a, f); this.ap = b.size(a, f); this.pf = b.rect(0, 0, a, f); this.Cn = b.rect(0, 0, a, f); this.tG = { left: 0, top: 0 }; this.yJ = "Cocos2dHTML5"; a = b.fa; this.rK(a.xj === a.wq || a.xj === a.RE); b.jq && b.jq.T(this.Cn); this.vS = new b.$f(d.ky, e.zE); this.zS = new b.$f(d.m0, e.SHOW_ALL); this.yS = new b.$f(d.ky, e.QE); this.wS = new b.$f(d.ky, e.AE); this.xS = new b.$f(d.ky, e.BE); this.cR = b.ab; this.dR = b.A; this.HB = b.BZ }, Lv: function() { var a; a = this.yx ? this : b.view; var d = a.hg.width, e = a.hg.height; a.pH(); if (a.hg.width !== d || a.hg.height !== e) a.nI && a.nI.call(), d = a.ap.width, e = a.ap.height, 0 < d && a.yx(d, e, a.Zi) }, Xua: function(a) { this.HB = a; this.LS() }, Joa: function() { return this.HB }, Dca: function(a) { a ? this.Hu || (this.Hu = !0, b.$a(window, "resize", this.Lv), b.$a(window, "orientationchange", this.Lv)) : this.Hu && (this.Hu = !1, window.removeEventListener("resize", this.Lv), window.removeEventListener("orientationchange", this.Lv)) }, Kua: function(a) { if (b.Ie(a) || null == a) this.nI = a }, pH: function() { var a = this.hg; a.width = b.cg.availWidth(this.an); a.height = b.cg.availHeight(this.an) }, Eia: function() { var a = this.ap.width, d = this.ap.height; 0 < a && this.yx(a, d, this.Zi) }, LS: function() { if (this.oR) { var a = document.getElementById("cocosMetaElement"); a && document.head.removeChild(a); var d, e = (a = document.getElementsByName("viewport")) ? a[0] : null, f, a = b.ic("meta"); a.id = "cocosMetaElement"; a.name = "viewport"; a.content = ""; d = b.cg.fD; f = e ? e.content : ""; for (var g in d) RegExp(g).test(f) || (f += "," + g + "\x3d" + d[g]); /^,/.test(f) && (f = f.substr(1)); a.content = f; e && (e.content = f); document.head.appendChild(a) } }, Dja: function() { var a = b.Db(); this.Sc = this.Wb = a }, xja: function() { this.Wb = this.VR; this.Sc = this.WR }, Fia: function() {}, Uw: function() { this.mv = !0 }, R6: function(a) { this.oR = a }, rK: function(a) { this.pI = a ? !0 : !1 }, aqa: function() { return this.pI }, Tla: function(a) { this.$F = a ? !0 : !1 }, Ipa: function() { return this.$F }, end: function() {}, Xpa: function() { return null !== this.cR && null !== this.dR }, Vta: function(a) { this.QG = a; b.P.Sn(b.P.Ls()) }, Wva: function() {}, aua: function() {}, Gta: function(a, d) { this.tG = { left: a, top: d } }, Qma: function() { return this.tG }, w9: function() { return b.size(this.hg.width, this.hg.height) }, Uta: function(a, d) { this.hg.width = a; this.hg.height = d; this.an.style.width = a + "px"; this.an.style.height = d + "px"; this.Lv(); b.P.Sn(b.P.Ls()) }, vka: function() {}, Ps: function() { return b.size(this.Cn.width, this.Cn.height) }, CC: function() { return b.d(this.Cn.x, this.Cn.y) }, tka: function() { return !0 }, moa: function() { return this.Zi }, Lda: function(a) { if (a instanceof b.$f) this.Zi = a; else { var d = b.$f; a === d.zE && (this.Zi = this.vS); a === d.SHOW_ALL && (this.Zi = this.zS); a === d.QE && (this.Zi = this.yS); a === d.AE && (this.Zi = this.wS); a === d.BE && (this.Zi = this.xS) } }, yx: function(a, d, e) { if (0 < a || 0 < d) if (this.Lda(e), e = this.Zi) { e.$p(this); b.fa.Mk && this.LS(); this.pH(); this.ap.width = this.Oi.width = a; this.ap.height = this.Oi.height = d; var f = e.apply(this, this.Oi); f.scale && 2 === f.scale.length && (this.Wb = f.scale[0], this.Sc = f.scale[1]); f.viewport && (a = this.pf, d = this.Cn, f = f.viewport, a.x = f.x, a.y = f.y, a.width = f.width, a.height = f.height, d.x = -a.x / this.Wb, d.y = -a.y / this.Sc, d.width = b.ab.width / this.Wb, d.height = b.ab.height / this.Sc, b.A.Gj && b.A.Gj(a.x, -a.y)); a = b.P; a.nc.width = this.Oi.width; a.nc.height = this.Oi.height; e.Zp(this); b.ld.width = a.nc.width; b.ld.height = a.nc.height; b.W === b.ya && (a.cr(), a.wX()); this.VR = this.Wb; this.WR = this.Sc; b.FZ && b.FZ.wja(); b.jq && b.jq.T(this.Cn) } else b.log(b.o.PZ); else b.log(b.o.OZ) }, BK: function() { return b.size(this.Oi.width, this.Oi.height) }, lea: function(a, d, e, f) { var g = this.QG, h = this.Wb, k = this.Sc; b.A.viewport(a * h * g + this.pf.x * g, d * k * g + this.pf.y * g, e * h * g, f * k * g) }, RD: function(a, d, e, f) { var g = this.QG, h = this.Wb, k = this.Sc; b.A.scissor(a * h * g + this.pf.x * g, d * k * g + this.pf.y * g, e * h * g, f * k * g) }, cba: function() { var a = b.A; return a.isEnabled(a.SCISSOR_TEST) }, B$: function() { var a = b.A, d = this.Wb, e = this.Sc, a = a.getParameter(a.SCISSOR_BOX); return b.rect((a[0] - this.pf.x) / d, (a[1] - this.pf.y) / e, a[2] / d, a[3] / e) }, Bva: function(a) { null != a && 0 < a.length && (this.yJ = a) }, gpa: function() { return this.yJ }, hpa: function() { return this.pf }, oc: function() { return this.Wb }, gd: function() { return this.Sc }, Zma: function() { return this.Fo }, cK: function(a, d, e) { return { x: this.Fo * (a - e.left), y: this.Fo * (e.top + e.height - d) } }, f3: function(a, d) { var e = this.pf; a.x = (this.Fo * (a.x - d.left) - e.x) / this.Wb; a.y = (this.Fo * (d.top + d.height - a.y) - e.y) / this.Sc }, Tz: function(a) { for (var d = this.pf, e = this.Wb, f = this.Sc, g, h, k, m = 0; m < a.length; m++) g = a[m], h = g.Id, k = g.Xi, g.JI((h.x - d.x) / e, (h.y - d.y) / f), g.kp((k.x - d.x) / e, (k.y - d.y) / f) } }); b.vE.aH = function() { this.wA || (this.wA = this.wA || new b.vE, this.wA.Uw()); return this.wA }; b.wm = b.sa.extend({ $p: function() {}, apply: function() {}, Zp: function() {}, SI: function(a, d, e) { var f = a.an; b.view.$F && b.fa.Mk && f === document.documentElement && b.screen.p7(f); var f = b.ab, g = b.container; g.style.width = f.style.width = d + "px"; g.style.height = f.style.height = e + "px"; g = a.Fo = 1; a.pI && (g = a.Fo = window.devicePixelRatio || 1); f.width = d * g; f.height = e * g; b.A.VW && b.A.VW(); a = document.body; var h; a && (h = a.style) && (h.paddingTop = h.paddingTop || "0px", h.paddingRight = h.paddingRight || "0px", h.paddingBottom = h.paddingBottom || "0px", h.paddingLeft = h.paddingLeft || "0px", h.borderTop = h.borderTop || "0px", h.borderRight = h.borderRight || "0px", h.borderBottom = h.borderBottom || "0px", h.borderLeft = h.borderLeft || "0px", h.marginTop = h.marginTop || "0px", h.marginRight = h.marginRight || "0px", h.marginBottom = h.marginBottom || "0px", h.marginLeft = h.marginLeft || "0px") }, KQ: function() { document.body.insertBefore(b.container, document.body.firstChild); var a = document.body.style; a.width = window.innerWidth + "px"; a.height = window.innerHeight + "px"; a.overflow = "hidden"; a = b.container.style; a.position = "fixed"; a.left = a.top = "0px"; document.body.scrollTop = 0 } }); b.yh = b.sa.extend({ oI: { scale: [1, 1], viewport: null }, Ou: function(a, d, e, f, g, h) { 2 > Math.abs(a - e) && (e = a); 2 > Math.abs(d - f) && (f = d); a = b.rect(Math.round((a - e) / 2), Math.round((d - f) / 2), e, f); this.oI.scale = [g, h]; this.oI.viewport = a; return this.oI }, $p: function() {}, apply: function() { return { scale: [1, 1] } }, Zp: function() {} }); (function() { var a = b.wm.extend({ apply: function(a) { this.SI(a, a.hg.width, a.hg.height) } }), d = b.wm.extend({ apply: function(a, d) { var e = a.hg.width, f = a.hg.height, g = b.container.style, s = d.width, t = d.height, v = e / s, w = f / t, x, u; v < w ? (x = e, u = t * v) : (x = s * w, u = f); s = Math.round((e - x) / 2); u = Math.round((f - u) / 2); this.SI(a, e - 2 * s, f - 2 * u); g.marginLeft = s + "px"; g.marginRight = s + "px"; g.marginTop = u + "px"; g.marginBottom = u + "px" } }); a.extend({ $p: function(a) { this._super(a); a.an = document.documentElement }, apply: function(a) { this._super(a); this.KQ() } }); d.extend({ $p: function(a) { this._super(a); a.an = document.documentElement }, apply: function(a, d) { this._super(a, d); this.KQ() } }); var e = b.wm.extend({ apply: function(a) { this.SI(a, b.ab.width, b.ab.height) } }); b.wm.ky = new a; b.wm.m0 = new d; b.wm.tha = new e; var a = b.yh.extend({ apply: function(a, d) { var e = b.ab.width, f = b.ab.height; return this.Ou(e, f, e, f, e / d.width, f / d.height) } }), d = b.yh.extend({ apply: function(a, d) { var e = b.ab.width, f = b.ab.height, g = d.width, s = d.height, t = e / g, v = f / s, w = 0, x, u; t < v ? (w = t, x = e, u = s * w) : (w = v, x = g * w, u = f); return this.Ou(e, f, x, u, w, w) } }), e = b.yh.extend({ apply: function(a, d) { var e = b.ab.width, f = b.ab.height, g = d.width, s = d.height, t = e / g, v = f / s, w, x, u; t < v ? (w = v, x = g * w, u = f) : (w = t, x = e, u = s * w); return this.Ou(e, f, x, u, w, w) } }), f = b.yh.extend({ apply: function(a, d) { var e = b.ab.width, f = b.ab.height, g = f / d.height; return this.Ou(e, f, e, f, g, g) }, Zp: function(a) { b.P.nc = a.Ps() } }), g = b.yh.extend({ apply: function(a, d) { var e = b.ab.width, f = b.ab.height, g = e / d.width; return this.Ou(e, f, e, f, g, g) }, Zp: function(a) { b.P.nc = a.Ps() } }); b.yh.zE = new a; b.yh.SHOW_ALL = new d; b.yh.QE = new e; b.yh.AE = new f; b.yh.BE = new g })(); b.$f = b.sa.extend({ Qz: null, Rz: null, ctor: function(a, d) { this.Yca(a); this.$ca(d) }, $p: function(a) { this.Qz.$p(a); this.Rz.$p(a) }, apply: function(a, d) { this.Qz.apply(a, d); return this.Rz.apply(a, d) }, Zp: function(a) { this.Qz.Zp(a); this.Rz.Zp(a) }, Yca: function(a) { a instanceof b.wm && (this.Qz = a) }, $ca: function(a) { a instanceof b.yh && (this.Rz = a) } }); b.$f.zE = 0; b.$f.QE = 1; b.$f.SHOW_ALL = 2; b.$f.AE = 3; b.$f.BE = 4; b.$f.VO = 5; b.screen = { EB: !1, cI: null, kJ: "", Io: null, v3: [ ["requestFullscreen", "exitFullscreen", "fullscreenchange", "fullscreenEnabled", "fullscreenElement"], ["requestFullScreen", "exitFullScreen", "fullScreenchange", "fullScreenEnabled", "fullScreenElement"], ["webkitRequestFullScreen", "webkitCancelFullScreen", "webkitfullscreenchange", "webkitIsFullScreen", "webkitCurrentFullScreenElement"], ["mozRequestFullScreen", "mozCancelFullScreen", "mozfullscreenchange", "mozFullScreen", "mozFullScreenElement"], ["msRequestFullscreen", "msExitFullscreen", "MSFullscreenChange", "msFullscreenEnabled", "msFullscreenElement" ] ], T: function() { this.Io = {}; var a, d, e = this.v3, f; a = 0; for (l = e.length; a < l; a++) if ((d = e[a]) && d[1] in document) { a = 0; for (f = d.length; a < f; a++) this.Io[e[0][a]] = d[a]; break } this.EB = "undefined" !== typeof this.Io.requestFullscreen; this.kJ = "ontouchstart" in window ? "touchstart" : "mousedown" }, fullScreen: function() { return this.EB && document[this.Io.fullscreenElement] }, UW: function(a, d) { if (this.EB) { a = a || document.documentElement; if (d) { var e = this.Io.tma; this.cI && document.removeEventListener(e, this.cI); this.cI = d; b.$a(document, e, d, !1) } return a[this.Io.requestFullscreen]() } }, Yla: function() { return this.EB ? document[this.Io.exitFullscreen]() : !0 }, p7: function(a, d) { function e() { g.UW(a, d); f.removeEventListener(g.kJ, e) } a = a || document.body; var f = b.ab || a, g = this; this.UW(a, d); b.$a(f, this.kJ, e) } }; b.screen.T(); b.jq = { tY: b.d(0, 0), uY: b.d(0, 0), top: b.d(0, 0), bU: b.d(0, 0), cU: b.d(0, 0), bottom: b.d(0, 0), tw: b.d(0, 0), left: b.d(0, 0), right: b.d(0, 0), width: 0, height: 0, T: function(a) { var d = this.width = a.width, e = this.height = a.height, f = a.x; a = a.y; var g = a + e, h = f + d; this.tY.x = f; this.tY.y = g; this.uY.x = h; this.uY.y = g; this.top.x = f + d / 2; this.top.y = g; this.bU.x = f; this.bU.y = a; this.cU.x = h; this.cU.y = a; this.bottom.x = f + d / 2; this.bottom.y = a; this.tw.x = f + d / 2; this.tw.y = a + e / 2; this.left.x = f; this.left.y = a + e / 2; this.right.x = h; this.right.y = a + e / 2 } }; b.d2 = -90; b.e2 = 90; b.f2 = 180; b.oia = 0; b.aW = { Hr: !1, uR: !1, dS: b.d(0, 0), v5: b.d(0, 0), eS: [], dI: 0, sd: [], lJ: {}, xr: 0, FH: 5, TF: !1, zz: 1 / 30, iP: 1, Fq: 0, UF: null, yz: null, k4: function() { for (var a = this.xr, d = 0; d < this.FH; d++) { if (!(a & 1)) return this.xr |= 1 << d, d; a >>= 1 } return -1 }, A5: function(a) { 0 > a || a >= this.FH || (a = ~(1 << a), this.xr &= a) }, bn: null, YK: function(a) { for (var d, e, f, g = [], h = this.lJ, k = 0, m = a.length; k < m; k++) if (d = a[k], f = d.Ph, e = h[f], null == e) { var n = this.k4(); - 1 === n ? b.log(b.o.Laa, n) : (e = this.sd[n] = new b.mz(d.Id.x, d.Id.y, d.Ph), e.kp(d.Xi), h[f] = n, g.push(e)) } 0 < g.length && (this.bn.Tz(g), a = new b.Ah(g), a.Ym = b.Ah.rq.fE, b.ua.dispatchEvent(a)) }, ZK: function(a) { for (var d, e, f = [], g = this.sd, h = 0, k = a.length; h < k; h++) d = a[h], e = d.Ph, e = this.lJ[e], null != e && g[e] && (g[e].JI(d.Id), g[e].kp(d.Xi), f.push(g[e])); 0 < f.length && (this.bn.Tz(f), a = new b.Ah(f), a.Ym = b.Ah.rq.LE, b.ua.dispatchEvent(a)) }, FC: function(a) { a = this.vV(a); 0 < a.length && (this.bn.Tz(a), a = new b.Ah(a), a.Ym = b.Ah.rq.wE, b.ua.dispatchEvent(a)) }, IV: function(a) { a = this.vV(a); 0 < a.length && (this.bn.Tz(a), a = new b.Ah(a), a.Ym = b.Ah.rq.jE, b.ua.dispatchEvent(a)) }, vV: function(a) { for (var d, e, f, g = [], h = this.sd, k = this.lJ, m = 0, n = a.length; m < n; m++) d = a[m], f = d.Ph, e = k[f], null != e && h[e] && (h[e].JI(d.Id), h[e].kp(d.Xi), g.push(h[e]), this.A5(e), delete k[f]); return g }, oj: function(a) { var d = document.documentElement, e = window, f = null, f = b.Ie(a.getBoundingClientRect) ? a.getBoundingClientRect() : a instanceof HTMLCanvasElement ? { left: 0, top: 0, width: a.width, height: a.height } : { left: 0, top: 0, width: parseInt(a.style.width), height: parseInt(a.style.height) }; return { left: f.left + e.pageXOffset - d.clientLeft, top: f.top + e.pageYOffset - d.clientTop, width: f.width, height: f.height } }, r$: function(a) { for (var d = null, e = this.eS, f = a.Ph, g = e.length - 1; 0 <= g; g--) if (e[g].Ph === f) { d = e[g]; break } d || (d = a); return d }, Jda: function(a) { for (var d = !1, e = this.eS, f = a.Ph, g = e.length - 1; 0 <= g; g--) if (e[g].Ph === f) { e[g] = a; d = !0; break } d || (50 >= e.length ? e.push(a) : (e[this.dI] = a, this.dI = (this.dI + 1) % 50)) }, Mw: function(a, d, e) { var f = this.dS; a = this.bn.cK(a, d, e); d = new b.mz(a.x, a.y); d.kp(f.x, f.y); f.x = a.x; f.y = a.y; return d }, Is: function(a, d, e) { var f = this.v5; this.bn.f3(a, d); d = new b.md(e); d.pda(a.x, a.y); d.a6(f.x, f.y); f.x = a.x; f.y = a.y; return d }, Ks: function(a, d) { if (null != a.pageX) return { x: a.pageX, y: a.pageY }; d.left -= document.body.scrollLeft; d.top -= document.body.scrollTop; return { x: a.clientX, y: a.clientY } }, AC: function(a, d) { for (var e = [], f = this.bn, g, h, k = this.dS, m = a.changedTouches.length, n = 0; n < m; n++) if (g = a.changedTouches[n]) { var p; p = b.fa.bo === b.fa.di ? f.cK(g.pageX, g.pageY, d) : f.cK(g.clientX, g.clientY, d); null != g.identifier ? (g = new b.mz(p.x, p.y, g.identifier), h = this.r$(g).hi(), g.kp(h.x, h.y), this.Jda(g)) : (g = new b.mz(p.x, p.y), g.kp(k.x, k.y)); k.x = p.x; k.y = p.y; e.push(g) } return e }, nca: function(a) { if (!this.uR) { this.bn = b.view; var d = this, e = "mouse" in b.fa.VJ, f = "touches" in b.fa.VJ, g = !1; b.fa.Mk && (g = !0); e && (b.$a(window, "mousedown", function() { d.Hr = !0 }, !1), b.$a(window, "mouseup", function(e) { if (!g) { var f = d.Hr; d.Hr = !1; if (f) { var f = d.oj(a), h = d.Ks(e, f); b.mx(new b.Dh(f.left, f.top, f.width, f.height), h) || (d.FC([d.Mw(h.x, h.y, f)]), f = d.Is(h, f, b.md.KF), f.dq(e.button), b.ua.dispatchEvent(f)) } } }, !1), b.$a(a, "mousedown", function(e) { if (!g) { d.Hr = !0; var f = d.oj(a), h = d.Ks(e, f); d.YK([d.Mw(h.x, h.y, f)]); f = d.Is(h, f, b.md.XM); f.dq(e.button); b.ua.dispatchEvent(f); e.stopPropagation(); e.preventDefault(); a.focus() } }, !1), b.$a(a, "mouseup", function(e) { if (!g) { d.Hr = !1; var f = d.oj(a), h = d.Ks(e, f); d.FC([d.Mw(h.x, h.y, f)]); f = d.Is(h, f, b.md.KF); f.dq(e.button); b.ua.dispatchEvent(f); e.stopPropagation(); e.preventDefault() } }, !1), b.$a(a, "mousemove", function(e) { if (!g) { var f = d.oj(a), h = d.Ks(e, f); d.ZK([d.Mw(h.x, h.y, f)]); f = d.Is(h, f, b.md.nN); d.Hr ? f.dq(e.button) : f.dq(null); b.ua.dispatchEvent(f); e.stopPropagation(); e.preventDefault() } }, !1), b.$a(a, "mousewheel", function(e) { var f = d.oj(a), g = d.Ks(e, f), f = d.Is(g, f, b.md.lF); f.dq(e.button); f.WX(0, e.wheelDelta); b.ua.dispatchEvent(f); e.stopPropagation(); e.preventDefault() }, !1), b.$a(a, "DOMMouseScroll", function(e) { var f = d.oj(a), g = d.Ks(e, f), f = d.Is(g, f, b.md.lF); f.dq(e.button); f.WX(0, -120 * e.detail); b.ua.dispatchEvent(f); e.stopPropagation(); e.preventDefault() }, !1)); if (window.navigator.msPointerEnabled) { var e = { MSPointerDown: d.YK, MSPointerMove: d.ZK, MSPointerUp: d.FC, MSPointerCancel: d.IV }, h; for (h in e)(function(e, f) { b.$a(a, e, function(e) { var g = d.oj(a); g.left -= document.documentElement.scrollLeft; g.top -= document.documentElement.scrollTop; f.call(d, [d.Mw(e.clientX, e.clientY, g)]); e.stopPropagation() }, !1) })(h, e[h]) } f && (b.$a(a, "touchstart", function(e) { if (e.changedTouches) { var f = d.oj(a); f.left -= document.body.scrollLeft; f.top -= document.body.scrollTop; d.YK(d.AC(e, f)); e.stopPropagation(); e.preventDefault(); a.focus() } }, !1), b.$a(a, "touchmove", function(e) { if (e.changedTouches) { var f = d.oj(a); f.left -= document.body.scrollLeft; f.top -= document.body.scrollTop; d.ZK(d.AC(e, f)); e.stopPropagation(); e.preventDefault() } }, !1), b.$a(a, "touchend", function(e) { if (e.changedTouches) { var f = d.oj(a); f.left -= document.body.scrollLeft; f.top -= document.body.scrollTop; d.FC(d.AC(e, f)); e.stopPropagation(); e.preventDefault() } }, !1), b.$a(a, "touchcancel", function(e) { if (e.changedTouches) { var f = d.oj(a); f.left -= document.body.scrollLeft; f.top -= document.body.scrollTop; d.IV(d.AC(e, f)); e.stopPropagation(); e.preventDefault() } }, !1)); this.qS(); this.pS(); this.uR = !0 } }, qS: function() {}, pS: function() {}, update: function(a) { this.Fq > this.zz && (this.Fq -= this.zz, b.ua.dispatchEvent(new b.UZ(this.UF))); this.Fq += a } }; var r = b.aW; r.nta = function(a) { this.TF !== a && (this.TF = a, a = b.P.Jn(), this.Fq = 0, a.ot(this)) }; r.ota = function(a) { this.zz !== a && (this.zz = a) }; r.qS = function() { b.$a(b.ab, "keydown", function(a) { b.ua.dispatchEvent(new b.aN(a.keyCode, !0)); a.stopPropagation(); a.preventDefault() }, !1); b.$a(b.ab, "keyup", function(a) { b.ua.dispatchEvent(new b.aN(a.keyCode, !1)); a.stopPropagation(); a.preventDefault() }, !1) }; r.pS = function() { var a = window; this.UF = new ea; this.yz = a.DeviceMotionEvent || a.DeviceOrientationEvent; b.fa.di === b.fa.GM && (this.yz = window.DeviceOrientationEvent); b.$a(a, this.yz === a.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.b8.bind(this), !1) }; r.b8 = function(a) { var d = window; if (this.TF) { var e = this.UF, f, g, h; this.yz === window.DeviceMotionEvent ? (h = a.accelerationIncludingGravity, f = this.iP * h.x * 0.1, g = this.iP * h.y * 0.1, h = 0.1 * h.z) : (f = a.gamma / 90 * 0.981, g = 0.981 * -(a.beta / 90), h = a.alpha / 90 * 0.981); b.fa.xj === b.fa.My ? (e.x = -f, e.y = -g) : (e.x = f, e.y = g); e.z = h; e.timestamp = a.timeStamp || Date.now(); a = e.x; d.orientation === b.e2 ? (e.x = -e.y, e.y = a) : d.orientation === b.d2 ? (e.x = e.y, e.y = -a) : d.orientation === b.f2 && (e.x = -e.x, e.y = -e.y) } }; delete r; b.Mfa = function(a, d, e, f, g, h) { this.a = a; this.b = d; this.c = e; this.K = f; this.ma = g; this.na = h }; b.S6 = function(a, d) { return { a: 1, b: 0, c: 0, K: 1, ma: a, na: d } }; b.hh = function(a, d, e) { var f; void 0 === e ? (e = d, f = a.x, a = a.y) : (f = a, a = d); return { x: e.a * f + e.c * a + e.ma, y: e.b * f + e.K * a + e.na } }; b.tja = function(a, d, e) { return b.hh(a, d, e) }; b.Fva = function(a, d) { return { width: d.a * a.width + d.c * a.height, height: d.b * a.width + d.K * a.height } }; b.eka = function() { return { a: 1, b: 0, c: 0, K: 1, ma: 0, na: 0 } }; b.dka = function() { return { a: 1, b: 0, c: 0, K: 1, ma: 0, na: 0 } }; b.oi = function(a, d) { var e = b.jt(a), f = b.it(a), g = b.ox(a), h = b.px(a), k = b.hh(f, e, d), e = b.hh(g, e, d), f = b.hh(f, h, d), m = b.hh(g, h, d), g = Math.min(k.x, e.x, f.x, m.x), h = Math.max(k.x, e.x, f.x, m.x), n = Math.min(k.y, e.y, f.y, m.y), k = Math.max(k.y, e.y, f.y, m.y); return b.rect(g, n, h - g, k - n) }; b.Yi = function(a, d) { var e = b.jt(a), f = b.it(a), g = b.ox(a), h = b.px(a), k = b.hh(f, e, d), e = b.hh(g, e, d), f = b.hh(f, h, d), m = b.hh(g, h, d), g = Math.min(k.x, e.x, f.x, m.x), h = Math.max(k.x, e.x, f.x, m.x), n = Math.min(k.y, e.y, f.y, m.y), k = Math.max(k.y, e.y, f.y, m.y); a.x = g; a.y = n; a.width = h - g; a.height = k - n; return a }; b.JJ = function(a, d, e) { return { a: a.a, b: a.b, c: a.c, K: a.K, ma: a.ma + a.a * d + a.c * e, na: a.na + a.b * d + a.K * e } }; b.T6 = function(a, d, e) { return { a: a.a * d, b: a.b * d, c: a.c * e, K: a.K * e, ma: a.ma, na: a.na } }; b.TT = function(a, d) { var e = Math.sin(d), f = Math.cos(d); return { a: a.a * f + a.c * e, b: a.b * f + a.K * e, c: a.c * f - a.a * e, K: a.K * f - a.b * e, ma: a.ma, na: a.na } }; b.Dp = function(a, d) { return { a: a.a * d.a + a.b * d.c, b: a.a * d.b + a.b * d.K, c: a.c * d.a + a.K * d.c, K: a.c * d.b + a.K * d.K, ma: a.ma * d.a + a.na * d.c + d.ma, na: a.ma * d.b + a.na * d.K + d.na } }; b.cka = function(a, d) { return a.a === d.a && a.b === d.b && a.c === d.c && a.K === d.K && a.ma === d.ma && a.na === d.na }; b.ST = function(a) { var d = 1 / (a.a * a.K - a.b * a.c); return { a: d * a.K, b: -d * a.b, c: -d * a.c, K: d * a.a, ma: d * (a.c * a.na - a.K * a.ma), na: d * (a.b * a.ma - a.a * a.na) } }; b.wN = parseFloat("1.192092896e-07F"); b.zL = function(a) { return b.d(-a.x, -a.y) }; b.yj = function(a, d) { return b.d(a.x + d.x, a.y + d.y) }; b.zd = function(a, d) { return b.d(a.x - d.x, a.y - d.y) }; b.lm = function(a, d) { return b.d(a.x * d, a.y * d) }; b.yL = function(a, d) { return b.lm(b.yj(a, d), 0.5) }; b.et = function(a, d) { return a.x * d.x + a.y * d.y }; b.Mba = function(a, d) { return a.x * d.y - a.y * d.x }; b.oD = function(a) { return b.d(-a.y, a.x) }; b.Ira = function(a) { return b.d(a.y, -a.x) }; b.Hra = function(a, d) { return b.lm(d, b.et(a, d) / b.et(d, d)) }; b.Jra = function(a, d) { return b.d(a.x * d.x - a.y * d.y, a.x * d.y + a.y * d.x) }; b.Mra = function(a, d) { return b.d(a.x * d.x + a.y * d.y, a.y * d.x - a.x * d.y) }; b.FW = function(a) { return b.et(a, a) }; b.EW = function(a, d) { return b.FW(b.zd(a, d)) }; b.Xp = function(a) { return Math.sqrt(b.FW(a)) }; b.DW = function(a, d) { return b.Xp(b.zd(a, d)) }; b.ni = function(a) { var d = b.Xp(a); return 0 === d ? b.d(a) : b.lm(a, 1 / d) }; b.Dra = function(a) { return b.d(Math.cos(a), Math.sin(a)) }; b.Oba = function(a) { return Math.atan2(a.y, a.x) }; b.Zg = function(a, d, e) { if (d > e) { var f = d; d = e; e = f } return a < d ? d : a < e ? a : e }; b.BW = function(a) { var d = b.d(0, 0), e = b.d(1, 1); return b.d(b.Zg(a.x, d.x, e.x), b.Zg(a.y, d.y, e.y)) }; b.Era = function(a) { return b.d(a.width, a.height) }; b.Cra = function(a, d) { return b.d(d(a.x), d(a.y)) }; b.GW = function(a, d, e) { return b.yj(b.lm(a, 1 - e), b.lm(d, e)) }; b.Fra = function(a, d, e) { return a.x - e <= d.x && d.x <= a.x + e && a.y - e <= d.y && d.y <= a.y + e ? !0 : !1 }; b.Bra = function(a, d) { return b.d(a.x * d.x, a.y * d.y) }; b.AW = function(a, d) { var e = b.ni(a), f = b.ni(d), e = Math.atan2(e.x * f.y - e.y * f.x, b.et(e, f)); return Math.abs(e) < b.wN ? 0 : e }; b.Ara = function(a, d) { var e = Math.acos(b.et(b.ni(a), b.ni(d))); return Math.abs(e) < b.wN ? 0 : e }; b.HW = function(a, d, e) { a = b.zd(a, d); var f = Math.cos(e); e = Math.sin(e); var g = a.x; a.x = g * f - a.y * e + d.x; a.y = g * e + a.y * f + d.y; return a }; b.xL = function(a, d, e, f, g) { if (a.x === d.x && a.y === d.y || e.x === f.x && e.y === f.y) return !1; var h = d.x - a.x; d = d.y - a.y; var k = f.x - e.x; f = f.y - e.y; var m = a.x - e.x; a = a.y - e.y; e = f * h - k * d; g.x = k * a - f * m; g.y = h * a - d * m; if (0 === e) return 0 === g.x || 0 === g.y ? !0 : !1; g.x /= e; g.y /= e; return !0 }; b.Lra = function(a, d, e, f) { var g = b.d(0, 0); return b.xL(a, d, e, f, g) && 0 <= g.x && 1 >= g.x && 0 <= g.y && 1 >= g.y ? !0 : !1 }; b.Gra = function(a, d, e, f) { var g = b.d(0, 0); return b.xL(a, d, e, f, g) ? (e = b.d(0, 0), e.x = a.x + g.x * (d.x - a.x), e.y = a.y + g.x * (d.y - a.y), e) : b.d(0, 0) }; b.Kra = function(a, d) { return null != a && null != d ? a.x === d.x && a.y === d.y : !1 }; b.pD = function(a) { a.x = 0; a.y = 0 }; b.km = function(a, d) { a.x = d.x; a.y = d.y }; b.ft = function(a, d) { a.x *= d; a.y *= d }; b.IW = function(a, d) { a.x -= d.x; a.y -= d.y }; b.nD = function(a, d) { a.x += d.x; a.y += d.y }; b.Nba = function(a) { b.ft(a, 1 / Math.sqrt(a.x * a.x + a.y * a.y)) }; b.uM = function(a, d, e, f, g) { g += f; if (!(1 >= g)) { d *= 0.5; for (var h, k = g - 1, m = f; m < g; m++) { h = 2 * m; var n = b.d(a[2 * m], a[2 * m + 1]), p; if (0 === m) p = b.oD(b.ni(b.zd(n, b.d(a[2 * (m + 1)], a[2 * (m + 1) + 1])))); else if (m === k) p = b.oD(b.ni(b.zd(b.d(a[2 * (m - 1)], a[2 * (m - 1) + 1]), n))); else { p = b.d(a[2 * (m - 1)], a[2 * (m - 1) + 1]); var s = b.d(a[2 * (m + 1)], a[2 * (m + 1) + 1]), t = b.ni(b.zd(s, n)), v = b.ni(b.zd(p, n)), w = Math.acos(b.et(t, v)); p = w < b.Md(70) ? b.oD(b.ni(b.yL(t, v))) : w < b.Md(170) ? b.ni(b.yL(t, v)) : b.oD(b.ni(b.zd(s, p))) } p = b.lm(p, d); e[2 * h] = n.x + p.x; e[2 * h + 1] = n.y + p.y; e[2 * (h + 1)] = n.x - p.x; e[2 * (h + 1) + 1] = n.y - p.y } for (m = 0 === f ? 0 : f - 1; m < k; m++) h = 2 * m, a = h + 2, d = b.cE(e[2 * h], e[2 * h + 1]), g = b.cE(e[2 * (h + 1)], e[2 * (h + 1) + 1]), h = b.cE(e[2 * a], e[2 * a]), f = b.cE(e[2 * (a + 1)], e[2 * (a + 1) + 1]), d = !b.pfa(d.x, d.y, f.x, f.y, g.x, g.y, h.x, h.y), !d.Xw && (0 > d.value || 1 < d.value) && (d.Xw = !0), d.Xw && (e[2 * a] = f.x, e[2 * a + 1] = f.y, e[2 * (a + 1)] = h.x, e[2 * (a + 1) + 1] = h.y) } }; b.pfa = function(a, d, e, f, g, h, k, m) { if (a === e && d === f || g === k && h === m) return { Xw: !1, value: 0 }; e -= a; f -= d; g -= a; h -= d; k -= a; m -= d; a = Math.sqrt(e * e + f * f); e /= a; f /= a; d = g * e + h * f; h = h * e - g * f; g = d; d = k * e + m * f; m = m * e - k * f; k = d; return h === m ? { Xw: !1, value: 0 } : { Xw: !0, value: (k + (g - k) * m / (m - h)) / a } }; b.Kwa = function(a) { for (var d = 0, e = a.length; d < e; d++) { var f = a[(d + 1) % e], g = a[(d + 2) % e]; if (0 < b.Mba(b.zd(f, a[d]), b.zd(g, f))) return !1 } return !0 }; b.fga = function(a, d) { d[2] = d[3] = d[6] = d[7] = d[8] = d[9] = d[11] = d[14] = 0; d[10] = d[15] = 1; d[0] = a.a; d[4] = a.c; d[12] = a.ma; d[1] = a.b; d[5] = a.K; d[13] = a.na }; b.Iga = function(a, d) { d.a = a[0]; d.c = a[4]; d.ma = a[12]; d.b = a[1]; d.K = a[5]; d.na = a[13] }; b.mz = b.sa.extend({ Id: null, Xi: null, Ph: 0, bT: !1, rk: null, ctor: function(a, d, e) { this.Id = b.d(a || 0, d || 0); this.Ph = e || 0 }, hi: function() { return { x: this.Id.x, y: this.Id.y } }, P9: function() { return this.Id.x }, Q9: function() { return this.Id.y }, oV: function() { return { x: this.Xi.x, y: this.Xi.y } }, xoa: function() { return { x: this.rk.x, y: this.rk.y } }, AK: function() { return b.zd(this.Id, this.Xi) }, O9: function() { return { x: this.Id.x, y: this.Id.y } }, goa: function() { return { x: this.Xi.x, y: this.Xi.y } }, yoa: function() { return { x: this.rk.x, y: this.rk.y } }, una: function() { return this.Ph }, vna: function() { b.log("getId is deprecated. Please use getID instead."); return this.Ph }, kva: function(a, d, e) { this.Xi = this.Id; this.Id = b.d(d || 0, e || 0); this.Ph = a; this.bT || (this.rk = b.d(this.Id), this.bT = !0) }, JI: function(a, d) { void 0 === d ? (this.Id.x = a.x, this.Id.y = a.y) : (this.Id.x = a, this.Id.y = d) }, kp: function(a, d) { this.Xi = void 0 === d ? b.d(a.x, a.y) : b.d(a || 0, d || 0) } }); b.dc = b.sa.extend({ Jd: 0, Po: !1, Ed: null, DI: function(a) { this.Ed = a }, ctor: function(a) { this.Jd = a }, VK: function() { return this.Jd }, stopPropagation: function() { this.Po = !0 }, fqa: function() { return this.Po }, Tma: function() { return this.Ed } }); b.dc.gz = 0; b.dc.uq = 1; b.dc.Zn = 2; b.dc.vq = 3; b.dc.iu = 4; b.dc.Ot = 6; b.ko = b.dc.extend({ LG: null, GT: null, ctor: function(a) { b.dc.prototype.ctor.call(this, b.dc.Ot); this.LG = a }, setUserData: function(a) { this.GT = a }, getUserData: function() { return this.GT }, jna: function() { return this.LG } }); b.md = b.dc.extend({ FQ: 0, sP: 0, kj: 0, Nf: 0, eI: 0, fI: 0, AS: 0, BS: 0, ctor: function(a) { b.dc.prototype.ctor.call(this, b.dc.vq); this.FQ = a }, WX: function(a, d) { this.AS = a; this.BS = d }, soa: function() { return this.AS }, toa: function() { return this.BS }, pda: function(a, d) { this.kj = a; this.Nf = d }, hi: function() { return { x: this.kj, y: this.Nf } }, O9: function() { return { x: this.kj, y: b.view.Oi.height - this.Nf } }, a6: function(a, d) { this.eI = a; this.fI = d }, AK: function() { return { x: this.kj - this.eI, y: this.Nf - this.fI } }, Xma: function() { return this.kj - this.eI }, Yma: function() { return this.Nf - this.fI }, dq: function(a) { this.sP = a }, Ema: function() { return this.sP }, P9: function() { return this.kj }, Q9: function() { return this.Nf } }); b.md.NONE = 0; b.md.XM = 1; b.md.KF = 2; b.md.nN = 3; b.md.lF = 4; b.md.Zfa = 0; b.md.aga = 2; b.md.$fa = 1; b.md.Ufa = 3; b.md.Vfa = 4; b.md.Wfa = 5; b.md.Xfa = 6; b.md.Yfa = 7; b.Ah = b.dc.extend({ Ym: 0, sd: null, ctor: function(a) { b.dc.prototype.ctor.call(this, b.dc.gz); this.sd = a || [] }, ina: function() { return this.Ym }, Yoa: function() { return this.sd }, zja: function(a) { this.Ym = a }, Fja: function(a) { this.sd = a } }); b.Ah.hha = 5; b.Ah.rq = { fE: 0, LE: 1, wE: 2, jE: 3 }; b.Dga = b.dc.extend({ JT: null, KT: null, ctor: function(a, d) { b.dc.prototype.ctor.call(this, b.dc.iu); this.JT = d; this.KT = a } }); b.ia = b.sa.extend({ MH: null, Jd: 0, hk: null, Hf: !1, Zm: 0, k: null, Ye: !0, Br: !0, ctor: function(a, d, e) { this.MH = e; this.Jd = a || 0; this.hk = d || "" }, II: function(a) { this.Ye = a }, kja: function() { return this.Ye }, Pr: function(a) { this.Hf = a }, I4: function() { return this.Hf }, dja: function() { return this.Jd }, Zia: function() { return this.hk }, EI: function(a) { this.Zm = a }, Tia: function() { return this.Zm }, Nv: function(a) { this.k = a }, bja: function() { return this.k }, Xl: function() { return null !== this.MH }, q: function() { return null }, Gb: function(a) { this.Br = a }, isEnabled: function() { return this.Br }, CD: function() {}, Ad: function() {} }); b.ia.VO = 0; b.ia.to = 1; b.ia.hz = 2; b.ia.uq = 3; b.ia.vq = 4; b.ia.Zn = 5; b.ia.Zn = 6; b.ia.Ot = 8; b.ia.iu = 7; b.Fu = b.ia.extend({ zv: null, ctor: function(a, d) { this.zv = d; var e = this; b.ia.prototype.ctor.call(this, b.ia.Ot, a, function(a) { null !== e.zv && e.zv(a) }) }, Xl: function() { return b.ia.prototype.Xl.call(this) && null !== this.zv }, q: function() { return new b.Fu(this.hk, this.zv) } }); b.Fu.create = function(a, d) { return new b.Fu(a, d) }; b.Mm = b.ia.extend({ iD: null, lD: null, jD: null, kD: null, ctor: function() { var a = this; b.ia.prototype.ctor.call(this, b.ia.vq, b.Mm.kc, function(d) { var e = b.md; switch (d.FQ) { case e.XM: a.iD && a.iD(d); break; case e.KF: a.lD && a.lD(d); break; case e.nN: a.jD && a.jD(d); break; case e.lF: a.kD && a.kD(d) } }) }, q: function() { var a = new b.Mm; a.iD = this.iD; a.lD = this.lD; a.jD = this.jD; a.kD = this.kD; return a }, Xl: function() { return !0 } }); b.Mm.kc = "__cc_mouse"; b.Mm.create = function() { return new b.Mm }; b.Vj = b.ia.extend({ Yq: null, tm: !1, Qb: null, xd: null, Oc: null, uf: null, ctor: function() { b.ia.prototype.ctor.call(this, b.ia.to, b.Vj.kc, null); this.Yq = [] }, Uua: function(a) { this.tm = a }, gqa: function() { return this.tm }, q: function() { var a = new b.Vj; a.Qb = this.Qb; a.xd = this.xd; a.Oc = this.Oc; a.uf = this.uf; a.tm = this.tm; return a }, Xl: function() { return this.Qb ? !0 : (b.log(b.o.t2), !1) } }); b.Vj.kc = "__cc_touch_one_by_one"; b.Vj.create = function() { return new b.Vj }; b.Uj = b.ia.extend({ dx: null, gx: null, fx: null, ex: null, ctor: function() { b.ia.prototype.ctor.call(this, b.ia.hz, b.Uj.kc, null) }, q: function() { var a = new b.Uj; a.dx = this.dx; a.gx = this.gx; a.fx = this.fx; a.ex = this.ex; return a }, Xl: function() { return null === this.dx && null === this.gx && null === this.fx && null === this.ex ? (b.log(b.o.s2), !1) : !0 } }); b.Uj.kc = "__cc_touch_all_at_once"; b.Uj.create = function() { return new b.Uj }; b.ia.create = function(a) { b.assert(a && a.event, b.o.VZ); var d = a.event; delete a.event; var e = null; d === b.ia.to ? e = new b.Vj : d === b.ia.hz ? e = new b.Uj : d === b.ia.vq ? e = new b.Mm : d === b.ia.Ot ? (e = new b.Fu(a.I8, a.mj), delete a.I8, delete a.mj) : d === b.ia.uq ? e = new b.Lm : d === b.ia.Zn ? (e = new b.Km(a.mj), delete a.mj) : d === b.ia.iu && (e = new b.Gu); for (var f in a) e[f] = a[f]; return e }; b.Gu = b.ia.extend({ q: function() { var a = new b.Gu; a.ax = this.ax; return a }, Xl: function() { return this.ax ? !0 : (b.log("Invalid EventListenerFocus!"), !1) }, ax: null, ctor: function() { b.ia.prototype.ctor.call(this, b.ia.iu, b.Gu.kc, function(a) { this.ax && this.ax(a.KT, a.JT) }) } }); b.Gu.kc = "__cc_focus_event"; b.u2 = b.sa.extend({ Jg: null, Tg: null, HV: 0, ctor: function() { this.Jg = []; this.Tg = [] }, size: function() { return this.Jg.length + this.Tg.length }, empty: function() { return 0 === this.Jg.length && 0 === this.Tg.length }, push: function(a) { 0 === a.Zm ? this.Tg.push(a) : this.Jg.push(a) }, G7: function() { this.Tg.length = 0 }, F7: function() { this.Jg.length = 0 }, clear: function() { this.Tg.length = 0; this.Jg.length = 0 }, lna: function() { return this.Jg }, roa: function() { return this.Tg } }); b.wz = function(a) { var d = b.dc, e = a.Jd; if (e === d.Zn) return b.Km.kc; if (e === d.Ot) return a.LG; if (e === d.uq) return b.Lm.kc; if (e === d.vq) return b.Mm.kc; if (e === d.iu) return b.Gu.kc; e === d.gz && b.log(b.o.wz); return "" }; b.ua = { uE: 0, hy: 1, St: 2, wga: 3, Qh: {}, Ev: {}, kk: {}, QA: {}, $Q: {}, $r: [], Zu: [], No: 0, Br: !1, RR: 0, G4: [b.pb.yE, b.pb.ly], tB: function(a) { null != this.kk[a.ba] && this.Zu.push(a); a = a.m; for (var d = 0, e = a.length; d < e; d++) this.tB(a[d]) }, gt: function(a, d) { var e = this.kk[a.ba], f, g; if (e) for (f = 0, g = e.length; f < g; f++) e[f].II(!0); if (!0 === d) for (e = a.m, f = 0, g = e.length; f < g; f++) this.gt(e[f], !0) }, nm: function(a, d) { var e = this.kk[a.ba], f, g; if (e) for (f = 0, g = e.length; f < g; f++) e[f].II(!1); this.tB(a); if (!0 === d) for (e = a.m, f = 0, g = e.length; f < g; f++) this.nm(e[f], !0) }, F2: function(a) { 0 === this.No ? this.MQ(a) : this.$r.push(a) }, MQ: function(a) { var d = a.hk, e = this.Qh[d]; e || (e = new b.u2, this.Qh[d] = e); e.push(a); 0 === a.Zm ? (this.sn(d, this.St), d = a.k, null === d && b.log(b.o.B8), this.O2(d, a), d.Sg && this.nm(d)) : this.sn(d, this.hy) }, cH: function(a) { return this.Qh[a] }, F6: function() { if (0 !== this.Zu.length) { for (var a = this.Zu, d, e, f = this.kk, g = 0, h = a.length; g < h; g++) if (d = f[a[g].ba]) for (var k = 0, m = d.length; k < m; k++)(e = d[k]) && this.sn(e.hk, this.St); this.Zu.length = 0 } }, rS: function(a) { if (a) for (var d, e = 0; e < a.length;) d = a[e], d.Pr(!1), null != d.k && (this.YP(d.k, d), d.Nv(null)), 0 === this.No ? b.ge(a, d) : ++e }, fp: function(a) { var d = this.Qh[a]; if (d) { var e = d.Jg; this.rS(d.Tg); this.rS(e); delete this.Ev[a]; this.No || (d.clear(), delete this.Qh[a]) } for (var e = this.$r, f, d = 0; d < e.length;)(f = e[d]) && f.hk === a ? b.ge(e, f) : ++d }, VI: function(a) { var d = this.uE, e = this.Ev; e[a] && (d = e[a]); d !== this.uE && (e[a] = this.uE, d & this.hy && this.q6(a), d & this.St && ((d = b.P.qd) ? this.s6(a, d) : e[a] = this.St)) }, s6: function(a, d) { var e = this.cH(a); if (e) { var f = e.Tg; f && 0 !== f.length && (this.RR = 0, this.QA = {}, this.zJ(d, !0), e.Tg.sort(this.p6)) } }, p6: function(a, d) { var e = b.ua.QA, f = a.k, g = d.k; return a && d && f && g && e[f.ba] && e[g.ba] ? e[d.k.ba] - e[a.k.ba] : -1 }, q6: function(a) { if (a = this.Qh[a]) { var d = a.Jg; if (d && 0 !== d.length) { d.sort(this.r6); for (var e = 0, f = d.length; e < f && !(0 <= d[e].Zm);) ++e; a.HV = e } } }, r6: function(a, d) { return a.Zm - d.Zm }, NH: function(a) { if (a = this.Qh[a]) { var d = a.Jg, e = a.Tg, f, g; if (e) for (f = 0; f < e.length;) g = e[f], g.Hf ? ++f : b.ge(e, g); if (d) for (f = 0; f < d.length;) g = d[f], g.Hf ? ++f : b.ge(d, g); e && 0 === e.length && a.G7(); d && 0 === d.length && a.F7() } }, PB: function(a) { var d = this.No; b.assert(0 < d, b.o.WZ); if (!(1 < d)) { a.Jd === b.dc.gz ? (this.NH(b.Vj.kc), this.NH(b.Uj.kc)) : this.NH(b.wz(a)); b.assert(1 === d, b.o.XZ); a = this.Qh; var d = this.Ev, e; for (e in a) a[e].empty() && (delete d[e], delete a[e]); e = this.$r; if (0 !== e.length) { a = 0; for (d = e.length; a < d; a++) this.MQ(e[a]); this.$r.length = 0 } } }, c5: function(a, d) { if (!a.I4) return !1; var e = d.event, f = d.eX; e.DI(a.k); var g = !1, h, k = e.Ym, m = b.Ah.rq; k === m.fE ? a.Qb && (g = a.Qb(f, e)) && a.Hf && a.Yq.push(f) : 0 < a.Yq.length && -1 !== (h = a.Yq.indexOf(f)) && (g = !0, k === m.LE && a.xd ? a.xd(f, e) : k === m.wE ? (a.Oc && a.Oc(f, e), a.Hf && a.Yq.splice(h, 1)) : k === m.jE && (a.uf && a.uf(f, e), a.Hf && a.Yq.splice(h, 1))); return e.Po ? (b.ua.PB(e), !0) : g && a.Hf && a.tm ? (d.Fba && d.touches.splice(f, 1), !0) : !1 }, n3: function(a) { this.VI(b.Vj.kc); this.VI(b.Uj.kc); var d = this.cH(b.Vj.kc), e = this.cH(b.Uj.kc); if (null !== d || null !== e) { var f = a.sd, g = b.oU(f), h = { event: a, Fba: d && e, touches: g, eX: null }; if (d) for (var k = 0; k < f.length; k++) if (h.eX = f[k], this.DG(d, this.c5, h), a.Po) return; if (e && 0 < g.length && (this.DG(e, this.e5, { event: a, touches: g }), a.Po)) return; this.PB(a) } }, e5: function(a, d) { if (!a.Hf) return !1; var e = b.Ah.rq, f = d.event, g = d.touches, h = f.Ym; f.DI(a.k); h === e.fE && a.dx ? a.dx(g, f) : h === e.LE && a.gx ? a.gx(g, f) : h === e.wE && a.fx ? a.fx(g, f) : h === e.jE && a.ex && a.ex(g, f); return f.Po ? (b.ua.PB(f), !0) : !1 }, O2: function(a, d) { var e = this.kk[a.ba]; e || (e = [], this.kk[a.ba] = e); e.push(d) }, YP: function(a, d) { var e = this.kk[a.ba]; e && (b.ge(e, d), 0 === e.length && delete this.kk[a.ba]) }, DG: function(a, d, e) { var f = !1, g = a.Jg, h = a.Tg, k = 0, m; if (g && 0 !== g.length) for (; k < a.HV; ++k) if (m = g[k], m.isEnabled() && !m.Ye && m.Hf && d(m, e)) { f = !0; break } if (h && !f) for (a = 0; a < h.length; a++) if (m = h[a], m.isEnabled() && !m.Ye && m.Hf && d(m, e)) { f = !0; break } if (g && !f) for (; k < g.length && (m = g[k], !m.isEnabled() || m.Ye || !m.Hf || !d(m, e)); ++k); }, sn: function(a, d) { var e = this.Ev; e[a] = null == e[a] ? d : d | e[a] }, zJ: function(a, d) { var e = a.m, f = 0, g = e.length, h = this.$Q, k = this.kk; if (0 < g) { for (var m; f < g; f++) if ((m = e[f]) && 0 > m.wc) this.zJ(m, !1); else break; null != k[a.ba] && (h[a.nl] || (h[a.nl] = []), h[a.nl].push(a.ba)); for (; f < g; f++)(m = e[f]) && this.zJ(m, !1) } else null != k[a.ba] && (h[a.nl] || (h[a.nl] = []), h[a.nl].push(a.ba)); if (d) { var e = [], n; for (n in h) e.push(n); e.sort(this.t6); n = e.length; m = this.QA; for (f = 0; f < n; f++) for (g = h[e[f]], k = 0; k < g.length; k++) m[g[k]] = ++this.RR; this.$Q = {} } }, t6: function(a, d) { return a - d }, addListener: function(a, d) { b.assert(a && d, b.o.D8); if (!(a instanceof b.ia)) b.assert(!b.Vw(d), b.o.E8), a = b.ia.create(a); else if (a.Hf) { b.log(b.o.F8); return } if (a.Xl()) { if (b.Vw(d)) { if (0 === d) { b.log(b.o.C8); return } a.Nv(null); a.EI(d); a.Pr(!0); a.II(!1) } else a.Nv(d), a.EI(0), a.Pr(!0); this.F2(a); return a } }, GJ: function(a, d) { var e = new b.Fu(a, d); this.addListener(e, 1); return e }, removeListener: function(a) { if (null != a) { var d, e = this.Qh, f; for (f in e) { var g = e[f], h = g.Jg; (d = this.sS(g.Tg, a)) ? this.sn(a.hk, this.St): (d = this.sS(h, a)) && this.sn(a.hk, this.hy); g.empty() && (delete this.Ev[a.hk], delete e[f]); if (d) break } if (!d) for (d = this.$r, e = 0, f = d.length; e < f; e++) if (g = d[e], g === a) { b.ge(d, g); g.Pr(!1); break } } }, sS: function(a, d) { if (null == a) return !1; for (var e = 0, f = a.length; e < f; e++) { var g = a[e]; if (g === d) return g.Pr(!1), null != g.k && (this.YP(g.k, g), g.Nv(null)), 0 === this.No && b.ge(a, g), !0 } return !1 }, SW: function(a, d) { if (a instanceof b.e) { delete this.QA[a.ba]; b.ge(this.Zu, a); var e = this.kk[a.ba]; if (e) { for (var f = b.oU(e), e = 0; e < f.length; e++) this.removeListener(f[e]); f.length = 0 } f = this.$r; for (e = 0; e < f.length;) { var g = f[e]; g.k === a ? (g.Nv(null), g.Pr(!1), f.splice(e, 1)) : ++e } if (!0 === d) for (f = a.m, e = 0, g = f.length; e < g; e++) this.SW(f[e], !0) } else a === b.ia.to ? this.fp(b.Vj.kc) : a === b.ia.hz ? this.fp(b.Uj.kc) : a === b.ia.vq ? this.fp(b.Mm.kc) : a === b.ia.Zn ? this.fp(b.Km.kc) : a === b.ia.uq ? this.fp(b.Lm.kc) : b.log(b.o.G8) }, Fsa: function(a) { this.fp(a) }, zsa: function() { var a = this.Qh, d = this.G4, e; for (e in a) - 1 === d.indexOf(e) && this.fp(e) }, Fua: function(a, d) { if (null != a) { var e = this.Qh, f; for (f in e) { var g = e[f].Jg; if (g && -1 !== g.indexOf(a)) { null != a.k && b.log(b.o.H8); a.Zm !== d && (a.EI(d), this.sn(a.hk, this.hy)); break } } } }, Gb: function(a) { this.Br = a }, isEnabled: function() { return this.Br }, dispatchEvent: function(a) { if (this.Br) { this.F6(); this.No++; if (!a || !a.VK) throw "event is undefined"; if (a.Jd === b.dc.gz) this.n3(a); else { var d = b.wz(a); this.VI(d); d = this.Qh[d]; null != d && this.DG(d, this.Y4, a); this.PB(a) } this.No-- } }, Y4: function(a, d) { d.DI(a.k); a.MH(d); return d.Po }, $ka: function(a, d) { var e = new b.ko(a); e.setUserData(d); this.dispatchEvent(e) } }; b.zh = function() {}; b.zh.prototype = { constructor: b.zh, apply: function(a) { a.addEventListener = b.zh.prototype.addEventListener; a.aL = b.zh.prototype.aL; a.removeEventListener = b.zh.prototype.removeEventListener; a.dispatchEvent = b.zh.prototype.dispatchEvent }, addEventListener: function(a, d, e) { if ("load" === a && this.R) setTimeout(function() { d.call(e) }, 0); else { void 0 === this.fn && (this.fn = {}); var f = this.fn; void 0 === f[a] && (f[a] = []); this.aL(a, d, e) || f[a].push({ mj: d, uK: e }) } }, aL: function(a, d, e) { if (void 0 === this.fn) return !1; var f = this.fn; if (void 0 !== f[a]) { a = 0; for (var g = f.length; a < g; a++) { var h = f[a]; if (h.mj === d && h.uK === e) return !0 } } return !1 }, removeEventListener: function(a, d) { if (void 0 !== this.fn) { var e = this.fn[a]; if (void 0 !== e) for (var f = 0; f < e.length;) e[f].uK === d ? e.splice(f, 1) : f++ } }, dispatchEvent: function(a, d) { if (void 0 !== this.fn) { null == d && (d = !0); var e = this.fn[a]; if (void 0 !== e) { for (var f = [], g = e.length, h = 0; h < g; h++) f[h] = e[h]; for (h = 0; h < g; h++) f[h].mj.call(f[h].uK, this); d && (e.length = 0) } } } }; b.UZ = b.dc.extend({ hP: null, ctor: function(a) { b.dc.prototype.ctor.call(this, b.dc.Zn); this.hP = a } }); b.aN = b.dc.extend({ uH: 0, tR: !1, ctor: function(a, d) { b.dc.prototype.ctor.call(this, b.dc.uq); this.uH = a; this.tR = d } }); b.Km = b.ia.extend({ VA: null, ctor: function(a) { this.VA = a; var d = this; b.ia.prototype.ctor.call(this, b.ia.Zn, b.Km.kc, function(a) { d.VA(a.hP, a) }) }, Xl: function() { b.assert(this.VA, b.o.q2); return !0 }, q: function() { return new b.Km(this.VA) } }); b.Km.kc = "__cc_acceleration"; b.Km.create = function(a) { return new b.Km(a) }; b.Lm = b.ia.extend({ bx: null, cx: null, ctor: function() { var a = this; b.ia.prototype.ctor.call(this, b.ia.uq, b.Lm.kc, function(d) { d.tR ? a.bx && a.bx(d.uH, d) : a.cx && a.cx(d.uH, d) }) }, q: function() { var a = new b.Lm; a.bx = this.bx; a.cx = this.cx; return a }, Xl: function() { return null === this.bx && null === this.cx ? (b.log(b.o.r2), !1) : !0 } }); b.Lm.kc = "__cc_keyboard"; b.Lm.create = function() { return new b.Lm }; b.Aca = { he: !0, Ul: [], Il: [], yA: !1, Kz: {}, Vq: [], fl: 0, sV: function(a) { return a.Ic() }, Eb: function(a) { var d = this.Il, e, f = b.view.oc(), g = b.view.gd(), h = a || b.A; h.lU(); a = 0; for (e = d.length; a < e; a++) d[a].Eb(h, f, g) }, Jv: function(a, d, e, f) { a || b.log("The context of RenderTexture is invalid."); e = b.sj(e) ? 1 : e; f = b.sj(f) ? 1 : f; d = d || this.fl; var g = this.Kz[d], h, k; a.lU(); h = 0; for (k = g.length; h < k; h++) g[h].Eb(a, e, f); g.length = 0; a = this.Vq; delete this.Kz[d]; b.ge(a, d); 0 === a.length ? this.yA = !1 : this.fl = a[a.length - 1] }, es: function(a) { this.yA = !0; a = a || 0; this.Kz[a] = []; - 1 === this.Vq.indexOf(a) && this.Vq.push(a); this.fl = a }, A6: function() { this.yA = !1 }, XW: function() { this.he = !1; this.Ul.length = 0 }, transform: function() { var a = this.Ul; a.sort(this.WI); for (var d = 0, e = a.length; d < e; d++) 0 !== a[d].G && a[d].updateStatus(); a.length = 0 }, la: function() { return 0 < this.Ul.length }, WI: function(a, d) { return a.Zd - d.Zd }, LW: function(a) { this.Ul.push(a) }, jU: function() { this.Il.length = 0 }, Ec: function(a) { if (a.cb) if (this.yA) { var d = this.Kz[this.fl]; - 1 === d.indexOf(a) && d.push(a) } else -1 === this.Il.indexOf(a) && this.Il.push(a) } }; b.W === b.Jb && (b.oa = b.Aca); (function() { b.nq = function(a) { this.Sb = a; this.Or = 0; this.uG = a.globalAlpha; this.vG = a.globalCompositeOperation; this.wG = a.fillStyle; this.xG = a.strokeStyle; this.TA = this.KH = 0; this.Hv = this.height; this.YF = 0 }; var a = b.nq.prototype; a.VW = function() { var a = this.Sb; this.uG = a.globalAlpha; this.vG = a.globalCompositeOperation; this.wG = a.fillStyle; this.xG = a.strokeStyle; this.Hv = this.Sb.canvas.height + this.TA }; a.Gj = function(a, e) { this.KH = a; this.TA = e; this.Hv = this.Sb.canvas.height + this.TA }; a.lU = function() { this.Hv = this.Sb.canvas.height + this.TA }; a.Cva = function(a, e) { this.Wb = a; this.Sc = e }; a.getContext = function() { return this.Sb }; a.save = function() { this.Sb.save(); this.Or++ }; a.restore = function() { this.Sb.restore(); this.Or-- }; a.ut = function(a) { 0 < this.Or ? this.Sb.globalAlpha = a : this.uG !== a && (this.uG = a, this.Sb.globalAlpha = a) }; a.xx = function(a) { 0 < this.Or ? this.Sb.globalCompositeOperation = a : this.vG !== a && (this.vG = a, this.Sb.globalCompositeOperation = a) }; a.Fj = function(a) { 0 < this.Or ? this.Sb.fillStyle = a : this.wG !== a && (this.wG = a, this.Sb.fillStyle = a) }; a.VD = function(a) { 0 < this.Or ? this.Sb.strokeStyle = a : this.xG !== a && (this.xG = a, this.Sb.strokeStyle = a) }; a.setTransform = function(a, e, f) { 0 < this.YF ? (this.restore(), this.save(), this.Sb.transform(a.a, -a.b, -a.c, a.K, a.ma * e, -(a.na * f))) : this.Sb.setTransform(a.a, -a.b, -a.c, a.K, this.KH + a.ma * e, this.Hv - a.na * f) }; a.Kja = function(a, e, f, g) { a ? (this.YF++, this.Sb.setTransform(e.a, e.c, e.b, e.K, this.KH + e.ma * f, this.Hv - e.na * g), this.save()) : (this.YF--, this.restore()) } })(); b.Bca = { he: !0, Ul: [], Il: [], xA: !1, Jz: {}, Vq: [], fl: 0, sV: function(a) { return a.Ic() }, Eb: function(a) { var d = this.Il, e, f = a || b.A; a = 0; for (e = d.length; a < e; a++) d[a].Eb(f) }, es: function(a) { this.xA = !0; a = a || 0; this.Jz[a] = []; this.Vq.push(a); this.fl = a }, A6: function() { this.xA = !1 }, G5: function(a) { a = a || this.fl; var d = this.Jz[a], e, f, g = b.A, h = this.Vq; e = 0; for (f = d.length; e < f; e++) d[e].Eb(g); d.length = 0; delete this.Jz[a]; b.ge(h, a); 0 === h.length ? this.xA = !1 : this.fl = h[h.length - 1] }, XW: function() { this.he = !1; this.Ul.length = 0 }, transform: function() { var a = this.Ul; a.sort(this.WI); for (var d = 0, e = a.length; d < e; d++) a[d].updateStatus(); a.length = 0 }, la: function() { return 0 < this.Ul.length }, WI: function(a, d) { return a.Zd - d.Zd }, LW: function(a) { this.Ul.push(a) }, jU: function() { this.Il.length = 0 }, Ec: function(a) { if (a.cb) if (this.xA) { var d = this.Jz[this.fl]; - 1 === d.indexOf(a) && d.push(a) } else -1 === this.Il.indexOf(a) && this.Il.push(a) } }; b.W === b.ya && (b.oa = b.Bca); b.Ea.aF = function() { var a = b.e.prototype; b.i(a, "x", a.vd, a.UL); b.i(a, "y", a.Qf, a.NX); b.i(a, "width", a.Nh, a.cj); b.i(a, "height", a.ml, a.bj); b.i(a, "anchorX", a.TG, a.xI); b.i(a, "anchorY", a.D3, a.yI); b.i(a, "skewX", a.F$, a.Rda); b.i(a, "skewY", a.G$, a.Sda); b.i(a, "zIndex", a.N9, a.AX); b.i(a, "vertexZ", a.U$, a.iea); b.i(a, "rotation", a.w$, a.QD); b.i(a, "rotationX", a.y$, a.Pda); b.i(a, "rotationY", a.z$, a.Qda); b.i(a, "scale", a.Jw, a.Tn); b.i(a, "scaleX", a.oc, a.oh); b.i(a, "scaleY", a.gd, a.ph); b.i(a, "children", a.e9); b.i(a, "childrenCount", a.f9); b.i(a, "parent", a.getParent, a.JX); b.i(a, "visible", a.eba, a.Ci); b.i(a, "running", a.bba); b.i(a, "ignoreAnchor", a.Yaa, a.pj); b.i(a, "actionManager", a.mC, a.fX); b.i(a, "scheduler", a.Jn, a.VX); b.i(a, "shaderProgram", a.Ms, a.pm); b.i(a, "opacity", a.bh, a.Hb); b.i(a, "opacityModifyRGB", a.tf); b.i(a, "cascadeOpacity", a.Taa, a.qt); b.i(a, "color", a.rf, a.X); b.i(a, "cascadeColor", a.Saa, a.nX) }; b.rN = -1; b.LL = 1; b.e = b.sa.extend({ wc: 0, nl: 0, jw: 0, Jl: 0, on: 0, Wb: 1, Sc: 1, Ca: null, Xo: null, UB: !1, IH: !1, dj: 0, ej: 0, m: null, Ta: !0, Ih: null, U: null, Sg: !1, Ga: null, dn: !1, tag: b.rN, userData: null, userObject: null, kg: !1, za: null, arrivalOrder: 0, Cg: null, de: null, Pia: null, Iu: !1, Az: null, Jh: null, tH: !1, Ma: "Node", TS: !1, Wo: "", Hl: 255, Qg: null, Zc: !1, $c: !1, f: null, Mi: null, ctor: function() { this.y4(); this.A4() }, y4: function() { this.Ih = b.d(0, 0); this.U = b.size(0, 0); this.Ca = b.d(0, 0); this.Xo = b.d(0, 0); this.m = []; var a = b.P; this.Cg = a.mC(); this.de = a.Jn(); this.Az = { a: 1, b: 0, c: 0, K: 1, ma: 0, na: 0 }; b.uZ && (this.Jh = new b.uZ(this)); this.Hl = 255; this.Qg = b.color(255, 255, 255, 255); this.$c = this.Zc = !1 }, T: function() { return !0 }, Ki: function(a, d) { if (a && 0 !== a.length) { var e, f = a.length, g; e = b.e.Wh; switch (d) { case e.aa: for (e = 0; e < f; e++)(g = a[e]) && g.aa(); break; case e.Pb: for (e = 0; e < f; e++)(g = a[e]) && g.Pb(); break; case e.wj: for (e = 0; e < f; e++)(g = a[e]) && g.wj(); break; case e.qf: for (e = 0; e < f; e++)(g = a[e]) && g.qf(); break; case e.ug: for (e = 0; e < f; e++)(g = a[e]) && g.ug(); break; case e.eh: for (e = 0; e < f; e++)(g = a[e]) && g.eh(); break; case e.Ne: for (e = 0; e < f; e++)(g = a[e]) && g.Ne(); break; default: b.assert(0, b.o.H_) } } }, Nb: function(a) { for (var d in a) this[d] = a[d] }, F$: function() { return this.dj }, Rda: function(a) { this.dj = a; this.f.va(b.e.V.la) }, G$: function() { return this.ej }, Sda: function(a) { this.ej = a; this.f.va(b.e.V.la) }, AX: function(a) { this.wc = a; this.Ga && this.Ga.lt(this, a); b.ua.tB(this) }, vB: function(a) { this.wc = a }, N9: function() { return this.wc }, jpa: function() { b.log(b.o.N_); return this.wc }, Dva: function(a) { b.log(b.o.X_); this.AX(a) }, Yta: function(a) { this.nl !== a && (this.nl = a, b.ua.tB(this)) }, sna: function() { return this.nl }, U$: function() { return this.jw }, iea: function(a) { this.jw = a }, w$: function() { this.Jl !== this.on && b.log(b.o.L_); return this.Jl }, QD: function(a) { this.Jl = this.on = a; this.f.va(b.e.V.la) }, y$: function() { return this.Jl }, Pda: function(a) { this.Jl = a; this.f.va(b.e.V.la) }, z$: function() { return this.on }, Qda: function(a) { this.on = a; this.f.va(b.e.V.la) }, Jw: function() { this.Wb !== this.Sc && b.log(b.o.M_); return this.Wb }, Tn: function(a, d) { this.Wb = a; this.Sc = d || 0 === d ? d : a; this.f.va(b.e.V.la) }, oc: function() { return this.Wb }, oh: function(a) { this.Wb = a; this.f.va(b.e.V.la) }, gd: function() { return this.Sc }, ph: function(a) { this.Sc = a; this.f.va(b.e.V.la) }, I: function(a, d) { var e = this.Ca; if (void 0 === d) { if (e.x === a.x && e.y === a.y) return; e.x = a.x; e.y = a.y } else { if (e.x === a && e.y === d) return; e.x = a; e.y = d } this.UB = !1; this.f.va(b.e.V.la) }, qua: function(a, d) { var e = this.Xo; void 0 === d ? (e.x = a.x, e.y = a.y) : (e.x = a, e.y = d); this.IH = this.UB = !0; this.f.va(b.e.V.la) }, Pf: function() { return b.d(this.Ca) }, Pna: function() { return b.d(this.Xo) }, vd: function() { return this.Ca.x }, UL: function(a) { this.Ca.x = a; this.f.va(b.e.V.la) }, Qf: function() { return this.Ca.y }, NX: function(a) { this.Ca.y = a; this.f.va(b.e.V.la) }, f9: function() { return this.m.length }, e9: function() { return this.m }, eba: function() { return this.Ta }, Ci: function(a) { this.Ta !== a && (this.Ta = a, this.f.va(b.e.V.la), b.oa.he = !0) }, yma: function() { return b.d(this.Ih) }, rb: function(a, d) { var e = this.Ih; if (void 0 === d) { if (a.x === e.x && a.y === e.y) return; e.x = a.x; e.y = a.y } else { if (a === e.x && d === e.y) return; e.x = a; e.y = d } ha(this.f) }, TG: function() { return this.Ih.x }, xI: function(a) { this.Ih.x !== a && (this.Ih.x = a, ha(this.f)) }, D3: function() { return this.Ih.y }, yI: function(a) { this.Ih.y !== a && (this.Ih.y = a, ha(this.f)) }, Cw: function() { return this.f.Cw() }, Nh: function() { return this.U.width }, cj: function(a) { this.U.width = a; ha(this.f) }, ml: function() { return this.U.height }, bj: function(a) { this.U.height = a; ha(this.f) }, L: function() { return b.size(this.U) }, Na: function(a, d) { var e = this.U; if (void 0 === d) { if (a.width === e.width && a.height === e.height) return; e.width = a.width; e.height = a.height } else { if (a === e.width && d === e.height) return; e.width = a; e.height = d } ha(this.f) }, bba: function() { return this.Sg }, getParent: function() { return this.Ga }, JX: function(a) { this.Ga = a }, Yaa: function() { return this.dn }, pj: function(a) { a !== this.dn && (this.dn = a, this.f.va(b.e.V.la)) }, yC: function() { return this.tag }, Ix: function(a) { this.tag = a }, xda: function(a) { this.Wo = a }, getName: function() { return this.Wo }, getUserData: function() { return this.userData }, setUserData: function(a) { this.userData = a }, epa: function() { return this.userObject }, Ava: function(a) { this.userObject !== a && (this.userObject = a) }, Wna: function() { return this.arrivalOrder }, Eda: function(a) { this.arrivalOrder = a }, mC: function() { this.Cg || (this.Cg = b.P.mC()); return this.Cg }, fX: function(a) { this.Cg !== a && (this.gM(), this.Cg = a) }, Jn: function() { this.de || (this.de = b.P.Jn()); return this.de }, VX: function(a) { this.de !== a && (this.pM(), this.de = a) }, rka: function() { b.log(b.o.J_); return this.ud() }, ud: function() { var a = b.rect(0, 0, this.U.width, this.U.height); return b.Yi(a, this.He()) }, qf: function() { this.gM(); this.pM(); b.ua.SW(this); this.Ki(this.m, b.e.Wh.qf) }, gi: function(a) { var d = this.m; if (null !== d) for (var e = 0; e < d.length; e++) { var f = d[e]; if (f && f.tag === a) return f } return null }, Kma: function(a) { if (!a) return b.log("Invalid name"), null; for (var d = this.m, e = 0, f = d.length; e < f; e++) if (d[e].Wo === a) return d[e]; return null }, C: function(a, d, e) { d = void 0 === d ? a.wc : d; var f, g = !1; b.sj(e) ? (e = void 0, f = a.Wo) : b.Je(e) ? (f = e, e = void 0) : b.Vw(e) && (g = !0, f = ""); b.assert(a, b.o.I_); b.assert(null === a.Ga, "child already added. It can't be added again"); this.VF(a, d, e, f, g) }, VF: function(a, d, e, f, g) { this.m || (this.m = []); this.E4(a, d); g ? a.Ix(e) : a.xda(f); a.JX(this); a.Eda(b.LL++); this.Sg && (a.aa(), this.tH && a.wj()); this.Zc && a.f.va(b.e.V.Ka); this.$c && a.f.va(b.e.V.Ha) }, Rn: function(a) { this.Ga && (void 0 === a && (a = !0), this.Ga.removeChild(this, a)) }, Gsa: function(a) { b.log(b.o.R_); this.Rn(a) }, removeChild: function(a, d) { 0 !== this.m.length && (void 0 === d && (d = !0), -1 < this.m.indexOf(a) && this.l3(a, d), b.oa.he = !0) }, HL: function(a, d) { a === b.rN && b.log(b.o.P_); var e = this.gi(a); e ? this.removeChild(e, d) : b.log(b.o.Q_, a) }, ysa: function(a) { this.pi(a) }, pi: function(a) { var d = this.m; if (null !== d) { void 0 === a && (a = !0); for (var e = 0; e < d.length; e++) { var f = d[e]; f && (this.Sg && (f.eh(), f.Pb()), a && f.qf(), f.parent = null, f.f.iC()) } this.m.length = 0; b.oa.he = !0 } }, l3: function(a, d) { this.Sg && (a.eh(), a.Pb()); d && a.qf(); a.parent = null; a.f.iC(); b.ge(this.m, a) }, E4: function(a, d) { b.oa.he = this.kg = !0; this.m.push(a); a.vB(d) }, Pk: function() { this.f.va(b.e.V.la) }, lt: function(a, d) { b.assert(a, b.o.S_); b.oa.he = this.kg = !0; a.arrivalOrder = b.LL; b.LL++; a.vB(d) }, Ne: function() { if (this.kg) { var a = this.m, d = a.length, e, f, g; for (e = 1; e < d; e++) { g = a[e]; for (f = e - 1; 0 <= f;) { if (g.wc < a[f].wc) a[f + 1] = a[f]; else if (g.wc === a[f].wc && g.arrivalOrder < a[f].arrivalOrder) a[f + 1] = a[f]; else break; f-- } a[f + 1] = g } this.kg = !1 } }, KU: function() {}, efa: function() { null !== this.Ga && (this.Ga.efa(), this.Ga.transform()) }, aa: function() { this.tH = !1; this.Sg = !0; this.Ki(this.m, b.e.Wh.aa); this.Cj() }, wj: function() { this.tH = !0; this.Ki(this.m, b.e.Wh.wj) }, eh: function() { this.Ki(this.m, b.e.Wh.eh) }, Pb: function() { this.Sg = !1; this.pause(); this.Ki(this.m, b.e.Wh.Pb); this.qca() }, Ba: function(a) { b.assert(a, b.o.U_); this.actionManager.N6(a, this, !this.Sg); return a }, gM: function() { this.actionManager && this.actionManager.RW(this) }, nY: function(a) { this.actionManager.QW(a) }, Hea: function(a) { a === b.kq ? b.log(b.o.Y_) : this.actionManager.pca(a, this) }, lC: function(a) { return a === b.kq ? (b.log(b.o.K_), null) : this.actionManager.lC(a, this) }, Rna: function() { return this.actionManager.Hba(this) }, ot: function() { this.dX(0) }, dX: function(a) { this.scheduler.ot(this, a, !this.Sg) }, Hj: function() { this.scheduler.Hj(this) }, Dj: function(a, d, e, f, g) { var h = arguments.length; "function" === typeof a ? 1 === h ? (d = 0, e = b.Ch, f = 0, g = this.ba) : 2 === h ? "number" === typeof d ? (e = b.Ch, f = 0, g = this.ba) : (g = d, d = 0, e = b.Ch, f = 0) : 3 === h ? ("string" === typeof e ? (g = e, e = b.Ch) : g = this.ba, f = 0) : 4 === h && (g = this.ba) : 1 === h ? (d = 0, e = b.Ch, f = 0) : 2 === h && (e = b.Ch, f = 0); b.assert(a, b.o.V_); b.assert(0 <= d, b.o.W_); e = null == e ? b.Ch : e; this.scheduler.Dj(a, this, d || 0, e, f || 0, !this.Sg, g) }, gta: function(a, d, e) { void 0 === e && (e = this.ba); this.Dj(a, 0, 0, d, e) }, tg: function(a) { a && this.scheduler.tg(a, this) }, pM: function() { this.scheduler.zY(this) }, Wsa: function() { b.log(b.o.T_); this.Cj() }, Cj: function() { this.scheduler.nm(this); this.actionManager && this.actionManager.nm(this); b.ua.nm(this) }, Wra: function() { b.log(b.o.O_); this.pause() }, pause: function() { this.scheduler.gt(this); this.actionManager && this.actionManager.gt(this); b.ua.gt(this) }, pta: function(a) { if (void 0 === a) return this.Iu = !1; this.Az = a; this.f.va(b.e.V.la); this.Iu = !0 }, IK: function() { this.f.IK() }, Qra: function() { return this.IK() }, In: function() { for (var a = this.He(), d = this.Ga; null !== d; d = d.parent) a = b.Dp(a, d.He()); return a }, Zqa: function() { return this.In() }, EV: function() { return b.ST(this.In()) }, Qwa: function() { return this.EV() }, Ck: function(a) { return b.hh(a, this.EV()) }, Yl: function(a) { a = a || b.d(0, 0); return b.hh(a, this.In()) }, P7: function(a) { return b.zd(this.Ck(a), this.f.Cw()) }, Gka: function(a) { a = a || b.d(0, 0); a = b.yj(a, this.f.Cw()); return this.Yl(a) }, Mia: function(a) { a = this.Yl(a); return b.P.nU(a) }, Dk: function(a) { return this.Ck(a.hi()) }, Hka: function(a) { a = b.P.mU(a.hi()); return this.P7(a) }, update: function(a) { this.Jh && !this.Jh.Ppa() && this.Jh.Q(a) }, ug: function() { this.Ki(this.m, b.e.Wh.ug) }, CD: function() {}, Ad: function() {}, i9: function(a) { return this.Jh ? this.Jh.i9(a) : null }, Sja: function(a) { this.Jh && this.Jh.add(a) }, Esa: function(a) { return this.Jh ? this.Jh.remove(a) : !1 }, qca: function() { this.Jh && this.Jh.wsa() }, grid: null, Q: function(a) { this.f.Q(a) }, transform: function(a, d) { this.f.transform(a, d) }, Yqa: function() { return this.He() }, He: function() { return this.f.He() }, Fs: function() { this.Mi || (this.Mi = new b.Qt); return this.Mi }, Hs: function() { return this.grid }, hda: function(a) { this.grid = a }, Ms: function() { return this.f.Ms() }, pm: function(a) { this.f.pm(a) }, rna: function() { return 0 }, Xta: function() {}, a9: function() { var a = b.rect(0, 0, this.U.width, this.U.height), d = this.In(), a = b.oi(a, d); if (!this.m) return a; for (var e = this.m, f = 0; f < e.length; f++) { var g = e[f]; g && g.Ta && (g = g.hv(d)) && (a = b.kt(a, g)) } return a }, hv: function(a) { var d = b.rect(0, 0, this.U.width, this.U.height); a = void 0 === a ? this.He() : b.Dp(this.He(), a); d = b.oi(d, a); if (!this.m) return d; for (var e = this.m, f = 0; f < e.length; f++) { var g = e[f]; g && g.Ta && (g = g.hv(a)) && (d = b.kt(d, g)) } return d }, bh: function() { return this.Hl }, nC: function() { return this.f.nC() }, Hb: function(a) { this.Hl = a; this.f.va(b.e.V.Ha) }, EY: function(a) { this.f.ci(a) }, Taa: function() { return this.$c }, qt: function(a) { this.$c !== a && (this.$c = a, a = this.f, a.jG = !0, a.va(b.e.V.Ha)) }, rf: function() { var a = this.Qg; return b.color(a.r, a.g, a.b, a.a) }, Fw: function() { return this.f.Fw() }, X: function(a) { var d = this.Qg; d.r = a.r; d.g = a.g; d.b = a.b; this.f.va(b.e.V.Ka) }, DY: function(a) { this.f.Ae(a) }, Saa: function() { return this.Zc }, nX: function(a) { this.Zc !== a && (this.Zc = a, a = this.f, a.iG = !0, a.va(b.e.V.Ka)) }, Le: function() {}, tf: function() { return !1 }, A4: function() { this.f = b.oa.sV(this) }, Ic: function() { return b.W === b.Jb ? new b.e.n(this) : new b.e.p(this) }, Wla: function(a, d) { b.assert(a && 0 != a.length, "Invalid name"); b.assert(null != d, "Invalid callback function"); var e = a.length, f = 0, g = e, h = !1; 2 < e && "/" === a[0] && "/" === a[1] && (h = !0, f = 2, g -= 2); var k = !1; 3 < e && "/" === a[e - 3] && "." === a[e - 2] && "." === a[e - 1] && (k = !0, g -= 3); e = a.substr(f, g); k && (e = "[[:alnum:]]+/" + e); h ? this.JU(this, e, d) : this.hK(e, d) }, JU: function(a, d, e) { if (!a.hK(d, e)) for (var f = a.m, g = f.length, h = 0; h < g && (a = f[h], !this.JU(a, d, e)); h++); }, hK: function(a, d) { var e = a.indexOf("/"), f = a, g = !1; - 1 !== e && (f = a.substr(0, e), g = !0); for (var e = !1, h, k = this.m, m = k.length, n = 0; n < m; n++) if (h = k[n], -1 !== h.Wo.indexOf(f)) if (g) { if (e = h.hK(a, d)) break } else if (d(h)) { e = !0; break } return e } }); b.e.create = function() { return new b.e }; b.e.Wh = { aa: 1, Pb: 2, qf: 3, wj: 4, ug: 5, eh: 6, Ne: 7 }; b.assert(b.Ie(b.Ea.aF), b.o.Qj, "BaseNodesPropertyDefine.js"); b.Ea.aF(); delete b.Ea.aF; b.wg = function(a, d) { this.cb = !0; this.Xb = a; this.Xd = d; this.Eb = function(a, d, g) { this.Xd && this.Xd.call(this.Xb, a, d, g) } }; b.e.V = { la: 1, Mwa: 2, Ka: 4, Ha: 8, ska: 16, zra: 32, Vn: 64, ki: 128, all: 255 }; b.e.Re = function(a) { this.G = 1; this.k = a; this.cb = !1; this.Dg = new b.p0; this.wp = { a: 1, b: 0, c: 0, K: 1, ma: 0, na: 0 }; this.jj = { a: 1, b: 0, c: 0, K: 1, ma: 0, na: 0 }; this.nR = { a: 1, b: 0, c: 0, K: 1, ma: 0, na: 0 }; this.ad = 255; this.Vb = b.color(255, 255, 255, 255); this.jG = this.iG = !1; this.Zd = -1 }; b.e.Re.prototype = { constructor: b.e.Re, Cw: function() { return b.d(this.Dg) }, Fw: function() { var a = this.Vb; return b.color(a.r, a.g, a.b, a.a) }, nC: function() { return this.ad }, IK: function() { this.G & b.e.V.la && (this.nR = b.ST(this.He())); return this.nR }, iC: function() {}, va: function(a) { 0 === this.G && 0 !== a && b.oa.LW(this); this.G |= a }, Ae: function(a) { var d = this.k, e = this.Vb, f = d.Qg, g; if (this.iG && !d.Zc) { e.r = f.r; e.g = f.g; e.b = f.b; e = new b.bf(255, 255, 255, 255); a = d.m; d = 0; for (f = a.length; d < f; d++)(g = a[d]) && g.f && g.f.Ae(e); this.iG = !1 } else if (void 0 === a && (a = (a = d.Ga) && a.Zc ? a.Fw() : b.color.WHITE), e.r = 0 | f.r * a.r / 255, e.g = 0 | f.g * a.g / 255, e.b = 0 | f.b * a.b / 255, d.Zc) for (a = d.m, d = 0, f = a.length; d < f; d++)(g = a[d]) && g.f && (g.f.Ae(e), g.f.xb()); this.G ^= this.G & b.e.V.Ka }, ci: function(a) { var d = this.k, e, f; if (this.jG && !d.$c) { this.ad = d.Hl; e = d.m; a = 0; for (d = e.length; a < d; a++)(f = e[a]) && f.f && f.f.ci(255); this.jG = !1 } else if (void 0 === a && (e = d.Ga, a = 255, e && e.$c && (a = e.nC())), this.ad = d.Hl * a / 255, d.$c) for (e = d.m, a = 0, d = e.length; a < d; a++)(f = e[a]) && f.f && (f.f.ci(this.ad), f.f.xb()); this.G ^= this.G & b.e.V.Ha }, xb: function() {}, updateStatus: function() { var a = b.e.V, d = this.G, e = d & a.Ka, f = d & a.Ha; e && this.Ae(); f && this.ci(); (e || f) && this.xb(); d & a.la && (this.transform(P(this), !0), this.G ^= this.G & b.e.V.la) } }; function ia(a) { var d, e = a.k; if (void 0 === d) { var f = e.Ga; d = 255; f && f.$c && (d = f.nC()) } a.ad = e.Hl * d / 255 } function ja(a) { var d, e = a.k; a = a.Vb; var f = e.Qg; void 0 === d && (d = (d = e.Ga) && d.Zc ? d.Fw() : b.color.WHITE); a.r = 0 | f.r * d.r / 255; a.g = 0 | f.g * d.g / 255; a.b = 0 | f.b * d.b / 255 } function P(a) { return a.k && a.k.Ga && a.k.Ga.f ? a.k.Ga.f : null } function ha(a) { var d = a.Dg, e = a.k.U, f = a.k.Ih; d.x = e.width * f.x; d.y = e.height * f.y; a.va(b.e.V.la) } (function() { b.e.n = function(a) { b.e.Re.call(this, a); this.cl = null; this.Wd = !1 }; var a = b.e.n.prototype = Object.create(b.e.Re.prototype); a.constructor = b.e.n; a.transform = function(a, e) { var f = this.He(), g = this.jj; this.Wd = !0; if (a) { var h = a.jj; g.a = f.a * h.a + f.b * h.c; g.b = f.a * h.b + f.b * h.K; g.c = f.c * h.a + f.K * h.c; g.K = f.c * h.b + f.K * h.K; g.ma = h.a * f.ma + h.c * f.na + h.ma; g.na = h.K * f.na + h.na + h.b * f.ma } else g.a = f.a, g.b = f.b, g.c = f.c, g.K = f.K, g.ma = f.ma, g.na = f.na; if (e && (f = this.k.m) && 0 !== f.length) for (g = 0, h = f.length; g < h; g++) f[g].f.transform(this, e) }; a.He = function() { var a = this.k, e = !1; a.UB && a.Ga && (e = a.Ga.U, a.Ca.x = a.Xo.x * e.width, a.Ca.y = a.Xo.y * e.height, a.IH = !1, e = !0); if (e || this.G & b.e.V.la) { e = this.wp; e.ma = a.Ca.x; e.na = a.Ca.y; var f = 1, g = 0, h = 0, k = 1; a.Jl && (k = 0.017453292519943295 * a.Jl, h = Math.sin(k), k = Math.cos(k)); a.on && (g = 0.017453292519943295 * a.on, f = Math.cos(g), g = -Math.sin(g)); e.a = f; e.b = g; e.c = h; e.K = k; var m = a.Wb, n = a.Sc, p = this.Dg.x, s = this.Dg.y, t = 1E-6 > m && -1E-6 < m ? 1E-6 : m, v = 1E-6 > n && -1E-6 < n ? 1E-6 : n; if (1 !== m || 1 !== n) f = e.a *= t, g = e.b *= t, h = e.c *= v, k = e.K *= v; if (a.dj || a.ej) m = Math.tan(-a.dj * Math.PI / 180), n = Math.tan(-a.ej * Math.PI / 180), Infinity === m && (m = 99999999), Infinity === n && (n = 99999999), t = s * m, v = p * n, e.a = f - h * n, e.b = g - k * n, e.c = h - f * m, e.K = k - g * m, e.ma += f * t + h * v, e.na += g * t + k * v; e.ma -= f * p + h * s; e.na -= g * p + k * s; a.dn && (e.ma += p, e.na += s); a.Iu && (this.wp = b.Dp(e, a.Az)) } return this.wp }; a.Q = function(a) { var e = this.k; if (e.Ta) { if (a = a || P(this)) this.Zd = a.Zd + 1; var f = e.m, g; this.cd(a); a = f.length; if (0 < a) { e.Ne(); for (e = 0; e < a; e++) if (g = f[e], 0 > g.wc) g.f.Q(this); else break; for (b.oa.Ec(this); e < a; e++) f[e].f.Q(this) } else b.oa.Ec(this); this.G = 0 } }; a.cd = function(a) { var e = b.e.V, f = this.G, g = a ? a.k : null; g && g.Zc && a.G & e.Ka && (f |= e.Ka); g && g.$c && a.G & e.Ha && (f |= e.Ha); a && a.G & e.la && (f |= e.la); var g = f & e.Ka, h = f & e.Ha, e = f & e.la; this.G = f; g && ja(this); h && ia(this); g && this.xb(); e && this.transform(a) }; a.va = function(a) { b.e.Re.prototype.va.call(this, a); this.T5(); this.cl && this.cl.va(a) }; a.T5 = function() { if (!1 === this.Wd) { this.Wd = !0; var a = this.cl; a && a !== this && a.Ll && a.Ll() } }; a.sB = function(a) { if (this.cl !== a) { this.cl = a; for (var e = this.k.m, f = 0, g = e.length; f < g; f++) e[f].f.sB(a) } }; a.iC = function() { this.cl = null; for (var a = this.k.m, e, f = 0, g = a.length; f < g; f++)(e = a[f]) && e.f && e.f.iC() }; a.pm = function() {}; a.Ms = function() { return null }; b.e.n.VQ = function(a) { return a ? a.src === b.SRC_ALPHA && a.$ === b.ONE || a.src === b.ONE && a.$ === b.ONE ? "lighter" : a.src === b.ZERO && a.$ === b.SRC_ALPHA ? "destination-in" : a.src === b.ZERO && a.$ === b.ONE_MINUS_SRC_ALPHA ? "destination-out" : "source-over" : "source-over" } })(); (function() { b.e.p = function(a) { b.e.Re.call(this, a); a = new b.j.ca; var e = a.s; e[2] = e[3] = e[6] = e[7] = e[8] = e[9] = e[11] = e[14] = 0; e[10] = e[15] = 1; this.kT = a; this.Mc = new b.j.ca; this.Mi = this.za = null }; var a = b.e.p.prototype = Object.create(b.e.Re.prototype); a.constructor = b.e.p; a.He = function() { var a = this.k; if (a.UB && a.Ga) { var e = a.Ga.U; a.Ca.x = a.Xo.x * e.width; a.Ca.y = a.Xo.y * e.height; a.IH = !1 } if (this.G & b.e.V.la) { var e = a.Ca.x, f = a.Ca.y, g = this.Dg.x, h = -g, k = this.Dg.y, m = -k, n = a.Wb, p = a.Sc, s = 0.017453292519943295 * a.Jl, t = 0.017453292519943295 * a.on; a.dn && (e += g, f += k); var v = 1, w = 0, x = 1, u = 0; if (0 !== a.Jl || 0 !== a.on) v = Math.cos(-s), w = Math.sin(-s), x = Math.cos(-t), u = Math.sin(-t); s = a.dj || a.ej; s || 0 === g && 0 === k || (e += x * h * n + -w * m * p, f += u * h * n + v * m * p); t = this.wp; t.a = x * n; t.b = u * n; t.c = -w * p; t.K = v * p; t.ma = e; t.na = f; s && (t = b.Dp({ a: 1, b: Math.tan(b.Md(a.ej)), c: Math.tan(b.Md(a.dj)), K: 1, ma: 0, na: 0 }, t), 0 !== g || 0 !== k) && (t = b.JJ(t, h, m)); a.Iu && (t = b.Dp(t, a.Az), a.Iu = !1); this.wp = t } return this.wp }; a.cd = function(a) { var e = b.e.V, f = this.G, g = a ? a.k : null; g && g.Zc && a.G & e.Ka && (f |= e.Ka); g && g.$c && a.G & e.Ha && (f |= e.Ha); a && a.G & e.la && (f |= e.la); g = f & e.Ka; e = f & e.Ha; this.G = f; g && ja(this); e && ia(this); (g || e) && this.xb(); this.transform(a) }; a.xb = function() {}; a.Q = function(a) { var e = this.k; if (e.Ta) { a = a || P(this); e.Ga && e.Ga.f && (this.Zd = e.Ga.f.Zd + 1); var f = b.Ob; f.stack.push(f.top); this.cd(a); f.top = this.Mc; if ((a = e.m) && 0 < a.length) { var g = a.length; e.Ne(); for (e = 0; e < g; e++) if (a[e] && 0 > a[e].wc) a[e].f.Q(this); else break; for (b.oa.Ec(this); e < g; e++) a[e] && a[e].f.Q(this) } else b.oa.Ec(this); this.G = 0; f.top = f.stack.pop() } }; a.transform = function(a, e) { var f = this.kT, g = this.Mc, h = this.k, k = (a = a || P(this)) ? a.Mc : b.Ob.top, m = this.He(); this.G ^= this.G & b.e.V.la; var n = f.s; n[0] = m.a; n[4] = m.c; n[12] = m.ma; n[1] = m.b; n[5] = m.K; n[13] = m.na; n[14] = h.jw; b.YC(g, k, f); null === h.Mi || null !== h.grid && h.grid.Ln() || (k = this.Dg.x, m = this.Dg.y, 0 !== k || 0 !== m ? (b.qF || (k |= 0, m |= 0), n = b.j.ca.Fn(k, m, 0, f), g.multiply(n), h.Mi.zH(g), n = b.j.ca.Fn(-k, -m, 0, n), g.multiply(n), f.ie()) : h.Mi.zH(g)); if (e && h.m && 0 !== h.m.length) for (h = h.m, f = 0, g = h.length; f < g; f++) h[f].f.transform(this, e) }; a.pm = function(a) { this.za = a }; a.Ms = function() { return this.za } })(); b.Rd = b.e.extend({ textureAtlas: null, quadsToDraw: 0, Dr: 0, yR: 0, ul: 0, gk: 0, Cb: !1, H: null, qA: !1, Ma: "AtlasNode", Lja: null, ctor: function(a, d, e, f) { b.e.prototype.ctor.call(this); this.H = { src: b.Td, $: b.Sd }; this.qA = !1; void 0 !== f && this.Eaa(a, d, e, f) }, Ic: function() { this.f = b.W === b.Jb ? new b.Rd.n(this) : new b.Rd.p(this) }, It: function() { b.log(b.o.UY) }, rf: function() { return this.Cb ? this.f.Um : b.e.prototype.rf.call(this) }, Le: function(a) { var d = this.color; this.Cb = a; this.X(d) }, tf: function() { return this.Cb }, Gk: function() { return this.H }, sg: function(a, d) { this.H = void 0 === d ? a : { src: a, $: d } }, vt: function(a) { this.textureAtlas = a }, bm: function() { return this.textureAtlas }, ioa: function() { return this.quadsToDraw }, Gua: function(a) { this.quadsToDraw = a }, Eaa: function(a, d, e, f) { if (!a) throw "cc.AtlasNode.initWithTileFile(): title should not be null"; a = b.Xa.Vc(a); return this.ea(a, d, e, f) }, ea: function(a, d, e, f) { return this.f.ea(a, d, e, f) }, X: function(a) { this.f.X(a) }, Hb: function(a) { this.f.Hb(a) }, xa: function() { return this.f.xa() }, Oa: function(a) { this.f.Oa(a) }, FI: function(a) { this.qA = a } }); r = b.Rd.prototype; b.i(r, "opacity", r.bh, r.Hb); b.i(r, "color", r.rf, r.X); b.i(r, "texture", r.xa, r.Oa); b.zh.prototype.apply(r); b.Rd.create = function(a, d, e, f) { return new b.Rd(a, d, e, f) }; (function() { b.Rd.n = function(a) { b.e.n.call(this, a); this.cb = !1; this.Um = b.color.WHITE; this.O = this.gc = null }; var a = b.Rd.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.Rd.n; a.ea = function(a, e, f, g) { var h = this.k; h.ul = e; h.gk = f; h.Cb = !0; this.gc = a; if (!this.gc) return b.log(b.o.BM), !1; this.O = this.gc; this.gG(); h.quadsToDraw = g; return !0 }; a.X = function(a) { var e = this.k.Qg; if (e.r !== a.r || e.g !== a.g || e.b !== a.b) this.Um = a, this.Sm() }; a.Sm = b.fa.DB ? function() { var a = this.k, e = a.xa(); if (e && this.gc) { var f = this.gc.Sa; if (f) { var g = e.Sa, e = b.rect(0, 0, f.width, f.height); g instanceof HTMLCanvasElement ? b.B.n.Lo(f, this.Um, e, g) : (g = b.B.n.Lo(f, this.Um, e), e = new b.ja, e.jd(g), e.Tb(), a.Oa(e)) } } } : function() { var a = this.k, e, f = a.xa(); if (f && this.gc && (e = f.Sa)) { var g = this.gc.Sa; if (f = b.Xa.zC(g)) g = b.rect(0, 0, g.width, g.height), e instanceof HTMLCanvasElement ? b.B.n.Ko(e, f, this.Vb, g, e) : (e = b.B.n.Ko(e, f, this.Vb, g), f = new b.ja, f.jd(e), f.Tb(), a.Oa(f)) } }; a.Hb = function(a) { b.e.prototype.Hb.call(this.k, a) }; a.xa = function() { return this.O }; a.Oa = function(a) { this.O = a }; a.gG = function() { var a = this.k, e = this.O.L(); a.yR = 0 | e.height / a.gk; a.Dr = 0 | e.width / a.ul } })(); (function() { b.Rd.p = function(a) { b.e.p.call(this, a); this.cb = !0; this.Lb = null; this.Um = b.color.WHITE; this.nJ = this.Oz = null; this.za = b.le.Dc(b.oF); this.nJ = b.A.getUniformLocation(this.za.Qp(), "u_color") }; var a = b.Rd.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.Rd.p; a.bi = function() { var a = this.k; this.Lb.texture.Jk() || (a.H.src = b.SRC_ALPHA, a.H.$ = b.ONE_MINUS_SRC_ALPHA) }; a.AT = function() { this.k.Cb = this.Lb.texture.Jk() }; a.Eb = function(a) { a = a || b.A; var e = this.k; this.za.jc(); this.za.Ug(this.Mc); b.ji(e.H.src, e.H.$); this.nJ && this.Oz && (a.uniform4fv(this.nJ, this.Oz), this.Lb.LU(e.quadsToDraw)) }; a.ea = function(a, e, f, g) { var h = this.k; h.ul = e; h.gk = f; this.Um = b.color.WHITE; h.Cb = !0; h.H.src = b.Td; h.H.$ = b.Sd; e = h.Qg; this.Oz = new Float32Array([e.r / 255, e.g / 255, e.b / 255, h.Hl / 255]); this.Lb = new b.Tj; this.Lb.ea(a, g); if (!this.Lb) return b.log(b.o.BM), !1; this.bi(); this.AT(); this.gG(); h.quadsToDraw = g; return !0 }; a.X = function(a) { var e = b.color(a.r, a.g, a.b), f = this.k; this.Um = a; a = this.ad; f.Cb && (e.r = e.r * a / 255, e.g = e.g * a / 255, e.b = e.b * a / 255); b.e.prototype.X.call(f, e) }; a.Hb = function(a) { var e = this.k; b.e.prototype.Hb.call(e, a); e.Cb && (e.color = this.Um) }; a.xb = function() { var a = this.Vb; this.Oz = new Float32Array([a.r / 255, a.g / 255, a.b / 255, this.ad / 255]) }; a.xa = function() { return this.Lb.texture }; a.Oa = function(a) { this.Lb.texture = a; this.bi(); this.AT() }; a.gG = function() { var a = this.k, e = this.Lb.texture, f = e.L(); a.qA && (f = e.U); a.yR = 0 | f.height / a.gk; a.Dr = 0 | f.width / a.ul } })(); b.Ea.NF = function() { b.ja = b.sa.extend({ sja: !0, mk: null, El: 0, Dl: 0, Wo: "", U: null, Nk: 0, Ok: 0, pA: !1, vr: !1, shaderProgram: null, R: !1, Sa: null, Xg: null, url: null, ctor: function() { this.U = b.size(0, 0); this.mk = b.ja.zU }, GL: function() { this.Xg && b.A.deleteTexture(this.Xg); b.Z.Ad(this.url) }, mV: function() { return this.mk }, KK: function() { return this.El }, JK: function() { return this.Dl }, getName: function() { return this.Xg }, L: function() { return b.size(this.U.width / b.Db(), this.U.height / b.Db()) }, Nh: function() { return this.U.width / b.Db() }, ml: function() { return this.U.height / b.Db() }, l9: function() { return this.U }, U9: function() { return this.Nk }, sda: function(a) { this.Nk = a }, V9: function() { return this.Ok }, tda: function(a) { this.Ok = a }, Ms: function() { return this.shaderProgram }, pm: function(a) { this.shaderProgram = a }, Jk: function() { return this.pA }, gaa: function() { return this.vr }, description: function() { return "\x3ccc.Texture2D | Name \x3d " + this.Wo + " | Dimensions \x3d " + this.El + " x " + this.Dl + " | Coordinates \x3d (" + this.Nk + ", " + this.Ok + ")\x3e" }, aq: function() {}, jba: function(a) { return a }, Sw: function(a, d, e, f, g) { var h = b.ja, k = b.A, m = k.RGBA, n = k.UNSIGNED_BYTE, p = e * b.ja.bP[d] / 8; 0 === p % 8 ? k.pixelStorei(k.UNPACK_ALIGNMENT, 8) : 0 === p % 4 ? k.pixelStorei(k.UNPACK_ALIGNMENT, 4) : 0 === p % 2 ? k.pixelStorei(k.UNPACK_ALIGNMENT, 2) : k.pixelStorei(k.UNPACK_ALIGNMENT, 1); this.Xg = k.createTexture(); b.Rf(this); k.texParameteri(k.TEXTURE_2D, k.TEXTURE_MIN_FILTER, k.LINEAR); k.texParameteri(k.TEXTURE_2D, k.TEXTURE_MAG_FILTER, k.LINEAR); k.texParameteri(k.TEXTURE_2D, k.TEXTURE_WRAP_S, k.CLAMP_TO_EDGE); k.texParameteri(k.TEXTURE_2D, k.TEXTURE_WRAP_T, k.CLAMP_TO_EDGE); switch (d) { case h.Bm: m = k.RGBA; break; case h.qu: m = k.RGB; break; case h.Oy: n = k.UNSIGNED_SHORT_4_4_4_4; break; case h.Ny: n = k.UNSIGNED_SHORT_5_5_5_1; break; case h.pu: n = k.UNSIGNED_SHORT_5_6_5; break; case h.TE: m = k.LUMINANCE_ALPHA; break; case h.ou: m = k.ALPHA; break; case h.UE: m = k.LUMINANCE; break; default: b.assert(0, b.o.E1) } k.texImage2D(k.TEXTURE_2D, 0, m, e, f, 0, m, n, a); this.U.width = g.width; this.U.height = g.height; this.El = e; this.Dl = f; this.mk = d; this.Nk = g.width / e; this.Ok = g.height / f; this.vr = this.pA = !1; this.shaderProgram = b.le.Dc(b.uu); return this.R = !0 }, i8: function(a) { var d = [0, this.Ok, this.Nk, this.Ok, 0, 0, this.Nk, 0], e = this.El * this.Nk, f = this.Dl * this.Ok; a = [a.x, a.y, 0, e + a.x, a.y, 0, a.x, f + a.y, 0, e + a.x, f + a.y, 0]; b.hd(b.qe | b.Dq); this.za.jc(); this.za.bY(); b.Rf(this); e = b.A; e.vertexAttribPointer(b.Ib, 2, e.FLOAT, !1, 0, a); e.vertexAttribPointer(b.re, 2, e.FLOAT, !1, 0, d); e.drawArrays(e.TRIANGLE_STRIP, 0, 4) }, l8: function(a) { var d = [0, this.Ok, this.Nk, this.Ok, 0, 0, this.Nk, 0]; a = [a.x, a.y, a.x + a.width, a.y, a.x, a.y + a.height, a.x + a.width, a.y + a.height ]; b.hd(b.qe | b.Dq); this.za.jc(); this.za.bY(); b.Rf(this); var e = b.A; e.vertexAttribPointer(b.Ib, 2, e.FLOAT, !1, 0, a); e.vertexAttribPointer(b.re, 2, e.FLOAT, !1, 0, d); e.drawArrays(e.TRIANGLE_STRIP, 0, 4) }, VV: function(a) { if (null == a) return b.log(b.o.H1), !1; var d = a.Y$(), e = a.z9(), f = b.ts.tv; if (d > f || e > f) return b.log(b.o.I1, d, e, f, f), !1; this.R = !0; return this.z4(a, d, e) }, jd: function(a) { a && (this.Xg = b.A.createTexture(), this.Sa = a, this.R = !0) }, B9: function() { return this.Sa }, Zaa: function() { return this.R }, Tb: function(a) { a = void 0 === a ? !1 : a; if (b.jB) { if (!this.Sa) { var d = b.Z.sf(this.url); if (!d) return; this.jd(d) } this.Sa.width && this.Sa.height && (d = b.A, b.Rf(this), d.pixelStorei(d.UNPACK_ALIGNMENT, 4), a && d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 1), d.texImage2D(d.TEXTURE_2D, 0, d.RGBA, d.RGBA, d.UNSIGNED_BYTE, this.Sa), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, d.LINEAR), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, d.LINEAR), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, d.CLAMP_TO_EDGE), d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, d.CLAMP_TO_EDGE), this.shaderProgram = b.le.Dc(b.uu), b.Rf(null), a && d.pixelStorei(d.UNPACK_PREMULTIPLY_ALPHA_WEBGL, 0), d = this.Sa.height, this.El = this.U.width = this.Sa.width, this.Dl = this.U.height = d, this.mk = b.ja.Bm, this.Ok = this.Nk = 1, this.pA = a, this.vr = !1, this.dispatchEvent("load")) } }, je: function() { b.log(b.o.N1); return null }, saa: function() { b.log(b.o.G1); return !1 }, vaa: function() { b.log(b.o.K1); return !1 }, waa: function() { b.log(b.o.M1); return !1 }, Yda: function(a, d, e, f) { var g = b.A; void 0 !== d && (a = { tW: a, sW: d, Wx: e, Xx: f }); b.assert(this.El === b.Am(this.El) && this.Dl === b.Am(this.Dl) || a.Wx === g.CLAMP_TO_EDGE && a.Xx === g.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures"); b.Rf(this); g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MIN_FILTER, a.tW); g.texParameteri(g.TEXTURE_2D, g.TEXTURE_MAG_FILTER, a.sW); g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_S, a.Wx); g.texParameteri(g.TEXTURE_2D, g.TEXTURE_WRAP_T, a.Xx) }, Oca: function() { var a = b.A; b.Rf(this); this.vr ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.LINEAR); a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.LINEAR) }, ML: function() { var a = b.A; b.Rf(this); this.vr ? a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST_MIPMAP_NEAREST) : a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MIN_FILTER, a.NEAREST); a.texParameteri(a.TEXTURE_2D, a.TEXTURE_MAG_FILTER, a.NEAREST) }, generateMipmap: function() { b.assert(this.El === b.Am(this.El) && this.Dl === b.Am(this.Dl), "Mimpap texture only works in POT textures"); b.Rf(this); b.A.generateMipmap(b.A.TEXTURE_2D); this.vr = !0 }, Lea: function() { return b.ja.w2[this.mk] }, w7: function(a) { a = a || this.mk; var d = b.ja.bP[a]; if (null != d) return d; b.log(b.o.D1, a); return -1 }, z4: function(a, d, e) { var f = b.ja, g = a.getData(), h = null, h = null, k = a.spa(), m = b.size(a.Y$(), a.z9()), n = f.zU, p = a.Dma(); k || (8 <= p ? n = f.qu : (b.log(b.o.A1), n = f.pu)); var s = d * e; if (n === f.pu) if (k) for (g = new Uint16Array(d * e), h = a.getData(), p = 0; p < s; ++p) g[p] = (h[p] >> 0 & 255) >> 3 << 11 | (h[p] >> 8 & 255) >> 2 << 5 | (h[p] >> 16 & 255) >> 3 << 0; else for (g = new Uint16Array(d * e), h = a.getData(), p = 0; p < s; ++p) g[p] = (h[p] & 255) >> 3 << 11 | (h[p] & 255) >> 2 << 5 | (h[p] & 255) >> 3 << 0; else if (n === f.Oy) for (g = new Uint16Array(d * e), h = a.getData(), p = 0; p < s; ++p) g[p] = (h[p] >> 0 & 255) >> 4 << 12 | (h[p] >> 8 & 255) >> 4 << 8 | (h[p] >> 16 & 255) >> 4 << 4 | (h[p] >> 24 & 255) >> 4 << 0; else if (n === f.Ny) for (g = new Uint16Array(d * e), h = a.getData(), p = 0; p < s; ++p) g[p] = (h[p] >> 0 & 255) >> 3 << 11 | (h[p] >> 8 & 255) >> 3 << 6 | (h[p] >> 16 & 255) >> 3 << 1 | (h[p] >> 24 & 255) >> 7 << 0; else if (n === f.ou) for (g = new Uint8Array(d * e), h = a.getData(), p = 0; p < s; ++p) g[p] = h >> 24 & 255; if (k && n === f.qu) for (h = a.getData(), g = new Uint8Array(d * e * 3), p = 0; p < s; ++p) g[3 * p] = h >> 0 & 255, g[3 * p + 1] = h >> 8 & 255, g[3 * p + 2] = h >> 16 & 255; this.Sw(g, n, d, e, m); a.getData(); this.pA = a.Zpa(); return !0 }, ls: function(a, d) { this.addEventListener("load", a, d) }, tca: function(a) { this.removeEventListener("load", a) } }) }; b.Ea.OF = function() { var a = b.Tj.prototype; a.lp = function() { var a = b.A; this.Yc[0] = a.createBuffer(); this.Yc[1] = a.createBuffer(); this.dp = a.createBuffer(); this.HA() }; a.HA = function() { var a = b.A; a.bindBuffer(a.ARRAY_BUFFER, this.dp); a.bufferData(a.ARRAY_BUFFER, this.ce, a.DYNAMIC_DRAW); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Yc[1]); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW) }; a.LU = function(a) { var e; e = 0; if (0 !== a && this.texture && this.texture.R) { var f = b.A; b.Rf(this.texture); b.hd(b.Cq); f.bindBuffer(f.ARRAY_BUFFER, this.dp); this.dirty && (f.bufferData(f.ARRAY_BUFFER, this.ce, f.DYNAMIC_DRAW), this.dirty = !1); f.vertexAttribPointer(b.Ib, 3, f.FLOAT, !1, 24, 0); f.vertexAttribPointer(b.cf, 4, f.UNSIGNED_BYTE, !0, 24, 12); f.vertexAttribPointer(b.re, 2, f.FLOAT, !1, 24, 16); f.bindBuffer(f.ELEMENT_ARRAY_BUFFER, this.Yc[1]); b.fO ? f.drawElements(f.TRIANGLE_STRIP, 6 * a, f.UNSIGNED_SHORT, 6 * e * this.gb.BYTES_PER_ELEMENT) : f.drawElements(f.TRIANGLES, 6 * a, f.UNSIGNED_SHORT, 6 * e * this.gb.BYTES_PER_ELEMENT); b.Of++ } } }; b.Ea.PF = function() { var a = b.Xa; a.Tb = function(a) { var e = this.dd; b.jB || (e = this.sv); var f = e[a]; f || (f = e[a] = new b.ja, f.url = a); f.Tb() }; a.Vc = function(a, e, f) { b.assert(a, b.o.C1); var g = this.dd; b.jB || (g = this.sv); var h = g[a] || g[b.Z.vo[a]]; if (h) return e && e.call(f, h), h; h = g[a] = new b.ja; h.url = a; (b.Z.vP(a) ? b.Z.load : b.Z.at).call(b.Z, a, function(h) { if (h) return e && e.call(f, h); b.Xa.Tb(a); h = g[a]; e && e.call(f, h) }); return h }; a.O6 = a.Vc; a = null }; b.Ea.eF = function() { var a = b.ja; a.Cha = function(a) { b.n0 = a }; a.Bm = 2; a.qu = 3; a.pu = 4; a.ou = 5; a.UE = 6; a.TE = 7; a.Oy = 8; a.Ny = 7; a.vN = 9; a.uN = 10; a.d0 = a.Bm; var d = b.ja.w2 = {}; d[a.Bm] = "RGBA8888"; d[a.qu] = "RGB888"; d[a.pu] = "RGB565"; d[a.ou] = "A8"; d[a.UE] = "I8"; d[a.TE] = "AI88"; d[a.Oy] = "RGBA4444"; d[a.Ny] = "RGB5A1"; d[a.vN] = "PVRTC4"; d[a.uN] = "PVRTC2"; d = b.ja.bP = {}; d[a.Bm] = 32; d[a.qu] = 24; d[a.pu] = 16; d[a.ou] = 8; d[a.UE] = 8; d[a.TE] = 16; d[a.Oy] = 16; d[a.Ny] = 16; d[a.vN] = 4; d[a.uN] = 3; d = b.ja.prototype; b.i(d, "name", d.getName); b.i(d, "pixelFormat", d.mV); b.i(d, "pixelsWidth", d.KK); b.i(d, "pixelsHeight", d.JK); b.i(d, "width", d.Nh); b.i(d, "height", d.ml); a.zU = a.d0 }; b.Ea.fF = function() { var a = b.Tj.prototype; b.i(a, "totalQuads", a.DV); b.i(a, "capacity", a.dV); b.i(a, "quads", a.pV, a.RX) }; b.zfa = 51; b.Cfa = 19; b.Efa = 18; b.Bfa = 50; b.yfa = 34; b.wfa = 35; b.xfa = 33; b.Afa = 49; b.Dfa = 17; b.n0 = !1; b.W === b.Jb ? (b.ja = b.sa.extend({ U: null, R: !1, Sa: null, url: null, bB: null, ctor: function() { this.U = b.size(0, 0); this.R = !1; this.Sa = null; this.bB = "" }, KK: function() { return this.U.width }, JK: function() { return this.U.height }, L: function() { var a = b.Db(); return b.size(this.U.width / a, this.U.height / a) }, Nh: function() { return this.U.width / b.Db() }, ml: function() { return this.U.height / b.Db() }, l9: function() { return this.U }, jd: function(a) { a && (this.Sa = a, this.U.width = a.width, this.U.height = a.height, this.R = !0) }, B9: function() { return this.Sa }, Zaa: function() { return this.R }, Tb: function() { if (!this.R) { if (!this.Sa) { var a = b.Z.sf(this.url); if (!a) return; this.jd(a) } a = this.Sa; this.U.width = a.width; this.U.height = a.height; this.dispatchEvent("load") } }, description: function() { return "\x3ccc.Texture2D | width \x3d " + this.U.width + " height " + this.U.height + "\x3e" }, Sw: function() { return !1 }, VV: function() { return !1 }, je: function() { return !1 }, GL: function() { b.Z.Ad(this.url) }, getName: function() { return null }, U9: function() { return 1 }, sda: function() {}, V9: function() { return 1 }, tda: function() {}, mV: function() { return null }, Ms: function() { return null }, pm: function() {}, Jk: function() { return !1 }, gaa: function() { return !1 }, aq: function() {}, jba: function(a) { return a }, i8: function() {}, l8: function() {}, saa: function() { b.log(b.o.F1); return !1 }, vaa: function() { b.log(b.o.J1); return !1 }, waa: function() { b.log(b.o.L1); return !1 }, Yda: function(a, d, e, f) { void 0 !== d && (a = { tW: a, sW: d, Wx: e, Xx: f }); this.bB = a.Wx === b.REPEAT && a.Xx === b.REPEAT ? "repeat" : a.Wx === b.REPEAT ? "repeat-x" : a.Xx === b.REPEAT ? "repeat-y" : "" }, Oca: function() {}, ML: function() {}, generateMipmap: function() {}, Lea: function() { return "" }, w7: function() { return -1 }, ls: function(a, d) { this.addEventListener("load", a, d) }, tca: function(a) { this.removeEventListener("load", a) }, mH: null, bG: null, rH: !1, eT: function(a) { this.R && this.rH !== a && ((this.rH = a) ? (this.bG = this.Sa, this.mH || (this.mH = b.ja.B3(this.Sa)), this.Sa = this.mH) : null !== this.bG && (this.Sa = this.bG)) } }), b.ja.B3 = function(a) { var d, e; if (null === a) return null; e = e || b.ic("canvas"); d = d || b.rect(0, 0, a.width, a.height); e.width = d.width; e.height = d.height; var f = e.getContext("2d"); f.drawImage(a, d.x, d.y, d.width, d.height, 0, 0, d.width, d.height); a = f.getImageData(0, 0, d.width, d.height); d = a.data; for (var g = 0, h = d.length; g < h; g += 4) d[g] = d[g + 1] = d[g + 2] = 0.34 * d[g] + 0.5 * d[g + 1] + 0.16 * d[g + 2]; f.putImageData(a, 0, 0); return e }) : (b.assert(b.Ie(b.Ea.NF), b.o.Qj, "TexturesWebGL.js"), b.Ea.NF(), delete b.Ea.NF); b.zh.prototype.apply(b.ja.prototype); b.assert(b.Ie(b.Ea.eF), b.o.Qj, "TexturesPropertyDefine.js"); b.Ea.eF(); delete b.Ea.eF; b.Xa = { dd: {}, Yv: {}, iJ: 0 | 1E3 * Math.random(), sv: {}, D4: function() { var a, d = this.sv, e = this.dd; for (a in d) { var f = d[a]; f.Tb(); e[a] = f } this.sv = {} }, Xja: function() { b.log(b.o.Rea) }, Tja: function() { b.log(b.o.Pea) }, description: function() { return "\x3cTextureCache | Number of textures \x3d " + this.dd.length + "\x3e" }, fwa: function(a) { b.log(b.o.Wea); return this.Kn(a) }, Kn: function(a) { return this.dd[a] || this.dd[b.Z.vo[a]] }, J9: function(a) { for (var d in this.dd) if (this.dd[d] === a) return d; return null }, A3: function() { this.iJ++; return "_textureKey_" + this.iJ }, zC: function(a) { var d = this.J9(a); d || (d = a instanceof HTMLImageElement ? a.src : this.A3()); this.Yv[d] || (this.Yv[d] = b.B.n.qr(a)); return this.Yv[d] }, Wja: function() { b.log(b.o.Qea) }, Bsa: function() { var a = this.dd, d; for (d in a) a[d] && a[d].GL(); this.dd = {} }, Osa: function(a) { if (a) { var d = this.dd, e; for (e in d) d[e] === a && (d[e].GL(), delete d[e]) } }, Psa: function(a) { null != a && this.dd[a] && delete this.dd[a] }, x7: function(a, d) { if (d instanceof b.ja) this.dd[a] = d; else { var e = new b.ja; e.jd(d); e.Tb(); this.dd[a] = e } }, bka: function(a, d) { b.assert(a, b.o.Tea); if (d && this.dd[d]) return this.dd[d]; var e = new b.ja; e.VV(a); null != d ? this.dd[d] = e : b.log(b.o.Sea); return e }, qla: function() { var a = 0, d = 0, e = this.dd, f; for (f in e) { var g = e[f]; a++; g.Sa instanceof HTMLImageElement ? b.log(b.o.Uea, f, g.Sa.src, g.pixelsWidth, g.pixelsHeight) : b.log(b.o.rY, f, g.pixelsWidth, g.pixelsHeight); d += g.pixelsWidth * g.pixelsHeight * 4 } e = this.Yv; for (f in e) { var g = e[f], h; for (h in g) { var k = g[h]; a++; b.log(b.o.rY, f, k.width, k.height); d += k.width * k.height * 4 } } b.log(b.o.Vea, a, d / 1024, (d / 1048576).toFixed(2)) }, Tm: function() { this.dd = {}; this.Yv = {}; this.iJ = 0 | 1E3 * Math.random(); this.sv = {} } }; b.W === b.Jb ? (r = b.Xa, r.Tb = function(a) { var d = this.dd, e = d[a]; e || (e = d[a] = new b.ja, e.url = a); e.Tb() }, r.Vc = function(a, d, e) { b.assert(a, b.o.B1); var f = this.dd, g = f[a] || f[b.Z.vo[a]]; if (g) return d && d.call(e, g), g; g = f[a] = new b.ja; g.url = a; (b.Z.vP(a) ? b.Z.load : b.Z.at).call(b.Z, a, function(g) { if (g) return d && d.call(e, g); b.Xa.Tb(a); g = f[a]; d && d.call(e, g) }); return g }, r.O6 = r.Vc, r = null) : (b.assert(b.Ie(b.Ea.PF), b.o.Qj, "TexturesWebGL.js"), b.Ea.PF(), delete b.Ea.PF); b.Tj = b.sa.extend({ dirty: !1, texture: null, gb: null, Yc: null, se: 0, pd: null, ce: null, dp: null, Pg: null, ctor: function(a, d) { this.Yc = []; b.Je(a) ? this.em(a, d) : a instanceof b.ja && this.ea(a, d) }, DV: function() { return this.hb }, dV: function() { return this.se }, xa: function() { return this.texture }, Oa: function(a) { this.texture = a }, qX: function(a) { this.dirty = a }, nL: function() { return this.dirty }, pV: function() { return this.pd }, RX: function(a) { this.pd = a }, g3: function(a, d) { if (a) for (var e = 0; e < a.length; e++) this.wB(a[e], d + e) }, wB: function(a, d) { var e = this.pd; e[d] ? (e[d].bl = a.bl, e[d].br = a.br, e[d].tl = a.tl, e[d].tr = a.tr) : e[d] = new b.Zb(a.tl, a.bl, a.tr, a.br, this.ce, d * b.Zb.BYTES_PER_ELEMENT) }, description: function() { return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.hb + "\x3e" }, NS: function() { if (0 !== this.se) for (var a = this.gb, d = this.se, e = 0; e < d; e++) b.fO ? (a[6 * e + 0] = 4 * e + 0, a[6 * e + 1] = 4 * e + 0, a[6 * e + 2] = 4 * e + 2, a[6 * e + 3] = 4 * e + 1, a[6 * e + 4] = 4 * e + 3, a[6 * e + 5] = 4 * e + 3) : (a[6 * e + 0] = 4 * e + 0, a[6 * e + 1] = 4 * e + 1, a[6 * e + 2] = 4 * e + 2, a[6 * e + 3] = 4 * e + 3, a[6 * e + 4] = 4 * e + 2, a[6 * e + 5] = 4 * e + 1) }, lp: function() { var a = b.A; this.Yc[0] = a.createBuffer(); this.Yc[1] = a.createBuffer(); this.dp = a.createBuffer(); this.HA() }, HA: function() { var a = b.A; a.bindBuffer(a.ARRAY_BUFFER, this.dp); a.bufferData(a.ARRAY_BUFFER, this.ce, a.DYNAMIC_DRAW); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Yc[1]); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW) }, em: function(a, d) { var e = b.Xa.Vc(a); if (e) return this.ea(e, d); b.log(b.o.O1, a); return !1 }, ea: function(a, d) { b.assert(a, b.o.P1); this.se = d |= 0; this.hb = 0; this.texture = a; this.pd = []; this.gb = new Uint16Array(6 * d); var e = b.Zb.BYTES_PER_ELEMENT; this.ce = new ArrayBuffer(e * d); this.Pg = new Uint8Array(this.ce); if ((!this.pd || !this.gb) && 0 < d) return !1; for (var f = this.pd, g = 0; g < d; g++) f[g] = new b.Zb(null, null, null, null, this.ce, g * e); this.NS(); this.lp(); return this.dirty = !0 }, aE: function(a, d) { b.assert(a, b.o.Z1); b.assert(0 <= d && d < this.se, b.o.a2); this.hb = Math.max(d + 1, this.hb); this.wB(a, d); this.dirty = !0 }, Vs: function(a, d) { b.assert(d < this.se, b.o.S1); this.hb++; if (this.hb > this.se) b.log(b.o.oO); else { var e = b.Zb.BYTES_PER_ELEMENT, f = d * e, g = (this.hb - 1 - d) * e; this.pd[this.hb - 1] = new b.Zb(null, null, null, null, this.ce, (this.hb - 1) * e); this.Pg.set(this.Pg.subarray(f, f + g), f + e); this.wB(a, d); this.dirty = !0 } }, Epa: function(a, d, e) { e = e || a.length; b.assert(d + e <= this.se, b.o.T1); var f = b.Zb.BYTES_PER_ELEMENT; this.hb += e; if (this.hb > this.se) b.log(b.o.oO); else { var g = d * f, h = (this.hb - 1 - d - e) * f, k = this.hb - 1 - e, m; for (m = 0; m < e; m++) this.pd[k + m] = new b.Zb(null, null, null, null, this.ce, (this.hb - 1) * f); this.Pg.set(this.Pg.subarray(g, g + h), g + f * e); for (m = 0; m < e; m++) this.wB(a[m], d + m); this.dirty = !0 } }, Dpa: function(a, d) { if (a !== d) { b.assert(0 <= d || d < this.hb, b.o.Q1); b.assert(0 <= a || a < this.hb, b.o.R1); var e = b.Zb.BYTES_PER_ELEMENT, f = this.Pg, g = f.subarray(a * e, e), h; a > d ? (h = d * e, f.set(f.subarray(h, h + (a - d) * e), h + e), f.set(g, h)) : (h = (a + 1) * e, f.set(f.subarray(h, h + (d - a) * e), h - e), f.set(g, d * e)); this.dirty = !0 } }, sx: function(a) { b.assert(a < this.hb, b.o.X1); var d = b.Zb.BYTES_PER_ELEMENT; this.hb--; this.pd.length = this.hb; if (a !== this.hb) { var e = (a + 1) * d; this.Pg.set(this.Pg.subarray(e, e + (this.hb - a) * d), e - d) } this.dirty = !0 }, vca: function(a, d) { b.assert(a + d <= this.hb, b.o.Y1); this.hb -= d; if (a !== this.hb) { var e = b.Zb.BYTES_PER_ELEMENT, f = (a + d) * e; this.Pg.set(this.Pg.subarray(f, f + (this.hb - a) * e), a * e) } this.dirty = !0 }, rx: function() { this.hb = this.pd.length = 0 }, sn: function(a) { this.dirty = a }, KL: function(a) { if (a === this.se) return !0; var d = b.Zb.BYTES_PER_ELEMENT, e = this.se; this.hb = Math.min(this.hb, a); var f = this.se = 0 | a, g = this.hb; if (null === this.pd) for (this.pd = [], this.ce = new ArrayBuffer(d * f), this.Pg = new Uint8Array(this.ce), a = 0; a < f; a++) this.pd = new b.Zb(null, null, null, null, this.ce, a * d); else { var h, k, m = this.pd; if (f > e) { h = []; k = new ArrayBuffer(d * f); for (a = 0; a < g; a++) h[a] = new b.Zb(m[a].tl, m[a].bl, m[a].tr, m[a].br, k, a * d); for (; a < f; a++) h[a] = new b.Zb(null, null, null, null, k, a * d) } else for (g = Math.max(g, f), h = [], k = new ArrayBuffer(d * f), a = 0; a < g; a++) h[a] = new b.Zb(m[a].tl, m[a].bl, m[a].tr, m[a].br, k, a * d); this.Pg = new Uint8Array(k); this.pd = h; this.ce = k } null === this.gb ? this.gb = new Uint16Array(6 * f) : f > e ? (d = new Uint16Array(6 * f), d.set(this.gb, 0), this.gb = d) : this.gb = this.gb.subarray(0, 6 * f); this.NS(); this.HA(); return this.dirty = !0 }, NV: function(a) { this.hb += a }, uW: function(a, d, e) { if (void 0 === e) { if (e = d, d = this.hb - a, b.assert(e + (this.hb - a) <= this.se, b.o.U1), 0 === d) return } else if (b.assert(e + d <= this.hb, b.o.V1), b.assert(a < this.hb, b.o.W1), a === e) return; var f = b.Zb.BYTES_PER_ELEMENT, g = a * f, h = d * f, k = this.Pg, m = k.subarray(g, g + h), n = e * f; e < a ? (d = e * f, k.set(k.subarray(d, d + (a - e) * f), d + h)) : (d = (a + d) * f, k.set(k.subarray(d, d + (e - a) * f), g)); k.set(m, n); this.dirty = !0 }, YU: function(a, d) { for (var e = d * b.Zb.BYTES_PER_ELEMENT, f = new Uint8Array(this.ce, a * b.Zb.BYTES_PER_ELEMENT, e), g = 0; g < e; g++) f[g] = 0 }, MU: function() { this.LU(this.hb) }, vja: function() { var a = b.A; this.Yc && (this.Yc[0] && a.deleteBuffer(this.Yc[0]), this.Yc[1] && a.deleteBuffer(this.Yc[1])); this.dp && a.deleteBuffer(this.dp) } }); r = b.Tj.prototype; b.i(r, "totalQuads", r.DV); b.i(r, "capacity", r.dV); b.i(r, "quads", r.pV, r.RX); b.Tj.create = function(a, d) { return new b.Tj(a, d) }; b.Tj.eK = b.Tj.create; b.W === b.ya && (b.assert(b.Ie(b.Ea.OF), b.o.Qj, "TexturesWebGL.js"), b.Ea.OF(), delete b.Ea.OF); b.assert(b.Ie(b.Ea.fF), b.o.Qj, "TexturesPropertyDefine.js"); b.Ea.fF(); delete b.Ea.fF; b.po = b.e.extend({ Ma: "Scene", ctor: function() { b.e.prototype.ctor.call(this); this.dn = !0; this.rb(0.5, 0.5); this.Na(b.P.Fa()) } }); b.po.create = function() { return new b.po }; b.KE = b.po.extend({ fk: null, nd: null, Ma: "LoaderScene", En: null, target: null, T: function() { var a = this, d = 200, e = a.U2 = new b.Ub(b.color(255, 255, 255, 255)); a.C(e, 0); var f = 24, g = -d / 2 + 100; b.yH && (b.Z.at(b.yH, { Mn: !1 }, function(e, f) { d = f.height; a.B4(f, b.jq.tw) }), f = 30, g = -d / 2 - 10); var f = a.nd = new b.M("Loading... 0%", "Arial", f), h = b.yj(b.jq.tw, b.d(0, g)); h.y -= 45; f.I(h); f.X(b.color(180, 180, 180)); e.C(this.nd, 11); f = new b.M(" 请关注我们\n我们将带给你无尽的欢乐!", "Arial", 40); h = b.yj(b.jq.tw, b.d(0, g)); h.y -= 100; f.I(h); f.X(b.color(180, 180, 180)); e.C(f, 11); return !0 }, B4: function(a, d) { var e = new b.ja; e.jd(a); e.Tb(); e = new b.B(e); e.Tn(b.Db()); e.x = d.x; e.y = d.y + 80; this.U2.C(e, 10) }, aa: function() { b.e.prototype.aa.call(this); this.Dj(this.aT, 0.3) }, Pb: function() { b.e.prototype.Pb.call(this); this.nd.Wc("Loading... 0%") }, yaa: function(a, d, e) { b.Je(a) && (a = [a]); this.Eca = a || []; this.En = d; this.target = e }, aT: function() { var a = this; a.tg(a.aT); b.Z.load(a.Eca, function(d, e, f) { d = Math.min(f / e * 100 | 0, 100); a.nd.Wc("Loading... " + d + "%") }, function() { a.En && a.En.call(a.target) }) } }); b.KE.aca = function(a, d) { var e = ka, f = b; f.dD || (f.dD = new b.KE, f.dD.T()); f.dD.yaa(e, a, d); b.P.GD(f.dD) }; b.Ua = b.e.extend({ Ma: "Layer", ctor: function() { var a = b.e.prototype; a.ctor.call(this); this.dn = !0; a.rb.call(this, 0.5, 0.5); a.Na.call(this, b.ld) }, T: function() { this.dn = !0; this.rb(0.5, 0.5); this.Na(b.ld); this.$c = this.Zc = !1; return !0 }, MJ: function() { this.f.MJ() }, Sx: function() { this.f.Sx() }, Paa: function() { return this.sl }, C: function(a, d, e) { b.e.prototype.C.call(this, a, d, e); this.f.oP(a) }, Ic: function() { return b.W === b.Jb ? new b.Ua.n(this) : new b.Ua.p(this) } }); b.Ua.create = function() { return new b.Ua }; b.Ub = b.Ua.extend({ H: null, Ma: "LayerColor", Gk: function() { return this.H }, yka: function(a, d) { this.width = a; this.height = d }, xka: function(a) { this.width = a }, wka: function(a) { this.height = a }, Le: function() {}, tf: function() { return !1 }, ctor: function(a, d, e) { b.Ua.prototype.ctor.call(this); this.H = new b.Gc(b.Td, b.Sd); b.Ub.prototype.T.call(this, a, d, e) }, T: function(a, d, e) { b.W !== b.Jb && (this.shaderProgram = b.le.Dc(b.Xy)); var f = b.P.Fa(); a = a || b.color(0, 0, 0, 255); d = void 0 === d ? f.width : d; e = void 0 === e ? f.height : e; f = this.Qg; f.r = a.r; f.g = a.g; f.b = a.b; this.Hl = a.a; this.f.va(b.e.V.Ka | b.e.V.Ha); b.Ub.prototype.Na.call(this, d, e); return !0 }, sg: function(a, d) { var e = this.H; void 0 === d ? (e.src = a.src, e.$ = a.$) : (e.src = a, e.$ = d); this.f.Tx(e) }, cj: function(a) { b.e.prototype.cj.call(this, a); this.f.ET(a) }, bj: function(a) { b.e.prototype.bj.call(this, a); this.f.DT(a) }, Na: function(a, d) { b.Ua.prototype.Na.call(this, a, d); this.f.CT(a, d) }, Ic: function() { return b.W === b.Jb ? new b.Ub.n(this) : new b.Ub.p(this) } }); b.Ub.create = function(a, d, e) { return new b.Ub(a, d, e) }; var la = b.Ub.prototype; b.i(la, "width", la.Nh, la.cj); b.i(la, "height", la.ml, la.bj); b.yf = b.Ub.extend({ gg: null, Vr: 255, gr: 255, Nm: null, sG: !1, Ma: "LayerGradient", Af: [], ctor: function(a, d, e, f) { b.Ub.prototype.ctor.call(this); this.gg = b.color(0, 0, 0, 255); this.Nm = b.d(0, -1); this.gr = this.Vr = 255; f && f instanceof Array ? (this.Af = f, f.splice(0, 0, { d: 0, color: a || b.color.BLACK }), f.push({ d: 1, color: d || b.color.BLACK })) : this.Af = [{ d: 0, color: a || b.color.BLACK }, { d: 1, color: d || b.color.BLACK }]; b.yf.prototype.T.call(this, a, d, e, f) }, T: function(a, d, e) { a = a || b.color(0, 0, 0, 255); d = d || b.color(0, 0, 0, 255); e = e || b.d(0, -1); var f = this.gg; this.Vr = a.a; f.r = d.r; f.g = d.g; f.b = d.b; this.gr = d.a; this.Nm = e; this.sG = !0; b.Ub.prototype.T.call(this, b.color(a.r, a.g, a.b, 255)); this.f.va(b.e.V.Ka | b.e.V.Ha | b.e.V.ki); return !0 }, Na: function(a, d) { b.Ub.prototype.Na.call(this, a, d); this.f.va(b.e.V.ki) }, cj: function(a) { b.Ub.prototype.cj.call(this, a); this.f.va(b.e.V.ki) }, bj: function(a) { b.Ub.prototype.bj.call(this, a); this.f.va(b.e.V.ki) }, xC: function() { return b.color(this.Qg) }, Vf: function(a) { this.color = a; var d = this.Af; d && 0 < d.length && (d = d[0].color, d.r = a.r, d.g = a.g, d.b = a.b) }, Tf: function(a) { var d = this.gg; d.r = a.r; d.g = a.g; d.b = a.b; (d = this.Af) && 0 < d.length && (d = d[d.length - 1].color, d.r = a.r, d.g = a.g, d.b = a.b); this.f.va(b.e.V.Ka) }, pC: function() { return b.color(this.gg) }, Uda: function(a) { this.Vr = a; var d = this.Af; d && 0 < d.length && (d[0].color.a = a); this.f.va(b.e.V.Ha) }, J$: function() { return this.Vr }, dda: function(a) { this.gr = a; var d = this.Af; d && 0 < d.length && (d[d.length - 1].color.a = a); this.f.va(b.e.V.Ha) }, r9: function() { return this.gr }, gea: function(a) { this.Nm.x = a.x; this.Nm.y = a.y; this.f.va(b.e.V.ki) }, T$: function() { return b.d(this.Nm.x, this.Nm.y) }, Lpa: function() { return this.sG }, Dta: function(a) { this.sG = a; this.f.va(b.e.V.ki) }, h9: function() { return this.Af }, Wca: function(a) { this.Af = a; this.f.va(b.e.V.Ka | b.e.V.Ha | b.e.V.ki) }, Ic: function() { return b.W === b.Jb ? new b.yf.n(this) : new b.yf.p(this) } }); b.yf.create = function(a, d, e, f) { return new b.yf(a, d, e, f) }; var R = b.yf.prototype; b.i(R, "startColor", R.xC, R.Vf); b.i(R, "endColor", R.pC, R.Tf); b.i(R, "startOpacity", R.J$, R.Uda); b.i(R, "endOpacity", R.r9, R.dda); b.i(R, "vector", R.T$, R.gea); b.i(R, "colorStops", R.h9, R.Wca); b.Ky = b.Ua.extend({ Ho: 0, hf: null, Ma: "LayerMultiplex", ctor: function(a) { b.Ua.prototype.ctor.call(this); a instanceof Array ? b.Ky.prototype.XV.call(this, a) : b.Ky.prototype.XV.call(this, Array.prototype.slice.call(arguments)) }, XV: function(a) { 0 < a.length && null == a[a.length - 1] && b.log(b.o.z_); this.hf = a; this.Ho = 0; this.C(this.hf[this.Ho]); return !0 }, Xva: function(a) { a >= this.hf.length ? b.log(b.o.A_) : (this.removeChild(this.hf[this.Ho], !0), this.Ho = a, this.C(this.hf[a])) }, Yva: function(a) { a >= this.hf.length ? b.log(b.o.B_) : (this.removeChild(this.hf[this.Ho], !0), this.hf[this.Ho] = null, this.Ho = a, this.C(this.hf[a])) }, Uja: function(a) { a ? this.hf.push(a) : b.log(b.o.y_) } }); b.Ky.create = function() { return new b.Ky(Array.prototype.slice.call(arguments)) }; (function() { b.Ua.n = function(a) { b.e.n.call(this, a); this.sl = !1; this.Pm = null }; var a = b.Ua.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.Ua.n; a.MJ = function() { if (!this.sl) { this.cb = !0; this.sl = this.Wd = b.oa.he = !0; for (var a = this.k.m, e = 0, f = a.length; e < f; e++) a[e].f.sB(this); this.Pm || (this.Pm = new b.ZY, this.Pm.rb(0, 0)) } }; a.Sx = function() { if (this.sl) { b.oa.he = !0; this.sl = this.cb = !1; this.Wd = !0; for (var a = this.k.m, e = 0, f = a.length; e < f; e++) a[e].f.sB(null) } }; a.Paa = function() { return this.sl }; a.Eb = function() { if (this.Wd) { var a = this.k, e = a.m, f = this.Pm; this.transform(P(this), !0); var g = this.XG(); g.width = 0 | g.width + 0.5; g.height = 0 | g.height + 0.5; var h = f.Ve, k = h.getContext(); f.WW(g.width, g.height); h.Gj(0 - g.x, k.canvas.height - g.height + g.y); f.I(g.x, g.y); a.Ne(); b.oa.es(this.ba); a = 0; for (g = e.length; a < g; a++) e[a].Q(this); b.oa.Jv(h, this.ba); f.transform(); this.Wd = !1 } }; a.Q = function(a) { if (this.sl) { var e = this.k, f = e.m.length; e.Ta && 0 !== f && (this.cd(a), b.oa.Ec(this), this.Pm.Q(this), this.G = 0) } else b.e.n.prototype.Q.call(this, a) }; a.oP = function(a) { a.Ga === this.k && this.sl && a.f.sB(this) }; a.XG = function() { var a = null, e = this.k; if (!e.m || 0 === e.m.length) return b.rect(0, 0, 10, 10); for (var f = e.In(), e = e.m, g = 0, h = e.length; g < h; g++) { var k = e[g]; k && k.Ta && (a ? (k = k.hv(f)) && (a = b.kt(a, k)) : a = k.hv(f)) } return a } })(); (function() { b.Ub.n = function(a) { b.Ua.n.call(this, a); this.cb = !0; this.$k = "source-over"; this.R2 = new b.wg(this, this.S2) }; var a = b.Ub.n.prototype = Object.create(b.Ua.n.prototype); a.constructor = b.Ub.n; a.Sx = function() { b.Ua.n.prototype.Sx.call(this); this.cb = !0 }; a.Eb = function(a, e, f) { a = a || b.A; var g = a.getContext(), h = this.k, k = this.Vb, m = this.ad / 255, n = h.U.width, h = h.U.height; 0 !== m && (a.xx(this.$k), a.ut(m), a.Fj("rgba(" + (0 | k.r) + "," + (0 | k.g) + "," + (0 | k.b) + ", 1)"), a.setTransform(this.jj, e, f), g.fillRect(0, 0, n * e, -h * f), b.Of++) }; a.Tx = function(a) { this.$k = b.e.n.VQ(a) }; a.CT = a.ET = a.DT = function() {}; a.S2 = function() { if (this.Wd) { var a = this.k, e = this.Pm, f = a.m, g = f.length; this.transform(P(this), !0); var h = this.XG(); h.width = 0 | h.width + 0.5; h.height = 0 | h.height + 0.5; var k = e.Ve, m = k.getContext(); e.WW(h.width, h.height); k.Gj(0 - h.x, m.canvas.height - h.height + h.y); e.I(h.x, h.y); b.oa.es(this.ba); if (0 < g) { a.Ne(); for (a = 0; a < g; a++) if (h = f[a], 0 > h.wc) h.f.Q(this); else break; for (b.oa.Ec(this); a < g; a++) f[a].f.Q(this) } else b.oa.Ec(this); b.oa.Jv(k, this.ba); e.transform(); this.Wd = !1 } }; a.Q = function(a) { this.sl ? this.k.Ta && (this.cd(a), b.oa.Ec(this.R2), this.Pm.f.va(b.e.V.la), this.Pm.Q(this), this.G = 0) : b.e.n.prototype.Q.call(this) }; a.XG = function() { var a = this.k, e = b.rect(0, 0, a.U.width, a.U.height), f = a.In(), e = b.oi(e, a.In()); if (!a.m || 0 === a.m.length) return e; for (var a = a.m, g = 0; g < a.length; g++) { var h = a[g]; h && h.Ta && (h = h.hv(f), e = b.kt(e, h)) } return e } })(); b.yf.Re = { updateStatus: function() { var a = b.e.V, d = this.G, e = d & a.Ka, f = d & a.Ha; e && this.Ae(); f && this.ci(); d & a.la && this.transform(null, !0); (e || f || d & a.ki) && this.xb(); this.G = 0 } }; (function() { b.yf.n = function(a) { b.Ub.n.call(this, a); this.cb = !0; this.rk = b.d(0, 0); this.dA = b.d(0, 0); this.EQ = this.cT = null }; var a = b.yf.n.prototype = Object.create(b.Ub.n.prototype); b.RC(b.yf.Re, a); a.constructor = b.yf.n; a.Eb = function(a, e, f) { a = a || b.A; var g = a.getContext(), h = this.k, k = this.ad / 255; if (0 !== k) { var m = h.U.width, n = h.U.height; a.xx(this.$k); a.ut(k); k = g.createLinearGradient(this.rk.x * e, this.rk.y * f, this.dA.x * e, this.dA.y * f); if (h.Af) for (var p = 0; p < h.Af.length; p++) k.addColorStop(h.Af[p].d, this.zP[p]); else k.addColorStop(0, this.cT), k.addColorStop(1, this.EQ); a.Fj(k); a.setTransform(this.jj, e, f); g.fillRect(0, 0, m * e, -n * f); b.Of++ } }; a.cd = function(a) { var e = b.e.V, f = this.G, g = a ? a.k : null; g && g.Zc && a.G & e.Ka && (f |= e.Ka); g && g.$c && a.G & e.Ha && (f |= e.Ha); a && a.G & e.la && (f |= e.la); var g = f & e.Ka, h = f & e.Ha; this.G = f; g && ja(this); h && ia(this); f & e.la && this.transform(a); (g || h || f & e.ki) && this.xb() }; a.xb = function() { var a = this.k, e = a.U, f = 0.5 * e.width, e = 0.5 * e.height; this.G ^= this.G & b.e.V.ki; var g = b.AW(b.d(0, -1), a.Nm), g = b.HW(b.d(0, -1), b.d(0, 0), g), h = Math.min(Math.abs(1 / g.x), Math.abs(1 / g.y)); this.rk.x = f * -g.x * h + f; this.rk.y = e * g.y * h - e; this.dA.x = f * g.x * h + f; this.dA.y = e * -g.y * h - e; f = this.Vb; e = a.gg; g = a.gr / 255; this.cT = "rgba(" + Math.round(f.r) + "," + Math.round(f.g) + "," + Math.round(f.b) + "," + (a.Vr / 255).toFixed(4) + ")"; this.EQ = "rgba(" + Math.round(e.r) + "," + Math.round(e.g) + "," + Math.round(e.b) + "," + g.toFixed(4) + ")"; if (a.Af) for (this.gr = this.Vr = 0, this.zP = [], f = 0; f < a.Af.length; f++) e = a.Af[f].color, this.zP.push("rgba(" + Math.round(e.r) + "," + Math.round(e.g) + "," + Math.round(e.b) + "," + (null == e.a ? 1 : e.a / 255).toFixed(4) + ")") } })(); (function() { b.Ua.p = function(a) { b.e.p.call(this, a) }; var a = b.Ua.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.Ua.p; a.MJ = function() {}; a.Sx = function() {}; a.oP = function() {} })(); (function() { b.Ub.p = function(a) { b.Ua.p.call(this, a); this.cb = !0; this.zB = new ArrayBuffer(32); this.yB = new ArrayBuffer(16); a = this.zB; var e = this.yB, f = M.BYTES_PER_ELEMENT, g = b.bf.BYTES_PER_ELEMENT; this.Tr = [new M(0, 0, a, 0), new M(0, 0, a, f), new M(0, 0, a, 2 * f), new M(0, 0, a, 3 * f)]; this.YS = [b.color(0, 0, 0, 255, e, 0), b.color(0, 0, 0, 255, e, g), b.color(0, 0, 0, 255, e, 2 * g), b.color(0, 0, 0, 255, e, 3 * g)]; this.xJ = b.A.createBuffer(); this.rG = b.A.createBuffer() }; var a = b.Ub.p.prototype = Object.create(b.Ua.p.prototype); a.constructor = b.Ub.p; a.Eb = function(a) { a = a || b.A; var e = this.k; this.za.jc(); this.za.Ug(this.Mc); b.hd(b.qe | b.Cu); b.ji(e.H.src, e.H.$); a.bindBuffer(a.ARRAY_BUFFER, this.xJ); a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0); a.bindBuffer(a.ARRAY_BUFFER, this.rG); a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 0, 0); a.drawArrays(a.TRIANGLE_STRIP, 0, this.Tr.length) }; a.CT = function(a, e) { var f = this.Tr; void 0 === e ? (f[1].x = a.width, f[2].y = a.height, f[3].x = a.width, f[3].y = a.height) : (f[1].x = a, f[2].y = e, f[3].x = a, f[3].y = e); this.Ez() }; a.ET = function(a) { var e = this.Tr; e[1].x = a; e[3].x = a; this.Ez() }; a.DT = function(a) { var e = this.Tr; e[2].y = a; e[3].y = a; this.Ez() }; a.xb = function() { for (var a = this.Vb, e = this.ad, f = this.YS, g = 0; 4 > g; g++) f[g].r = a.r, f[g].g = a.g, f[g].b = a.b, f[g].a = e; this.qP() }; a.Ez = function() { var a = b.A; a.bindBuffer(a.ARRAY_BUFFER, this.xJ); a.bufferData(a.ARRAY_BUFFER, this.zB, a.STATIC_DRAW) }; a.qP = function() { var a = b.A; a.bindBuffer(a.ARRAY_BUFFER, this.rG); a.bufferData(a.ARRAY_BUFFER, this.yB, a.STATIC_DRAW) }; a.Tx = function() {} })(); (function() { b.yf.p = function(a) { b.Ub.p.call(this, a); this.cb = !0; this.xP = new b.Dh; this.yP = !1 }; var a = b.yf.p.prototype = Object.create(b.Ub.p.prototype); b.RC(b.yf.Re, a); a.constructor = b.yf.p; a.cd = function(a) { var e = b.e.V, f = this.G, g = a ? a.k : null; g && g.Zc && a.G & e.Ka && (f |= e.Ka); g && g.$c && a.G & e.Ha && (f |= e.Ha); a && a.G & e.la && (f |= e.la); var g = f & e.Ka, h = f & e.Ha; this.G = f; g && ja(this); h && ia(this); this.transform(a); (g || h || f & e.ki) && this.xb() }; a.xb = function() { this.G ^= this.G & b.e.V.ki; var a = this.k, e = a.Af; if (e && !(2 > e.length)) { this.yP = !0; var f = e.length, g = 2 * f, h, k = a.U; this.zB = new ArrayBuffer(8 * g); this.yB = new ArrayBuffer(4 * g); var m = this.Tr, n = this.YS; m.length = 0; n.length = 0; var p = this.zB, s = this.yB, t = M.BYTES_PER_ELEMENT, v = b.bf.BYTES_PER_ELEMENT; for (h = 0; h < g; h++) m.push(new M(0, 0, p, t * h)), n.push(b.color(0, 0, 0, 255, s, v * h)); h = Math.PI + b.AW(b.d(0, -1), a.Nm); a = b.d(k.width / 2, k.height / 2); p = Math.round(b.jx(h)); g = b.S6(a.x, a.y); g = b.TT(g, h); 90 > p ? (p = b.d(-a.x, a.y), s = b.d(a.x, a.y)) : 180 > p ? (p = b.d(a.x, a.y), s = b.d(a.x, -a.y)) : 270 > p ? (p = b.d(a.x, -a.y), s = b.d(-a.x, -a.y)) : (p = b.d(-a.x, -a.y), s = b.d(-a.x, a.y)); t = Math.sin(h); h = Math.cos(h); g = b.T6(g, Math.abs((p.x * h - p.y * t) / a.x), Math.abs((s.x * t + s.y * h) / a.y)); for (h = 0; h < f; h++) p = e[h].d * k.height, s = b.hh(-a.x, p - a.y, g), m[2 * h].x = s.x, m[2 * h].y = s.y, p = b.hh(k.width - a.x, p - a.y, g), m[2 * h + 1].x = p.x, m[2 * h + 1].y = p.y; k = this.ad / 255; for (h = 0; h < f; h++) m = e[h].color, a = n[2 * h], g = n[2 * h + 1], a.r = m.r, a.g = m.g, a.b = m.b, a.a = m.a * k, g.r = m.r, g.g = m.g, g.b = m.b, g.a = m.a * k; this.Ez(); this.qP() } }; a.Eb = function(a) { a = a || b.A; var e = this.k, f = this.J3(); a.enable(a.SCISSOR_TEST); b.view.RD(f.x, f.y, f.width, f.height); this.za.jc(); this.za.Ug(this.Mc); b.hd(b.qe | b.Cu); b.ji(e.H.src, e.H.$); a.bindBuffer(a.ARRAY_BUFFER, this.xJ); a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0); a.bindBuffer(a.ARRAY_BUFFER, this.rG); a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 0, 0); a.drawArrays(a.TRIANGLE_STRIP, 0, this.Tr.length); a.disable(a.SCISSOR_TEST) }; a.J3 = function() { if (this.yP) { var a = this.k, e = b.rect(0, 0, a.U.width, a.U.height), a = a.In(); this.xP = b.Yi(e, a) } return this.xP } })(); b.Ea.dF = function() { var a = b.B.prototype; b.i(a, "opacityModifyRGB", a.tf, a.Le); b.i(a, "opacity", a.bh, a.Hb); b.i(a, "color", a.rf, a.X); b.i(a, "flippedX", a.eW, a.Ax); b.i(a, "flippedY", a.fW, a.JD); b.i(a, "offsetX", a.Y3); b.i(a, "offsetY", a.Z3); b.i(a, "texture", a.xa, a.Oa); b.i(a, "textureRectRotated", a.dba); b.i(a, "batchNode", a.yK, a.si); b.i(a, "quad", a.uC) }; b.B = b.e.extend({ dirty: !1, atlasIndex: 0, textureAtlas: null, qa: null, ep: null, ur: null, np: !1, ds: null, H: null, O: null, Va: null, Gf: !1, ve: null, yp: null, Cb: !1, uc: !1, vc: !1, R: !1, Ma: "Sprite", ctor: function(a, d, e) { b.e.prototype.ctor.call(this); this.np = !1; this.ve = b.d(0, 0); this.yp = b.d(0, 0); this.H = { src: b.Td, $: b.Sd }; this.Va = b.rect(0, 0, 0, 0); this.o6(a, d, e) }, Et: function() { return this.R }, ls: function(a, d) { this.addEventListener("load", a, d) }, nL: function() { return this.dirty }, qX: function(a) { this.dirty = a }, dba: function() { return this.Gf }, Es: function() { return this.atlasIndex }, NL: function(a) { this.atlasIndex = a }, RK: function() { return b.rect(this.Va) }, bm: function() { return this.textureAtlas }, vt: function(a) { this.textureAtlas = a }, h$: function() { return b.d(this.ve) }, Y3: function() { return this.ve.x }, Z3: function() { return this.ve.y }, Gk: function() { return this.H }, qg: function(a) { b.assert(a, b.o.f1); a.R || (this.R = !1, a.addEventListener("load", this.f.WS, this)); var d = b.W === b.Jb ? !1 : a.ye, d = this.ea(a.xa(), a.dh(), d); this.zi(a); return d }, Baa: function(a) { b.assert(a, b.o.g1); var d = b.sh.og(a); b.assert(d, a + b.o.h1); return this.qg(d) }, Ewa: function(a) { this.textureAtlas = a.bm(); this.qa = a }, hea: function(a) { var d = this.Va; d.x = a.x; d.y = a.y; d.width = a.width; d.height = a.height }, Ne: function() { if (this.kg) { var a = this.m, d = a.length, e, f, g; for (e = 1; e < d; e++) { g = a[e]; for (f = e - 1; 0 <= f;) { if (g.wc < a[f].wc) a[f + 1] = a[f]; else if (g.wc === a[f].wc && g.arrivalOrder < a[f].arrivalOrder) a[f + 1] = a[f]; else break; f-- } a[f + 1] = g } this.qa && this.Ki(a, b.e.Wh.Ne); this.kg = !1 } }, lt: function(a, d) { b.assert(a, b.o.j1); - 1 === this.m.indexOf(a) ? b.log(b.o.i1) : d !== a.zIndex && (this.qa && !this.kg && (this.KI(), this.qa.TW(!0)), b.e.prototype.lt.call(this, a, d)) }, removeChild: function(a, d) { this.qa && this.qa.yD(a); b.e.prototype.removeChild.call(this, a, d) }, Ci: function(a) { b.e.prototype.Ci.call(this, a); this.f.QL(!0) }, pi: function(a) { var d = this.m, e = this.qa; if (e && null != d) for (var f = 0, g = d.length; f < g; f++) e.yD(d[f]); b.e.prototype.pi.call(this, a); this.ur = !1 }, pj: function(a) { this.qa ? b.log(b.o.d1) : b.e.prototype.pj.call(this, a) }, Ax: function(a) { this.uc !== a && (this.uc = a, this.Fc(this.Va, this.Gf, this.U), this.Pk(!0)) }, JD: function(a) { this.vc !== a && (this.vc = a, this.Fc(this.Va, this.Gf, this.U), this.Pk(!0)) }, eW: function() { return this.uc }, fW: function() { return this.vc }, Le: function(a) { this.Cb !== a && (this.Cb = a, this.f.FS()) }, tf: function() { return this.Cb }, Nta: function(a, d) { b.assert(a, b.o.n1); var e = b.nw.wK(a); e ? (e = e.Xe[d]) ? this.zi(e.og()) : b.log(b.o.m1) : b.log(b.o.l1) }, yK: function() { return this.qa }, KI: function() { if (!this.kg) { this.kg = !0; for (var a = this.Ga; a && a !== this.qa;) a.KI(), a = a.parent } }, xa: function() { return this.O }, o6: function(a, d, e) { if (void 0 === a) b.B.prototype.T.call(this); else if (b.Je(a)) "#" === a[0] ? (d = b.sh.og(a.substr(1, a.length - 1))) ? this.qg(d) : b.log("%s does not exist", a) : b.B.prototype.T.call(this, a, d); else if ("object" === typeof a) if (a instanceof b.ja) this.ea(a, d, e); else if (a instanceof b.Se) this.qg(a); else if (a instanceof HTMLImageElement || a instanceof HTMLCanvasElement) d = new b.ja, d.jd(a), d.Tb(), this.ea(d) }, uC: function() { return this.f.uC() }, sg: function(a, d) { var e = this.H; void 0 === d ? (e.src = a.src, e.$ = a.$) : (e.src = a, e.$ = d); this.f.Tx(e) }, T: function() { if (0 < arguments.length) return this.em(arguments[0], arguments[1]); b.e.prototype.T.call(this); this.dirty = this.ep = !1; this.H.src = b.Td; this.H.$ = b.Sd; this.texture = null; this.uc = this.vc = !1; this.anchorY = this.anchorX = 0.5; this.ve.x = 0; this.ve.y = 0; this.ur = !1; this.f.rl(); this.Fc(b.rect(0, 0, 0, 0), !1, b.size(0, 0)); return !0 }, em: function(a, d) { b.assert(a, b.o.e1); var e = b.Xa.Kn(a); if (e) { if (!d) { var f = e.L(); d = b.rect(0, 0, f.width, f.height) } return this.ea(e, d) } e = b.Xa.Vc(a); return this.ea(e, d || b.rect(0, 0, e.U.width, e.U.height)) }, ea: function(a, d, e, f) { b.assert(0 !== arguments.length, b.o.dZ); e = e || !1; a = this.f.gR(a, d, e, f); if (!b.e.prototype.T.call(this)) return !1; this.qa = null; this.dirty = this.ep = !1; this.Cb = !0; this.H.src = b.Td; this.H.$ = b.Sd; this.uc = this.vc = !1; this.rb(0.5, 0.5); this.ve.x = 0; this.ve.y = 0; this.ur = !1; this.f.rl(); var g = a.R; this.R = g; if (!g) return this.Gf = e, d && (this.Va.x = d.x, this.Va.y = d.y, this.Va.width = d.width, this.Va.height = d.height), this.texture && this.texture.removeEventListener("load", this), a.addEventListener("load", this.f.gT, this), this.texture = a, !0; d || (d = b.rect(0, 0, a.width, a.height)); this.f.wP(a, d, e); this.texture = a; this.Fc(d, e); this.si(null); return !0 }, Fc: function(a, d, e, f) { this.Gf = d || !1; this.Na(e || a); this.hea(a); this.f.KS(a, f); a = this.yp.x; d = this.yp.y; this.uc && (a = -a); this.vc && (d = -d); e = this.Va; this.ve.x = a + (this.U.width - e.width) / 2; this.ve.y = d + (this.U.height - e.height) / 2; this.qa ? this.dirty = !0 : this.f.mI() }, ug: function() { this.f.ug() }, C: function(a, d, e) { b.assert(a, b.o.bZ); null == d && (d = a.wc); null == e && (e = a.tag); this.f.DS(a) && (b.e.prototype.C.call(this, a, d, e), this.ur = !0) }, zi: function(a) { var d = this; b.Je(a) && (a = b.sh.og(a), b.assert(a, b.o.o1)); this.Pk(!0); var e = a.Js(); d.yp.x = e.x; d.yp.y = e.y; e = a.xa(); a.R ? (e !== d.O && (d.texture = e), d.Fc(a.dh(), a.ye, a.Iw())) : (d.R = !1, a.addEventListener("load", function(a) { d.R = !0; var e = a.xa(); e !== d.O && (d.texture = e); d.Fc(a.dh(), a.ye, a.Iw()); d.dispatchEvent("load"); d.X(d.color) }, d)); this.f.yT(e) }, bda: function(a) { b.log(b.o.k1); this.zi(a) }, oL: function(a) { return this.f.oL(a) }, IU: function() { return this.og() }, og: function() { return new b.Se(this.O, b.qx(this.Va), this.Gf, b.Xba(this.yp), b.vea(this.U)) }, si: function(a) { (this.qa = a) ? (this.ds = { a: 1, b: 0, c: 0, K: 1, ma: 0, na: 0 }, this.textureAtlas = this.qa.bm()) : (this.atlasIndex = b.B.hN, this.textureAtlas = null, this.dirty = this.ep = !1, this.f.mI()) }, Oa: function(a) { if (!a) return this.f.Ov(null); b.Je(a) ? (a = b.Xa.Vc(a), a.R ? (this.qG(), this.f.Ov(a), this.nG(a.L()), this.X(this.Qg), this.R = !0) : a.addEventListener("load", function() { this.qG(); this.f.Ov(a); this.nG(a.L()); this.X(this.Qg); this.R = !0 }, this)) : (b.assert(a instanceof b.ja, b.o.q1), this.qG(), this.nG(a.L()), this.f.Ov(a)) }, qG: function() { var a = this.O; if (a) { var a = a.U, d = this.Va; a.width === d.width && a.height === d.height && (d.width = d.height = 0) } }, nG: function(a) { if (a && (a.width || a.height)) { var d = this.RK(); d.height || d.width || (a.x = a.x || 0, a.y = a.y || 0, a.width = a.width || 0, a.height = a.height || 0, this.Fc(a)) } }, Ic: function() { return b.W === b.Jb ? new b.B.n(this) : new b.B.p(this) } }); b.B.create = function(a, d, e) { return new b.B(a, d, e) }; b.B.eK = b.B.create; b.B.X7 = b.B.create; b.B.vU = b.B.create; b.B.hN = -1; b.zh.prototype.apply(b.B.prototype); b.assert(b.Ie(b.Ea.dF), b.o.Qj, "SpritesPropertyDefine.js"); b.Ea.dF(); delete b.Ea.dF; (function() { b.B.n = function(a) { b.e.n.call(this, a); this.cb = !0; this.Ql = { zD: 0, AD: 0, x: 0, y: 0, width: 0, height: 0, Vx: !1 }; this.$k = "source-over"; this.Ni = !1; this.gc = null }; var a = b.B.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.B.n; a.rl = function() {}; a.QL = function() {}; a.mI = function() {}; a.Ov = function(a) { var e = this.k; e.O !== a && (a ? (a.Sa instanceof HTMLImageElement && (this.gc = a), e.R = a.R) : e.R = !1, e.O = a) }; a.FS = function() { this.va(b.e.V.Ka | b.e.V.Ha) }; a.oL = function(a) { var e = this.k; return a.xa() !== e.O ? !1 : b.PW(a.dh(), e.Va) }; a.Tx = function(a) { this.$k = b.e.n.VQ(a) }; a.DS = function() { return !0 }; a.gR = function(a, e, f, g) { f && a.R && (a = a.Sa, a = b.B.n.yG(a, e, g), g = new b.ja, g.jd(a), g.Tb(), a = g, e.x = e.y = 0, this.k.Va = b.rect(0, 0, e.width, e.height)); return a }; a.wP = function(a, e) { if (a && a.url) { var f = e.y + e.height; e.x + e.width > a.width && b.error(b.o.jF, a.url); f > a.height && b.error(b.o.iF, a.url) } this.k.gc = a }; a.Eb = function(a, e, f) { var g = this.k, h = this.Ql, k = this.ad / 255; if ((!g.O || 0 !== h.width && 0 !== h.height && g.O.R) && 0 !== k) { a = a || b.A; var m = a.getContext(), n = g.ve.x, p = g.Va.height, s = g.Va.width, t = -g.ve.y - p; a.setTransform(this.jj, e, f); a.xx(this.$k); a.ut(k); (g.uc || g.vc) && a.save(); g.uc && (n = -n - s, m.scale(-1, 1)); g.vc && (t = g.ve.y, m.scale(1, -1)); g.O ? (k = g.O.Sa, "" !== g.O.bB ? (a.Fj(m.createPattern(k, g.O.bB)), m.fillRect(n * e, t * f, s * e, p * f)) : this.Ni ? m.drawImage(k, 0, 0, h.width, h.height, n * e, t * f, s * e, p * f) : m.drawImage(k, h.zD, h.AD, h.width, h.height, n * e, t * f, s * e, p * f)) : (k = g.U, h.Vx && (h = this.Vb, a.Fj("rgba(" + h.r + "," + h.g + "," + h.b + ",1)"), m.fillRect(n * e, t * f, k.width * e, k.height * f))); (g.uc || g.vc) && a.restore(); b.Of++ } }; a.xb = b.fa.DB ? function() { var a = this.k, e = this.Vb; if (255 === e.r && 255 === e.g && 255 === e.b) this.Ni && (this.Ni = !1, a.texture = this.gc); else { var f, g = a.O, h = this.Ql; g && h.Vx && this.gc && (f = g.Sa) && (this.Ni = !0, f instanceof HTMLCanvasElement && !this.Gf && !this.PR && this.gc.Sa !== f ? b.B.n.Lo(this.gc.Sa, e, h, f) : (f = b.B.n.Lo(this.gc.Sa, e, h), g = new b.ja, g.jd(f), g.Tb(), a.texture = g)) } } : function() { var a = this.k, e = this.Vb; if (255 === e.r && 255 === e.g && 255 === e.b) this.Ni && (this.Ni = !1, a.texture = this.gc); else { var f, g = a.O, h = this.Ql; g && h.Vx && this.gc && (f = g.Sa) && (g = b.Xa.zC(this.gc.Sa)) && (this.Ni = !0, f instanceof HTMLCanvasElement && !this.Gf && !this.PR ? b.B.n.Ko(f, g, e, h, f) : (f = b.B.n.Ko(f, g, e, h), g = new b.ja, g.jd(f), g.Tb(), a.texture = g)) } }; a.uC = function() { return null }; a.yT = function(a, e) { var f = this.k; f.Gf && (f.gc = a); this.Ni = !1; this.Ql.zD = this.Ql.x; this.Ql.AD = this.Ql.y; e && (f = f.rf(), 255 === f.r && 255 === f.g && 255 === f.b || this.xb()) }; a.ug = function() { var a = this.k; if (a.dirty) { var e = a.Ga; !a.Ta || e && e !== a.qa && e.np ? a.np = !0 : (a.np = !1, a.ds = e && e !== a.qa ? b.Dp(this.He(), e.ds) : this.He()); a.ep = !1; a.dirty = !1 } a.ur && a.Ki(a.m, b.e.Wh.ug) }; a.Ae = function(a) { b.e.n.prototype.Ae.call(this, a) }; a.WS = function(a) { this.Fc(a.dh(), a.ye, a.Iw()); this.f.xb(); this.dispatchEvent("load") }; a.gT = function(a) { if (!this.R) { this.R = !0; var e = this.Va, f = this.f; e ? b.Iv(e) && (e.width = a.width, e.height = a.height) : e = b.rect(0, 0, a.width, a.height); this.texture = f.gc = a; this.Fc(e, this.Gf); a = f.Vb; 255 === a.r && 255 === a.g && 255 === a.b || f.xb(); this.si(this.qa); this.dispatchEvent("load") } }; a.KS = function(a, e) { void 0 === e && (e = !0); var f = this.Ql, g = e ? b.Db() : 1; f.zD = f.x = 0 | a.x * g; f.AD = f.y = 0 | a.y * g; f.width = 0 | a.width * g; f.height = 0 | a.height * g; f.Vx = !(0 === f.width || 0 === f.height || 0 > f.x || 0 > f.y); this.Ni && (this.k.O = this.gc, this.Ni = !1) }; b.B.n.Lo = function(a, e, f, g) { g = g || b.ic("canvas"); f = f || b.rect(0, 0, a.width, a.height); var h = g.getContext("2d"); g.width !== f.width || g.height !== f.height ? (g.width = f.width, g.height = f.height) : h.globalCompositeOperation = "source-over"; h.fillStyle = "rgb(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + ")"; h.fillRect(0, 0, f.width, f.height); h.globalCompositeOperation = "multiply"; h.drawImage(a, f.x, f.y, f.width, f.height, 0, 0, f.width, f.height); h.globalCompositeOperation = "destination-atop"; h.drawImage(a, f.x, f.y, f.width, f.height, 0, 0, f.width, f.height); return g }; b.B.n.Ko = function(a, e, f, g, h) { g || (g = b.rect(0, 0, a.width, a.height)); a = f.r / 255; var k = f.g / 255; f = f.b / 255; var m = Math.min(g.width, e[0].width), n = Math.min(g.height, e[0].height), p; h ? (p = h.getContext("2d"), p.clearRect(0, 0, m, n)) : (h = b.ic("canvas"), h.width = m, h.height = n, p = h.getContext("2d")); p.save(); p.globalCompositeOperation = "lighter"; var s = p.globalAlpha; 0 < a && (p.globalAlpha = a * s, p.drawImage(e[0], g.x, g.y, m, n, 0, 0, m, n)); 0 < k && (p.globalAlpha = k * s, p.drawImage(e[1], g.x, g.y, m, n, 0, 0, m, n)); 0 < f && (p.globalAlpha = f * s, p.drawImage(e[2], g.x, g.y, m, n, 0, 0, m, n)); 1 > a + k + f && (p.globalAlpha = s, p.drawImage(e[3], g.x, g.y, m, n, 0, 0, m, n)); p.restore(); return h }; b.B.n.qr = function(a) { function e() { var e = b.B.n.qr, g = a.width, m = a.height; f[0].width = g; f[0].height = m; f[1].width = g; f[1].height = m; f[2].width = g; f[2].height = m; f[3].width = g; f[3].height = m; e.canvas.width = g; e.canvas.height = m; var n = e.canvas.getContext("2d"); n.drawImage(a, 0, 0); e.kM.width = g; e.kM.height = m; for (var n = n.getImageData(0, 0, g, m).data, p = 0; 4 > p; p++) { var s = f[p].getContext("2d"); s.getImageData(0, 0, g, m).data; e.qY.drawImage(a, 0, 0); for (var t = e.qY.getImageData(0, 0, g, m), v = t.data, w = 0; w < n.length; w += 4) v[w] = 0 === p ? n[w] : 0, v[w + 1] = 1 === p ? n[w + 1] : 0, v[w + 2] = 2 === p ? n[w + 2] : 0, v[w + 3] = n[w + 3]; s.putImageData(t, 0, 0) } a.onload = null } if (a.hU) return a.hU; var f = [b.ic("canvas"), b.ic("canvas"), b.ic("canvas"), b.ic("canvas") ]; try { e() } catch (g) { a.onload = e } return a.hU = f }; b.B.n.qr.canvas = b.ic("canvas"); b.B.n.qr.kM = b.ic("canvas"); b.B.n.qr.qY = b.B.n.qr.kM.getContext("2d"); b.B.n.yG = function(a, e, f) { if (!a) return null; if (!e) return a; f = null == f ? !0 : f; var g = b.ic("canvas"); g.width = e.width; g.height = e.height; var h = g.getContext("2d"); h.translate(g.width / 2, g.height / 2); f ? h.rotate(-1.5707963267948966) : h.rotate(1.5707963267948966); h.drawImage(a, e.x, e.y, e.height, e.width, -e.height / 2, -e.width / 2, e.height, e.width); return g } })(); (function() { b.B.p = function(a) { b.e.p.call(this, a); this.cb = !0; this.Fl = new b.Zb; this.hS = b.A.createBuffer(); this.Gl = !0; this.ep = this.Ra = !1 }; var a = b.B.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.B.p; a.Tx = function() {}; a.va = function(a) { b.e.p.prototype.va.call(this, a); this.Ra = !0 }; a.QL = function(a) { this.Ra = this.ep = a; for (var e = this.k.m, f, g = e ? e.length : 0, h = 0; h < g; h++) f = e[h], f instanceof b.B && f.f.QL(a) }; a.DS = function(a) { var e = this.k; if (e.qa) { if (!(a instanceof b.B)) return b.log(b.o.a1), !1; a.texture.Xg !== e.textureAtlas.texture.Xg && b.log(b.o.b1); e.qa.appendChild(a); e.kg || e.KI() } return !0 }; a.gR = function(a) { return a }; a.oL = function(a) { var e = this.k; return b.PW(a.dh(), e.Va) && a.xa().getName() === e.O.getName() && b.DL(a.Js(), e.yp) }; a.rl = function() { var a = { r: 255, g: 255, b: 255, a: 255 }, e = this.Fl; e.bl.colors = a; e.br.colors = a; e.tl.colors = a; e.tr.colors = a; this.Gl = !0 }; a.mI = function() { var a = this.k, e = a.ve.x, f = a.ve.y, g = e + a.Va.width, a = f + a.Va.height, h = this.Fl; h.bl.vertices = { x: e, y: f, z: 0 }; h.br.vertices = { x: g, y: f, z: 0 }; h.tl.vertices = { x: e, y: a, z: 0 }; h.tr.vertices = { x: g, y: a, z: 0 }; this.Gl = !0 }; a.uC = function() { return this.Fl }; a.yT = function() {}; a.WS = function(a) { this.Fc(a.dh(), a.ye, a.Iw()); this.dispatchEvent("load") }; a.gT = function(a) { var e = this.f; if (!this.R) { this.R = !0; var f = this.Va; f ? b.Iv(f) && (f.width = a.width, f.height = a.height) : f = b.rect(0, 0, a.width, a.height); this.texture = a; this.Fc(f, this.Gf); this.si(this.qa); e.Gl = !0; this.dispatchEvent("load") } }; a.KS = function(a, e) { void 0 === e && (e = !0); e && (a = b.qx(a)); var f = this.k, g = f.qa ? f.textureAtlas.texture : f.O; if (g) { var h = g.pixelsWidth, k = g.pixelsHeight, m, n, p = this.Fl; f.Gf ? (b.Cy ? (g = (2 * a.x + 1) / (2 * h), h = g + (2 * a.height - 2) / (2 * h), m = (2 * a.y + 1) / (2 * k), k = m + (2 * a.width - 2) / (2 * k)) : (g = a.x / h, h = (a.x + a.height) / h, m = a.y / k, k = (a.y + a.width) / k), f.uc && (n = m, m = k, k = n), f.vc && (n = g, g = h, h = n), p.bl.texCoords.u = g, p.bl.texCoords.v = m, p.br.texCoords.u = g, p.br.texCoords.v = k, p.tl.texCoords.u = h, p.tl.texCoords.v = m, p.tr.texCoords.u = h, p.tr.texCoords.v = k) : (b.Cy ? (g = (2 * a.x + 1) / (2 * h), h = g + (2 * a.width - 2) / (2 * h), m = (2 * a.y + 1) / (2 * k), k = m + (2 * a.height - 2) / (2 * k)) : (g = a.x / h, h = (a.x + a.width) / h, m = a.y / k, k = (a.y + a.height) / k), f.uc && (n = g, g = h, h = n), f.vc && (n = m, m = k, k = n), p.bl.texCoords.u = g, p.bl.texCoords.v = k, p.br.texCoords.u = h, p.br.texCoords.v = k, p.tl.texCoords.u = g, p.tl.texCoords.v = m, p.tr.texCoords.u = h, p.tr.texCoords.v = m); this.Gl = !0 } }; a.transform = function(a, e) { b.e.p.prototype.transform.call(this, a, e); this.Ra = !0 }; a.FS = function() {}; a.xb = function() { var a = this.Vb, e = this.ad, f = this.k, a = { r: a.r, g: a.g, b: a.b, a: e }; f.Cb && (a.r *= e / 255, a.g *= e / 255, a.b *= e / 255); e = this.Fl; e.bl.colors = a; e.br.colors = a; e.tl.colors = a; e.tr.colors = a; f.qa && (f.atlasIndex !== b.B.hN ? f.textureAtlas.aE(e, f.atlasIndex) : this.Ra = !0); this.Gl = !0 }; a.bi = function() { if (this.qa) b.log(b.o.$0); else { var a = this.k; a.O && a.O.Jk() ? (a.H.src = b.Td, a.H.$ = b.Sd, a.opacityModifyRGB = !0) : (a.H.src = b.SRC_ALPHA, a.H.$ = b.ONE_MINUS_SRC_ALPHA, a.opacityModifyRGB = !1) } }; a.Ov = function(a) { var e = this.k; if (e.qa) { if (e.qa.texture !== a) { b.log(b.o.p1); return } } else e.O !== a && (e.R = a ? a.R : !1, e.O = a, this.bi()); this.za = a ? b.le.Dc(b.Sj) : b.le.Dc(b.Xy) }; a.ug = function() { var a = this.k; if (this.Ra) { var e = this.Fl, f = a.Ga; if (!a.Ta || f && f !== a.qa && f.np) e.br.vertices = e.tl.vertices = e.tr.vertices = e.bl.vertices = { x: 0, y: 0, z: 0 }, a.np = !0; else { a.np = !1; 0 !== this.G && (this.updateStatus(), this.G = 0); a.ds = f && f !== a.qa ? b.Dp(this.He(), f.ds) : this.He(); var g = a.ds, h = a.Va, f = a.ve.x, k = a.ve.y, m = f + h.width, n = k + h.height, p = g.ma, s = g.na, t = g.a, v = g.b, w = g.K, x = -g.c, g = f * t - k * x + p, h = f * v + k * w + s, u = m * t - k * x + p, k = m * v + k * w + s, y = m * t - n * x + p, m = m * v + n * w + s, p = f * t - n * x + p, f = f * v + n * w + s, n = a.jw; b.qF || (g |= 0, h |= 0, u |= 0, k |= 0, y |= 0, m |= 0, p |= 0, f |= 0); e.bl.vertices = { x: g, y: h, z: n }; e.br.vertices = { x: u, y: k, z: n }; e.tl.vertices = { x: p, y: f, z: n }; e.tr.vertices = { x: y, y: m, z: n } } a.textureAtlas.aE(e, a.atlasIndex); this.Ra = a.ep = !1 } a.ur && a.Ki(a.m, b.e.Wh.ug) }; a.wP = function(a, e, f) { a && a.url && (f ? (f = e.x + e.height, e = e.y + e.width) : (f = e.x + e.width, e = e.y + e.height), f > a.width && b.error(b.o.jF, a.url), e > a.height && b.error(b.o.iF, a.url)) }; a.Eb = function(a) { var e = this.k, f = e.O; f && !f.R || 0 === this.ad || (a = a || b.A, f ? f.R && (this.za.jc(), this.za.Ug(this.Mc), b.ji(e.H.src, e.H.$), b.WK(0, f), b.hd(b.Cq), a.bindBuffer(a.ARRAY_BUFFER, this.hS), this.Gl && (a.bufferData(a.ARRAY_BUFFER, this.Fl.arrayBuffer, a.DYNAMIC_DRAW), this.Gl = !1), a.vertexAttribPointer(0, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(1, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(2, 2, a.FLOAT, !1, 24, 16), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)) : (this.za.jc(), this.za.Ug(this.Mc), b.ji(e.H.src, e.H.$), b.Rf(null), b.hd(b.qe | b.Cu), a.bindBuffer(a.ARRAY_BUFFER, this.hS), this.Gl && (a.bufferData(a.ARRAY_BUFFER, this.Fl.arrayBuffer, a.STATIC_DRAW), this.Gl = !1), a.vertexAttribPointer(b.Ib, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.drawArrays(a.TRIANGLE_STRIP, 0, 4)), b.Of++, 0 === b.rF && !e.TS) || (b.tj(b.Oj), b.Ob.stack.push(b.Ob.top), b.Ob.top = this.Mc, 1 === b.rF || e.TS ? (e = this.Fl, e = [b.d(e.tl.vertices.x, e.tl.vertices.y), b.d(e.bl.vertices.x, e.bl.vertices.y), b.d(e.br.vertices.x, e.br.vertices.y), b.d(e.tr.vertices.x, e.tr.vertices.y)], b.jl.ei(e, 4, !0)) : 2 === b.rF && (f = e.RK(), e = e.h$(), e = [b.d(e.x, e.y), b.d(e.x + f.width, e.y), b.d(e.x + f.width, e.y + f.height), b.d(e.x, e.y + f.height)], b.jl.ei(e, 4, !0)), b.Ob.top = b.Ob.stack.pop()) } })(); b.sb = b.e.extend({ H: null, Bf: null, Ma: "SpriteBatchNode", ctor: function(a, d) { b.e.prototype.ctor.call(this); this.Bf = []; this.H = new b.Gc(b.Td, b.Sd); var e; d = d || b.sb.VM; b.Je(a) ? (e = b.Xa.Kn(a)) || (e = b.Xa.Vc(a)) : a instanceof b.ja && (e = a); e && this.ea(e, d) }, P6: function(a, d, e) { b.assert(a, b.o.U0); if (!(a instanceof b.B)) return b.log(b.o.T0), null; a.atlasIndex = d; var f = 0, g, h = this.Bf; if (h && 0 < h.length) for (f = 0, g = h.length; f < g; f++) { var k = h[f]; if (k && k.atlasIndex >= d) break } h.splice(f, 0, a); b.e.prototype.C.call(this, a, d, e); this.TW(!1); return this }, bm: function() { return this.f.bm() }, vt: function() {}, n9: function() { return this.Bf }, em: function(a, d) { var e = b.Xa.Kn(a); e || (e = b.Xa.Vc(a)); return this.ea(e, d) }, Ll: function() { this.f && this.f.Ll && this.f.Ll() }, T: function(a, d) { var e = b.Xa.Kn(a); e || (e = b.Xa.Vc(a)); return this.ea(e, d) }, Qw: function() { this.f.Qw() }, rca: function(a, d) { this.removeChild(this.m[a], d) }, OW: function(a, d) { var e = a.children; if (e && 0 < e.length) for (var f = 0; f < e.length; f++) { var g = e[f]; g && 0 > g.zIndex && (d = this.OW(g, d)) }!a === this && (a.atlasIndex = d, d++); if (e && 0 < e.length) for (f = 0; f < e.length; f++)(g = e[f]) && 0 <= g.zIndex && (d = this.OW(g, d)); return d }, cL: function(a) { var d = a.children; return d && 0 !== d.length ? this.cL(d[d.length - 1]) : a.atlasIndex }, Bba: function(a) { var d = a.children; return d && 0 !== d.length ? this.Bba(d[d.length - 1]) : a.atlasIndex }, n7: function(a, d) { var e = a.parent, f = e.children, g = f.indexOf(a), h = null; 0 < g && g < b.TO && (h = f[g - 1]); return e === this ? 0 === g ? 0 : this.cL(h) + 1 : 0 === g ? 0 > d ? e.atlasIndex : e.atlasIndex + 1 : 0 > h.zIndex && 0 > d || 0 <= h.zIndex && 0 <= d ? this.cL(h) + 1 : e.atlasIndex + 1 }, TW: function(a) { this.kg = a }, sg: function(a, d) { this.H = void 0 === d ? a : { src: a, $: d } }, Gk: function() { return new b.Gc(this.H.src, this.H.$) }, lt: function(a, d) { b.assert(a, b.o.Z0); - 1 === this.m.indexOf(a) ? b.log(b.o.Y0) : d !== a.zIndex && b.e.prototype.lt.call(this, a, d) }, removeChild: function(a, d) { null != a && (-1 === this.m.indexOf(a) ? b.log(b.o.X0) : (this.yD(a), b.e.prototype.removeChild.call(this, a, d))) }, Cwa: function(a, d) { b.assert(a, b.o.hZ); a instanceof b.B ? (this.f.iU(), a.batchNode = this, a.atlasIndex = d, a.dirty = !0, a.ug()) : b.log(b.o.gZ) }, bW: function(a, d) { b.assert(a, b.o.fZ); a instanceof b.B ? (this.f.Vs(a, d), a.batchNode = this, a.atlasIndex = d, a.dirty = !0, a.ug(), this.f.wU(a, d)) : b.log(b.o.eZ) }, ea: function(a, d) { this.m.length = 0; this.Bf.length = 0; d = d || b.sb.VM; this.f.ea(a, d); return !0 }, lL: function(a, d) { a.batchNode = this; a.atlasIndex = d; a.dirty = !0; this.f.Vs(a, d); this.Bf.splice(d, 0, a); var e = d + 1, f = this.Bf; if (f && 0 < f.length) for (; e < f.length; e++) f[e].atlasIndex++; var f = a.children, g, h; if (f) for (e = 0, h = f.length || 0; e < h; e++)(g = f[e]) && this.lL(g, this.n7(g, g.zIndex)) }, appendChild: function(a) { this.kg = !0; a.batchNode = this; a.dirty = !0; this.Bf.push(a); var d = this.Bf.length - 1; a.atlasIndex = d; this.f.Vs(a, d); a = a.children; for (var d = 0, e = a.length || 0; d < e; d++) this.appendChild(a[d]) }, yD: function(a) { this.f.sx(a.atlasIndex); a.batchNode = null; var d = this.Bf, e = d.indexOf(a); if (-1 !== e) { d.splice(e, 1); for (var f = d.length; e < f; ++e) d[e].atlasIndex-- } if (a = a.children) for (d = 0, e = a.length || 0; d < e; d++) a[d] && this.yD(a[d]) }, xa: function() { return this.f.xa() }, Oa: function(a) { this.f.Oa(a) }, C: function(a, d, e) { b.assert(null != a, b.o.cZ); this.f.hW(a) && (d = null == d ? a.zIndex : d, e = null == e ? a.tag : e, b.e.prototype.C.call(this, a, d, e), this.appendChild(a)) }, pi: function(a) { var d = this.Bf; if (d && 0 < d.length) for (var e = 0, f = d.length; e < f; e++) d[e] && (d[e].batchNode = null); b.e.prototype.pi.call(this, a); this.Bf.length = 0; this.f.rx() }, Ne: function() { if (this.kg) { var a = this.m, d, e = 0, f = a.length, g; for (d = 1; d < f; d++) { var h = a[d], e = d - 1; for (g = a[e]; 0 <= e && (h.wc < g.wc || h.wc === g.wc && h.arrivalOrder < g.arrivalOrder);) a[e + 1] = g, e -= 1, g = a[e]; a[e + 1] = h } 0 < a.length && (this.Ki(a, b.e.Wh.Ne), this.f.CY(a)); this.kg = !1 } }, Ic: function() { return b.W === b.Jb ? new b.sb.n(this) : new b.sb.p(this) } }); r = b.sb.prototype; b.i(r, "texture", r.xa, r.Oa); b.i(r, "textureAtlas", r.bm, r.vt); b.i(r, "descendants", r.n9); b.sb.VM = 29; b.sb.create = function(a, d) { return new b.sb(a, d) }; b.sb.eK = b.sb.create; (function() { b.sb.n = function(a) { b.e.n.call(this, a); this.gc = this.O = null }; var a = b.sb.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.sb.n; a.iU = function() {}; a.hW = function(a) { return a instanceof b.B ? !0 : (b.log(b.o.cO), !1) }; a.ea = function(a) { this.O = this.gc = a }; a.Vs = function() {}; a.Qw = function() {}; a.sx = function() {}; a.rx = function() {}; a.xa = function() { return this.O }; a.Oa = function(a) { this.O = a; for (var e = this.k.m, f = 0; f < e.length; f++) e[f].Oa(a) }; a.CY = function(a) { for (var e = this.k.Bf.length = 0, f = a.length; e < f; e++) this.MB(a[e]) }; a.MB = function(a) { var e = this.k.Bf, f = a.children, g, h = f.length; for (g = 0; g < h; g++) if (0 > f[g].wc) e.push(f[g]); else break; for (e.push(a); g < h; g++) e.push(f[g]) }; a.bm = function() {}; a.vt = function() {}; a.wU = function(a, e) { this.k.m.splice(e, 0, a) } })(); (function() { b.sb.p = function(a) { b.e.p.call(this, a); this.cb = !0; this.Lb = null }; var a = b.sb.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.sb.p; a.hW = function(a) { return a instanceof b.B ? a.texture != this.xa() ? (b.log(b.o.c1), !1) : !0 : (b.log(b.o.cO), !1) }; a.Eb = function() { var a = this.k; 0 !== this.Lb.totalQuads && (this.za.jc(), this.za.Ug(this.Mc), a.Ki(a.m, b.e.Wh.ug), b.ji(a.H.src, a.H.$), this.Lb.MU()) }; a.Q = function(a) { var e = this.k; if (e.Ta) { e.Ga && e.Ga.f && (this.Zd = e.Ga.f.Zd + 1); var f = b.Ob; f.stack.push(f.top); this.G & b.e.V.la || this.transform(a); this.updateStatus(a); f.top = this.Mc; e.Ne(); b.oa.Ec(this); this.G = 0; f.top = f.stack.pop() } }; a.iU = function(a) { for (var e = this.Lb; a >= e.capacity || e.capacity === e.totalQuads;) this.Qw() }; a.Qw = function() { var a = this.Lb.capacity, e = Math.floor(4 * (a + 1) / 3); b.log(b.o.V0, a, e); this.Lb.KL(e) || b.log(b.o.W0) }; a.ea = function(a, e) { this.Lb = new b.Tj; this.Lb.ea(a, e); this.bi(); this.za = b.le.Dc(b.Sj) }; a.Vs = function(a, e) { var f = this.Lb; f.totalQuads >= f.capacity && this.Qw(); f.Vs(a.quad, e) }; a.sx = function(a) { this.Lb.sx(a) }; a.xa = function() { return this.Lb.texture }; a.Oa = function(a) { this.Lb.Oa(a); a && this.bi() }; a.rx = function() { this.Lb.rx() }; a.GB = function(a, e) { var f = this.k.Bf, g = this.Lb, h = g.quads, k = f[a], m = b.WO(h[a]); f[e].atlasIndex = a; f[a] = f[e]; g.aE(h[e], a); f[e] = k; g.aE(m, e) }; a.MB = function(a, e) { var f = 0, g = a.children; g && (f = g.length); var h = 0; if (0 === f) h = a.atlasIndex, a.atlasIndex = e, a.arrivalOrder = 0, h !== e && this.GB(h, e), e++; else { h = !0; 0 <= g[0].zIndex && (h = a.atlasIndex, a.atlasIndex = e, a.arrivalOrder = 0, h !== e && this.GB(h, e), e++, h = !1); for (f = 0; f < g.length; f++) { var k = g[f]; h && 0 <= k.zIndex && (h = a.atlasIndex, a.atlasIndex = e, a.arrivalOrder = 0, h !== e && this.GB(h, e), e++, h = !1); e = this.MB(k, e) } h && (h = a.atlasIndex, a.atlasIndex = e, a.arrivalOrder = 0, h !== e && this.GB(h, e), e++) } return e }; a.CY = function(a) { for (var e = 0, f = 0; f < a.length; f++) e = this.MB(a[f], e) }; a.bi = function() { if (!this.Lb.texture.Jk()) { var a = this.k.H; a.src = b.SRC_ALPHA; a.$ = b.ONE_MINUS_SRC_ALPHA } }; a.bm = function() { return this.Lb }; a.vt = function(a) { a !== this.Lb && (this.Lb = a) }; a.wU = function() {} })(); b.ZY = b.B.extend({ df: null, Ve: null, ctor: function() { b.B.prototype.ctor.call(this); var a = document.createElement("canvas"); a.width = a.height = 10; this.df = a; this.Ve = new b.nq(a.getContext("2d")); var d = new b.ja; d.jd(a); d.Tb(); this.Oa(d) }, Gma: function() { return this.Ve }, Fma: function() { return this.df }, WW: function(a, d) { void 0 === d && (d = a.height, a = a.width); var e = this.df; e.width = a; e.height = d; this.xa().Tb(); this.Fc(b.rect(0, 0, a, d), !1) } }); b.wh = b.sa.extend({ Rr: null, We: 0, is: null, ctor: function(a, d, e) { this.Rr = a || null; this.We = d || 0; this.is = e || null }, q: function() { var a = new b.wh; a.qg(this.Rr.q(), this.We, this.is); return a }, fC: function() { return b.q(this) }, copy: function() { var a = new b.wh; a.qg(this.Rr.q(), this.We, this.is); return a }, qg: function(a, d, e) { this.Rr = a; this.We = d; this.is = e; return !0 }, og: function() { return this.Rr }, zi: function(a) { this.Rr = a }, Vma: function() { return this.We }, Kta: function(a) { this.We = a }, dpa: function() { return this.is }, zva: function(a) { this.is = a } }); b.wh.create = function(a, d, e) { return new b.wh(a, d, e) }; b.Kj = b.sa.extend({ Xe: null, wl: 0, hp: !1, D: 0, We: 0, tk: 0, ctor: function(a, d, e) { this.Xe = []; if (void 0 === a) this.$V(null, 0); else { var f = a[0]; f && (f instanceof b.Se ? this.$V(a, d, e) : f instanceof b.wh && this.LC(a, d, e)) } }, qna: function() { return this.Xe }, Wta: function(a) { this.Xe = a }, HJ: function(a) { var d = new b.wh; d.qg(a, 1, null); this.Xe.push(d); this.tk++ }, Zja: function(a) { a = b.Xa.Vc(a); var d = b.rect(0, 0, 0, 0); d.width = a.width; d.height = a.height; a = new b.Se(a, d); this.HJ(a) }, $ja: function(a, d) { var e = new b.Se(a, d); this.HJ(e) }, LC: function(a, d, e) { b.ow(a, b.wh); this.We = d; this.wl = void 0 === e ? 1 : e; this.tk = 0; d = this.Xe; for (e = d.length = 0; e < a.length; e++) { var f = a[e]; d.push(f); this.tk += f.We } return !0 }, q: function() { var a = new b.Kj; a.LC(this.CP(), this.We, this.wl); a.Gx(this.hp); return a }, fC: function() { var a = new b.Kj; a.LC(this.CP(), this.We, this.wl); a.Gx(this.hp); return a }, CP: function() { for (var a = [], d = 0; d < this.Xe.length; d++) a.push(this.Xe[d].q()); return a }, copy: function() { return this.fC(null) }, Hna: function() { return this.wl }, jua: function(a) { this.wl = a }, Gx: function(a) { this.hp = a }, noa: function() { return this.hp }, Gs: function() { return this.tk * this.We }, Uma: function() { return this.We }, Jta: function(a) { this.We = a }, Voa: function() { return this.tk }, $V: function(a, d, e) { b.ow(a, b.Se); this.wl = void 0 === e ? 1 : e; this.We = d || 0; this.tk = 0; d = this.Xe; d.length = 0; if (a) { for (e = 0; e < a.length; e++) { var f = a[e], g = new b.wh; g.qg(f, 1, null); d.push(g) } this.tk += a.length } return !0 }, CD: function() {}, Ad: function() {} }); b.Kj.create = function(a, d, e) { return new b.Kj(a, d, e) }; b.Kj.Lka = b.Kj.create; b.nw = { Jq: {}, FJ: function(a, d) { this.Jq[d] = a }, Csa: function(a) { a && this.Jq[a] && delete this.Jq[a] }, wK: function(a) { return this.Jq[a] ? this.Jq[a] : null }, E2: function(a, d) { var e = a.animations; if (e) { var f = 1, g = a.properties; if (g) for (var f = null != g.format ? parseInt(g.format) : f, g = g.spritesheets, h = b.sh, k = b.path, m = 0; m < g.length; m++) h.IJ(k.qs(d, g[m])); switch (f) { case 1: this.k5(e); break; case 2: this.l5(e); break; default: b.log(b.o.e7) } } else b.log(b.o.d7) }, Rja: function(a) { b.assert(a, b.o.m7); var d = b.Z.sf(a); d ? this.E2(d, a) : b.log(b.o.l7) }, k5: function(a) { var d = b.sh, e; for (e in a) { var f = a[e], g = f.frames, f = parseFloat(f.delay) || 0, h = null; if (g) { for (var h = [], k = 0; k < g.length; k++) { var m = d.og(g[k]); if (m) { var n = new b.wh; n.qg(m, 1, null); h.push(n) } else b.log(b.o.g7, e, g[k]) } 0 === h.length ? b.log(b.o.h7, e) : (h.length !== g.length && b.log(b.o.i7, e), h = new b.Kj(h, f, 1), b.nw.FJ(h, e)) } else b.log(b.o.f7, e) } }, l5: function(a) { var d = b.sh, e; for (e in a) { var f = a[e], g = parseInt(f.loops), g = f.loop ? b.Ch : isNaN(g) ? 1 : g, h = f.restoreOriginalFrame && !0 == f.restoreOriginalFrame ? !0 : !1, k = f.frames; if (k) { for (var m = [], n = 0; n < k.length; n++) { var p = k[n], s = p.spriteframe, t = d.og(s); if (t) { var s = parseFloat(p.delayUnits) || 0, p = p.notification, v = new b.wh; v.qg(t, s, p); m.push(v) } else b.log(b.o.k7, e, s) } f = parseFloat(f.delayPerUnit) || 0; k = new b.Kj; k.LC(m, f, g); k.Gx(h); b.nw.FJ(k, e) } else b.log(b.o.j7, e) } }, Tm: function() { this.Jq = {} } }; b.Se = b.sa.extend({ Ja: null, Mg: null, Ff: null, ye: !1, Va: null, Rh: null, Ng: null, O: null, Yr: "", R: !1, ctor: function(a, d, e, f, g) { this.Ja = b.d(0, 0); this.Rh = b.d(0, 0); this.Mg = b.size(0, 0); this.ye = !1; this.Ng = b.size(0, 0); this.Yr = ""; this.O = null; this.R = !1; void 0 !== a && void 0 !== d && (void 0 === e || void 0 === f || void 0 === g ? this.ea(a, d) : this.ea(a, d, e, f, g)) }, Et: function() { return this.R }, ls: function(a, d) { this.addEventListener("load", a, d) }, v$: function() { var a = this.Ff; return b.rect(a.x, a.y, a.width, a.height) }, Jua: function(a) { this.Ff || (this.Ff = b.rect(0, 0, 0, 0)); this.Ff.x = a.x; this.Ff.y = a.y; this.Ff.width = a.width; this.Ff.height = a.height; this.Va = b.Qn(a) }, bqa: function() { return this.ye }, Mua: function(a) { this.ye = a }, dh: function() { var a = this.Va; return b.rect(a.x, a.y, a.width, a.height) }, SX: function(a) { this.Va || (this.Va = b.rect(0, 0, 0, 0)); this.Va.x = a.x; this.Va.y = a.y; this.Va.width = a.width; this.Va.height = a.height; this.Ff = b.qx(this.Va) }, g$: function() { return b.d(this.Rh) }, vua: function(a) { this.Rh.x = a.x; this.Rh.y = a.y; b.WH(this.Rh, this.Ja) }, Yna: function() { return b.size(this.Ng) }, yua: function(a) { this.Ng.width = a.width; this.Ng.height = a.height }, Iw: function() { return b.size(this.Mg) }, xua: function(a) { this.Mg.width = a.width; this.Mg.height = a.height }, xa: function() { if (this.O) return this.O; if ("" !== this.Yr) { var a = b.Xa.Vc(this.Yr); a && (this.R = a.R); return a } return null }, Oa: function(a) { if (this.O !== a) { var d = a.R; this.R = d; this.O = a; d || a.addEventListener("load", function(a) { this.R = !0; if (this.ye && b.W === b.Jb) { var d = a.Sa, d = b.B.n.yG(d, this.dh()), g = new b.ja; g.jd(d); g.Tb(); this.Oa(g); d = this.dh(); this.SX(b.rect(0, 0, d.width, d.height)) } d = this.Va; 0 === d.width && 0 === d.height && (d = a.width, a = a.height, this.Va.width = d, this.Va.height = a, this.Ff = b.qx(this.Va), this.Ng.width = this.Ff.width, this.Ng.height = this.Ff.height, this.Mg.width = d, this.Mg.height = a); this.dispatchEvent("load") }, this) } }, Js: function() { return b.d(this.Ja) }, Gj: function(a) { this.Ja.x = a.x; this.Ja.y = a.y }, q: function() { var a = new b.Se; a.ea(this.Yr, this.Ff, this.ye, this.Rh, this.Ng); a.Oa(this.O); return a }, fC: function() { var a = new b.Se; a.ea(this.Yr, this.Ff, this.ye, this.Rh, this.Ng); a.Oa(this.O); return a }, copy: function() { return this.fC() }, ea: function(a, d, e, f, g) { 2 === arguments.length && (d = b.qx(d)); f = f || b.d(0, 0); g = g || d; e = e || !1; b.Je(a) ? (this.O = null, this.Yr = a) : a instanceof b.ja && this.Oa(a); a = this.xa(); this.Ff = d; d = this.Va = b.Qn(d); if (a && a.url && a.R) { var h, k; e ? (h = d.x + d.height, k = d.y + d.width) : (h = d.x + d.width, k = d.y + d.height); h > a.KK() && b.error(b.o.jF, a.url); k > a.JK() && b.error(b.o.iF, a.url) } this.Rh.x = f.x; this.Rh.y = f.y; b.WH(f, this.Ja); this.Ng.width = g.width; this.Ng.height = g.height; b.US(g, this.Mg); this.ye = e; return !0 } }); b.zh.prototype.apply(b.Se.prototype); b.Se.create = function(a, d, e, f, g) { return new b.Se(a, d, e, f, g) }; b.Se.eK = b.Se.create; b.Se.Qia = function(a, d, e, f, g) { var h = new b.Se; h.O = a; h.Ff = d; h.Va = b.Qn(d); h.Rh.x = f.x; h.Rh.y = f.y; b.WH(h.Rh, h.Ja); h.Ng.width = g.width; h.Ng.height = g.height; b.US(h.Ng, h.Mg); h.ye = e; return h }; b.sh = { cP: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/, p2: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/, fj: {}, Ol: {}, ek: {}, oS: function(a) { return (a = this.p2.exec(a)) ? b.rect(parseFloat(a[1]), parseFloat(a[2]), parseFloat(a[3]), parseFloat(a[4])) : b.rect(0, 0, 0, 0) }, cS: function(a) { return (a = this.cP.exec(a)) ? b.d(parseFloat(a[1]), parseFloat(a[2])) : b.d(0, 0) }, UI: function(a) { return (a = this.cP.exec(a)) ? b.size(parseFloat(a[1]), parseFloat(a[2])) : b.size(0, 0) }, N3: function(a) { var d = b.Z.sf(a); b.assert(d, b.o.jY, a); b.Z.Ad(a); if (d.yr) return this.ek[a] = d; this.ek[a] = this.ZR(d); return this.ek[a] }, O3: function(a, d) { b.assert(d, b.o.jY, a); this.ek[a] = this.ZR(d); return this.ek[a] }, ZR: function(a) { var d = a.frames, e = a.metadata || a.meta; a = {}; var f = {}, g = 0; e && (g = e.format, g = 1 >= g.length ? parseInt(g) : g, f.maa = e.textureFileName || e.textureFileName || e.image); for (var h in d) { var k = d[h]; if (k) { e = {}; if (0 == g) { e.rect = b.rect(k.x, k.y, k.width, k.height); e.FD = !1; e.offset = b.d(k.offsetX, k.offsetY); var m = k.originalWidth, k = k.originalHeight; m && k || b.log(b.o.Dea); m = Math.abs(m); k = Math.abs(k); e.size = b.size(m, k) } else if (1 == g || 2 == g) e.rect = this.oS(k.frame), e.FD = k.rotated || !1, e.offset = this.cS(k.offset), e.size = this.UI(k.sourceSize); else if (3 == g) { var m = this.UI(k.spriteSize), n = this.oS(k.textureRect); m && (n = b.rect(n.x, n.y, m.width, m.height)); e.rect = n; e.FD = k.textureRotated || !1; e.offset = this.cS(k.spriteOffset); e.size = this.UI(k.spriteSourceSize); e.W6 = k.aliases } else m = k.frame, n = k.sourceSize, h = k.filename || h, e.rect = b.rect(m.x, m.y, m.w, m.h), e.FD = k.rotated || !1, e.offset = b.d(0, 0), e.size = b.size(n.w, n.h); a[h] = e } } return { yr: !0, frames: a, fD: f } }, Dia: function(a, d, e) { b.assert(a, b.o.kY); d && d.frames && (d = this.ek[a] || this.O3(a, d), this.FP(a, d, e)) }, FP: function(a, d, e) { var f = d.frames; d = d.fD; e ? e instanceof b.ja || (b.Je(e) ? e = b.Xa.Vc(e) : b.assert(0, b.o.Fea)) : e = b.Xa.Vc(b.path.qs(a, d.maa || ".png")); a = this.Ol; d = this.fj; for (var g in f) { var h = f[g], k = d[g]; if (!k) { k = new b.Se(e, h.rect, h.FD, h.offset, h.size); if (h = h.W6) for (var m = 0, n = h.length; m < n; m++) { var p = h[m]; a[p] && b.log(b.o.Eea, p); a[p] = g } b.W === b.Jb && k.ye && k.xa().R && (h = k.xa().Sa, h = b.B.n.yG(h, k.v$()), m = new b.ja, m.jd(h), m.Tb(), k.Oa(m), h = k.Va, k.SX(b.rect(0, 0, h.width, h.height))); d[g] = k } } }, IJ: function(a, d) { b.assert(a, b.o.kY); var e = this.ek[a] || b.Z.sf(a); e && e.frames && (e = this.ek[a] || this.N3(a), this.FP(a, e, d)) }, Lia: function(a) { a = a.frames; for (var d in a) this.fj[d] && b.log(b.o.Cea, d) }, HJ: function(a, d) { this.fj[d] = a }, Ksa: function() { this.fj = {}; this.Ol = {} }, Jsa: function(a) { a && (this.Ol[a] && delete this.Ol[a], this.fj[a] && delete this.fj[a]) }, Lsa: function(a) { var d = this.fj, e = this.Ol; if (a = this.ek[a]) { a = a.frames; for (var f in a) if (d[f]) { delete d[f]; for (var g in e) e[g] === f && delete e[g] } } }, Msa: function(a) { var d = this.fj, e = this.Ol, f; for (f in d) { var g = d[f]; if (g && g.xa() === a) { delete d[f]; for (var h in e) e[h] === f && delete e[h] } } }, og: function(a) { var d = this.fj[a]; if (!d) { var e = this.Ol[a]; e && ((d = this.fj[e.toString()]) || delete this.Ol[a]) } return d }, Tm: function() { this.fj = {}; this.Ol = {}; this.ek = {} } }; b.ts = { Cga: 0, Jha: 1, INT: 2, xga: 3, Rfa: 4, tv: 0, S4: 0, fJ: !1, FB: !1, dJ: !1, eJ: !1, gJ: !1, oja: 0, EH: 0, tz: "", hw: {}, yr: !1, rl: function() { var a = this.hw; a["cocos2d.x.version"] = b.xE; a["cocos2d.x.compiled_with_profiler"] = !1; a["cocos2d.x.compiled_with_gl_state_cache"] = b.Fi; this.yr = !0 }, Lna: function() { return this.tv }, Kna: function() { return this.S4 }, Mna: function() { return this.EH }, Sva: function() { return this.FB }, Tva: function() { return this.fJ }, Rva: function() { return !1 }, Uva: function() { return !1 }, Ova: function() { return !1 }, Pva: function() { return this.dJ }, Qva: function() { return this.eJ }, Vva: function() { return this.gJ }, rs: function(a) { return -1 < this.tz.indexOf(a) }, Os: function(a, d) { this.yr || this.rl(); var e = this.hw; return e[a] ? e[a] : d }, Pd: function(a, d) { this.hw[a] = d }, r8: function() { 0 === b.Fi && (b.log(""), b.log(b.o.J7), b.log("")) }, V8: function() { if (b.W !== b.Jb) { this.yr || this.rl(); var a = b.A, d = this.hw; d["gl.vendor"] = a.getParameter(a.VENDOR); d["gl.renderer"] = a.getParameter(a.RENDERER); d["gl.version"] = a.getParameter(a.VERSION); this.tz = ""; for (var e = a.getSupportedExtensions(), f = 0; f < e.length; f++) this.tz += e[f] + " "; this.tv = a.getParameter(a.MAX_TEXTURE_SIZE); d["gl.max_texture_size"] = this.tv; this.EH = a.getParameter(a.MAX_COMBINED_TEXTURE_IMAGE_UNITS); d["gl.max_texture_units"] = this.EH; this.fJ = this.rs("GL_IMG_texture_compression_pvrtc"); d["gl.supports_PVRTC"] = this.fJ; this.FB = !1; d["gl.supports_NPOT"] = this.FB; this.dJ = this.rs("GL_IMG_texture_format_BGRA888"); d["gl.supports_BGRA8888"] = this.dJ; this.eJ = this.rs("GL_EXT_discard_framebuffer"); d["gl.supports_discard_framebuffer"] = this.eJ; this.gJ = this.rs("vertex_array_object"); d["gl.supports_vertex_array_object"] = this.gJ; b.ss() } }, Qqa: function(a) { this.yr || this.rl(); var d = b.Z.sf(a); if (!d) throw "Please load the resource first : " + a; b.assert(d, b.o.L7, a); if (d = d.data) for (var e in d) this.hw[e] = d[e]; else b.log(b.o.K7, a) } }; b.Of = 0; b.fN = function(a) { b.Yw(b.Pj, a); var d = new b.j.ca; b.Yw(b.Oj, d); a.multiply(d) }; b.jb = b.sa.extend({ mja: !1, vv: !1, Ye: !1, fB: !1, rn: !1, Iq: 0, LH: 0, Fv: 0, Gq: 0, Gg: 1, $u: !1, Wm: 0, PG: 0, zg: null, Ag: null, Hg: null, nc: null, en: null, jk: null, RA: null, Vi: null, qk: null, iI: null, qd: null, Xe: 0, bw: 0, uI: 0, Oia: null, de: null, Cg: null, gA: null, IG: null, KG: null, JG: null, ctor: function() { var a = this; a.en = Date.now(); b.ua.GJ(b.pb.ly, function() { a.en = Date.now() }) }, T: function() { this.LH = this.Iq = 1 / b.a8; this.qk = []; this.Fv = b.jb.l0; this.iI = null; this.PG = this.Gq = 0; this.$u = !1; this.bw = this.Xe = 0; this.en = Date.now(); this.fB = this.Ye = !1; this.nc = b.size(0, 0); this.Vi = null; this.Gg = 1; this.de = new b.zq; b.zM ? (this.Cg = new b.zM, this.de.ot(this.Cg, b.zq.ru, !1)) : this.Cg = null; this.IG = new b.ko(b.jb.QZ); this.IG.setUserData(this); this.KG = new b.ko(b.jb.SZ); this.KG.setUserData(this); this.JG = new b.ko(b.jb.RZ); this.JG.setUserData(this); this.gA = new b.ko(b.jb.TZ); this.gA.setUserData(this); return !0 }, y7: function() { var a = Date.now(); this.vv ? (this.Wm = 0, this.vv = !1) : this.Wm = (a - this.en) / 1E3; 0 < b.pb.Ee[b.pb.xh.xw] && 0.2 < this.Wm && (this.Wm = 1 / 60); this.en = a }, mU: null, nU: null, p8: function() { var a = b.oa; this.y7(); this.Ye || (this.de.update(this.Wm), b.ua.dispatchEvent(this.JG)); this.Tm(); this.jk && this.zda(); this.cG && this.cG(); this.qd && (!0 === a.he ? (b.oa.jU(), this.qd.f.Zd = 0, this.qd.Q(), a.XW()) : !0 === a.la() && a.transform(), b.ua.dispatchEvent(this.KG)); this.RA && this.RA.Q(); this.$u && this.n6(); this.WF && this.WF(); a.Eb(b.A); b.ua.dispatchEvent(this.IG); this.bw++; this.$u && this.W2() }, cG: null, WF: null, end: function() { this.fB = !0 }, Pma: function() { return this.Gg }, Qna: function() { return this.RA }, Fa: function() { return b.size(this.nc) }, Nw: function() { return b.size(this.nc.width * this.Gg, this.nc.height * this.Gg) }, Ps: null, CC: null, Qs: null, pause: function() { this.Ye || (this.LH = this.Iq, this.iX(0.25), this.Ye = !0) }, $ra: function() { b.assert(this.qd, b.o.GZ); this.qk.pop(); var a = this.qk.length; 0 === a ? this.end() : (this.rn = !0, this.jk = this.qk[a - 1]) }, eca: function() { b.nw.Tm(); b.sh.Tm(); b.Xa.Tm() }, fca: function() { this.Jn().ifa(); b.ua && b.ua.Gb(!1); this.qd && (this.qd.eh(), this.qd.Pb(), this.qd.qf()); this.jk = this.qd = null; this.qk.length = 0; this.oY(); this.eca(); b.ss() }, gca: function(a) { b.assert(a, b.o.ZM); this.rn = !1; this.qk.push(a); this.jk = a }, GD: function(a) { b.assert(a, b.o.ZM); if (this.qd) { var d = this.qk.length; 0 === d ? (this.rn = !0, this.qk[d] = a) : (this.rn = !0, this.qk[d - 1] = a); this.jk = a } else this.gca(a), this.lY() }, Cj: function() { this.Ye && (this.iX(this.LH), (this.en = Date.now()) || b.log(b.o.IZ), this.Ye = !1, this.Wm = 0) }, Fta: function(a) { a !== this.Gg && (this.Gg = a, this.cr()) }, PL: null, Ita: function() {}, oua: function(a) { this.vv = a }, zda: function() { var a = !1, d = !1; b.ka && (a = this.qd ? this.qd instanceof b.ka : !1, d = this.jk ? this.jk instanceof b.ka : !1); if (!d) { if (d = this.qd) d.eh(), d.Pb(); this.rn && d && d.qf() } this.qd = this.jk; b.oa.he = !0; this.jk = null; a || null === this.qd || (this.qd.aa(), this.qd.wj()) }, rua: function(a) { this.RA = a }, Ew: function() { return this.iI }, st: function(a) { this.iI = a }, OD: null, Sn: null, bM: null, l$: null, Ls: null, hX: null, n6: function() { this.Xe++; this.Gq += this.Wm; this.zg && this.Ag && this.Hg ? (this.Gq > b.DZ && (this.Ag.string = this.uI.toFixed(3), this.PG = this.Xe / this.Gq, this.Gq = this.Xe = 0, this.zg.string = this.PG.toFixed(1), this.Hg.string = (0 | b.Of).toString()), this.zg.Q(), this.Ag.Q(), this.Hg.Q()) : this.cr(); b.Of = 0 }, dqa: function() { return this.rn }, qoa: function() { return this.qd }, Bma: function() { return this.Iq }, Npa: function() { return this.$u }, cda: function(a) { this.$u = a }, uoa: function() { return this.uI }, Tpa: function() { return this.vv }, Ypa: function() { return this.Ye }, Woa: function() { return this.bw }, asa: function() { this.KW(1) }, KW: function(a) { b.assert(this.qd, b.o.HZ); var d = this.qk, e = d.length; if (0 === e) this.end(); else if (!(a > e)) { for (; e > a;) { var f = d.pop(); f.running && (f.eh(), f.Pb()); f.qf(); e-- } this.jk = d[d.length - 1]; this.rn = !1 } }, Jn: function() { return this.de }, VX: function(a) { this.de !== a && (this.de = a) }, mC: function() { return this.Cg }, fX: function(a) { this.Cg !== a && (this.Cg = a) }, Wma: function() { return this.Wm }, cr: null, W2: function() { this.uI = (Date.now() - this.en) / 1E3 } }); b.jb.TZ = "director_projection_changed"; b.jb.QZ = "director_after_draw"; b.jb.SZ = "director_after_visit"; b.jb.RZ = "director_after_update"; b.KZ = b.jb.extend({ SC: !1, lY: function() { this.vv = !0; this.SC = !1 }, Cba: function() { this.fB ? (this.fB = !1, this.fca()) : this.SC || this.p8() }, oY: function() { this.SC = !0 }, iX: function(a) { this.Iq = a; this.SC || (this.oY(), this.lY()) } }); b.jb.dM = null; b.jb.ZU = !0; b.jb.aH = function() { b.jb.ZU && (b.jb.ZU = !1, b.jb.dM = new b.KZ, b.jb.dM.T()); return b.jb.dM }; b.a8 = 60; b.jb.EN = 0; b.jb.FN = 1; b.jb.k0 = 3; b.jb.l0 = b.jb.FN; b.W === b.Jb ? (r = b.jb.prototype, r.Sn = function(a) { this.Fv = a; b.ua.dispatchEvent(this.gA) }, r.PL = function() {}, r.OD = function(a) { this.nc.width = b.ab.width; this.nc.height = b.ab.height; this.Vi = a || b.view; b.ua && b.ua.Gb(!0) }, r.Tm = function() { var a = this.Vi.pf, d = b.A.getContext(); d.setTransform(1, 0, 0, 1, 0, 0); d.clearRect(-a.x, a.y, a.width, a.height) }, r.cr = function() { var a = 0, a = this.nc.width > this.nc.height ? 0 | this.nc.height / 320 * 24 : 0 | this.nc.width / 320 * 24; this.zg = new b.M("000.0", "Arial", a); this.Ag = new b.M("0.000", "Arial", a); this.Hg = new b.M("0000", "Arial", a); a = b.tE; this.Hg.I(this.Hg.width / 2 + a.x, 5 * this.Hg.height / 2 + a.y); this.Ag.I(this.Ag.width / 2 + a.x, 3 * this.Ag.height / 2 + a.y); this.zg.I(this.zg.width / 2 + a.x, this.zg.height / 2 + a.y) }, r.Ps = function() { return this.Fa() }, r.CC = function() { return b.d(0, 0) }) : (b.jb.or = new Image, b.$a(b.jb.or, "load", function() { b.jb.OQ = !0 }), b.or && (b.jb.or.src = b.or)); b.W === b.ya && function() { b.zga = b.sa.extend({ Bwa: function() {} }); var a = b.jb.prototype; a.Sn = function(a) { var e = this.nc; this.bM(); var f = this.Vi, g = f.pf.x / f.Wb, f = f.pf.y / f.Sc; switch (a) { case b.jb.EN: b.tj(b.Pj); b.Ws(); e = b.j.ca.dK(-g, e.width - g, -f, e.height - f, -1024, 1024); b.Xs(e); b.tj(b.Oj); b.Ws(); break; case b.jb.FN: var h = this.Qs(), k = new b.j.ca, m = new b.j.ca; b.tj(b.Pj); b.Ws(); k = b.j.ca.W7(e.width / e.height, 2 * h); b.Xs(k); b.tj(b.Oj); b.Ws(); m.sL(new b.j.Pa(-g + e.width / 2, -f + e.height / 2, h), new b.j.Pa(-g + e.width / 2, -f + e.height / 2, 0), new b.j.Pa(0, 1, 0)); b.Xs(m); break; case b.jb.k0: break; default: b.log(b.o.JZ) } this.Fv = a; b.ua.dispatchEvent(this.gA); b.QX(); b.oa.he = !0 }; a.PL = function(a) { var e = b.A; a ? (e.clearDepth(1), e.enable(e.DEPTH_TEST), e.depthFunc(e.LEQUAL)) : e.disable(e.DEPTH_TEST) }; a.OD = function(a) { this.nc.width = b.ab.width; this.nc.height = b.ab.height; this.Vi = a || b.view; a = b.ts; a.V8(); a.r8(); this.cr(); this.wX(); b.ua && b.ua.Gb(!0) }; a.Tm = function() { var a = b.A; a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT) }; a.cG = function() { b.Zw() }; a.WF = function() { b.Ys() }; a.cr = function() { if (!b.oe) this.h3(); else if (null != b.jb.OQ && !1 !== b.jb.OQ) { var a = new b.ja; a.jd(b.jb.or); a.Tb(); var e = b.view.BK().height / 320; 0 === e && (e = this.nc.height / 320); var f = new b.oe; f.FI(!0); f.je("00.0", a, 12, 32, "."); f.scale = e; this.zg = f; f = new b.oe; f.FI(!0); f.je("0.000", a, 12, 32, "."); f.scale = e; this.Ag = f; f = new b.oe; f.FI(!0); f.je("000", a, 12, 32, "."); f.scale = e; this.Hg = f; a = b.tE; this.Hg.I(a.x, 34 * e + a.y); this.Ag.I(a.x, 17 * e + a.y); this.zg.I(a) } }; a.h3 = function() { var a = 0, a = this.nc.width > this.nc.height ? 0 | this.nc.height / 320 * 24 : 0 | this.nc.width / 320 * 24; this.zg = new b.M("000.0", "Arial", a); this.Ag = new b.M("0.000", "Arial", a); this.Hg = new b.M("0000", "Arial", a); a = b.tE; this.Hg.I(this.Hg.width / 2 + a.x, 5 * this.Hg.height / 2 + a.y); this.Ag.I(this.Ag.width / 2 + a.x, 3 * this.Ag.height / 2 + a.y); this.zg.I(this.zg.width / 2 + a.x, this.zg.height / 2 + a.y) }; a.mU = function(a) { var e = new b.j.ca; b.fN(e); var f = e.inverse(), e = e.s[14] / e.s[15], g = this.Vi.BK(); a = new b.j.Pa(2 * a.x / g.width - 1, 1 - 2 * a.y / g.height, e); a.vY(f); return b.d(a.x, a.y) }; a.nU = function(a) { var e = new b.j.ca; b.fN(e); a = new b.j.Pa(a.x, a.y, 0); a.vY(e); e = this.Vi.BK(); return b.d(e.width * (0.5 * a.x + 0.5), e.height * (0.5 * -a.y + 0.5)) }; a.Ps = function() { return this.Vi.Ps() }; a.CC = function() { return this.Vi.CC() }; a.Qs = function() { return this.nc.height / 1.1566 }; a.bM = function() { var a = this.Vi; if (a) { var e = this.nc; a.lea(-a.pf.x / a.Wb, -a.pf.y / a.Sc, e.width, e.height) } }; a.l$ = function() { return this.Vi }; a.Ls = function() { return this.Fv }; a.hX = function(a) { a ? b.ji(b.Td, b.Sd) : b.ji(b.A.ONE, b.A.ZERO) }; a.wX = function() { this.hX(!0); this.PL(!1); this.Sn(this.Fv); b.A.clearColor(0, 0, 0, 1) } }(); b.Qt = b.sa.extend({ jr: null, kr: null, lr: null, zo: null, Ao: null, Bo: null, fs: null, gs: null, hs: null, Ra: !1, Fr: null, ctor: function() { this.Fr = new b.j.ca; this.restore() }, description: function() { return "\x3cCCCamera | center \x3d(" + this.zo + "," + this.Ao + "," + this.Bo + ")\x3e" }, qX: function(a) { this.Ra = a }, nL: function() { return this.Ra }, restore: function() { this.jr = this.kr = 0; this.lr = b.Qt.Qs(); this.fs = this.zo = this.Ao = this.Bo = 0; this.gs = 1; this.hs = 0; this.Fr.ie(); this.Ra = !1 }, rW: function() { this.Ra && (this.Fr.sL(new b.j.Pa(this.jr, this.kr, this.lr), new b.j.Pa(this.zo, this.Ao, this.Bo), new b.j.Pa(this.fs, this.gs, this.hs)), this.Ra = !1); b.Xs(this.Fr) }, zH: function(a) { this.Ra && (this.Fr.sL(new b.j.Pa(this.jr, this.kr, this.lr), new b.j.Pa(this.zo, this.Ao, this.Bo), new b.j.Pa(this.fs, this.gs, this.hs)), this.Ra = !1); a.multiply(this.Fr) }, Pta: function(a, d, e) { this.uX(a, d, e) }, uX: function(a, d, e) { this.jr = a; this.kr = d; this.lr = e; this.Ra = !0 }, yta: function(a, d, e) { this.Sca(a, d, e) }, Sca: function(a, d, e) { this.zo = a; this.Ao = d; this.Bo = e; this.Ra = !0 }, yva: function(a, d, e) { this.fea(a, d, e) }, fea: function(a, d, e) { this.fs = a; this.gs = d; this.hs = e; this.Ra = !0 }, kna: function() { return { x: this.jr, y: this.kr, z: this.lr } }, iV: function() { return { x: this.jr, y: this.kr, z: this.lr } }, Ima: function() { return { x: this.zo, y: this.Ao, z: this.Bo } }, eV: function() { return { x: this.zo, y: this.Ao, z: this.Bo } }, cpa: function() { return { x: this.fs, y: this.gs, z: this.hs } }, R$: function() { return { x: this.fs, y: this.gs, z: this.hs } }, zia: function() {} }); b.Qt.Qs = function() { return b.Dy }; b.Bha = b.ru + 1; b.mN = function(a, d, e, f) { this.next = null; this.mj = a; this.target = d; this.ht = e; this.paused = f; this.im = !1 }; b.gN = function(a, d, e, f) { this.list = a; this.ah = d; this.target = e; this.mj = null; this.HC = f }; b.g_ = b.upa = function(a, d, e, f, g, h, k) { this.Xf = a; this.target = d; this.Gt = e; this.vw = f; this.ww = g; this.paused = h; this.HC = k }; b.GF = b.sa.extend({ de: null, Bb: 0, oB: !1, gw: !1, sp: 0, kB: 0, Yu: 0, fk: 0, xna: function() { return this.fk }, setInterval: function(a) { this.fk = a }, dY: function(a, d, e) { this.Bb = -1; this.fk = a; this.Yu = e; this.gw = 0 < this.Yu; this.kB = d; this.oB = this.kB === b.Ch }, Xn: function() { return 0 }, cancel: function() { return 0 }, ctor: function() { this.de = null; this.Bb = -1; this.gw = this.oB = !1; this.fk = this.Yu = this.kB = this.sp = 0 }, update: function(a) { -1 === this.Bb ? this.sp = this.Bb = 0 : (this.Bb += a, this.oB && !this.gw ? this.Bb >= this.fk && (this.Xn(), this.Bb = 0) : (this.gw ? this.Bb >= this.Yu && (this.Xn(), this.Bb -= this.Yu, this.sp += 1, this.gw = !1) : this.Bb >= this.fk && (this.Xn(), this.Bb = 0, this.sp += 1), !this.oB && this.sp > this.kB && this.cancel())) } }); b.c2 = b.GF.extend({ Xb: null, qn: null, ctor: function() { this.qn = this.Xb = null }, zaa: function(a, d, e, f, g, h) { this.de = a; this.Xb = e; this.qn = d; this.dY(f, g, h); return !0 }, woa: function() { return this.qn }, Xn: function() { this.Xb && this.qn && this.Xb.call(this.qn, this.Bb) }, cancel: function() { this.de.tg(this.qn, this.Xb) } }); b.b2 = b.GF.extend({ Xb: null, Xd: null, CR: null, ctor: function() { this.Xd = this.Xb = null }, Sp: function(a, d, e, f, g, h, k) { this.de = a; this.Xb = e; this.Xd = d; this.CR = f; this.dY(g, h, k); return !0 }, Hma: function() { return this.Xd }, getKey: function() { return this.CR }, Xn: function() { this.Xd && this.Xd.call(this.Xb, this.Bb) }, cancel: function() { this.de.tg(this.Xd, this.Xb) } }); b.zq = b.sa.extend({ $v: 1, wk: null, vk: null, xk: null, ol: null, Kq: null, Ri: null, Ed: null, ak: !1, ew: !1, ctor: function() { this.$v = 1; this.wk = []; this.vk = []; this.xk = []; this.Ri = {}; this.ol = {}; this.Ed = null; this.ew = this.ak = !1; this.Kq = [] }, N5: function(a, d, e, f) { var g = this.Ri[d.ba]; if (g && g.ah) if (g.ah.ht !== e) { if (this.ew) { b.log("warning: you CANNOT change update priority in scheduled function"); g.ah.im = !1; g.ah.paused = f; return } this.Hj(d) } else { g.ah.im = !1; g.ah.paused = f; return } 0 === e ? this.M2(this.vk, a, d, f) : 0 > e ? this.gS(this.wk, a, d, e, f) : this.gS(this.xk, a, d, e, f) }, lI: function(a) { delete this.ol[a.target.ba]; b.ge(this.Kq, a); a.GF = null; a.target = null }, iB: function(a) { if (a = this.Ri[a.target.ba]) b.ge(a.list, a.ah), delete this.Ri[a.target.ba], a.ah = null, a.target = null }, gS: function(a, d, e, f, g) { d = new b.mN(d, e, f, g); if (a) { g = a.length - 1; for (var h = 0; h <= g && !(f < a[h].ht); h++); a.splice(h, 0, d) } else a = [], a.push(d); this.Ri[e.ba] = new b.gN(a, d, e); return a }, M2: function(a, d, e, f) { d = new b.mN(d, e, 0, f); a.push(d); this.Ri[e.ba] = new b.gN(a, d, e, null) }, fva: function(a) { this.$v = a }, Roa: function() { return this.$v }, update: function(a) { this.ew = !0; 1 !== this.$v && (a *= this.$v); var d, e, f, g; d = 0; e = this.wk; for (f = e.length; d < f; d++) g = e[d], g.paused || g.im || g.mj(a); d = 0; e = this.vk; for (f = e.length; d < f; d++) g = e[d], g.paused || g.im || g.mj(a); d = 0; e = this.xk; for (f = e.length; d < f; d++) g = e[d], g.paused || g.im || g.mj(a); f = this.Kq; for (d = 0; d < f.length; d++) { this.Ed = e = f[d]; this.ak = !1; if (!e.paused) for (e.Gt = 0; e.Gt < e.Xf.length; ++e.Gt) e.vw = e.Xf[e.Gt], e.ww = !1, e.vw.update(a), e.vw = null; this.ak && 0 === this.Ed.Xf.length && this.lI(this.Ed) } d = 0; for (e = this.wk; d < e.length;) g = e[d], g.im ? this.iB(g) : d++; d = 0; for (e = this.vk; d < e.length;) g = e[d], g.im ? this.iB(g) : d++; d = 0; for (e = this.xk; d < e.length;) g = e[d], g.im ? this.iB(g) : d++; this.ew = !1; this.Ed = null }, fta: function(a, d, e, f, g, h) { this.Dj(d, a, e, f, g, h, a.ba + "") }, Dj: function(a, d, e, f, g, h, k) { var m = !1; if ("function" !== typeof a) var n = a, m = !0; !1 === m ? 5 === arguments.length && (k = g, h = f, g = 0, f = b.Ch) : 4 === arguments.length && (h = f, f = b.Ch, g = 0); b.assert(d, b.o.P0); !1 === m && b.assert(k, "key should not be empty!"); var p = this.ol[d.ba]; p ? b.assert(p.paused === h, "") : (p = new b.g_(null, d, 0, null, null, h, null), this.Kq.push(p), this.ol[d.ba] = p); var s, t; if (null == p.Xf) p.Xf = []; else if (!1 === m) for (t = 0; t < p.Xf.length; t++) { if (s = p.Xf[t], a === s.Xd) { b.log(b.o.O0, s.fk.toFixed(4), e.toFixed(4)); s.fk = e; return } } else for (t = 0; t < p.Xf.length; ++t) if ((s = p.Xf[t]) && n === s.qn) { b.log("CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: %.4f to %.4f", s.fk, e); s.setInterval(e); return }!1 === m ? (s = new b.b2, s.Sp(this, a, d, k, e, f, g)) : (s = new b.c2, s.zaa(this, n, d, e, f, g)); p.Xf.push(s) }, ot: function(a, d, e) { this.N5(function(d) { a.update(d) }, a, d, e) }, l4: function(a, d) { switch (typeof a) { case "number": case "string": return a === d.getKey(); case "function": return a === d.Xd; default: return a === d.qn } }, tg: function(a, d) { if (d && a) { var e = this.ol[d.ba]; if (e) for (var f = e.Xf, g = 0, h = f.length; g < h; g++) { var k = f[g]; if (this.l4(a, k)) { k !== e.vw || e.ww || (e.ww = !0); f.splice(g, 1); e.Gt >= g && e.Gt--; 0 === f.length && (this.Ed === e ? this.ak = !0 : this.lI(e)); break } } } }, Hj: function(a) { null != a && (a = this.Ri[a.ba]) && (this.ew ? a.ah.im = !0 : this.iB(a.ah)) }, zY: function(a) { if (null != a) { var d = this.ol[a.ba]; d && (-1 < d.Xf.indexOf(d.vw) && !d.ww && (d.ww = !0), d.Xf.length = 0, this.Ed === d ? this.ak = !0 : this.lI(d)); this.Hj(a) } }, ifa: function() { this.qM(b.zq.ru) }, qM: function(a) { var d, e, f = this.Kq; for (d = 0; d < f.length; d++) e = f[d], this.zY(e.target); f = 0; if (0 > a) for (d = 0; d < this.wk.length;) f = this.wk.length, (e = this.wk[d]) && e.ht >= a && this.Hj(e.target), f == this.wk.length && d++; if (0 >= a) for (d = 0; d < this.vk.length;) f = this.vk.length, (e = this.vk[d]) && this.Hj(e.target), f == this.vk.length && d++; for (d = 0; d < this.xk.length;) f = this.xk.length, (e = this.xk[d]) && e.ht >= a && this.Hj(e.target), f == this.xk.length && d++ }, cqa: function(a, d) { b.assert(a, "Argument key must not be empty"); b.assert(d, "Argument target must be non-nullptr"); var e = this.Ri[d.ba]; if (!e) return !1; if (null != e.Xf) for (var e = e.Xf, f = 0; f < e.length; ++f) if (a === e[f].getKey()) return !0; return !1 }, Tra: function() { return this.Sba(b.zq.ru) }, Sba: function(a) { var d = [], e, f = this.Kq, g, h; g = 0; for (h = f.length; g < h; g++) if (e = f[g]) e.paused = !0, d.push(e.target); if (0 > a) for (g = 0; g < this.wk.length; g++)(e = this.wk[g]) && e.ht >= a && (e.paused = !0, d.push(e.target)); if (0 >= a) for (g = 0; g < this.vk.length; g++) if (e = this.vk[g]) e.paused = !0, d.push(e.target); for (g = 0; g < this.xk.length; g++)(e = this.xk[g]) && e.ht >= a && (e.paused = !0, d.push(e.target)); return d }, Fca: function(a) { if (a) for (var d = 0; d < a.length; d++) this.nm(a[d]) }, gt: function(a) { b.assert(a, b.o.M0); var d = this.ol[a.ba]; d && (d.paused = !0); if (a = this.Ri[a.ba]) a.ah.paused = !0 }, nm: function(a) { b.assert(a, b.o.N0); var d = this.ol[a.ba]; d && (d.paused = !1); if (a = this.Ri[a.ba]) a.ah.paused = !1 }, hqa: function(a) { b.assert(a, b.o.L0); var d = this.ol[a.ba]; return d ? d.paused : (a = this.Ri[a.ba]) ? a.ah.paused : !1 }, hta: function(a, d, e) { this.ot(a, d, e) }, wwa: function(a, d) { this.tg(d, a) }, xwa: function(a) { this.Hj(a) }, uwa: function(a) { this.tg(a.ba + "", a) }, pM: function() { this.qM(b.zq.ru) }, vwa: function(a) { this.qM(a) } }); b.zq.ru = -2147483648; b.tN = 2 * Math.PI; b.$M = b.sa.extend({ eG: [], A: null, ctor: function(a) { this.A = a }, m8: function(a, d) { d || (d = 1); var e = b.view.oc(), f = b.d(a.x * e, a.y * b.view.gd()), g = this.A.getContext(); g.beginPath(); g.arc(f.x, -f.y, d * e, 0, 2 * Math.PI, !1); g.closePath(); g.fill() }, n8: function(a, d, e) { if (null != a) { e || (e = 1); d = this.A.getContext(); var f = b.view.oc(), g = b.view.gd(); d.beginPath(); for (var h = 0, k = a.length; h < k; h++) d.arc(a[h].x * f, -a[h].y * g, e * f, 0, 2 * Math.PI, !1); d.closePath(); d.fill() } }, $l: function(a, d) { var e = this.A.getContext(), f = b.view.oc(), g = b.view.gd(); e.beginPath(); e.moveTo(a.x * f, -a.y * g); e.lineTo(d.x * f, -d.y * g); e.closePath(); e.stroke() }, nK: function(a, d) { this.$l(b.d(a.x, a.y), b.d(d.x, a.y)); this.$l(b.d(d.x, a.y), b.d(d.x, d.y)); this.$l(b.d(d.x, d.y), b.d(a.x, d.y)); this.$l(b.d(a.x, d.y), b.d(a.x, a.y)) }, NU: function(a, d, e) { a = [a, b.d(d.x, a.y), d, b.d(a.x, d.y)]; this.pK(a, 4, e) }, ei: function(a, d, e, f) { f = f || !1; if (null != a) { if (3 > a.length) throw Error("Polygon's point must greater than 2"); var g = a[0]; d = this.A.getContext(); var h = b.view.oc(), k = b.view.gd(); d.beginPath(); d.moveTo(g.x * h, -g.y * k); for (var g = 1, m = a.length; g < m; g++) d.lineTo(a[g].x * h, -a[g].y * k); e && d.closePath(); f ? d.fill() : d.stroke() } }, pK: function(a, d, e) { this.tt(e.r, e.g, e.b, e.a); this.ei(a, d, !0, !0) }, jK: function(a, d, e, f, g) { g = g || !1; f = this.A.getContext(); var h = b.view.oc(), k = b.view.gd(); f.beginPath(); f.arc(0 | a.x * h, 0 | -(a.y * k), d * h, -e, -(e - 2 * Math.PI), !1); g && f.lineTo(0 | a.x * h, 0 | -(a.y * k)); f.stroke() }, mK: function(a, d, e, f) { for (var g = this.eG, h = g.length = 0, k = 0; k < f; k++) g.push(b.d(Math.pow(1 - h, 2) * a.x + 2 * (1 - h) * h * d.x + h * h * e.x, Math.pow(1 - h, 2) * a.y + 2 * (1 - h) * h * d.y + h * h * e.y)), h += 1 / f; g.push(b.d(e.x, e.y)); this.ei(g, f + 1, !1, !1) }, kK: function(a, d, e, f, g) { for (var h = this.eG, k = h.length = 0, m = 0; m < g; m++) h.push(b.d(Math.pow(1 - k, 3) * a.x + 3 * Math.pow(1 - k, 2) * k * d.x + 3 * (1 - k) * k * k * e.x + k * k * k * f.x, Math.pow(1 - k, 3) * a.y + 3 * Math.pow(1 - k, 2) * k * d.y + 3 * (1 - k) * k * k * e.y + k * k * k * f.y)), k += 1 / g; h.push(b.d(f.x, f.y)); this.ei(h, g + 1, !1, !1) }, iK: function(a, d) { this.Jp(a, 0.5, d) }, Jp: function(a, d, e) { b.A.VD("rgba(255,255,255,1)"); var f = this.eG; f.length = 0; for (var g, h, k = 1 / a.length, m = 0; m < e + 1; m++) h = m / e, 1 === h ? (g = a.length - 1, h = 1) : (g = 0 | h / k, h = (h - k * g) / k), g = b.jga(b.Nd(a, g - 1), b.Nd(a, g - 0), b.Nd(a, g + 1), b.Nd(a, g + 2), d, h), f.push(g); this.ei(f, e + 1, !1, !1) }, drawImage: function(a, d, e, f, g) { var h = arguments.length, k = this.A.getContext(); switch (h) { case 2: k.drawImage(a, d.x, -(d.y + a.height)); break; case 3: k.drawImage(a, d.x, -(d.y + e.height), e.width, e.height); break; case 5: k.drawImage(a, d.x, d.y, e.width, e.height, f.x, -(f.y + g.height), g.width, g.height); break; default: throw Error("Argument must be non-nil"); } }, q8: function(a, d, e) { a = a || this.A; var f = a.getContext(); d *= b.view.oc(); e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b); a.Fj(e + ",1)"); var g = d / 10; f.beginPath(); f.moveTo(-d, d); f.lineTo(0, g); f.lineTo(d, d); f.lineTo(g, 0); f.lineTo(d, -d); f.lineTo(0, -g); f.lineTo(-d, -d); f.lineTo(-g, 0); f.lineTo(-d, d); f.closePath(); f.fill(); var h = f.createRadialGradient(0, 0, g, 0, 0, d); h.addColorStop(0, e + ", 1)"); h.addColorStop(0.3, e + ", 0.8)"); h.addColorStop(1, e + ", 0.0)"); a.Fj(h); f.beginPath(); f.arc(0, 0, d - g, 0, b.tN, !1); f.closePath(); f.fill() }, j8: function(a, d, e) { a = a || this.A; var f = a.getContext(); d *= b.view.oc(); e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b); var g = f.createRadialGradient(0, 0, d / 10, 0, 0, d); g.addColorStop(0, e + ", 1)"); g.addColorStop(0.3, e + ", 0.8)"); g.addColorStop(0.6, e + ", 0.4)"); g.addColorStop(1, e + ", 0.0)"); a.Fj(g); f.beginPath(); f.arc(0, 0, d, 0, b.tN, !1); f.closePath(); f.fill() }, fillText: function(a, d, e) { this.A.getContext().fillText(a, d, -e) }, tt: function(a, d, e, f) { this.A.Fj("rgba(" + a + "," + d + "," + e + "," + f / 255 + ")"); this.A.VD("rgba(" + a + "," + d + "," + e + "," + f / 255 + ")") }, Fda: function() {}, SL: function(a) { this.A.getContext().lineWidth = a * b.view.oc() } }); b.NZ = b.sa.extend({ A: null, mv: !1, Uc: null, Zj: -1, dg: null, ZH: -1, YH: -1, ctor: function(a) { null == a && (a = b.A); if (!a instanceof WebGLRenderingContext) throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext"; this.A = a; this.dg = new Float32Array([1, 1, 1, 1]) }, gm: function() { this.mv || (this.Uc = b.le.Dc(b.pF), this.Zj = this.A.getUniformLocation(this.Uc.Qp(), "u_color"), this.ZH = this.A.getUniformLocation(this.Uc.Qp(), "u_pointSize"), this.mv = !0) }, ola: function() { this.mv = !1 }, m8: function(a) { this.gm(); var d = this.A; this.Uc.jc(); this.Uc.Sk(); b.hd(b.qe); d.uniform4fv(this.Zj, this.dg); this.Uc.Kx(this.ZH, this.YH); var e = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, e); d.bufferData(d.ARRAY_BUFFER, new Float32Array([a.x, a.y]), d.STATIC_DRAW); d.vertexAttribPointer(b.Ib, 2, d.FLOAT, !1, 0, 0); d.drawArrays(d.POINTS, 0, 1); d.deleteBuffer(e); b.li() }, n8: function(a) { if (a && 0 !== a.length) { this.gm(); var d = this.A; this.Uc.jc(); this.Uc.Sk(); b.hd(b.qe); d.uniform4fv(this.Zj, this.dg); this.Uc.Kx(this.ZH, this.YH); var e = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, e); d.bufferData(d.ARRAY_BUFFER, this.cB(a), d.STATIC_DRAW); d.vertexAttribPointer(b.Ib, 2, d.FLOAT, !1, 0, 0); d.drawArrays(d.POINTS, 0, a.length); d.deleteBuffer(e); b.li() } }, cB: function(a) { for (var d = new Float32Array(2 * a.length), e = 0; e < a.length; e++) d[2 * e] = a[e].x, d[2 * e + 1] = a[e].y; return d }, $l: function(a, d) { this.gm(); var e = this.A; this.Uc.jc(); this.Uc.Sk(); b.hd(b.qe); e.uniform4fv(this.Zj, this.dg); var f = e.createBuffer(); e.bindBuffer(e.ARRAY_BUFFER, f); e.bufferData(e.ARRAY_BUFFER, this.cB([a, d ]), e.STATIC_DRAW); e.vertexAttribPointer(b.Ib, 2, e.FLOAT, !1, 0, 0); e.drawArrays(e.LINES, 0, 2); e.deleteBuffer(f); b.li() }, nK: function(a, d) { this.$l(b.d(a.x, a.y), b.d(d.x, a.y)); this.$l(b.d(d.x, a.y), b.d(d.x, d.y)); this.$l(b.d(d.x, d.y), b.d(a.x, d.y)); this.$l(b.d(a.x, d.y), b.d(a.x, a.y)) }, NU: function(a, d, e) { a = [a, b.d(d.x, a.y), d, b.d(a.x, d.y)]; this.pK(a, 4, e) }, ei: function(a, d, e) { this.gm(); d = this.A; this.Uc.jc(); this.Uc.Sk(); b.hd(b.qe); d.uniform4fv(this.Zj, this.dg); var f = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, f); d.bufferData(d.ARRAY_BUFFER, this.cB(a), d.STATIC_DRAW); d.vertexAttribPointer(b.Ib, 2, d.FLOAT, !1, 0, 0); e ? d.drawArrays(d.LINE_LOOP, 0, a.length) : d.drawArrays(d.LINE_STRIP, 0, a.length); d.deleteBuffer(f); b.li() }, pK: function(a, d, e) { this.gm(); e && this.tt(e.r, e.g, e.b, e.a); d = this.A; this.Uc.jc(); this.Uc.Sk(); b.hd(b.qe); d.uniform4fv(this.Zj, this.dg); e = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, e); d.bufferData(d.ARRAY_BUFFER, this.cB(a), d.STATIC_DRAW); d.vertexAttribPointer(b.Ib, 2, d.FLOAT, !1, 0, 0); d.drawArrays(d.TRIANGLE_FAN, 0, a.length); d.deleteBuffer(e); b.li() }, jK: function(a, d, e, f, g) { this.gm(); var h = 1; g && h++; var k = 2 * Math.PI / f; if (g = new Float32Array(2 * (f + 2))) { for (var m = 0; m <= f; m++) { var n = m * k, p = d * Math.sin(n + e) + a.y; g[2 * m] = d * Math.cos(n + e) + a.x; g[2 * m + 1] = p } g[2 * (f + 1)] = a.x; g[2 * (f + 1) + 1] = a.y; a = this.A; this.Uc.jc(); this.Uc.Sk(); b.hd(b.qe); a.uniform4fv(this.Zj, this.dg); d = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, d); a.bufferData(a.ARRAY_BUFFER, g, a.STATIC_DRAW); a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.LINE_STRIP, 0, f + h); a.deleteBuffer(d); b.li() } }, mK: function(a, d, e, f) { this.gm(); for (var g = new Float32Array(2 * (f + 1)), h = 0, k = 0; k < f; k++) g[2 * k] = Math.pow(1 - h, 2) * a.x + 2 * (1 - h) * h * d.x + h * h * e.x, g[2 * k + 1] = Math.pow(1 - h, 2) * a.y + 2 * (1 - h) * h * d.y + h * h * e.y, h += 1 / f; g[2 * f] = e.x; g[2 * f + 1] = e.y; a = this.A; this.Uc.jc(); this.Uc.Sk(); b.hd(b.qe); a.uniform4fv(this.Zj, this.dg); d = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, d); a.bufferData(a.ARRAY_BUFFER, g, a.STATIC_DRAW); a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.LINE_STRIP, 0, f + 1); a.deleteBuffer(d); b.li() }, kK: function(a, d, e, f, g) { this.gm(); for (var h = new Float32Array(2 * (g + 1)), k = 0, m = 0; m < g; m++) h[2 * m] = Math.pow(1 - k, 3) * a.x + 3 * Math.pow(1 - k, 2) * k * d.x + 3 * (1 - k) * k * k * e.x + k * k * k * f.x, h[2 * m + 1] = Math.pow(1 - k, 3) * a.y + 3 * Math.pow(1 - k, 2) * k * d.y + 3 * (1 - k) * k * k * e.y + k * k * k * f.y, k += 1 / g; h[2 * g] = f.x; h[2 * g + 1] = f.y; a = this.A; this.Uc.jc(); this.Uc.Sk(); b.hd(b.qe); a.uniform4fv(this.Zj, this.dg); d = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, d); a.bufferData(a.ARRAY_BUFFER, h, a.STATIC_DRAW); a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.LINE_STRIP, 0, g + 1); a.deleteBuffer(d); b.li() }, iK: function(a, d) { this.Jp(a, 0.5, d) }, Jp: function(a, d, e) { this.gm(); for (var f = new Float32Array(2 * (e + 1)), g, h, k = 1 / a.length, m = 0; m < e + 1; m++) h = m / e, 1 === h ? (g = a.length - 1, h = 1) : (g = 0 | h / k, h = (h - k * g) / k), g = b.cC(b.Nd(a, g - 1), b.Nd(a, g), b.Nd(a, g + 1), b.Nd(a, g + 2), d, h), f[2 * m] = g.x, f[2 * m + 1] = g.y; a = this.A; this.Uc.jc(); this.Uc.Sk(); b.hd(b.qe); a.uniform4fv(this.Zj, this.dg); d = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, d); a.bufferData(a.ARRAY_BUFFER, f, a.STATIC_DRAW); a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0); a.drawArrays(a.LINE_STRIP, 0, e + 1); a.deleteBuffer(d); b.li() }, tt: function(a, d, e, f) { this.dg[0] = a / 255; this.dg[1] = d / 255; this.dg[2] = e / 255; this.dg[3] = f / 255 }, Fda: function(a) { this.YH = a * b.Db() }, SL: function(a) { this.A.lineWidth && this.A.lineWidth(a) } }); b.Ea.cF = function() { var a = b.M.prototype; b.i(a, "color", a.rf, a.X); b.i(a, "opacity", a.bh, a.Hb); b.i(a, "string", a.am, a.Wc); b.i(a, "textAlign", a.A9, a.ida); b.i(a, "verticalAlign", a.V$, a.jea); b.i(a, "fontSize", a.DK, a.Bx); b.i(a, "fontName", a.CK, a.KD); b.i(a, "font", a.M3, a.V5); b.i(a, "boundingWidth", a.YG, a.R5); b.i(a, "boundingHeight", a.H3, a.Q5); b.i(a, "fillStyle", a.L3, a.vX); b.i(a, "strokeStyle", a.i4, a.h6); b.i(a, "lineWidth", a.V3, a.Z5); b.i(a, "shadowOffsetX", a.f4, a.d6); b.i(a, "shadowOffsetY", a.g4, a.e6); b.i(a, "shadowOpacity", a.h4, a.f6); b.i(a, "shadowBlur", a.e4, a.c6) }; b.M = b.B.extend({ Jc: null, cn: b.ro, Bn: b.Du, ec: null, fc: 0, Bc: "", XA: null, ee: !1, ze: null, Ml: 0, un: 0, mp: null, Yh: !1, pp: null, Pl: 0, Xr: null, aJ: 0, bJ: 0, Ir: !1, xH: null, Ma: "LabelTTF", kl: "normal", ll: "normal", rv: "normal", je: function(a, d, e, f, g, h) { a = a ? a + "" : ""; e = e || 16; f = f || b.size(0, 0); g = g || b.dz; h = h || b.Du; this.Cb = !1; this.Jc = b.size(f.width, f.height); this.ec = d || "Arial"; this.cn = g; this.Bn = h; this.fc = e; this.f.tn(this.ec, e, this.kl, this.ll); this.string = a; this.f.aj(); this.f.uk(); this.Tc(); return !0 }, Tc: function() { this.Ir = !0; this.f.va(b.e.V.Vn) }, ctor: function(a, d, e, f, g, h) { b.B.prototype.ctor.call(this); this.Jc = b.size(0, 0); this.cn = b.dz; this.Bn = b.Du; this.Cb = !1; this.ec = "Arial"; this.ee = !1; this.ze = b.d(0, 0); this.un = this.Ml = 0; this.Yh = !1; this.pp = b.color(255, 255, 255, 255); this.Pl = 0; this.Xr = b.color(255, 255, 255, 255); this.bJ = this.aJ = 0; this.Ir = !1; this.xH = []; this.f.aj(); this.R = !0; d && d instanceof fa ? this.Daa(a, d) : b.M.prototype.je.call(this, a, d, e, f, g, h) }, T: function() { return this.je(" ", this.ec, this.fc) }, description: function() { return "\x3ccc.LabelTTF | FontName \x3d" + this.ec + " FontSize \x3d " + this.fc.toFixed(1) + "\x3e" }, FK: function() { return !this.rv || this.rv.charAt ? this.f.$m : this.rv || this.f.$m }, iua: function(a) { this.rv = a }, am: function() { return this.Bc }, A9: function() { return this.cn }, V$: function() { return this.Bn }, $ma: function() { return b.size(this.Jc) }, DK: function() { return this.fc }, CK: function() { return this.ec }, Daa: function(a, d) { this.FT(d, !1); this.string = a; return !0 }, Zua: function(a) { a && this.FT(a, !0) }, Koa: function() { return this.u5(!1) }, z8: function(a, d, e, f) { null != a.r && null != a.g && null != a.b && null != a.a ? this.u3(a, d, e) : this.CQ(a, d, e, f) }, CQ: function(a, d, e, f) { e = e || 0.5; !1 === this.ee && (this.ee = !0); var g = this.ze; if (g && g.x !== a || g.Nf !== d) g.x = a, g.y = d; this.Ml !== e && (this.Ml = e); this.f.aj(); this.un !== f && (this.un = f); this.Tc() }, u3: function(a, d, e) { this.mp || (this.mp = b.color(255, 255, 255, 128)); this.mp.r = a.r; this.mp.g = a.g; this.mp.b = a.b; this.CQ(d.width || d.x || 0, d.height || d.y || 0, null != a.a ? a.a / 255 : 0.5, e) }, f4: function() { return this.ze.x }, d6: function(a) { !1 === this.ee && (this.ee = !0); this.ze.x !== a && (this.ze.x = a, this.Tc()) }, g4: function() { return this.ze.Nf }, e6: function(a) { !1 === this.ee && (this.ee = !0); this.ze.Nf !== a && (this.ze.Nf = a, this.Tc()) }, cja: function() { return b.d(this.ze.x, this.ze.y) }, Eja: function(a) { !1 === this.ee && (this.ee = !0); if (this.ze.x !== a.x || this.ze.y !== a.y) this.ze.x = a.x, this.ze.y = a.y, this.Tc() }, h4: function() { return this.Ml }, f6: function(a) { !1 === this.ee && (this.ee = !0); this.Ml !== a && (this.Ml = a, this.f.aj(), this.Tc()) }, e4: function() { return this.un }, c6: function(a) { !1 === this.ee && (this.ee = !0); this.un !== a && (this.un = a, this.Tc()) }, Yka: function() { this.ee && (this.ee = !1, this.Tc()) }, A8: function(a, d) { !1 === this.Yh && (this.Yh = !0); var e = this.pp; if (e.r !== a.r || e.g !== a.g || e.b !== a.b) e.r = a.r, e.g = a.g, e.b = a.b, this.f.aj(); this.Pl !== d && (this.Pl = d || 0); this.Tc() }, i4: function() { return this.pp }, h6: function(a) { !1 === this.Yh && (this.Yh = !0); var d = this.pp; if (d.r !== a.r || d.g !== a.g || d.b !== a.b) d.r = a.r, d.g = a.g, d.b = a.b, this.f.aj(), this.Tc() }, V3: function() { return this.Pl }, Z5: function(a) { !1 === this.Yh && (this.Yh = !0); this.Pl !== a && (this.Pl = a || 0, this.Tc()) }, Zka: function() { this.Yh && (this.Yh = !1, this.Tc()) }, vX: function(a) { var d = this.Xr; if (d.r !== a.r || d.g !== a.g || d.b !== a.b) d.r = a.r, d.g = a.g, d.b = a.b, this.f.aj(), this.Ir = !0 }, L3: function() { return this.Xr }, FT: function(a, d) { a.oma ? (this.Jc.width = a.boundingWidth, this.Jc.height = a.boundingHeight) : (this.Jc.width = 0, this.Jc.height = 0); this.cn = a.textAlign; this.Bn = a.verticalAlign; this.ec = a.fontName; this.fc = a.fontSize || 12; this.rv = a.lineHeight ? a.lineHeight : this.fc; this.f.tn(a); a.eY && this.z8(a.shadowOffsetX, a.shadowOffsetY, a.shadowOpacity, a.shadowBlur); a.iM && this.A8(a.strokeStyle, a.lineWidth); this.vX(a.fillStyle); d && this.f.uk(); var e = b.e.V; this.f.va(e.Ka | e.Ha | e.Vn) }, u5: function(a) { var d = new fa; a ? (d.fontSize = this.fc, d.boundingWidth = b.Db() * this.Jc.width, d.boundingHeight = b.Db() * this.Jc.height) : (d.fontSize = this.fc, d.boundingWidth = this.Jc.width, d.boundingHeight = this.Jc.height); d.fontName = this.ec; d.textAlign = this.cn; d.verticalAlign = this.Bn; if (this.Yh) { d.iM = !0; var e = this.pp; d.strokeStyle = b.color(e.r, e.g, e.b); d.lineWidth = this.Pl } else d.iM = !1; this.ee ? (d.eY = !0, d.shadowBlur = this.un, d.shadowOpacity = this.Ml, d.shadowOffsetX = (a ? b.Db() : 1) * this.ze.x, d.shadowOffsetY = (a ? b.Db() : 1) * this.ze.y) : d.ee = !1; a = this.Xr; d.fillStyle = b.color(a.r, a.g, a.b); return d }, Wc: function(a) { a = String(a); this.XA !== a && (this.XA = a + "", this.SB(), this.Tc(), this.f.va(b.e.V.la)) }, SB: function() { this.Bc && "" !== this.Bc || this.Bc === this.XA || (b.oa.he = !0); this.Bc = this.XA }, ida: function(a) { a !== this.cn && (this.cn = a, this.Tc()) }, jea: function(a) { a !== this.Bn && (this.Bn = a, this.Tc()) }, Lta: function(a, d) { var e; void 0 === d ? (e = a.width, d = a.height) : e = a; if (e !== this.Jc.width || d !== this.Jc.height) this.Jc.width = e, this.Jc.height = d, this.SB(), this.Tc() }, YG: function() { return this.Jc.width }, R5: function(a) { a !== this.Jc.width && (this.Jc.width = a, this.SB(), this.Tc()) }, H3: function() { return this.Jc.height }, Q5: function(a) { a !== this.Jc.height && (this.Jc.height = a, this.SB(), this.Tc()) }, Bx: function(a) { this.fc !== a && (this.fc = a, this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc()) }, KD: function(a) { this.ec && this.ec !== a && (this.ec = a, this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc()) }, M3: function() { return this.f.$G() }, V5: function(a) { if (a = b.M.y3.exec(a)) this.fc = parseInt(a[1]), this.ec = a[2], this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc() }, L: function() { this.Ir && this.f.TB(); return b.B.prototype.L.call(this) }, Nh: function() { this.Ir && this.f.TB(); return b.B.prototype.Nh.call(this) }, ml: function() { this.Ir && this.f.TB(); return b.B.prototype.ml.call(this) }, Fc: function(a, d, e) { b.B.prototype.Fc.call(this, a, d, e, !1) }, Ic: function() { return b.W === b.Jb ? new b.M.n(this) : new b.M.p(this) }, tn: function(a) { this.kl !== a && (this.kl = a, this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc()) }, $G: function() { return this.kl }, Aja: function(a) { this.ll !== a && (this.ll = a, this.f.tn(this.ec, this.fc, this.kl, this.ll), this.Tc()) }, Via: function() { return this.ll } }); b.assert(b.Ie(b.Ea.cF), b.o.Qj, "LabelTTFPropertyDefine.js"); b.Ea.cF(); delete b.Ea.cF; b.M.y3 = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/; b.M.create = function(a, d, e, f, g, h) { return new b.M(a, d, e, f, g, h) }; b.M.Mka = b.M.create; b.M.x2 = b.o2 ? b.Sj : b.mF; b.M.Yk = b.ic("div"); b.M.Yk.style.fontFamily = "Arial"; b.M.Yk.style.position = "absolute"; b.M.Yk.style.left = "-100px"; b.M.Yk.style.top = "-100px"; b.M.Yk.style.lineHeight = "normal"; document.body ? document.body.appendChild(b.M.Yk) : b.$a(window, "load", function() { this.removeEventListener("load", arguments.callee, !1); document.body.appendChild(b.M.Yk) }, !1); b.M.eP = function(a, d) { if (a instanceof fa) { var e = b.M.vz[ga(a)]; if (0 < e) return e; var f = b.M.Yk; f.innerHTML = "ajghl~!"; f.style.fontFamily = a.fontName; f.style.fontSize = a.fontSize + "px"; f.style.fontStyle = a.fontStyle; f.style.fontWeight = a.fontWeight; e = f.clientHeight; b.M.vz[ga(a)] = e; f.innerHTML = ""; return e } e = b.M.vz[a + "." + d]; if (0 < e) return e; f = b.M.Yk; f.innerHTML = "ajghl~!"; f.style.fontFamily = a; f.style.fontSize = d + "px"; e = f.clientHeight; b.M.vz[a + "." + d] = e; f.innerHTML = ""; return e }; b.M.vz = {}; b.M.x6 = ["left", "center", "right"]; b.M.y6 = ["top", "middle", "bottom"]; b.M.MY = !0; b.M.LT = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)/; b.M.fT = /^[!,.:;}\]%\?>\u3001\u2018\u201c\u300b\uff1f\u3002\uff0c\uff01]/; b.M.ER = /([a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+|\S)$/; b.M.DR = /[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]+$/; b.M.JQ = /^[a-zA-Z0-9\u00c4\u00d6\u00dc\u00e4\u00f6\u00fc\u00df\u00e9\u00e8\u00e7\u00e0\u00f9\u00ea\u00e2\u00ee\u00f4\u00fb]/; (function() { b.M.Re = function() { this.$m = 18; this.Jo = ""; this.TI = "rgba(128, 128, 128, 0.5)"; this.$I = ""; this.OG = "rgba(255,255,255,1)"; this.CA = this.BA = null; this.xH = []; this.gj = []; this.nv = !1 }; var a = b.M.Re.prototype; a.constructor = b.M.Re; a.bH = function() { if (this.CA) return this.CA; var a = this.k; if (!this.BA) { var e = b.ic("canvas"); e.width = 1; e.height = 1; var f = new b.ja; f.jd(e); a.Oa(f); this.BA = e } return this.CA = this.BA.getContext("2d") }; a.tn = function(a, e, f, g) { a instanceof fa ? (this.Jo = ga(a), this.$m = b.M.eP(a)) : (this.Jo = f + " " + g + " " + e + "px '" + a + "'", this.$m = b.M.eP(a, e)) }; a.$G = function() { return this.Jo }; a.Uia = function() { return this.$m }; a.uk = function() { this.G ^= this.G & b.e.V.Vn; var a = this.k, e = this.bH(), f = this.BA, g = a.U; if (0 === a.Bc.length) f.width = 1, f.height = g.height || 1, a.O && a.O.Tb(), a.Fc(b.rect(0, 0, 1, g.height)); else { e.font = this.Jo; this.TB(); var h = g.width, g = g.height, k = f.width === h && f.height === g; f.width = h; f.height = g; k && e.clearRect(0, 0, h, g); this.t3(e); a.O && a.O.Tb(); a.Fc(b.rect(0, 0, h, g)) } }; a.T4 = function() { this.bH().font = this.Jo }; a.Gr = function(a) { return this.bH().measureText(a).width }; a.TB = function() { var a = this.k, e = a.Jc.width, f, g, h = this.xH; h.length = 0; this.nv = !1; this.T4(); if (0 !== e) for (this.gj = a.Bc.split("\n"), f = 0; f < this.gj.length; f++) this.oG(this.gj, f, e); else for (this.gj = a.Bc.split("\n"), f = 0, g = this.gj.length; f < g; f++) h.push(this.Gr(this.gj[f])); 0 < this.gj.length && (this.nv = !0); g = f = 0; a.Yh && (f = g = 2 * a.Pl); if (a.ee) { var k = a.ze; f += 2 * Math.abs(k.x); g += 2 * Math.abs(k.y) } e = 0 === e ? this.nv ? b.size(Math.ceil(Math.max.apply(Math, h) + f), Math.ceil(this.$m * this.gj.length + g)) : b.size(Math.ceil(this.Gr(a.Bc) + f), Math.ceil(this.$m + g)) : 0 === a.Jc.height ? this.nv ? b.size(Math.ceil(e + f), Math.ceil(a.FK() * this.gj.length + g)) : b.size(Math.ceil(e + f), Math.ceil(a.FK() + g)) : b.size(Math.ceil(e + f), Math.ceil(a.Jc.height + g)); "normal" !== a.$G() && (e.width = Math.ceil(e.width + 0.3 * a.fc)); a.Na(e); a.aJ = f; a.bJ = g; a = a.Ih; this.Dg.x = 0.5 * f + (e.width - f) * a.x; this.Dg.y = 0.5 * g + (e.height - g) * a.y }; a.t3 = function(a) { if (a) { var e = this.k, f = e.aJ, g = e.bJ, h = e.U.height - g, k = e.Bn, m = e.cn, n = e.Pl; a.setTransform(1, 0, 0, 1, 0.5 * f, h + 0.5 * g); a.font !== this.Jo && (a.font = this.Jo); a.fillStyle = this.OG; var p = g = 0, s = e.Yh; s && (a.lineWidth = 2 * n, a.strokeStyle = this.$I); e.ee && (n = e.ze, a.shadowColor = this.TI, a.shadowOffsetX = n.x, a.shadowOffsetY = -n.y, a.shadowBlur = e.un); a.textBaseline = b.M.y6[k]; a.textAlign = b.M.x6[m]; var t = e.U.width - f, f = e.FK(), n = (f - this.$m) / 2, g = m === b.jO ? g + t : m === b.ro ? g + t / 2 : g + 0; if (this.nv) for (e = this.gj.length, k === b.YO ? p = f - 2 * n + h - f * e : k === b.LF && (p = (f - 2 * n) / 2 + (h - f * e) / 2), k = 0; k < e; k++) m = this.gj[k], t = -h + (f * k + n) + p, s && a.strokeText(m, g, t), a.fillText(m, g, t); else k !== b.YO && (p = k === b.Du ? p - h : p - 0.5 * h), s && a.strokeText(e.Bc, g, p), a.fillText(e.Bc, g, p) } }; a.oG = function(a, e, f) { var g = a[e], h = this.Gr(g); if (h > f && 1 < g.length) { for (var k = f / h * g.length | 0, m = g.substr(k), n = h - this.Gr(m), p, s = 0, t = 0; n > f && 100 > t++;) k *= f / n, k |= 0, m = g.substr(k), n = h - this.Gr(m); for (t = 0; n < f && 100 > t++;) m && (s = (p = b.M.LT.exec(m)) ? p[0].length : 1, p = m), k += s, m = g.substr(k), n = h - this.Gr(m); k -= s; 0 === k && (k = 1, p = p.substr(1)); f = g.substr(0, k); b.M.MY && b.M.fT.test(p || m) && (h = b.M.ER.exec(f), k -= h ? h[0].length : 0, p = g.substr(k), f = g.substr(0, k)); b.M.JQ.test(p) && (h = b.M.DR.exec(f)) && f !== h[0] && (k -= h[0].length, p = g.substr(k), f = g.substr(0, k)); a[e] = p || m; a.splice(e, 0, f) } } })(); (function() { b.M.n = function(a) { b.B.n.call(this, a); b.M.Re.call(this) }; b.M.n.prototype = Object.create(b.B.n.prototype); b.RC(b.M.Re.prototype, b.M.n.prototype); var a = b.M.n.prototype; a.constructor = b.M.n; a.updateStatus = function() { var a = b.e.V, e = this.G, f = e & a.Ka, g = e & a.Ha; f && this.Ae(); g && this.ci(); f ? this.xb() : e & a.Vn && this.uk(); this.G & a.la && (this.transform(P(this), !0), this.G ^= this.G & b.e.V.la) }; a.cd = function(a) { var e = b.e.V, f = this.G, g = a ? a.k : null; g && g.Zc && a.G & e.Ka && (f |= e.Ka); g && g.$c && a.G & e.Ha && (f |= e.Ha); a && a.G & e.la && (f |= e.la); var g = f & e.Ka, h = f & e.Ha; this.G = f; g && ja(this); h && ia(this); g ? this.xb() : f & e.Vn && this.uk(); f & e.la && this.transform(a) }; a.aj = function() { var a = this.Vb, e = this.k, f = e.mp || this.Vb, g = e.pp, h = e.Xr, k = a.r / 255, m = a.g / 255, a = a.b / 255; this.TI = "rgba(" + (0 | k * f.r) + "," + (0 | m * f.g) + "," + (0 | a * f.b) + "," + e.Ml + ")"; this.OG = "rgba(" + (0 | k * h.r) + "," + (0 | m * h.g) + "," + (0 | a * h.b) + ", 1)"; this.$I = "rgba(" + (0 | k * g.r) + "," + (0 | m * g.g) + "," + (0 | a * g.b) + ", 1)" }; a.xb = function() { this.aj(); this.uk() } })(); (function() { b.M.p = function(a) { b.B.p.call(this, a); b.M.Re.call(this); this.pm(b.le.Dc(b.M.x2)) }; var a = b.M.p.prototype = Object.create(b.B.p.prototype); b.RC(b.M.Re.prototype, a); a.constructor = b.M.p; a.aj = function() { this.va(b.e.V.Vn); var a = this.k, e = a.pp, f = a.Xr, g = a.mp || this.Vb; this.TI = "rgba(" + (0 | g.r) + "," + (0 | g.g) + "," + (0 | g.b) + "," + a.Ml + ")"; this.OG = "rgba(" + (0 | f.r) + "," + (0 | f.g) + "," + (0 | f.b) + ", 1)"; this.$I = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + ", 1)" }; a.updateStatus = function() { var a = b.e.V, e = this.G, f = e & a.Ka, g = e & a.Ha; f && this.Ae(); g && this.ci(); f || g ? (this.aj(), this.xb(), this.uk()) : e & a.Vn && this.uk(); this.G & a.la && (this.transform(P(this), !0), this.G ^= this.G & b.e.V.la) }; a.cd = function(a) { var e = b.e.V, f = this.G, g = a ? a.k : null; g && g.Zc && a.G & e.Ka && (f |= e.Ka); g && g.$c && a.G & e.Ha && (f |= e.Ha); a && a.G & e.la && (f |= e.la); var g = f & e.Ka, h = f & e.Ha; this.G = f; g && ja(this); h && ia(this); g || h ? (this.aj(), this.xb(), this.uk()) : f & e.Vn && this.uk(); this.transform(a) } })(); b.f_ = b.sa.extend({ Nc: null, target: null, Bp: 0, ng: null, Hp: !1, paused: !1, HC: null, ctor: function() { this.Nc = []; this.target = null; this.Bp = 0; this.ng = null; this.paused = this.Hp = !1; this.HC = null } }); b.zM = b.sa.extend({ Si: null, Lq: null, Ed: null, ak: !1, yja: function(a, d) { for (var e = 0; e < a.length; e++) if (d === a[e].target) return a[e]; return null }, ctor: function() { this.Si = {}; this.Lq = []; this.Ed = null; this.ak = !1 }, N6: function(a, d, e) { if (!a) throw "cc.ActionManager.addAction(): action must be non-null"; if (!d) throw "cc.ActionManager.addAction(): action must be non-null"; var f = this.Si[d.ba]; f || (f = new b.f_, f.paused = e, f.target = d, this.Si[d.ba] = f, this.Lq.push(f)); this.D2(f); f.Nc.push(a); a.N(d) }, xsa: function() { for (var a = this.Lq, d = 0; d < a.length; d++) { var e = a[d]; e && this.RW(e.target, !0) } }, RW: function(a, d) { if (null != a) { var e = this.Si[a.ba]; e && (-1 === e.Nc.indexOf(e.ng) || e.Hp || (e.Hp = !0), e.Nc.length = 0, this.Ed !== e || d ? this.BG(e) : this.ak = !0) } }, QW: function(a) { if (null != a) { var d = this.Si[a.originalTarget.ba]; if (d) for (var e = 0; e < d.Nc.length; e++) { if (d.Nc[e] === a) { d.Nc.splice(e, 1); break } } else b.log(b.o.TY) } }, pca: function(a, d) { a === b.kq && b.log(b.o.AM); b.assert(d, b.o.AM); var e = this.Si[d.ba]; if (e) for (var f = e.Nc.length, g = 0; g < f; ++g) { var h = e.Nc[g]; if (h && h.yC() === a && h.originalTarget === d) { this.y5(g, e); break } } }, lC: function(a, d) { a === b.kq && b.log(b.o.RY); var e = this.Si[d.ba]; if (e) { if (null != e.Nc) for (var f = 0; f < e.Nc.length; ++f) { var g = e.Nc[f]; if (g && g.yC() === a) return g } b.log(b.o.SY, a) } return null }, Hba: function(a) { return (a = this.Si[a.ba]) ? a.Nc ? a.Nc.length : 0 : 0 }, gt: function(a) { if (a = this.Si[a.ba]) a.paused = !0 }, nm: function(a) { if (a = this.Si[a.ba]) a.paused = !1 }, Sra: function() { for (var a = [], d = this.Lq, e = 0; e < d.length; e++) { var f = d[e]; f && !f.paused && (f.paused = !0, a.push(f.target)) } return a }, Fca: function(a) { if (a) for (var d = 0; d < a.length; d++) a[d] && this.nm(a[d]) }, gsa: function() { b.P.Jn().Hj(this) }, y5: function(a, d) { d.Nc[a] !== d.ng || d.Hp || (d.Hp = !0); d.Nc.splice(a, 1); d.Bp >= a && d.Bp--; 0 === d.Nc.length && (this.Ed === d ? this.ak = !0 : this.BG(d)) }, BG: function(a) { a && (delete this.Si[a.target.ba], b.ge(this.Lq, a), a.Nc = null, a.target = null) }, D2: function(a) { null == a.Nc && (a.Nc = []) }, update: function(a) { for (var d = this.Lq, e, f = 0; f < d.length; f++) { e = this.Ed = d[f]; if (!e.paused) for (e.Bp = 0; e.Bp < (e.Nc ? e.Nc.length : 0); e.Bp++) if (e.ng = e.Nc[e.Bp], e.ng) { e.Hp = !1; e.ng.step(a * (e.ng.Sv ? e.ng.mf : 1)); if (e.Hp) e.ng = null; else if (e.ng.mi()) { e.ng.stop(); var g = e.ng; e.ng = null; this.QW(g) } e.ng = null } this.ak && 0 === e.Nc.length && this.BG(e) } } }); b.j = b.j || {}; b.j.Ud = 0.015625; b.j.kd = function(a) { return a * a }; b.j.gka = function(a, d) { return a + b.j.Ud > d && a - b.j.Ud < d }; (function(a) { a.j.Eq = function(a, d) { void 0 === d ? (this.x = a.x, this.y = a.y) : (this.x = a || 0, this.y = d || 0) }; var d = a.j.Eq.prototype; d.fill = function(a, d) { this.x = a; this.y = d }; d.length = function() { return Math.sqrt(a.j.kd(this.x) + a.j.kd(this.y)) }; d.Zs = function() { return a.j.kd(this.x) + a.j.kd(this.y) }; d.normalize = function() { var a = 1 / this.length(); this.x *= a; this.y *= a; return this }; a.j.Eq.add = function(a, d, g) { a.x = d.x + g.x; a.y = d.y + g.y; return a }; d.add = function(a) { this.x += a.x; this.y += a.y; return this }; d.Gn = function(a) { return this.x * a.x + this.y * a.y }; a.j.Eq.gq = function(a, d, g) { a.x = d.x - g.x; a.y = d.y - g.y; return a }; d.gq = function(a) { this.x -= a.x; this.y -= a.y; return this }; d.transform = function(a) { var d = this.x, g = this.y; this.x = d * a.s[0] + g * a.s[3] + a.s[6]; this.y = d * a.s[1] + g * a.s[4] + a.s[7]; return this }; a.j.Eq.scale = function(a, d, g) { a.x = d.x * g; a.y = d.y * g; return a }; d.scale = function(a) { this.x *= a; this.y *= a; return this }; d.jC = function(d) { return this.x < d.x + a.j.Ud && this.x > d.x - a.j.Ud && this.y < d.y + a.j.Ud && this.y > d.y - a.j.Ud } })(b); (function(a) { a.Dqa = a.j.Pa = function(a, d, g) { a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z) : (this.x = a || 0, this.y = d || 0, this.z = g || 0) }; a.j.Iwa = function(d, f, g) { return new a.j.Pa(d, f, g) }; var d = a.j.Pa.prototype; d.fill = function(a, d, g) { a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z) : (this.x = a, this.y = d, this.z = g); return this }; d.length = function() { return Math.sqrt(a.j.kd(this.x) + a.j.kd(this.y) + a.j.kd(this.z)) }; d.Zs = function() { return a.j.kd(this.x) + a.j.kd(this.y) + a.j.kd(this.z) }; d.normalize = function() { var a = 1 / this.length(); this.x *= a; this.y *= a; this.z *= a; return this }; d.Ek = function(a) { var d = this.x, g = this.y, h = this.z; this.x = g * a.z - h * a.y; this.y = h * a.x - d * a.z; this.z = d * a.y - g * a.x }; d.Gn = function(a) { return this.x * a.x + this.y * a.y + this.z * a.z }; d.add = function(a) { this.x += a.x; this.y += a.y; this.z += a.z; return this }; d.gq = function(a) { this.x -= a.x; this.y -= a.y; this.z -= a.z; return this }; d.transform = function(a) { var d = this.x, g = this.y, h = this.z; a = a.s; this.x = d * a[0] + g * a[4] + h * a[8] + a[12]; this.y = d * a[1] + g * a[5] + h * a[9] + a[13]; this.z = d * a[2] + g * a[6] + h * a[10] + a[14]; return this }; d.pwa = function(a) { var d = this.x, g = this.y, h = this.z; a = a.s; this.x = d * a[0] + g * a[4] + h * a[8]; this.y = d * a[1] + g * a[5] + h * a[9]; this.z = d * a[2] + g * a[6] + h * a[10]; return this }; d.vY = function(d) { var f = new a.j.Eu(this.x, this.y, this.z, 1); f.transform(d); this.x = f.x / f.S; this.y = f.y / f.S; this.z = f.z / f.S }; d.scale = function(a) { this.x *= a; this.y *= a; this.z *= a; return this }; d.jC = function(d) { var f = a.j.Ud; return this.x < d.x + f && this.x > d.x - f && this.y < d.y + f && this.y > d.y - f && this.z < d.z + f && this.z > d.z - f }; d.Fpa = function(d) { d = d.s; var f = new a.j.Pa(this.x - d[12], this.y - d[13], this.z - d[14]); this.x = f.x * d[0] + f.y * d[1] + f.z * d[2]; this.y = f.x * d[4] + f.y * d[5] + f.z * d[6]; this.z = f.x * d[8] + f.y * d[9] + f.z * d[10]; return this }; d.Gpa = function(a) { var d = this.x, g = this.y, h = this.z; a = a.s; this.x = d * a[0] + g * a[1] + h * a[2]; this.y = d * a[4] + g * a[5] + h * a[6]; this.z = d * a[8] + g * a[9] + h * a[10]; return this }; d.Ze = function(a) { if (!a) return this; this.x = a.x; this.y = a.y; this.z = a.z; return this }; a.j.Pa.Rwa = function(a) { a.x = a.y = a.z = 0; return a }; d.bfa = function() { var a = new Float32Array(3); a[0] = this.x; a[1] = this.y; a[2] = this.z; return a } })(b); (function(a) { a.j.Eu = function(a, d, g, h) { a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z, this.S = a.S) : (this.x = a || 0, this.y = d || 0, this.z = g || 0, this.S = h || 0) }; a.Eqa = a.j.Eu; var d = a.j.Eu.prototype; d.fill = function(a, d, g, h) { a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z, this.S = a.S) : (this.x = a, this.y = d, this.z = g, this.S = h) }; d.add = function(a) { if (!a) return this; this.x += a.x; this.y += a.y; this.z += a.z; this.S += a.S; return this }; d.Gn = function(a) { return this.x * a.x + this.y * a.y + this.z * a.z + this.S * a.S }; d.length = function() { return Math.sqrt(a.j.kd(this.x) + a.j.kd(this.y) + a.j.kd(this.z) + a.j.kd(this.S)) }; d.Zs = function() { return a.j.kd(this.x) + a.j.kd(this.y) + a.j.kd(this.z) + a.j.kd(this.S) }; d.wba = function() { return this }; d.normalize = function() { var a = 1 / this.length(); this.x *= a; this.y *= a; this.z *= a; this.S *= a; return this }; d.scale = function(a) { this.normalize(); this.x *= a; this.y *= a; this.z *= a; this.S *= a; return this }; d.gq = function(a) { this.x -= a.x; this.y -= a.y; this.z -= a.z; this.S -= a.S }; d.transform = function(a) { var d = this.x, g = this.y, h = this.z, k = this.S; a = a.s; this.x = d * a[0] + g * a[4] + h * a[8] + k * a[12]; this.y = d * a[1] + g * a[5] + h * a[9] + k * a[13]; this.z = d * a[2] + g * a[6] + h * a[10] + k * a[14]; this.S = d * a[3] + g * a[7] + h * a[11] + k * a[15]; return this }; a.j.Eu.owa = function(d, f) { for (var g = [], h = 0; h < d.length; h++) { var k = new a.j.Eu(d[h]); k.transform(f); g.push(k) } return g }; d.jC = function(d) { var f = a.j.Ud; return this.x < d.x + f && this.x > d.x - f && this.y < d.y + f && this.y > d.y - f && this.z < d.z + f && this.z > d.z - f && this.S < d.S + f && this.S > d.S - f }; d.Ze = function(a) { this.x = a.x; this.y = a.y; this.z = a.z; this.S = a.S; return this }; d.bfa = function() { var a = new Float32Array(4); a[0] = this.x; a[1] = this.y; a[2] = this.z; a[3] = this.S; return a } })(b); (function(a) { a.j.s0 = function(d, e) { this.start = d || new a.j.Eq; this.dir = e || new a.j.Eq }; a.j.s0.prototype.fill = function(a, e, f, g) { this.start.x = a; this.start.y = e; this.dir.x = f; this.dir.y = g } })(b); var Float32Array = Float32Array || Array; (function(a) { a.j.Cd = function(a) { this.s = a && a.s ? new Float32Array(a.s) : new Float32Array(9) }; a.rqa = a.j.Cd; var d = a.j.Cd.prototype; d.fill = function(a) { var d = this.s; a = a.s; d[0] = a[0]; d[1] = a[1]; d[2] = a[2]; d[3] = a[3]; d[4] = a[4]; d[5] = a[5]; d[6] = a[6]; d[7] = a[7]; d[8] = a[8]; return this }; d.Q6 = function() { var a = this.s, d = a[0], e = a[1], k = a[2], m = a[3], n = a[4], p = a[5], s = a[6], t = a[7], v = a[8]; a[0] = n * v - p * t; a[1] = k * t - e * v; a[2] = e * p - k * n; a[3] = p * s - m * v; a[4] = d * v - k * s; a[5] = k * m - d * p; a[6] = m * t - n * s; a[8] = d * n - e * m }; d.ie = function() { var a = this.s; a[1] = a[2] = a[3] = a[5] = a[6] = a[7] = 0; a[0] = a[4] = a[8] = 1; return this }; var e = new a.j.Cd; d.inverse = function(a) { if (0 === a) return this; e.Ze(this); a = 1 / a; this.Q6(); this.Eba(a); return this }; d.gW = function() { var a = this.s; return 1 === a[0] && 0 === a[1] && 0 === a[2] && 0 === a[3] && 1 === a[4] && 0 === a[5] && 0 === a[6] && 0 === a[7] && 1 === a[8] }; d.ffa = function() { var a = this.s, d = a[1], e = a[2], k = a[5], m = a[6], n = a[7]; a[1] = a[3]; a[2] = m; a[3] = d; a[5] = n; a[6] = e; a[7] = k; return this }; d.Wka = function() { var a = this.s, d = a[0] * a[4] * a[8] + a[1] * a[5] * a[6] + a[2] * a[3] * a[7]; return d -= a[2] * a[4] * a[6] + a[0] * a[5] * a[7] + a[1] * a[3] * a[8] }; d.multiply = function(a) { var d = this.s, e = a.s; a = d[0]; var k = d[1], m = d[2], n = d[3], p = d[4], s = d[5], t = d[6], v = d[7], w = d[8], x = e[0], u = e[1], y = e[2], C = e[3], F = e[4], G = e[5], D = e[6], A = e[7], e = e[8]; d[0] = a * x + n * u + t * y; d[1] = k * x + p * u + v * y; d[2] = m * x + s * u + w * y; d[3] = m * x + s * u + w * y; d[4] = k * C + p * F + v * G; d[5] = m * C + s * F + w * G; d[6] = a * D + n * A + t * e; d[7] = k * D + p * A + v * e; d[8] = m * D + s * A + w * e; return this }; d.Eba = function(a) { var d = this.s; d[0] *= a; d[1] *= a; d[2] *= a; d[3] *= a; d[4] *= a; d[5] *= a; d[6] *= a; d[7] *= a; d[8] *= a }; a.j.Cd.$sa = function(d, e) { var h = Math.cos(e), k = Math.sin(e), m = new a.j.Cd, n = m.s; n[0] = h + d.x * d.x * (1 - h); n[1] = d.z * k + d.y * d.x * (1 - h); n[2] = -d.y * k + d.z * d.x * (1 - h); n[3] = -d.z * k + d.x * d.y * (1 - h); n[4] = h + d.y * d.y * (1 - h); n[5] = d.x * k + d.z * d.y * (1 - h); n[6] = d.y * k + d.x * d.z * (1 - h); n[7] = -d.x * k + d.y * d.z * (1 - h); n[8] = h + d.z * d.z * (1 - h); return m }; d.Ze = function(d) { if (this === d) return a.log("cc.math.Matrix3.assign(): current matrix equals matIn"), this; var e = this.s; d = d.s; e[0] = d[0]; e[1] = d[1]; e[2] = d[2]; e[3] = d[3]; e[4] = d[4]; e[5] = d[5]; e[6] = d[6]; e[7] = d[7]; e[8] = d[8]; return this }; d.jC = function(d) { if (this === d) return !0; var e = a.j.Ud, h = this.s; d = d.s; for (var k = 0; 9 > k; ++k) if (!(h[k] + e > d[k] && h[k] - e < d[k])) return !1; return !0 }; a.j.Cd.T7 = function(d) { var e = new a.j.Cd, h = e.s; h[0] = 1; h[1] = 0; h[2] = 0; h[3] = 0; h[4] = Math.cos(d); h[5] = Math.sin(d); h[6] = 0; h[7] = -Math.sin(d); h[8] = Math.cos(d); return e }; a.j.Cd.U7 = function(d) { var e = new a.j.Cd, h = e.s; h[0] = Math.cos(d); h[1] = 0; h[2] = -Math.sin(d); h[3] = 0; h[4] = 1; h[5] = 0; h[6] = Math.sin(d); h[7] = 0; h[8] = Math.cos(d); return e }; a.j.Cd.V7 = function(d) { var e = new a.j.Cd, h = e.s; h[0] = Math.cos(d); h[1] = -Math.sin(d); h[2] = 0; h[3] = Math.sin(d); h[4] = Math.cos(d); h[5] = 0; h[6] = 0; h[7] = 0; h[8] = 1; return e }; a.j.Cd.Jka = function(d) { var e = new a.j.Cd, h = e.s; h[0] = Math.cos(d); h[1] = Math.sin(d); h[2] = 0; h[3] = -Math.sin(d); h[4] = Math.cos(d); h[5] = 0; h[6] = 0; h[7] = 0; h[8] = 1; return e }; a.j.Cd.uU = function(d, e) { var h = new a.j.Cd; h.ie(); h.s[0] = d; h.s[4] = e; return h }; a.j.Cd.Fn = function(d, e) { var h = new a.j.Cd; h.ie(); h.s[6] = d; h.s[7] = e; return h }; a.j.Cd.S7 = function(d) { if (!d) return null; var e = new a.j.Cd, h = e.s; h[0] = 1 - 2 * (d.y * d.y + d.z * d.z); h[1] = 2 * (d.x * d.y - d.S * d.z); h[2] = 2 * (d.x * d.z + d.S * d.y); h[3] = 2 * (d.x * d.y + d.S * d.z); h[4] = 1 - 2 * (d.x * d.x + d.z * d.z); h[5] = 2 * (d.y * d.z - d.S * d.x); h[6] = 2 * (d.x * d.z - d.S * d.y); h[7] = 2 * (d.y * d.z + d.S * d.x); h[8] = 1 - 2 * (d.x * d.x + d.y * d.y); return e }; d.bta = function() { return a.j.Ii.bX(this).mM() } })(b); (function(a) { a.j.ca = function(a) { this.s = a && a.s ? new Float32Array(a.s) : new Float32Array(16) }; a.sqa = a.j.ca; var d = a.j.ca.prototype; d.fill = function(a) { for (var d = this.s, e = 0; 16 > e; e++) d[e] = a[e]; return this }; a.uqa = function(a) { var d = a.s; d[1] = d[2] = d[3] = d[4] = d[6] = d[7] = d[8] = d[9] = d[11] = d[12] = d[13] = d[14] = 0; d[0] = d[5] = d[10] = d[15] = 1; return a }; d.ie = function() { var a = this.s; a[1] = a[2] = a[3] = a[4] = a[6] = a[7] = a[8] = a[9] = a[11] = a[12] = a[13] = a[14] = 0; a[0] = a[5] = a[10] = a[15] = 1; return this }; d.get = function(a, d) { return this.s[a + 4 * d] }; d.set = function(a, d, e) { this.s[a + 4 * d] = e }; d.Dt = function(a, d, e, f) { var n = this.s, p = n[a + 4 * d]; n[a + 4 * d] = n[e + 4 * f]; n[e + 4 * f] = p }; a.j.ca.TQ = function(a, d) { var e, f = 0, n = 0, p, s, t, v, w = [0, 0, 0, 0], x = [0, 0, 0, 0], u = [0, 0, 0, 0]; for (e = 0; 4 > e; e++) { for (p = v = 0; 4 > p; p++) if (1 !== u[p]) for (s = 0; 4 > s; s++) 0 === u[s] && (t = Math.abs(a.get(p, s)), t >= v && (v = t, n = p, f = s));++u[f]; if (n !== f) { for (p = 0; 4 > p; p++) a.Dt(n, p, f, p); for (p = 0; 4 > p; p++) d.Dt(n, p, f, p) } x[e] = n; w[e] = f; if (0 === a.get(f, f)) return !1; s = 1 / a.get(f, f); a.set(f, f, 1); for (p = 0; 4 > p; p++) a.set(f, p, a.get(f, p) * s); for (p = 0; 4 > p; p++) d.set(f, p, d.get(f, p) * s); for (s = 0; 4 > s; s++) if (s !== f) { t = a.get(s, f); a.set(s, f, 0); for (p = 0; 4 > p; p++) a.set(s, p, a.get(s, p) - a.get(f, p) * t); for (p = 0; 4 > p; p++) d.set(s, p, a.get(s, p) - d.get(f, p) * t) } } for (p = 3; 0 <= p; p--) if (x[p] !== w[p]) for (s = 0; 4 > s; s++) a.Dt(s, x[p], s, w[p]); return !0 }; var e = (new a.j.ca).ie(); a.vqa = function(d, f) { var k = new a.j.ca(f); if (!1 === a.j.ca.TQ(k, e)) return null; d.Ze(k); return d }; d.inverse = function() { var d = new a.j.ca(this); return !1 === a.j.ca.TQ(d, e) ? null : d }; d.gW = function() { var a = this.s; return 1 === a[0] && 0 === a[1] && 0 === a[2] && 0 === a[3] && 0 === a[4] && 1 === a[5] && 0 === a[6] && 0 === a[7] && 0 === a[8] && 0 === a[9] && 1 === a[10] && 0 === a[11] && 0 === a[12] && 0 === a[13] && 0 === a[14] && 1 === a[15] }; d.ffa = function() { var a = this.s, d = a[1], e = a[2], f = a[3], n = a[6], p = a[7], s = a[8], t = a[9], v = a[11], w = a[12], x = a[13], u = a[14]; a[1] = a[4]; a[2] = s; a[3] = w; a[4] = d; a[6] = t; a[7] = x; a[8] = e; a[9] = n; a[11] = u; a[12] = f; a[13] = p; a[14] = v; return this }; a.YC = function(a, d, e) { a = a.s; var f = d.s, n = e.s; e = f[0]; d = f[1]; var p = f[2], s = f[3], t = f[4], v = f[5], w = f[6], x = f[7], u = f[8], y = f[9], C = f[10], F = f[11], G = f[12], D = f[13], A = f[14], f = f[15], E = n[0], z = n[1], B = n[2], I = n[3], J = n[4], H = n[5], O = n[6], S = n[7], Q = n[8], W = n[9], K = n[10], L = n[11], U = n[12], Y = n[13], Z = n[14], n = n[15]; a[0] = E * e + z * t + B * u + I * G; a[1] = E * d + z * v + B * y + I * D; a[2] = E * p + z * w + B * C + I * A; a[3] = E * s + z * x + B * F + I * f; a[4] = J * e + H * t + O * u + S * G; a[5] = J * d + H * v + O * y + S * D; a[6] = J * p + H * w + O * C + S * A; a[7] = J * s + H * x + O * F + S * f; a[8] = Q * e + W * t + K * u + L * G; a[9] = Q * d + W * v + K * y + L * D; a[10] = Q * p + W * w + K * C + L * A; a[11] = Q * s + W * x + K * F + L * f; a[12] = U * e + Y * t + Z * u + n * G; a[13] = U * d + Y * v + Z * y + n * D; a[14] = U * p + Y * w + Z * C + n * A; a[15] = U * s + Y * x + Z * F + n * f }; d.multiply = function(a) { var d = this.s, e = a.s; a = d[0]; var f = d[1], n = d[2], p = d[3], s = d[4], t = d[5], v = d[6], w = d[7], x = d[8], u = d[9], y = d[10], C = d[11], F = d[12], G = d[13], D = d[14], A = d[15], E = e[0], z = e[1], B = e[2], I = e[3], J = e[4], H = e[5], O = e[6], S = e[7], Q = e[8], W = e[9], K = e[10], L = e[11], U = e[12], Y = e[13], Z = e[14], e = e[15]; d[0] = E * a + z * s + B * x + I * F; d[1] = E * f + z * t + B * u + I * G; d[2] = E * n + z * v + B * y + I * D; d[3] = E * p + z * w + B * C + I * A; d[4] = J * a + H * s + O * x + S * F; d[5] = J * f + H * t + O * u + S * G; d[6] = J * n + H * v + O * y + S * D; d[7] = J * p + H * w + O * C + S * A; d[8] = Q * a + W * s + K * x + L * F; d[9] = Q * f + W * t + K * u + L * G; d[10] = Q * n + W * v + K * y + L * D; d[11] = Q * p + W * w + K * C + L * A; d[12] = U * a + Y * s + Z * x + e * F; d[13] = U * f + Y * t + Z * u + e * G; d[14] = U * n + Y * v + Z * y + e * D; d[15] = U * p + Y * w + Z * C + e * A; return this }; a.T9 = function() { var a = b.Aj.top.s, d = b.vj.top.s, e = new Float32Array(16); e[0] = a[0] * d[0] + a[4] * d[1] + a[8] * d[2] + a[12] * d[3]; e[1] = a[1] * d[0] + a[5] * d[1] + a[9] * d[2] + a[13] * d[3]; e[2] = a[2] * d[0] + a[6] * d[1] + a[10] * d[2] + a[14] * d[3]; e[3] = a[3] * d[0] + a[7] * d[1] + a[11] * d[2] + a[15] * d[3]; e[4] = a[0] * d[4] + a[4] * d[5] + a[8] * d[6] + a[12] * d[7]; e[5] = a[1] * d[4] + a[5] * d[5] + a[9] * d[6] + a[13] * d[7]; e[6] = a[2] * d[4] + a[6] * d[5] + a[10] * d[6] + a[14] * d[7]; e[7] = a[3] * d[4] + a[7] * d[5] + a[11] * d[6] + a[15] * d[7]; e[8] = a[0] * d[8] + a[4] * d[9] + a[8] * d[10] + a[12] * d[11]; e[9] = a[1] * d[8] + a[5] * d[9] + a[9] * d[10] + a[13] * d[11]; e[10] = a[2] * d[8] + a[6] * d[9] + a[10] * d[10] + a[14] * d[11]; e[11] = a[3] * d[8] + a[7] * d[9] + a[11] * d[10] + a[15] * d[11]; e[12] = a[0] * d[12] + a[4] * d[13] + a[8] * d[14] + a[12] * d[15]; e[13] = a[1] * d[12] + a[5] * d[13] + a[9] * d[14] + a[13] * d[15]; e[14] = a[2] * d[12] + a[6] * d[13] + a[10] * d[14] + a[14] * d[15]; e[15] = a[3] * d[12] + a[7] * d[13] + a[11] * d[14] + a[15] * d[15]; return e }; a.tqa = function(d, e) { if (d === e) return a.log("cc.kmMat4Assign(): pOut equals pIn"), d; var f = d.s, m = e.s; f[0] = m[0]; f[1] = m[1]; f[2] = m[2]; f[3] = m[3]; f[4] = m[4]; f[5] = m[5]; f[6] = m[6]; f[7] = m[7]; f[8] = m[8]; f[9] = m[9]; f[10] = m[10]; f[11] = m[11]; f[12] = m[12]; f[13] = m[13]; f[14] = m[14]; f[15] = m[15]; return d }; d.Ze = function(d) { if (this === d) return a.log("cc.mat.Matrix4.assignFrom(): mat4 equals current matrix"), this; var e = this.s; d = d.s; e[0] = d[0]; e[1] = d[1]; e[2] = d[2]; e[3] = d[3]; e[4] = d[4]; e[5] = d[5]; e[6] = d[6]; e[7] = d[7]; e[8] = d[8]; e[9] = d[9]; e[10] = d[10]; e[11] = d[11]; e[12] = d[12]; e[13] = d[13]; e[14] = d[14]; e[15] = d[15]; return this }; d.jC = function(d) { if (this === d) return a.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0; var e = this.s; d = d.s; for (var f = a.j.Ud, m = 0; 16 > m; m++) if (!(e[m] + f > d[m] && e[m] - f < d[m])) return !1; return !0 }; a.j.ca.T7 = function(d, e) { e = e || new a.j.ca; var f = e.s; f[0] = 1; f[3] = f[2] = f[1] = 0; f[4] = 0; f[5] = Math.cos(d); f[6] = Math.sin(d); f[7] = 0; f[8] = 0; f[9] = -Math.sin(d); f[10] = Math.cos(d); f[11] = 0; f[14] = f[13] = f[12] = 0; f[15] = 1; return e }; a.j.ca.U7 = function(d, e) { e = e || new a.j.ca; var f = e.s; f[0] = Math.cos(d); f[1] = 0; f[2] = -Math.sin(d); f[3] = 0; f[7] = f[6] = f[4] = 0; f[5] = 1; f[8] = Math.sin(d); f[9] = 0; f[10] = Math.cos(d); f[11] = 0; f[14] = f[13] = f[12] = 0; f[15] = 1; return e }; a.j.ca.V7 = function(d, e) { e = e || new a.j.ca; var f = e.s; f[0] = Math.cos(d); f[1] = Math.sin(d); f[3] = f[2] = 0; f[4] = -Math.sin(d); f[5] = Math.cos(d); f[7] = f[6] = 0; f[11] = f[9] = f[8] = 0; f[10] = 1; f[14] = f[13] = f[12] = 0; f[15] = 1; return e }; a.j.ca.Ika = function(d, e, f, m) { m = m || new a.j.ca; var n = Math.cos(d); d = Math.sin(d); var p = Math.cos(e); e = Math.sin(e); var s = Math.cos(f); f = Math.sin(f); var t = d * e, v = n * e, w = m.s; w[0] = p * s; w[4] = p * f; w[8] = -e; w[1] = t * s - n * f; w[5] = t * f + n * s; w[9] = d * p; w[2] = v * s + d * f; w[6] = v * f - d * s; w[10] = n * p; w[3] = w[7] = w[11] = 0; w[15] = 1; return m }; a.j.ca.S7 = function(d, e) { e = e || new a.j.ca; var f = e.s; f[0] = 1 - 2 * (d.y * d.y + d.z * d.z); f[1] = 2 * (d.x * d.y + d.z * d.S); f[2] = 2 * (d.x * d.z - d.y * d.S); f[3] = 0; f[4] = 2 * (d.x * d.y - d.z * d.S); f[5] = 1 - 2 * (d.x * d.x + d.z * d.z); f[6] = 2 * (d.z * d.y + d.x * d.S); f[7] = 0; f[8] = 2 * (d.x * d.z + d.y * d.S); f[9] = 2 * (d.y * d.z - d.x * d.S); f[10] = 1 - 2 * (d.x * d.x + d.y * d.y); f[11] = 0; f[14] = f[13] = f[12] = 0; f[15] = 1; return e }; a.j.ca.Kka = function(d, e, f) { f = f || new a.j.ca; var m = f.s; d = d.s; m[0] = d[0]; m[1] = d[1]; m[2] = d[2]; m[3] = 0; m[4] = d[3]; m[5] = d[4]; m[6] = d[5]; m[7] = 0; m[8] = d[6]; m[9] = d[7]; m[10] = d[8]; m[11] = 0; m[12] = e.x; m[13] = e.y; m[14] = e.z; m[15] = 1; return f }; a.j.ca.uU = function(d, e, f, m) { m = m || new a.j.ca; var n = m.s; n[0] = d; n[5] = e; n[10] = f; n[15] = 1; n[1] = n[2] = n[3] = n[4] = n[6] = n[7] = n[8] = n[9] = n[11] = n[12] = n[13] = n[14] = 0; return m }; a.Aqa = function(a, d, e, f) { a.s[0] = a.s[5] = a.s[10] = a.s[15] = 1; a.s[1] = a.s[2] = a.s[3] = a.s[4] = a.s[6] = a.s[7] = a.s[8] = a.s[9] = a.s[11] = 0; a.s[12] = d; a.s[13] = e; a.s[14] = f; return a }; a.j.ca.Fn = function(d, e, f, m) { m = m || new a.j.ca; m.ie(); m.s[12] = d; m.s[13] = e; m.s[14] = f; return m }; d.bpa = function() { var d = this.s; return (new a.j.Pa(d[4], d[5], d[6])).normalize() }; d.poa = function() { var d = this.s; return (new a.j.Pa(d[0], d[1], d[2])).normalize() }; d.ona = function() { var d = this.s; return (new a.j.Pa(d[8], d[9], d[10])).normalize() }; a.yqa = function(d, e, f, m, n) { var p = a.Md(e / 2); e = n - m; var s = Math.sin(p); if (0 === e || 0 === s || 0 === f) return null; p = Math.cos(p) / s; d.ie(); d.s[0] = p / f; d.s[5] = p; d.s[10] = -(n + m) / e; d.s[11] = -1; d.s[14] = -2 * m * n / e; d.s[15] = 0; return d }; a.j.ca.W7 = function(d, e) { var f = a.Md(30), m = e - 0.1, n = Math.sin(f); if (0 === m || 0 === n || 0 === d) return null; var f = Math.cos(f) / n, n = new a.j.ca, p = n.s; n.ie(); p[0] = f / d; p[5] = f; p[10] = -(e + 0.1) / m; p[11] = -1; p[14] = -0.2 * e / m; p[15] = 0; return n }; a.xqa = function(a, d, e, f, n, p, s) { a.ie(); a.s[0] = 2 / (e - d); a.s[5] = 2 / (n - f); a.s[10] = -2 / (s - p); a.s[12] = -((e + d) / (e - d)); a.s[13] = -((n + f) / (n - f)); a.s[14] = -((s + p) / (s - p)); return a }; a.j.ca.dK = function(d, e, f, m, n, p) { var s = new a.j.ca, t = s.s; s.ie(); t[0] = 2 / (e - d); t[5] = 2 / (m - f); t[10] = -2 / (p - n); t[12] = -((e + d) / (e - d)); t[13] = -((m + f) / (m - f)); t[14] = -((p + n) / (p - n)); return s }; a.wqa = function(d, e, f, m) { f = new a.j.Pa(f); var n = new a.j.Pa(m); f.gq(e); f.normalize(); n.normalize(); m = new a.j.Pa(f); m.Ek(n); m.normalize(); n = new a.j.Pa(m); n.Ek(f); m.normalize(); d.ie(); d.s[0] = m.x; d.s[4] = m.y; d.s[8] = m.z; d.s[1] = n.x; d.s[5] = n.y; d.s[9] = n.z; d.s[2] = -f.x; d.s[6] = -f.y; d.s[10] = -f.z; e = a.j.ca.Fn(-e.x, -e.y, -e.z); d.multiply(e); return d }; var f = new a.j.ca; d.sL = function(d, e, k) { e = new a.j.Pa(e); var m = new a.j.Pa(k); k = this.s; e.gq(d); e.normalize(); m.normalize(); var n = new a.j.Pa(e); n.Ek(m); n.normalize(); m = new a.j.Pa(n); m.Ek(e); n.normalize(); this.ie(); k[0] = n.x; k[4] = n.y; k[8] = n.z; k[1] = m.x; k[5] = m.y; k[9] = m.z; k[2] = -e.x; k[6] = -e.y; k[10] = -e.z; f = a.j.ca.Fn(-d.x, -d.y, -d.z, f); this.multiply(f) }; a.zqa = function(d, e, f) { var m = Math.cos(f); f = Math.sin(f); e = new a.j.Pa(e); e.normalize(); d.s[0] = m + e.x * e.x * (1 - m); d.s[1] = e.z * f + e.y * e.x * (1 - m); d.s[2] = -e.y * f + e.z * e.x * (1 - m); d.s[3] = 0; d.s[4] = -e.z * f + e.x * e.y * (1 - m); d.s[5] = m + e.y * e.y * (1 - m); d.s[6] = e.x * f + e.z * e.y * (1 - m); d.s[7] = 0; d.s[8] = e.y * f + e.x * e.z * (1 - m); d.s[9] = -e.x * f + e.y * e.z * (1 - m); d.s[10] = m + e.z * e.z * (1 - m); d.s[11] = 0; d.s[12] = 0; d.s[13] = 0; d.s[14] = 0; d.s[15] = 1; return d }; a.j.ca.R7 = function(d, e, f) { f = f || new a.j.ca; var m = this.s, n = Math.cos(e); e = Math.sin(e); d = new a.j.Pa(d); d.normalize(); m[0] = n + d.x * d.x * (1 - n); m[1] = d.z * e + d.y * d.x * (1 - n); m[2] = -d.y * e + d.z * d.x * (1 - n); m[3] = 0; m[4] = -d.z * e + d.x * d.y * (1 - n); m[5] = n + d.y * d.y * (1 - n); m[6] = d.x * e + d.z * d.y * (1 - n); m[7] = 0; m[8] = d.y * e + d.x * d.z * (1 - n); m[9] = -d.x * e + d.y * d.z * (1 - n); m[10] = n + d.z * d.z * (1 - n); m[11] = 0; m[12] = m[13] = m[14] = 0; m[15] = 1; return f }; d.J8 = function() { var d = new a.j.Cd, e = this.s, f = d.s; f[0] = e[0]; f[1] = e[1]; f[2] = e[2]; f[3] = e[4]; f[4] = e[5]; f[5] = e[6]; f[6] = e[8]; f[7] = e[9]; f[8] = e[10]; return d }; d.$la = function(d) { var e = new a.j.sc, f = this.s; switch (d) { case a.j.sc.r0: e.a = f[3] - f[0]; e.b = f[7] - f[4]; e.c = f[11] - f[8]; e.K = f[15] - f[12]; break; case a.j.sc.w_: e.a = f[3] + f[0]; e.b = f[7] + f[4]; e.c = f[11] + f[8]; e.K = f[15] + f[12]; break; case a.j.sc.WY: e.a = f[3] + f[1]; e.b = f[7] + f[5]; e.c = f[11] + f[9]; e.K = f[15] + f[13]; break; case a.j.sc.w1: e.a = f[3] - f[1]; e.b = f[7] - f[5]; e.c = f[11] - f[9]; e.K = f[15] - f[13]; break; case a.j.sc.ZZ: e.a = f[3] - f[2]; e.b = f[7] - f[6]; e.c = f[11] - f[10]; e.K = f[15] - f[14]; break; case a.j.sc.F_: e.a = f[3] + f[2]; e.b = f[7] + f[6]; e.c = f[11] + f[10]; e.K = f[15] + f[14]; break; default: a.log("cc.math.Matrix4.extractPlane: Invalid plane index") } d = Math.sqrt(e.a * e.a + e.b * e.b + e.c * e.c); e.a /= d; e.b /= d; e.c /= d; e.K /= d; return e }; d.mM = function() { var d = this.J8(); return a.j.Ii.bX(d).mM() } })(b); (function(a) { a.j.sc = function(a, d, g, h) { a && void 0 === d ? (this.a = a.a, this.b = a.b, this.c = a.c, this.K = a.K) : (this.a = a || 0, this.b = d || 0, this.c = g || 0, this.K = h || 0) }; a.Bqa = a.j.sc; var d = a.j.sc.prototype; a.j.sc.w_ = 0; a.j.sc.r0 = 1; a.j.sc.WY = 2; a.j.sc.w1 = 3; a.j.sc.F_ = 4; a.j.sc.ZZ = 5; a.j.sc.g0 = 0; a.j.sc.f0 = 1; a.j.sc.h0 = 2; d.Gn = function(a) { return this.a * a.x + this.b * a.y + this.c * a.z + this.K * a.S }; d.gla = function(a) { return this.a * a.x + this.b * a.y + this.c * a.z + this.K }; d.hla = function(a) { return this.a * a.x + this.b * a.y + this.c * a.z }; a.j.sc.rma = function(d, f) { return new a.j.sc(f.x, f.y, f.z, -f.Gn(d)) }; a.j.sc.sma = function(d, f, g) { f = new a.j.Pa(f); g = new a.j.Pa(g); var h = new a.j.sc; f.gq(d); g.gq(d); f.Ek(g); f.normalize(); h.a = f.x; h.b = f.y; h.c = f.z; h.K = f.scale(-1).Gn(d); return h }; d.normalize = function() { var d = new a.j.Pa(this.a, this.b, this.c), f = 1 / d.length(); d.normalize(); this.a = d.x; this.b = d.y; this.c = d.z; this.K *= f; return this }; d.zka = function(d) { d = this.a * d.x + this.b * d.y + this.c * d.z + this.K; return 0.001 < d ? a.j.sc.g0 : -0.001 > d ? a.j.sc.f0 : a.j.sc.h0 } })(b); (function(a) { a.j.Ii = function(a, d, g, h) { a && void 0 === d ? (this.x = a.x, this.y = a.y, this.z = a.z, this.S = a.S) : (this.x = a || 0, this.y = d || 0, this.z = g || 0, this.S = h || 0) }; a.Cqa = a.j.Ii; var d = a.j.Ii.prototype; d.M7 = function(a) { this.x = -a.x; this.y = -a.y; this.z = -a.z; this.S = a.S; return this }; d.Gn = function(a) { return this.S * a.S + this.x * a.x + this.y * a.y + this.z * a.z }; d.Zla = function() { return this }; d.ie = function() { this.z = this.y = this.x = 0; this.S = 1; return this }; d.inverse = function() { var d = this.length(); if (Math.abs(d) > a.j.Ud) return this.S = this.z = this.y = this.x = 0, this; this.M7(this).scale(1 / d); return this }; d.gW = function() { return 0 === this.x && 0 === this.y && 0 === this.z && 1 === this.S }; d.length = function() { return Math.sqrt(this.Zs()) }; d.Zs = function() { return this.x * this.x + this.y * this.y + this.z * this.z + this.S * this.S }; d.multiply = function(a) { var d = this.x, g = this.y, h = this.z, k = this.S; this.S = k * a.S - d * a.x - g * a.y - h * a.z; this.x = k * a.x + d * a.S + g * a.z - h * a.y; this.y = k * a.y + g * a.S + h * a.x - d * a.z; this.z = k * a.z + h * a.S + d * a.y - g * a.x; return this }; d.normalize = function() { var d = this.length(); if (Math.abs(d) <= a.j.Ud) throw "current quaternion is an invalid value"; this.scale(1 / d); return this }; d.aX = function(a) { var d = 0.5 * Math.PI, g = Math.sin(d); this.S = Math.cos(d); this.x = a.x * g; this.y = a.y * g; this.z = a.z * g }; a.j.Ii.bX = function(d) { if (!d) return null; var f, g, h; f = []; g = d.s; d = 0; f[0] = g[0]; f[1] = g[3]; f[2] = g[6]; f[4] = g[1]; f[5] = g[4]; f[6] = g[7]; f[8] = g[2]; f[9] = g[5]; f[10] = g[8]; f[15] = 1; var k = f[0]; d = k[0] + k[5] + k[10] + 1; d > a.j.Ud ? (d = 2 * Math.sqrt(d), f = (k[9] - k[6]) / d, g = (k[2] - k[8]) / d, h = (k[4] - k[1]) / d, d *= 0.25) : k[0] > k[5] && k[0] > k[10] ? (d = 2 * Math.sqrt(1 + k[0] - k[5] - k[10]), f = 0.25 * d, g = (k[4] + k[1]) / d, h = (k[2] + k[8]) / d, d = (k[9] - k[6]) / d) : k[5] > k[10] ? (d = 2 * Math.sqrt(1 + k[5] - k[0] - k[10]), f = (k[4] + k[1]) / d, g = 0.25 * d, h = (k[9] + k[6]) / d, d = (k[2] - k[8]) / d) : (d = 2 * Math.sqrt(1 + k[10] - k[0] - k[5]), f = (k[2] + k[8]) / d, g = (k[9] + k[6]) / d, h = 0.25 * d, d = (k[4] - k[1]) / d); return new a.j.Ii(f, g, h, d) }; a.j.Ii.cta = function(d, f, g) { var h, k, m, n, p; h = a.Md(f) / 2; k = a.Md(d) / 2; m = a.Md(g) / 2; g = Math.cos(h); d = Math.cos(k); f = Math.cos(m); h = Math.sin(h); k = Math.sin(k); m = Math.sin(m); n = d * f; p = k * m; var s = new a.j.Ii; s.S = g * n + h * p; s.x = h * n - g * p; s.y = g * k * f + h * d * m; s.z = g * d * m - h * k * f; s.normalize(); return s }; d.Hva = function(d, f) { if (this.x === d.x && this.y === d.y && this.z === d.z && this.S === d.S) return this; var g = this.Gn(d), h = Math.acos(g), g = Math.sqrt(1 - a.j.kd(g)), k = Math.sin(f * h) / g, m = new a.j.Ii(d); this.scale(Math.sin((1 - f) * h) / g); m.scale(k); this.add(m); return this }; d.mM = function() { var d, f, g = new a.j.Pa; d = Math.acos(this.S); f = Math.sqrt(a.j.kd(this.x) + a.j.kd(this.y) + a.j.kd(this.z)); f > -a.j.Ud && f < a.j.Ud || f < 2 * Math.PI + a.j.Ud && f > 2 * Math.PI - a.j.Ud ? (d = 0, g.x = 0, g.y = 0, g.z = 1) : (d *= 2, g.x = this.x / f, g.y = this.y / f, g.z = this.z / f, g.normalize()); return { axis: g, Yg: d } }; d.scale = function(a) { this.x *= a; this.y *= a; this.z *= a; this.S *= a; return this }; d.Ze = function(a) { this.x = a.x; this.y = a.y; this.z = a.z; this.S = a.S; return this }; d.add = function(a) { this.x += a.x; this.y += a.y; this.z += a.z; this.S += a.S; return this }; a.j.Ii.ata = function(d, f, g) { var h = new a.j.Pa(d), k = new a.j.Pa(f); h.normalize(); k.normalize(); var m = h.Gn(k); f = new a.j.Ii; if (1 <= m) return f.ie(), f; - 0.999999 > m ? Math.abs(g.Zs()) < a.j.Ud ? f.aX(g) : (h = new a.j.Pa(1, 0, 0), h.Ek(d), Math.abs(h.Zs()) < a.j.Ud && (h.fill(0, 1, 0), h.Ek(d)), h.normalize(), f.aX(h)) : (d = Math.sqrt(2 * (1 + m)), g = 1 / d, h.Ek(k), f.x = h.x * g, f.y = h.y * g, f.z = h.z * g, f.S = 0.5 * d, f.normalize()); return f }; d.Vqa = function(d) { var f = this.x, g = this.y, h = this.z, k = new a.j.Pa(d), m = new a.j.Pa(f, g, h), f = new a.j.Pa(f, g, h); m.Ek(d); f.Ek(m); m.scale(2 * q.S); f.scale(2); k.add(m); k.add(f); return k } })(b); b.j.Zx = function(a, d) { this.min = a || new b.j.Pa; this.max = d || new b.j.Pa }; b.j.Zx.prototype.N7 = function(a) { return a.x >= this.min.x && a.x <= this.max.x && a.y >= this.min.y && a.y <= this.max.y && a.z >= this.min.z && a.z <= this.max.z }; b.j.Zx.N7 = function(a, d) { return a.x >= d.min.x && a.x <= d.max.x && a.y >= d.min.y && a.y <= d.max.y && a.z >= d.min.z && a.z <= d.max.z }; b.j.Zx.prototype.Ze = function(a) { this.min.Ze(a.min); this.max.Ze(a.max) }; b.j.Zx.assign = function(a, d) { a.min.Ze(d.min); a.max.Ze(d.max); return a }; (function(a) { a.j.nu = function(a, d) { this.top = a; this.stack = d || [] }; a.Fqa = a.j.nu; var d = a.j.nu.prototype; d.Uw = function() { this.stack.length = 0; this.top = null }; a.Hqa = function(d, f) { d.stack.push(d.top); d.top = new a.j.ca(f) }; a.Gqa = function(a) { a.top = a.stack.pop() }; a.Iqa = function(a) { a.stack = null; a.top = null }; d.push = function(d) { d = d || this.top; this.stack.push(this.top); this.top = new a.j.ca(d) }; d.pop = function() { this.top = this.stack.pop() }; d.Ad = function() { this.KR = this.top = this.stack = null }; d.Wia = function(d) { var f = this.KR; if (0 === f.length) return new a.j.ca(d); f = f.pop(); f.Ze(d); return f }; d.uja = function(a) { this.KR.push(a) } })(b); (function(a) { a.Oj = 5888; a.Pj = 5889; a.jN = 5890; a.vj = new a.j.nu; a.Aj = new a.j.nu; a.Ft = new a.j.nu; a.Ob = null; a.uba = function() { var d = new a.j.ca; a.vj.Uw(); a.Aj.Uw(); a.Ft.Uw(); a.Ob = a.vj; a.Kaa = !0; d.ie(); a.vj.push(d); a.Aj.push(d); a.Ft.push(d) }; a.uba(); a.qba = function() { a.vj.Ad(); a.vj = null; a.Aj.Ad(); a.Aj = null; a.Ft.Ad(); a.Ft = null; a.Kaa = !1; a.Ob = null }; a.Zw = function() { a.Ob.push(a.Ob.top) }; a.oqa = function(d) { a.Ob.stack.push(a.Ob.top); d.Ze(a.Ob.top); a.Ob.top = d }; a.Ys = function() { a.Ob.top = a.Ob.stack.pop() }; a.tj = function(d) { switch (d) { case a.Oj: a.Ob = a.vj; break; case a.Pj: a.Ob = a.Aj; break; case a.jN: a.Ob = a.Ft; break; default: throw "Invalid matrix mode specified"; } }; a.Ws = function() { a.Ob.top.ie() }; a.nqa = function(d) { a.Ob.top.Ze(d) }; a.Xs = function(d) { a.Ob.top.multiply(d) }; var d = new a.j.ca; a.jW = function(e, g) { var h = a.j.ca.Fn(e, g, 0, d); a.Ob.top.multiply(h) }; var e = new a.j.Pa; a.pqa = function(f, g, h, k) { e.fill(g, h, k); f = a.j.ca.R7(e, a.Md(f), d); a.Ob.top.multiply(f) }; a.qqa = function(e, g, h) { e = a.j.ca.uU(e, g, h, d); a.Ob.top.multiply(e) }; a.Yw = function(d, e) { switch (d) { case a.Oj: e.Ze(a.vj.top); break; case a.Pj: e.Ze(a.Aj.top); break; case a.jN: e.Ze(a.Ft.top); break; default: throw "Invalid matrix mode specified"; } } })(b); b.G0 = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n"; b.H0 = "attribute vec4 a_position;\nuniform vec4 u_color;\nuniform float u_pointSize;\nvarying lowp vec4 v_fragmentColor; \nvoid main(void) \n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n gl_PointSize \x3d u_pointSize; \n v_fragmentColor \x3d u_color; \n}"; b.u0 = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} "; b.x0 = "attribute vec4 a_position;\nattribute vec4 a_color;\nvarying lowp vec4 v_fragmentColor;\nvoid main()\n{\n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n}"; b.v0 = "// #extension GL_OES_standard_derivatives : enable\nvarying mediump vec4 v_color;\nvarying mediump vec2 v_texcoord;\nvoid main()\t\n{ \n// #if defined GL_OES_standard_derivatives\t\n// gl_FragColor \x3d v_color*smoothstep(0.0, length(fwidth(v_texcoord)), 1.0 - length(v_texcoord)); \n// #else\t\ngl_FragColor \x3d v_color * step(0.0, 1.0 - length(v_texcoord)); \n// #endif \n}"; b.w0 = "attribute mediump vec4 a_position; \nattribute mediump vec2 a_texcoord; \nattribute mediump vec4 a_color;\t\nvarying mediump vec4 v_color; \nvarying mediump vec2 v_texcoord;\t\nvoid main() \n{ \n v_color \x3d a_color;//vec4(a_color.rgb * a_color.a, a_color.a); \n v_texcoord \x3d a_texcoord; \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n}"; b.C0 = "precision lowp float; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}"; b.F0 = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}"; b.D0 = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}"; b.E0 = "attribute vec4 a_position;\nattribute vec2 a_texCoord; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_texCoord \x3d a_texCoord; \n}"; b.y0 = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}"; b.z0 = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}"; b.B0 = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}"; b.nF = "attribute vec4 a_position; \nattribute vec2 a_texCoord; \nattribute vec4 a_color; \nvarying lowp vec4 v_fragmentColor; \nvarying mediump vec2 v_texCoord; \nvoid main() \n{ \n gl_Position \x3d (CC_PMatrix * CC_MVMatrix) * a_position; \n v_fragmentColor \x3d a_color; \n v_texCoord \x3d a_texCoord; \n}"; b.A0 = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}"; b.Gha = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D u_texture; \nuniform sampler2D u_mask; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(u_texture, v_texCoord); \n vec4 maskColor \x3d texture2D(u_mask, v_texCoord); \n vec4 finalColor \x3d vec4(texColor.r, texColor.g, texColor.b, maskColor.a * texColor.a); \n gl_FragColor \x3d v_fragmentColor * finalColor; \n}"; b.le = { wF: 0, xF: 1, uF: 2, vF: 3, zF: 4, yF: 5, AF: 6, nO: 7, iia: 8, be: {}, rl: function() { this.Aba(); return !0 }, Df: function(a, d) { switch (d) { case this.wF: a.qj(b.nF, b.B0); a.fd(b.vm, b.Ib); a.fd(b.lq, b.cf); a.fd(b.$n, b.re); break; case this.xF: a.qj(b.nF, b.A0); a.fd(b.vm, b.Ib); a.fd(b.lq, b.cf); a.fd(b.$n, b.re); break; case this.uF: a.qj(b.x0, b.u0); a.fd(b.vm, b.Ib); a.fd(b.lq, b.cf); break; case this.vF: a.qj(b.F0, b.C0); a.fd(b.vm, b.Ib); a.fd(b.$n, b.re); break; case this.zF: a.qj(b.E0, b.D0); a.fd(b.vm, b.Ib); a.fd(b.$n, b.re); break; case this.yF: a.qj(b.z0, b.y0); a.fd(b.vm, b.Ib); a.fd(b.lq, b.cf); a.fd(b.$n, b.re); break; case this.AF: a.qj(b.H0, b.G0); a.fd("aVertex", b.Ib); break; case this.nO: a.qj(b.w0, b.v0); a.fd(b.vm, b.Ib); a.fd(b.$n, b.re); a.fd(b.lq, b.cf); break; default: b.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type"); return } a.link(); a.HY() }, Aba: function() { var a = new b.Qe; this.Df(a, this.wF); this.be[b.Sj] = a; this.be.ShaderPositionTextureColor = a; a = new b.Qe; this.Df(a, this.xF); this.be[b.Yy] = a; this.be.ShaderPositionTextureColorAlphaTest = a; a = new b.Qe; this.Df(a, this.uF); this.be[b.Xy] = a; this.be.ShaderPositionColor = a; a = new b.Qe; this.Df(a, this.vF); this.be[b.uu] = a; this.be.ShaderPositionTexture = a; a = new b.Qe; this.Df(a, this.zF); this.be[b.oF] = a; this.be.ShaderPositionTextureUColor = a; a = new b.Qe; this.Df(a, this.yF); this.be[b.mF] = a; this.be.ShaderPositionTextureA8Color = a; a = new b.Qe; this.Df(a, this.AF); this.be[b.pF] = a; this.be.ShaderPositionUColor = a; a = new b.Qe; this.Df(a, this.nO); this.be[b.VN] = a; this.be.ShaderPositionLengthTextureColor = a }, vsa: function() { var a = this.Dc(b.Sj); a.reset(); this.Df(a, this.wF); a = this.Dc(b.Yy); a.reset(); this.Df(a, this.xF); a = this.Dc(b.Xy); a.reset(); this.Df(a, this.uF); a = this.Dc(b.uu); a.reset(); this.Df(a, this.vF); a = this.Dc(b.oF); a.reset(); this.Df(a, this.zF); a = this.Dc(b.mF); a.reset(); this.Df(a, this.yF); a = this.Dc(b.pF); a.reset(); this.Df(a, this.AF) }, Dc: function(a) { return this.be[a] }, Qp: function(a) { return this.be[a] }, Yja: function(a, d) { this.be[d] = a } }; b.h_ = function() { this.location = this.value = void 0; this.HC = {} }; b.Qe = b.sa.extend({ pa: null, ac: null, lg: null, Mh: null, eb: null, Qi: null, rJ: !1, Lf: function(a, d) { if (null == a) return !1; for (var e = !0, f = null, g = 0; g < this.Qi.length; g++) this.Qi[g].location == a && (f = this.Qi[g]); f ? f.value == d ? e = !1 : f.value = d : (f = new b.h_, f.location = a, f.value = d, this.Qi.push(f)); return e }, Nia: function() { return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.ac.toString() + ", VertexShader \x3d " + this.lg.toString() + ", FragmentShader \x3d " + this.Mh.toString() + "\x3e" }, AP: function(a, d, e) { if (!e || !a) return !1; e = (b.Qe.H4() ? "precision highp float;\n" : "precision mediump float;\n") + "uniform mat4 CC_PMatrix; \nuniform mat4 CC_MVMatrix; \nuniform mat4 CC_MVPMatrix; \nuniform vec4 CC_Time; \nuniform vec4 CC_SinTime; \nuniform vec4 CC_CosTime; \nuniform vec4 CC_Random01; \nuniform sampler2D CC_Texture0; \n//CC INCLUDES END \n" + e; this.pa.shaderSource(a, e); this.pa.compileShader(a); e = this.pa.getShaderParameter(a, this.pa.COMPILE_STATUS); e || (b.log("cocos2d: ERROR: Failed to compile shader:\n" + this.pa.getShaderSource(a)), d === this.pa.VERTEX_SHADER ? b.log("cocos2d: \n" + this.qfa()) : b.log("cocos2d: \n" + this.T8())); return !0 === e }, ctor: function(a, d, e) { this.eb = []; this.Qi = []; this.pa = e || b.A; a && d && this.T(a, d) }, Vka: function() { this.Qi = this.eb = this.Mh = this.lg = null; this.pa.deleteProgram(this.ac) }, qj: function(a, d) { var e = this.pa; this.ac = e.createProgram(); this.Mh = this.lg = null; a && (this.lg = e.createShader(e.VERTEX_SHADER), this.AP(this.lg, e.VERTEX_SHADER, a) || b.log("cocos2d: ERROR: Failed to compile vertex shader")); d && (this.Mh = e.createShader(e.FRAGMENT_SHADER), this.AP(this.Mh, e.FRAGMENT_SHADER, d) || b.log("cocos2d: ERROR: Failed to compile fragment shader")); this.lg && e.attachShader(this.ac, this.lg); b.ss(); this.Mh && e.attachShader(this.ac, this.Mh); this.Qi.length = 0; b.ss(); return !0 }, je: function(a, d) { return this.qj(a, d) }, Jaa: function(a, d) { var e = b.Z.sf(a); if (!e) throw "Please load the resource firset : " + a; var f = b.Z.sf(d); if (!f) throw "Please load the resource firset : " + d; return this.qj(e, f) }, T: function(a, d) { return this.Jaa(a, d) }, fd: function(a, d) { this.pa.bindAttribLocation(this.ac, d, a) }, link: function() { if (!this.ac) return b.log("cc.GLProgram.link(): Cannot link invalid program"), !1; this.pa.linkProgram(this.ac); this.lg && this.pa.deleteShader(this.lg); this.Mh && this.pa.deleteShader(this.Mh); this.Mh = this.lg = null; return b.pb.Ee[b.pb.xh.xw] && !this.pa.getProgramParameter(this.ac, this.pa.LINK_STATUS) ? (b.log("cocos2d: ERROR: Failed to link program: " + this.pa.getProgramInfoLog(this.ac)), b.$$(this.ac), this.ac = null, !1) : !0 }, jc: function() { b.XK(this.ac) }, HY: function() { this.eb[b.Au] = this.pa.getUniformLocation(this.ac, b.j2); this.eb[b.zu] = this.pa.getUniformLocation(this.ac, b.h2); this.eb[b.Bq] = this.pa.getUniformLocation(this.ac, b.i2); this.eb[b.qz] = this.pa.getUniformLocation(this.ac, b.n2); this.eb[b.pz] = this.pa.getUniformLocation(this.ac, b.m2); this.eb[b.oz] = this.pa.getUniformLocation(this.ac, b.g2); this.rJ = null != this.eb[b.qz] || null != this.eb[b.pz] || null != this.eb[b.oz]; this.eb[b.Bu] = this.pa.getUniformLocation(this.ac, b.k2); this.eb[b.JF] = this.pa.getUniformLocation(this.ac, b.l2); this.jc(); this.aY(this.eb[b.JF], 0) }, Zoa: function(a) { if (!a) throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null"; if (!this.ac) throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized"; return this.pa.getUniformLocation(this.ac, a) }, $oa: function() { return this.eb[b.Bq] }, apa: function() { return this.eb[b.JF] }, aY: function(a, d) { this.Lf(a, d) && this.pa.uniform1i(a, d) }, qva: function(a, d, e) { this.Lf(a, [d, e]) && this.pa.uniform2i(a, d, e) }, tva: function(a, d, e, f) { this.Lf(a, [d, e, f]) && this.pa.uniform3i(a, d, e, f) }, wva: function(a, d, e, f, g) { this.Lf(a, [d, e, f, g]) && this.pa.uniform4i(a, d, e, f, g) }, rva: function(a, d) { this.Lf(a, d) && this.pa.uniform2iv(a, d) }, uva: function(a, d) { this.Lf(a, d) && this.pa.uniform3iv(a, d) }, xva: function(a, d) { this.Lf(a, d) && this.pa.uniform4iv(a, d) }, ova: function(a, d) { this.aY(a, d) }, Kx: function(a, d) { this.Lf(a, d) && this.pa.uniform1f(a, d) }, dea: function(a, d, e) { this.Lf(a, [d, e]) && this.pa.uniform2f(a, d, e) }, eea: function(a, d, e, f) { this.Lf(a, [d, e, f]) && this.pa.uniform3f(a, d, e, f) }, sm: function(a, d, e, f, g) { this.Lf(a, [d, e, f, g]) && this.pa.uniform4f(a, d, e, f, g) }, pva: function(a, d) { this.Lf(a, d) && this.pa.uniform2fv(a, d) }, sva: function(a, d) { this.Lf(a, d) && this.pa.uniform3fv(a, d) }, vva: function(a, d) { this.Lf(a, d) && this.pa.uniform4fv(a, d) }, wt: function(a, d) { this.Lf(a, d) && this.pa.uniformMatrix4fv(a, !1, d) }, nva: function() { if (!(2 > arguments.length)) switch (arguments.length) { case 2: this.Kx(arguments[0], arguments[1]); break; case 3: this.dea(arguments[0], arguments[1], arguments[2]); break; case 4: this.eea(arguments[0], arguments[1], arguments[2], arguments[3]); break; case 5: this.sm(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]) } }, bY: function() { var a = new b.j.ca, d = new b.j.ca, e = new b.j.ca; b.Yw(b.Pj, a); b.Yw(b.Oj, d); b.YC(e, a, d); this.wt(this.eb[b.Au], a.s, 1); this.wt(this.eb[b.zu], d.s, 1); this.wt(this.eb[b.Bq], e.s, 1); this.rJ && (a = b.P, a = a.bw * a.Iq, this.sm(this.eb[b.qz], a / 10, a, 2 * a, 4 * a), this.sm(this.eb[b.pz], a / 8, a / 4, a / 2, Math.sin(a)), this.sm(this.eb[b.oz], a / 8, a / 4, a / 2, Math.cos(a))); - 1 !== this.eb[b.Bu] && this.sm(this.eb[b.Bu], Math.random(), Math.random(), Math.random(), Math.random()) }, Gja: function(a) { if (a && a.f) { var d = new b.j.ca, e = new b.j.ca; b.Yw(b.Pj, d); b.YC(e, d, a.f.Mc); this.wt(this.eb[b.Au], d.s, 1); this.wt(this.eb[b.zu], a.f.Mc.s, 1); this.wt(this.eb[b.Bq], e.s, 1); this.rJ && (a = b.P, a = a.bw * a.Iq, this.sm(this.eb[b.qz], a / 10, a, 2 * a, 4 * a), this.sm(this.eb[b.pz], a / 8, a / 4, a / 2, Math.sin(a)), this.sm(this.eb[b.oz], a / 8, a / 4, a / 2, Math.cos(a))); - 1 !== this.eb[b.Bu] && this.sm(this.eb[b.Bu], Math.random(), Math.random(), Math.random(), Math.random()) } }, lva: function() { this.pa.uniformMatrix4fv(this.eb[b.Bq], !1, b.T9()) }, mva: function(a) { b.YC(a, b.Aj.top, b.vj.top); this.pa.uniformMatrix4fv(this.eb[b.Bq], !1, a.s) }, Sk: function() { this.pa.uniformMatrix4fv(this.eb[b.zu], !1, b.vj.top.s); this.pa.uniformMatrix4fv(this.eb[b.Au], !1, b.Aj.top.s) }, Ug: function(a) { if (!a) throw "modelView matrix is undefined."; this.pa.uniformMatrix4fv(this.eb[b.zu], !1, a.s); this.pa.uniformMatrix4fv(this.eb[b.Au], !1, b.Aj.top.s) }, qfa: function() { return this.pa.getShaderInfoLog(this.lg) }, fpa: function() { return this.pa.getShaderInfoLog(this.lg) }, pna: function() { return this.pa.getShaderInfoLog(this.lg) }, T8: function() { return this.pa.getShaderInfoLog(this.Mh) }, dsa: function() { return this.pa.getProgramInfoLog(this.ac) }, hoa: function() { return this.pa.getProgramInfoLog(this.ac) }, reset: function() { this.Mh = this.lg = null; this.eb.length = 0; this.pa.deleteProgram(this.ac); this.ac = null; for (var a = 0; a < this.Qi.length; a++) this.Qi[a].value = null, this.Qi[a] = null; this.Qi.length = 0 }, Qp: function() { return this.ac }, CD: function() {}, Ad: function() {} }); b.Qe.create = function(a, d) { return new b.Qe(a, d) }; b.Qe.nH = null; b.Qe.H4 = function() { if (null == b.Qe.nH) { var a = b.A; b.Qe.nH = 0 !== a.getShaderPrecisionFormat(a.FRAGMENT_SHADER, a.HIGH_FLOAT).precision } return b.Qe.nH }; b.OX = function(a, d) { a.shaderProgram = d; var e = a.children; if (e) for (var f = 0; f < e.length; f++) b.OX(e[f], d) }; b.JP = -1; b.uJ = !1; b.tJ = !1; b.vJ = !1; b.Fi && (b.D_ = 16, b.Wu = -1, b.Vu = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], b.Rq = -1, b.Qq = -1, b.v2 = 0, b.gO && (b.pT = 0)); b.ppa = function() { b.qba(); b.JP = -1; b.uJ = !1; b.tJ = !1; b.vJ = !1; if (b.Fi) { b.Wu = -1; for (var a = 0; a < b.D_; a++) b.Vu[a] = -1; b.Rq = -1; b.Qq = -1; b.v2 = 0 } }; b.XK = function(a) { a !== b.Wu && (b.Wu = a, b.A.useProgram(a)) }; b.Fi || (b.XK = function(a) { b.A.useProgram(a) }); b.$$ = function(a) { b.Fi && a === b.Wu && (b.Wu = -1); gl.deleteProgram(a) }; b.ji = function(a, d) { if (a !== b.Rq || d !== b.Qq) b.Rq = a, b.Qq = d, b.ID(a, d) }; b.ID = function(a, d) { var e = b.A; a === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), b.A.blendFunc(a, d)) }; b.GV = function(a, d) { if (a !== b.Rq || d !== b.Qq) { b.Rq = a; b.Qq = d; var e = b.A; a === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), e.blendFuncSeparate(e.SRC_ALPHA, d, a, d)) } }; b.Fi || (b.ji = b.ID); b.mpa = function() { var a = b.A; a.blendEquation(a.FUNC_ADD); b.Fi ? b.ID(b.Rq, b.Qq) : b.ID(a.Td, a.Sd) }; b.QX = function() { b.JP = -1 }; b.hd = function(a) { var d = b.A, e = a & b.qe; e !== b.uJ && (e ? d.enableVertexAttribArray(b.Ib) : d.disableVertexAttribArray(b.Ib), b.uJ = e); e = a & b.Cu; e !== b.tJ && (e ? d.enableVertexAttribArray(b.cf) : d.disableVertexAttribArray(b.cf), b.tJ = e); a &= b.Dq; a !== b.vJ && (a ? d.enableVertexAttribArray(b.re) : d.disableVertexAttribArray(b.re), b.vJ = a) }; b.Rf = function(a) { b.WK(0, a) }; b.WK = function(a, d) { if (b.Vu[a] !== d) { b.Vu[a] = d; var e = b.A; e.activeTexture(e.TEXTURE0 + a); d ? e.bindTexture(e.TEXTURE_2D, d.Xg) : e.bindTexture(e.TEXTURE_2D, null) } }; b.Fi || (b.WK = function(a, d) { var e = b.A; e.activeTexture(e.TEXTURE0 + a); d ? e.bindTexture(e.TEXTURE_2D, d.Xg) : e.bindTexture(e.TEXTURE_2D, null) }); b.npa = function(a) { b.aaa(a) }; b.aaa = function(a) { b.Fi && a === b.Vu[0] && (b.Vu[0] = -1); b.A.deleteTexture(a) }; b.lpa = function(a) { b.gO && b.Fi && b.pT !== a && (b.pT = a) }; b.opa = function() {}; b.Kga = 0; b.Lga = 1; b.Mga = 9; b.Am = function(a) { a -= 1; a |= a >> 1; a |= a >> 2; a |= a >> 4; a |= a >> 8; return (a | a >> 16) + 1 }; b.Zf = b.e.extend({ sprite: null, YJ: 0, XJ: 0, qw: !1, O: null, mk: b.ja.Bm, ZJ: 0, Co: null, Ma: "RenderTexture", ctor: function(a, d, e, f) { b.e.prototype.ctor.call(this); this.$c = this.Zc = !0; this.Co = new b.bf(0, 0, 0, 255); void 0 !== a && void 0 !== d && (e = e || b.ja.Bm, this.QC(a, d, e, f || 0)); this.rb(0, 0) }, Ic: function() { return b.W === b.Jb ? new b.Zf.n(this) : new b.Zf.p(this) }, qf: function() { b.e.prototype.Pb.call(this); this.f.qf() }, OK: function() { return this.sprite }, WL: function(a) { this.sprite = a }, cM: function(a, d, e) { this.f.cM(a, d, e) }, QC: function(a, d, e, f) { return this.f.QC(a, d, e, f) }, Ak: function() { b.oa.es(this.ba); this.f.Ak() }, t7: function(a, d, e, f, g, h) { var k = b.A; g = g || k.COLOR_BUFFER_BIT; h = h || k.COLOR_BUFFER_BIT | k.DEPTH_BUFFER_BIT; this.Dz(a, d, e, f, g, h, k.COLOR_BUFFER_BIT | k.DEPTH_BUFFER_BIT | k.STENCIL_BUFFER_BIT) }, Dz: function(a, d, e, f, g, h, k) { this.Ak(); this.f.Dz(a, d, e, f, g, h, k) }, end: function() { this.f.end() }, clear: function(a, d, e, f) { this.t7(a, d, e, f); this.end() }, clearRect: function(a, d, e, f) { this.f.clearRect(a, d, e, f) }, clearDepth: function(a) { this.f.clearDepth(a) }, clearStencil: function(a) { this.f.clearStencil(a) }, Mma: function() { return this.YJ }, Ata: function(a) { this.YJ = a }, g9: function() { return this.Co }, Uca: function(a) { var d = this.Co; d.r = a.r; d.g = a.g; d.b = a.b; d.a = a.a }, Lma: function() { return this.XJ }, zta: function(a) { this.XJ = a }, Nma: function() { return this.ZJ }, Bta: function(a) { this.ZJ = a }, Hpa: function() { return this.qw }, rta: function(a) { this.qw = a }, dta: function() { b.log("saveToFile isn't supported on Cocos2d-Html5") }, Wqa: function() { b.log("saveToFile isn't supported on cocos2d-html5"); return null }, Mqa: function() {}, Nqa: function() {} }); r = b.Zf.prototype; b.i(r, "clearColorVal", r.g9, r.Uca); b.Zf.create = function(a, d, e, f) { return new b.Zf(a, d, e, f) }; (function() { b.Zf.n = function(a) { b.e.n.call(this, a); this.cb = !0; this.df = b.ic("canvas"); this.Ve = new b.nq(this.df.getContext("2d")) }; var a = b.Zf.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.Zf.n; a.qf = function() { this.df = this.Ve = null }; a.clearStencil = function() {}; a.cM = function() {}; a.lfa = function() {}; a.QC = function(a, e) { var f = this.k, g = this.df, h = b.Db(); g.width = 0 | a * h; g.height = 0 | e * h; h = new b.ja; h.jd(g); h.Tb(); g = f.sprite = new b.B(h); g.sg(b.ONE, b.ONE_MINUS_SRC_ALPHA); f.qw = !1; f.C(g); return !0 }; a.Ak = function() {}; a.Dz = function(a, e, f, g) { a = a || 0; e = e || 0; f = f || 0; g = isNaN(g) ? 255 : g; var h = this.Ve.getContext(), k = this.df; h.setTransform(1, 0, 0, 1, 0, 0); this.Ve.Fj("rgba(" + (0 | a) + "," + (0 | e) + "," + (0 | f) + "," + g / 255 + ")"); h.clearRect(0, 0, k.width, k.height); h.fillRect(0, 0, k.width, k.height) }; a.end = function() { var a = this.k, e = b.Db(); b.oa.Jv(this.Ve, a.ba, e, e) }; a.clearRect = function(a, e, f, g) { this.Ve.clearRect(a, e, f, -g) }; a.clearDepth = function() { b.log("clearDepth isn't supported on Cocos2d-Html5") }; a.Q = function(a) { var e = this.k; this.cd(a); e.sprite.Q(this); this.G = 0 } })(); (function() { b.Zf.p = function(a) { b.e.p.call(this, a); this.cb = !0; this.Eo = this.Zv = this.lk = this.iA = null; this.nB = new b.Dh; this.pr = new b.Dh; this.lA = new b.Dh }; var a = b.Zf.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.Zf.p; a.cM = function(a, e, f) { this.nB.x = a.x; this.nB.y = a.y; this.pr = e; this.lA = f }; a.Eb = function(a) { var e = a || b.A; a = this.k; if (a.qw) { a.Ak(); var f = a.YJ; if (f) { var g = [0, 0, 0, 0], h = 0, k = 0; f & e.COLOR_BUFFER_BIT && (g = e.getParameter(e.COLOR_CLEAR_VALUE), e.clearColor(a.Co.r / 255, a.Co.g / 255, a.Co.b / 255, a.Co.a / 255)); f & e.DEPTH_BUFFER_BIT && (h = e.getParameter(e.DEPTH_CLEAR_VALUE), e.clearDepth(a.XJ)); f & e.STENCIL_BUFFER_BIT && (k = e.getParameter(e.STENCIL_CLEAR_VALUE), e.clearStencil(a.ZJ)); e.clear(f); f & e.COLOR_BUFFER_BIT && e.clearColor(g[0], g[1], g[2], g[3]); f & e.DEPTH_BUFFER_BIT && e.clearDepth(h); f & e.STENCIL_BUFFER_BIT && e.clearStencil(k) } a.Ne(); e = a.m; for (f = 0; f < e.length; f++) g = e[f], g !== a.sprite && g.f.Q(a.sprite.f); a.end() } }; a.clearStencil = function(a) { var e = b.A, f = e.getParameter(e.STENCIL_CLEAR_VALUE); e.clearStencil(a); e.clear(e.STENCIL_BUFFER_BIT); e.clearStencil(f) }; a.qf = function() { this.Zv = null; var a = b.A; a.deleteFramebuffer(this.iA); this.Eo && a.deleteRenderbuffer(this.Eo) }; a.lfa = function() {}; a.QC = function(a, e, f, g) { var h = this.k; f === b.ja.ou && b.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;"); var k = b.A, m = b.Db(); this.pr = new b.Dh(0, 0, a, e); this.lA = new b.Dh(0, 0, a, e); a = 0 | a * m; e = 0 | e * m; this.lk = k.getParameter(k.FRAMEBUFFER_BINDING); var n; b.ts.FB ? (m = a, n = e) : (m = b.Am(a), n = b.Am(e)); for (var p = new Uint8Array(m * n * 4), s = 0; s < m * n * 4; s++) p[s] = 0; this.mk = f; s = h.O = new b.ja; if (!h.O) return !1; s.Sw(p, h.mk, m, n, b.size(a, e)); f = k.getParameter(k.RENDERBUFFER_BINDING); if (b.ts.rs("GL_QCOM")) { this.Zv = new b.ja; if (!this.Zv) return !1; this.Zv.Sw(p, h.mk, m, n, b.size(a, e)) } this.iA = k.createFramebuffer(); k.bindFramebuffer(k.FRAMEBUFFER, this.iA); k.framebufferTexture2D(k.FRAMEBUFFER, k.COLOR_ATTACHMENT0, k.TEXTURE_2D, s.Xg, 0); 0 !== g && (this.Eo = k.createRenderbuffer(), k.bindRenderbuffer(k.RENDERBUFFER, this.Eo), k.renderbufferStorage(k.RENDERBUFFER, g, m, n), g === k.DEPTH_STENCIL ? k.framebufferRenderbuffer(k.FRAMEBUFFER, k.DEPTH_STENCIL_ATTACHMENT, k.RENDERBUFFER, this.Eo) : g === k.STENCIL_INDEX || g === k.STENCIL_INDEX8 ? k.framebufferRenderbuffer(k.FRAMEBUFFER, k.STENCIL_ATTACHMENT, k.RENDERBUFFER, this.Eo) : g === k.DEPTH_COMPONENT16 && k.framebufferRenderbuffer(k.FRAMEBUFFER, k.DEPTH_ATTACHMENT, k.RENDERBUFFER, this.Eo)); k.checkFramebufferStatus(k.FRAMEBUFFER) !== k.FRAMEBUFFER_COMPLETE && b.log("Could not attach texture to the framebuffer"); s.ML(); a = h.sprite = new b.B(s); a.scaleY = -1; a.sg(k.ONE, k.ONE_MINUS_SRC_ALPHA); k.bindRenderbuffer(k.RENDERBUFFER, f); k.bindFramebuffer(k.FRAMEBUFFER, this.lk); h.qw = !1; h.C(a); return !0 }; a.Ak = function() { var a = this.k; b.tj(b.Pj); b.Zw(); b.tj(b.Oj); b.Zw(); var e = b.A, f = b.P; f.Sn(f.Ls()); var g = a.O.U, h = b.P.Nw(), f = h.width / g.width, g = h.height / g.height, f = b.j.ca.dK(-1 / f, 1 / f, -1 / g, 1 / g, -1, 1); b.Xs(f); f = new b.Dh(0, 0, 0, 0); f.width = this.lA.width; f.height = this.lA.height; g = f.height / this.pr.height; f.x = f.width / this.pr.width * (this.pr.x - this.nB.x); f.y = (this.pr.y - this.nB.y) * g; e.viewport(f.x, f.y, f.width, f.height); this.lk = e.getParameter(e.FRAMEBUFFER_BINDING); e.bindFramebuffer(e.FRAMEBUFFER, this.iA); b.ts.rs("GL_QCOM") && (e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.Zv.Xg, 0), e.clear(e.COLOR_BUFFER_BIT | e.DEPTH_BUFFER_BIT), e.framebufferTexture2D(e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, a.O.Xg, 0)) }; a.Dz = function(a, e, f, g, h, k, m) { a /= 255; e /= 255; f /= 255; g /= 255; var n = b.A, p = [0, 0, 0, 0], s = 0, t = 0; m & n.COLOR_BUFFER_BIT && (p = n.getParameter(n.COLOR_CLEAR_VALUE), n.clearColor(a, e, f, g)); m & n.DEPTH_BUFFER_BIT && (s = n.getParameter(n.DEPTH_CLEAR_VALUE), n.clearDepth(h)); m & n.STENCIL_BUFFER_BIT && (t = n.getParameter(n.STENCIL_CLEAR_VALUE), n.clearStencil(k)); n.clear(m); m & n.COLOR_BUFFER_BIT && n.clearColor(p[0], p[1], p[2], p[3]); m & n.DEPTH_BUFFER_BIT && n.clearDepth(s); m & n.STENCIL_BUFFER_BIT && n.clearStencil(t) }; a.end = function() { b.oa.G5(this.k.ba); var a = b.A, e = b.P; a.bindFramebuffer(a.FRAMEBUFFER, this.lk); e.bM(); b.tj(b.Pj); b.Ys(); b.tj(b.Oj); b.Ys() }; a.clearRect = function() {}; a.clearDepth = function(a) { var e = this.k; e.Ak(); var f = b.A, g = f.getParameter(f.DEPTH_CLEAR_VALUE); f.clearDepth(a); f.clear(f.DEPTH_BUFFER_BIT); f.clearDepth(g); e.end() }; a.Q = function(a) { var e = this.k; e.Ta && (b.Zw(), this.cd(a), b.oa.Ec(this), e.sprite.Q(this), this.G = 0, b.Ys()) } })(); b.oe = b.Rd.extend({ Bc: null, AH: null, R: !1, Ma: "LabelAtlas", ctor: function(a, d, e, f, g) { b.Rd.prototype.ctor.call(this); this.f.mX(); d && b.oe.prototype.je.call(this, a, d, e, f, g) }, Ic: function() { return b.W === b.ya ? new b.oe.p(this) : new b.oe.n(this) }, Et: function() { return this.R }, ls: function(a, d) { this.addEventListener("load", a, d) }, je: function(a, d, e, f, g) { var h = a + "", k, m; if (void 0 === e) { e = b.Z.sf(d); if (1 !== parseInt(e.version, 10)) return b.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1; d = b.path.qs(d, e.textureFilename); f = b.Db(); k = parseInt(e.itemWidth, 10) / f; m = parseInt(e.itemHeight, 10) / f; e = String.fromCharCode(parseInt(e.firstChar, 10)) } else k = e || 0, m = f || 0, e = g || " "; var n = null, n = d instanceof b.ja ? d : b.Xa.Vc(d); this.R = d = n.R; d || (this.Bc = h, n.addEventListener("load", function() { this.ea(n, k, m, h.length); this.string = this.Bc; this.X(this.f.Vb); this.dispatchEvent("load") }, this)); return this.ea(n, k, m, h.length) ? (this.AH = e, this.string = h, !0) : !1 }, X: function(a) { b.Rd.prototype.X.call(this, a); this.f.It() }, am: function() { return this.Bc }, C: function(a, d, e) { this.f.mP(a); b.e.prototype.C.call(this, a, d, e) }, It: function() { this.f.It() }, Wc: function(a) { a = String(a); var d = a.length; this.Bc = a; this.Na(d * this.ul, this.gk); this.f.Wc(a); this.f.It(); this.quadsToDraw = d } }); var ma = b.oe.prototype; b.i(ma, "opacity", ma.bh, ma.Hb); b.i(ma, "color", ma.rf, ma.X); b.i(ma, "string", ma.am, ma.Wc); b.oe.create = function(a, d, e, f, g) { return new b.oe(a, d, e, f, g) }; (function() { b.oe.n = function(a) { b.Rd.n.call(this, a); this.cb = !1 }; var a = b.oe.n.prototype = Object.create(b.Rd.n.prototype); a.constructor = b.oe.n; a.mX = function() { var a = this.k; a.$c = !0; a.Zc = !1 }; a.It = function() { for (var a = this.k, e = a.Bc || "", f = e.length, g = this.O, h = a.ul, k = a.gk, m = 0; m < f; m++) { var n = e.charCodeAt(m) - a.AH.charCodeAt(0), n = b.rect(parseInt(n % a.Dr, 10) * h, parseInt(n / a.Dr, 10) * k, h, k), p = e.charCodeAt(m), s = a.gi(m); s ? 32 === p ? (s.T(), s.Fc(b.rect(0, 0, 10, 10), !1, b.size(0, 0))) : (s.ea(g, n), s.visible = !0) : (s = new b.B, 32 === p ? (s.T(), s.Fc(b.rect(0, 0, 10, 10), !1, b.size(0, 0))) : s.ea(g, n), b.e.prototype.C.call(a, s, 0, m)); s.I(m * h + h / 2, k / 2) } }; a.Wc = function() { var a = this.k; if (a.m) for (var a = a.m, e = a.length, f = 0; f < e; f++) { var g = a[f]; g && !g.N4 && (g.visible = !1) } }; a.mP = function() { child.N4 = !0 } })(); (function() { b.oe.p = function(a) { b.Rd.p.call(this, a); this.cb = !0 }; var a = b.oe.p.prototype = Object.create(b.Rd.p.prototype); a.constructor = b.oe.p; a.mX = function() { var a = this.k; a.$c = !0; a.Zc = !0 }; a.Eb = function(a) { b.Rd.p.prototype.Eb.call(this, a); b.t_ && (a = this.k.L(), a = [b.d(0, 0), b.d(a.width, 0), b.d(a.width, a.height), b.d(0, a.height)], b.jl.ei(a, 4, !0)) }; a.It = function() { var a = this.k, e = a.Bc, f = e.length, g = this.Lb, h = g.texture, k = h.pixelsWidth, h = h.pixelsHeight, m = a.ul, n = a.gk; a.qA || (m = a.ul * b.Db(), n = a.gk * b.Db()); f > g.se && b.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length"); for (var p = g.quads, s = this.Vb, s = { r: s.r, g: s.g, b: s.b, a: a.ad }, t = a.ul, v = 0; v < f; v++) { var w = e.charCodeAt(v) - a.AH.charCodeAt(0), x = w % a.Dr, u = 0 | w / a.Dr, y; b.Cy ? (x = (2 * x * m + 1) / (2 * k), w = x + (2 * m - 2) / (2 * k), u = (2 * u * n + 1) / (2 * h), y = u + (2 * n - 2) / (2 * h)) : (x = x * m / k, w = x + m / k, u = u * n / h, y = u + n / h); var C = p[v], F = C.tl, G = C.tr, D = C.bl, C = C.br; F.texCoords.u = x; F.texCoords.v = u; G.texCoords.u = w; G.texCoords.v = u; D.texCoords.u = x; D.texCoords.v = y; C.texCoords.u = w; C.texCoords.v = y; D.vertices.x = v * t; D.vertices.y = 0; D.vertices.z = 0; C.vertices.x = v * t + t; C.vertices.y = 0; C.vertices.z = 0; F.vertices.x = v * t; F.vertices.y = a.gk; F.vertices.z = 0; G.vertices.x = v * t + t; G.vertices.y = a.gk; G.vertices.z = 0; F.colors = s; G.colors = s; D.colors = s; C.colors = s } 0 < f && (g.dirty = !0, a = g.totalQuads, f > a && g.NV(f - a)) }; a.Wc = function(a) { a = a.length; a > this.Lb.totalQuads && this.Lb.KL(a) }; a.mP = function() {} })(); b.Qga = -1; b.xg = b.sb.extend({ Cb: !1, Bc: "", Fg: null, ev: "", zr: "", Ju: b.ro, Kd: -1, GA: !1, rA: null, uS: null, R: !1, Ma: "LabelBMFont", Ic: function() { return b.W === b.ya ? new b.xg.p(this) : new b.xg.n(this) }, JS: function(a, d) { d ? this.zr = a : this.Bc = a; var e = this.m; if (e) for (var f = 0; f < e.length; f++) { var g = e[f]; g && g.Ci(!1) } this.R && (this.gC(), d && this.Di()) }, ctor: function(a, d, e, f, g) { b.sb.prototype.ctor.call(this); this.rA = b.d(0, 0); this.uS = []; this.$c = this.Zc = !0; this.je(a, d, e, f, g) }, Et: function() { return this.R }, ls: function(a, d) { this.addEventListener("load", a, d) }, tf: function() { return this.Cb }, Le: function(a) { this.Cb = a; if (a = this.m) for (var d = 0; d < a.length; d++) { var e = a[d]; e && (e.opacityModifyRGB = this.Cb) } }, Sm: function() { this.f.Sm() }, T: function() { return this.je(null, null, null, null, null) }, je: function(a, d, e, f, g) { a = a || ""; this.Fg && b.log("cc.LabelBMFont.initWithString(): re-init is no longer supported"); if (d) { var h = b.Z.sf(d); if (!h) return b.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1; this.Fg = h; this.ev = d; d = b.Xa.Vc(h.XT); (this.R = h = d.R) || d.addEventListener("load", function(a) { this.R = !0; this.ea(a, this.zr.length); this.Wc(this.zr, !0); this.dispatchEvent("load") }, this) } else d = new b.ja, h = new Image, d.jd(h), this.R = !1; return this.ea(d, a.length) ? (this.Ju = f || b.dz, this.rA = g || b.d(0, 0), this.Kd = null == e ? -1 : e, this.Hl = 255, this.Qg = b.color(255, 255, 255, 255), this.U.width = 0, this.U.height = 0, this.rb(0.5, 0.5), this.f.iR(), this.Wc(a, !0), !0) : !1 }, gC: function() { var a = this.f.O || this.textureAtlas.texture, d = 0, e = b.size(0, 0), f = 0, g = 1, h = this.Bc, k = h ? h.length : 0; if (0 !== k) { var m, n = this.Fg, p = n.kba, s = n.aK, t = n.S8; for (m = 0; m < k - 1; m++) 10 === h.charCodeAt(m) && g++; var v = s * g, g = -(s - s * g), w = -1; for (m = 0; m < k; m++) if (s = h.charCodeAt(m), 0 !== s) if (10 === s) d = 0, g -= n.aK; else { var x = p[w << 16 | s & 65535] || 0, u = t[s]; if (u) { var y = b.rect(u.rect.x, u.rect.y, u.rect.width, u.rect.height), y = b.Qn(y); y.x += this.rA.x; y.y += this.rA.y; (w = this.gi(m)) ? this.f.vT(w, y, s): (w = new b.B, w.ea(a, y, !1), w.PR = !0, this.C(w, 0, m)); w.opacityModifyRGB = this.Cb; this.f.uT(w); y = b.d(d + u.NY + 0.5 * u.rect.width + x, g + (n.aK - u.OY) - 0.5 * y.height * b.Db()); w.I(b.EL(y)); d += u.vM + x; w = s; f < d && (f = d) } else b.log("cocos2d: LabelBMFont: character not found " + h[m]) } e.width = u && u.vM < u.rect.width ? f - u.vM + u.rect.width : f; e.height = v; this.Na(b.fY(e)) } }, Dwa: function(a) { var d = this.m; if (d) for (var e = 0, f = d.length; e < f; e++) { var g = d[e]; g && (g.visible = !1) } this.Fg && this.gC(); a || this.Di() }, am: function() { return this.zr }, Wc: function(a, d) { a = String(a); null == d && (d = !0); null != a && b.Je(a) || (a += ""); this.zr = a; this.JS(a, d) }, g6: function(a) { this.Wc(a, !1) }, wta: function(a) { this.Wc(a, !0) }, mA: function(a, d) { if (0 >= d) return 0; var e = this.gi(a); return this.XQ(this.gi(a + d)) - this.XQ(e) }, oG: function(a, d, e, f) { for (var g = a[d], h = 0, k = 0; k < d; k++) h += a[k].length; var h = h + d - f, m = this.mA(h, a[d].length - 1); if (m > e && 1 < g.length) { f = e / m * g.length | 0; for (var k = g.substr(f), n = m - this.mA(h + f, k.length - 1), p, s = 0, t = 0; n > e && 100 > t++;) f *= e / n, f |= 0, k = g.substr(f), n = m - this.mA(h + f, k.length - 1); for (t = 0; n < e && 100 > t++;) k && (s = (p = b.M.LT.exec(k)) ? p[0].length : 1, p = k), this.GA && (s = 0), f += s, k = g.substr(f), n = m - this.mA(h + f, k.length - 1); f -= s; 0 === f && (f = 1, p = p.substr(1)); e = g.substr(0, f); b.M.MY && b.M.fT.test(p || k) && (s = (h = b.M.ER.exec(e)) ? h[0].length : 0, this.GA && (s = 0), f -= s, p = g.substr(f), e = g.substr(0, f)); b.M.JQ.test(p) && (h = b.M.DR.exec(e)) && e !== h[0] && (s = h[0].length, this.GA && (s = 0), f -= s, p = g.substr(f), e = g.substr(0, f)); a[d] = p || k; a.splice(d, 0, e) } }, Di: function() { this.string = this.zr; var a, d, e; if (0 < this.Kd) { var f = this.string.split("\n"), g = "", h = 0, k = 0; for (a = 0; a < f.length; a++) k = f.length, this.oG(f, a, this.Kd * this.Wb, h), k < f.length && h++, 0 < a && (g += "\n"), g += f[a]; g += String.fromCharCode(0); this.JS(g, !1) } if (this.Ju !== b.dz) for (f = a = 0, g = this.Bc.length, h = [], k = 0; k < g; k++) if (10 === this.Bc[k].charCodeAt(0) || 0 === this.Bc[k].charCodeAt(0)) { d = 0; var m = h.length; if (0 === m) f++; else if (e = a + m - 1 + f, !(0 > e)) { var n = this.gi(e); if (null != n) { d = n.vd() + n.Nh() / 2; n = 0; switch (this.Ju) { case b.ro: n = this.width / 2 - d / 2; break; case b.jO: n = this.width - d } if (0 !== n) for (d = 0; d < m; d++) e = a + d + f, 0 > e || (e = this.gi(e)) && (e.x += n); a += m; f++; h.length = 0 } } } else h.push(this.Bc[a]) }, Mca: function(a) { this.Ju = a; this.Di() }, C3: function() { return this.Ju }, Rca: function(a) { this.Kd = a; this.Di() }, YG: function() { return this.Kd }, hua: function(a) { this.GA = a; this.Di() }, Tn: function(a, d) { b.e.prototype.Tn.call(this, a, d); this.Di() }, oh: function(a) { b.e.prototype.oh.call(this, a); this.Di() }, ph: function(a) { b.e.prototype.ph.call(this, a); this.Di() }, Rta: function(a) { if (null != a && a !== this.ev) { var d = b.Z.sf(a); d ? (this.ev = a, this.Fg = d, a = b.Xa.Vc(d.XT), this.R = d = a.R, this.texture = a, this.f.xT(), d ? this.gC() : a.addEventListener("load", function(a) { this.R = !0; this.texture = a; this.gC(); this.Sm(); this.Di(); this.dispatchEvent("load") }, this)) : b.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file") } }, mna: function() { return this.ev }, Oa: function(a) { this.f.Oa(a) }, rb: function(a, d) { b.e.prototype.rb.call(this, a, d); this.Di() }, xI: function(a) { b.e.prototype.xI.call(this, a); this.Di() }, yI: function(a) { b.e.prototype.yI.call(this, a); this.Di() }, Gia: function() {}, lja: function(a, d) { var e = 0; if (this.d3.lba) { var f = this.d3.lba[(a << 16 | d & 65535).toString()]; f && (e = f.hka) } return e }, XQ: function(a) { return a.vd() * this.Wb - a.Nh() * this.Wb * a.TG() }, Yia: function(a) { return a.vd() * this.Wb + a.Nh() * this.Wb * a.TG() }, wR: function(a) { a = a.charCodeAt(0); return 9 <= a && 13 >= a || 32 === a || 133 === a || 160 === a || 5760 === a || 8192 <= a && 8202 >= a || 8232 === a || 8233 === a || 8239 === a || 8287 === a || 12288 === a }, Oja: function(a) { var d = a.length; if (!(0 >= d) && (d -= 1, this.wR(a[d]))) { for (var e = d - 1; 0 <= e; --e) if (this.wR(a[e])) d = e; else break; this.I6(a, d) } }, I6: function(a, d) { var e = a.length; d >= e || 0 > d || a.splice(d, e) } }); var na = b.xg.prototype; b.zh.prototype.apply(na); b.i(na, "string", na.am, na.g6); b.i(na, "boundingWidth", na.YG, na.Rca); b.i(na, "textAlign", na.C3, na.Mca); b.xg.create = function(a, d, e, f, g) { return new b.xg(a, d, e, f, g) }; b.w3 = { j_: /info [^\n]*(\n|$)/gi, jZ: /common [^\n]*(\n|$)/gi, c0: /page [^\n]*(\n|$)/gi, iZ: /char [^\n]*(\n|$)/gi, r_: /kerning [^\n]*(\n|$)/gi, l_: /\w+=[^ \r\n]+/gi, k_: /^[\-]?\d+$/, Cv: function(a) { a = a.match(this.l_); var d = {}; if (a) for (var e = 0, f = a.length; e < f; e++) { var g = a[e], h = g.indexOf("\x3d"), k = g.substring(0, h), g = g.substring(h + 1); g.match(this.k_) ? g = parseInt(g) : '"' === g[0] && (g = g.substring(1, g.length - 1)); d[k] = g } return d }, Pba: function(a, d) { var e = {}; this.Cv(a.match(this.j_)[0]); var f = this.Cv(a.match(this.jZ)[0]); e.aK = f.lineHeight; if (b.W === b.ya) { var g = b.ts.tv; (f.scaleW > g.width || f.scaleH > g.height) && b.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported") } 1 !== f.pages && b.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page"); f = this.Cv(a.match(this.c0)[0]); 0 !== f.id && b.log("cc.LabelBMFont._parseImageFileName() : file could not be found"); e.XT = b.path.qs(d, f.file); for (var h = a.match(this.iZ), k = e.S8 = {}, f = 0, g = h.length; f < g; f++) { var m = this.Cv(h[f]); k[m.id] = { rect: { x: m.x, y: m.y, width: m.width, height: m.height }, NY: m.xoffset, OY: m.yoffset, vM: m.xadvance } } h = e.kba = {}; if (k = a.match(this.r_)) for (f = 0, g = k.length; f < g; f++) m = this.Cv(k[f]), h[m.first << 16 | m.second & 65535] = m.amount; return e }, load: function(a, d, e, f) { var g = this; b.Z.cD(a, function(a, e) { if (a) return f(a); f(null, g.Pba(e, d)) }) } }; b.Z.Bj(["fnt"], b.w3); (function() { b.xg.n = function(a) { b.sb.n.call(this, a); this.cb = !0 }; var a = b.xg.n.prototype = Object.create(b.sb.n.prototype); a.constructor = b.xg.n; a.Eb = function() { void 0 }; a.vT = function(a, e, f) { 32 === f ? a.Fc(e, !1, b.size(0, 0)) : (a.Fc(e, !1), a.visible = !0) }; a.uT = function(a) { a.Vb = this.Vb; a.f.va(b.e.V.Ka); a.ad = this.ad; a.f.va(b.e.V.Ha) }; a.xT = function() { var a = this.k; a.gc = a.texture }; a.Oa = function(a) { for (var e = this.k.m, f = this.Vb, g = 0; g < e.length; g++) { var h = e[g], k = h.f, m = k.Vb; if (this.O === k.O || m.r === f.r && m.g === f.g && m.b === f.b) h.texture = a } this.O = a }; a.Sm = b.fa.DB ? function() { var a = this.k, e = a.xa(); if (e && 0 < e.L().width) { var f = this.gc.Sa; if (f) { var g = e.Sa, h = b.rect(0, 0, f.width, f.height); g instanceof HTMLCanvasElement && !a.Gf ? b.B.n.Lo(f, this.Vb, h, g) : (g = b.B.n.Lo(f, this.Vb, h), e = new b.ja, e.jd(g), e.Tb()); a.Oa(e) } } } : function() { var a = this.k, e, f = a.xa(); if (f && 0 < f.L().width && (e = f.Sa)) { var g = b.Xa.zC(this.gc.Sa); g && (e instanceof HTMLCanvasElement && !this.Gf ? (b.B.n.Ko(e, g, this.Vb, null, e), this.Oa(f)) : (e = b.B.n.Ko(e, g, this.Vb), f = new b.ja, f.jd(e), f.Tb(), a.Oa(f))) } }; a.D6 = function(a) { b.e.prototype.EY.call(a, this.ad) }; a.C6 = function(a) { b.e.prototype.DY.call(a, this.Vb) }; a.iR = function() {} })(); (function() { b.xg.p = function(a) { b.sb.p.call(this, a); this.cb = !0 }; var a = b.xg.p.prototype = Object.create(b.sb.p.prototype); a.constructor = b.xg.p; a.vT = function(a, e) { a.Fc(e, !1); a.visible = !0 }; a.xT = function() {}; a.Sm = function() {}; a.D6 = function(a) { a.EY(this.ad) }; a.C6 = function(a) { a.DY(this.Vb) }; a.iR = function() { var a = this.k, e = a.textureAtlas.texture; a.Cb = e.Jk(); var f = a.uS = new b.B; f.ea(e, b.rect(0, 0, 0, 0), !1); f.batchNode = a }; a.Eb = function(a) { b.sb.p.prototype.Eb.call(this, a); a = this.k; if (b.u_) { a = a.L(); var e = b.d(0 | -this.Dg.x, 0 | -this.Dg.y); a = [b.d(e.x, e.y), b.d(e.x + a.width, e.y), b.d(e.x + a.width, e.y + a.height), b.d(e.x, e.y + a.height)]; b.jl.tt(0, 255, 0, 255); b.jl.ei(a, 4, !0) } }; a.uT = function() {} })(); b.oo = b.e.extend({ texture: null, zs: !1, Tk: !1, H: null, op: 0, MG: 0, Vo: 0, DH: 0, hn: 0, gI: 0, aI: null, $H: null, kb: null, ar: null, Wg: null, Ce: null, Pz: null, IB: null, Ma: "MotionStreak", ctor: function(a, d, e, f, g) { b.e.prototype.ctor.call(this); this.Sh = b.d(0, 0); this.H = new b.Gc(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA); this.Tk = this.zs = !1; this.texture = null; this.gI = this.hn = this.DH = this.Vo = this.MG = this.op = 0; this.IB = this.Pz = this.Ce = this.Wg = this.ar = this.kb = this.$H = this.aI = null; void 0 !== g && this.taa(a, d, e, f, g) }, xa: function() { return this.texture }, Oa: function(a) { this.texture !== a && (this.texture = a) }, Gk: function() { return this.H }, sg: function(a, d) { void 0 === d ? this.H = a : (this.H.src = a, this.H.$ = d) }, bh: function() { b.log("cc.MotionStreak.getOpacity has not been supported."); return 0 }, Hb: function() { b.log("cc.MotionStreak.setOpacity has not been supported.") }, Le: function() {}, tf: function() { return !1 }, Qpa: function() { return this.zs }, Qta: function(a) { this.zs = a }, eqa: function() { return this.Tk }, Pua: function(a) { this.Tk = a }, Foa: function() { return this.op }, Sua: function(a) { this.op = a }, taa: function(a, d, e, f, g) { if (!g) throw "cc.MotionStreak.initWithFade(): Invalid filename or texture"; b.Je(g) && (g = b.Xa.Vc(g)); b.e.prototype.I.call(this, b.d(0, 0)); this.anchorY = this.anchorX = 0; this.ignoreAnchor = !0; this.Tk = !1; this.zs = !0; this.Vo = -1 === d ? e / 5 : d; this.Vo *= this.Vo; this.op = e; this.MG = 1 / a; this.DH = a = (0 | 60 * a) + 2; this.hn = 0; this.$H = new Float32Array(a); this.aI = new Float32Array(2 * a); this.kb = new Float32Array(4 * a); this.Wg = new Float32Array(4 * a); this.ar = new Uint8Array(8 * a); this.Ce = gl.createBuffer(); this.IB = gl.createBuffer(); this.Pz = gl.createBuffer(); this.H.src = gl.SRC_ALPHA; this.H.$ = gl.ONE_MINUS_SRC_ALPHA; this.texture = g; this.color = f; this.ot(); gl.bindBuffer(gl.ARRAY_BUFFER, this.Ce); gl.bufferData(gl.ARRAY_BUFFER, this.kb, gl.DYNAMIC_DRAW); gl.bindBuffer(gl.ARRAY_BUFFER, this.IB); gl.bufferData(gl.ARRAY_BUFFER, this.Wg, gl.DYNAMIC_DRAW); gl.bindBuffer(gl.ARRAY_BUFFER, this.Pz); gl.bufferData(gl.ARRAY_BUFFER, this.ar, gl.DYNAMIC_DRAW); return !0 }, nwa: function(a) { this.color = a; for (var d = this.ar, e = 0, f = 2 * this.hn; e < f; e++) d[4 * e] = a.r, d[4 * e + 1] = a.g, d[4 * e + 2] = a.b }, reset: function() { this.hn = 0 }, I: function(a, d) { this.Tk = !0; void 0 === d ? (this.Sh.x = a.x, this.Sh.y = a.y) : (this.Sh.x = a, this.Sh.y = d) }, vd: function() { return this.Sh.x }, UL: function(a) { this.Sh.x = a; this.Tk || (this.Tk = !0) }, Qf: function() { return this.Sh.y }, NX: function(a) { this.Sh.y = a; this.Tk || (this.Tk = !0) }, update: function(a) { if (this.Tk) { this.f.Ae(); a *= this.MG; var d, e, f, g, h = 0, k = this.hn, m = this.$H, n = this.aI, p = this.kb, s = this.ar; for (f = 0; f < k; f++) m[f] -= a, 0 >= m[f] ? h++ : (d = f - h, 0 < h ? (m[d] = m[f], n[2 * d] = n[2 * f], n[2 * d + 1] = n[2 * f + 1], g = 2 * f, e = 2 * d, p[2 * e] = p[2 * g], p[2 * e + 1] = p[2 * g + 1], p[2 * (e + 1)] = p[2 * (g + 1)], p[2 * (e + 1) + 1] = p[2 * (g + 1) + 1], g *= 4, e *= 4, s[e + 0] = s[g + 0], s[e + 1] = s[g + 1], s[e + 2] = s[g + 2], s[e + 4] = s[g + 4], s[e + 5] = s[g + 5], s[e + 6] = s[g + 6]) : e = 8 * d, d = 255 * m[d], s[e + 3] = d, s[e + 7] = d); k -= h; f = !0; k >= this.DH ? f = !1 : 0 < k && (a = b.EW(b.d(n[2 * (k - 1)], n[2 * (k - 1) + 1]), this.Sh) < this.Vo, e = 1 === k ? !1 : b.EW(b.d(n[2 * (k - 2)], n[2 * (k - 2) + 1]), this.Sh) < 2 * this.Vo, a || e) && (f = !1); f && (n[2 * k] = this.Sh.x, n[2 * k + 1] = this.Sh.y, m[k] = 1, m = 8 * k, f = this.Fw(), s[m] = f.r, s[m + 1] = f.g, s[m + 2] = f.b, s[m + 4] = f.r, s[m + 5] = f.g, s[m + 6] = f.b, s[m + 3] = 255, s[m + 7] = 255, 0 < k && this.zs && (1 < k ? b.uM(n, this.op, this.kb, k, 1) : b.uM(n, this.op, this.kb, 0, 2)), k++); this.zs || b.uM(n, this.op, this.kb, 0, k); if (k && this.gI !== k) { n = 1 / k; s = this.Wg; for (f = 0; f < k; f++) s[4 * f] = 0, s[4 * f + 1] = n * f, s[2 * (2 * f + 1)] = 1, s[2 * (2 * f + 1) + 1] = n * f; this.gI = k } this.hn = k } }, Ic: function() { return b.W === b.ya ? new b.oo.p(this) : null } }); b.oo.create = function(a, d, e, f, g) { return new b.oo(a, d, e, f, g) }; b.oo.p = function(a) { b.e.p.call(this, a); this.cb = !0; this.za = b.le.Dc(b.Sj) }; b.oo.p.prototype = Object.create(b.e.p.prototype); b.oo.p.prototype.constructor = b.B.p; b.oo.p.prototype.Eb = function(a) { var d = this.k; 1 >= d.hn || !d.texture || !d.texture.R || (a = a || b.A, this.za.jc(), this.za.Ug(this.Mc), b.hd(b.Cq), b.ji(d.H.src, d.H.$), b.Rf(d.texture), a.bindBuffer(a.ARRAY_BUFFER, d.Ce), a.bufferData(a.ARRAY_BUFFER, d.kb, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, d.IB), a.bufferData(a.ARRAY_BUFFER, d.Wg, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, 0, 0), a.bindBuffer(a.ARRAY_BUFFER, d.Pz), a.bufferData(a.ARRAY_BUFFER, d.ar, a.DYNAMIC_DRAW), a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 0, 0), a.drawArrays(a.TRIANGLE_STRIP, 0, 2 * d.hn), b.Of++) }; b.Gi = b.e.extend({ grid: null, Xb: null, Hs: function() { return this.grid }, hda: function(a) { this.grid = a }, Rk: function(a) { this.Xb = a }, Mja: function() { var a = this.kT, d = b.Ob.top, e = this.He(), f = a.s; f[0] = e.a; f[4] = e.c; f[12] = e.ma; f[1] = e.b; f[5] = e.K; f[13] = e.na; f[14] = this.jw; d.multiply(a); null === this.Mi || this.grid && this.grid.Ln() || (d = this.f.Dg, a = d.x, d = d.y, 0 !== a || 0 !== d ? (b.qF || (a |= 0, d |= 0), b.jW(a, d), this.Mi.rW(), b.jW(-a, -d)) : this.Mi.rW()) }, Ic: function() { return b.W === b.ya ? new b.Gi.p(this) : new b.e.n(this) } }); r = b.Gi.prototype; b.i(r, "target", null, r.Rk); b.Gi.create = function() { return new b.Gi }; (function() { b.Gi.p = function(a) { b.e.p.call(this, a); this.cb = !1; this.r4 = new b.wg(this, this.Jba); this.s4 = new b.wg(this, this.Kba) }; var a = b.Gi.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.Gi.p; a.Q = function(a) { var e = this.k; if (e.Ta) { a = a || P(this); e.Ga && e.Ga.f && (this.Zd = e.Ga.f.Zd + 1); var f = b.Ob; f.stack.push(f.top); this.cd(a); f.top = this.Mc; b.oa.Ec(this.r4); e.Xb && e.Xb.Q(); if ((a = e.m) && 0 < a.length) { var g = a.length; e.Ne(); for (e = 0; e < g; e++) { var h = a[e]; h && h.Q() } } b.oa.Ec(this.s4); this.G = 0; f.top = f.stack.pop() } }; a.Jba = function() { var a = this.k.grid; a && a.Hq && a.r7() }; a.Kba = function() { var a = this.k.grid; a && a.Hq && a.U6(this.k) } })(); b.Gwa = function() { return { x: 0, y: 0 } }; b.Yn = function(a, d) { return { x: a, y: d } }; b.wf = function(a, d) { return b.Yn(a.x + d.x, a.y + d.y) }; b.Pc = function(a, d) { return b.Yn(a.x - d.x, a.y - d.y) }; b.me = function(a, d) { return b.Yn(a.x * d, a.y * d) }; b.Kt = function(a) { return b.Yn(-a.y, a.x) }; b.uh = function(a) { return b.Yn(-a.x, -a.y) }; b.JY = function(a, d) { return a.x * d.x + a.y * d.y }; b.Fwa = function(a) { return b.Yn(Math.cos(a), Math.sin(a)) }; b.Ux = function(a) { a = b.ni(b.d(a.x, a.y)); return b.Yn(a.x, a.y) }; b.zf = function(a) { return b.Yn(a.x, a.y) }; b.Za = function(a) { return { u: a.x, v: a.y } }; b.LZ = b.e.extend({ Qa: null, H: null, Gd: 1, ff: null, Ma: "DrawNodeCanvas", ctor: function() { b.e.prototype.ctor.call(this); var a = this.f; a.Qa = this.Qa = []; a.ff = this.ff = b.color(255, 255, 255, 255); a.H = this.H = new b.Gc(b.Td, b.Sd); this.T() }, Gk: function() { return this.H }, sg: function(a, d) { void 0 === d ? (this.H.src = a.src, this.H.$ = a.$) : (this.H.src = a, this.H.$ = d) }, SL: function(a) { this.Gd = a }, M9: function() { return this.Gd }, tt: function(a) { var d = this.ff; d.r = a.r; d.g = a.g; d.b = a.b; d.a = null == a.a ? 255 : a.a }, Ge: function() { return b.color(this.ff.r, this.ff.g, this.ff.b, this.ff.a) }, nK: function(a, d, e, f, g) { f = null == f ? this.Gd : f; g = g || this.Ge(); null == g.a && (g.a = 255); a = [a, b.d(d.x, a.y), d, b.d(a.x, d.y)]; d = new b.Jm(b.zb.Em); d.vh = a; d.lineWidth = f; d.hm = g; d.TC = !0; d.fm = !0; d.lineCap = "butt"; if (d.fillColor = e) null == e.a && (e.a = 255), d.UC = !0; this.Qa.push(d) }, jK: function(a, d, e, f, g, h, k) { h = h || this.Gd; k = k || this.Ge(); null == k.a && (k.a = 255); for (var m = 2 * Math.PI / f, n = [], p = 0; p <= f; p++) { var s = p * m; n.push(b.d(d * Math.cos(s + e) + a.x, d * Math.sin(s + e) + a.y)) } g && n.push(b.d(a.x, a.y)); a = new b.Jm(b.zb.Em); a.vh = n; a.lineWidth = h; a.hm = k; a.TC = !0; a.fm = !0; this.Qa.push(a) }, mK: function(a, d, e, f, g, h) { g = g || this.Gd; h = h || this.Ge(); null == h.a && (h.a = 255); for (var k = [], m = 0, n = 0; n < f; n++) k.push(b.d(Math.pow(1 - m, 2) * a.x + 2 * (1 - m) * m * d.x + m * m * e.x, Math.pow(1 - m, 2) * a.y + 2 * (1 - m) * m * d.y + m * m * e.y)), m += 1 / f; k.push(b.d(e.x, e.y)); a = new b.Jm(b.zb.Em); a.vh = k; a.lineWidth = g; a.hm = h; a.fm = !0; a.lineCap = "round"; this.Qa.push(a) }, kK: function(a, d, e, f, g, h, k) { h = h || this.Gd; k = k || this.Ge(); null == k.a && (k.a = 255); for (var m = [], n = 0, p = 0; p < g; p++) m.push(b.d(Math.pow(1 - n, 3) * a.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n * e.x + n * n * n * f.x, Math.pow(1 - n, 3) * a.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * e.y + n * n * n * f.y)), n += 1 / g; m.push(b.d(f.x, f.y)); a = new b.Jm(b.zb.Em); a.vh = m; a.lineWidth = h; a.hm = k; a.fm = !0; a.lineCap = "round"; this.Qa.push(a) }, iK: function(a, d, e, f) { this.Jp(a, 0.5, d, e, f) }, Jp: function(a, d, e, f, g) { f = f || this.Gd; g = g || this.Ge(); null == g.a && (g.a = 255); for (var h = [], k, m, n = 1 / a.length, p = 0; p < e + 1; p++) m = p / e, 1 === m ? (k = a.length - 1, m = 1) : (k = 0 | m / n, m = (m - n * k) / n), k = b.cC(b.Nd(a, k - 1), b.Nd(a, k - 0), b.Nd(a, k + 1), b.Nd(a, k + 2), d, m), h.push(k); a = new b.Jm(b.zb.Em); a.vh = h; a.lineWidth = f; a.hm = g; a.fm = !0; a.lineCap = "round"; this.Qa.push(a) }, lK: function(a, d, e) { e = e || this.Ge(); null == e.a && (e.a = 255); var f = new b.Jm(b.zb.mO); f.vh = [a]; f.lineWidth = d; f.fillColor = e; this.Qa.push(f) }, k8: function(a, d, e) { if (a && 0 != a.length) { e = e || this.Ge(); null == e.a && (e.a = 255); for (var f = 0, g = a.length; f < g; f++) this.lK(a[f], d, e) } }, oK: function(a, d, e, f) { e = e || this.Gd; f = f || this.Ge(); null == f.a && (f.a = 255); var g = new b.Jm(b.zb.Em); g.vh = [a, d]; g.lineWidth = 2 * e; g.hm = f; g.fm = !0; g.lineCap = "round"; this.Qa.push(g) }, o8: function(a, d, e, f) { e = null == e ? this.Gd : e; f = f || this.Ge(); null == f.a && (f.a = 255); var g = new b.Jm(b.zb.Em); g.vh = a; g.fillColor = d; g.lineWidth = e; g.hm = f; g.TC = !0; g.fm = !0; g.lineCap = "round"; d && (g.UC = !0); this.Qa.push(g) }, ei: function(a, d, e, f) { for (var g = [], h = 0; h < a.length; h++) g.push(b.d(a[h].x, a[h].y)); return this.o8(g, d, e, f) }, clear: function() { this.Qa.length = 0 }, Ic: function() { return new b.zb.n(this) } }); b.MZ = b.e.extend({ Uq: 0, Qa: null, Vl: null, mT: null, lT: null, Gd: 1, ff: null, H: null, Ra: !1, Ma: "DrawNodeWebGL", Gk: function() { return this.H }, sg: function(a, d) { void 0 === d ? (this.H.src = a.src, this.H.$ = a.$) : (this.H.src = a, this.H.$ = d) }, ctor: function() { b.e.prototype.ctor.call(this); this.Qa = []; this.H = new b.Gc(b.Td, b.Sd); this.ff = b.color(255, 255, 255, 255); this.T() }, T: function() { return b.e.prototype.T.call(this) ? (this.shaderProgram = b.le.Dc(b.VN), this.bv(64), this.mT = b.A.createBuffer(), this.Ra = !0) : !1 }, SL: function(a) { this.Gd = a }, M9: function() { return this.Gd }, tt: function(a) { var d = this.ff; d.r = a.r; d.g = a.g; d.b = a.b; d.a = a.a }, Ge: function() { return b.color(this.ff.r, this.ff.g, this.ff.b, this.ff.a) }, nK: function(a, d, e, f, g) { f = null == f ? this.Gd : f; g = g || this.Ge(); null == g.a && (g.a = 255); a = [a, b.d(d.x, a.y), d, b.d(a.x, d.y)]; null == e ? this.aA(a, f, g, !0) : this.ei(a, e, f, g) }, jK: function(a, d, e, f, g, h, k) { h = h || this.Gd; k = k || this.Ge(); null == k.a && (k.a = 255); var m = 2 * Math.PI / f, n = [], p; for (p = 0; p <= f; p++) { var s = p * m; n.push(b.d(d * Math.cos(s + e) + a.x, d * Math.sin(s + e) + a.y)) } g && n.push(b.d(a.x, a.y)); h *= 0.5; p = 0; for (a = n.length; p < a - 1; p++) this.oK(n[p], n[p + 1], h, k) }, mK: function(a, d, e, f, g, h) { g = g || this.Gd; h = h || this.Ge(); null == h.a && (h.a = 255); for (var k = [], m = 0, n = 0; n < f; n++) k.push(b.d(Math.pow(1 - m, 2) * a.x + 2 * (1 - m) * m * d.x + m * m * e.x, Math.pow(1 - m, 2) * a.y + 2 * (1 - m) * m * d.y + m * m * e.y)), m += 1 / f; k.push(b.d(e.x, e.y)); this.aA(k, g, h, !1) }, kK: function(a, d, e, f, g, h, k) { h = h || this.Gd; k = k || this.Ge(); null == k.a && (k.a = 255); for (var m = [], n = 0, p = 0; p < g; p++) m.push(b.d(Math.pow(1 - n, 3) * a.x + 3 * Math.pow(1 - n, 2) * n * d.x + 3 * (1 - n) * n * n * e.x + n * n * n * f.x, Math.pow(1 - n, 3) * a.y + 3 * Math.pow(1 - n, 2) * n * d.y + 3 * (1 - n) * n * n * e.y + n * n * n * f.y)), n += 1 / g; m.push(b.d(f.x, f.y)); this.aA(m, h, k, !1) }, iK: function(a, d, e, f) { this.Jp(a, 0.5, d, e, f) }, Jp: function(a, d, e, f, g) { f = f || this.Gd; g = g || this.Ge(); null == g.a && (g.a = 255); for (var h = [], k, m, n = 1 / a.length, p = 0; p < e + 1; p++) m = p / e, 1 === m ? (k = a.length - 1, m = 1) : (k = 0 | m / n, m = (m - n * k) / n), k = b.cC(b.Nd(a, k - 1), b.Nd(a, k - 0), b.Nd(a, k + 1), b.Nd(a, k + 2), d, m), h.push(k); f *= 0.5; a = 0; for (d = h.length; a < d - 1; a++) this.oK(h[a], h[a + 1], f, g) }, B5: function() { var a = b.A; b.hd(b.Cq); a.bindBuffer(a.ARRAY_BUFFER, this.mT); this.Ra && (a.bufferData(a.ARRAY_BUFFER, this.Vl, a.STREAM_DRAW), this.Ra = !1); var d = b.pe.BYTES_PER_ELEMENT; a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, d, 0); a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, d, 8); a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, d, 12); a.drawArrays(a.TRIANGLES, 0, 3 * this.Qa.length); b.li() }, bv: function(a) { var d = this.Qa; if (d.length + a > this.Uq) { var e = b.tc.BYTES_PER_ELEMENT; this.Uq += Math.max(this.Uq, a); if (null == d || 0 === d.length) this.Qa = [], this.Vl = new ArrayBuffer(e * this.Uq), this.lT = new Uint8Array(this.Vl); else { a = []; for (var f = new ArrayBuffer(e * this.Uq), g = 0; g < d.length; g++) a[g] = new b.tc(d[g].a, d[g].b, d[g].c, f, g * e); this.lT = new Uint8Array(f); this.Vl = f; this.Qa = a } } }, lK: function(a, d, e) { e = e || this.Ge(); null == e.a && (e.a = 255); var f = { r: 0 | e.r, g: 0 | e.g, b: 0 | e.b, a: 0 | e.a }; e = { vertices: { x: a.x - d, y: a.y - d }, colors: f, texCoords: { u: -1, v: -1 } }; var g = { vertices: { x: a.x - d, y: a.y + d }, colors: f, texCoords: { u: -1, v: 1 } }, h = { vertices: { x: a.x + d, y: a.y + d }, colors: f, texCoords: { u: 1, v: 1 } }; a = { vertices: { x: a.x + d, y: a.y - d }, colors: f, texCoords: { u: 1, v: -1 } }; this.bv(6); this.Qa.push(new b.tc(e, g, h, this.Vl, this.Qa.length * b.tc.BYTES_PER_ELEMENT)); this.Qa.push(new b.tc(e, h, a, this.Vl, this.Qa.length * b.tc.BYTES_PER_ELEMENT)); this.Ra = !0 }, k8: function(a, d, e) { if (a && 0 !== a.length) { e = e || this.Ge(); null == e.a && (e.a = 255); for (var f = 0, g = a.length; f < g; f++) this.lK(a[f], d, e) } }, oK: function(a, d, e, f) { f = f || this.Ge(); null == f.a && (f.a = 255); e = e || 0.5 * this.Gd; this.bv(18); f = { r: 0 | f.r, g: 0 | f.g, b: 0 | f.b, a: 0 | f.a }; var g = b.zf(a); d = b.zf(d); a = b.Ux(b.Kt(b.Pc(d, g))); var h = b.Kt(a), k = b.me(a, e); e = b.me(h, e); var m = b.wf(d, b.Pc(k, e)), n = b.Pc(d, k), p = b.wf(d, k), s = b.Pc(g, k), t = b.wf(g, k), v = b.Pc(g, b.Pc(k, e)), g = b.wf(g, b.wf(k, e)), w = b.tc.BYTES_PER_ELEMENT, x = this.Vl, u = this.Qa; u.push(new b.tc({ vertices: b.Pc(d, b.wf(k, e)), colors: f, texCoords: b.Za(b.uh(b.wf(a, h))) }, { vertices: m, colors: f, texCoords: b.Za(b.Pc(a, h)) }, { vertices: n, colors: f, texCoords: b.Za(b.uh(a)) }, x, u.length * w)); u.push(new b.tc({ vertices: p, colors: f, texCoords: b.Za(a) }, { vertices: m, colors: f, texCoords: b.Za(b.Pc(a, h)) }, { vertices: n, colors: f, texCoords: b.Za(b.uh(a)) }, x, u.length * w)); u.push(new b.tc({ vertices: p, colors: f, texCoords: b.Za(a) }, { vertices: s, colors: f, texCoords: b.Za(b.uh(a)) }, { vertices: n, colors: f, texCoords: b.Za(b.uh(a)) }, x, u.length * w)); u.push(new b.tc({ vertices: p, colors: f, texCoords: b.Za(a) }, { vertices: s, colors: f, texCoords: b.Za(b.uh(a)) }, { vertices: t, colors: f, texCoords: b.Za(a) }, x, u.length * w)); u.push(new b.tc({ vertices: v, colors: f, texCoords: b.Za(b.Pc(h, a)) }, { vertices: s, colors: f, texCoords: b.Za(b.uh(a)) }, { vertices: t, colors: f, texCoords: b.Za(a) }, x, u.length * w)); u.push(new b.tc({ vertices: v, colors: f, texCoords: b.Za(b.Pc(h, a)) }, { vertices: g, colors: f, texCoords: b.Za(b.wf(a, h)) }, { vertices: t, colors: f, texCoords: b.Za(a) }, x, u.length * w)); this.Ra = !0 }, ei: function(a, d, e, f) { if (null == d) this.aA(a, e, f, !0); else { null == d.a && (d.a = 255); null == f.a && (f.a = 255); e = null == e ? this.Gd : e; e *= 0.5; d = { r: 0 | d.r, g: 0 | d.g, b: 0 | d.b, a: 0 | d.a }; f = { r: 0 | f.r, g: 0 | f.g, b: 0 | f.b, a: 0 | f.a }; var g = [], h, k, m, n, p = a.length; for (h = 0; h < p; h++) { k = b.zf(a[(h - 1 + p) % p]); m = b.zf(a[h]); n = b.zf(a[(h + 1) % p]); var s = b.Ux(b.Kt(b.Pc(m, k))); m = b.Ux(b.Kt(b.Pc(n, m))); g[h] = { offset: b.me(b.wf(s, m), 1 / (b.JY(s, m) + 1)), Pn: m } } s = 0 < e; this.bv(3 * (3 * p - 2)); var t = b.tc.BYTES_PER_ELEMENT, v = this.Vl, w = this.Qa, x = !1 == s ? 0.5 : 0; for (h = 0; h < p - 2; h++) k = b.Pc(b.zf(a[0]), b.me(g[0].offset, x)), m = b.Pc(b.zf(a[h + 1]), b.me(g[h + 1].offset, x)), n = b.Pc(b.zf(a[h + 2]), b.me(g[h + 2].offset, x)), w.push(new b.tc({ vertices: k, colors: d, texCoords: b.Za({ x: 0, y: 0 }) }, { vertices: m, colors: d, texCoords: b.Za({ x: 0, y: 0 }) }, { vertices: n, colors: d, texCoords: b.Za({ x: 0, y: 0 }) }, v, w.length * t)); for (h = 0; h < p; h++) { x = (h + 1) % p; k = b.zf(a[h]); m = b.zf(a[x]); n = g[h].Pn; var u = g[h].offset, y = g[x].offset, x = s ? b.Pc(k, b.me(u, e)) : b.Pc(k, b.me(u, 0.5)), C = s ? b.Pc(m, b.me(y, e)) : b.Pc(m, b.me(y, 0.5)); k = s ? b.wf(k, b.me(u, e)) : b.wf(k, b.me(u, 0.5)); m = s ? b.wf(m, b.me(y, e)) : b.wf(m, b.me(y, 0.5)); s ? (w.push(new b.tc({ vertices: x, colors: f, texCoords: b.Za(b.uh(n)) }, { vertices: C, colors: f, texCoords: b.Za(b.uh(n)) }, { vertices: m, colors: f, texCoords: b.Za(n) }, v, w.length * t)), w.push(new b.tc({ vertices: x, colors: f, texCoords: b.Za(b.uh(n)) }, { vertices: k, colors: f, texCoords: b.Za(n) }, { vertices: m, colors: f, texCoords: b.Za(n) }, v, w.length * t))) : (w.push(new b.tc({ vertices: x, colors: d, texCoords: b.Za({ x: 0, y: 0 }) }, { vertices: C, colors: d, texCoords: b.Za({ x: 0, y: 0 }) }, { vertices: m, colors: d, texCoords: b.Za(n) }, v, w.length * t)), w.push(new b.tc({ vertices: x, colors: d, texCoords: b.Za({ x: 0, y: 0 }) }, { vertices: k, colors: d, texCoords: b.Za(n) }, { vertices: m, colors: d, texCoords: b.Za(n) }, v, w.length * t))) } this.Ra = !0 } }, aA: function(a, d, e, f) { d = null == d ? this.Gd : d; e = e || this.ff; null == e.a && (e.a = 255); d *= 0.5; if (!(0 >= d)) { e = { r: 0 | e.r, g: 0 | e.g, b: 0 | e.b, a: 0 | e.a }; var g = [], h, k, m, n, p = a.length; for (h = 0; h < p; h++) { k = b.zf(a[(h - 1 + p) % p]); m = b.zf(a[h]); n = b.zf(a[(h + 1) % p]); var s = b.Ux(b.Kt(b.Pc(m, k))); m = b.Ux(b.Kt(b.Pc(n, m))); g[h] = { offset: b.me(b.wf(s, m), 1 / (b.JY(s, m) + 1)), Pn: m } } this.bv(3 * (3 * p - 2)); n = b.tc.BYTES_PER_ELEMENT; var s = this.Vl, t = this.Qa; f = f ? p : p - 1; for (h = 0; h < f; h++) { var v = (h + 1) % p; k = b.zf(a[h]); m = b.zf(a[v]); var w = g[h].Pn, x = g[h].offset, v = g[v].offset, u = b.Pc(k, b.me(x, d)); k = b.wf(k, b.me(x, d)); x = b.wf(m, b.me(v, d)); t.push(new b.tc({ vertices: u, colors: e, texCoords: b.Za(b.uh(w)) }, { vertices: b.Pc(m, b.me(v, d)), colors: e, texCoords: b.Za(b.uh(w)) }, { vertices: x, colors: e, texCoords: b.Za(w) }, s, t.length * n)); t.push(new b.tc({ vertices: u, colors: e, texCoords: b.Za(b.uh(w)) }, { vertices: k, colors: e, texCoords: b.Za(w) }, { vertices: x, colors: e, texCoords: b.Za(w) }, s, t.length * n)) } this.Ra = !0 } }, clear: function() { this.Qa.length = 0; this.Ra = !0 }, Ic: function() { return new b.zb.p(this) } }); b.zb = b.W === b.ya ? b.MZ : b.LZ; b.zb.create = function() { return new b.zb }; b.Jm = function(a) { this.type = a; this.fillColor = this.vh = null; this.lineWidth = 0; this.hm = null; this.lineCap = "butt"; this.fm = this.UC = this.TC = !1 }; b.zb.mO = 0; b.zb.y1 = 1; b.zb.Em = 2; b.zb.n = function(a) { b.e.n.call(this, a); this.cb = !0; this.H = this.ff = this.Qa = null }; b.zb.n.prototype = Object.create(b.e.n.prototype); b.zb.n.prototype.constructor = b.zb.n; b.zb.n.prototype.Eb = function(a, d, e) { a = a || b.A; a.getContext(); var f = this.k.ad / 255; if (0 !== f) { a.setTransform(this.jj, d, e); a.ut(f); this.H && this.H.src === b.SRC_ALPHA && this.H.$ === b.ONE && a.xx("lighter"); for (var f = this.Qa, g = 0, h = f.length; g < h; g++) { var k = f[g]; switch (k.type) { case b.zb.mO: this.p3(a, k, d, e); break; case b.zb.y1: this.s3(a, k, d, e); break; case b.zb.Em: this.r3(a, k, d, e) } } } }; b.zb.n.prototype.p3 = function(a, d, e, f) { var g = d.fillColor, h = d.vh[0]; d = d.lineWidth; var k = a.getContext(); a.Fj("rgba(" + (0 | g.r) + "," + (0 | g.g) + "," + (0 | g.b) + "," + g.a / 255 + ")"); k.beginPath(); k.arc(h.x * e, -h.y * f, d * e, 0, 2 * Math.PI, !1); k.closePath(); k.fill() }; b.zb.n.prototype.s3 = function(a, d, e, f) { var g = d.hm, h = d.vh[0], k = d.vh[1], m = d.lineWidth; d = d.lineCap; var n = a.getContext(); a.VD("rgba(" + (0 | g.r) + "," + (0 | g.g) + "," + (0 | g.b) + "," + g.a / 255 + ")"); n.lineWidth = m * e; n.beginPath(); n.lineCap = d; n.moveTo(h.x * e, -h.y * f); n.lineTo(k.x * e, -k.y * f); n.stroke() }; b.zb.n.prototype.r3 = function(a, d, e, f) { var g = d.vh, h = d.lineCap; if (null != g) { var k = d.fillColor, m = d.lineWidth, n = d.hm, p = d.TC, s = d.UC; d = d.fm; var t = a.getContext(), v = g[0]; t.lineCap = h; k && a.Fj("rgba(" + (0 | k.r) + "," + (0 | k.g) + "," + (0 | k.b) + "," + k.a / 255 + ")"); m && (t.lineWidth = m * e); n && a.VD("rgba(" + (0 | n.r) + "," + (0 | n.g) + "," + (0 | n.b) + "," + n.a / 255 + ")"); t.beginPath(); t.moveTo(v.x * e, -v.y * f); a = 1; for (h = g.length; a < h; a++) t.lineTo(g[a].x * e, -g[a].y * f); p && t.closePath(); s && t.fill(); d && t.stroke() } }; b.zb.p = function(a) { b.e.p.call(this, a); this.cb = !0 }; b.zb.p.prototype = Object.create(b.e.p.prototype); b.zb.p.prototype.constructor = b.zb.p; b.zb.p.prototype.Eb = function() { var a = this.k; b.ji(a.H.src, a.H.$); this.za.jc(); this.za.Ug(this.Mc); a.B5() }; b.Nx = -1; b.yb = b.e.extend({ ms: 0, Lk: !1, ob: null, Ma: "ClippingNode", ctor: function(a) { a = a || null; b.e.prototype.ctor.call(this); this.ob = a; this.ms = 1; this.Lk = !1; this.f.gL() }, T: function(a) { this.ob = a; this.ms = 1; this.Lk = !1; this.f.gL(); return !0 }, aa: function() { b.e.prototype.aa.call(this); this.ob.aa() }, wj: function() { b.e.prototype.wj.call(this); this.ob.wj() }, eh: function() { this.ob.eh(); b.e.prototype.eh.call(this) }, Pb: function() { this.ob.Pb(); b.e.prototype.Pb.call(this) }, xma: function() { return this.ms }, qta: function(a) { this.ms = a }, Rpa: function() { return this.Lk }, bua: function(a) { this.Lk = a }, L$: function() { return this.ob }, Hx: function(a) { this.ob !== a && this.f.Hx(a) }, Ic: function() { return b.W === b.Jb ? new b.yb.n(this) : new b.yb.p(this) } }); r = b.yb.prototype; b.i(r, "stencil", r.L$, r.Hx); b.yb.create = function(a) { return new b.yb(a) }; (function() { b.yb.n = function(a) { b.e.n.call(this, a); this.Zq = this.aR = this.cb = !1; this.E5 = new b.wg(this, this.M5); this.C5 = new b.wg(this, this.a3); this.D5 = new b.wg(this, this.H5) }; var a = b.yb.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.yb.n; a.gL = function() {}; a.Hx = function(a) { if (null != a) if (this.k.ob = a, a instanceof b.zb) { if (a.Qa) for (var e = 0; e < a.Qa.length; e++) a.Qa[e].UC = !1, a.Qa[e].fm = !1; a.f.Eb = function(e, g, h) { g = g || b.view.oc(); h = h || b.view.gd(); e = e || b.A; var k = e.getContext(), m = this.wp; e.save(); k.transform(m.a, m.b, m.c, m.K, m.ma * g, -m.na * h); k.beginPath(); for (m = 0; m < a.Qa.length; m++) { var n = a.Qa[m].vh, p = n[0]; k.moveTo(p.x * g, -p.y * h); for (var p = 1, s = n.length; p < s; p++) k.lineTo(n[p].x * g, -n[p].y * h) } e.restore() } } else a.Ga = this.k }; a.M5 = function(a, e, f) { var g = a || b.A; a = g.getContext(); this.Zq ? (e = b.yb.n.YQ(), f = a.canvas, e.width = f.width, e.height = f.height, e.getContext("2d").drawImage(f, 0, 0)) : (g.save(), g.save(), g.setTransform(this.jj, e, f)) }; a.IS = function(a) { if (a) { var e = this.k; a.f && a.f.$k && (a.f.$k = e.Lk ? "destination-out" : "destination-in"); if (a.m) { a = a.m; for (var e = 0, f = a.length; e < f; e++) this.IS(a[e]) } } }; a.a3 = function(a) { var e = this.k; a = a || b.A; var f = a.getContext(); this.Zq ? this.IS(e.ob) : (a.restore(), e.Lk && (e = f.canvas, a.save(), f.setTransform(1, 0, 0, 1, 0, 0), f.moveTo(0, 0), f.lineTo(0, e.height), f.lineTo(e.width, e.height), f.lineTo(e.width, 0), f.lineTo(0, 0), a.restore()), f.closePath(), f.clip()) }; a.H5 = function(a) { var e = b.yb.n.YQ(); a = a || b.A; var f = a.getContext(); this.Zq ? (f.save(), f.setTransform(1, 0, 0, 1, 0, 0), f.globalCompositeOperation = "destination-over", f.drawImage(e, 0, 0), f.restore(), this.G = 0) : a.restore() }; a.transform = function(a, e) { b.e.n.prototype.transform.call(this, a, e); var f = this.k; f.ob && f.ob.f && f.ob.f.transform(this, e) }; a.hG = function(a) { if (!0 === a || !1 === a) b.yb.n.prototype.aR = a; return b.yb.n.prototype.aR }; a.Q = function(a) { var e = this.k; if (e.Ta) { if (a = a || P(this)) this.Zd = a.Zd + 1; this.Zq = !(!this.hG() && e.ob instanceof b.zb); if (e.ob && e.ob.visible) { this.cd(a); b.oa.Ec(this.E5); this.Zq ? b.e.n.prototype.Q.call(this, a) : e.ob.Q(this); b.oa.Ec(this.C5); if (this.Zq) e.ob.Q(this); else { a = e.m; this.hG(!0); var f = a.length; if (0 < f) for (e.Ne(), e = 0; e < f; e++) a[e].f.Q(this); this.hG(!1) } b.oa.Ec(this.D5); this.G = 0 } else this.Lk && b.e.n.prototype.Q.call(this, a) } }; b.yb.n.RS = null; b.yb.n.YQ = function() { return b.yb.n.RS || (b.yb.n.RS = document.createElement("canvas")) } })(); (function() { b.yb.p = function(a) { b.e.p.call(this, a); this.cb = !1; this.T2 = new b.wg(this, this.X4); this.I2 = new b.wg(this, this.V4); this.J2 = new b.wg(this, this.W4); this.CH = this.HP = this.KP = this.RP = this.OP = this.NP = this.LP = this.QP = this.PP = this.MP = null }; var a = b.yb.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.yb.p; b.yb.p.qH = null; b.yb.p.AJ = null; b.yb.p.DA = -1; a.gL = function() { b.yb.p.qH = !0; b.yb.p.qH && (b.Nx = b.A.getParameter(b.A.STENCIL_BITS), 0 >= b.Nx && b.log("Stencil buffer is not enabled."), b.yb.p.qH = !1) }; a.transform = function(a, e) { var f = this.k; b.e.p.prototype.transform.call(this, a, e); f.ob && f.ob.f.transform(this, e) }; a.Q = function(a) { var e = this.k; if (e.Ta) if (e.Ga && e.Ga.f && (this.Zd = e.Ga.f.Zd + 1), 1 > b.Nx) b.e.p.prototype.Q.call(this, a); else if (e.ob && e.ob.visible) if (b.yb.p.DA + 1 === b.Nx) b.yb.p.AJ = !0, b.yb.p.AJ && (b.log("Nesting more than " + b.Nx + "stencils is not supported. Everything will be drawn without stencil for this node and its children."), b.yb.p.AJ = !1), b.e.p.prototype.Q.call(this, a); else { b.oa.Ec(this.T2); var f = b.Ob; f.stack.push(f.top); this.cd(a); f.top = this.Mc; e.ob.f.Q(this); b.oa.Ec(this.I2); if ((a = e.m) && 0 < a.length) { var g = a.length; e.Ne(); for (e = 0; e < g; e++) a[e].f.Q(this) } b.oa.Ec(this.J2); this.G = 0; f.top = f.stack.pop() } else e.Lk && b.e.p.prototype.Q.call(this, a) }; a.Hx = function(a) { var e = this.k; e.ob && (e.ob.Ga = null); e.ob = a; e.ob && (e.ob.Ga = e) }; a.q3 = function() { var a = b.Aj; a.push(); a.top.ie(); var e = b.vj; e.push(); e.top.ie(); b.jl.NU(b.d(-1, -1), b.d(1, 1), b.color(255, 255, 255, 255)); a.pop(); e.pop() }; a.X4 = function(a) { var e = a || b.A; a = this.k; b.yb.p.DA++; var f = 1 << b.yb.p.DA; this.CH = f | f - 1; this.KP = e.isEnabled(e.STENCIL_TEST); this.RP = e.getParameter(e.STENCIL_WRITEMASK); this.MP = e.getParameter(e.STENCIL_FUNC); this.PP = e.getParameter(e.STENCIL_REF); this.QP = e.getParameter(e.STENCIL_VALUE_MASK); this.LP = e.getParameter(e.STENCIL_FAIL); this.NP = e.getParameter(e.STENCIL_PASS_DEPTH_FAIL); this.OP = e.getParameter(e.STENCIL_PASS_DEPTH_PASS); e.enable(e.STENCIL_TEST); e.stencilMask(f); this.HP = e.getParameter(e.DEPTH_WRITEMASK); e.depthMask(!1); e.stencilFunc(e.NEVER, f, f); e.stencilOp(a.Lk ? e.REPLACE : e.ZERO, e.KEEP, e.KEEP); this.q3(); e.stencilFunc(e.NEVER, f, f); e.stencilOp(a.Lk ? e.ZERO : e.REPLACE, e.KEEP, e.KEEP); 1 > a.ms && (f = b.le.Dc(b.Yy), e = e.getUniformLocation(f.Qp(), b.UO), b.XK(f.Qp()), f.Kx(e, a.ms), b.OX(a.ob, f)) }; a.V4 = function(a) { a = a || b.A; a.depthMask(this.HP); a.stencilFunc(a.EQUAL, this.CH, this.CH); a.stencilOp(a.KEEP, a.KEEP, a.KEEP) }; a.W4 = function(a) { a = a || b.A; a.stencilFunc(this.MP, this.PP, this.QP); a.stencilOp(this.LP, this.NP, this.OP); a.stencilMask(this.RP); this.KP || a.disable(a.STENCIL_TEST); b.yb.p.DA-- } })(); b.tq = b.sa.extend({ Hq: !1, ok: 0, da: null, O: null, Xh: null, sr: null, Qo: !1, za: null, XP: 0, Ra: !1, ctor: function(a, d, e) { b.pG(); this.Hq = !1; this.ok = 0; this.O = this.da = null; this.Xh = b.d(0, 0); this.sr = null; this.Qo = !1; this.za = null; this.XP = 0; this.Ra = !1; void 0 !== a && this.PC(a, d, e) }, Ln: function() { return this.Hq }, setActive: function(a) { this.Hq = a; if (!a) { a = b.P; var d = a.Ls(); a.Sn(d) } }, ooa: function() { return this.ok }, Mda: function(a) { this.ok = a }, y9: function() { return b.size(this.da.width, this.da.height) }, Zta: function(a) { this.da.width = parseInt(a.width); this.da.height = parseInt(a.height) }, QK: function() { return b.d(this.Xh.x, this.Xh.y) }, Qua: function(a) { this.Xh.x = a.x; this.Xh.y = a.y }, iqa: function() { return this.Qo }, $ua: function(a) { this.Qo !== a && (this.Qo = a, this.bC()) }, PC: function(a, d, e) { if (!d) { var f = b.P.Nw(), g = b.Am(f.width), h = b.Am(f.height), k = new Uint8Array(g * h * 4); if (!k) return b.log("cocos2d: CCGrid: not enough memory."), !1; d = new b.ja; d.Sw(k, b.ja.Bm, g, h, f); if (!d) return b.log("cocos2d: CCGrid: error creating texture"), !1 } this.Hq = !1; this.ok = 0; this.da = a; this.O = d; this.Qo = e || !1; this.Xh.x = this.O.width / a.width; this.Xh.y = this.O.height / a.height; this.sr = new b.c_; if (!this.sr) return !1; this.sr.daa(this.O); this.za = b.le.Dc(b.uu); this.bC(); return !0 }, r7: function() { this.XP = b.P.Ls(); this.sr.s7(this.O) }, U6: function(a) { this.sr.V6(this.O); if (a && a.Fs().nL()) { var d = a.Cw(), e = a.f.Mc, f = b.j.ca.Fn(d.x, d.y, 0); e.multiply(f); a.Mi.zH(e); f = b.j.ca.Fn(-d.x, -d.y, 0, f); e.multiply(f) } b.Rf(this.O); this.$T(); this.OJ(a); this.UT() }, $T: function() {}, UT: function() {}, OJ: function() { b.log("cc.GridBase.blit(): Shall be overridden in subclass.") }, nt: function() { b.log("cc.GridBase.reuse(): Shall be overridden in subclass.") }, bC: function() { b.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.") }, mta: function() { var a = b.P.Nw(); b.A.viewport(0, 0, a.width, a.height); b.tj(b.Pj); b.Ws(); a = b.j.ca.dK(0, a.width, 0, a.height, -1, 1); b.Xs(a); b.tj(b.Oj); b.Ws(); b.QX() } }); b.tq.create = function(a, d, e) { return new b.tq(a, d, e) }; b.Iy = b.tq.extend({ Zh: null, kb: null, zl: null, gb: null, Vg: null, Ce: null, Kg: null, PA: !1, TR: !1, UR: !1, ctor: function(a, d, e) { b.tq.prototype.ctor.call(this); this.Kg = this.Ce = this.Vg = this.gb = this.zl = this.kb = this.Zh = null; void 0 !== a && this.PC(a, d, e) }, ofa: function(a) { return this.BC(a) }, BC: function(a) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.vertex() : Numbers must be integers"); a = 0 | 3 * (a.x * (this.da.height + 1) + a.y); var d = this.kb; return new N(d[a], d[a + 1], d[a + 2]) }, yd: function(a) { return this.qC(a) }, qC: function(a) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.originalVertex() : Numbers must be integers"); a = 0 | 3 * (a.x * (this.da.height + 1) + a.y); var d = this.zl; return new N(d[a], d[a + 1], d[a + 2]) }, Me: function(a, d) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.Grid3D.setVertex() : Numbers must be integers"); var e = 0 | 3 * (a.x * (this.da.height + 1) + a.y), f = this.kb; f[e] = d.x; f[e + 1] = d.y; f[e + 2] = d.z; this.Ra = !0 }, $T: function() { if (this.PA) { var a = b.A; this.TR = a.isEnabled(a.DEPTH_TEST); this.UR = a.getParameter(a.DEPTH_WRITEMASK); a.enable(a.DEPTH_TEST); a.depthMask(!0) } }, UT: function() { if (this.PA) { var a = b.A; this.TR ? a.enable(a.DEPTH_TEST) : a.disable(a.DEPTH_TEST); a.depthMask(this.UR) } }, OJ: function(a) { var d = this.da.width * this.da.height; b.hd(b.qe | b.Dq); this.za.jc(); this.za.Ug(a.f.Mc); a = b.A; var e = this.Ra; a.bindBuffer(a.ARRAY_BUFFER, this.Ce); e && a.bufferData(a.ARRAY_BUFFER, this.kb, a.DYNAMIC_DRAW); a.vertexAttribPointer(b.Ib, 3, a.FLOAT, !1, 0, 0); a.bindBuffer(a.ARRAY_BUFFER, this.Vg); e && a.bufferData(a.ARRAY_BUFFER, this.Zh, a.DYNAMIC_DRAW); a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, 0, 0); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Kg); e && a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW); a.drawElements(a.TRIANGLES, 6 * d, a.UNSIGNED_SHORT, 0); e && (this.Ra = !1); b.li() }, nt: function() { if (0 < this.ok) { for (var a = this.zl, d = this.kb, e = 0, f = this.kb.length; e < f; e++) a[e] = d[e]; --this.ok } }, bC: function() { var a = b.A, d = this.O.pixelsWidth, e = this.O.pixelsHeight, f = this.O.U.height, g = this.da, h = (g.width + 1) * (g.height + 1); this.kb = new Float32Array(3 * h); this.Zh = new Float32Array(2 * h); this.gb = new Uint16Array(g.width * g.height * 6); this.Ce && a.deleteBuffer(this.Ce); this.Ce = a.createBuffer(); this.Vg && a.deleteBuffer(this.Vg); this.Vg = a.createBuffer(); this.Kg && a.deleteBuffer(this.Kg); this.Kg = a.createBuffer(); for (var k, m, n = this.gb, p = this.Zh, s = this.Qo, t = this.kb, h = 0; h < g.width; ++h) for (k = 0; k < g.height; ++k) { var v = k * g.width + h; m = h * this.Xh.x; var w = m + this.Xh.x, x = k * this.Xh.y, u = x + this.Xh.y, y = h * (g.height + 1) + k, C = (h + 1) * (g.height + 1) + k, F = (h + 1) * (g.height + 1) + (k + 1), G = h * (g.height + 1) + (k + 1); n[6 * v] = y; n[6 * v + 1] = C; n[6 * v + 2] = G; n[6 * v + 3] = C; n[6 * v + 4] = F; n[6 * v + 5] = G; var v = [3 * y, 3 * C, 3 * F, 3 * G], D = [{ x: m, y: x, z: 0 }, { x: w, y: x, z: 0 }, { x: w, y: u, z: 0 }, { x: m, y: u, z: 0 }], y = [2 * y, 2 * C, 2 * F, 2 * G], w = [b.d(m, x), b.d(w, x), b.d(w, u), b.d(m, u)]; for (m = 0; 4 > m; ++m) t[v[m]] = D[m].x, t[v[m] + 1] = D[m].y, t[v[m] + 2] = D[m].z, p[y[m]] = w[m].x / d, p[y[m] + 1] = s ? (f - w[m].y) / e : w[m].y / e } this.zl = new Float32Array(this.kb); a.bindBuffer(a.ARRAY_BUFFER, this.Ce); a.bufferData(a.ARRAY_BUFFER, this.kb, a.DYNAMIC_DRAW); a.bindBuffer(a.ARRAY_BUFFER, this.Vg); a.bufferData(a.ARRAY_BUFFER, this.Zh, a.DYNAMIC_DRAW); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Kg); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW); this.Ra = !0 }, yda: function(a) { this.PA = a }, Ona: function() { return this.PA } }); b.Iy.create = function(a, d, e) { return new b.Iy(a, d, e) }; b.FF = b.tq.extend({ Zh: null, kb: null, zl: null, gb: null, Vg: null, Ce: null, Kg: null, ctor: function(a, d, e) { b.tq.prototype.ctor.call(this); this.Kg = this.Ce = this.Vg = this.gb = this.zl = this.kb = this.Zh = null; void 0 !== a && this.PC(a, d, e) }, sY: function(a) { return this.SK(a) }, SK: function(a) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.tile() : Numbers must be integers"); a = 12 * (this.da.height * a.x + a.y); var d = this.kb; return new b.Py(new N(d[a], d[a + 1], d[a + 2]), new N(d[a + 3], d[a + 4], d[a + 5]), new N(d[a + 6], d[a + 7], d[a + 8]), new N(d[a + 9], d[a + 10], d[a + 11])) }, HK: function(a) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.originalTile() : Numbers must be integers"); a = 12 * (this.da.height * a.x + a.y); var d = this.zl; return new b.Py(new N(d[a], d[a + 1], d[a + 2]), new N(d[a + 3], d[a + 4], d[a + 5]), new N(d[a + 6], d[a + 7], d[a + 8]), new N(d[a + 9], d[a + 10], d[a + 11])) }, gh: function(a) { return this.HK(a) }, Wf: function(a, d) { a.x === (0 | a.x) && a.y === (0 | a.y) || b.log("cc.TiledGrid3D.setTile() : Numbers must be integers"); var e = 12 * (this.da.height * a.x + a.y), f = this.kb; f[e] = d.bl.x; f[e + 1] = d.bl.y; f[e + 2] = d.bl.z; f[e + 3] = d.br.x; f[e + 4] = d.br.y; f[e + 5] = d.br.z; f[e + 6] = d.tl.x; f[e + 7] = d.tl.y; f[e + 8] = d.tl.z; f[e + 9] = d.tr.x; f[e + 10] = d.tr.y; f[e + 11] = d.tr.z; this.Ra = !0 }, OJ: function(a) { var d = this.da.width * this.da.height; this.za.jc(); this.za.Ug(a.f.Mc); a = b.A; var e = this.Ra; b.hd(b.qe | b.Dq); a.bindBuffer(a.ARRAY_BUFFER, this.Ce); e && a.bufferData(a.ARRAY_BUFFER, this.kb, a.DYNAMIC_DRAW); a.vertexAttribPointer(b.Ib, 3, a.FLOAT, !1, 0, this.kb); a.bindBuffer(a.ARRAY_BUFFER, this.Vg); e && a.bufferData(a.ARRAY_BUFFER, this.Zh, a.DYNAMIC_DRAW); a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, 0, this.Zh); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Kg); e && a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW); a.drawElements(a.TRIANGLES, 6 * d, a.UNSIGNED_SHORT, 0); e && (this.Ra = !1); b.li() }, nt: function() { if (0 < this.ok) { for (var a = this.kb, d = this.zl, e = 0; e < a.length; e++) d[e] = a[e]; --this.ok } }, bC: function() { var a = this.O.pixelsWidth, d = this.O.pixelsHeight, e = this.O.U.height, f = this.da, g = f.width * f.height; this.kb = new Float32Array(12 * g); this.Zh = new Float32Array(8 * g); this.gb = new Uint16Array(6 * g); var h = b.A; this.Ce && h.deleteBuffer(this.Ce); this.Ce = h.createBuffer(); this.Vg && h.deleteBuffer(this.Vg); this.Vg = h.createBuffer(); this.Kg && h.deleteBuffer(this.Kg); this.Kg = h.createBuffer(); var k, m, n = 0, p = this.Xh, s = this.kb, t = this.Zh, v = this.Qo; for (k = 0; k < f.width; k++) for (m = 0; m < f.height; m++) { var w = k * p.x, x = w + p.x, u = m * p.y, y = u + p.y; s[12 * n] = w; s[12 * n + 1] = u; s[12 * n + 2] = 0; s[12 * n + 3] = x; s[12 * n + 4] = u; s[12 * n + 5] = 0; s[12 * n + 6] = w; s[12 * n + 7] = y; s[12 * n + 8] = 0; s[12 * n + 9] = x; s[12 * n + 10] = y; s[12 * n + 11] = 0; var C = u, F = y; v && (C = e - u, F = e - y); t[8 * n] = w / a; t[8 * n + 1] = C / d; t[8 * n + 2] = x / a; t[8 * n + 3] = C / d; t[8 * n + 4] = w / a; t[8 * n + 5] = F / d; t[8 * n + 6] = x / a; t[8 * n + 7] = F / d; n++ } a = this.gb; for (k = 0; k < g; k++) a[6 * k + 0] = 4 * k + 0, a[6 * k + 1] = 4 * k + 1, a[6 * k + 2] = 4 * k + 2, a[6 * k + 3] = 4 * k + 1, a[6 * k + 4] = 4 * k + 2, a[6 * k + 5] = 4 * k + 3; this.zl = new Float32Array(this.kb); h.bindBuffer(h.ARRAY_BUFFER, this.Ce); h.bufferData(h.ARRAY_BUFFER, this.kb, h.DYNAMIC_DRAW); h.bindBuffer(h.ARRAY_BUFFER, this.Vg); h.bufferData(h.ARRAY_BUFFER, this.Zh, h.DYNAMIC_DRAW); h.bindBuffer(h.ELEMENT_ARRAY_BUFFER, this.Kg); h.bufferData(h.ELEMENT_ARRAY_BUFFER, this.gb, h.DYNAMIC_DRAW); this.Ra = !0 } }); b.FF.create = function(a, d, e) { return new b.FF(a, d, e) }; b.c_ = b.sa.extend({ sz: null, lk: null, SR: null, rr: null, ctor: function() { b.pG(); this.rr = b.A; this.SR = [0, 0, 0, 0]; this.lk = null; this.sz = this.rr.createFramebuffer() }, daa: function(a) { var d = this.rr; this.lk = d.getParameter(d.FRAMEBUFFER_BINDING); d.bindFramebuffer(d.FRAMEBUFFER, this.sz); d.framebufferTexture2D(d.FRAMEBUFFER, d.COLOR_ATTACHMENT0, d.TEXTURE_2D, a.Xg, 0); d.checkFramebufferStatus(d.FRAMEBUFFER) !== d.FRAMEBUFFER_COMPLETE && b.log("Frame Grabber: could not attach texture to frmaebuffer"); d.bindFramebuffer(d.FRAMEBUFFER, this.lk) }, s7: function() { var a = this.rr; this.lk = a.getParameter(a.FRAMEBUFFER_BINDING); a.bindFramebuffer(a.FRAMEBUFFER, this.sz); this.SR = a.getParameter(a.COLOR_CLEAR_VALUE); a.clearColor(0, 0, 0, 0); a.clear(a.COLOR_BUFFER_BIT | a.DEPTH_BUFFER_BIT) }, V6: function() { var a = this.rr; a.bindFramebuffer(a.FRAMEBUFFER, this.lk); a.colorMask(!0, !0, !0, !0) }, Tka: function() { this.rr.deleteFramebuffer(this.sz) } }); b.kq = -1; b.ne = b.sa.extend({ originalTarget: null, target: null, tag: b.kq, ctor: function() { this.target = this.originalTarget = null; this.tag = b.kq }, copy: function() { b.log("copy is deprecated. Please use clone instead."); return this.q() }, q: function() { var a = new b.ne; a.originalTarget = null; a.target = null; a.tag = this.tag; return a }, mi: function() { return !0 }, N: function(a) { this.target = this.originalTarget = a }, stop: function() { this.target = null }, step: function() { b.log("[Action step]. override me") }, update: function() { b.log("[Action update]. override me") }, CV: function() { return this.target }, Rk: function(a) { this.target = a }, Zna: function() { return this.originalTarget }, zua: function(a) { this.originalTarget = a }, yC: function() { return this.tag }, Ix: function(a) { this.tag = a }, CD: function() {}, Ad: function() {} }); b.action = function() { return new b.ne }; b.ne.create = b.action; b.Wk = b.ne.extend({ D: 0, ctor: function() { b.ne.prototype.ctor.call(this); this.D = 0 }, Gs: function() { return this.D * (this.$h || 1) }, jh: function(a) { this.D = a }, reverse: function() { b.log("cocos2d: FiniteTimeAction#reverse: Implement me"); return null }, q: function() { return new b.Wk } }); b.cz = b.ne.extend({ mf: 0, Kb: null, ctor: function(a, d) { b.ne.prototype.ctor.call(this); this.mf = 0; this.Kb = null; a && this.ha(a, d) }, wC: function() { return this.mf }, Uf: function(a) { this.mf = a }, ha: function(a, d) { if (!a) throw "cc.Speed.initWithAction(): action must be non nil"; this.Kb = a; this.mf = d; return !0 }, q: function() { var a = new b.cz; a.ha(this.Kb.q(), this.mf); return a }, N: function(a) { b.ne.prototype.N.call(this, a); this.Kb.N(a) }, stop: function() { this.Kb.stop(); b.ne.prototype.stop.call(this) }, step: function(a) { this.Kb.step(a * this.mf) }, mi: function() { return this.Kb.mi() }, reverse: function() { return new b.cz(this.Kb.reverse(), this.mf) }, yX: function(a) { this.Kb !== a && (this.Kb = a) }, EK: function() { return this.Kb } }); b.speed = function(a, d) { return new b.cz(a, d) }; b.cz.create = b.speed; b.EE = b.ne.extend({ mr: null, Sq: !1, Gz: !1, oA: null, fv: null, CJ: null, Up: 0, bq: 0, hq: 0, Fp: 0, ctor: function(a, d) { b.ne.prototype.ctor.call(this); this.mr = null; this.Gz = this.Sq = !1; this.fv = this.oA = null; this.Fp = this.hq = this.bq = this.Up = 0; this.CJ = b.rect(0, 0, 0, 0); a && (d ? this.Ts(a, d) : this.Ts(a)) }, q: function() { var a = new b.EE, d = this.CJ; a.Ts(this.mr, new b.Dh(d.x, d.y, d.width, d.height)); return a }, Kpa: function() { return this.Sq }, vta: function(a) { this.Sq = a }, Ts: function(a, d) { if (!a) throw "cc.Follow.initWithAction(): followedNode must be non nil"; d = d || b.rect(0, 0, 0, 0); this.mr = a; this.CJ = d; this.Sq = !b.Iv(d); this.Gz = !1; var e = b.P.Fa(); this.fv = b.d(e.width, e.height); this.oA = b.lm(this.fv, 0.5); this.Sq && (this.Up = -(d.x + d.width - this.fv.x), this.bq = -d.x, this.hq = -d.y, this.Fp = -(d.y + d.height - this.fv.y), this.bq < this.Up && (this.bq = this.Up = (this.Up + this.bq) / 2), this.hq < this.Fp && (this.hq = this.Fp = (this.hq + this.Fp) / 2), this.hq === this.Fp && this.Up === this.bq && (this.Gz = !0)); return !0 }, step: function() { var a = this.mr.x, d = this.mr.y, a = this.oA.x - a, d = this.oA.y - d; this.target.f.G = 0; this.Sq ? this.Gz || this.target.I(b.Zg(a, this.Up, this.bq), b.Zg(d, this.Fp, this.hq)) : this.target.I(a, d) }, mi: function() { return !this.mr.running }, stop: function() { this.target = null; b.ne.prototype.stop.call(this) } }); b.R8 = function(a, d) { return new b.EE(a, d) }; b.EE.create = b.R8; b.J = b.Wk.extend({ Bb: 0, jA: !1, Lh: null, $h: 1, Kv: !1, gp: !1, mf: 1, Sv: !1, ctor: function(a) { this.$h = this.mf = 1; this.Kv = !1; this.MAX_VALUE = 2; this.Sv = this.gp = !1; b.Wk.prototype.ctor.call(this); void 0 !== a && this.l(a) }, bna: function() { return this.Bb }, l: function(a) { this.D = 0 === a ? b.Dy : a; this.Bb = 0; return this.jA = !0 }, mi: function() { return this.Bb >= this.D }, Ia: function(a) { a.Kv = this.Kv; a.mf = this.mf; a.$h = this.$h; a.Lh = this.Lh; a.Sv = this.Sv; a.gp = this.gp }, lf: function(a) { if (this.Lh) { a.Lh = []; for (var d = 0; d < this.Lh.length; d++) a.Lh.push(this.Lh[d].reverse()) } }, q: function() { var a = new b.J(this.D); this.Ia(a); return a }, fb: function(a) { this.Lh ? this.Lh.length = 0 : this.Lh = []; for (var d = 0; d < arguments.length; d++) this.Lh.push(arguments[d]); return this }, Yd: function(a) { var d = this.Lh; if (!d || 0 === d.length) return a; for (var e = 0, f = d.length; e < f; e++) a = d[e].fb(a); return a }, step: function(a) { this.jA ? (this.jA = !1, this.Bb = 0) : this.Bb += a; a = this.Bb / (1.192092896E-7 < this.D ? this.D : 1.192092896E-7); a = 1 > a ? a : 1; this.update(0 < a ? a : 0); this.gp && 1 < this.$h && this.mi() && (this.Kv || this.$h--, this.N(this.target), this.step(this.Bb - this.D)) }, N: function(a) { b.ne.prototype.N.call(this, a); this.Bb = 0; this.jA = !0 }, reverse: function() { b.log("cc.IntervalAction: reverse not implemented."); return null }, cq: function() { b.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.") }, Pp: function() { b.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass."); return 0 }, speed: function(a) { if (0 > a) return b.log("The speed parameter error"), this; this.Sv = !0; this.mf *= a; return this }, wC: function() { return this.mf }, Uf: function(a) { this.mf = a; return this }, repeat: function(a) { a = Math.round(a); if (isNaN(a) || 1 > a) return b.log("The repeat parameter error"), this; this.gp = !0; this.$h *= a; return this }, ux: function() { this.gp = !0; this.$h = this.MAX_VALUE; this.Kv = !0; return this } }); b.M6 = function(a) { return new b.J(a) }; b.J.create = b.M6; b.Fh = b.J.extend({ Yj: null, VS: null, qv: 0, ctor: function(a) { b.J.prototype.ctor.call(this); this.Yj = []; var d = a instanceof Array ? a : arguments, e = d.length - 1; 0 <= e && null == d[e] && b.log("parameters should not be ending with null in Javascript"); if (0 <= e) { for (var f = d[0], g = 1; g < e; g++) d[g] && (f = b.Fh.Zk(f, d[g])); this.Tp(f, d[e]) } }, Tp: function(a, d) { if (!a || !d) throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil"; this.l(a.D + d.D); this.Yj[0] = a; this.Yj[1] = d; return !0 }, q: function() { var a = new b.Fh; this.Ia(a); a.Tp(this.Yj[0].q(), this.Yj[1].q()); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.VS = this.Yj[0].D / this.D; this.qv = -1 }, stop: function() { -1 !== this.qv && this.Yj[this.qv].stop(); b.ne.prototype.stop.call(this) }, update: function(a) { var d = 0, e = this.VS, f = this.Yj, g = this.qv; a = this.Yd(a); a < e ? (a = 0 !== e ? a / e : 1, 0 === d && 1 === g && (f[1].update(0), f[1].stop())) : (d = 1, a = 1 === e ? 1 : (a - e) / (1 - e), -1 === g && (f[0].N(this.target), f[0].update(1), f[0].stop()), g || (f[0].update(1), f[0].stop())); f = f[d]; g === d && f.mi() || (g !== d && f.N(this.target), a *= f.$h, f.update(1 < a ? a % 1 : a), this.qv = d) }, reverse: function() { var a = b.Fh.Zk(this.Yj[1].reverse(), this.Yj[0].reverse()); this.Ia(a); this.lf(a); return a } }); b.Fb = function(a) { var d = a instanceof Array ? a : arguments; 0 < d.length && null == d[d.length - 1] && b.log("parameters should not be ending with null in Javascript"); for (var e, f, g, h; d && 0 < d.length;) for (f = Array.prototype.shift.call(d), h = f.$h || 1, f.gp = !1, f.$h = 1, g = 0, e || (e = f, g = 1), g; g < h; g++) e = b.Fh.Zk(e, f); return e }; b.Fh.create = b.Fb; b.Fh.Zk = function(a, d) { var e = new b.Fh; e.Tp(a, d); return e }; b.Ry = b.J.extend({ Kf: 0, An: 0, HH: 0, kP: !1, Kb: null, ctor: function(a, d) { b.J.prototype.ctor.call(this); void 0 !== d && this.ha(a, d) }, ha: function(a, d) { return this.l(a.D * d) ? (this.Kf = d, this.Kb = a, a instanceof b.xf && (this.kP = !0, this.Kf -= 1), this.An = 0, !0) : !1 }, q: function() { var a = new b.Ry; this.Ia(a); a.ha(this.Kb.q(), this.Kf); return a }, N: function(a) { this.An = 0; this.HH = this.Kb.D / this.D; b.J.prototype.N.call(this, a); this.Kb.N(a) }, stop: function() { this.Kb.stop(); b.ne.prototype.stop.call(this) }, update: function(a) { a = this.Yd(a); var d = this.Kb, e = this.D, f = this.Kf, g = this.HH; if (a >= g) { for (; a > g && this.An < f;) d.update(1), this.An++, d.stop(), d.N(this.target), this.HH = g += d.D / e; 1 <= a && this.An < f && this.An++; this.kP || (this.An === f ? (d.update(1), d.stop()) : d.update(a - (g - d.D / e))) } else d.update(a * f % 1) }, mi: function() { return this.An === this.Kf }, reverse: function() { var a = new b.Ry(this.Kb.reverse(), this.Kf); this.Ia(a); this.lf(a); return a }, yX: function(a) { this.Kb !== a && (this.Kb = a) }, EK: function() { return this.Kb } }); b.repeat = function(a, d) { return new b.Ry(a, d) }; b.Ry.create = b.repeat; b.Sy = b.J.extend({ Kb: null, ctor: function(a) { b.J.prototype.ctor.call(this); this.Kb = null; a && this.ha(a) }, ha: function(a) { if (!a) throw "cc.RepeatForever.initWithAction(): action must be non null"; this.Kb = a; return !0 }, q: function() { var a = new b.Sy; this.Ia(a); a.ha(this.Kb.q()); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.Kb.N(a) }, step: function(a) { var d = this.Kb; d.step(a); d.mi() && (d.N(this.target), d.step(d.Bb - d.D)) }, mi: function() { return !1 }, reverse: function() { var a = new b.Sy(this.Kb.reverse()); this.Ia(a); this.lf(a); return a }, yX: function(a) { this.Kb !== a && (this.Kb = a) }, EK: function() { return this.Kb } }); b.ux = function(a) { return new b.Sy(a) }; b.Sy.create = b.ux; b.Cm = b.J.extend({ yl: null, Wl: null, ctor: function(a) { b.J.prototype.ctor.call(this); this.Wl = this.yl = null; var d = a instanceof Array ? a : arguments, e = d.length - 1; 0 <= e && null == d[e] && b.log("parameters should not be ending with null in Javascript"); if (0 <= e) { for (var f = d[0], g = 1; g < e; g++) d[g] && (f = b.Cm.Zk(f, d[g])); this.Tp(f, d[e]) } }, Tp: function(a, d) { if (!a || !d) throw "cc.Spawn.initWithTwoActions(): arguments must all be non null"; var e = !1, f = a.D, g = d.D; this.l(Math.max(f, g)) && (this.yl = a, this.Wl = d, f > g ? this.Wl = b.Fh.Zk(d, b.Fe(f - g)) : f < g && (this.yl = b.Fh.Zk(a, b.Fe(g - f))), e = !0); return e }, q: function() { var a = new b.Cm; this.Ia(a); a.Tp(this.yl.q(), this.Wl.q()); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.yl.N(a); this.Wl.N(a) }, stop: function() { this.yl.stop(); this.Wl.stop(); b.ne.prototype.stop.call(this) }, update: function(a) { a = this.Yd(a); this.yl && this.yl.update(a); this.Wl && this.Wl.update(a) }, reverse: function() { var a = b.Cm.Zk(this.yl.reverse(), this.Wl.reverse()); this.Ia(a); this.lf(a); return a } }); b.Un = function(a) { var d = a instanceof Array ? a : arguments; 0 < d.length && null == d[d.length - 1] && b.log("parameters should not be ending with null in Javascript"); for (var e = d[0], f = 1; f < d.length; f++) null != d[f] && (e = b.Cm.Zk(e, d[f])); return e }; b.Cm.create = b.Un; b.Cm.Zk = function(a, d) { var e = new b.Cm; e.Tp(a, d); return e }; b.kF = b.J.extend({ bA: 0, Tv: 0, VP: 0, GG: 0, Ur: 0, WP: 0, ctor: function(a, d, e) { b.J.prototype.ctor.call(this); void 0 !== d && this.l(a, d, e) }, l: function(a, d, e) { return b.J.prototype.l.call(this, a) ? (this.bA = d || 0, this.GG = e || this.bA, !0) : !1 }, q: function() { var a = new b.kF; this.Ia(a); a.l(this.D, this.bA, this.GG); return a }, N: function(a) { b.J.prototype.N.call(this, a); var d = a.rotationX % 360, e = this.bA - d; 180 < e && (e -= 360); - 180 > e && (e += 360); this.Tv = d; this.VP = e; this.Ur = a.rotationY % 360; a = this.GG - this.Ur; 180 < a && (a -= 360); - 180 > a && (a += 360); this.WP = a }, reverse: function() { b.log("cc.RotateTo.reverse(): it should be overridden in subclass.") }, update: function(a) { a = this.Yd(a); this.target && (this.target.rotationX = this.Tv + this.VP * a, this.target.rotationY = this.Ur + this.WP * a) } }); b.Ica = function(a, d, e) { return new b.kF(a, d, e) }; b.kF.create = b.Ica; b.Ty = b.J.extend({ Ji: 0, Tv: 0, Cz: 0, Ur: 0, ctor: function(a, d, e) { b.J.prototype.ctor.call(this); void 0 !== d && this.l(a, d, e) }, l: function(a, d, e) { return b.J.prototype.l.call(this, a) ? (this.Ji = d || 0, this.Cz = e || this.Ji, !0) : !1 }, q: function() { var a = new b.Ty; this.Ia(a); a.l(this.D, this.Ji, this.Cz); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.Tv = a.rotationX; this.Ur = a.rotationY }, update: function(a) { a = this.Yd(a); this.target && (this.target.rotationX = this.Tv + this.Ji * a, this.target.rotationY = this.Ur + this.Cz * a) }, reverse: function() { var a = new b.Ty(this.D, -this.Ji, -this.Cz); this.Ia(a); this.lf(a); return a } }); b.$W = function(a, d, e) { return new b.Ty(a, d, e) }; b.Ty.create = b.$W; b.Xk = b.J.extend({ nk: null, bd: null, od: null, ctor: function(a, d, e) { b.J.prototype.ctor.call(this); this.nk = b.d(0, 0); this.bd = b.d(0, 0); this.od = b.d(0, 0); void 0 !== d && this.l(a, d, e) }, l: function(a, d, e) { return b.J.prototype.l.call(this, a) ? (void 0 !== d.x && (e = d.y, d = d.x), this.nk.x = d, this.nk.y = e, !0) : !1 }, q: function() { var a = new b.Xk; this.Ia(a); a.l(this.D, this.nk); return a }, N: function(a) { b.J.prototype.N.call(this, a); var d = a.vd(); a = a.Qf(); this.od.x = d; this.od.y = a; this.bd.x = d; this.bd.y = a }, update: function(a) { a = this.Yd(a); if (this.target) { var d = this.nk.x * a; a *= this.nk.y; var e = this.bd; if (b.jy) { var f = this.target.Qf(), g = this.od; e.x = e.x + this.target.vd() - g.x; e.y = e.y + f - g.y; d += e.x; a += e.y; g.x = d; g.y = a; this.target.I(d, a) } else this.target.I(e.x + d, e.y + a) } }, reverse: function() { var a = new b.Xk(this.D, b.d(-this.nk.x, -this.nk.y)); this.Ia(a); this.lf(a); return a } }); b.moveBy = function(a, d, e) { return new b.Xk(a, d, e) }; b.Xk.create = b.moveBy; b.PE = b.Xk.extend({ Ig: null, ctor: function(a, d, e) { b.Xk.prototype.ctor.call(this); this.Ig = b.d(0, 0); void 0 !== d && this.l(a, d, e) }, l: function(a, d, e) { return b.Xk.prototype.l.call(this, a, d, e) ? (void 0 !== d.x && (e = d.y, d = d.x), this.Ig.x = d, this.Ig.y = e, !0) : !1 }, q: function() { var a = new b.PE; this.Ia(a); a.l(this.D, this.Ig); return a }, N: function(a) { b.Xk.prototype.N.call(this, a); this.nk.x = this.Ig.x - a.vd(); this.nk.y = this.Ig.y - a.Qf() } }); b.moveTo = function(a, d, e) { return new b.PE(a, d, e) }; b.PE.create = b.moveTo; b.qo = b.J.extend({ dj: 0, ej: 0, AB: 0, BB: 0, eA: 0, fA: 0, eg: 0, fg: 0, ctor: function(a, d, e) { b.J.prototype.ctor.call(this); void 0 !== e && this.l(a, d, e) }, l: function(a, d, e) { var f = !1; b.J.prototype.l.call(this, a) && (this.eA = d, this.fA = e, f = !0); return f }, q: function() { var a = new b.qo; this.Ia(a); a.l(this.D, this.eA, this.fA); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.AB = a.skewX % 180; this.eg = this.eA - this.AB; 180 < this.eg && (this.eg -= 360); - 180 > this.eg && (this.eg += 360); this.BB = a.skewY % 360; this.fg = this.fA - this.BB; 180 < this.fg && (this.fg -= 360); - 180 > this.fg && (this.fg += 360) }, update: function(a) { a = this.Yd(a); this.target.skewX = this.AB + this.eg * a; this.target.skewY = this.BB + this.fg * a } }); b.xea = function(a, d, e) { return new b.qo(a, d, e) }; b.qo.create = b.xea; b.az = b.qo.extend({ ctor: function(a, d, e) { b.qo.prototype.ctor.call(this); void 0 !== e && this.l(a, d, e) }, l: function(a, d, e) { var f = !1; b.qo.prototype.l.call(this, a, d, e) && (this.dj = d, this.ej = e, f = !0); return f }, q: function() { var a = new b.az; this.Ia(a); a.l(this.D, this.dj, this.ej); return a }, N: function(a) { b.qo.prototype.N.call(this, a); this.eg = this.dj; this.fg = this.ej; this.eA = this.AB + this.eg; this.fA = this.BB + this.fg }, reverse: function() { var a = new b.az(this.D, -this.dj, -this.ej); this.Ia(a); this.lf(a); return a } }); b.wea = function(a, d, e) { return new b.az(a, d, e) }; b.az.create = b.wea; b.ym = b.J.extend({ bd: null, bk: null, gf: 0, vl: 0, od: null, ctor: function(a, d, e, f, g) { b.J.prototype.ctor.call(this); this.bd = b.d(0, 0); this.od = b.d(0, 0); this.bk = b.d(0, 0); void 0 !== f && this.l(a, d, e, f, g) }, l: function(a, d, e, f, g) { return b.J.prototype.l.call(this, a) ? (void 0 === g && (g = f, f = e, e = d.y, d = d.x), this.bk.x = d, this.bk.y = e, this.gf = f, this.vl = g, !0) : !1 }, q: function() { var a = new b.ym; this.Ia(a); a.l(this.D, this.bk, this.gf, this.vl); return a }, N: function(a) { b.J.prototype.N.call(this, a); var d = a.vd(); a = a.Qf(); this.od.x = d; this.od.y = a; this.bd.x = d; this.bd.y = a }, update: function(a) { a = this.Yd(a); if (this.target) { var d = a * this.vl % 1, d = 4 * this.gf * d * (1 - d), d = d + this.bk.y * a; a *= this.bk.x; var e = this.bd; if (b.jy) { var f = this.target.Qf(), g = this.od; e.x = e.x + this.target.vd() - g.x; e.y = e.y + f - g.y; a += e.x; d += e.y; g.x = a; g.y = d; this.target.I(a, d) } else this.target.I(e.x + a, e.y + d) } }, reverse: function() { var a = new b.ym(this.D, b.d(-this.bk.x, -this.bk.y), this.gf, this.vl); this.Ia(a); this.lf(a); return a } }); b.iW = function(a, d, e, f, g) { return new b.ym(a, d, e, f, g) }; b.ym.create = b.iW; b.JE = b.ym.extend({ Ig: null, ctor: function(a, d, e, f, g) { b.ym.prototype.ctor.call(this); this.Ig = b.d(0, 0); void 0 !== f && this.l(a, d, e, f, g) }, l: function(a, d, e, f, g) { return b.ym.prototype.l.call(this, a, d, e, f, g) ? (void 0 === g && (e = d.y, d = d.x), this.Ig.x = d, this.Ig.y = e, !0) : !1 }, N: function(a) { b.ym.prototype.N.call(this, a); this.bk.x = this.Ig.x - this.bd.x; this.bk.y = this.Ig.y - this.bd.y }, q: function() { var a = new b.JE; this.Ia(a); a.l(this.D, this.Ig, this.gf, this.vl); return a } }); b.hba = function(a, d, e, f, g) { return new b.JE(a, d, e, f, g) }; b.JE.create = b.hba; b.aU = function(a, d, e, f) { return 0 * Math.pow(1 - f, 3) + 3 * f * Math.pow(1 - f, 2) * a + 3 * Math.pow(f, 2) * (1 - f) * d + Math.pow(f, 3) * e }; b.ho = b.J.extend({ Fg: null, bd: null, od: null, ctor: function(a, d) { b.J.prototype.ctor.call(this); this.Fg = []; this.bd = b.d(0, 0); this.od = b.d(0, 0); d && this.l(a, d) }, l: function(a, d) { return b.J.prototype.l.call(this, a) ? (this.Fg = d, !0) : !1 }, q: function() { var a = new b.ho; this.Ia(a); for (var d = [], e = 0; e < this.Fg.length; e++) { var f = this.Fg[e]; d.push(b.d(f.x, f.y)) } a.l(this.D, d); return a }, N: function(a) { b.J.prototype.N.call(this, a); var d = a.vd(); a = a.Qf(); this.od.x = d; this.od.y = a; this.bd.x = d; this.bd.y = a }, update: function(a) { a = this.Yd(a); if (this.target) { var d = this.Fg, e = b.aU(d[0].x, d[1].x, d[2].x, a); a = b.aU(d[0].y, d[1].y, d[2].y, a); d = this.bd; if (b.jy) { var f = this.target.Qf(), g = this.od; d.x = d.x + this.target.vd() - g.x; d.y = d.y + f - g.y; e += d.x; a += d.y; g.x = e; g.y = a; this.target.I(e, a) } else this.target.I(d.x + e, d.y + a) } }, reverse: function() { var a = this.Fg, a = [b.yj(a[1], b.zL(a[2])), b.yj(a[0], b.zL(a[2])), b.zL(a[2])], a = new b.ho(this.D, a); this.Ia(a); this.lf(a); return a } }); b.u7 = function(a, d) { return new b.ho(a, d) }; b.ho.create = b.u7; b.iE = b.ho.extend({ LB: null, ctor: function(a, d) { b.ho.prototype.ctor.call(this); this.LB = []; d && this.l(a, d) }, l: function(a, d) { return b.J.prototype.l.call(this, a) ? (this.LB = d, !0) : !1 }, q: function() { var a = new b.iE; this.Ia(a); a.l(this.D, this.LB); return a }, N: function(a) { b.ho.prototype.N.call(this, a); a = this.bd; var d = this.LB, e = this.Fg; e[0] = b.zd(d[0], a); e[1] = b.zd(d[1], a); e[2] = b.zd(d[2], a) } }); b.v7 = function(a, d) { return new b.iE(a, d) }; b.iE.create = b.v7; b.yq = b.J.extend({ Wb: 1, Sc: 1, Uv: 1, Vv: 1, hr: 0, ir: 0, eg: 0, fg: 0, ctor: function(a, d, e) { b.J.prototype.ctor.call(this); void 0 !== d && this.l(a, d, e) }, l: function(a, d, e) { return b.J.prototype.l.call(this, a) ? (this.hr = d, this.ir = null != e ? e : d, !0) : !1 }, q: function() { var a = new b.yq; this.Ia(a); a.l(this.D, this.hr, this.ir); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.Uv = a.scaleX; this.Vv = a.scaleY; this.eg = this.hr - this.Uv; this.fg = this.ir - this.Vv }, update: function(a) { a = this.Yd(a); this.target && (this.target.scaleX = this.Uv + this.eg * a, this.target.scaleY = this.Vv + this.fg * a) } }); b.rg = function(a, d, e) { return new b.yq(a, d, e) }; b.yq.create = b.rg; b.Zy = b.yq.extend({ N: function(a) { b.yq.prototype.N.call(this, a); this.eg = this.Uv * this.hr - this.Uv; this.fg = this.Vv * this.ir - this.Vv }, reverse: function() { var a = new b.Zy(this.D, 1 / this.hr, 1 / this.ir); this.Ia(a); this.lf(a); return a }, q: function() { var a = new b.Zy; this.Ia(a); a.l(this.D, this.hr, this.ir); return a } }); b.cX = function(a, d, e) { return new b.Zy(a, d, e) }; b.Zy.create = b.cX; b.cy = b.J.extend({ Kf: 0, XR: !1, ctor: function(a, d) { b.J.prototype.ctor.call(this); void 0 !== d && this.l(a, d) }, l: function(a, d) { return b.J.prototype.l.call(this, a) ? (this.Kf = d, !0) : !1 }, q: function() { var a = new b.cy; this.Ia(a); a.l(this.D, this.Kf); return a }, update: function(a) { a = this.Yd(a); if (this.target && !this.mi()) { var d = 1 / this.Kf; this.target.visible = a % d > d / 2 } }, N: function(a) { b.J.prototype.N.call(this, a); this.XR = a.visible }, stop: function() { this.target.visible = this.XR; b.J.prototype.stop.call(this) }, reverse: function() { var a = new b.cy(this.D, this.Kf); this.Ia(a); this.lf(a); return a } }); b.blink = function(a, d) { return new b.cy(a, d) }; b.cy.create = b.blink; b.xm = b.J.extend({ as: 0, kA: 0, ctor: function(a, d) { b.J.prototype.ctor.call(this); void 0 !== d && this.l(a, d) }, l: function(a, d) { return b.J.prototype.l.call(this, a) ? (this.as = d, !0) : !1 }, q: function() { var a = new b.xm; this.Ia(a); a.l(this.D, this.as); return a }, update: function(a) { a = this.Yd(a); var d = void 0 !== this.kA ? this.kA : 255; this.target.opacity = d + (this.as - d) * a }, N: function(a) { b.J.prototype.N.call(this, a); this.kA = a.opacity } }); b.WU = function(a, d) { return new b.xm(a, d) }; b.xm.create = b.WU; b.sq = b.xm.extend({ qI: null, ctor: function(a) { b.xm.prototype.ctor.call(this); null == a && (a = 0); this.l(a, 255) }, reverse: function() { var a = new b.ju; a.l(this.D, 0); this.Ia(a); this.lf(a); return a }, q: function() { var a = new b.sq; this.Ia(a); a.l(this.D, this.as); return a }, N: function(a) { this.qI && (this.as = this.qI.kA); b.xm.prototype.N.call(this, a) } }); b.RU = function(a) { return new b.sq(a) }; b.sq.create = b.RU; b.ju = b.xm.extend({ ctor: function(a) { b.xm.prototype.ctor.call(this); null == a && (a = 0); this.l(a, 0) }, reverse: function() { var a = new b.sq; a.qI = this; a.l(this.D, 255); this.Ia(a); this.lf(a); return a }, q: function() { var a = new b.ju; this.Ia(a); a.l(this.D, this.as); return a } }); b.SU = function(a) { return new b.ju(a) }; b.ju.create = b.SU; b.HF = b.J.extend({ fe: null, $d: null, ctor: function(a, d, e, f) { b.J.prototype.ctor.call(this); this.fe = b.color(0, 0, 0); this.$d = b.color(0, 0, 0); void 0 !== f && this.l(a, d, e, f) }, l: function(a, d, e, f) { return b.J.prototype.l.call(this, a) ? (this.fe = b.color(d, e, f), !0) : !1 }, q: function() { var a = new b.HF; this.Ia(a); var d = this.fe; a.l(this.D, d.r, d.g, d.b); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.$d = this.target.color }, update: function(a) { a = this.Yd(a); var d = this.$d, e = this.fe; d && (this.target.color = b.color(d.r + (e.r - d.r) * a, d.g + (e.g - d.g) * a, d.b + (e.b - d.b) * a)) } }); b.afa = function(a, d, e, f) { return new b.HF(a, d, e, f) }; b.HF.create = b.afa; b.kz = b.J.extend({ Zz: 0, Yz: 0, Xz: 0, SQ: 0, RQ: 0, QQ: 0, ctor: function(a, d, e, f) { b.J.prototype.ctor.call(this); void 0 !== f && this.l(a, d, e, f) }, l: function(a, d, e, f) { return b.J.prototype.l.call(this, a) ? (this.Zz = d, this.Yz = e, this.Xz = f, !0) : !1 }, q: function() { var a = new b.kz; this.Ia(a); a.l(this.D, this.Zz, this.Yz, this.Xz); return a }, N: function(a) { b.J.prototype.N.call(this, a); a = a.color; this.SQ = a.r; this.RQ = a.g; this.QQ = a.b }, update: function(a) { a = this.Yd(a); this.target.color = b.color(this.SQ + this.Zz * a, this.RQ + this.Yz * a, this.QQ + this.Xz * a) }, reverse: function() { var a = new b.kz(this.D, -this.Zz, -this.Yz, -this.Xz); this.Ia(a); this.lf(a); return a } }); b.$ea = function(a, d, e, f) { return new b.kz(a, d, e, f) }; b.kz.create = b.$ea; b.iy = b.J.extend({ update: function() {}, reverse: function() { var a = new b.iy(this.D); this.Ia(a); this.lf(a); return a }, q: function() { var a = new b.iy; this.Ia(a); a.l(this.D); return a } }); b.Fe = function(a) { return new b.iy(a) }; b.iy.create = b.Fe; b.su = b.J.extend({ Al: null, ctor: function(a) { b.J.prototype.ctor.call(this); this.Al = null; a && this.ha(a) }, ha: function(a) { if (!a) throw "cc.ReverseTime.initWithAction(): action must be non null"; if (a === this.Al) throw "cc.ReverseTime.initWithAction(): the action was already passed in."; return b.J.prototype.l.call(this, a.D) ? (this.Al = a, !0) : !1 }, q: function() { var a = new b.su; this.Ia(a); a.ha(this.Al.q()); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.Al.N(a) }, update: function(a) { a = this.Yd(a); this.Al && this.Al.update(1 - a) }, reverse: function() { return this.Al.q() }, stop: function() { this.Al.stop(); b.ne.prototype.stop.call(this) } }); b.ZW = function(a) { return new b.su(a) }; b.su.create = b.ZW; b.$x = b.J.extend({ Om: null, wv: 0, PH: null, hA: 0, XI: null, ctor: function(a) { b.J.prototype.ctor.call(this); this.XI = []; a && this.QV(a) }, wK: function() { return this.Om }, Nca: function(a) { this.Om = a }, QV: function(a) { if (!a) throw "cc.Animate.initWithAnimation(): animation must be non-NULL"; var d = a.Gs(); if (this.l(d * a.wl)) { this.wv = 0; this.Nca(a); this.PH = null; this.hA = 0; var e = this.XI, f = e.length = 0, g = d / a.tk; a = a.Xe; b.ow(a, b.wh); for (var h = 0; h < a.length; h++) { var k = f * g / d, f = f + a[h].We; e.push(k) } return !0 } return !1 }, q: function() { var a = new b.$x; this.Ia(a); a.QV(this.Om.q()); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.Om.hp && (this.PH = a.IU()); this.hA = this.wv = 0 }, update: function(a) { a = this.Yd(a); 1 > a && (a *= this.Om.wl, (0 | a) > this.hA && (this.wv = 0, this.hA++), a %= 1); for (var d = this.Om.Xe, e = d.length, f = this.XI, g = this.wv; g < e; g++) if (f[g] <= a) this.target.zi(d[g].og()), this.wv = g + 1; else break }, reverse: function() { var a = this.Om, d = a.Xe, e = []; b.ow(d, b.wh); if (0 < d.length) for (var f = d.length - 1; 0 <= f; f--) { var g = d[f]; if (!g) break; e.push(g.q()) } d = new b.Kj(e, a.We, a.wl); d.Gx(a.hp); a = new b.$x(d); this.Ia(a); this.lf(a); return a }, stop: function() { this.Om.hp && this.target && this.target.zi(this.PH); b.ne.prototype.stop.call(this) } }); b.VT = function(a) { return new b.$x(a) }; b.$x.create = b.VT; b.DF = b.J.extend({ Bg: null, nr: null, ctor: function(a, d) { b.J.prototype.ctor.call(this); d && this.Ts(a, d) }, Ts: function(a, d) { return this.l(d.D) ? (this.nr = a, this.Bg = d, !0) : !1 }, q: function() { var a = new b.DF; this.Ia(a); a.Ts(this.nr, this.Bg.q()); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.Bg.N(this.nr) }, stop: function() { this.Bg.stop() }, update: function(a) { a = this.Yd(a); this.Bg.update(a) }, nna: function() { return this.nr }, Sta: function(a) { this.nr !== a && (this.nr = a) } }); b.Oea = function(a, d) { return new b.DF(a, d) }; b.DF.create = b.Oea; b.xf = b.Wk.extend({ mi: function() { return !0 }, step: function() { this.update(1) }, update: function() {}, reverse: function() { return this.q() }, q: function() { return new b.xf } }); b.$y = b.xf.extend({ update: function() { this.target.visible = !0 }, reverse: function() { return new b.Jy }, q: function() { return new b.$y } }); b.show = function() { return new b.$y }; b.$y.create = b.show; b.Jy = b.xf.extend({ update: function() { this.target.visible = !1 }, reverse: function() { return new b.$y }, q: function() { return new b.Jy } }); b.Rp = function() { return new b.Jy }; b.Jy.create = b.Rp; b.lz = b.xf.extend({ update: function() { this.target.visible = !this.target.visible }, reverse: function() { return new b.lz }, q: function() { return new b.lz } }); b.cfa = function() { return new b.lz }; b.lz.create = b.cfa; b.Qy = b.xf.extend({ zA: !0, ctor: function(a) { b.Wk.prototype.ctor.call(this); void 0 !== a && this.T(a) }, update: function() { this.target.Rn(this.zA) }, T: function(a) { this.zA = a; return !0 }, reverse: function() { return new b.Qy(this.zA) }, q: function() { return new b.Qy(this.zA) } }); b.wca = function(a) { return new b.Qy(a) }; b.Qy.create = b.wca; b.Gy = b.xf.extend({ uc: !1, ctor: function(a) { b.Wk.prototype.ctor.call(this); this.uc = !1; void 0 !== a && this.TV(a) }, TV: function(a) { this.uc = a; return !0 }, update: function() { this.target.flippedX = this.uc }, reverse: function() { return new b.Gy(!this.uc) }, q: function() { var a = new b.Gy; a.TV(this.uc); return a } }); b.N8 = function(a) { return new b.Gy(a) }; b.Gy.create = b.N8; b.Hy = b.xf.extend({ vc: !1, ctor: function(a) { b.Wk.prototype.ctor.call(this); this.vc = !1; void 0 !== a && this.UV(a) }, UV: function(a) { this.vc = a; return !0 }, update: function() { this.target.flippedY = this.vc }, reverse: function() { return new b.Hy(!this.vc) }, q: function() { var a = new b.Hy; a.UV(this.vc); return a } }); b.P8 = function(a) { return new b.Hy(a) }; b.Hy.create = b.P8; b.WE = b.xf.extend({ kj: 0, Nf: 0, ctor: function(a, d) { b.Wk.prototype.ctor.call(this); this.Nf = this.kj = 0; void 0 !== a && (void 0 !== a.x && (d = a.y, a = a.x), this.ZV(a, d)) }, ZV: function(a, d) { this.kj = a; this.Nf = d; return !0 }, update: function() { this.target.I(this.kj, this.Nf) }, q: function() { var a = new b.WE; a.ZV(this.kj, this.Nf); return a } }); b.Uba = function(a, d) { return new b.WE(a, d) }; b.WE.create = b.Uba; b.Pt = b.xf.extend({ Kl: null, Lz: null, gv: null, er: null, ctor: function(a, d, e) { b.Wk.prototype.ctor.call(this); void 0 !== a && (void 0 === d ? this.NC(a) : this.NC(a, d, e)) }, NC: function(a, d, e) { d ? (this.er = e, this.Lz = a, this.Kl = d) : a && (this.gv = a); return !0 }, execute: function() { null != this.Lz ? this.Lz.call(this.Kl, this.target, this.er) : this.gv && this.gv.call(null, this.target) }, update: function() { this.execute() }, Ioa: function() { return this.Kl }, Wua: function(a) { a !== this.Kl && (this.Kl && (this.Kl = null), this.Kl = a) }, q: function() { var a = new b.Pt; this.Kl ? a.NC(this.Lz, this.Kl, this.er) : this.gv && a.NC(this.gv); return a } }); b.Cc = function(a, d, e) { return new b.Pt(a, d, e) }; b.Pt.create = b.Cc; b.dE = b.J.extend({ kG: 0, lG: 0, mG: 0, GQ: 0, HQ: 0, IQ: 0, qT: 0, rT: 0, sT: 0, ctor: function() { b.J.prototype.ctor.call(this); this.sT = this.rT = this.qT = this.IQ = this.HQ = this.GQ = this.mG = this.lG = this.kG = 0 }, N: function(a) { b.J.prototype.N.call(this, a); a = a.Fs(); var d = a.eV(); this.kG = d.x; this.lG = d.y; this.mG = d.z; d = a.iV(); this.GQ = d.x; this.HQ = d.y; this.IQ = d.z; a = a.R$(); this.qT = a.x; this.rT = a.y; this.sT = a.z }, q: function() { return new b.dE }, reverse: function() { return new b.su(this) } }); b.SE = b.dE.extend({ jg: 0, CG: 0, Ku: 0, TP: 0, Ji: 0, SP: 0, lS: 0, jS: 0, kS: 0, iS: 0, ctor: function(a, d, e, f, g, h, k) { b.dE.prototype.ctor.call(this); void 0 !== k && this.l(a, d, e, f, g, h, k) }, l: function(a, d, e, f, g, h, k) { return b.J.prototype.l.call(this, a) ? (this.jg = d, this.CG = e, this.Ku = f, this.TP = g, this.Ji = h, this.SP = k, this.jS = b.Md(g), this.iS = b.Md(k), !0) : !1 }, Bea: function() { var a, d; d = this.target.Fs(); var e = d.iV(); a = d.eV(); d = e.x - a.x; var f = e.y - a.y; a = e.z - a.z; var e = Math.sqrt(Math.pow(d, 2) + Math.pow(f, 2) + Math.pow(a, 2)), g = Math.sqrt(Math.pow(d, 2) + Math.pow(f, 2)); 0 === g && (g = b.Dy); 0 === e && (e = b.Dy); a = Math.acos(a / e); d = 0 > d ? Math.PI - Math.asin(f / g) : Math.asin(f / g); return { Gba: e / b.Qt.Qs(), ufa: a, azimuth: d } }, N: function(a) { b.J.prototype.N.call(this, a); a = this.Bea(); isNaN(this.jg) && (this.jg = a.Gba); isNaN(this.Ku) && (this.Ku = b.jx(a.ufa)); isNaN(this.Ji) && (this.Ji = b.jx(a.azimuth)); this.lS = b.Md(this.Ku); this.kS = b.Md(this.Ji) }, q: function() { var a = new b.SE; a.l(this.D, this.jg, this.CG, this.Ku, this.TP, this.Ji, this.SP); return a }, update: function(a) { a = this.Yd(a); var d = (this.jg + this.CG * a) * b.Qt.Qs(), e = this.lS + this.jS * a, f = this.kS + this.iS * a; a = Math.sin(e) * Math.cos(f) * d + this.kG; f = Math.sin(e) * Math.sin(f) * d + this.lG; d = Math.cos(e) * d + this.mG; this.target.Fs().uX(a, f, d); this.target.Pk() } }); b.fh = function(a, d, e, f, g, h, k) { return new b.SE(a, d, e, f, g, h, k) }; b.SE.create = b.fh; b.ib = b.J.extend({ F: null, ctor: function(a) { b.J.prototype.ctor.call(this); a && this.ha(a) }, ha: function(a) { if (!a) throw "cc.ActionEase.initWithAction(): action must be non nil"; return this.l(a.Gs()) ? (this.F = a, !0) : !1 }, q: function() { var a = new b.ib; a.ha(this.F.q()); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.F.N(this.target) }, stop: function() { this.F.stop(); b.J.prototype.stop.call(this) }, update: function(a) { this.F.update(a) }, reverse: function() { return new b.ib(this.F.reverse()) }, EK: function() { return this.F } }); b.L6 = function(a) { return new b.ib(a) }; b.ib.create = b.L6; b.jo = b.ib.extend({ yc: 0, ctor: function(a, d) { b.ib.prototype.ctor.call(this); void 0 !== d && this.ha(a, d) }, Hua: function(a) { this.yc = a }, koa: function() { return this.yc }, ha: function(a, d) { return b.ib.prototype.ha.call(this, a) ? (this.yc = d, !0) : !1 }, q: function() { var a = new b.jo; a.ha(this.F.q(), this.yc); return a }, reverse: function() { return new b.jo(this.F.reverse(), 1 / this.yc) } }); b.y8 = function(a, d) { return new b.jo(a, d) }; b.jo.create = b.y8; b.yy = b.jo.extend({ update: function(a) { this.F.update(Math.pow(a, this.yc)) }, reverse: function() { return new b.yy(this.F.reverse(), 1 / this.yc) }, q: function() { var a = new b.yy; a.ha(this.F.q(), this.yc); return a } }); b.yy.create = function(a, d) { return new b.yy(a, d) }; b.w8 = function(a) { return { yc: a, fb: function(a) { return Math.pow(a, this.yc) }, reverse: function() { return b.w8(1 / this.yc) } } }; b.qq = b.jo.extend({ update: function(a) { this.F.update(Math.pow(a, 1 / this.yc)) }, reverse: function() { return new b.qq(this.F.reverse(), 1 / this.yc) }, q: function() { var a = new b.qq; a.ha(this.F.q(), this.yc); return a } }); b.qq.create = function(a, d) { return new b.qq(a, d) }; b.x8 = function(a) { return { yc: a, fb: function(a) { return Math.pow(a, 1 / this.yc) }, reverse: function() { return b.x8(1 / this.yc) } } }; b.pq = b.jo.extend({ update: function(a) { a *= 2; 1 > a ? this.F.update(0.5 * Math.pow(a, this.yc)) : this.F.update(1 - 0.5 * Math.pow(2 - a, this.yc)) }, q: function() { var a = new b.pq; a.ha(this.F.q(), this.yc); return a }, reverse: function() { return new b.pq(this.F.reverse(), this.yc) } }); b.pq.create = function(a, d) { return new b.pq(a, d) }; b.qK = function(a) { return { yc: a, fb: function(a) { a *= 2; return 1 > a ? 0.5 * Math.pow(a, this.yc) : 1 - 0.5 * Math.pow(2 - a, this.yc) }, reverse: function() { return b.qK(this.yc) } } }; b.vy = b.ib.extend({ update: function(a) { this.F.update(0 === a ? 0 : Math.pow(2, 10 * (a - 1))) }, reverse: function() { return new b.xy(this.F.reverse()) }, q: function() { var a = new b.vy; a.ha(this.F.q()); return a } }); b.vy.create = function(a) { return new b.vy(a) }; b.nQ = { fb: function(a) { return 0 === a ? 0 : Math.pow(2, 10 * (a - 1)) }, reverse: function() { return b.pQ } }; b.Ela = function() { return b.nQ }; b.xy = b.ib.extend({ update: function(a) { this.F.update(1 === a ? 1 : -Math.pow(2, -10 * a) + 1) }, reverse: function() { return new b.vy(this.F.reverse()) }, q: function() { var a = new b.xy; a.ha(this.F.q()); return a } }); b.xy.create = function(a) { return new b.xy(a) }; b.pQ = { fb: function(a) { return 1 === a ? 1 : -Math.pow(2, -10 * a) + 1 }, reverse: function() { return b.nQ } }; b.Gla = function() { return b.pQ }; b.wy = b.ib.extend({ update: function(a) { 1 !== a && 0 !== a && (a *= 2, a = 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * (-Math.pow(2, -10 * (a - 1)) + 2)); this.F.update(a) }, reverse: function() { return new b.wy(this.F.reverse()) }, q: function() { var a = new b.wy; a.ha(this.F.q()); return a } }); b.wy.create = function(a) { return new b.wy(a) }; b.oQ = { fb: function(a) { return 1 !== a && 0 !== a ? (a *= 2, 1 > a ? 0.5 * Math.pow(2, 10 * (a - 1)) : 0.5 * (-Math.pow(2, -10 * (a - 1)) + 2)) : a }, reverse: function() { return b.oQ } }; b.Fla = function() { return b.oQ }; b.zy = b.ib.extend({ update: function(a) { a = 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1; this.F.update(a) }, reverse: function() { return new b.By(this.F.reverse()) }, q: function() { var a = new b.zy; a.ha(this.F.q()); return a } }); b.zy.create = function(a) { return new b.zy(a) }; b.zQ = { fb: function(a) { return 0 === a || 1 === a ? a : -1 * Math.cos(a * Math.PI / 2) + 1 }, reverse: function() { return b.BQ } }; b.Qla = function() { return b.zQ }; b.By = b.ib.extend({ update: function(a) { a = 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2); this.F.update(a) }, reverse: function() { return new b.zy(this.F.reverse()) }, q: function() { var a = new b.By; a.ha(this.F.q()); return a } }); b.By.create = function(a) { return new b.By(a) }; b.BQ = { fb: function(a) { return 0 === a || 1 === a ? a : Math.sin(a * Math.PI / 2) }, reverse: function() { return b.zQ } }; b.Sla = function() { return b.BQ }; b.Ay = b.ib.extend({ update: function(a) { a = 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1); this.F.update(a) }, q: function() { var a = new b.Ay; a.ha(this.F.q()); return a }, reverse: function() { return new b.Ay(this.F.reverse()) } }); b.Ay.create = function(a) { return new b.Ay(a) }; b.AQ = { fb: function(a) { return 0 === a || 1 === a ? a : -0.5 * (Math.cos(Math.PI * a) - 1) }, reverse: function() { return b.AQ } }; b.Rla = function() { return b.AQ }; b.oq = b.ib.extend({ $b: 0.3, ctor: function(a, d) { b.ib.prototype.ctor.call(this); a && this.ha(a, d) }, doa: function() { return this.$b }, Eua: function(a) { this.$b = a }, ha: function(a, d) { b.ib.prototype.ha.call(this, a); this.$b = null == d ? 0.3 : d; return !0 }, reverse: function() { b.log("cc.EaseElastic.reverse(): it should be overridden in subclass."); return null }, q: function() { var a = new b.oq; a.ha(this.F.q(), this.$b); return a } }); b.oq.create = function(a, d) { return new b.oq(a, d) }; b.sy = b.oq.extend({ update: function(a) { var d = 0; 0 === a || 1 === a ? d = a : (d = this.$b / 4, a -= 1, d = -Math.pow(2, 10 * a) * Math.sin((a - d) * Math.PI * 2 / this.$b)); this.F.update(d) }, reverse: function() { return new b.uy(this.F.reverse(), this.$b) }, q: function() { var a = new b.sy; a.ha(this.F.q(), this.$b); return a } }); b.sy.create = function(a, d) { return new b.sy(a, d) }; b.lQ = { fb: function(a) { if (0 === a || 1 === a) return a; a -= 1; return -Math.pow(2, 10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3) }, reverse: function() { return b.mQ } }; b.t8 = function(a) { return a && 0.3 !== a ? { $b: a, fb: function(a) { if (0 === a || 1 === a) return a; a -= 1; return -Math.pow(2, 10 * a) * Math.sin((a - this.$b / 4) * Math.PI * 2 / this.$b) }, reverse: function() { return b.v8(this.$b) } } : b.lQ }; b.uy = b.oq.extend({ update: function(a) { var d = 0, d = 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.$b / 4) * Math.PI * 2 / this.$b) + 1; this.F.update(d) }, reverse: function() { return new b.sy(this.F.reverse(), this.$b) }, q: function() { var a = new b.uy; a.ha(this.F.q(), this.$b); return a } }); b.uy.create = function(a, d) { return new b.uy(a, d) }; b.mQ = { fb: function(a) { return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - 0.075) * Math.PI * 2 / 0.3) + 1 }, reverse: function() { return b.lQ } }; b.v8 = function(a) { return a && 0.3 !== a ? { $b: a, fb: function(a) { return 0 === a || 1 === a ? a : Math.pow(2, -10 * a) * Math.sin((a - this.$b / 4) * Math.PI * 2 / this.$b) + 1 }, reverse: function() { return b.t8(this.$b) } } : b.mQ }; b.ty = b.oq.extend({ update: function(a) { var d = 0, d = this.$b; if (0 === a || 1 === a) d = a; else { d || (d = this.$b = 0.3 * 1.5); var e = d / 4; a = 2 * a - 1; d = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - e) * Math.PI * 2 / d) : Math.pow(2, -10 * a) * Math.sin((a - e) * Math.PI * 2 / d) * 0.5 + 1 } this.F.update(d) }, reverse: function() { return new b.ty(this.F.reverse(), this.$b) }, q: function() { var a = new b.ty; a.ha(this.F.q(), this.$b); return a } }); b.ty.create = function(a, d) { return new b.ty(a, d) }; b.u8 = function(a) { return { $b: a || 0.3, fb: function(a) { var e = 0, e = this.$b; if (0 === a || 1 === a) e = a; else { e || (e = this.$b = 0.3 * 1.5); var f = e / 4; a = 2 * a - 1; e = 0 > a ? -0.5 * Math.pow(2, 10 * a) * Math.sin((a - f) * Math.PI * 2 / e) : Math.pow(2, -10 * a) * Math.sin((a - f) * Math.PI * 2 / e) * 0.5 + 1 } return e }, reverse: function() { return b.u8(this.$b) } } }; b.io = b.ib.extend({ aC: function(a) { if (a < 1 / 2.75) return 7.5625 * a * a; if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75; if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375; a -= 2.625 / 2.75; return 7.5625 * a * a + 0.984375 }, q: function() { var a = new b.io; a.ha(this.F.q()); return a }, reverse: function() { return new b.io(this.F.reverse()) } }); b.io.create = function(a) { return new b.io(a) }; b.py = b.io.extend({ update: function(a) { this.F.update(1 - this.aC(1 - a)) }, reverse: function() { return new b.ry(this.F.reverse()) }, q: function() { var a = new b.py; a.ha(this.F.q()); return a } }); b.py.create = function(a) { return new b.py(a) }; b.Fz = function(a) { if (a < 1 / 2.75) return 7.5625 * a * a; if (a < 2 / 2.75) return a -= 1.5 / 2.75, 7.5625 * a * a + 0.75; if (a < 2.5 / 2.75) return a -= 2.25 / 2.75, 7.5625 * a * a + 0.9375; a -= 2.625 / 2.75; return 7.5625 * a * a + 0.984375 }; b.cQ = { fb: function(a) { return 1 - b.Fz(1 - a) }, reverse: function() { return b.eQ } }; b.vla = function() { return b.cQ }; b.ry = b.io.extend({ update: function(a) { this.F.update(this.aC(a)) }, reverse: function() { return new b.py(this.F.reverse()) }, q: function() { var a = new b.ry; a.ha(this.F.q()); return a } }); b.ry.create = function(a) { return new b.ry(a) }; b.eQ = { fb: function(a) { return b.Fz(a) }, reverse: function() { return b.cQ } }; b.xla = function() { return b.eQ }; b.qy = b.io.extend({ update: function(a) { var d = 0, d = 0.5 > a ? 0.5 * (1 - this.aC(1 - 2 * a)) : 0.5 * this.aC(2 * a - 1) + 0.5; this.F.update(d) }, q: function() { var a = new b.qy; a.ha(this.F.q()); return a }, reverse: function() { return new b.qy(this.F.reverse()) } }); b.qy.create = function(a) { return new b.qy(a) }; b.dQ = { fb: function(a) { return a = 0.5 > a ? 0.5 * (1 - b.Fz(1 - 2 * a)) : 0.5 * b.Fz(2 * a - 1) + 0.5 }, reverse: function() { return b.dQ } }; b.wla = function() { return b.dQ }; b.my = b.ib.extend({ update: function(a) { this.F.update(0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158)) }, reverse: function() { return new b.oy(this.F.reverse()) }, q: function() { var a = new b.my; a.ha(this.F.q()); return a } }); b.my.create = function(a) { return new b.my(a) }; b.$P = { fb: function(a) { return 0 === a || 1 === a ? a : a * a * (2.70158 * a - 1.70158) }, reverse: function() { return b.bQ } }; b.sla = function() { return b.$P }; b.oy = b.ib.extend({ update: function(a) { a -= 1; this.F.update(a * a * (2.70158 * a + 1.70158) + 1) }, reverse: function() { return new b.my(this.F.reverse()) }, q: function() { var a = new b.oy; a.ha(this.F.q()); return a } }); b.oy.create = function(a) { return new b.oy(a) }; b.bQ = { fb: function(a) { a -= 1; return a * a * (2.70158 * a + 1.70158) + 1 }, reverse: function() { return b.$P } }; b.ula = function() { return b.bQ }; b.ny = b.ib.extend({ update: function(a) { a *= 2; 1 > a ? this.F.update(a * a * (3.5949095 * a - 2.5949095) / 2) : (a -= 2, this.F.update(a * a * (3.5949095 * a + 2.5949095) / 2 + 1)) }, q: function() { var a = new b.ny; a.ha(this.F.q()); return a }, reverse: function() { return new b.ny(this.F.reverse()) } }); b.ny.create = function(a) { return new b.ny(a) }; b.aQ = { fb: function(a) { a *= 2; if (1 > a) return a * a * (3.5949095 * a - 2.5949095) / 2; a -= 2; return a * a * (3.5949095 * a + 2.5949095) / 2 + 1 }, reverse: function() { return b.aQ } }; b.tla = function() { return b.aQ }; b.Tt = b.ib.extend({ YA: null, ZA: null, $A: null, aB: null, ctor: function(a) { b.ib.prototype.ctor.call(this, a) }, Aa: function(a, d, e, f, g) { return Math.pow(1 - g, 3) * a + 3 * g * Math.pow(1 - g, 2) * d + 3 * Math.pow(g, 2) * (1 - g) * e + Math.pow(g, 3) * f }, update: function(a) { this.F.update(this.Aa(this.YA, this.ZA, this.$A, this.aB, a)) }, q: function() { var a = new b.Tt; a.ha(this.F.q()); a.kX(this.YA, this.ZA, this.$A, this.aB); return a }, reverse: function() { var a = new b.Tt(this.F.reverse()); a.kX(this.aB, this.$A, this.ZA, this.YA); return a }, kX: function(a, d, e, f) { this.YA = a || 0; this.ZA = d || 0; this.$A = e || 0; this.aB = f || 0 } }); b.Tt.create = function(a) { return new b.Tt(a) }; b.s8 = function(a, d, e, f) { return { fb: function(g) { return b.Tt.prototype.Aa(a, d, e, f, g) }, reverse: function() { return b.s8(f, e, d, a) } } }; b.$t = b.ib.extend({ Aa: function(a) { return Math.pow(a, 2) }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.$t; a.ha(this.F.q()); return a }, reverse: function() { return new b.$t(this.F.reverse()) } }); b.$t.create = function(a) { return new b.$t(a) }; b.qQ = { fb: b.$t.prototype.Aa, reverse: function() { return b.qQ } }; b.Hla = function() { return b.qQ }; b.bu = b.ib.extend({ Aa: function(a) { return -a * (a - 2) }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.bu; a.ha(); return a }, reverse: function() { return new b.bu(this.F.reverse()) } }); b.bu.create = function(a) { return new b.bu(a) }; b.sQ = { fb: b.bu.prototype.Aa, reverse: function() { return b.sQ } }; b.Jla = function() { return b.sQ }; b.au = b.ib.extend({ Aa: function(a) { var d = a; a *= 2; 1 > a ? d = a * a * 0.5 : (--a, d = -0.5 * (a * (a - 2) - 1)); return d }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.au; a.ha(this.F.q()); return a }, reverse: function() { return new b.au(this.F.reverse()) } }); b.au.create = function(a) { return new b.au(a) }; b.rQ = { fb: b.au.prototype.Aa, reverse: function() { return b.rQ } }; b.Ila = function() { return b.rQ }; b.cu = b.ib.extend({ Aa: function(a) { return a * a * a * a }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.cu; a.ha(this.F.q()); return a }, reverse: function() { return new b.cu(this.F.reverse()) } }); b.cu.create = function(a) { return new b.cu(a) }; b.tQ = { fb: b.cu.prototype.Aa, reverse: function() { return b.tQ } }; b.Kla = function() { return b.tQ }; b.eu = b.ib.extend({ Aa: function(a) { a -= 1; return -(a * a * a * a - 1) }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.eu; a.ha(this.F.q()); return a }, reverse: function() { return new b.eu(this.F.reverse()) } }); b.eu.create = function(a) { return new b.eu(a) }; b.vQ = { fb: b.eu.prototype.Aa, reverse: function() { return b.vQ } }; b.Mla = function() { return b.vQ }; b.du = b.ib.extend({ Aa: function(a) { a *= 2; if (1 > a) return 0.5 * a * a * a * a; a -= 2; return -0.5 * (a * a * a * a - 2) }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.du; a.ha(this.F.q()); return a }, reverse: function() { return new b.du(this.F.reverse()) } }); b.du.create = function(a) { return new b.du(a) }; b.uQ = { fb: b.du.prototype.Aa, reverse: function() { return b.uQ } }; b.Lla = function() { return b.uQ }; b.fu = b.ib.extend({ Aa: function(a) { return a * a * a * a * a }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.fu; a.ha(this.F.q()); return a }, reverse: function() { return new b.fu(this.F.reverse()) } }); b.fu.create = function(a) { return new b.fu(a) }; b.wQ = { fb: b.fu.prototype.Aa, reverse: function() { return b.wQ } }; b.Nla = function() { return b.wQ }; b.hu = b.ib.extend({ Aa: function(a) { a -= 1; return a * a * a * a * a + 1 }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.hu; a.ha(this.F.q()); return a }, reverse: function() { return new b.hu(this.F.reverse()) } }); b.hu.create = function(a) { return new b.hu(a) }; b.yQ = { fb: b.hu.prototype.Aa, reverse: function() { return b.yQ } }; b.Pla = function() { return b.yQ }; b.gu = b.ib.extend({ Aa: function(a) { a *= 2; if (1 > a) return 0.5 * a * a * a * a * a; a -= 2; return 0.5 * (a * a * a * a * a + 2) }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.gu; a.ha(this.F.q()); return a }, reverse: function() { return new b.gu(this.F.reverse()) } }); b.gu.create = function(a) { return new b.gu(a) }; b.xQ = { fb: b.gu.prototype.Aa, reverse: function() { return b.xQ } }; b.Ola = function() { return b.xQ }; b.Ut = b.ib.extend({ Aa: function(a) { return -1 * (Math.sqrt(1 - a * a) - 1) }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.Ut; a.ha(this.F.q()); return a }, reverse: function() { return new b.Ut(this.F.reverse()) } }); b.Ut.create = function(a) { return new b.Ut(a) }; b.fQ = { fb: b.Ut.prototype.Aa, reverse: function() { return b.fQ } }; b.yla = function() { return b.fQ }; b.Wt = b.ib.extend({ Aa: function(a) { a -= 1; return Math.sqrt(1 - a * a) }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.Wt; a.ha(this.F.q()); return a }, reverse: function() { return new b.Wt(this.F.reverse()) } }); b.Wt.create = function(a) { return new b.Wt(a) }; b.hQ = { fb: b.Wt.prototype.Aa, reverse: function() { return b.hQ } }; b.Ala = function() { return b.hQ }; b.Vt = b.ib.extend({ Aa: function(a) { a *= 2; if (1 > a) return -0.5 * (Math.sqrt(1 - a * a) - 1); a -= 2; return 0.5 * (Math.sqrt(1 - a * a) + 1) }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.Vt; a.ha(this.F.q()); return a }, reverse: function() { return new b.Vt(this.F.reverse()) } }); b.Vt.create = function(a) { return new b.Vt(a) }; b.gQ = { fb: b.Vt.prototype.Aa, reverse: function() { return b.gQ } }; b.zla = function() { return b.gQ }; b.Xt = b.ib.extend({ Aa: function(a) { return a * a * a }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.Xt; a.ha(this.F.q()); return a }, reverse: function() { return new b.Xt(this.F.reverse()) } }); b.Xt.create = function(a) { return new b.Xt(a) }; b.iQ = { fb: b.Xt.prototype.Aa, reverse: function() { return b.iQ } }; b.Bla = function() { return b.iQ }; b.Zt = b.ib.extend({ Aa: function(a) { a -= 1; return a * a * a + 1 }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.Zt; a.ha(this.F.q()); return a }, reverse: function() { return new b.Zt(this.F.reverse()) } }); b.Zt.create = function(a) { return new b.Zt(a) }; b.kQ = { fb: b.Zt.prototype.Aa, reverse: function() { return b.kQ } }; b.Dla = function() { return b.kQ }; b.Yt = b.ib.extend({ Aa: function(a) { a *= 2; if (1 > a) return 0.5 * a * a * a; a -= 2; return 0.5 * (a * a * a + 2) }, update: function(a) { this.F.update(this.Aa(a)) }, q: function() { var a = new b.Yt; a.ha(this.F.q()); return a }, reverse: function() { return new b.Yt(this.F.reverse()) } }); b.Yt.create = function(a) { return new b.Yt(a) }; b.jQ = { fb: b.Yt.prototype.Aa, reverse: function() { return b.jQ } }; b.Cla = function() { return b.jQ }; b.cC = function(a, d, e, f, g, h) { var k = h * h, m = k * h, n = (1 - g) / 2; g = n * (-m + 2 * k - h); var p = n * (-m + k) + (2 * m - 3 * k + 1); h = n * (m - 2 * k + h) + (-2 * m + 3 * k); k = n * (m - k); return b.d(a.x * g + d.x * p + e.x * h + f.x * k, a.y * g + d.y * p + e.y * h + f.y * k) }; b.YW = function(a) { for (var d = [], e = a.length - 1; 0 <= e; e--) d.push(b.d(a[e].x, a[e].y)); return d }; b.H7 = function(a) { for (var d = [], e = 0; e < a.length; e++) d.push(b.d(a[e].x, a[e].y)); return d }; b.eC = b.H7; b.Nd = function(a, d) { var e = Math.min(a.length - 1, Math.max(d, 0)); return a[e] }; b.Xsa = function(a) { for (var d = a.length, e = 0 | d / 2, f = 0; f < e; ++f) { var g = a[f]; a[f] = a[d - f - 1]; a[d - f - 1] = g } }; b.Vk = b.J.extend({ Wi: null, UP: 0, Wr: 0, od: null, jP: null, ctor: function(a, d, e) { b.J.prototype.ctor.call(this); this.Wi = []; void 0 !== e && this.l(a, d, e) }, l: function(a, d, e) { if (!d || 0 === d.length) throw "Invalid configuration. It must at least have one control point"; return b.J.prototype.l.call(this, a) ? (this.Gda(d), this.Wr = e, !0) : !1 }, q: function() { var a = new b.Vk; a.l(this.D, b.eC(this.Wi), this.Wr); return a }, N: function(a) { b.J.prototype.N.call(this, a); this.UP = 1 / (this.Wi.length - 1); this.od = b.d(this.target.vd(), this.target.Qf()); this.jP = b.d(0, 0) }, update: function(a) { a = this.Yd(a); var d, e = this.Wi; if (1 === a) d = e.length - 1, a = 1; else { var f = this.UP; d = 0 | a / f; a = (a - f * d) / f } d = b.cC(b.Nd(e, d - 1), b.Nd(e, d - 0), b.Nd(e, d + 1), b.Nd(e, d + 2), this.Wr, a); b.jy && (e = this.target.vd() - this.od.x, a = this.target.Qf() - this.od.y, 0 !== e || 0 !== a) && (f = this.jP, e = f.x + e, a = f.y + a, f.x = e, f.y = a, d.x += e, d.y += a); this.$D(d) }, reverse: function() { var a = b.YW(this.Wi); return b.fU(this.D, a, this.Wr) }, $D: function(a) { this.target.I(a); this.od = a }, eoa: function() { return this.Wi }, Gda: function(a) { this.Wi = a } }); b.fU = function(a, d, e) { return new b.Vk(a, d, e) }; b.Vk.create = b.fU; b.Rt = b.Vk.extend({ bd: null, ctor: function(a, d, e) { b.Vk.prototype.ctor.call(this); this.bd = b.d(0, 0); void 0 !== e && this.l(a, d, e) }, N: function(a) { b.Vk.prototype.N.call(this, a); this.bd.x = a.vd(); this.bd.y = a.Qf() }, reverse: function() { for (var a = this.Wi.slice(), d, e = a[0], f = 1; f < a.length; ++f) d = a[f], a[f] = b.zd(d, e), e = d; a = b.YW(a); e = a[a.length - 1]; a.pop(); e.x = -e.x; e.y = -e.y; a.unshift(e); for (f = 1; f < a.length; ++f) d = a[f], d.x = -d.x, d.y = -d.y, d.x += e.x, d.y += e.y, e = a[f] = d; return b.eU(this.D, a, this.Wr) }, $D: function(a) { var d = this.bd, e = a.x + d.x; a = a.y + d.y; this.od.x = e; this.od.y = a; this.target.I(e, a) }, q: function() { var a = new b.Rt; a.l(this.D, b.eC(this.Wi), this.Wr); return a } }); b.eU = function(a, d, e) { return new b.Rt(a, d, e) }; b.Rt.create = b.eU; b.nE = b.Vk.extend({ ctor: function(a, d) { d && this.l(a, d) }, l: function(a, d) { return b.Vk.prototype.l.call(this, a, d, 0.5) }, q: function() { var a = new b.nE; a.l(this.D, b.eC(this.Wi)); return a } }); b.A7 = function(a, d) { return new b.nE(a, d) }; b.nE.create = b.A7; b.mE = b.Rt.extend({ ctor: function(a, d) { b.Rt.prototype.ctor.call(this); d && this.l(a, d) }, l: function(a, d) { return b.Vk.prototype.l.call(this, a, d, 0.5) }, q: function() { var a = new b.mE; a.l(this.D, b.eC(this.Wi)); return a } }); b.z7 = function(a, d) { return new b.mE(a, d) }; b.mE.create = b.z7; b.Lfa = b.sa.extend({ sM: function() {} }); b.Lt = b.J.extend({ key: "", kC: 0, Ox: 0, vs: 0, ctor: function(a, d, e, f) { b.J.prototype.ctor.call(this); this.key = ""; void 0 !== f && this.l(a, d, e, f) }, l: function(a, d, e, f) { return b.J.prototype.l.call(this, a) ? (this.key = d, this.Ox = f, this.kC = e, !0) : !1 }, N: function(a) { if (!a || !a.sM) throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function"; b.J.prototype.N.call(this, a); this.vs = this.Ox - this.kC }, update: function(a) { this.target.sM(this.Ox - this.vs * (1 - a), this.key) }, reverse: function() { return new b.Lt(this.duration, this.key, this.Ox, this.kC) }, q: function() { var a = new b.Lt; a.l(this.D, this.key, this.kC, this.Ox); return a } }); b.NT = function(a, d, e, f) { return new b.Lt(a, d, e, f) }; b.Lt.create = b.NT; b.Hc = b.J.extend({ da: null, fja: null, ctor: function(a, d) { b.pG(); b.J.prototype.ctor.call(this); this.da = b.size(0, 0); d && this.l(a, d) }, Jia: function() {}, q: function() { var a = new b.Hc, d = this.da; a.l(this.D, b.size(d.width, d.height)); return a }, N: function(a) { b.J.prototype.N.call(this, a); b.oa.he = !0; var d = this.Hs(), e = this.target; (a = e.grid) && 0 < a.ok ? (d = a.y9(), a.Ln() && d.width === this.da.width && d.height === this.da.height && a.nt()) : (a && a.Ln() && a.setActive(!1), e.grid = d, e.grid.setActive(!0)) }, reverse: function() { return new b.su(this) }, l: function(a, d) { return b.J.prototype.l.call(this, a) ? (this.da.width = d.width, this.da.height = d.height, !0) : !1 }, Hs: function() { b.log("cc.GridAction.getGrid(): it should be overridden in subclass.") } }); b.faa = function(a, d) { return new b.Hc(a, d) }; b.Hc.create = b.faa; b.Bd = b.Hc.extend({ Hs: function() { return new b.Iy(this.da) }, ofa: function(a) { return this.BC(a) }, BC: function(a) { return this.target.grid.BC(a) }, yd: function(a) { return this.qC(a) }, qC: function(a) { return this.target.grid.yd(a) }, Me: function(a, d) { this.target.grid.Me(a, d) } }); b.eaa = function(a, d) { return new b.Bd(a, d) }; b.Bd.create = b.eaa; b.Qc = b.Hc.extend({ sY: function(a) { return this.SK(a) }, SK: function(a) { return this.target.grid.sY(a) }, gh: function(a) { return this.HK(a) }, HK: function(a) { return this.target.grid.gh(a) }, Wf: function(a, d) { this.target.grid.Wf(a, d) }, Hs: function() { return new b.FF(this.da) } }); b.Zea = function(a, d) { return new b.Qc(a, d) }; b.Qc.create = b.Zea; b.dO = b.xf.extend({ N: function(a) { b.xf.prototype.N.call(this, a); b.oa.he = !0; (a = this.target.grid) && a.Ln() && a.setActive(!1) } }); b.Ct = function() { return new b.dO }; b.dO.create = b.Ct; b.RN = b.xf.extend({ Kf: null, ctor: function(a) { b.xf.prototype.ctor.call(this); void 0 !== a && this.Gaa(a) }, Gaa: function(a) { this.Kf = a; return !0 }, N: function(a) { b.xf.prototype.N.call(this, a); b.oa.he = !0; this.target.grid && this.target.grid.Ln() && this.target.grid.Mda(this.target.grid.ok + this.Kf) } }); b.Gca = function(a) { return new b.RN(a) }; b.RN.create = b.Gca; b.$O = b.Bd.extend({ mg: 0, tb: 0, ub: 0, ctor: function(a, d, e, f) { b.Hc.prototype.ctor.call(this); void 0 !== f && this.l(a, d, e, f) }, Ds: function() { return this.tb }, pt: function(a) { this.tb = a }, Pp: function() { return this.ub }, cq: function(a) { this.ub = a }, l: function(a, d, e, f) { return b.Bd.prototype.l.call(this, a, d) ? (this.mg = e, this.tb = f, this.ub = 1, !0) : !1 }, update: function(a) { for (var d = this.da, e = this.tb, f = b.d(0, 0), g = this.ub, h = this.mg, k = 0; k < d.width + 1; ++k) for (var m = 0; m < d.height + 1; ++m) { f.x = k; f.y = m; var n = this.yd(f); n.z += Math.sin(Math.PI * a * h * 2 + 0.01 * (n.y + n.x)) * e * g; this.Me(f, n) } } }); b.sfa = function(a, d, e, f) { return new b.$O(a, d, e, f) }; b.$O.create = b.sfa; b.DE = b.Bd.extend({ ctor: function(a) { void 0 !== a ? b.Hc.prototype.ctor.call(this, a, b.size(1, 1)) : b.Hc.prototype.ctor.call(this) }, l: function(a) { return b.Bd.prototype.l.call(this, a, b.size(1, 1)) }, PC: function(a, d) { return 1 !== a.width || 1 !== a.height ? (b.log("Grid size must be (1,1)"), !1) : b.Bd.prototype.l.call(this, d, a) }, update: function(a) { var d = Math.PI * a; a = Math.sin(d); var e = Math.cos(d / 2), d = new N, f = b.d(0, 0); f.x = f.y = 1; var g = this.yd(f); f.x = f.y = 0; var f = this.yd(f), h = g.x, k = f.x, m, n; h > k ? (g = b.d(0, 0), f = b.d(0, 1), m = b.d(1, 0), n = b.d(1, 1)) : (m = b.d(0, 0), n = b.d(0, 1), g = b.d(1, 0), f = b.d(1, 1), h = k); d.x = h - h * e; d.z = Math.abs(parseFloat(h * a / 4)); a = this.yd(g); a.x = d.x; a.z += d.z; this.Me(g, a); a = this.yd(f); a.x = d.x; a.z += d.z; this.Me(f, a); a = this.yd(m); a.x -= d.x; a.z -= d.z; this.Me(m, a); a = this.yd(n); a.x -= d.x; a.z -= d.z; this.Me(n, a) } }); b.O8 = function(a) { return new b.DE(a) }; b.DE.create = b.O8; b.eN = b.DE.extend({ ctor: function(a) { void 0 !== a ? b.Hc.prototype.ctor.call(this, a, b.size(1, 1)) : b.Hc.prototype.ctor.call(this) }, update: function(a) { var d = Math.PI * a; a = Math.sin(d); var e = Math.cos(d / 2), d = new N, f = b.d(0, 0); f.x = f.y = 1; var g = this.yd(f); f.x = f.y = 0; var f = this.yd(f), h = g.y, k = f.y, m, n; h > k ? (g = b.d(0, 0), f = b.d(0, 1), m = b.d(1, 0), n = b.d(1, 1)) : (f = b.d(0, 0), g = b.d(0, 1), n = b.d(1, 0), m = b.d(1, 1), h = k); d.y = h - h * e; d.z = Math.abs(parseFloat(h * a) / 4); a = this.yd(g); a.y = d.y; a.z += d.z; this.Me(g, a); a = this.yd(f); a.y -= d.y; a.z -= d.z; this.Me(f, a); a = this.yd(m); a.y = d.y; a.z += d.z; this.Me(m, a); a = this.yd(n); a.y -= d.y; a.z -= d.z; this.Me(n, a) } }); b.Q8 = function(a) { return new b.eN(a) }; b.eN.create = b.Q8; b.kN = b.Bd.extend({ Ca: null, jg: 0, EA: 0, c3: !1, Ra: !1, ctor: function(a, d, e, f) { b.Hc.prototype.ctor.call(this); this.Ca = b.d(0, 0); void 0 !== f && this.l(a, d, e, f) }, Ena: function() { return this.EA }, gua: function(a) { this.EA = a }, Eta: function(a) { this.c3 = a }, Pf: function() { return this.Ca }, I: function(a) { b.DL(a, this.Ca) || (this.Ca.x = a.x, this.Ca.y = a.y, this.Ra = !0) }, l: function(a, d, e, f) { return b.Bd.prototype.l.call(this, a, d) ? (this.I(e), this.jg = f, this.EA = 0.7, this.Ra = !0) : !1 }, update: function() { if (this.Ra) { for (var a = this.da.width, d = this.da.height, e = this.jg, f = this.EA, g = b.d(0, 0), h = b.d(0, 0), k, m, n, p = 0; p < a + 1; ++p) for (var s = 0; s < d + 1; ++s) g.x = p, g.y = s, k = this.yd(g), h.x = this.Ca.x - k.x, h.y = this.Ca.y - k.y, m = b.Xp(h), m < e && (m = e - m, m /= e, 0 === m && (m = 0.001), m = Math.log(m) * f, n = Math.exp(m) * e, m = b.Xp(h), 0 < m && (h.x /= m, h.y /= m, h.x *= n, h.y *= n, k.z += b.Xp(h) * f)), this.Me(g, k); this.Ra = !1 } } }); b.vba = function(a, d, e, f) { return new b.kN(a, d, e, f) }; b.kN.create = b.vba; b.SN = b.Bd.extend({ Ca: null, jg: 0, mg: 0, tb: 0, ub: 0, ctor: function(a, d, e, f, g, h) { b.Hc.prototype.ctor.call(this); this.Ca = b.d(0, 0); void 0 !== h && this.l(a, d, e, f, g, h) }, Pf: function() { return this.Ca }, I: function(a) { this.Ca.x = a.x; this.Ca.y = a.y }, Ds: function() { return this.tb }, pt: function(a) { this.tb = a }, Pp: function() { return this.ub }, cq: function(a) { this.ub = a }, l: function(a, d, e, f, g, h) { return b.Bd.prototype.l.call(this, a, d) ? (this.I(e), this.jg = f, this.mg = g, this.tb = h, this.ub = 1, !0) : !1 }, update: function(a) { for (var d = this.da.width, e = this.da.height, f = b.d(0, 0), g = this.jg, h = this.mg, k = this.tb, m = this.ub, n, p, s = b.d(0, 0), t = 0; t < d + 1; ++t) for (var v = 0; v < e + 1; ++v) f.x = t, f.y = v, n = this.yd(f), s.x = this.Ca.x - n.x, s.y = this.Ca.y - n.y, p = b.Xp(s), p < g && (p = g - p, n.z += Math.sin(a * Math.PI * h * 2 + 0.1 * p) * k * m * Math.pow(p / g, 2)), this.Me(f, n) } }); b.Hca = function(a, d, e, f, g, h) { return new b.SN(a, d, e, f, g, h) }; b.SN.create = b.Hca; b.XN = b.Bd.extend({ nn: 0, Rv: !1, ctor: function(a, d, e, f) { b.Hc.prototype.ctor.call(this); void 0 !== f && this.l(a, d, e, f) }, l: function(a, d, e, f) { return b.Bd.prototype.l.call(this, a, d) ? (this.nn = e, this.Rv = f, !0) : !1 }, update: function() { for (var a = this.da.width, d = this.da.height, e = this.nn, f = this.Rv, g = b.d(0, 0), h, k = 0; k < a + 1; ++k) for (var m = 0; m < d + 1; ++m) g.x = k, g.y = m, h = this.yd(g), h.x += b.Yb() % (2 * e) - e, h.y += b.Yb() % (2 * e) - e, f && (h.z += b.Yb() % (2 * e) - e), this.Me(g, h) } }); b.pea = function(a, d, e, f) { return new b.XN(a, d, e, f) }; b.XN.create = b.pea; b.lN = b.Bd.extend({ mg: 0, tb: 0, ub: 0, ctor: function(a, d, e, f) { b.Hc.prototype.ctor.call(this); void 0 !== f && this.l(a, d, e, f) }, Ds: function() { return this.tb }, pt: function(a) { this.tb = a }, Pp: function() { return this.ub }, cq: function(a) { this.ub = a }, l: function(a, d, e, f) { return b.Bd.prototype.l.call(this, a, d) ? (this.mg = e, this.tb = f, this.ub = 1, !0) : !1 }, update: function(a) { for (var d = this.da.width, e = this.da.height, f = b.d(0, 0), g = this.mg, h = this.tb, k = this.ub, m, n = 1; n < d; ++n) for (var p = 1; p < e; ++p) f.x = n, f.y = p, m = this.yd(f), m.x += Math.sin(a * Math.PI * g * 2 + 0.01 * m.x) * h * k, m.y += Math.sin(a * Math.PI * g * 2 + 0.01 * m.y) * h * k, this.Me(f, m) } }); b.xba = function(a, d, e, f) { return new b.lN(a, d, e, f) }; b.lN.create = b.xba; b.ZO = b.Bd.extend({ mg: 0, tb: 0, ub: 0, IT: !1, hR: !1, ctor: function(a, d, e, f, g, h) { b.Hc.prototype.ctor.call(this); void 0 !== h && this.l(a, d, e, f, g, h) }, Ds: function() { return this.tb }, pt: function(a) { this.tb = a }, Pp: function() { return this.ub }, cq: function(a) { this.ub = a }, l: function(a, d, e, f, g, h) { return b.Bd.prototype.l.call(this, a, d) ? (this.mg = e, this.tb = f, this.ub = 1, this.hR = g, this.IT = h, !0) : !1 }, update: function(a) { for (var d = this.da.width, e = this.da.height, f = b.d(0, 0), g = this.IT, h = this.hR, k = this.mg, m = this.tb, n = this.ub, p, s = 0; s < d + 1; ++s) for (var t = 0; t < e + 1; ++t) f.x = s, f.y = t, p = this.yd(f), g && (p.x += Math.sin(a * Math.PI * k * 2 + 0.01 * p.y) * m * n), h && (p.y += Math.sin(a * Math.PI * k * 2 + 0.01 * p.x) * m * n), this.Me(f, p) } }); b.rfa = function(a, d, e, f, g, h) { return new b.ZO(a, d, e, f, g, h) }; b.ZO.create = b.rfa; b.SO = b.Bd.extend({ Ca: null, nT: 0, tb: 0, ub: 0, ctor: function(a, d, e, f, g) { b.Hc.prototype.ctor.call(this); this.Ca = b.d(0, 0); void 0 !== g && this.l(a, d, e, f, g) }, Pf: function() { return this.Ca }, I: function(a) { this.Ca.x = a.x; this.Ca.y = a.y }, Ds: function() { return this.tb }, pt: function(a) { this.tb = a }, Pp: function() { return this.ub }, cq: function(a) { this.ub = a }, l: function(a, d, e, f, g) { return b.Bd.prototype.l.call(this, a, d) ? (this.I(e), this.nT = f, this.tb = g, this.ub = 1, !0) : !1 }, update: function(a) { for (var d = this.Ca, e = this.da.width, f = this.da.height, g = b.d(0, 0), h = 0.1 * this.tb * this.ub, k = this.nT, m, n, p, s = b.d(0, 0), t = 0; t < e + 1; ++t) for (var v = 0; v < f + 1; ++v) g.x = t, g.y = v, m = this.yd(g), s.x = t - e / 2, s.y = v - f / 2, n = b.Xp(s) * Math.cos(Math.PI / 2 + a * Math.PI * k * 2) * h, p = Math.sin(n) * (m.y - d.y) + Math.cos(n) * (m.x - d.x), n = Math.cos(n) * (m.y - d.y) - Math.sin(n) * (m.x - d.x), m.x = d.x + p, m.y = d.y + n, this.Me(g, m) } }); b.gfa = function(a, d, e, f, g) { return new b.SO(a, d, e, f, g) }; b.SO.create = b.gfa; b.YN = b.Qc.extend({ nn: 0, Rv: !1, ctor: function(a, d, e, f) { b.Hc.prototype.ctor.call(this); void 0 !== f && this.l(a, d, e, f) }, l: function(a, d, e, f) { return b.Qc.prototype.l.call(this, a, d) ? (this.nn = e, this.Rv = f, !0) : !1 }, update: function() { for (var a = this.da, d = this.nn, e = b.d(0, 0), f = 0; f < a.width; ++f) for (var g = 0; g < a.height; ++g) { e.x = f; e.y = g; var h = this.gh(e); h.bl.x += b.Yb() % (2 * d) - d; h.br.x += b.Yb() % (2 * d) - d; h.tl.x += b.Yb() % (2 * d) - d; h.tr.x += b.Yb() % (2 * d) - d; h.bl.y += b.Yb() % (2 * d) - d; h.br.y += b.Yb() % (2 * d) - d; h.tl.y += b.Yb() % (2 * d) - d; h.tr.y += b.Yb() % (2 * d) - d; this.Rv && (h.bl.z += b.Yb() % (2 * d) - d, h.br.z += b.Yb() % (2 * d) - d, h.tl.z += b.Yb() % (2 * d) - d, h.tr.z += b.Yb() % (2 * d) - d); this.Wf(e, h) } } }); b.qea = function(a, d, e, f) { return new b.YN(a, d, e, f) }; b.YN.create = b.qea; b.ZN = b.Qc.extend({ nn: 0, OH: !1, SS: !1, ctor: function(a, d, e, f) { b.Hc.prototype.ctor.call(this); void 0 !== f && this.l(a, d, e, f) }, l: function(a, d, e, f) { return b.Qc.prototype.l.call(this, a, d) ? (this.OH = !1, this.nn = e, this.SS = f, !0) : !1 }, update: function() { if (!1 === this.OH) { for (var a = this.da, d = this.nn, e, f = b.d(0, 0), g = 0; g < a.width; ++g) for (var h = 0; h < a.height; ++h) f.x = g, f.y = h, e = this.gh(f), e.bl.x += b.Yb() % (2 * d) - d, e.br.x += b.Yb() % (2 * d) - d, e.tl.x += b.Yb() % (2 * d) - d, e.tr.x += b.Yb() % (2 * d) - d, e.bl.y += b.Yb() % (2 * d) - d, e.br.y += b.Yb() % (2 * d) - d, e.tl.y += b.Yb() % (2 * d) - d, e.tr.y += b.Yb() % (2 * d) - d, this.SS && (e.bl.z += b.Yb() % (2 * d) - d, e.br.z += b.Yb() % (2 * d) - d, e.tl.z += b.Yb() % (2 * d) - d, e.tr.z += b.Yb() % (2 * d) - d), this.Wf(f, e); this.OH = !0 } } }); b.rea = function(a, d, e, f) { return new b.ZN(a, d, e, f) }; b.ZN.create = b.rea; function pa() { this.position = b.d(0, 0); this.Gea = b.d(0, 0); this.vs = b.d(0, 0) } b.$N = b.Qc.extend({ vI: 0, Sl: 0, sk: null, Jf: null, ctor: function(a, d, e) { b.Hc.prototype.ctor.call(this); this.sk = []; this.Jf = []; void 0 !== e && this.l(a, d, e) }, l: function(a, d, e) { return b.Qc.prototype.l.call(this, a, d) ? (this.vI = e, this.sk.length = 0, this.Jf.length = 0, !0) : !1 }, eM: function(a, d) { for (var e = d - 1; 0 <= e; e--) { var f = 0 | b.Yb() % (e + 1), g = a[e]; a[e] = a[f]; a[f] = g } }, AK: function(a) { var d = this.da, e = a.width * d.height + a.height; return b.size(this.sk[e] / d.height - a.width, this.sk[e] % d.height - a.height) }, Vba: function(a, d) { var e = this.gh(a), f = this.target.grid.QK(), g = d.position; e.bl.x += g.x * f.x; e.bl.y += g.y * f.y; e.br.x += g.x * f.x; e.br.y += g.y * f.y; e.tl.x += g.x * f.x; e.tl.y += g.y * f.y; e.tr.x += g.x * f.x; e.tr.y += g.y * f.y; this.Wf(a, e) }, N: function(a) { b.Qc.prototype.N.call(this, a); a = this.da; this.Sl = a.width * a.height; for (var d = this.sk, e = d.length = 0; e < this.Sl; ++e) d[e] = e; this.eM(d, this.Sl); for (var d = this.Jf, e = d.length = 0, f = b.size(0, 0), g = 0; g < a.width; ++g) for (var h = 0; h < a.height; ++h) d[e] = new pa, d[e].position = b.d(g, h), d[e].Gea = b.d(g, h), f.width = g, f.height = h, d[e].vs = this.AK(f), ++e }, update: function(a) { for (var d = 0, e = this.da, f = this.Jf, g, h = b.d(0, 0), k = 0; k < e.width; ++k) for (var m = 0; m < e.height; ++m) h.x = k, h.y = m, g = f[d], g.position.x = g.vs.width * a, g.position.y = g.vs.height * a, this.Vba(h, g), ++d } }); b.tea = function(a, d, e) { return new b.$N(a, d, e) }; b.$N.create = b.tea; b.Ey = b.Qc.extend({ YD: function(a, d) { var e = this.da.width * d, f = this.da.height * d; return 0 === e + f ? 1 : Math.pow((a.width + a.height) / (e + f), 6) }, oM: function(a) { this.Wf(a, this.gh(a)) }, nM: function(a) { this.Wf(a, new b.Py) }, wY: function(a, d) { var e = this.gh(a), f = this.target.grid.QK(); e.bl.x += f.x / 2 * (1 - d); e.bl.y += f.y / 2 * (1 - d); e.br.x -= f.x / 2 * (1 - d); e.br.y += f.y / 2 * (1 - d); e.tl.x += f.x / 2 * (1 - d); e.tl.y -= f.y / 2 * (1 - d); e.tr.x -= f.x / 2 * (1 - d); e.tr.y -= f.y / 2 * (1 - d); this.Wf(a, e) }, update: function(a) { for (var d = this.da, e = b.d(0, 0), f = b.size(0, 0), g, h = 0; h < d.width; ++h) for (var k = 0; k < d.height; ++k) e.x = h, e.y = k, f.width = h, f.height = k, g = this.YD(f, a), 0 === g ? this.nM(e) : 1 > g ? this.wY(e, g) : this.oM(e) } }); b.VU = function(a, d) { return new b.Ey(a, d) }; b.Ey.create = b.VU; b.cN = b.Ey.extend({ YD: function(a, d) { return 0 === a.width + a.height ? 1 : Math.pow((this.da.width * (1 - d) + this.da.height * (1 - d)) / (a.width + a.height), 6) } }); b.TU = function(a, d) { return new b.cN(a, d) }; b.cN.create = b.TU; b.Fy = b.Ey.extend({ YD: function(a, d) { var e = this.da.height * d; return 0 === e ? 1 : Math.pow(a.height / e, 6) }, wY: function(a, d) { var e = this.gh(a), f = this.target.grid.QK(); e.bl.y += f.y / 2 * (1 - d); e.br.y += f.y / 2 * (1 - d); e.tl.y -= f.y / 2 * (1 - d); e.tr.y -= f.y / 2 * (1 - d); this.Wf(a, e) } }); b.K8 = function(a, d) { return new b.Fy(a, d) }; b.Fy.create = b.K8; b.dN = b.Fy.extend({ YD: function(a, d) { return 0 === a.height ? 1 : Math.pow(this.da.height * (1 - d) / a.height, 6) } }); b.UU = function(a, d) { return new b.dN(a, d) }; b.dN.create = b.UU; b.RO = b.Qc.extend({ vI: null, Sl: 0, sk: null, ctor: function(a, d, e) { b.Hc.prototype.ctor.call(this); this.sk = []; void 0 !== d && this.l(a, d, e) }, l: function(a, d, e) { return b.Qc.prototype.l.call(this, a, d) ? (this.vI = e || 0, this.sk.length = 0, !0) : !1 }, eM: function(a, d) { for (var e = d - 1; 0 <= e; e--) { var f = 0 | b.Yb() % (e + 1), g = a[e]; a[e] = a[f]; a[f] = g } }, oM: function(a) { this.Wf(a, this.gh(a)) }, nM: function(a) { this.Wf(a, new b.Py) }, N: function(a) { b.Qc.prototype.N.call(this, a); this.Sl = this.da.width * this.da.height; a = this.sk; for (var d = a.length = 0; d < this.Sl; ++d) a[d] = d; this.eM(a, this.Sl) }, update: function(a) { a = 0 | a * this.Sl; for (var d = this.da, e, f = b.d(0, 0), g = this.sk, h = 0; h < this.Sl; h++) e = g[h], f.x = 0 | e / d.height, f.y = e % (0 | d.height), h < a ? this.nM(f) : this.oM(f) } }); b.yY = function(a, d, e) { return new b.RO(a, d, e) }; b.RO.create = b.yY; b.aP = b.Qc.extend({ mg: 0, tb: 0, ub: 0, ctor: function(a, d, e, f) { b.Hc.prototype.ctor.call(this); void 0 !== f && this.l(a, d, e, f) }, Ds: function() { return this.tb }, pt: function(a) { this.tb = a }, Pp: function() { return this.ub }, cq: function(a) { this.ub = a }, l: function(a, d, e, f) { return b.Qc.prototype.l.call(this, a, d) ? (this.mg = e, this.tb = f, this.ub = 1, !0) : !1 }, update: function(a) { for (var d = this.da, e = this.mg, f = this.tb, g = this.ub, h = b.d(0, 0), k, m = 0; m < d.width; m++) for (var n = 0; n < d.height; n++) h.x = m, h.y = n, k = this.gh(h), k.bl.z = Math.sin(a * Math.PI * e * 2 + 0.01 * (k.bl.y + k.bl.x)) * f * g, k.br.z = k.bl.z, k.tl.z = k.bl.z, k.tr.z = k.bl.z, this.Wf(h, k) } }); b.tfa = function(a, d, e, f) { return new b.aP(a, d, e, f) }; b.aP.create = b.tfa; b.iN = b.Qc.extend({ vl: 0, tb: 0, ub: 0, ctor: function(a, d, e, f) { b.Hc.prototype.ctor.call(this); void 0 !== f && this.l(a, d, e, f) }, Ds: function() { return this.tb }, pt: function(a) { this.tb = a }, Pp: function() { return this.ub }, cq: function(a) { this.ub = a }, l: function(a, d, e, f) { return b.Qc.prototype.l.call(this, a, d) ? (this.vl = e, this.tb = f, this.ub = 1, !0) : !1 }, update: function(a) { var d = Math.sin(Math.PI * a * this.vl * 2) * this.tb * this.ub; a = Math.sin(Math.PI * (a * this.vl * 2 + 1)) * this.tb * this.ub; for (var e = this.da, f = this.target.grid, g, h = b.d(0, 0), k = 0; k < e.width; k++) for (var m = 0; m < e.height; m++) h.x = k, h.y = m, g = f.gh(h), 0 === (k + m) % 2 ? (g.bl.z += d, g.br.z += d, g.tl.z += d, g.tr.z += d) : (g.bl.z += a, g.br.z += a, g.tl.z += a, g.tr.z += a), f.Wf(h, g) } }); b.gba = function(a, d, e, f) { return new b.iN(a, d, e, f) }; b.iN.create = b.gba; b.bO = b.Qc.extend({ L5: 0, lw: null, ctor: function(a, d) { b.Hc.prototype.ctor.call(this); void 0 !== d && this.l(a, d) }, l: function(a, d) { this.L5 = d; return b.Qc.prototype.l.call(this, a, b.size(1, d)) }, update: function(a) { for (var d = this.da, e = this.lw.width, f, g, h = b.d(0, 0), k = 0; k < d.height; ++k) h.y = k, f = this.gh(h), g = 1, 0 === k % 2 && (g = -1), f.bl.x += g * e * a, f.br.x += g * e * a, f.tl.x += g * e * a, f.tr.x += g * e * a, this.Wf(h, f) }, N: function(a) { b.Qc.prototype.N.call(this, a); this.lw = b.P.Nw() } }); b.iY = function(a, d) { return new b.bO(a, d) }; b.bO.create = b.iY; b.aO = b.Qc.extend({ b3: 0, lw: null, ctor: function(a, d) { b.Hc.prototype.ctor.call(this); void 0 !== d && this.l(a, d) }, l: function(a, d) { this.b3 = d; return b.Qc.prototype.l.call(this, a, b.size(d, 1)) }, update: function(a) { for (var d = this.da.width, e = this.lw.height, f, g, h = b.d(0, 0), k = 0; k < d; ++k) h.x = k, f = this.gh(h), g = 1, 0 === k % 2 && (g = -1), f.bl.y += g * e * a, f.br.y += g * e * a, f.tl.y += g * e * a, f.tr.y += g * e * a, this.Wf(h, f); b.oa.he = !0 }, N: function(a) { b.Qc.prototype.N.call(this, a); this.lw = b.P.Nw() } }); b.hY = function(a, d) { return new b.aO(a, d) }; b.aO.create = b.hY; b.VE = b.Bd.extend({ Hs: function() { var a = new b.Iy(this.da); a.yda(!0); return a }, q: function() { var a = new b.VE; a.l(this.D, this.da); return a }, update: function(a) { var d = Math.max(0, a - 0.25), d = -100 - d * d * 500, e = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(a); a = Math.sin(e); for (var e = Math.cos(e), f = this.da, g = b.d(0, 0), h = 0; h <= f.width; ++h) for (var k = 0; k <= f.height; ++k) { g.x = h; g.y = k; var m = this.qC(g), n = Math.sqrt(m.x * m.x + (m.y - d) * (m.y - d)), p = n * a, s = Math.asin(m.x / n) / a, t = Math.cos(s); m.x = s <= Math.PI ? p * Math.sin(s) : 0; m.y = n + d - p * (1 - t) * a; m.z = p * (1 - t) * e / 7; 0.5 > m.z && (m.z = 0.5); this.Me(g, m) } } }); b.AL = function(a, d) { return new b.VE(a, d) }; b.VE.create = b.AL; b.La = b.e.extend({ Jd: null, Cl: 0, hc: null, ik: null, Nq: null, Th: !1, Ma: "ProgressTimer", ctor: function(a) { b.e.prototype.ctor.call(this); this.Jd = b.La.Fm; this.Cl = 0; this.ik = b.d(0, 0); this.Nq = b.d(0, 0); this.Th = !1; this.hc = null; a && this.Aaa(a) }, X9: function() { return b.d(this.ik.x, this.ik.y) }, vda: function(a) { this.ik = b.BW(a) }, Y8: function() { return b.d(this.Nq.x, this.Nq.y) }, Pca: function(a) { this.Nq = b.BW(a) }, VK: function() { return this.Jd }, n$: function() { return this.Cl }, OK: function() { return this.hc }, KX: function(a) { this.Cl !== a && (this.Cl = b.Zg(a, 0, 100), this.f.BT()) }, Le: function() {}, tf: function() { return !1 }, aba: function() { return this.Th }, X: function(a) { this.hc.color = a; this.f.va(b.e.V.Ka) }, Hb: function(a) { this.hc.opacity = a; this.f.va(b.e.V.Ha) }, rf: function() { return this.hc.color }, bh: function() { return this.hc.opacity }, Lua: function(a) { this.Th !== a && (this.Th = a, this.f.aq()) }, WL: function(a) { this.hc !== a && ((this.hc = a) ? this.Na(a.width, a.height) : this.Na(0, 0), this.f.aq()) }, cea: function(a) { a !== this.Jd && (this.Jd = a, this.f.aq()) }, Nda: function(a) { this.Th !== a && (this.Th = a, this.f.aq()) }, Aaa: function(a) { this.percentage = 0; this.rb(0.5, 0.5); this.Jd = b.La.Fm; this.Th = !1; this.midPoint = b.d(0.5, 0.5); this.barChangeRate = b.d(1, 1); this.WL(a); this.f.OV(); return !0 }, Ic: function() { return b.W === b.Jb ? new b.La.n(this) : new b.La.p(this) } }); r = b.La.prototype; b.i(r, "midPoint", r.X9, r.vda); b.i(r, "barChangeRate", r.Y8, r.Pca); b.i(r, "type", r.VK, r.cea); b.i(r, "percentage", r.n$, r.KX); b.i(r, "sprite", r.OK, r.WL); b.i(r, "reverseDir", r.aba, r.Nda); b.La.create = function(a) { return new b.La(a) }; b.La.hO = 4; b.La.s1 = 75; b.La.Fm = 0; b.La.uo = 1; b.$E = b.J.extend({ fe: 0, $d: 0, ctor: function(a, d) { b.J.prototype.ctor.call(this); this.$d = this.fe = 0; void 0 !== d && this.l(a, d) }, l: function(a, d) { return b.J.prototype.l.call(this, a) ? (this.fe = d, !0) : !1 }, q: function() { var a = new b.$E; a.l(this.D, this.fe); return a }, reverse: function() { b.log("cc.ProgressTo.reverse(): reverse hasn't been supported."); return null }, N: function(a) { b.J.prototype.N.call(this, a); this.$d = a.percentage }, update: function(a) { this.target instanceof b.La && (this.target.percentage = this.$d + (this.fe - this.$d) * a) } }); b.dca = function(a, d) { return new b.$E(a, d) }; b.$E.create = b.dca; b.ZE = b.J.extend({ fe: 0, $d: 0, ctor: function(a, d, e) { b.J.prototype.ctor.call(this); this.$d = this.fe = 0; void 0 !== e && this.l(a, d, e) }, l: function(a, d, e) { return b.J.prototype.l.call(this, a) ? (this.fe = e, this.$d = d, !0) : !1 }, q: function() { var a = new b.ZE; a.l(this.D, this.$d, this.fe); return a }, reverse: function() { return b.FL(this.D, this.fe, this.$d) }, N: function(a) { b.J.prototype.N.call(this, a) }, update: function(a) { this.target instanceof b.La && (this.target.percentage = this.$d + (this.fe - this.$d) * a) } }); b.FL = function(a, d, e) { return new b.ZE(a, d, e) }; b.ZE.create = b.FL; (function() { b.La.n = function(a) { b.e.n.call(this, a); this.cb = !0; this.dP = Math.PI / 180; this.pP = b.rect(0, 0, 0, 0); this.QH = b.d(0, 0); this.jg = 0; this.DQ = this.$S = 270; this.DP = !1 }; var a = b.La.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.La.n; a.Eb = function(a, e, f) { a = a || b.A; var g = a.getContext(), h = this.k, k = h.hc, m = k.f.Ql, n = k.f.ad / 255; if (0 !== m.width && 0 !== m.height && k.O && m.Vx && 0 !== n) { a.setTransform(this.jj, e, f); a.xx(k.$k); a.ut(n); var p = k.Va, s = k.ve, n = s.x, t = -s.y - p.height, v = p.width, p = p.height; a.save(); k.uc && (n = -n - v, g.scale(-1, 1)); k.vc && (t = s.y, g.scale(1, -1)); h.Jd === b.La.uo ? (h = this.pP, g.beginPath(), g.rect(h.x * e, h.y * f, h.width * e, h.height * f), g.clip(), g.closePath()) : h.Jd === b.La.Fm && (h = this.QH.x * e, s = this.QH.y * f, g.beginPath(), g.arc(h, s, this.jg * f, this.dP * this.$S, this.dP * this.DQ, this.DP), g.lineTo(h, s), g.clip(), g.closePath()); h = k.O.Sa; k.Ni ? g.drawImage(h, 0, 0, m.width, m.height, n * e, t * f, v * e, p * f) : g.drawImage(h, m.zD, m.AD, m.width, m.height, n * e, t * f, v * e, p * f); a.restore(); b.Of++ } }; a.aq = function() {}; a.OV = function() {}; a.BT = function() { var a = this.k, e = a.hc, f = e.width, g = e.height, h = a.ik; if (a.Jd === b.La.Fm) { this.jg = Math.round(Math.sqrt(f * f + g * g)); var k, m = !1, n = this.QH; n.x = f * h.x; n.y = -g * h.y; a.Th ? (k = 270, h = 270 - 3.6 * a.Cl) : (h = -90, k = -90 + 3.6 * a.Cl); e.uc && (n.x -= 2 * f * a.ik.x, h = -h - 180, k = -k - 180, m = !m); e.vc && (n.y += 2 * g * a.ik.y, m = !m, h = -h, k = -k); this.$S = h; this.DQ = k; this.DP = m } else m = a.Nq, n = a.Cl / 100, a = this.pP, m = b.size(f * (1 - m.x), g * (1 - m.y)), n = b.size((f - m.width) * n, (g - m.height) * n), m = b.size(m.width + n.width, m.height + n.height), k = b.d(f * h.x, g * h.y), n = k.x - m.width / 2, 0.5 < h.x && m.width / 2 >= f - k.x && (n = f - m.width), f = k.y - m.height / 2, 0.5 < h.y && m.height / 2 >= g - k.y && (f = g - m.height), a.x = 0, g = 1, e.uc && (a.x -= m.width, g = -1), 0 < n && (a.x += n * g), a.y = 0, g = 1, e.vc && (a.y += m.height, g = -1), 0 < f && (a.y -= f * g), a.width = m.width, a.height = -m.height }; a.xb = function() {}; a.cd = function(a) { var e = this.k; if (e.hc) { var f = b.e.V, g = this.G, h = a ? a.k : null; h && h.Zc && a.G & f.Ka && (g |= f.Ka); h && h.$c && a.G & f.Ha && (g |= f.Ha); a && a.G & f.la && (g |= f.la); this.G = g; var e = e.hc.f, h = e.G, k = h & f.Ha; h & f.Ka && ja(e); k && ia(e); g & f.la && this.transform(a) } }; a.updateStatus = function() { var a = this.k; if (a.hc) { var e = b.e.V, f = this.G, a = a.hc.f, g = a.G, h = g & e.Ha; g & e.Ka && a.Ae(); h && a.ci(); f & e.la && this.transform(P(this), !0); this.G = 0 } } })(); (function() { b.La.p = function(a) { b.e.p.call(this, a); this.cb = !0; this.K6 = b.A.createBuffer(); this.Mf = 0; this.yk = this.Be = null; this.VB = !1 }; var a = b.La.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.La.p; a.Eb = function(a) { var e = this.k; a = a || b.A; if (this.Be && e.hc) { this.za.jc(); this.za.Ug(this.Mc); var f = e.hc.H; b.ji(f.src, f.$); b.hd(b.Cq); b.Rf(e.hc.texture); a.bindBuffer(a.ARRAY_BUFFER, this.K6); this.VB && (a.bufferData(a.ARRAY_BUFFER, this.yk, a.DYNAMIC_DRAW), this.VB = !1); f = b.pe.BYTES_PER_ELEMENT; a.vertexAttribPointer(b.Ib, 2, a.FLOAT, !1, f, 0); a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, f, 8); a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, f, 12); e.Jd === b.La.Fm ? a.drawArrays(a.TRIANGLE_FAN, 0, this.Mf) : e.Jd === b.La.uo && (e.Th ? (a.drawArrays(a.TRIANGLE_STRIP, 0, this.Mf / 2), a.drawArrays(a.TRIANGLE_STRIP, 4, this.Mf / 2), b.Of++) : a.drawArrays(a.TRIANGLE_STRIP, 0, this.Mf)); b.Of++ } }; a.cd = function(a) { var e = this.k; if (e.hc) { var f = b.e.V, g = this.G, h = a ? a.k : null; h && h.Zc && a.G & f.Ka && (g |= f.Ka); h && h.$c && a.G & f.Ha && (g |= f.Ha); a && a.G & f.la && (g |= f.la); this.G = g; e = e.hc.f; h = e.G; g = h & f.Ka; f = h & f.Ha; g && ja(e); f && ia(e); if (g || f) e.xb(), this.xb(); this.transform(a); e.G = 0 } }; a.updateStatus = function() { var a = this.k; if (a.hc) { var e = b.e.V, f = this.G, a = a.hc.f, g = a.G, h = g & e.Ka, g = g & e.Ha; h && (a.Ae(), this.G ^= this.G & e.Ka); g && (a.ci(), this.G ^= this.G & e.Ha); if (h || g) a.xb(), this.xb(); f & e.la && this.transform(P(this), !0) } }; a.aq = function() { this.Be && (this.yk = this.Be = null, this.Mf = 0) }; a.OV = function() { this.yk = this.Be = null; this.Mf = 0; this.za = b.le.Dc(b.Sj) }; a.BT = function() { var a = this.k.Jd; a === b.La.Fm ? this.G6() : a === b.La.uo && this.B6(); this.VB = !0 }; a.B6 = function() { var a = this.k; if (a.hc) { var e, f = a.Cl / 100; e = a.Nq; e = b.lm(b.d(1 - e.x + f * e.x, 1 - e.y + f * e.y), 0.5); f = b.zd(a.ik, e); a = b.yj(a.ik, e); 0 > f.x && (a.x += -f.x, f.x = 0); 1 < a.x && (f.x -= a.x - 1, a.x = 1); 0 > f.y && (a.y += -f.y, f.y = 0); 1 < a.y && (f.y -= a.y - 1, a.y = 1); if (this.Th) { if (!this.Be) { this.Mf = 8; var g = b.pe.BYTES_PER_ELEMENT; this.yk = new ArrayBuffer(8 * g); var h = []; for (e = 0; 8 > e; e++) h[e] = new b.pe(null, null, null, this.yk, e * g); h[0].texCoords = this.nf(b.d(0, 1)); h[0].vertices = this.of(b.d(0, 1)); h[1].texCoords = this.nf(b.d(0, 0)); h[1].vertices = this.of(b.d(0, 0)); h[6].texCoords = this.nf(b.d(1, 1)); h[6].vertices = this.of(b.d(1, 1)); h[7].texCoords = this.nf(b.d(1, 0)); h[7].vertices = this.of(b.d(1, 0)); this.Be = h } e = this.Be; e[2].texCoords = this.nf(b.d(f.x, a.y)); e[2].vertices = this.of(b.d(f.x, a.y)); e[3].texCoords = this.nf(b.d(f.x, f.y)); e[3].vertices = this.of(b.d(f.x, f.y)); e[4].texCoords = this.nf(b.d(a.x, a.y)); e[4].vertices = this.of(b.d(a.x, a.y)); e[5].texCoords = this.nf(b.d(a.x, f.y)); e[5].vertices = this.of(b.d(a.x, f.y)) } else { if (!this.Be) for (this.Mf = 4, g = b.pe.BYTES_PER_ELEMENT, this.yk = new ArrayBuffer(4 * g), this.Be = [], e = 0; 4 > e; e++) this.Be[e] = new b.pe(null, null, null, this.yk, e * g); e = this.Be; e[0].texCoords = this.nf(b.d(f.x, a.y)); e[0].vertices = this.of(b.d(f.x, a.y)); e[1].texCoords = this.nf(b.d(f.x, f.y)); e[1].vertices = this.of(b.d(f.x, f.y)); e[2].texCoords = this.nf(b.d(a.x, a.y)); e[2].vertices = this.of(b.d(a.x, a.y)); e[3].texCoords = this.nf(b.d(a.x, f.y)); e[3].vertices = this.of(b.d(a.x, f.y)) } this.xb() } }; a.G6 = function() { var a = this.k; if (a.hc) { var e, f = a.ik; e = a.Cl / 100; var g = 2 * b.PI * (a.Th ? e : 1 - e), a = b.d(f.x, 1), h = b.HW(a, f, g), g = 0; if (0 === e) h = a, g = 0; else if (1 === e) h = a, g = 4; else { var k = b.$Z, m = b.La.hO; for (e = 0; e <= m; ++e) { var n = (e + (m - 1)) % m, p = this.dG(e % m), n = this.dG(n); 0 === e ? n = b.GW(p, n, 1 - f.x) : 4 === e && (p = b.GW(p, n, 1 - f.x)); var s = b.d(0, 0); b.xL(p, n, f, h, s) && (0 !== e && 4 !== e || 0 <= s.x && 1 >= s.x) && 0 <= s.y && s.y < k && (k = s.y, g = e) } h = b.yj(f, b.lm(b.zd(h, f), k)) } k = !0; this.Mf !== g + 3 && (k = !1, this.yk = this.Be = null, this.Mf = 0); if (!this.Be) { m = this.Mf = g + 3; p = b.pe.BYTES_PER_ELEMENT; this.yk = new ArrayBuffer(m * p); n = []; for (e = 0; e < m; e++) n[e] = new b.pe(null, null, null, this.yk, e * p); this.Be = n; if (!this.Be) { b.log("cc.ProgressTimer._updateRadial() : Not enough memory"); return } } this.xb(); m = this.Be; if (!k) for (m[0].texCoords = this.nf(f), m[0].vertices = this.of(f), m[1].texCoords = this.nf(a), m[1].vertices = this.of(a), e = 0; e < g; e++) f = this.dG(e), m[e + 2].texCoords = this.nf(f), m[e + 2].vertices = this.of(f); m[this.Mf - 1].texCoords = this.nf(h); m[this.Mf - 1].vertices = this.of(h) } }; a.dG = function(a) { if (a < b.La.hO) { var e = b.La.s1; return this.k.Th ? b.d(e >> 7 - (a << 1) & 1, e >> 7 - ((a << 1) + 1) & 1) : b.d(e >> (a << 1) + 1 & 1, e >> (a << 1) & 1) } return b.d(0, 0) }; a.nf = function(a) { var e = this.k.hc; if (!e) return { u: 0, v: 0 }; var f = e.quad, g = b.d(f.bl.texCoords.u, f.bl.texCoords.v), f = b.d(f.tr.texCoords.u, f.tr.texCoords.v); e.textureRectRotated && (e = a.x, a.x = a.y, a.y = e); return { u: g.x * (1 - a.x) + f.x * a.x, v: g.y * (1 - a.y) + f.y * a.y } }; a.of = function(a) { var e = this.k.hc; if (!e) return { x: 0, y: 0 }; var f = e.quad, e = b.d(f.bl.vertices.x, f.bl.vertices.y), f = b.d(f.tr.vertices.x, f.tr.vertices.y); return { x: e.x * (1 - a.x) + f.x * a.x, y: e.y * (1 - a.y) + f.y * a.y } }; a.xb = function() { var a = this.k; if (a.hc && this.Be) { for (var a = a.hc.quad.tl.colors, e = this.Be, f = 0, g = this.Mf; f < g; ++f) e[f].colors = a; this.VB = !0 } } })(); b.tu = 4208917214; b.gia = 0; b.Dm = 1; b.iz = 0; b.fia = 1; b.ka = b.po.extend({ ra: null, nb: null, D: null, Ti: !1, vR: !1, Ma: "TransitionScene", ctor: function(a, d) { b.po.prototype.ctor.call(this); void 0 !== a && void 0 !== d && this.l(a, d) }, HS: function() { this.tg(this.HS); var a = b.P; this.vR = a.rn; a.GD(this.ra); b.ua.Gb(!0); this.nb.visible = !0 }, pk: function() { this.Ti = !0 }, Q: function() { this.Ti ? (this.nb.Q(), this.ra.Q()) : (this.ra.Q(), this.nb.Q()); b.e.prototype.Q.call(this) }, aa: function() { b.e.prototype.aa.call(this); b.ua.Gb(!1); this.nb.eh(); this.ra.aa() }, Pb: function() { b.e.prototype.Pb.call(this); b.ua.Gb(!0); this.nb.Pb(); this.ra.wj() }, qf: function() { b.e.prototype.qf.call(this); this.vR && this.nb.qf() }, l: function(a, d) { if (!d) throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil"; if (this.T()) { this.D = a; this.Nb({ x: 0, y: 0, anchorX: 0, anchorY: 0 }); this.ra = d; this.nb = b.P.qd; this.nb || (this.nb = new b.po, this.nb.T()); if (this.ra === this.nb) throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene"; this.pk(); return !0 } return !1 }, finish: function() { this.ra.Nb({ visible: !0, x: 0, y: 0, scale: 1, rotation: 0 }); b.W === b.ya && this.ra.Fs().restore(); this.nb.Nb({ visible: !1, x: 0, y: 0, scale: 1, rotation: 0 }); b.W === b.ya && this.nb.Fs().restore(); this.Dj(this.HS, 0) }, bL: function() { this.ra.visible = !0; this.nb.visible = !1 } }); b.ka.create = function(a, d) { return new b.ka(a, d) }; b.bg = b.ka.extend({ $o: 0, ctor: function(a, d, e) { b.ka.prototype.ctor.call(this); void 0 != e && this.l(a, d, e) }, l: function(a, d, e) { b.ka.prototype.l.call(this, a, d) && (this.$o = e); return !0 } }); b.bg.create = function(a, d, e) { return new b.bg(a, d, e) }; b.HO = b.ka.extend({ ctor: function(a, d) { b.ka.prototype.ctor.call(this); d && this.l(a, d) }, aa: function() { b.ka.prototype.aa.call(this); this.ra.Nb({ scale: 0.001, anchorX: 0.5, anchorY: 0.5 }); this.nb.Nb({ scale: 1, anchorX: 0.5, anchorY: 0.5 }); var a = b.Fb(b.Un(b.cX(this.D / 2, 0.001), b.$W(this.D / 2, 720)), b.Fe(this.D / 2)); this.nb.Ba(a); this.ra.Ba(b.Fb(a.reverse(), b.Cc(this.finish, this))) } }); b.HO.create = function(a, d) { return new b.HO(a, d) }; b.xO = b.ka.extend({ ctor: function(a, d) { b.ka.prototype.ctor.call(this); d && this.l(a, d) }, aa: function() { b.ka.prototype.aa.call(this); var a = b.P.Fa(); this.ra.Nb({ scale: 0.5, x: a.width, y: 0, anchorX: 0.5, anchorY: 0.5 }); this.nb.anchorX = 0.5; this.nb.anchorY = 0.5; var d = b.iW(this.D / 4, b.d(-a.width, 0), a.width / 4, 2), e = b.rg(this.D / 4, 1), a = b.rg(this.D / 4, 0.5), a = b.Fb(a, d), d = b.Fb(d, e), e = b.Fe(this.D / 2); this.nb.Ba(a); this.ra.Ba(b.Fb(e, d, b.Cc(this.finish, this))) } }); b.xO.create = function(a, d) { return new b.xO(a, d) }; b.Hm = b.ka.extend({ ctor: function(a, d) { b.ka.prototype.ctor.call(this); d && this.l(a, d) }, aa: function() { b.ka.prototype.aa.call(this); this.dm(); var a = this.action(); this.ra.Ba(b.Fb(this.$g(a), b.Cc(this.finish, this))) }, dm: function() { this.ra.I(-b.P.Fa().width, 0) }, action: function() { return b.moveTo(this.D, b.d(0, 0)) }, $g: function(a) { return new b.qq(a, 2) } }); b.Hm.create = function(a, d) { return new b.Hm(a, d) }; b.zO = b.Hm.extend({ ctor: function(a, d) { b.Hm.prototype.ctor.call(this); d && this.l(a, d) }, dm: function() { this.ra.I(b.P.Fa().width, 0) } }); b.zO.create = function(a, d) { return new b.zO(a, d) }; b.AO = b.Hm.extend({ ctor: function(a, d) { b.Hm.prototype.ctor.call(this); d && this.l(a, d) }, dm: function() { this.ra.I(0, b.P.Fa().height) } }); b.AO.create = function(a, d) { return new b.AO(a, d) }; b.yO = b.Hm.extend({ ctor: function(a, d) { b.Hm.prototype.ctor.call(this); d && this.l(a, d) }, dm: function() { this.ra.I(0, -b.P.Fa().height) } }); b.yO.create = function(a, d) { return new b.yO(a, d) }; b.um = 0.5; b.Im = b.ka.extend({ ctor: function(a, d) { b.ka.prototype.ctor.call(this); d && this.l(a, d) }, pk: function() { this.Ti = !1 }, aa: function() { b.ka.prototype.aa.call(this); this.dm(); var a = this.action(), d = this.action(), a = this.$g(a), d = b.Fb(this.$g(d), b.Cc(this.finish, this)); this.ra.Ba(a); this.nb.Ba(d) }, dm: function() { this.ra.I(-b.P.Fa().width + b.um, 0) }, action: function() { return b.moveBy(this.D, b.d(b.P.Fa().width - b.um, 0)) }, $g: function(a) { return new b.pq(a, 2) } }); b.Im.create = function(a, d) { return new b.Im(a, d) }; b.KO = b.Im.extend({ ctor: function(a, d) { b.Im.prototype.ctor.call(this); d && this.l(a, d) }, pk: function() { this.Ti = !0 }, dm: function() { this.ra.I(b.P.Fa().width - b.um, 0) }, action: function() { return b.moveBy(this.D, b.d(-(b.P.Fa().width - b.um), 0)) } }); b.KO.create = function(a, d) { return new b.KO(a, d) }; b.JO = b.Im.extend({ ctor: function(a, d) { b.Im.prototype.ctor.call(this); d && this.l(a, d) }, pk: function() { this.Ti = !1 }, dm: function() { this.ra.I(0, -(b.P.Fa().height - b.um)) }, action: function() { return b.moveBy(this.D, b.d(0, b.P.Fa().height - b.um)) } }); b.JO.create = function(a, d) { return new b.JO(a, d) }; b.LO = b.Im.extend({ ctor: function(a, d) { b.Im.prototype.ctor.call(this); d && this.l(a, d) }, pk: function() { this.Ti = !0 }, dm: function() { this.ra.I(0, b.P.Fa().height - b.um) }, action: function() { return b.moveBy(this.D, b.d(0, -(b.P.Fa().height - b.um))) } }); b.LO.create = function(a, d) { return new b.LO(a, d) }; b.IO = b.ka.extend({ ctor: function(a, d) { b.ka.prototype.ctor.call(this); d && this.l(a, d) }, aa: function() { b.ka.prototype.aa.call(this); this.ra.Nb({ scale: 0.001, anchorX: 2 / 3, anchorY: 0.5 }); this.nb.Nb({ scale: 1, anchorX: 1 / 3, anchorY: 0.5 }); var a = b.rg(this.D, 0.01), d = b.rg(this.D, 1); this.ra.Ba(this.$g(d)); this.nb.Ba(b.Fb(this.$g(a), b.Cc(this.finish, this))) }, $g: function(a) { return new b.qq(a, 2) } }); b.IO.create = function(a, d) { return new b.IO(a, d) }; b.vO = b.bg.extend({ ctor: function(a, d, e) { b.bg.prototype.ctor.call(this); null == e && (e = b.Dm); d && this.l(a, d, e) }, aa: function() { b.ka.prototype.aa.call(this); var a, d; this.ra.visible = !1; var e; this.$o === b.Dm ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90); a = b.Fb(b.Fe(this.D / 2), b.show(), b.fh(this.D / 2, 1, 0, e, a, 0, 0), b.Cc(this.finish, this)); d = b.Fb(b.fh(this.D / 2, 1, 0, 0, d, 0, 0), b.Rp(), b.Fe(this.D / 2)); this.ra.Ba(a); this.nb.Ba(d) } }); b.vO.create = function(a, d, e) { return new b.vO(a, d, e) }; b.wO = b.bg.extend({ ctor: function(a, d, e) { b.bg.prototype.ctor.call(this); null == e && (e = b.iz); d && this.l(a, d, e) }, aa: function() { b.ka.prototype.aa.call(this); var a, d; this.ra.visible = !1; var e; this.$o === b.iz ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90); a = b.Fb(b.Fe(this.D / 2), b.show(), b.fh(this.D / 2, 1, 0, e, a, 90, 0), b.Cc(this.finish, this)); d = b.Fb(b.fh(this.D / 2, 1, 0, 0, d, 90, 0), b.Rp(), b.Fe(this.D / 2)); this.ra.Ba(a); this.nb.Ba(d) } }); b.wO.create = function(a, d, e) { return new b.wO(a, d, e) }; b.uO = b.bg.extend({ ctor: function(a, d, e) { b.bg.prototype.ctor.call(this); null == e && (e = b.Dm); d && this.l(a, d, e) }, aa: function() { b.ka.prototype.aa.call(this); var a, d; this.ra.visible = !1; var e; this.$o === b.Dm ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90); a = b.Fb(b.Fe(this.D / 2), b.show(), b.fh(this.D / 2, 1, 0, e, a, -45, 0), b.Cc(this.finish, this)); d = b.Fb(b.fh(this.D / 2, 1, 0, 0, d, 45, 0), b.Rp(), b.Fe(this.D / 2)); this.ra.Ba(a); this.nb.Ba(d) } }); b.uO.create = function(a, d, e) { return new b.uO(a, d, e) }; b.PO = b.bg.extend({ ctor: function(a, d, e) { b.bg.prototype.ctor.call(this); null == e && (e = b.Dm); d && this.l(a, d, e) }, aa: function() { b.ka.prototype.aa.call(this); var a, d; this.ra.visible = !1; var e; this.$o === b.Dm ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90); a = b.Fb(b.Fe(this.D / 2), b.Un(b.fh(this.D / 2, 1, 0, e, a, 0, 0), b.rg(this.D / 2, 1), b.show()), b.Cc(this.finish, this)); d = b.Fb(b.Un(b.fh(this.D / 2, 1, 0, 0, d, 0, 0), b.rg(this.D / 2, 0.5)), b.Rp(), b.Fe(this.D / 2)); this.ra.scale = 0.5; this.ra.Ba(a); this.nb.Ba(d) } }); b.PO.create = function(a, d, e) { return new b.PO(a, d, e) }; b.QO = b.bg.extend({ ctor: function(a, d, e) { b.bg.prototype.ctor.call(this); null == e && (e = b.iz); d && this.l(a, d, e) }, aa: function() { b.ka.prototype.aa.call(this); var a, d; this.ra.visible = !1; var e; this.$o === b.iz ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90); a = b.Fb(b.Fe(this.D / 2), b.Un(b.fh(this.D / 2, 1, 0, e, a, 90, 0), b.rg(this.D / 2, 1), b.show()), b.Cc(this.finish, this)); d = b.Fb(b.Un(b.fh(this.D / 2, 1, 0, 0, d, 90, 0), b.rg(this.D / 2, 0.5)), b.Rp(), b.Fe(this.D / 2)); this.ra.scale = 0.5; this.ra.Ba(a); this.nb.Ba(d) } }); b.QO.create = function(a, d, e) { return new b.QO(a, d, e) }; b.OO = b.bg.extend({ ctor: function(a, d, e) { b.bg.prototype.ctor.call(this); null == e && (e = b.Dm); d && this.l(a, d, e) }, aa: function() { b.ka.prototype.aa.call(this); var a, d; this.ra.visible = !1; var e; this.$o === b.Dm ? (a = 90, e = 270, d = 90) : (a = -90, e = 90, d = -90); a = b.Fb(b.Fe(this.D / 2), b.Un(b.fh(this.D / 2, 1, 0, e, a, -45, 0), b.rg(this.D / 2, 1), b.show()), b.show(), b.Cc(this.finish, this)); d = b.Fb(b.Un(b.fh(this.D / 2, 1, 0, 0, d, 45, 0), b.rg(this.D / 2, 0.5)), b.Rp(), b.Fe(this.D / 2)); this.ra.scale = 0.5; this.ra.Ba(a); this.nb.Ba(d) } }); b.OO.create = function(a, d, e) { return new b.OO(a, d, e) }; b.qO = b.ka.extend({ te: null, ctor: function(a, d, e) { b.ka.prototype.ctor.call(this); this.te = b.color(); d && this.l(a, d, e) }, aa: function() { b.ka.prototype.aa.call(this); var a = new b.Ub(this.te); this.ra.visible = !1; this.C(a, 2, b.tu); var a = this.gi(b.tu), d = b.Fb(b.RU(this.D / 2), b.Cc(this.bL, this), b.SU(this.D / 2), b.Cc(this.finish, this)); a.Ba(d) }, Pb: function() { b.ka.prototype.Pb.call(this); this.HL(b.tu, !1) }, l: function(a, d, e) { e = e || b.color.BLACK; b.ka.prototype.l.call(this, a, d) && (this.te.r = e.r, this.te.g = e.g, this.te.b = e.b, this.te.a = 0); return !0 } }); b.qO.create = function(a, d, e) { return new b.qO(a, d, e) }; b.pO = b.ka.extend({ ctor: function(a, d) { b.ka.prototype.ctor.call(this); d && this.l(a, d) }, aa: function() { b.ka.prototype.aa.call(this); var a = b.color(0, 0, 0, 0), d = b.P.Fa(), a = new b.Ub(a), e = new b.Zf(d.width, d.height); e.sprite.anchorX = 0.5; e.sprite.anchorY = 0.5; e.Nb({ x: d.width / 2, y: d.height / 2, anchorX: 0.5, anchorY: 0.5 }); e.Ak(); this.ra.Q(); e.end(); var f = new b.Zf(d.width, d.height); f.I(d.width / 2, d.height / 2); f.sprite.anchorX = f.anchorX = 0.5; f.sprite.anchorY = f.anchorY = 0.5; f.Ak(); this.nb.Q(); f.end(); e.sprite.sg(b.ONE, b.ONE); f.sprite.sg(b.SRC_ALPHA, b.ONE_MINUS_SRC_ALPHA); a.C(e); a.C(f); e.sprite.opacity = 255; f.sprite.opacity = 255; d = b.Fb(b.WU(this.D, 0), b.Cc(this.bL, this), b.Cc(this.finish, this)); f.sprite.Ba(d); this.C(a, 2, b.tu) }, Pb: function() { this.HL(b.tu, !1); b.ka.prototype.Pb.call(this) }, Q: function() { b.e.prototype.Q.call(this) }, KU: function() {} }); b.pO.create = function(a, d) { return new b.pO(a, d) }; b.NO = b.ka.extend({ Lc: null, ctor: function(a, d) { b.ka.prototype.ctor.call(this); this.Lc = new b.Gi; d && this.l(a, d) }, pk: function() { this.Ti = !1 }, aa: function() { b.ka.prototype.aa.call(this); this.Lc.Rk(this.nb); this.Lc.aa(); var a = b.P.Fa(), a = b.yY(this.D, b.size(0 | a.width / a.height * 12, 12)), a = this.$g(a); this.Lc.Ba(b.Fb(a, b.Cc(this.finish, this), b.Ct())) }, Q: function() { this.ra.Q(); this.Lc.Q() }, $g: function(a) { return a } }); b.NO.create = function(a, d) { return new b.NO(a, d) }; b.nz = b.ka.extend({ Lc: null, w6: function() { this.Lc.Rk(this.ra) }, ctor: function(a, d) { b.ka.prototype.ctor.call(this); this.Lc = new b.Gi; d && this.l(a, d) }, aa: function() { b.ka.prototype.aa.call(this); this.Lc.Rk(this.nb); this.Lc.aa(); var a = this.action(), a = b.Fb(a, b.Cc(this.w6, this), a.reverse()); this.Lc.Ba(b.Fb(this.$g(a), b.Cc(this.finish, this), b.Ct())) }, Pb: function() { this.Lc.Rk(null); this.Lc.Pb(); b.ka.prototype.Pb.call(this) }, Q: function() { this.Lc.Q() }, $g: function(a) { return new b.pq(a, 3) }, action: function() { return b.hY(this.D / 2, 3) } }); b.nz.create = function(a, d) { return new b.nz(a, d) }; b.MO = b.nz.extend({ ctor: function(a, d) { b.nz.prototype.ctor.call(this); d && this.l(a, d) }, action: function() { return b.iY(this.D / 2, 3) } }); b.MO.create = function(a, d) { return new b.MO(a, d) }; b.Gm = b.ka.extend({ Lc: null, ctor: function(a, d) { b.ka.prototype.ctor.call(this); this.Lc = new b.Gi; d && this.l(a, d) }, pk: function() { this.Ti = !1 }, aa: function() { b.ka.prototype.aa.call(this); this.Lc.Rk(this.nb); this.Lc.aa(); var a = b.P.Fa(), a = this.ks(b.size(0 | a.width / a.height * 12, 12)); this.Lc.Ba(b.Fb(this.$g(a), b.Cc(this.finish, this), b.Ct())) }, Q: function() { this.ra.Q(); this.Lc.Q() }, $g: function(a) { return a }, ks: function(a) { return b.VU(this.D, a) } }); b.Gm.create = function(a, d) { return new b.Gm(a, d) }; b.rO = b.Gm.extend({ ctor: function(a, d) { b.Gm.prototype.ctor.call(this); d && this.l(a, d) }, ks: function(a) { return b.TU(this.D, a) } }); b.rO.create = function(a, d) { return new b.rO(a, d) }; b.tO = b.Gm.extend({ ctor: function(a, d) { b.Gm.prototype.ctor.call(this); d && this.l(a, d) }, ks: function(a) { return new b.Fy(this.D, a) } }); b.tO.create = function(a, d) { return new b.tO(a, d) }; b.sO = b.Gm.extend({ ctor: function(a, d) { b.Gm.prototype.ctor.call(this); d && this.l(a, d) }, ks: function(a) { return b.UU(this.D, a) } }); b.sO.create = function(a, d) { return new b.sO(a, d) }; b.TN = 49153; b.ag = b.ka.extend({ fe: 0, $d: 0, pB: null, Ma: "TransitionProgress", ctor: function(a, d) { b.ka.prototype.ctor.call(this); d && this.l(a, d) }, jp: function(a, d, e) { a.Nb({ x: d, y: e, anchorX: 0.5, anchorY: 0.5 }) }, aa: function() { b.ka.prototype.aa.call(this); this.OS(); var a = b.P.Fa(), d = new b.Zf(a.width, a.height); d.sprite.anchorX = 0.5; d.sprite.anchorY = 0.5; this.jp(d, a.width / 2, a.height / 2); d.clear(0, 0, 0, 1); d.Ak(); this.pB.Q(); d.end(); this.pB === this.nb && this.bL(); a = this.cp(d); d = b.Fb(b.FL(this.D, this.$d, this.fe), b.Cc(this.finish, this)); a.Ba(d); this.C(a, 2, b.TN) }, Pb: function() { this.HL(b.TN, !0); b.ka.prototype.Pb.call(this) }, OS: function() { this.pB = this.nb; this.$d = 100; this.fe = 0 }, cp: function() { b.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass"); return null }, pk: function() { this.Ti = !1 } }); b.ag.create = function(a, d) { return new b.ag(a, d) }; b.FO = b.ag.extend({ ctor: function(a, d) { b.ag.prototype.ctor.call(this); d && this.l(a, d) }, cp: function(a) { var d = b.P.Fa(); a = new b.La(a.sprite); b.W === b.ya && (a.sprite.flippedY = !0); a.type = b.La.Fm; a.reverseDir = !1; a.percentage = 100; this.jp(a, d.width / 2, d.height / 2); return a } }); b.FO.create = function(a, d) { return new b.FO(a, d) }; b.IF = b.ag.extend({ ctor: function(a, d) { b.ag.prototype.ctor.call(this); d && this.l(a, d) }, cp: function(a) { var d = b.P.Fa(); a = new b.La(a.sprite); b.W === b.ya && (a.sprite.flippedY = !0); a.type = b.La.Fm; a.reverseDir = !0; a.percentage = 100; this.jp(a, d.width / 2, d.height / 2); return a } }); b.IF.create = function(a, d) { var e = new b.IF; return null !== e && e.l(a, d) ? e : new b.IF(a, d) }; b.CO = b.ag.extend({ ctor: function(a, d) { b.ag.prototype.ctor.call(this); d && this.l(a, d) }, cp: function(a) { var d = b.P.Fa(); a = new b.La(a.sprite); b.W === b.ya && (a.sprite.flippedY = !0); a.type = b.La.uo; a.midPoint = b.d(1, 0); a.barChangeRate = b.d(1, 0); a.percentage = 100; this.jp(a, d.width / 2, d.height / 2); return a } }); b.CO.create = function(a, d) { return new b.CO(a, d) }; b.GO = b.ag.extend({ ctor: function(a, d) { b.ag.prototype.ctor.call(this); d && this.l(a, d) }, cp: function(a) { var d = b.P.Fa(); a = new b.La(a.sprite); b.W === b.ya && (a.sprite.flippedY = !0); a.type = b.La.uo; a.midPoint = b.d(0, 0); a.barChangeRate = b.d(0, 1); a.percentage = 100; this.jp(a, d.width / 2, d.height / 2); return a } }); b.GO.create = function(a, d) { return new b.GO(a, d) }; b.DO = b.ag.extend({ ctor: function(a, d) { b.ag.prototype.ctor.call(this); d && this.l(a, d) }, cp: function(a) { var d = b.P.Fa(); a = new b.La(a.sprite); b.W === b.ya && (a.sprite.flippedY = !0); a.type = b.La.uo; a.midPoint = b.d(0.5, 0.5); a.barChangeRate = b.d(1, 1); a.percentage = 0; this.jp(a, d.width / 2, d.height / 2); return a }, pk: function() { this.Ti = !1 }, OS: function() { this.pB = this.ra; this.$d = 0; this.fe = 100 } }); b.DO.create = function(a, d) { return new b.DO(a, d) }; b.EO = b.ag.extend({ ctor: function(a, d) { b.ag.prototype.ctor.call(this); d && this.l(a, d) }, cp: function(a) { var d = b.P.Fa(); a = new b.La(a.sprite); b.W === b.ya && (a.sprite.flippedY = !0); a.type = b.La.uo; a.midPoint = b.d(0.5, 0.5); a.barChangeRate = b.d(1, 1); a.percentage = 100; this.jp(a, d.width / 2, d.height / 2); return a } }); b.EO.create = function(a, d) { return new b.EO(a, d) }; b.BO = b.ka.extend({ ctor: function(a, d, e) { b.ka.prototype.ctor.call(this); this.Lc = new b.Gi; this.l(a, d, e) }, Mu: !0, Lc: null, Ma: "TransitionPageTurn", l: function(a, d, e) { this.Mu = e; b.ka.prototype.l.call(this, a, d); return !0 }, ks: function(a) { return this.Mu ? b.ZW(b.AL(this.D, a)) : b.AL(this.D, a) }, aa: function() { b.ka.prototype.aa.call(this); var a = b.P.Fa(), d; a.width > a.height ? (a = 16, d = 12) : (a = 12, d = 16); a = this.ks(b.size(a, d)); d = this.Lc; this.Mu ? (d.Rk(this.ra), d.aa(), this.ra.visible = !1, d.Ba(b.Fb(a, b.Cc(this.finish, this), b.Ct())), this.ra.Ba(b.show())) : (d.Rk(this.nb), d.aa(), d.Ba(b.Fb(a, b.Cc(this.finish, this), b.Ct()))) }, Q: function() { this.Mu ? this.nb.Q() : this.ra.Q(); this.Lc.Q() }, pk: function() { this.Ti = this.Mu } }); b.BO.create = function(a, d, e) { return new b.BO(a, d, e) }; b.wa = { name: "Jacob__Codec" }; b.jfa = function() { return b.wa.Ya.EC.apply(b.wa.Ya, arguments) }; b.kfa = function() { var a = b.wa.fo.xU.apply(b.wa.fo, arguments); return b.wa.Ya.EC.apply(b.wa.Ya, [a]) }; b.BY = function(a, d) { d = d || 1; var e = this.kfa(a), f = [], g, h, k; g = 0; for (k = e.length / d; g < k; g++) for (f[g] = 0, h = d - 1; 0 <= h; --h) f[g] += e.charCodeAt(g * d + h) << 8 * h; return f }; b.ywa = function(a, d) { d = d || 1; var e = this.jfa(a), f = [], g, h, k; g = 0; for (k = e.length / d; g < k; g++) for (f[g] = 0, h = d - 1; 0 <= h; --h) f[g] += e.charCodeAt(g * d + h) << 8 * h; return f }; b.Sha = function(a) { a = a.split(","); var d = [], e; for (e = 0; e < a.length; e++) d.push(parseInt(a[e])); return d }; b.wa.fo = { name: "Jacob__Codec__Base64" }; b.wa.fo.AA = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d"; b.wa.fo.xU = function(a) { var d = [], e, f, g, h, k, m = 0; for (a = a.replace(/[^A-Za-z0-9\+\/\=]/g, ""); m < a.length;) e = this.AA.indexOf(a.charAt(m++)), f = this.AA.indexOf(a.charAt(m++)), h = this.AA.indexOf(a.charAt(m++)), k = this.AA.indexOf(a.charAt(m++)), e = e << 2 | f >> 4, f = (f & 15) << 4 | h >> 2, g = (h & 3) << 6 | k, d.push(String.fromCharCode(e)), 64 !== h && d.push(String.fromCharCode(f)), 64 !== k && d.push(String.fromCharCode(g)); return d = d.join("") }; b.wa.fo.yU = function(a, d) { var e = this.xU(a), f = [], g, h, k; g = 0; for (k = e.length / d; g < k; g++) for (f[g] = 0, h = d - 1; 0 <= h; --h) f[g] += e.charCodeAt(g * d + h) << 8 * h; return f }; b.hfa = function(a) { if (0 !== a.length % 4) return null; for (var d = a.length / 4, e = window.qia ? new Uint32Array(d) : [], f = 0; f < d; f++) { var g = 4 * f; e[f] = a[g] + 256 * a[g + 1] + 65536 * a[g + 2] + 16777216 * a[g + 3] } return e }; b.wa.Ya = function(a) { this.data = a; this.debug = !1; this.cm = void 0; this.files = 0; this.ZD = []; this.PJ = Array(32768); this.lj = 0; this.gD = !1; this.dU = 0; this.zk = 1; this.os = 0; this.bt = []; this.XU = void 0; this.$w = Array(b.wa.Ya.x_); this.Ip = Array(32); this.Rx = 0; this.XE = null; this.uj = 0; this.Bs = Array(17); this.Bs[0] = 0; this.bV = this.$U = void 0 }; b.wa.Ya.EC = function(a) { return (new b.wa.Ya(a)).EC()[0][0] }; b.wa.Ya.GE = function() { this.$B = this.ZB = 0; this.pL = null; this.iba = -1 }; b.wa.Ya.x_ = 288; b.wa.Ya.qN = 256; b.wa.Ya.NJ = [0, 128, 64, 192, 32, 160, 96, 224, 16, 144, 80, 208, 48, 176, 112, 240, 8, 136, 72, 200, 40, 168, 104, 232, 24, 152, 88, 216, 56, 184, 120, 248, 4, 132, 68, 196, 36, 164, 100, 228, 20, 148, 84, 212, 52, 180, 116, 244, 12, 140, 76, 204, 44, 172, 108, 236, 28, 156, 92, 220, 60, 188, 124, 252, 2, 130, 66, 194, 34, 162, 98, 226, 18, 146, 82, 210, 50, 178, 114, 242, 10, 138, 74, 202, 42, 170, 106, 234, 26, 154, 90, 218, 58, 186, 122, 250, 6, 134, 70, 198, 38, 166, 102, 230, 22, 150, 86, 214, 54, 182, 118, 246, 14, 142, 78, 206, 46, 174, 110, 238, 30, 158, 94, 222, 62, 190, 126, 254, 1, 129, 65, 193, 33, 161, 97, 225, 17, 145, 81, 209, 49, 177, 113, 241, 9, 137, 73, 201, 41, 169, 105, 233, 25, 153, 89, 217, 57, 185, 121, 249, 5, 133, 69, 197, 37, 165, 101, 229, 21, 149, 85, 213, 53, 181, 117, 245, 13, 141, 77, 205, 45, 173, 109, 237, 29, 157, 93, 221, 61, 189, 125, 253, 3, 131, 67, 195, 35, 163, 99, 227, 19, 147, 83, 211, 51, 179, 115, 243, 11, 139, 75, 203, 43, 171, 107, 235, 27, 155, 91, 219, 59, 187, 123, 251, 7, 135, 71, 199, 39, 167, 103, 231, 23, 151, 87, 215, 55, 183, 119, 247, 15, 143, 79, 207, 47, 175, 111, 239, 31, 159, 95, 223, 63, 191, 127, 255 ]; b.wa.Ya.qU = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]; b.wa.Ya.rU = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 99, 99]; b.wa.Ya.pU = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577]; b.wa.Ya.us = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; b.wa.Ya.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; b.wa.Ya.prototype.EC = function() { this.hx = []; qa(this); return this.ZD }; b.wa.Ya.prototype.Y = function() { this.os += 8; return this.dU < this.data.length ? this.data.charCodeAt(this.dU++) : -1 }; function ra(a) { var d; a.os++; d = a.zk & 1; a.zk >>= 1; 0 === a.zk && (a.zk = a.Y(), d = a.zk & 1, a.zk = a.zk >> 1 | 128); return d } function T(a, d) { for (var e = 0, f = d; f--;) e = e << 1 | ra(a); d && (e = b.wa.Ya.NJ[e] >> 8 - d); return e } function ua(a, d) { a.PJ[a.lj++] = d; a.hx.push(String.fromCharCode(d)); 32768 === a.lj && (a.lj = 0) } function va(a) { for (;;) { if (a.Bs[a.uj] >= a.bV) return -1; if (a.$U[a.Bs[a.uj]] === a.uj) return a.Bs[a.uj]++; a.Bs[a.uj]++ } } function wa(a) { var d = a.XE[a.Rx], e; if (17 === a.uj) return -1; a.Rx++; a.uj++; e = va(a); if (0 <= e) d.ZB = e; else if (d.ZB = 32768, wa(a)) return -1; e = va(a); if (0 <= e) d.$B = e, d.pL = null; else if (d.$B = 32768, d.pL = a.XE[a.Rx], d.iba = a.Rx, wa(a)) return -1; a.uj--; return 0 } function xa(a, d, e, f) { a.XE = d; a.Rx = 0; a.$U = f; a.bV = e; for (d = 0; 17 > d; d++) a.Bs[d] = 0; a.uj = 0; return wa(a) ? -1 : 0 } function ya(a, d) { for (var e, f, g = 0, h = d[g];;) if (e = ra(a)) { if (!(h.$B & 32768)) return h.$B; h = h.pL; e = d.length; for (f = 0; f < e; f++) if (d[f] === h) { g = f; break } } else { if (!(h.ZB & 32768)) return h.ZB; g++; h = d[g] } return -1 } function za(a) { var d, e, f, g, h; do if (d = ra(a), f = T(a, 2), 0 === f) for (a.zk = 1, f = a.Y(), f |= a.Y() << 8, e = a.Y(), e |= a.Y() << 8, (f ^ ~e) & 65535 && document.write("BlockLen checksum mismatch\n"); f--;) e = a.Y(), ua(a, e); else if (1 === f) for (;;) if (f = b.wa.Ya.NJ[T(a, 7)] >> 1, 23 < f ? (f = f << 1 | ra(a), 199 < f ? (f -= 128, f = f << 1 | ra(a)) : (f -= 48, 143 < f && (f += 136))) : f += 256, 256 > f) ua(a, f); else if (256 === f) break; else { var k; f -= 257; h = T(a, b.wa.Ya.rU[f]) + b.wa.Ya.qU[f]; f = b.wa.Ya.NJ[T(a, 5)] >> 3; 8 < b.wa.Ya.us[f] ? (k = T(a, 8), k |= T(a, b.wa.Ya.us[f] - 8) << 8) : k = T(a, b.wa.Ya.us[f]); k += b.wa.Ya.pU[f]; for (f = 0; f < h; f++) e = a.PJ[a.lj - k & 32767], ua(a, e) } else if (2 === f) { var m = Array(320); e = 257 + T(a, 5); k = 1 + T(a, 5); g = 4 + T(a, 4); for (f = 0; 19 > f; f++) m[f] = 0; for (f = 0; f < g; f++) m[b.wa.Ya.border[f]] = T(a, 3); h = a.Ip.length; for (g = 0; g < h; g++) a.Ip[g] = new b.wa.Ya.GE; if (xa(a, a.Ip, 19, m)) { a.lj = 0; return } h = e + k; g = 0; for (var n = -1; g < h;) if (n++, f = ya(a, a.Ip), 16 > f) m[g++] = f; else if (16 === f) { var p; f = 3 + T(a, 2); if (g + f > h) { a.lj = 0; return } for (p = g ? m[g - 1] : 0; f--;) m[g++] = p } else { f = 17 === f ? 3 + T(a, 3) : 11 + T(a, 7); if (g + f > h) { a.lj = 0; return } for (; f--;) m[g++] = 0 } h = a.$w.length; for (g = 0; g < h; g++) a.$w[g] = new b.wa.Ya.GE; if (xa(a, a.$w, e, m)) { a.lj = 0; return } h = a.$w.length; for (g = 0; g < h; g++) a.Ip[g] = new b.wa.Ya.GE; f = []; for (g = e; g < m.length; g++) f[g - e] = m[g]; if (xa(a, a.Ip, k, f)) { a.lj = 0; return } for (;;) if (f = ya(a, a.$w), 256 <= f) { f -= 256; if (0 === f) break; f--; h = T(a, b.wa.Ya.rU[f]) + b.wa.Ya.qU[f]; f = ya(a, a.Ip); 8 < b.wa.Ya.us[f] ? (k = T(a, 8), k |= T(a, b.wa.Ya.us[f] - 8) << 8) : k = T(a, b.wa.Ya.us[f]); for (k += b.wa.Ya.pU[f]; h--;) e = a.PJ[a.lj - k & 32767], ua(a, e) } else ua(a, f) } while (!d); a.lj = 0; a.zk = 1 } function qa(a) { a.hx = []; a.gD = !1; var d = []; d[0] = a.Y(); d[1] = a.Y(); 120 === d[0] && 218 === d[1] && (za(a), a.ZD[a.files] = [a.hx.join(""), "geonext.gxt"], a.files++); 31 === d[0] && 139 === d[1] && (Aa(a), a.ZD[a.files] = [a.hx.join(""), "file"], a.files++); if (80 === d[0] && 75 === d[1] && (a.gD = !0, d[2] = a.Y(), d[3] = a.Y(), 3 === d[2] && 4 === d[3])) { d[0] = a.Y(); d[1] = a.Y(); a.cm = a.Y(); a.cm |= a.Y() << 8; d = a.Y(); d |= a.Y() << 8; a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); var e = a.Y(), e = e | a.Y() << 8, f = a.Y(), f = f | a.Y() << 8, g = 0; for (a.bt = []; e--;) { var h = a.Y(); "/" === h | ":" === h ? g = 0 : g < b.wa.Ya.qN - 1 && (a.bt[g++] = String.fromCharCode(h)) } a.XU || (a.XU = a.bt); for (var g = 0; g < f;) a.Y(), g++; 8 === d && (za(a), a.ZD[a.files] = [a.hx.join(""), a.bt.join("")], a.files++); Aa(a) } } function Aa(a) { var d = [], e; a.cm & 8 && (d[0] = a.Y(), d[1] = a.Y(), d[2] = a.Y(), d[3] = a.Y(), a.Y(), a.Y(), a.Y(), a.Y(), a.Y(), a.Y(), a.Y(), a.Y()); a.gD && qa(a); d[0] = a.Y(); if (8 === d[0]) { a.cm = a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); a.Y(); if (a.cm & 4) for (d[0] = a.Y(), d[2] = a.Y(), a.uj = d[0] + 256 * d[1], d = 0; d < a.uj; d++) a.Y(); if (a.cm & 8) for (d = 0, a.bt = []; e = a.Y();) { if ("7" === e || ":" === e) d = 0; d < b.wa.Ya.qN - 1 && (a.bt[d++] = e) } if (a.cm & 16) for (; a.Y();); a.cm & 2 && (a.Y(), a.Y()); za(a); a.Y(); a.Y(); a.Y(); a.Y(); a.gD && qa(a) } }; /* zlib.js 2012 - imaya [ https://github.com/imaya/zlib.js ] The MIT License */ (function() { function a(a) { throw a; } function d(a, d) { var e = a.split("."), f = D; e[0] in f || !f.execScript || f.execScript("var " + e[0]); for (var g; e.length && (g = e.shift());) e.length || d === F ? f = f[g] ? f[g] : f[g] = {} : f[g] = d } function e(a) { if ("string" === typeof a) { a = a.split(""); var d, e; d = 0; for (e = a.length; d < e; d++) a[d] = (a[d].charCodeAt(0) & 255) >>> 0 } d = 1; e = 0; for (var f = a.length, g, h = 0; 0 < f;) { g = 1024 < f ? 1024 : f; f -= g; do d += a[h++], e += d; while (--g); d %= 65521; e %= 65521 } return (e << 16 | d) >>> 0 } function f(d, e) { this.index = "number" === typeof e ? e : 0; this.Pw = 0; this.buffer = d instanceof(A ? Uint8Array : Array) ? d : new(A ? Uint8Array : Array)(32768); 2 * this.buffer.length <= this.index && a(Error("invalid index")); this.buffer.length <= this.index && this.nj() } function g(a) { this.buffer = new(A ? Uint16Array : Array)(2 * a); this.length = 0 } function h(a) { var d = a.length, e = 0, f = Number.POSITIVE_INFINITY, g, h, k, m, n, p, s, t, v; for (t = 0; t < d; ++t) a[t] > e && (e = a[t]), a[t] < f && (f = a[t]); g = 1 << e; h = new(A ? Uint32Array : Array)(g); k = 1; m = 0; for (n = 2; k <= e;) { for (t = 0; t < d; ++t) if (a[t] === k) { p = 0; s = m; for (v = 0; v < k; ++v) p = p << 1 | s & 1, s >>= 1; for (v = p; v < g; v += n) h[v] = k << 16 | t; ++m }++k; m <<= 1; n <<= 1 } return [h, e, f] } function k(a, d) { this.wd = O; this.S = 0; this.input = a; this.b = 0; d && (d.tba && (this.S = d.tba), "number" === typeof d.bK && (this.wd = d.bK), d.mD && (this.a = A && d.mD instanceof Array ? new Uint8Array(d.mD) : d.mD), "number" === typeof d.Lba && (this.b = d.Lba)); this.a || (this.a = new(A ? Uint8Array : Array)(32768)) } function m(a, d) { this.length = a; this.b_ = d } function n() { var d = Q; switch (G) { case 3 === d: return [257, d - 3, 0]; case 4 === d: return [258, d - 4, 0]; case 5 === d: return [259, d - 5, 0 ]; case 6 === d: return [260, d - 6, 0]; case 7 === d: return [261, d - 7, 0]; case 8 === d: return [262, d - 8, 0]; case 9 === d: return [263, d - 9, 0]; case 10 === d: return [264, d - 10, 0]; case 12 >= d: return [265, d - 11, 1]; case 14 >= d: return [266, d - 13, 1]; case 16 >= d: return [267, d - 15, 1]; case 18 >= d: return [268, d - 17, 1]; case 22 >= d: return [269, d - 19, 2]; case 26 >= d: return [270, d - 23, 2]; case 30 >= d: return [271, d - 27, 2]; case 34 >= d: return [272, d - 31, 2]; case 42 >= d: return [273, d - 35, 3]; case 50 >= d: return [274, d - 43, 3]; case 58 >= d: return [275, d - 51, 3]; case 66 >= d: return [276, d - 59, 3 ]; case 82 >= d: return [277, d - 67, 4]; case 98 >= d: return [278, d - 83, 4]; case 114 >= d: return [279, d - 99, 4]; case 130 >= d: return [280, d - 115, 4]; case 162 >= d: return [281, d - 131, 5]; case 194 >= d: return [282, d - 163, 5]; case 226 >= d: return [283, d - 195, 5]; case 257 >= d: return [284, d - 227, 5]; case 258 === d: return [285, d - 258, 0]; default: a("invalid length: " + d) } } function p(d, e) { function f(d, e) { var g = d.b_, h = [], k = 0, m; m = W[d.length]; h[k++] = m & 65535; h[k++] = m >> 16 & 255; h[k++] = m >> 24; var n; switch (G) { case 1 === g: n = [0, g - 1, 0]; break; case 2 === g: n = [1, g - 2, 0 ]; break; case 3 === g: n = [2, g - 3, 0]; break; case 4 === g: n = [3, g - 4, 0]; break; case 6 >= g: n = [4, g - 5, 1]; break; case 8 >= g: n = [5, g - 7, 1]; break; case 12 >= g: n = [6, g - 9, 2]; break; case 16 >= g: n = [7, g - 13, 2]; break; case 24 >= g: n = [8, g - 17, 3]; break; case 32 >= g: n = [9, g - 25, 3]; break; case 48 >= g: n = [10, g - 33, 4]; break; case 64 >= g: n = [11, g - 49, 4]; break; case 96 >= g: n = [12, g - 65, 5]; break; case 128 >= g: n = [13, g - 97, 5]; break; case 192 >= g: n = [14, g - 129, 6]; break; case 256 >= g: n = [15, g - 193, 6]; break; case 384 >= g: n = [16, g - 257, 7]; break; case 512 >= g: n = [17, g - 385, 7]; break; case 768 >= g: n = [18, g - 513, 8]; break; case 1024 >= g: n = [19, g - 769, 8]; break; case 1536 >= g: n = [20, g - 1025, 9]; break; case 2048 >= g: n = [21, g - 1537, 9]; break; case 3072 >= g: n = [22, g - 2049, 10]; break; case 4096 >= g: n = [23, g - 3073, 10]; break; case 6144 >= g: n = [24, g - 4097, 11]; break; case 8192 >= g: n = [25, g - 6145, 11]; break; case 12288 >= g: n = [26, g - 8193, 12]; break; case 16384 >= g: n = [27, g - 12289, 12]; break; case 24576 >= g: n = [28, g - 16385, 13]; break; case 32768 >= g: n = [29, g - 24577, 13]; break; default: a("invalid distance") } m = n; h[k++] = m[0]; h[k++] = m[1]; h[k++] = m[2]; g = 0; for (k = h.length; g < k; ++g) v[w++] = h[g]; x[h[0]]++; y[h[3]]++; u = d.length + e - 1; t = null } var g, h, k, n, p, s = {}, t, v = A ? new Uint16Array(2 * e.length) : [], w = 0, u = 0, x = new(A ? Uint32Array : Array)(286), y = new(A ? Uint32Array : Array)(30), C = d.S, z; if (!A) { for (k = 0; 285 >= k;) x[k++] = 0; for (k = 0; 29 >= k;) y[k++] = 0 } x[256] = 1; g = 0; for (h = e.length; g < h; ++g) { k = p = 0; for (n = 3; k < n && g + k !== h; ++k) p = p << 8 | e[g + k]; s[p] === F && (s[p] = []); k = s[p]; if (!(0 < u--)) { for (; 0 < k.length && 32768 < g - k[0];) k.shift(); if (g + 3 >= h) { t && f(t, -1); k = 0; for (n = h - g; k < n; ++k) z = e[g + k], v[w++] = z, ++x[z]; break } if (0 < k.length) { p = n = F; var E = 0, D = F, B = F, H = D = F, K = e.length, B = 0, H = k.length; a: for (; B < H; B++) { n = k[H - B - 1]; D = 3; if (3 < E) { for (D = E; 3 < D; D--) if (e[n + D - 1] !== e[g + D - 1]) continue a; D = E } for (; 258 > D && g + D < K && e[n + D] === e[g + D];) ++D; D > E && (p = n, E = D); if (258 === D) break } n = new m(E, g - p); t ? t.length < n.length ? (z = e[g - 1], v[w++] = z, ++x[z], f(n, 0)) : f(t, -1) : n.length < C ? t = n : f(n, 0) } else t ? f(t, -1) : (z = e[g], v[w++] = z, ++x[z]) } k.push(g) } v[w++] = 256; x[256]++; d.s_ = x; d.q_ = y; return A ? v.subarray(0, w) : v } function s(a, d) { function e(a) { var d = v[a][w[a]]; d === s ? (e(a + 1), e(a + 1)) : --t[d]; ++w[a] } var f = a.length, h = new g(572), k = new(A ? Uint8Array : Array)(f), m, n, p; if (!A) for (n = 0; n < f; n++) k[n] = 0; for (n = 0; n < f; ++n) 0 < a[n] && h.push(n, a[n]); f = Array(h.length / 2); m = new(A ? Uint32Array : Array)(h.length / 2); if (1 === f.length) return k[h.pop().index] = 1, k; n = 0; for (p = h.length / 2; n < p; ++n) f[n] = h.pop(), m[n] = f[n].value; var s = m.length; n = new(A ? Uint16Array : Array)(d); var h = new(A ? Uint8Array : Array)(d), t = new(A ? Uint8Array : Array)(s); p = Array(d); var v = Array(d), w = Array(d), u = (1 << d) - s, x = 1 << d - 1, y, z, C; n[d - 1] = s; for (y = 0; y < d; ++y) u < x ? h[y] = 0 : (h[y] = 1, u -= x), u <<= 1, n[d - 2 - y] = (n[d - 1 - y] / 2 | 0) + s; n[0] = h[0]; p[0] = Array(n[0]); v[0] = Array(n[0]); for (y = 1; y < d; ++y) n[y] > 2 * n[y - 1] + h[y] && (n[y] = 2 * n[y - 1] + h[y]), p[y] = Array(n[y]), v[y] = Array(n[y]); for (u = 0; u < s; ++u) t[u] = d; for (x = 0; x < n[d - 1]; ++x) p[d - 1][x] = m[x], v[d - 1][x] = x; for (u = 0; u < d; ++u) w[u] = 0; 1 === h[d - 1] && (--t[0], ++w[d - 1]); for (y = d - 2; 0 <= y; --y) { z = u = 0; C = w[y + 1]; for (x = 0; x < n[y]; x++) z = p[y + 1][C] + p[y + 1][C + 1], z > m[u] ? (p[y][x] = z, v[y][x] = s, C += 2) : (p[y][x] = m[u], v[y][x] = u, ++u); w[y] = 0; 1 === h[y] && e(y) } m = t; n = 0; for (p = f.length; n < p; ++n) k[f[n].index] = m[n]; return k } function t(d) { var e = new(A ? Uint16Array : Array)(d.length), f = [], g = [], h = 0, k, m, n; k = 0; for (m = d.length; k < m; k++) f[d[k]] = (f[d[k]] | 0) + 1; k = 1; for (m = 16; k <= m; k++) g[k] = h, h += f[k] | 0, h > 1 << k && a("overcommitted"), h <<= 1; 65536 > h && a("undercommitted"); k = 0; for (m = d.length; k < m; k++) for (h = g[d[k]], g[d[k]] += 1, f = e[k] = 0, n = d[k]; f < n; f++) e[k] = e[k] << 1 | h & 1, h >>>= 1; return e } function v(a, d) { this.input = a; this.a = new(A ? Uint8Array : Array)(32768); this.wd = K.WC; var e = {}, f; !d && (d = {}) || "number" !== typeof d.bK || (this.wd = d.bK); for (f in d) e[f] = d[f]; e.mD = this.a; this.z = new k(this.input, e) } function w(d, e) { this.XC = []; this.ZC = 32768; this.fi = this.g = this.c = this.wD = 0; this.input = A ? new Uint8Array(d) : d; this.ih = !1; this.eD = U; this.CM = !1; if (e || !(e = {})) e.index && (this.c = e.index), e.QJ && (this.ZC = e.QJ), e.RJ && (this.eD = e.RJ), e.resize && (this.CM = e.resize); switch (this.eD) { case L: this.b = 32768; this.a = new(A ? Uint8Array : Array)(32768 + this.ZC + 258); break; case U: this.b = 0; this.a = new(A ? Uint8Array : Array)(this.ZC); this.nj = this.p_; this.jM = this.d_; this.hD = this.i_; break; default: a(Error("invalid inflate mode")) } } function x(d, e) { for (var f = d.g, g = d.fi, h = d.input, k = d.c, m; g < e;) m = h[k++], m === F && a(Error("input buffer is broken")), f |= m << g, g += 8; d.g = f >>> e; d.fi = g - e; d.c = k; return f & (1 << e) - 1 } function u(d, e) { for (var f = d.g, g = d.fi, h = d.input, k = d.c, m = e[0], n = e[1], p; g < n;) p = h[k++], p === F && a(Error("input buffer is broken")), f |= p << g, g += 8; h = m[f & (1 << n) - 1]; m = h >>> 16; d.g = f >> m; d.fi = g - m; d.c = k; return h & 65535 } function y(a) { function d(a, e, f) { var g, h, k, m; for (m = 0; m < a;) switch (g = u(this, e), g) { case 16: for (k = 3 + x(this, 2); k--;) f[m++] = h; break; case 17: for (k = 3 + x(this, 3); k--;) f[m++] = 0; h = 0; break; case 18: for (k = 11 + x(this, 7); k--;) f[m++] = 0; h = 0; break; default: h = f[m++] = g } return f } var e = x(a, 5) + 257, f = x(a, 5) + 1, g = x(a, 4) + 4, k = new(A ? Uint8Array : Array)(Y.length), m; for (m = 0; m < g; ++m) k[Y[m]] = x(a, 3); g = h(k); k = new(A ? Uint8Array : Array)(e); m = new(A ? Uint8Array : Array)(f); a.hD(h(d.call(a, e, g, k)), h(d.call(a, f, g, m))) } function C(d, e) { var f, g; this.input = d; this.c = 0; if (e || !(e = {})) e.index && (this.c = e.index), e.KY && (this.C_ = e.KY); f = d[this.c++]; g = d[this.c++]; switch (f & 15) { case oa: this.method = oa; break; default: a(Error("unsupported compression method")) } 0 !== ((f << 8) + g) % 31 && a(Error("invalid fcheck flag:" + ((f << 8) + g) % 31)); g & 32 && a(Error("fdict flag is not supported")); this.wM = new w(d, { index: this.c, QJ: e.QJ, RJ: e.RJ, resize: e.resize }) } var F = void 0, G = !0, D = this, A = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array; f.prototype.nj = function() { var a = this.buffer, d, e = a.length, f = new(A ? Uint8Array : Array)(e << 1); if (A) f.set(a); else for (d = 0; d < e; ++d) f[d] = a[d]; return this.buffer = f }; f.prototype.K = function(a, d, e) { var f = this.buffer, g = this.index, h = this.Pw, k = f[g]; e && 1 < d && (a = 8 < d ? (H[a & 255] << 24 | H[a >>> 8 & 255] << 16 | H[a >>> 16 & 255] << 8 | H[a >>> 24 & 255]) >> 32 - d : H[a] >> 8 - d); if (8 > d + h) k = k << d | a, h += d; else for (e = 0; e < d; ++e) k = k << 1 | a >> d - e - 1 & 1, 8 === ++h && (h = 0, f[g++] = H[k], k = 0, g === f.length && (f = this.nj())); f[g] = k; this.buffer = f; this.Pw = h; this.index = g }; f.prototype.finish = function() { var a = this.buffer, d = this.index, e; 0 < this.Pw && (a[d] <<= 8 - this.Pw, a[d] = H[a[d]], d++); A ? e = a.subarray(0, d) : (a.length = d, e = a); return e }; var E = new(A ? Uint8Array : Array)(256), z; for (z = 0; 256 > z; ++z) { for (var B = z, I = B, J = 7, B = B >>> 1; B; B >>>= 1) I <<= 1, I |= B & 1, --J; E[z] = (I << J & 255) >>> 0 } var H = E, E = [0, 1996959894, 3993919788, 2567524794, 124634137, 1886057615, 3915621685, 2657392035, 249268274, 2044508324, 3772115230, 2547177864, 162941995, 2125561021, 3887607047, 2428444049, 498536548, 1789927666, 4089016648, 2227061214, 450548861, 1843258603, 4107580753, 2211677639, 325883990, 1684777152, 4251122042, 2321926636, 335633487, 1661365465, 4195302755, 2366115317, 997073096, 1281953886, 3579855332, 2724688242, 1006888145, 1258607687, 3524101629, 2768942443, 901097722, 1119000684, 3686517206, 2898065728, 853044451, 1172266101, 3705015759, 2882616665, 651767980, 1373503546, 3369554304, 3218104598, 565507253, 1454621731, 3485111705, 3099436303, 671266974, 1594198024, 3322730930, 2970347812, 795835527, 1483230225, 3244367275, 3060149565, 1994146192, 31158534, 2563907772, 4023717930, 1907459465, 112637215, 2680153253, 3904427059, 2013776290, 251722036, 2517215374, 3775830040, 2137656763, 141376813, 2439277719, 3865271297, 1802195444, 476864866, 2238001368, 4066508878, 1812370925, 453092731, 2181625025, 4111451223, 1706088902, 314042704, 2344532202, 4240017532, 1658658271, 366619977, 2362670323, 4224994405, 1303535960, 984961486, 2747007092, 3569037538, 1256170817, 1037604311, 2765210733, 3554079995, 1131014506, 879679996, 2909243462, 3663771856, 1141124467, 855842277, 2852801631, 3708648649, 1342533948, 654459306, 3188396048, 3373015174, 1466479909, 544179635, 3110523913, 3462522015, 1591671054, 702138776, 2966460450, 3352799412, 1504918807, 783551873, 3082640443, 3233442989, 3988292384, 2596254646, 62317068, 1957810842, 3939845945, 2647816111, 81470997, 1943803523, 3814918930, 2489596804, 225274430, 2053790376, 3826175755, 2466906013, 167816743, 2097651377, 4027552580, 2265490386, 503444072, 1762050814, 4150417245, 2154129355, 426522225, 1852507879, 4275313526, 2312317920, 282753626, 1742555852, 4189708143, 2394877945, 397917763, 1622183637, 3604390888, 2714866558, 953729732, 1340076626, 3518719985, 2797360999, 1068828381, 1219638859, 3624741850, 2936675148, 906185462, 1090812512, 3747672003, 2825379669, 829329135, 1181335161, 3412177804, 3160834842, 628085408, 1382605366, 3423369109, 3138078467, 570562233, 1426400815, 3317316542, 2998733608, 733239954, 1555261956, 3268935591, 3050360625, 752459403, 1541320221, 2607071920, 3965973030, 1969922972, 40735498, 2617837225, 3943577151, 1913087877, 83908371, 2512341634, 3803740692, 2075208622, 213261112, 2463272603, 3855990285, 2094854071, 198958881, 2262029012, 4057260610, 1759359992, 534414190, 2176718541, 4139329115, 1873836001, 414664567, 2282248934, 4279200368, 1711684554, 285281116, 2405801727, 4167216745, 1634467795, 376229701, 2685067896, 3608007406, 1308918612, 956543938, 2808555105, 3495958263, 1231636301, 1047427035, 2932959818, 3654703836, 1088359270, 936918E3, 2847714899, 3736837829, 1202900863, 817233897, 3183342108, 3401237130, 1404277552, 615818150, 3134207493, 3453421203, 1423857449, 601450431, 3009837614, 3294710456, 1567103746, 711928724, 3020668471, 3272380065, 1510334235, 755167117 ]; A && new Uint32Array(E); g.prototype.getParent = function(a) { return 2 * ((a - 2) / 4 | 0) }; g.prototype.push = function(a, d) { var e, f, g = this.buffer, h; e = this.length; g[this.length++] = d; for (g[this.length++] = a; 0 < e;) if (f = this.getParent(e), g[e] > g[f]) h = g[e], g[e] = g[f], g[f] = h, h = g[e + 1], g[e + 1] = g[f + 1], g[f + 1] = h, e = f; else break; return this.length }; g.prototype.pop = function() { var a, d, e = this.buffer, f, g, h; d = e[0]; a = e[1]; this.length -= 2; e[0] = e[this.length]; e[1] = e[this.length + 1]; for (h = 0;;) { g = 2 * h + 2; if (g >= this.length) break; g + 2 < this.length && e[g + 2] > e[g] && (g += 2); if (e[g] > e[h]) f = e[h], e[h] = e[g], e[g] = f, f = e[h + 1], e[h + 1] = e[g + 1], e[g + 1] = f; else break; h = g } return { index: a, value: d, length: this.length } }; var O = 2, E = { NONE: 0, r: 1, WC: O, jha: 3 }, S = []; for (z = 0; 288 > z; z++) switch (G) { case 143 >= z: S.push([z + 48, 8]); break; case 255 >= z: S.push([z - 144 + 400, 9]); break; case 279 >= z: S.push([z - 256 + 0, 7]); break; case 287 >= z: S.push([z - 280 + 192, 8]); break; default: a("invalid literal: " + z) } k.prototype.Pn = function() { var d, e, g, h, k = this.input; switch (this.wd) { case 0: g = 0; for (h = k.length; g < h;) { e = A ? k.subarray(g, g + 65535) : k.slice(g, g + 65535); g += e.length; var m = g === h, n = F, v = n = F, v = n = F, w = this.a, u = this.b; if (A) { for (w = new Uint8Array(this.a.buffer); w.length <= u + e.length + 5;) w = new Uint8Array(w.length << 1); w.set(this.a) } n = m ? 1 : 0; w[u++] = n | 0; n = e.length; v = ~n + 65536 & 65535; w[u++] = n & 255; w[u++] = n >>> 8 & 255; w[u++] = v & 255; w[u++] = v >>> 8 & 255; if (A) w.set(e, u), u += e.length, w = w.subarray(0, u); else { n = 0; for (v = e.length; n < v; ++n) w[u++] = e[n]; w.length = u } this.b = u; this.a = w } break; case 1: g = new f(new Uint8Array(this.a.buffer), this.b); g.K(1, 1, G); g.K(1, 2, G); k = p(this, k); e = 0; for (m = k.length; e < m; e++) if (h = k[e], f.prototype.K.apply(g, S[h]), 256 < h) g.K(k[++e], k[++e], G), g.K(k[++e], 5), g.K(k[++e], k[++e], G); else if (256 === h) break; this.a = g.finish(); this.b = this.a.length; break; case O: h = new f(new Uint8Array(this.a), this.b); var x, y, z, C = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], D, E, n = Array(19), B, w = O; h.K(1, 1, G); h.K(w, 2, G); k = p(this, k); v = s(this.s_, 15); D = t(v); w = s(this.q_, 7); u = t(w); for (x = 286; 257 < x && 0 === v[x - 1]; x--); for (y = 30; 1 < y && 0 === w[y - 1]; y--); var H = x, K = y; d = new(A ? Uint32Array : Array)(H + K); var I = new(A ? Uint32Array : Array)(316), J, L; E = new(A ? Uint8Array : Array)(19); for (B = z = 0; B < H; B++) d[z++] = v[B]; for (B = 0; B < K; B++) d[z++] = w[B]; if (!A) for (B = 0, K = E.length; B < K; ++B) E[B] = 0; B = J = 0; for (K = d.length; B < K; B += z) { for (z = 1; B + z < K && d[B + z] === d[B]; ++z); H = z; if (0 === d[B]) if (3 > H) for (; 0 < H--;) I[J++] = 0, E[0]++; else for (; 0 < H;) L = 138 > H ? H : 138, L > H - 3 && L < H && (L = H - 3), 10 >= L ? (I[J++] = 17, I[J++] = L - 3, E[17]++) : (I[J++] = 18, I[J++] = L - 11, E[18]++), H -= L; else if (I[J++] = d[B], E[d[B]]++, H--, 3 > H) for (; 0 < H--;) I[J++] = d[B], E[d[B]]++; else for (; 0 < H;) L = 6 > H ? H : 6, L > H - 3 && L < H && (L = H - 3), I[J++] = 16, I[J++] = L - 3, E[16]++, H -= L } d = A ? I.subarray(0, J) : I.slice(0, J); E = s(E, 7); for (B = 0; 19 > B; B++) n[B] = E[C[B]]; for (z = 19; 4 < z && 0 === n[z - 1]; z--); C = t(E); h.K(x - 257, 5, G); h.K(y - 1, 5, G); h.K(z - 4, 4, G); for (B = 0; B < z; B++) h.K(n[B], 3, G); B = 0; for (n = d.length; B < n; B++) if (e = d[B], h.K(C[e], E[e], G), 16 <= e) { B++; switch (e) { case 16: m = 2; break; case 17: m = 3; break; case 18: m = 7; break; default: a("invalid code: " + e) } h.K(d[B], m, G) } m = [D, v]; u = [u, w]; e = m[0]; m = m[1]; w = u[0]; D = u[1]; u = 0; for (n = k.length; u < n; ++u) if (g = k[u], h.K(e[g], m[g], G), 256 < g) h.K(k[++u], k[++u], G), v = k[++u], h.K(w[v], D[v], G), h.K(k[++u], k[++u], G); else if (256 === g) break; this.a = h.finish(); this.b = this.a.length; break; default: a("invalid compression type") } return this.a }; z = []; var Q; for (Q = 3; 258 >= Q; Q++) B = n(), z[Q] = B[2] << 24 | B[1] << 16 | B[0]; var W = A ? new Uint32Array(z) : z, K = E; v.prototype.Pn = function() { var d, f, g, h, k = 0; h = this.a; d = oa; switch (d) { case oa: f = Math.LOG2E * Math.log(32768) - 8; break; default: a(Error("invalid compression method")) } f = f << 4 | d; h[k++] = f; switch (d) { case oa: switch (this.wd) { case K.NONE: g = 0; break; case K.r: g = 1; break; case K.WC: g = 2; break; default: a(Error("unsupported compression type")) } break; default: a(Error("invalid compression method")) } d = g << 6 | 0; h[k++] = d | 31 - (256 * f + d) % 31; d = e(this.input); this.z.b = k; h = this.z.Pn(); k = h.length; A && (h = new Uint8Array(h.buffer), h.length <= k + 4 && (this.a = new Uint8Array(h.length + 4), this.a.set(h), h = this.a), h = h.subarray(0, k + 4)); h[k++] = d >> 24 & 255; h[k++] = d >> 16 & 255; h[k++] = d >> 8 & 255; h[k++] = d & 255; return h }; d("Zlib.Deflate", v); d("Zlib.Deflate.compress", function(a, d) { return (new v(a, d)).Pn() }); d("Zlib.Deflate.CompressionType", K); d("Zlib.Deflate.CompressionType.NONE", K.NONE); d("Zlib.Deflate.CompressionType.FIXED", K.r); d("Zlib.Deflate.CompressionType.DYNAMIC", K.WC); var L = 0, U = 1, E = { wZ: L, aZ: U }; w.prototype.d = function() { for (; !this.ih;) { var d = x(this, 3); d & 1 && (this.ih = G); d >>>= 1; switch (d) { case 0: var d = this.input, e = this.c, f = this.a, g = this.b, h = F, k = F, m = F, n = f.length, h = F; this.fi = this.g = 0; h = d[e++]; h === F && a(Error("invalid uncompressed block header: LEN (first byte)")); k = h; h = d[e++]; h === F && a(Error("invalid uncompressed block header: LEN (second byte)")); k |= h << 8; h = d[e++]; h === F && a(Error("invalid uncompressed block header: NLEN (first byte)")); m = h; h = d[e++]; h === F && a(Error("invalid uncompressed block header: NLEN (second byte)")); m |= h << 8; k === ~m && a(Error("invalid uncompressed block header: length verify")); e + k > d.length && a(Error("input buffer is broken")); switch (this.eD) { case L: for (; g + k > f.length;) { h = n - g; k -= h; if (A) f.set(d.subarray(e, e + h), g), g += h, e += h; else for (; h--;) f[g++] = d[e++]; this.b = g; f = this.nj(); g = this.b } break; case U: for (; g + k > f.length;) f = this.nj({ v: 2 }); break; default: a(Error("invalid inflate mode")) } if (A) f.set(d.subarray(e, e + k), g), g += k, e += k; else for (; k--;) f[g++] = d[e++]; this.c = e; this.b = g; this.a = f; break; case 1: this.hD(Ta, Ua); break; case 2: y(this); break; default: a(Error("unknown BTYPE: " + d)) } } return this.jM() }; z = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; var Y = A ? new Uint16Array(z) : z; z = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258]; var Z = A ? new Uint16Array(z) : z; z = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0 ]; var sa = A ? new Uint8Array(z) : z; z = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577]; var Ma = A ? new Uint16Array(z) : z; z = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; var ta = A ? new Uint8Array(z) : z; z = new(A ? Uint8Array : Array)(288); B = 0; for (I = z.length; B < I; ++B) z[B] = 143 >= B ? 8 : 255 >= B ? 9 : 279 >= B ? 7 : 8; var Ta = h(z); z = new(A ? Uint8Array : Array)(30); B = 0; for (I = z.length; B < I; ++B) z[B] = 5; var Ua = h(z); w.prototype.hD = function(a, d) { var e = this.a, f = this.b; this.u = a; for (var g = e.length - 258, h, k, m; 256 !== (h = u(this, a));) if (256 > h) f >= g && (this.b = f, e = this.nj(), f = this.b), e[f++] = h; else for (h -= 257, m = Z[h], 0 < sa[h] && (m += x(this, sa[h])), h = u(this, d), k = Ma[h], 0 < ta[h] && (k += x(this, ta[h])), f >= g && (this.b = f, e = this.nj(), f = this.b); m--;) e[f] = e[f++ - k]; for (; 8 <= this.fi;) this.fi -= 8, this.c--; this.b = f }; w.prototype.i_ = function(a, d) { var e = this.a, f = this.b; this.u = a; for (var g = e.length, h, k, m; 256 !== (h = u(this, a));) if (256 > h) f >= g && (e = this.nj(), g = e.length), e[f++] = h; else for (h -= 257, m = Z[h], 0 < sa[h] && (m += x(this, sa[h])), h = u(this, d), k = Ma[h], 0 < ta[h] && (k += x(this, ta[h])), f + m > g && (e = this.nj(), g = e.length); m--;) e[f] = e[f++ - k]; for (; 8 <= this.fi;) this.fi -= 8, this.c--; this.b = f }; w.prototype.nj = function() { var a = new(A ? Uint8Array : Array)(this.b - 32768), d = this.b - 32768, e, f, g = this.a; if (A) a.set(g.subarray(32768, a.length)); else for (e = 0, f = a.length; e < f; ++e) a[e] = g[e + 32768]; this.XC.push(a); this.wD += a.length; if (A) g.set(g.subarray(d, d + 32768)); else for (e = 0; 32768 > e; ++e) g[e] = g[d + e]; this.b = 32768; return g }; w.prototype.p_ = function(a) { var d, e = this.input.length / this.c + 1 | 0, f, g, h, k = this.input, m = this.a; a && ("number" === typeof a.v && (e = a.v), "number" === typeof a.YZ && (e += a.YZ)); 2 > e ? (f = (k.length - this.c) / this.u[2], h = f / 2 * 258 | 0, g = h < m.length ? m.length + h : m.length << 1) : g = m.length * e; A ? (d = new Uint8Array(g), d.set(m)) : d = m; return this.a = d }; w.prototype.jM = function() { var a = 0, d = this.a, e = this.XC, f, g = new(A ? Uint8Array : Array)(this.wD + (this.b - 32768)), h, k, m, n; if (0 === e.length) return A ? this.a.subarray(32768, this.b) : this.a.slice(32768, this.b); h = 0; for (k = e.length; h < k; ++h) for (f = e[h], m = 0, n = f.length; m < n; ++m) g[a++] = f[m]; h = 32768; for (k = this.b; h < k; ++h) g[a++] = d[h]; this.XC = []; return this.buffer = g }; w.prototype.d_ = function() { var a, d = this.b; A ? this.CM ? (a = new Uint8Array(d), a.set(this.a.subarray(0, d))) : a = this.a.subarray(0, d) : (this.a.length > d && (this.a.length = d), a = this.a); return this.buffer = a }; C.prototype.d = function() { var d = this.input, f, g; f = this.wM.d(); this.c = this.wM.c; this.C_ && (g = (d[this.c++] << 24 | d[this.c++] << 16 | d[this.c++] << 8 | d[this.c++]) >>> 0, g !== e(f) && a(Error("invalid adler-32 checksum"))); return f }; d("Zlib.Inflate", C); d("Zlib.Inflate.BufferType", E); E.vfa = E.aZ; E.Qfa = E.wZ; d("Zlib.Inflate.prototype.decompress", C.prototype.d); E = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; A && new Uint16Array(E); E = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 258, 258]; A && new Uint16Array(E); E = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0, 0, 0]; A && new Uint8Array(E); E = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577 ]; A && new Uint16Array(E); E = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]; A && new Uint8Array(E); E = new(A ? Uint8Array : Array)(288); z = 0; for (B = E.length; z < B; ++z) E[z] = 143 >= z ? 8 : 255 >= z ? 9 : 279 >= z ? 7 : 8; h(E); E = new(A ? Uint8Array : Array)(30); z = 0; for (B = E.length; z < B; ++z) E[z] = 5; h(E); var oa = 8 }).call(this); r = window; r = r.yia = r.Zlib; r.YM = r.Deflate; r.YM.Fka = r.YM.compress; r.Inflate = r.Inflate; r.Inflate.bga = r.Inflate.BufferType; r.Inflate.prototype.decompress = r.Inflate.prototype.decompress; b.e0 = b.sa.extend({ ctor: function(a) { var d, e, f, g; this.data = a; this.qb = 8; this.BL = []; this.KC = []; this.iq = {}; this.LJ = null; this.text = {}; for (f = null;;) { d = this.mm(); g = a = void 0; g = []; for (a = 0; 4 > a; ++a) g.push(String.fromCharCode(this.data[this.qb++])); a = g.join(""); switch (a) { case "IHDR": this.width = this.mm(); this.height = this.mm(); this.os = this.data[this.qb++]; this.$J = this.data[this.qb++]; this.qb++; this.qb++; this.qb++; break; case "acTL": this.LJ = { kra: this.mm(), lra: this.mm() || Infinity, frames: [] }; break; case "PLTE": this.BL = this.lx(d); break; case "fcTL": f && this.LJ.frames.push(f); this.qb += 4; f = { width: this.mm(), height: this.mm(), NY: this.mm(), OY: this.mm() }; a = this.NW(); d = this.NW() || 100; f.BU = 1E3 * a / d; f.ela = this.data[this.qb++]; f.qka = this.data[this.qb++]; f.data = []; break; case "IDAT": case "fdAT": "fdAT" === a && (this.qb += 4, d -= 4); a = (null != f ? f.data : void 0) || this.KC; for (g = 0; 0 <= d ? g < d : g > d; 0 <= d ? ++g : --g) a.push(this.data[this.qb++]); break; case "tRNS": this.iq = {}; switch (this.$J) { case 3: this.iq.eL = this.lx(d); d = 255 - this.iq.eL.length; if (0 < d) for (a = 0; 0 <= d ? a < d : a > d; 0 <= d ? ++a : --a) this.iq.eL.push(255); break; case 0: this.iq.rpa = this.lx(d)[0]; break; case 2: this.iq.Zsa = this.lx(d) } break; case "tEXt": g = this.lx(d); d = g.indexOf(0); a = String.fromCharCode.apply(String, g.slice(0, d)); this.text[a] = String.fromCharCode.apply(String, g.slice(d + 1)); break; case "IEND": f && this.LJ.frames.push(f); a: { switch (this.$J) { case 0: case 3: case 4: f = 1; break a; case 2: case 6: f = 3; break a } f = void 0 } this.colors = f; this.JV = 4 === (e = this.$J) || 6 === e; e = this.colors + (this.JV ? 1 : 0); this.Tba = this.os * e; Uint8Array != Array && (this.KC = new Uint8Array(this.KC)); return; default: this.qb += d } this.qb += 4; if (this.qb > this.data.length) throw Error("Incomplete or corrupt PNG file"); } }, lx: function(a) { var d, e; e = []; for (d = 0; 0 <= a ? d < a : d > a; 0 <= a ? ++d : --d) e.push(this.data[this.qb++]); return e }, mm: function() { var a, d, e, f; a = this.data[this.qb++] << 24; d = this.data[this.qb++] << 16; e = this.data[this.qb++] << 8; f = this.data[this.qb++]; return a | d | e | f }, NW: function() { var a, d; a = this.data[this.qb++] << 8; d = this.data[this.qb++]; return a | d }, Z7: function(a) { var d, e, f, g, h, k, m, n, p, s, t, v, w, x, u; null == a && (a = this.KC); if (0 === a.length) return new Uint8Array(0); a = (new Zlib.Inflate(a, { index: 0, KY: !1 })).decompress(); n = this.Tba / 8; v = n * this.width; p = new Uint8Array(v * this.height); k = a.length; for (e = s = t = 0; s < k;) { switch (a[s++]) { case 0: for (d = 0; d < v; d += 1) p[e++] = a[s++]; break; case 1: for (g = w = 0; w < v; g = w += 1) d = a[s++], h = g < n ? 0 : p[e - n], p[e++] = (d + h) % 256; break; case 2: for (g = h = 0; h < v; g = h += 1) d = a[s++], f = (g - g % n) / n, w = t && p[(t - 1) * v + f * n + g % n], p[e++] = (w + d) % 256; break; case 3: for (g = u = 0; u < v; g = u += 1) d = a[s++], f = (g - g % n) / n, h = g < n ? 0 : p[e - n], w = t && p[(t - 1) * v + f * n + g % n], p[e++] = (d + Math.floor((h + w) / 2)) % 256; break; case 4: for (g = u = 0; u < v; g = u += 1) d = a[s++], f = (g - g % n) / n, h = g < n ? 0 : p[e - n], 0 === t ? w = x = 0 : (w = p[(t - 1) * v + f * n + g % n], x = f && p[(t - 1) * v + (f - 1) * n + g % n]), m = h + w - x, g = Math.abs(m - h), f = Math.abs(m - w), m = Math.abs(m - x), h = g <= f && g <= m ? h : f <= m ? w : x, p[e++] = (d + h) % 256; break; default: throw Error("Invalid filter algorithm: " + a[s - 1]); } t++ } return p }, Q7: function(a, d) { var e, f, g, h, k, m, n, p; f = this.colors; p = null; e = this.JV; this.BL.length && (p = null != (g = this.k3) ? g : this.k3 = this.Y7(), f = 4, e = !0); g = a.data || a; n = g.length; k = p || d; h = m = 0; if (1 === f) for (; h < n;) f = p ? 4 * d[h / 4] : m, m = k[f++], g[h++] = m, g[h++] = m, g[h++] = m, g[h++] = e ? k[f++] : 255, m = f; else for (; h < n;) f = p ? 4 * d[h / 4] : m, g[h++] = k[f++], g[h++] = k[f++], g[h++] = k[f++], g[h++] = e ? k[f++] : 255, m = f }, Y7: function() { var a, d, e, f, g, h, k, m, n; e = this.BL; h = this.iq.eL || []; g = new Uint8Array((h.length || 0) + e.length); d = k = a = f = 0; for (m = e.length; k < m; d = k += 3) g[f++] = e[d], g[f++] = e[d + 1], g[f++] = e[d + 2], g[f++] = null != (n = h[a++]) ? n : 255; return g }, zca: function(a) { var d; a.width = this.width; a.height = this.height; a = a.getContext("2d"); d = a.createImageData(this.width, this.height); this.Q7(d, this.Z7()); return a.putImageData(d, 0, 0) } }); b.Yea = { FR: !1, qp: null, NG: [], getUint8: function(a) { return this.qp[a] }, getUint16: function(a) { return this.FR ? this.qp[a + 1] << 8 | this.qp[a] : this.qp[a] << 8 | this.qp[a + 1] }, getUint32: function(a) { var d = this.qp; return this.FR ? d[a + 3] << 24 | d[a + 2] << 16 | d[a + 1] << 8 | d[a] : d[a] << 24 | d[a + 1] << 16 | d[a + 2] << 8 | d[a + 3] }, D7: function() { var a = this.getUint16(0); if (18761 === a) this.qL = !0; else if (19789 === a) this.qL = !1; else throw console.log(a), TypeError("Invalid byte order value."); return this.qL }, haa: function() { if (42 !== this.getUint16(2)) throw RangeError("You forgot your towel!"); return !0 }, u9: function(a) { var d = this.M8; return a in d ? d[a] : null }, s9: function(a) { var d = this.L8; if (a in d) return d[a]; console.log("Unknown Field Tag:", a); return "Tag" + a }, t9: function(a) { return -1 !== ["BYTE", "ASCII", "SBYTE", "UNDEFINED"].indexOf(a) ? 1 : -1 !== ["SHORT", "SSHORT"].indexOf(a) ? 2 : -1 !== ["LONG", "SLONG", "FLOAT"].indexOf(a) ? 4 : -1 !== ["RATIONAL", "SRATIONAL", "DOUBLE"].indexOf(a) ? 8 : null }, v9: function(a, d, e, f) { a = []; var g = this.t9(d); if (4 >= g * e) !1 === this.qL ? a.push(f >>> 8 * (4 - g)) : a.push(f); else for (var h = 0; h < e; h++) { var k = g * h; 8 <= g ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(d) ? (a.push(this.getUint32(f + k)), a.push(this.getUint32(f + k + 4))) : b.log("Can't handle this field type or size") : a.push(this.cV(g, f + k)) } "ASCII" === d && a.forEach(function(a, d, e) { e[d] = String.fromCharCode(a) }); return a }, cV: function(a, d) { if (0 >= a) b.log("No bytes requested"); else { if (1 >= a) return this.getUint8(d); if (2 >= a) return this.getUint16(d); if (3 >= a) return this.getUint32(d) >>> 8; if (4 >= a) return this.getUint32(d); b.log("Too many bytes requested") } }, Z8: function(a, d, e) { e = e || 0; d += Math.floor(e / 8); var f = e + a; a = 32 - a; var g, h; 0 >= f ? console.log("No bits requested") : 8 >= f ? (g = 24 + e, h = this.getUint8(d)) : 16 >= f ? (g = 16 + e, h = this.getUint16(d)) : 32 >= f ? (g = e, h = this.getUint32(d)) : console.log("Too many bits requested"); return { bits: h << g >>> a, byteOffset: d + Math.floor(f / 8), bitOffset: f % 8 } }, JW: function(a) { var d = this.getUint16(a), e = []; a += 2; for (var f = 0; f < d; a += 12, f++) { var g = this.getUint16(a), h = this.getUint16(a + 2), k = this.getUint32(a + 4), m = this.getUint32(a + 8), g = this.s9(g), h = this.u9(h), k = this.v9(g, h, k, m); e[g] = { type: h, Jj: k } } this.NG.push(e); d = this.getUint32(a); 0 !== d && this.JW(d) }, Gp: function(a, d) { var e = Math.pow(2, 8 - d); return Math.floor(a * e + (e - 1)) }, Qba: function(a, d) { d = d || b.ic("canvas"); this.qp = a; this.canvas = d; this.D7(); if (this.haa()) { var e = this.getUint32(4); this.NG.length = 0; this.JW(e); var f = this.NG[0], e = f.ImageWidth.Jj[0], g = f.ImageLength.Jj[0]; this.canvas.width = e; this.canvas.height = g; var h = [], k = f.Compression ? f.Compression.Jj[0] : 1, m = f.SamplesPerPixel.Jj[0], n = [], p = 0, s = !1; f.BitsPerSample.Jj.forEach(function(a, d) { n[d] = { ps: a, GC: !1, sw: void 0 }; 0 === a % 8 && (n[d].GC = !0, n[d].sw = a / 8); p += a }, this); if (0 === p % 8) var s = !0, t = p / 8; var v = f.StripOffsets.Jj, w = v.length; if (f.StripByteCounts) var x = f.StripByteCounts.Jj; else if (b.log("Missing StripByteCounts!"), 1 === w) x = [Math.ceil(e * g * p / 8)]; else throw Error("Cannot recover from missing StripByteCounts"); for (var u = 0; u < w; u++) { var y = v[u]; h[u] = []; for (var C = x[u], F = 0, G = 0, D = 1, A = !0, E = [], z = 0, B = 0, I = 0; F < C; F += D) switch (k) { case 1: D = 0; for (E = []; D < m; D++) if (n[D].GC) E.push(this.cV(n[D].sw, y + F + n[D].sw * D)); else { var J = this.Z8(n[D].ps, y + F, G); E.push(J.os); F = J.byteOffset - y; G = J.oka; throw RangeError("Cannot handle sub-byte bits per sample"); } h[u].push(E); if (s) D = t; else throw D = 0, RangeError("Cannot handle sub-byte bits per pixel"); break; case 32773: if (A) { var A = !1, H = 1, O = 1, D = this.getInt8(y + F); 0 <= D && 127 >= D ? H = D + 1 : -127 <= D && -1 >= D ? O = -D + 1 : A = !0 } else { for (var S = this.getUint8(y + F), D = 0; D < O; D++) { if (n[B].GC) I = I << 8 * z | S, z++, z === n[B].sw && (E.push(I), I = z = 0, B++); else throw RangeError("Cannot handle sub-byte bits per sample"); B === m && (h[u].push(E), E = [], B = 0) } H--; 0 === H && (A = !0) } D = 1 } } if (d.getContext) { t = this.canvas.getContext("2d"); t.fillStyle = "rgba(255, 255, 255, 0)"; u = f.RowsPerStrip ? f.RowsPerStrip.Jj[0] : g; y = h.length; g %= u; g = 0 === g ? u : g; F = u; k = 0; E = f.PhotometricInterpretation.Jj[0]; H = []; O = 0; f.ExtraSamples && (H = f.ExtraSamples.Jj, O = H.length); if (f.ColorMap) var J = f.ColorMap.Jj, Q = Math.pow(2, n[0].ps); for (u = 0; u < y; u++) { u + 1 === y && (F = g); f = h[u].length; k *= u; for (s = m = 0; m < F, s < f; m++) for (v = 0; v < e; v++, s++) { x = h[u][s]; A = G = C = 0; w = 1; if (0 < O) for (C = 0; C < O; C++) if (1 === H[C] || 2 === H[C]) { w = x[3 + C] / 256; break } switch (E) { case 0: if (n[0].GC) var W = Math.pow(16, 2 * n[0].sw); x.forEach(function(a, d, e) { e[d] = W - a }); case 1: C = G = A = this.Gp(x[0], n[0].ps); break; case 2: C = this.Gp(x[0], n[0].ps); G = this.Gp(x[1], n[1].ps); A = this.Gp(x[2], n[2].ps); break; case 3: if (void 0 === J) throw Error("Palette image missing color map"); x = x[0]; C = this.Gp(J[x], 16); G = this.Gp(J[Q + x], 16); A = this.Gp(J[2 * Q + x], 16); break; default: throw RangeError("Unknown Photometric Interpretation:", E); } t.fillStyle = "rgba(" + C + ", " + G + ", " + A + ", " + w + ")"; t.fillRect(v, k + m, 1, 1) } k = F } } return this.canvas } }, L8: { 315: "Artist", 258: "BitsPerSample", 265: "CellLength", 264: "CellWidth", 320: "ColorMap", 259: "Compression", 33432: "Copyright", 306: "DateTime", 338: "ExtraSamples", 266: "FillOrder", 289: "FreeByteCounts", 288: "FreeOffsets", 291: "GrayResponseCurve", 290: "GrayResponseUnit", 316: "HostComputer", 270: "ImageDescription", 257: "ImageLength", 256: "ImageWidth", 271: "Make", 281: "MaxSampleValue", 280: "MinSampleValue", 272: "Model", 254: "NewSubfileType", 274: "Orientation", 262: "PhotometricInterpretation", 284: "PlanarConfiguration", 296: "ResolutionUnit", 278: "RowsPerStrip", 277: "SamplesPerPixel", 305: "Software", 279: "StripByteCounts", 273: "StripOffsets", 255: "SubfileType", 263: "Threshholding", 282: "XResolution", 283: "YResolution", 326: "BadFaxLines", 327: "CleanFaxData", 343: "ClipPath", 328: "ConsecutiveBadFaxLines", 433: "Decode", 434: "DefaultImageColor", 269: "DocumentName", 336: "DotRange", 321: "HalftoneHints", 346: "Indexed", 347: "JPEGTables", 285: "PageName", 297: "PageNumber", 317: "Predictor", 319: "PrimaryChromaticities", 532: "ReferenceBlackWhite", 339: "SampleFormat", 559: "StripRowCounts", 330: "SubIFDs", 292: "T4Options", 293: "T6Options", 325: "TileByteCounts", 323: "TileLength", 324: "TileOffsets", 322: "TileWidth", 301: "TransferFunction", 318: "WhitePoint", 344: "XClipPathUnits", 286: "XPosition", 529: "YCbCrCoefficients", 531: "YCbCrPositioning", 530: "YCbCrSubSampling", 345: "YClipPathUnits", 287: "YPosition", 37378: "ApertureValue", 40961: "ColorSpace", 36868: "DateTimeDigitized", 36867: "DateTimeOriginal", 34665: "Exif IFD", 36864: "ExifVersion", 33434: "ExposureTime", 41728: "FileSource", 37385: "Flash", 40960: "FlashpixVersion", 33437: "FNumber", 42016: "ImageUniqueID", 37384: "LightSource", 37500: "MakerNote", 37377: "ShutterSpeedValue", 37510: "UserComment", 33723: "IPTC", 34675: "ICC Profile", 700: "XMP", 42112: "GDAL_METADATA", 42113: "GDAL_NODATA", 34377: "Photoshop" }, M8: { 1: "BYTE", 2: "ASCII", 3: "SHORT", 4: "LONG", 5: "RATIONAL", 6: "SBYTE", 7: "UNDEFINED", 8: "SSHORT", 9: "SLONG", 10: "SRATIONAL", 11: "FLOAT", 12: "DOUBLE" } }; b.Bh = function(a, d, e, f, g, h, k, m, n, p, s, t) { this.qb = a ? a : b.d(0, 0); this.startPos = d ? d : b.d(0, 0); this.color = e ? e : { r: 0, g: 0, b: 0, a: 255 }; this.Zl = f ? f : { r: 0, g: 0, b: 0, a: 255 }; this.size = g || 0; this.gK = h || 0; this.rotation = k || 0; this.EU = m || 0; this.Wn = n || 0; this.atlasIndex = p || 0; this.qc = s ? s : new b.Bh.NE; this.Ke = t ? t : new b.Bh.OE; this.mL = !1; this.zw = b.d(0, 0) }; b.Bh.NE = function(a, d, e) { this.dir = a ? a : b.d(0, 0); this.radialAccel = d || 0; this.tangentialAccel = e || 0 }; b.Bh.OE = function(a, d, e, f) { this.Yg = a || 0; this.AU = d || 0; this.kx = e || 0; this.DU = f || 0 }; b.Bh.jz = [b.d(), b.d(), b.d(), b.d()]; b.t = b.e.extend({ Ma: "ParticleSystem", VH: "", Bb: 0, FG: !1, qc: null, Ke: null, bI: b.d(0, 0), Bl: null, Go: 0, ig: 0, qa: null, atlasIndex: 0, xp: !1, Bz: 0, Ar: !1, ke: 0, duration: 0, Qr: null, ln: null, Sf: 0, $s: 0, Yg: 0, ns: 0, yt: 0, zt: 0, Mp: 0, ws: 0, vn: null, wn: null, gg: null, Xm: null, At: 0, Bt: 0, xs: 0, ys: 0, Kp: 0, Mb: 0, O: null, H: null, Cb: !1, zj: null, rw: !1, Wa: 0, R: null, ctor: function(a) { b.e.prototype.ctor.call(this); this.Wa = b.t.Ab; this.qc = new b.t.NE; this.Ke = new b.t.OE; this.H = { src: b.Td, $: b.Sd }; this.Bl = []; this.Qr = b.d(0, 0); this.ln = b.d(0, 0); this.vn = b.color(255, 255, 255, 255); this.wn = b.color(255, 255, 255, 255); this.gg = b.color(255, 255, 255, 255); this.Xm = b.color(255, 255, 255, 255); this.VH = ""; this.Bb = 0; this.FG = !1; this.bI = b.d(0, 0); this.ig = this.Go = 0; this.qa = null; this.atlasIndex = 0; this.xp = !1; this.Bz = 0; this.Ar = !1; this.Mb = this.Kp = this.ys = this.xs = this.Bt = this.At = this.ws = this.Mp = this.zt = this.yt = this.ns = this.Yg = this.$s = this.Sf = this.duration = this.ke = 0; this.O = null; this.Cb = !1; this.zj = b.t.yu; this.rw = !1; this.R = !0; !a || b.Vw(a) ? (a = a || 100, this.zx(b.t.iO), this.pc(a)) : b.Je(a) ? this.em(a) : b.Ww(a) && this.SV(a, "") }, Ic: function() { return b.W === b.Jb ? new b.t.n(this) : new b.t.p(this) }, wpa: function(a) { this.FG = a }, Rw: function(a) { this.f.Rw(a) }, yK: function() { return this.qa }, si: function(a) { this.f.si(a) }, Es: function() { return this.atlasIndex }, NL: function(a) { this.atlasIndex = a }, oC: function() { return this.f.oC() }, zx: function(a) { this.f.zx(a) }, vC: function() { return this.f.vC() }, TD: function(a) { this.f.TD(a) }, Ln: function() { return this.Ar }, coa: function() { return this.ke }, Dua: function(a) { this.ke = a }, Gs: function() { return this.duration }, jh: function(a) { this.duration = a }, I$: function() { return { x: this.Qr.x, y: this.Qr.y } }, Tda: function(a) { this.Qr = a }, LK: function() { return { x: this.ln.x, y: this.ln.y } }, yi: function(a) { this.ln = a }, Fna: function() { return this.Sf }, wi: function(a) { this.Sf = a }, Gna: function() { return this.$s }, xi: function(a) { this.$s = a }, zma: function() { return this.Yg }, qi: function(a) { this.Yg = a }, Ama: function() { return this.ns }, ri: function(a) { this.ns = a }, jV: function() { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity"); var a = this.qc.gravity; return b.d(a.x, a.y) }, lh: function(a) { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity"); this.qc.gravity = a }, wC: function() { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity"); return this.qc.speed }, Uf: function(a) { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity"); this.qc.speed = a }, wV: function() { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity"); return this.qc.speedVar }, qh: function(a) { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity"); this.qc.speedVar = a }, AV: function() { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity"); return this.qc.tangentialAccel }, qm: function(a) { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity"); this.qc.tangentialAccel = a }, BV: function() { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity"); return this.qc.tangentialAccelVar }, rm: function(a) { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity"); this.qc.tangentialAccelVar = a }, qV: function() { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity"); return this.qc.radialAccel }, mh: function(a) { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity"); this.qc.radialAccel = a }, rV: function() { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity"); return this.qc.radialAccelVar }, nh: function(a) { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity"); this.qc.radialAccelVar = a }, x$: function() { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity"); return this.qc.rotationIsDir }, Oda: function(a) { this.Wa !== b.t.Ab && b.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity"); this.qc.rotationIsDir = a }, yV: function() { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius"); return this.Ke.startRadius }, XX: function(a) { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius"); this.Ke.startRadius = a }, zV: function() { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius"); return this.Ke.startRadiusVar }, YX: function(a) { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius"); this.Ke.startRadiusVar = a }, gV: function() { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius"); return this.Ke.endRadius }, sX: function(a) { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius"); this.Ke.endRadius = a }, hV: function() { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius"); return this.Ke.endRadiusVar }, tX: function(a) { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius"); this.Ke.endRadiusVar = a }, tV: function() { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius"); return this.Ke.DD }, TX: function(a) { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius"); this.Ke.DD = a }, uV: function() { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius"); return this.Ke.ED }, UX: function(a) { this.Wa !== b.t.Yf && b.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius"); this.Ke.ED = a }, Tn: function(a, d) { this.xp = !0; b.e.prototype.Tn.call(this, a, d) }, QD: function(a) { this.xp = !0; b.e.prototype.QD.call(this, a) }, oh: function(a) { this.xp = !0; b.e.prototype.oh.call(this, a) }, ph: function(a) { this.xp = !0; b.e.prototype.ph.call(this, a) }, zoa: function() { return this.yt }, Ai: function(a) { this.yt = a }, Aoa: function() { return this.zt }, Bi: function(a) { this.zt = a }, ena: function() { return this.Mp }, vi: function(a) { this.Mp = a }, fna: function() { return this.ws }, eda: function(a) { this.ws = a }, xC: function() { return b.color(this.vn.r, this.vn.g, this.vn.b, this.vn.a) }, Vf: function(a) { this.vn = b.color(a) }, xV: function() { return b.color(this.wn.r, this.wn.g, this.wn.b, this.wn.a) }, rh: function(a) { this.wn = b.color(a) }, pC: function() { return b.color(this.gg.r, this.gg.g, this.gg.b, this.gg.a) }, Tf: function(a) { this.gg = b.color(a) }, fV: function() { return b.color(this.Xm.r, this.Xm.g, this.Xm.b, this.Xm.a) }, kh: function(a) { this.Xm = b.color(a) }, Boa: function() { return this.At }, Vda: function(a) { this.At = a }, Coa: function() { return this.Bt }, Wda: function(a) { this.Bt = a }, gna: function() { return this.xs }, fda: function(a) { this.xs = a }, hna: function() { return this.ys }, gda: function(a) { this.ys = a }, cna: function() { return this.Kp }, ti: function(a) { this.Kp = a }, Q$: function() { return this.Mb }, WD: function(a) { this.f.WD(a) }, xa: function() { return this.O }, Oa: function(a) { a && (a.R ? this.YL(a, b.rect(0, 0, a.width, a.height)) : (this.R = !1, a.addEventListener("load", function(a) { this.R = !0; this.YL(a, b.rect(0, 0, a.width, a.height)) }, this))) }, Gk: function() { return this.H }, sg: function(a, d) { if (void 0 === d) this.H !== a && (this.H = a, this.bi()); else if (this.H.src !== a || this.H.$ !== d) this.H = { src: a, $: d }, this.bi() }, tf: function() { return this.Cb }, Le: function(a) { this.Cb = a }, Qaa: function() { return this.H.src === b.SRC_ALPHA && this.H.$ === b.ONE || this.H.src === b.ONE && this.H.$ === b.ONE }, Ej: function(a) { var d = this.H; a ? (d.src = b.SRC_ALPHA, d.$ = b.ONE) : this.f.ES() }, foa: function() { return this.zj }, Ida: function(a) { this.zj = a }, Jpa: function() { return this.rw }, sta: function(a) { this.rw = a }, dna: function() { return this.Wa }, ui: function(a) { this.Wa = a }, T: function() { return this.pc(150) }, em: function(a) { this.VH = a; a = b.Z.sf(a); return a ? this.SV(a, "") : (b.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), !1) }, a9: function() { return b.rect(0, 0, b.ab.width, b.ab.height) }, SV: function(a) { var d = !1, e = null, e = this.J6, f = parseInt(e("maxParticles", a)); if (this.pc(f)) { this.Yg = parseFloat(e("angle", a)); this.ns = parseFloat(e("angleVariance", a)); this.duration = parseFloat(e("duration", a)); this.H.src = parseInt(e("blendFuncSource", a)); this.H.$ = parseInt(e("blendFuncDestination", a)); d = this.vn; d.r = 255 * parseFloat(e("startColorRed", a)); d.g = 255 * parseFloat(e("startColorGreen", a)); d.b = 255 * parseFloat(e("startColorBlue", a)); d.a = 255 * parseFloat(e("startColorAlpha", a)); d = this.wn; d.r = 255 * parseFloat(e("startColorVarianceRed", a)); d.g = 255 * parseFloat(e("startColorVarianceGreen", a)); d.b = 255 * parseFloat(e("startColorVarianceBlue", a)); d.a = 255 * parseFloat(e("startColorVarianceAlpha", a)); d = this.gg; d.r = 255 * parseFloat(e("finishColorRed", a)); d.g = 255 * parseFloat(e("finishColorGreen", a)); d.b = 255 * parseFloat(e("finishColorBlue", a)); d.a = 255 * parseFloat(e("finishColorAlpha", a)); d = this.Xm; d.r = 255 * parseFloat(e("finishColorVarianceRed", a)); d.g = 255 * parseFloat(e("finishColorVarianceGreen", a)); d.b = 255 * parseFloat(e("finishColorVarianceBlue", a)); d.a = 255 * parseFloat(e("finishColorVarianceAlpha", a)); this.yt = parseFloat(e("startParticleSize", a)); this.zt = parseFloat(e("startParticleSizeVariance", a)); this.Mp = parseFloat(e("finishParticleSize", a)); this.ws = parseFloat(e("finishParticleSizeVariance", a)); this.I(parseFloat(e("sourcePositionx", a)), parseFloat(e("sourcePositiony", a))); this.ln.x = parseFloat(e("sourcePositionVariancex", a)); this.ln.y = parseFloat(e("sourcePositionVariancey", a)); this.At = parseFloat(e("rotationStart", a)); this.Bt = parseFloat(e("rotationStartVariance", a)); this.xs = parseFloat(e("rotationEnd", a)); this.ys = parseFloat(e("rotationEndVariance", a)); this.Wa = parseInt(e("emitterType", a)); if (this.Wa === b.t.Ab) d = this.qc, d.gravity.x = parseFloat(e("gravityx", a)), d.gravity.y = parseFloat(e("gravityy", a)), d.speed = parseFloat(e("speed", a)), d.speedVar = parseFloat(e("speedVariance", a)), f = e("radialAcceleration", a), d.radialAccel = f ? parseFloat(f) : 0, f = e("radialAccelVariance", a), d.radialAccelVar = f ? parseFloat(f) : 0, f = e("tangentialAcceleration", a), d.tangentialAccel = f ? parseFloat(f) : 0, f = e("tangentialAccelVariance", a), d.tangentialAccelVar = f ? parseFloat(f) : 0, f = e("rotationIsDir", a).toLowerCase(), d.rotationIsDir = null != f && ("true" === f || "1" === f); else if (this.Wa === b.t.Yf) d = this.Ke, d.startRadius = parseFloat(e("maxRadius", a)), d.startRadiusVar = parseFloat(e("maxRadiusVariance", a)), d.endRadius = parseFloat(e("minRadius", a)), d.endRadiusVar = 0, d.DD = parseFloat(e("rotatePerSecond", a)), d.ED = parseFloat(e("rotatePerSecondVariance", a)); else return b.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), !1; this.Sf = parseFloat(e("particleLifespan", a)); this.$s = parseFloat(e("particleLifespanVariance", a)); this.Kp = this.Mb / this.Sf; if (!this.qa) if (this.Cb = !1, d = e("textureFileName", a), d = b.path.qs(this.VH, d), f = b.Xa.Kn(d)) this.Oa(f); else if ((a = e("textureImageData", a)) && 0 !== a.length) { e = b.BY(a, 1); if (!e) return b.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"), !1; a = b.E9(e); if (a !== b.bN && a !== b.CE) return b.log("cc.ParticleSystem: unknown image format with Data"), !1; f = b.ic("canvas"); a === b.CE ? (new b.e0(e)).zca(f) : b.Yea.Qba(e, f); b.Xa.x7(d, f); (a = b.Xa.Kn(d)) || b.log("cc.ParticleSystem.initWithDictionary() : error loading the texture"); this.Oa(a) } else { f = b.Xa.Vc(d); if (!f) return !1; this.Oa(f) } d = !0 } return d }, pc: function(a) { this.Mb = a; var d, e = this.Bl; for (d = e.length = 0; d < a; d++) e[d] = new b.Bh; if (!e) return b.log("Particle system: not enough memory"), !1; this.Bz = a; if (this.qa) for (d = 0; d < this.Mb; d++) e[d].atlasIndex = d; this.Ar = !0; this.H.src = b.Td; this.H.$ = b.Sd; this.zj = b.t.yu; this.Wa = b.t.Ab; this.xp = this.rw = !1; this.dX(1); this.f.kR(a); return !0 }, Uka: function() { this.Hj() }, WB: function() { if (this.Waa()) return !1; var a = this.f.WB(); this.paa(a); ++this.ke; return !0 }, paa: function(a) { var d = b.ica; a.Wn = this.Sf + this.$s * d(); a.Wn = Math.max(0, a.Wn); a.qb.x = this.Qr.x + this.ln.x * d(); a.qb.y = this.Qr.y + this.ln.y * d(); var e, f; e = this.vn; var g = this.wn, h = this.gg; f = this.Xm; e = { r: b.Zg(e.r + g.r * d(), 0, 255), g: b.Zg(e.g + g.g * d(), 0, 255), b: b.Zg(e.b + g.b * d(), 0, 255), a: b.Zg(e.a + g.a * d(), 0, 255) }; f = { r: b.Zg(h.r + f.r * d(), 0, 255), g: b.Zg(h.g + f.g * d(), 0, 255), b: b.Zg(h.b + f.b * d(), 0, 255), a: b.Zg(h.a + f.a * d(), 0, 255) }; a.color = e; g = a.Zl; h = a.Wn; g.r = (f.r - e.r) / h; g.g = (f.g - e.g) / h; g.b = (f.b - e.b) / h; g.a = (f.a - e.a) / h; e = this.yt + this.zt * d(); e = Math.max(0, e); a.size = e; this.Mp === b.t.Eh ? a.gK = 0 : (f = this.Mp + this.ws * d(), f = Math.max(0, f), a.gK = (f - e) / h); e = this.At + this.Bt * d(); f = this.xs + this.ys * d(); a.rotation = e; a.EU = (f - e) / h; this.zj === b.t.yu ? a.startPos = this.Yl(this.bI) : this.zj === b.t.BF && (a.startPos.x = this.Ca.x, a.startPos.y = this.Ca.y); e = b.Md(this.Yg + this.ns * d()); if (this.Wa === b.t.Ab) h = this.qc, f = a.qc, g = h.speed + h.speedVar * d(), f.dir.x = Math.cos(e), f.dir.y = Math.sin(e), b.ft(f.dir, g), f.radialAccel = h.radialAccel + h.radialAccelVar * d(), f.tangentialAccel = h.tangentialAccel + h.tangentialAccelVar * d(), h.rotationIsDir && (a.rotation = -b.jx(b.Oba(f.dir))); else { f = this.Ke; a = a.Ke; var g = f.startRadius + f.startRadiusVar * d(), k = f.endRadius + f.endRadiusVar * d(); a.kx = g; a.DU = f.endRadius === b.t.J0 ? 0 : (k - g) / h; a.Yg = e; a.AU = b.Md(f.DD + f.ED * d()) } }, Kea: function() { this.Ar = !1; this.Bb = this.duration; this.Go = 0 }, Cca: function() { this.Ar = !0; this.Bb = 0; var a = this.Bl; for (this.ig = 0; this.ig < this.ke; ++this.ig) a[this.ig].Wn = 0 }, Waa: function() { return this.ke >= this.Mb }, bE: function(a, d) { this.f.bE(a, d) }, vD: function() { this.f.vD() }, update: function(a) { if (this.Ar && this.Kp) { var d = 1 / this.Kp; this.ke < this.Mb && (this.Go += a); for (; this.ke < this.Mb && this.Go > d;) this.WB(), this.Go -= d; this.Bb += a; - 1 !== this.duration && this.duration < this.Bb && this.Kea() } this.ig = 0; d = b.Bh.jz[0]; this.zj === b.t.yu ? b.km(d, this.Yl(this.bI)) : this.zj === b.t.BF && (d.x = this.Ca.x, d.y = this.Ca.y); if (this.Ta) { for (var e = b.Bh.jz[1], f = b.Bh.jz[2], g = b.Bh.jz[3], h = this.Bl; this.ig < this.ke;) { b.pD(e); b.pD(f); b.pD(g); var k = h[this.ig]; k.Wn -= a; if (0 < k.Wn) { if (this.Wa === b.t.Ab) { var m = g, n = e, p = f; k.qb.x || k.qb.y ? (b.km(n, k.qb), b.Nba(n)) : b.pD(n); b.km(p, n); b.ft(n, k.qc.radialAccel); var s = p.x; p.x = -p.y; p.y = s; b.ft(p, k.qc.tangentialAccel); b.km(m, n); b.nD(m, p); b.nD(m, this.qc.gravity); b.ft(m, a); b.nD(k.qc.dir, m); b.km(m, k.qc.dir); b.ft(m, a); b.nD(k.qb, m) } else m = k.Ke, m.Yg += m.AU * a, m.kx += m.DU * a, k.qb.x = -Math.cos(m.Yg) * m.kx, k.qb.y = -Math.sin(m.Yg) * m.kx; this.f.wT(k, a); k.size += k.gK * a; k.size = Math.max(0, k.size); k.rotation += k.EU * a; m = e; this.zj === b.t.yu || this.zj === b.t.BF ? (n = f, b.km(n, d), b.IW(n, k.startPos), b.km(m, k.qb), b.IW(m, n)) : b.km(m, k.qb); this.qa && (m.x += this.Ca.x, m.y += this.Ca.y); this.f.GY(k, m); ++this.ig } else if (k = k.atlasIndex, this.ig !== this.ke - 1 && (m = h[this.ig], h[this.ig] = h[this.ke - 1], h[this.ke - 1] = m), this.qa && (this.qa.f8(this.atlasIndex + k), h[this.ke - 1].atlasIndex = k), --this.ke, 0 === this.ke && this.rw) { this.Hj(); this.Ga.removeChild(this, !0); return } } this.xp = !1 } this.qa || this.vD() }, nfa: function() { this.update(0) }, J6: function(a, d) { if (d) { var e = d[a]; return null != e ? e : "" } return "" }, bi: function() { if (this.qa) b.log("Can't change blending functions when the particle is being batched"); else { var a = this.O; if (a && a instanceof b.ja) { this.Cb = !1; var d = this.H; d.src === b.Td && d.$ === b.Sd && (a.Jk() ? this.Cb = !0 : (d.src = b.SRC_ALPHA, d.$ = b.ONE_MINUS_SRC_ALPHA)) } } }, q: function() { var a = new b.t; if (a.pc(this.Mb)) { a.qi(this.Yg); a.ri(this.ns); a.jh(this.Gs()); var d = this.Gk(); a.sg(d.src, d.$); a.Vf(this.xC()); a.rh(this.xV()); a.Tf(this.pC()); a.kh(this.fV()); a.Ai(this.yt); a.Bi(this.zt); a.vi(this.Mp); a.eda(this.ws); a.I(b.d(this.x, this.y)); a.yi(b.d(this.LK().x, this.LK().y)); a.Ida(this.zj); a.Vda(this.At || 0); a.Wda(this.Bt || 0); a.fda(this.xs || 0); a.gda(this.ys || 0); a.ui(this.Wa); this.Wa === b.t.Ab ? (d = this.jV(), a.lh(b.d(d.x, d.y)), a.Uf(this.wC()), a.qh(this.wV()), a.mh(this.qV()), a.nh(this.rV()), a.qm(this.AV()), a.rm(this.BV())) : this.Wa === b.t.Yf && (a.XX(this.yV()), a.YX(this.zV()), a.sX(this.gV()), a.tX(this.hV()), a.TX(this.tV()), a.UX(this.uV())); a.wi(this.Sf); a.xi(this.$s); a.ti(this.Kp); if (!this.qa && (a.Le(this.tf()), d = this.xa())) { var e = d.L(); a.YL(d, b.rect(0, 0, e.width, e.height)) } } return a }, bda: function(a) { if (a) { var d = a.g$(); 0 === d.x && 0 === d.y || b.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets"); a = a.xa(); this.O !== a && this.Oa(a) } }, YL: function(a, d) { this.O !== a && (this.O = a, this.bi()); this.Rw(d) }, Lqa: function() {} }); r = b.t.prototype; b.i(r, "opacityModifyRGB", r.tf, r.Le); b.i(r, "batchNode", r.yK, r.si); b.i(r, "drawMode", r.oC, r.zx); b.i(r, "shapeType", r.vC, r.TD); b.i(r, "active", r.Ln); b.i(r, "sourcePos", r.I$, r.Tda); b.i(r, "posVar", r.LK, r.yi); b.i(r, "gravity", r.jV, r.lh); b.i(r, "speed", r.wC, r.Uf); b.i(r, "speedVar", r.wV, r.qh); b.i(r, "tangentialAccel", r.AV, r.qm); b.i(r, "tangentialAccelVar", r.BV, r.rm); b.i(r, "radialAccel", r.qV, r.mh); b.i(r, "radialAccelVar", r.rV, r.nh); b.i(r, "rotationIsDir", r.x$, r.Oda); b.i(r, "startRadius", r.yV, r.XX); b.i(r, "startRadiusVar", r.zV, r.YX); b.i(r, "endRadius", r.gV, r.sX); b.i(r, "endRadiusVar", r.hV, r.tX); b.i(r, "rotatePerS", r.tV, r.TX); b.i(r, "rotatePerSVar", r.uV, r.UX); b.i(r, "startColor", r.xC, r.Vf); b.i(r, "startColorVar", r.xV, r.rh); b.i(r, "endColor", r.pC, r.Tf); b.i(r, "endColorVar", r.fV, r.kh); b.i(r, "totalParticles", r.Q$, r.WD); b.i(r, "texture", r.xa, r.Oa); b.t.create = function(a) { return new b.t(a) }; b.t.Oka = b.t.create; b.t.NE = function(a, d, e, f, g, h, k, m) { this.gravity = a ? a : b.d(0, 0); this.speed = d || 0; this.speedVar = e || 0; this.tangentialAccel = f || 0; this.tangentialAccelVar = g || 0; this.radialAccel = h || 0; this.radialAccelVar = k || 0; this.rotationIsDir = m || !1 }; b.t.OE = function(a, d, e, f, g, h) { this.startRadius = a || 0; this.startRadiusVar = d || 0; this.endRadius = e || 0; this.endRadiusVar = f || 0; this.DD = g || 0; this.ED = h || 0 }; b.t.I0 = 0; b.t.iO = 1; b.t.K0 = 0; b.t.VY = 1; b.t.Mj = -1; b.t.Eh = -1; b.t.J0 = -1; b.t.Ab = 0; b.t.Yf = 1; b.t.yu = 0; b.t.BF = 1; b.t.hia = 2; (function() { b.t.n = function(a) { b.e.n.call(this, a); this.cb = !0; this.ZP = b.t.iO; this.QS = b.t.VY; this.XH = b.rect(0, 0, 0, 0) }; var a = b.t.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.t.n; a.oC = function() { return this.ZP }; a.zx = function(a) { this.ZP = a }; a.vC = function() { return this.QS }; a.TD = function(a) { this.QS = a }; a.si = function(a) { this.qa !== a && (this.k.qa = a) }; a.bE = function() {}; a.GY = function(a, e) { b.km(a.zw, e) }; a.Eb = function(a, e, f) { a = a || b.A; var g = a.getContext(), h = this.k, k = this.XH; a.setTransform(this.jj, e, f); a.save(); g.globalCompositeOperation = h.Qaa() ? "lighter" : "source-over"; var m, n; f = this.k.ke; var p = this.k.Bl; if (h.drawMode !== b.t.I0 && h.O) { if (!h.O.R) { a.restore(); return } h = h.O.Sa; if (!h.width || !h.height) { a.restore(); return } m = h; for (e = 0; e < f; e++) if (m = p[e], n = m.color.a / 255, 0 !== n) { g.globalAlpha = n; g.save(); g.translate(0 | m.zw.x, -(0 | m.zw.y)); var s = 4 * Math.floor(m.size / 4); n = k.width; var t = k.height; g.scale(Math.max(1 / n * s, 1E-6), Math.max(1 / t * s, 1E-6)); m.rotation && g.rotate(b.Md(m.rotation)); m = m.mL ? this.Sm(h, m.color, this.XH) : h; g.drawImage(m, -(0 | n / 2), -(0 | t / 2)); g.restore() } } else for (t = b.jl, e = 0; e < f; e++) m = p[e], k = 0 | 0.5 * m.size, n = m.color.a / 255, 0 !== n && (g.globalAlpha = n, g.save(), g.translate(0 | m.zw.x, -(0 | m.zw.y)), h.shapeType === b.t.K0 ? (m.rotation && g.rotate(b.Md(m.rotation)), t.q8(a, k, m.color)) : t.j8(a, k, m.color), g.restore()); a.restore(); b.Of++ }; a.Sm = b.fa.DB ? function(a, e, f) { a.Uk || (a.Uk = document.createElement("canvas"), a.Uk.width = a.width, a.Uk.height = a.height); return b.B.n.Lo(a, e, f, a.Uk) } : function(a, e, f) { var g = b.Xa.zC(a); return g ? (g.Uk || (g.Uk = document.createElement("canvas"), g.Uk.width = a.width, g.Uk.height = a.height), b.B.n.Ko(a, g, e, f, g.Uk), g.Uk) : null }; a.Rw = function(a) { this.XH = a }; a.WD = function(a) { this.k.Mb = 200 > a ? a : 200 }; a.WB = function() { var a = this.k, e = a.Bl; a.ke < e.length ? a = e[a.ke] : (a = new b.Bh, e.push(a)); return a }; a.lp = function() {}; a.XF = function() { return !0 }; a.vD = function() {}; a.ES = function() { var a = this.k.H; a.src = b.Td; a.$ = b.Sd }; a.kR = function() {}; a.wT = function(a, e) { this.k.FG || (a.color.r += a.Zl.r * e, a.color.g += a.Zl.g * e, a.color.b += a.Zl.b * e, a.color.a += a.Zl.a * e, a.mL = !0) } })(); (function() { b.t.p = function(a) { b.e.p.call(this, a); this.cb = !0; this.Yc = [0, 0]; this.pd = []; this.gb = []; this.ce = null }; var a = b.t.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.t.p; a.oC = function() {}; a.zx = function() {}; a.vC = function() {}; a.TD = function() {}; a.si = function(a) { var e = this.k; if (e.qa !== a) { var f = e.qa; if (e.qa = a) for (var g = e.Bl, h = 0; h < e.Mb; h++) g[h].atlasIndex = h; a ? f || (e.qa.textureAtlas.g3(this.pd, e.atlasIndex), b.A.deleteBuffer(this.Yc[1])) : (this.XF(), this.fL(e.Mb), e.Oa(f.xa()), this.lp()) } }; a.fL = function(a) { for (var e = this.gb, f = 0; f < a; ++f) { var g = 6 * f, h = 4 * f; e[g + 0] = h + 0; e[g + 1] = h + 1; e[g + 2] = h + 2; e[g + 5] = h + 1; e[g + 4] = h + 2; e[g + 3] = h + 3 } }; a.Mpa = function(a, e) { return a === e }; a.GY = function(a, e) { this.bE(a, e) }; a.bE = function(a, e) { var f = null, g = this.k; g.qa ? (f = g.qa.textureAtlas.quads[g.atlasIndex + a.atlasIndex], g.qa.textureAtlas.dirty = !0) : f = this.pd[g.ig]; var h, k, m; g.Cb ? (g = 0 | a.color.r * a.color.a / 255, h = 0 | a.color.g * a.color.a / 255, k = 0 | a.color.b * a.color.a / 255) : (g = 0 | a.color.r, h = 0 | a.color.g, k = 0 | a.color.b); m = 0 | a.color.a; var n = f.bl.colors, p = f.br.colors, s = f.tl.colors, t = f.tr.colors; n.r = p.r = s.r = t.r = g; n.g = p.g = s.g = t.g = h; n.b = p.b = s.b = t.b = k; n.a = p.a = s.a = t.a = m; g = a.size / 2; a.rotation ? (h = -g, k = -g, m = e.x, n = e.y, s = -b.Md(a.rotation), p = Math.cos(s), s = Math.sin(s), f.bl.vertices.x = h * p - k * s + m, f.bl.vertices.y = h * s + k * p + n, f.br.vertices.x = g * p - k * s + m, f.br.vertices.y = g * s + k * p + n, f.tl.vertices.x = h * p - g * s + m, f.tl.vertices.y = h * s + g * p + n, f.tr.vertices.x = g * p - g * s + m, f.tr.vertices.y = g * s + g * p + n) : (f.bl.vertices.x = e.x - g, f.bl.vertices.y = e.y - g, f.br.vertices.x = e.x + g, f.br.vertices.y = e.y - g, f.tl.vertices.x = e.x - g, f.tl.vertices.y = e.y + g, f.tr.vertices.x = e.x + g, f.tr.vertices.y = e.y + g) }; a.Eb = function(a) { var e = this.k; e.O && (a = a || b.A, this.za.jc(), this.za.Ug(this.Mc), b.Rf(e.O), b.GV(e.H.src, e.H.$), b.hd(b.Cq), a.bindBuffer(a.ARRAY_BUFFER, this.Yc[0]), a.vertexAttribPointer(b.Ib, 3, a.FLOAT, !1, 24, 0), a.vertexAttribPointer(b.cf, 4, a.UNSIGNED_BYTE, !0, 24, 12), a.vertexAttribPointer(b.re, 2, a.FLOAT, !1, 24, 16), a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Yc[1]), a.drawElements(a.TRIANGLES, 6 * e.ig, a.UNSIGNED_SHORT, 0)) }; a.Rw = function(a) { var e = this.k, f = e.texture, g = b.Db(), h = b.rect(a.x * g, a.y * g, a.width * g, a.height * g), g = a.width, k = a.height; f && (g = f.pixelsWidth, k = f.pixelsHeight); b.Cy ? (f = (2 * h.x + 1) / (2 * g), a = (2 * h.y + 1) / (2 * k), g = f + (2 * h.width - 2) / (2 * g), h = a + (2 * h.height - 2) / (2 * k)) : (f = h.x / g, a = h.y / k, g = f + h.width / g, h = a + h.height / k); k = h; h = a; a = k; var m = 0, n = 0; e.qa ? (k = e.qa.textureAtlas.quads, m = e.atlasIndex, n = e.atlasIndex + e.Mb) : (k = this.pd, m = 0, n = e.Mb); for (e = m; e < n; e++) k[e] || (k[e] = b.XO()), m = k[e], m.bl.texCoords.u = f, m.bl.texCoords.v = a, m.br.texCoords.u = g, m.br.texCoords.v = a, m.tl.texCoords.u = f, m.tl.texCoords.v = h, m.tr.texCoords.u = g, m.tr.texCoords.v = h }; a.WD = function(a) { var e = this.k; if (a > e.Bz) { var f = b.Zb.BYTES_PER_ELEMENT; this.gb = new Uint16Array(6 * a); var g = new ArrayBuffer(a * f), h = e.Bl; h.length = 0; for (var k = this.pd, m = k.length = 0; m < a; m++) h[m] = new b.Bh, k[m] = new b.Zb(null, null, null, null, g, m * f); e.Bz = a; e.Mb = a; if (e.qa) for (f = 0; f < a; f++) h[f].atlasIndex = f; this.ce = g; this.fL(a); this.lp(); e.O && this.Rw(b.rect(0, 0, e.O.width, e.O.height)) } else e.Mb = a; e.Cca() }; a.WB = function() { var a = this.k; return a.Bl[a.ke] }; a.lp = function() { var a = b.A; this.Yc[0] = a.createBuffer(); a.bindBuffer(a.ARRAY_BUFFER, this.Yc[0]); a.bufferData(a.ARRAY_BUFFER, this.ce, a.DYNAMIC_DRAW); this.Yc[1] = a.createBuffer(); a.bindBuffer(a.ELEMENT_ARRAY_BUFFER, this.Yc[1]); a.bufferData(a.ELEMENT_ARRAY_BUFFER, this.gb, a.STATIC_DRAW) }; a.XF = function() { var a = this.k; if (a.qa) return b.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), !1; var e = b.Zb.BYTES_PER_ELEMENT, a = a.Mb, f = this.pd; f.length = 0; this.gb = new Uint16Array(6 * a); for (var g = new ArrayBuffer(e * a), h = 0; h < a; h++) f[h] = new b.Zb(null, null, null, null, g, h * e); if (!f || !this.gb) return b.log("cocos2d: Particle system: not enough memory"), !1; this.ce = g; return !0 }; a.vD = function() { var a = b.A; a.bindBuffer(a.ARRAY_BUFFER, this.Yc[0]); a.bufferData(a.ARRAY_BUFFER, this.ce, a.DYNAMIC_DRAW) }; a.ES = function() { var a = this.k.H; this.O && !this.O.Jk() ? (a.src = b.SRC_ALPHA, a.$ = b.ONE_MINUS_SRC_ALPHA) : (a.src = b.Td, a.$ = b.Sd) }; a.kR = function(a) { if (!this.XF()) return !1; this.fL(a); this.lp(); this.za = b.le.Dc(b.Sj) }; a.wT = function(a, e) { a.color.r += a.Zl.r * e; a.color.g += a.Zl.g * e; a.color.b += a.Zl.b * e; a.color.a += a.Zl.a * e; a.mL = !0 } })(); b.HN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 300 : 150) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.mh(0), this.nh(0), this.Uf(60), this.qh(20), this.qi(90), this.ri(10), a = b.P.Fa(), this.I(a.width / 2, 60), this.yi(b.d(40, 20)), this.wi(3), this.xi(0.25), this.Ai(54), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(194, 64, 31, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(0, 0, 0, 255)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!0), !0) : !1 } }); b.HN.create = function() { return new b.HN }; b.IN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 1500 : 150) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, -90)), this.mh(0), this.nh(0), this.Uf(180), this.qh(50), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.qi(90), this.ri(20), this.wi(3.5), this.xi(1), this.ti(this.Mb / this.Sf), this.Vf(b.color(128, 128, 128, 255)), this.rh(b.color(128, 128, 128, 255)), this.Tf(b.color(26, 26, 26, 51)), this.kh(b.color(26, 26, 26, 51)), this.Ai(8), this.Bi(2), this.vi(b.t.Eh), this.Ej(!1), !0) : !1 } }); b.IN.create = function() { return new b.IN }; b.QN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 350 : 150) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.Ej(!0), this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.mh(0), this.nh(0), this.Uf(20), this.qh(5), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(1), this.xi(0.5), this.Ai(30), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(194, 64, 31, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(0, 0, 0, 255)), this.kh(b.color(0, 0, 0, 0)), !0) : !1 } }); b.QN.create = function() { return new b.QN }; b.KN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 200 : 100) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.Uf(60), this.qh(10), this.mh(-80), this.nh(0), this.qm(80), this.rm(0), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(4), this.xi(1), this.Ai(37), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(31, 64, 194, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(0, 0, 0, 255)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!0), !0) : !1 } }); b.KN.create = function() { return new b.KN }; b.JN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 250 : 100) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.Uf(80), this.qh(10), this.mh(-60), this.nh(0), this.qm(15), this.rm(0), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(4), this.xi(1), this.Ai(30), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(128, 128, 128, 255)), this.rh(b.color(128, 128, 128, 128)), this.Tf(b.color(0, 0, 0, 255)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!0), !0) : !1 } }); b.JN.create = function() { return new b.JN }; b.LN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 150 : 100) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(-200, 200)), this.Uf(15), this.qh(5), this.mh(0), this.nh(0), this.qm(0), this.rm(0), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(2), this.xi(1), this.Ai(60), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(51, 102, 179)), this.rh(b.color(0, 0, 51, 26)), this.Tf(b.color(0, 0, 0, 255)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!0), !0) : !1 } }); b.LN.create = function() { return new b.LN }; b.PN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 500 : 100) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.Uf(150), this.qh(0), this.mh(-380), this.nh(0), this.qm(45), this.rm(0), this.qi(90), this.ri(0), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(12), this.xi(0), this.Ai(20), this.Bi(0), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(128, 128, 128, 255)), this.rh(b.color(128, 128, 128, 0)), this.Tf(b.color(128, 128, 128, 255)), this.kh(b.color(128, 128, 128, 0)), this.Ej(!1), !0) : !1 } }); b.PN.create = function() { return new b.PN }; b.GN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 700 : 300) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(0.1), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.Uf(70), this.qh(40), this.mh(0), this.nh(0), this.qm(0), this.rm(0), this.qi(90), this.ri(360), a = b.P.Fa(), this.I(a.width / 2, a.height / 2), this.yi(b.d(0, 0)), this.wi(5), this.xi(2), this.Ai(15), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Gs()), this.Vf(b.color(179, 26, 51, 255)), this.rh(b.color(128, 128, 128, 0)), this.Tf(b.color(128, 128, 128, 0)), this.kh(b.color(128, 128, 128, 0)), this.Ej(!1), !0) : !1 } }); b.GN.create = function() { return new b.GN }; b.NN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 200 : 100) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, 0)), this.mh(0), this.nh(0), this.Uf(25), this.qh(10), this.qi(90), this.ri(5), a = b.P.Fa(), this.I(a.width / 2, 0), this.yi(b.d(20, 0)), this.wi(4), this.xi(1), this.Ai(60), this.Bi(10), this.vi(b.t.Eh), this.ti(this.Mb / this.Sf), this.Vf(b.color(204, 204, 204, 255)), this.rh(b.color(5, 5, 5, 0)), this.Tf(b.color(0, 0, 0, 255)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!1), !0) : !1 } }); b.NN.create = function() { return new b.NN }; b.ON = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 700 : 250) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(0, -1)), this.Uf(5), this.qh(1), this.mh(0), this.nh(1), this.qm(0), this.rm(1), a = b.P.Fa(), this.I(a.width / 2, a.height + 10), this.yi(b.d(a.width / 2, 0)), this.qi(-90), this.ri(5), this.wi(45), this.xi(15), this.Ai(10), this.Bi(5), this.vi(b.t.Eh), this.ti(10), this.Vf(b.color(255, 255, 255, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(255, 255, 255, 0)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!1), !0) : !1 } }); b.ON.create = function() { return new b.ON }; b.MN = b.t.extend({ ctor: function() { b.t.prototype.ctor.call(this, b.W === b.ya ? 1E3 : 300) }, pc: function(a) { return b.t.prototype.pc.call(this, a) ? (this.jh(b.t.Mj), this.ui(b.t.Ab), this.lh(b.d(10, -10)), this.mh(0), this.nh(1), this.qm(0), this.rm(1), this.Uf(130), this.qh(30), this.qi(-90), this.ri(5), a = b.P.Fa(), this.I(a.width / 2, a.height), this.yi(b.d(a.width / 2, 0)), this.wi(4.5), this.xi(0), this.Ai(4), this.Bi(2), this.vi(b.t.Eh), this.ti(20), this.Vf(b.color(179, 204, 255, 255)), this.rh(b.color(0, 0, 0, 0)), this.Tf(b.color(179, 204, 255, 128)), this.kh(b.color(0, 0, 0, 0)), this.Ej(!1), !0) : !1 } }); b.MN.create = function() { return new b.MN }; b.Aha = 500; b.Hi = b.e.extend({ textureAtlas: null, H: null, Ma: "ParticleBatchNode", ctor: function(a, d) { b.e.prototype.ctor.call(this); this.H = { src: b.Td, $: b.Sd }; b.Je(a) ? this.T(a, d) : a instanceof b.ja && this.ea(a, d) }, Ic: function() { return b.W === b.Jb ? new b.Hi.n(this) : new b.Hi.p(this) }, ea: function(a, d) { this.textureAtlas = new b.Tj; this.textureAtlas.ea(a, d); this.m.length = 0; this.f.jR(); return !0 }, em: function(a, d) { var e = b.Xa.Vc(a); return this.ea(e, d) }, T: function(a, d) { var e = b.Xa.Vc(a); return this.ea(e, d) }, C: function(a, d, e) { if (!a) throw "cc.ParticleBatchNode.addChild() : child should be non-null"; if (!(a instanceof b.t)) throw "cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children"; d = null == d ? a.zIndex : d; e = null == e ? a.tag : e; if (a.xa() !== this.textureAtlas.texture) throw "cc.ParticleSystem.addChild() : the child is not using the same texture id"; var f = a.Gk(); if (0 === this.m.length) this.sg(f); else if (f.src !== this.H.src || f.$ !== this.H.$) { b.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function"); return } d = this.VF(a, d, e); e = 0; 0 !== d ? (d = this.m[d - 1], e = d.Es() + d.Mb) : e = 0; this.lL(a, e); a.si(this) }, lL: function(a, d) { var e = a.Mb, f = this.textureAtlas, g = f.totalQuads; a.NL(d); g + e > f.se && (this.u4(g + e), f.YU(f.se - e, e)); a.Es() + e !== g && f.uW(d, d + e); f.NV(e); this.oJ() }, removeChild: function(a, d) { if (null != a) { if (!(a instanceof b.t)) throw "cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children"; if (-1 === this.m.indexOf(a)) b.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it"); else { b.e.prototype.removeChild.call(this, a, d); var e = this.textureAtlas; e.vca(a.Es(), a.Mb); e.YU(e.totalQuads, a.Mb); a.si(null); this.oJ() } } }, lt: function(a, d) { if (!a) throw "cc.ParticleBatchNode.reorderChild(): child should be non-null"; if (!(a instanceof b.t)) throw "cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children"; if (-1 === this.m.indexOf(a)) b.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch"); else if (d !== a.zIndex) { if (1 < this.m.length) { var e = this.K3(a, d); if (e.yW !== e.vW) { this.m.splice(e.yW, 1); this.m.splice(e.vW, 0, a); e = a.Es(); this.oJ(); for (var f = 0, g = this.m, h = 0; h < g.length; h++) if (g[h] === a) { f = a.Es(); break } this.textureAtlas.uW(e, a.Mb, f); a.nfa() } } a.vB(d) } }, rca: function(a, d) { this.removeChild(this.m[V], d) }, pi: function(a) { for (var d = this.m, e = 0; e < d.length; e++) d[e].si(null); b.e.prototype.pi.call(this, a); this.textureAtlas.rx() }, f8: function(a) { a = this.textureAtlas.quads[a]; a.br.vertices.x = a.br.vertices.y = a.tr.vertices.x = a.tr.vertices.y = a.tl.vertices.x = a.tl.vertices.y = a.bl.vertices.x = a.bl.vertices.y = 0; this.textureAtlas.sn(!0) }, xa: function() { return this.textureAtlas.texture }, Oa: function(a) { this.textureAtlas.texture = a; var d = this.H; a && !a.Jk() && d.src === b.Td && d.$ === b.Sd && (d.src = b.SRC_ALPHA, d.$ = b.ONE_MINUS_SRC_ALPHA) }, sg: function(a, d) { void 0 === d ? (this.H.src = a.src, this.H.$ = a.$) : (this.H.src = a, this.H.src = d) }, Gk: function() { return new b.Gc(this.H.src, this.H.$) }, oJ: function() { for (var a = 0, d = this.m, e = 0; e < d.length; e++) { var f = d[e]; f.NL(a); a += f.Mb } }, u4: function(a) { b.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.se + "] to [" + a + "]."); this.textureAtlas.KL(a) || b.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas") }, O5: function(a) { for (var d = this.m, e = d.length, f = 0; f < e; f++) if (d[f].zIndex > a) return f; return e }, K3: function(a, d) { for (var e = !1, f = !1, g = 0, h = 0, k = 0, m = this.m, n = m.length, p = 0; p < n; p++) { var s = m[p]; if (s.zIndex > d && !f && (g = p, f = !0, e && f)) break; if (a === s && (h = p, e = !0, f || (k = -1), e && f)) break } f || (g = n); return { vW: g + k, yW: h } }, VF: function(a, d, e) { if (!a) throw "cc.ParticleBatchNode._addChildHelper(): child should be non-null"; if (a.parent) return b.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), null; this.m || (this.m = []); var f = this.O5(d); this.m.splice(f, 0, a); a.tag = e; a.vB(d); a.parent = this; this.Sg && (a.aa(), a.wj()); return f }, bi: function() { this.textureAtlas.texture.Jk() || (this.H.src = b.SRC_ALPHA, this.H.$ = b.ONE_MINUS_SRC_ALPHA) }, bm: function() { return this.textureAtlas }, vt: function(a) { this.textureAtlas = a } }); r = b.Hi.prototype; b.i(r, "texture", r.xa, r.Oa); b.Hi.create = function(a, d) { return new b.Hi(a, d) }; (function() { b.Hi.n = function(a) { b.e.n.call(this, a); this.cb = !1 }; var a = b.Hi.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.Hi.n; a.jR = function() {} })(); (function() { b.Hi.p = function(a) { b.e.p.call(this, a); this.cb = !0 }; var a = b.Hi.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.Hi.p; a.Eb = function() { var a = this.k; 0 !== a.textureAtlas.totalQuads && (this.za.jc(), this.za.Ug(this.Mc), b.GV(a.H.src, a.H.$), a.textureAtlas.MU()) }; a.jR = function() { this.za = b.le.Dc(b.Sj) }; a.Q = function(a) { if (this.k.Ta) { var e = b.Ob; e.stack.push(e.top); this.cd(a); e.top = this.Mc; b.oa.Ec(this); this.G = 0; b.Ys() } } })(); b.Oga = function(a, d, e) { this.Ak = a || b.rect(0, 0, 0, 0); this.end = d || b.rect(0, 0, 0, 0); this.duration = e || 0 }; b.Nga = b.sa.extend({ ctor: function() { b.Kk.PT(this) }, xD: function() { b.Kk.xD(this) }, o7: function() { return b.Kk.YT(this) }, GU: function() { return b.Kk.FU(this) }, TJ: function() { return !1 }, c8: function() {}, UJ: function() { return !1 }, d8: function() {}, dW: function() {}, CU: function() {}, zK: function() { return "" }, pba: function() {}, nba: function() {}, oba: function() {}, mba: function() {} }); b.HE = b.sa.extend({ Kc: null, lb: null, hl: "", Ro: null, ctor: function() { this.lb = new b.HE.n_; this.Ro = b.d(0, 0) }, T: function() { if (!b.fa.Mk) { this.Kc = b.Rb("#imeDispatcherInput"); this.Kc || (this.Kc = b.PY(), this.Kc.setAttribute("type", "text"), this.Kc.setAttribute("id", "imeDispatcherInput"), this.Kc.resize(0, 0), this.Kc.xY(0, 0), this.Kc.style.opacity = "0", this.Kc.style.fontSize = "1px", this.Kc.setAttribute("tabindex", 2), this.Kc.style.position = "absolute", this.Kc.style.top = 0, this.Kc.style.left = 0, document.body.appendChild(this.Kc)); var a = this; b.$a(this.Kc, "input", function() { a.hI(a.Kc.value) }, !1); b.$a(this.Kc, "keydown", function(d) { d.keyCode === b.ku.Mea ? (d.stopPropagation(), d.preventDefault()) : d.keyCode === b.ku.QU && (a.yw("\n", 1), d.stopPropagation(), d.preventDefault()) }, !1); /msie/i.test(navigator.userAgent) && b.$a(this.Kc, "keyup", function(d) { d.keyCode === b.ku.ZT && a.hI(a.Kc.value) }, !1); b.$a(window, "mousedown", function(d) { var e = d.pageY || 0; a.Ro.x = d.pageX || 0; a.Ro.y = e }, !1) } }, hI: function(a) { var d, e; d = this.hl.length < a.length ? this.hl.length : a.length; for (e = 0; e < d && a[e] === this.hl[e]; e++); var f = this.hl.length - e, g = a.length - e; for (d = 0; d < f; d++) this.HU(); for (d = 0; d < g; d++) this.yw(a[e + d], 1); this.hl = a }, yw: function(a, d) { !this.lb || !a || 0 >= d || this.lb.ef && this.lb.ef.dW(a, d) }, HU: function() { this.lb && this.lb.ef && this.lb.ef.CU() }, zK: function() { if (this.lb && this.lb.ef) { var a = this.lb.ef.zK(); return a ? a : "" } return "" }, dla: function() { if (this.lb) for (var a = 0; a < this.lb.Kh.length; a++); }, bla: function() { if (this.lb) for (var a = 0; a < this.lb.Kh.length; a++); }, cla: function() { if (this.lb) for (var a = 0; a < this.lb.Kh.length; a++); }, ala: function() { if (this.lb) for (var a = 0; a < this.lb.Kh.length; a++); }, PT: function(a) { a && this.lb && (-1 < this.lb.Kh.indexOf(a) || this.lb.Kh.splice(0, 0, a)) }, YT: function(a) { if (!this.lb || !a || -1 === this.lb.Kh.indexOf(a)) return !1; if (this.lb.ef) { if (!this.lb.ef.UJ() || !a.TJ()) return !1; this.lb.ef = null; this.LQ(a); return !0 } if (!a.TJ()) return !1; this.LQ(a); return !0 }, LQ: function(a) { b.fa.Mk ? (this.lb.ef = a, this.hl = a.string || "", a = prompt(a.O$ ? a.jJ : "please enter your word:", this.hl), null != a && this.hI(a), this.yw("\n", 1)) : (this.lb.ef = a, this.hl = a.string || "", this.Kc.focus(), this.Kc.value = this.hl, this.o3()) }, o3: function() { /msie/i.test(navigator.userAgent) ? (this.Kc.style.left = this.Ro.x + "px", this.Kc.style.top = this.Ro.y + "px") : this.Kc.xY(this.Ro.x, this.Ro.y) }, FU: function(a) { if (!this.lb || !a || this.lb.ef !== a || !a.UJ()) return !1; this.lb.ef = null; b.ab.focus(); return !0 }, xD: function(a) { this.lb && a && -1 !== this.lb.Kh.indexOf(a) && (this.lb.ef && a === this.lb.ef && (this.lb.ef = null), b.ge(this.lb.Kh, a)) }, csa: function(a) { 32 > a ? a === b.ku.ZT ? this.HU() : a === b.ku.QU && this.yw("\n", 1) : 255 > a && this.yw(String.fromCharCode(a), 1) } }); b.HE.n_ = b.sa.extend({ ef: null, Kh: null, ctor: function() { this.Kh = [] }, mma: function(a) { for (var d = 0; d < this.Kh.length; d++) if (this.Kh[d] === a) return d; return null } }); b.Kk = new b.HE; document.body ? b.Kk.T() : b.$a(window, "load", function() { b.Kk.T() }, !1); b.lia = b.sa.extend({ tra: function() { return !1 }, vra: function() { return !1 }, wra: function() { return !1 }, ura: function() { return !1 }, pra: function() { return !1 } }); b.EF = b.M.extend({ delegate: null, Bk: null, Do: null, nja: null, Lg: "", bp: "", Nz: 0, Ma: "TextFieldTTF", ctor: function(a, d, e, f, g) { this.Bk = b.color(127, 127, 127); this.Do = b.color(255, 255, 255, 255); b.Kk.PT(this); b.M.prototype.ctor.call(this); void 0 !== g ? (this.xaa("", d, e, f, g), a && this.Fx(a)) : void 0 === f && void 0 !== e && (this.je("", d, e), a && this.Fx(a)) }, Ew: function() { return this.delegate }, st: function(a) { this.delegate = a }, d9: function() { return this.Nz }, Oma: function() { return b.color(this.Bk) }, Cta: function(a) { this.Bk.r = a.r; this.Bk.g = a.g; this.Bk.b = a.b; this.Bk.a = b.sj(a.a) ? 255 : a.a; this.Lg.length || this.X(this.Bk) }, Yua: function(a) { this.Do.r = a.r; this.Do.g = a.g; this.Do.b = a.b; this.Do.a = b.sj(a.a) ? 255 : a.a; this.Lg.length && this.X(this.Do) }, xaa: function(a, d, e, f, g) { switch (arguments.length) { case 5: return a && this.Fx(a), this.je(this.bp, f, g, d, e); case 3: return a && this.Fx(a), this.je(this.bp, arguments[1], arguments[2]); default: throw "Argument must be non-nil "; } }, Wc: function(a) { this.Lg = (a = String(a)) || ""; this.Lg.length ? (b.M.prototype.Wc.call(this, this.Lg), this.X(this.Do)) : (b.M.prototype.Wc.call(this, this.bp), this.X(this.Bk)); b.W === b.Jb && this.f.uk(); this.Nz = this.Lg.length }, am: function() { return this.Lg }, Fx: function(a) { this.bp = a || ""; this.Lg.length || (b.M.prototype.Wc.call(this, this.bp), this.X(this.Bk)) }, o$: function() { return this.bp }, KU: function() {}, Q: function(a) { this._super(a) }, o7: function() { return b.Kk.YT(this) }, GU: function() { return b.Kk.FU(this) }, TJ: function() { return !0 }, c8: function() {}, UJ: function() { return !0 }, d8: function() {}, CU: function() { var a = this.Lg.length; 0 !== a && (1 >= a ? (this.Lg = "", this.Nz = 0, b.M.prototype.Wc.call(this, this.bp), this.X(this.Bk)) : this.string = this.Lg.substring(0, a - 1)) }, xD: function() { b.Kk.xD(this) }, jJ: "please enter your word:", gva: function(a) { null != a && (this.jJ = a) }, O$: function() { return this.jJ }, dW: function(a) { var d = a; a = d.indexOf("\n"); - 1 < a && (d = d.substring(0, a)); 0 < d.length && (d = this.Lg + d, this.Nz = d.length, this.string = d); - 1 !== a && this.GU() }, zK: function() { return this.Lg }, pba: function() {}, nba: function() {}, oba: function() {}, mba: function() {} }); r = b.EF.prototype; b.i(r, "charCount", r.d9); b.i(r, "placeHolder", r.o$, r.Fx); b.EF.create = function(a, d, e, f, g) { return new b.EF(a, d, e, f, g) }; b.nA = b.m_; b.kv = "Arial"; b.ZQ = !1; b.Xc = b.e.extend({ Fd: !1, Xb: null, Xd: null, ov: !1, Ma: "MenuItem", ctor: function(a, d) { var e = b.e.prototype; e.ctor.call(this); this.Xd = this.Xb = null; this.Fd = this.ov = !1; e.rb.call(this, 0.5, 0.5); this.Xb = d || null; if (this.Xd = a || null) this.Fd = !0 }, VC: function() { return this.ov }, Le: function() {}, tf: function() { return !1 }, Rk: function(a, d) { this.Xb = d; this.Xd = a }, isEnabled: function() { return this.Fd }, Gb: function(a) { this.Fd = a }, Sp: function(a, d) { this.anchorY = this.anchorX = 0.5; this.Xb = d; this.Xd = a; this.Fd = !0; this.ov = !1; return !0 }, rect: function() { var a = this.Ca, d = this.U, e = this.Ih; return b.rect(a.x - d.width * e.x, a.y - d.height * e.y, d.width, d.height) }, selected: function() { this.ov = !0 }, Ij: function() { this.ov = !1 }, xta: function(a, d) { this.Xb = d; this.Xd = a }, mw: function() { if (this.Fd) { var a = this.Xb, d = this.Xd; if (d) if (a && b.Je(d)) a[d](this); else a && b.Ie(d) ? d.call(a, this) : d(this) } } }); r = b.Xc.prototype; b.i(r, "enabled", r.isEnabled, r.Gb); b.Xc.create = function(a, d) { return new b.Xc(a, d) }; b.mo = b.Xc.extend({ fr: null, nd: null, Lr: 0, Su: null, ctor: function(a, d, e) { b.Xc.prototype.ctor.call(this, d, e); this.Su = this.nd = this.fr = null; a && (this.Lr = 1, this.Su = b.color.WHITE, this.fr = b.color(126, 126, 126), this.MD(a), this.cascadeOpacity = this.cascadeColor = !0) }, p9: function() { return this.fr }, ada: function(a) { this.fr = a }, K9: function() { return this.nd }, MD: function(a) { a && (this.C(a), a.anchorX = 0, a.anchorY = 0, this.width = a.width, this.height = a.height); this.nd && this.removeChild(this.nd, !0); this.nd = a }, Gb: function(a) { if (this.Fd !== a) { var d = this.nd; a ? d.color = this.Su : (this.Su = d.color, d.color = this.fr) } b.Xc.prototype.Gb.call(this, a) }, Hb: function(a) { this.nd.opacity = a }, bh: function() { return this.nd.opacity }, X: function(a) { this.nd.color = a }, rf: function() { return this.nd.color }, WV: function(a, d, e) { this.Sp(d, e); this.Lr = 1; this.Su = b.color.WHITE; this.fr = b.color(126, 126, 126); this.MD(a); return this.cascadeOpacity = this.cascadeColor = !0 }, Wc: function(a) { this.nd.string = a; this.width = this.nd.width; this.height = this.nd.height }, am: function() { return this.nd.string }, mw: function() { this.Fd && (this.gM(), this.scale = this.Lr, b.Xc.prototype.mw.call(this)) }, selected: function() { if (this.Fd) { b.Xc.prototype.selected.call(this); var a = this.lC(b.rz); a ? this.nY(a) : this.Lr = this.scale; a = b.rg(0.1, 1.2 * this.Lr); a.Ix(b.rz); this.Ba(a) } }, Ij: function() { if (this.Fd) { b.Xc.prototype.Ij.call(this); this.Hea(b.rz); var a = b.rg(0.1, this.Lr); a.Ix(b.rz); this.Ba(a) } } }); r = b.mo.prototype; b.i(r, "string", r.am, r.Wc); b.i(r, "disabledColor", r.p9, r.ada); b.i(r, "label", r.K9, r.MD); b.mo.create = function(a, d, e) { return new b.mo(a, d, e) }; b.oN = b.mo.extend({ ctor: function(a, d, e, f, g, h, k) { var m; a && 0 < a.length && (m = new b.oe(a, d, e, f, g)); b.mo.prototype.ctor.call(this, m, h, k) }, je: function(a, d, e, f, g, h, k) { if (!a || 0 === a.length) throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0"; var m = new b.oe; m.je(a, d, e, f, g); this.WV(m, h, k); return !0 } }); b.oN.create = function(a, d, e, f, g, h, k) { return new b.oN(a, d, e, f, g, h, k) }; b.lo = b.mo.extend({ fc: null, ec: null, ctor: function(a, d, e) { var f; a && 0 < a.length ? (this.ec = b.kv, this.fc = b.nA, f = new b.M(a, this.ec, this.fc)) : (this.fc = 0, this.ec = ""); b.mo.prototype.ctor.call(this, f, d, e) }, je: function(a, d, e) { if (!a || 0 === a.length) throw "Value should be non-null and its length should be greater than 0"; this.ec = b.kv; this.fc = b.nA; a = new b.M(a, this.ec, this.fc); this.WV(a, d, e); return !0 }, Bx: function(a) { this.fc = a; this.nS() }, DK: function() { return this.fc }, KD: function(a) { this.ec = a; this.nS() }, CK: function() { return this.ec }, nS: function() { var a = new b.M(this.nd.string, this.ec, this.fc); this.MD(a) } }); b.lo.Bx = function(a) { b.nA = a }; b.lo.fontSize = function() { return b.nA }; b.lo.KD = function(a) { b.ZQ && (b.kv = ""); b.kv = a; b.ZQ = !0 }; r = b.lo.prototype; b.i(r, "fontSize", r.DK, r.Bx); b.i(r, "fontName", r.CK, r.KD); b.lo.fontName = function() { return b.kv }; b.lo.create = function(a, d, e) { return new b.lo(a, d, e) }; b.no = b.Xc.extend({ ae: null, If: null, Cf: null, ctor: function(a, d, e, f, g) { b.Xc.prototype.ctor.call(this); this.Cf = this.If = this.ae = null; if (void 0 !== d) { var h, k, m; void 0 !== g ? (h = e, m = f, k = g) : void 0 !== f && b.Ie(f) ? (h = e, m = f) : void 0 !== f && b.Ie(e) ? (k = f, m = e, h = null) : void 0 === e && (h = null); this.YV(a, d, h, m, k) } }, c$: function() { return this.ae }, TL: function(a) { this.ae !== a && (a && (this.C(a, 0, b.G_), a.anchorX = 0, a.anchorY = 0), this.ae && this.removeChild(this.ae, !0), this.ae = a, this.width = this.ae.width, this.height = this.ae.height, this.OB(), a.Et && !a.R && a.addEventListener("load", function(a) { this.width = a.width; this.height = a.height }, this)) }, C$: function() { return this.If }, VL: function(a) { this.If !== a && (a && (this.C(a, 0, b.t0), a.anchorX = 0, a.anchorY = 0), this.If && this.removeChild(this.If, !0), this.If = a, this.OB()) }, q9: function() { return this.Cf }, RL: function(a) { this.Cf !== a && (a && (this.C(a, 0, b.EZ), a.anchorX = 0, a.anchorY = 0), this.Cf && this.removeChild(this.Cf, !0), this.Cf = a, this.OB()) }, YV: function(a, d, e, f, g) { this.Sp(f, g); this.TL(a); this.VL(d); this.RL(e); if (a = this.ae) this.width = a.width, this.height = a.height, a.Et && !a.R && a.addEventListener("load", function(a) { this.width = a.width; this.height = a.height; this.cascadeOpacity = this.cascadeColor = !0 }, this); return this.cascadeOpacity = this.cascadeColor = !0 }, X: function(a) { this.ae.color = a; this.If && (this.If.color = a); this.Cf && (this.Cf.color = a) }, rf: function() { return this.ae.color }, Hb: function(a) { this.ae.opacity = a; this.If && (this.If.opacity = a); this.Cf && (this.Cf.opacity = a) }, bh: function() { return this.ae.opacity }, selected: function() { b.Xc.prototype.selected.call(this); this.ae && (this.Cf && (this.Cf.visible = !1), this.If ? (this.ae.visible = !1, this.If.visible = !0) : this.ae.visible = !0) }, Ij: function() { b.Xc.prototype.Ij.call(this); this.ae && (this.ae.visible = !0, this.If && (this.If.visible = !1), this.Cf && (this.Cf.visible = !1)) }, Gb: function(a) { this.Fd !== a && (b.Xc.prototype.Gb.call(this, a), this.OB()) }, OB: function() { var a = this.ae, d = this.If, e = this.Cf; this.Fd ? (a && (a.visible = !0), d && (d.visible = !1), e && (e.visible = !1)) : e ? (a && (a.visible = !1), d && (d.visible = !1), e && (e.visible = !0)) : (a && (a.visible = !0), d && (d.visible = !1)) } }); r = b.no.prototype; b.i(r, "normalImage", r.c$, r.TL); b.i(r, "selectedImage", r.C$, r.VL); b.i(r, "disabledImage", r.q9, r.RL); b.no.create = function(a, d, e, f, g) { return new b.no(a, d, e, f, g || void 0) }; b.pN = b.no.extend({ ctor: function(a, d, e, f, g) { var h = null, k = null, m = null, n = null, p = null; void 0 === a ? b.no.prototype.ctor.call(this) : (h = new b.B(a), d && (k = new b.B(d)), void 0 === f ? n = e : void 0 === g ? (n = e, p = f) : g && (m = new b.B(e), n = f, p = g), b.no.prototype.ctor.call(this, h, k, m, n, p)) }, pua: function(a) { this.TL(new b.B(a)) }, Nua: function(a) { this.VL(new b.B(a)) }, Mta: function(a) { this.RL(new b.B(a)) }, Apa: function(a, d, e, f, g) { var h = null, k = null, m = null; a && (h = new b.B(a)); d && (k = new b.B(d)); e && (m = new b.B(e)); return this.YV(h, k, m, f, g) } }); b.pN.create = function(a, d, e, f, g) { return new b.pN(a, d, e, f, g) }; b.ME = b.Xc.extend({ Qd: null, Uh: 0, we: null, te: null, ctor: function() { b.Xc.prototype.ctor.call(this); this.Uh = 0; this.Qd = []; this.we = 0; this.te = b.color.WHITE; 0 < arguments.length && this.Tw(Array.prototype.slice.apply(arguments)) }, bh: function() { return this.we }, Hb: function(a) { this.we = a; if (this.Qd && 0 < this.Qd.length) for (var d = 0; d < this.Qd.length; d++) this.Qd[d].opacity = a; this.te.a = a }, rf: function() { var a = this.te; return b.color(a.r, a.g, a.b, a.a) }, X: function(a) { var d = this.te; d.r = a.r; d.g = a.g; d.b = a.b; if (this.Qd && 0 < this.Qd.length) for (d = 0; d < this.Qd.length; d++) this.Qd[d].X(a); void 0 === a.a || a.MT || this.Hb(a.a) }, D$: function() { return this.Uh }, SD: function(a) { if (a !== this.Uh) { this.Uh = a; (a = this.gi(b.RM)) && a.Rn(!1); a = this.Qd[this.Uh]; this.C(a, 0, b.RM); var d = a.width, e = a.height; this.width = d; this.height = e; a.I(d / 2, e / 2) } }, Goa: function() { return this.Qd }, Tua: function(a) { this.Qd = a }, Tw: function(a) { var d = a.length; b.Ie(a[a.length - 2]) ? (this.Sp(a[a.length - 2], a[a.length - 1]), d -= 2) : b.Ie(a[a.length - 1]) ? (this.Sp(a[a.length - 1], null), d -= 1) : this.Sp(null, null); for (var e = this.Qd, f = e.length = 0; f < d; f++) a[f] && e.push(a[f]); this.Uh = b.TO; this.SD(0); return this.cascadeOpacity = this.cascadeColor = !0 }, aka: function(a) { this.Qd.push(a) }, mw: function() { this.Fd && this.SD((this.Uh + 1) % this.Qd.length); b.Xc.prototype.mw.call(this) }, selected: function() { b.Xc.prototype.selected.call(this); this.Qd[this.Uh].selected() }, Ij: function() { b.Xc.prototype.Ij.call(this); this.Qd[this.Uh].Ij() }, Gb: function(a) { if (this.Fd !== a) { b.Xc.prototype.Gb.call(this, a); var d = this.Qd; if (d && 0 < d.length) for (var e = 0; e < d.length; e++) d[e].enabled = a } }, jta: function() { return this.Qd[this.Uh] }, voa: function() { return this.Qd[this.Uh] }, aa: function() { b.e.prototype.aa.call(this); this.SD(this.Uh) } }); r = b.ME.prototype; b.i(r, "selectedIndex", r.D$, r.SD); b.ME.create = function() { 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); var a = new b.ME; a.Tw(Array.prototype.slice.apply(arguments)); return a }; b.mu = 0; b.lu = 1; b.iha = -128; b.gy = 5; b.zm = b.Ua.extend({ enabled: !1, lc: null, mc: -1, hj: null, Ma: "Menu", ctor: function(a) { b.Ua.prototype.ctor.call(this); this.te = b.color.WHITE; this.enabled = !1; this.we = 255; this.lc = null; this.mc = -1; this.hj = b.ia.create({ event: b.ia.to, tm: !0, Qb: this.Z4, xd: this.d5, Oc: this.b5, uf: this.a5 }); 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); var d = arguments.length, e; if (0 === d) e = []; else if (1 === d) e = a instanceof Array ? a : [a]; else if (1 < d) { e = []; for (var f = 0; f < d; f++) arguments[f] && e.push(arguments[f]) } this.RV(e) }, aa: function() { var a = this.hj; a.Hf || b.ua.addListener(a, this); b.e.prototype.aa.call(this) }, isEnabled: function() { return this.enabled }, Gb: function(a) { this.enabled = a }, Tw: function(a) { var d = []; if (a) for (var e = 0; e < a.length; e++) a[e] && d.push(a[e]); return this.RV(d) }, RV: function(a) { if (b.Ua.prototype.T.call(this)) { this.enabled = !0; var d = b.ld; this.I(d.width / 2, d.height / 2); this.Na(d); this.rb(0.5, 0.5); this.pj(!0); if (a) for (d = 0; d < a.length; d++) this.C(a[d], d); this.lc = null; this.mc = b.mu; return this.cascadeOpacity = this.cascadeColor = !0 } return !1 }, C: function(a, d, e) { if (!(a instanceof b.Xc)) throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children"; b.Ua.prototype.C.call(this, a, d, e) }, a7: function() { this.KJ(b.gy) }, KJ: function(a) { var d = -a, e = this.m, f, g, h, k; if (e && 0 < e.length) { g = 0; for (f = e.length; g < f; g++) d += e[g].height * e[g].scaleY + a; var m = d / 2; g = 0; for (f = e.length; g < f; g++) k = e[g], h = k.height, d = k.scaleY, k.I(0, m - h * d / 2), m -= h * d + a } }, X6: function() { this.YB(b.gy) }, YB: function(a) { var d = -a, e = this.m, f, g, h, k; if (e && 0 < e.length) { f = 0; for (g = e.length; f < g; f++) d += e[f].width * e[f].scaleX + a; var m = -d / 2; f = 0; for (g = e.length; f < g; f++) k = e[f], d = k.scaleX, h = e[f].width, k.I(m + h * d / 2, 0), m += h * d + a } }, Y6: function() { 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); for (var a = [], d = 0; d < arguments.length; d++) a.push(arguments[d]); var e = -5, f = 0, g = 0, h = 0, k, m, n, p = this.m; if (p && 0 < p.length) for (d = 0, n = p.length; d < n; d++) f >= a.length || !(k = a[f]) || (m = p[d].height, g = g >= m || isNaN(m) ? g : m, ++h, h >= k && (e += g + 5, g = h = 0, ++f)); var s = b.P.Fa(), t = k = g = f = 0, v = 0, e = e / 2; if (p && 0 < p.length) for (d = 0, n = p.length; d < n; d++) { var w = p[d]; 0 === k && (k = a[f], v = t = s.width / (1 + k)); m = w.ml(); g = g >= m || isNaN(m) ? g : m; w.I(v - s.width / 2, e - m / 2); v += t; ++h; h >= k && (e -= g + 5, g = k = h = 0, ++f) } }, Z6: function() { 0 < arguments.length && null == arguments[arguments.length - 1] && b.log("parameters should not be ending with null in Javascript"); var a = [], d; for (d = 0; d < arguments.length; d++) a.push(arguments[d]); var e = [], f = [], g = -10, h = -5, k = 0, m = 0, n = 0, p, s, t, v, w = this.m; if (w && 0 < w.length) for (d = 0, t = w.length; d < t; d++)(s = w[d], k >= a.length || !(p = a[k])) || (v = s.width, m = m >= v || isNaN(v) ? m : v, h += s.height + 5, ++n, n >= p && (e.push(m), f.push(h), g += m + 10, m = n = 0, h = -5, ++k)); h = b.P.Fa(); p = m = k = 0; var g = -g / 2, x = 0; if (w && 0 < w.length) for (d = 0, t = w.length; d < t; d++) s = w[d], 0 === p && (p = a[k], x = f[k]), v = s.Nh(), m = m >= v || isNaN(v) ? m : v, s.I(g + e[k] / 2, x - h.height / 2), x -= s.height + 10, ++n, n >= p && (g += m + 5, m = p = n = 0, ++k) }, removeChild: function(a, d) { null != a && (a instanceof b.Xc ? (this.lc === a && (this.lc = null), b.e.prototype.removeChild.call(this, a, d)) : b.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children")) }, Z4: function(a, d) { var e = d.Ed; if (e.mc !== b.mu || !e.Ta || !e.enabled) return !1; for (var f = e.parent; null != f; f = f.parent) if (!f.Ta) return !1; e.lc = e.xR(a); return e.lc ? (e.mc = b.lu, e.lc.selected(), e.lc.Pk(), !0) : !1 }, b5: function(a, d) { var e = d.Ed; e.mc !== b.lu ? b.log("cc.Menu.onTouchEnded(): invalid state") : (e.lc && (e.lc.Ij(), e.lc.Pk(), e.lc.mw()), e.mc = b.mu) }, a5: function(a, d) { var e = d.Ed; e.mc !== b.lu ? b.log("cc.Menu.onTouchCancelled(): invalid state") : (this.lc && (e.lc.Ij(), e.lc.Pk()), e.mc = b.mu) }, d5: function(a, d) { var e = d.Ed; if (e.mc !== b.lu) b.log("cc.Menu.onTouchMoved(): invalid state"); else { var f = e.xR(a); f !== e.lc && (e.lc && (e.lc.Ij(), e.lc.Pk()), e.lc = f, e.lc && (e.lc.selected(), e.lc.Pk())) } }, Pb: function() { this.mc === b.lu && (this.lc && (this.lc.Ij(), this.lc = null), this.mc = b.mu); b.e.prototype.Pb.call(this) }, Le: function() {}, tf: function() { return !1 }, xR: function(a) { a = a.hi(); var d = this.m, e; if (d && 0 < d.length) for (var f = d.length - 1; 0 <= f; f--) if (e = d[f], e.Ta && e.isEnabled()) { var g = e.Ck(a), h = e.rect(); h.x = 0; h.y = 0; if (b.mx(h, g)) return e } return null } }); r = b.zm.prototype; b.zm.create = function(a) { var d = arguments.length; 0 < d && null == arguments[d - 1] && b.log("parameters should not be ending with null in Javascript"); return 0 === d ? new b.zm : 1 === d ? new b.zm(a) : new b.zm(Array.prototype.slice.call(arguments, 0)) }; b.Zha = 0; b.Vha = 1; b.Yha = 2; b.Wha = 3; b.Xha = 4; b.Uha = 5; b.iwa = function(a, d, e) { var f = 2; if (f + 1 > d) return !1; a = new b.$Y(a); a.Gj(f); e.type = a.Y(); f += 10; if (f + 4 + 1 > d) return !1; a.Gj(f); e.width = a.kca(); e.height = a.jca(); e.pixelDepth = a.Y(); if (f + 5 + 1 > d) return !1; d = a.Y(); e.aV = 0; d & 32 && (e.aV = 1); return !0 }; b.jwa = function(a, d, e) { var f, g; f = 0 | e.pixelDepth / 2; g = e.height * e.width * f; if (18 + g > d) return !1; e.pg = b.xz(a, 18, 18 + g); if (3 <= f) for (a = 0; a < g; a += f) d = e.pg[a], e.pg[a] = e.pg[a + 2], e.pg[a + 2] = d; return !0 }; b.lwa = function(a) { var d, e; if (8 !== a.pixelDepth) { var f = a.pixelDepth / 8, g = new Uint8Array(a.height * a.width); if (null !== g) { for (e = d = 0; e < a.width * a.height; d += f, e++) g[e] = 0.3 * a.pg[d] + 0.59 * a.pg[d + 1] + 0.11 * a.pg[d + 2]; a.pixelDepth = 8; a.type = 3; a.pg = g } } }; b.gwa = function(a) { a && (a.pg = null) }; b.kwa = function(a, d, e) { var f, g, h, k = 0, m = 0, n = 0, p = [], s = 0, t = 18; f = e.pixelDepth / 8; g = e.height * e.width; for (h = 0; h < g; h++) { if (0 !== s) s--, m = 0 !== n; else { if (t + 1 > d) break; s = a[t]; t += 1; (n = s & 128) && (s -= 128); m = 0 } if (!m) { if (t + f > d) break; p = b.xz(a, t, t + f); t += f; 3 <= f && (m = p[0], p[0] = p[2], p[2] = m) } for (m = 0; m < f; m++) e.pg[k + m] = p[m]; k += f } return !0 }; b.hwa = function(a) { for (var d = a.pixelDepth / 8 * a.width, e = 0; e < a.height / 2; e++) { var f = b.xz(a.pg, e * d, e * d + d); b.fP(b.xz(a.pg, (a.height - (e + 1)) * d, d), a.pg, e * d); b.fP(f, a.pg, (a.height - (e + 1)) * d) } a.aV = 0 }; b.xz = function(a, d, e) { return a instanceof Array ? a.slice(d, e) : a.subarray(d, e) }; b.fP = function(a, d, e) { for (var f = 0; f < a.length; f++) d[e + f] = a[f] }; b.$Y = b.sa.extend({ Oq: null, Ja: 0, ctor: function(a) { this.Oq = a }, uta: function(a) { this.Oq = a; this.Ja = 0 }, Cma: function() { return this.Oq }, Z2: function(a) { if (!(this.Ja + Math.ceil(a / 8) < this.er.length)) throw Error("Index out of bound"); }, j3: function(a, d) { var e = a + d + 1, f = e >> 3; this.Z2(e); var e = Math.pow(2, d - 1) - 1, g = this.kI(a + d, 1, f), h = this.kI(a, d, f), k = 0, m = 2, n = 0; do for (var p = this.gB(++n, f), s = a % 8 || 8, t = 1 << s; t >>= 1;) p & t && (k += 1 / m), m *= 2; while (a -= s); this.Ja += f; return h === (e << 1) + 1 ? k ? NaN : g ? -Infinity : Infinity : (1 + -2 * g) * (h || k ? h ? Math.pow(2, h - e) * (1 + k) : Math.pow(2, -e + 1) * k : 0) }, gB: function(a, d) { return this.er[this.Ja + d - a - 1] }, Vz: function(a, d) { var e = this.kI(0, a, a / 8), f = Math.pow(2, a); this.Ja += a / 8; return d && e >= f / 2 ? e - f : e }, m6: function(a, d) { for (++d; --d; a = 1073741824 === ((a %= 2147483648) & 1073741824) ? 2 * a : 2 * (a - 1073741824) + 2147483648); return a }, kI: function(a, d, e) { var f = (a + d) % 8, g = a % 8, h = e - (a >> 3) - 1; a = e + (-(a + d) >> 3); var k = h - a; d = this.gB(h, e) >> g & (1 << (k ? 8 - g : d)) - 1; for (k && f && (d += (this.gB(a++, e) & (1 << f) - 1) << (k-- << 3) - g); k;) d += this.m6(this.gB(a++, e), (k-- << 3) - g); return d }, lsa: function() { return this.Vz(32, !0) }, jca: function() { return this.Vz(32, !1) }, nsa: function() { return this.j3(23, 8) }, msa: function() { return this.Vz(16, !0) }, kca: function() { return this.Vz(16, !1) }, Y: function() { var a = this.er[this.Ja]; this.Ja += 1; return a }, isa: function(a, d) { return this.Oq instanceof Array ? this.Oq.slice(a, d) : this.Oq.subarray(a, d) }, Gj: function(a) { this.Ja = a }, Js: function() { return this.Ja } }); b.fz = 0; b.Aq = 1; b.ez = 2; b.sF = b.e.extend({ cc: null, vL: null, dt: null, Hd: null, bc: null, Rl: null, Ma: "TMXTiledMap", ctor: function(a, d) { b.e.prototype.ctor.call(this); this.Hd = b.size(0, 0); this.bc = b.size(0, 0); void 0 !== d ? this.kL(a, d) : void 0 !== a && this.iL(a) }, GK: function() { return b.size(this.Hd.width, this.Hd.height) }, BX: function(a) { this.Hd.width = a.width; this.Hd.height = a.height }, eH: function() { return this.Hd.width }, HI: function(a) { this.Hd.width = a }, dH: function() { return this.Hd.height }, GI: function(a) { this.Hd.height = a }, Ns: function() { return b.size(this.bc.width, this.bc.height) }, $X: function(a) { this.bc.width = a.width; this.bc.height = a.height }, jv: function() { return this.bc.width }, Qv: function(a) { this.bc.width = a }, iv: function() { return this.bc.height }, Pv: function(a) { this.bc.height = a }, Ina: function() { return this.vL }, kua: function(a) { this.vL = a }, lV: function() { return this.dt }, EX: function(a) { this.dt = a }, tC: function() { return this.cc }, PD: function(a) { this.cc = a }, iL: function(a) { if (!a || 0 === a.length) throw "cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string."; this.height = this.width = 0; a = new b.vu(a); if (!a) return !1; var d = a.rp; d && 0 !== d.length || b.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename."); this.rP(a); return !0 }, kL: function(a, d) { this.height = this.width = 0; var e = new b.vu(a, d), f = e.rp; f && 0 !== f.length || b.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename."); this.rP(e); return !0 }, rP: function(a) { this.Hd = a.GK(); this.bc = a.Ns(); this.vL = a.orientation; this.dt = a.lV(); this.cc = a.cc; this.Rl = a.Rl; var d = 0, e = a.hf; if (e) for (var f = null, g = 0, h = e.length; g < h; g++)(f = e[g]) && f.visible && (f = this.j5(f, a), this.C(f, d, d), this.width = Math.max(this.width, f.width), this.height = Math.max(this.height, f.height), d++) }, fka: function() { for (var a = [], d = this.m, e = 0, f = d.length; e < f; e++) { var g = d[e]; g && g instanceof b.yg && a.push(g) } return a }, yna: function(a) { if (!a || 0 === a.length) throw "cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string."; for (var d = this.m, e = 0; e < d.length; e++) { var f = d[e]; if (f && f.bD === a) return f } return null }, Tna: function(a) { if (!a || 0 === a.length) throw "cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string."; if (this.dt) for (var d = 0; d < this.dt.length; d++) { var e = this.dt[d]; if (e && e.Ow === a) return e } return null }, MK: function(a) { return this.cc[a.toString()] }, esa: function(a) { b.log("propertiesForGID is deprecated. Please use getPropertiesForGID instead."); return this.u$[a] }, u$: function(a) { return this.Rl[a] }, j5: function(a, d) { var e = this.z6(a, d), e = new b.yg(e, a, d); a.zW = !1; e.oea(); return e }, z6: function(a, d) { var e = a.Da, f = d.rp; if (f) for (var g = f.length - 1; 0 <= g; g--) { var h = f[g]; if (h) for (var k = 0; k < e.height; k++) for (var m = 0; m < e.width; m++) { var n = a.Jf[m + e.width * k]; if (0 !== n && (n & b.tF) >>> 0 >= h.Np) return h } } b.log("cocos2d: Warning: TMX Layer " + a.name + " has no tiles"); return null } }); r = b.sF.prototype; b.i(r, "mapWidth", r.eH, r.HI); b.i(r, "mapHeight", r.dH, r.GI); b.i(r, "tileWidth", r.jv, r.Qv); b.i(r, "tileHeight", r.iv, r.Pv); b.sF.create = function(a, d) { return new b.sF(a, d) }; b.v1 = 0; b.bia = 1; b.aia = 2; b.dia = 3; b.cia = 4; b.eia = 5; b.wu = 2147483648; b.xu = 1073741824; b.kO = 536870912; b.lO = (b.wu | b.xu | b.kO) >>> 0; b.tF = ~b.lO >>> 0; b.so = b.sa.extend({ cc: null, name: "", Da: null, Jf: null, visible: null, we: null, zW: !0, Uo: 1E5, To: 0, offset: null, ctor: function() { this.cc = []; this.name = ""; this.Da = null; this.Jf = []; this.visible = !0; this.we = 0; this.zW = !0; this.Uo = 1E5; this.To = 0; this.offset = b.d(0, 0) }, tC: function() { return this.cc }, PD: function(a) { this.cc = a } }); b.u1 = b.sa.extend({ name: "", Np: 0, bc: null, Mx: 0, margin: 0, gY: "", JC: null, ctor: function() { this.bc = b.size(0, 0); this.JC = b.size(0, 0) }, nx: function(a) { var d = b.rect(0, 0, 0, 0); d.width = this.bc.width; d.height = this.bc.height; a &= b.tF; a -= parseInt(this.Np, 10); var e = parseInt((this.JC.width - 2 * this.margin + this.Mx) / (this.bc.width + this.Mx), 10); d.x = parseInt(a % e * (this.bc.width + this.Mx) + this.margin, 10); d.y = parseInt(parseInt(a / e, 10) * (this.bc.height + this.Mx) + this.margin, 10); return d } }); b.vu = b.Uy.extend({ cc: null, orientation: null, parentElement: null, qD: null, aD: 0, hM: !1, Ht: null, fK: null, SA: null, Hd: null, bc: null, hf: null, rp: null, Rl: null, lB: "", IP: 0, ctor: function(a, d) { b.Uy.prototype.ctor.apply(this); this.Hd = b.size(0, 0); this.bc = b.size(0, 0); this.hf = []; this.rp = []; this.SA = []; this.cc = []; this.Rl = {}; this.IP = 0; void 0 !== d ? this.kL(a, d) : void 0 !== a && this.iL(a) }, Xna: function() { return this.orientation }, wua: function(a) { this.orientation = a }, GK: function() { return b.size(this.Hd.width, this.Hd.height) }, BX: function(a) { this.Hd.width = a.width; this.Hd.height = a.height }, eH: function() { return this.Hd.width }, HI: function(a) { this.Hd.width = a }, dH: function() { return this.Hd.height }, GI: function(a) { this.Hd.height = a }, Ns: function() { return b.size(this.bc.width, this.bc.height) }, $X: function(a) { this.bc.width = a.width; this.bc.height = a.height }, jv: function() { return this.bc.width }, Qv: function(a) { this.bc.width = a }, iv: function() { return this.bc.height }, Pv: function(a) { this.bc.height = a }, Dna: function() { return this.hf }, oda: function(a) { this.hf.push(a) }, Qoa: function() { return this.rp }, Zda: function(a) { this.rp.push(a) }, lV: function() { return this.SA }, EX: function(a) { this.SA.push(a) }, aoa: function() { return this.parentElement }, Bua: function(a) { this.parentElement = a }, boa: function() { return this.qD }, Cua: function(a) { this.qD = a }, zna: function() { return this.aD }, cua: function(a) { this.aD = a }, Doa: function() { return this.hM }, Rua: function(a) { this.hM = a }, tC: function() { return this.cc }, PD: function(a) { this.cc = a }, iL: function(a) { this.mR(a, null); return this.CL(a) }, kL: function(a, d) { this.mR(null, d); return this.Rba(a) }, CL: function(a, d) { var e = (d = d || !1) ? a : b.Z.sf(a); if (!e) throw "Please load the resource first : " + a; var f, g, e = this.SH(e).documentElement; f = e.getAttribute("version"); g = e.getAttribute("orientation"); if ("map" === e.nodeName && ("1.0" !== f && null !== f && b.log("cocos2d: TMXFormat: Unsupported TMX version:" + f), "orthogonal" === g ? this.orientation = b.fz : "isometric" === g ? this.orientation = b.ez : "hexagonal" === g ? this.orientation = b.Aq : null !== g && b.log("cocos2d: TMXFomat: Unsupported orientation:" + g), f = b.size(0, 0), f.width = parseFloat(e.getAttribute("width")), f.height = parseFloat(e.getAttribute("height")), this.BX(f), f = b.size(0, 0), f.width = parseFloat(e.getAttribute("tilewidth")), f.height = parseFloat(e.getAttribute("tileheight")), this.$X(f), g = e.querySelectorAll("map \x3e properties \x3e property"))) { var h = {}; for (f = 0; f < g.length; f++) h[g[f].getAttribute("name")] = g[f].getAttribute("value"); this.cc = h } h = e.getElementsByTagName("tileset"); "map" !== e.nodeName && (h = [], h.push(e)); for (f = 0; f < h.length; f++) { g = h[f]; var k = g.getAttribute("source"); if (k) g = d ? b.path.join(this.lB, k) : b.path.qs(a, k), this.CL(g); else { k = new b.u1; k.name = g.getAttribute("name") || ""; k.Np = parseInt(g.getAttribute("firstgid")) || 0; k.Mx = parseInt(g.getAttribute("spacing")) || 0; k.margin = parseInt(g.getAttribute("margin")) || 0; var m = b.size(0, 0); m.width = parseFloat(g.getAttribute("tilewidth")); m.height = parseFloat(g.getAttribute("tileheight")); k.bc = m; var m = g.getElementsByTagName("image")[0].getAttribute("source"), n = -1; this.Ht && (n = this.Ht.lastIndexOf("/")); k.gY = -1 !== n ? this.Ht.substr(0, n + 1) + m : this.lB + (this.lB ? "/" : "") + m; this.Zda(k); if (m = g.getElementsByTagName("tile")) for (n = 0; n < m.length; n++) { g = m[n]; this.qD = parseInt(k.Np) + parseInt(g.getAttribute("id") || 0); var p = g.querySelectorAll("properties \x3e property"); if (p) { var s = {}; for (g = 0; g < p.length; g++) { var t = p[g].getAttribute("name"); s[t] = p[g].getAttribute("value") } this.Rl[this.qD] = s } } } } if (h = e.getElementsByTagName("layer")) for (f = 0; f < h.length; f++) { m = h[f]; n = m.getElementsByTagName("data")[0]; k = new b.so; k.name = m.getAttribute("name"); g = b.size(0, 0); g.width = parseFloat(m.getAttribute("width")); g.height = parseFloat(m.getAttribute("height")); k.Da = g; g = m.getAttribute("visible"); k.visible = "0" != g; g = m.getAttribute("opacity") || 1; k.we = g ? parseInt(255 * parseFloat(g)) : 255; k.offset = b.d(parseFloat(m.getAttribute("x")) || 0, parseFloat(m.getAttribute("y")) || 0); p = ""; for (g = 0; g < n.childNodes.length; g++) p += n.childNodes[g].nodeValue; p = p.trim(); g = n.getAttribute("compression"); s = n.getAttribute("encoding"); if (g && "gzip" !== g && "zlib" !== g) return b.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), null; switch (g) { case "gzip": k.Jf = b.BY(p, 4); break; case "zlib": g = new Zlib.Inflate(b.wa.fo.yU(p, 1)); k.Jf = b.hfa(g.decompress()); break; case null: case "": if ("base64" === s) k.Jf = b.wa.fo.yU(p, 4); else if ("csv" === s) for (k.Jf = [], g = p.split(","), n = 0; n < g.length; n++) k.Jf.push(parseInt(g[n])); else for (g = n.getElementsByTagName("tile"), k.Jf = [], n = 0; n < g.length; n++) k.Jf.push(parseInt(g[n].getAttribute("gid"))); break; default: this.aD === b.so.xM && b.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported") } if (m = m.querySelectorAll("properties \x3e property")) { n = {}; for (g = 0; g < m.length; g++) n[m[g].getAttribute("name")] = m[g].getAttribute("value"); k.cc = n } this.oda(k) } if (h = e.getElementsByTagName("objectgroup")) for (f = 0; f < h.length; f++) { m = h[f]; k = new b.t1; k.Ow = m.getAttribute("name"); k.Hda(b.d(parseFloat(m.getAttribute("x")) * this.Ns().width || 0, parseFloat(m.getAttribute("y")) * this.Ns().height || 0)); if (n = m.querySelectorAll("objectgroup \x3e properties \x3e property")) for (g = 0; g < n.length; g++) p = {}, p[n[g].getAttribute("name")] = n[g].getAttribute("value"), k.cc = p; m = m.querySelectorAll("object"); n = b.P.Gg; if (m) for (g = 0; g < m.length; g++) { s = m[g]; p = {}; p.name = s.getAttribute("name") || ""; p.type = s.getAttribute("type") || ""; p.width = parseInt(s.getAttribute("width")) || 0; p.height = parseInt(s.getAttribute("height")) || 0; p.x = (((s.getAttribute("x") || 0) | 0) + k.nV().x) / n; t = ((s.getAttribute("y") || 0) | 0) + k.nV().y / n; p.y = (parseInt(this.GK().height * this.Ns().height) - t - p.height) / b.P.Gg; p.rotation = parseInt(s.getAttribute("rotation")) || 0; if (t = s.querySelectorAll("properties \x3e property")) for (var v = 0; v < t.length; v++) p[t[v].getAttribute("name")] = t[v].getAttribute("value"); (t = s.querySelectorAll("polygon")) && 0 < t.length && (t = t[0].getAttribute("points")) && (p.polygonPoints = this.$R(t)); (s = s.querySelectorAll("polyline")) && 0 < s.length && (s = s[0].getAttribute("points")) && (p.polylinePoints = this.$R(s)); k.Bda(p) } this.EX(k) } return e }, $R: function(a) { if (!a) return null; var d = []; a = a.split(" "); for (var e = 0; e < a.length; e++) { var f = a[e].split(","); d.push({ x: f[0], y: f[1] }) } return d }, Rba: function(a) { return this.CL(a, !0) }, Noa: function() { return this.Rl }, cva: function(a) { this.Rl.push(a) }, Sma: function() { return this.fK }, Hta: function(a) { this.fK = a }, Hoa: function() { return this.Ht }, Vua: function(a) { this.Ht = a }, mR: function(a, d) { this.rp.length = 0; this.hf.length = 0; this.Ht = a; d && (this.lB = d); this.SA.length = 0; this.cc.length = 0; this.Rl.length = 0; this.fK = ""; this.hM = !1; this.aD = b.so.xM; this.parentElement = b.v1; this.IP = 0 } }); r = b.vu.prototype; b.i(r, "mapWidth", r.eH, r.HI); b.i(r, "mapHeight", r.dH, r.GI); b.i(r, "tileWidth", r.jv, r.Qv); b.i(r, "tileHeight", r.iv, r.Pv); b.vu.create = function(a, d) { return new b.vu(a, d) }; b.Z.Bj(["tmx", "tsx"], b.oT); b.so.xM = 1; b.so.Gfa = 2; b.so.Hfa = 4; b.so.Ifa = 8; b.t1 = b.sa.extend({ cc: null, Ow: "", dB: null, Jr: null, ctor: function() { this.Ow = ""; this.dB = b.d(0, 0); this.cc = []; this.Jr = [] }, nV: function() { return b.d(this.dB) }, Hda: function(a) { this.dB.x = a.x; this.dB.y = a.y }, tC: function() { return this.cc }, PD: function(a) { this.cc.push(a) }, tna: function() { return this.Ow.toString() }, $ta: function(a) { this.Ow = a }, fsa: function(a) { return this.cc[a] }, ora: function() {}, Sna: function(a) { if (this.Jr && 0 < this.Jr.length) for (var d = this.Jr, e = 0, f = d.length; e < f; e++) { var g = d[e].name; if (g && g === a) return d[e] } return null }, Vna: function() { return this.Jr }, Bda: function(a) { this.Jr.push(a) } }); b.yg = b.sb.extend({ Oe: null, th: null, Nn: null, cc: null, bD: "", Da: null, xc: null, we: 255, Uo: null, To: null, wJ: null, qJ: null, Rg: null, Te: null, Gg: null, Ma: "TMXLayer", ctor: function(a, d, e) { b.sb.prototype.ctor.call(this); this.Bf = []; this.Da = b.size(0, 0); this.xc = b.size(0, 0); void 0 !== e && this.Faa(a, d, e) }, Ic: function() { return b.W === b.Jb ? new b.yg.n(this) : new b.yg.p(this) }, Na: function(a, d) { b.e.prototype.Na.call(this, a, d); this.f.tT(a, d) }, xa: function() { return this.f.xa() }, Cna: function() { return b.size(this.Da.width, this.Da.height) }, fua: function(a) { this.Da.width = a.width; this.Da.height = a.height }, U3: function() { return this.Da.width }, Y5: function(a) { this.Da.width = a }, T3: function() { return this.Da.height }, X5: function(a) { this.Da.height = a }, Jna: function() { return b.size(this.xc.width, this.xc.height) }, lua: function(a) { this.xc.width = a.width; this.xc.height = a.height }, jv: function() { return this.xc.width }, Qv: function(a) { this.xc.width = a }, iv: function() { return this.xc.height }, Pv: function(a) { this.xc.height = a }, Ooa: function() { return this.Oe }, dva: function(a) { this.Oe = a }, Poa: function() { return this.th }, eva: function(a) { this.th = a }, Bna: function() { return this.Nn }, eua: function(a) { this.Nn = a }, tC: function() { return this.cc }, PD: function(a) { this.cc = a }, Faa: function(a, d, e) { var f = d.Da, g = 0.35 * parseInt(f.width * f.height) + 1, h; a && (h = b.Xa.Vc(a.gY)); return this.ea(h, g) ? (this.bD = d.name, this.Da = f, this.Oe = d.Jf, this.Uo = d.Uo, this.To = d.To, this.we = d.we, this.cc = d.cc, this.Gg = b.P.Gg, this.th = a, this.xc = e.Ns(), this.Nn = e.orientation, a = this.V2(d.offset), this.I(b.EL(a)), this.Te = [], this.Na(b.fY(b.size(this.Da.width * this.xc.width, this.Da.height * this.xc.height))), this.qJ = !1, this.wJ = 0, !0) : !1 }, usa: function() { this.Oe && (this.Oe = null); this.Te && (this.Te = null) }, Moa: function(a, d) { if (!a) throw "cc.TMXLayer.getTileAt(): pos should be non-null"; void 0 !== d && (a = b.d(a, d)); if (a.x >= this.Da.width || a.y >= this.Da.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileAt(): invalid position"; if (!this.Oe || !this.Te) return b.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), null; var e = null, f = this.TK(a); if (0 === f) return e; var g = 0 | a.x + a.y * this.Da.width, e = this.gi(g); e || (f = this.th.nx(f), f = b.Qn(f), e = new b.B, e.ea(this.texture, f), e.batchNode = this, e.I(this.rC(a)), e.vertexZ = this.HT(a), e.anchorX = 0, e.anchorY = 0, e.opacity = this.we, f = this.ZF(g), this.P6(e, f, g)); return e }, TK: function(a, d) { if (null == a) throw "cc.TMXLayer.getTileGIDAt(): pos should be non-null"; void 0 !== d && (a = b.d(a, d)); if (a.x >= this.Da.width || a.y >= this.Da.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileGIDAt(): invalid position"; return this.Oe && this.Te ? (this.Oe[0 | a.x + a.y * this.Da.width] & b.tF) >>> 0 : (b.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), null) }, N$: function(a, d) { if (!a) throw "cc.TMXLayer.getTileFlagsAt(): pos should be non-null"; void 0 !== d && (a = b.d(a, d)); if (a.x >= this.Da.width || a.y >= this.Da.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.getTileFlagsAt(): invalid position"; return this.Oe && this.Te ? (this.Oe[0 | a.x + a.y * this.Da.width] & b.lO) >>> 0 : (b.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), null) }, bva: function(a, d, e, f) { if (!d) throw "cc.TMXLayer.setTileGID(): pos should be non-null"; void 0 !== f ? d = b.d(d, e) : f = e; if (d.x >= this.Da.width || d.y >= this.Da.height || 0 > d.x || 0 > d.y) throw "cc.TMXLayer.setTileGID(): invalid position"; if (this.Oe && this.Te) if (0 !== a && a < this.th.Np) b.log("cc.TMXLayer.setTileGID(): invalid gid:" + a); else { f = f || 0; this.Ll(); e = this.N$(d); var g = this.TK(d); if (g !== a || e !== f) if (e = (a | f) >>> 0, 0 === a) this.yca(d); else if (0 === g) this.F4(e, d); else { var g = d.x + d.y * this.Da.width, h = this.gi(g); h ? (a = this.th.nx(a), a = b.Qn(a), h.Fc(a, !1), null != f && this.xB(h, d, e), this.Oe[g] = e) : this.H6(e, d) } } else b.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released") }, yca: function(a, d) { if (!a) throw "cc.TMXLayer.removeTileAt(): pos should be non-null"; void 0 !== d && (a = b.d(a, d)); if (a.x >= this.Da.width || a.y >= this.Da.height || 0 > a.x || 0 > a.y) throw "cc.TMXLayer.removeTileAt(): invalid position"; if (!this.Oe || !this.Te) b.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released"); else if (0 !== this.TK(a)) { b.W === b.Jb && this.Ll(); var e = 0 | a.x + a.y * this.Da.width, f = this.ZF(e); this.Oe[e] = 0; this.Te.splice(f, 1); if (e = this.gi(e)) b.sb.prototype.removeChild.call(this, e, !0); else if (b.W === b.ya && this.textureAtlas.sx(f), this.m) for (var e = this.m, g = 0, h = e.length; g < h; g++) { var k = e[g]; if (k) { var m = k.atlasIndex; m >= f && (k.atlasIndex = m - 1) } } } }, rC: function(a, d) { void 0 !== d && (a = b.d(a, d)); var e = b.d(0, 0); switch (this.Nn) { case b.fz: e = this.t5(a); break; case b.ez: e = this.s5(a); break; case b.Aq: e = this.r5(a) } return b.EL(e) }, MK: function(a) { return this.cc[a] }, oea: function() { this.f.PV(); this.i5(); b.W === b.Jb && this.Ll(); for (var a = this.Da.height, d = this.Da.width, e = 0; e < a; e++) for (var f = 0; f < d; f++) { var g = this.Oe[f + d * e]; 0 !== g && (this.N2(g, b.d(f, e)), this.Uo = Math.min(g, this.Uo), this.To = Math.max(g, this.To)) } this.To >= this.th.Np && this.Uo >= this.th.Np || b.log("cocos2d:TMX: Only 1 tileset per layer is supported") }, C: function() { b.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.") }, removeChild: function(a, d) { if (a) if (-1 === this.m.indexOf(a)) b.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer"); else { b.W === b.Jb && this.Ll(); var e = a.atlasIndex; this.Oe[this.Te[e]] = 0; this.Te.splice(e, 1); b.sb.prototype.removeChild.call(this, a, d); b.oa.he = !0 } }, Ana: function() { return this.bD }, dua: function(a) { this.bD = a }, s5: function(a) { return b.d(this.xc.width / 2 * (this.Da.width + a.x - a.y - 1), this.xc.height / 2 * (2 * this.Da.height - a.x - a.y - 2)) }, t5: function(a) { return b.d(a.x * this.xc.width, (this.Da.height - a.y - 1) * this.xc.height) }, r5: function(a) { return b.d(a.x * this.xc.width * 3 / 4, (this.Da.height - a.y - 1) * this.xc.height + (1 === a.x % 2 ? -this.xc.height / 2 : 0)) }, V2: function(a) { var d = b.d(0, 0); switch (this.Nn) { case b.fz: d = b.d(a.x * this.xc.width, -a.y * this.xc.height); break; case b.ez: d = b.d(this.xc.width / 2 * (a.x - a.y), this.xc.height / 2 * (-a.x - a.y)); break; case b.Aq: 0 === a.x && 0 === a.y || b.log("offset for hexagonal map not implemented yet") } return d }, N2: function(a, d) { var e = this.th.nx(a), e = b.Qn(e), f = 0 | d.x + d.y * this.Da.width, e = this.f.mB(e); this.xB(e, d, a); var g = this.Te.length; this.bW(e, g); this.Te.splice(g, 0, f); return e }, F4: function(a, d) { var e = this.th.nx(a), e = b.Qn(e), f = 0 | d.x + d.y * this.Da.width, e = this.f.mB(e); this.xB(e, d, a); var g = this.P2(f); this.bW(e, g); this.Te.splice(g, 0, f); if (this.m) for (var h = this.m, k = 0, m = h.length; k < m; k++) { var n = h[k]; if (n) { var p = n.atlasIndex; p >= g && (n.atlasIndex = p + 1) } } this.Oe[f] = a; return e }, H6: function(a, d) { var e = this.th.nx(a), f = this.Gg, e = b.rect(e.x / f, e.y / f, e.width / f, e.height / f), f = d.x + d.y * this.Da.width, e = this.f.mB(e); this.xB(e, d, a); e.atlasIndex = this.ZF(f); e.dirty = !0; e.ug(); this.Oe[f] = a; return e }, i5: function() { var a = this.MK("cc_vertexz"); if (a) if ("automatic" === a) { this.qJ = !0; var d = this.MK("cc_alpha_func"), a = 0; d && (a = parseFloat(d)); b.W === b.ya && (this.shaderProgram = b.le.Dc(b.Yy), d = b.A.getUniformLocation(this.shaderProgram.Qp(), b.UO), this.shaderProgram.jc(), this.shaderProgram.Kx(d, a)) } else this.wJ = parseInt(a, 10) }, xB: function(a, d, e) { var f = d.x + d.y * this.Da.width; a.I(this.rC(d)); b.W === b.ya ? a.vertexZ = this.HT(d) : a.tag = f; a.anchorX = 0; a.anchorY = 0; a.opacity = this.we; b.W === b.ya && (a.rotation = 0); a.Ax(!1); a.JD(!1); (e & b.kO) >>> 0 ? (a.anchorX = 0.5, a.anchorY = 0.5, a.x = this.rC(d).x + a.width / 2, a.y = this.rC(d).y + a.height / 2, d = (e & (b.wu | b.xu) >>> 0) >>> 0, d === b.wu ? a.rotation = 90 : d === b.xu ? a.rotation = 270 : (a.rotation = d === (b.xu | b.wu) >>> 0 ? 90 : 270, a.Ax(!0))) : ((e & b.wu) >>> 0 && a.Ax(!0), (e & b.xu) >>> 0 && a.JD(!0)) }, HT: function(a) { var d = 0, e = 0; if (this.qJ) switch (this.Nn) { case b.ez: e = this.Da.width + this.Da.height; d = -(e - (a.x + a.y)); break; case b.fz: d = -(this.Da.height - a.y); break; case b.Aq: b.log("TMX Hexa zOrder not supported"); break; default: b.log("TMX invalid value") } else d = this.wJ; return d }, ZF: function(a) { var d; if (this.Te) for (var e = this.Te, f = 0, g = e.length; f < g && (d = e[f], d !== a); f++); b.Vw(d) || b.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen"); return f }, P2: function(a) { for (var d = this.Te, e = 0, f = d.length; e < f && !(a < d[e]); e++); return e } }); r = b.yg.prototype; b.i(r, "texture", r.xa, r.Oa); b.i(r, "layerWidth", r.U3, r.Y5); b.i(r, "layerHeight", r.T3, r.X5); b.i(r, "tileWidth", r.jv, r.Qv); b.i(r, "tileHeight", r.iv, r.Pv); b.yg.create = function(a, d, e) { return new b.yg(a, d, e) }; (function() { b.yg.n = function(a) { b.sb.n.call(this, a); this.cb = !0; this.mS = { a: 1, b: 0, c: 0, K: 1, ma: 0, na: 0 }; var e = b.ab; a = b.ic("canvas"); a.width = e.width; a.height = e.height; this.df = a; this.Ve = new b.nq(this.df.getContext("2d")); e = new b.ja; e.jd(a); e.Tb(); this.fG = e; this.Wd = !1 }; var a = b.yg.n.prototype = Object.create(b.sb.n.prototype); a.constructor = b.yg.n; a.Ll = function() { this.Wd = !0 }; a.F5 = function() { if (this.Wd) { var a = this.Ve, e = a.getContext(), f = this.df; e.setTransform(1, 0, 0, 1, 0, 0); e.clearRect(0, 0, f.width, f.height); for (var e = this.k.m, f = 0, g = e.length; f < g; f++) if (e[f]) { var h = e[f].f; h && (h.Eb(a, 1, 1), h.Wd = !1) } this.Wd = !1 } }; a.Eb = function(a, e, f) { var g = this.ad / 255; if (!(0 >= g)) { var h = this.k; this.F5(); var k = a || b.A; a = k.getContext(); k.ut(g); (g = this.df) && 0 !== g.width && 0 !== g.height && (k.setTransform(this.mS, e, f), k = g.height * f, h.Nn === b.Aq ? a.drawImage(g, 0, 0, g.width, g.height, 0, -k + 0.5 * h.xc.height * f, g.width * e, k) : a.drawImage(g, 0, 0, g.width, g.height, 0, -k, g.width * e, k)); b.Of++ } }; a.tT = function() { var a = this.k, e = a.U, f = this.df, g = b.Db(); f.width = 0 | 1.5 * e.width * g; f.height = 0 | 1.5 * e.height * g; a.Nn === b.Aq ? this.Ve.Gj(0, 0.5 * -a.xc.height) : this.Ve.Gj(0, 0); a = this.fG.U; a.width = f.width; a.height = f.height }; a.xa = function() { return this.fG }; a.Q = function(a) { var e = this.k, f, g = e.m; if (e.Ta && g && 0 !== g.length) { if (a = a || P(this)) this.Zd = a.Zd + 1; this.cd(a); if (this.Wd) { a = this.Ve; var h = this.df, k = a.getContext(), m = e.ba, n = b.oa; n.es(m); e.Ne(); e = 0; for (f = g.length; e < f; e++) if (g[e]) { var p = g[e].f; p && (p.Q(this), p.Wd = !1) } k.setTransform(1, 0, 0, 1, 0, 0); k.clearRect(0, 0, h.width, h.height); n.Jv(a, m); this.Wd = !1 } b.oa.Ec(this); this.G = 0 } }; a.transform = function(a, e) { var f = this.He(), g = this.mS; if (a) { var h = a.jj; g.a = f.a * h.a + f.b * h.c; g.b = f.a * h.b + f.b * h.K; g.c = f.c * h.a + f.K * h.c; g.K = f.c * h.b + f.K * h.K; g.ma = h.a * f.ma + h.c * f.na + h.ma; g.na = h.K * f.na + h.na + h.b * f.ma } else g.a = f.a, g.b = f.b, g.c = f.c, g.K = f.K, g.ma = f.ma, g.na = f.na; if (e && (f = this.k.m) && 0 !== f.length) for (g = 0, h = f.length; g < h; g++) f[g].f.transform(this, e) }; a.PV = function() { this.k.th.JC = this.gc.U }; a.mB = function(a) { var e = this.k; e.Rg = new b.B; e.Rg.ea(e.f.O, a, !1); e.Rg.batchNode = e; e.Rg.parent = e; e.Rg.f.cl = e.f; return e.Rg } })(); (function() { b.yg.p = function(a) { b.sb.p.call(this, a); this.cb = !0 }; var a = b.yg.p.prototype = Object.create(b.sb.p.prototype); a.constructor = b.yg.p; a.tT = function() {}; a.PV = function() { this.k.th.JC = this.Lb.texture.U; this.Lb.texture.ML() }; a.mB = function(a) { var e = this.k; e.Rg ? (e.Rg.batchNode = null, e.Rg.Fc(a, !1)) : (e.Rg = new b.B, e.Rg.ea(e.texture, a, !1)); e.Rg.batchNode = e; return e.Rg } })(); b.YE = b.sa.extend({ Gv: null, Ja: null, Ru: null, ctor: function(a, d) { this.raa(a, d) }, loa: function() { return this.Gv }, Iua: function(a) { this.Gv = a }, Js: function() { return this.Ja }, Gj: function(a) { this.Ja = a }, Jma: function() { return this.Ru }, Tca: function(a) { this.Ru = a }, raa: function(a, d) { this.Gv = a; this.Ja = d; this.Ru = null; return !0 } }); b.YE.create = function(a, d) { return new b.YE(a, d) }; b.Rj = b.e.extend({ Yp: null, vH: null, Ma: "ParallaxNode", $na: function() { return this.Yp }, Aua: function(a) { this.Yp = a }, ctor: function() { b.e.prototype.ctor.call(this); this.Yp = []; this.vH = b.d(-100, -100) }, C: function(a, d, e, f) { if (3 === arguments.length) b.log("ParallaxNode: use addChild(child, z, ratio, offset) instead"); else { if (!a) throw "cc.ParallaxNode.addChild(): child should be non-null"; var g = new b.YE(e, f); g.Tca(a); this.Yp.push(g); a.I(this.Ca.x * e.x + f.x, this.Ca.y * e.y + f.y); b.e.prototype.C.call(this, a, d, a.tag) } }, removeChild: function(a, d) { for (var e = this.Yp, f = 0; f < e.length; f++) if (e[f].Ru === a) { e.splice(f, 1); break } b.e.prototype.removeChild.call(this, a, d) }, pi: function(a) { this.Yp.length = 0; b.e.prototype.pi.call(this, a) }, QB: function() { var a = this.C2(); if (!b.DL(a, this.vH)) { for (var d = this.Yp, e = 0, f = d.length; e < f; e++) { var g = d[e]; g.Ru.I(-a.x + a.x * g.Gv.x + g.Js().x, -a.y + a.y * g.Gv.y + g.Js().y) } this.vH = a } }, C2: function() { for (var a = this.Ca, d = this; null !== d.parent;) d = d.parent, a = b.yj(a, d.Pf()); return a }, Ic: function() { return b.W === b.Jb ? new b.Rj.n(this) : new b.Rj.p(this) } }); b.Rj.create = function() { return new b.Rj }; (function() { b.Rj.n = function(a) { b.e.n.call(this, a); this.cb = !1 }; var a = b.Rj.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.Rj.n; a.updateStatus = function() { this.k.QB(); b.e.n.prototype.updateStatus.call(this) }; a.cd = function(a) { this.k.QB(); b.e.n.prototype.cd.call(this, a) } })(); (function() { if (b.W === b.ya) { b.Rj.p = function(a) { b.e.p.call(this, a); this.cb = !1 }; var a = b.Rj.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.Rj.p; a.updateStatus = function() { this.k.QB(); b.e.p.prototype.updateStatus.call(this) }; a.cd = function(a) { this.k.QB(); b.e.p.prototype.cd.call(this, a) } } })(); (function() { var a = b.fa, d = { common: { $e: !0, af: b.fa.cJ, De: !0 } }; d[a.co] = { $e: !0, af: b.fa.cJ, De: !0, Lp: !0 }; d[a.EM] = { $e: !1, af: !1, De: !1 }; d[a.ao] = { $e: !0, af: !0, De: !1 }; d[a.bo] = { $e: !0, af: !0, De: !0, BU: !0 }; d[a.ay] = { $e: !0, af: !1, De: !1 }; d[a.hE] = { $e: !1, af: !1, De: !0 }; d[a.IM] = { $e: !1, af: !1, De: !1, mt: !0, Lp: !0 }; d[a.by] = { $e: !1, af: !1, De: !1, mt: !0, Lp: !0 }; d[a.DM] = { $e: !1, af: !1, De: !0 }; d[a.mq] = { $e: !1, af: !1, De: !0 }; d[a.XY] = { $e: !1, af: !1, De: !1, mt: !0, Lp: !0 }; d[a.JM] = { $e: !1, af: !1, De: !1, mt: !0, Lp: !0 }; d[a.gE] = { $e: !1, af: !1, De: !1, mt: !0, Lp: !0 }; d[a.FM] = { $e: !1, af: !1, De: !1, mt: !0, Lp: !0 }; d[a.eo] = { $e: !0, af: !0, De: !1, LY: function(a) { document.createElement("audio").src = a } }; var e, f; try { var g = navigator.userAgent.toLowerCase(); switch (a.di) { case a.co: f = g.match(/(msie |rv:)([\d.]+)/); break; case a.bo: f = g.match(/(firefox\/|rv:)([\d.]+)/); break; case a.ao: f = g.match(/chrome\/([\d.]+)/); break; case a.gE: f = g.match(/baidubrowser\/([\d.]+)/); break; case a.ay: f = g.match(/ucbrowser\/([\d.]+)/); break; case a.hE: f = g.match(/qqbrowser\/([\d.]+)/); break; case a.IM: f = g.match(/oupeng\/([\d.]+)/); break; case a.by: f = g.match(/micromessenger\/([\d.]+)/); break; case a.eo: f = g.match(/safari\/([\d.]+)/); break; case a.mq: f = g.match(/miuibrowser\/([\d.]+)/) } e = f ? f[1] : "" } catch (h) { console.log(h) } if (e) switch (a.di) { case a.ao: 30 > parseInt(e) && (d[a.ao] = { $e: !1, af: !0, De: !1 }); break; case a.mq: if (e = e.match(/\d+/g), 2 > e[0] || 2 === e[0] && 0 === e[1] && 1 >= e[2]) d[a.mq].De = !1 } if (b.fa.Mk) b.uz = b.fa.xj !== b.fa.wq ? d[a.di] || d.common : d[a.eo]; else switch (a.di) { case a.co: b.uz = d[a.co]; break; case a.bo: b.uz = d[a.bo]; break; default: b.uz = d.common } })(); b.Mt = b.sa.extend({ volume: 1, loop: !1, src: null, jT: !1, Og: !1, Hh: "AUDIO", Dv: !1, Qa: null, il: null, Wv: null, dr: null, Sb: null, kw: null, oH: !1, dk: null, ctor: function(a, d, e) { a && (this.Sb = a); d && (this.kw = d); a && d && (this.Hh = "WEBAUDIO"); this.src = e }, rB: null, OL: function(a) { if (a) { var d = this.Og; this.Hh = "WEBAUDIO"; this.Qa && this.Qa !== a && this.Hk() && this.stop(); this.Qa = a; d && this.play(); this.kw.gain.value = this.volume; this.rB && this.rB(a) } }, GS: null, rX: function(a) { if (a) { var d = this.Og; this.Hh = "AUDIO"; this.dk && this.dk !== a && this.Hk() && this.stop(); this.dk = a; d && this.play(); a.volume = this.volume; a.loop = this.loop; this.GS && this.GS(a) } }, play: function(a, d) { this.Og = !0; this.loop = void 0 === d ? this.loop : d; "AUDIO" === this.Hh ? this.p5(a) : this.bS(a) }, Hk: function() { if (!this.Og) return this.Og; if ("AUDIO" === this.Hh) { var a = this.dk; return !a || this.Dv || a.ended ? this.Og = !1 : !0 } return (a = this.il) ? null == a.playbackState ? this.Og : this.dr + this.Sb.currentTime - this.Wv < this.il.buffer.duration : !0 }, bS: function(a) { var d = this.il; if (this.Qa) { if (!this.Dv && d) if (0 === this.Sb.currentTime || this.dr + this.Sb.currentTime - this.Wv > this.il.buffer.duration) this.dT(); else return; d = this.Sb.createBufferSource(); d.buffer = this.Qa; d.connect(this.kw); d.loop = this.loop; this.Wv = this.Sb.currentTime; this.dr = a || 0; if (d.start) d.start(0, a || 0); else if (d.noteGrainOn) { var e = d.buffer.duration; this.loop ? d.noteGrainOn(0, a, e) : d.noteGrainOn(0, a, e - a) } else d.noteOn(0); this.il = d; var f = this; d.onended = function() { f.oH ? f.oH = !1 : f.Og = !1 } } }, p5: function() { var a = this.dk; a && (a.loop = this.loop, a.play()) }, stop: function() { this.Og = !1; "AUDIO" === this.Hh ? this.u6() : this.dT() }, dT: function() { var a = this.il; this.oH = !0; a && (a.stop(0), this.il = null) }, u6: function() { var a = this.dk; a && (a.pause(), a.duration && Infinity !== a.duration && (a.currentTime = 0)) }, pause: function() { !1 !== this.Hk() && (this.Og = !1, this.Dv = !0, "AUDIO" === this.Hh ? this.m5() : this.n5()) }, n5: function() { this.dr += this.Sb.currentTime - this.Wv; var a = this.il; a && a.stop(0) }, m5: function() { var a = this.dk; a && a.pause() }, Cj: function() { this.Dv && ("AUDIO" === this.Hh ? this.I5() : this.J5(), this.Dv = !1, this.Og = !0) }, J5: function() { var a = this.il; a && (this.Wv = this.Sb.currentTime, this.bS(this.dr % a.buffer.duration)) }, I5: function() { var a = this.dk; a && a.play() }, Lx: function(a) { 1 < a && (a = 1); 0 > a && (a = 0); this.volume = a; "AUDIO" === this.Hh ? this.dk && (this.dk.volume = a) : this.kw && (this.kw.gain.value = a) }, ipa: function() { return this.volume }, cloneNode: function() { var a, d; if ("AUDIO" === this.Hh) { a = new b.Mt; var e = document.createElement("audio"); e.src = this.src; a.rX(e) } else e = this.Sb.createGain(), e.gain.value = 1, e.connect(this.Sb.destination), a = new b.Mt(this.Sb, e, this.src), this.Qa ? a.OL(this.Qa) : (d = this, this.rB = function(e) { a.OL(e); d.rB = null }); a.Hh = this.Hh; return a } }); (function(a) { var d = a.af, e = a.$e, f = a.De, g = []; (function() { var a = document.createElement("audio"); if (a.canPlayType) { var d = a.canPlayType('audio/ogg; codecs\x3d"vorbis"'); d && "" !== d && g.push(".ogg"); (d = a.canPlayType("audio/mpeg")) && "" !== d && g.push(".mp3"); (d = a.canPlayType('audio/wav; codecs\x3d"1"')) && "" !== d && g.push(".wav"); (d = a.canPlayType("audio/mp4")) && "" !== d && g.push(".mp4"); (a = a.canPlayType("audio/x-m4a")) && "" !== a && g.push(".m4a") } })(); try { if (d) { var h = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext); a.BU && setTimeout(function() { h = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext) }, 0) } } catch (k) { d = !1, b.log("browser don't support webAudio") } var m = { td: {}, load: function(a, e, f, k) { if (0 === g.length) return k("can not support audio!"); var n = b.path.Hn(a), x = [n]; for (f = 0; f < g.length; f++) n !== g[f] && x.push(g[f]); var u; if (m.td[e]) return k(null, m.td[e]); if (d) try { var y = h.createGain(); y.gain.value = 1; y.connect(h.destination); u = new b.Mt(h, y, a) } catch (C) { d = !1, b.log("browser don't support webAudio"), u = new b.Mt(null, null, a) } else u = new b.Mt(null, null, a); this.rL(a, x, u, k); m.td[e] = u }, rL: function(e, f, k, n) { if (0 === f.length) { var w = "can not found the resource of audio! Last match url is : ", w = w + e.replace(/\.(.*)?$/, "("); g.forEach(function(a) { w += a + "|" }); w = w.replace(/\|$/, ")"); return n(w) } e = b.path.gU(e, f.splice(0, 1)); if (d) { a.LY && a.LY(e); var x = new XMLHttpRequest; x.open("GET", e, !0); x.responseType = "arraybuffer"; x.onload = function() { h.decodeAudioData(x.response, function(a) { k.OL(a); n(null, k) }, function() { m.rL(e, f, k, n) }) }; x.send() } else { var u = document.createElement("audio"), y = !1, C = !1, F = setTimeout(function() { 0 === u.readyState ? A() : (C = !0, u.pause(), document.body.removeChild(u), n("audio load timeout : " + e, k)) }, 1E4), G = function() { if (!y) { u.pause(); try { u.currentTime = 0, u.volume = 1 } catch (a) {} document.body.removeChild(u); k.rX(u); u.removeEventListener("canplaythrough", G, !1); u.removeEventListener("error", D, !1); u.removeEventListener("emptied", A, !1); !C && n(null, k); y = !0; clearTimeout(F) } }, D = function() { y && (u.pause(), document.body.removeChild(u), u.removeEventListener("canplaythrough", G, !1), u.removeEventListener("error", D, !1), u.removeEventListener("emptied", A, !1), !C && m.rL(e, f, k, n), y = !0, clearTimeout(F)) }, A = function() { C = !0; G(); n(null, k) }; b.$a(u, "canplaythrough", G, !1); b.$a(u, "error", D, !1); a.Lp && b.$a(u, "emptied", A, !1); u.src = e; document.body.appendChild(u); u.volume = 0; u.play() } } }; b.Z.Bj(["mp3", "ogg", "wav", "mp4", "m4a"], m); b.pw = { $j: null, GH: 1, Pwa: function() { return !1 }, Zra: function(a, d) { var e = this.$j; e && e.src !== a && e.Hk() && e.stop(); e = m.td[a]; e || (b.Z.load(a), e = m.td[a]); e.play(0, d); e.Lx(this.GH); this.$j = e }, Jea: function(a) { var d = this.$j; d && (d.stop(), a && b.Z.Ad(d.src)) }, Vra: function() { var a = this.$j; a && a.pause() }, Vsa: function() { var a = this.$j; a && a.Cj() }, Ysa: function() { var a = this.$j; a && (a.stop(), a.play()) }, Nna: function() { return this.GH }, nua: function(a) { a -= 0; isNaN(a) && (a = 1); 1 < a && (a = 1); 0 > a && (a = 0); this.GH = a; var d = this.$j; d && d.Lx(a) }, Spa: function() { var a = this.$j; return a ? a.Hk() : !1 }, Li: {}, LR: 5, cA: 1, bsa: function(a) { if (!e) return null; var d = this.Li[a]; d || (d = this.Li[a] = []); if (d[V]) f = d[V]; else { var f = m.td[a]; f || (b.Z.load(a), f = m.td[a]); f = f.cloneNode(); d.push(f) } return f }, Yra: function(a, f) { if (!e) return null; var g = this.Li[a]; g || (g = this.Li[a] = []); var h; for (h = 0; h < g.length && g[h].Hk(); h++); if (g[h]) k = g[h], k.Lx(this.cA), k.play(0, f); else if (!d && h > this.LR) b.log("Error: %s greater than %d", a, this.LR); else { var k = m.td[a]; k || (b.Z.load(a), k = m.td[a]); k = k.cloneNode(); k.Lx(this.cA); k.loop = f || !1; k.play(); g.push(k) } return k }, Ota: function(a) { a -= 0; isNaN(a) && (a = 1); 1 < a && (a = 1); 0 > a && (a = 0); this.cA = a; var d = this.Li, e; for (e in d) { var f = d[e]; if (Array.isArray(f)) for (var g = 0; g < f.length; g++) f[g].Lx(a) } }, ana: function() { return this.cA }, Ura: function(a) { a && a.pause() }, Rra: function() { var a = this.Li, d; for (d in a) for (var e = a[d], f = 0; f < a[d].length; f++) e[f].Hk() && e[f].pause() }, Usa: function(a) { a && a.Cj() }, Tsa: function() { var a = this.Li, d; for (d in a) for (var e = a[d], f = 0; f < a[d].length; f++) e[f].Cj() }, Nva: function(a) { a && a.stop() }, Iea: function() { var a = this.Li, d; for (d in a) for (var e = a[d], f = 0; f < a[d].length; f++) e[f].stop() }, twa: function(a) { if (a) { b.Z.Ad(a); var d = this.Li[a]; d && (d.length = 0); delete this.Li[a]; delete m.td[a] } }, end: function() { this.Jea(); this.Iea() }, TH: [], o5: function() { var a = this.$j; a && a.Hk() && (a.pause(), this.TH.push(a)); var a = this.Li, d; for (d in a) for (var e = a[d], f = 0; f < a[d].length; f++) e[f].Hk() && (e[f].pause(), this.TH.push(e[f])) }, K5: function() { for (var a = this.TH, d = 0; d < a.length; d++) a[d].Cj(); a.length = 0 } }; if (!f) { var n = function() { var d = b.pw.$j; d && !1 === d.jT && d.Og && d.Hk() && (d.jT = !0, d.play(0, d.loop), !a.mt && b.ab.removeEventListener("touchstart", n)) }; setTimeout(function() { b.ab && b.ab.addEventListener("touchstart", n, !1) }, 150) } b.ua.GJ(b.pb.yE, function() { b.pw.o5() }); b.ua.GJ(b.pb.ly, function() { b.pw.K5() }) })(b.uz); b.uD = { jf: {}, w5: function() { this.Ad() }, Q2: function(a) { var d = void 0 === a.Sg ? !1 : !a.Sg; b.P.Jn().Dj(this.w5, a, 0, 0, 0, d) }, hca: function(a) { var d = a.constructor.prototype.RF; if (!d) { var e = { writable: !0, enumerable: !1, configurable: !0 }; e.value = ca.kV(); Object.defineProperty(a.constructor.prototype, "__pid", e) } this.jf[d] || (this.jf[d] = []); a.AY && a.AY(); this.jf[d].push(a) }, KV: function(a) { return (a = this.jf[a.prototype.RF]) && 0 !== a.length ? !0 : !1 }, Hsa: function(a) { var d = a.constructor.prototype.RF; if (d && (d = this.jf[d])) for (var e = 0; e < d.length; e++) a === d[e] && (a.Ad && a.Ad(), d.splice(e, 1)) }, x9: function(a) { if (this.KV(a)) { var d = this.jf[a.prototype.RF], e = Array.prototype.slice.call(arguments); e.shift(); d = d.pop(); d.nt && d.nt.apply(d, e); b.fa.$aa && d.Ad && this.Q2(d); return d } }, h8: function() { for (var a in this.jf) for (var d = 0; d < this.jf[a].length; d++) { var e = this.jf[a][d]; e.Ad && e.Ad() } this.jf = {} } }; b.kE = 9; b.lZ = 1; b.oZ = 2; b.pZ = 4; b.mZ = 8; b.nZ = 16; b.qZ = 32; b.rZ = 64; b.kZ = 128; b.Lj = 256; b.vg = 1; b.tZ = 2; b.sZ = 4; b.iga = 8; b.hga = 8; b.mb = b.Ua.extend({ sR: !1, hja: !1, hj: null, Ma: "Control", tf: function() { return this.sR }, Le: function(a) { this.sR = a; for (var d = this.m, e = 0, f = d.length; e < f; e++) { var g = d[e]; g && g.Le(a) } }, mc: b.vg, K$: function() { return this.mc }, Fd: !1, qB: !1, pl: !1, $z: null, Gb: function(a) { this.mc = (this.Fd = a) ? b.vg : b.sZ; this.Od() }, isEnabled: function() { return this.Fd }, eq: function(a) { this.qB = a; this.Od() }, VC: function() { return this.qB }, om: function(a) { this.pl = a; this.Od() }, Xaa: function() { return this.pl }, iaa: function() { for (var a = this.getParent(); null != a; a = a.getParent()) if (!a.Ta) return !1; return !0 }, ctor: function() { b.Ua.prototype.ctor.call(this); this.$z = {}; this.te = b.color.WHITE }, T: function() { if (b.Ua.prototype.T.call(this)) { this.mc = b.vg; this.Fd = !0; this.pl = this.qB = !1; var a = b.ia.create({ event: b.ia.to, tm: !0 }); this.Qb && (a.Qb = this.Qb.bind(this)); this.xd && (a.xd = this.xd.bind(this)); this.Oc && (a.Oc = this.Oc.bind(this)); this.uf && (a.uf = this.uf.bind(this)); this.hj = a; return !0 } return !1 }, aa: function() { var a = this.hj; a.Hf || b.ua.addListener(a, this); b.e.prototype.aa.call(this) }, vf: function(a) { for (var d = 0, e = b.kE; d < e; d++) if (a & 1 << d) for (var f = this.EG(1 << d), g = 0, h = f.length; g < h; g++) f[g].Oaa(this) }, RT: function(a, d, e) { for (var f = 0, g = b.kE; f < g; f++) e & 1 << f && this.G2(a, d, 1 << f) }, Nsa: function(a, d, e) { for (var f = 0, g = b.kE; f < g; f++) e & 1 << f && this.z5(a, d, 1 << f) }, Ik: function(a) { return this.Ck(a.hi()) }, rj: function(a) { a = a.hi(); a = this.getParent().Ck(a); return b.mx(this.ud(), a) }, jja: function() { return null }, EG: function(a) { a = a.toString(); this.$z[a] || (this.$z[a] = []); return this.$z[a] }, G2: function(a, d, e) { a = new b.o_(a, d, e); this.EG(e).push(a) }, z5: function(a, d, e) { e = this.EG(e); if (a || d) for (var f = 0; f < e.length;) { var g = e[f], h = !0; a && (h = a === g.CV()); d && (h = h && d === g.Bg); h ? b.ge(e, g) : f++ } else e.length = 0 }, Od: function() {} }); r = b.mb.prototype; b.i(r, "state", r.K$); b.i(r, "enabled", r.isEnabled, r.Gb); b.i(r, "selected", r.VC, r.eq); b.i(r, "highlighted", r.Xaa, r.om); r = null; b.mb.create = function() { var a = new b.mb; return a && a.T() ? a : null }; b.QM = 3435855873; b.oE = b.mb.extend({ av: !1, Yx: !1, kf: null, pv: null, Xu: null, Uz: null, tp: null, Ue: null, we: 0, Cr: !1, JB: null, aw: null, KB: null, wo: null, YR: !1, JA: 0, IA: 0, Ma: "ControlButton", ctor: function(a, d, e) { b.mb.prototype.ctor.call(this); this.kf = b.size(0, 0); this.pv = b.d(0, 0); this.Xu = ""; this.Uz = b.color.WHITE; this.JB = {}; this.aw = {}; this.KB = {}; this.wo = {}; void 0 != e ? this.Haa(a, d, e) : void 0 != d ? this.OC(a, d) : void 0 != a ? this.qaa(a) : this.T() }, T: function() { return this.OC(new b.M("", "Arial", 12), new b.ga) }, Od: function() { if (this.YR) { this.tp && this.tp.Ci(!1); this.Ue && this.Ue.Ci(!1); this.zX(this.pv); var a = this.mc; this.Xu = this.UK(a); this.Uz = this.P$(a); var d = this.tp = this.Lw(a); d && d.Wc && d.Wc(this.Xu); d && d.X(this.Uz); var e = this.L(); d && d.I(e.width / 2, e.height / 2); (a = this.Ue = this.X8(a)) && a.I(e.width / 2, e.height / 2); e = b.size(0, 0); if (d) { var f = d.ud(); e.width = f.width; e.height = f.height } this.av ? a && a.Na(e.width + 2 * this.IA, e.height + 2 * this.JA) : a && (f = a.sC(), f = b.size(f.width, f.height), 0 >= f.width && (f.width = e.width), 0 >= f.height && (f.height = e.height), a.Na(f)); e = d ? d.ud() : b.rect(0, 0, 0, 0); f = a ? a.ud() : b.rect(0, 0, 0, 0); e = b.kt(e, f); this.Na(e.width, e.height); e = this.L(); d && (d.I(e.width / 2, e.height / 2), d.Ci(!0)); a && (a.I(e.width / 2, e.height / 2), a.Ci(!0)) } }, OC: function(a, d) { if (!a) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): label should be non-null"; if (!d) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): backgroundSprite should be non-null"; return b.mb.prototype.T.call(this, !0) ? (this.YR = !0, this.JB = {}, this.aw = {}, this.KB = {}, this.wo = {}, this.Cr = !1, this.Yx = !0, this.Xu = null, this.gX(!0), this.Qk(b.size(0, 0)), this.Yx = !0, this.pj(!1), this.rb(0.5, 0.5), this.tp = a, this.Ue = d, this.Hb(255), this.Le(!0), this.aea(a.am(), b.vg), this.$da(a.rf(), b.vg), this.ZL(a, b.vg), this.jX(d, b.vg), this.mc = b.vg, this.IA = 24, this.JA = 12, this.pv = b.d(0.5, 0.5), this.Qk(b.size(0, 0)), this.Od(), !0) : !1 }, Haa: function(a, d, e) { a = new b.M(a, d, e); return this.OC(a, new b.ga) }, qaa: function(a) { var d = new b.M("", "Arial", 30); return this.OC(d, a) }, fla: function() { return this.av }, gX: function(a) { this.av = a; this.Od() }, kpa: function() { return this.Yx }, Eva: function(a) { return this.Yx = a }, sC: function() { return this.kf }, Qk: function(a) { if (0 === a.width && 0 === a.height) this.av = !0; else { this.av = !1; var d = this.wo, e; for (e in d) d[e].Qk(a) } this.kf = a; this.Od() }, L9: function() { return this.pv }, zX: function(a) { this.pv = a; this.tp && this.tp.rb(a) }, Ria: function() { return this.Xu }, Sia: function() { return this.Uz }, bh: function() { return this.we }, Hb: function(a) { b.mb.prototype.Hb.call(this, a); var d = this.wo, e; for (e in d) d[e].Hb(a) }, X: function(a) { b.mb.prototype.X.call(this, a); var d = this.wo, e; for (e in d) d[e].X(a) }, rf: function() { var a = this.Qg; return b.color(a.r, a.g, a.b, a.a) }, $pa: function() { return this.Cr }, eja: function() { return this.JA }, Xia: function() { return this.IA }, mua: function(a, d) { this.JA = d; this.IA = a; this.Od() }, Gb: function(a) { b.mb.prototype.Gb.call(this, a); this.Od() }, eq: function(a) { b.mb.prototype.eq.call(this, a); this.Od() }, om: function(a) { this.mc = a ? b.tZ : b.vg; b.mb.prototype.om.call(this, a); (a = this.lC(b.QM)) && this.nY(a); this.Yx && (a = b.rg(0.05, this.pl && this.isEnabled() && !this.VC() ? 1.1 : 1), a.Ix(b.QM), this.Ba(a)) }, Qb: function(a) { if (!(this.rj(a) && this.isEnabled() && this.Ta && this.iaa())) return !1; this.Cr = !0; this.om(!0); this.vf(b.lZ); return !0 }, xd: function(a) { this.Fd && this.Cr && !this.qB ? (a = this.rj(a)) && !this.pl ? (this.om(!0), this.vf(b.mZ)) : a && this.pl ? this.vf(b.oZ) : !a && this.pl ? (this.om(!1), this.vf(b.nZ)) : a || this.pl || this.vf(b.pZ) : this.pl && this.om(!1) }, Oc: function(a) { this.Cr = !1; this.om(!1); this.rj(a) ? this.vf(b.qZ) : this.vf(b.rZ) }, uf: function() { this.Cr = !1; this.om(!1); this.vf(b.kZ) }, UK: function(a) { var d = this.JB; return d ? d[a] ? d[a] : d[b.vg] : "" }, aea: function(a, d) { this.JB[d] = a || ""; this.mc === d && this.Od() }, P$: function(a) { return (a = this.aw[a]) ? a : (a = this.aw[b.vg]) ? a : b.color.WHITE }, $da: function(a, d) { this.aw[d] = a; this.mc === d && this.Od() }, Lw: function(a) { var d = this.KB; return d[a] ? d[a] : d[b.vg] }, ZL: function(a, d) { var e = this.KB; if (e[d]) { var f = e[d]; f && this.removeChild(f, !0) } e[d] = a; a.Ci(!1); a.rb(0.5, 0.5); this.C(a, 1); this.mc === d && this.Od() }, iva: function(a, d) { var e = this.UK(d); e || (e = ""); this.ZL(new b.M(e, a, 12), d) }, Toa: function(a) { a = this.Lw(a); return null != a && a instanceof b.M ? a.ec : "" }, jva: function(a, d) { var e = this.Lw(d); null != e && e instanceof b.M && e.Bx(a) }, Uoa: function(a) { a = this.Lw(a); return null != a && a instanceof b.M ? a.fc : 0 }, hva: function(a, d) { var e = this.UK(d); e || (e = ""); this.ZL(new b.xg(e, a), d) }, Soa: function(a) { a = this.Lw(a); return null != a && a instanceof b.xg ? a.ev : "" }, X8: function(a) { var d = this.wo; return d[a] ? d[a] : d[b.vg] }, jX: function(a, d) { var e = this.wo; if (e[d]) { var f = e[d]; f && this.removeChild(f, !0) } e[d] = a; a.Ci(!1); a.rb(0.5, 0.5); this.C(a); e = this.kf; 0 === e.width && 0 === e.height || a.Qk(e); this.mc === d && this.Od() }, tta: function(a, d) { var e = b.ga.vU(a); this.jX(e, d) } }); r = b.oE.prototype; b.i(r, "adjustBackground", r.wma, r.gX); b.i(r, "preferredSize", r.sC, r.Qk); b.i(r, "labelAnchor", r.L9, r.zX); r = null; b.oE.create = function(a, d, e) { return new b.oE(a, d, e) }; function Ba() { this.a = this.b = this.g = this.r = void 0 } b.FE = function(a, d, e) { this.wd = a; this.ih = d; this.v = e }; b.Pe = {}; b.Pe.Cp = function(a, d, e, f) { a = new b.B("#" + a); if (!a) return null; a.I(e); a.rb(f); d.C(a); return a }; b.Pe.e_ = function(a) { var d = new b.FE, e, f; e = a.r < a.g ? a.r : a.g; e = e < a.b ? e : a.b; f = a.r > a.g ? a.r : a.g; f = f > a.b ? f : a.b; d.v = f; e = f - e; if (0 < f) d.ih = e / f; else return d.ih = 0, d.wd = -1, d; d.wd = a.r >= f ? (a.g - a.b) / e : a.g >= f ? 2 + (a.b - a.r) / e : 4 + (a.r - a.g) / e; d.wd *= 60; 0 > d.wd && (d.wd += 360); return d }; b.Pe.hF = function(a) { var d, e, f, g, h = new Ba; h.a = 1; if (0 >= a.ih) { if (!a.wd) return h.r = a.v, h.g = a.v, h.b = a.v, h; h.r = 0; h.g = 0; h.b = 0; return h } d = a.wd; 360 <= d && (d = 0); d /= 60; g = 0 | d; f = d - g; d = a.v * (1 - a.ih); e = a.v * (1 - a.ih * f); f = a.v * (1 - a.ih * (1 - f)); switch (g) { case 0: h.r = a.v; h.g = f; h.b = d; break; case 1: h.r = e; h.g = a.v; h.b = d; break; case 2: h.r = d; h.g = a.v; h.b = f; break; case 3: h.r = d; h.g = e; h.b = a.v; break; case 4: h.r = f; h.g = d; h.b = a.v; break; default: h.r = a.v, h.g = d, h.b = e } return h }; b.Pe.MM = function(a, d) { return b.kt(a, d) }; b.o_ = b.sa.extend({ Bg: null, Xb: null, Sz: null, ctor: function(a, d, e) { this.Xb = a; this.Bg = d; this.Sz = e }, vma: function() { return this.Bg }, CV: function() { return this.Xb }, Rma: function() { return this.Sz }, Oaa: function(a) { if (this.Xb && this.Bg) if (b.Je(this.Bg)) this.Xb[this.Bg](a, this.Sz); else this.Bg.call(this.Xb, a, this.Sz) } }); b.ga = b.e.extend({ Sr: null, uP: null, xe: !1, zc: null, yn: null, up: null, zn: null, So: null, dl: null, ip: null, Qm: null, xo: null, yo: null, pn: !0, Cb: !1, Mg: null, kf: null, we: 0, te: null, Wq: null, tA: 0, vA: 0, uA: 0, sA: 0, XS: !1, YI: !1, R: !1, Ma: "Scale9Sprite", uc: !1, vc: !1, Et: function() { return this.R }, ls: function(a, d) { this.addEventListener("load", a, d) }, NB: function() { var a; a = this.tA; var d = this.vA, e = this.uA, f = this.Sr, g = this.sA; a = 0 === a && 0 === d && 0 === e && 0 === g ? b.rect(0, 0, 0, 0) : this.YI ? b.rect(g, a, f.width - e - a, f.height - d - g) : b.rect(a, d, f.width - a - e, f.height - d - g); this.lX(a) }, fw: function() { if (this.yn && this.zn && this.yo && this.Qm && this.dl) { var a = this.U, d = this.yn, e = this.zn, f = this.yo, g = this.Qm, h = this.dl, k = this.dl.L(), m = d.L(), n = g.L(), p = a.width - m.width - e.L().width, a = a.height - m.height - f.L().height, p = p / k.width, a = a / k.height, m = k.width * p, s = k.height * a, t = n.width, n = n.height; if (b.W === b.ya) { var v = Math.round(m); m !== v && (m = v, p = m / k.width); v = Math.round(s); s !== v && (s = v, a = s / k.height) } h.oh(p); h.ph(a); var k = this.So, v = this.ip, w = this.up, x = this.xo, u = b.d(0, 0); g.rb(u); f.rb(u); d.rb(u); e.rb(u); k.rb(u); v.rb(u); w.rb(u); x.rb(u); h.rb(u); g.I(0, 0); f.I(t + m, 0); d.I(0, n + s); e.I(t + m, n + s); k.I(0, n); k.ph(a); v.I(t + m, n); v.ph(a); x.I(t, 0); x.oh(p); w.I(t, n + s); w.oh(p); h.I(t, n) } }, ctor: function(a, d, e) { b.e.prototype.ctor.call(this); this.Sr = b.rect(0, 0, 0, 0); this.uP = b.rect(0, 0, 0, 0); this.Mg = b.size(0, 0); this.kf = b.size(0, 0); this.Wq = b.rect(0, 0, 0, 0); if (void 0 != a) if (a instanceof b.Se) this.qg(a, d); else { var f = b.sh.og(a); null != f ? this.qg(f, d) : this.em(a, d, e) } else this.T() }, OK: function() { return this.zc }, Iw: function() { return b.size(this.Mg) }, sC: function() { return b.size(this.kf) }, aja: function() { return this.kf.width }, $ia: function() { return this.kf.height }, Qk: function(a) { this.Na(a); this.kf = a; this.xe && (this.fw(), this.xe = !1, this.pn = !0) }, Cja: function(a) { this.cj(a); this.kf.width = a }, Bja: function(a) { this.bj(a); this.kf.height = a }, Hb: function(a) { if (this.zc) { b.e.prototype.Hb.call(this, a); for (var d = this.zc.m, e = 0; e < d.length; e++) { var f = d[e]; f && f.Hb(a) } this.pn = !0 } }, X: function(a) { if (this.zc) { b.e.prototype.X.call(this, a); for (var d = this.zc.m, e = 0; e < d.length; e++) { var f = d[e]; f && f.X(a) } this.pn = !0 } }, c9: function() { return b.rect(this.Wq) }, lX: function(a) { if (this.zc) { var d = this.U, e = d.width, d = d.height; this.Jt(this.zc, this.Sr, this.YI, a); this.Na(e, d) } }, G9: function() { return this.tA }, lda: function(a) { this.tA = a; this.NB() }, I9: function() { return this.vA }, nda: function(a) { this.vA = a; this.NB() }, H9: function() { return this.uA }, mda: function(a) { this.uA = a; this.NB() }, F9: function() { return this.sA }, kda: function(a) { this.sA = a; this.NB() }, Na: function(a, d) { b.e.prototype.Na.call(this, a, d); this.xe = !0 }, cj: function(a) { b.e.prototype.cj.call(this, a); this.xe = !0 }, bj: function(a) { b.e.prototype.bj.call(this, a); this.xe = !0 }, T: function() { return this.MC(null, b.rect(0, 0, 0, 0), !1, b.rect(0, 0, 0, 0)) }, MC: function(a, d, e, f) { void 0 === f && (f = e, e = !1); a && this.Jt(a, d, e, f); this.nX(!0); this.qt(!0); this.rb(0.5, 0.5); return this.xe = !0 }, em: function(a, d, e) { a instanceof b.Dh ? (e = a = d, d = b.rect(0, 0, 0, 0)) : (d = d || b.rect(0, 0, 0, 0), e = e || b.rect(0, 0, 0, 0)); if (!a) throw "cc.Scale9Sprite.initWithFile(): file should be non-null"; var f = b.Xa.Kn(a); f || (f = b.Xa.Vc(a)); var g = f.R; (this.R = g) || f.addEventListener("load", function(a) { var d = this.kf, e = 0 !== d.width || 0 !== d.height; e && (d = b.size(d.width, d.height)); a = a.L(); this.Jt(this.zc, b.rect(0, 0, a.width, a.height), !1, this.Wq); e && this.Qk(d); this.xe = !0; this.dispatchEvent("load") }, this); return this.MC(new b.sb(a, 9), d, !1, e) }, qg: function(a, d) { if (!a || !a.xa()) throw "cc.Scale9Sprite.initWithSpriteFrame(): spriteFrame should be non-null and its texture should be non-null"; d = d || b.rect(0, 0, 0, 0); var e = a.R; (this.R = e) || a.addEventListener("load", function(a) { var d = this.kf, e = 0 !== d.width || 0 !== d.height; e && (d = b.size(d.width, d.height)); this.Jt(this.zc, a.dh(), b.W === b.ya && a.ye, this.Wq); e && this.Qk(d); this.xe = !0; this.dispatchEvent("load") }, this); e = new b.sb(a.xa(), 9); return this.MC(e, a.dh(), b.W === b.ya && a.ye, d) }, Baa: function(a, d) { if (!a) throw "cc.Scale9Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null"; d = d || b.rect(0, 0, 0, 0); var e = b.sh.og(a); return null == e ? (b.log("cc.Scale9Sprite.initWithSpriteFrameName(): can't find the sprite frame by spriteFrameName"), !1) : this.qg(e, d) }, Qsa: function(a) { var d = new b.ga; return d && d.MC(this.zc, this.Sr, !1, a) ? d : null }, Le: function(a) { if (this.zc) { this.Cb = a; var d = this.zc.m; if (d) for (var e = 0, f = d.length; e < f; e++) d[e].Le(a) } }, tf: function() { return this.Cb }, Jt: function(a, d, e, f) { var g = this.bh(), h = this.rf(); d = b.rect(d.x, d.y, d.width, d.height); this.pi(!0); this.zc !== a && (this.zc = a); if (!this.zc) return !1; a = a.xa(); var k = a.R; this.R = k; var m = this.Wq; m.x = f.x; m.y = f.y; m.width = f.width; m.height = f.height; if (!k) return a.addEventListener("load", function() { this.xe = !0; this.dispatchEvent("load") }, this), !0; a = this.zc; a.pi(!0); this.YI = e; k = a.xa(); b.Iv(d) && (d = k.L(), d = b.rect(0, 0, d.width, d.height)); m = this.Sr = d; m.x = d.x; m.y = d.y; m.width = d.width; m.height = d.height; this.Mg.width = d.width; this.Mg.height = d.height; m = this.kf; 0 === m.width && 0 === m.height && (m.width = d.width, m.height = d.height); m = this.uP; f && (m.x = f.x, m.y = f.y, m.width = f.width, m.height = f.height); var n = d.width; f = d.height; b.Iv(m) && (m.x = n / 3, m.y = f / 3, m.width = n / 3, m.height = f / 3); var p = m.x, s = m.width, t = n - (p + s), v = m.y, w = m.height, x = f - (v + w), u = 0, y = 0; f = b.rect(u + 0.5 | 0, y + 0.5 | 0, p + 0.5 | 0, v + 0.5 | 0); var u = u + p, m = b.rect(u + 0.5 | 0, y + 0.5 | 0, s + 0.5 | 0, v + 0.5 | 0), n = b.rect(u + s + 0.5 | 0, y + 0.5 | 0, t + 0.5 | 0, v + 0.5 | 0), u = 0, y = 0 + v, C = b.rect(u + 0.5 | 0, y + 0.5 | 0, p + 0.5 | 0, w + 0.5 | 0), u = u + p, F = b.rect(u + 0.5 | 0, y + 0.5 | 0, s + 0.5 | 0, w + 0.5 | 0), u = u + s, G = b.rect(u + 0.5 | 0, y + 0.5 | 0, t + 0.5 | 0, w + 0.5 | 0), u = 0, y = 0 + v + w, v = b.rect(u + 0.5 | 0, y + 0.5 | 0, p + 0.5 | 0, x + 0.5 | 0), u = u + p, p = b.rect(u + 0.5 | 0, y + 0.5 | 0, s + 0.5 | 0, x + 0.5 | 0), u = u + s, s = b.rect(u + 0.5 | 0, y + 0.5 | 0, t + 0.5 | 0, x + 0.5 | 0), t = { a: 1, b: 0, c: 0, K: 1, ma: 0, na: 0 }; if (e) { e = F; var x = s, u = v, y = n, w = f, D = G, A = C, E = p, z = m, t = b.JJ(t, d.height + d.x, d.y), t = b.TT(t, 1.57079633), F = b.oi(F, t), s = b.oi(s, t), v = b.oi(v, t), n = b.oi(n, t); f = b.oi(f, t); G = b.oi(G, t); C = b.oi(C, t); p = b.oi(p, t); m = b.oi(m, t); e.x = F.x; e.y = F.y; x.x = s.x; x.y = s.y; u.x = v.x; u.y = v.y; y.x = n.x; y.y = n.y; w.x = f.x; w.y = f.y; D.x = G.x; D.y = G.y; A.x = C.x; A.y = C.y; E.x = p.x; E.y = p.y; z.x = m.x; z.y = m.y; this.dl = new b.B; this.dl.ea(k, e, !0); a.C(this.dl, 0, b.ga.yN); this.up = new b.B; this.up.ea(k, z, !0); a.C(this.up, 1, b.ga.BN); this.xo = new b.B; this.xo.ea(k, E, !0); a.C(this.xo, 1, b.ga.xN); this.So = new b.B; this.So.ea(k, A, !0); a.C(this.So, 1, b.ga.zN); this.ip = new b.B; this.ip.ea(k, D, !0); a.C(this.ip, 1, b.ga.AN); this.yn = new b.B; this.yn.ea(k, w, !0); a.C(this.yn, 2, b.ga.CN); this.zn = new b.B; this.zn.ea(k, y, !0); a.C(this.zn, 2, b.ga.DN); this.Qm = new b.B; this.Qm.ea(k, u, !0); a.C(this.Qm, 2, b.ga.i0); this.yo = new b.B; this.yo.ea(k, x, !0) } else t = b.JJ(t, d.x, d.y), b.Yi(F, t), b.Yi(s, t), b.Yi(v, t), b.Yi(n, t), b.Yi(f, t), b.Yi(G, t), b.Yi(C, t), b.Yi(p, t), b.Yi(m, t), this.dl = new b.B, this.dl.ea(k, F), a.C(this.dl, 0, b.ga.yN), this.up = new b.B, this.up.ea(k, m), a.C(this.up, 1, b.ga.BN), this.xo = new b.B, this.xo.ea(k, p), a.C(this.xo, 1, b.ga.xN), this.So = new b.B, this.So.ea(k, C), a.C(this.So, 1, b.ga.zN), this.ip = new b.B, this.ip.ea(k, G), a.C(this.ip, 1, b.ga.AN), this.yn = new b.B, this.yn.ea(k, f), a.C(this.yn, 2, b.ga.CN), this.zn = new b.B, this.zn.ea(k, n), a.C(this.zn, 2, b.ga.DN), this.Qm = new b.B, this.Qm.ea(k, v), a.C(this.Qm, 2, b.ga.i0), this.yo = new b.B, this.yo.ea(k, s); a.C(this.yo, 2, b.ga.j0); this.Na(d.width, d.height); b.W === b.ya && this.C(a); this.XS && (this.Hb(g), this.X(h)); return this.XS = !0 }, zi: function(a) { var d = new b.sb(a.xa(), 9), e = a.R; (this.R = e) || a.addEventListener("load", function(a) { var d = this.kf, e = 0 !== d.width || 0 !== d.height; e && (d = b.size(d.width, d.height)); this.Jt(this.zc, a.dh(), b.W === b.ya && a.ye, this.Wq); e && this.Qk(d); this.xe = !0; this.dispatchEvent("load") }, this); this.Jt(d, a.dh(), b.W === b.ya && a.ye, b.rect(0, 0, 0, 0)); this.sA = this.uA = this.vA = this.tA = 0 }, XL: function(a) { this.f.XL(a) }, Ax: function(a) { var d = this.oc(); this.uc = a; this.oh(d) }, eW: function() { return this.uc }, JD: function(a) { var d = this.gd(); this.vc = a; this.ph(d) }, fW: function() { return this.vc }, oh: function(a) { this.uc && (a *= -1); b.e.prototype.oh.call(this, a) }, ph: function(a) { this.vc && (a *= -1); b.e.prototype.ph.call(this, a) }, Tn: function(a, d) { void 0 === d && (d = a); this.oh(a); this.ph(d) }, oc: function() { var a = b.e.prototype.oc.call(this); this.uc && (a *= -1); return a }, gd: function() { var a = b.e.prototype.gd.call(this); this.vc && (a *= -1); return a }, Jw: function() { this.oc() !== this.gd() && b.log("Scale9Sprite#scale. ScaleX !\x3d ScaleY. Don't know which one to return"); return this.oc() }, Ic: function() { return b.W === b.Jb ? new b.ga.n(this) : new b.ga.p(this) } }); r = b.ga.prototype; b.zh.prototype.apply(r); b.i(r, "preferredSize", r.sC, r.Qk); b.i(r, "capInsets", r.c9, r.lX); b.i(r, "insetLeft", r.G9, r.lda); b.i(r, "insetTop", r.I9, r.nda); b.i(r, "insetRight", r.H9, r.mda); b.i(r, "insetBottom", r.F9, r.kda); r = null; b.ga.create = function(a, d, e) { return new b.ga(a, d, e) }; b.ga.vU = function(a, d) { return new b.ga(a, d) }; b.ga.X7 = function(a, d) { return new b.ga(a, d) }; b.ga.yN = 0; b.ga.BN = 1; b.ga.zN = 2; b.ga.AN = 3; b.ga.xN = 4; b.ga.DN = 5; b.ga.CN = 6; b.ga.j0 = 7; b.ga.state = { sN: 0, GRAY: 1 }; (function() { b.ga.n = function(a) { b.e.n.call(this, a); this.cl = null; this.Wd = !1; this.mc = b.ga.state.sN; a = this.k; var e = this.df = b.ic("canvas"); e.width = 1; e.height = 1; this.Ve = new b.nq(e.getContext("2d")); var f = this.fG = new b.ja; f.jd(e); f.Tb(); this.Pu = new b.B(f); this.Pu.rb(0, 0); a.C(this.Pu) }; var a = b.ga.n.prototype = Object.create(b.e.n.prototype); a.constructor = b.ga.n; a.Q = function(a) { var e = this.k; e.Ta && (e.xe && (e.fw(), e.xe = !1, e.pn = !0), e.pn = !1, this.Iz(), b.e.n.prototype.Q.call(this, a)) }; a.transform = function(a) { var e = this.k; b.e.n.prototype.transform.call(this, a); e.xe && (e.fw(), e.xe = !1, e.pn = !0); this.Iz(); a = e.m; for (e = 0; e < a.length; e++) a[e].transform(this, !0) }; a.Ae = function(a) { b.e.n.prototype.Ae.call(this, a); var e = this.k.zc; if (e) { for (var e = e.m, f = 0; f < e.length; f++) { var g = e[f]; g && (g.f.Ae(a), g.f.xb()) } this.Iz() } }; a.Iz = function() { var a = this.k; if (a.zc) { var e = b.Db(), f = a.U, g = b.size(f.width * e, f.height * e), h = this.df, k = this.Ve, m = k.getContext(), n = !1; if (h.width !== g.width || h.height !== g.height) h.width = g.width, h.height = g.height, n = !0; b.oa.es(a.ba); a.zc.Q(); (h = a.zc.xa()) && this.mc === b.ga.state.GRAY && h.eT(!0); m.setTransform(1, 0, 0, 1, 0, 0); m.clearRect(0, 0, g.width, g.height); b.oa.Jv(k, a.ba, e, e); h && this.mc === b.ga.state.GRAY && h.eT(!1); n && this.Pu.Fc(b.rect(0, 0, f.width, f.height)); this.Pu.getParent() || a.C(this.Pu, -1) } }; a.XL = function(a) { this.k.zc && (this.mc = a, this.Iz()) } })(); (function() { b.ga.p = function(a) { b.e.p.call(this, a); this.cl = null; this.Wd = !1 }; var a = b.ga.p.prototype = Object.create(b.e.p.prototype); a.constructor = b.ga.p; a.Q = function(a) { var e = this.k; e.Ta && (e.xe && (e.fw(), e.xe = !1, e.pn = !0), b.e.p.prototype.Q.call(this, a)) }; a.transform = function(a, e) { var f = this.k; b.e.p.prototype.transform.call(this, a, e); f.xe && (f.fw(), f.xe = !1, f.pn = !0) }; a.Ae = function(a) { b.e.p.prototype.Ae.call(this, a); var e = this.k.zc; if (e) for (var e = e.m, f = 0; f < e.length; f++) { var g = e[f]; g && (g.f.Ae(a), g.f.xb()) } }; a.ci = function(a) { b.e.p.prototype.ci.call(this, a); var e = this.k.zc; if (e) for (var e = e.m, f = 0; f < e.length; f++) { var g = e[f]; g && (g.f.ci(a), g.f.xb()) } }; a.XL = function(a) { var e = this.k.zc; null !== e && (a === b.ga.state.sN ? e.pm(b.le.Dc(b.Sj)) : a === b.ga.state.GRAY && e.pm(b.ga.p.R3())) }; b.ga.p.bR = null; b.ga.p.R3 = function() { var a = b.ga.p.bR; if (a) return a; a = new b.Qe; a.qj(b.nF, b.ga.p.q4); a.fd(b.vm, b.Ib); a.fd(b.lq, b.cf); a.fd(b.$n, b.re); a.link(); a.HY(); return b.ga.p.bR = a }; b.ga.p.q4 = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nvoid main() \n{ \n vec4 c \x3d texture2D(CC_Texture0, v_texCoord); \n gl_FragColor.xyz \x3d vec3(0.2126*c.r + 0.7152*c.g + 0.0722*c.b); \n gl_FragColor.w \x3d c.w ; \n}" })(); b.bz = b.Ua.extend({}); b.bz.Lwa = function(a) { var d = new b.bz; d.T(); d.Na(0, a); return d }; b.bz.vpa = function(a) { var d = new b.bz; d.T(); d.Na(a, 0); return d }; b.Ly = b.Ua.extend({ te: null, we: 0, Ma: "MenuPassive", ctor: function() {}, rf: function() { var a = this.te; return b.color(a.r, a.g, a.b, a.a) }, X: function(a) { var d = this.te; d.r = a.r; d.g = a.g; d.b = a.b; if (this.m && 0 < this.m.length) for (d = 0; d < this.m.length; d++) this.m[d] && this.m[d].X(a); void 0 === a.a || a.MT || this.Hb(a.a) }, bh: function() { return this.we }, Hb: function(a) { this.we = a; if (this.m && 0 < this.m.length) for (var d = 0; d < this.m.length; d++) this.m[d] && this.m[d].Hb(a); this.te.a = a }, Tw: function(a, d) { if (this.T()) { var e = b.P.Fa(); this.pj(!0); this.rb(0.5, 0.5); this.Na(e); this.I(e.width / 2, e.height / 2); e = 0; if (a) { this.C(a, e); for (var f = 0; f < d.length; f++) d[f] && (e++, this.C(d[f], e)) } return !0 } return !1 }, a7: function() { this.KJ(b.gy) }, KJ: function(a) { var d = -a, e; if (this.m && 0 < this.m.length) for (e = 0; e < this.m.length; e++) this.m[e] && (d += this.m[e].L().height * this.m[e].gd() + a); var f = 0, g = d / 2; if (this.m && 0 < this.m.length) for (e = 0; e < this.m.length; e++) this.m[e] && (f = Math.max(f, this.m[e].L().width), this.m[e].I(0, g - this.m[e].L().height * this.m[e].gd() / 2), g -= this.m[e].L().height * this.m[e].gd() + a); this.Na(f, d) }, X6: function() { this.YB(b.gy) }, YB: function(a) { var d = -a, e; if (this.m && 0 < this.m.length) for (e = 0; e < this.m.length; e++) this.m[e] && (d += this.m[e].L().width * this.m[e].oc() + a); var f = 0, g = -d / 2; if (this.m && 0 < this.m.length) for (e = 0; e < this.m.length; e++) this.m[e] && (f = Math.max(f, this.m[e].L().height), this.m[e].I(g + this.m[e].L().width * this.m[e].oc() / 2, 0), g += this.m[e].L().width * this.m[e].oc() + a); this.Na(d, f) }, Y6: function(a) { var d = [], e; for (e = 1; e < arguments.length; e++) d.push(arguments[e]); var f = -5, g = 0, h = 0, k = 0, m, n; if (this.m && 0 < this.m.length) for (e = 0; e < this.m.length; e++) this.m[e] && (g >= d.length ? b.log("cc.MenuPassive.alignItemsInColumns(): invalid row index") : (m = d[g]) ? (n = this.m[e].L().height, h = 0 | (h >= n || null == n ? h : n), ++k, k >= m && (f += h + 5, h = k = 0, ++g)) : b.log("cc.MenuPassive.alignItemsInColumns(): can not have zero columns on a row")); var p = b.P.Fa(), s = m = h = g = 0, t = 0, f = f / 2; if (this.m && 0 < this.m.length) for (e = 0; e < this.m.length; e++) this.m[e] && (0 === m && (m = d[g], t = s = p.width / (1 + m)), n = this.m[e].L().height, h = 0 | (h >= n || null == n ? h : n), this.m[e].I(t - p.width / 2, f - this.m[e].L().height / 2), t += s, ++k, k >= m && (f -= h + 5, h = m = k = 0, ++g)) }, Z6: function(a) { var d = [], e; for (e = 1; e < arguments.length; e++) d.push(arguments[e]); var f = [], g = [], h = -10, k = -5, m = 0, n = 0, p = 0, s, t; if (this.m && 0 < this.m.length) for (e = 0; e < this.m.length; e++) this.m[e] && (m >= d.length ? b.log("cc.MenuPassive.alignItemsInRows(): invalid row index") : (s = d[m]) ? (t = this.m[e].L().width, n = 0 | (n >= t || null == t ? n : t), k += 0 | this.m[e].L().height + 5, ++p, p >= s && (f.push(n), g.push(k), h += n + 10, n = p = 0, k = -5, ++m)) : b.log("cc.MenuPassive.alignItemsInColumns(): can't have zero rows on a column")); k = b.P.Fa(); n = m = 0; s = null; var h = -h / 2, v = 0; if (this.m && 0 < this.m.length) for (e = 0; e < this.m.length; e++) this.m[e] && (null == s && (s = d[m], v = g[m]), t = this.m[e].L().width, n = 0 | (n >= t || null == t ? n : t), this.m[e].I(h + f[m] / 2, v - k.height / 2), v -= this.m[e].L().height + 10, ++p, p >= s && (h += n + 5, n = s = p = 0, ++m)) }, Le: function() {}, tf: function() { return !1 } }); b.Ly.create = function(a) { a || (a = null); for (var d = [], e = 1; e < arguments.length; e++) d.push(arguments[e]); return (e = new b.Ly) && e.Tw(a, d) ? e : null }; b.Ly.Nka = function(a) { return b.Ly.create(a, null) }; b.fy = b.mb.extend({ sI: 0, Hz: 0, Rc: null, f5: null, PS: null, Vh: null, Ac: null, Eg: 0, al: 0, Ma: "ControlSaturationBrightnessPicker", ctor: function(a, d) { b.mb.prototype.ctor.call(this); d && this.jL(a, d) }, A$: function() { return this.sI }, b9: function() { return this.Hz }, Dw: function() { return this.Rc }, m$: function() { return this.Hz }, E$: function() { return this.PS }, NK: function() { return this.Vh }, PK: function() { return this.Ac }, jL: function(a, d) { return b.mb.prototype.T.call(this) ? (this.Rc = b.Pe.Cp("colourPickerBackground.png", a, d, b.d(0, 0)), this.f5 = b.Pe.Cp("colourPickerOverlay.png", a, d, b.d(0, 0)), this.PS = b.Pe.Cp("colourPickerShadow.png", a, d, b.d(0, 0)), this.Vh = b.Pe.Cp("colourPicker.png", a, d, b.d(0.5, 0.5)), this.Ac = d, this.Eg = 35, this.al = this.Rc.L().width / 2, !0) : !1 }, Gb: function(a) { b.mb.prototype.Gb.call(this, a); this.Vh && this.Vh.Hb(a ? 255 : 128) }, IY: function(a) { var d = new b.FE; d.ih = 1; d.wd = a.wd; d.v = 1; a = b.Pe.hF(d); this.Rc.X(b.color(0 | 255 * a.r, 0 | 255 * a.g, 0 | 255 * a.b)) }, mfa: function(a) { a = b.d(this.Ac.x + this.Eg + this.al * (1 - a.ih), this.Ac.y + this.Eg + this.al * a.v); this.RB(a) }, RB: function(a) { var d = this.Ac.x + 0.5 * this.Rc.ud().width, e = this.Ac.y + 0.5 * this.Rc.ud().height, f = a.x - d, g = a.y - e, h = Math.sqrt(f * f + g * g), f = Math.atan2(g, f), g = 0.5 * this.Rc.ud().width; h > g && (a.x = d + g * Math.cos(f), a.y = e + g * Math.sin(f)); this.Vh.I(a); a.x < this.Ac.x + this.Eg ? a.x = this.Ac.x + this.Eg : a.x > this.Ac.x + this.Eg + this.al - 1 && (a.x = this.Ac.x + this.Eg + this.al - 1); a.y < this.Ac.y + this.Eg ? a.y = this.Ac.y + this.Eg : a.y > this.Ac.y + this.Eg + this.al && (a.y = this.Ac.y + this.Eg + this.al); this.sI = 1 - Math.abs((this.Ac.x + this.Eg - a.x) / this.al); this.Hz = Math.abs((this.Ac.y + this.Eg - a.y) / this.al) }, Qu: function(a) { var d = this.Ac.x + 0.5 * this.Rc.ud().width, e = this.Ac.y + 0.5 * this.Rc.ud().height, d = a.x - d, e = a.y - e; return Math.sqrt(d * d + e * e) <= 0.5 * this.Rc.ud().width ? (this.RB(a), this.vf(b.Lj), !0) : !1 }, Qb: function(a) { if (!this.isEnabled() || !this.Ta) return !1; a = this.Ik(a); return this.Qu(a) }, xd: function(a) { a = this.Ik(a); this.Qu(a) } }); r = b.fy.prototype; b.i(r, "saturation", r.A$); b.i(r, "brightness", r.b9); b.i(r, "background", r.Dw); b.i(r, "overlay", r.m$); b.i(r, "shadow", r.E$); b.i(r, "slider", r.NK); b.i(r, "startPos", r.PK); r = null; b.fy.create = function(a, d) { return new b.fy(a, d) }; b.ey = b.mb.extend({ wr: 0, lv: 0, Rc: null, Vh: null, Ac: null, Ma: "ControlHuePicker", ctor: function(a, d) { b.mb.prototype.ctor.call(this); d && this.jL(a, d) }, C9: function() { return this.wr }, LD: function(a) { this.wr = a; this.xX(this.wr / 360) }, D9: function() { return this.lv }, xX: function(a) { this.lv = a; this.wr = 360 * this.lv; a = this.Rc.ud(); var d = 0.5 * a.width - 15, e = b.Md(360 * this.lv - 180); this.Vh.I(this.Ac.x + 0.5 * a.width + d * Math.cos(e), this.Ac.y + 0.5 * a.height + d * Math.sin(e)) }, Gb: function(a) { b.mb.prototype.Gb.call(this, a); this.Vh && this.Vh.Hb(a ? 255 : 128) }, Dw: function() { return this.Rc }, NK: function() { return this.Vh }, PK: function() { return this.Ac }, jL: function(a, d) { return b.mb.prototype.T.call(this) ? (this.Rc = b.Pe.Cp("huePickerBackground.png", a, d, b.d(0, 0)), this.Vh = b.Pe.Cp("colourPicker.png", a, d, b.d(0.5, 0.5)), this.Vh.I(d.x, d.y + 0.5 * this.Rc.ud().height), this.Ac = d, this.lv = this.wr = 0, !0) : !1 }, RB: function(a) { var d = this.Rc.ud(); this.LD(b.jx(Math.atan2(a.y - (this.Ac.y + 0.5 * d.height), a.x - (this.Ac.x + 0.5 * d.width))) + 180); this.vf(b.Lj) }, Qu: function(a) { var d = Math.sqrt(Math.pow(a.x + 10, 2) + Math.pow(a.y, 2)); return 80 > d && 59 < d ? (this.RB(a), !0) : !1 }, Qb: function(a) { if (!this.isEnabled() || !this.Ta) return !1; a = this.Ik(a); return this.Qu(a) }, xd: function(a) { a = this.Ik(a); this.Qu(a) } }); r = b.ey.prototype; b.i(r, "hue", r.C9, r.LD); b.i(r, "huePercent", r.D9, r.xX); b.i(r, "background", r.Dw); b.i(r, "slider", r.NK); b.i(r, "startPos", r.PK); r = null; b.ey.create = function(a, d) { return new b.ey(a, d) }; b.pE = b.mb.extend({ Oh: null, Vm: null, Mo: null, Rc: null, Ma: "ControlColourPicker", ctor: function() { b.mb.prototype.ctor.call(this); this.T() }, jaa: function(a) { this.Oh.wd = a.wr; a = b.Pe.hF(this.Oh); b.mb.prototype.X.call(this, b.color(0 | 255 * a.r, 0 | 255 * a.g, 0 | 255 * a.b)); this.vf(b.Lj); this.E6() }, I7: function(a) { this.Oh.ih = a.sI; this.Oh.v = a.Hz; a = b.Pe.hF(this.Oh); b.mb.prototype.X.call(this, b.color(0 | 255 * a.r, 0 | 255 * a.g, 0 | 255 * a.b)); this.vf(b.Lj) }, X: function(a) { b.mb.prototype.X.call(this, a); var d = new Ba; d.r = a.r / 255; d.g = a.g / 255; d.b = a.b / 255; d.a = 1; this.Oh = b.Pe.e_(d); this.zT() }, Dw: function() { return this.Rc }, T: function() { if (b.mb.prototype.T.call(this)) { b.sh.IJ(X.KM); var a = new b.sb(X.LM); this.C(a); this.Oh = new b.FE(0, 0, 0); this.Rc = b.Pe.Cp("menuColourPanelBackground.png", a, b.d(0, 0), b.d(0.5, 0.5)); var d = b.zd(this.Rc.Pf(), b.d(this.Rc.L().width / 2, this.Rc.L().height / 2)); this.Mo = new b.ey(a, b.d(d.x + 8, d.y + 8)); this.Vm = new b.fy(a, b.d(d.x + 28, d.y + 28)); this.Mo.RT(this, this.jaa, b.Lj); this.Vm.RT(this, this.I7, b.Lj); this.zT(); this.C(this.Mo); this.C(this.Vm); this.Na(this.Rc.L()); return !0 } return !1 }, E6: function() { this.Mo.LD(this.Oh.wd); this.Vm.IY(this.Oh) }, zT: function() { this.Mo.LD(this.Oh.wd); this.Vm.IY(this.Oh); this.Vm.mfa(this.Oh) }, Gb: function(a) { b.mb.prototype.Gb.call(this, a); null !== this.Mo && this.Mo.Gb(a); this.Vm && this.Vm.Gb(a) }, Qb: function() { return !1 } }); r = b.pE.prototype; b.i(r, "background", r.Dw); r = null; b.pE.create = function() { return new b.pE }; var X = X || {}; X.KM = X.KM || "res/extensions/CCControlColourPickerSpriteSheet.plist"; X.LM = X.LM || "res/extensions/CCControlColourPickerSpriteSheet.png"; b.WN = 24; b.Hha = 8; b.rE = b.mb.extend({ ed: 0, bb: 0, vb: 0, OA: 0, MA: 0, wb: null, mn: null, Ue: null, Ma: "ControlSlider", ctor: function(a, d, e) { b.mb.prototype.ctor.call(this); void 0 != e && (a = new b.B(a), d = new b.B(d), e = new b.B(e), this.Caa(a, d, e)) }, Os: function() { return this.ed }, Pd: function(a) { a = Math.max(a, this.bb); this.ed = a = Math.min(a, this.vb); this.Od(); this.vf(b.Lj) }, Hw: function() { return this.bb }, Dx: function(a) { this.OA = this.bb = a; this.bb >= this.vb && (this.vb = this.bb + 1); this.Pd(this.ed) }, Gw: function() { return this.vb }, Cx: function(a) { this.MA = this.vb = a; this.vb <= this.bb && (this.bb = this.vb - 1); this.Pd(this.ed) }, rj: function(a) { a = a.hi(); a = this.getParent().Ck(a); var d = this.ud(); d.width += this.wb.L().width; d.x -= this.wb.L().width / 2; return b.mx(d, a) }, Vp: function(a) { a = a.hi(); a = this.Ck(a); 0 > a.x ? a.x = 0 : a.x > this.Ue.L().width && (a.x = this.Ue.L().width); return a }, Y9: function() { return this.OA }, wda: function(a) { this.OA = a }, W9: function() { return this.MA }, uda: function(a) { this.MA = a }, Kw: function() { return this.wb }, s$: function() { return this.mn }, W8: function() { return this.Ue }, Caa: function(a, d, e) { return b.mb.prototype.T.call(this) ? (this.pj(!1), this.Ue = a, this.mn = d, this.wb = e, a = b.Pe.MM(a.ud(), e.ud()), this.Na(a.width, a.height), this.Ue.rb(0.5, 0.5), this.Ue.I(a.width / 2, a.height / 2), this.C(this.Ue), this.mn.rb(0, 0.5), this.mn.I(0, a.height / 2), this.C(this.mn), this.wb.I(0, a.height / 2), this.C(this.wb), this.bb = 0, this.vb = 1, this.Pd(this.bb), !0) : !1 }, Gb: function(a) { b.mb.prototype.Gb.call(this, a); this.wb && this.wb.Hb(a ? 255 : 128) }, yea: function(a) { this.eq(!0); this.wb.X(b.color.GRAY); this.Pd(this.tM(a)) }, Aea: function(a) { this.Pd(this.tM(a)) }, zea: function() { this.VC() && this.Pd(this.tM(this.wb.Pf())); this.wb.X(b.color.WHITE); this.eq(!1) }, Xoa: function(a) { a = a.hi(); a = this.Ck(a); 0 > a.x ? a.x = 0 : a.x > this.Ue.L().width + b.WN && (a.x = this.Ue.L().width + b.WN); return a }, Qb: function(a) { if (!this.rj(a) || !this.isEnabled() || !this.Ta) return !1; a = this.Vp(a); this.yea(a); return !0 }, xd: function(a) { a = this.Vp(a); this.Aea(a) }, Oc: function() { this.zea(b.d(0, 0)) }, Od: function() { this.wb.UL((this.ed - this.bb) / (this.vb - this.bb) * this.Ue.L().width); var a = this.mn.RK(), a = b.rect(a.x, a.y, this.wb.vd(), a.height); this.mn.Fc(a, this.mn.Gf); this.wb.f.transform(this.f) }, tM: function(a) { a = a.x / this.Ue.L().width; return Math.max(Math.min(this.bb + a * (this.vb - this.bb), this.MA), this.OA) } }); r = b.rE.prototype; b.i(r, "value", r.Os, r.Pd); b.i(r, "minValue", r.Hw, r.Dx); b.i(r, "maxValue", r.Gw, r.Cx); b.i(r, "minAllowedValue", r.Y9, r.wda); b.i(r, "maxAllowedValue", r.W9, r.uda); b.i(r, "thumbSprite", r.Kw); b.i(r, "progressSprite", r.s$); b.i(r, "backgroundSprite", r.W8); r = null; b.rE.create = function(a, d, e) { return new b.rE(a, d, e) }; b.SM = b.mb.extend({ rd: null, lR: 0, uv: !1, Kr: !1, Ma: "ControlSwitch", ctor: function(a, d, e, f, g, h) { b.mb.prototype.ctor.call(this); h && this.hL(a, d, e, f, g, h) }, hL: function(a, d, e, f, g, h) { if (!a) throw "cc.ControlSwitch.initWithMaskSprite(): maskSprite should be non-null."; if (!d) throw "cc.ControlSwitch.initWithMaskSprite(): onSprite should be non-null."; if (!e) throw "cc.ControlSwitch.initWithMaskSprite(): offSprite should be non-null."; if (!f) throw "cc.ControlSwitch.initWithMaskSprite(): thumbSprite should be non-null."; return this.T() ? (this.Kr = !0, this.rd = new b.TM, this.rd.hL(a, d, e, f, g, h), this.rd.I(this.rd.L().width / 2, this.rd.L().height / 2), this.C(this.rd), this.pj(!1), this.rb(0.5, 0.5), this.Na(this.rd.L()), !0) : !1 }, ND: function(a, d) { var e = (this.Kr = a) ? this.rd.jn : this.rd.Yo; d ? this.rd.Ba(new b.Lt(0.2, "sliderXPosition", this.rd.Nl, e)) : this.rd.UD(e); this.vf(b.Lj) }, Wpa: function() { return this.Kr }, tpa: function() { return this.uv }, Gb: function(a) { this.Fd = a; this.rd.Hb(a ? 255 : 128) }, Vp: function(a) { a = a.hi(); return a = this.Ck(a) }, Qb: function(a) { if (!this.rj(a) || !this.isEnabled() || !this.Ta) return !1; this.uv = !1; this.lR = this.Vp(a).x - this.rd.Nl; this.rd.wb.X(b.color.GRAY); this.rd.Od(); return !0 }, xd: function(a) { a = this.Vp(a); a = b.d(a.x - this.lR, 0); this.uv = !0; this.rd.UD(a.x) }, Oc: function(a) { a = this.Vp(a); this.rd.wb.X(b.color.WHITE); this.uv ? this.ND(!(a.x < this.rd.L().width / 2), !0) : this.ND(!this.Kr, !0) }, uf: function(a) { a = this.Vp(a); this.rd.wb.X(b.color.WHITE); this.uv ? this.ND(!(a.x < this.rd.L().width / 2), !0) : this.ND(!this.Kr, !0) } }); b.SM.create = function(a, d, e, f, g, h) { return new b.SM(a, d, e, f, g, h) }; b.TM = b.B.extend({ Nl: 0, jn: 0, Yo: 0, hT: 0, BH: 0, KA: null, Ui: null, xl: null, wb: null, Av: null, yv: null, el: null, ob: null, Hia: null, ctor: function() { b.B.prototype.ctor.call(this); this.BH = this.Yo = this.jn = this.Nl = 0; this.KA = b.size(0, 0); this.yv = this.Av = this.wb = this.xl = this.Ui = null }, hL: function(a, d, e, f, g, h) { return b.B.prototype.T.call(this) ? (this.zi(a.IU()), this.jn = 0, this.Yo = -d.L().width + f.L().width / 2, this.Nl = this.jn, this.IX(d), this.GX(e), this.Jx(f), this.HX(g), this.FX(h), this.ob = a, a = this.KA = this.ob.L(), this.ob.I(0, 0), this.el = new b.yb, this.el.rb(0.5, 0.5), this.el.I(a.width / 2, a.height / 2), this.el.Hx(this.ob), this.C(this.el), this.el.C(d), this.el.C(e), this.el.C(g), this.el.C(h), this.C(this.wb), this.Od(), !0) : !1 }, Od: function() { var a = this.KA; this.Ui.I(this.Ui.L().width / 2 + this.Nl - a.width / 2, this.Ui.L().height / 2 - a.height / 2); this.xl.I(this.Ui.L().width + this.xl.L().width / 2 + this.Nl - a.width / 2, this.xl.L().height / 2 - a.height / 2); this.Av && this.Av.I(this.Ui.vd() - this.wb.L().width / 6, this.Ui.L().height / 2 - a.height / 2); this.yv && this.yv.I(this.xl.vd() + this.wb.L().width / 6, this.xl.L().height / 2 - a.height / 2); this.wb.I(this.Ui.L().width + this.Nl, this.KA.height / 2) }, UD: function(a) { a <= this.Yo ? a = this.Yo : a >= this.jn && (a = this.jn); this.Nl = a; this.Od() }, H$: function() { return this.Nl }, a4: function() { return this.Ui.L().width }, X3: function() { return this.xl.L().height }, sM: function(a, d) { "sliderXPosition" === d && this.UD(a) }, Dda: function(a) { this.jn = a }, j$: function() { return this.jn }, Cda: function(a) { this.Yo = a }, e$: function() { return this.Yo }, rda: function(a) { this.ob.Oa(a) }, S9: function() { return this.ob.xa() }, ava: function(a) { this.hT = a }, Loa: function() { return this.hT }, qda: function(a) { this.BH = a }, R9: function() { return this.BH }, IX: function(a) { this.Ui = a }, k$: function() { return this.Ui }, GX: function(a) { this.xl = a }, f$: function() { return this.xl }, Jx: function(a) { this.wb = a }, Kw: function() { return this.wb }, HX: function(a) { this.Av = a }, i$: function() { return this.Av }, FX: function(a) { this.yv = a }, d$: function() { return this.yv } }); r = b.TM.prototype; b.i(r, "sliderX", r.H$, r.UD); b.i(r, "onPos", r.j$, r.Dda); b.i(r, "offPos", r.e$, r.Cda); b.i(r, "maskTexture", r.S9, r.rda); b.i(r, "maskPos", r.R9, r.qda); b.i(r, "onSprite", r.k$, r.IX); b.i(r, "offSprite", r.f$, r.GX); b.i(r, "thumbSprite", r.Kw, r.Jx); b.i(r, "onLabel", r.i$, r.HX); b.i(r, "offLabel", r.d$, r.FX); b.i(r, "onSideWidth", r.a4); b.i(r, "offSideWidth", r.X3); r = null; b.OM = 0; b.PM = 1; b.dy = 2; b.Nt = b.color(55, 55, 55); b.lE = b.color(147, 147, 147); b.NM = "CourierNewPSMT"; b.yM = 0.15; b.QY = 12; b.sE = b.mb.extend({ ue: null, Ef: null, gn: null, kn: null, ed: 0, Uu: !1, Mq: !1, Dn: !1, bb: 0, vb: 0, xn: 0, cw: !1, vp: b.dy, Lu: 0, Ma: "ControlStepper", ctor: function(a, d) { b.mb.prototype.ctor.call(this); this.kn = this.gn = this.Ef = this.ue = null; this.ed = 0; this.Dn = this.Mq = this.Uu = !1; this.xn = this.vb = this.bb = 0; this.cw = !1; this.vp = b.dy; this.Lu = 0; d && this.uaa(a, d) }, uaa: function(a, d) { if (!a) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Minus sprite should be non-null."; if (!d) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Plus sprite should be non-null."; if (this.T()) { this.Uu = this.Mq = !0; this.bb = 0; this.vb = 100; this.ed = 0; this.xn = 1; this.Dn = !1; this.pj(!1); this.DX(a); this.ue.I(a.L().width / 2, a.L().height / 2); this.C(this.ue); this.CX(new b.M("-", b.NM, 40, b.size(40, 40), b.ro, b.LF)); this.gn.X(b.lE); this.gn.I(this.ue.L().width / 2, this.ue.L().height / 2); this.ue.C(this.gn); this.MX(d); this.Ef.I(a.L().width + d.L().width / 2, a.L().height / 2); this.C(this.Ef); this.LX(new b.M("+", b.NM, 40, b.size(40, 40), b.ro, b.LF)); this.kn.X(b.Nt); this.kn.I(this.Ef.L().width / 2, this.Ef.L().height / 2); this.Ef.C(this.kn); var e = b.Pe.MM(this.ue.ud(), this.Ef.ud()); this.Na(this.ue.L().width + this.Ef.L().height, e.height); return !0 } return !1 }, mea: function(a) { if (this.Dn = a) this.gn.X(b.Nt), this.kn.X(b.Nt); this.Pd(this.ed) }, Z$: function() { return this.Dn }, Dx: function(a) { if (a >= this.vb) throw "cc.ControlStepper.setMinimumValue(): minimumValue should be numerically less than maximumValue."; this.bb = a; this.Pd(this.ed) }, Hw: function() { return this.bb }, Cx: function(a) { if (a <= this.bb) throw "cc.ControlStepper.setMaximumValue(): maximumValue should be numerically less than maximumValue."; this.vb = a; this.Pd(this.ed) }, Gw: function() { return this.vb }, Pd: function(a) { this.$L(a, !0) }, Os: function() { return this.ed }, Xda: function(a) { if (0 >= a) throw "cc.ControlStepper.setMaximumValue(): stepValue should be numerically greater than 0."; this.xn = a }, M$: function() { return this.xn }, Vaa: function() { return this.Uu }, $L: function(a, d) { a < this.bb ? a = this.Dn ? this.vb : this.bb : a > this.vb && (a = this.Dn ? this.bb : this.vb); this.ed = a; this.Dn || (this.gn.X(a === this.bb ? b.lE : b.Nt), this.kn.X(a === this.vb ? b.lE : b.Nt)); d && this.vf(b.Lj) }, mY: function() { this.Lu = -1; this.Dj(this.update, b.yM, b.Ch, 3 * b.yM) }, pY: function() { this.tg(this.update) }, update: function() { this.Lu++; this.Lu < b.QY && 0 !== this.Lu % 3 || (this.vp === b.OM ? this.$L(this.ed - this.xn, this.Uu) : this.vp === b.PM && this.$L(this.ed + this.xn, this.Uu)) }, FY: function(a) { a.x < this.ue.L().width && this.ed > this.bb ? (this.vp = b.OM, this.ue.X(b.color.GRAY), this.Ef.X(b.color.WHITE)) : a.x >= this.ue.L().width && this.ed < this.vb ? (this.vp = b.PM, this.ue.X(b.color.WHITE), this.Ef.X(b.color.GRAY)) : (this.vp = b.dy, this.ue.X(b.color.WHITE), this.Ef.X(b.color.WHITE)) }, Qb: function(a) { if (!this.rj(a) || !this.isEnabled() || !this.Ta) return !1; a = this.Ik(a); this.FY(a); this.cw = !0; this.Mq && this.mY(); return !0 }, xd: function(a) { this.rj(a) ? (a = this.Ik(a), this.FY(a), this.cw || (this.cw = !0, this.Mq && this.mY())) : (this.cw = !1, this.vp = b.dy, this.ue.X(b.color.WHITE), this.Ef.X(b.color.WHITE), this.Mq && this.pY()) }, Oc: function(a) { this.ue.X(b.color.WHITE); this.Ef.X(b.color.WHITE); this.Mq && this.pY(); this.rj(a) && (a = this.Ik(a), this.Pd(this.ed + (a.x < this.ue.L().width ? 0 - this.xn : this.xn))) }, DX: function(a) { this.ue = a }, a$: function() { return this.ue }, MX: function(a) { this.Ef = a }, q$: function() { return this.Ef }, CX: function(a) { this.gn = a }, Z9: function() { return this.gn }, LX: function(a) { this.kn = a }, p$: function() { return this.kn } }); r = b.sE.prototype; b.i(r, "wraps", r.Z$, r.mea); b.i(r, "value", r.Os, r.Pd); b.i(r, "minValue", r.Hw, r.Dx); b.i(r, "maxValue", r.Gw, r.Cx); b.i(r, "stepValue", r.M$, r.Xda); b.i(r, "continuous", r.Vaa); b.i(r, "minusSprite", r.a$, r.DX); b.i(r, "plusSprite", r.q$, r.MX); b.i(r, "minusLabel", r.Z9, r.CX); b.i(r, "plusLabel", r.p$, r.LX); r = null; b.sE.create = function(a, d) { return new b.sE(a, d) }; b.qE = b.mb.extend({ wb: null, Nr: null, Mr: null, ed: 0, bb: 0, vb: 1, Ma: "ControlPotentiometer", ctor: function(a, d, e) { b.mb.prototype.ctor.call(this); void 0 != e && (a = new b.B(a), e = new b.B(e), d = new b.La(new b.B(d)), this.Iaa(a, d, e)) }, Iaa: function(a, d, e) { return this.T() ? (this.PX(d), this.Jx(e), this.wb.I(d.Pf()), this.C(e, 2), this.C(d, 1), this.C(a), this.Na(a.L()), this.bb = 0, this.vb = 1, this.Pd(this.bb), !0) : !1 }, Gb: function(a) { this.Gb(a); null !== this.wb && this.wb.Hb(a ? 255 : 128) }, Pd: function(a) { a < this.bb && (a = this.bb); a > this.vb && (a = this.vb); this.ed = a; a = (a - this.bb) / (this.vb - this.bb); this.Nr.KX(100 * a); this.wb.QD(360 * a); this.vf(b.Lj) }, Os: function() { return this.ed }, Dx: function(a) { this.bb = a; this.bb >= this.vb && (this.vb = this.bb + 1); this.Pd(this.vb) }, Hw: function() { return this.bb }, Cx: function(a) { this.vb = a; this.vb <= this.bb && (this.bb = this.vb - 1); this.Pd(this.bb) }, Gw: function() { return this.vb }, rj: function(a) { a = this.Ik(a); return this.g8(this.Nr.Pf(), a) < Math.min(this.L().width / 2, this.L().height / 2) }, Qb: function(a) { if (!this.rj(a) || !this.isEnabled() || !this.Ta) return !1; this.Mr = this.Ik(a); this.Yba(this.Mr); return !0 }, xd: function(a) { a = this.Ik(a); this.$ba(a) }, Oc: function() { this.Zba(b.d(0, 0)) }, g8: function(a, d) { var e = a.x - d.x, f = a.y - d.y; return Math.sqrt(e * e + f * f) }, c7: function(a, d, e, f) { return 180 * (Math.atan2(d.x - a.x, d.y - a.y) - Math.atan2(f.x - e.x, f.y - e.y)) / Math.PI }, Yba: function() { this.eq(!0); this.wb.X(b.color.GRAY) }, $ba: function(a) { var d = this.c7(this.Nr.Pf(), a, this.Nr.Pf(), this.Mr); 180 < d ? d -= 360 : -180 > d && (d += 360); this.Pd(this.ed + d / 360 * (this.vb - this.bb)); this.Mr = a }, Zba: function() { this.wb.X(b.color.WHITE); this.eq(!1) }, Jx: function(a) { this.wb = a }, Kw: function() { return this.wb }, PX: function(a) { this.Nr = a }, t$: function() { return this.Nr }, Kda: function(a) { this.Mr = a }, oV: function() { return this.Mr } }); r = b.qE.prototype; b.i(r, "value", r.Os, r.Pd); b.i(r, "minValue", r.Hw, r.Dx); b.i(r, "maxValue", r.Gw, r.Cx); b.i(r, "progressTimer", r.t$, r.PX); b.i(r, "thumbSprite", r.Kw, r.Jx); b.i(r, "prevLocation", r.oV, r.Kda); r = null; b.qE.create = function(a, d, e) { return new b.qE(a, d, e) }; b.UN = -1; b.xq = 0; b.Wy = 1; b.Vy = 2; b.O7 = function(a) { var d = b.view; return (d.oc() + d.gd()) / 2 * a / 160 }; b.Q0 = b.sa.extend({ Kca: function() {}, Lca: function() {} }); b.Vd = b.Ua.extend({ Qja: 0, qja: 0, pja: 0, Wz: null, ck: b.Vy, Pi: !1, e3: null, ta: null, ai: !1, LA: null, NA: null, Nu: !1, $q: !1, Mv: null, bs: null, dw: 0, sd: null, ij: null, NR: 0, MR: 0, Bv: null, tI: !1, iT: null, hj: null, Ma: "ScrollView", ctor: function(a, d) { b.Ua.prototype.ctor.call(this); this.e3 = b.d(0, 0); this.LA = b.d(0, 0); this.NA = b.d(0, 0); this.Mv = b.d(0, 0); this.bs = b.d(0, 0); this.sd = []; this.ij = b.size(0, 0); this.Bv = new b.Dh(0, 0, 0, 0); this.iT = new b.Dh(0, 0, 0, 0); void 0 != d ? this.Us(a, d) : this.Us(b.size(200, 200), null) }, T: function() { return this.Us(b.size(200, 200), null) }, Us: function(a, d) { var e = b.d(0, 0); return b.Ua.prototype.T.call(this) ? (this.ta = d, this.ta || (this.ta = new b.Ua, this.ta.pj(!1), this.ta.rb(e)), this.aM(a), this.bea(!0), this.sd.length = 0, this.Wz = null, this.$q = this.Nu = !0, this.ck = b.Vy, this.ta.I(e), this.dw = 0, this.C(this.ta), this.NR = this.MR = 1, !0) : !1 }, rt: function(a, d) { if (d) this.Zca(a, 0.15); else { if (!this.Nu) { var e = this.jm(), f = this.On(); a.x = Math.max(e.x, Math.min(f.x, a.x)); a.y = Math.max(e.y, Math.min(f.y, a.y)) } this.ta.I(a) } }, k9: function() { var a = this.ta.Pf(); return b.d(a.x, a.y) }, Zca: function(a, d) { var e = b.moveTo(d, a), f = b.Cc(this.v6, this); this.ta.Ba(b.Fb(e, f)); this.Dj(this.UH) }, cY: function(a, d) { if (d) this.nea(a, 0.15); else { var e = this.ta; if (e.Jw() !== a) { var f, g; 0 === this.dw ? (g = this.ij, g = b.d(0.5 * g.width, 0.5 * g.height), g = this.Yl(g)) : g = this.bs; f = e.Ck(g); e.Tn(Math.max(this.NR, Math.min(this.MR, a))); f = e.Yl(f); g = b.zd(g, f); this.rt(b.yj(e.Pf(), g)) } } }, FV: function() { return this.ta.Jw() }, nea: function(a, d) { if (0 < d) { var e = this.ta.Jw(); e !== a && (e = b.NT(d, "zoomScale", e, a), this.Ba(e)) } else this.cY(a) }, jm: function() { var a = this.ta, d = a.L(), e = this.ij; return b.d(e.width - d.width * a.oc(), e.height - d.height * a.gd()) }, On: function() { return b.d(0, 0) }, Upa: function(a) { var d = this.k9(), e = this.ij, f = this.FV(), d = b.rect(-d.x / f, -d.y / f, e.width / f, e.height / f); return b.mca(d, a.ud()) }, pause: function() { this.ta.pause(); for (var a = this.ta.m, d = 0; d < a.length; d++) a[d].pause(); this._super() }, Cj: function() { for (var a = this.ta.m, d = 0, e = a.length; d < e; d++) a[d].Cj(); this.ta.Cj(); this._super() }, Opa: function() { return this.Pi }, kqa: function() { return this.ai }, Raa: function() { return this.Nu }, Qca: function(a) { this.Nu = a }, X$: function() { return this.ij }, aM: function(a) { this.ij = a; b.e.prototype.Na.call(this, a) }, j9: function() { return this.ta }, Xca: function(a) { a && (this.pi(!0), this.ta = a, a.pj(!1), a.rb(0, 0), this.C(a), this.aM(this.ij)) }, o9: function() { return this.ck }, pX: function(a) { this.ck = a }, Ew: function() { return this.Wz }, st: function(a) { this.Wz = a }, Qb: function(a) { if (!this.Ta) return !1; var d = this.jH(), e = this.ta, f = e.Yl(e.Dk(a)), g = this.sd; if (2 < g.length || this.ai || !b.mx(d, f)) return !1; g.push(a); 1 === g.length ? (this.bs = this.Dk(a), this.ai = !1, this.Pi = !0, this.Mv.x = 0, this.dw = this.Mv.y = 0) : 2 === g.length && (this.bs = b.yL(this.Dk(g[0]), this.Dk(g[1])), this.dw = b.DW(e.Dk(g[0]), e.Dk(g[1])), this.Pi = !1); return !0 }, xd: function(a) { if (this.Ta) if (this.Pk(), 1 === this.sd.length && this.Pi) { this.ai = !0; this.jH(); var d = this.Dk(a); a = b.zd(d, this.bs); var e = 0, f = this.ck, g; if (f === b.Wy) e = a.y, g = this.ta.Qf(), this.jm().y <= g && g <= this.On().y || (a.y *= 0.35); else if (f === b.xq) e = a.x, g = this.ta.vd(), this.jm().x <= g && g <= this.On().x || (a.x *= 0.35); else { e = Math.sqrt(a.x * a.x + a.y * a.y); g = this.ta.Qf(); var h = this.jm(), k = this.On(); h.y <= g && g <= k.y || (a.y *= 0.35); g = this.ta.vd(); h.x <= g && g <= k.x || (a.x *= 0.35) } if (this.ai || !(0.04375 > Math.abs(b.O7(e)))) if (this.ai || (a.x = 0, a.y = 0), this.bs = d, this.ai = !0, this.Pi) { switch (f) { case b.Wy: a.x = 0; break; case b.xq: a.y = 0 } e = this.ta.Pf(); d = e.x + a.x; e = e.y + a.y; this.Mv = a; this.rt(b.d(d, e)) } } else 2 !== this.sd.length || this.Pi || (a = b.DW(this.ta.Dk(this.sd[0]), this.ta.Dk(this.sd[1])), this.cY(this.FV() * a / this.dw)) }, Oc: function() { this.Ta && (1 === this.sd.length && this.ai && this.Dj(this.AG), this.sd.length = 0, this.ai = this.Pi = !1) }, uf: function() { this.Ta && (this.sd.length = 0, this.ai = this.Pi = !1) }, Na: function(a, d) { null !== this.ta && (void 0 === d ? this.ta.Na(a) : this.ta.Na(a, d), this.rM()) }, cj: function(a) { var d = this.ta; null !== d && (d.cj(a), this.rM()) }, bj: function(a) { var d = this.ta; null !== d && (d.bj(a), this.rM()) }, L: function() { return this.ta.L() }, rM: function() { if (null !== this.ta) { var a = this.ij, d = this.On(); this.LA.x = d.x + 0.2 * a.width; this.LA.y = d.y + 0.2 * a.height; d = this.jm(); this.NA.x = d.x - 0.2 * a.width; this.NA.y = d.y - 0.2 * a.height } }, Uaa: function() { return this.$q }, Vca: function(a) { this.$q = a }, Q: function(a) { this.Ta && this.f.Q(a) }, C: function(a, d, e) { if (!a) throw Error("child must not nil!"); d = d || a.wc; e = e || a.yC(); this.ta !== a ? this.ta.C(a, d, e) : b.Ua.prototype.C.call(this, a, d, e) }, jqa: function() { return null !== this.hj }, bea: function(a) { this.hj && b.ua.removeListener(this.hj); this.hj = null; a ? (a = b.ia.create({ event: b.ia.to }), this.Qb && (a.Qb = this.Qb.bind(this)), this.xd && (a.xd = this.xd.bind(this)), this.Oc && (a.Oc = this.Oc.bind(this)), this.uf && (a.uf = this.uf.bind(this)), this.hj = a, b.ua.addListener(a, this)) : (this.ai = this.Pi = !1, this.sd.length = 0) }, ija: function() { return null }, x5: function(a) { var d = this.jm(), e = this.On(), f = this.ck, g = this.ta.Pf(), h = g.x, k = g.y; if (f === b.Vy || f === b.xq) h = Math.max(h, d.x), h = Math.min(h, e.x); if (f === b.Vy || f === b.Wy) k = Math.min(k, e.y), k = Math.max(k, d.y); k === g.y && h === g.x || this.rt(b.d(h, k), a) }, AG: function() { if (this.Pi) this.tg(this.AG); else { var a, d; a = this.ta.Pf(); var e = this.Mv; this.ta.I(a.x + e.x, a.y + e.y); this.Nu ? (a = this.LA, d = this.NA) : (a = this.On(), d = this.jm()); var f = this.ta.vd(), g = this.ta.Qf(); e.x *= 0.95; e.y *= 0.95; this.rt(b.d(f, g)); if (1 >= Math.abs(e.x) && 1 >= Math.abs(e.y) || g > a.y || g < d.y || f > a.x || f < d.x || f === a.x || f === d.x || g === a.y || g === d.y) this.tg(this.AG), this.x5(!0) } }, UH: function() { this.Pi && this.tg(this.UH) }, v6: function() { this.tg(this.UH) }, gja: function() {}, jH: function() { for (var a = this.Yl(b.d(0, 0)), d = this.ij, e = this.oc(), f = this.gd(), g = this.Ga; null != g; g = g.getParent()) e *= g.oc(), f *= g.gd(); 0 > e && (a.x += d.width * e, e = -e); 0 > f && (a.y += d.height * f, f = -f); g = this.iT; g.x = a.x; g.y = a.y; g.width = d.width * e; g.height = d.height * f; return g }, Ic: function() { return b.W === b.Jb ? new b.Vd.n(this) : new b.Vd.p(this) } }); r = b.Vd.prototype; b.i(r, "minOffset", r.jm); b.i(r, "maxOffset", r.On); b.i(r, "bounceable", r.Raa, r.Qca); b.i(r, "viewSize", r.X$, r.aM); b.i(r, "container", r.j9, r.Xca); b.i(r, "direction", r.o9, r.pX); b.i(r, "delegate", r.Ew, r.st); b.i(r, "clippingToBounds", r.Uaa, r.Vca); r = null; b.Vd.create = function(a, d) { return new b.Vd(a, d) }; (function() { b.Vd.n = function(a) { b.Ua.n.call(this, a); this.cb = !1; this.fM = new b.wg(this, this.ZI); this.sK = new b.wg(this, this.HG) }; var a = b.Vd.n.prototype = Object.create(b.Ua.n.prototype); a.constructor = b.Vd.n; a.ZI = function(a, e, f) { var g = this.k, h = a || b.A; a = h.getContext(); h.save(); g.$q && (this.tI = !1, h.setTransform(this.jj, e, f), e *= g.ij.width * g.oc(), f *= g.ij.height * g.gd(), a.beginPath(), a.rect(0, 0, e, -f), a.closePath(), a.clip()) }; a.HG = function(a) { a = a || b.A; a.restore() }; a.Q = function(a) { var e = this.k, f = e.m; this.transform(a); b.oa.Ec(this.fM); if (f && 0 < f.length) for (a = f.length, e.Ne(), e = 0; e < a; e++) f[e].f.Q(this); b.oa.Ec(this.sK) } })(); (function() { b.Vd.p = function(a) { b.Ua.p.call(this, a); this.cb = !1; this.fM = new b.wg(this, this.ZI); this.sK = new b.wg(this, this.HG) }; var a = b.Vd.p.prototype = Object.create(b.Ua.p.prototype); a.constructor = b.Vd.p; a.ZI = function() { var a = this.k, e = b.view, f = a.jH(); if (e.cba()) { if (a.tI = !0, a.Bv = e.B$(), b.lca(f, a.Bv)) { var g = a.Bv, a = Math.max(f.x, g.x), h = Math.max(f.y, g.y), k = Math.min(f.x + f.width, g.x + g.width), f = Math.min(f.y + f.height, g.y + g.height); e.RD(a, h, k - a, f - h) } } else a = b.A, a.enable(a.SCISSOR_TEST), e.RD(f.x, f.y, f.width, f.height) }; a.HG = function() { var a = this.k; a.tI ? (a = a.Bv, b.view.RD(a.x, a.y, a.width, a.height)) : (a = b.A, a.disable(a.SCISSOR_TEST)) }; a.Q = function(a) { var e = this.k, f = e.m, g, h; b.Zw(); this.transform(a); e.$q && b.oa.Ec(this.fM); if (f && 0 < f.length) { h = f.length; for (a = 0; a < h; a++) if ((g = f[a]) && 0 > g.wc) g.f.Q(); else break; for (; a < h; a++) f[a].f.Q() } e.$q && b.oa.Ec(this.sK); this.G = 0; b.Ys() } })(); b.R0 = b.sa.extend({ Ex: function() {}, ii: function() { return 0 } }); b.S0 = b.R0.extend({ JH: 0, ctor: function() { this.JH = 0 }, Ex: function(a) { this.JH = a }, ii: function() { return this.JH } }); function Ca(a, d) { return a.ii() - d.ii() } b.eE = b.sa.extend({ $i: null, ctor: function() { this.$i = [] }, cW: function(a) { if (!a) throw "cc.ArrayForObjectSorting.insertSortedObject(): addObject should be non-null."; this.Maa(a, this.Ss(a)) }, xca: function(a) { if (0 !== this.count()) { var d = this.Ss(a); d < this.count() && d !== b.Nj && this.Wp(d).ii() === a.ii() && this.IL(d) } }, uua: function(a, d) { var e = this.Ss(d); if (e < this.count() && e !== b.Nj) { var f = this.Wp(e); f.ii() === d.ii() && (this.IL(e), f.Ex(a), this.cW(f)) } }, xW: function(a) { if (0 === this.count()) return null; var d = new b.S0; d.Ex(a); var e = this.Ss(d); e < this.count() && e !== b.Nj && (d = this.Wp(e), d.ii() !== a && (d = null)); return d }, Una: function() { return null }, Ss: function(a) { var d = 0; if (a) { var e = 0; a = a.ii(); for (var f = this.$i, g = 0; g < f.length; g++) { var h = f[g].ii(); if (a === h || a >= e && a < h) break; e = h; d++ } } else d = b.Nj; return d }, count: function() { return this.$i.length }, Kqa: function() { var a = this.$i; return 0 === a.length ? null : a[a.length - 1] }, Wp: function(a) { return this.$i[a] }, QT: function(a) { this.$i.push(a); this.$i.sort(Ca) }, IL: function(a) { this.$i.splice(a, 1); this.$i.sort(Ca) }, Maa: function(a, d) { this.$i.splice(d, 0, a); this.$i.sort(Ca) } }); b.eO = 0; b.r1 = 1; b.z1 = b.e.extend({ ql: 0, Ma: "TableViewCell", wna: function() { return this.ql }, jda: function(a) { this.ql = a }, reset: function() { this.ql = b.Nj }, Ex: function(a) { this.ql = a }, ii: function() { return this.ql } }); r = b.z1.prototype; b.i(r, "objectId", r.ii, r.Ex); r = null; b.kia = b.Q0.extend({ awa: function() {}, $va: function() {}, bwa: function() {}, cwa: function() {} }); b.jia = b.sa.extend({ Nea: function(a) { return this.C7(a) }, C7: function() { return b.size(0, 0) }, Zva: function() { return null }, mra: function() { return 0 } }); b.CF = b.Vd.extend({ js: null, gb: null, Xq: null, zG: null, hJ: null, UA: null, Mz: null, Tl: null, ctor: function(a, d, e) { b.Vd.prototype.ctor.call(this); this.UA = b.UN; this.Mz = []; this.Us(d, e); this.oX(a); this.pJ() }, A2: function(a) { var d = 0, e = -1; switch (this.ck) { case b.xq: a = a.x; break; default: a = a.y } for (var f = this.Mz; e >= d;) { var g = 0 | d + (e - d) / 2, h = f[g], k = f[g + 1]; if (a >= h && a <= k) return g; a < h ? e = g - 1 : d = g + 1 } return 0 >= d ? 0 : -1 }, v4: function(a) { a = { x: a.x, y: a.y }; this.js === b.eO && (a.y = this.ta.L().height - a.y); a = this.A2(a); - 1 !== a && (a = Math.max(0, a), -1 < a && (a = b.Nj)); return a }, B2: function(a) { switch (this.ck) { case b.xq: a = b.d(this.Mz[a], 0); break; default: a = b.d(0, this.Mz[a]) } return a }, U4: function(a) { var d = this.B2(a); a = this.zG.Nea(this, a); this.js === b.eO && (d.y = this.ta.L().height - d.y - a.height); return d }, Nja: function() {}, pJ: function() { var a = b.size(0, 0); this.Na(a); this.UA !== this.ck && (this.ck === b.xq ? this.rt(b.d(0, 0)) : this.rt(b.d(0, this.jm().y)), this.UA = this.ck) }, OR: function(a) { this.Xq.QT(a); this.Rm.xca(a); b.ge(this.gb, a.ql); a.reset(); a.getParent() === this.ta && this.ta.removeChild(a, !0) }, uB: function(a, d) { d.rb(0, 0); d.I(this.U4(a)); d.jda(a) }, lP: function(a) { a.getParent() !== this.ta && this.ta.C(a); this.Rm.cW(a); var d = this.gb; a = a.ql; - 1 === d.indexOf(a) && (d.push(a), d.sort(function(a, d) { return a - d })) }, m9: function() { return this.zG }, oX: function(a) { this.zG = a }, Ew: function() { return this.hJ }, st: function(a) { this.hJ = a }, kea: function(a) { this.js !== a && (this.js = a, 0 < this.Rm.count() && this.oca()) }, W$: function() { return this.js }, Us: function(a, d) { return b.Vd.prototype.Us.call(this, a, d) ? (this.Rm = new b.eE, this.Xq = new b.eE, this.gb = [], this.hJ = null, this.js = b.r1, this.pX(b.Wy), b.Vd.prototype.st.call(this, this), !0) : !1 }, Awa: function(a) { if (!(a === b.Nj || -1 < a)) { var d = this.WJ(a); d && this.OR(d); d = null; this.uB(a, d); this.lP(d) } }, Cpa: function(a) { if (!(a === b.Nj || -1 < a)) { var d, e = this.Rm; if (d = e.xW(a)) for (var f = d = e.Ss(d); f < e.count(); f++) d = e.Wp(f), this.uB(d.ql + 1, d); d = null; this.uB(a, d); this.lP(d); this.pJ() } }, Dsa: function(a) { if (!(a === b.Nj || -1 < a)) { var d = this.WJ(a); if (d) { var e = this.Rm, f = e.Ss(d); this.OR(d); b.ge(this.gb, a); for (a = e.count() - 1; a > f; a--) d = e.Wp(a), this.uB(d.ql - 1, d) } } }, oca: function() { this.UA = b.UN; for (var a = this.Rm, d = this.Xq, e = this.ta, f = 0, g = a.count(); f < g; f++) { var h = a.Wp(f); d.QT(h); h.reset(); h.getParent() === e && e.removeChild(h, !0) } this.gb = []; this.Rm = new b.eE; this.pJ() }, Ska: function() { if (0 === this.Xq.count()) return null; var a = this.Xq.Wp(0); this.Xq.IL(0); return a }, WJ: function(a) { return -1 === this.gb.indexOf(a) ? null : this.Rm.xW(a) }, Kca: function() {}, Lca: function() {}, Oc: function(a, d) { if (this.Ta) { if (this.Tl) { var e = this.ud(), f = b.d(e.x, e.y), f = this.Ga.Yl(f); e.x = f.x; e.y = f.y; this.Tl = null } b.Vd.prototype.Oc.call(this, a, d) } }, Qb: function(a, d) { if (!this.Ta) return !1; var e = b.Vd.prototype.Qb.call(this, a, d); if (1 === this.sd.length) { var f; f = this.ta.Dk(a); f = this.v4(f); this.Tl = f === b.Nj ? null : this.WJ(f) } else this.Tl && (this.Tl = null); return e }, xd: function(a, d) { b.Vd.prototype.xd.call(this, a, d); this.Tl && this.ai && (this.Tl = null) }, uf: function(a, d) { b.Vd.prototype.uf.call(this, a, d); this.Tl && (this.Tl = null) } }); r = b.CF.prototype; b.i(r, "dataSource", r.m9, r.oX); b.i(r, "delegate", r.Ew, r.st); b.i(r, "verticalFillOrder", r.W$, r.kea); r = null; b.CF.create = function(a, d, e) { return new b.CF(a, d, e) }; var X = { naa: "textures/images.plist", xpa: "textures/images.png" }, ka = []; res_path_head = ""; b.fa.IC && "undefined" != typeof b.fa.IC && 0 != b.fa.IC && (res_path_head = "res/"); for (var V in X) X[V] = res_path_head + X[V], ka.push(X[V]); delete res_path_head; var Da, Ea, Fa, Ga, Ha, Ia, Ja, Ka, La, Na; GameLangs = { oaa: function() { GameLangs.title = "\u6210\u529f\u5e2e\u52a9%d\u4eba\u8ffd\u4e0a\u516c\u8f66"; GameLangs.PU = "\u5e7f\u5dde\uff1a\u5514\u7b49\u57cb\u6211\uff0c\u771f\u7cfb\u53fc\u55e8\u4f60\u8001\u6bcd\u554a;\u6f6e\u6c55\uff1a\u86cb\u74e6\uff01\u6251\u9886\u6bcd\u554a\u5f00\u6b7b\u7236\u731b\u505a\u6ce5;\u6b66\u6c49\uff1a\u4f60\u5bb6\u6162\u70b9\u6492\u5e26\u4e00\u89c9\u554a\uff01\u4e2a\u72d7\u7684\uff01;\u4e0a\u6d77\uff1a\u56db\u65e0\u7b49\u6b47\uff01\u65e0\u6413\u90a3\u5a18\u989d\u903c\u2026\u2026;\u6210\u90fd\uff1a\u6211\u65e5\u4f60\u4ed9\u4eba\u677f\u677f\u2026\u2026;\u897f\u5b89\uff1a\u5e08\u5085\u7b49\u54c8\uff01\u6211\u5c31\u8d3c\u4e86\u4f60\u5988\u4e86\u2026\u2026;\u4e1c\u5317\uff1a\u64a9\u7684\u633a\u5feb\u7684\u554a\uff0c\u5c3f\u6027\uff0c\n\u4e0b\u6b21\u78b0\u89c1\u4f60\u6574\u6b7b\u4f60;\u53a6\u95e8\uff1a\u53f8\u673a\u86cb\u4ecb\uff01\u6211\u7518\u9716\u8001\u6bcd\u8349\u9e21\u6446; \u5357\u4eac\uff1a\u79c1\u5085\u7b49\u523b\u513f\uff01\u4efb\u4f60\u5988\u2026\u2026~;\u676d\u5dde\uff1a\u5e08\u5085\u7b49\u4e9b\uff01\u4f60\u4e48\u4e2a\u6bd4\uff01\u5f00\u5676\u5feb\u7434\u6b7b\u554a\uff01\uff01\uff01;\u5b81\u6ce2\uff1a\u5e08\u5085\u767b\u723d\u5450\uff01\u90a3\u554a\u6bcd\u897f\u6487\uff01\u5f00\u5676\u5938\u884c\u897f\u554a\uff01\uff01\uff01;\u957f\u6c99\uff1a\u5e08\u5085\u8bf6\u8e29\u4e00j\u00f3\u7c7b\uff01\u8001\u8d44\u5b32\u4f60\u5988\u5988\u522b\uff0c\u558a\u90fd\u558a\u4e0d\u5e94\uff0c\u8d76\u8d77\u514b\u6295\u80ce\u554a\uff1f\uff01;\u91cd\u5e86\uff1a\u53f8\u673a\u7b49\u4e00\u54c8\uff01\u4f60\u4e2a\u54c8\u9ebb\u6279\uff01;\u53f0\u6e7e\uff1a\u7b49\u7b49\u4e86\u5566\uff01\u5bf9\u5566\u2026\u2026\u6211\u5c31\u662f\u7b28\u86cb\u2026\u2026\u5c31\u662f\u7b28\u86cb\u624d\u4f1a\u8ffd\u4e86\u4f60\u8fd9\u4e48\u4e45;\u5e1d\u90fd\uff1a\u4f60\u4e2b\u7b49\u4f1a\u8bf6\uff01\u64cd\u4f60\u5927\u7237\u7684\u81ed\u50bb\u903c\u2026\u2026;\u6cb3\u5357\uff1a\u53f8\u673a\u8001\u4e1d\u513f\uff01\u9ebb\u8fa3\u9694\u58c1\uff01".split(";") } }; GameLangs.oaa(); var Oa = b.Ua.extend({ Px: null, ctor: function() { this._super(); this.Px = b.ia.create({ event: b.ia.to, tm: !0, Qb: this.Qb.bind(this), Oc: this.Oc.bind(this) }); b.ua.addListener(this.Px, this) }, rwa: function() { b.ua.removeListener(this.Px) }, XB: function() { this.fq = new b.Ub(b.color(0, 0, 0, 158), b.ld.width, b.ld.height); this.C(this.fq, -1) }, ssa: function() {}, Qb: function() { return !0 }, Oc: function() {} }); var Pa = b.po.extend({ Mva: 0, Xea: 0, mwa: {}.qma, dwa: 0, ctor: function() { this._super() }, aa: function() { this._super() }, Pb: function() { b.log("onExit"); this._super() }, swa: function() { b.log("_________unScheduleTick") }, lM: function() { this.Xea++ }, Lva: function() {} }); var $ = {}, Qa = b.fa.localStorage.getItem("game_datas_debug"); if (null == Qa || "" == Qa) { $.man_init_speed1 = 0.6; $.man_init_speed2 = 0.8; $.man_init_speed3 = 1; $.man_accelerated_speed1 = 0.1; $.man_accelerated_speed2 = 0.11; $.man_accelerated_speed3 = 0.12; $.run_speed = 30; var Ra = JSON.stringify($); b.fa.localStorage.setItem("game_datas_debug", Ra) } else Qa = b.fa.localStorage.getItem("game_datas_debug"), $ = JSON.parse(Qa); GameTools = { uw: function(a) { a.lW = a.lW || 0.5; a.mW = a.mW || 0.5; a.kaa = a.kaa || 0.5; a.laa = a.laa || 0.5; void 0 == a.Ep && (a.Ep = !0); var d = a.scale || 0.9, e = new b.B(a.Op), f = NaN; a.e8 ? f = c(a.e8) : (f = new b.B(a.Op), f.X(b.color.GRAY)); var g = new b.B(a.Op), h = new b.no(e, g, f, function(a) { a.Fk && a.Fk(a) }); h.Fk = a.Fk; h.qt(!0); e.qt(!0); g.qt(!0); f.qt(!0); h.Cia = e; h.y2 = g; h.Bia = f; h.y2.X(b.color.GRAY); a.Ep && (g.x = e.Nh() * (1 - d) * 0.5, g.y = e.ml() * (1 - d) * 0.5, g.oh(d), g.ph(d)); void 0 == a.label && void 0 != a.sba && (a.nW = a.nW || 24, a.kW = a.kW || b.color.WHITE, a.label = new b.M(a.sba, "Arial", a.nW), a.label.X(a.kW), a.rba && a.label.Vla(a.rba, a.Jqa || 2)); a.label && (a.label.I(e.L().width * a.lW, e.L().height * a.mW), h.C(a.label), h.nd = a.label); return h }, vZ: function(a, d, e, f, g, h) { var k = null, m = b.nw; a && (k = m.wK(a)); if (!k) { k = []; for (V = 1; V <= e; V++) { var n; n = h ? d[V] : b.Aw(d, V); n = b.sh.og(n); k.push(n) } k = new b.Kj(k, f); a && m.FJ(k, a) } k.Gx(g); return k } }; Array.indexOf || (Array.prototype.indexOf = function(a) { for (var d = 0; d < this.length; d++) if (this[d] == a) return d; return -1 }); GameTools.joa = function(a, d) { return Math.floor(Math.random() * (d - a + 1)) + a }; GameTools.ria = function(a) { for (var d = "", e = 0; e < a.length; e++) { var f = a.charAt(e); "+" == f ? d += " " : "%" == f ? (f = a.substring(e + 1, e + 3), 127 < parseInt("0x" + f) ? (d += asc2str(parseInt("0x" + f + a.substring(e + 4, e + 6))), e += 5) : (d += asc2str(parseInt("0x" + f)), e += 2)) : d += f } return d }; ImageNumber = b.e.extend({ rc: null, Cs: null, dL: null, Kd: 0, gf: 0, wW: null, $C: null, dC: 1, ct: 0, ctor: function(a) { this._super(); this.Nb({ anchorX: 0.5, anchorY: 0.5, x: 0, y: 0 }); this.ct = a.ct || 0; this.dL = a.dL; this.$C = ""; this.Cs = {}; this.rc = []; for (var d = 0; 10 > d; d++) { var e = d.toString(), f = b.sh.og(b.Aw(this.dL, e)); this.Cs[e] = f } "number" == typeof a.value ? this.Ada(a.value) : this.ZX(a.value) }, sua: function(a) { this.ct = a; this.$D() }, Ada: function(a) { this.ZX(a.toString()) }, $D: function() { for (var a = this.wW.length, d = this.gf = this.Kd = 0, e = 0; e < a; e++) { var d = a - 1 - e, f = this.rc[d].L(); this.Kd = 0 == e ? f.width : this.Kd + (this.ct + f.width); this.gf < f.height && (this.gf = f.height); this.rc[d].Nb({ anchorX: 1, anchorY: 0, x: this.Kd, y: 0 }) } }, ZX: function(a) { this.wW = a; var d = a.length, e = "", f = 0, e = d - this.$C.length; this.dC = 0 < e ? 2 : 0 > e ? 1 : 0; if (2 == this.dC) for (var g = this.gf = this.Kd = 0; g < d; g++) e = a.substring(g, g + 1), f = d - 1 - g, "undefined" != typeof this.rc[f] ? this.rc[f].xv != e && this.rc[f].zi(this.Cs[e]) : (this.rc[f] = new b.B, this.rc[f].zi(this.Cs[e]), this.C(this.rc[f], 1)), this.rc[f].xv = e, e = this.rc[f].L(), this.Kd = 0 == g ? this.Kd + e.width : this.Kd + (this.ct + e.width), this.gf < e.height && (this.gf = e.height), this.rc[f].Nb({ anchorX: 1, anchorY: 0, x: this.Kd, y: 0 }); else if (1 == this.dC) { for (g = this.gf = this.Kd = 0; g < -e; g++) f = this.$C.length - 1 - g, "undefined" != typeof this.rc[f] ? (this.rc[f].L(), this.rc[f].Rn(!0), this.rc.splice(f, 1)) : b.log("exist logical error!"); for (g = 0; g < d; g++) e = a.substring(g, g + 1), f = d - 1 - g, "undefined" != typeof this.rc[f] && this.rc[f].xv != e && (this.rc[f].zi(this.Cs[e]), this.rc[f].xv = e), e = this.rc[f].L(), this.Kd += this.ct + e.width, this.gf < e.height && (this.gf = e.height), this.rc[f].Nb({ anchorX: 1, anchorY: 0, x: this.Kd, y: 0 }) } else for (g = 0; g < d; g++) e = a.substring(g, g + 1), f = d - 1 - g, "undefined" != typeof this.rc[f] && this.rc[f].xv != e && (this.rc[f].zi(this.Cs[e]), this.rc[f].xv = e); 0 != this.dC && this.Na(this.Kd, this.gf); this.$C = a }, Eoa: function(a) { for (var d = 0, e = a.length, f = -1, g = 0; g < e; g++) f = a.charCodeAt(g), d = 0 <= f && 128 >= f ? d + 1 : d + 2; return d } }); var Sa = Oa.extend({ ctor: function() { this._super(); this.XB(); var a = b.ld, d = b.view.w9(); b.fa.xj == b.fa.My ? (d.width /= b.view.oc(), d.height /= b.view.gd()) : d = b.ld; this.fq = new b.Ub(b.color(0, 0, 0, 158), d.width, d.height); this.fq.x = (a.width - d.width) / 2; this.fq.y = (a.height - d.height) / 2; this.C(this.fq, -1); a = new b.B("#icon_arrows.png"); this.C(a, 1); a.Nb({ anchorX: 1, anchorY: 1, x: 0.93 * (b.ld.width - this.fq.x), y: 0.985 * (b.ld.height - this.fq.y) }); d = new b.B("#share_label.png"); d.Nb({ anchorY: 1, x: 0.5 * b.ld.width, y: a.y - a.height - 10 }); this.C(d, 1) console.log("分享") }, Pb: function() { this._super(); La = null }, Qb: function() { this.Rn(); return !0 } }); var Ya = Oa.extend({ ctor: function() { this._super(); this.T(); Na = this; this.C(new Va(function() { this.tD.hC() }.bind(this)), 1E3); this.Dj(this.lM, 0) }, aa: function() { this._super() }, T: function() { this.vx = 0; b.sh.IJ(X.naa); var a = b.ld, d = new b.Ub(b.color(255, 255, 255, 255), b.ld.width, b.ld.height); this.C(d, -1); this.rD = new Wa(Da, 1); this.sD = new Wa(Ga, 2); this.tD = new Wa(Ha, 3); this.C(this.rD); this.C(this.sD); this.C(this.tD); d = new b.B("#title_label.png"); this.C(d, 2); d.x = a.width / 2; d.y = 0.97 * a.height; this.HD = new b.M("0", "Arial", 40); this.HD.X(b.color.BLACK); this.HD.Nb({ x: 0.47 * a.width, y: 0.97 * a.height }); this.C(this.HD, 2) }, Vja: function() { this.Px = b.ia.create({ event: b.ia.hz, tm: !0, Qb: this.Qb.bind(this), Oc: this.Oc.bind(this) }); b.ua.addListener(this.Px, this) }, lM: function() { this.rD.SJ(); this.sD.SJ(); this.tD.SJ() }, U8: function() { this.tg(this.lM); this.Ba(b.Fb(b.Fe(3), b.Cc(function() { this.C(new Xa(this.vx), 100) }, this))) }, Qb: function(a) { a = a.hi(); a.y > Da && a.y < Ga ? this.rD.tL() : a.y > Ga && a.y < Ha ? this.sD.tL() : a.y > Ha && a.y < Ia && this.tD.tL() } }), Za = Pa.extend({ ctor: function() { this._super(); this.T() }, aa: function() { this._super() }, T: function() { b.uD.h8(); this.Dba = new Ya; this.C(this.Dba) } }); var Wa = b.Ua.extend({ ctor: function(a, d) { this._super(); this.y = a; this.height = Fa; this.T(d); this.index = d }, T: function(a) { var d = b.ld; this.floor = new b.B("#floor.png"); this.C(this.floor, 3); this.floor.x = d.width / 2; this.Ld = new b.B("#icon_bus.png"); this.C(this.Ld, 1); d = (new b.Fh(new b.Pt(function(a) { a.scale = 0.4; a.opacity = 0 }), new b.Cm(new b.yq(0.4, 1, 1), new b.sq(0.4)))).ux(); switch (a) { case 1: this.speed = $.man_init_speed1; this.uL = $.man_accelerated_speed1; this.Ld.Nb({ anchorY: 0, anchorX: 0, x: 0.6 * -this.Ld.width }); a = new b.B("#icon_smoke.png"); a.Nb({ x: this.Ld.width + this.Ld.x, anchorX: 0, anchorY: 0 }); this.C(a); a.Ba(d); a = new b.B("#icon_smoke.png"); a.Nb({ x: this.Ld.width + this.Ld.x + a.width, anchorX: 0, anchorY: 0 }); this.C(a); a.Ba(d.q()); a = new b.B("#icon_smoke.png"); a.Nb({ x: this.Ld.width + this.Ld.x + 2 * a.width, anchorX: 0, anchorY: 0 }); this.C(a); a.Ba(d.q()); break; case 2: this.speed = $.man_init_speed2; this.uL = $.man_accelerated_speed2; this.Ld.Nb({ anchorY: 0, anchorX: 0, x: 0.1 * -this.Ld.width }); a = new b.B("#icon_smoke.png"); a.Nb({ x: this.Ld.width + this.Ld.x, anchorX: 0, anchorY: 0 }); this.C(a); a.Ba(d.q()); a = new b.B("#icon_smoke.png"); a.Nb({ x: this.Ld.width + this.Ld.x + a.width, anchorX: 0, anchorY: 0 }); this.C(a); a.Ba(d.q()); break; case 3: this.speed = $.man_init_speed3, this.uL = $.man_accelerated_speed3, this.Ld.Nb({ anchorY: 0, anchorX: 0 }), a = new b.B("#icon_smoke.png"), a.Nb({ x: this.Ld.width, y: a.height / 2, anchorX: 0, anchorY: 0.5 }), a.Ba(d.q()), this.C(a) } a = b.Fb(b.moveBy(0.2, 0, 2).fb(b.qK(2)), b.moveBy(0.2, 0, -2).fb(b.qK(2))).ux(); this.Ld.Ba(a); this.caa = this.Ld.x + this.Ld.width }, SJ: function() { !this.Ei || 2 < this.Ei.y || (this.Ei.x += this.speed, this.Ei.x < this.caa ? (this.Ei.baa(), this.speed += this.uL, this.hC(), Na.vx++, Na.HD.Wc(Na.vx), 2 == Na.vx && Na.sD.hC(), 5 == Na.vx && Na.rD.hC()) : this.Ei.x > b.ld.width && (this.uea(), Na.U8())) }, uea: function() { var a = new b.M(GameLangs.PU[Math.floor(Math.random() * GameLangs.PU.length)], "Arial", 40); this.C(a, 10); a.X(b.color.BLACK); a.width = 0.8 * b.ld.width; a.Nb({ x: 0.5 * this.width, y: 0.5 * this.height }) }, tL: function() { this.Ei && (2 < this.Ei.y || (this.Ei.x -= $.run_speed)) }, hC: function() { this.Ei = $a.create(); this.C(this.Ei, 5) } }); var $a = b.B.extend({ ctor: function() { this._super("#run_man_0001.png"); this.x = Ja; this.y = Ka; this.anchorY = this.opacity = 0; this.tU() }, tU: function() { var a = GameTools.vZ("run", "run_man_000%d.png", 3, 0.1, !0); this.Ba(b.VT(a).ux()); this.Ba(new b.Fh(new b.sq(0.2), new b.Xk(0.5, 0, -Ka))) }, baa: function() { this.Ba(new b.Fh(new b.ju(0.3), new b.Pt(function(a) { b.uD.hca(a) }))) }, AY: function() { this.Ci(!1); this.Rn(!0) }, nt: function() { this.Ci(!0); this.x = Ja; this.y = Ka; this.tU() } }); $a.create = function() { return b.uD.KV($a) ? b.uD.x9($a) : new $a }; var Xa = Oa.extend({ ctor: function(a) { this._super(); this.XB(); this.T(a) }, T: function(a) { 0.5 < Math.random() && this.C(new ab, 1E3); var d = b.ld, e = new b.B("#game_over.png"); e.x = d.width / 2; e.y = 0.6 * d.height; this.C(e, 25); e = new b.zm; e.Nb({ x: 0.5 * d.width, y: 0.2 * d.height }); this.C(e); var f = GameTools.uw({ Op: "#game_over_2.png", Fk: function() { parent.location.href="#" }, Ep: !1 }); e.C(f); e = new b.M(a ? a : "0", "Arial", 50); this.C(e, 100); e.Nb({ x: 0.49 * d.width, y: 0.61 * d.height }); e = new b.zm; e.Nb({ x: 0.5 * d.width, y: 0.45 * d.height }); d = new b.B("#label_again.png"); f = GameTools.uw({ Op: "#btn_bg.png", Fk: function() { b.P.GD(new Za) }, Ep: !0, label: d }); e.C(f); d = new b.B("#flaunt.png"); share_wx(a); a = GameTools.uw({ Op: "#btn_bg.png", Fk: function() { La = new Sa; this.C(La, 1E3) }.bind(this), Ep: !0, label: d }); e.C(a); e.YB(140); this.C(e) } }); var Va = Oa.extend({ ctor: function(a) { this._super(); this.XB(); this.T(); this.Fk = a }, Qb: function() { this.Fk(); this.Rn(!0); return !0 }, T: function() { var a = b.ld, d = new b.B("#game_start.png"); d.x = a.width / 2; d.y = a.height / 2; this.C(d); d = new b.B("#munu_logo.png"); d.x = a.width / 2; d.y = 0.05 * a.height; this.C(d) } }); var ab = Oa.extend({ ctor: function() { this._super(); var a = b.ld; this.XB(); var d = new b.zm; d.Nb({ x: 0, y: 0.08 * a.height }); this.C(d); var e = GameTools.uw({ Op: "#AD.jpg", Fk: function() { window.location.href = "#" }, Ep: !1 }); e.x = a.width / 2; e.y = a.height / 2; d.C(e); var f = GameTools.uw({ Op: "#btn_close.png", Fk: function() { this.Rn(!0) }.bind(this), Ep: !1 }); f.x = a.width / 2 + e.width / 2; f.y = a.height / 2 + e.height / 2; d.C(f) } }); b.pb.wL = function() { var a = b.fa; a.xj === a.wq || a.xj === a.RE ? b.view.rK(!0) : b.view.rK(!1); b.view.R6(!0); b.P.Sn(b.jb.EN); b.view.yx(720, 1280, b.$f.SHOW_ALL); b.view.Dca(!0); b.KE.aca(function() { var a = b.ld; Da = 0.02 * a.height; Ea = 0.01 * a.height; Fa = (a.height - Da - Ea) / 3; Ga = Da + Fa; Ha = Da + 2 * Fa; Ia = Da + 3 * Fa; Ja = 0.42 * a.width; Ka = 0.5 * Fa; b.P.GD(new Za) }, this) }; b.pb.Jca();