var f = f || {}; f.U = f.U || {}; f.l = {}; q = window; q = Object.prototype; delete window._p; f.fd = function(c) { return document.createElement(c) }; f.ub = function(c, d, e, g) { c.addEventListener(d, e, g) }; f.I$ = "undefined" !== typeof require && require("fs"); f.Wca = function(c, d) { if (c) if (c instanceof Array) for (var e = 0, g = c.length; e < g && !1 !== d.call(void 0, c[e], e); e++); else for (e in c) if (!1 === d.call(void 0, c[e], e)) break }; f.Q0 = function(c) { if (!c) return f.log("invalid URL"), !1; var d = c.indexOf("://"); if (-1 == d) return !1; d = c.indexOf("/", d + 3); return (-1 == d ? c : c.substring(0, d)) != location.origin }; f.async = { b9: function(c) { var d = this.tca; if (!d.O_) { var e = d.length, g = d.uga, h = d.Bfa, k = h.Yh, m = h.nca, n = h.s3, h = h.D5a; if (c) { if (d.O_ = c, k) return k.call(m, c) } else { var p = Array.apply(null, arguments).slice(1), s = p.length; 0 == s ? p = null : 1 == s && (p = p[0]); g[this.index] = p; d.count--; n && n.call(h, p, e - d.count, e); 0 == d.count && k && k.apply(m, [null, g]) } } }, S9: function() {}, f0a: function(c, d, e) { var g = f.async; if (void 0 !== e) "function" == typeof d && (d = { s3: d }), d.Yh = e || d.Yh; else if (void 0 !== d) "function" == typeof d && (d = { Yh: d }); else if (void 0 !== c) d = {}; else throw "arguments error!"; var h = (e = c instanceof Array) ? c.length : Object.keys(c).length; if (0 == h) d.Yh && d.Yh.call(d.nca, null); else { var k = { length: h, count: h, Bfa: d, uga: e ? [] : {} }; f.Wca(c, function(c, e) { if (k.O_) return !1; var h = d.Yh || d.s3 ? g.b9.bind({ tca: k, index: e }) : g.S9; c(h, e) }) } }, map: function(c, d, e) { var g = this, h = arguments.length; "function" == typeof d && (d = { X0: d }); if (3 === h) d.Yh = e || d.Yh; else if (2 > h) throw "arguments error!"; "function" == typeof d && (d = { X0: d }); if (void 0 !== e) d.Yh = e || d.Yh; else if (void 0 === c) throw "arguments error!"; var k = (h = c instanceof Array) ? c.length : Object.keys(c).length; if (0 === k) d.Yh && d.Yh.call(d.nca, null); else { var m = { length: k, count: k, Bfa: d, uga: h ? [] : {} }; f.Wca(c, function(c, e) { if (m.O_) return !1; var h = d.Yh ? g.b9.bind({ tca: m, index: e }) : g.S9; d.X0.call(d.hDa, c, e, h) }) } } }; f.path = { join: function() { for (var c = arguments.length, d = "", e = 0; e < c; e++) d = (d + ("" == d ? "" : "/") + arguments[e]).replace(/(\/|\\\\)$/, ""); return d }, zp: function(c) { return (c = /(\.[^\.\/\?\\]*)(\?.*)?$/.exec(c)) ? c[1] : null }, o_a: function(c) { if (c) { var d = c.lastIndexOf("."); if (-1 !== d) return c.substring(0, d) } return c }, Dwa: function(c, d) { var e = c.indexOf("?"); 0 < e && (c = c.substring(0, e)); e = /(\/|\\\\)([^(\/|\\\\)]+)$/g.exec(c.replace(/(\/|\\\\)$/, "")); if (!e) return null; e = e[2]; return d && c.substring(c.length - d.length).toLowerCase() == d.toLowerCase() ? e.substring(0, e.length - d.length) : e }, dirname: function(c) { return c.replace(/((.*)(\/|\\|\\\\))?(.*?\..*$)?/, "$2") }, c_: function(c, d) { d = d || ""; var e = c.indexOf("?"), g = ""; 0 < e && (g = c.substring(e), c = c.substring(0, e)); e = c.lastIndexOf("."); return 0 > e ? c + d + g : c.substring(0, e) + d + g }, pB: function(c, d, e) { if (0 == d.indexOf(".")) return this.c_(c, d); var g = c.indexOf("?"), h = ""; e = e ? this.zp(c) : ""; 0 < g && (h = c.substring(g), c = c.substring(0, g)); g = c.lastIndexOf("/"); return c.substring(0, 0 >= g ? 0 : g + 1) + d + e + h } }; f.L = { P$: {}, rN: {}, Ssa: {}, xv: {}, MQ: "", vwa: "", jj: {}, LH: function() { return window.XMLHttpRequest ? new window.XMLHttpRequest : new ActiveXObject("MSXML2.XMLHTTP") }, n$: function(c) { var d = c[0], e = c[1], g = c[2], h = ["", null, null]; if (1 === c.length) h[1] = d instanceof Array ? d : [d]; else if (2 === c.length) "function" == typeof e ? (h[1] = d instanceof Array ? d : [d], h[2] = e) : (h[0] = d || "", h[1] = e instanceof Array ? e : [e]); else if (3 === c.length) h[0] = d || "", h[1] = e instanceof Array ? e : [e], h[2] = g; else throw "arguments error to load js!"; return h }, ODa: function(c, d, e) { var g = this, h = g.P$, k = g.n$(arguments); - 1 < navigator.userAgent.indexOf("Trident/5") ? g.W$(k[0], k[1], 0, k[2]) : f.async.map(k[1], function(c, d, e) { c = f.path.join(k[0], c); if (h[c]) return e(null); g.c9(c, !1, e) }, k[2]) }, hfa: function(c, d, e) { var g = this.Vsa(), h = this.n$(arguments); this.ODa(h[0], h[1], function(c) { if (c) throw c; g.parentNode.removeChild(g); if (h[2]) h[2]() }) }, c9: function(c, d, e) { var g = document, h = f.fd("script"); h.async = d; h.src = c; this.P$[c] = !0; f.ub(h, "load", function() { this.removeEventListener("load", arguments.callee, !1); e() }, !1); f.ub(h, "error", function() { e("Load " + c + " failed!") }, !1); g.body.appendChild(h) }, W$: function(c, d, e, g) { if (e >= d.length) g && g(); else { var h = this; h.c9(f.path.join(c, d[e]), !1, function(k) { if (k) return g(k); h.W$(c, d, e + 1, g) }) } }, Vsa: function() { var c = document, d = c.getElementById("cocos2d_loadJsImg"); if (!d) { d = f.fd("img"); f.Y$ && (d.src = f.Y$); c = c.getElementById(f.vf.kj.id); c.style.backgroundColor = "black"; c.parentNode.appendChild(d); var e = getComputedStyle ? getComputedStyle(c) : c.currentStyle; e || (e = { width: c.width, height: c.height }); d.style.left = c.offsetLeft + (parseFloat(e.width) - d.width) / 2 + "px"; d.style.top = c.offsetTop + (parseFloat(e.height) - d.height) / 2 + "px"; d.style.position = "absolute" } return d }, lQ: function(c, d) { if (f.I$) require("fs").F0a(c, function(c, e) { c ? d(c) : d(null, e.toString()) }); else { var e = this.LH(), g = "load " + c + " failed!"; e.open("GET", c, !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(g) }) : (e.overrideMimeType && e.overrideMimeType("text/plain; charset\x3dutf-8"), e.onload = function() { 4 == e.readyState && 200 == e.status ? d(null, e.responseText) : d(g) }); e.send(null) } }, X$: function(c) { if (f.I$) return require("fs").G0a(c).toString(); var d = this.LH(); d.open("GET", c, !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 }, ifa: function(c, d) { this.lQ(c, function(e, g) { try { e ? d(e) : d(null, JSON.parse(g)) } catch (h) { throw "load json [" + c + "] failed : " + h; } }) }, V8: function(c) { return null != /(\.png)|(\.jpg)|(\.bmp)|(\.jpeg)|(\.gif)/.exec(c) }, eI: function(c, d, e) { var g = !0; void 0 !== e ? g = null == d.Q0 ? g : d.Q0 : void 0 !== d && (e = d); var h = new Image; g && "file://" != location.origin && (h.crossOrigin = "Anonymous"); f.ub(h, "load", function() { this.removeEventListener("load", arguments.callee, !1); this.removeEventListener("error", arguments.callee, !1); e && e(null, h) }); f.ub(h, "error", function() { this.removeEventListener("error", arguments.callee, !1); e && e("load image failed") }); h.src = c; return h }, Wsa: function(c, d, e) { var g = this, h = null; (d = c.type) ? (d = "." + d.toLowerCase(), h = c.src ? c.src : c.name + d) : (h = c, d = f.path.zp(h)); var k = g.jj[h]; if (k) return e(null, k); k = g.rN[d.toLowerCase()]; if (!k) return f.error("loader for [" + d + "] not exists!"), e(); d = g.u0(k.gP ? k.gP() : g.MQ, h); k.load(d, h, c, function(c, d) { c ? (f.log(c), g.jj[h] = null, delete g.jj[h], e()) : (g.jj[h] = d, e(null, d)) }) }, u0: function(c, d) { var e = this.Ssa, g = f.path; if (void 0 !== c && void 0 === d) { d = c; var h = g.zp(d), h = h ? h.toLowerCase() : ""; c = (h = this.rN[h]) ? h.gP ? h.gP() : this.MQ : this.MQ } d = f.path.join(c || "", d); if (d.match(/[\/(\\\\)]lang[\/(\\\\)]/i)) { if (e[d]) return e[d]; g = g.zp(d) || ""; d = e[d] = d.substring(0, d.length - g.length) + "_" + f.Ed.language + g } return d }, load: function(c, d, e) { if (void 0 !== e) "function" == typeof d && (d = { s3: d }); else if (void 0 !== d) "function" == typeof d && (e = d, d = {}); else if (void 0 !== c) d = {}; else throw "arguments error!"; d.Yh = function(c, d) { c && f.log(c); e && e(d) }; c instanceof Array || (c = [c]); d.X0 = this.Wsa; d.hDa = this; f.async.map(c, d) }, y$: function(c, d) { var e = this.xv, g = [], h; for (h in c) { var k = c[h]; e[h] = k; g.push(k) } this.load(g, d) }, k_a: function(c, d) { var e = this, g = e.zd(c); g ? e.y$(g.filenames, d) : e.load(c, function(c) { e.y$(c[0].filenames, d) }) }, Xp: function(c, d) { if (c && d) { if ("string" == typeof c) return this.rN[c.trim().toLowerCase()] = d; for (var e = 0, g = c.length; e < g; e++) this.rN["." + c[e].trim().toLowerCase()] = d } }, zd: function(c) { return this.jj[c] || this.jj[this.xv[c]] }, wh: function(c) { var d = this.jj, e = this.xv; delete d[c]; delete d[e[c]]; delete e[c] }, R0a: function() { var c = this.jj, d = this.xv, e; for (e in c) delete c[e]; for (e in d) delete d[e] } }; (function() { function c() { f.Qa && f.vf.ht && f.Qa.dispatchEvent(f.vf.ht) } function d() { f.Qa && f.vf.gt && f.Qa.dispatchEvent(f.vf.gt) } var e = window, g, h; "undefined" !== typeof document.hidden ? (g = "hidden", h = "visibilitychange") : "undefined" !== typeof document.mozHidden ? (g = "mozHidden", h = "mozvisibilitychange") : "undefined" !== typeof document.msHidden ? (g = "msHidden", h = "msvisibilitychange") : "undefined" !== typeof document.webkitHidden && (g = "webkitHidden", h = "webkitvisibilitychange"); g ? f.ub(document, h, function() { document[g] ? d() : c() }, !1) : (f.ub(e, "blur", d, !1), f.ub(e, "focus", c, !1)); "onpageshow" in window && "onpagehide" in window && (f.ub(e, "pagehide", d, !1), f.ub(e, "pageshow", c, !1)); h = e = null })(); f.log = f.warn = f.error = f.assert = function() {}; f.xca = function(c, d) { for (var e = ["webgl", "experimental-webgl", "webkit-3d", "moz-webgl"], g = null, h = 0; h < e.length; ++h) { try { g = c.getContext(e[h], d) } catch (k) {} if (g) break } return g }; f.Asa = function(c, d) { f.fb = 0; f.na = 1; var e = f.Ed = {}; e.kma = "en"; e.DLa = "zh"; e.ELa = "fr"; e.HLa = "it"; e.FLa = "de"; e.OLa = "es"; e.NLa = "ru"; e.JLa = "ko"; e.ILa = "ja"; e.GLa = "hu"; e.MLa = "pt"; e.CLa = "ar"; e.KLa = "no"; e.LLa = "pl"; e.Wma = "Windows"; e.l6 = "iOS"; e.m6 = "OS X"; e.Uma = "UNIX"; e.Tma = "Linux"; e.Sma = "Android"; e.Vma = "Unknown"; e.xja = "wechat"; e.tja = "androidbrowser"; e.cS = "ie"; e.uja = "qqbrowser"; e.Y3 = "mqqbrowser"; e.vja = "ucbrowser"; e.gKa = "360browser"; e.hKa = "baiduboxapp"; e.X3 = "baidubrowser"; e.iKa = "maxthon"; e.dS = "opera"; e.jKa = "miuibrowser"; e.jD = "firefox"; e.eS = "safari"; e.bS = "chrome"; e.wja = "unknown"; e.$Ca = !1; var g = [e.X3, e.dS, e.jD, e.bS, e.eS], h = [e.X3, e.dS, e.jD, e.bS, e.eS, e.vja, e.uja, e.Y3, e.cS], k = window, m = k.navigator, n = document.documentElement, p = m.userAgent.toLowerCase(); e.Or = -1 != p.indexOf("mobile") || -1 != p.indexOf("android"); var s = m.language, s = (s = s ? s : m.browserLanguage) ? s.split("-")[0] : e.kma; e.language = s; var s = e.wja, u = p.match(/micromessenger|qqbrowser|mqqbrowser|ucbrowser|360browser|baiduboxapp|baidubrowser|maxthon|trident|opera|miuibrowser|firefox/i) || p.match(/chrome|safari/i); u && 0 < u.length && (s = u[0].toLowerCase(), "micromessenger" == s ? s = e.xja : "safari" === s && p.match(/android.*applewebkit/) ? s = e.tja : "trident" == s && (s = e.cS)); e.gx = s; e.iva = -1 < h.indexOf(e.gx); h = parseInt(c[d.LQ]); s = f.na; u = f.fd("Canvas"); f.BG = !0; g = -1 == g.indexOf(e.gx); if (1 === h || 0 === h && (e.Or || g)) s = f.fb; s != f.na || k.WebGLRenderingContext && f.xca(u, { stencil: !0, preserveDrawingBuffer: !0 }) || (0 == h ? s = f.fb : f.BG = !1); if (s == f.fb) try { u.getContext("2d") } catch (v) { f.BG = !1 } f.K = s; try { e.RN = !!new(k.AudioContext || k.webkitAudioContext || k.mozAudioContext) } catch (z) { e.RN = !1 } try { var A = e.localStorage = k.localStorage; A.setItem("storage", ""); A.removeItem("storage"); A = null } catch (B) { "SECURITY_ERR" !== B.name && "QuotaExceededError" !== B.name || f.warn("Warning: localStorage isn't enabled. Please confirm browser cookie or privacy option"), e.localStorage = function() {} } A = e.$Z = { canvas: !0 }; f.K == f.na && (A.opengl = !0); void 0 !== n.ontouchstart || m.msPointerEnabled ? A.touches = !0 : void 0 !== n.onmouseup && (A.mouse = !0); void 0 !== n.onkeyup && (A.keyboard = !0); if (k.DeviceMotionEvent || k.DeviceOrientationEvent) A.accelerometer = !0; k = p.match(/(iPad|iPhone|iPod)/i) ? !0 : !1; p = p.match(/android/i) || m.platform.match(/android/i) ? !0 : !1; n = e.Vma; - 1 != m.appVersion.indexOf("Win") ? n = e.Wma : k ? n = e.l6 : -1 != m.appVersion.indexOf("Mac") ? n = e.m6 : -1 != m.appVersion.indexOf("X11") ? n = e.Uma : -1 != m.appVersion.indexOf("Linux") ? n = e.Tma : p && (n = e.Sma); e.y1 = n; e.TRa = function() {}; e.hRa = function() {}; e.I1a = function() {}; e.fRa = function() { var c; c = "" + ("isMobile : " + this.Or + "\r\n"); c += "language : " + this.language + "\r\n"; c += "browserType : " + this.gx + "\r\n"; c += "capabilities : " + JSON.stringify(this.$Z) + "\r\n"; c += "os : " + this.y1 + "\r\n"; f.log(c) } }; f.hMa = 0; f.iMa = 1; f.fMa = 2; f.gMa = 3; f.If = null; f.s = null; f.Sb = null; f.wra = null; f.uN = !1; f.$aa = !1; f.Zaa = function(c) { var d, e; if (!f.$aa) { f.$aa = !0; var g = window; g.a2 = g.requestAnimationFrame || g.webkitRequestAnimationFrame || g.mozRequestAnimationFrame || g.oRequestAnimationFrame || g.msRequestAnimationFrame; var h = f.mc(c) || f.mc("#" + c), k; "CANVAS" == h.tagName ? (d = d || h.width, e = e || h.height, k = f.container = f.fd("DIV"), c = f.Sb = h, c.parentNode.insertBefore(k, c), c.cx(k), k.setAttribute("id", "Cocos2dGameContainer")) : ("DIV" != h.tagName && f.log("Warning: target element is not a DIV or CANVAS"), d = d || h.clientWidth, e = e || h.clientHeight, k = f.container = h, c = f.Sb = f.mc(f.fd("CANVAS")), h.appendChild(c)); c.Qba("gameCanvas"); c.setAttribute("width", d || 480); c.setAttribute("height", e || 320); c.setAttribute("tabindex", 99); c.style.outline = "none"; h = k.style; h.width = (d || 480) + "px"; h.height = (e || 320) + "px"; h.margin = "0 auto"; h.position = "relative"; h.overflow = "hidden"; k.top = "100%"; f.K == f.na && (f.s = f.W5a = f.xca(c, { stencil: !0, preserveDrawingBuffer: !0, antialias: !f.Ed.Or, alpha: !1 })); f.s ? (g.gl = f.s, f.If = new f.gla(f.s), f.uN = !0, f.nb.Fsa(), f.xg.FF()) : (f.s = c.getContext("2d"), f.Ysa = f.s, f.s.translate(0, c.height), f.If = f.a5 ? new f.a5(f.s) : null); f.wra = k; f.log(f.JS); f.pua(); f.Ed.Or && (d = f.fd("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);}"); f.view = f.HS.rW(); f.Gea.EFa(f.Sb); f.Q = f.ic.rW(); f.Q.B2 && f.Q.B2(f.view); f.gq = f.Q.Y; f.fGa = new f.pK; f.dFa = new f.jna } }; f.tV = function() { if (f.K !== f.na) throw "This feature supports WebGL render mode only."; }; f.H$ = !1; f.pua = function() { f.H$ = !1; f.Sb.oncontextmenu = function() { if (!f.H$) return !1 } }; f.vf = { U4: 0, Wka: 1, MKa: 2, Vka: 3, BS: 4, V4: 5, T4: 6, UJ: "game_on_hide", vD: "game_on_show", gt: null, ht: null, FOa: [], Vm: { M_: "engineDir", KQa: "dependencies", iH: "debugMode", cIa: "showFPS", cP: "frameRate", id: "id", LQ: "renderMode", iDa: "jsList", Wwa: "classReleaseMode" }, saa: !1, FX: !1, Ce: !0, MW: null, kj: null, Sp: null, M_a: null, k3a: function(c) { this.kj[this.Vm.cP] = c; this.MW && clearInterval(this.MW); this.Ce = !0; this.ZX() }, ZX: function() { var c = this, d, e = c.kj, g = c.Vm, h = window, k = e[g.cP], m = f.Q; m.OGa(e[g.cIa]); h.a2 && 60 == k ? (d = function() { c.Ce || (m.lfa(), h.a2(d)) }, h.a2(d)) : (d = function() { m.lfa() }, c.MW = setInterval(d, 1E3 / k)); c.Ce = !1 }, eGa: function(c) { function d() { c && (e.kj[e.Vm.id] = c); e.saa ? f.BG && (e.Fqa = setInterval(function() { e.FX && (f.Zaa(e.kj[e.Vm.id]), e.ZX(), e.gt = e.gt || new f.kq(e.UJ), e.gt.setUserData(e), e.ht = e.ht || new f.kq(e.vD), e.ht.setUserData(e), e.Sp(), clearInterval(e.Fqa)) }, 10)) : e.mFa(function() { f.BG && (f.Zaa(e.kj[e.Vm.id]), e.ZX(), e.gt = e.gt || new f.kq(e.UJ), e.gt.setUserData(e), e.ht = e.ht || new f.kq(e.vD), e.ht.setUserData(e), e.Sp()) }) } var e = this; document.body ? d() : f.ub(window, "load", function() { this.removeEventListener("load", arguments.callee, !1); d() }, !1) }, vsa: function() { function c(c) { c[d.M_] = c[d.M_] || "frameworks/cocos2d-html5"; null == c[d.iH] && (c[d.iH] = 0); c[d.cP] = c[d.cP] || 60; null == c[d.LQ] && (c[d.LQ] = 1); return c } var d = this.Vm; if (document.ccConfig) this.kj = c(document.ccConfig); else try { for (var e = document.getElementsByTagName("script"), g = 0; g < e.length; g++) { var h = e[g].getAttribute("cocos"); if ("" == h || h) break } var k, m, n; if (g < e.length) { if (k = e[g].src) n = /(.*)\//.exec(k)[0], f.L.MQ = n, k = f.path.join(n, "project.json"); m = f.L.X$(k) } m || (m = f.L.X$("project.json")); var p = JSON.parse(m); this.kj = c(p || {}) } catch (s) { f.log("Failed to read or parse project.json"), this.kj = c({}) } f.Asa(this.kj, d) }, Psa: {}, q$: function(c, d, e) { var g = this.Psa; if (g[d]) return null; e = e || ""; var h = [], k = c[d]; if (!k) throw "can not find module [" + d + "]"; d = f.path; for (var m = 0, n = k.length; m < n; m++) { var p = k[m]; if (!g[p]) { var s = d.zp(p); s ? ".js" == s.toLowerCase() && h.push(d.join(e, p)) : (s = this.q$(c, p, e)) && (h = h.concat(s)); g[p] = 1 } } return h }, mFa: function(c) { var d = this, e = d.kj, g = d.Vm, h = e[g.M_], k = f.L; if (f.BG) { d.saa = !0; var m = e[g.iDa] || []; f.N ? k.hfa("", m, function(e) { if (e) throw e; d.FX = !0; c && c() }) : (g = f.path.join(h, "moduleConfig.json"), k.ifa(g, function(g, k) { if (g) throw g; var s = e.modules || [], u = k.module, v = []; f.K == f.na ? s.splice(0, 0, "shaders") : 0 > s.indexOf("core") && s.splice(0, 0, "core"); for (var z = 0, A = s.length; z < A; z++) { var B = d.q$(u, s[z], h); B && (v = v.concat(B)) } v = v.concat(m); f.L.hfa(v, function(e) { if (e) throw e; d.FX = !0; c && c() }) })) } else f.error("Can not support render!") } }; f.vf.vsa(); f.l = { N3: "cc.ActionManager.addAction(): action must be non-null", aja: "cocos2d: removeAction: Target not found", JJa: "cc.ActionManager.removeActionByTag(): an invalid tag", KJa: "cc.ActionManager.removeActionByTag(): target must be non-null", Zia: "cc.ActionManager.getActionByTag(): an invalid tag", $ia: "cocos2d : getActionByTag(tag \x3d %s): Action not found", $wa: "cocos2d: **** WARNING **** CC_ENABLE_PROFILERS is defined. Disable it when you finish profiling (from ccConfig.js)", axa: "Expected 'data' dict, but not found. Config file: %s", bxa: "Please load the resource first : %s", bla: "cocos2d: Director: Error in gettimeofday", cla: "cocos2d: Director: unrecognized projection", XKa: "cocos2d: Director: unrecognized projection", ala: "cocos2d: Director: Error in gettimeofday", $ka: "running scene should not null", Z4: "the scene should not null", mB: "element type is wrong!", Vna: "CCSheduler#scheduleCallback. Callback already scheduled. Updating interval from:%s to %s", Wna: "cc.scheduler.scheduleCallbackForTarget(): callback_fn should be non-null.", Xna: "cc.scheduler.scheduleCallbackForTarget(): target should be non-null.", Tna: "cc.Scheduler.pauseTarget():target should be non-null", Una: "cc.Scheduler.resumeTarget():target should be non-null", Sna: "cc.Scheduler.isTargetPaused():target should be non-null", Cma: "getZOrder is deprecated. Please use getLocalZOrder instead.", Nma: "setZOrder is deprecated. Please use setLocalZOrder instead.", Ama: "RotationX !\x3d RotationY. Don't know which one to return", Bma: "ScaleX !\x3d ScaleY. Don't know which one to return", wma: "An Node can't be added as a child of itself.", xma: "child already added. It can't be added again", yma: "child must be non-null", Hma: "removeFromParentAndCleanup is deprecated. Use removeFromParent instead", Fma: "argument tag is an invalid tag", Gma: "cocos2d: removeChildByTag(tag \x3d %s): child not found!", Ema: "removeAllChildrenWithCleanup is deprecated. Use removeAllChildren instead", Oma: "cc.Node.stopActionBy(): argument tag an invalid tag", zma: "cc.Node.getActionByTag(): argument tag is an invalid tag", Jma: "resumeSchedulerAndActions is deprecated, please use resume instead.", Dma: "pauseSchedulerAndActions is deprecated, please use pause instead.", vma: "Unknown callback function", Ima: "child must be non-null", Kma: "cc.Node.runAction(): action must be non-null", Lma: "callback function must be non-null", Mma: "interval must be positive", $La: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", jja: "cc.AtlasNode.updateAtlasValues(): Shall be overridden in subclasses", TJa: "", P3: "cocos2d: Could not initialize cc.AtlasNode. Invalid Texture.", Opa: "cc._EventListenerKeyboard.checkAvailable(): Invalid EventListenerKeyboard!", Qpa: "cc._EventListenerTouchOneByOne.checkAvailable(): Invalid EventListenerTouchOneByOne!", Ppa: "cc._EventListenerTouchAllAtOnce.checkAvailable(): Invalid EventListenerTouchAllAtOnce!", Npa: "cc._EventListenerAcceleration.checkAvailable(): _onAccelerationEvent must be non-nil", zla: "Invalid parameter.", LK: "Don't call this method if the event is for touch.", Uya: "Invalid scene graph priority!", Vya: "0 priority is forbidden for fixed priority since it's used for scene graph based priority.", Zya: "Invalid listener type!", $ya: "Can't set fixed priority with scene graph based listener.", Wya: "Invalid parameters.", Xya: "listener must be a cc.EventListener object when adding a fixed priority listener", Yya: "The listener has been registered, please don't register it again.", nma: "parameters should not be ending with null in Javascript", oma: "Invalid index in MultiplexLayer switchTo message", pma: "Invalid index in MultiplexLayer switchTo message", mma: "cc.Layer.addLayer(): layer should be non-null", kla: "Resolution not valid", lla: "should set resolutionPolicy", JCa: "The touches is more than MAX_TOUCHES, nUnusedIndex \x3d %s", ria: "cc.swap is being modified from original macro, please check usage", rB: "WebGL error %s", ewa: "cocos2d: cc.AnimationCache: No animations were found in provided dictionary.", fwa: "cc.AnimationCache. Invalid animation format", mwa: "cc.AnimationCache.addAnimations(): File could not be found", gwa: "cocos2d: cc.AnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", hwa: "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.", iwa: "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.", jwa: "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.", kwa: "cocos2d: CCAnimationCache: Animation '%s' found in dictionary without any frames - cannot add to animation cache.", lwa: "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.", nwa: "cc.AnimationCache.addAnimations(): Invalid texture file name", zoa: "cc.Sprite.reorderChild(): this child is not in children list", roa: "cc.Sprite.ignoreAnchorPointForPosition(): it is invalid in cc.Sprite when using SpriteBatchNode", Coa: "cc.Sprite.setDisplayFrameWithAnimationName(): Frame not found", Doa: "cc.Sprite.setDisplayFrameWithAnimationName(): Invalid frame index", Boa: "setDisplayFrame is deprecated, please use setSpriteFrame instead.", koa: "cc.Sprite._updateBlendFunc(): _updateBlendFunc doesn't work when the sprite is rendered using a cc.CCSpriteBatchNode", toa: "cc.Sprite.initWithSpriteFrame(): spriteFrame should be non-null", uoa: "cc.Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null", voa: " is null, please check.", soa: "cc.Sprite.initWithFile(): filename should be non-null", Eoa: "cc.Sprite.setDisplayFrameWithAnimationName(): animationName must be non-null", Aoa: "cc.Sprite.reorderChild(): child should be non-null", loa: "cc.Sprite.addChild(): cc.Sprite only supports cc.Sprites as children when using cc.SpriteBatchNode", moa: "cc.Sprite.addChild(): cc.Sprite only supports a sprite using same texture as children when using cc.SpriteBatchNode", noa: "cc.Sprite.addChild(): child should be non-null", Goa: "cc.Sprite.texture setter: Batched sprites should use the same texture as the batchnode", DMa: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", xoa: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", ooa: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", poa: "cc.SpriteBatchNode.addChild(): cc.Sprite is not using the same texture", woa: "Sprite.initWithTexture(): Argument must be non-nil ", Foa: "Invalid spriteFrameName", Hoa: "Invalid argument: cc.Sprite.texture setter expects a CCTexture2D.", EMa: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", yoa: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", qoa: "cc.SpriteBatchNode.addChild(): child should be non-null", doa: "cc.SpriteBatchNode.addQuadFromSprite(): SpriteBatchNode only supports cc.Sprites as children", foa: "cocos2d: CCSpriteBatchNode: resizing TextureAtlas capacity from %s to %s.", goa: "cocos2d: WARNING: Not enough memory to resize the atlas", ioa: "cc.SpriteBatchNode.addChild(): Child doesn't belong to Sprite", hoa: "cc.SpriteBatchNode.addChild(): sprite batch node should contain the child", eoa: "cc.SpriteBatchNode.addQuadFromSprite(): child should be non-null", joa: "cc.SpriteBatchNode.addChild():child should be non-null", kIa: "cocos2d: WARNING: originalWidth/Height not found on the cc.SpriteFrame. AnchorPoint won't work as expected. Regenrate the .plist", mIa: "cocos2d: WARNING: an alias with name %s already exists", jIa: "cocos2d: WARNING: Sprite frame: %s has already been added by another source, please fix name conflit", pIa: "cocos2d: cc.SpriteFrameCahce: Frame %s not found", lIa: "Please load the resource first : %s", nIa: "cc.SpriteFrameCache.addSpriteFrames(): plist should be non-null", oIa: "Argument must be non-nil", lS: "cc.SpriteBatchNode.updateQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", Mja: "cc.SpriteBatchNode.insertQuadFromSprite(): cc.SpriteBatchNode only supports cc.Sprites as children", Ija: "cc.SpriteBatchNode.addChild(): cc.SpriteBatchNode only supports cc.Sprites as children", Lja: "Sprite.initWithTexture(): Argument must be non-nil ", Jja: "cc.Sprite.addChild(): child should be non-null", Oja: "Invalid spriteFrameName", Pja: "Invalid argument: cc.Sprite texture setter expects a CCTexture2D.", Qja: "cc.SpriteBatchNode.updateQuadFromSprite(): sprite should be non-null", Nja: "cc.SpriteBatchNode.insertQuadFromSprite(): sprite should be non-null", Kja: "cc.SpriteBatchNode.addChild(): child should be non-null", hpa: "cocos2d: Could not open file: %s", z7: "cc.TextureAtlas.insertQuad(): invalid totalQuads", ipa: "cc.TextureAtlas.initWithTexture():texture should be non-null", spa: "cc.TextureAtlas.updateQuad(): quad should be non-null", tpa: "cc.TextureAtlas.updateQuad(): Invalid index", lpa: "cc.TextureAtlas.insertQuad(): Invalid index", mpa: "cc.TextureAtlas.insertQuad(): Invalid index + amount", jpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid newIndex", kpa: "cc.TextureAtlas.insertQuadFromIndex(): Invalid fromIndex", qpa: "cc.TextureAtlas.removeQuadAtIndex(): Invalid index", rpa: "cc.TextureAtlas.removeQuadsAtIndex(): index + amount out of bounds", npa: "cc.TextureAtlas.moveQuadsFromIndex(): move is out of bounds", opa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid newIndex", ppa: "cc.TextureAtlas.moveQuadsFromIndex(): Invalid oldIndex", BIa: "TextureCache:addPVRTCImage does not support on HTML5", zIa: "TextureCache:addPVRTCImage does not support on HTML5", AIa: "addPVRImage does not support on HTML5", CIa: "cocos2d: Couldn't add UIImage in TextureCache", EIa: "cocos2d: '%s' id\x3d%s %s x %s", tia: "cocos2d: '%s' id\x3d HTMLCanvasElement %s x %s", FIa: "cocos2d: TextureCache dumpDebugInfo: %s textures, HTMLCanvasElement for %s KB (%s MB)", DIa: "cc.Texture.addUIImage(): image should be non-null", Zoa: "initWithETCFile does not support on HTML5", cpa: "initWithPVRFile does not support on HTML5", epa: "initWithPVRTCData does not support on HTML5", Voa: "cc.Texture.addImage(): path should be non-null", apa: "cocos2d: cc.Texture2D. Can't create Texture. UIImage is nil", bpa: "cocos2d: WARNING: Image (%s x %s) is bigger than the supported %s x %s", gpa: "initWithString isn't supported on cocos2d-html5", $oa: "initWithETCFile does not support on HTML5", dpa: "initWithPVRFile does not support on HTML5", fpa: "initWithPVRTCData does not support on HTML5", Xoa: "bitsPerPixelForFormat: %s, cannot give useful result, it's a illegal pixel format", Uoa: "cocos2d: cc.Texture2D: Using RGB565 texture since image has no alpha", Woa: "cc.Texture.addImage(): path should be non-null", Yoa: "NSInternalInconsistencyException", Hf: "Missing file: %s", Tfa: "cc.radiansToDegress() should be called cc.radiansToDegrees()", HT: "Rect width exceeds maximum margin: %s", GT: "Rect height exceeds maximum margin: %s", Ala: "If program goes here, there should be event in dispatch.", Bla: "_inDispatch should be 1 here." }; f.IM = function(c) { if (f.Sb) { var d = f.Xsa, e = document; if (!d) { var g = e.createElement("Div"), d = g.style; g.setAttribute("id", "logInfoDiv"); f.Sb.parentNode.appendChild(g); g.setAttribute("width", "200"); g.setAttribute("height", f.Sb.height); d.zIndex = "99999"; d.position = "absolute"; d.top = "0"; d.left = "0"; d = f.Xsa = e.createElement("textarea"); e = d.style; d.setAttribute("rows", "20"); d.setAttribute("cols", "30"); d.setAttribute("disabled", !0); g.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 } c = "string" == typeof c ? c : JSON.stringify(c); d.value = d.value + c + "\r\n"; d.scrollTop = d.scrollHeight } }; f.gM = function(c) { if ("object" === typeof c) try { return JSON.stringify(c) } catch (d) { return "" } else return c }; console.log && (f.log = function(c) { for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, f.gM(arguments[d])); console.log(c) }, f.warn = console.warn ? function(c) { for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, f.gM(arguments[d])); console.warn(c) } : f.log, f.error = console.error ? function(c) { for (var d = 1; d < arguments.length; d++) c = c.replace(/(%s)|(%d)/, f.gM(arguments[d])); console.error(c) } : f.log, f.assert = function(c, d) { if (!c && d) { for (var e = 2; e < arguments.length; e++) d = d.replace(/(%s)|(%d)/, f.gM(arguments[e])); throw d; } }); var aa = f.vf.kj[f.vf.Vm.iH], ba = f.vf; console.log && aa === ba.Wka || (f.log = aa == ba.BS ? f.IM.bind(f) : function() {}); aa && aa != ba.U4 && aa != ba.Vka && aa != ba.T4 || (f.warn = function() {}); aa != ba.BS && aa != ba.V4 && console.warn || (f.warn = f.IM.bind(f)); aa && aa != ba.U4 ? aa != ba.BS && aa != ba.V4 && aa != ba.T4 && console.error || (f.error = f.IM.bind(f), f.assert = function(c, d) { if (!c && d) { for (var e = 2; e < arguments.length; e++) d = d.replace("%s", arguments[e]); f.IM(d) } }) : (f.error = function() {}, f.assert = function() {}); f.L.LDa = function(c, d) { var e = this, g = this.LH(), h = "load " + c + " failed!"; g.open("GET", c, !0); /msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent) ? (g.setRequestHeader("Accept-Charset", "x-user-defined"), g.onreadystatechange = function() { if (4 == g.readyState && 200 == g.status) { var c = f.zV(g.responseBody); d(null, e.NN(c)) } else d(h) }) : (g.overrideMimeType && g.overrideMimeType("text/plain; charset\x3dx-user-defined"), g.onload = function() { 4 == g.readyState && 200 == g.status ? d(null, e.NN(g.responseText)) : d(h) }); g.send(null) }; f.L.NN = function(c) { if (!c) return null; for (var d = new Uint8Array(c.length), e = 0; e < c.length; e++) d[e] = c.charCodeAt(e) & 255; return d }; f.L.gfa = function(c) { var d = this.LH(), e = "load " + c + " failed!"; d.open("GET", c, !1); c = 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 f.log(e), null; (d = f.zV(d.responseBody)) && (c = this.NN(d)) } else { d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined"); d.send(null); if (200 != d.status) return f.log(e), null; c = this.NN(d.responseText) } return c }; var Uint8Array = Uint8Array || Array; if (/msie/i.test(navigator.userAgent) && !/opera/i.test(navigator.userAgent)) { var ca = f.fd("script"); ca.type = "text/vbscript"; ca.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(ca); f.zV = function(c) { for (var d = {}, e = 0; 256 > e; e++) for (var g = 0; 256 > g; g++) d[String.fromCharCode(e + 256 * g)] = String.fromCharCode(e) + String.fromCharCode(g); e = IEBinaryToArray_ByteStr(c); c = IEBinaryToArray_ByteStr_Last(c); return e.replace(/[\s\S]/g, function(c) { return d[c] }) + c } }; f = f || {}; f.Y$ = "data:image/gif;base64,R0lGODlhEAAQALMNAD8/P7+/vyoqKlVVVX9/fxUVFUBAQGBgYMDAwC8vL5CQkP///wAAAP///wAAAAAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQFAAANACwAAAAAEAAQAAAEO5DJSau9OOvNex0IMnDIsiCkiW6g6BmKYlBFkhSUEgQKlQCARG6nEBwOgl+QApMdCIRD7YZ5RjlGpCUCACH5BAUAAA0ALAAAAgAOAA4AAAQ6kLGB0JA4M7QW0hrngRllkYyhKAYqKUGguAws0ypLS8JxCLQDgXAIDg+FRKIA6v0SAECCBpXSkstMBAAh+QQFAAANACwAAAAACgAQAAAEOJDJORAac6K1kDSKYmydpASBUl0mqmRfaGTCcQgwcxDEke+9XO2WkxQSiUIuAQAkls0n7JgsWq8RACH5BAUAAA0ALAAAAAAOAA4AAAQ6kMlplDIzTxWC0oxwHALnDQgySAdBHNWFLAvCukc215JIZihVIZEogDIJACBxnCSXTcmwGK1ar1hrBAAh+QQFAAANACwAAAAAEAAKAAAEN5DJKc4RM+tDyNFTkSQF5xmKYmQJACTVpQSBwrpJNteZSGYoFWjIGCAQA2IGsVgglBOmEyoxIiMAIfkEBQAADQAsAgAAAA4ADgAABDmQSVZSKjPPBEDSGucJxyGA1XUQxAFma/tOpDlnhqIYN6MEAUXvF+zldrMBAjHoIRYLhBMqvSmZkggAIfkEBQAADQAsBgAAAAoAEAAABDeQyUmrnSWlYhMASfeFVbZdjHAcgnUQxOHCcqWylKEohqUEAYVkgEAMfkEJYrFA6HhKJsJCNFoiACH5BAUAAA0ALAIAAgAOAA4AAAQ3kMlJq704611SKloCAEk4lln3DQgyUMJxCBKyLAh1EMRR3wiDQmHY9SQslyIQUMRmlmVTIyRaIgA7"; f.Qz = "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"; f.VW = "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"; var f = f || {}, da = { id: 0 | 998 * Math.random(), MCa: 0 | 998 * Math.random(), rca: function(c, d, e) { c = c.toString(); var g = c.substring(c.indexOf("(") + 1, c.indexOf(")")), g = g.trim(); for (c = c.substring(c.indexOf("{") + 1, c.lastIndexOf("}")); - 1 != c.indexOf("this._super");) { var h = c.indexOf("this._super"), k = c.indexOf("(", h), m = c.substring(k + 1, c.indexOf(")", k)), m = m.trim(); c = c.substring(0, h) + "ClassManager[" + e + "]." + d + ".call(this" + (m ? "," : "") + c.substring(k + 1) } return Function(g, c) }, Hda: function() { return this.id++ }, HAa: function() { return this.MCa++ } }; da.rca.KKa = da; (function() { var c = /\b_super\b/, d = f.vf.kj[f.vf.Vm.Wwa]; d && console.log("release Mode"); f.N = function() {}; f.N.extend = function(e) { function g() { this.yb = da.HAa(); this.ctor && this.ctor.apply(this, arguments) } var h = this.prototype, k = Object.create(h), m = da.Hda(); da[m] = h; var n = { writable: !0, enumerable: !1, configurable: !0 }; k.yb = null; g.id = m; n.value = m; Object.defineProperty(k, "__pid", n); g.prototype = k; n.value = g; Object.defineProperty(g.prototype, "constructor", n); this.Go && (g.Go = f.p(this.Go)); this.Ho && (g.Ho = f.p(this.Ho)); for (var p = 0, s = arguments.length; p < s; ++p) { var u = arguments[p], v; for (v in u) { var z = "function" === typeof u[v], A = "function" === typeof h[v], B = c.test(u[v]); d && z && A && B ? (n.value = da.rca(u[v], v, m), Object.defineProperty(k, v, n)) : z && A && B ? (n.value = function(c, d) { return function() { var e = this._super; this._super = h[c]; var g = d.apply(this, arguments); this._super = e; return g } }(v, u[v]), Object.defineProperty(k, v, n)) : z ? (n.value = u[v], Object.defineProperty(k, v, n)) : k[v] = u[v]; if (z) { var C, G; if (this.Go && this.Go[v]) { var z = this.Go[v], L; for (L in this.Ho) if (this.Ho[L] == z) { G = L; break } f.d(k, z, u[v], u[G] ? u[G] : k[G], v, G) } if (this.Ho && this.Ho[v]) { z = this.Ho[v]; for (L in this.Go) if (this.Go[L] == z) { C = L; break } f.d(k, z, u[C] ? u[C] : k[C], u[v], C, v) } } } } g.extend = f.N.extend; g.$Wa = function(c) { for (var d in c) k[d] = c[d] }; return g }; Function.prototype.bind = Function.prototype.bind || function(c) { var d = this; return function() { var h = Array.prototype.slice.call(arguments); return d.apply(c || null, h) } } })(); f.d = function(c, d, e, g, h, k) { if (c.__defineGetter__) e && c.__defineGetter__(d, e), g && c.__defineSetter__(d, g); else if (Object.defineProperty) { var m = { enumerable: !1, configurable: !0 }; e && (m.get = e); g && (m.set = g); Object.defineProperty(c, d, m) } else throw Error("browser does not support getters"); if (!h && !k) for (var m = null != e, n = void 0 != g, p = Object.getOwnPropertyNames(c), s = 0; s < p.length; s++) { var u = p[s]; if ((c.__lookupGetter__ ? !c.__lookupGetter__(u) : !Object.getOwnPropertyDescriptor(c, u)) && "function" === typeof c[u]) { var v = c[u]; if (m && v === e && (h = u, !n || k)) break; if (n && v === g && (k = u, !m || h)) break } } c = c.constructor; h && (c.Go || (c.Go = {}), c.Go[h] = d); k && (c.Ho || (c.Ho = {}), c.Ho[k] = d) }; f.p = function(c) { var d = c.constructor ? new c.constructor : {}, e; for (e in c) { var g = c[e]; d[e] = "object" != typeof g || !g || g instanceof f.v || g instanceof HTMLElement ? g : f.p(g) } return d }; f = f || {}; f.U = f.U || {}; f.PPa = function() {}; f.Jy = { fca: 8, wIa: 9, N_: 13, shift: 16, GQa: 17, alt: 18, pause: 19, aQa: 20, escape: 27, e0a: 33, d0a: 34, end: 35, home: 36, left: 37, I5a: 38, right: 39, bRa: 40, dXa: 45, VKa: 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, G: 67, P: 68, wm: 69, Tn: 70, g: 71, Vf: 72, QH: 73, XP: 74, YP: 75, hQ: 76, mQ: 77, Xr: 78, tQ: 79, AQ: 80, JQ: 81, r: 82, ll: 83, o3: 84, Da: 85, ga: 86, da: 87, x: 88, y: 89, z: 90, v_a: 96, w_a: 97, x_a: 98, y_a: 99, z_a: 100, A_a: 101, B_a: 102, C_a: 103, D_a: 104, E_a: 105, "*": 106, "+": 107, "-": 109, numdel: 110, "/": 111, xRa: 112, BRa: 113, CRa: 114, DRa: 115, ERa: 116, FRa: 117, GRa: 118, HRa: 119, IRa: 120, yRa: 121, zRa: 122, ARa: 123, I_a: 144, j2a: 145, m2a: 186, ",": 186, sRa: 187, "\x3d": 187, ";": 188, uQa: 188, HQa: 189, ".": 190, l0a: 190, QRa: 191, UWa: 192, "[": 219, P_a: 219, "]": 221, qQa: 221, QPa: 220, quote: 222, h3: 32 }; f.kLa = 0; f.NS = 1; f.q5 = 2; f.lLa = 3; f.mLa = 4; f.Gla = 5; f.gAa = function(c) { return 8 < c.length && 137 == c[0] && 80 == c[1] && 78 == c[2] && 71 == c[3] && 13 == c[4] && 10 == c[5] && 26 == c[6] && 10 == c[7] ? f.NS : 2 < c.length && (73 == c[0] && 73 == c[1] || 77 == c[0] && 77 == c[1] || 255 == c[0] && 216 == c[1]) ? f.q5 : f.Gla }; f.aXa = function(c, d) { function e() {} e.prototype = d.prototype; c.MR = d.prototype; c.prototype = new e; c.prototype.constructor = c }; f.RPa = function(c, d, e) { var g = arguments.callee.caller; if (g.MR) return ret = g.MR.constructor.apply(c, Array.prototype.slice.call(arguments, 1)); for (var h = Array.prototype.slice.call(arguments, 2), k = !1, m = c.constructor; m; m = m.MR && m.MR.constructor) if (m.prototype[d] === g) k = !0; else if (k) return m.prototype[d].apply(c, h); if (c[d] === g) return c.constructor.prototype[d].apply(c, h); throw Error("cc.base called from a method of one name to a method of a different name"); }; f.pMa = function(c, d) { this.x = c || 0; this.y = d || 0 }; function r(c, d) { return void 0 == c ? { x: 0, y: 0 } : void 0 == d ? { x: c.x, y: c.y } : { x: c, y: d } } f.I1 = function(c, d) { return c && d && c.x === d.x && c.y === d.y }; f.BMa = function(c, d) { this.width = c || 0; this.height = d || 0 }; function t(c, d) { return void 0 === c ? { width: 0, height: 0 } : void 0 === d ? { width: c.width, height: c.height } : { width: c, height: d } } f.X4a = function(c, d) { return c && d && c.width == d.width && c.height == d.height }; f.Qy = function(c, d, e, g) { this.x = c || 0; this.y = d || 0; this.width = e || 0; this.height = g || 0 }; function x(c, d, e, g) { return void 0 === c ? { x: 0, y: 0, width: 0, height: 0 } : void 0 === d ? { x: c.x, y: c.y, width: c.width, height: c.height } : { x: c, y: d, width: e, height: g } } f.Yfa = function(c, d) { return c && d && c.x === d.x && c.y === d.y && c.width === d.width && c.height === d.height }; f.gG = function(c) { return c && 0 === c.x && 0 === c.y && 0 === c.width && 0 === c.height }; f.K0a = function(c, d) { return c && d ? !(c.x >= d.x || c.y >= d.y || c.x + c.width <= d.x + d.width || c.y + c.height <= d.y + d.height) : !1 }; f.Vp = function(c) { return c.x + c.width }; f.L0a = function(c) { return c.x + c.width / 2 }; f.fo = function(c) { return c.x }; f.Wp = function(c) { return c.y + c.height }; f.M0a = function(c) { return c.y + c.height / 2 }; f.ho = function(c) { return c.y }; f.Bu = function(c, d) { return d.x >= f.fo(c) && d.x <= f.Vp(c) && d.y >= f.ho(c) && d.y <= f.Wp(c) }; f.BFa = function(c, d) { var e = c.y + c.height, g = d.x + d.width, h = d.y + d.height; return !(c.x + c.width < d.x || g < c.x || e < d.y || h < c.y) }; f.N0a = function(c, d) { return !(c.x + c.width < d.x || d.x + d.width < c.x || c.y + c.height < d.y || d.y + d.height < c.y) }; f.zC = function(c, d) { var e = x(0, 0, 0, 0); e.x = Math.min(c.x, d.x); e.y = Math.min(c.y, d.y); e.width = Math.max(c.x + c.width, d.x + d.width) - e.x; e.height = Math.max(c.y + c.height, d.y + d.height) - e.y; return e }; f.AFa = function(c, d) { var e = x(Math.max(f.fo(c), f.fo(d)), Math.max(f.ho(c), f.ho(d)), 0, 0); e.width = Math.min(f.Vp(c), f.Vp(d)) - f.fo(e); e.height = Math.min(f.Wp(c), f.Wp(d)) - f.ho(e); return e }; f.pK = f.N.extend({ maa: null, PW: null, ctor: function() { window.DOMParser ? (this.PW = !0, this.maa = new DOMParser) : this.PW = !1 }, parse: function(c) { return this.sX(c) }, sX: function(c) { var d; this.PW ? d = this.maa.parseFromString(c, "text/xml") : (d = new ActiveXObject("Microsoft.XMLDOM"), d.async = "false", d.loadXML(c)); return d } }); f.jna = f.pK.extend({ parse: function(c) { c = this.sX(c).documentElement; if ("plist" != c.tagName) throw "Not a plist file!"; for (var d = null, e = 0, g = c.childNodes.length; e < g && (d = c.childNodes[e], 1 != d.nodeType); e++); return this.rX(d) }, rX: function(c) { var d = null, e = c.tagName; if ("dict" == e) d = this.zta(c); else if ("array" == e) d = this.yta(c); else if ("string" == e) if (1 == c.childNodes.length) d = c.firstChild.nodeValue; else for (d = "", e = 0; e < c.childNodes.length; e++) d += c.childNodes[e].nodeValue; else "false" == e ? d = !1 : "true" == e ? d = !0 : "real" == e ? d = parseFloat(c.firstChild.nodeValue) : "integer" == e && (d = parseInt(c.firstChild.nodeValue, 10)); return d }, yta: function(c) { for (var d = [], e = 0, g = c.childNodes.length; e < g; e++) { var h = c.childNodes[e]; 1 == h.nodeType && d.push(this.rX(h)) } return d }, zta: function(c) { for (var d = {}, e = null, g = 0, h = c.childNodes.length; g < h; g++) { var k = c.childNodes[g]; 1 == k.nodeType && ("key" == k.tagName ? e = k.firstChild.nodeValue : d[e] = this.rX(k)) } return d } }); f.wba = { load: function(c, d, e, g) { f.L.lQ(c, g) } }; f.L.Xp(["txt", "xml", "vsh", "fsh", "atlas"], f.wba); f.Qsa = { load: function(c, d, e, g) { f.L.ifa(c, g) } }; f.L.Xp(["json", "ExportJson"], f.Qsa); f.rsa = { load: function(c, d, e, g) { f.L.jj[d] = f.L.eI(c, function(c, e) { if (c) return g(c); f.nb.$d(d); g(null, e) }) } }; f.L.Xp("png jpg bmp jpeg gif ico".split(" "), f.rsa); f.iua = { load: function(c, d, e, g) { f.L.jj[d] = f.L.eI(e.src, function(c, e) { if (c) return g(c); f.nb.$d(d); g(null, e) }) } }; f.L.Xp(["serverImg"], f.iua); f.Eta = { load: function(c, d, e, g) { f.L.lQ(c, function(c, d) { if (c) return g(c); g(null, f.dFa.parse(d)) }) } }; f.L.Xp(["plist"], f.Eta); f.vra = { Qoa: { ".eot": "embedded-opentype", ".ttf": "truetype", ".woff": "woff", ".svg": "svg" }, V$: function(c, d, e) { var g = document, h = f.path, k = this.Qoa, m = f.fd("style"); m.type = "text/css"; g.body.appendChild(m); var n = "@font-face { font-family:" + c + "; src:"; if (d instanceof Array) for (var p = 0, s = d.length; p < s; p++) e = h.zp(d[p]).toLowerCase(), n += "url('" + d[p] + "') format('" + k[e] + "')", n += p == s - 1 ? ";" : ","; else n += "url('" + d + "') format('" + k[e] + "');"; m.textContent += n + "};"; d = f.fd("div"); e = d.style; e.fontFamily = c; d.innerHTML = "."; e.position = "absolute"; e.left = "-100px"; e.top = "-100px"; g.body.appendChild(d) }, load: function(c, d, e, g) { d = e.type; c = e.name; d = e.a5a; "string" == typeof e ? (d = f.path.zp(e), c = f.path.Dwa(e, d), this.V$(c, e, d)) : this.V$(c, d); g(null, !0) } }; f.L.Xp(["font", "eot", "ttf", "woff", "svg"], f.vra); f.uqa = { load: function(c, d, e, g) { f.L.LDa(c, g) } }; window.CocosEngine = f.JS = "Cocos2d-html5 v3.0 RC1"; f.Ey = 0; f.DS = r(0, 0); f.Xka = 0.5; f.AKa = 1; f.LT = 1; f.Rma = 0; f.n7 = 0; f.TT = 0; f.GMa = 0; f.sMa = 1; f.rMa = "-hd"; f.Hpa = 1; f.ys = 0; f.yMa = 0; f.jma = 0; f.ima = 0; f.YS = 1; f.NKa = f.JS + "-canvas"; f.SJ = 1; f.Zm = 1; f.mc = function(c) { var d = this == f ? document : this; if (c = c instanceof HTMLElement ? c : d.querySelector(c)) c.find = c.find || f.mc, c.A0 = c.A0 || function(c) { return this.className.match(RegExp("(\\s|^)" + c + "(\\s|$)")) }, c.Qba = c.Qba || function(c) { this.A0(c) || (this.className && (this.className += " "), this.className += c); return this }, c.OFa = c.OFa || function(c) { this.A0(c) && (this.className = this.className.replace(c, "")); return this }, c.remove = c.remove || function() { this.parentNode && this.parentNode.removeChild(this); return this }, c.cx = c.cx || function(c) { c.appendChild(this); return this }, c.nFa = c.nFa || function(c) { c.childNodes[0] ? c.insertBefore(this, c.childNodes[0]) : c.appendChild(this); return this }, c.ny = c.ny || function() { this.style[f.mc.KIa] = f.mc.translate(this.position) + f.mc.rotate(this.rotation) + f.mc.scale(this.scale) + f.mc.ky(this.ky); return this }, c.position = c.position || { x: 0, y: 0 }, c.rotation = c.rotation || 0, c.scale = c.scale || { x: 1, y: 1 }, c.ky = c.ky || { x: 0, y: 0 }, c.nJ = function(c, d) { this.position.x = c; this.position.y = d; this.ny() }, c.rotate = function(c) { this.rotation = c; this.ny(); return this }, c.resize = function(c, d) { this.scale.x = c; this.scale.y = d; this.ny(); return this }, c.Pha = function(c, d) { this.ky.x = c; this.ky.y = d; this.ny() }; return c }; switch (f.Ed.gx) { case f.Ed.jD: f.mc.yu = "Moz"; f.mc.VB = !0; break; case f.Ed.bS: case f.Ed.eS: f.mc.yu = "webkit"; f.mc.VB = !0; break; case f.Ed.dS: f.mc.yu = "O"; f.mc.VB = !1; break; case f.Ed.cS: f.mc.yu = "ms"; f.mc.VB = !1; break; default: f.mc.yu = "webkit", f.mc.VB = !0 } f.mc.KIa = f.mc.yu + "Transform"; f.mc.translate = f.mc.VB ? function(c) { return "translate3d(" + c.x + "px, " + c.y + "px, 0) " } : function(c) { return "translate(" + c.x + "px, " + c.y + "px) " }; f.mc.rotate = f.mc.VB ? function(c) { return "rotateZ(" + c + "deg) " } : function(c) { return "rotate(" + c + "deg) " }; f.mc.scale = function(c) { return "scale(" + c.x + ", " + c.y + ") " }; f.mc.ky = function(c) { return "skewX(" + -c.x + "deg) skewY(" + c.y + "deg)" }; f.bD = function(c) { return f.mc(document.createElement(c)) }; f.mc.NRa = function(c) { var d = 0, e = 0; do d += c.offsetLeft, e += c.offsetTop; while (c = c.offsetParent); return { x: d, y: e } }; f.wo = -1; f.PI = Math.PI; f.gv = parseFloat("3.402823466e+38F"); f.p5 = parseFloat("1.175494351e-38F"); f.tna = f.PI / 180; f.W4 = 180 / f.PI; f.oU = 4294967295; f.ria = function(c, d, e) { if ("object" == typeof e && "undefined" != typeof e.x && "undefined" != typeof e.y) { var g = e[c]; e[c] = e[d]; e[d] = g } else f.log(f.l.ria) }; f.g_a = function(c, d, e) { return c + (d - c) * e }; f.jd = function() { return 16777215 * Math.random() }; f.uFa = function() { return 2 * (Math.random() - 0.5) }; f.U1 = Math.random; f.sg = function(c) { return c * f.tna }; f.yC = function(c) { return c * f.W4 }; f.Tfa = function(c) { f.log(f.l.Tfa); return c * f.W4 }; f.mv = Number.MAX_VALUE - 1; f.Mc = f.Rma ? 1 : 770; f.Lc = 771; f.qC = function(c) { c.sd && (c.sd.Ff(), c.sd.zj()) }; f.nRa = function() {}; f.QQa = function() {}; f.el = function() { f.bl += 1 }; f.aK = 1.192092896E-7; f.Uc = f.YS ? function() { return f.Q.Vl } : function() { return 1 }; f.eFa = function(c) { var d = f.Uc(); return r(c.x * d, c.y * d) }; f.J1 = function(c) { var d = f.Uc(); return r(c.x / d, c.y / d) }; f.xX = function(c, d) { var e = f.Uc(); d.x = c.x / e; d.y = c.y / e }; f.dIa = function(c) { var d = f.Uc(); return t(c.width * d, c.height * d) }; f.eia = function(c) { var d = f.Uc(); return t(c.width / d, c.height / d) }; f.eba = function(c, d) { var e = f.Uc(); d.width = c.width / e; d.height = c.height / e }; f.cs = f.YS ? function(c) { var d = f.Uc(); return x(c.x / d, c.y / d, c.width / d, c.height / d) } : function(c) { return c }; f.FI = f.YS ? function(c) { var d = f.Uc(); return x(c.x * d, c.y * d, c.width * d, c.height * d) } : function(c) { return c }; f.ONE = 1; f.ZERO = 0; f.SRC_ALPHA = 770; f.SRC_ALPHA_SATURATE = 776; f.SRC_COLOR = 768; f.DST_ALPHA = 772; f.DST_COLOR = 774; f.ONE_MINUS_SRC_ALPHA = 771; f.ONE_MINUS_SRC_COLOR = 769; f.ONE_MINUS_DST_ALPHA = 773; f.ONE_MINUS_DST_COLOR = 775; f.ONE_MINUS_CONSTANT_ALPHA = 32772; f.ONE_MINUS_CONSTANT_COLOR = 32770; f.rB = function() { if (f.LQ == f.na) { var c = f.s.getError(); c && f.log(CC.Ya.rB, c) } }; f.RKa = 0; f.PKa = 1; f.SKa = 2; f.QKa = 3; f.OKa = 2; f.jNa = 0; f.Gh = 1; f.HK = 2; f.Wy = 4; f.tv = f.Gh | f.HK | f.Wy; f.oLa = 0; f.Oc = 0; f.Mi = 1; f.$g = 2; f.kNa = 3; f.rU = 0; f.qU = 1; f.yE = 2; f.vU = 3; f.uU = 4; f.pU = 5; f.sU = 6; f.tU = 7; f.eNa = 8; f.zo = "ShaderPositionTextureColor"; f.tK = "ShaderPositionTextureColorAlphaTest"; f.sK = "ShaderPositionColor"; f.jE = "ShaderPositionTexture"; f.uK = "ShaderPositionTexture_uColor"; f.JT = "ShaderPositionTextureA8Color"; f.KT = "ShaderPosition_uColor"; f.c7 = "ShaderPositionLengthTextureColor"; f.Bpa = "CC_PMatrix"; f.zpa = "CC_MVMatrix"; f.Apa = "CC_MVPMatrix"; f.Fpa = "CC_Time"; f.Epa = "CC_SinTime"; f.ypa = "CC_CosTime"; f.Cpa = "CC_Random01"; f.Dpa = "CC_Texture0"; f.g8 = "CC_alpha_value"; f.fD = "a_color"; f.Wu = "a_position"; f.vy = "a_texCoord"; f.Vla = 32; f.L4 = 3233828865; f.IK = 3233828866; f.uma = 8801; f.yna = 8802; f.Zka = 8803; f = f || {}; f.U = f.U || {}; f.U.zU = function() { f.color = function(c, e, g, h, k, m) { return void 0 === c ? new f.Aj(0, 0, 0, 255, k, m) : "string" === typeof c ? (c = f.pea(c), new f.Aj(c.r, c.g, c.b, c.a)) : "object" === typeof c ? new f.Aj(c.r, c.g, c.b, c.a, c.DO, c.offset) : new f.Aj(c, e, g, h, k, m) }; f.Aj = function(c, e, g, h, k, m) { this.ag = k || new ArrayBuffer(f.Aj.BYTES_PER_ELEMENT); this.hb = m || 0; k = this.ag; m = this.hb; var n = Uint8Array.BYTES_PER_ELEMENT; this.PX = new Uint8Array(k, m, 1); this.lW = new Uint8Array(k, m + n, 1); this.XU = new Uint8Array(k, m + 2 * n, 1); this.JU = new Uint8Array(k, m + 3 * n, 1); this.PX[0] = c || 0; this.lW[0] = e || 0; this.XU[0] = g || 0; this.JU[0] = h || 255; void 0 === h && (this.Yw = !0) }; f.Aj.BYTES_PER_ELEMENT = 4; var c = f.Aj.prototype; c.Zra = function() { return this.PX[0] }; c.Aua = function(c) { this.PX[0] = 0 > c ? 0 : c }; c.Jra = function() { return this.lW[0] }; c.rua = function(c) { this.lW[0] = 0 > c ? 0 : c }; c.Cra = function() { return this.XU[0] }; c.kua = function(c) { this.XU[0] = 0 > c ? 0 : c }; c.zra = function() { return this.JU[0] }; c.jua = function(c) { this.JU[0] = 0 > c ? 0 : c }; f.d(c, "r", c.Zra, c.Aua); f.d(c, "g", c.Jra, c.rua); f.d(c, "b", c.Cra, c.kua); f.d(c, "a", c.zra, c.jua); f.he = function(c, e, g, h) { this.ag = g || new ArrayBuffer(f.he.BYTES_PER_ELEMENT); this.hb = h || 0; this.Ww = new Float32Array(this.ag, this.hb, 1); this.Xw = new Float32Array(this.ag, this.hb + 4, 1); this.Ww[0] = c || 0; this.Xw[0] = e || 0 }; f.he.BYTES_PER_ELEMENT = 8; Object.defineProperties(f.he.prototype, { x: { get: function() { return this.Ww[0] }, set: function(c) { this.Ww[0] = c }, enumerable: !0 }, y: { get: function() { return this.Xw[0] }, set: function(c) { this.Xw[0] = c }, enumerable: !0 } }); f.Oe = function(c, e, g, h, k) { this.ag = h || new ArrayBuffer(f.Oe.BYTES_PER_ELEMENT); this.hb = k || 0; h = this.ag; k = this.hb; this.Ww = new Float32Array(h, k, 1); this.Ww[0] = c || 0; this.Xw = new Float32Array(h, k + Float32Array.BYTES_PER_ELEMENT, 1); this.Xw[0] = e || 0; this.pZ = new Float32Array(h, k + 2 * Float32Array.BYTES_PER_ELEMENT, 1); this.pZ[0] = g || 0 }; f.Oe.BYTES_PER_ELEMENT = 12; Object.defineProperties(f.Oe.prototype, { x: { get: function() { return this.Ww[0] }, set: function(c) { this.Ww[0] = c }, enumerable: !0 }, y: { get: function() { return this.Xw[0] }, set: function(c) { this.Xw[0] = c }, enumerable: !0 }, z: { get: function() { return this.pZ[0] }, set: function(c) { this.pZ[0] = c }, enumerable: !0 } }); f.Cs = function(c, e, g, h) { this.ag = g || new ArrayBuffer(f.Cs.BYTES_PER_ELEMENT); this.hb = h || 0; this.VY = new Float32Array(this.ag, this.hb, 1); this.cZ = new Float32Array(this.ag, this.hb + 4, 1); this.VY[0] = c || 0; this.cZ[0] = e || 0 }; f.Cs.BYTES_PER_ELEMENT = 8; Object.defineProperties(f.Cs.prototype, { Da: { get: function() { return this.VY[0] }, set: function(c) { this.VY[0] = c }, enumerable: !0 }, ga: { get: function() { return this.cZ[0] }, set: function(c) { this.cZ[0] = c }, enumerable: !0 } }); f.ET = function(c, e, g, h, k, m) { this.ag = k || new ArrayBuffer(f.ET.BYTES_PER_ELEMENT); this.hb = m || 0; k = this.ag; m = f.he.BYTES_PER_ELEMENT; this.$A = c ? new f.he(c.x, c.y, k, 0) : new f.he(0, 0, k, 0); this.eB = e ? new f.he(e.x, e.y, k, m) : new f.he(0, 0, k, m); this.iz = g ? new f.he(g.x, g.y, k, 2 * m) : new f.he(0, 0, k, 2 * m); this.mz = h ? new f.he(h.x, h.y, k, 3 * m) : new f.he(0, 0, k, 3 * m) }; f.ET.BYTES_PER_ELEMENT = 32; f.oK = function(c, e, g, h) { this.T = c || new f.Oe(0, 0, 0); this.aa = e || new f.Oe(0, 0, 0); this.Z = g || new f.Oe(0, 0, 0); this.W = h || new f.Oe(0, 0, 0) }; Object.defineProperties(f.ET.prototype, { Z: { get: function() { return this.$A }, set: function(c) { this.$A.x = c.x; this.$A.y = c.y }, enumerable: !0 }, W: { get: function() { return this.eB }, set: function(c) { this.eB.x = c.x; this.eB.y = c.y }, enumerable: !0 }, T: { get: function() { return this.iz }, set: function(c) { this.iz.x = c.x; this.iz.y = c.y }, enumerable: !0 }, aa: { get: function() { return this.mz }, set: function(c) { this.mz.x = c.x; this.mz.y = c.y }, enumerable: !0 } }); f.Pl = function(c, e, g, h, k) { this.ag = h || new ArrayBuffer(f.Pl.BYTES_PER_ELEMENT); this.hb = k || 0; h = this.ag; k = this.hb; var m = f.Oe.BYTES_PER_ELEMENT; this.ec = c ? new f.Oe(c.x, c.y, c.z, h, k) : new f.Oe(0, 0, 0, h, k); this.YE = e ? f.color(e.r, e.g, e.b, e.a, h, k + m) : f.color(0, 0, 0, 0, h, k + m); this.Vk = g ? new f.Cs(g.Da, g.ga, h, k + m + f.Aj.BYTES_PER_ELEMENT) : new f.Cs(0, 0, h, k + m + f.Aj.BYTES_PER_ELEMENT) }; f.Pl.BYTES_PER_ELEMENT = 24; Object.defineProperties(f.Pl.prototype, { k: { get: function() { return this.ec }, set: function(c) { var e = this.ec; e.x = c.x; e.y = c.y; e.z = c.z }, enumerable: !0 }, D: { get: function() { return this.YE }, set: function(c) { var e = this.YE; e.r = c.r; e.g = c.g; e.b = c.b; e.a = c.a }, enumerable: !0 }, t: { get: function() { return this.Vk }, set: function(c) { this.Vk.Da = c.Da; this.Vk.ga = c.ga }, enumerable: !0 } }); f.Yc = function(c, e, g, h, k, m) { this.ag = k || new ArrayBuffer(f.Yc.BYTES_PER_ELEMENT); this.hb = m || 0; k = this.ag; m = this.hb; var n = f.Pl.BYTES_PER_ELEMENT; this.$A = c ? new f.Pl(c.k, c.D, c.t, k, m) : new f.Pl(null, null, null, k, m); this.iz = e ? new f.Pl(e.k, e.D, e.t, k, m + n) : new f.Pl(null, null, null, k, m + n); this.eB = g ? new f.Pl(g.k, g.D, g.t, k, m + 2 * n) : new f.Pl(null, null, null, k, m + 2 * n); this.mz = h ? new f.Pl(h.k, h.D, h.t, k, m + 3 * n) : new f.Pl(null, null, null, k, m + 3 * n) }; f.Yc.BYTES_PER_ELEMENT = 96; Object.defineProperties(f.Yc.prototype, { Z: { get: function() { return this.$A }, set: function(c) { var e = this.$A; e.k = c.k; e.D = c.D; e.t = c.t }, enumerable: !0 }, T: { get: function() { return this.iz }, set: function(c) { var e = this.iz; e.k = c.k; e.D = c.D; e.t = c.t }, enumerable: !0 }, W: { get: function() { return this.eB }, set: function(c) { var e = this.eB; e.k = c.k; e.D = c.D; e.t = c.t }, enumerable: !0 }, aa: { get: function() { return this.mz }, set: function(c) { var e = this.mz; e.k = c.k; e.D = c.D; e.t = c.t }, enumerable: !0 }, DO: { get: function() { return this.ag }, enumerable: !0 } }); f.i8 = function() { return new f.Yc }; f.h8 = function(c) { if (!c) return f.i8(); var e = c.Z, g = c.T, h = c.W; c = c.aa; return { Z: { k: { x: e.k.x, y: e.k.y, z: e.k.z }, D: { r: e.D.r, g: e.D.g, b: e.D.b, a: e.D.a }, t: { Da: e.t.Da, ga: e.t.ga } }, T: { k: { x: g.k.x, y: g.k.y, z: g.k.z }, D: { r: g.D.r, g: g.D.g, b: g.D.b, a: g.D.a }, t: { Da: g.t.Da, ga: g.t.ga } }, W: { k: { x: h.k.x, y: h.k.y, z: h.k.z }, D: { r: h.D.r, g: h.D.g, b: h.D.b, a: h.D.a }, t: { Da: h.t.Da, ga: h.t.ga } }, aa: { k: { x: c.k.x, y: c.k.y, z: c.k.z }, D: { r: c.D.r, g: c.D.g, b: c.D.b, a: c.D.a }, t: { Da: c.t.Da, ga: c.t.ga } } } }; f.hNa = function(c) { if (!c) return []; for (var e = [], g = 0; g < c.length; g++) e.push(f.h8(c[g])); return e }; f.Zg = function(c, e, g, h, k) { this.ag = h || new ArrayBuffer(f.Zg.BYTES_PER_ELEMENT); this.hb = k || 0; h = this.ag; k = this.hb; var m = f.he.BYTES_PER_ELEMENT; this.ec = c ? new f.he(c.x, c.y, h, k) : new f.he(0, 0, h, k); this.YE = e ? f.color(e.r, e.g, e.b, e.a, h, k + m) : f.color(0, 0, 0, 0, h, k + m); this.Vk = g ? new f.Cs(g.Da, g.ga, h, k + m + f.Aj.BYTES_PER_ELEMENT) : new f.Cs(0, 0, h, k + m + f.Aj.BYTES_PER_ELEMENT) }; f.Zg.BYTES_PER_ELEMENT = 20; Object.defineProperties(f.Zg.prototype, { k: { get: function() { return this.ec }, set: function(c) { this.ec.x = c.x; this.ec.y = c.y }, enumerable: !0 }, D: { get: function() { return this.YE }, set: function(c) { var e = this.YE; e.r = c.r; e.g = c.g; e.b = c.b; e.a = c.a }, enumerable: !0 }, t: { get: function() { return this.Vk }, set: function(c) { this.Vk.Da = c.Da; this.Vk.ga = c.ga }, enumerable: !0 } }); f.ge = function(c, e, g, h, k) { this.ag = h || new ArrayBuffer(f.ge.BYTES_PER_ELEMENT); this.hb = k || 0; h = this.ag; k = this.hb; var m = f.Zg.BYTES_PER_ELEMENT; this.t8 = c ? new f.Zg(c.k, c.D, c.t, h, k) : new f.Zg(null, null, null, h, k); this.G8 = e ? new f.Zg(e.k, e.D, e.t, h, k + m) : new f.Zg(null, null, null, h, k + m); this.Q8 = g ? new f.Zg(g.k, g.D, g.t, h, k + 2 * m) : new f.Zg(null, null, null, h, k + 2 * m) }; f.ge.BYTES_PER_ELEMENT = 60; Object.defineProperties(f.ge.prototype, { a: { get: function() { return this.t8 }, set: function(c) { var e = this.t8; e.k = c.k; e.D = c.D; e.t = c.t }, enumerable: !0 }, b: { get: function() { return this.G8 }, set: function(c) { var e = this.G8; e.k = c.k; e.D = c.D; e.t = c.t }, enumerable: !0 }, G: { get: function() { return this.Q8 }, set: function(c) { var e = this.Q8; e.k = c.k; e.D = c.D; e.t = c.t }, enumerable: !0 } }) }; f.U.wT = function() { var c = f.color; c.ksa = function() { return c(255, 255, 255) }; c.osa = function() { return c(255, 255, 0) }; c.Era = function() { return c(0, 0, 255) }; c.Lra = function() { return c(0, 255, 0) }; c.$ra = function() { return c(255, 0, 0) }; c.Tra = function() { return c(255, 0, 255) }; c.Dra = function() { return c(0, 0, 0) }; c.Yra = function() { return c(255, 127, 0) }; c.Kra = function() { return c(166, 166, 166) }; f.d(c, "WHITE", c.ksa); f.d(c, "YELLOW", c.osa); f.d(c, "BLUE", c.Era); f.d(c, "GREEN", c.Lra); f.d(c, "RED", c.$ra); f.d(c, "MAGENTA", c.Tra); f.d(c, "BLACK", c.Dra); f.d(c, "ORANGE", c.Yra); f.d(c, "GRAY", c.Kra) }; f.Aj = function(c, d, e, g) { this.r = c || 0; this.g = d || 0; this.b = e || 0; this.a = g || 255 }; f.color = function(c, d, e, g) { return void 0 === c ? { r: 0, g: 0, b: 0, a: 255 } : "string" === typeof c ? f.pea(c) : "object" === typeof c ? { r: c.r, g: c.g, b: c.b, a: c.a || 255 } : { r: c, g: d, b: e, a: g || 255 } }; f.tQa = function(c, d) { return c.r === d.r && c.g === d.g && c.b === d.b }; f.Xia = function() { this.timestamp = this.z = this.y = this.x = 0 }; f.he = function(c, d) { this.x = c || 0; this.y = d || 0 }; f.Oe = function(c, d, e) { this.x = c || 0; this.y = d || 0; this.z = e || 0 }; f.Cs = function(c, d) { this.Da = c || 0; this.ga = d || 0 }; f.Um = function(c, d) { this.src = c; this.ha = d }; f.VPa = function() { return new f.Um(f.ONE, f.ZERO) }; f.pea = function(c) { c = c.replace(/^#?/, "0x"); c = parseInt(c); return f.color(c >> 16, (c >> 8) % 256, c % 256) }; f.xp = function(c) { var d = c.r.toString(16), e = c.g.toString(16), g = c.b.toString(16); return "#" + (16 > c.r ? "0" + d : d) + (16 > c.g ? "0" + e : e) + (16 > c.b ? "0" + g : g) }; f.wK = 0; f.Bo = 1; f.q7 = 2; f.zE = 0; f.wU = 1; f.j8 = 2; f.uv = f.N.extend({ kA: null, NG: null, HU: 0, ctor: function() { this.kA = {}; this.NG = {}; this.HU = 2 << (0 | 10 * Math.random()) }, Wpa: function() { this.HU++; return "key_" + this.HU }, ul: function(c, d) { if (null != d) { var e = this.Wpa(); this.kA[e] = d; this.NG[e] = c } }, Jm: function(c) { if (null == c) return null; var d = this.kA, e; for (e in d) if (d[e] === c) return this.NG[e]; return null }, R5a: function(c) { return this.Jm(c) }, Z1: function(c) { if (null != c) { var d = this.kA, e; for (e in d) if (d[e] === c) { delete this.NG[e]; delete d[e]; break } } }, q1a: function(c) { if (null != c) for (var d = 0; d < c.length; d++) this.Z1(c[d]) }, jB: function() { var c = [], d = this.kA, e; for (e in d) c.push(d[e]); return c }, $0a: function() { this.kA = {}; this.NG = {} }, count: function() { return this.jB().length } }); f.x5 = function() { this.fontName = "Arial"; this.fontSize = 12; this.textAlign = f.Bo; this.verticalAlign = f.zE; this.fillStyle = f.color(255, 255, 255, 255); this.boundingHeight = this.boundingWidth = 0; this.m3 = !1; this.strokeStyle = f.color(255, 255, 255, 255); this.lineWidth = 1; this.cia = !1; this.shadowBlur = this.shadowOffsetY = this.shadowOffsetX = 0; this.shadowOpacity = 1 }; f.K === f.na && (f.assert("function" === typeof f.U.zU, f.l.Hf, "CCTypesWebGL.js"), f.U.zU(), delete f.U.zU); f.assert("function" === typeof f.U.wT, f.l.Hf, "CCTypesPropertyDefine.js"); f.U.wT(); delete f.U.wT; f.aNa = []; f.bNa = {}; f.HS = f.N.extend({ Pq: null, mi: null, Ez: null, Bt: null, ph: null, up: null, WX: !1, VU: !0, Qq: 1, kZ: "", TX: null, ka: 1, haa: 1, ra: 1, iaa: 1, aA: 0, dX: 5, An: null, Maa: null, Qaa: null, Paa: null, Naa: null, Oaa: null, GF: !1, BNa: !1, ePa: null, w$: null, x$: null, VOa: !1, yV: null, kt: null, iW: 1, NK: !1, E$: !0, ctor: function() { var c = document, d = f.ts, e = f.Fl; this.kt = f.container.parentNode === c.body ? c.documentElement : f.container.parentNode; this.mi = t(0, 0); this.HW(); var c = f.Sb.width, g = f.Sb.height; this.Ez = t(c, g); this.Bt = t(c, g); this.ph = x(0, 0, c, g); this.up = x(0, 0, c, g); this.yV = { left: 0, top: 0 }; this.kZ = "Cocos2dHTML5"; c = f.Ed; this.Rya(c.y1 == c.l6 || c.y1 == c.m6); f.qy && f.qy.j(this.up); this.Maa = new f.Dj(d.TJ, e.KS); this.Qaa = new f.Dj(d.hna, e.SHOW_ALL); this.Paa = new f.Dj(d.TJ, e.lT); this.Naa = new f.Dj(d.TJ, e.LS); this.Oaa = new f.Dj(d.TJ, e.MS); this.w$ = f.Sb; this.x$ = f.s }, UX: function() { var c = this.Bt.width, d = this.Bt.height; this.TX && (this.HW(), this.TX.call()); 0 < c && this.u2(c, d, this.An) }, aGa: function(c) { c ? this.NK || (this.NK = !0, c = this.UX.bind(this), f.ub(window, "resize", c, !1)) : this.NK && (this.NK = !0, c = this.UX.bind(this), window.removeEventListener("resize", c, !1)) }, d4a: function(c) { if ("function" == typeof c || null == c) this.TX = c }, HW: function() { var c = this.mi; c.width = this.kt.clientWidth; c.height = this.kt.clientHeight }, sNa: function() { var c = this.Bt.width, d = this.Bt.height; 0 < c && this.u2(c, d, this.An) }, Uua: function() { if (this.E$) { var c = { "user-scalable": "no", "maximum-scale": "1.0", "initial-scale": "1.0" }, d = document.getElementsByName("viewport"), e; 0 == d.length ? (d = f.fd("meta"), d.name = "viewport", d.content = "", document.head.appendChild(d)) : d = d[0]; if (f.Ed.Or && f.Ed.gx == f.Ed.jD) d.content = "initial-scale:1"; else { e = d.content; for (var g in c) RegExp(g).test(e) || (e += ("" == e ? "" : ",") + g + "\x3d" + c[g]); d.content = e } } }, Waa: function() { var c = f.Uc(); this.ra = this.ka = c }, Iaa: function() { this.ka = this.haa; this.ra = this.iaa }, tNa: function() {}, ICa: function() { this.GF = !0 }, HPa: function(c) { this.E$ = c }, Rya: function(c) { this.WX = c ? !0 : !1 }, TXa: function() { return this.WX }, mRa: function(c) { this.VU = c ? !0 : !1 }, pXa: function() { return this.VU }, end: function() {}, OXa: function() { return null != this.w$ && null != this.x$ }, m3a: function(c) { this.iW = c; f.Q.ey(f.Q.mp) }, j5a: function() {}, r3a: function() {}, Q2a: function(c, d) { this.yV = { left: c, top: d } }, $Sa: function() { return this.yV }, Dda: function() { return t(this.mi.width, this.mi.height) }, l3a: function(c, d) { this.mi.width = c; this.mi.height = d; this.kt.style.width = c + "px"; this.kt.style.height = d + "px"; this.UX(); f.Q.ey(f.Q.mp) }, fQa: function() {}, JH: function() { return t(this.up.width, this.up.height) }, v0: function() { return r(this.up.x, this.up.y) }, ZPa: function() { return !0 }, CVa: function() { return this.An }, DHa: function(c) { if (c instanceof f.Dj) this.An = c; else { var d = f.Dj; c === d.KS && (this.An = this.Maa); c === d.SHOW_ALL && (this.An = this.Qaa); c === d.lT && (this.An = this.Paa); c === d.LS && (this.An = this.Naa); c === d.MS && (this.An = this.Oaa) } }, u2: function(c, d, e) { if (isNaN(c) || 0 == c || isNaN(d) || 0 == d) f.log(f.l.kla); else { this.DHa(e); var g = this.An; if (g) { g.Qx(this); var h = this.mi.width, k = this.mi.height; f.Ed.Or && this.Uua(this.mi.width, this.mi.height); this.HW(); if (e != this.An || c != this.Bt.width || d != this.Bt.height || h != this.mi.width || k != this.mi.height) this.Ez = t(c, d), this.Bt = t(c, d), c = g.apply(this, this.Ez), c.scale && 2 == c.scale.length && (this.ka = c.scale[0], this.ra = c.scale[1]), c.viewport && (c = this.ph = c.viewport, d = this.up, d.width = f.Sb.width / this.ka, d.height = f.Sb.height / this.ra, d.x = -c.x / this.ka, d.y = -c.y / this.ra), c = f.Q, f.gq.width = c.Y.width = this.up.width, f.gq.height = c.Y.height = this.up.height, g.Px(this), f.K == f.na && (c.Az(), c.aha()), this.haa = this.ka, this.iaa = this.ra, f.Rd && f.Rd.aua(), f.qy && f.qy.j(this.up) } else f.log(f.l.lla) } }, tH: function() { return t(this.Ez.width, this.Ez.height) }, ZHa: function(c, d, e, g) { var h = this.iW, k = this.ka, m = this.ra; f.s.viewport(c * k * h + this.ph.x * h, d * m * h + this.ph.y * h, e * k * h, g * m * h) }, vR: function(c, d, e, g) { var h = this.iW, k = this.ka, m = this.ra; f.s.scissor(c * k * h + this.ph.x * h, d * m * h + this.ph.y * h, e * k * h, g * m * h) }, dDa: function() { var c = f.s; return c.isEnabled(c.SCISSOR_TEST) }, gBa: function() { var c = f.s, d = this.ka, e = this.ra, c = c.getParameter(c.SCISSOR_BOX); return x((c[0] - this.ph.x) / d, (c[1] - this.ph.y) / e, c[2] / d, c[3] / e) }, S4a: function(c) { null != c && 0 < c.length && (this.kZ = c) }, JWa: function() { return this.kZ }, KWa: function() { return this.ph }, sP: function() { return this.ka }, BH: function() { return this.ra }, uTa: function() { return this.Qq }, m_: function(c, d, e) { return { x: this.Qq * (c - e.left), y: this.Qq * (e.top + e.height - d) } }, Tqa: function(c, d) { var e = this.ph; c.x = (this.Qq * (c.x - d.left) - e.x) / this.ka; c.y = (this.Qq * (d.top + d.height - c.y) - e.y) / this.ra }, wL: function(c) { for (var d = this.ph, e = this.ka, g = this.ra, h, k, m, n = 0; n < c.length; n++) h = c[n], k = h.kh, m = h.kp, h.oY((k.x - d.x) / e, (k.y - d.y) / g), h.NA((m.x - d.x) / e, (m.y - d.y) / g) } }); f.HS.rW = function() { this.dA || (this.dA = this.dA || new f.HS, this.dA.ICa()); return this.dA }; f.ts = f.N.extend({ Qx: function() {}, apply: function() {}, Px: function() {}, sY: function(c, d, e) { var g = c.kt; f.view.VU && f.Ed.Or && g == document.documentElement && f.screen.xwa(g); var g = f.Sb, h = f.container; h.style.width = g.style.width = d + "px"; h.style.height = g.style.height = e + "px"; h = c.Qq = 1; c.WX && (h = c.Qq = window.devicePixelRatio || 1); g.width = d * h; g.height = e * h; c = document.body; var k; c && (k = c.style) && (k.paddingTop = k.paddingTop || "0px", k.paddingRight = k.paddingRight || "0px", k.paddingBottom = k.paddingBottom || "0px", k.paddingLeft = k.paddingLeft || "0px", k.borderTop = k.borderTop || "0px", k.borderRight = k.borderRight || "0px", k.borderBottom = k.borderBottom || "0px", k.borderLeft = k.borderLeft || "0px", k.marginTop = k.marginTop || "0px", k.marginRight = k.marginRight || "0px", k.marginBottom = k.marginBottom || "0px", k.marginLeft = k.marginLeft || "0px") }, Z9: function() { document.body.insertBefore(f.container, document.body.firstChild); var c = document.body.style; c.width = window.innerWidth + "px"; c.height = window.innerHeight + "px"; c.overflow = "hidden"; c = f.container.style; c.position = "fixed"; c.left = c.top = "0px"; document.body.scrollTop = 0 } }); f.Fl = f.N.extend({ VX: { scale: [1, 1], viewport: null }, OE: function(c, d, e, g, h, k) { 2 > Math.abs(c - e) && (e = c); 2 > Math.abs(d - g) && (g = d); c = x(Math.round((c - e) / 2), Math.round((d - g) / 2), e, g); f.K == f.fb && f.s.translate(c.x, c.y + g); this.VX.scale = [h, k]; this.VX.viewport = c; return this.VX }, Qx: function() {}, apply: function() { return { scale: [1, 1] } }, Px: function() {} }); (function() { var c = f.ts.extend({ apply: function(c) { this.sY(c, c.mi.width, c.mi.height) } }), d = f.ts.extend({ apply: function(c, d) { var e = c.mi.width, g = c.mi.height, h = f.container.style, u = d.width, v = d.height, z = e / u, A = g / v, B, C; z < A ? (B = e, C = v * z) : (B = u * A, C = g); u = Math.round((e - B) / 2); C = Math.round((g - C) / 2); this.sY(c, e - 2 * u, g - 2 * C); h.marginLeft = u + "px"; h.marginRight = u + "px"; h.marginTop = C + "px"; h.marginBottom = C + "px" } }); c.extend({ Qx: function(c) { this._super(c); c.kt = document.documentElement }, apply: function(c) { this._super(c); this.Z9() } }); d.extend({ Qx: function(c) { this._super(c); c.kt = document.documentElement }, apply: function(c, d) { this._super(c, d); this.Z9() } }); var e = f.ts.extend({ apply: function(c) { this.sY(c, f.Sb.width, f.Sb.height) } }); f.ts.TJ = new c; f.ts.hna = new d; f.ts.jMa = new e; var c = f.Fl.extend({ apply: function(c, d) { var e = f.Sb.width, g = f.Sb.height; return this.OE(e, g, e, g, e / d.width, g / d.height) } }), d = f.Fl.extend({ apply: function(c, d) { var e = f.Sb.width, g = f.Sb.height, h = d.width, u = d.height, v = e / h, z = g / u, A = 0, B, C; v < z ? (A = v, B = e, C = u * A) : (A = z, B = h * A, C = g); return this.OE(e, g, B, C, A, A) } }), e = f.Fl.extend({ apply: function(c, d) { var e = f.Sb.width, g = f.Sb.height, h = d.width, u = d.height, v = e / h, z = g / u, A, B, C; v < z ? (A = z, B = h * A, C = g) : (A = v, B = e, C = u * A); return this.OE(e, g, B, C, A, A) } }), g = f.Fl.extend({ apply: function(c, d) { var e = f.Sb.width, g = f.Sb.height, h = g / d.height; return this.OE(e, g, e, g, h, h) }, Px: function(c) { f.Q.Y = c.JH() } }), h = f.Fl.extend({ apply: function(c, d) { var e = f.Sb.width, g = f.Sb.height, h = e / d.width; return this.OE(e, g, e, g, h, h) }, Px: function(c) { f.Q.Y = c.JH() } }); f.Fl.KS = new c; f.Fl.SHOW_ALL = new d; f.Fl.lT = new e; f.Fl.LS = new g; f.Fl.MS = new h })(); f.Dj = f.N.extend({ tL: null, uL: null, ctor: function(c, d) { this.IGa(c); this.KGa(d) }, Qx: function(c) { this.tL.Qx(c); this.uL.Qx(c) }, apply: function(c, d) { this.tL.apply(c, d); return this.uL.apply(c, d) }, Px: function(c) { this.tL.Px(c); this.uL.Px(c) }, IGa: function(c) { c instanceof f.ts && (this.tL = c) }, KGa: function(c) { c instanceof f.Fl && (this.uL = c) } }); f.Dj.KS = 0; f.Dj.lT = 1; f.Dj.SHOW_ALL = 2; f.Dj.LS = 3; f.Dj.MS = 4; f.Dj.Gpa = 5; f.screen = { TN: !1, DX: null, SY: "", jt: null, sra: [ ["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" ] ], j: function() { this.jt = {}; var c, d, e = this.sra, g; c = 0; for (l = e.length; c < l; c++) if ((d = e[c]) && d[1] in document) { c = 0; for (g = d.length; c < g; c++) this.jt[e[0][c]] = d[c]; break } this.TN = void 0 != this.jt.requestFullscreen; this.SY = "ontouchstart" in window ? "touchstart" : "mousedown" }, fullScreen: function() { return this.TN && document[this.jt.fullscreenEnabled] }, rga: function(c, d) { if (this.TN) { c = c || document.documentElement; c[this.jt.requestFullscreen](); if (d) { var e = this.jt.SRa; this.DX && document.removeEventListener(e, this.DX); this.DX = d; f.ub(document, e, d, !1) } return c[this.jt.requestFullscreen]() } }, uRa: function() { return this.TN ? document[this.jt.exitFullscreen]() : !0 }, xwa: function(c, d) { function e() { h.rga(c, d); g.removeEventListener(h.SY, e) } c = c || document.body; var g = f.Sb || c, h = this; this.rga(c, d); f.ub(g, this.SY, e) } }; f.screen.j(); f.qy = { wia: r(0, 0), xia: r(0, 0), top: r(0, 0), KZ: r(0, 0), kca: r(0, 0), bottom: r(0, 0), KO: r(0, 0), left: r(0, 0), right: r(0, 0), width: 0, height: 0, j: function(c) { var d = this.width = c.width, e = this.height = c.height, g = c.x; c = c.y; var h = c + e, k = g + d; this.wia.x = g; this.wia.y = h; this.xia.x = k; this.xia.y = h; this.top.x = g + d / 2; this.top.y = h; this.KZ.x = g; this.KZ.y = c; this.kca.x = k; this.kca.y = c; this.bottom.x = g + d / 2; this.bottom.y = c; this.KO.x = g + d / 2; this.KO.y = c + e / 2; this.left.x = g; this.left.y = c + e / 2; this.right.x = k; this.right.y = c + e / 2 } }; f.vpa = -90; f.wpa = 90; f.xpa = 180; f.dNa = 0; f.Gea = { pA: !1, L$: !1, qaa: r(0, 0), Kta: r(0, 0), raa: [], EX: 0, Of: [], TY: {}, aA: 0, dX: 5, PK: !1, QK: 1 / 30, v8: 1, vv: 0, KU: null, OK: null, isa: function() { for (var c = this.aA, d = 0; d < this.dX; d++) { if (!(c & 1)) return this.aA |= 1 << d, d; c >>= 1 } return -1 }, $ta: function(c) { 0 > c || c >= this.dX || (c = ~(1 << c), this.aA &= c) }, mt: null, y0: function(c) { for (var d, e, g, h = [], k = this.TY, m = 0, n = c.length; m < n; m++) d = c[m], g = d.ni, e = k[g], null == e && (e = this.isa(), -1 == e ? f.log(f.l.JCa, e) : (d = this.Of[e] = d, k[g] = e, h.push(d))); 0 < h.length && (this.mt.wL(h), c = new f.Gl(h), c.ft = f.Gl.Dy.WR, f.Qa.dispatchEvent(c)) }, z0: function(c) { for (var d, e, g = [], h = this.Of, k = 0, m = c.length; k < m; k++) d = c[k], e = d.ni, e = this.TY[e], null != e && h[e] && (h[e].oY(d.kh), h[e].NA(d.kp), g.push(h[e])); 0 < g.length && (this.mt.wL(g), c = new f.Gl(g), c.ft = f.Gl.Dy.fT, f.Qa.dispatchEvent(c)) }, zP: function(c) { c = this.Tda(c); 0 < c.length && (this.mt.wL(c), c = new f.Gl(c), c.ft = f.Gl.Dy.IS, f.Qa.dispatchEvent(c)) }, nea: function(c) { c = this.Tda(c); 0 < c.length && (this.mt.wL(c), c = new f.Gl(c), c.ft = f.Gl.Dy.kS, f.Qa.dispatchEvent(c)) }, Tda: function(c) { for (var d, e, g, h = [], k = this.Of, m = this.TY, n = 0, p = c.length; n < p; n++) d = c[n], g = d.ni, e = m[g], null != e && k[e] && (k[e].oY(d.kh), k[e].NA(d.kp), h.push(k[e]), this.$ta(e), delete m[g]); return h }, Vn: function(c) { var d = document.documentElement, e = window, g = null, g = "function" === typeof c.getBoundingClientRect ? c.getBoundingClientRect() : c instanceof HTMLCanvasElement ? { left: 0, top: 0, width: c.width, height: c.height } : { left: 0, top: 0, width: parseInt(c.style.width), height: parseInt(c.style.height) }; return { left: g.left + e.pageXOffset - d.clientLeft, top: g.top + e.pageYOffset - d.clientTop, width: g.width, height: g.height } }, WAa: function(c) { for (var d = null, e = this.raa, g = c.ni, h = e.length - 1; 0 <= h; h--) if (e[h].ni == g) { d = e[h]; break } d || (d = c); return d }, vHa: function(c) { for (var d = !1, e = this.raa, g = c.ni, h = e.length - 1; 0 <= h; h--) if (e[h].ni == g) { e[h] = c; d = !0; break } d || (50 >= e.length ? e.push(c) : (e[this.EX] = c, this.EX = (this.EX + 1) % 50)) }, HH: function(c, d, e) { var g = this.qaa; c = this.mt.m_(c, d, e); d = new f.jU(c.x, c.y); d.NA(g.x, g.y); g.x = c.x; g.y = c.y; return d }, QB: function(c, d, e) { var g = this.Kta; this.mt.Tqa(c, d); d = new f.Gf(e); d.bHa(c.x, c.y); d.zua(g.x, g.y); g.x = c.x; g.y = c.y; return d }, SB: function(c, d) { if (null != c.pageX) return { x: c.pageX, y: c.pageY }; d.left -= document.body.scrollLeft; d.top -= document.body.scrollTop; return { x: c.clientX, y: c.clientY } }, wP: function(c, d) { for (var e = [], g = this.mt, h, k, m = this.qaa, n = c.changedTouches.length, p = 0; p < n; p++) if (h = c.changedTouches[p]) { var s; s = f.Ed.jD === f.Ed.gx ? g.m_(h.pageX, h.pageY, d) : g.m_(h.clientX, h.clientY, d); null != h.identifier ? (h = new f.jU(s.x, s.y, h.identifier), k = this.WAa(h).cf(), h.NA(k.x, k.y), this.vHa(h)) : (h = new f.jU(s.x, s.y), h.NA(m.x, m.y)); m.x = s.x; m.y = s.y; e.push(h) } return e }, EFa: function(c) { if (!this.L$) { var d = this.mt = f.view, e = this, g = "touches" in f.Ed.$Z; "mouse" in f.Ed.$Z && (f.ub(window, "mousedown", function() { e.pA = !0 }, !1), f.ub(window, "mouseup", function(d) { var h = e.pA; e.pA = !1; if (h) { var h = e.Vn(c), k = e.SB(d, h); f.Bu(new f.Qy(h.left, h.top, h.width, h.height), k) || (g || e.zP([e.HH(k.x, k.y, h)]), h = e.QB(k, h, f.Gf.Ol), h.$x(d.button), f.Qa.dispatchEvent(h)) } }, !1), f.ub(c, "mousedown", function(d) { e.pA = !0; var h = e.Vn(c), k = e.SB(d, h); g || e.y0([e.HH(k.x, k.y, h)]); h = e.QB(k, h, f.Gf.Ym); h.$x(d.button); f.Qa.dispatchEvent(h); d.stopPropagation(); d.preventDefault(); c.focus() }, !1), f.ub(c, "mouseup", function(d) { e.pA = !1; var h = e.Vn(c), k = e.SB(d, h); g || e.zP([e.HH(k.x, k.y, h)]); h = e.QB(k, h, f.Gf.Ol); h.$x(d.button); f.Qa.dispatchEvent(h); d.stopPropagation(); d.preventDefault() }, !1), f.ub(c, "mousemove", function(d) { var h = e.Vn(c), k = e.SB(d, h); g || e.z0([e.HH(k.x, k.y, h)]); h = e.QB(k, h, f.Gf.c6); e.pA ? h.$x(d.button) : h.$x(null); f.Qa.dispatchEvent(h); d.stopPropagation(); d.preventDefault() }, !1), f.ub(c, "mousewheel", function(d) { var g = e.Vn(c), h = e.SB(d, g), g = e.QB(h, g, f.Gf.IT); g.$x(d.button); g.Nha(0, d.wheelDelta); f.Qa.dispatchEvent(g); d.stopPropagation(); d.preventDefault() }, !1), f.ub(c, "DOMMouseScroll", function(d) { var g = e.Vn(c), h = e.SB(d, g), g = e.QB(h, g, f.Gf.IT); g.$x(d.button); g.Nha(0, -120 * d.detail); f.Qa.dispatchEvent(g); d.stopPropagation(); d.preventDefault() }, !1)); if (window.navigator.msPointerEnabled) { var h = { MSPointerDown: e.y0, MSPointerMove: e.z0, MSPointerUp: e.zP, MSPointerCancel: e.nea }, k; for (k in h)(function(d, g) { f.ub(c, d, function(d) { var h = e.Vn(c); h.left -= document.documentElement.scrollLeft; h.top -= document.documentElement.scrollTop; g.call(e, [e.HH(d.clientX, d.clientY, h)]); d.stopPropagation() }, !1) })(k, h[k]) } g && (f.ub(c, "touchstart", function(d) { if (d.changedTouches) { var g = e.Vn(c); g.left -= document.body.scrollLeft; g.top -= document.body.scrollTop; e.y0(e.wP(d, g)); d.stopPropagation(); d.preventDefault(); c.focus() } }, !1), f.ub(c, "touchmove", function(d) { if (d.changedTouches) { var g = e.Vn(c); g.left -= document.body.scrollLeft; g.top -= document.body.scrollTop; e.z0(e.wP(d, g)); d.stopPropagation(); d.preventDefault() } }, !1), f.ub(c, "touchend", function(d) { if (d.changedTouches) { var g = e.Vn(c); g.left -= document.body.scrollLeft; g.top -= document.body.scrollTop; e.zP(e.wP(d, g)); d.stopPropagation(); d.preventDefault() } }, !1), f.ub(c, "touchcancel", function(g) { if (g.changedTouches) { var h = e.Vn(c); h.left -= document.body.scrollLeft; h.top -= document.body.scrollTop; d.nea(e.wP(g, h)); g.stopPropagation(); g.preventDefault() } }, !1)); this.Daa(); this.Caa(); this.L$ = !0 } }, Daa: function() {}, Caa: function() {}, update: function(c) { this.vv > this.QK && (this.vv -= this.QK, f.Qa.dispatchEvent(new f.xla(this.KU))); this.vv += c } }; var q = f.Gea; q.q2a = function(c) { this.PK !== c && (this.PK = c, c = f.Q.Dm(), this.PK ? (this.vv = 0, c.UQ(this)) : (this.vv = 0, c.qJ(this))) }; q.r2a = function(c) { this.QK !== c && (this.QK = c) }; q.Daa = function() { f.ub(f.Sb, "keydown", function(c) { f.Qa.dispatchEvent(new f.o5(c.keyCode, !0)); c.stopPropagation(); c.preventDefault() }, !1); f.ub(f.Sb, "keyup", function(c) { f.Qa.dispatchEvent(new f.o5(c.keyCode, !1)); c.stopPropagation(); c.preventDefault() }, !1) }; q.Caa = function() { var c = window; this.KU = new f.Xia; this.OK = c.DeviceMotionEvent || c.DeviceOrientationEvent; f.Ed.gx == f.Ed.Y3 && (this.OK = window.DeviceOrientationEvent); f.ub(c, this.OK == c.DeviceMotionEvent ? "devicemotion" : "deviceorientation", this.Rxa.bind(this), !1) }; q.Rxa = function(c) { var d = window; if (this.PK) { var e = this.KU; if (this.OK == window.DeviceMotionEvent) { var g = c.accelerationIncludingGravity; e.x = this.v8 * g.x * 0.1; e.y = this.v8 * g.y * 0.1; e.z = 0.1 * g.z } else e.x = c.gamma / 90 * 0.981, e.y = 0.981 * -(c.beta / 90), e.z = c.alpha / 90 * 0.981; e.timestamp = c.timeStamp || Date.now(); c = e.x; d.orientation === f.wpa ? (e.x = -e.y, e.y = c) : d.orientation === f.vpa ? (e.x = e.y, e.y = -c) : d.orientation === f.xpa && (e.x = -e.x, e.y = -e.y) } }; delete q; f.MJa = function(c, d, e, g, h, k) { this.a = c; this.b = d; this.G = e; this.P = g; this.pa = h; this.qa = k }; f.PJa = function() { return { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 } }; f.lv = function(c, d) { return { x: d.a * c.x + d.G * c.y + d.pa, y: d.b * c.x + d.P * c.y + d.qa } }; f.Js = function(c, d, e) { return { x: e.a * c + e.G * d + e.pa, y: e.b * c + e.P * d + e.qa } }; f.CMa = function(c, d) { return { width: d.a * c.width + d.G * c.height, height: d.b * c.width + d.P * c.height } }; f.QJa = function() { return { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 } }; f.OJa = function() { return { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 } }; f.Ki = function(c, d) { var e = f.ho(c), g = f.fo(c), h = f.Vp(c), k = f.Wp(c), m = f.Js(g, e, d), e = f.Js(h, e, d), g = f.Js(g, k, d), n = f.Js(h, k, d), h = Math.min(m.x, e.x, g.x, n.x), k = Math.max(m.x, e.x, g.x, n.x), p = Math.min(m.y, e.y, g.y, n.y), m = Math.max(m.y, e.y, g.y, n.y); return x(h, p, k - h, m - p) }; f.Fo = function(c, d) { var e = f.ho(c), g = f.fo(c), h = f.Vp(c), k = f.Wp(c), m = f.Js(g, e, d), e = f.Js(h, e, d), g = f.Js(g, k, d), n = f.Js(h, k, d), h = Math.min(m.x, e.x, g.x, n.x), k = Math.max(m.x, e.x, g.x, n.x), p = Math.min(m.y, e.y, g.y, n.y), m = Math.max(m.y, e.y, g.y, n.y); c.x = h; c.y = p; c.width = k - h; c.height = m - p; return c }; f.xJ = function(c, d, e) { return { a: c.a, b: c.b, G: c.G, P: c.P, pa: c.pa + c.a * d + c.G * e, qa: c.qa + c.b * d + c.P * e } }; f.RJa = function(c, d, e) { return { a: c.a * d, b: c.b * d, G: c.G * e, P: c.P * e, pa: c.pa, qa: c.qa } }; f.hja = function(c) { var d = Math.sin(1.57079633), e = Math.cos(1.57079633); return { a: c.a * e + c.G * d, b: c.b * e + c.P * d, G: c.G * e - c.a * d, P: c.P * e - c.b * d, pa: c.pa, qa: c.qa } }; f.Vg = function(c, d) { return { a: c.a * d.a + c.b * d.G, b: c.a * d.b + c.b * d.P, G: c.G * d.a + c.P * d.G, P: c.G * d.b + c.P * d.P, pa: c.pa * d.a + c.qa * d.G + d.pa, qa: c.pa * d.b + c.qa * d.P + d.qa } }; f.NJa = function(c, d) { return c.a === d.a && c.b === d.b && c.G === d.G && c.P === d.P && c.pa === d.pa && c.qa === d.qa }; f.SR = function(c) { var d = 1 / (c.a * c.P - c.b * c.G); return { a: d * c.P, b: -d * c.b, G: -d * c.G, P: d * c.a, pa: d * (c.G * c.qa - c.P * c.pa), qa: d * (c.b * c.pa - c.a * c.qa) } }; f.y6 = parseFloat("1.192092896e-07F"); f.B1 = function(c) { return r(-c.x, -c.y) }; f.Tp = function(c, d) { return r(c.x + d.x, c.y + d.y) }; f.gc = function(c, d) { return r(c.x - d.x, c.y - d.y) }; f.Up = function(c, d) { return r(c.x * d, c.y * d) }; f.A1 = function(c, d) { return f.Up(f.Tp(c, d), 0.5) }; f.wC = function(c, d) { return c.x * d.x + c.y * d.y }; f.lEa = function(c, d) { return c.x * d.y - c.y * d.x }; f.CQ = function(c) { return r(-c.y, c.x) }; f.Z_a = function(c) { return r(c.y, -c.x) }; f.Y_a = function(c, d) { return f.Up(d, f.wC(c, d) / f.wC(d, d)) }; f.$_a = function(c, d) { return r(c.x * d.x - c.y * d.y, c.x * d.y + c.y * d.x) }; f.c0a = function(c, d) { return r(c.x * d.x + c.y * d.y, c.y * d.x - c.x * d.y) }; f.Kfa = function(c) { return f.wC(c, c) }; f.Ifa = function(c, d) { return f.Kfa(f.gc(c, d)) }; f.ff = function(c) { return Math.sqrt(f.Kfa(c)) }; f.Hfa = function(c, d) { return f.ff(f.gc(c, d)) }; f.Af = function(c) { return f.Up(c, 1 / f.ff(c)) }; f.V_a = function(c) { return r(Math.cos(c), Math.sin(c)) }; f.oEa = function(c) { return Math.atan2(c.y, c.x) }; f.Rf = function(c, d, e) { if (d > e) { var g = d; d = e; e = g } return c < d ? d : c < e ? c : e }; f.Gfa = function(c) { var d = r(0, 0), e = r(1, 1); return r(f.Rf(c.x, d.x, e.x), f.Rf(c.y, d.y, e.y)) }; f.Jfa = function() { var c = f.Q.Y; return r(c.width, c.height) }; f.U_a = function(c, d) { return r(d(c.x), d(c.y)) }; f.Lfa = function(c, d, e) { return f.Tp(f.Up(c, 1 - e), f.Up(d, e)) }; f.W_a = function(c, d, e) { return c.x - e <= d.x && d.x <= c.x + e && c.y - e <= d.y && d.y <= c.y + e ? !0 : !1 }; f.T_a = function(c, d) { return r(c.x * d.x, c.y * d.y) }; f.S_a = function(c, d) { var e = f.Af(c), g = f.Af(d), e = Math.atan2(e.x * g.y - e.y * g.x, f.wC(e, g)); return Math.abs(e) < f.y6 ? 0 : e }; f.R_a = function(c, d) { var e = Math.acos(f.wC(f.Af(c), f.Af(d))); return Math.abs(e) < f.y6 ? 0 : e }; f.nEa = function(c, d, e) { c = f.gc(c, d); var g = Math.cos(e); e = Math.sin(e); var h = c.x; c.x = h * g - c.y * e + d.x; c.y = h * e + c.y * g + d.y; return c }; f.z1 = function(c, d, e, g, h) { if (c.x == d.x && c.y == d.y || e.x == g.x && e.y == g.y) return !1; var k = d.x - c.x; d = d.y - c.y; var m = g.x - e.x; g = g.y - e.y; var n = c.x - e.x; c = c.y - e.y; e = g * k - m * d; h.x = m * c - g * n; h.y = k * c - d * n; if (0 == e) return 0 == h.x || 0 == h.y ? !0 : !1; h.x /= e; h.y /= e; return !0 }; f.b0a = function(c, d, e, g) { var h = r(0, 0); return f.z1(c, d, e, g, h) && 0 <= h.x && 1 >= h.x && 0 <= h.y && 1 >= h.y ? !0 : !1 }; f.X_a = function(c, d, e, g) { var h = r(0, 0); return f.z1(c, d, e, g, h) ? (e = r(0, 0), e.x = c.x + h.x * (d.x - c.x), e.y = c.y + h.x * (d.y - c.y), e) : r(0, 0) }; f.a0a = function(c, d) { return null != c && null != d ? c.x == d.x && c.y == d.y : !1 }; f.DQ = function(c) { c.x = 0; c.y = 0 }; f.$r = function(c, d) { c.x = d.x; c.y = d.y }; f.xC = function(c, d) { c.x *= d; c.y *= d }; f.Mfa = function(c, d) { c.x -= d.x; c.y -= d.y }; f.BQ = function(c, d) { c.x += d.x; c.y += d.y }; f.mEa = function(c) { f.xC(c, 1 / Math.sqrt(c.x * c.x + c.y * c.y)) }; f.H3 = function(c, d, e, g, h) { h += g; if (!(1 >= h)) { d *= 0.5; for (var k, m = h - 1, n = g; n < h; n++) { k = 2 * n; var p = r(c[2 * n], c[2 * n + 1]), s; if (0 === n) s = f.CQ(f.Af(f.gc(p, r(c[2 * (n + 1)], c[2 * (n + 1) + 1])))); else if (n === m) s = f.CQ(f.Af(f.gc(r(c[2 * (n - 1)], c[2 * (n - 1) + 1]), p))); else { s = r(c[2 * (n - 1)], c[2 * (n - 1) + 1]); var u = r(c[2 * (n + 1)], c[2 * (n + 1) + 1]), v = f.Af(f.gc(u, p)), z = f.Af(f.gc(s, p)), A = Math.acos(f.wC(v, z)); s = A < f.sg(70) ? f.CQ(f.Af(f.A1(v, z))) : A < f.sg(170) ? f.Af(f.A1(v, z)) : f.CQ(f.Af(f.gc(u, s))) } s = f.Up(s, d); e[2 * k] = p.x + s.x; e[2 * k + 1] = p.y + s.y; e[2 * (k + 1)] = p.x - s.x; e[2 * (k + 1) + 1] = p.y - s.y } for (n = 0 == g ? 0 : g - 1; n < m; n++) k = 2 * n, c = k + 2, d = new f.he(e[2 * k], e[2 * k + 1]), h = new f.he(e[2 * (k + 1)], e[2 * (k + 1) + 1]), k = new f.he(e[2 * c], e[2 * c]), g = new f.he(e[2 * (c + 1)], e[2 * (c + 1) + 1]), d = !f.lJa(d.x, d.y, g.x, g.y, h.x, h.y, k.x, k.y), !d.aI && (0 > d.value || 1 < d.value) && (d.aI = !0), d.aI && (e[2 * c] = g.x, e[2 * c + 1] = g.y, e[2 * (c + 1)] = k.x, e[2 * (c + 1) + 1] = k.y) } }; f.lJa = function(c, d, e, g, h, k, m, n) { if (c == e && d == g || h == m && k == n) return { aI: !1, value: 0 }; e -= c; g -= d; h -= c; k -= d; m -= c; n -= d; c = Math.sqrt(e * e + g * g); e /= c; g /= c; d = h * e + k * g; k = k * e - h * g; h = d; d = m * e + n * g; n = n * e - m * g; m = d; return k == n ? { aI: !1, value: 0 } : { aI: !0, value: (m + (h - m) * n / (n - k)) / c } }; f.S5a = function(c) { for (var d = 0, e = c.length; d < e; d++) { var g = c[(d + 1) % e]; if (0 < f.lEa(f.gc(g, c[d]), f.gc(c[(d + 2) % e], g))) return !1 } return !0 }; f.zKa = function(c, 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] = c.a; d[4] = c.G; d[12] = c.pa; d[1] = c.b; d[5] = c.P; d[13] = c.qa }; f.nLa = function(c, d) { d.a = c[0]; d.G = c[4]; d.pa = c[12]; d.b = c[1]; d.P = c[5]; d.qa = c[13] }; f.jU = f.N.extend({ kh: null, kp: null, ni: 0, mba: !1, wG: null, ctor: function(c, d, e) { this.kh = r(c || 0, d || 0); this.ni = e || 0 }, cf: function() { return { x: this.kh.x, y: this.kh.y } }, uAa: function() { return this.kh.x }, vAa: function() { return this.kh.y }, qP: function() { return { x: this.kp.x, y: this.kp.y } }, UVa: function() { return { x: this.wG.x, y: this.wG.y } }, a0: function() { return f.gc(this.kh, this.kp) }, tAa: function() { return { x: this.kh.x, y: this.kh.y } }, tVa: function() { return { x: this.kp.x, y: this.kp.y } }, VVa: function() { return { x: this.wG.x, y: this.wG.y } }, dUa: function() { return this.ni }, fAa: function() { return this.ni }, B4a: function(c, d, e) { this.kp = this.kh; this.kh = r(d || 0, e || 0); this.ni = c; this.mba || (this.wG = r(this.kh), this.mba = !0) }, oY: function(c, d) { void 0 === d ? (this.kh.x = c.x, this.kh.y = c.y) : (this.kh.x = c, this.kh.y = d) }, NA: function(c, d) { this.kp = void 0 === d ? r(c.x, c.y) : r(c || 0, d || 0) } }); f.ve = f.N.extend({ zc: 0, Wv: !1, eh: null, gY: function(c) { this.eh = c }, ctor: function(c) { this.zc = c }, IH: function() { return this.zc }, stopPropagation: function() { this.Wv = !0 }, XXa: function() { return this.Wv }, jTa: function() { return this.eh } }); f.ve.BK = 0; f.ve.Ky = 1; f.ve.ty = 2; f.ve.Ny = 3; f.ve.iq = 4; f.kq = f.ve.extend({ bW: null, Hba: null, ctor: function(c) { f.ve.prototype.ctor.call(this, f.ve.iq); this.bW = c }, setUserData: function(c) { this.Hba = c }, getUserData: function() { return this.Hba }, PTa: function() { return this.bW } }); f.Gf = f.ve.extend({ T9: 0, P8: 0, Nn: 0, hj: 0, JX: 0, KX: 0, Saa: 0, Taa: 0, ctor: function(c) { f.ve.prototype.ctor.call(this, f.ve.Ny); this.T9 = c }, Nha: function(c, d) { this.Saa = c; this.Taa = d }, KVa: function() { return this.Saa }, LVa: function() { return this.Taa }, bHa: function(c, d) { this.Nn = c; this.hj = d }, cf: function() { return { x: this.Nn, y: this.hj } }, tAa: function() { return { x: this.Nn, y: f.view.Ez.height - this.hj } }, zua: function(c, d) { this.JX = c; this.KX = d }, a0: function() { return { x: this.Nn - this.JX, y: this.hj - this.KX } }, sTa: function() { return this.Nn - this.JX }, tTa: function() { return this.hj - this.KX }, $x: function(c) { this.P8 = c }, ASa: function() { return this.P8 }, uAa: function() { return this.Nn }, vAa: function() { return this.hj } }); f.Gf.NONE = 0; f.Gf.Ym = 1; f.Gf.Ol = 2; f.Gf.c6 = 3; f.Gf.IT = 4; f.Gf.pKa = 0; f.Gf.rKa = 2; f.Gf.qKa = 1; f.Gf.kKa = 3; f.Gf.lKa = 4; f.Gf.mKa = 5; f.Gf.nKa = 6; f.Gf.oKa = 7; f.Gl = f.ve.extend({ ft: 0, Of: null, ctor: function(c) { f.ve.prototype.ctor.call(this, f.ve.BK); this.Of = c || [] }, OTa: function() { return this.ft }, BWa: function() { return this.Of }, POa: function(c) { this.ft = c }, TOa: function(c) { this.Of = c } }); f.Gl.QLa = 5; f.Gl.Dy = { WR: 0, fT: 1, IS: 2, kS: 3 }; f.Xa = f.N.extend({ mX: null, zc: 0, $o: null, aj: !1, it: 0, nf: null, Ce: !1, fA: !0, ctor: function(c, d, e) { this.mX = e; this.zc = c || 0; this.$o = d || "" }, nY: function(c) { this.Ce = c }, tOa: function() { return this.Ce }, lG: function(c) { this.aj = c }, Nsa: function() { return this.aj }, lOa: function() { return this.zc }, gOa: function() { return this.$o }, hY: function(c) { this.it = c }, eOa: function() { return this.it }, mG: function(c) { this.nf = c }, jOa: function() { return this.nf }, ju: function() { return null != this.mX }, p: function() { return null }, Lb: function(c) { this.fA = c }, isEnabled: function() { return this.fA }, OQ: function() {}, wh: function() {} }); f.Xa.Gpa = 0; f.Xa.zs = 1; f.Xa.VT = 2; f.Xa.Ky = 3; f.Xa.Ny = 4; f.Xa.ty = 5; f.Xa.iq = 6; f.AE = f.Xa.extend({ UF: null, ctor: function(c, d) { this.UF = d; var e = this; f.Xa.prototype.ctor.call(this, f.Xa.iq, c, function(c) { null != e.UF && e.UF(c) }) }, ju: function() { return f.Xa.prototype.ju.call(this) && null != this.UF }, p: function() { return new f.AE(this.$o, this.UF) } }); f.AE.create = function(c, d) { return new f.AE(c, d) }; f.Is = f.Xa.extend({ uQ: null, xQ: null, vQ: null, wQ: null, ctor: function() { var c = this; f.Xa.prototype.ctor.call(this, f.Xa.Ny, f.Is.Le, function(d) { var e = f.Gf; switch (d.T9) { case e.Ym: c.uQ && c.uQ(d); break; case e.Ol: c.xQ && c.xQ(d); break; case e.c6: c.vQ && c.vQ(d); break; case e.IT: c.wQ && c.wQ(d) } }) }, p: function() { var c = new f.Is; c.uQ = this.uQ; c.xQ = this.xQ; c.vQ = this.vQ; c.wQ = this.wQ; return c }, ju: function() { return !0 } }); f.Is.Le = "__cc_mouse"; f.Is.create = function() { return new f.Is }; f.Eo = f.Xa.extend({ wz: null, QC: !1, rc: null, hd: null, gd: null, ef: null, ctor: function() { f.Xa.prototype.ctor.call(this, f.Xa.zs, f.Eo.Le, null); this.wz = [] }, p4a: function(c) { this.QC = c }, p: function() { var c = new f.Eo; c.rc = this.rc; c.hd = this.hd; c.gd = this.gd; c.ef = this.ef; c.QC = this.QC; return c }, ju: function() { return this.rc ? !0 : (f.log(f.l.Qpa), !1) } }); f.Eo.Le = "__cc_touch_one_by_one"; f.Eo.create = function() { return new f.Eo }; f.Do = f.Xa.extend({ tI: null, wI: null, vI: null, uI: null, ctor: function() { f.Xa.prototype.ctor.call(this, f.Xa.VT, f.Do.Le, null) }, p: function() { var c = new f.Do; c.tI = this.tI; c.wI = this.wI; c.vI = this.vI; c.uI = this.uI; return c }, ju: function() { return null == this.tI && null == this.wI && null == this.vI && null == this.uI ? (f.log(f.l.Ppa), !1) : !0 } }); f.Do.Le = "__cc_touch_all_at_once"; f.Do.create = function() { return new f.Do }; f.Xa.create = function(c) { f.assert(c && c.event, f.l.zla); var d = c.event; delete c.event; var e = null; d === f.Xa.zs ? e = new f.Eo : d === f.Xa.VT ? e = new f.Do : d === f.Xa.Ny ? e = new f.Is : d === f.Xa.iq ? (e = new f.AE(c.aza, c.XZ), delete c.aza, delete c.XZ) : d === f.Xa.Ky ? e = new f.Hs : d === f.Xa.ty && (e = new f.Gs(c.XZ), delete c.XZ); for (var g in c) e[g] = c[g]; return e }; f.sca = function(c) { var d, e = c.length, g = Array(e); for (d = 0; d < e; d += 1) g[d] = c[d]; return g }; f.Rpa = f.N.extend({ Lk: null, Sk: null, kea: 0, ctor: function() { this.Lk = []; this.Sk = [] }, size: function() { return this.Lk.length + this.Sk.length }, empty: function() { return 0 === this.Lk.length && 0 === this.Sk.length }, push: function(c) { 0 == c.it ? this.Sk.push(c) : this.Lk.push(c) }, Ywa: function() { this.Sk.length = 0 }, Xwa: function() { this.Lk.length = 0 }, clear: function() { this.Sk.length = 0; this.Lk.length = 0 }, UTa: function() { return this.Lk }, JVa: function() { return this.Sk } }); f.LK = function(c) { var d = f.ve, e = c.zc; if (e === d.ty) return f.Gs.Le; if (e === d.iq) return c.bW; if (e === d.Ky) return f.Hs.Le; if (e === d.Ny) return f.Is.Le; e === d.BK && f.log(f.l.LK); return "" }; f.Qa = { ES: 0, PJ: 1, sD: 2, TKa: 3, bm: {}, dG: {}, cp: {}, UM: {}, u$: {}, aB: [], gF: [], Tv: 0, fA: !1, daa: 0, Lsa: [f.vf.UJ, f.vf.vD], DN: function(c) { null != this.cp[c.yb] && this.gF.push(c); c = c.re(); for (var d = 0, e = c.length; d < e; d++) this.DN(c[d]) }, as: function(c, d) { var e = this.cp[c.yb], g, h; if (e) for (g = 0, h = e.length; g < h; g++) e[g].nY(!0); if (!0 === d) for (e = c.re(), g = 0, h = e.length; g < h; g++) this.as(e[g], !0) }, Km: function(c, d) { var e = this.cp[c.yb], g, h; if (e) for (g = 0, h = e.length; g < h; g++) e[g].nY(!1); this.DN(c); if (!0 === d) for (e = c.re(), g = 0, h = e.length; g < h; g++) this.Km(e[g], !0) }, z8: function(c) { 0 === this.Tv ? this.c$(c) : this.aB.push(c) }, c$: function(c) { var d = c.$o, e = this.bm[d]; e || (e = new f.Rpa, this.bm[d] = e); e.push(c); 0 == c.it ? (this.Lt(d, this.sD), d = c.nf, null == d && f.log(f.l.Uya), this.lqa(d, c), d.dd && this.Km(d)) : this.Lt(d, this.PJ) }, wW: function(c) { return this.bm[c] }, vva: function() { if (0 != this.gF.length) { for (var c = this.gF, d, e, g = this.cp, h = 0, k = c.length; h < k; h++) if (d = g[c[h].yb]) for (var m = 0, n = d.length; m < n; m++)(e = d[m]) && this.Lt(e.$o, this.sD); this.gF.length = 0 } }, Eaa: function(c) { if (c) for (var d, e = 0; e < c.length;) d = c[e], d.lG(!1), null != d.nf && (this.m9(d.nf, d), d.mG(null)), 0 === this.Tv ? f.Ld(c, d) : ++e }, xw: function(c) { var d = this.bm[c]; if (d) { var e = d.Lk; this.Eaa(d.Sk); this.Eaa(e); delete this.dG[c]; this.Tv || (d.clear(), delete this.bm[c]) } for (var e = this.aB, g, d = 0; d < e.length;)(g = e[d]) && g.$o == c ? f.Ld(e, g) : ++d }, yY: function(c) { var d = this.ES, e = this.dG; e[c] && (d = e[c]); d != this.ES && (e[c] = this.ES, d & this.PJ && this.bva(c), d & this.sD && ((d = f.Q.mg) ? this.dva(c, d) : e[c] = this.sD)) }, dva: function(c, d) { var e = this.wW(c); if (e) { var g = e.Sk; g && 0 !== g.length && (this.daa = 0, this.UM = {}, this.lZ(d, !0), e.Sk.sort(this.ava)) } }, ava: function(c, d) { var e = f.Qa.UM; return e[d.nf.yb] - e[c.nf.yb] }, bva: function(c) { if (c = this.bm[c]) { var d = c.Lk; if (d && 0 !== d.length) { d.sort(this.cva); for (var e = 0, g = d.length; e < g && !(0 <= d[e].it);)++e; c.kea = e } } }, cva: function(c, d) { return c.it - d.it }, nX: function(c) { if (c = this.bm[c]) { var d = c.Lk, e = c.Sk, g, h; if (e) for (g = 0; g < e.length;) h = e[g], h.aj ? ++g : f.Ld(e, h); if (d) for (g = 0; g < d.length;) h = d[g], h.aj ? ++g : f.Ld(d, h); e && 0 === e.length && c.Ywa(); d && 0 === d.length && c.Xwa() } }, mO: function(c) { var d = this.Tv; f.assert(0 < d, f.l.Ala); c.zc == f.ve.BK ? (this.nX(f.Eo.Le), this.nX(f.Do.Le)) : this.nX(f.LK(c)); if (!(1 < d)) { f.assert(1 == d, f.l.Bla); c = this.bm; var d = this.dG, e; for (e in c) c[e].empty() && (delete d[e], delete c[e]); e = this.aB; if (0 !== e.length) { c = 0; for (d = e.length; c < d; c++) this.c$(e[c]); this.aB.length = 0 } } }, sta: function(c, d) { if (!c.Nsa) return !1; var e = d.event, g = d.yga; e.gY(c.nf); var h = !1, k, m = e.ft, n = f.Gl.Dy; m == n.WR ? c.rc && (h = c.rc(g, e)) && c.aj && c.wz.push(g) : 0 < c.wz.length && -1 != (k = c.wz.indexOf(g)) && (h = !0, m === n.fT && c.hd ? c.hd(g, e) : m === n.IS ? (c.gd && c.gd(g, e), c.aj && c.wz.splice(k, 1)) : m === n.kS && (c.ef && c.ef(g, e), c.aj && c.wz.splice(k, 1))); return e.Wv ? (f.Qa.mO(e), !0) : h && c.aj && c.QC ? (d.UDa && d.touches.splice(g, 1), !0) : !1 }, bra: function(c) { this.yY(f.Eo.Le); this.yY(f.Do.Le); var d = this.wW(f.Eo.Le), e = this.wW(f.Do.Le); if (null != d || null != e) { var g = c.Of, h = f.sca(g), k = { event: c, UDa: d && e, touches: h, yga: null }; if (d) for (var m = 0; m < g.length; m++) if (k.yga = g[m], this.QV(d, this.sta, k), c.Wv) return; if (e && 0 < h.length && (this.QV(e, this.uta, { event: c, touches: h }), c.Wv)) return; this.mO(c) } }, uta: function(c, d) { if (!c.aj) return !1; var e = f.Gl.Dy, g = d.event, h = d.touches, k = g.ft; g.gY(c.nf); k == e.WR && c.tI ? c.tI(h, g) : k == e.fT && c.wI ? c.wI(h, g) : k == e.IS && c.vI ? c.vI(h, g) : k == e.kS && c.uI && c.uI(h, g); return g.Wv ? (f.Qa.mO(g), !0) : !1 }, lqa: function(c, d) { var e = this.cp[c.yb]; e || (e = [], this.cp[c.yb] = e); e.push(d) }, m9: function(c, d) { var e = this.cp[c.yb]; e && (f.Ld(e, d), 0 === e.length && delete this.cp[c.yb]) }, QV: function(c, d, e) { var g = !1, h = c.Lk, k = c.Sk, m = 0, n; if (h && 0 !== h.length) for (; m < c.kea; ++m) if (n = h[m], n.isEnabled() && !n.Ce && n.aj && d(n, e)) { g = !0; break } if (k && !g) for (c = 0; c < k.length; c++) if (n = k[c], n.isEnabled() && !n.Ce && n.aj && d(n, e)) { g = !0; break } if (h && !g) for (; m < h.length && (n = h[m], !n.isEnabled() || n.Ce || !n.aj || !d(n, e)); ++m); }, Lt: function(c, d) { var e = this.dG; e[c] = null == e[c] ? d : d | e[c] }, lZ: function(c, d) { var e = c.re(), g = 0, h = e.length, k = this.u$, m = this.cp; if (0 < h) { for (var n; g < h; g++) if ((n = e[g]) && 0 > n.Ya) this.lZ(n, !1); else break; null != m[c.yb] && (k[c.Uq] || (k[c.Uq] = []), k[c.Uq].push(c.yb)); for (; g < h; g++)(n = e[g]) && this.lZ(n, !1) } else null != m[c.yb] && (k[c.Uq] || (k[c.Uq] = []), k[c.Uq].push(c.yb)); if (d) { var e = [], p; for (p in k) e.push(p); e.sort(this.eva); p = e.length; n = this.UM; for (g = 0; g < p; g++) for (h = k[e[g]], m = 0; m < h.length; m++) n[h[m]] = ++this.daa; this.u$ = {} } }, eva: function(c, d) { return c - d }, addListener: function(c, d) { f.assert(c && d, f.l.Wya); if (!(c instanceof f.Xa)) f.assert("number" !== typeof d, f.l.Xya), c = f.Xa.create(c); else if (c.aj) { f.log(f.l.Yya); return } c.ju() && ("number" == typeof d ? 0 == d ? f.log(f.l.Vya) : (c.mG(null), c.hY(d), c.lG(!0), c.nY(!1), this.z8(c)) : (c.mG(d), c.hY(0), c.lG(!0), this.z8(c))) }, sZ: function(c, d) { var e = f.AE.create(c, d); this.addListener(e, 1); return e }, removeListener: function(c) { if (null != c) { var d, e = this.bm, g; for (g in e) { var h = e[g], k = h.Lk; (d = this.Gaa(h.Sk, c)) ? this.Lt(c.$o, this.sD): (d = this.Gaa(k, c)) && this.Lt(c.$o, this.PJ); h.empty() && (delete this.dG[c.$o], delete e[g]); if (d) break } if (!d) for (d = this.aB, e = 0, g = d.length; e < g; e++) if (h = d[e], h == c) { f.Ld(d, h); break } } }, Gaa: function(c, d) { if (null == c) return !1; for (var e = 0, g = c.length; e < g; e++) { var h = c[e]; if (h == d) return h.lG(!1), null != h.nf && (this.m9(h.nf, h), h.mG(null)), 0 == this.Tv && f.Ld(c, h), !0 } return !1 }, mga: function(c, d) { if (c instanceof f.v) { delete this.UM[c.yb]; f.Ld(this.gF, c); var e = this.cp[c.yb]; if (e) { for (var g = f.sca(e), e = 0; e < g.length; e++) this.removeListener(g[e]); g.length = 0; g = this.aB; for (e = 0; e < g.length;) { var h = g[e]; h.nf == c ? (h.mG(null), h.lG(!1), g.splice(e, 1)) : ++e } if (!0 === d) for (g = c.re(), e = 0, h = g.length; e < h; e++) this.mga(g[e], !0) } } else c == f.Xa.zs ? this.xw(f.Eo.Le) : c == f.Xa.VT ? this.xw(f.Do.Le) : c == f.Xa.Ny ? this.xw(f.Is.Le) : c == f.Xa.ty ? this.xw(f.Gs.Le) : c == f.Xa.Ky ? this.xw(f.Hs.Le) : f.log(f.l.Zya) }, m1a: function(c) { this.xw(c) }, Z0a: function() { var c = this.bm, d = this.Lsa, e; for (e in c) - 1 === d.indexOf(e) && this.xw(e) }, Y3a: function(c, d) { if (null != c) { var e = this.bm, g; for (g in e) { var h = e[g].Lk; if (h && -1 != h.indexOf(c)) { null != c.nf && f.log(f.l.$ya); c.it !== d && (c.hY(d), this.Lt(c.$o, this.PJ)); break } } } }, Lb: function(c) { this.fA = c }, isEnabled: function() { return this.fA }, dispatchEvent: function(c) { if (this.fA) { this.vva(); this.Tv++; if (!c || !c.IH) throw "event is undefined"; if (c.zc == f.ve.BK) this.bra(c); else { var d = f.LK(c); this.yY(d); d = this.bm[d]; null != d && this.QV(d, this.mta, c); this.mO(c) } this.Tv-- } }, mta: function(c, d) { d.gY(c.nf); c.mX(d); return d.Wv }, UQa: function(c, d) { var e = new f.kq(c); e.setUserData(d); this.dispatchEvent(e) } }; f.xla = f.ve.extend({ u8: null, ctor: function(c) { f.ve.prototype.ctor.call(this, f.ve.ty); this.u8 = c } }); f.o5 = f.ve.extend({ QW: 0, K$: !1, ctor: function(c, d) { f.ve.prototype.ctor.call(this, f.ve.Ky); this.QW = c; this.K$ = d } }); f.Gs = f.Xa.extend({ aN: null, ctor: function(c) { this.aN = c; var d = this; f.Xa.prototype.ctor.call(this, f.Xa.ty, f.Gs.Le, function(c) { d.aN(c.u8, c) }) }, ju: function() { f.assert(this.aN, f.l.Npa); return !0 }, p: function() { return new f.Gs(this.aN) } }); f.Gs.Le = "__cc_acceleration"; f.Gs.create = function(c) { return new f.Gs(c) }; f.Hs = f.Xa.extend({ pI: null, qI: null, ctor: function() { var c = this; f.Xa.prototype.ctor.call(this, f.Xa.Ky, f.Hs.Le, function(d) { d.K$ ? c.pI && c.pI(d.QW, d) : c.qI && c.qI(d.QW, d) }) }, p: function() { var c = new f.Hs; c.pI = this.pI; c.qI = this.qI; return c }, ju: function() { return null == this.pI && null == this.qI ? (f.log(f.l.Opa), !1) : !0 } }); f.Hs.Le = "__cc_keyboard"; f.Hs.create = function() { return new f.Hs }; f.U.yU = function() { var c = f.v.prototype; c.UY = null; c.uG = null; c.EW = null; c.Hq = null; c.ctor = function() { this.IW(); var c = new f.Ma; c.c[2] = c.c[3] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[14] = 0; c.c[10] = c.c[15] = 1; this.UY = c; this.EW = 0; this.uG = new f.Ma }; c.Ha = function() { !1 === this.Wk && (this.Wk = this.yM = !0) }; c.I = function() { if (this.Na) { var c = f.s, e, g = f.Md; g.stack.push(g.top); f.Mp(this.uG, g.top); g.top = this.uG; var h = this.grid; h && h.ah && h.dx(); this.transform(); var k = this.i; if (k && 0 < k.length) { var m = k.length; this.kd(); for (e = 0; e < m; e++) if (k[e] && 0 > k[e].Ya) k[e].I(); else break; for (this.ma(c); e < m; e++) k[e] && k[e].I() } else this.ma(c); this.arrivalOrder = 0; h && h.ah && h.ax(this); g.top = g.stack.pop() } }; c.transform = function() { var c = this.UY, e = f.Md.top, g = this.se(), h = c.c; h[0] = g.a; h[4] = g.G; h[12] = g.pa; h[1] = g.b; h[5] = g.P; h[13] = g.qa; h[14] = this.PG; f.Np(e, e, c); null == this.Hq || null != this.grid && this.grid.Bi() || (c = this.Qb.x, e = this.Qb.y, 0 !== c || 0 !== e ? (f.LT || (c |= 0, e |= 0), f.bC(c, e), this.Hq.gI(), f.bC(-c, -e)) : this.Hq.gI()) }; c.se = c.VM }; f.U.uT = function() { var c = f.v.prototype; f.d(c, "x", c.Vc, c.ls); f.d(c, "y", c.Zd, c.Lu); f.d(c, "width", c.lf, c.Uh); f.d(c, "height", c.Gg, c.Th); f.d(c, "anchorX", c.l$, c.Xe); f.d(c, "anchorY", c.m$, c.Ye); f.d(c, "skewX", c.Uda, c.XI); f.d(c, "skewY", c.Vda, c.YI); f.d(c, "zIndex", c.sAa, c.tl); f.d(c, "vertexZ", c.MBa, c.XHa); f.d(c, "rotation", c.Cx, c.yh); f.d(c, "rotationX", c.dBa, c.M2); f.d(c, "rotationY", c.eBa, c.N2); f.d(c, "scale", c.AH, c.ib); f.d(c, "scaleX", c.sP, c.jb); f.d(c, "scaleY", c.BH, c.tb); f.d(c, "children", c.re); f.d(c, "childrenCount", c.Y_); f.d(c, "parent", c.getParent, c.aq); f.d(c, "visible", c.V0, c.za); f.d(c, "running", c.cDa); f.d(c, "ignoreAnchor", c.YCa, c.Gm); f.d(c, "actionManager", c.IB, c.zga); f.d(c, "scheduler", c.Dm, c.Mha); f.d(c, "shaderProgram", c.m0, c.WI); f.d(c, "glServerState", c.Zza, c.TGa) }; f.U.vT = function() { var c = f.ja.prototype; f.d(c, "opacity", c.vb, c.J); f.d(c, "opacityModifyRGB", c.vg, c.ee); f.d(c, "cascadeOpacity", c.WH, c.Hu); f.d(c, "color", c.$a, c.F); f.d(c, "cascadeColor", c.VH, c.Gu) }; f.hK = -1; f.TQ = 1; f.v = f.N.extend({ Ya: 0, Uq: 0, PG: 0, bj: 0, hm: 0, ka: 1, ra: 1, oa: null, og: 0, pg: 0, i: null, Na: !0, Eb: null, Qb: null, m: null, dd: !1, Yb: null, mn: !1, tag: f.hK, userData: null, userObject: null, Wk: !0, yM: !0, Dk: !0, Gq: null, $Oa: null, Pf: null, D$: null, Sh: !1, sd: null, arrivalOrder: 0, Ql: null, nh: null, nra: null, B$: !1, Aq: !1, Zy: null, Ro: null, AM: !1, Cn: 0, Aw: 0, ta: "Node", uY: !1, nd: "", IW: function() { this.Eb = r(0, 0); this.Qb = r(0, 0); this.m = t(0, 0); this.oa = r(0, 0); this.i = []; this.Pf = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }; var c = f.Q; this.Ql = c.IB(); this.nh = c.Dm(); this.B$ = !0; this.Zy = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }; f.P4 && (this.Ro = new f.P4(this)) }, j: function() { !1 === this.B$ && this.IW(); return !0 }, Bk: function(c, d) { if (c && 0 !== c.length) { var e, g = c.length, h; e = f.v.Fj; switch (d) { case e.ba: for (e = 0; e < g; e++)(h = c[e]) && h.ba(); break; case e.Ra: for (e = 0; e < g; e++)(h = c[e]) && h.Ra(); break; case e.sj: for (e = 0; e < g; e++)(h = c[e]) && h.sj(); break; case e.De: for (e = 0; e < g; e++)(h = c[e]) && h.De(); break; case e.bi: for (e = 0; e < g; e++)(h = c[e]) && h.bi(); break; case e.uh: for (e = 0; e < g; e++)(h = c[e]) && h.uh(); break; case e.kd: for (e = 0; e < g; e++)(h = c[e]) && h.kd(); break; default: f.assert(0, f.l.vma) } } }, Ha: null, Wa: function(c) { for (var d in c) this[d] = c[d] }, Uda: function() { return this.og }, XI: function(c) { this.og = c; this.Ha() }, Vda: function() { return this.pg }, YI: function(c) { this.pg = c; this.Ha() }, tl: function(c) { this.Ya = c; this.Yb && this.Yb.BC(this, c); f.Qa.DN(this) }, Cw: function(c) { this.Ya = c }, sAa: function() { return this.Ya }, NWa: function() { f.log(f.l.Cma); return this.Ya }, T4a: function(c) { f.log(f.l.Nma); this.tl(c) }, o3a: function(c) { this.Uq != c && (this.Uq = c, f.Qa.DN(this)) }, bUa: function() { return this.Uq }, MBa: function() { return this.PG }, XHa: function(c) { this.PG = c }, Cx: function() { this.bj !== this.hm && f.log(f.l.Ama); return this.bj }, yh: function(c) { this.bj = this.hm = c; this.Cn = 0.017453292519943295 * this.bj; this.Aw = 0.017453292519943295 * this.hm; this.Ha() }, dBa: function() { return this.bj }, M2: function(c) { this.bj = c; this.Cn = 0.017453292519943295 * this.bj; this.Ha() }, eBa: function() { return this.hm }, N2: function(c) { this.hm = c; this.Aw = 0.017453292519943295 * this.hm; this.Ha() }, AH: function() { this.ka !== this.ra && f.log(f.l.Bma); return this.ka }, ib: function(c, d) { this.ka = c; this.ra = d || 0 === d ? d : c; this.Ha() }, sP: function() { return this.ka }, jb: function(c) { this.ka = c; this.Ha() }, BH: function() { return this.ra }, tb: function(c) { this.ra = c; this.Ha() }, o: function(c, d) { var e = this.oa; void 0 === d ? (e.x = c.x, e.y = c.y) : (e.x = c, e.y = d); this.Ha() }, Od: function() { return r(this.oa) }, Vc: function() { return this.oa.x }, ls: function(c) { this.oa.x = c; this.Ha() }, Zd: function() { return this.oa.y }, Lu: function(c) { this.oa.y = c; this.Ha() }, Y_: function() { return this.i.length }, re: function() { return this.i }, V0: function() { return this.Na }, za: function(c) { this.Na = c; this.Ha() }, bk: function() { return this.Eb }, S: function(c, d) { var e = this.Eb; if (void 0 === d) { if (c.x === e.x && c.y === e.y) return; e.x = c.x; e.y = c.y } else { if (c === e.x && d === e.y) return; e.x = c; e.y = d } var g = this.Qb, h = this.m; g.x = h.width * e.x; g.y = h.height * e.y; this.Ha() }, bOa: function() { return this.Eb }, Uaa: function(c) { var d = c.x; c = c.y; this.Eb.x !== d && (this.Eb.x = d, this.Qb.x = this.m.width * d); this.Eb.y !== c && (this.Eb.y = c, this.Qb.y = this.m.height * c); this.Ha() }, l$: function() { return this.Eb.x }, Xe: function(c) { this.Eb.x !== c && (this.Eb.x = c, this.Qb.x = this.m.width * c, this.Ha()) }, m$: function() { return this.Eb.y }, Ye: function(c) { this.Eb.y !== c && (this.Eb.y = c, this.Qb.y = this.m.height * c, this.Ha()) }, Bp: function() { return this.Qb }, lf: function() { return this.m.width }, Uh: function(c) { this.m.width = c; this.Qb.x = c * this.Eb.x; this.Ha() }, Gg: function() { return this.m.height }, Th: function(c) { this.m.height = c; this.Qb.y = c * this.Eb.y; this.Ha() }, e: function() { return this.m }, Ga: function(c, d) { var e = this.m; if (void 0 === d) { if (c.width === e.width && c.height === e.height) return; e.width = c.width; e.height = c.height } else { if (c === e.width && d === e.height) return; e.width = c; e.height = d } var g = this.Qb, h = this.Eb; g.x = e.width * h.x; g.y = e.height * h.y; this.Ha() }, cDa: function() { return this.dd }, getParent: function() { return this.Yb }, aq: function(c) { this.Yb = c }, YCa: function() { return this.mn }, Gm: function(c) { c != this.mn && (this.mn = c, this.Ha()) }, Em: function() { return this.tag }, Nm: function(c) { this.tag = c }, gf: function() { this.nd }, getName: function() { return this.nd }, getUserData: function() { return this.userData }, setUserData: function(c) { this.userData = c }, JBa: function() { return this.userObject }, WHa: function(c) { this.userObject != c && (this.userObject = c) }, UUa: function() { return this.arrivalOrder }, sha: function(c) { this.arrivalOrder = c }, IB: function() { this.Ql || (this.Ql = f.Q.IB()); return this.Ql }, zga: function(c) { this.Ql != c && (this.Pm(), this.Ql = c) }, Dm: function() { this.nh || (this.nh = f.Q.Dm()); return this.nh }, Mha: function(c) { this.nh != c && (this.pJ(), this.nh = c) }, Ee: function() { return f.Fo(x(0, 0, this.m.width, this.m.height), this.se()) }, De: function() { this.Pm(); this.pJ(); f.Qa.mga(this); this.Bk(this.i, f.v.Fj.De) }, Za: function(c) { var d = this.i; if (null != d) for (var e = 0; e < d.length; e++) { var g = d[e]; if (g && g.tag == c) return g } return null }, sda: function(c) { if (!c) return f.log("Invalid name"), null; for (var d = this.i, e = 0, g = d.length; e < g; e++) if (d[e].nd == c) return d[e]; return null }, n: function(c, d, e) { f.assert(c, f.l.yma); c === this ? f.log(f.l.wma) : null !== c.Yb ? f.log(f.l.xma) : (d = null != d ? d : c.Ya, c.tag = null != e ? e : c.tag, this.Gsa(c, d), c.Yb = this, this.Gq && (c.Gq = this.Gq), this.dd && (c.ba(), this.AM && c.sj())) }, Yp: function(c) { this.Yb && (null == c && (c = !0), this.Yb.removeChild(this, c)) }, QFa: function(c) { f.log(f.l.Hma); this.Yp(c) }, removeChild: function(c, d) { 0 !== this.i.length && (null == d && (d = !0), -1 < this.i.indexOf(c) && this.$qa(c, d), this.Ha()) }, te: function(c, d) { c === f.hK && f.log(f.l.Fma); var e = this.Za(c); null == e ? f.log(f.l.Gma, c) : this.removeChild(e, d) }, Cu: function(c) { f.log(f.l.Ema); this.Cf(c) }, Cf: function(c) { var d = this.i; if (null != d) { null == c && (c = !0); for (var e = 0; e < d.length; e++) { var g = d[e]; g && (this.dd && (g.uh(), g.Ra()), c && g.De(), g.parent = null) } this.i.length = 0 } }, $qa: function(c, d) { this.dd && (c.uh(), c.Ra()); d && c.De(); c.parent = null; f.Ld(this.i, c) }, Gsa: function(c, d) { this.Sh = !0; this.i.push(c); c.Cw(d) }, BC: function(c, d) { f.assert(c, f.l.Ima); this.Sh = !0; c.arrivalOrder = f.TQ; f.TQ++; c.Cw(d); this.Ha() }, kd: function() { if (this.Sh) { var c = this.i, d = c.length, e, g, h; for (e = 1; e < d; e++) { h = c[e]; for (g = e - 1; 0 <= g;) { if (h.Ya < c[g].Ya) c[g + 1] = c[g]; else if (h.Ya === c[g].Ya && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g]; else break; g-- } c[g + 1] = h } this.Sh = !1 } }, ma: function() {}, mJ: function() { null != this.Yb && (this.Yb.mJ(), this.Yb.transform()) }, ba: function() { this.AM = !1; this.dd = !0; this.Bk(this.i, f.v.Fj.ba); this.lk() }, sj: function() { this.AM = !0; this.Bk(this.i, f.v.Fj.sj) }, uh: function() { this.Bk(this.i, f.v.Fj.uh) }, Ra: function() { this.dd = !1; this.pause(); this.Bk(this.i, f.v.Fj.Ra); this.Ro && this.Ro.kk() }, V: function(c) { f.assert(c, f.l.Kma); this.actionManager.Gva(c, this, !this.dd); return c }, Pm: function() { this.actionManager && this.actionManager.iga(this) }, hJ: function(c) { this.actionManager.hga(c) }, sIa: function(c) { c === f.uy ? f.log(f.l.Oma) : this.actionManager.IFa(c, this) }, eP: function(c) { return c === f.uy ? (f.log(f.l.zma), null) : this.actionManager.eP(c, this) }, NUa: function() { return this.actionManager.YDa(this) }, ds: function() { this.xga(0) }, xga: function(c) { this.scheduler.UQ(this, c, !this.dd) }, UC: function() { this.scheduler.qJ(this) }, Ux: function(c, d, e, g) { d = d || 0; f.assert(c, f.l.Lma); f.assert(0 <= d, f.l.Mma); e = null == e ? f.mv : e; this.scheduler.g2(this, c, d, e, g || 0, !this.dd) }, Y1a: function(c, d) { this.Ux(c, 0, 0, d) }, Tu: function(c) { c && this.scheduler.A3(this, c) }, pJ: function() { this.scheduler.Bia(this) }, K1a: function() { f.log(f.l.Jma); this.lk() }, lk: function() { this.scheduler.Km(this); this.actionManager && this.actionManager.Km(this); f.Qa.Km(this) }, k0a: function() { f.log(f.l.Dma); this.pause() }, pause: function() { this.scheduler.as(this); this.actionManager && this.actionManager.as(this); f.Qa.as(this) }, rGa: function(c) { this.Zy = c; this.Aq = this.Wk = !0 }, g0a: function() { this.yM && (this.D$ = f.SR(this.se()), this.yM = !1); return this.D$ }, il: function() { for (var c = this.se(), d = this.Yb; null != d; d = d.parent) c = f.Vg(c, d.se()); return c }, oJa: function() { return f.SR(this.il()) }, yi: function(c) { return f.lv(c, this.oJa()) }, um: function(c) { c = c || r(0, 0); return f.lv(c, this.il()) }, gxa: function(c) { return f.gc(this.yi(c), this.Qb) }, zQa: function(c) { c = c || r(0, 0); return this.um(f.Tp(c, this.Qb)) }, FNa: function(c) { c = this.um(c); return f.Q.hxa(c) }, yp: function(c) { return this.yi(c.cf()) }, AQa: function(c) { c = c.cf(); c = f.Q.fxa(c); return this.gxa(c) }, update: function(c) { this.Ro && !this.Ro.Jea() && this.Ro.I(c) }, bi: function() { this.Bk(this.i, f.v.Fj.bi) }, OQ: function() {}, wh: function() {}, uda: function(c) { return this.Ro.uda(c) }, fu: function(c) { this.Ro.add(c) }, k1a: function(c) { return this.Ro.remove(c) }, X0a: function() { this.Ro.kk() }, grid: null, ctor: null, I: null, transform: null, se: null, En: function() { if (!1 === this.Dk) { this.Dk = !0; var c = this.Gq; c && c != this && c.En() } }, fY: function(c) { if (this.Gq != c) { this.Gq = c; for (var d = this.i, e = 0, g = d.length; e < g; e++) d[e].fY(c) } }, yx: function() { this.Hq || (this.Hq = new f.rD); return this.Hq }, vH: function() { return this.grid }, UGa: function(c) { this.grid = c }, m0: function() { return this.sd }, WI: function(c) { this.sd = c }, Zza: function() { return this.EW }, TGa: function(c) { this.EW = c }, Dza: function() { var c = x(0, 0, this.m.width, this.m.height), d = this.il(), c = f.Ki(c, this.il()); if (!this.i) return c; for (var e = this.i, g = 0; g < e.length; g++) { var h = e[g]; h && h.Na && (h = h.uF(d)) && (c = f.zC(c, h)) } return c }, uF: function(c) { var d = x(0, 0, this.m.width, this.m.height); c = null == c ? this.se() : f.Vg(this.se(), c); d = f.Ki(d, c); if (!this.i) return d; for (var e = this.i, g = 0; g < e.length; g++) { var h = e[g]; h && h.Na && (h = h.uF(c)) && (d = f.zC(d, h)) } return d }, VM: function() { if (this.Wk) { var c = this.oa.x, d = this.oa.y, e = this.Qb.x, g = -e, h = this.Qb.y, k = -h, m = this.ka, n = this.ra; this.mn && (c += e, d += h); var p = 1, s = 0, u = 1, v = 0; if (0 !== this.bj || 0 !== this.hm) p = Math.cos(-this.Cn), s = Math.sin(-this.Cn), u = Math.cos(-this.Aw), v = Math.sin(-this.Aw); var z = this.og || this.pg; z || 0 === e && 0 === h || (c += u * g * m + -s * k * n, d += v * g * m + p * k * n); var A = this.Pf; A.a = u * m; A.b = v * m; A.G = -s * n; A.P = p * n; A.pa = c; A.qa = d; z && (A = f.Vg({ a: 1, b: Math.tan(f.sg(this.pg)), G: Math.tan(f.sg(this.og)), P: 1, pa: 0, qa: 0 }, A), 0 !== e || 0 !== h) && (A = f.xJ(A, g, k)); this.Aq && (A = f.Vg(A, this.Zy), this.Aq = !1); this.Pf = A; this.Wk = !1 } return this.Pf } }); f.v.create = function() { return new f.v }; f.v.Fj = { ba: 1, Ra: 2, De: 3, sj: 4, bi: 5, uh: 6, kd: 7 }; f.K === f.fb ? (q = f.v.prototype, q.ctor = function() { this.IW() }, q.Ha = function() { this.En(); !1 === this.Wk && (this.Wk = this.yM = !0) }, q.I = function(c) { if (this.Na) { c = c || f.s; var d, e = this.i, g; c.save(); this.transform(c); var h = e.length; if (0 < h) { this.kd(); for (d = 0; d < h; d++) if (g = e[d], 0 > g.Ya) g.I(c); else break; for (this.ma(c); d < h; d++) e[d].I(c) } else this.ma(c); this.Dk = !1; this.arrivalOrder = 0; c.restore() } }, q.transform = function(c) { c = c || f.s; var d = f.view, e = this.se(); c.transform(e.a, e.G, e.b, e.P, e.pa * d.ka, -e.qa * d.ra) }, q.se = function() { if (this.Wk) { var c = this.Pf; c.pa = this.oa.x; c.qa = this.oa.y; var d = 1, e = 0; this.bj && (d = Math.cos(this.Cn), e = Math.sin(this.Cn)); c.a = c.P = d; c.b = -e; c.G = e; var g = this.ka, h = this.ra, k = this.Qb.x, m = this.Qb.y, n = 1E-6 > g && -1E-6 < g ? 1E-6 : g, p = 1E-6 > h && -1E-6 < h ? 1E-6 : h; if (this.og || this.pg) { var s = Math.tan(-this.og * Math.PI / 180), u = Math.tan(-this.pg * Math.PI / 180); Infinity === s && (s = 99999999); Infinity === u && (u = 99999999); var v = m * s * n, z = k * u * p; c.a = d + -e * u; c.b = d * s + -e; c.G = e + d * u; c.P = e * s + d; c.pa += d * v + -e * z; c.qa += e * v + d * z } if (1 !== g || 1 !== h) c.a *= n, c.G *= n, c.b *= p, c.P *= p; c.pa += d * -k * n + -e * m * p; c.qa -= e * -k * n + d * m * p; this.mn && (c.pa += k, c.qa += m); this.Aq && (this.Pf = f.Vg(c, this.Zy), this.Aq = !1); this.Wk = !1 } return this.Pf }, q = null) : (f.assert("function" === typeof f.U.yU, f.l.Hf, "BaseNodesWebGL.js"), f.U.yU(), delete f.U.yU); f.assert("function" === typeof f.U.uT, f.l.Hf, "BaseNodesPropertyDefine.js"); f.U.uT(); delete f.U.uT; f.ja = f.v.extend({ wb: !0, kb: 255, Lg: 255, Ab: null, rd: null, dg: !1, Dg: !1, ctor: function() { f.v.prototype.ctor.call(this); this.Lg = this.kb = 255; this.Ab = f.color(255, 255, 255, 255); this.rd = f.color(255, 255, 255, 255); this.Dg = this.dg = !1 }, Jd: function() {}, vb: function() { return this.Lg }, wda: function() { return this.kb }, J: function(c) { this.kb = this.Lg = c; var d = 255, e = this.Yb; e && e.wb && e.cascadeOpacity && (d = e.kb); this.hc(d); this.Ab.a = this.rd.a = c }, hc: function(c) { this.kb = this.Lg * c / 255; if (this.Dg) { c = this.i; for (var d = 0; d < c.length; d++) { var e = c[d]; e && e.wb && e.hc(this.kb) } } }, WH: function() { return this.Dg }, Hu: function(c) { this.Dg !== c && ((this.Dg = c) ? this.Iz() : this.MV()) }, Iz: function() { var c = 255, d = this.Yb; d && d.wb && d.cascadeOpacity && (c = d.kb); this.hc(c) }, MV: function() { this.kb = this.Lg; for (var c = this.i, d = 0; d < c.length; d++) { var e = c[d]; e && e.wb && e.hc(255) } }, $a: function() { var c = this.rd; return f.color(c.r, c.g, c.b, c.a) }, ou: function() { var c = this.Ab; return f.color(c.r, c.g, c.b, c.a) }, F: function(c) { var d = this.Ab, e = this.rd; d.r = e.r = c.r; d.g = e.g = c.g; d.b = e.b = c.b; d = (d = this.Yb) && d.wb && d.cascadeColor ? d.ou() : f.color.WHITE; this.Wb(d); void 0 === c.a || c.Yw || this.J(c.a) }, Wb: function(c) { var d = this.Ab, e = this.rd; d.r = 0 | e.r * c.r / 255; d.g = 0 | e.g * c.g / 255; d.b = 0 | e.b * c.b / 255; if (this.dg) for (c = this.i, e = 0; e < c.length; e++) { var g = c[e]; g && g.wb && g.Wb(d) } }, VH: function() { return this.dg }, Gu: function(c) { this.dg !== c && ((this.dg = c) ? this.Hz() : this.LV()) }, Hz: function() { var c; c = (c = this.Yb) && c.wb && c.cascadeColor ? c.ou() : f.color.WHITE; this.Wb(c) }, LV: function() { var c = this.Ab, d = this.rd; c.r = d.r; c.g = d.g; c.b = d.b; for (var c = this.i, d = f.color.WHITE, e = 0; e < c.length; e++) { var g = c[e]; g && g.wb && g.Wb(d) } }, n: function(c, d, e) { f.v.prototype.n.call(this, c, d, e); this.dg && this.Hz(); this.Dg && this.Iz() }, ee: function() {}, vg: function() { return !1 } }); f.ja.create = function() { var c = new f.ja; c.j(); return c }; f.assert("function" === typeof f.U.vT, f.l.Hf, "BaseNodesPropertyDefine.js"); f.U.vT(); delete f.U.vT; f.v.bMa = 0; f.v.dMa = 1; f.v.cMa = 2; f.v.eMa = 3; f.v.aMa = 4; f.hq = f.ja.extend({ textureAtlas: null, quadsToDraw: 0, wb: !0, jA: 0, O$: 0, Sj: 0, Ti: 0, Nq: null, Jb: !1, B: null, pM: !1, ta: "AtlasNode", ctor: function(c, d, e, g) { f.ja.prototype.ctor.call(this); this.Nq = f.color.WHITE; this.B = { src: f.Mc, ha: f.Lc }; this.pM = !1; void 0 !== g && this.CCa(c, d, e, g) }, VC: function() { f.log(f.l.jja) }, $a: function() { return this.Jb ? this.Nq : f.ja.prototype.$a.call(this) }, ee: function(c) { var d = this.color; this.Jb = c; this.color = d }, vg: function() { return this.Jb }, ck: function() { return this.B }, ce: function(c, d) { this.B = void 0 === d ? c : { src: c, ha: d } }, U2: function(c) { this.textureAtlas = c }, DH: function() { return this.textureAtlas }, xVa: function() { return this.quadsToDraw }, $3a: function(c) { this.quadsToDraw = c }, Vt: null, qi: null, WY: null, XE: null, CCa: function(c, d, e, g) { if (!c) throw "cc.AtlasNode.initWithTileFile(): title should not be null"; c = f.nb.vd(c); return this.va(c, d, e, g) }, va: null, JW: function(c, d, e, g) { this.Sj = d; this.Ti = e; this.Jb = !0; this.qi = c; if (!this.qi) return f.log(f.l.P3), !1; this.Vt = this.qi; this.jL(); this.quadsToDraw = g; return !0 }, KW: function(c, d, e, g) { this.Sj = d; this.Ti = e; this.Nq = f.color.WHITE; this.Jb = !0; this.B.src = f.Mc; this.B.ha = f.Lc; d = this.rd; this.XE = new Float32Array([d.r / 255, d.g / 255, d.b / 255, this.Lg / 255]); this.textureAtlas = new f.wq; this.textureAtlas.va(c, g); if (!this.textureAtlas) return f.log(f.l.P3), !1; this.Yk(); this.Eba(); this.jL(); this.quadsToDraw = g; this.shaderProgram = f.xg.be(f.uK); this.WY = f.s.getUniformLocation(this.shaderProgram.Bx(), "u_color"); return !0 }, ma: null, fn: function(c) { c = c || f.s; f.qC(this); f.Fm(this.B.src, this.B.ha); this.WY && this.XE && (c.uniform4fv(this.WY, this.XE), this.textureAtlas.Vca(this.quadsToDraw)) }, F: null, nua: function(c) { var d = this.rd; if (d.r != c.r || d.g != c.g || d.b != c.b) { d = f.color(c.r, c.g, c.b); this.Nq = c; if (this.Jb) { var e = this.kb; d.r = d.r * e / 255; d.g = d.g * e / 255; d.b = d.b * e / 255 } f.ja.prototype.F.call(this, c); this.texture && (c = this.qi.md) && (d = f.nb.vP(c)) && (c = f.HB(c, d, this.rd, x(0, 0, c.width, c.height)), d = new f.Pa, d.sh(c), d.$d(), this.texture = d) } }, oua: function(c) { var d = f.color(c.r, c.g, c.b); this.Nq = c; var e = this.kb; this.Jb && (d.r = d.r * e / 255, d.g = d.g * e / 255, d.b = d.b * e / 255); f.ja.prototype.F.call(this, c); c = this.Ab; this.XE = new Float32Array([c.r / 255, c.g / 255, c.b / 255, e / 255]) }, J: function() {}, lY: function(c) { f.ja.prototype.J.call(this, c); this.Jb && (this.color = this.Nq) }, mY: function(c) { f.ja.prototype.J.call(this, c); this.Jb ? this.color = this.Nq : (c = this.Ab, this.XE = new Float32Array([c.r / 255, c.g / 255, c.b / 255, this.kb / 255])) }, sb: null, xF: function() { return this.Vt }, BW: function() { return this.textureAtlas.texture }, ab: null, qY: function(c) { this.Vt = c }, rY: function(c) { this.textureAtlas.texture = c; this.Yk(); this.Eba() }, jL: null, Bqa: function() { var c = this.texture.e(); this.O$ = 0 | c.height / this.Ti; this.jA = 0 | c.width / this.Sj }, Cqa: function() { var c = this.texture, d = c.e(); this.pM && (d = c.m); this.O$ = 0 | d.height / this.Ti; this.jA = 0 | d.width / this.Sj }, Yk: function() { this.textureAtlas.texture.Ep() || (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA) }, Eba: function() { this.Jb = this.textureAtlas.texture.Ep() }, iY: function(c) { this.pM = c } }); q = f.hq.prototype; f.K === f.na ? (q.va = q.KW, q.ma = q.fn, q.F = q.oua, q.J = q.mY, q.sb = q.BW, q.ab = q.rY, q.jL = q.Cqa) : (q.va = q.JW, q.ma = f.v.prototype.ma, q.F = q.nua, q.J = q.lY, q.sb = q.xF, q.ab = q.qY, q.jL = q.Bqa); f.d(q, "opacity", q.vb, q.J); f.d(q, "color", q.$a, q.F); f.d(q, "texture", q.sb, q.ab); f.hq.create = function(c, d, e, g) { return new f.hq(c, d, e, g) }; f.U.EU = function() { f.Pa = f.N.extend({ HOa: !0, gp: null, kr: 0, jr: 0, nd: "", m: null, Pp: 0, Qp: 0, oM: !1, Zz: !1, shaderProgram: null, ie: !1, md: null, Wh: null, url: null, dc: null, ctor: function() { this.m = t(0, 0); this.gp = f.Pa.Ica }, W1: function() { this.Wh && f.s.deleteTexture(this.Wh); f.L.wh(this.url) }, Nda: function() { return this.gp }, h0: function() { return this.kr }, g0: function() { return this.jr }, getName: function() { return this.Wh }, e: function() { return t(this.m.width / f.Uc(), this.m.height / f.Uc()) }, lf: function() { return this.m.width / f.Uc() }, Gg: function() { return this.m.height / f.Uc() }, Kza: function() { return this.m }, zAa: function() { return this.Pp }, eHa: function(c) { this.Pp = c }, AAa: function() { return this.Qp }, fHa: function(c) { this.Qp = c }, m0: function() { return this.shaderProgram }, WI: function(c) { this.shaderProgram = c }, Ep: function() { return this.oM }, YBa: function() { return this.Zz }, description: function() { return "\x3ccc.Texture2D | Name \x3d " + this.nd + " | Dimensions \x3d " + this.kr + " x " + this.jr + " | Coordinates \x3d (" + this.Pp + ", " + this.Qp + ")\x3e" }, GFa: function() {}, kDa: function(c) { return c }, su: function(c, d, e, g, h) { var k = f.Pa, m = f.s, n = m.RGBA, p = m.UNSIGNED_BYTE, s = e * f.Pa.p8[d] / 8; 0 === s % 8 ? m.pixelStorei(m.UNPACK_ALIGNMENT, 8) : 0 === s % 4 ? m.pixelStorei(m.UNPACK_ALIGNMENT, 4) : 0 === s % 2 ? m.pixelStorei(m.UNPACK_ALIGNMENT, 2) : m.pixelStorei(m.UNPACK_ALIGNMENT, 1); this.Wh = m.createTexture(); f.Ai(this); m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MIN_FILTER, m.LINEAR); m.texParameteri(m.TEXTURE_2D, m.TEXTURE_MAG_FILTER, m.LINEAR); m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_S, m.CLAMP_TO_EDGE); m.texParameteri(m.TEXTURE_2D, m.TEXTURE_WRAP_T, m.CLAMP_TO_EDGE); switch (d) { case k.sq: n = m.RGBA; break; case k.dE: n = m.RGB; break; case k.jK: p = m.UNSIGNED_SHORT_4_4_4_4; break; case k.iK: p = m.UNSIGNED_SHORT_5_5_5_1; break; case k.cE: p = m.UNSIGNED_SHORT_5_6_5; break; case k.nT: n = m.LUMINANCE_ALPHA; break; case k.bE: n = m.ALPHA; break; case k.oT: n = m.LUMINANCE; break; default: f.assert(0, f.l.Yoa) } m.texImage2D(m.TEXTURE_2D, 0, n, e, g, 0, n, p, c); this.m.width = h.width; this.m.height = h.height; this.kr = e; this.jr = g; this.gp = d; this.Pp = h.width / e; this.Qp = h.height / g; this.Zz = this.oM = !1; this.shaderProgram = f.xg.be(f.jE); return this.ie = !0 }, cya: function(c) { var d = [0, this.Qp, this.Pp, this.Qp, 0, 0, this.Pp, 0], e = this.kr * this.Pp, g = this.jr * this.Qp; c = [c.x, c.y, 0, e + c.x, c.y, 0, c.x, g + c.y, 0, e + c.x, g + c.y, 0]; f.wf(f.Gh | f.Wy); this.sd.Ff(); this.sd.dJ(); f.Ai(this); e = f.s; e.vertexAttribPointer(f.Oc, 2, e.FLOAT, !1, 0, c); e.vertexAttribPointer(f.$g, 2, e.FLOAT, !1, 0, d); e.drawArrays(e.TRIANGLE_STRIP, 0, 4) }, fya: function(c) { var d = [0, this.Qp, this.Pp, this.Qp, 0, 0, this.Pp, 0]; c = [c.x, c.y, c.x + c.width, c.y, c.x, c.y + c.height, c.x + c.width, c.y + c.height ]; f.wf(f.Gh | f.Wy); this.sd.Ff(); this.sd.dJ(); f.Ai(this); var e = f.s; e.vertexAttribPointer(f.Oc, 2, e.FLOAT, !1, 0, c); e.vertexAttribPointer(f.$g, 2, e.FLOAT, !1, 0, d); e.drawArrays(e.TRIANGLE_STRIP, 0, 4) }, Bea: function(c) { if (null == c) return f.log(f.l.apa), !1; var d = c.RBa(), e = c.aAa(), g = f.tB.MF; if (d > g || e > g) return f.log(f.l.bpa, d, e, g, g), !1; this.ie = !0; return this.ysa(c, d, e) }, sh: function(c) { c && (this.Wh = f.s.createTexture(), this.md = c) }, cAa: function() { return this.md }, ZCa: function() { return this.ie }, $d: function() { if (f.uN) { if (!this.md) { var c = f.L.zd(this.url); if (!c) return; this.sh(c) } this.md.width && this.md.height && (this.ie = !0, c = f.s, f.Ai(this), c.pixelStorei(c.UNPACK_ALIGNMENT, 4), c.texImage2D(c.TEXTURE_2D, 0, c.RGBA, c.RGBA, c.UNSIGNED_BYTE, this.md), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.LINEAR), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_S, c.CLAMP_TO_EDGE), c.texParameteri(c.TEXTURE_2D, c.TEXTURE_WRAP_T, c.CLAMP_TO_EDGE), this.shaderProgram = f.xg.be(f.jE), f.Ai(null), c = this.md.height, this.kr = this.m.width = this.md.width, this.jr = this.m.height = c, this.gp = f.Pa.sq, this.Qp = this.Pp = 1, this.Zz = this.oM = !1, this.jf()) } }, xf: function() { f.log(f.l.gpa); return null }, sCa: function() { f.log(f.l.$oa); return !1 }, wCa: function() { f.log(f.l.dpa); return !1 }, xCa: function() { f.log(f.l.fpa); return !1 }, PHa: function(c) { var d = f.s; f.assert(this.kr == f.xs(this.kr) && this.jr == f.xs(this.jr) || c.pJa == d.CLAMP_TO_EDGE && c.qJa == d.CLAMP_TO_EDGE, "WebGLRenderingContext.CLAMP_TO_EDGE should be used in NPOT textures"); f.Ai(this); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MIN_FILTER, c.nfa); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_MAG_FILTER, c.kfa); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_S, c.pJa); d.texParameteri(d.TEXTURE_2D, d.TEXTURE_WRAP_T, c.qJa) }, xGa: function() { var c = f.s; f.Ai(this); this.Zz ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.LINEAR); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST) }, j2: function() { var c = f.s; f.Ai(this); this.Zz ? c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST_MIPMAP_NEAREST) : c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MIN_FILTER, c.NEAREST); c.texParameteri(c.TEXTURE_2D, c.TEXTURE_MAG_FILTER, c.NEAREST) }, generateMipmap: function() { f.assert(this.kr == f.xs(this.kr) && this.jr == f.xs(this.jr), "Mimpap texture only works in POT textures"); f.Ai(this); f.s.generateMipmap(f.s.TEXTURE_2D); this.Zz = !0 }, vIa: function() { return f.Pa.Tpa[this.gp] }, Gwa: function(c) { c = c || this.gp; var d = f.Pa.p8[c]; if (null != d) return d; f.log(f.l.Xoa, c); return -1 }, ysa: function(c, d, e) { var g = f.Pa, h = c.getData(), k = null, k = null, m = c.WWa(), n = t(c.RBa(), c.aAa()), p = g.Ica, s = c.uSa(); m || (8 <= s ? p = g.dE : (f.log(f.l.Uoa), p = g.cE)); var u = d * e; if (p == g.cE) if (m) for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] >> 0 & 255) >> 3 << 11 | (k[s] >> 8 & 255) >> 2 << 5 | (k[s] >> 16 & 255) >> 3 << 0; else for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] & 255) >> 3 << 11 | (k[s] & 255) >> 2 << 5 | (k[s] & 255) >> 3 << 0; else if (p == g.jK) for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] >> 0 & 255) >> 4 << 12 | (k[s] >> 8 & 255) >> 4 << 8 | (k[s] >> 16 & 255) >> 4 << 4 | (k[s] >> 24 & 255) >> 4 << 0; else if (p == g.iK) for (h = new Uint16Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = (k[s] >> 0 & 255) >> 3 << 11 | (k[s] >> 8 & 255) >> 3 << 6 | (k[s] >> 16 & 255) >> 3 << 1 | (k[s] >> 24 & 255) >> 7 << 0; else if (p == g.bE) for (h = new Uint8Array(d * e), k = c.getData(), s = 0; s < u; ++s) h[s] = k >> 24 & 255; if (m && p == g.dE) for (k = c.getData(), h = new Uint8Array(d * e * 3), s = 0; s < u; ++s) h[3 * s] = k >> 0 & 255, h[3 * s + 1] = k >> 8 & 255, h[3 * s + 2] = k >> 16 & 255; this.su(h, p, d, e, n); c.getData(); this.oM = c.RXa(); return !0 }, oe: function(c, d) { this.dc || (this.dc = []); this.dc.push({ al: c, nj: d }) }, RFa: function(c) { if (this.dc) for (var d = this.dc, e = 0; e < d.length; e++) d[e].nj == c && d.splice(e, 1) }, jf: function() { if (this.dc) { for (var c = this.dc, d = 0, e = c.length; d < e; d++) { var g = c[d]; g.al.call(g.nj, this) } c.length = 0 } } }) }; f.U.FU = function() { var c = f.wq.prototype; c.Dw = function() { var c = f.s; this.Se[0] = c.createBuffer(); this.Se[1] = c.createBuffer(); this.vw = c.createBuffer(); this.KM() }; c.KM = function() { var c = f.s; c.bindBuffer(c.ARRAY_BUFFER, this.vw); c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]); c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW) }; c.Vca = function(c) { var e; e = 0; if (0 !== c && this.texture && this.texture.ie) { var g = f.s; f.Ai(this.texture); f.wf(f.tv); g.bindBuffer(g.ARRAY_BUFFER, this.vw); this.dirty && g.bufferData(g.ARRAY_BUFFER, this.kg, g.DYNAMIC_DRAW); g.vertexAttribPointer(f.Oc, 3, g.FLOAT, !1, 24, 0); g.vertexAttribPointer(f.Mi, 4, g.UNSIGNED_BYTE, !0, 24, 12); g.vertexAttribPointer(f.$g, 2, g.FLOAT, !1, 24, 16); this.dirty && (this.dirty = !1); g.bindBuffer(g.ELEMENT_ARRAY_BUFFER, this.Se[1]); f.n7 ? g.drawElements(g.TRIANGLE_STRIP, 6 * c, g.UNSIGNED_SHORT, 6 * e * this.Tb.BYTES_PER_ELEMENT) : g.drawElements(g.TRIANGLES, 6 * c, g.UNSIGNED_SHORT, 6 * e * this.Tb.BYTES_PER_ELEMENT); f.bl++ } } }; f.U.GU = function() { var c = f.nb; c.$d = function(c) { var e = this.uf; f.uN || (e = this.LF); var g = e[c]; g || (g = e[c] = new f.Pa, g.url = c); g.$d() }; c.vd = function(c, e, g) { f.assert(c, f.l.Woa); var h = this.uf; f.uN || (h = this.LF); var k = h[c] || h[f.L.xv[c]]; if (k) return e && e.call(g), k; f.L.zd(c) || (f.L.V8(c) ? f.L.load(c, function() { e && e.call(g) }) : f.L.jj[c] = f.L.eI(c, function(g, h) { if (g) return e ? e(g) : g; f.nb.$d(c); e && e(null, h) })); k = h[c] = new f.Pa; k.url = c; return k }; delete c }; f.U.CT = function() { var c = f.Pa; c.oMa = function(c) { f.ina = c }; c.sq = 2; c.dE = 3; c.cE = 4; c.bE = 5; c.oT = 6; c.nT = 7; c.jK = 8; c.iK = 7; c.x6 = 9; c.w6 = 10; c.Yma = c.sq; var d = f.Pa.Tpa = {}; d[c.sq] = "RGBA8888"; d[c.dE] = "RGB888"; d[c.cE] = "RGB565"; d[c.bE] = "A8"; d[c.oT] = "I8"; d[c.nT] = "AI88"; d[c.jK] = "RGBA4444"; d[c.iK] = "RGB5A1"; d[c.x6] = "PVRTC4"; d[c.w6] = "PVRTC2"; d = f.Pa.p8 = {}; d[c.sq] = 32; d[c.dE] = 24; d[c.cE] = 16; d[c.bE] = 8; d[c.oT] = 8; d[c.nT] = 16; d[c.jK] = 16; d[c.iK] = 16; d[c.x6] = 4; d[c.w6] = 3; d = f.Pa.prototype; f.d(d, "name", d.getName); f.d(d, "pixelFormat", d.Nda); f.d(d, "pixelsWidth", d.h0); f.d(d, "pixelsHeight", d.g0); f.d(d, "width", d.lf); f.d(d, "height", d.Gg); c.Ica = c.Yma }; f.U.DT = function() { var c = f.wq.prototype; f.d(c, "totalQuads", c.gea); f.d(c, "capacity", c.qda); f.d(c, "quads", c.Oda, c.Hha) }; f.xJa = 51; f.AJa = 19; f.CJa = 18; f.zJa = 50; f.wJa = 34; f.uJa = 35; f.vJa = 33; f.yJa = 49; f.BJa = 17; f.ina = !1; f.K === f.fb ? f.Pa = f.N.extend({ m: null, ie: !1, md: null, dc: null, url: null, ctor: function() { this.m = t(0, 0); this.ie = !1; this.md = null }, h0: function() { return this.m.width }, g0: function() { return this.m.height }, e: function() { var c = f.Uc(); return t(this.m.width / c, this.m.height / c) }, lf: function() { return this.m.width / f.Uc() }, Gg: function() { return this.m.height / f.Uc() }, Kza: function() { return this.m }, sh: function(c) { c && (this.md = c) }, cAa: function() { return this.md }, ZCa: function() { return this.ie }, $d: function() { if (!this.ie) { if (!this.md) { var c = f.L.zd(this.url); if (!c) return; this.sh(c) } this.ie = !0; c = this.md; this.m.width = c.width; this.m.height = c.height; this.jf() } }, description: function() { return "\x3ccc.Texture2D | width \x3d " + this.m.width + " height " + this.m.height + "\x3e" }, su: function() { return !1 }, Bea: function() { return !1 }, xf: function() { return !1 }, W1: function() {}, getName: function() { return null }, zAa: function() { return 1 }, eHa: function() {}, AAa: function() { return 1 }, fHa: function() {}, Nda: function() { return null }, m0: function() { return null }, WI: function() {}, Ep: function() { return !1 }, YBa: function() { return !1 }, GFa: function() {}, kDa: function(c) { return c }, cya: function() {}, fya: function() {}, sCa: function() { f.log(f.l.Zoa); return !1 }, wCa: function() { f.log(f.l.cpa); return !1 }, xCa: function() { f.log(f.l.epa); return !1 }, PHa: function() {}, xGa: function() {}, j2: function() {}, generateMipmap: function() {}, vIa: function() { return "" }, Gwa: function() { return -1 }, oe: function(c, d) { this.dc || (this.dc = []); this.dc.push({ al: c, nj: d }) }, RFa: function(c) { if (this.dc) for (var d = this.dc, e = 0; e < d.length; e++) d[e].nj == c && d.splice(e, 1) }, jf: function() { if (this.dc) { for (var c = this.dc, d = 0, e = c.length; d < e; d++) { var g = c[d]; g.al.call(g.nj, this) } c.length = 0 } } }) : (f.assert("function" === typeof f.U.EU, f.l.Hf, "TexturesWebGL.js"), f.U.EU(), delete f.U.EU); f.assert("function" === typeof f.U.CT, f.l.Hf, "TexturesPropertyDefine.js"); f.U.CT(); delete f.U.CT; f.nb = { uf: {}, DG: {}, RY: 0 | 1E3 * Math.random(), LF: {}, Fsa: function() { var c, d = this.LF, e = this.uf; for (c in d) { var g = d[c]; g.$d(); e[c] = g } this.LF = {} }, yPa: function() { f.log(f.l.BIa) }, mPa: function() { f.log(f.l.zIa) }, description: function() { return "\x3cTextureCache | Number of textures \x3d " + this.uf.length + "\x3e" }, Ru: function(c) { return this.uf[c] || this.uf[f.L.xv[c]] }, mAa: function(c) { for (var d in this.uf) if (this.uf[d] == c) return d; return null }, yra: function() { this.RY++; return "_textureKey_" + this.RY }, vP: function(c) { var d = this.mAa(c); d || (d = c instanceof HTMLImageElement ? c.src : this.yra()); this.DG[d] || (this.DG[d] = f.GB(c)); return this.DG[d] }, xPa: function() { f.log(f.l.AIa) }, c1a: function() { var c = this.uf, d; for (d in c) c[d] && c[d].W1(); this.uf = {} }, z1a: function(c) { if (c) { var d = this.uf, e; for (e in d) d[e] == c && (d[e].W1(), delete d[e]) } }, A1a: function(c) { null != c && this.uf[c] && delete this.uf[c] }, Mwa: function(c, d) { if (d instanceof f.Pa) this.uf[c] = d; else { var e = new f.Pa; e.sh(d); e.$d(); this.uf[c] = e } }, EPa: function(c, d) { f.assert(c, f.l.DIa); if (d && this.uf[d]) return this.uf[d]; var e = new f.Pa; e.Bea(c); null != d && null != e ? this.uf[d] = e : f.log(f.l.CIa); return e }, gRa: function() { var c = 0, d = 0, e = this.uf, g; for (g in e) { var h = e[g]; c++; h.md instanceof HTMLImageElement ? f.log(f.l.EIa, g, h.md.src, h.pixelsWidth, h.pixelsHeight) : f.log(f.l.tia, g, h.pixelsWidth, h.pixelsHeight); d += h.pixelsWidth * h.pixelsHeight * 4 } e = this.DG; for (g in e) { var h = e[g], k; for (k in h) { var m = h[k]; c++; f.log(f.l.tia, g, m.width, m.height); d += m.width * m.height * 4 } } f.log(f.l.FIa, c, d / 1024, (d / 1048576).toFixed(2)) }, Vs: function() { this.uf = {}; this.DG = {}; this.RY = 0 | 1E3 * Math.random(); this.LF = {} } }; f.K === f.fb ? (q = f.nb, q.$d = function(c) { var d = this.uf, e = d[c]; e || (e = d[c] = new f.Pa, e.url = c); e.$d() }, q.vd = function(c, d, e) { f.assert(c, f.l.Voa); var g = this.uf, h = g[c] || g[f.L.xv[c]]; if (h) return d && d.call(e), h; h = g[c] = new f.Pa; h.url = c; f.L.zd(c) ? h.$d() : f.L.V8(c) ? f.L.load(c, function() { d && d.call(e) }) : f.L.jj[c] = f.L.eI(c, function(e, g) { if (e) return d ? d(e) : e; f.nb.$d(c); d && d(null, g) }); return h }, q = null) : (f.assert("function" === typeof f.U.GU, f.l.Hf, "TexturesWebGL.js"), f.U.GU(), delete f.U.GU); f.wq = f.N.extend({ dirty: !1, texture: null, Tb: null, Se: null, cg: 0, of: null, kg: null, vw: null, Rk: null, ctor: function(c, d) { this.Se = []; "string" == typeof c ? this.Ge(c, d) : c instanceof f.Pa && this.va(c, d) }, gea: function() { return this.Vb }, qda: function() { return this.cg }, sb: function() { return this.texture }, ab: function(c) { this.texture = c }, Sga: function(c) { this.dirty = c }, R0: function() { return this.dirty }, Oda: function() { return this.of }, Hha: function(c) { this.of = c }, Uqa: function(c, d) { if (c) for (var e = 0; e < c.length; e++) this.GN(c[e], d + e) }, GN: function(c, d) { var e = this.of; e[d] ? (e[d].T = c.T, e[d].aa = c.aa, e[d].Z = c.Z, e[d].W = c.W) : e[d] = new f.Yc(c.Z, c.T, c.W, c.aa, this.kg, d * f.Yc.BYTES_PER_ELEMENT) }, description: function() { return "\x3ccc.TextureAtlas | totalQuads \x3d" + this.Vb + "\x3e" }, aba: function() { if (0 !== this.cg) for (var c = this.Tb, d = this.cg, e = 0; e < d; e++) f.n7 ? (c[6 * e + 0] = 4 * e + 0, c[6 * e + 1] = 4 * e + 0, c[6 * e + 2] = 4 * e + 2, c[6 * e + 3] = 4 * e + 1, c[6 * e + 4] = 4 * e + 3, c[6 * e + 5] = 4 * e + 3) : (c[6 * e + 0] = 4 * e + 0, c[6 * e + 1] = 4 * e + 1, c[6 * e + 2] = 4 * e + 2, c[6 * e + 3] = 4 * e + 3, c[6 * e + 4] = 4 * e + 2, c[6 * e + 5] = 4 * e + 1) }, Dw: function() { var c = f.s; this.Se[0] = c.createBuffer(); this.Se[1] = c.createBuffer(); this.vw = c.createBuffer(); this.KM() }, KM: function() { var c = f.s; c.bindBuffer(c.ARRAY_BUFFER, this.vw); c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]); c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW) }, Ge: function(c, d) { var e = f.nb.vd(c); if (e) return this.va(e, d); f.log(f.l.hpa, c); return !1 }, va: function(c, d) { f.assert(c, f.l.ipa); this.cg = d |= 0; this.Vb = 0; this.texture = c; this.of = []; this.Tb = new Uint16Array(6 * d); var e = f.Yc.BYTES_PER_ELEMENT; this.kg = new ArrayBuffer(e * d); this.Rk = new Uint8Array(this.kg); if ((!this.of || !this.Tb) && 0 < d) return !1; for (var g = this.of, h = 0; h < d; h++) g[h] = new f.Yc(null, null, null, null, this.kg, h * e); this.aba(); this.Dw(); return this.dirty = !0 }, rJ: function(c, d) { f.assert(c, f.l.spa); f.assert(0 <= d && d < this.cg, f.l.tpa); this.Vb = Math.max(d + 1, this.Vb); this.GN(c, d); this.dirty = !0 }, O0: function(c, d) { f.assert(d < this.cg, f.l.lpa); this.Vb++; if (this.Vb > this.cg) f.log(f.l.z7); else { var e = f.Yc.BYTES_PER_ELEMENT, g = d * e, h = (this.Vb - 1 - d) * e; this.of[this.Vb - 1] = new f.Yc(null, null, null, null, this.kg, (this.Vb - 1) * e); this.Rk.set(this.Rk.subarray(g, g + h), g + e); this.GN(c, d); this.dirty = !0 } }, lXa: function(c, d, e) { e = e || c.length; f.assert(d + e <= this.cg, f.l.mpa); var g = f.Yc.BYTES_PER_ELEMENT; this.Vb += e; if (this.Vb > this.cg) f.log(f.l.z7); else { var h = d * g, k = (this.Vb - 1 - d - e) * g, m = this.Vb - 1 - e, n; for (n = 0; n < e; n++) this.of[m + n] = new f.Yc(null, null, null, null, this.kg, (this.Vb - 1) * g); this.Rk.set(this.Rk.subarray(h, h + k), h + g * e); for (n = 0; n < e; n++) this.GN(c[n], d + n); this.dirty = !0 } }, kXa: function(c, d) { if (c !== d) { f.assert(0 <= d || d < this.Vb, f.l.jpa); f.assert(0 <= c || c < this.Vb, f.l.kpa); var e = f.Yc.BYTES_PER_ELEMENT, g = this.Rk, h = g.subarray(c * e, e), k; c > d ? (k = d * e, g.set(g.subarray(k, k + (c - d) * e), k + e), g.set(h, k)) : (k = (c + 1) * e, g.set(g.subarray(k, k + (d - c) * e), k - e), g.set(h, d * e)); this.dirty = !0 } }, oga: function(c) { f.assert(c < this.Vb, f.l.qpa); var d = f.Yc.BYTES_PER_ELEMENT; this.Vb--; this.of.length = this.Vb; if (c !== this.Vb) { var e = (c + 1) * d; this.Rk.set(this.Rk.subarray(e, e + (this.Vb - c) * d), e - d) } this.dirty = !0 }, TFa: function(c, d) { f.assert(c + d <= this.Vb, f.l.rpa); this.Vb -= d; if (c !== this.Vb) { var e = f.Yc.BYTES_PER_ELEMENT, g = (c + d) * e; this.Rk.set(this.Rk.subarray(g, g + (this.Vb - c) * e), c * e) } this.dirty = !0 }, AC: function() { this.Vb = this.of.length = 0 }, Lt: function(c) { this.dirty = c }, NQ: function(c) { if (c == this.cg) return !0; var d = f.Yc.BYTES_PER_ELEMENT, e = this.cg; this.Vb = Math.min(this.Vb, c); var g = this.cg = 0 | c, h = this.Vb; if (null == this.of) for (this.of = [], this.kg = new ArrayBuffer(d * g), this.Rk = new Uint8Array(this.kg), c = 0; c < g; c++) this.of = new f.Yc(null, null, null, null, this.kg, c * d); else { var k, m, n = this.of; if (g > e) { k = []; m = new ArrayBuffer(d * g); for (c = 0; c < h; c++) k[c] = new f.Yc(n[c].Z, n[c].T, n[c].W, n[c].aa, m, c * d); for (; c < g; c++) k[c] = new f.Yc(null, null, null, null, m, c * d) } else for (h = Math.max(h, g), k = [], m = new ArrayBuffer(d * g), c = 0; c < h; c++) k[c] = new f.Yc(n[c].Z, n[c].T, n[c].W, n[c].aa, m, c * d); this.Rk = new Uint8Array(m); this.of = k; this.kg = m } null == this.Tb ? this.Tb = new Uint16Array(6 * g) : g > e ? (d = new Uint16Array(6 * g), d.set(this.Tb, 0), this.Tb = d) : this.Tb = this.Tb.subarray(0, 6 * g); this.aba(); this.KM(); return this.dirty = !0 }, rea: function(c) { this.Vb += c }, pfa: function(c, d, e) { if (void 0 === e) { if (e = d, d = this.Vb - c, f.assert(e + (this.Vb - c) <= this.cg, f.l.npa), 0 === d) return } else if (f.assert(e + d <= this.Vb, f.l.opa), f.assert(c < this.Vb, f.l.ppa), c == e) return; var g = f.Yc.BYTES_PER_ELEMENT, h = c * g, k = d * g, m = this.Rk, n = m.subarray(h, h + k), p = e * g; e < c ? (d = e * g, m.set(m.subarray(d, d + (c - e) * g), d + k)) : (d = (c + d) * g, m.set(m.subarray(d, d + (e - c) * g), h)); m.set(n, p); this.dirty = !0 }, bda: function(c, d) { for (var e = d * f.Yc.BYTES_PER_ELEMENT, g = new Uint8Array(this.kg, c * f.Yc.BYTES_PER_ELEMENT, e), h = 0; h < e; h++) g[h] = 0 }, yB: function() { this.Vca(this.Vb) }, KOa: function() { var c = f.s; this.Se && (this.Se[0] && c.deleteBuffer(this.Se[0]), this.Se[1] && c.deleteBuffer(this.Se[1])); this.vw && c.deleteBuffer(this.vw) } }); q = f.wq.prototype; f.d(q, "totalQuads", q.gea); f.d(q, "capacity", q.qda); f.d(q, "quads", q.Oda, q.Hha); f.wq.create = function(c, d) { return new f.wq(c, d) }; f.K === f.na && (f.assert("function" === typeof f.U.FU, f.l.Hf, "TexturesWebGL.js"), f.U.FU(), delete f.U.FU); f.assert("function" === typeof f.U.DT, f.l.Hf, "TexturesPropertyDefine.js"); f.U.DT(); delete f.U.DT; f.tq = f.v.extend({ ta: "Scene", ctor: function() { f.v.prototype.ctor.call(this); this.mn = !0; this.S(0.5, 0.5); this.Ga(f.Q.Y) } }); f.tq.create = function() { return new f.tq }; f.eT = f.tq.extend({ pt: null, Q$: 0, AV: 0, gg: null, ta: "LoaderScene", j: function() { var c = this, d = 200, e = c.tqa = f.$f.create(f.color(32, 32, 32, 255)); e.o(f.qy.KZ); c.n(e, 0); var g = 24, h = -d / 2 + 100; f.VW && (f.L.eI(f.VW, { Q0: !1 }, function(e, g) { d = g.height; c.zsa(g, f.qy.KO) }), g = 14, h = -d / 2 - 10); g = c.gg = f.ia.create("Loading... 0%", "Arial", g); g.o(f.Tp(f.qy.KO, r(0, h))); g.F(f.color(180, 180, 180)); e.n(this.gg, 10); return !0 }, zsa: function(c, d) { var e = new f.Pa; e.sh(c); e.$d(); e = f.q.create(e); e.ib(f.Uc()); e.x = d.x; e.y = d.y; this.tqa.n(e, 10) }, ba: function() { f.v.prototype.ba.call(this); this.Ux(this.lba, 0.3) }, Ra: function() { f.v.prototype.Ra.call(this); this.gg.wa("Loading... 0%") }, zCa: function(c, d) { "string" == typeof c && (c = [c]); this.bGa = c || []; this.Yh = d }, lba: function() { var c = this; c.Tu(c.lba); var d = c.bGa; c.Q$ = d.length; c.AV = 0; f.L.load(d, function(d, g) { c.AV = g }, function() { c.Yh && c.Yh() }); c.Ux(c.Fba) }, Fba: function() { var c = this.AV, d = this.Q$, e; e = Math.min(c / d * 100 | 0, 100); this.gg.wa("Loading... " + e + "%"); c >= d && this.Tu(this.Fba) } }); f.eT.K1 = function(c, d) { var e = f; e.fI || (e.fI = new f.eT, e.fI.j()); e.fI.zCa(c, d); f.Q.f2(e.fI); return e.fI }; f.U.bT = function() { var c = f.Me.prototype; c.gca = function() {}; c.Aia = function() {}; c.I = f.v.prototype.I }; f.U.BU = function() { var c = f.$f.prototype; c.KN = null; c.DY = null; c.jZ = null; c.xV = null; c.FY = null; c.EY = null; c.ctor = function(c, e, g) { this.FY = new ArrayBuffer(32); this.EY = new ArrayBuffer(16); var h = this.FY, k = this.EY, m = f.he.BYTES_PER_ELEMENT, n = f.Aj.BYTES_PER_ELEMENT; this.KN = [new f.he(0, 0, h, 0), new f.he(0, 0, h, m), new f.he(0, 0, h, 2 * m), new f.he(0, 0, h, 3 * m)]; this.DY = [f.color(0, 0, 0, 255, k, 0), f.color(0, 0, 0, 255, k, n), f.color(0, 0, 0, 255, k, 2 * n), f.color(0, 0, 0, 255, k, 3 * n)]; this.jZ = f.s.createBuffer(); this.xV = f.s.createBuffer(); f.ci.prototype.ctor.call(this); this.B = new f.Um(f.Mc, f.Lc); f.$f.prototype.j.call(this, c, e, g) }; c.Ga = function(c, e) { var g = this.KN; void 0 === e ? (g[1].x = c.width, g[2].y = c.height, g[3].x = c.width, g[3].y = c.height) : (g[1].x = c, g[2].y = e, g[3].x = c, g[3].y = e); this.hV(); f.Me.prototype.Ga.call(this, c, e) }; c.Uh = function(c) { var e = this.KN; e[1].x = c; e[3].x = c; this.hV(); f.Me.prototype.Uh.call(this, c) }; c.Th = function(c) { var e = this.KN; e[2].y = c; e[3].y = c; this.hV(); f.Me.prototype.Th.call(this, c) }; c.Jd = function() { for (var c = this.Ab, e = this.kb, g = this.DY, h = 0; 4 > h; h++) g[h].r = c.r, g[h].g = c.g, g[h].b = c.b, g[h].a = e; this.N8() }; c.ma = function(c) { c = c || f.s; f.qC(this); f.wf(f.Gh | f.HK); c.bindBuffer(c.ARRAY_BUFFER, this.jZ); c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0); c.bindBuffer(c.ARRAY_BUFFER, this.xV); c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 0, 0); f.Fm(this.B.src, this.B.ha); c.drawArrays(c.TRIANGLE_STRIP, 0, 4) }; c.hV = function() { var c = f.s; c.bindBuffer(c.ARRAY_BUFFER, this.jZ); c.bufferData(c.ARRAY_BUFFER, this.FY, c.STATIC_DRAW) }; c.N8 = function() { var c = f.s; c.bindBuffer(c.ARRAY_BUFFER, this.xV); c.bufferData(c.ARRAY_BUFFER, this.EY, c.STATIC_DRAW) } }; f.U.CU = function() { var c = f.rq.prototype; c.ma = f.$f.prototype.ma; c.Jd = function() { var c = this.Oi, e = f.ff(c); if (0 !== e) { var g = Math.sqrt(2), c = r(c.x / e, c.y / e); this.sL && (c = f.Up(c, 1 / (Math.abs(c.x) + Math.abs(c.y)) * g)); var h = this.kb / 255, e = this.Ab, k = this.Jf, e = { r: e.r, g: e.g, b: e.b, a: this.TA * h }, h = { r: k.r, g: k.g, b: k.b, a: this.Jz * h }, m = this.DY, k = m[0], n = m[1], p = m[2], m = m[3]; k.r = h.r + (g + c.x + c.y) / (2 * g) * (e.r - h.r); k.g = h.g + (g + c.x + c.y) / (2 * g) * (e.g - h.g); k.b = h.b + (g + c.x + c.y) / (2 * g) * (e.b - h.b); k.a = h.a + (g + c.x + c.y) / (2 * g) * (e.a - h.a); n.r = h.r + (g - c.x + c.y) / (2 * g) * (e.r - h.r); n.g = h.g + (g - c.x + c.y) / (2 * g) * (e.g - h.g); n.b = h.b + (g - c.x + c.y) / (2 * g) * (e.b - h.b); n.a = h.a + (g - c.x + c.y) / (2 * g) * (e.a - h.a); p.r = h.r + (g + c.x - c.y) / (2 * g) * (e.r - h.r); p.g = h.g + (g + c.x - c.y) / (2 * g) * (e.g - h.g); p.b = h.b + (g + c.x - c.y) / (2 * g) * (e.b - h.b); p.a = h.a + (g + c.x - c.y) / (2 * g) * (e.a - h.a); m.r = h.r + (g - c.x - c.y) / (2 * g) * (e.r - h.r); m.g = h.g + (g - c.x - c.y) / (2 * g) * (e.g - h.g); m.b = h.b + (g - c.x - c.y) / (2 * g) * (e.b - h.b); m.a = h.a + (g - c.x - c.y) / (2 * g) * (e.a - h.a); this.N8() } } }; f.U.AT = function() { var c = f.ci.prototype; f.d(c, "opacityModifyRGB", c.vg, c.ee); f.d(c, "opacity", c.vb, c.J); f.d(c, "cascadeOpacity", c.WH, c.Hu); f.d(c, "color", c.$a, c.F); f.d(c, "cascadeColor", c.VH, c.Gu) }; f.U.yT = function() { var c = f.$f.prototype; f.d(c, "width", c.lf, c.Uh); f.d(c, "height", c.Gg, c.Th) }; f.U.zT = function() { var c = f.rq.prototype; f.d(c, "startColor", c.uP, c.Tg); f.d(c, "endColor", c.lP, c.Sg); f.d(c, "startOpacity", c.qBa, c.Sha); f.d(c, "endOpacity", c.Tza, c.Vga); f.d(c, "vector", c.KBa, c.DR) }; f.Me = f.v.extend({ Vv: !1, bL: null, ta: "Layer", ctor: function() { var c = f.v.prototype; c.ctor.call(this); this.mn = !0; c.S.call(this, 0.5, 0.5); c.Ga.call(this, f.gq) }, gca: null, Aia: null, uXa: function() { return this.Vv }, I: null }); f.Me.create = function() { return new f.Me }; if (f.K === f.fb) { var ga = f.Me.prototype; ga.gca = function() { if (!this.Vv) { this.Vv = this.Dk = !0; this.Gq = this; for (var c = this.i, d = 0, e = c.length; d < e; d++) c[d].fY(this); this.bL || (this.bL = new f.Bja) } }; ga.Aia = function() { if (this.Vv) { this.Vv = !1; this.Dk = !0; this.Gq = null; for (var c = this.i, d = 0, e = c.length; d < e; d++) c[d].fY(null) } }; ga.I = function(c) { if (this.Vv) { c = c || f.s; var d, e = this.i, g = e.length; if (this.Na && 0 !== g) { var h = this.bL; c.save(); this.transform(c); if (this.Dk) { d = this.oW(); d.width |= 0; d.height |= 0; var k = h.Pi; h.sga(d.width, d.height); k.translate(0 - d.x, d.height + d.y); var m = h.Bp(); h.o(m.x + d.x, m.y + d.y); this.kd(); for (d = 0; d < g; d++) e[d].I(k); this.Dk = !1 } h.I(c); this.arrivalOrder = 0; c.restore() } } else f.v.prototype.I.call(this, c) }; ga.oW = function() { var c = null; if (!this.i || 0 === this.i.length) return x(0, 0, 10, 10); for (var d = this.i, e = 0; e < d.length; e++) { var g = d[e]; g && g.Na && (c ? (g = g.uF()) && (c = f.zC(c, g)) : c = g.uF()) } return c }; ga = null } else f.assert("function" === typeof f.U.bT, f.l.Hf, "CCLayerWebGL.js"), f.U.bT(), delete f.U.bT; f.ci = f.Me.extend({ wb: !0, kb: 255, Lg: 255, Ab: null, rd: null, Dg: !1, dg: !1, ta: "LayerRGBA", ctor: function() { f.Me.prototype.ctor.call(this); this.Ab = f.color(255, 255, 255, 255); this.rd = f.color(255, 255, 255, 255) }, j: function() { var c = f.Me.prototype; this.mn = !0; c.S.call(this, 0.5, 0.5); c.Ga.call(this, f.gq); this.cascadeColor = this.cascadeOpacity = !1; return !0 }, vb: function() { return this.Lg }, wda: function() { return this.kb }, J: function(c) { this.kb = this.Lg = c; var d = 255, e = this.Yb; e && e.wb && e.cascadeOpacity && (d = e.kb); this.hc(d); this.Ab.a = this.rd.a = c }, hc: function(c) { this.kb = 0 | this.Lg * c / 255; if (this.Dg) { c = this.i; for (var d, e = 0; e < c.length; e++)(d = c[e]) && d.wb && d.hc(this.kb) } }, WH: function() { return this.Dg }, Hu: function(c) { this.Dg !== c && ((this.Dg = c) ? this.Iz() : this.MV()) }, Iz: function() { var c = 255, d = this.Yb; d && d.wb && d.cascadeOpacity && (c = d.kb); this.hc(c) }, MV: function() { this.kb = this.Lg; for (var c = this.i, d, e = 0; e < c.length; e++)(d = c[e]) && d.wb && d.hc(255) }, $a: function() { var c = this.rd; return f.color(c.r, c.g, c.b, c.a) }, ou: function() { var c = this.Ab; return f.color(c.r, c.g, c.b) }, F: function(c) { var d = this.Ab, e = this.rd; d.r = e.r = c.r; d.g = e.g = c.g; d.b = e.b = c.b; d = (d = this.Yb) && d.wb && d.cascadeColor ? d.ou() : f.color.WHITE; this.Wb(d); void 0 === c.a || c.Yw || this.J(c.a) }, Wb: function(c) { var d = this.Ab, e = this.rd; d.r = 0 | e.r * c.r / 255; d.g = 0 | e.g * c.g / 255; d.b = 0 | e.b * c.b / 255; if (this.dg) { c = this.i; for (var g = 0; g < c.length; g++)(e = c[g]) && e.wb && e.Wb(d) } }, VH: function() { return this.dg }, Gu: function(c) { this.dg !== c && ((this.dg = c) ? this.Hz() : this.LV()) }, Hz: function() { var c; c = (c = this.Yb) && c.wb && c.cascadeColor ? c.ou() : f.color.WHITE; this.Wb(c) }, LV: function() { var c = this.Ab, d = this.rd; c.r = d.r; c.g = d.g; c.b = d.b; var c = this.i, d = f.color.WHITE, e, g; for (g = 0; g < c.length; g++)(e = c[g]) && e.wb && e.Wb(d) }, n: function(c, d, e) { f.v.prototype.n.call(this, c, d, e); this.dg && this.Hz(); this.Dg && this.Iz() }, ee: function() {}, vg: function() { return !1 } }); f.assert("function" === typeof f.U.AT, f.l.Hf, "CCLayerPropertyDefine.js"); f.U.AT(); delete f.U.AT; f.$f = f.ci.extend({ B: null, ta: "LayerColor", ck: function() { return this.B }, lQa: function(c, d) { this.width = c; this.height = d }, kQa: function(c) { this.width = c }, jQa: function(c) { this.height = c }, ee: function() {}, vg: function() { return !1 }, F: function(c) { f.ci.prototype.F.call(this, c); this.Jd() }, J: function(c) { f.ci.prototype.J.call(this, c); this.Jd() }, gA: !1, ctor: null, j: function(c, d, e) { f.K !== f.fb && (this.shaderProgram = f.xg.be(f.sK)); var g = f.Q.Y; c = c || f.color(0, 0, 0, 255); d = void 0 === d ? g.width : d; e = void 0 === e ? g.height : e; g = this.Ab; g.r = c.r; g.g = c.g; g.b = c.b; g = this.rd; g.r = c.r; g.g = c.g; g.b = c.b; this.Lg = this.kb = c.a; c = f.$f.prototype; c.Ga.call(this, d, e); c.Jd.call(this); return !0 }, ce: function(c, d) { this.B = void 0 === d ? c : { src: c, ha: d }; f.K === f.fb && (this.gA = this.B && 1 == this.B.src && 771 == this.B.ha) }, Uh: null, Th: null, Jd: null, Wb: function(c) { f.ci.prototype.Wb.call(this, c); this.Jd() }, hc: function(c) { f.ci.prototype.hc.call(this, c); this.Jd() }, ma: null }); f.$f.create = function(c, d, e) { return new f.$f(c, d, e) }; f.K === f.fb ? (q = f.$f.prototype, q.ctor = function(c, d, e) { f.ci.prototype.ctor.call(this); this.B = new f.Um(f.Mc, f.Lc); f.$f.prototype.j.call(this, c, d, e) }, q.Uh = f.ci.prototype.Uh, q.Th = f.ci.prototype.Th, q.Jd = function() {}, q.ma = function(c) { c = c || f.s; var d = f.view, e = this.Ab; c.fillStyle = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + "," + this.kb / 255 + ")"; c.fillRect(0, 0, this.width * d.ka, -this.height * d.ra); f.bl++ }, q.I = function(c) { if (this.Vv) { c = c || f.s; var d, e = this.i, g = e.length; if (this.Na) { var h = this.bL; c.save(); this.transform(c); if (this.Dk) { d = this.oW(); d.width |= 0; d.height |= 0; var k = h.Pi; h.sga(d.width, d.height); var m = h.Bp(), n = this.oa; if (this.mn) k.translate(0 - d.x + n.x, d.height + d.y - n.y), h.o(m.x + d.x - n.x, m.y + d.y - n.y); else { var p = this.Bp(), s = n.x - p.x, n = n.y - p.y; k.translate(0 - d.x + s, d.height + d.y - n); h.o(m.x + d.x - s, m.y + d.y - n) } if (0 < g) { this.kd(); for (d = 0; d < g; d++) if (m = e[d], 0 > m.Ya) m.I(k); else break; for (this.ma(k); d < g; d++) e[d].I(k) } else this.ma(k); this.Dk = !1 } h.I(c); this.arrivalOrder = 0; c.restore() } } else f.v.prototype.I.call(this, c) }, q.oW = function() { var c = x(0, 0, this.m.width, this.m.height), d = this.il(), c = f.Ki(c, this.il()); if (!this.i || 0 === this.i.length) return c; for (var e = this.i, g = 0; g < e.length; g++) { var h = e[g]; h && h.Na && (h = h.uF(d), c = f.zC(c, h)) } return c }, q = null) : (f.assert("function" === typeof f.U.BU, f.l.Hf, "CCLayerWebGL.js"), f.U.BU(), delete f.U.BU); f.assert("function" === typeof f.U.yT, f.l.Hf, "CCLayerPropertyDefine.js"); f.U.yT(); delete f.U.yT; f.rq = f.$f.extend({ Ng: null, Jf: null, TA: 255, Jz: 255, Oi: null, sL: !1, Yz: null, Xz: null, ta: "LayerGradient", ctor: function(c, d, e) { f.$f.prototype.ctor.call(this); this.Ng = f.color(0, 0, 0, 255); this.Jf = f.color(0, 0, 0, 255); this.Oi = r(0, -1); this.Jz = this.TA = 255; this.Yz = r(0, 0); this.Xz = r(0, 0); f.rq.prototype.j.call(this, c, d, e) }, j: function(c, d, e) { c = c || f.color(0, 0, 0, 255); d = d || f.color(0, 0, 0, 255); e = e || r(0, -1); var g = this.Ng, h = this.Jf; g.r = c.r; g.g = c.g; g.b = c.b; this.TA = c.a; h.r = d.r; h.g = d.g; h.b = d.b; this.Jz = d.a; this.Oi = e; this.sL = !0; this.Yz = r(0, 0); this.Xz = r(0, 0); f.$f.prototype.j.call(this, f.color(c.r, c.g, c.b, 255)); f.rq.prototype.Jd.call(this); return !0 }, Ga: function(c, d) { f.$f.prototype.Ga.call(this, c, d); this.Jd() }, Uh: function(c) { f.$f.prototype.Uh.call(this, c); this.Jd() }, Th: function(c) { f.$f.prototype.Th.call(this, c); this.Jd() }, uP: function() { return this.rd }, Tg: function(c) { this.color = c }, Sg: function(c) { this.Jf = c; this.Jd() }, lP: function() { return this.Jf }, Sha: function(c) { this.TA = c; this.Jd() }, qBa: function() { return this.TA }, Vga: function(c) { this.Jz = c; this.Jd() }, Tza: function() { return this.Jz }, DR: function(c) { this.Oi.x = c.x; this.Oi.y = c.y; this.Jd() }, KBa: function() { return r(this.Oi.x, this.Oi.y) }, yXa: function() { return this.sL }, N2a: function(c) { this.sL = c; this.Jd() }, YNa: null, Jd: null }); f.rq.create = function(c, d, e) { return new f.rq(c, d, e) }; f.K === f.fb ? (q = f.rq.prototype, q.ma = function(c) { c = c || f.s; this.gA && (c.globalCompositeOperation = "lighter"); c.save(); var d = f.view, e = this.kb / 255, g = this.width * d.ka, d = this.height * d.ra, h = c.createLinearGradient(this.Yz.x, this.Yz.y, this.Xz.x, this.Xz.y), k = this.Ab, m = this.Jf; h.addColorStop(0, "rgba(" + Math.round(k.r) + "," + Math.round(k.g) + "," + Math.round(k.b) + "," + (this.TA / 255 * e).toFixed(4) + ")"); h.addColorStop(1, "rgba(" + Math.round(m.r) + "," + Math.round(m.g) + "," + Math.round(m.b) + "," + (this.Jz / 255 * e).toFixed(4) + ")"); c.fillStyle = h; c.fillRect(0, 0, g, -d); 0 != this.LA && c.rotate(this.MOa); c.restore() }, q.Jd = function() { var c = this.Oi, d = 0.5 * this.width, e = 0.5 * this.height; this.Yz.x = d * -c.x + d; this.Yz.y = e * c.y - e; this.Xz.x = d * c.x + d; this.Xz.y = e * -c.y - e }, q = null) : (f.assert("function" === typeof f.U.CU, f.l.Hf, "CCLayerWebGL.js"), f.U.CU(), delete f.U.CU); f.assert("function" === typeof f.U.zT, f.l.Hf, "CCLayerPropertyDefine.js"); f.U.zT(); delete f.U.zT; f.dT = f.Me.extend({ Nv: 0, oi: null, ta: "LayerMultiplex", ctor: function(c) { f.Me.prototype.ctor.call(this); c && f.dT.prototype.uCa.call(this, c) }, uCa: function(c) { 0 < c.length && null == c[c.length - 1] && f.log(f.l.nma); this.oi = c; this.Nv = 0; this.n(this.oi[this.Nv]); return !0 }, k5a: function(c) { c >= this.oi.length ? f.log(f.l.oma) : (this.removeChild(this.oi[this.Nv], !0), this.Nv = c, this.n(this.oi[c])) }, l5a: function(c) { c >= this.oi.length ? f.log(f.l.pma) : (this.removeChild(this.oi[this.Nv], !0), this.oi[this.Nv] = null, this.Nv = c, this.n(this.oi[c])) }, uPa: function(c) { c ? this.oi.push(c) : f.log(f.l.mma) } }); f.dT.create = function() { return new f.dT(arguments) }; f.U.DU = function() { var c = f.q.prototype; c.BY = function(c) { this.Ha(!0); this.sc(c.$h(), c.lg, c.Jg); this.jf() }; c.ee = function(c) { this.Jb !== c && (this.Jb = c, this.oo()) }; c.hc = function(c) { f.ja.prototype.hc.call(this, c); this.oo() }; c.ctor = function(c, e, g) { f.ja.prototype.ctor.call(this); this.Nt = !1; this.od = r(0, 0); this.Ln = r(0, 0); this.B = { src: f.Mc, ha: f.Lc }; this.Ta = x(0, 0, 0, 0); this.Vd = new f.Yc; this.oN = f.s.createBuffer(); this.Ba = this.Yi = !0; this.iba(c, e, g) }; c.ce = function(c, e) { var g = this.B; void 0 === e ? (g.src = c.src, g.ha = c.ha) : (g.src = c, g.ha = e) }; c.j = function() { if (0 < arguments.length) return this.Ge(arguments[0], arguments[1]); f.ja.prototype.j.call(this); this.dirty = this.zn = !1; this.Jb = !0; this.B.src = f.Mc; this.B.ha = f.Lc; this.texture = null; this.Ba = !0; this.Fb = this.Hb = !1; this.anchorY = this.anchorX = 0.5; this.od.x = 0; this.od.y = 0; this.Yo = !1; var c = { r: 255, g: 255, b: 255, a: 255 }; this.Vd.T.D = c; this.Vd.aa.D = c; this.Vd.Z.D = c; this.Vd.W.D = c; this.Yi = !0; this.sc(x(0, 0, 0, 0), !1, t(0, 0)); return !0 }; c.va = function(c, e, g) { f.assert(0 != arguments.length, f.l.woa); g = g || !1; if (!f.ja.prototype.j.call(this)) return !1; this.Aa = null; this.dirty = this.zn = !1; this.Jb = !0; this.B.src = f.Mc; this.B.ha = f.Lc; this.Fb = this.Hb = !1; this.anchorY = this.anchorX = 0.5; this.od.x = 0; this.od.y = 0; this.Yo = !1; var h = f.color(255, 255, 255, 255), k = this.Vd; k.T.D = h; k.aa.D = h; k.Z.D = h; k.W.D = h; this.Ba = h = c.ie; if (!h) return this.pf = g || !1, e && (h = this.Ta, h.x = e.x, h.y = e.y, h.width = e.width, h.height = e.height), c.oe(this.WN, this), !0; e || (e = x(0, 0, c.width, c.height)); c && (g ? (h = e.x + e.height, k = e.y + e.width) : (h = e.x + e.width, k = e.y + e.height), h > c.width && f.error(f.l.HT, c.url), k > c.height && f.error(f.l.GT, c.url)); this.texture = c; this.sc(e, g); this.batchNode = null; return this.Yi = !0 }; c.WN = function(c) { if (!this.Ba) { this.Ba = !0; var e = this.Ta; e ? f.gG(e) && (e.width = c.width, e.height = c.height) : e = x(0, 0, c.width, c.height); this.texture = c; this.sc(e, this.pf); this.batchNode = this.Aa; this.Yi = !0; this.jf() } }; c.sc = function(c, e, g) { this.pf = e || !1; this.Ga(g || c); this.c3(c); this.Yaa(c); c = this.Ln; this.Fb && (c.x = -c.x); this.Hb && (c.y = -c.y); var h = this.Ta; this.od.x = c.x + (this.m.width - h.width) / 2; this.od.y = c.y + (this.m.height - h.height) / 2; if (this.Aa) this.dirty = !0; else { c = 0 + this.od.x; e = 0 + this.od.y; g = c + h.width; var h = e + h.height, k = this.Vd; k.T.k = { x: c, y: e, z: 0 }; k.aa.k = { x: g, y: e, z: 0 }; k.Z.k = { x: c, y: h, z: 0 }; k.W.k = { x: g, y: h, z: 0 }; this.Yi = !0 } }; c.bi = function() { if (this.dirty) { var c = this.Vd, e = this.Yb; if (!this.Na || e && e != this.Aa && e.Nt) c.aa.k = { x: 0, y: 0, z: 0 }, c.Z.k = { x: 0, y: 0, z: 0 }, c.W.k = { x: 0, y: 0, z: 0 }, c.T.k = { x: 0, y: 0, z: 0 }, this.Nt = !0; else { this.Nt = !1; var g = this.Sw = e && e != this.Aa ? f.Vg(this.se(), e.Sw) : this.se(), h = this.Ta, e = this.od.x, k = this.od.y, m = e + h.width, n = k + h.height, p = g.pa, s = g.qa, u = g.a, v = g.b, z = g.P, A = -g.G, g = e * u - k * A + p, h = e * v + k * z + s, B = m * u - k * A + p, k = m * v + k * z + s, C = m * u - n * A + p, m = m * v + n * z + s, p = e * u - n * A + p, e = e * v + n * z + s, n = this.PG; f.LT || (g |= 0, h |= 0, B |= 0, k |= 0, C |= 0, m |= 0, p |= 0, e |= 0); c.T.k = { x: g, y: h, z: n }; c.aa.k = { x: B, y: k, z: n }; c.Z.k = { x: p, y: e, z: n }; c.W.k = { x: C, y: m, z: n } } this.textureAtlas.rJ(c, this.atlasIndex); this.dirty = this.zn = !1 } this.Yo && this.Bk(this.i, f.v.Fj.bi); f.ys && f.If.Sf([r(this.Vd.T.k.x, this.Vd.T.k.y), r(this.Vd.aa.k.x, this.Vd.aa.k.y), r(this.Vd.W.k.x, this.Vd.W.k.y), r(this.Vd.Z.k.x, this.Vd.Z.k.y)], 4, !0) }; c.n = function(c, e, g) { f.assert(c, f.l.noa); null == e && (e = c.Ya); null == g && (g = c.tag); if (this.Aa) { if (!(c instanceof f.q)) { f.log(f.l.loa); return } c.texture.Wh !== this.textureAtlas.texture.Wh && f.log(f.l.moa); this.Aa.appendChild(c); this.Sh || this.pY() } f.ja.prototype.n.call(this, c, e, g); this.Yo = !0 }; c.J = function(c) { f.ja.prototype.J.call(this, c); this.oo() }; c.F = function(c) { f.ja.prototype.F.call(this, c); this.oo() }; c.Wb = function(c) { f.ja.prototype.Wb.call(this, c); this.oo() }; c.Dd = function(c) { var e = this; "string" == typeof c && (c = f.Je.Ca(c), f.assert(c, f.l.Foa)); e.Ha(!0); var g = c.hb; e.Ln.x = g.x; e.Ln.y = g.y; g = c.sb(); c.Ba || (e.Ba = !1, c.oe(function(c) { e.Ba = !0; var d = c.sb(); d != e.fa && (e.texture = d); e.sc(c.$h(), c.lg, c.Jg); e.jf() }, e)); g != e.fa && (e.texture = g); e.pf = c.lg; e.sc(c.$h(), e.pf, c.Jg) }; c.Kea = function(c) { return f.Yfa(c.$h(), this.Ta) && c.sb().getName() == this.fa.getName() && f.I1(c.hb, this.Ln) }; c.is = function(c) { if (this.Aa = c) this.Sw = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }, this.textureAtlas = this.Aa.textureAtlas; else { this.atlasIndex = f.q.XS; this.textureAtlas = null; this.dirty = this.zn = !1; c = this.od.x; var e = this.od.y, g = c + this.Ta.width, h = e + this.Ta.height, k = this.Vd; k.T.k = { x: c, y: e, z: 0 }; k.aa.k = { x: g, y: e, z: 0 }; k.Z.k = { x: c, y: h, z: 0 }; k.W.k = { x: g, y: h, z: 0 }; this.Yi = !0 } }; c.ab = function(c) { c && "string" === typeof c ? (c = f.nb.vd(c), this.ab(c), c = c.e(), this.sc(x(0, 0, c.width, c.height))) : (f.assert(!c || c instanceof f.Pa, f.l.Hoa), this.Aa && this.Aa.texture != c ? f.log(f.l.Goa) : (this.shaderProgram = c ? f.xg.be(f.zo) : f.xg.be(f.sK), this.Aa || this.fa == c || (this.fa = c, this.Yk()))) }; c.ma = function() { if (this.Ba) { var c = f.s, e = this.fa; e ? e.ie && (this.sd.Ff(), this.sd.zj(), f.Fm(this.B.src, this.B.ha), f.w0(0, e), f.wf(f.tv), c.bindBuffer(c.ARRAY_BUFFER, this.oN), this.Yi && (c.bufferData(c.ARRAY_BUFFER, this.Vd.DO, c.DYNAMIC_DRAW), this.Yi = !1), c.vertexAttribPointer(0, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(1, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.vertexAttribPointer(2, 2, c.FLOAT, !1, 24, 16), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)) : (this.sd.Ff(), this.sd.zj(), f.Fm(this.B.src, this.B.ha), f.Ai(null), f.wf(f.Gh | f.HK), c.bindBuffer(c.ARRAY_BUFFER, this.oN), this.Yi && (f.s.bufferData(f.s.ARRAY_BUFFER, this.Vd.DO, f.s.STATIC_DRAW), this.Yi = !1), c.vertexAttribPointer(f.Oc, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)); f.bl++; if (0 !== f.ys || this.uY) 1 === f.ys || this.uY ? (c = this.Vd, f.If.Sf([r(c.Z.k.x, c.Z.k.y), r(c.T.k.x, c.T.k.y), r(c.aa.k.x, c.aa.k.y), r(c.W.k.x, c.W.k.y)], 4, !0)) : 2 === f.ys && (c = this.EH(), e = this.od, f.If.Sf([r(e.x, e.y), r(e.x + c.width, e.y), r(e.x + c.width, e.y + c.height), r(e.x, e.y + c.height)], 4, !0)) } }; delete c }; f.U.BT = function() { var c = f.q.prototype; f.d(c, "opacityModifyRGB", c.vg, c.ee); f.d(c, "opacity", c.vb, c.J); f.d(c, "color", c.$a, c.F); f.d(c, "flippedX", c.XH, c.Pd); f.d(c, "flippedY", c.YH, c.Yf); f.d(c, "offsetX", c.Vra); f.d(c, "offsetY", c.Wra); f.d(c, "texture", c.sb, c.ab); f.d(c, "textureRectRotated", c.eDa); f.d(c, "batchNode", c.LB, c.is); f.d(c, "quad", c.$Aa) }; f.GB = function(c) { function d() { var d = f.GB, g = c.width, m = c.height; e[0].width = g; e[0].height = m; e[1].width = g; e[1].height = m; e[2].width = g; e[2].height = m; e[3].width = g; e[3].height = m; d.canvas.width = g; d.canvas.height = m; var n = d.canvas.getContext("2d"); n.drawImage(c, 0, 0); d.p3.width = g; d.p3.height = m; for (var n = n.getImageData(0, 0, g, m).data, p = 0; 4 > p; p++) { var s = e[p].getContext("2d"); s.getImageData(0, 0, g, m).data; d.sia.drawImage(c, 0, 0); for (var u = d.sia.getImageData(0, 0, g, m), v = u.data, z = 0; z < n.length; z += 4) v[z] = 0 === p ? n[z] : 0, v[z + 1] = 1 === p ? n[z + 1] : 0, v[z + 2] = 2 === p ? n[z + 2] : 0, v[z + 3] = n[z + 3]; s.putImageData(u, 0, 0) } c.onload = null } if (c.pca) return c.pca; var e = [f.fd("canvas"), f.fd("canvas"), f.fd("canvas"), f.fd("canvas")]; try { d() } catch (g) { c.onload = d } return c.pca = e }; f.GB.canvas = f.fd("canvas"); f.GB.p3 = f.fd("canvas"); f.GB.sia = f.GB.p3.getContext("2d"); f.URa = function(c, d, e) { e || (e = x(0, 0, c.width, c.height), e = f.cs(e)); var g = f.fd("canvas"), h = g.getContext("2d"); g.width != e.width && (g.width = e.width); g.height != e.height && (g.height = e.height); h.save(); h.drawImage(c, e.x, e.y, e.width, e.height, 0, 0, e.width, e.height); h.globalCompositeOperation = "source-in"; h.globalAlpha = d.a / 255; h.fillStyle = "rgb(" + d.r + "," + d.g + "," + d.b + ")"; h.fillRect(0, 0, e.width, e.height); h.restore(); return g }; f.HB = function(c, d, e, g, h) { g || (g = x(0, 0, c.width, c.height)); c = e.r / 255; var k = e.g / 255; e = e.b / 255; var m = Math.min(g.width, d[0].width), n = Math.min(g.height, d[0].height), p; h ? (p = h.getContext("2d"), p.clearRect(0, 0, m, n)) : (h = f.fd("canvas"), h.width = m, h.height = n, p = h.getContext("2d")); p.save(); p.globalCompositeOperation = "lighter"; var s = p.globalAlpha; 0 < c && (p.globalAlpha = c * s, p.drawImage(d[0], g.x, g.y, m, n, 0, 0, m, n)); 0 < k && (p.globalAlpha = k * s, p.drawImage(d[1], g.x, g.y, m, n, 0, 0, m, n)); 0 < e && (p.globalAlpha = e * s, p.drawImage(d[2], g.x, g.y, m, n, 0, 0, m, n)); 1 > c + k + e && (p.globalAlpha = s, p.drawImage(d[3], g.x, g.y, m, n, 0, 0, m, n)); p.restore(); return h }; f.t_ = function(c, d) { if (!c) return null; if (!d) return c; var e = f.fd("canvas"); e.width = d.width; e.height = d.height; var g = e.getContext("2d"); g.translate(e.width / 2, e.height / 2); g.rotate(-1.5707963267948966); g.drawImage(c, d.x, d.y, d.height, d.width, -d.height / 2, -d.width / 2, d.height, d.width); return e }; f.q = f.ja.extend({ wb: !0, dirty: !1, atlasIndex: 0, textureAtlas: null, Aa: null, zn: null, Yo: null, Nt: !1, Sw: null, B: null, fa: null, Ta: null, pf: !1, od: null, Ln: null, Jb: !1, Fb: !1, Hb: !1, Ba: !1, dc: null, fX: null, ta: "Sprite", RC: function() { return this.Ba }, oe: function(c, d) { this.dc || (this.dc = []); this.dc.push({ al: c, nj: d }) }, jf: function() { if (this.dc) { for (var c = this.dc, d = 0, e = c.length; d < e; d++) { var g = c[d]; g.al.call(g.nj, this) } c.length = 0 } }, R0: function() { return this.dirty }, Sga: function(c) { this.dirty = c }, eDa: function() { return this.pf }, KB: function() { return this.atlasIndex }, k2: function(c) { this.atlasIndex = c }, EH: function() { return x(this.Ta.x, this.Ta.y, this.Ta.width, this.Ta.height) }, DH: function() { return this.textureAtlas }, U2: function(c) { this.textureAtlas = c }, SUa: function() { return this.od }, Vra: function() { return this.od.x }, Wra: function() { return this.od.y }, ck: function() { return this.B }, pj: function(c) { f.assert(c, f.l.toa); c.Ba || (this.Ba = !1, c.oe(this.BY, this)); var d = f.K === f.fb ? !1 : c.lg, d = this.va(c.sb(), c.$h(), d); this.Dd(c); return d }, BY: null, hl: function(c) { f.assert(c, f.l.uoa); var d = f.Je.Ca(c); f.assert(d, c + f.l.voa); return this.pj(d) }, O5a: function(c) { this.textureAtlas = c.textureAtlas; this.Aa = c }, c3: function(c) { this.Ta.x = c.x; this.Ta.y = c.y; this.Ta.width = c.width; this.Ta.height = c.height }, kd: function() { if (this.Sh) { var c = this.i, d = c.length, e, g, h; for (e = 1; e < d; e++) { h = c[e]; for (g = e - 1; 0 <= g;) { if (h.Ya < c[g].Ya) c[g + 1] = c[g]; else if (h.Ya === c[g].Ya && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g]; else break; g-- } c[g + 1] = h } this.Aa && this.Bk(c, f.v.Fj.kd); this.Sh = !1 } }, BC: function(c, d) { f.assert(c, f.l.Aoa); - 1 === this.i.indexOf(c) ? f.log(f.l.zoa) : d !== c.zIndex && (this.Aa && !this.Sh && (this.pY(), this.Aa.pga(!0)), f.v.prototype.BC.call(this, c, d)) }, removeChild: function(c, d) { this.Aa && this.Aa.Rx(c); f.v.prototype.removeChild.call(this, c, d) }, Cf: function(c) { var d = this.i, e = this.Aa; if (e && null != d) for (var g = 0, h = d.length; g < h; g++) e.Rx(d[g]); f.v.prototype.Cf.call(this, c); this.Yo = !1 }, Tga: function(c) { this.dirty = this.zn = c; c = this.i; for (var d, e = c ? c.length : 0, g = 0; g < e; g++) d = c[g], d instanceof f.q && d.Tga(!0) }, Ha: function(c) { f.v.prototype.Ha.call(this); c || !this.Aa || this.zn || (this.Yo ? this.Tga(!0) : this.dirty = this.zn = !0) }, Gm: function(c) { this.Aa ? f.log(f.l.roa) : f.v.prototype.Gm.call(this, c) }, Pd: function(c) { this.Fb != c && (this.Fb = c, this.sc(this.Ta, this.pf, this.m), this.Ha(!0)) }, Yf: function(c) { this.Hb != c && (this.Hb = c, this.sc(this.Ta, this.pf, this.m), this.Ha(!0)) }, XH: function() { return this.Fb }, YH: function() { return this.Hb }, ee: null, vg: function() { return this.Jb }, hc: null, Z2a: function(c, d) { f.assert(c, f.l.Eoa); var e = f.WG.cl(c); e ? (e = e.Ph[d]) ? this.Dd(e.Ca()) : f.log(f.l.Doa) : f.log(f.l.Coa) }, LB: function() { return this.Aa }, pY: function() { if (!this.Sh) { this.Sh = !0; for (var c = this.Yb; c && c != this.Aa;) c.pY(), c = c.parent } }, sb: function() { return this.fa }, Vd: null, oN: null, Yi: !1, rL: !1, gA: !1, qi: null, YA: null, VV: null, ctor: null, iba: function(c, d, e) { if (void 0 === c) f.q.prototype.j.call(this); else if ("string" === typeof c) "#" === c[0] ? (c = f.Je.Ca(c.substr(1, c.length - 1)), this.pj(c)) : f.q.prototype.j.call(this, c, d); else if ("object" === typeof c) if (c instanceof f.Pa) this.va(c, d, e); else if (c instanceof f.Li) this.pj(c); else if (c instanceof HTMLImageElement || c instanceof HTMLCanvasElement) d = new f.Pa, d.sh(c), d.$d(), this.va(d) }, $Aa: function() { return this.Vd }, ce: null, j: null, Ge: function(c, d) { f.assert(c, f.l.soa); var e = f.nb.Ru(c); if (e) { if (!d) { var g = e.e(); d = x(0, 0, g.width, g.height) } return this.va(e, d) } e = f.nb.vd(c); return this.va(e, d || x(0, 0, e.m.width, e.m.height)) }, va: null, WN: null, sc: null, bi: null, n: null, oo: function() { var c = this.Ab, d = this.kb, c = { r: c.r, g: c.g, b: c.b, a: d }; this.Jb && (c.r *= d / 255, c.g *= d / 255, c.b *= d / 255); d = this.Vd; d.T.D = c; d.aa.D = c; d.Z.D = c; d.W.D = c; this.Aa && (this.atlasIndex != f.q.XS ? this.textureAtlas.rJ(d, this.atlasIndex) : this.dirty = !0); this.Yi = !0 }, J: null, F: null, Wb: null, Dd: null, NGa: function(c) { f.log(f.l.Boa); this.Dd(c) }, Kea: null, Wxa: function() { return f.Li.create(this.fa, f.FI(this.Ta), this.pf, f.eFa(this.Ln), f.dIa(this.m)) }, is: null, ab: null, Yk: function() { this.Aa ? f.log(f.l.koa) : this.fa && this.fa.Ep() ? (this.B.src = f.Mc, this.B.ha = f.Lc, this.opacityModifyRGB = !0) : (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA, this.opacityModifyRGB = !1) }, Us: function() { var c, d = this.fa, e = this.YA; d && e.$C && this.qi && (c = d.md) && (d = f.nb.vP(this.qi.md)) && (this.rL = !0, c instanceof HTMLCanvasElement && !this.pf && !this.fX ? f.HB(c, d, this.Ab, e, c) : (c = f.HB(c, d, this.Ab, e), d = new f.Pa, d.sh(c), d.$d(), this.texture = d)) }, Yaa: function(c) { c = f.FI(c); var d = this.Aa ? this.textureAtlas.texture : this.fa; if (d) { var e = d.pixelsWidth, g = d.pixelsHeight, h, k = this.Vd; this.pf ? (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.height - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.height) / e, h = c.y / g, c = (c.y + c.width) / g), this.Fb && (g = h, h = c, c = g), this.Hb && (g = d, d = e, e = g), k.T.t.Da = d, k.T.t.ga = h, k.aa.t.Da = d, k.aa.t.ga = c, k.Z.t.Da = e, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = c) : (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.width - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.width) / e, h = c.y / g, c = (c.y + c.height) / g), this.Fb && (g = d, d = e, e = g), this.Hb && (g = h, h = c, c = g), k.T.t.Da = d, k.T.t.ga = c, k.aa.t.Da = e, k.aa.t.ga = c, k.Z.t.Da = d, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = h); this.Yi = !0 } }, ma: null }); f.q.create = function(c, d, e) { return new f.q(c, d, e) }; f.q.XS = -1; f.K === f.fb ? (q = f.q.prototype, q.BY = function(c) { this.Ha(!0); this.sc(c.$h(), c.lg, c.Jg); c = this.color; 255 === c.r && 255 === c.g && 255 === c.b || this.Us(); this.jf() }, q.ee = function(c) { this.Jb !== c && (this.Jb = c, this.Ha(!0)) }, q.hc = function(c) { f.ja.prototype.hc.call(this, c); this.En() }, q.ctor = function(c, d, e) { f.ja.prototype.ctor.call(this); this.Nt = !1; this.od = r(0, 0); this.Ln = r(0, 0); this.B = { src: f.Mc, ha: f.Lc }; this.Ta = x(0, 0, 0, 0); this.fX = !1; this.Ba = !0; this.YA = { x: 0, y: 0, width: 0, height: 0, $C: !1 }; this.VV = t(0, 0); this.iba(c, d, e) }, q.ce = function(c, d) { var e = this.B; void 0 === d ? (e.src = c.src, e.ha = c.ha) : (e.src = c, e.ha = d); this.gA = e && (e.src == f.SRC_ALPHA && e.ha == f.ONE || e.src == f.ONE && e.ha == f.ONE) }, q.j = function() { if (0 < arguments.length) return this.Ge(arguments[0], arguments[1]); f.ja.prototype.j.call(this); this.dirty = this.zn = !1; this.Jb = !0; this.B.src = f.Mc; this.B.ha = f.Lc; this.texture = null; this.Ba = !0; this.Fb = this.Hb = !1; this.anchorY = this.anchorX = 0.5; this.od.x = 0; this.od.y = 0; this.Yo = !1; this.sc(x(0, 0, 0, 0), !1, t(0, 0)); return !0 }, q.va = function(c, d, e) { f.assert(0 != arguments.length, f.l.Lja); if ((e = e || !1) && c.ie) { var g = c.md, g = f.t_(g, d), h = new f.Pa; h.sh(g); h.$d(); c = h; this.Ta = x(0, 0, d.width, d.height) } if (!f.ja.prototype.j.call(this)) return !1; this.Aa = null; this.dirty = this.zn = !1; this.Jb = !0; this.B.src = f.Mc; this.B.ha = f.Lc; this.Fb = this.Hb = !1; this.anchorY = this.anchorX = 0.5; this.od.x = 0; this.od.y = 0; this.Yo = !1; this.Ba = g = c.ie; if (!g) return this.pf = e, d && (this.Ta.x = d.x, this.Ta.y = d.y, this.Ta.width = d.width, this.Ta.height = d.height), c.oe(this.WN, this), !0; d || (d = x(0, 0, c.width, c.height)); c && (g = d.y + d.height, d.x + d.width > c.width && f.error(f.l.HT, c.url), g > c.height && f.error(f.l.GT, c.url)); this.texture = this.qi = c; this.sc(d, e); this.batchNode = null; return !0 }, q.WN = function(c) { if (!this.Ba) { this.Ba = !0; var d = this.Ta; d ? f.gG(d) && (d.width = c.width, d.height = c.height) : d = x(0, 0, c.width, c.height); this.texture = this.qi = c; this.sc(d, this.pf); this.batchNode = this.Aa; this.jf() } }, q.sc = function(c, d, e) { this.pf = d || !1; this.Ga(e || c); this.c3(c); d = this.YA; e = f.Uc(); d.x = 0 | c.x * e; d.y = 0 | c.y * e; d.width = 0 | c.width * e; d.height = 0 | c.height * e; d.$C = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y); c = this.Ln; this.Fb && (c.x = -c.x); this.Hb && (c.y = -c.y); this.od.x = c.x + (this.m.width - this.Ta.width) / 2; this.od.y = c.y + (this.m.height - this.Ta.height) / 2; this.Aa && (this.dirty = !0) }, q.bi = function() { if (this.dirty) { var c = this.Yb; !this.Na || c && c != this.Aa && c.Nt ? this.Nt = !0 : (this.Nt = !1, this.Sw = c && c != this.Aa ? f.Vg(this.se(), c.Sw) : this.se()); this.dirty = this.zn = !1 } this.Yo && this.Bk(this.i, f.v.Fj.bi) }, q.n = function(c, d, e) { f.assert(c, f.l.Jja); null == d && (d = c.Ya); null == e && (e = c.tag); f.ja.prototype.n.call(this, c, d, e); this.Yo = !0 }, q.J = function(c) { f.ja.prototype.J.call(this, c); this.En() }, q.F = function(c) { var d = this.color; if (d.r !== c.r || d.g !== c.g || d.b !== c.b) f.ja.prototype.F.call(this, c), this.Us(), this.En() }, q.Wb = function(c) { var d = this.color; f.ja.prototype.Wb.call(this, c); c = this.Ab; if (d.r !== c.r || d.g !== c.g || d.b !== c.b) this.Us(), this.En() }, q.Dd = function(c) { var d = this; "string" == typeof c && (c = f.Je.Ca(c), f.assert(c, f.l.Oja)); d.Ha(!0); var e = c.hb; d.Ln.x = e.x; d.Ln.y = e.y; d.pf = c.lg; var e = c.sb(), g = c.Ba; g || (d.Ba = !1, c.oe(function(c) { d.Ba = !0; var e = c.sb(); e != d.fa && (d.texture = e); d.sc(c.$h(), c.lg, c.Jg); d.jf() }, d)); e != d.fa && (d.texture = e); d.pf && (d.qi = e); d.sc(c.$h(), d.pf, c.Jg); d.rL = !1; g && (c = d.color, 255 === c.r && 255 === c.g && 255 === c.b || d.Us()) }, q.Kea = function(c) { return c.sb() != this.fa ? !1 : f.Yfa(c.$h(), this.Ta) }, q.is = function(c) { (this.Aa = c) ? (this.Sw = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }, this.textureAtlas = this.Aa.textureAtlas) : (this.atlasIndex = f.q.XS, this.textureAtlas = null, this.dirty = this.zn = !1) }, q.ab = function(c) { c && "string" === typeof c ? (c = f.nb.vd(c), this.ab(c), c = c.e(), this.sc(x(0, 0, c.width, c.height))) : (f.assert(!c || c instanceof f.Pa, f.l.Pja), this.fa != c && (c && c.md instanceof HTMLImageElement && (this.qi = c), this.fa = c)) }, q.ma = function(c) { if (this.Ba) { c = c || f.s; this.gA && (c.globalCompositeOperation = "lighter"); var d = f.view.ka, e = f.view.ra; c.globalAlpha = this.kb / 255; var g = this.Ta, h = this.m, k = this.od, m = this.VV, n = 0 | k.x, p = -k.y - g.height, s = this.YA; m.width = g.width * d; m.height = g.height * e; if (this.Fb || this.Hb) c.save(), this.Fb && (n = -k.x - g.width, c.scale(-1, 1)), this.Hb && (p = k.y, c.scale(1, -1)); n *= d; p *= e; this.fa && s.$C ? (h = this.fa.md, this.rL ? c.drawImage(h, 0, 0, s.width, s.height, n, p, m.width, m.height) : c.drawImage(h, s.x, s.y, s.width, s.height, n, p, m.width, m.height)) : !this.fa && s.$C && (m = this.color, c.fillStyle = "rgba(" + m.r + "," + m.g + "," + m.b + ",1)", c.fillRect(n, p, h.width * d, h.height * e)); 1 === f.ys || this.uY ? (c.strokeStyle = "rgba(0,255,0,1)", n /= d, p = -(p / e), f.If.Sf([r(n, p), r(n + g.width, p), r(n + g.width, p - g.height), r(n, p - g.height)], 4, !0)) : 2 === f.ys && (c.strokeStyle = "rgba(0,255,0,1)", d = this.Ta, p = -p, f.If.Sf([r(n, p), r(n + d.width, p), r(n + d.width, p - d.height), r(n, p - d.height)], 4, !0)); (this.Fb || this.Hb) && c.restore(); f.bl++ } }, delete q) : (f.assert("function" === typeof f.U.DU, f.l.Hf, "SpritesWebGL.js"), f.U.DU(), delete f.U.DU); f.assert("function" === typeof f.U.BT, f.l.Hf, "SpritesPropertyDefine.js"); f.U.BT(); delete f.U.BT; f.CS = 29; f.Fh = f.v.extend({ textureAtlas: null, B: null, fh: null, ta: "SpriteBatchNode", Xva: function(c, d, e) { f.assert(c, f.l.eoa); if (!(c instanceof f.q)) return f.log(f.l.doa), null; c.atlasIndex = d; var g = 0, h = this.fh; if (h && 0 < h.length) for (var k = 0; k < h.length; k++) { var m = h[k]; m && m.atlasIndex >= d && ++g } h.splice(g, 0, c); f.v.prototype.n.call(this, c, d, e); this.pga(!1); return this }, DH: function() { return this.textureAtlas }, U2: function(c) { c != this.textureAtlas && (this.textureAtlas = c) }, Oza: function() { return this.fh }, Ge: function(c, d) { var e = f.nb.Ru(c); e || (e = f.nb.vd(c)); return this.va(e, d) }, En: function() { this.Dk = !0 }, j: function(c, d) { var e = f.nb.Ru(c); e || (e = f.nb.vd(c)); return this.va(e, d) }, IP: function() { var c = this.textureAtlas.capacity, d = Math.floor(4 * (c + 1) / 3); f.log(f.l.foa, c, d); this.textureAtlas.NQ(d) || f.log(f.l.goa) }, NFa: function(c, d) { this.removeChild(this.i[c], d) }, Xfa: function(c, d) { var e = c.children; if (e && 0 < e.length) for (var g = 0; g < e.length; g++) { var h = e[g]; h && 0 > h.zIndex && (d = this.Xfa(h, d)) }!c == this && (c.atlasIndex = d, d++); if (e && 0 < e.length) for (g = 0; g < e.length; g++)(h = e[g]) && 0 <= h.zIndex && (d = this.Xfa(h, d)); return d }, B0: function(c) { var d = c.children; return d && 0 != d.length ? this.B0(d[d.length - 1]) : c.atlasIndex }, QDa: function(c) { var d = c.children; return d && 0 != d.length ? this.QDa(d[d.length - 1]) : c.atlasIndex }, swa: function(c, d) { var e = c.parent, g = e.children, h = g.indexOf(c), k = null; 0 < h && h < f.oU && (k = g[h - 1]); return e == this ? 0 == h ? 0 : this.B0(k) + 1 : 0 == h ? 0 > d ? e.atlasIndex : e.atlasIndex + 1 : 0 > k.zIndex && 0 > d || 0 <= k.zIndex && 0 <= d ? this.B0(k) + 1 : e.atlasIndex + 1 }, pga: function(c) { this.Sh = c }, ce: function(c, d) { this.B = void 0 === d ? c : { src: c, ha: d } }, ck: function() { return this.B }, BC: function(c, d) { f.assert(c, f.l.joa); - 1 === this.i.indexOf(c) ? f.log(f.l.ioa) : d !== c.zIndex && (f.v.prototype.BC.call(this, c, d), this.Ha()) }, removeChild: function(c, d) { null != c && (-1 === this.i.indexOf(c) ? f.log(f.l.hoa) : (this.Rx(c), f.v.prototype.removeChild.call(this, c, d))) }, bta: null, Vt: null, dPa: !1, qi: null, ctor: null, aF: function(c, d) { f.v.prototype.ctor.call(this); var e; d = d || f.CS; "string" == typeof c ? (e = f.nb.Ru(c)) || (e = f.nb.vd(c)) : c instanceof f.Pa && (e = c); e && this.va(e, d) }, bF: function(c, d) { f.v.prototype.ctor.call(this); this.bta = new f.Ma; var e; d = d || f.CS; "string" == typeof c ? (e = f.nb.Ru(c)) || (e = f.nb.vd(c)) : c instanceof f.Pa && (e = c); e && this.va(e, d) }, Hia: null, zva: function(c, d) { f.assert(c, f.l.Qja); c instanceof f.q ? (c.batchNode = this, c.atlasIndex = d, c.dirty = !0, c.bi()) : f.log(f.l.lS) }, Ava: function(c, d) { f.assert(c, f.l.lS); if (c instanceof f.q) { for (var e = this.textureAtlas.capacity; d >= e || e == this.textureAtlas.totalQuads;) this.IP(); c.batchNode = this; c.atlasIndex = d; c.dirty = !0; c.bi() } else f.log(f.l.lS) }, Tt: function(c, d) { var e = this.fh, g = this.textureAtlas, h = g.quads, k = e[c], m = f.h8(h[c]); e[d].atlasIndex = c; e[c] = e[d]; g.rJ(h[d], c); e[d] = k; g.rJ(m, d) }, QP: null, Isa: function(c, d) { f.assert(c, f.l.Nja); c instanceof f.q ? (c.batchNode = this, c.atlasIndex = d, c.dirty = !0, c.bi(), this.i.splice(d, 0, c)) : f.log(f.l.Mja) }, Jsa: function(c, d) { f.assert(c, f.l.yoa); if (c instanceof f.q) { for (var e = this.textureAtlas; d >= e.capacity || e.capacity === e.totalQuads;) this.IP(); c.batchNode = this; c.atlasIndex = d; e.O0(c.quad, d); c.dirty = !0; c.bi() } else f.log(f.l.xoa) }, Bba: function(c, d) { var e = 0, g = c.children; g && (e = g.length); var h = 0; if (0 === e) h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++; else { h = !0; 0 <= g[0].zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++, h = !1); for (e = 0; e < g.length; e++) { var k = g[e]; h && 0 <= k.zIndex && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++, h = !1); d = this.Bba(k, d) } h && (h = c.atlasIndex, c.atlasIndex = d, c.arrivalOrder = 0, h != d && this.Tt(h, d), d++) } return d }, Yk: function() { this.textureAtlas.texture.Ep() || (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA) }, va: null, JW: function(c) { this.i = []; this.fh = []; this.B = new f.Um(f.Mc, f.Lc); this.Vt = this.qi = c; return !0 }, KW: function(c, d) { this.i = []; this.fh = []; this.B = new f.Um(f.Mc, f.Lc); d = d || f.CS; this.textureAtlas = new f.wq; this.textureAtlas.va(c, d); this.Yk(); this.shaderProgram = f.xg.be(f.zo); return !0 }, N0: function(c, d) { c.batchNode = this; c.atlasIndex = d; c.dirty = !0; var e = this.textureAtlas; e.totalQuads >= e.capacity && this.IP(); e.O0(c.quad, d); this.fh.splice(d, 0, c); var e = d + 1, g = this.fh; if (g && 0 < g.length) for (; e < g.length; e++) g[e].atlasIndex++; var g = c.children, h; if (g) for (e = 0, l = g.length || 0; e < l; e++)(h = g[e]) && this.N0(h, this.swa(h, h.zIndex)) }, appendChild: null, gqa: function(c) { this.Sh = !0; c.batchNode = this; c.dirty = !0; this.fh.push(c); c.atlasIndex = this.fh.length - 1; c = c.children; for (var d = 0, e = c.length || 0; d < e; d++) this.appendChild(c[d]) }, hqa: function(c) { this.Sh = !0; c.batchNode = this; c.dirty = !0; this.fh.push(c); var d = this.fh.length - 1; c.atlasIndex = d; var e = this.textureAtlas; e.totalQuads == e.capacity && this.IP(); e.O0(c.quad, d); c = c.children; d = 0; for (e = c.length || 0; d < e; d++) this.appendChild(c[d]) }, Rx: null, Xta: function(c) { c.batchNode = null; var d = this.fh, e = d.indexOf(c); if (-1 != e) { d.splice(e, 1); for (var g = d.length; e < g; ++e) d[e].atlasIndex-- } if (c = c.children) for (d = 0, e = c.length || 0; d < e; d++) c[d] && this.Rx(c[d]) }, Yta: function(c) { this.textureAtlas.oga(c.atlasIndex); c.batchNode = null; var d = this.fh, e = d.indexOf(c); if (-1 != e) { d.splice(e, 1); for (var g = d.length; e < g; ++e) d[e].atlasIndex-- } if (c = c.children) for (d = 0, e = c.length || 0; d < e; d++) c[d] && this.Rx(c[d]) }, sb: null, xF: function() { return this.Vt }, BW: function() { return this.textureAtlas.texture }, ab: null, qY: function(c) { this.Vt = c; for (var d = this.i, e = 0; e < d.length; e++) d[e].texture = c }, rY: function(c) { this.textureAtlas.texture = c; this.Yk() }, I: null, Br: function(c) { var d = c || f.s; if (this.Na) { d.save(); this.transform(c); var e = this.i; if (e) for (this.kd(), c = 0; c < e.length; c++) e[c] && e[c].I(d); d.restore() } }, Uw: function(c) { c = c || f.s; if (this.Na) { f.Rr(); var d = this.grid; d && d.Bi() && (d.dx(), this.mJ()); this.kd(); this.transform(c); this.ma(c); d && d.Bi() && d.ax(this); f.Qr(); this.arrivalOrder = 0 } }, n: null, LU: function(c, d, e) { f.assert(null != c, f.l.Kja); c instanceof f.q ? (d = null == d ? c.zIndex : d, e = null == e ? c.tag : e, f.v.prototype.n.call(this, c, d, e), this.appendChild(c), this.Ha()) : f.log(f.l.Ija) }, cqa: function(c, d, e) { f.assert(null != c, f.l.qoa); c instanceof f.q ? c.texture != this.textureAtlas.texture ? f.log(f.l.poa) : (d = null == d ? c.zIndex : d, e = null == e ? c.tag : e, f.v.prototype.n.call(this, c, d, e), this.appendChild(c), this.Ha()) : f.log(f.l.ooa) }, Cf: null, Uta: function(c) { var d = this.fh; if (d && 0 < d.length) for (var e = 0, g = d.length; e < g; e++) d[e] && (d[e].batchNode = null); f.v.prototype.Cf.call(this, c); this.fh.length = 0 }, Vta: function(c) { var d = this.fh; if (d && 0 < d.length) for (var e = 0, g = d.length; e < g; e++) d[e] && (d[e].batchNode = null); f.v.prototype.Cf.call(this, c); this.fh.length = 0; this.textureAtlas.AC() }, kd: null, Zua: function() { if (this.Sh) { var c, d = 0, e = this.i, g = e.length, h; for (c = 1; c < g; c++) { var k = e[c], d = c - 1; for (h = e[d]; 0 <= d && (k.Ya < h.Ya || k.Ya == h.Ya && k.arrivalOrder < h.arrivalOrder);) e[d + 1] = h, d -= 1, h = e[d]; e[d + 1] = k } 0 < e.length && this.Bk(e, f.v.Fj.kd); this.Sh = !1 } }, $ua: function() { if (this.Sh) { var c = this.i, d, e = 0, g = c.length, h; for (d = 1; d < g; d++) { var k = c[d], e = d - 1; for (h = c[e]; 0 <= e && (k.Ya < h.Ya || k.Ya == h.Ya && k.arrivalOrder < h.arrivalOrder);) c[e + 1] = h, e -= 1, h = c[e]; c[e + 1] = k } if (0 < c.length) for (this.Bk(c, f.v.Fj.kd), d = e = 0; d < c.length; d++) e = this.Bba(c[d], e); this.Sh = !1 } }, ma: null, fn: function() { 0 !== this.textureAtlas.totalQuads && (this.sd.Ff(), this.sd.zj(), this.Bk(this.i, f.v.Fj.bi), f.Fm(this.B.src, this.B.ha), this.textureAtlas.yB()) } }); q = f.Fh.prototype; f.K === f.na ? (q.ctor = q.bF, q.Hia = q.Ava, q.QP = q.Jsa, q.va = q.KW, q.appendChild = q.hqa, q.Rx = q.Yta, q.sb = q.BW, q.ab = q.rY, q.I = q.Uw, q.n = q.cqa, q.Cf = q.Vta, q.kd = q.$ua, q.ma = q.fn) : (q.ctor = q.aF, q.Hia = q.zva, q.QP = q.Isa, q.va = q.JW, q.appendChild = q.gqa, q.Rx = q.Xta, q.sb = q.xF, q.ab = q.qY, q.I = q.Br, q.Cf = q.Uta, q.n = q.LU, q.kd = q.Zua, q.ma = f.v.prototype.ma); f.d(q, "texture", q.sb, q.ab); f.d(q, "descendants", q.Oza); f.Fh.create = function(c, d) { return new f.Fh(c, d) }; f.Bja = f.q.extend({ gi: null, Pi: null, ctor: function() { f.q.prototype.ctor.call(this); var c = document.createElement("canvas"); c.width = c.height = 10; this.gi = c; this.Pi = c.getContext("2d"); var d = new f.Pa; d.sh(c); d.$d(); this.ab(d) }, HSa: function() { return this.Pi }, GSa: function() { return this.gi }, sga: function(c, d) { void 0 === d && (d = c.height, c = c.width); var e = this.gi; e.width = c; e.height = d; this.sb().$d(); this.sc(x(0, 0, c, d), !1) } }); f.El = f.N.extend({ pr: null, Nh: 0, fB: null, ctor: function(c, d, e) { this.pr = c || null; this.Nh = d || 0; this.fB = e || null }, p: function() { var c = new f.El; c.pj(this.pr.p(), this.Nh, this.fB); return c }, PO: function() { return f.p(this) }, copy: function() { var c = new f.El; c.pj(this.pr.p(), this.Nh, this.fB); return c }, pj: function(c, d, e) { this.pr = c; this.Nh = d; this.fB = e; return !0 }, Ca: function() { return this.pr }, Dd: function(c) { this.pr = c }, qTa: function() { return this.Nh }, Y2a: function(c) { this.Nh = c }, GWa: function() { return this.fB }, Q4a: function(c) { this.fB = c } }); f.El.create = function(c, d, e) { return new f.El(c, d, e) }; f.Yu = f.N.extend({ Ph: null, br: 0, yw: !1, C: 0, Nh: 0, sp: 0, ctor: function(c, d, e) { this.Ph = []; if (void 0 === c) this.Fea(null, 0); else { var g = c[0]; g && (g instanceof f.Li ? this.Fea(c, d, e) : g instanceof f.El && this.JP(c, d, e)) } }, $Ta: function() { return this.Ph }, n3a: function(c) { this.Ph = c }, vZ: function(c) { var d = new f.El; d.pj(c, 1, null); this.Ph.push(d); this.sp++ }, APa: function(c) { c = f.nb.vd(c); var d = x(0, 0, 0, 0); d.width = c.width; d.height = c.height; c = f.Li.create(c, d); this.vZ(c) }, BPa: function(c, d) { var e = f.Li.create(c, d); this.vZ(e) }, JP: function(c, d, e) { f.mB(c, f.El); this.Nh = d; this.br = void 0 === e ? 1 : e; this.sp = 0; d = this.Ph; for (e = d.length = 0; e < c.length; e++) { var g = c[e]; d.push(g); this.sp += g.Nh } return !0 }, p: function() { var c = new f.Yu; c.JP(this.a9(), this.Nh, this.br); c.uR(this.yw); return c }, PO: function() { var c = new f.Yu; c.JP(this.a9(), this.Nh, this.br); c.uR(this.yw); return c }, a9: function() { for (var c = [], d = 0; d < this.Ph.length; d++) c.push(this.Ph[d].p()); return c }, copy: function() { return this.PO(null) }, zUa: function() { return this.br }, D3a: function(c) { this.br = c }, uR: function(c) { this.yw = c }, DVa: function() { return this.yw }, pu: function() { return this.sp * this.Nh }, pTa: function() { return this.Nh }, X2a: function(c) { this.Nh = c }, tWa: function() { return this.sp }, Fea: function(c, d, e) { f.mB(c, f.Li); this.br = void 0 === e ? 1 : e; this.Nh = d || 0; this.sp = 0; d = this.Ph; d.length = 0; if (c) { for (e = 0; e < c.length; e++) { var g = c[e], h = new f.El; h.pj(g, 1, null); d.push(h) } this.sp += c.length } return !0 }, OQ: function() {}, wh: function() {} }); f.Yu.create = function(c, d, e) { return new f.Yu(c, d, e) }; f.WG = { $y: {}, TG: function(c, d) { this.$y[d] = c }, d1a: function(c) { c && this.$y[c] && delete this.$y[c] }, cl: function(c) { return this.$y[c] ? this.$y[c] : null }, bqa: function(c, d) { var e = c.animations; if (e) { var g = 1, h = c.properties; if (h) for (var g = null != h.format ? parseInt(h.format) : g, h = h.spritesheets, k = f.Je, m = f.path, n = 0; n < h.length; n++) k.vp(m.pB(d, h[n])); switch (g) { case 1: this.Cta(e); break; case 2: this.Dta(e); break; default: f.log(f.l.fwa) } } else f.log(f.l.ewa) }, Hva: function(c) { f.assert(c, f.l.nwa); var d = f.L.zd(c); d ? this.bqa(d, c) : f.log(f.l.mwa) }, Cta: function(c) { var d = f.Je, e; for (e in c) { var g = c[e], h = g.frames, g = parseFloat(g.delay) || 0, k = null; if (h) { for (var k = [], m = 0; m < h.length; m++) { var n = d.Ca(h[m]); if (n) { var p = new f.El; p.pj(n, 1, null); k.push(p) } else f.log(f.l.hwa, e, h[m]) } 0 === k.length ? f.log(f.l.iwa, e) : (k.length != h.length && f.log(f.l.jwa, e), k = f.Yu.create(k, g, 1), f.WG.TG(k, e)) } else f.log(f.l.gwa, e) } }, Dta: function(c) { var d = f.Je, e; for (e in c) { var g = c[e], h = parseInt(g.loops), h = g.loop ? f.mv : isNaN(h) ? 1 : h, k = g.restoreOriginalFrame && !0 == g.restoreOriginalFrame ? !0 : !1, m = g.frames; if (m) { for (var n = [], p = 0; p < m.length; p++) { var s = m[p], u = s.spriteframe, v = d.Ca(u); if (v) { var u = parseFloat(s.delayUnits) || 0, s = s.notification, z = new f.El; z.pj(v, u, s); n.push(z) } else f.log(f.l.lwa, e, u) } g = parseFloat(g.delayPerUnit) || 0; m = new f.Yu; m.JP(n, g, h); m.uR(k); f.WG.TG(m, e) } else f.log(f.l.kwa, e) } }, Vs: function() { this.$y = {} } }; f.Li = f.N.extend({ hb: null, Jg: null, $i: null, lg: !1, Ta: null, Pk: null, Qk: null, fa: null, XA: "", Ba: !1, XL: null, ctor: function(c, d, e, g, h) { this.hb = r(0, 0); this.Pk = r(0, 0); this.Jg = t(0, 0); this.lg = !1; this.Qk = t(0, 0); this.XA = ""; this.fa = null; this.Ba = !1; void 0 !== c && void 0 !== d && (void 0 === e || void 0 === g || void 0 === h ? this.va(c, d) : this.va(c, d, e, g, h)) }, RC: function() { return this.Ba }, oe: function(c, d) { null == this.XL && (this.XL = []); this.XL.push({ al: c, nj: d }) }, jf: function() { var c = this.XL; if (c) { for (var d = 0, e = c.length; d < e; d++) { var g = c[d]; g.al.call(g.nj, this) } c.length = 0 } }, bBa: function() { var c = this.$i; return x(c.x, c.y, c.width, c.height) }, c4a: function(c) { this.$i || (this.$i = x(0, 0, 0, 0)); this.$i.x = c.x; this.$i.y = c.y; this.$i.width = c.width; this.$i.height = c.height; this.Ta = f.cs(c) }, UXa: function() { return this.lg }, g4a: function(c) { this.lg = c }, $h: function() { var c = this.Ta; return x(c.x, c.y, c.width, c.height) }, Iha: function(c) { this.Ta || (this.Ta = x(0, 0, 0, 0)); this.Ta.x = c.x; this.Ta.y = c.y; this.Ta.width = c.width; this.Ta.height = c.height; this.$i = f.FI(this.Ta) }, RUa: function() { return this.Pk }, L3a: function(c) { this.Pk.x = c.x; this.Pk.y = c.y; f.xX(this.Pk, this.hb) }, WUa: function() { return this.Qk }, O3a: function(c) { this.Qk.width = c.width; this.Qk.height = c.height }, QAa: function() { return this.Jg }, N3a: function(c) { this.Jg.width = c.width; this.Jg.height = c.height }, sb: function() { if (this.fa) return this.fa; if ("" !== this.XA) { var c = f.nb.vd(this.XA); c && (this.Ba = c.ie); return c } return null }, ab: function(c) { if (this.fa != c) { var d = c.ie; this.Ba = d; this.fa = c; d || c.oe(function(c) { this.Ba = !0; if (this.lg && f.K === f.fb) { var d = c.md, d = f.t_(d, this.$h()), h = new f.Pa; h.sh(d); h.$d(); this.ab(h); d = this.$h(); this.Iha(x(0, 0, d.width, d.height)) } d = this.Ta; 0 === d.width && 0 === d.height && (d = c.width, c = c.height, this.Ta.width = d, this.Ta.height = c, this.$i = f.FI(this.Ta), this.Qk.width = this.$i.width, this.Qk.height = this.$i.height, this.Jg.width = d, this.Jg.height = c); this.jf() }, this) } }, Kda: function() { return this.hb }, nR: function(c) { this.hb.x = c.x; this.hb.y = c.y }, p: function() { var c = new f.Li; c.va(this.XA, this.$i, this.lg, this.Pk, this.Qk); c.ab(this.fa); return c }, PO: function() { var c = new f.Li; c.va(this.XA, this.$i, this.lg, this.Pk, this.Qk); c.ab(this.fa); return c }, copy: function() { return this.PO() }, va: function(c, d, e, g, h) { 2 === arguments.length && (d = f.FI(d)); g = g || r(0, 0); h = h || d; e = e || !1; "string" == typeof c ? (this.fa = null, this.XA = c) : c instanceof f.Pa && this.ab(c); if (c = this.sb()) { var k, m; e ? (k = d.x + d.height, m = d.y + d.width) : (k = d.x + d.width, m = d.y + d.height); k > c.width && f.error(f.l.HT, c.url); m > c.height && f.error(f.l.GT, c.url) } this.$i = d; this.Ta = f.cs(d); this.Pk.x = g.x; this.Pk.y = g.y; f.xX(g, this.hb); this.Qk.width = h.width; this.Qk.height = h.height; f.eba(h, this.Jg); this.lg = e; return !0 } }); f.Li.create = function(c, d, e, g, h) { return new f.Li(c, d, e, g, h) }; f.Li.aOa = function(c, d, e, g, h) { var k = new f.Li; k.fa = c; k.$i = d; k.Ta = f.cs(d); k.Pk.x = g.x; k.Pk.y = g.y; f.xX(k.Pk, k.hb); k.Qk.width = h.width; k.Qk.height = h.height; f.eba(k.Qk, k.Jg); k.lg = e; return k }; f.Je = { q8: /^\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*$/, Mpa: /^\s*\{\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*,\s*\{\s*([\-]?\d+[.]?\d*)\s*,\s*([\-]?\d+[.]?\d*)\s*\}\s*\}\s*$/, Fn: {}, qr: {}, Rz: {}, Baa: function(c) { return (c = this.Mpa.exec(c)) ? x(parseFloat(c[1]), parseFloat(c[2]), parseFloat(c[3]), parseFloat(c[4])) : x(0, 0, 0, 0) }, paa: function(c) { return (c = this.q8.exec(c)) ? r(parseFloat(c[1]), parseFloat(c[2])) : r(0, 0) }, vY: function(c) { return (c = this.q8.exec(c)) ? t(parseFloat(c[1]), parseFloat(c[2])) : t(0, 0) }, Ira: function(c) { var d = f.L.zd(c); f.assert(d, f.l.lIa, c); f.L.wh(c); if (d.bA) return this.Rz[c] = d; var e = d.frames, g = d.metadata || d.meta, d = {}, h = {}, k = 0; g && (k = g.format, k = 1 >= k.length ? parseInt(k) : k, h.eCa = g.textureFileName || g.textureFileName || g.image); for (var m in e) { var n = e[m]; if (n) { g = {}; if (0 == k) { g.rect = x(n.x, n.y, n.width, n.height); g.SQ = !1; g.offset = r(n.offsetX, n.offsetY); var p = n.originalWidth, n = n.originalHeight; p && n || f.log(f.l.kIa); p = Math.abs(p); n = Math.abs(n); g.size = t(p, n) } else if (1 == k || 2 == k) g.rect = this.Baa(n.frame), g.SQ = n.rotated || !1, g.offset = this.paa(n.offset), g.size = this.vY(n.sourceSize); else if (3 == k) { var p = this.vY(n.spriteSize), s = this.Baa(n.textureRect); p && (s = x(s.x, s.y, p.width, p.height)); g.rect = s; g.SQ = n.textureRotated || !1; g.offset = this.paa(n.spriteOffset); g.size = this.vY(n.spriteSourceSize); g.Zva = n.aliases } else p = n.frame, s = n.sourceSize, m = n.filename || m, g.rect = x(p.x, p.y, p.w, p.h), g.SQ = n.rotated || !1, g.offset = r(0, 0), g.size = t(s.w, s.h); d[m] = g } } return this.Rz[c] = { bA: !0, frames: d, RDa: h } }, vp: function(c, d) { f.assert(c, f.l.nIa); var e = this.Rz[c] || f.L.zd(c); if (e && e.frames) { var g = this.Rz[c] || this.Ira(c), e = g.frames, g = g.RDa; d ? d instanceof f.Pa || ("string" == typeof d ? d = f.nb.vd(d) : f.assert(0, f.l.oIa)) : d = f.nb.vd(f.path.pB(c, g.eCa || ".png")); var g = this.qr, h = this.Fn, k; for (k in e) { var m = e[k], n = h[k]; if (!n) { n = f.Li.create(d, m.rect, m.SQ, m.offset, m.size); if (m = m.Zva) for (var p = 0, s = m.length; p < s; p++) { var u = m[p]; g[u] && f.log(f.l.mIa, u); g[u] = k } f.K === f.fb && n.lg && n.sb().ie && (m = n.sb().md, m = f.t_(m, n.bBa()), p = new f.Pa, p.sh(m), p.$d(), n.ab(p), m = n.Ta, n.Iha(x(0, 0, m.width, m.height))); h[k] = n } } } }, CNa: function(c) { c = c.frames; for (var d in c) this.Fn[d] && f.log(f.l.jIa, d) }, vZ: function(c, d) { this.Fn[d] = c }, w1a: function() { this.Fn = {}; this.qr = {} }, v1a: function(c) { c && (this.qr[c] && delete this.qr[c], this.Fn[c] && delete this.Fn[c]) }, VFa: function(c) { var d = this.Fn, e = this.qr; if (c = this.Rz[c]) { c = c.frames; for (var g in c) if (d[g]) { delete d[g]; for (var h in e) e[h] == g && delete e[h] } } }, x1a: function(c) { var d = this.Fn, e = this.qr, g; for (g in d) { var h = d[g]; if (h && h.sb() == c) { delete d[g]; for (var k in e) e[k] == g && delete e[k] } } }, Ca: function(c) { var d = this.Fn[c]; if (!d) { var e = this.qr[c]; e && ((d = this.Fn[e.toString()]) || delete this.qr[c]) } d || f.log(f.l.pIa, c); return d }, Vs: function() { this.Fn = {}; this.qr = {}; this.Rz = {} } }; f.tB = { gLa: 0, AMa: 1, INT: 2, UKa: 3, eKa: 4, MF: 0, Zsa: 0, OY: !1, UN: !1, MY: !1, NY: !1, PY: !1, zOa: 0, cX: 0, KK: "", MG: {}, bA: !1, FF: function() { var c = this.MG; c["cocos2d.x.version"] = f.JS; c["cocos2d.x.compiled_with_profiler"] = !1; c["cocos2d.x.compiled_with_gl_state_cache"] = f.Zm; this.bA = !0 }, FUa: function() { return this.MF }, EUa: function() { return this.Zsa }, GUa: function() { return this.cX }, f5a: function() { return this.UN }, g5a: function() { return this.OY }, e5a: function() { return !1 }, h5a: function() { return !1 }, b5a: function() { return !1 }, c5a: function() { return this.MY }, d5a: function() { return this.NY }, i5a: function() { return this.PY }, qB: function(c) { return -1 < this.KK.indexOf(c) }, Uf: function(c, d) { this.bA || this.FF(); var e = this.MG; return e[c] ? e[c] : d }, ue: function(c, d) { this.MG[c] = d }, kya: function() { 0 === f.Zm && (f.log(""), f.log(f.l.$wa), f.log("")) }, rza: function() { if (f.K !== f.fb) { this.bA || this.FF(); var c = f.s, d = this.MG; d["gl.vendor"] = c.getParameter(c.VENDOR); d["gl.renderer"] = c.getParameter(c.RENDERER); d["gl.version"] = c.getParameter(c.VERSION); this.KK = ""; for (var e = c.getSupportedExtensions(), g = 0; g < e.length; g++) this.KK += e[g] + " "; this.MF = c.getParameter(c.MAX_TEXTURE_SIZE); d["gl.max_texture_size"] = this.MF; this.cX = c.getParameter(c.MAX_COMBINED_TEXTURE_IMAGE_UNITS); d["gl.max_texture_units"] = this.cX; this.OY = this.qB("GL_IMG_texture_compression_pvrtc"); d["gl.supports_PVRTC"] = this.OY; this.UN = !1; d["gl.supports_NPOT"] = this.UN; this.MY = this.qB("GL_IMG_texture_format_BGRA888"); d["gl.supports_BGRA8888"] = this.MY; this.NY = this.qB("GL_EXT_discard_framebuffer"); d["gl.supports_discard_framebuffer"] = this.NY; this.PY = this.qB("vertex_array_object"); d["gl.supports_vertex_array_object"] = this.PY; f.rB() } }, m_a: function(c) { this.bA || this.FF(); var d = f.L.zd(c); if (!d) throw "Please load the resource first : " + c; f.assert(d, f.l.bxa, c); if (d = d.data) for (var e in d) this.MG[e] = d[e]; else f.log(f.l.axa, c) } }; f.U.FS = function() { f.WKa = f.N.extend({ L5a: function() {} }); var c = f.ic.prototype; c.ey = function(c) { var e = this.Y; this.Zha(); var g = this.vn, h = g.ph.x / g.ka, g = g.ph.y / g.ra; switch (c) { case f.ic.ena: f.Lp(f.nq); f.$B(); h = new f.Ma; f.$0(h, 0, e.width, 0, e.height, -1024, 1024); f.aC(h); f.Lp(f.mq); f.$B(); break; case f.ic.K6: var k = this.MH(), m = new f.Ma, n = new f.Ma; f.Lp(f.nq); f.$B(); f.sDa(m, e.width / e.height, 2 * k); f.aC(m); f.Lp(f.mq); f.$B(); k = f.cC(null, -h + e.width / 2, -g + e.height / 2, k); f.Sea(n, k, f.cC(null, -h + e.width / 2, -g + e.height / 2, 0), f.cC(null, 0, 1, 0)); f.aC(n); break; case f.ic.fna: break; default: f.log(f.l.cla) } this.mp = c; f.Qa.dispatchEvent(this.YL); f.yha() }; c.Rga = function(c) { var e = f.s; c ? (e.clearDepth(1), e.enable(e.DEPTH_TEST), e.depthFunc(e.LEQUAL)) : e.disable(e.DEPTH_TEST) }; c.B2 = function(c) { this.Y.width = f.Sb.width; this.Y.height = f.Sb.height; this.vn = c || f.view; c = f.tB; c.rza(); c.kya(); this.Az(); this.aha(); f.Qa && f.Qa.Lb(!0) }; c.Vs = function() { var c = f.s; c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT) }; c.fV = function() { f.Rr() }; c.NU = function() { f.Qr() }; c.Az = function() { if (!f.an) this.Wqa(); else if (null != f.ic.d$ && !1 != f.ic.d$) { var c = new f.Pa; c.sh(f.ic.Qz); c.$d(); var e = f.view.tH().height / 320; 0 === e && (e = this.Y.height / 320); var g = new f.an; g.iY(!0); g.xf("00.0", c, 12, 32, "."); g.scale = e; this.yk = g; g = new f.an; g.iY(!0); g.xf("0.000", c, 12, 32, "."); g.scale = e; this.zk = g; g = new f.an; g.iY(!0); g.xf("000", c, 12, 32, "."); g.scale = e; this.Jk = g; c = f.DS; this.Jk.o(c.x, 34 * e + c.y); this.zk.o(c.x, 17 * e + c.y); this.yk.o(c) } }; c.Wqa = function() { var c = 0, c = this.Y.width > this.Y.height ? 0 | this.Y.height / 320 * 24 : 0 | this.Y.width / 320 * 24; this.yk = f.ia.create("000.0", "Arial", c); this.zk = f.ia.create("0.000", "Arial", c); this.Jk = f.ia.create("0000", "Arial", c); c = f.DS; this.Jk.o(this.Jk.width / 2 + c.x, 5 * this.Jk.height / 2 + c.y); this.zk.o(this.zk.width / 2 + c.x, 3 * this.zk.height / 2 + c.y); this.yk.o(this.yk.width / 2 + c.x, this.yk.height / 2 + c.y) }; c.fxa = function(c) { var e = new f.Ma; f.y5(e); var g = new f.Ma; f.rDa(g, e); var h = this.vn.tH(), k = new f.cd; f.bfa(k, new f.cd(2 * c.x / h.width - 1, 1 - 2 * c.y / h.height, e.c[14] / e.c[15]), g); return r(k.x, k.y) }; c.hxa = function(c) { var e = new f.Ma; f.y5(e); var g = new f.cd; f.bfa(g, new f.cd(c.x, c.y, 0), e); c = this.vn.tH(); return r(c.width * (0.5 * g.x + 0.5), c.height * (0.5 * -g.y + 0.5)) }; c.JH = function() { return this.vn.JH() }; c.v0 = function() { return this.vn.v0() }; c.MH = function() { return this.Y.height / 1.1566 }; c.Zha = function() { var c = this.vn; if (c) { var e = this.Y; c.ZHa(-c.ph.x / c.ka, -c.ph.y / c.ra, e.width, e.height) } }; c.TUa = function() { return this.vn }; c.wVa = function() { return this.mp }; c.tGa = function() { f.Fm(f.Mc, f.Lc) }; c.aha = function() { this.tGa(); this.Rga(!1); this.ey(this.mp); f.s.clearColor(0, 0, 0, 1) } }; f.bl = 0; f.y5 = function(c) { var d = new f.Ma; f.ZP(f.nq, d); var e = new f.Ma; f.ZP(f.mq, e); f.Np(c, d, e) }; f.ic = f.N.extend({ vOa: !1, PF: !1, Ce: !1, nN: !1, Jt: !1, EE: 0, lX: 0, mp: 0, Xy: 0, Vl: 1, jF: !1, $s: 0, hW: 0, yk: null, zk: null, Jk: null, Y: null, rt: null, bp: null, YM: null, vn: null, pp: null, OX: null, mg: null, Ph: 0, aO: 0, bY: 0, XNa: null, nh: null, Ql: null, YL: null, ZV: null, aW: null, $V: null, ctor: function() { var c = this; c.rt = Date.now(); f.Qa.sZ(f.vf.vD, function() { c.rt = Date.now() }) }, j: function() { this.lX = this.EE = 1 / f.Lxa; this.pp = []; this.mp = f.ic.gna; this.OX = null; this.hW = this.Xy = 0; this.jF = !1; this.aO = this.Ph = 0; this.rt = Date.now(); this.nN = this.Ce = !1; this.Y = t(0, 0); this.vn = null; this.Vl = 1; this.nh = new f.Uy; this.Ql = f.M3 ? new f.M3 : null; this.nh.UQ(this.Ql, f.Uy.kK, !1); this.ZV = new f.kq(f.ic.mla); this.ZV.setUserData(this); this.aW = new f.kq(f.ic.ola); this.aW.setUserData(this); this.$V = new f.kq(f.ic.nla); this.$V.setUserData(this); this.YL = new f.kq(f.ic.tla); this.YL.setUserData(this); return !0 }, Nwa: function() { var c = Date.now(); this.PF ? (this.$s = 0, this.PF = !1) : this.$s = (c - this.rt) / 1E3; 0 < f.vf.kj[f.vf.Vm.iH] && 0.2 < this.$s && (this.$s = 1 / 60); this.rt = c }, iya: function() { this.Nwa(); this.Ce || (this.nh.update(this.$s), f.Qa.dispatchEvent(this.$V)); this.Vs(); this.bp && this.lHa(); this.fV && this.fV(); this.mg && (this.mg.I(), f.Qa.dispatchEvent(this.aW)); this.YM && this.YM.I(); this.jF && this.Yua(); this.NU && this.NU(); f.Qa.dispatchEvent(this.ZV); this.aO++; this.jF && this.Aqa() }, fV: null, NU: null, end: function() { this.nN = !0 }, ZSa: function() { return this.Vl }, MUa: function() { return this.YM }, LWa: function() { return this.Y }, KH: function() { return t(this.Y.width * this.Vl, this.Y.height * this.Vl) }, pause: function() { this.Ce || (this.lX = this.EE, this.Cga(0.25), this.Ce = !0) }, s0a: function() { f.assert(this.mg, f.l.$ka); this.pp.pop(); var c = this.pp.length; 0 == c ? this.end() : (this.Jt = !0, this.bp = this.pp[c - 1]) }, qFa: function() { f.WG.Vs(); f.Je.Vs(); f.nb.Vs() }, rFa: function() { this.Dm().pJ(); f.Qa && f.Qa.Lb(!1); this.mg && (this.mg.uh(), this.mg.Ra(), this.mg.De()); this.bp = this.mg = null; this.pp.length = 0; this.nia(); this.qFa(); f.rB() }, tFa: function(c) { f.assert(c, f.l.Z4); this.Jt = !1; this.pp.push(c); this.bp = c }, f2: function(c) { f.assert(c, f.l.Z4); if (this.mg) { var d = this.pp.length; 0 === d ? (this.Jt = !0, this.pp[d] = c) : (this.Jt = !0, this.pp[d - 1] = c); this.bp = c } else this.tFa(c), this.kia() }, lk: function() { this.Ce && (this.Cga(this.lX), (this.rt = Date.now()) || f.log(f.l.bla), this.Ce = !1, this.$s = 0) }, P2a: function(c) { c != this.Vl && (this.Vl = c, this.Az()) }, W2a: function() {}, H3a: function(c) { this.PF = c }, lHa: function() { var c = !1, d = !1; f.xb && (c = this.mg ? this.mg instanceof f.xb : !1, d = this.bp ? this.bp instanceof f.xb : !1); if (!d) { if (d = this.mg) d.uh(), d.Ra(); this.Jt && d && d.De() } this.mg = this.bp; this.bp = null; c || null == this.mg || (this.mg.ba(), this.mg.sj()) }, J3a: function(c) { this.YM = c }, NB: function() { return this.OX }, $p: function(c) { this.OX = c }, Yua: function() { this.Ph++; this.Xy += this.$s; this.yk && this.zk && this.Jk ? (this.Xy > f.Xka && (this.zk.string = this.bY.toFixed(3), this.hW = this.Ph / this.Xy, this.Xy = this.Ph = 0, this.yk.string = this.hW.toFixed(1), this.Jk.string = (0 | f.bl).toString()), this.yk.I(), this.zk.I(), this.Jk.I()) : this.Az(); f.bl = 0 }, VXa: function() { return this.Jt }, HVa: function() { return this.mg }, cSa: function() { return this.EE }, AXa: function() { return this.jF }, OGa: function(c) { this.jF = c }, MVa: function() { return this.bY }, LXa: function() { return this.PF }, QXa: function() { return this.Ce }, uWa: function() { return this.aO }, t0a: function() { this.fFa(1) }, fFa: function(c) { f.assert(this.mg, f.l.ala); var d = this.pp, e = d.length; if (0 == e) this.end(); else if (!(c > e)) { for (; e > c;) { var g = d.pop(); g.running && (g.uh(), g.Ra()); g.De(); e-- } this.bp = d[d.length - 1]; this.Jt = !1 } }, Dm: function() { return this.nh }, Mha: function(c) { this.nh != c && (this.nh = c) }, IB: function() { return this.Ql }, zga: function(c) { this.Ql != c && (this.Ql = c) }, rTa: function() { return this.$s }, Az: null, Aqa: function() { this.bY = (Date.now() - this.rt) / 1E3 } }); f.ic.tla = "director_projection_changed"; f.ic.mla = "director_after_draw"; f.ic.ola = "director_after_visit"; f.ic.nla = "director_after_update"; f.dla = f.ic.extend({ SP: !1, kia: function() { this.PF = !0; this.SP = !1 }, lfa: function() { this.nN ? (this.nN = !1, this.rFa()) : this.SP || this.iya() }, nia: function() { this.SP = !0 }, Cga: function(c) { this.EE = c; this.SP || (this.nia(), this.kia()) } }); f.ic.d3 = null; f.ic.eda = !0; f.ic.rW = function() { f.ic.eda && (f.ic.eda = !1, f.ic.d3 = new f.dla, f.ic.d3.j()); return f.ic.d3 }; f.Lxa = 60; f.ic.ena = 0; f.ic.K6 = 1; f.ic.fna = 3; f.ic.gna = f.ic.K6; f.K === f.fb ? (q = f.ic.prototype, q.ey = function(c) { this.mp = c; f.Qa.dispatchEvent(this.YL) }, q.Rga = function() {}, q.B2 = function(c) { this.Y.width = f.Sb.width; this.Y.height = f.Sb.height; this.vn = c || f.view; f.Qa && f.Qa.Lb(!0) }, q.Vs = function() { var c = this.vn.ph; f.s.clearRect(-c.x, c.y, c.width, -c.height) }, q.Az = function() { var c = 0, c = this.Y.width > this.Y.height ? 0 | this.Y.height / 320 * 24 : 0 | this.Y.width / 320 * 24; this.yk = f.ia.create("000.0", "Arial", c); this.zk = f.ia.create("0.000", "Arial", c); this.Jk = f.ia.create("0000", "Arial", c); c = f.DS; this.Jk.o(this.Jk.width / 2 + c.x, 5 * this.Jk.height / 2 + c.y); this.zk.o(this.zk.width / 2 + c.x, 3 * this.zk.height / 2 + c.y); this.yk.o(this.yk.width / 2 + c.x, this.yk.height / 2 + c.y) }, q.JH = function() { return this.Y }, q.v0 = function() { return r(0, 0) }) : (f.ic.Qz = new Image, f.ub(f.ic.Qz, "load", function() { f.ic.d$ = !0 }), f.Qz && (f.ic.Qz.src = f.Qz), f.assert("function" === typeof f.U.FS, f.l.Hf, "CCDirectorWebGL.js"), f.U.FS(), delete f.U.FS); f.rD = f.N.extend({ mF: null, nF: null, oF: null, tz: null, uz: null, vz: null, IG: null, JG: null, KG: null, Ec: null, JM: null, ctor: function() { this.JM = new f.Ma; this.restore() }, description: function() { return "\x3cCCCamera | center \x3d(" + this.tz + "," + this.uz + "," + this.vz + ")\x3e" }, Sga: function(c) { this.Ec = c }, R0: function() { return this.Ec }, restore: function() { this.mF = this.nF = 0; this.oF = f.rD.MH(); this.IG = this.tz = this.uz = this.vz = 0; this.JG = 1; this.KG = 0; f.Ex(this.JM); this.Ec = !1 }, gI: function() { if (this.Ec) { var c = new f.cd, d = new f.cd, e = new f.cd; f.cC(c, this.mF, this.nF, this.oF); f.cC(d, this.tz, this.uz, this.vz); f.cC(e, this.IG, this.JG, this.KG); f.Sea(this.JM, c, d, e); this.Ec = !1 } f.aC(this.JM) }, c3a: function(c, d, e) { this.Zga(c, d, e) }, Zga: function(c, d, e) { this.mF = c; this.nF = d; this.oF = e; this.Ec = !0 }, H2a: function(c, d, e) { this.EGa(c, d, e) }, EGa: function(c, d, e) { this.tz = c; this.uz = d; this.vz = e; this.Ec = !0 }, P4a: function(c, d, e) { this.VHa(c, d, e) }, VHa: function(c, d, e) { this.IG = c; this.JG = d; this.KG = e; this.Ec = !0 }, RTa: function() { return { x: this.mF, y: this.nF, z: this.oF } }, Bda: function() { return { x: this.mF, y: this.nF, z: this.oF } }, QSa: function() { return { x: this.tz, y: this.uz, z: this.vz } }, rda: function() { return { x: this.tz, y: this.uz, z: this.vz } }, FWa: function() { return { x: this.IG, y: this.JG, z: this.KG } }, IBa: function() { return { x: this.IG, y: this.JG, z: this.KG } }, pNa: function() {} }); f.rD.MH = function() { return f.aK }; f.mMa = f.kK + 1; f.mB = function(c, d) { if (c && 0 < c.length) for (var e = 0; e < c.length; e++) if (!(c[e] instanceof d)) return f.log(f.l.mB), !1; return !0 }; f.Ld = function(c, d) { for (var e = 0, g = c.length; e < g; e++) if (c[e] == d) { c.splice(e, 1); break } }; f.OPa = function(c, d) { for (var e = 0, g = d.length; e < g; e++) f.Ld(c, d[e]) }; f.NPa = function(c, d, e) { c.splice.apply(c, [e, 0].concat(d)); return c }; f.Z5 = function(c, d, e) { this.next = null; this.target = c; this.oFa = d; this.paused = e; this.nQ = !1 }; f.E5 = function(c, d, e) { this.list = c; this.tx = d; this.target = e; this.DP = null }; f.Pla = function(c, d) { this.eq = null; this.target = c; this.SC = 0; this.hH = this.gH = null; this.paused = d; this.DP = null }; f.B7 = f.N.extend({ pt: 0, bg: null, ad: null, Fc: 0, Raa: !1, rO: !1, ZA: 0, SX: 0, DL: 0, jUa: function() { return this.pt }, setInterval: function(c) { this.pt = c }, JSa: function() { return this.bg }, ctor: function(c, d, e, g, h) { this.ad = c; this.bg = d; this.Fc = -1; this.pt = e || 0; this.DL = h || 0; this.rO = 0 < this.DL; this.SX = null == g ? f.mv : g; this.Raa = this.SX == f.mv }, SV: function() { if ("string" == typeof this.bg) this.ad[this.bg](this.Fc); else this.bg.call(this.ad, this.Fc) }, update: function(c) { if (-1 == this.Fc) this.ZA = this.Fc = 0; else { var d = this.ad, e = this.bg; this.Fc += c; this.Raa && !this.rO ? this.Fc >= this.pt && (d && e && this.SV(), this.Fc = 0) : (this.rO ? this.Fc >= this.DL && (d && e && this.SV(), this.Fc -= this.DL, this.ZA += 1, this.rO = !1) : this.Fc >= this.pt && (d && e && this.SV(), this.Fc = 0, this.ZA += 1), this.ZA > this.SX && f.Q.Dm().A3(d, e)) } } }); f.Uy = f.N.extend({ Wt: 1, Tw: null, Wq: null, UK: null, Vq: null, wNa: null, eh: null, So: !1, kO: !1, ctor: function() { this.Wt = 1; this.Tw = [ [], [], [] ]; this.Wq = {}; this.UK = []; this.Vq = {}; this.FE = []; this.eh = null; this.kO = this.So = !1 }, RX: function(c) { delete this.Vq[c.target.yb]; f.Ld(this.FE, c); c.B7 = null; c.target = null }, Haa: function(c) { if (c = this.Wq[c.target.yb]) f.Ld(c.list, c.tx), delete this.Wq[c.target.yb], f.Ld(this.UK, c), c.tx = null, c.target = null }, taa: function(c, d, e, g) { g = new f.Z5(d, e, g); if (c) { for (var h = c.length - 1, k = 0; k <= h && !(e < c[k].oFa); k++); c.splice(k, 0, g) } else c = [], c.push(g); e = new f.E5(c, g, d); this.UK.push(e); this.Wq[d.yb] = e; return c }, iqa: function(c, d, e) { e = new f.Z5(d, 0, e); c.push(e); c = new f.E5(c, e, d); this.UK.push(c); this.Wq[d.yb] = c }, RHa: function(c) { this.Wt = c }, pWa: function() { return this.Wt }, update: function(c) { var d = this.Tw, e = this.FE, g, h, k; this.kO = !0; 1 != this.Wt && (c *= this.Wt); h = 0; for (k = d.length; h < k && 0 <= h; h++) for (var m = this.Tw[h], n = 0, p = m.length; n < p; n++) g = m[n], g.paused || g.nQ || g.target.update(c); h = 0; for (k = e.length; h < k; h++) { g = e[h]; if (!g) break; this.eh = g; this.So = !1; if (!g.paused) for (g.SC = 0; g.SC < g.eq.length; g.SC++) g.gH = g.eq[g.SC], g.hH = !1, g.gH.update(c), g.gH = null; this.So && 0 == g.eq.length && (this.RX(g), h--) } h = 0; for (k = d.length; h < k; h++) for (m = this.Tw[h], n = 0, p = m.length; n < p;) { g = m[n]; if (!g) break; g.nQ ? this.Haa(g) : n++ } this.kO = !1; this.eh = null }, g2: function(c, d, e, g, h, k) { f.assert(d, f.l.Wna); f.assert(c, f.l.Xna); e = e || 0; g = null == g ? f.mv : g; h = h || 0; k = k || !1; var m = this.Vq[c.yb]; m || (m = new f.Pla(c, k), this.FE.push(m), this.Vq[c.yb] = m); if (null == m.eq) m.eq = []; else for (var n = 0; n < m.eq.length; n++) if (k = m.eq[n], d == k.bg) { f.log(f.l.Vna, k.pt.toFixed(4), e.toFixed(4)); k.pt = e; return } k = new f.B7(c, d, e, g, h); m.eq.push(k) }, UQ: function(c, d, e) { if (null !== c) { var g = this.Tw, h = this.Wq[c.yb]; h ? h.tx.nQ = !1 : 0 == d ? this.iqa(g[1], c, e) : 0 > d ? g[0] = this.taa(g[0], c, d, e) : g[2] = this.taa(g[2], c, d, e) } }, A3: function(c, d) { if (null != c && null != d) { var e = this.Vq[c.yb]; if (e) for (var g = e.eq, h = 0, k = g.length; h < k; h++) { var m = g[h]; if (d == m.bg) { m != e.gH || e.hH || (e.hH = !0); g.splice(h, 1); e.SC >= h && e.SC--; 0 == g.length && (this.eh == e ? this.So = !0 : this.RX(e)); break } } } }, qJ: function(c) { null != c && (c = this.Wq[c.yb], null != c && (this.kO ? c.tx.nQ = !0 : this.Haa(c.tx))) }, Bia: function(c) { if (null != c) { var d = this.Vq[c.yb]; if (d) { var e = d.eq; !d.hH && 0 <= e.indexOf(d.gH) && (d.hH = !0); e.length = 0; this.eh == d ? this.So = !0 : this.RX(d) } this.qJ(c) } }, pJ: function() { this.QIa(f.Uy.kK) }, QIa: function(c) { for (var d = this.FE, e = this.Tw, g = 0, h = d.length; g < h; g++) this.Bia(d[g].target); for (g = 2; 0 <= g; g--) if (!(1 == g && 0 < c || 0 == g && 0 <= c)) for (var d = e[g], h = 0, k = d.length; h < k; h++) this.qJ(d[h].target) }, i0a: function() { return this.XEa(f.Uy.kK) }, XEa: function() { for (var c = [], d, e = this.FE, g = this.Tw, h = 0, k = e.length; h < k; h++) if (d = e[h]) d.paused = !0, c.push(d.target); h = 0; for (k = g.length; h < k; h++) for (var e = g[h], m = 0, n = e.length; m < n; m++) if (d = e[m]) d.paused = !0, c.push(d.target); return c }, cGa: function(c) { if (c) for (var d = 0; d < c.length; d++) this.Km(c[d]) }, as: function(c) { f.assert(c, f.l.Tna); var d = this.Vq[c.yb]; d && (d.paused = !0); (c = this.Wq[c.yb]) && (c.tx.paused = !0) }, Km: function(c) { f.assert(c, f.l.Una); var d = this.Vq[c.yb]; d && (d.paused = !1); (c = this.Wq[c.yb]) && (c.tx.paused = !1) }, YXa: function(c) { f.assert(c, f.l.Sna); return (c = this.Vq[c.yb]) ? c.paused : !1 } }); f.Uy.kK = -2147483648; f.v6 = 2 * Math.PI; f.a5 = f.N.extend({ jV: [], s: null, ctor: function(c) { this.s = c }, C_: function(c, d) { d || (d = 1); var e = f.view.ka, g = r(c.x * e, c.y * f.view.ra); this.s.beginPath(); this.s.arc(g.x, -g.y, d * e, 0, 2 * Math.PI, !1); this.s.closePath(); this.s.fill() }, gya: function(c, d, e) { if (null != c) { e || (e = 1); d = this.s; var g = f.view.ka, h = f.view.ra; d.beginPath(); for (var k = 0, m = c.length; k < m; k++) d.arc(c[k].x * g, -c[k].y * h, e * g, 0, 2 * Math.PI, !1); d.closePath(); d.fill() } }, Sn: function(c, d) { var e = this.s, g = f.view.ka, h = f.view.ra; e.beginPath(); e.moveTo(c.x * g, -c.y * h); e.lineTo(d.x * g, -d.y * h); e.closePath(); e.stroke() }, E_: function(c, d) { this.Sn(r(c.x, c.y), r(d.x, c.y)); this.Sn(r(d.x, c.y), r(d.x, d.y)); this.Sn(r(d.x, d.y), r(c.x, d.y)); this.Sn(r(c.x, d.y), r(c.x, c.y)) }, H_: function(c, d, e) { this.G_([c, r(d.x, c.y), d, r(c.x, d.y)], 4, e) }, Sf: function(c, d, e, g) { g = g || !1; if (null != c) { if (3 > c.length) throw Error("Polygon's point must greater than 2"); var h = c[0]; d = this.s; var k = f.view.ka, m = f.view.ra; d.beginPath(); d.moveTo(h.x * k, -h.y * m); for (var h = 1, n = c.length; h < n; h++) d.lineTo(c[h].x * k, -c[h].y * m); e && d.closePath(); g ? d.fill() : d.stroke() } }, G_: function(c, d, e) { this.wj(e.r, e.g, e.b, e.a); this.Sf(c, d, !0, !0) }, y_: function(c, d, e, g, h) { h = h || !1; g = this.s; var k = f.view.ka, m = f.view.ra; g.beginPath(); g.arc(0 | c.x * k, 0 | -(c.y * m), d * k, -e, -(e - 2 * Math.PI), !1); h && g.lineTo(0 | c.x * k, 0 | -(c.y * m)); g.stroke() }, D_: function(c, d, e, g) { for (var h = this.jV, k = h.length = 0, m = 0; m < g; m++) h.push(r(Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * e.x, Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * e.y)), k += 1 / g; h.push(r(e.x, e.y)); this.Sf(h, g + 1, !1, !1) }, z_: function(c, d, e, g, h) { for (var k = this.jV, m = k.length = 0, n = 0; n < h; n++) k.push(r(Math.pow(1 - m, 3) * c.x + 3 * Math.pow(1 - m, 2) * m * d.x + 3 * (1 - m) * m * m * e.x + m * m * m * g.x, Math.pow(1 - m, 3) * c.y + 3 * Math.pow(1 - m, 2) * m * d.y + 3 * (1 - m) * m * m * e.y + m * m * m * g.y)), m += 1 / h; k.push(r(g.x, g.y)); this.Sf(k, h + 1, !1, !1) }, x_: function(c, d) { this.px(c, 0.5, d) }, px: function(c, d, e) { f.s.strokeStyle = "rgba(255,255,255,1)"; var g = this.jV; g.length = 0; for (var h, k, m = 1 / c.length, n = 0; n < e + 1; n++) k = n / e, 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = f.Mka(f.tg(c, h - 1), f.tg(c, h - 0), f.tg(c, h + 1), f.tg(c, h + 2), d, k), g.push(h); this.Sf(g, e + 1, !1, !1) }, drawImage: function(c, d, e, g, h) { switch (arguments.length) { case 2: this.s.drawImage(c, d.x, -(d.y + c.height)); break; case 3: this.s.drawImage(c, d.x, -(d.y + e.height), e.width, e.height); break; case 5: this.s.drawImage(c, d.x, d.y, e.width, e.height, g.x, -(g.y + h.height), h.width, h.height); break; default: throw Error("Argument must be non-nil"); } }, jya: function(c, d, e) { c = c || this.s; d *= f.view.ka; e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b); c.fillStyle = e + ",1)"; var g = d / 10; c.beginPath(); c.moveTo(-d, d); c.lineTo(0, g); c.lineTo(d, d); c.lineTo(g, 0); c.lineTo(d, -d); c.lineTo(0, -g); c.lineTo(-d, -d); c.lineTo(-g, 0); c.lineTo(-d, d); c.closePath(); c.fill(); var h = c.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)"); c.fillStyle = h; c.beginPath(); c.arc(0, 0, d - g, 0, f.v6, !1); c.closePath(); c.fill() }, dya: function(c, d, e) { c = c || this.s; d *= f.view.ka; e = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b); var g = c.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)"); c.fillStyle = g; c.beginPath(); c.arc(0, 0, d, 0, f.v6, !1); c.closePath(); c.fill() }, fillText: function(c, d, e) { this.s.fillText(c, d, -e) }, wj: function(c, d, e, g) { this.s.fillStyle = "rgba(" + c + "," + d + "," + e + "," + g / 255 + ")"; this.s.strokeStyle = "rgba(" + c + "," + d + "," + e + "," + g / 255 + ")" }, C2: function() {}, Ju: function(c) { this.s.lineWidth = c * f.view.ka } }); f.gla = f.N.extend({ s: null, GF: !1, Ze: null, Qo: -1, Kj: null, zX: -1, yX: -1, ctor: function(c) { null == c && (c = f.s); if (!c instanceof WebGLRenderingContext) throw "Can't initialise DrawingPrimitiveWebGL. context need is WebGLRenderingContext"; this.s = c; this.Kj = new Float32Array([1, 1, 1, 1]) }, Sr: function() { this.GF || (this.Ze = f.xg.be(f.KT), this.Qo = this.s.getUniformLocation(this.Ze.Bx(), "u_color"), this.zX = this.s.getUniformLocation(this.Ze.Bx(), "u_pointSize"), this.GF = !0) }, eRa: function() { this.GF = !1 }, C_: function(c) { this.Sr(); var d = this.s; this.Ze.Ff(); this.Ze.zj(); f.wf(f.Gh); d.uniform4fv(this.Qo, this.Kj); this.Ze.bJ(this.zX, this.yX); var e = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, e); d.bufferData(d.ARRAY_BUFFER, new Float32Array([c.x, c.y]), d.STATIC_DRAW); d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0); d.drawArrays(d.POINTS, 0, 1); d.deleteBuffer(e); f.el() }, gya: function(c) { if (c && 0 != c.length) { this.Sr(); var d = this.s; this.Ze.Ff(); this.Ze.zj(); f.wf(f.Gh); d.uniform4fv(this.Qo, this.Kj); this.Ze.bJ(this.zX, this.yX); var e = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, e); d.bufferData(d.ARRAY_BUFFER, this.kN(c), d.STATIC_DRAW); d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0); d.drawArrays(d.POINTS, 0, c.length); d.deleteBuffer(e); f.el() } }, kN: function(c) { for (var d = new Float32Array(2 * c.length), e = 0; e < c.length; e++) d[2 * e] = c[e].x, d[2 * e + 1] = c[e].y; return d }, Sn: function(c, d) { this.Sr(); var e = this.s; this.Ze.Ff(); this.Ze.zj(); f.wf(f.Gh); e.uniform4fv(this.Qo, this.Kj); var g = e.createBuffer(); e.bindBuffer(e.ARRAY_BUFFER, g); e.bufferData(e.ARRAY_BUFFER, this.kN([c, d ]), e.STATIC_DRAW); e.vertexAttribPointer(f.Oc, 2, e.FLOAT, !1, 0, 0); e.drawArrays(e.LINES, 0, 2); e.deleteBuffer(g); f.el() }, E_: function(c, d) { this.Sn(r(c.x, c.y), r(d.x, c.y)); this.Sn(r(d.x, c.y), r(d.x, d.y)); this.Sn(r(d.x, d.y), r(c.x, d.y)); this.Sn(r(c.x, d.y), r(c.x, c.y)) }, H_: function(c, d, e) { this.G_([c, r(d.x, c.y), d, r(c.x, d.y)], 4, e) }, Sf: function(c, d, e) { this.Sr(); d = this.s; this.Ze.Ff(); this.Ze.zj(); f.wf(f.Gh); d.uniform4fv(this.Qo, this.Kj); var g = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, g); d.bufferData(d.ARRAY_BUFFER, this.kN(c), d.STATIC_DRAW); d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0); e ? d.drawArrays(d.LINE_LOOP, 0, c.length) : d.drawArrays(d.LINE_STRIP, 0, c.length); d.deleteBuffer(g); f.el() }, G_: function(c, d, e) { this.Sr(); e && this.wj(e.r, e.g, e.b, e.a); d = this.s; this.Ze.Ff(); this.Ze.zj(); f.wf(f.Gh); d.uniform4fv(this.Qo, this.Kj); e = d.createBuffer(); d.bindBuffer(d.ARRAY_BUFFER, e); d.bufferData(d.ARRAY_BUFFER, this.kN(c), d.STATIC_DRAW); d.vertexAttribPointer(f.Oc, 2, d.FLOAT, !1, 0, 0); d.drawArrays(d.TRIANGLE_FAN, 0, c.length); d.deleteBuffer(e); f.el() }, y_: function(c, d, e, g, h) { this.Sr(); var k = 1; h && k++; var m = 2 * Math.PI / g; if (h = new Float32Array(2 * (g + 2))) { for (var n = 0; n <= g; n++) { var p = n * m, s = d * Math.sin(p + e) + c.y; h[2 * n] = d * Math.cos(p + e) + c.x; h[2 * n + 1] = s } h[2 * (g + 1)] = c.x; h[2 * (g + 1) + 1] = c.y; c = this.s; this.Ze.Ff(); this.Ze.zj(); f.wf(f.Gh); c.uniform4fv(this.Qo, this.Kj); d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW); c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0); c.drawArrays(c.LINE_STRIP, 0, g + k); c.deleteBuffer(d); f.el() } }, D_: function(c, d, e, g) { this.Sr(); for (var h = new Float32Array(2 * (g + 1)), k = 0, m = 0; m < g; m++) h[2 * m] = Math.pow(1 - k, 2) * c.x + 2 * (1 - k) * k * d.x + k * k * e.x, h[2 * m + 1] = Math.pow(1 - k, 2) * c.y + 2 * (1 - k) * k * d.y + k * k * e.y, k += 1 / g; h[2 * g] = e.x; h[2 * g + 1] = e.y; c = this.s; this.Ze.Ff(); this.Ze.zj(); f.wf(f.Gh); c.uniform4fv(this.Qo, this.Kj); d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, h, c.STATIC_DRAW); c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0); c.drawArrays(c.LINE_STRIP, 0, g + 1); c.deleteBuffer(d); f.el() }, z_: function(c, d, e, g, h) { this.Sr(); for (var k = new Float32Array(2 * (h + 1)), m = 0, n = 0; n < h; n++) k[2 * n] = Math.pow(1 - m, 3) * c.x + 3 * Math.pow(1 - m, 2) * m * d.x + 3 * (1 - m) * m * m * e.x + m * m * m * g.x, k[2 * n + 1] = Math.pow(1 - m, 3) * c.y + 3 * Math.pow(1 - m, 2) * m * d.y + 3 * (1 - m) * m * m * e.y + m * m * m * g.y, m += 1 / h; k[2 * h] = g.x; k[2 * h + 1] = g.y; c = this.s; this.Ze.Ff(); this.Ze.zj(); f.wf(f.Gh); c.uniform4fv(this.Qo, this.Kj); d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, k, c.STATIC_DRAW); c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0); c.drawArrays(c.LINE_STRIP, 0, h + 1); c.deleteBuffer(d); f.el() }, x_: function(c, d) { this.px(c, 0.5, d) }, px: function(c, d, e) { this.Sr(); for (var g = new Float32Array(2 * (e + 1)), h, k, m = 1 / c.length, n = 0; n < e + 1; n++) k = n / e, 1 == k ? (h = c.length - 1, k = 1) : (h = 0 | k / m, k = (k - m * h) / m), h = f.Mka(f.tg(c, h - 1), f.tg(c, h), f.tg(c, h + 1), f.tg(c, h + 2), d, k), g[2 * n] = h.x, g[2 * n + 1] = h.y; c = this.s; this.Ze.Ff(); this.Ze.zj(); f.wf(f.Gh); c.uniform4fv(this.Qo, this.Kj); d = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, d); c.bufferData(c.ARRAY_BUFFER, g, c.STATIC_DRAW); c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0); c.drawArrays(c.LINE_STRIP, 0, e + 1); c.deleteBuffer(d); f.el() }, wj: function(c, d, e, g) { this.Kj[0] = c / 255; this.Kj[1] = d / 255; this.Kj[2] = e / 255; this.Kj[3] = g / 255 }, C2: function(c) { this.yX = c * f.Uc() }, Ju: function(c) { this.s.lineWidth && this.s.lineWidth(c) } }); f.U.AU = function() { var c = f.ia.prototype; c.F = f.q.prototype.F; c.Wj = function() { this.Hc = !0; var c = this.Iw, e = this.Jw; this.IN = "rgba(128,128,128," + this.nr + ")"; this.aM = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + ", 1)"; this.ON = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + ", 1)" }; c.Wb = f.q.prototype.Wb; c.J = f.q.prototype.J; c.hc = f.q.prototype.hc; c.I0 = function(c, e) { if (!f.q.prototype.j.call(this)) return !1; this.shaderProgram = f.xg.be(f.ia.Vpa); this.aZ(e, !1); this.string = c; return !0 }; c.iR = function(c) { var e = this.Jw; if (e.r != c.r || e.g != c.g || e.b != c.b) e.r = c.r, e.g = c.g, e.b = c.b, this.Wj(), this.Hc = !0 }; c.ma = function(c) { if (this.td && "" != this.td) { c = c || f.s; var e = this.fa; e && e.ie && (this.sd.Ff(), this.sd.zj(), f.Fm(this.B.src, this.B.ha), f.Ai(e), f.wf(f.tv), c.bindBuffer(c.ARRAY_BUFFER, this.oN), this.Yi && (c.bufferData(c.ARRAY_BUFFER, this.Vd.DO, c.STATIC_DRAW), this.Yi = !1), c.vertexAttribPointer(f.Oc, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, 24, 16), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.drawArrays(c.TRIANGLE_STRIP, 0, 4)); if (1 === f.ys) c = this.Vd, f.If.Sf([r(c.Z.k.x, c.Z.k.y), r(c.T.k.x, c.T.k.y), r(c.aa.k.x, c.aa.k.y), r(c.W.k.x, c.W.k.y)], 4, !0); else if (2 === f.ys) { c = this.EH().ea; var e = this.offsetX, g = this.offsetY; f.If.Sf([r(e, g), r(e + c.width, g), r(e + c.width, g + c.height), r(e, g + c.height)], 4, !0) } f.bl++ } }; c.sc = f.q.prototype.sc }; f.U.xT = function() { var c = f.ia.prototype; f.d(c, "color", c.$a, c.F); f.d(c, "opacity", c.vb, c.J); f.d(c, "string", c.qc, c.wa); f.d(c, "textAlign", c.bAa, c.jR); f.d(c, "verticalAlign", c.NBa, c.ER); f.d(c, "fontSize", c.Un, c.Qd); f.d(c, "fontName", c.Cp, c.de); f.d(c, "font", c.Qv, c.mr); f.d(c, "boundingWidth", c.vF, c.CN); f.d(c, "boundingHeight", c.pW, c.BN); f.d(c, "fillStyle", c.Hra, c.iR); f.d(c, "strokeStyle", c.gsa, c.Qua); f.d(c, "lineWidth", c.Sra, c.xua); f.d(c, "shadowOffsetX", c.csa, c.Gua); f.d(c, "shadowOffsetY", c.dsa, c.Hua); f.d(c, "shadowOpacity", c.esa, c.Iua); f.d(c, "shadowBlur", c.bsa, c.Fua) }; f.ia = f.q.extend({ ze: null, Xo: f.Bo, tp: f.zE, Rc: null, Sc: 0, td: "", qX: null, hA: !1, jn: null, Mg: !1, oh: null, nr: 0, Mt: 0, IN: null, om: !1, Iw: null, sr: 0, ON: null, Jw: null, aM: null, JY: 0, KY: 0, Hc: !1, EM: null, FM: null, S$: null, ta: "LabelTTF", ctor: function(c, d, e, g, h, k) { f.q.prototype.ctor.call(this); this.ze = t(0, 0); this.Xo = f.wK; this.tp = f.zE; this.Jb = !1; this.jn = ""; this.Rc = "Arial"; this.Mg = this.hA = !1; this.oh = r(0, 0); this.Mt = this.nr = 0; this.IN = "rgba(128, 128, 128, 0.5)"; this.om = !1; this.Iw = f.color(255, 255, 255, 255); this.sr = 0; this.ON = ""; this.Jw = f.color(255, 255, 255, 255); this.aM = "rgba(255,255,255,1)"; this.KY = this.JY = 0; this.Hc = !1; this.S$ = []; this.Wj(); d && d instanceof f.x5 ? this.I0(c, d) : f.ia.prototype.xf.call(this, c, d, e, g, h, k) }, j: function() { return this.xf(" ", this.Rc, this.Sc) }, $sa: function() { this.sW().font = this.jn }, NF: function(c) { return this.sW().measureText(c).width }, Eqa: function(c, d) { var e = this.NF(c), g = Math.floor(c.length * d / e), h = c.indexOf("\n"); if (0.8 * g >= h && 0 < h) return h + 1; if (e < d) return c.length; for (var e = !1, h = d + 1, k = -1, m = g, n, p = f.ia.Gqa, s = f.ia.bua, u = f.ia.Dqa, v = c.substr(g); n = p.exec(v);) { m += n[0].length; h = this.NF(c.substr(0, m)); if ("\n" == n[2] && h < d) { e = !0; k = m; break } if (h > d) { -1 != k && (e = !0); break } k = m; v = c.substr(m) } if (e) return k; v = c.substr(0, g); for (k = g; n = s.exec(v);) if (k = n[1].length, v = n[1], h = this.NF(v), h < d) { u.test(n[2]) && k++; break } return k || 1 }, description: function() { return "\x3ccc.LabelTTF | FontName \x3d" + this.Rc + " FontSize \x3d " + this.Sc.toFixed(1) + "\x3e" }, F: null, Wj: null, Wb: null, J: null, hc: null, K5a: function(c) { f.ja.prototype.hc.call(this, c); this.Wj() }, qc: function() { return this.td }, bAa: function() { return this.Xo }, NBa: function() { return this.tp }, Pza: function() { return t(this.ze.width, this.ze.height) }, Un: function() { return this.Sc }, Cp: function() { return this.Rc }, xf: function(c, d, e, g, h, k) { c = c ? c + "" : ""; e = e || 16; g = g || t(0, e); h = h || f.wK; k = k || f.zE; this.Jb = !1; this.ze = t(g.width, g.height); this.Rc = d || "Arial"; this.Xo = h; this.tp = k; this.Sc = e; this.jn = this.Sc + "px '" + d + "'"; this.Vo = f.ia.BE(d, this.Sc); this.string = c; this.Wj(); this.qO(); this.Hc = !1; return !0 }, I0: null, s4a: function(c) { c && this.aZ(c, !0) }, hWa: function() { return this.Ita(!1) }, L_: function(c, d, e, g) { e = e || 0.5; !1 === this.Mg && (this.Mg = !0); var h = this.oh; if (h && h.x != c || h.hj != d) h.x = c, h.y = d; this.nr != e && (this.nr = e); this.Wj(); this.Mt != g && (this.Mt = g); this.Hc = !0 }, csa: function() { return this.oh.x }, Gua: function(c) { !1 === this.Mg && (this.Mg = !0); this.oh.x != c && (this.oh.x = c, this.Hc = !0) }, dsa: function() { return this.oh.hj }, Hua: function(c) { !1 === this.Mg && (this.Mg = !0); this.oh.hj != c && (this.oh.hj = c, this.Hc = !0) }, kOa: function() { return r(this.oh.x, this.oh.y) }, SOa: function(c) { !1 === this.Mg && (this.Mg = !0); if (this.oh.x != c.x || this.oh.y != c.y) this.oh.x = c.x, this.oh.y = c.y, this.Hc = !0 }, esa: function() { return this.nr }, Iua: function(c) { !1 === this.Mg && (this.Mg = !0); this.nr != c && (this.nr = c, this.Wj(), this.Hc = !0) }, bsa: function() { return this.Mt }, Fua: function(c) { !1 === this.Mg && (this.Mg = !0); this.Mt != c && (this.Mt = c, this.Hc = !0) }, SQa: function() { this.Mg && (this.Mg = !1, this.Hc = !0) }, Sya: function(c, d) { !1 === this.om && (this.om = !0); var e = this.Iw; if (e.r !== c.r || e.g !== c.g || e.b !== c.b) e.r = c.r, e.g = c.g, e.b = c.b, this.Wj(); this.sr !== d && (this.sr = d || 0); this.Hc = !0 }, gsa: function() { return this.Iw }, Qua: function(c) { !1 === this.om && (this.om = !0); var d = this.Iw; if (d.r !== c.r || d.g !== c.g || d.b !== c.b) d.r = c.r, d.g = c.g, d.b = c.b, this.Wj(), this.Hc = !0 }, Sra: function() { return this.sr }, xua: function(c) { !1 === this.om && (this.om = !0); this.sr !== c && (this.sr = c || 0, this.Hc = !0) }, TQa: function() { this.om && (this.om = !1, this.Hc = !0) }, iR: null, Hra: function() { return this.Jw }, aZ: function(c, d) { c.PRa ? (this.ze.width = c.boundingWidth, this.ze.height = c.boundingHeight) : (this.ze.width = 0, this.ze.height = 0); this.Xo = c.textAlign; this.tp = c.verticalAlign; this.Rc = c.fontName; this.Sc = c.fontSize || 12; this.jn = this.Sc + "px '" + this.Rc + "'"; this.Vo = f.ia.BE(this.Rc, this.Sc); c.cia && this.L_(c.shadowOffsetX, c.shadowOffsetY, c.shadowOpacity, c.shadowBlur); c.m3 && this.Sya(c.strokeStyle, c.lineWidth); this.iR(c.fillStyle); d && this.qO() }, Ita: function(c) { var d = new f.x5; c ? (d.fontSize = this.Sc, d.boundingWidth = f.Uc() * this.ze.width, d.boundingHeight = f.Uc() * this.ze.height) : (d.fontSize = this.Sc, d.boundingWidth = this.ze.width, d.boundingHeight = this.ze.height); d.fontName = this.Rc; d.textAlign = this.Xo; d.verticalAlign = this.tp; if (this.om) { d.m3 = !0; var e = this.Iw; d.strokeStyle = f.color(e.r, e.g, e.b); d.lineWidth = this.sr } else d.m3 = !1; this.Mg ? (d.cia = !0, d.shadowBlur = this.Mt, d.shadowOpacity = this.nr, d.shadowOffsetX = (c ? f.Uc() : 1) * this.oh.x, d.shadowOffsetY = (c ? f.Uc() : 1) * this.oh.y) : d.Mg = !1; c = this.Jw; d.fillStyle = f.color(c.r, c.g, c.b); return d }, Vo: 18, wa: function(c) { c = String(c); this.qX != c && (this.qX = c + "", this.oO(), this.Hc = !0) }, oO: function() { this.td = this.qX }, jR: function(c) { c !== this.Xo && (this.Xo = c, this.Hc = !0) }, ER: function(c) { c != this.tp && (this.tp = c, this.Hc = !0) }, gR: function(c) { if (c.width != this.ze.width || c.height != this.ze.height) this.ze = c, this.oO(), this.Hc = !0 }, vF: function() { return this.ze.width }, CN: function(c) { c != this.ze.width && (this.ze.width = c, this.oO(), this.Hc = !0) }, pW: function() { return this.ze.height }, BN: function(c) { c != this.ze.height && (this.ze.height = c, this.oO(), this.Hc = !0) }, Qd: function(c) { this.Sc !== c && (this.Sc = c, this.jn = c + "px '" + this.Rc + "'", this.Vo = f.ia.BE(this.Rc, c), this.Hc = !0) }, de: function(c) { this.Rc && this.Rc != c && (this.Rc = c, this.jn = this.Sc + "px '" + c + "'", this.Vo = f.ia.BE(c, this.Sc), this.Hc = !0) }, Qv: function() { return this.jn }, mr: function(c) { var d = f.ia.eM.exec(c); d && (this.Sc = parseInt(d[1]), this.Rc = d[2], this.jn = c, this.Vo = f.ia.BE(this.Rc, this.Sc), this.Hc = !0) }, gra: function(c) { if (c) { var d = this.JY, e = this.KY, g = this.m.height - e, h = this.tp, k = this.Xo, m = this.Vo, n = this.sr; c.setTransform(1, 0, 0, 1, 0 + 0.5 * d, g + 0.5 * e); c.font != this.jn && (c.font = this.jn); c.fillStyle = this.aM; var p = e = 0, s = this.om; s && (c.lineWidth = 2 * n, c.strokeStyle = this.ON); this.Mg && (n = this.oh, c.shadowColor = this.IN, c.shadowOffsetX = n.x, c.shadowOffsetY = -n.y, c.shadowBlur = this.Mt); c.textBaseline = f.ia.kva[h]; c.textAlign = f.ia.jva[k]; d = this.m.width - d; e = k === f.q7 ? e + d : k === f.Bo ? e + d / 2 : e + 0; if (this.hA) for (k = this.rr.length, h === f.j8 ? p = m + g - m * k : h === f.wU && (p = m / 2 + (g - m * k) / 2), h = 0; h < k; h++) d = this.rr[h], n = -g + m * h + p, s && c.strokeText(d, e, n), c.fillText(d, e, n); else h !== f.j8 && (p = h === f.zE ? p - g : p - 0.5 * g), s && c.strokeText(this.td, e, p), c.fillText(this.td, e, p) } }, sW: function() { if (this.FM) return this.FM; if (!this.EM) { var c = f.fd("canvas"), d = new f.Pa; d.sh(c); this.texture = d; this.EM = c } return this.FM = this.EM.getContext("2d") }, pO: function() { var c = this.ze.width, d, e, g = this.S$; g.length = 0; this.hA = !1; this.$sa(); if (0 !== c) { var h = this.td; this.rr = []; d = 0; for (e = this.td.length; d < e;) { var k = this.Eqa(h.substr(d), c); this.rr.push(h.substr(d, k)); d += k } } else for (this.rr = this.td.split("\n"), d = 0, e = this.rr.length; d < e; d++) g.push(this.NF(this.rr[d])); 0 < this.rr.length && (this.hA = !0); e = d = 0; this.om && (d = e = 2 * this.sr); this.Mg && (h = this.oh, d += 2 * Math.abs(h.x), e += 2 * Math.abs(h.y)); c = 0 === c ? this.hA ? t(0 | Math.max.apply(Math, g) + d, 0 | this.Vo * this.rr.length + e) : t(0 | this.NF(this.td) + d, 0 | this.Vo + e) : 0 === this.ze.height ? this.hA ? t(0 | c + d, 0 | this.Vo * this.rr.length + e) : t(0 | c + d, 0 | this.Vo + e) : t(0 | c + d, 0 | this.ze.height + e); this.Ga(c); this.JY = d; this.KY = e; g = this.Eb; this.Qb.x = 0.5 * d + (c.width - d) * g.x; this.Qb.y = 0.5 * e + (c.height - e) * g.y }, e: function() { this.Hc && this.pO(); return f.q.prototype.e.call(this) }, lf: function() { this.Hc && this.pO(); return f.q.prototype.lf.call(this) }, Gg: function() { this.Hc && this.pO(); return f.q.prototype.Gg.call(this) }, qO: function() { var c = this.sW(), d = this.EM, e = this.m; if (0 === this.td.length) return d.width = 1, d.height = e.height, this.sc(x(0, 0, 1, e.height)), !0; c.font = this.jn; this.pO(); var g = e.width, e = e.height, h = d.width == g && d.height == e; d.width = g; d.height = e; h && c.clearRect(0, 0, g, e); this.gra(c); this.fa && this.fa.$d(); this.sc(x(0, 0, g, e)); return !0 }, I: function(c) { this.td && "" != this.td && (this.Hc && (this.Hc = !1, this.qO()), f.q.prototype.I.call(this, c || f.s)) }, ma: null, Yaa: function(c) { var d = this.Aa ? this.textureAtlas.texture : this.fa; if (d) { var e = d.pixelsWidth, g = d.pixelsHeight, h, k = this.Vd; this.pf ? (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.height - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.width - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.height) / e, h = c.y / g, c = (c.y + c.width) / g), this.Fb && (g = h, h = c, c = g), this.Hb && (g = d, d = e, e = g), k.T.t.Da = d, k.T.t.ga = h, k.aa.t.Da = d, k.aa.t.ga = c, k.Z.t.Da = e, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = c) : (f.Ey ? (d = (2 * c.x + 1) / (2 * e), e = d + (2 * c.width - 2) / (2 * e), h = (2 * c.y + 1) / (2 * g), c = h + (2 * c.height - 2) / (2 * g)) : (d = c.x / e, e = (c.x + c.width) / e, h = c.y / g, c = (c.y + c.height) / g), this.Fb && (g = d, d = e, e = g), this.Hb && (g = h, h = c, c = g), k.T.t.Da = d, k.T.t.ga = c, k.aa.t.Da = e, k.aa.t.ga = c, k.Z.t.Da = d, k.Z.t.ga = h, k.W.t.Da = e, k.W.t.ga = h); this.Yi = !0 } } }); f.K === f.fb ? (q = f.ia.prototype, q.F = function(c) { f.ja.prototype.F.call(this, c); this.Wj() }, q.Wj = function() { this.Hc = !0; var c = this.Ab, d = this.kb, e = this.Iw, g = this.Jw; this.IN = "rgba(" + (0 | 0.5 * c.r) + "," + (0 | 0.5 * c.g) + "," + (0 | 0.5 * c.b) + "," + this.nr + ")"; this.aM = "rgba(" + (0 | c.r / 255 * g.r) + "," + (0 | c.g / 255 * g.g) + "," + (0 | c.b / 255 * g.b) + ", " + d / 255 + ")"; this.ON = "rgba(" + (0 | c.r / 255 * e.r) + "," + (0 | c.g / 255 * e.g) + "," + (0 | c.b / 255 * e.b) + ", " + d / 255 + ")" }, q.Wb = function(c) { f.ja.prototype.Wb.call(this, c); this.Wj() }, q.J = function(c) { this.Ib !== c && (f.q.prototype.J.call(this, c), this.Wj(), this.Hc = !0) }, q.hc = f.q.prototype.hc, q.I0 = function(c, d) { this.aZ(d, !1); this.string = c; return !0 }, q.iR = function(c) { var d = this.Jw; if (d.r != c.r || d.g != c.g || d.b != c.b) d.r = c.r, d.g = c.g, d.b = c.b, this.Wj(), this.Hc = !0 }, q.ma = f.q.prototype.ma, q.sc = function(c, d, e) { this.pf = d || !1; this.Ga(e || c); this.c3(c); d = this.YA; d.x = c.x; d.y = c.y; d.width = c.width; d.height = c.height; d.$C = !(0 === d.width || 0 === d.height || 0 > d.x || 0 > d.y); c = this.Ln; this.Fb && (c.x = -c.x); this.Hb && (c.y = -c.y); this.od.x = c.x + (this.m.width - this.Ta.width) / 2; this.od.y = c.y + (this.m.height - this.Ta.height) / 2; this.Aa && (this.dirty = !0) }, q = null) : (f.assert("function" === typeof f.U.AU, f.l.Hf, "LabelTTFWebGL.js"), f.U.AU(), delete f.U.AU); f.assert("function" === typeof f.U.xT, f.l.Hf, "LabelTTFPropertyDefine.js"); f.U.xT(); delete f.U.xT; f.ia.jva = ["left", "center", "right"]; f.ia.kva = ["top", "middle", "bottom"]; f.ia.Gqa = /(.+?)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/; f.ia.bua = /(.*)([\s\n\r\-\/\\\:]|[\u4E00-\u9FA5]|[\uFE30-\uFFA0])/; f.ia.Dqa = /[\s\-\/\\\:]/; f.ia.eM = /^(\d+)px\s+['"]?([\w\s\d]+)['"]?$/; f.ia.create = function(c, d, e, g, h, k) { return new f.ia(c, d, e, g, h, k) }; f.ia.Vpa = f.Hpa ? f.zo : f.JT; f.ia.Ks = f.fd("div"); f.ia.Ks.style.fontFamily = "Arial"; f.ia.Ks.style.position = "absolute"; f.ia.Ks.style.left = "-100px"; f.ia.Ks.style.top = "-100px"; f.ia.Ks.style.lineHeight = "normal"; document.body ? document.body.appendChild(f.ia.Ks) : f.ub(window, "load", function() { this.removeEventListener("load", arguments.callee, !1); document.body.appendChild(f.ia.Ks) }, !1); f.ia.BE = function(c, d) { var e = f.ia.r8[c + "." + d]; if (0 < e) return e; var g = f.ia.Ks; g.innerHTML = "ajghl~!"; g.style.fontFamily = c; g.style.fontSize = d + "px"; e = g.clientHeight; f.ia.r8[c + "." + d] = e; g.innerHTML = ""; return e }; f.ia.r8 = {}; f.Ola = f.N.extend({ bf: null, target: null, Zw: 0, $j: null, mx: !1, paused: !1, DP: null, ctor: function() { this.bf = []; this.target = null; this.Zw = 0; this.$j = null; this.paused = this.mx = !1; this.DP = null } }); f.M3 = f.N.extend({ ln: null, bz: null, eh: null, So: !1, OOa: function(c, d) { for (var e = 0; e < c.length; e++) if (d == c[e].target) return c[e]; return null }, ctor: function() { this.ln = {}; this.bz = []; this.eh = null; this.So = !1 }, Gva: function(c, d, e) { if (!c) throw "cc.ActionManager.addAction(): action must be non-null"; if (!d) throw "cc.ActionManager.addAction(): action must be non-null"; var g = this.ln[d.yb]; g || (g = new f.Ola, g.paused = e, g.target = d, this.ln[d.yb] = g, this.bz.push(g)); this.aqa(g); g.bf.push(c); c.R(d) }, V0a: function() { for (var c = this.bz, d = 0; d < c.length; d++) { var e = c[d]; e && this.iga(e.target, !0) } }, iga: function(c, d) { if (null != c) { var e = this.ln[c.yb]; e && (-1 === e.bf.indexOf(e.$j) || e.mx || (e.mx = !0), e.bf.length = 0, this.eh != e || d ? this.HV(e) : this.So = !0) } }, hga: function(c) { if (null != c) { var d = this.ln[c.originalTarget.yb]; if (d) for (var e = 0; e < d.bf.length; e++) { if (d.bf[e] == c) { d.bf.splice(e, 1); break } } else f.log(f.l.aja) } }, IFa: function(c, d) { c == f.uy && f.log(f.l.N3); f.assert(d, f.l.N3); var e = this.ln[d.yb]; if (e) for (var g = e.bf.length, h = 0; h < g; ++h) { var k = e.bf[h]; if (k && k.Em() === c && k.originalTarget == d) { this.Tta(h, e); break } } }, eP: function(c, d) { c == f.uy && f.log(f.l.Zia); var e = this.ln[d.yb]; if (e) { if (null != e.bf) for (var g = 0; g < e.bf.length; ++g) { var h = e.bf[g]; if (h && h.Em() === c) return h } f.log(f.l.$ia, c) } return null }, YDa: function(c) { return (c = this.ln[c.yb]) ? c.bf ? c.bf.length : 0 : 0 }, as: function(c) { (c = this.ln[c.yb]) && (c.paused = !0) }, Km: function(c) { (c = this.ln[c.yb]) && (c.paused = !1) }, h0a: function() { for (var c = [], d = this.bz, e = 0; e < d.length; e++) { var g = d[e]; g && !g.paused && (g.paused = !0, c.push(g.target)) } return c }, cGa: function(c) { if (c) for (var d = 0; d < c.length; d++) c[d] && this.Km(c[d]) }, A0a: function() { f.Q.Dm().qJ(this) }, Tta: function(c, d) { d.bf[c] != d.$j || d.mx || (d.mx = !0); d.bf.splice(c, 1); d.Zw >= c && d.Zw--; 0 == d.bf.length && (this.eh == d ? this.So = !0 : this.HV(d)) }, HV: function(c) { c && (delete this.ln[c.target.yb], f.Ld(this.bz, c), c.bf = null, c.target = null) }, aqa: function(c) { null == c.bf && (c.bf = []) }, update: function(c) { for (var d = this.bz, e, g = 0; g < d.length; g++) { e = this.eh = d[g]; if (!e.paused) for (e.Zw = 0; e.Zw < e.bf.length; e.Zw++) if (e.$j = e.bf[e.Zw], e.$j) { e.mx = !1; e.$j.step(c * (e.$j.tG ? e.$j.ti : 1)); if (e.mx) e.$j = null; else if (e.$j.gk()) { e.$j.stop(); var h = e.$j; e.$j = null; this.hga(h) } e.$j = null } this.So && 0 === e.bf.length && this.HV(e) } } }); f.FZa = Number; f.vYa = Number; f.wYa = Number; f.Ly = 0; f.My = 1; f.a1 = 3.141592; f.vDa = 0.017453; f.wDa = 57.295779; f.Bb = 0.015625; f.yf = function(c) { return c * c }; f.bI = function(c) { return c * f.vDa }; f.AZa = function(c) { return c * f.wDa }; f.bQ = function(c, d) { return c < d ? c : d }; f.aQ = function(c, d) { return c > d ? c : d }; f.uYa = function(c, d) { return c + f.Bb > d && c - f.Bb < d }; f.ao = function() { this.y = this.x = 0 }; f.JZa = function(c, d, e) { c.x = d; c.y = e; return c }; f.dQ = function(c) { return Math.sqrt(f.yf(c.x) + f.yf(c.y)) }; f.KZa = function(c) { return f.yf(c.x) + f.yf(c.y) }; f.CDa = function(c, d) { var e = 1 / f.dQ(d), g = new f.ao; g.x = d.x * e; g.y = d.y * e; c.x = g.x; c.y = g.y }; f.GZa = function(c, d, e) { c.x = d.x + e.x; c.y = d.y + e.y; return c }; f.IZa = function(c, d) { return c.x * d.x + c.y * d.y }; f.eQ = function(c, d, e) { c.x = d.x - e.x; c.y = d.y - e.y; return c }; f.MZa = function(c, d, e) { var g = new f.ao; g.x = d.x * e.c[0] + d.y * e.c[3] + e.c[6]; g.y = d.x * e.c[1] + d.y * e.c[4] + e.c[7]; c.x = g.x; c.y = g.y; return c }; f.NZa = function() { return null }; f.LZa = function(c, d, e) { c.x = d.x * e; c.y = d.y * e; return c }; f.HZa = function(c, d) { return c.x < d.x + f.Bb && c.x > d.x - f.Bb && c.y < d.y + f.Bb && c.y > d.y - f.Bb }; f.cd = function(c, d, e) { this.x = c || 0; this.y = d || 0; this.z = e || 0 }; f.cC = function(c, d, e, g) { if (!c) return new f.cd(d, e, g); c.x = d; c.y = e; c.z = g; return c }; f.$ea = function(c) { return Math.sqrt(f.yf(c.x) + f.yf(c.y) + f.yf(c.z)) }; f.afa = function(c) { return f.yf(c.x) + f.yf(c.y) + f.yf(c.z) }; f.hk = function(c, d) { var e = 1 / f.$ea(d); c.x = d.x * e; c.y = d.y * e; c.z = d.z * e }; f.vu = function(c, d, e) { c.x = d.y * e.z - d.z * e.y; c.y = d.z * e.x - d.x * e.z; c.z = d.x * e.y - d.y * e.x }; f.c1 = function(c, d) { return c.x * d.x + c.y * d.y + c.z * d.z }; f.Zea = function(c, d, e) { c.x = d.x + e.x; c.y = d.y + e.y; c.z = d.z + e.z }; f.e1 = function(c, d, e) { c.x = d.x - e.x; c.y = d.y - e.y; c.z = d.z - e.z }; f.SZa = function(c, d, e) { c.x = d.x * e.c[0] + d.y * e.c[4] + d.z * e.c[8] + e.c[12]; c.y = d.x * e.c[1] + d.y * e.c[5] + d.z * e.c[9] + e.c[13]; c.z = d.x * e.c[2] + d.y * e.c[6] + d.z * e.c[10] + e.c[14]; return c }; f.TZa = function(c, d, e) { c.x = d.x * e.c[0] + d.y * e.c[4] + d.z * e.c[8]; c.y = d.x * e.c[1] + d.y * e.c[5] + d.z * e.c[9]; c.z = d.x * e.c[2] + d.y * e.c[6] + d.z * e.c[10]; return c }; f.bfa = function(c, d, e) { var g = new f.cfa, h = new f.cfa; f.DDa(h, d.x, d.y, d.z); f.dfa(g, h, e); c.x = g.x / g.da; c.y = g.y / g.da; c.z = g.z / g.da }; f.d1 = function(c, d, e) { c.x = d.x * e; c.y = d.y * e; c.z = d.z * e; return c }; f.OZa = function(c, d) { return c.x < d.x + f.Bb && c.x > d.x - f.Bb && c.y < d.y + f.Bb && c.y > d.y - f.Bb && c.z < d.z + f.Bb && c.z > d.z - f.Bb ? 1 : 0 }; f.PZa = function(c, d, e) { d = new f.cd(d.x - e.c[12], d.y - e.c[13], d.z - e.c[14]); c.x = d.x * e.c[0] + d.y * e.c[1] + d.z * e.c[2]; c.y = d.x * e.c[4] + d.y * e.c[5] + d.z * e.c[6]; c.z = d.x * e.c[8] + d.y * e.c[9] + d.z * e.c[10]; return c }; f.QZa = function(c, d, e) { c.x = d.x * e.c[0] + d.y * e.c[1] + d.z * e.c[2]; c.y = d.x * e.c[4] + d.y * e.c[5] + d.z * e.c[6]; c.z = d.x * e.c[8] + d.y * e.c[9] + d.z * e.c[10]; return c }; f.cI = function(c, d) { c != d && (c.x = d.x, c.y = d.y, c.z = d.z) }; f.UZa = function(c) { c.x = 0; c.y = 0; c.z = 0; return c }; f.RZa = function(c) { if (!c) return null; var d = new Float32Array(3); d[0] = c.x; d[1] = c.y; d[2] = c.z; return d }; f.cfa = function() { this.da = this.z = this.y = this.x = 0 }; f.DDa = function(c, d, e, g) { c.x = d; c.y = e; c.z = g; c.da = 1 }; f.VZa = function(c, d, e) { c.x = d.x + e.x; c.y = d.y + e.y; c.z = d.z + e.z; c.da = d.da + e.da; return c }; f.YZa = function(c, d) { return c.x * d.x + c.y * d.y + c.z * d.z + c.da * d.da }; f.EDa = function(c) { return Math.sqrt(f.yf(c.x) + f.yf(c.y) + f.yf(c.z) + f.yf(c.da)) }; f.ZZa = function(c) { return f.yf(c.x) + f.yf(c.y) + f.yf(c.z) + f.yf(c.da) }; f.$Za = function(c) { return c }; f.FDa = function(c, d) { var e = 1 / f.EDa(d); c.x *= e; c.y *= e; c.z *= e; c.da *= e }; f.a_a = function(c, d, e) { f.FDa(c, d); c.x *= e; c.y *= e; c.z *= e; c.da *= e; return c }; f.b_a = function(c, d, e) { c.x = d.x - e.x; c.y = d.y - e.y; c.z = d.z - e.z; c.da = d.da - e.da; return c }; f.dfa = function(c, d, e) { c.x = d.x * e.c[0] + d.y * e.c[4] + d.z * e.c[8] + d.da * e.c[12]; c.y = d.x * e.c[1] + d.y * e.c[5] + d.z * e.c[9] + d.da * e.c[13]; c.z = d.x * e.c[2] + d.y * e.c[6] + d.z * e.c[10] + d.da * e.c[14]; c.da = d.x * e.c[3] + d.y * e.c[7] + d.z * e.c[11] + d.da * e.c[15] }; f.d_a = function(c, d, e, g, h, k) { for (var m = 0; m < k;) f.dfa(c + m * d, e + m * g, h), ++m; return c }; f.WZa = function(c, d) { return c.x < d.x + f.Bb && c.x > d.x - f.Bb && c.y < d.y + f.Bb && c.y > d.y - f.Bb && c.z < d.z + f.Bb && c.z > d.z - f.Bb && c.da < d.da + f.Bb && c.da > d.da - f.Bb }; f.XZa = function(c, d) { if (c == d) return f.log("destVec and srcVec are same object"), c; c.x = d.x; c.y = d.y; c.z = d.z; c.da = d.da; return c }; f.c_a = function(c) { if (!c) return null; var d = new Float32Array(4); d[0] = c.x; d[1] = c.y; d[2] = c.z; d[3] = c.da; return d }; f.BZa = function(c) { this.start = c || new f.ao; this.start = c || new f.ao }; f.CZa = function(c, d, e, g, h) { c.start.x = d; c.start.y = e; c.dir.x = g; c.dir.y = h }; f.b1 = function(c, d, e, g) { var h = c.start.x, k = c.start.y, m = c.start.x + c.dir.x; c = c.start.y + c.dir.y; var n = d.x, p = d.y, s = e.x, u = e.y, v = (u - p) * (m - h) - (s - n) * (c - k); if (v > -f.Bb && v < f.Bb) return f.Ly; p = ((s - n) * (k - p) - (u - p) * (h - n)) / v; n = h + p * (m - h); p = k + p * (c - k); if (n < f.bQ(d.x, e.x) - f.Bb || n > f.aQ(d.x, e.x) + f.Bb || p < f.bQ(d.y, e.y) - f.Bb || p > f.aQ(d.y, e.y) + f.Bb || n < f.bQ(h, m) - f.Bb || n > f.aQ(h, m) + f.Bb || p < f.bQ(k, c) - f.Bb || p > f.aQ(k, c) + f.Bb) return f.Ly; g.x = n; g.y = p; return f.My }; f.WZ = function(c, d, e) { var g = new f.ao; f.eQ(g, d, c); e.x = -g.y; e.y = g.x; f.CDa(e, e) }; f.EZa = function(c, d, e, g, h, k) { var m = new f.ao, n = new f.ao, p = new f.ao, s = 1E4, u = f.Ly, v; f.b1(c, d, e, m) && (v = new f.ao, u = f.My, v = f.dQ(f.eQ(v, m, c.start)), v < s && (n.x = m.x, n.y = m.y, s = v, f.WZ(d, e, p))); f.b1(c, e, g, m) && (v = new f.ao, u = f.My, v = f.dQ(f.eQ(v, m, c.start)), v < s && (n.x = m.x, n.y = m.y, s = v, f.WZ(e, g, p))); f.b1(c, g, d, m) && (v = new f.ao, u = f.My, v = f.dQ(f.eQ(v, m, c.start)), v < s && (n.x = m.x, n.y = m.y, f.WZ(g, d, p))); u && (h.x = n.x, h.y = n.y, k && (k.x = p.x, k.y = p.y)); return u }; f.DZa = function() { f.log("cc.kmRay2IntersectCircle() has not been implemented.") }; var Float32Array = Float32Array || Array; f.$P = function() { this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0]) }; f.EYa = function(c, d) { for (var e = 0; 9 > e; e++) c.c[e] = d; return c }; f.oDa = function(c, d) { c.c[0] = d.c[4] * d.c[8] - d.c[5] * d.c[7]; c.c[1] = d.c[2] * d.c[7] - d.c[1] * d.c[8]; c.c[2] = d.c[1] * d.c[5] - d.c[2] * d.c[4]; c.c[3] = d.c[5] * d.c[6] - d.c[3] * d.c[8]; c.c[4] = d.c[0] * d.c[8] - d.c[2] * d.c[6]; c.c[5] = d.c[2] * d.c[3] - d.c[0] * d.c[5]; c.c[6] = d.c[3] * d.c[7] - d.c[4] * d.c[6]; c.c[8] = d.c[0] * d.c[4] - d.c[1] * d.c[3] }; f.Rea = function(c) { c.c[1] = c.c[2] = c.c[3] = c.c[5] = c.c[6] = c.c[7] = 0; c.c[0] = c.c[4] = c.c[8] = 1 }; f.FYa = function(c, d, e) { var g = new f.$P; if (0 === d) return null; d = 1 / d; f.oDa(g, e); f.pDa(c, g, d); return c }; f.$P.GW = new Float32Array([1, 0, 0, 0, 1, 0, 0, 0, 1]); f.GYa = function(c) { for (var d = 0; 9 > d; d++) if (f.$P.GW[d] !== c.c[d]) return !1; return !0 }; f.RYa = function(c, d) { var e, g; for (e = 0; 3 > e; ++e) for (g = 0; 3 > g; ++g) c.c[3 * e + g] = d.c[3 * g + e]; return c }; f.DYa = function(c) { var d; d = c.c[0] * c.c[4] * c.c[8] + c.c[1] * c.c[5] * c.c[6] + c.c[2] * c.c[3] * c.c[7]; return d -= c.c[2] * c.c[4] * c.c[6] + c.c[0] * c.c[5] * c.c[7] + c.c[1] * c.c[3] * c.c[8] }; f.HYa = function(c, d, e) { d = d.c; e = e.c; c.c[0] = d[0] * e[0] + d[3] * e[1] + d[6] * e[2]; c.c[1] = d[1] * e[0] + d[4] * e[1] + d[7] * e[2]; c.c[2] = d[2] * e[0] + d[5] * e[1] + d[8] * e[2]; c.c[3] = d[0] * e[3] + d[3] * e[4] + d[6] * e[5]; c.c[4] = d[1] * e[3] + d[4] * e[4] + d[7] * e[5]; c.c[5] = d[2] * e[3] + d[5] * e[4] + d[8] * e[5]; c.c[6] = d[0] * e[6] + d[3] * e[7] + d[6] * e[8]; c.c[7] = d[1] * e[6] + d[4] * e[7] + d[7] * e[8]; c.c[8] = d[2] * e[6] + d[5] * e[7] + d[8] * e[8]; return c }; f.pDa = function(c, d, e) { for (var g = 0; 9 > g; g++) c.c[g] = d.c[g] * e }; f.JYa = function(c, d, e) { var g = Math.cos(e); e = Math.sin(e); c.c[0] = g + d.x * d.x * (1 - g); c.c[1] = d.z * e + d.y * d.x * (1 - g); c.c[2] = -d.y * e + d.z * d.x * (1 - g); c.c[3] = -d.z * e + d.x * d.y * (1 - g); c.c[4] = g + d.y * d.y * (1 - g); c.c[5] = d.x * e + d.z * d.y * (1 - g); c.c[6] = d.y * e + d.x * d.z * (1 - g); c.c[7] = -d.x * e + d.y * d.z * (1 - g); c.c[8] = g + d.z * d.z * (1 - g); return c }; f.CYa = function(c, d) { if (c == d) return f.log("cc.kmMat3Assign(): pOut equals pIn"), c; for (var e = 0; 9 > e; e++) c.c[e] = d.c[e]; return c }; f.BYa = function(c, d) { if (c == d) return !0; for (var e = 0; 9 > e; ++e) if (!(c.c[e] + f.Bb > d.c[e] && c.c[e] - f.Bb < d.c[e])) return !1; return !0 }; f.MYa = function(c, d) { c.c[0] = 1; c.c[1] = 0; c.c[2] = 0; c.c[3] = 0; c.c[4] = Math.cos(d); c.c[5] = Math.sin(d); c.c[6] = 0; c.c[7] = -Math.sin(d); c.c[8] = Math.cos(d); return c }; f.NYa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = 0; c.c[2] = -Math.sin(d); c.c[3] = 0; c.c[4] = 1; c.c[5] = 0; c.c[6] = Math.sin(d); c.c[7] = 0; c.c[8] = Math.cos(d); return c }; f.OYa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = -Math.sin(d); c.c[2] = 0; c.c[3] = Math.sin(d); c.c[4] = Math.cos(d); c.c[5] = 0; c.c[6] = 0; c.c[7] = 0; c.c[8] = 1; return c }; f.IYa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = Math.sin(d); c.c[2] = 0; c.c[3] = -Math.sin(d); c.c[4] = Math.cos(d); c.c[5] = 0; c.c[6] = 0; c.c[7] = 0; c.c[8] = 1; return c }; f.PYa = function(c, d, e) { f.Rea(c); c.c[0] = d; c.c[4] = e; return c }; f.QYa = function(c, d, e) { f.Rea(c); c.c[6] = d; c.c[7] = e; return c }; f.KYa = function(c, d) { if (!d || !c) return null; c.c[0] = 1 - 2 * (d.y * d.y + d.z * d.z); c.c[1] = 2 * (d.x * d.y - d.da * d.z); c.c[2] = 2 * (d.x * d.z + d.da * d.y); c.c[3] = 2 * (d.x * d.y + d.da * d.z); c.c[4] = 1 - 2 * (d.x * d.x + d.z * d.z); c.c[5] = 2 * (d.y * d.z - d.da * d.x); c.c[6] = 2 * (d.x * d.z - d.da * d.y); c.c[7] = 2 * (d.y * d.z + d.da * d.x); c.c[8] = 1 - 2 * (d.x * d.x + d.y * d.y); return c }; f.LYa = function(c, d, e) { f.Xea(void 0, e); f.Yea(void 0, c); return c }; f.Ma = function() { this.c = new Float32Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]) }; f.UYa = function(c, d) { c.c[0] = c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[5] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[10] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = c.c[15] = d }; f.Ex = function(c) { c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = 0; c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1 }; f.Ma.Mk = function(c, d, e) { return c.c[d + 4 * e] }; f.Ma.Kt = function(c, d, e, g) { c.c[d + 4 * e] = g }; f.Ma.Tt = function(c, d, e, g, h) { var k = f.Ma.Mk(c, d, e); f.Ma.Kt(c, d, e, f.Ma.Mk(c, g, h)); f.Ma.Kt(c, g, h, k) }; f.Ma.xra = function(c, d) { var e, g = 0, h = 0, k, m, n, p = [0, 0, 0, 0], s = [0, 0, 0, 0], u = [0, 0, 0, 0]; for (e = 0; 4 > e; e++) { for (k = n = 0; 4 > k; k++) if (1 != u[k]) for (m = 0; 4 > m; m++) 0 == u[m] && Math.abs(f.Ma.Mk(c, k, m)) >= n && (n = Math.abs(f.Ma.Mk(c, k, m)), h = k, g = m); ++u[g]; if (h != g) { for (k = 0; 4 > k; k++) f.Ma.Tt(c, h, k, g, k); for (k = 0; 4 > k; k++) f.Ma.Tt(d, h, k, g, k) } s[e] = h; p[e] = g; if (0 == f.Ma.Mk(c, g, g)) return f.Ly; m = 1 / f.Ma.Mk(c, g, g); f.Ma.Kt(c, g, g, 1); for (k = 0; 4 > k; k++) f.Ma.Kt(c, g, k, f.Ma.Mk(c, g, k) * m); for (k = 0; 4 > k; k++) f.Ma.Kt(d, g, k, f.Ma.Mk(d, g, k) * m); for (m = 0; 4 > m; m++) if (m != g) { n = f.Ma.Mk(c, m, g); f.Ma.Kt(c, m, g, 0); for (k = 0; 4 > k; k++) f.Ma.Kt(c, m, k, f.Ma.Mk(c, m, k) - f.Ma.Mk(c, g, k) * n); for (k = 0; 4 > k; k++) f.Ma.Kt(d, m, k, f.Ma.Mk(c, m, k) - f.Ma.Mk(d, g, k) * n) } } for (k = 3; 0 <= k; k--) if (s[k] != p[k]) for (m = 0; 4 > m; m++) f.Ma.Tt(c, m, s[k], m, p[k]); return f.My }; f.Ma.GW = new Float32Array([1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]); f.rDa = function(c, d) { var e = new f.Ma, g = new f.Ma; f.Mp(e, d); f.Ex(g); f.Ma.xra(e, g) != f.Ly && f.Mp(c, e) }; f.YYa = function(c) { for (var d = 0; 16 > d; d++) if (f.Ma.GW[d] != c.c[d]) return !1; return !0 }; f.fZa = function(c, d) { var e, g, h = c.c, k = d.c; for (g = 0; 4 > g; ++g) for (e = 0; 4 > e; ++e) h[4 * g + e] = k[4 * e + g]; return c }; f.Np = function(c, d, e) { c = c.c; var g = d.c[0], h = d.c[1], k = d.c[2], m = d.c[3], n = d.c[4], p = d.c[5], s = d.c[6], u = d.c[7], v = d.c[8], z = d.c[9], A = d.c[10], B = d.c[11], C = d.c[12], G = d.c[13], L = d.c[14]; d = d.c[15]; var O = e.c[0], R = e.c[1], M = e.c[2], K = e.c[3], P = e.c[4], I = e.c[5], J = e.c[6], V = e.c[7], ma = e.c[8], W = e.c[9], fa = e.c[10], ta = e.c[11], Y = e.c[12], wa = e.c[13], Z = e.c[14]; e = e.c[15]; c[0] = O * g + R * n + M * v + K * C; c[1] = O * h + R * p + M * z + K * G; c[2] = O * k + R * s + M * A + K * L; c[3] = O * m + R * u + M * B + K * d; c[4] = P * g + I * n + J * v + V * C; c[5] = P * h + I * p + J * z + V * G; c[6] = P * k + I * s + J * A + V * L; c[7] = P * m + I * u + J * B + V * d; c[8] = ma * g + W * n + fa * v + ta * C; c[9] = ma * h + W * p + fa * z + ta * G; c[10] = ma * k + W * s + fa * A + ta * L; c[11] = ma * m + W * u + fa * B + ta * d; c[12] = Y * g + wa * n + Z * v + e * C; c[13] = Y * h + wa * p + Z * z + e * G; c[14] = Y * k + wa * s + Z * A + e * L; c[15] = Y * m + wa * u + Z * B + e * d }; f.yAa = function() { var c = f.Au.top.c, d = f.Wr.top.c, e = new Float32Array(16); e[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3]; e[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3]; e[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3]; e[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3]; e[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7]; e[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7]; e[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7]; e[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7]; e[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11]; e[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] * d[11]; e[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11]; e[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11]; e[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15]; e[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15]; e[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15]; e[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15]; return e }; f.DUa = function(c, d, e) { c = c.c; d = d.c; var g = e.c; g[0] = c[0] * d[0] + c[4] * d[1] + c[8] * d[2] + c[12] * d[3]; g[1] = c[1] * d[0] + c[5] * d[1] + c[9] * d[2] + c[13] * d[3]; g[2] = c[2] * d[0] + c[6] * d[1] + c[10] * d[2] + c[14] * d[3]; g[3] = c[3] * d[0] + c[7] * d[1] + c[11] * d[2] + c[15] * d[3]; g[4] = c[0] * d[4] + c[4] * d[5] + c[8] * d[6] + c[12] * d[7]; g[5] = c[1] * d[4] + c[5] * d[5] + c[9] * d[6] + c[13] * d[7]; g[6] = c[2] * d[4] + c[6] * d[5] + c[10] * d[6] + c[14] * d[7]; g[7] = c[3] * d[4] + c[7] * d[5] + c[11] * d[6] + c[15] * d[7]; g[8] = c[0] * d[8] + c[4] * d[9] + c[8] * d[10] + c[12] * d[11]; g[9] = c[1] * d[8] + c[5] * d[9] + c[9] * d[10] + c[13] * d[11]; g[10] = c[2] * d[8] + c[6] * d[9] + c[10] * d[10] + c[14] * d[11]; g[11] = c[3] * d[8] + c[7] * d[9] + c[11] * d[10] + c[15] * d[11]; g[12] = c[0] * d[12] + c[4] * d[13] + c[8] * d[14] + c[12] * d[15]; g[13] = c[1] * d[12] + c[5] * d[13] + c[9] * d[14] + c[13] * d[15]; g[14] = c[2] * d[12] + c[6] * d[13] + c[10] * d[14] + c[14] * d[15]; g[15] = c[3] * d[12] + c[7] * d[13] + c[11] * d[14] + c[15] * d[15]; return e.c }; f.Mp = function(c, d) { if (c == d) f.log("cc.kmMat4Assign(): pOut equals pIn"); else { var e = c.c, g = d.c; e[0] = g[0]; e[1] = g[1]; e[2] = g[2]; e[3] = g[3]; e[4] = g[4]; e[5] = g[5]; e[6] = g[6]; e[7] = g[7]; e[8] = g[8]; e[9] = g[9]; e[10] = g[10]; e[11] = g[11]; e[12] = g[12]; e[13] = g[13]; e[14] = g[14]; e[15] = g[15] } }; f.SYa = function(c, d) { if (c == d) return f.log("cc.kmMat4AreEqual(): pMat1 and pMat2 are same object."), !0; for (var e = 0; 16 > e; e++) if (!(c.c[e] + f.Bb > d.c[e] && c.c[e] - f.Bb < d.c[e])) return !1; return !0 }; f.cZa = function(c, d) { c.c[0] = 1; c.c[1] = 0; c.c[2] = 0; c.c[3] = 0; c.c[4] = 0; c.c[5] = Math.cos(d); c.c[6] = Math.sin(d); c.c[7] = 0; c.c[8] = 0; c.c[9] = -Math.sin(d); c.c[10] = Math.cos(d); c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1; return c }; f.dZa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = 0; c.c[2] = -Math.sin(d); c.c[3] = 0; c.c[4] = 0; c.c[5] = 1; c.c[6] = 0; c.c[7] = 0; c.c[8] = Math.sin(d); c.c[9] = 0; c.c[10] = Math.cos(d); c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1; return c }; f.eZa = function(c, d) { c.c[0] = Math.cos(d); c.c[1] = Math.sin(d); c.c[2] = 0; c.c[3] = 0; c.c[4] = -Math.sin(d); c.c[5] = Math.cos(d); c.c[6] = 0; c.c[7] = 0; c.c[8] = 0; c.c[9] = 0; c.c[10] = 1; c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1; return c }; f.ZYa = function(c, d, e, g) { var h = Math.cos(d); d = Math.sin(d); var k = Math.cos(e); e = Math.sin(e); var m = Math.cos(g); g = Math.sin(g); var n = d * e, p = h * e; c.c[0] = k * m; c.c[4] = k * g; c.c[8] = -e; c.c[1] = n * m - h * g; c.c[5] = n * g + h * m; c.c[9] = d * k; c.c[2] = p * m + d * g; c.c[6] = p * g - d * m; c.c[10] = h * k; c.c[3] = c.c[7] = c.c[11] = 0; c.c[15] = 1; return c }; f.$Ya = function(c, d) { c.c[0] = 1 - 2 * (d.y * d.y + d.z * d.z); c.c[1] = 2 * (d.x * d.y + d.z * d.da); c.c[2] = 2 * (d.x * d.z - d.y * d.da); c.c[3] = 0; c.c[4] = 2 * (d.x * d.y - d.z * d.da); c.c[5] = 1 - 2 * (d.x * d.x + d.z * d.z); c.c[6] = 2 * (d.z * d.y + d.x * d.da); c.c[7] = 0; c.c[8] = 2 * (d.x * d.z + d.y * d.da); c.c[9] = 2 * (d.y * d.z - d.x * d.da); c.c[10] = 1 - 2 * (d.x * d.x + d.y * d.y); c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1; return c }; f.bZa = function(c, d, e) { c.c[0] = d.c[0]; c.c[1] = d.c[1]; c.c[2] = d.c[2]; c.c[3] = 0; c.c[4] = d.c[3]; c.c[5] = d.c[4]; c.c[6] = d.c[5]; c.c[7] = 0; c.c[8] = d.c[6]; c.c[9] = d.c[7]; c.c[10] = d.c[8]; c.c[11] = 0; c.c[12] = e.x; c.c[13] = e.y; c.c[14] = e.z; c.c[15] = 1; return c }; f.uDa = function(c, d, e, g) { c.c[0] = d; c.c[5] = e; c.c[10] = g; c.c[15] = 1; c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = c.c[12] = c.c[13] = c.c[14] = 0 }; f.Tea = function(c, d, e, g) { c.c[0] = c.c[5] = c.c[10] = c.c[15] = 1; c.c[1] = c.c[2] = c.c[3] = c.c[4] = c.c[6] = c.c[7] = c.c[8] = c.c[9] = c.c[11] = 0; c.c[12] = d; c.c[13] = e; c.c[14] = g }; f.XYa = function(c, d) { c.x = d.c[4]; c.y = d.c[5]; c.z = d.c[6]; f.hk(c, c); return c }; f.WYa = function(c, d) { c.x = d.c[0]; c.y = d.c[1]; c.z = d.c[2]; f.hk(c, c); return c }; f.VYa = function(c, d) { c.x = d.c[8]; c.y = d.c[9]; c.z = d.c[10]; f.hk(c, c); return c }; f.sDa = function(c, d, e) { var g = f.bI(30), h = e - 0.1, k = Math.sin(g); 0 != h && 0 != k && 0 != d && (g = Math.cos(g) / k, f.Ex(c), c.c[0] = g / d, c.c[5] = g, c.c[10] = -(e + 0.1) / h, c.c[11] = -1, c.c[14] = -0.2 * e / h, c.c[15] = 0) }; f.$0 = function(c, d, e, g, h, k, m) { f.Ex(c); c.c[0] = 2 / (e - d); c.c[5] = 2 / (h - g); c.c[10] = -2 / (m - k); c.c[12] = -((e + d) / (e - d)); c.c[13] = -((h + g) / (h - g)); c.c[14] = -((m + k) / (m - k)) }; f.Sea = function(c, d, e, g) { var h = new f.cd, k = new f.cd, m = new f.cd, n = new f.cd, p = new f.Ma; f.e1(h, e, d); f.hk(h, h); f.cI(k, g); f.hk(k, k); f.vu(m, h, k); f.hk(m, m); f.vu(n, m, h); f.hk(m, m); f.Ex(c); c.c[0] = m.x; c.c[4] = m.y; c.c[8] = m.z; c.c[1] = n.x; c.c[5] = n.y; c.c[9] = n.z; c.c[2] = -h.x; c.c[6] = -h.y; c.c[10] = -h.z; f.Tea(p, -d.x, -d.y, -d.z); f.Np(c, c, p) }; f.tDa = function(c, d, e) { var g = Math.cos(e); e = Math.sin(e); var h = new f.cd; f.hk(h, d); c.c[0] = g + h.x * h.x * (1 - g); c.c[1] = h.z * e + h.y * h.x * (1 - g); c.c[2] = -h.y * e + h.z * h.x * (1 - g); c.c[3] = 0; c.c[4] = -h.z * e + h.x * h.y * (1 - g); c.c[5] = g + h.y * h.y * (1 - g); c.c[6] = h.x * e + h.z * h.y * (1 - g); c.c[7] = 0; c.c[8] = h.y * e + h.x * h.z * (1 - g); c.c[9] = -h.x * e + h.y * h.z * (1 - g); c.c[10] = g + h.z * h.z * (1 - g); c.c[11] = 0; c.c[12] = 0; c.c[13] = 0; c.c[14] = 0; c.c[15] = 1 }; f.qDa = function(c, d) { c.c[0] = d.c[0]; c.c[1] = d.c[1]; c.c[2] = d.c[2]; c.c[3] = d.c[4]; c.c[4] = d.c[5]; c.c[5] = d.c[6]; c.c[6] = d.c[8]; c.c[7] = d.c[9]; c.c[8] = d.c[10] }; f.TYa = function(c, d, e) { switch (e) { case f.fma: c.a = d.c[3] - d.c[0]; c.b = d.c[7] - d.c[4]; c.G = d.c[11] - d.c[8]; c.P = d.c[15] - d.c[12]; break; case f.dma: c.a = d.c[3] + d.c[0]; c.b = d.c[7] + d.c[4]; c.G = d.c[11] + d.c[8]; c.P = d.c[15] + d.c[12]; break; case f.bma: c.a = d.c[3] + d.c[1]; c.b = d.c[7] + d.c[5]; c.G = d.c[11] + d.c[9]; c.P = d.c[15] + d.c[13]; break; case f.gma: c.a = d.c[3] - d.c[1]; c.b = d.c[7] - d.c[5]; c.G = d.c[11] - d.c[9]; c.P = d.c[15] - d.c[13]; break; case f.cma: c.a = d.c[3] - d.c[2]; c.b = d.c[7] - d.c[6]; c.G = d.c[11] - d.c[10]; c.P = d.c[15] - d.c[14]; break; case f.ema: c.a = d.c[3] + d.c[2]; c.b = d.c[7] + d.c[6]; c.G = d.c[11] + d.c[10]; c.P = d.c[15] + d.c[14]; break; default: f.log("cc.kmMat4ExtractPlane(): Invalid plane index") } d = Math.sqrt(c.a * c.a + c.b * c.b + c.G * c.G); c.a /= d; c.b /= d; c.G /= d; c.P /= d; return c }; f.aZa = function(c, d, e) { d = new ha; var g = new f.$P; f.qDa(g, e); f.Xea(d, g); f.Yea(d, c); return c }; f.dma = 0; f.fma = 1; f.bma = 2; f.gma = 3; f.ema = 4; f.cma = 5; f.gZa = function(c, d, e, g) { this.a = c || 0; this.b = d || 0; this.G = e || 0; this.P = g || 0 }; f.ana = 0; f.$ma = 1; f.bna = 2; f.iZa = function(c, d) { return c.a * d.x + c.b * d.y + c.G * d.z + c.P * d.da }; f.jZa = function(c, d) { return c.a * d.x + c.b * d.y + c.G * d.z + c.P }; f.kZa = function(c, d) { return c.a * d.x + c.b * d.y + c.G * d.z }; f.lZa = function(c, d, e) { c.a = e.x; c.b = e.y; c.G = e.z; c.P = -f.c1(e, d); return c }; f.mZa = function(c, d, e, g) { var h = new f.cd, k = new f.cd, m = new f.cd; f.e1(k, e, d); f.e1(m, g, d); f.vu(h, k, m); f.hk(h, h); c.a = h.x; c.b = h.y; c.G = h.z; c.P = f.c1(f.d1(h, h, -1), d); return c }; f.nZa = function() { throw "cc.kmPlaneIntersectLine() hasn't been implemented."; }; f.oZa = function(c, d) { var e = new f.cd; e.x = d.a; e.y = d.b; e.z = d.G; var g = 1 / f.$ea(e); f.hk(e, e); c.a = e.x; c.b = e.y; c.G = e.z; c.P = d.P * g; return c }; f.pZa = function() { f.log("cc.kmPlaneScale() has not been implemented.") }; f.hZa = function(c, d) { var e = c.a * d.x + c.b * d.y + c.G * d.z + c.P; return 0.001 < e ? f.ana : -0.001 > e ? f.$ma : f.bna }; function ha() { this.da = this.z = this.y = this.x = 0 } f.yDa = function(c, d) { c.x = -d.x; c.y = -d.y; c.z = -d.z; c.da = d.da; return c }; f.zDa = function(c, d) { return c.da * d.da + c.x * d.x + c.y * d.y + c.z * d.z }; f.rZa = function(c) { return c }; f.ADa = function(c) { c.x = 0; c.y = 0; c.z = 0; c.da = 1 }; f.sZa = function(c, d) { var e = f.Uea(d), g = new ha; if (Math.abs(e) > f.Bb) return c.x = 0, c.y = 0, c.z = 0, c.da = 0, c; f.cQ(c, f.yDa(g, d), 1 / e); return c }; f.tZa = function(c) { return 0 == c.x && 0 == c.y && 0 == c.z && 1 == c.da }; f.Uea = function(c) { return Math.sqrt(f.BDa(c)) }; f.BDa = function(c) { return c.x * c.x + c.y * c.y + c.z * c.z + c.da * c.da }; f.uZa = function(c) { return c }; f.vZa = function(c, d, e) { c.da = d.da * e.da - d.x * e.x - d.y * e.y - d.z * e.z; c.x = d.da * e.x + d.x * e.da + d.y * e.z - d.z * e.y; c.y = d.da * e.y + d.y * e.da + d.z * e.x - d.x * e.z; c.z = d.da * e.z + d.z * e.da + d.x * e.y - d.y * e.x; return c }; f.Vea = function(c, d) { var e = f.Uea(d); if (Math.abs(e) <= f.Bb) throw "cc.kmQuaternionNormalize(): pIn is an invalid value"; f.cQ(c, d, 1 / e) }; f.Wea = function(c, d) { var e = 0.5 * f.a1, g = Math.sin(e); c.da = Math.cos(e); c.x = d.x * g; c.y = d.y * g; c.z = d.z * g }; f.Xea = function(c, d) { var e, g, h, k; e = []; g = k = 0; if (d) { e[0] = d.c[0]; e[1] = d.c[3]; e[2] = d.c[6]; e[4] = d.c[1]; e[5] = d.c[4]; e[6] = d.c[7]; e[8] = d.c[2]; e[9] = d.c[5]; e[10] = d.c[8]; e[15] = 1; var m = e[0]; g = m[0] + m[5] + m[10] + 1; g > f.Bb ? (k = 2 * Math.sqrt(g), e = (m[9] - m[6]) / k, g = (m[2] - m[8]) / k, h = (m[4] - m[1]) / k, k *= 0.25) : m[0] > m[5] && m[0] > m[10] ? (k = 2 * Math.sqrt(1 + m[0] - m[5] - m[10]), e = 0.25 * k, g = (m[4] + m[1]) / k, h = (m[2] + m[8]) / k, k = (m[9] - m[6]) / k) : m[5] > m[10] ? (k = 2 * Math.sqrt(1 + m[5] - m[0] - m[10]), e = (m[4] + m[1]) / k, g = 0.25 * k, h = (m[9] + m[6]) / k, k = (m[2] - m[8]) / k) : (k = 2 * Math.sqrt(1 + m[10] - m[0] - m[5]), e = (m[2] + m[8]) / k, g = (m[9] + m[6]) / k, h = 0.25 * k, k = (m[4] - m[1]) / k); c.x = e; c.y = g; c.z = h; c.da = k } }; f.yZa = function(c, d, e, g) { var h, k, m, n, p; h = f.bI(e) / 2; k = f.bI(d) / 2; m = f.bI(g) / 2; g = Math.cos(h); d = Math.cos(k); e = Math.cos(m); h = Math.sin(h); k = Math.sin(k); m = Math.sin(m); n = d * e; p = k * m; c.da = g * n + h * p; c.x = h * n - g * p; c.y = g * k * e + h * d * m; c.z = g * d * m - h * k * e; f.Vea(c, c); return c }; f.zZa = function(c, d, e, g) { if (d.x == e.x && d.y == e.y && d.z == e.z && d.da == e.da) return c.x = d.x, c.y = d.y, c.z = d.z, c.da = d.da, c; var h = f.zDa(d, e), k = Math.acos(h), h = Math.sqrt(1 - f.yf(h)), m = Math.sin(g * k) / h, n = new ha, p = new ha; f.cQ(n, d, Math.sin((1 - g) * k) / h); f.cQ(p, e, m); f.xDa(c, n, p); return c }; f.Yea = function(c, d) { var e; e = Math.sqrt(f.yf(c.x) + f.yf(c.y) + f.yf(c.z)); e > -f.Bb && e < f.Bb || e < 2 * f.a1 + f.Bb && e > 2 * f.a1 - f.Bb ? (d.x = 0, d.y = 0, d.z = 1) : (d.x = c.x / e, d.y = c.y / e, d.z = c.z / e, f.hk(d, d)) }; f.cQ = function(c, d, e) { c.x = d.x * e; c.y = d.y * e; c.z = d.z * e; c.da = d.da * e }; f.qZa = function(c, d) { c.x = d.x; c.y = d.y; c.z = d.z; c.da = d.da; return c }; f.xDa = function(c, d, e) { c.x = d.x + e.x; c.y = d.y + e.y; c.z = d.z + e.z; c.da = d.da + e.da }; f.xZa = function(c, d, e, g) { var h = new f.cd, k = new f.cd; f.cI(h, d); f.cI(k, e); f.hk(h, h); f.hk(k, k); e = f.c1(h, k); if (1 <= e) return f.ADa(c), c; - 0.999999 > e ? Math.abs(f.afa(g)) < f.Bb ? f.Wea(c, g) : (h = new f.cd, k = new f.cd, k.x = 1, k.y = 0, k.z = 0, f.vu(h, k, d), Math.abs(f.afa(h)) < f.Bb && (k = new f.cd, k.x = 0, k.y = 1, k.z = 0, f.vu(h, k, d)), f.hk(h, h), f.Wea(c, h)) : (d = Math.sqrt(2 * (1 + e)), g = 1 / d, e = new f.cd, f.vu(e, h, k), c.x = e.x * g, c.y = e.y * g, c.z = e.z * g, c.da = 0.5 * d, f.Vea(c, c)); return c }; f.wZa = function(c, d, e) { var g = new f.cd, h = new f.cd, k = new f.cd; k.x = d.x; k.y = d.y; k.z = d.z; f.vu(g, k, e); f.vu(h, k, g); f.d1(g, g, 2 * d.da); f.d1(h, h, 2); f.Zea(c, e, g); f.Zea(c, c, h); return c }; f.qYa = function(c, d) { this.min = c || new f.cd; this.max = d || new f.cd }; f.sYa = function(c, d) { return c.x >= d.min.x && c.x <= d.max.x && c.y >= d.min.y && c.y <= d.max.y && c.z >= d.min.z && c.z <= d.max.z ? f.My : f.Ly }; f.rYa = function(c, d) { f.cI(c.min, d.min); f.cI(c.max, d.max); return c }; f.tYa = function() { f.log("cc.kmAABBScale hasn't been supported.") }; f.fQ = function(c, d, e, g) { this.top = e; this.stack = g }; f.fQ.uLa = 30; f.f1 = function(c) { c.stack = []; c.top = null }; f.gQ = function(c, d) { c.stack.push(c.top); c.top = new f.Ma; f.Mp(c.top, d) }; f.e_a = function(c) { c.top = c.stack.pop() }; f.g1 = function(c) { c.stack = null; c.top = null }; f.mq = 5888; f.nq = 5889; f.H5 = 5890; f.Wr = new f.fQ; f.Au = new f.fQ; f.jJ = new f.fQ; f.Md = null; f.M0 = !1; f.IDa = function() { if (!f.M0) { var c = new f.Ma; f.f1(f.Wr); f.f1(f.Au); f.f1(f.jJ); f.Md = f.Wr; f.M0 = !0; f.Ex(c); f.gQ(f.Wr, c); f.gQ(f.Au, c); f.gQ(f.jJ, c) } }; f.IDa(); f.nDa = function() { f.g1(f.Wr); f.g1(f.Au); f.g1(f.jJ); f.M0 = !1; f.Md = null }; f.Rr = function() { f.gQ(f.Md, f.Md.top) }; f.yYa = function(c) { f.Md.stack.push(f.Md.top); f.Mp(c, f.Md.top); f.Md.top = c }; f.Qr = function() { f.Md.top = f.Md.stack.pop() }; f.Lp = function(c) { switch (c) { case f.mq: f.Md = f.Wr; break; case f.nq: f.Md = f.Au; break; case f.H5: f.Md = f.jJ; break; default: throw "Invalid matrix mode specified"; } }; f.$B = function() { f.Ex(f.Md.top) }; f.xYa = function(c) { f.Mp(f.Md.top, c) }; f.aC = function(c) { f.Np(f.Md.top, f.Md.top, c) }; f.bC = function(c, d) { var e = new f.Ma; f.Tea(e, c, d, 0); f.Np(f.Md.top, f.Md.top, e) }; f.zYa = function(c, d, e, g) { d = new f.cd(d, e, g); e = new f.Ma; f.tDa(e, d, f.bI(c)); f.Np(f.Md.top, f.Md.top, e) }; f.AYa = function(c, d, e) { var g = new f.Ma; f.uDa(g, c, d, e); f.Np(f.Md.top, f.Md.top, g) }; f.ZP = function(c, d) { switch (c) { case f.mq: f.Mp(d, f.Wr.top); break; case f.nq: f.Mp(d, f.Au.top); break; case f.H5: f.Mp(d, f.jJ.top); break; default: throw "Invalid matrix mode specified"; } }; f.Lna = "precision lowp float;\nvarying vec4 v_fragmentColor;\nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n}\n"; f.Mna = "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}"; f.zna = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor; \n} "; f.Cna = "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}"; f.Ana = "// #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}"; f.Bna = "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}"; f.Hna = "precision lowp float; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord); \n}"; f.Kna = "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}"; f.Ina = "precision lowp float; \nuniform vec4 u_color; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d texture2D(CC_Texture0, v_texCoord) * u_color; \n}"; f.Jna = "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}"; f.Dna = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d vec4( v_fragmentColor.rgb, \n v_fragmentColor.a * texture2D(CC_Texture0, v_texCoord).a \n ); \n}"; f.Ena = "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}"; f.Gna = "precision lowp float;\nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nvoid main() \n{ \n gl_FragColor \x3d v_fragmentColor * texture2D(CC_Texture0, v_texCoord); \n}"; f.d7 = "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}"; f.Fna = "precision lowp float; \nvarying vec4 v_fragmentColor; \nvarying vec2 v_texCoord; \nuniform sampler2D CC_Texture0; \nuniform float CC_alpha_value; \nvoid main() \n{ \n vec4 texColor \x3d texture2D(CC_Texture0, v_texCoord); \n // mimic: glAlphaFunc(GL_GREATER) \n //pass if ( incoming_pixel \x3e\x3d CC_alpha_value ) \x3d\x3e fail if incoming_pixel \x3c CC_alpha_value \n if ( texColor.a \x3c\x3d CC_alpha_value ) \n discard; \n gl_FragColor \x3d texColor * v_fragmentColor; \n}"; f.wMa = "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}"; f.xg = { aU: 0, bU: 1, ZT: 2, $T: 3, dU: 4, cU: 5, eU: 6, x7: 7, VMa: 8, Kg: {}, FF: function() { this.NDa(); return !0 }, Vi: function(c, d) { switch (d) { case this.aU: c.Kp(f.d7, f.Gna); c.Pg(f.Wu, f.Oc); c.Pg(f.fD, f.Mi); c.Pg(f.vy, f.$g); break; case this.bU: c.Kp(f.d7, f.Fna); c.Pg(f.Wu, f.Oc); c.Pg(f.fD, f.Mi); c.Pg(f.vy, f.$g); break; case this.ZT: c.Kp(f.Cna, f.zna); c.Pg(f.Wu, f.Oc); c.Pg(f.fD, f.Mi); break; case this.$T: c.Kp(f.Kna, f.Hna); c.Pg(f.Wu, f.Oc); c.Pg(f.vy, f.$g); break; case this.dU: c.Kp(f.Jna, f.Ina); c.Pg(f.Wu, f.Oc); c.Pg(f.vy, f.$g); break; case this.cU: c.Kp(f.Ena, f.Dna); c.Pg(f.Wu, f.Oc); c.Pg(f.fD, f.Mi); c.Pg(f.vy, f.$g); break; case this.eU: c.Kp(f.Mna, f.Lna); c.Pg("aVertex", f.Oc); break; case this.x7: c.Kp(f.Bna, f.Ana); c.Pg(f.Wu, f.Oc); c.Pg(f.vy, f.$g); c.Pg(f.fD, f.Mi); break; default: f.log("cocos2d: cc.shaderCache._loadDefaultShader, error shader type"); return } c.link(); c.hJa() }, NDa: function() { var c = new f.vo; this.Vi(c, this.aU); this.Kg[f.zo] = c; this.Kg.ShaderPositionTextureColor = c; c = new f.vo; this.Vi(c, this.bU); this.Kg[f.tK] = c; this.Kg.ShaderPositionTextureColorAlphaTest = c; c = new f.vo; this.Vi(c, this.ZT); this.Kg[f.sK] = c; this.Kg.ShaderPositionColor = c; c = new f.vo; this.Vi(c, this.$T); this.Kg[f.jE] = c; this.Kg.ShaderPositionTexture = c; c = new f.vo; this.Vi(c, this.dU); this.Kg[f.uK] = c; this.Kg.ShaderPositionTextureUColor = c; c = new f.vo; this.Vi(c, this.cU); this.Kg[f.JT] = c; this.Kg.ShaderPositionTextureA8Color = c; c = new f.vo; this.Vi(c, this.eU); this.Kg[f.KT] = c; this.Kg.ShaderPositionUColor = c; c = new f.vo; this.Vi(c, this.x7); this.Kg[f.c7] = c; this.Kg.ShaderPositionLengthTextureColor = c }, T0a: function() { var c = this.be(f.zo); c.reset(); this.Vi(c, this.aU); c = this.be(f.tK); c.reset(); this.Vi(c, this.bU); c = this.be(f.sK); c.reset(); this.Vi(c, this.ZT); c = this.be(f.jE); c.reset(); this.Vi(c, this.$T); c = this.be(f.uK); c.reset(); this.Vi(c, this.dU); c = this.be(f.JT); c.reset(); this.Vi(c, this.cU); c = this.be(f.KT); c.reset(); this.Vi(c, this.eU) }, be: function(c) { return this.Kg[c] }, Bx: function(c) { return this.Kg[c] }, zPa: function(c, d) { this.Kg[d] = c } }; f.Qla = function() { this.location = this.value = void 0; this.DP = {} }; f.vo = f.N.extend({ Sa: null, qd: null, Xj: null, Yl: null, ed: null, kn: null, Iba: !1, gj: function(c, d) { if (null == c) return !1; for (var e = !0, g = null, h = 0; h < this.kn.length; h++) this.kn[h].location == c && (g = this.kn[h]); g ? g.value == d ? e = !1 : g.value = d : (g = new f.Qla, g.location = c, g.value = d, this.kn.push(g)); return e }, UNa: function() { return "\x3cCCGLProgram \x3d " + this.toString() + " | Program \x3d " + this.qd.toString() + ", VertexShader \x3d " + this.Xj.toString() + ", FragmentShader \x3d " + this.Yl.toString() + "\x3e" }, Y8: function(c, d, e) { if (!e || !c) return !1; this.Sa.shaderSource(c, "precision highp float; \nuniform 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; \n//CC INCLUDES END \n" + e); this.Sa.compileShader(c); e = this.Sa.getShaderParameter(c, this.Sa.COMPILE_STATUS); e || (f.log("cocos2d: ERROR: Failed to compile shader:\n" + this.Sa.getShaderSource(c)), d == this.Sa.VERTEX_SHADER ? f.log("cocos2d: \n" + this.mJa()) : f.log("cocos2d: \n" + this.nza())); return 1 == e }, ctor: function(c, d, e) { this.ed = []; this.kn = []; this.Sa = e || f.s; c && d && this.j(c, d) }, OQa: function() { this.kn = this.ed = this.Yl = this.Xj = null; this.Sa.deleteProgram(this.qd) }, Kp: function(c, d) { var e = this.Sa; this.qd = e.createProgram(); this.Yl = this.Xj = null; c && (this.Xj = e.createShader(e.VERTEX_SHADER), this.Y8(this.Xj, e.VERTEX_SHADER, c) || f.log("cocos2d: ERROR: Failed to compile vertex shader")); d && (this.Yl = e.createShader(e.FRAGMENT_SHADER), this.Y8(this.Yl, e.FRAGMENT_SHADER, d) || f.log("cocos2d: ERROR: Failed to compile fragment shader")); this.Xj && e.attachShader(this.qd, this.Xj); f.rB(); this.Yl && e.attachShader(this.qd, this.Yl); this.kn.length = 0; f.rB(); return !0 }, xf: function(c, d) { return this.Kp(c, d) }, HCa: function(c, d) { var e = f.L.zd(c); if (!e) throw "Please load the resource firset : " + c; var g = f.L.zd(d); if (!g) throw "Please load the resource firset : " + d; return this.Kp(e, g) }, j: function(c, d) { return this.HCa(c, d) }, Pg: function(c, d) { this.Sa.bindAttribLocation(this.qd, d, c) }, link: function() { if (!this.qd) return f.log("cc.GLProgram.link(): Cannot link invalid program"), !1; this.Sa.linkProgram(this.qd); this.Xj && this.Sa.deleteShader(this.Xj); this.Yl && this.Sa.deleteShader(this.Yl); this.Yl = this.Xj = null; return f.vf.kj[f.vf.Vm.iH] && !this.Sa.getProgramParameter(this.qd, this.Sa.LINK_STATUS) ? (f.log("cocos2d: ERROR: Failed to link program: " + this.Sa.getProgramInfoLog(this.qd)), f.TBa(this.qd), this.qd = null, !1) : !0 }, Ff: function() { f.x0(this.qd) }, hJa: function() { this.ed[f.rU] = this.Sa.getUniformLocation(this.qd, f.Bpa); this.ed[f.qU] = this.Sa.getUniformLocation(this.qd, f.zpa); this.ed[f.yE] = this.Sa.getUniformLocation(this.qd, f.Apa); this.ed[f.vU] = this.Sa.getUniformLocation(this.qd, f.Fpa); this.ed[f.uU] = this.Sa.getUniformLocation(this.qd, f.Epa); this.ed[f.pU] = this.Sa.getUniformLocation(this.qd, f.ypa); this.Iba = null != this.ed[f.vU] || null != this.ed[f.uU] || null != this.ed[f.pU]; this.ed[f.sU] = this.Sa.getUniformLocation(this.qd, f.Cpa); this.ed[f.tU] = this.Sa.getUniformLocation(this.qd, f.Dpa); this.Ff(); this.Yha(this.ed[f.tU], 0) }, CWa: function(c) { if (!c) throw "cc.GLProgram.getUniformLocationForName(): uniform name should be non-null"; if (!this.qd) throw "cc.GLProgram.getUniformLocationForName(): Invalid operation. Cannot get uniform location when program is not initialized"; return this.Sa.getUniformLocation(this.qd, c) }, DWa: function() { return this.ed[f.yE] }, EWa: function() { return this.ed[f.tU] }, Yha: function(c, d) { this.gj(c, d) && this.Sa.uniform1i(c, d) }, H4a: function(c, d, e) { this.gj(c, [d, e]) && this.Sa.uniform2i(c, d, e) }, K4a: function(c, d, e, g) { this.gj(c, [d, e, g]) && this.Sa.uniform3i(c, d, e, g) }, N4a: function(c, d, e, g, h) { this.gj(c, [d, e, g, h]) && this.Sa.uniform4i(c, d, e, g, h) }, I4a: function(c, d) { this.gj(c, d) && this.Sa.uniform2iv(c, d) }, L4a: function(c, d) { this.gj(c, d) && this.Sa.uniform3iv(c, d) }, O4a: function(c, d) { this.gj(c, d) && this.Sa.uniform4iv(c, d) }, F4a: function(c, d) { this.Yha(c, d) }, bJ: function(c, d) { this.gj(c, d) && this.Sa.uniform1f(c, d) }, THa: function(c, d, e) { this.gj(c, [d, e]) && this.Sa.uniform2f(c, d, e) }, UHa: function(c, d, e, g) { this.gj(c, [d, e, g]) && this.Sa.uniform3f(c, d, e, g) }, cJ: function(c, d, e, g, h) { this.gj(c, [d, e, g, h]) && this.Sa.uniform4f(c, d, e, g, h) }, G4a: function(c, d) { this.gj(c, d) && this.Sa.uniform2fv(c, d) }, J4a: function(c, d) { this.gj(c, d) && this.Sa.uniform3fv(c, d) }, M4a: function(c, d) { this.gj(c, d) && this.Sa.uniform4fv(c, d) }, a3: function(c, d) { this.gj(c, d) && this.Sa.uniformMatrix4fv(c, !1, d) }, E4a: function() { if (!(2 > arguments.length)) switch (arguments.length) { case 2: this.bJ(arguments[0], arguments[1]); break; case 3: this.THa(arguments[0], arguments[1], arguments[2]); break; case 4: this.UHa(arguments[0], arguments[1], arguments[2], arguments[3]); break; case 5: this.cJ(arguments[0], arguments[1], arguments[2], arguments[3], arguments[4]) } }, dJ: function() { var c = new f.Ma, d = new f.Ma, e = new f.Ma; f.ZP(f.nq, c); f.ZP(f.mq, d); f.Np(e, c, d); this.a3(this.ed[f.rU], c.c, 1); this.a3(this.ed[f.qU], d.c, 1); this.a3(this.ed[f.yE], e.c, 1); this.Iba && (c = f.Q, c = c.aO * c.EE, this.cJ(this.ed[f.vU], c / 10, c, 2 * c, 4 * c), this.cJ(this.ed[f.uU], c / 8, c / 4, c / 2, Math.sin(c)), this.cJ(this.ed[f.pU], c / 8, c / 4, c / 2, Math.cos(c))); - 1 != this.ed[f.sU] && this.cJ(this.ed[f.sU], Math.random(), Math.random(), Math.random(), Math.random()) }, C4a: function() { this.Sa.uniformMatrix4fv(this.ed[f.yE], !1, f.yAa()) }, D4a: function(c) { f.Np(c, f.Au.top, f.Wr.top); this.Sa.uniformMatrix4fv(this.ed[f.yE], !1, c.c) }, zj: function() { this.Sa.uniformMatrix4fv(this.ed[f.qU], !1, f.Wr.top.c); this.Sa.uniformMatrix4fv(this.ed[f.rU], !1, f.Au.top.c) }, mJa: function() { return this.Sa.getShaderInfoLog(this.Xj) }, IWa: function() { return this.Sa.getShaderInfoLog(this.Xj) }, ZTa: function() { return this.Sa.getShaderInfoLog(this.Xj) }, nza: function() { return this.Sa.getShaderInfoLog(this.Yl) }, v0a: function() { return this.Sa.getProgramInfoLog(this.qd) }, vVa: function() { return this.Sa.getProgramInfoLog(this.qd) }, reset: function() { this.Yl = this.Xj = null; this.ed.length = 0; this.Sa.deleteProgram(this.qd); this.qd = null; for (var c = 0; c < this.kn.length; c++) this.kn[c].value = null, this.kn[c] = null; this.kn.length = 0 }, Bx: function() { return this.qd }, OQ: function() {}, wh: function() {} }); f.vo.create = function(c, d) { return new f.vo(c, d) }; f.e9 = -1; f.eZ = !1; f.dZ = !1; f.fZ = !1; f.Zm && (f.rma = 16, f.dF = -1, f.cF = [-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1], f.kz = -1, f.jz = -1, f.Spa = 0, f.TT && (f.xba = 0)); f.TWa = function() { f.nDa(); f.e9 = -1; f.eZ = !1; f.dZ = !1; f.fZ = !1; if (f.Zm) { f.dF = -1; for (var c = 0; c < f.rma; c++) f.cF[c] = -1; f.kz = -1; f.jz = -1; f.Spa = 0 } }; f.x0 = function(c) { c !== f.dF && (f.dF = c, f.s.useProgram(c)) }; f.Zm || (f.x0 = function(c) { f.s.useProgram(c) }); f.TBa = function(c) { f.Zm && c === f.dF && (f.dF = -1); gl.deleteProgram(c) }; f.Fm = function(c, d) { if (c !== f.kz || d !== f.jz) f.kz = c, f.jz = d, f.bR(c, d) }; f.bR = function(c, d) { var e = f.s; c === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), f.s.blendFunc(c, d)) }; f.iea = function(c, d) { if (c !== f.kz || d !== f.jz) { f.kz = c; f.jz = d; var e = f.s; c === e.ONE && d === e.ZERO ? e.disable(e.BLEND) : (e.enable(e.BLEND), e.blendFuncSeparate(e.SRC_ALPHA, d, c, d)) } }; f.Zm || (f.Fm = f.bR); f.QWa = function() { var c = f.s; c.blendEquation(c.FUNC_ADD); f.Zm ? f.bR(f.kz, f.jz) : f.bR(c.Mc, c.Lc) }; f.yha = function() { f.e9 = -1 }; f.wf = function(c) { var d = f.s, e = c & f.Gh; e !== f.eZ && (e ? d.enableVertexAttribArray(f.Oc) : d.disableVertexAttribArray(f.Oc), f.eZ = e); e = c & f.HK; e !== f.dZ && (e ? d.enableVertexAttribArray(f.Mi) : d.disableVertexAttribArray(f.Mi), f.dZ = e); c &= f.Wy; c !== f.fZ && (c ? d.enableVertexAttribArray(f.$g) : d.disableVertexAttribArray(f.$g), f.fZ = c) }; f.Ai = function(c) { f.w0(0, c) }; f.w0 = function(c, d) { if (f.cF[c] != d) { f.cF[c] = d; var e = f.s; e.activeTexture(e.TEXTURE0 + c); d ? e.bindTexture(e.TEXTURE_2D, d.Wh) : e.bindTexture(e.TEXTURE_2D, null) } }; f.Zm || (f.w0 = function(c, d) { var e = f.s; e.activeTexture(e.TEXTURE0 + c); d ? e.bindTexture(e.TEXTURE_2D, d.Wh) : e.bindTexture(e.TEXTURE_2D, null) }); f.RWa = function(c) { f.UBa(c) }; f.UBa = function(c) { f.Zm && c == f.cF[0] && (f.cF[0] = -1); f.s.deleteTexture(c) }; f.PWa = function(c) { f.TT && f.Zm && f.xba != c && (f.xba = c) }; f.SWa = function() {}; f.pLa = 0; f.qLa = 1; f.rLa = 2; f.xs = function(c) { c -= 1; c |= c >> 1; c |= c >> 2; c |= c >> 4; c |= c >> 8; return (c | c >> 16) + 1 }; f.nv = f.v.extend({ sprite: null, LO: 0, f_: 0, YG: !1, gi: null, Pi: null, $L: 0, fF: 0, ep: 0, fa: null, EG: null, qva: null, gp: f.Pa.sq, Kq: null, g_: 0, uV: null, ta: "RenderTexture", ctor: null, aF: function(c, d, e, g) { f.v.prototype.ctor.call(this); this.Kq = f.color(255, 255, 255, 255); this.uV = "rgba(255,255,255,1)"; this.gi = f.fd("canvas"); this.Pi = this.gi.getContext("2d"); this.anchorY = this.anchorX = 0; void 0 !== c && void 0 !== d && (e = e || f.Pa.sq, this.PP(c, d, e, g || 0)) }, bF: function(c, d, e, g) { f.v.prototype.ctor.call(this); this.Kq = f.color(0, 0, 0, 0); void 0 !== c && void 0 !== d && (e = e || f.Pa.sq, this.PP(c, d, e, g || 0)) }, De: null, Hqa: function() { f.v.prototype.Ra.call(this); this.gi = this.Pi = null }, Iqa: function() { f.v.prototype.Ra.call(this); this.EG = null; var c = f.s; c.deleteFramebuffer(this.$L); this.fF && c.deleteRenderbuffer(this.fF); this.qva = null }, o0: function() { return this.sprite }, xR: function(c) { this.sprite = c }, PP: null, Dsa: function(c, d) { var e = this.gi, g = f.Uc(); e.width = 0 | c * g; e.height = 0 | d * g; this.Pi.translate(0, e.height); g = new f.Pa; g.sh(e); g.$d(); this.sprite = f.q.create(g); return !0 }, Esa: function(c, d, e, g) { e == f.Pa.bE && f.log("cc.RenderTexture._initWithWidthAndHeightForWebGL() : only RGB and RGBA formats are valid for a render texture;"); var h = f.s, k = f.Uc(); c = 0 | c * k; d = 0 | d * k; this.ep = h.getParameter(h.FRAMEBUFFER_BINDING); var m; f.tB.UN ? (k = c, m = d) : (k = f.xs(c), m = f.xs(d)); for (var n = new Uint8Array(k * m * 4), p = 0; p < k * m * 4; p++) n[p] = 0; this.gp = e; this.fa = new f.Pa; if (!this.fa) return !1; p = this.fa; p.su(n, this.gp, k, m, t(c, d)); e = h.getParameter(h.RENDERBUFFER_BINDING); if (f.tB.qB("GL_QCOM")) { this.EG = new f.Pa; if (!this.EG) return !1; this.EG.su(n, this.gp, k, m, t(c, d)) } this.$L = h.createFramebuffer(); h.bindFramebuffer(h.FRAMEBUFFER, this.$L); h.framebufferTexture2D(h.FRAMEBUFFER, h.COLOR_ATTACHMENT0, h.TEXTURE_2D, p.Wh, 0); 0 != g && (this.fF = h.createRenderbuffer(), h.bindRenderbuffer(h.RENDERBUFFER, this.fF), h.renderbufferStorage(h.RENDERBUFFER, g, k, m), h.framebufferRenderbuffer(h.FRAMEBUFFER, h.DEPTH_ATTACHMENT, h.RENDERBUFFER, this.fF)); h.checkFramebufferStatus(h.FRAMEBUFFER) !== h.FRAMEBUFFER_COMPLETE && f.log("Could not attach texture to the framebuffer"); p.j2(); c = this.sprite = f.q.create(p); c.scaleY = -1; c.ce(h.ONE, h.ONE_MINUS_SRC_ALPHA); h.bindRenderbuffer(h.RENDERBUFFER, e); h.bindFramebuffer(h.FRAMEBUFFER, this.ep); this.YG = !1; this.n(c); return !0 }, Qn: null, pqa: function() { f.s = this.Pi; f.view.Waa() }, qqa: function() { f.Lp(f.nq); f.Rr(); f.Lp(f.mq); f.Rr(); var c = f.Q; c.ey(c.mp); var d = this.fa.m, e = f.Q.KH(), c = e.width / d.width, e = e.height / d.height, g = f.s; g.viewport(0, 0, d.width, d.height); d = new f.Ma; f.$0(d, -1 / c, 1 / c, -1 / e, 1 / e, -1, 1); f.aC(d); this.ep = g.getParameter(g.FRAMEBUFFER_BINDING); g.bindFramebuffer(g.FRAMEBUFFER, this.$L); f.tB.qB("GL_QCOM") && (g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.EG.Wh, 0), g.clear(g.COLOR_BUFFER_BIT | g.DEPTH_BUFFER_BIT), g.framebufferTexture2D(g.FRAMEBUFFER, g.COLOR_ATTACHMENT0, g.TEXTURE_2D, this.fa.Wh, 0)) }, Fwa: function(c, d, e, g, h, k) { var m = f.s; h = h || m.COLOR_BUFFER_BIT; k = k || m.COLOR_BUFFER_BIT | m.DEPTH_BUFFER_BIT; this.gV(c, d, e, g, h, k, m.COLOR_BUFFER_BIT | m.DEPTH_BUFFER_BIT | m.STENCIL_BUFFER_BIT) }, gV: null, rqa: function(c, d, e, g) { this.Qn(); c = c || 0; d = d || 0; e = e || 0; g = isNaN(g) ? 1 : g; var h = this.Pi, k = this.gi; h.save(); h.fillStyle = "rgba(" + (0 | c) + "," + (0 | d) + "," + (0 | e) + "," + g / 255 + ")"; h.clearRect(0, 0, k.width, -k.height); h.fillRect(0, 0, k.width, -k.height); h.restore() }, sqa: function(c, d, e, g, h, k, m) { this.Qn(); var n = f.s, p = [0, 0, 0, 0], s = 0, u = 0; m & n.COLOR_BUFFER_BIT && (p = n.getParameter(n.COLOR_CLEAR_VALUE), n.clearColor(c, d, e, g)); m & n.DEPTH_BUFFER_BIT && (s = n.getParameter(n.DEPTH_CLEAR_VALUE), n.clearDepth(h)); m & n.STENCIL_BUFFER_BIT && (u = 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(u) }, end: null, lra: function() { f.s = f.Ysa; f.view.Iaa() }, mra: function() { var c = f.s, d = f.Q; c.bindFramebuffer(c.FRAMEBUFFER, this.ep); d.Zha(); f.Lp(f.nq); f.Qr(); f.Lp(f.mq); f.Qr() }, clear: function(c, d, e, g) { this.Fwa(c, d, e, g); this.end() }, clearRect: null, Lqa: function(c, d, e, g) { this.Pi.clearRect(c, d, e, -g) }, Mqa: function() {}, clearDepth: null, Jqa: function() { f.log("clearDepth isn't supported on Cocos2d-Html5") }, Kqa: function(c) { this.Qn(); var d = f.s, e = d.getParameter(d.DEPTH_CLEAR_VALUE); d.clearDepth(c); d.clear(d.DEPTH_BUFFER_BIT); d.clearDepth(e); this.end() }, clearStencil: null, Nqa: function() { f.log("clearDepth isn't supported on Cocos2d-Html5") }, Oqa: function(c) { var d = f.s, e = d.getParameter(d.STENCIL_CLEAR_VALUE); d.clearStencil(c); d.clear(d.STENCIL_BUFFER_BIT); d.clearStencil(e) }, I: null, Br: function(c) { this.Na && (c = c || f.s, c.save(), this.ma(c), this.transform(c), this.sprite.I(), c.restore(), this.arrivalOrder = 0) }, Uw: function(c) { if (this.Na) { f.Rr(); var d = this.grid; d && d.Bi() && (d.dx(), this.mJ()); this.transform(c); this.sprite.I(); this.ma(c); d && d.Bi() && d.ax(this); f.Qr(); this.arrivalOrder = 0 } }, ma: null, Rq: function(c) { c = c || f.s; if (this.YG) { this.Qn(); if (this.LO) { var d = this.gi; c.save(); c.fillStyle = this.uV; c.clearRect(0, 0, d.width, -d.height); c.fillRect(0, 0, d.width, -d.height); c.restore() } this.kd(); c = this.i; for (var d = c.length, e = this.sprite, g = 0; g < d; g++) { var h = c[g]; h != e && h.I() } this.end() } }, fn: function() { var c = f.s; if (this.YG) { this.Qn(); var d = this.LO; if (d) { var e = [0, 0, 0, 0], g = 0, h = 0; d & c.COLOR_BUFFER_BIT && (e = c.getParameter(c.COLOR_CLEAR_VALUE), c.clearColor(this.Kq.r / 255, this.Kq.g / 255, this.Kq.b / 255, this.Kq.a / 255)); d & c.DEPTH_BUFFER_BIT && (g = c.getParameter(c.DEPTH_CLEAR_VALUE), c.clearDepth(this.f_)); d & c.STENCIL_BUFFER_BIT && (h = c.getParameter(c.STENCIL_CLEAR_VALUE), c.clearStencil(this.g_)); c.clear(d); d & c.COLOR_BUFFER_BIT && c.clearColor(e[0], e[1], e[2], e[3]); d & c.DEPTH_BUFFER_BIT && c.clearDepth(g); d & c.STENCIL_BUFFER_BIT && c.clearStencil(h) } this.kd(); c = this.i; for (d = 0; d < c.length; d++) e = c[d], e != this.sprite && e.I(); this.end() } }, q_a: function() { f.log("saveToFile isn't supported on cocos2d-html5"); return null }, BOa: function(c, d, e, g, h) { for (var k = 0; k < h; k++) c[d + k] = e[g + k] }, U1a: function() { f.log("saveToFile isn't supported on Cocos2d-Html5") }, i_a: function() { f.log("listenToBackground isn't supported on Cocos2d-Html5") }, j_a: function() { f.log("listenToForeground isn't supported on Cocos2d-Html5") }, USa: function() { return this.LO }, J2a: function(c) { this.LO = c }, Hza: function() { return this.Kq }, t2: null, lua: function(c) { var d = this.Kq; d.r = c.r; d.g = c.g; d.b = c.b; d.a = c.a; this.uV = "rgba(" + (0 | c.r) + "," + (0 | c.g) + "," + (0 | c.b) + "," + c.a / 255 + ")" }, mua: function(c) { var d = this.Kq; d.r = c.r; d.g = c.g; d.b = c.b; d.a = c.a }, TSa: function() { return this.f_ }, I2a: function(c) { this.f_ = c }, VSa: function() { return this.g_ }, K2a: function(c) { this.g_ = c }, oXa: function() { return this.YG }, x2a: function(c) { this.YG = c } }); q = f.nv.prototype; f.K == f.na ? (q.ctor = q.bF, q.De = q.Iqa, q.PP = q.Esa, q.Qn = q.qqa, q.gV = q.sqa, q.end = q.mra, q.clearRect = q.Mqa, q.clearDepth = q.Kqa, q.clearStencil = q.Oqa, q.I = q.Uw, q.ma = q.fn, q.t2 = q.mua) : (q.ctor = q.aF, q.De = q.Hqa, q.PP = q.Dsa, q.Qn = q.pqa, q.gV = q.rqa, q.end = q.lra, q.clearRect = q.Lqa, q.clearDepth = q.Jqa, q.clearStencil = q.Nqa, q.I = q.Br, q.ma = q.Rq, q.t2 = q.lua); f.d(q, "clearColorVal", q.Hza, q.t2); f.nv.create = function(c, d, e, g) { return new f.nv(c, d, e, g) }; f.an = f.hq.extend({ td: null, YW: null, Ba: !1, dc: null, ta: "LabelAtlas", ctor: function(c, d, e, g, h) { f.hq.prototype.ctor.call(this); d && f.an.prototype.xf.call(this, c, d, e, g, h) }, RC: function() { return this.Ba }, oe: function(c, d) { this.dc || (this.dc = []); this.dc.push({ al: c, nj: d }) }, jf: function() { if (this.dc) { this.Ba = !0; for (var c = this.dc, d = 0, e = c.length; d < e; d++) { var g = c[d]; g.al.call(g.nj, this) } c.length = 0 } }, xf: function(c, d, e, g, h) { var k = c + "", m, n; if (void 0 === e) { e = f.L.zd(d); if (1 !== parseInt(e.version, 10)) return f.log("cc.LabelAtlas.initWithString(): Unsupported version. Upgrade cocos2d version"), !1; d = f.path.pB(d, e.textureFilename); g = f.Uc(); m = parseInt(e.itemWidth, 10) / g; n = parseInt(e.itemHeight, 10) / g; e = String.fromCharCode(parseInt(e.firstChar, 10)) } else m = e || 0, n = g || 0, e = h || " "; var p = null, p = d instanceof f.Pa ? d : f.nb.vd(d); (this.Ba = d = p.ie) || p.oe(function() { this.va(p, m, n, k.length); this.string = k; this.jf() }, this); return this.va(p, m, n, k.length) ? (this.YW = e, this.string = k, !0) : !1 }, F: function(c) { f.hq.prototype.F.call(this, c); this.VC() }, qc: function() { return this.td }, ma: function(c) { f.hq.prototype.ma.call(this, c); f.ima && (c = this.size, f.If.Sf([r(0, 0), r(c.width, 0), r(c.width, c.height), r(0, c.height)], 4, !0)) }, LU: function(c, d, e) { c.Tsa = !0; f.ja.prototype.n.call(this, c, d, e) }, VC: null, rva: function() { for (var c = this.td || "", d = c.length, e = this.texture, g = this.Sj, h = this.Ti, k = 0; k < d; k++) { var m = c.charCodeAt(k) - this.YW.charCodeAt(0), m = x(parseInt(m % this.jA, 10) * g, parseInt(m / this.jA, 10) * h, g, h), n = c.charCodeAt(k), p = this.Za(k); p ? 32 == n ? (p.j(), p.sc(x(0, 0, 10, 10), !1, t(0, 0))) : (p.va(e, m), p.visible = !0, p.opacity = this.kb) : (p = new f.q, 32 == n ? (p.j(), p.sc(x(0, 0, 10, 10), !1, t(0, 0))) : p.va(e, m), f.ja.prototype.n.call(this, p, 0, k)); p.o(k * g + g / 2, h / 2) } }, sva: function() { var c = this.td, d = c.length, e = this.textureAtlas, g = e.texture, h = g.pixelsWidth, g = g.pixelsHeight, k = this.Sj, m = this.Ti; this.pM || (k = this.Sj * f.Uc(), m = this.Ti * f.Uc()); d > e.cg && f.log("cc.LabelAtlas._updateAtlasValues(): Invalid String length"); for (var n = e.quads, p = this.Ab, p = { r: p.r, g: p.g, b: p.b, a: this.kb }, s = this.Sj, u = 0; u < d; u++) { var v = c.charCodeAt(u) - this.YW.charCodeAt(0), z = v % this.jA, A = 0 | v / this.jA, B; f.Ey ? (z = (2 * z * k + 1) / (2 * h), v = z + (2 * k - 2) / (2 * h), A = (2 * A * m + 1) / (2 * g), B = A + (2 * m - 2) / (2 * g)) : (z = z * k / h, v = z + k / h, A = A * m / g, B = A + m / g); var C = n[u], G = C.Z, L = C.W, O = C.T, C = C.aa; G.t.Da = z; G.t.ga = A; L.t.Da = v; L.t.ga = A; O.t.Da = z; O.t.ga = B; C.t.Da = v; C.t.ga = B; O.k.x = u * s; O.k.y = 0; O.k.z = 0; C.k.x = u * s + s; C.k.y = 0; C.k.z = 0; G.k.x = u * s; G.k.y = this.Ti; G.k.z = 0; L.k.x = u * s + s; L.k.y = this.Ti; L.k.z = 0; G.D = p; L.D = p; O.D = p; C.D = p } 0 < d && (e.dirty = !0, c = e.totalQuads, d > c && e.rea(d - c)) }, wa: null, Nua: function(c) { c = String(c); var d = c.length; this.td = c; this.width = d * this.Sj; this.height = this.Ti; if (this.i) { c = this.i; for (var d = c.length, e = 0; e < d; e++) { var g = c[e]; g && !g.Tsa && (g.visible = !1) } } this.VC(); this.quadsToDraw = d }, Pua: function(c) { c = String(c); var d = c.length; d > this.textureAtlas.totalQuads && this.textureAtlas.NQ(d); this.td = c; this.width = d * this.Sj; this.height = this.Ti; this.VC(); this.quadsToDraw = d }, J: null, lY: function(c) { if (this.kb !== c) { f.hq.prototype.J.call(this, c); for (var d = this.i, e = 0, g = d.length; e < g; e++) d[e] && (d[e].opacity = c) } }, mY: function(c) { this.Ib !== c && f.hq.prototype.J.call(this, c) } }); q = f.an.prototype; f.K === f.na ? (q.VC = q.sva, q.wa = q.Pua, q.J = q.mY) : (q.VC = q.rva, q.wa = q.Nua, q.J = q.lY, q.n = q.LU); f.d(q, "opacity", q.vb, q.J); f.d(q, "string", q.qc, q.wa); f.an.create = function(c, d, e, g, h) { return new f.an(c, d, e, g, h) }; f.BLa = -1; f.qq = f.Fh.extend({ wb: !0, Jb: !1, td: "", Fk: null, qF: "", cA: "", CE: f.Bo, RG: -1, R$: !1, qM: null, Laa: null, kb: 255, Lg: 255, Ab: null, rd: null, dg: !0, Dg: !0, Ba: !1, dc: null, ta: "LabelBMFont", Xaa: function(c, d) { d ? this.cA = c : this.td = c; var e = this.i; if (e) for (var g = 0; g < e.length; g++) { var h = e[g]; h && h.za(!1) } this.Ba && (this.QO(), d && this.Bl()) }, ctor: function(c, d, e, g, h) { f.Fh.prototype.ctor.call(this); this.qM = r(0, 0); this.Ab = f.color(255, 255, 255, 255); this.rd = f.color(255, 255, 255, 255); this.Laa = []; this.xf(c, d, e, g, h) }, RC: function() { return this.Ba }, oe: function(c, d) { this.dc || (this.dc = []); this.dc.push({ al: c, nj: d }) }, jf: function() { if (this.dc) { for (var c = this.dc, d = 0, e = c.length; d < e; d++) { var g = c[d]; g.al.call(g.nj, this) } c.length = 0 } }, ma: function(c) { f.Fh.prototype.ma.call(this, c); if (f.jma) { c = this.e(); var d = r(0 | -this.Qb.x, 0 | -this.Qb.y); c = [r(d.x, d.y), r(d.x + c.width, d.y), r(d.x + c.width, d.y + c.height), r(d.x, d.y + c.height)]; f.If.wj(0, 255, 0, 255); f.If.Sf(c, 4, !0) } }, F: function(c) { var d = this.Ab, e = this.rd; if (e.r != c.r || e.g != c.g || e.b != c.b || e.a != c.a) d.r = e.r = c.r, d.g = e.g = c.g, d.b = e.b = c.b, this.Ba && this.dg && (d = f.color.WHITE, (e = this.Yb) && e.wb && e.cascadeColor && (d = e.ou()), this.Wb(d)), void 0 === c.a || c.Yw || this.J(c.a) }, vg: function() { return this.Jb }, ee: function(c) { this.Jb = c; if (c = this.i) for (var d = 0; d < c.length; d++) { var e = c[d]; e && e.wb && (e.opacityModifyRGB = this.Jb) } }, vb: function() { return this.Lg }, wda: function() { return this.kb }, J: function(c) { this.kb = this.Lg = c; if (this.Dg) { var d = 255, e = this.Yb; e && e.wb && e.cascadeOpacity && (d = e.kb); this.hc(d) } this.Ab.a = this.rd.a = c }, hc: function(c) { this.kb = this.Lg * c / 255; c = this.i; for (var d = 0; d < c.length; d++) { var e = c[d]; f.K == f.na ? e.hc(this.kb) : (f.ja.prototype.hc.call(e, this.kb), e.Ha()) } this.Us() }, WH: function() { return !1 }, Hu: function(c) { this.Dg = c }, $a: function() { var c = this.rd; return f.color(c.r, c.g, c.b, c.a) }, ou: function() { return this.Ab }, Wb: function(c) { var d = this.Ab, e = this.rd; d.r = e.r * c.r / 255; d.g = e.g * c.g / 255; d.b = e.b * c.b / 255; c = this.i; for (d = 0; d < c.length; d++) e = c[d], f.K == f.na ? e.Wb(this.Ab) : (f.ja.prototype.Wb.call(e, this.Ab), e.Ha()); this.Us() }, Us: function() { if (f.K != f.na) { var c, d = this.texture; d && 0 < d.width && (c = d.md) && (d = f.nb.vP(this.qi.md)) && (c instanceof HTMLCanvasElement && !this.pf ? f.HB(c, d, this.Ab, null, c) : (c = f.HB(c, d, this.Ab), d = new f.Pa, d.sh(c), d.$d(), this.texture = d)) } }, VH: function() { return !1 }, Gu: function(c) { this.dg = c }, j: function() { return this.xf(null, null, null, null, null) }, xf: function(c, d, e, g, h) { c = c || ""; this.Fk && f.log("cc.LabelBMFont.initWithString(): re-init is no longer supported"); if (d) { var k = f.L.zd(d); if (!k) return f.log("cc.LabelBMFont.initWithString(): Impossible to create font. Please check file"), !1; this.Fk = k; this.qF = d; d = f.nb.vd(k.dca); (this.Ba = k = d.ie) || d.oe(function(c) { this.Ba = !0; this.va(c, this.cA.length); this.wa(this.cA, !0); this.jf() }, this) } else d = new f.Pa, k = new Image, d.sh(k), this.Ba = !1; return this.va(d, c.length) ? (this.CE = g || f.wK, this.qM = h || r(0, 0), this.RG = null == e ? -1 : e, this.kb = this.Lg = 255, this.Ab = f.color(255, 255, 255, 255), this.rd = f.color(255, 255, 255, 255), this.dg = this.Dg = !0, this.m.width = 0, this.m.height = 0, this.S(0.5, 0.5), f.K === f.na && (e = this.textureAtlas.texture, this.Jb = e.Ep(), g = this.Laa = new f.q, g.va(e, x(0, 0, 0, 0), !1), g.batchNode = this), this.wa(c, !0), !0) : !1 }, QO: function() { var c = f.K, d = c === f.fb ? this.texture : this.textureAtlas.texture, e = 0, g = t(0, 0), h = 0, k = 1, m = this.td, n = m ? m.length : 0; if (0 !== n) { var p, s = this.Fk, u = s.lDa, v = s.j_, z = s.iza; for (p = 0; p < n - 1; p++) 10 == m.charCodeAt(p) && k++; var A = v * k, k = -(v - v * k), B = -1; for (p = 0; p < n; p++) if (v = m.charCodeAt(p), 0 != v) if (10 === v) e = 0, k -= s.j_; else { var C = u[B << 16 | v & 65535] || 0, G = z[v]; if (G) { var L = x(G.rect.x, G.rect.y, G.rect.width, G.rect.height), L = f.cs(L); L.x += this.qM.x; L.y += this.qM.y; (B = this.Za(p)) ? 32 === v && c === f.fb ? B.sc(L, !1, t(0, 0)) : (B.sc(L, !1), B.visible = !0): (B = new f.q, 32 === v && c === f.fb && (L = x(0, 0, 0, 0)), B.va(d, L, !1), B.fX = !0, this.n(B, 0, p)); B.opacityModifyRGB = this.Jb; f.K == f.na ? (B.Wb(this.Ab), B.hc(this.kb)) : (f.ja.prototype.Wb.call(B, this.Ab), f.ja.prototype.hc.call(B, this.kb), B.Ha()); L = r(e + G.Pia + 0.5 * G.rect.width + C, k + (s.j_ - G.Qia) - 0.5 * L.height * f.Uc()); B.o(f.J1(L)); e += G.rJa + C; B = v; h < e && (h = e) } else f.log("cocos2d: LabelBMFont: character not found " + m[p]) } g.width = h; g.height = A; this.Ga(f.eia(g)) } }, N5a: function(c) { var d = this.i; if (d) for (var e = 0, g = d.length; e < g; e++) { var h = d[e]; h && (h.visible = !1) } this.Fk && this.QO(); c || this.Bl() }, qc: function() { return this.cA }, wa: function(c, d) { c = String(c); null == d && (d = !0); if (null == c || "string" != typeof c) c += ""; this.cA = c; this.Xaa(c, d) }, Oua: function(c) { this.wa(c, !1) }, G2a: function(c) { this.wa(c, !0) }, Bl: function() { this.string = this.cA; if (0 < this.RG) { for (var c = this.td.length, d = [], e = [], g = 1, h = 0, k = !1, m = !1, n = -1, p = -1, s = 0, u, v = 0, z = this.i.length; v < z; v++) { for (var A = 0; !(u = this.Za(v + s + A));) A++; s += A; if (h >= c) break; var B = this.td[h]; m || (p = this.vW(u), m = !0); k || (n = p, k = !0); if (10 == B.charCodeAt(0)) { e.push("\n"); d = d.concat(e); e.length = 0; k = m = !1; n = p = -1; v--; s -= A; g++; if (h >= c) break; p || (p = this.vW(u), m = !0); n || (n = p, k = !0); h++ } else if (f.W0(B)) e.push(B), d = d.concat(e), e.length = 0, m = !1, p = -1, h++; else if (this.Rra(u) - n > this.RG) if (this.R$) { f.Lia(e); e.push("\n"); d = d.concat(e); e.length = 0; k = m = !1; n = p = -1; g++; if (h >= c) break; p || (p = this.vW(u), m = !0); n || (n = p, k = !0); v-- } else e.push(B), -1 != d.lastIndexOf(" ") ? f.Lia(d) : d = [], 0 < d.length && d.push("\n"), g++, k = !1, n = -1, h++; else e.push(B), h++ } d = d.concat(e); v = d.length; u = ""; for (h = 0; h < v; ++h) u += d[h]; u += String.fromCharCode(0); this.Xaa(u, !1) } if (this.CE != f.wK) for (d = h = 0, c = this.td.length, e = [], g = 0; g < c; g++) if (10 == this.td[g].charCodeAt(0) || 0 == this.td[g].charCodeAt(0)) if (v = 0, k = e.length, 0 == k) d++; else { if (u = h + k - 1 + d, !(0 > u) && (v = this.Za(u), null != v)) { v = v.Vc() + v.lf() / 2; m = 0; switch (this.CE) { case f.Bo: m = this.width / 2 - v / 2; break; case f.q7: m = this.width - v } if (0 != m) for (v = 0; v < k; v++)(u = h + v + d, 0 > u || !(u = this.Za(u))) || (u.x += m); h += k; d++; e.length = 0 } } else e.push(this.td[h]) }, sGa: function(c) { this.CE = c; this.Bl() }, Ara: function() { return this.CE }, BGa: function(c) { this.RG = c; this.Bl() }, vF: function() { return this.RG }, B3a: function(c) { this.R$ = c; this.Bl() }, ib: function(c, d) { f.v.prototype.ib.call(this, c, d); this.Bl() }, jb: function(c) { f.v.prototype.jb.call(this, c); this.Bl() }, tb: function(c) { f.v.prototype.tb.call(this, c); this.Bl() }, GC: function(c) { if (null != c && c != this.qF) { var d = f.L.zd(c); d ? (this.qF = c, this.Fk = d, c = f.nb.vd(d.dca), this.Ba = d = c.ie, this.texture = c, f.K === f.fb && (this.qi = this.texture), d ? this.QO() : c.oe(function(c) { this.Ba = !0; this.texture = c; this.QO(); this.Us(); this.Bl(); this.jf() }, this)) : f.log("cc.LabelBMFont.setFntFile() : Impossible to create font. Please check file") } }, WTa: function() { return this.qF }, S: function(c, d) { f.v.prototype.S.call(this, c, d); this.Bl() }, Uaa: function(c) { f.v.prototype.Uaa.call(this, c); this.Bl() }, Xe: function(c) { f.v.prototype.Xe.call(this, c); this.Bl() }, Ye: function(c) { f.v.prototype.Ye.call(this, c); this.Bl() }, yNa: function() {}, uOa: function(c, d) { var e = 0; if (this.Rqa.mDa) { var g = this.Rqa.mDa[(c << 16 | d & 65535).toString()]; g && (e = g.JPa) } return e }, vW: function(c) { return c.Vc() * this.ka - c.lf() * this.ka * c.Eb.x }, Rra: function(c) { return c.Vc() * this.ka + c.lf() * this.ka * c.Eb.x } }); q = f.qq.prototype; f.d(q, "opacityModifyRGB", q.vg, q.ee); f.d(q, "opacity", q.vb, q.J); f.d(q, "cascadeOpacity", q.WH, q.Hu); f.d(q, "color", q.$a, q.F); f.d(q, "cascadeColor", q.VH, q.Gu); f.d(q, "string", q.qc, q.Oua); f.d(q, "boundingWidth", q.vF, q.BGa); f.d(q, "textAlign", q.Ara, q.sGa); f.qq.create = function(c, d, e, g, h) { return new f.qq(c, d, e, g, h) }; f.W0 = function(c) { c = c.charCodeAt(0); return 9 <= c && 13 >= c || 32 == c || 133 == c || 160 == c || 5760 == c || 8192 <= c && 8202 >= c || 8232 == c || 8233 == c || 8239 == c || 8287 == c || 12288 == c }; f.Lia = function(c) { var d = c.length; if (!(0 >= d) && (d -= 1, f.W0(c[d]))) { for (var e = d - 1; 0 <= e; --e) if (f.W0(c[e])) d = e; else break; f.kJa(c, d) } }; f.kJa = function(c, d) { var e = c.length; d >= e || 0 > d || c.splice(d, e) }; f.ura = { Sla: /info [^\n]*(\n|$)/gi, Tja: /common [^\n]*(\n|$)/gi, Xma: /page [^\n]*(\n|$)/gi, Sja: /char [^\n]*(\n|$)/gi, $la: /kerning [^\n]*(\n|$)/gi, Ula: /\w+=[^ \r\n]+/gi, Tla: /^[\-]?\d+$/, YF: function(c) { c = c.match(this.Ula); var d = {}; if (c) for (var e = 0, g = c.length; e < g; e++) { var h = c[e], k = h.indexOf("\x3d"), m = h.substring(0, k), h = h.substring(k + 1); h.match(this.Tla) ? h = parseInt(h) : '"' == h[0] && (h = h.substring(1, h.length - 1)); d[m] = h } return d }, rEa: function(c, d) { var e = {}; this.YF(c.match(this.Sla)[0]); var g = this.YF(c.match(this.Tja)[0]); e.j_ = g.lineHeight; if (f.K === f.na) { var h = f.tB.MF; (g.scaleW > h.width || g.scaleH > h.height) && f.log("cc.LabelBMFont._parseCommonArguments(): page can't be larger than supported") } 1 !== g.pages && f.log("cc.LabelBMFont._parseCommonArguments(): only supports 1 page"); g = this.YF(c.match(this.Xma)[0]); 0 !== g.id && f.log("cc.LabelBMFont._parseImageFileName() : file could not be found"); e.dca = f.path.pB(d, g.file); for (var k = c.match(this.Sja), m = e.iza = {}, g = 0, h = k.length; g < h; g++) { var n = this.YF(k[g]); m[n.id] = { rect: { x: n.x, y: n.y, width: n.width, height: n.height }, Pia: n.xoffset, Qia: n.yoffset, rJa: n.xadvance } } k = e.lDa = {}; if (m = c.match(this.$la)) for (g = 0, h = m.length; g < h; g++) n = this.YF(m[g]), k[n.first << 16 | n.second & 65535] = n.amount; return e }, load: function(c, d, e, g) { var h = this; f.L.lQ(c, function(c, e) { if (c) return g(c); g(null, h.rEa(e, d)) }) } }; f.L.Xp(["fnt"], f.ura); f.g6 = f.ja.extend({ texture: null, DB: !1, dq: !1, B: null, AG: 0, dW: 0, ew: 0, bX: 0, zt: 0, LX: 0, BX: null, AX: null, ec: null, yz: null, Vk: null, rg: null, zz: null, VA: null, ta: "MotionStreak", ctor: function(c, d, e, g, h) { f.ja.prototype.ctor.call(this); this.em = r(0, 0); this.B = new f.Um(f.SRC_ALPHA, f.ONE_MINUS_SRC_ALPHA); this.gZ = f.s.createBuffer(); this.dq = this.DB = !1; this.texture = null; this.LX = this.zt = this.bX = this.ew = this.dW = this.AG = 0; this.VA = this.zz = this.rg = this.Vk = this.yz = this.ec = this.AX = this.BX = null; void 0 !== h && this.tCa(c, d, e, g, h) }, sb: function() { return this.texture }, ab: function(c) { this.texture != c && (this.texture = c) }, ck: function() { return this.B }, ce: function(c, d) { void 0 === d ? this.B = c : (this.B.src = c, this.B.ha = d) }, vb: function() { f.log("cc.MotionStreak.getOpacity has not been supported."); return 0 }, J: function() { f.log("cc.MotionStreak.setOpacity has not been supported.") }, ee: function() {}, vg: function() { return !1 }, Ra: function() { f.v.prototype.Ra.call(this); this.rg && f.s.deleteBuffer(this.rg); this.VA && f.s.deleteBuffer(this.VA); this.zz && f.s.deleteBuffer(this.zz) }, CXa: function() { return this.DB }, d3a: function(c) { this.DB = c }, WXa: function() { return this.dq }, l4a: function(c) { this.dq = c }, tCa: function(c, d, e, g, h) { if (!h) throw "cc.MotionStreak.initWithFade(): Invalid filename or texture"; "string" === typeof h && (h = f.nb.vd(h)); f.v.prototype.o.call(this, r(0, 0)); this.anchorY = this.anchorX = 0; this.ignoreAnchor = !0; this.dq = !1; this.DB = !0; this.ew = -1 == d ? e / 5 : d; this.ew *= this.ew; this.AG = e; this.dW = 1 / c; c = (0 | 60 * c) + 2; this.zt = 0; this.AX = new Float32Array(c); this.BX = new Float32Array(2 * c); this.ec = new Float32Array(4 * c); this.Vk = new Float32Array(4 * c); this.yz = new Uint8Array(8 * c); this.bX = c; c = f.s; this.rg = c.createBuffer(); this.VA = c.createBuffer(); this.zz = c.createBuffer(); this.B.src = c.SRC_ALPHA; this.B.ha = c.ONE_MINUS_SRC_ALPHA; this.shaderProgram = f.xg.be(f.zo); this.texture = h; this.color = g; this.ds(); c.bindBuffer(c.ARRAY_BUFFER, this.rg); c.bufferData(c.ARRAY_BUFFER, this.ec, c.DYNAMIC_DRAW); c.bindBuffer(c.ARRAY_BUFFER, this.VA); c.bufferData(c.ARRAY_BUFFER, this.Vk, c.DYNAMIC_DRAW); c.bindBuffer(c.ARRAY_BUFFER, this.zz); c.bufferData(c.ARRAY_BUFFER, this.yz, c.DYNAMIC_DRAW); return !0 }, A5a: function(c) { this.color = c; for (var d = this.yz, e = 0, g = 2 * this.zt; e < g; e++) d[4 * e] = c.r, d[4 * e + 1] = c.g, d[4 * e + 2] = c.b }, reset: function() { this.zt = 0 }, o: function(c, d) { this.dq = !0; void 0 === d ? (this.em.x = c.x, this.em.y = c.y) : (this.em.x = c, this.em.y = d) }, Vc: function() { return this.em.x }, ls: function(c) { this.em.x = c; this.dq || (this.dq = !0) }, Zd: function() { return this.em.y }, Lu: function(c) { this.em.y = c; this.dq || (this.dq = !0) }, ma: function(c) { 1 >= this.zt || !this.texture || !this.texture.ie || (c = c || f.s, f.qC(this), f.wf(f.tv), f.Fm(this.B.src, this.B.ha), f.Ai(this.texture), c.bindBuffer(c.ARRAY_BUFFER, this.rg), c.bufferData(c.ARRAY_BUFFER, this.ec, c.DYNAMIC_DRAW), c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.VA), c.bufferData(c.ARRAY_BUFFER, this.Vk, c.DYNAMIC_DRAW), c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, 0, 0), c.bindBuffer(c.ARRAY_BUFFER, this.zz), c.bufferData(c.ARRAY_BUFFER, this.yz, c.DYNAMIC_DRAW), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 0, 0), c.drawArrays(c.TRIANGLE_STRIP, 0, 2 * this.zt), f.bl++) }, update: function(c) { if (this.dq) { c *= this.dW; var d, e, g, h, k = 0, m = this.zt, n = this.AX, p = this.BX, s = this.ec, u = this.yz; for (g = 0; g < m; g++) n[g] -= c, 0 >= n[g] ? k++ : (d = g - k, 0 < k ? (n[d] = n[g], p[2 * d] = p[2 * g], p[2 * d + 1] = p[2 * g + 1], h = 2 * g, e = 2 * d, s[2 * e] = s[2 * h], s[2 * e + 1] = s[2 * h + 1], s[2 * (e + 1)] = s[2 * (h + 1)], s[2 * (e + 1) + 1] = s[2 * (h + 1) + 1], h *= 4, e *= 4, u[e + 0] = u[h + 0], u[e + 1] = u[h + 1], u[e + 2] = u[h + 2], u[e + 4] = u[h + 4], u[e + 5] = u[h + 5], u[e + 6] = u[h + 6]) : e = 8 * d, d = 255 * n[d], u[e + 3] = d, u[e + 7] = d); m -= k; g = !0; m >= this.bX ? g = !1 : 0 < m && (c = 1 == m ? !1 : f.Ifa(r(p[2 * (m - 2)], p[2 * (m - 2) + 1]), this.em) < 2 * this.ew, f.Ifa(r(p[2 * (m - 1)], p[2 * (m - 1) + 1]), this.em) < this.ew || c) && (g = !1); g && (p[2 * m] = this.em.x, p[2 * m + 1] = this.em.y, n[m] = 1, g = 8 * m, n = this.Ab, u[g] = n.r, u[g + 1] = n.g, u[g + 2] = n.b, u[g + 4] = n.r, u[g + 5] = n.g, u[g + 6] = n.b, u[g + 3] = 255, u[g + 7] = 255, 0 < m && this.DB && (1 < m ? f.H3(p, this.AG, this.ec, m, 1) : f.H3(p, this.AG, this.ec, 0, 2)), m++); this.DB || f.H3(p, this.AG, this.ec, 0, m); if (m && this.LX != m) { p = 1 / m; u = this.Vk; for (g = 0; g < m; g++) u[4 * g] = 0, u[4 * g + 1] = p * g, u[2 * (2 * g + 1)] = 1, u[2 * (2 * g + 1) + 1] = p * g; this.LX = m } this.zt = m } } }); f.g6.create = function(c, d, e, g, h) { return new f.g6(c, d, e, g, h) }; f.mT = f.v.extend({ grid: null, ad: null, vH: function() { return this.grid }, UGa: function(c) { this.grid = c }, ZI: function(c) { this.ad = c }, n: function(c, d, e) { f.v.prototype.n.call(this, c, d, e); c && !this.ad && (this.ad = c) }, I: function() { if (this.Na) { var c = f.K == f.na, d = this.grid; c && d && d.ah && d.dx(); this.transform(); var e = this.i; if (e && 0 < e.length) { var g = e.length; this.kd(); for (i = 0; i < g; i++) { var h = e[i]; h && h.I() } } c && d && d.ah && d.ax(this.ad) } }, pva: function() { var c = this.UY, d = f.Md.top, e = this.se(), g = c.c; g[0] = e.a; g[4] = e.G; g[12] = e.pa; g[1] = e.b; g[5] = e.P; g[13] = e.qa; g[14] = this.PG; f.Np(d, d, c); null == this.Hq || this.grid && this.grid.Bi() || (c = this.Qb.x, d = this.Qb.y, 0 !== c || 0 !== d ? (f.LT || (c |= 0, d |= 0), f.bC(c, d), this.Hq.gI(), f.bC(-c, -d)) : this.Hq.gI()) } }); q = f.mT.prototype; f.K === f.na && (q.transform = q.pva); f.d(q, "target", null, q.ZI); f.mT.create = function() { return new f.mT }; f.Q5a = function() { return { x: 0, y: 0 } }; f.Uu = function(c, d) { return { x: c, y: d } }; f.Ji = function(c, d) { return f.Uu(c.x + d.x, c.y + d.y) }; f.Ke = function(c, d) { return f.Uu(c.x - d.x, c.y - d.y) }; f.Ug = function(c, d) { return f.Uu(c.x * d, c.y * d) }; f.ZC = function(c) { return f.Uu(-c.y, c.x) }; f.Dl = function(c) { return f.Uu(-c.x, -c.y) }; f.Mia = function(c, d) { return c.x * d.x + c.y * d.y }; f.P5a = function(c) { return f.Uu(Math.cos(c), Math.sin(c)) }; f.tJ = function(c) { c = f.Af(r(c.x, c.y)); return f.Uu(c.x, c.y) }; f.Ni = function(c) { return f.Uu(c.x, c.y) }; f.Pb = function(c) { return { Da: c.x, ga: c.y } }; f.ela = f.v.extend({ cc: null, B: null, ig: 1, Oj: null, ta: "DrawNodeCanvas", ctor: function() { f.v.prototype.ctor.call(this); this.cc = []; this.Oj = f.color(255, 255, 255, 255); this.B = new f.Um(f.Mc, f.Lc); this.j() }, ck: function() { return this.B }, ce: function(c, d) { void 0 === d ? (this.B.src = c.src, this.B.ha = c.ha) : (this.B.src = c, this.B.ha = d) }, Ju: function(c) { this.ig = c }, rAa: function() { return this.ig }, wj: function(c) { var d = this.Oj; d.r = c.r; d.g = c.g; d.b = c.b; d.a = null == c.a ? 255 : c.a }, rh: function() { return f.color(this.Oj.r, this.Oj.g, this.Oj.b, this.Oj.a) }, E_: function(c, d, e, g, h) { g = g || this.ig; h = h || this.rh(); null == h.a && (h.a = 255); c = [c, r(d.x, c.y), d, r(c.x, d.y)]; d = new f.Fs(f.Yg.Bs); d.zg = c; d.lineWidth = g; d.Tr = h; d.TP = !0; d.tu = !0; d.lineCap = "butt"; if (d.fillColor = e) null == e.a && (e.a = 255), d.S0 = !0; this.cc.push(d) }, y_: function(c, d, e, g, h, k, m) { k = k || this.ig; m = m || this.rh(); null == m.a && (m.a = 255); for (var n = 2 * Math.PI / g, p = [], s = 0; s <= g; s++) { var u = s * n; p.push(r(d * Math.cos(u + e) + c.x, d * Math.sin(u + e) + c.y)) } h && p.push(r(c.x, c.y)); c = new f.Fs(f.Yg.Bs); c.zg = p; c.lineWidth = k; c.Tr = m; c.TP = !0; c.tu = !0; this.cc.push(c) }, D_: function(c, d, e, g, h, k) { h = h || this.ig; k = k || this.rh(); null == k.a && (k.a = 255); for (var m = [], n = 0, p = 0; p < g; p++) m.push(r(Math.pow(1 - n, 2) * c.x + 2 * (1 - n) * n * d.x + n * n * e.x, Math.pow(1 - n, 2) * c.y + 2 * (1 - n) * n * d.y + n * n * e.y)), n += 1 / g; m.push(r(e.x, e.y)); c = new f.Fs(f.Yg.Bs); c.zg = m; c.lineWidth = h; c.Tr = k; c.tu = !0; c.lineCap = "round"; this.cc.push(c) }, z_: function(c, d, e, g, h, k, m) { k = k || this.ig; m = m || this.rh(); null == m.a && (m.a = 255); for (var n = [], p = 0, s = 0; s < h; s++) n.push(r(Math.pow(1 - p, 3) * c.x + 3 * Math.pow(1 - p, 2) * p * d.x + 3 * (1 - p) * p * p * e.x + p * p * p * g.x, Math.pow(1 - p, 3) * c.y + 3 * Math.pow(1 - p, 2) * p * d.y + 3 * (1 - p) * p * p * e.y + p * p * p * g.y)), p += 1 / h; n.push(r(g.x, g.y)); c = new f.Fs(f.Yg.Bs); c.zg = n; c.lineWidth = k; c.Tr = m; c.tu = !0; c.lineCap = "round"; this.cc.push(c) }, x_: function(c, d, e, g) { this.px(c, 0.5, d, e, g) }, px: function(c, d, e, g, h) { g = g || this.ig; h = h || this.rh(); null == h.a && (h.a = 255); for (var k = [], m, n, p = 1 / c.length, s = 0; s < e + 1; s++) n = s / e, 1 == n ? (m = c.length - 1, n = 1) : (m = 0 | n / p, n = (n - p * m) / p), m = f.a_(f.tg(c, m - 1), f.tg(c, m - 0), f.tg(c, m + 1), f.tg(c, m + 2), d, n), k.push(m); c = new f.Fs(f.Yg.Bs); c.zg = k; c.lineWidth = g; c.Tr = h; c.tu = !0; c.lineCap = "round"; this.cc.push(c) }, A_: function(c, d, e) { e = e || this.rh(); null == e.a && (e.a = 255); var g = new f.Fs(f.Yg.w7); g.zg = [c]; g.lineWidth = d; g.fillColor = e; this.cc.push(g) }, eya: function(c, d, e) { if (c && 0 != c.length) { e = e || this.rh(); null == e.a && (e.a = 255); for (var g = 0, h = c.length; g < h; g++) this.A_(c[g], d, e) } }, F_: function(c, d, e, g) { e = e || this.ig; g = g || this.rh(); null == g.a && (g.a = 255); var h = new f.Fs(f.Yg.Bs); h.zg = [c, d]; h.lineWidth = 2 * e; h.Tr = g; h.tu = !0; h.lineCap = "round"; this.cc.push(h) }, hya: function(c, d, e, g) { e = e || this.ig; g = g || this.rh(); null == g.a && (g.a = 255); var h = new f.Fs(f.Yg.Bs); h.zg = c; h.fillColor = d; h.lineWidth = e; h.Tr = g; h.TP = !0; h.tu = !0; h.lineCap = "round"; d && (h.S0 = !0); this.cc.push(h) }, Sf: function(c, d, e, g) { for (var h = [], k = 0; k < c.length; k++) h.push(r(c[k].x, c[k].y)); return this.hya(h, d, e, g) }, ma: function(c) { c = c || f.s; this.B && this.B.src == f.SRC_ALPHA && this.B.ha == f.ONE && (c.globalCompositeOperation = "lighter"); for (var d = 0; d < this.cc.length; d++) { var e = this.cc[d]; switch (e.type) { case f.Yg.w7: this.dra(c, e); break; case f.Yg.Soa: this.fra(c, e); break; case f.Yg.Bs: this.era(c, e) } } }, dra: function(c, d) { var e = d.fillColor, g = d.zg[0], h = d.lineWidth, k = f.view.ka, m = f.view.ra; c.fillStyle = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + "," + e.a / 255 + ")"; c.beginPath(); c.arc(g.x * k, -g.y * m, h * k, 0, 2 * Math.PI, !1); c.closePath(); c.fill() }, fra: function(c, d) { var e = d.Tr, g = d.zg[0], h = d.zg[1], k = d.lineWidth, m = d.lineCap, n = f.view.ka, p = f.view.ra; c.strokeStyle = "rgba(" + (0 | e.r) + "," + (0 | e.g) + "," + (0 | e.b) + "," + e.a / 255 + ")"; c.lineWidth = k * n; c.beginPath(); c.lineCap = m; c.moveTo(g.x * n, -g.y * p); c.lineTo(h.x * n, -h.y * p); c.stroke() }, era: function(c, d) { var e = d.zg, g = d.lineCap, h = d.fillColor, k = d.lineWidth, m = d.Tr, n = d.TP, p = d.S0, s = d.tu; if (null != e) { var u = e[0], v = f.view.ka, z = f.view.ra; c.lineCap = g; h && (c.fillStyle = "rgba(" + (0 | h.r) + "," + (0 | h.g) + "," + (0 | h.b) + "," + h.a / 255 + ")"); k && (c.lineWidth = k * v); m && (c.strokeStyle = "rgba(" + (0 | m.r) + "," + (0 | m.g) + "," + (0 | m.b) + "," + m.a / 255 + ")"); c.beginPath(); c.moveTo(u.x * v, -u.y * z); g = 1; for (h = e.length; g < h; g++) c.lineTo(e[g].x * v, -e[g].y * z); n && c.closePath(); p && c.fill(); s && c.stroke() } }, clear: function() { this.cc.length = 0 } }); f.fla = f.v.extend({ nz: 0, cc: null, zr: null, tba: null, sba: null, ig: 1, Oj: null, B: null, Ec: !1, ta: "DrawNodeWebGL", ck: function() { return this.B }, ce: function(c, d) { void 0 === d ? (this.B.src = c.src, this.B.ha = c.ha) : (this.B.src = c, this.B.ha = d) }, ctor: function() { f.v.prototype.ctor.call(this); this.cc = []; this.B = new f.Um(f.Mc, f.Lc); this.Oj = f.color(255, 255, 255, 255); this.j() }, j: function() { return f.v.prototype.j.call(this) ? (this.shaderProgram = f.xg.be(f.c7), this.lF(64), this.tba = f.s.createBuffer(), this.Ec = !0) : !1 }, Ju: function(c) { this.ig = c }, rAa: function() { return this.ig }, wj: function(c) { var d = this.Oj; d.r = c.r; d.g = c.g; d.b = c.b; d.a = c.a }, rh: function() { return f.color(this.Oj.r, this.Oj.g, this.Oj.b, this.Oj.a) }, E_: function(c, d, e, g, h) { g = g || this.ig; h = h || this.rh(); null == h.a && (h.a = 255); c = [c, r(d.x, c.y), d, r(c.x, d.y)]; null == e ? this.OL(c, g, h, !0) : this.Sf(c, e, g, h) }, y_: function(c, d, e, g, h, k, m) { k = k || this.ig; m = m || this.rh(); null == m.a && (m.a = 255); var n = 2 * Math.PI / g, p = [], s; for (s = 0; s <= g; s++) { var u = s * n; p.push(r(d * Math.cos(u + e) + c.x, d * Math.sin(u + e) + c.y)) } h && p.push(r(c.x, c.y)); k *= 0.5; s = 0; for (c = p.length; s < c - 1; s++) this.F_(p[s], p[s + 1], k, m) }, D_: function(c, d, e, g, h, k) { h = h || this.ig; k = k || this.rh(); null == k.a && (k.a = 255); for (var m = [], n = 0, p = 0; p < g; p++) m.push(r(Math.pow(1 - n, 2) * c.x + 2 * (1 - n) * n * d.x + n * n * e.x, Math.pow(1 - n, 2) * c.y + 2 * (1 - n) * n * d.y + n * n * e.y)), n += 1 / g; m.push(r(e.x, e.y)); this.OL(m, h, k, !1) }, z_: function(c, d, e, g, h, k, m) { k = k || this.ig; m = m || this.rh(); null == m.a && (m.a = 255); for (var n = [], p = 0, s = 0; s < h; s++) n.push(r(Math.pow(1 - p, 3) * c.x + 3 * Math.pow(1 - p, 2) * p * d.x + 3 * (1 - p) * p * p * e.x + p * p * p * g.x, Math.pow(1 - p, 3) * c.y + 3 * Math.pow(1 - p, 2) * p * d.y + 3 * (1 - p) * p * p * e.y + p * p * p * g.y)), p += 1 / h; n.push(r(g.x, g.y)); this.OL(n, k, m, !1) }, x_: function(c, d, e, g) { this.px(c, 0.5, d, e, g) }, px: function(c, d, e, g, h) { g = g || this.ig; h = h || this.rh(); null == h.a && (h.a = 255); for (var k = [], m, n, p = 1 / c.length, s = 0; s < e + 1; s++) n = s / e, 1 == n ? (m = c.length - 1, n = 1) : (m = 0 | n / p, n = (n - p * m) / p), m = f.a_(f.tg(c, m - 1), f.tg(c, m - 0), f.tg(c, m + 1), f.tg(c, m + 2), d, n), k.push(m); g *= 0.5; c = 0; for (d = k.length; c < d - 1; c++) this.F_(k[c], k[c + 1], g, h) }, Ht: function() { var c = f.s; f.wf(f.tv); c.bindBuffer(c.ARRAY_BUFFER, this.tba); this.Ec && (c.bufferData(c.ARRAY_BUFFER, this.zr, c.STREAM_DRAW), this.Ec = !1); var d = f.Zg.BYTES_PER_ELEMENT; c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, d, 0); c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, d, 8); c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, d, 12); c.drawArrays(c.TRIANGLES, 0, 3 * this.cc.length); f.el() }, lF: function(c) { var d = this.cc; if (d.length + c > this.nz) { var e = f.ge.BYTES_PER_ELEMENT; this.nz += Math.max(this.nz, c); if (null == d || 0 === d.length) this.cc = [], this.zr = new ArrayBuffer(e * this.nz), this.sba = new Uint8Array(this.zr); else { c = []; for (var g = new ArrayBuffer(e * this.nz), h = 0; h < d.length; h++) c[h] = new f.ge(d[h].a, d[h].b, d[h].G, g, h * e); this.sba = new Uint8Array(g); this.zr = g; this.cc = c } } }, ma: function() { f.Fm(this.B.src, this.B.ha); this.sd.Ff(); this.sd.dJ(); this.Ht() }, A_: function(c, d, e) { e = e || this.rh(); null == e.a && (e.a = 255); var g = { r: 0 | e.r, g: 0 | e.g, b: 0 | e.b, a: 0 | e.a }; e = { k: { x: c.x - d, y: c.y - d }, D: g, t: { Da: -1, ga: -1 } }; var h = { k: { x: c.x - d, y: c.y + d }, D: g, t: { Da: -1, ga: 1 } }, k = { k: { x: c.x + d, y: c.y + d }, D: g, t: { Da: 1, ga: 1 } }; c = { k: { x: c.x + d, y: c.y - d }, D: g, t: { Da: 1, ga: -1 } }; this.lF(6); this.cc.push(new f.ge(e, h, k, this.zr, this.cc.length * f.ge.BYTES_PER_ELEMENT)); this.cc.push(new f.ge(e, k, c, this.zr, this.cc.length * f.ge.BYTES_PER_ELEMENT)); this.Ec = !0 }, eya: function(c, d, e) { if (c && 0 != c.length) { e = e || this.rh(); null == e.a && (e.a = 255); for (var g = 0, h = c.length; g < h; g++) this.A_(c[g], d, e) } }, F_: function(c, d, e, g) { g = g || this.rh(); null == g.a && (g.a = 255); e = e || 0.5 * this.ig; this.lF(18); g = { r: 0 | g.r, g: 0 | g.g, b: 0 | g.b, a: 0 | g.a }; var h = f.Ni(c); d = f.Ni(d); c = f.tJ(f.ZC(f.Ke(d, h))); var k = f.ZC(c), m = f.Ug(c, e); e = f.Ug(k, e); var n = f.Ji(d, f.Ke(m, e)), p = f.Ke(d, m), s = f.Ji(d, m), u = f.Ke(h, m), v = f.Ji(h, m), z = f.Ke(h, f.Ke(m, e)), h = f.Ji(h, f.Ji(m, e)), A = f.ge.BYTES_PER_ELEMENT, B = this.zr, C = this.cc; C.push(new f.ge({ k: f.Ke(d, f.Ji(m, e)), D: g, t: f.Pb(f.Dl(f.Ji(c, k))) }, { k: n, D: g, t: f.Pb(f.Ke(c, k)) }, { k: p, D: g, t: f.Pb(f.Dl(c)) }, B, C.length * A)); C.push(new f.ge({ k: s, D: g, t: f.Pb(c) }, { k: n, D: g, t: f.Pb(f.Ke(c, k)) }, { k: p, D: g, t: f.Pb(f.Dl(c)) }, B, C.length * A)); C.push(new f.ge({ k: s, D: g, t: f.Pb(c) }, { k: u, D: g, t: f.Pb(f.Dl(c)) }, { k: p, D: g, t: f.Pb(f.Dl(c)) }, B, C.length * A)); C.push(new f.ge({ k: s, D: g, t: f.Pb(c) }, { k: u, D: g, t: f.Pb(f.Dl(c)) }, { k: v, D: g, t: f.Pb(c) }, B, C.length * A)); C.push(new f.ge({ k: z, D: g, t: f.Pb(f.Ke(k, c)) }, { k: u, D: g, t: f.Pb(f.Dl(c)) }, { k: v, D: g, t: f.Pb(c) }, B, C.length * A)); C.push(new f.ge({ k: z, D: g, t: f.Pb(f.Ke(k, c)) }, { k: h, D: g, t: f.Pb(f.Ji(c, k)) }, { k: v, D: g, t: f.Pb(c) }, B, C.length * A)); this.Ec = !0 }, Sf: function(c, d, e, g) { if (null == d) this.OL(c, e, g, !0); else { null == d.a && (d.a = 255); null == g.a && (g.a = 255); e = e || this.ig; e *= 0.5; d = { r: 0 | d.r, g: 0 | d.g, b: 0 | d.b, a: 0 | d.a }; g = { r: 0 | g.r, g: 0 | g.g, b: 0 | g.b, a: 0 | g.a }; var h = [], k, m, n, p, s = c.length; for (k = 0; k < s; k++) { m = f.Ni(c[(k - 1 + s) % s]); n = f.Ni(c[k]); p = f.Ni(c[(k + 1) % s]); var u = f.tJ(f.ZC(f.Ke(n, m))); n = f.tJ(f.ZC(f.Ke(p, n))); h[k] = { offset: f.Ug(f.Ji(u, n), 1 / (f.Mia(u, n) + 1)), Xr: n } } u = 0 < e; this.lF(3 * (3 * s - 2)); var v = f.ge.BYTES_PER_ELEMENT, z = this.zr, A = this.cc, B = !1 == u ? 0.5 : 0; for (k = 0; k < s - 2; k++) m = f.Ke(f.Ni(c[0]), f.Ug(h[0].offset, B)), n = f.Ke(f.Ni(c[k + 1]), f.Ug(h[k + 1].offset, B)), p = f.Ke(f.Ni(c[k + 2]), f.Ug(h[k + 2].offset, B)), A.push(new f.ge({ k: m, D: d, t: f.Pb({ x: 0, y: 0 }) }, { k: n, D: d, t: f.Pb({ x: 0, y: 0 }) }, { k: p, D: d, t: f.Pb({ x: 0, y: 0 }) }, z, A.length * v)); for (k = 0; k < s; k++) { B = (k + 1) % s; m = f.Ni(c[k]); n = f.Ni(c[B]); p = h[k].Xr; var C = h[k].offset, G = h[B].offset, B = u ? f.Ke(m, f.Ug(C, e)) : f.Ke(m, f.Ug(C, 0.5)), L = u ? f.Ke(n, f.Ug(G, e)) : f.Ke(n, f.Ug(G, 0.5)); m = u ? f.Ji(m, f.Ug(C, e)) : f.Ji(m, f.Ug(C, 0.5)); n = u ? f.Ji(n, f.Ug(G, e)) : f.Ji(n, f.Ug(G, 0.5)); u ? (A.push(new f.ge({ k: B, D: g, t: f.Pb(f.Dl(p)) }, { k: L, D: g, t: f.Pb(f.Dl(p)) }, { k: n, D: g, t: f.Pb(p) }, z, A.length * v)), A.push(new f.ge({ k: B, D: g, t: f.Pb(f.Dl(p)) }, { k: m, D: g, t: f.Pb(p) }, { k: n, D: g, t: f.Pb(p) }, z, A.length * v))) : (A.push(new f.ge({ k: B, D: d, t: f.Pb({ x: 0, y: 0 }) }, { k: L, D: d, t: f.Pb({ x: 0, y: 0 }) }, { k: n, D: d, t: f.Pb(p) }, z, A.length * v)), A.push(new f.ge({ k: B, D: d, t: f.Pb({ x: 0, y: 0 }) }, { k: m, D: d, t: f.Pb(p) }, { k: n, D: d, t: f.Pb(p) }, z, A.length * v))) } this.Ec = !0 } }, OL: function(c, d, e, g) { d = d || this.ig; e = e || this.Oj; 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 h = [], k, m, n, p, s = c.length; for (k = 0; k < s; k++) { m = f.Ni(c[(k - 1 + s) % s]); n = f.Ni(c[k]); p = f.Ni(c[(k + 1) % s]); var u = f.tJ(f.ZC(f.Ke(n, m))); n = f.tJ(f.ZC(f.Ke(p, n))); h[k] = { offset: f.Ug(f.Ji(u, n), 1 / (f.Mia(u, n) + 1)), Xr: n } } this.lF(3 * (3 * s - 2)); p = f.ge.BYTES_PER_ELEMENT; var u = this.zr, v = this.cc; g = g ? s : s - 1; for (k = 0; k < g; k++) { var z = (k + 1) % s; m = f.Ni(c[k]); n = f.Ni(c[z]); var A = h[k].Xr, B = h[k].offset, z = h[z].offset, C = f.Ke(m, f.Ug(B, d)); m = f.Ji(m, f.Ug(B, d)); B = f.Ji(n, f.Ug(z, d)); v.push(new f.ge({ k: C, D: e, t: f.Pb(f.Dl(A)) }, { k: f.Ke(n, f.Ug(z, d)), D: e, t: f.Pb(f.Dl(A)) }, { k: B, D: e, t: f.Pb(A) }, u, v.length * p)); v.push(new f.ge({ k: C, D: e, t: f.Pb(f.Dl(A)) }, { k: m, D: e, t: f.Pb(A) }, { k: B, D: e, t: f.Pb(A) }, u, v.length * p)) } this.Ec = !0 } }, clear: function() { this.cc.length = 0; this.Ec = !0 } }); f.Yg = f.K == f.na ? f.fla : f.ela; f.Yg.create = function() { return new f.Yg }; f.Fs = function(c) { this.type = c; this.fillColor = this.zg = null; this.lineWidth = 0; this.Tr = null; this.lineCap = "butt"; this.tu = this.S0 = this.TP = !1 }; f.Yg.w7 = 0; f.Yg.Soa = 1; f.Yg.Bs = 2; f.ly = -1; f.wha = function(c, d) { c.shaderProgram = d; var e = c.children; if (e) for (var g = 0; g < e.length; g++) f.wha(e[g], d) }; f.Wc = f.v.extend({ bx: 0, Xn: !1, Wd: null, BF: !1, ctor: function(c) { f.v.prototype.ctor.call(this); this.Wd = null; this.bx = 0; this.Xn = !1; f.Wc.prototype.j.call(this, c || null) }, j: null, ta: "ClippingNode", xsa: function(c) { this.Wd = c; this.bx = 1; this.Xn = !1; f.Wc.tM = !0; f.Wc.tM && (f.ly = f.s.getParameter(f.s.STENCIL_BITS), 0 >= f.ly && f.log("Stencil buffer is not enabled."), f.Wc.tM = !1); return !0 }, wsa: function(c) { this.Wd = c; this.bx = 1; this.Xn = !1 }, ba: function() { f.v.prototype.ba.call(this); this.Wd.ba() }, sj: function() { f.v.prototype.sj.call(this); this.Wd.sj() }, uh: function() { this.Wd.uh(); f.v.prototype.uh.call(this) }, Ra: function() { this.Wd.Ra(); f.v.prototype.Ra.call(this) }, I: null, Uw: function(c) { var d = c || f.s; if (1 > f.ly) f.v.prototype.I.call(this, c); else if (this.Wd && this.Wd.visible) if (f.Wc.rn = -1, f.Wc.rn + 1 == f.ly) f.Wc.Vw = !0, f.Wc.Vw && (f.log("Nesting more than " + f.ly + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), f.Wc.Vw = !1), f.v.prototype.I.call(this, c); else { f.Wc.rn++; var e = 1 << f.Wc.rn, g = e | e - 1, h = d.isEnabled(d.STENCIL_TEST), k = d.getParameter(d.STENCIL_WRITEMASK), m = d.getParameter(d.STENCIL_FUNC), n = d.getParameter(d.STENCIL_REF), p = d.getParameter(d.STENCIL_VALUE_MASK), s = d.getParameter(d.STENCIL_FAIL), u = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL), v = d.getParameter(d.STENCIL_PASS_DEPTH_PASS); d.enable(d.STENCIL_TEST); d.stencilMask(e); var z = d.getParameter(d.DEPTH_WRITEMASK); d.depthMask(!1); d.stencilFunc(d.NEVER, e, e); d.stencilOp(this.Xn ? d.REPLACE : d.ZERO, d.KEEP, d.KEEP); f.If.H_(r(0, 0), f.Jfa(), f.color(255, 255, 255, 255)); d.stencilFunc(d.NEVER, e, e); d.stencilOp(this.Xn ? d.ZERO : d.REPLACE, d.KEEP, d.KEEP); if (1 > this.bx) { var e = f.xg.be(f.tK), A = d.getUniformLocation(e.Bx(), f.g8); f.x0(e.Bx()); e.bJ(A, this.bx); f.wha(this.Wd, e) } f.Rr(); this.transform(); this.Wd.I(); f.Qr(); d.depthMask(z); d.stencilFunc(d.EQUAL, g, g); d.stencilOp(d.KEEP, d.KEEP, d.KEEP); f.v.prototype.I.call(this, c); d.stencilFunc(m, n, p); d.stencilOp(s, u, v); d.stencilMask(k); h || d.disable(d.STENCIL_TEST); f.Wc.rn-- } else this.Xn && f.v.prototype.I.call(this, c) }, Br: function(c) { if (this.Wd && this.Wd.visible) { c = c || f.s; var d = c.canvas; if (this.Hv() || this.Wd instanceof f.q) { var e = f.Wc.AW(); e.width = d.width; e.height = d.height; e.getContext("2d").drawImage(d, 0, 0); c.save(); f.v.prototype.I.call(this, c); c.globalCompositeOperation = this.Xn ? "destination-out" : "destination-in"; this.transform(c); this.Wd.I(); c.restore(); c.save(); c.setTransform(1, 0, 0, 1, 0, 0); c.globalCompositeOperation = "destination-over"; c.drawImage(e, 0, 0) } else { var e = this.i, g; c.save(); this.transform(c); this.Wd.I(c); this.Xn && (c.save(), c.setTransform(1, 0, 0, 1, 0, 0), c.moveTo(0, 0), c.lineTo(0, d.height), c.lineTo(d.width, d.height), c.lineTo(d.width, 0), c.lineTo(0, 0), c.restore()); c.clip(); this.Hv(!0); var h = e.length; if (0 < h) { this.kd(); for (d = 0; d < h; d++) if (g = e[d], 0 > g.Ya) g.I(c); else break; for (this.ma(c); d < h; d++) e[d].I(c) } else this.ma(c); this.Hv(!1) } c.restore() } else this.Xn && f.v.prototype.I.call(this, c) }, sBa: function() { return this.Wd }, yR: null, Mua: function(c) { this.Wd = c }, Lua: function(c) { this.Wd = c; var d = f.s; !(c instanceof f.q) && c instanceof f.Yg && (c.ma = function() { var e = f.view.ka, g = f.view.ra; d.beginPath(); for (var h = 0; h < c.cc.length; h++) { var k = c.cc[h].zg, m = k[0]; d.moveTo(m.x * e, -m.y * g); for (var m = 1, n = k.length; m < n; m++) d.lineTo(k[m].x * e, -k[m].y * g) } }) }, XRa: function() { return this.bx }, s2a: function(c) { this.bx = c }, HXa: function() { return this.Xn }, v3a: function(c) { this.Xn = c }, Hv: function(c) { if (!0 === c || !1 === c) f.Wc.prototype.BF = c; return f.Wc.prototype.BF } }); q = f.Wc.prototype; f.K === f.na ? (q.j = q.xsa, q.I = q.Uw, q.yR = q.Mua) : (q.j = q.wsa, q.I = q.Br, q.yR = q.Lua); f.d(q, "stencil", q.sBa, q.yR); f.Wc.tM = null; f.Wc.Vw = null; f.Wc.rn = null; f.Wc.qG = null; f.Wc.AW = function() { return f.Wc.qG || (f.Wc.qG = document.createElement("canvas")) }; f.Wc.create = function(c) { return new f.Wc(c) }; f.Hy = f.N.extend({ ah: !1, np: 0, ya: null, fa: null, nm: null, Wz: null, Xv: !1, sd: null, KV: 0, Ec: !1, ctor: function(c, d, e) { f.tV(); this.ah = !1; this.np = 0; this.fa = this.ya = null; this.nm = r(0, 0); this.Wz = null; this.Xv = !1; this.sd = null; this.KV = 0; this.Ec = !1; void 0 !== c && this.Jp(c, d, e) }, Bi: function() { return this.ah }, setActive: function(c) { this.ah = c; c || (c = f.Q, c.ey(c.mp)) }, EVa: function() { return this.np }, FHa: function(c) { this.np = c }, $za: function() { return t(this.ya.width, this.ya.height) }, p3a: function(c) { this.ya.width = parseInt(c.width); this.ya.height = parseInt(c.height) }, q0: function() { return r(this.nm.x, this.nm.y) }, m4a: function(c) { this.nm.x = c.x; this.nm.y = c.y }, ZXa: function() { return this.Xv }, t4a: function(c) { this.Xv != c && (this.Xv = c, this.JO()) }, Jp: function(c, d, e) { if (!d) { var g = f.Q.KH(), h = f.xs(g.width), k = f.xs(g.height), m = new Uint8Array(h * k * 4); if (!m) return f.log("cocos2d: CCGrid: not enough memory."), !1; d = new f.Pa; d.su(m, f.Pa.sq, h, k, g); if (!d) return f.log("cocos2d: CCGrid: error creating texture"), !1 } this.ah = !1; this.np = 0; this.ya = c; this.fa = d; this.Xv = e || !1; this.nm.x = this.fa.width / c.width; this.nm.y = this.fa.height / c.height; this.Wz = new f.Lla; if (!this.Wz) return !1; this.Wz.WBa(this.fa); this.sd = f.xg.be(f.jE); this.JO(); return !0 }, dx: function() { this.KV = f.Q.mp; this.qGa(); this.Wz.Ewa(this.fa) }, ax: function(c) { this.Wz.Yva(this.fa); f.Q.ey(this.KV); if (c.yx().R0()) { var d = c.Bp(); f.bC(d.x, d.y); c.yx().gI(); f.bC(-d.x, -d.y) } f.Ai(this.fa); this.JZ() }, JZ: function() { f.log("cc.GridBase.blit(): Shall be overridden in subclass.") }, PQ: function() { f.log("cc.GridBase.reuse(): Shall be overridden in subclass.") }, JO: function() { f.log("cc.GridBase.calculateVertexPoints(): Shall be overridden in subclass.") }, qGa: function() { var c = f.Q.KH(); f.s.viewport(0, 0, c.width, c.height); f.Lp(f.nq); f.$B(); var d = new f.Ma; f.$0(d, 0, c.width, 0, c.height, -1, 1); f.aC(d); f.Lp(f.mq); f.$B(); f.yha() } }); f.Hy.create = function(c, d, e) { return new f.Hy(c, d, e) }; f.SS = f.Hy.extend({ pm: null, ec: null, hr: null, Tb: null, Uk: null, rg: null, Nk: null, ctor: function(c, d, e) { f.Hy.prototype.ctor.call(this); this.Nk = this.rg = this.Uk = this.Tb = this.hr = this.ec = this.pm = null; void 0 !== c && this.Jp(c, d, e) }, Oia: function(c) { c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.Grid3D.vertex() : Numbers must be integers"); c = 0 | 3 * (c.x * (this.ya.height + 1) + c.y); var d = this.ec; return new f.Oe(d[c], d[c + 1], d[c + 2]) }, zf: function(c) { c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.Grid3D.originalVertex() : Numbers must be integers"); c = 0 | 3 * (c.x * (this.ya.height + 1) + c.y); var d = this.hr; return new f.Oe(d[c], d[c + 1], d[c + 2]) }, Ah: function(c, d) { c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.Grid3D.setVertex() : Numbers must be integers"); var e = 0 | 3 * (c.x * (this.ya.height + 1) + c.y), g = this.ec; g[e] = d.x; g[e + 1] = d.y; g[e + 2] = d.z; this.Ec = !0 }, JZ: function() { var c = this.ya.width * this.ya.height; f.wf(f.Gh | f.Wy); this.sd.Ff(); this.sd.dJ(); var d = f.s, e = this.Ec; d.bindBuffer(d.ARRAY_BUFFER, this.rg); e && d.bufferData(d.ARRAY_BUFFER, this.ec, d.DYNAMIC_DRAW); d.vertexAttribPointer(f.Oc, 3, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ARRAY_BUFFER, this.Uk); e && d.bufferData(d.ARRAY_BUFFER, this.pm, d.DYNAMIC_DRAW); d.vertexAttribPointer(f.$g, 2, d.FLOAT, !1, 0, 0); d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Nk); e && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Tb, d.STATIC_DRAW); d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0); e && (this.Ec = !1); f.el() }, PQ: function() { if (0 < this.np) { for (var c = this.hr, d = this.ec, e = 0, g = this.ec.length; e < g; e++) c[e] = d[e]; --this.np } }, JO: function() { var c = f.s, d = this.fa.pixelsWidth, e = this.fa.pixelsHeight, g = this.fa.m.height, h = this.ya, k = (h.width + 1) * (h.height + 1); this.ec = new Float32Array(3 * k); this.pm = new Float32Array(2 * k); this.Tb = new Uint16Array(h.width * h.height * 6); this.rg && c.deleteBuffer(this.rg); this.rg = c.createBuffer(); this.Uk && c.deleteBuffer(this.Uk); this.Uk = c.createBuffer(); this.Nk && c.deleteBuffer(this.Nk); this.Nk = c.createBuffer(); for (var m, n, p = this.Tb, s = this.pm, u = this.Xv, v = this.ec, k = 0; k < h.width; ++k) for (m = 0; m < h.height; ++m) { var z = m * h.width + k; n = k * this.nm.x; var A = n + this.nm.x, B = m * this.nm.y, C = B + this.nm.y, G = k * (h.height + 1) + m, L = (k + 1) * (h.height + 1) + m, O = (k + 1) * (h.height + 1) + (m + 1), R = k * (h.height + 1) + (m + 1); p[6 * z] = G; p[6 * z + 1] = L; p[6 * z + 2] = R; p[6 * z + 3] = L; p[6 * z + 4] = O; p[6 * z + 5] = R; var z = [3 * G, 3 * L, 3 * O, 3 * R], M = [{ x: n, y: B, z: 0 }, { x: A, y: B, z: 0 }, { x: A, y: C, z: 0 }, { x: n, y: C, z: 0 }], G = [2 * G, 2 * L, 2 * O, 2 * R], A = [r(n, B), r(A, B), r(A, C), r(n, C)]; for (n = 0; 4 > n; ++n) v[z[n]] = M[n].x, v[z[n] + 1] = M[n].y, v[z[n] + 2] = M[n].z, s[G[n]] = A[n].x / d, s[G[n] + 1] = u ? (g - A[n].y) / e : A[n].y / e } this.hr = new Float32Array(this.ec); c.bindBuffer(c.ARRAY_BUFFER, this.rg); c.bufferData(c.ARRAY_BUFFER, this.ec, c.DYNAMIC_DRAW); c.bindBuffer(c.ARRAY_BUFFER, this.Uk); c.bufferData(c.ARRAY_BUFFER, this.pm, c.DYNAMIC_DRAW); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Nk); c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW); this.Ec = !0 } }); f.SS.create = function(c, d, e) { return new f.SS(c, d, e) }; f.iU = f.Hy.extend({ pm: null, ec: null, hr: null, Tb: null, Uk: null, rg: null, Nk: null, ctor: function(c, d, e) { f.Hy.prototype.ctor.call(this); this.Nk = this.rg = this.Uk = this.Tb = this.hr = this.ec = this.pm = null; void 0 !== c && this.Jp(c, d, e) }, uia: function(c) { c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.TiledGrid3D.tile() : Numbers must be integers"); c = 12 * (this.ya.height * c.x + c.y); var d = this.ec; return new f.oK(new f.Oe(d[c], d[c + 1], d[c + 2]), new f.Oe(d[c + 3], d[c + 4], d[c + 5]), new f.Oe(d[c + 6], d[c + 7], d[c + 8]), new f.Oe(d[c + 9], d[c + 10], d[c + 11])) }, kl: function(c) { c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.TiledGrid3D.originalTile() : Numbers must be integers"); c = 12 * (this.ya.height * c.x + c.y); var d = this.hr; return new f.oK(new f.Oe(d[c], d[c + 1], d[c + 2]), new f.Oe(d[c + 3], d[c + 4], d[c + 5]), new f.Oe(d[c + 6], d[c + 7], d[c + 8]), new f.Oe(d[c + 9], d[c + 10], d[c + 11])) }, yj: function(c, d) { c.x === (0 | c.x) && c.y === (0 | c.y) || f.log("cc.TiledGrid3D.setTile() : Numbers must be integers"); var e = 12 * (this.ya.height * c.x + c.y), g = this.ec; g[e] = d.T.x; g[e + 1] = d.T.y; g[e + 2] = d.T.z; g[e + 3] = d.aa.x; g[e + 4] = d.aa.y; g[e + 5] = d.aa.z; g[e + 6] = d.Z.x; g[e + 7] = d.Z.y; g[e + 8] = d.Z.z; g[e + 9] = d.W.x; g[e + 10] = d.W.y; g[e + 11] = d.W.z; this.Ec = !0 }, JZ: function() { var c = this.ya.width * this.ya.height; this.sd.Ff(); this.sd.dJ(); var d = f.s, e = this.Ec; f.wf(f.Gh | f.Wy); d.bindBuffer(d.ARRAY_BUFFER, this.rg); e && d.bufferData(d.ARRAY_BUFFER, this.ec, d.DYNAMIC_DRAW); d.vertexAttribPointer(f.Oc, 3, d.FLOAT, !1, 0, this.ec); d.bindBuffer(d.ARRAY_BUFFER, this.Uk); e && d.bufferData(d.ARRAY_BUFFER, this.pm, d.DYNAMIC_DRAW); d.vertexAttribPointer(f.$g, 2, d.FLOAT, !1, 0, this.pm); d.bindBuffer(d.ELEMENT_ARRAY_BUFFER, this.Nk); e && d.bufferData(d.ELEMENT_ARRAY_BUFFER, this.Tb, d.STATIC_DRAW); d.drawElements(d.TRIANGLES, 6 * c, d.UNSIGNED_SHORT, 0); e && (this.Ec = !1); f.el() }, PQ: function() { if (0 < this.np) { for (var c = this.ec, d = this.hr, e = 0; e < c.length; e++) d[e] = c[e]; --this.np } }, JO: function() { var c = this.fa.pixelsWidth, d = this.fa.pixelsHeight, e = this.fa.m.height, g = this.ya, h = g.width * g.height; this.ec = new Float32Array(12 * h); this.pm = new Float32Array(8 * h); this.Tb = new Uint16Array(6 * h); var k = f.s; this.rg && k.deleteBuffer(this.rg); this.rg = k.createBuffer(); this.Uk && k.deleteBuffer(this.Uk); this.Uk = k.createBuffer(); this.Nk && k.deleteBuffer(this.Nk); this.Nk = k.createBuffer(); var m, n, p = 0, s = this.nm, u = this.ec, v = this.pm, z = this.Xv; for (m = 0; m < g.width; m++) for (n = 0; n < g.height; n++) { var A = m * s.x, B = A + s.x, C = n * s.y, G = C + s.y; u[12 * p] = A; u[12 * p + 1] = C; u[12 * p + 2] = 0; u[12 * p + 3] = B; u[12 * p + 4] = C; u[12 * p + 5] = 0; u[12 * p + 6] = A; u[12 * p + 7] = G; u[12 * p + 8] = 0; u[12 * p + 9] = B; u[12 * p + 10] = G; u[12 * p + 11] = 0; var L = C, O = G; z && (L = e - C, O = e - G); v[8 * p] = A / c; v[8 * p + 1] = L / d; v[8 * p + 2] = B / c; v[8 * p + 3] = L / d; v[8 * p + 4] = A / c; v[8 * p + 5] = O / d; v[8 * p + 6] = B / c; v[8 * p + 7] = O / d; p++ } c = this.Tb; for (m = 0; m < h; m++) c[6 * m + 0] = 4 * m + 0, c[6 * m + 1] = 4 * m + 1, c[6 * m + 2] = 4 * m + 2, c[6 * m + 3] = 4 * m + 1, c[6 * m + 4] = 4 * m + 2, c[6 * m + 5] = 4 * m + 3; this.hr = new Float32Array(this.ec); k.bindBuffer(k.ARRAY_BUFFER, this.rg); k.bufferData(k.ARRAY_BUFFER, this.ec, k.DYNAMIC_DRAW); k.bindBuffer(k.ARRAY_BUFFER, this.Uk); k.bufferData(k.ARRAY_BUFFER, this.pm, k.DYNAMIC_DRAW); k.bindBuffer(k.ELEMENT_ARRAY_BUFFER, this.Nk); k.bufferData(k.ELEMENT_ARRAY_BUFFER, this.Tb, k.DYNAMIC_DRAW); this.Ec = !0 } }); f.iU.create = function(c, d, e) { return new f.iU(c, d, e) }; f.Lla = f.N.extend({ JK: null, ep: null, eaa: null, Vz: null, ctor: function() { f.tV(); this.Vz = f.s; this.eaa = [0, 0, 0, 0]; this.ep = null; this.JK = this.Vz.createFramebuffer() }, WBa: function(c) { var d = this.Vz; this.ep = d.getParameter(d.FRAMEBUFFER_BINDING); d.bindFramebuffer(d.FRAMEBUFFER, this.JK); d.framebufferTexture2D(d.FRAMEBUFFER, d.COLOR_ATTACHMENT0, d.TEXTURE_2D, c.Wh, 0); d.checkFramebufferStatus(d.FRAMEBUFFER) != d.FRAMEBUFFER_COMPLETE && f.log("Frame Grabber: could not attach texture to frmaebuffer"); d.bindFramebuffer(d.FRAMEBUFFER, this.ep) }, Ewa: function() { var c = this.Vz; this.ep = c.getParameter(c.FRAMEBUFFER_BINDING); c.bindFramebuffer(c.FRAMEBUFFER, this.JK); this.eaa = c.getParameter(c.COLOR_CLEAR_VALUE); c.clearColor(0, 0, 0, 0); c.clear(c.COLOR_BUFFER_BIT | c.DEPTH_BUFFER_BIT) }, Yva: function() { var c = this.Vz; c.bindFramebuffer(c.FRAMEBUFFER, this.ep); c.colorMask(!0, !0, !0, !0) }, MQa: function() { this.Vz.deleteFramebuffer(this.JK) } }); f.uy = -1; f.Ag = f.N.extend({ originalTarget: null, target: null, tag: f.uy, ctor: function() { this.target = this.originalTarget = null; this.tag = f.uy }, copy: function() { f.log("copy is deprecated. Please use clone instead."); return this.p() }, p: function() { var c = new f.Ag; c.originalTarget = null; c.target = null; c.tag = this.tag; return c }, gk: function() { return !0 }, R: function(c) { this.target = this.originalTarget = c }, stop: function() { this.target = null }, step: function() { f.log("[Action step]. override me") }, update: function() { f.log("[Action update]. override me") }, bea: function() { return this.target }, ZI: function(c) { this.target = c }, XUa: function() { return this.originalTarget }, P3a: function(c) { this.originalTarget = c }, Em: function() { return this.tag }, Nm: function(c) { this.tag = c }, OQ: function() {}, wh: function() {} }); f.Ag.create = function() { return new f.Ag }; f.lq = f.Ag.extend({ C: 0, ctor: function() { f.Ag.prototype.ctor.call(this); this.C = 0 }, pu: function() { return this.C * (this.ne || 1) }, Ei: function(c) { this.C = c }, reverse: function() { f.log("cocos2d: FiniteTimeAction#reverse: Implement me"); return null }, p: function() { return new f.lq } }); f.lE = f.Ag.extend({ ti: 0, Gc: null, ctor: function(c, d) { f.Ag.prototype.ctor.call(this); this.ti = 0; this.Gc = null; c && this.Fa(c, d) }, tP: function() { return this.ti }, Hi: function(c) { this.ti = c }, Fa: function(c, d) { if (!c) throw "cc.Speed.initWithAction(): action must be non nil"; this.Gc = c; this.ti = d; return !0 }, p: function() { var c = new f.lE; c.Fa(this.Gc.p(), this.ti); return c }, R: function(c) { f.Ag.prototype.R.call(this, c); this.Gc.R(c) }, stop: function() { this.Gc.stop(); f.Ag.prototype.stop.call(this) }, step: function(c) { this.Gc.step(c * this.ti) }, gk: function() { return this.Gc.gk() }, reverse: function() { return f.lE.create(this.Gc.reverse(), this.ti) }, cha: function(c) { this.Gc != c && (this.Gc = c) }, c0: function() { return this.Gc } }); f.lE.create = function(c, d) { return new f.lE(c, d) }; f.cK = f.Ag.extend({ Oz: null, lz: !1, hL: !1, nM: null, rF: null, Fx: 0, Tx: 0, my: 0, fx: 0, oZ: null, ctor: function(c, d) { f.Ag.prototype.ctor.call(this); this.Oz = null; this.hL = this.lz = !1; this.rF = this.nM = null; this.fx = this.my = this.Tx = this.Fx = 0; this.oZ = x(0, 0, 0, 0); c && (d ? this.YB(c, d) : this.YB(c)) }, p: function() { var c = new f.cK, d = this.oZ; c.YB(this.Oz, new f.Qy(d.x, d.y, d.width, d.height)); return c }, xXa: function() { return this.lz }, F2a: function(c) { this.lz = c }, YB: function(c, d) { if (!c) throw "cc.Follow.initWithAction(): followedNode must be non nil"; d = d || x(0, 0, 0, 0); this.Oz = c; this.oZ = d; this.lz = !f.gG(d); this.hL = !1; var e = f.Q.Y; this.rF = r(e.width, e.height); this.nM = f.Up(this.rF, 0.5); this.lz && (this.Fx = -(d.x + d.width - this.rF.x), this.Tx = -d.x, this.my = -d.y, this.fx = -(d.y + d.height - this.rF.y), this.Tx < this.Fx && (this.Tx = this.Fx = (this.Fx + this.Tx) / 2), this.my < this.fx && (this.my = this.fx = (this.my + this.fx) / 2), this.my == this.fx && this.Fx == this.Tx && (this.hL = !0)); return !0 }, step: function() { var c = this.Oz.x, d = this.Oz.y, c = this.nM.x - c, d = this.nM.y - d; this.lz ? this.hL || this.target.o(f.Rf(c, this.Fx, this.Tx), f.Rf(d, this.fx, this.my)) : this.target.o(c, d) }, gk: function() { return !this.Oz.running }, stop: function() { this.target = null; f.Ag.prototype.stop.call(this) } }); f.cK.create = function(c, d) { return new f.cK(c, d) }; f.M = f.lq.extend({ Fc: 0, dM: !1, Xl: null, ne: 1, hG: !1, IA: !1, ti: 1, tG: !1, ctor: function(c) { this.ne = this.ti = 1; this.hG = !1; this.MAX_VALUE = 2; this.tG = this.IA = !1; f.lq.prototype.ctor.call(this); void 0 !== c && this.f(c) }, HTa: function() { return this.Fc }, f: function(c) { this.C = 0 === c ? f.aK : c; this.Fc = 0; return this.dM = !0 }, gk: function() { return this.Fc >= this.C }, zb: function(c) { c.hG = this.hG; c.ti = this.ti; c.ne = this.ne; c.Xl = this.Xl; c.tG = this.tG; c.IA = this.IA }, si: function(c) { if (this.Xl) { c.Xl = []; for (var d = 0; d < this.Xl.length; d++) c.Xl.push(this.Xl[d].reverse()) } }, p: function() { var c = new f.M(this.C); this.zb(c); return c }, sa: function(c) { this.Xl ? this.Xl.length = 0 : this.Xl = []; for (var d = 0; d < arguments.length; d++) this.Xl.push(arguments[d]); return this }, Eg: function(c) { var d = this.Xl; if (!d || 0 === d.length) return c; for (var e = 0, g = d.length; e < g; e++) c = d[e].sa(c); return c }, step: function(c) { this.dM ? (this.dM = !1, this.Fc = 0) : this.Fc += c; c = this.Fc / (1.192092896E-7 < this.C ? this.C : 1.192092896E-7); c = 1 > c ? c : 1; this.update(0 < c ? c : 0); this.IA && 1 < this.ne && this.gk() && (this.hG || this.ne--, this.R(this.target), this.step(this.Fc - this.C)) }, R: function(c) { f.Ag.prototype.R.call(this, c); this.Fc = 0; this.dM = !0 }, reverse: function() { f.log("cc.IntervalAction: reverse not implemented."); return null }, Wx: function() { f.log("cc.ActionInterval.setAmplitudeRate(): it should be overridden in subclass.") }, vx: function() { f.log("cc.ActionInterval.getAmplitudeRate(): it should be overridden in subclass."); return 0 }, speed: function(c) { if (0 >= c) return f.log("The speed parameter error"), this; this.tG = !0; this.ti *= c; return this }, tP: function() { return this.ti }, Hi: function(c) { this.ti = c; return this }, repeat: function(c) { c = Math.round(c); if (isNaN(c) || 1 > c) return f.log("The repeat parameter error"), this; this.IA = !0; this.ne *= c; return this }, ZFa: function() { this.IA = !0; this.ne = this.MAX_VALUE; this.hG = !0; return this } }); f.M.create = function(c) { return new f.M(c) }; f.X = f.M.extend({ Io: null, jba: null, KF: 0, ctor: function(c) { f.M.prototype.ctor.call(this); this.Io = []; var d = c instanceof Array ? c : arguments, e = d.length - 1; 0 <= e && null == d[e] && f.log("parameters should not be ending with null in Javascript"); if (0 <= e) { for (var g = d[0], h = 1; h < e; h++) d[h] && (g = f.X.yq(g, d[h])); this.Dx(g, d[e]) } }, Dx: function(c, d) { if (!c || !d) throw "cc.Sequence.initWithTwoActions(): arguments must all be non nil"; this.f(c.C + d.C); this.Io[0] = c; this.Io[1] = d; return !0 }, p: function() { var c = new f.X; this.zb(c); c.Dx(this.Io[0].p(), this.Io[1].p()); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.jba = this.Io[0].C / this.C; this.KF = -1 }, stop: function() { -1 !== this.KF && this.Io[this.KF].stop(); f.Ag.prototype.stop.call(this) }, update: function(c) { c = this.Eg(c); var d = 0, e = this.jba, g = this.Io, h = this.KF; c < e ? (c = 0 !== e ? c / e : 1, 0 === d && 1 === h && (g[1].update(0), g[1].stop())) : (d = 1, c = 1 === e ? 1 : (c - e) / (1 - e), -1 === h && (g[0].R(this.target), g[0].update(1), g[0].stop()), h || (g[0].update(1), g[0].stop())); h === d && g[d].gk() || (h !== d && g[d].R(this.target), g[d].update(c), this.KF = d) }, reverse: function() { var c = f.X.yq(this.Io[1].reverse(), this.Io[0].reverse()); this.zb(c); this.si(c); return c } }); f.X.create = function(c) { var d = c instanceof Array ? c : arguments; 0 < d.length && null == d[d.length - 1] && f.log("parameters should not be ending with null in Javascript"); for (var e = d[0], g = 1; g < d.length; g++) d[g] && (e = f.X.yq(e, d[g])); return e }; f.X.yq = function(c, d) { var e = new f.X; e.Dx(c, d); return e }; f.gE = f.M.extend({ ne: 0, au: 0, gX: 0, x8: !1, Gc: null, ctor: function(c, d) { f.M.prototype.ctor.call(this); void 0 !== d && this.Fa(c, d) }, Fa: function(c, d) { return this.f(c.C * d) ? (this.ne = d, this.Gc = c, c instanceof f.Ch && (this.x8 = !0, this.ne -= 1), this.au = 0, !0) : !1 }, p: function() { var c = new f.gE; this.zb(c); c.Fa(this.Gc.p(), this.ne); return c }, R: function(c) { this.au = 0; this.gX = this.Gc.C / this.C; f.M.prototype.R.call(this, c); this.Gc.R(c) }, stop: function() { this.Gc.stop(); f.Ag.prototype.stop.call(this) }, update: function(c) { c = this.Eg(c); var d = this.Gc, e = this.C, g = this.ne, h = this.gX; if (c >= h) { for (; c > h && this.au < g;) d.update(1), this.au++, d.stop(), d.R(this.target), this.gX = h += d.C / e; 1 <= c && this.au < g && this.au++; this.x8 || (this.au === g ? (d.update(1), d.stop()) : d.update(c - (h - d.C / e))) } else d.update(c * g % 1) }, gk: function() { return this.au == this.ne }, reverse: function() { var c = f.gE.create(this.Gc.reverse(), this.ne); this.zb(c); this.si(c); return c }, cha: function(c) { this.Gc != c && (this.Gc = c) }, c0: function() { return this.Gc } }); f.gE.create = function(c, d) { return new f.gE(c, d) }; f.hE = f.M.extend({ Gc: null, ctor: function(c) { f.M.prototype.ctor.call(this); this.Gc = null; c && this.Fa(c) }, Fa: function(c) { if (!c) throw "cc.RepeatForever.initWithAction(): action must be non null"; this.Gc = c; return !0 }, p: function() { var c = new f.hE; this.zb(c); c.Fa(this.Gc.p()); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.Gc.R(c) }, step: function(c) { var d = this.Gc; d.step(c); d.gk() && (d.R(this.target), d.step(d.Fc - d.C)) }, gk: function() { return !1 }, reverse: function() { var c = f.hE.create(this.Gc.reverse()); this.zb(c); this.si(c); return c }, cha: function(c) { this.Gc != c && (this.Gc = c) }, c0: function() { return this.Gc } }); f.hE.create = function(c) { return new f.hE(c) }; f.fe = f.M.extend({ gr: null, Ar: null, ctor: function(c) { f.M.prototype.ctor.call(this); this.Ar = this.gr = null; var d = c instanceof Array ? c : arguments, e = d.length - 1; 0 <= e && null == d[e] && f.log("parameters should not be ending with null in Javascript"); if (0 <= e) { for (var g = d[0], h = 1; h < e; h++) d[h] && (g = f.fe.yq(g, d[h])); this.Dx(g, d[e]) } }, Dx: function(c, d) { if (!c || !d) throw "cc.Spawn.initWithTwoActions(): arguments must all be non null"; var e = !1, g = c.C, h = d.C; this.f(Math.max(g, h)) && (this.gr = c, this.Ar = d, g > h ? this.Ar = f.X.yq(d, f.Nb.create(g - h)) : g < h && (this.gr = f.X.yq(c, f.Nb.create(h - g))), e = !0); return e }, p: function() { var c = new f.fe; this.zb(c); c.Dx(this.gr.p(), this.Ar.p()); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.gr.R(c); this.Ar.R(c) }, stop: function() { this.gr.stop(); this.Ar.stop(); f.Ag.prototype.stop.call(this) }, update: function(c) { c = this.Eg(c); this.gr && this.gr.update(c); this.Ar && this.Ar.update(c) }, reverse: function() { var c = f.fe.yq(this.gr.reverse(), this.Ar.reverse()); this.zb(c); this.si(c); return c } }); f.fe.create = function(c) { var d = c instanceof Array ? c : arguments; 0 < d.length && null == d[d.length - 1] && f.log("parameters should not be ending with null in Javascript"); for (var e = d[0], g = 1; g < d.length; g++) null != d[g] && (e = f.fe.yq(e, d[g])); return e }; f.fe.yq = function(c, d) { var e = new f.fe; e.Dx(c, d); return e }; f.pv = f.M.extend({ PL: 0, vG: 0, k9: 0, WV: 0, SA: 0, l9: 0, ctor: function(c, d, e) { f.M.prototype.ctor.call(this); void 0 !== d && this.f(c, d, e) }, f: function(c, d, e) { return f.M.prototype.f.call(this, c) ? (this.PL = d || 0, this.WV = e || this.PL, !0) : !1 }, p: function() { var c = new f.pv; this.zb(c); c.f(this.C, this.PL, this.WV); return c }, R: function(c) { f.M.prototype.R.call(this, c); var d = c.rotationX % 360, e = this.PL - d; 180 < e && (e -= 360); - 180 > e && (e += 360); this.vG = d; this.k9 = e; this.SA = c.rotationY % 360; c = this.WV - this.SA; 180 < c && (c -= 360); - 180 > c && (c += 360); this.l9 = c }, reverse: function() { f.log("cc.RotateTo.reverse(): it should be overridden in subclass.") }, update: function(c) { c = this.Eg(c); this.target && (this.target.rotationX = this.vG + this.k9 * c, this.target.rotationY = this.SA + this.l9 * c) } }); f.pv.create = function(c, d, e) { return new f.pv(c, d, e) }; f.Ry = f.M.extend({ bn: 0, vG: 0, SK: 0, SA: 0, ctor: function(c, d, e) { f.M.prototype.ctor.call(this); void 0 !== d && this.f(c, d, e) }, f: function(c, d, e) { return f.M.prototype.f.call(this, c) ? (this.bn = d || 0, this.SK = e || this.bn, !0) : !1 }, p: function() { var c = new f.Ry; this.zb(c); c.f(this.C, this.bn, this.SK); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.vG = c.rotationX; this.SA = c.rotationY }, update: function(c) { c = this.Eg(c); this.target && (this.target.rotationX = this.vG + this.bn * c, this.target.rotationY = this.SA + this.SK * c) }, reverse: function() { var c = f.Ry.create(this.C, -this.bn, -this.SK); this.zb(c); this.si(c); return c } }); f.Ry.create = function(c, d, e) { var g = new f.Ry; g.f(c, d, e); return g }; f.vk = f.M.extend({ ip: null, tf: null, Kf: null, ctor: function(c, d, e) { f.M.prototype.ctor.call(this); this.ip = r(0, 0); this.tf = r(0, 0); this.Kf = r(0, 0); void 0 !== d && this.f(c, d, e) }, f: function(c, d, e) { return f.M.prototype.f.call(this, c) ? (void 0 !== d.x && (e = d.y, d = d.x), this.ip.x = d, this.ip.y = e, !0) : !1 }, p: function() { var c = new f.vk; this.zb(c); c.f(this.C, this.ip); return c }, R: function(c) { f.M.prototype.R.call(this, c); var d = c.Vc(); c = c.Zd(); this.Kf.x = d; this.Kf.y = c; this.tf.x = d; this.tf.y = c }, update: function(c) { c = this.Eg(c); if (this.target) { var d = this.ip.x * c; c *= this.ip.y; var e = this.tf; if (f.SJ) { var g = this.target.Zd(), h = this.Kf; e.x = e.x + this.target.Vc() - h.x; e.y = e.y + g - h.y; d += e.x; c += e.y; h.x = d; h.y = c; this.target.o(d, c) } else this.target.o(e.x + d, e.y + c) } }, reverse: function() { var c = f.vk.create(this.C, r(-this.ip.x, -this.ip.y)); this.zb(c); this.si(c); return c } }); f.vk.create = function(c, d, e) { return new f.vk(c, d, e) }; f.Dc = f.vk.extend({ Kk: null, ctor: function(c, d, e) { f.vk.prototype.ctor.call(this); this.Kk = r(0, 0); void 0 !== d && this.f(c, d, e) }, f: function(c, d, e) { return f.vk.prototype.f.call(this, c, d, e) ? (void 0 !== d.x && (e = d.y, d = d.x), this.Kk.x = d, this.Kk.y = e, !0) : !1 }, p: function() { var c = new f.Dc; this.zb(c); c.f(this.C, this.Kk); return c }, R: function(c) { f.vk.prototype.R.call(this, c); this.ip.x = this.Kk.x - c.Vc(); this.ip.y = this.Kk.y - c.Zd() } }); f.Dc.create = function(c, d, e) { return new f.Dc(c, d, e) }; f.uq = f.M.extend({ og: 0, pg: 0, LN: 0, MN: 0, VL: 0, WL: 0, Mj: 0, Nj: 0, ctor: function(c, d, e) { f.M.prototype.ctor.call(this); void 0 !== e && this.f(c, d, e) }, f: function(c, d, e) { var g = !1; f.M.prototype.f.call(this, c) && (this.VL = d, this.WL = e, g = !0); return g }, p: function() { var c = new f.uq; this.zb(c); c.f(this.C, this.VL, this.WL); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.LN = c.skewX % 180; this.Mj = this.VL - this.LN; 180 < this.Mj && (this.Mj -= 360); - 180 > this.Mj && (this.Mj += 360); this.MN = c.skewY % 360; this.Nj = this.WL - this.MN; 180 < this.Nj && (this.Nj -= 360); - 180 > this.Nj && (this.Nj += 360) }, update: function(c) { c = this.Eg(c); this.target.skewX = this.LN + this.Mj * c; this.target.skewY = this.MN + this.Nj * c } }); f.uq.create = function(c, d, e) { return new f.uq(c, d, e) }; f.kE = f.uq.extend({ ctor: function(c, d, e) { f.uq.prototype.ctor.call(this); void 0 !== e && this.f(c, d, e) }, f: function(c, d, e) { var g = !1; f.uq.prototype.f.call(this, c, d, e) && (this.og = d, this.pg = e, g = !0); return g }, p: function() { var c = new f.kE; this.zb(c); c.f(this.C, this.og, this.pg); return c }, R: function(c) { f.uq.prototype.R.call(this, c); this.Mj = this.og; this.Nj = this.pg; this.VL = this.LN + this.Mj; this.WL = this.MN + this.Nj }, reverse: function() { var c = f.kE.create(this.C, -this.og, -this.pg); this.zb(c); this.si(c); return c } }); f.kE.create = function(c, d, e) { var g = new f.kE; g && g.f(c, d, e); return g }; f.xo = f.M.extend({ tf: null, To: null, CF: 0, Zq: 0, Kf: null, ctor: function(c, d, e, g, h) { f.M.prototype.ctor.call(this); this.tf = r(0, 0); this.Kf = r(0, 0); this.To = r(0, 0); void 0 !== g && this.f(c, d, e, g, h) }, f: function(c, d, e, g, h) { return f.M.prototype.f.call(this, c) ? (void 0 === h && (h = g, g = e, e = d.y, d = d.x), this.To.x = d, this.To.y = e, this.CF = g, this.Zq = h, !0) : !1 }, p: function() { var c = new f.xo; this.zb(c); c.f(this.C, this.To, this.CF, this.Zq); return c }, R: function(c) { f.M.prototype.R.call(this, c); var d = c.Vc(); c = c.Zd(); this.Kf.x = d; this.Kf.y = c; this.tf.x = d; this.tf.y = c }, update: function(c) { c = this.Eg(c); if (this.target) { var d = c * this.Zq % 1, d = 4 * this.CF * d * (1 - d), d = d + this.To.y * c; c *= this.To.x; var e = this.tf; if (f.SJ) { var g = this.target.Zd(), h = this.Kf; e.x = e.x + this.target.Vc() - h.x; e.y = e.y + g - h.y; c += e.x; d += e.y; h.x = c; h.y = d; this.target.o(c, d) } else this.target.o(e.x + c, e.y + d) } }, reverse: function() { var c = f.xo.create(this.C, r(-this.To.x, -this.To.y), this.CF, this.Zq); this.zb(c); this.si(c); return c } }); f.xo.create = function(c, d, e, g, h) { return new f.xo(c, d, e, g, h) }; f.dK = f.xo.extend({ Kk: null, ctor: function(c, d, e, g, h) { f.xo.prototype.ctor.call(this); this.Kk = r(0, 0); void 0 !== g && this.f(c, d, e, g, h) }, f: function(c, d, e, g, h) { return f.xo.prototype.f.call(this, c, d, e, g, h) ? (void 0 === h && (e = d.y, d = d.x), this.Kk.x = d, this.Kk.y = e, !0) : !1 }, R: function(c) { f.xo.prototype.R.call(this, c); this.To.x = this.Kk.x - this.tf.x; this.To.y = this.Kk.y - this.tf.y }, p: function() { var c = new f.dK; this.zb(c); c.f(this.C, this.Kk, this.CF, this.Zq); return c } }); f.dK.create = function(c, d, e, g, h) { return new f.dK(c, d, e, g, h) }; f.hca = function(c, d, e, g) { return 0 * Math.pow(1 - g, 3) + 3 * g * Math.pow(1 - g, 2) * c + 3 * Math.pow(g, 2) * (1 - g) * d + Math.pow(g, 3) * e }; f.qs = f.M.extend({ Fk: null, tf: null, Kf: null, ctor: function(c, d) { f.M.prototype.ctor.call(this); this.Fk = []; this.tf = r(0, 0); this.Kf = r(0, 0); d && this.f(c, d) }, f: function(c, d) { return f.M.prototype.f.call(this, c) ? (this.Fk = d, !0) : !1 }, p: function() { var c = new f.qs; this.zb(c); for (var d = [], e = 0; e < this.Fk.length; e++) { var g = this.Fk[e]; d.push(r(g.x, g.y)) } c.f(this.C, d); return c }, R: function(c) { f.M.prototype.R.call(this, c); var d = c.Vc(); c = c.Zd(); this.Kf.x = d; this.Kf.y = c; this.tf.x = d; this.tf.y = c }, update: function(c) { c = this.Eg(c); if (this.target) { var d = this.Fk, e = f.hca(d[0].x, d[1].x, d[2].x, c); c = f.hca(d[0].y, d[1].y, d[2].y, c); d = this.tf; if (f.SJ) { var g = this.target.Zd(), h = this.Kf; d.x = d.x + this.target.Vc() - h.x; d.y = d.y + g - h.y; e += d.x; c += d.y; h.x = e; h.y = c; this.target.o(e, c) } else this.target.o(d.x + e, d.y + c) } }, reverse: function() { var c = this.Fk, c = f.qs.create(this.C, [f.Tp(c[1], f.B1(c[2])), f.Tp(c[0], f.B1(c[2])), f.B1(c[2])]); this.zb(c); this.si(c); return c } }); f.qs.create = function(c, d) { return new f.qs(c, d) }; f.zJ = f.qs.extend({ $N: null, ctor: function(c, d) { f.qs.prototype.ctor.call(this); this.$N = []; d && this.f(c, d) }, f: function(c, d) { return f.M.prototype.f.call(this, c) ? (this.$N = d, !0) : !1 }, p: function() { var c = new f.zJ; this.zb(c); c.f(this.C, this.$N); return c }, R: function(c) { f.qs.prototype.R.call(this, c); c = this.tf; var d = this.$N, e = this.Fk; e[0] = f.gc(d[0], c); e[1] = f.gc(d[1], c); e[2] = f.gc(d[2], c) } }); f.zJ.create = function(c, d) { return new f.zJ(c, d) }; f.Db = f.M.extend({ ka: 1, ra: 1, xG: 1, yG: 1, Kz: 0, Lz: 0, Mj: 0, Nj: 0, ctor: function(c, d, e) { f.M.prototype.ctor.call(this); void 0 !== d && this.f(c, d, e) }, f: function(c, d, e) { return f.M.prototype.f.call(this, c) ? (this.Kz = d, this.Lz = null != e ? e : d, !0) : !1 }, p: function() { var c = new f.Db; this.zb(c); c.f(this.C, this.Kz, this.Lz); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.xG = c.scaleX; this.yG = c.scaleY; this.Mj = this.Kz - this.xG; this.Nj = this.Lz - this.yG }, update: function(c) { c = this.Eg(c); this.target && (this.target.scaleX = this.xG + this.Mj * c, this.target.scaleY = this.yG + this.Nj * c) } }); f.Db.create = function(c, d, e) { var g = new f.Db; g.f(c, d, e); return g }; f.Ty = f.Db.extend({ R: function(c) { f.Db.prototype.R.call(this, c); this.Mj = this.xG * this.Kz - this.xG; this.Nj = this.yG * this.Lz - this.yG }, reverse: function() { var c = f.Ty.create(this.C, 1 / this.Kz, 1 / this.Lz); this.zb(c); this.si(c); return c }, p: function() { var c = new f.Ty; this.zb(c); c.f(this.C, this.Kz, this.Lz); return c } }); f.Ty.create = function(c, d, e) { return new f.Ty(c, d, e) }; f.kD = f.M.extend({ ne: 0, jaa: !1, ctor: function(c, d) { f.M.prototype.ctor.call(this); void 0 !== d && this.f(c, d) }, f: function(c, d) { return f.M.prototype.f.call(this, c) ? (this.ne = d, !0) : !1 }, p: function() { var c = new f.kD; this.zb(c); c.f(this.C, this.ne); return c }, update: function(c) { c = this.Eg(c); if (this.target && !this.gk()) { var d = 1 / this.ne; this.target.visible = c % d > d / 2 } }, R: function(c) { f.M.prototype.R.call(this, c); this.jaa = c.visible }, stop: function() { this.target.visible = this.jaa; f.M.prototype.stop.call(this) }, reverse: function() { var c = f.kD.create(this.C, this.ne); this.zb(c); this.si(c); return c } }); f.kD.create = function(c, d) { var e = new f.kD; e.f(c, d); return e }; f.Xc = f.M.extend({ bB: 0, hM: 0, ctor: function(c, d) { f.M.prototype.ctor.call(this); void 0 !== d && this.f(c, d) }, f: function(c, d) { return f.M.prototype.f.call(this, c) ? (this.bB = d, !0) : !1 }, p: function() { var c = new f.Xc; this.zb(c); c.f(this.C, this.bB); return c }, update: function(c) { c = this.Eg(c); if (this.target.wb) { var d = void 0 !== this.hM ? this.hM : 255; this.target.opacity = d + (this.bB - d) * c } }, R: function(c) { f.M.prototype.R.call(this, c); this.target.wb && (this.hM = c.opacity) } }); f.Xc.create = function(c, d) { return new f.Xc(c, d) }; f.Fy = f.Xc.extend({ YX: null, reverse: function() { var c = new f.Gy; c.f(this.C, 0); this.zb(c); this.si(c); return c }, p: function() { var c = new f.Fy; this.zb(c); c.f(this.C, this.bB); return c }, R: function(c) { this.YX && (this.bB = this.YX.hM); f.Xc.prototype.R.call(this, c) } }); f.Fy.create = function(c) { return new f.Fy(c, 255) }; f.Gy = f.Xc.extend({ reverse: function() { var c = new f.Fy; c.YX = this; c.f(this.C, 255); this.zb(c); this.si(c); return c }, p: function() { var c = new f.Gy; this.zb(c); c.f(this.C, this.bB); return c } }); f.Gy.create = function(c) { var d = new f.Gy; d.f(c, 0); return d }; f.Vy = f.M.extend({ Nf: null, Tc: null, ctor: function(c, d, e, g) { f.M.prototype.ctor.call(this); this.Nf = f.color(0, 0, 0); this.Tc = f.color(0, 0, 0); void 0 !== g && this.f(c, d, e, g) }, f: function(c, d, e, g) { return f.M.prototype.f.call(this, c) ? (this.Nf = f.color(d, e, g), !0) : !1 }, p: function() { var c = new f.Vy; this.zb(c); var d = this.Nf; c.f(this.C, d.r, d.g, d.b); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.target.wb && (this.Tc = this.target.color) }, update: function(c) { c = this.Eg(c); var d = this.Tc, e = this.Nf; d && this.target.wb && (this.target.color = f.color(d.r + (e.r - d.r) * c, d.g + (e.g - d.g) * c, d.b + (e.b - d.b) * c)) } }); f.Vy.create = function(c, d, e, g) { return new f.Vy(c, d, e, g) }; f.tE = f.M.extend({ GL: 0, FL: 0, EL: 0, g$: 0, f$: 0, e$: 0, ctor: function(c, d, e, g) { f.M.prototype.ctor.call(this); void 0 !== g && this.f(c, d, e, g) }, f: function(c, d, e, g) { return f.M.prototype.f.call(this, c) ? (this.GL = d, this.FL = e, this.EL = g, !0) : !1 }, p: function() { var c = new f.tE; this.zb(c); c.f(this.C, this.GL, this.FL, this.EL); return c }, R: function(c) { f.M.prototype.R.call(this, c); c.wb && (c = c.color, this.g$ = c.r, this.f$ = c.g, this.e$ = c.b) }, update: function(c) { c = this.Eg(c); this.target.wb && (this.target.color = f.color(this.g$ + this.GL * c, this.f$ + this.FL * c, this.e$ + this.EL * c)) }, reverse: function() { var c = f.tE.create(this.C, -this.GL, -this.FL, -this.EL); this.zb(c); this.si(c); return c } }); f.tE.create = function(c, d, e, g) { return new f.tE(c, d, e, g) }; f.Nb = f.M.extend({ update: function() {}, reverse: function() { var c = f.Nb.create(this.C); this.zb(c); this.si(c); return c }, p: function() { var c = new f.Nb; this.zb(c); c.f(this.C); return c } }); f.Nb.create = function(c) { return new f.Nb(c) }; f.ov = f.M.extend({ ir: null, ctor: function(c) { f.M.prototype.ctor.call(this); this.ir = null; c && this.Fa(c) }, Fa: function(c) { if (!c) throw "cc.ReverseTime.initWithAction(): action must be non null"; if (c == this.ir) throw "cc.ReverseTime.initWithAction(): the action was already passed in."; return f.M.prototype.f.call(this, c.C) ? (this.ir = c, !0) : !1 }, p: function() { var c = new f.ov; this.zb(c); c.Fa(this.ir.p()); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.ir.R(c) }, update: function(c) { c = this.Eg(c); this.ir && this.ir.update(1 - c) }, reverse: function() { return this.ir.p() }, stop: function() { this.ir.stop(); f.Ag.prototype.stop.call(this) } }); f.ov.create = function(c) { return new f.ov(c) }; f.gD = f.M.extend({ Ls: null, QF: 0, pX: null, ZL: 0, AY: null, ctor: function(c) { f.M.prototype.ctor.call(this); this.AY = []; c && this.wea(c) }, cl: function() { return this.Ls }, Xx: function(c) { this.Ls = c }, wea: function(c) { if (!c) throw "cc.Animate.initWithAnimation(): animation must be non-NULL"; var d = c.pu(); if (this.f(d * c.br)) { this.QF = 0; this.Xx(c); this.pX = null; this.ZL = 0; var e = this.AY, g = e.length = 0, h = d / c.sp; c = c.Ph; f.mB(c, f.El); for (var k = 0; k < c.length; k++) { var m = g * h / d, g = g + c[k].Nh; e.push(m) } return !0 } return !1 }, p: function() { var c = new f.gD; this.zb(c); c.wea(this.Ls.p()); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.Ls.yw && (this.pX = c.Wxa()); this.ZL = this.QF = 0 }, update: function(c) { c = this.Eg(c); 1 > c && (c *= this.Ls.br, (0 | c) > this.ZL && (this.QF = 0, this.ZL++), c %= 1); for (var d = this.Ls.Ph, e = d.length, g = this.AY, h = this.QF; h < e; h++) if (g[h] <= c) this.target.Dd(d[h].Ca()), this.QF = h + 1; else break }, reverse: function() { var c = this.Ls, d = c.Ph, e = []; f.mB(d, f.El); if (0 < d.length) for (var g = d.length - 1; 0 <= g; g--) { var h = d[g]; if (!h) break; e.push(h.p()) } d = f.Yu.create(e, c.Nh, c.br); d.uR(c.yw); c = f.gD.create(d); this.zb(c); this.si(c); return c }, stop: function() { this.Ls.yw && this.target && this.target.Dd(this.pX); f.Ag.prototype.stop.call(this) } }); f.gD.create = function(c) { return new f.gD(c) }; f.FK = f.M.extend({ Qe: null, Pz: null, ctor: function(c, d) { f.M.prototype.ctor.call(this); d && this.YB(c, d) }, YB: function(c, d) { return this.f(d.C) ? (this.Pz = c, this.Qe = d, !0) : !1 }, p: function() { var c = new f.FK; this.zb(c); c.YB(this.Pz, this.Qe.p()); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.Qe.R(this.Pz) }, stop: function() { this.Qe.stop() }, update: function(c) { c = this.Eg(c); this.Qe.update(c) }, YTa: function() { return this.Pz }, i3a: function(c) { this.Pz != c && (this.Pz = c) } }); f.FK.create = function(c, d) { return new f.FK(c, d) }; f.Ch = f.lq.extend({ gk: function() { return !0 }, step: function() { this.update(1) }, update: function() {}, reverse: function() { return this.p() }, p: function() { return new f.Ch } }); f.Ej = f.Ch.extend({ update: function() { this.target.visible = !0 }, reverse: function() { return f.Hl.create() }, p: function() { return new f.Ej } }); f.Ej.create = function() { return new f.Ej }; f.Hl = f.Ch.extend({ update: function() { this.target.visible = !1 }, reverse: function() { return f.Ej.create() }, p: function() { return new f.Hl } }); f.Hl.create = function() { return new f.Hl }; f.uE = f.Ch.extend({ update: function() { this.target.visible = !this.target.visible }, reverse: function() { return new f.uE }, p: function() { return new f.uE } }); f.uE.create = function() { return new f.uE }; f.fE = f.Ch.extend({ zM: !0, ctor: function(c) { f.lq.prototype.ctor.call(this); void 0 !== c && this.j(c) }, update: function() { this.target.Yp(this.zM) }, j: function(c) { this.zM = c; return !0 }, reverse: function() { return new f.fE(this.zM) }, p: function() { return new f.fE(this.zM) } }); f.fE.create = function(c) { return new f.fE(c) }; f.YD = f.Ch.extend({ Fb: !1, ctor: function(c) { f.lq.prototype.ctor.call(this); this.Fb = !1; void 0 !== c && this.zea(c) }, zea: function(c) { this.Fb = c; return !0 }, update: function() { this.target.flippedX = this.Fb }, reverse: function() { return f.YD.create(!this.Fb) }, p: function() { var c = new f.YD; c.zea(this.Fb); return c } }); f.YD.create = function(c) { return new f.YD(c) }; f.ZD = f.Ch.extend({ Hb: !1, ctor: function(c) { f.lq.prototype.ctor.call(this); this.Hb = !1; void 0 !== c && this.Aea(c) }, Aea: function(c) { this.Hb = c; return !0 }, update: function() { this.target.flippedY = this.Hb }, reverse: function() { return f.ZD.create(!this.Hb) }, p: function() { var c = new f.ZD; c.Aea(this.Hb); return c } }); f.ZD.create = function(c) { return new f.ZD(c) }; f.nK = f.Ch.extend({ Nn: 0, hj: 0, ctor: function(c, d) { f.lq.prototype.ctor.call(this); this.hj = this.Nn = 0; void 0 !== c && (void 0 !== c.x && (d = c.y, c = c.x), this.Eea(c, d)) }, Eea: function(c, d) { this.Nn = c; this.hj = d; return !0 }, update: function() { this.target.o(this.Nn, this.hj) }, p: function() { var c = new f.nK; c.Eea(this.Nn, this.hj); return c } }); f.nK.create = function(c, d) { return new f.nK(c, d) }; f.ua = f.Ch.extend({ jm: null, Rs: null, sF: null, Mh: null, ctor: function(c, d, e) { f.lq.prototype.ctor.call(this); void 0 !== c && (void 0 === d ? this.MP(c) : this.MP(c, d, e)) }, MP: function(c, d, e) { d ? (this.Mh = e, this.Rs = c, this.jm = d) : c && (this.sF = c); return !0 }, execute: function() { null != this.Rs ? this.Rs.call(this.jm, this.target, this.Mh) : this.sF && this.sF.call(null, this.target) }, update: function() { this.execute() }, eWa: function() { return this.jm }, r4a: function(c) { c != this.jm && (this.jm && (this.jm = null), this.jm = c) }, p: function() { var c = new f.ua; this.jm ? c.MP(this.Rs, this.jm, this.Mh) : this.sF && c.MP(this.sF); return c } }); f.ua.create = function(c, d, e) { return new f.ua(c, d, e) }; f.RR = f.M.extend({ mV: 0, nV: 0, oV: 0, U9: 0, V9: 0, W9: 0, yba: 0, zba: 0, Aba: 0, ctor: function() { f.M.prototype.ctor.call(this); this.Aba = this.zba = this.yba = this.W9 = this.V9 = this.U9 = this.oV = this.nV = this.mV = 0 }, R: function(c) { f.M.prototype.R.call(this, c); c = c.yx(); var d = c.rda(); this.mV = d.x; this.nV = d.y; this.oV = d.z; d = c.Bda(); this.U9 = d.x; this.V9 = d.y; this.W9 = d.z; c = c.IBa(); this.yba = c.x; this.zba = c.y; this.Aba = c.z }, p: function() { return new f.RR }, reverse: function() { return f.ov.create(this) } }); f.di = f.RR.extend({ Zi: 0, IV: 0, DE: 0, h9: 0, bn: 0, g9: 0, xaa: 0, vaa: 0, waa: 0, uaa: 0, ctor: function(c, d, e, g, h, k, m) { f.RR.prototype.ctor.call(this); void 0 !== m && this.f(c, d, e, g, h, k, m) }, f: function(c, d, e, g, h, k, m) { return f.M.prototype.f.call(this, c) ? (this.Zi = d, this.IV = e, this.DE = g, this.h9 = h, this.bn = k, this.g9 = m, this.vaa = f.sg(h), this.uaa = f.sg(m), !0) : !1 }, hIa: function() { var c = this.target.yx(), d = c.Bda(), e = c.rda(), c = d.x - e.x, g = d.y - e.y, d = d.z - e.z, e = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2) + Math.pow(d, 2)), h = Math.sqrt(Math.pow(c, 2) + Math.pow(g, 2)); 0 === h && (h = f.aK); 0 === e && (e = f.aK); return { WDa: e / f.rD.MH(), sJa: Math.acos(d / e), azimuth: 0 > c ? Math.PI - Math.asin(g / h) : Math.asin(g / h) } }, R: function(c) { f.M.prototype.R.call(this, c); c = this.hIa(); isNaN(this.Zi) && (this.Zi = c.WDa); isNaN(this.DE) && (this.DE = f.yC(c.sJa)); isNaN(this.bn) && (this.bn = f.yC(c.azimuth)); this.xaa = f.sg(this.DE); this.waa = f.sg(this.bn) }, p: function() { var c = new f.di; c.f(this.C, this.Zi, this.IV, this.DE, this.h9, this.bn, this.g9); return c }, update: function(c) { c = this.Eg(c); var d = (this.Zi + this.IV * c) * f.rD.MH(), e = this.xaa + this.vaa * c, g = this.waa + this.uaa * c; c = Math.sin(e) * Math.cos(g) * d + this.mV; g = Math.sin(e) * Math.sin(g) * d + this.nV; d = Math.cos(e) * d + this.oV; this.target.yx().Zga(c, g, d) } }); f.di.create = function(c, d, e, g, h, k, m) { return new f.di(c, d, e, g, h, k, m) }; f.ac = f.M.extend({ H: null, ctor: function(c) { f.M.prototype.ctor.call(this); c && this.Fa(c) }, Fa: function(c) { if (!c) throw "cc.ActionEase.initWithAction(): action must be non nil"; return this.f(c.pu()) ? (this.H = c, !0) : !1 }, p: function() { var c = new f.ac; c.Fa(this.H.p()); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.H.R(this.target) }, stop: function() { this.H.stop(); f.M.prototype.stop.call(this) }, update: function(c) { this.H.update(c) }, reverse: function() { return f.ac.create(this.H.reverse()) }, c0: function() { return this.H } }); f.ac.create = function(c) { return new f.ac(c) }; f.fv = f.ac.extend({ je: 0, ctor: function(c, d) { f.ac.prototype.ctor.call(this); void 0 !== d && this.Fa(c, d) }, a4a: function(c) { this.je = c }, yVa: function() { return this.je }, Fa: function(c, d) { return f.ac.prototype.Fa.call(this, c) ? (this.je = d, !0) : !1 }, p: function() { var c = new f.fv; c.Fa(this.H.p(), this.je); return c }, reverse: function() { return f.fv.create(this.H.reverse(), 1 / this.je) } }); f.fv.create = function(c, d) { return new f.fv(c, d) }; f.MD = f.fv.extend({ update: function(c) { this.H.update(Math.pow(c, this.je)) }, reverse: function() { return f.MD.create(this.H.reverse(), 1 / this.je) }, p: function() { var c = new f.MD; c.Fa(this.H.p(), this.je); return c } }); f.MD.create = function(c, d) { return new f.MD(c, d) }; f.Bya = function(c) { return { je: c, sa: function(c) { return Math.pow(c, this.je) }, reverse: function() { return f.Bya(1 / this.je) } } }; f.vs = f.fv.extend({ update: function(c) { this.H.update(Math.pow(c, 1 / this.je)) }, reverse: function() { return f.vs.create(this.H.reverse(), 1 / this.je) }, p: function() { var c = new f.vs; c.Fa(this.H.p(), this.je); return c } }); f.vs.create = function(c, d) { return new f.vs(c, d) }; f.Dya = function(c) { return { je: c, sa: function(c) { return Math.pow(c, 1 / this.je) }, reverse: function() { return f.Dya(1 / this.je) } } }; f.Cy = f.fv.extend({ update: function(c) { c *= 2; 1 > c ? this.H.update(0.5 * Math.pow(c, this.je)) : this.H.update(1 - 0.5 * Math.pow(2 - c, this.je)) }, p: function() { var c = new f.Cy; c.Fa(this.H.p(), this.je); return c }, reverse: function() { return f.Cy.create(this.H.reverse(), this.je) } }); f.Cy.create = function(c, d) { return new f.Cy(c, d) }; f.Cya = function(c) { return { je: c, sa: function(c) { c *= 2; return 1 > c ? 0.5 * Math.pow(c, this.je) : 1 - 0.5 * Math.pow(2 - c, this.je) }, reverse: function() { return f.Cya(this.je) } } }; f.VJ = f.ac.extend({ update: function(c) { this.H.update(0 === c ? 0 : Math.pow(2, 10 * (c - 1))) }, reverse: function() { return f.XJ.create(this.H.reverse()) }, p: function() { var c = new f.VJ; c.Fa(this.H.p()); return c } }); f.VJ.create = function(c) { return new f.VJ(c) }; f.D9 = { sa: function(c) { return 0 === c ? 0 : Math.pow(2, 10 * (c - 1)) }, reverse: function() { return f.F9 } }; f.yya = function() { return f.D9 }; f.XJ = f.ac.extend({ update: function(c) { this.H.update(1 == c ? 1 : -Math.pow(2, -10 * c) + 1) }, reverse: function() { return f.VJ.create(this.H.reverse()) }, p: function() { var c = new f.XJ; c.Fa(this.H.p()); return c } }); f.XJ.create = function(c) { return new f.XJ(c) }; f.F9 = { sa: function(c) { return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1 }, reverse: function() { return f.D9 } }; f.Aya = function() { return f.F9 }; f.WJ = f.ac.extend({ update: function(c) { 1 != c && 0 !== c && (c *= 2, c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * (-Math.pow(2, -10 * (c - 1)) + 2)); this.H.update(c) }, reverse: function() { return f.WJ.create(this.H.reverse()) }, p: function() { var c = new f.WJ; c.Fa(this.H.p()); return c } }); f.WJ.create = function(c) { return new f.WJ(c) }; f.E9 = { sa: function(c) { return 1 !== c && 0 !== c ? (c *= 2, 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * (-Math.pow(2, -10 * (c - 1)) + 2)) : c }, reverse: function() { return f.E9 } }; f.zya = function() { return f.E9 }; f.YJ = f.ac.extend({ update: function(c) { c = 0 === c || 1 === c ? c : -1 * Math.cos(c * Math.PI / 2) + 1; this.H.update(c) }, reverse: function() { return f.$J.create(this.H.reverse()) }, p: function() { var c = new f.YJ; c.Fa(this.H.p()); return c } }); f.YJ.create = function(c) { return new f.YJ(c) }; f.P9 = { sa: function(c) { return 0 === c || 1 === c ? c : -1 * Math.cos(c * Math.PI / 2) + 1 }, reverse: function() { return f.R9 } }; f.Nya = function() { return f.P9 }; f.$J = f.ac.extend({ update: function(c) { c = 0 === c || 1 === c ? c : Math.sin(c * Math.PI / 2); this.H.update(c) }, reverse: function() { return f.YJ.create(this.H.reverse()) }, p: function() { var c = new f.$J; c.Fa(this.H.p()); return c } }); f.$J.create = function(c) { return new f.$J(c) }; f.R9 = { sa: function(c) { return 0 === c || 1 == c ? c : Math.sin(c * Math.PI / 2) }, reverse: function() { return f.P9 } }; f.Pya = function() { return f.R9 }; f.ZJ = f.ac.extend({ update: function(c) { c = 0 === c || 1 === c ? c : -0.5 * (Math.cos(Math.PI * c) - 1); this.H.update(c) }, p: function() { var c = new f.ZJ; c.Fa(this.H.p()); return c }, reverse: function() { return f.ZJ.create(this.H.reverse()) } }); f.ZJ.create = function(c) { return new f.ZJ(c) }; f.Q9 = { sa: function(c) { return 0 === c || 1 === c ? c : -0.5 * (Math.cos(Math.PI * c) - 1) }, reverse: function() { return f.Q9 } }; f.Oya = function() { return f.Q9 }; f.By = f.ac.extend({ pd: 0.3, ctor: function(c, d) { f.ac.prototype.ctor.call(this); c && this.Fa(c, d) }, mVa: function() { return this.pd }, V3a: function(c) { this.pd = c }, Fa: function(c, d) { f.ac.prototype.Fa.call(this, c); this.pd = null == d ? 0.3 : d; return !0 }, reverse: function() { f.log("cc.EaseElastic.reverse(): it should be overridden in subclass."); return null }, p: function() { var c = new f.By; c.Fa(this.H.p(), this.pd); return c } }); f.By.create = function(c, d) { return new f.By(c, d) }; f.JD = f.By.extend({ update: function(c) { var d = 0; 0 === c || 1 === c ? d = c : (d = this.pd / 4, c -= 1, d = -Math.pow(2, 10 * c) * Math.sin((c - d) * Math.PI * 2 / this.pd)); this.H.update(d) }, reverse: function() { return f.LD.create(this.H.reverse(), this.pd) }, p: function() { var c = new f.JD; c.Fa(this.H.p(), this.pd); return c } }); f.JD.create = function(c, d) { return new f.JD(c, d) }; f.B9 = { sa: function(c) { if (0 === c || 1 === c) return c; c -= 1; return -Math.pow(2, 10 * c) * Math.sin((c - 0.075) * Math.PI * 2 / 0.3) }, reverse: function() { return f.C9 } }; f.Xca = function(c) { return c && 0.3 !== c ? { pd: c, sa: function(c) { if (0 === c || 1 === c) return c; c -= 1; return -Math.pow(2, 10 * c) * Math.sin((c - this.pd / 4) * Math.PI * 2 / this.pd) }, reverse: function() { return f.Zca(this.pd) } } : f.B9 }; f.LD = f.By.extend({ update: function(c) { var d = 0, d = 0 === c || 1 == c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.pd / 4) * Math.PI * 2 / this.pd) + 1; this.H.update(d) }, reverse: function() { return f.JD.create(this.H.reverse(), this.pd) }, p: function() { var c = new f.LD; c.Fa(this.H.p(), this.pd); return c } }); f.LD.create = function(c, d) { return new f.LD(c, d) }; f.C9 = { sa: function(c) { return 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - 0.075) * Math.PI * 2 / 0.3) + 1 }, reverse: function() { return f.B9 } }; f.Zca = function(c) { return c && 0.3 !== c ? { pd: c, sa: function(c) { return 0 === c || 1 === c ? c : Math.pow(2, -10 * c) * Math.sin((c - this.pd / 4) * Math.PI * 2 / this.pd) + 1 }, reverse: function() { return f.Xca(this.pd) } } : f.C9 }; f.KD = f.By.extend({ update: function(c) { var d = 0, d = this.pd; if (0 === c || 1 == c) d = c; else { d || (d = this.pd = 0.3 * 1.5); var e = d / 4; c = 2 * c - 1; d = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - e) * Math.PI * 2 / d) : Math.pow(2, -10 * c) * Math.sin((c - e) * Math.PI * 2 / d) * 0.5 + 1 } this.H.update(d) }, reverse: function() { return f.KD.create(this.H.reverse(), this.pd) }, p: function() { var c = new f.KD; c.Fa(this.H.p(), this.pd); return c } }); f.KD.create = function(c, d) { return new f.KD(c, d) }; f.Yca = function(c) { return { pd: c || 0.3, sa: function(c) { var e = 0, e = this.pd; if (0 === c || 1 === c) e = c; else { e || (e = this.pd = 0.3 * 1.5); var g = e / 4; c = 2 * c - 1; e = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - g) * Math.PI * 2 / e) : Math.pow(2, -10 * c) * Math.sin((c - g) * Math.PI * 2 / e) * 0.5 + 1 } return e }, reverse: function() { return f.Yca(this.pd) } } }; f.ev = f.ac.extend({ Er: function(c) { if (c < 1 / 2.75) return 7.5625 * c * c; if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75; if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375; c -= 2.625 / 2.75; return 7.5625 * c * c + 0.984375 }, p: function() { var c = new f.ev; c.Fa(this.H.p()); return c }, reverse: function() { return f.ev.create(this.H.reverse()) } }); f.ev.create = function(c) { return new f.ev(c) }; f.AD = f.ev.extend({ update: function(c) { this.H.update(1 - this.Er(1 - c)) }, reverse: function() { return f.CD.create(this.H.reverse()) }, p: function() { var c = new f.AD; c.Fa(this.H.p()); return c } }); f.AD.create = function(c) { return new f.AD(c) }; f.gL = function(c) { if (c < 1 / 2.75) return 7.5625 * c * c; if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75; if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375; c -= 2.625 / 2.75; return 7.5625 * c * c + 0.984375 }; f.s9 = { sa: function(c) { return 1 - f.gL(1 - c) }, reverse: function() { return f.u9 } }; f.pya = function() { return f.s9 }; f.CD = f.ev.extend({ update: function(c) { this.H.update(this.Er(c)) }, reverse: function() { return f.AD.create(this.H.reverse()) }, p: function() { var c = new f.CD; c.Fa(this.H.p()); return c } }); f.CD.create = function(c) { return new f.CD(c) }; f.u9 = { sa: function(c) { return f.gL(c) }, reverse: function() { return f.s9 } }; f.rya = function() { return f.u9 }; f.BD = f.ev.extend({ update: function(c) { var d = 0, d = 0.5 > c ? 0.5 * (1 - this.Er(1 - 2 * c)) : 0.5 * this.Er(2 * c - 1) + 0.5; this.H.update(d) }, p: function() { var c = new f.BD; c.Fa(this.H.p()); return c }, reverse: function() { return f.BD.create(this.H.reverse()) } }); f.BD.create = function(c) { return new f.BD(c) }; f.t9 = { sa: function(c) { return c = 0.5 > c ? 0.5 * (1 - f.gL(1 - 2 * c)) : 0.5 * f.gL(2 * c - 1) + 0.5 }, reverse: function() { return f.t9 } }; f.qya = function() { return f.t9 }; f.wD = f.ac.extend({ update: function(c) { this.H.update(0 === c || 1 == c ? c : c * c * (2.70158 * c - 1.70158)) }, reverse: function() { return f.yD.create(this.H.reverse()) }, p: function() { var c = new f.wD; c.Fa(this.H.p()); return c } }); f.wD.create = function(c) { return new f.wD(c) }; f.p9 = { sa: function(c) { return 0 === c || 1 === c ? c : c * c * (2.70158 * c - 1.70158) }, reverse: function() { return f.r9 } }; f.lya = function() { return f.p9 }; f.yD = f.ac.extend({ update: function(c) { c -= 1; this.H.update(c * c * (2.70158 * c + 1.70158) + 1) }, reverse: function() { return f.wD.create(this.H.reverse()) }, p: function() { var c = new f.yD; c.Fa(this.H.p()); return c } }); f.yD.create = function(c) { return new f.yD(c) }; f.r9 = { sa: function(c) { c -= 1; return c * c * (2.70158 * c + 1.70158) + 1 }, reverse: function() { return f.p9 } }; f.nya = function() { return f.r9 }; f.xD = f.ac.extend({ update: function(c) { c *= 2; 1 > c ? this.H.update(c * c * (3.5949095 * c - 2.5949095) / 2) : (c -= 2, this.H.update(c * c * (3.5949095 * c + 2.5949095) / 2 + 1)) }, p: function() { var c = new f.xD; c.Fa(this.H.p()); return c }, reverse: function() { return f.xD.create(this.H.reverse()) } }); f.xD.create = function(c) { return new f.xD(c) }; f.q9 = { sa: function(c) { c *= 2; if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2; c -= 2; return c * c * (3.5949095 * c + 2.5949095) / 2 + 1 }, reverse: function() { return f.q9 } }; f.mya = function() { return f.q9 }; f.zD = f.ac.extend({ cN: null, dN: null, eN: null, fN: null, ctor: function(c) { f.ac.prototype.ctor.call(this, c) }, mb: function(c, d, e, g, h) { return Math.pow(1 - h, 3) * c + 3 * h * Math.pow(1 - h, 2) * d + 3 * Math.pow(h, 2) * (1 - h) * e + Math.pow(h, 3) * g }, update: function(c) { this.H.update(this.mb(this.cN, this.dN, this.eN, this.fN, c)) }, p: function() { var c = new f.zD; c.Fa(this.H.p()); c.Fga(this.cN, this.dN, this.eN, this.fN); return c }, reverse: function() { var c = f.zD.create(this.H.reverse()); c.Fga(this.fN, this.eN, this.dN, this.cN); return c }, Fga: function(c, d, e, g) { this.cN = c || 0; this.dN = d || 0; this.eN = e || 0; this.fN = g || 0 } }); f.zD.create = function(c) { return new f.zD(c) }; f.oya = function(c, d, e, g) { return { sa: function(h) { return f.zD.prototype.mb(c, d, e, g, h) }, reverse: function() { return f.oya(g, e, d, c) } } }; f.ND = f.ac.extend({ mb: function(c) { return Math.pow(c, 2) }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.ND; c.Fa(this.H.p()); return c }, reverse: function() { return f.ND.create(this.H.reverse()) } }); f.ND.create = function(c) { return new f.ND(c) }; f.G9 = { sa: f.ND.prototype.mb, reverse: function() { return f.G9 } }; f.Eya = function() { return f.G9 }; f.PD = f.ac.extend({ mb: function(c) { return -c * (c - 2) }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.PD; c.Fa(); return c }, reverse: function() { return f.PD.create(this.H.reverse()) } }); f.PD.create = function(c) { return new f.PD(c) }; f.I9 = { sa: f.PD.prototype.mb, reverse: function() { return f.I9 } }; f.Gya = function() { return f.I9 }; f.OD = f.ac.extend({ mb: function(c) { var d = c; c *= 2; 1 > c ? d = c * c * 0.5 : (--c, d = -0.5 * (c * (c - 2) - 1)); return d }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.OD; c.Fa(this.H.p()); return c }, reverse: function() { return f.OD.create(this.H.reverse()) } }); f.OD.create = function(c) { return new f.OD(c) }; f.H9 = { sa: f.OD.prototype.mb, reverse: function() { return f.H9 } }; f.Fya = function() { return f.H9 }; f.QD = f.ac.extend({ mb: function(c) { return c * c * c * c }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.QD; c.Fa(this.H.p()); return c }, reverse: function() { return f.QD.create(this.H.reverse()) } }); f.QD.create = function(c) { return new f.QD(c) }; f.J9 = { sa: f.QD.prototype.mb, reverse: function() { return f.J9 } }; f.Hya = function() { return f.J9 }; f.SD = f.ac.extend({ mb: function(c) { c -= 1; return -(c * c * c * c - 1) }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.SD; c.Fa(this.H.p()); return c }, reverse: function() { return f.SD.create(this.H.reverse()) } }); f.SD.create = function(c) { return new f.SD(c) }; f.L9 = { sa: f.SD.prototype.mb, reverse: function() { return f.L9 } }; f.Jya = function() { return f.L9 }; f.RD = f.ac.extend({ mb: function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c * c; c -= 2; return -0.5 * (c * c * c * c - 2) }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.RD; c.Fa(this.H.p()); return c }, reverse: function() { return f.RD.create(this.H.reverse()) } }); f.RD.create = function(c) { return new f.RD(c) }; f.K9 = { sa: f.RD.prototype.mb, reverse: function() { return f.K9 } }; f.Iya = function() { return f.K9 }; f.TD = f.ac.extend({ mb: function(c) { return c * c * c * c * c }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.TD; c.Fa(this.H.p()); return c }, reverse: function() { return f.TD.create(this.H.reverse()) } }); f.TD.create = function(c) { return new f.TD(c) }; f.M9 = { sa: f.TD.prototype.mb, reverse: function() { return f.M9 } }; f.Kya = function() { return f.M9 }; f.VD = f.ac.extend({ mb: function(c) { c -= 1; return c * c * c * c * c + 1 }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.VD; c.Fa(this.H.p()); return c }, reverse: function() { return f.VD.create(this.H.reverse()) } }); f.VD.create = function(c) { return new f.VD(c) }; f.O9 = { sa: f.VD.prototype.mb, reverse: function() { return f.O9 } }; f.Mya = function() { return f.O9 }; f.UD = f.ac.extend({ mb: function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c * c * c; c -= 2; return 0.5 * (c * c * c * c * c + 2) }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.UD; c.Fa(this.H.p()); return c }, reverse: function() { return f.UD.create(this.H.reverse()) } }); f.UD.create = function(c) { return new f.UD(c) }; f.N9 = { sa: f.UD.prototype.mb, reverse: function() { return f.N9 } }; f.Lya = function() { return f.N9 }; f.DD = f.ac.extend({ mb: function(c) { return -1 * (Math.sqrt(1 - c * c) - 1) }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.DD; c.Fa(this.H.p()); return c }, reverse: function() { return f.DD.create(this.H.reverse()) } }); f.DD.create = function(c) { return new f.DD(c) }; f.v9 = { sa: f.DD.prototype.mb, reverse: function() { return f.v9 } }; f.sya = function() { return f.v9 }; f.FD = f.ac.extend({ mb: function(c) { c -= 1; return Math.sqrt(1 - c * c) }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.FD; c.Fa(this.H.p()); return c }, reverse: function() { return f.FD.create(this.H.reverse()) } }); f.FD.create = function(c) { return new f.FD(c) }; f.x9 = { sa: f.FD.prototype.mb, reverse: function() { return f.x9 } }; f.uya = function() { return f.x9 }; f.ED = f.ac.extend({ mb: function(c) { c *= 2; if (1 > c) return -0.5 * (Math.sqrt(1 - c * c) - 1); c -= 2; return 0.5 * (Math.sqrt(1 - c * c) + 1) }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.ED; c.Fa(this.H.p()); return c }, reverse: function() { return f.ED.create(this.H.reverse()) } }); f.ED.create = function(c) { return new f.ED(c) }; f.w9 = { sa: f.ED.prototype.mb, reverse: function() { return f.w9 } }; f.tya = function() { return f.w9 }; f.GD = f.ac.extend({ mb: function(c) { return c * c * c }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.GD; c.Fa(this.H.p()); return c }, reverse: function() { return f.GD.create(this.H.reverse()) } }); f.GD.create = function(c) { return new f.GD(c) }; f.y9 = { sa: f.GD.prototype.mb, reverse: function() { return f.y9 } }; f.vya = function() { return f.y9 }; f.ID = f.ac.extend({ mb: function(c) { c -= 1; return c * c * c + 1 }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.ID; c.Fa(this.H.p()); return c }, reverse: function() { return f.ID.create(this.H.reverse()) } }); f.ID.create = function(c) { return new f.ID(c) }; f.A9 = { sa: f.ID.prototype.mb, reverse: function() { return f.A9 } }; f.xya = function() { return f.A9 }; f.HD = f.ac.extend({ mb: function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c; c -= 2; return 0.5 * (c * c * c + 2) }, update: function(c) { this.H.update(this.mb(c)) }, p: function() { var c = new f.HD; c.Fa(this.H.p()); return c }, reverse: function() { return f.HD.create(this.H.reverse()) } }); f.HD.create = function(c) { return new f.HD(c) }; f.z9 = { sa: f.HD.prototype.mb, reverse: function() { return f.z9 } }; f.wya = function() { return f.z9 }; f.a_ = function(c, d, e, g, h, k) { var m = k * k, n = m * k, p = (1 - h) / 2; h = p * (-n + 2 * m - k); var s = p * (-n + m) + (2 * n - 3 * m + 1); k = p * (n - 2 * m + k) + (-2 * n + 3 * m); m = p * (n - m); return r(c.x * h + d.x * s + e.x * k + g.x * m, c.y * h + d.y * s + e.y * k + g.y * m) }; f.wga = function(c) { for (var d = [], e = c.length - 1; 0 <= e; e--) d.push(r(c[e].x, c[e].y)); return d }; f.OO = function(c) { for (var d = [], e = 0; e < c.length; e++) d.push(r(c[e].x, c[e].y)); return d }; f.tg = function(c, d) { var e = Math.min(c.length - 1, Math.max(d, 0)); return c[e] }; f.L1a = function(c) { for (var d = c.length, e = 0 | d / 2, g = 0; g < e; ++g) { var h = c[g]; c[g] = c[d - g - 1]; c[d - g - 1] = h } }; f.Wm = f.M.extend({ xn: null, i9: 0, UA: 0, Kf: null, w8: null, ctor: function(c, d, e) { f.M.prototype.ctor.call(this); this.xn = []; void 0 !== e && this.f(c, d, e) }, f: function(c, d, e) { if (!d || 0 == d.length) throw "Invalid configuration. It must at least have one control point"; return f.M.prototype.f.call(this, c) ? (this.tHa(d), this.UA = e, !0) : !1 }, p: function() { var c = new f.Wm; c.f(this.C, f.OO(this.xn), this.UA); return c }, R: function(c) { f.M.prototype.R.call(this, c); this.i9 = 1 / (this.xn.length - 1); this.Kf = r(this.target.Vc(), this.target.Zd()); this.w8 = r(0, 0) }, update: function(c) { c = this.Eg(c); var d, e = this.xn; if (1 == c) d = e.length - 1, c = 1; else { var g = this.i9; d = 0 | c / g; c = (c - g * d) / g } d = f.a_(f.tg(e, d - 1), f.tg(e, d - 0), f.tg(e, d + 1), f.tg(e, d + 2), this.UA, c); f.SJ && (e = this.target.Vc() - this.Kf.x, c = this.target.Zd() - this.Kf.y, 0 != e || 0 != c) && (g = this.w8, e = g.x + e, c = g.y + c, g.x = e, g.y = c, d.x += e, d.y += c); this.Gia(d) }, reverse: function() { var c = f.wga(this.xn); return f.Wm.create(this.C, c, this.UA) }, Gia: function(c) { this.target.o(c); this.Kf = c }, oVa: function() { return this.xn }, tHa: function(c) { this.xn = c } }); f.Wm.create = function(c, d, e) { return new f.Wm(c, d, e) }; f.bv = f.Wm.extend({ tf: null, ctor: function(c, d, e) { f.Wm.prototype.ctor.call(this); this.tf = r(0, 0); void 0 !== e && this.f(c, d, e) }, R: function(c) { f.Wm.prototype.R.call(this, c); this.tf.x = c.Vc(); this.tf.y = c.Zd() }, reverse: function() { for (var c = this.xn.slice(), d, e = c[0], g = 1; g < c.length; ++g) d = c[g], c[g] = f.gc(d, e), e = d; c = f.wga(c); e = c[c.length - 1]; c.pop(); e.x = -e.x; e.y = -e.y; c.unshift(e); for (g = 1; g < c.length; ++g) d = c[g], d.x = -d.x, d.y = -d.y, d.x += e.x, d.y += e.y, e = c[g] = d; return f.bv.create(this.C, c, this.UA) }, Gia: function(c) { var d = this.tf, e = c.x + d.x; c = c.y + d.y; this.Kf.x = e; this.Kf.y = c; this.target.o(e, c) }, p: function() { var c = new f.bv; c.f(this.C, f.OO(this.xn), this.UA); return c } }); f.bv.create = function(c, d, e) { return new f.bv(c, d, e) }; f.IJ = f.Wm.extend({ ctor: function(c, d) { d && this.f(c, d) }, f: function(c, d) { return f.Wm.prototype.f.call(this, c, d, 0.5) }, p: function() { var c = new f.IJ; c.f(this.C, f.OO(this.xn)); return c } }); f.IJ.create = function(c, d) { return new f.IJ(c, d) }; f.HJ = f.bv.extend({ ctor: function(c, d) { f.bv.prototype.ctor.call(this); d && this.f(c, d) }, f: function(c, d) { return f.Wm.prototype.f.call(this, c, d, 0.5) }, p: function() { var c = new f.HJ; c.f(this.C, f.OO(this.xn)); return c } }); f.HJ.create = function(c, d) { return new f.HJ(c, d) }; f.LJa = f.N.extend({ D3: function() {} }); f.Xu = f.M.extend({ key: "", dP: 0, lJ: 0, xB: 0, ctor: function(c, d, e, g) { f.M.prototype.ctor.call(this); this.key = ""; void 0 !== g && this.f(c, d, e, g) }, f: function(c, d, e, g) { return f.M.prototype.f.call(this, c) ? (this.key = d, this.lJ = g, this.dP = e, !0) : !1 }, R: function(c) { if (!c || !c.D3) throw "cc.ActionTween.startWithTarget(): target must be non-null, and target must implement updateTweenAction function"; f.M.prototype.R.call(this, c); this.xB = this.lJ - this.dP }, update: function(c) { this.target.D3(this.lJ - this.xB * (1 - c), this.key) }, reverse: function() { return f.Xu.create(this.duration, this.key, this.lJ, this.dP) }, p: function() { var c = new f.Xu; c.f(this.C, this.key, this.dP, this.lJ); return c } }); f.Xu.create = function(c, d, e, g) { var h = new f.Xu; return h.f(c, d, e, g) ? h : null }; f.action = f.Ag.create; f.speed = f.lE.create; f.ORa = f.cK.create; f.Q_a = f.di.create; f.cQa = f.Wm.create; f.bQa = f.bv.create; f.eQa = f.IJ.create; f.dQa = f.HJ.create; f.show = f.Ej.create; f.YWa = f.Hl.create; f.B5a = f.uE.create; f.t1a = f.fE.create; f.gda = f.YD.create; f.hda = f.ZD.create; f.n0a = f.nK.create; f.YPa = f.ua.create; f.hPa = f.M.create; f.p2a = f.X.create; f.repeat = f.gE.create; f.ZFa = f.hE.create; f.$4a = f.fe.create; f.R1a = f.pv.create; f.Q1a = f.Ry.create; f.moveBy = f.vk.create; f.moveTo = f.Dc.create; f.Z4a = f.uq.create; f.Y4a = f.kE.create; f.dYa = f.xo.create; f.eYa = f.dK.create; f.SPa = f.qs.create; f.TPa = f.zJ.create; f.W1a = f.Db.create; f.V1a = f.Ty.create; f.blink = f.kD.create; f.LRa = f.Xc.create; f.JRa = f.Fy.create; f.KRa = f.Gy.create; f.z5a = f.Vy.create; f.y5a = f.tE.create; f.IQa = f.Nb.create; f.M1a = f.ov.create; f.KPa = f.gD.create; f.r5a = f.FK.create; f.iPa = f.Xu.create; f.we = f.M.extend({ ya: null, ctor: function(c, d) { f.tV(); f.M.prototype.ctor.call(this); this.ya = t(0, 0); d && this.f(c, d) }, p: function() { var c = new f.we, d = this.ya; c.f(this.C, t(d.width, d.height)); return c }, R: function(c) { f.M.prototype.R.call(this, c); var d = this.vH(), e = this.target; (c = e.grid) && 0 < c.np ? (d = c.$za(), c.Bi() && d.width == this.ya.width && d.height == this.ya.height && c.PQ()) : (c && c.Bi() && c.setActive(!1), e.grid = d, e.grid.setActive(!0)) }, reverse: function() { return f.ov.create(this) }, f: function(c, d) { return f.M.prototype.f.call(this, c) ? (this.ya.width = d.width, this.ya.height = d.height, !0) : !1 }, vH: function() { f.log("cc.GridAction.getGrid(): it should be overridden in subclass.") } }); f.we.create = function(c, d) { return new f.we(c, d) }; f.Zf = f.we.extend({ vH: function() { return f.SS.create(this.ya) }, Oia: function(c) { return this.target.grid.Oia(c) }, zf: function(c) { return this.target.grid.zf(c) }, Ah: function(c, d) { this.target.grid.Ah(c, d) } }); f.Zf.create = function(c, d) { return new f.Zf(c, d) }; f.Ne = f.we.extend({ uia: function(c) { return this.target.grid.uia(c) }, kl: function(c) { return this.target.grid.kl(c) }, yj: function(c, d) { this.target.grid.yj(c, d) }, vH: function() { return f.iU.create(this.ya) } }); f.Ne.create = function(c, d) { return new f.Ne(c, d) }; f.qv = f.Ch.extend({ R: function(c) { f.Ch.prototype.R.call(this, c); (c = this.target.grid) && c.Bi() && c.setActive(!1) } }); f.qv.create = function() { return new f.qv }; f.Y6 = f.Ch.extend({ ne: null, ctor: function(c) { f.Ch.prototype.ctor.call(this); void 0 !== c && this.ECa(c) }, ECa: function(c) { this.ne = c; return !0 }, R: function(c) { f.Ch.prototype.R.call(this, c); this.target.grid && this.target.grid.Bi() && this.target.grid.FHa(this.target.grid.np + this.ne) } }); f.Y6.create = function(c) { return new f.Y6(c) }; f.l8 = f.Zf.extend({ Zj: 0, oc: 0, pc: 0, ctor: function(c, d, e, g) { f.we.prototype.ctor.call(this); void 0 !== g && this.f(c, d, e, g) }, JB: function() { return this.oc }, DC: function(c) { this.oc = c }, vx: function() { return this.pc }, Wx: function(c) { this.pc = c }, f: function(c, d, e, g) { return f.Zf.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, !0) : !1 }, update: function(c) { for (var d = this.ya, e = this.oc, g = r(0, 0), h = this.pc, k = this.Zj, m = 0; m < d.width + 1; ++m) for (var n = 0; n < d.height + 1; ++n) { g.x = m; g.y = n; var p = this.zf(g); p.z += Math.sin(Math.PI * c * k * 2 + 0.01 * (p.y + p.x)) * e * h; this.Ah(g, p) } } }); f.l8.create = function(c, d, e, g) { return new f.l8(c, d, e, g) }; f.QS = f.Zf.extend({ ctor: function(c) { void 0 !== c ? f.we.prototype.ctor.call(this, c, t(1, 1)) : f.we.prototype.ctor.call(this) }, f: function(c) { return f.Zf.prototype.f.call(this, c, t(1, 1)) }, Jp: function(c, d) { return 1 != c.width || 1 != c.height ? (f.log("Grid size must be (1,1)"), !1) : f.Zf.prototype.f.call(this, d, c) }, update: function(c) { var d = Math.PI * c; c = Math.sin(d); var e = Math.cos(d / 2), d = new f.Oe, g = r(0, 0); g.x = g.y = 1; var h = this.zf(g); g.x = g.y = 0; var g = this.zf(g), k = h.x, m = g.x, n, p; k > m ? (h = r(0, 0), g = r(0, 1), n = r(1, 0), p = r(1, 1)) : (n = r(0, 0), p = r(0, 1), h = r(1, 0), g = r(1, 1), k = m); d.x = k - k * e; d.z = Math.abs(parseFloat(k * c / 4)); c = this.zf(h); c.x = d.x; c.z += d.z; this.Ah(h, c); c = this.zf(g); c.x = d.x; c.z += d.z; this.Ah(g, c); c = this.zf(n); c.x -= d.x; c.z -= d.z; this.Ah(n, c); c = this.zf(p); c.x -= d.x; c.z -= d.z; this.Ah(p, c) } }); f.QS.create = function(c) { return new f.QS(c) }; f.w5 = f.QS.extend({ ctor: function(c) { void 0 !== c ? f.we.prototype.ctor.call(this, c, t(1, 1)) : f.we.prototype.ctor.call(this) }, update: function(c) { var d = Math.PI * c; c = Math.sin(d); var e = Math.cos(d / 2), d = new f.Oe, g = r(0, 0); g.x = g.y = 1; var h = this.zf(g); g.x = g.y = 0; var g = this.zf(g), k = h.y, m = g.y, n, p; k > m ? (h = r(0, 0), g = r(0, 1), n = r(1, 0), p = r(1, 1)) : (g = r(0, 0), h = r(0, 1), p = r(1, 0), n = r(1, 1), k = m); d.y = k - k * e; d.z = Math.abs(parseFloat(k * c) / 4); c = this.zf(h); c.y = d.y; c.z += d.z; this.Ah(h, c); c = this.zf(g); c.y -= d.y; c.z -= d.z; this.Ah(g, c); c = this.zf(n); c.y = d.y; c.z += d.z; this.Ah(n, c); c = this.zf(p); c.y -= d.y; c.z -= d.z; this.Ah(p, c) } }); f.w5.create = function(c) { return new f.w5(c) }; f.X5 = f.Zf.extend({ oa: null, Zi: 0, GM: 0, Qqa: !1, Ec: !1, ctor: function(c, d, e, g) { f.we.prototype.ctor.call(this); this.oa = r(0, 0); void 0 !== g && this.f(c, d, e, g) }, vUa: function() { return this.GM }, A3a: function(c) { this.GM = c }, O2a: function(c) { this.Qqa = c }, Od: function() { return this.oa }, o: function(c) { f.I1(c, this.oa) || (this.oa.x = c.x, this.oa.y = c.y, this.Ec = !0) }, f: function(c, d, e, g) { return f.Zf.prototype.f.call(this, c, d) ? (this.o(e), this.Zi = g, this.GM = 0.7, this.Ec = !0) : !1 }, update: function() { if (this.Ec) { for (var c = this.ya.width, d = this.ya.height, e = this.Zi, g = this.GM, h = r(0, 0), k = r(0, 0), m, n, p, s = 0; s < c + 1; ++s) for (var u = 0; u < d + 1; ++u) h.x = s, h.y = u, m = this.zf(h), k.x = this.oa.x - m.x, k.y = this.oa.y - m.y, n = f.ff(k), n < e && (n = e - n, n /= e, 0 == n && (n = 0.001), n = Math.log(n) * g, p = Math.exp(n) * e, n = f.ff(k), 0 < n && (k.x /= n, k.y /= n, k.x *= p, k.y *= p, m.z += f.ff(k) * g)), this.Ah(h, m); this.Ec = !1 } } }); f.X5.create = function(c, d, e, g) { return new f.X5(c, d, e, g) }; f.Z6 = f.Zf.extend({ oa: null, Zi: 0, Zj: 0, oc: 0, pc: 0, ctor: function(c, d, e, g, h, k) { f.we.prototype.ctor.call(this); this.oa = r(0, 0); void 0 !== k && this.f(c, d, e, g, h, k) }, Od: function() { return this.oa }, o: function(c) { this.oa.x = c.x; this.oa.y = c.y }, JB: function() { return this.oc }, DC: function(c) { this.oc = c }, vx: function() { return this.pc }, Wx: function(c) { this.pc = c }, f: function(c, d, e, g, h, k) { return f.Zf.prototype.f.call(this, c, d) ? (this.o(e), this.Zi = g, this.Zj = h, this.oc = k, this.pc = 1, !0) : !1 }, update: function(c) { for (var d = this.ya.width, e = this.ya.height, g = r(0, 0), h = this.Zi, k = this.Zj, m = this.oc, n = this.pc, p, s, u = r(0, 0), v = 0; v < d + 1; ++v) for (var z = 0; z < e + 1; ++z) g.x = v, g.y = z, p = this.zf(g), u.x = this.oa.x - p.x, u.y = this.oa.y - p.y, s = f.ff(u), s < h && (s = h - s, p.z += Math.sin(c * Math.PI * k * 2 + 0.1 * s) * m * n * Math.pow(s / h, 2)), this.Ah(g, p) } }); f.Z6.create = function(c, d, e, g, h, k) { return new f.Z6(c, d, e, g, h, k) }; f.h7 = f.Zf.extend({ Gt: 0, pG: !1, ctor: function(c, d, e, g) { f.we.prototype.ctor.call(this); void 0 !== g && this.f(c, d, e, g) }, f: function(c, d, e, g) { return f.Zf.prototype.f.call(this, c, d) ? (this.Gt = e, this.pG = g, !0) : !1 }, update: function() { for (var c = this.ya.width, d = this.ya.height, e = this.Gt, g = this.pG, h = r(0, 0), k, m = 0; m < c + 1; ++m) for (var n = 0; n < d + 1; ++n) h.x = m, h.y = n, k = this.zf(h), k.x += f.jd() % (2 * e) - e, k.y += f.jd() % (2 * e) - e, g && (k.z += f.jd() % (2 * e) - e), this.Ah(h, k) } }); f.h7.create = function(c, d, e, g) { return new f.h7(c, d, e, g) }; f.Y5 = f.Zf.extend({ Zj: 0, oc: 0, pc: 0, ctor: function(c, d, e, g) { f.we.prototype.ctor.call(this); void 0 !== g && this.f(c, d, e, g) }, JB: function() { return this.oc }, DC: function(c) { this.oc = c }, vx: function() { return this.pc }, Wx: function(c) { this.pc = c }, f: function(c, d, e, g) { return f.Zf.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, !0) : !1 }, update: function(c) { for (var d = this.ya.width, e = this.ya.height, g = r(0, 0), h = this.Zj, k = this.oc, m = this.pc, n, p = 1; p < d; ++p) for (var s = 1; s < e; ++s) g.x = p, g.y = s, n = this.zf(g), n.x += Math.sin(c * Math.PI * h * 2 + 0.01 * n.x) * k * m, n.y += Math.sin(c * Math.PI * h * 2 + 0.01 * n.y) * k * m, this.Ah(g, n) } }); f.Y5.create = function(c, d, e, g) { return new f.Y5(c, d, e, g) }; f.k8 = f.Zf.extend({ Zj: 0, oc: 0, pc: 0, Kba: !1, z$: !1, ctor: function(c, d, e, g, h, k) { f.we.prototype.ctor.call(this); void 0 !== k && this.f(c, d, e, g, h, k) }, JB: function() { return this.oc }, DC: function(c) { this.oc = c }, vx: function() { return this.pc }, Wx: function(c) { this.pc = c }, f: function(c, d, e, g, h, k) { return f.Zf.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, this.z$ = h, this.Kba = k, !0) : !1 }, update: function(c) { for (var d = this.ya.width, e = this.ya.height, g = r(0, 0), h = this.Kba, k = this.z$, m = this.Zj, n = this.oc, p = this.pc, s, u = 0; u < d + 1; ++u) for (var v = 0; v < e + 1; ++v) g.x = u, g.y = v, s = this.zf(g), h && (s.x += Math.sin(c * Math.PI * m * 2 + 0.01 * s.y) * n * p), k && (s.y += Math.sin(c * Math.PI * m * 2 + 0.01 * s.x) * n * p), this.Ah(g, s) } }); f.k8.create = function(c, d, e, g, h, k) { return new f.k8(c, d, e, g, h, k) }; f.f8 = f.Zf.extend({ oa: null, vba: 0, oc: 0, pc: 0, ctor: function(c, d, e, g, h) { f.we.prototype.ctor.call(this); this.oa = r(0, 0); void 0 !== h && this.f(c, d, e, g, h) }, Od: function() { return this.oa }, o: function(c) { this.oa.x = c.x; this.oa.y = c.y }, JB: function() { return this.oc }, DC: function(c) { this.oc = c }, vx: function() { return this.pc }, Wx: function(c) { this.pc = c }, f: function(c, d, e, g, h) { return f.Zf.prototype.f.call(this, c, d) ? (this.o(e), this.vba = g, this.oc = h, this.pc = 1, !0) : !1 }, update: function(c) { for (var d = this.oa, e = this.ya.width, g = this.ya.height, h = r(0, 0), k = 0.1 * this.oc * this.pc, m = this.vba, n, p, s, u = r(0, 0), v = 0; v < e + 1; ++v) for (var z = 0; z < g + 1; ++z) h.x = v, h.y = z, n = this.zf(h), u.x = v - e / 2, u.y = z - g / 2, p = f.ff(u) * Math.cos(Math.PI / 2 + c * Math.PI * m * 2) * k, s = Math.sin(p) * (n.y - d.y) + Math.cos(p) * (n.x - d.x), p = Math.cos(p) * (n.y - d.y) - Math.sin(p) * (n.x - d.x), n.x = d.x + s, n.y = d.y + p, this.Ah(h, n) } }); f.f8.create = function(c, d, e, g, h) { return new f.f8(c, d, e, g, h) }; f.i7 = f.Ne.extend({ Gt: 0, pG: !1, ctor: function(c, d, e, g) { f.we.prototype.ctor.call(this); void 0 !== g && this.f(c, d, e, g) }, f: function(c, d, e, g) { return f.Ne.prototype.f.call(this, c, d) ? (this.Gt = e, this.pG = g, !0) : !1 }, update: function() { for (var c = this.ya, d = this.Gt, e = r(0, 0), g = 0; g < c.width; ++g) for (var h = 0; h < c.height; ++h) { e.x = g; e.y = h; var k = this.kl(e); k.T.x += f.jd() % (2 * d) - d; k.aa.x += f.jd() % (2 * d) - d; k.Z.x += f.jd() % (2 * d) - d; k.W.x += f.jd() % (2 * d) - d; k.T.y += f.jd() % (2 * d) - d; k.aa.y += f.jd() % (2 * d) - d; k.Z.y += f.jd() % (2 * d) - d; k.W.y += f.jd() % (2 * d) - d; this.pG && (k.T.z += f.jd() % (2 * d) - d, k.aa.z += f.jd() % (2 * d) - d, k.Z.z += f.jd() % (2 * d) - d, k.W.z += f.jd() % (2 * d) - d); this.yj(e, k) } } }); f.i7.create = function(c, d, e, g) { return new f.i7(c, d, e, g) }; f.j7 = f.Ne.extend({ Gt: 0, oX: !1, dba: !1, ctor: function(c, d, e, g) { f.we.prototype.ctor.call(this); void 0 !== g && this.f(c, d, e, g) }, f: function(c, d, e, g) { return f.Ne.prototype.f.call(this, c, d) ? (this.oX = !1, this.Gt = e, this.dba = g, !0) : !1 }, update: function() { if (!1 === this.oX) { for (var c = this.ya, d = this.Gt, e, g = r(0, 0), h = 0; h < c.width; ++h) for (var k = 0; k < c.height; ++k) g.x = h, g.y = k, e = this.kl(g), e.T.x += f.jd() % (2 * d) - d, e.aa.x += f.jd() % (2 * d) - d, e.Z.x += f.jd() % (2 * d) - d, e.W.x += f.jd() % (2 * d) - d, e.T.y += f.jd() % (2 * d) - d, e.aa.y += f.jd() % (2 * d) - d, e.Z.y += f.jd() % (2 * d) - d, e.W.y += f.jd() % (2 * d) - d, this.dba && (e.T.z += f.jd() % (2 * d) - d, e.aa.z += f.jd() % (2 * d) - d, e.Z.z += f.jd() % (2 * d) - d, e.W.z += f.jd() % (2 * d) - d), this.yj(g, e); this.oX = !0 } } }); f.j7.create = function(c, d, e, g) { return new f.j7(c, d, e, g) }; function ia() { this.position = r(0, 0); this.qIa = r(0, 0); this.xB = r(0, 0) } f.k7 = f.Ne.extend({ cY: 0, wr: 0, qp: null, ej: null, ctor: function(c, d, e) { f.we.prototype.ctor.call(this); this.qp = []; this.ej = []; void 0 !== e && this.f(c, d, e) }, f: function(c, d, e) { return f.Ne.prototype.f.call(this, c, d) ? (this.cY = e, this.qp.length = 0, this.ej.length = 0, !0) : !1 }, e3: function(c, d) { for (var e = d - 1; 0 <= e; e--) { var g = 0 | f.jd() % (e + 1), h = c[e]; c[e] = c[g]; c[g] = h } }, a0: function(c) { var d = this.ya, e = c.width * d.height + c.height; return t(this.qp[e] / d.height - c.width, this.qp[e] % d.height - c.height) }, ZEa: function(c, d) { var e = this.kl(c), g = this.target.grid.q0(), h = d.position; e.T.x += h.x * g.x; e.T.y += h.y * g.y; e.aa.x += h.x * g.x; e.aa.y += h.y * g.y; e.Z.x += h.x * g.x; e.Z.y += h.y * g.y; e.W.x += h.x * g.x; e.W.y += h.y * g.y; this.yj(c, e) }, R: function(c) { f.Ne.prototype.R.call(this, c); c = this.ya; this.wr = c.width * c.height; for (var d = this.qp, e = d.length = 0; e < this.wr; ++e) d[e] = e; this.e3(d, this.wr); for (var d = this.ej, e = d.length = 0, g = t(0, 0), h = 0; h < c.width; ++h) for (var k = 0; k < c.height; ++k) d[e] = new ia, d[e].position = r(h, k), d[e].qIa = r(h, k), g.width = h, g.height = k, d[e].xB = this.a0(g), ++e }, update: function(c) { for (var d = 0, e = this.ya, g = this.ej, h, k = r(0, 0), m = 0; m < e.width; ++m) for (var n = 0; n < e.height; ++n) k.x = m, k.y = n, h = g[d], h.position.x = h.xB.width * c, h.position.y = h.xB.height * c, this.ZEa(k, h), ++d } }); f.k7.create = function(c, d, e) { return new f.k7(c, d, e) }; f.XD = f.Ne.extend({ NR: function(c, d) { var e = this.ya.width * d, g = this.ya.height * d; return 0 == e + g ? 1 : Math.pow((c.width + c.height) / (e + g), 6) }, v3: function(c) { this.yj(c, this.kl(c)) }, u3: function(c) { this.yj(c, new f.oK) }, yia: function(c, d) { var e = this.kl(c), g = this.target.grid.q0(); e.T.x += g.x / 2 * (1 - d); e.T.y += g.y / 2 * (1 - d); e.aa.x -= g.x / 2 * (1 - d); e.aa.y += g.y / 2 * (1 - d); e.Z.x += g.x / 2 * (1 - d); e.Z.y -= g.y / 2 * (1 - d); e.W.x -= g.x / 2 * (1 - d); e.W.y -= g.y / 2 * (1 - d); this.yj(c, e) }, update: function(c) { for (var d = this.ya, e = r(0, 0), g = t(0, 0), h, k = 0; k < d.width; ++k) for (var m = 0; m < d.height; ++m) e.x = k, e.y = m, g.width = k, g.height = m, h = this.NR(g, c), 0 == h ? this.u3(e) : 1 > h ? this.yia(e, h) : this.v3(e) } }); f.XD.create = function(c, d) { return new f.XD(c, d) }; f.OS = f.XD.extend({ NR: function(c, d) { return 0 == c.width + c.height ? 1 : Math.pow((this.ya.width * (1 - d) + this.ya.height * (1 - d)) / (c.width + c.height), 6) } }); f.OS.create = function(c, d) { return new f.OS(c, d) }; f.bK = f.XD.extend({ NR: function(c, d) { var e = this.ya.height * d; return 0 == e ? 1 : Math.pow(c.height / e, 6) }, yia: function(c, d) { var e = this.kl(c), g = this.target.grid.q0(); e.T.y += g.y / 2 * (1 - d); e.aa.y += g.y / 2 * (1 - d); e.Z.y -= g.y / 2 * (1 - d); e.W.y -= g.y / 2 * (1 - d); this.yj(c, e) } }); f.bK.create = function(c, d) { return new f.bK(c, d) }; f.PS = f.bK.extend({ NR: function(c, d) { return 0 == c.height ? 1 : Math.pow(this.ya.height * (1 - d) / c.height, 6) } }); f.PS.create = function(c, d) { return new f.PS(c, d) }; f.mU = f.Ne.extend({ cY: null, wr: 0, qp: null, ctor: function(c, d, e) { f.we.prototype.ctor.call(this); this.qp = []; void 0 !== d && this.f(c, d, e) }, f: function(c, d, e) { return f.Ne.prototype.f.call(this, c, d) ? (this.cY = e || 0, this.qp.length = 0, !0) : !1 }, e3: function(c, d) { for (var e = d - 1; 0 <= e; e--) { var g = 0 | f.jd() % (e + 1), h = c[e]; c[e] = c[g]; c[g] = h } }, v3: function(c) { this.yj(c, this.kl(c)) }, u3: function(c) { this.yj(c, new f.oK) }, R: function(c) { f.Ne.prototype.R.call(this, c); this.wr = this.ya.width * this.ya.height; c = this.qp; for (var d = c.length = 0; d < this.wr; ++d) c[d] = d; this.e3(c, this.wr) }, update: function(c) { c = 0 | c * this.wr; for (var d = this.ya, e, g = r(0, 0), h = this.qp, k = 0; k < this.wr; k++) e = h[k], g.x = 0 | e / d.height, g.y = e % (0 | d.height), k < c ? this.u3(g) : this.v3(g) } }); f.mU.create = function(c, d, e) { return new f.mU(c, d, e) }; f.m8 = f.Ne.extend({ Zj: 0, oc: 0, pc: 0, ctor: function(c, d, e, g) { f.we.prototype.ctor.call(this); void 0 !== g && this.f(c, d, e, g) }, JB: function() { return this.oc }, DC: function(c) { this.oc = c }, vx: function() { return this.pc }, Wx: function(c) { this.pc = c }, f: function(c, d, e, g) { return f.Ne.prototype.f.call(this, c, d) ? (this.Zj = e, this.oc = g, this.pc = 1, !0) : !1 }, update: function(c) { for (var d = this.ya, e = this.Zj, g = this.oc, h = this.pc, k = r(0, 0), m, n = 0; n < d.width; n++) for (var p = 0; p < d.height; p++) k.x = n, k.y = p, m = this.kl(k), m.T.z = Math.sin(c * Math.PI * e * 2 + 0.01 * (m.T.y + m.T.x)) * g * h, m.aa.z = m.T.z, m.Z.z = m.T.z, m.W.z = m.T.z, this.yj(k, m) } }); f.m8.create = function(c, d, e, g) { return new f.m8(c, d, e, g) }; f.G5 = f.Ne.extend({ Zq: 0, oc: 0, pc: 0, ctor: function(c, d, e, g) { f.we.prototype.ctor.call(this); void 0 !== g && this.f(c, d, e, g) }, JB: function() { return this.oc }, DC: function(c) { this.oc = c }, vx: function() { return this.pc }, Wx: function(c) { this.pc = c }, f: function(c, d, e, g) { return f.Ne.prototype.f.call(this, c, d) ? (this.Zq = e, this.oc = g, this.pc = 1, !0) : !1 }, update: function(c) { var d = Math.sin(Math.PI * c * this.Zq * 2) * this.oc * this.pc; c = Math.sin(Math.PI * (c * this.Zq * 2 + 1)) * this.oc * this.pc; for (var e = this.ya, g = this.target.grid, h, k = r(0, 0), m = 0; m < e.width; m++) for (var n = 0; n < e.height; n++) k.x = m, k.y = n, h = g.kl(k), 0 == (m + n) % 2 ? (h.T.z += d, h.aa.z += d, h.Z.z += d, h.W.z += d) : (h.T.z += c, h.aa.z += c, h.Z.z += c, h.W.z += c), g.yj(k, h) } }); f.G5.create = function(c, d, e, g) { return new f.G5(c, d, e, g) }; f.QT = f.Ne.extend({ dua: 0, SG: null, ctor: function(c, d) { f.we.prototype.ctor.call(this); void 0 !== d && this.f(c, d) }, f: function(c, d) { this.dua = d; return f.Ne.prototype.f.call(this, c, t(1, d)) }, update: function(c) { for (var d = this.ya, e = this.SG.width, g, h, k = r(0, 0), m = 0; m < d.height; ++m) k.y = m, g = this.kl(k), h = 1, 0 == m % 2 && (h = -1), g.T.x += h * e * c, g.aa.x += h * e * c, g.Z.x += h * e * c, g.W.x += h * e * c, this.yj(k, g) }, R: function(c) { f.Ne.prototype.R.call(this, c); this.SG = f.Q.KH() } }); f.QT.create = function(c, d) { return new f.QT(c, d) }; f.PT = f.Ne.extend({ Pqa: 0, SG: null, ctor: function(c, d) { f.we.prototype.ctor.call(this); void 0 !== d && this.f(c, d) }, f: function(c, d) { this.Pqa = d; return f.Ne.prototype.f.call(this, c, t(d, 1)) }, update: function(c) { for (var d = this.ya.width, e = this.SG.height, g, h, k = r(0, 0), m = 0; m < d; ++m) k.x = m, g = this.kl(k), h = 1, 0 == m % 2 && (h = -1), g.T.y += h * e * c, g.aa.y += h * e * c, g.Z.y += h * e * c, g.W.y += h * e * c, this.yj(k, g) }, R: function(c) { f.Ne.prototype.R.call(this, c); this.SG = f.Q.KH() } }); f.PT.create = function(c, d) { return new f.PT(c, d) }; f.lK = f.Zf.extend({ update: function(c) { var d = Math.max(0, c - 0.25), d = -100 - d * d * 500, e = +Math.PI / 2 + -Math.PI / 2 * Math.sqrt(c); c = Math.sin(e); for (var e = Math.cos(e), g = this.ya, h = r(0, 0), k = 0; k <= g.width; ++k) for (var m = 0; m <= g.height; ++m) { h.x = k; h.y = m; var n = this.zf(h), p = Math.sqrt(n.x * n.x + (n.y - d) * (n.y - d)), s = p * c, u = Math.asin(n.x / p) / c, v = Math.cos(u); n.x = u <= Math.PI ? s * Math.sin(u) : 0; n.y = p + d - s * (1 - v) * c; n.z = s * (1 - v) * e / 7; 0.5 > n.z && (n.z = 0.5); this.Ah(h, n) } } }); f.lK.create = function(c, d) { return new f.lK(c, d) }; f.bc = f.ja.extend({ zc: null, fp: 0, le: null, tn: null, Bv: null, mh: !1, ta: "ProgressTimer", CAa: function() { return r(this.tn.x, this.tn.y) }, hHa: function(c) { this.tn = f.Gfa(c) }, Bza: function() { return r(this.Bv.x, this.Bv.y) }, AGa: function(c) { this.Bv = f.Gfa(c) }, IH: function() { return this.zc }, SAa: function() { return this.fp }, o0: function() { return this.le }, tha: function(c) { this.fp != c && (this.fp = f.Rf(c, 0, 100), this.$Y()) }, ee: function() {}, vg: function() { return !1 }, bDa: function() { return this.mh }, iV: function(c) { if (c < f.bc.o7) { var d = f.bc.Joa; return this.mh ? r(d >> 7 - (c << 1) & 1, d >> 7 - ((c << 1) + 1) & 1) : r(d >> (c << 1) + 1 & 1, d >> (c << 1) & 1) } return r(0, 0) }, bN: null, Gw: 270, YV: 270, Zi: 0, BV: !1, dV: null, Og: 0, af: null, Yj: null, gZ: null, OG: !1, ctor: null, aF: function() { f.ja.prototype.ctor.call(this); this.zc = f.bc.Co; this.fp = 0; this.tn = r(0, 0); this.Bv = r(0, 0); this.mh = !1; this.le = null; this.bN = r(0, 0); this.YV = this.Gw = 270; this.Zi = 0; this.BV = !1; this.dV = x(0, 0, 0, 0) }, bF: function() { f.ja.prototype.ctor.call(this); this.zc = f.bc.Co; this.fp = 0; this.tn = r(0, 0); this.Bv = r(0, 0); this.mh = !1; this.le = null; this.gZ = f.s.createBuffer(); this.Og = 0; this.Yj = this.af = null; this.OG = !1 }, F: function(c) { this.le.color = c; this.Jd() }, J: function(c) { this.le.opacity = c; this.Jd() }, $a: function() { return this.le.color }, vb: function() { return this.le.opacity }, Kha: null, Dua: function(c) { this.mh !== c && (this.mh = c) }, Eua: function(c) { this.mh !== c && (this.mh = c, this.Yj = this.af = null, this.Og = 0) }, xR: null, Jua: function(c) { this.le != c && (this.le = c, this.width = this.le.width, this.height = this.le.height) }, Kua: function(c) { c && this.le != c && (this.le = c, this.width = c.width, this.height = c.height, this.af && (this.Yj = this.af = null, this.Og = 0)) }, aJ: null, Sua: function(c) { c !== this.zc && (this.zc = c) }, Tua: function(c) { c !== this.zc && (this.af && (this.Yj = this.af = null, this.Og = 0), this.zc = c) }, I2: null, Bua: function(c) { this.mh !== c && (this.mh = c) }, Cua: function(c) { this.mh !== c && (this.mh = c, this.Yj = this.af = null, this.Og = 0) }, ui: function(c) { var d = this.le; if (!d) return { Da: 0, ga: 0 }; var e = d.quad, g = r(e.T.t.Da, e.T.t.ga), e = r(e.W.t.Da, e.W.t.ga); d.textureRectRotated && (d = c.x, c.x = c.y, c.y = d); return { Da: g.x * (1 - c.x) + e.x * c.x, ga: g.y * (1 - c.y) + e.y * c.y } }, wi: function(c) { if (!this.le) return { x: 0, y: 0 }; var d = this.le.quad, e = r(d.T.k.x, d.T.k.y), d = r(d.W.k.x, d.W.k.y); return { x: e.x * (1 - c.x) + d.x * c.x, y: e.y * (1 - c.y) + d.y * c.y } }, H0: null, Bsa: function(c) { this.percentage = 0; this.anchorY = this.anchorX = 0.5; this.zc = f.bc.Co; this.mh = !1; this.midPoint = r(0.5, 0.5); this.barChangeRate = r(1, 1); this.sprite = c; return !0 }, Csa: function(c) { this.percentage = 0; this.Yj = this.af = null; this.Og = 0; this.anchorY = this.anchorX = 0.5; this.zc = f.bc.Co; this.mh = !1; this.midPoint = r(0.5, 0.5); this.barChangeRate = r(1, 1); this.sprite = c; this.shaderProgram = f.xg.be(f.zo); return !0 }, ma: null, Rq: function(c) { c = c || f.s; var d = this.le; d.gA && (c.globalCompositeOperation = "lighter"); var e = f.view.ka, g = f.view.ra; c.globalAlpha = d.kb / 255; var h = d.Ta, k = d.m, m = d.od, n = d.VV, p = 0 | m.x, s = -m.y - h.height, u = d.YA; n.width = h.width * e; n.height = h.height * g; c.save(); d.Fb && (p = -m.x - h.width, c.scale(-1, 1)); d.Hb && (s = m.y, c.scale(1, -1)); p *= e; s *= g; this.zc == f.bc.sv ? (h = this.dV, c.beginPath(), c.rect(h.x * e, h.y * g, h.width * e, h.height * g), c.clip(), c.closePath()) : this.zc == f.bc.Co && (h = this.bN.x * e, m = this.bN.y * g, c.beginPath(), c.arc(h, m, this.Zi * g, Math.PI / 180 * this.Gw, Math.PI / 180 * this.YV, this.BV), c.lineTo(h, m), c.clip(), c.closePath()); d.fa && u.$C ? (e = d.fa.md, this.rL ? c.drawImage(e, 0, 0, u.width, u.height, p, s, n.width, n.height) : c.drawImage(e, u.x, u.y, u.width, u.height, p, s, n.width, n.height)) : 0 !== k.width && (n = this.color, c.fillStyle = "rgba(" + n.r + "," + n.g + "," + n.b + ",1)", c.fillRect(p, s, k.width * e, k.height * g)); c.restore(); f.el() }, fn: function(c) { c = c || f.s; if (this.af && this.le) { f.qC(this); var d = this.le.ck(); f.Fm(d.src, d.ha); f.wf(f.tv); f.Ai(this.le.texture); c.bindBuffer(c.ARRAY_BUFFER, this.gZ); this.OG && (c.bufferData(c.ARRAY_BUFFER, this.Yj, c.DYNAMIC_DRAW), this.OG = !1); d = f.Zg.BYTES_PER_ELEMENT; c.vertexAttribPointer(f.Oc, 2, c.FLOAT, !1, d, 0); c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, d, 8); c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, d, 12); this.zc === f.bc.Co ? c.drawArrays(c.TRIANGLE_FAN, 0, this.Og) : this.zc == f.bc.sv && (this.mh ? (c.drawArrays(c.TRIANGLE_STRIP, 0, this.Og / 2), c.drawArrays(c.TRIANGLE_STRIP, 4, this.Og / 2), f.bl++) : c.drawArrays(c.TRIANGLE_STRIP, 0, this.Og)); f.bl++ } }, Bva: function() { if (this.le) { var c, d = this.tn; c = this.fp / 100; var e = r(d.x, 1), g = f.nEa(e, d, 2 * f.PI * (this.mh ? c : 1 - c)), h = 0; if (0 == c) g = e, h = 0; else if (1 == c) g = e, h = 4; else { var k = f.gv, m = f.bc.o7; for (c = 0; c <= m; ++c) { var n = this.iV(c % m), p = this.iV((c + (m - 1)) % m); 0 == c ? p = f.Lfa(n, p, 1 - d.x) : 4 == c && (n = f.Lfa(n, p, 1 - d.x)); var s = r(0, 0); f.z1(n, p, d, g, s) && (0 != c && 4 != c || 0 <= s.x && 1 >= s.x) && 0 <= s.y && s.y < k && (k = s.y, h = c) } g = f.Tp(d, f.Up(f.gc(g, d), k)) } k = !0; this.Og != h + 3 && (k = !1, this.Yj = this.af = null, this.Og = 0); if (!this.af) { m = this.Og = h + 3; n = f.Zg.BYTES_PER_ELEMENT; this.Yj = new ArrayBuffer(m * n); p = []; for (c = 0; c < m; c++) p[c] = new f.Zg(null, null, null, this.Yj, c * n); this.af = p; if (!this.af) { f.log("cc.ProgressTimer._updateRadial() : Not enough memory"); return } } this.Jd(); m = this.af; if (!k) for (m[0].t = this.ui(d), m[0].k = this.wi(d), m[1].t = this.ui(e), m[1].k = this.wi(e), c = 0; c < h; c++) d = this.iV(c), m[c + 2].t = this.ui(d), m[c + 2].k = this.wi(d); m[this.Og - 1].t = this.ui(g); m[this.Og - 1].k = this.wi(g) } }, tva: function() { if (this.le) { var c, d = this.fp / 100, e = this.Bv, e = f.Up(r(1 - e.x + d * e.x, 1 - e.y + d * e.y), 0.5), d = f.gc(this.tn, e), e = f.Tp(this.tn, e); 0 > d.x && (e.x += -d.x, d.x = 0); 1 < e.x && (d.x -= e.x - 1, e.x = 1); 0 > d.y && (e.y += -d.y, d.y = 0); 1 < e.y && (d.y -= e.y - 1, e.y = 1); if (this.mh) { if (!this.af) { this.Og = 8; var g = f.Zg.BYTES_PER_ELEMENT; this.Yj = new ArrayBuffer(8 * g); var h = []; for (c = 0; 8 > c; c++) h[c] = new f.Zg(null, null, null, this.Yj, c * g); h[0].t = this.ui(r(0, 1)); h[0].k = this.wi(r(0, 1)); h[1].t = this.ui(r(0, 0)); h[1].k = this.wi(r(0, 0)); h[6].t = this.ui(r(1, 1)); h[6].k = this.wi(r(1, 1)); h[7].t = this.ui(r(1, 0)); h[7].k = this.wi(r(1, 0)); this.af = h } c = this.af; c[2].t = this.ui(r(d.x, e.y)); c[2].k = this.wi(r(d.x, e.y)); c[3].t = this.ui(r(d.x, d.y)); c[3].k = this.wi(r(d.x, d.y)); c[4].t = this.ui(r(e.x, e.y)); c[4].k = this.wi(r(e.x, e.y)); c[5].t = this.ui(r(e.x, d.y)); c[5].k = this.wi(r(e.x, d.y)) } else { if (!this.af) for (this.Og = 4, g = f.Zg.BYTES_PER_ELEMENT, this.Yj = new ArrayBuffer(4 * g), this.af = [], c = 0; 4 > c; c++) this.af[c] = new f.Zg(null, null, null, this.Yj, c * g); c = this.af; c[0].t = this.ui(r(d.x, e.y)); c[0].k = this.wi(r(d.x, e.y)); c[1].t = this.ui(r(d.x, d.y)); c[1].k = this.wi(r(d.x, d.y)); c[2].t = this.ui(r(e.x, e.y)); c[2].k = this.wi(r(e.x, e.y)); c[3].t = this.ui(r(e.x, d.y)); c[3].k = this.wi(r(e.x, d.y)) } this.Jd() } }, Jd: function() { if (this.le && this.af) { for (var c = this.le.quad.Z.D, d = this.af, e = 0, g = this.Og; e < g; ++e) d[e].D = c; this.OG = !0 } }, $Y: null, xva: function() { var c = this.le, d = c.width, e = c.height, g = this.tn; if (this.zc == f.bc.Co) { this.Zi = Math.round(Math.sqrt(d * d + e * e)); var h, k = !1, m = this.bN; m.x = d * g.x; m.y = -e * g.y; this.mh ? (h = 270, g = 270 - 3.6 * this.fp) : (g = -90, h = -90 + 3.6 * this.fp); c.Fb && (m.x -= 2 * d * this.tn.x, g = -g - 180, h = -h - 180, k = !k); c.Hb && (m.y += 2 * e * this.tn.y, k = !k, g = -g, h = -h); this.Gw = g; this.YV = h; this.BV = k } else { h = this.Bv; m = this.fp / 100; k = this.dV; h = t(d * (1 - h.x), e * (1 - h.y)); var m = t((d - h.width) * m, (e - h.height) * m), m = t(h.width + m.width, h.height + m.height), n = r(d * g.x, e * g.y); h = n.x - m.width / 2; 0.5 < g.x && m.width / 2 >= d - n.x && (h = d - m.width); d = n.y - m.height / 2; 0.5 < g.y && m.height / 2 >= e - n.y && (d = e - m.height); k.x = 0; e = 1; c.Fb && (k.x -= m.width, e = -1); 0 < h && (k.x += h * e); k.y = 0; e = 1; c.Hb && (k.y += m.height, e = -1); 0 < d && (k.y -= d * e); k.width = m.width; k.height = -m.height } }, yva: function() { var c = this.zc; c === f.bc.Co ? this.Bva() : c === f.bc.sv && this.tva(); this.OG = !0 } }); q = f.bc.prototype; f.K == f.na ? (q.ctor = q.bF, q.Kha = q.Eua, q.xR = q.Kua, q.aJ = q.Tua, q.I2 = q.Cua, q.H0 = q.Csa, q.ma = q.fn, q.$Y = q.yva) : (q.ctor = q.aF, q.Kha = q.Dua, q.xR = q.Jua, q.aJ = q.Sua, q.I2 = q.Bua, q.H0 = q.Bsa, q.ma = q.Rq, q.$Y = f.bc.prototype.xva); f.d(q, "midPoint", q.CAa, q.hHa); f.d(q, "barChangeRate", q.Bza, q.AGa); f.d(q, "type", q.IH, q.aJ); f.d(q, "percentage", q.SAa, q.tha); f.d(q, "sprite", q.o0, q.xR); f.d(q, "reverseDir", q.bDa, q.I2); f.bc.create = function(c) { var d = new f.bc; return d.H0(c) ? d : null }; f.bc.o7 = 4; f.bc.Joa = 75; f.bc.Co = 0; f.bc.sv = 1; f.tT = f.M.extend({ Nf: 0, Tc: 0, ctor: function(c, d) { f.M.prototype.ctor.call(this); this.Tc = this.Nf = 0; void 0 !== d && this.f(c, d) }, f: function(c, d) { return f.M.prototype.f.call(this, c) ? (this.Nf = d, !0) : !1 }, p: function() { var c = new f.tT; c.f(this.C, this.Nf); return c }, reverse: function() { f.log("cc.ProgressTo.reverse(): reverse hasn't been supported."); return null }, R: function(c) { f.M.prototype.R.call(this, c); this.Tc = c.percentage; 100 == this.Tc && (this.Tc = 0) }, update: function(c) { this.target instanceof f.bc && (this.target.percentage = this.Tc + (this.Nf - this.Tc) * c) } }); f.tT.create = function(c, d) { return new f.tT(c, d) }; f.eE = f.M.extend({ Nf: 0, Tc: 0, ctor: function(c, d, e) { f.M.prototype.ctor.call(this); this.Tc = this.Nf = 0; void 0 !== e && this.f(c, d, e) }, f: function(c, d, e) { return f.M.prototype.f.call(this, c) ? (this.Nf = e, this.Tc = d, !0) : !1 }, p: function() { var c = new f.eE; c.f(this.C, this.Tc, this.Nf); return c }, reverse: function() { return f.eE.create(this.C, this.Nf, this.Tc) }, R: function(c) { f.M.prototype.R.call(this, c) }, update: function(c) { this.target instanceof f.bc && (this.target.percentage = this.Tc + (this.Nf - this.Tc) * c) } }); f.eE.create = function(c, d, e) { return new f.eE(c, d, e) }; f.iE = 4208917214; f.cNa = f.N.extend({ ak: function() {} }); f.TMa = 0; f.As = 1; f.DK = 0; f.SMa = 1; f.xb = f.tq.extend({ lb: null, uc: null, C: null, on: !1, M$: !1, ta: "TransitionScene", ctor: function(c, d) { f.tq.prototype.ctor.call(this); void 0 !== c && void 0 !== d && this.f(c, d) }, Vaa: function() { this.Tu(this.Vaa); var c = f.Q; this.M$ = c.Jt; c.f2(this.lb); f.Qa.Lb(!0); this.uc.visible = !0 }, op: function() { this.on = !0 }, ma: function() { this.on ? (this.uc.I(), this.lb.I()) : (this.lb.I(), this.uc.I()) }, ba: function() { f.v.prototype.ba.call(this); f.Qa.Lb(!1); this.uc.uh(); this.lb.ba() }, Ra: function() { f.v.prototype.Ra.call(this); f.Qa.Lb(!0); this.uc.Ra(); this.lb.sj() }, De: function() { f.v.prototype.De.call(this); this.M$ && this.uc.De() }, f: function(c, d) { if (!d) throw "cc.TransitionScene.initWithDuration(): Argument scene must be non-nil"; if (this.j()) { this.C = c; this.Wa({ x: 0, y: 0, anchorX: 0, anchorY: 0 }); this.lb = d; this.uc = f.Q.mg; this.uc || (this.uc = f.tq.create(), this.uc.j()); if (this.lb == this.uc) throw "cc.TransitionScene.initWithDuration(): Incoming scene must be different from the outgoing scene"; this.op(); return !0 } return !1 }, finish: function() { this.lb.Wa({ visible: !0, x: 0, y: 0, scale: 1, rotation: 0 }); f.K === f.na && this.lb.yx().restore(); this.uc.Wa({ visible: !1, x: 0, y: 0, scale: 1, rotation: 0 }); f.K === f.na && this.uc.yx().restore(); this.Ux(this.Vaa, 0) }, EP: function() { this.lb.visible = !0; this.uc.visible = !1 } }); f.xb.create = function(c, d) { return new f.xb(c, d) }; f.Es = f.xb.extend({ mw: 0, f: function(c, d, e) { f.xb.prototype.f.call(this, c, d) && (this.mw = e); return !0 } }); f.Es.create = function(c, d, e) { var g = new f.Es; g.f(c, d, e); return g }; f.V7 = f.xb.extend({ ba: function() { f.xb.prototype.ba.call(this); this.lb.Wa({ scale: 0.001, anchorX: 0.5, anchorY: 0.5 }); this.uc.Wa({ scale: 1, anchorX: 0.5, anchorY: 0.5 }); var c = f.X.create(f.fe.create(f.Ty.create(this.C / 2, 0.001), f.Ry.create(this.C / 2, 720)), f.Nb.create(this.C / 2)); this.uc.V(c); this.lb.V(f.X.create(c.reverse(), f.ua.create(this.finish, this))) } }); f.V7.create = function(c, d) { var e = new f.V7; return null != e && e.f(c, d) ? e : null }; f.K7 = f.xb.extend({ ba: function() { f.xb.prototype.ba.call(this); var c = f.Q.Y; this.lb.Wa({ scale: 0.5, x: c.width, y: 0, anchorX: 0.5, anchorY: 0.5 }); this.uc.anchorX = 0.5; this.uc.anchorY = 0.5; var d = f.xo.create(this.C / 4, r(-c.width, 0), c.width / 4, 2), e = f.Db.create(this.C / 4, 1), c = f.Db.create(this.C / 4, 0.5), c = f.X.create(c, d), d = f.X.create(d, e), e = f.Nb.create(this.C / 2); this.uc.V(c); this.lb.V(f.X.create(e, d, f.ua.create(this.finish, this))) } }); f.K7.create = function(c, d) { var e = new f.K7; return null != e && e.f(c, d) ? e : null }; f.wE = f.xb.extend({ ba: function() { f.xb.prototype.ba.call(this); this.Mr(); var c = this.action(); this.lb.V(f.X.create(this.ak(c), f.ua.create(this.finish, this))) }, Mr: function() { this.lb.o(-f.Q.Y.width, 0) }, action: function() { return f.Dc.create(this.C, r(0, 0)) }, ak: function(c) { return f.vs.create(c, 2) } }); f.wE.create = function(c, d) { var e = new f.wE; return null != e && e.f(c, d) ? e : null }; f.M7 = f.wE.extend({ Mr: function() { this.lb.o(f.Q.Y.width, 0) } }); f.M7.create = function(c, d) { var e = new f.M7; return null != e && e.f(c, d) ? e : null }; f.N7 = f.wE.extend({ Mr: function() { this.lb.o(0, f.Q.Y.height) } }); f.N7.create = function(c, d) { var e = new f.N7; return null != e && e.f(c, d) ? e : null }; f.L7 = f.wE.extend({ Mr: function() { this.lb.o(0, -f.Q.Y.height) } }); f.L7.create = function(c, d) { var e = new f.L7; return null != e && e.f(c, d) ? e : null }; f.ps = 0.5; f.xE = f.xb.extend({ op: function() { this.on = !1 }, ba: function() { f.xb.prototype.ba.call(this); this.Mr(); var c = this.action(), d = this.action(), c = this.ak(c), d = f.X.create(this.ak(d), f.ua.create(this.finish, this)); this.lb.V(c); this.uc.V(d) }, Mr: function() { this.lb.o(-f.Q.Y.width + f.ps, 0) }, action: function() { return f.vk.create(this.C, r(f.Q.Y.width - f.ps, 0)) }, ak: function(c) { return f.vs.create(c, 2) } }); f.xE.create = function(c, d) { var e = new f.xE; return null != e && e.f(c, d) ? e : null }; f.Y7 = f.xE.extend({ op: function() { this.on = !0 }, Mr: function() { this.lb.o(f.Q.Y.width - f.ps, 0) }, action: function() { return f.vk.create(this.C, r(-(f.Q.Y.width - f.ps), 0)) } }); f.Y7.create = function(c, d) { var e = new f.Y7; return null != e && e.f(c, d) ? e : null }; f.X7 = f.xE.extend({ op: function() { this.on = !1 }, Mr: function() { this.lb.o(0, f.Q.Y.height - f.ps) }, action: function() { return f.vk.create(this.C, r(0, -(f.Q.Y.height - f.ps))) } }); f.X7.create = function(c, d) { var e = new f.X7; return null != e && e.f(c, d) ? e : null }; f.Z7 = f.xE.extend({ op: function() { this.on = !0 }, Mr: function() { this.lb.o(0, -(f.Q.Y.height - f.ps)) }, action: function() { return f.vk.create(this.C, r(0, f.Q.Y.height - f.ps)) } }); f.Z7.create = function(c, d) { var e = new f.Z7; return null != e && e.f(c, d) ? e : null }; f.W7 = f.xb.extend({ ba: function() { f.xb.prototype.ba.call(this); this.lb.Wa({ scale: 0.001, anchorX: 2 / 3, anchorY: 0.5 }); this.uc.Wa({ scale: 1, anchorX: 1 / 3, anchorY: 0.5 }); var c = f.Db.create(this.C, 0.01), d = f.Db.create(this.C, 1); this.lb.V(this.ak(d)); this.uc.V(f.X.create(this.ak(c), f.ua.create(this.finish, this))) }, ak: function(c) { return f.vs.create(c, 2) } }); f.W7.create = function(c, d) { var e = new f.W7; return null != e && e.f(c, d) ? e : null }; f.I7 = f.Es.extend({ ba: function() { f.xb.prototype.ba.call(this); var c, d; this.lb.visible = !1; var e; this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90); c = f.X.create(f.Nb.create(this.C / 2), f.Ej.create(), f.di.create(this.C / 2, 1, 0, e, c, 0, 0), f.ua.create(this.finish, this)); d = f.X.create(f.di.create(this.C / 2, 1, 0, 0, d, 0, 0), f.Hl.create(), f.Nb.create(this.C / 2)); this.lb.V(c); this.uc.V(d) } }); f.I7.create = function(c, d, e) { null == e && (e = f.As); var g = new f.I7; g.f(c, d, e); return g }; f.J7 = f.Es.extend({ ba: function() { f.xb.prototype.ba.call(this); var c, d; this.lb.visible = !1; var e; this.mw == f.DK ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90); c = f.X.create(f.Nb.create(this.C / 2), f.Ej.create(), f.di.create(this.C / 2, 1, 0, e, c, 90, 0), f.ua.create(this.finish, this)); d = f.X.create(f.di.create(this.C / 2, 1, 0, 0, d, 90, 0), f.Hl.create(), f.Nb.create(this.C / 2)); this.lb.V(c); this.uc.V(d) } }); f.J7.create = function(c, d, e) { null == e && (e = f.DK); var g = new f.J7; g.f(c, d, e); return g }; f.H7 = f.Es.extend({ ba: function() { f.xb.prototype.ba.call(this); var c, d; this.lb.visible = !1; var e; this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90); c = f.X.create(f.Nb.create(this.C / 2), f.Ej.create(), f.di.create(this.C / 2, 1, 0, e, c, -45, 0), f.ua.create(this.finish, this)); d = f.X.create(f.di.create(this.C / 2, 1, 0, 0, d, 45, 0), f.Hl.create(), f.Nb.create(this.C / 2)); this.lb.V(c); this.uc.V(d) } }); f.H7.create = function(c, d, e) { null == e && (e = f.As); var g = new f.H7; g.f(c, d, e); return g }; f.d8 = f.Es.extend({ ba: function() { f.xb.prototype.ba.call(this); var c, d; this.lb.visible = !1; var e; this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90); c = f.X.create(f.Nb.create(this.C / 2), f.fe.create(f.di.create(this.C / 2, 1, 0, e, c, 0, 0), f.Db.create(this.C / 2, 1), f.Ej.create()), f.ua.create(this.finish, this)); d = f.X.create(f.fe.create(f.di.create(this.C / 2, 1, 0, 0, d, 0, 0), f.Db.create(this.C / 2, 0.5)), f.Hl.create(), f.Nb.create(this.C / 2)); this.lb.scale = 0.5; this.lb.V(c); this.uc.V(d) } }); f.d8.create = function(c, d, e) { null == e && (e = f.As); var g = new f.d8; g.f(c, d, e); return g }; f.e8 = f.Es.extend({ ba: function() { f.xb.prototype.ba.call(this); var c, d; this.lb.visible = !1; var e; this.mw === f.DK ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90); c = f.X.create(f.Nb.create(this.C / 2), f.fe.create(f.di.create(this.C / 2, 1, 0, e, c, 90, 0), f.Db.create(this.C / 2, 1), f.Ej.create()), f.ua.create(this.finish, this)); d = f.X.create(f.fe.create(f.di.create(this.C / 2, 1, 0, 0, d, 90, 0), f.Db.create(this.C / 2, 0.5)), f.Hl.create(), f.Nb.create(this.C / 2)); this.lb.scale = 0.5; this.lb.V(c); this.uc.V(d) } }); f.e8.create = function(c, d, e) { null == e && (e = f.DK); var g = new f.e8; g.f(c, d, e); return g }; f.c8 = f.Es.extend({ ba: function() { f.xb.prototype.ba.call(this); var c, d; this.lb.visible = !1; var e; this.mw === f.As ? (c = 90, e = 270, d = 90) : (c = -90, e = 90, d = -90); c = f.X.create(f.Nb.create(this.C / 2), f.fe.create(f.di.create(this.C / 2, 1, 0, e, c, -45, 0), f.Db.create(this.C / 2, 1), f.Ej.create()), f.Ej.create(), f.ua.create(this.finish, this)); d = f.X.create(f.fe.create(f.di.create(this.C / 2, 1, 0, 0, d, 45, 0), f.Db.create(this.C / 2, 0.5)), f.Hl.create(), f.Nb.create(this.C / 2)); this.lb.scale = 0.5; this.lb.V(c); this.uc.V(d) } }); f.c8.create = function(c, d, e) { null == e && (e = f.As); var g = new f.c8; g.f(c, d, e); return g }; f.D7 = f.xb.extend({ Ea: null, ctor: function() { f.xb.prototype.ctor.call(this); this.Ea = f.color() }, ba: function() { f.xb.prototype.ba.call(this); var c = f.$f.create(this.Ea); this.lb.visible = !1; this.n(c, 2, f.iE); var c = this.Za(f.iE), d = f.X.create(f.Fy.create(this.C / 2), f.ua.create(this.EP, this), f.Gy.create(this.C / 2), f.ua.create(this.finish, this)); c.V(d) }, Ra: function() { f.xb.prototype.Ra.call(this); this.te(f.iE, !1) }, f: function(c, d, e) { e = e || f.color.BLACK; f.xb.prototype.f.call(this, c, d) && (this.Ea.r = e.r, this.Ea.g = e.g, this.Ea.b = e.b, this.Ea.a = 0); return !0 } }); f.D7.create = function(c, d, e) { var g = new f.D7; g.f(c, d, e); return g }; f.C7 = f.xb.extend({ ba: function() { f.xb.prototype.ba.call(this); var c = f.color(0, 0, 0, 0), d = f.Q.Y, c = f.$f.create(c), e = f.nv.create(d.width, d.height); if (null != e) { e.sprite.anchorX = 0.5; e.sprite.anchorY = 0.5; e.Wa({ x: d.width / 2, y: d.height / 2, anchorX: 0.5, anchorY: 0.5 }); e.Qn(); this.lb.I(); e.end(); var g = f.nv.create(d.width, d.height); g.o(d.width / 2, d.height / 2); g.sprite.anchorX = g.anchorX = 0.5; g.sprite.anchorY = g.anchorY = 0.5; g.Qn(); this.uc.I(); g.end(); e.sprite.ce(f.ONE, f.ONE); g.sprite.ce(f.SRC_ALPHA, f.ONE_MINUS_SRC_ALPHA); c.n(e); c.n(g); e.sprite.opacity = 255; g.sprite.opacity = 255; d = f.X.create(f.Xc.create(this.C, 0), f.ua.create(this.EP, this), f.ua.create(this.finish, this)); g.sprite.V(d); this.n(c, 2, f.iE) } }, Ra: function() { this.te(f.iE, !1); f.xb.prototype.Ra.call(this) }, ma: function() {} }); f.C7.create = function(c, d) { var e = new f.C7; e.f(c, d); return e }; f.b8 = f.xb.extend({ op: function() { this.on = !1 }, ba: function() { f.xb.prototype.ba.call(this); var c = f.Q.Y, c = f.mU.create(this.C, t(0 | c.width / c.height * 12, 12)), c = this.ak(c); this.uc.V(f.X.create(c, f.ua.create(this.finish, this), f.qv.create())) }, ak: function(c) { return c } }); f.b8.create = function(c, d) { var e = new f.b8; return null != e && e.f(c, d) ? e : null }; f.kU = f.xb.extend({ ba: function() { f.xb.prototype.ba.call(this); this.lb.visible = !1; var c = this.action(), c = f.X.create(c, f.ua.create(this.EP, this), c.reverse()); this.V(f.X.create(this.ak(c), f.ua.create(this.finish, this), f.qv.create())) }, ak: function(c) { return f.Cy.create(c, 3) }, action: function() { return f.PT.create(this.C / 2, 3) } }); f.kU.create = function(c, d) { var e = new f.kU; return null != e && e.f(c, d) ? e : null }; f.a8 = f.kU.extend({ action: function() { return f.QT.create(this.C / 2, 3) } }); f.a8.create = function(c, d) { var e = new f.a8; return null != e && e.f(c, d) ? e : null }; f.vE = f.xb.extend({ op: function() { this.on = !1 }, ba: function() { f.xb.prototype.ba.call(this); var c = f.Q.Y, c = this.hB(t(0 | c.width / c.height * 12, 12)); this.uc.V(f.X.create(this.ak(c), f.ua.create(this.finish, this), f.qv.create())) }, ak: function(c) { return c }, hB: function(c) { return f.XD.create(this.C, c) } }); f.vE.create = function(c, d) { var e = new f.vE; return null != e && e.f(c, d) ? e : null }; f.E7 = f.vE.extend({ hB: function(c) { return f.OS.create(this.C, c) } }); f.E7.create = function(c, d) { var e = new f.E7; return null != e && e.f(c, d) ? e : null }; f.G7 = f.vE.extend({ hB: function(c) { return f.bK.create(this.C, c) } }); f.G7.create = function(c, d) { var e = new f.G7; return null != e && e.f(c, d) ? e : null }; f.F7 = f.vE.extend({ hB: function(c) { return f.PS.create(this.C, c) } }); f.F7.create = function(c, d) { var e = new f.F7; return null != e && e.f(c, d) ? e : null }; f.a7 = 49153; f.Ds = f.xb.extend({ Nf: 0, Tc: 0, yN: null, ta: "TransitionProgress", Bw: function(c, d, e) { c.Wa({ x: d, y: e, anchorX: 0.5, anchorY: 0.5 }) }, ba: function() { f.xb.prototype.ba.call(this); this.bba(); var c = f.Q.Y, d = f.nv.create(c.width, c.height); d.sprite.anchorX = 0.5; d.sprite.anchorY = 0.5; this.Bw(d, c.width / 2, c.height / 2); d.clear(0, 0, 0, 1); d.Qn(); this.yN.I(); d.end(); this.yN == this.uc && this.EP(); c = this.uw(d); d = f.X.create(f.eE.create(this.C, this.Tc, this.Nf), f.ua.create(this.finish, this)); c.V(d); this.n(c, 2, f.a7) }, Ra: function() { this.te(f.a7, !0); f.xb.prototype.Ra.call(this) }, bba: function() { this.yN = this.uc; this.Tc = 100; this.Nf = 0 }, uw: function() { f.log("cc.TransitionProgress._progressTimerNodeWithRenderTexture(): should be overridden in subclass"); return null }, op: function() { this.on = !1 } }); f.Ds.create = function(c, d) { var e = new f.Ds; return null != e && e.f(c, d) ? e : null }; f.S7 = f.Ds.extend({ uw: function(c) { var d = f.Q.Y; c = f.bc.create(c.sprite); f.K === f.na && (c.sprite.flippedY = !0); c.type = f.bc.Co; c.reverseDir = !1; c.percentage = 100; this.Bw(c, d.width / 2, d.height / 2); return c } }); f.S7.create = function(c, d) { var e = new f.S7; return null != e && e.f(c, d) ? e : null }; f.T7 = f.Ds.extend({ uw: function(c) { var d = f.Q.Y; c = f.bc.create(c.sprite); f.K === f.na && (c.sprite.flippedY = !0); c.type = f.bc.Co; c.reverseDir = !0; c.percentage = 100; this.Bw(c, d.width / 2, d.height / 2); return c } }); f.T7.create = function(c, d) { var e = new f.T7; return null != e && e.f(c, d) ? e : null }; f.P7 = f.Ds.extend({ uw: function(c) { var d = f.Q.Y; c = f.bc.create(c.sprite); f.K === f.na && (c.sprite.flippedY = !0); c.type = f.bc.sv; c.midPoint = r(1, 0); c.barChangeRate = r(1, 0); c.percentage = 100; this.Bw(c, d.width / 2, d.height / 2); return c } }); f.P7.create = function(c, d) { var e = new f.P7; return null != e && e.f(c, d) ? e : null }; f.U7 = f.Ds.extend({ uw: function(c) { var d = f.Q.Y; c = f.bc.create(c.sprite); f.K === f.na && (c.sprite.flippedY = !0); c.type = f.bc.sv; c.midPoint = r(0, 0); c.barChangeRate = r(0, 1); c.percentage = 100; this.Bw(c, d.width / 2, d.height / 2); return c } }); f.U7.create = function(c, d) { var e = new f.U7; return null != e && e.f(c, d) ? e : null }; f.Q7 = f.Ds.extend({ uw: function(c) { var d = f.Q.Y; c = f.bc.create(c.sprite); f.K === f.na && (c.sprite.flippedY = !0); c.type = f.bc.sv; c.midPoint = r(0.5, 0.5); c.barChangeRate = r(1, 1); c.percentage = 0; this.Bw(c, d.width / 2, d.height / 2); return c }, op: function() { this.on = !1 }, bba: function() { this.yN = this.lb; this.Tc = 0; this.Nf = 100 } }); f.Q7.create = function(c, d) { var e = new f.Q7; return null != e && e.f(c, d) ? e : null }; f.R7 = f.Ds.extend({ uw: function(c) { var d = f.Q.Y; c = f.bc.create(c.sprite); f.K === f.na && (c.sprite.flippedY = !0); c.type = f.bc.sv; c.midPoint = r(0.5, 0.5); c.barChangeRate = r(1, 1); c.percentage = 100; this.Bw(c, d.width / 2, d.height / 2); return c } }); f.R7.create = function(c, d) { var e = new f.R7; return null != e && e.f(c, d) ? e : null }; f.O7 = f.xb.extend({ WK: !0, ta: "TransitionPageTurn", f: function(c, d, e) { this.WK = e; f.xb.prototype.f.call(this, c, d); return !0 }, hB: function(c) { return this.WK ? f.ov.create(f.lK.create(this.C, c)) : f.lK.create(this.C, c) }, ba: function() { f.xb.prototype.ba.call(this); var c = f.Q.Y, d; c.width > c.height ? (c = 16, d = 12) : (c = 12, d = 16); c = this.hB(t(c, d)); this.WK ? (this.lb.visible = !1, this.lb.V(f.X.create(f.Ej.create(), c, f.ua.create(this.finish, this), f.qv.create()))) : this.uc.V(f.X.create(c, f.ua.create(this.finish, this), f.qv.create())) }, op: function() { this.on = this.WK } }); f.O7.create = function(c, d, e) { var g = new f.O7; g.f(c, d, e); return g }; f.bb = { name: "Jacob__Codec" }; f.RIa = function() { return f.bb.Ob.yP.apply(f.bb.Ob, arguments) }; f.SIa = function() { var c = f.bb.Zu.Eca.apply(f.bb.Zu, arguments); return f.bb.Ob.yP.apply(f.bb.Ob, [c]) }; f.Cia = function(c, d) { d = d || 1; var e = this.SIa(c), g = [], h, k, m; h = 0; for (m = e.length / d; h < m; h++) for (g[h] = 0, k = d - 1; 0 <= k; --k) g[h] += e.charCodeAt(h * d + k) << 8 * k; return g }; f.H5a = function(c, d) { d = d || 1; var e = this.RIa(c), g = [], h, k, m; h = 0; for (m = e.length / d; h < m; h++) for (g[h] = 0, k = d - 1; 0 <= k; --k) g[h] += e.charCodeAt(h * d + k) << 8 * k; return g }; f.FMa = function(c) { c = c.split(","); var d = [], e; for (e = 0; e < c.length; e++) d.push(parseInt(c[e])); return d }; f.bb.Zu = { name: "Jacob__Codec__Base64" }; f.bb.Zu.BM = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\x3d"; f.bb.Zu.Eca = function(c) { var d = [], e, g, h, k, m, n = 0; for (c = c.replace(/[^A-Za-z0-9\+\/\=]/g, ""); n < c.length;) e = this.BM.indexOf(c.charAt(n++)), g = this.BM.indexOf(c.charAt(n++)), k = this.BM.indexOf(c.charAt(n++)), m = this.BM.indexOf(c.charAt(n++)), e = e << 2 | g >> 4, g = (g & 15) << 4 | k >> 2, h = (k & 3) << 6 | m, d.push(String.fromCharCode(e)), 64 != k && d.push(String.fromCharCode(g)), 64 != m && d.push(String.fromCharCode(h)); return d = d.join("") }; f.bb.Zu.Fca = function(c, d) { var e = this.Eca(c), g = [], h, k, m; h = 0; for (m = e.length / d; h < m; h++) for (g[h] = 0, k = d - 1; 0 <= k; --k) g[h] += e.charCodeAt(h * d + k) << 8 * k; return g }; f.OIa = function(c) { if (0 != c.length % 4) return null; for (var d = c.length / 4, e = window.gNa ? new Uint32Array(d) : [], g = 0; g < d; g++) { var h = 4 * g; e[g] = c[h] + 256 * c[h + 1] + 65536 * c[h + 2] + 16777216 * c[h + 3] } return e }; f.bb.Ob = function(c) { this.data = c; this.debug = !1; this.Kr = void 0; this.files = 0; this.OR = []; this.TZ = Array(32768); this.Pn = 0; this.pQ = !1; this.lca = 0; this.wp = 1; this.nB = 0; this.pC = []; this.ada = void 0; this.dI = Array(f.bb.Ob.lma); this.ox = Array(32); this.oJ = 0; this.rT = null; this.bo = 0; this.FB = Array(17); this.FB[0] = 0; this.jda = this.fda = void 0 }; f.bb.Ob.yP = function(c) { return (new f.bb.Ob(c)).yP()[0][0] }; f.bb.Ob.US = function() { this.GO = this.FO = 0; this.Y0 = null; this.jDa = -1 }; f.bb.Ob.lma = 288; f.bb.Ob.j6 = 256; f.bb.Ob.IZ = [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 ]; f.bb.Ob.vca = [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]; f.bb.Ob.wca = [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]; f.bb.Ob.uca = [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]; f.bb.Ob.uB = [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]; f.bb.Ob.border = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; f.bb.Ob.prototype.yP = function() { this.xI = []; ja(this); return this.OR }; f.bb.Ob.prototype.ca = function() { this.nB += 8; return this.lca < this.data.length ? this.data.charCodeAt(this.lca++) : -1 }; function ka(c) { var d; c.nB++; d = c.wp & 1; c.wp >>= 1; 0 == c.wp && (c.wp = c.ca(), d = c.wp & 1, c.wp = c.wp >> 1 | 128); return d } function la(c, d) { for (var e = 0, g = d; g--;) e = e << 1 | ka(c); d && (e = f.bb.Ob.IZ[e] >> 8 - d); return e } function na(c, d) { c.TZ[c.Pn++] = d; c.xI.push(String.fromCharCode(d)); 32768 == c.Pn && (c.Pn = 0) } function pa(c) { for (;;) { if (c.FB[c.bo] >= c.jda) return -1; if (c.fda[c.FB[c.bo]] == c.bo) return c.FB[c.bo]++; c.FB[c.bo]++ } } function qa(c) { var d = c.rT[c.oJ], e; if (17 == c.bo) return -1; c.oJ++; c.bo++; e = pa(c); if (0 <= e) d.FO = e; else if (d.FO = 32768, qa(c)) return -1; e = pa(c); if (0 <= e) d.GO = e, d.Y0 = null; else if (d.GO = 32768, d.Y0 = c.rT[c.oJ], d.jDa = c.oJ, qa(c)) return -1; c.bo--; return 0 } function sa(c, d, e, g) { c.rT = d; c.oJ = 0; c.fda = g; c.jda = e; for (d = 0; 17 > d; d++) c.FB[d] = 0; c.bo = 0; return qa(c) ? -1 : 0 } function va(c, d) { for (var e, g, h = 0, k = d[h];;) if (e = ka(c)) { if (!(k.GO & 32768)) return k.GO; k = k.Y0; e = d.length; for (g = 0; g < e; g++) if (d[g] === k) { h = g; break } } else { if (!(k.FO & 32768)) return k.FO; h++; k = d[h] } return -1 } function xa(c) { var d, e, g, h, k; do if (d = ka(c), g = la(c, 2), 0 == g) for (c.wp = 1, g = c.ca(), g |= c.ca() << 8, e = c.ca(), e |= c.ca() << 8, (g ^ ~e) & 65535 && document.write("BlockLen checksum mismatch\n"); g--;) e = c.ca(), na(c, e); else if (1 == g) for (;;) if (g = f.bb.Ob.IZ[la(c, 7)] >> 1, 23 < g ? (g = g << 1 | ka(c), 199 < g ? (g -= 128, g = g << 1 | ka(c)) : (g -= 48, 143 < g && (g += 136))) : g += 256, 256 > g) na(c, g); else if (256 == g) break; else { var m; g -= 257; k = la(c, f.bb.Ob.wca[g]) + f.bb.Ob.vca[g]; g = f.bb.Ob.IZ[la(c, 5)] >> 3; 8 < f.bb.Ob.uB[g] ? (m = la(c, 8), m |= la(c, f.bb.Ob.uB[g] - 8) << 8) : m = la(c, f.bb.Ob.uB[g]); m += f.bb.Ob.uca[g]; for (g = 0; g < k; g++) e = c.TZ[c.Pn - m & 32767], na(c, e) } else if (2 == g) { var n = Array(320); e = 257 + la(c, 5); m = 1 + la(c, 5); h = 4 + la(c, 4); for (g = 0; 19 > g; g++) n[g] = 0; for (g = 0; g < h; g++) n[f.bb.Ob.border[g]] = la(c, 3); k = c.ox.length; for (h = 0; h < k; h++) c.ox[h] = new f.bb.Ob.US; if (sa(c, c.ox, 19, n)) { c.Pn = 0; return } k = e + m; h = 0; for (var p = -1; h < k;) if (p++, g = va(c, c.ox), 16 > g) n[h++] = g; else if (16 == g) { var s; g = 3 + la(c, 2); if (h + g > k) { c.Pn = 0; return } for (s = h ? n[h - 1] : 0; g--;) n[h++] = s } else { g = 17 == g ? 3 + la(c, 3) : 11 + la(c, 7); if (h + g > k) { c.Pn = 0; return } for (; g--;) n[h++] = 0 } k = c.dI.length; for (h = 0; h < k; h++) c.dI[h] = new f.bb.Ob.US; if (sa(c, c.dI, e, n)) { c.Pn = 0; return } k = c.dI.length; for (h = 0; h < k; h++) c.ox[h] = new f.bb.Ob.US; g = []; for (h = e; h < n.length; h++) g[h - e] = n[h]; if (sa(c, c.ox, m, g)) { c.Pn = 0; return } for (;;) if (g = va(c, c.dI), 256 <= g) { g -= 256; if (0 == g) break; g--; k = la(c, f.bb.Ob.wca[g]) + f.bb.Ob.vca[g]; g = va(c, c.ox); 8 < f.bb.Ob.uB[g] ? (m = la(c, 8), m |= la(c, f.bb.Ob.uB[g] - 8) << 8) : m = la(c, f.bb.Ob.uB[g]); for (m += f.bb.Ob.uca[g]; k--;) e = c.TZ[c.Pn - m & 32767], na(c, e) } else na(c, g) } while (!d); c.Pn = 0; c.wp = 1 } function ja(c) { c.xI = []; c.pQ = !1; var d = []; d[0] = c.ca(); d[1] = c.ca(); 120 == d[0] && 218 == d[1] && (xa(c), c.OR[c.files] = [c.xI.join(""), "geonext.gxt"], c.files++); 31 == d[0] && 139 == d[1] && (Ca(c), c.OR[c.files] = [c.xI.join(""), "file"], c.files++); if (80 == d[0] && 75 == d[1] && (c.pQ = !0, d[2] = c.ca(), d[3] = c.ca(), 3 == d[2] && 4 == d[3])) { d[0] = c.ca(); d[1] = c.ca(); c.Kr = c.ca(); c.Kr |= c.ca() << 8; d = c.ca(); d |= c.ca() << 8; c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); var e = c.ca(), e = e | c.ca() << 8, g = c.ca(), g = g | c.ca() << 8, h = 0; for (c.pC = []; e--;) { var k = c.ca(); "/" == k | ":" == k ? h = 0 : h < f.bb.Ob.j6 - 1 && (c.pC[h++] = String.fromCharCode(k)) } c.ada || (c.ada = c.pC); for (var h = 0; h < g;) c.ca(), h++; 8 == d && (xa(c), c.OR[c.files] = [c.xI.join(""), c.pC.join("")], c.files++); Ca(c) } } function Ca(c) { var d = [], e; c.Kr & 8 && (d[0] = c.ca(), d[1] = c.ca(), d[2] = c.ca(), d[3] = c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca(), c.ca()); c.pQ && ja(c); d[0] = c.ca(); if (8 == d[0]) { c.Kr = c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); c.ca(); if (c.Kr & 4) for (d[0] = c.ca(), d[2] = c.ca(), c.bo = d[0] + 256 * d[1], d = 0; d < c.bo; d++) c.ca(); if (c.Kr & 8) for (d = 0, c.pC = []; e = c.ca();) { if ("7" == e || ":" == e) d = 0; d < f.bb.Ob.j6 - 1 && (c.pC[d++] = e) } if (c.Kr & 16) for (; c.ca();); c.Kr & 2 && (c.ca(), c.ca()); xa(c); c.ca(); c.ca(); c.ca(); c.ca(); c.pQ && ja(c) } }; (function() { function c(c) { throw c; } function d(c, d) { var e = c.split("."), g = M; e[0] in g || !g.execScript || g.execScript("var " + e[0]); for (var h; e.length && (h = e.shift());) e.length || d === O ? g = g[h] ? g[h] : g[h] = {} : g[h] = d } function e(c) { if ("string" === typeof c) { c = c.split(""); var d, e; d = 0; for (e = c.length; d < e; d++) c[d] = (c[d].charCodeAt(0) & 255) >>> 0 } d = 1; e = 0; for (var g = c.length, h, k = 0; 0 < g;) { h = 1024 < g ? 1024 : g; g -= h; do d += c[k++], e += d; while (--h); d %= 65521; e %= 65521 } return (e << 16 | d) >>> 0 } function g(d, e) { this.index = "number" === typeof e ? e : 0; this.QH = 0; this.buffer = d instanceof(K ? Uint8Array : Array) ? d : new(K ? Uint8Array : Array)(32768); 2 * this.buffer.length <= this.index && c(Error("invalid index")); this.buffer.length <= this.index && this.Tn() } function h(c) { this.buffer = new(K ? Uint16Array : Array)(2 * c); this.length = 0 } function k(c) { var d = c.length, e = 0, g = Number.POSITIVE_INFINITY, h, k, m, n, p, s, u, v, z; for (v = 0; v < d; ++v) c[v] > e && (e = c[v]), c[v] < g && (g = c[v]); h = 1 << e; k = new(K ? Uint32Array : Array)(h); m = 1; n = 0; for (p = 2; m <= e;) { for (v = 0; v < d; ++v) if (c[v] === m) { s = 0; u = n; for (z = 0; z < m; ++z) s = s << 1 | u & 1, u >>= 1; for (z = s; z < h; z += p) k[z] = m << 16 | v; ++n }++m; n <<= 1; p <<= 1 } return [k, e, g] } function m(c, d) { this.Vf = fa; this.da = 0; this.input = c; this.b = 0; d && (d.HDa && (this.da = d.HDa), "number" === typeof d.k_ && (this.Vf = d.k_), d.zQ && (this.a = K && d.zQ instanceof Array ? new Uint8Array(d.zQ) : d.zQ), "number" === typeof d.kEa && (this.b = d.kEa)); this.a || (this.a = new(K ? Uint8Array : Array)(32768)) } function n(c, d) { this.length = c; this.Kla = d } function p() { var d = Y; switch (R) { 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: c("invalid length: " + d) } } function s(d, e) { function g(d, e) { var h = d.Kla, k = [], m = 0, n; n = wa[d.length]; k[m++] = n & 65535; k[m++] = n >> 16 & 255; k[m++] = n >> 24; var p; switch (R) { case 1 === h: p = [0, h - 1, 0]; break; case 2 === h: p = [1, h - 2, 0 ]; break; case 3 === h: p = [2, h - 3, 0]; break; case 4 === h: p = [3, h - 4, 0]; break; case 6 >= h: p = [4, h - 5, 1]; break; case 8 >= h: p = [5, h - 7, 1]; break; case 12 >= h: p = [6, h - 9, 2]; break; case 16 >= h: p = [7, h - 13, 2]; break; case 24 >= h: p = [8, h - 17, 3]; break; case 32 >= h: p = [9, h - 25, 3]; break; case 48 >= h: p = [10, h - 33, 4]; break; case 64 >= h: p = [11, h - 49, 4]; break; case 96 >= h: p = [12, h - 65, 5]; break; case 128 >= h: p = [13, h - 97, 5]; break; case 192 >= h: p = [14, h - 129, 6]; break; case 256 >= h: p = [15, h - 193, 6]; break; case 384 >= h: p = [16, h - 257, 7]; break; case 512 >= h: p = [17, h - 385, 7]; break; case 768 >= h: p = [18, h - 513, 8]; break; case 1024 >= h: p = [19, h - 769, 8]; break; case 1536 >= h: p = [20, h - 1025, 9]; break; case 2048 >= h: p = [21, h - 1537, 9]; break; case 3072 >= h: p = [22, h - 2049, 10]; break; case 4096 >= h: p = [23, h - 3073, 10]; break; case 6144 >= h: p = [24, h - 4097, 11]; break; case 8192 >= h: p = [25, h - 6145, 11]; break; case 12288 >= h: p = [26, h - 8193, 12]; break; case 16384 >= h: p = [27, h - 12289, 12]; break; case 24576 >= h: p = [28, h - 16385, 13]; break; case 32768 >= h: p = [29, h - 24577, 13]; break; default: c("invalid distance") } n = p; k[m++] = n[0]; k[m++] = n[1]; k[m++] = n[2]; h = 0; for (m = k.length; h < m; ++h) z[A++] = k[h]; C[k[0]]++; G[k[3]]++; B = d.length + e - 1; v = null } var h, k, m, p, s, u = {}, v, z = K ? new Uint16Array(2 * e.length) : [], A = 0, B = 0, C = new(K ? Uint32Array : Array)(286), G = new(K ? Uint32Array : Array)(30), L = d.da, I; if (!K) { for (m = 0; 285 >= m;) C[m++] = 0; for (m = 0; 29 >= m;) G[m++] = 0 } C[256] = 1; h = 0; for (k = e.length; h < k; ++h) { m = s = 0; for (p = 3; m < p && h + m !== k; ++m) s = s << 8 | e[h + m]; u[s] === O && (u[s] = []); m = u[s]; if (!(0 < B--)) { for (; 0 < m.length && 32768 < h - m[0];) m.shift(); if (h + 3 >= k) { v && g(v, -1); m = 0; for (p = k - h; m < p; ++m) I = e[h + m], z[A++] = I, ++C[I]; break } if (0 < m.length) { s = p = O; var P = 0, M = O, J = O, Q = M = O, Z = e.length, J = 0, Q = m.length; a: for (; J < Q; J++) { p = m[Q - J - 1]; M = 3; if (3 < P) { for (M = P; 3 < M; M--) if (e[p + M - 1] !== e[h + M - 1]) continue a; M = P } for (; 258 > M && h + M < Z && e[p + M] === e[h + M];)++M; M > P && (s = p, P = M); if (258 === M) break } p = new n(P, h - s); v ? v.length < p.length ? (I = e[h - 1], z[A++] = I, ++C[I], g(p, 0)) : g(v, -1) : p.length < L ? v = p : g(p, 0) } else v ? g(v, -1) : (I = e[h], z[A++] = I, ++C[I]) } m.push(h) } z[A++] = 256; C[256]++; d.hma = C; d.Zla = G; return K ? z.subarray(0, A) : z } function u(c, d) { function e(c) { var d = z[c][A[c]]; d === u ? (e(c + 1), e(c + 1)) : --v[d]; ++A[c] } var g = c.length, k = new h(572), m = new(K ? Uint8Array : Array)(g), n, p, s; if (!K) for (p = 0; p < g; p++) m[p] = 0; for (p = 0; p < g; ++p) 0 < c[p] && k.push(p, c[p]); g = Array(k.length / 2); n = new(K ? Uint32Array : Array)(k.length / 2); if (1 === g.length) return m[k.pop().index] = 1, m; p = 0; for (s = k.length / 2; p < s; ++p) g[p] = k.pop(), n[p] = g[p].value; var u = n.length; p = new(K ? Uint16Array : Array)(d); var k = new(K ? Uint8Array : Array)(d), v = new(K ? Uint8Array : Array)(u); s = Array(d); var z = Array(d), A = Array(d), B = (1 << d) - u, C = 1 << d - 1, G, I, L; p[d - 1] = u; for (G = 0; G < d; ++G) B < C ? k[G] = 0 : (k[G] = 1, B -= C), B <<= 1, p[d - 2 - G] = (p[d - 1 - G] / 2 | 0) + u; p[0] = k[0]; s[0] = Array(p[0]); z[0] = Array(p[0]); for (G = 1; G < d; ++G) p[G] > 2 * p[G - 1] + k[G] && (p[G] = 2 * p[G - 1] + k[G]), s[G] = Array(p[G]), z[G] = Array(p[G]); for (B = 0; B < u; ++B) v[B] = d; for (C = 0; C < p[d - 1]; ++C) s[d - 1][C] = n[C], z[d - 1][C] = C; for (B = 0; B < d; ++B) A[B] = 0; 1 === k[d - 1] && (--v[0], ++A[d - 1]); for (G = d - 2; 0 <= G; --G) { I = B = 0; L = A[G + 1]; for (C = 0; C < p[G]; C++) I = s[G + 1][L] + s[G + 1][L + 1], I > n[B] ? (s[G][C] = I, z[G][C] = u, L += 2) : (s[G][C] = n[B], z[G][C] = B, ++B); A[G] = 0; 1 === k[G] && e(G) } n = v; p = 0; for (s = g.length; p < s; ++p) m[g[p].index] = n[p]; return m } function v(d) { var e = new(K ? Uint16Array : Array)(d.length), g = [], h = [], k = 0, m, n, p; m = 0; for (n = d.length; m < n; m++) g[d[m]] = (g[d[m]] | 0) + 1; m = 1; for (n = 16; m <= n; m++) h[m] = k, k += g[m] | 0, k > 1 << m && c("overcommitted"), k <<= 1; 65536 > k && c("undercommitted"); m = 0; for (n = d.length; m < n; m++) for (k = h[d[m]], h[d[m]] += 1, g = e[m] = 0, p = d[m]; g < p; g++) e[m] = e[m] << 1 | k & 1, k >>>= 1; return e } function z(c, d) { this.input = c; this.a = new(K ? Uint8Array : Array)(32768); this.Vf = Z.XP; var e = {}, g; !d && (d = {}) || "number" !== typeof d.k_ || (this.Vf = d.k_); for (g in d) e[g] = d[g]; e.zQ = this.a; this.z = new m(this.input, e) } function A(d, e) { this.YP = []; this.hQ = 32768; this.wm = this.g = this.G = this.JQ = 0; this.input = K ? new Uint8Array(d) : d; this.ll = !1; this.mQ = Q; this.S3 = !1; if (e || !(e = {})) e.index && (this.G = e.index), e.UZ && (this.hQ = e.UZ), e.VZ && (this.mQ = e.VZ), e.resize && (this.S3 = e.resize); switch (this.mQ) { case Oa: this.b = 32768; this.a = new(K ? Uint8Array : Array)(32768 + this.hQ + 258); break; case Q: this.b = 0; this.a = new(K ? Uint8Array : Array)(this.hQ); this.Tn = this.Yla; this.o3 = this.Mla; this.tQ = this.Rla; break; default: c(Error("invalid inflate mode")) } } function B(d, e) { for (var g = d.g, h = d.wm, k = d.input, m = d.G, n; h < e;) n = k[m++], n === O && c(Error("input buffer is broken")), g |= n << h, h += 8; d.g = g >>> e; d.wm = h - e; d.G = m; return g & (1 << e) - 1 } function C(d, e) { for (var g = d.g, h = d.wm, k = d.input, m = d.G, n = e[0], p = e[1], s; h < p;) s = k[m++], s === O && c(Error("input buffer is broken")), g |= s << h, h += 8; k = n[g & (1 << p) - 1]; n = k >>> 16; d.g = g >> n; d.wm = h - n; d.G = m; return k & 65535 } function G(c) { function d(c, e, g) { var h, k, m, n; for (n = 0; n < c;) switch (h = C(this, e), h) { case 16: for (m = 3 + B(this, 2); m--;) g[n++] = k; break; case 17: for (m = 3 + B(this, 3); m--;) g[n++] = 0; k = 0; break; case 18: for (m = 11 + B(this, 7); m--;) g[n++] = 0; k = 0; break; default: k = g[n++] = h } return g } var e = B(c, 5) + 257, g = B(c, 5) + 1, h = B(c, 4) + 4, m = new(K ? Uint8Array : Array)(oa.length), n; for (n = 0; n < h; ++n) m[oa[n]] = B(c, 3); h = k(m); m = new(K ? Uint8Array : Array)(e); n = new(K ? Uint8Array : Array)(g); c.tQ(k(d.call(c, e, h, m)), k(d.call(c, g, h, n))) } function L(d, e) { var g, h; this.input = d; this.G = 0; if (e || !(e = {})) e.index && (this.G = e.index), e.Nia && (this.qma = e.Nia); g = d[this.G++]; h = d[this.G++]; switch (g & 15) { case Ja: this.method = Ja; break; default: c(Error("unsupported compression method")) } 0 !== ((g << 8) + h) % 31 && c(Error("invalid fcheck flag:" + ((g << 8) + h) % 31)); h & 32 && c(Error("fdict flag is not supported")); this.I3 = new A(d, { index: this.G, UZ: e.UZ, VZ: e.VZ, resize: e.resize }) } var O = void 0, R = !0, M = this, K = "undefined" !== typeof Uint8Array && "undefined" !== typeof Uint16Array && "undefined" !== typeof Uint32Array; g.prototype.Tn = function() { var c = this.buffer, d, e = c.length, g = new(K ? Uint8Array : Array)(e << 1); if (K) g.set(c); else for (d = 0; d < e; ++d) g[d] = c[d]; return this.buffer = g }; g.prototype.P = function(c, d, e) { var g = this.buffer, h = this.index, k = this.QH, m = g[h]; e && 1 < d && (c = 8 < d ? (W[c & 255] << 24 | W[c >>> 8 & 255] << 16 | W[c >>> 16 & 255] << 8 | W[c >>> 24 & 255]) >> 32 - d : W[c] >> 8 - d); if (8 > d + k) m = m << d | c, k += d; else for (e = 0; e < d; ++e) m = m << 1 | c >> d - e - 1 & 1, 8 === ++k && (k = 0, g[h++] = W[m], m = 0, h === g.length && (g = this.Tn())); g[h] = m; this.buffer = g; this.QH = k; this.index = h }; g.prototype.finish = function() { var c = this.buffer, d = this.index, e; 0 < this.QH && (c[d] <<= 8 - this.QH, c[d] = W[c[d]], d++); K ? e = c.subarray(0, d) : (c.length = d, e = c); return e }; var P = new(K ? Uint8Array : Array)(256), I; for (I = 0; 256 > I; ++I) { for (var J = I, V = J, ma = 7, J = J >>> 1; J; J >>>= 1) V <<= 1, V |= J & 1, --ma; P[I] = (V << ma & 255) >>> 0 } var W = P, P = [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 ]; K && new Uint32Array(P); h.prototype.getParent = function(c) { return 2 * ((c - 2) / 4 | 0) }; h.prototype.push = function(c, d) { var e, g, h = this.buffer, k; e = this.length; h[this.length++] = d; for (h[this.length++] = c; 0 < e;) if (g = this.getParent(e), h[e] > h[g]) k = h[e], h[e] = h[g], h[g] = k, k = h[e + 1], h[e + 1] = h[g + 1], h[g + 1] = k, e = g; else break; return this.length }; h.prototype.pop = function() { var c, d, e = this.buffer, g, h, k; d = e[0]; c = e[1]; this.length -= 2; e[0] = e[this.length]; e[1] = e[this.length + 1]; for (k = 0;;) { h = 2 * k + 2; if (h >= this.length) break; h + 2 < this.length && e[h + 2] > e[h] && (h += 2); if (e[h] > e[k]) g = e[k], e[k] = e[h], e[h] = g, g = e[k + 1], e[k + 1] = e[h + 1], e[h + 1] = g; else break; k = h } return { index: c, value: d, length: this.length } }; var fa = 2, P = { NONE: 0, r: 1, XP: fa, XLa: 3 }, ta = []; for (I = 0; 288 > I; I++) switch (R) { case 143 >= I: ta.push([I + 48, 8]); break; case 255 >= I: ta.push([I - 144 + 400, 9]); break; case 279 >= I: ta.push([I - 256 + 0, 7]); break; case 287 >= I: ta.push([I - 280 + 192, 8]); break; default: c("invalid literal: " + I) } m.prototype.Xr = function() { var d, e, h, k, m = this.input; switch (this.Vf) { case 0: h = 0; for (k = m.length; h < k;) { e = K ? m.subarray(h, h + 65535) : m.slice(h, h + 65535); h += e.length; var n = h === k, p = O, z = p = O, z = p = O, A = this.a, B = this.b; if (K) { for (A = new Uint8Array(this.a.buffer); A.length <= B + e.length + 5;) A = new Uint8Array(A.length << 1); A.set(this.a) } p = n ? 1 : 0; A[B++] = p | 0; p = e.length; z = ~p + 65536 & 65535; A[B++] = p & 255; A[B++] = p >>> 8 & 255; A[B++] = z & 255; A[B++] = z >>> 8 & 255; if (K) A.set(e, B), B += e.length, A = A.subarray(0, B); else { p = 0; for (z = e.length; p < z; ++p) A[B++] = e[p]; A.length = B } this.b = B; this.a = A } break; case 1: h = new g(new Uint8Array(this.a.buffer), this.b); h.P(1, 1, R); h.P(1, 2, R); m = s(this, m); e = 0; for (n = m.length; e < n; e++) if (k = m[e], g.prototype.P.apply(h, ta[k]), 256 < k) h.P(m[++e], m[++e], R), h.P(m[++e], 5), h.P(m[++e], m[++e], R); else if (256 === k) break; this.a = h.finish(); this.b = this.a.length; break; case fa: k = new g(new Uint8Array(this.a), this.b); var C, G, I, L = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], P, M, p = Array(19), J, A = fa; k.P(1, 1, R); k.P(A, 2, R); m = s(this, m); z = u(this.hma, 15); P = v(z); A = u(this.Zla, 7); B = v(A); for (C = 286; 257 < C && 0 === z[C - 1]; C--); for (G = 30; 1 < G && 0 === A[G - 1]; G--); var Q = C, Z = G; d = new(K ? Uint32Array : Array)(Q + Z); var W = new(K ? Uint32Array : Array)(316), V, Y; M = new(K ? Uint8Array : Array)(19); for (J = I = 0; J < Q; J++) d[I++] = z[J]; for (J = 0; J < Z; J++) d[I++] = A[J]; if (!K) for (J = 0, Z = M.length; J < Z; ++J) M[J] = 0; J = V = 0; for (Z = d.length; J < Z; J += I) { for (I = 1; J + I < Z && d[J + I] === d[J]; ++I); Q = I; if (0 === d[J]) if (3 > Q) for (; 0 < Q--;) W[V++] = 0, M[0]++; else for (; 0 < Q;) Y = 138 > Q ? Q : 138, Y > Q - 3 && Y < Q && (Y = Q - 3), 10 >= Y ? (W[V++] = 17, W[V++] = Y - 3, M[17]++) : (W[V++] = 18, W[V++] = Y - 11, M[18]++), Q -= Y; else if (W[V++] = d[J], M[d[J]]++, Q--, 3 > Q) for (; 0 < Q--;) W[V++] = d[J], M[d[J]]++; else for (; 0 < Q;) Y = 6 > Q ? Q : 6, Y > Q - 3 && Y < Q && (Y = Q - 3), W[V++] = 16, W[V++] = Y - 3, M[16]++, Q -= Y } d = K ? W.subarray(0, V) : W.slice(0, V); M = u(M, 7); for (J = 0; 19 > J; J++) p[J] = M[L[J]]; for (I = 19; 4 < I && 0 === p[I - 1]; I--); L = v(M); k.P(C - 257, 5, R); k.P(G - 1, 5, R); k.P(I - 4, 4, R); for (J = 0; J < I; J++) k.P(p[J], 3, R); J = 0; for (p = d.length; J < p; J++) if (e = d[J], k.P(L[e], M[e], R), 16 <= e) { J++; switch (e) { case 16: n = 2; break; case 17: n = 3; break; case 18: n = 7; break; default: c("invalid code: " + e) } k.P(d[J], n, R) } n = [P, z]; B = [B, A]; e = n[0]; n = n[1]; A = B[0]; P = B[1]; B = 0; for (p = m.length; B < p; ++B) if (h = m[B], k.P(e[h], n[h], R), 256 < h) k.P(m[++B], m[++B], R), z = m[++B], k.P(A[z], P[z], R), k.P(m[++B], m[++B], R); else if (256 === h) break; this.a = k.finish(); this.b = this.a.length; break; default: c("invalid compression type") } return this.a }; I = []; var Y; for (Y = 3; 258 >= Y; Y++) J = p(), I[Y] = J[2] << 24 | J[1] << 16 | J[0]; var wa = K ? new Uint32Array(I) : I, Z = P; z.prototype.Xr = function() { var d, g, h, k, m = 0; k = this.a; d = Ja; switch (d) { case Ja: g = Math.LOG2E * Math.log(32768) - 8; break; default: c(Error("invalid compression method")) } g = g << 4 | d; k[m++] = g; switch (d) { case Ja: switch (this.Vf) { case Z.NONE: h = 0; break; case Z.r: h = 1; break; case Z.XP: h = 2; break; default: c(Error("unsupported compression type")) } break; default: c(Error("invalid compression method")) } d = h << 6 | 0; k[m++] = d | 31 - (256 * g + d) % 31; d = e(this.input); this.z.b = m; k = this.z.Xr(); m = k.length; K && (k = new Uint8Array(k.buffer), k.length <= m + 4 && (this.a = new Uint8Array(k.length + 4), this.a.set(k), k = this.a), k = k.subarray(0, m + 4)); k[m++] = d >> 24 & 255; k[m++] = d >> 16 & 255; k[m++] = d >> 8 & 255; k[m++] = d & 255; return k }; d("Zlib.Deflate", z); d("Zlib.Deflate.compress", function(c, d) { return (new z(c, d)).Xr() }); d("Zlib.Deflate.CompressionType", Z); d("Zlib.Deflate.CompressionType.NONE", Z.NONE); d("Zlib.Deflate.CompressionType.FIXED", Z.r); d("Zlib.Deflate.CompressionType.DYNAMIC", Z.XP); var Oa = 0, Q = 1, P = { Uka: Oa, Hja: Q }; A.prototype.AQ = function() { for (; !this.ll;) { var d = B(this, 3); d & 1 && (this.ll = R); d >>>= 1; switch (d) { case 0: var d = this.input, e = this.G, g = this.a, h = this.b, k = O, m = O, n = O, p = g.length, k = O; this.wm = this.g = 0; k = d[e++]; k === O && c(Error("invalid uncompressed block header: LEN (first byte)")); m = k; k = d[e++]; k === O && c(Error("invalid uncompressed block header: LEN (second byte)")); m |= k << 8; k = d[e++]; k === O && c(Error("invalid uncompressed block header: NLEN (first byte)")); n = k; k = d[e++]; k === O && c(Error("invalid uncompressed block header: NLEN (second byte)")); n |= k << 8; m === ~n && c(Error("invalid uncompressed block header: length verify")); e + m > d.length && c(Error("input buffer is broken")); switch (this.mQ) { case Oa: for (; h + m > g.length;) { k = p - h; m -= k; if (K) g.set(d.subarray(e, e + k), h), h += k, e += k; else for (; k--;) g[h++] = d[e++]; this.b = h; g = this.Tn(); h = this.b } break; case Q: for (; h + m > g.length;) g = this.Tn({ ga: 2 }); break; default: c(Error("invalid inflate mode")) } if (K) g.set(d.subarray(e, e + m), h), h += m, e += m; else for (; m--;) g[h++] = d[e++]; this.G = e; this.b = h; this.a = g; break; case 1: this.tQ(mb, nb); break; case 2: G(this); break; default: c(Error("unknown BTYPE: " + d)) } } return this.o3() }; I = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; var oa = K ? new Uint16Array(I) : I; I = [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 ob = K ? new Uint16Array(I) : I; I = [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 Pa = K ? new Uint8Array(I) : I; I = [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 Ub = K ? new Uint16Array(I) : I; I = [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 za = K ? new Uint8Array(I) : I; I = new(K ? Uint8Array : Array)(288); J = 0; for (V = I.length; J < V; ++J) I[J] = 143 >= J ? 8 : 255 >= J ? 9 : 279 >= J ? 7 : 8; var mb = k(I); I = new(K ? Uint8Array : Array)(30); J = 0; for (V = I.length; J < V; ++J) I[J] = 5; var nb = k(I); A.prototype.tQ = function(c, d) { var e = this.a, g = this.b; this.Da = c; for (var h = e.length - 258, k, m, n; 256 !== (k = C(this, c));) if (256 > k) g >= h && (this.b = g, e = this.Tn(), g = this.b), e[g++] = k; else for (k -= 257, n = ob[k], 0 < Pa[k] && (n += B(this, Pa[k])), k = C(this, d), m = Ub[k], 0 < za[k] && (m += B(this, za[k])), g >= h && (this.b = g, e = this.Tn(), g = this.b); n--;) e[g] = e[g++-m]; for (; 8 <= this.wm;) this.wm -= 8, this.G--; this.b = g }; A.prototype.Rla = function(c, d) { var e = this.a, g = this.b; this.Da = c; for (var h = e.length, k, m, n; 256 !== (k = C(this, c));) if (256 > k) g >= h && (e = this.Tn(), h = e.length), e[g++] = k; else for (k -= 257, n = ob[k], 0 < Pa[k] && (n += B(this, Pa[k])), k = C(this, d), m = Ub[k], 0 < za[k] && (m += B(this, za[k])), g + n > h && (e = this.Tn(), h = e.length); n--;) e[g] = e[g++-m]; for (; 8 <= this.wm;) this.wm -= 8, this.G--; this.b = g }; A.prototype.Tn = function() { var c = new(K ? Uint8Array : Array)(this.b - 32768), d = this.b - 32768, e, g, h = this.a; if (K) c.set(h.subarray(32768, c.length)); else for (e = 0, g = c.length; e < g; ++e) c[e] = h[e + 32768]; this.YP.push(c); this.JQ += c.length; if (K) h.set(h.subarray(d, d + 32768)); else for (e = 0; 32768 > e; ++e) h[e] = h[d + e]; this.b = 32768; return h }; A.prototype.Yla = function(c) { var d, e = this.input.length / this.G + 1 | 0, g, h, k, m = this.input, n = this.a; c && ("number" === typeof c.ga && (e = c.ga), "number" === typeof c.Fla && (e += c.Fla)); 2 > e ? (g = (m.length - this.G) / this.Da[2], k = g / 2 * 258 | 0, h = k < n.length ? n.length + k : n.length << 1) : h = n.length * e; K ? (d = new Uint8Array(h), d.set(n)) : d = n; return this.a = d }; A.prototype.o3 = function() { var c = 0, d = this.a, e = this.YP, g, h = new(K ? Uint8Array : Array)(this.JQ + (this.b - 32768)), k, m, n, p; if (0 === e.length) return K ? this.a.subarray(32768, this.b) : this.a.slice(32768, this.b); k = 0; for (m = e.length; k < m; ++k) for (g = e[k], n = 0, p = g.length; n < p; ++n) h[c++] = g[n]; k = 32768; for (m = this.b; k < m; ++k) h[c++] = d[k]; this.YP = []; return this.buffer = h }; A.prototype.Mla = function() { var c, d = this.b; K ? this.S3 ? (c = new Uint8Array(d), c.set(this.a.subarray(0, d))) : c = this.a.subarray(0, d) : (this.a.length > d && (this.a.length = d), c = this.a); return this.buffer = c }; L.prototype.AQ = function() { var d = this.input, g, h; g = this.I3.AQ(); this.G = this.I3.G; this.qma && (h = (d[this.G++] << 24 | d[this.G++] << 16 | d[this.G++] << 8 | d[this.G++]) >>> 0, h !== e(g) && c(Error("invalid adler-32 checksum"))); return g }; d("Zlib.Inflate", L); d("Zlib.Inflate.BufferType", P); P.tJa = P.Hja; P.dKa = P.Uka; d("Zlib.Inflate.prototype.decompress", L.prototype.AQ); P = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]; K && new Uint16Array(P); P = [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]; K && new Uint16Array(P); P = [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 ]; K && new Uint8Array(P); P = [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]; K && new Uint16Array(P); P = [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]; K && new Uint8Array(P); P = new(K ? Uint8Array : Array)(288); I = 0; for (J = P.length; I < J; ++I) P[I] = 143 >= I ? 8 : 255 >= I ? 9 : 279 >= I ? 7 : 8; k(P); P = new(K ? Uint8Array : Array)(30); I = 0; for (J = P.length; I < J; ++I) P[I] = 5; k(P); var Ja = 8 }).call(this); q = window; q = q.oNa = q.Zlib; q.Y4 = q.Deflate; q.Y4.wQa = q.Y4.compress; q.Iy = q.Inflate; q.Iy.uKa = q.Iy.BufferType; q.Iy.prototype.Hca = q.Iy.prototype.decompress; f.Zma = f.N.extend({ ctor: function(c) { var d, e, g, h; this.data = c; this.lc = 8; this.C1 = []; this.HP = []; this.oy = {}; this.wd = null; this.text = {}; for (g = null;;) { d = this.bs(); h = c = void 0; h = []; for (c = 0; 4 > c; ++c) h.push(String.fromCharCode(this.data[this.lc++])); c = h.join(""); switch (c) { case "IHDR": this.width = this.bs(); this.height = this.bs(); this.nB = this.data[this.lc++]; this.h_ = this.data[this.lc++]; this.lc++; this.lc++; this.lc++; break; case "acTL": this.wd = { F_a: this.bs(), G_a: this.bs() || Infinity, frames: [] }; break; case "PLTE": this.C1 = this.CI(d); break; case "fcTL": g && this.wd.frames.push(g); this.lc += 4; g = { width: this.bs(), height: this.bs(), Pia: this.bs(), Qia: this.bs() }; c = this.Wfa(); d = this.Wfa() || 100; g.vm = 1E3 * c / d; g.ZQa = this.data[this.lc++]; g.WPa = this.data[this.lc++]; g.data = []; break; case "IDAT": case "fdAT": "fdAT" === c && (this.lc += 4, d -= 4); c = (null != g ? g.data : void 0) || this.HP; for (h = 0; 0 <= d ? h < d : h > d; 0 <= d ? ++h : --h) c.push(this.data[this.lc++]); break; case "tRNS": this.oy = {}; switch (this.h_) { case 3: this.oy.C0 = this.CI(d); d = 255 - this.oy.C0.length; if (0 < d) for (c = 0; 0 <= d ? c < d : c > d; 0 <= d ? ++c : --c) this.oy.C0.push(255); break; case 0: this.oy.VWa = this.CI(d)[0]; break; case 2: this.oy.O1a = this.CI(d) } break; case "tEXt": h = this.CI(d); d = h.indexOf(0); c = String.fromCharCode.apply(String, h.slice(0, d)); this.text[c] = String.fromCharCode.apply(String, h.slice(d + 1)); break; case "IEND": g && this.wd.frames.push(g); a: { switch (this.h_) { case 0: case 3: case 4: g = 1; break a; case 2: case 6: g = 3; break a } g = void 0 } this.D = g; this.oea = 4 === (e = this.h_) || 6 === e; e = this.D + (this.oea ? 1 : 0); this.YEa = this.nB * e; Uint8Array != Array && (this.HP = new Uint8Array(this.HP)); return; default: this.lc += d } this.lc += 4; if (this.lc > this.data.length) throw Error("Incomplete or corrupt PNG file"); } }, CI: function(c) { var d, e; e = []; for (d = 0; 0 <= c ? d < c : d > c; 0 <= c ? ++d : --d) e.push(this.data[this.lc++]); return e }, bs: function() { var c, d, e, g; c = this.data[this.lc++] << 24; d = this.data[this.lc++] << 16; e = this.data[this.lc++] << 8; g = this.data[this.lc++]; return c | d | e | g }, Wfa: function() { var c, d; c = this.data[this.lc++] << 8; d = this.data[this.lc++]; return c | d }, Ixa: function(c) { var d, e, g, h, k, m, n, p, s, u, v, z, A, B, C; null == c && (c = this.HP); if (0 === c.length) return new Uint8Array(0); c = (new Zlib.Iy(c, { index: 0, Nia: !1 })).Hca(); p = this.YEa / 8; z = p * this.width; s = new Uint8Array(z * this.height); m = c.length; for (e = u = v = 0; u < m;) { switch (c[u++]) { case 0: for (d = 0; d < z; d += 1) s[e++] = c[u++]; break; case 1: for (h = A = 0; A < z; h = A += 1) d = c[u++], k = h < p ? 0 : s[e - p], s[e++] = (d + k) % 256; break; case 2: for (h = k = 0; k < z; h = k += 1) d = c[u++], g = (h - h % p) / p, A = v && s[(v - 1) * z + g * p + h % p], s[e++] = (A + d) % 256; break; case 3: for (h = C = 0; C < z; h = C += 1) d = c[u++], g = (h - h % p) / p, k = h < p ? 0 : s[e - p], A = v && s[(v - 1) * z + g * p + h % p], s[e++] = (d + Math.floor((k + A) / 2)) % 256; break; case 4: for (h = C = 0; C < z; h = C += 1) d = c[u++], g = (h - h % p) / p, k = h < p ? 0 : s[e - p], 0 === v ? A = B = 0 : (A = s[(v - 1) * z + g * p + h % p], B = g && s[(v - 1) * z + (g - 1) * p + h % p]), n = k + A - B, h = Math.abs(n - k), g = Math.abs(n - A), n = Math.abs(n - B), k = h <= g && h <= n ? k : g <= n ? A : B, s[e++] = (d + k) % 256; break; default: throw Error("Invalid filter algorithm: " + c[u - 1]); } v++ } return s }, ixa: function(c, d) { var e, g, h, k, m, n, p, s; g = this.D; s = null; e = this.oea; this.C1.length && (s = null != (h = this.Yqa) ? h : this.Yqa = this.Hxa(), g = 4, e = !0); h = c.data || c; p = h.length; m = s || d; k = n = 0; if (1 === g) for (; k < p;) g = s ? 4 * d[k / 4] : n, n = m[g++], h[k++] = n, h[k++] = n, h[k++] = n, h[k++] = e ? m[g++] : 255, n = g; else for (; k < p;) g = s ? 4 * d[k / 4] : n, h[k++] = m[g++], h[k++] = m[g++], h[k++] = m[g++], h[k++] = e ? m[g++] : 255, n = g }, Hxa: function() { var c, d, e, g, h, k, m, n, p; e = this.C1; k = this.oy.C0 || []; h = new Uint8Array((k.length || 0) + e.length); d = m = c = g = 0; for (n = e.length; m < n; d = m += 3) h[g++] = e[d], h[g++] = e[d + 1], h[g++] = e[d + 2], h[g++] = null != (p = k[c++]) ? p : 255; return h }, YFa: function(c) { var d; c.width = this.width; c.height = this.height; c = c.getContext("2d"); d = c.createImageData(this.width, this.height); this.ixa(d, this.Ixa()); return c.putImageData(d, 0, 0) } }); f.IIa = { U$: !1, Kw: null, fW: [], getUint8: function(c) { return this.Kw[c] }, getUint16: function(c) { return this.U$ ? this.Kw[c + 1] << 8 | this.Kw[c] : this.Kw[c] << 8 | this.Kw[c + 1] }, getUint32: function(c) { var d = this.Kw; return this.U$ ? d[c + 3] << 24 | d[c + 2] << 16 | d[c + 1] << 8 | d[c] : d[c] << 24 | d[c + 1] << 16 | d[c + 2] << 8 | d[c + 3] }, Uwa: function() { var c = this.getUint16(0); if (18761 === c) this.i1 = !0; else if (19789 === c) this.i1 = !1; else throw console.log(c), TypeError("Invalid byte order value."); return this.i1 }, $Ba: function() { if (42 !== this.getUint16(2)) throw RangeError("You forgot your towel!"); return !0 }, Wza: function(c) { var d = this.cza; return c in d ? d[c] : null }, Uza: function(c) { var d = this.bza; if (c in d) return d[c]; console.log("Unknown Field Tag:", c); return "Tag" + c }, Vza: function(c) { return -1 !== ["BYTE", "ASCII", "SBYTE", "UNDEFINED"].indexOf(c) ? 1 : -1 !== ["SHORT", "SSHORT"].indexOf(c) ? 2 : -1 !== ["LONG", "SLONG", "FLOAT"].indexOf(c) ? 4 : -1 !== ["RATIONAL", "SRATIONAL", "DOUBLE"].indexOf(c) ? 8 : null }, Xza: function(c, d, e, g) { c = []; var h = this.Vza(d); if (4 >= h * e)!1 === this.i1 ? c.push(g >>> 8 * (4 - h)) : c.push(g); else for (var k = 0; k < e; k++) { var m = h * k; 8 <= h ? -1 !== ["RATIONAL", "SRATIONAL"].indexOf(d) ? (c.push(this.getUint32(g + m)), c.push(this.getUint32(g + m + 4))) : f.log("Can't handle this field type or size") : c.push(this.oda(h, g + m)) } "ASCII" === d && c.forEach(function(c, d, e) { e[d] = String.fromCharCode(c) }); return c }, oda: function(c, d) { if (0 >= c) f.log("No bytes requested"); else { if (1 >= c) return this.getUint8(d); if (2 >= c) return this.getUint16(d); if (3 >= c) return this.getUint32(d) >>> 8; if (4 >= c) return this.getUint32(d); f.log("Too many bytes requested") } }, Cza: function(c, d, e) { e = e || 0; d += Math.floor(e / 8); var g = e + c; c = 32 - c; var h, k; 0 >= g ? console.log("No bits requested") : 8 >= g ? (h = 24 + e, k = this.getUint8(d)) : 16 >= g ? (h = 16 + e, k = this.getUint16(d)) : 32 >= g ? (h = e, k = this.getUint32(d)) : console.log("Too many bits requested"); return { bits: k << h >>> c, byteOffset: d + Math.floor(g / 8), bitOffset: g % 8 } }, Ofa: function(c) { var d = this.getUint16(c), e = []; c += 2; for (var g = 0; g < d; c += 12, g++) { var h = this.getUint16(c), k = this.getUint16(c + 2), m = this.getUint32(c + 4), n = this.getUint32(c + 8), h = this.Uza(h), k = this.Wza(k), m = this.Xza(h, k, m, n); e[h] = { type: k, po: m } } this.fW.push(e); d = this.getUint32(c); 0 !== d && this.Ofa(d) }, hx: function(c, d) { var e = Math.pow(2, 8 - d); return Math.floor(c * e + (e - 1)) }, VEa: function(c, d) { d = d || f.fd("canvas"); this.Kw = c; this.canvas = d; this.Uwa(); if (this.$Ba()) { var e = this.getUint32(4); this.fW.length = 0; this.Ofa(e); var g = this.fW[0], e = g.ImageWidth.po[0], h = g.ImageLength.po[0]; this.canvas.width = e; this.canvas.height = h; var k = [], m = g.Compression ? g.Compression.po[0] : 1, n = g.SamplesPerPixel.po[0], p = [], s = 0, u = !1; g.BitsPerSample.po.forEach(function(c, d) { p[d] = { oB: c, AP: !1, bH: void 0 }; 0 === c % 8 && (p[d].AP = !0, p[d].bH = c / 8); s += c }, this); if (0 === s % 8) var u = !0, v = s / 8; var z = g.StripOffsets.po, A = z.length; if (g.StripByteCounts) var B = g.StripByteCounts.po; else if (f.log("Missing StripByteCounts!"), 1 === A) B = [Math.ceil(e * h * s / 8)]; else throw Error("Cannot recover from missing StripByteCounts"); for (var C = 0; C < A; C++) { var G = z[C]; k[C] = []; for (var L = B[C], O = 0, R = 0, M = 1, K = !0, P = [], I = 0, J = 0, V = 0; O < L; O += M) switch (m) { case 1: M = 0; for (P = []; M < n; M++) if (p[M].AP) P.push(this.oda(p[M].bH, G + O + p[M].bH * M)); else { var ma = this.Cza(p[M].oB, G + O, R); P.push(ma.nB); O = ma.byteOffset - G; R = ma.UPa; throw RangeError("Cannot handle sub-byte bits per sample"); } k[C].push(P); if (u) M = v; else throw M = 0, RangeError("Cannot handle sub-byte bits per pixel"); break; case 32773: if (K) { var K = !1, W = 1, fa = 1, M = this.getInt8(G + O); 0 <= M && 127 >= M ? W = M + 1 : -127 <= M && -1 >= M ? fa = -M + 1 : K = !0 } else { for (var ta = this.getUint8(G + O), M = 0; M < fa; M++) { if (p[J].AP) V = V << 8 * I | ta, I++, I === p[J].bH && (P.push(V), V = I = 0, J++); else throw RangeError("Cannot handle sub-byte bits per sample"); J === n && (k[C].push(P), P = [], J = 0) } W--; 0 === W && (K = !0) } M = 1 } } if (d.getContext) { v = this.canvas.getContext("2d"); v.fillStyle = "rgba(255, 255, 255, 0)"; C = g.RowsPerStrip ? g.RowsPerStrip.po[0] : h; G = k.length; h %= C; h = 0 === h ? C : h; O = C; m = 0; P = g.PhotometricInterpretation.po[0]; W = []; fa = 0; g.ExtraSamples && (W = g.ExtraSamples.po, fa = W.length); if (g.ColorMap) var ma = g.ColorMap.po, Y = Math.pow(2, p[0].oB); for (C = 0; C < G; C++) { C + 1 === G && (O = h); g = k[C].length; m *= C; for (u = n = 0; n < O, u < g; n++) for (z = 0; z < e; z++, u++) { B = k[C][u]; K = R = L = 0; A = 1; if (0 < fa) for (L = 0; L < fa; L++) if (1 === W[L] || 2 === W[L]) { A = B[3 + L] / 256; break } switch (P) { case 0: if (p[0].AP) var wa = Math.pow(16, 2 * p[0].bH); B.forEach(function(c, d, e) { e[d] = wa - c }); case 1: L = R = K = this.hx(B[0], p[0].oB); break; case 2: L = this.hx(B[0], p[0].oB); R = this.hx(B[1], p[1].oB); K = this.hx(B[2], p[2].oB); break; case 3: if (void 0 === ma) throw Error("Palette image missing color map"); B = B[0]; L = this.hx(ma[B], 16); R = this.hx(ma[Y + B], 16); K = this.hx(ma[2 * Y + B], 16); break; default: throw RangeError("Unknown Photometric Interpretation:", P); } v.fillStyle = "rgba(" + L + ", " + R + ", " + K + ", " + A + ")"; v.fillRect(z, m + n, 1, 1) } m = O } } return this.canvas } }, bza: { 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" }, cza: { 1: "BYTE", 2: "ASCII", 3: "SHORT", 4: "LONG", 5: "RATIONAL", 6: "SBYTE", 7: "UNDEFINED", 8: "SSHORT", 9: "SLONG", 10: "SRATIONAL", 11: "FLOAT", 12: "DOUBLE" } }; f.Jl = function(c, d, e, g, h, k, m, n, p, s, u, v) { this.lc = c ? c : r(0, 0); this.startPos = d ? d : r(0, 0); this.color = e ? e : { r: 0, g: 0, b: 0, a: 255 }; this.jH = g ? g : { r: 0, g: 0, b: 0, a: 255 }; this.size = h || 0; this.v_ = k || 0; this.rotation = m || 0; this.Lca = n || 0; this.Su = p || 0; this.atlasIndex = s || 0; this.ae = u ? u : new f.Jl.jT; this.th = v ? v : new f.Jl.kT; this.Iea = !1; this.nH = r(0, 0) }; f.Jl.jT = function(c, d, e) { this.dir = c ? c : r(0, 0); this.radialAccel = d || 0; this.tangentialAccel = e || 0 }; f.Jl.kT = function(c, d, e, g) { this.sm = c || 0; this.Jca = d || 0; this.BI = e || 0; this.Kca = g || 0 }; f.Jl.GK = [r(), r(), r(), r()]; f.A = f.v.extend({ jN: "", Fc: 0, n9: !1, ae: null, th: null, ta: "ParticleSystem", CX: r(0, 0), Ct: null, Mv: 0, Vj: 0, Aa: null, atlasIndex: 0, Rw: !1, RK: 0, WO: null, GR: null, eA: !1, Rg: 0, duration: 0, QA: null, Et: null, qj: 0, fC: 0, sm: 0, kB: 0, LC: 0, MC: 0, rx: 0, AB: 0, Ng: null, Pt: null, Jf: null, et: null, NC: 0, OC: 0, BB: 0, CB: 0, qx: 0, Jc: 0, fa: null, B: null, Jb: !1, vh: null, ZG: !1, Kb: 0, of: null, Tb: null, Se: null, bG: null, Ba: null, kg: null, ctor: function(c) { f.v.prototype.ctor.call(this); this.Kb = f.A.wc; this.ae = new f.A.jT; this.th = new f.A.kT; this.B = { src: f.Mc, ha: f.Lc }; this.Ct = []; this.QA = r(0, 0); this.Et = r(0, 0); this.Ng = f.color(255, 255, 255, 255); this.Pt = f.color(255, 255, 255, 255); this.Jf = f.color(255, 255, 255, 255); this.et = f.color(255, 255, 255, 255); this.jN = ""; this.Fc = 0; this.n9 = !1; this.CX = r(0, 0); this.Vj = this.Mv = 0; this.Aa = null; this.atlasIndex = 0; this.Rw = !1; this.RK = 0; this.WO = f.A.Nna; this.GR = f.A.mja; this.eA = !1; this.Jc = this.qx = this.CB = this.BB = this.OC = this.NC = this.AB = this.rx = this.MC = this.LC = this.kB = this.sm = this.fC = this.qj = this.duration = this.Rg = 0; this.fa = null; this.Jb = !1; this.vh = f.A.rE; this.ZG = !1; this.Se = [0, 0]; this.of = []; this.Tb = []; this.bG = x(0, 0, 0, 0); this.Ba = !0; f.K === f.na && (this.kg = null); c && "number" !== typeof c ? c && this.Ge(c) : (c = c || 100, this.QGa(f.A.p7), this.fc(c)) }, E0: function() { for (var c = this.Tb, d = 0, e = this.Jc; d < e; ++d) { var g = 6 * d, h = 4 * d; c[g + 0] = h + 0; c[g + 1] = h + 1; c[g + 2] = h + 2; c[g + 5] = h + 1; c[g + 4] = h + 2; c[g + 3] = h + 3 } }, vea: function(c) { var d = f.Uc(), e = x(c.x * d, c.y * d, c.width * d, c.height * d), g = c.width, h = c.height; this.fa && (g = this.fa.pixelsWidth, h = this.fa.pixelsHeight); if (f.K !== f.fb) { f.Ey ? (c = (2 * e.x + 1) / (2 * g), d = (2 * e.y + 1) / (2 * h), g = c + (2 * e.width - 2) / (2 * g), e = d + (2 * e.height - 2) / (2 * h)) : (c = e.x / g, d = e.y / h, g = c + e.width / g, e = d + e.height / h); var h = e, e = d, d = h, k = 0, m = 0; this.Aa ? (h = this.Aa.textureAtlas.quads, k = this.atlasIndex, m = this.atlasIndex + this.Jc) : (h = this.of, k = 0, m = this.Jc); for (; k < m; k++) { h[k] || (h[k] = f.i8()); var n = h[k]; n.T.t.Da = c; n.T.t.ga = d; n.aa.t.Da = g; n.aa.t.ga = d; n.Z.t.Da = c; n.Z.t.ga = e; n.W.t.Da = g; n.W.t.ga = e } } }, LB: function() { return this.Aa }, is: function(c) { if (this.Aa != c) { var d = this.Aa; if (this.Aa = c) for (var e = this.Ct, g = 0; g < this.Jc; g++) e[g].atlasIndex = g; c ? d || (this.Aa.textureAtlas.Uqa(this.of, this.atlasIndex), f.s.deleteBuffer(this.Se[1])) : (this.D8(), this.E0(), this.ab(d.sb()), this.Dw()) } }, KB: function() { return this.atlasIndex }, k2: function(c) { this.atlasIndex = c }, ETa: function() { return this.WO }, QGa: function(c) { this.WO = c }, RVa: function() { return this.GR }, k4a: function(c) { this.GR = c }, Bi: function() { return this.eA }, kVa: function() { return this.Rg }, T3a: function(c) { this.Rg = c }, pu: function() { return this.duration }, Ei: function(c) { this.duration = c }, oBa: function() { return { x: this.QA.x, y: this.QA.y } }, NHa: function(c) { this.QA = c }, i0: function() { return { x: this.Et.x, y: this.Et.y } }, vl: function(c) { this.Et = c }, wUa: function() { return this.qj }, rl: function(c) { this.qj = c }, xUa: function() { return this.fC }, sl: function(c) { this.fC = c }, YRa: function() { return this.sm }, ml: function(c) { this.sm = c }, ZRa: function() { return this.kB }, nl: function(c) { this.kB = c }, uH: function() { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getGravity() : Particle Mode should be Gravity"); var c = this.ae.gravity; return r(c.x, c.y) }, vc: function(c) { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setGravity() : Particle Mode should be Gravity"); this.ae.gravity = c }, tP: function() { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getSpeed() : Particle Mode should be Gravity"); return this.ae.speed }, Hi: function(c) { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setSpeed() : Particle Mode should be Gravity"); this.ae.speed = c }, Wda: function() { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getSpeedVar() : Particle Mode should be Gravity"); return this.ae.speedVar }, pk: function(c) { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setSpeedVar() : Particle Mode should be Gravity"); this.ae.speedVar = c }, $da: function() { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getTangentialAccel() : Particle Mode should be Gravity"); return this.ae.tangentialAccel }, bq: function(c) { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setTangentialAccel() : Particle Mode should be Gravity"); this.ae.tangentialAccel = c }, aea: function() { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getTangentialAccelVar() : Particle Mode should be Gravity"); return this.ae.tangentialAccelVar }, cq: function(c) { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setTangentialAccelVar() : Particle Mode should be Gravity"); this.ae.tangentialAccelVar = c }, Pda: function() { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getRadialAccel() : Particle Mode should be Gravity"); return this.ae.radialAccel }, nk: function(c) { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setRadialAccel() : Particle Mode should be Gravity"); this.ae.radialAccel = c }, Qda: function() { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getRadialAccelVar() : Particle Mode should be Gravity"); return this.ae.radialAccelVar }, ok: function(c) { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setRadialAccelVar() : Particle Mode should be Gravity"); this.ae.radialAccelVar = c }, cBa: function() { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.getRotationIsDir() : Particle Mode should be Gravity"); return this.ae.rotationIsDir }, HHa: function(c) { this.Kb !== f.A.wc && f.log("cc.ParticleBatchNode.setRotationIsDir() : Particle Mode should be Gravity"); this.ae.rotationIsDir = c }, Yda: function() { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getStartRadius() : Particle Mode should be Radius"); return this.th.startRadius }, R2: function(c) { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setStartRadius() : Particle Mode should be Radius"); this.th.startRadius = c }, Zda: function() { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getStartRadiusVar() : Particle Mode should be Radius"); return this.th.startRadiusVar }, S2: function(c) { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setStartRadiusVar() : Particle Mode should be Radius"); this.th.startRadiusVar = c }, zda: function() { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getEndRadius() : Particle Mode should be Radius"); return this.th.endRadius }, w2: function(c) { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setEndRadius() : Particle Mode should be Radius"); this.th.endRadius = c }, Ada: function() { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getEndRadiusVar() : Particle Mode should be Radius"); return this.th.endRadiusVar }, x2: function(c) { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setEndRadiusVar() : Particle Mode should be Radius"); this.th.endRadiusVar = c }, Rda: function() { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getRotatePerSecond() : Particle Mode should be Radius"); return this.th.QQ }, K2: function(c) { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setRotatePerSecond() : Particle Mode should be Radius"); this.th.QQ = c }, Sda: function() { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.getRotatePerSecondVar() : Particle Mode should be Radius"); return this.th.RQ }, L2: function(c) { this.Kb !== f.A.Bj && f.log("cc.ParticleBatchNode.setRotatePerSecondVar() : Particle Mode should be Radius"); this.th.RQ = c }, ib: function(c, d) { this.Rw = !0; f.v.prototype.ib.call(this, c, d) }, yh: function(c) { this.Rw = !0; f.v.prototype.yh.call(this, c) }, jb: function(c) { this.Rw = !0; f.v.prototype.jb.call(this, c) }, tb: function(c) { this.Rw = !0; f.v.prototype.tb.call(this, c) }, WVa: function() { return this.LC }, wl: function(c) { this.LC = c }, XVa: function() { return this.MC }, xl: function(c) { this.MC = c }, KTa: function() { return this.rx }, ql: function(c) { this.rx = c }, LTa: function() { return this.AB }, Wga: function(c) { this.AB = c }, uP: function() { return f.color(this.Ng.r, this.Ng.g, this.Ng.b, this.Ng.a) }, Tg: function(c) { this.Ng = f.color(c) }, Xda: function() { return f.color(this.Pt.r, this.Pt.g, this.Pt.b, this.Pt.a) }, qk: function(c) { this.Pt = f.color(c) }, lP: function() { return f.color(this.Jf.r, this.Jf.g, this.Jf.b, this.Jf.a) }, Sg: function(c) { this.Jf = f.color(c) }, yda: function() { return f.color(this.et.r, this.et.g, this.et.b, this.et.a) }, mk: function(c) { this.et = f.color(c) }, YVa: function() { return this.NC }, Tha: function(c) { this.NC = c }, ZVa: function() { return this.OC }, Uha: function(c) { this.OC = c }, MTa: function() { return this.BB }, Xga: function(c) { this.BB = c }, NTa: function() { return this.CB }, Yga: function(c) { this.CB = c }, ITa: function() { return this.qx }, ol: function(c) { this.qx = c }, ABa: function() { return this.Jc }, Xha: function(c) { if (f.K === f.fb) this.Jc = 200 > c ? c : 200; else { if (c > this.RK) { var d = f.Yc.BYTES_PER_ELEMENT; this.Tb = new Uint16Array(6 * c); var e = new ArrayBuffer(c * d), g = this.Ct; g.length = 0; for (var h = this.of, k = h.length = 0; k < c; k++) g[k] = new f.Jl, h[k] = new f.Yc(null, null, null, null, e, k * d); this.Jc = this.RK = c; if (this.Aa) for (d = 0; d < c; d++) g[d].atlasIndex = d; this.kg = e; this.E0(); this.Dw(); this.fa && this.vea(x(0, 0, this.fa.width, this.fa.height)) } else this.Jc = c; this.tga() } }, sb: function() { return this.fa }, ab: function(c) { c.ie ? this.V2(c, x(0, 0, c.width, c.height)) : (this.Ba = !1, c.oe(function(c) { this.Ba = !0; this.V2(c, x(0, 0, c.width, c.height)) }, this)) }, ck: function() { return this.B }, ce: function(c, d) { if (void 0 === d) this.B != c && (this.B = c, this.Yk()); else if (this.B.src != c || this.B.ha != d) this.B = { src: c, ha: d }, this.Yk() }, vg: function() { return this.Jb }, ee: function(c) { this.Jb = c }, PCa: function() { return this.B.src == f.SRC_ALPHA && this.B.ha == f.ONE || this.B.src == f.ONE && this.B.ha == f.ONE }, jo: function(c) { var d = this.B; c ? (d.src = f.SRC_ALPHA, d.ha = f.ONE) : f.K === f.na ? this.fa && !this.fa.Ep() ? (d.src = f.SRC_ALPHA, d.ha = f.ONE_MINUS_SRC_ALPHA) : (d.src = f.Mc, d.ha = f.Lc) : (d.src = f.Mc, d.ha = f.Lc) }, VAa: function() { return this.vh }, E2: function(c) { this.vh = c }, rXa: function() { return this.ZG }, y2a: function(c) { this.ZG = c }, JTa: function() { return this.Kb }, pl: function(c) { this.Kb = c }, j: function() { return this.fc(150) }, Ge: function(c) { this.jN = c; c = f.L.zd(c); return c ? this.Ip(c, "") : (f.log("cc.ParticleSystem.initWithFile(): Particles: file not found"), !1) }, Dza: function() { return x(0, 0, f.Sb.width, f.Sb.height) }, Ip: function(c) { var d = !1, e = null, e = this.Dva, g = parseInt(e("maxParticles", c)); if (this.fc(g)) { this.sm = parseFloat(e("angle", c)); this.kB = parseFloat(e("angleVariance", c)); this.duration = parseFloat(e("duration", c)); this.B.src = parseInt(e("blendFuncSource", c)); this.B.ha = parseInt(e("blendFuncDestination", c)); d = this.Ng; d.r = 255 * parseFloat(e("startColorRed", c)); d.g = 255 * parseFloat(e("startColorGreen", c)); d.b = 255 * parseFloat(e("startColorBlue", c)); d.a = 255 * parseFloat(e("startColorAlpha", c)); d = this.Pt; d.r = 255 * parseFloat(e("startColorVarianceRed", c)); d.g = 255 * parseFloat(e("startColorVarianceGreen", c)); d.b = 255 * parseFloat(e("startColorVarianceBlue", c)); d.a = 255 * parseFloat(e("startColorVarianceAlpha", c)); d = this.Jf; d.r = 255 * parseFloat(e("finishColorRed", c)); d.g = 255 * parseFloat(e("finishColorGreen", c)); d.b = 255 * parseFloat(e("finishColorBlue", c)); d.a = 255 * parseFloat(e("finishColorAlpha", c)); d = this.et; d.r = 255 * parseFloat(e("finishColorVarianceRed", c)); d.g = 255 * parseFloat(e("finishColorVarianceGreen", c)); d.b = 255 * parseFloat(e("finishColorVarianceBlue", c)); d.a = 255 * parseFloat(e("finishColorVarianceAlpha", c)); this.LC = parseFloat(e("startParticleSize", c)); this.MC = parseFloat(e("startParticleSizeVariance", c)); this.rx = parseFloat(e("finishParticleSize", c)); this.AB = parseFloat(e("finishParticleSizeVariance", c)); this.o(parseFloat(e("sourcePositionx", c)), parseFloat(e("sourcePositiony", c))); this.Et.x = parseFloat(e("sourcePositionVariancex", c)); this.Et.y = parseFloat(e("sourcePositionVariancey", c)); this.NC = parseFloat(e("rotationStart", c)); this.OC = parseFloat(e("rotationStartVariance", c)); this.BB = parseFloat(e("rotationEnd", c)); this.CB = parseFloat(e("rotationEndVariance", c)); this.Kb = parseInt(e("emitterType", c)); if (this.Kb == f.A.wc) d = this.ae, d.gravity.x = parseFloat(e("gravityx", c)), d.gravity.y = parseFloat(e("gravityy", c)), d.speed = parseFloat(e("speed", c)), d.speedVar = parseFloat(e("speedVariance", c)), g = e("radialAcceleration", c), d.radialAccel = g ? parseFloat(g) : 0, g = e("radialAccelVariance", c), d.radialAccelVar = g ? parseFloat(g) : 0, g = e("tangentialAcceleration", c), d.tangentialAccel = g ? parseFloat(g) : 0, g = e("tangentialAccelVariance", c), d.tangentialAccelVar = g ? parseFloat(g) : 0, g = e("rotationIsDir", c).toLowerCase(), d.rotationIsDir = null != g && ("true" === g || "1" === g); else if (this.Kb == f.A.Bj) d = this.th, d.startRadius = parseFloat(e("maxRadius", c)), d.startRadiusVar = parseFloat(e("maxRadiusVariance", c)), d.endRadius = parseFloat(e("minRadius", c)), d.endRadiusVar = 0, d.QQ = parseFloat(e("rotatePerSecond", c)), d.RQ = parseFloat(e("rotatePerSecondVariance", c)); else return f.log("cc.ParticleSystem.initWithDictionary(): Invalid emitterType in config file"), !1; this.qj = parseFloat(e("particleLifespan", c)); this.fC = parseFloat(e("particleLifespanVariance", c)); this.qx = this.Jc / this.qj; if (!this.Aa) if (this.Jb = !1, d = e("textureFileName", c), d = f.path.pB(this.jN, d), g = f.nb.Ru(d)) this.ab(g); else if ((c = e("textureImageData", c)) && 0 == c.length) { g = f.nb.vd(d); if (!g) return !1; this.ab(g) } else { e = f.Cia(c, 1); if (!e) return f.log("cc.ParticleSystem: error decoding or ungzipping textureImageData"), !1; c = f.gAa(e); if (c !== f.q5 && c !== f.NS) return f.log("cc.ParticleSystem: unknown image format with Data"), !1; g = f.fd("canvas"); c === f.NS ? (new f.Zma(e)).YFa(g) : f.IIa.VEa(e, g); f.nb.Mwa(d, g); (c = f.nb.Ru(d)) || f.log("cc.ParticleSystem.initWithDictionary() : error loading the texture"); this.ab(c) } d = !0 } return d }, fc: function(c) { this.Jc = c; var d, e = this.Ct; for (d = e.length = 0; d < c; d++) e[d] = new f.Jl; if (!e) return f.log("Particle system: not enough memory"), !1; this.RK = c; if (this.Aa) for (d = 0; d < this.Jc; d++) e[d].atlasIndex = d; this.eA = !0; this.B.src = f.Mc; this.B.ha = f.Lc; this.vh = f.A.rE; this.Kb = f.A.wc; this.Rw = this.ZG = !1; this.xga(1); if (f.K === f.na) { if (!this.D8()) return !1; this.E0(); this.Dw(); this.shaderProgram = f.xg.be(f.zo) } return !0 }, NQa: function() { this.UC() }, Sva: function() { if (this.XCa()) return !1; var c, d = this.Ct; f.K === f.fb ? this.Rg < d.length ? c = d[this.Rg] : (c = new f.Jl, d.push(c)) : c = d[this.Rg]; this.pCa(c); ++this.Rg; return !0 }, pCa: function(c) { var d = f.uFa; c.Su = this.qj + this.fC * d(); c.Su = Math.max(0, c.Su); c.lc.x = this.QA.x + this.Et.x * d(); c.lc.y = this.QA.y + this.Et.y * d(); var e, g; e = this.Ng; var h = this.Pt, k = this.Jf; g = this.et; f.K === f.fb ? (e = f.color(f.Rf(e.r + h.r * d(), 0, 255), f.Rf(e.g + h.g * d(), 0, 255), f.Rf(e.b + h.b * d(), 0, 255), f.Rf(e.a + h.a * d(), 0, 255)), g = f.color(f.Rf(k.r + g.r * d(), 0, 255), f.Rf(k.g + g.g * d(), 0, 255), f.Rf(k.b + g.b * d(), 0, 255), f.Rf(k.a + g.a * d(), 0, 255))) : (e = { r: f.Rf(e.r + h.r * d(), 0, 255), g: f.Rf(e.g + h.g * d(), 0, 255), b: f.Rf(e.b + h.b * d(), 0, 255), a: f.Rf(e.a + h.a * d(), 0, 255) }, g = { r: f.Rf(k.r + g.r * d(), 0, 255), g: f.Rf(k.g + g.g * d(), 0, 255), b: f.Rf(k.b + g.b * d(), 0, 255), a: f.Rf(k.a + g.a * d(), 0, 255) }); c.color = e; h = c.jH; k = c.Su; h.r = (g.r - e.r) / k; h.g = (g.g - e.g) / k; h.b = (g.b - e.b) / k; h.a = (g.a - e.a) / k; e = this.LC + this.MC * d(); e = Math.max(0, e); c.size = e; this.rx === f.A.Ml ? c.v_ = 0 : (g = this.rx + this.AB * d(), g = Math.max(0, g), c.v_ = (g - e) / k); e = this.NC + this.OC * d(); g = this.BB + this.CB * d(); c.rotation = e; c.Lca = (g - e) / k; this.vh == f.A.rE ? c.startPos = this.um(this.CX) : this.vh == f.A.fU && (c.startPos.x = this.oa.x, c.startPos.y = this.oa.y); e = f.sg(this.sm + this.kB * d()); if (this.Kb === f.A.wc) k = this.ae, g = c.ae, h = k.speed + k.speedVar * d(), g.dir.x = Math.cos(e), g.dir.y = Math.sin(e), f.xC(g.dir, h), g.radialAccel = k.radialAccel + k.radialAccelVar * d(), g.tangentialAccel = k.tangentialAccel + k.tangentialAccelVar * d(), k.rotationIsDir && (c.rotation = -f.yC(f.oEa(g.dir))); else { g = this.th; c = c.th; var h = g.startRadius + g.startRadiusVar * d(), m = g.endRadius + g.endRadiusVar * d(); c.BI = h; c.Kca = g.endRadius === f.A.Qna ? 0 : (m - h) / k; c.sm = e; c.Jca = f.sg(g.QQ + g.RQ * d()) } }, uIa: function() { this.eA = !1; this.Fc = this.duration; this.Mv = 0 }, tga: function() { this.eA = !0; this.Fc = 0; var c = this.Ct; for (this.Vj = 0; this.Vj < this.Rg; ++this.Vj) c[this.Vj].Su = 0 }, XCa: function() { return this.Rg >= this.Jc }, dJa: function(c, d) { var e = null; this.Aa ? (e = this.Aa.textureAtlas.quads[this.atlasIndex + c.atlasIndex], this.Aa.textureAtlas.dirty = !0) : e = this.of[this.Vj]; var g, h, k, m; this.Jb ? (g = 0 | c.color.r * c.color.a / 255, h = 0 | c.color.g * c.color.a / 255, k = 0 | c.color.b * c.color.a / 255) : (g = 0 | c.color.r, h = 0 | c.color.g, k = 0 | c.color.b); m = 0 | c.color.a; var n = e.T.D; n.r = g; n.g = h; n.b = k; n.a = m; n = e.aa.D; n.r = g; n.g = h; n.b = k; n.a = m; n = e.Z.D; n.r = g; n.g = h; n.b = k; n.a = m; n = e.W.D; n.r = g; n.g = h; n.b = k; n.a = m; g = c.size / 2; if (c.rotation) { h = -g; k = -g; m = d.x; var n = d.y, p = -f.sg(c.rotation), s = Math.cos(p), p = Math.sin(p); e.T.k.x = h * s - k * p + m; e.T.k.y = h * p + k * s + n; e.aa.k.x = g * s - k * p + m; e.aa.k.y = g * p + k * s + n; e.Z.k.x = h * s - g * p + m; e.Z.k.y = h * p + g * s + n; e.W.k.x = g * s - g * p + m; e.W.k.y = g * p + g * s + n } else e.T.k.x = d.x - g, e.T.k.y = d.y - g, e.aa.k.x = d.x + g, e.aa.k.y = d.y - g, e.Z.k.x = d.x - g, e.Z.k.y = d.y + g, e.W.k.x = d.x + g, e.W.k.y = d.y + g }, gFa: function() { if (f.K === f.na) { var c = f.s; c.bindBuffer(c.ARRAY_BUFFER, this.Se[0]); c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW) } }, update: function(c) { if (this.eA && this.qx) { var d = 1 / this.qx; this.Rg < this.Jc && (this.Mv += c); for (; this.Rg < this.Jc && this.Mv > d;) this.Sva(), this.Mv -= d; this.Fc += c; - 1 != this.duration && this.duration < this.Fc && this.uIa() } this.Vj = 0; d = f.Jl.GK[0]; this.vh == f.A.rE ? f.$r(d, this.um(this.CX)) : this.vh == f.A.fU && (d.x = this.oa.x, d.y = this.oa.y); if (this.Na) { for (var e = f.Jl.GK[1], g = f.Jl.GK[2], h = f.Jl.GK[3], k = this.Ct; this.Vj < this.Rg;) { f.DQ(e); f.DQ(g); f.DQ(h); var m = k[this.Vj]; m.Su -= c; if (0 < m.Su) { if (this.Kb == f.A.wc) { var n = h, p = e, s = g; m.lc.x || m.lc.y ? (f.$r(p, m.lc), f.mEa(p)) : f.DQ(p); f.$r(s, p); f.xC(p, m.ae.radialAccel); var u = s.x; s.x = -s.y; s.y = u; f.xC(s, m.ae.tangentialAccel); f.$r(n, p); f.BQ(n, s); f.BQ(n, this.ae.gravity); f.xC(n, c); f.BQ(m.ae.dir, n); f.$r(n, m.ae.dir); f.xC(n, c); f.BQ(m.lc, n) } else n = m.th, n.sm += n.Jca * c, n.BI += n.Kca * c, m.lc.x = -Math.cos(n.sm) * n.BI, m.lc.y = -Math.sin(n.sm) * n.BI; this.n9 && f.K !== f.fb || (m.color.r += m.jH.r * c, m.color.g += m.jH.g * c, m.color.b += m.jH.b * c, m.color.a += m.jH.a * c, m.Iea = !0); m.size += m.v_ * c; m.size = Math.max(0, m.size); m.rotation += m.Lca * c; n = e; this.vh == f.A.rE || this.vh == f.A.fU ? (p = g, f.$r(p, d), f.Mfa(p, m.startPos), f.$r(n, m.lc), f.Mfa(n, p)) : f.$r(n, m.lc); this.Aa && (n.x += this.oa.x, n.y += this.oa.y); f.K == f.na ? this.dJa(m, n) : f.$r(m.nH, n); ++this.Vj } else if (m = m.atlasIndex, this.Vj !== this.Rg - 1 && (n = k[this.Vj], k[this.Vj] = k[this.Rg - 1], k[this.Rg - 1] = n), this.Aa && (this.Aa.Vxa(this.atlasIndex + m), k[this.Rg - 1].atlasIndex = m), --this.Rg, 0 == this.Rg && this.ZG) { this.UC(); this.Yb.removeChild(this, !0); return } } this.Rw = !1 } this.Aa || this.gFa() }, iJa: function() { this.update(0) }, Dva: function(c, d) { if (d) { var e = d[c]; return null != e ? e : "" } return "" }, Yk: function() { if (this.Aa) f.log("Can't change blending functions when the particle is being batched"); else { var c = this.fa; if (c && c instanceof f.Pa) { this.Jb = !1; var d = this.B; d.src == f.Mc && d.ha == f.Lc && (c.Ep() ? this.Jb = !0 : (d.src = f.SRC_ALPHA, d.ha = f.ONE_MINUS_SRC_ALPHA)) } } }, p: function() { var c = new f.A; if (c.fc(this.Jc)) { c.ml(this.sm); c.nl(this.kB); c.Ei(this.pu()); var d = this.ck(); c.ce(d.src, d.ha); c.Tg(this.uP()); c.qk(this.Xda()); c.Sg(this.lP()); c.mk(this.yda()); c.wl(this.LC); c.xl(this.MC); c.ql(this.rx); c.Wga(this.AB); c.o(r(this.x, this.y)); c.vl(r(this.i0().x, this.i0().y)); c.Tha(this.NC || 0); c.Uha(this.OC || 0); c.Xga(this.BB || 0); c.Yga(this.CB || 0); c.pl(this.Kb); this.Kb == f.A.wc ? (d = this.uH(), c.vc(r(d.x, d.y)), c.Hi(this.tP()), c.pk(this.Wda()), c.nk(this.Pda()), c.ok(this.Qda()), c.bq(this.$da()), c.cq(this.aea())) : this.Kb == f.A.Bj && (c.R2(this.Yda()), c.S2(this.Zda()), c.w2(this.zda()), c.x2(this.Ada()), c.K2(this.Rda()), c.L2(this.Sda())); c.rl(this.qj); c.sl(this.fC); c.ol(this.qx); if (!this.LB() && (c.ee(this.vg()), d = this.sb())) { var e = d.e(); c.V2(d, x(0, 0, e.width, e.height)) } } return c }, NGa: function(c) { var d = c.Pk; 0 == d.x && 0 == d.y || f.log("cc.ParticleSystem.setDisplayFrame(): QuadParticle only supports SpriteFrames with no offsets"); f.K === f.na && (this.fa && c.sb().Wh == this.fa.Wh || this.ab(c.sb())) }, V2: function(c, d) { var e = this.fa; f.K === f.na ? e && c.Wh == e.Wh || e == c || (this.fa = c, this.Yk()) : e && c == e || e == c || (this.fa = c, this.Yk()); this.bG = d; this.vea(d) }, ma: function(c) { this.Ba && !this.Aa && (f.K === f.fb ? this.Rq(c) : this.fn(c), f.bl++) }, Rq: function(c) { c = c || f.s; c.save(); c.globalCompositeOperation = this.PCa() ? "lighter" : "source-over"; for (var d = 0; d < this.Rg; d++) { var e = this.Ct[d], g = 0 | 0.5 * e.size; if (this.WO == f.A.p7) { if (g = this.fa.md, g.width && g.height) { c.save(); c.globalAlpha = e.color.a / 255; c.translate(0 | e.nH.x, -(0 | e.nH.y)); var h = 4 * Math.floor(e.size / 4), k = this.bG.width, m = this.bG.height; c.scale(Math.max(1 / k * h, 1E-6), Math.max(1 / m * h, 1E-6)); e.rotation && c.rotate(f.sg(e.rotation)); c.translate(-(0 | k / 2), -(0 | m / 2)); e.Iea && (h = f.nb.vP(g)) && (h.kJ || (h.kJ = f.fd("canvas"), h.kJ.width = g.width, h.kJ.height = g.height), f.HB(g, h, e.color, this.bG, h.kJ), g = h.kJ); c.drawImage(g, 0, 0); c.restore() } } else c.save(), c.globalAlpha = e.color.a / 255, c.translate(0 | e.nH.x, -(0 | e.nH.y)), this.GR == f.A.Rna ? (e.rotation && c.rotate(f.sg(e.rotation)), f.If.jya(c, g, e.color)) : f.If.dya(c, g, e.color), c.restore() } c.restore() }, fn: function(c) { this.fa && (c = c || f.s, this.sd.Ff(), this.sd.zj(), f.Ai(this.fa), f.iea(this.B.src, this.B.ha), f.wf(f.tv), c.bindBuffer(c.ARRAY_BUFFER, this.Se[0]), c.vertexAttribPointer(f.Oc, 3, c.FLOAT, !1, 24, 0), c.vertexAttribPointer(f.Mi, 4, c.UNSIGNED_BYTE, !0, 24, 12), c.vertexAttribPointer(f.$g, 2, c.FLOAT, !1, 24, 16), c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]), c.drawElements(c.TRIANGLES, 6 * this.Vj, c.UNSIGNED_SHORT, 0)) }, h_a: function() { f.TT || this.Dw() }, UOa: function() {}, Dw: function() { if (f.K != f.fb) { var c = f.s; this.Se[0] = c.createBuffer(); c.bindBuffer(c.ARRAY_BUFFER, this.Se[0]); c.bufferData(c.ARRAY_BUFFER, this.kg, c.DYNAMIC_DRAW); this.Se[1] = c.createBuffer(); c.bindBuffer(c.ELEMENT_ARRAY_BUFFER, this.Se[1]); c.bufferData(c.ELEMENT_ARRAY_BUFFER, this.Tb, c.STATIC_DRAW) } }, D8: function() { if (f.K === f.fb) return !0; if (this.Aa) return f.log("cc.ParticleSystem._allocMemory(): Memory should not be allocated when not using batchNode"), !1; var c = f.Yc.BYTES_PER_ELEMENT, d = this.Jc, e = this.of; e.length = 0; this.Tb = new Uint16Array(6 * d); for (var g = new ArrayBuffer(c * d), h = 0; h < d; h++) e[h] = new f.Yc(null, null, null, null, g, h * c); if (!e || !this.Tb) return f.log("cocos2d: Particle system: not enough memory"), !1; this.kg = g; return !0 } }); q = f.A.prototype; f.d(q, "opacityModifyRGB", q.vg, q.ee); f.d(q, "batchNode", q.LB, q.is); f.d(q, "active", q.Bi); f.d(q, "sourcePos", q.oBa, q.NHa); f.d(q, "posVar", q.i0, q.vl); f.d(q, "gravity", q.uH, q.vc); f.d(q, "speed", q.tP, q.Hi); f.d(q, "speedVar", q.Wda, q.pk); f.d(q, "tangentialAccel", q.$da, q.bq); f.d(q, "tangentialAccelVar", q.aea, q.cq); f.d(q, "radialAccel", q.Pda, q.nk); f.d(q, "radialAccelVar", q.Qda, q.ok); f.d(q, "rotationIsDir", q.cBa, q.HHa); f.d(q, "startRadius", q.Yda, q.R2); f.d(q, "startRadiusVar", q.Zda, q.S2); f.d(q, "endRadius", q.zda, q.w2); f.d(q, "endRadiusVar", q.Ada, q.x2); f.d(q, "rotatePerS", q.Rda, q.K2); f.d(q, "rotatePerSVar", q.Sda, q.L2); f.d(q, "startColor", q.uP, q.Tg); f.d(q, "startColorVar", q.Xda, q.qk); f.d(q, "endColor", q.lP, q.Sg); f.d(q, "endColorVar", q.yda, q.mk); f.d(q, "totalParticles", q.ABa, q.Xha); f.d(q, "texture", q.sb, q.ab); f.A.create = function(c) { return new f.A(c) }; f.A.jT = function(c, d, e, g, h, k, m, n) { this.gravity = c ? c : r(0, 0); this.speed = d || 0; this.speedVar = e || 0; this.tangentialAccel = g || 0; this.tangentialAccelVar = h || 0; this.radialAccel = k || 0; this.radialAccelVar = m || 0; this.rotationIsDir = n || !1 }; f.A.kT = function(c, d, e, g, h, k) { this.startRadius = c || 0; this.startRadiusVar = d || 0; this.endRadius = e || 0; this.endRadiusVar = g || 0; this.QQ = h || 0; this.RQ = k || 0 }; f.A.Nna = 0; f.A.p7 = 1; f.A.Rna = 0; f.A.mja = 1; f.A.uo = -1; f.A.Ml = -1; f.A.Qna = -1; f.A.wc = 0; f.A.Bj = 1; f.A.rE = 0; f.A.fU = 1; f.A.UMa = 2; f.O6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 300 : 150) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.nk(0), this.ok(0), this.Hi(60), this.pk(20), this.ml(90), this.nl(10), this.o(f.Q.Y.width / 2, 60), this.vl(r(40, 20)), this.rl(3), this.sl(0.25), this.wl(54), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(194, 64, 31, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), this.jo(!0), !0) : !1 } }); f.O6.create = function() { var c = new f.O6; return c.j() ? c : null }; f.P6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 1500 : 150) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, -90)), this.nk(0), this.ok(0), this.Hi(180), this.pk(50), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.ml(90), this.nl(20), this.rl(3.5), this.sl(1), this.ol(this.Jc / this.qj), this.Tg(f.color(128, 128, 128, 255)), this.qk(f.color(128, 128, 128, 255)), this.Sg(f.color(26, 26, 26, 51)), this.mk(f.color(26, 26, 26, 51)), this.wl(8), this.xl(2), this.ql(f.A.Ml), this.jo(!1), !0) : !1 } }); f.P6.create = function() { var c = new f.P6; return c.j() ? c : null }; f.X6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 350 : 150) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.jo(!0), this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.nk(0), this.ok(0), this.Hi(20), this.pk(5), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(1), this.sl(0.5), this.wl(30), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(194, 64, 31, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), !0) : !1 } }); f.X6.create = function() { var c = new f.X6; return c.j() ? c : null }; f.R6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 200 : 100) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(60), this.pk(10), this.nk(-80), this.ok(0), this.bq(80), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(4), this.sl(1), this.wl(37), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(31, 64, 194, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), this.jo(!0), !0) : !1 } }); f.R6.create = function() { var c = new f.R6; return c.j() ? c : null }; f.Q6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 250 : 100) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(80), this.pk(10), this.nk(-60), this.ok(0), this.bq(15), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(4), this.sl(1), this.wl(30), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(128, 128, 128, 255)), this.qk(f.color(128, 128, 128, 128)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), this.jo(!0), !0) : !1 } }); f.Q6.create = function() { var c = new f.Q6; return c.j() ? c : null }; f.S6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 150 : 100) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(-200, 200)), this.Hi(15), this.pk(5), this.nk(0), this.ok(0), this.bq(0), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(2), this.sl(1), this.wl(60), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(51, 102, 179)), this.qk(f.color(0, 0, 51, 26)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), this.jo(!0), !0) : !1 } }); f.S6.create = function() { var c = new f.S6; return c.j() ? c : null }; f.W6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 500 : 100) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(150), this.pk(0), this.nk(-380), this.ok(0), this.bq(45), this.cq(0), this.ml(90), this.nl(0), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(12), this.sl(0), this.wl(20), this.xl(0), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(128, 128, 128, 255)), this.qk(f.color(128, 128, 128, 0)), this.Sg(f.color(128, 128, 128, 255)), this.mk(f.color(128, 128, 128, 0)), this.jo(!1), !0) : !1 } }); f.W6.create = function() { var c = new f.W6; return c.j() ? c : null }; f.N6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 700 : 300) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(0.1), this.pl(f.A.wc), this.vc(r(0, 0)), this.Hi(70), this.pk(40), this.nk(0), this.ok(0), this.bq(0), this.cq(0), this.ml(90), this.nl(360), c = f.Q.Y, this.o(c.width / 2, c.height / 2), this.vl(r(0, 0)), this.rl(5), this.sl(2), this.wl(15), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.pu()), this.Tg(f.color(179, 26, 51, 255)), this.qk(f.color(128, 128, 128, 0)), this.Sg(f.color(128, 128, 128, 0)), this.mk(f.color(128, 128, 128, 0)), this.jo(!1), !0) : !1 } }); f.N6.create = function() { var c = new f.N6; return c.j() ? c : null }; f.U6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 200 : 100) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, 0)), this.nk(0), this.ok(0), this.Hi(25), this.pk(10), this.ml(90), this.nl(5), this.o(f.Q.Y.width / 2, 0), this.vl(r(20, 0)), this.rl(4), this.sl(1), this.wl(60), this.xl(10), this.ql(f.A.Ml), this.ol(this.Jc / this.qj), this.Tg(f.color(204, 204, 204, 255)), this.qk(f.color(5, 5, 5, 0)), this.Sg(f.color(0, 0, 0, 255)), this.mk(f.color(0, 0, 0, 0)), this.jo(!1), !0) : !1 } }); f.U6.create = function() { var c = new f.U6; return c.j() ? c : null }; f.V6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 700 : 250) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(0, -1)), this.Hi(5), this.pk(1), this.nk(0), this.ok(1), this.bq(0), this.cq(1), c = f.Q.Y, this.o(c.width / 2, c.height + 10), this.vl(r(c.width / 2, 0)), this.ml(-90), this.nl(5), this.rl(45), this.sl(15), this.wl(10), this.xl(5), this.ql(f.A.Ml), this.ol(10), this.Tg(f.color(255, 255, 255, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(255, 255, 255, 0)), this.mk(f.color(0, 0, 0, 0)), this.jo(!1), !0) : !1 } }); f.V6.create = function() { var c = new f.V6; return c.j() ? c : null }; f.T6 = f.A.extend({ j: function() { return this.fc(f.K === f.na ? 1E3 : 300) }, fc: function(c) { return f.A.prototype.fc.call(this, c) ? (this.Ei(f.A.uo), this.pl(f.A.wc), this.vc(r(10, -10)), this.nk(0), this.ok(1), this.bq(0), this.cq(1), this.Hi(130), this.pk(30), this.ml(-90), this.nl(5), c = f.Q.Y, this.o(c.width / 2, c.height), this.vl(r(c.width / 2, 0)), this.rl(4.5), this.sl(0), this.wl(4), this.xl(2), this.ql(f.A.Ml), this.ol(20), this.Tg(f.color(179, 204, 255, 255)), this.qk(f.color(0, 0, 0, 0)), this.Sg(f.color(179, 204, 255, 128)), this.mk(f.color(0, 0, 0, 0)), this.jo(!1), !0) : !1 } }); f.T6.create = function() { var c = new f.T6; return c.j() ? c : null }; f.kMa = 500; f.pT = f.v.extend({ textureAtlas: null, $Ma: !0, B: null, ta: "ParticleBatchNode", ctor: function(c, d) { f.v.prototype.ctor.call(this); this.B = { src: f.Mc, ha: f.Lc }; "string" == typeof c ? this.j(c, d) : c instanceof f.Pa && this.va(c, d) }, va: function(c, d) { this.textureAtlas = new f.wq; this.textureAtlas.va(c, d); this.i.length = 0; f.K === f.na && (this.shaderProgram = f.xg.be(f.zo)); return !0 }, Ge: function(c, d) { var e = f.nb.vd(c); return this.va(e, d) }, j: function(c, d) { var e = f.ZMa.ek().vd(c); return this.va(e, d) }, n: function(c, d, e) { if (!c) throw "cc.ParticleBatchNode.addChild() : child should be non-null"; if (!(c instanceof f.A)) throw "cc.ParticleBatchNode.addChild() : only supports cc.ParticleSystem as children"; d = null == d ? c.zIndex : d; e = null == e ? c.tag : e; if (c.sb() != this.textureAtlas.texture) throw "cc.ParticleSystem.addChild() : the child is not using the same texture id"; var g = c.ck(); if (0 === this.i.length) this.ce(g); else if (g.src != this.B.src || g.ha != this.B.ha) { f.log("cc.ParticleSystem.addChild() : Can't add a ParticleSystem that uses a different blending function"); return } d = this.dqa(c, d, e); e = 0; 0 != d ? (d = this.i[d - 1], e = d.KB() + d.Jc) : e = 0; this.N0(c, e); c.is(this) }, N0: function(c, d) { var e = c.Jc, g = this.textureAtlas, h = g.totalQuads; c.k2(d); h + e > g.cg && (this.ssa(h + e), g.bda(g.cg - e, e)); c.KB() + e != h && g.pfa(d, d + e); g.rea(e); this.YY() }, removeChild: function(c, d) { if (null != c) { if (!(c instanceof f.A)) throw "cc.ParticleBatchNode.removeChild(): only supports cc.ParticleSystem as children"; if (-1 == this.i.indexOf(c)) f.log("cc.ParticleBatchNode.removeChild(): doesn't contain the sprite. Can't remove it"); else { f.v.prototype.removeChild.call(this, c, d); var e = this.textureAtlas; e.TFa(c.KB(), c.Jc); e.bda(e.totalQuads, c.Jc); c.is(null); this.YY() } } }, BC: function(c, d) { if (!c) throw "cc.ParticleBatchNode.reorderChild(): child should be non-null"; if (!(c instanceof f.A)) throw "cc.ParticleBatchNode.reorderChild(): only supports cc.QuadParticleSystems as children"; if (-1 === this.i.indexOf(c)) f.log("cc.ParticleBatchNode.reorderChild(): Child doesn't belong to batch"); else if (d != c.zIndex) { if (1 < this.i.length) { var e = this.Fra(c, d); if (e.wfa != e.sfa) { this.i.splice(e.wfa, 1); this.i.splice(e.sfa, 0, c); e = c.KB(); this.YY(); for (var g = 0, h = this.i, k = 0; k < h.length; k++) if (h[k] == c) { g = c.KB(); break } this.textureAtlas.pfa(e, c.Jc, g); c.iJa() } } c.Cw(d) } }, NFa: function(c, d) { this.removeChild(this.i[i], d) }, Cf: function(c) { for (var d = this.i, e = 0; e < d.length; e++) d[e].is(null); f.v.prototype.Cf.call(this, c); this.textureAtlas.AC() }, Vxa: function(c) { c = this.textureAtlas.quads[c]; c.aa.k.x = c.aa.k.y = c.W.k.x = c.W.k.y = c.Z.k.x = c.Z.k.y = c.T.k.x = c.T.k.y = 0; this.textureAtlas.Lt(!0) }, ma: function() { f.K !== f.fb && 0 != this.textureAtlas.totalQuads && (f.qC(this), f.iea(this.B.src, this.B.ha), this.textureAtlas.yB()) }, sb: function() { return this.textureAtlas.texture }, ab: function(c) { this.textureAtlas.texture = c; var d = this.B; c && !c.Ep() && d.src == f.Mc && d.ha == f.Lc && (d.src = f.SRC_ALPHA, d.ha = f.ONE_MINUS_SRC_ALPHA) }, ce: function(c, d) { void 0 === d ? (this.B.src = c.src, this.B.ha = c.ha) : (this.B.src = c, this.B.src = d) }, ck: function() { return { src: this.B.src, ha: this.B.ha } }, I: function(c) { f.K !== f.fb && this.Na && (f.Rr(), this.grid && this.grid.Bi() && (this.grid.dx(), this.mJ()), this.transform(c), this.ma(c), this.grid && this.grid.Bi() && this.grid.ax(this), f.Qr()) }, YY: function() { for (var c = 0, d = this.i, e = 0; e < d.length; e++) { var g = d[e]; g.k2(c); c += g.Jc } }, ssa: function(c) { f.log("cocos2d: cc.ParticleBatchNode: resizing TextureAtlas capacity from [" + this.textureAtlas.cg + "] to [" + c + "]."); this.textureAtlas.NQ(c) || f.log("cc.ParticleBatchNode._increaseAtlasCapacityTo() : WARNING: Not enough memory to resize the atlas") }, gua: function(c) { for (var d = this.i, e = d.length, g = 0; g < e; g++) if (d[g].zIndex > c) return g; return e }, Fra: function(c, d) { for (var e = !1, g = !1, h = 0, k = 0, m = 0, n = this.i, p = n.length, s = 0; s < p; s++) { var u = n[s]; if (u.zIndex > d && !g && (h = s, g = !0, e && g)) break; if (c == u && (k = s, e = !0, g || (m = -1), e && g)) break } g || (h = p); return { sfa: h + m, wfa: k } }, dqa: function(c, d, e) { if (!c) throw "cc.ParticleBatchNode._addChildHelper(): child should be non-null"; if (c.parent) return f.log("cc.ParticleBatchNode._addChildHelper(): child already added. It can't be added again"), null; this.i || (this.i = []); var g = this.gua(d); this.i.splice(g, 0, c); c.tag = e; c.Cw(d); c.parent = this; this.dd && (c.ba(), c.sj()); return g }, Yk: function() { this.textureAtlas.texture.Ep() || (this.B.src = f.SRC_ALPHA, this.B.ha = f.ONE_MINUS_SRC_ALPHA) }, DH: function() { return this.textureAtlas }, U2: function(c) { this.textureAtlas = c } }); q = f.pT.prototype; f.d(q, "texture", q.sb, q.ab); f.pT.create = function(c, d) { return new f.pT(c, d) }; f.tLa = function(c, d, e) { this.Qn = c || x(0, 0, 0, 0); this.end = d || x(0, 0, 0, 0); this.duration = e || 0 }; f.sLa = f.N.extend({ ctor: function() { f.Hp.Tba(this) }, KQ: function() { f.Hp.KQ(this) }, XG: function() { return f.Hp.eca(this) }, UO: function() { return f.Hp.Mca(this) }, YZ: function() { return !1 }, Sxa: function() {}, ZZ: function() { return !1 }, Txa: function() {}, UH: function() {}, TO: function() {}, $_: function() { return "" }, Z0: function() {}, Pea: function() {}, Qea: function() {}, Oea: function() {} }); f.WS = f.N.extend({ Ae: null, Zb: null, Oq: "", Zv: null, ctor: function() { this.Zb = new f.WS.Wla; this.Zv = r(0, 0) }, j: function() { if (!f.Ed.Or) { this.Ae = f.mc("#imeDispatcherInput"); this.Ae || (this.Ae = f.bD("input"), this.Ae.setAttribute("type", "text"), this.Ae.setAttribute("id", "imeDispatcherInput"), this.Ae.resize(0, 0), this.Ae.nJ(0, 0), this.Ae.style.opacity = "0", this.Ae.style.fontSize = "1px", this.Ae.setAttribute("tabindex", 2), this.Ae.style.position = "absolute", this.Ae.style.top = 0, this.Ae.style.left = 0, document.body.appendChild(this.Ae)); var c = this; f.ub(this.Ae, "input", function() { c.MX(c.Ae.value) }, !1); f.ub(this.Ae, "keydown", function(d) { d.keyCode === f.Jy.wIa ? (d.stopPropagation(), d.preventDefault()) : d.keyCode == f.Jy.N_ && (c.kH("\n", 1), d.stopPropagation(), d.preventDefault()) }, !1); /msie/i.test(navigator.userAgent) && f.ub(this.Ae, "keyup", function(d) { d.keyCode == f.Jy.fca && c.MX(c.Ae.value) }, !1); f.ub(window, "mousedown", function(d) { var e = d.pageY || 0; c.Zv.x = d.pageX || 0; c.Zv.y = e }, !1) } }, MX: function(c) { var d, e; d = this.Oq.length < c.length ? this.Oq.length : c.length; for (e = 0; e < d && c[e] === this.Oq[e]; e++); var g = this.Oq.length - e, h = c.length - e; for (d = 0; d < g; d++) this.Oca(); for (d = 0; d < h; d++) this.kH(c[e + d], 1); this.Oq = c }, kH: function(c, d) { !this.Zb || !c || 0 >= d || this.Zb.ki && this.Zb.ki.UH(c, d) }, Oca: function() { this.Zb && this.Zb.ki && this.Zb.ki.TO() }, $_: function() { if (this.Zb && this.Zb.ki) { var c = this.Zb.ki.$_(); return c ? c : "" } return "" }, YQa: function(c) { if (this.Zb) for (var d = 0; d < this.Zb.Ik.length; d++) { var e = this.Zb.Ik[d]; e && e.Z0(c) } }, WQa: function() { if (this.Zb) for (var c = 0; c < this.Zb.Ik.length; c++); }, XQa: function() { if (this.Zb) for (var c = 0; c < this.Zb.Ik.length; c++); }, VQa: function() { if (this.Zb) for (var c = 0; c < this.Zb.Ik.length; c++); }, Tba: function(c) { c && this.Zb && (-1 < this.Zb.Ik.indexOf(c) || this.Zb.Ik.splice(0, 0, c)) }, eca: function(c) { if (!this.Zb || !c || -1 == this.Zb.Ik.indexOf(c)) return !1; if (this.Zb.ki) { if (!this.Zb.ki.ZZ() || !c.YZ()) return !1; this.Zb.ki = null; this.b$(c); return !0 } if (!c.YZ()) return !1; this.b$(c); return !0 }, b$: function(c) { f.Ed.Or ? (this.Zb.ki = c, this.Oq = c.string || "", c = prompt("please enter your word:", this.Oq), null != c && this.MX(c), this.kH("\n", 1)) : (this.Zb.ki = c, this.Oq = c.string || "", this.Ae.focus(), this.Ae.value = this.Oq, this.cra()) }, cra: function() { /msie/i.test(navigator.userAgent) ? (this.Ae.style.left = this.Zv.x + "px", this.Ae.style.top = this.Zv.y + "px") : this.Ae.nJ(this.Zv.x, this.Zv.y) }, Mca: function(c) { if (!this.Zb || !c || this.Zb.ki != c || !c.ZZ()) return !1; this.Zb.ki = null; f.Sb.focus(); return !0 }, KQ: function(c) { this.Zb && c && -1 != this.Zb.Ik.indexOf(c) && (this.Zb.ki && c == this.Zb.ki && (this.Zb.ki = null), f.Ld(this.Zb.Ik, c)) }, u0a: function(c) { 32 > c ? c == f.Jy.fca ? this.Oca() : c == f.Jy.N_ && this.kH("\n", 1) : 255 > c && this.kH(String.fromCharCode(c), 1) } }); f.WS.Wla = f.N.extend({ ki: null, Ik: null, ctor: function() { this.Ik = [] }, MRa: function(c) { for (var d = 0; d < this.Ik.length; d++) if (this.Ik[d] == c) return d; return null } }); f.Hp = new f.WS; document.body ? f.Hp.j() : f.ub(window, "load", function() { f.Hp.j() }, !1); f.YMa = f.N.extend({ yfa: function() { return !1 }, Afa: function() { return !1 }, x1: function() { return !1 }, zfa: function() { return !1 }, $Da: function() { return !1 } }); f.Gj = f.ia.extend({ delegate: null, NO: null, wOa: null, Si: "", rw: "", pL: 0, ta: "TextFieldTTF", ctor: function(c, d, e, g, h) { this.NO = f.color(127, 127, 127); f.Hp.Tba(this); f.ia.prototype.ctor.call(this); void 0 !== h ? (this.yCa("", d, e, g, h), c && this.Gi(c)) : void 0 === g && void 0 !== e && (this.xf("", d, e), c && this.Gi(c)) }, NB: function() { return this.delegate }, $p: function(c) { this.delegate = c }, MB: function() { return this.pL }, YSa: function() { return this.NO }, L2a: function(c) { this.NO = c }, yCa: function(c, d, e, g, h) { switch (arguments.length) { case 5: return c && this.Gi(c), this.xf(this.rw, g, h, d, e); case 3: return c && this.Gi(c), this.xf(this.rw, arguments[1], arguments[2]); default: throw "Argument must be non-nil "; } }, wa: function(c) { this.Si = (c = String(c)) || ""; this.Si.length ? f.ia.prototype.wa.call(this, this.Si) : f.ia.prototype.wa.call(this, this.rw); this.pL = this.Si.length }, qc: function() { return this.Si }, Gi: function(c) { this.rw = c || ""; this.Si.length || f.ia.prototype.wa.call(this, this.rw) }, RB: function() { return this.rw }, ma: function(c) { c = c || f.s; if (this.Si && 0 < this.Si.length) f.ia.prototype.ma.call(this, c); else { var d = this.color; this.color = this.NO; f.K === f.fb && this.qO(); f.ia.prototype.ma.call(this, c); this.color = d } }, I: function(c) { this._super(c) }, XG: function() { return f.Hp.eca(this) }, UO: function() { return f.Hp.Mca(this) }, YZ: function() { return this.delegate ? !this.delegate.yfa(this) : !0 }, Sxa: function() {}, ZZ: function() { return this.delegate ? !this.delegate.Afa(this) : !0 }, Txa: function() {}, TO: function() { var c = this.Si.length; 0 == c || this.delegate && this.delegate.zfa(this, this.Si[c - 1], 1) || (1 >= c ? (this.Si = "", this.pL = 0, f.ia.prototype.wa.call(this, this.rw)) : this.string = this.Si.substring(0, c - 1)) }, KQ: function() { f.Hp.KQ(this) }, UH: function(c) { var d = c; c = d.indexOf("\n"); - 1 < c && (d = d.substring(0, c)); if (0 < d.length) { if (this.delegate && this.delegate.x1(this, d, d.length)) return; d = this.Si + d; this.pL = d.length; this.string = d } - 1 != c && (this.delegate && this.delegate.x1(this, "\n", 1) || this.UO()) }, $_: function() { return this.Si }, Z0: function() {}, Pea: function() {}, Qea: function() {}, Oea: function() {} }); q = f.Gj.prototype; f.d(q, "charCount", q.MB); f.d(q, "placeHolder", q.RB, q.Gi); f.Gj.create = function(c, d, e, g, h) { return new f.Gj(c, d, e, g, h) }; f.mM = f.Vla; f.AF = "Arial"; f.t$ = !1; f.hf = f.ja.extend({ $c: !1, ad: null, bg: null, Rj: !1, ta: "MenuItem", ctor: function(c, d) { var e = f.ja.prototype; e.ctor.call(this); this.bg = this.ad = null; this.$c = this.Rj = !1; e.S.call(this, 0.5, 0.5); this.ad = d || null; if (this.bg = c || null) this.$c = !0 }, WP: function() { return this.Rj }, ee: function() {}, vg: function() { return !1 }, ZI: function(c, d) { this.ad = d; this.bg = c }, isEnabled: function() { return this.$c }, Lb: function(c) { this.$c = c }, SH: function(c, d) { this.anchorY = this.anchorX = 0.5; this.ad = d; this.bg = c; this.$c = !0; this.Rj = !1; return !0 }, rect: function() { var c = this.oa, d = this.m, e = this.Eb; return x(c.x - d.width * e.x, c.y - d.height * e.y, d.width, d.height) }, selected: function() { this.Rj = !0 }, no: function() { this.Rj = !1 }, Kga: function(c, d) { this.ad = d; this.bg = c }, iB: function() { if (this.$c) { var c = this.ad, d = this.bg; if (d) if (c && "string" == typeof d) c[d](this); else c && "function" == typeof d ? d.call(c, this) : d(this) } } }); q = f.hf.prototype; f.d(q, "enabled", q.isEnabled, q.Lb); f.hf.create = function(c, d) { return new f.hf(c, d) }; f.kv = f.hf.extend({ Fz: null, gg: null, vta: 0, WE: null, ctor: function(c, d, e) { f.hf.prototype.ctor.call(this, d, e); this.gg = this.Fz = null; this.vta = 0; this.WE = null; c && (this.WF = 1, this.WE = f.color.WHITE, this.Fz = f.color(126, 126, 126), this.lR(c), this.cascadeOpacity = this.cascadeColor = !0) }, Qza: function() { return this.Fz }, LGa: function(c) { this.Fz = c }, nAa: function() { return this.gg }, lR: function(c) { c && (this.n(c), c.anchorX = 0, c.anchorY = 0, this.width = c.width, this.height = c.height); this.gg && this.removeChild(this.gg, !0); this.gg = c }, Lb: function(c) { if (this.$c != c) { var d = this.gg; c ? d.color = this.WE : (this.WE = d.color, d.color = this.Fz) } f.hf.prototype.Lb.call(this, c) }, J: function(c) { this.gg.opacity = c }, vb: function() { return this.gg.opacity }, F: function(c) { this.gg.color = c }, $a: function() { return this.gg.color }, Cea: function(c, d, e) { this.SH(d, e); this.WF = 1; this.WE = f.color.WHITE; this.Fz = f.color(126, 126, 126); this.lR(c); return this.cascadeOpacity = this.cascadeColor = !0 }, wa: function(c) { this.gg.string = c; this.width = this.gg.width; this.height = this.gg.height }, qc: function() { return this.gg.string }, iB: function() { this.$c && (this.Pm(), this.scale = this.WF, f.hf.prototype.iB.call(this)) }, selected: function() { if (this.$c) { f.hf.prototype.selected.call(this); var c = this.eP(f.IK); c ? this.hJ(c) : this.WF = this.scale; c = f.Db.create(0.1, 1.2 * this.WF); c.Nm(f.IK); this.V(c) } }, no: function() { if (this.$c) { f.hf.prototype.no.call(this); this.sIa(f.IK); var c = f.Db.create(0.1, this.WF); c.Nm(f.IK); this.V(c) } } }); q = f.kv.prototype; f.d(q, "string", q.qc, q.wa); f.d(q, "disabledColor", q.Qza, q.LGa); f.d(q, "label", q.nAa, q.lR); f.kv.create = function(c, d, e) { return new f.kv(c, d, e) }; f.e6 = f.kv.extend({ ctor: function(c, d, e, g, h, k, m) { var n; c && 0 < c.length && (n = f.an.create(c, d, e, g, h)); f.kv.prototype.ctor.call(this, n, k, m) }, xf: function(c, d, e, g, h, k, m) { if (!c || 0 == c.length) throw "cc.MenuItemAtlasFont.initWithString(): value should be non-null and its length should be greater than 0"; var n = new f.an; n.xf(c, d, e, g, h); this.Cea(n, k, m); return !0 } }); f.e6.create = function(c, d, e, g, h, k, m) { return new f.e6(c, d, e, g, h, k, m) }; f.jv = f.kv.extend({ Sc: null, Rc: null, ctor: function(c, d, e) { var g; c && 0 < c.length ? (this.Rc = f.AF, this.Sc = f.mM, g = f.ia.create(c, this.Rc, this.Sc)) : (this.Sc = 0, this.Rc = ""); f.kv.prototype.ctor.call(this, g, d, e) }, xf: function(c, d, e) { if (!c || 0 == c.length) throw "Value should be non-null and its length should be greater than 0"; this.Rc = f.AF; this.Sc = f.mM; c = f.ia.create(c, this.Rc, this.Sc); this.Cea(c, d, e); return !0 }, Qd: function(c) { this.Sc = c; this.Aaa() }, Un: function() { return this.Sc }, de: function(c) { this.Rc = c; this.Aaa() }, Cp: function() { return this.Rc }, Aaa: function() { var c = f.ia.create(this.gg.string, this.Rc, this.Sc); this.lR(c) } }); f.jv.Qd = function(c) { f.mM = c }; f.jv.fontSize = function() { return f.mM }; f.jv.de = function(c) { f.t$ && (f.AF = ""); f.AF = c; f.t$ = !0 }; q = f.jv.prototype; f.d(q, "fontSize", q.Un, q.Qd); f.d(q, "fontName", q.Cp, q.de); f.jv.fontName = function() { return f.AF }; f.jv.create = function(c, d, e) { return new f.jv(c, d, e) }; f.Oy = f.hf.extend({ Ig: null, dj: null, Qi: null, ctor: function(c, d, e, g, h) { f.hf.prototype.ctor.call(this); this.Qi = this.dj = this.Ig = null; if (void 0 !== d) { var k, m, n; void 0 !== h ? (k = e, n = g, m = h) : void 0 !== g && "function" === typeof g ? (k = e, n = g) : void 0 !== g && "function" === typeof e ? (m = g, n = e, k = d) : void 0 === e && (k = d); this.Dea(c, d, k, n, m) } }, IAa: function() { return this.Ig }, A2: function(c) { this.Ig != c && (c && (this.n(c, 0, f.uma), c.anchorX = 0, c.anchorY = 0), this.Ig && this.removeChild(this.Ig, !0), this.Ig = c, this.width = this.Ig.width, this.height = this.Ig.height, this.lO(), c.RC && !c.Ba && c.oe(function(c) { this.width = c.width; this.height = c.height }, this)) }, hBa: function() { return this.dj }, O2: function(c) { this.dj != c && (c && (this.n(c, 0, f.yna), c.anchorX = 0, c.anchorY = 0), this.dj && this.removeChild(this.dj, !0), this.dj = c, this.lO()) }, Rza: function() { return this.Qi }, v2: function(c) { this.Qi != c && (c && (this.n(c, 0, f.Zka), c.anchorX = 0, c.anchorY = 0), this.Qi && this.removeChild(this.Qi, !0), this.Qi = c, this.lO()) }, Dea: function(c, d, e, g, h) { this.SH(g, h); this.A2(c); this.O2(d); this.v2(e); if (c = this.Ig) this.width = c.width, this.height = c.height, c.RC && !c.Ba && c.oe(function(c) { this.width = c.width; this.height = c.height; this.cascadeOpacity = this.cascadeColor = !0 }, this); return this.cascadeOpacity = this.cascadeColor = !0 }, F: function(c) { this.Ig.color = c; this.dj && (this.dj.color = c); this.Qi && (this.Qi.color = c) }, $a: function() { return this.Ig.color }, J: function(c) { this.Ig.opacity = c; this.dj && (this.dj.opacity = c); this.Qi && (this.Qi.opacity = c) }, vb: function() { return this.Ig.opacity }, selected: function() { f.hf.prototype.selected.call(this); this.Ig && (this.Qi && (this.Qi.visible = !1), this.dj ? (this.Ig.visible = !1, this.dj.visible = !0) : this.Ig.visible = !0) }, no: function() { f.hf.prototype.no.call(this); this.Ig && (this.Ig.visible = !0, this.dj && (this.dj.visible = !1), this.Qi && (this.Qi.visible = !1)) }, Lb: function(c) { this.$c != c && (f.hf.prototype.Lb.call(this, c), this.lO()) }, lO: function() { var c = this.Ig, d = this.dj, e = this.Qi; this.$c ? (c && (c.visible = !0), d && (d.visible = !1), e && (e.visible = !1)) : e ? (c && (c.visible = !1), d && (d.visible = !1), e && (e.visible = !0)) : (c && (c.visible = !0), d && (d.visible = !1)) } }); q = f.Oy.prototype; f.d(q, "normalImage", q.IAa, q.A2); f.d(q, "selectedImage", q.hBa, q.O2); f.d(q, "disabledImage", q.Rza, q.v2); f.Oy.create = function(c, d, e, g, h) { return new f.Oy(c, d, e, g, h || void 0) }; f.Il = f.Oy.extend({ ctor: function(c, d, e, g, h) { var k = null, m = null, n = null, p = null, s = null; void 0 === c ? f.Oy.prototype.ctor.call(this) : (k = f.q.create(c), d && (m = f.q.create(d)), void 0 === g ? p = e : void 0 === h ? (p = e, s = g) : h && (n = f.q.create(e), p = g, s = h), f.Oy.prototype.ctor.call(this, k, m, n, p, s)) }, mHa: function(c) { this.A2(f.q.create(c)) }, IHa: function(c) { this.O2(f.q.create(c)) }, MGa: function(c) { this.v2(f.q.create(c)) }, cXa: function(c, d, e, g, h) { var k = null, m = null, n = null; c && (k = f.q.create(c)); d && (m = f.q.create(d)); e && (n = f.q.create(e)); return this.Dea(k, m, n, g, h) } }); f.Il.create = function(c, d, e, g, h) { return new f.Il(c, d, e, g, h) }; f.hT = f.hf.extend({ yg: null, im: 0, Ib: null, Ea: null, ctor: function() { var c = arguments.length, d, e; "function" === typeof arguments[c - 2] ? (d = arguments[c - 2], e = arguments[c - 1], c -= 2) : "function" === typeof arguments[c - 1] && (d = arguments[c - 1], c -= 1); f.hf.prototype.ctor.call(this, d, e); this.im = 0; this.yg = []; this.Ib = 0; this.Ea = f.color.WHITE; if (0 < c) { d = this.yg; for (e = d.length = 0; e < c; e++) arguments[e] && d.push(arguments[e]); this.im = f.oU; this.VI(0); this.Gu(!0); this.Hu(!0) } }, vb: function() { return this.Ib }, J: function(c) { this.Ib = c; if (this.yg && 0 < this.yg.length) for (var d = 0; d < this.yg.length; d++) this.yg[d].opacity = c; this.Ea.a = c }, $a: function() { var c = this.Ea; return f.color(c.r, c.g, c.b, c.a) }, F: function(c) { var d = this.Ea; d.r = c.r; d.g = c.g; d.b = c.b; if (this.yg && 0 < this.yg.length) for (d = 0; d < this.yg.length; d++) this.yg[d].F(c); void 0 === c.a || c.Yw || this.J(c.a) }, iBa: function() { return this.im }, VI: function(c) { if (c != this.im) { this.im = c; (c = this.Za(f.L4)) && c.Yp(!1); c = this.yg[this.im]; this.n(c, 0, f.L4); var d = c.width, e = c.height; this.width = d; this.height = e; c.o(d / 2, e / 2) } }, aWa: function() { return this.yg }, o4a: function(c) { this.yg = c }, NP: function(c) { var d = c.length; "function" === typeof c[c.length - 2] ? (this.SH(c[c.length - 2], c[c.length - 1]), d -= 2) : "function" === typeof c[c.length - 1] ? (this.SH(c[c.length - 1], null), d -= 1) : this.SH(null, null); for (var e = this.yg, g = e.length = 0; g < d; g++) c[g] && e.push(c[g]); this.im = f.oU; this.VI(0); return this.cascadeOpacity = this.cascadeColor = !0 }, CPa: function(c) { this.yg.push(c) }, iB: function() { this.$c && this.VI((this.im + 1) % this.yg.length); f.hf.prototype.iB.call(this) }, selected: function() { f.hf.prototype.selected.call(this); this.yg[this.im].selected() }, no: function() { f.hf.prototype.no.call(this); this.yg[this.im].no() }, Lb: function(c) { if (this.$c != c) { f.hf.prototype.Lb.call(this, c); var d = this.yg; if (d && 0 < d.length) for (var e = 0; e < d.length; e++) d[e].enabled = c } }, k2a: function() { return this.yg[this.im] }, ba: function() { f.v.prototype.ba.call(this); this.VI(this.im) } }); q = f.hT.prototype; f.d(q, "selectedIndex", q.iBa, q.VI); f.hT.create = function() { 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript"); var c = new f.hT; c.NP(Array.prototype.slice.apply(arguments)); return c }; f.aE = 0; f.$D = 1; f.RLa = -128; f.OJ = 5; f.ws = f.ci.extend({ enabled: !1, Ea: null, Ib: 0, Lf: null, Ic: -1, vi: null, ta: "Menu", ctor: function(c) { f.ci.prototype.ctor.call(this); this.Ea = f.color.WHITE; this.enabled = !1; this.Ib = 255; this.Lf = null; this.Ic = -1; this.vi = f.Xa.create({ event: f.Xa.zs, QC: !0, rc: this.pta, hd: this.tta, gd: this.rta, ef: this.qta }); 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript"); var d = arguments.length, e; if (0 == d) e = []; else if (1 == d) e = c instanceof Array ? c : [c]; else if (1 < d) { e = []; for (var g = 0; g < d; g++) arguments[g] && e.push(arguments[g]) } this.xea(e) }, ba: function() { var c = this.vi; c.aj || f.Qa.addListener(c, this); f.v.prototype.ba.call(this) }, $a: function() { var c = this.Ea; return f.color(c.r, c.g, c.b, c.a) }, F: function(c) { var d = this.Ea; d.r = c.r; d.g = c.g; d.b = c.b; if ((d = this.i) && 0 < d.length) for (var e = 0; e < d.length; e++) d[e].F(c); void 0 === c.a || c.Yw || this.J(c.a) }, vb: function() { return this.Ib }, J: function(c) { this.Ib = c; var d = this.i; if (d && 0 < d.length) for (var e = 0; e < d.length; e++) d[e].J(c); this.Ea.a = c }, isEnabled: function() { return this.enabled }, Lb: function(c) { this.enabled = c }, NP: function(c) { var d = []; if (c) for (var e = 0; e < c.length; e++) c[e] && d.push(c[e]); return this.xea(d) }, xea: function(c) { if (f.ci.prototype.j.call(this)) { this.enabled = !0; var d = f.gq; this.o(d.width / 2, d.height / 2); this.Ga(d); this.S(0.5, 0.5); this.Gm(!0); if (c) for (d = 0; d < c.length; d++) this.n(c[d], d); this.Lf = null; this.Ic = f.aE; return this.cascadeOpacity = this.cascadeColor = !0 } return !1 }, n: function(c, d, e) { if (!(c instanceof f.hf)) throw "cc.Menu.addChild() : Menu only supports MenuItem objects as children"; f.Me.prototype.n.call(this, c, d, e) }, cwa: function() { this.yZ(f.OJ) }, yZ: function(c) { var d = -c, e = this.i, g, h, k, m; if (e && 0 < e.length) { h = 0; for (g = e.length; h < g; h++) d += e[h].height * e[h].scaleY + c; var n = d / 2; h = 0; for (g = e.length; h < g; h++) m = e[h], k = m.height, d = m.scaleY, m.o(0, n - k * d / 2), n -= k * d + c } }, $va: function() { this.xZ(f.OJ) }, xZ: function(c) { var d = -c, e = this.i, g, h, k, m; if (e && 0 < e.length) { g = 0; for (h = e.length; g < h; g++) d += e[g].width * e[g].scaleX + c; var n = -d / 2; g = 0; for (h = e.length; g < h; g++) m = e[g], d = m.scaleX, k = e[g].width, m.o(n + k * d / 2, 0), n += k * d + c } }, awa: function() { 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript"); for (var c = [], d = 0; d < arguments.length; d++) c.push(arguments[d]); var e = -5, g = 0, h = 0, k = 0, m, n, p, s = this.i; if (s && 0 < s.length) for (d = 0, p = s.length; d < p; d++) g >= c.length || !(m = c[g]) || (n = s[d].height, h = h >= n || isNaN(n) ? h : n, ++k, k >= m && (e += h + 5, h = k = 0, ++g)); var u = f.Q.Y, v = m = h = g = 0, z = 0, e = e / 2; if (s && 0 < s.length) for (d = 0, p = s.length; d < p; d++) { var A = s[d]; 0 == m && (m = c[g], z = v = u.width / (1 + m)); n = A.Gg(); h = h >= n || isNaN(n) ? h : n; A.o(z - u.width / 2, e - n / 2); z += v; ++k; k >= m && (e -= h + 5, h = m = k = 0, ++g) } }, bwa: function() { 0 < arguments.length && null == arguments[arguments.length - 1] && f.log("parameters should not be ending with null in Javascript"); var c = [], d; for (d = 0; d < arguments.length; d++) c.push(arguments[d]); var e = [], g = [], h = -10, k = -5, m = 0, n = 0, p = 0, s, u, v, z, A = this.i; if (A && 0 < A.length) for (d = 0, v = A.length; d < v; d++)(u = A[d], m >= c.length || !(s = c[m])) || (z = u.width, n = n >= z || isNaN(z) ? n : z, k += u.height + 5, ++p, p >= s && (e.push(n), g.push(k), h += n + 10, n = p = 0, k = -5, ++m)); k = f.Q.Y; s = n = m = 0; var h = -h / 2, B = 0; if (A && 0 < A.length) for (d = 0, v = A.length; d < v; d++) u = A[d], 0 == s && (s = c[m], B = g[m]), z = u.lf(), n = n >= z || isNaN(z) ? n : z, u.o(h + e[m] / 2, B - k.height / 2), B -= u.height + 10, ++p, p >= s && (h += n + 5, n = s = p = 0, ++m) }, removeChild: function(c, d) { null != c && (c instanceof f.hf ? (this.Lf == c && (this.Lf = null), f.v.prototype.removeChild.call(this, c, d)) : f.log("cc.Menu.removeChild():Menu only supports MenuItem objects as children")) }, pta: function(c, d) { var e = d.eh; if (e.Ic != f.aE || !e.Na || !e.enabled) return !1; for (var g = e.parent; null != g; g = g.parent) if (!g.Na) return !1; e.Lf = e.N$(c); return e.Lf ? (e.Ic = f.$D, e.Lf.selected(), !0) : !1 }, rta: function(c, d) { var e = d.eh; e.Ic !== f.$D ? f.log("cc.Menu.onTouchEnded(): invalid state") : (e.Lf && (e.Lf.no(), e.Lf.iB()), e.Ic = f.aE) }, qta: function(c, d) { var e = d.eh; e.Ic !== f.$D ? f.log("cc.Menu.onTouchCancelled(): invalid state") : (this.Lf && e.Lf.no(), e.Ic = f.aE) }, tta: function(c, d) { var e = d.eh; if (e.Ic !== f.$D) f.log("cc.Menu.onTouchMoved(): invalid state"); else { var g = e.N$(c); g != e.Lf && (e.Lf && e.Lf.no(), e.Lf = g, e.Lf && e.Lf.selected()) } }, Ra: function() { this.Ic == f.$D && (this.Lf && (this.Lf.no(), this.Lf = null), this.Ic = f.aE); f.v.prototype.Ra.call(this) }, ee: function() {}, vg: function() { return !1 }, N$: function(c) { c = c.cf(); var d = this.i, e; if (d && 0 < d.length) for (var g = 0; g < d.length; g++) if (e = d[g], e.Na && e.isEnabled()) { var h = e.yi(c), k = e.rect(); k.x = 0; k.y = 0; if (f.Bu(k, h)) return e } return null } }); q = f.ws.prototype; f.ws.create = function(c) { var d = arguments.length; 0 < d && null == arguments[d - 1] && f.log("parameters should not be ending with null in Javascript"); return 0 == d ? new f.ws : 1 == d ? new f.ws(c) : new f.ws(Array.prototype.slice.call(arguments, 0)) }; f.MMa = 0; f.IMa = 1; f.LMa = 2; f.JMa = 3; f.KMa = 4; f.HMa = 5; f.u5a = function(c, d, e) { var g = 2; if (g + 1 > d) return !1; c = new f.Cja(c); c.nR(g); e.type = c.ca(); g += 10; if (g + 4 + 1 > d) return !1; c.nR(g); e.width = c.yFa(); e.height = c.xFa(); e.pixelDepth = c.ca(); if (g + 5 + 1 > d) return !1; d = c.ca(); e.ida = 0; d & 32 && (e.ida = 1); return !0 }; f.v5a = function(c, d, e) { var g, h; g = 0 | e.pixelDepth / 2; h = e.height * e.width * g; if (18 + h > d) return !1; e.fk = f.MK(c, 18, 18 + h); if (3 <= g) for (c = 0; c < h; c += g) d = e.fk[c], e.fk[c] = e.fk[c + 2], e.fk[c + 2] = d; return !0 }; f.x5a = function(c) { var d, e; if (8 !== c.pixelDepth) { var g = c.pixelDepth / 8, h = new Uint8Array(c.height * c.width); if (null !== h) { for (e = d = 0; e < c.width * c.height; d += g, e++) h[e] = 0.3 * c.fk[d] + 0.59 * c.fk[d + 1] + 0.11 * c.fk[d + 2]; c.pixelDepth = 8; c.type = 3; c.fk = h } } }; f.s5a = function(c) { c && (c.fk = null) }; f.w5a = function(c, d, e) { var g, h, k, m = 0, n = 0, p = 0, s = [], u = 0, v = 18; g = e.pixelDepth / 8; h = e.height * e.width; for (k = 0; k < h; k++) { if (0 != u) u--, n = 0 != p; else { if (v + 1 > d) break; u = c[v]; v += 1; (p = u & 128) && (u -= 128); n = 0 } if (!n) { if (v + g > d) break; s = f.MK(c, v, v + g); v += g; 3 <= g && (n = s[0], s[0] = s[2], s[2] = n) } for (n = 0; n < g; n++) e.fk[m + n] = s[n]; m += g } return !0 }; f.t5a = function(c) { for (var d = c.pixelDepth / 8 * c.width, e = 0; e < c.height / 2; e++) { var g = f.MK(c.fk, e * d, e * d + d); f.s8(f.MK(c.fk, (c.height - (e + 1)) * d, d), c.fk, e * d); f.s8(g, c.fk, (c.height - (e + 1)) * d) } c.ida = 0 }; f.MK = function(c, d, e) { return c instanceof Array ? c.slice(d, e) : c.subarray(d, e) }; f.s8 = function(c, d, e) { for (var g = 0; g < c.length; g++) d[e + g] = c[g] }; f.Cja = f.N.extend({ hz: null, hb: 0, ctor: function(c) { this.hz = c }, C2a: function(c) { this.hz = c; this.hb = 0 }, tSa: function() { return this.hz }, sV: function(c) { if (!(this.hb + Math.ceil(c / 8) < this.Mh.length)) throw Error("Index out of bound"); }, FV: function(c, d) { var e = c + d + 1, g = e >> 3; this.sV(e); var e = Math.pow(2, d - 1) - 1, h = this.QX(c + d, 1, g), k = this.QX(c, d, g), m = 0, n = 2, p = 0; do for (var s = this.pN(++p, g), u = c % 8 || 8, v = 1 << u; v >>= 1;) s & v && (m += 1 / n), n *= 2; while (c -= u); this.hb += g; return k == (e << 1) + 1 ? m ? NaN : h ? -Infinity : Infinity : (1 + -2 * h) * (k || m ? k ? Math.pow(2, k - e) * (1 + m) : Math.pow(2, -e + 1) * m : 0) }, pN: function(c, d) { return this.Mh[this.hb + d - c - 1] }, CL: function(c, d) { var e = this.QX(0, c, c / 8), g = Math.pow(2, c); this.hb += c / 8; return d && e >= g / 2 ? e - g : e }, tY: function(c, d) { for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c : 2 * (c - 1073741824) + 2147483648); return c }, QX: function(c, d, e) { var g = (c + d) % 8, h = c % 8, k = e - (c >> 3) - 1; c = e + (-(c + d) >> 3); var m = k - c; d = this.pN(k, e) >> h & (1 << (m ? 8 - h : d)) - 1; for (m && g && (d += (this.pN(c++, e) & (1 << g) - 1) << (m-- << 3) - h); m;) d += this.tY(this.pN(c++, e), (m-- << 3) - h); return d }, H0a: function() { return this.CL(32, !0) }, xFa: function() { return this.CL(32, !1) }, J0a: function() { return this.FV(23, 8) }, I0a: function() { return this.CL(16, !0) }, yFa: function() { return this.CL(16, !1) }, ca: function() { var c = this.Mh[this.hb]; this.hb += 1; return c }, E0a: function(c, d) { return this.hz instanceof Array ? this.hz.slice(c, d) : this.hz.subarray(c, d) }, nR: function(c) { this.hb = c }, Kda: function() { return this.hb } }); f.AK = 0; f.yK = 1; f.zK = 2; f.xK = f.ja.extend({ Ad: null, j1: null, rC: null, jg: null, ud: null, vr: null, ta: "TMXTiledMap", ctor: function(c, d) { f.v.prototype.ctor.call(this); this.jg = t(0, 0); this.ud = t(0, 0); void 0 !== d ? this.L0(c, d) : void 0 !== c && this.J0(c) }, d0: function() { return t(this.jg.width, this.jg.height) }, jha: function(c) { this.jg.width = c.width; this.jg.height = c.height }, yW: function() { return this.jg.width }, kY: function(c) { this.jg.width = c }, xW: function() { return this.jg.height }, jY: function(c) { this.jg.height = c }, TB: function() { return t(this.ud.width, this.ud.height) }, Wha: function(c) { this.ud.width = c.width; this.ud.height = c.height }, zF: function() { return this.ud.width }, oG: function(c) { this.ud.width = c }, yF: function() { return this.ud.height }, nG: function(c) { this.ud.height = c }, AUa: function() { return this.j1 }, E3a: function(c) { this.j1 = c }, Jda: function() { return this.rC }, nha: function(c) { this.rC = c }, rP: function() { return this.Ad }, rR: function(c) { this.Ad = c }, J0: function(c) { if (!c || 0 == c.length) throw "cc.TMXTiledMap.initWithTMXFile(): tmxFile should be non-null or non-empty string."; this.height = this.width = 0; c = f.nE.create(c); if (!c) return !1; var d = c.Lw; d && 0 !== d.length || f.log("cc.TMXTiledMap.initWithTMXFile(): Map not found. Please check the filename."); this.O8(c); return !0 }, L0: function(c, d) { this.height = this.width = 0; var e = f.nE.create(c, d), g = e.Lw; g && 0 !== g.length || f.log("cc.TMXTiledMap.initWithXML(): Map not found. Please check the filename."); this.O8(e); return !0 }, O8: function(c) { this.jg = c.d0(); this.ud = c.TB(); this.j1 = c.orientation; this.rC = c.Jda(); this.Ad = c.Ad; this.vr = c.vr; var d = 0, e = c.oi; if (e) for (var g = null, h = 0, k = e.length; h < k; h++)(g = e[h]) && g.visible && (g = this.Bta(g, c), this.n(g, d, d), this.width = Math.max(this.width, g.width), this.height = Math.max(this.height, g.height), d++) }, IPa: function() { for (var c = [], d = this.i, e = 0, g = d.length; e < g; e++) { var h = d[e]; h && h instanceof f.mE && c.push(h) } return c }, pUa: function(c) { if (!c || 0 === c.length) throw "cc.TMXTiledMap.getLayer(): layerName should be non-null or non-empty string."; for (var d = this.i, e = 0; e < d.length; e++) { var g = d[e]; if (g && g.kQ == c) return g } return null }, OUa: function(c) { if (!c || 0 === c.length) throw "cc.TMXTiledMap.getObjectGroup(): groupName should be non-null or non-empty string."; if (this.rC) for (var d = 0; d < this.rC.length; d++) { var e = this.rC[d]; if (e && e.NH == c) return e } return null }, k0: function(c) { return this.Ad[c.toString()] }, w0a: function(c) { return this.vr[c] }, Bta: function(c, d) { var e = this.mva(c, d), e = f.mE.create(e, c, d); c.Ffa = !1; e.bIa(); return e }, mva: function(c, d) { var e = c.rb, g = d.Lw; if (g) for (var h = g.length - 1; 0 <= h; h--) { var k = g[h]; if (k) for (var m = 0; m < e.height; m++) for (var n = 0; n < e.width; n++) { var p = c.ej[n + e.width * m]; if (0 != p && (p & f.UT) >>> 0 >= k.ux) return k } } f.log("cocos2d: Warning: TMX Layer " + c.name + " has no tiles"); return null } }); q = f.xK.prototype; f.d(q, "mapWidth", q.yW, q.kY); f.d(q, "mapHeight", q.xW, q.jY); f.d(q, "tileWidth", q.zF, q.oG); f.d(q, "tileHeight", q.yF, q.nG); f.xK.create = function(c, d) { return new f.xK(c, d) }; f.Noa = 0; f.OMa = 1; f.NMa = 2; f.QMa = 3; f.PMa = 4; f.RMa = 5; f.oE = 2147483648; f.pE = 1073741824; f.s7 = 536870912; f.t7 = (f.oE | f.pE | f.s7) >>> 0; f.UT = ~f.t7 >>> 0; f.rv = f.N.extend({ Ad: null, name: "", rb: null, ej: null, visible: null, Ib: null, Ffa: !0, dw: 1E5, cw: 0, offset: null, ctor: function() { this.Ad = []; this.name = ""; this.rb = null; this.ej = []; this.visible = !0; this.Ib = 0; this.Ffa = !0; this.dw = 1E5; this.cw = 0; this.offset = r(0, 0) }, rP: function() { return this.Ad }, rR: function(c) { this.Ad = c } }); f.Moa = f.N.extend({ name: "", ux: 0, ud: null, gJ: 0, margin: 0, hia: "", GP: null, ctor: function() { this.ud = t(0, 0); this.GP = t(0, 0) }, EI: function(c) { var d = x(0, 0, 0, 0); d.width = this.ud.width; d.height = this.ud.height; c &= f.UT; c -= parseInt(this.ux, 10); var e = parseInt((this.GP.width - 2 * this.margin + this.gJ) / (this.ud.width + this.gJ), 10); d.x = parseInt(c % e * (this.ud.width + this.gJ) + this.margin, 10); d.y = parseInt(parseInt(c / e, 10) * (this.ud.height + this.gJ) + this.margin, 10); return d } }); f.nE = f.pK.extend({ Ad: null, orientation: null, parentElement: null, FQ: null, jQ: 0, l3: !1, TC: null, s_: null, ZM: null, jg: null, ud: null, oi: null, Lw: null, vr: null, wN: "", d9: 0, ctor: function(c, d) { f.pK.prototype.ctor.apply(this); this.jg = t(0, 0); this.ud = t(0, 0); this.oi = []; this.Lw = []; this.ZM = []; this.Ad = []; this.vr = {}; this.d9 = 0; void 0 !== d ? this.L0(c, d) : void 0 !== c && this.J0(c) }, VUa: function() { return this.orientation }, M3a: function(c) { this.orientation = c }, d0: function() { return t(this.jg.width, this.jg.height) }, jha: function(c) { this.jg.width = c.width; this.jg.height = c.height }, yW: function() { return this.jg.width }, kY: function(c) { this.jg.width = c }, xW: function() { return this.jg.height }, jY: function(c) { this.jg.height = c }, TB: function() { return t(this.ud.width, this.ud.height) }, Wha: function(c) { this.ud.width = c.width; this.ud.height = c.height }, zF: function() { return this.ud.width }, oG: function(c) { this.ud.width = c }, yF: function() { return this.ud.height }, nG: function(c) { this.ud.height = c }, uUa: function() { return this.oi }, aHa: function(c) { this.oi.push(c) }, oWa: function() { return this.Lw }, QHa: function(c) { this.Lw.push(c) }, Jda: function() { return this.ZM }, nha: function(c) { this.ZM.push(c) }, gVa: function() { return this.parentElement }, R3a: function(c) { this.parentElement = c }, hVa: function() { return this.FQ }, S3a: function(c) { this.FQ = c }, qUa: function() { return this.jQ }, w3a: function(c) { this.jQ = c }, $Va: function() { return this.l3 }, n4a: function(c) { this.l3 = c }, rP: function() { return this.Ad }, rR: function(c) { this.Ad = c }, J0: function(c) { this.C$(c, null); return this.D1(c) }, L0: function(c, d) { this.C$(null, d); return this.WEa(c) }, D1: function(c, d) { var e = (d = d || !1) ? c : f.L.zd(c); if (!e) throw "Please load the resource first : " + c; var g, h, e = this.sX(e).documentElement; g = e.getAttribute("version"); h = e.getAttribute("orientation"); if ("map" == e.nodeName && ("1.0" != g && null !== g && f.log("cocos2d: TMXFormat: Unsupported TMX version:" + g), "orthogonal" == h ? this.orientation = f.AK : "isometric" == h ? this.orientation = f.zK : "hexagonal" == h ? this.orientation = f.yK : null !== h && f.log("cocos2d: TMXFomat: Unsupported orientation:" + h), g = t(0, 0), g.width = parseFloat(e.getAttribute("width")), g.height = parseFloat(e.getAttribute("height")), this.jha(g), g = t(0, 0), g.width = parseFloat(e.getAttribute("tilewidth")), g.height = parseFloat(e.getAttribute("tileheight")), this.Wha(g), h = e.querySelectorAll("map \x3e properties \x3e property"))) { var k = {}; for (g = 0; g < h.length; g++) k[h[g].getAttribute("name")] = h[g].getAttribute("value"); this.Ad = k } k = e.getElementsByTagName("tileset"); "map" !== e.nodeName && (k = [], k.push(e)); for (g = 0; g < k.length; g++) { h = k[g]; var m = h.getAttribute("source"); if (m) h = d ? f.path.join(this.wN, m) : f.path.pB(c, m), this.D1(h); else { m = new f.Moa; m.name = h.getAttribute("name") || ""; m.ux = parseInt(h.getAttribute("firstgid")) || 0; m.gJ = parseInt(h.getAttribute("spacing")) || 0; m.margin = parseInt(h.getAttribute("margin")) || 0; var n = t(0, 0); n.width = parseFloat(h.getAttribute("tilewidth")); n.height = parseFloat(h.getAttribute("tileheight")); m.ud = n; var n = h.getElementsByTagName("image")[0].getAttribute("source"), p = -1; this.TC && (p = this.TC.lastIndexOf("/")); m.hia = -1 !== p ? this.TC.substr(0, p + 1) + n : this.wN + (this.wN ? "/" : "") + n; this.QHa(m); if (n = h.getElementsByTagName("tile")) for (p = 0; p < n.length; p++) { h = n[p]; this.FQ = parseInt(m.ux) + parseInt(h.getAttribute("id") || 0); var s = h.querySelectorAll("properties \x3e property"); if (s) { var u = {}; for (h = 0; h < s.length; h++) { var v = s[h].getAttribute("name"); u[v] = s[h].getAttribute("value") } this.vr[this.FQ] = u } } } } if (k = e.getElementsByTagName("layer")) for (g = 0; g < k.length; g++) { n = k[g]; p = n.getElementsByTagName("data")[0]; m = new f.rv; m.name = n.getAttribute("name"); h = t(0, 0); h.width = parseFloat(n.getAttribute("width")); h.height = parseFloat(n.getAttribute("height")); m.rb = h; h = n.getAttribute("visible"); m.visible = "0" != h; h = n.getAttribute("opacity") || 1; m.Ib = h ? parseInt(255 * parseFloat(h)) : 255; m.offset = r(parseFloat(n.getAttribute("x")) || 0, parseFloat(n.getAttribute("y")) || 0); s = ""; for (h = 0; h < p.childNodes.length; h++) s += p.childNodes[h].nodeValue; s = s.trim(); h = p.getAttribute("compression"); u = p.getAttribute("encoding"); if (h && "gzip" !== h && "zlib" !== h) return f.log("cc.TMXMapInfo.parseXMLFile(): unsupported compression method"), null; switch (h) { case "gzip": m.ej = f.Cia(s, 4); break; case "zlib": h = new Zlib.Iy(f.bb.Zu.Fca(s, 1)); m.ej = f.OIa(h.Hca()); break; case null: case "": if ("base64" == u) m.ej = f.bb.Zu.Fca(s, 4); else if ("csv" === u) for (m.ej = [], h = s.split(","), p = 0; p < h.length; p++) m.ej.push(parseInt(h[p])); else for (h = p.getElementsByTagName("tile"), m.ej = [], p = 0; p < h.length; p++) m.ej.push(parseInt(h[p].getAttribute("gid"))); break; default: this.jQ == f.rv.K3 && f.log("cc.TMXMapInfo.parseXMLFile(): Only base64 and/or gzip/zlib maps are supported") } if (n = n.querySelectorAll("properties \x3e property")) { p = {}; for (h = 0; h < n.length; h++) p[n[h].getAttribute("name")] = n[h].getAttribute("value"); m.Ad = p } this.aHa(m) } if (k = e.getElementsByTagName("objectgroup")) for (g = 0; g < k.length; g++) { n = k[g]; m = new f.Loa; m.NH = n.getAttribute("name"); m.uHa(r(parseFloat(n.getAttribute("x")) * this.TB().width || 0, parseFloat(n.getAttribute("y")) * this.TB().height || 0)); if (p = n.querySelectorAll("objectgroup \x3e properties \x3e property")) for (h = 0; h < p.length; h++) s = {}, s[p[h].getAttribute("name")] = p[h].getAttribute("value"), m.Ad = s; if (n = n.querySelectorAll("object")) for (h = 0; h < n.length; h++) { s = n[h]; p = {}; p.name = s.getAttribute("name") || ""; p.type = s.getAttribute("type") || ""; p.x = parseInt(s.getAttribute("x") || 0) + m.BA.x; u = parseInt(s.getAttribute("y") || 0) + m.BA.y; p.width = parseInt(s.getAttribute("width")) || 0; p.height = parseInt(s.getAttribute("height")) || 0; p.y = parseInt(this.d0().height * this.TB().height) - u - p.height; if (u = s.querySelectorAll("properties \x3e property")) for (v = 0; v < u.length; v++) p[u[v].getAttribute("name")] = u[v].getAttribute("value"); (u = s.querySelectorAll("polygon")) && 0 < u.length && (u = u[0].getAttribute("points")) && (p.polygonPoints = this.laa(u)); (s = s.querySelectorAll("polyline")) && 0 < s.length && (s = s[0].getAttribute("points")) && (p.polylinePoints = this.laa(s)); m.nHa(p) } this.nha(m) } return e }, laa: function(c) { if (!c) return null; var d = []; c = c.split(" "); for (var e = 0; e < c.length; e++) { var g = c[e].split(","); d.push({ x: g[0], y: g[1] }) } return d }, WEa: function(c) { return this.D1(c, !0) }, lWa: function() { return this.vr }, w4a: function(c) { this.vr.push(c) }, iTa: function() { return this.s_ }, S2a: function(c) { this.s_ = c }, dWa: function() { return this.TC }, q4a: function(c) { this.TC = c }, C$: function(c, d) { this.Lw.length = 0; this.oi.length = 0; this.TC = c; d && (this.wN = d); this.ZM.length = 0; this.Ad.length = 0; this.vr.length = 0; this.s_ = ""; this.l3 = !1; this.jQ = f.rv.K3; this.parentElement = f.Noa; this.d9 = 0 } }); q = f.nE.prototype; f.d(q, "mapWidth", q.yW, q.kY); f.d(q, "mapHeight", q.xW, q.jY); f.d(q, "tileWidth", q.zF, q.oG); f.d(q, "tileHeight", q.yF, q.nG); f.nE.create = function(c, d) { return new f.nE(c, d) }; f.L.Xp(["tmx", "tsx"], f.wba); f.rv.K3 = 1; f.rv.EJa = 2; f.rv.FJa = 4; f.rv.GJa = 8; f.Loa = f.N.extend({ Ad: null, NH: "", BA: null, sA: null, ctor: function() { this.NH = ""; this.BA = r(0, 0); this.Ad = []; this.sA = [] }, pVa: function() { return this.BA }, uHa: function(c) { this.BA.x = c.x; this.BA.y = c.y }, rP: function() { return this.Ad }, rR: function(c) { this.Ad.push(c) }, cUa: function() { return this.NH.toString() }, q3a: function(c) { this.NH = c }, x0a: function(c) { return this.Ad[c] }, J_a: function(c) { if (this.sA && 0 < this.sA.length) for (var d = this.sA, e = 0, g = d.length; e < g; e++) { var h = d[e].name; if (h && h == c) return d[e] } return null }, QUa: function() { return this.sA }, nHa: function(c) { this.sA.push(c) } }); f.mE = f.Fh.extend({ Bh: null, zl: null, eC: null, Ad: null, kQ: "", rb: null, Ve: null, Ib: 255, dw: null, cw: null, hZ: null, bZ: null, vNa: null, Bn: null, Hh: null, Vl: null, gi: null, Pi: null, kV: null, PN: null, QN: null, St: 0, LY: 0, Z$: 1E7, ta: "TMXLayer", ctor: function(c, d, e) { f.Fh.prototype.ctor.call(this); this.fh = []; this.rb = t(0, 0); this.Ve = t(0, 0); if (f.K === f.fb) { var g = f.Sb, h = f.fd("canvas"); h.width = g.width; h.height = g.height; this.gi = h; this.Pi = this.gi.getContext("2d"); var k = new f.Pa; k.sh(h); k.$d(); this.kV = k; this.width = g.width; this.height = g.height; this.Gq = this } void 0 !== e && this.DCa(c, d, e) }, Ga: function(c, d) { var e = this.m; f.v.prototype.Ga.call(this, c, d); if (f.K === f.fb) { var g = this.gi, h = f.Uc(); g.width = 0 | 1.5 * e.width * h; g.height = 0 | 1.5 * e.height * h; this.Pi.translate(0, g.height); e = this.kV.m; e.width = g.width; e.height = g.height; e = g.width * g.height; if (e > this.Z$) { this.PN || (this.PN = []); this.QN || (this.QN = []); this.St = Math.ceil(e / this.Z$); e = this.PN; for (h = 0; h < this.St; h++) { e[h] || (e[h] = document.createElement("canvas"), this.QN[h] = e[h].getContext("2d")); var k = e[h]; k.width = this.LY = Math.round(g.width / this.St); k.height = g.height } for (h = this.St; h < e.length; h++) k.width = 0, k.height = 0 } else this.St = 0 } }, sb: null, xF: function() { return this.kV }, I: null, Br: function(c) { var d = c || f.s; if (this.Na) { d.save(); this.transform(c); var e, g = this.i; if (this.Dk) { var h = f.view; h.Waa(); var k = this.Pi, m = this.gi; k.clearRect(0, 0, m.width, -m.height); k.save(); k.translate(this.Qb.x, -this.Qb.y); if (g) for (this.kd(), e = 0; e < g.length; e++) g[e] && g[e].I(k); k.restore(); if (0 < this.St) for (g = this.LY, k = m.height, e = 0; e < this.St; e++) this.QN[e].drawImage(m, e * g, 0, g, k, 0, 0, g, k); h.Iaa(); this.Dk = !1 } this.ma(c); d.restore() } }, ma: null, Rq: function(c) { c = c || f.s; var d = 0 | -this.Qb.x, e = 0 | -this.Qb.y, g = f.view, h = this.gi; if (h) { var k = this.St, m = h.height * g.ra; if (0 < k) for (var h = this.PN, n = 0; n < k; n++) { var p = h[n]; c.drawImage(h[n], 0, 0, p.width, p.height, d + n * this.LY, -(e + m), p.width * g.ka, m) } else c.drawImage(h, 0, 0, h.width, h.height, d, -(e + m), h.width * g.ka, m) } }, tUa: function() { return t(this.rb.width, this.rb.height) }, z3a: function(c) { this.rb.width = c.width; this.rb.height = c.height }, Qra: function() { return this.rb.width }, wua: function(c) { this.rb.width = c }, Pra: function() { return this.rb.height }, vua: function(c) { this.rb.height = c }, BUa: function() { return t(this.Ve.width, this.Ve.height) }, F3a: function(c) { this.Ve.width = c.width; this.Ve.height = c.height }, zF: function() { return this.Ve.width }, oG: function(c) { this.Ve.width = c }, yF: function() { return this.Ve.height }, nG: function(c) { this.Ve.height = c }, mWa: function() { return this.Bh }, x4a: function(c) { this.Bh = c }, nWa: function() { return this.zl }, y4a: function(c) { this.zl = c }, sUa: function() { return this.eC }, y3a: function(c) { this.eC = c }, rP: function() { return this.Ad }, rR: function(c) { this.Ad = c }, DCa: function(c, d, e) { var g = d.rb, h = 0.35 * parseInt(g.width * g.height) + 1, k; c && (k = f.nb.vd(c.hia)); return this.va(k, h) ? (this.kQ = d.name, this.rb = g, this.Bh = d.ej, this.dw = d.dw, this.cw = d.cw, this.Ib = d.Ib, this.Ad = d.Ad, this.Vl = f.Q.Vl, this.zl = c, this.Ve = e.TB(), this.eC = e.orientation, c = this.zqa(d.offset), this.o(f.J1(c)), this.Hh = [], this.Ga(f.eia(t(this.rb.width * this.Ve.width, this.rb.height * this.Ve.height))), this.bZ = !1, this.hZ = 0, !0) : !1 }, S0a: function() { this.Bh && (this.Bh = null); this.Hh && (this.Hh = null) }, kWa: function(c, d) { if (!c) throw "cc.TMXLayer.getTileAt(): pos should be non-null"; void 0 !== d && (c = r(c, d)); if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.getTileAt(): invalid position"; if (!this.Bh || !this.Hh) return f.log("cc.TMXLayer.getTileAt(): TMXLayer: the tiles map has been released"), null; var e = null, g = this.r0(c); if (0 === g) return e; var h = 0 | c.x + c.y * this.rb.width, e = this.Za(h); e || (g = this.zl.EI(g), g = f.cs(g), e = new f.q, e.va(this.texture, g), e.batchNode = this, e.o(this.pP(c)), e.vertexZ = this.Jba(c), e.anchorX = 0, e.anchorY = 0, e.opacity = this.Ib, g = this.SU(h), this.Xva(e, g, h)); return e }, r0: function(c, d) { if (!c) throw "cc.TMXLayer.getTileGIDAt(): pos should be non-null"; void 0 !== d && (c = r(c, d)); if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.getTileGIDAt(): invalid position"; return this.Bh && this.Hh ? (this.Bh[0 | c.x + c.y * this.rb.width] & f.UT) >>> 0 : (f.log("cc.TMXLayer.getTileGIDAt(): TMXLayer: the tiles map has been released"), null) }, yBa: function(c, d) { if (!c) throw "cc.TMXLayer.getTileFlagsAt(): pos should be non-null"; void 0 !== d && (c = r(c, d)); if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.getTileFlagsAt(): invalid position"; return this.Bh && this.Hh ? (this.Bh[0 | c.x + c.y * this.rb.width] & f.t7) >>> 0 : (f.log("cc.TMXLayer.getTileFlagsAt(): TMXLayer: the tiles map has been released"), null) }, v4a: function(c, d, e, g) { if (!d) throw "cc.TMXLayer.setTileGID(): pos should be non-null"; void 0 !== g ? d = r(d, e) : g = e; if (d.x >= this.rb.width || d.y >= this.rb.height || 0 > d.x || 0 > d.y) throw "cc.TMXLayer.setTileGID(): invalid position"; if (this.Bh && this.Hh) if (0 !== c && c < this.zl.ux) f.log("cc.TMXLayer.setTileGID(): invalid gid:" + c); else { g = g || 0; this.En(); e = this.yBa(d); var h = this.r0(d); if (h != c || e != g) if (e = (c | g) >>> 0, 0 === c) this.XFa(d); else if (0 === h) this.Ksa(e, d); else { var h = d.x + d.y * this.rb.width, k = this.Za(h); k ? (c = this.zl.EI(c), c = f.cs(c), k.sc(c, !1), null != g && this.HN(k, d, e), this.Bh[h] = e) : this.Cva(e, d) } } else f.log("cc.TMXLayer.setTileGID(): TMXLayer: the tiles map has been released") }, XFa: function(c, d) { if (!c) throw "cc.TMXLayer.removeTileAt(): pos should be non-null"; void 0 !== d && (c = r(c, d)); if (c.x >= this.rb.width || c.y >= this.rb.height || 0 > c.x || 0 > c.y) throw "cc.TMXLayer.removeTileAt(): invalid position"; if (!this.Bh || !this.Hh) f.log("cc.TMXLayer.removeTileAt(): TMXLayer: the tiles map has been released"); else if (0 !== this.r0(c)) { f.K === f.fb && this.En(); var e = 0 | c.x + c.y * this.rb.width, g = this.SU(e); this.Bh[e] = 0; this.Hh.splice(g, 1); if (e = this.Za(e)) f.Fh.prototype.removeChild.call(this, e, !0); else if (f.K === f.na && this.textureAtlas.oga(g), this.i) for (var e = this.i, h = 0, k = e.length; h < k; h++) { var m = e[h]; if (m) { var n = m.atlasIndex; n >= g && (m.atlasIndex = n - 1) } } } }, pP: function(c, d) { void 0 !== d && (c = r(c, d)); var e = r(0, 0); switch (this.eC) { case f.AK: e = this.Hta(c); break; case f.zK: e = this.Gta(c); break; case f.yK: e = this.Fta(c) } return f.J1(e) }, k0: function(c) { return this.Ad[c] }, bIa: function() { f.K === f.fb ? this.zl.GP = this.qi.m : (this.zl.GP = this.textureAtlas.texture.m, this.textureAtlas.texture.j2()); this.Ata(); f.K === f.fb && this.En(); for (var c = this.rb.height, d = this.rb.width, e = 0; e < c; e++) for (var g = 0; g < d; g++) { var h = this.Bh[g + d * e]; 0 !== h && (this.jqa(h, r(g, e)), this.dw = Math.min(h, this.dw), this.cw = Math.max(h, this.cw)) } this.cw >= this.zl.ux && this.dw >= this.zl.ux || f.log("cocos2d:TMX: Only 1 tileset per layer is supported") }, n: function() { f.log("addChild: is not supported on cc.TMXLayer. Instead use setTileGID or tileAt.") }, removeChild: function(c, d) { if (c) if (-1 === this.i.indexOf(c)) f.log("cc.TMXLayer.removeChild(): Tile does not belong to TMXLayer"); else { f.K === f.fb && this.En(); var e = c.atlasIndex; this.Bh[this.Hh[e]] = 0; this.Hh.splice(e, 1); f.Fh.prototype.removeChild.call(this, c, d) } }, rUa: function() { return this.kQ }, x3a: function(c) { this.kQ = c }, Gta: function(c) { return r(this.Ve.width / 2 * (this.rb.width + c.x - c.y - 1), this.Ve.height / 2 * (2 * this.rb.height - c.x - c.y - 2)) }, Hta: function(c) { return r(c.x * this.Ve.width, (this.rb.height - c.y - 1) * this.Ve.height) }, Fta: function(c) { return r(c.x * this.Ve.width * 3 / 4, (this.rb.height - c.y - 1) * this.Ve.height + (1 == c.x % 2 ? -this.Ve.height / 2 : 0)) }, zqa: function(c) { var d = r(0, 0); switch (this.eC) { case f.AK: d = r(c.x * this.Ve.width, -c.y * this.Ve.height); break; case f.zK: d = r(this.Ve.width / 2 * (c.x - c.y), this.Ve.height / 2 * (-c.x - c.y)); break; case f.yK: 0 === c.x && 0 === c.y || f.log("offset for hexagonal map not implemented yet") } return d }, jqa: function(c, d) { var e = this.zl.EI(c), e = f.cs(e), g = 0 | d.x + d.y * this.rb.width, e = this.XX(e); this.HN(e, d, c); var h = this.Hh.length; this.QP(e, h); this.Hh.splice(h, 0, g); return e }, Ksa: function(c, d) { var e = this.zl.EI(c), e = f.cs(e), g = 0 | d.x + d.y * this.rb.width, e = this.XX(e); this.HN(e, d, c); var h = this.mqa(g); this.QP(e, h); this.Hh.splice(h, 0, g); if (this.i) for (var k = this.i, m = 0, n = k.length; m < n; m++) { var p = k[m]; if (p) { var s = p.atlasIndex; s >= h && (p.atlasIndex = s + 1) } } this.Bh[g] = c; return e }, Cva: function(c, d) { var e = this.zl.EI(c), g = this.Vl, e = x(e.x / g, e.y / g, e.width / g, e.height / g), g = d.x + d.y * this.rb.width, e = this.XX(e); this.HN(e, d, c); e.atlasIndex = this.SU(g); e.dirty = !0; e.bi(); this.Bh[g] = c; return e }, Ata: function() { var c = this.k0("cc_vertexz"); if (c) if ("automatic" == c) { this.bZ = !0; var d = this.k0("cc_alpha_func"), c = 0; d && (c = parseFloat(d)); f.K === f.na && (this.shaderProgram = f.xg.be(f.tK), d = f.s.getUniformLocation(this.shaderProgram.Bx(), f.g8), this.shaderProgram.Ff(), this.shaderProgram.bJ(d, c)) } else this.hZ = parseInt(c, 10) }, HN: function(c, d, e) { var g = d.x + d.y * this.rb.width; c.o(this.pP(d)); f.K === f.na ? c.vertexZ = this.Jba(d) : c.tag = g; c.anchorX = 0; c.anchorY = 0; c.opacity = this.Ib; f.K === f.na && (c.rotation = 0); c.Pd(!1); c.Yf(!1); (e & f.s7) >>> 0 ? (c.anchorX = 0.5, c.anchorY = 0.5, c.x = this.pP(d).x + c.width / 2, c.y = this.pP(d).y + c.height / 2, d = (e & (f.oE | f.pE) >>> 0) >>> 0, d == f.oE ? c.rotation = 90 : d == f.pE ? c.rotation = 270 : (c.rotation = d == (f.pE | f.oE) >>> 0 ? 90 : 270, c.Pd(!0))) : ((e & f.oE) >>> 0 && c.Pd(!0), (e & f.pE) >>> 0 && c.Yf(!0)) }, XX: function(c) { f.K === f.na ? (this.Bn ? (this.Bn.batchNode = null, this.Bn.sc(c, !1)) : (this.Bn = new f.q, this.Bn.va(this.texture, c, !1)), this.Bn.batchNode = this) : (this.Bn = new f.q, this.Bn.va(this.Vt, c, !1), this.Bn.batchNode = this, this.Bn.parent = this); return this.Bn }, Jba: function(c) { var d = 0, e = 0; if (this.bZ) switch (this.eC) { case f.zK: e = this.rb.width + this.rb.height; d = -(e - (c.x + c.y)); break; case f.AK: d = -(this.rb.height - c.y); break; case f.yK: f.log("TMX Hexa zOrder not supported"); break; default: f.log("TMX invalid value") } else d = this.hZ; return d }, SU: function(c) { var d; if (this.Hh) for (var e = this.Hh, g = 0, h = e.length; g < h && (d = e[g], d != c); g++); "number" != typeof d && f.log("cc.TMXLayer._atlasIndexForExistantZ(): TMX atlas index not found. Shall not happen"); return g }, mqa: function(c) { for (var d = this.Hh, e = 0, g = d.length; e < g && !(c < d[e]); e++); return e } }); q = f.mE.prototype; f.K == f.na ? (q.ma = f.Fh.prototype.ma, q.I = f.Fh.prototype.I, q.sb = f.Fh.prototype.sb) : (q.ma = q.Rq, q.I = q.Br, q.sb = q.xF); f.d(q, "texture", q.sb, q.ab); f.d(q, "layerWidth", q.Qra, q.wua); f.d(q, "layerHeight", q.Pra, q.vua); f.d(q, "tileWidth", q.zF, q.oG); f.d(q, "tileHeight", q.yF, q.nG); f.mE.create = function(c, d, e) { return new f.mE(c, d, e) }; f.sT = f.N.extend({ fG: null, hb: null, TE: null, zVa: function() { return this.fG }, b4a: function(c) { this.fG = c }, Kda: function() { return this.hb }, nR: function(c) { this.hb = c }, SSa: function() { return this.TE }, GGa: function(c) { this.TE = c }, rCa: function(c, d) { this.fG = c; this.hb = d; this.TE = null; return !0 } }); f.sT.create = function(c, d) { var e = new f.sT; e.rCa(c, d); return e }; f.M6 = f.ja.extend({ Ox: null, TW: null, ta: "ParallaxNode", fVa: function() { return this.Ox }, Q3a: function(c) { this.Ox = c }, ctor: function() { f.ja.prototype.ctor.call(this); this.Ox = []; this.TW = r(-100, -100) }, n: function(c, d, e, g) { if (3 === arguments.length) f.log("ParallaxNode: use addChild(child, z, ratio, offset) instead"); else { if (!c) throw "cc.ParallaxNode.addChild(): child should be non-null"; var h = f.sT.create(e, g); h.GGa(c); this.Ox.push(h); c.o(this.oa.x * e.x + g.x, this.oa.y * e.y + g.y); f.ja.prototype.n.call(this, c, d, c.tag) } }, removeChild: function(c, d) { for (var e = this.Ox, g = 0; g < e.length; g++) if (e[g].TE == c) { e.splice(g, 1); break } f.ja.prototype.removeChild.call(this, c, d) }, Cf: function(c) { this.Ox.length = 0; f.ja.prototype.Cf.call(this, c) }, I: function() { var c = this.$pa(); if (!f.I1(c, this.TW)) { for (var d = this.Ox, e = 0, g = d.length; e < g; e++) { var h = d[e]; h.TE.o(-c.x + c.x * h.fG.x + h.hb.x, -c.y + c.y * h.fG.y + h.hb.y) } this.TW = c } f.ja.prototype.I.call(this) }, $pa: function() { for (var c = this.oa, d = this; null != d.parent;) d = d.parent, c = f.Tp(c, d.Od()); return c } }); f.M6.create = function() { return new f.M6 }; if (f.Ed.RN) { var Da = f.V5a = new(window.AudioContext || window.webkitAudioContext || window.mozAudioContext); f.xU = f.N.extend({ Mz: null, cc: null, Fw: null, nZ: null, src: null, K1: null, autoplay: null, controls: null, p_a: null, currentTime: 0, startTime: 0, duration: 0, Tj: null, mZ: 1, hN: 0, Ce: !1, zG: !0, cm: -1, ctor: function(c) { this.Mz = {}; this.src = c; this.nZ = Da.createGain ? Da.createGain() : Da.createGainNode(); this.ota = this.nta.bind(this); this.lta = this.kta.bind(this) }, vX: function(c) { var d = this.Fw = Da.createBufferSource(), e = this.nZ; c = c || 0; d.buffer = this.cc; e.gain.value = this.mZ; d.connect(e); e.connect(Da.destination); d.loop = this.Tj; this.zG = this.Ce = !1; d.start ? d.start(0, c) : d.noteGrainOn ? (e = d.buffer.duration, this.loop ? d.noteGrainOn(0, c, e) : d.noteGrainOn(0, c, e - c)) : d.noteOn(0); this.hN = 0 }, oba: function() { var c = this.Fw; this.zG || (c.stop ? c.stop(0) : c.u_a(0), this.zG = !0) }, play: function() { if (-1 == this.cm) this.cm = 0; else if (1 == this.cm) { var c = this.Fw; if (this.zG || !c || 2 != c.playbackState) this.startTime = Da.currentTime, this.vX(0) } }, pause: function() { this.hN = Da.currentTime; this.Ce = !0; this.oba() }, lk: function() { this.Ce && this.vX(this.cc ? (this.hN - this.startTime) % this.cc.duration : 0) }, stop: function() { this.hN = 0; this.Ce = !1; this.oba() }, load: function() { var c = this; if (1 != c.cm) { c.cm = -1; c.played = !1; c.ended = !0; var d = new XMLHttpRequest; d.open("GET", c.src, !0); d.responseType = "arraybuffer"; d.onload = function() { Da.decodeAudioData(d.response, c.ota, c.lta) }; d.send() } }, addEventListener: function(c, d) { this.Mz[c] = d.bind(this) }, removeEventListener: function(c) { delete this.Mz[c] }, $Pa: function() { return f.Ed.RN }, nta: function(c) { this.cc = c; c = this.Mz.success; var d = this.Mz.canplaythrough; c && c(); d && d(); 0 != this.cm && "autoplay" != this.autoplay && !0 != this.autoplay || this.vX(); this.cm = 1 }, kta: function() { var c = this.Mz.error; c && c(); this.cm = -2 }, cloneNode: function() { var c = new f.xU(this.src); c.volume = this.volume; c.cm = this.cm; c.cc = this.cc; 0 != c.cm && -1 != c.cm || c.load(); return c } }); q = f.xU.prototype; f.d(q, "loop", function() { return this.Tj }, function(c) { this.Tj = c; this.Fw && (this.Fw.loop = c) }); f.d(q, "volume", function() { return this.mZ }, function(c) { this.mZ = c; this.nZ.gain.value = c }); f.d(q, "paused", function() { return this.Ce }); f.d(q, "ended", function() { var c = this.Fw; return !this.Ce && (this.zG || !c || 3 == c.playbackState) }); f.d(q, "played", function() { var c = this.Fw; return c && 2 == c.playbackState }) } f.Q3 = f.N.extend({ zY: !1, Lh: null, xL: null, Uj: 0, F8: 0, li: {}, GE: {}, TL: 1, aX: 5, bt: null, aG: [], ctor: function() { this.zY = 0 < f.UU.SN.length; this.bt && (this.bt = this.bt.bind(this)) }, Y5a: function() { return !1 }, xda: function() { return this.TL }, Qfa: function(c, d) { if (this.zY) { var e = this.Lh; e && this.Rt(e); c != this.xL && (this.Lh = e = this.nW(c), this.xL = c); e && (e.loop = d || !1, this.wX(e)) } }, nW: function(c) { var d = f.L, e = d.zd(c); e || (d.load(c), e = d.zd(c)); return e }, wX: function(c) { c.ended || (c.stop ? c.stop() : (c.pause(), c.currentTime = 0)); this.Uj = 2; c.play() }, pia: function(c) { if (0 < this.Uj) { var d = this.Lh; d && this.Rt(d) && (c && f.L.wh(this.xL), this.xL = this.Lh = null, this.Uj = 0) } }, Rt: function(c) { return c && !c.ended ? (c.stop ? c.stop() : c.duration && Infinity != c.duration ? c.currentTime = c.duration : c.pause(), !0) : !1 }, G1: function() { 2 == this.Uj && (this.Lh.pause(), this.Uj = 1) }, vga: function() { 1 == this.Uj && (this.lr(this.Lh), this.Uj = 2) }, lr: function(c) { c && !c.ended && (c.lk ? c.lk() : c.play()) }, dGa: function() { this.Lh && this.wX(this.Lh) }, GAa: function() { return 0 == this.Uj ? 0 : this.Lh.volume }, kHa: function(c) { 0 < this.Uj && (this.Lh.volume = Math.min(Math.max(c, 0), 1)) }, VP: function() { return 2 == this.Uj && this.Lh && !this.Lh.ended }, qW: function(c) { var d = this.GE[c]; d || (d = this.GE[c] = []); return d }, p$: function(c) { var d; if (!this.zY) return null; for (var e = this.qW(c), g = 0, h = e.length; g < h; g++) { var k = e[g]; if (k.ended) { d = k; d.currentTime = 0; window.chrome && d.load(); break } } if (!d) { if (e.length >= this.aX) return f.log("Error: " + c + " greater than " + this.aX), null; d = this.nW(c); if (!d) return null; d = d.cloneNode(!0); this.bt && f.ub(d, "pause", this.bt); d.volume = this.TL; e.push(d) } return d }, zI: function(c, d) { var e = this.p$(c); if (!e) return null; e.loop = d || !1; e.play(); var g = this.F8++; this.li[g] = e; return g }, Uga: function(c) { c = this.TL = Math.min(Math.max(c, 0), 1); var d = this.li, e; for (e in d) d[e].volume = c }, F1: function(c) { (c = this.li[c]) && !c.ended && c.pause() }, E1: function() { var c = this.li, d; for (d in c) { var e = c[d]; e.ended || e.pause() } }, c2: function(c) { this.lr(this.li[c]) }, b2: function() { var c = this.li, d; for (d in c) this.lr(c[d]) }, k3: function(c) { this.Rt(this.li[c]); delete this.li[c] }, iJ: function() { var c = this.li, d; for (d in c) this.Rt(c[d]), delete c[d] }, z3: function(c) { var d = f.L, e = this.li, g = this.qW(c); d.wh(c); if (0 != g.length) { d = g[0].src; delete this.GE[c]; for (var h in e) e[h].src == d && (this.Rt(e[h]), delete e[h]) } }, end: function() { this.pia(); this.iJ() }, naa: function() { var c = this.li, d, e; for (e in c)!(d = c[e]) || d.ended || d.paused || (this.aG.push(d), d.pause()); this.VP() && (this.aG.push(this.Lh), this.Lh.pause()) }, Kaa: function() { for (var c = this.aG, d = 0, e = c.length; d < e; d++) this.lr(c[d]); c.length = 0 } }); !f.Ed.RN && 0 > f.Ed.iva && (f.R3 = f.Q3.extend({ cu: [], ZF: [], Gk: null, aX: 2, SL: {}, hw: !1, Nz: 0, OW: !1, wX: function(c) { this.HY(); this._super(c) }, vga: function() { 1 == this.Uj && (this.HY(), this.hw = !1, this.Nz = 0, this._super()) }, zI: function(c, d) { var e = this.Gk, g = d ? this.p$(c) : this.fsa(c); if (!g) return null; g.loop = d || !1; var h = this.F8++; this.li[h] = g; this.VP() && (this.G1(), this.hw = !0); e ? (e != g && this.cu.push(this.Cz), this.cu.push(h), e.pause()) : (this.Gk = g, this.Cz = h, g.play()); return h }, F1: function() { f.log("pauseEffect not supported in single audio mode!") }, E1: function() { var c = this.cu, d = this.ZF, e = this.Gk; if (e) { for (var g = 0, h = c.length; g < h; g++) d.push(c[g]); c.length = 0; d.push(this.Cz); e.pause() } }, c2: function() { f.log("resumeEffect not supported in single audio mode!") }, b2: function() { var c = this.cu, d = this.ZF; this.VP() && (this.G1(), this.hw = !0); for (var e = 0, g = d.length; e < g; e++) c.push(d[e]); d.length = 0; !this.Gk && 0 <= c.length && (c = c.pop(), d = this.li[c]) && (this.Cz = c, this.Gk = d, this.lr(d)) }, k3: function(c) { var d = this.Gk, e = this.cu, g = this.ZF; d && this.Cz == c ? this.Rt(d) : (d = e.indexOf(c), 0 <= d ? e.splice(d, 1) : (d = g.indexOf(c), 0 <= d && g.splice(d, 1))) }, iJ: function() { this.HY(); !this.Gk && this.hw && (this.lr(this.Lh), this.Uj = 2, this.hw = !1, this.Nz = 0) }, z3: function(c) { var d = f.L, e = this.li, g = this.SL, h = this.qW(c), k = this.Gk; d.wh(c); if (0 != h.length || g[c]) { d = 0 < h.length ? h[0].src : g[c].src; delete this.GE[c]; delete g[c]; for (var m in e) e[m].src == d && delete e[m]; k && k.src == d && this.Rt(k) } }, fsa: function(c) { var d = this.SL[c], e = this.cu, g = this.ZF, h = this.li; if (d) d.currentTime = 0; else { d = this.nW(c); if (!d) return null; d = d.cloneNode(!0); this.bt && f.ub(d, "pause", this.bt); d.volume = this.TL; this.SL[c] = d } c = 0; for (var k = e.length; c < k;) h[e[c]] == d ? e.splice(c, 1) : c++; c = 0; for (k = g.length; c < k;) h[g[c]] == d ? g.splice(c, 1) : c++; d.HF = !0; return d }, HY: function() { var c = this.Gk, d = this.GE, e = this.SL, g = this.cu, h = this.ZF; if (c || 0 != g.length || 0 != h.length) { for (var k in e) { var m = e[k]; m.duration && Infinity != m.duration && (m.currentTime = m.duration) } g.length = 0; h.length = 0; for (k in d) for (e = d[k], g = 0, h = e.length; g < h; g++) m = e[g], m.loop = !1, m.duration && Infinity != m.duration && (m.currentTime = m.duration); c && this.Rt(c) } }, bt: function() { if (!this.OW) { var c = this.jsa(); if (c) c.HF ? (delete c.HF, c.play()) : this.lr(c); else if (this.hw) { c = this.Lh; if (c.duration && Infinity != c.duration) { var d = c.currentTime + this.Nz, d = d - c.duration * (d / c.duration | 0); c.currentTime = d } this.Nz = 0; this.lr(c); this.Uj = 2; this.hw = !1 } } }, jsa: function() { var c = this.cu, d = this.li, e = this.Gk, g = e ? e.currentTime - (e.startTime || 0) : 0; for (this.Nz += g; 0 != c.length;) { var h = c.pop(); if (e = d[h]) { if (e.HF || e.loop || e.duration && e.currentTime + g < e.duration) return this.Cz = h, this.Gk = e, !e.HF && e.duration && Infinity != e.duration && (c = e.currentTime + g, c -= e.duration * (c / e.duration | 0), e.currentTime = c), e.HF = !1, e; e.duration && Infinity != e.duration && (e.currentTime = e.duration) } } return this.Gk = this.Cz = null }, naa: function() { var c = this.Gk; this.OW = !0; if (c = 2 == this.Uj ? this.Lh : c) this.aG.push(c), c.pause() }, Kaa: function() { var c = this.aG; this.OW = !1; 0 < c.length && (this.lr(c[0]), c.length = 0) } })); f.UU = { SN: null, gP: function() { return f.L.vwa }, UW: function(c, d, e, g, h, k, m) { var n = this, p = f.L, s = f.path, u = this.SN, v = ""; if (0 == u.length) return m("can not support audio!"); if (-1 == g) v = (s.zp(c) || "").toLowerCase(), n.wwa(v) || (v = u[0], g = 0); else if (g < u.length) v = u[g]; else return m("can not found the resource of audio! Last match url is : " + c); if (0 <= h.indexOf(v)) return n.UW(c, d, e, g + 1, h, k, m); c = s.c_(c, v); h.push(v); k = n.Usa(c, k, function(p) { if (p) return n.UW(c, d, e, g + 1, h, k, m); m(null, k) }, g == u.length - 1); p.jj[d] = k }, wwa: function(c) { return c ? 0 <= this.SN.indexOf(c.toLowerCase()) : !1 }, Usa: function(c, d, e, g) { var h = "file://" == location.origin ? Audio : f.xU || Audio; 2 == arguments.length ? (e = d, d = new h) : 3 < arguments.length && !d && (d = new h); d.src = c; d.K1 = "auto"; h = navigator.userAgent; /Mobile/.test(h) && (/iPhone OS/.test(h) || /iPad/.test(h) || /Firefox/.test(h)) || /MSIE/.test(h) ? (d.load(), e(null, d)) : (f.ub(d, "canplaythrough", function() { e(null, d); this.removeEventListener("canplaythrough", arguments.callee, !1); this.removeEventListener("error", arguments.callee, !1) }, !1), f.ub(d, "error", function() { e("load " + c + " failed"); g && (this.removeEventListener("canplaythrough", arguments.callee, !1), this.removeEventListener("error", arguments.callee, !1)) }, !1), d.load()); return d }, load: function(c, d, e, g) { this.UW(c, d, e, -1, [], null, g) } }; f.UU.SN = function() { var c = f.fd("audio"), d = []; if (c.canPlayType) { var e = function(d) { d = c.canPlayType(d); return "no" != d && "" != d }; e('audio/ogg; codecs\x3d"vorbis"') && d.push(".ogg"); e("audio/mpeg") && d.push(".mp3"); e('audio/wav; codecs\x3d"1"') && d.push(".wav"); e("audio/mp4") && d.push(".mp4"); (e("audio/x-m4a") || e("audio/aac")) && d.push(".m4a") } return d }(); f.L.Xp(["mp3", "ogg", "wav", "mp4", "m4a"], f.UU); f.pe = f.R3 ? new f.R3 : new f.Q3; f.Qa.sZ(f.vf.UJ, function() { f.pe.naa() }); f.Qa.sZ(f.vf.vD, function() { f.pe.Kaa() }); f.tS = 9; f.Gka = 1; f.Jka = 2; f.Kka = 4; f.Hka = 8; f.Ika = 16; f.G4 = 32; f.Lka = 64; f.Fka = 128; f.ro = 256; f.Wg = 1; f.av = 2; f.$u = 4; f.JKa = 8; f.IKa = 8; f.Nc = f.ci.extend({ J$: !1, oOa: !1, vi: null, ta: "Control", vg: function() { return this.J$ }, ee: function(c) { this.J$ = c; for (var d = this.re(), e = 0, g = d.length; e < g; e++) { var h = d[e]; h && h.wb && h.ee(c) } }, Ic: f.Wg, rBa: function() { return this.Ic }, $c: !1, zN: !1, ot: !1, HL: null, Lb: function(c) { this.Ic = (this.$c = c) ? f.Wg : f.$u; this.Xf() }, isEnabled: function() { return this.$c }, Nu: function(c) { this.zN = c; this.Xf() }, WP: function() { return this.zN }, xj: function(c) { this.ot = c; this.Xf() }, UP: function() { return this.ot }, aCa: function() { for (var c = this.getParent(); null != c; c = c.getParent()) if (!c.Na) return !1; return !0 }, ctor: function() { f.ci.prototype.ctor.call(this); this.HL = {}; this.Ea = f.color.WHITE }, j: function() { if (f.ci.prototype.j.call(this)) { this.Ic = f.Wg; this.$c = !0; this.ot = this.zN = !1; var c = f.Xa.create({ event: f.Xa.zs }); this.rc && (c.rc = this.rc.bind(this)); this.hd && (c.hd = this.hd.bind(this)); this.gd && (c.gd = this.gd.bind(this)); this.ef && (c.ef = this.ef.bind(this)); this.vi = c; return !0 } return !1 }, ba: function() { var c = this.vi; c.aj || f.Qa.addListener(c, this); f.v.prototype.ba.call(this) }, Di: function(c) { for (var d = 0, e = f.tS; d < e; d++) if (c & 1 << d) for (var g = this.RV(1 << d), h = 0, k = g.length; h < k; h++) g[h].NCa(this) }, VG: function(c, d, e) { for (var g = 0, h = f.tS; g < h; g++) e & 1 << g && this.B8(c, d, 1 << g) }, y1a: function(c, d, e) { for (var g = 0, h = f.tS; g < h; g++) e & 1 << g && this.Zta(c, d, 1 << g) }, Dp: function(c) { return this.yi(c.cf()) }, Yn: function(c) { c = c.cf(); c = this.getParent().yi(c); return f.Bu(this.Ee(), c) }, sOa: function() { return null }, RV: function(c) { c = c.toString(); this.HL[c] || (this.HL[c] = []); return this.HL[c] }, B8: function(c, d, e) { c = new f.Xla(c, d, e); this.RV(e).push(c) }, Zta: function(c, d, e) { e = this.RV(e); if (c || d) for (var g = 0; g < e.length;) { var h = e[g], k = !0; c && (k = c == h.bea()); d && (k = k && d == h.Ir()); k ? f.Ld(e, h) : g++ } else e.length = 0 }, Xf: function() {} }); q = f.Nc.prototype; f.d(q, "state", q.rBa); f.d(q, "enabled", q.isEnabled, q.Lb); f.d(q, "selected", q.WP, q.Nu); f.d(q, "highlighted", q.UP, q.xj); q = null; f.Nc.create = function() { var c = new f.Nc; return c && c.j() ? c : null }; f.K4 = 3435855873; f.Xm = f.Nc.extend({ kF: !1, vJ: !1, Rh: null, IF: null, eF: null, zL: null, Mw: null, Ih: null, Ib: 0, iA: !1, YN: null, FG: null, ZN: null, Av: null, kaa: !1, MM: 0, LM: 0, ta: "ControlButton", ctor: function() { f.Nc.prototype.ctor.call(this); this.Rh = t(0, 0); this.IF = r(0, 0); this.eF = ""; this.zL = f.color.WHITE; this.YN = {}; this.FG = {}; this.ZN = {}; this.Av = {} }, j: function() { return this.OP(f.ia.create("", "Arial", 12), f.Ua.create()) }, Xf: function() { if (this.kaa) { this.Mw && this.Mw.za(!1); this.Ih && this.Ih.za(!1); this.z2(this.IF); var c = this.Ic; this.eF = this.s0(c); this.zL = this.zBa(c); var d = this.Mw = this.GH(c); d && d.wa && d.wa(this.eF); d && d.wb && d.F(this.zL); var e = this.e(); d && d.o(e.width / 2, e.height / 2); (c = this.Ih = this.Aza(c)) && c.o(e.width / 2, e.height / 2); e = t(0, 0); if (d) { var g = d.Ee(); e.width = g.width; e.height = g.height } this.kF ? c && c.Ga(e.width + 2 * this.LM, e.height + 2 * this.MM) : c && (g = c.Rh, g = t(g.width, g.height), 0 >= g.width && (g.width = e.width), 0 >= g.height && (g.height = e.height), c.Ga(g)); e = d ? d.Ee() : x(0, 0, 0, 0); g = c ? c.Ee() : x(0, 0, 0, 0); e = f.zC(e, g); this.Ga(e.width, e.height); e = this.e(); d && (d.o(e.width / 2, e.height / 2), d.za(!0)); c && (c.o(e.width / 2, e.height / 2), c.za(!0)) } }, OP: function(c, d) { if (!c || !c.wb) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): label should be non-null"; if (!d) throw "cc.ControlButton.initWithLabelAndBackgroundSprite(): backgroundSprite should be non-null"; return f.Nc.prototype.j.call(this, !0) ? (this.kaa = !0, this.YN = {}, this.FG = {}, this.ZN = {}, this.Av = {}, this.iA = !1, this.vJ = !0, this.eF = null, this.Aga(!0), this.He(t(0, 0)), this.vJ = !0, this.Gm(!1), this.S(0.5, 0.5), this.Mw = c, this.Ih = d, this.J(255), this.ee(!0), this.AR(c.qc(), f.Wg), this.zR(c.$a(), f.Wg), this.W2(c, f.Wg), this.aR(d, f.Wg), this.Ic = f.Wg, this.LM = 24, this.MM = 12, this.IF = r(0.5, 0.5), this.He(t(0, 0)), this.Xf(), !0) : !1 }, FCa: function(c, d, e) { c = f.ia.create(c, d, e); return this.OP(c, f.Ua.create()) }, yea: function(c) { var d = f.ia.create("", "Arial", 30); return this.OP(d, c) }, $Qa: function() { return this.kF }, Aga: function(c) { this.kF = c; this.Xf() }, OWa: function() { return this.vJ }, $ha: function(c) { return this.vJ = c }, j0: function() { return this.Rh }, He: function(c) { if (0 === c.width && 0 === c.height) this.kF = !0; else { this.kF = !1; var d = this.Av, e; for (e in d) d[e].He(c) } this.Rh = c; this.Xf() }, oAa: function() { return this.IF }, z2: function(c) { this.IF = c; this.Mw && this.Mw.S(c) }, cOa: function() { return this.eF }, dOa: function() { return this.zL }, vb: function() { return this.Ib }, J: function(c) { f.Nc.prototype.J.call(this, c); var d = this.Av, e; for (e in d) d[e].J(c) }, F: function(c) { f.Nc.prototype.F.call(this, c); var d = this.Av, e; for (e in d) d[e].F(c) }, $a: function() { var c = this.rd; return f.color(c.r, c.g, c.b, c.a) }, SXa: function() { return this.iA }, mOa: function() { return this.MM }, fOa: function() { return this.LM }, G3a: function(c, d) { this.MM = d; this.LM = c; this.Xf() }, Lb: function(c) { f.Nc.prototype.Lb.call(this, c); this.Xf() }, Nu: function(c) { f.Nc.prototype.Nu.call(this, c); this.Xf() }, xj: function(c) { this.Ic = c ? f.av : f.Wg; f.Nc.prototype.xj.call(this, c); (c = this.eP(f.K4)) && this.hJ(c); this.Xf(); this.vJ && (c = f.Db.create(0.05, this.UP() && this.isEnabled() && !this.WP() ? 1.1 : 1), c.Nm(f.K4), this.V(c)) }, rc: function(c) { if (!(this.Yn(c) && this.isEnabled() && this.Na && this.aCa())) return !1; this.iA = !0; this.xj(!0); this.Di(f.Gka); return !0 }, hd: function(c) { this.$c && this.iA && !this.zN ? (c = this.Yn(c)) && !this.ot ? (this.xj(!0), this.Di(f.Hka)) : c && this.ot ? this.Di(f.Jka) : !c && this.ot ? (this.xj(!1), this.Di(f.Ika)) : c || this.ot || this.Di(f.Kka) : this.ot && this.xj(!1) }, gd: function(c) { this.iA = !1; this.xj(!1); this.Yn(c) ? this.Di(f.G4) : this.Di(f.Lka) }, ef: function() { this.iA = !1; this.xj(!1); this.Di(f.Fka) }, s0: function(c) { var d = this.YN; return d ? d[c] ? d[c] : d[f.Wg] : "" }, AR: function(c, d) { this.YN[d] = c || ""; this.Ic == d && this.Xf() }, zBa: function(c) { return (c = this.FG[c]) ? c : (c = this.FG[f.Wg]) ? c : f.color.WHITE }, zR: function(c, d) { this.FG[d] = c; this.Ic == d && this.Xf() }, GH: function(c) { var d = this.ZN; return d[c] ? d[c] : d[f.Wg] }, W2: function(c, d) { var e = this.ZN; if (e[d]) { var g = e[d]; g && this.removeChild(g, !0) } e[d] = c; c.za(!1); c.S(0.5, 0.5); this.n(c, 1); this.Ic == d && this.Xf() }, X2: function(c, d) { var e = this.s0(d); e || (e = ""); this.W2(f.ia.create(e, c, 12), d) }, rWa: function(c) { c = this.GH(c); return null != c && c instanceof f.ia ? c.Cp() : "" }, Y2: function(c, d) { var e = this.GH(d); null != e && e instanceof f.ia && e.Qd(c) }, sWa: function(c) { c = this.GH(c); return null != c && c instanceof f.ia ? c.Un() : 0 }, z4a: function(c, d) { var e = this.s0(d); e || (e = ""); this.W2(f.qq.create(e, c), d) }, qWa: function(c) { c = this.GH(c); return null != c && c instanceof f.qq ? c.qF : "" }, Aza: function(c) { var d = this.Av; return d[c] ? d[c] : d[f.Wg] }, aR: function(c, d) { var e = this.Av; if (e[d]) { var g = e[d]; g && this.removeChild(g, !0) } e[d] = c; c.za(!1); c.S(0.5, 0.5); this.n(c); e = this.Rh; 0 === e.width && 0 === e.height || c.He(e); this.Ic === d && this.Xf() }, l2: function(c, d) { var e = f.Ua.nxa(c); this.aR(e, d) } }); q = f.Xm.prototype; f.d(q, "adjustBackground", q.VRa, q.Aga); f.d(q, "preferredSize", q.j0, q.He); f.d(q, "labelAnchor", q.oAa, q.z2); q = null; f.Xm.create = function(c, d) { var e; if (0 == arguments.length) return (e = new f.Xm) && e.j() ? e : null; 1 == arguments.length ? (e = new f.Xm, e.yea(arguments[0])) : 2 == arguments.length ? (e = new f.Xm, e.OP(c, d)) : 3 == arguments.length && (e = new f.Xm, e.FCa(arguments[0], arguments[1], arguments[2])); return e }; function Ea() { this.a = this.b = this.g = this.r = void 0 } f.TS = function(c, d, e) { this.Vf = c; this.ll = d; this.ga = e }; f.Eh = {}; f.Eh.$w = function(c, d, e, g) { c = f.q.create("#" + c); if (!c) return null; c.o(e); c.S(g); d.n(c); return c }; f.Eh.Nla = function(c) { var d = new f.TS, e, g; e = c.r < c.g ? c.r : c.g; e = e < c.b ? e : c.b; g = c.r > c.g ? c.r : c.g; g = g > c.b ? g : c.b; d.ga = g; e = g - e; if (0 < g) d.ll = e / g; else return d.ll = 0, d.Vf = -1, d; d.Vf = c.r >= g ? (c.g - c.b) / e : c.g >= g ? 2 + (c.b - c.r) / e : 4 + (c.r - c.g) / e; d.Vf *= 60; 0 > d.Vf && (d.Vf += 360); return d }; f.Eh.FT = function(c) { var d, e, g, h, k = new Ea; k.a = 1; if (0 >= c.ll) { if (!c.Vf) return k.r = c.ga, k.g = c.ga, k.b = c.ga, k; k.r = 0; k.g = 0; k.b = 0; return k } d = c.Vf; 360 <= d && (d = 0); d /= 60; h = 0 | d; g = d - h; d = c.ga * (1 - c.ll); e = c.ga * (1 - c.ll * g); g = c.ga * (1 - c.ll * (1 - g)); switch (h) { case 0: k.r = c.ga; k.g = g; k.b = d; break; case 1: k.r = e; k.g = c.ga; k.b = d; break; case 2: k.r = d; k.g = c.ga; k.b = g; break; case 3: k.r = d; k.g = e; k.b = c.ga; break; case 4: k.r = g; k.g = d; k.b = c.ga; break; default: k.r = c.ga, k.g = d, k.b = e } return k }; f.Eh.h4 = function(c, d) { return f.zC(c, d) }; f.Xla = f.N.extend({ Qe: null, ad: null, vL: null, ctor: function(c, d, e) { this.ad = c; this.Qe = d; this.vL = e }, Ir: function() { return this.Qe }, bea: function() { return this.ad }, aTa: function() { return this.vL }, NCa: function(c) { if (this.ad && this.Qe) if ("string" == typeof this.Qe) this.ad[this.Qe](c, this.vL); else this.Qe.call(this.ad, c, this.vL) } }); f.Ua = f.ja.extend({ wb: !0, RA: null, T8: null, jp: !1, cj: null, Zt: null, Nw: null, $t: null, $v: null, Jq: null, zw: null, Qs: null, Dv: null, Ev: null, Nq: null, Jb: !1, Jg: null, Rh: null, Ib: 0, Ea: null, kf: null, vM: 0, xM: 0, wM: 0, uM: 0, kba: !1, CY: !1, Ba: !1, dc: null, ta: "Scale9Sprite", RC: function() { return this.Ba }, oe: function(c, d) { this.dc.push({ al: c, nj: d }) }, jf: function() { this.Ba = !0; for (var c = this.dc, d = 0, e = c.length; d < e; d++) { var g = c[d]; g.al.call(g.nj, this) } c.length = 0 }, iO: function() { var c = this.vM, d = this.xM, e = this.wM, g = this.RA, h = this.uM; this.Cc(0 === c && 0 === d && 0 === e && 0 === h ? x(0, 0, 0, 0) : this.CY ? x(h, c, g.width - e - c, g.height - d - h) : x(c, d, g.width - c - e, g.height - d - h)) }, wva: function() { if (this.Zt && this.$t && this.Ev && this.Qs && this.Jq) { var c = this.m, d = this.Zt, e = this.$t, g = this.Ev, h = this.Qs, k = this.Jq, m = this.Jq.e(), n = d.e(), p = h.e(), s = c.width - n.width - e.e().width, c = c.height - n.height - g.e().height, s = s / m.width, c = c / m.height, n = m.width * s, u = m.height * c, v = p.width, p = p.height; if (f.K == f.na) { var z = Math.round(n); n != z && (n = z, s = n / m.width); z = Math.round(u); u != z && (u = z, c = u / m.height) } k.jb(s); k.tb(c); var m = this.$v, z = this.zw, A = this.Nw, B = this.Dv, C = r(0, 0); h.S(C); g.S(C); d.S(C); e.S(C); m.S(C); z.S(C); A.S(C); B.S(C); k.S(C); h.o(0, 0); g.o(v + n, 0); d.o(0, p + u); e.o(v + n, p + u); m.o(0, p); m.tb(c); z.o(v + n, p); z.tb(c); B.o(v, 0); B.jb(s); A.o(v, p + u); A.jb(s); k.o(v, p) } }, ctor: function() { f.ja.prototype.ctor.call(this); this.RA = x(0, 0, 0, 0); this.T8 = x(0, 0, 0, 0); this.Nq = f.color(255, 255, 255, 255); this.Jg = t(0, 0); this.Rh = t(0, 0); this.Ea = f.color(255, 255, 255, 255); this.Ib = 255; this.kf = x(0, 0, 0, 0); this.dc = [] }, QAa: function() { return this.Jg }, j0: function() { return this.Rh }, iOa: function() { return this.Rh.width }, hOa: function() { return this.Rh.height }, He: function(c) { this.Ga(c); this.Rh = c }, ROa: function(c) { this.Uh(c); this.Rh.width = c }, QOa: function(c) { this.Th(c); this.Rh.height = c }, vb: function() { return this.Ib }, J: function(c) { if (this.cj) { this.Ib = c; for (var d = this.cj.re(), e = 0; e < d.length; e++) { var g = d[e]; g && g.wb && g.J(c) } this.Ea.a = c } }, hc: function(c) { f.ja.prototype.hc.call(this, c); this.J(this.kb) }, $a: function() { var c = this.Ea; return f.color(c.r, c.g, c.b, c.a) }, F: function(c) { if (this.cj) { var d = this.Ea; d.r = c.r; d.g = c.g; d.b = c.b; for (var d = this.cj.re(), e = 0; e < d.length; e++) { var g = d[e]; g && g.wb && g.F(c) } void 0 === c.a || c.Yw || this.J(c.a) } }, Wb: function(c) { f.ja.prototype.Wb.call(this, c); this.F(this.Ab) }, X_: function() { return this.kf }, Cc: function(c) { if (this.cj) { var d = this.m, e = d.width, d = d.height; this.XC(this.cj, this.RA, this.CY, c); this.Ga(e, d) } }, jAa: function() { return this.vM }, eha: function(c) { this.vM = c; this.iO() }, lAa: function() { return this.xM }, gha: function(c) { this.xM = c; this.iO() }, kAa: function() { return this.wM }, fha: function(c) { this.wM = c; this.iO() }, iAa: function() { return this.uM }, dha: function(c) { this.uM = c; this.iO() }, Ga: function(c, d) { f.v.prototype.Ga.call(this, c, d); this.jp = !0 }, Uh: function(c) { f.v.prototype.Uh.call(this, c); this.jp = !0 }, Th: function(c) { f.v.prototype.Th.call(this, c); this.jp = !0 }, I: function(c) { this.jp && (this.wva(), this.jp = !1); f.ja.prototype.I.call(this, c) }, j: function() { return this.LP(null, x(0, 0, 0, 0), !1, x(0, 0, 0, 0)) }, LP: function(c, d, e, g) { void 0 === g && (g = e, e = !1); c && this.XC(c, d, e, g); this.S(0.5, 0.5); return this.jp = !0 }, Ge: function(c, d, e) { c instanceof f.Qy ? (e = c = d, d = x(0, 0, 0, 0)) : (d = d || x(0, 0, 0, 0), e = e || x(0, 0, 0, 0)); if (!c) throw "cc.Scale9Sprite.initWithFile(): file should be non-null"; var g = f.nb.Ru(c); if (!g) { var g = f.nb.vd(c), h = g.ie; (this.Ba = h) || g.oe(function(c) { var d = this.Rh, d = t(d.width, d.height); c = c.e(); this.XC(this.cj, x(0, 0, c.width, c.height), !1, this.kf); this.He(d); this.jp = !0; this.jf() }, this) } return this.LP(f.Fh.create(c, 9), d, !1, e) }, pj: function(c, d) { if (!c || !c.sb()) throw "cc.Scale9Sprite.initWithSpriteFrame(): spriteFrame should be non-null and its texture should be non-null"; d = d || x(0, 0, 0, 0); var e = c.Ba; (this.Ba = e) || c.oe(function(c) { var d = this.Rh, d = t(d.width, d.height); this.XC(this.cj, c.$h(), f.K == f.na && c.lg, this.kf); this.He(d); this.jp = !0; this.jf() }, this); e = f.Fh.create(c.sb(), 9); return this.LP(e, c.$h(), f.K == f.na && c.lg, d) }, hl: function(c, d) { if (!c) throw "cc.Scale9Sprite.initWithSpriteFrameName(): spriteFrameName should be non-null"; d = d || x(0, 0, 0, 0); var e = f.Je.Ca(c); return null == e ? (f.log("cc.Scale9Sprite.initWithSpriteFrameName(): can't find the sprite frame by spriteFrameName"), !1) : this.pj(e, d) }, H1a: function(c) { var d = new f.Ua; return d && d.LP(this.cj, this.RA, !1, c) ? d : null }, ee: function(c) { if (this.cj) { this.Jb = c; var d = this.cj.re(); if (d) for (var e = 0, g = d.length; e < g; e++) d[e].ee(c) } }, vg: function() { return this.Jb }, XC: function(c, d, e, g) { var h = this.vb(), k = this.$a(); d = x(d.x, d.y, d.width, d.height); this.Cf(!0); this.cj != c && (this.cj = c); c = c.sb(); var m = c.ie; if (this.Ba = m) { c = this.cj; c.Cf(!0); m = this.kf; m.x = g.x; m.y = g.y; m.width = g.width; m.height = g.height; this.CY = e; m = c.sb(); f.gG(d) && (d = m.e(), d = x(0, 0, d.width, d.height)); var n = this.RA = d; n.x = d.x; n.y = d.y; n.width = d.width; n.height = d.height; this.Jg.width = d.width; this.Jg.height = d.height; n = this.Rh; 0 === n.width && 0 === n.height && (n.width = d.width, n.height = d.height); n = this.T8; g && (n.x = g.x, n.y = g.y, n.width = g.width, n.height = g.height); var p = d.width; g = d.height; f.gG(n) && (n.x = p / 3, n.y = g / 3, n.width = p / 3, n.height = g / 3); var s = n.x, u = n.width, v = p - (s + u), z = n.y, A = n.height, B = g - (z + A), C = 0, G = 0; g = x(C, G, s, z); var C = C + s, n = x(C, G, u, z), p = x(C + u, G, v, z), C = 0, G = 0 + z, L = x(C, G, s, A), C = C + s, O = x(C, G, u, A), C = C + u, R = x(C, G, v, A), C = 0, G = 0 + z + A, z = x(C, G, s, B), C = C + s, s = x(C, G, u, B), C = C + u, u = x(C, G, v, B), v = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }; if (e) { e = O; var B = u, C = z, G = p, A = g, M = R, K = L, P = s, I = n, v = f.xJ(v, d.height + d.x, d.y), v = f.hja(v), O = f.Ki(O, v), u = f.Ki(u, v), z = f.Ki(z, v), p = f.Ki(p, v); g = f.Ki(g, v); R = f.Ki(R, v); L = f.Ki(L, v); s = f.Ki(s, v); n = f.Ki(n, v); e.x = O.x; e.y = O.y; B.x = u.x; B.y = u.y; C.x = z.x; C.y = z.y; G.x = p.x; G.y = p.y; A.x = g.x; A.y = g.y; M.x = R.x; M.y = R.y; K.x = L.x; K.y = L.y; P.x = s.x; P.y = s.y; I.x = n.x; I.y = n.y; this.Jq = new f.q; this.Jq.va(m, e, !0); c.n(this.Jq, 0, f.Ua.A6); this.Nw = new f.q; this.Nw.va(m, I, !0); c.n(this.Nw, 1, f.Ua.D6); this.Dv = new f.q; this.Dv.va(m, P, !0); c.n(this.Dv, 1, f.Ua.z6); this.$v = new f.q; this.$v.va(m, K, !0); c.n(this.$v, 1, f.Ua.B6); this.zw = new f.q; this.zw.va(m, M, !0); c.n(this.zw, 1, f.Ua.C6); this.Zt = new f.q; this.Zt.va(m, A, !0); c.n(this.Zt, 2, f.Ua.E6); this.$t = new f.q; this.$t.va(m, G, !0); c.n(this.$t, 2, f.Ua.F6); this.Qs = new f.q; this.Qs.va(m, C, !0); c.n(this.Qs, 2, f.Ua.cna); this.Ev = new f.q; this.Ev.va(m, B, !0) } else v = f.xJ(v, d.x, d.y), f.Fo(O, v), f.Fo(u, v), f.Fo(z, v), f.Fo(p, v), f.Fo(g, v), f.Fo(R, v), f.Fo(L, v), f.Fo(s, v), f.Fo(n, v), this.Jq = new f.q, this.Jq.va(m, O), c.n(this.Jq, 0, f.Ua.A6), this.Nw = new f.q, this.Nw.va(m, n), c.n(this.Nw, 1, f.Ua.D6), this.Dv = new f.q, this.Dv.va(m, s), c.n(this.Dv, 1, f.Ua.z6), this.$v = new f.q, this.$v.va(m, L), c.n(this.$v, 1, f.Ua.B6), this.zw = new f.q, this.zw.va(m, R), c.n(this.zw, 1, f.Ua.C6), this.Zt = new f.q, this.Zt.va(m, g), c.n(this.Zt, 2, f.Ua.E6), this.$t = new f.q, this.$t.va(m, p), c.n(this.$t, 2, f.Ua.F6), this.Qs = new f.q, this.Qs.va(m, z), c.n(this.Qs, 2, f.Ua.cna), this.Ev = new f.q, this.Ev.va(m, u); c.n(this.Ev, 2, f.Ua.dna); this.Ga(d); this.n(c); this.kba && (this.J(h), 255 === k.r && 255 === k.g && 255 === k.b || this.F(k)); return this.kba = !0 } c.oe(function() { this.jp = !0; this.jf() }, this) }, Dd: function(c) { var d = f.Fh.create(c.sb(), 9), e = c.Ba; (this.Ba = e) || c.oe(function(c) { var d = this.Rh, d = t(d.width, d.height); this.XC(this.cj, c.$h(), f.K == f.na && c.lg, this.kf); this.He(d); this.jp = !0; this.jf() }, this); this.XC(d, c.$h(), f.K == f.na && c.lg, x(0, 0, 0, 0)); this.uM = this.wM = this.xM = this.vM = 0 } }); q = f.Ua.prototype; f.d(q, "preferredSize", q.j0, q.He); f.d(q, "capInsets", q.X_, q.Cc); f.d(q, "insetLeft", q.jAa, q.eha); f.d(q, "insetTop", q.lAa, q.gha); f.d(q, "insetRight", q.kAa, q.fha); f.d(q, "insetBottom", q.iAa, q.dha); q = null; f.Ua.create = function(c, d, e) { var g; if (2 === arguments.length) if ("string" == typeof c) { if ((g = new f.Ua) && g.Ge(c, d)) return g } else { if (c instanceof f.Qy && (g = new f.Ua) && g.Ge(c, e)) return g } else if (3 === arguments.length) { if ((g = new f.Ua) && g.Ge(c, d, e)) return g } else if (1 === arguments.length) { if ((g = new f.Ua) && g.Ge(c)) return g } else if (0 === arguments.length && (g = new f.Ua) && g.j()) return g; return null }; f.Ua.nxa = function(c) { var d = new f.Ua; return d && d.pj(c, void 0) ? d : null }; f.Ua.Cca = function(c, d) { if (!c) throw "cc.Scale9Sprite.createWithSpriteFrameName(): spriteFrameName should be non-null"; var e = new f.Ua; return e && e.hl(c, d) ? e : null }; f.Ua.A6 = 0; f.Ua.D6 = 1; f.Ua.B6 = 2; f.Ua.C6 = 3; f.Ua.z6 = 4; f.Ua.F6 = 5; f.Ua.E6 = 6; f.Ua.dna = 7; f.vK = f.Me.extend({}); f.vK.T5a = function(c) { var d = new f.vK; d.j(); d.Ga(0, c); return d }; f.vK.ZWa = function(c) { var d = new f.vK; d.j(); d.Ga(c, 0); return d }; f.fK = f.Me.extend({ wb: !0, Ea: null, Ib: 0, ta: "MenuPassive", ctor: function() {}, $a: function() { var c = this.Ea; return f.color(c.r, c.g, c.b, c.a) }, F: function(c) { var d = this.Ea; d.r = c.r; d.g = c.g; d.b = c.b; if (this.i && 0 < this.i.length) for (d = 0; d < this.i.length; d++) this.i[d] && this.i[d].wb && this.i[d].F(c); void 0 === c.a || c.Yw || this.J(c.a) }, vb: function() { return this.Ib }, J: function(c) { this.Ib = c; if (this.i && 0 < this.i.length) for (var d = 0; d < this.i.length; d++) this.i[d] && this.i[d].wb && this.i[d].J(c); this.Ea.a = c }, NP: function(c, d) { if (this.j()) { var e = f.Q.Y; this.Gm(!0); this.S(0.5, 0.5); this.Ga(e); this.o(e.width / 2, e.height / 2); e = 0; if (c) { this.n(c, e); for (var g = 0; g < d.length; g++) d[g] && (e++, this.n(d[g], e)) } return !0 } return !1 }, cwa: function() { this.yZ(f.OJ) }, yZ: function(c) { var d = -c, e; if (this.i && 0 < this.i.length) for (e = 0; e < this.i.length; e++) this.i[e] && (d += this.i[e].e().height * this.i[e].ra + c); var g = 0, h = d / 2; if (this.i && 0 < this.i.length) for (e = 0; e < this.i.length; e++) this.i[e] && (g = Math.max(g, this.i[e].e().width), this.i[e].o(0, h - this.i[e].e().height * this.i[e].ra / 2), h -= this.i[e].e().height * this.i[e].ra + c); this.Ga(g, d) }, $va: function() { this.xZ(f.OJ) }, xZ: function(c) { var d = -c, e; if (this.i && 0 < this.i.length) for (e = 0; e < this.i.length; e++) this.i[e] && (d += this.i[e].e().width * this.i[e].ka + c); var g = 0, h = -d / 2; if (this.i && 0 < this.i.length) for (e = 0; e < this.i.length; e++) this.i[e] && (g = Math.max(g, this.i[e].e().height), this.i[e].o(h + this.i[e].e().width * this.i[e].ka / 2, 0), h += this.i[e].e().width * this.i[e].ka + c); this.Ga(d, g) }, awa: function(c) { var d = [], e; for (e = 1; e < arguments.length; e++) d.push(arguments[e]); var g = -5, h = 0, k = 0, m = 0, n, p; if (this.i && 0 < this.i.length) for (e = 0; e < this.i.length; e++) this.i[e] && (h >= d.length ? f.log("cc.MenuPassive.alignItemsInColumns(): invalid row index") : (n = d[h]) ? (p = this.i[e].e().height, k = 0 | (k >= p || null == p ? k : p), ++m, m >= n && (g += k + 5, k = m = 0, ++h)) : f.log("cc.MenuPassive.alignItemsInColumns(): can not have zero columns on a row")); var s = f.Q.Y, u = n = k = h = 0, v = 0, g = g / 2; if (this.i && 0 < this.i.length) for (e = 0; e < this.i.length; e++) this.i[e] && (0 == n && (n = d[h], v = u = s.width / (1 + n)), p = this.i[e].e().height, k = 0 | (k >= p || null == p ? k : p), this.i[e].o(v - s.width / 2, g - this.i[e].e().height / 2), v += u, ++m, m >= n && (g -= k + 5, k = n = m = 0, ++h)) }, bwa: function(c) { var d = [], e; for (e = 1; e < arguments.length; e++) d.push(arguments[e]); var g = [], h = [], k = -10, m = -5, n = 0, p = 0, s = 0, u, v; if (this.i && 0 < this.i.length) for (e = 0; e < this.i.length; e++) this.i[e] && (n >= d.length ? f.log("cc.MenuPassive.alignItemsInRows(): invalid row index") : (u = d[n]) ? (v = this.i[e].e().width, p = 0 | (p >= v || null == v ? p : v), m += 0 | this.i[e].e().height + 5, ++s, s >= u && (g.push(p), h.push(m), k += p + 10, p = s = 0, m = -5, ++n)) : f.log("cc.MenuPassive.alignItemsInColumns(): can't have zero rows on a column")); m = f.Q.Y; p = n = 0; u = null; var k = -k / 2, z = 0; if (this.i && 0 < this.i.length) for (e = 0; e < this.i.length; e++) this.i[e] && (null == u && (u = d[n], z = h[n]), v = this.i[e].e().width, p = 0 | (p >= v || null == v ? p : v), this.i[e].o(k + g[n] / 2, z - m.height / 2), z -= this.i[e].e().height + 10, ++s, s >= u && (k += p + 5, p = u = s = 0, ++n)) }, ee: function() {}, vg: function() { return !1 } }); f.fK.create = function(c) { c || (c = null); for (var d = [], e = 1; e < arguments.length; e++) d.push(arguments[e]); return (e = new f.fK) && e.NP(c, d) ? e : null }; f.fK.FQa = function(c) { return f.fK.create(c, null) }; f.NJ = f.Nc.extend({ $X: 0, iL: 0, Re: null, wta: null, cba: null, mm: null, me: null, Ck: 0, Fq: 0, ta: "ControlSaturationBrightnessPicker", fBa: function() { return this.$X }, Eza: function() { return this.iL }, sH: function() { return this.Re }, RAa: function() { return this.iL }, kBa: function() { return this.cba }, n0: function() { return this.mm }, p0: function() { return this.me }, K0: function(c, d) { return f.Nc.prototype.j.call(this) ? (this.Re = f.Eh.$w("colourPickerBackground.png", c, d, r(0, 0)), this.wta = f.Eh.$w("colourPickerOverlay.png", c, d, r(0, 0)), this.cba = f.Eh.$w("colourPickerShadow.png", c, d, r(0, 0)), this.mm = f.Eh.$w("colourPicker.png", c, d, r(0.5, 0.5)), this.me = d, this.Ck = 35, this.Fq = this.Re.e().width / 2, !0) : !1 }, Lb: function(c) { f.Nc.prototype.Lb.call(this, c); this.mm && this.mm.J(c ? 255 : 128) }, Kia: function(c) { var d = new f.TS; d.ll = 1; d.Vf = c.Vf; d.ga = 1; c = f.Eh.FT(d); this.Re.F(f.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b)) }, $Ia: function(c) { this.nO(r(this.me.x + this.Ck + this.Fq * (1 - c.ll), this.me.y + this.Ck + this.Fq * c.ga)) }, nO: function(c) { var d = this.me.x + 0.5 * this.Re.Ee().width, e = this.me.y + 0.5 * this.Re.Ee().height, g = c.x - d, h = c.y - e, k = Math.sqrt(g * g + h * h), g = Math.atan2(h, g), h = 0.5 * this.Re.Ee().width; k > h && (c.x = d + h * Math.cos(g), c.y = e + h * Math.sin(g)); this.mm.o(c); c.x < this.me.x + this.Ck ? c.x = this.me.x + this.Ck : c.x > this.me.x + this.Ck + this.Fq - 1 && (c.x = this.me.x + this.Ck + this.Fq - 1); c.y < this.me.y + this.Ck ? c.y = this.me.y + this.Ck : c.y > this.me.y + this.Ck + this.Fq && (c.y = this.me.y + this.Ck + this.Fq); this.$X = 1 - Math.abs((this.me.x + this.Ck - c.x) / this.Fq); this.iL = Math.abs((this.me.y + this.Ck - c.y) / this.Fq) }, SE: function(c) { var d = this.me.x + 0.5 * this.Re.Ee().width, e = this.me.y + 0.5 * this.Re.Ee().height, d = c.x - d, e = c.y - e; return Math.sqrt(d * d + e * e) <= 0.5 * this.Re.Ee().width ? (this.nO(c), this.Di(f.ro), !0) : !1 }, rc: function(c) { if (!this.isEnabled() || !this.Na) return !1; c = this.Dp(c); return this.SE(c) }, hd: function(c) { c = this.Dp(c); this.SE(c) } }); q = f.NJ.prototype; f.d(q, "saturation", q.fBa); f.d(q, "brightness", q.Eza); f.d(q, "background", q.sH); f.d(q, "overlay", q.RAa); f.d(q, "shadow", q.kBa); f.d(q, "slider", q.n0); f.d(q, "startPos", q.p0); q = null; f.NJ.create = function(c, d) { var e = new f.NJ; e.K0(c, d); return e }; f.MJ = f.Nc.extend({ $z: 0, EF: 0, Re: null, mm: null, me: null, ta: "ControlHuePicker", dAa: function() { return this.$z }, kR: function(c) { this.$z = c; this.bha(this.$z / 360) }, eAa: function() { return this.EF }, bha: function(c) { this.EF = c; this.$z = 360 * this.EF; c = this.Re.Ee(); var d = 0.5 * c.width - 15, e = f.sg(360 * this.EF - 180); this.mm.o(this.me.x + 0.5 * c.width + d * Math.cos(e), this.me.y + 0.5 * c.height + d * Math.sin(e)) }, Lb: function(c) { f.Nc.prototype.Lb.call(this, c); this.mm && this.mm.J(c ? 255 : 128) }, sH: function() { return this.Re }, n0: function() { return this.mm }, p0: function() { return this.me }, K0: function(c, d) { return f.Nc.prototype.j.call(this) ? (this.Re = f.Eh.$w("huePickerBackground.png", c, d, r(0, 0)), this.mm = f.Eh.$w("colourPicker.png", c, d, r(0.5, 0.5)), this.mm.o(d.x, d.y + 0.5 * this.Re.Ee().height), this.me = d, this.EF = this.$z = 0, !0) : !1 }, nO: function(c) { var d = this.Re.Ee(); this.kR(f.yC(Math.atan2(c.y - (this.me.y + 0.5 * d.height), c.x - (this.me.x + 0.5 * d.width))) + 180); this.Di(f.ro) }, SE: function(c) { var d = Math.sqrt(Math.pow(c.x + 10, 2) + Math.pow(c.y, 2)); return 80 > d && 59 < d ? (this.nO(c), !0) : !1 }, rc: function(c) { if (!this.isEnabled() || !this.Na) return !1; c = this.Dp(c); return this.SE(c) }, hd: function(c) { c = this.Dp(c); this.SE(c) } }); q = f.MJ.prototype; f.d(q, "hue", q.dAa, q.kR); f.d(q, "huePercent", q.eAa, q.bha); f.d(q, "background", q.sH); f.d(q, "slider", q.n0); f.d(q, "startPos", q.p0); q = null; f.MJ.create = function(c, d) { var e = new f.MJ; e.K0(c, d); return e }; f.xS = f.Nc.extend({ Zl: null, Xs: null, Sv: null, Re: null, ta: "ControlColourPicker", cCa: function(c) { this.Zl.Vf = c.$z; c = f.Eh.FT(this.Zl); f.Nc.prototype.F.call(this, f.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b)); this.Di(f.ro); this.uva() }, Zwa: function(c) { this.Zl.ll = c.$X; this.Zl.ga = c.iL; c = f.Eh.FT(this.Zl); f.Nc.prototype.F.call(this, f.color(0 | 255 * c.r, 0 | 255 * c.g, 0 | 255 * c.b)); this.Di(f.ro) }, F: function(c) { f.Nc.prototype.F.call(this, c); var d = new Ea; d.r = c.r / 255; d.g = c.g / 255; d.b = c.b / 255; d.a = 1; this.Zl = f.Eh.Nla(d); this.Dba() }, sH: function() { return this.Re }, j: function() { if (f.Nc.prototype.j.call(this)) { f.Je.vp(Ha.f4); var c = f.Fh.create(Ha.g4); this.n(c); this.Zl = new f.TS(0, 0, 0); this.Re = f.Eh.$w("menuColourPanelBackground.png", c, r(0, 0), r(0.5, 0.5)); var d = f.gc(this.Re.Od(), r(this.Re.e().width / 2, this.Re.e().height / 2)); this.Sv = f.MJ.create(c, r(d.x + 8, d.y + 8)); this.Xs = f.NJ.create(c, r(d.x + 28, d.y + 28)); this.Sv.VG(this, this.cCa, f.ro); this.Xs.VG(this, this.Zwa, f.ro); this.Dba(); this.n(this.Sv); this.n(this.Xs); this.Ga(this.Re.e()); return !0 } return !1 }, uva: function() { this.Sv.kR(this.Zl.Vf); this.Xs.Kia(this.Zl) }, Dba: function() { this.Sv.kR(this.Zl.Vf); this.Xs.Kia(this.Zl); this.Xs.$Ia(this.Zl) }, Lb: function(c) { f.Nc.prototype.Lb.call(this, c); null != this.Sv && this.Sv.Lb(c); this.Xs && this.Xs.Lb(c) }, rc: function() { return !1 } }); q = f.xS.prototype; f.d(q, "background", q.sH); q = null; f.xS.create = function() { var c = new f.xS; c.j(); return c }; var Ha = Ha || {}; Ha.f4 = Ha.f4 || "res/extensions/CCControlColourPickerSpriteSheet.plist"; Ha.g4 = Ha.g4 || "res/extensions/CCControlColourPickerSpriteSheet.png"; f.f7 = 24; f.xMa = 8; f.zS = f.Nc.extend({ Kd: 0, Ub: 0, tc: 0, QM: 0, OM: 0, yc: null, Ft: null, Ih: null, ta: "ControlSlider", Uf: function() { return this.Kd }, ue: function(c) { c = Math.max(c, this.Ub); this.Kd = c = Math.min(c, this.tc); this.Xf(); this.Di(f.ro) }, yH: function() { return this.Ub }, SI: function(c) { this.QM = this.Ub = c; this.Ub >= this.tc && (this.tc = this.Ub + 1); this.ue(this.Kd) }, xH: function() { return this.tc }, RI: function(c) { this.OM = this.tc = c; this.tc <= this.Ub && (this.Ub = this.tc - 1); this.ue(this.Kd) }, Yn: function(c) { c = c.cf(); c = this.getParent().yi(c); var d = this.Ee(); d.width += this.yc.e().width; d.x -= this.yc.e().width / 2; return f.Bu(d, c) }, Jx: function(c) { c = c.cf(); c = this.yi(c); 0 > c.x ? c.x = 0 : c.x > this.Ih.e().width && (c.x = this.Ih.e().width); return c }, DAa: function() { return this.QM }, iHa: function(c) { this.QM = c }, BAa: function() { return this.OM }, gHa: function(c) { this.OM = c }, FH: function() { return this.yc }, XAa: function() { return this.Ft }, zza: function() { return this.Ih }, BCa: function(c, d, e) { return f.Nc.prototype.j.call(this) ? (this.Gm(!1), this.Ih = c, this.Ft = d, this.yc = e, c = f.Eh.h4(c.Ee(), e.Ee()), this.Ga(c.width, c.height), this.Ih.S(0.5, 0.5), this.Ih.o(c.width / 2, c.height / 2), this.n(this.Ih), this.Ft.S(0, 0.5), this.Ft.o(0, c.height / 2), this.n(this.Ft), this.yc.o(0, c.height / 2), this.n(this.yc), this.Ub = 0, this.tc = 1, this.ue(this.Ub), !0) : !1 }, Lb: function(c) { f.Nc.prototype.Lb.call(this, c); this.yc && this.yc.J(c ? 255 : 128) }, eIa: function(c) { this.Nu(!0); this.yc.F(f.color.GRAY); this.ue(this.G3(c)) }, gIa: function(c) { this.ue(this.G3(c)) }, fIa: function() { this.WP() && this.ue(this.G3(this.yc.Od())); this.yc.F(f.color.WHITE); this.Nu(!1) }, xWa: function(c) { c = c.cf(); c = this.yi(c); 0 > c.x ? c.x = 0 : c.x > this.Ih.e().width + f.f7 && (c.x = this.Ih.e().width + f.f7); return c }, rc: function(c) { if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1; c = this.Jx(c); this.eIa(c); return !0 }, hd: function(c) { c = this.Jx(c); this.gIa(c) }, gd: function() { this.fIa(r(0, 0)) }, Xf: function() { this.yc.ls((this.Kd - this.Ub) / (this.tc - this.Ub) * this.Ih.e().width); var c = this.Ft.EH(), c = x(c.x, c.y, this.yc.Vc(), c.height); this.Ft.sc(c, this.Ft.pf) }, G3: function(c) { c = c.x / this.Ih.e().width; return Math.max(Math.min(this.Ub + c * (this.tc - this.Ub), this.OM), this.QM) } }); q = f.zS.prototype; f.d(q, "value", q.Uf, q.ue); f.d(q, "minValue", q.yH, q.SI); f.d(q, "maxValue", q.xH, q.RI); f.d(q, "minAllowedValue", q.DAa, q.iHa); f.d(q, "maxAllowedValue", q.BAa, q.gHa); f.d(q, "thumbSprite", q.FH); f.d(q, "progressSprite", q.XAa); f.d(q, "backgroundSprite", q.zza); q = null; f.zS.create = function(c, d, e) { "string" == typeof c && (c = f.q.create(c), d = f.q.create(d), e = f.q.create(e)); var g = new f.zS; g.BCa(c, d, e); return g }; f.R4 = f.Nc.extend({ Mf: null, A$: 0, OF: !1, tA: !1, ta: "ControlSwitch", ctor: function() { f.Nc.prototype.ctor.call(this) }, G0: function(c, d, e, g, h, k) { if (!c) 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 (!g) throw "cc.ControlSwitch.initWithMaskSprite(): thumbSprite should be non-null."; return this.j() ? (this.tA = !0, this.Mf = new f.S4, this.Mf.G0(c, d, e, g, h, k), this.Mf.o(this.Mf.e().width / 2, this.Mf.e().height / 2), this.n(this.Mf), this.Gm(!1), this.S(0.5, 0.5), this.Ga(this.Mf.e()), !0) : !1 }, oR: function(c, d) { var e = (this.tA = c) ? this.Mf.At : this.Mf.kw; d ? this.Mf.V(f.Xu.create(0.2, "sliderXPosition", this.Mf.or, e)) : this.Mf.wR(e); this.Di(f.ro) }, NXa: function() { return this.tA }, XWa: function() { return this.OF }, Lb: function(c) { this.$c = c; this.Mf.J(c ? 255 : 128) }, Jx: function(c) { c = c.cf(); return c = this.yi(c) }, rc: function(c) { if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1; this.OF = !1; this.A$ = this.Jx(c).x - this.Mf.or; this.Mf.yc.F(f.color.GRAY); this.Mf.Xf(); return !0 }, hd: function(c) { c = this.Jx(c); c = r(c.x - this.A$, 0); this.OF = !0; this.Mf.wR(c.x) }, gd: function(c) { c = this.Jx(c); this.Mf.yc.F(f.color.WHITE); this.OF ? this.oR(!(c.x < this.Mf.e().width / 2), !0) : this.oR(!this.tA, !0) }, ef: function(c) { c = this.Jx(c); this.Mf.yc.F(f.color.WHITE); this.OF ? this.oR(!(c.x < this.Mf.e().width / 2), !0) : this.oR(!this.tA, !0) } }); f.R4.create = function(c, d, e, g, h, k) { var m = new f.R4; return m && m.G0(c, d, e, g, h, k) ? m : null }; f.S4 = f.q.extend({ or: 0, At: 0, kw: 0, pba: 0, ZW: 0, $W: null, un: null, fr: null, yc: null, VF: null, TF: null, xz: null, Wd: null, L8: null, ctor: function() { f.q.prototype.ctor.call(this); this.ZW = this.kw = this.At = this.or = 0; this.$W = t(0, 0); this.TF = this.VF = this.yc = this.fr = this.un = null }, G0: function(c, d, e, g, h, k) { return f.q.prototype.va.call(this, c.sb()) ? (this.At = 0, this.kw = -d.e().width + g.e().width / 2, this.or = this.At, this.rha(d), this.pha(e), this.$I(g), this.qha(h), this.oha(k), this.Wd = c, c = this.$W = this.Wd.e(), this.Wd.o(0, 0), this.xz = f.Wc.create(), this.xz.S(0.5, 0.5), this.xz.o(c.width / 2, c.height / 2), this.xz.yR(this.Wd), this.L8 = f.nv.create(c.width, c.height), this.xz.n(this.L8.o0()), this.n(this.xz), this.n(this.yc), this.Xf(), !0) : !1 }, Xf: function() { this.un.o(this.un.e().width / 2 + this.or, this.un.e().height / 2); this.fr.o(this.un.e().width + this.fr.e().width / 2 + this.or, this.fr.e().height / 2); this.VF && this.VF.o(this.un.Vc() - this.yc.e().width / 6, this.un.e().height / 2); this.TF && this.TF.o(this.fr.Vc() + this.yc.e().width / 6, this.fr.e().height / 2); this.yc.o(this.un.e().width + this.or, this.$W.height / 2) }, wR: function(c) { c <= this.kw ? c = this.kw : c >= this.At && (c = this.At); this.or = c; this.Xf() }, nBa: function() { return this.or }, Xra: function() { return this.un.e().width }, Ura: function() { return this.fr.e().height }, D3: function(c, d) { f.log("key \x3d " + d + ", value \x3d " + c); this.wR(c) }, pHa: function(c) { this.At = c }, OAa: function() { return this.At }, oHa: function(c) { this.kw = c }, LAa: function() { return this.kw }, dHa: function(c) { this.Wd.ab(c) }, xAa: function() { return this.Wd.sb() }, u4a: function(c) { this.pba = c }, jWa: function() { return this.pba }, cHa: function(c) { this.ZW = c }, wAa: function() { return this.ZW }, rha: function(c) { this.un = c }, PAa: function() { return this.un }, pha: function(c) { this.fr = c }, MAa: function() { return this.fr }, $I: function(c) { this.yc = c }, FH: function() { return this.yc }, qha: function(c) { this.VF = c }, NAa: function() { return this.VF }, oha: function(c) { this.TF = c }, KAa: function() { return this.TF } }); q = f.S4.prototype; f.d(q, "sliderX", q.nBa, q.wR); f.d(q, "onPos", q.OAa, q.pHa); f.d(q, "offPos", q.LAa, q.oHa); f.d(q, "maskTexture", q.xAa, q.dHa); f.d(q, "maskPos", q.wAa, q.cHa); f.d(q, "onSprite", q.PAa, q.rha); f.d(q, "offSprite", q.MAa, q.pha); f.d(q, "thumbSprite", q.FH, q.$I); f.d(q, "onLabel", q.NAa, q.qha); f.d(q, "offLabel", q.KAa, q.oha); f.d(q, "onSideWidth", q.Xra); f.d(q, "offSideWidth", q.Ura); q = null; f.I4 = 0; f.J4 = 1; f.GJ = 2; f.qD = f.color(55, 55, 55); f.uS = f.color(147, 147, 147); f.H4 = "CourierNewPSMT"; f.L3 = 0.15; f.Via = 12; f.AS = f.Nc.extend({ ih: null, Xi: null, wt: null, Dt: null, Kd: 0, $E: !1, fz: !1, eu: !1, Ub: 0, tc: 0, Qt: 0, GG: !1, Qw: f.GJ, JE: 0, ta: "ControlStepper", ctor: function() { f.Nc.prototype.ctor.call(this); this.Dt = this.wt = this.Xi = this.ih = null; this.Kd = 0; this.eu = this.fz = this.$E = !1; this.Qt = this.tc = this.Ub = 0; this.GG = !1; this.Qw = f.GJ; this.JE = 0 }, vCa: function(c, d) { if (!c) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Minus sprite should be non-null."; if (!d) throw "cc.ControlStepper.initWithMinusSpriteAndPlusSprite(): Plus sprite should be non-null."; if (this.j()) { this.$E = this.fz = !0; this.Ub = 0; this.tc = 100; this.Kd = 0; this.Qt = 1; this.eu = !1; this.Gm(!1); this.lha(c); this.ih.o(c.e().width / 2, c.e().height / 2); this.n(this.ih); this.kha(f.ia.create("-", f.H4, 40, t(40, 40), f.Bo, f.wU)); this.wt.F(f.uS); this.wt.o(this.ih.e().width / 2, this.ih.e().height / 2); this.ih.n(this.wt); this.vha(d); this.Xi.o(c.e().width + d.e().width / 2, c.e().height / 2); this.n(this.Xi); this.uha(f.ia.create("+", f.H4, 40, t(40, 40), f.Bo, f.wU)); this.Dt.F(f.qD); this.Dt.o(this.Xi.e().width / 2, this.Xi.e().height / 2); this.Xi.n(this.Dt); var e = f.Eh.h4(this.ih.Ee(), this.Xi.Ee()); this.Ga(this.ih.e().width + this.Xi.e().height, e.height); return !0 } return !1 }, $Ha: function(c) { if (this.eu = c) this.wt.F(f.qD), this.Dt.F(f.qD); this.ue(this.Kd) }, SBa: function() { return this.eu }, SI: function(c) { if (c >= this.tc) throw "cc.ControlStepper.setMinimumValue(): minimumValue should be numerically less than maximumValue."; this.Ub = c; this.ue(this.Kd) }, yH: function() { return this.Ub }, RI: function(c) { if (c <= this.Ub) throw "cc.ControlStepper.setMaximumValue(): maximumValue should be numerically less than maximumValue."; this.tc = c; this.ue(this.Kd) }, xH: function() { return this.tc }, ue: function(c) { this.b3(c, !0) }, Uf: function() { return this.Kd }, OHa: function(c) { if (0 >= c) throw "cc.ControlStepper.setMaximumValue(): stepValue should be numerically greater than 0."; this.Qt = c }, tBa: function() { return this.Qt }, VCa: function() { return this.$E }, b3: function(c, d) { c < this.Ub ? c = this.eu ? this.tc : this.Ub : c > this.tc && (c = this.eu ? this.Ub : this.tc); this.Kd = c; this.eu || (this.wt.F(c == this.Ub ? f.uS : f.qD), this.Dt.F(c == this.tc ? f.uS : f.qD)); d && this.Di(f.ro) }, mia: function() { this.JE = -1; this.Ux(this.update, f.L3, f.mv, 3 * f.L3) }, oia: function() { this.Tu(this.update) }, update: function() { this.JE++; this.JE < f.Via && 0 != this.JE % 3 || (this.Qw == f.I4 ? this.b3(this.Kd - this.Qt, this.$E) : this.Qw == f.J4 && this.b3(this.Kd + this.Qt, this.$E)) }, Fia: function(c) { c.x < this.ih.e().width && this.Kd > this.Ub ? (this.Qw = f.I4, this.ih.F(f.color.GRAY), this.Xi.F(f.color.WHITE)) : c.x >= this.ih.e().width && this.Kd < this.tc ? (this.Qw = f.J4, this.ih.F(f.color.WHITE), this.Xi.F(f.color.GRAY)) : (this.Qw = f.GJ, this.ih.F(f.color.WHITE), this.Xi.F(f.color.WHITE)) }, rc: function(c) { if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1; c = this.Dp(c); this.Fia(c); this.GG = !0; this.fz && this.mia(); return !0 }, hd: function(c) { this.Yn(c) ? (c = this.Dp(c), this.Fia(c), this.GG || (this.GG = !0, this.fz && this.mia())) : (this.GG = !1, this.Qw = f.GJ, this.ih.F(f.color.WHITE), this.Xi.F(f.color.WHITE), this.fz && this.oia()) }, gd: function(c) { this.ih.F(f.color.WHITE); this.Xi.F(f.color.WHITE); this.fz && this.oia(); this.Yn(c) && (c = this.Dp(c), this.ue(this.Kd + (c.x < this.ih.e().width ? 0 - this.Qt : this.Qt))) }, lha: function(c) { this.ih = c }, FAa: function() { return this.ih }, vha: function(c) { this.Xi = c }, UAa: function() { return this.Xi }, kha: function(c) { this.wt = c }, EAa: function() { return this.wt }, uha: function(c) { this.Dt = c }, TAa: function() { return this.Dt } }); q = f.AS.prototype; f.d(q, "wraps", q.SBa, q.$Ha); f.d(q, "value", q.Uf, q.ue); f.d(q, "minValue", q.yH, q.SI); f.d(q, "maxValue", q.xH, q.RI); f.d(q, "stepValue", q.tBa, q.OHa); f.d(q, "continuous", q.VCa); f.d(q, "minusSprite", q.FAa, q.lha); f.d(q, "plusSprite", q.UAa, q.vha); f.d(q, "minusLabel", q.EAa, q.kha); f.d(q, "plusLabel", q.TAa, q.uha); q = null; f.AS.create = function(c, d) { var e = new f.AS; return e && e.vCa(c, d) ? e : null }; f.yS = f.Nc.extend({ yc: null, FA: null, DA: null, Kd: 0, Ub: 0, tc: 1, ta: "ControlPotentiometer", GCa: function(c, d, e) { return this.j() ? (this.xha(d), this.$I(e), this.yc.o(d.Od()), this.n(e, 2), this.n(d, 1), this.n(c), this.Ga(c.e()), this.Ub = 0, this.tc = 1, this.ue(this.Ub), !0) : !1 }, Lb: function(c) { this.Lb(c); this.yc != NULL && this.yc.J(c ? 255 : 128) }, ue: function(c) { c < this.Ub && (c = this.Ub); c > this.tc && (c = this.tc); this.Kd = c; c = (c - this.Ub) / (this.tc - this.Ub); this.FA.tha(100 * c); this.yc.yh(360 * c); this.Di(f.ro) }, Uf: function() { return this.Kd }, SI: function(c) { this.Ub = c; this.Ub >= this.tc && (this.tc = this.Ub + 1); this.ue(this.tc) }, yH: function() { return this.Ub }, RI: function(c) { this.tc = c; this.tc <= this.Ub && (this.Ub = this.tc - 1); this.ue(this.Ub) }, xH: function() { return this.tc }, Yn: function(c) { c = this.Dp(c); return this.Xxa(this.FA.Od(), c) < Math.min(this.e().width / 2, this.e().height / 2) }, rc: function(c) { if (!this.Yn(c) || !this.isEnabled() || !this.Na) return !1; this.DA = this.Dp(c); this.hFa(this.DA); return !0 }, hd: function(c) { c = this.Dp(c); this.jFa(c) }, gd: function() { this.iFa(r(0, 0)) }, Xxa: function(c, d) { var e = c.x - d.x, g = c.y - d.y; return Math.sqrt(e * e + g * g) }, dwa: function(c, d, e, g) { return 180 * (Math.atan2(d.x - c.x, d.y - c.y) - Math.atan2(g.x - e.x, g.y - e.y)) / Math.PI }, hFa: function() { this.Nu(!0); this.yc.F(f.color.GRAY) }, jFa: function(c) { var d = this.dwa(this.FA.Od(), c, this.FA.Od(), this.DA); 180 < d ? d -= 360 : -180 > d && (d += 360); this.ue(this.Kd + d / 360 * (this.tc - this.Ub)); this.DA = c }, iFa: function() { this.yc.F(f.color.WHITE); this.Nu(!1) }, $I: function(c) { this.yc = c }, FH: function() { return this.yc }, xha: function(c) { this.FA = c }, YAa: function() { return this.FA }, xHa: function(c) { this.DA = c }, qP: function() { return this.DA } }); q = f.yS.prototype; f.d(q, "value", q.Uf, q.ue); f.d(q, "minValue", q.yH, q.SI); f.d(q, "maxValue", q.xH, q.RI); f.d(q, "progressTimer", q.YAa, q.xha); f.d(q, "thumbSprite", q.FH, q.$I); f.d(q, "prevLocation", q.qP, q.xHa); q = null; f.yS.create = function(c, d, e) { var g = new f.yS; return g && (c = f.q.create(c), e = f.q.create(e), d = f.bc.create(f.q.create(d)), g.GCa(c, d, e)) ? g : null }; f.b7 = -1; f.Sy = 0; f.rK = 1; f.qK = 2; f.exa = function(c) { var d = f.view; return (d.ka + d.ra) / 2 * c / 160 }; f.Yna = f.N.extend({ jGa: function() {}, kGa: function() {} }); f.Nl = f.Me.extend({ gPa: 0, COa: 0, AOa: 0, Pq: null, Oh: f.qK, en: !1, Sqa: null, Va: null, rm: !1, NM: null, PM: null, ME: !1, VE: !1, jG: null, dB: null, HG: 0, Of: null, Mn: null, baa: 0, aaa: 0, XF: null, aY: !1, rba: null, vi: null, ta: "ScrollView", ctor: function() { f.Me.prototype.ctor.call(this); this.Sqa = r(0, 0); this.NM = r(0, 0); this.PM = r(0, 0); this.jG = r(0, 0); this.dB = r(0, 0); this.Of = []; this.Mn = t(0, 0); this.XF = new f.Qy(0, 0, 0, 0); this.rba = new f.Qy(0, 0, 0, 0) }, j: function() { return this.TH(t(200, 200), null) }, TH: function(c, d) { var e = r(0, 0); return f.Me.prototype.j.call(this) ? (this.Va = d, this.Va || (this.Va = f.Me.create(), this.Va.Gm(!1), this.Va.S(e)), this.FR(c), this.Om(!0), this.Of.length = 0, this.Pq = null, this.VE = this.ME = !0, this.Oh = f.qK, this.Va.o(e), this.HG = 0, this.n(this.Va), this.baa = this.aaa = 1, !0) : !1 }, EC: function(c, d) { if (d) this.JGa(c, 0.15); else { if (!this.ME) { var e = this.Vr(), g = this.xu(); c.x = Math.max(e.x, Math.min(g.x, c.x)); c.y = Math.max(e.y, Math.min(g.y, c.y)) } this.Va.o(c) } }, Jza: function() { var c = this.Va.Od(); return r(c.x, c.y) }, JGa: function(c, d) { var e = f.Dc.create(d, c), g = f.ua.create(this.gva, this); this.Va.V(f.X.create(e, g)); this.Ux(this.uX) }, aia: function(c, d) { if (d) this.aIa(c, 0.15); else { var e = this.Va; if (e.AH() != c) { var g, h; 0 == this.HG ? (h = this.Mn, h = r(0.5 * h.width, 0.5 * h.height), h = this.um(h)) : h = this.dB; g = e.yi(h); e.ib(Math.max(this.baa, Math.min(this.aaa, c))); g = e.um(g); this.EC(f.Tp(e.Od(), f.gc(h, g))) } } }, hea: function() { return this.Va.AH() }, aIa: function(c, d) { if (0 < d) { var e = this.Va.AH(); e != c && (e = f.Xu.create(d, "zoomScale", e, c), this.V(e)) } else this.aia(c) }, Vr: function() { var c = this.Va, d = c.e(), e = this.Mn; return r(e.width - d.width * c.ka, e.height - d.height * c.ra) }, xu: function() { return r(0, 0) }, MXa: function(c) { var d = this.Jza(), e = this.Mn, g = this.hea(); return f.BFa(x(-d.x / g, -d.y / g, e.width / g, e.height / g), c.Ee()) }, pause: function() { this.Va.pause(); for (var c = this.Va.re(), d = 0; d < c.length; d++) c[d].pause(); this._super() }, lk: function() { for (var c = this.Va.re(), d = 0, e = c.length; d < e; d++) c[d].lk(); this.Va.lk(); this._super() }, BXa: function() { return this.en }, $Xa: function() { return this.rm }, QCa: function() { return this.ME }, Hga: function(c) { this.ME = c }, PBa: function() { return this.Mn }, FR: function(c) { this.Mn = c; f.v.prototype.Ga.call(this, c) }, Iza: function() { return this.Va }, Pga: function(c) { c && (this.Cf(!0), this.Va = c, c.Gm(!1), c.S(0, 0), this.n(c), this.FR(this.Mn)) }, OB: function() { return this.Oh }, xh: function(c) { this.Oh = c }, NB: function() { return this.Pq }, $p: function(c) { this.Pq = c }, rc: function(c) { if (!this.Na) return !1; var d = this.DW(), e = this.Va, g = e.um(e.yp(c)), h = this.Of; if (2 < h.length || this.rm || !f.Bu(d, g)) return !1; h.push(c); 1 === h.length ? (this.dB = this.yp(c), this.rm = !1, this.en = !0, this.jG.x = 0, this.HG = this.jG.y = 0) : 2 == h.length && (this.dB = f.A1(this.yp(h[0]), this.yp(h[1])), this.HG = f.Hfa(e.yp(h[0]), e.yp(h[1])), this.en = !1); return !0 }, hd: function(c) { if (this.Na) if (1 === this.Of.length && this.en) { this.rm = !0; this.DW(); var d = this.yp(c); c = f.gc(d, this.dB); var e = 0, g = this.Oh, h; if (g === f.rK) e = c.y, h = this.Va.Zd(), this.Vr().y <= h && h <= this.xu().y || (c.y *= 0.35); else if (g === f.Sy) e = c.x, h = this.Va.Vc(), this.Vr().x <= h && h <= this.xu().x || (c.x *= 0.35); else { e = Math.sqrt(c.x * c.x + c.y * c.y); h = this.Va.Zd(); var k = this.Vr(), m = this.xu(); k.y <= h && h <= m.y || (c.y *= 0.35); h = this.Va.Vc(); k.x <= h && h <= m.x || (c.x *= 0.35) } if (this.rm || !(0.04375 > Math.abs(f.exa(e)))) if (this.rm || (c.x = 0, c.y = 0), this.dB = d, this.rm = !0, this.en) { switch (g) { case f.rK: c.x = 0; break; case f.Sy: c.y = 0 } e = this.Va.Od(); d = e.x + c.x; e = e.y + c.y; this.jG = c; this.EC(r(d, e)) } } else 2 !== this.Of.length || this.en || (c = f.Hfa(this.Va.yp(this.Of[0]), this.Va.yp(this.Of[1])), this.aia(this.hea() * c / this.HG)) }, gd: function() { this.Na && (1 == this.Of.length && this.rm && this.Ux(this.EV), this.Of.length = 0, this.rm = this.en = !1) }, ef: function() { this.Na && (this.Of.length = 0, this.rm = this.en = !1) }, Ga: function(c, d) { null != this.Va && (void 0 === d ? this.Va.Ga(c) : this.Va.Ga(c, d), this.PR()) }, Uh: function(c) { var d = this.Va; null != d && (d.Uh(c), this.PR()) }, Th: function(c) { var d = this.Va; null != d && (d.Th(c), this.PR()) }, e: function() { return this.Va.e() }, PR: function() { if (null != this.Va) { var c = this.Mn, d = this.xu(); this.NM.x = d.x + 0.2 * c.width; this.NM.y = d.y + 0.2 * c.height; d = this.Vr(); this.PM.x = d.x - 0.2 * c.width; this.PM.y = d.y - 0.2 * c.height } }, TCa: function() { return this.VE }, Nga: function(c) { this.VE = c }, I: function(c) { if (this.Na) { c = c || f.s; var d, e = this.i, g, h; if (f.K === f.fb) { c.save(); this.transform(c); this.M8(c); if (e && 0 < e.length) { h = e.length; this.kd(); for (d = 0; d < h; d++) if ((g = e[d]) && 0 > g.Ya) g.I(c); else break; for (this.ma(c); d < h; d++) e[d].I(c) } else this.ma(c); this.C8(); c.restore() } else { f.Rr(); var k = this.grid; k && k.Bi() && (k.dx(), this.mJ()); this.transform(c); this.M8(c); if (e && 0 < e.length) { h = e.length; for (d = 0; d < h; d++) if ((g = e[d]) && 0 > g.Ya) g.I(); else break; for (this.ma(c); d < h; d++) e[d].I() } else this.ma(c); this.C8(c); k && k.Bi() && k.ax(this); f.Qr() } } }, n: function(c, d, e) { if (!c) throw Error("child must not nil!"); d = d || c.Ya; e = e || c.Em(); this.Va != c ? this.Va.n(c, d, e) : f.Me.prototype.n.call(this, c, d, e) }, U0: function() { return null != this.vi }, Om: function(c) { this.vi && f.Qa.removeListener(this.vi); this.vi = null; c ? (c = f.Xa.create({ event: f.Xa.zs }), this.rc && (c.rc = this.rc.bind(this)), this.hd && (c.hd = this.hd.bind(this)), this.gd && (c.gd = this.gd.bind(this)), this.ef && (c.ef = this.ef.bind(this)), this.vi = c, f.Qa.addListener(c, this)) : (this.rm = this.en = !1, this.Of.length = 0) }, pOa: function() { return null }, Sta: function(c) { var d = this.Vr(), e = this.xu(), g = this.Oh, h = this.Va.Od(), k = h.x, m = h.y; if (g === f.qK || g === f.Sy) k = Math.max(k, d.x), k = Math.min(k, e.x); if (g == f.qK || g == f.rK) m = Math.min(m, e.y), m = Math.max(m, d.y); m == h.y && k == h.x || this.EC(r(k, m), c) }, EV: function() { if (this.en) this.Tu(this.EV); else { var c, d; c = this.Va.Od(); var e = this.jG; this.Va.o(c.x + e.x, c.y + e.y); this.ME ? (c = this.NM, d = this.PM) : (c = this.xu(), d = this.Vr()); var g = this.Va.Vc(), h = this.Va.Zd(); e.x *= 0.95; e.y *= 0.95; this.EC(r(g, h)); if (1 >= Math.abs(e.x) && 1 >= Math.abs(e.y) || h > c.y || h < d.y || g > c.x || g < d.x || g == c.x || g == d.x || h == c.y || h == d.y) this.Tu(this.EV), this.Sta(!0) } }, uX: function() { this.en && this.Tu(this.uX) }, gva: function() { this.Tu(this.uX) }, M8: function(c) { if (this.VE) { this.aY = !1; var d = this.DW(), e = f.view, g = this.ka, h = this.ra; c = c || f.s; if (f.K === f.fb) d = this.Mn.width * g * e.ka, e = this.Mn.height * h * e.ra, c.beginPath(), c.rect(0, 0, d, -e), c.clip(), c.closePath(); else if (e = f.view, e.dDa()) { if (this.aY = !0, this.XF = e.gBa(), f.AFa(d, this.XF)) { var k = this.XF; c = Math.max(d.x, k.x); h = Math.max(d.y, k.y); g = Math.min(d.x + d.width, k.x + k.width); d = Math.min(d.y + d.height, k.y + k.height); e.vR(c, h, g - c, d - h) } } else c.enable(c.SCISSOR_TEST), e.vR(d.x, d.y, d.width, d.height) } }, C8: function(c) { this.VE && f.K === f.na && (this.aY ? (c = this.XF, f.view.vR(c.x, c.y, c.width, c.height)) : (c = c || f.s, c.disable(c.SCISSOR_TEST))) }, nOa: function() {}, DW: function() { for (var c = this.um(r(0, 0)), d = this.Mn, e = this.ka, g = this.ra, h = this.Yb; null != h; h = h.getParent()) e *= h.ka, g *= h.ra; 0 > e && (c.x += d.width * e, e = -e); 0 > g && (c.y += d.height * g, g = -g); h = this.rba; h.x = c.x; h.y = c.y; h.width = d.width * e; h.height = d.height * g; return h } }); q = f.Nl.prototype; f.d(q, "minOffset", q.Vr); f.d(q, "maxOffset", q.xu); f.d(q, "bounceable", q.QCa, q.Hga); f.d(q, "viewSize", q.PBa, q.FR); f.d(q, "container", q.Iza, q.Pga); f.d(q, "direction", q.OB, q.xh); f.d(q, "delegate", q.NB, q.$p); f.d(q, "clippingToBounds", q.TCa, q.Nga); q = null; f.Nl.create = function(c, d) { var e = new f.Nl; if (2 == arguments.length) { if (e && e.TH(c, d)) return e } else if (e && e.j()) return e; return null }; f.boa = f.N.extend({ TI: function() {}, Cm: function() { return 0 } }); f.coa = f.boa.extend({ kX: 0, ctor: function() { this.kX = 0 }, TI: function(c) { this.kX = c }, Cm: function() { return this.kX } }); function Ka(c, d) { return c.Cm() - d.Cm() } f.VR = f.N.extend({ Dn: null, ctor: function() { this.Dn = [] }, Hea: function(c) { if (!c) throw "cc.ArrayForObjectSorting.insertSortedObject(): addObject should be non-null."; this.KCa(c, this.XB(c)) }, UFa: function(c) { if (0 != this.count()) { var d = this.XB(c); d < this.count() && d != f.wo && this.Kx(d).Cm() == c.Cm() && this.Y1(d) } }, K3a: function(c, d) { var e = this.XB(d); if (e < this.count() && e != f.wo) { var g = this.Kx(e); g.Cm() == d.Cm() && (this.Y1(e), g.TI(c), this.Hea(g)) } }, vfa: function(c) { if (0 == this.count()) return null; var d = new f.coa; d.TI(c); var e = this.XB(d); e < this.count() && e != f.wo && (d = this.Kx(e), d.Cm() != c && (d = null)); return d }, PUa: function() { return null }, XB: function(c) { var d = 0; if (c) { var e = 0; c = c.Cm(); for (var g = this.Dn, h = 0; h < g.length; h++) { var k = g[h].Cm(); if (c == k || c >= e && c < k) break; e = k; d++ } } else d = f.wo; return d }, count: function() { return this.Dn.length }, f_a: function() { var c = this.Dn; return 0 == c.length ? null : c[c.length - 1] }, Kx: function(c) { return this.Dn[c] }, Xba: function(c) { this.Dn.push(c); this.Dn.sort(Ka) }, Y1: function(c) { this.Dn.splice(c, 1); this.Dn.sort(Ka) }, KCa: function(c, d) { this.Dn.splice(d, 0, c); this.Dn.sort(Ka) } }); f.m7 = 0; f.Ioa = 1; f.Toa = f.v.extend({ Xq: 0, ta: "TableViewCell", eUa: function() { return this.Xq }, VGa: function(c) { this.Xq = c }, reset: function() { this.Xq = f.wo }, TI: function(c) { this.Xq = c }, Cm: function() { return this.Xq } }); q = f.Toa.prototype; f.d(q, "objectId", q.Cm, q.TI); q = null; f.XMa = f.Yna.extend({ o5a: function() {}, n5a: function() {}, p5a: function() {}, q5a: function() {} }); f.WMa = f.N.extend({ xIa: function(c) { return this.Qwa(c) }, Qwa: function() { return t(0, 0) }, m5a: function() { return null }, H_a: function() { return 0 } }); f.hU = f.Nl.extend({ gB: null, Tb: null, sz: null, DV: null, QY: null, $M: null, oL: null, yr: null, ctor: function() { f.Nl.prototype.ctor.call(this); this.$M = f.b7; this.oL = [] }, Xpa: function(c) { var d = 0, e = -1; switch (this.OB()) { case f.Sy: c = c.x; break; default: c = c.y } for (var g = this.oL; e >= d;) { var h = 0 | d + (e - d) / 2, k = g[h], m = g[h + 1]; if (c >= k && c <= m) return h; c < k ? e = h - 1 : d = h + 1 } return 0 >= d ? 0 : -1 }, tsa: function(c) { c = { x: c.x, y: c.y }; this.gB === f.m7 && (c.y = this.Va.e().height - c.y); c = this.Xpa(c); - 1 != c && (c = Math.max(0, c), -1 < c && (c = f.wo)); return c }, Ypa: function(c) { switch (this.OB()) { case f.Sy: c = r(this.oL[c], 0); break; default: c = r(0, this.oL[c]) } return c }, eta: function(c) { var d = this.Ypa(c); c = this.DV.xIa(this, c); this.gB === f.m7 && (d.y = this.Va.e().height - d.y - c.height); return d }, cPa: function() {}, ZY: function() { this.Ga(t(0, 0)); this.$M != this.Oh && (this.Oh == f.Sy ? this.EC(r(0, 0)) : this.EC(r(0, this.Vr().y)), this.$M = this.Oh) }, caa: function(c) { this.sz.Xba(c); this.Ts.UFa(c); f.Ld(this.Tb, c.Xq); c.reset(); c.getParent() == this.Va && this.Va.removeChild(c, !0) }, FN: function(c, d) { d.S(0, 0); d.o(this.eta(c)); d.VGa(c) }, y8: function(c) { c.getParent() != this.Va && this.Va.n(c); this.Ts.Hea(c); var d = this.Tb; c = c.Xq; - 1 == d.indexOf(c) && (d.push(c), d.sort(function(c, d) { return c - d })) }, Nza: function() { return this.DV }, Qga: function(c) { this.DV = c }, NB: function() { return this.QY }, $p: function(c) { this.QY = c }, YHa: function(c) { this.gB != c && (this.gB = c, 0 < this.Ts.count() && this.HFa()) }, OBa: function() { return this.gB }, TH: function(c, d) { return f.Nl.prototype.TH.call(this, c, d) ? (this.Ts = new f.VR, this.sz = new f.VR, this.Tb = [], this.QY = null, this.gB = f.Ioa, this.xh(f.rK), f.Nl.prototype.$p.call(this, this), !0) : !1 }, J5a: function(c) { if (!(c == f.wo || -1 < c)) { var d = this.b_(c); d && this.caa(d); d = null; this.FN(c, d); this.y8(d) } }, eXa: function(c) { if (!(c == f.wo || -1 < c)) { var d, e = this.Ts; if (d = e.vfa(c)) for (var g = d = e.XB(d); g < e.count(); g++) d = e.Kx(g), this.FN(d.Xq + 1, d); d = null; this.FN(c, d); this.y8(d); this.ZY() } }, j1a: function(c) { if (!(c == f.wo || -1 < c)) { var d = this.b_(c); if (d) { var e = this.Ts, g = e.XB(d); this.caa(d); f.Ld(this.Tb, c); for (c = e.count() - 1; c > g; c--) d = e.Kx(c), this.FN(d.Xq - 1, d) } } }, HFa: function() { this.$M = f.b7; for (var c = this.Ts, d = this.sz, e = this.Va, g = 0, h = c.count(); g < h; g++) { var k = c.Kx(g); d.Xba(k); k.reset(); k.getParent() == e && e.removeChild(k, !0) } this.Tb = []; this.Ts = new f.VR; this.ZY() }, LQa: function() { if (0 === this.sz.count()) return null; var c = this.sz.Kx(0); this.sz.Y1(0); return c }, b_: function(c) { return -1 == this.Tb.indexOf(c) ? null : this.Ts.vfa(c) }, jGa: function() {}, kGa: function() {}, gd: function(c, d) { if (this.Na) { if (this.yr) { var e = this.Ee(), g = r(e.x, e.y), g = this.Yb.um(g); e.x = g.x; e.y = g.y; this.yr = null } f.Nl.prototype.gd.call(this, c, d) } }, rc: function(c, d) { if (!this.Na) return !1; var e = f.Nl.prototype.rc.call(this, c, d); if (1 === this.Of.length) { var g; g = this.Va.yp(c); g = this.tsa(g); this.yr = g === f.wo ? null : this.b_(g) } else this.yr && (this.yr = null); return e }, hd: function(c, d) { f.Nl.prototype.hd.call(this, c, d); this.yr && this.rm && (this.yr = null) }, ef: function(c, d) { f.Nl.prototype.ef.call(this, c, d); this.yr && (this.yr = null) } }); q = f.hU.prototype; f.d(q, "dataSource", q.Nza, q.Qga); f.d(q, "delegate", q.NB, q.$p); f.d(q, "verticalFillOrder", q.OBa, q.YHa); q = null; f.hU.create = function(c, d, e) { var g = new f.hU; g.TH(d, e); g.Qga(c); g.ZY(); return g }; var La = "contentSize", Ma = "scale"; function Na(c) { f.log("Unexpected property: '" + c + "'!") } function Qa(c, d) { this.nGa = c; this.target = d } function Ra(c, d, e) { this.mGa = c; this.target = d; this.dxa = e } f.Ia = f.N.extend({ Dz: null, ctor: function() { this.Dz = new f.uv }, MDa: function(c, d) { return this.ji(c, d) }, UEa: function(c, d, e) { for (var g = e.Bc(!1), h = e.Bc(!1), h = g + h, k = 0; k < h; k++) { var m = k >= g, n = e.Bc(!1), p = e.Bf(), s = !1, u = e.ca(); if (u === Ta || u === Ua || u === Wa) s = !0; c instanceof f.lD ? c.RE && m && (c = c.RE, s = -1 != c.userObject.indexOf(p)) : m && c == e.Pc.gm && (m = c.userObject, m || (m = [], c.userObject = m), m.push(p)); switch (n) { case Xa: n = this.NEa(c, d, e, p); s && this.fEa(c, d, p, n, e); break; case Ya: n = this.LEa(c, d, e); s && this.Nx(c, d, p, n, e); break; case Za: n = this.MEa(c, d, e); s && this.eEa(c, d, p, n, e); break; case $a: n = this.PEa(c, d, e); s && this.Yr(c, d, p, n, e); break; case ab: n = this.OEa(c, d, e, p); s && this.gEa(c, d, p, n, e); break; case bb: n = this.GEa(c, d, e); s && this.dEa(c, d, p, n, e); break; case cb: n = this.DEa(c, d, e); s && this.Lx(c, d, p, n, e); break; case db: n = this.BEa(c, d, e, p); s && this.cEa(c, d, p, n, e); break; case eb: n = this.EEa(c, d, e); s && this.mI(c, d, p, n, e); break; case fb: n = this.JEa(c, d, e); s && this.u1(c, d, p, n, e); break; case gb: n = this.KEa(c, d, e); s && this.Mx(c, d, p, n, e); break; case kb: n = this.FEa(c, d, e); s && this.s1(c, d, p, n, e); break; case lb: n = this.yEa(c, d, e, p); s && this.eo(c, d, p, n, e); break; case pb: n = this.QEa(c, d, e, p); s && this.Zr(c, d, p, n, e); break; case qb: n = this.sEa(c, d, e); s && this.bEa(c, d, p, n, e); break; case rb: n = this.TEa(c, d, e); s && this.w1(c, d, p, n, e); break; case sb: n = this.wEa(c, d, e, p); s && this.jl(c, d, p, n, e); break; case wb: n = this.zEa(c, d, e, p); s && this.uj(c, d, p, n, e); break; case xb: n = this.AEa(c, d, e); s && this.q1(c, d, p, n, e); break; case yb: n = this.CEa(c, d, e); s && this.r1(c, d, p, n, e); break; case zb: n = this.tEa(c, d, e); s && this.tj(c, d, p, n, e); break; case Ab: n = e.Tl + this.HEa(c, d, e); s && this.t1(c, d, p, n, e); break; case Bb: n = this.IEa(c, d, e); s && this.nI(c, d, p, n, e); break; case Cb: n = this.REa(c, d, e); s && this.v1(c, d, p, n, e); break; case Db: n = this.SEa(c, d, e); s && this.oI(c, d, p, n, e); break; case Hb: n = this.uEa(c, d, e); s && this.o1(c, d, p, n, e); break; case Ib: n = this.vEa(c, d, e); s && null != n && this.p1(c, d, p, n, e); break; case Jb: n = this.xEa(c, d, e); s && this.lI(c, d, p, n, e); break; default: f.log("Unexpected property type: '" + n + "'!") } } }, lTa: function() { return this.Dz }, ji: function() { return f.v.create() }, NEa: function(c, d, e, g) { var h = e.$b(), k = e.$b(), m = e.Bc(!1); d = e.Pc.hP(d); var n = f.mW(h, k, m, d); c.o(f.sza(n, m, d)); - 1 < e.cn.indexOf(g) && e.Pc.Zx([h, k, m], c, g); return n }, LEa: function(c, d, e) { c = e.$b(); e = e.$b(); return r(c, e) }, MEa: function(c, d, e) { c = e.$b(); e = e.$b(); return r(c, e) }, PEa: function(c, d, e) { c = e.$b(); var g = e.$b(), h = e.Bc(!1); d = e.Pc.hP(d); switch (h) { case Kb: break; case Lb: c = d.width - c; g = d.height - g; break; case Mb: c = d.width * c / 100; g = d.height * g / 100; break; case Nb: c = d.width * c / 100; break; case Vb: g = d.height * g / 100; break; case Wb: d = f.Mb.qu(); c *= d; g *= d; break; default: f.log("Unknown CCB type.") } return t(c, g) }, OEa: function(c, d, e, g) { d = e.$b(); var h = e.$b(), k = e.Bc(!1); f.Jha(c, d, h, k); - 1 < e.cn.indexOf(g) && e.Pc.Zx([d, h, k], c, g); k == Xb && (d *= f.Mb.qu(), h *= f.Mb.qu()); return [d, h] }, DEa: function(c, d, e) { return e.$b() }, BEa: function(c, d, e, g) { d = e.$b(); - 1 < e.cn.indexOf(g) && e.Pc.Zx(d, c, g); return d }, EEa: function(c, d, e) { c = e.$b(); e.Bc(!1) == Xb && (c *= f.Mb.qu()); return c }, JEa: function(c, d, e) { return e.Bc(!0) }, KEa: function(c, d, e) { return e.Bc(!0) }, FEa: function(c, d, e) { c = e.$b(); e = e.$b(); return [c, e] }, yEa: function(c, d, e, g) { d = e.DI(); - 1 < e.cn.indexOf(g) && e.Pc.Zx(d, c, g); return d }, QEa: function(c, d, e, g) { d = e.Bf(); var h = e.Bf(), k; null != h && 0 != h.length && (0 == d.length ? (h = e.Tl + h, d = f.nb.vd(h), h = d.e(), k = f.Li.create(d, x(0, 0, h.width, h.height))) : (k = f.Je, d = e.Tl + d, -1 == e.vt.indexOf(d) && (k.vp(d), e.vt.push(d)), k = k.Ca(h)), -1 < e.cn.indexOf(g) && e.Pc.Zx(k, c, g)); return k }, sEa: function(c, d, e) { c = e.Tl + e.Bf(); e = e.Bf(); d = null; e = f.Mb.efa(e); c = f.Mb.efa(c); null != e && "" != e && (d = f.WG, d.Hva(c), d = d.cl(e)); return d }, TEa: function(c, d, e) { c = e.Tl + e.Bf(); return "" != c ? f.nb.vd(c) : null }, wEa: function(c, d, e, g) { d = e.ca(); - 1 < e.cn.indexOf(g) && e.Pc.Zx(d, c, g); return d }, zEa: function(c, d, e, g) { d = e.ca(); var h = e.ca(), k = e.ca(); d = { r: d, g: h, b: k }; - 1 < e.cn.indexOf(g) && e.Pc.Zx(f.KJ.create(d), c, g); return d }, AEa: function(c, d, e) { c = 0 | 255 * e.$b(); d = 0 | 255 * e.$b(); var g = 0 | 255 * e.$b(), h = e.$b(), h = 1 >= h ? 0 | 255 * h : h, k = 0 | 255 * e.$b(), m = 0 | 255 * e.$b(), n = 0 | 255 * e.$b(); e = e.$b(); var p = []; p[0] = { r: c, g: d, b: g, a: h }; p[1] = { r: k, g: m, b: n, a: 1 >= e ? 0 | 255 * e : e }; return p }, CEa: function(c, d, e) { c = e.DI(); e = e.DI(); return [c, e] }, tEa: function(c, d, e) { c = e.Bc(!1); e = e.Bc(!1); return new f.Um(c, e) }, HEa: function(c, d, e) { return e.Bf() }, REa: function(c, d, e) { return e.Bf() }, SEa: function(c, d, e) { return e.Bf() }, IEa: function(c, d, e) { return e.Bf() }, uEa: function(c, d, e) { d = e.Bf(); var g = e.Bc(!1); if (g !== Yb) { var h = null; if (e.qn) g === Zb ? (e.wO(c), e.vO(d), e.uO(0)) : (e.$ba(c), e.Zba(d), e.Yba(0)); else if (g === Zb ? h = e.Pc.gm : g === $b && (h = e.Td), null != h) if (0 < d.length) if (c = 0, null != h && h.jEa && (c = void 0), 0 == c && null != e.rz && (c = void 0), 0 == c) f.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present."); else return new Qa(c, h); else f.log("Unexpected empty selector."); else f.log("Unexpected NULL target for selector.") } return null }, vEa: function(c, d, e) { d = e.Bf(); var g = e.Bc(!1), h = e.Bc(!1); if (g !== Yb) if (e.qn) g == Zb ? (e.wO(c), e.vO(d), e.uO(h)) : (e.$ba(c), e.Zba(d), e.Yba(h)); else if (c = null, g == Zb ? c = e.Pc.gm : g == $b && (c = e.Td), null != c) if (0 < d.length) if (g = 0, null != c && c.iEa && (g = void 0), 0 == g && null != e.rz && (g = void 0), 0 == g) f.log("Skipping selector '" + d + "' since no CCBSelectorResolver is present."); else return new Ra(g, c, h); else f.log("Unexpected empty selector."); else f.log("Unexpected NULL target for selector."); return null }, xEa: function(c, d, e) { var g = e.Tl + e.Bf(), g = f.Mb.Oxa(g) + ".ccbi"; c = new f.Mb(e); var h = f.L.zd(g); h || (h = f.L.u0(g), h = f.L.gfa(h), f.L.jj[g] = h); c.su(h, e.Td); c.Pc.J2(d.e()); c.Dga(e.yv); c.Pc.HC(e.Td); d = c.Ufa(!1); e.Dga(c.yv); d && -1 != c.Pc.dz && c.Pc.d2(c.Pc.dz, 0); return d }, GEa: function(c, d, e) { c = e.$b(); e = e.$b(); return [c, e] }, fEa: function(c, d, e, g) { "position" === e ? c.o(g) : Na(e) }, Nx: function(c, d, e, g) { "anchorPoint" === e ? c.S(g) : Na(e) }, eEa: function(c, d, e) { Na(e) }, Yr: function(c, d, e, g) { e === La ? c.Ga(g) : Na(e) }, gEa: function(c, d, e, g) { e === Ma ? (c.jb(g[0]), c.tb(g[1])) : Na(e) }, dEa: function(c, d, e, g) { if ("skew" === e) c.XI(g[0]), c.YI(g[1]); else { d = e + "X"; var h = e + "Y"; c[d] && c[h] || Na(e); c[d](g[0]); c[h](g[1]) } }, Lx: function(c, d, e, g) { this.Dz.ul(g, e) }, cEa: function(c, d, e, g) { "rotation" === e ? c.yh(g) : Na(e) }, mI: function(c, d, e) { Na(e) }, u1: function(c, d, e, g) { "tag" === e ? c.Nm(g) : Na(e) }, Mx: function(c, d, e) { Na(e) }, s1: function(c, d, e) { Na(e) }, eo: function(c, d, e, g) { "visible" === e ? c.za(g) : "ignoreAnchorPointForPosition" === e ? c.Gm(g) : Na(e) }, Zr: function(c, d, e) { Na(e) }, bEa: function(c, d, e) { Na(e) }, w1: function(c, d, e) { Na(e) }, jl: function(c, d, e) { Na(e) }, uj: function(c, d, e) { Na(e) }, q1: function(c, d, e) { Na(e) }, r1: function(c, d, e) { Na(e) }, tj: function(c, d, e) { Na(e) }, t1: function(c, d, e) { Na(e) }, v1: function(c, d, e, g) { this.Dz.ul(g, e) }, oI: function(c, d, e) { Na(e) }, nI: function(c, d, e) { Na(e) }, o1: function(c, d, e) { Na(e) }, p1: function(c, d, e) { Na(e) }, lI: function(c, d, e) { Na(e) } }); f.Ia.L = function() { return new f.Ia }; f.ZLa = f.N.extend({ L_a: function() {} }); f.yKa = f.N.extend({ jEa: function() {}, hEa: function() {}, iEa: function() {} }); f.xKa = f.N.extend({ CQa: function() {} }); f.wKa = f.N.extend({ K_a: function() { return !1 }, ZDa: function() { return !1 } }); f.fS = f.Ia.extend({ ji: function() { return f.lD.create() }, lI: function(c, d, e, g, h) { "ccbFile" == e ? c.Iga(g) : f.Ia.prototype.lI.call(this, c, d, e, g, h) } }); f.fS.L = function() { return new f.fS }; f.jq = f.Ia.extend({ ji: function() {}, p1: function(c, d, e, g, h) { "ccControl" == e ? c.VG(g.target, g.mGa, g.dxa) : f.Ia.prototype.p1.call(this, c, d, e, g, h) }, eo: function(c, d, e, g, h) { "enabled" == e ? c.Lb(g) : "selected" == e ? c.Nu(g) : f.Ia.prototype.eo.call(this, c, d, e, g, h) } }); f.wS = f.jq.extend({ ji: function() { return f.Xm.create() }, eo: function(c, d, e, g, h) { "zoomOnTouchDown" == e ? c.$ha(g) : f.jq.prototype.eo.call(this, c, d, e, g, h) }, v1: function(c, d, e, g, h) { "title|1" == e ? c.AR(g, f.Wg) : "title|2" == e ? c.AR(g, f.av) : "title|3" == e ? c.AR(g, f.$u) : f.jq.prototype.v1.call(this, c, d, e, g, h) }, nI: function(c, d, e, g, h) { "titleTTF|1" == e ? c.X2(g, f.Wg) : "titleTTF|2" == e ? c.X2(g, f.av) : "titleTTF|3" == e ? c.X2(g, f.$u) : f.jq.prototype.nI.call(this, c, d, e, g, h) }, mI: function(c, d, e, g, h) { "titleTTFSize|1" == e ? c.Y2(g, f.Wg) : "titleTTFSize|2" == e ? c.Y2(g, f.av) : "titleTTFSize|4" == e ? c.Y2(g, f.$u) : f.jq.prototype.mI.call(this, c, d, e, g, h) }, Nx: function(c, d, e, g, h) { "labelAnchorPoint" == e ? c.z2(g) : f.jq.prototype.Nx.call(this, c, d, e, g, h) }, Yr: function(c, d, e, g, h) { "preferedSize" == e ? c.He(g) : f.jq.prototype.Yr.call(this, c, d, e, g, h) }, Zr: function(c, d, e, g, h) { "backgroundSpriteFrame|1" == e ? null != g && c.l2(g, f.Wg) : "backgroundSpriteFrame|2" == e ? null != g && c.l2(g, f.av) : "backgroundSpriteFrame|3" == e ? null != g && c.l2(g, f.$u) : f.jq.prototype.Zr.call(this, c, d, e, g, h) }, uj: function(c, d, e, g, h) { "titleColor|1" == e ? c.zR(g, f.Wg) : "titleColor|2" == e ? c.zR(g, f.av) : "titleColor|3" == e ? c.zR(g, f.$u) : f.jq.prototype.uj.call(this, c, d, e, g, h) } }); f.wS.L = function() { return new f.wS }; Ma = "scale"; f.NT = f.Ia.extend({ ji: function() { return f.Nl.create() }, Yr: function(c, d, e, g, h) { e == La ? c.FR(g) : f.Ia.prototype.Yr.call(this, c, d, e, g, h) }, lI: function(c, d, e, g, h) { "container" == e ? (c.Pga(g), c.PR()) : f.Ia.prototype.lI.call(this, c, d, e, g, h) }, eo: function(c, d, e, g, h) { "clipsToBounds" == e ? c.Nga(g) : "bounces" == e ? c.Hga(g) : f.Ia.prototype.eo.call(this, c, d, e, g, h) }, Lx: function(c, d, e, g, h) { e == Ma ? c.ib(g) : f.Ia.prototype.Lx.call(this, c, d, e, g, h) }, Mx: function(c, d, e, g, h) { "direction" == e ? c.xh(g) : f.Ia.prototype.Mx.call(this, c, d, e, g, h) } }); f.NT.L = function() { return new f.NT }; var La = "contentSize", ac = "color", bc = "opacity", jc = "blendFunc"; f.MT = f.Ia.extend({ ji: function() { var c = f.Ua.create(); c.S(0, 0); return c }, uj: function(c, d, e, g, h) { e == ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h) }, jl: function(c, d, e, g, h) { e == bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h) }, tj: function(c, d, e, g, h) { e != jc && f.Ia.prototype.tj.call(this, c, d, e, g, h) }, Zr: function(c, d, e, g, h) { "spriteFrame" == e ? c.Dd(g) : f.Ia.prototype.Zr.call(this, c, d, e, g, h) }, Yr: function(c, d, e, g, h) { e != La && ("preferedSize" == e ? c.He(g) : f.Ia.prototype.Yr.call(this, c, d, e, g, h)) }, Lx: function(c, d, e, g, h) { "insetLeft" == e ? c.eha(g) : "insetTop" == e ? c.gha(g) : "insetRight" == e ? c.fha(g) : "insetBottom" == e ? c.dha(g) : f.Ia.prototype.Lx.call(this, c, d, e, g, h) } }); f.MT.L = function() { return new f.MT }; ac = "color"; bc = "opacity"; jc = "blendFunc"; f.RT = f.Ia.extend({ ji: function() { return f.q.create() }, uj: function(c, d, e, g, h) { e === ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h) }, jl: function(c, d, e, g, h) { e === bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h) }, tj: function(c, d, e, g, h) { e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h) }, Zr: function(c, d, e, g, h) { "displayFrame" === e ? g ? c.Dd(g) : f.log("ERROR: SpriteFrame is null") : f.Ia.prototype.Zr.call(this, c, d, e, g, h) }, r1: function(c, d, e, g, h) { "flip" === e ? (c.Pd(g[0]), c.Yf(g[1])) : f.Ia.prototype.r1.call(this, c, d, e, g, h) } }); f.RT.L = function() { return new f.RT }; f.uk = f.Ia.extend({ ji: function() { var c = f.Me.create(); c.Ga(0, 0); return c }, eo: function(c, d, e, g, h) { "touchEnabled" !== e && "isTouchEnabled" !== e && "accelerometerEnabled" !== e && "isAccelerometerEnabled" !== e && "mouseEnabled" !== e && "isMouseEnabled" !== e && ("keyboardEnabled" === e || "isKeyboardEnabled" === e ? c.$Ga && !f.Ed.$Ca ? c.$Ga(g) : f.log("The property 'isKeyboardEnabled' is not supported!") : f.Ia.prototype.eo.call(this, c, d, e, g, h)) } }); f.uk.L = function() { return new f.uk }; f.aT = f.uk.extend({ ji: function() { return f.$f.create() }, uj: function(c, d, e, g, h) { e === ac ? c.F(g) : f.uk.prototype.uj.call(this, c, d, e, g, h) }, jl: function(c, d, e, g, h) { e === bc ? c.J(g) : f.uk.prototype.jl.call(this, c, d, e, g, h) }, tj: function(c, d, e, g, h) { e === jc ? c.ce(g) : f.uk.prototype.tj.call(this, c, d, e, g, h) } }); f.aT.L = function() { return new f.aT }; f.cT = f.uk.extend({ ji: function() { return f.rq.create() }, uj: function(c, d, e, g, h) { "startColor" === e ? c.Tg(g) : "endColor" == e ? c.Sg(g) : f.uk.prototype.uj.call(this, c, d, e, g, h) }, jl: function(c, d, e, g, h) { "startOpacity" === e ? c.Sha(g) : "endOpacity" === e ? c.Vga(g) : f.uk.prototype.jl.call(this, c, d, e, g, h) }, Nx: function(c, d, e, g, h) { "vector" === e ? c.DR(g) : f.uk.prototype.Nx.call(this, c, d, e, g, h) }, tj: function(c, d, e, g, h) { e === jc ? c.ce(g) : f.uk.prototype.tj.call(this, c, d, e, g, h) } }); f.cT.L = function() { return new f.cT }; f.iT = f.uk.extend({ ji: function() { var c = f.ws.create(); c.Ga(0, 0); return c } }); f.iT.L = function() { return new f.iT }; f.f6 = f.Ia.extend({ ji: function() { return null }, o1: function(c, d, e, g, h) { "block" === e ? null != g && c.ZI(g.nGa, g.target) : f.Ia.prototype.o1.call(this, c, d, e, g, h) }, eo: function(c, d, e, g, h) { "isEnabled" === e ? c.Lb(g) : f.Ia.prototype.eo.call(this, c, d, e, g, h) } }); f.gT = f.f6.extend({ ji: function() { return f.Il.create() }, Zr: function(c, d, e, g, h) { "normalSpriteFrame" === e ? null != g && c.mHa(g) : "selectedSpriteFrame" === e ? null != g && c.IHa(g) : "disabledSpriteFrame" === e ? null != g && c.MGa(g) : f.f6.prototype.Zr.call(this, c, d, e, g, h) } }); f.gT.L = function() { return new f.gT }; f.$S = f.Ia.extend({ ji: function() { return f.ia.create() }, uj: function(c, d, e, g, h) { e === ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h) }, jl: function(c, d, e, g, h) { e === bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h) }, tj: function(c, d, e, g, h) { e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h) }, nI: function(c, d, e, g, h) { "fontName" === e ? c.de(g) : f.Ia.prototype.nI.call(this, c, d, e, g, h) }, oI: function(c, d, e, g, h) { "string" === e ? c.wa(g) : f.Ia.prototype.oI.call(this, c, d, e, g, h) }, mI: function(c, d, e, g, h) { "fontSize" === e ? c.Qd(g) : f.Ia.prototype.mI.call(this, c, d, e, g, h) }, Mx: function(c, d, e, g, h) { "horizontalAlignment" === e ? c.jR(g) : "verticalAlignment" === e ? c.ER(g) : f.Ia.prototype.Mx.call(this, c, d, e, g, h) }, Yr: function(c, d, e, g, h) { "dimensions" === e ? c.gR(g) : f.Ia.prototype.Yr.call(this, c, d, e, g, h) } }); f.$S.L = function() { return new f.$S }; f.ZS = f.Ia.extend({ ji: function() { return f.qq.create() }, uj: function(c, d, e, g, h) { e === ac ? 255 === g.r && 255 === g.g && 255 === g.b || c.F(g) : f.Ia.prototype.uj.call(this, c, d, e, g, h) }, jl: function(c, d, e, g, h) { e === bc ? c.J(g) : f.Ia.prototype.jl.call(this, c, d, e, g, h) }, tj: function(c, d, e, g, h) { e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h) }, t1: function(c, d, e, g, h) { "fntFile" === e ? c.GC(g) : f.Ia.prototype.t1.call(this, c, d, e, g, h) }, oI: function(c, d, e, g, h) { "string" === e ? c.wa(g) : f.Ia.prototype.oI.call(this, c, d, e, g, h) } }); f.ZS.L = function() { return new f.ZS }; f.qT = f.Ia.extend({ ji: function() { return f.A.create() }, Mx: function(c, d, e, g, h) { "emitterMode" === e ? c.pl(g) : f.Ia.prototype.Mx.call(this, c, d, e, g, h) }, Nx: function(c, d, e, g, h) { "posVar" === e ? c.vl(g) : "gravity" === e ? c.vc(g) : f.Ia.prototype.Nx.call(this, c, d, e, g, h) }, Lx: function(c, d, e, g, h) { "emissionRate" === e ? c.ol(g) : "duration" === e ? c.Ei(g) : f.Ia.prototype.Lx.call(this, c, d, e, g, h) }, u1: function(c, d, e, g, h) { "totalParticles" === e ? c.Xha(g) : f.Ia.prototype.u1.call(this, c, d, e, g, h) }, s1: function(c, d, e, g, h) { "life" === e ? (c.rl(g[0]), c.sl(g[1])) : "startSize" === e ? (c.wl(g[0]), c.xl(g[1])) : "endSize" === e ? (c.ql(g[0]), c.Wga(g[1])) : "startSpin" === e ? (c.Tha(g[0]), c.Uha(g[1])) : "endSpin" === e ? (c.Xga(g[0]), c.Yga(g[1])) : "angle" === e ? (c.ml(g[0]), c.nl(g[1])) : "speed" === e ? (c.Hi(g[0]), c.pk(g[1])) : "tangentialAccel" === e ? (c.bq(g[0]), c.cq(g[1])) : "radialAccel" === e ? (c.nk(g[0]), c.ok(g[1])) : "startRadius" === e ? (c.R2(g[0]), c.S2(g[1])) : "endRadius" === e ? (c.w2(g[0]), c.x2(g[1])) : "rotatePerSecond" === e ? (c.K2(g[0]), c.L2(g[1])) : f.Ia.prototype.s1.call(this, c, d, e, g, h) }, q1: function(c, d, e, g, h) { "startColor" === e ? (c.Tg(g[0]), c.qk(g[1])) : "endColor" === e ? (c.Sg(g[0]), c.mk(g[1])) : f.Ia.prototype.q1.call(this, c, d, e, g, h) }, tj: function(c, d, e, g, h) { e === jc ? c.ce(g) : f.Ia.prototype.tj.call(this, c, d, e, g, h) }, w1: function(c, d, e, g, h) { "texture" === e ? c.ab(g) : f.Ia.prototype.w1.call(this, c, d, e, g, h) } }); f.qT.L = function() { return new f.qT }; f.Cj = f.N.extend({ Iq: null, ctor: function() { this.Iq = {} }, fga: function() { this.jk("CCNode", f.Ia.L()); this.jk("CCLayer", f.uk.L()); this.jk("CCLayerColor", f.aT.L()); this.jk("CCLayerGradient", f.cT.L()); this.jk("CCSprite", f.RT.L()); this.jk("CCLabelBMFont", f.ZS.L()); this.jk("CCLabelTTF", f.$S.L()); this.jk("CCScale9Sprite", f.MT.L()); this.jk("CCScrollView", f.NT.L()); this.jk("CCBFile", f.fS.L()); this.jk("CCMenu", f.iT.L()); this.jk("CCMenuItemImage", f.gT.L()); this.jk("CCControlButton", f.wS.L()); this.jk("CCParticleSystemQuad", f.qT.L()) }, jk: function(c, d) { this.Iq[c] = d }, F5a: function(c) { this.Iq[c] && delete this.Iq[c] }, pda: function(c) { return this.Iq[c] ? this.Iq[c] : null }, y0a: function(c) { if (c) for (var d in this.Iq) delete this.Iq[d]; this.Iq = {} } }); f.Cj.HI = null; f.Cj.KDa = function() { return new f.Cj }; f.Cj.V4a = function() { null == f.Cj.HI && (f.Cj.HI = new f.Cj, f.Cj.HI.fga()); return f.Cj.HI }; f.Cj.z0a = function() { f.Cj.HI = null }; f.Cj.VDa = function() { var c = f.Cj.KDa(); c.fga(); return c }; var Xa = 0, $a = 1, Ya = 2, Za = 3, ab = 4, db = 5, fb = 6, cb = 7, kb = 8, lb = 9, pb = 10, rb = 11, sb = 12, wb = 13, xb = 14, yb = 15, zb = 16, Ab = 17, Db = 18, Bb = 19, gb = 20, Hb = 21, qb = 22, Jb = 23, Cb = 24, Ib = 25, eb = 26, bb = 27, Ta = 0, Ua = 1, Wa = 2, Yb = 0, Zb = 1, $b = 2, Kb = 0, Mb = 1, Lb = 2, Nb = 3, Vb = 4, Wb = 5, Xb = 1; f.lD = f.v.extend({ RE: null, CSa: function() { return this.RE }, Iga: function(c) { this.RE = c } }); f.lD.create = function() { return new f.lD }; f.Mb = f.N.extend({ qn: !1, Mh: null, Tl: "", wqa: 0, Fg: 0, Zs: 0, IY: null, vt: null, Td: null, Pc: null, yv: null, cn: null, QE: null, lV: null, nL: null, rz: null, nw: null, ow: null, hX: null, PU: null, vA: null, wA: null, uA: null, IOa: !1, ctor: function(c, d, e, g) { this.IY = []; this.vt = []; this.Fg = this.Zs = -1; 0 != arguments.length && (c instanceof f.Mb ? (this.vt = c.vt, this.QE = c.QE, this.nL = c.nL, this.rz = c.rz, this.lV = c.lV, this.vA = c.vA, this.wA = c.wA, this.uA = c.uA, this.nw = c.nw, this.ow = c.ow, this.Tl = c.Tl) : (this.QE = c, this.nL = d, this.rz = e, this.lV = g)) }, ESa: function() { return this.Tl }, CGa: function(c) { this.Tl = c }, su: function(c, d) { this.Pc = new f.a4; this.Mh = c; this.wqa = c.length; this.Fg = this.Zs = 0; this.Td = d; this.Pc.J2(f.Q.Y); return !0 }, xOa: function(c) { var d = this.LH(), e = "load " + c + " failed!"; d.open("GET", c, !1); var g = 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 f.log(e), null; if (d = f.zV(d.responseBody)) g = this.hva(d), this.pra[c] = g } else { d.overrideMimeType && d.overrideMimeType("text/plain; charset\x3dx-user-defined"); d.send(null); if (200 != d.status) return f.log(e), null; g = this.hva(d.responseText); this.pra[c] = g } return g }, Vfa: function(c, d, e, g) { null == e ? e = f.Q.Y : e instanceof f.a4 && (g = e, e = f.Q.Y); var h = f.L.zd(c); h || (h = f.L.u0(c), h = f.L.gfa(h), f.L.jj[c] = h); return this.wFa(h, d, e, g) }, wFa: function(c, d, e) { this.su(c, d); c = this.Pc; c.J2(e); c.HC(d); this.nw = []; this.ow = []; this.vA = []; this.wA = []; this.uA = []; this.yv = new f.uv; (d = this.Ufa(!0)) && -1 != c.dz && c.d2(c.dz, 0); if (this.qn) { e = []; c = []; for (var g = this.yv, h = g.jB(), k = 0; k < h.length; k++) e.push(h[k]), c.push(g.Jm(h[k])); this.hX = e; this.PU = c } return d }, EQa: function(c, d, e, g) { c = this.Vfa(c, d, e, g); d = f.tq.create(); d.n(c); return d }, DSa: function() { return this.nL }, FSa: function() { return this.rz }, dSa: function() { return this.Pc }, v2a: function(c) { this.Pc = c }, $Ra: function() { return this.cn }, yUa: function() { return this.vt }, Lda: function() { return this.Td }, Bc: function(c) { for (var d = 0; !this.o$();) d++; for (var e = 0, g = d - 1; 0 <= g; g--) this.o$() && (e |= 1 << g); e |= 1 << d; c = c ? e % 2 ? 0 | e / 2 : 0 | -e / 2 : e - 1; this.fqa(); return c }, ca: function() { var c = this.Mh[this.Fg]; this.Fg++; return c }, DI: function() { return 0 != this.ca() }, $b: function() { switch (this.ca()) { case 0: return 0; case 1: return 1; case 2: return -1; case 3: return 0.5; case 4: return this.Bc(!0); default: return this.FV(23, 8) } }, FV: function(c, d) { var e = c + d + 1, g = e >> 3; this.sV(e); var e = Math.pow(2, d - 1) - 1, h = this.yaa(c + d, 1, g), k = this.yaa(c, d, g), m = 0, n = 2, p = 0; do for (var s = this.qN(++p, g), u = c % 8 || 8, v = 1 << u; v >>= 1;) s & v && (m += 1 / n), n *= 2; while (c -= u); this.Fg += g; return k == (e << 1) + 1 ? m ? NaN : h ? -Infinity : Infinity : (1 + -2 * h) * (k || m ? k ? Math.pow(2, k - e) * (1 + m) : Math.pow(2, -e + 1) * m : 0) }, yaa: function(c, d, e) { var g = (c + d) % 8, h = c % 8, k = e - (c >> 3) - 1; c = e + (-(c + d) >> 3); var m = k - c; d = this.qN(k, e) >> h & (1 << (m ? 8 - h : d)) - 1; for (m && g && (d += (this.qN(c++, e) & (1 << g) - 1) << (m-- << 3) - h); m;) d += this.tY(this.qN(c++, e), (m-- << 3) - h); return d }, qN: function(c, d) { return this.Mh[this.Fg + d - c - 1] }, tY: function(c, d) { for (++d; --d; c = 1073741824 == ((c %= 2147483648) & 1073741824) ? 2 * c : 2 * (c - 1073741824) + 2147483648); return c }, sV: function(c) { if (!(this.Fg + Math.ceil(c / 8) < this.Mh.length)) throw Error("Index out of bound"); }, Bf: function() { return this.IY[this.Bc(!1)] }, IXa: function() { return this.qn }, ZUa: function() { return this.vA }, $Ua: function() { return this.wA }, YUa: function() { return this.uA }, aVa: function() { return this.nw }, bVa: function() { return this.ow }, LUa: function() { return this.hX }, fSa: function() { return this.PU }, eSa: function() { return this.yv }, Dga: function(c) { this.yv = c }, Zba: function(c) { this.vA.push(c) }, $ba: function(c) { this.wA.push(c) }, Yba: function(c) { this.uA.push(c) }, vO: function(c) { this.Pc.vO(c) }, wO: function(c) { this.Pc.wO(c) }, uO: function(c) { this.Pc.uO(c) }, Ufa: function(c) { if (!this.Mta() || !this.Pta() || !this.Nta()) return null; var d = this.zaa(); this.yv.ul(this.Pc, d); c && this.W8(d); return d }, vPa: function(c) { this.nw.push(c) }, wPa: function(c) { null != c && this.ow.push(c) }, W8: function(c) { c.userObject = null; c = c.re(); for (var d = 0, e = c.length; d < e; d++) this.W8(c[d]) }, Lta: function(c) { var d = this.Bc(!1); if (!d) return !0; for (var e = new f.hS, g = this.qn, h = this.Pc, k = e.$q, m = 0; m < d; m++) { var n = this.$b(), p = this.Bf(), s = this.Bc(!1), u = [p, s], v = new f.AJ; v.setTime(n); v.ue(u); g && h.CM.push(s + ":" + p); k.push(v) } c.DGa(e); return !0 }, Ota: function(c) { var d = this.Bc(!1); if (!d) return !0; for (var e = new f.hS, g = e.$q, h = 0; h < d; h++) { var k = this.$b(), m = this.Bf(), n = this.$b(), p = this.$b(), s = this.$b(), m = [m, n, p, s], n = new f.AJ; n.setTime(k); n.ue(m); g.push(n) } c.MHa(e); return !0 }, Nta: function() { for (var c = this.Pc.MA, d = this.Bc(!1), e = 0; e < d; e++) { var g = new f.Gja; g.Ei(this.$b()); g.gf(this.Bf()); g.JHa(this.Bc(!1)); g.FGa(this.Bc(!0)); if (!this.Lta(g) || !this.Ota(g)) return !1; c.push(g) } this.Pc.zGa(this.Bc(!0)); return !0 }, vFa: function(c) { var d = new f.AJ; d.setTime(this.$b()); var e = this.Bc(!1), g = 0, h = null; if (2 === e || 3 === e || 4 === e || 5 === e || 6 === e || 7 === e) g = this.$b(); d.Iu(e); d.RGa(g); c == lb ? h = this.DI() : c == sb ? h = this.ca() : c == wb ? (c = f.color(this.ca(), this.ca(), this.ca()), h = f.KJ.create(c)) : c == bb ? h = [this.$b(), this.$b()] : c == db ? h = this.$b() : c == ab || c == Xa || c == bb ? h = [this.$b(), this.$b()] : c == pb && (c = this.Bf(), e = this.Bf(), "" == c ? (e = this.Tl + e, c = f.nb.vd(e), e = c.e(), h = f.Li.create(c, x(0, 0, e.width, e.height))) : (c = this.Tl + c, g = f.Je, -1 == this.vt.indexOf(c) && (g.vp(c), this.vt.push(c)), h = g.Ca(e))); d.ue(h); return d }, Mta: function() { if (null == this.Mh) return !1; var c = this.Rta(this.Fg, 4, !0); this.Fg += 4; if ("ccbi" != c) return !1; c = this.Bc(!1); if (5 != c) return f.log("WARNING! Incompatible ccbi file version (file: " + c + " reader: 5)"), !1; this.qn = this.DI(); this.Pc.qn = this.qn; return !0 }, Rta: function(c, d, e) { c = ""; var g = this.Mh, h = this.Fg; if (e) for (e = d - 1; 0 <= e; e--) c += String.fromCharCode(g[h + e]); else for (e = 0; e < d; e++) c += String.fromCharCode(g[h + e]); return c }, Pta: function() { for (var c = this.Bc(!1), d = 0; d < c; d++) this.Qta(); return !0 }, Qta: function() { for (var c = this.ca(), d = this.ca(), c = c << 8 | d, d = "", e = this.Mh, g = this.Fg, h = 0; h < c; h++) var k = e[g + h].toString("16").toUpperCase(), k = 1 < k.length ? k : "0" + k, d = d + ("%" + k); d = decodeURIComponent(d); this.Fg += c; this.IY.push(d) }, zaa: function(c) { var d = this.Bf(), e, g = this.qn, h = this.Pc; g && (e = this.Bf()); var k = this.Bc(!1), m; k != Yb && (m = this.Bf()); var n = this.QE.pda(d); n || (n = this.QE.pda("CCNode")); d = n.MDa(c, this); h.gm || h.GHa(d); g && d == h.gm && h.PGa(e); var p = new f.uv, s = this.cn = [], u = this.Bc(!1); for (e = 0; e < u; ++e) { for (var v = this.Bc(!1), z = new f.uv, A = this.Bc(!1), B = 0; B < A; ++B) { var C = new f.hS; C.gf(this.Bf()); C.aJ(this.Bc(!1)); s.push(C.getName()); for (var G = this.Bc(!1), L = C.$q, O = 0; O < G; ++O) { var R = this.vFa(C.zc); L.push(R) } z.ul(C, C.getName()) } p.ul(z, v) } 0 < p.count() && h.zO(d, p); n.UEa(d, c, this); d instanceof f.lD && (e = d.RE, e.o(d.Od()), e.yh(d.Cx()), e.jb(d.ka), e.tb(d.ra), e.Nm(d.Em()), e.za(!0), h.SDa(d, e), d.Iga(null), d = e); e = null; k != Yb && g && (k == Zb ? (h.Qva(m), h.Rva(d)) : (this.nw.push(m), this.ow.push(d))); if (0 < n.Dz.length && !g && (e = d, null != e && null != e.ZDa)) for (g = n.Dz.jB(), e = 0; e < g.length; e++); this.cn = null; g = this.Bc(!1); for (e = 0; e < g; e++) h = this.zaa(d), d.n(h); return d }, o$: function() { var c = 0 != (this.Mh[this.Fg] & 1 << this.Zs); this.Zs++; if (8 <= this.Zs && (this.Zs = 0, this.Fg++, this.Fg > this.Mh.length)) throw "out of the data bound"; return c }, fqa: function() { this.Zs && (this.Zs = 0, this.Fg++) }, JOa: function() {} }); f.Mb.U8 = 1; f.Mb.e4a = function(c) { f.Mb.U8 = c }; f.Mb.qu = function() { return f.Mb.U8 }; f.Mb.l_a = function(c, d, e, g) { g = g || f.Mb.l0(); c = f.Mb.load(c, d, e, g); d = f.tq.create(); d.n(c); return d }; f.Mb.Z8 = {}; f.Mb.O0a = function(c, d) { f.Mb.Z8[c] = f.N.extend(d) }; f.Mb.load = function(c, d, e, g) { g = g || f.Mb.l0(); var h = new f.Mb(f.Cj.VDa()); h.CGa(g); if (5 > c.length || c.toLowerCase().lastIndexOf(".ccbi") != c.length - 5) c += ".ccbi"; c = h.Vfa(c, d, e); var k, m, n; if (d) { g = h.vA; var p = h.wA, s = h.uA; for (e = 0; e < g.length; e++) k = g[e], m = p[e], n = s[e], m instanceof f.Xm ? m.VG(d, d[k], n) : m.Kga(d[k], d); g = h.nw; p = h.ow; for (e = 0; e < g.length; e++) k = g[e], m = p[e], d[k] = m } g = h.hX; h = h.PU; if (!g || !h) return c; p = f.Mb.Z8; for (e = 0; e < g.length; e++) { var u = g[e], s = h[e]; u.LPa = s; if (k = s.TV) { var v = p[k]; if (!v) throw "Can not find controller : " + k; v = new v; v.yQa = k; u.xQa = v; v.P1a = u; for (var z = s.KL, A = s.LL, B = s.JL, u = 0; u < z.length; u++) k = z[u], m = A[u], n = B[u], m instanceof f.Xm ? m.VG(v, v[k], n) : m.Kga(v[k], v); n = s.ML; z = s.NL; for (u = 0; u < n.length; u++) k = n[u], m = z[u], v[k] = m; v.xfa && "function" == typeof v.xfa && v.xfa(); k = s.CM; for (u = 0; u < k.length; u++) n = k[u].split(":"), m = n[0], n = n[1], 1 == m ? s.Jga(f.ua.create(v[n], v), k[u]) : 2 == m && d && s.Jga(f.ua.create(d[n], d), k[u]) } } return c }; f.Mb.Jaa = ""; f.Mb.f4a = function(c) { f.Mb.Jaa = c }; f.Mb.l0 = function() { return f.Mb.Jaa }; f.Mb.efa = function(c) { var d = c.lastIndexOf("/"); return -1 != d ? c.substring(d + 1, c.length - d) : c }; f.Mb.Oxa = function(c) { var d = c.lastIndexOf("."); return -1 != d ? c.substring(0, d) : c }; f.Mb.toLowerCase = function(c) { return c.toLowerCase() }; f.Mb.rRa = function(c, d) { return c.length >= d.length ? 0 == c.lastIndexOf(d) : !1 }; f.Mb.concat = function(c, d) { return c + d }; f.L.Xp(["ccbi"], f.uqa); f.vLa = 0; f.jLa = 1; f.lMa = 2; f.fKa = 3; f.fNa = 4; f.KJ = f.N.extend({ Ea: null, ctor: function() { this.Ea = f.color(0, 0, 0) }, $a: function() { return this.Ea } }); f.KJ.create = function(c) { var d = new f.KJ; d && (d.Ea.r = c.r, d.Ea.g = c.g, d.Ea.b = c.b); return d }; f.d4 = f.N.extend({ Kd: null, zc: 0, iUa: function() {}, getFloatValue: function() {}, zSa: function() {}, BSa: function() {}, nVa: function() {}, Uf: function() { return this.Kd } }); f.d4.create = function() { return new f.d4 }; f.AJ = f.N.extend({ Kd: null, qba: 0, QL: 0, XV: 0, Uf: function() { return this.Kd }, ue: function(c) { this.Kd = c }, getTime: function() { return this.qba }, setTime: function(c) { this.qba = c }, GTa: function() { return this.QL }, Iu: function(c) { this.QL = c }, FTa: function() { return this.XV }, RGa: function(c) { this.XV = c } }); f.Gja = f.N.extend({ C: 0, nd: "", AN: 0, pV: 0, kL: null, JN: null, ctor: function() { this.nd = "" }, pu: function() { return this.C }, Ei: function(c) { this.C = c }, getName: function() { return this.nd }, gf: function(c) { this.nd = c }, NVa: function() { return this.AN }, JHa: function(c) { this.AN = c }, RSa: function() { return this.pV }, FGa: function(c) { this.pV = c }, KSa: function() { return this.kL }, DGa: function(c) { this.kL = c }, TVa: function() { return this.JN }, MHa: function(c) { this.JN = c } }); f.hS = f.N.extend({ nd: null, zc: 0, $q: null, ctor: function() { this.j() }, j: function() { this.$q = []; this.nd = "" }, getName: function() { return this.nd }, gf: function(c) { this.nd = c }, IH: function() { return this.zc }, aJ: function(c) { this.zc = c }, nUa: function() { return this.$q } }); f.sza = function(c, d, e) { var g = r(0, 0); 0 === d ? g = c : 1 === d ? (g.x = c.x, g.y = e.height - c.y) : 2 === d ? (g.x = e.width - c.x, g.y = e.height - c.y) : 3 === d ? (g.x = e.width - c.x, g.y = c.y) : 4 === d ? (g.x = e.width * c.x / 100, g.y = e.height * c.y / 100) : 5 === d && (d = f.Mb.qu(), g.x = c.x * d, g.y = c.y * d); return g }; f.mW = function(c, d, e, g) { var h = r(0, 0); 0 === e ? (h.x = c, h.y = d) : 1 === e ? (h.x = c, h.y = g.height - d) : 2 === e ? (h.x = g.width - c, h.y = g.height - d) : 3 === e ? (h.x = g.width - c, h.y = d) : 4 === e ? (h.x = g.width * c / 100, h.y = g.height * d / 100) : 5 === e && (e = f.Mb.qu(), h.x = c * e, h.y = d * e); return h }; f.Jha = function(c, d, e, g) { if (!c) throw "cc.setRelativeScale(): node should be non-null"; 5 === g && (g = f.Mb.qu(), d *= g, e *= g); c.jb(d); c.tb(e) }; f.vKa = f.N.extend({ vQa: function() {} }); f.a4 = f.N.extend({ MA: null, RF: null, gz: null, dz: 0, gm: null, Td: null, xN: null, Pq: null, iG: null, ML: null, NL: null, KL: null, LL: null, JL: null, TV: "", SW: "", CM: null, RW: null, OU: null, ad: null, qn: !1, ctor: function() { this.xN = t(0, 0); this.j() }, j: function() { this.MA = []; this.RF = new f.uv; this.gz = new f.uv; this.ML = []; this.NL = []; this.KL = []; this.LL = []; this.JL = []; this.CM = []; this.RW = {}; return !0 }, OVa: function() { return this.MA }, j4a: function(c) { this.MA = c }, iSa: function() { return this.dz }, zGa: function(c) { this.dz = c }, GVa: function() { return this.gm }, GHa: function(c) { this.gm = c }, Lda: function() { return this.Td }, HC: function(c) { this.Td = c }, wO: function(c) { this.LL.push(c) }, vO: function(c) { this.KL.push(c) }, uO: function(c) { this.JL.push(c) }, Rva: function(c) { this.NL.push(c) }, Qva: function(c) { this.ML.push(c) }, PGa: function(c) { this.TV = c }, ATa: function() { return this.TV }, yTa: function() { return this.KL }, zTa: function() { return this.LL }, xTa: function() { return this.JL }, BTa: function() { return this.ML }, CTa: function() { return this.NL }, oUa: function() { return this.SW }, mUa: function() { return this.CM }, FVa: function() { return this.xN }, J2: function(c) { this.xN = t(c.width, c.height) }, NB: function() { return this.Pq }, $p: function(c) { this.Pq = c }, IVa: function() { return this.iG ? this.iG.getName() : null }, hP: function(c) { return c ? c.e() : this.xN }, zO: function(c, d) { this.RF.ul(d, c) }, Zx: function(c, d, e) { var g = this.gz.Jm(d); g || (g = new f.uv, this.gz.ul(g, d)); g.ul(c, e) }, SDa: function(c, d) { var e = this.gz, g = e.Jm(c); null != g && (e.ul(g, d), e.Z1(c)); e = this.RF; g = e.Jm(c); null != g && (e.ul(g, d), e.Z1(c)) }, tza: function(c) { var d = 0, e = []; c = c.$q; for (var g = c.length, h = 0; h < g; ++h) { var k = c[h], m = k.getTime() - d, d = k.getTime(); 0 < m && e.push(f.Nb.create(m)); m = k.Uf(); k = m[0]; m = m[1]; if (this.qn) k = this.RW[m + ":" + k], null != k && e.push(k); else { var n; m == Zb ? n = this.gm : m == $b && (n = this.Td); null != n && (0 < k.length ? (m = 0, null != n.hEa && (m = void 0), 0 == m ? f.log("Skipping selector '" + k + "' since no CCBSelectorResolver is present.") : e.push(f.ua.create(m, n))) : f.log("Unexpected empty selector.")) } } return 1 > e.length ? null : f.X.create(e) }, uza: function(c) { var d = 0, e = []; c = c.$q; for (var g = c.length, h = 0; h < g; ++h) { var k = c[h], m = k.getTime() - d, d = k.getTime(); 0 < m && e.push(f.Nb.create(m)); k = k.Uf(); e.push(f.jS.create(f.Mb.l0() + k[0], parseFloat(k[1]), parseFloat(k[2]), parseFloat(k[3]))) } return 1 > e.length ? null : f.X.create(e) }, S1a: function(c) { this.e2(this.zW(c), 0) }, T1a: function(c, d) { this.e2(this.zW(c), d) }, e2: function(c, d) { if (-1 === c) throw "cc.BuilderAnimationManager.runAnimationsForSequenceIdTweenDuration(): Sequence id should not be -1"; d = d || 0; this.gm.Pm(); for (var e = this.RF.jB(), g = 0, h = e.length; g < h; g++) { var k = e[g]; k.Pm(); var m = this.RF.Jm(k).Jm(c), n, p = []; if (m) { var s = m.jB(); for (n = 0; n < s.length; n++) { var u = s[n], v = m.Jm(u); p.push(u); this.qua(k, v, d); this.eua(k, v, d) } } if (m = this.gz.Jm(k)) for (s = m.jB(), n = 0; n < s.length; n++) u = s[n], -1 == p.indexOf(u) && (v = m.Jm(u), null != v && this.eY(u, k, v, d)) } e = this.s$(c); g = f.X.create(f.Nb.create(e.pu() + d), f.ua.create(this.hua, this)); this.gm.V(g); e.kL && (g = this.tza(e.kL)) && this.gm.V(g); e.JN && (g = this.uza(e.JN)) && this.gm.V(g); this.iG = this.s$(c) }, d2: function(c, d) { this.e2("string" === typeof c ? this.zW(c) : c, d || 0) }, uGa: function(c, d) { this.ad = c; this.OU = d }, M2a: function(c, d) { this.uGa(c, d) }, Jga: function(c, d) { this.RW[d] = c }, debug: function() {}, tF: function(c, d) { var e = this.gz.Jm(c); return e ? e.Jm(d) : null }, zW: function(c) { for (var d = null, e = this.MA, g = 0, h = e.length; g < h; g++) if ((d = e[g]) && d.getName() === c) return d.AN; return -1 }, s$: function(c) { for (var d = null, e = this.MA, g = 0, h = e.length; g < h; g++) if ((d = e[g]) && d.AN === c) return d; return null }, j$: function(c, d, e, g) { c = d.getTime() - (c ? c.getTime() : 0); var h; if ("rotation" === e) return f.gS.create(c, d.Uf()); if ("rotationX" === e) return f.b4.create(c, d.Uf()); if ("rotationY" === e) return f.c4.create(c, d.Uf()); if ("opacity" === e) return f.Xc.create(c, d.Uf()); if ("color" === e) return g = d.Uf().$a(), f.Vy.create(c, g.r, g.g, g.b); if ("visible" === e) return d.Uf() ? f.X.create(f.Nb.create(c), f.Ej.create()) : f.X.create(f.Nb.create(c), f.Hl.create()); if ("displayFrame" === e) return f.X.create(f.Nb.create(c), f.iS.create(d.Uf())); if ("position" === e) return e = this.tF(g, e), e = e[2], h = d.Uf(), d = h[0], h = h[1], g = this.hP(g.getParent()), g = f.mW(d, h, e, g), f.Dc.create(c, g); if ("scale" === e) return e = this.tF(g, e), e = e[2], h = d.Uf(), d = h[0], h = h[1], e === Xb && (g = f.Mb.qu(), d *= g, h *= g), f.Db.create(c, d, h); if ("skew" === e) return h = d.Uf(), d = h[0], h = h[1], f.uq.create(c, d, h); f.log("BuilderReader: Failed to create animation for property: " + e); return null }, eY: function(c, d, e, g) { if (0 < g) { var h = new f.AJ; h.ue(e); h.setTime(g); h.Iu(1); e = this.j$(null, h, c, d); d.V(e) } else "position" === c ? (c = this.tF(d, c), c = c[2], g = e[0], e = e[1], d.o(f.mW(g, e, c, this.hP(d.getParent())))) : "scale" === c ? (c = this.tF(d, c), c = c[2], g = e[0], e = e[1], f.Jha(d, g, e, c)) : "skew" === c ? (g = e[0], e = e[1], d.XI(g), d.YI(e)) : "rotation" === c ? d.yh(e) : "rotationX" == c ? d.h4a(e) : "rotationY" == c ? d.i4a(e) : "opacity" === c ? d.J(e) : "displayFrame" === c ? d.Dd(e) : "color" === c ? (e = e.$a(), 255 === e.r && 255 === e.g && 255 === e.b || d.F(e)) : "visible" === c ? d.za(e || !1) : f.log("unsupported property name is " + c) }, qua: function(c, d, e) { var g = d.$q; 0 === g.length ? ((g = this.tF(c, d.getName())) || f.log("cc.BuilderAnimationManager._setFirstFrame(): No baseValue found for property"), this.eY(d.getName(), c, g, e)) : this.eY(d.getName(), c, g[0].Uf(), e) }, Gra: function(c, d, e) { if (1 === d || 0 === d) return c; if (2 === d) return f.MD.create(c, e); if (3 === d) return f.vs.create(c, e); if (4 === d) return f.Cy.create(c, e); if (11 === d) return f.wD.create(c); if (12 === d) return f.yD.create(c); if (13 === d) return f.xD.create(c); if (8 === d) return f.AD.create(c); if (9 === d) return f.CD.create(c); if (10 === d) return f.BD.create(c); if (5 === d) return f.JD.create(c, e); if (6 === d) return f.LD.create(c, e); if (7 === d) return f.KD.create(c, e); f.log("BuilderReader: Unkown easing type " + d); return c }, eua: function(c, d, e) { var g = d.$q, h = g.length; if (1 < h) { var k = []; e = g[0].getTime() + e; 0 < e && k.push(f.Nb.create(e)); for (e = 0; e < h - 1; ++e) { var m = g[e], n = this.j$(m, g[e + 1], d.getName(), c); n && (n = this.Gra(n, m.QL, m.XV), k.push(n)) } d = f.X.create(k); c.V(d) } }, hua: function() { var c = this.iG; this.SW != c.getName() && (this.SW = c.getName()); c = c.pV; this.iG = null; - 1 != c && this.d2(c, 0); this.ad && this.OU && this.OU.call(this.ad) } }); f.iS = f.Ch.extend({ pr: null, pj: function(c) { this.pr = c; return !0 }, update: function() { this.target.Dd(this.pr) } }); f.iS.create = function(c) { var d = new f.iS; return d && d.pj(c) ? d : null }; f.gS = f.M.extend({ Gw: 0, o9: 0, j9: 0, f: function(c, d) { return f.M.prototype.f.call(this, c) ? (this.o9 = d, !0) : !1 }, update: function(c) { this.target.yh(this.Gw + this.j9 * c) }, R: function(c) { f.M.prototype.R.call(this, c); this.Gw = this.target.Cx(); this.j9 = this.o9 - this.Gw } }); f.gS.create = function(c, d) { var e = new f.gS; return e && e.f(c, d) ? e : null }; f.b4 = f.M.extend({}); f.b4.create = function() { throw "rotationX has not been implemented in cocos2d-html5"; }; f.c4 = f.M.extend({}); f.c4.create = function() { throw "rotationY has not been implemented in cocos2d-html5"; }; f.jS = f.Ch.extend({ j: function(c) { this.ora = c; return !0 }, update: function() { f.pe.zI(this.ora) } }); f.jS.create = function(c) { var d = new f.jS; return d && d.j(c) ? d : null }; f.Rd = {}; f.Rd.A8 = function(c) { for (var d in f.Rd.k1) c[d] = f.Rd.k1[d]; f.d(c, "x", c.Vc, c.ls); f.d(c, "y", c.Zd, c.Lu); f.d(c, "width", c.lf, c.Uh); f.d(c, "height", c.Gg, c.Th); f.d(c, "anchorX", c.l$, c.Xe); f.d(c, "anchorY", c.m$, c.Ye); f.d(c, "scale", c.AH, c.ib); f.d(c, "scaleX", c.sP, c.jb); f.d(c, "scaleY", c.BH, c.BH); f.d(c, "rotation", c.Cx, c.yh); f.d(c, "skewX", c.Uda, c.XI); f.d(c, "skewY", c.Vda, c.YI); f.d(c, "visible", c.V0, c.za); f.d(c, "parent", c.getParent, c.aq); f.d(c, "opacity", c.vb, c.J) }; f.Rd.k1 = { o: function(c, d) { void 0 === d ? (this.oa.x = c.x, this.oa.y = c.y) : (this.oa.x = c, this.oa.y = d); this.Ha(); this.la.nJ(this.oa.x, -this.oa.y) }, Lu: function(c) { this.oa.y = c; this.Ha(); this.la.nJ(this.oa.x, -this.oa.y) }, ls: function(c) { this.oa.x = c; this.Ha(); this.la.nJ(this.oa.x, -this.oa.y) }, ib: function(c, d) { this.ka = c; this.ra = d || c; this.Ha(); this.la.resize(this.ka, this.ra) }, jb: function(c) { this.ka = c; this.Ha(); this.la.resize(this.ka, this.ra) }, tb: function(c) { this.ra = c; this.Ha(); this.la.resize(this.ka, this.ra) }, S: function(c, d) { var e = this.Eb; void 0 === d ? (e.x = c.x, e.y = c.y) : (e.x = c, e.y = d); var g = this.Qb, h = this.m; g.x = h.width * e.x; g.y = h.height * e.y; this.la.style[f.mc.yu + "TransformOrigin"] = "" + g.x + "px " + -g.y + "px"; this.ignoreAnchor ? (this.la.style.marginLeft = 0, this.la.style.marginBottom = 0) : (this.la.style.marginLeft = this.fDa ? 0 : -g.x + "px", this.la.style.marginBottom = -g.y + "px"); this.Ha() }, Xe: function(c) { var d = this.Eb; c !== d.x && (d.x = c, c = this.Qb, c.x = this.m.width * d.x, this.la.style[f.mc.yu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.la.style.marginLeft = 0, this.la.style.marginBottom = 0) : this.la.style.marginLeft = this.fDa ? 0 : -c.x + "px", this.Ha()) }, Ye: function(c) { var d = this.Eb; c !== d.y && (d.y = c, c = this.Qb, c.y = this.m.height * d.y, this.la.style[f.mc.yu + "TransformOrigin"] = "" + c.x + "px " + -c.y + "px", this.ignoreAnchor ? (this.la.style.marginLeft = 0, this.la.style.marginBottom = 0) : this.la.style.marginBottom = -c.y + "px", this.Ha()) }, Ga: function(c, d) { var e = this.m; void 0 === d ? (e.width = c.width, e.height = c.height) : (e.width = c, e.height = d); var g = this.Qb, h = this.Eb; g.x = e.width * h.x; g.y = e.height * h.y; this.la.width = e.width; this.la.height = e.height; this.S(this.bk()); this.canvas && (this.canvas.width = e.width, this.canvas.height = e.height); this.Ha(); this.V1() }, Uh: function(c) { var d = this.m; c !== d.width && (d.width = c, c = this.Eb, this.Qb.x = d.width * c.x, this.la.width = d.width, this.anchorX = c.x, this.canvas && (this.canvas.width = d.width), this.Ha(), this.V1()) }, Th: function(c) { var d = this.m; c !== d.height && (d.height = c, c = this.Eb, this.Qb.y = d.height * c.y, this.la.height = d.height, this.anchorY = c.y, this.canvas && (this.canvas.height = d.height), this.Ha(), this.V1()) }, yh: function(c) { this.LA != c && (this.bj = this.hm = c, this.Cn = Math.PI / 180 * this.bj, this.Aw = Math.PI / 180 * this.hm, this.Ha(), this.la.rotate(c)) }, XI: function(c) { this.og = c; this.Ha(); this.la.Pha(this.og, this.pg) }, YI: function(c) { this.pg = c; this.Ha(); this.la.Pha(this.og, this.pg) }, za: function(c) { this.Na = c; this.Ha(); this.la && (this.la.style.display = c ? "block" : "none") }, Cw: function(c) { this.Ya = c; this.Ha(); this.la && (this.la.zIndex = c) }, aq: function(c) { this.Yb = c; null !== c && (c.S(c.bk()), this.Ha(), f.Rd.EQ(this)) }, lk: function() { this.Dm().Km(this); this.IB().Km(this); f.Qa.Km(this); this.la && !this.la.parentNode && (this.getParent() ? f.Rd.EQ(this) : this.la.cx(f.container)); this.la && (this.la.style.visibility = "visible") }, pause: function() { this.Dm().as(this); this.IB().as(this); f.Qa.as(this); this.la && (this.la.style.visibility = "hidden") }, De: function() { this.Pm(); this.pJ(); this.Bk(this.i, f.v.Fj.De); this.la && this.la.remove() }, QFa: function() { this.la.remove() }, J: function(c) { this.Ib = c; this.la.style.opacity = c / 255 }, V1: function() { if (this.Mea) { var c = this.i; this.i = []; f.q.prototype.I.call(this, this.vB); this.i = c } else f.q.prototype.I.call(this, this.vB) } }; f.Rd.aua = function() { var c = f.mc("#EGLViewDiv"); if (c) { var d = f.view, e = d.tH(), g = d.ph, h = d.Dda(), k = d.Qq, m = e.width, n = e.height; 0 === e.width && 0 === e.height && (m = h.width, n = h.height); e = g.width / k; 0 === g.width && 0 === g.height && (e = h.width); c.style.position = "absolute"; c.style.width = m + "px"; c.style.maxHeight = n + "px"; c.style.margin = 0; c.resize(d.ka / k, d.ra / k); c.style.left = (e - m) / 2 + "px"; c.style.bottom = "0px" } }; f.Rd.EQ = function(c) { var d = c.getParent(); if (d && c.la) if (d.la || (f.Rd.placeHolder(d), d.aq = f.Rd.k1.aq), c.la.cx(d.la), d.S(d.bk()), d.getParent()) f.Rd.EQ(d); else if (d.dd) if (c = f.mc("#EGLViewDiv")) d.la.cx(c); else { c = f.bD("div"); c.id = "EGLViewDiv"; var e = f.view, g = e.tH(), h = e.ph, k = e.Dda(), m = e.Qq, n = g.width, p = g.height; 0 === g.width && 0 === g.height && (n = k.width, p = k.height); g = h.width / m; 0 === h.width && 0 === h.height && (g = k.width); c.style.position = "absolute"; c.style.width = n + "px"; c.style.maxHeight = p + "px"; c.style.margin = 0; c.resize(e.ka / m, e.ra / m); c.style.left = (g - n) / 2 + "px"; c.style.bottom = "0px"; d.la.cx(c); c.cx(f.container) } }; f.Rd.setTransform = function(c) { if (c.vB) if (c.vB.translate(c.Bp().x, c.Bp().y), c.Mea) { var d = c.i; c.i = []; f.q.prototype.I.call(c, c.vB); c.i = d } else f.q.prototype.I.call(c, c.vB); c.la && (c.la.position.x = c.Vc(), c.la.position.y = -c.Zd(), c.la.rotation = c.Cx(), c.la.scale = { x: c.ka, y: c.ra }, c.la.ky = { x: c.og, y: c.pg }, c.S && c.S(c.bk()), c.la.ny()) }; f.Rd.jza = function(c) { c.la = f.bD("div"); c.canvas = f.bD("canvas"); var d = c.e(); c.canvas.width = d.width; c.canvas.height = d.height; c.la.style.position = "absolute"; c.la.style.bottom = 0; c.vB = c.canvas.getContext("2d"); c.la.appendChild(c.canvas); c.getParent() && f.Rd.EQ(c); c.Mea = !0 }; f.Rd.placeHolder = function(c) { c.la = f.bD("div"); c.placeholder = !0; c.la.style.position = "absolute"; c.la.style.bottom = 0; c.la.style.width = (c.e().width || f.Q.Y.width) + "px"; c.la.style.maxHeight = (c.e().height || f.Q.Y.height) + "px"; c.la.style.margin = 0; f.Rd.setTransform(c); c.la.ny(); f.Rd.A8(c) }; f.Rd.l_ = function(c) { if (1 < arguments.length) f.Rd.l_(arguments); else if (1 != arguments.length || arguments[0].length) for (var d = arguments[0], e = 0; e < d.length; e++) d[e] instanceof f.q ? d[e].la || f.Rd.jza(d[e]) : f.log("DOM converter only supports sprite and menuitems yet"), f.Rd.A8(d[e]), d[e].I = function() {}, d[e].transform = function() {}, f.Rd.setTransform(d[e]), d[e].za(d[e].Na); else f.Rd.l_([arguments[0]]) }; f.ama = 0; f.xLa = 1; f.ALa = 2; f.zLa = 3; f.yLa = 4; f.jla = 0; f.bLa = 1; f.cLa = 2; f.dLa = 3; f.fLa = 4; f.aLa = 5; f.eLa = 6; f.hla = 0; f.ila = 1; f.$Ka = 2; f.ZKa = 3; f.YKa = 4; f.iLa = f.N.extend({ iRa: function() {}, jRa: function() {}, lRa: function() {}, kRa: function() {} }); f.WD = f.Xm.extend({ UV: null, Pq: null, kra: f.jla, jra: f.ila, Rsa: f.ama, WOa: "", wn: "", CG: null, AA: null, $$: 50, eqa: 18, Sd: null, Gz: 14, RL: "Arial", iN: "", $F: 14, ZOa: !1, ta: "EditBox", ctor: function(c) { function d() { h.blur() } f.Xm.prototype.ctor.call(this); this.CG = f.color.WHITE; this.AA = f.color.GRAY; this.Ga(c); var e = this.UV = new f.q; e.ma = function() {}; this.n(e); var g = this, h = this.Sd = f.fd("input"); h.type = "text"; h.style.fontSize = this.Gz + "px"; h.style.color = "#000000"; h.style.border = 0; h.style.background = "transparent"; h.style.width = "100%"; h.style.height = "100%"; h.style.active = 0; h.style.outline = "medium"; f.ub(h, "input", function() {}); f.ub(h, "keypress", function(c) { c.keyCode === f.Jy.N_ && (c.stopPropagation(), c.preventDefault(), f.Sb.focus()) }); f.ub(h, "focus", function() { this.value == g.wn && (this.value = "", this.style.fontSize = g.Gz + "px", this.style.color = f.xp(g.CG)); f.ub(f.Sb, "click", d) }); f.ub(h, "blur", function() { "" == this.value && (this.value = g.wn, this.style.fontSize = g.$F + "px", this.style.color = f.xp(g.AA)); f.Sb.removeEventListener("click", d) }); f.Rd.l_(e); e.la.appendChild(h); e.la.W4a = !1; e.la.style.width = c.width - 6 + "px"; e.la.style.height = c.height - 6 + "px"; e.canvas.remove() }, h3a: function(c, d) { this.Gz = d; this.RL = c; this.EN() }, mr: function(c) { if (c = f.ia.eM.exec(c)) this.Gz = parseInt(c[1]), this.RL = c[2], this.EN() }, de: function(c) { this.RL = c; this.EN() }, Qd: function(c) { this.Gz = c; this.EN() }, EN: function() { this.Sd.value != this.wn && (this.Sd.style.fontFamily = this.RL, this.Sd.style.fontSize = this.Gz + "px") }, T2: function(c) { f.log("Please use the setString"); null != c && ("" == c ? (this.Sd.value = this.wn, this.Sd.style.color = f.xp(this.AA)) : (this.Sd.value = c, this.Sd.style.color = f.xp(this.CG))) }, wa: function(c) { null != c && ("" == c ? (this.Sd.value = this.wn, this.Sd.style.color = f.xp(this.AA)) : (this.Sd.value = c, this.Sd.style.color = f.xp(this.CG))) }, SGa: function(c) { this.CG = c; this.Sd.value != this.wn && (this.Sd.style.color = f.xp(c)) }, ks: function(c) { !isNaN(c) && 0 < c && (this.$$ = c, this.Sd.maxLength = c) }, Ax: function() { return this.$$ }, Gi: function(c) { if (null != c) { var d = this.wn; this.wn = c; this.Sd.value == d && (this.Sd.value = c, this.Sd.style.color = f.xp(this.AA), this.kG()) } }, W3a: function(c, d) { this.iN = c; this.$F = d; this.kG() }, yua: function(c) { if (c = f.ia.eM.exec(c)) this.iN = c[2], this.$F = parseInt(c[1]), this.kG() }, rHa: function(c) { this.iN = c; this.kG() }, sHa: function(c) { this.$F = c; this.kG() }, kG: function() { this.Sd.value == this.wn && (this.Sd.style.fontFamily = this.iN, this.Sd.style.fontSize = this.$F + "px") }, qHa: function(c) { this.AA = c; this.Sd.value == this.wn && (this.Sd.style.color = f.xp(c)) }, XGa: function(c) { this.jra = c; this.Sd.type = c == f.hla ? "password" : "text" }, fWa: function() { f.log("Please use the getString"); return this.Sd.value }, qc: function() { return this.Sd.value }, ACa: function(c, d) { return this.yea(d) ? (this.UV.x = 3, this.UV.y = 3, this.$ha(!1), this.He(c), this.y = this.x = 0, this.B8(this, this.JIa, f.G4), !0) : !1 }, $p: function(c) { this.Pq = c }, RB: function() { return this.wn }, YGa: function(c) { this.kra = c }, EHa: function(c) { this.Rsa = c }, Z0: function(c) { var d = f.WD.$h(this); d.y -= 4; d.nXa(c.end) ? this.eqa = c.end.HUa() - d.IUa() : f.log("needn't to adjust view layout.") }, Pea: function() {}, Qea: function() {}, Oea: function() {}, JIa: function() {}, bXa: function(c, d) { this.ira = c.width; this.la.style.width = this.ira.toString() + "px"; this.hra = c.height; this.la.style.height = this.hra.toString() + "px"; this.la.style.backgroundColor = f.xp(d) } }); q = f.WD.prototype; f.d(q, "font", null, q.mr); f.d(q, "fontName", null, q.de); f.d(q, "fontSize", null, q.Qd); f.d(q, "fontColor", null, q.SGa); f.d(q, "string", q.qc, q.wa); f.d(q, "maxLength", q.Ax, q.ks); f.d(q, "placeHolder", q.RB, q.Gi); f.d(q, "placeHolderFont", null, q.yua); f.d(q, "placeHolderFontName", null, q.rHa); f.d(q, "placeHolderFontSize", null, q.sHa); f.d(q, "placeHolderFontColor", null, q.qHa); f.d(q, "inputFlag", null, q.XGa); f.d(q, "delegate", null, q.$p); f.d(q, "inputMode", null, q.YGa); f.d(q, "returnType", null, q.EHa); q = null; f.WD.$h = function(c) { var d = c.e(); return f.Ki(x(0, 0, d.width, d.height), c.il()) }; f.WD.create = function(c, d, e, g) { var h = new f.WD(c); h.ACa(c, d) && (e && h.aR(e, f.av), g && h.aR(g, f.$u)); return h }; f.Kl = f.ja.extend({ lh: null, vN: !1, Hsa: function(c, d) { this.vN = !0; this.lh.push(c); c.Cw(d) }, ctor: function() { f.ja.prototype.ctor.call(this); this.lh = [] }, bd: function(c, d, e) { f.assert(null != c, "child must be non-nil"); f.assert(!c.parent, "child already added. It can't be added again"); d = d || c.Ya; e && c.Nm(e); this.Hsa(c, d); c.aq(this); c.sha(f.TQ); this.dd && (c.ba(), this.AM && c.sj()); this.dg && this.Hz(); this.Dg && this.Iz() }, ZAa: function(c) { f.assert(c != f.hK, "Invalid tag"); for (var d = this.lh, e = 0, g = d.length; e < g; e++) if (d.Em() == c) return d[e]; return null }, Ci: function(c, d) { null == d && (d = !0); var e = this.lh; if (0 !== e.length) { var g = e.indexOf(c); - 1 < g && (this.dd && (c.uh(), c.Ra()), d && c.De(), c.aq(null), e.splice(g, 1)) } }, s1a: function(c, d) { f.assert(c != f.hK, "Invalid tag"); null == d && (d = !0); var e = this.ZAa(c); null == e ? f.log("cocos2d: removeChildByTag(tag \x3d %d): child not found!", c) : this.Ci(e, d) }, b1a: function() { this.JFa(!0) }, JFa: function(c) { null == c && (c = !0); for (var d = this.lh, e = 0, g = d.length; e < g; e++) { var h = d[e]; this.dd && (h.uh(), h.Ra()); c && h.De(); h.aq(null) } d.length = 0 }, D1a: function(c, d) { f.assert(null != c, "Child must be non-nil"); this.vN = !0; c.sha(f.TQ++); c.Cw(d) }, HR: function() { if (this.vN) { var c = this.lh, d = c.length, e, g, h; for (e = 1; e < d; e++) { h = c[e]; for (g = e - 1; 0 <= g;) { if (h.Ya < c[g].Ya) c[g + 1] = c[g]; else if (h.Ya === c[g].Ya && h.arrivalOrder < c[g].arrivalOrder) c[g + 1] = c[g]; else break; g-- } c[g + 1] = h } this.vN = !1 } }, I: null, Br: function(c) { if (this.Na) { c = c || f.s; var d, e, g = this.i, h, k = this.lh, m = this.i.length, n = k.length; c.save(); this.transform(c); this.kd(); this.HR(); for (d = 0; d < m; d++) if (h = g[d], 0 > h.Ya) h.I(c); else break; for (e = 0; e < n; e++) if (h = k[e], 0 > h.Ya) h.I(c); else break; for (this.ma(c); d < m; d++) g[d] && g[d].I(c); for (; e < n; e++) k[d] && k[d].I(c); this.Dk = !1; this.arrivalOrder = 0; c.restore() } }, Uw: function() { if (this.Na) { var c = f.s, d, e = f.Md, g; e.stack.push(e.top); f.Mp(this.uG, e.top); e.top = this.uG; var h = this.grid; h && h.ah && h.dx(); this.transform(); var k = this.i, m = this.lh, n = k.length, p = m.length; this.kd(); this.HR(); for (d = 0; d < n; d++) if (k[d] && 0 > k[d].Ya) k[d].I(); else break; for (g = 0; g < p; g++) if (m[g] && 0 > m[g].Ya) m[g].I(); else break; for (this.ma(c); d < n; d++) k[d] && k[d].I(); for (; g < p; g++) m[g] && m[g].I(); this.arrivalOrder = 0; h && h.ah && h.ax(this); e.top = e.stack.pop() } }, De: function() { f.v.prototype.De.call(this); for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].De() }, ba: function() { f.v.prototype.ba.call(this); for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].ba() }, sj: function() { f.v.prototype.sj.call(this); for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].sj() }, Ra: function() { f.v.prototype.Ra.call(this); for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].Ra() }, uh: function() { f.v.prototype.uh.call(this); for (var c = this.lh, d = 0, e = c.length; d < e; d++) c[d].uh() }, hc: function(c) { this.kb = this.Lg * c / 255; this.Jd(); if (this.Dg) { var d, e = this.i, g = this.kb; c = 0; for (d = e.length; c < d; c++) e[c].hc && e[c].hc(g); e = this.lh; c = 0; for (d = e.length; c < d; c++) e[c].hc && e[c].hc(g) } }, Wb: function(c) { var d = this.Ab, e = this.rd; d.r = e.r * c.r / 255; d.g = e.g * c.g / 255; d.b = e.b * c.b / 255; this.Jd(); if (this.dg) { var g = this.i; c = 0; for (e = g.length; c < e; c++) g[c].Wb && g[c].Wb(d); g = this.lh; c = 0; for (e = g.length; c < e; c++) g[c].Wb && g[c].Wb(d) } }, PQa: function() { var c = f.color.WHITE, d, e, g = this.i; d = 0; for (e = g.length; d < e; d++) g[d].Wb(c); g = this.lh; d = 0; for (e = g.length; d < e; d++) g[d].Wb(c) } }); f.Kl.prototype.I = f.K === f.fb ? f.Kl.prototype.Br : f.Kl.prototype.Uw; f.Kl.create = function() { return new f.Kl }; var kc = kc || f.N; kc.extend = kc.extend || f.N.extend; var lc = lc || f.Kl; lc.extend = lc.extend || f.Kl.extend; var y = lc.extend({ $c: !0, Fv: !0, bO: !1, Gv: null, jO: !1, qm: null, cB: null, xr: null, Jn: null, Kn: null, nd: "default", Cr: null, zq: 0, ea: t(0, 0), pb: null, lA: null, st: 0, Sq: !1, Qj: !0, Gb: !1, MU: !1, OA: null, ng: null, vh: null, Hd: null, LOa: !1, Rv: !1, xt: null, vi: null, Ea: null, ta: "Widget", Fb: !1, Hb: !1, Ib: 255, DF: !1, In: null, ctor: function() { f.Kl.prototype.ctor.call(this); this.Gv = y.aS; this.qm = r(0, 0); this.cB = r(0, 0); this.xr = r(0, 0); this.Cr = y.sE; this.ea = t(0, 0); this.pb = t(0, 0); this.lA = {}; this.OA = y.e7; this.ng = r(0, 0); this.vh = y.G6; this.Hd = r(0, 0); this.xt = []; this.Ea = f.color(255, 255, 255, 255); this.st = mc.NONE; this.j() }, j: function() { return f.Kl.prototype.j.call(this) ? (this.lA = {}, this.fl(), this.eR(!0), this.kI = this.aEa.bind(this), this.yQ = null, this.S(r(0.5, 0.5)), this.df(!0), this.Gu(!0), this.Hu(!0), !0) : !1 }, ba: function() { this.Jia(); f.Kl.prototype.ba.call(this) }, Ra: function() { this.UC(); f.Kl.prototype.Ra.call(this) }, I: function(c) { this.Na && (this.On(), f.Kl.prototype.I.call(this, c)) }, ug: function() { var c = this.getParent(); return c instanceof y ? c : null }, Qf: function(c) { var d = this.ea; this.Gb ? (d.width = c.width, d.height = c.height) : (d.width = this.pb.width, d.height = this.pb.height); this.kc() }, F$: function() { var c = this.k$(this); return null == c ? !0 : c && !c.isEnabled() ? !1 : c.F$() }, k$: function(c) { if (null == c) return null; c = c.getParent(); return null == c ? null : c instanceof y ? c : this.k$(c.getParent()) }, G$: function(c) { return null == c ? !0 : (c = c.getParent()) && !c.Na ? !1 : this.G$(c) }, DNa: function() { this.nra.removeEventListener(this.vi); this.hn == this && (this.hn = null) }, Lb: function(c) { this.$c = c }, fl: function() {}, zO: function(c, d, e) { c instanceof y ? f.log("Please use addChild to add a Widget.") : (f.v.prototype.n.call(this, c, d, e), this.xt.push(c)) }, nP: function(c) { for (var d = this.xt, e = 0; e < d.length; e++) { var g = d[e]; if (g && g.Em() == c) return g } return null }, Ida: function() { return this.xt }, removeNode: function(c) { f.v.prototype.removeChild.call(this, c); f.Ld(this.xt, c) }, nga: function(c) { var d = this.nP(c); d ? this.removeNode(d) : f.log("cocos2d: removeNodeByTag(tag \x3d %d): child not found!", c) }, jga: function() { for (var c = 0; c < this.xt.length; c++) f.v.prototype.removeChild.call(this, this.xt[c]); this.xt.length = 0 }, Df: function(c) { var d = this.pb.width = c.width; c = this.pb.height = c.height; this.Gb && (d = this.width, c = this.height); this.ea.width = d; this.ea.height = c; this.dd && ((c = this.ug()) ? (d = c.width, c = c.height) : (d = this.Yb.width, c = this.Yb.height), this.ng.x = 0 < d ? this.pb.width / d : 0, this.ng.y = 0 < c ? this.pb.height / c : 0); this.kc() }, Uh: function(c) { c = this.pb.width = c; this.Gb && (c = this.width); this.ea.width = c; this.dd && (c = (c = this.ug()) ? c.width : this.Yb.width, this.ng.x = 0 < c ? this.pb.width / c : 0); this.kc() }, Th: function(c) { c = this.pb.height = c; this.Gb && (c = this.height); this.ea.height = c; this.dd && (c = (c = this.ug()) ? c.height : this.Yb.height, this.ng.y = 0 < c ? this.pb.height / c : 0); this.kc() }, Oha: function(c) { this.ng.x = c.x; this.ng.y = c.y; var d = this.pb.width, e = this.pb.height; this.dd && ((e = this.ug()) ? (d = e.width * c.x, e = e.height * c.y) : (d = this.Yb.width * c.x, e = this.Yb.height * c.y)); this.Gb || (this.ea.width = d, this.ea.height = e); this.pb.width = d; this.pb.height = e; this.kc() }, Vua: function(c) { this.ng.x = c; var d = this.pb.width; this.dd && (d = this.ug(), d = (d ? d.width : this.Yb.width) * c); this.Gb || (this.ea.width = d); this.pb.width = d; this.kc() }, sua: function(c) { this.ng.y = c; var d = this.pb.height; this.dd && (d = this.ug(), d = (d ? d.height : this.Yb.height) * c); this.Gb || (this.ea.height = d); this.pb.height = d; this.kc() }, Jia: function(c) { c || (c = (c = this.ug()) ? c.qAa() : this.Yb.e()); var d; switch (this.OA) { case y.e7: d = this.Gb ? this.e() : this.pb; this.ea.width = d.width; this.ea.height = d.height; var e = d = 0; 0 < c.width && (d = this.pb.width / c.width); 0 < c.height && (e = this.pb.height / c.height); this.ng.x = d; this.ng.y = e; break; case y.Ona: e = t(c.width * this.ng.x, c.height * this.ng.y), d = this.Gb ? this.Wn() : e, this.ea.width = d.width, this.ea.height = d.height, this.pb.width = e.width, this.pb.height = e.height } this.kc(); d = this.Od(); switch (this.vh) { case y.G6: 0 >= c.width || 0 >= c.height ? (this.Hd.x = 0, this.Hd.y = 0) : (this.Hd.x = d.x / c.width, this.Hd.y = d.y / c.height); break; case y.H6: d = r(c.width * this.Hd.x, c.height * this.Hd.y) } this.o(d) }, P2: function(c) { this.OA = c }, lBa: function() { return this.OA }, df: function(c) { this.Gb != c && (c = (this.Gb = c) ? this.e() : this.pb, this.ea.width = c.width, this.ea.height = c.height, this.kc()) }, EXa: function() { return this.Gb }, CH: function() { return t(this.ea) }, mTa: function() { return t(this.pb) }, qAa: function() { return t(this.ea) }, SVa: function() { return r(this.ng) }, lsa: function() { return this.ng.x }, Mra: function() { return this.ng.y }, MWa: function() { return this.um(r(this.Eb.x * this.m.width, this.Eb.y * this.m.height)) }, Jr: function() { return this }, Wn: function() { return t(this.m) }, kc: function() { this.Ga(this.ea); for (var c = this.re(), d = 0, e = c.length; d < e; d++) { var g = c[d]; g instanceof y && g.Jia() } }, e: function() { return this.ea }, lf: function() { return this.ea.width }, Gg: function() { return this.ea.height }, Om: function(c) { this.bO !== c && ((this.bO = c) ? (this.vi = f.Xa.create({ event: f.Xa.zs, QC: !0, rc: this.rc.bind(this), hd: this.hd.bind(this), gd: this.gd.bind(this) }), f.Qa.addListener(this.vi, this)) : f.Qa.removeListener(this.vi)) }, U0: function() { return this.bO }, UP: function() { return this.DF }, xj: function(c) { c != this.DF && (this.DF = c, this.Fv ? this.DF ? this.o2(y.$R) : this.o2(y.iD) : this.vC()) }, CR: function(c) { this.jO != c && ((this.jO = c) ? this.ds() : this.UC()) }, gDa: function() { return this.jO }, WCa: function() { return this.Sq }, hR: function(c) { if (this.Sq = c) this.hn = this }, DXa: function() { return this.Qj }, g3a: function(c) { this.Sq = c }, Tf: function(c, d) { if (null == this.yQ || null == this.yQ(c)) { var e = d instanceof D; if (this.Sq || e) { var g = this.getParent(); return null == g ? e ? d.Tf(c, d) : d : g.Tf(c, d) } return d } e = this.yQ(c); this.nx(this, e); return e }, F1a: function() { this != this.hn && this.nx(this.hn, this) }, gTa: function() { return this.hn }, oRa: function() {}, kI: null, yQ: null, Nr: function(c, d, e) { var g = this.ug(); g && g.Nr(c, d, e) }, aEa: function(c, d) { c && c.hR(!1); d && d.hR(!0) }, nx: function(c, d) { c && !c.Sq && (c = this.hn); d != c && (d && d.kI && d.kI(c, d), c && d.kI && c.kI(c, d), f.Qa.dispatchEvent(new f.yla(c, d))) }, eR: function(c) { (this.Fv = c) ? (this.Gv = y.aS, this.o2(y.iD)) : this.vC() }, o2: function(c) { if (this.Gv != c) switch (this.Gv = c = c || y.iD, this.Gv) { case y.iD: this.rI(); break; case y.$R: this.sI() } }, rI: function() {}, sI: function() {}, vC: function() {}, Uxa: function() {}, rc: function(c) { this.Rv = !1; if (this.Na && this.isEnabled() && this.F$() && this.G$(this)) { var d = c.cf(); this.qm.x = d.x; this.qm.y = d.y; this.WB(this.qm) && this.P0(this.qm) && (this.Rv = !0) } if (!this.Rv) return !1; this.xj(!0); (d = this.ug()) && d.Nr(y.WT, this, c); this.sFa(); return !0 }, hd: function(c) { var d = c.cf(); this.cB.x = d.x; this.cB.y = d.y; this.xj(this.WB(d)); (d = this.ug()) && d.Nr(y.qE, this, c); this.ofa() }, gd: function(c) { var d = c.cf(); this.xr.x = d.x; this.xr.y = d.y; (d = this.ug()) && d.Nr(y.CK, this, c); c = this.DF; this.xj(!1); c ? this.X1() : this.mca() }, ef: function() { this.xj(!1); this.mca() }, N_a: function() {}, sFa: function() { this.In && this.In(this, y.WT); this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.Ooa) }, ofa: function() { this.In && this.In(this, y.qE); this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.qE) }, X1: function() { this.In && this.In(this, y.CK); this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.CK) }, mca: function() { this.In && this.In(this, y.XT); this.Jn && this.Kn && this.Kn.call(this.Jn, this, y.XT) }, n_a: function() {}, DPa: function(c, d) { void 0 === d ? this.In = c : (this.Kn = c, this.Jn = d) }, WB: function(c) { return f.Bu(x(0, 0, this.m.width, this.m.height), this.yi(c)) }, P0: function(c) { this.MU = !1; for (var d = this.getParent(), e = null; d;) { if (d instanceof D && d.Lq) { this.MU = !0; e = d; break } d = d.getParent() } return this.MU ? e ? e.WB(c) ? e.P0(c) : !1 : !0 : !0 }, oQa: function(c) { f.log("clippingParentAreaContainPoint is deprecated. Please use isClippingParentContainsPoint instead."); this.P0(c) }, Swa: function(c, d, e) { var g = this.ug(); g && g.Swa(c, d, e) }, o: function(c, d) { if (this.dd) { var e = this.ug(); e && (e = e.CH(), 0 >= e.width || 0 >= e.height ? (this.Hd.x = 0, this.Hd.y = 0) : d ? (this.Hd.x = c / e.width, this.Hd.y = d / e.height) : (this.Hd.x = c.x / e.width, this.Hd.y = c.y / e.height)) } f.v.prototype.o.call(this, c, d) }, ls: function(c) { if (this.dd) { var d = this.ug(); d && (d = d.width, this.Hd.x = 0 >= d ? 0 : c / d) } f.v.prototype.ls.call(this, c) }, Lu: function(c) { if (this.dd) { var d = this.ug(); d && (d = d.height, this.Hd.y = 0 >= d ? 0 : c / d) } f.v.prototype.Lu.call(this, c) }, D2: function(c) { this.Hd = c; this.dd && (c = this.ug()) && (c = c.CH(), this.o(c.width * this.Hd.x, c.height * this.Hd.y)) }, Wua: function(c) { this.Hd.x = c; if (this.dd) { var d = this.ug(); d && this.ls(d.width * c) } }, Xua: function(c) { this.Hd.y = c; if (this.dd) { var d = this.ug(); d && this.Lu(d.height * c) } }, WIa: function() { this.S(this.bk()) }, qVa: function() { return r(this.Hd) }, msa: function() { return this.Hd.x }, nsa: function() { return this.Hd.y }, E2: function(c) { this.vh = c }, VAa: function() { return this.vh }, Pd: function(c) { this.Fb = c; this.sk() }, XH: function() { return this.Fb }, Yf: function(c) { this.Hb = c; this.Al() }, YH: function() { return this.Hb }, sk: function() {}, Al: function() {}, On: function() {}, RCa: function() { return this.Fv }, isEnabled: function() { return this.$c }, Ac: function() { return this.Vc() - this.Eb.x * this.ea.width }, yd: function() { return this.Zd() - this.Eb.y * this.ea.height }, Kc: function() { return this.Ac() + this.ea.width }, Fe: function() { return this.yd() + this.ea.height }, AWa: function() { f.log("getTouchStartPos is deprecated. Please use getTouchBeganPosition instead."); return this.t0() }, t0: function() { return r(this.qm) }, yWa: function() { f.log("getTouchMovePos is deprecated. Please use getTouchMovePosition instead."); return this.CBa() }, CBa: function() { return r(this.cB) }, wWa: function() { f.log("getTouchEndPos is deprecated. Please use getTouchEndPosition instead."); return this.BBa() }, BBa: function() { return r(this.xr) }, gf: function(c) { this.nd = c }, getName: function() { return this.nd }, QBa: function() { return this.Cr }, by: function(c) { c && (this.lA[c.Bm()] = c, this.st = c.Bm()) }, dl: function(c) { c = c || this.st; return this.lA[c] }, dk: function() { return "Widget" }, p: function() { var c = this.Zh(); c.lx(this); c.kx(this); return c }, Zh: function() { return y.create() }, kx: function(c) { c = c.re(); for (var d = 0; d < c.length; d++) { var e = c[d]; e instanceof y && this.n(e.p()) } }, zi: function() {}, lx: function(c) { this.Lb(c.isEnabled()); this.za(c.Na); this.eR(c.Fv); this.Om(c.U0()); this.tl(c.Ya); this.CR(c.jO); this.Nm(c.Em()); this.gf(c.getName()); this.Vx(c.zq); this.Gb.width = c.Gb.width; this.Gb.height = c.Gb.height; this.ea.width = c.ea.width; this.ea.height = c.ea.height; this.pb.width = c.pb.width; this.pb.height = c.pb.height; this.zi(c); this.OA = c.OA; this.ng.x = c.ng.x; this.ng.y = c.ng.y; this.vh = c.vh; this.Hd.x = c.Hd.x; this.Hd.y = c.Hd.y; this.o(c.Od()); this.S(c.bk()); this.jb(c.ka); this.tb(c.ra); this.yh(c.Cx()); this.M2(c.bj); this.N2(c.hm); this.Pd(c.XH()); this.Yf(c.YH()); this.F(c.$a()); this.J(c.vb()); this.In = c.In; this.Jn = c.Jn; this.Kn = c.Kn; this.Sq = c.Sq; this.Qj = c.Qj; for (var d in c.lA) { var e = c.lA[d]; e && this.by(e.p()) } this.kc() }, Vx: function(c) { this.zq = c }, lda: function() { return this.zq }, $a: function() { return f.color(this.Ea.r, this.Ea.g, this.Ea.b, this.Ea.a) }, J: function(c) { c !== this.Ea.a && (this.Ea.a = c, this.WC(c)) }, vb: function() { return this.kb }, WC: function(c) { for (var d in this.i) { var e = this.i[d]; e && e.wb && e.J(c) } }, Ii: function(c) { c.wb && c.F(this.Ea) }, Cl: function(c) { c.wb && c.J(this.Ea.a) }, M5a: function(c) { c.F(this.Ea); c.J(this.Ib) } }), q = y.prototype; f.d(q, "xPercent", q.msa, q.Wua); f.d(q, "yPercent", q.nsa, q.Xua); f.d(q, "widthPercent", q.lsa, q.Vua); f.d(q, "heightPercent", q.Mra, q.sua); f.d(q, "widgetParent", q.ug); f.d(q, "enabled", q.isEnabled, q.Lb); f.d(q, "focused", q.WCa, q.hR); f.d(q, "sizeType", q.lBa, q.P2); f.d(q, "widgetType", q.QBa); f.d(q, "touchEnabled", q.U0, q.Om); f.d(q, "updateEnabled", q.gDa, q.CR); f.d(q, "bright", q.RCa, q.eR); f.d(q, "name", q.getName, q.gf); f.d(q, "actionTag", q.lda, q.Vx); f.d(q, "opacity", q.vb, q.J); q = null; y.create = function() { return new y }; y.aS = -1; y.iD = 0; y.$R = 1; y.sE = 0; y.Roa = 1; y.$m = 0; y.Ll = 1; y.Ol = 0; y.Ym = 1; y.Oa = 0; y.cb = 1; y.Ooa = 0; y.qE = 1; y.CK = 2; y.XT = 3; y.e7 = 0; y.Ona = 1; y.G6 = 0; y.H6 = 1; f.yla = f.ve.extend({ Eva: null, Fva: null, ctor: function(c, d) { this.Eva = d; this.Fva = c } }); var D = y.extend({ Lq: !1, Os: null, Fd: null, ZK: null, KE: null, Ws: null, LE: y.Oa, ii: null, mf: null, Ea: null, Ng: null, Jf: null, Oi: null, Ib: 255, $K: null, tt: null, gh: !0, qL: !0, Mq: null, eg: null, FW: !1, NOa: !1, Po: null, wV: null, ta: "Layout", Bq: null, Ka: 0, La: 0, KNa: 0, RNa: 0, MNa: 0, PNa: 0, QNa: 0, LNa: 0, NNa: 0, ONa: 0, JNa: 0, GNa: 0, HNa: 0, INa: 0, J8: 0, yOa: 0, aw: !1, pw: !1, Yq: !1, ctor: function() { this.tt = D.Ria; this.Cr = y.Roa; this.Mq = D.BJ; this.Ws = D.V3; y.prototype.ctor.call(this); this.KE = x(0, 0, 0, 0); this.Ea = f.color(255, 255, 255, 255); this.Ng = f.color(255, 255, 255, 255); this.Jf = f.color(255, 255, 255, 255); this.Oi = r(0, -1); this.$K = t(0, 0); this.Po = x(0, 0, 0, 0); this.Bq = f.color(255, 255, 255, 255) }, ba: function() { y.prototype.ba.call(this); this.eg && this.eg.ba(); this.qL = this.gh = !0 }, Ra: function() { y.prototype.Ra.call(this); this.eg && this.eg.Ra() }, C3a: function(c) { this.aw = c }, KXa: function() { return this.aw }, U3a: function(c) { this.pw = c }, PXa: function() { return this.pw }, Tf: function(c, d) { if (this.Yq || this.Sq) { var e = this.getParent(); this.Yq = !1; if (this.pw) { var g = this.pw(c, d); return g instanceof D && e ? (e.Yq = !0, e.Tf(c, this)) : g } if (null == e) return this; e.Yq = !0; return e.Tf(c, this) } if (d.Sq || d instanceof D) if (this.tt == D.oq) switch (c) { case y.$m: return this.lM(c, d); case y.Ll: return this.kM(c, d); case y.Ym: case y.Ol: return this.Zo(this, c) ? this.Yv(d, c) ? this.Tf(c, this) : d : this.Tf(c, this); default: return f.assert(0, "Invalid Focus Direction"), d } else if (this.tt == D.pq) switch (c) { case y.$m: case y.Ll: return this.Zo(this, c) ? this.Yv(d, c) ? this.Tf(c, this) : d : this.Tf(c, this); case y.Ym: return this.kM(c, d); case y.Ol: return this.lM(c, d); default: return f.assert(0, "Invalid Focus Direction"), d } else return f.assert(0, "Un Supported Layout type, please use VBox and HBox instead!!!"), d; else return d }, uC: null, j: function() { return y.prototype.j.call(this) ? (this.df(!1), this.Df(t(0, 0)), this.S(0, 0), this.uC = this.pF.bind(this), !0) : !1 }, Zpa: function(c) { c = c || f.s; for (var d = this.eg, e = f.view.ka, g = f.view.ra, h = 0; h < d.cc.length; h++) { var k = d.cc[h].zg, m = k[0]; c.beginPath(); c.moveTo(m.x * e, -m.y * g); for (var m = 1, n = k.length; m < n; m++) c.lineTo(k[m].x * e, -k[m].y * g) } }, n: function(c, d, e) { c instanceof y && this.qia(c); y.prototype.n.call(this, c, d, e); this.gh = !0 }, removeChild: function(c, d) { y.prototype.removeChild.call(this, c, d); this.gh = !0 }, Cf: function(c) { y.prototype.Cf.call(this, c); this.gh = !0 }, Cu: function(c) { y.prototype.Cu(c); this.gh = !0 }, SCa: function() { return this.Lq }, I: function(c) { if (this.Na) if (this.On(), this.Wl(), this.Lq) switch (this.Mq) { case D.BJ: this.i3(c); break; case D.i4: this.h2(c) } else y.prototype.I.call(this, c) }, kd: function() { y.prototype.kd.call(this); this.Wl() }, i3: null, fva: function(c) { var d = c || f.s; if (this.eg && this.eg.Na) if (D.rn = -1, D.rn + 1 == f.ly) D.Vw = !0, D.Vw && (f.log("Nesting more than " + f.ly + "stencils is not supported. Everything will be drawn without stencil for this node and its childs."), D.Vw = !1), f.v.prototype.I.call(this, c); else { D.rn++; var e = 1 << D.rn, g = e | e - 1; c = d.isEnabled(d.STENCIL_TEST); var h = d.getParameter(d.STENCIL_WRITEMASK), k = d.getParameter(d.STENCIL_FUNC), m = d.getParameter(d.STENCIL_REF), n = d.getParameter(d.STENCIL_VALUE_MASK), p = d.getParameter(d.STENCIL_FAIL), s = d.getParameter(d.STENCIL_PASS_DEPTH_FAIL), u = d.getParameter(d.STENCIL_PASS_DEPTH_PASS); d.enable(d.STENCIL_TEST); d.stencilMask(e); var v = d.getParameter(d.DEPTH_WRITEMASK); d.depthMask(!1); d.stencilFunc(d.NEVER, e, e); d.stencilOp(d.ZERO, d.KEEP, d.KEEP); f.If.H_(r(0, 0), f.Jfa(), f.color(255, 255, 255, 255)); d.stencilFunc(d.NEVER, e, e); d.stencilOp(d.REPLACE, d.KEEP, d.KEEP); f.Rr(); this.transform(); this.eg.I(); d.depthMask(v); d.stencilFunc(d.EQUAL, g, g); d.stencilOp(d.KEEP, d.KEEP, d.KEEP); g = e = 0; this.kd(); this.HR(); for (var v = this.i, z = this.lh, A = v.length, B = z.length, C; e < A; e++) if ((C = v[e]) && 0 > C.Ya) C.I(); else break; for (; g < B; g++) if ((C = z[g]) && 0 > C.Ya) C.I(); else break; for (this.ma(); e < A; e++) v[e].I(); for (; g < B; g++) z[g].I(); d.stencilFunc(k, m, n); d.stencilOp(p, s, u); d.stencilMask(h); c || d.disable(d.STENCIL_TEST); D.rn--; f.Qr() } }, nba: function(c) { if (this.eg && this.eg.Na) { c = c || f.s; if (this.Hv() || this.eg instanceof f.q) { var d = c.canvas, e = D.AW(); e.width = d.width; e.height = d.height; e.getContext("2d").drawImage(d, 0, 0); c.save(); f.v.prototype.I.call(this, c); c.globalCompositeOperation = "destination-in"; this.transform(c); this.eg.I(); c.restore(); c.save(); c.setTransform(1, 0, 0, 1, 0, 0); c.globalCompositeOperation = "destination-over"; c.drawImage(e, 0, 0) } else { var e = this.i, g; c.save(); this.transform(c); this.eg.I(c); c.clip(); this.Hv(!0); this.kd(); this.HR(); for (var h, k = this.lh, m = e.length, n = k.length, d = 0; d < m; d++) if ((g = e[d]) && 0 > g.Ya) g.I(c); else break; for (h = 0; h < n; h++) if ((g = k[h]) && 0 > g.Ya) g.I(c); else break; for (; d < m; d++) e[d].I(c); for (; h < n; h++) k[h].I(c); this.Hv(!1) } c.restore() } }, BF: !1, Hv: function(c) { if (!0 === c || !1 === c) f.Wc.prototype.BF = c; return f.Wc.prototype.BF }, h2: null, fua: function(c) { var d = this.tda(); c = c || f.s; this.FW && c.enable(c.SCISSOR_TEST); f.view.vR(d.x, d.y, d.width, d.height); f.v.prototype.I.call(this); this.FW && c.disable(c.SCISSOR_TEST) }, Zp: function(c) { if (c != this.Lq) switch (this.Lq = c, this.Mq) { case D.BJ: c ? (this.eg = f.Yg.create(), f.K === f.fb && (this.eg.ma = this.Zpa.bind(this)), this.dd && this.eg.ba(), this.Vha(this.m)) : (this.dd && this.eg.Ra(), this.eg = null) } }, Oga: function(c) { if (c != this.Mq) { var d = this.Lq; this.Zp(!1); this.Mq = c; this.Zp(d) } }, WSa: function() { return this.Mq }, Vha: function(c) { if (this.Lq && this.Mq == D.BJ) { var d = []; d[0] = r(0, 0); d[1] = r(c.width, 0); d[2] = r(c.width, c.height); d[3] = r(0, c.height); c = f.color.GREEN; this.eg.clear(); this.eg.Sf(d, 4, c, 0, c) } }, C1a: function() { this.Wl() }, tda: function() { if (this.qL) { var c = this.um(r(0, 0)), d = this.il(), e = this.m.width * d.a, d = this.m.height * d.P, g; g = this; for (var h = !1; g;) if ((g = g.getParent()) && g instanceof D && g.Lq && (h || (this.wV = g, h = !0), g.Mq == D.i4)) { this.FW = !1; break } if (this.wV) { g = this.wV.tda(); var h = c.x - e * this.Eb.x, k = c.y - d * this.Eb.y, m = e, n = d, p = c.x - g.x; 0 > p && (h = g.x, m += p); e = c.x + e - (g.x + g.width); 0 < e && (m -= e); e = c.y + d - (g.y + g.height); 0 < e && (n -= e); c = c.y - g.y; 0 > c && (k = g.x, n += c); 0 > m && (m = 0); 0 > n && (n = 0); this.Po.x = h; this.Po.y = k; this.Po.width = m; this.Po.height = n } else this.Po.x = c.x - e * this.Eb.x, this.Po.y = c.y - d * this.Eb.y, this.Po.width = e, this.Po.height = d; this.qL = !1 } return this.Po }, kc: function() { y.prototype.kc.call(this); this.Vha(this.m); this.qL = this.gh = !0; this.Fd && (this.Fd.o(0.5 * this.m.width, 0.5 * this.m.height), this.Os && this.Fd instanceof f.Ua && this.Fd.He(this.m)); this.ii && this.ii.Ga(this.m); this.mf && this.mf.Ga(this.m) }, $Q: function(c) { this.Os != c && (this.Ci(this.Fd), this.Fd = null, this.Os = c, this.Mba(), this.Eu(this.ZK, this.LE), this.KI(this.KE)) }, sXa: function() { return this.Os }, Eu: function(c, d) { if (c) { d = d || y.Oa; null == this.Fd && this.Mba(); this.ZK = c; this.LE = d; if (this.Os) { var e = this.Fd; switch (this.LE) { case y.Oa: e.Ge(c); break; case y.cb: e.hl(c) } e.He(this.m) } else switch (e = this.Fd, this.LE) { case y.Oa: e.ab(c); break; case y.cb: e.Dd(c) } this.$K = this.Fd.e(); this.Fd.o(this.m.width / 2, this.m.height / 2); this.Cba() } }, KI: function(c) { this.KE = c; this.Os && this.Fd.Cc(c) }, oSa: function() { return this.KE }, qia: function(c) { if (c) switch (this.tt) { case D.oq: case D.pq: var d = c.dl(mc.LINEAR); d || c.by(nc.create()); break; case D.Py: (d = c.dl(mc.Py)) || c.by(E.create()) } }, Mba: function() { this.Os ? (this.Fd = f.Ua.create(), this.Fd.He(this.m)) : this.Fd = f.q.create(); this.bd(this.Fd, D.kja, -1); this.Fd.o(this.m.width / 2, this.m.height / 2) }, h1a: function() { this.Fd && (this.Ci(this.Fd), this.Fd = null, this.ZK = "", this.$K = t(0, 0)) }, YQ: function(c) { if (this.Ws != c) { switch (this.Ws) { case D.V3: this.ii && (this.Ci(this.ii), this.ii = null); this.mf && (this.Ci(this.mf), this.mf = null); break; case D.YR: this.ii && (this.Ci(this.ii), this.ii = null); break; case D.XR: this.mf && (this.Ci(this.mf), this.mf = null) } this.Ws = c; switch (this.Ws) { case D.YR: this.ii = f.$f.create(); this.ii.Ga(this.m); this.ii.J(this.Ib); this.ii.F(this.Ea); this.bd(this.ii, D.T3, -1); break; case D.XR: this.mf = f.rq.create(f.color(255, 0, 0, 255), f.color(0, 255, 0, 255)), this.mf.Ga(this.m), this.mf.J(this.Ib), this.mf.Tg(this.Ng), this.mf.Sg(this.Jf), this.mf.DR(this.Oi), this.bd(this.mf, D.T3, -1) } } }, lSa: function() { return this.Ws }, Du: function(c, d) { d ? (this.Ng.r = c.r, this.Ng.g = c.g, this.Ng.b = c.b, this.mf && this.mf.Tg(c), this.Jf = d, this.mf && this.mf.Sg(d)) : (this.Ea.r = c.r, this.Ea.g = c.g, this.Ea.b = c.b, this.ii && this.ii.F(c)) }, jSa: function() { var c = this.Ea; return f.color(c.r, c.g, c.b, c.a) }, rSa: function() { var c = this.Ng; return f.color(c.r, c.g, c.b, c.a) }, nSa: function() { var c = this.Jf; return f.color(c.r, c.g, c.b, c.a) }, XQ: function(c) { this.Ib = c; switch (this.Ws) { case D.YR: this.ii.J(c); break; case D.XR: this.mf.J(c) } }, kSa: function() { return this.Ib }, ZQ: function(c) { this.Oi.x = c.x; this.Oi.y = c.y; this.mf && this.mf.DR(c) }, mSa: function() { return this.Oi }, z2a: function(c) { this.Bq.r = c.r; this.Bq.g = c.g; this.Bq.b = c.b; this.Cba() }, A2a: function(c) { this.Bq.a = c; this.yza() }, yza: function() { var c = this.Bq; return f.color(c.r, c.g, c.b, c.a) }, pSa: function() { return this.Bq.a }, Cba: function() { this.Fd && this.Fd.F(this.Bq) }, qSa: function() { return this.$K }, Mm: function(c) { this.tt = c; c = this.i; for (var d = null, e = 0; e < c.length; e++) d = c[e], d instanceof y && this.qia(d); this.gh = !0 }, Bm: function() { return this.tt }, E1a: function() { this.gh = !0 }, Wl: function() { if (this.gh) { var c = this.Vqa(); c && c.Wl(this); this.gh = !1 } }, Vqa: function() { var c = null; switch (this.tt) { case D.pq: c = oc.create(); break; case D.oq: c = pc.create(); break; case D.Py: c = qc.create() } return c }, tW: function() { return this.e() }, uW: function() { return this.re() }, GOa: function() {}, ZNa: function() {}, DOa: function() {}, EOa: function() {}, fta: function() {}, fta: function() {}, aPa: function() { this.Fd && this.Fd.J(this.J8) }, bPa: function() { this.Fd && (this.Fd.F(this.Bq), this.Fd.J(this.J8)) }, r$: function() { for (var c = this.re(), d = t(0, 0), e = 0, g, h = 0, k = c.length; h < k; h++) if (g = c[h], null != g && g instanceof D) g = g.r$(), d.width += g.width, d.height += g.height; else if (g instanceof y) { e++; var m = w.dl().pi; g = w.e(); d.width += g.width + 0.5 * (m.right + m.left); d.height += g.height + 0.5 * (m.top + m.bottom) } c = this.Bm(); c == D.oq && (d.height -= d.height / e * (e - 1)); c == D.pq && (d.width -= d.width / e * (e - 1)); return d }, pF: function(c, d) { if (null == d || d == this) return this.X9(); var e = 0, g = this.re(), h = g.length, k, m = f.gv, n = 0; if (c == y.$m || c == y.Ll || c == y.Ym || c == y.Ol) { for (k = this.Wo(d); e < h;) { var p = g[e]; p && p instanceof y && p.Qj && (p = p instanceof D ? p.S8(d) : f.ff(f.gc(this.Wo(p), k)), p < m && (n = e, m = p)); e++ } return n } f.assert(0, "invalid focus direction!"); return 0 }, cM: function(c, d) { if (null == d || d == this) return this.X9(); var e = 0, g = this.re().size(), h = -f.gv, k = 0; if (c == y.$m || c == y.Ll || c == y.Ym || c == y.Ol) { for (var m = this.Wo(d); e < g;) { if (w && w instanceof y && w.Qj) { var n = w instanceof D ? w.R8(d) : f.ff(f.gc(this.Wo(w), m)); n > h && (k = e, h = n) } e++ } return k } f.assert(0, "invalid focus direction!!!"); return 0 }, S8: function(c) { for (var d = f.gv, e = this.Wo(c), g = this.i, h = 0, k = g.length; h < k; h++) { var m = g[h]; if (m instanceof D) m = m.S8(c); else if (m instanceof y && m.Qj) m = f.ff(f.gc(this.Wo(m), e)); else continue; m < d && (d = m) } return d }, R8: function(c) { for (var d = -f.gv, e = this.Wo(c), g = this.i, h = 0, k = g.length; h < k; h++) { var m = g[h]; if (m instanceof D) m = m.R8(c); else if (m instanceof y && m.Qj) m = this.Wo(w), m = f.ff(f.gc(m, e)); else continue; m > d && (d = m) } return d }, rra: function(c, d) { if (null != d) { var e = this.Wo(d), g = this.Wo(this.Y9()); c == y.$m ? this.uC = e.x > g.x ? this.pF.bind(this) : this.cM.bind(this) : c == y.Ll ? this.uC = e.x > g.x ? this.cM.bind(this) : this.pF.bind(this) : c == y.Ym ? this.uC = e.y > g.y ? this.pF.bind(this) : this.cM.bind(this) : c == y.Ol ? this.uC = e.y < g.y ? this.pF.bind(this) : this.cM.bind(this) : f.assert(0, "invalid direction!") } }, Y9: function() { for (var c = this.i, d = 0, e = c.length; d < e; d++) { var g = c[d]; if (g instanceof D) { if (g = g.Y9()) return g } else if (g instanceof f.mNa) return g } return null }, X9: function() { for (var c = 0, d = this.re(), e = d.length; c < e;) { var g = d[c]; if (g && g instanceof y && g.Qj) return c; c++ } return 0 }, qra: function(c) { var d = this.Uz(c); return d ? d.Qj ? d : this.qra(c + 1) : null }, Wo: function(c) { var d = c instanceof D ? c.r$() : c.e(); return c.um(r(d.width / 2, d.height / 2)) }, kM: function(c, d) { var e = null, e = this.i, g = e.indexOf(d), g = g + 1; if (g < e.length) { if (e = this.Uz(g)) { if (e.Qj) { if (e instanceof D) return e.Yq = !0, e.Tf(c, e); this.nx(d, e); return e } return this.kM(c, e) } return d } if (this.aw) { if (this.rV()) { e = this.Uz(0); if (e.Qj) { if (e instanceof D) return e.Yq = !0, e.Tf(c, e); this.nx(d, e); return e } return this.kM(c, e) } return d instanceof D ? d : this.hn } return this.Zo(d, c) ? this.Yv(this, c) ? this.Tf(c, this) : d instanceof D ? d : this.hn : this.Tf(c, this) }, lM: function(c, d) { var e = null, e = this.i, g = e.indexOf(d), g = g - 1; if (0 <= g) { e = this.Uz(g); if (e.Qj) { if (e instanceof D) return e.Yq = !0, e.Tf(c, e); this.nx(d, e); return e } return this.lM(c, e) } if (this.aw) { if (this.rV()) { g = e.length - 1; e = this.Uz(g); if (e.Qj) { if (e instanceof D) return e.Yq = !0, e.Tf(c, e); this.nx(d, e); return e } return this.lM(c, e) } return d instanceof D ? d : this.hn } return this.Zo(d, c) ? this.Yv(this, c) ? this.Tf(c, this) : d instanceof D ? d : this.hn : this.Tf(c, this) }, Uz: function(c) { for (var d = this.i, e = d.length, g = 0, h = c; c < e;) { var k = d[c]; if (k && k instanceof y) return k; g++; c++ } for (c = 0; c < h;) { if ((e = d[c]) && e instanceof y) return e; g++; c++ } return null }, Zo: function(c, d) { var e = c.getParent(); if (e instanceof D) return !0; var g = e.re(), h = g.indexOf(c); if (e.Bm() == D.oq) { if (d == y.$m) return 0 == h ? 1 * this.Zo(e, d) : !1; if (d == y.Ll) return h == g.length - 1 ? 1 * this.Zo(e, d) : !1; if (d == y.Ym || d == y.Ol) return this.Zo(e, d) } else if (e.Bm() == D.pq) { if (d == y.Ol) return 0 == h ? 1 * this.Zo(e, d) : !1; if (d == y.Ym) return h == g.length - 1 ? 1 * this.Zo(e, d) : !1; if (d == y.$m || d == y.Ll) return this.Zo(e, d) } else f.assert(0, "invalid layout Type"); return !1 }, Yv: function(c, d) { var e = c.getParent(); if (null == e) return !1; if (e.aw) { var g = e.Bm(); if (g == D.oq) return d == y.$m || d == y.Ll ? !0 : this.Yv(e, d); if (g == D.pq) return d == y.Ym || d == y.Ol ? !0 : this.Yv(e, d); f.assert(0, "invalid layout type") } else return this.Yv(e, d) }, pw: function(c, d) { if (this.rV()) { var e = this.hn; this.rra(c, e); e = this.uC(c, e); e = this.Uz(e); if (e instanceof D) return e.Yq = !0, e.Tf(c, e); this.nx(d, e); return e } return this }, rV: function() { for (var c = this.i, d = 0, e = c.length; d < e; d++) { var g = c[d]; if (g && g instanceof y && g.Qj) return !0 } return !1 }, dk: function() { return "Layout" }, Zh: function() { return D.create() }, kx: function(c) { y.prototype.kx.call(this, c) }, zi: function(c) { this.$Q(c.Os); this.Eu(c.ZK, c.LE); this.KI(c.KE); this.YQ(c.Ws); this.Du(c.Ea); this.Du(c.Ng, c.Jf); this.XQ(c.Ib); this.ZQ(c.Oi); this.Mm(c.tt); this.Zp(c.Lq); this.Oga(c.Mq); this.aw = c.aw; this.pw = c.pw } }); D.tM = null; D.Vw = null; D.rn = null; D.qG = null; f.K == f.na ? (D.prototype.i3 = D.prototype.fva, D.prototype.h2 = D.prototype.fua) : (D.prototype.i3 = D.prototype.nba, D.prototype.h2 = D.prototype.nba); D.AW = function() { return f.Wc.qG || (f.Wc.qG = f.fd("canvas")) }; q = D.prototype; f.d(q, "clippingEnabled", q.SCa, q.Zp); f.d(q, "clippingType", null, q.Oga); f.d(q, "layoutType", q.Bm, q.Mm); q = null; D.create = function() { return new D }; D.V3 = 0; D.YR = 1; D.XR = 2; D.Ria = 0; D.pq = 1; D.oq = 2; D.Py = 3; D.BJ = 0; D.i4 = 1; D.kja = -2; D.T3 = -2; var rc = kc.extend({ left: 0, top: 0, right: 0, bottom: 0, ctor: function(c, d, e, g) { c && void 0 === d && (this.left = c.left, this.top = c.top, this.right = c.right, this.bottom = c.bottom); void 0 !== g && (this.left = c, this.top = d, this.right = e, this.bottom = g) }, lo: function(c, d, e, g) { this.left = c; this.top = d; this.right = e; this.bottom = g }, tRa: function(c) { return this.left == c.left && this.top == c.top && this.right == c.right && this.bottom == c.bottom } }); function sc() { return new rc(0, 0, 0, 0) } var mc = kc.extend({ pi: null, st: null, ctor: function() { this.pi = new rc; this.st = mc.NONE }, lo: function(c, d, e, g) { "object" === typeof c ? (this.pi.left = c.left, this.pi.top = c.top, this.pi.right = c.right, this.pi.bottom = c.bottom) : (this.pi.left = c, this.pi.top = d, this.pi.right = e, this.pi.bottom = g) }, CUa: function() { return this.pi }, Bm: function() { return this.st }, p: function() { var c = this.Zh(); c.lx(this); return c }, Zh: function() { return mc.create() }, lx: function(c) { this.pi = c.pi } }); mc.create = function() { return new mc }; mc.NONE = 0; mc.LINEAR = 1; mc.Py = 2; var nc = mc.extend({ HM: null, ctor: function() { mc.prototype.ctor.call(this); this.HM = nc.NONE; this.st = mc.LINEAR }, vc: function(c) { this.HM = c }, uH: function() { return this.HM }, Zh: function() { return nc.create() }, lx: function(c) { mc.prototype.lx.call(this, c); c && (this.VQ(c.ww), this.sR(c.GA), this.tR(c.HA), this.vc(c.HM)) } }); nc.create = function() { return new nc }; nc.NONE = 0; nc.$m = 1; nc.u7 = 2; nc.Ll = 3; nc.ZR = 4; nc.nS = 5; nc.mS = 6; var E = mc.extend({ ww: null, HA: "", GA: "", ri: !1, ctor: function() { mc.prototype.ctor.call(this); this.ww = E.NONE; this.GA = this.HA = ""; this.ri = !1; this.st = mc.Py }, VQ: function(c) { this.ww = c }, WRa: function() { return this.ww }, tR: function(c) { this.HA = c }, BVa: function() { return this.HA }, sR: function(c) { this.GA = c }, AVa: function() { return this.GA }, Zh: function() { return E.create() }, lx: function(c) { mc.prototype.lx.call(this, c); this.VQ(c.ww); this.tR(c.HA); this.sR(c.GA) } }); E.create = function() { return new E }; E.NONE = 0; E.t6 = 1; E.s6 = 2; E.u6 = 3; E.p6 = 4; E.Rja = 5; E.r6 = 6; E.o6 = 7; E.n6 = 8; E.q6 = 9; E.J5 = 10; E.I5 = 11; E.K5 = 12; E.Q5 = 13; E.P5 = 14; E.O5 = 15; E.T5 = 16; E.S5 = 17; E.R5 = 18; E.M5 = 19; E.L5 = 20; E.N5 = 21; var tc = kc.extend({ Wl: function() {} }), oc = tc.extend({ Wl: function(c) { var d = c.tW(); c = c.uW(); for (var e = d.height, g = 0, h = c.length; g < h; g++) { var k = c[g]; if (k) { var m = k.dl(); if (m) { var n = m.uH(), p = k.bk(), s = k.e(), u = p.x * s.width, e = e - (1 - p.y) * s.height; switch (n) { case nc.Ll: u = d.width - (1 - p.x) * s.width; break; case nc.mS: u = d.width / 2 - s.width * (0.5 - p.x) } m = m.pi; u += m.left; e -= m.top; k.o(u, e); e = k.Zd() - k.bk().y * k.e().height - m.bottom } } } } }); oc.create = function() { return new oc }; var pc = tc.extend({ Wl: function(c) { var d = c.tW(); c = c.uW(); for (var e = 0, g = 0, h = c.length; g < h; g++) { var k = c[g]; if (k) { var m = k.dl(); if (m) { var n = m.uH(), p = k.bk(), s = k.CH(), e = e + p.x * s.width, u = d.height - (1 - p.y) * s.height; switch (n) { case nc.ZR: u = p.y * s.height; break; case nc.nS: u = d.height / 2 - s.height * (0.5 - p.y) } m = m.pi; e += m.left; u -= m.top; k.o(e, u); e = k.Kc() + m.right } } } } }); pc.create = function() { return new pc }; var qc = tc.extend({ XY: null, sO: null, QG: null, Ka: 0, La: 0, ke: null, Wl: function(c) { for (var d = this.sO = this.Bra(c); 0 < this.XY;) { for (var e = 0, g = d.length; e < g; e++) { this.QG = d[e]; var h = this.QG.dl(); h && !h.ri && this.yqa(c) && (this.xqa(), this.QG.o(this.Ka, this.La), h.ri = !0) } this.XY-- } this.sO.length = 0 }, Bra: function(c) { c = c.uW(); for (var d = [], e = 0, g = c.length; e < g; e++) { var h = c[e]; h && (h.dl().ri = !1, this.XY++, d.push(h)) } return d }, asa: function(c) { var d = null; if ((c = c.dl().HA) && 0 != c.length) for (var e = this.sO, g = 0, h = e.length; g < h; g++) { var k = e[g]; if (k) { var m = k.dl(); if (m && m.GA == c) { d = k; this.ke = m; break } } } return d }, yqa: function(c) { var d = this.QG, e = d.bk(), g = d.e(); this.La = this.Ka = 0; var h = this.asa(d), d = d.dl().ww; c = c.tW(); switch (d) { case E.NONE: case E.t6: this.Ka = e.x * g.width; this.La = c.height - (1 - e.y) * g.height; break; case E.s6: this.Ka = 0.5 * c.width - g.width * (0.5 - e.x); this.La = c.height - (1 - e.y) * g.height; break; case E.u6: this.Ka = c.width - (1 - e.x) * g.width; this.La = c.height - (1 - e.y) * g.height; break; case E.p6: this.Ka = e.x * g.width; this.La = 0.5 * c.height - g.height * (0.5 - e.y); break; case E.Rja: this.Ka = 0.5 * c.width - g.width * (0.5 - e.x); this.La = 0.5 * c.height - g.height * (0.5 - e.y); break; case E.r6: this.Ka = c.width - (1 - e.x) * g.width; this.La = 0.5 * c.height - g.height * (0.5 - e.y); break; case E.o6: this.Ka = e.x * g.width; this.La = e.y * g.height; break; case E.n6: this.Ka = 0.5 * c.width - g.width * (0.5 - e.x); this.La = e.y * g.height; break; case E.q6: this.Ka = c.width - (1 - e.x) * g.width; this.La = e.y * g.height; break; case E.J5: if (h) { if (this.ke && !this.ke.ri) return !1; var d = h.Fe(), k = h.Ac(); this.La = d + e.y * g.height; this.Ka = k + e.x * g.width } break; case E.I5: if (h) { if (this.ke && !this.ke.ri) return !1; c = h.e(); d = h.Fe(); this.La = d + e.y * g.height; this.Ka = h.Ac() + 0.5 * c.width + e.x * g.width - 0.5 * g.width } break; case E.K5: if (h) { if (this.ke && !this.ke.ri) return !1; d = h.Fe(); k = h.Kc(); this.La = d + e.y * g.height; this.Ka = k - (1 - e.x) * g.width } break; case E.Q5: if (h) { if (this.ke && !this.ke.ri) return !1; d = h.Fe(); k = h.Ac(); this.La = d - (1 - e.y) * g.height; this.Ka = k - (1 - e.x) * g.width } break; case E.P5: if (h) { if (this.ke && !this.ke.ri) return !1; c = h.e(); k = h.Ac(); this.Ka = k - (1 - e.x) * g.width; this.La = h.yd() + 0.5 * c.height + e.y * g.height - 0.5 * g.height } break; case E.O5: if (h) { if (this.ke && !this.ke.ri) return !1; d = h.yd(); k = h.Ac(); this.La = d + e.y * g.height; this.Ka = k - (1 - e.x) * g.width } break; case E.T5: if (h) { if (this.ke && !this.ke.ri) return !1; d = h.Fe(); k = h.Kc(); this.La = d - (1 - e.y) * g.height; this.Ka = k + e.x * g.width } break; case E.S5: if (h) { if (this.ke && !this.ke.ri) return !1; c = h.e(); k = h.Kc(); this.Ka = k + e.x * g.width; this.La = h.yd() + 0.5 * c.height + e.y * g.height - 0.5 * g.height } break; case E.R5: if (h) { if (this.ke && !this.ke.ri) return !1; d = h.yd(); k = h.Kc(); this.La = d + e.y * g.height; this.Ka = k + e.x * g.width } break; case E.M5: if (h) { if (this.ke && !this.ke.ri) return !1; d = h.yd(); k = h.Ac(); this.La = d - (1 - e.y) * g.height; this.Ka = k + e.x * g.width } break; case E.L5: if (h) { if (this.ke && !this.ke.ri) return !1; c = h.e(); d = h.yd(); this.La = d - (1 - e.y) * g.height; this.Ka = h.Ac() + 0.5 * c.width + e.x * g.width - 0.5 * g.width } break; case E.N5: if (h) { if (this.ke && !this.ke.ri) return !1; d = h.yd(); k = h.Kc(); this.La = d - (1 - e.y) * g.height; this.Ka = k - (1 - e.x) * g.width } } return !0 }, xqa: function() { var c = this.QG.dl(), d = c.pi; switch (c.ww) { case E.NONE: case E.t6: this.Ka += d.left; this.La -= d.top; break; case E.s6: this.La -= d.top; break; case E.u6: this.Ka -= d.right; this.La -= d.top; break; case E.p6: this.Ka += d.left; break; case E.r6: this.Ka -= d.right; break; case E.o6: this.Ka += d.left; this.La += d.bottom; break; case E.n6: this.La += d.bottom; break; case E.q6: this.Ka -= d.right; this.La += d.bottom; break; case E.J5: this.La += d.bottom; this.Ka += d.left; break; case E.K5: this.La += d.bottom; this.Ka -= d.right; break; case E.I5: this.La += d.bottom; break; case E.Q5: this.Ka -= d.right; this.La -= d.top; break; case E.O5: this.Ka -= d.right; this.La += d.bottom; break; case E.P5: this.Ka -= d.right; break; case E.T5: this.Ka += d.left; this.La -= d.top; break; case E.R5: this.Ka += d.left; this.La += d.bottom; break; case E.S5: this.Ka += d.left; break; case E.M5: this.La -= d.top; this.Ka += d.left; break; case E.N5: this.La -= d.top; this.Ka -= d.right; break; case E.L5: this.La -= d.top } } }); qc.create = function() { return new qc }; var uc = D.extend({ j: function() { return D.prototype.j.call(this) ? (this.Mm(D.oq), !0) : !1 }, Jp: function(c) { return this.j() ? (this.Df(c), !0) : !1 } }); uc.create = function(c) { var d = new uc; return c ? d.Jp() ? d : null : d }; var vc = D.extend({ j: function() { return D.prototype.j.call(this) ? (this.Mm(D.Py), !0) : !1 }, Jp: function(c) { return this.j() ? (this.Df(c), !0) : !1 } }); vc.create = function(c) { var d = new vc; return c ? d.Jp() ? d : null : d }; var wc = D.extend({ j: function() { return D.prototype.j.call(this) ? (this.Mm(D.lNa), !0) : !1 }, Jp: function(c) { return this.j() ? (this.Df(c), !0) : !1 } }); wc.create = function(c) { var d = new wc; return c ? d.Jp() ? d : null : d }; function Dc(c, d) { if (!c) return null; if (c.zq == d) return c; for (var e = c.re(), g = 0; g < e.length; g++) { var h = Dc(e[g], d); if (null != h) return h } return null }; var Ec = y.extend({ gb: null, Rb: null, Xb: null, qg: null, iX: "", vV: "", NV: "", We: !0, $: !1, pz: null, qz: null, oz: null, SF: y.Oa, cG: y.Oa, hF: y.Oa, yt: null, IX: null, PV: null, IQ: !1, XN: null, iw: 1, jw: 1, sw: 1, tw: 1, dta: !1, HX: !1, ara: !1, Dg: !0, ta: "Button", jX: !0, GX: !0, OV: !0, Rc: "Thonburi", Sc: 12, zc: 0, ctor: function() { this.pz = x(0, 0, 0, 0); this.qz = x(0, 0, 0, 0); this.oz = x(0, 0, 0, 0); var c = this.ea; this.yt = t(c.width, c.height); this.IX = t(c.width, c.height); this.PV = t(c.width, c.height); this.XN = f.color.WHITE; y.prototype.ctor.call(this) }, j: function(c, d, e, g) { if (y.prototype.j.call(this)) { this.Om(!0); if (void 0 === c) return !0; this.Ur(c, d, e, g) } return !1 }, fl: function() { this.gb = f.q.create(); this.Rb = f.q.create(); this.Xb = f.q.create(); this.qg = f.ia.create(""); this.bd(this.gb, Ec.k6, -1); this.bd(this.Rb, Ec.I6, -1); this.bd(this.Xb, Ec.X4, -1); this.bd(this.qg, Ec.Koa, -1) }, zh: function(c) { this.$ != c && (this.Gv = y.aS, this.$ = c, this.Ci(this.gb), this.Ci(this.Rb), this.Ci(this.Xb), this.$ ? (this.gb = f.Ua.create(), this.Rb = f.Ua.create(), this.Xb = f.Ua.create()) : (this.gb = f.q.create(), this.Rb = f.q.create(), this.Xb = f.q.create()), this.Hx(this.iX, this.SF), this.Ix(this.vV, this.cG), this.Gx(this.NV, this.hF), this.bd(this.gb, Ec.k6, -1), this.bd(this.Rb, Ec.I6, -1), this.bd(this.Xb, Ec.X4, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.q2(this.pz), this.r2(this.qz), this.p2(this.oz), this.eR(this.Fv)) }, T0: function() { return this.$ }, df: function(c) { if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c }, Wn: function() { return this.yt }, Ur: function(c, d, e, g) { this.Hx(c, g); this.Ix(d, g); this.Gx(e, g) }, Hx: function(c, d) { if (c) { d = d || y.Oa; this.iX = c; this.SF = d; if (this.$) { var e = this.gb; switch (this.SF) { case y.Oa: e.Ge(c); break; case y.cb: e.hl(c) } e.Cc(this.pz) } else switch (e = this.gb, this.SF) { case y.Oa: e.ab(c); break; case y.cb: e.Dd(c) } this.yt = this.gb.e(); this.sk(); this.Al(); this.gb.F(this.$a()); this.gb.J(this.vb()); this.Qf(this.yt); this.jX = this.dta = !0 } }, Ix: function(c, d) { if (c) { d = d || y.Oa; this.vV = c; this.cG = d; if (this.$) { var e = this.Rb; switch (this.cG) { case y.Oa: e.Ge(c); break; case y.cb: e.hl(c) } e.Cc(this.qz) } else switch (e = this.Rb, this.cG) { case y.Oa: e.ab(c); break; case y.cb: e.Dd(c) } this.IX = this.Rb.e(); this.sk(); this.Al(); this.Xb.F(this.$a()); this.Xb.J(this.vb()); this.GX = this.HX = !0 } }, Gx: function(c, d) { if (c) { d = d || y.Oa; this.NV = c; this.hF = d; if (this.$) { var e = this.Xb; switch (this.hF) { case y.Oa: e.Ge(c); break; case y.cb: e.hl(c) } e.Cc(this.oz) } else switch (e = this.Xb, this.hF) { case y.Oa: e.ab(c); break; case y.cb: e.Dd(c) } this.PV = this.Xb.e(); this.sk(); this.Al(); this.Xb.F(this.$a()); this.Xb.J(this.vb()); this.OV = this.ara = !0 } }, Cc: function(c) { this.q2(c); this.r2(c); this.p2(c) }, q2: function(c) { this.pz = c; this.$ && this.gb.Cc(c) }, NSa: function() { return this.pz }, r2: function(c) { this.qz = c; this.$ && this.Rb.Cc(c) }, OSa: function() { return this.qz }, p2: function(c) { this.oz = c; this.$ && this.Xb.Cc(c) }, MSa: function() { return this.oz }, rI: function() { this.gb.za(!0); this.Rb.za(!1); this.Xb.za(!1); if (this.HX) { if (this.IQ) { this.gb.Pm(); this.Rb.Pm(); var c = f.Db.create(0.05, this.iw, this.jw); this.gb.V(c); this.Rb.ib(this.sw, this.tw) } } else this.$ ? this.eJa() : (this.gb.Pm(), this.gb.ib(this.iw, this.jw)) }, sI: function() { if (this.HX) { if (this.gb.za(!1), this.Rb.za(!0), this.Xb.za(!1), this.IQ) { this.gb.Pm(); this.Rb.Pm(); var c = f.Db.create(0.05, this.sw + 0.1, this.tw + 0.1); this.Rb.V(c); this.gb.ib(this.sw + 0.1, this.tw + 0.1) } } else this.gb.za(!0), this.Rb.za(!0), this.Xb.za(!1), this.$ ? this.gb.F(f.Aj.GRAY) : (this.gb.Pm(), this.gb.ib(this.iw + 0.1, this.jw + 0.1)) }, vC: function() { this.gb.za(!1); this.Rb.za(!1); this.Xb.za(!0); this.gb.ib(this.iw, this.jw); this.Rb.ib(this.sw, this.tw) }, Pd: function(c) { this.qg.Pd(c); this.$ || (this.gb.Pd(c), this.Rb.Pd(c), this.Xb.Pd(c)) }, e3a: function(c) { this.qg.Yf(c); this.$ || (this.gb.Yf(c), this.Rb.Yf(c), this.Xb.Yf(c)) }, XH: function() { return this.$ ? !1 : this.gb.XH() }, YH: function() { return this.$ ? !1 : this.gb.YH() }, sk: function() { var c = this.Fb ? -1 : 1; this.qg.jb(c); this.$ ? (this.gb.jb(c), this.Rb.jb(c), this.Xb.jb(c)) : (this.gb.Pd(this.Fb), this.Rb.Pd(this.Fb), this.Xb.Pd(this.Fb)) }, Al: function() { var c = this.Hb ? -1 : 1; this.qg.tb(c); this.$ ? (this.gb.tb(c), this.Rb.tb(c), this.Xb.tb(c)) : (this.gb.Yf(this.Hb), this.Rb.Yf(this.Hb), this.Xb.Yf(this.Hb)) }, eJa: function() { this.gb.F(this.$a()); this.Rb.F(this.$a()); this.Xb.F(this.$a()); this.gb.J(this.vb()); this.Rb.J(this.vb()); this.Xb.J(this.vb()) }, S: function(c, d) { void 0 === d ? (y.prototype.S.call(this, c), this.gb.S(c), this.Rb.S(c), this.Xb.S(c)) : (y.prototype.S.call(this, c, d), this.gb.S(c, d), this.Rb.S(c, d), this.Xb.S(c, d)); this.qg.o(this.ea.width * (0.5 - this.Eb.x), this.ea.height * (0.5 - this.Eb.y)) }, Xe: function(c) { y.prototype.Xe.call(this, c); this.gb.Xe(c); this.Rb.Xe(c); this.Xb.Xe(c); this.qg.ls(this.ea.width * (0.5 - this.Eb.x)) }, Ye: function(c) { y.prototype.Ye.call(this, c); this.gb.Ye(c); this.Rb.Ye(c); this.Xb.Ye(c); this.qg.Lu(this.ea.height * (0.5 - this.Eb.y)) }, kc: function() { y.prototype.kc.call(this); this.fJa(); this.ufa(); this.Rfa(); this.Nca() }, e: function() { return this.yt }, lf: function() { return this.$ ? this.ea.width : this.yt.width }, Gg: function() { return this.$ ? this.ea.height : this.yt.height }, Jr: function() { if (this.Fv) switch (this.Gv) { case y.iD: return this.gb; case y.$R: return this.Rb; default: return null } else return this.Xb }, ufa: function() { if (this.Gb) this.$ || (this.gb.ib(1), this.iw = this.jw = 1); else if (this.$) this.gb.He(this.ea), this.iw = this.jw = 1; else { var c = this.yt; if (0 >= c.width || 0 >= c.height) { this.gb.ib(1); return } var d = this.ea.width / c.width, c = this.ea.height / c.height; this.gb.jb(d); this.gb.tb(c); this.iw = d; this.jw = c } this.gb.o(this.m.width / 2, this.m.height / 2) }, Rfa: function() { if (this.Gb) this.$ || (this.Rb.ib(1), this.sw = this.tw = 1); else if (this.$) this.Rb.He(this.ea), this.sw = this.tw = 1; else { var c = this.IX; if (0 >= c.width || 0 >= c.height) { this.Rb.ib(1); return } var d = this.ea.width / c.width, c = this.ea.height / c.height; this.Rb.jb(d); this.Rb.tb(c); this.sw = d; this.tw = c } this.Rb.o(this.m.width / 2, this.m.height / 2) }, Nca: function() { if (this.Gb) this.$ || this.Xb.ib(1); else if (this.$) this.Xb.He(this.ea); else { var c = this.PV; if (0 >= c.width || 0 >= c.height) { this.Xb.ib(1); return } var d = this.ea.height / c.height; this.Xb.jb(this.ea.width / c.width); this.Xb.tb(d) } this.Xb.o(this.m.width / 2, this.m.height / 2) }, On: function() { this.jX && (this.ufa(), this.jX = !1); this.GX && (this.Rfa(), this.GX = !1); this.OV && (this.Nca(), this.OV = !1) }, fJa: function() { this.qg.o(0.5 * this.m.width, 0.5 * this.m.height) }, wHa: function(c) { this.IQ = c }, jy: function(c) { this.qg.wa(c) }, fea: function() { return this.qg.qc() }, gy: function(c) { this.XN.r = c.r; this.XN.g = c.g; this.XN.b = c.b; this.qg.Wb(c) }, cea: function() { return this.qg.$a() }, iy: function(c) { this.qg.Qd(c) }, eea: function() { return this.qg.Un() }, hy: function(c) { this.qg.de(c) }, dea: function() { return this.qg.Cp() }, Rua: function(c) { this.qg.font = c }, hsa: function() { return this.qg.font }, sJ: function() { this.Ii(this.gb); this.Ii(this.Rb); this.Ii(this.Xb) }, dk: function() { return "Button" }, Zh: function() { return Ec.create() }, zi: function(c) { this.We = c.We; this.zh(c.$); this.Hx(c.iX, c.SF); this.Ix(c.vV, c.cG); this.Gx(c.NV, c.hF); this.q2(c.pz); this.r2(c.qz); this.p2(c.oz); this.jy(c.fea()); this.hy(c.dea()); this.iy(c.eea()); this.gy(c.cea()); this.wHa(c.IQ) } }), q = Ec.prototype; f.d(q, "titleText", q.fea, q.jy); f.d(q, "titleFont", q.hsa, q.Rua); f.d(q, "titleFontSize", q.eea, q.iy); f.d(q, "titleFontName", q.dea, q.hy); f.d(q, "titleColor", q.cea, q.gy); q = null; Ec.create = function(c, d, e, g) { var h = new Ec; if (void 0 === c) return h; h.j(c, d, e, g) }; Ec.k6 = -2; Ec.I6 = -2; Ec.X4 = -2; Ec.Koa = -1; Ec.g7 = 0; Ec.Poa = 1; var Fc = y.extend({ Zc: null, ye: null, Ue: null, xe: null, Be: null, Rj: !0, Jv: null, Kv: null, Iv: null, $U: y.Oa, ZU: y.Oa, kW: y.Oa, YU: y.Oa, jW: y.Oa, I8: "", K8: "", i$: "", H8: "", h$: "", ta: "CheckBox", YK: !0, aL: !0, jM: !0, XK: !0, iM: !0, ctor: function() { y.prototype.ctor.call(this) }, j: function(c, d, e, g, h, k) { return y.prototype.j.call(this) ? (this.Rj = !0, this.Om(!0), void 0 === c && this.Ur(c, d, e, g, h, k), !0) : !1 }, fl: function() { this.Zc = f.q.create(); this.ye = f.q.create(); this.Ue = f.q.create(); this.xe = f.q.create(); this.Be = f.q.create(); this.bd(this.Zc, Fc.rja, -1); this.bd(this.ye, Fc.sja, -1); this.bd(this.Ue, Fc.Jla, -1); this.bd(this.xe, Fc.qja, -1); this.bd(this.Be, Fc.Ila, -1); window.test = [this.Zc, this.ye, this.Ue, this.xe, this.Be]; window.a = this }, Ur: function(c, d, e, g, h, k) { this.jC(c, k); this.lC(d, k); this.mC(e, k); this.kC(g, k); this.nC(h, k) }, jC: function(c, d) { if (c) { d = d || y.Oa; this.I8 = c; this.$U = d; var e = this.Zc; switch (this.$U) { case y.Oa: e.ab(c); break; case y.cb: e.Dd(c) } this.FZ(); e.Ba || (this.Zc.Ga(this.pb), e.oe(function() { this.FZ() }, this)); this.sk(); this.Al(); this.Zc.F(this.$a()); this.Zc.J(this.vb()); this.Qf(this.Zc.e()); this.YK = !0 } }, lC: function(c, d) { if (c) { d = d || y.Oa; this.K8 = c; this.ZU = d; switch (this.ZU) { case y.Oa: this.ye.ab(c); break; case y.cb: this.ye.Dd(c) } this.sk(); this.Al(); this.ye.F(this.$a()); this.ye.J(this.vb()); this.aL = !0 } }, mC: function(c, d) { if (c) { d = d || y.Oa; this.i$ = c; this.kW = d; switch (this.kW) { case y.Oa: this.Ue.ab(c); break; case y.cb: this.Ue.Dd(c) } this.sk(); this.Al(); this.Ue.F(this.$a()); this.Ue.J(this.vb()); this.jM = !0 } }, kC: function(c, d) { if (c) { d = d || y.Oa; this.H8 = c; this.YU = d; switch (this.YU) { case y.Oa: this.xe.ab(c); break; case y.cb: this.xe.Dd(c) } this.sk(); this.Al(); this.xe.F(this.$a()); this.xe.J(this.vb()); this.XK = !0 } }, nC: function(c, d) { if (c) { d = d || y.Oa; this.h$ = c; this.jW = d; switch (this.jW) { case y.Oa: this.Be.ab(c); break; case y.cb: this.Be.Dd(c) } this.sk(); this.Al(); this.Be.F(this.$a()); this.Be.J(this.vb()); this.iM = !0 } }, rI: function() { this.Zc.za(!0); this.ye.za(!1); this.xe.za(!1); this.Be.za(!1) }, sI: function() { this.Zc.za(!1); this.ye.za(!0); this.xe.za(!1); this.Be.za(!1) }, vC: function() { this.Zc.za(!1); this.ye.za(!1); this.xe.za(!0); this.Ue.za(!1); this.Rj && this.Be.za(!0) }, fy: function(c) { c != this.Rj && (this.Rj = c, this.Ue.za(this.Rj)) }, jBa: function() { return this.Rj }, oGa: function() { this.Iv && this.Iv(this, Fc.l5); this.Jv && this.Kv && this.Kv.call(this.Jv, this, Fc.l5) }, PIa: function() { this.Iv && this.Iv(this, Fc.n5); this.Jv && this.Kv && this.Kv.call(this.Jv, this, Fc.n5) }, X1: function() { y.prototype.X1.call(this); this.Rj ? (this.fy(!1), this.PIa()) : (this.fy(!0), this.oGa()) }, nPa: function(c, d) { this.Kv = c; this.Jv = d }, addEventListener: function(c) { this.Iv = c }, Wn: function() { return this.Zc.e() }, sk: function() { this.Zc.Pd(this.Fb); this.ye.Pd(this.Fb); this.Ue.Pd(this.Fb); this.xe.Pd(this.Fb); this.Be.Pd(this.Fb) }, Al: function() { this.Zc.Yf(this.Hb); this.ye.Yf(this.Hb); this.Ue.Yf(this.Hb); this.xe.Yf(this.Hb); this.Be.Yf(this.Hb) }, S: function(c, d) { void 0 === d ? (y.prototype.S.call(this, c), this.Zc.S(c), this.ye.S(c), this.xe.S(c), this.Ue.S(c), this.Be.S(c)) : (y.prototype.S.call(this, c, d), this.Zc.S(c, d), this.ye.S(c, d), this.xe.S(c, d), this.Ue.S(c, d), this.Be.S(c, d)) }, Xe: function(c) { y.prototype.Xe.call(this, c); this.Zc.Xe(c); this.ye.Xe(c); this.xe.Xe(c); this.Ue.Xe(c); this.Be.Xe(c) }, Ye: function(c) { y.prototype.Ye.call(this, c); this.Zc.Ye(c); this.ye.Ye(c); this.xe.Ye(c); this.Ue.Ye(c); this.Be.Ye(c) }, kc: function() { y.prototype.kc.call(this); this.iM = this.XK = this.jM = this.aL = this.YK = !0 }, e: function() { return this.Zc.e() }, lf: function() { return this.Zc.lf() }, Gg: function() { return this.Zc.Gg() }, Jr: function() { return this.Zc }, FZ: function() { if (this.Gb) this.Zc.ib(1); else { var c = this.Zc.e(); if (0 >= c.width || 0 >= c.height) { this.Zc.ib(1); return } var d = this.ea.height / c.height; this.Zc.jb(this.ea.width / c.width); this.Zc.tb(d) } c = this.m.width / 2; d = this.m.height / 2; this.Zc.o(c, d); this.ye.o(c, d); this.Ue.o(c, d); this.xe.o(c, d); this.Be.o(c, d) }, Cwa: function() { if (this.Gb) this.ye.ib(1); else { var c = this.ye.e(); if (0 >= c.width || 0 >= c.height) this.ye.ib(1); else { var d = this.ea.height / c.height; this.ye.jb(this.ea.width / c.width); this.ye.tb(d) } } }, qza: function() { if (this.Gb) this.Ue.ib(1); else { var c = this.Ue.e(); if (0 >= c.width || 0 >= c.height) this.Ue.ib(1); else { var d = this.ea.height / c.height; this.Ue.jb(this.ea.width / c.width); this.Ue.tb(d) } } }, Bwa: function() { if (this.Gb) this.xe.ib(1); else { var c = this.xe.e(); if (0 >= c.width || 0 >= c.height) this.xe.ib(1); else { var d = this.ea.height / c.height; this.xe.jb(this.ea.width / c.width); this.xe.tb(d) } } }, pza: function() { if (this.Gb) this.Be.ib(1); else { var c = this.Be.e(); if (0 >= c.width || 0 >= c.height) this.Be.ib(1); else { var d = this.ea.height / c.height; this.Be.jb(this.ea.width / c.width); this.Be.tb(d) } } }, sJ: function() { this.Ii(this.Zc); this.Ii(this.ye); this.Ii(this.Ue); this.Ii(this.xe); this.Ii(this.Be) }, WC: function() { this.Cl(this.Zc); this.Cl(this.ye); this.Cl(this.Ue); this.Cl(this.xe); this.Cl(this.Be) }, dk: function() { return "CheckBox" }, Zh: function() { return Fc.create() }, zi: function(c) { c instanceof Fc && (this.jC(c.I8, c.$U), this.lC(c.K8, c.ZU), this.mC(c.i$, c.kW), this.kC(c.H8, c.YU), this.nC(c.h$, c.jW), this.fy(c.Rj), this.Jv = c.Jv, this.Kv = c.Kv, this.Iv = c.Iv) }, On: function() { this.YK && (this.FZ(), this.YK = !1); this.aL && (this.Cwa(), this.aL = !1); this.jM && (this.qza(), this.jM = !1); this.XK && (this.Bwa(), this.XK = !1); this.iM && (this.pza(), this.iM = !1) } }), q = Fc.prototype; f.d(q, "selected", q.jBa, q.fy); q = null; Fc.create = function(c, d, e, g, h, k) { var m = new Fc; void 0 === c ? m.j() : m.j(c, d, e, g, h, k); return m }; Fc.l5 = 0; Fc.n5 = 1; Fc.rja = -1; Fc.sja = -1; Fc.qja = -1; Fc.Jla = -1; Fc.Ila = -1; var Gc = y.extend({ $: !1, We: !0, kf: null, Gd: null, Hn: "", sM: y.Oa, nn: null, ta: "ImageView", rM: !0, ctor: function() { this.kf = x(0, 0, 0, 0); this.nn = t(this.ea.width, this.ea.height); y.prototype.ctor.call(this) }, j: function(c, d) { y.prototype.j.call(this); void 0 !== c && this.Wf(c, d); return !0 }, fl: function() { this.Gd = f.q.create(); this.bd(this.Gd, Gc.xk, -1) }, Wf: function(c, d) { if (c) { d = d || y.Oa; this.Hn = c; this.sM = d; var e = this.Gd; switch (this.sM) { case y.Oa: e.Ge(c); break; case y.cb: e.hl(c) } var g = e.e(); e.Ba ? (this.nn.width = this.pb.width ? this.pb.width : g.width, this.nn.height = this.pb.height ? this.pb.height : g.height) : (e.oe(function() { var c = e.e(); this.nn.width = this.pb.width ? this.pb.width : c.width; this.nn.height = this.pb.height ? this.pb.height : c.height; e.Cc && e.Cc(this.kf); this.qea() }, this), this.nn.width = this.pb.width, this.nn.height = this.pb.height); this.$ && e.Cc(this.kf); this.sk(); this.Al(); e.F(this.$a()); e.J(this.vb()); this.Qf(this.nn); this.rM = !0 } }, sc: function(c) { this.$ || this.Gd.sc(c) }, sk: function() { this.$ ? this.Gd.jb(this.Fb ? -1 : 1) : this.Gd.Pd(this.Fb) }, Al: function() { this.$ ? this.Gd.tb(this.Hb ? -1 : 1) : this.Gd.Yf(this.Hb) }, On: function() { this.rM && (this.qea(), this.rM = !1) }, zh: function(c) { this.$ != c && (this.$ = c, this.Ci(this.Gd), this.Gd = null, this.Gd = this.$ ? f.Ua.create() : f.q.create(), this.Wf(this.Hn, this.sM), this.bd(this.Gd, Gc.xk, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.Cc(this.kf)) }, T0: function() { return this.$ }, df: function(c) { if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c }, Cc: function(c) { this.kf = c; this.$ && this.Gd.Cc(c) }, X_: function() { return this.kf }, S: function(c, d) { void 0 === d ? (y.prototype.S.call(this, c), this.Gd.S(c)) : (y.prototype.S.call(this, c, d), this.Gd.S(c, d)) }, Xe: function(c) { y.prototype.Xe.call(this, c); this.Gd.Xe(c) }, Ye: function(c) { y.prototype.Ye.call(this, c); this.Gd.Ye(c) }, kc: function() { y.prototype.kc.call(this); this.rM = !0 }, e: function() { return this.nn }, lf: function() { return this.nn.width }, Gg: function() { return this.nn.height }, Jr: function() { return this.Gd }, qea: function() { if (this.Gb) this.$ || this.Gd.ib(1); else if (this.$) this.Gd.He(this.ea); else { var c = this.Gd.e(); if (0 >= c.width || 0 >= c.height) { this.Gd.ib(1); return } this.Gd.jb(this.ea.width / c.width); this.Gd.tb(this.ea.height / c.height) } this.Gd.o(this.m.width / 2, this.m.height / 2) }, sJ: function() { this.Ii(this.Gd) }, WC: function() { this.Cl(this.Gd) }, dk: function() { return "ImageView" }, Wn: function() {}, Zh: function() { return Gc.create() }, zi: function(c) { c instanceof Gc && (this.We = c.We, this.zh(c.$), this.Wf(c.Hn, c.sM), this.Cc(c.kf)) } }); Gc.create = function(c, d) { var e = new Gc; void 0 !== c && e.j(c, d); return e }; Gc.xk = -1; var Hc = y.extend({ Oh: null, dm: 100, Pw: 0, ob: null, tN: y.Oa, Sl: null, $: !1, We: !0, kf: null, Hn: "", Osa: !1, ta: "LoadingBar", Cq: !0, ctor: function() { this.Oh = Hc.EK; this.Sl = t(0, 0); this.kf = x(0, 0, 0, 0); y.prototype.ctor.call(this) }, fl: function() { this.ob = f.q.create(); f.v.prototype.n.call(this, this.ob, Hc.xk, -1); this.ob.S(0, 0.5) }, xh: function(c) { if (this.Oh != c) switch (this.Oh = c, this.Oh) { case Hc.EK: this.ob.S(0, 0.5); this.ob.o(0.5 * -this.Pw, 0); this.$ || this.ob.Pd(!1); break; case Hc.gU: this.ob.S(1, 0.5), this.ob.o(0.5 * this.Pw, 0), this.$ || this.ob.Pd(!0) } }, OB: function() { return this.Oh }, Wf: function(c, d) { if (c) { this.tN = d = d || y.Oa; this.Hn = c; var e = this.ob; switch (this.tN) { case y.Oa: this.$ ? (e.Ge(c), e.Cc(this.kf)) : e.ab(c); break; case y.cb: this.$ ? (e.hl(c), e.Cc(this.kf)) : e.Dd(c) } e.F(this.$a()); e.J(this.vb()); var g = e.e(); this.Sl.width = g.width; this.Sl.height = g.height; switch (this.Oh) { case Hc.EK: e.S(0, 0.5); this.$ || e.Pd(!1); break; case Hc.gU: e.S(1, 0.5), this.$ || e.Pd(!0) } this.HO(); this.Qf(this.Sl); this.Cq = !0 } }, zh: function(c) { this.$ != c && (this.$ = c, this.Ci(this.ob), this.ob = this.$ ? f.Ua.create() : f.q.create(), this.Wf(this.Hn, this.tN), this.bd(this.ob, Hc.xk, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.Cc(this.kf), this.Fi(this.dm)) }, T0: function() { return this.$ }, Cc: function(c) { this.kf = c; this.$ && this.ob.Cc(c) }, X_: function() { return this.kf }, Fi: function(c) { if (!(0 > c || 100 < c || 0 >= this.Pw)) if (this.dm = c, c = this.dm / 100, this.$) this.Lha(); else { var d = this.ob.EH(); this.ob.sc(x(d.x, d.y, this.Sl.width * c, this.Sl.height)) } }, f0: function() { return this.dm }, kc: function() { y.prototype.kc.call(this); this.Cq = !0 }, df: function(c) { if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c }, Wn: function() { return this.Sl }, e: function() { return this.Sl }, lf: function() { return this.Sl.width }, Gg: function() { return this.Sl.height }, Jr: function() { return this.ob }, HO: function() { var c = this.ob; if (this.Gb) this.$ || (this.Pw = this.Sl.width, c.ib(1)); else if (this.Pw = this.ea.width, this.$) this.Lha(); else { var d = this.Sl; if (0 >= d.width || 0 >= d.height) { c.ib(1); return } var e = this.ea.height / d.height; c.jb(this.ea.width / d.width); c.tb(e) } switch (this.Oh) { case Hc.EK: c.o(0, 0.5 * this.m.height); break; case Hc.gU: c.o(this.Pw, 0.5 * this.m.height) } }, On: function() { this.Cq && (this.HO(), this.Cq = !1) }, Lha: function() { this.ob.He(t(this.dm / 100 * this.Pw, this.ea.height)) }, sJ: function() { this.Ii(this.ob) }, WC: function() { this.Cl(this.ob) }, dk: function() { return "LoadingBar" }, Zh: function() { return Hc.create() }, zi: function(c) { c instanceof Hc && (this.We = c.We, this.zh(c.$), this.Wf(c.Hn, c.tN), this.Cc(c.kf), this.Fi(c.dm), this.xh(c.Oh)) } }), q = Hc.prototype; f.d(q, "direction", q.OB, q.xh); f.d(q, "percent", q.f0, q.Fi); q = null; Hc.create = function(c, d) { var e = new Hc; void 0 !== c && e.Wf(c); void 0 !== d && e.Fi(d); return e }; Hc.EK = 0; Hc.gU = 1; Hc.xk = -1; var Ic = y.extend({ ob: null, Ud: null, EA: null, Tk: null, lm: null, km: null, PA: null, cL: 0, dm: 0, $: !1, We: !0, Hn: "", NX: "", gba: "", hba: "", fba: "", lL: null, mL: null, rG: null, sG: null, dL: y.Oa, mN: y.Oa, bV: y.Oa, cV: y.Oa, aV: y.Oa, Osa: !1, ta: "Slider", Cq: !0, eG: !0, ctor: function() { this.EA = t(0, 0); this.lL = x(0, 0, 0, 0); this.mL = x(0, 0, 0, 0); y.prototype.ctor.call(this) }, j: function() { return y.prototype.j.call(this) ? !0 : !1 }, fl: function() { this.ob = f.q.create(); this.Ud = f.q.create(); this.Ud.S(0, 0.5); this.bd(this.ob, Ic.U3, -1); this.bd(this.Ud, Ic.J6, -1); this.Tk = f.q.create(); this.lm = f.q.create(); this.lm.za(!1); this.km = f.q.create(); this.km.za(!1); this.PA = f.v.create(); this.PA.n(this.Tk); this.PA.n(this.lm); this.PA.n(this.km); this.bd(this.PA, Ic.lja, -1) }, ik: function(c, d) { if (c) { d = d || y.Oa; this.Hn = c; this.dL = d; var e = this.ob; switch (this.dL) { case y.Oa: this.$ ? e.Ge(c) : e.ab(c); break; case y.cb: this.$ ? e.hl(c) : e.Dd(c) } e.F(this.$a()); e.J(this.vb()); this.eG = this.Cq = !0; this.Qf(this.ob.e()) } }, wu: function(c, d) { if (c) { d = d || y.Oa; this.NX = c; this.mN = d; var e = this.Ud; switch (this.mN) { case y.Oa: this.$ ? e.Ge(c) : e.ab(c); break; case y.cb: this.$ ? e.hl(c) : e.Dd(c) } this.Ud.F(this.$a()); this.Ud.J(this.vb()); this.Ud.S(r(0, 0.5)); e = this.Ud.e(); this.EA = { width: e.width, height: e.height }; this.eG = !0 } }, zh: function(c) { this.$ != c && (this.$ = c, this.Ci(this.ob, !0), this.Ci(this.Ud, !0), this.Ud = this.ob = null, this.$ ? (this.ob = f.Ua.create(), this.Ud = f.Ua.create()) : (this.ob = f.q.create(), this.Ud = f.q.create()), this.ik(this.Hn, this.dL), this.wu(this.NX, this.mN), this.bd(this.ob, Ic.U3, -1), this.bd(this.Ud, Ic.J6, -1), this.$ ? (c = this.Gb, this.df(!1), this.We = c) : this.df(this.We), this.Mga(this.lL), this.Lga(this.mL)) }, T0: function() { return this.$ }, df: function(c) { if (!this.$ || this.$ && !c) y.prototype.df.call(this, c), this.We = c }, Cc: function(c) { this.Mga(c); this.Lga(c) }, Mga: function(c) { this.lL = c; this.$ && this.ob.Cc(c) }, LSa: function() { return this.lL }, Lga: function(c) { this.mL = c; this.$ && this.Ud.Cc(c) }, PSa: function() { return this.mL }, jfa: function(c, d, e, g) { this.hC(c, g); this.iC(d, g); this.gC(e, g) }, hC: function(c, d) { if (c) { d = d || y.Oa; this.gba = c; this.bV = d; switch (this.bV) { case y.Oa: this.Tk.ab(c); break; case y.cb: this.Tk.Dd(c) } this.Tk.F(this.$a()); this.Tk.J(this.vb()) } }, iC: function(c, d) { if (c) { d = d || y.Oa; this.hba = c; this.cV = d; switch (this.cV) { case y.Oa: this.lm.ab(c); break; case y.cb: this.lm.Dd(c) } this.lm.F(this.$a()); this.lm.J(this.vb()) } }, gC: function(c, d) { if (c) { d = d || y.Oa; this.fba = c; this.aV = d; switch (this.aV) { case y.Oa: this.km.ab(c); break; case y.cb: this.km.Dd(c) } this.km.F(this.$a()); this.km.J(this.vb()) } }, Fi: function(c) { 100 < c && (c = 100); 0 > c && (c = 0); this.dm = c; c = c / 100 * this.cL; this.PA.o(r(c, this.m.height / 2)); if (this.$) this.Ud.He(t(c, this.EA.height)); else { var d = this.Ud, e = d.EH(); d.sc(x(e.x, e.y, c, e.height), d.pf) } }, WB: function(c) { c = this.Tk.yi(c); var d = this.Tk.e(); return f.Bu(x(0, 0, d.width, d.height), c) }, rc: function(c, d) { var e = y.prototype.rc.call(this, c, d); if (this.Rv) { var g = this.yi(this.qm); this.Fi(this.Mda(g.x)); this.Pfa() } return e }, hd: function(c) { c = this.yi(c.cf()); this.Fi(this.Mda(c.x)); this.Pfa() }, gd: function(c, d) { y.prototype.gd.call(this, c, d) }, ef: function(c, d) { y.prototype.ef.call(this, c, d) }, Mda: function(c) { return c / this.cL * 100 }, rPa: function(c, d) { this.sG = c; this.rG = d }, addEventListener: function(c) { this.qb = c }, Pfa: function() { this.rG && this.sG && this.sG.call(this.rG, this, Ic.f5); this.qb && this.qb(Ic.f5) }, f0: function() { return this.dm }, kc: function() { y.prototype.kc.call(this); this.eG = this.Cq = !0 }, On: function() { this.Cq && (this.HO(), this.Cq = !1); this.eG && (this.pFa(), this.eG = !1) }, Wn: function() { return this.ob.e() }, Jr: function() { return this.ob }, HO: function() { if (this.Gb) this.ob.ib(1), this.cL = this.m.width; else if (this.cL = this.m.width, this.$) this.ob.He(this.m); else { var c = this.ob.e(); if (0 >= c.width || 0 >= c.height) { this.ob.ib(1); return } var d = this.m.height / c.height; this.ob.jb(this.m.width / c.width); this.ob.tb(d) } this.ob.o(this.m.width / 2, this.m.height / 2); this.Fi(this.dm) }, pFa: function() { if (this.Gb) { if (!this.$) { var c = this.EA, d = this.m.width / c.width, c = this.m.height / c.height; this.Ud.jb(d); this.Ud.tb(c) } } else if (this.$) this.Ud.He(this.m), this.EA = this.Ud.e(); else { c = this.EA; if (0 >= c.width || 0 >= c.height) { this.Ud.ib(1); return } d = this.m.width / c.width; c = this.m.height / c.height; this.Ud.jb(d); this.Ud.tb(c) } this.Ud.o(0, this.m.height / 2); this.Fi(this.dm) }, e: function() { var c = this.ob.e(); return t(c.width, c.height) }, lf: function() { return this.ob.lf() }, Gg: function() { return this.ob.Gg() }, rI: function() { this.Tk.za(!0); this.lm.za(!1); this.km.za(!1) }, sI: function() { this.Tk.za(!1); this.lm.za(!0); this.km.za(!1) }, vC: function() { this.Tk.za(!1); this.lm.za(!1); this.km.za(!0) }, dk: function() { return "Slider" }, Zh: function() { return Ic.create() }, zi: function(c) { this.We = c.We; this.zh(c.$); this.ik(c.Hn, c.dL); this.wu(c.NX, c.mN); this.hC(c.gba, c.bV); this.iC(c.hba, c.cV); this.gC(c.fba, c.aV); this.Fi(c.dm); this.rG = c.rG; this.sG = c.sG; this.qb = c.qb }, sJ: function() { this.Ii(this.ob); this.Ii(this.Ud); this.Ii(this.Tk); this.Ii(this.lm); this.Ii(this.km) }, WC: function() { this.Cl(this.ob); this.Cl(this.Ud); this.Cl(this.Tk); this.Cl(this.lm); this.Cl(this.km) } }), q = Ic.prototype; f.d(q, "percent", q.f0, q.Fi); q = null; Ic.create = function() { var c = new Ic; return c && c.j() ? c : null }; Ic.f5 = 0; Ic.U3 = -3; Ic.J6 = -2; Ic.lja = -1; var Jc = y.extend({ eO: !1, WM: 1, XM: 1, Rc: "Thonburi", Sc: 10, gaa: 0.5, Cb: "", WA: null, YOa: 0, XOa: 0, ta: "Text", zc: null, ar: !0, ctor: function() { this.zc = Jc.upa.g7; this.WA = t(0, 0); y.prototype.ctor.call(this) }, j: function(c, d, e) { return y.prototype.j.call(this) ? (0 < arguments.length && (this.wa(c), this.de(d), this.Qd(e)), !0) : !1 }, fl: function() { this.Cb = f.ia.create(); f.v.prototype.n.call(this, this.Cb, Jc.xk, -1) }, T2: function(c) { f.log("Please use the setString"); this.wa(c) }, wa: function(c) { this.Cb.wa(c); this.Qf(this.Cb.e()); this.ar = !0 }, getStringValue: function() { f.log("Please use the getString"); return this.Cb.qc() }, qc: function() { return this.Cb.qc() }, ru: function() { return this.Cb.ru() }, Qd: function(c) { this.Sc = c; this.Cb.Qd(c); this.Qf(this.Cb.e()); this.ar = !0 }, Un: function() { return this.Sc }, de: function(c) { this.Rc = c; this.Cb.de(c); this.Qf(this.Cb.e()); this.ar = !0 }, Ou: function(c) { this.Cb.gR(c); this.Qf(this.Cb.e()); this.ar = !0 }, gWa: function() { return this.Cb.Pza() }, ns: function(c) { this.Cb.jR(c); this.Qf(this.Cb.e()); this.ar = !0 }, uBa: function() { return this.Cb.Xo }, os: function(c) { this.Cb.ER(c); this.Qf(this.Cb.e()); this.ar = !0 }, vBa: function() { return this.Cb.tp }, BR: function(c) { this.eO = c }, aYa: function() { return this.eO }, rI: function() { this.eO && (this.Cb.jb(this.WM), this.Cb.tb(this.XM)) }, sI: function() { this.eO && (this.Cb.jb(this.WM + this.gaa), this.Cb.tb(this.XM + this.gaa)) }, vC: function() {}, sk: function() { this.Fb ? this.Cb.jb(-1) : this.Cb.jb(1) }, kc: function() { y.prototype.kc.call(this); this.ar = !0 }, On: function() { this.ar && (this.iQ(), this.ar = !1) }, Wn: function() { return this.Cb.e() }, Jr: function() { return this.Cb }, iQ: function() { if (this.Gb) this.Cb.ib(1), this.WM = this.XM = 1; else { this.Cb.gR(t(this.m.width, this.m.height)); var c = this.Cb.e(); if (0 >= c.width || 0 >= c.height) { this.Cb.ib(1); return } var d = this.m.width / c.width, c = this.m.height / c.height; this.Cb.jb(d); this.Cb.tb(c); this.WM = d; this.XM = c } this.Cb.o(this.m.width / 2, this.m.height / 2) }, dk: function() { return "Label" }, L_: function(c, d, e) { this.Cb.L_(c, d, e) }, qRa: function() {}, pRa: function() {}, RQa: function() {}, Zh: function() { return Jc.create() }, Cp: function() { return this.Rc }, IH: function() { return this.zc }, mr: function(c) { var d = f.ia.eM.exec(c); d && (this.Sc = parseInt(d[1]), this.Rc = d[2], this.Cb.mr(c), this.iQ()) }, Qv: function() { return this.Cb.Qv() }, CN: function(c) { this.WA.width = c; this.Cb.CN(c); this.iQ() }, BN: function(c) { this.WA.height = c; this.Cb.BN(c); this.iQ() }, vF: function() { return this.WA.width }, pW: function() { return this.WA.height }, zi: function(c) { c instanceof Kc && (this.de(c.Rc), this.Qd(c.Un()), this.wa(c.qc()), this.BR(c.C5a), this.Ou(c.WA), this.ns(c.Cb.Xo), this.os(c.Cb.tp)) } }), q = Jc.prototype; f.d(q, "boundingWidth", q.vF, q.CN); f.d(q, "boundingHeight", q.pW, q.BN); f.d(q, "string", q.qc, q.wa); f.d(q, "stringLength", q.ru); f.d(q, "font", q.Qv, q.mr); f.d(q, "fontSize", q.Un, q.Qd); f.d(q, "fontName", q.Cp, q.de); f.d(q, "textAlign", q.uBa, q.ns); f.d(q, "verticalAlign", q.vBa, q.os); var q = null, Kc = Jc.create = function(c, d, e) { var g = new Jc; if (0 < arguments.length) { if (g && g.j(c, d, e)) return g } else if (g && g.j()) return g; return null }; Jc.xk = -1; Jc.upa = { g7: 0, Poa: 1 }; var Lc = y.extend({ Qh: null, Hw: "", qV: "", Sj: 0, Ti: 0, GY: "", ta: "TextAtlas", JF: null, ctor: function() { y.prototype.ctor.call(this) }, fl: function() { this.Qh = new f.an; this.Qh.S(r(0.5, 0.5)); this.bd(this.Qh, Lc.xk, -1) }, setProperty: function(c, d, e, g, h) { this.Hw = c; this.qV = d; this.Sj = e; this.Ti = g; this.GY = h; this.Qh.xf(c, this.qV, this.Sj, this.Ti, this.GY[0]); this.Qf(this.Qh.e()); this.JF = !0 }, wa: function(c) { this.Hw = c; this.Qh.wa(c); this.Qf(this.Qh.e()); this.JF = !0 }, setStringValue: function(c) { f.log("Please use the setString"); this.wa(c) }, getStringValue: function() { f.log("Please use the getString"); return this.qc() }, qc: function() { return this.Qh.qc() }, ru: function() { return this.Qh.ru() }, kc: function() { y.prototype.kc.call(this); this.JF = !0 }, On: function() { this.JF && (this.GDa(), this.JF = !1) }, Wn: function() { return this.Qh.e() }, Jr: function() { return this.Qh }, GDa: function() { if (this.Gb) this.Qh.ib(1); else { var c = this.Qh.e(); if (0 >= c.width || 0 >= c.height) { this.Qh.ib(1); return } var d = this.ea.height / c.height; this.Qh.jb(this.ea.width / c.width); this.Qh.tb(d) } this.Qh.o(this.m.width / 2, this.m.height / 2) }, dk: function() { return "LabelAtlas" }, Zh: function() { return Lc.create() }, zi: function(c) { c && this.setProperty(c.Hw, c.qV, c.Sj, c.Ti, c.GY) } }), q = Lc.prototype; f.d(q, "string", q.qc, q.wa); q = null; Lc.create = function(c, d, e, g, h) { var k = new Lc; return k && k.j() ? (0 < arguments.length && k.setProperty(c, d, e, g, h), k) : null }; Lc.xk = -1; var Mc, Nc = Mc = y.extend({ hh: null, a$: !1, tra: "", Hw: "", ta: "TextBMFont", DM: !0, ctor: function() { y.prototype.ctor.call(this) }, fl: function() { this.hh = f.qq.create(); this.bd(this.hh, Mc.xk, -1) }, GC: function(c) { c && (this.tra = c, this.hh.xf("", c), this.WIa(), this.h1(), this.hh.Ba || this.hh.oe(function() { this.h1() }, this), this.hh.F(this.$a()), this.hh.J(this.vb()), this.a$ = !0, this.wa(this.Hw)) }, T2: function(c) { f.log("Please use the setString"); this.wa(c) }, wa: function(c) { this.Hw = c; this.a$ && (this.hh.wa(c), this.Qf(this.hh.e()), this.DM = !0) }, qc: function() { return this.Hw }, ru: function() { return this.hh.ru() }, kc: function() { y.prototype.kc.call(this); this.DM = !0 }, On: function() { this.DM && (this.h1(), this.DM = !1) }, Wn: function() { return this.hh.e() }, Jr: function() { return this.hh }, h1: function() { if (this.Gb) this.hh.ib(1); else { var c = this.hh.e(); if (0 >= c.width || 0 >= c.height) { this.hh.ib(1); return } var d = this.ea.height / c.height; this.hh.jb(this.ea.width / c.width); this.hh.tb(d) } this.hh.o(this.m.width / 2, this.m.height / 2) }, dk: function() { return "LabelBMFont" } }), q = Mc.prototype; f.d(q, "string", q.qc, q.setStringValue); q = null; Mc.create = function(c, d) { var e = new Mc; return e && e.j() ? (d && c && (e.GC(d), e.wa(c)), e) : null }; Mc.xk = -1; var Oc = f.Gj.extend({ maxLengthEnabled: !1, maxLength: 0, passwordEnabled: !1, qw: "", TU: !1, JV: !1, LW: !1, GV: !1, ta: "UICCTextField", Gn: !0, ctor: function() { f.Gj.prototype.ctor.call(this); this.maxLengthEnabled = !1; this.maxLength = 0; this.passwordEnabled = !1; this.qw = "*"; this.GV = this.LW = this.JV = this.TU = !1 }, ba: function() { f.Gj.prototype.$p.call(this, this) }, yfa: function() { this.JI(!0); return !1 }, x1: function(c, d, e) { if (1 == e && "\n" == d) return !1; this.QI(!0); return this.maxLengthEnabled && f.Gj.prototype.MB.call(this) >= this.maxLength ? !0 : !1 }, zfa: function() { this.LI(!0); return !1 }, Afa: function() { this.MI(!0); return !1 }, UH: function(c, d) { "\n" != c && this.maxLengthEnabled && this.qc().length >= this.maxLength ? this.passwordEnabled && this.pR(this.qc()) : (f.Gj.prototype.UH.call(this, c, d), this.passwordEnabled && 0 < f.Gj.prototype.MB.call(this) && this.pR(this.qc())) }, TO: function() { f.Gj.prototype.TO.call(this); 0 < f.Gj.prototype.MB.call(this) && this.passwordEnabled && this.pR(this.Si) }, O_a: function() { f.Gj.prototype.XG.call(this) }, pQa: function() { f.Gj.prototype.UO.call(this) }, cy: function(c) { this.maxLengthEnabled = c }, ZH: function() { return this.maxLengthEnabled }, ks: function(c) { this.maxLength = c }, Ax: function() { return this.maxLength }, MB: function() { return f.Gj.prototype.MB.call(this) }, dy: function(c) { this.passwordEnabled = c }, $H: function() { return this.passwordEnabled }, IC: function(c) { if (!(1 < c.length)) { var d = c.charCodeAt(0); 33 > d || 126 < d || (this.qw = c) } }, pR: function(c) { var d = "", e = c.length; c = e; this.maxLengthEnabled && e > this.maxLength && (c = this.maxLength); for (e = 0; e < c; ++e) d += this.qw; f.ia.prototype.wa.call(this, d) }, JI: function(c) { this.TU = c }, fP: function() { return this.TU }, MI: function(c) { this.JV = c }, kP: function() { return this.JV }, QI: function(c) { this.LW = c }, mP: function() { return this.LW }, LI: function(c) { this.GV = c }, jP: function() { return this.GV }, j: function() { return y.prototype.j.call(this) ? (this.Om(!0), !0) : !1 }, $Da: function() { return !1 } }); Oc.create = function(c, d, e) { var g = new Oc; return g && g.xf("", d, e) ? (c && g.Gi(c), g) : null }; var Pc = y.extend({ xa: null, fO: 0, cO: 0, Gba: !1, tr: null, ur: null, zNa: null, VNa: null, qOa: null, SNa: null, ANa: null, WNa: null, rOa: null, TNa: null, qw: "", Gn: !0, ctor: function() { y.prototype.ctor.call(this) }, j: function() { return y.prototype.j.call(this) ? (this.Om(!0), !0) : !1 }, ba: function() { y.prototype.ba.call(this); this.CR(!0) }, Ra: function() { this.CR(!1); D.prototype.Ra.call(this) }, fl: function() { this.xa = Oc.create("input words here", "Thonburi", 20); this.bd(this.xa, Pc.xk, -1) }, Z2: function(c) { this.fO = c.width; this.cO = c.height }, A4a: function(c) { this.Gba = c }, On: function() { this.Gn && (this.yIa(), this.Gn = !1) }, WB: function(c) { if (this.Gba) { c = this.yi(c); var d = x(-this.fO * this.Eb.x, -this.cO * this.Eb.y, this.fO, this.cO); if (c.x >= d.origin.x && c.x <= d.origin.x + d.size.width && c.y >= d.origin.y && c.y <= d.origin.y + d.size.height) return !0 } else return y.prototype.WB.call(this, c); return !1 }, zWa: function() { return t(this.fO, this.cO) }, T2: function(c) { f.log("Please use the setString"); this.wa(c) }, wa: function(c) { c && (c = String(c), this.ZH() && (c = c.substr(0, this.Ax())), this.$H() ? (this.xa.pR(c), this.xa.wa(""), this.xa.UH(c, c.length)) : this.xa.wa(c), this.Gn = !0, this.Qf(this.xa.e())) }, Gi: function(c) { this.xa.Gi(c); this.Gn = !0; this.Qf(this.xa.e()) }, RB: function() { return this.xa.RB() }, mr: function(c) { this.xa.mr(c); this.Gn = !0 }, Qv: function() { return this.xa.Qv() }, Qd: function(c) { this.xa.Qd(c); this.Gn = !0; this.Qf(this.xa.e()) }, Un: function() { return this.xa.cWa() }, de: function(c) { this.xa.de(c); this.Gn = !0; this.Qf(this.xa.e()) }, Cp: function() { return this.xa.bWa() }, Uxa: function() { this.xa.UO() }, getStringValue: function() { f.log("Please use the getString"); return this.qc() }, qc: function() { return this.xa.qc() }, ru: function() { return this.xa.ru() }, rc: function(c, d) { var e = this, g = y.prototype.rc.call(e, c, d); e.Rv && setTimeout(function() { e.xa.XG() }, 0); return g }, cy: function(c) { this.xa.cy(c) }, ZH: function() { return this.xa.ZH() }, ks: function(c) { this.xa.ks(c); this.wa(this.qc()) }, Ax: function() { return this.xa.Ax() }, dy: function(c) { this.xa.dy(c) }, $H: function() { return this.xa.$H() }, IC: function(c) { this.xa.IC(c); this.qw = c; this.wa(this.qc()) }, lVa: function() { return this.qw }, update: function() { this.fP() && (this.twa(), this.JI(!1)); this.kP() && (this.Qxa(), this.MI(!1)); this.mP() && (this.LCa(), this.QI(!1), this.Gn = !0, this.Qf(this.xa.e())); this.jP() && (this.Nxa(), this.LI(!1), this.Gn = !0, this.Qf(this.xa.e())) }, fP: function() { return this.xa.fP() }, JI: function(c) { this.xa.JI(c) }, kP: function() { return this.xa.kP() }, MI: function(c) { this.xa.MI(c) }, mP: function() { return this.xa.mP() }, QI: function(c) { this.xa.QI(c) }, jP: function() { return this.xa.jP() }, LI: function(c) { this.xa.LI(c) }, twa: function() { this.tr && this.ur && this.ur.call(this.tr, this, Pc.pla); this.qb && this.qb(this, 0) }, Qxa: function() { this.tr && this.ur && this.ur.call(this.tr, this, Pc.rla); this.qb && this.qb(this, 1) }, LCa: function() { this.tr && this.ur && this.ur.call(this.tr, this, Pc.sla); this.qb && this.qb(this, 2) }, Nxa: function() { this.tr && this.ur && this.ur.call(this.tr, this, Pc.qla); this.qb && this.qb(this, 3) }, sPa: function(c, d) { this.ur = c; this.tr = d }, S: function(c, d) { void 0 === d ? (y.prototype.S.call(this, c), this.xa.S(c)) : (y.prototype.S.call(this, c, d), this.xa.S(c, d)) }, Xe: function(c) { y.prototype.Xe.call(this, c); this.xa.Xe(c) }, Ye: function(c) { y.prototype.Ye.call(this, c); this.xa.Ye(c) }, kc: function() { y.prototype.kc.call(this); this.Gn = !0 }, yIa: function() { if (this.Gb) { this.xa.ib(1); var c = this.e(); this.ea.width = c.width; this.ea.height = c.height } else { c = this.e(); if (0 >= c.width || 0 >= c.height) { this.xa.ib(1); return } var d = this.ea.height / c.height; this.xa.jb(this.ea.width / c.width); this.xa.tb(d) } this.xa.o(this.m.width / 2, this.m.height / 2) }, e: function() { return this.xa.e() }, lf: function() { return this.xa.lf() }, Gg: function() { return this.xa.Gg() }, Jr: function() { return this.xa }, sJ: function() { this.Ii(this.xa) }, WC: function() { this.Cl(this.xa) }, dk: function() { return "TextField" }, XG: function() { this.xa.XG() }, Zh: function() { return Pc.create() }, zi: function(c) { this.wa(c.xa.qc()); this.Gi(c.qc()); this.Qd(c.xa.Un()); this.de(c.xa.Cp()); this.cy(c.ZH()); this.ks(c.Ax()); this.dy(c.$H()); this.IC(c.qw); this.JI(c.fP()); this.MI(c.kP()); this.QI(c.mP()); this.LI(c.jP()) }, Ou: function(c) { this.xa.gR(c.width, c.height) }, ns: function(c) { this.xa.jR(c) }, os: function(c) { this.xa.ER(c) } }); Pc.create = function(c, d, e) { var g = new Pc; return g && g.j() ? (c && d && e && (g.Gi(c), g.de(d), g.Qd(e)), g) : null }; q = Pc.prototype; f.d(q, "string", q.qc, q.wa); f.d(q, "placeHolder", q.RB, q.Gi); f.d(q, "font", q.Qv, q.mr); f.d(q, "fontSize", q.Un, q.Qd); f.d(q, "fontName", q.Cp, q.de); f.d(q, "maxLengthEnabled", q.ZH, q.cy); f.d(q, "maxLength", q.Ax, q.ks); f.d(q, "passwordEnabled", q.$H, q.dy); q = null; Pc.create = function() { return new Pc }; Pc.pla = 0; Pc.rla = 1; Pc.sla = 2; Pc.qla = 3; Pc.xk = -1; var Qc = kc.extend({ type: 0, tag: 0, color: null, ctor: function() { this.tag = this.type = 0; this.color = f.color(255, 255, 255, 255) }, j: function(c, d, e) { this.tag = c; this.color.r = d.r; this.color.g = d.g; this.color.b = d.b; this.color.a = e } }), Rc = Qc.extend({ text: "", fontName: "", fontSize: 0, ctor: function() { Qc.prototype.ctor.call(this); this.type = Qc.ST; this.fontName = this.text = ""; this.fontSize = 0 }, j: function(c, d, e, g, h, k) { Qc.prototype.j.call(this, c, d, e); this.text = g; this.fontName = h; this.fontSize = k } }); Rc.create = function(c, d, e, g, h, k) { var m = new Rc; m.j(c, d, e, g, h, k); return m }; var cd = Qc.extend({ ZO: "", GIa: null, HIa: 0, ctor: function() { Qc.prototype.ctor.call(this); this.type = Qc.VS; this.ZO = ""; this.GIa = x(0, 0, 0, 0); this.HIa = 0 }, j: function(c, d, e, g) { Qc.prototype.j.call(this, c, d, e); this.ZO = g } }); cd.create = function(c, d, e, g) { var h = new cd; h.j(c, d, e, g); return h }; var dd = Qc.extend({ RO: null, ctor: function() { Qc.prototype.ctor.call(this); this.type = Qc.iq; this.RO = null }, j: function(c, d, e, g) { Qc.prototype.j.call(this, c, d, e); this.RO = g } }); dd.create = function(c, d, e, g) { var h = new dd; h.j(c, d, e, g); return h }; var ed = y.extend({ Ov: !1, JA: null, dt: null, sn: 0, iZ: 0, ct: null, ctor: function() { y.prototype.ctor.call(this); this.Ov = !1; this.JA = []; this.dt = []; this.iZ = this.sn = 0 }, fl: function() { this.ct = f.v.create(); this.ct.S(0.5, 0.5); this.bd(this.ct, 0, -1) }, hXa: function(c, d) { this.JA.splice(d, 0, c); this.Ov = !0 }, C0a: function(c) { this.JA.push(c); this.Ov = !0 }, n1a: function(c) { "number" === typeof c ? this.JA.splice(c, 1) : f.Ld(this.JA, c); this.Ov = !0 }, mza: function() { if (this.Ov) { this.ct.Cf(); this.dt.length = 0; var c, d, e = this.JA; if (this.Gb) for (this.yO(), c = 0; c < e.length; c++) { d = e[c]; var g = null; switch (d.type) { case Qc.ST: g = f.ia.create(d.text, d.fontName, d.fontSize); break; case Qc.VS: g = f.q.create(d.ZO); break; case Qc.iq: g = d.RO } g.F(d.color); g.J(d.color.a); this.AI(g) } else for (this.yO(), c = 0; c < e.length; c++) switch (d = e[c], d.type) { case Qc.ST: this.mea(d.text, d.fontName, d.fontSize, d.color); break; case Qc.VS: this.XBa(d.ZO, d.color, d.color.a); break; case Qc.iq: this.lea(d.RO) } this.lza(); this.Ov = !1 } }, mea: function(c, d, e, g) { var h = f.ia.create(c, d, e), k = h.e().width; this.sn -= k; 0 > this.sn ? (h = c.length * (1 - -this.sn / k), k = c.substr(0, h), c = c.substr(h, c.length - 1), 0 < h && (h = f.ia.create(k.substr(0, h), d, e), h.F(g), h.J(g.a), this.AI(h)), this.yO(), this.mea(c, d, e, g)) : (h.F(g), h.J(g.a), this.AI(h)) }, XBa: function(c) { c = f.q.create(c); this.lea(c) }, lea: function(c) { var d = c.e(); this.sn -= d.width; 0 > this.sn ? (this.yO(), this.AI(c), this.sn -= d.width) : this.AI(c) }, yO: function() { this.sn = this.pb.width; this.dt.push([]) }, lza: function() { var c = 0, d = this.ct, e = this.dt; if (this.Gb) { for (var g = 0, h = e[0], k = 0, m = 0; m < h.length; m++) { var n = h[m]; n.S(r(0, 0)); n.o(r(k, 0)); d.n(n, 1, m); e = n.e(); g += e.width; c = Math.max(c, e.height); k += e.width } d.Ga(t(g, c)) } else { for (var g = [], p = 0; p < e.length; p++) { h = e[p]; for (m = k = 0; m < h.length; m++) n = h[m], k = Math.max(n.e().height, k); g[p] = k; c += g[p] } c = this.pb.height; for (p = 0; p < e.length; p++) for (h = e[p], k = 0, c -= g[p] + this.iZ, m = 0; m < h.length; m++) n = h[m], n.S(r(0, 0)), n.o(r(k, c)), d.n(n, 1, 10 * p + m), k += n.e().width; d.Ga(this.ea) } this.dt.length = 0; this.Gb ? (h = this.Wn(), this.ea.width = h.width, this.ea.height = h.height) : (this.ea.width = this.pb.width, this.ea.height = this.pb.height); this.Qf(this.ea); d.o(0.5 * this.m.width, 0.5 * this.m.height) }, AI: function(c) { 0 >= this.dt.length || this.dt[this.dt.length - 1].push(c) }, I: function(c) { this.$c && (this.mza(), y.prototype.I.call(this, c)) }, R4a: function(c) { this.iZ = c }, S: function(c) { y.prototype.S.call(this, c); this.ct.S(c) }, Wn: function() { return this.ct.e() }, e: function() { return this.ct.e() }, df: function(c) { this.Gb != c && (this.Ov = !0, y.prototype.df.call(this, c)) }, dk: function() { return "RichText" } }); ed.create = function() { return new ed }; Qc.ST = 0; Qc.VS = 1; Qc.iq = 2; var F = D.extend({ u: null, direction: null, Jo: null, Vh: 0, fi: 0, hg: 0, qf: 0, Oo: 0, Ko: 0, Mo: 0, No: 0, HE: !1, ez: 0, Rl: 0, IE: 0, NW: !1, TM: !1, bh: null, eL: !1, Ew: 0, RM: null, UE: 0, ut: !1, Yt: !1, It: !1, Ps: !1, iu: !1, NE: !1, Lo: null, fL: 0, RH: !1, rf: null, sf: null, ta: "ScrollView", qb: null, ctor: function() { D.prototype.ctor.call(this); this.direction = F.Yka; this.Jo = r(0, 0); this.No = this.Mo = this.Ko = this.Oo = this.qf = this.hg = this.fi = this.Vh = 0; this.HE = !1; this.Rl = this.ez = 0; this.IE = -1E3; this.TM = this.NW = !1; this.bh = r(0, 0); this.eL = !1; this.Ew = 0; this.RM = r(0, 0); this.UE = 5; this.NE = this.iu = this.Ps = this.It = this.Yt = this.ut = !1; this.Lo = r(0, 0); this.fL = 0; this.RH = !0; this.sf = this.rf = null }, j: function() { return D.prototype.j.call(this) ? (this.Zp(!0), this.u.Om(!1), !0) : !1 }, ba: function() { D.prototype.ba.call(this); this.ds(!0) }, Tf: function(c, d) { return this.Bm() == D.pq || this.Bm() == D.oq ? this.u.Tf(c, d) : y.prototype.Tf.call(this, c, d) }, fl: function() { D.prototype.fl.call(this); this.u = D.create(); this.bd(this.u, 1, 1) }, kc: function() { D.prototype.kc.call(this); var c = this.m; this.Vh = c.height; this.qf = c.width; var d = c.width / 3, e = c.height / 3; this.Oo = c.height - e; this.Ko = e; this.Mo = d; this.No = this.m.width - d; e = this.u.e(); d = e.height; e = Math.max(e.width, c.width); d = Math.max(d, c.height); this.u.Ga(t(e, d)); this.u.o(0, c.height - this.u.e().height) }, ay: function(c) { var d = this.m, e = d.width, g = d.height, h = this.u.e(); c.width < d.width ? f.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : e = c.width; c.height < d.height ? f.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : g = c.height; this.u.Df(t(e, g)); switch (this.direction) { case F.to: c = this.u.e(); h = h.height - c.height; this.io(0, h); break; case F.so: this.u.Kc() <= d.width && (c = this.u.e(), h = h.width - c.width, this.io(h, 0)); break; case F.Cg: c = this.u.e(), e = h.height - c.height, g = 0, this.u.Kc() <= d.width && (g = h.width - c.width), this.io(g, e) } h = this.u; c = h.e(); e = h.Od(); g = h.bk(); 0 < h.Ac() && h.o(g.x * c.width, e.y); h.Kc() < d.width && h.o(d.width - (1 - g.x) * c.width, e.y); 0 < e.y && h.o(e.x, g.y * c.height); h.Fe() < d.height && h.o(e.x, d.height - (1 - g.y) * c.height) }, uua: function(c) { var d = this.m.width, e = d, g = this.u, h = g.width; c < d ? f.log("Inner width \x3c\x3d scrollview width, it will be force sized!") : e = c; g.width = e; switch (this.direction) { case F.so: case F.Cg: g.Kc() <= d && this.io(h - g.width, 0) } c = g.anchorX; 0 < g.Ac() && (g.x = c * e); g.Kc() < d && (g.x = d - (1 - c) * e) }, tua: function(c) { var d = this.m.height, e = d, g = this.u, h = g.height; c < d ? f.log("Inner height \x3c\x3d scrollview height, it will be force sized!") : e = c; g.height = e; switch (this.direction) { case F.to: case F.Cg: this.io(0, h - e) } c = g.anchorY; 0 < g.Ac() && (g.y = c * e); g.Kc() < d && (g.y = d - (1 - c) * e) }, hAa: function() { return this.u.e() }, Ora: function() { return this.u.width }, Nra: function() { return this.u.height }, n: function(c, d, e) { if (!c) return !1; d = d || c.Ya; e = e || c.Em(); return this.u.n(c, d, e) }, Cf: function() { this.Cu(!0) }, Cu: function(c) { this.u.Cu(c) }, removeChild: function(c, d) { return this.u.removeChild(c, d) }, re: function() { return this.u.re() }, Y_: function() { return this.u.Y_() }, Za: function(c) { return this.u.Za(c) }, sda: function(c) { return this.u.sda(c) }, zO: function(c, d, e) { this.u.zO(c, d, e) }, nP: function(c) { return this.u.nP(c) }, Ida: function() { return this.u.Ida() }, removeNode: function(c) { this.u.removeNode(c) }, nga: function(c) { this.u.nga(c) }, jga: function() { this.u.jga() }, co: function(c, d) { var e = this.u.Od(); this.RM.x = e.x + c; this.RM.y = e.y + d; this.u.o(this.RM) }, zwa: function(c) { var d = this.ez; this.ez += c; if (this.NW) 0 >= this.Rl + this.IE * this.ez ? (this.PC(), this.cH()) : (d = (this.Rl + this.IE * (2 * d + c) * 0.5) * c, this.io(d * this.Jo.x, d * this.Jo.y) || (this.PC(), this.cH())); else if (this.TM) { var d = this.Jo.x * c * this.Rl, e = this.Jo.y * c * this.Rl; c = this.Twa(d, e); d = this.io(d, e); c && d || (this.PC(), this.cH()) } else this.io(this.Jo.x * c * this.Rl, this.Jo.y * c * this.Rl) || (this.PC(), this.cH()) }, Jwa: function(c) { var d = this.fL, e = this.Lo; 0 >= d && this.j3(); this.Kwa(e.x * c * d, e.y * c * d) || this.j3() }, cH: function() { if (!this.iu) return !1; this.Rwa(); if (this.Yt || this.Ps || this.ut || this.It) { var c, d; this.Yt && this.ut ? (c = f.gc(r(0, this.m.height), r(this.u.Ac(), this.u.Fe())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Yt && this.It ? (c = f.gc(r(this.m.width, this.m.height), r(this.u.Kc(), this.u.Fe())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Ps && this.ut ? (c = f.gc(r(0, 0), r(this.u.Ac(), this.u.yd())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Ps && this.It ? (c = f.gc(r(this.m.width, 0), r(this.u.Kc(), this.u.yd())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Yt ? (c = f.gc(r(0, this.m.height), r(0, this.u.Fe())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.Ps ? (c = f.gc(r(0, 0), r(0, this.u.yd())), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.ut ? (c = f.gc(r(0, 0), r(this.u.Ac(), 0)), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)) : this.It && (c = f.gc(r(this.m.width, 0), r(this.u.Kc(), 0)), d = f.ff(c) / 0.2, this.Lo = f.Af(c), this.Qu(d)); return !0 } return !1 }, Rwa: function() { this.u.yd() > this.fi ? (this.es(), this.Ps = !0) : this.Ps = !1; this.u.Fe() < this.Vh ? (this.hs(), this.Yt = !0) : this.Yt = !1; this.u.Kc() < this.qf ? (this.gs(), this.It = !0) : this.It = !1; this.u.Ac() > this.hg ? (this.fs(), this.ut = !0) : this.ut = !1 }, Qu: function(c) { this.fL = c; this.NE = !0 }, j3: function() { this.NE = !1; this.fL = 0; this.Ps = this.Yt = this.It = this.ut = !1 }, lia: function(c, d, e, g) { this.PC(); this.Jo = c; this.NW = e; this.Rl = d; this.HE = !0; this.IE = g }, mo: function(c, d, e) { this.TM = !1; this.bh = c; var g = f.gc(c, this.u.Od()); c = f.Af(g); var h = 0, k = -1E3, g = f.ff(g); e ? (k = -(2 * g) / (d * d), h = 2 * g / d) : (this.TM = !0, h = g / d); this.lia(c, h, e, k) }, $n: function(c, d) { void 0 !== c.x && (d = c.y, c = c.x); var e = c, g = d; switch (this.direction) { case F.to: 0 >= d && (g = Math.max(d, this.m.height - this.u.e().height)); break; case F.so: 0 >= c && (e = Math.max(c, this.m.width - this.u.e().width)); break; case F.Cg: 0 >= d && (g = Math.max(d, this.m.height - this.u.e().height)), 0 >= c && (e = Math.max(c, this.m.width - this.u.e().width)) } this.u.o(e, g) }, PC: function() { this.HE = !1; this.ez = this.Rl = 0 }, Kwa: function(c, d) { var e = !0, g, h, k; 0 < c && 0 < d ? (g = c, h = d, k = this.u.Kc(), k + g >= this.qf && (g = this.qf - k, this.QZ(), e = !1), k = this.u.Fe(), k + d >= this.Vh && (h = this.Vh - k, this.RZ(), e = !1), this.co(g, h)) : 0 > c && 0 < d ? (g = c, h = d, k = this.u.Ac(), k + g <= this.hg && (g = this.hg - k, this.PZ(), e = !1), k = this.u.Fe(), k + d >= this.Vh && (h = this.Vh - k, this.RZ(), e = !1), this.co(g, h)) : 0 > c && 0 > d ? (g = c, h = d, k = this.u.Ac(), k + g <= this.hg && (g = this.hg - k, this.PZ(), e = !1), k = this.u.yd(), k + d <= this.fi && (h = this.fi - k, this.LZ(), e = !1), this.co(g, h)) : 0 < c && 0 > d ? (g = c, h = d, k = this.u.Kc(), k + g >= this.qf && (g = this.qf - k, this.QZ(), e = !1), k = this.u.yd(), k + d <= this.fi && (h = this.fi - k, this.LZ(), e = !1), this.co(g, h)) : 0 == c && 0 < d ? (h = d, k = this.u.Fe(), k + d >= this.Vh && (h = this.Vh - k, this.RZ(), e = !1), this.co(0, h)) : 0 == c && 0 > d ? (h = d, k = this.u.yd(), k + d <= this.fi && (h = this.fi - k, this.LZ(), e = !1), this.co(0, h)) : 0 < c && 0 == d ? (g = c, k = this.u.Kc(), k + g >= this.qf && (g = this.qf - k, this.QZ(), e = !1), this.co(g, 0)) : 0 > c && 0 == d && (g = c, h = this.u.Ac(), h + g <= this.hg && (g = this.hg - h, this.PZ(), e = !1), this.co(g, 0)); return e }, Twa: function(c, d) { var e = !0, g; switch (this.direction) { case F.to: 0 < this.Jo.y ? (g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : (g = this.u.yd(), g + d <= this.bh.y && (e = !1)); break; case F.so: 0 < this.Jo.x ? (g = this.u.Ac(), g + c >= this.bh.x && (e = !1)) : (g = this.u.Ac(), g + c <= this.bh.x && (e = !1)); break; case F.Cg: 0 < c && 0 < d ? (g = this.u.Ac(), g + c >= this.bh.x && (e = !1), g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : 0 > c && 0 < d ? (g = this.u.Kc(), g + c <= this.bh.x && (e = !1), g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : 0 > c && 0 > d ? (g = this.u.Kc(), g + c <= this.bh.x && (e = !1), g = this.u.Fe(), g + d <= this.bh.y && (e = !1)) : 0 < c && 0 > d ? (g = this.u.Ac(), g + c >= this.bh.x && (e = !1), g = this.u.Fe(), g + d <= this.bh.y && (e = !1)) : 0 == c && 0 < d ? (g = this.u.yd(), g + d >= this.bh.y && (e = !1)) : 0 > c && 0 == d ? (g = this.u.Kc(), g + c <= this.bh.x && (e = !1)) : 0 == c && 0 > d ? (g = this.u.Fe(), g + d <= this.bh.y && (e = !1)) : 0 < c && 0 == d && (g = this.u.Ac(), g + c >= this.bh.x && (e = !1)) } return e }, bTa: function(c) { this.Rl -= this.IE * c; return this.Rl * c }, io: function(c, d) { var e = !0; this.lGa(); switch (this.direction) { case F.to: e = this.iGa(c, d); break; case F.so: e = this.hGa(c, d); break; case F.Cg: e = this.gGa(c, d) } return e }, iGa: function(c, d) { var e = d, g = !0, h; this.iu ? (h = this.u.yd(), h + d >= this.Ko && (e = this.Ko - h, this.es(), g = !1), h = this.u.Fe(), h + d <= this.Oo && (e = this.Oo - h, this.hs(), g = !1)) : (h = this.u.yd(), h + d >= this.fi && (e = this.fi - h, this.es(), g = !1), h = this.u.Fe(), h + d <= this.Vh && (e = this.Vh - h, this.hs(), g = !1)); this.co(0, e); return g }, hGa: function(c) { var d = !0, e = c, g; this.iu ? (g = this.u.Kc(), g + c <= this.No && (e = this.No - g, this.gs(), d = !1), g = this.u.Ac(), g + c >= this.Mo && (e = this.Mo - g, this.fs(), d = !1)) : (g = this.u.Kc(), g + c <= this.qf && (e = this.qf - g, this.gs(), d = !1), g = this.u.Ac(), g + c >= this.hg && (e = this.hg - g, this.fs(), d = !1)); this.co(e, 0); return d }, gGa: function(c, d) { var e = !0, g = c, h = d, k; this.iu ? 0 < c && 0 < d ? (k = this.u.Ac(), k + c >= this.Mo && (g = this.Mo - k, this.fs(), e = !1), k = this.u.yd(), k + d >= this.Ko && (h = this.Ko - k, this.es(), e = !1)) : 0 > c && 0 < d ? (k = this.u.Kc(), k + c <= this.No && (g = this.No - k, this.gs(), e = !1), k = this.u.yd(), k + d >= this.Ko && (h = this.Ko - k, this.es(), e = !1)) : 0 > c && 0 > d ? (k = this.u.Kc(), k + c <= this.No && (g = this.No - k, this.gs(), e = !1), k = this.u.Fe(), k + d <= this.Oo && (h = this.Oo - k, this.hs(), e = !1)) : 0 < c && 0 > d ? (k = this.u.Ac(), k + c >= this.Mo && (g = this.Mo - k, this.fs(), e = !1), k = this.u.Fe(), k + d <= this.Oo && (h = this.Oo - k, this.hs(), e = !1)) : 0 == c && 0 < d ? (k = this.u.yd(), k + d >= this.Ko && (h = this.Ko - k, this.es(), e = !1)) : 0 > c && 0 == d ? (k = this.u.Kc(), k + c <= this.No && (g = this.No - k, this.gs(), e = !1)) : 0 == c && 0 > d ? (k = this.u.Fe(), k + d <= this.Oo && (h = this.Oo - k, this.hs(), e = !1)) : 0 < c && 0 == d && (k = this.u.Ac(), k + c >= this.Mo && (g = this.Mo - k, this.fs(), e = !1)) : 0 < c && 0 < d ? (k = this.u.Ac(), k + c >= this.hg && (g = this.hg - k, this.fs(), e = !1), k = this.u.yd(), k + d >= this.fi && (h = this.fi - k, this.es(), e = !1)) : 0 > c && 0 < d ? (k = this.u.Kc(), k + c <= this.qf && (g = this.qf - k, this.gs(), e = !1), k = this.u.yd(), k + d >= this.fi && (h = this.fi - k, this.es(), e = !1)) : 0 > c && 0 > d ? (k = this.u.Kc(), k + c <= this.qf && (g = this.qf - k, this.gs(), e = !1), k = this.u.Fe(), k + d <= this.Vh && (h = this.Vh - k, this.hs(), e = !1)) : 0 < c && 0 > d ? (k = this.u.Ac(), k + c >= this.hg && (g = this.hg - k, this.fs(), e = !1), k = this.u.Fe(), k + d <= this.Vh && (h = this.Vh - k, this.hs(), e = !1)) : 0 == c && 0 < d ? (k = this.u.yd(), k + d >= this.fi && (h = this.fi - k, this.es(), e = !1)) : 0 > c && 0 == d ? (k = this.u.Kc(), k + c <= this.qf && (g = this.qf - k, this.gs(), e = !1)) : 0 == c && 0 > d ? (k = this.u.Fe(), k + d <= this.Vh && (h = this.Vh - k, this.hs(), e = !1)) : 0 < c && 0 == d && (k = this.u.Ac(), k + c >= this.hg && (g = this.hg - k, this.fs(), e = !1)); this.co(g, h); return e }, Z1a: function(c, d) { this.mo(r(this.u.Vc(), 0), c, d) }, g2a: function(c, d) { this.mo(r(this.u.Vc(), this.m.height - this.u.e().height), c, d) }, b2a: function(c, d) { this.mo(r(0, this.u.Zd()), c, d) }, f2a: function(c, d) { this.mo(r(this.m.width - this.u.e().width, this.u.Zd()), c, d) }, h2a: function(c, d) { this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.mo(r(0, this.m.height - this.u.e().height), c, d) }, i2a: function(c, d) { if (this.direction != F.Cg) f.log("Scroll direction is not both!"); else { var e = this.u.e(); this.mo(r(this.m.width - e.width, this.m.height - e.height), c, d) } }, $1a: function(c, d) { this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.mo(r(0, 0), c, d) }, a2a: function(c, d) { this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.mo(r(this.m.width - this.u.e().width, 0), c, d) }, e2a: function(c, d, e) { var g = this.m.height - this.u.e().height; this.mo(r(this.u.Vc(), g + c * -g / 100), d, e) }, d2a: function(c, d, e) { var g = this.u.e().width - this.m.width; this.mo(r(-(c * g / 100), this.u.Zd()), d, e) }, c2a: function(c, d, e) { if (this.direction == F.Cg) { var g = this.m.height - this.u.e().height, h = -g, k = this.u.e().width - this.m.width; this.mo(r(-(c.x * k / 100), g + c.y * h / 100), d, e) } }, fYa: function() { this.$n(this.u.Vc(), 0) }, nYa: function() { this.$n(this.u.Vc(), this.m.height - this.u.e().height) }, iYa: function() { this.$n(0, this.u.Zd()) }, mYa: function() { this.$n(this.m.width - this.u.e().width, this.u.Zd()) }, oYa: function() { this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.$n(0, this.m.height - this.u.e().height) }, pYa: function() { if (this.direction != F.Cg) f.log("Scroll direction is not both!"); else { var c = this.u.e(); this.$n(this.m.width - c.width, this.m.height - c.height) } }, gYa: function() { this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.$n(0, 0) }, hYa: function() { this.direction != F.Cg ? f.log("Scroll direction is not both!") : this.$n(this.m.width - this.u.e().width, 0) }, lYa: function(c) { var d = this.m.height - this.u.e().height; this.$n(this.u.Vc(), d + c * -d / 100) }, kYa: function(c) { var d = this.u.e().width - this.m.width; this.$n(-(c * d / 100), this.u.Zd()) }, jYa: function(c) { if (this.direction == F.Cg) { var d = this.u.e(), e = this.m.height - d.height; this.$n(-(c.x * (d.width - this.m.width) / 100), e + c.y * -e / 100) } }, rIa: function() { this.HE && this.PC(); this.NE && this.j3(); this.Ew = 0 }, Tya: function() { if (!this.cH() && this.RH && !(0.016 >= this.Ew)) { var c = 0, d; switch (this.direction) { case F.to: c = this.xr.y - this.qm.y; d = 0 > c ? F.una : F.xna; break; case F.so: c = this.xr.x - this.qm.x; d = 0 > c ? F.vna : F.wna; break; case F.Cg: d = f.gc(this.xr, this.qm), c = f.ff(d), d = f.Af(d) } c = Math.min(Math.abs(c) / this.Ew, F.Wia); this.lia(d, c, !0, -1E3); this.Ew = 0 } }, PH: function() { this.rIa(); this.eL = !0 }, OH: function(c) { c = f.gc(c.cf(), c.qP()); switch (this.direction) { case F.to: this.io(0, c.y); break; case F.so: this.io(c.x, 0); break; case F.Cg: this.io(c.x, c.y) } }, UB: function() { this.Tya(); this.eL = !1 }, rc: function(c, d) { var e = D.prototype.rc.call(this, c, d); this.Rv && this.PH(c); return e }, hd: function(c, d) { D.prototype.hd.call(this, c, d); this.OH(c) }, gd: function(c, d) { D.prototype.gd.call(this, c, d); this.UB(c) }, ef: function(c, d) { D.prototype.ef.call(this, c, d) }, update: function(c) { this.HE && this.zwa(c); this.NE && this.Jwa(c); this.zFa(c) }, zFa: function(c) { this.eL && (this.Ew += c) }, Nr: function(c, d, e) { var g = e.cf(); switch (c) { case y.WT: this.qm.x = g.x; this.qm.y = g.y; this.PH(e); break; case y.qE: f.ff(f.gc(d.t0(), g)) > this.UE && (d.xj(!1), this.cB.x = g.x, this.cB.y = g.y, this.OH(e)); break; case y.XT: case y.CK: this.xr.x = g.x, this.xr.y = g.y, this.UB(e) } }, hs: function() { this.rf && this.sf && this.sf.call(this.rf, this, F.k5); this.qb && this.qb(this, F.k5) }, es: function() { this.rf && this.sf && this.sf.call(this.rf, this, F.h5); this.qb && this.qb(this, F.h5) }, fs: function() { this.rf && this.sf && this.sf.call(this.rf, this, F.i5); this.qb && this.qb(this, F.i5) }, gs: function() { this.rf && this.sf && this.sf.call(this.rf, this, F.j5); this.qb && this.qb(this, F.j5) }, lGa: function() { this.rf && this.sf && this.sf.call(this.rf, this, F.g5); this.qb && this.qb(this, F.g5) }, RZ: function() { this.rf && this.sf && this.sf.call(this.rf, this, F.e5); this.qb && this.qb(this, F.e5) }, LZ: function() { this.rf && this.sf && this.sf.call(this.rf, this, F.b5); this.qb && this.qb(this, F.b5) }, PZ: function() { this.rf && this.sf && this.sf.call(this.rf, this, F.c5); this.qb && this.qb(this, F.c5) }, QZ: function() { this.rf && this.sf && this.sf.call(this.rf, this, F.d5); this.qb && this.qb(this, F.d5) }, qPa: function(c, d) { this.sf = c; this.rf = d }, addEventListener: function(c) { this.qb = c }, xh: function(c) { this.direction = c }, OB: function() { return this.direction }, dR: function(c) { this.iu = c }, wXa: function() { return this.iu }, WGa: function(c) { this.RH = c }, GXa: function() { return this.RH }, gUa: function() { return this.u }, Mm: function(c) { this.u.Mm(c) }, Bm: function() { return this.u.Bm() }, Wl: function() { this.gh && (this.gh = !1) }, dk: function() { return "ScrollView" }, Zh: function() { return F.create() }, kx: function(c) { D.prototype.kx.call(this, c) }, zi: function(c) { c instanceof F && (D.prototype.zi.call(this, c), this.ay(c.hAa()), this.xh(c.direction), this.dR(c.iu), this.WGa(c.RH), this.rf = c.rf, this.sf = c.sf, this.qb = c.qb) } }), q = F.prototype; f.d(q, "innerWidth", q.Ora, q.uua); f.d(q, "innerHeight", q.Nra, q.tua); q = null; F.create = function() { return new F }; F.Yka = 0; F.to = 1; F.so = 2; F.Cg = 3; F.k5 = 0; F.h5 = 1; F.i5 = 2; F.j5 = 3; F.g5 = 4; F.e5 = 5; F.b5 = 6; F.c5 = 7; F.d5 = 8; F.Wia = 1E3; F.xna = r(0, 1); F.una = r(0, -1); F.vna = r(-1, 0); F.wna = r(1, 0); var H = F.extend({ fw: null, Hg: null, nt: null, pn: 0, nA: null, oA: null, CV: 0, fm: !0, ta: "ListView", ctor: function() { F.prototype.ctor.call(this); this.fw = null; this.Hg = []; this.nt = H.RS; this.pn = 0; this.oA = this.nA = null; this.CV = 0; this.fm = !0 }, j: function() { return F.prototype.j.call(this) ? (this.Mm(D.pq), !0) : !1 }, ZGa: function(c) { c && (this.fw = c) }, aJa: function() { switch (this.direction) { case F.to: for (var c = this.Hg.length, d = (c - 1) * this.pn, e = 0; e < c; e++) var g = this.Hg[e], d = d + g.e().height; c = this.m.width; this.ay(t(c, d)); break; case F.so: c = this.Hg.length; d = (c - 1) * this.pn; for (e = 0; e < c; e++) g = this.Hg[e], d += g.e().width; c = this.m.height; this.ay(t(d, c)) } }, GI: function(c) { if (c) switch (this.direction) { case F.to: var d = c.dl(); if (d) switch (0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(0, this.pn, 0, 0)), this.nt) { case H.B5: d.vc(nc.$m); break; case H.C5: d.vc(nc.Ll); break; case H.RS: d.vc(nc.mS) } else { d = nc.create(); switch (this.nt) { case H.B5: d.vc(nc.$m); break; case H.C5: d.vc(nc.Ll); break; case H.RS: d.vc(nc.mS) } 0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(0, this.pn, 0, 0)); c.by(d) } break; case F.so: if (d = c.dl()) switch (0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(this.pn, 0, 0, 0)), this.nt) { case H.D5: d.vc(nc.u7); break; case H.z5: d.vc(nc.ZR); break; case H.A5: d.vc(nc.nS) } else { d = nc.create(); switch (this.nt) { case H.D5: d.vc(nc.u7); break; case H.z5: d.vc(nc.ZR); break; case H.A5: d.vc(nc.nS) } 0 == this.wH(c) ? d.lo(sc()) : d.lo(new rc(this.pn, 0, 0, 0)); c.by(d) } } }, B0a: function() { if (this.fw) { var c = this.fw.p(); this.GI(c); this.n(c); this.fm = !0 } }, gXa: function(c) { if (this.fw) { var d = this.fw.p(); this.Hg.splice(c, 0, d); F.prototype.n.call(this, d); this.GI(d); this.fm = !0 } }, Sfa: function(c) { this.GI(c); this.n(c); this.fm = !0 }, n: function(c, d, e) { c && (d = d || c.Ya, e = e || c.Em(), F.prototype.n.call(this, c, d, e), this.Hg.push(c)) }, removeChild: function(c, d) { if (c) { var e = this.Hg.indexOf(c); - 1 < e && this.Hg.splice(e, 1); F.prototype.removeChild.call(this, c, d) } }, Cf: function() { this.Cu(!0) }, Cu: function(c) { F.prototype.Cu.call(this, c); this.Hg = [] }, fXa: function(c, d) { this.Hg.splice(d, 0, c); F.prototype.n.call(this, c); this.GI(c); this.fm = !0 }, removeItem: function(c) { if (c = this.getItem(c)) this.removeChild(c), this.fm = !0 }, o1a: function() { this.removeItem(this.Hg.length - 1) }, Y0a: function() { this.Cf() }, getItem: function(c) { return 0 > c || c >= this.Hg.length ? null : this.Hg[c] }, kUa: function() { return this.Hg }, wH: function(c) { return this.Hg.indexOf(c) }, vc: function(c) { this.nt != c && (this.nt = c, this.fm = !0) }, y2: function(c) { this.pn != c && (this.pn = c, this.fm = !0) }, lUa: function() { return this.pn }, xh: function(c) { switch (c) { case F.to: this.Mm(D.pq); break; case F.so: this.Mm(D.oq); break; case F.Cg: return; default: return } F.prototype.xh.call(this, c) }, G1a: function() { this.fm = !0 }, DFa: function() { for (var c = 0; c < this.Hg.length; c++) { var d = this.Hg[c]; d.tl(c); this.GI(d) } this.aJa() }, Wl: function() { D.prototype.Wl.call(this); this.fm && (this.DFa(), this.fm = !1) }, oPa: function(c, d) { this.nA = d; this.oA = c }, addEventListener: function(c) { this.qb = c }, pGa: function(c) { c = c == y.WT ? H.Qma : H.Pma; this.nA && this.oA && this.oA.call(this.nA, this, c); this.qb && this.qb(this, c) }, Nr: function(c, d, e) { F.prototype.Nr.call(this, c, d, e); if (1 != c) { for (e = d; e;) { if (e && e.getParent() == this.u) { this.CV = this.wH(e); break } e = e.getParent() } d.UP() && this.pGa(c) } }, dTa: function() { return this.CV }, kc: function() { F.prototype.kc.call(this); this.fm = !0 }, dk: function() { return "ListView" }, Zh: function() { return H.create() }, kx: function(c) { c = c.Hg; for (var d = 0; d < c.length; d++) this.Sfa(c[d].p()) }, zi: function(c) { F.prototype.zi.call(this, c); this.ZGa(c.fw); this.y2(c.pn); this.vc(c.nt); this.nA = c.nA; this.oA = c.oA; this.qb = c.qb } }); H.create = function() { return new H }; H.hLa = 0; H.Qma = 0; H.Pma = 1; H.B5 = 0; H.C5 = 1; H.RS = 2; H.D5 = 3; H.z5 = 4; H.A5 = 5; var fd = D.extend({ Lj: 0, xc: null, dO: null, ova: 0, nva: 0, ata: null, mA: null, KA: null, hg: 0, qf: 0, Uv: !1, Ij: 0, VK: 0, WU: 0, UE: 0, xA: null, yA: null, ta: "PageView", qb: null, ctor: function() { D.prototype.ctor.call(this); this.Lj = 0; this.xc = []; this.dO = fd.YT; this.nva = this.ova = 0; this.KA = this.mA = this.ata = null; this.qf = this.hg = 0; this.Uv = !1; this.WU = this.VK = this.Ij = 0; this.UE = 5; this.yA = this.xA = null }, j: function() { return D.prototype.j.call(this) ? (this.Zp(!0), !0) : !1 }, ba: function() { D.prototype.ba.call(this); this.ds(!0) }, GPa: function(c, d, e) { if (c && !(0 > d)) { var g = this.xc.length; d >= g ? e && (d > g && f.log("pageIdx is %d, it will be added as page id [%d]", d, g), d = this.kxa(), d.n(c), this.AO(d)) : (d = this.xc[d]) && d.n(c) } }, kxa: function() { var c = D.create(); c.Ga(this.e()); return c }, AO: function(c) { c && -1 == this.xc.indexOf(c) && (this.bd(c), this.xc.push(c), this.gh = !0) }, jXa: function(c, d) { 0 > d || !c || -1 != this.xc.indexOf(c) || (d >= this.xc.length ? this.AO(c) : (this.xc[d] = c, this.bd(c)), this.gh = !0) }, SFa: function(c) { c && (this.Ci(c), c = this.xc.indexOf(c), -1 < c && this.xc.splice(c, 1), this.gh = !0) }, r1a: function(c) { 0 > c || c >= this.xc.length || (c = this.xc[c]) && this.SFa(c) }, a1a: function() { for (var c = this.xc, d = 0, e = c.length; d < e; d++) this.Ci(c[d]); this.xc.length = 0 }, YIa: function() { 0 >= this.xc.length ? this.KA = this.mA = null : (this.mA = this.xc[0], this.KA = this.xc[this.xc.length - 1]) }, dVa: function() { return this.xc.length }, sVa: function(c) { return this.CH().width * (c - this.Lj) }, kc: function() { D.prototype.kc.call(this); this.qf = this.e().width; this.gh = !0 }, VIa: function() { for (var c = this.e(), d = this.xc, e = 0, g = d.length; e < g; e++) d[e].Ga(c) }, UIa: function() { var c = this.xc.length; if (0 >= c) this.Lj = 0; else { this.Lj >= c && (this.Lj = c - 1); for (var d = this.e().width, e = this.xc, g = 0; g < c; g++) e[g].o(r((g - this.Lj) * d, 0)) } }, i2: function(c) { 0 > c || c >= this.xc.length || (this.Lj = c, this.Ij = -this.xc[c].Od().x, this.VK = Math.abs(this.Ij) / 0.2, this.WU = 0 < this.Ij ? 1 : 0, this.Uv = !0) }, update: function(c) { this.Uv && this.ywa(c) }, ywa: function(c) { switch (this.WU) { case 0: c *= this.VK; 0 <= this.Ij + c ? (c = -this.Ij, this.Ij = 0, this.Uv = !1) : this.Ij += c; this.II(-c); this.Uv || this.Nfa(); break; case 1: c *= this.VK, 0 >= this.Ij - c ? (c = this.Ij, this.Ij = 0, this.Uv = !1) : this.Ij -= c, this.II(c), this.Uv || this.Nfa() } }, rc: function(c, d) { var e = D.prototype.rc.call(this, c, d); this.Rv && this.PH(c); return e }, hd: function(c) { this.OH(c); var d = this.ug(); d && d.Nr(y.qE, this, c); this.ofa() }, gd: function(c, d) { D.prototype.gd.call(this, c, d); this.UB(c) }, ef: function(c, d) { D.prototype.ef.call(this, c, d); this.UB(c) }, Wl: function() { this.gh && (this.UIa(), this.VIa(), this.YIa(), this.gh = !1) }, m1: function(c) { for (var d = this.xc, e = d.length, g = 0; g < e; g++) { var h = d[g], k = h.Od(); h.o(k.x + c, k.y) } }, II: function(c) { if (0 >= this.xc.length || !this.mA || !this.KA) return !1; var d = c; switch (this.dO) { case fd.YT: if (this.KA.Kc() + c <= this.qf) return d = this.qf - this.KA.Kc(), this.m1(d), !1; break; case fd.v7: if (this.mA.Ac() + c >= this.hg) return d = this.hg - this.mA.Ac(), this.m1(d), !1 } this.m1(d); return !0 }, PH: function() {}, OH: function(c) { c = c.cf().x - c.qP().x; 0 > c ? this.dO = fd.YT : 0 < c && (this.dO = fd.v7); this.II(c) }, UB: function() { if (!(0 >= this.xc.length)) { var c = this.xc[this.Lj]; if (c) { var d = this.xc.length, c = c.Od().x, e = this.CH().width / 2; c <= -e ? this.Lj >= d - 1 ? this.II(-c) : this.i2(this.Lj + 1) : c >= e ? 0 >= this.Lj ? this.II(-c) : this.i2(this.Lj - 1) : this.i2(this.Lj) } } }, Nr: function(c, d, e) { switch (c) { case 0: this.PH(e); break; case 1: c = 0; c = Math.abs(d.t0().x - e.x); c > this.UE && (d.hR(!1), this.OH(e)); break; case 2: this.UB(e) } }, Nfa: function() { this.xA && this.yA && this.yA.call(this.xA, this, fd.m5); this.qb && this.qb(this, fd.m5) }, pPa: function(c, d) { this.yA = c; this.xA = d }, addEventListener: function(c) { this.qb = c }, cTa: function() { return this.Lj }, eVa: function() { return this.xc }, cVa: function(c) { return 0 > c || c >= this.xc.size() ? null : this.xc[c] }, dk: function() { return "PageView" }, Zh: function() { return fd.create() }, kx: function(c) { c = c.xc; for (var d = 0; d < c.length; d++) this.AO(c[d].p()) }, zi: function(c) { D.prototype.zi.call(this, c); this.qb = c.qb; this.xA = c.xA; this.yA = c.yA } }); fd.create = function() { var c = new fd; return c && c.j() ? c : null }; fd.m5 = 0; fd.YT = 0; fd.v7 = 1; f.Dh = f.N.extend({ Td: null, nd: "", $c: !0, ctor: function() { this.Td = null; this.nd = ""; this.$c = !0 }, j: function() { return !0 }, ba: function() {}, Ra: function() {}, update: function() {}, CC: function() {}, isEnabled: function() { return this.$c }, Lb: function(c) { this.$c = c }, getName: function() { return this.nd }, gf: function(c) { this.nd = c }, HC: function(c) { this.Td = c }, Lda: function() { return this.Td } }); f.Dh.create = function() { return new f.Dh }; f.P4 = f.N.extend({ Kh: null, Td: null, ctor: function(c) { this.Kh = null; this.Td = c }, uda: function(c) { if (!c) throw "cc.ComponentContainer.getComponent(): name should be non-null"; c = c.trim(); return this.Kh[c] }, add: function(c) { if (!c) throw "cc.ComponentContainer.add(): component should be non-null"; if (c.Td) return f.log("cc.ComponentContainer.add(): Component already added. It can't be added again"), !1; null == this.Kh && (this.Kh = {}, this.Td.ds()); if (this.Kh[c.getName()]) return f.log("cc.ComponentContainer.add(): Component already added. It can't be added again"), !1; c.HC(this.Td); this.Kh[c.getName()] = c; c.ba(); return !0 }, remove: function(c) { if (!c) throw "cc.ComponentContainer.remove(): name should be non-null"; if (!this.Kh) return !1; if (c instanceof f.Dh) return this.Faa(c); c = c.trim(); return this.Faa(this.Kh[c]) }, Faa: function(c) { if (c) return !1; c.Ra(); c.HC(null); delete this.Kh[c.getName()]; return !0 }, kk: function() { if (this.Kh) { var c = this.Kh, d; for (d in c) { var e = c[d]; e.Ra(); e.HC(null); delete c[d] } this.Td.UC(); this.Kh = null } }, uNa: function() { this.Kh = {} }, I: function(c) { if (this.Kh) { var d = this.Kh, e; for (e in d) d[e].update(c) } }, Jea: function() { if (!this.Kh) return !0; for (var c in this.Kh) return !1; return !0 } }); var N = N || {}; N.N = N.N || f.N; N.N.extend = N.N.extend || f.N.extend; N.v = N.v || f.v; N.v.extend = N.v.extend || f.v.extend; N.ja = N.ja || f.ja; N.ja.extend = N.ja.extend || f.ja.extend; N.q = N.q || f.q; N.q.extend = N.q.extend || f.q.extend; N.Dh = N.Dh || f.Dh; N.Dh.extend = N.Dh.extend || f.Dh.extend; N.rQa = "v1.3.0.0"; N.IJa = N.N.extend({ Ip: function(c, d, e) { c = c.substr(c.lastIndexOf("/") + 1, c.length()); f.log("filename \x3d\x3d %s", c.toString()); for (var g = [], h = d.actionlist, k = 0; k < h; k++) { var m = new ActionObject; m.Ip(d.actionlist[k], e); g.push(m) } this.xq[c] = g }, U_: function(c, d) { var e = this.xq[c]; if (e) for (var g = 0; g < e.length; g++) { var h = e[g]; if (d == h.getName()) return h } }, aFa: function(c, d) { var e = this.U_(c, d); e && e.play(); return e }, FFa: function() { for (var c in this.xq) delete this.xq[c]; this.xq = [] } }); N.iNa = 0.3; N.Ipa = 1; N.Jpa = 1.1; N.sma = 5E6; N.Tia = 50; N.Uia = 100; N.DJa = N.sma / N.Tia / N.Uia; N.HJa = !1; N.uD = !1; N.dv = !1; N.MPa = function() { return "v1.1.0.0" }; N.F4 = "version"; N.FJ = 2; N.ss = 0.3; N.sS = "skeleton"; N.Wja = "armatures"; N.k4 = "armature"; N.pD = "b"; N.wka = "d"; N.Uja = "animations"; N.j4 = "animation"; N.D4 = "mov"; N.rS = "f"; N.Cka = "TextureAtlas"; N.E4 = "SubTexture"; N.Bg = "name"; N.wy = "dr"; N.hka = "fi"; N.q4 = "to"; N.r4 = "drTW"; N.v4 = "lp"; N.mD = "sc"; N.w4 = "dl"; N.p4 = "dI"; N.EKa = "vert"; N.BKa = "frag"; N.lka = "plist"; N.oS = "parent"; N.CJ = "kX"; N.DJ = "kY"; N.nD = "cX"; N.oD = "cY"; N.qS = "z"; N.s4 = "evt"; N.nka = "sd"; N.oka = "sdE"; N.EJ = "twE"; N.pka = "twR"; N.gka = "twEP"; N.jka = "isArmature"; N.fka = "displayType"; N.kka = "mov"; N.aka = "bd"; N.$ja = "bd_src"; N.Zja = "bd_dst"; N.xy = "x"; N.yy = "y"; N.n4 = "cocos2d_x"; N.o4 = "cocos2d_y"; N.A4 = "width"; N.u4 = "height"; N.x4 = "pX"; N.y4 = "pY"; N.cka = "cocos2d_pX"; N.dka = "cocos2d_pY"; N.l4 = "a"; N.z4 = "r"; N.t4 = "g"; N.m4 = "b"; N.Yja = "aM"; N.mka = "rM"; N.ika = "gM"; N.bka = "bM"; N.eka = "colorTransform"; N.pS = "tweenFrame"; N.CKa = "rotation"; N.DKa = "uci"; N.B4 = "con"; N.vka = "con_vt"; N.FKa = "movementEventFrame"; N.HKa = "soundFrame"; N.C4 = "NaN"; N.yka = "frame_data"; N.zka = "mov_bone_data"; N.GKa = "mov_frame_data"; N.Aka = "mov_data"; N.Vja = "animation_data"; N.xka = "display_data"; N.Bka = "skin_data"; N.qka = "bone_data"; N.Xja = "armature_data"; N.uka = "contour_data"; N.Dka = "texture_data"; N.Eka = "vertex"; N.rka = "color"; N.ska = "config_file_path"; N.tka = "content_scale"; function gd() { this.eH = 1; this.filename = ""; this.sB = this.aP = 0 } N.SO = { ZE: [], $Na: N.FJ, ENa: N.ss, CA: 1, cz: 0, zv: 0, X3a: function(c) { this.CA = c }, rVa: function() { return this.CA }, clear: function() { this.ZE = []; this.zv = this.cz = 0 }, Sba: function(c, d) { if (-1 == this.ZE.indexOf(c)) { this.ZE.push(c); var e = f.path.zp(c).toLowerCase(), g = new gd; g.filename = c; g.GZ = this.usa(c); ".xml" == e ? this.Pva(c, g) : ".json" != e && ".exportjson" != e || this.Nva(c, g, d) } }, Mva: function(c, d, e, g) { if (-1 != this.ZE.indexOf(c)) d && e && (0 == this.zv && 0 == this.cz ? this.RU(d, e, 1) : this.RU(d, e, (this.zv - this.cz) / this.zv)); else { this.zv++; this.cz++; var h = this; f.Q.Dm().g2(this, function() { h.Sba(c, g); h.cz--; h.RU(d, e, (h.zv - h.cz) / h.zv) }, 0.1, !1) } }, RU: function(c, d, e) { if (c && "string" == typeof d) c[d](e); else c && "function" == typeof d && d.call(c, e) }, usa: function(c) { var d = c.lastIndexOf("/"); return c = -1 < d ? c.substr(0, d + 1) : "" }, Pva: function(c, d) { var e = f.L.zd(c); if (!e) throw "Please load the resource first : " + c; (e = f.fGa.parse(e).documentElement) && this.Lva(e, d) }, Lva: function(c, d) { if (c) { d.aP = parseFloat(c.getAttribute(N.F4)); for (var e = c.querySelectorAll(N.sS + " \x3e " + N.Wja + " \x3e " + N.k4 + ""), g = N.Dr, h = 0; h < e.length; h++) { var k = this.txa(e[h], d); g.rZ(k.name, k, d.filename) } e = c.querySelectorAll(N.sS + " \x3e " + N.Uja + " \x3e " + N.j4 + ""); for (h = 0; h < e.length; h++) k = this.rxa(e[h], d), g.qZ(k.name, k, d.filename); e = c.querySelectorAll(N.sS + " \x3e " + N.Cka + " \x3e " + N.E4 + ""); for (h = 0; h < e.length; h++) k = this.Jxa(e[h], d), g.aca(k.name, k, d.filename) } else f.log("XML error or XML is empty.") }, txa: function(c, d) { var e = c.getAttribute(N.Bg), g = new N.UR; g.name = e; for (var e = c.querySelectorAll(N.k4 + " \x3e " + N.pD), h = 0; h < e.length; h++) { var k = e[h], m = k.getAttribute(N.oS), n = null; if (m) for (var p = 0; p < e.length && (n = e[p], m != e[p].getAttribute(N.Bg)); p++); k = this.vxa(k, n, d); g.Oba(k) } return g }, vxa: function(c, d, e) { var g = c.getAttribute(N.Bg); if ("" != g) { d = new N.Z3; d.name = g; d.yI = c.getAttribute(N.oS) || ""; d.Sm = parseInt(c.getAttribute(N.qS)) || 0; c = c.querySelectorAll(N.pD + " \x3e " + N.wka); for (var h, g = 0; g < c.length; g++) h = c[g], h = this.wxa(h, e), d.Uba(h); return d } }, wxa: function(c) { var d = null; 1 == (parseFloat(c.getAttribute(N.jka)) || 0) ? (d = new N.hD, d.$k = N.zy) : (d = new N.vq, d.$k = N.us); (c = c.getAttribute(N.Bg) || "") && (d.displayName = c); return d }, rxa: function(c, d) { var e = c.getAttribute(N.Bg), g = new N.TR, h = N.Dr.wx(e); g.name = e; for (var e = c.querySelectorAll(N.j4 + " \x3e " + N.D4), k = null, m = 0; m < e.length; m++) k = e[m], k = this.Dxa(k, h, d), g.Vba(k); return g }, Dxa: function(c, d, e) { var g = c.getAttribute(N.Bg), h = new N.i6; h.name = g; g = g = 0; g = parseFloat(c.getAttribute(N.wy)) || 0; h.duration = g; g = parseFloat(c.getAttribute(N.q4)) || 0; h.nu = g; g = parseFloat(c.getAttribute(N.r4)) || 0; h.XO = g; g = c.getAttribute(N.v4); h.loop = g ? Boolean(parseFloat(g)) : !0; if (g = c.getAttribute(N.EJ)) g != N.C4 ? (g = parseFloat(g) || 0, h.tweenEasing = 2 == g ? N.eb.JC : g) : h.tweenEasing = N.eb.rj; c = c.querySelectorAll(N.D4 + " \x3e " + N.pD); for (var k = null, g = 0; g < c.length; g++) { var k = c[g], m = k.getAttribute(N.Bg); if (!h.e0(m)) { var m = d.xx(m), n = m.yI, p = null; if ("" != n) for (var s = 0; s < c.length && (p = c[s], n != p.getAttribute(N.Bg)); s++); k = this.Exa(k, p, m, e); h.Wba(k) } } return h }, Exa: function(c, d, e, g) { var h = new N.h6, k; c && (k = parseFloat(c.getAttribute(N.mD)) || 0, h.scale = k, k = parseFloat(c.getAttribute(N.w4)) || 0, 0 < k && (k -= 1), h.vm = k); var m = 0, n = k = 0, p = null, s = []; if (null != d) { for (var u = d.querySelectorAll(N.pD + " \x3e " + N.rS), m = 0; m < u.length; m++) s.push(u[m]); m = s.length } var u = 0, v = c.getAttribute(N.Bg); h.name = v; c = c.querySelectorAll(N.pD + " \x3e " + N.rS); for (var z = v = 0; z < c.length; z++) { var A = c[z]; if (d) for (; v < m && (p ? u < k || u >= k + n : 1);) p = s[v], k += n, n = parseFloat(p.getAttribute(N.wy)), v++; A = this.Bxa(A, p, e, g); h.xO(A); A.oj = u; u += A.duration; h.duration = u } d = h.qh; e = Math.PI; for (m = d.length - 1; 0 <= m; m--) if (0 < m) { g = d[m].skewX - d[m - 1].skewX; k = d[m].skewY - d[m - 1].skewY; if (g < -e || g > e) d[m - 1].skewX = 0 > g ? d[m - 1].skewX - 2 * e : d[m - 1].skewX + 2 * e; if (k < -e || k > e) d[m - 1].skewY = 0 > k ? d[m - 1].skewY - 2 * e : d[m - 1].skewY + 2 * e } 0 < h.qh.length && (A = new N.hv, A.copy(h.qh[h.qh.length - 1]), A.oj = h.duration, h.xO(A)); return h }, Bxa: function(c, d, e, g) { e = new N.hv; e.oC = c.getAttribute(N.kka) || ""; e.event = c.getAttribute(N.s4) || ""; e.Hwa = parseInt(c.getAttribute(N.aka)) || N.W3; var h = e.blendFunc; switch (e.Hwa) { case N.W3: h.src = f.Mc; h.ha = f.Lc; break; case N.nja: h.src = f.SRC_ALPHA; h.ha = f.ONE; break; case N.oja: h.src = f.ONE_MINUS_SRC_ALPHA; h.ha = f.ONE_MINUS_DST_COLOR; break; case N.pja: h.src = f.ONE, h.ha = f.ONE_MINUS_DST_COLOR } e.IR = c.getAttribute(N.nka) || ""; e.JR = c.getAttribute(N.oka) || ""; h = c.getAttribute(N.pS); null == h && (h = !0); e.uu = Boolean(h); g.aP >= N.FJ ? (e.x = parseFloat(c.getAttribute(N.n4)) || 0, e.y = -parseFloat(c.getAttribute(N.o4)) || 0) : (e.x = parseFloat(c.getAttribute(N.xy)) || 0, e.y = -parseFloat(c.getAttribute(N.yy)) || 0); e.x *= this.CA; e.y *= this.CA; e.scaleX = parseFloat(c.getAttribute(N.nD)) || 0; e.scaleY = parseFloat(c.getAttribute(N.oD)) || 0; e.skewX = f.sg(parseFloat(c.getAttribute(N.CJ)) || 0); e.skewY = f.sg(-parseFloat(c.getAttribute(N.DJ)) || 0); e.duration = parseFloat(c.getAttribute(N.wy)) || 0; e.mj = parseFloat(c.getAttribute(N.p4)) || 0; e.Sm = parseFloat(c.getAttribute(N.qS)) || 0; e.py = parseFloat(c.getAttribute(N.pka)) || 0; h = c.querySelectorAll(N.rS + " \x3e " + N.eka); if (0 < h.length) { var k = h[0], m = h = 0, n = 0, p = 0, s = 0, u = 0, v = 0, z = 100, h = parseFloat(k.getAttribute(N.l4)) || h, m = parseFloat(k.getAttribute(N.z4)) || m, n = parseFloat(k.getAttribute(N.t4)) || n, p = parseFloat(k.getAttribute(N.m4)) || p, A = k.getAttribute(N.Yja); A && (s = parseFloat(A)); (A = k.getAttribute(N.mka)) && (u = parseFloat(A)); var B = k.getAttribute(N.ika); A && (v = parseFloat(B)); (k = k.getAttribute(N.bka)) && (z = parseFloat(k)); e.a = 2.55 * s + h; e.r = 2.55 * u + m; e.g = 2.55 * v + n; e.b = 2.55 * z + p; e.Zn = !0 } - 1 == e.mj && (e.a = 0); (c = c.getAttribute(N.EJ)) && (e.tweenEasing = c != N.C4 ? 2 == c ? N.eb.JC : c : N.eb.rj); d && (c = new N.Tm, g.aP >= N.FJ ? (c.x = parseFloat(d.getAttribute(N.n4)) || 0, c.y = parseFloat(d.getAttribute(N.o4)) || 0) : (c.x = parseFloat(d.getAttribute(N.xy)) || 0, c.y = parseFloat(d.getAttribute(N.yy)) || 0), c.skewX = parseFloat(d.getAttribute(N.CJ)) || 0, c.skewY = parseFloat(d.getAttribute(N.DJ)) || 0, c.y = -c.y, c.skewX = f.sg(c.skewX), c.skewY = f.sg(-c.skewY), N.Hj.LIa(e, c)); return e }, Jxa: function(c, d) { var e = new N.A7; c.getAttribute(N.Bg) && (e.name = c.getAttribute(N.Bg)); var g, h, k, m = 0; d.aP >= N.FJ ? (g = parseFloat(c.getAttribute(N.cka)) || 0, h = parseFloat(c.getAttribute(N.dka)) || 0) : (g = parseFloat(c.getAttribute(N.x4)) || 0, h = parseFloat(c.getAttribute(N.y4)) || 0); k = parseFloat(c.getAttribute(N.A4)) || 0; m = parseFloat(c.getAttribute(N.u4)) || 0; e.GQ = g / k; e.HQ = (m - h) / m; g = c.querySelectorAll(N.E4 + " \x3e " + N.B4); for (h = 0; h < g.length; h++) this.zxa(g[h], d); return e }, zxa: function(c) { var d = new N.Q4; c = c.querySelectorAll(N.B4 + " \x3e " + N.vka); for (var e, g = 0; g < c.length; g++) { e = c[g]; var h = r(0, 0); h.x = parseFloat(e.getAttribute(N.xy)) || 0; h.y = parseFloat(e.getAttribute(N.yy)) || 0; d.Vu.push(h) } return d }, Nva: function(c, d, e) { this.Ova(f.L.zd(c), d, e) }, Ova: function(c, d, e) { d.eH = c[N.tka] || 1; for (var g = c[N.Xja] || [], h, k = 0; k < g.length; k++) h = this.uxa(g[k], d), N.Dr.rZ(h.name, h, d.filename); g = c[N.Vja] || []; for (k = 0; k < g.length; k++) h = this.sxa(g[k], d), N.Dr.qZ(h.name, h, d.filename); g = c[N.Dka] || []; for (k = 0; k < g.length; k++) h = this.Kxa(g[k], d), N.Dr.aca(h.name, h, d.filename); if (e) for (c = c[N.ska] || [], k = 0; k < c.length; k++) e = c[k], g = e.lastIndexOf("."), e = e.substring(0, g), g = d.GZ + e + ".plist", e = d.GZ + e + ".png", N.Dr.UG(g, e, d.filename) }, uxa: function(c, d) { var e = new N.UR, g = c[N.Bg]; g && (e.name = g); d.sB = e.wB = c[N.F4] || 0.1; for (var g = c[N.qka], h = 0; h < g.length; h++) e.Oba(this.yxa(g[h], d)); return e }, yxa: function(c, d) { var e = new N.Z3; this.Gca(e, c, d); e.name = c[N.Bg] || ""; e.yI = c[N.oS] || ""; for (var g = c[N.xka] || [], h = 0; h < g.length; h++) { var k = this.xxa(g[h], d); e.Uba(k) } return e }, xxa: function(c, d) { var e = c[N.fka] || N.us, g = null; switch (e) { case N.us: g = new N.vq; g.displayName = c[N.Bg] || ""; var h = (c[N.Bka] || [])[0]; if (h) { var k = g.skinData; k.x = (h[N.xy] || 0) * this.CA; k.y = (h[N.yy] || 0) * this.CA; void 0 !== h[N.nD] && (k.scaleX = h[N.nD]); void 0 !== h[N.oD] && (k.scaleY = h[N.oD]); k.skewX = h[N.CJ] || 0; k.skewY = h[N.DJ] || 0; k.x *= d.eH; k.y *= d.eH } break; case N.zy: g = new N.hD; g.displayName = c[N.Bg] || ""; break; case N.tD: g = new N.mK; g.displayName = d.GZ + c[N.lka] || ""; break; default: g = new N.vq } g.$k = e; return g }, sxa: function(c, d) { var e = new N.TR; e.name = c[N.Bg] || ""; for (var g = c[N.Aka] || [], h = 0; h < g.length; h++) { var k = this.Gxa(g[h], d); e.Vba(k) } return e }, Gxa: function(c, d) { var e = new N.i6; e.loop = c[N.v4] || !1; e.XO = c[N.r4] || 0; e.nu = c[N.q4] || 0; e.duration = c[N.wy] || 0; void 0 !== c[N.mD] && (e.scale = c[N.mD]); e.tweenEasing = c[N.EJ] || N.eb.rj; e.name = c[N.Bg] || ""; for (var g = c[N.zka] || [], h = 0; h < g.length; h++) { var k = this.Fxa(g[h], d); e.Wba(k) } return e }, Fxa: function(c, d) { var e = new N.h6; e.vm = c[N.w4] || 0; void 0 !== c[N.mD] && (e.scale = c[N.mD]); e.name = c[N.Bg] || ""; for (var g = c[N.yka] || [], h = 0; h < g.length; h++) { var k = this.Cxa(g[h], d); e.xO(k); d.sB < N.ss && (k.oj = e.duration, e.duration += k.duration) } if (d.sB < N.Ipa) for (g = e.qh, k = Math.PI, h = g.length - 1; 0 <= h; h--) if (0 < h) { var m = g[h].skewX - g[h - 1].skewX, n = g[h].skewY - g[h - 1].skewY; if (m < -k || m > k) g[h - 1].skewX = 0 > m ? g[h - 1].skewX - 2 * k : g[h - 1].skewX + 2 * k; if (n < -k || n > k) g[h - 1].skewY = 0 > n ? g[h - 1].skewY - 2 * k : g[h - 1].skewY + 2 * k } d.sB < N.ss && 0 < e.qh.length && (k = new N.hv, k.copy(e.qh[e.qh.length - 1]), e.xO(k), k.oj = e.duration); return e }, Cxa: function(c, d) { var e = new N.hv; this.Gca(e, c, d); e.duration = c[N.wy] || 0; e.tweenEasing = c[N.EJ] || N.eb.rj; e.mj = c[N.p4] || 0; var g = c[N.Zja] || f.Lc; e.blendFunc.src = c[N.$ja] || f.Mc; e.blendFunc.ha = g; e.event = c[N.s4] || null; void 0 !== c[N.pS] && (e.uu = c[N.pS]); d.sB < N.ss ? e.duration = c[N.wy] || 0 : e.oj = c[N.hka] || 0; for (var g = c[N.gka] || [], h = 0; h < g.length; h++) e.zB[h] = g[h]; return e }, Kxa: function(c) { var d = new N.A7; d.name = c[N.Bg] || ""; d.width = c[N.A4] || 0; d.height = c[N.u4] || 0; d.GQ = c[N.x4] || 0; d.HQ = c[N.y4] || 0; c = c[N.uka] || []; for (var e = 0; e < c.length; e++) { var g = this.Axa(c[e]); d.jx.push(g) } return d }, Axa: function(c) { var d = new N.Q4; c = c[N.Eka] || []; for (var e = 0; e < c.length; e++) { var g = c[e], h = r(0, 0); h.x = g[N.xy] || 0; h.y = g[N.yy] || 0; d.Vu.push(h) } return d }, Gca: function(c, d, e) { c.x = d[N.xy] || 0; c.y = d[N.yy] || 0; c.x *= e.eH; c.y *= e.eH; c.Sm = d[N.qS] || 0; c.skewX = d[N.CJ] || 0; c.skewY = d[N.DJ] || 0; void 0 !== d[N.nD] && (c.scaleX = d[N.nD]); void 0 !== d[N.oD] && (c.scaleY = d[N.oD]); if (d = d[N.rka] || null) e.sB < N.Jpa && (d = d[0]), c.a = d[N.l4], c.r = d[N.z4], c.g = d[N.t4], c.b = d[N.m4], c.Zn = !0, delete d }, PFa: function(c) { f.Ld(this.ZE, c) } }; N.jia = { VN: {}, qsa: [], UG: function(c, d) { f.Je.vp(c, d) }, xBa: function() { return null }, clear: function() { this.VN = {}; this.qsa = [] } }; N.Hj = N.Hj || N.N.extend({}); N.Hj.BP = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }; N.Hj.CP = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }; N.Hj.Fp = r(0, 0); N.Hj.Gp = r(0, 0); N.Hj.LIa = function(c, d) { this.n1(c, this.BP); this.n1(d, this.CP); this.CP = f.SR(this.CP); this.BP = f.Vg(this.BP, this.CP); this.mfa(this.BP, c) }; N.Hj.n1 = function(c, d) { if (c.skewX == -c.skewY) { var e = Math.sin(c.skewX), g = Math.cos(c.skewX); d.a = c.scaleX * g; d.b = c.scaleX * -e; d.G = c.scaleY * e; d.P = c.scaleY * g } else d.a = c.scaleX * Math.cos(c.skewY), d.b = c.scaleX * Math.sin(c.skewY), d.G = c.scaleY * Math.sin(c.skewX), d.P = c.scaleY * Math.cos(c.skewY); d.pa = c.x; d.qa = c.y }; N.Hj.mfa = function(c, d) { this.Fp.x = 0; this.Fp.y = 1; this.Fp = f.lv(this.Fp, c); this.Fp.x -= c.pa; this.Fp.y -= c.qa; this.Gp.x = 1; this.Gp.y = 0; this.Gp = f.lv(this.Gp, c); this.Gp.x -= c.pa; this.Gp.y -= c.qa; d.skewX = -(Math.atan2(this.Fp.y, this.Fp.x) - 1.5707964); d.skewY = Math.atan2(this.Gp.y, this.Gp.x); d.scaleX = Math.sqrt(c.a * c.a + c.b * c.b); d.scaleY = Math.sqrt(c.G * c.G + c.P * c.P); d.x = c.pa; d.y = c.qa }; N.Hj.r_a = function(c, d) { c.x += d.x; c.y += d.y; c.skewX += d.skewX; c.skewY += d.skewY; c.scaleX += d.scaleX; c.scaleY += d.scaleY }; N.Hj.XDa = function(c, d) { c.x -= d.x; c.y -= d.y; c.skewX -= d.skewX; c.skewY -= d.skewY; c.scaleX -= d.scaleX; c.scaleY -= d.scaleY }; N.eb = { pxa: -1, rj: 0, f3: 1, g3: 2, JC: 3, L1: 4, N1: 5, M1: 6, p_: 7, r_: 8, q_: 9, O1: 10, Q1: 11, P1: 12, R1: 13, T1: 14, S1: 15, P_: 16, R_: 17, Q_: 18, d_: 19, Qya: 20, e_: 21, I_: 22, K_: 23, J_: 24, CZ: 25, EZ: 26, DZ: 27, MZ: 28, OZ: 29, NZ: 30, zia: 1E4 }; N.nc = N.nc || N.N.extend({}); N.yo = 2 * Math.PI; N.d6 = Math.PI / 2; N.tma = Math.PI; N.nc.NIa = function(c, d, e) { var g = 0; switch (d) { case N.eb.pxa: g = this.oxa(c, e); break; case N.eb.rj: g = this.rj(c); break; case N.eb.f3: g = this.f3(c); break; case N.eb.g3: g = this.g3(c); break; case N.eb.JC: g = this.JC(c); break; case N.eb.L1: g = this.L1(c); break; case N.eb.N1: g = this.N1(c); break; case N.eb.M1: g = this.M1(c); break; case N.eb.p_: g = this.p_(c); break; case N.eb.r_: g = this.r_(c); break; case N.eb.q_: g = this.q_(c); break; case N.eb.O1: g = this.O1(c); break; case N.eb.Q1: g = this.Q1(c); break; case N.eb.P1: g = this.P1(c); break; case N.eb.R1: g = this.R1(c); break; case N.eb.T1: g = this.T1(c); break; case N.eb.S1: g = this.S1(c); break; case N.eb.P_: g = this.P_(c); break; case N.eb.R_: g = this.R_(c); break; case N.eb.Q_: g = this.Q_(c); break; case N.eb.d_: g = this.d_(c); break; case N.eb.Qya: g = this.Vwa(c); break; case N.eb.e_: g = this.e_(c); break; case N.eb.I_: g = this.I_(c, e); break; case N.eb.K_: g = this.K_(c, e); break; case N.eb.J_: g = this.J_(c, e); break; case N.eb.CZ: g = this.CZ(c); break; case N.eb.EZ: g = this.EZ(c); break; case N.eb.DZ: g = this.DZ(c); break; case N.eb.MZ: g = this.MZ(c); break; case N.eb.OZ: g = this.OZ(c); break; case N.eb.NZ: g = this.NZ(c); break; default: g = this.JC(c) } return g }; N.nc.rj = function(c) { return c }; N.nc.f3 = function(c) { return -1 * Math.cos(c * N.d6) + 1 }; N.nc.g3 = function(c) { return Math.sin(c * N.d6) }; N.nc.JC = function(c) { return -0.5 * (Math.cos(N.tma * c) - 1) }; N.nc.L1 = function(c) { return c * c }; N.nc.N1 = function(c) { return -1 * c * (c - 2) }; N.nc.M1 = function(c) { c *= 2; if (1 > c) return 0.5 * c * c; --c; return -0.5 * (c * (c - 2) - 1) }; N.nc.p_ = function(c) { return c * c * c }; N.nc.r_ = function(c) { c -= 1; return c * c * c + 1 }; N.nc.q_ = function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c; c -= 2; return 0.5 * (c * c * c + 2) }; N.nc.O1 = function(c) { return c * c * c * c }; N.nc.Q1 = function(c) { c -= 1; return -(c * c * c * c - 1) }; N.nc.P1 = function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c * c; c -= 2; return -0.5 * (c * c * c * c - 2) }; N.nc.R1 = function(c) { return c * c * c * c * c }; N.nc.T1 = function(c) { c -= 1; return c * c * c * c * c + 1 }; N.nc.S1 = function(c) { c *= 2; if (1 > c) return 0.5 * c * c * c * c * c; c -= 2; return 0.5 * (c * c * c * c * c + 2) }; N.nc.P_ = function(c) { return 0 == c ? 0 : Math.pow(2, 10 * (c - 1)) - 0.001 }; N.nc.R_ = function(c) { return 1 == c ? 1 : -Math.pow(2, -10 * c) + 1 }; N.nc.Q_ = function(c) { c /= 0.5; return c = 1 > c ? 0.5 * Math.pow(2, 10 * (c - 1)) : 0.5 * (-Math.pow(2, -10 * (c - 1)) + 2) }; N.nc.d_ = function(c) { return -1 * (Math.sqrt(1 - c * c) - 1) }; N.nc.Vwa = function(c) { c -= 1; return Math.sqrt(1 - c * c) }; N.nc.e_ = function(c) { c *= 2; if (1 > c) return -0.5 * (Math.sqrt(1 - c * c) - 1); c -= 2; return 0.5 * (Math.sqrt(1 - c * c) + 1) }; N.nc.I_ = function(c, d) { var e = 0.3; 0 < d.length && (e = d[0]); var g = 0; 0 == c || 1 == c ? g = c : (c -= 1, g = -Math.pow(2, 10 * c) * Math.sin((c - e / 4) * N.yo / e)); return g }; N.nc.K_ = function(c, d) { var e = 0.3; 0 < d.length && (e = d[0]); var g = 0; return g = 0 == c || 1 == c ? c : Math.pow(2, -10 * c) * Math.sin((c - e / 4) * N.yo / e) + 1 }; N.nc.J_ = function(c, d) { var e = 0.3; 0 < d.length && (e = d[0]); var g = 0; 0 == c || 1 == c ? g = c : (e || (e = 0.3 * 1.5), g = e / 4, c = 2 * c - 1, g = 0 > c ? -0.5 * Math.pow(2, 10 * c) * Math.sin((c - g) * N.yo / e) : Math.pow(2, -10 * c) * Math.sin((c - g) * N.yo / e) * 0.5 + 1); return g }; N.nc.CZ = function(c) { return c * c * (2.70158 * c - 1.70158) }; N.nc.EZ = function(c) { c -= 1; return c * c * (2.70158 * c + 1.70158) + 1 }; N.nc.DZ = function(c) { c *= 2; if (1 > c) return c * c * (3.5949095 * c - 2.5949095) / 2; c -= 2; return c * c * (3.5949095 * c + 2.5949095) / 2 + 1 }; N.Er = function(c) { if (c < 1 / 2.75) return 7.5625 * c * c; if (c < 2 / 2.75) return c -= 1.5 / 2.75, 7.5625 * c * c + 0.75; if (c < 2.5 / 2.75) return c -= 2.25 / 2.75, 7.5625 * c * c + 0.9375; c -= 2.625 / 2.75; return 7.5625 * c * c + 0.984375 }; N.nc.MZ = function(c) { return 1 - N.Er(1 - c) }; N.nc.OZ = function(c) { return N.Er(c) }; N.nc.NZ = function(c) { var d = 0; return d = 0.5 > c ? 0.5 * (1 - N.Er(1 - 2 * c)) : 0.5 * N.Er(2 * c - 1) + 0.5 }; N.nc.oxa = function(c, d) { if (0 < d.length) { var e = 1 - c; return d[1] * e * e * e + 3 * d[3] * c * e * e + 3 * d[5] * c * c * e + d[7] * c * c * c } return c }; N.EB = function(c, d) { for (; c > d;) c -= d; return c }; function vd(c) { c && c.wh && c.wh() } N.Nea = function(c, d, e) { var g = r(0, 0); e && (g = c.yi(d)); c = c.e(); return f.Bu(x(0, 0, c.width, c.height), g) }; N.zMa = N.Nea; N.Pna = N.Nea; N.vRa = function(c, d, e, g, h) { var k = r(0, 0); g && !h && (k.x = Math.pow(1 - c, 2) * d.x + 2 * c * (1 - c) * e.x + Math.pow(c, 2) * g.x, k.y = Math.pow(1 - c, 2) * d.y + 2 * c * (1 - c) * e.y + Math.pow(c, 2) * g.y); h && (k.x = d.x * Math.pow(1 - c, 3) + 3 * c * e.x * Math.pow(1 - c, 2) + 3 * g.x * Math.pow(c, 2) * (1 - c) + h.x * Math.pow(c, 3), k.y = d.y * Math.pow(1 - c, 3) + 3 * c * e.y * Math.pow(1 - c, 2) + 3 * g.y * Math.pow(c, 2) * (1 - c) + h.y * Math.pow(c, 3)); return k }; N.wRa = function(c, d, e, g, h) { var k = r(0, 0); k.x = d.x + e * Math.cos(g + h * c); k.y = d.y + e * Math.sin(g + h * c); return k }; function wd() { this.H1 = []; this.zZ = []; this.lB = []; this.q3 = [] } N.Dr = { Ms: {}, Ns: {}, Ut: {}, oqa: !1, sN: {}, f1a: function(c) { for (var d = this.zH(c), e = 0; e < d.zZ.length; e++) { var g = d.zZ[e]; this.MFa(g) } for (e = 0; e < d.lB.length; e++) g = d.lB[e], this.KFa(g); for (e = 0; e < d.q3.length; e++) g = d.q3[e], this.WFa(g); for (e = 0; e < d.H1.length; e++) g = d.H1[e], f.Je.VFa(g); delete this.sN[c]; N.SO.PFa(c) }, rZ: function(c, d, e) { this.Ns && (this.zH(e).zZ.push(c), this.Ns[c] = d) }, MFa: function(c) { this.Ns[c] && delete this.Ns[c] }, wx: function(c) { var d = null; this.Ns && (d = this.Ns[c]); return d }, gSa: function() { return this.Ns }, qZ: function(c, d, e) { this.Ms && (this.zH(e).lB.push(c), this.Ms[c] = d) }, KFa: function(c) { this.Ms[c] && delete this.Ms[c] }, mda: function(c) { var d = null; this.Ms[c] && (d = this.Ms[c]); return d }, aSa: function() { return this.Ms }, aca: function(c, d, e) { this.Ut && (this.zH(e).q3.push(c), this.Ut[c] = d) }, WFa: function(c) { this.Ut[c] && delete this.Ut[c] }, wBa: function(c) { var d = null; this.Ut && (d = this.Ut[c]); return d }, iWa: function() { return this.Ut }, Jva: function() { var c, d, e, g = !1; 1 == arguments.length ? (e = arguments[0], g = !0, this.BO(e)) : 3 == arguments.length && (c = arguments[0], d = arguments[1], e = arguments[2], this.BO(e), this.UG(d, c, e)); N.SO.Sba(e, g) }, kPa: function() { var c, d, e, g, h, k = !1; 3 == arguments.length ? (e = arguments[0], h = arguments[1], g = arguments[2], k = !0, this.BO(e)) : 5 == arguments.length && (c = arguments[0], d = arguments[1], e = arguments[2], h = arguments[3], g = arguments[4], this.BO(e), this.UG(d, c, e)); N.SO.Mva(e, g, h, k) }, UG: function(c, d, e) { this.zH(e).H1.push(c); N.jia.UG(c, d) }, qXa: function() { return this.oqa }, BO: function(c) { this.sN[c] || (this.sN[c] = new wd) }, zH: function(c) { return this.sN[c] }, clear: function() { this.Ms = {}; this.Ns = {}; this.Ut = {}; N.jia.clear(); N.SO.clear() } }; N.W3 = 0; N.$Ja = 1; N.VJa = 2; N.oja = 3; N.aKa = 4; N.pja = 5; N.bKa = 6; N.YJa = 7; N.nja = 8; N.cKa = 9; N.WJa = 10; N.ZJa = 11; N.UJa = 12; N.XJa = 13; N.us = 0; N.zy = 1; N.tD = 2; N.QJ = 3; N.Tm = N.N.extend({ x: 0, y: 0, Sm: 0, skewX: 0, skewY: 0, scaleX: 1, scaleY: 1, py: 0, Zn: !1, r: 255, g: 255, b: 255, a: 255, ctor: function() { this.skewY = this.skewX = this.Sm = this.y = this.x = 0; this.scaleY = this.scaleX = 1; this.py = 0; this.Zn = !1; this.a = this.b = this.g = this.r = 255 }, copy: function(c) { this.x = c.x; this.y = c.y; this.Sm = c.Sm; this.scaleX = c.scaleX; this.scaleY = c.scaleY; this.skewX = c.skewX; this.skewY = c.skewY; this.py = c.py; this.Zn = c.Zn; this.r = c.r; this.g = c.g; this.b = c.b; this.a = c.a }, F: function(c) { this.r = c.r; this.g = c.g; this.b = c.b; this.a = c.a }, $a: function() { return f.color(this.r, this.g, this.b, this.a) }, n3: function(c, d, e) { this.x = d.x - c.x; this.y = d.y - c.y; this.scaleX = d.scaleX - c.scaleX; this.scaleY = d.scaleY - c.scaleY; this.skewX = d.skewX - c.skewX; this.skewY = d.skewY - c.skewY; this.Zn || c.Zn || d.Zn ? (this.a = d.a - c.a, this.r = d.r - c.r, this.g = d.g - c.g, this.b = d.b - c.b, this.Zn = !0) : (this.a = this.r = this.g = this.b = 0, this.Zn = !1); e && (this.skewX > f.PI && (this.skewX -= N.yo), this.skewX < -f.PI && (this.skewX += N.yo), this.skewY > f.PI && (this.skewY -= N.yo), this.skewY < -f.PI && (this.skewY += N.yo)); d.py && (this.skewX += d.py * N.yo, this.skewY -= d.py * N.yo) } }); N.Ay = N.N.extend({ $k: N.QJ, displayName: "", ctor: function() { this.$k = N.QJ }, iQa: function(c) { var d = c.lastIndexOf("."); - 1 != d && (c = c.substring(0, d)); return c }, copy: function(c) { this.displayName = c.displayName; this.$k = c.$k } }); N.vq = N.Ay.extend({ skinData: null, ctor: function() { this.skinData = new N.Tm; this.$k = N.us }, copy: function(c) { N.Ay.prototype.copy.call(this, c); this.skinData = c.skinData } }); N.hD = N.Ay.extend({ displayName: "", ctor: function() { this.displayName = ""; this.$k = N.zy } }); N.mK = N.Ay.extend({ ctor: function() { this.$k = N.tD } }); N.Z3 = N.Tm.extend({ VO: null, name: "", yI: "", Iwa: null, ctor: function() { this.VO = []; this.yI = this.name = ""; this.Iwa = null }, j: function() {}, Uba: function(c) { this.VO.push(c) }, zm: function(c) { return this.VO[c] } }); N.UR = N.N.extend({ aH: null, name: "", wB: 0.1, ctor: function() { this.aH = {}; this.name = ""; this.wB = 0.1 }, j: function() { return !0 }, Oba: function(c) { this.aH[c.name] = c }, wSa: function() { return this.aH }, xx: function(c) { return this.aH[c] } }); N.hv = N.Tm.extend({ duration: 0, tweenEasing: 0, oH: 0, zB: null, mj: -1, oC: "", event: "", IR: "", JR: "", blendFunc: 0, oj: 0, uu: !0, ctor: function() { N.Tm.prototype.ctor.call(this); this.duration = 1; this.tweenEasing = N.eb.rj; this.oH = 0; this.zB = []; this.mj = 0; this.JR = this.IR = this.event = this.oC = ""; this.blendFunc = new f.Um(f.Mc, f.Lc); this.oj = 0; this.uu = !0 }, copy: function(c) { N.Tm.prototype.copy.call(this, c); this.duration = c.duration; this.tweenEasing = c.tweenEasing; this.mj = c.mj; this.oC = c.oC; this.event = c.event; this.IR = c.IR; this.JR = c.JR; this.blendFunc = c.blendFunc; this.uu = c.uu; this.oH = c.oH; this.zB = []; if (0 != this.oH) for (var d = 0; d < this.oH; d++) this.zB[d] = c.zB[d] } }); N.h6 = N.N.extend({ vm: 0, scale: 1, duration: 0, qh: null, name: "", ctor: function() { this.vm = 0; this.scale = 1; this.duration = 0; this.qh = []; this.name = "" }, j: function() { this.qh = [] }, xO: function(c) { this.qh.push(c) }, Cda: function(c) { return this.qh[c] } }); N.i6 = N.N.extend({ l1: null, duration: 0, scale: 1, nu: 0, XO: N.eb.rj, loop: !0, tweenEasing: 2, name: "", ctor: function() { this.name = ""; this.duration = 0; this.scale = 1; this.XO = this.nu = 0; this.loop = !0; this.tweenEasing = N.eb.rj; this.l1 = {} }, Wba: function(c) { this.l1[c.name] = c }, e0: function(c) { return this.l1[c] } }); N.TR = N.N.extend({ qQ: null, iI: null, name: "", ctor: function() { this.qQ = {}; this.iI = [] }, Vba: function(c) { this.qQ[c.name] = c; this.iI.push(c.name) }, Fda: function(c) { return this.qQ[c] }, Gda: function() { return Object.keys(this.qQ).length } }); function xd(c, d) { this.x = c || 0; this.y = d || 0 } N.Q4 = N.N.extend({ Vu: null, ctor: function() { this.Vu = [] }, j: function() { this.Vu = []; return !0 }, FPa: function(c) { c = xd(c.x, c.y); this.Vu.push(c) } }); N.A7 = N.N.extend({ height: 0, width: 0, GQ: 0, HQ: 0, name: "", jx: null, ctor: function() { this.width = this.height = 0; this.HQ = this.GQ = 0.5; this.name = ""; this.jx = [] }, j: function() { this.jx = [] }, Rba: function(c) { this.jx.push(c) }, iP: function(c) { return this.jx[c] } }); N.RJ = N.N.extend({ at: null, Jj: null, iF: null, ctor: function() { this.iF = this.Jj = this.at = null }, j: function() { return !0 }, NI: function(c) { this.at = c }, vTa: function() { return this.at }, HGa: function(c) { this.Jj = c }, XSa: function() { return this.Jj }, FC: function(c) { this.iF = c }, zm: function() { return this.iF }, wh: function() { vd(this.at); this.at = null; vd(this.iF); this.iF = null; vd(this.Jj); this.Jj = null } }); N.RJ.create = function() { var c = new N.RJ; return c && c.j() ? c : null }; N.Xg = N.Xg || N.N.extend({}); N.Xg.tZ = function(c, d, e) { switch (e.$k) { case N.us: this.Wva(c, d, e); break; case N.tD: this.Tva(c, d, e); break; case N.zy: this.Iva(c, d, e) } }; N.Xg.jxa = function(c, d) { switch (d.zm().$k) { case N.us: this.Bca(c, d); break; case N.tD: this.Aca(c, d); break; case N.zy: this.yca(c, d) } }; N.Xg.psa = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }; N.Xg.ZIa = function(c, d, e) { var g = c.PB(); if (g) { switch (c.b0()) { case N.us: e && g.Dia(); break; case N.tD: this.cJa(c, g, d); break; case N.zy: this.XIa(g, d); break; default: d = c.KUa(), g.rGa(d) } if ((N.uD || N.dv) && e && (g = c.Nd.dn, e = g.Jj)) { d = g.at; var h = d.se(), g = this.psa; g.a = h.a; g.b = h.b; g.G = h.G; g.P = h.P; g.pa = h.pa; g.qa = h.qa; d = d.Bp(); d = f.lv(d, g); g.pa = d.x; g.qa = d.y; c = f.Vg(g, c.Qc.se()); e.bi(c) } } }; N.Xg.Wva = function(c, d, e) { var g = new N.vq; g.copy(e); d.FC(g); this.Bca(c, d) }; N.Xg.Bca = function(c, d) { var e = null, g = d.zm(), e = g.displayName, h = e.lastIndexOf("."); - 1 != h && (e = e.substring(0, h)); e = "" == e ? N.Ao.create() : N.Ao.Cca(e + ".png"); d.NI(e); e.m2(c); this.F0(c, d, g.displayName, e); (h = c.Qc) && (h.wx().wB >= N.ss ? e.ms(g.skinData) : e.ms(c.xx())) }; N.Xg.F0 = function(c, d, e, g) { var h = e.lastIndexOf("."); - 1 != h && (e = e.substring(0, h)); (e = N.Dr.wBa(e)) && g.S(e.GQ, e.HQ); (N.uD || N.dv) && e && 0 < e.jx.length && (c = N.JJ.create(c), c.Kva(e.jx), d.HGa(c)) }; N.Xg.Iva = function(c, d, e) { var g = new N.hD; g.copy(e); d.FC(g); this.yca(c, d) }; N.Xg.yca = function(c, d) { var e = N.tk.create(d.zm().displayName, c); d.NI(e) }; N.Xg.XIa = function(c, d) { c && (c.kd(), c.update(d)) }; N.Xg.Tva = function(c, d, e) { var g = new N.mK; g.copy(e); d.FC(g); this.Aca(c, d) }; N.Xg.Aca = function(c, d) { var e = f.A.create(d.zm().displayName); e.Yp(); e.De(); c.Qc && e.aq(c.Qc); d.NI(e) }; N.Xg.cJa = function(c, d, e) { var g = new N.Tm; N.Hj.mfa(c.du, g); d.o(g.x, g.y); d.jb(g.scaleX); d.tb(g.scaleY); d.update(e) }; N.GS = N.N.extend({ fg: null, dn: null, Te: null, Uo: -1, fM: !1, ld: null, Na: !0, IL: null, ctor: function() { this.fg = []; this.Te = this.dn = null; this.Uo = -1; this.fM = !1; this.ld = null; this.Na = !0; this.IL = N.QJ }, j: function(c) { this.ld = c; this.uea(c.xx()); return !0 }, tZ: function(c, d) { var e = null; 0 <= d && d < this.fg.length ? e = this.fg[d] : (e = N.RJ.create(), this.fg.push(e)); var g = null; if (c instanceof N.Ao) { c.m2(this.ld); g = new N.vq; N.Xg.F0(this.ld, e, c.Lv, c); var h = e.zm(); if (h instanceof N.vq) c.ms(h.skinData), g.skinData = h.skinData; else for (h = this.fg.length - 2; 0 <= h; h--) { var k = this.fg[h].zm(); if (k instanceof N.vq) { c.ms(k.skinData); g.skinData = k.skinData; break } } } else c instanceof f.A ? (g = new N.mK, c.Yp(), c.De(), (h = this.ld.Qc) && c.aq(h)) : c instanceof N.tk ? (h = c, g = new N.hD, g.displayName = h.getName(), h.Ku(this.ld)) : g = new N.Ay; e.NI(c); e.FC(g); d == this.Uo && (this.Uo = -1, this.Fr(d, !1)) }, rNa: function(c, d) { var e = null; if (d instanceof N.Ao) { d.m2(this.ld); e = new N.vq; e.displayName = d.Lv; N.Xg.F0(this.ld, c, d.Lv, d); var g = c.zm(); if (g instanceof N.vq) d.ms(g.skinData); else { for (var g = !1, h = this.fg.length - 2; 0 <= h; h--) { var k = this.fg[h].zm(); if (k) { g = !0; d.ms(k.skinData); e.skinData = k.skinData; break } } g || d.ms(new N.Tm); d.ms(new N.Tm) } } else d instanceof f.A ? (e = new N.mK, e.displayName = d.jN) : d instanceof N.tk ? (e = new N.hD, e.displayName = d.getName(), d.Ku(this.ld)) : e = new N.Ay; c.NI(d); c.FC(e) }, lga: function(c) { this.fg.splice(c, 1); c == this.Uo && this.fR(null) }, oTa: function() { return this.fg }, Fr: function(c, d) { if (c >= this.fg.length) f.log("the index value is out of range"); else if (this.fM = d, 0 > c) this.Uo = c, this.Te && (this.Te.Yp(!0), this.fR(null), this.Te = null); else if (this.Uo != c) { this.Uo = c; var e = this.fg[this.Uo]; e && this.fR(e) } }, oca: function(c, d) { for (var e = 0; e < this.fg.length; e++) if (this.fg[e].zm().displayName == c) { this.Fr(e, d); break } }, fR: function(c) { var d = this.dn; (N.uD || N.dv) && d && d.Jj && d.Jj.setActive(!1); d = this.dn = c; (N.uD || N.dv) && d && d.Jj && d.Jj.setActive(!0); c = null == d ? null : d.at; this.Te && (this.Te instanceof N.tk && this.ld.s2(null), this.Te.Yp(!0), this.Te = null); (this.Te = c) ? (c instanceof N.tk ? this.ld.s2(c) : c instanceof f.A && c.tga(), c.wb && (c.F(this.ld.ou()), c.J(this.ld.kb)), this.IL = this.dn.zm().$k) : this.IL = N.QJ }, PB: function() { return this.Te }, b0: function() { return this.IL }, fTa: function() { return this.Uo }, eTa: function() { return this.dn }, nTa: function(c) { return this.fg[c] }, uea: function(c) { this.fg = []; if (c) { c = c.VO; for (var d = 0; d < c.length; d++) { var e = c[d], g = N.RJ.create(); g.FC(e); N.Xg.jxa(this.ld, g); this.fg.push(g) } } }, cxa: function(c, d) { var e = r(0, 0); void 0 === d ? (e.x = c.x, e.y = c.y) : (e.x = c, e.y = d); if (!this.Na || 0 > this.Uo) return !1; var g = !1; switch (this.dn.zm().$k) { case N.us: var g = r(0, 0), h = this.dn.at, h = h.Za(0), g = N.Pna(h, e, g) } return g }, za: function(c) { this.Te && (this.Na = c, this.Te.za(c)) }, V0: function() { return this.Na }, e: function() { return this.Te ? this.Te.e() : t(0, 0) }, Ee: function() { return this.Te ? this.Te.Ee() : x(0, 0, 0, 0) }, bk: function() { return this.Te ? this.Te.bk() : r(0, 0) }, Bp: function() { return this.Te ? this.Te.Bp() : r(0, 0) }, XTa: function() { return this.fM }, wh: function() { this.fg = []; this.Te && (this.Te.Yp(!0), this.Te = null) } }); N.GS.create = function(c) { var d = new N.GS; return d && d.j(c) ? d : null }; N.Ao = N.q.extend({ wY: null, ij: null, xY: null, Lv: "", Qc: null, ta: "Skin", ctor: function() { f.q.prototype.ctor.call(this); this.ij = this.wY = null; this.Lv = ""; this.xY = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }; this.Qc = null }, hl: function(c) { var d = f.q.prototype.hl.call(this, c); this.Lv = c; return d }, Ge: function(c) { var d = f.q.prototype.Ge.call(this, c); this.Lv = c; return d }, ms: function(c) { this.wY = c; this.jb(c.scaleX); this.tb(c.scaleY); this.M2(f.yC(c.skewX)); this.N2(f.yC(-c.skewY)); this.o(c.x, c.y); c = this.se(); var d = this.xY; d.a = c.a; d.b = c.b; d.G = c.G; d.P = c.P; d.pa = c.pa; d.qa = c.qa; this.Dia() }, mBa: function() { return this.wY }, m2: function(c) { this.ij = c }, nda: function() { return this.ij }, Dia: function() { var c = this.Pf = f.Vg(this.xY, this.ij.du), d = this.Qc; d && d.LB() && (this.Pf = f.Vg(c, d.se())); f.K === f.fb && (c = this.Pf, c.b *= -1, c.G *= -1, c.b = [c.G, c.G = c.b][0]) }, Ee: function() { var c = x(0, 0, this.m.width, this.m.height), d = this.se(); f.K === f.fb && (d.b *= -1, d.G *= -1, d.b = [d.G, d.G = d.b][0]); return f.Ki(c, d) }, Sza: function() { return this.Lv }, il: function() { return f.Vg(this.Pf, this.ij.Qc.il()) }, t_a: function() { var c = this.Pf, d = this.Qb, d = f.lv(d, c); c.pa = d.x; c.qa = d.y; return f.Vg(c, this.ij.Qc.il()) } }); N.Ao.prototype.se = f.v.prototype.VM; q = N.Ao.prototype; f.d(q, "skinData", q.mBa, q.ms); f.d(q, "displayName", q.Sza); q = null; N.Ao.create = function(c, d) { var e = arguments.length, g = new N.Ao; if (0 === e) { if (g.j()) return g } else if (g && g.Ge(c, d)) return g; return null }; N.Ao.Cca = function(c) { var d = new N.Ao; return d && d.hl(c) ? d : null }; N.wJ = -4; N.dD = -3; N.eD = -2; N.J3 = -1; N.QR = 0; N.Sia = 1; N.cD = 2; N.wk = N.N.extend({ lp: 1, $l: !0, qt: !0, am: !1, Hk: 0, yn: 0, Ok: 0, gO: 0, CO: null, dh: 0, Pj: 0, jh: 0, Bz: null, Msa: !1, ctor: function() { this.lp = 1; this.qt = this.$l = !0; this.am = !1; this.yn = this.Pj = this.Hk = this.dh = 0; this.Ok = N.Sia; this.gO = N.eb.rj; this.CO = 1 / 60; this.Pj = this.Bz = 0; this.Msa = !1 }, pause: function() { this.qt = !0; this.am = !1 }, lk: function() { this.qt = !1; this.am = !0 }, stop: function() { this.$l = !0; this.am = !1 }, play: function(c, d) { this.qt = this.$l = !1; this.am = !0; this.dh = 0; this.jh = c; this.gO = d }, update: function(c) { if (this.$l || this.qt || 0 >= this.yn) return !1; var d = this.jh, e = this.dh; 0 >= d ? (this.Hk = 1, e = 0) : (e += c / this.CO * this.lp, this.Hk = e / d, e = N.EB(e, d)); this.dh = e; this.B3(); return !0 }, B3: function() {}, jea: function(c) { var d = this.Ok; d == N.dD ? d = N.cD : d == N.eD && (d = N.QR); this.Ok = d; this.Bz = c; this.jh = this.Pj }, Lza: function() { return this.Bz = (this.yn - 1) * this.Hk }, aDa: function() { return this.qt }, UCa: function() { return this.$l }, Mza: function() { return this.Hk }, aBa: function() { return this.yn }, Eda: function() { return this.Ok }, GBa: function() { return this.gO }, bSa: function() { return this.CO }, t2a: function(c) { this.CO = c }, uVa: function() { return this.lp }, qR: function(c) { this.lp = c }, Lea: function() { return this.am } }); q = N.wk.prototype; f.d(q, "currentFrameIndex", q.Lza); f.d(q, "paused", q.aDa); f.d(q, "completed", q.UCa); f.d(q, "currentPercent", q.Mza); f.d(q, "rawDuration", q.aBa); f.d(q, "loop", q.Eda); f.d(q, "tweenEasing", q.GBa); f.d(q, "playing", q.Lea); q = null; N.gK = { start: 0, complete: 1, PDa: 2 }; N.O3 = N.N.extend({ E8: null, Rs: null, jm: null, ctor: function(c, d, e) { this.Mh = e; this.Rs = d; this.jm = c }, call: function() { this.Rs && this.Rs.apply(this.jm, this.E8) }, Ega: function(c) { this.E8 = c } }); function yd() { this.armature = null; this.qfa = this.rfa = "" } function zd() { this.ij = null; this.kda = ""; this.currentFrameIndex = this.Cfa = 0 } N.yJ = N.wk.extend({ gu: null, cr: null, Qc: null, gw: "", Jta: 0, rp: 0, fj: null, Sz: null, qA: null, Ot: 1, Lr: !1, gW: null, eX: null, userObject: null, er: null, lw: !1, SM: !1, ap: 0, ctor: function() { N.wk.prototype.ctor.call(this); this.cr = this.gu = null; this.gw = ""; this.Qc = null; this.rp = this.Jta = 0; this.fj = []; this.qA = this.Sz = null; this.Ot = 1; this.Lr = !1; this.gW = []; this.eX = []; this.userObject = null; this.er = []; this.SM = this.lw = !1; this.ap = 0 }, j: function(c) { this.Qc = c; this.fj = []; return !0 }, pause: function() { for (var c = 0; c < this.fj.length; c++) this.fj[c].pause(); N.wk.prototype.pause.call(this) }, lk: function() { for (var c = 0; c < this.fj.length; c++) this.fj[c].lk(); N.wk.prototype.lk.call(this) }, stop: function() { for (var c = 0; c < this.fj.length; c++) this.fj[c].stop(); this.fj = []; N.wk.prototype.stop.call(this) }, Rha: function(c) { if (c != this.Ot) { this.Ot = c; this.lp = this.cr ? this.Ot * this.cr.scale : this.Ot; c = this.Qc.Jh; for (var d in c) { var e = c[d]; e.bu.qR(this.lp); e.Ul && e.Ul.cl().qR(this.lp) } } }, pBa: function() { return this.Ot }, wza: function() { return this.Ot }, vGa: function(c) { return this.Rha(c) }, play: function(c, d, e) { if (null == this.gu) f.log("this.animationData can not be null"); else if (this.cr = this.gu.Fda(c), null == this.cr) f.log("this._movementData can not be null"); else { void 0 === d && (d = -1); void 0 === e && (e = -1); var g = this.cr; this.yn = g.duration; this.gw = c; this.lp = this.Ot * g.scale; d = -1 == d ? g.nu : d; c = g.XO; c = 0 == c ? this.yn : c; var h = g.tweenEasing; e = 0 > e ? g.loop : Boolean(e); this.lw = !1; N.wk.prototype.play.call(this, d, h); 0 == this.yn ? this.Ok = N.wJ : (this.Ok = e ? N.eD : N.dD, this.Pj = c); this.fj = []; var k, m = this.Qc.Jh, n; for (n in m) { var p = m[n]; k = g.e0(p.getName()); var s = p.bu; k && 0 < k.qh.length ? (this.fj.push(s), k.duration = g.duration, s.play(k, d, c, e, h), s.qR(this.lp), p.Ul && p.Ul.cl().qR(this.lp)) : p.FP || (p.Nd.Fr(-1, !1), s.stop()) } this.Qc.update(0) } }, q0a: function(c, d, e) { this.er = []; this.SM = e; this.lw = !0; for (e = this.ap = 0; e < c.length; e++) this.er.push({ name: c[e], nu: d }); this.C3() }, C3: function() { if (this.lw) { if (this.SM) { var c = this.er[this.ap]; this.play(c.name, c.nu, -1, 0); this.ap++; this.ap >= this.er.length && (this.ap = 0) } else this.ap < this.er.length ? (c = this.er[this.ap], this.play(c.name, c.nu, -1, 0), this.ap++) : this.lw = !1; this.lw = !0 } }, xP: function(c) { if (!this.cr || 0 > c || c >= this.cr.duration) f.log("Please ensure you have played a movement, and the frameIndex is in the range."); else { var d = this.Lr; this.am = this.Lr = !0; this.$l = this.qt = !1; N.wk.prototype.jea.call(this, c); this.Hk = this.Bz / (this.cr.duration - 1); this.dh = this.jh * this.Hk; for (var e = 0; e < this.fj.length; e++) this.fj[e].xP(c); this.Qc.update(0); this.Lr = d } }, VBa: function(c) { this.xP(c); this.pause() }, cFa: function(c, d, e, g) { "undefined" == typeof d && (d = -1); "undefined" == typeof g && (g = -1); e = this.gu.iI; - 1 > c || c >= e.length || this.play(e[c], d, g, 0) }, o0a: function(c, d, e, g, h) { f.log("playByIndex is deprecated. Use playWithIndex instead."); this.cFa(c, d, e, g, h) }, p0a: function(c, d, e) { this.er = []; this.SM = e; this.lw = !0; this.ap = 0; e = this.gu.iI; for (var g = 0; g < c.length; g++) this.er.push({ name: e[c[g]], nu: d }); this.C3() }, Gda: function() { return this.gu.Gda() }, update: function(c) { if (N.wk.prototype.update.call(this, c)) for (var d = 0; d < this.fj.length; d++) this.fj[d].update(c); for (c = this.gW; 0 < c.length;) d = c.shift(), this.Lr = !0, this.Owa([d.ij, d.kda, d.Cfa, d.currentFrameIndex]), this.Lr = !1; for (c = this.eX; 0 < c.length;) d = c.shift(), this.Pwa([d.armature, d.rfa, d.qfa]) }, B3: function() { var c = this.Hk; if (1 <= c) { switch (this.Ok) { case N.dD: if (this.Ok = N.cD, this.dh = (c - 1) * this.jh, c = this.dh / this.Pj, 1 > c) { this.jh = this.Pj; this.sQ(this.Qc, N.gK.start, this.gw); break } case N.cD: case N.wJ: c = 1; this.$l = !0; this.am = !1; this.sQ(this.Qc, N.gK.complete, this.gw); this.C3(); break; case N.eD: this.Ok = N.QR; c = N.EB(c, 1); this.dh = 0 == this.jh ? 0 : N.EB(this.dh, this.jh); this.jh = 0 < this.Pj ? this.Pj : 1; this.sQ(this, N.gK.start, this.gw); break; default: this.dh = N.EB(this.dh, this.jh), this.rp = 0, this.sQ(this.Qc, N.gK.PDa, this.gw) } this.Hk = c } }, hTa: function() { return this.$l ? "" : this.gw }, jHa: function(c, d) { this.qA = new N.O3(d, c) }, Pwa: function(c) { this.qA && (this.qA.Ega(c), this.qA.call()) }, j3a: function(c, d) { this.Sz = new N.O3(d, c) }, Owa: function(c) { this.Sz && (this.Sz.Ega(c), this.Sz.call()) }, sQ: function(c, d, e) { if (this.qA) { var g = new yd; g.armature = c; g.rfa = d; g.qfa = e; this.eX.push(g) } }, oza: function(c, d, e, g) { if (this.Sz) { var h = new zd; h.ij = c; h.kda = d; h.Cfa = e; h.currentFrameIndex = g; this.gW.push(h) } }, Bga: function(c) { this.gu = c }, mda: function() { return this.gu }, WHa: function(c) { this.userObject = c }, JBa: function() { return this.userObject }, FXa: function() { return this.Lr }, s3a: function(c) { this.Lr = c } }); q = N.yJ.prototype; f.d(q, "speedScale", q.pBa, q.Rha); f.d(q, "animationScale", q.wza, q.vGa); q = null; N.yJ.create = function(c) { var d = new N.yJ; return d && d.j(c) ? d : null }; N.nU = N.wk.extend({ Id: null, Nf: null, Tc: null, Dq: null, Wi: null, ld: null, Tz: 0, Cv: 0, Ow: 0, rp: 0, Tq: 0, wd: null, zA: !1, ctor: function() { N.wk.prototype.ctor.call(this); this.Wi = this.ld = this.Dq = this.Tc = this.Nf = this.Id = null; this.Tz = N.eb.rj; this.Tq = this.rp = 0; this.wd = null; this.zA = !1 }, j: function(c) { this.Tc = new N.hv; this.Dq = new N.hv; this.ld = c; this.Id = this.ld.Id; this.Id.mj = -1; if (c = c.Qc) this.wd = c.cl(); return !0 }, play: function(c, d, e, g, h) { N.wk.prototype.play.call(this, d, h); this.Ok = g ? N.eD : N.dD; this.Tq = this.rp = this.Cv = this.Ow = 0; h = c != this.Wi; this.Wi = c; this.yn = this.Wi.duration; c = this.Wi.Cda(0); this.Id.mj = c.mj; this.ld.Qc.wx().wB >= N.ss && (N.Hj.XDa(this.Id, this.ld.xx()), this.Id.scaleX += 1, this.Id.scaleY += 1); 0 == this.yn || 1 == this.Wi.qh.length ? (this.Ok = N.wJ, 0 == d ? this.Fu(c, c) : this.Fu(this.Id, c), this.Tz = N.eb.rj) : 1 < this.Wi.qh.length && (this.Pj = e * this.Wi.scale, g && 0 != this.Wi.vm ? this.Fu(this.Id, this.w3(this.Eia(1 - this.Wi.vm), this.Dq)) : h && 0 != d ? this.Fu(this.Id, c) : this.Fu(c, c)); this.w3(0) }, xP: function(c) { N.wk.prototype.jea.call(this, c); this.Tq = this.rp = this.Cv = this.Ow = 0; this.am = !0; this.$l = this.qt = !1; this.Hk = this.Bz / (this.yn - 1); this.dh = this.jh * this.Hk }, VBa: function(c) { this.xP(c); this.pause() }, B3: function() { var c = this.Hk, d = this.Ok; if (1 <= c) switch (d) { case N.wJ: c = 1; this.$l = !0; this.am = !1; break; case N.dD: d = N.cD; c = 0 >= this.Pj ? 1 : (c - 1) * this.jh / this.Pj; 1 <= c ? (c = 1, this.$l = !0, this.am = !1) : (this.jh = this.Pj, this.dh = c * this.jh, this.Tq = this.rp = this.Cv = this.Ow = 0); break; case N.eD: d = N.QR; this.jh = 0 < this.Pj ? this.Pj : 1; 0 != this.Wi.vm ? (this.dh = (1 - this.Wi.vm) * this.jh, c = this.dh / this.jh) : this.dh = c = 0; this.Tq = this.rp = this.Cv = this.Ow = 0; break; case N.cD: c = 1; this.$l = !0; this.am = !1; break; default: this.dh = N.EB(this.dh, this.jh), this.Cv = this.Ow = 0 } 1 > c && d < N.J3 && (c = Math.sin(c * f.PI / 2)); this.Hk = c; this.Ok = d; d > N.J3 && (c = this.Eia(c)); this.Tz != N.eb.zia && this.w3(c) }, Fu: function(c, d, e) { "undefined" == typeof e && (e = !0); 0 > c.mj && 0 <= d.mj ? (this.Tc.copy(d), this.Dq.n3(d, d, e)) : 0 > d.mj && 0 <= c.mj ? (this.Tc.copy(c), this.Dq.n3(d, d, e)) : (this.Tc.copy(c), this.Dq.n3(c, d, e)); c.uu || (this.Id.copy(c), this.Id.uu = !0); this.pwa(c) }, pwa: function(c) { if (c) { var d = this.ld, e = c.mj, g = d.Nd; g.fM || (g.Fr(e, !1), (e = g.PB()) && e.ce(c.blendFunc)); this.Id.Sm = c.Sm; d.jJa(); (d = d.Ul) && "" != c.oC && d.cl().play(c.oC) } }, w3: function(c, d) { d || (d = this.Id); var e = this.Tc, g = this.Dq; e.uu || (c = 0); d.x = e.x + c * g.x; d.y = e.y + c * g.y; d.scaleX = e.scaleX + c * g.scaleX; d.scaleY = e.scaleY + c * g.scaleY; d.skewX = e.skewX + c * g.skewX; d.skewY = e.skewY + c * g.skewY; this.ld.SHa(!0); d && g.Zn && this.MIa(c, d); return d }, MIa: function(c, d) { var e = this.Tc, g = this.Dq; d.a = e.a + c * g.a; d.r = e.r + c * g.r; d.g = e.g + c * g.g; d.b = e.b + c * g.b; this.ld.oo() }, Eia: function(c) { 1 < c && 0 != this.Wi.vm && (c = N.EB(c, 1)); var d = (this.yn - 1) * c, e, g, h = this.Ow, k = this.Cv, m = this.rp; if (d < h || d >= h + k) { var k = this.Wi.qh.length, n = this.Wi.qh; if (d < n[0].oj) return e = g = n[0], this.Fu(e, g), c; if (d >= n[k - 1].oj) { if (this.zA) return e = g = n[k - 1], this.Fu(e, g), c; this.zA = !0 } else this.zA = !1; do if (this.Tq = m, e = n[this.Tq], h = e.oj, m = this.Tq + 1, m >= k && (m = 0), g = n[m], e.event && !this.wd.Lr && this.wd.oza(this.ld, e.event, e.oj, d), d == e.oj || this.zA && this.Tq == k - 1) break; while (d < e.oj || d >= g.oj); k = g.oj - e.oj; this.Tz = e.tweenEasing; this.Fu(e, g, !1); this.Ow = h; this.Cv = k; this.rp = m } c = 0 == k ? 0 : (d - h) / k; d = this.Tz != N.eb.rj ? this.Tz : this.gO; d == N.eb.zia || d == N.eb.rj || this.zA || (c = N.nc.NIa(c, d, this.Tc.zB)); return c }, Xx: function(c) { this.wd = c }, cl: function() { return this.wd }, wh: function() { this.Dq = this.Tc = null } }); N.nU.create = function(c) { var d = new N.nU; return d && d.j(c) ? d : null }; N.nMa = 32; N.N4 = N.N.extend({ X8: 0, v$: 0, ctor: function(c, d) { this.X8 = c || 0; this.v$ = d || 0 }, Iia: function(c) { c.sQa = this.X8; c.group = this.v$ } }); N.Qka = N.N.extend({ shape: null, n_: null, colliderFilter: null, PE: null, ctor: function(c) { this.shape = null; this.n_ = c; this.colliderFilter = new N.N4; N.dv && (this.PE = []) }, iP: function() { return this.n_ }, R2a: function(c) { this.n_ = c }, PVa: function() { return this.shape }, KHa: function(c) { this.shape = c }, zx: function() { return this.colliderFilter }, js: function(c) { this.colliderFilter = c }, ISa: function() { return this.PE } }); N.JJ = N.N.extend({ hi: null, ld: null, ei: null, ah: !1, bM: null, ctor: function() { this.hi = []; this.ei = this.ld = null; this.ah = !1; this.bM = null }, j: function(c) { this.hi = []; c && (this.ld = c); this.bM = new N.N4; return !0 }, Rba: function(c) { var d = new N.Qka(c); this.hi.push(d); if (N.dv) { d = d.PE; c = c.Vu; for (var e = 0; e < c.length; e++) d.push(new xd(0, 0)) } }, Kva: function(c) { for (var d = 0; d < c.length; d++) this.Rba(c[d]) }, l1a: function(c) { for (var d = this.hi, e = 0; e < d.length; e++) if (d[e].iP() == c) { d.splice(e, 1); break } }, kk: function() { this.hi = [] }, js: function(c) { this.bM = c; for (var d = 0; d < this.hi.length; d++) { var e = this.hi[d]; e.js(c); N.uD && e.shape && e.zx().Iia(e.shape) } }, zx: function() { return this.bM }, setActive: function(c) { if (this.ah != c) { this.ah = c; c = this.ei; var d; if (c) if (d = null, this.ah) for (var e = 0; e < this.hi.length; e++) d = this.hi[e], d = d.shape, c.h3.Uva(d); else for (e = 0; e < this.hi.length; e++) d = this.hi[e], d = d.shape, c.h3.u1a(d) } }, vza: function() { return this.ah }, Z_: function() { return this.hi }, bCa: r(0, 0), bi: function(c) { if (this.ah) for (var d = null, e = this.ei, g = this.bCa, h = 0; h < this.hi.length; h++) { var d = this.hi[h], k = d.iP(), m = null; e && (m = d.shape); for (var k = k.Vu, n = d.PE, d = 0; d < k.length; d++) if (g.x = k[d].x, g.y = k[d].y, g = f.lv(g, c), m && (m.zg[2 * d] = g.x, m.zg[2 * d + 1] = g.y), N.dv) { var p = r(0, 0); p.x = g.x; p.y = g.y; n[d] = p } if (m) for (d = 0; d < k.length; d++) n = cp.ga.normalize(cp.ga.m0a(cp.ga.sub(m.zg[(d + 1) % m.zg.length], m.zg[d]))), m.Awa[d].Xr = n, m.Awa[d].P = cp.ga.aRa(n, m.zg[d]) } }, W_: function() { return this.ei }, cR: function(c) { this.ei = c; for (var d = 0; d < this.hi.length; d++) { c = this.hi[d]; for (var e = [], g = c.iP().Vu, d = 0; d < g.length; d++) { var h = g[d]; e.push(h.x); e.push(h.y) } e = new cp.qMa(this.ei, e, cp.U5a); e.o2a = !0; e.data = this.ld; this.ah && this.ei.h3.Uva(e); c.KHa(e); c.zx().Iia(e) } } }); q = N.JJ.prototype; f.d(q, "colliderFilter", q.zx, q.js); f.d(q, "active", q.vza, q.setActive); f.d(q, "body", q.W_, q.cR); q = null; N.JJ.create = function(c) { var d = new N.JJ; return d && d.j(c) ? d : null }; N.tk = N.ja.extend({ wd: null, hu: null, batchNode: null, name: "", lva: null, gN: null, Jh: null, Xt: null, kqa: null, dp: null, version: 0, az: !0, ei: null, VN: null, B: null, ta: "Armature", ctor: function(c, d) { f.ja.prototype.ctor.call(this); this.batchNode = this.hu = this.wd = null; this.name = ""; this.Xt = this.Jh = this.gN = this.lva = null; this.kqa = {}; this.dp = r(0, 0); this.version = 0; this.az = !0; this.B = this.VN = this.ei = null; d && N.tk.prototype.j.call(this, c, d) }, j: function(c, d) { f.ja.prototype.j.call(this); d && (this.gN = d); this.Cf(); this.wd = new N.yJ; this.wd.j(this); this.Jh = {}; this.Xt = []; this.VN = {}; this.B = { src: f.Mc, ha: f.Lc }; this.name = c ? c : ""; var e = N.Dr; if ("" != c) { var g = e.mda(c); if (!g) return f.log("AnimationData not exist! "), !1; this.wd.Bga(g); this.hu = e = e.wx(c); var e = e.aH, h; for (h in e) { var e = this.zca(String(h)), k = g.Fda(g.iI[0]); k && (k = k.e0(e.getName())) && !(0 >= k.qh.length) && (k = k.Cda(0)) && (e.Id.copy(k), e.Fr(k.mj, !1)) } this.update(0); this.bJa() } else this.name = "new_armature", this.hu = new N.UR, this.hu.name = this.name, g = new N.TR, g.name = this.name, e.rZ(this.name, this.hu), e.qZ(this.name, g), this.wd.Bga(g); f.K === f.na && this.WI(f.xg.be(f.uK)); this.Hu(!0); this.Gu(!0); return !0 }, ba: function() { f.ja.prototype.ba.call(this); this.ds() }, Ra: function() { f.ja.prototype.Ra.call(this); this.UC() }, zca: function(c) { var d = this.nda(c); if (d) return d; var d = this.hu.xx(c), e = d.yI, g = null; "" != e ? (this.zca(e), g = N.rs.create(c), this.Nba(g, e)) : (g = N.rs.create(c), this.Nba(g, "")); g.Gga(d); g.Nd.Fr(-1, !1); return g }, Nba: function(c, d) { if (c) if (this.Jh[c.getName()]) f.log("bone already added. It can't be added again"); else { if (d) { var e = this.Jh[d]; e ? e.Pba(c) : this.Xt.push(c) } else this.Xt.push(c); c.WQ(this); this.Jh[c.getName()] = c; this.n(c) } else f.log("Argument must be non-nil") }, i1a: function(c, d) { c ? (c.WQ(null), c.Yp(d), f.Ld(this.Xt, c), delete this.Jh[c.getName()], this.removeChild(c, !0)) : f.log("bone must be added to the bone dictionary!") }, nda: function(c) { return this.Jh[c] }, gQa: function(c, d) { if (c) { var e = c.oP(); e && (f.Ld(e.Ek, c), c.Ku(null)); d && ((e = this.Jh[d]) ? (e.Pba(c), f.Ld(this.Xt, c)) : this.Xt.push(c)) } else f.log("bone must be added to the bone dictionary!") }, xSa: function() { return this.Jh }, bJa: function() { var c = this.SZ(); this.Ga(c); var d = this.dp; d.x = -c.x; d.y = -c.y; 0 != c.width && 0 != c.height && this.S(d.x / c.width, d.y / c.height) }, update: function(c) { this.wd.update(c); for (var d = this.Xt, e = 0; e < d.length; e++) d[e].update(c); this.az = !1 }, se: null, VM: function() { if (this.Wk) { this.az = !0; var c = this.oa.x, d = this.oa.y, e = this.Qb.x, g = -e, h = this.Qb.y, k = -h, m = this.ka, n = this.ra; this.mn && (c += e, d += h); var p = 1, s = 0, u = 1, v = 0; if (0 !== this.bj || 0 !== this.hm) p = Math.cos(-this.Cn), s = Math.sin(-this.Cn), u = Math.cos(-this.Aw), v = Math.sin(-this.Aw); var c = c + (u * this.dp.x * this.ka + -s * this.dp.y * this.ra), d = d + (v * this.dp.x * this.ka + p * this.dp.y * this.ra), z = this.og || this.pg; z || 0 === e && 0 === h || (c += u * g * m + -s * k * n, d += v * g * m + p * k * n); c = { a: u * m, b: v * m, G: -s * n, P: p * n, pa: c, qa: d }; z && (c = f.Vg({ a: 1, b: Math.tan(f.sg(this.pg)), G: Math.tan(f.sg(this.og)), P: 1, pa: 0, qa: 0 }, c), 0 !== e || 0 !== h) && (c = f.xJ(c, g, k)); this.Aq && (c = f.Vg(c, this.Zy), this.Aq = !1); this.Pf = c; this.Wk = !1 } return this.Pf }, cta: function() { this.Pf || (this.Pf = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }); if (this.Wk) { this.az = !0; var c = this.Pf; c.pa = this.oa.x; c.qa = this.oa.y; var d = 1, e = 0; this.bj && (d = Math.cos(-this.Cn), e = Math.sin(-this.Cn)); c.a = c.P = d; c.G = -e; c.b = e; var g = this.ka, h = this.ra, k = this.Qb.x, m = this.Qb.y, n = 1E-6 > g && -1E-6 < g ? 1E-6 : g, p = 1E-6 > h && -1E-6 < h ? 1E-6 : h; c.pa += d * this.dp.x * g + -e * this.dp.y * h; c.qa += e * this.dp.x * g + d * this.dp.y * h; if (this.og || this.pg) { var s = Math.tan(-this.og * Math.PI / 180), u = Math.tan(-this.pg * Math.PI / 180), v = m * s * n, z = k * u * p; c.a = d + -e * u; c.G = d * s + -e; c.b = e + d * u; c.P = e * s + d; c.pa += d * v + -e * z; c.qa += e * v + d * z } if (1 !== g || 1 !== h) c.a *= n, c.b *= n, c.G *= p, c.P *= p; c.pa += d * -k * n + -e * -m * p; c.qa += e * -k * n + d * -m * p; this.mn && (c.pa += k, c.qa += m); this.Aq && (this.Pf = f.Vg(this.Pf, this.Zy), this.Aq = !1); c.pa |= 0; c.qa |= 0; this.Wk = !1 } return this.Pf }, ma: function() {}, ce: function(c) { this.B = c }, ck: function() { return this.B }, SZ: function() { for (var c = 0, d = 0, e = 0, g = 0, h = !0, g = x(0, 0, 0, 0), k = 0; k < this.i.length; k++) if (c = this.i[k], c instanceof N.rs) { var m = c.Nd.Ee(); h ? (c = f.fo(m), d = f.ho(m), e = f.Vp(m), g = f.Wp(m), h = !1) : (c = f.fo(m) < f.fo(g) ? f.fo(m) : f.fo(g), d = f.ho(m) < f.ho(g) ? f.ho(m) : f.ho(g), e = f.Vp(m) > f.Vp(g) ? f.Vp(m) : f.Vp(g), g = f.Wp(m) > f.Wp(g) ? f.Wp(m) : f.Wp(g)); g = x(c, d, e - c, g - d) } return f.Ki(g, this.se()) }, vSa: function(c, d) { for (var e = this.i.length - 1; 0 <= e; e--) { var g = this.i[e]; if (g instanceof N.rs && g.Nd.cxa(c, d)) return g } return null }, xBa: function() { return null }, Ku: function(c) { this.gN = c; for (var d in this.Jh) this.Jh[d].WQ(this) }, js: function(c) { for (var d in this.Jh) this.Jh[d].js(c) }, dRa: function() { f.If.wj(255, 255, 255, 255); f.If.Ju(1); for (var c in this.Jh) for (var d = this.Jh[c].Z_(), e = 0; e < d.length; e++) { var g = d[e].PE; f.If.Sf(g, g.length, !0) } }, oP: function() { return this.gN }, cl: function() { return this.wd }, Xx: function(c) { this.wd = c }, wx: function() { return this.hu }, w2a: function(c) { this.hu = c }, getName: function() { return this.name }, gf: function(c) { this.name = c }, LB: function() { return this.batchNode }, is: function(c) { this.batchNode = c }, HWa: function() { return this.version }, setVersion: function(c) { this.version = c }, hSa: function() { return this.az }, W_: function() { return this.ei }, cR: function(c) { if (this.ei != c) { this.ei = c; this.ei.data = this; var d, e; for (c = 0; c < this.i.length; c++) if (d = this.i[c], d instanceof N.rs) { d = d.Nd.fg; for (var g = 0; g < d.length; g++) e = d[g], (e = e.Jj) && e.cR(this.ei) } } }, QVa: function() { return this.ei ? this.ei.U4a : [] } }); N.tk.prototype.se = f.K == f.na ? N.tk.prototype.VM : N.tk.prototype.cta; q = N.tk.prototype; f.d(q, "parentBone", q.oP, q.Ku); f.d(q, "body", q.W_, q.cR); f.d(q, "colliderFilter", null, q.js); q = null; N.tk.create = function(c, d) { var e = new N.tk; return e && e.j(c, d) ? e : null }; N.rs = N.ja.extend({ Eq: null, Qc: null, Ul: null, Nd: null, FP: !1, bu: null, Id: null, name: "", Ek: null, parentBone: null, tm: !1, du: null, B: 0, IO: !1, tO: null, QU: null, f9: 0, ta: "Bone", ctor: function() { f.ja.prototype.ctor.call(this); this.Nd = this.Ul = this.Qc = this.Eq = null; this.FP = !1; this.Id = this.bu = null; this.name = ""; this.Ek = []; this.parentBone = null; this.tm = !0; this.du = { a: 1, b: 0, G: 0, P: 1, pa: 0, qa: 0 }; this.B = new f.Um(f.Mc, f.Lc); this.IO = !1 }, wh: function() { vd(this.Id); for (var c = 0; c < this.Ek.length; c++) vd(this.Ek[c]); this.Ek = []; vd(this.bu); vd(this.Nd); vd(this.Eq); vd(this.Ul) }, j: function(c) { f.ja.prototype.j.call(this); c && (this.name = c); this.Id = new N.hv; this.bu = new N.nU; this.bu.j(this); this.Nd = new N.GS; this.Nd.j(this); this.tO = new N.Tm; this.Eq = new N.Tm; return !0 }, Gga: function(c) { c ? (this.Eq = c, this.name = this.Eq.name, this.tl(this.Eq.Sm), this.Nd.uea(c)) : f.log("boneData must not be null") }, xx: function() { return this.Eq }, WQ: function(c) { (this.Qc = c) ? (this.bu.Xx(this.Qc.cl()), this.f9 = this.Qc.wx().wB, this.QU = this.Qc.oP()) : this.QU = null }, xza: function() { return this.Qc }, update: function(c) { var d = this.parentBone, e = this.Qc, g = this.Id, h = this.du, k = this.tO, m = this.QU; d && (this.tm = this.tm || d.tm); m && !this.tm && (this.tm = m.tm); this.tm && (this.f9 >= N.ss && (d = this.Eq, g.x += d.x, g.y += d.y, g.skewX += d.skewX, g.skewY += d.skewY, g.scaleX += d.scaleX, g.scaleY += d.scaleY, g.scaleX -= 1, g.scaleY -= 1), k.x = g.x + this.oa.x, k.y = g.y + this.oa.y, k.scaleX = g.scaleX * this.ka, k.scaleY = g.scaleY * this.ra, k.skewX = g.skewX + this.og + this.bj, k.skewY = g.skewY + this.pg - this.hm, this.parentBone ? this.cca(this.parentBone) : m && this.cca(m), N.Hj.n1(k, h), m && (this.du = f.Vg(h, e.se()))); N.Xg.ZIa(this, c, this.tm || e.az); e = this.Ek; for (g = 0; g < e.length; g++) e[g].update(c); this.tm = !1 }, cca: function(c) { var d = this.tO, e = c.du; c = c.tO; var g = d.x, h = d.y; d.x = g * e.a + h * e.G + c.x; d.y = g * e.b + h * e.P + c.y; d.scaleX *= c.scaleX; d.scaleY *= c.scaleY; d.skewX += c.skewX; d.skewY += c.skewY }, I: function(c) { if (this.Na) { var d = this.Nd.PB(); d && d.I(c) } }, Wb: function(c) { this.rd = f.color(255, 255, 255); f.ja.prototype.Wb.call(this, c); this.oo() }, hc: function(c) { this.Lg = 255; f.ja.prototype.hc.call(this, c); this.oo() }, F: function(c) { f.ja.prototype.F.call(this, c); this.oo() }, J: function(c) { f.ja.prototype.J.call(this, c); this.oo() }, oo: function() { var c = this.Nd.PB(); if (c && c.wb) { var d = this.Ab, e = this.Id, g = this.kb * e.a / 255, d = f.color(d.r * e.r / 255, d.g * e.g / 255, d.b * e.b / 255); c.J(g); c.F(d) } }, jJa: function() { this.Qc.wx().wB >= N.ss ? this.tl(this.Id.Sm + this.Eq.Sm) : this.tl(this.Id.Sm) }, Pba: function(c) { c ? c.parentBone ? f.log("child already added. It can't be added again") : 0 > this.Ek.indexOf(c) && (this.Ek.push(c), c.Ku(this)) : f.log("Argument must be non-nil") }, kga: function(c, d) { for (var e = 0; e < this.Ek.length; e++) if (this.Ek[e] == c) { if (d) for (var g = c.Ek, h = 0; h < g.length; h++) c.kga(g[h], d); c.Ku(null); c.Nd.fR(null); f.Ld(this.Ek, c) } }, Yp: function(c) { this.parentBone && this.parentBone.kga(this, c) }, Ku: function(c) { this.parentBone = c }, oP: function() { return this.parentBone }, s2: function(c) { this.Ul != c && (null == c && this.Ul && this.Ul.Ku(null), this.Ul = c) }, Fza: function() { return this.Ul }, Gza: function() { return this.Ek }, EBa: function() { return this.bu }, tl: function(c) { this.fPa != c && f.v.prototype.tl.call(this, c) }, SHa: function(c) { this.tm = c }, bYa: function() { return this.tm }, s_a: function() { return this.du }, il: function() { return f.Vg(this.du, this.Qc.il()) }, PB: function() { return this.Nd.PB() }, b0: function() { return this.Nd.b0() }, tZ: function(c, d) { return this.Nd.tZ(c, d || 0) }, lga: function(c) { this.Nd.lga(c) }, Vva: function(c, d) { return this.Nd.Vva(c, d || 0) }, hQa: function(c, d) { f.log("changeDisplayByIndex is deprecated. Use changeDisplayWithIndex instead."); this.Fr(c, d) }, Fr: function(c, d) { this.Nd.Fr(c, d) }, oca: function(c, d) { this.Nd.oca(c, d) }, Z_: function() { var c = this.Nd.dn; return c && (c = c.Jj) ? c.Z_() : [] }, js: function(c) { for (var d = this.Nd.fg, e = 0; e < d.length; e++) { var g = d[e].Jj; g && g.js(c) } }, zx: function() { var c = this.Nd.dn; return c && (c = c.Jj) ? c.zx() : null }, $2a: function(c) { this.Nd = c }, wTa: function() { return this.Nd }, t3a: function(c) { this.FP = c }, fUa: function() { return this.FP }, FBa: function() { return this.Id }, gf: function(c) { this.name = c }, getName: function() { return this.name }, ce: function(c) { if (this.B.src != c.src || this.B.ha != c.ha) this.B = c, this.IO = !0 }, ck: function() { return this.B }, D2a: function(c) { this.IO = c }, vXa: function() { return this.IO } }); q = N.rs.prototype; f.d(q, "boneData", q.xx, q.Gga); f.d(q, "armature", q.xza, q.WQ); f.d(q, "childArmature", q.Fza, q.s2); f.d(q, "childrenBone", q.Gza); f.d(q, "tween", q.EBa); f.d(q, "tweenData", q.FBa); f.d(q, "colliderFilter", q.zx, q.js); q = null; N.rs.create = function(c) { var d = new N.rs; return d && d.j(c) ? d : null }; N.s5 = 0; N.u5 = 1; N.t5 = 2; N.v5 = 3; N.r5 = 4; N.Hla = 5; N.jc = { LKa: -1, iv: 0, Zna: 1, aoa: 2, $na: 3, kna: 4, mna: 5, lna: 6, Rka: 7, Tka: 8, Ska: 9, nna: 10, pna: 11, ona: 12, qna: 13, sna: 14, rna: 15, Cla: 16, Ela: 17, Dla: 18, Nka: 19, Pka: 20, Oka: 21, ula: 22, wla: 23, vla: 24, yja: 25, Aja: 26, zja: 27, Dja: 28, Fja: 29, Eja: 30 }; N.qo = N.N.extend({ Hr: 0, xm: 0, Ap: 0, RRa: null, time: 0, ctor: function() { this.time = this.Ap = this.xm = this.Hr = 0 }, Ir: function() { return null }, wF: function(c) { if (null === c) return console.error("Action cannot be null!"), null; var d; switch (this.xm) { case N.jc.iv: d = c; break; case N.jc.Zna: d = c.sa(f.Nya()); break; case N.jc.aoa: d = c.sa(f.Pya()); break; case N.jc.$na: d = c.sa(f.Oya()); break; case N.jc.kna: d = c.sa(f.Eya()); break; case N.jc.mna: d = c.sa(f.Gya()); break; case N.jc.lna: d = c.sa(f.Fya()); break; case N.jc.Rka: d = c.sa(f.vya()); break; case N.jc.Tka: d = c.sa(f.xya()); break; case N.jc.Ska: d = c.sa(f.wya()); break; case N.jc.nna: d = c.sa(f.Hya()); break; case N.jc.pna: d = c.sa(f.Jya()); break; case N.jc.ona: d = c.sa(f.Iya()); break; case N.jc.qna: d = c.sa(f.Kya()); break; case N.jc.sna: d = c.sa(f.Mya()); break; case N.jc.rna: d = c.sa(f.Lya()); break; case N.jc.Cla: d = c.sa(f.yya()); break; case N.jc.Ela: d = c.sa(f.Aya()); break; case N.jc.Dla: d = c.sa(f.zya()); break; case N.jc.Nka: d = c.sa(f.sya()); break; case N.jc.Pka: d = c.sa(f.uya()); break; case N.jc.Oka: d = c.sa(f.tya()); break; case N.jc.ula: d = c.sa(f.Xca()); break; case N.jc.wla: d = c.sa(f.Zca()); break; case N.jc.vla: d = c.sa(f.Yca()); break; case N.jc.yja: d = c.sa(f.lya()); break; case N.jc.Aja: d = c.sa(f.nya()); break; case N.jc.zja: d = c.sa(f.mya()); break; case N.jc.Dja: d = c.sa(f.pya()); break; case N.jc.Fja: d = c.sa(f.rya()); break; case N.jc.Eja: d = c.sa(f.qya()) } return d }, OI: function(c) { this.Upa = []; for (var d = 0; d < c.length; d++) this.Upa.push(c[d]) }, Iu: function(c) { this.QL = c } }); N.bja = N.qo.extend({ oa: null, ctor: function() { N.qo.prototype.ctor.call(this); this.oa = r(0, 0); this.Hr = N.s5 }, o: function(c, d) { void 0 === d ? (this.oa.x = c.x, this.oa.y = c.y) : (this.oa.x = c, this.oa.y = d) }, Od: function() { return this.oa }, Ir: function(c) { c = f.Dc.create(c, this.oa); c.xm = this.xm || N.jc.iv; return this.wF(c) } }); N.fja = N.qo.extend({ ka: 1, ra: 1, ctor: function() { N.qo.prototype.ctor.call(this); this.ra = this.ka = 1; this.Hr = N.u5 }, jb: function(c) { this.ka = c }, sP: function() { return this.ka }, tb: function(c) { this.ra = c }, BH: function() { return this.ra }, Ir: function(c) { c = f.Db.create(c, this.ka, this.ra); c.xm = this.xm || N.jc.iv; return this.wF(c) } }); N.eja = N.qo.extend({ LA: 0, ctor: function() { N.qo.prototype.ctor.call(this); this.LA = 0; this.Hr = N.t5 }, yh: function(c) { this.LA = c }, Cx: function() { return this.LA }, Ir: function(c) { c = f.pv.create(c, this.LA); c.xm = this.xm || N.jc.iv; return this.wF(c) } }); N.Yia = N.qo.extend({ Ib: 255, ctor: function() { N.qo.prototype.ctor.call(this); this.Ib = 255; this.Hr = N.r5 }, J: function(c) { this.Ib = c }, vb: function() { return this.Ib }, Ir: function(c) { c = f.Xc.create(c, this.Ib); c.xm = this.xm || N.jc.iv; return this.wF(c) } }); N.gja = N.qo.extend({ Ea: null, ctor: function() { N.qo.prototype.ctor.call(this); this.Ea = f.color(255, 255, 255, 255); this.Hr = N.v5 }, F: function(c) { var d = this.Ea; d.r = c.r; d.g = c.g; d.b = c.b }, $a: function() { var c = this.Ea; return f.color(c.r, c.g, c.b, c.a) }, Ir: function(c) { c = f.Vy.create(c, this.Ea.r, this.Ea.g, this.Ea.b); c.xm = this.xm || N.jc.iv; return this.wF(c) } }); N.actionManager = { xq: {}, Ip: function(c, d, e) { c = c.substr(c.lastIndexOf("/") + 1, c.length); d = d.actionlist; for (var g = [], h = 0; h < d.length; h++) { var k = new N.dja; k.Ip(d[h], e); g.push(k) } this.xq[c] = g }, U_: function(c, d) { var e = this.xq[c]; if (!e) return null; for (var g = 0; g < e.length; g++) { var h = e[g]; if (d == h.getName()) return h } return null }, aFa: function(c, d, e) { (c = this.U_(c, d)) && c.play(e) }, FFa: function() { this.xq = {} }, clear: function() { this.xq = {} } }; N.cja = N.N.extend({ Xqa: 0, Zqa: 0, Xk: 0, zq: 0, vqa: null, Yy: null, Qe: null, Ri: null, Pv: 0, ctor: function() { this.Zqa = this.Xqa = 0; this.Xk = 0.1; this.zq = 0; this.Qe = this.Yy = this.vqa = null; this.Ri = []; this.Pv = N.Hla; for (var c = 0; c < this.Pv; c++) this.Ri.push([]) }, Ip: function(c, d) { this.Vx(c.ActionTag); for (var e = c.actionframelist, g = 0; g < e.length; g++) { for (var h = e[g], k = h.tweenType, m = h.tweenParameter, n = [], p = 0; p < m; p++) n.push(h.tweenParameter[p]); if (void 0 !== h.positionx) { var p = h.positionx, s = h.positiony, m = new N.bja; m.Iu(k); m.OI(n); m.o(p, s); p = this.Ri[N.s5]; p.push(m) } void 0 !== h.scalex && (p = h.scalex, s = h.scaley, m = new N.fja, m.Iu(k), m.OI(n), m.jb(p), m.tb(s), p = this.Ri[N.u5], p.push(m)); void 0 !== h.rotation && (p = h.rotation, m = new N.eja, m.Iu(k), m.OI(n), m.yh(p), p = this.Ri[N.t5], p.push(m)); void 0 !== h.opacity && (p = h.opacity, m = new N.Yia, m.Iu(k), m.OI(n), m.J(p), p = this.Ri[N.r5], p.push(m)); void 0 !== h.colorr && (p = h.colorr, s = h.colorg, h = h.colorb, m = new N.gja, m.Iu(k), m.OI(n), m.F(f.color(p, s, h)), p = this.Ri[N.v5], p.push(m)) } this.fCa(d) }, fCa: function(c) { c instanceof y && (c = Dc(c, this.zq)) && this.ul(c) }, eJ: function(c) { this.Xk = c; this.CFa() }, HBa: function() { return this.Xk }, Vx: function(c) { this.zq = c }, lda: function() { return this.zq }, ul: function(c) { this.rA = c }, JAa: function() { return this.rA }, V_: function() { return this.rA instanceof f.v || this.rA instanceof y ? this.rA : null }, iXa: function(c, d) { null != d && this.Ri[d.Hr].splice(c, 0, d) }, tPa: function(c) { c && this.Ri[c.Hr].push(c) }, JQa: function(c) { null != c && f.Ld(this.Ri[c.Hr], c) }, nQa: function() { for (var c = 0; c < this.Pv; c++) this.Ri[c] = [] }, CFa: function() { if (null == this.rA) return null; for (var c = [], d = 0; d < this.Pv; d++) { var e = this.Ri[d]; if (!(0 >= e.length)) { for (var g = [], h = 0; h < e.length; h++) { var k = e[h]; 0 != h && (k = k.Ir((k.Ap - e[h - 1].Ap) * this.Xk)) && g.push(k) } g && (e = f.X.create(g), null != e && c.push(e)) } } this.Qe = null; return this.Yy = f.fe.create(c) }, $Ea: function(c) { null != this.rA && null != this.Yy && (this.Qe = c ? f.X.create(this.Yy, c) : f.X.create(this.Yy), this.V()) }, V: function() { var c = this.V_(); null != c && null != this.Qe && c.V(this.Qe) }, hJ: function() { var c = this.V_(); null != c && null != this.Qe && (this.Qe.gk() || c.hJ(this.Qe)) }, Yza: function() { for (var c = 99999, d = !1, e = 0; e < this.Pv; e++) { var g = this.Ri[e]; 0 >= g.length || (d = !0, g = g[0].Ap, c = c > g ? g : c) } d || (c = 0); return c }, pAa: function() { for (var c = -1, d = !1, e = 0; e < this.Pv; e++) { var g = this.Ri[e]; 0 >= g.length || (d = !0, g = g[g.length - 1].Ap, c = c < g ? g : c) } d || (c = 0); return c }, TIa: function(c) { for (var d = !1, e = this.Xk, g = 0; g < this.Pv; g++) { var h = this.Ri[g]; if (null != h) for (var k = 0; k < h.length; k++) { var m = h[k]; if (m.Ap * e == c) { this.YO(1, 1, m); d = !0; break } else if (m.Ap * e > c) { 0 == k ? (this.YO(1, 1, m), d = !1) : (d = h[k - 1], h = (m.Ap - d.Ap) * e, k = c - d.Ap * e, this.YO(h, 1, d), this.YO(h, k / h, m), d = !0); break } } } return d }, YO: function(c, d, e) { c = e.Ir(c); e = this.V_(); null != c && null != e && (c.R(e), c.update(d)) }, OCa: function() { return null == this.Qe ? !0 : this.Qe.gk() } }); N.dja = N.N.extend({ Ak: null, nd: "", Tj: !1, tX: !1, oaa: !1, Xk: 0, yL: 0, nh: null, cW: 0, ctor: function() { this.Ak = []; this.nd = ""; this.oaa = this.tX = this.Tj = !1; this.Xk = 0.1; this.cW = this.yL = 0; this.nh = new f.Uy; f.Q.Dm().UQ(this.nh, 0, !1) }, gf: function(c) { this.nd = c }, getName: function() { return this.nd }, mR: function(c) { this.Tj = c }, Eda: function() { return this.Tj }, eJ: function(c) { this.Xk = c; c = this.Ak.length; for (var d = 0; d < c; d++) this.Ak[d].eJ(this.Xk) }, HBa: function() { return this.Xk }, kTa: function() { return this.yL }, T2a: function(c) { this.yL = c }, vWa: function() { return this.cW }, Lea: function() { return this.oaa }, Ip: function(c, d) { this.gf(c.name); this.mR(c.loop); this.eJ(c.unittime); for (var e = c.actionnodelist, g = 0, h = 0; h < e.length; h++) { var k = new N.cja; k.Ip(e[h], d); k.eJ(this.Xk); this.Ak.push(k); k = k.pAa() - k.Yza(); k > g && (g = k) } this.cW = g * this.Xk }, jPa: function(c) { c && (this.Ak.push(c), c.eJ(this.Xk)) }, U0a: function(c) { null != c && f.Ld(this.Ak, c) }, play: function(c) { this.stop(); this.gJa(0); for (var d = this.Ak.length, e = 0; e < d; e++) this.Ak[e].$Ea(c); this.Tj && this.nh.g2(this, this.dia, 0, f.mv, 0, !1) }, pause: function() { this.tX = !0 }, stop: function() { for (var c = 0; c < this.Ak.length; c++) this.Ak[c].hJ(); this.nh.A3(this, this.dia); this.tX = !1 }, gJa: function(c) { this.yL = c; for (var d = 0; d < this.Ak.length; d++) this.Ak[d].TIa(c) }, dia: function() { if (this.Tj) { for (var c = !0, d = this.Ak, e = 0; e < d.length; e++) if (!1 == d[e].OCa()) { c = !1; break } c && this.play() } } }); N.vS = N.Dh.extend({ Ui: null, Ja: "", ctor: function() { f.Dh.prototype.ctor.call(this); this.Ui = {}; this.Ja = ""; this.nd = "CCComAttribute" }, j: function() { this.Ui = {}; return !0 }, u3a: function(c, d) { c ? this.Ui[c] = d : f.log("Argument must be non-nil") }, a3a: function(c, d) { c ? this.Ui[c] = d : f.log("Argument must be non-nil") }, f3a: function(c, d) { c ? this.Ui[c] = d : f.log("Argument must be non-nil") }, E2a: function(c, d) { c ? this.Ui[c] = d : f.log("Argument must be non-nil") }, wa: function(c, d) { c ? this.Ui[c] = d : f.log("Argument must be non-nil") }, ul: function(c, d) { c ? this.Ui[c] = d : f.log("Argument must be non-nil") }, hUa: function(c) { return parseInt(this.Ui[c] || 0) }, DTa: function(c) { return parseFloat(this.Ui[c] || 0) }, VTa: function(c) { return parseFloat(this.Ui[c] || 0) }, ySa: function(c) { return Boolean(this.Ui[c] || !1) }, qc: function(c) { return this.Ui[c] || "" }, JAa: function(c) { return this.Ui[c] }, parse: function(c) { this.Ui = f.L.zd(c) } }); N.vS.create = function() { var c = new N.vS; return c && c.j() ? c : null }; N.LJ = N.Dh.extend({ Ja: "", Tj: !1, ctor: function() { f.Dh.prototype.ctor.call(this); this.nd = "Audio" }, j: function() { return !0 }, ba: function() {}, Ra: function() { this.tIa(!0); this.iJ() }, end: function() { f.pe.end() }, kFa: function(c) { f.L.load(c) }, bFa: function(c, d) { c ? f.pe.Qfa(c, d) : f.pe.Qfa(this.Ja, this.Tj) }, tIa: function(c) { f.pe.pia(c) }, j0a: function() { f.pe.G1() }, J1a: function() { f.pe.vga() }, N1a: function() { f.pe.dGa() }, X5a: function() { return !1 }, tXa: function() { return f.pe.VP() }, sSa: function() { return f.pe.GAa() }, B2a: function(c) { f.pe.kHa(c) }, xda: function() { return f.pe.xda() }, Uga: function(c) { f.pe.Uga(c) }, zI: function(c, d) { return c ? f.pe.zI(c, d) : f.pe.zI(this.Ja, this.Tj) }, F1: function(c) { f.pe.F1(c) }, E1: function() { f.pe.E1() }, c2: function(c) { f.pe.c2(c) }, b2: function() { f.pe.b2() }, k3: function(c) { f.pe.k3(c) }, iJ: function() { f.pe.iJ() }, lFa: function(c) { this.$ga(c); this.mR(!1) }, z3: function(c) { f.pe.z3(c) }, $ga: function(c) { this.Ja = c }, mR: function(c) { this.Tj = c }, getFile: function() { return this.Ja }, JXa: function() { return this.Tj } }); N.LJ.create = function() { var c = new N.LJ; return c && c.j() ? c : null }; N.O4 = N.Dh.extend({ ctor: function() { f.Dh.prototype.ctor.call(this); this.nd = "ComController" }, j: function() { return !0 }, ba: function() { null != this.Td && this.Td.ds() }, Ra: function() {}, update: function() {}, isEnabled: function() { return this.$c }, Lb: function() { this.$c = b } }); N.O4.create = function() { var c = new N.O4; return c && c.j() ? c : null }; N.cv = N.Dh.extend({ Ht: null, ctor: function(c, d) { f.Dh.prototype.ctor.call(this); this.Ht = c; this.nd = d }, ba: function() { this.Td && this.Td.n(this.Ht) }, Ra: function() { this.Td && (this.Td.removeChild(this.Ht, !0), this.Ht = null) }, JUa: function() { return this.Ht }, I3a: function(c) { this.Ht = c } }); N.cv.create = function(c, d) { var e = new N.cv(c, d); return e && e.j() ? e : null }; N.jI = { hO: {}, Pxa: function() { this.dA = null }, fH: function(c) { var d = null; (c = this.hO[c]) && (d = new c.lt); return d }, gga: function(c) { this.hO[c.ta] = c }, BQa: function(c) { var d = null; "Panel" === c ? c = "Layout" : "TextArea" === c ? c = "Label" : "TextButton" === c && (c = "Button"); (c = this.hO[c]) && c.lt && (d = c.lt); return d }, lxa: function(c) { var d = null; (c = this.hO[c]) && c.lt && (d = c.lt); return d } }; N.r7 = N.N.extend({ ta: "", lt: null, ctor: function(c, d) { d ? (this.ta = c, this.lt = d) : (this.ta = c.ta, this.lt = c.lt); N.jI.gga(this) } }); N.n2a = function(c) { c = N.t3.get(c); if (null != c) for (var d = 0; d < c.length; d++); }; N.P0a = function(c, d) { new N.r7(c, d) }; N.t3 = { gn: {}, uba: {}, dr: [], Pxa: function() { this.kk(); this.dA = null }, parse: function(c) { for (var d = 0; d < c.length; ++d) { var e = c[d], g = N.lU.create(); g.CC(e); for (var e = g.LG, h = 0; h < e.length; h++) this.add(e[h], g); this.uba[g.ni] = g } }, get: function(c) { return this.gn[c] }, DBa: function(c) { return this.uba[c] }, add: function(c, d) { var e = this.gn[c]; e || (e = []); - 1 == e.indexOf(d) && (e.push(d), this.gn[c] = e) }, kk: function() { for (var c in this.gn) for (var d = this.gn[c], e = 0; e < d.length; e++) d[e].kk(); this.gn = {} }, remove: function(c, d) { if (d) return this.Wta(c, d); var e = !1, g = this.gn[c]; if (g) { for (e = 0; e < g.length; e++) { var h = g[e]; h && h.kk() } delete this.gn[c]; e = !0 } return e }, Wta: function(c, d) { var e = !1; do { var g = this.gn[c]; if (g) { for (e = 0; e < g.length; e++) { var h = g[e]; if (h && h == d) { h.kk(); g.splice(e, 1); break } } e = !0 } } while (0); return e }, B1a: function(c) { c = this.DBa(c); if (!c) return !1; for (var d = c.LG, e = 0; e < d.length; e++) this.remove(d[e], c); return !0 }, Jea: function() { return !this.gn || 0 >= this.gn.length }, lPa: function(c, d, e) { if (null != c && null != e && null != d) { for (var g, h = !1, k = 0; k < this.dr.length; k++)(g = this.dr[k]) && g[0] == c && (g.Lba(d, e), h = !0); h || (g = new N.ija, c.cl().jHa(g.owa, g), g.Lba(d, e), this.dr.push([c, g])) } }, g1a: function(c, d, e) { if (null != c && null != d && null != e) for (var g, h = 0; h < this.dr.length; h++)(g = this.dr[h]) && g[0] == c && g.LFa(e, d) }, e1a: function(c) { if (null != c) for (var d, e = 0; e < this.dr.length; e++) if ((d = this.dr[e]) && d[0] == c) { this.dr.splice(e, 1); break } }, W0a: function() { this.dr = [] }, version: function() { return "1.2.0.0" } }; N.ija = N.N.extend({ bw: null, ctor: function() { this.bw = [] }, owa: function(c, d, e) { for (var g, h, k = 0; k < this.bw.length; k++) g = this.bw[k], h = g[0], (g = g[1]) && g.call(h, c, d, e) }, Lba: function(c, d) { this.bw.push([d, c]) }, LFa: function(c, d) { for (var e, g = 0; g < this.bw.length; g++) e = this.bw[g], e[0] == d && this.bw.splice(g, 1) } }); N.tKa = N.N.extend({ ctor: function() {}, j: function() { return !0 }, w_: function() { return !0 }, CC: function() {}, kk: function() {} }); N.sKa = N.N.extend({ ctor: function() {}, j: function() { return !0 }, Yxa: function() {}, CC: function() {}, kk: function() {} }); N.lU = N.N.extend({ Ys: null, wv: null, ni: 0, UL: !0, LG: null, ctor: function() { this.ni = 0; this.UL = !0 }, j: function() { this.Ys = []; this.wv = []; this.LG = []; return !0 }, w_: function() { if (!this.UL || 0 == this.Ys.length) return !0; for (var c = !0, d = null, e = 0; e < this.Ys.length; e++)(d = this.Ys[e]) && d.w_ && (c = c && d.w_()); return c }, Yxa: function() { if (this.UL && 0 != this.wv.length) for (var c = 0; c < this.wv.length; c++); }, kk: function() { for (var c = null, d = 0; d < this.Ys.length; d++)(c = this.Ys[d]) && c.kk(); this.Ys = []; for (d = 0; d < this.wv.length; d++)(c = this.wv[d]) && c.kk(); this.wv = [] }, CC: function(c) { this.ni = c.id || 0; for (var d = c.conditions || [], e = 0; e < d.length; e++) { var g = d[e], h = g.classname, k = N.jI.fH(h); k ? (k.CC(g), k.j(), this.Ys.push(k)) : f.log("class named classname(" + h + ") can not implement!") } d = c.actions || []; for (e = 0; e < d.length; e++) g = d[e], h = g.classname, (k = N.jI.fH(h)) ? (k.CC(g), k.j(), this.wv.push(k)) : f.log("class named classname(" + h + ") can not implement!"); c = c.events || []; for (e = 0; e < c.length; e++) g = c[e], g = g.id, 0 > g || this.LG.push(g) }, fAa: function() { return this.ni }, b3a: function(c) { this.UL = c }, QTa: function() { return this.LG } }); N.lU.create = function() { var c = new N.lU; return c.j() ? c : null }; N.rk = { Ja: "", faa: !1, eW: {}, WW: {}, XW: {}, LBa: function(c) { if (!c) return 0; var d = c.length; if (7 > d) return 0; var e = c.indexOf("."), g = c.substr(0, e); c = c.substr(e + 1, d - 1); var e = c.indexOf("."), h = c.substr(0, e); c = c.substr(e + 1, d - 1); var e = c.indexOf("."), k = c.substr(0, e); c = c.substr(e + 1, d - 1); e = c.indexOf("."); return 1E3 * parseInt(g) + 100 * parseInt(h) + 10 * parseInt(k) + parseInt(-1 == e ? c : c.substr(0, e)) }, LR: function(c, d) { this.eW[c] = d }, STa: function(c) { return this.eW[c] }, nJa: function(c) { var d = f.L.zd(c); if (!d) throw "Please load the resource first : " + c; var e = f.path.dirname(c); this.Ja = "" == e ? e : e + "/"; var e = d.version, g = this.LBa(e); c = (e ? 250 > g ? new N.o8 : new N.Kpa : new N.o8).o_(d, this.Ja, c); if (!e || 250 > g) this.faa = !0; return c }, clear: function() { this.Ja = ""; this.faa = !1; this.eW = {} }, Q0a: function(c, d, e, g) { d = N.jI; var h = new N.r7(c, e); d.gga(h); e && (this.WW[c] = e); g && (this.XW[c] = g) }, TTa: function() { return this.Ja }, jVa: function() { return this.WW }, iVa: function() { return this.XW } }; N.n8 = N.N.extend({ Ja: "", o_: function() {}, aD: function() {} }); N.o8 = N.n8.extend({ o_: function(c, d, e) { this.Ja = "" == d ? d : f.path.join(d, "/"); for (var g = c.textures, h = 0; h < g.length; h++) { var k = d, k = k + g[h]; f.Je.vp(k) } d = c.designWidth; g = c.designHeight; 0 >= d || 0 >= g ? (f.log("Read design size error!"), N.rk.LR(e, f.Q.Y)) : N.rk.LR(e, t(d, g)); h = this.aD(c.widgetTree); k = h.e(); 0 == k.width && 0 == k.height && h.Df(t(d, g)); N.actionManager.Ip(e, c.animation, h); return h }, aD: function(c) { var d = null, e = c.classname, g = c.options; "Button" == e ? (d = Ec.create(), this.UI(d, g)) : "CheckBox" == e ? (d = Fc.create(), this.Aha(d, g)) : "Label" == e ? (d = Jc.create(), this.G2(d, g)) : "LabelAtlas" == e ? (d = Lc.create(), this.Cha(d, g)) : "LoadingBar" == e ? (d = Hc.create(), this.Eha(d, g)) : "ScrollView" == e ? (d = F.create(), this.H2(d, g)) : "TextArea" == e ? (d = Jc.create(), this.G2(d, g)) : "TextButton" == e ? (d = Ec.create(), this.UI(d, g)) : "TextField" == e ? (d = Pc.create(), this.Gha(d, g)) : "ImageView" == e ? (d = Gc.create(), this.Bha(d, g)) : "Panel" == e ? (d = D.create(), this.Mu(d, g)) : "Slider" == e ? (d = Ic.create(), this.Fha(d, g)) : "LabelBMFont" == e ? (d = Mc.create(), this.Dha(d, g)) : "DragPanel" == e && (d = F.create(), this.H2(d, g)); c = c.children; for (e = 0; e < c.length; e++)(g = this.aD(c[e])) && d.n(g); return d }, Ie: function(c, d) { void 0 !== d.ignoreSize && c.df(d.ignoreSize); c.Df(t(d.width, d.height)); c.Nm(d.tag); c.Vx(d.actiontag); c.Om(d.touchAble); var e = d.name; c.gf(e ? e : "default"); c.o(r(d.x, d.y)); void 0 !== d.scaleX && c.jb(d.scaleX); void 0 !== d.scaleY && c.tb(d.scaleY); void 0 !== d.rotation && c.yh(d.rotation); void 0 !== d.visible && c.za(d.visible); c.tl(d.ZOrder) }, F2: function() {}, zha: function() {}, Bd: function(c, d) { void 0 !== d.opacity && c.J(d.opacity); c.F(f.color(void 0 !== d.colorR ? d.colorR : 255, void 0 !== d.colorG ? d.colorG : 255, void 0 !== d.colorB ? d.colorB : 255)); c.S(void 0 !== d.anchorPointX ? d.anchorPointX : c.Cr == y.sE ? 0.5 : 0, void 0 !== d.anchorPointY ? d.anchorPointY : c.Cr == y.sE ? 0.5 : 0); var e = d.flipY; c.Pd(d.flipX); c.Yf(e) }, UI: function(c, d) { this.Ie(c, d); var e = d.scale9Enable; c.zh(e); var g = d.normal, h = d.pressed, k = d.disabled, m = g ? this.Ja + g : null, n = h ? this.Ja + h : null, p = k ? this.Ja + k : null, s = d.useMergedTexture; e ? (s ? c.Ur(g, h, k, y.cb) : c.Ur(m, n, p), void 0 !== d.scale9Width && void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height))) : s ? c.Ur(g, h, k, y.cb) : c.Ur(m, n, p); void 0 !== d.text && (e = d.text || "") && c.jy(e); void 0 !== d.fontSize && c.iy(d.fontSize); void 0 !== d.fontName && c.hy(d.fontName); e = f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255); c.gy(e); this.Bd(c, d) }, Aha: function(c, d) { this.Ie(c, d); var e = d.backGroundBox, g = d.backGroundBoxSelected, h = d.frontCross, k = d.backGroundBoxDisabled, m = d.frontCrossDisabled, n = this.Ja, p = e ? n + e : null, s = g ? n + g : null, u = h ? n + h : null, v = k ? n + k : null, n = m ? n + m : null; d.useMergedTexture ? c.Ur(e, g, h, k, m, y.cb) : c.Ur(p, s, u, v, n); c.fy(d.selectedState || !1); this.Bd(c, d) }, Bha: function(c, d) { this.Ie(c, d); var e = d.fileName, g = d.scale9Enable || !1; c.zh(g); var h = this.Ja, k = null; e && (k = h + e); h = d.useMergedTexture; g ? (h ? c.Wf(e, y.cb) : c.Wf(k), void 0 !== d.scale9Width && void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height)), c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))) : h ? c.Wf(e, y.cb) : c.Wf(k); this.Bd(c, d) }, G2: function(c, d) { this.Ie(c, d); c.BR(d.touchScaleEnable); c.wa(d.text); void 0 !== d.fontSize && c.Qd(d.fontSize); void 0 !== d.fontName && c.de(d.fontName); void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight)); d.hAlignment && c.ns(d.hAlignment); d.vAlignment && c.os(d.vAlignment); this.Bd(c, d) }, Cha: function(c, d) { this.Ie(c, d); var e = void 0 !== d.charMapFile, g = void 0 !== d.itemWidth, h = void 0 !== d.itemHeight, k = void 0 !== d.startCharMap; void 0 !== d.stringValue && e && g && h && k && d.charMapFile && c.setProperty(d.stringValue, this.Ja + d.charMapFile, d.itemWidth, d.itemHeight, d.startCharMap); this.Bd(c, d) }, Mu: function(c, d) { this.Ie(c, d); c instanceof F || c instanceof H || c.Zp(d.clipAble); var e = d.backGroundScale9Enable; c.$Q(e); var g = d.bgColorR, h = d.bgColorG, k = d.bgColorB, m = d.bgStartColorR, n = d.bgStartColorG, p = d.bgStartColorB, s = d.bgEndColorR, u = d.bgEndColorG, v = d.bgEndColorB; c.ZQ(r(d.vectorX, d.vectorY)); var z = d.bgColorOpacity; c.YQ(d.colorType); c.Du(f.color(m, n, p), f.color(s, u, v)); c.Du(f.color(g, h, k)); c.XQ(z); h = (g = d.backGroundImage) ? this.Ja + g : null; d.useMergedTexture ? c.Eu(g, y.cb) : c.Eu(h); e && c.KI(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)); this.Bd(c, d) }, H2: function(c, d) { this.Mu(c, d); c.ay(t(d.innerWidth, d.innerHeight)); c.xh(d.direction); c.dR(d.bounceEnable); this.Bd(c, d) }, Z3a: function(c, d) { this.Ie(c, d); (c instanceof F || c instanceof H) && c.Zp(d.clipAble); this.Bd(c, d) }, Fha: function(c, d) { this.Ie(c, d); var e = d.barTextureScale9Enable || !1; c.zh(e); var g = d.length, h = d.useMergedTexture; if (void 0 !== d.barFileName) if (e) { var k = (e = d.barFileName) ? this.Ja + e : null; h ? c.ik(e, y.cb) : c.ik(k); c.Df(t(g, c.e().height)) } else k = (e = d.barFileName) ? this.Ja + e : null, h ? c.ik(e, y.cb) : c.ik(k); var g = d.ballNormal, e = d.ballPressed, k = d.ballDisabled, m = g ? this.Ja + g : null, n = e ? this.Ja + e : null, p = k ? this.Ja + k : null; h ? c.jfa(g, e, k, y.cb) : c.jfa(m, n, p); c.Fi(d.percent); k = (e = d.progressBarFileName) ? this.Ja + e : null; h ? c.wu(e, y.cb) : c.wu(k); this.Bd(c, d) }, BHa: function(c, d) { this.Ie(c, d); c.wa(d.text); void 0 !== d.fontSize && c.Qd(d.fontSize); c.F(f.color(d.colorR, d.colorG, d.colorB)); c.de(d.fontName); void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight)); d.hAlignment && c.ns(d.hAlignment); d.vAlignment && c.os(d.vAlignment); this.Bd(c, d) }, CHa: function(c, d) { this.UI(c, d); c.jy(d.text || ""); c.gy(f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255)); void 0 !== d.fontSize && c.iy(d.fontSize); void 0 !== d.fontName && c.hy(d.fontName); this.Bd(c, d) }, Gha: function(c, d) { this.Ie(c, d); void 0 !== d.placeHolder && c.Gi(d.placeHolder); c.wa(d.text); void 0 !== d.fontSize && c.Qd(d.fontSize); void 0 !== d.fontName && c.de(d.fontName); void 0 !== d.touchSizeWidth && void 0 !== d.touchSizeHeight && c.Z2(t(d.touchSizeWidth, d.touchSizeHeight)); var e = d.maxLengthEnable; c.cy(e); e && c.ks(d.maxLength); e = d.passwordEnable; c.dy(e); e && c.IC(d.passwordStyleText); this.Bd(c, d) }, Eha: function(c, d) { this.Ie(c, d); var e = d.texture, g = e ? this.Ja + e : null; d.useMergedTexture ? c.Wf(e, y.cb) : c.Wf(g); c.xh(d.direction); c.Fi(d.percent); this.Bd(c, d) }, zHa: function(c, d) { this.Mu(c, d) }, AHa: function(c, d) { this.Mu(c, d) }, Dha: function(c, d) { this.Ie(c, d); c.GC(this.Ja + d.fileName); c.wa(d.text); this.Bd(c, d) } }); N.Kpa = N.n8.extend({ o_: function(c, d, e) { this.Ja = "" == d ? d : f.path.join(d, "/"); for (var g = c.textures, h = 0; h < g.length; h++) { var k = d, k = k + g[h]; f.Je.vp(k) } d = c.designWidth; g = c.designHeight; 0 >= d || 0 >= g ? (f.log("Read design size error!"), N.rk.LR(e, f.Q.Y)) : N.rk.LR(e, t(d, g)); h = this.aD(c.widgetTree); k = h.e(); 0 == k.width && 0 == k.height && h.Df(t(d, g)); N.actionManager.Ip(e, c.animation, h); return h }, F2: function(c, d, e) { c.Cd(d, e) }, zha: function(c, d, e) { var g = N.rk, h = g.WW[c], g = g.XW[c]; h && g && h.l2a.call(this, c, d, e) }, aD: function(c) { var d = null, e = c.classname, g = c.options; "Button" == e ? d = Ec.create() : "CheckBox" == e ? d = Fc.create() : "Label" == e ? d = Jc.create() : "LabelAtlas" == e ? d = Lc.create() : "LoadingBar" == e ? d = Hc.create() : "ScrollView" == e ? d = F.create() : "TextArea" == e ? d = Jc.create() : "TextButton" == e ? d = Ec.create() : "TextField" == e ? d = Pc.create() : "ImageView" == e ? d = Gc.create() : "Panel" == e ? d = D.create() : "Slider" == e ? d = Ic.create() : "LabelBMFont" == e ? d = Mc.create() : "DragPanel" == e ? d = F.create() : "ListView" == e ? d = H.create() : "PageView" == e ? d = fd.create() : "Widget" == e && (d = y.create()); var h = e; switch (h) { case "Panel": h = "Layout"; break; case "TextArea": h = "Label"; break; case "TextButton": h = "Button" } if (h = N.jI.lxa(h + "Reader")) this.F2(h, d, g); else { var k; d instanceof Ec ? k = N.e4 : d instanceof Fc ? k = N.M4 : d instanceof Gc ? k = N.F5 : d instanceof Lc ? k = N.U5 : d instanceof Nc ? k = N.V5 : d instanceof Jc ? k = N.W5 : d instanceof Hc ? k = N.b6 : d instanceof Ic ? k = N.l7 : d instanceof Pc ? k = N.y7 : d instanceof H ? k = N.a6 : d instanceof F ? k = N.OT : d instanceof fd ? k = N.L6 : d instanceof D ? k = N.eK : d instanceof y && (k = N.Pe); this.F2(k, d, g); g || f.log("GetParseError"); this.zha(e, d, g) } c = c.children; for (e = 0; e < c.length; e++) if (g = this.aD(c[e])) d instanceof fd ? d.AO(g) : d instanceof H ? d.Sfa(g) : (d instanceof D && (g.vh == y.H6 && (k = g.Od(), h = d.bk(), g.D2(r(k.x + h.x, k.y + h.y))), k = d.Bp(), g.o(r(g.Vc() + k.x, g.Zd() + k.y))), d.n(g)); return d }, Ie: function(c, d) { var e = d.name; c.gf(e ? e : "default"); void 0 !== d.ignoreSize && c.df(d.ignoreSize); c.P2(d.sizeType); c.E2(d.positionType); c.Oha(r(d.sizePercentX, d.sizePercentY)); c.D2(r(d.positionPercentX, d.positionPercentY)); c.Df(t(d.width, d.height)); c.Nm(d.tag); c.Vx(d.actiontag); c.Om(d.touchAble); c.o(r(d.x, d.y)); void 0 !== d.scaleX && c.jb(d.scaleX); void 0 !== d.scaleY && c.tb(d.scaleY); void 0 !== d.rotation && c.yh(d.rotation); void 0 !== d.visible && c.za(d.visible); c.tl(d.ZOrder); if (e = d.layoutParameter) { var g; switch (e.type) { case 1: g = nc.create(); g.vc(e.gravity); break; case 2: g = E.create(), g.sR(e.relativeName), g.tR(e.relativeToName), g.VQ(e.align) } g.lo(new rc(e.marginLeft, e.marginTop, e.marginRight, e.marginDown)); c.by(g) } }, Bd: function(c, d) { void 0 !== d.opacity && c.J(d.opacity); c.F(f.color(void 0 !== d.colorR ? d.colorR : 255, void 0 !== d.colorG ? d.colorG : 255, void 0 !== d.colorB ? d.colorB : 255)); c.S(void 0 !== d.anchorPointX ? d.anchorPointX : c.Cr == y.sE ? 0.5 : 0, void 0 !== d.anchorPointY ? d.anchorPointY : c.Cr == y.sE ? 0.5 : 0); var e = d.flipY; c.Pd(d.flipX); c.Yf(e) }, UI: function(c, d) { this.Ie(c, d); var e = d.scale9Enable; c.zh(e); var g = d.normalData; switch (g.resourceType) { case 0: g = g.path; c.Hx(g ? this.Ja + g : null); break; case 1: g = g.path, c.Hx(g, y.cb) } g = d.pressedData; switch (g.resourceType) { case 0: g = g.path; c.Ix(g ? this.Ja + g : null); break; case 1: g = g.path, c.Ix(g, y.cb) } g = d.disabledData; switch (g.resourceType) { case 0: g = g.path; c.Gx(g ? this.Ja + g : null); break; case 1: g = g.path, c.Gx(g, y.cb) } e && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), void 0 !== d.scale9Width && void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height))); void 0 !== d.text && (e = d.text || "") && c.jy(e); void 0 !== d.fontSize && c.iy(d.fontSize); void 0 !== d.fontName && c.hy(d.fontName); e = f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255); c.gy(e); this.Bd(c, d) }, Aha: function(c, d) { this.Ie(c, d); var e = d.backGroundBoxData; switch (e.resourceType) { case 0: e = e.path; c.jC(e ? this.Ja + e : null); break; case 1: e = e.path, c.jC(e, y.cb) } e = d.backGroundBoxSelectedData; switch (e.resourceType) { case 0: e = e.path; c.lC(e ? this.Ja + e : null); break; case 1: e = e.path, c.lC(e, y.cb) } e = d.frontCrossData; switch (e.resourceType) { case 0: e = e.path; c.mC(e ? this.Ja + e : null); break; case 1: e = e.path, c.mC(e, y.cb) } e = d.backGroundBoxDisabledData; switch (e.resourceType) { case 0: e = e.path; c.kC(e ? this.Ja + e : null); break; case 1: e = e.path, c.kC(e, y.cb) } switch (d.frontCrossDisabledData.resourceType) { case 0: e = d.path; c.nC(e ? this.Ja + e : null); break; case 1: e = d.path, c.nC(e, y.cb) } c.fy(d.selectedState || !1); c.fy(d, "selectedState"); this.Bd(c, d) }, Bha: function(c, d) { this.Ie(c, d); var e = d.fileNameData; switch (e.resourceType) { case 0: var g = this.Ja; (e = e.path) && c.Wf(g + e); break; case 1: e = e.path, c.Wf(e, y.cb) } g = d.scale9Enable || !1; c.zh(g); g && (void 0 !== d.scale9Width && void 0 !== d.scale9Height && c.Df(t(d.scale9Width, d.scale9Height)), c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))); this.Bd(c, d) }, G2: function(c, d) { this.Ie(c, d); c.BR(d.touchScaleEnable); c.wa(d.text); void 0 !== d.fontSize && c.Qd(d.fontSize); void 0 !== d.fontName && c.de(d.fontName); void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight)); d.hAlignment && c.ns(d.hAlignment); d.vAlignment && c.os(d.vAlignment); this.Bd(c, d) }, Cha: function(c, d) { this.Ie(c, d); var e = void 0 !== d.charMapFile, g = void 0 !== d.itemWidth, h = void 0 !== d.itemHeight, k = void 0 !== d.startCharMap; if (void 0 !== d.stringValue && e && g && h && k) switch (e = d.charMapFileData, e.resourceType) { case 0: c.setProperty(d.stringValue, this.Ja + e.path, d.itemWidth, d.itemHeight, d.startCharMap); break; case 1: f.log("Wrong res type of LabelAtlas!") } this.Bd(c, d) }, Mu: function(c, d) { this.Ie(c, d); c instanceof F || c instanceof H || c.Zp(d.clipAble); var e = d.backGroundScale9Enable; c.$Q(e); var g = d.bgColorR, h = d.bgColorG, k = d.bgColorB, m = d.bgStartColorR, n = d.bgStartColorG, p = d.bgStartColorB, s = d.bgEndColorR, u = d.bgEndColorG, v = d.bgEndColorB; c.ZQ(r(d.vectorX, d.vectorY)); var z = d.bgColorOpacity; c.YQ(d.colorType); c.Du(f.color(m, n, p), f.color(s, u, v)); c.Du(f.color(g, h, k)); c.XQ(z); g = d.backGroundImageData || {}; switch (g.resourceType) { case 0: g = g.path; c.Eu(g ? this.Ja + g : null); break; case 1: g = g.path, c.Eu(g, y.cb) } e && c.KI(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)); c.Mm(d.layoutType); this.Bd(c, d) }, H2: function(c, d) { this.Mu(c, d); c.ay(t(d.innerWidth, d.innerHeight)); c.xh(d.direction); c.dR(d.bounceEnable); this.Bd(c, d) }, Fha: function(c, d) { this.Ie(c, d); var e = d.barTextureScale9Enable || !1; c.zh(e); var g = d.length; if (void 0 !== d.barFileName) if (e) { var e = d.barFileNameData, h = e.resourceType; switch (h) { case 0: e = (e = e.path) ? this.Ja + e : null; c.ik(e); break; case 1: e = e.path, c.ik(e, y.cb) } c.Df(t(g, c.e().height)) } else switch (e = d.barFileNameData, h = e.resourceType, h) { case 0: e = (e = e.path) ? this.Ja + e : null; c.ik(e); break; case 1: e = e.path, c.ik(e, y.cb) } g = d.ballNormalData; switch (g.resourceType) { case 0: g = g.path; c.hC(g ? this.Ja + g : null); break; case 1: g = g.path, c.hC(g, y.cb) } g = d.ballPressedData; switch (g.resourceType) { case 0: g = g.path; c.iC(g ? this.Ja + g : null); break; case 1: g = g.path, c.iC(g, y.cb) } g = d.ballDisabledData; switch (g.resourceType) { case 0: g = g.path; c.gC(g ? this.Ja + g : null); break; case 1: g = g.path, c.gC(g, y.cb) } g = d.progressBarData; switch (g.resourceType) { case 0: e = (e = g.path) ? this.Ja + e : null; c.wu(e); break; case 1: e = g.path, c.wu(e, y.cb) } this.Bd(c, d); c.Fi(d.percent) }, BHa: function(c, d) { this.Ie(c, d); c.wa(d.text); void 0 !== d.fontSize && c.Qd(d.fontSize); c.F(f.color(d.colorR, d.colorG, d.colorB)); c.de(d.fontName); void 0 !== d.areaWidth && void 0 !== d.areaHeight && c.Ou(t(d.areaWidth, d.areaHeight)); d.hAlignment && c.ns(d.hAlignment); d.vAlignment && c.os(d.vAlignment); this.Bd(c, d) }, CHa: function(c, d) { this.UI(c, d); c.jy(d.text || ""); c.gy(f.color(void 0 !== d.textColorR ? d.textColorR : 255, void 0 !== d.textColorG ? d.textColorG : 255, void 0 !== d.textColorB ? d.textColorB : 255)); void 0 !== d.fontSize && c.iy(d.fontSize); void 0 !== d.fontName && c.hy(d.fontName); this.Bd(c, d) }, Gha: function(c, d) { this.Ie(c, d); void 0 !== d.placeHolder && c.Gi(d.placeHolder); c.wa(d.text); void 0 !== d.fontSize && c.Qd(d.fontSize); void 0 !== d.fontName && c.de(d.fontName); void 0 !== d.touchSizeWidth && void 0 !== d.touchSizeHeight && c.Z2(t(d.touchSizeWidth, d.touchSizeHeight)); var e = d.maxLengthEnable; c.cy(e); e && c.ks(d.maxLength); e = d.passwordEnable; c.dy(e); e && c.IC(d.passwordStyleText); this.Bd(c, d) }, Eha: function(c, d) { this.Ie(c, d); var e = d.textureData; switch (e.resourceType) { case 0: var g = this.Ja; (e = e.path) && c.Wf(g + e); break; case 1: e = e.path, c.Wf(e, y.cb) } g = d.scale9Enable; c.zh(g); g && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.Df(t(d.width, d.height))); c.xh(d.direction); c.Fi(d.percent); this.Bd(c, d) }, zHa: function(c, d) { this.Mu(c, d); c.ay(t(d.innerWidth || 0, d.innerHeight || 0)); c.xh(d.direction || 0); c.vc(d.gravity || 0); c.y2(d.itemMargin || 0) }, AHa: function(c, d) { this.Mu(c, d) }, Dha: function(c, d) { this.Ie(c, d); var e = d.fileNameData; switch (e.resourceType) { case 0: c.GC(this.Ja + e.path); break; case 1: f.log("Wrong res type of LabelAtlas!") } c.wa(d.text); this.Bd(c, d) } }); N.X1a = { eV: "", T$: null, dY: null, nf: null, DQa: function(c) { this.nf = null; this.eV = f.path.dirname(c); var d = f.L.zd(c); if (!d) throw "Please load the resource first : " + c; this.nf = this.fH(d, null); N.t3.parse(d.Triggers || []); return this.nf }, fH: function(c, d) { var e = c.classname; if ("CCNode" == e) { var g = null; d ? (g = f.v.create(), d.n(g)) : g = f.v.create(); this.yHa(g, c); for (var h = c.components, k = 0; k < h.length; k++) { var m = h[k]; if (!m) break; var e = m.classname, n = m.name, p = m.fileData, s = "", u = "", v = 0; null != p && (v = void 0 !== p.resourceType ? p.resourceType : -1, s = f.path.join(this.eV, p.path), u = p.plistFile); var z = f.path.zp(s); if ("CCSprite" == e) { e = null; if (0 == v) { if (".png" != z) continue; e = f.q.create(s) } else if (1 == v) { if (".plist" != z) continue; u = f.path.join(this.eV, u); f.Je.vp(u, f.path.c_(u, ".png")); e = f.q.create("#" + p.path) } else continue; s = N.cv.create(e, "CCSprite"); null != n && s.gf(n); g.fu(s); this.Ss(e, m) } else if ("CCTMXTiledMap" == e) p = null, 0 == v && ".tmx" == z && (p = f.xK.create(s), s = N.cv.create(p, "CCTMXTiledMap"), null != n && s.gf(n), g.fu(s), this.Ss(p, m)); else if ("CCParticleSystemQuad" == e) ".plist" == z && (z = null, 0 == v ? (z = f.A.create(s), z.o(0, 0), s = N.cv.create(z, "CCParticleSystemQuad"), null != n && s.gf(n), g.fu(s), this.Ss(z, m)) : f.log("unknown resourcetype on CCParticleSystemQuad!")); else if ("CCArmature" == e) 0 == v && ((v = f.L.zd(s)) || f.log("Please load the resource [%s] first!", s), v = v.armature_data[0].name, N.Dr.Jva(s), v = N.tk.create(v), s = N.cv.create(v, "CCArmature"), null != n && s.gf(n), g.fu(s), (n = m.selectedactionname) && v.cl() && v.cl().play(n), this.Ss(v, m)); else if ("CCComAudio" == e) { var A = null; 0 == v && (A = N.LJ.create(), A.lFa(s), n && A.gf(n), g.fu(A), this.Ss(A, m)) } else "CCComAttribute" == e ? (z = null, 0 == v ? (z = N.vS.create(), "" != s && z.parse(s), n && z.gf(n), g.fu(z), this.Ss(z, m)) : f.log("unknown resourcetype on CCComAttribute!")) : "CCBackgroundAudio" == e ? z && 0 == v && (A = N.LJ.create(), A.kFa(s), A.$ga(s), v = Boolean(m.loop || 0), A.mR(v), n && A.gf(n), g.fu(A), A.bFa(s, v), this.Ss(A, m)) : "GUIComponent" == e && (s = N.rk.nJa(s), s = N.cv.create(s, "GUIComponent"), null != n && s.gf(n), g.fu(s), this.Ss(A, m)) } h = c.gameobjects; for (k = 0; k < h.length; k++) { m = h[k]; if (!m) break; this.fH(m, g) } return g } return null }, tfa: function(c, d) { if (null == c) return null; for (var e = null, g = c.re(), h = 0; h < g.length && (!(e = g[h]) || e.Em() != d) && !(e = this.tfa(e, d)); h++); return e }, nP: function(c) { return null == this.nf ? null : this.nf.Em() == c ? this.nf : this.tfa(this.nf, c) }, yHa: function(c, d) { c.o("undefined" === typeof d.x ? 0 : d.x, "undefined" === typeof d.y ? 0 : d.y); c.za(Boolean("undefined" === typeof d.visible ? 1 : d.visible)); c.Nm("undefined" === typeof d.objecttag ? -1 : d.objecttag); c.tl("undefined" === typeof d.zorder ? 0 : d.zorder); var e = "undefined" === typeof d.scaley ? 1 : d.scaley; c.jb("undefined" === typeof d.scalex ? 1 : d.scalex); c.tb(e); c.yh("undefined" === typeof d.rotation ? 0 : d.rotation) }, ZI: function(c, d) { this.T$ = d; this.dY = c }, Ss: function(c, d) { this.dY && this.dY.call(this.T$, c, d) }, version: function() { return "1.2.0.0" }, clear: function() { N.t3.kk(); f.pe.end() } }; N.nNa = N.N.extend({ Cd: function() {} }); N.Pe = { ek: function() { return N.Pe }, Cd: function(c, d) { var e = d.ignoreSize; e && c.df(e); c.P2(d.sizeType); c.E2(d.positionType); c.Oha(r(d.sizePercentX, d.sizePercentY)); c.D2(r(d.positionPercentX, d.positionPercentY)); c.Df(t(d.width, d.height)); c.Nm(d.tag); c.Vx(d.actiontag); c.Om(d.touchAble); e = d.name; c.gf(e ? e : "default"); c.o(r(d.x, d.y)); (e = d.scalex) && c.jb(e); (e = d.scaleY) && c.tb(e); (e = d.rotation) && c.yh(e); (e = d.visible) && c.za(e); c.tl(d.ZOrder); if (d.layoutParameter) { var e = d.layoutParameter, g = null; switch (e.type) { case 1: g = new nc; g.vc(e.gravity); break; case 2: var h = g = new E; h.sR(e.relativeName); h.tR(e.relativeToName); h.VQ(e.align) } g && (g.lo(e.marginLeft, e.marginTop, e.marginRight, e.marginDown), c.by(g)) } }, ko: function(c, d) { var e = d.opacity; e && c.J(e); c.F(f.color(d.colorR || 255, d.colorG || 255, d.colorB || 255)); c.S(r(d.anchorPointX || (c.Cr === N.Lpa ? 0.5 : 0), d.anchorPointY || (c.Cr === N.Lpa ? 0.5 : 0))) } }; N.e4 = { ek: function() { return N.e4 }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); var e = N.rk.Ja, g = d.scale9Enable; c.zh(g); var h = d.normalData; switch (h.resourceType) { case 0: h = h.path; c.Hx(h && "" !== h ? e + h : null); break; case 1: h = h.path, c.Hx(h, 1) } h = d.pressedData; switch (h.resourceType) { case 0: h = h.path; c.Ix(h && "" !== h ? e + h : null); break; case 1: h = h.path, c.Ix(h, 1) } h = d.disabledData; switch (h.resourceType) { case 0: h = h.path; c.Gx(h && "" !== h ? e + h : null); break; case 1: h = h.path, c.Gx(h, 1) } g && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), e = d.scale9Height, d.scale9Width && e && c.Df(t(d.scale9Width, d.scale9Height))); d.text && (e = d.text) && c.jy(e); c.gy(f.color(d.textColorR ? d.textColorR : 255, d.textColorG ? d.textColorG : 255, d.textColorB ? d.textColorB : 255)); d.fontSize && c.iy(d.fontSize); d.fontName && c.hy(d.fontName); N.Pe.ko.call(this, c, d) } }; N.M4 = { ek: function() { return N.M4 }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); var e = N.rk.Ja, g = d.backGroundBoxData; switch (g.resourceType) { case 0: g = g.path; c.jC(g && "" !== g ? e + g : null); break; case 1: g = g.path, c.jC(g, 1) } g = d.backGroundBoxSelectedData; switch (g.resourceType) { case 0: g = g.path; c.lC(g && "" !== g ? e + g : null); break; case 1: g = g.path, c.lC(g, 1) } g = d.frontCrossData; switch (g.resourceType) { case 0: g = g.path; c.mC(g && "" !== g ? e + g : null); break; case 1: g = g.path, c.mC(g, 1) } g = d.backGroundBoxDisabledData; switch (g.resourceType) { case 0: g = g.path; c.kC(g && "" !== g ? e + g : null); break; case 1: g = g.path, c.kC(g, 1) } switch (d.frontCrossDisabledData.resourceType) { case 0: g = d.path; c.nC(g && "" !== g ? e + g : null); break; case 1: g = d.path, c.nC(g, 1) } N.Pe.ko.call(this, c, d) } }; N.F5 = { ek: function() { return N.F5 }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); var e = N.rk.Ja, g = d.fileNameData; switch (g.resourceType) { case 0: (g = g.path) && "" !== g && c.Wf(e + g); break; case 1: g = g.path, c.Wf(g, 1) } e = !1; d.scale9Enable && (e = d.scale9Enable); c.zh(e); e && (e = d.scale9Height, d.scale9Width && e && c.Df(t(d.scale9Width, d.scale9Height)), c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight))); N.Pe.ko.call(this, c, d) } }; N.U5 = { ek: function() { return N.U5 }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); var e = N.rk.Ja, g = d.charMapFileData || d.charMapFile, h = d.itemWidth, k = d.itemHeight, m = d.startCharMap; if (d.stringValue && g && h && k && m) switch (g = d.charMapFileData, g.resourceType) { case 0: c.setProperty(d.stringValue, e + g.path, d.itemWidth, d.itemHeight, d.startCharMap); break; case 1: f.log("Wrong res type of LabelAtlas!") } N.Pe.ko.call(this, c, d) } }; N.V5 = { ek: function() { return N.V5 }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); var e = N.rk.Ja, g = d.fileNameData; switch (g.resourceType) { case 0: c.GC(e + g.path); break; case 1: f.log("Wrong res type of LabelAtlas!") } c.wa(d.text); N.Pe.ko.call(this, c, d) } }; N.W5 = { ek: function() { return N.W5 }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); c.BR(d.touchScaleEnable); c.wa(d.text); d.fontSize && c.Qd(d.fontSize); d.fontName && c.de(d.fontName); var e = d.areaHeight; d.areaWidth && e && c.Ou(t(d.areaWidth, d.areaHeight)); d.hAlignment && c.ns(d.hAlignment); d.vAlignment && c.os(d.vAlignment); N.Pe.ko.call(this, c, d) } }; N.eK = { ek: function() { return N.eK }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); var e = N.rk.Ja, g = 0, h = 0; d.adaptScreen ? (h = f.Q.Y, g = h.width, h = h.height) : (g = d.width, h = d.height); c.Df(t(g, h)); c.Zp(d.clipAble); g = d.backGroundScale9Enable; c.$Q(g); var h = d.bgColorR, k = d.bgColorG, m = d.bgColorB, n = d.bgStartColorR, p = d.bgStartColorG, s = d.bgStartColorB, u = d.bgEndColorR, v = d.bgEndColorG, z = d.bgEndColorB; c.ZQ(r(d.vectorX, d.vectorY)); var A = d.bgColorOpacity; c.YQ(d.colorType); c.Du(f.color(n, p, s), f.color(u, v, z)); c.Du(f.color(h, k, m)); c.XQ(A); if (h = d.backGroundImageData) switch (h.resourceType) { case 0: h = h.path; c.Eu(h && "" !== h ? e + h : null); break; case 1: h = h.path, c.Eu(h, 1) } g && c.KI(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)); c.Mm(d.layoutType); N.Pe.ko.call(this, c, d) } }; N.OT = { ek: function() { return N.OT }, Cd: function(c, d) { N.eK.Cd.call(this, c, d); c.ay(t(d.innerWidth, d.innerHeight)); c.xh(d.direction); c.dR(d.bounceEnable); N.Pe.ko.call(this, c, d) } }; N.a6 = { ek: function() { return N.a6 }, Cd: function(c, d) { N.OT.Cd.call(this, c, d); c.xh(d.direction); c.vc(d.gravity); c.y2(d.itemMargin) } }; N.b6 = { ek: function() { return N.b6 }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); var e = N.rk.Ja, g = d.textureData; switch (g.resourceType) { case 0: (g = g.path) && "" !== g && c.Wf(e + g); break; case 1: g = g.path, c.Wf(g, 1) } e = d.scale9Enable; c.zh(e); e && (c.Cc(x(d.capInsetsX, d.capInsetsY, d.capInsetsWidth, d.capInsetsHeight)), c.Df(t(d.width, d.height))); c.xh(d.direction); c.Fi(d.percent); N.Pe.ko.call(this, c, d) } }; N.L6 = { mXa: null, ek: function() { return N.L6 }, Cd: function(c, d) { N.eK.Cd.call(this, c, d) } }; N.l7 = { ek: function() { return N.l7 }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); var e = N.rk.Ja, g = d.scale9Enable; c.zh(g); var h = d.length; if (d.barFileName) { if (g) { var g = d.barFileNameData, k = d.resourceType; switch (k) { case 0: g = (g = g.path) && "" !== g ? e + g : null; c.ik(g); break; case 1: g = g.path, c.ik(g, 1) } c.Df(t(h, c.e().height)) } } else switch (g = d.barFileNameData, k = g.resourceType, k) { case 0: g = (g = g.path) && "" !== g ? e + g : null; c.ik(g); break; case 1: g = g.path, c.ik(g, 1) } h = d.ballNormalData; switch (h.resourceType) { case 0: h = h.path; c.hC(h && "" !== h ? e + h : null); break; case 1: h = h.path, c.hC(h, 1) } h = d.ballPressedData; switch (h.resourceType) { case 0: h = h.path; c.iC(h && "" !== h ? e + h : null); break; case 1: h = h.path, c.iC(h, 1) } h = d.ballDisabledData; switch (h.resourceType) { case 0: h = h.path; c.gC(h && "" !== h ? e + h : null); break; case 1: h = h.path, c.gC(h, 1) } h = d.progressBarData; switch (h.resourceType) { case 0: g = (g = h.path) && "" !== g ? e + g : null; c.wu(g); break; case 1: g = h.path, c.wu(g, 1) } N.Pe.ko.call(this, c, d) } }; N.y7 = { ek: function() { return N.y7 }, Cd: function(c, d) { N.Pe.Cd.call(this, c, d); var e = d.placeHolder; e && c.Gi(e); c.wa(d.text); (e = d.fontSize1) && c.Qd(e); (e = d.fontName) && c.de(e); var e = d.touchSizeWidth, g = d.touchSizeHeight; e && g && c.Z2(e, g); e = d.maxLengthEnable; c.cy(e); e && c.ks(d.maxLength); e = d.passwordEnable; c.dy(e); e && c.IC(d.passwordStyleText); e = d.areaWidth; g = d.areaHeight; e && g && c.Ou(t(e, g)); (e = d.hAlignment) && c.ns(e); (e = d.vAlignment) && c.os(e); N.Pe.ko.call(this, c, d) } }; function Ad(c, d) { this.name = c; this.parent = d } Ad.prototype = { length: 0, x: 0, y: 0, tea: !0, sea: !0 }; function Bd(c, d) { this.name = c; this.boneData = d } Bd.prototype = { AZ: null, wZ: !1 }; function Cd(c, d) { this.data = c; this.parent = d; this.Pu() } Cd.prototype = { x: 0, y: 0, Hm: 0, Op: 0, Qm: 0, Im: 0, m11: 0, Rm: 0, uJ: 0, ry: 1, sy: 1, YC: function(c, d) { var e = this.parent; null != e ? (this.Qm = this.x * e.Hm + this.y * e.Op + e.Qm, this.Rm = this.x * e.Im + this.y * e.m11 + e.Rm, this.data.tea ? (this.ry = e.ry * this.scaleX, this.sy = e.sy * this.scaleY) : (this.ry = this.scaleX, this.sy = this.scaleY), this.uJ = this.data.sea ? e.uJ + this.rotation : this.rotation) : (this.Qm = c ? -this.x : this.x, this.Rm = !1 != d ? -this.y : this.y, this.ry = this.scaleX, this.sy = this.scaleY, this.uJ = this.rotation); var g = this.uJ * Math.PI / 180, e = Math.cos(g), g = Math.sin(g); this.Hm = e * this.ry; this.Im = g * this.ry; this.Op = -g * this.sy; this.m11 = e * this.sy; c && (this.Hm = -this.Hm, this.Op = -this.Op); !1 != d && (this.Im = -this.Im, this.m11 = -this.m11) }, Pu: function() { var c = this.data; this.x = c.x; this.y = c.y; this.rotation = c.rotation; this.scaleX = c.scaleX; this.scaleY = c.scaleY } }; function Dd(c, d, e) { this.data = c; this.yl = d; this.ij = e; this.Pu() } Dd.prototype = { nqa: 0, Xh: null, Yx: function(c) { this.Xh = c; this.nqa = this.yl.time }, Pu: function() { var c = this.data; this.r = c.r; this.g = c.g; this.b = c.b; this.a = c.a; for (var d = this.yl.data.Ef, e = 0, g = d.length; e < g; e++) if (d[e] == c) { this.Yx(c.AZ ? Ed(this.yl, e, c.AZ) : null); break } } }; function Fd(c) { this.name = c; this.EO = {} } Fd.prototype = { rH: function(c, d) { return this.EO[c + ":" + d] } }; function Gd(c, d, e) { this.name = c; this.via = d; this.duration = e } Gd.prototype = { apply: function(c, d, e, g, h) { g && 0 != this.duration && (e %= this.duration, d %= this.duration); g = this.via; for (var k = 0, m = g.length; k < m; k++) g[k].apply(c, d, e, h, 1) } }; function Hd(c, d, e) { var g = 0, h = Math.floor(c.length / e) - 2; if (0 == h) return e; for (var k = h >>> 1;;) { c[(k + 1) * e] <= d ? g = k + 1 : h = k; if (g == h) return (g + 1) * e; k = g + h >>> 1 } } function Id(c) { this.lj = []; this.lj.length = 6 * (c - 1) } Id.prototype = {}; function Jd(c, d, e) { e = 0 > e ? 0 : 1 < e ? 1 : e; var g = 6 * d, h = c.lj; d = h[g]; if (!d) return e; if (-1 == d) return 0; c = h[g + 1]; for (var k = h[g + 2], m = h[g + 3], n = h[g + 4], p = h[g + 5], g = d, h = c, s = 8;;) { if (g >= e) return d = g - d, c = h - c, c + (h - c) * (e - d) / (g - d); if (0 == s) break; s--; d += k; c += m; k += n; m += p; g += d; h += c } return h + (1 - h) * (e - g) / (1 - g) } function Kd(c) { this.lj = new Id(c); this.frames = []; this.frames.length = 2 * c } Kd.prototype = { ex: 0, Am: function() { return this.frames.length / 2 }, Lm: function(c, d, e) { c *= 2; this.frames[c] = d; this.frames[c + 1] = e }, apply: function(c, d, e, g, h) { d = this.frames; if (!(e < d[0])) { c = c.xd[this.ex]; if (e >= d[d.length - 2]) d = c.data.rotation + d[d.length - 1] - c.rotation; else { var k = Hd(d, e, 2); g = d[k - 1]; var m = d[k]; e = 1 - (e - m) / (d[k - 2] - m); e = Jd(this.lj, k / 2 - 1, e); for (d = d[k + 1] - g; 180 < d;) d -= 360; for (; - 180 > d;) d += 360; d = c.data.rotation + (g + d * e) - c.rotation } for (; 180 < d;) d -= 360; for (; - 180 > d;) d += 360; c.rotation += d * h } } }; function Ld(c) { this.lj = new Id(c); this.frames = []; this.frames.length = 3 * c } Ld.prototype = { ex: 0, Am: function() { return this.frames.length / 3 }, Lm: function(c, d, e, g) { c *= 3; this.frames[c] = d; this.frames[c + 1] = e; this.frames[c + 2] = g }, apply: function(c, d, e, g, h) { d = this.frames; if (!(e < d[0])) if (c = c.xd[this.ex], e >= d[d.length - 3]) c.x += (c.data.x + d[d.length - 2] - c.x) * h, c.y += (c.data.y + d[d.length - 1] - c.y) * h; else { g = Hd(d, e, 3); var k = d[g - 2], m = d[g - 1], n = d[g]; e = 1 - (e - n) / (d[g + -3] - n); e = Jd(this.lj, g / 3 - 1, e); c.x += (c.data.x + k + (d[g + 1] - k) * e - c.x) * h; c.y += (c.data.y + m + (d[g + 2] - m) * e - c.y) * h } } }; function Md(c) { this.lj = new Id(c); this.frames = []; this.frames.length = 3 * c } Md.prototype = { ex: 0, Am: function() { return this.frames.length / 3 }, Lm: function(c, d, e, g) { c *= 3; this.frames[c] = d; this.frames[c + 1] = e; this.frames[c + 2] = g }, apply: function(c, d, e, g, h) { d = this.frames; if (!(e < d[0])) if (c = c.xd[this.ex], e >= d[d.length - 3]) c.scaleX += (c.data.scaleX - 1 + d[d.length - 2] - c.scaleX) * h, c.scaleY += (c.data.scaleY - 1 + d[d.length - 1] - c.scaleY) * h; else { g = Hd(d, e, 3); var k = d[g - 2], m = d[g - 1], n = d[g]; e = 1 - (e - n) / (d[g + -3] - n); e = Jd(this.lj, g / 3 - 1, e); c.scaleX += (c.data.scaleX - 1 + k + (d[g + 1] - k) * e - c.scaleX) * h; c.scaleY += (c.data.scaleY - 1 + m + (d[g + 2] - m) * e - c.scaleY) * h } } }; function Nd(c) { this.lj = new Id(c); this.frames = []; this.frames.length = 5 * c } Nd.prototype = { KC: 0, Am: function() { return this.frames.length / 5 }, Lm: function(c, d, e, g, h, k) { c *= 5; this.frames[c] = d; this.frames[c + 1] = e; this.frames[c + 2] = g; this.frames[c + 3] = h; this.frames[c + 4] = k }, apply: function(c, d, e, g, h) { d = this.frames; if (!(e < d[0])) if (c = c.Ef[this.KC], e >= d[d.length - 5]) h = d.length - 1, c.r = d[h - 3], c.g = d[h - 2], c.b = d[h - 1], c.a = d[h]; else { g = Hd(d, e, 5); var k = d[g - 4], m = d[g - 3], n = d[g - 2], p = d[g - 1], s = d[g]; e = 1 - (e - s) / (d[g - 5] - s); e = Jd(this.lj, g / 5 - 1, e); k += (d[g + 1] - k) * e; m += (d[g + 2] - m) * e; n += (d[g + 3] - n) * e; d = p + (d[g + 4] - p) * e; 1 > h ? (c.r += (k - c.r) * h, c.g += (m - c.g) * h, c.b += (n - c.b) * h, c.a += (d - c.a) * h) : (c.r = k, c.g = m, c.b = n, c.a = d) } } }; function Od(c) { this.lj = new Id(c); this.frames = []; this.frames.length = c; this.BZ = []; this.BZ.length = c } Od.prototype = { KC: 0, Am: function() { return this.frames.length }, Lm: function(c, d, e) { this.frames[c] = d; this.BZ[c] = e }, apply: function(c, d, e) { d = this.frames; e < d[0] || (e = this.BZ[e >= d[d.length - 1] ? d.length - 1 : Hd(d, e, 1) - 1], c.Ef[this.KC].Yx(e ? Ed(c, this.KC, e) : null)) } }; function Pd(c) { this.frames = []; this.frames.length = c; this.ym = []; this.ym.length = c } Pd.prototype = { Am: function() { return this.frames.length }, Lm: function(c, d, e) { this.frames[c] = d; this.ym[c] = e }, apply: function(c, d, e, g, h) { if (g) { var k = this.frames, m = k.length; if (d > e) this.apply(c, d, Number.MAX_VALUE, g, h), d = -1; else if (d >= k[m - 1]) return; if (!(e < k[0])) { if (d < k[0]) c = 0; else for (c = Hd(k, d, 1), d = k[c]; 0 < c && k[c - 1] == d;) c--; for (d = this.ym; c < m && e >= k[c]; c++) g.push(d[c]) } } } }; function Qd(c) { this.frames = []; this.frames.length = c; this.B_ = []; this.B_.length = c } Qd.prototype = { Am: function() { return this.frames.length }, Lm: function(c, d, e) { this.frames[c] = d; this.B_[c] = e }, apply: function(c, d, e) { var g = this.frames; if (!(e < g[0])) { d = c.mu; var h = c.Ef; if (e = this.B_[e >= g[g.length - 1] ? g.length - 1 : Hd(g, e, 1) - 1]) for (g = 0, k = e.length; g < k; g++) d[g] = c.Ef[e[g]]; else for (var g = 0, k = h.length; g < k; g++) d[g] = h[g] } } }; function Rd() { this.xd = []; this.Ef = []; this.gia = []; this.ym = []; this.lB = [] } Rd.prototype = { u_: null, pH: function(c) { for (var d = this.xd, e = 0, g = d.length; e < g; e++) if (d[e].name == c) return d[e]; return null }, cda: function(c) { for (var d = this.xd, e = 0, g = d.length; e < g; e++) if (d[e].name == c) return e; return -1 }, S_: function(c) { for (var d = this.Ef, e = 0, g = d.length; e < g; e++) if (d[e].name == c) return d[e]; return null }, qH: function(c) { for (var d = this.Ef, e = 0, g = d.length; e < g; e++) if (d[e].name == c) return e; return -1 } }; function Sd(c, d) { for (var e = c.lB, g = 0, h = e.length; g < h; g++) if (e[g].name == d) return e[g]; return null } function Td(c) { this.data = c; this.xd = []; for (var d = 0, e = c.xd.length; d < e; d++) { var g = c.xd[d]; this.xd.push(new Cd(g, g.parent ? this.xd[c.xd.indexOf(g.parent)] : null)) } this.Ef = []; this.mu = []; d = 0; for (e = c.Ef.length; d < e; d++) g = c.Ef[d], g = new Dd(g, this, this.xd[c.xd.indexOf(g.boneData)]), this.Ef.push(g), this.mu.push(g) } Td.prototype = { x: 0, y: 0, fJ: null, time: 0, gda: !1, hda: !1, YC: function() { for (var c = this.gda, d = this.hda, e = this.xd, g = 0, h = e.length; g < h; g++) e[g].YC(c, d) }, Pu: function() { this.n2(); this.Q2() }, n2: function() { for (var c = this.xd, d = 0, e = c.length; d < e; d++) c[d].Pu() }, Q2: function() { for (var c = this.Ef, d = 0, e = c.length; d < e; d++) c[d].Pu(d) }, pH: function(c) { for (var d = this.xd, e = 0, g = d.length; e < g; e++) if (d[e].data.name == c) return d[e]; return null }, cda: function(c) { for (var d = this.xd, e = 0, g = d.length; e < g; e++) if (d[e].data.name == c) return e; return -1 }, S_: function(c) { for (var d = this.Ef, e = 0, g = d.length; e < g; e++) if (d[e].data.name == c) return d[e]; return null }, qH: function(c) { for (var d = this.Ef, e = 0, g = d.length; e < g; e++) if (d[e].data.name == c) return e; return -1 }, Qha: function(c) { if (this.fJ && c) { var d = this.fJ; console.log(d.EO); for (var e in d.EO) { var g = e.indexOf(":"), d = parseInt(e.substring(0, g)), h = e.substring(g + 1), g = this.Ef[d]; g.Xh && g.Xh.name == h && (d = c.rH(d, h)) && g.Yx(d) } } this.fJ = c }, Yx: function(c, d) { for (var e = this.Ef, g = 0, h = e.length; g < h; g++) { var k = e[g]; if (k.data.name == c) { e = null; if (d && (e = this.rH(g, d), !e)) throw "Attachment not found: " + d + ", for slot: " + c; k.Yx(e); return } } throw "Slot not found: " + c; }, update: function(c) { this.time += c } }; function Ed(c, d, e) { if (c.fJ) { var g = c.fJ.rH(d, e); if (g) return g } return c.data.u_ ? c.data.u_.rH(d, e) : null } function Ud(c) { this.name = c } Ud.prototype = { RP: 0, bP: 0, stringValue: null }; function Vd(c) { this.data = c } Vd.prototype = { RP: 0, bP: 0, stringValue: null }; var Wd = { region: 0, Lwa: 1 }; function Xd(c) { this.name = c; this.offset = []; this.offset.length = 8; this.fq = []; this.fq.length = 8 } Xd.prototype = { x: 0, y: 0, Sx: null, $fa: 0, aga: 0, dga: 0, Zfa: 0, cga: 0, bga: 0 }; function Yd(c, d, e, g, h) { d += g.Qm; e += g.Rm; var k = g.Hm, m = g.Op, n = g.Im; g = g.m11; c = c.offset; h[0] = c[0] * k + c[1] * m + d; h[1] = c[0] * n + c[1] * g + e; h[2] = c[2] * k + c[3] * m + d; h[3] = c[2] * n + c[3] * g + e; h[4] = c[4] * k + c[5] * m + d; h[5] = c[4] * n + c[5] * g + e; h[6] = c[6] * k + c[7] * m + d; h[7] = c[6] * n + c[7] * g + e } function Zd(c) { this.name = c; this.k = [] } Zd.prototype = {}; function $d(c) { this.fia = c; this.bca = {} } $d.prototype = { Mxa: 0, mha: function(c, d, e) { this.bca[c.name + ":" + d.name] = e } }; function ae(c, d, e) { return (d = c.bca[d.name + ":" + e.name]) ? d : c.Mxa } function be() {} be.prototype = { next: null, zu: null, wd: null, vm: 0, time: 0, dC: -1, sx: 0, r3: 1, hI: 0, oQ: 0, Sp: null, Rp: null, sC: null, tC: null }; function ce(c) { this.data = c; this.ai = []; this.ym = [] } ce.prototype = { Sp: null, Rp: null, sC: null, tC: null, r3: 1, update: function(c) { c *= this.r3; for (var d = 0; d < this.ai.length; d++) { var e = this.ai[d]; if (e) { var g = c * e.r3; e.time += g; e.zu && (e.zu.time += g, e.hI += g); (g = e.next) ? e.dC >= g.vm && de(this, d, g): !e.loop && e.dC >= e.sx && this.MO(d) } } }, apply: function(c) { for (var d = 0; d < this.ai.length; d++) { var e = this.ai[d]; if (e) { this.ym.length = 0; var g = e.time, h = e.dC, k = e.sx, m = e.loop; !m && g > k && (g = k); var n = e.zu; if (n) { var p = n.time; !n.loop && p > n.sx && (p = n.sx); n.wd.apply(c, p, p, n.loop, null); var s = e.hI / e.oQ; 1 <= s && (s = 1, e.zu = null); var u = e.wd, n = c, p = e.dC, v = g, z = this.ym; m && 0 != u.duration && (v %= u.duration, p %= u.duration); for (var u = u.via, A = 0, B = u.length; A < B; A++) u[A].apply(n, p, v, z, s) } else e.wd.apply(c, e.dC, g, m, this.ym); n = 0; for (p = this.ym.length; n < p; n++) v = this.ym[n], null != e.tC && e.tC(d, v), null != this.tC && this.tC(d, v); if (m ? h % k > g % k : h < k && g >= k) g = Math.floor(g / k), e.sC && e.sC(d, g), this.sC && this.sC(d, g); e.dC = e.time } } }, qca: function() { for (var c = 0, d = this.ai.length; c < d; c++) this.MO(c); this.ai.length = 0 }, MO: function(c) { if (!(c >= this.ai.length)) { var d = this.ai[c]; d && (null != d.Rp && d.Rp(c), null != this.Rp && this.Rp(c), this.ai[c] = null) } }, Xx: function(c, d, e) { var g = new be; g.wd = d; g.loop = e; g.sx = d.duration; de(this, c, g); return g }, TG: function(c, d, e, g) { var h = new be; h.wd = d; h.loop = e; h.sx = d.duration; if (e = ee(this, c)) { for (; e.next;) e = e.next; e.next = h } else this.ai[c] = h; 0 >= g && (g = e ? g + (e.sx - ae(this.data, e.wd, d)) : 0); h.vm = g; return h }, vda: function(c) { return c >= this.ai.length ? null : this.ai[c] } }; function de(c, d, e) { var g = ee(c, d); if (g) { var h = g.zu; g.zu = null; null != g.Rp && g.Rp(d); null != c.Rp && c.Rp(d); e.oQ = ae(c.data, g.wd, e.wd); 0 < e.oQ && (e.hI = 0, e.zu = h && 0.5 > g.hI / g.oQ ? h : g) } c.ai[d] = e; null != e.Sp && e.Sp(d); null != c.Sp && c.Sp(d) } function ee(c, d) { if (d < c.ai.length) return c.ai[d]; for (; d >= c.ai.length;) c.ai.push(null); return null } function fe(c) { this.uwa = c } fe.prototype = {}; function ge(c, d, e) { var g = e.curve; if (g) if ("stepped" == g) c.lj.lj[6 * d] = -1; else if (g instanceof Array) { e = g[0]; var h = g[1], k = g[2], m = g[3], n = 0.1 * 0.1, g = 0.1 * n, p = 3 * 0.1, s = 3 * n, n = 6 * n, u = 6 * g, v = 2 * -e + k, z = 2 * -h + m, k = 3 * (e - k) + 1, m = 3 * (h - m) + 1; d *= 6; c = c.lj.lj; c[d] = e * p + v * s + k * g; c[d + 1] = h * p + z * s + m * g; c[d + 2] = v * n + k * u; c[d + 3] = z * n + m * u; c[d + 4] = k * u; c[d + 5] = m * u } } function he(c, d) { if (8 != c.length) throw "Color hexidecimal length must be 8, recieved: " + c; return parseInt(c.substring(2 * d, 2 * d + 2), 16) / 255 } function ie(c, d) { this.qEa = []; this.ega = []; var e = new je(c), g = []; g.length = 4; for (var h = null;;) { var k = ke(e); if (null == k) break; k = e.trim(k); if (0 == k.length) h = null; else if (h) { var m = new le; m.name = k; m.page = h; m.rotate = "true" == me(e); ne(e, g); var k = parseInt(g[0]), n = parseInt(g[1]); ne(e, g); var p = parseInt(g[0]), s = parseInt(g[1]); m.Da = k / h.width; m.ga = n / h.height; m.rotate ? (m.x3 = (k + s) / h.width, m.E3 = (n + p) / h.height) : (m.x3 = (k + p) / h.width, m.E3 = (n + s) / h.height); m.x = k; m.y = n; m.width = Math.abs(p); m.height = Math.abs(s); 4 == ne(e, g) && (m.iIa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], 4 == ne(e, g) && (m.pEa = [parseInt(g[0]), parseInt(g[1]), parseInt(g[2]), parseInt(g[3])], ne(e, g))); m.Efa = parseInt(g[0]); m.Dfa = parseInt(g[1]); ne(e, g); m.offsetX = parseInt(g[0]); m.offsetY = parseInt(g[1]); m.index = parseInt(me(e)); this.ega.push(m) } else h = new oe, h.name = k, h.kza = pe[me(e)], ne(e, g), h.nfa = qe[g[0]], h.kfa = qe[g[1]], m = me(e), h.y3 = re, h.F3 = re, "x" == m ? h.y3 = se : "y" == m ? h.F3 = se : "xy" == m && (h.y3 = h.F3 = se), d.load(h, k, this), this.qEa.push(h) } } ie.prototype = {}; var pe = { SJa: 0, wLa: 1, PLa: 2, RGB565: 3, uMa: 4, tMa: 5, vMa: 6 }, qe = { YLa: 0, iv: 1, SLa: 2, WLa: 3, ULa: 4, VLa: 5, TLa: 6 }, re = 1, se = 2; function oe() {} oe.prototype = { kza: null, nfa: null, kfa: null, y3: null, F3: null, Sx: null }; function le() {} le.prototype = { page: null, x: 0, y: 0, Da: 0, ga: 0, x3: 0, E3: 0, Efa: 0, Dfa: 0, index: 0, rotate: !1, iIa: null, pEa: null }; function je(c) { this.ffa = c.split(/\r\n|\r|\n/) } je.prototype = { index: 0, trim: function(c) { return c.replace(/^\s+|\s+$/g, "") } }; function ne(c, d) { var e = ke(c), g = e.indexOf(":"); if (-1 == g) throw "Invalid line: " + e; for (var h = 0, g = g + 1; 3 > h; h++) { var k = e.indexOf(",", g); if (-1 == k) { if (0 == h) throw "Invalid line: " + e; break } d[h] = c.trim(e.substr(g, k - g)); g = k + 1 } d[h] = c.trim(e.substring(g)); return h + 1 } function me(c) { var d = ke(c), e = d.indexOf(":"); if (-1 == e) throw "Invalid line: " + d; return c.trim(d.substring(e + 1)) } function ke(c) { return c.index >= c.ffa.length ? null : c.ffa[c.index++] } function te(c) { this.rwa = c } te.prototype = {}; var we = f.ja.extend({ $e: null, cua: null, Wt: 1, BL: !1, AL: !1, lN: !1, xta: null, xNa: null, B: null, ctor: function() { f.ja.prototype.ctor.call(this); this.B = { src: f.Mc, ha: f.Lc } }, j: function() { f.v.prototype.j.call(this); this.ee(!0); this.B.src = f.ONE; this.B.ha = f.ONE_MINUS_SRC_ALPHA; f.K === f.na && this.WI(f.xg.be(f.zo)); this.ds() }, V2a: function(c) { this.BL = c }, U2a: function(c) { this.AL = c }, RHa: function(c) { this.Wt = c }, KP: function(c, d, e) { var g, h, k, m; if ("string" == typeof c) { if ("string" == typeof d) { var n = f.L.zd(d); ue.yGa(d); h = new ie(n, ue) } else h = d; k = e || 1 / f.Q.Vl; var p = new fe(new te(h)); p.scale = k; for (var s = f.L.zd(c), u = new Rd, v = s.bones, z = 0, A = v.length; z < A; z++) { var B = v[z], C = null; if (B.parent && (C = u.pH(B.parent), !C)) throw "Parent bone not found: " + B.parent; var G = new Ad(B.name, C); G.length = (B.length || 0) * p.scale; G.x = (B.x || 0) * p.scale; G.y = (B.y || 0) * p.scale; G.rotation = B.rotation || 0; G.scaleX = B.scaleX || 1; G.scaleY = B.scaleY || 1; G.tea = !B.inheritScale || "true" == B.inheritScale; G.sea = !B.inheritRotation || "true" == B.inheritRotation; u.xd.push(G) } for (var L = s.slots, z = 0, A = L.length; z < A; z++) { var O = L[z], G = u.pH(O.bone); if (!G) throw "Slot bone not found: " + O.bone; var R = new Bd(O.name, G), M = O.color; M && (R.r = he(M, 0), R.g = he(M, 1), R.b = he(M, 2), R.a = he(M, 3)); R.AZ = O.attachment; R.wZ = O.additive && "true" == O.additive; u.Ef.push(R) } var K = s.skins, P; for (P in K) if (K.hasOwnProperty(P)) { var I = K[P], J = new Fd(P), V; for (V in I) if (I.hasOwnProperty(V)) { var ma = u.qH(V), W = I[V], fa; for (fa in W) if (W.hasOwnProperty(fa)) { var ta, Y = p, wa = fa, Z = W[fa], wa = Z.name || wa, Oa = Wd[Z.type || "region"], Q = void 0; a: { switch (Oa) { case Wd.Lwa: Q = new Zd(wa); break a; case Wd.region: var oa; b: { for (var ob = Y.uwa.rwa.ega, Pa = 0, Ub = ob.length; Pa < Ub; Pa++) if (ob[Pa].name == wa) { oa = ob[Pa]; break b } oa = null } if (!oa) throw "Region not found in atlas: " + wa + " (" + Oa + ")"; var za = new Xd(wa); za.Sx = oa; var mb = oa.Da, nb = oa.ga, Ja = oa.x3, Ob = oa.E3, ua = za.fq; oa.rotate ? (ua[2] = mb, ua[3] = Ob, ua[4] = mb, ua[5] = nb, ua[6] = Ja, ua[7] = nb, ua[0] = Ja, ua[1] = Ob) : (ua[0] = mb, ua[1] = Ob, ua[2] = mb, ua[3] = nb, ua[4] = Ja, ua[5] = nb, ua[6] = Ja, ua[7] = Ob); za.$fa = oa.offsetX; za.aga = oa.offsetY; za.dga = oa.width; za.Zfa = oa.height; za.cga = oa.Efa; za.bga = oa.Dfa; Q = za; break a } throw "Unknown attachment type: " + Oa; } if (Oa == Wd.region) { Q.x = (Z.x || 0) * Y.scale; Q.y = (Z.y || 0) * Y.scale; Q.scaleX = Z.scaleX || 1; Q.scaleY = Z.scaleY || 1; Q.rotation = Z.rotation || 0; Q.width = (Z.width || 32) * Y.scale; Q.height = (Z.height || 32) * Y.scale; var hd = Q.width / Q.cga * Q.scaleX, id = Q.height / Q.bga * Q.scaleY, xc = -Q.width / 2 * Q.scaleX + Q.$fa * hd, yc = -Q.height / 2 * Q.scaleY + Q.aga * id, jd = xc + Q.dga * hd, kd = yc + Q.Zfa * id, ld = Q.rotation * Math.PI / 180, Pb = Math.cos(ld), Qb = Math.sin(ld), md = xc * Pb + Q.x, nd = xc * Qb, od = yc * Pb + Q.y, pd = yc * Qb, qd = jd * Pb + Q.x, rd = jd * Qb, sd = kd * Pb + Q.y, td = kd * Qb, Va = Q.offset; Va[0] = md - pd; Va[1] = od + nd; Va[2] = md - td; Va[3] = sd + nd; Va[4] = qd - td; Va[5] = sd + rd; Va[6] = qd - pd; Va[7] = od + rd } else if (Oa == Wd.SZ) for (var ud = Z.vertices, Cc = 0, ze = ud.length; Cc < ze; Cc++) Q.k.push(ud[Cc] * Y.scale); ta = Q; null != ta && (J.EO[ma + ":" + fa] = ta) } } u.gia.push(J); "default" == J.name && (u.u_ = J) } var zc = s.events, Rb; for (Rb in zc) if (zc.hasOwnProperty(Rb)) { var Ac = zc[Rb], Sb = new Ud(Rb); Sb.RP = Ac["int"] || 0; Sb.bP = Ac["float"] || 0; Sb.stringValue = Ac.string || null; u.ym.push(Sb) } var Bc = s.animations, Tb; for (Tb in Bc) if (Bc.hasOwnProperty(Tb)) { var mf = p, nf = Tb, cc = Bc[Tb], tb = u, hb = [], Fa = 0, Sc = cc.bones, ub = void 0; for (ub in Sc) if (Sc.hasOwnProperty(ub)) { var Tc = tb.cda(ub); if (-1 == Tc) throw "Bone not found: " + ub; var Uc = Sc[ub], Aa; for (Aa in Uc) if (Uc.hasOwnProperty(Aa)) { var Ba = Uc[Aa]; if ("rotate" == Aa) { var X = new Kd(Ba.length); X.ex = Tc; for (var ra = 0, ea = 0, Ia = Ba.length; ea < Ia; ea++) { var ya = Ba[ea]; X.Lm(ra, ya.time, ya.angle); ge(X, ra, ya); ra++ } hb.push(X); Fa = Math.max(Fa, X.frames[2 * X.Am() - 2]) } else if ("translate" == Aa || "scale" == Aa) { var Vc = 1; "scale" == Aa ? X = new Md(Ba.length) : (X = new Ld(Ba.length), Vc = mf.scale); X.ex = Tc; ea = ra = 0; for (Ia = Ba.length; ea < Ia; ea++) ya = Ba[ea], X.Lm(ra, ya.time, (ya.x || 0) * Vc, (ya.y || 0) * Vc), ge(X, ra, ya), ra++; hb.push(X); Fa = Math.max(Fa, X.frames[3 * X.Am() - 3]) } else throw "Invalid timeline type for a bone: " + Aa + " (" + ub + ")"; } } var Wc = cc.slots, Eb = void 0; for (Eb in Wc) if (Wc.hasOwnProperty(Eb)) { var Xc = Wc[Eb], Fb = tb.qH(Eb); for (Aa in Xc) if (Xc.hasOwnProperty(Aa)) if (Ba = Xc[Aa], "color" == Aa) { X = new Nd(Ba.length); X.KC = Fb; ea = ra = 0; for (Ia = Ba.length; ea < Ia; ea++) { var ya = Ba[ea], dc = ya.color, of = he(dc, 0), pf = he(dc, 1), qf = he(dc, 2), rf = he(dc, 3); X.Lm(ra, ya.time, of, pf, qf, rf); ge(X, ra, ya); ra++ } hb.push(X); Fa = Math.max(Fa, X.frames[5 * X.Am() - 5]) } else if ("attachment" == Aa) { X = new Od(Ba.length); X.KC = Fb; ea = ra = 0; for (Ia = Ba.length; ea < Ia; ea++) ya = Ba[ea], X.Lm(ra++, ya.time, ya.name); hb.push(X); Fa = Math.max(Fa, X.frames[X.Am() - 1]) } else throw "Invalid timeline type for a slot: " + Aa + " (" + Eb + ")"; } var ec = cc.events; if (ec) { X = new Pd(ec.length); ea = ra = 0; for (Ia = ec.length; ea < Ia; ea++) { var Sa = ec[ea], ib; a: { for (var Yc = tb.ym, fc = 0, sf = Yc.length; fc < sf; fc++) if (Yc[fc].name == Sa.name) { ib = Yc[fc]; break a } ib = null } if (!ib) throw "Event not found: " + Sa.name; var gc = new Vd(ib); gc.RP = Sa.hasOwnProperty("int") ? Sa["int"] : ib.RP; gc.bP = Sa.hasOwnProperty("float") ? Sa["float"] : ib.bP; gc.stringValue = Sa.hasOwnProperty("string") ? Sa.string : ib.stringValue; X.Lm(ra++, Sa.time, gc) } hb.push(X); Fa = Math.max(Fa, X.frames[X.Am() - 1]) } var hc = cc.draworder; if (hc) { for (var X = new Qd(hc.length), Gb = tb.Ef.length, ea = ra = 0, Ia = hc.length; ea < Ia; ea++) { var Zc = hc[ea], jb = null; if (Zc.offsets) { jb = []; jb.length = Gb; for (var Ga = Gb - 1; 0 <= Ga; Ga--) jb[Ga] = -1; var $c = Zc.offsets, ic = []; ic.length = Gb - $c.length; for (var vb = 0, ad = 0, Ga = 0, tf = $c.length; Ga < tf; Ga++) { var bd = $c[Ga], Fb = tb.qH(bd.slot); if (-1 == Fb) throw "Slot not found: " + bd.slot; for (; vb != Fb;) ic[ad++] = vb++; jb[vb + bd.offset] = vb++ } for (; vb < Gb;) ic[ad++] = vb++; for (Ga = Gb - 1; 0 <= Ga; Ga--) - 1 == jb[Ga] && (jb[Ga] = ic[--ad]) } X.Lm(ra++, Zc.time, jb) } hb.push(X); Fa = Math.max(Fa, X.frames[X.Am() - 1]) } tb.lB.push(new Gd(nf, hb, Fa)) } g = u; m = !0 } else g = c, m = d; this.LHa(g, m); this.j() }, SZ: function() { for (var c = f.gv, d = f.gv, e = f.p5, g = f.p5, h = this.ka, k = this.ra, m = [], n = this.$e.Ef, p = 0, s = n.length; p < s; ++p) { var u = n[p]; if (u.Xh && 0 == u.Xh.type) { var v = u.yl.x, z = u.yl.y, A = u.ij, B = m, u = u.Xh.offset, v = v + A.Qm, z = z + A.Rm; B[0] = u[0] * A.Hm + u[1] * A.Op + v; B[1] = u[0] * A.Im + u[1] * A.m11 + z; B[2] = u[2] * A.Hm + u[3] * A.Op + v; B[3] = u[2] * A.Im + u[3] * A.m11 + z; B[4] = u[4] * A.Hm + u[5] * A.Op + v; B[5] = u[4] * A.Im + u[5] * A.m11 + z; B[6] = u[6] * A.Hm + u[7] * A.Op + v; B[7] = u[6] * A.Im + u[7] * A.m11 + z; c = Math.min(c, m[0] * h, m[6] * h, m[2] * h, m[4] * h); d = Math.min(d, m[1] * k, m[7] * k, m[3] * k, m[5] * k); e = Math.max(e, m[0] * h, m[6] * h, m[2] * h, m[4] * h); g = Math.max(g, m[1] * k, m[7] * k, m[3] * k, m[5] * k) } } h = this.Od(); return x(h.x + c, h.y + d, e - c, g - d) }, YC: function() { this.$e.YC() }, Pu: function() { this.$e.Pu() }, n2: function() { this.$e.n2() }, Q2: function() { this.$e.Q2() }, pH: function(c) { return this.$e.pH(c) }, S_: function(c) { return this.$e.S_(c) }, Qha: function(c) { var d = this.$e, e; a: { e = d.data.gia; for (var g = 0, h = e.length; g < h; g++) if (e[g].name == c) { e = e[g]; break a } e = null } if (!e) throw "Skin not found: " + c; d.Qha(e) }, rH: function(c, d) { var e = this.$e; return Ed(e, e.data.qH(c), d) }, Yx: function(c, d) { return this.$e.Yx(c, d) }, ee: function(c) { this.lN = c }, vg: function() { return this.lN }, LHa: function(c, d) { var e = this.$e = new Td(c); this.cua = 0 == e.xd.length ? null : e.xd[0]; this.xta = d; if (f.K === f.fb) for (var e = this.$e, g, h, k = 0, m = e.mu.length; k < m; k++) { var n = e.mu[k]; g = n.Xh; g instanceof Xd && (g = g.Sx, h = x(g.x, g.y, g.width, g.height), g = f.q.create(g.page.fa, h, g.rotate), this.n(g, -1), n.Dca = g) } }, DH: function(c) { return c.Sx.page.Sx }, ck: function() { return this.B }, ce: function(c) { this.B = c }, update: function(c) { this.$e.update(c); if (f.K === f.fb) { this.$a(); this.$e.YC(); c = this.$e.mu; for (var d = 0, e = c.length; d < e; d++) { var g = c[d], h = g.Xh, k = g.Dca; if (h instanceof Xd) { if (!k) { var m = h.Sx, m = f.q.create(m.page.fa, x(m.x, m.y, m.width, m.height), m.rotate); this.n(m, -1); g.Dca = m } k.za(!0); k.ce(f.Mc, g.data.wZ ? f.ONE : f.Lc); m = g.ij; k.o(m.Qm + h.x * m.Hm + h.y * m.Op, m.Rm + h.x * m.Im + h.y * m.m11); k.ib(m.ry, m.sy); k.yh(-(g.ij.uJ + h.rotation)) } else k && k.za(!1) } } }, ma: null, fn: function() { f.qC(this); var c = this.$a(), d = this.$e; d.r = c.r / 255; d.g = c.g / 255; d.b = c.b / 255; d.a = this.vb() / 255; this.lN && (d.r *= d.a, d.g *= d.a, d.b *= d.a); var e, g, h, k, m, n = new f.Yc, p = this.B, c = 0; for (m = d.Ef.length; c < m; c++) if (k = d.mu[c], k.Xh && 0 == k.Xh.type) { h = k.Xh; var s = this.DH(h); k.data.wZ != e ? (g && (g.yB(), g.AC()), e = !e, f.Fm(p.src, e ? f.ONE : p.ha)) : s != g && g && (g.yB(), g.AC()); g = s; s = g.Vb; if (g.cg == s && (g.yB(), g.AC(), !g.NQ(2 * g.cg))) return; ve(h, k, n, this.lN); g.rJ(n, s) } g && (g.yB(), g.AC()); e = f.If; if (this.BL) for (e.wj(0, 0, 255, 255), e.Ju(1), c = 0, m = d.Ef.length; c < m; c++) k = d.mu[c], k.Xh && 0 == k.Xh.type && (h = k.Xh, n = new f.Yc, ve(h, k, n), g = [], g.push(r(n.T.k.x, n.T.k.y)), g.push(r(n.aa.k.x, n.aa.k.y)), g.push(r(n.W.k.x, n.W.k.y)), g.push(r(n.Z.k.x, n.Z.k.y)), e.Sf(g, 4, !0)); if (this.AL) { e.Ju(2); e.wj(255, 0, 0, 255); c = 0; for (m = d.xd.length; c < m; c++) n = d.xd[c], e.Sn(r(n.Qm, n.Rm), r(n.data.length * n.Hm + n.Qm, n.data.length * n.Im + n.Rm)); e.C2(4); e.wj(0, 0, 255, 255); c = 0; for (m = d.xd.length; c < m; c++) n = d.xd[c], e.C_(r(n.Qm, n.Rm)), 0 == c && e.wj(0, 255, 0, 255) } }, Rq: function() { if (this.BL || this.AL) { var c = this.$e, d, e, g, h, k = f.If; if (this.BL) { k.wj(0, 0, 255, 255); k.Ju(1); var m = []; g = 0; for (h = c.Ef.length; g < h; g++) if (e = c.mu[g], e.Xh && 0 == e.Xh.type) { d = e.Xh; var n = m; if (n) { var p = {}; Yd(d, e.yl.x, e.yl.y, e.ij, p); n.length = 0; n.push(r(p[0], p[1])); n.push(r(p[6], p[7])); n.push(r(p[4], p[5])); n.push(r(p[2], p[3])) } k.Sf(m, 4, !0) } } if (this.AL) { k.Ju(2); k.wj(255, 0, 0, 255); g = 0; for (h = c.xd.length; g < h; g++) d = c.xd[g], k.Sn(r(d.Qm, d.Rm), r(d.data.length * d.Hm + d.Qm, d.data.length * d.Im + d.Rm)); k.C2(4); k.wj(0, 0, 255, 255); g = 0; for (h = c.xd.length; g < h; g++) d = c.xd[g], k.C_(r(d.Qm, d.Rm)), 0 === g && k.wj(0, 255, 0, 255) } } } }); we.prototype.ma = f.K === f.na ? we.prototype.fn : we.prototype.Rq; we.mxa = function(c, d) { var e = new we; e.KP.apply(e, arguments); return e }; we.create = function(c, d, e) { var g = new we; g.KP.apply(g, arguments); return g }; var ue = { iia: null, yGa: function(c) { this.iia = c }, load: function(c, d) { var e = f.path.join(f.path.dirname(this.iia), d); f.K === f.na ? (e = f.nb.vd(e), c.Sx = f.wq.create(e, 128), c.width = e.h0(), c.height = e.g0()) : c.fa = f.nb.vd(e) }, E5a: function() {} }; function ve(c, d, e, g) { var h = {}; Yd(c, d.yl.x, d.yl.y, d.ij, h); var k = d.yl.r * d.r * 255, m = d.yl.g * d.g * 255, n = d.yl.b * d.b * 255; d = d.yl.a * d.a; g && (k *= d, m *= d, n *= d); e.T.D.r = e.Z.D.r = e.W.D.r = e.aa.D.r = k; e.T.D.g = e.Z.D.g = e.W.D.g = e.aa.D.g = m; e.T.D.b = e.Z.D.b = e.W.D.b = e.aa.D.b = n; e.T.D.a = e.Z.D.a = e.W.D.a = e.aa.D.a = 255 * d; e.T.k.x = h[0]; e.T.k.y = h[1]; e.Z.k.x = h[2]; e.Z.k.y = h[3]; e.W.k.x = h[4]; e.W.k.y = h[5]; e.aa.k.x = h[6]; e.aa.k.y = h[7]; e.T.t.Da = c.fq[0]; e.T.t.ga = c.fq[1]; e.Z.t.Da = c.fq[2]; e.Z.t.ga = c.fq[3]; e.W.t.Da = c.fq[4]; e.W.t.ga = c.fq[5]; e.aa.t.Da = c.fq[6]; e.aa.t.ga = c.fq[7] } var xe = we.extend({ Ic: null, ad: null, bg: null, j: function() { this._super(); this.wGa(new $d(this.$e.data)) }, wGa: function(c) { c = new ce(c); c.Sp = this.jta.bind(this); c.sC = this.gta.bind(this); c.Rp = this.hta.bind(this); c.tC = this.ita.bind(this); this.Ic = c }, mha: function(c, d, e) { var g = this.Ic.data, h = Sd(g.fia, c); if (!h) throw "Animation not found: " + c; c = Sd(g.fia, d); if (!c) throw "Animation not found: " + d; g.mha(h, c, e) }, u2a: function(c, d) { this.ad = c; this.bg = d }, Xx: function(c, d, e) { var g = Sd(this.$e.data, d); return g ? this.Ic.Xx(c, g, e) : (f.log("Spine: Animation not found: " + d), 0) }, TG: function(c, d, e, g) { var h = Sd(this.$e.data, d); return h ? this.Ic.TG(c, h, e, g) : (f.log("Spine: Animation not found:" + d), 0) }, vda: function(c) { return this.Ic.vda(c) }, qca: function() { this.Ic.qca() }, MO: function(c) { this.Ic.MO(c) }, update: function(c) { this._super(c); c *= this.Wt; this.Ic.update(c); this.Ic.apply(this.$e); this.$e.YC() }, jta: function(c) { this.TK(c, 0, null, 0) }, hta: function(c) { this.TK(c, 1, null, 0) }, gta: function(c, d) { this.TK(c, 2, null, d) }, ita: function(c, d) { this.TK(c, 3, d, 0) }, TK: function(c, d, e, g) { this.ad && this.bg && this.bg.call(this.ad, this, c, d, e, g) } }); xe.mxa = function(c) { var d = new xe; d.KP.apply(d, arguments); return d }; xe.create = function(c, d, e) { var g = new xe; g.KP.apply(g, arguments); return g }; f.r0a = { hp: {}, D0a: function(c) { if (c instanceof f.v) { var d = c.constructor.prototype.IU; if (!d) { var e = { writable: !0, enumerable: !1, configurable: !0 }; e.value = da.Hda(); Object.defineProperty(c.constructor.prototype, "__pid", e) } this.hp[d] || (this.hp[d] = []); c.G5a(); this.hp[d].push(c) } }, ZBa: function(c) { return (c = this.hp[c.prototype.IU]) && 0 != c.length ? !0 : !1 }, p1a: function(c) { var d = c.constructor.prototype.IU; if (d && (d = this.hp[d])) for (var e = 0; e < d.length; e++) c === d[e] && (c.wh(), d.splice(e, 1)) }, aUa: function(c) { if (this.ZBa(c)) { var d = this.hp[c.prototype.IU], e = Array.prototype.slice.call(arguments); e.shift(); d = d.pop(); d.PQ.apply(d, e); return d } }, cRa: function() { for (var c in this.hp) for (var d = 0; d < this.hp[c].length; d++) this.hp[c][d].wh(); this.hp = {} } }; var Ha = { ica: "res/bg.png", jca: "res/board.png", qwa: "res/arron.png", dCa: "res/icon.png", qxa: "res/data_img_10_01.png" }, ye = [Ha.ica, Ha.jca, Ha.qwa, Ha.dCa, Ha.qxa, "res/LevelNumbers.png", "res/LevelNumbers.fnt", "res/data_img_01_list4.png", "res/data_img_01_list4.plist", "res/data_img_01_list5.png", "res/data_img_01_list5.plist"]; for (var S = [], Ae = [], Be = 0; 7 > Be; Be++) { S.push([]); for (var Ce = 0; 6 > Ce; Ce++) S[Be][Ce] = 0, Ae[Ce] = !1 } var De = [0, 50, 150, 300, 500, 800, 1200, 2E3, 3E3, 5E3], Ee = [50, 150, 300, 500, 800, 1200, 2E3, 3E3, 5E3, 999999], Fe = [99.5, 90, 80, 70, 60, 50, 40, 30, 20, 10], Ge = [99.5, 99.4, 89.9, 79.9, 69.9, 59.9, 49.9, 39.9, 29.9, 19.9], He = [0, 100, 300, 600, 1E3, 1500, 2200, 3E3, 4E3, 5500, 7500, 1E4, 15E3], Ie = [100, 300, 600, 1E3, 1500, 2200, 3E3, 4E3, 5500, 7500, 1E4, 15E3, 2E4], Je = [1, 5.5, 10.5, 15.5, 20.5, 25.5, 30.5, 40.5, 50.5, 60.5, 70.5, 80.5, 90.5], Ke = [5.5, 10.5, 15.5, 20.5, 25.5, 30.5, 40.5, 50.5, 60.5, 70.5, 80.5, 90.5, 99.5], Le = 0, Me = 0, T, Ne, Oe = 9999, Pe = !1, Qe = 9999, Re = !1, Se = 2E5, Te = !1, Ue = 0, Ve = 0, We = !0, Xe = !0, U = 0, Ye = 0, Ze = 0, $e = !1, af = 0, bf = !1, cf = null, df = null, ef = !0, $ = f.Je, ff = 0, gf = !1, hf = !1, jf = !1, kf = 0, lf = 0, uf = !1, wf = f.Me.extend({ mQa: null, HZ: null, Xd: null, Tca: 0, Zxa: 9999, aya: 9999, Yd: null, Uca: 0, $xa: 9999, bya: 9999, O: null, qe: 0, zXa: !0, ZB: !0, cYa: !0, $G: null, $O: null, XPa: 0, Pr: !0, ctor: function() { this._super(); f.Je.vp("res/data_img_01_list4.plist"); f.Je.vp("res/data_img_01_list5.plist"); var c = f.Q.Y; this.O = 62; var d = f.q.create(Ha.ica); d.Wa({ x: 200, y: c.height / 2, scale: 1, anchorX: 0.5, anchorY: 0.5 }); this.n(d, 0); this.HZ = f.q.create(Ha.jca); this.HZ.Wa({ x: 200, y: 65, scale: 1, anchorX: 0.5, anchorY: 0 }); this.n(this.HZ, 0); this.qe = 81; var e = c.height - 10, d = f.q.create(f.Je.Ca("data_img_06.png")); d.Wa({ x: 350, y: e, scale: 1, anchorX: 1, anchorY: 1 }); this.n(d, 1); var g = f.q.create(f.Je.Ca("data_img_09.png")); g.Wa({ x: 10, y: e, scale: 1, anchorX: 0, anchorY: 1 }); this.n(g, 1); var h = f.ws.create(); h.x = 0; h.y = 0; this.n(h, 1); var k = f.q.create("res/data_img_10_01.png"); k.Wa({ x: 200, y: c.height / 2, scale: 1, anchorX: 0.5, anchorY: 0.5 }); this.n(k, 1E3, 7007); k.visible = !1; c = f.Il.create(f.Je.Ca("help.png"), f.Je.Ca("help.png"), function() { var c = this.Za(7007); null != c && (jf = c.visible = !0) }, this); c.Wa({ x: 395, y: e - 10, anchorX: 1, anchorY: 1 }); h.n(c); Ze = Ye = U = 0; df = window.localStorage; cf = df.getItem("isStorage"); c = df.getItem("G3WE2AFG34"); null != c && (U = parseInt(c)); c = df.getItem("JDI392FS39K"); null != c && (Ye = parseInt(c)); c = df.getItem("DS2G34AH85F"); null != c && (Ze = parseInt(c)); kf = df.getItem("FK38USJSK2E"); lf = df.getItem("SJ903JLSHNQ"); c = f.qq.create(Ye.toString(), "res/LevelNumbers.fnt"); c.anchorX = 0; c.anchorY = 0.5; c.x = g.x + 0.6 * g.width; c.y = g.y - 0.6 * g.height; this.n(c, 1, 5050); af = d.x - 0.65 * d.width; numberFirstY = d.y - 0.6 * d.height; d = f.qq.create(U.toString(), "res/LevelNumbers.fnt"); d.anchorX = 0; d.anchorY = 0.5; d.x = af; d.y = numberFirstY; this.n(d, 1, 4050); null != cf && this.qCa(); this.ds(); return !0 }, qCa: function() { var c = df.getItem("DJIOSI3JSA"); if (null != c) { for (var d = !1, c = c.split("|"), e = 0; e < c.length; e++) { for (var g = 9999, h = 9999, k = 9999, m = c[e].split(","), n = 0; n < m.length; n++) 0 == n ? g = m[n] : 1 == n ? h = m[n] : 2 == n && (k = m[n]); g = parseInt(g); h = parseInt(h); k = parseInt(k); 0 <= g && 7 > g && 0 <= h && 6 > h && (2 == k || 4 == k || 8 == k || 16 == k || 32 == k || 64 == k || 128 == k || 256 == k || 512 == k || 1024 == k || 2048 == k) && (d = !0, S[g][h] = k, k = f.q.create($.Ca("number" + k + ".png")), k.Wa({ x: 14 + this.O * h + 0.5 * this.O, y: this.qe + this.O * g, scale: 1, anchorX: 0.5, anchorY: 0 }), this.n(k, 1, parseInt(1E3 + 10 * g + h))) } d || this.D0() } else this.D0() }, D0: function() { var c = Math.round(1 * f.U1()), d = c + 2; S[0][c] = 2; S[0][d] = 4; S[0][d + 2] = 8; for (c = 0; 7 > c; c++) for (d = 0; 6 > d; d++) if (c = parseInt(c), d = parseInt(d), 0 < S[c][d]) { var e = f.q.create($.Ca("number" + S[c][d] + ".png")); e.Wa({ x: 14 + this.O * d + 0.5 * this.O, y: this.qe + this.O * c, scale: 1, anchorX: 0.5, anchorY: 0 }); this.n(e, 1, 1E3 + 10 * c + d) } }, eza: function() { if (uf) { var c = 14 + 1.5 * T.O + T.O, d = T.qe + 7 * T.O + 14, e = f.q.create($.Ca("number2.png")); e.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(e, 200, 6500); c = 14 + 2.5 * T.O + T.O; e = f.q.create($.Ca("number8.png")); e.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(e, 200, 6501); c = 14 + 2.5 * T.O + T.O; d = T.qe + 5 * T.O; e = f.q.create($.Ca("hand.png")); e.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(e, 200, 6502); e.scale = 1.4; c = f.fe.create(f.Db.create(0.2, 1), f.pv.create(0.2, 10)); c = f.X.create(c, f.Nb.create(0.4), f.ua.create(T.fza, e, 1)); e.V(c); c = 14 + 2.5 * T.O + T.O; d = T.qe; e = f.q.create($.Ca("number2.png")); e.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(e, 200, 6503); c = f.Q.Y; d = f.q.create($.Ca("rawssdataNait.png")); d.Wa({ x: c.width / 2, y: c.height / 2, scale: 1, anchorX: 0.5, anchorY: 0.5 }); T.n(d, 1E3, 6001); d = f.q.create($.Ca("rawssdataNait6.png")); d.Wa({ x: 10, y: c.height - 160, scale: 1, anchorX: 0, anchorY: 1 }); T.n(d, 1E3, 6100) } }, fza: function() { if (uf) { var c = T.Za(6500), d = T.Za(6501), e = T.Za(6502), g = T.qe + 7 * T.O + 14, h = T.O, k = T.O, m = f.Dc.create(0.8, r(c.x - h, g)), n = f.Dc.create(0.8, r(c.x + k, g)), m = f.X.create(m, n, f.Nb.create(0.4), f.ua.create(T.gza, c, 0)); c.V(m); c = f.Dc.create(0.8, r(d.x - h, g)); g = f.Dc.create(0.8, r(d.x + k, g)); g = f.X.create(c, g); d.V(g); d = f.Dc.create(0.8, r(e.x - h, e.y)); k = f.Dc.create(0.8, r(e.x + k, e.y)); k = f.X.create(d, k); e.V(k) } }, gza: function() { if (uf) { var c = T.Za(6001), d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6001)); c.V(d); c = f.Q.Y; d = f.q.create($.Ca("rawssdataNait2.png")); d.Wa({ x: c.width / 2, y: c.height / 2 + 70, scale: 1, anchorX: 0.8, anchorY: 0 }); T.n(d, 1E3, 6002); d.opacity = 0; d.V(f.Xc.create(0.7, 255)); c = T.Za(6502); d = f.Dc.create(0.4, r(c.x, c.y - 140)); d = f.X.create(f.Nb.create(1.4), d, f.ua.create(T.hza, c, 0)); c.V(d) } }, hza: function() { if (uf) { var c = T.Za(6500), d = 14 + 2.5 * T.O + T.O, e = T.qe + T.O, g = f.Dc.create(0.4, r(d, e)), g = f.X.create(g, f.ua.create(T.gCa, c, 1)); c.V(g); c = T.Za(6501); d = f.Dc.create(0.4, r(d + T.O, e - T.O)); c.V(d); d = T.Za(6502); e = f.X.create(f.Xc.create(0.2, 0), f.ua.create(T.vj, d, 6502)); d.V(e) } }, gCa: function() { if (uf) { var c = T.Za(6002), d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6002)); c.V(d); c = f.Q.Y; d = f.q.create($.Ca("rawssdataNait3.png")); d.Wa({ x: c.width / 2, y: c.height / 2 - 120, scale: 1, anchorX: 0.5, anchorY: 0.5 }); T.n(d, 1E3, 6003); d.opacity = 0; d.V(f.Xc.create(0.7, 255)); c = T.Za(6503); null != c && T.removeChild(c, !0); var d = 14 + 2.5 * T.O + T.O, e = T.qe, c = f.q.create($.Ca("number4.png")); c.Wa({ x: d, y: e, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(c, 1, 7002); d = f.fe.create(f.Dc.create(0.4, r(d, e)), f.Xc.create(0.4, 0)); e = T.Za(6500); d = f.X.create(d, f.ua.create(T.vj, e, 6500)); e.V(d); d = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.Nb.create(0.6), f.ua.create(T.hCa, c, 0)); c.V(d) } }, hCa: function() { if (uf) { var c = T.Za(6003), d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6003)); c.V(d); c = f.Q.Y; d = f.q.create($.Ca("rawssdataNait4.png")); d.Wa({ x: c.width / 2, y: c.height / 2, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(d, 1E3, 6004); d.opacity = 0; d.V(f.Xc.create(0.7, 255)); c = f.X.create(f.Nb.create(1.2), f.ua.create(T.iCa, this, 0)); this.V(c) } }, iCa: function() { if (uf) { var c = 14 + 2.5 * T.O + T.O, d = T.qe + 7 * T.O + 14, e = f.q.create($.Ca("number4.png")); e.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(e, 200, 6600); c = 14 + 3.5 * T.O + T.O; e = f.q.create($.Ca("number16.png")); e.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(e, 200, 6601); c = f.Dc.create(0.1, r(c - T.O, d + T.O)); e.V(c); c = 14 + 2.5 * T.O + T.O; d = T.qe + 5 * T.O; e = f.q.create($.Ca("hand.png")); e.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(e, 200, 6602); e.scale = 1.4; c = f.fe.create(f.Db.create(0.2, 1), f.pv.create(0.2, 10)); c = f.X.create(c, f.Nb.create(1.2), f.ua.create(T.jCa, e, 1)); e.V(c) } }, jCa: function() { if (uf) { var c = T.Za(6004), d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6004)); c.V(d); c = f.Q.Y; d = f.q.create($.Ca("rawssdataNait2.png")); d.Wa({ x: c.width / 2, y: c.height / 2 + 70, scale: 1, anchorX: 1, anchorY: 0 }); T.n(d, 1E3, 6005); d.opacity = 0; d.V(f.Xc.create(0.7, 255)); c = T.Za(6602); d = f.Dc.create(0.4, r(c.x, c.y - 140)); d = f.X.create(f.Nb.create(1.2), d, f.ua.create(T.kCa, c, 0)); c.V(d) } }, kCa: function() { if (uf) { var c = T.Za(6005), d = f.X.create(f.Xc.create(0.7, 0), f.ua.create(T.vj, c, 6005)); c.V(d); var e = T.Za(6600), d = 14 + 2.5 * T.O + T.O, c = T.qe + T.O, g = f.Dc.create(0.4, r(d, c)), g = f.X.create(g, f.ua.create(T.lCa, e, 1)); e.V(g); e = T.Za(6601); d = f.Dc.create(1, r(d, c)); e.V(d); c = T.Za(6602); d = f.X.create(f.Xc.create(0.2, 0), f.ua.create(T.vj, c, 6602)); c.V(d) } }, lCa: function() { if (uf) { var c = T.Za(7002); null != c && T.removeChild(c, !0); var c = 14 + 2.5 * T.O + T.O, d = T.qe, e = f.fe.create(f.Dc.create(0.4, r(c, d)), f.Xc.create(0.4, 0)), g = T.Za(6600), e = f.X.create(f.Nb.create(0.1), e, f.ua.create(T.vj, g, 6600)); g.V(e); g = f.q.create($.Ca("number8.png")); g.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(g, 1, 6603); c = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.mCa, g, 0)); g.V(c) } }, mCa: function() { if (uf) { var c = T.Za(6603); null != c && T.removeChild(c, !0); var c = 14 + 2.5 * T.O + T.O, d = T.qe, e = f.fe.create(f.Dc.create(0.4, r(c, d)), f.Xc.create(0.4, 0)), g = T.Za(6501), e = f.X.create(f.Nb.create(0.1), e, f.ua.create(T.vj, g, 6501)); g.V(e); g = f.q.create($.Ca("number16.png")); g.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(g, 1, 6605); c = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.nCa, g, 0)); g.V(c) } }, nCa: function() { if (uf) { var c = T.Za(6605); null != c && T.removeChild(c, !0); var c = 14 + 2.5 * T.O + T.O, d = T.qe, e = f.fe.create(f.Dc.create(0.4, r(c, d)), f.Xc.create(0.4, 0)), g = T.Za(6601), e = f.X.create(f.Nb.create(0.1), e, f.ua.create(T.vj, g, 6601)); g.V(e); g = f.q.create($.Ca("number32.png")); g.Wa({ x: c, y: d, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(g, 1, 1003); S[0][3] = 32; c = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.oCa, g, 0)); g.V(c) } }, oCa: function() { if (uf) { T.te(6100, !0); var c = f.Q.Y, d = f.q.create($.Ca("rawssdataNait5.png")); d.Wa({ x: c.width / 2, y: c.height / 2, scale: 1, anchorX: 0.5, anchorY: 0.5 }); T.n(d, 1E3, 6005); d.opacity = 0; c = f.X.create(f.Xc.create(0.4, 255), f.Nb.create(0.7), f.Xc.create(0.7, 0), f.ua.create(T.vj, d, 6005)); d.V(c); df.setItem("isStorage", 3); cf = 3; uf = !1; vf = !0; T.KR() } }, update: function(c) { if (!Te) { if (We) { We = !1; if (null == cf) { uf = !0; this.eza(); return } 1 == Ze ? (Ze = 3, Ne.visible = !0, Ne.uZ(2), T.Pr = !1) : $e ? ($e = !1, Ne.visible = !0, Ne.uZ(3), T.Pr = !1) : (vf = !0, this.KR()) } Ve += c; 1E3 < Ve && (Ve = 0); ef || 1 != getCallback() || (T.qga(), ef = !0) } }, rQ: function() { if (!Te) { for (var c = Me = 0; 7 > c; c++) for (var d = 0; 6 > d; d++) if (c = parseInt(c), d = parseInt(d), 0 < S[c][d] && 0 < c && 0 == S[c - 1][d]) { var e = T.Za(1E3 + 10 * c + d), g = 14 + 0.5 * T.O + T.O * d, h = T.qe + T.O * (c - 1); e.tag = 1E3 + 10 * (c - 1) + d; g = f.X.create(f.Dc.create(0.2, r(g, h)), f.ua.create(T.TDa, e, 0)); e.V(g); S[c - 1][d] = S[c][d]; S[c][d] = 0; Me++; Ue++ } if (0 == Me) if (0 == Ue) { for (c = 0; 6 > c; c++) if (0 < S[6][c]) { Te = !0; Ne.visible = !0; Ne.uZ(1); return } hf ? gf ? (T.ZB = !0, T.KR()) : (gf = !0, ff = 1, T.Sca()) : (hf = !0, ff = 1, T.Rca()) } else T.i_() } }, TDa: function() { Me--; 0 >= Me && (Ue = 1, T.rQ()) }, i_: function() { if (!Te) { Xe = !0; for (var c = 0; 7 > c; c++) for (var d = 0; 6 > d; d++) if (c = parseInt(c), d = parseInt(d), 0 < S[c][d] && 0 < c && Xe && 0 < S[c - 1][d] && S[c][d] == S[c - 1][d]) { var e = T.Za(1E3 + 10 * (c - 1) + d); null != e && T.removeChild(e, !0); e = T.Za(1E3 + 10 * c + d); null != e && (Se++, e.tag = Se); var g = 14 + 0.5 * T.O + T.O * d, h = T.qe + T.O * (c - 1), k = 2 * S[c - 1][d], m = k; 4096 == k && (m = 2048); m = f.q.create($.Ca("number" + m + ".png")); m.Wa({ x: g, y: h, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(m, 1, 1E3 + 10 * (c - 1) + d); S[c - 1][d] = k; S[c][d] = 0; var n = f.fe.create(f.Dc.create(0.4, r(g, h)), f.Xc.create(0.4, 0)), n = f.X.create(n, f.ua.create(T.vj, e, Se)); e.V(n); e = [g, h, k, c - 1, d]; n = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.dda, m, e)); m.V(n); Xe = !1; break } if (Xe) if (bf) T.JDa(); else { e = !0; bf = !1; for (c = 0; 7 > c; c++) for (d = 0; 6 > d; d++) if (c = parseInt(c), d = parseInt(d), 0 < S[c][d] && 0 < d && e && 0 < S[c][d - 1] && S[c][d] == S[c][d - 1]) { e = T.Za(1E3 + 10 * c + (d - 1)); null != e && T.removeChild(e, !0); e = T.Za(1E3 + 10 * c + d); null != e && (Se++, e.tag = Se); g = 14 + 0.5 * T.O + T.O * (d - 1); h = T.qe + T.O * c; m = k = 2 * S[c][d - 1]; 4096 == k && (m = 2048); m = f.q.create($.Ca("number" + m + ".png")); m.Wa({ x: g, y: h, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(m, 1, 1E3 + 10 * c + (d - 1)); S[c][d - 1] = k; S[c][d] = 0; n = f.fe.create(f.Dc.create(0.4, r(g, h)), f.Xc.create(0.4, 0)); n = f.X.create(n, f.ua.create(T.vj, e, Se)); e.V(n); e = [g, h, k, c, d - 1]; n = f.X.create(f.Db.create(0.2, 1.2), f.Db.create(0.2, 1), f.ua.create(T.dda, m, e)); m.V(n); g = !1; for (e = 0; 7 > e; e++) if (e = parseInt(e), 0 < S[e][d]) { g = !0; break } if (!g && (g = parseInt(d), 5 > d)) for (d += 1; 6 > d; d++) if (d = parseInt(d), g + 1 == d) { h = !1; for (e = 0; 7 > e; e++) if (0 < S[e][d]) { h = !0; break } h && 0 < d && (bf = !0, Ae[d] = !0, g = d) } else break; e = !1; break } e && (Ue = 0, T.rQ()) } } }, dda: function(c, d) { var e = d[0], g = d[1] + 0.4 * T.O, h = d[2], k = d[3], m = d[4]; Se++; var n = f.q.create($.Ca("data.dat_000034.png")); n.Wa({ x: e, y: g, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(n, 1E4, Se); e = f.fe.create(f.Xc.create(0.2, 255), f.Dc.create(0.4, r(e, g + 20))); e = f.X.create(e, f.ua.create(T.vj, n, Se)); n.V(e); T.hha(1); if (2048 == h && 0 == Ze) We = !0, Ze = 1; else if (100 == U || 300 == U || 500 == U || 1E3 == U || 1500 == U || 2E3 == U || 2500 == U || 3E3 == U || 3500 == U || 4E3 == U || 4500 == U || 5E3 == U || 5500 == U || 6E3 == U || 6500 == U || 7E3 == U || 7500 == U || 8E3 == U || 8500 == U || 9E3 == U || 9500 == U || 1E4 == U) $e = We = !0; 2048 == h && T.iha(1); 4096 == h && (S[k][m] = 0, h = T.Za(1E3 + 10 * k + m), null != h && T.removeChild(h, !0)); Ue = 1; T.rQ() }, JDa: function() { if (!Te) { Le = 0; for (var c = !1, d = 0; 6 > d; d++) if (d = parseInt(d), Ae[d]) for (var e = 0; 7 > e; e++) if (e = parseInt(e), 0 < S[e][d]) { Le++; var c = T.Za(1E3 + 10 * e + d), g = d - 1; c.tag = 1E3 + 10 * e + g; var h = f.Dc.create(0.4, r(14 + 0.5 * T.O + T.O * g, T.qe + T.O * e)), h = f.X.create(h, f.ua.create(T.dza, c, 0)); c.V(h); S[e][g] = S[e][d]; S[e][d] = 0; c = !0 } for (d = 0; 6 > d; d++) Ae[d] = !1; bf = !1; c || (Ue = 1, T.rQ()) } }, dza: function() { Le--; 0 >= Le && T.i_() }, KR: function() { if (T.ZB) { T.ZB = !1; T.Pr = !0; for (var c = 2, d = 4, e = 0; 2 > e; e++) { var g = 14 + 2.5 * T.O + T.O * e, h = T.qe + 7 * T.O + 14; if (0 == e) { var k = Math.round(3 * f.U1()) + 1; 1 == k ? c = 2 : 2 == k ? c = 4 : 3 == k ? c = 8 : 4 == k && (c = 16); null == kf || 2 != kf && 4 != kf && 8 != kf && 16 != kf || (c = kf); T.Xd = f.q.create($.Ca("number" + c + ".png")); T.Xd.Wa({ x: g, y: h, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(T.Xd, 200, 3E3); df.setItem("FK38USJSK2E", c); kf = 0; Oe = 2; Pe = !1; T.Tca = c } else if (1 == e) { for (var m = 0; 100 > m && (k = Math.round(3 * f.U1()) + 1, 1 == k ? d = 2 : 2 == k ? d = 4 : 3 == k ? d = 8 : 4 == k && (d = 16), c == d); m++); c == d && (2 == c ? d = 4 : 4 == c ? d = 2 : 8 == c ? d = 4 : 16 == c && (d = 8)); null == lf || 2 != lf && 4 != lf && 8 != lf && 16 != lf || (d = lf); T.Yd = f.q.create($.Ca("number" + d + ".png")); T.Yd.Wa({ x: g, y: h, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(T.Yd, 200, 3001); df.setItem("SJ903JLSHNQ", d); lf = 0; Qe = 3; Re = !1; T.Uca = d } } this.bia(!0) } }, bia: function(c) { for (var d, e = 0; 7 > e; e++) for (var g = 0; 6 > g; g++) { var h = 0; c && (h = S[e][g]); d = 0 == e && 0 == g ? e + "," + g + "," + h + "|" : 6 == e && 5 == g ? d + e + "," + g + "," + h : d + e + "," + g + "," + h + "|" } c ? (df.setItem("G3WE2AFG34", U), df.setItem("JDI392FS39K", Ye), df.setItem("DS2G34AH85F", Ze)) : (df.setItem("G3WE2AFG34", 0), df.setItem("JDI392FS39K", 0), df.setItem("DS2G34AH85F", 0)); df.setItem("DJIOSI3JSA", d) }, ba: function() { this._super(); f.Qa.addListener({ event: f.Xa.zs, rc: function(c) { if (Te || !T.Pr || !0 == Ne.visible) return !1; if (uf) T.te(6500, !0), T.te(6501, !0), T.te(6502, !0), T.te(6503, !0), T.te(6001, !0), T.te(6002, !0), T.te(6003, !0), T.te(6004, !0), T.te(6005, !0), T.te(7002, !0), T.te(6600, !0), T.te(6601, !0), T.te(6602, !0), T.te(6603, !0), T.te(6604, !0), T.te(6605, !0), T.te(6100, !0), df.setItem("isStorage", 3), cf = 3, T.D0(), uf = !1, vf = !0, T.KR(); else { if (jf) { var d = T.Za(7007); if (null != d) return jf = d.visible = !1 } Ve = 0; T.$G = c.cf(); T.$O = c.cf(); return !0 } }, hd: function(c) { if (!Te && !0 != Ne.visible && !T.ZB && T.Pr) { var d = c.cf(), e = Math.abs(T.$O.x - d.x); 15 < Math.abs(Math.abs(d.x - T.$G.x)) && 5 < e && (d = T.$O.x - d.x, T.Xd.x -= d, T.Yd.x -= d); T.$O = c.cf() } }, gd: function(c) { if (!Te && !0 != Ne.visible && !T.ZB && T.Pr) { var d = c.cf(); c = Math.abs(d.y - T.$G.y); if (Oe <= Qe) if (T.Xd.x < 14 + 0.5 * T.O) { var e = 14 + 0.5 * T.O - T.Xd.x; T.Xd.x = 14 + 0.5 * T.O; T.Yd.x += e } else T.Yd.x > 14 + 6 * T.O - 0.5 * T.O && (e = T.Yd.x - (14 + 6 * T.O - 0.5 * T.O), T.Yd.x = 14 + 6 * T.O - 0.5 * T.O, T.Xd.x -= e); else T.Yd.x < 14 + 0.5 * T.O ? (e = 14 + 0.5 * T.O - T.Yd.x, T.Yd.x = 14 + 0.5 * T.O, T.Xd.x += e) : T.Xd.x > 14 + 6 * T.O - 0.5 * T.O && (e = T.Xd.x - (14 + 6 * T.O - 0.5 * T.O), T.Xd.x = 14 + 6 * T.O - 0.5 * T.O, T.Yd.x -= e); for (var e = 9999, g = 0; 6 > g; g++) if (T.Xd.x > 14 + T.O * g && T.Xd.x <= 14 + T.O * (g + 1)) { e = g; break } 9999 != e && (Oe = e, T.Xd.x = 14 + 0.5 * T.O + T.O * Oe); e = 9999; for (g = 0; 6 > g; g++) if (T.Yd.x > 14 + T.O * g && T.Yd.x <= 14 + T.O * (g + 1)) { e = g; break } 9999 != e && (Qe = e, T.Yd.x = 14 + 0.5 * T.O + T.O * Qe); e = Math.abs(d.x - T.$G.x); ff = 2; if (0.4 > Ve && 50 < c && 70 > e && T.$G.y > d.y) { if (Oe != Qe) { hf = gf = !0; T.Pca(); T.Qca(); return } if (Re) { (c = T.Pca()) ? (hf = gf = !0, T.Rca()) : (ff--, hf = !1); return } if (Pe) { (c = T.Qca()) ? (hf = gf = !0, T.Sca()) : (ff--, gf = !1); return } } d = T.qe + 7 * T.O + 14; 10 > e && 10 > c && (Oe < Qe ? (Qe = Oe, Re = !0, T.Yd.y = d + T.O) : Oe == Qe ? 0 == Oe ? Re ? (Oe += 1, Qe = Oe - 1, T.Yd.y = d, Re = !1) : Pe && (Qe = Oe + 1, T.Xd.y = d, Pe = !1) : 5 == Oe ? Re ? (Qe = Oe - 1, T.Yd.y = d, Re = !1) : Pe && (Oe -= 1, T.Xd.y = d, Pe = !1) : Re ? (Qe = Oe - 1, T.Yd.y = d, Re = !1) : Pe && (Qe = Oe + 1, T.Xd.y = d, Pe = !1) : Oe > Qe && (Qe = Oe, Pe = !0, T.Xd.y = d + T.O), T.Xd.x = 14 + 0.5 * T.O + T.O * Oe, T.Yd.x = 14 + 0.5 * T.O + T.O * Qe) } } }, this) }, lH: function(c) { var d = f.Dc.create(0.4, r(14 + 0.5 * T.O + T.O * Oe, T.qe + T.O * c)); T.Zxa = c; T.aya = Oe; T.Xd.tag = 1E3 + 10 * c + Oe; S[c][Oe] = T.Tca; c = f.X.create(d, f.ua.create(T.$ca, T.Xd, 1)); T.Xd.V(c); T.Pr = !1 }, mH: function(c) { var d = f.Dc.create(0.4, r(14 + 0.5 * T.O + T.O * Qe, T.qe + T.O * c)); T.$xa = c; T.bya = Qe; T.Yd.tag = 1E3 + 10 * c + Qe; S[c][Qe] = T.Uca; c = f.X.create(d, f.ua.create(T.$ca, T.Yd, 2)); T.Yd.V(c); T.Pr = !1 }, Pca: function() { for (var c = 5; 0 <= c; c--) { if (0 < S[c][Oe]) { if (5 == c) return T.lH(c + 1), !1; T.lH(c + 1); return !0 } if (0 == c) return T.lH(c), !0 } }, Qca: function() { for (var c = 5; 0 <= c; c--) { if (0 < S[c][Qe]) { if (5 == c) return T.mH(c + 1), !1; T.mH(c + 1); return !0 } if (0 == c) return T.mH(c), !0 } }, Rca: function() { for (var c = 5; 0 <= c; c--) { if (0 < S[c][Qe]) { T.mH(c + 1); break } if (0 == c) { T.mH(c); break } } }, Sca: function() { for (var c = 5; 0 <= c; c--) { if (0 < S[c][Oe]) { T.lH(c + 1); break } if (0 == c) { T.lH(c); break } } }, Ra: function() { this._super() }, $ca: function() { ff--; 0 >= ff && T.i_() }, vj: function(c, d) { T.te(d) }, $Fa: function() { if (vf) { vf = !1; for (var c = 0; 7 > c; c++) for (var d = 0; 6 > d; d++) S[c][d] = 0, Ae[d] = !1, T.te(1E3 + 10 * c + d); Se = 2E5; T.te(3E3); T.te(3001); Ne.visible = !1; S[0][0] = 2; S[0][2] = 4; S[0][4] = 8; T.qe = 81; for (c = 0; 7 > c; c++) for (d = 0; 6 > d; d++) if (0 < S[c][d]) { var e = f.q.create($.Ca("number" + S[c][d] + ".png")); e.Wa({ x: 14 + T.O * d + 0.5 * T.O, y: T.qe + T.O * c, scale: 1, anchorX: 0.5, anchorY: 0 }); T.n(e, 1, 1E3 + 10 * c + d) } Te = !1; We = T.ZB = !0; U = 0; T.hha(0); Ye = 0; T.iha(0) } }, qga: function() { Te = Ne.visible = !1; ef = T.Pr = !0 }, hha: function(c) { U += c; c = T.Za(4050); if (null != c) { c.wa(U.toString()); var d = f.X.create(f.Db.create(0.2, 1.4), f.Db.create(0.2, 1)); c.V(d) } }, iha: function(c) { Ye += c; c = T.Za(5050); if (null != c) { c.wa(Ye.toString()); var d = f.X.create(f.Db.create(0.2, 1.4), f.Db.create(0.2, 1)); c.V(d) } } }), vf = !0, xf = f.Me.extend({ iB: !1, Z5a: null, Qg: null, wg: null, xi: null, Gr: null, ix: null, Zk: null, ctor: function() { this._super(); this.Qg = new f.q($.Ca("data_img_04.png")); this.Qg.x = f.gq.width / 2; this.Qg.anchorY = 0.2; this.Qg.y = f.gq.height / 2; this.n(this.Qg); var c = this.Qg.x + 0.5 * this.Qg.width - 20, d = this.Qg.y - 0.2 * this.Qg.height + 20; this.Gr = f.Il.create($.Ca("data_img_01.png"), $.Ca("data_img_01.png"), function() { clickShareSet() }, this); this.Gr.Wa({ x: c, y: d, anchorX: 1, anchorY: 0 }); var e = f.ws.create(this.Gr); e.x = 0; e.y = 0; this.n(e, 1); this.Gr.visible = !1; this.ku = f.Il.create($.Ca("data_img_10_03.png"), $.Ca("data_img_10_03.png"), function() { clickShareSet() }, this); this.ku.Wa({ x: c, y: d, anchorX: 1, anchorY: 0 }); e.n(this.ku); this.ku.visible = !1; this.xi = f.Il.create($.Ca("data_img_10_02.png"), $.Ca("data_img_10_02.png"), function() { clickShareSet() }, this); this.xi.Wa({ x: c, y: d, anchorX: 1, anchorY: 0 }); e.n(this.xi); this.xi.visible = !1; this.lu = f.Il.create($.Ca("data_img_09_01.png"), $.Ca("data_img_09_01.png"), function() { clickShareSet() }, this); this.lu.Wa({ x: c, y: d, anchorX: 1, anchorY: 0 }); e.n(this.lu); this.lu.visible = !1; this.Rn = f.Il.create($.Ca("data_img_09_02.png"), $.Ca("data_img_09_02.png"), function() { clickShareSet() }, this); this.Rn.Wa({ x: c, y: d, anchorX: 1, anchorY: 0 }); e.n(this.Rn); this.Rn.visible = !1; c = this.Qg.x - 0.5 * this.Qg.width + 20; this.ix = f.Il.create($.Ca("data_img_02.png"), $.Ca("data_img_02.png"), function() { T.$Fa(); shareSet("\u65cb\u8f6c\u5e76\u4e0b\u843d\u6570\u5b57\uff0c\u76f8\u540c\u7684\u6570\u5b57\u78b0\u649e\u540e\u7ffb\u500d\uff0c\u770b\u4f60\u591a\u5c11\u6b21\u80fd\u641e\u52302048") }, this); this.ix.Wa({ x: c, y: d, anchorX: 0, anchorY: 0 }); e.n(this.ix); this.ix.visible = !1; this.Zk = f.Il.create($.Ca("data_img_07.png"), $.Ca("data_img_07.png"), function() { T.qga() }, this); this.Zk.Wa({ x: c, y: d, anchorX: 0, anchorY: 0 }); e.n(this.Zk); this.Zk.visible = !1; c = this.Qg.x; this.dH = f.Il.create($.Ca("data_img_14_01.png"), $.Ca("data_img_14_01.png"), function() { clickSC() }, this); this.dH.Wa({ x: c, y: d, anchorX: 0.5, anchorY: 0 }); e.n(this.dH) }, ba: function() { this._super() }, Ra: function() { this._super() }, uZ: function(c) { null != this.wg && this.removeChild(this.wg, !0); if (1 == c) { this.ix.visible = !0; this.Zk.visible = !1; this.xi.visible = !1; this.lu.visible = !1; this.Rn.visible = !1; this.dH.x = this.Qg.x; T.bia(!1); c = 1; for (var d = 0; 12 >= d; d++) if (U <= Ie[d]) { if (0 < U) { c = Ie[d] - He[d]; var e = U - He[d]; c = e / c; e = Ke[d] - Je[d]; c = c * e + Je[d]; c = this.T_(parseFloat(c)) } break } 60.5 <= c ? (d = "\u5171\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u667a\u6167\u3001\u8010\u5fc3\u3001\u8fd0\u6c14\u90fd\u5c5e\u4e8e\u6781\u54c1\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u4e00\u5b9a\u8981\u70ab\u7ed9\u597d\u53cb\u770b\u770b\u5662", this.Gr.visible = !0, this.ku.visible = !1) : 20.5 <= c && 60.5 > c ? (d = "\u5171\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u5f88\u6709\u667a\u6167\u548c\u8010\u5fc3\u5662\uff0c\u8bb0\u5f97\u53bb\u5206\u4eab\u4fdd\u5b58\u8fd9\u4e2a\u8bb0\u5f55\u5662", this.Gr.visible = !0, this.ku.visible = !1) : (d = "\u5171\u5b8c\u6210\u4e86" + U + "\u6b21\u5408\u5e76\uff0c\u8fd8\u4e0d\u9519\u5662\uff0c\u76f8\u4fe1\u4f60\u8fd8\u80fd\u505a\u7684\u66f4\u597d\uff0c\u5206\u4eab\u4e0b\u8ba9\u597d\u53cb\u7ed9\u4e9b\u9f13\u52b1\u5427", this.Gr.visible = !1, this.ku.visible = !0); c = 0 < Ye ? "\u6211\u5b8c\u6210" + U + "\u6b21\u5408\u5e76,\u641e\u5b9a\u4e86" + Ye + "\u4e2a\u201c2048\u201d\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6" : "\u6211\u5b8c\u6210" + U + "\u6b21\u5408\u5e76,\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6"; window.__score = U; /*play68_submitScore(U);*/ // Play68.setRankingScoreDesc(U); shareSet(c); this.wg = new f.ia(d, "\u5b8b\u4f53", 22, t(0.8 * f.gq.width, 270), f.Bo); this.wg.x = this.Qg.x; this.wg.y = this.Qg.y - 5; this.wg.anchorY = 0.5; this.wg.color = f.color(250, 120, 5); this.n(this.wg) } else if (2 == c) { this.ix.visible = !1; this.Gr.visible = !1; this.lu.visible = !1; this.ku.visible = !1; this.Zk.visible = !0; ef = !1;; c = 99.5; for (d = 0; 9 >= d; d++) if (U <= Ee[d]) { 0 < U && (c = Ee[d] - De[d], e = U - De[d], c = e / c, e = Ge[d] - Fe[d], c = c * e + Fe[d], c = this.T_(parseFloat(c))); break } if (80 <= c) { d = "\u4eba\u54c1\u592a\u597d\u4e86\uff0c\u7adf\u7136\u53ea\u7528" + U + "\u6b21\u5c31 \u641e\u5b9a\u4e862048\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c \u5feb\u53bb\u5206\u4eab\u6c38\u4e45\u7559\u5ff5\u5427"; this.xi.visible = !0; this.Rn.visible = !1; var e = this.xi.x - this.xi.width, g = this.Zk.x + this.Zk.width } else 60 <= c && 80 > c ? (d = "\u8fd0\u6c14\u4e0d\u9519\uff0c\u7528\u4e86" + U + "\u6b21\u5c31 \u641e\u5b9a\u4e862048\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u522b\u5fd8\u4e86\u5206\u4eab\u4fdd\u5b58\u4e0b\u8fd9\u4e2a\u8bb0\u5f55", this.xi.visible = !0, this.Rn.visible = !1, e = this.xi.x - this.xi.width) : 30 <= c && 60 > c ? (d = "\u8f9b\u82e6\u4e86\uff0c\u7528\u4e86" + U + "\u6b21\u7ec8\u4e8e\u641e\u5b9a\u4e862048\uff0c\u5206\u4eab\u53ef\u4ee5\u6c38\u4e45\u4fdd\u5b58\u8fd9\u4e2a\u8bb0\u5f55\u5662", this.xi.visible = !0, this.Rn.visible = !1, e = this.xi.x - this.xi.width) : (d = "\u8010\u5fc3\u503c\u5f97\u9f13\u52b1\uff0c\u7528\u4e86" + U + "\u6b21\u7ec8\u4e8e\u641e\u5b9a2048\uff0c\u5206\u4eab\u7559\u7eaa\u5ff5\u5427", this.xi.visible = !1, this.Rn.visible = !0, e = this.Rn.x - this.Rn.width), g = this.Zk.x + this.Zk.width; e = g + (e - g) / 2; this.dH.x = e; c = "\u6211\u5408\u5e76\u4e86" + U + "\u6b21\u540e\uff0c\u641e\u5b9a\u4e862048\uff0c\u8d85\u8fc7" + c + "%\u7684\u73a9\u5bb6"; /*play68_submitScore(U);*/ window.__score = U; shareSet(c); this.wg = new f.ia(d, "\u5b8b\u4f53", 22, t(0.8 * f.gq.width, 270), f.Bo); this.wg.x = this.Qg.x; this.wg.y = this.Qg.y - 10; this.wg.anchorY = 0.5; this.wg.color = f.color(250, 120, 5); this.n(this.wg) } else if (3 == c) { this.ix.visible = !1; this.xi.visible = !1; this.Rn.visible = !1; this.Gr.visible = !1; this.ku.visible = !1; this.lu.visible = !0; this.Zk.visible = !0; e = this.lu.x - this.lu.width; g = this.Zk.x + this.Zk.width; this.dH.x = g + (e - g) / 2; ef = !1; c = 1; for (d = 0; 12 >= d; d++) if (U <= Ie[d]) { 0 < U && (c = Ie[d] - He[d], e = U - He[d], c = e / c, e = Ke[d] - Je[d], c = c * e + Je[d], c = this.T_(parseFloat(c))); break } d = 100 == U ? "\u5df2\u7ecf\u5b8c\u6210\u4e86" + U + "\u6b21\u5408\u5e76\uff0c\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u5206\u4eab\u8ba9\u597d\u53cb\u9001\u9c9c\u82b1\u5427" : 300 == U || 500 == U ? "\u5df2\u7ecf\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u6392\u540d\u53c8\u524d\u8fdb\u4e86\uff0c\u5df2\u7ecf\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u5206\u4eab\u8ba9\u670b\u53cb\u89c1\u8bc6\u4e0b\u4f60\u7684\u6218\u679c\u5427" : "\u5df2\u7ecf\u5b8c\u6210\u4e86" + U + "\u6b21\u5408\u5e76\uff0c\u6392\u540d\u7a33\u6b65\u524d\u8fdb\uff0c\u5df2\u7ecf\u8d85\u8fc7\u4e86" + c + "%\u7684\u73a9\u5bb6\uff0c\u5206\u4eab\u8ba9\u597d\u53cb\u7fa1\u6155\u4f60\u7684\u667a\u6167\u5427"; c = "\u6211\u5df2\u7ecf\u5b8c\u6210" + U + "\u6b21\u5408\u5e76\uff0c\u51fb\u8d25" + c + "%\u7684\u73a9\u5bb6\uff0c\u8fd8\u5728\u7ee7\u7eed\u52aa\u529b"; window.__score = U; /*play68_submitScore(window.__score);*/ shareSet(c); this.wg = new f.ia(d, "\u5b8b\u4f53", 22, t(0.8 * f.gq.width, 270), f.Bo); this.wg.x = this.Qg.x; this.wg.y = this.Qg.y - 5; this.wg.anchorY = 0.5; this.wg.color = f.color(250, 120, 5); this.n(this.wg) } }, T_: function(c) { return Math.round(c * Math.pow(10, 2)) / Math.pow(10, 2) } }), yf = f.tq.extend({ ba: function() { this._super(); T = new wf; this.n(T); Ne = new xf; this.n(Ne, 1E4, 3002); Ne.visible = !1 } }); f.vf.Sp = function() { f.view.u2(400, 660, f.Dj.SHOW_ALL); f.view.aGa(!0); f.VW = "res/icon.png"; f.qNa = " "; f.eT.K1(ye, function() { f.Q.f2(new yf) }, this) }; f.vf.eGa();