!(function (e, t) { "use strict"; (e.openfl = e.openfl || {}), (e.lime = e.lime || {}); var s = {}, c = function () { return Lp.__string_rec(this, ""); }; function n(e, t) { function s() {} s.prototype = e; var n = new s(); for (var i in t) n[i] = t[i]; return ( t.toString !== Object.prototype.toString && (n.toString = t.toString), n ); } var qr = function () {}; ((s.ApplicationMain = qr).__name__ = ["ApplicationMain"]), (qr.config = null), (qr.preloader = null), (qr.create = function () { var e = new $g(); e.create(qr.config); var t = new Be(); (qr.preloader = new Dw(t)), e.setPreloader(qr.preloader), qr.preloader.onComplete.add(qr.init), qr.preloader.create(qr.config); var s = [], n = []; if ( (s.push("assets/sounds/2.m4a"), n.push("SOUND"), s.push("assets/sounds/8_Pop3.mp3"), n.push("MUSIC"), s.push("assets/sounds/14_FireRingSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/6_SelltowerSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/0.wav"), n.push("SOUND"), s.push("assets/sounds/18_metalclink.m4a"), n.push("SOUND"), s.push("assets/sounds/5_IceSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/18_metalclink.mp3"), n.push("MUSIC"), s.push("assets/sounds/1907.m4a"), n.push("SOUND"), s.push("assets/sounds/7_Pop4.m4a"), n.push("SOUND"), s.push("assets/sounds/2_Btd4Music.m4a"), n.push("MUSIC"), s.push("assets/sounds/3_CollectUnlockSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/2135.mp3"), n.push("MUSIC"), s.push("assets/sounds/16_CeramicSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/4_TornadoSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/9_Pop2.m4a"), n.push("SOUND"), s.push("assets/sounds/19_BombSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/11_TowerPlaceSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/19_BombSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/3_CollectUnlockSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/4_TornadoSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/13_RankUpSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/7_Pop4.mp3"), n.push("MUSIC"), s.push("assets/sounds/17_splat.m4a"), n.push("SOUND"), s.push("assets/sounds/1_ZeppHitSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/13_RankUpSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/8_Pop3.m4a"), n.push("SOUND"), s.push("assets/sounds/0.m4a"), n.push("SOUND"), s.push("assets/sounds/1_ZeppHitSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/2_Btd4Music.mp3"), n.push("MUSIC"), s.push("assets/sounds/2135.m4a"), n.push("SOUND"), s.push("assets/sounds/6_SelltowerSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/9_Pop2.mp3"), n.push("MUSIC"), s.push("assets/sounds/1907.mp3"), n.push("MUSIC"), s.push("assets/sounds/15_ZeppSmash.m4a"), n.push("SOUND"), s.push("assets/sounds/14_FireRingSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/15_ZeppSmash.mp3"), n.push("MUSIC"), s.push("assets/sounds/2179.mp3"), n.push("MUSIC"), s.push("assets/sounds/12_PineSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/687.mp3"), n.push("MUSIC"), s.push("assets/sounds/10_Pop1.m4a"), n.push("SOUND"), s.push("assets/sounds/12_PineSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/17_splat.mp3"), n.push("MUSIC"), s.push("assets/sounds/11_TowerPlaceSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/687.m4a"), n.push("SOUND"), s.push("assets/sounds/10_Pop1.mp3"), n.push("MUSIC"), s.push("assets/sounds/5_IceSnd.m4a"), n.push("SOUND"), s.push("assets/sounds/16_CeramicSnd.mp3"), n.push("MUSIC"), s.push("assets/sounds/2179.m4a"), n.push("SOUND"), s.push("assets/fonts/743_Trebuchet MS.svg"), n.push("TEXT"), s.push("assets/fonts/1582_Trebuchet MS.woff"), n.push("BINARY"), s.push("assets/fonts/526_Arial Black.woff2"), n.push("BINARY"), s.push("assets/fonts/849_Yikes!.json"), n.push("TEXT"), s.push("assets/fonts/164_Yikes!.svg"), n.push("TEXT"), s.push("assets/fonts/1546_Visitor TT2 BRK.svg"), n.push("TEXT"), s.push("assets/fonts/899_McBoing Boing.eot"), n.push("BINARY"), s.push("assets/fonts/899_McBoing Boing.woff"), n.push("BINARY"), s.push("assets/fonts/526_Arial Black.svg"), n.push("TEXT"), s.push("assets/fonts/831_Verdana.eot"), n.push("BINARY"), s.push("assets/fonts/899_McBoing Boing.svg"), n.push("TEXT"), s.push("assets/fonts/1404_Cartoonist.svg"), n.push("TEXT"), s.push("assets/fonts/1865_Arial.svg"), n.push("TEXT"), s.push("Trebuchet MS"), n.push("FONT"), s.push("assets/fonts/1582_Trebuchet MS.svg"), n.push("TEXT"), s.push("assets/fonts/1546_Visitor TT2 BRK.woff"), n.push("BINARY"), s.push("assets/fonts/743_Trebuchet MS.eot"), n.push("BINARY"), s.push("assets/fonts/1404_Cartoonist.json"), n.push("TEXT"), s.push("assets/fonts/2103_Tahoma.woff2"), n.push("BINARY"), s.push("assets/fonts/717_Tahoma.woff2"), n.push("BINARY"), s.push("assets/fonts/1582_Trebuchet MS.eot"), n.push("BINARY"), s.push("Arial"), n.push("FONT"), s.push("assets/fonts/1455_Cartoonist.json"), n.push("TEXT"), s.push("assets/fonts/164_Yikes!.json"), n.push("TEXT"), s.push("assets/fonts/849_Yikes!.woff2"), n.push("BINARY"), s.push("assets/fonts/899_McBoing Boing.json"), n.push("TEXT"), s.push("assets/fonts/1404_Cartoonist.eot"), n.push("BINARY"), s.push("assets/fonts/1546_Visitor TT2 BRK.json"), n.push("TEXT"), s.push("assets/fonts/743_Trebuchet MS.json"), n.push("TEXT"), s.push("assets/fonts/1455_Cartoonist.eot"), n.push("BINARY"), s.push("assets/fonts/526_Arial Black.json"), n.push("TEXT"), s.push("assets/fonts/831_Verdana.woff2"), n.push("BINARY"), s.push("Arial Black"), n.push("FONT"), s.push("assets/fonts/1546_Visitor TT2 BRK.woff2"), n.push("BINARY"), s.push("assets/fonts/164_Yikes!.woff2"), n.push("BINARY"), s.push("Yikes!"), n.push("FONT"), s.push("Cartoonist"), n.push("FONT"), s.push("assets/fonts/2103_Tahoma.eot"), n.push("BINARY"), s.push("assets/fonts/164_Yikes!.woff"), n.push("BINARY"), s.push("assets/fonts/1404_Cartoonist.woff2"), n.push("BINARY"), s.push("assets/fonts/849_Yikes!.woff"), n.push("BINARY"), s.push("Tahoma"), n.push("FONT"), s.push("assets/fonts/1865_Arial.woff"), n.push("BINARY"), s.push("assets/fonts/717_Tahoma.json"), n.push("TEXT"), s.push("assets/fonts/849_Yikes!.svg"), n.push("TEXT"), s.push("assets/fonts/1582_Trebuchet MS.woff2"), n.push("BINARY"), s.push("assets/fonts/164_Yikes!.eot"), n.push("BINARY"), s.push("assets/fonts/743_Trebuchet MS.woff"), n.push("BINARY"), s.push("assets/fonts/1865_Arial.eot"), n.push("BINARY"), s.push("assets/fonts/717_Tahoma.woff"), n.push("BINARY"), s.push("assets/fonts/831_Verdana.json"), n.push("TEXT"), s.push("assets/fonts/2103_Tahoma.woff"), n.push("BINARY"), s.push("assets/fonts/743_Trebuchet MS.woff2"), n.push("BINARY"), s.push("Yikes!"), n.push("FONT"), s.push("assets/fonts/831_Verdana.svg"), n.push("TEXT"), s.push("assets/fonts/1455_Cartoonist.woff2"), n.push("BINARY"), s.push("Visitor TT2 BRK"), n.push("FONT"), s.push("Trebuchet MS"), n.push("FONT"), s.push("assets/fonts/2103_Tahoma.svg"), n.push("TEXT"), s.push("assets/fonts/717_Tahoma.eot"), n.push("BINARY"), s.push("Verdana"), n.push("FONT"), s.push("assets/fonts/717_Tahoma.svg"), n.push("TEXT"), s.push("assets/fonts/849_Yikes!.eot"), n.push("BINARY"), s.push("assets/fonts/899_McBoing Boing.woff2"), n.push("BINARY"), s.push("McBoing Boing"), n.push("FONT"), s.push("assets/fonts/1455_Cartoonist.svg"), n.push("TEXT"), s.push("assets/fonts/1546_Visitor TT2 BRK.eot"), n.push("BINARY"), s.push("assets/fonts/526_Arial Black.woff"), n.push("BINARY"), s.push("assets/fonts/1404_Cartoonist.woff"), n.push("BINARY"), s.push("assets/fonts/2103_Tahoma.json"), n.push("TEXT"), s.push("Cartoonist"), n.push("FONT"), s.push("assets/fonts/1455_Cartoonist.woff"), n.push("BINARY"), s.push("assets/fonts/831_Verdana.woff"), n.push("BINARY"), s.push("assets/fonts/1865_Arial.woff2"), n.push("BINARY"), s.push("assets/fonts/526_Arial Black.eot"), n.push("BINARY"), s.push("assets/fonts/1582_Trebuchet MS.json"), n.push("TEXT"), s.push("assets/fonts/1865_Arial.json"), n.push("TEXT"), s.push("Tahoma"), n.push("FONT"), s.push("lib/intro/intro.dat"), n.push("BINARY"), s.push("lib/intro.json"), n.push("TEXT"), s.push("lib/bloontowerdefense4/1203.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1273.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1357.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1371.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1188.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1355.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1369.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1200.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1185.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1255.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1269.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1353.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1367.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1197.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1351.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1365.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1251.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1363.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1194.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1264.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1348.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1207.png"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1361.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1346.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1191.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1359.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/1260.jpg"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/826.png"), n.push("IMAGE"), s.push("lib/bloontowerdefense4/bloontowerdefense4.dat"), n.push("BINARY"), s.push("lib/bloontowerdefense4.json"), n.push("TEXT"), null != qr.config.assetsPrefix) ) for (var i = 0, r = s.length; i < r; ) { var o = i++; "FONT" != n[o] && (s[o] = qr.config.assetsPrefix + s[o]); } qr.preloader.load(s, n); e.exec(); }), (qr.init = function () { var t = 0, s = 0; (qr.preloader = null), (s += 1), Wm.loadLibrary("bloontowerdefense4").onComplete(function (e) { (t += 1) == s && qr.start(); }), 0 == s && qr.start(); }), (qr.main = function () { qr.config = { build: "2", company: "Fire Falcom", file: "game", fps: 60, name: "bloontowerdefense4", orientation: "", packageName: "com.firefal.bloontowerdefense4", version: "1.0.0", windows: [ { antialiasing: 0, background: 16777215, borderless: !1, depthBuffer: !1, display: 0, fullscreen: !1, hardware: !0, height: 640, parameters: "{}", resizable: !1, stencilBuffer: !0, title: "bloontowerdefense4", vsync: !1, width: 640, x: null, y: null, }, ], }; }), (qr.start = function () { for ( var e = !1, t = ms.resolveClass("Main"), s = 0, n = ms.getClassFields(t); s < n.length; ) { var i = n[s]; if ((++s, "main" == i)) { e = !0; break; } } if ((Yp.initialize(), e)) De.field(t, "main").apply(t, []); else ms.createInstance(_, []); Zm.current.stage.window.__fullscreen && Zm.current.stage.dispatchEvent(new yv("fullScreen", !1, !1, !0, !0)), Zm.current.stage.dispatchEvent(new _a("resize", !1, !1)); }), (qr.resizeStatic = function (e) {}); var i = function () {}; ((s["openfl.events.IEventDispatcher"] = i).__name__ = [ "openfl", "events", "IEventDispatcher", ]), (i.prototype = { __class__: i }); var g = function (e) { null != e && (this.__targetDispatcher = e); }; ((s["openfl.events.EventDispatcher"] = g).__name__ = [ "openfl", "events", "EventDispatcher", ]), (g.__interfaces__ = [i]), (g.__dispatchEventStatic = function (e, t) { if ((t.acquire(), null == e.__eventMap || null == t)) return t.release(), !1; var s, n = t.type, i = e.__dispatching; if (null != NT[n] ? i.getReserved(n) : i.h[n]) { var r = e.__newEventMap; if (null == (s = null != NT[n] ? r.getReserved(n) : r.h[n])) { var o = e.__eventMap; s = null != NT[n] ? o.getReserved(n) : o.h[n]; } null != s && (s = s.slice()); } else { var a = e.__eventMap; if (null != (s = null != NT[n] ? a.getReserved(n) : a.h[n])) { var l = e.__dispatching; null != NT[n] ? l.setReserved(n, !0) : (l.h[n] = !0); } } if (null == s) return t.release(), !1; var h = null; h = null == t.target ? null != e.__targetDispatcher ? e.__targetDispatcher : e : t.target; for ( var _, u, d = 1 == t.eventPhase, c = 0; c < s.length && ((t.target = h), (t.currentTarget = e), (_ = s[c]).useCapture != d || (_.callback.call(_, t), !t.__isCanceledNow)); ) _ == s[c] && ++c; if (null != e.__newEventMap) { var f = e.__newEventMap; u = null != NT[n] ? f.existsReserved(n) : f.h.hasOwnProperty(n); } else u = !1; if (u) { var p = e.__newEventMap, b = null != NT[n] ? p.getReserved(n) : p.h[n]; if (0 < b.length) { var m = e.__eventMap; null != NT[n] ? m.setReserved(n, b) : (m.h[n] = b); } else e.__eventMap.remove(n); var g = e.__eventMap; new _p(g, g.arrayKeys()).hasNext() ? e.__newEventMap.remove(n) : ((e.__eventMap = null), (e.__newEventMap = null)); } var w = t.type, v = e.__dispatching; return ( null != NT[w] ? v.setReserved(w, !1) : (v.h[w] = !1), t.release(), !0 ); }), (g.__sortByPriority = function (e, t) { return e.priority == t.priority ? 0 : e.priority > t.priority ? -1 : 1; }), (g.prototype = { addEventListener: function (e, t, s, n, i) { null == i && (i = !1), null == n && (n = 0), null == s && (s = !1), null == this.__eventMap && ((this.__dispatching = new up()), (this.__eventMap = new up()), (this.__newEventMap = new up())); var r = this.__eventMap; if (null != NT[e] ? r.existsReserved(e) : r.h.hasOwnProperty(e)) { var o, a = this.__dispatching; if (1 == (null != NT[e] ? a.getReserved(e) : a.h[e])) { var l = this.__newEventMap; if (null != NT[e] ? l.existsReserved(e) : l.h.hasOwnProperty(e)) { var h = this.__newEventMap; o = null != NT[e] ? h.getReserved(e) : h.h[e]; } else { var _ = this.__eventMap; o = (null != NT[e] ? _.getReserved(e) : _.h[e]).slice(); var u = this.__newEventMap; null != NT[e] ? u.setReserved(e, o) : (u.h[e] = o); } } else { var d = this.__eventMap; o = null != NT[e] ? d.getReserved(e) : d.h[e]; } for (var c = 0, f = o.length; c < f; ) { var p = c++; if (De.compareMethods(o[p].callback, t)) return; } o.push(new wv(t, s, n)), o.sort(g.__sortByPriority); } else { var b = []; b.push(new wv(t, s, n)); var m = this.__eventMap; null != NT[e] ? m.setReserved(e, b) : (m.h[e] = b); } this.onEventListenerAdded(e); }, dispatchEvent: function (e) { return ( null != this.__targetDispatcher ? (e.target = this.__targetDispatcher) : (e.target = this), this.__dispatchEvent(e) ); }, hasEventListener: function (e) { if (null == this.__eventMap) return !1; var t, s = this.__dispatching; if (1 == (null != NT[e] ? s.getReserved(e) : s.h[e])) { var n = this.__newEventMap; t = null != NT[e] ? n.existsReserved(e) : n.h.hasOwnProperty(e); } else t = !1; if (t) { var i = this.__newEventMap; return 0 < (null != NT[e] ? i.getReserved(e) : i.h[e]).length; } var r = this.__eventMap; return null != NT[e] ? r.existsReserved(e) : r.h.hasOwnProperty(e); }, removeEventListener: function (e, t, s) { if ((null == s && (s = !1), null != this.__eventMap)) { var n = this.__eventMap, i = null != NT[e] ? n.getReserved(e) : n.h[e]; if (null != i) { var r = this.__dispatching, o = 1 == (null != NT[e] ? r.getReserved(e) : r.h[e]); if (o) { var a = this.__newEventMap; if (null != NT[e] ? a.existsReserved(e) : a.h.hasOwnProperty(e)) { var l = this.__newEventMap; i = null != NT[e] ? l.getReserved(e) : l.h[e]; } else { var h = this.__eventMap; i = (null != NT[e] ? h.getReserved(e) : h.h[e]).slice(); var _ = this.__newEventMap; null != NT[e] ? _.setReserved(e, i) : (_.h[e] = i); } } for (var u = 0, d = i.length; u < d; ) { var c = u++; if (i[c].match(t, s)) { i.splice(c, 1), this.onEventListenerRemoved(e); break; } } if (!o) { 0 == i.length && this.__eventMap.remove(e); var f = this.__eventMap; new _p(f, f.arrayKeys()).hasNext() || ((this.__eventMap = null), (this.__newEventMap = null)); } } } }, onEventListenerAdded: function (e) {}, onEventListenerRemoved: function (e) {}, toString: function () { return ( "[object " + ms.getClassName(Lp.getClass(this)).split(".").pop() + "]" ); }, willTrigger: function (e) { return this.hasEventListener(e); }, __dispatchEvent: function (e) { if ((e.acquire(), null == this.__eventMap || null == e)) return e.release(), !1; var t, s = e.type; if ( (this.__dispatching.get(s) ? (null == (t = this.__newEventMap.get(s)) && (t = this.__eventMap.get(s)), null != t && (t = t.slice())) : null != (t = this.__eventMap.get(s)) && this.__dispatching.set(s, !0), null == t) ) return e.release(), !1; var n = null; n = null == e.target ? null != this.__targetDispatcher ? this.__targetDispatcher : this : e.target; for ( var i, r = 1 == e.eventPhase, o = 0; o < t.length && ((e.target = n), (e.currentTarget = this), (i = t[o]).useCapture != r || (i.callback.call(i, e), !e.__isCanceledNow)); ) i == t[o] && ++o; if (null != this.__newEventMap && this.__newEventMap.exists(s)) { var a = this.__newEventMap.get(s); 0 < a.length ? this.__eventMap.set(s, a) : this.__eventMap.remove(s), this.__eventMap.iterator().hasNext() ? this.__newEventMap.remove(s) : ((this.__eventMap = null), (this.__newEventMap = null)); } return this.__dispatching.set(e.type, !1), e.release(), !0; }, __class__: g, }); var r = function () {}; ((s["openfl.display.IBitmapDrawable"] = r).__name__ = [ "openfl", "display", "IBitmapDrawable", ]), (r.prototype = { __class__: r }); var W = function () { (this.__transformDirty = !0), (this.__recursiveMouseListenerCount = 0), (this.__mouseListenerCount = 0), (this.__useSeparateRenderScaleTransform = !0), (this.__clippedAt = -1), (this.__cacheAsBitmapSmooth = null), (this.__isCachingAsBitmap = !1), (this.__cacheAsBitmapFlag = !1), (this.__resolvedCacheAsBitmap = !1), (this.__name = ""), (this.__maskCached = !1), (this.delayScaleRotationGraphicsRefresh = !1), (this.renderScaleY = 1), (this.renderScaleX = 1), g.call(this), (this.__colorTransform = new jm()), (this.__transform = new Km()), (this.__renderTransform = new Km()), (this.__cacheGLMatrix = new Km()), (this.__offset = new qm()), (this.__worldOffset = new qm()), (this.__worldColorTransform = new jm()), (this.__renderColorTransform = new jm()), (this.__visible = !0), (this.__rotation = 0), (this.__rotationSine = 0), (this.__rotationCosine = 1), (this.__worldAlpha = 1), (this.__renderAlpha = 1), (this.__clipDepth = 0), (this.__cachedParent = null), W.__worldTransformDirty++; }; ((s["openfl.display.DisplayObject"] = W).__name__ = [ "openfl", "display", "DisplayObject", ]), (W.__interfaces__ = [r]), (W.__isCachingAsMask = null), (W.__super__ = g), (W.prototype = n(g.prototype, { __reset: function () { (this.__dispatching = null), (this.__eventMap = null), (this.__newEventMap = null) != this.__objectTransform && (fy.pool.put(this.__objectTransform), (this.__objectTransform = null)), this.__colorTransform.reset(); }, resolve: function (e) { return null; }, getSymbol: function () { return null; }, getBounds: function (e) { var t = Km.pool.get(); if (null != e) { t.copyFrom(this.__getWorldTransform()); var s = Km.pool.get(); s.copyFrom(e.__getWorldTransform()), s.invert(), t.concat(s), Km.pool.put(s); } else t.identity(); var n = new cy(); return ( this.__getBounds(n), n.isEmpty() || n.transform(n, t), Km.pool.put(t), n ); }, getRect: function (e) { return this.getBounds(e); }, globalToLocalInPlace: function (e) { if (null != this.stage) { var t = this.stage.__getWorldTransform(), s = e.x, n = e.y; (e.x = s * t.a + n * t.c + t.tx), (e.y = s * t.b + n * t.d + t.ty); } var i = this.__getWorldTransform(), r = i.a * i.d - i.b * i.c; if (0 == r) (e.x = -i.tx), (e.y = -i.ty); else { var o = (1 / r) * (i.c * (i.ty - e.y) + i.d * (e.x - i.tx)); (e.y = (1 / r) * (i.a * (e.y - i.ty) + i.b * (i.tx - e.x))), (e.x = o); } return e; }, globalToLocal: function (e) { e = null != this.stage ? this.stage.__getWorldTransform().transformPoint(e) : e.clone(); var t = this.__getWorldTransform(), s = t.a * t.d - t.b * t.c; if (0 == s) (e.x = -t.tx), (e.y = -t.ty); else { var n = (1 / s) * (t.c * (t.ty - e.y) + t.d * (e.x - t.tx)); (e.y = (1 / s) * (t.a * (e.y - t.ty) + t.b * (t.tx - e.x))), (e.x = n); } return e; }, localToGlobalInPlace: function (e) { var t = this.__getWorldTransform(), s = e.x, n = e.y; if ( ((e.x = s * t.a + n * t.c + t.tx), (e.y = s * t.b + n * t.d + t.ty), null == this.stage) ) throw new Mp(":TODO:"); var i = this.stage.__getWorldTransform(), r = i.a * i.d - i.b * i.c; if (0 == r) (e.x = -i.tx), (e.y = -i.ty); else { var o = (1 / r) * (i.c * (i.ty - e.y) + i.d * (e.x - i.tx)); (e.y = (1 / r) * (i.a * (e.y - i.ty) + i.b * (i.tx - e.x))), (e.x = o); } return e; }, localToGlobal: function (e) { if ( ((e = this.__getWorldTransform().transformPoint(e)), null == this.stage) ) throw new Mp(":TODO:"); var t = this.stage.__getWorldTransform(), s = t.a * t.d - t.b * t.c; if (0 == s) (e.x = -t.tx), (e.y = -t.ty); else { var n = (1 / s) * (t.c * (t.ty - e.y) + t.d * (e.x - t.tx)); (e.y = (1 / s) * (t.a * (e.y - t.ty) + t.b * (t.tx - e.x))), (e.x = n); } return e; }, convertToLocal: function (e) { if (null != this.stage) { var t = this.stage.__getWorldTransform(), s = e.x, n = e.y; (e.x = s * t.a + n * t.c + t.tx), (e.y = s * t.b + n * t.d + t.ty); } var i = this.__getWorldTransform(), r = i.a * i.d - i.b * i.c; if (0 == r) (e.x = -i.tx), (e.y = -i.ty); else { var o = (1 / r) * (i.c * (i.ty - e.y) + i.d * (e.x - i.tx)); (e.y = (1 / r) * (i.a * (e.y - i.ty) + i.b * (i.tx - e.x))), (e.x = o); } }, hitTestObject: function (e) { if (null == e || null == e.parent || null == this.parent) return !1; var t = this.getBounds(this), s = e.getBounds(this); return t.intersects(s); }, hitTestPoint: function (e, t, s) { null == s && (s = !1); var n = cy.pool.get(), i = this.__getWorldTransform(); this.__getBounds(n), n.isEmpty() || n.transform(n, i); var r = qm.pool.get(); r.setTo(e * this.stage.get_scaleX(), t * this.stage.get_scaleY()); var o = n.containsPoint(r); if ((qm.pool.put(r), cy.pool.put(n), !o || !s)) return o; if (null != this.__graphics) { var a = this.getSymbol(); if ( ((s = !!s && (null == a || a.pixelPerfectHitTest)), this.__graphics.__hitTest( e * this.stage.get_scaleX(), t * this.stage.get_scaleY(), s, this.__getWorldTransform() )) ) return !0; } return !1; }, updateCachedParent: function (e) { if (null == e) { for (var t = this.parent; null != t && !t.__resolvedCacheAsBitmap; ) t = t.parent; this.__cachedParent = t; } else this.__cachedParent = e; return (e = this.__resolvedCacheAsBitmap ? this : this.__cachedParent); }, __broadcast: function (e, t) { if (null != this.__eventMap && this.hasEventListener(e.type)) { var s = g.prototype.__dispatchEvent.call(this, e); return !!e.__isCanceled || s; } return !1; }, __dispatchEvent: function (e) { e.acquire(); var t = g.prototype.__dispatchEvent.call(this, e); return e.__isCanceled ? (e.release(), !0) : (e.bubbles && null != this.parent && this.parent != this && ((e.eventPhase = 3), null == e.target && (e.target = this), this.parent.__dispatchEvent(e)), e.release(), t); }, __enterFrame: function (e) { null != this.__graphics && this.__graphics.__enterFrame(), 0 < this.__cacheAsBitmapCounter && --this.__cacheAsBitmapCounter <= 0 && ((this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length)); }, __getBounds: function (e) { null != this.__graphics ? this.__graphics.__getBounds(e) : e.setEmpty(); }, __getTransformedBounds: function (e, t) { this.__getBounds(e), e.isEmpty() || e.transform(e, t); }, __getCursor: function () { return null; }, __getInteractive: function (e) { return !1; }, getAssetPrefix: function () { return Object.prototype.hasOwnProperty.call(this, "assetPrefix") ? De.field(this, "assetPrefix") : null != this.parent ? this.parent.getAssetPrefix() : ""; }, __getLocalBounds: function (e) { var t = this.__transform; this.__getBounds(e), e.isEmpty() || e.transform(e, t); }, __getRenderBounds: function (e) { if (null == this.__scrollRect) { var t = this.__renderTransform; this.__getBounds(e), e.isEmpty() || e.transform(e, t), this.__getChildrenRenderBounds(e), null == this.__filters || e.isEmpty() || kv.__expandBounds(this.__filters, e); } else e.copyFrom(this.__scrollRect); }, __getChildrenRenderBounds: function (e) {}, __getWorldTransform: function () { if (this.__transformDirty || 0 < W.__worldTransformDirty) { var e = W.__parentList, t = 0, s = this, n = this.__transformDirty; if (null == this.parent) n && this.__update(!0, !1); else for (; null != s.parent; ) (s = (e[t++] = s).parent).__transformDirty && (n = !0); if (n) for (var i = t; 0 <= --i; ) e[i].__update(!0, !1); } return this.__worldTransform; }, __hitTest: function (e, t, s, n, i, r) { if (null != this.__graphics) { if ( !!( !( 0 < this.__recursiveMouseListenerCount || null == this.__branchDepth || this.__branchDepth > W.__lastMouseListenerBranchDepth ) || !r.__visible ) || this.__isMask ) return !1; if (null != this.__mask && !this.__mask.__hitTestMask(e, t)) return !1; var o = this.getSymbol(); if ( ((s = !!s && (null == o || o.pixelPerfectHitTest)), this.__graphics.__hitTest(e, t, s, this.__getWorldTransform())) ) return null == n || i || (n._items[n._length++] = r), !0; } return !1; }, __hitTestMask: function (e, t) { return ( null != this.__graphics && !!this.__graphics.__hitTest(e, t, !0, this.__getWorldTransform()) ); }, __renderCanvas: function (e) { throw new Mp(":TODO: remove me"); }, __renderCanvasMask: function (e) { throw new Mp(":TODO: remove me"); }, __renderGL: function (e) { if (this.isRenderable() && !(this.__worldAlpha <= 0)) if (this.__resolvedCacheAsBitmap) { if ( ((this.__isCachingAsBitmap = !0), (!this.__updateCachedBitmap && !this.__updateFilters) || (this.forbidCachedBitmapUpdate && null != this.__cachedBitmap) || this.__updateCachedBitmapFn(e), 0 < this.__cachedBitmap.width && 0 < this.__cachedBitmap.height) ) { this.__cacheGLMatrix.identity(), this.__cacheGLMatrix.copyFrom(this.__renderTransform), this.__cacheGLMatrix.translate( this.__offset.x, this.__offset.y ); var t = this.__cachedBitmap, s = this.__cacheAsBitmapSmooth, n = this.__cacheGLMatrix, i = this.__worldColorTransform, r = this.__worldAlpha, o = this.blendMode, a = this.__shader; null != t && e.spriteBatch.renderBitmapDataEx( t, t.physicalWidth, t.physicalHeight, t.get_uvData(), s, n, i, r, o, a, 2 ); } this.__isCachingAsBitmap = !1; } else null != this.__scrollRect && e.maskManager.pushRect(this.__scrollRect, this.__renderTransform), null != this.__mask && (this.__mask.__maskCached || (null != this.__mask.__cachedBitmap && (this.__mask.__cachedBitmap.dispose(), (this.__mask.__cachedBitmap = null)), (this.__mask.__isMask = !0), this.__mask.__update(!0, !0), (this.__mask.__maskCached = !0)), e.maskManager.pushMask(this.__mask)), this.__drawGraphicsGL(e), null != this.__mask && e.maskManager.popMask(), null != this.__scrollRect && e.maskManager.popRect(); }, __drawGraphicsGL: function (e) { if (null != this.__graphics) { var t = e.getRenderTargetBaseTransform(), s = Km.pool.get(); s.copyFrom(this.__renderTransform), s.concat(t), Eg.render( this.__graphics, e, s, this.__isMask || W.__isCachingAsMask ), Km.pool.put(s), Bg.renderBitmap( this, e, 0 < this.__graphics.mustRefreshGraphicsCounter || this.forbidCachedBitmapUpdate ); } }, __preRenderGL: function (e) { null != this.__scrollRect && e.maskManager.pushRect(this.__scrollRect, this.__renderTransform), null != this.__mask && (this.__mask.__maskCached || (null != this.__mask.__cachedBitmap && (this.__mask.__cachedBitmap.dispose(), (this.__mask.__cachedBitmap = null)), (this.__mask.__isMask = !0), this.__mask.__update(!0, !0), (this.__mask.__maskCached = !0)), e.maskManager.pushMask(this.__mask)); }, __postRenderGL: function (e) { null != this.__mask && e.maskManager.popMask(), null != this.__scrollRect && e.maskManager.popRect(); }, __updateCachedBitmapFn: function (e, t, s) { var n = this.getSymbol(); null != n && n.useUniqueSharedBitmapCache && null != n.uniqueSharedCachedBitmap ? ((this.__cachedBitmap = n.uniqueSharedCachedBitmap), this.set_forbidCachedBitmapUpdate(!0)) : (null == this.__cachedBitmap && (this.__cachedBitmap = sw.__asRenderTexture()), this.__cacheBitmapFn(this.__cachedBitmap, e, t, s), (this.__updateCachedBitmap = !1), (this.__updateFilters = !1), null != n && n.useUniqueSharedBitmapCache && (n.uniqueSharedCachedBitmap = this.__cachedBitmap)); }, __cacheBitmapFn: function (e, t, s, n) { var i = W.__cachedBitmapPadding, r = cy.pool.get(); if ((this.__getRenderBounds(r), r.width <= 0 || r.height <= 0)) return ( cy.pool.put(r), void e.__resize(0, 0, e.physicalWidth, e.physicalHeight) ); var o = cy.pool.get(); this.__getBounds(o); var a = Math.ceil(r.width) + 2 * i, l = Math.ceil(r.height) + 2 * i; e.__resize(o.width, o.height, a, l), cy.pool.put(o); var h = Km.pool.get(); h.copyFrom(this.__renderTransform), h.translate(i - Math.floor(r.x), i - Math.floor(r.y)), cy.pool.put(r); var _ = null; null != n && ((_ = Km.pool.get()).copyFrom(h), _.invert(), _.concat(this.__renderTransform), _.concat(n)); var u = this.__shader; (this.__shader = null), t.maskManager.pushMask(null), e.__pushFrameBuffer(t, !0, !0, !0), Cg.drawBitmapDrawable(t, null, this, h, null, s, _), Cg.popFramebuffer(t, null), (e.__imageShouldBeSynced = !0); var d = e.__pingPongTexture, c = (d.__swapped ? d.__texture1 : d.__texture0).__uvData; e.__createUVs(c.x0, c.y0, c.x1, c.y1, c.x2, c.y2, c.x3, c.y3), (e.__isValid = !0), (e.__usingPingPongTexture = !0), t.maskManager.popMask(), null != n && Km.pool.put(_), (this.__shader = u), this.__updateFilters ? kv.__applyFilters(this.__filters, t, e) : this.__cleanupIntermediateTextures(); var f = Km.pool.get(); f.copyFrom(h), f.invert(), e.__renderToLocalMatrix.copyFrom(f), Km.pool.put(f), Km.pool.put(h); }, __cacheGL: function (e) { if ( ((!this.__updateCachedBitmap && !this.__updateFilters) || (this.forbidCachedBitmapUpdate && null != this.__cachedBitmap) || this.__updateCachedBitmapFn(e), 0 < this.__cachedBitmap.width && 0 < this.__cachedBitmap.height) ) { this.__cacheGLMatrix.identity(), this.__cacheGLMatrix.copyFrom(this.__renderTransform), this.__cacheGLMatrix.translate(this.__offset.x, this.__offset.y); var t = this.__cachedBitmap, s = this.__cacheAsBitmapSmooth, n = this.__cacheGLMatrix, i = this.__worldColorTransform, r = this.__worldAlpha, o = this.blendMode, a = this.__shader; null != t && e.spriteBatch.renderBitmapDataEx( t, t.physicalWidth, t.physicalHeight, t.get_uvData(), s, n, i, r, o, a, 2 ); } }, __cleanupIntermediateTextures: function () { this.__disposeGraphicsBitmap(); }, setStage: function (e) { if (this.stage != e) { null != this.stage && (this.stage.get_focus() == this && this.stage.set_focus(null), this.__fireRemovedFromStageEvent(null), null == e && this.__releaseResources()), this.__updateStageInternal(e), null != e && this.__fireAddedToStageEvent(null); } return e; }, __fireRemovedFromStageEvent: function (e) { this.__dispatchEvent(_a.__create("removedFromStage", !1, !1)); }, __fireAddedToStageEvent: function (e) { this.__dispatchEvent(_a.__create("addedToStage", !1, !1)); }, __releaseResources: function () { var e = this.getSymbol(); if (null != e && e.poolable) return e.pool.put(this), !1; var t = !1; if ( (null != this.__graphics && (this.__graphics.dispose(), (t = !0)), null != this.__cachedBitmap && ((null != e && e.useUniqueSharedBitmapCache) || this.__cachedBitmap.dispose(), (t = !(this.__cachedBitmap = null))), null != this.__filters) ) { for (var s = 0, n = this.__filters; s < n.length; ) { var i = n[s]; ++s, i.dispose(); } t = !0; } return ( t && ((this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0)), null != this.__objectTransform && (fy.pool.put(this.__objectTransform), (this.__objectTransform = null)), !0 ); }, __disposeGraphicsBitmap: function () { if (null != this.__graphics) { var e = this.__graphics; e.set___bitmap(null), (e.__dirty = !0); } }, __setRenderDirty: function () { (this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0); }, __setRenderDirtyNoCachedBitmap: function () { this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0); }, __setTransformDirty: function () { this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++); }, __setUpdateDirty: function () { this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0); }, __setBranchDirty: function () { (this.__branchDirty = !0), W.__worldBranchDirty++; }, __updateColor: function () { null != this.parent ? this.mustResetRenderColorTransform() ? ((this.__renderAlpha = 1), (this.__worldAlpha = this.__colorTransform.alphaMultiplier * this.parent.__renderAlpha), this.__renderColorTransform.reset(), this.__worldColorTransform.setFromCombination( this.get_transform().get_colorTransform(), this.parent.__renderColorTransform )) : ((this.__renderAlpha = this.__colorTransform.alphaMultiplier * this.parent.__renderAlpha), (this.__worldAlpha = this.__colorTransform.alphaMultiplier * this.parent.__worldAlpha), this.__renderColorTransform.setFromCombination( this.get_transform().get_colorTransform(), this.parent.__renderColorTransform ), this.__worldColorTransform.setFromCombination( this.get_transform().get_colorTransform(), this.parent.__worldColorTransform )) : (this.__worldColorTransform.copyFrom( this.get_transform().get_colorTransform() ), (this.__worldAlpha = this.__colorTransform.alphaMultiplier), this.mustResetRenderColorTransform() ? ((this.__renderAlpha = 1), this.__renderColorTransform.reset()) : ((this.__renderAlpha = this.__colorTransform.alphaMultiplier), this.__renderColorTransform.copyFrom( this.get_transform().get_colorTransform() ))); }, __update: function (e, t) { this.__updateTransforms(), t && this.__transformDirty && ((this.__transformDirty = !1), W.__worldTransformDirty--), e || (this.__updateColor(), null != this.parent && ((null != this.blendMode && 10 != this.blendMode) || (this.__blendMode = this.parent.__blendMode), null == this.shader && (this.__shader = this.parent.__shader)), (this.__renderDirty = this.__renderDirty && !t), (this.__updateDirty = !1)); }, isRenderable: function () { return ( !( !this.__visible || (0 == this.__transform.a && 0 == this.__transform.b) || (0 == this.__transform.c && 0 == this.__transform.d) ) && !this.__isMask ); }, __inlineUpdate: function (e, t) { this.__updateTransforms(), t && this.__transformDirty && ((this.__transformDirty = !1), W.__worldTransformDirty--), e || (this.__updateColor(), null != this.parent && ((null != this.blendMode && 10 != this.blendMode) || (this.__blendMode = this.parent.__blendMode), null == this.shader && (this.__shader = this.parent.__shader)), (this.__renderDirty = this.__renderDirty && !t), (this.__updateDirty = !1)); }, __updateChildren: function (e) { (this.isRenderable() || this.__isMask) && ((this.__worldAlpha = this.__colorTransform.alphaMultiplier), this.__transformDirty && ((this.__transformDirty = !1), W.__worldTransformDirty--)); }, __updateTransforms: function () { var e = this.__transform, t = Km.pool.get(); if (null != this.parent) { var s, n = (s = null != this.parent.__worldTransform ? this.parent.__worldTransform : this.parent.__transform).a, i = s.b, r = s.c, o = s.d, a = e.a, l = e.b, h = e.c, _ = e.d; (t.a = a * n + l * r), (t.b = a * i + l * o), (t.c = h * n + _ * r), (t.d = h * i + _ * o), (t.tx = e.tx * n + e.ty * r + s.tx), (t.ty = e.tx * i + e.ty * o + s.ty), this.__worldOffset.copyFrom(this.parent.__worldOffset); } else t.copyFrom(e), this.__worldOffset.setTo(0, 0); if ( (null != this.__scrollRect ? ((this.__offset = t.deltaTransformPoint( this.__scrollRect.get_topLeft() )), this.__worldOffset.offset(this.__offset.x, this.__offset.y)) : this.__offset.setTo(0, 0), null != this.__cacheAsBitmapMatrix ? Zf.trace( ":TODO: fill renderScaleX, renderScaleY and use __cacheAsBitmapMatrix where appropriate", { fileName: "DisplayObject.hx", lineNumber: 1240, className: "openfl.display.DisplayObject", methodName: "__updateTransforms", } ) : this.__useSeparateRenderScaleTransform && ((this.renderScaleX = Math.sqrt(t.a * t.a + t.b * t.b)), (this.renderScaleY = Math.sqrt(t.c * t.c + t.d * t.d))), this.__renderTransform.copyFrom(t), this.__renderTransform.translate( -this.__worldOffset.x, -this.__worldOffset.y ), null == this.__worldTransform) ) this.__worldTransform = new Km(); else if (!this.__isCachingAsBitmap) { var u = this.__worldTransform, d = u.tx != t.tx || u.ty != t.ty, c = u.a != t.a || u.d != t.d || u.b != t.b || u.c != t.c, f = !1; null != this.__graphics && (f = this.__graphics.__dirty), c && this._onWorldTransformScaleRotationChanged(), f || this.delayGraphicsRefresh(d, c); } this.__worldTransform.copyFrom(t), Km.pool.put(t); }, delayGraphicsRefresh: function (e, t) { if (null != this.__graphics) if (t) if (this.delayScaleRotationGraphicsRefresh) { var s = this.__graphics; (s.mustRefreshGraphicsCounter = hw.__dirtyGraphicsDelay), s.set_dirty(!1); } else this.__graphics.set_dirty(!0); else if (e) { var n = this.__graphics; (n.mustRefreshGraphicsCounter = hw.__dirtyGraphicsDelay), n.set_dirty(!1); } }, _onWorldTransformScaleRotationChanged: function () { this.delayScaleRotationGraphicsRefresh ? (this.__cacheAsBitmapCounter = hw.__dirtyGraphicsDelay) : ((this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length)); }, __updateRecursiveMouseListenerCount: function (e) { null == e && (e = 0); for (var t = this; null != t; ) (t.__recursiveMouseListenerCount += e), (t = t.parent); }, onEventListenerAdded: function (e) { Pv.isMouseEvent(e) && (++this.__mouseListenerCount, this.__updateRecursiveMouseListenerCount(1)); }, onEventListenerRemoved: function (e) { Pv.isMouseEvent(e) && (--this.__mouseListenerCount, this.__updateRecursiveMouseListenerCount(-1)); }, __mustEvaluateHitTest: function () { return ( 0 < this.__recursiveMouseListenerCount || null == this.__branchDepth || this.__branchDepth > W.__lastMouseListenerBranchDepth ); }, __hasMouseListener: function () { return 0 < this.__mouseListenerCount; }, get_alpha: function () { return this.__colorTransform.alphaMultiplier; }, set_alpha: function (e) { return ( 1 < e && (e = 1), e != this.__colorTransform.alphaMultiplier && (this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0)), (this.__colorTransform.alphaMultiplier = e) ); }, set_blendMode: function (e) { return ( this.__blendMode != e && (this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), (this.__blendMode = e)), (this.blendMode = e) ); }, set_shader: function (e) { return ( this.__shader != e && (this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), (this.__shader = e)), (this.shader = e) ); }, __updateStageInternal: function (e) { (this.stage = e), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0); }, get_cacheAsBitmap: function () { return this.__resolvedCacheAsBitmap; }, set_cacheAsBitmap: function (e) { return ( e != this.__cacheAsBitmapFlag && ((this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0)), (this.__cacheAsBitmapFlag = e), this.__updateResolvedCacheAsBitmap(), e ); }, __updateResolvedCacheAsBitmap: function () { var e = this.__resolvedCacheAsBitmap; (this.__resolvedCacheAsBitmap = this.__cacheAsBitmapFlag || (null != this.get_filters() && 0 < this.get_filters().length)), e != this.__resolvedCacheAsBitmap && this.__onResolvedCacheAsBitmapChanged(); }, __onResolvedCacheAsBitmapChanged: function () {}, set_forbidCachedBitmapUpdate: function (e) { return (this.forbidCachedBitmapUpdate = e); }, get_cacheAsBitmapMatrix: function () { return this.__cacheAsBitmapMatrix; }, set_cacheAsBitmapMatrix: function (e) { return ( (this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), null != this.__cacheAsBitmapMatrix ? this.__cacheAsBitmapMatrix.copyFrom(e) : (this.__cacheAsBitmapMatrix = e.clone()), this.__cacheAsBitmapMatrix ); }, get_cacheAsBitmapSmooth: function () { return this.__cacheAsBitmapSmooth; }, set_cacheAsBitmapSmooth: function (e) { return (this.__cacheAsBitmapSmooth = e); }, get_filters: function () { return null == this.__filters ? [] : this.__filters.slice(); }, set_filters: function (e) { if ( null != this.__filters && null != e && e.length == this.__filters.length ) { for (var t = !0, s = 0, n = this.__filters.length; s < n; ) { var i = s++; if (!this.__filters[i].equals(e[i])) { t = !1; break; } } if (t) return e; } if (null != this.__filters) for (var r = 0, o = this.__filters; r < o.length; ) { var a = o[r]; ++r, a.dispose(); } return ( null != e && 0 < e.length ? ((this.__updateFilters = !0), (this.__filters = e)) : ((this.__updateFilters = !1), (this.__filters = null)), this.__updateResolvedCacheAsBitmap(), (this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), e ); }, get_height: function () { var e = cy.pool.get(), t = this.__transform; this.__getBounds(e), e.isEmpty() || e.transform(e, t); var s = e.height; return cy.pool.put(e), s; }, set_height: function (e) { var t = cy.pool.get(); return ( this.__getBounds(t), e != t.height ? this.set_scaleY(e / t.height) : this.set_scaleY(1), cy.pool.put(t), e ); }, get_loaderInfo: function () { return ( null == this.loaderInfo && (this.loaderInfo = Aw.create(null)), this.loaderInfo ); }, get_mask: function () { return this.__mask; }, set_mask: function (e) { if (e == this.__mask) return e; if ( (this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++), (this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), null != this.__mask) ) { (this.__mask.__isMask = !1), (this.__mask.__maskCached = !1); var t = this.__mask; t.__transformDirty || ((t.__transformDirty = !0), t.__isMask && (t.__maskCached = !1), t.__renderDirty || ((t.__renderDirty = !0), W.__worldRenderDirty++, null != t.__cachedParent && t.__cachedParent.__setRenderDirty()), t.__updateDirty || null == t.stage || t == t.stage || (t.__updateDirty = !0), W.__worldTransformDirty++); var s = this.__mask; (s.__updateCachedBitmap = !0), (s.__updateFilters = null != s.__filters && 0 < s.__filters.length), s.__isMask && (s.__maskCached = !1), s.__renderDirty || ((s.__renderDirty = !0), W.__worldRenderDirty++, null != s.__cachedParent && s.__cachedParent.__setRenderDirty()), s.__updateDirty || null == s.stage || s == s.stage || (s.__updateDirty = !0); } return ( null != e && ((e.__isMask = !0), (e.__maskCached = !1), e.__transformDirty || ((e.__transformDirty = !0), e.__isMask && (e.__maskCached = !1), e.__renderDirty || ((e.__renderDirty = !0), W.__worldRenderDirty++, null != e.__cachedParent && e.__cachedParent.__setRenderDirty()), e.__updateDirty || null == e.stage || e == e.stage || (e.__updateDirty = !0), W.__worldTransformDirty++), (e.__updateCachedBitmap = !0), (e.__updateFilters = null != e.__filters && 0 < e.__filters.length), e.__isMask && (e.__maskCached = !1), e.__renderDirty || ((e.__renderDirty = !0), W.__worldRenderDirty++, null != e.__cachedParent && e.__cachedParent.__setRenderDirty()), e.__updateDirty || null == e.stage || e == e.stage || (e.__updateDirty = !0)), (this.__mask = e) ); }, get_mouseX: function () { var e = Zm.current.stage.__mouseX, t = Zm.current.stage.__mouseY, s = this.__getWorldTransform(), n = s.a * s.d - s.b * s.c; return 0 == n ? -s.tx : (1 / n) * (s.c * (s.ty - t) + s.d * (e - s.tx)); }, get_mouseY: function () { var e = Zm.current.stage.__mouseX, t = Zm.current.stage.__mouseY, s = this.__getWorldTransform(), n = s.a * s.d - s.b * s.c; return 0 == n ? -s.ty : (1 / n) * (s.a * (t - s.ty) + s.b * (s.tx - e)); }, get_name: function () { return this.__name; }, set_name: function (e) { return (this.__name = e); }, get_root: function () { return null != this.stage ? Zm.current : null; }, get_rotation: function () { return this.__rotation; }, set_rotation: function (e) { if (e != this.__rotation) { this.__rotation = e; var t = this.__rotation * (Math.PI / 180); (this.__rotationSine = Math.sin(t)), (this.__rotationCosine = Math.cos(t)); var s = this.get_scaleX(), n = this.get_scaleY(); (this.__transform.a = this.__rotationCosine * s), (this.__transform.b = this.__rotationSine * s), (this.__transform.c = -this.__rotationSine * n), (this.__transform.d = this.__rotationCosine * n), this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++); } return e; }, hasZeroScale: function () { return ( (0 == this.__transform.a && 0 == this.__transform.b) || (0 == this.__transform.c && 0 == this.__transform.d) ); }, get_scaleX: function () { return 0 == this.__transform.b ? this.__transform.a : Math.sqrt( this.__transform.a * this.__transform.a + this.__transform.b * this.__transform.b ); }, set_scaleX: function (e) { var t = this.__rotationCosine * e, s = this.__rotationSine * e; return ( (this.__transform.a == t && this.__transform.b == s) || this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++), (this.__transform.a = t), (this.__transform.b = s), e ); }, get_scaleY: function () { return 0 == this.__transform.c ? this.__transform.d : Math.sqrt( this.__transform.c * this.__transform.c + this.__transform.d * this.__transform.d ); }, set_scaleY: function (e) { var t = -this.__rotationSine * e, s = this.__rotationCosine * e; return ( (this.__transform.d == s && this.__transform.c == t) || this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++), (this.__transform.c = t), (this.__transform.d = s), e ); }, get_scrollRect: function () { return null == this.__scrollRect ? null : this.__scrollRect.clone(); }, set_scrollRect: function (e) { return ( e != this.__scrollRect && (this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++)), (this.__scrollRect = e) ); }, get_transform: function () { return ( null == this.__objectTransform && ((this.__objectTransform = fy.pool.get()), this.__objectTransform.reset(this)), this.__objectTransform ); }, set_transform: function (e) { if (null == e) throw new Mp(new pv("Parameter transform must be non-null.")); return ( null == this.__objectTransform && ((this.__objectTransform = fy.pool.get()), this.__objectTransform.reset(this)), this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++), this.__objectTransform.set_matrix(e.get_matrix()), this.__objectTransform.set_colorTransform( e.get_colorTransform().__clone() ), this.__objectTransform ); }, get_visible: function () { return this.__visible; }, set_visible: function (e) { return ( e != this.__visible && ((this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0)), (this.__visible = e) ); }, get_width: function () { var e = cy.pool.get(), t = this.__transform; this.__getBounds(e), e.isEmpty() || e.transform(e, t); var s = e.width; return cy.pool.put(e), s; }, set_width: function (e) { var t = cy.pool.get(); return ( this.__getBounds(t), e != t.width ? this.set_scaleX(e / t.width) : this.set_scaleX(1), cy.pool.put(t), e ); }, get_x: function () { return this.__transform.tx; }, set_x: function (e) { return ( e != this.__transform.tx && (this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++)), (this.__transform.tx = e) ); }, get_y: function () { return this.__transform.ty; }, set_y: function (e) { return ( e != this.__transform.ty && (this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++)), (this.__transform.ty = e) ); }, mustResetRenderColorTransform: function () { return !!this.__resolvedCacheAsBitmap || this.__isMask; }, __class__: W, __properties__: { set_y: "set_y", get_y: "get_y", set_x: "set_x", get_x: "get_x", set_width: "set_width", get_width: "get_width", set_visible: "set_visible", get_visible: "get_visible", set_transform: "set_transform", get_transform: "get_transform", set_shader: "set_shader", set_scrollRect: "set_scrollRect", get_scrollRect: "get_scrollRect", set_scaleY: "set_scaleY", get_scaleY: "get_scaleY", set_scaleX: "set_scaleX", get_scaleX: "get_scaleX", set_rotation: "set_rotation", get_rotation: "get_rotation", get_root: "get_root", set_name: "set_name", get_name: "get_name", get_mouseY: "get_mouseY", get_mouseX: "get_mouseX", set_mask: "set_mask", get_mask: "get_mask", get_loaderInfo: "get_loaderInfo", set_height: "set_height", get_height: "get_height", set_forbidCachedBitmapUpdate: "set_forbidCachedBitmapUpdate", set_filters: "set_filters", get_filters: "get_filters", set_cacheAsBitmapSmooth: "set_cacheAsBitmapSmooth", get_cacheAsBitmapSmooth: "get_cacheAsBitmapSmooth", set_cacheAsBitmapMatrix: "set_cacheAsBitmapMatrix", get_cacheAsBitmapMatrix: "get_cacheAsBitmapMatrix", set_cacheAsBitmap: "set_cacheAsBitmap", get_cacheAsBitmap: "get_cacheAsBitmap", set_blendMode: "set_blendMode", set_alpha: "set_alpha", get_alpha: "get_alpha", }, })); var yt = function () { W.call(this), (this.doubleClickEnabled = !1), (this.mouseEnabled = !0), (this.needsSoftKeyboard = !1), (this.__tabEnabled = !1), this.set_tabIndex(-1); }; ((s["openfl.display.InteractiveObject"] = yt).__name__ = [ "openfl", "display", "InteractiveObject", ]), (yt.__super__ = W), (yt.prototype = n(W.prototype, { get_tabIndex: function () { return this.__tabIndex; }, set_tabIndex: function (e) { return (this.__tabIndex = e); }, requestSoftKeyboard: function () { return Zm.notImplemented("InteractiveObject.requestSoftKeyboard"), !1; }, __getInteractive: function (e) { return ( null != e && null != (e._items[e._length++] = this).parent && this.parent.__getInteractive(e), !0 ); }, __hitTest: function (e, t, s, n, i, r) { return ( !( !!( !!( !( 0 < this.__recursiveMouseListenerCount || null == this.__branchDepth || this.__branchDepth > W.__lastMouseListenerBranchDepth ) || !r.__visible ) || this.__isMask ) || (!!i && !this.mouseEnabled) ) && W.prototype.__hitTest.call(this, e, t, s, n, i, r) ); }, get_tabEnabled: function () { return this.__tabEnabled; }, set_tabEnabled: function (e) { return (this.__tabEnabled = e); }, __class__: yt, __properties__: n(W.prototype.__properties__, { set_tabIndex: "set_tabIndex", get_tabIndex: "get_tabIndex", set_tabEnabled: "set_tabEnabled", get_tabEnabled: "get_tabEnabled", }), })); var Ge = function () { this._length = 0; }; ((s["openfl.utils.UnshrinkableArrayData"] = Ge).__name__ = [ "openfl", "utils", "UnshrinkableArrayData", ]), (Ge.prototype = { __class__: Ge }); var j = function () { yt.call(this), (this.mouseChildren = !0); var e = new Ge(); (e._items = []), (e._length = e._items.length), (this.__children = e); }; ((s["openfl.display.DisplayObjectContainer"] = j).__name__ = [ "openfl", "display", "DisplayObjectContainer", ]), (j.__super__ = yt), (j.prototype = n(yt.prototype, { addChild: function (e) { return this.addChildAt(e, this.__children._length); }, addChildAt: function (e, t) { if (t < 0 || t > this.__children._length) throw new Mp("Invalid index position " + t); this.__useSeparateRenderScaleTransform || (e.__useSeparateRenderScaleTransform = !1); var s = -1; if (e.parent == this) { var n = this.__children, i = n._items.indexOf(e, null); s = i >= n._length ? -1 : i; var r = this.__children; s >= r._length && (r._length = s + 1), (r._items[s] = null); for (var o = this.__children, a = o._length - 1; t <= a; ) (o._items[a + 1] = o._items[a]), --a; (o._items[t] = e), (o._length = t > o._length ? t : o._length), ++o._length; } else { if (null != e.parent) { var l = e.stage; (e.stage = null), e.parent.removeChild(e), (e.stage = l); } for (var h = this.__children, _ = h._length - 1; t <= _; ) (h._items[_ + 1] = h._items[_]), --_; (h._items[t] = e), (h._length = t > h._length ? t : h._length), ++h._length, null != e.__name && "" != e.__name && (this[e.__name] = e), this.initParent(e); } return ( (this.__branchDirty = !0), W.__worldBranchDirty++, this.__updateRecursiveMouseListenerCount( e.__recursiveMouseListenerCount ), -1 < s && this.removeChildAt(s < t ? s : s + 1), e ); }, initParent: function (e) { null != (e.parent = this).stage && e.setStage(this.stage), e.updateCachedParent(), e.__transformDirty || ((e.__transformDirty = !0), e.__isMask && (e.__maskCached = !1), e.__renderDirty || ((e.__renderDirty = !0), W.__worldRenderDirty++, null != e.__cachedParent && e.__cachedParent.__setRenderDirty()), e.__updateDirty || null == e.stage || e == e.stage || (e.__updateDirty = !0), W.__worldTransformDirty++), (e.__updateCachedBitmap = !0), (e.__updateFilters = null != e.__filters && 0 < e.__filters.length), e.__isMask && (e.__maskCached = !1), e.__renderDirty || ((e.__renderDirty = !0), W.__worldRenderDirty++, null != e.__cachedParent && e.__cachedParent.__setRenderDirty()), e.__updateDirty || null == e.stage || e == e.stage || (e.__updateDirty = !0), (this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), e.dispatchEvent(_a.__create("added", !0)); }, areInaccessibleObjectsUnderPoint: function (e) { return !1; }, contains: function (e) { for (; e != this && null != e; ) e = e.parent; return e == this; }, getChildAt: function (e) { if (0 <= e && e < this.__children._length) { var t = this.__children; return e >= t._length ? null : t._items[e]; } return null; }, getChildByName: function (e) { for (var t = 0, s = this.__children; t < s._length; ) { var n = t >= s._length ? null : s._items[t]; if ((++t, n.__name == e)) return n; } return null; }, getChildIndex: function (e) { var t = this.__children, s = t._items.indexOf(e, null); return s >= t._length ? -1 : s; }, hitTestPoint: function (e, t, s) { null == s && (s = !1); var n = yt.prototype.hitTestPoint.call(this, e, t, s); if (n) return n; for (var i = 0, r = this.__children; i < r._length; ) { var o = i >= r._length ? null : r._items[i]; if ((++i, o.hitTestPoint(e, t, s))) return !0; } return !1; }, getObjectsUnderPoint: function (e) { var t = new Ge(); (t._items = []), (t._length = t._items.length); var s = t; this.__hitTest(e.x, e.y, !1, s, !1, this); for (var n = 0, i = s._length - 1; n < i; ) { var r = s._items[n]; (s._items[n] = s._items[i]), (s._items[i] = r), ++n, --i; } return s; }, removeChild: function (e) { return ( null != e && e.parent == this && (e.dispatchEvent(_a.__create("removed", !0)), null != this.stage && e.setStage(null), (this.__branchDirty = !0), W.__worldBranchDirty++, this.__updateRecursiveMouseListenerCount( -e.__recursiveMouseListenerCount ), (e.parent = null) != e.__cachedParent && e.updateCachedParent(), iT.remove(this.__children, e), e.__transformDirty || ((e.__transformDirty = !0), e.__isMask && (e.__maskCached = !1), e.__renderDirty || ((e.__renderDirty = !0), W.__worldRenderDirty++, null != e.__cachedParent && e.__cachedParent.__setRenderDirty()), e.__updateDirty || null == e.stage || e == e.stage || (e.__updateDirty = !0), W.__worldTransformDirty++), (e.__updateCachedBitmap = !0), (e.__updateFilters = null != e.__filters && 0 < e.__filters.length), e.__isMask && (e.__maskCached = !1), e.__renderDirty || ((e.__renderDirty = !0), W.__worldRenderDirty++, null != e.__cachedParent && e.__cachedParent.__setRenderDirty()), e.__updateDirty || null == e.stage || e == e.stage || (e.__updateDirty = !0), (this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0)), e ); }, removeChildAt: function (e) { if (0 <= e && e < this.__children._length) { var t = this.__children, s = e >= t._length ? null : t._items[e]; if (null != s) return this.removeChild(s); iT.splice(this.__children, e, 1), (this.__branchDirty = !0), W.__worldBranchDirty++; } return null; }, removeChildren: function (e, t) { if ( (null == t && (t = 2147483647), null == e && (e = 0), !( (2147483647 == t && (t = this.__children._length - 1) < 0) || e > this.__children._length - 1 )) ) { if (t < e || e < 0 || t > this.__children._length) throw new Mp(new fv("The supplied index is out of bounds.")); for (var s = t - e; 0 <= s; ) this.removeChildAt(e), --s; } }, resolve: function (e) { var t = De.field(this, e); return null != t ? t : this.getChildByName(e); }, setChildIndex: function (e, t) { if (0 <= t && t <= this.__children._length && e.parent == this) { var s = this.__children; if (null == (t >= s._length ? null : s._items[t])) { var n = this.__children, i = n._items.indexOf(e, null), r = i >= n._length ? -1 : i, o = this.__children; r >= o._length && (o._length = r + 1), (o._items[r] = null); var a = this.__children; t >= a._length && (a._length = t + 1), (a._items[t] = e); } else { iT.remove(this.__children, e); for (var l = this.__children, h = l._length - 1; t <= h; ) (l._items[h + 1] = l._items[h]), --h; (l._items[t] = e), (l._length = t > l._length ? t : l._length), ++l._length; } (this.__branchDirty = !0), W.__worldBranchDirty++; } }, swapChildren: function (e, t) { if (e.parent == this && t.parent == this) { var s = this.__children, n = s._items.indexOf(e, null), i = n >= s._length ? -1 : n, r = this.__children, o = r._items.indexOf(t, null), a = o >= r._length ? -1 : o; this.swapChildrenAt(i, a); } }, swapChildrenAt: function (e, t) { var s = this.__children, n = e >= s._length ? null : s._items[e], i = this.__children, r = this.__children, o = t >= r._length ? null : r._items[t]; e >= i._length && (i._length = e + 1), (i._items[e] = o); var a = this.__children; t >= a._length && (a._length = t + 1), (a._items[t] = n), (this.__branchDirty = !0), W.__worldBranchDirty++; }, updateCachedParent: function (e) { if ( ((e = yt.prototype.updateCachedParent.call(this, e)), null != this.__children) ) for (var t = 0, s = this.__children; t < s._length; ) { var n = t >= s._length ? null : s._items[t]; ++t, n.updateCachedParent(e); } return e; }, __broadcast: function (e, t) { null == e.target && (e.target = this); var s = yt.prototype.__broadcast.call(this, e, t); if (!e.__isCanceled && t) for (var n = 0, i = this.__children; n < i._length; ) { var r = n >= i._length ? null : i._items[n]; if ((++n, r.__broadcast(e, !0), e.__isCanceled)) return !0; } return s; }, __getBounds: function (e) { if ( (yt.prototype.__getBounds.call(this, e), 0 != this.__children._length) ) { for ( var t = cy.pool.get(), s = 0, n = this.__children; s < n._length; ) { var i = s >= n._length ? null : n._items[s]; if ((++s, i.isRenderable())) { var r = i.__transform; i.__getBounds(t), t.isEmpty() || t.transform(t, r), e.__expand(t.x, t.y, t.width, t.height); } } cy.pool.put(t); } }, __getChildrenRenderBounds: function (e) { if (0 != this.__children._length) { for ( var t = cy.pool.get(), s = 0, n = this.__children; s < n._length; ) { var i = s >= n._length ? null : n._items[s]; ++s, i.isRenderable() && (i.__getRenderBounds(t), e.__expand(t.x, t.y, t.width, t.height)); } cy.pool.put(t); } }, __hitTest: function (e, t, s, n, i, r) { if ( !!( !!( !( 0 < this.__recursiveMouseListenerCount || null == this.__branchDepth || this.__branchDepth > W.__lastMouseListenerBranchDepth ) || !r.__visible ) || this.__isMask ) || (!(!i || this.mouseChildren) && !this.mouseEnabled) ) return !1; if (null != this.__mask && !this.__mask.__hitTestMask(e, t)) return !1; var o = qm.pool.get(); if ( (o.setTo(e, t), null != this.__scrollRect && !this.__scrollRect.containsPoint(this.globalToLocal(o))) ) return qm.pool.put(o), !1; qm.pool.put(o); var a = this.getSymbol(); s = !!s && (null == a || a.pixelPerfectHitTest); var l = 0 < this.__mouseListenerCount; if (l) { var h = j.__mouseListenerBranchDepthStack; if ( ((h._items[h._length++] = this.__branchDepth), null == this.__branchDepth) ) { for (var _ = 0, u = this; null == u.__branchDepth; ) (u = u.parent), ++_; this.__branchDepth = u.__branchDepth + _; } W.__lastMouseListenerBranchDepth = 0 != this.__branchDepth ? this.__branchDepth : 9999; } var d = this.__children._length; if (i) if (null != n && this.mouseChildren) { if (null != n) { for (var c = n._length, f = !1, p = !1; 0 <= --d; ) { var b = this.__children, m = d >= b._length ? null : b._items[d], g = m.__clippedAt; if (-1 != g) { var w, v = this.__children; if (null != (g >= v._length ? null : v._items[g])) { var y = this.__children; w = !(g >= y._length ? null : y._items[g]).__hitTestMask( e, t ); } else w = !1; if (w) { d = g; continue; } } if ( ((f = m.__getInteractive(null)) || (this.mouseEnabled && !p)) && m.__hitTest(e, t, s, n, !0, m) && (this.mouseEnabled && (p = !0), f) ) { if (p) break; if (l) { var T = j.__mouseListenerBranchDepthStack; T._items[--T._length]; T._items[T._length] = null; var S = j.__mouseListenerBranchDepthStack, x = S._items[S._length - 1]; W.__lastMouseListenerBranchDepth = 0 != x ? x : 9999; } return !0; } } if (p) { for (var E = n._length - 1; c <= E; ) (n._items[E + 1] = n._items[E]), --E; if ( ((n._items[c] = r), (n._length = c > n._length ? c : n._length), ++n._length, l) ) { var P = j.__mouseListenerBranchDepthStack; P._items[--P._length]; P._items[P._length] = null; var R = j.__mouseListenerBranchDepthStack, A = R._items[R._length - 1]; W.__lastMouseListenerBranchDepth = 0 != A ? A : 9999; } return !0; } } } else for (; 0 <= --d; ) { var I = this.__children, C = d >= I._length ? null : I._items[d], B = C.__clippedAt; if (-1 != B) { var D, k = this.__children; if (null != (B >= k._length ? null : k._items[B])) { var F = this.__children; D = !(B >= F._length ? null : F._items[B]).__hitTestMask( e, t ); } else D = !1; if (D) { d = B; continue; } } if ( null != C && C.__hitTest(e, t, s, null, this.mouseChildren, C) ) { if ((null != n && (n._items[n._length++] = r), l)) { var M = j.__mouseListenerBranchDepthStack; M._items[--M._length]; M._items[M._length] = null; var L = j.__mouseListenerBranchDepthStack, N = L._items[L._length - 1]; W.__lastMouseListenerBranchDepth = 0 != N ? N : 9999; } return !0; } } else for (; 0 <= --d; ) { var O = this.__children, U = this.__children; if ( (d >= O._length ? null : O._items[d]).__hitTest( e, t, s, n, !1, d >= U._length ? null : U._items[d] ) ) { if ((null != n && (n._items[n._length++] = r), l)) { var G = j.__mouseListenerBranchDepthStack; G._items[--G._length]; G._items[G._length] = null; var z = j.__mouseListenerBranchDepthStack, X = z._items[z._length - 1]; W.__lastMouseListenerBranchDepth = 0 != X ? X : 9999; } return !0; } } if (l) { var H = j.__mouseListenerBranchDepthStack; H._items[--H._length]; H._items[H._length] = null; var V = j.__mouseListenerBranchDepthStack, Y = V._items[V._length - 1]; W.__lastMouseListenerBranchDepth = 0 != Y ? Y : 9999; } return !1; }, __hitTestMask: function (e, t) { for (var s = this.__children._length; 0 <= --s; ) { var n = this.__children; if (null != (s >= n._length ? null : n._items[s])) { var i = this.__children; if ((s >= i._length ? null : i._items[s]).__hitTestMask(e, t)) return !0; } } return !1; }, __renderCanvas: function (e) { if (this.isRenderable() && !(this.__worldAlpha <= 0)) { yt.prototype.__renderCanvas.call(this, e), null != this.__scrollRect && e.maskManager.pushRect(this.__scrollRect, this.__worldTransform), null != this.__mask && e.maskManager.pushMask(this.__mask); for (var t = 0, s = this.__children; t < s._length; ) { var n = t >= s._length ? null : s._items[t]; ++t, n.__renderCanvas(e); } null != this.__mask && e.maskManager.popMask(), null != this.__scrollRect && e.maskManager.popRect(); } }, __renderCanvasMask: function (e) { throw new Mp(":TODO: Remove"); }, __renderGL: function (e) { if (this.isRenderable() && !(this.__worldAlpha <= 0)) if (this.__resolvedCacheAsBitmap) { if ( ((this.__isCachingAsBitmap = !0), (!this.__updateCachedBitmap && !this.__updateFilters) || (this.forbidCachedBitmapUpdate && null != this.__cachedBitmap) || this.__updateCachedBitmapFn(e), 0 < this.__cachedBitmap.width && 0 < this.__cachedBitmap.height) ) { this.__cacheGLMatrix.identity(), this.__cacheGLMatrix.copyFrom(this.__renderTransform), this.__cacheGLMatrix.translate( this.__offset.x, this.__offset.y ); var t = this.__cachedBitmap, s = this.__cacheAsBitmapSmooth, n = this.__cacheGLMatrix, i = this.__worldColorTransform, r = this.__worldAlpha, o = this.blendMode, a = this.__shader; null != t && e.spriteBatch.renderBitmapDataEx( t, t.physicalWidth, t.physicalHeight, t.get_uvData(), s, n, i, r, o, a, 2 ); } this.__isCachingAsBitmap = !1; } else { null != this.__scrollRect && e.maskManager.pushRect(this.__scrollRect, this.__renderTransform), null != this.__mask && (this.__mask.__maskCached || (null != this.__mask.__cachedBitmap && (this.__mask.__cachedBitmap.dispose(), (this.__mask.__cachedBitmap = null)), (this.__mask.__isMask = !0), this.__mask.__update(!0, !0), (this.__mask.__maskCached = !0)), e.maskManager.pushMask(this.__mask)), this.__drawGraphicsGL(e); for (var l = -1, h = 0, _ = this.__children; h < _._length; ) { var u = h >= _._length ? null : _._items[h]; ++h, -1 == --l && e.maskManager.popMask(), 0 != u.__clipDepth ? (u.__maskCached || (null != u.__cachedBitmap && (u.__cachedBitmap.dispose(), (u.__cachedBitmap = null)), (u.__isMask = !0), u.__update(!0, !0), (u.__maskCached = !0)), e.maskManager.pushMask(u), (l = u.__clipDepth)) : u.__renderGL(e); } 0 <= l && e.maskManager.popMask(), null != this.__mask && e.maskManager.popMask(), null != this.__scrollRect && e.maskManager.popRect(); } }, __fireRemovedFromStageEvent: function (e) { if ( (yt.prototype.__fireRemovedFromStageEvent.call(this, e), null != this.__children) ) for (var t = 0, s = this.__children; t < s._length; ) { var n = t >= s._length ? null : s._items[t]; ++t, n.__fireRemovedFromStageEvent(e); } }, __updateStageInternal: function (e) { if ( (yt.prototype.__updateStageInternal.call(this, e), null != this.__children) ) for (var t = 0, s = this.__children; t < s._length; ) { var n = t >= s._length ? null : s._items[t]; ++t, n.__updateStageInternal(e); } }, __fireAddedToStageEvent: function (e) { if ( (yt.prototype.__fireAddedToStageEvent.call(this, e), null != this.__children) ) for (var t = 0, s = this.__children; t < s._length; ) { var n = t >= s._length ? null : s._items[t]; ++t, n.__fireAddedToStageEvent(e); } }, __releaseResources: function () { if (yt.prototype.__releaseResources.call(this)) { if (null != this.__children) for (var e = 0, t = this.__children; e < t._length; ) { var s = e >= t._length ? null : t._items[e]; ++e, s.__releaseResources(); } return !0; } return !1; }, __cleanupIntermediateTextures: function () { yt.prototype.__cleanupIntermediateTextures.call(this); for (var e = 0, t = this.__children; e < t._length; ) { var s = e >= t._length ? null : t._items[e]; ++e, s.__cleanupIntermediateTextures(); } }, __update: function (e, t) { if ( (yt.prototype.__update.call(this, e, t), (this.isRenderable() || this.__isMask) && t) ) for (var s = 0, n = this.__children; s < n._length; ) { var i = s >= n._length ? null : n._items[s]; ++s, i.__update(e, !0); } }, __updateChildren: function (e) { yt.prototype.__updateChildren.call(this, e); for (var t = 0, s = this.__children; t < s._length; ) { var n = t >= s._length ? null : s._items[t]; ++t, n.__update(e, !0); } }, isRenderable: function () { return ( !!yt.prototype.isRenderable.call(this) && (null != this.__graphics || (null != this.__children && 0 < this.__children._length)) ); }, __pushHitTestLevel: function (e) { if (e) { var t = j.__mouseListenerBranchDepthStack; if ( ((t._items[t._length++] = this.__branchDepth), null == this.__branchDepth) ) { for (var s = 0, n = this; null == n.__branchDepth; ) (n = n.parent), ++s; this.__branchDepth = n.__branchDepth + s; } W.__lastMouseListenerBranchDepth = 0 != this.__branchDepth ? this.__branchDepth : 9999; } }, __popHitTestLevel: function (e) { if (e) { var t = j.__mouseListenerBranchDepthStack; t._items[--t._length]; t._items[t._length] = null; var s = j.__mouseListenerBranchDepthStack, n = s._items[s._length - 1]; W.__lastMouseListenerBranchDepth = 0 != n ? n : 9999; } }, get_numChildren: function () { return this.__children._length; }, __onResolvedCacheAsBitmapChanged: function () { for ( var e = this.__resolvedCacheAsBitmap ? this : null, t = 0, s = this.__children; t < s._length; ) { var n = t >= s._length ? null : s._items[t]; ++t, n.updateCachedParent(e); } }, __class__: j, __properties__: n(yt.prototype.__properties__, { get_numChildren: "get_numChildren", }), })); var o = function () { j.call(this), (this.buttonMode = !1), (this.useHandCursor = !0); }; ((s["openfl.display.Sprite"] = o).__name__ = ["openfl", "display", "Sprite"]), (o.__super__ = j), (o.prototype = n(j.prototype, { startDrag: function (e, t) { null == e && (e = !1), null != this.stage && this.stage.__startDrag(this, e, t); }, stopDrag: function () { null != this.stage && this.stage.__stopDrag(this); }, __getCursor: function () { return this.buttonMode && this.useHandCursor ? Bm.POINTER : null; }, __hitTest: function (e, t, s, n, i, r) { var o = this.getSymbol(); if ( ((s = !!s && (null == o || o.pixelPerfectHitTest)), null != this.hitArea) ) { if (!this.hitArea.mouseEnabled) { var a = 0 < this.__mouseListenerCount; if (a) { var l = j.__mouseListenerBranchDepthStack; if ( ((l._items[l._length++] = this.__branchDepth), null == this.__branchDepth) ) { for (var h = 0, _ = this; null == _.__branchDepth; ) (_ = _.parent), ++h; this.__branchDepth = _.__branchDepth + h; } W.__lastMouseListenerBranchDepth = 0 != this.__branchDepth ? this.__branchDepth : 9999; } this.hitArea.mouseEnabled = !0; var u = this.hitArea.__hitTest(e, t, s, null, !0, r); if (((this.hitArea.mouseEnabled = !1), a)) { var d = j.__mouseListenerBranchDepthStack; d._items[--d._length]; d._items[d._length] = null; var c = j.__mouseListenerBranchDepthStack, f = c._items[c._length - 1]; W.__lastMouseListenerBranchDepth = 0 != f ? f : 9999; } return u && (n._items[n._length++] = r), u; } } else { if ( !r.__visible || this.__isMask || (i && !this.mouseChildren && !this.mouseEnabled) ) return !1; if (null != this.__mask && !this.__mask.__hitTestMask(e, t)) return !1; if (j.prototype.__hitTest.call(this, e, t, s, n, i, r)) return !0; if ( (!i || this.mouseEnabled) && null != this.__graphics && this.__graphics.__hitTest(e, t, s, this.__getWorldTransform()) ) return null != n && (n._items[n._length++] = r), !0; } return !1; }, __hitTestMask: function (e, t) { return ( !!j.prototype.__hitTestMask.call(this, e, t) || !( null == this.__graphics || !this.__graphics.__hitTest(e, t, !0, this.__getWorldTransform()) ) ); }, get_graphics: function () { return ( null == this.__graphics && ((this.__graphics = new hw()), (this.__graphics.__owner = this)), this.__graphics ); }, get_tabEnabled: function () { return !!this.__tabEnabled || this.buttonMode; }, __class__: o, __properties__: n(j.prototype.__properties__, { get_graphics: "get_graphics", }), })); var d = function () { o.call(this), (this.__currentFrame = 0), (this.__currentLabels = []), (this.__totalFrames = 0); }; ((s["openfl.display.MovieClip"] = d).__name__ = [ "openfl", "display", "MovieClip", ]), (d.__super__ = o), (d.prototype = n(o.prototype, { addFrameScript: function (e, t) { null != t ? (null == this.__frameScripts && (this.__frameScripts = new lp()), (this.__frameScripts.h[e] = t)) : null != this.__frameScripts && this.__frameScripts.remove(e); }, addStaticFrameScript: function (e, t) { null != t ? (null == this.__staticFrameScripts && (this.__staticFrameScripts = new lp()), (this.__staticFrameScripts.h[e] = t)) : null != this.__staticFrameScripts && this.__staticFrameScripts.remove(e); }, gotoAndPlay: function (e, t) {}, gotoAndStop: function (e, t) {}, nextFrame: function () {}, play: function () {}, prevFrame: function () {}, stop: function () {}, get_currentFrame: function () { return this.__currentFrame; }, get_currentFrameLabel: function () { return this.__currentFrameLabel; }, get_currentLabel: function () { return this.__currentLabel; }, get_currentLabels: function () { return this.__currentLabels; }, get_framesLoaded: function () { return this.__totalFrames; }, get_totalFrames: function () { return this.__totalFrames; }, __class__: d, __properties__: n(o.prototype.__properties__, { get_totalFrames: "get_totalFrames", get_framesLoaded: "get_framesLoaded", get_currentLabels: "get_currentLabels", get_currentLabel: "get_currentLabel", get_currentFrameLabel: "get_currentFrameLabel", get_currentFrame: "get_currentFrame", }), })); var u = function (e, t) { if ( ((this.__maskDataDirty = !1), (this.__updating9SliceBitmap = !1), (this.__9SliceBitmapScaleY = 0), (this.__9SliceBitmapScaleX = 0), d.call(this), (this.__swf = e), (this.__symbol = t), (this.__lastUpdate = 1), (this.__objects = new lp()), (this.__zeroSymbol = -1), (this.__childrenHaveClippedAtProperty = !1), (this.__currentFrame = 1), null != this.__symbol ? ((this.__totalFrames = this.__symbol.frames.length), this.set_cacheAsBitmap(this.__symbol.useUniqueSharedBitmapCache)) : (this.__totalFrames = 0), (this.__SWFDepthData = new hp()), (this.__maskData = new hp()), (this.__maskDataKeys = []), (this.__currentLabels = []), null != this.__symbol) ) for (var s = 0, n = this.__symbol.frames.length; s < n; ) { var i = s++; null != this.__symbol.frames[i].label && this.__currentLabels.push( new ow(this.__symbol.frames[i].label, i + 1) ); } (this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), 1 < this.__totalFrames && this.play(), this.__renderFrame(0); }; ((s["format.swf.lite.MovieClip"] = u).__name__ = [ "format", "swf", "lite", "MovieClip", ]), (u.__properties__ = { set_processSoundCommandCallback: "set_processSoundCommandCallback", get_processSoundCommandCallback: "get_processSoundCommandCallback", }), (u._processSoundCommandCallback = null), (u.get_processSoundCommandCallback = function () { return u._processSoundCommandCallback; }), (u.set_processSoundCommandCallback = function (e) { return ( Jp.current.addModule(new Ia()), (u._processSoundCommandCallback = e) ); }), (u.__super__ = d), (u.prototype = n(d.prototype, { enableChildrenCache: function () { this.__childrenCache = new hp(); }, getSymbol: function () { return this.__symbol; }, gotoAndPlay: function (e, t) { this.__goto(e, t) && this.play(); }, gotoAndStop: function (e, t) { this.__goto(e, t) && this.stop(); }, nextFrame: function () { var e = this.__currentFrame + 1; e > this.__totalFrames && (e = this.__totalFrames), (this.__currentFrame = e), this.__updateFrame(); }, play: function () { !this.__playing && 1 < this.__totalFrames && ((this.__playing = !0), (this.__timeElapsed = 0)); }, prevFrame: function () { var e = this.__currentFrame - 1; e < 1 && (e = 1), this.gotoAndStop(e); }, stop: function () { this.__playing && (this.__playing = !1); }, get_graphics: function () { if (null != this.__graphics && null == this.__graphics.__owner) throw new Mp("Not allowed!"); return d.prototype.get_graphics.call(this); }, unflatten: function () { (this.__lastUpdate = 0), this.__updateFrame(); }, __applyTween: function (e, t, s) { return e + (t - e) * s; }, __createObject: function (e) { var t = null, s = !1; if ( null != this.__childrenCache && null != this.__childrenCache.h.__keys__[e.__id__] ) return this.__childrenCache.h[e.__id__]; if (this.__swf.symbols.h.hasOwnProperty(e.symbol)) { var n = this.__swf.symbols.h[e.symbol]; if (n.poolable && ((s = !0), 0 < n.pool.size)) { var i = n.pool.get(); return i.__reset(), null != e.name && i.set_name(e.name), i; } if (null == t && null != n.className) { var r = n.className, o = this.__swf.classes, a = null != NT[r] ? o.getReserved(r) : o.h[r]; null != a && (t = ms.createInstance(a, [this.__swf, n])); } if (null == t && this.__swf.classes_id.h.hasOwnProperty(e.symbol)) { var l = this.__swf.classes_id.h[e.symbol]; null != l && (t = ms.createInstance(l, [this.__swf, n])); } null == t && (t = Lp.__instanceof(n, Ka) ? new u(this.__swf, n) : Lp.__instanceof(n, Va) ? this.__createShape(n) : Lp.__instanceof(n, Xa) ? this.__createMorphShape(n) : Lp.__instanceof(n, Oa) ? new ew(sw.getFromSymbol(n), 1, !0) : Lp.__instanceof(n, Ga) ? new xa(this.__swf, n) : Lp.__instanceof(n, qa) ? new La(this.__swf, n) : Lp.__instanceof(n, Ua) ? new Fa(this.__swf, n) : Lp.__instanceof(n, Wa) ? new Ma(this.__swf, n) : new W()).set_forbidCachedBitmapUpdate( n.forbidCachedBitmapUpdate ), (t.symbolId = n.id), null != e.name && t.set_name(e.name); } return ( null == this.__childrenCache || s || this.__childrenCache.set(e, t), t ); }, __createShape: function (e) { var t = new Ea(), s = new hw(!1); return (t.__graphics = s).copyFrom(e.graphics, !0), (s.__owner = t); }, __createMorphShape: function (e) { return new Pa(this.__swf, e); }, __getFrameTime: function () { var e = this.stage.frameTime; return null != e ? e : this.__swf.frameTime; }, __enterFrame: function (e) { if (this.__playing) { this.__timeElapsed += e; var t = this.stage.frameTime, s = null != t ? t : this.__swf.frameTime, n = Math.floor(this.__timeElapsed / s); for ( this.__timeElapsed %= s, this.__currentFrame += n; this.__currentFrame > this.__totalFrames; ) this.__currentFrame -= this.__totalFrames; this.__updateFrame(); } d.prototype.__enterFrame.call(this, e); }, __getFrame: function (e) { var t = 0; if ("number" == typeof e && (0 | e) === e) t = e; else if ("string" == typeof e) { var s = e; if (null != this.__symbol) { for (var n = !1, i = 0, r = this.__symbol.frames.length; i < r; ) { var o = i++; if (this.__symbol.frames[o].label == s) { (t = o + 1), (n = !0); break; } } n || (t = this.__currentFrame); } } return ( t < 1 ? (t = 1) : t > this.__totalFrames && (t = this.__totalFrames), t ); }, __goto: function (e, t) { if (null != this.__targetFrame) return !1; var s = this.__getFrame(e); if (s == this.__currentFrame) return !0; for ( this.__targetFrame = s, this.play(); (this.__playing = !0), (this.__currentFrame = this.__targetFrame), this.__updateFrame(), this.__targetFrame != this.__currentFrame; ); return (this.__targetFrame = null), this.__playing; }, __placeObject: function (e, t) { var s; if ( null != t.matrix && (e.get_transform().set_matrix(t.matrix), Lp.__instanceof(e, xa)) ) { s = e; var n = t.matrix, i = s.symbol.x, r = s.symbol.y; e.set_x(Math.round(e.__transform.tx + n.a * i + n.c * r)), e.set_y(Math.round(e.__transform.ty + n.b * i + n.d * r)); } Lp.__instanceof(e, Pa) && null != t.ratio && e.set_ratio(t.ratio); if ( (null != t.colorTransform && e.get_transform().set_colorTransform(t.colorTransform), null != t.blendMode && e.set_blendMode(t.blendMode), e.set_cacheAsBitmap(e.__resolvedCacheAsBitmap || t.cacheAsBitmap), null != t.filters) ) { for (var o = [], a = 0, l = t.filters; a < l.length; ) { var h = l[a]; switch ((++a, h[1])) { case 0: var _ = h[4], u = h[3], d = h[2]; o.push(new Ov(d, u, _)); break; case 1: var c, f = h[3], p = h[2].value; c = null != p ? new GT(p) : null; var b, m = f.value; (b = null != m ? new GT(m) : null), o.push(new Uv(c, b)); break; case 2: var g = h[12], w = h[11], v = h[10], y = h[9], T = h[8], S = h[7], x = h[6], E = h[5], P = h[4], R = h[3], A = h[2]; o.push(new Gv(A, R, P, E, x, S, T, y, v, w, g)); break; case 3: var I = h[9], C = h[8], B = h[7], D = h[6], k = h[5], F = h[4], M = h[3], L = h[2]; o.push(new zv(L, M, F, k, D, B, C, I)); break; case 4: var N = h[12], O = h[11], U = h[10], G = h[9], z = h[8], X = h[7], H = h[6], V = h[5], Y = h[4], W = h[3], j = h[2]; o.push(new Xv(j, W, Y, V, H, X, z, G, U, O, N)); break; case 5: var K = h[13], q = h[12], Z = h[11], J = h[10], Q = h[9], $ = h[8], ee = h[7], te = h[6], se = h[5], ne = h[4], ie = h[3], re = h[2]; o.push(new Lv(re, ie, ne, se, te, ee, $, Q, J, Z, q, K)); break; case 6: var oe = h[12], ae = h[11], le = h[10], he = h[9], _e = h[8], ue = h[7], de = h[6], ce = h[5], fe = h[4], pe = h[3], be = h[2]; o.push(new Mv(be, pe, fe, ce, de, ue, _e, he, le, ae, oe)); } } e.set_filters(o); } else e.set_filters(null); null != e.__name && (this[e.__name] = e); }, __update9SliceBitmap: function () { var e = Math.max(1, this.renderScaleX), t = Math.max(1, this.renderScaleY); if ( (null != this.__9SliceBitmap && (1e-5 < Math.abs(e - this.__9SliceBitmapScaleX) || 1e-5 < Math.abs(t - this.__9SliceBitmapScaleY)) && (this.__9SliceBitmap.dispose(), (this.__9SliceBitmap = null)), null == this.__9SliceBitmap) ) { (this.__9SliceBitmapScaleX = e), (this.__9SliceBitmapScaleY = t), (this.__updating9SliceBitmap = !0); var s = cy.pool.get(); if ((this.__getBounds(s), s.width <= 0 && s.height <= 0)) throw ( (cy.pool.put(s), new Mp( "Error creating a cached bitmap. The texture size is " + s.width + "x" + s.height )) ); if ( (null == this.__scale9Rect ? (this.__scale9Rect = this.__symbol.scalingGridRect.clone()) : this.__scale9Rect.copyFrom(this.__symbol.scalingGridRect), !this.__scale9Rect.intersects(s)) ) return ( (this.__9SliceBitmap = null), (this.__updating9SliceBitmap = !1), void cy.pool.put(s) ); (this.__scale9Rect.x -= s.x), (this.__scale9Rect.y -= s.y); var n = this.renderScaleX, i = this.renderScaleY; (this.renderScaleX = e), (this.renderScaleY = t); for (var r = 0, o = this.__children; r < o._length; ) { var a = r >= o._length ? null : o._items[r]; if ((++r, a.renderScaleX != n || a.renderScaleY != i)) throw new Mp( ":TODO: 9 sliced child has different render scale than parent" ); (a.renderScaleX = e), (a.renderScaleY = t); } var l = Zm.current.stage.__renderer.renderSession, h = sw.__asRenderTexture(); h.__resize( s.width, s.height, Math.ceil(s.width * e), Math.ceil(s.height * t) ); var _ = Km.pool.get(); _.identity(), (_.a = e), (_.d = t), _.translate(-s.x * e, -s.y * t), l.maskManager.pushMask(null), h.__pushFrameBuffer(l, !1, !1, !0), Cg.drawBitmapDrawable(l, null, this, _, null, null, null), Cg.popFramebuffer(l, null), (h.__imageShouldBeSynced = !0); var u = h.__pingPongTexture, d = (u.__swapped ? u.__texture1 : u.__texture0).__uvData; h.__createUVs(d.x0, d.y0, d.x1, d.y1, d.x2, d.y2, d.x3, d.y3), (h.__isValid = !0), (h.__usingPingPongTexture = !0), l.maskManager.popMask(), Km.pool.put(_), cy.pool.put(s), (this.__9SliceBitmap = h), (this.__updating9SliceBitmap = !1), (this.renderScaleX = n), (this.renderScaleY = i); for (var c = 0, f = this.__children; c < f._length; ) { var p = c >= f._length ? null : f._items[c]; ++c, (p.renderScaleX = n), (p.renderScaleY = i); } } }, drawScale9Bitmap: function (e) { if (this.__resolvedCacheAsBitmap) { if ( ((this.__isCachingAsBitmap = !0), (!this.__updateCachedBitmap && !this.__updateFilters) || (this.forbidCachedBitmapUpdate && null != this.__cachedBitmap) || this.__updateCachedBitmapFn(e), 0 < this.__cachedBitmap.width && 0 < this.__cachedBitmap.height) ) { this.__cacheGLMatrix.identity(), this.__cacheGLMatrix.copyFrom(this.__renderTransform), this.__cacheGLMatrix.translate(this.__offset.x, this.__offset.y); var t = this.__cachedBitmap, s = this.__cacheAsBitmapSmooth, n = this.__cacheGLMatrix, i = this.__worldColorTransform, r = this.__worldAlpha, o = this.blendMode, a = this.__shader; null != t && e.spriteBatch.renderBitmapDataEx( t, t.physicalWidth, t.physicalHeight, t.get_uvData(), s, n, i, r, o, a, 2 ); } this.__isCachingAsBitmap = !1; } else { var l = cy.pool.get(); this.__getBounds(l); var h = this.__9SliceBitmap.width, _ = this.__9SliceBitmap.height, u = h - this.__scale9Rect.width, d = _ - this.__scale9Rect.height, c = 1, f = 1, p = this.get_width(), b = this.get_height(); p < u && (c = p / u), b < d && (f = b / d); var m = new cy(); m.set_left(c * this.__scale9Rect.get_left()), m.set_right( Math.max( m.get_left(), p - c * (h - this.__scale9Rect.get_right()) ) ), m.set_top(f * this.__scale9Rect.get_top()), m.set_bottom( Math.max( m.get_top(), b - f * (_ - this.__scale9Rect.get_bottom()) ) ); for ( var g = h / p, w = _ / b, v = [0, m.get_left() * g, m.get_right() * g, h], y = [0, m.get_top() * w, m.get_bottom() * w, _], T = [ 0, this.__scale9Rect.get_left() / h, this.__scale9Rect.get_right() / h, 1, ], S = [ 0, this.__scale9Rect.get_top() / _, this.__scale9Rect.get_bottom() / _, 1, ], x = vw.pool.get(), E = this.__9SliceBitmap.get_uvData(), P = E.x1 - E.x0, R = E.y2 - E.y0, A = new Km(), I = 0; I < 3; ) for (var C = I++, B = 0; B < 3; ) { var D = B++, k = v[D], F = y[C], M = v[D + 1] - v[D], L = y[C + 1] - y[C]; A.identity(), A.translate(k + l.x, F + l.y), A.concat(this.__renderTransform), (x.x0 = x.x3 = T[D] * P), (x.x1 = x.x2 = T[D + 1] * P), (x.y0 = x.y1 = S[C] * R), (x.y2 = x.y3 = S[C + 1] * R), e.spriteBatch.renderBitmapDataEx( this.__9SliceBitmap, M, L, x, !0, A, this.__worldColorTransform, 1, this.__blendMode, this.__shader, null ); } vw.pool.put(x), cy.pool.put(l); } }, __renderGL: function (e) { !this.isRenderable() || this.__worldAlpha <= 0 || (this.__updating9SliceBitmap || null == this.__symbol || null == this.__symbol.scalingGridRect || this.__update9SliceBitmap(), this.__updateSwfMaskData(), null != this.__symbol && null != this.__symbol.scalingGridRect && null != this.__9SliceBitmap ? this.drawScale9Bitmap(e) : d.prototype.__renderGL.call(this, e)); }, frame0ChildrenUpdate: function () { if (null != this.__symbol) for ( var e = this.__symbol.frames[0], t = this.__objects.keys(); t.hasNext(); ) { for ( var s = t.next(), n = !0, i = !0, r = 0, o = e.objects; r < o.length; ) { var a = o[r]; if ((++r, a.id == s)) { i = !(n = a.symbol != De.field(this.__objects.h[s], "symbolId")) && null == a.colorTransform; break; } } if (n) { var l = this.__objects.h[s]; null != l && this.removeChild(l), this.__objects.remove(s); } else i && this.__objects.h[s].__colorTransform.reset(); } }, __renderFrame: function (e) { if (null == this.__symbol || 0 == this.__symbol.frames.length) return !1; var t, s; 0 == e && this.frame0ChildrenUpdate(), null != (t = this.__symbol.frames[e]).startSound && null != u._processSoundCommandCallback && ((null != this.__targetFrame && this.__targetFrame != e + 1) || u.soundCommandTable.push({ movieClip: this, frame: e, command: t.startSound, })), (this.__currentFrame = e + 1), (this.__lastUpdate = e + 1); for (var n = 0, i = t.objects; n < i.length; ) { var r = i[n]; if ((++n, r.type != $a.DESTROY)) { if (this.__objects.h.hasOwnProperty(r.id)) { if ( ((s = this.__objects.h[r.id]), r.type == $a.UPDATE_CHARACTER) ) { var o = s, a = this.__maskData.h[s.__id__]; this.removeChild(s), (s = this.__createObject(r)).set_name(o.__name), s .get_transform() .set_matrix(o.get_transform().getMatrixNoClone()), s .get_transform() .set_colorTransform(o.get_transform().get_colorTransform()), s.set_alpha(o.__colorTransform.alphaMultiplier), null != o.__filters && s.set_filters( o.__filters.map(function (e) { return e.clone(); }) ), null != a && (this.__maskDataKeys.push(s), this.__maskData.set(s, a), (s.__isMask = !0)), this.__addChildAtSwfDepth(s, r.depth), (this.__objects.h[r.id] = s); } } else null != (s = this.__createObject(r)) && (this.__addChildAtSwfDepth(s, r.depth), (this.__objects.h[r.id] = s)); if (null != s && (this.__placeObject(s, r), 0 != r.clipDepth)) { s.set_visible(!1); var l = r.clipDepth; this.__maskDataKeys.push(s), this.__maskData.set(s, l), (s.__isMask = !0); } } else this.__objects.h.hasOwnProperty(r.id) && (null != (s = this.__objects.h[r.id]) && s.parent == this && this.removeChild(s), this.__objects.remove(r.id)); } 0 < t.objects.length && ((this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), (this.__maskDataDirty = !0)); var h = this.__symbol.frames[e].label; return ( null != (this.__currentFrameLabel = h) && (this.__currentLabel = h), this.__updateSwfMaskData(), !( null == this.__frameScripts || !this.__frameScripts.h.hasOwnProperty(e) || (this.__frameScripts.h[e](), e + 1 == this.__currentFrame) ) || !( null == this.__staticFrameScripts || !this.__staticFrameScripts.h.hasOwnProperty(e) || (this.__staticFrameScripts.h[e](this), e + 1 == this.__currentFrame) ) ); }, __addObjectToMaskData: function (e, t) { this.__maskDataKeys.push(e), this.__maskData.set(e, t), (e.__isMask = !0); }, __updateFrame: function () { if (this.__currentFrame != this.__lastUpdate) { var e = !1; if (this.__currentFrame < this.__lastUpdate) { var t, s, n, i, r = this.__currentFrame; if (null == this.__targetFrame) for (t = this.__lastUpdate, s = this.__totalFrames; t < s; ) { var o = t++; if (((e = this.__renderFrame(o)), !this.__playing || e)) break; } if (this.__playing && !e) for (n = 0, i = r; n < i; ) { var a = n++; if (((e = this.__renderFrame(a)), !this.__playing || e)) break; } } else { var l, h; for (l = this.__lastUpdate, h = this.__currentFrame; l < h; ) { var _ = l++; if (((e = this.__renderFrame(_)), !this.__playing || e)) break; } } } }, __updateSwfMaskData: function () { if (this.__maskDataDirty) { var e = this.__children._length; if (this.__childrenHaveClippedAtProperty) { for (var t = 0, s = this.__children; t < s._length; ) { var n = t >= s._length ? null : s._items[t]; ++t, (n.__clippedAt = -1); } this.__childrenHaveClippedAtProperty = !1; } if (0 < this.__maskDataKeys.length) { this.__childrenHaveClippedAtProperty = !0; for (var i = 0, r = this.__maskDataKeys; i < r.length; ) { var o = r[i]; ++i; for ( var a = this.getChildIndex(o), l = this.__maskData.h[o.__id__], h = e, _ = a + 1, u = e; _ < u; ) { var d = _++, c = this.getChildAt(d); if (null != c) { if (this.__SWFDepthData.h[c.__id__] > l) { h = d; break; } c.__clippedAt = a; } } o.__clipDepth = h - a - 1; } } } this.__maskDataDirty = !1; }, getNextHighestDepthExternal: function () { if (0 < this.__children._length) { var e = this.__SWFDepthData, t = this.getChildAt(this.__children._length - 1); return e.h[t.__id__] - 16383 + 1; } return 0; }, getDepth: function () { return Lp.__cast(this.parent, u).__SWFDepthData.h[this.__id__]; }, getDepthExternal: function () { return this.getDepth() - 16383; }, addChildAtSwfDepthExternal: function (e, t) { this.__addChildAtSwfDepth(e, t + 16383), (this.__maskDataDirty = !0); }, swapDepths: function (e) { var t, s = null, n = Lp.__cast(this.parent, u); if (("number" == typeof e && (0 | e) === e) || "number" == typeof e) { t = 16383 + (0 | e); for (var i = 0, r = n.__children._length; i < r; ) { var o = i++, a = n.__SWFDepthData, l = n.getChildAt(o); if (a.h[l.__id__] == t) { s = this.getChildAt(o); break; } } } else { if (!Lp.__instanceof(e, W)) throw new Mp( "Trying to swap depths with unknown type.. " + ms.getClassName(e) ); (s = e), (t = n.__SWFDepthData.h[e.__id__]); } var h = this.getDepth(); null != s && n.__addChildAtSwfDepth(s, h), n.__addChildAtSwfDepth(this, t), (n.__maskDataDirty = !0); }, __addChildAtSwfDepth: function (e, t) { this.__SWFDepthData.set(e, t); for (var s = this.__children._length - 1; 0 <= s; ) { var n = this.getChildAt(s); if (this.__SWFDepthData.h[n.__id__] <= t) return void this.addChildAt(e, s + 1); --s; } this.addChildAt(e, 0); }, removeChild: function (e) { var t = d.prototype.removeChild.call(this, e); return ( null != e && (this.__SWFDepthData.remove(t), he.remove(this.__maskDataKeys, t), this.__maskData.remove(t), (this.__maskDataDirty = !0)), t ); }, __releaseResources: function () { return ( !!d.prototype.__releaseResources.call(this) && (null != this.__9SliceBitmap && (this.__9SliceBitmap.dispose(), (this.__9SliceBitmap = null)), !0) ); }, __debugPrintChildren: function (e) { if ((null == e && (e = -1), null != this.__symbol)) { var t = !1; if (((e < 0 || e == this.__symbol.id) && (t = !0), t)) { for (var s = this.__objects.keys(); s.hasNext(); ) { var n = s.next(), i = this.__objects.h[n], r = i.__name, o = null != this.__maskData.h.__keys__[i.__id__]; if (r.length < 20) { var a = 20 - r.length; r += Yf.repeat(a, " "); } switch (o) { case !1: Zf.trace( "parent (" + this.__symbol.id + ")\t\t\t | object \t " + r + "\t\t\t | depth = " + this.__SWFDepthData.get(i) + "\t |", { fileName: "MovieClip.hx", lineNumber: 1277, className: "format.swf.lite.MovieClip", methodName: "__debugPrintChildren", } ); break; case !0: Zf.trace( "parent (" + this.__symbol.id + ")\t\t\t | mask\t\t " + r + "\t\t\t | depth = " + this.__SWFDepthData.get(i) + "\t | mask = " + this.__maskData.get(i), { fileName: "MovieClip.hx", lineNumber: 1275, className: "format.swf.lite.MovieClip", methodName: "__debugPrintChildren", } ); } } Zf.trace("-", { fileName: "MovieClip.hx", lineNumber: 1281, className: "format.swf.lite.MovieClip", methodName: "__debugPrintChildren", }); } } }, mustResetRenderColorTransform: function () { return ( !!d.prototype.mustResetRenderColorTransform.call(this) || (null != this.__symbol && null != this.__symbol.scalingGridRect) ); }, toString: function () { return null != this.__symbol ? "[MovieClip id: " + this.__symbol.id + "]" : d.prototype.toString.call(this); }, __class__: u, })); var a = function (e, t) { (this.COST_GLUETOWER = 300), (this.COST_BOOMERANG = 400), (this.STARTING_MONEY = 650), (this.COST_BOMB = 700), (this.COST_SHIP_GRAPESHOT_UPGRADE = 300), (this.MAX_LEVEL_MEDIUM = 60), (this.COST_MULT_EASY = 0.85), (this.COST_BOMB_RANGE_UPGRADE = 200), (this.COST_BOMB_MOABBUSTER_UPGRADE = 900), (this.COST_MONEY_BRF_UPGRADE = 1e4), (this.COST_MORTAR_RATE_UPGRADE = 250), (this.COST_DART_SPIKE_UPGRADE = 300), (this.COST_SHIP = 600), (this.COST_SUPER_RANGE_UPGRADE = 1e3), (this.COST_MONKEYSTORM = 1e3), (this.RANGE_SPIKEOPULT = 130), (this.COST_GLUE = 10), (this.COST_TACK_RANGE_UPGRADE = 100), (this.COST_MORTAR_BLOONBUSTER_UPGRADE = 800), (this.COST_PLANE = 900), (this.COST_MORTAR = 825), (this.COST_TACK_BLADE_UPGRADE = 280), (this.runSlow = !1), (this.COST_SHIP_CROWSNEST_UPGRADE = 150), (this.MAX_LIVES_HARD = 100), (this.COST_SUPER_LASER_UPGRADE = 3500), (this.getMoney = 1), (this.COST_ICE = 380), (this.bloons = []), (this.COST_WIZARD_FIREBALL_UPGRADE = 300), (this.RANGE_WIZARD = 120), (this.MAX_LEVEL_HARD = 75), (this.COST_ICE_PERMAFROST_UPGRADE = 100), (this.COST_MORTAR_ACCURACY_UPGRADE = 200), (this.COST_ICE_AURA_UPGRADE = 6e3), (this.COST_WIZARD_INTENSESHOT_UPGRADE = 300), (this.COST_SUPER_PLASMA_UPGRADE = 4e3), (this.COST_GLUE_SPLATTER_UPGRADE = 3e3), (this.COST_MULT_MED = 1), (this.COST_BOMB_SIZE_UPGRADE = 400), (this.MAX_LIVES_EASY = 200), (this.COST_WIZARD = 550), (this.COST_TACK_RATE_UPGRADE = 210), (this.COST_ICE_SNAP_UPGRADE = 400), (this.COST_GLUE_CORROSIVE_UPGRADE = 300), (this.COST_SUPER_SUNGOD_UPGRADE = 2e4), (this.COST_MONEYTOWER = 1e3), (this.MAX_LEVEL_EASY = 50), (this.COST_SPIKES = 30), (this.COST_PINEAPPLE = 25), (this.COST_DART_RANGE_UPGRADE = 90), (this.COST_SHIP_RANGE_UPGRADE = 180), (this.SELL_RATE = 0.8), (this.RANGE_SUPER = 140), (this.RANGE_BEACON = 120), (this.COST_WIZARD_TEMPEST_UPGRADE = 8e3), (this.COST_PLANE_DARTSTORM_UPGRADE = 3e3), (this.RANGE_BOOMERANG = 130), (this.COST_BEACON_DRUMS_UPGRADE = 1500), (this.COST_MONEY_REPUBLIC_UPGRADE = 2500), (this.sndMuted = !1), (this.COST_GLUE_STICKY_UPGRADE = 120), (this.RANGE_TACK = 70), (this.COST_TACK_FIRE_UPGRADE = 2500), (this.apopWave = 1), (this.RANGE_DART = 100), (this.COST_BOMB_MISSILE_UPGRADE = 210), (this.COST_DART_PIERCE_UPGRADE = 140), (this.COST_BEACON_RANGE_UPGRADE = 500), (this.COST_BEACON_SEEINVIS_UPGRADE = 280), (this.COST_BEACON_STORM_UPGRADE = 3500), (this.COST_BEACON = 1e3), (this.COST_PLANE_PINEAPPLE_UPGRADE = 200), (this.MAX_LIVES_MEDIUM = 150), (this.COST_PLANE_SPY_UPGRADE = 350), (this.COST_WIZARD_TORNADO_UPGRADE = 2e3), (this.COST_TACK = 360), (this.COST_BOOMERANG_SONIC_UPGRADE = 100), (this.COST_MORTAR_BATTERY_UPGRADE = 2e3), (this.COST_DART = 200), (this.COST_MULT_HARD = 1.08), (this.COST_MONEY_MORENANAS_UPGRADE = 400), (this.RANGE_PLANE = 250), (this.COST_BOOMERANG_SABRE_UPGRADE = 1850), (this.RANGE_BOMB = 120), (this.COST_DART_TRIPLE_UPGRADE = 1e3), (this.COST_PLANE_RATE_UPGRADE = 700), (this.COST_SUPER = 4e3), (this.COST_MONEY_PLANTATION_UPGRADE = 1200), (this.RANGE_ICE = 60), (this.RANGE_SHIP = 180), (this.COST_BOOMERANG_PIERCE_UPGRADE = 250), (this.COST_GLUE_SOAK_UPGRADE = 200), (this.COST_BOOMERANG_GLAIVE_UPGRADE = 280), (this.COST_SHIP_BATTLESHIP_UPGRADE = 2e3), (this.RANGE_GLUE = 140), (this.COST_ICE_ENHANCE_UPGRADE = 225), (this.bombSnd = new aT()), (this.fireRingSnd = new dT()), (this.iceBlastSnd = new fT()), (this.pineappleSnd = new pT()), (this.ceramicSnd = new hT()), (this.zeppSmash = new PT()), (this.zeppHit = new ET()), (this.music = new lT()), (this.towerPlaceSnd = new ST()), (this.rankUpSnd = new vT()), (this.collectUnlockSnd = new _T()), (this.pop1Snd = new bT()), (this.pop2Snd = new mT()), (this.pop3Snd = new gT()), (this.pop4Snd = new wT()), (this.tornadoSnd = new TT()), (this.sellTowerSnd = new yT()), (this.XP_NEEDED = [ 0, 10, 50, 200, 400, 800, 1200, 1600, 2200, 3500, 5e3, 7500, 12e3, 18e3, 25e3, 35e3, 5e4, 7e4, 95e3, 125e3, 155e3, 195e3, 24e4, 285e3, 335e3, 39e4, 45e4, 5e5, 55e4, 6e5, 7e5, 8e5, 9e5, 1e6, 11e5, 12e5, 13e5, 14e5, 15e5, 16e5, 17e5, 18e5, 19e5, 2e6, 215e4, 23e5, 245e4, 26e5, 275e4, 29e5, 31e5, 33e5, 35e5, 37e5, 39e5, 41e5, 435e4, 46e5, 485e4, 51e5, 54e5, 57e5, 6e6, 63e5, 66e5, 69e5, 72e5, 75e5, 8e6, 9e6, 1e7, 11e6, 13e6, 16e6, 2e7, 3e7, 6e7, 1e8, 14e7, 18e7, 22e7, 26e7, 3e8, 4e8, 6e8, 1e9, 2e9, 3e9, 5e9, 8e9, 15e9, 3e10, 1e12, 1e16, ]), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)), u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.addedToStageResult)); }; ((s.BTD4 = a).__name__ = ["BTD4"]), (a.__super__ = u), (a.prototype = n(u.prototype, { deactivateMochiBooster: function (e) { switch (((this.mochiBoosters[e] = 0), e)) { case "crystalball": this.RANGE_WIZARD = 120; break; case "digitalamplify": this.RANGE_BEACON = 120; break; case "monkeytycoon": this.SELL_RATE = 0.8; } }, calcUserRank: function () { for (var e = 0; e < this.XP_NEEDED.length; ) { if (this.userProfile.data.experience < this.XP_NEEDED[e]) return e; ++e; } return null; }, HideTowerInfo: function () { this.towerinfo.set_visible(!1); }, clickTowerBtn: function (e) { switch (Lp.__cast(e.target, u).__name) { case "beaconbtn": this.SetCurrentTool("beacon"); break; case "bombtowerbtn": this.SetCurrentTool("bomb"); break; case "boomerangbtn": this.SetCurrentTool("boomerang"); break; case "darttowerbtn": this.SetCurrentTool("dart"); break; case "gluebtn": this.SetCurrentTool("glue"); break; case "gluetowerbtn": this.SetCurrentTool("gluetower"); break; case "icetowerbtn": this.SetCurrentTool("ice"); break; case "moneytowerbtn": this.SetCurrentTool("money"); break; case "mortartowerbtn": this.SetCurrentTool("mortar"); break; case "pineapplebtn": this.SetCurrentTool("pineapple"); break; case "planetowerbtn": this.SetCurrentTool("monkeyace"); break; case "shiptowerbtn": this.SetCurrentTool("ship"); break; case "spikeopultbtn": this.SetCurrentTool("spikeopult"); break; case "spikesbtn": this.SetCurrentTool("spikes"); break; case "supermonkeybtn": this.SetCurrentTool("super"); break; case "tacktowerbtn": this.SetCurrentTool("tack"); break; case "wizardtowerbtn": this.SetCurrentTool("wizard"); } }, GameOver: function (e) { this.ClearBullets(), this.DeselectCurrent(), (this.ingame = !1), Zf.trace("END GAME", { fileName: "BTD4.hx", lineNumber: 592, className: "BTD4", methodName: "GameOver", }), null == e ? ((this.noMore = !0), this.losepanel.gotoAndPlay("drawOn")) : ("easy" == this.diff && (this.userProfile.data["bronze" + this.trackNum] = "yes"), "medium" == this.diff && (this.userProfile.data["silver" + this.trackNum] = "yes"), "hard" == this.diff && (this.userProfile.data["gold" + this.trackNum] = "yes"), this.userProfile.flush(), this.UpdateMedals(), this.winpanel.gotoAndPlay("drawOn")); }, ClearAll: function () { this.ClearBalloons(), this.ClearBullets(), (this.numBloons = 0), this.ClearTowers(); }, frame11: function () { this.chooseDiffBox.set_visible(!1), this.towerinfo.set_visible(!1), this.toweroptions.set_visible(!1), Lp.__cast(this.output.resolve("roundnum_txt"), Sa).set_text("1"), Lp.__cast(this.output.resolve("diff_txt"), Sa).set_text("EASY"), Lp.__cast(this.roundinfo_mc.resolve("money_txt"), Sa).set_text("0"), Lp.__cast(this.roundinfo_mc.resolve("lives_txt"), Sa).set_text("100"), this.output.resolve("cancelbuybtn").set_visible(!1), this.mainmenu.set_visible(!0), this.chooseDiffBox.set_visible(!0), this.createAccountBox.set_visible(!1), this.output.resolve("xpbar").set_visible(!1), this.trackPreviewmc.set_visible(!1); }, frame12: function () { this.startrnd_btn.set_visible(!1), this.towerinfo.set_visible(!1), this.mainmenu.premiumtab.doButtonUnlocks(), this.checkSoundPrefs(), this.startMusic(), this.stop(); }, PoppedOne: function (e) { var t = this.curLevel; "sandboxmode" != this.gameMode && this.userProfile.data.experience++, "apopalypsemode" == this.gameMode && (t = this.apopWave), null == e && this.numBloons--, t < 51 ? this.money.set_value(this.money.get_value() + this.getMoney) : t < 60 ? 1 == cT.random(3) && this.money.set_value(this.money.get_value() + this.getMoney) : 1 == cT.random(5) && this.money.set_value(this.money.get_value() + this.getMoney), this.UpdateMoney(); }, clickStartBtn: function (e) { this.StartLevel(); }, doXPBar: function () { var e = NaN, t = 0; this.userProfile.data.userRank < this.XP_NEEDED.length ? ((e = (0 | this.userProfile.data.experience) / this.XP_NEEDED[this.userProfile.data.userRank]), this.output.resolve("xpbar").set_visible(!0), this.output.resolve("xpneeded_txt").set_visible(!0), (t = (this.XP_NEEDED[this.userProfile.data.userRank] - (0 | this.userProfile.data.experience)) | 0) < 0 && (t = 0), Lp.__cast(this.output.resolve("xpneeded_txt"), Sa).set_text( "pop " + t + " more to go up a rank" ), this.output.resolve("xpbar").set_scaleX(e)) : (this.output.resolve("xpneeded_txt").set_visible(!1), this.output.resolve("xpbar").set_visible(!1)); }, verifyTrack: function (e) { var t = null, s = 0, n = null; if (0 < e.nodes.length) for ( t = new qm( e.nodes[e.nodes.length - 1].x, e.nodes[e.nodes.length - 1].y ), Zf.trace("end point: " + Ue.string(t), { fileName: "BTD4.hx", lineNumber: 725, className: "BTD4", methodName: "verifyTrack", }), s = 0; s < this.playarea.__children._length; ) "Exit" != (n = this.playarea.getChildAt(s)).__name || n.used || (n.hitTestPoint(t.x, t.y) && (((e.exit = n).used = !0), (e.verified = !0))), ++s; else e.verified = !1; }, frame10: function () { this.introclip.done || this.stop(); }, frame2: function () { this.bigbadrect.addEventListener("click", CT(this, this.hideRect)), this.showRectBtn.addEventListener("click", CT(this, this.showRect)), this.mainmenu.set_visible(!1), this.chooseDiffBox.set_visible(!1), this.sandboxui.set_visible(!1), this.storeBtn.set_visible(!1), this.errorbox.set_visible(!1), this.greyout.set_visible(!1); }, frame4: function () { (this.prog = this.get_loaderInfo().bytesLoaded / this.get_loaderInfo().bytesTotal), this.loadbar.set_scaleX(this.prog); }, frame5: function () { this.get_framesLoaded() == this.get_totalFrames() ? this.play() : this.gotoAndPlay("load"); }, StartLevel: function () { (this.noMore || 0 != this.numBloons) && ((this.timeLastBloon = Math.round((Date.now() / 1e3) * 1e3)), (this.endRoundCount = 0), this.hideStuff(), Zf.trace("START NEW LEVEL", { fileName: "BTD4.hx", lineNumber: 834, className: "BTD4", methodName: "StartLevel", }), this.curLevel++, 50 < this.curLevel && ((this.globSpeedMod = (this.curLevel - 50) / 15), "medium" == this.diff && (this.globSpeedMod += 0.1), "hard" == this.diff && (this.globSpeedMod += 0.25)), Lp.__cast(this.output.resolve("roundnum_txt"), Sa).set_text( Ue.string(this.curLevel) + " of " + Ue.string(this.max_level) ), Lp.__cast(this.output.resolve("diff_txt"), Sa).set_text( this.diff.toUpperCase() ), (this.ingame = !0), (this.noMore = !1), (this.counter = 0), (this.numBloons = 0), (this.bloonIndex = 0), (this.bloonsSpawned = 0), Lp.__cast(this.output.resolve("rbe_txt"), Sa).set_text( "" + this.getTotalRBE(this.curLevel) ), (this.bloonInterval = (20 - Math.floor(this.curLevel / 3)) | 0), this.bloonInterval < 7 && (this.bloonInterval = Math.ceil(7 - this.curLevel / 20)), this.hasStorm && 1 != Lp.__cast( this.toweroptions.upgrade_group .resolve("monkeystormbtn") .resolve("cooldown_mc"), u ).get_currentFrame() && Lp.__cast( this.toweroptions.upgrade_group .resolve("monkeystormbtn") .resolve("cooldown_mc"), u ).play()); }, NewBloon: function (e, t, s, n) { var i, r = null; (this.timeLastBloon = Math.round((Date.now() / 1e3) * 1e3)), this.numBloons++, 14 < (i = e) ? Zf.trace("TRIED TO CREATE A RANK: " + i + " BLOON", { fileName: "BTD4.hx", lineNumber: 878, className: "BTD4", methodName: "NewBloon", }) : ((r = new oT(i)), null == n ? (r.track = this.tracks[cT.random(this.tracks.length) - 1]) : ((r.track = n.track), (r.destIndex = n.destIndex), (r.prog = n.prog)), this.bloons.push(r), (r.x = t), (r.y = s), (r.game = this), (r.parentBloon = n), r.Init(), null != n && (null != n.freezer && n.snapfrozen && r.freezeMe(!1, null, n), null != n.gluer && 1 < n.gluer.upgradeNum && r.glueMe(null, n))); }, frame7: function () { this.introclip.addEventListener("click", CT(this, this.gotoNK)); }, rolloffTowerBtn: function (e) { this.HideTowerInfo(); }, frame1: function () {}, deselectBuy: function (e) { this.DeselectCurrent(); }, rolloverTowerBtn: function (e) { switch (Lp.__cast(e.target, u).__name) { case "beaconbtn": this.ShowTowerInfo("beacon"); break; case "bombtowerbtn": this.ShowTowerInfo("bomb"); break; case "boomerangbtn": this.ShowTowerInfo("boomerang"); break; case "darttowerbtn": this.ShowTowerInfo("dart"); break; case "gluebtn": this.ShowTowerInfo("glue"); break; case "gluetowerbtn": this.ShowTowerInfo("gluetower"); break; case "icetowerbtn": this.ShowTowerInfo("ice"); break; case "moneytowerbtn": this.ShowTowerInfo("money"); break; case "mortartowerbtn": this.ShowTowerInfo("mortar"); break; case "pineapplebtn": this.ShowTowerInfo("pineapple"); break; case "planetowerbtn": this.ShowTowerInfo("monkeyace"); break; case "shiptowerbtn": this.ShowTowerInfo("ship"); break; case "spikeopultbtn": this.ShowTowerInfo("spikeopult"); break; case "spikesbtn": this.ShowTowerInfo("spikes"); break; case "supermonkeybtn": this.ShowTowerInfo("super"); break; case "tacktowerbtn": this.ShowTowerInfo("tack"); break; case "wizardtowerbtn": this.ShowTowerInfo("wizard"); } }, frame6: function () {}, initItems: function () { (this.mochiIds = {}), (this.mochiIds["872480c13ea8a697"] = "track5"), (this.mochiIds.c6e9a85777c4a4ca = "track6"), (this.mochiIds.b2d955e43f5fd563 = "track7"), (this.mochiIds.b39294b5e57abecc = "track8"), (this.mochiIds["11c64da912715411"] = "track9"), (this.mochiIds.b1e9522a41a26e7b = "track10"), (this.mochiIds.eb85da60864f7d51 = "track11"), (this.mochiIds["527c96682675e244"] = "track12"), (this.mochiIds["26deb702fe71e4b0"] = "track13"), (this.mochiIds["82e68ac1eea5a690"] = "doublecash"), (this.mochiIds["3d0481425d368499"] = "maxrank"), (this.mochiIds.d52ed68416b64b3d = "trackpack"), (this.mochiIds.a846ef873d41f338 = "healthybananas"), (this.mochiIds["69490a6654772625"] = "monkeytycoon"), (this.mochiIds["0c8d3e479d9ac05c"] = "digitalamplify"), (this.mochiIds.ca766603d19993d5 = "dreadnaught"), (this.mochiIds[7640281968052027] = "crystalball"), (this.mochiIds["356b05eccb2d1ef1"] = "fragbombs"), (this.mochiIds.aaee472f4dc83ee5 = "explosivedart"), (this.mochiIds["44a0e69d60652b75"] = "doublerang"), (this.mochiIds["74963fb87e19e0aa"] = "morelives"), (this.mochiIds["81c3559bfd14e3a5"] = "morecash"), (this.mochiIds["27acae0354549a20"] = "everything"), (this.mochiItems = {}), (this.mochiItems.track5 = 0), (this.mochiItems.track6 = 0), (this.mochiItems.track7 = 0), (this.mochiItems.track8 = 0), (this.mochiItems.track9 = 0), (this.mochiItems.track10 = 0), (this.mochiItems.track11 = 0), (this.mochiItems.track12 = 0), (this.mochiItems.track13 = 0), (this.mochiItems.doublecash = 0), (this.mochiItems.maxrank = 0), (this.mochiItems.trackpack = 0), (this.mochiItems.doublerang = 0), (this.mochiItems.explosivedart = 0), (this.mochiItems.fragbombs = 0), (this.mochiItems.crystalball = 0), (this.mochiItems.dreadnaught = 0), (this.mochiItems.digitalamplify = 0), (this.mochiItems.monkeytycoon = 0), (this.mochiItems.healthybananas = 0), (this.mochiItems.everything = 0), (this.hasBooster = !1), (this.mochiBoosters = {}), (this.mochiBoosters.doublerang = 0), (this.mochiBoosters.explosivedart = 0), (this.mochiBoosters.fragbombs = 0), (this.mochiBoosters.crystalball = 0), (this.mochiBoosters.dreadnaught = 0), (this.mochiBoosters.digitalamplify = 0), (this.mochiBoosters.monkeytycoon = 0), (this.mochiBoosters.healthybananas = 0), (this.SELL_RATE = 0.8), (this.getMoney = 1), (this.RANGE_BEACON = 120), (this.RANGE_WIZARD = 120); }, SetUpSound: function () {}, clearOutStuff: function () { this.output.resolve("cancelbuybtn").set_visible(!1), (this.stormReady = !1), (this.haveCurTower = !1), (this.freeplaymode = !1), (this.mortarAim = !1), (this.timeLastBloon = Math.round((Date.now() / 1e3) * 1e3)), this.UpdateMedals(), this.towerinfo.set_visible(!1), this.showStuff(), this.ClearAll(), Lp.__cast(this.roundinfo_mc.resolve("lives_txt"), Sa).set_text( "" + this.lives.get_value() ), (this.curLevel = 0), this.money.set_value(this.STARTING_MONEY), (this.getMoney = 1), this.doubleCash && ((this.getMoney = 2), this.money.set_value(2 * this.STARTING_MONEY)), (this.noMore = !0), (this.currentTool = "none"), (this.ingame = !1), Lp.__cast(this.roundinfo_mc.resolve("lives_txt"), Sa).set_text( "" + this.lives.get_value() ), this.UpdateMoney(); }, ClearBullets: function () { for (; 0 < this.bulletholder.__children._length; ) this.bulletholder.getChildAt(0).stop(), this.bulletholder.removeChildAt(0), null; this.bulletlist = []; }, showHS: function () { this.greyout.set_visible(!0); }, ShowTowerInfo: function (e) { this.towerinfo.gotoAndStop(e), this.towerinfo.set_visible(!0); var t = this.towerinfo.resolve("towername_txt"), s = this.towerinfo.resolve("towercost_txt"), n = this.towerinfo.resolve("towerinfo_txt"); switch (e) { case "beacon": t.set_text("Monkey Beacon"), s.set_text("" + this.GetPrice(this.COST_BEACON)), n.set_text( "Increases the attack range of all stuff within the beacon area. Has several useful upgrades that help out nearby towers, including its ultimate ability to call in Super Monkey Storms. Hotkey N" ); break; case "bomb": t.set_text("Bomb Tower"), s.set_text("" + this.GetPrice(this.COST_BOMB)), n.set_text( "Launches a bomb that explodes on impact. Can destroy many bloons at once. Hotkey B" ); break; case "boomerang": t.set_text("Boomerang Thrower"), s.set_text("" + this.GetPrice(this.COST_BOOMERANG)), n.set_text( "Throws a boomerang that follows a curved path back to the tower. Can pop multiple bloons at once. Hotkey R" ); break; case "dart": t.set_text("Dart Monkey"), s.set_text("" + this.GetPrice(this.COST_DART)), n.set_text( "Shoots a single dart that pops a single bloon. Can convert to a spike-o-pult with level 4 upgrade. Hotkey D" ); break; case "glue": t.set_text("Monkey Glue"), s.set_text("" + this.GetPrice(this.COST_GLUE)), n.set_text( "Monkey glue slows down bloons. Each blob can slow down 20 bloons before wearing out. Monkey glue only lasts until the end of the round. Hotkey E" ); break; case "gluetower": t.set_text("Glue Gunner"), s.set_text("" + this.GetPrice(this.COST_GLUETOWER)), n.set_text( "Shoots a glob of glue at at bloon, slowing it down. Ceramic bloons can be glued but will not be slowed by it. Hotkey G" ); break; case "ice": t.set_text("Ice Tower"), s.set_text("" + this.GetPrice(this.COST_ICE)), n.set_text( "Freezes nearby bloons with every pulse. Frozen bloons are immune to anything sharp. Hotkey I" ); break; case "money": t.set_text("Banana Farm"), s.set_text("" + this.GetPrice(this.COST_MONEYTOWER)), n.set_text( "Generates extra money at the end of every round, but doesn't attack anything. Can upgrade to increase the money bonus. Hotkey F" ); break; case "monkeyace": t.set_text("Monkey Ace"), s.set_text("" + this.GetPrice(this.COST_PLANE)), n.set_text( "The only unit that moves, the Monkey Ace patrols the skies above the action, regularly strafing the area with powerful piercing darts. Hotkey A" ); break; case "mortar": t.set_text("Mortar Tower"), s.set_text("" + this.GetPrice(this.COST_MORTAR)), n.set_text( "Targets a specific area of ground over any distance with an explosive attack. Hotkey M" ); break; case "pineapple": t.set_text("Pineapple"), s.set_text("" + this.GetPrice(this.COST_PINEAPPLE)), n.set_text( "Like all healthy food, pineapples explode violently shortly after being placed, so don't put any down until you want to blow up some bloons. Hotkey P" ); break; case "ship": t.set_text("Monkey Buccaneer"), s.set_text("" + this.GetPrice(this.COST_SHIP)), n.set_text( "The only unit that can be placed in water - the Monkey Buccaneer has a long range and shoots a single, heavy dart. Hotkey U" ); break; case "spikeopult": throw (t.set_text("Spike-o-pult"), new Mp("")); case "spikes": t.set_text("Road Spikes"), s.set_text("" + this.GetPrice(this.COST_SPIKES)), n.set_text( "Place these road spikes on the track to pop bloons. Can pop 10 bloons before wearing out. Road spikes only last until the end of the round. Hotkey K" ); break; case "storm": t.set_text("Monkey Storm"), s.set_text("" + this.GetPrice(this.COST_MONKEYSTORM)), n.set_text( "Call in a storm of Super Monkeys - expensive, but it will wipe the screen clean of all bloons. Has a 60 second cooldown, not counting between round time." ); break; case "super": t.set_text("Super Monkey"), s.set_text("" + this.GetPrice(this.COST_SUPER)), n.set_text( "Super monkey shoots incredibly fast. Can upgrade to Laser Vision, then Plasma Vision. Ultimate upgrade is ultimately powerful. Find out for yourself... Hotkey S" ); break; case "tack": t.set_text("Tack Shooter"), s.set_text("" + this.GetPrice(this.COST_TACK)), n.set_text( "Shoots a volley of tacks in 8 directions. Has short range, but is good for thinning out bloons at intersections and corners. Hotkey T" ); break; case "wizard": t.set_text("Monkey Apprentice"), s.set_text("" + this.GetPrice(this.COST_WIZARD)), n.set_text( "Trained in the ancient arts of monkey wizardry. Learns new magic spells with every upgrade. This unit is flexible and will continue randomly using his old spells with his new ones. Hotkey W" ); } Ue.parseInt(s.__textEngine.text) > this.money.get_value() ? Lp.__cast(this.towerinfo.resolve("cantafford_txt"), Sa).set_text( "CAN'T AFFORD" ) : Lp.__cast(this.towerinfo.resolve("cantafford_txt"), Sa).set_text( "" ); }, loadSavedGame: function () { var e = null; null != this.savedGameObj ? (this.setTrack(this.savedGameObj.trackNum), this.SetDiff(this.savedGameObj.diff), (e = new tT(40, 1)).addEventListener( "timerComplete", CT(this, this.continueLoadingSave) ), e.start(), this.spinintro.set_visible(!1), this.mainmenu.set_visible(!1), this.chooseDiffBox.set_visible(!1)) : Zf.trace("no save to load", { fileName: "BTD4.hx", lineNumber: 1210, className: "BTD4", methodName: "loadSavedGame", }); }, RemoveTower: function (e) { for (var t = 0; t < this.towerlist.length; ) { if (e == this.towerlist[t]) return ( this.towerlist.splice(t, 1), this.towerholder.removeChild(e), void (e = null) ); ++t; } }, addMoreApopalypse: function () { var e = 0, t = 0, s = 0; this.apopWave++, Zf.trace("new apop wave: " + this.apopWave, { fileName: "BTD4.hx", lineNumber: 1237, className: "BTD4", methodName: "addMoreApopalypse", }); for (var n = 0, i = this.towerlist; n < i.length; ) { var r = i[n]; ++n, "money" == r.type && (Lp.__cast(r.moneygain.inner.moneygain_txt, Sa).set_text( "+" + Ue.string(r.income) ), r.moneygain.gotoAndPlay(3), this.money.set_value(this.money.get_value() + r.income)); } for ( this.UpdateMoney(), this.checkRank(), this.doXPBar(), Lp.__cast(this.output.resolve("roundnum_txt"), Sa).set_text( Ue.string(this.apopWave) ), e = 0; e < 50; ) (s = 1), (t = (cT.random(10) + this.apopWave) | 0) < 10 && (s = 1), 10 <= t && t < 15 && (s = 2), 15 <= t && t < 20 && (s = 3), 20 <= t && t < 25 && (s = 4), 25 <= t && t < 30 && (s = 5), 30 <= t && t < 35 && (s = 6), 35 <= t && t < 40 && (s = 7), 40 <= t && t < 45 && (s = 8), 45 <= t && t < 50 && (s = 9), 50 <= t && t < 55 && (s = 10), 55 <= t && t < 60 && (s = 11), 60 <= t && t < 65 && (s = 12), 65 <= t && t < 70 && (s = 13), 70 <= t && (s = 14), this.ABTL(1, s), ++e; }, UpdateTowers: function () { for (var e = 0; e < this.towerlist.length; ) this.towerlist[e].Update(), ++e; }, yesimsure: function () { this.clearOutStuff(), this.mainmenu.set_visible(!0), this.spinintro.set_visible(!0), this.spinintro.gotoAndStop("end"), this.spinintro.updateBits(), this.gotoAndPlay("main"); }, clickSaveBtn: function (e) { Zf.trace("CLICKED SAVE GAME BTN", { fileName: "BTD4.hx", lineNumber: 1339, className: "BTD4", methodName: "clickSaveBtn", }), this.savegame_btn.set_visible(!1); }, showStuff: function () { this.startrnd_btn.set_visible(!0); }, closeHS: function () { if ( (this.greyout.set_visible(!1), "showendpanel" == this.losepanel.get_currentLabel()) ) this.losepanel.play(); else this.winpanel.get_currentLabel(); }, SetCurrentTool: function (e) { var t = 0; switch ( (Zf.trace("set current tool: " + Ue.string(e), { fileName: "BTD4.hx", lineNumber: 1380, className: "BTD4", methodName: "SetCurrentTool", }), e) ) { case "beacon": t = this.GetPrice(this.COST_BEACON); break; case "bomb": t = this.GetPrice(this.COST_BOMB); break; case "boomerang": t = this.GetPrice(this.COST_BOOMERANG); break; case "dart": t = this.GetPrice(this.COST_DART); break; case "glue": t = this.GetPrice(this.COST_GLUE); break; case "gluetower": t = this.GetPrice(this.COST_GLUETOWER); break; case "ice": t = this.GetPrice(this.COST_ICE); break; case "money": t = this.GetPrice(this.COST_MONEYTOWER); break; case "monkeyace": t = this.GetPrice(this.COST_PLANE); break; case "mortar": t = this.GetPrice(this.COST_MORTAR); break; case "pineapple": t = this.GetPrice(this.COST_PINEAPPLE); break; case "ship": t = this.GetPrice(this.COST_SHIP); break; case "spikes": t = this.GetPrice(this.COST_SPIKES); break; case "storm": t = this.GetPrice(this.COST_MONKEYSTORM); break; case "super": t = this.GetPrice(this.COST_SUPER); break; case "tack": t = this.GetPrice(this.COST_TACK); break; case "wizard": t = this.GetPrice(this.COST_WIZARD); } e != this.currentTool ? t > this.money.get_value() || (this.DeselectCurrent(), this.towerplace.gotoAndStop("tack"), this.towerplace.gotoAndStop(e), (this.currentTool = e), this.output.resolve("cancelbuybtn").set_visible(!0)) : this.DeselectCurrent(); }, updateBloons: function () { this.bloonsTemp = [].concat(this.bloons); for (var e = 0, t = this.bloonsTemp; e < t.length; ) { var s = t[e]; ++e, s.Update(); } }, Output: function (e) { Lp.__cast(this.output.resolve("output_txt"), Sa).set_text(e); }, Init: function () { var e = 0, t = null, s = null; this.output .resolve("sndbtn") .addEventListener("click", CT(this, this.sndToggle)), this.output .resolve("musbtn") .addEventListener("click", CT(this, this.musToggle)), this.fastforwardbtn.addEventListener( "mouseDown", CT(this, this.fastForward) ), this.fastforwardbtn.addEventListener( "mouseUp", CT(this, this.normalSpeed) ), this.fastforwardbtn.addEventListener( "rollOut", CT(this, this.normalSpeed) ), this.storeBtn.addEventListener("click", CT(this, this.showStore)), this.stage.addEventListener( "mouseLeave", CT(this, this.doRightMouse) ), Lp.__cast(this.output.resolve("rbe_txt"), Sa).set_text("0"), (this.userProfile = Ty.getLocal("btd4")), (this.hasStorm = !1), this.output.resolve("myrank_mc").play(), this.userProfile.data.userRank ? (Lp.__cast(this.output.resolve("myrank_txt"), Sa).set_text( "" + Ue.string(this.userProfile.data.userRank) ), this.doXPBar()) : (Lp.__cast(this.output.resolve("myrank_txt"), Sa).set_text("1"), this.output.resolve("xpbar").set_scaleX(0)), (this.tracks = []), this.clearOutStuff(), this.addEventListener("enterFrame", CT(this, this.EnterFrame)), this.stage.addEventListener("keyDown", CT(this, this.ResolveInput)), this.hitarea.addEventListener("mouseDown", CT(this, this.OnClick)), this.checkForTowerUnlocks(), Lp.__cast( this.toweroptions.upgrade_group .resolve("monkeystormbtn") .resolve("stormcost_txt"), Sa ).set_text("" + this.GetPrice(this.COST_MONKEYSTORM)), this.startrnd_btn.addEventListener( "mouseDown", CT(this, this.clickStartBtn) ), this.savegame_btn.addEventListener( "mouseDown", CT(this, this.clickSaveBtn) ), this.endgamebtn.addEventListener( "mouseDown", CT(this, this.clickEndgameBtn) ), this.output .resolve("cancelbuybtn") .addEventListener("mouseDown", CT(this, this.deselectBuy)), (this.toweroptions.upgrade_group.resolve("upgrade1").buttonMode = !0), (this.toweroptions.upgrade_group.resolve("upgrade2").buttonMode = !0), (this.toweroptions.upgrade_group.resolve("upgrade3").buttonMode = !0), (this.toweroptions.upgrade_group.resolve("upgrade4").buttonMode = !0), (this.toweroptions.upgrade_group.resolve( "monkeystormbtn" ).buttonMode = !0), this.toweroptions.upgrade_group .resolve("upgrade1") .addEventListener("mouseDown", CT(this, this.clickUpgradeBtn)), this.toweroptions.upgrade_group .resolve("upgrade2") .addEventListener("mouseDown", CT(this, this.clickUpgradeBtn)), this.toweroptions.upgrade_group .resolve("upgrade3") .addEventListener("mouseDown", CT(this, this.clickUpgradeBtn)), this.toweroptions.upgrade_group .resolve("upgrade4") .addEventListener("mouseDown", CT(this, this.clickUpgradeBtn)), this.toweroptions.upgrade_group .resolve("monkeystormbtn") .addEventListener("mouseDown", CT(this, this.clickMonkeyStorm)), this.moremoneybtn.addEventListener( "click", CT(this, this.clickMoreMoney) ), Lp.__cast(this.output.resolve("roundnum_txt"), Sa).set_text(""); var n = 0; for ( Zf.trace("RUN INIT FUNCTION FOR GAME", { fileName: "BTD4.hx", lineNumber: 1500, className: "BTD4", methodName: "Init", }), e = 0; e < this.playarea.__children._length; ) (t = this.playarea.getChildAt(e)), Lp.__instanceof(t, u) && (Lp.__instanceof(t, Xh) || "Exit" == t.name ? (t.used = !1) : (t.done = !1)), ++e; for (; this.buildTrack(); ) this.verifyTrack(this.tracks[n]), ++n; for ( Zf.trace("tracks found: " + this.tracks.length, { fileName: "BTD4.hx", lineNumber: 1523, className: "BTD4", methodName: "Init", }), Zf.trace("tracks 0: " + Ue.string(this.tracks[0].nodes.length), { fileName: "BTD4.hx", lineNumber: 1524, className: "BTD4", methodName: "Init", }), Zf.trace("[" + Ue.string(this.tracks[0].nodes) + "]", { fileName: "BTD4.hx", lineNumber: 1525, className: "BTD4", methodName: "Init", }), Zf.trace(this.tracks[0].verified, { fileName: "BTD4.hx", lineNumber: 1526, className: "BTD4", methodName: "Init", }), e = 0; e < this.pathhitmc.__children._length; ) (s = this.pathhitmc.getChildAt(e)), Lp.__instanceof(s, c_) && (s.visible = !1), ++e; (this.runSlow = !1), (this.levelsArray = []), (this.levelHints = []), this.BuildLevels(), this.BuildLevelHints(), "easy" == this.diff && (this.lives.set_value(this.MAX_LIVES_EASY), (this.costmult = this.COST_MULT_EASY)), "medium" == this.diff && (this.lives.set_value(this.MAX_LIVES_MEDIUM), (this.costmult = this.COST_MULT_MED)), "hard" == this.diff && (this.lives.set_value(this.MAX_LIVES_HARD), (this.costmult = this.COST_MULT_HARD)), (this.towerlist = []), (this.bulletlist = []), (this.bloons = []), this.SetUpSound(), (this.bloonBitmap = new ew()), (this.viewPort = new cy(0, 0, 540, 540)); var i = new sw(540, 540, !0, 0, Lb.CANVAS); (i.__keepSource = !0), (this.bloonBitmap.bitmapData = i); var r = this.bloonholder; r.addChildAt(this.bloonBitmap, r.__children._length), "sandboxmode" == this.gameMode && (this.lives.set_value(1e5), this.money.set_value(1e6), this.UpdateMoney(), Lp.__cast(this.roundinfo_mc.resolve("lives_txt"), Sa).set_text( "" + this.lives.get_value() ), (this.levelsArray[0] = []), this.StartLevel()), "apopalypsemode" == this.gameMode && ((this.apopWave = 1), (this.levelsArray[0] = []), this.ABSTL(50, 1, 1)); }, checkRank: function () { var e, t = 0; if ((e = this.calcUserRank()) > this.userProfile.data.userRank) { for ( this.output.resolve("myrank_mc").play(), this.userProfile.data.userRank = e, Zf.trace("YOU WENT UP A RANK: " + e, { fileName: "BTD4.hx", lineNumber: 1593, className: "BTD4", methodName: "checkRank", }), t = 1; t <= e; ) (this.userProfile.data.towerUnlocks[t - 1] = 1), ++t; this.userProfile.flush(), e <= 31 && this.checkForTowerUnlocks(!0); } }, BuildLevels: function () { var e = 0, t = 0, s = 0, n = 0, i = 0, r = 0; for ( e = 1, this.ABSTL(14, 1, e), e = 2, this.ABSTL(30, 1, e), e = 3, this.ABSTL(10, 1, e), this.ABSTL(5, 2, e), this.ABSTL(10, 1, e), e = 4, this.ABSTL(20, 1, e), this.ABSTL(15, 2, e), this.ABSTL(10, 1, e), e = 5, this.ABSTL(10, 2, e), this.ABSTL(5, 1, e), this.ABSTL(10, 2, e), e = 6, this.ABSTL(4, 3, e), this.ABSTL(15, 1, e), this.ABSTL(15, 2, e), e = 7, this.ABSTL(10, 2, e), this.ABSTL(5, 3, e), this.ABSTL(20, 1, e), this.ABSTL(15, 2, e), e = 8, this.ABSTL(20, 2, e), this.ABSTL(2, 3, e), this.ABSTL(10, 1, e), this.ABSTL(15, 3, e), e = 9, this.ABSTL(10, 3, e), this.ABSTL(12, 2, e), this.ABSTL(10, 1, e), this.ABSTL(5, 3, e), e = 10, this.ABSTL(100, 2, e), e = 11, this.ABSTL(2, 4, e), this.ABSTL(12, 3, e), this.ABSTL(10, 2, e), this.ABSTL(5, 1, e), e = 12, this.ABSTL(10, 3, e), this.ABSTL(15, 2, e), this.ABSTL(5, 4, e), e = 13, this.ABSTL(20, 1, e), this.ABSTL(10, 4, e), this.ABSTL(25, 3, e), e = 14, this.ABSTL(5, 1, e), this.ABSTL(5, 2, e), this.ABSTL(5, 3, e), this.ABSTL(5, 4, e), this.ABSTL(10, 1, e), this.ABSTL(10, 2, e), this.ABSTL(10, 3, e), this.ABSTL(10, 4, e), e = 15, this.ABSTL(20, 1, e), this.ABSTL(3, 5, e), this.ABSTL(15, 3, e), this.ABSTL(10, 4, e), e = 16, this.ABSTL(20, 3, e), this.ABSTL(13, 4, e), this.ABSTL(5, 5, e), e = 17, this.ABSTL(15, 3, e), this.ABSTL(20, 4, e), this.ABSTL(5, 5, e), this.ABSTL(8, 4, e), e = 18, this.ABSTL(80, 3, e), e = 19, this.ABSTL(5, 3, e), this.ABSTL(5, 4, e), this.ABSTL(11, 5, e), this.ABSTL(5, 4, e), this.ABSTL(3, 5, e), e = 20, this.ABSTL(8, 6, e), e = 21, this.ABSTL(10, 5, e), this.ABSTL(6, 5, e), e = 22, this.ABSTL(9, 7, e), e = 23, this.ABSTL(6, 6, e), this.ABSTL(5, 7, e), e = 24, this.ABSTL(1, 11, e), e = 25, this.ABSTL(6, 9, e), e = 26, this.ABSTL(5, 4, e), this.ABSTL(6, 5, e), this.ABSTL(4, 6, e), this.ABSTL(4, 5, e), this.ABSTL(5, 4, e), this.ABSTL(3, 7, e), e = 27, this.ABSTL(100, 4, e), e = 28, this.ABSTL(7, 8, e), this.ABSTL(3, 9, e), e = 29, this.ABSTL(70, 5, e), e = 30, this.ABSTL(10, 8, e), e = 31, this.ABSTL(18, 9, e), e = 32, this.ABSTL(25, 6, e), this.ABSTL(30, 7, e), this.ABSTL(8, 8, e), e = 33, this.ABSTL(50, 11, e), e = 34, this.ABSTL(14, 9, e), e = 35, this.ABSTL(25, 7, e), this.ABSTL(5, 10, e), this.ABSTL(35, 5, e), this.ABSTL(3, 10, e), e = 36, this.ABSTL(90, 5, e), e = 37, this.ABSTL(20, 6, e), this.ABSTL(20, 7, e), this.ABSTL(15, 8, e), this.ABSTL(15, 9, e), e = 38, this.ABSTL(20, 7, e), this.ABSTL(20, 8, e), this.ABSTL(16, 9, e), this.ABSTL(12, 10, e), e = 39, this.ABSTL(10, 6, e), this.ABSTL(10, 7, e), this.ABSTL(20, 8, e), this.ABSTL(20, 9, e), this.ABSTL(22, 10, e), e = 40, this.ABSTL(10, 10, e), this.ABSTL(20, 1, e), this.ABSTL(4, 12, e), e = 41, this.ABSTL(80, 6, e), this.ABSTL(80, 7, e), e = 42, this.ABSTL(40, 8, e), this.ABSTL(30, 10, e), e = 43, this.ABSTL(10, 10, e), this.ABSTL(10, 12, e), e = 44, this.ABSTL(5, 12, e), this.ABSTL(40, 9, e), this.ABSTL(30, 7, e), e = 45, this.ABSTL(25, 10, e), this.ABSTL(200, 5, e), this.ABSTL(8, 8, e), e = 46, this.ABSTL(1, 13, e), e = 47, this.ABSTL(20, 12, e), this.ABSTL(70, 11, e), e = 48, this.ABSTL(120, 11, e), this.ABSTL(50, 10, e), e = 49, this.ABSTL(10, 10, e), this.ABSTL(10, 11, e), this.ABSTL(18, 12, e), this.ABSTL(20, 9, e), this.ABSTL(22, 10, e), e = 50, this.ABSTL(1, 13, e), this.ABSTL(8, 8, e), this.ABSTL(20, 1, e), this.ABSTL(20, 12, e), this.ABSTL(1, 13, e), e = 51, this.ABSTL(28, 12, e), this.ABSTL(10, 10, e), e = 52, this.ABSTL(25, 10, e), this.ABSTL(1, 13, e), this.ABSTL(5, 12, e), this.ABSTL(1, 13, e), this.ABSTL(5, 12, e), e = 53, this.ABSTL(50, 11, e), this.ABSTL(1, 13, e), this.ABSTL(5, 1, e), this.ABSTL(1, 13, e), this.ABSTL(5, 1, e), this.ABSTL(1, 13, e), this.ABSTL(1, 1, e), this.ABSTL(1, 13, e), e = 54, this.ABSTL(15, 12, e), this.ABSTL(1, 13, e), this.ABSTL(5, 12, e), this.ABSTL(1, 13, e), this.ABSTL(15, 12, e), e = 55, this.ABSTL(40, 10, e), this.ABSTL(12, 8, e), this.ABSTL(19, 12, e), this.ABSTL(1, 13, e), e = 56, this.ABSTL(120, 10, e), this.ABSTL(1, 13, e), this.ABSTL(25, 12, e), e = 57, this.ABSTL(2, 13, e), this.ABSTL(20, 10, e), this.ABSTL(2, 13, e), this.ABSTL(20, 10, e), this.ABSTL(15, 12, e), e = 58, this.ABSTL(1, 13, e), this.ABSTL(25, 10, e), this.ABSTL(2, 13, e), this.ABSTL(20, 12, e), e = 59, this.ABSTL(50, 12, e), e = 60, this.ABSTL(1, 14, e), e = 61, this.ABSTL(20, 12, e), this.ABSTL(20, 10, e), this.ABSTL(10, 12, e), this.ABSTL(20, 10, e), e = 62, this.ABSTL(2, 13, e), this.ABSTL(200, 11, e), e = 63, this.ABSTL(50, 10, e), this.ABSTL(37, 12, e), this.ABSTL(18, 8, e), e = 64, this.ABSTL(7, 13, e), e = 65, this.ABSTL(100, 9, e), this.ABSTL(50, 10, e), this.ABSTL(20, 12, e), this.ABSTL(2, 13, e), e = 66, this.ABSTL(9, 13, e), e = 67, this.ABSTL(5, 13, e), this.ABSTL(14, 1, e), this.ABSTL(15, 12, e), this.ABSTL(14, 1, e), this.ABSTL(5, 13, e), e = 68, this.ABSTL(4, 13, e), this.ABSTL(14, 1, e), this.ABSTL(1, 14, e), e = 69, this.ABSTL(30, 8, e), this.ABSTL(100, 12, e), e = 70, this.ABSTL(200, 10, e), this.ABSTL(3, 13, e), e = 71, this.ABSTL(10, 13, e), this.ABSTL(30, 12, e), e = 72, this.ABSTL(1, 14, e), this.ABSTL(30, 1, e), this.ABSTL(1, 14, e), e = 73, this.ABSTL(5, 13, e), this.ABSTL(30, 1, e), this.ABSTL(1, 14, e), this.ABSTL(14, 1, e), this.ABSTL(2, 13, e), e = 74, this.ABSTL(100, 12, e), this.ABSTL(1, 14, e), this.ABSTL(100, 12, e), e = 75, this.ABSTL(1, 14, e), this.ABSTL(14, 8, e), this.ABSTL(2, 13, e), this.ABSTL(1, 14, e), this.ABSTL(14, 8, e), this.ABSTL(2, 13, e), this.ABSTL(14, 1, e), this.ABSTL(1, 14, e), t = 76; t < 250; ) { for (s = (7 + t - 75) | 0, n = 0; n < s; ) { switch ( ((i = 9), (r = cT.random(t)), "medium" == this.diff && (r = (r + 3) | 0), "hard" == this.diff && (r = (r + 7) | 0), 10 < r && (i = 10), 47 < r && (i = 12), 67 < r && (i = 13), 77 < r && (i = 14), i) ) { case 5: case 6: case 7: case 8: case 9: case 10: case 11: this.ABSTL(10, i, t); break; case 12: this.ABSTL(t - 65, i, t); break; case 13: this.ABSTL(t - 70, i, t); break; case 14: this.ABSTL(Math.round((t - 75) / 3), i, t); } ++n; } ++t; } this.ABSTL(999, 14, 250); }, ResolveInput: function (e) { switch (e.keyCode) { case 8: this.SellCurrentTower(); break; case 27: this.DeselectCurrent(); break; case 46: this.SellCurrentTower(); break; case 65: this.SetCurrentTool("monkeyace"); break; case 66: this.SetCurrentTool("bomb"); break; case 68: this.SetCurrentTool("dart"); break; case 69: this.SetCurrentTool("glue"); break; case 70: this.SetCurrentTool("money"); break; case 71: this.SetCurrentTool("gluetower"); break; case 73: this.SetCurrentTool("ice"); break; case 75: this.SetCurrentTool("spikes"); break; case 77: this.SetCurrentTool("mortar"); break; case 78: this.SetCurrentTool("beacon"); break; case 80: this.SetCurrentTool("pineapple"); break; case 82: this.SetCurrentTool("boomerang"); break; case 83: this.SetCurrentTool("super"); break; case 84: this.SetCurrentTool("tack"); break; case 85: this.SetCurrentTool("ship"); break; case 87: this.SetCurrentTool("wizard"); } }, UpdateMoney: function () { Lp.__cast(this.roundinfo_mc.resolve("money_txt"), Sa).set_text( "" + this.money.get_value() ), Lp.__cast(this.roundinfo_mc.resolve("lives_txt"), Sa).set_text( "" + this.lives.get_value() ), null != this.currentTower && (Lp.__cast( this.toweroptions.popcount_mc.resolve("popcount_txt"), Sa ).set_text(Ue.string(this.currentTower.popcount)), this.currentTower.upgradeNum < 4 && De.field( this.toweroptions.upgrade_group, "upgrade" + Ue.string(this.currentTower.upgradeNum + 1) ).CheckAfford()); }, freePlayMode: function () { this.startrnd_btn.set_visible(!0), this.Output( "Free play mode! See how far you can get - you cannot save your game in free play mode. Good luck." ); }, EnterFrame: function (e) { var t = !1, s = 0, n = null; if ( ((this.poppedThisFrame = 0), this.mortaraim_mc.set_visible(this.mortarAim), 1 == this.haveCurTower ? ("mortar" == this.currentTower.type && this.mortarAim && (this.mortaraim_mc.set_x(this.get_mouseX()), this.mortaraim_mc.set_y(this.get_mouseY())), this.EnableOptions()) : this.DisableOptions(), "none" != this.currentTool) ) if ( (this.towerplace.set_x(this.get_mouseX()), this.towerplace.set_y(this.get_mouseY()), (t = !1), 540 < this.get_mouseX() && (t = !0), "monkeyace" != this.currentTool) ) { for (var i = 0, r = this.towerlist; i < r.length; ) { var o = r[i]; if ( (++i, "monkeyace" != o.type && o.hitbit.hitTestObject(this.towerplace.resolve("hitbit"))) ) { Lp.__cast(this.towerplace.resolve("radiusmc"), u).gotoAndStop( 2 ), (t = !0); break; } } if ( "spikes" != this.currentTool && "glue" != this.currentTool && "pineapple" != this.currentTool ) for (s = 0; s < this.pathhitmc.__children._length; ) { if ( ((n = this.pathhitmc.getChildAt(s)), "ship" != this.currentTool) ) { if (Lp.__instanceof(n, c_) || Lp.__instanceof(n, gu)) { if (n.hitTestObject(this.towerplace.resolve("hitbit"))) { Lp.__cast( this.towerplace.resolve("radiusmc"), u ).gotoAndStop(2); break; } t || Lp.__cast( this.towerplace.resolve("radiusmc"), u ).gotoAndStop(1); } } else if (Lp.__instanceof(n, gu)) { if ( !n.hitTestObject(this.towerplace.resolve("hitbit")) || t ) { Lp.__cast( this.towerplace.resolve("radiusmc"), u ).gotoAndStop(2); break; } Lp.__cast(this.towerplace.resolve("radiusmc"), u).gotoAndStop( 1 ); } else Lp.__cast(this.towerplace.resolve("radiusmc"), u).gotoAndStop( 2 ); ++s; } else for (s = 0; s < this.pathhitmc.__children._length; ) { if ( ((n = this.pathhitmc.getChildAt(s)), Lp.__instanceof(n, c_)) ) if (n.hitTestObject(this.towerplace.resolve("hitbit"))) { if (!t) { Lp.__cast( this.towerplace.resolve("radiusmc"), u ).gotoAndStop(1); break; } } else Lp.__cast( this.towerplace.resolve("radiusmc"), u ).gotoAndStop(2); ++s; } } else Lp.__cast(this.towerplace.resolve("radiusmc"), u).gotoAndStop(1); else this.towerplace.set_x(1500), this.towerplace.set_y(1500); this.updateBloons(); this.poppedThisFrame; if ( (this.poppedThisFrame > this.poppedThisFrameMax && (this.poppedThisFrameMax = this.poppedThisFrame), this.render(), this.ingame) ) { if ( 5e3 < Math.round((Date.now() / 1e3) * 1e3) - this.timeLastBloon && this.numBloons < 1 && "sandboxmode" != this.gameMode ) return ( (this.noMore = !0), this.EndLevel(), void (this.endRoundCount = 0) ); this.noMore ? ("apopalypsemode" == this.gameMode && ((this.noMore = !1), this.addMoreApopalypse()), this.bloons.length < 1 && (20 < this.endRoundCount ? (Zf.trace("end lev", { fileName: "BTD4.hx", lineNumber: 2200, className: "BTD4", methodName: "EnterFrame", }), this.EndLevel(), (this.endRoundCount = 0)) : this.endRoundCount++)) : (this.counter++, this.counter > this.bloonInterval && ((this.counter = 0), null != this.levelsArray[this.curLevel - 1][this.bloonIndex] ? (this.NewBloon( this.levelsArray[this.curLevel - 1][this.bloonIndex], 0, 0 ), this.bloonIndex++, this.doXPBar()) : null == this.levelsArray[this.curLevel - 1][this.bloonIndex] && "sandboxmode" != this.gameMode && (Zf.trace("no more bloons", { fileName: "BTD4.hx", lineNumber: 2184, className: "BTD4", methodName: "EnterFrame", }), (this.noMore = !0)))), this.UpdateTowers(), this.UpdateBullets(); } }, render: function () { var e = null; Lp.__cast(this.bloonBitmap.bitmapData, sw).fillRect(this.viewPort, 0); for (var t = this.bloons.length; 0 < t; ) (e = this.bloons[t - 1]).deleteMe ? this.bloons.splice(t - 1, 1) : e.render(this.bloonBitmap, this.viewPort), --t; }, SellCurrentTower: function () { 1 == this.haveCurTower && (this.money.set_value( this.money.get_value() + Math.floor(this.SELL_RATE * this.currentTower.spentonme) ), this.UpdateMoney(), "beacon" == this.currentTower.type && (4 == this.currentTower.upgradeNum && (this.hasStorm = !1), this.currentTower.deleteBeacon()), ((("monkeyace" == this.currentTower.type || "ship" == this.currentTower.type) && 2 <= this.currentTower.upgradeNum) || ("wizard" == this.currentTower.type && null != De.field(this.mochiBoosters, "crystalball"))) && this.currentTower.deleteCamoSee(), this.sellTowerSnd.play(), this.RemoveTower(this.currentTower), this.DeselectCurrent()); }, doStormHittest: function () { for (var e = 0; e < this.bloons.length; ) this.bloons[e].rank <= 12 && (this.money.set_value(this.money.get_value() + 2), (this.bloons[e].deleteMe = !0)), ++e; this.UpdateMoney(); }, calcRBE: function (e) { switch (e) { case 1: return 1; case 2: return 2; case 3: return 3; case 4: return 4; case 5: return 5; case 6: case 7: return 11; case 8: case 9: return 23; case 10: return 47; case 11: return 9; case 12: return 103; case 13: return 613; case 14: return 2884; default: return null; } }, continueLoadingSave: function (e) { var t = 0; this.Init(), this.money.set_value(Ue.parseInt(this.savedGameObj.money)), (this.curLevel = this.savedGameObj.curLevel), this.lives.set_value(this.savedGameObj.lives), (this.gameMode = this.savedGameObj.gameMode), (this.doubleCash = this.savedGameObj.doubleCash), Lp.__cast(this.output.resolve("roundnum_txt"), Sa).set_text( Ue.string(this.curLevel) + " of " + Ue.string(this.max_level) ), Lp.__cast(this.output.resolve("diff_txt"), Sa).set_text( this.diff.toUpperCase() ), Lp.__cast(this.roundinfo_mc.resolve("money_txt"), Sa).set_text( Ue.string(this.money.get_value()) ), Lp.__cast(this.roundinfo_mc.resolve("lives_txt"), Sa).set_text( "" + this.lives.get_value() ), Lp.__cast( this.toweroptions.upgrade_group .resolve("monkeystormbtn") .resolve("cooldown_mc"), u ).gotoAndStop(1); for (var s = this.savedGameObj.towerdata, n = 0; n < s.length; ) { for ( this.currentTower = this.CreateNewTower( s[n].type, s[n].x, s[n].y, !0 ), this.currentTower.popcount = s[n].popcount, this.currentTower.AImode = s[n].AImode, "mortar" == this.currentTower.type && (this.currentTower.mortaraim.set_x(s[n].aimx), this.currentTower.mortaraim.set_y(s[n].aimy)), "monkeyace" == this.currentTower.type && (Zf.trace("monkey ace: " + Ue.string(s[n].framenum), { fileName: "BTD4.hx", lineNumber: 2339, className: "BTD4", methodName: "continueLoadingSave", }), this.currentTower.inner.gotoAndPlay(s[n].framenum)), t = 1; t <= s[n].upgradeNum; ) this.GetUpgrade(this.currentTower.type + t, !0), ++t; ++n; } this.DeselectCurrent(), this.Output( "Welcome back to Bloons� Tower Defense 4. When you saved, you had just finished round " + Ue.string(this.curLevel) ); }, endOutput: function (e) {}, clickMoreMoney: function (e) {}, DeselectCurrent: function () { (this.mortarAim = !1), this.output.resolve("cancelbuybtn").set_visible(!1), (this.currentTool = "none"), 1 == this.haveCurTower && (this.currentTower.hideMortarAim(), this.currentTower.radiusmc.set_visible(!1), (this.haveCurTower = !1)); }, hideStuff: function () { this.startrnd_btn.set_visible(!1), this.savegame_btn.set_visible(!1), this.storeBtn.set_visible(!1); }, ShootBullet: function (e, t, s, n, i, r) { null == r && (r = !1), null == i && (i = "none"), null == n && (n = 0), null == s && (s = 0); var o = null, a = null, l = null, h = NaN, _ = NaN, u = 0, d = 0; null != e ? ((o = e.type), "none" != i && ((l = o), (o = i)), ("frag" != o && "dartsplosion" != o) || ((u = e.lastBul.__transform.tx), (d = e.lastBul.__transform.ty))) : (o = this.currentTool), null != e && e.laser && (o = "laser"); var c = 0, f = 0, p = 0; switch ( (null != t && ((f = t.x - e.__transform.tx), (p = t.y - e.__transform.ty), (f /= h = Math.sqrt(f * f + p * p)), (p /= h), (c = e.shootPower)), (0 == s && 0 == n) || ((f = s), (p = n), (c = "frag" == o ? 17 : e.shootPower)), o) ) { case "bomb": 3 == e.upgradeNum ? (a = new o_()) : 4 == e.upgradeNum ? (a = new a_()) : e.upgradeNum < 3 && (a = new Dh()); break; case "boomerang": 3 == e.upgradeNum ? (a = new qh()) : 4 == e.upgradeNum ? (a = new i_()) : e.upgradeNum < 3 && (a = new kh()); break; case "dart": a = e.upgradeNum < 3 ? new Nh() : ((o = "spikeopult"), 3 == e.upgradeNum ? new w_() : new v_()); break; case "dartsplosion": a = new Oh(); break; case "fireball": a = new Wh(); break; case "frag": a = new jh(); break; case "glue": a = new Zh(); break; case "gluetower": a = e.upgradeNum < 3 ? new Qh() : new $h(); break; case "grape": a = new e_(); break; case "ice": a = new t_(); break; case "laser": 4 == e.upgradeNum ? (a = new y_()) : 3 == e.upgradeNum ? (a = new p_()) : 2 == e.upgradeNum && (a = new n_()); break; case "monkeyace": a = new Nh(); break; case "mortar": a = new u_(); break; case "pineapple": a = new f_(); break; case "ship": a = new Kh(); break; case "spikes": (a = new b_()).set_rotation(cT.random(360)); break; case "super": a = new T_(); break; case "tack": 3 == e.upgradeNum ? (a = new mh()) : 4 == e.upgradeNum ? (((a = new Yh()).type = "firering"), (a.icebreak = !0), (a.leadbreak = !0)) : (a = new x_()); break; case "tempest": (a = new P_()), this.tornadoSnd.play(); break; case "tornado": (a = new R_()), this.tornadoSnd.play(); break; case "wizard": a = new r_(); break; default: a = new Nh(); } if (null != a) { var b = this.bulletholder; b.addChildAt(a, b.__children._length), null != e ? ((e.lastBul = a), "monkeyace" == o || "monkeyace" == l ? (a.set_x( e.__transform.tx + 10 * f + e.inner.__transform.tx + e.inner.resolve("inner").__transform.tx ), a.set_y( e.__transform.ty + 10 * p + e.inner.__transform.ty + e.inner.resolve("inner").__transform.ty )) : "frag" == o || "dartsplosion" == o ? (a.set_x(u), a.set_y(d)) : ("mortar" == o ? (a.set_x( e.mortaraim.__transform.tx + e.__transform.tx + cT.randomRange(-e.scatterVal, 2 * e.scatterVal) ), a.set_y( e.mortaraim.__transform.ty + e.__transform.ty + cT.randomRange(-e.scatterVal, 2 * e.scatterVal) )) : (a.set_x(e.__transform.tx + 10 * f), a.set_y(e.__transform.ty + 10 * p)), (a.pierceMax = e.pierceMax), (a.isspread = e.isspread), (a.icebreak = e.icebreak), (a.leadbreak = e.leadbreak)), (a.shooter = e), a.set_scaleX(a.set_scaleY(e.bulletScale))) : (a.set_x(this.get_mouseX()), a.set_y(this.get_mouseY())), (a.vx = f * c), (a.vy = p * c), (a.game = this), null == a.type && ((a.type = o), ("spikes" != a.type && "glue" != a.type) || a.Init()), a.set_cacheAsBitmap(!0), (_ = Math.atan2(p, f)), (_ = (180 / Math.PI) * _), a.set_rotation(_ + 90), r && a.set_rotation(a.__rotation + 30), null != t && (e.set_rotation(a.__rotation), null != e.rankchevron_mc && e.rankchevron_mc.set_rotation(-e.__rotation), null != e.inner && "laser" != o && null != e.inner.resolve("arm") && e.inner.resolve("arm").gotoAndPlay(3), ("tornado" != o && "tempest" != o) || a.set_rotation(0)), this.bulletlist.push(a), r && this.ShootBullet(e, t); } }, activateMochiBooster: function (e) { switch ( ("fragbombs" != e && (this.hasBooster = !0), (this.mochiBoosters[e] = 1), e) ) { case "crystalball": this.RANGE_WIZARD = 180; for (var t = 0, s = this.towerlist; t < s.length; ) { var n = s[t]; ++t, "wizard" == n.type && ((n.seeInvis = !0), (n.attackRadius = this.RANGE_WIZARD), n.CalcRadius()); } break; case "digitalamplify": this.RANGE_BEACON = 250; for (var i = 0, r = this.towerlist; i < r.length; ) { var o = r[i]; ++i, "beacon" == o.type && ((o.attackRadius = this.RANGE_BEACON), o.upgradeNum && (o.attackRadius += 30), o.CalcRadius()); } break; case "monkeytycoon": this.SELL_RATE = 1; } }, GetUpgrade: function (e, t) { null == t && (t = !1); switch (e) { case "beacon1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BEACON_RANGE_UPGRADE) ); var s = this.currentTower.spentonme, n = this.GetPrice(this.COST_BEACON_RANGE_UPGRADE); (this.currentTower.spentonme = s + n), (this.currentTower.upgradeNum = 1), "beacon" == this.currentTower.type && (this.currentTower.attackRadius += 30); break; case "beacon2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BEACON_DRUMS_UPGRADE) ); var i = this.currentTower.spentonme, r = this.GetPrice(this.COST_BEACON_DRUMS_UPGRADE); (this.currentTower.spentonme = i + r), (this.currentTower.upgradeNum = 2); break; case "beacon3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BEACON_SEEINVIS_UPGRADE) ); var o = this.currentTower.spentonme, a = this.GetPrice(this.COST_BEACON_SEEINVIS_UPGRADE); (this.currentTower.spentonme = o + a), (this.currentTower.upgradeNum = 3); break; case "beacon4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BEACON_STORM_UPGRADE) ); var l = this.currentTower.spentonme, h = this.GetPrice(this.COST_BEACON_STORM_UPGRADE); (this.currentTower.spentonme = l + h), (this.currentTower.upgradeNum = 4), (this.stormReady = !0), (this.hasStorm = !0), (this.currentTower.towerName = "Monkey Storm Beacon"); break; case "bomb1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BOMB_SIZE_UPGRADE) ); var _ = this.currentTower.spentonme, u = this.GetPrice(this.COST_BOMB_SIZE_UPGRADE); (this.currentTower.spentonme = _ + u), (this.currentTower.upgrade1 = !0), (this.currentTower.upgradeNum = 1), "bomb" == this.currentTower.type && ((this.currentTower.bulletScale = 1.5), (this.currentTower.bulHitRadius += 5), (this.currentTower.pierceMax += 10)); break; case "bomb2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BOMB_RANGE_UPGRADE) ); var d = this.currentTower.spentonme, c = this.GetPrice(this.COST_BOMB_RANGE_UPGRADE); (this.currentTower.spentonme = d + c), (this.currentTower.upgradeNum = 2), "bomb" == this.currentTower.type && (this.currentTower.attackRadius += 20); break; case "bomb3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BOMB_MISSILE_UPGRADE) ); var f = this.currentTower.spentonme, p = this.GetPrice(this.COST_BOMB_MISSILE_UPGRADE); (this.currentTower.spentonme = f + p), (this.currentTower.upgradeNum = 3), "bomb" == this.currentTower.type && ((this.currentTower.transformed = !0), (this.currentTower.shootPower = 25), (this.currentTower.attackRate -= 8), (this.currentTower.attackRadius += 5), (this.currentTower.towerName = "Missile Launcher"), (this.currentTower.timeSinceLastShot = 0), (this.currentTower.pierceMax += 5)); break; case "bomb4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BOMB_MOABBUSTER_UPGRADE) ); var b = this.currentTower.spentonme, m = this.GetPrice(this.COST_BOMB_MOABBUSTER_UPGRADE); (this.currentTower.spentonme = b + m), (this.currentTower.upgradeNum = 4), (this.currentTower.towerName = "MOAB Mauler"), (this.currentTower.attackRate -= 5), (this.currentTower.moabkill = !0), (this.currentTower.bulHitRadius += 5), (this.currentTower.pierceMax += 5); break; case "boomerang1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BOOMERANG_PIERCE_UPGRADE) ); var g = this.currentTower.spentonme, w = this.GetPrice(this.COST_BOOMERANG_PIERCE_UPGRADE); (this.currentTower.spentonme = g + w), (this.currentTower.upgrade1 = !0), (this.currentTower.upgradeNum = 1), "boomerang" == this.currentTower.type && (this.currentTower.pierceMax += 4); break; case "boomerang2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BOOMERANG_SONIC_UPGRADE) ); var v = this.currentTower.spentonme, y = this.GetPrice(this.COST_BOOMERANG_SONIC_UPGRADE); (this.currentTower.spentonme = v + y), (this.currentTower.upgradeNum = 2), "boomerang" == this.currentTower.type && (this.currentTower.icebreak = !0); break; case "boomerang3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BOOMERANG_GLAIVE_UPGRADE) ); var T = this.currentTower.spentonme, S = this.GetPrice(this.COST_BOOMERANG_GLAIVE_UPGRADE); (this.currentTower.spentonme = T + S), (this.currentTower.upgradeNum = 3), "boomerang" == this.currentTower.type && ((this.currentTower.towerName = "Glaive Thrower"), (this.currentTower.pierceMax += 5), (this.currentTower.bulHitRadius += 3), (this.currentTower.attackRate -= 3), (this.currentTower.timeSinceLastShot = 0)); break; case "boomerang4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_BOOMERANG_SABRE_UPGRADE) ); var x = this.currentTower.spentonme, E = this.GetPrice(this.COST_BOOMERANG_SABRE_UPGRADE); (this.currentTower.spentonme = x + E), (this.currentTower.towerName = "Lightsabre Thrower"), (this.currentTower.upgradeNum = 4), "boomerang" == this.currentTower.type && ((this.currentTower.pierceMax += 58), (this.currentTower.leadbreak = !0), (this.currentTower.bulHitRadius += 10)); break; case "dart1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_DART_PIERCE_UPGRADE) ); var P = this.currentTower.spentonme, R = this.GetPrice(this.COST_DART_PIERCE_UPGRADE); (this.currentTower.spentonme = P + R), (this.currentTower.upgrade1 = !0), (this.currentTower.upgradeNum = 1), "dart" == this.currentTower.type && (this.currentTower.pierceMax += 1); break; case "dart2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_DART_RANGE_UPGRADE) ); var A = this.currentTower.spentonme, I = this.GetPrice(this.COST_DART_RANGE_UPGRADE); (this.currentTower.spentonme = A + I), (this.currentTower.upgrade2 = !0), (this.currentTower.upgradeNum = 2), "dart" == this.currentTower.type && (this.currentTower.attackRadius += 25); break; case "dart3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_DART_SPIKE_UPGRADE) ); var C = this.currentTower.spentonme, B = this.GetPrice(this.COST_DART_SPIKE_UPGRADE); (this.currentTower.spentonme = C + B), (this.currentTower.upgrade3 = !0), this.currentTower.convertTo("spikeopult"), (this.currentTower.upgradeNum = 3); break; case "dart4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_DART_TRIPLE_UPGRADE) ); var D = this.currentTower.spentonme, k = this.GetPrice(this.COST_DART_TRIPLE_UPGRADE); (this.currentTower.spentonme = D + k), (this.currentTower.upgrade4 = !0), (this.currentTower.upgradeNum = 4), "dart" == this.currentTower.type && ((this.currentTower.pierceMax += 30), (this.currentTower.attackRate -= 5), (this.currentTower.bulHitRadius += 8), (this.currentTower.attackRadius += 25), (this.currentTower.shootPower += 5)); break; case "gluetower1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_GLUE_STICKY_UPGRADE) ); var F = this.currentTower.spentonme, M = this.GetPrice(this.COST_GLUE_STICKY_UPGRADE); (this.currentTower.spentonme = F + M), (this.currentTower.upgradeNum = 1), (this.currentTower.glueLen += 400); break; case "gluetower2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_GLUE_SOAK_UPGRADE) ); var L = this.currentTower.spentonme, N = this.GetPrice(this.COST_GLUE_SOAK_UPGRADE); (this.currentTower.spentonme = L + N), (this.currentTower.upgradeNum = 2); break; case "gluetower3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_GLUE_CORROSIVE_UPGRADE) ); var O = this.currentTower.spentonme, U = this.GetPrice(this.COST_GLUE_CORROSIVE_UPGRADE); (this.currentTower.spentonme = O + U), (this.currentTower.upgradeNum = 3); break; case "gluetower4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_GLUE_SPLATTER_UPGRADE) ); var G = this.currentTower.spentonme, z = this.GetPrice(this.COST_GLUE_SPLATTER_UPGRADE); (this.currentTower.spentonme = G + z), (this.currentTower.upgradeNum = 4), (this.currentTower.pierceMax = 25); break; case "ice1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_ICE_ENHANCE_UPGRADE) ); var X = this.currentTower.spentonme, H = this.GetPrice(this.COST_ICE_ENHANCE_UPGRADE); (this.currentTower.spentonme = X + H), (this.currentTower.upgradeNum = 1), "ice" == this.currentTower.type && ((this.currentTower.freezeLen += 20), (this.currentTower.bulletScale = 1), (this.currentTower.attackRadius += 15)); break; case "ice2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_ICE_PERMAFROST_UPGRADE) ); var V = this.currentTower.spentonme, Y = this.GetPrice(this.COST_ICE_PERMAFROST_UPGRADE); (this.currentTower.spentonme = V + Y), (this.currentTower.upgradeNum = 2); break; case "ice3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_ICE_SNAP_UPGRADE) ); var W = this.currentTower.spentonme, j = this.GetPrice(this.COST_ICE_SNAP_UPGRADE); (this.currentTower.spentonme = W + j), (this.currentTower.upgradeNum = 3); break; case "ice4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_ICE_AURA_UPGRADE) ); var K = this.currentTower.spentonme, q = this.GetPrice(this.COST_ICE_AURA_UPGRADE); (this.currentTower.spentonme = K + q), (this.currentTower.attackRadius += 30), (this.currentTower.upgradeNum = 4), (this.currentTower.bulletScale = 1.2); break; case "money1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_MONEY_MORENANAS_UPGRADE) ); var Z = this.currentTower.spentonme, J = this.GetPrice(this.COST_MONEY_MORENANAS_UPGRADE); (this.currentTower.spentonme = Z + J), (this.currentTower.upgradeNum = 1), "money" == this.currentTower.type && (this.currentTower.income += 40); break; case "money2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_MONEY_PLANTATION_UPGRADE) ); var Q = this.currentTower.spentonme, $ = this.GetPrice(this.COST_MONEY_PLANTATION_UPGRADE); (this.currentTower.spentonme = Q + $), (this.currentTower.upgradeNum = 2), "money" == this.currentTower.type && ((this.currentTower.towerName = "Banana Plantation"), (this.currentTower.income = 250)); break; case "money3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_MONEY_REPUBLIC_UPGRADE) ); var ee = this.currentTower.spentonme, te = this.GetPrice(this.COST_MONEY_REPUBLIC_UPGRADE); (this.currentTower.spentonme = ee + te), (this.currentTower.upgradeNum = 3), "money" == this.currentTower.type && ((this.currentTower.towerName = "Banana Republic"), (this.currentTower.income = 500)); break; case "money4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_MONEY_BRF_UPGRADE) ); var se = this.currentTower.spentonme, ne = this.GetPrice(this.COST_MONEY_BRF_UPGRADE); (this.currentTower.spentonme = se + ne), (this.currentTower.upgradeNum = 4), "money" == this.currentTower.type && ((this.currentTower.towerName = "B.R.F"), (this.currentTower.income = 2e3)); break; case "monkeyace1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_PLANE_PINEAPPLE_UPGRADE) ); var ie = this.currentTower.spentonme, re = this.GetPrice(this.COST_PLANE_PINEAPPLE_UPGRADE); (this.currentTower.spentonme = ie + re), (this.currentTower.upgradeNum = 1); this.currentTower.type; break; case "monkeyace2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_PLANE_SPY_UPGRADE) ); var oe = this.currentTower.spentonme, ae = this.GetPrice(this.COST_PLANE_SPY_UPGRADE); (this.currentTower.spentonme = oe + ae), (this.currentTower.upgradeNum = 2); this.currentTower.type; break; case "monkeyace3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_PLANE_RATE_UPGRADE) ); var le = this.currentTower.spentonme, he = this.GetPrice(this.COST_PLANE_RATE_UPGRADE); (this.currentTower.spentonme = le + he), (this.currentTower.upgradeNum = 3), "monkeyace" == this.currentTower.type && (this.currentTower.attackRate = 50); break; case "monkeyace4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_PLANE_DARTSTORM_UPGRADE) ); var _e = this.currentTower.spentonme, ue = this.GetPrice(this.COST_PLANE_DARTSTORM_UPGRADE); (this.currentTower.spentonme = _e + ue), (this.currentTower.upgradeNum = 4), "monkeyace" == this.currentTower.type && ((this.currentTower.attackRate = 35), (this.currentTower.towerName = "Dart Storm")); break; case "mortar1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_MORTAR_ACCURACY_UPGRADE) ); var de = this.currentTower.spentonme, ce = this.GetPrice(this.COST_MORTAR_ACCURACY_UPGRADE); (this.currentTower.spentonme = de + ce), (this.currentTower.upgradeNum = 1), (this.currentTower.scatterVal = 30), this.currentTower.mortaraim.set_width( this.currentTower.mortaraim.set_height( 2 * this.currentTower.scatterVal ) ); break; case "mortar2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_MORTAR_RATE_UPGRADE) ); var fe = this.currentTower.spentonme, pe = this.GetPrice(this.COST_MORTAR_RATE_UPGRADE); (this.currentTower.spentonme = fe + pe), (this.currentTower.upgradeNum = 2), (this.currentTower.attackRate -= 20); break; case "mortar3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_MORTAR_BLOONBUSTER_UPGRADE) ); var be = this.currentTower.spentonme, me = this.GetPrice(this.COST_MORTAR_BLOONBUSTER_UPGRADE); (this.currentTower.spentonme = be + me), (this.currentTower.upgradeNum = 3); break; case "mortar4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_MORTAR_BATTERY_UPGRADE) ); var ge = this.currentTower.spentonme, we = this.GetPrice(this.COST_MORTAR_BATTERY_UPGRADE); (this.currentTower.spentonme = ge + we), (this.currentTower.towerName = "Mortar Battery"), (this.currentTower.upgradeNum = 4), (this.currentTower.attackRate = (this.currentTower.attackRate / 3) | 0); break; case "ship1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_SHIP_GRAPESHOT_UPGRADE) ); var ve = this.currentTower.spentonme, ye = this.GetPrice(this.COST_SHIP_GRAPESHOT_UPGRADE); (this.currentTower.spentonme = ve + ye), (this.currentTower.upgradeNum = 1); this.currentTower.type; break; case "ship2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_SHIP_CROWSNEST_UPGRADE) ); var Te = this.currentTower.spentonme, Se = this.GetPrice(this.COST_SHIP_CROWSNEST_UPGRADE); (this.currentTower.spentonme = Te + Se), (this.currentTower.upgradeNum = 2); this.currentTower.type; break; case "ship3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_SHIP_RANGE_UPGRADE) ); var xe = this.currentTower.spentonme, Ee = this.GetPrice(this.COST_SHIP_RANGE_UPGRADE); (this.currentTower.spentonme = xe + Ee), (this.currentTower.upgradeNum = 3), "ship" == this.currentTower.type && (this.currentTower.attackRadius += 30); break; case "ship4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_SHIP_BATTLESHIP_UPGRADE) ); var Pe = this.currentTower.spentonme, Re = this.GetPrice(this.COST_SHIP_BATTLESHIP_UPGRADE); (this.currentTower.spentonme = Pe + Re), (this.currentTower.upgradeNum = 4), (this.currentTower.towerName = "Battleship"), "ship" == this.currentTower.type && ((this.currentTower.attackRate = 10), (this.currentTower.pierceMax *= 2)); break; case "super1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_SUPER_RANGE_UPGRADE) ); var Ae = this.currentTower.spentonme, Ie = this.GetPrice(this.COST_SUPER_RANGE_UPGRADE); (this.currentTower.spentonme = Ae + Ie), (this.currentTower.upgradeNum = 1), "super" == this.currentTower.type && (this.currentTower.attackRadius += 60); break; case "super2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_SUPER_LASER_UPGRADE) ); var Ce = this.currentTower.spentonme, Be = this.GetPrice(this.COST_SUPER_LASER_UPGRADE); (this.currentTower.spentonme = Ce + Be), (this.currentTower.upgradeNum = 2), "super" == this.currentTower.type && ((this.currentTower.pierceMax += 1), (this.currentTower.icebreak = !0), (this.currentTower.laser = !0), (this.currentTower.bulHitRadius += 5)); break; case "super3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_SUPER_PLASMA_UPGRADE) ); var De = this.currentTower.spentonme, ke = this.GetPrice(this.COST_SUPER_PLASMA_UPGRADE); (this.currentTower.spentonme = De + ke), (this.currentTower.upgradeNum = 3), "super" == this.currentTower.type && ((this.currentTower.pierceMax += 1), (this.currentTower.icebreak = !0), (this.currentTower.leadbreak = !0), (this.currentTower.laser = !0), (this.currentTower.attackRate = 1)); break; case "super4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_SUPER_SUNGOD_UPGRADE) ); var Fe = this.currentTower.spentonme, Me = this.GetPrice(this.COST_SUPER_SUNGOD_UPGRADE); (this.currentTower.spentonme = Fe + Me), (this.currentTower.upgradeNum = 4), "super" == this.currentTower.type && ((this.currentTower.pierceMax += 10), (this.currentTower.shootPower = 25), (this.currentTower.bulHitRadius += 10), (this.currentTower.towerName = "Sun God")); break; case "tack1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_TACK_RATE_UPGRADE) ); var Le = this.currentTower.spentonme, Ne = this.GetPrice(this.COST_TACK_RATE_UPGRADE); (this.currentTower.spentonme = Le + Ne), (this.currentTower.upgrade1 = !0), (this.currentTower.upgradeNum = 1), "tack" == this.currentTower.type && (this.currentTower.attackRate -= 15); break; case "tack2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_TACK_RANGE_UPGRADE) ); var Oe = this.currentTower.spentonme, Ue = this.GetPrice(this.COST_TACK_RANGE_UPGRADE); (this.currentTower.spentonme = Oe + Ue), (this.currentTower.upgrade3 = !0), (this.currentTower.upgradeNum = 2), "tack" == this.currentTower.type && ((this.currentTower.bulletScale = 1.3), (this.currentTower.shootPower += 2), (this.currentTower.attackRadius += 10)); break; case "tack3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_TACK_BLADE_UPGRADE) ); var Ge = this.currentTower.spentonme, ze = this.GetPrice(this.COST_TACK_BLADE_UPGRADE); (this.currentTower.spentonme = Ge + ze), (this.currentTower.upgrade2 = !0), (this.currentTower.upgradeNum = 3), (this.currentTower.towerName = "Blade Shooter"), "tack" == this.currentTower.type && ((this.currentTower.attackRate -= 5), (this.currentTower.bulHitRadius = 10), (this.currentTower.transformed = !0), (this.currentTower.timeSinceLastShot = 0)); break; case "tack4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_TACK_FIRE_UPGRADE) ); var Xe = this.currentTower.spentonme, He = this.GetPrice(this.COST_TACK_FIRE_UPGRADE); (this.currentTower.spentonme = Xe + He), (this.currentTower.upgrade4 = !0), (this.currentTower.upgradeNum = 4), "tack" == this.currentTower.type && ((this.currentTower.towerName = "Fire Ring"), (this.currentTower.attackRate -= 12), (this.currentTower.attackRadius += 10), (this.currentTower.bulHitRadius = this.currentTower.attackRadius)); break; case "wizard1": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_WIZARD_INTENSESHOT_UPGRADE) ); var Ve = this.currentTower.spentonme, Ye = this.GetPrice(this.COST_WIZARD_INTENSESHOT_UPGRADE); (this.currentTower.spentonme = Ve + Ye), (this.currentTower.upgradeNum = 1), (this.currentTower.pierceMax += 5), (this.currentTower.bulletScale = 1.5), (this.currentTower.towerName = "Monkey Sorceror"); break; case "wizard2": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_WIZARD_FIREBALL_UPGRADE) ); var We = this.currentTower.spentonme, je = this.GetPrice(this.COST_WIZARD_FIREBALL_UPGRADE); (this.currentTower.spentonme = We + je), (this.currentTower.upgradeNum = 2), (this.currentTower.pierceMax += 5), (this.currentTower.towerName = "Monkey Mage"); break; case "wizard3": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_WIZARD_TORNADO_UPGRADE) ); var Ke = this.currentTower.spentonme, qe = this.GetPrice(this.COST_WIZARD_TORNADO_UPGRADE); (this.currentTower.spentonme = Ke + qe), (this.currentTower.upgradeNum = 3), (this.currentTower.pierceMax += 30), (this.currentTower.towerName = "Monkey Archmage"); break; case "wizard4": t || this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_WIZARD_TEMPEST_UPGRADE) ); var Ze = this.currentTower.spentonme, Je = this.GetPrice(this.COST_WIZARD_TEMPEST_UPGRADE); (this.currentTower.spentonme = Ze + Je), (this.currentTower.upgradeNum = 4), (this.currentTower.attackRate -= 5), (this.currentTower.bulletScale = 1.4), (this.currentTower.pierceMax += 125), (this.currentTower.towerName = "Monkey Wizard"); } this.currentTower.gotoAndStop(this.currentTower.upgradeNum + 1), this.currentTower.CalcRadius(), t || (new er(this.toweroptions.upgrade_group, 0.5, { x: 208 - 232 * this.currentTower.upgradeNum, }).play(), this.UpdateMoney()); }, checkSoundPrefs: function () { this.userProfile.data.soundMute && (this.output.resolve("sndbtn").gotoAndStop(2), this.output.resolve("musbtn").gotoAndStop(2)), this.userProfile.data.musicMute && this.output.resolve("musbtn").gotoAndStop(2); }, setTrack: function (e) { this.ClearAll(), (this.trackNum = e), this.playarea.gotoAndStop(e), this.pathhitmc.gotoAndStop(e), Zf.trace("set track to : " + Ue.string(e), { fileName: "BTD4.hx", lineNumber: 3297, className: "BTD4", methodName: "setTrack", }); }, doTowerUnlock: function (e, t) { null == t && (t = !1); var s = null; switch (((s = ""), e)) { case 0: s = "darttower"; break; case 1: s = "tacktower"; break; case 2: s = "boomerang"; break; case 3: s = "bombtower"; break; case 4: s = "spikes"; break; case 5: s = "icetower"; break; case 6: s = "mortartower"; break; case 7: s = "pineapple"; break; case 8: s = "gluetower"; break; case 9: s = "beacon"; break; case 10: s = "glue"; break; case 11: s = "planetower"; break; case 12: s = "shiptower"; break; case 13: s = "wizardtower"; break; case 14: s = "supermonkey"; break; case 15: s = "moneytower"; break; case 16: s = "bomb4"; break; case 17: s = "beacon4"; break; case 18: s = "dart4"; break; case 19: s = "boomerang4"; break; case 20: s = "ship4"; break; case 21: s = "tack4"; break; case 22: s = "mortar4"; break; case 23: s = "ice4"; break; case 24: s = "gluetower4"; break; case 25: s = "sandboxmode"; break; case 26: s = "monkeyace4"; break; case 27: s = "money4"; break; case 28: s = "wizard4"; break; case 29: s = "super4"; break; case 30: s = "apopalypsemode"; } if (e < 16 && null != this.darttowerbtn) { var n = De.field(this, s + "btn"); n.addEventListener("mouseDown", CT(this, this.clickTowerBtn)), n.addEventListener("rollOver", CT(this, this.rolloverTowerBtn)), n.addEventListener("rollOut", CT(this, this.rolloffTowerBtn)), n.gotoAndStop(2), (n.buttonMode = !0), (n.mouseChildren = !1); } t && e < 31 && (this.collectUnlockBox.resolve("inner").gotoAndStop(s), this.collectUnlockBox.gotoAndPlay(2), this.rankUpSnd.play()); }, addedToStageResult: function (e) { Zf.trace("LENGTH: " + this.XP_NEEDED.length, { fileName: "BTD4.hx", lineNumber: 3392, className: "BTD4", methodName: "addedToStageResult", }), (this.globSpeedMod = 0); var t = this.get_loaderInfo().url; (this.hasStorm = !1), (this.poppedThisFrame = 0), (this.poppedThisFrameMax = 0), (this.tabChildren = !1), (this.gameMode = "normalmode"), (this.doubleCash = !1), (this.hasBooster = !1), (this.mochiLoggedIn = !1), (this.lives = new uT()), (this.money = new uT()), (this.userProfile = Ty.getLocal("btd4")), this.userProfile.data.experience || ((this.userProfile.data.experience = 0), (this.userProfile.data.userRank = this.calcUserRank()), (this.userProfile.data.towerUnlocks = []), (this.userProfile.data.towerUnlocks[0] = 1), this.userProfile.flush()), Zf.trace("fneh", { fileName: "BTD4.hx", lineNumber: 3417, className: "BTD4", methodName: "addedToStageResult", }); t.indexOf("ninjakiwifiles.com"); this.initItems(); }, sndToggle: function (e) { 1 == Lp.__cast(this.output.resolve("sndbtn"), u).get_currentFrame() ? (this.userProfile.data.soundMute = !0) : (this.userProfile.data.soundMute = !1), this.output.sndbtn.play(); }, clickMonkeyStorm: function (e) { this.stormReady && this.callMonkeyStorm(); }, CanAfford: function (e) { switch (e) { case "beacon1": if ( this.money.get_value() >= this.GetPrice(this.COST_BEACON_RANGE_UPGRADE) ) return !0; break; case "beacon2": if ( this.money.get_value() >= this.GetPrice(this.COST_BEACON_DRUMS_UPGRADE) ) return !0; break; case "beacon3": if ( this.money.get_value() >= this.GetPrice(this.COST_BEACON_SEEINVIS_UPGRADE) ) return !0; break; case "beacon4": if ( this.money.get_value() >= this.GetPrice(this.COST_BEACON_STORM_UPGRADE) ) return !0; break; case "bomb1": if ( this.money.get_value() >= this.GetPrice(this.COST_BOMB_SIZE_UPGRADE) ) return !0; break; case "bomb2": if ( this.money.get_value() >= this.GetPrice(this.COST_BOMB_RANGE_UPGRADE) ) return !0; break; case "bomb3": if ( this.money.get_value() >= this.GetPrice(this.COST_BOMB_MISSILE_UPGRADE) ) return !0; break; case "bomb4": if ( this.money.get_value() >= this.GetPrice(this.COST_BOMB_MOABBUSTER_UPGRADE) ) return !0; break; case "boomerang1": if ( this.money.get_value() >= this.GetPrice(this.COST_BOOMERANG_PIERCE_UPGRADE) ) return !0; break; case "boomerang2": if ( this.money.get_value() >= this.GetPrice(this.COST_BOOMERANG_SONIC_UPGRADE) ) return !0; break; case "boomerang3": if ( this.money.get_value() >= this.GetPrice(this.COST_BOOMERANG_GLAIVE_UPGRADE) ) return !0; break; case "boomerang4": if ( this.money.get_value() >= this.GetPrice(this.COST_BOOMERANG_SABRE_UPGRADE) ) return !0; break; case "dart1": if ( this.money.get_value() >= this.GetPrice(this.COST_DART_PIERCE_UPGRADE) ) return !0; break; case "dart2": if ( this.money.get_value() >= this.GetPrice(this.COST_DART_RANGE_UPGRADE) ) return !0; break; case "dart3": if ( this.money.get_value() >= this.GetPrice(this.COST_DART_SPIKE_UPGRADE) ) return !0; break; case "dart4": if ( this.money.get_value() >= this.GetPrice(this.COST_DART_TRIPLE_UPGRADE) ) return !0; break; case "gluetower1": if ( this.money.get_value() >= this.GetPrice(this.COST_GLUE_STICKY_UPGRADE) ) return !0; break; case "gluetower2": if ( this.money.get_value() >= this.GetPrice(this.COST_GLUE_SOAK_UPGRADE) ) return !0; break; case "gluetower3": if ( this.money.get_value() >= this.GetPrice(this.COST_GLUE_CORROSIVE_UPGRADE) ) return !0; break; case "gluetower4": if ( this.money.get_value() >= this.GetPrice(this.COST_GLUE_SPLATTER_UPGRADE) ) return !0; break; case "ice1": if ( this.money.get_value() >= this.GetPrice(this.COST_ICE_ENHANCE_UPGRADE) ) return !0; break; case "ice2": if ( this.money.get_value() >= this.GetPrice(this.COST_ICE_PERMAFROST_UPGRADE) ) return !0; break; case "ice3": if ( this.money.get_value() >= this.GetPrice(this.COST_ICE_SNAP_UPGRADE) ) return !0; break; case "ice4": if ( this.money.get_value() >= this.GetPrice(this.COST_ICE_AURA_UPGRADE) ) return !0; break; case "money1": if ( this.money.get_value() >= this.GetPrice(this.COST_MONEY_MORENANAS_UPGRADE) ) return !0; break; case "money2": if ( this.money.get_value() >= this.GetPrice(this.COST_MONEY_PLANTATION_UPGRADE) ) return !0; break; case "money3": if ( this.money.get_value() >= this.GetPrice(this.COST_MONEY_REPUBLIC_UPGRADE) ) return !0; break; case "money4": if ( this.money.get_value() >= this.GetPrice(this.COST_MONEY_BRF_UPGRADE) ) return !0; break; case "monkeyace1": if ( this.money.get_value() >= this.GetPrice(this.COST_PLANE_PINEAPPLE_UPGRADE) ) return !0; break; case "monkeyace2": if ( this.money.get_value() >= this.GetPrice(this.COST_PLANE_SPY_UPGRADE) ) return !0; break; case "monkeyace3": if ( this.money.get_value() >= this.GetPrice(this.COST_PLANE_RATE_UPGRADE) ) return !0; break; case "monkeyace4": if ( this.money.get_value() >= this.GetPrice(this.COST_PLANE_DARTSTORM_UPGRADE) ) return !0; break; case "mortar1": if ( this.money.get_value() >= this.GetPrice(this.COST_MORTAR_ACCURACY_UPGRADE) ) return !0; break; case "mortar2": if ( this.money.get_value() >= this.GetPrice(this.COST_MORTAR_RATE_UPGRADE) ) return !0; break; case "mortar3": if ( this.money.get_value() >= this.GetPrice(this.COST_MORTAR_BLOONBUSTER_UPGRADE) ) return !0; break; case "mortar4": if ( this.money.get_value() >= this.GetPrice(this.COST_MORTAR_BATTERY_UPGRADE) ) return !0; break; case "ship1": if ( this.money.get_value() >= this.GetPrice(this.COST_SHIP_GRAPESHOT_UPGRADE) ) return !0; break; case "ship2": if ( this.money.get_value() >= this.GetPrice(this.COST_SHIP_CROWSNEST_UPGRADE) ) return !0; break; case "ship3": if ( this.money.get_value() >= this.GetPrice(this.COST_SHIP_RANGE_UPGRADE) ) return !0; break; case "ship4": if ( this.money.get_value() >= this.GetPrice(this.COST_SHIP_BATTLESHIP_UPGRADE) ) return !0; break; case "super1": if ( this.money.get_value() >= this.GetPrice(this.COST_SUPER_RANGE_UPGRADE) ) return !0; break; case "super2": if ( this.money.get_value() >= this.GetPrice(this.COST_SUPER_LASER_UPGRADE) ) return !0; break; case "super3": if ( this.money.get_value() >= this.GetPrice(this.COST_SUPER_PLASMA_UPGRADE) ) return !0; break; case "super4": if ( this.money.get_value() >= this.GetPrice(this.COST_SUPER_SUNGOD_UPGRADE) ) return !0; break; case "tack1": if ( this.money.get_value() >= this.GetPrice(this.COST_TACK_RATE_UPGRADE) ) return !0; break; case "tack2": if ( this.money.get_value() >= this.GetPrice(this.COST_TACK_RANGE_UPGRADE) ) return !0; break; case "tack3": if ( this.money.get_value() >= this.GetPrice(this.COST_TACK_BLADE_UPGRADE) ) return !0; break; case "tack4": if ( this.money.get_value() >= this.GetPrice(this.COST_TACK_FIRE_UPGRADE) ) return !0; break; case "wizard1": if ( this.money.get_value() >= this.GetPrice(this.COST_WIZARD_INTENSESHOT_UPGRADE) ) return !0; break; case "wizard2": if ( this.money.get_value() >= this.GetPrice(this.COST_WIZARD_FIREBALL_UPGRADE) ) return !0; break; case "wizard3": if ( this.money.get_value() >= this.GetPrice(this.COST_WIZARD_TORNADO_UPGRADE) ) return !0; break; case "wizard4": if ( this.money.get_value() >= this.GetPrice(this.COST_WIZARD_TEMPEST_UPGRADE) ) return !0; } return !1; }, hideRect: function (e) { this.set_x(0), this.bigbadrect.set_x(this.bigbadrect.__transform.tx - 1e3), this.resolve("fps_mc").set_x( this.resolve("fps_mc").__transform.tx - 1e3 ); }, ABSTL: function (e, t, s) { var n = 0; for (n = 0; n < e; ) this.ABTL(s, t), ++n; }, fragBurst: function (e) { this.ShootBullet(e, null, 0, 1, "frag"), this.ShootBullet(e, null, 0.7, 0.7, "frag"), this.ShootBullet(e, null, 1, 0, "frag"), this.ShootBullet(e, null, 0.7, -0.7, "frag"), this.ShootBullet(e, null, 0, -1, "frag"), this.ShootBullet(e, null, -0.7, -0.7, "frag"), this.ShootBullet(e, null, -1, 0, "frag"), this.ShootBullet(e, null, -0.7, 0.7, "frag"); }, clickUpgradeBtn: function (e) { Zf.trace("clickedug: " + Ue.string(e.currentTarget), { fileName: "BTD4.hx", lineNumber: 3746, className: "BTD4", methodName: "clickUpgradeBtn", }); var t = this.currentTower.type.length; this.toweroptions.Refresh(); var s = e.target.parent.upgrade.substr(t, 1); this.hasStorm && "beacon" == this.currentTower.type && "4" == s ? this.Output("You can only ever have 1 Super Monkey Storm Beacon.") : this.currentTower.upgradeNum >= s ? Zf.trace("already bought this upgrade for this tower.", { fileName: "BTD4.hx", lineNumber: 3757, className: "BTD4", methodName: "clickUpgradeBtn", }) : (Zf.trace("buy it: " + Ue.string(e.target.parent.upgrade), { fileName: "BTD4.hx", lineNumber: 3760, className: "BTD4", methodName: "clickUpgradeBtn", }), this.CanAfford(e.target.parent.upgrade) && (Zf.trace("buy it: " + Ue.string(e.target.parent.upgrade), { fileName: "BTD4.hx", lineNumber: 3763, className: "BTD4", methodName: "clickUpgradeBtn", }), this.GetUpgrade(e.target.parent.upgrade), this.toweroptions.Refresh())); }, ABTL: function (e, t) { var s = null; null == this.levelsArray[e - 1] && ((s = []), (this.levelsArray[e - 1] = s)), this.levelsArray[e - 1].push(t); }, gotoNK: function (e) { var t = new Py("http://www.ninjakiwi.com"); Zm.getURL(t, "_blank"); }, showRect: function (e) { this.set_x(this.__transform.tx - 1e3), this.bigbadrect.set_x(this.bigbadrect.__transform.tx + 1e3), this.resolve("fps_mc").set_x( this.resolve("fps_mc").__transform.tx + 1e3 ); }, CreateNewTower: function (e, t, s, n) { null == n && (n = !1); var i = null, r = 0; switch (e) { case "beacon": (r = this.GetPrice(this.COST_BEACON)), (i = new h_()); break; case "bomb": (r = this.GetPrice(this.COST_BOMB)), (i = new Lh()); break; case "boomerang": (r = this.GetPrice(this.COST_BOOMERANG)), (i = new Fh()); break; case "dart": (r = this.GetPrice(this.COST_DART)), (i = new Uh()); break; case "gluetower": (r = this.GetPrice(this.COST_GLUETOWER)), (i = new Jh()); break; case "ice": (r = this.GetPrice(this.COST_ICE)), (i = new s_()); break; case "money": (r = this.GetPrice(this.COST_MONEYTOWER)), (i = new bh()); break; case "monkeyace": (r = this.GetPrice(this.COST_PLANE)), (i = new l_()); break; case "mortar": (r = this.GetPrice(this.COST_MORTAR)), (i = new d_()); break; case "ship": (r = this.GetPrice(this.COST_SHIP)), (i = new m_()); break; case "spikeopult": throw new Mp(""); case "super": (r = this.GetPrice(this.COST_SUPER)), (i = new S_()); break; case "tack": (r = this.GetPrice(this.COST_TACK)), (i = new E_()); break; case "wizard": (r = this.GetPrice(this.COST_WIZARD)), (i = new __()); } if ((n && (r = 0), r > this.money.get_value())) return null; n || this.towerPlaceSnd.play(), this.money.set_value(this.money.get_value() - r), this.UpdateMoney(); var o = this.towerholder; return ( o.addChildAt(i, o.__children._length), i.set_x(t), i.set_y(s), (i.type = e), (i.game = this), i.Init(n), this.towerlist.push(i), n ? i : null ); }, UpdateBullets: function () { for (var e = 0; e < this.bulletlist.length; ) this.bulletlist[e].Update(), ++e; }, BuildLevelHints: function () { (this.levelHints[0] = ""), (this.levelHints[1] = "I really should make level 1 harder. Has anyone ever leaked a bloon on level 1?"), (this.levelHints[2] = "Once you have unlocked a tower type, you won't ever need to unlock it again."), (this.levelHints[3] = "Your career progress is saved every time you pass a round."), (this.levelHints[4] = "RBE means Red Bloon Equivalent and tells you how many bloons you will have to pop in the current round."), (this.levelHints[5] = "You can save your game at the end of any round. This feature requires a MochiGames account. It's fast, easy and free."), (this.levelHints[6] = "Target priority First means the tower will target whatever bloon has traveled the furthest"), (this.levelHints[7] = "The Pop Count under the tower name is how many bloons that thing has popped."), (this.levelHints[8] = "Target priority Last means the tower will target whatever bloon has traveled the least distance"), (this.levelHints[9] = "Road spikes are good for getting those bloons that slip through your defenses."), (this.levelHints[10] = "To recap, yellows spawn greens, that spawn blues, that spawn reds. Yellows move very fast."), (this.levelHints[11] = ""), (this.levelHints[12] = "Target priority Strong means the tower will target the highest ranked bloon it can reach."), (this.levelHints[13] = "Target priority Weak means the tower will target the lowest ranked bloon in its attack radius."), (this.levelHints[14] = "Pink bloons are even bigger than yellows because you guessed it... they contain a yellow."), (this.levelHints[15] = "The coveted fourth upgrade for each tower type is extremely powerful. Each one needs to be unlocked before use."), (this.levelHints[16] = ""), (this.levelHints[17] = "80 greens."), (this.levelHints[18] = ""), (this.levelHints[19] = ""), (this.levelHints[20] = "Where there are multiple paths for bloons, they will choose one at random."), (this.levelHints[21] = ""), (this.levelHints[22] = "Monkey glue is good on levels with multiple paths - you can split the oncoming streams."), (this.levelHints[23] = "A Camo bloon is coming next level. Camo bloons cannot be targeted by towers that cannot detect them. Use spikes if you need."), (this.levelHints[24] = "Zebra bloons contain 1 black and 1 white bloon - and they are immune to bombs and ice!"), (this.levelHints[25] = ""), (this.levelHints[26] = "You cannot place normal towers onto water. You have to use something that floats..."), (this.levelHints[27] = "Lead bloons move slowly but are immune to anything sharp. You need something firey or explosive to crack them open."), (this.levelHints[28] = "In BTD4, every tower type has 4 sequential upgrades. The fourth upgrade is extra powerful."), (this.levelHints[29] = "Black bloons are immune to bombs, white ones are immune to freezing."), (this.levelHints[30] = "Did you know the bomb tower missile upgrade also gives a slight fire rate increase?"), (this.levelHints[31] = ""), (this.levelHints[32] = "Lead bloons are too heavy to be affected by Tornado magic!"), (this.levelHints[33] = ""), (this.levelHints[34] = "At the end of the next round are 3 rainbow bloons. They contain 2 Zebra bloons, enjoy."), (this.levelHints[35] = ""), (this.levelHints[36] = ""), (this.levelHints[37] = "Monkey Aces are best suited to more spread out tracks where they can inflict the most poppage."), (this.levelHints[38] = ""), (this.levelHints[39] = "Ceramic bloons take several shots to destroy - then when you do you are greeted by 2 rainbows. Also glue cannot slow them down!"), (this.levelHints[40] = "Monkey Buccaneer is a powerful mid-level tower for a good price. However they can only be placed in water."), (this.levelHints[41] = ""), (this.levelHints[42] = ""), (this.levelHints[43] = "Browns, leads, whites. Don't you hate pesky lead bloons?"), (this.levelHints[44] = ""), (this.levelHints[45] = ""), (this.levelHints[46] = "Did you enjoy your old friend the M.O.A.B? You didn't think we'd gotten rid of it did you?"), (this.levelHints[47] = "Wizard's whirlwind and tempest tornado spells will thaw bloons and blow the glue off - so position these carefully!"), (this.levelHints[48] = "Spend your money wisely, you get less after round 50 and even less again after 60."), (this.levelHints[49] = "Level 50 coming up, good luck."), (this.levelHints[50] = ""), (this.levelHints[51] = "Sometimes more towers with less upgrades are better, sometimes less towers with more upgrades are better, it's up to you to decide."), (this.levelHints[52] = ""), (this.levelHints[53] = "Banana Farms can be a good long term investment. The earlier in the game you buy them the better their payoff will be."), (this.levelHints[54] = ""), (this.levelHints[55] = "Every time a baby laughs or a lamb frollicks, a rainbow appears. In this case, 120 will appear."), (this.levelHints[56] = "BTD Science 101 - of all towers in the game, only the mortar with bloon buster upgrade can strip more than 1 layer of bloon at a time."), (this.levelHints[57] = ""), (this.levelHints[58] = "If you manage to beat level " + this.max_level + ", you can opt to play on in 'free play' mode until you run out of lives."), (this.levelHints[59] = "The B.F.B. The biggest and most feared bloon of all. All I can say is you had better be ready..."), (this.levelHints[60] = ""), (this.levelHints[61] = ""), (this.levelHints[62] = "You cannot save your game once you start playing free play mode."), (this.levelHints[63] = ""), (this.levelHints[64] = "Eight. Count them."), (this.levelHints[65] = ""), (this.levelHints[66] = "B.F.B stands for Brutal Floating Behemoth. What you were thinking?"), (this.levelHints[67] = ""), (this.levelHints[68] = "100 brown bloons heading down. If you have your defenses well placed this should give you some decent cash. If not, sorry."), (this.levelHints[69] = ""), (this.levelHints[70] = "You might think that the game is lagging a bit by now, but it's really your mind speeding up. Think of it like bullet-time in The Matrix."), (this.levelHints[71] = ""), (this.levelHints[72] = ""), (this.levelHints[73] = ""), (this.levelHints[74] = "This is the true final level. You know it's going to be all B.F.Bs and M.O.A.Bs right?"); }, UpdateMedals: function () { for (var e = 1; e < 5; ) { var t = De.field(this.mainmenu.normaltab, "medal" + e); null == De.field(this.userProfile.data, "bronze" + e) && null == De.field(this.userProfile.data, "silver" + e) && null == De.field(this.userProfile.data, "gold" + e) && t.gotoAndStop(1), null != De.field(this.userProfile.data, "bronze" + e) && t.gotoAndStop(2), null != De.field(this.userProfile.data, "silver" + e) && t.gotoAndStop(3), null != De.field(this.userProfile.data, "gold" + e) && t.gotoAndStop(4), ++e; } for (e = 6; e < 13; ) { var s = De.field(this.mainmenu.normaltab, "medal" + e); null == De.field(this.userProfile.data, "bronze" + e) && null == De.field(this.userProfile.data, "silver" + e) && null == De.field(this.userProfile.data, "gold" + e) && s.gotoAndStop(1), null != De.field(this.userProfile.data, "bronze" + e) && s.gotoAndStop(2), null != De.field(this.userProfile.data, "silver" + e) && s.gotoAndStop(3), null != De.field(this.userProfile.data, "gold" + e) && s.gotoAndStop(4), (e = (e + 6) | 0); } for (e = 5; e < 14; ) { if (6 != e && 12 != e) { var n = De.field(this.mainmenu.premiumtab, "medal" + e); null == De.field(this.userProfile.data, "bronze" + e) && null == De.field(this.userProfile.data, "silver" + e) && null == De.field(this.userProfile.data, "gold" + e) && n.gotoAndStop(1), null != De.field(this.userProfile.data, "bronze" + e) && n.gotoAndStop(2), null != De.field(this.userProfile.data, "silver" + e) && n.gotoAndStop(3), null != De.field(this.userProfile.data, "gold" + e) && n.gotoAndStop(4); } ++e; } }, endLoseGame: function () { this.clearOutStuff(), this.mainmenu.set_visible(!0), this.gotoAndPlay("main"); }, DisableOptions: function () { this.toweroptions.set_visible(!1); }, fastForward: function (e) { Zf.trace("set frame rate to 120", { fileName: "BTD4.hx", lineNumber: 4053, className: "BTD4", methodName: "fastForward", }), this.stage.set_frameRate(120); }, OnClick: function (e) { var t = 0, s = NaN, n = NaN, i = NaN, r = NaN; if ( (0 == e.buttonDown && this.ingame && this.DeselectCurrent(), !(540 < this.get_mouseX() || 540 < this.get_mouseY())) ) if ( (Zf.trace("on click: " + this.currentTool, { fileName: "BTD4.hx", lineNumber: 4072, className: "BTD4", methodName: "OnClick", }), "none" != this.currentTool) ) { if ( 1 == Lp.__cast( this.towerplace.resolve("radiusmc"), u ).get_currentFrame() ) if ( "spikes" != this.currentTool && "glue" != this.currentTool && "pineapple" != this.currentTool ) this.CreateNewTower( this.currentTool, this.get_mouseX(), this.get_mouseY() ); else { if ( ((t = 0), "spikes" == this.currentTool && (t = this.GetPrice(this.COST_SPIKES)), "glue" == this.currentTool && (t = this.GetPrice(this.COST_GLUE)), "pineapple" == this.currentTool && (t = this.GetPrice(this.COST_PINEAPPLE)), t > this.money.get_value()) ) return void this.Output("not enough money."); this.money.set_value(this.money.get_value() - t), this.UpdateMoney(), this.ShootBullet(null, null); } } else this.haveCurTower && "mortar" == this.currentTower.type && this.mortarAim ? (this.currentTower.mortaraim.set_x( this.get_mouseX() - this.currentTower.__transform.tx ), this.currentTower.mortaraim.set_y( this.get_mouseY() - this.currentTower.__transform.ty ), (s = this.get_mouseX() - this.currentTower.__transform.tx), (n = this.get_mouseY() - this.currentTower.__transform.ty), (s /= i = Math.sqrt(s * s + n * n)), (n /= i), (r = Math.atan2(n, s)), (r = (180 / Math.PI) * r), this.currentTower.inner.set_rotation(r + 90), (this.currentTower.innerRotation = this.currentTower.inner.__rotation), (this.mortarAim = !1)) : this.DeselectCurrent(); }, RemoveBullet: function (e) { for (var t = 0; t < this.bulletlist.length; ) { if (e == this.bulletlist[t]) return ( this.bulletlist.splice(t, 1), this.bulletholder.removeChild(e), void (e = null) ); ++t; } }, GetNextLevelHint: function () { return this.curLevel >= this.levelHints.length ? "" : null != this.levelHints[this.curLevel] ? this.levelHints[this.curLevel] : ""; }, GetUpgradeCost: function (e) { switch (this.currentTower.type + Ue.string(e)) { case "beacon1": return this.GetPrice(this.COST_BEACON_RANGE_UPGRADE); case "beacon2": return this.GetPrice(this.COST_BEACON_DRUMS_UPGRADE); case "beacon3": return this.GetPrice(this.COST_BEACON_SEEINVIS_UPGRADE); case "beacon4": return this.GetPrice(this.COST_BEACON_STORM_UPGRADE); case "bomb1": return this.GetPrice(this.COST_BOMB_SIZE_UPGRADE); case "bomb2": return this.GetPrice(this.COST_BOMB_RANGE_UPGRADE); case "bomb3": return this.GetPrice(this.COST_BOMB_MISSILE_UPGRADE); case "bomb4": return this.GetPrice(this.COST_BOMB_MOABBUSTER_UPGRADE); case "boomerang1": return this.GetPrice(this.COST_BOOMERANG_PIERCE_UPGRADE); case "boomerang2": return this.GetPrice(this.COST_BOOMERANG_SONIC_UPGRADE); case "boomerang3": return this.GetPrice(this.COST_BOOMERANG_GLAIVE_UPGRADE); case "boomerang4": return this.GetPrice(this.COST_BOOMERANG_SABRE_UPGRADE); case "dart1": return this.GetPrice(this.COST_DART_PIERCE_UPGRADE); case "dart2": return this.GetPrice(this.COST_DART_RANGE_UPGRADE); case "dart3": return this.GetPrice(this.COST_DART_SPIKE_UPGRADE); case "dart4": return this.GetPrice(this.COST_DART_TRIPLE_UPGRADE); case "gluetower1": return this.GetPrice(this.COST_GLUE_STICKY_UPGRADE); case "gluetower2": return this.GetPrice(this.COST_GLUE_SOAK_UPGRADE); case "gluetower3": return this.GetPrice(this.COST_GLUE_CORROSIVE_UPGRADE); case "gluetower4": return this.GetPrice(this.COST_GLUE_SPLATTER_UPGRADE); case "ice1": return this.GetPrice(this.COST_ICE_ENHANCE_UPGRADE); case "ice2": return this.GetPrice(this.COST_ICE_PERMAFROST_UPGRADE); case "ice3": return this.GetPrice(this.COST_ICE_SNAP_UPGRADE); case "ice4": return this.GetPrice(this.COST_ICE_AURA_UPGRADE); case "money1": return this.GetPrice(this.COST_MONEY_MORENANAS_UPGRADE); case "money2": return this.GetPrice(this.COST_MONEY_PLANTATION_UPGRADE); case "money3": return this.GetPrice(this.COST_MONEY_REPUBLIC_UPGRADE); case "money4": return this.GetPrice(this.COST_MONEY_BRF_UPGRADE); case "monkeyace1": return this.GetPrice(this.COST_PLANE_PINEAPPLE_UPGRADE); case "monkeyace2": return this.GetPrice(this.COST_PLANE_SPY_UPGRADE); case "monkeyace3": return this.GetPrice(this.COST_PLANE_RATE_UPGRADE); case "monkeyace4": return this.GetPrice(this.COST_PLANE_DARTSTORM_UPGRADE); case "mortar1": return this.GetPrice(this.COST_MORTAR_ACCURACY_UPGRADE); case "mortar2": return this.GetPrice(this.COST_MORTAR_RATE_UPGRADE); case "mortar3": return this.GetPrice(this.COST_MORTAR_BLOONBUSTER_UPGRADE); case "mortar4": return this.GetPrice(this.COST_MORTAR_BATTERY_UPGRADE); case "ship1": return this.GetPrice(this.COST_SHIP_GRAPESHOT_UPGRADE); case "ship2": return this.GetPrice(this.COST_SHIP_CROWSNEST_UPGRADE); case "ship3": return this.GetPrice(this.COST_SHIP_RANGE_UPGRADE); case "ship4": return this.GetPrice(this.COST_SHIP_BATTLESHIP_UPGRADE); case "spikeopult1": case "spikeopult2": case "spikeopult3": case "spikeopult4": throw new Mp(""); case "super1": return this.GetPrice(this.COST_SUPER_RANGE_UPGRADE); case "super2": return this.GetPrice(this.COST_SUPER_LASER_UPGRADE); case "super3": return this.GetPrice(this.COST_SUPER_PLASMA_UPGRADE); case "super4": return this.GetPrice(this.COST_SUPER_SUNGOD_UPGRADE); case "tack1": return this.GetPrice(this.COST_TACK_RATE_UPGRADE); case "tack2": return this.GetPrice(this.COST_TACK_RANGE_UPGRADE); case "tack3": return this.GetPrice(this.COST_TACK_BLADE_UPGRADE); case "tack4": return this.GetPrice(this.COST_TACK_FIRE_UPGRADE); case "wizard1": return this.GetPrice(this.COST_WIZARD_INTENSESHOT_UPGRADE); case "wizard2": return this.GetPrice(this.COST_WIZARD_FIREBALL_UPGRADE); case "wizard3": return this.GetPrice(this.COST_WIZARD_TORNADO_UPGRADE); case "wizard4": return this.GetPrice(this.COST_WIZARD_TEMPEST_UPGRADE); default: return null; } }, startMusic: function () { var e = null; null != this.musChannel || this.userProfile.data.musicMute || ((this.musChannel = this.music.play(0, 9999)), ((e = new vy(1, 0)).volume = 0.3), this.musChannel.set_soundTransform(e)); }, musToggle: function (e) { 1 == Lp.__cast(this.output.resolve("sndbtn"), u).get_currentFrame() && (1 == Lp.__cast(this.output.resolve("musbtn"), u).get_currentFrame() ? (this.userProfile.data.musicMute = !0) : (this.userProfile.data.musicMute = !1), Lp.__cast(this.output.resolve("musbtn"), u).play()); }, doRightMouse: function (e) { this.DeselectCurrent(); }, saveGame: function () { var e = null; this.DeselectCurrent(), Zf.trace("save game function", { fileName: "BTD4.hx", lineNumber: 4329, className: "BTD4", methodName: "saveGame", }); for (var t = [], s = 0, n = this.towerlist; s < n.length; ) { var i = n[s]; ++s, ((e = {}).type = i.type), (e.spentonme = i.spentonme), (e.popcount = i.popcount), (e.AImode = i.AImode), (e.upgradeNum = i.upgradeNum), (e.x = i.x), (e.y = i.y), "mortar" == i.type && ((e.aimx = i.mortaraim.x), (e.aimy = i.mortaraim.y)), "monkeyace" == i.type && ((e.framenum = i.inner.currentFrame), Zf.trace("save monkey ace: " + Ue.string(i.inner.currentFrame), { fileName: "BTD4.hx", lineNumber: 4349, className: "BTD4", methodName: "saveGame", })), t.push(e); } (this.savedGameObj = {}), (this.savedGameObj.curLevel = this.curLevel), (this.savedGameObj.money = this.money.get_value()), (this.savedGameObj.trackNum = this.trackNum), (this.savedGameObj.diff = this.diff), (this.savedGameObj.lives = this.lives.get_value()), (this.savedGameObj.gameMode = this.gameMode), (this.savedGameObj.towerdata = t), (this.savedGameObj.doubleCash = this.doubleCash), this.saveGameBox.gotoAndStop(2); }, showItemStore: function (e) { var t = 0; Zf.trace("show store for: " + e, { fileName: "BTD4.hx", lineNumber: 4369, className: "BTD4", methodName: "showItemStore", }), -1 != e.indexOf("track") && "trackpack" != e && ((t = Ue.parseInt(e.substring(5))), this.trackPreviewmc.gotoAndStop(t), this.trackPreviewmc.set_visible(!0)); for (var s = 0, n = De.fields(this.mochiIds); s < n.length; ) { var i = n[s]; ++s; De.field(this.mochiIds, null == i ? "null" : "" + i); } }, ClearTowers: function () { var e = null; if (null != this.towerlist) for (; 0 < this.towerlist.length; ) (e = this.towerlist.shift()), this.towerholder.removeChild(e), (e = null); }, SelectTower: function (e, t) { null == t && (t = !1), Zf.trace("select a tower: " + Ue.string(e), { fileName: "BTD4.hx", lineNumber: 4404, className: "BTD4", methodName: "SelectTower", customParams: [this.currentTower, t], }), this.toweroptions.upgrade_group.set_x(208), this.toweroptions.upgrade_group.set_x(208 - 232 * e.upgradeNum), this.DeselectCurrent(), (this.currentTower = e), (this.haveCurTower = !0), this.currentTower.radiusmc.set_visible(!0), Lp.__cast(this.toweroptions.towername_txt, Sa).set_text( "" + this.currentTower.towerName ), Lp.__cast(this.toweroptions.towerlevel_txt, Sa).set_text( "" + this.currentTower.upgradeNum + 1 ), this.toweroptions.Refresh(), "monkeyace" == this.currentTower.type ? this.towerholder.setChildIndex( this.currentTower, this.towerholder.__children._length - 1 ) : this.towerholder.setChildIndex(this.currentTower, 0), this.toweroptions.targpriority.setAIModeDo(this.currentTower.AImode), Lp.__cast( this.toweroptions.popcount_mc.resolve("popcount_txt"), Sa ).set_text(Ue.string(this.currentTower.popcount)), "beacon" == this.currentTower.type || "money" == this.currentTower.type || "ice" == this.currentTower.type || "mortar" == this.currentTower.type || "tack" == this.currentTower.type || "monkeyace" == this.currentTower.type ? (this.toweroptions.targpriority.set_visible(!1), "beacon" == this.currentTower.type || "money" == this.currentTower.type ? this.toweroptions.popcount_mc.set_visible(!1) : this.toweroptions.popcount_mc.set_visible(!0)) : (this.toweroptions.targpriority.set_visible(!0), this.toweroptions.popcount_mc.set_visible(!0)), "mortar" == this.currentTower.type && ((this.mortarAim = !0), this.currentTower.showMortatAim()); }, clickedBoosterAd: function (e) { var t = "doublecash"; switch (e) { case 1: t = "doublecash"; break; case 2: t = "doublerang"; break; case 3: t = "explosivedart"; break; case 4: t = "crystalball"; break; case 5: t = "dreadnaught"; break; case 6: t = "digitalamplify"; break; case 7: t = "monkeytycoon"; break; case 8: t = "healthynanas"; } this.showItemStore(t); }, ClearBalloons: function () { if (null != this.bloons) for (var e = 0; e < this.bloons.length; ) (this.bloons[e].deleteMe = !0), ++e; }, EnableOptions: function () { this.toweroptions.set_visible(!0), Lp.__cast( this.toweroptions.sellTowerBtn.resolve("sellfor_txt"), Sa ).set_text( "" + Math.floor(this.SELL_RATE * this.currentTower.spentonme) ); }, SetDiff: function (e) { (this.diff = e), "easy" == this.diff && (this.lives.set_value(this.MAX_LIVES_EASY), (this.costmult = this.COST_MULT_EASY), (this.max_level = this.MAX_LEVEL_EASY), (this.globSpeedMod = 0)), "medium" == this.diff && (this.lives.set_value(this.MAX_LIVES_MEDIUM), (this.max_level = this.MAX_LEVEL_MEDIUM), (this.costmult = this.COST_MULT_MED), (this.globSpeedMod = 0.1)), "hard" == this.diff && (this.lives.set_value(this.MAX_LIVES_HARD), (this.max_level = this.MAX_LEVEL_HARD), (this.costmult = this.COST_MULT_HARD), (this.globSpeedMod = 0.25)), Lp.__cast( Lp.__cast(this.roundinfo_mc.resolve("lives_txt"), Sa), Sa ).set_text("" + this.lives.get_value()), Lp.__cast(this.output.resolve("diff_txt"), Sa).set_text( this.diff.toUpperCase() ), Lp.__cast( Lp.__cast(this.output.resolve("roundnum_txt"), Sa), Sa ).set_text("1 of " + Ue.string(this.max_level)); }, EndLevel: function () { var e = 0, t = 0; this.userProfile.data.userRank < 16 && this.DeselectCurrent(), (this.ingame = !1), Zf.trace("You win", { fileName: "BTD4.hx", lineNumber: 4533, className: "BTD4", methodName: "EndLevel", }), this.ClearBullets(), this.ClearBalloons(), this.checkRank(), this.doXPBar(), this.hasStorm && 1 != Lp.__cast( this.toweroptions.upgrade_group .resolve("monkeystormbtn") .resolve("cooldown_mc"), u ).get_currentFrame() && Lp.__cast( this.toweroptions.upgrade_group .resolve("monkeystormbtn") .resolve("cooldown_mc"), u ).stop(), null != this.userProfile && this.userProfile.data && this.userProfile.data.userRank && Lp.__cast(this.output.resolve("myrank_txt"), Sa).set_text( "" + Ue.string(this.userProfile.data.userRank) ), this.userProfile.flush(); var s = {}; if ( ((s.rank = this.userProfile.data.userRank), (s.xp = this.userProfile.data.experience), this.curLevel != this.max_level) ) { this.showStuff(), (e = 99 + this.curLevel); for (var n = (t = 0), i = this.towerlist; n < i.length; ) { var r = i[n]; ++n, "money" == r.type && (Lp.__cast(r.moneygain.inner.moneygain_txt, Sa).set_text( "+" + Ue.string(r.income) ), r.moneygain.gotoAndPlay(3), (e = (e + r.income) | 0), 1 == De.field(this.mochiBoosters, "healthybananas") && (t = (t + (r.upgradeNum + 1)) | 0)); } this.lives.set_value(this.lives.get_value() + t), this.money.set_value(this.money.get_value() + e), this.UpdateMoney(), this.Output( "Round " + this.curLevel + " passed. " + e + " money awarded. \n" + this.GetNextLevelHint() ), this.curLevel > this.max_level && this.savegame_btn.set_visible(!1); } else this.curLevel == this.max_level && this.GameOver(!0); }, buildTrack: function () { var e = !1, t = 0, s = null, n = null, i = null, r = null, o = 0, a = null; for (e = !1, t = 0; t < this.playarea.__children._length; ) { if ( ((n = this.playarea.getChildAt(t)), Zf.trace("here: " + t, { fileName: "BTD4.hx", lineNumber: 4605, className: "BTD4", methodName: "buildTrack", }), Lp.__instanceof(n, Xh) && !n.used) ) { (i = new xT()), this.tracks.push(i), (e = (i.entry = n).used = !0), Zf.trace("found a track", { fileName: "BTD4.hx", lineNumber: 4613, className: "BTD4", methodName: "buildTrack", }); break; } ++t; } if (!e) return ( Zf.trace("NO START FOUND", { fileName: "BTD4.hx", lineNumber: 4620, className: "BTD4", methodName: "buildTrack", }), !1 ); for (s = i.entry, t = 0; t < this.playarea.__children._length; ) { if ( ((r = this.playarea.getChildAt(t)), Zf.trace("DO IT: " + Ue.string(r), { fileName: "BTD4.hx", lineNumber: 4628, className: "BTD4", methodName: "buildTrack", }), Lp.__instanceof(r, Y) && !r.done) ) { var l = r; if (r.first.hitTestObject(s)) { for (r.done = !0, o = 0; o < r.nodes.length; ) (a = new qm( l.nodes[o].__transform.tx + l.__transform.tx, l.nodes[o].__transform.ty + l.__transform.ty )), i.nodes.push(a), ++o; (s = r.last), (t = -1); } else if (r.last.hitTestObject(s)) { for (r.done = !0, o = (r.nodes.length - 1) | 0; 0 <= o; ) (a = new qm(r.nodes[o].x + r.x, r.nodes[o].y + r.y)), i.nodes.push(a), --o; (s = r.first), (t = -1); } } ++t; } return e; }, clickEndgameBtn: function (e) { this.areyousure.gotoAndPlay("active_"); var t = {}; (t.rank = this.userProfile.data.userRank), (t.xp = this.userProfile.data.experience); }, normalSpeed: function (e) { Zf.trace("set frame rate to 35", { fileName: "BTD4.hx", lineNumber: 4674, className: "BTD4", methodName: "normalSpeed", }), this.stage.set_frameRate(35); }, callMonkeyStorm: function () { this.money.get_value() >= this.GetPrice(this.COST_MONKEYSTORM) && this.ingame && (this.money.set_value( this.money.get_value() - this.GetPrice(this.COST_MONKEYSTORM) ), (this.stormReady = !1), this.monkeystorm.play(), Lp.__cast( this.toweroptions.upgrade_group .resolve("monkeystormbtn") .resolve("cooldown_mc"), u ).gotoAndPlay(2)); }, checkForTowerUnlocks: function (e) { null == e && (e = !1); var t = 0; for (t = 0; t < 31; ) 1 == this.userProfile.data.towerUnlocks[t] && (Zf.trace("i: " + t, { fileName: "BTD4.hx", lineNumber: 4698, className: "BTD4", methodName: "checkForTowerUnlocks", }), this.doTowerUnlock(t, e)), ++t; }, GetPrice: function (e) { var t = NaN; return (t = e * this.costmult), (t /= 5), (5 * (t = Math.round(t))) | 0; }, getTotalRBE: function (e) { var t = 0, s = 0; for (s = t = 0; s < this.levelsArray[e - 1].length; ) (t = (t + this.calcRBE(this.levelsArray[e - 1][s])) | 0), ++s; return t; }, Escaped: function (e) { if (this.ingame) { Zf.trace("-----------------", { fileName: "BTD4.hx", lineNumber: 4734, className: "BTD4", methodName: "Escaped", }); var t = this.calcRBE(e.rank); this.lives.set_value(this.lives.get_value() - t), Lp.__cast(this.roundinfo_mc.resolve("lives_txt"), Sa).set_text( "" + this.lives.get_value() ), this.lives.get_value() < 1 ? (this.lives.set_value(0), Lp.__cast(this.roundinfo_mc.resolve("lives_txt"), Sa).set_text( "" + this.lives.get_value() ), this.GameOver(!1)) : this.numBloons--; } }, showStore: function (e) { throw new Mp(""); }, __class__: a, })); var l = function () {}; ((s.SoundManager = l).__name__ = ["SoundManager"]), (l.aliases = null), (l.addAlias = function (e, t) { null == l.aliases && (l.aliases = new lp()), (l.aliases.h[e] = t); }), (l.process = function (e) { var t = l.playingSoundTable.h[e.soundId]; if ((null == t || t.__isValid || (t = null), e.stop)) null != t && (t.stop(), l.playingSoundTable.remove(e.soundId)); else if (null == t || !e.noMultiple) { var s; s = null != l.aliases && l.aliases.h.hasOwnProperty(e.soundId) ? l.aliases.h[e.soundId] : "" + e.soundId; var n = Wm.getSound("assets/sounds/" + s + ".m4a"); if ( (null == n && (n = Wm.getSound("assets/sounds/" + s + ".wav")), null != n) ) { var i = n.play(e.inPoint, e.loopCount); l.playingSoundTable.h[e.soundId] = i; } } }), (l.stopSound = function (e) { var t = l.playingSoundTable.h[e]; null == t || t.__isValid || (t = null), null != t && (t.stop(), l.playingSoundTable.remove(e)); }), (l.stopAllSounds = function () {}); var h = function () { zt.registerVersions(), (h.instance = this); var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances; h.swfLite = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"]; var r = h.swfLite.root; this.setupClasses(h.swfLite), this.setupFrameScripts(), a.call(this, h.swfLite, r), ke.register(), rT.initialize(); }; ((s.Main = h).__name__ = ["Main"]), (h.instance = null), (h.swfLite = null), (h.__super__ = a), (h.prototype = n(a.prototype, { setupClasses: function (e) { f.setup(e); for (var t = [330, 331, 333, 338, 840], s = 0; s < t.length; ) { var n = t[s]; ++s; var i = e.symbols.h[n]; i.set_cachePrecision(0), i.set_translationCachePrecision(0), i.set_useBitmapCache(!0); } for (var r = e.symbols.iterator(); r.hasNext(); ) { var o = r.next(); if (Lp.__instanceof(o, Va)) { var a = o; a.bounds.width < 64 && a.bounds.height < 64 && (a.set_cachePrecision(0), a.set_translationCachePrecision(0), a.set_useBitmapCache(!0)); } } }, setupFrameScripts: function () {}, __class__: h, })); var _ = function () { var e = Zm.current; e.addChildAt(this, e.__children._length), h.call(this), this.dispatchEvent(new _a("addedToStage", !1, !1)); }; ((s.DocumentClass = _).__name__ = ["DocumentClass"]), (_.__super__ = h), (_.prototype = n(h.prototype, { __class__: _ })); var f = function (e, t) { u.call(this, e, t); }; ((s.As3Symbols = f).__name__ = ["As3Symbols"]), (f.setup = function (e) { var t = e.classes, s = nf; null != NT["bloonstd4_fla.toweroptions_414"] ? t.setReserved("bloonstd4_fla.toweroptions_414", s) : (t.h["bloonstd4_fla.toweroptions_414"] = s); var n = e.classes, i = jd; null != NT["bloonstd4_fla.mainmenu_221"] ? n.setReserved("bloonstd4_fla.mainmenu_221", i) : (n.h["bloonstd4_fla.mainmenu_221"] = i); var r = e.classes, o = Du; null != NT["bloonstd4_fla.btn_easy_206"] ? r.setReserved("bloonstd4_fla.btn_easy_206", o) : (r.h["bloonstd4_fla.btn_easy_206"] = o); var a = e.classes, l = sd; null != NT["bloonstd4_fla.collect_battleship_animouter_188"] ? a.setReserved("bloonstd4_fla.collect_battleship_animouter_188", l) : (a.h["bloonstd4_fla.collect_battleship_animouter_188"] = l); var h = e.classes, _ = Pd; null != NT["bloonstd4_fla.collect_tack_anim_70"] ? h.setReserved("bloonstd4_fla.collect_tack_anim_70", _) : (h.h["bloonstd4_fla.collect_tack_anim_70"] = _); var u = e.classes, d = gc; null != NT["bloonstd4_fla.splatsound_598"] ? u.setReserved("bloonstd4_fla.splatsound_598", d) : (u.h["bloonstd4_fla.splatsound_598"] = d); var c = e.classes, f = kh; null != NT.Boomerang ? c.setReserved("Boomerang", f) : (c.h.Boomerang = f); var p = e.classes, b = bf; null != NT["bloonstd4_fla.upgrade_icons_418"] ? p.setReserved("bloonstd4_fla.upgrade_icons_418", b) : (p.h["bloonstd4_fla.upgrade_icons_418"] = b); var m = e.classes, g = Zu; null != NT["bloonstd4_fla.chooseDiffbox_204"] ? m.setReserved("bloonstd4_fla.chooseDiffbox_204", g) : (m.h["bloonstd4_fla.chooseDiffbox_204"] = g); var w = e.classes, v = Yu; null != NT["bloonstd4_fla.buymorecash_398"] ? w.setReserved("bloonstd4_fla.buymorecash_398", v) : (w.h["bloonstd4_fla.buymorecash_398"] = v); var y = e.classes, T = G_; null != NT.trackPiece_track10b ? y.setReserved("trackPiece_track10b", T) : (y.h.trackPiece_track10b = T); var S = e.classes, x = hf; null != NT["bloonstd4_fla.track19btn_240"] ? S.setReserved("bloonstd4_fla.track19btn_240", x) : (S.h["bloonstd4_fla.track19btn_240"] = x); var E = e.classes, P = yf; null != NT["com.google.analytics.components.Icon"] ? E.setReserved("com.google.analytics.components.Icon", P) : (E.h["com.google.analytics.components.Icon"] = P); var R = e.classes, A = ru; null != NT.trackPiece_track8c ? R.setReserved("trackPiece_track8c", A) : (R.h.trackPiece_track8c = A); var I = e.classes, C = Xh; null != NT.EntryPoint ? I.setReserved("EntryPoint", C) : (I.h.EntryPoint = C); var B = e.classes, D = wh; null != NT.Bloon_10 ? B.setReserved("Bloon_10", D) : (B.h.Bloon_10 = D); var k = e.classes, F = Zc; null != NT["bloonstd4_fla.TowerGFX_tack_tower_inner_73"] ? k.setReserved("bloonstd4_fla.TowerGFX_tack_tower_inner_73", F) : (k.h["bloonstd4_fla.TowerGFX_tack_tower_inner_73"] = F); var M = e.classes, L = cf; null != NT["bloonstd4_fla.track23btn_248"] ? M.setReserved("bloonstd4_fla.track23btn_248", L) : (M.h["bloonstd4_fla.track23btn_248"] = L); var N = e.classes, O = y_; null != NT.SunBeam ? N.setReserved("SunBeam", O) : (N.h.SunBeam = O); var U = e.classes, G = wu; null != NT["bloonstd4_fla.areyousure_539"] ? U.setReserved("bloonstd4_fla.areyousure_539", G) : (U.h["bloonstd4_fla.areyousure_539"] = G); var z = e.classes, X = Ou; null != NT["bloonstd4_fla.btn_med_209"] ? z.setReserved("bloonstd4_fla.btn_med_209", X) : (z.h["bloonstd4_fla.btn_med_209"] = X); var H = e.classes, V = d_; null != NT.MortarTower ? H.setReserved("MortarTower", V) : (H.h.MortarTower = V); var Y = e.classes, W = Pu; null != NT["bloonstd4_fla.btn_ace_388"] ? Y.setReserved("bloonstd4_fla.btn_ace_388", W) : (Y.h["bloonstd4_fla.btn_ace_388"] = W); var j = e.classes, K = oc; null != NT["bloonstd4_fla.pathhitmc_296"] ? j.setReserved("bloonstd4_fla.pathhitmc_296", K) : (j.h["bloonstd4_fla.pathhitmc_296"] = K); var q = e.classes, Z = o_; null != NT.Missile ? q.setReserved("Missile", Z) : (q.h.Missile = Z); var J = e.classes, Q = __; null != NT.MonkeyWizard ? J.setReserved("MonkeyWizard", Q) : (J.h.MonkeyWizard = Q); var $ = e.classes, ee = df; null != NT["bloonstd4_fla.track22btn_246"] ? $.setReserved("bloonstd4_fla.track22btn_246", ee) : ($.h["bloonstd4_fla.track22btn_246"] = ee); var te = e.classes, se = m_; null != NT.Ship ? te.setReserved("Ship", se) : (te.h.Ship = se); var ne = e.classes, ie = Su; null != NT["bloonstd4_fla.bloon12sandbox_32"] ? ne.setReserved("bloonstd4_fla.bloon12sandbox_32", ie) : (ne.h["bloonstd4_fla.bloon12sandbox_32"] = ie); var re = e.classes, oe = Xc; null != NT["bloonstd4_fla.TowerGFX_gluegun_inner_118"] ? re.setReserved("bloonstd4_fla.TowerGFX_gluegun_inner_118", oe) : (re.h["bloonstd4_fla.TowerGFX_gluegun_inner_118"] = oe); var ae = e.classes, le = Cc; null != NT["bloonstd4_fla.TowerGFX_Tower_MortarBattery_Arm_192"] ? ae.setReserved( "bloonstd4_fla.TowerGFX_Tower_MortarBattery_Arm_192", le ) : (ae.h["bloonstd4_fla.TowerGFX_Tower_MortarBattery_Arm_192"] = le); var he = e.classes, _e = Pc; null != NT["bloonstd4_fla.targpriority_507"] ? he.setReserved("bloonstd4_fla.targpriority_507", _e) : (he.h["bloonstd4_fla.targpriority_507"] = _e); var ue = e.classes, de = Th; null != NT.Bloon_13 ? ue.setReserved("Bloon_13", de) : (ue.h.Bloon_13 = de); var ce = e.classes, fe = Yd; null != NT["bloonstd4_fla.losescreen_523"] ? ce.setReserved("bloonstd4_fla.losescreen_523", fe) : (ce.h["bloonstd4_fla.losescreen_523"] = fe); var pe = e.classes, be = rf; null != NT["bloonstd4_fla.towerplace_336"] ? pe.setReserved("bloonstd4_fla.towerplace_336", be) : (pe.h["bloonstd4_fla.towerplace_336"] = be); var me = e.classes, ge = Uh; null != NT.DartMonkey ? me.setReserved("DartMonkey", ge) : (me.h.DartMonkey = ge); var we = e.classes, ve = M_; null != NT.trackPiece5 ? we.setReserved("trackPiece5", ve) : (we.h.trackPiece5 = ve); var ye = e.classes, Te = Eu; null != NT["bloonstd4_fla.bloon2sandbox_11"] ? ye.setReserved("bloonstd4_fla.bloon2sandbox_11", Te) : (ye.h["bloonstd4_fla.bloon2sandbox_11"] = Te); var Se = e.classes, xe = Bc; null != NT["bloonstd4_fla.TowerGFX_Tower_Mortar_Arm_91"] ? Se.setReserved("bloonstd4_fla.TowerGFX_Tower_Mortar_Arm_91", xe) : (Se.h["bloonstd4_fla.TowerGFX_Tower_Mortar_Arm_91"] = xe); var Ee = e.classes, Pe = cu; null != NT.trackPiece_trackant4 ? Ee.setReserved("trackPiece_trackant4", Pe) : (Ee.h.trackPiece_trackant4 = Pe); var Re = e.classes, Ae = qu; null != NT["bloonstd4_fla.CatapultTowerupgrader_768"] ? Re.setReserved("bloonstd4_fla.CatapultTowerupgrader_768", Ae) : (Re.h["bloonstd4_fla.CatapultTowerupgrader_768"] = Ae); var Ie = e.classes, Ce = S_; null != NT.SuperMonkey ? Ie.setReserved("SuperMonkey", Ce) : (Ie.h.SuperMonkey = Ce); var Be = e.classes, De = _d; null != NT["bloonstd4_fla.collect_gluegunner_animouter_116"] ? Be.setReserved("bloonstd4_fla.collect_gluegunner_animouter_116", De) : (Be.h["bloonstd4_fla.collect_gluegunner_animouter_116"] = De); var ke = e.classes, Fe = Ih; null != NT.Bloon_7 ? ke.setReserved("Bloon_7", Fe) : (ke.h.Bloon_7 = Fe); var Me = e.classes, Le = Cu; null != NT["bloonstd4_fla.btn_buccaneer_378"] ? Me.setReserved("bloonstd4_fla.btn_buccaneer_378", Le) : (Me.h["bloonstd4_fla.btn_buccaneer_378"] = Le); var Ne = e.classes, Oe = Zd; null != NT["bloonstd4_fla.menu_bg_tab3_223"] ? Ne.setReserved("bloonstd4_fla.menu_bg_tab3_223", Oe) : (Ne.h["bloonstd4_fla.menu_bg_tab3_223"] = Oe); var Ue = e.classes, Ge = q_; null != NT.trackPiece_track5 ? Ue.setReserved("trackPiece_track5", Ge) : (Ue.h.trackPiece_track5 = Ge); var ze = e.classes, Xe = j_; null != NT.trackPiece_track4 ? ze.setReserved("trackPiece_track4", Xe) : (ze.h.trackPiece_track4 = Xe); var He = e.classes, Ve = Sc; null != NT["bloonstd4_fla.targ_high_512"] ? He.setReserved("bloonstd4_fla.targ_high_512", Ve) : (He.h["bloonstd4_fla.targ_high_512"] = Ve); var Ye = e.classes, We = Iu; null != NT["bloonstd4_fla.btn_boomer_351"] ? Ye.setReserved("bloonstd4_fla.btn_boomer_351", We) : (Ye.h["bloonstd4_fla.btn_boomer_351"] = We); var je = e.classes, Ke = Eh; null != NT.Bloon_3 ? je.setReserved("Bloon_3", Ke) : (je.h.Bloon_3 = Ke); var qe = e.classes, Ze = zh; null != NT.editor_piece2 ? qe.setReserved("editor_piece2", Ze) : (qe.h.editor_piece2 = Ze); var Je = e.classes, Qe = _f; null != NT["bloonstd4_fla.track20btn_244"] ? Je.setReserved("bloonstd4_fla.track20btn_244", Qe) : (Je.h["bloonstd4_fla.track20btn_244"] = Qe); var $e = e.classes, et = nc; null != NT["bloonstd4_fla.mortarbarrel_160"] ? $e.setReserved("bloonstd4_fla.mortarbarrel_160", et) : ($e.h["bloonstd4_fla.mortarbarrel_160"] = et); var tt = e.classes, st = Bd; null != NT["bloonstd4_fla.error_dialog_282"] ? tt.setReserved("bloonstd4_fla.error_dialog_282", st) : (tt.h["bloonstd4_fla.error_dialog_282"] = st); var nt = e.classes, it = ud; null != NT["bloonstd4_fla.collect_gluesplatter_animouter_153"] ? nt.setReserved("bloonstd4_fla.collect_gluesplatter_animouter_153", it) : (nt.h["bloonstd4_fla.collect_gluesplatter_animouter_153"] = it); var rt = e.classes, ot = sf; null != NT["bloonstd4_fla.towerinfo_536"] ? rt.setReserved("bloonstd4_fla.towerinfo_536", ot) : (rt.h["bloonstd4_fla.towerinfo_536"] = ot); var at = e.classes, lt = pd; null != NT["bloonstd4_fla.collect_money_animouter_110"] ? at.setReserved("bloonstd4_fla.collect_money_animouter_110", lt) : (at.h["bloonstd4_fla.collect_money_animouter_110"] = lt); var ht = e.classes, _t = fu; null != NT.trackPiece_trackxa ? ht.setReserved("trackPiece_trackxa", _t) : (ht.h.trackPiece_trackxa = _t); var ut = e.classes, dt = Gc; null != NT["bloonstd4_fla.TowerGFX_gluegun2_inner_696"] ? ut.setReserved("bloonstd4_fla.TowerGFX_gluegun2_inner_696", dt) : (ut.h["bloonstd4_fla.TowerGFX_gluegun2_inner_696"] = dt); var ct = e.classes, ft = pf; null != NT["bloonstd4_fla.upgrade_dart_range_425"] ? ct.setReserved("bloonstd4_fla.upgrade_dart_range_425", ft) : (ct.h["bloonstd4_fla.upgrade_dart_range_425"] = ft); var pt = e.classes, bt = Vu; null != NT["bloonstd4_fla.btn_wizard_393"] ? pt.setReserved("bloonstd4_fla.btn_wizard_393", bt) : (pt.h["bloonstd4_fla.btn_wizard_393"] = bt); var mt = e.classes, gt = jc; null != NT["bloonstd4_fla.TowerGFX_shiparm4_inner_705"] ? mt.setReserved("bloonstd4_fla.TowerGFX_shiparm4_inner_705", gt) : (mt.h["bloonstd4_fla.TowerGFX_shiparm4_inner_705"] = gt); var wt = e.classes, vt = Kc; null != NT["bloonstd4_fla.TowerGFX_shiparm5_inner_189"] ? wt.setReserved("bloonstd4_fla.TowerGFX_shiparm5_inner_189", vt) : (wt.h["bloonstd4_fla.TowerGFX_shiparm5_inner_189"] = vt); var yt = e.classes, Tt = $u; null != NT["bloonstd4_fla.collect_apopalypse_animouter_200"] ? yt.setReserved("bloonstd4_fla.collect_apopalypse_animouter_200", Tt) : (yt.h["bloonstd4_fla.collect_apopalypse_animouter_200"] = Tt); var St = e.classes, xt = Ec; null != NT["bloonstd4_fla.targ_low_513"] ? St.setReserved("bloonstd4_fla.targ_low_513", xt) : (St.h["bloonstd4_fla.targ_low_513"] = xt); var Et = e.classes, Pt = kd; null != NT["bloonstd4_fla.eyes_452"] ? Et.setReserved("bloonstd4_fla.eyes_452", Pt) : (Et.h["bloonstd4_fla.eyes_452"] = Pt); var Rt = e.classes, At = Uc; null != NT["bloonstd4_fla.TowerGFX_fire_tower_inner_144"] ? Rt.setReserved("bloonstd4_fla.TowerGFX_fire_tower_inner_144", At) : (Rt.h["bloonstd4_fla.TowerGFX_fire_tower_inner_144"] = At); var It = e.classes, Ct = Dc; null != NT["bloonstd4_fla.TowerGFX_arm1_60"] ? It.setReserved("bloonstd4_fla.TowerGFX_arm1_60", Ct) : (It.h["bloonstd4_fla.TowerGFX_arm1_60"] = Ct); var Bt = e.classes, Dt = Ku; null != NT["bloonstd4_fla.CatapultTower_760"] ? Bt.setReserved("bloonstd4_fla.CatapultTower_760", Dt) : (Bt.h["bloonstd4_fla.CatapultTower_760"] = Dt); var kt = e.classes, Ft = mu; null != NT.trackPiece_trackxd ? kt.setReserved("trackPiece_trackxd", Ft) : (kt.h.trackPiece_trackxd = Ft); var Mt = e.classes, Lt = qc; null != NT["bloonstd4_fla.TowerGFX_shiparm_inner_137"] ? Mt.setReserved("bloonstd4_fla.TowerGFX_shiparm_inner_137", Lt) : (Mt.h["bloonstd4_fla.TowerGFX_shiparm_inner_137"] = Lt); var Nt = e.classes, Ot = yd; null != NT["bloonstd4_fla.collect_spikepult_animouter_168"] ? Nt.setReserved("bloonstd4_fla.collect_spikepult_animouter_168", Ot) : (Nt.h["bloonstd4_fla.collect_spikepult_animouter_168"] = Ot); var Ut = e.classes, Gt = hd; null != NT["bloonstd4_fla.collect_glue_animouter_108"] ? Ut.setReserved("bloonstd4_fla.collect_glue_animouter_108", Gt) : (Ut.h["bloonstd4_fla.collect_glue_animouter_108"] = Gt); var zt = e.classes, Xt = I_; null != NT.TrackEditor ? zt.setReserved("TrackEditor", Xt) : (zt.h.TrackEditor = Xt); var Ht = e.classes, Vt = Mc; null != NT["bloonstd4_fla.TowerGFX_arm4_187"] ? Ht.setReserved("bloonstd4_fla.TowerGFX_arm4_187", Vt) : (Ht.h["bloonstd4_fla.TowerGFX_arm4_187"] = Vt); var Yt = e.classes, Wt = c_; null != NT.Pathhit ? Yt.setReserved("Pathhit", Wt) : (Yt.h.Pathhit = Wt); var jt = e.classes, Kt = ju; null != NT["bloonstd4_fla.careerrankglow_409"] ? jt.setReserved("bloonstd4_fla.careerrankglow_409", Kt) : (jt.h["bloonstd4_fla.careerrankglow_409"] = Kt); var qt = e.classes, Zt = Nd; null != NT["bloonstd4_fla.generic_explosion_632"] ? qt.setReserved("bloonstd4_fla.generic_explosion_632", Zt) : (qt.h["bloonstd4_fla.generic_explosion_632"] = Zt); var Jt = e.classes, Qt = vc; null != NT["bloonstd4_fla.stockblueinnercopy_492"] ? Jt.setReserved("bloonstd4_fla.stockblueinnercopy_492", Qt) : (Jt.h["bloonstd4_fla.stockblueinnercopy_492"] = Qt); var $t = e.classes, es = Xu; null != NT["bloonstd4_fla.btn_super_357"] ? $t.setReserved("bloonstd4_fla.btn_super_357", es) : ($t.h["bloonstd4_fla.btn_super_357"] = es); var ts = e.classes, ss = C_; null != NT.TrackNode ? ts.setReserved("TrackNode", ss) : (ts.h.TrackNode = ss); var ns = e.classes, is = zc; null != NT["bloonstd4_fla.TowerGFX_gluegun3_inner_155"] ? ns.setReserved("bloonstd4_fla.TowerGFX_gluegun3_inner_155", is) : (ns.h["bloonstd4_fla.TowerGFX_gluegun3_inner_155"] = is); var rs = e.classes, os = K_; null != NT.trackPiece_track4b ? rs.setReserved("trackPiece_track4b", os) : (rs.h.trackPiece_track4b = os); var as = e.classes, ls = Zh; null != NT.Glue ? as.setReserved("Glue", ls) : (as.h.Glue = ls); var hs = e.classes, _s = W_; null != NT.trackPiece_track3b ? hs.setReserved("trackPiece_track3b", _s) : (hs.h.trackPiece_track3b = _s); var us = e.classes, ds = V_; null != NT.trackPiece_track2b ? us.setReserved("trackPiece_track2b", ds) : (us.h.trackPiece_track2b = ds); var cs = e.classes, fs = ic; null != NT["bloonstd4_fla.muteMusic_btn_413"] ? cs.setReserved("bloonstd4_fla.muteMusic_btn_413", fs) : (cs.h["bloonstd4_fla.muteMusic_btn_413"] = fs); var ps = e.classes, bs = i_; null != NT.LightSabre ? ps.setReserved("LightSabre", bs) : (ps.h.LightSabre = bs); var ms = e.classes, gs = T_; null != NT.SuperDart ? ms.setReserved("SuperDart", gs) : (ms.h.SuperDart = gs); var ws = e.classes, vs = Jc; null != NT["bloonstd4_fla.TowerGFX_wizarm2_801"] ? ws.setReserved("bloonstd4_fla.TowerGFX_wizarm2_801", vs) : (ws.h["bloonstd4_fla.TowerGFX_wizarm2_801"] = vs); var ys = e.classes, Ts = Rc; null != NT["bloonstd4_fla.TowerGFX_Tower_Dart_Catapult_689"] ? ys.setReserved("bloonstd4_fla.TowerGFX_Tower_Dart_Catapult_689", Ts) : (ys.h["bloonstd4_fla.TowerGFX_Tower_Dart_Catapult_689"] = Ts); var Ss = e.classes, xs = Od; null != NT["bloonstd4_fla.glue12_620"] ? Ss.setReserved("bloonstd4_fla.glue12_620", xs) : (Ss.h["bloonstd4_fla.glue12_620"] = xs); var Es = e.classes, Ps = Xd; null != NT["bloonstd4_fla.intro_285"] ? Es.setReserved("bloonstd4_fla.intro_285", Ps) : (Es.h["bloonstd4_fla.intro_285"] = Ps); var Rs = e.classes, As = v_; null != NT.SpikeyBalls ? Rs.setReserved("SpikeyBalls", As) : (Rs.h.SpikeyBalls = As); var Is = e.classes, Cs = Fc; null != NT["bloonstd4_fla.TowerGFX_arm3_722"] ? Is.setReserved("bloonstd4_fla.TowerGFX_arm3_722", Cs) : (Is.h["bloonstd4_fla.TowerGFX_arm3_722"] = Cs); var Bs = e.classes, Ds = eu; null != NT.trackPiece_track6c ? Bs.setReserved("trackPiece_track6c", Ds) : (Bs.h.trackPiece_track6c = Ds); var ks = e.classes, Fs = E_; null != NT.TackTower ? ks.setReserved("TackTower", Fs) : (ks.h.TackTower = Fs); var Ms = e.classes, Ls = k_; null != NT.trackPiece3 ? Ms.setReserved("trackPiece3", Ls) : (Ms.h.trackPiece3 = Ls); var Ns = e.classes, Os = J_; null != NT.trackPiece_track5c ? Ns.setReserved("trackPiece_track5c", Os) : (Ns.h.trackPiece_track5c = Os); var Us = e.classes, Gs = n_; null != NT.Laser ? Us.setReserved("Laser", Gs) : (Us.h.Laser = Gs); var zs = e.classes, Xs = Wc; null != NT["bloonstd4_fla.TowerGFX_shiparm3_inner_703"] ? zs.setReserved("bloonstd4_fla.TowerGFX_shiparm3_inner_703", Xs) : (zs.h["bloonstd4_fla.TowerGFX_shiparm3_inner_703"] = Xs); var Hs = e.classes, Vs = Mh; null != NT.Bullet ? Hs.setReserved("Bullet", Vs) : (Hs.h.Bullet = Vs); var Ys = e.classes, Ws = Kd; null != NT["bloonstd4_fla.medalz_546"] ? Ys.setReserved("bloonstd4_fla.medalz_546", Ws) : (Ys.h["bloonstd4_fla.medalz_546"] = Ws); var js = e.classes, Ks = p_; null != NT.Plasma ? js.setReserved("Plasma", Ks) : (js.h.Plasma = Ks); var qs = e.classes, Zs = bc; null != NT["bloonstd4_fla.spikeyballanim_669"] ? qs.setReserved("bloonstd4_fla.spikeyballanim_669", Zs) : (qs.h["bloonstd4_fla.spikeyballanim_669"] = Zs); var Js = e.classes, Qs = Bu; null != NT["bloonstd4_fla.btn_dart_344"] ? Js.setReserved("bloonstd4_fla.btn_dart_344", Qs) : (Js.h["bloonstd4_fla.btn_dart_344"] = Qs); var $s = e.classes, en = Qh; null != NT.GlueSplat ? $s.setReserved("GlueSplat", en) : ($s.h.GlueSplat = en); var tn = e.classes, sn = Fh; null != NT.BoomerangMonkey ? tn.setReserved("BoomerangMonkey", sn) : (tn.h.BoomerangMonkey = sn); var nn = e.classes, rn = z_; null != NT.trackPiece_track12 ? nn.setReserved("trackPiece_track12", rn) : (nn.h.trackPiece_track12 = rn); var on = e.classes, an = $d; null != NT["bloonstd4_fla.metalclinksound_597"] ? on.setReserved("bloonstd4_fla.metalclinksound_597", an) : (on.h["bloonstd4_fla.metalclinksound_597"] = an); var ln = e.classes, hn = Fd; null != NT["bloonstd4_fla.freeze12_619"] ? ln.setReserved("bloonstd4_fla.freeze12_619", hn) : (ln.h["bloonstd4_fla.freeze12_619"] = hn); var _n = e.classes, un = Au; null != NT["bloonstd4_fla.btn_bomb_354"] ? _n.setReserved("bloonstd4_fla.btn_bomb_354", un) : (_n.h["bloonstd4_fla.btn_bomb_354"] = un); var dn = e.classes, cn = e_; null != NT.Grape ? dn.setReserved("Grape", cn) : (dn.h.Grape = cn); var fn = e.classes, pn = uu; null != NT.trackPiece_trackant2 ? fn.setReserved("trackPiece_trackant2", pn) : (fn.h.trackPiece_trackant2 = pn); var bn = e.classes, mn = f_; null != NT.Pineapple ? bn.setReserved("Pineapple", mn) : (bn.h.Pineapple = mn); var gn = e.classes, wn = ou; null != NT.trackPiece_track8d ? gn.setReserved("trackPiece_track8d", wn) : (gn.h.trackPiece_track8d = wn); var vn = e.classes, yn = Qc; null != NT["bloonstd4_fla.TowerGFX_wizarm3_805"] ? vn.setReserved("bloonstd4_fla.TowerGFX_wizarm3_805", yn) : (vn.h["bloonstd4_fla.TowerGFX_wizarm3_805"] = yn); var Tn = e.classes, Sn = Wu; null != NT["bloonstd4_fla.buymorelives_402"] ? Tn.setReserved("bloonstd4_fla.buymorelives_402", Sn) : (Tn.h["bloonstd4_fla.buymorelives_402"] = Sn); var xn = e.classes, En = Kh; null != NT.GiantDart ? xn.setReserved("GiantDart", En) : (xn.h.GiantDart = En); var Pn = e.classes, Rn = Sd; null != NT["bloonstd4_fla.collect_storm_animouter_179"] ? Pn.setReserved("bloonstd4_fla.collect_storm_animouter_179", Rn) : (Pn.h["bloonstd4_fla.collect_storm_animouter_179"] = Rn); var An = e.classes, In = Vd; null != NT["bloonstd4_fla.losepanel_520"] ? An.setReserved("bloonstd4_fla.losepanel_520", In) : (An.h["bloonstd4_fla.losepanel_520"] = In); var Cn = e.classes, Bn = Ud; null != NT["bloonstd4_fla.glue9_47"] ? Cn.setReserved("bloonstd4_fla.glue9_47", Bn) : (Cn.h["bloonstd4_fla.glue9_47"] = Bn); var Dn = e.classes, kn = hu; null != NT.trackPiece_track9b ? Dn.setReserved("trackPiece_track9b", kn) : (Dn.h.trackPiece_track9b = kn); var Fn = e.classes, Mn = Ah; null != NT.Bloon_6 ? Fn.setReserved("Bloon_6", Mn) : (Fn.h.Bloon_6 = Mn); var Ln = e.classes, Nn = yc; null != NT["bloonstd4_fla.suggestions_mc_526"] ? Ln.setReserved("bloonstd4_fla.suggestions_mc_526", Nn) : (Ln.h["bloonstd4_fla.suggestions_mc_526"] = Nn); var On = e.classes, Un = Ad; null != NT["bloonstd4_fla.collectupgradeinner_53"] ? On.setReserved("bloonstd4_fla.collectupgradeinner_53", Un) : (On.h["bloonstd4_fla.collectupgradeinner_53"] = Un); var Gn = e.classes, zn = vd; null != NT["bloonstd4_fla.collect_ship_animouter_136"] ? Gn.setReserved("bloonstd4_fla.collect_ship_animouter_136", zn) : (Gn.h["bloonstd4_fla.collect_ship_animouter_136"] = zn); var Xn = e.classes, Hn = Hh; null != NT.Exclusive ? Xn.setReserved("Exclusive", Hn) : (Xn.h.Exclusive = Hn); var Vn = e.classes, Yn = R_; null != NT.Tornado ? Vn.setReserved("Tornado", Yn) : (Vn.h.Tornado = Yn); var Wn = e.classes, jn = Id; null != NT["bloonstd4_fla.continuousmodebtn_219"] ? Wn.setReserved("bloonstd4_fla.continuousmodebtn_219", jn) : (Wn.h["bloonstd4_fla.continuousmodebtn_219"] = jn); var Kn = e.classes, qn = ed; null != NT["bloonstd4_fla.collect_arctic_animouter_149"] ? Kn.setReserved("bloonstd4_fla.collect_arctic_animouter_149", qn) : (Kn.h["bloonstd4_fla.collect_arctic_animouter_149"] = qn); var Zn = e.classes, Jn = md; null != NT["bloonstd4_fla.collect_pineapple_animouter_106"] ? Zn.setReserved("bloonstd4_fla.collect_pineapple_animouter_106", Jn) : (Zn.h["bloonstd4_fla.collect_pineapple_animouter_106"] = Jn); var Qn = e.classes, $n = Ic; null != NT["bloonstd4_fla.TowerGFX_Tower_Mortar2_Arm_747"] ? Qn.setReserved("bloonstd4_fla.TowerGFX_Tower_Mortar2_Arm_747", $n) : (Qn.h["bloonstd4_fla.TowerGFX_Tower_Mortar2_Arm_747"] = $n); var ei = e.classes, ti = xh; null != NT.Bloon_2 ? ei.setReserved("Bloon_2", ti) : (ei.h.Bloon_2 = ti); var si = e.classes, ni = u_; null != NT.MortarHit ? si.setReserved("MortarHit", ni) : (si.h.MortarHit = ni); var ii = e.classes, ri = g_; null != NT.Spikeopult ? ii.setReserved("Spikeopult", ri) : (ii.h.Spikeopult = ri); var oi = e.classes, ai = fc; null != NT["bloonstd4_fla.sellforbtn_415"] ? oi.setReserved("bloonstd4_fla.sellforbtn_415", ai) : (oi.h["bloonstd4_fla.sellforbtn_415"] = ai); var li = e.classes, hi = Lu; null != NT["bloonstd4_fla.btn_hard_212"] ? li.setReserved("bloonstd4_fla.btn_hard_212", hi) : (li.h["bloonstd4_fla.btn_hard_212"] = hi); var _i = e.classes, ui = Td; null != NT["bloonstd4_fla.collect_spikes_animouter_103"] ? _i.setReserved("bloonstd4_fla.collect_spikes_animouter_103", ui) : (_i.h["bloonstd4_fla.collect_spikes_animouter_103"] = ui); var di = e.classes, ci = qh; null != NT.Glaive ? di.setReserved("Glaive", ci) : (di.h.Glaive = ci); var fi = e.classes, pi = $h; null != NT.GlueSplatter ? fi.setReserved("GlueSplatter", pi) : (fi.h.GlueSplatter = pi); var bi = e.classes, mi = td; null != NT["bloonstd4_fla.collect_battery_animouter_190"] ? bi.setReserved("bloonstd4_fla.collect_battery_animouter_190", mi) : (bi.h["bloonstd4_fla.collect_battery_animouter_190"] = mi); var gi = e.classes, wi = x_; null != NT.Tack ? gi.setReserved("Tack", wi) : (gi.h.Tack = wi); var vi = e.classes, yi = Tc; null != NT["bloonstd4_fla.targ_first_508"] ? vi.setReserved("bloonstd4_fla.targ_first_508", yi) : (vi.h["bloonstd4_fla.targ_first_508"] = yi); var Ti = e.classes, Si = P_; null != NT.Tempest ? Ti.setReserved("Tempest", Si) : (Ti.h.Tempest = Si); var xi = e.classes, Ei = yu; null != NT["bloonstd4_fla.attackradius_337"] ? xi.setReserved("bloonstd4_fla.attackradius_337", Ei) : (xi.h["bloonstd4_fla.attackradius_337"] = Ei); var Pi = e.classes, Ri = Y_; null != NT.trackPiece_track3 ? Pi.setReserved("trackPiece_track3", Ri) : (Pi.h.trackPiece_track3 = Ri); var Ai = e.classes, Ii = Yc; null != NT["bloonstd4_fla.TowerGFX_shiparm2_inner_701"] ? Ai.setReserved("bloonstd4_fla.TowerGFX_shiparm2_inner_701", Ii) : (Ai.h["bloonstd4_fla.TowerGFX_shiparm2_inner_701"] = Ii); var Ci = e.classes, Bi = Lh; null != NT.CannonTower ? Ci.setReserved("CannonTower", Bi) : (Ci.h.CannonTower = Bi); var Di = e.classes, ki = H_; null != NT.trackPiece_track2 ? Di.setReserved("trackPiece_track2", ki) : (Di.h.trackPiece_track2 = ki); var Fi = e.classes, Mi = O_; null != NT.trackPiece_track1 ? Fi.setReserved("trackPiece_track1", Mi) : (Fi.h.trackPiece_track1 = Mi); var Li = e.classes, Ni = tf; null != NT["bloonstd4_fla.TowerGFX_wizarm_140"] ? Li.setReserved("bloonstd4_fla.TowerGFX_wizarm_140", Ni) : (Li.h["bloonstd4_fla.TowerGFX_wizarm_140"] = Ni); var Oi = e.classes, Ui = zu; null != NT["bloonstd4_fla.btn_road_382"] ? Oi.setReserved("bloonstd4_fla.btn_road_382", Ui) : (Oi.h["bloonstd4_fla.btn_road_382"] = Ui); var Gi = e.classes, zi = s_; null != NT.IceTower ? Gi.setReserved("IceTower", zi) : (Gi.h.IceTower = zi); var Xi = e.classes, Hi = uf; null != NT["bloonstd4_fla.track21btn_245"] ? Xi.setReserved("bloonstd4_fla.track21btn_245", Hi) : (Xi.h["bloonstd4_fla.track21btn_245"] = Hi); var Vi = e.classes, Yi = vh; null != NT.Bloon_11 ? Vi.setReserved("Bloon_11", Yi) : (Vi.h.Bloon_11 = Yi); var Wi = e.classes, ji = ph; null != NT.balloon ? Wi.setReserved("balloon", ji) : (Wi.h.balloon = ji); var Ki = e.classes, qi = L_; null != NT.trackPiece6 ? Ki.setReserved("trackPiece6", qi) : (Ki.h.trackPiece6 = qi); var Zi = e.classes, Ji = ff; null != NT["bloonstd4_fla.trackPreview_556"] ? Zi.setReserved("bloonstd4_fla.trackPreview_556", Ji) : (Zi.h["bloonstd4_fla.trackPreview_556"] = Ji); var Qi = e.classes, $i = Md; null != NT["bloonstd4_fla.freeze9_49"] ? Qi.setReserved("bloonstd4_fla.freeze9_49", $i) : (Qi.h["bloonstd4_fla.freeze9_49"] = $i); var er = e.classes, tr = Rd; null != NT["bloonstd4_fla.collect_wizard_animouter_138"] ? er.setReserved("bloonstd4_fla.collect_wizard_animouter_138", tr) : (er.h["bloonstd4_fla.collect_wizard_animouter_138"] = tr); var sr = e.classes, nr = Tu; null != NT["bloonstd4_fla.backing_416"] ? sr.setReserved("bloonstd4_fla.backing_416", nr) : (sr.h["bloonstd4_fla.backing_416"] = nr); var ir = e.classes, rr = pu; null != NT.trackPiece_trackxb ? ir.setReserved("trackPiece_trackxb", rr) : (ir.h.trackPiece_trackxb = rr); var or = e.classes, ar = Hd; null != NT["bloonstd4_fla.Light_658"] ? or.setReserved("bloonstd4_fla.Light_658", ar) : (or.h["bloonstd4_fla.Light_658"] = ar); var lr = e.classes, hr = nd; null != NT["bloonstd4_fla.collect_beacon_animouter_114"] ? lr.setReserved("bloonstd4_fla.collect_beacon_animouter_114", hr) : (lr.h["bloonstd4_fla.collect_beacon_animouter_114"] = hr); var _r = e.classes, ur = Sh; null != NT.Bloon_14 ? _r.setReserved("Bloon_14", ur) : (_r.h.Bloon_14 = ur); var dr = e.classes, cr = Oc; null != NT["bloonstd4_fla.TowerGFX_bullet_missileinner_743"] ? dr.setReserved("bloonstd4_fla.TowerGFX_bullet_missileinner_743", cr) : (dr.h["bloonstd4_fla.TowerGFX_bullet_missileinner_743"] = cr); var fr = e.classes, pr = Hc; null != NT["bloonstd4_fla.TowerGFX_gunbarrell_87"] ? fr.setReserved("bloonstd4_fla.TowerGFX_gunbarrell_87", pr) : (fr.h["bloonstd4_fla.TowerGFX_gunbarrell_87"] = pr); var br = e.classes, mr = B_; null != NT.trackPiece1 ? br.setReserved("trackPiece1", mr) : (br.h.trackPiece1 = mr); var gr = e.classes, wr = pc; null != NT["bloonstd4_fla.Soundtoggle_557"] ? gr.setReserved("bloonstd4_fla.Soundtoggle_557", wr) : (gr.h["bloonstd4_fla.Soundtoggle_557"] = wr); var vr = e.classes, yr = tc; null != NT["bloonstd4_fla.moneygain_714"] ? vr.setReserved("bloonstd4_fla.moneygain_714", yr) : (vr.h["bloonstd4_fla.moneygain_714"] = yr); var Tr = e.classes, Sr = Qd; null != NT["bloonstd4_fla.menu_medals_strap_265"] ? Tr.setReserved("bloonstd4_fla.menu_medals_strap_265", Sr) : (Tr.h["bloonstd4_fla.menu_medals_strap_265"] = Sr); var xr = e.classes, Er = xu; null != NT["bloonstd4_fla.bloon1sandbox_8"] ? xr.setReserved("bloonstd4_fla.bloon1sandbox_8", Er) : (xr.h["bloonstd4_fla.bloon1sandbox_8"] = Er); var Pr = e.classes, Rr = kc; null != NT["bloonstd4_fla.TowerGFX_arm2_83"] ? Pr.setReserved("bloonstd4_fla.TowerGFX_arm2_83", Rr) : (Pr.h["bloonstd4_fla.TowerGFX_arm2_83"] = Rr); var Ar = e.classes, Ir = Ld; null != NT["bloonstd4_fla.freeze_757"] ? Ar.setReserved("bloonstd4_fla.freeze_757", Ir) : (Ar.h["bloonstd4_fla.freeze_757"] = Ir); var Cr = e.classes, Br = lu; null != NT.trackPiece_track9 ? Cr.setReserved("trackPiece_track9", Br) : (Cr.h.trackPiece_track9 = Br); var Dr = e.classes, kr = nu; null != NT.trackPiece_track8 ? Dr.setReserved("trackPiece_track8", kr) : (Dr.h.trackPiece_track8 = kr); var Fr = e.classes, Mr = t_; null != NT.IceBomb ? Fr.setReserved("IceBomb", Mr) : (Fr.h.IceBomb = Mr); var Lr = e.classes, Nr = gu; null != NT.Waterhit ? Lr.setReserved("Waterhit", Nr) : (Lr.h.Waterhit = Nr); var Or = e.classes, Ur = Lc; null != NT["bloonstd4_fla.TowerGFX_blade_tower_inner_734"] ? Or.setReserved("bloonstd4_fla.TowerGFX_blade_tower_inner_734", Ur) : (Or.h["bloonstd4_fla.TowerGFX_blade_tower_inner_734"] = Ur); var Gr = e.classes, zr = Vc; null != NT["bloonstd4_fla.TowerGFX_prop_stopped_391"] ? Gr.setReserved("bloonstd4_fla.TowerGFX_prop_stopped_391", zr) : (Gr.h["bloonstd4_fla.TowerGFX_prop_stopped_391"] = zr); var Xr = e.classes, Hr = Gd; null != NT["bloonstd4_fla.glue_783"] ? Xr.setReserved("bloonstd4_fla.glue_783", Hr) : (Xr.h["bloonstd4_fla.glue_783"] = Hr); var Vr = e.classes, Yr = sc; null != NT["bloonstd4_fla.monkeystorm_515"] ? Vr.setReserved("bloonstd4_fla.monkeystorm_515", Yr) : (Vr.h["bloonstd4_fla.monkeystorm_515"] = Yr); var Wr = e.classes, jr = ad; null != NT["bloonstd4_fla.collect_fire_animouter_143"] ? Wr.setReserved("bloonstd4_fla.collect_fire_animouter_143", jr) : (Wr.h["bloonstd4_fla.collect_fire_animouter_143"] = jr); var Kr = e.classes, qr = ef; null != NT["bloonstd4_fla.TowerGFX_wizarm5_165"] ? Kr.setReserved("bloonstd4_fla.TowerGFX_wizarm5_165", qr) : (Kr.h["bloonstd4_fla.TowerGFX_wizarm5_165"] = qr); var Zr = e.classes, Jr = h_; null != NT.MonkeyBeacon ? Zr.setReserved("MonkeyBeacon", Jr) : (Zr.h.MonkeyBeacon = Jr); var Qr = e.classes, $r = hc; null != NT["bloonstd4_fla.reload_mc_504"] ? Qr.setReserved("bloonstd4_fla.reload_mc_504", $r) : (Qr.h["bloonstd4_fla.reload_mc_504"] = $r); var eo = e.classes, to = Ed; null != NT["bloonstd4_fla.collect_super_animouter_100"] ? eo.setReserved("bloonstd4_fla.collect_super_animouter_100", to) : (eo.h["bloonstd4_fla.collect_super_animouter_100"] = to); var so = e.classes, no = Jh; null != NT.GlueMonkey ? so.setReserved("GlueMonkey", no) : (so.h.GlueMonkey = no); var io = e.classes, ro = rc; null != NT["bloonstd4_fla.muteSnd_btn_412"] ? io.setReserved("bloonstd4_fla.muteSnd_btn_412", ro) : (io.h["bloonstd4_fla.muteSnd_btn_412"] = ro); var oo = e.classes, ao = Oh; null != NT.DartExplode ? oo.setReserved("DartExplode", ao) : (oo.h.DartExplode = ao); var lo = e.classes, ho = Bh; null != NT.Bloon_9 ? lo.setReserved("Bloon_9", ho) : (lo.h.Bloon_9 = ho); var _o = e.classes, uo = Mu; null != NT["bloonstd4_fla.btn_gluegunner_372"] ? _o.setReserved("bloonstd4_fla.btn_gluegunner_372", uo) : (_o.h["bloonstd4_fla.btn_gluegunner_372"] = uo); var co = e.classes, fo = gd; null != NT["bloonstd4_fla.collect_plane_animouter_158"] ? co.setReserved("bloonstd4_fla.collect_plane_animouter_158", fo) : (co.h["bloonstd4_fla.collect_plane_animouter_158"] = fo); var po = e.classes, bo = w_; null != NT.SpikeyBall ? po.setReserved("SpikeyBall", bo) : (po.h.SpikeyBall = bo); var mo = e.classes, go = Rh; null != NT.Bloon_5 ? mo.setReserved("Bloon_5", go) : (mo.h.Bloon_5 = go); var wo = e.classes, vo = bh; null != NT.BananaFarm ? wo.setReserved("BananaFarm", vo) : (wo.h.BananaFarm = vo); var yo = e.classes, To = A_; null != NT.Tower ? yo.setReserved("Tower", To) : (yo.h.Tower = To); var So = e.classes, xo = uc; null != NT["bloonstd4_fla.sandboxmodebtn_218"] ? So.setReserved("bloonstd4_fla.sandboxmodebtn_218", xo) : (So.h["bloonstd4_fla.sandboxmodebtn_218"] = xo); var Eo = e.classes, Po = U_; null != NT.trackPiece_track10 ? Eo.setReserved("trackPiece_track10", Po) : (Eo.h.trackPiece_track10 = Po); var Ro = e.classes, Ao = gh; null != NT.Bloon_1 ? Ro.setReserved("Bloon_1", Ao) : (Ro.h.Bloon_1 = Ao); var Io = e.classes, Co = vu; null != NT["bloonstd4_fla.areyousureyesno_538"] ? Io.setReserved("bloonstd4_fla.areyousureyesno_538", Co) : (Io.h["bloonstd4_fla.areyousureyesno_538"] = Co); var Bo = e.classes, Do = _c; null != NT["bloonstd4_fla.roundinfo_mc_397"] ? Bo.setReserved("bloonstd4_fla.roundinfo_mc_397", Do) : (Bo.h["bloonstd4_fla.roundinfo_mc_397"] = Do); var ko = e.classes, Fo = xc; null != NT["bloonstd4_fla.targ_last_511"] ? ko.setReserved("bloonstd4_fla.targ_last_511", Fo) : (ko.h["bloonstd4_fla.targ_last_511"] = Fo); var Mo = e.classes, Lo = af; null != NT["bloonstd4_fla.track17btn_235"] ? Mo.setReserved("bloonstd4_fla.track17btn_235", Lo) : (Mo.h["bloonstd4_fla.track17btn_235"] = Lo); var No = e.classes, Oo = iu; null != NT.trackPiece_track8b ? No.setReserved("trackPiece_track8b", Oo) : (No.h.trackPiece_track8b = Oo); var Uo = e.classes, Go = su; null != NT.trackPiece_track7b ? Uo.setReserved("trackPiece_track7b", Go) : (Uo.h.trackPiece_track7b = Go); var zo = e.classes, Xo = Fu; null != NT["bloonstd4_fla.btn_glue_385"] ? zo.setReserved("bloonstd4_fla.btn_glue_385", Xo) : (zo.h["bloonstd4_fla.btn_glue_385"] = Xo); var Ho = e.classes, Vo = X_; null != NT.trackPiece_track12b ? Ho.setReserved("trackPiece_track12b", Vo) : (Ho.h.trackPiece_track12b = Vo); var Yo = e.classes, Wo = Nc; null != NT["bloonstd4_fla.TowerGFX_bullet_missileinner2_177"] ? Yo.setReserved("bloonstd4_fla.TowerGFX_bullet_missileinner2_177", Wo) : (Yo.h["bloonstd4_fla.TowerGFX_bullet_missileinner2_177"] = Wo); var jo = e.classes, Ko = F_; null != NT.trackPiece4 ? jo.setReserved("trackPiece4", Ko) : (jo.h.trackPiece4 = Ko); var qo = e.classes, Zo = au; null != NT.trackPiece_track8e ? qo.setReserved("trackPiece_track8e", Zo) : (qo.h.trackPiece_track8e = Zo); var Jo = e.classes, Qo = Wd; null != NT["bloonstd4_fla.ls_innerinner_657"] ? Jo.setReserved("bloonstd4_fla.ls_innerinner_657", Qo) : (Jo.h["bloonstd4_fla.ls_innerinner_657"] = Qo); var $o = e.classes, ea = ec; null != NT["bloonstd4_fla.miss_436"] ? $o.setReserved("bloonstd4_fla.miss_436", ea) : ($o.h["bloonstd4_fla.miss_436"] = ea); var ta = e.classes, sa = gf; null != NT["bloonstd4_fla.wingameinner_543"] ? ta.setReserved("bloonstd4_fla.wingameinner_543", sa) : (ta.h["bloonstd4_fla.wingameinner_543"] = sa); var na = e.classes, ia = ku; null != NT["bloonstd4_fla.btn_farm_363"] ? na.setReserved("bloonstd4_fla.btn_farm_363", ia) : (na.h["bloonstd4_fla.btn_farm_363"] = ia); var ra = e.classes, oa = $c; null != NT["bloonstd4_fla.TowerGFX_wizarm4_809"] ? ra.setReserved("bloonstd4_fla.TowerGFX_wizarm4_809", oa) : (ra.h["bloonstd4_fla.TowerGFX_wizarm4_809"] = oa); var aa = e.classes, la = lf; null != NT["bloonstd4_fla.track18btn_238"] ? aa.setReserved("bloonstd4_fla.track18btn_238", la) : (aa.h["bloonstd4_fla.track18btn_238"] = la); var ha = e.classes, _a = Nh; null != NT.Dart ? ha.setReserved("Dart", _a) : (ha.h.Dart = _a); var ua = e.classes, da = jh; null != NT.Frag ? ua.setReserved("Frag", da) : (ua.h.Frag = da); var ca = e.classes, fa = wd; null != NT["bloonstd4_fla.collect_sandbox_animouter_161"] ? ca.setReserved("bloonstd4_fla.collect_sandbox_animouter_161", fa) : (ca.h["bloonstd4_fla.collect_sandbox_animouter_161"] = fa); var pa = e.classes, ba = l_; null != NT.MonkeyAce ? pa.setReserved("MonkeyAce", ba) : (pa.h.MonkeyAce = ba); var ma = e.classes, ga = Hu; null != NT["bloonstd4_fla.btn_tack_348"] ? ma.setReserved("bloonstd4_fla.btn_tack_348", ga) : (ma.h["bloonstd4_fla.btn_tack_348"] = ga); var wa = e.classes, va = b_; null != NT.RoadSpikes ? wa.setReserved("RoadSpikes", va) : (wa.h.RoadSpikes = va); var ya = e.classes, Ta = Ju; null != NT["bloonstd4_fla.clinksound_596"] ? ya.setReserved("bloonstd4_fla.clinksound_596", Ta) : (ya.h["bloonstd4_fla.clinksound_596"] = Ta); var Sa = e.classes, xa = Dh; null != NT.Bomb ? Sa.setReserved("Bomb", xa) : (Sa.h.Bomb = xa); var Ea = e.classes, Pa = dc; null != NT["bloonstd4_fla.sandboxui_6"] ? Ea.setReserved("bloonstd4_fla.sandboxui_6", Pa) : (Ea.h["bloonstd4_fla.sandboxui_6"] = Pa); var Ra = e.classes, Aa = mh; null != NT.Blades ? Ra.setReserved("Blades", Aa) : (Ra.h.Blades = Aa); var Ia = e.classes, Ca = Ac; null != NT["bloonstd4_fla.TowerGFX_Tower_Dart_Triplepult_169"] ? Ia.setReserved("bloonstd4_fla.TowerGFX_Tower_Dart_Triplepult_169", Ca) : (Ia.h["bloonstd4_fla.TowerGFX_Tower_Dart_Triplepult_169"] = Ca); var Ba = e.classes, Da = lc; null != NT["bloonstd4_fla.playarea_299"] ? Ba.setReserved("bloonstd4_fla.playarea_299", Da) : (Ba.h["bloonstd4_fla.playarea_299"] = Da); var ka = e.classes, Fa = Vh; null != NT.ExitPoint ? ka.setReserved("ExitPoint", Fa) : (ka.h.ExitPoint = Fa); var Ma = e.classes, La = mc; null != NT["bloonstd4_fla.spinnyintro_559"] ? Ma.setReserved("bloonstd4_fla.spinnyintro_559", La) : (Ma.h["bloonstd4_fla.spinnyintro_559"] = La); var Na = e.classes, Oa = ac; null != NT["bloonstd4_fla.planeinner_122"] ? Na.setReserved("bloonstd4_fla.planeinner_122", Oa) : (Na.h["bloonstd4_fla.planeinner_122"] = Oa); var Ua = e.classes, Ga = cc; null != NT["bloonstd4_fla.saving_555"] ? Ua.setReserved("bloonstd4_fla.saving_555", Ga) : (Ua.h["bloonstd4_fla.saving_555"] = Ga); var za = e.classes, Xa = wf; null != NT["bloonstd4_fla.winpanel_542"] ? za.setReserved("bloonstd4_fla.winpanel_542", Xa) : (za.h["bloonstd4_fla.winpanel_542"] = Xa); var Ha = e.classes, Va = Uu; null != NT["bloonstd4_fla.btn_mortar_369"] ? Ha.setReserved("bloonstd4_fla.btn_mortar_369", Va) : (Ha.h["bloonstd4_fla.btn_mortar_369"] = Va); var Ya = e.classes, Wa = vf; null != NT["com.google.analytics.components.FlashTracker"] ? Ya.setReserved("com.google.analytics.components.FlashTracker", Wa) : (Ya.h["com.google.analytics.components.FlashTracker"] = Wa); var ja = e.classes, Ka = _u; null != NT.trackPiece_trackant1 ? ja.setReserved("trackPiece_trackant1", Ka) : (ja.h.trackPiece_trackant1 = Ka); var qa = e.classes, Za = r_; null != NT.MagicMissile ? qa.setReserved("MagicMissile", Za) : (qa.h.MagicMissile = Za); var Ja = e.classes, Qa = Wh; null != NT.Fireball ? Ja.setReserved("Fireball", Qa) : (Ja.h.Fireball = Qa); var $a = e.classes, el = mf; null != NT["bloonstd4_fla.winbar_545"] ? $a.setReserved("bloonstd4_fla.winbar_545", el) : ($a.h["bloonstd4_fla.winbar_545"] = el); var tl = e.classes, sl = Gu; null != NT["bloonstd4_fla.btn_pineapple_375"] ? tl.setReserved("bloonstd4_fla.btn_pineapple_375", sl) : (tl.h["bloonstd4_fla.btn_pineapple_375"] = sl); var nl = e.classes, il = tu; null != NT.trackPiece_track7 ? nl.setReserved("trackPiece_track7", il) : (nl.h.trackPiece_track7 = il); var rl = e.classes, ol = qd; null != NT["bloonstd4_fla.menu_bg_tab2_253"] ? rl.setReserved("bloonstd4_fla.menu_bg_tab2_253", ol) : (rl.h["bloonstd4_fla.menu_bg_tab2_253"] = ol); var al = e.classes, ll = ld; null != NT["bloonstd4_fla.collect_gandalf_animouter_163"] ? al.setReserved("bloonstd4_fla.collect_gandalf_animouter_163", ll) : (al.h["bloonstd4_fla.collect_gandalf_animouter_163"] = ll); var hl = e.classes, _l = Q_; null != NT.trackPiece_track6 ? hl.setReserved("trackPiece_track6", _l) : (hl.h.trackPiece_track6 = _l); var ul = e.classes, dl = xd; null != NT["bloonstd4_fla.collect_sun_animouter_196"] ? ul.setReserved("bloonstd4_fla.collect_sun_animouter_196", dl) : (ul.h["bloonstd4_fla.collect_sun_animouter_196"] = dl); var cl = e.classes, fl = N_; null != NT.trackPiece7 ? cl.setReserved("trackPiece7", fl) : (cl.h.trackPiece7 = fl); var pl = e.classes, bl = a_; null != NT.MoabMissile ? pl.setReserved("MoabMissile", bl) : (pl.h.MoabMissile = bl); var ml = e.classes, gl = bu; null != NT.trackPiece_trackxc ? ml.setReserved("trackPiece_trackxc", gl) : (ml.h.trackPiece_trackxc = gl); var wl = e.classes, vl = Dd; null != NT["bloonstd4_fla.extracashmodebtn_216"] ? wl.setReserved("bloonstd4_fla.extracashmodebtn_216", vl) : (wl.h["bloonstd4_fla.extracashmodebtn_216"] = vl); var yl = e.classes, Tl = Qu; null != NT["bloonstd4_fla.collect_ace_animouter_121"] ? yl.setReserved("bloonstd4_fla.collect_ace_animouter_121", Tl) : (yl.h["bloonstd4_fla.collect_ace_animouter_121"] = Tl); var Sl = e.classes, xl = du; null != NT.trackPiece_trackant3 ? Sl.setReserved("trackPiece_trackant3", xl) : (Sl.h.trackPiece_trackant3 = xl); var El = e.classes, Pl = Ch; null != NT.Bloon_8 ? El.setReserved("Bloon_8", Pl) : (El.h.Bloon_8 = Pl); var Rl = e.classes, Al = fd; null != NT["bloonstd4_fla.collect_mauler_animouter_175"] ? Rl.setReserved("bloonstd4_fla.collect_mauler_animouter_175", Al) : (Rl.h["bloonstd4_fla.collect_mauler_animouter_175"] = Al); var Il = e.classes, Cl = Yh; null != NT.FireRing ? Il.setReserved("FireRing", Cl) : (Il.h.FireRing = Cl); var Bl = e.classes, Dl = of; null != NT["bloonstd4_fla.track16btn_232"] ? Bl.setReserved("bloonstd4_fla.track16btn_232", Dl) : (Bl.h["bloonstd4_fla.track16btn_232"] = Dl); var kl = e.classes, Fl = Ph; null != NT.Bloon_4 ? kl.setReserved("Bloon_4", Fl) : (kl.h.Bloon_4 = Fl); var Ml = e.classes, Ll = bd; null != NT["bloonstd4_fla.collect_mortar_animouter_89"] ? Ml.setReserved("bloonstd4_fla.collect_mortar_animouter_89", Ll) : (Ml.h["bloonstd4_fla.collect_mortar_animouter_89"] = Ll); var Nl = e.classes, Ol = zd; null != NT["bloonstd4_fla.gouprank_mc_52"] ? Nl.setReserved("bloonstd4_fla.gouprank_mc_52", Ol) : (Nl.h["bloonstd4_fla.gouprank_mc_52"] = Ol); var Ul = e.classes, Gl = Ru; null != NT["bloonstd4_fla.btn_beacon_366"] ? Ul.setReserved("bloonstd4_fla.btn_beacon_366", Gl) : (Ul.h["bloonstd4_fla.btn_beacon_366"] = Gl); var zl = e.classes, Xl = yh; null != NT.Bloon_12 ? zl.setReserved("Bloon_12", Xl) : (zl.h.Bloon_12 = Xl); var Hl = e.classes, Vl = D_; null != NT.trackPiece2 ? Hl.setReserved("trackPiece2", Vl) : (Hl.h.trackPiece2 = Vl); var Yl = e.classes, Wl = Cd; null != NT["bloonstd4_fla.createAccountPrompt_552"] ? Yl.setReserved("bloonstd4_fla.createAccountPrompt_552", Wl) : (Yl.h["bloonstd4_fla.createAccountPrompt_552"] = Wl); var jl = e.classes, Kl = cd; null != NT["bloonstd4_fla.collect_jedi_animouter_185"] ? jl.setReserved("bloonstd4_fla.collect_jedi_animouter_185", Kl) : (jl.h["bloonstd4_fla.collect_jedi_animouter_185"] = Kl); var ql = e.classes, Zl = Nu; null != NT["bloonstd4_fla.btn_ice_359"] ? ql.setReserved("bloonstd4_fla.btn_ice_359", Zl) : (ql.h["bloonstd4_fla.btn_ice_359"] = Zl); var Jl = e.classes, Ql = dd; null != NT["bloonstd4_fla.collect_ice_animouter_95"] ? Jl.setReserved("bloonstd4_fla.collect_ice_animouter_95", Ql) : (Jl.h["bloonstd4_fla.collect_ice_animouter_95"] = Ql); var $l = e.classes, eh = id; null != NT["bloonstd4_fla.collect_bomb_animouter_85"] ? $l.setReserved("bloonstd4_fla.collect_bomb_animouter_85", eh) : ($l.h["bloonstd4_fla.collect_bomb_animouter_85"] = eh); var th = e.classes, sh = Gh; null != NT.editor_piece1 ? th.setReserved("editor_piece1", sh) : (th.h.editor_piece1 = sh); var nh = e.classes, ih = wc; null != NT["bloonstd4_fla.st_547"] ? nh.setReserved("bloonstd4_fla.st_547", ih) : (nh.h["bloonstd4_fla.st_547"] = ih); var rh = e.classes, oh = Jd; null != NT["bloonstd4_fla.menu_medals_264"] ? rh.setReserved("bloonstd4_fla.menu_medals_264", oh) : (rh.h["bloonstd4_fla.menu_medals_264"] = oh); var ah = e.classes, lh = od; null != NT["bloonstd4_fla.collect_factory_animouter_193"] ? ah.setReserved("bloonstd4_fla.collect_factory_animouter_193", lh) : (ah.h["bloonstd4_fla.collect_factory_animouter_193"] = lh); var hh = e.classes, _h = rd; null != NT["bloonstd4_fla.collect_boomerang_animouter_81"] ? hh.setReserved("bloonstd4_fla.collect_boomerang_animouter_81", _h) : (hh.h["bloonstd4_fla.collect_boomerang_animouter_81"] = _h); var uh = e.classes, dh = $_; null != NT.trackPiece_track6b ? uh.setReserved("trackPiece_track6b", dh) : (uh.h.trackPiece_track6b = dh); var ch = e.classes, fh = Z_; null != NT.trackPiece_track5b ? ch.setReserved("trackPiece_track5b", fh) : (ch.h.trackPiece_track5b = fh); }), (f.__super__ = u), (f.prototype = n(u.prototype, { __class__: f })); var p = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(96, CT(this, this.frame97)), this.addFrameScript(97, CT(this, this.frame98)), this.addFrameScript(101, CT(this, this.frame102)); }; ((s["swf.Balloon"] = p).__name__ = ["swf", "Balloon"]), (p.__super__ = u), (p.prototype = n(u.prototype, { Pop: function () { this.gotoAndPlay("pop"); }, frame98: function () { this.popped = !0; }, frame1: function () {}, frame97: function () { this.gotoAndPlay(1); }, frame102: function () { this.set_visible(!1); }, __class__: p, })); var ph = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[299]; p.call(this, r, o); }; ((s.Balloon = ph).__name__ = ["Balloon"]), (ph.__super__ = p), (ph.prototype = n(p.prototype, { __class__: ph })); var b = function (e, t) { (this.BEACON_RANGE_FACTOR = 1.2), (this.BEACON_RATE_FACTOR = 0.85), u.call(this, e, t), (this.bulHitRadius = 0), (this.popcount = 0), (this.beaconRate = !1), (this.beaconRadius = !1), (this.leadbreak = !1), (this.transformed = !1), (this.freezeLen = 0), (this.pierceMax = 1), (this.icebreak = !1), (this.bulletScale = 1), (this.upgradeNum = 0), (this.income = 0), (this.moabkill = !1), (this.seeInvis = !1), (this.isspread = !1), (this.scatterVal = 0), (this.towerName = "none"), (this.laser = !1), (this.type = "none"), (this.attackRate = 999999999), (this.timeSinceLastShot = 0), (this.AImode = "first"), this.addEventListener("mouseDown", CT(this, this.Press)), this.set_cacheAsBitmap(!0); }; ((s["swf.Tower"] = b).__name__ = ["swf", "Tower"]), (b.__super__ = u), (b.prototype = n(u.prototype, { GetTarget: function () { var e = null, t = NaN, s = NaN, n = null, i = null, r = 0; switch (this.AImode) { case "first": case "high": r = 0; break; case "last": case "low": r = 1e4; } for (var o = 0, a = this.game.bloons; o < a.length; ) { var l = a[o]; if ((++o, !l.popped)) if (!l.glued || "gluetower" != this.type) if (this.icebreak || !l.frozen) if (11 != l.rank || this.seeInvis) if ( ((t = l.x), (s = l.y), (n = cT.getDistSq( t, s, this.__transform.tx, this.__transform.ty )), (i = this.arsq), this.beaconRadius && (i *= this.BEACON_RANGE_FACTOR), n < i) ) switch (this.AImode) { case "first": case "high": case "last": case "low": if ("first" == this.AImode) { l.prog > r && ((r = l.prog), (e = l)); continue; } if ("last" == this.AImode) { l.prog < r && ((r = l.prog), (e = l)); continue; } if ("high" == this.AImode) { l.rank > r && ((r = l.rank), (e = l)); continue; } l.rank < r && ((r = l.rank), (e = l)); continue; default: continue; } } return e; }, convertTo: function (e) { switch (e) { case "beacon": (this.attackRate = 60), (this.shootPower = 20), (this.attackRadius = this.game.RANGE_BEACON), (this.towerName = "Monkey Beacon"), (this.spentonme = this.game.GetPrice(this.game.COST_BEACON)), (this.pierceMax = 0), this.CalcRadius(), this.doBeaconUpdate(), (this.ug4_unlock_order = 18); break; case "bomb": (this.attackRate = 54), (this.shootPower = 13), (this.bulHitRadius = 11), (this.attackRadius = this.game.RANGE_BOMB), (this.towerName = "Bomb Tower"), (this.spentonme = this.game.GetPrice(this.game.COST_BOMB)), (this.pierceMax = 18), (this.icebreak = !0), (this.leadbreak = !0), (this.ug4_unlock_order = 17); break; case "boomerang": (this.attackRate = 50), (this.bulHitRadius = 15), (this.pierceMax = 3), (this.attackRadius = this.game.RANGE_BOOMERANG), (this.spentonme = this.game.GetPrice(this.game.COST_BOOMERANG)), (this.shootPower = 0), (this.towerName = "Boomerang Thrower"), (this.ug4_unlock_order = 20); break; case "dart": (this.attackRate = 33), (this.attackRadius = this.game.RANGE_DART), (this.spentonme = this.game.GetPrice(this.game.COST_DART)), (this.shootPower = 23), (this.bulHitRadius = 6), (this.towerName = "Dart Monkey"), (this.ug4_unlock_order = 19); break; case "gluetower": (this.attackRate = 35), (this.bulHitRadius = 10), (this.attackRadius = this.game.RANGE_GLUE), (this.spentonme = this.game.GetPrice(this.game.COST_GLUETOWER)), (this.shootPower = 15), (this.glueLen = 400), (this.icebreak = this.leadbreak = !0), (this.towerName = "Glue Gunner"), (this.ug4_unlock_order = 25); break; case "ice": (this.attackRate = 85), (this.bulHitRadius = this.game.RANGE_ICE), (this.attackRadius = this.game.RANGE_ICE), (this.towerName = "Ice Tower"), (this.spentonme = this.game.GetPrice(this.game.COST_ICE)), (this.bulletScale = 0.8), (this.freezeLen = 50), (this.pierceMax = 40), (this.ug4_unlock_order = 24); break; case "money": (this.attackRadius = 20), (this.towerName = "Banana Farm"), (this.spentonme = this.game.GetPrice(this.game.COST_MONEYTOWER)), (this.pierceMax = 0), (this.income = 80), (this.ug4_unlock_order = 28); break; case "monkeyace": (this.attackRate = 80), (this.shootPower = 8), (this.attackRadius = this.game.RANGE_PLANE), (this.towerName = "Monkey Ace"), (this.spentonme = this.game.GetPrice(this.game.COST_PLANE)), (this.pierceMax = 10), (this.ug4_unlock_order = 27); break; case "mortar": (this.attackRate = 80), (this.shootPower = 0), (this.bulHitRadius = 80), (this.towerName = "Mortar Tower"), (this.spentonme = this.game.GetPrice(this.game.COST_MORTAR)), (this.pierceMax = 40), (this.icebreak = !0), (this.leadbreak = !0), (this.scatterVal = 50), this.mortaraim.set_width( this.mortaraim.set_height(2 * this.scatterVal) ), (this.ug4_unlock_order = 23); break; case "ship": (this.attackRate = 35), (this.shootPower = 15), (this.attackRadius = this.game.RANGE_SHIP), (this.towerName = "Monkey Buccaneer"), (this.spentonme = this.game.GetPrice(this.game.COST_SHIP)), (this.pierceMax = 5), (this.bulHitRadius = 5), (this.bulletScale = 1), (this.ug4_unlock_order = 21); break; case "spikeopult": (this.attackRate = 54), (this.shootPower = 11), (this.bulHitRadius = 8), (this.attackRadius = this.game.RANGE_SPIKEOPULT), (this.towerName = "Spike-o-pult"), (this.pierceMax = 18), (this.bulletScale = 1), Zf.trace("CONVERT TO SPIKEOPULT", { fileName: "Tower.hx", lineNumber: 320, className: "swf.Tower", methodName: "convertTo", }), (this.ug4_unlock_order = 19); break; case "super": (this.attackRate = 2), (this.shootPower = 20), (this.attackRadius = this.game.RANGE_SUPER), (this.towerName = "Super Monkey"), (this.spentonme = this.game.GetPrice(this.game.COST_SUPER)), (this.pierceMax = 1), (this.ug4_unlock_order = 30); break; case "tack": (this.attackRate = 58), (this.attackRadius = this.game.RANGE_TACK), (this.isspread = !0), (this.spentonme = this.game.GetPrice(this.game.COST_TACK)), (this.shootPower = 10), (this.towerName = "Tack Shooter"), (this.pierceMax = 1), (this.ug4_unlock_order = 22); break; case "wizard": (this.attackRate = 38), (this.shootPower = 16), (this.attackRadius = this.game.RANGE_WIZARD), (this.towerName = "Monkey Apprentice"), (this.spentonme = this.game.GetPrice(this.game.COST_WIZARD)), (this.pierceMax = 2), (this.bulHitRadius = 10), (this.bulletScale = 1), (this.ug4_unlock_order = 29); } this.radiusmc.set_width( this.radiusmc.set_height(2 * this.attackRadius) ), this.CalcRadius(); }, deleteCamoSee: function () { for (var e = 0, t = this.game.towerlist; e < t.length; ) { var s = t[e]; ++e, s.type != this.type && cT.getDistSq(s.x, s.y, this.__transform.tx, this.__transform.ty) < this.arsq && (s.seeInvis = !1); } }, Press: function (e) { "none" == this.game.currentTool && this.game.SelectTower(this); }, showMortatAim: function () { "mortar" == this.type && this.game.currentTower == this && this.mortaraim.set_visible(!0); }, GetSpeedRating: function () { return this.attackRate < 4 ? "hypersonic" : 4 <= this.attackRate && this.attackRate < 24 ? "very fast" : 24 <= this.attackRate && this.attackRate < 40 ? "fast" : 40 <= this.attackRate && this.attackRate < 60 ? "medium" : 60 <= this.attackRate && this.attackRate < 100 ? "slow" : 100 <= this.attackRate ? "very slow" : null; }, mortarLand: function () { this.game.ShootBullet(this, null); }, Init: function (e) { null == e && (e = !1), Zf.trace("type of new tower: " + Ue.string(this), { fileName: "Tower.hx", lineNumber: 434, className: "swf.Tower", methodName: "Init", }), this.convertTo(this.type), (this.target = null), this.radiusmc.set_visible(!1), this.game.SelectTower(this, e); }, doCamoSeeUpdate: function () { for (var e = 0, t = this.game.towerlist; e < t.length; ) { var s = t[e]; ++e, cT.getDistSq(s.x, s.y, this.__transform.tx, this.__transform.ty) < this.arsq && (s.seeInvis = !0); } }, hideMortarAim: function () { "mortar" == this.type && this.game.currentTower == this && this.mortaraim.set_visible(!1); }, doBeaconUpdate: function () { var e = null; 2 <= this.upgradeNum && 1 == this.game.monkeystorm.get_currentFrame() && (this.game.stormready = !0); for (var t = 0; t < this.game.towerlist.length; ) "beacon" != (e = this.game.towerlist[t]).type && (cT.getDistSq( e.__transform.tx, e.__transform.ty, this.__transform.tx, this.__transform.ty ) < this.arsq && ((e.beaconRadius = !0), 2 <= this.upgradeNum && (e.beaconRate = !0), 3 <= this.upgradeNum && (e.seeInvis = !0)), e.CalcRadius()), ++t; }, Update: function () { if ("money" != this.type && this.game.ingame) { this.timeSinceLastShot++; var e = this.attackRate; this.beaconRate && ((e *= this.BEACON_RATE_FACTOR), (e = Math.ceil(e)) < 1 && (e = 1)), this.timeSinceLastShot > e && this.Shoot(); } }, CalcRadius: function () { (this.arsq = this.attackRadius * this.attackRadius), "monkeyace" != this.type ? this.beaconRadius ? this.radiusmc.set_width( this.radiusmc.set_height( 2 * this.attackRadius * this.BEACON_RANGE_FACTOR ) ) : this.radiusmc.set_width( this.radiusmc.set_height(2 * this.attackRadius) ) : this.radiusmc.set_width(this.radiusmc.set_height(0)); }, deleteBeacon: function () { for (var e = 0, t = this.game.towerlist; e < t.length; ) { var s = t[e]; ++e, (this.game.stormready = !1), "beacon" != s.type && (cT.getDistSq( s.x, s.y, this.__transform.tx, this.__transform.ty ) < this.arsq && ((s.beaconRadius = !1), 2 <= this.upgradeNum && (s.beaconRate = !1), 3 <= this.upgradeNum && (s.seeInvis = !1)), s.CalcRadius()); } }, Shoot: function () { var e = 0, t = null; if ("beacon" != this.type) { if ( (((("ship" == this.type || "monkeyace" == this.type) && 2 <= this.upgradeNum) || ("wizard" == this.type && null != De.field(this.game.mochiBoosters, "crystalball"))) && this.doCamoSeeUpdate(), "mortar" == this.type) ) (this.timeSinceLastShot = 0), null != this.inner && Lp.__cast(this.inner.resolve("arm"), u).get_currentFrame() < 3 && Lp.__cast(this.inner.resolve("arm"), u).gotoAndPlay(3), cT.waitForSomething(850, CT(this, this.mortarLand)); else if ("monkeyace" == this.type) (this.timeSinceLastShot = 0), this.game.ShootBullet(this, null, 0, 1), this.game.ShootBullet(this, null, 0.7, 0.7), this.game.ShootBullet(this, null, 1, 0), this.game.ShootBullet(this, null, 0.7, -0.7), this.game.ShootBullet(this, null, 0, -1), this.game.ShootBullet(this, null, -0.7, -0.7), this.game.ShootBullet(this, null, -1, 0), this.game.ShootBullet(this, null, -0.7, 0.7), "monkeyace" == this.type && (0 < this.upgradeNum && this.game.ShootBullet(this, null, 0, 0, "pineapple"), 3 < this.upgradeNum && (this.game.ShootBullet(this, null, 0.38, 0.92), this.game.ShootBullet(this, null, 0.92, 0.38), this.game.ShootBullet(this, null, 0.92, -0.38), this.game.ShootBullet(this, null, 0.38, -0.92), this.game.ShootBullet(this, null, -0.38, -0.92), this.game.ShootBullet(this, null, -0.92, -0.38), this.game.ShootBullet(this, null, -0.92, 0.38), this.game.ShootBullet(this, null, -0.38, 0.92))); else if (((this.target = this.GetTarget()), null != this.target)) { if ( ((this.timeSinceLastShot = 0), ("tack" != this.type && "ice" != this.type) || (this.target = null), "tack" == this.type && this.upgradeNum < 4) ) this.game.ShootBullet(this, null, 0, 1), this.game.ShootBullet(this, null, 0.7, 0.7), this.game.ShootBullet(this, null, 1, 0), this.game.ShootBullet(this, null, 0.7, -0.7), this.game.ShootBullet(this, null, 0, -1), this.game.ShootBullet(this, null, -0.7, -0.7), this.game.ShootBullet(this, null, -1, 0), this.game.ShootBullet(this, null, -0.7, 0.7); else if ("wizard" == this.type) { switch ( ((e = cT.random(this.upgradeNum)), (t = "wizard"), (this.shootPower = 15), e) ) { case 2: (t = "fireball"), (this.shootPower = 12); break; case 3: case 4: (t = "tornado"), (this.shootPower = 5); } 4 == this.upgradeNum && "tornado" == t && (t = "tempest"), this.game.ShootBullet(this, this.target, 0, 0, t); } else "boomerang" == this.type && 1 == De.field(this.game.mochiBoosters, "doublerang") ? this.game.ShootBullet(this, this.target, 0, 0, "none", !0) : this.game.ShootBullet(this, this.target); "ship" == this.type && 0 < this.upgradeNum && (this.game.ShootBullet( this, null, Math.cos(((this.__rotation - 120) * Math.PI) / 180), Math.sin(((this.__rotation - 120) * Math.PI) / 180), "grape" ), this.game.ShootBullet( this, null, Math.cos(((this.__rotation - 60) * Math.PI) / 180), Math.sin(((this.__rotation - 60) * Math.PI) / 180), "grape" ), this.game.ShootBullet( this, null, Math.cos(((this.__rotation - 105) * Math.PI) / 180), Math.sin(((this.__rotation - 105) * Math.PI) / 180), "grape" ), this.game.ShootBullet( this, null, Math.cos(((this.__rotation - 75) * Math.PI) / 180), Math.sin(((this.__rotation - 75) * Math.PI) / 180), "grape" )); } } else this.doBeaconUpdate(); }, __class__: b, })); var m = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.BananaFarm"] = m).__name__ = ["swf", "BananaFarm"]), (m.__super__ = b), (m.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: m, })); var bh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[544]; m.call(this, r, o); }; ((s.BananaFarm = bh).__name__ = ["BananaFarm"]), (bh.__super__ = m), (bh.prototype = n(m.prototype, { __class__: bh })); var w = function (e, t) { u.call(this, e, t), (this.vy = 0), (this.vx = 0), (this.hitRadius = 0), (this.hashit = !1), (this.alive = !0), this.set_cacheAsBitmap(!0), (this.isspread = !1), (this.pierceCount = 0), (this.icebreak = !1), (this.leadbreak = !1); }; ((s["swf.Bullet"] = w).__name__ = ["swf", "Bullet"]), (w.__super__ = u), (w.prototype = n(u.prototype, { DeleteMe: function () { (this.alive = !1), this.stop(), "dart" == this.type && 1 == De.field(this.game.mochiBoosters, "explosivedart") && this.game.ShootBullet( this.shooter, null, 0.01, 0.01, "dartsplosion" ), this.game.RemoveBullet(this); }, Update: function () { this.initdone ? (this.timealive++, this.timealive > this.lifespan ? this.DeleteMe() : (this.set_x(this.__transform.tx + this.vx), this.set_y(this.__transform.ty + this.vy))) : this.Init(); }, Init: function () { switch ( (this.set_cacheAsBitmap(!0), this.set_visible(!0), ("dart" != this.type && "super" != this.type) || "laser" == this.type || this.inner.set_x(this.inner.__transform.tx + 6), "ship" == this.type && null != this.inner && this.inner.set_x(this.inner.__transform.tx + 10), (this.timealive = 0), "mortar" != this.type && (this.exploded = !1), null != this.shooter && (this.hitRadius = this.shooter.bulHitRadius), this.type) ) { case "bomb": this.lifespan = 18; break; case "boomerang": (this.lifespan = 26), 3 < this.shooter.upgradeNum && (this.lifespan = 40); break; case "dart": this.lifespan = 7; break; case "dartsplosion": (this.lifespan = 7), (this.pierceMax = 5), (this.hitRadius = 20), (this.leadbreak = !0), (this.icebreak = !0); break; case "fireball": (this.lifespan = 15), (this.icebreak = !0), (this.leadbreak = !0); break; case "firering": (this.lifespan = 8), (this.pierceMax = 60), (this.leadbreak = this.icebreak = !0); break; case "frag": this.lifespan = 5; break; case "glue": (this.lifespan = 999999), (this.pierceMax = 20), (this.hitRadius = 13), (this.vx = this.vy = 0); break; case "gluetower": this.lifespan = 15; break; case "grape": (this.lifespan = 13), (this.pierceMax = 1), 4 == this.shooter.upgradeNum && (this.pierceMax = 3); break; case "ice": this.lifespan = 10; break; case "laser": case "super": this.lifespan = 20; break; case "monkeyace": (this.lifespan = 40), (this.pierceMax = 10); break; case "mortar": this.lifespan = 40; break; case "pineapple": (this.lifespan = 999999), (this.pierceMax = 40), (this.icebreak = !0), (this.leadbreak = !0), (this.hitRadius = 75), (this.vx = this.vy = 0); break; case "ship": (this.lifespan = 20), (this.hitRadius = 5), null != De.field(this.game.mochiBoosters, "dreadnaught") && (this.gotoAndStop(2), (this.leadbreak = !0), (this.icebreak = !0)); break; case "spikeopult": this.lifespan = 40; break; case "spikes": (this.lifespan = 999999), (this.pierceMax = 11), (this.hitRadius = 20), (this.vx = this.vy = 0); break; case "tack": this.lifespan = 7; break; case "tempest": case "tornado": (this.lifespan = 55), (this.hitRadius = 70), (this.icebreak = !0), (this.leadbreak = !0); break; case "wizard": this.lifespan = 15; } this.initdone = !0; }, __class__: w, })); var v = function (e, t) { w.call(this, e, t); }; ((s["swf.Blades"] = v).__name__ = ["swf", "Blades"]), (v.__super__ = w), (v.prototype = n(w.prototype, { __class__: v })); var mh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[655]; v.call(this, r, o); }; ((s.Blades = mh).__name__ = ["Blades"]), (mh.__super__ = v), (mh.prototype = n(v.prototype, { __class__: mh })); var y = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(5, CT(this, this.frame6)); }; ((s["swf.Bloon1"] = y).__name__ = ["swf", "Bloon1"]), (y.__super__ = u), (y.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame6: function () { this.stop(); }, __class__: y, })); var gh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[240]; y.call(this, r, o); }; ((s.Bloon_1 = gh).__name__ = ["Bloon_1"]), (gh.__super__ = y), (gh.prototype = n(y.prototype, { __class__: gh })); var T = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon10"] = T).__name__ = ["swf", "Bloon10"]), (T.__super__ = u), (T.prototype = n(u.prototype, { __class__: T })); var wh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[212]; T.call(this, r, o); }; ((s.Bloon_10 = wh).__name__ = ["Bloon_10"]), (wh.__super__ = T), (wh.prototype = n(T.prototype, { __class__: wh })); var S = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon11"] = S).__name__ = ["swf", "Bloon11"]), (S.__super__ = u), (S.prototype = n(u.prototype, { __class__: S })); var vh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[209]; S.call(this, r, o); }; ((s.Bloon_11 = vh).__name__ = ["Bloon_11"]), (vh.__super__ = S), (vh.prototype = n(S.prototype, { __class__: vh })); var x = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)); }; ((s["swf.Bloon12"] = x).__name__ = ["swf", "Bloon12"]), (x.__super__ = u), (x.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () {}, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, frame6: function () { this.stop(); }, frame8: function () { this.stop(); }, frame9: function () { this.stop(); }, frame7: function () { this.stop(); }, frame10: function () { this.stop(); }, __class__: x, })); var yh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[323]; x.call(this, r, o); }; ((s.Bloon_12 = yh).__name__ = ["Bloon_12"]), (yh.__super__ = x), (yh.prototype = n(x.prototype, { __class__: yh })); var E = function (e, t) { u.call(this, e, t), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.Bloon13"] = E).__name__ = ["swf", "Bloon13"]), (E.__super__ = u), (E.prototype = n(u.prototype, { frame2: function () { this.stop(); }, __class__: E, })); var Th = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[329]; E.call(this, r, o); }; ((s.Bloon_13 = Th).__name__ = ["Bloon_13"]), (Th.__super__ = E), (Th.prototype = n(E.prototype, { __class__: Th })); var P = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon14"] = P).__name__ = ["swf", "Bloon14"]), (P.__super__ = u), (P.prototype = n(u.prototype, { __class__: P })); var Sh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[823]; P.call(this, r, o); }; ((s.Bloon_14 = Sh).__name__ = ["Bloon_14"]), (Sh.__super__ = P), (Sh.prototype = n(P.prototype, { __class__: Sh })); var R = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(3, CT(this, this.frame4)); }; ((s["swf.Bloon2"] = R).__name__ = ["swf", "Bloon2"]), (R.__super__ = u), (R.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame4: function () { this.stop(); }, __class__: R, })); var xh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[237]; R.call(this, r, o); }; ((s.Bloon_2 = xh).__name__ = ["Bloon_2"]), (xh.__super__ = R), (xh.prototype = n(R.prototype, { __class__: xh })); var A = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon3"] = A).__name__ = ["swf", "Bloon3"]), (A.__super__ = u), (A.prototype = n(u.prototype, { __class__: A })); var Eh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[234]; A.call(this, r, o); }; ((s.Bloon_3 = Eh).__name__ = ["Bloon_3"]), (Eh.__super__ = A), (Eh.prototype = n(A.prototype, { __class__: Eh })); var I = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon4"] = I).__name__ = ["swf", "Bloon4"]), (I.__super__ = u), (I.prototype = n(u.prototype, { __class__: I })); var Ph = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[231]; I.call(this, r, o); }; ((s.Bloon_4 = Ph).__name__ = ["Bloon_4"]), (Ph.__super__ = I), (Ph.prototype = n(I.prototype, { __class__: Ph })); var C = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon5"] = C).__name__ = ["swf", "Bloon5"]), (C.__super__ = u), (C.prototype = n(u.prototype, { __class__: C })); var Rh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[229]; C.call(this, r, o); }; ((s.Bloon_5 = Rh).__name__ = ["Bloon_5"]), (Rh.__super__ = C), (Rh.prototype = n(C.prototype, { __class__: Rh })); var B = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon6"] = B).__name__ = ["swf", "Bloon6"]), (B.__super__ = u), (B.prototype = n(u.prototype, { __class__: B })); var Ah = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[226]; B.call(this, r, o); }; ((s.Bloon_6 = Ah).__name__ = ["Bloon_6"]), (Ah.__super__ = B), (Ah.prototype = n(B.prototype, { __class__: Ah })); var D = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon7"] = D).__name__ = ["swf", "Bloon7"]), (D.__super__ = u), (D.prototype = n(u.prototype, { __class__: D })); var Ih = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[223]; D.call(this, r, o); }; ((s.Bloon_7 = Ih).__name__ = ["Bloon_7"]), (Ih.__super__ = D), (Ih.prototype = n(D.prototype, { __class__: Ih })); var k = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon8"] = k).__name__ = ["swf", "Bloon8"]), (k.__super__ = u), (k.prototype = n(u.prototype, { __class__: k })); var Ch = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[220]; k.call(this, r, o); }; ((s.Bloon_8 = Ch).__name__ = ["Bloon_8"]), (Ch.__super__ = k), (Ch.prototype = n(k.prototype, { __class__: Ch })); var F = function (e, t) { u.call(this, e, t); }; ((s["swf.Bloon9"] = F).__name__ = ["swf", "Bloon9"]), (F.__super__ = u), (F.prototype = n(u.prototype, { __class__: F })); var Bh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[215]; F.call(this, r, o); }; ((s.Bloon_9 = Bh).__name__ = ["Bloon_9"]), (Bh.__super__ = F), (Bh.prototype = n(F.prototype, { __class__: Bh })); var M = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(14, CT(this, this.frame15)); }; ((s["swf.Bomb"] = M).__name__ = ["swf", "Bomb"]), (M.__super__ = w), (M.prototype = n(w.prototype, { frame15: function () { this.stop(); }, frame1: function () { this.stop(); }, frame2: function () { null != this.parent && (this.parent.parent.resolve("bombSnd").play(0, 1), (this.hitRadius *= 6)); }, frame3: function () { this.hitRadius = -1; }, __class__: M, })); var Dh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[680]; M.call(this, r, o); }; ((s.Bomb = Dh).__name__ = ["Bomb"]), (Dh.__super__ = M), (Dh.prototype = n(M.prototype, { __class__: Dh })); var L = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(24, CT(this, this.frame25)); }; ((s["swf.Boomerang"] = L).__name__ = ["swf", "Boomerang"]), (L.__super__ = w), (L.prototype = n(w.prototype, { frame25: function () { this.gotoAndStop(1); }, frame1: function () { this.set_visible(!1); }, frame2: function () { this.set_visible(!0); }, __class__: L, })); var kh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[701]; L.call(this, r, o); }; ((s.Boomerang = kh).__name__ = ["Boomerang"]), (kh.__super__ = L), (kh.prototype = n(L.prototype, { __class__: kh })); var N = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.BoomerangMonkey"] = N).__name__ = ["swf", "BoomerangMonkey"]), (N.__super__ = b), (N.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: N, })); var Fh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[518]; N.call(this, r, o); }; ((s.BoomerangMonkey = Fh).__name__ = ["BoomerangMonkey"]), (Fh.__super__ = N), (Fh.prototype = n(N.prototype, { __class__: Fh })); var Mh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[715]; w.call(this, r, o); }; ((s.Bullet = Mh).__name__ = ["Bullet"]), (Mh.__super__ = w), (Mh.prototype = n(w.prototype, { __class__: Mh })); var O = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.CannonTower"] = O).__name__ = ["swf", "CannonTower"]), (O.__super__ = b), (O.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: O, })); var Lh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[424]; O.call(this, r, o); }; ((s.CannonTower = Lh).__name__ = ["CannonTower"]), (Lh.__super__ = O), (Lh.prototype = n(O.prototype, { __class__: Lh })); var U = function (e, t) { w.call(this, e, t); }; ((s["swf.Dart"] = U).__name__ = ["swf", "Dart"]), (U.__super__ = w), (U.prototype = n(w.prototype, { __class__: U })); var Nh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[650]; U.call(this, r, o); }; ((s.Dart = Nh).__name__ = ["Dart"]), (Nh.__super__ = U), (Nh.prototype = n(U.prototype, { __class__: Nh })); var G = function (e, t) { w.call(this, e, t), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(6, CT(this, this.frame7)); }; ((s["swf.DartExplode"] = G).__name__ = ["swf", "DartExplode"]), (G.__super__ = w), (G.prototype = n(w.prototype, { frame7: function () { this.stop(), this.DeleteMe(); }, frame3: function () { this.hitRadius = -1; }, __class__: G, })); var Oh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[772]; G.call(this, r, o); }; ((s.DartExplode = Oh).__name__ = ["DartExplode"]), (Oh.__super__ = G), (Oh.prototype = n(G.prototype, { __class__: Oh })); var z = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.DartMonkey"] = z).__name__ = ["swf", "DartMonkey"]), (z.__super__ = b), (z.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: z, })); var Uh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[643]; z.call(this, r, o); }; ((s.DartMonkey = Uh).__name__ = ["DartMonkey"]), (Uh.__super__ = z), (Uh.prototype = n(z.prototype, { __class__: Uh })); var Zr = function () { this.onChange = new Vp(); }; ((s["lime.AssetLibrary"] = Zr).__name__ = ["lime", "AssetLibrary"]), (Zr.prototype = { exists: function (e, t) { return !1; }, getAudioBuffer: function (e) { return null; }, getBytes: function (e) { return null; }, getFont: function (e) { return null; }, getImage: function (e) { return null; }, getPath: function (e) { return null; }, getPathMap: function () { return null; }, getExtraSoundOptions: function (e) { return null; }, getText: function (e) { var t = this.getBytes(e); return null == t ? null : t.getString(0, t.length); }, isLocal: function (e, t) { return !0; }, list: function (e) { return null; }, load: function () { var e = this; return new bb(function () { return e; }); }, loadAudioBuffer: function (e) { var t = this; return new bb(function () { return t.getAudioBuffer(e); }); }, loadBytes: function (e) { var t = this; return new bb(function () { return t.getBytes(e); }); }, loadFont: function (e) { var t = this; return new bb(function () { return t.getFont(e); }); }, loadImage: function (e) { var t = this; return new bb(function () { return t.getImage(e); }); }, loadText: function (e) { return this.loadBytes(e).then(function (e) { return new bb(function () { return null == e ? null : e.getString(0, e.length); }); }); }, unload: function () {}, __class__: Zr, }); var X = function () { (this.extraSoundOptions = new up()), (this.fontData = new up()), (this.type = new up()), (this.path = new up()), (this.className = new up()), Zr.call(this); var e = new up(); _o.registerFont(uo), _o.registerFont(co), _o.registerFont(fo), _o.registerFont(po), _o.registerFont(bo), _o.registerFont(mo), _o.registerFont(go), _o.registerFont(wo), _o.registerFont(vo), _o.registerFont(yo), _o.registerFont(To), _o.registerFont(So), _o.registerFont(xo); var t = this.fontData, s = { ascent: 0.80859375, descent: 0.22265625 }; null != NT["Trebuchet MS"] ? t.setReserved("Trebuchet MS", s) : (t.h["Trebuchet MS"] = s); var n = this.fontData, i = { ascent: 0.7275390625, descent: 0 }; null != NT.Arial ? n.setReserved("Arial", i) : (n.h.Arial = i); var r = this.fontData, o = { ascent: 0.7275390625, descent: 0.0126953125 }; null != NT["Arial Black"] ? r.setReserved("Arial Black", o) : (r.h["Arial Black"] = o); var a = this.fontData, l = { ascent: 0.8642578125, descent: 0.1943359375 }; null != NT["Yikes!"] ? a.setReserved("Yikes!", l) : (a.h["Yikes!"] = l); var h = this.fontData, _ = { ascent: 0.7998046875, descent: 0 }; null != NT.Cartoonist ? h.setReserved("Cartoonist", _) : (h.h.Cartoonist = _); var u = this.fontData, d = { ascent: 0.759765625, descent: 0.015625 }; null != NT.Tahoma ? u.setReserved("Tahoma", d) : (u.h.Tahoma = d); var c = this.fontData, f = { ascent: 0.8671875, descent: 0.1904296875 }; null != NT["Yikes!"] ? c.setReserved("Yikes!", f) : (c.h["Yikes!"] = f); var p = this.fontData, b = { ascent: 0.6669921875, descent: 0 }; null != NT["Visitor TT2 BRK"] ? p.setReserved("Visitor TT2 BRK", b) : (p.h["Visitor TT2 BRK"] = b); var m = this.fontData, g = { ascent: 0.8017578125, descent: 0.208984375 }; null != NT["Trebuchet MS"] ? m.setReserved("Trebuchet MS", g) : (m.h["Trebuchet MS"] = g); var w = this.fontData, v = { ascent: 0.759765625, descent: 0.015625 }; null != NT.Verdana ? w.setReserved("Verdana", v) : (w.h.Verdana = v); var y = this.fontData, T = { ascent: 0.7197265625, descent: 0.0556640625 }; null != NT["McBoing Boing"] ? y.setReserved("McBoing Boing", T) : (y.h["McBoing Boing"] = T); var S = this.fontData, x = { ascent: 0.7998046875, descent: 0 }; null != NT.Cartoonist ? S.setReserved("Cartoonist", x) : (S.h.Cartoonist = x); var E = this.fontData, P = { ascent: 0.7646484375, descent: 0.20703125 }; null != NT.Tahoma ? E.setReserved("Tahoma", P) : (E.h.Tahoma = P); var R = "assets/sounds/2.m4a", A = this.path; null != NT[R] ? A.setReserved(R, R) : (A.h[R] = R); var I = this.type; null != NT[R] ? I.setReserved(R, "SOUND") : (I.h[R] = "SOUND"), (R = "assets/sounds/8_Pop3.mp3"); var C = this.path; null != NT[R] ? C.setReserved(R, R) : (C.h[R] = R); var B = this.type; null != NT[R] ? B.setReserved(R, "MUSIC") : (B.h[R] = "MUSIC"), (R = "assets/sounds/14_FireRingSnd.m4a"); var D = this.path; null != NT[R] ? D.setReserved(R, R) : (D.h[R] = R); var k = this.type; null != NT[R] ? k.setReserved(R, "SOUND") : (k.h[R] = "SOUND"), (R = "assets/sounds/6_SelltowerSnd.mp3"); var F = this.path; null != NT[R] ? F.setReserved(R, R) : (F.h[R] = R); var M = this.type; null != NT[R] ? M.setReserved(R, "MUSIC") : (M.h[R] = "MUSIC"), (R = "assets/sounds/0.wav"); var L = this.path; null != NT[R] ? L.setReserved(R, R) : (L.h[R] = R); var N = this.type; null != NT[R] ? N.setReserved(R, "SOUND") : (N.h[R] = "SOUND"), (R = "assets/sounds/18_metalclink.m4a"); var O = this.path; null != NT[R] ? O.setReserved(R, R) : (O.h[R] = R); var U = this.type; null != NT[R] ? U.setReserved(R, "SOUND") : (U.h[R] = "SOUND"), (R = "assets/sounds/5_IceSnd.mp3"); var G = this.path; null != NT[R] ? G.setReserved(R, R) : (G.h[R] = R); var z = this.type; null != NT[R] ? z.setReserved(R, "MUSIC") : (z.h[R] = "MUSIC"), (R = "assets/sounds/18_metalclink.mp3"); var X = this.path; null != NT[R] ? X.setReserved(R, R) : (X.h[R] = R); var H = this.type; null != NT[R] ? H.setReserved(R, "MUSIC") : (H.h[R] = "MUSIC"), (R = "assets/sounds/1907.m4a"); var V = this.path; null != NT[R] ? V.setReserved(R, R) : (V.h[R] = R); var Y = this.type; null != NT[R] ? Y.setReserved(R, "SOUND") : (Y.h[R] = "SOUND"), (R = "assets/sounds/7_Pop4.m4a"); var W = this.path; null != NT[R] ? W.setReserved(R, R) : (W.h[R] = R); var j = this.type; null != NT[R] ? j.setReserved(R, "SOUND") : (j.h[R] = "SOUND"), (R = "assets/sounds/2_Btd4Music.m4a"); var K = this.path; null != NT[R] ? K.setReserved(R, R) : (K.h[R] = R); var q = this.type; null != NT[R] ? q.setReserved(R, "MUSIC") : (q.h[R] = "MUSIC"), (R = "assets/sounds/3_CollectUnlockSnd.mp3"); var Z = this.path; null != NT[R] ? Z.setReserved(R, R) : (Z.h[R] = R); var J = this.type; null != NT[R] ? J.setReserved(R, "MUSIC") : (J.h[R] = "MUSIC"), (R = "assets/sounds/2135.mp3"); var Q = this.path; null != NT[R] ? Q.setReserved(R, R) : (Q.h[R] = R); var $ = this.type; null != NT[R] ? $.setReserved(R, "MUSIC") : ($.h[R] = "MUSIC"), (R = "assets/sounds/16_CeramicSnd.m4a"); var ee = this.path; null != NT[R] ? ee.setReserved(R, R) : (ee.h[R] = R); var te = this.type; null != NT[R] ? te.setReserved(R, "SOUND") : (te.h[R] = "SOUND"), (R = "assets/sounds/4_TornadoSnd.m4a"); var se = this.path; null != NT[R] ? se.setReserved(R, R) : (se.h[R] = R); var ne = this.type; null != NT[R] ? ne.setReserved(R, "SOUND") : (ne.h[R] = "SOUND"), (R = "assets/sounds/9_Pop2.m4a"); var ie = this.path; null != NT[R] ? ie.setReserved(R, R) : (ie.h[R] = R); var re = this.type; null != NT[R] ? re.setReserved(R, "SOUND") : (re.h[R] = "SOUND"), (R = "assets/sounds/19_BombSnd.m4a"); var oe = this.path; null != NT[R] ? oe.setReserved(R, R) : (oe.h[R] = R); var ae = this.type; null != NT[R] ? ae.setReserved(R, "SOUND") : (ae.h[R] = "SOUND"), (R = "assets/sounds/11_TowerPlaceSnd.m4a"); var le = this.path; null != NT[R] ? le.setReserved(R, R) : (le.h[R] = R); var he = this.type; null != NT[R] ? he.setReserved(R, "SOUND") : (he.h[R] = "SOUND"), (R = "assets/sounds/19_BombSnd.mp3"); var _e = this.path; null != NT[R] ? _e.setReserved(R, R) : (_e.h[R] = R); var ue = this.type; null != NT[R] ? ue.setReserved(R, "MUSIC") : (ue.h[R] = "MUSIC"), (R = "assets/sounds/3_CollectUnlockSnd.m4a"); var de = this.path; null != NT[R] ? de.setReserved(R, R) : (de.h[R] = R); var ce = this.type; null != NT[R] ? ce.setReserved(R, "SOUND") : (ce.h[R] = "SOUND"), (R = "assets/sounds/4_TornadoSnd.mp3"); var fe = this.path; null != NT[R] ? fe.setReserved(R, R) : (fe.h[R] = R); var pe = this.type; null != NT[R] ? pe.setReserved(R, "MUSIC") : (pe.h[R] = "MUSIC"), (R = "assets/sounds/13_RankUpSnd.mp3"); var be = this.path; null != NT[R] ? be.setReserved(R, R) : (be.h[R] = R); var me = this.type; null != NT[R] ? me.setReserved(R, "MUSIC") : (me.h[R] = "MUSIC"), (R = "assets/sounds/7_Pop4.mp3"); var ge = this.path; null != NT[R] ? ge.setReserved(R, R) : (ge.h[R] = R); var we = this.type; null != NT[R] ? we.setReserved(R, "MUSIC") : (we.h[R] = "MUSIC"), (R = "assets/sounds/17_splat.m4a"); var ve = this.path; null != NT[R] ? ve.setReserved(R, R) : (ve.h[R] = R); var ye = this.type; null != NT[R] ? ye.setReserved(R, "SOUND") : (ye.h[R] = "SOUND"), (R = "assets/sounds/1_ZeppHitSnd.m4a"); var Te = this.path; null != NT[R] ? Te.setReserved(R, R) : (Te.h[R] = R); var Se = this.type; null != NT[R] ? Se.setReserved(R, "SOUND") : (Se.h[R] = "SOUND"), (R = "assets/sounds/13_RankUpSnd.m4a"); var xe = this.path; null != NT[R] ? xe.setReserved(R, R) : (xe.h[R] = R); var Ee = this.type; null != NT[R] ? Ee.setReserved(R, "SOUND") : (Ee.h[R] = "SOUND"), (R = "assets/sounds/8_Pop3.m4a"); var Pe = this.path; null != NT[R] ? Pe.setReserved(R, R) : (Pe.h[R] = R); var Re = this.type; null != NT[R] ? Re.setReserved(R, "SOUND") : (Re.h[R] = "SOUND"), (R = "assets/sounds/0.m4a"); var Ae = this.path; null != NT[R] ? Ae.setReserved(R, R) : (Ae.h[R] = R); var Ie = this.type; null != NT[R] ? Ie.setReserved(R, "SOUND") : (Ie.h[R] = "SOUND"), (R = "assets/sounds/1_ZeppHitSnd.mp3"); var Ce = this.path; null != NT[R] ? Ce.setReserved(R, R) : (Ce.h[R] = R); var Be = this.type; null != NT[R] ? Be.setReserved(R, "MUSIC") : (Be.h[R] = "MUSIC"), (R = "assets/sounds/2_Btd4Music.mp3"); var De = this.path; null != NT[R] ? De.setReserved(R, R) : (De.h[R] = R); var ke = this.type; null != NT[R] ? ke.setReserved(R, "MUSIC") : (ke.h[R] = "MUSIC"), (R = "assets/sounds/2135.m4a"); var Fe = this.path; null != NT[R] ? Fe.setReserved(R, R) : (Fe.h[R] = R); var Me = this.type; null != NT[R] ? Me.setReserved(R, "SOUND") : (Me.h[R] = "SOUND"), (R = "assets/sounds/6_SelltowerSnd.m4a"); var Le = this.path; null != NT[R] ? Le.setReserved(R, R) : (Le.h[R] = R); var Ne = this.type; null != NT[R] ? Ne.setReserved(R, "SOUND") : (Ne.h[R] = "SOUND"), (R = "assets/sounds/9_Pop2.mp3"); var Oe = this.path; null != NT[R] ? Oe.setReserved(R, R) : (Oe.h[R] = R); var Ue = this.type; null != NT[R] ? Ue.setReserved(R, "MUSIC") : (Ue.h[R] = "MUSIC"), (R = "assets/sounds/1907.mp3"); var Ge = this.path; null != NT[R] ? Ge.setReserved(R, R) : (Ge.h[R] = R); var ze = this.type; null != NT[R] ? ze.setReserved(R, "MUSIC") : (ze.h[R] = "MUSIC"), (R = "assets/sounds/15_ZeppSmash.m4a"); var Xe = this.path; null != NT[R] ? Xe.setReserved(R, R) : (Xe.h[R] = R); var He = this.type; null != NT[R] ? He.setReserved(R, "SOUND") : (He.h[R] = "SOUND"), (R = "assets/sounds/14_FireRingSnd.mp3"); var Ve = this.path; null != NT[R] ? Ve.setReserved(R, R) : (Ve.h[R] = R); var Ye = this.type; null != NT[R] ? Ye.setReserved(R, "MUSIC") : (Ye.h[R] = "MUSIC"), (R = "assets/sounds/15_ZeppSmash.mp3"); var We = this.path; null != NT[R] ? We.setReserved(R, R) : (We.h[R] = R); var je = this.type; null != NT[R] ? je.setReserved(R, "MUSIC") : (je.h[R] = "MUSIC"), (R = "assets/sounds/2179.mp3"); var Ke = this.path; null != NT[R] ? Ke.setReserved(R, R) : (Ke.h[R] = R); var qe = this.type; null != NT[R] ? qe.setReserved(R, "MUSIC") : (qe.h[R] = "MUSIC"), (R = "assets/sounds/12_PineSnd.mp3"); var Ze = this.path; null != NT[R] ? Ze.setReserved(R, R) : (Ze.h[R] = R); var Je = this.type; null != NT[R] ? Je.setReserved(R, "MUSIC") : (Je.h[R] = "MUSIC"), (R = "assets/sounds/687.mp3"); var Qe = this.path; null != NT[R] ? Qe.setReserved(R, R) : (Qe.h[R] = R); var $e = this.type; null != NT[R] ? $e.setReserved(R, "MUSIC") : ($e.h[R] = "MUSIC"), (R = "assets/sounds/10_Pop1.m4a"); var et = this.path; null != NT[R] ? et.setReserved(R, R) : (et.h[R] = R); var tt = this.type; null != NT[R] ? tt.setReserved(R, "SOUND") : (tt.h[R] = "SOUND"), (R = "assets/sounds/12_PineSnd.m4a"); var st = this.path; null != NT[R] ? st.setReserved(R, R) : (st.h[R] = R); var nt = this.type; null != NT[R] ? nt.setReserved(R, "SOUND") : (nt.h[R] = "SOUND"), (R = "assets/sounds/17_splat.mp3"); var it = this.path; null != NT[R] ? it.setReserved(R, R) : (it.h[R] = R); var rt = this.type; null != NT[R] ? rt.setReserved(R, "MUSIC") : (rt.h[R] = "MUSIC"), (R = "assets/sounds/11_TowerPlaceSnd.mp3"); var ot = this.path; null != NT[R] ? ot.setReserved(R, R) : (ot.h[R] = R); var at = this.type; null != NT[R] ? at.setReserved(R, "MUSIC") : (at.h[R] = "MUSIC"), (R = "assets/sounds/687.m4a"); var lt = this.path; null != NT[R] ? lt.setReserved(R, R) : (lt.h[R] = R); var ht = this.type; null != NT[R] ? ht.setReserved(R, "SOUND") : (ht.h[R] = "SOUND"), (R = "assets/sounds/10_Pop1.mp3"); var _t = this.path; null != NT[R] ? _t.setReserved(R, R) : (_t.h[R] = R); var ut = this.type; null != NT[R] ? ut.setReserved(R, "MUSIC") : (ut.h[R] = "MUSIC"), (R = "assets/sounds/5_IceSnd.m4a"); var dt = this.path; null != NT[R] ? dt.setReserved(R, R) : (dt.h[R] = R); var ct = this.type; null != NT[R] ? ct.setReserved(R, "SOUND") : (ct.h[R] = "SOUND"), (R = "assets/sounds/16_CeramicSnd.mp3"); var ft = this.path; null != NT[R] ? ft.setReserved(R, R) : (ft.h[R] = R); var pt = this.type; null != NT[R] ? pt.setReserved(R, "MUSIC") : (pt.h[R] = "MUSIC"), (R = "assets/sounds/2179.m4a"); var bt = this.path; null != NT[R] ? bt.setReserved(R, R) : (bt.h[R] = R); var mt = this.type; null != NT[R] ? mt.setReserved(R, "SOUND") : (mt.h[R] = "SOUND"), (R = "assets/fonts/743_Trebuchet MS.svg"); var gt = this.path; null != NT[R] ? gt.setReserved(R, R) : (gt.h[R] = R); var wt = this.type; null != NT[R] ? wt.setReserved(R, "TEXT") : (wt.h[R] = "TEXT"), (R = "assets/fonts/1582_Trebuchet MS.woff"); var vt = this.path; null != NT[R] ? vt.setReserved(R, R) : (vt.h[R] = R); var yt = this.type; null != NT[R] ? yt.setReserved(R, "BINARY") : (yt.h[R] = "BINARY"), (R = "assets/fonts/526_Arial Black.woff2"); var Tt = this.path; null != NT[R] ? Tt.setReserved(R, R) : (Tt.h[R] = R); var St = this.type; null != NT[R] ? St.setReserved(R, "BINARY") : (St.h[R] = "BINARY"), (R = "assets/fonts/849_Yikes!.json"); var xt = this.path; null != NT[R] ? xt.setReserved(R, R) : (xt.h[R] = R); var Et = this.type; null != NT[R] ? Et.setReserved(R, "TEXT") : (Et.h[R] = "TEXT"), (R = "assets/fonts/164_Yikes!.svg"); var Pt = this.path; null != NT[R] ? Pt.setReserved(R, R) : (Pt.h[R] = R); var Rt = this.type; null != NT[R] ? Rt.setReserved(R, "TEXT") : (Rt.h[R] = "TEXT"), (R = "assets/fonts/1546_Visitor TT2 BRK.svg"); var At = this.path; null != NT[R] ? At.setReserved(R, R) : (At.h[R] = R); var It = this.type; null != NT[R] ? It.setReserved(R, "TEXT") : (It.h[R] = "TEXT"), (R = "assets/fonts/899_McBoing Boing.eot"); var Ct = this.path; null != NT[R] ? Ct.setReserved(R, R) : (Ct.h[R] = R); var Bt = this.type; null != NT[R] ? Bt.setReserved(R, "BINARY") : (Bt.h[R] = "BINARY"), (R = "assets/fonts/899_McBoing Boing.woff"); var Dt = this.path; null != NT[R] ? Dt.setReserved(R, R) : (Dt.h[R] = R); var kt = this.type; null != NT[R] ? kt.setReserved(R, "BINARY") : (kt.h[R] = "BINARY"), (R = "assets/fonts/526_Arial Black.svg"); var Ft = this.path; null != NT[R] ? Ft.setReserved(R, R) : (Ft.h[R] = R); var Mt = this.type; null != NT[R] ? Mt.setReserved(R, "TEXT") : (Mt.h[R] = "TEXT"), (R = "assets/fonts/831_Verdana.eot"); var Lt = this.path; null != NT[R] ? Lt.setReserved(R, R) : (Lt.h[R] = R); var Nt = this.type; null != NT[R] ? Nt.setReserved(R, "BINARY") : (Nt.h[R] = "BINARY"), (R = "assets/fonts/899_McBoing Boing.svg"); var Ot = this.path; null != NT[R] ? Ot.setReserved(R, R) : (Ot.h[R] = R); var Ut = this.type; null != NT[R] ? Ut.setReserved(R, "TEXT") : (Ut.h[R] = "TEXT"), (R = "assets/fonts/1404_Cartoonist.svg"); var Gt = this.path; null != NT[R] ? Gt.setReserved(R, R) : (Gt.h[R] = R); var zt = this.type; null != NT[R] ? zt.setReserved(R, "TEXT") : (zt.h[R] = "TEXT"), (R = "assets/fonts/1865_Arial.svg"); var Xt = this.path; null != NT[R] ? Xt.setReserved(R, R) : (Xt.h[R] = R); var Ht = this.type; null != NT[R] ? Ht.setReserved(R, "TEXT") : (Ht.h[R] = "TEXT"), (R = "assets/fonts/743_Trebuchet MS.ttf"); var Vt = this.className, Yt = Jr; null != NT[R] ? Vt.setReserved(R, Yt) : (Vt.h[R] = Yt); var Wt = this.type; null != NT[R] ? Wt.setReserved(R, "FONT") : (Wt.h[R] = "FONT"), (R = "assets/fonts/1582_Trebuchet MS.svg"); var jt = this.path; null != NT[R] ? jt.setReserved(R, R) : (jt.h[R] = R); var Kt = this.type; null != NT[R] ? Kt.setReserved(R, "TEXT") : (Kt.h[R] = "TEXT"), (R = "assets/fonts/1546_Visitor TT2 BRK.woff"); var qt = this.path; null != NT[R] ? qt.setReserved(R, R) : (qt.h[R] = R); var Zt = this.type; null != NT[R] ? Zt.setReserved(R, "BINARY") : (Zt.h[R] = "BINARY"), (R = "assets/fonts/743_Trebuchet MS.eot"); var Jt = this.path; null != NT[R] ? Jt.setReserved(R, R) : (Jt.h[R] = R); var Qt = this.type; null != NT[R] ? Qt.setReserved(R, "BINARY") : (Qt.h[R] = "BINARY"), (R = "assets/fonts/1404_Cartoonist.json"); var $t = this.path; null != NT[R] ? $t.setReserved(R, R) : ($t.h[R] = R); var es = this.type; null != NT[R] ? es.setReserved(R, "TEXT") : (es.h[R] = "TEXT"), (R = "assets/fonts/2103_Tahoma.woff2"); var ts = this.path; null != NT[R] ? ts.setReserved(R, R) : (ts.h[R] = R); var ss = this.type; null != NT[R] ? ss.setReserved(R, "BINARY") : (ss.h[R] = "BINARY"), (R = "assets/fonts/717_Tahoma.woff2"); var ns = this.path; null != NT[R] ? ns.setReserved(R, R) : (ns.h[R] = R); var is = this.type; null != NT[R] ? is.setReserved(R, "BINARY") : (is.h[R] = "BINARY"), (R = "assets/fonts/1582_Trebuchet MS.eot"); var rs = this.path; null != NT[R] ? rs.setReserved(R, R) : (rs.h[R] = R); var os = this.type; null != NT[R] ? os.setReserved(R, "BINARY") : (os.h[R] = "BINARY"), (R = "assets/fonts/1865_Arial.ttf"); var as = this.className, ls = Qr; null != NT[R] ? as.setReserved(R, ls) : (as.h[R] = ls); var hs = this.type; null != NT[R] ? hs.setReserved(R, "FONT") : (hs.h[R] = "FONT"), (R = "assets/fonts/1455_Cartoonist.json"); var _s = this.path; null != NT[R] ? _s.setReserved(R, R) : (_s.h[R] = R); var us = this.type; null != NT[R] ? us.setReserved(R, "TEXT") : (us.h[R] = "TEXT"), (R = "assets/fonts/164_Yikes!.json"); var ds = this.path; null != NT[R] ? ds.setReserved(R, R) : (ds.h[R] = R); var cs = this.type; null != NT[R] ? cs.setReserved(R, "TEXT") : (cs.h[R] = "TEXT"), (R = "assets/fonts/849_Yikes!.woff2"); var fs = this.path; null != NT[R] ? fs.setReserved(R, R) : (fs.h[R] = R); var ps = this.type; null != NT[R] ? ps.setReserved(R, "BINARY") : (ps.h[R] = "BINARY"), (R = "assets/fonts/899_McBoing Boing.json"); var bs = this.path; null != NT[R] ? bs.setReserved(R, R) : (bs.h[R] = R); var ms = this.type; null != NT[R] ? ms.setReserved(R, "TEXT") : (ms.h[R] = "TEXT"), (R = "assets/fonts/1404_Cartoonist.eot"); var gs = this.path; null != NT[R] ? gs.setReserved(R, R) : (gs.h[R] = R); var ws = this.type; null != NT[R] ? ws.setReserved(R, "BINARY") : (ws.h[R] = "BINARY"), (R = "assets/fonts/1546_Visitor TT2 BRK.json"); var vs = this.path; null != NT[R] ? vs.setReserved(R, R) : (vs.h[R] = R); var ys = this.type; null != NT[R] ? ys.setReserved(R, "TEXT") : (ys.h[R] = "TEXT"), (R = "assets/fonts/743_Trebuchet MS.json"); var Ts = this.path; null != NT[R] ? Ts.setReserved(R, R) : (Ts.h[R] = R); var Ss = this.type; null != NT[R] ? Ss.setReserved(R, "TEXT") : (Ss.h[R] = "TEXT"), (R = "assets/fonts/1455_Cartoonist.eot"); var xs = this.path; null != NT[R] ? xs.setReserved(R, R) : (xs.h[R] = R); var Es = this.type; null != NT[R] ? Es.setReserved(R, "BINARY") : (Es.h[R] = "BINARY"), (R = "assets/fonts/526_Arial Black.json"); var Ps = this.path; null != NT[R] ? Ps.setReserved(R, R) : (Ps.h[R] = R); var Rs = this.type; null != NT[R] ? Rs.setReserved(R, "TEXT") : (Rs.h[R] = "TEXT"), (R = "assets/fonts/831_Verdana.woff2"); var As = this.path; null != NT[R] ? As.setReserved(R, R) : (As.h[R] = R); var Is = this.type; null != NT[R] ? Is.setReserved(R, "BINARY") : (Is.h[R] = "BINARY"), (R = "assets/fonts/526_Arial Black.ttf"); var Cs = this.className, Bs = $r; null != NT[R] ? Cs.setReserved(R, Bs) : (Cs.h[R] = Bs); var Ds = this.type; null != NT[R] ? Ds.setReserved(R, "FONT") : (Ds.h[R] = "FONT"), (R = "assets/fonts/1546_Visitor TT2 BRK.woff2"); var ks = this.path; null != NT[R] ? ks.setReserved(R, R) : (ks.h[R] = R); var Fs = this.type; null != NT[R] ? Fs.setReserved(R, "BINARY") : (Fs.h[R] = "BINARY"), (R = "assets/fonts/164_Yikes!.woff2"); var Ms = this.path; null != NT[R] ? Ms.setReserved(R, R) : (Ms.h[R] = R); var Ls = this.type; null != NT[R] ? Ls.setReserved(R, "BINARY") : (Ls.h[R] = "BINARY"), (R = "assets/fonts/849_Yikes!.ttf"); var Ns = this.className, Os = eo; null != NT[R] ? Ns.setReserved(R, Os) : (Ns.h[R] = Os); var Us = this.type; null != NT[R] ? Us.setReserved(R, "FONT") : (Us.h[R] = "FONT"), (R = "assets/fonts/1404_Cartoonist.ttf"); var Gs = this.className, zs = to; null != NT[R] ? Gs.setReserved(R, zs) : (Gs.h[R] = zs); var Xs = this.type; null != NT[R] ? Xs.setReserved(R, "FONT") : (Xs.h[R] = "FONT"), (R = "assets/fonts/2103_Tahoma.eot"); var Hs = this.path; null != NT[R] ? Hs.setReserved(R, R) : (Hs.h[R] = R); var Vs = this.type; null != NT[R] ? Vs.setReserved(R, "BINARY") : (Vs.h[R] = "BINARY"), (R = "assets/fonts/164_Yikes!.woff"); var Ys = this.path; null != NT[R] ? Ys.setReserved(R, R) : (Ys.h[R] = R); var Ws = this.type; null != NT[R] ? Ws.setReserved(R, "BINARY") : (Ws.h[R] = "BINARY"), (R = "assets/fonts/1404_Cartoonist.woff2"); var js = this.path; null != NT[R] ? js.setReserved(R, R) : (js.h[R] = R); var Ks = this.type; null != NT[R] ? Ks.setReserved(R, "BINARY") : (Ks.h[R] = "BINARY"), (R = "assets/fonts/849_Yikes!.woff"); var qs = this.path; null != NT[R] ? qs.setReserved(R, R) : (qs.h[R] = R); var Zs = this.type; null != NT[R] ? Zs.setReserved(R, "BINARY") : (Zs.h[R] = "BINARY"), (R = "assets/fonts/2103_Tahoma.ttf"); var Js = this.className, Qs = so; null != NT[R] ? Js.setReserved(R, Qs) : (Js.h[R] = Qs); var $s = this.type; null != NT[R] ? $s.setReserved(R, "FONT") : ($s.h[R] = "FONT"), (R = "assets/fonts/1865_Arial.woff"); var en = this.path; null != NT[R] ? en.setReserved(R, R) : (en.h[R] = R); var tn = this.type; null != NT[R] ? tn.setReserved(R, "BINARY") : (tn.h[R] = "BINARY"), (R = "assets/fonts/717_Tahoma.json"); var sn = this.path; null != NT[R] ? sn.setReserved(R, R) : (sn.h[R] = R); var nn = this.type; null != NT[R] ? nn.setReserved(R, "TEXT") : (nn.h[R] = "TEXT"), (R = "assets/fonts/849_Yikes!.svg"); var rn = this.path; null != NT[R] ? rn.setReserved(R, R) : (rn.h[R] = R); var on = this.type; null != NT[R] ? on.setReserved(R, "TEXT") : (on.h[R] = "TEXT"), (R = "assets/fonts/1582_Trebuchet MS.woff2"); var an = this.path; null != NT[R] ? an.setReserved(R, R) : (an.h[R] = R); var ln = this.type; null != NT[R] ? ln.setReserved(R, "BINARY") : (ln.h[R] = "BINARY"), (R = "assets/fonts/164_Yikes!.eot"); var hn = this.path; null != NT[R] ? hn.setReserved(R, R) : (hn.h[R] = R); var _n = this.type; null != NT[R] ? _n.setReserved(R, "BINARY") : (_n.h[R] = "BINARY"), (R = "assets/fonts/743_Trebuchet MS.woff"); var un = this.path; null != NT[R] ? un.setReserved(R, R) : (un.h[R] = R); var dn = this.type; null != NT[R] ? dn.setReserved(R, "BINARY") : (dn.h[R] = "BINARY"), (R = "assets/fonts/1865_Arial.eot"); var cn = this.path; null != NT[R] ? cn.setReserved(R, R) : (cn.h[R] = R); var fn = this.type; null != NT[R] ? fn.setReserved(R, "BINARY") : (fn.h[R] = "BINARY"), (R = "assets/fonts/717_Tahoma.woff"); var pn = this.path; null != NT[R] ? pn.setReserved(R, R) : (pn.h[R] = R); var bn = this.type; null != NT[R] ? bn.setReserved(R, "BINARY") : (bn.h[R] = "BINARY"), (R = "assets/fonts/831_Verdana.json"); var mn = this.path; null != NT[R] ? mn.setReserved(R, R) : (mn.h[R] = R); var gn = this.type; null != NT[R] ? gn.setReserved(R, "TEXT") : (gn.h[R] = "TEXT"), (R = "assets/fonts/2103_Tahoma.woff"); var wn = this.path; null != NT[R] ? wn.setReserved(R, R) : (wn.h[R] = R); var vn = this.type; null != NT[R] ? vn.setReserved(R, "BINARY") : (vn.h[R] = "BINARY"), (R = "assets/fonts/743_Trebuchet MS.woff2"); var yn = this.path; null != NT[R] ? yn.setReserved(R, R) : (yn.h[R] = R); var Tn = this.type; null != NT[R] ? Tn.setReserved(R, "BINARY") : (Tn.h[R] = "BINARY"), (R = "assets/fonts/164_Yikes!.ttf"); var Sn = this.className, xn = no; null != NT[R] ? Sn.setReserved(R, xn) : (Sn.h[R] = xn); var En = this.type; null != NT[R] ? En.setReserved(R, "FONT") : (En.h[R] = "FONT"), (R = "assets/fonts/831_Verdana.svg"); var Pn = this.path; null != NT[R] ? Pn.setReserved(R, R) : (Pn.h[R] = R); var Rn = this.type; null != NT[R] ? Rn.setReserved(R, "TEXT") : (Rn.h[R] = "TEXT"), (R = "assets/fonts/1455_Cartoonist.woff2"); var An = this.path; null != NT[R] ? An.setReserved(R, R) : (An.h[R] = R); var In = this.type; null != NT[R] ? In.setReserved(R, "BINARY") : (In.h[R] = "BINARY"), (R = "assets/fonts/1546_Visitor TT2 BRK.ttf"); var Cn = this.className, Bn = io; null != NT[R] ? Cn.setReserved(R, Bn) : (Cn.h[R] = Bn); var Dn = this.type; null != NT[R] ? Dn.setReserved(R, "FONT") : (Dn.h[R] = "FONT"), (R = "assets/fonts/1582_Trebuchet MS.ttf"); var kn = this.className, Fn = ro; null != NT[R] ? kn.setReserved(R, Fn) : (kn.h[R] = Fn); var Mn = this.type; null != NT[R] ? Mn.setReserved(R, "FONT") : (Mn.h[R] = "FONT"), (R = "assets/fonts/2103_Tahoma.svg"); var Ln = this.path; null != NT[R] ? Ln.setReserved(R, R) : (Ln.h[R] = R); var Nn = this.type; null != NT[R] ? Nn.setReserved(R, "TEXT") : (Nn.h[R] = "TEXT"), (R = "assets/fonts/717_Tahoma.eot"); var On = this.path; null != NT[R] ? On.setReserved(R, R) : (On.h[R] = R); var Un = this.type; null != NT[R] ? Un.setReserved(R, "BINARY") : (Un.h[R] = "BINARY"), (R = "assets/fonts/831_Verdana.ttf"); var Gn = this.className, zn = oo; null != NT[R] ? Gn.setReserved(R, zn) : (Gn.h[R] = zn); var Xn = this.type; null != NT[R] ? Xn.setReserved(R, "FONT") : (Xn.h[R] = "FONT"), (R = "assets/fonts/717_Tahoma.svg"); var Hn = this.path; null != NT[R] ? Hn.setReserved(R, R) : (Hn.h[R] = R); var Vn = this.type; null != NT[R] ? Vn.setReserved(R, "TEXT") : (Vn.h[R] = "TEXT"), (R = "assets/fonts/849_Yikes!.eot"); var Yn = this.path; null != NT[R] ? Yn.setReserved(R, R) : (Yn.h[R] = R); var Wn = this.type; null != NT[R] ? Wn.setReserved(R, "BINARY") : (Wn.h[R] = "BINARY"), (R = "assets/fonts/899_McBoing Boing.woff2"); var jn = this.path; null != NT[R] ? jn.setReserved(R, R) : (jn.h[R] = R); var Kn = this.type; null != NT[R] ? Kn.setReserved(R, "BINARY") : (Kn.h[R] = "BINARY"), (R = "assets/fonts/899_McBoing Boing.ttf"); var qn = this.className, Zn = ao; null != NT[R] ? qn.setReserved(R, Zn) : (qn.h[R] = Zn); var Jn = this.type; null != NT[R] ? Jn.setReserved(R, "FONT") : (Jn.h[R] = "FONT"), (R = "assets/fonts/1455_Cartoonist.svg"); var Qn = this.path; null != NT[R] ? Qn.setReserved(R, R) : (Qn.h[R] = R); var $n = this.type; null != NT[R] ? $n.setReserved(R, "TEXT") : ($n.h[R] = "TEXT"), (R = "assets/fonts/1546_Visitor TT2 BRK.eot"); var ei = this.path; null != NT[R] ? ei.setReserved(R, R) : (ei.h[R] = R); var ti = this.type; null != NT[R] ? ti.setReserved(R, "BINARY") : (ti.h[R] = "BINARY"), (R = "assets/fonts/526_Arial Black.woff"); var si = this.path; null != NT[R] ? si.setReserved(R, R) : (si.h[R] = R); var ni = this.type; null != NT[R] ? ni.setReserved(R, "BINARY") : (ni.h[R] = "BINARY"), (R = "assets/fonts/1404_Cartoonist.woff"); var ii = this.path; null != NT[R] ? ii.setReserved(R, R) : (ii.h[R] = R); var ri = this.type; null != NT[R] ? ri.setReserved(R, "BINARY") : (ri.h[R] = "BINARY"), (R = "assets/fonts/2103_Tahoma.json"); var oi = this.path; null != NT[R] ? oi.setReserved(R, R) : (oi.h[R] = R); var ai = this.type; null != NT[R] ? ai.setReserved(R, "TEXT") : (ai.h[R] = "TEXT"), (R = "assets/fonts/1455_Cartoonist.ttf"); var li = this.className, hi = lo; null != NT[R] ? li.setReserved(R, hi) : (li.h[R] = hi); var _i = this.type; null != NT[R] ? _i.setReserved(R, "FONT") : (_i.h[R] = "FONT"), (R = "assets/fonts/1455_Cartoonist.woff"); var ui = this.path; null != NT[R] ? ui.setReserved(R, R) : (ui.h[R] = R); var di = this.type; null != NT[R] ? di.setReserved(R, "BINARY") : (di.h[R] = "BINARY"), (R = "assets/fonts/831_Verdana.woff"); var ci = this.path; null != NT[R] ? ci.setReserved(R, R) : (ci.h[R] = R); var fi = this.type; null != NT[R] ? fi.setReserved(R, "BINARY") : (fi.h[R] = "BINARY"), (R = "assets/fonts/1865_Arial.woff2"); var pi = this.path; null != NT[R] ? pi.setReserved(R, R) : (pi.h[R] = R); var bi = this.type; null != NT[R] ? bi.setReserved(R, "BINARY") : (bi.h[R] = "BINARY"), (R = "assets/fonts/526_Arial Black.eot"); var mi = this.path; null != NT[R] ? mi.setReserved(R, R) : (mi.h[R] = R); var gi = this.type; null != NT[R] ? gi.setReserved(R, "BINARY") : (gi.h[R] = "BINARY"), (R = "assets/fonts/1582_Trebuchet MS.json"); var wi = this.path; null != NT[R] ? wi.setReserved(R, R) : (wi.h[R] = R); var vi = this.type; null != NT[R] ? vi.setReserved(R, "TEXT") : (vi.h[R] = "TEXT"), (R = "assets/fonts/1865_Arial.json"); var yi = this.path; null != NT[R] ? yi.setReserved(R, R) : (yi.h[R] = R); var Ti = this.type; null != NT[R] ? Ti.setReserved(R, "TEXT") : (Ti.h[R] = "TEXT"), (R = "assets/fonts/717_Tahoma.ttf"); var Si = this.className, xi = ho; null != NT[R] ? Si.setReserved(R, xi) : (Si.h[R] = xi); var Ei = this.type; null != NT[R] ? Ei.setReserved(R, "FONT") : (Ei.h[R] = "FONT"), (R = "lib/intro/intro.dat"); var Pi = this.path; null != NT[R] ? Pi.setReserved(R, R) : (Pi.h[R] = R); var Ri = this.type; null != NT[R] ? Ri.setReserved(R, "BINARY") : (Ri.h[R] = "BINARY"), (R = "libraries/intro.json"); var Ai = this.path; null != NT[R] ? Ai.setReserved(R, "lib/intro.json") : (Ai.h[R] = "lib/intro.json"); var Ii = this.type; null != NT[R] ? Ii.setReserved(R, "TEXT") : (Ii.h[R] = "TEXT"), (R = "lib/bloontowerdefense4/1203.jpg"); var Ci = this.path; null != NT[R] ? Ci.setReserved(R, R) : (Ci.h[R] = R); var Bi = this.type; null != NT[R] ? Bi.setReserved(R, "IMAGE") : (Bi.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1273.jpg"); var Di = this.path; null != NT[R] ? Di.setReserved(R, R) : (Di.h[R] = R); var ki = this.type; null != NT[R] ? ki.setReserved(R, "IMAGE") : (ki.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1357.jpg"); var Fi = this.path; null != NT[R] ? Fi.setReserved(R, R) : (Fi.h[R] = R); var Mi = this.type; null != NT[R] ? Mi.setReserved(R, "IMAGE") : (Mi.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1371.jpg"); var Li = this.path; null != NT[R] ? Li.setReserved(R, R) : (Li.h[R] = R); var Ni = this.type; null != NT[R] ? Ni.setReserved(R, "IMAGE") : (Ni.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1188.jpg"); var Oi = this.path; null != NT[R] ? Oi.setReserved(R, R) : (Oi.h[R] = R); var Ui = this.type; null != NT[R] ? Ui.setReserved(R, "IMAGE") : (Ui.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1355.jpg"); var Gi = this.path; null != NT[R] ? Gi.setReserved(R, R) : (Gi.h[R] = R); var zi = this.type; null != NT[R] ? zi.setReserved(R, "IMAGE") : (zi.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1369.jpg"); var Xi = this.path; null != NT[R] ? Xi.setReserved(R, R) : (Xi.h[R] = R); var Hi = this.type; null != NT[R] ? Hi.setReserved(R, "IMAGE") : (Hi.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1200.jpg"); var Vi = this.path; null != NT[R] ? Vi.setReserved(R, R) : (Vi.h[R] = R); var Yi = this.type; null != NT[R] ? Yi.setReserved(R, "IMAGE") : (Yi.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1185.jpg"); var Wi = this.path; null != NT[R] ? Wi.setReserved(R, R) : (Wi.h[R] = R); var ji = this.type; null != NT[R] ? ji.setReserved(R, "IMAGE") : (ji.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1255.jpg"); var Ki = this.path; null != NT[R] ? Ki.setReserved(R, R) : (Ki.h[R] = R); var qi = this.type; null != NT[R] ? qi.setReserved(R, "IMAGE") : (qi.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1269.jpg"); var Zi = this.path; null != NT[R] ? Zi.setReserved(R, R) : (Zi.h[R] = R); var Ji = this.type; null != NT[R] ? Ji.setReserved(R, "IMAGE") : (Ji.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1353.jpg"); var Qi = this.path; null != NT[R] ? Qi.setReserved(R, R) : (Qi.h[R] = R); var $i = this.type; null != NT[R] ? $i.setReserved(R, "IMAGE") : ($i.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1367.jpg"); var er = this.path; null != NT[R] ? er.setReserved(R, R) : (er.h[R] = R); var tr = this.type; null != NT[R] ? tr.setReserved(R, "IMAGE") : (tr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1197.jpg"); var sr = this.path; null != NT[R] ? sr.setReserved(R, R) : (sr.h[R] = R); var nr = this.type; null != NT[R] ? nr.setReserved(R, "IMAGE") : (nr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1351.jpg"); var ir = this.path; null != NT[R] ? ir.setReserved(R, R) : (ir.h[R] = R); var rr = this.type; null != NT[R] ? rr.setReserved(R, "IMAGE") : (rr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1365.jpg"); var or = this.path; null != NT[R] ? or.setReserved(R, R) : (or.h[R] = R); var ar = this.type; null != NT[R] ? ar.setReserved(R, "IMAGE") : (ar.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1251.jpg"); var lr = this.path; null != NT[R] ? lr.setReserved(R, R) : (lr.h[R] = R); var hr = this.type; null != NT[R] ? hr.setReserved(R, "IMAGE") : (hr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1363.jpg"); var _r = this.path; null != NT[R] ? _r.setReserved(R, R) : (_r.h[R] = R); var ur = this.type; null != NT[R] ? ur.setReserved(R, "IMAGE") : (ur.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1194.jpg"); var dr = this.path; null != NT[R] ? dr.setReserved(R, R) : (dr.h[R] = R); var cr = this.type; null != NT[R] ? cr.setReserved(R, "IMAGE") : (cr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1264.jpg"); var fr = this.path; null != NT[R] ? fr.setReserved(R, R) : (fr.h[R] = R); var pr = this.type; null != NT[R] ? pr.setReserved(R, "IMAGE") : (pr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1348.jpg"); var br = this.path; null != NT[R] ? br.setReserved(R, R) : (br.h[R] = R); var mr = this.type; null != NT[R] ? mr.setReserved(R, "IMAGE") : (mr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1207.png"); var gr = this.path; null != NT[R] ? gr.setReserved(R, R) : (gr.h[R] = R); var wr = this.type; null != NT[R] ? wr.setReserved(R, "IMAGE") : (wr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1361.jpg"); var vr = this.path; null != NT[R] ? vr.setReserved(R, R) : (vr.h[R] = R); var yr = this.type; null != NT[R] ? yr.setReserved(R, "IMAGE") : (yr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1346.jpg"); var Tr = this.path; null != NT[R] ? Tr.setReserved(R, R) : (Tr.h[R] = R); var Sr = this.type; null != NT[R] ? Sr.setReserved(R, "IMAGE") : (Sr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1191.jpg"); var xr = this.path; null != NT[R] ? xr.setReserved(R, R) : (xr.h[R] = R); var Er = this.type; null != NT[R] ? Er.setReserved(R, "IMAGE") : (Er.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1359.jpg"); var Pr = this.path; null != NT[R] ? Pr.setReserved(R, R) : (Pr.h[R] = R); var Rr = this.type; null != NT[R] ? Rr.setReserved(R, "IMAGE") : (Rr.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/1260.jpg"); var Ar = this.path; null != NT[R] ? Ar.setReserved(R, R) : (Ar.h[R] = R); var Ir = this.type; null != NT[R] ? Ir.setReserved(R, "IMAGE") : (Ir.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/826.png"); var Cr = this.path; null != NT[R] ? Cr.setReserved(R, R) : (Cr.h[R] = R); var Br = this.type; null != NT[R] ? Br.setReserved(R, "IMAGE") : (Br.h[R] = "IMAGE"), (R = "lib/bloontowerdefense4/bloontowerdefense4.dat"); var Dr = this.path; null != NT[R] ? Dr.setReserved(R, R) : (Dr.h[R] = R); var kr = this.type; null != NT[R] ? kr.setReserved(R, "BINARY") : (kr.h[R] = "BINARY"), (R = "libraries/bloontowerdefense4.json"); var Fr = this.path; null != NT[R] ? Fr.setReserved(R, "lib/bloontowerdefense4.json") : (Fr.h[R] = "lib/bloontowerdefense4.json"); var Mr = this.type; null != NT[R] ? Mr.setReserved(R, "TEXT") : (Mr.h[R] = "TEXT"); var Lr = null; if ( (null != qr.config && Object.prototype.hasOwnProperty.call(qr.config, "assetsPrefix") && (Lr = qr.config.assetsPrefix), null != Lr) ) for (var Nr = this.path.keys(); Nr.hasNext(); ) { var Or = Nr.next(), Ur = this.path, Gr = this.path, zr = Lr + (null != NT[Or] ? Gr.getReserved(Or) : Gr.h[Or]), Xr = Ur; null != NT[Or] ? Xr.setReserved(Or, zr) : (Xr.h[Or] = zr); } var Hr = null; null != qr.config && Object.prototype.hasOwnProperty.call(qr.config, "remoteAssetPath") && (Hr = qr.config.remoteAssetPath); for (var Vr = e.keys(); Vr.hasNext(); ) { var Yr = Vr.next(), Wr = this.path, jr = null != Hr ? Hr + (null != NT[Yr] ? e.getReserved(Yr) : e.h[Yr]) : null != NT[Yr] ? e.getReserved(Yr) : e.h[Yr], Kr = Wr; null != NT[Yr] ? Kr.setReserved(Yr, jr) : (Kr.h[Yr] = jr); } }; ((s.DefaultAssetLibrary = X).__name__ = ["DefaultAssetLibrary"]), (X.getStringFromBytes = function (e) { for ( var t = Hm.fromBytes(e), s = t.length, n = "", i = 65535, r = 0; r < s; ) s < r + i && (i = s - r), (n += String.fromCharCode.apply(null, t.subarray(r, r + i))), (r += i); return n; }), (X.__super__ = Zr), (X.prototype = n(Zr.prototype, { exists: function (e, t) { var s = null != t ? Lp.__cast(t, String) : null, n = this.type, i = null != NT[e] ? n.getReserved(e) : n.h[e]; if (null != i) { if ( i == s || (("SOUND" == s || "MUSIC" == s) && ("MUSIC" == i || "SOUND" == i)) ) return !0; if ("BINARY" == s || null == s || ("BINARY" == i && "TEXT" == s)) return !0; } return !1; }, getAudioBuffer: function (e) { return null; }, getBytes: function (e) { var t = mb.loaders, s = this.path, n = null != NT[e] ? s.getReserved(e) : s.h[e], i = t, r = null != NT[n] ? i.getReserved(n) : i.h[n]; if (null == r) return null; var o = r.response.bytes; return null != o ? o : null; }, getFont: function (e) { var t = this.className; return Lp.__cast( ms.createInstance(null != NT[e] ? t.getReserved(e) : t.h[e], []), H ); }, getImage: function (e) { var t = mb.images, s = this.path, n = null != NT[e] ? s.getReserved(e) : s.h[e], i = t; return kb.fromImageElement(null != NT[n] ? i.getReserved(n) : i.h[n]); }, getPath: function (e) { var t = this.path; return null != NT[e] ? t.getReserved(e) : t.h[e]; }, getPathMap: function () { return this.path; }, getExtraSoundOptions: function (e) { var t = this.extraSoundOptions; return null != NT[e] ? t.getReserved(e) : t.h[e]; }, getText: function (e) { var t = mb.loaders, s = this.path, n = null != NT[e] ? s.getReserved(e) : s.h[e], i = t, r = null != NT[n] ? i.getReserved(n) : i.h[n]; if (null == r) return null; if (null != r.response.text) return r.response.text; var o = r.response.bytes; return null != o ? o.getString(0, o.length) : null; }, isLocal: function (e, t) { return !0; }, list: function (e) { for ( var t = null != e ? Lp.__cast(e, String) : null, s = [], n = this.type.keys(); n.hasNext(); ) { var i = n.next(); (null == t || this.exists(i, e)) && s.push(i); } return s; }, loadAudioBuffer: function (e) { var t = this, s = new gb(); return ( s.completeWith( new bb(function () { return t.getAudioBuffer(e); }) ), s.future ); }, loadBytes: function (e) { var t = new gb(), s = this.path; if (null != NT[e] ? s.existsReserved(e) : s.h.hasOwnProperty(e)) { var n = new nm(), i = this.path, r = n.load( (null != NT[e] ? i.getReserved(e) : i.h[e]) + "?" + Yp.cache.version ); r.onProgress(function (e) { t.progress(e); }), r.onError(function (e) { t.error(e); }), r.onComplete(function (e) { t.complete(e.bytes); }); } else { var o = this.getBytes(e); t.complete(o); } return t.future; }, loadImage: function (e) { var s = new gb(), t = this.path; if (null != NT[e] ? t.existsReserved(e) : t.h.hasOwnProperty(e)) { var n = new Image(); (n.crossOrigin = "Anonymous"), (n.onload = function (e) { var t = kb.fromImageElement(n); s.complete(t); }), (n.onerror = CT(s, s.error)); var i = this.path, r = null != NT[e] ? i.getReserved(e) : i.h[e]; n.src = r + "?" + Yp.cache.version; } else { var o = this.getImage(e); s.complete(o); } return s.future; }, loadText: function (e) { var t = new gb(), s = this.path; if (null != NT[e] ? s.existsReserved(e) : s.h.hasOwnProperty(e)) { var n = new nm(), i = this.path, r = n.load( (null != NT[e] ? i.getReserved(e) : i.h[e]) + "?" + Yp.cache.version ); r.onProgress(function (e) { t.progress(e); }), r.onError(function (e) { t.error(e); }), r.onComplete(function (e) { t.complete(e.text); }); } else { var o = this.getText(e); t.complete(o); } return t.future; }, __class__: X, })); var H = function (e) { null != e && (this.name = e), null != this.__fontPath && this.__fromFile(this.__fontPath); }; ((s["lime.text.Font"] = H).__name__ = ["lime", "text", "Font"]), (H.fromBytes = function (e) { var t = new H(); return t.__fromBytes(e), t; }), (H.fromFile = function (e) { var t = new H(); return t.__fromFile(e), t; }), (H.prototype = { decompose: function () { return null; }, getGlyph: function (e) { return -1; }, getGlyphs: function (e) { return ( null == e && (e = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^`'\"/\\&*()[]{}<>|:;_-+=?,. "), null ); }, getGlyphMetrics: function (e) { return null; }, renderGlyph: function (e, t) { return null; }, renderGlyphs: function (e, t) { return null; }, __fromBytes: function (e) { this.__fontPath = null; }, __fromFile: function (e) { this.__fontPath = e; }, get_ascender: function () { return 0; }, get_descender: function () { return 0; }, get_height: function () { return 0; }, get_numGlyphs: function () { return 0; }, get_underlinePosition: function () { return 0; }, get_underlineThickness: function () { return 0; }, get_unitsPerEM: function () { return 0; }, __class__: H, __properties__: { get_unitsPerEM: "get_unitsPerEM", get_underlineThickness: "get_underlineThickness", get_underlinePosition: "get_underlinePosition", get_numGlyphs: "get_numGlyphs", get_height: "get_height", get_descender: "get_descender", get_ascender: "get_ascender", }, }); var Jr = function () { H.call(this), (this.name = "Trebuchet MS"); }; ((s.__ASSET__assets_fonts_743_trebuchet_ms_ttf = Jr).__name__ = [ "__ASSET__assets_fonts_743_trebuchet_ms_ttf", ]), (Jr.__super__ = H), (Jr.prototype = n(H.prototype, { __class__: Jr })); var Qr = function () { H.call(this), (this.name = "Arial"); }; ((s.__ASSET__assets_fonts_1865_arial_ttf = Qr).__name__ = [ "__ASSET__assets_fonts_1865_arial_ttf", ]), (Qr.__super__ = H), (Qr.prototype = n(H.prototype, { __class__: Qr })); var $r = function () { H.call(this), (this.name = "Arial Black"); }; ((s.__ASSET__assets_fonts_526_arial_black_ttf = $r).__name__ = [ "__ASSET__assets_fonts_526_arial_black_ttf", ]), ($r.__super__ = H), ($r.prototype = n(H.prototype, { __class__: $r })); var eo = function () { H.call(this), (this.name = "Yikes!"); }; ((s.__ASSET__assets_fonts_849_yikes__ttf = eo).__name__ = [ "__ASSET__assets_fonts_849_yikes__ttf", ]), (eo.__super__ = H), (eo.prototype = n(H.prototype, { __class__: eo })); var to = function () { H.call(this), (this.name = "Cartoonist"); }; ((s.__ASSET__assets_fonts_1404_cartoonist_ttf = to).__name__ = [ "__ASSET__assets_fonts_1404_cartoonist_ttf", ]), (to.__super__ = H), (to.prototype = n(H.prototype, { __class__: to })); var so = function () { H.call(this), (this.name = "Tahoma"); }; ((s.__ASSET__assets_fonts_2103_tahoma_ttf = so).__name__ = [ "__ASSET__assets_fonts_2103_tahoma_ttf", ]), (so.__super__ = H), (so.prototype = n(H.prototype, { __class__: so })); var no = function () { H.call(this), (this.name = "Yikes!"); }; ((s.__ASSET__assets_fonts_164_yikes__ttf = no).__name__ = [ "__ASSET__assets_fonts_164_yikes__ttf", ]), (no.__super__ = H), (no.prototype = n(H.prototype, { __class__: no })); var io = function () { H.call(this), (this.name = "Visitor TT2 BRK"); }; ((s.__ASSET__assets_fonts_1546_visitor_tt2_brk_ttf = io).__name__ = [ "__ASSET__assets_fonts_1546_visitor_tt2_brk_ttf", ]), (io.__super__ = H), (io.prototype = n(H.prototype, { __class__: io })); var ro = function () { H.call(this), (this.name = "Trebuchet MS"); }; ((s.__ASSET__assets_fonts_1582_trebuchet_ms_ttf = ro).__name__ = [ "__ASSET__assets_fonts_1582_trebuchet_ms_ttf", ]), (ro.__super__ = H), (ro.prototype = n(H.prototype, { __class__: ro })); var oo = function () { H.call(this), (this.name = "Verdana"); }; ((s.__ASSET__assets_fonts_831_verdana_ttf = oo).__name__ = [ "__ASSET__assets_fonts_831_verdana_ttf", ]), (oo.__super__ = H), (oo.prototype = n(H.prototype, { __class__: oo })); var ao = function () { H.call(this), (this.name = "McBoing Boing"); }; ((s.__ASSET__assets_fonts_899_mcboing_boing_ttf = ao).__name__ = [ "__ASSET__assets_fonts_899_mcboing_boing_ttf", ]), (ao.__super__ = H), (ao.prototype = n(H.prototype, { __class__: ao })); var lo = function () { H.call(this), (this.name = "Cartoonist"); }; ((s.__ASSET__assets_fonts_1455_cartoonist_ttf = lo).__name__ = [ "__ASSET__assets_fonts_1455_cartoonist_ttf", ]), (lo.__super__ = H), (lo.prototype = n(H.prototype, { __class__: lo })); var ho = function () { H.call(this), (this.name = "Tahoma"); }; ((s.__ASSET__assets_fonts_717_tahoma_ttf = ho).__name__ = [ "__ASSET__assets_fonts_717_tahoma_ttf", ]), (ho.__super__ = H), (ho.prototype = n(H.prototype, { __class__: ho })); var _o = function (e) { H.call(this, e); }; ((s["openfl.text.Font"] = _o).__name__ = ["openfl", "text", "Font"]), (_o.enumerateFonts = function (e) { return null == e && (e = !1), _o.__registeredFonts; }), (_o.fromBytes = function (e) { var t = new _o(); return t.__fromBytes(jy.toBytes(e)), t; }), (_o.fromFile = function (e) { var t = new _o(); return t.__fromFile(e), t; }), (_o.registerFont = function (e) { var t = Lp.__cast(ms.createInstance(e, []), _o); null != t && _o.__registeredFonts.push(t); }), (_o.__fromLimeFont = function (e) { var t = new _o(); return (t.name = e.name), (t.src = e.src), t; }), (_o.__super__ = H), (_o.prototype = n(H.prototype, { get_fontName: function () { return this.name; }, set_fontName: function (e) { return (this.name = e); }, __class__: _o, __properties__: n(H.prototype.__properties__, { set_fontName: "set_fontName", get_fontName: "get_fontName", }), })); var uo = function () { var e = new Jr(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_743_trebuchet_ms_ttf = uo).__name__ = [ "__ASSET__OPENFL__assets_fonts_743_trebuchet_ms_ttf", ]), (uo.__super__ = _o), (uo.prototype = n(_o.prototype, { __class__: uo })); var co = function () { var e = new Qr(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_1865_arial_ttf = co).__name__ = [ "__ASSET__OPENFL__assets_fonts_1865_arial_ttf", ]), (co.__super__ = _o), (co.prototype = n(_o.prototype, { __class__: co })); var fo = function () { var e = new $r(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_526_arial_black_ttf = fo).__name__ = [ "__ASSET__OPENFL__assets_fonts_526_arial_black_ttf", ]), (fo.__super__ = _o), (fo.prototype = n(_o.prototype, { __class__: fo })); var po = function () { var e = new eo(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_849_yikes__ttf = po).__name__ = [ "__ASSET__OPENFL__assets_fonts_849_yikes__ttf", ]), (po.__super__ = _o), (po.prototype = n(_o.prototype, { __class__: po })); var bo = function () { var e = new to(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_1404_cartoonist_ttf = bo).__name__ = [ "__ASSET__OPENFL__assets_fonts_1404_cartoonist_ttf", ]), (bo.__super__ = _o), (bo.prototype = n(_o.prototype, { __class__: bo })); var mo = function () { var e = new so(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_2103_tahoma_ttf = mo).__name__ = [ "__ASSET__OPENFL__assets_fonts_2103_tahoma_ttf", ]), (mo.__super__ = _o), (mo.prototype = n(_o.prototype, { __class__: mo })); var go = function () { var e = new no(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_164_yikes__ttf = go).__name__ = [ "__ASSET__OPENFL__assets_fonts_164_yikes__ttf", ]), (go.__super__ = _o), (go.prototype = n(_o.prototype, { __class__: go })); var wo = function () { var e = new io(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_1546_visitor_tt2_brk_ttf = wo).__name__ = [ "__ASSET__OPENFL__assets_fonts_1546_visitor_tt2_brk_ttf", ]), (wo.__super__ = _o), (wo.prototype = n(_o.prototype, { __class__: wo })); var vo = function () { var e = new ro(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_1582_trebuchet_ms_ttf = vo).__name__ = [ "__ASSET__OPENFL__assets_fonts_1582_trebuchet_ms_ttf", ]), (vo.__super__ = _o), (vo.prototype = n(_o.prototype, { __class__: vo })); var yo = function () { var e = new oo(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_831_verdana_ttf = yo).__name__ = [ "__ASSET__OPENFL__assets_fonts_831_verdana_ttf", ]), (yo.__super__ = _o), (yo.prototype = n(_o.prototype, { __class__: yo })); var To = function () { var e = new ao(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_899_mcboing_boing_ttf = To).__name__ = [ "__ASSET__OPENFL__assets_fonts_899_mcboing_boing_ttf", ]), (To.__super__ = _o), (To.prototype = n(_o.prototype, { __class__: To })); var So = function () { var e = new lo(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_1455_cartoonist_ttf = So).__name__ = [ "__ASSET__OPENFL__assets_fonts_1455_cartoonist_ttf", ]), (So.__super__ = _o), (So.prototype = n(_o.prototype, { __class__: So })); var xo = function () { var e = new ho(); (this.src = e.src), (this.name = e.name), _o.call(this); }; ((s.__ASSET__OPENFL__assets_fonts_717_tahoma_ttf = xo).__name__ = [ "__ASSET__OPENFL__assets_fonts_717_tahoma_ttf", ]), (xo.__super__ = _o), (xo.prototype = n(_o.prototype, { __class__: xo })); var V = function (e, t) { this.r = new RegExp(e, t.split("u").join("")); }; ((s.EReg = V).__name__ = ["EReg"]), (V.prototype = { match: function (e) { return ( this.r.global && (this.r.lastIndex = 0), (this.r.m = this.r.exec(e)), (this.r.s = e), null != this.r.m ); }, matched: function (e) { if (null != this.r.m && 0 <= e && e < this.r.m.length) return this.r.m[e]; throw new Mp("EReg::matched"); }, __class__: V, }); var Y = function (e, t) { u.call(this, e, t), this.init(); }; ((s["swf.TrackPiece"] = Y).__name__ = ["swf", "TrackPiece"]), (Y.__super__ = u), (Y.prototype = n(u.prototype, { init: function () { this.nodes = []; this.n1; for (var e = 1; e < 100 && null != De.field(this, "n" + e); ) this.nodes.push(De.field(this, "n" + e)), ++e; (this.last = De.field(this, "n" + (e - 1))), (this.first = this.n1); }, __class__: Y, })); var K = function (e, t) { Y.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)); }; ((s["swf.EditorPiece1"] = K).__name__ = ["swf", "EditorPiece1"]), (K.__super__ = Y), (K.prototype = n(Y.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, frame6: function () { this.stop(); }, frame7: function () { this.stop(); }, __class__: K, })); var Gh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[728]; K.call(this, r, o); }; ((s.Editor_piece1 = Gh).__name__ = ["Editor_piece1"]), (Gh.__super__ = K), (Gh.prototype = n(K.prototype, { __class__: Gh })); var q = function (e, t) { Y.call(this, e, t); }; ((s["swf.EditorPiece2"] = q).__name__ = ["swf", "EditorPiece2"]), (q.__super__ = Y), (q.prototype = n(Y.prototype, { __class__: q })); var zh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[761]; q.call(this, r, o); }; ((s.Editor_piece2 = zh).__name__ = ["Editor_piece2"]), (zh.__super__ = q), (zh.prototype = n(q.prototype, { __class__: zh })); var Z = function (e, t) { u.call(this, e, t); }; ((s["swf.EntryPoint"] = Z).__name__ = ["swf", "EntryPoint"]), (Z.__super__ = u), (Z.prototype = n(u.prototype, { __class__: Z })); var Xh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[736]; Z.call(this, r, o); }; ((s.EntryPoint = Xh).__name__ = ["EntryPoint"]), (Xh.__super__ = Z), (Xh.prototype = n(Z.prototype, { __class__: Xh })); var J = function (e, t) { u.call(this, e, t); }; ((s["swf.Exclusive"] = J).__name__ = ["swf", "Exclusive"]), (J.__super__ = u), (J.prototype = n(u.prototype, { __class__: J })); var Hh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[719]; J.call(this, r, o); }; ((s.Exclusive = Hh).__name__ = ["Exclusive"]), (Hh.__super__ = J), (Hh.prototype = n(J.prototype, { __class__: Hh })); var Q = function (e, t) { u.call(this, e, t); }; ((s["swf.ExitPoint"] = Q).__name__ = ["swf", "ExitPoint"]), (Q.__super__ = u), (Q.prototype = n(u.prototype, { __class__: Q })); var Vh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[738]; Q.call(this, r, o); }; ((s.ExitPoint = Vh).__name__ = ["ExitPoint"]), (Vh.__super__ = Q), (Vh.prototype = n(Q.prototype, { __class__: Vh })); var $ = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(7, CT(this, this.frame8)); }; ((s["swf.FireRing"] = $).__name__ = ["swf", "FireRing"]), ($.__super__ = w), ($.prototype = n(w.prototype, { frame8: function () { this.stop(); }, frame1: function () { this.parent.parent.fireRingSnd.play(0, 1); }, __class__: $, })); var Yh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[664]; $.call(this, r, o); }; ((s.FireRing = Yh).__name__ = ["FireRing"]), (Yh.__super__ = $), (Yh.prototype = n($.prototype, { __class__: Yh })); var ee = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(14, CT(this, this.frame15)); }; ((s["swf.Fireball"] = ee).__name__ = ["swf", "Fireball"]), (ee.__super__ = w), (ee.prototype = n(w.prototype, { frame15: function () { this.stop(); }, frame1: function () { this.stop(); }, frame2: function () { null != this.parent && (this.parent.parent.fireRingSnd.play(0, 1), (this.hitRadius *= 6)); }, frame3: function () { this.hitRadius = -1; }, __class__: ee, })); var Wh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[67]; ee.call(this, r, o); }; ((s.Fireball = Wh).__name__ = ["Fireball"]), (Wh.__super__ = ee), (Wh.prototype = n(ee.prototype, { __class__: Wh })); var te = function (e, t) { w.call(this, e, t); }; ((s["swf.Frag"] = te).__name__ = ["swf", "Frag"]), (te.__super__ = w), (te.prototype = n(w.prototype, { __class__: te })); var jh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[764]; te.call(this, r, o); }; ((s.Frag = jh).__name__ = ["Frag"]), (jh.__super__ = te), (jh.prototype = n(te.prototype, { __class__: jh })); var se = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.GiantDart"] = se).__name__ = ["swf", "GiantDart"]), (se.__super__ = w), (se.prototype = n(w.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: se, })); var Kh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[160]; se.call(this, r, o); }; ((s.GiantDart = Kh).__name__ = ["GiantDart"]), (Kh.__super__ = se), (Kh.prototype = n(se.prototype, { __class__: Kh })); var ne = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(24, CT(this, this.frame25)); }; ((s["swf.Glaive"] = ne).__name__ = ["swf", "Glaive"]), (ne.__super__ = w), (ne.prototype = n(w.prototype, { frame25: function () { this.gotoAndStop(1); }, frame1: function () { this.set_visible(!1); }, frame2: function () { this.set_visible(!0); }, __class__: ne, })); var qh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[697]; ne.call(this, r, o); }; ((s.Glaive = qh).__name__ = ["Glaive"]), (qh.__super__ = ne), (qh.prototype = n(ne.prototype, { __class__: qh })); var ie = function (e, t) { w.call(this, e, t); }; ((s["swf.Glue"] = ie).__name__ = ["swf", "Glue"]), (ie.__super__ = w), (ie.prototype = n(w.prototype, { __class__: ie })); var Zh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[243]; ie.call(this, r, o); }; ((s.Glue = Zh).__name__ = ["Glue"]), (Zh.__super__ = ie), (Zh.prototype = n(ie.prototype, { __class__: Zh })); var re = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.GlueMonkey"] = re).__name__ = ["swf", "GlueMonkey"]), (re.__super__ = b), (re.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: re, })); var Jh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[614]; re.call(this, r, o); }; ((s.GlueMonkey = Jh).__name__ = ["GlueMonkey"]), (Jh.__super__ = re), (Jh.prototype = n(re.prototype, { __class__: Jh })); var oe = function (e, t) { w.call(this, e, t); }; ((s["swf.GlueSplat"] = oe).__name__ = ["swf", "GlueSplat"]), (oe.__super__ = w), (oe.prototype = n(w.prototype, { __class__: oe })); var Qh = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[649]; oe.call(this, r, o); }; ((s.GlueSplat = Qh).__name__ = ["GlueSplat"]), (Qh.__super__ = oe), (Qh.prototype = n(oe.prototype, { __class__: Qh })); var ae = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(9, CT(this, this.frame10)); }; ((s["swf.GlueSplatter"] = ae).__name__ = ["swf", "GlueSplatter"]), (ae.__super__ = w), (ae.prototype = n(w.prototype, { frame10: function () { this.stop(); }, frame1: function () { this.stop(); }, frame2: function () { this.hitRadius = 40; }, frame3: function () { this.hitRadius = 0; }, __class__: ae, })); var $h = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[677]; ae.call(this, r, o); }; ((s.GlueSplatter = $h).__name__ = ["GlueSplatter"]), ($h.__super__ = ae), ($h.prototype = n(ae.prototype, { __class__: $h })); var le = function (e, t) { w.call(this, e, t); }; ((s["swf.Grape"] = le).__name__ = ["swf", "Grape"]), (le.__super__ = w), (le.prototype = n(w.prototype, { __class__: le })); var e_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[150]; le.call(this, r, o); }; ((s.Grape = e_).__name__ = ["Grape"]), (e_.__super__ = le), (e_.prototype = n(le.prototype, { __class__: e_ })); var he = function () {}; ((s.HxOverrides = he).__name__ = ["HxOverrides"]), (he.dateStr = function (e) { var t = e.getMonth() + 1, s = e.getDate(), n = e.getHours(), i = e.getMinutes(), r = e.getSeconds(); return ( e.getFullYear() + "-" + (t < 10 ? "0" + t : "" + t) + "-" + (s < 10 ? "0" + s : "" + s) + " " + (n < 10 ? "0" + n : "" + n) + ":" + (i < 10 ? "0" + i : "" + i) + ":" + (r < 10 ? "0" + r : "" + r) ); }), (he.strDate = function (e) { switch (e.length) { case 8: var t = e.split(":"), s = new Date(); return ( s.setTime(0), s.setUTCHours(t[0]), s.setUTCMinutes(t[1]), s.setUTCSeconds(t[2]), s ); case 10: var n = e.split("-"); return new Date(n[0], n[1] - 1, n[2], 0, 0, 0); case 19: var i = e.split(" "), r = i[0].split("-"), o = i[1].split(":"); return new Date(r[0], r[1] - 1, r[2], o[0], o[1], o[2]); default: throw new Mp("Invalid date format : " + e); } }), (he.cca = function (e, t) { var s = e.charCodeAt(t); if (s == s) return s; }), (he.substr = function (e, t, s) { if (null == s) s = e.length; else if (s < 0) { if (0 != t) return ""; s = e.length + s; } return e.substr(t, s); }), (he.remove = function (e, t) { var s = e.indexOf(t); return -1 != s && (e.splice(s, 1), !0); }), (he.iter = function (e) { return { cur: 0, arr: e, hasNext: function () { return this.cur < this.arr.length; }, next: function () { return this.arr[this.cur++]; }, }; }); var _e = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(10, CT(this, this.frame11)); }; ((s["swf.IceBomb"] = _e).__name__ = ["swf", "IceBomb"]), (_e.__super__ = w), (_e.prototype = n(w.prototype, { frame1: function () { this.parent.parent.iceBlastSnd.play(0, 1); }, frame11: function () { this.stop(); }, __class__: _e, })); var t_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[667]; _e.call(this, r, o); }; ((s.IceBomb = t_).__name__ = ["IceBomb"]), (t_.__super__ = _e), (t_.prototype = n(_e.prototype, { __class__: t_ })); var ue = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.IceTower"] = ue).__name__ = ["swf", "IceTower"]), (ue.__super__ = b), (ue.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: ue, })); var s_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[345]; ue.call(this, r, o); }; ((s.IceTower = s_).__name__ = ["IceTower"]), (s_.__super__ = ue), (s_.prototype = n(ue.prototype, { __class__: s_ })); var de = function () {}; ((s.Lambda = de).__name__ = ["Lambda"]), (de.array = function (e) { for (var t = [], s = RT(e)(); s.hasNext(); ) { var n = s.next(); t.push(n); } return t; }), (de.indexOf = function (e, t) { for (var s = 0, n = RT(e)(); n.hasNext(); ) { if (t == n.next()) return s; ++s; } return -1; }); var ce = function (e, t) { w.call(this, e, t); }; ((s["swf.Laser"] = ce).__name__ = ["swf", "Laser"]), (ce.__super__ = w), (ce.prototype = n(w.prototype, { __class__: ce })); var n_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[714]; ce.call(this, r, o); }; ((s.Laser = n_).__name__ = ["Laser"]), (n_.__super__ = ce), (n_.prototype = n(ce.prototype, { __class__: n_ })); var fe = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(39, CT(this, this.frame40)); }; ((s["swf.LightSabre"] = fe).__name__ = ["swf", "LightSabre"]), (fe.__super__ = w), (fe.prototype = n(w.prototype, { frame40: function () { this.gotoAndStop(1); }, frame1: function () { this.set_visible(!1); }, frame2: function () { this.set_visible(!0); }, __class__: fe, })); var i_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[690]; fe.call(this, r, o); }; ((s.LightSabre = i_).__name__ = ["LightSabre"]), (i_.__super__ = fe), (i_.prototype = n(fe.prototype, { __class__: i_ })); var pe = function () { this.length = 0; }; ((s.List = pe).__name__ = ["List"]), (pe.prototype = { add: function (e) { var t = new be(e, null); null == this.h ? (this.h = t) : (this.q.next = t), (this.q = t), this.length++; }, pop: function () { if (null == this.h) return null; var e = this.h.item; return ( (this.h = this.h.next), null == this.h && (this.q = null), this.length--, e ); }, iterator: function () { return new me(this.h); }, __class__: pe, }); var be = function (e, t) { (this.item = e), (this.next = t); }; ((s["_List.ListNode"] = be).__name__ = ["_List", "ListNode"]), (be.prototype = { __class__: be }); var me = function (e) { this.head = e; }; ((s["_List.ListIterator"] = me).__name__ = ["_List", "ListIterator"]), (me.prototype = { hasNext: function () { return null != this.head; }, next: function () { var e = this.head.item; return (this.head = this.head.next), e; }, __class__: me, }); var ge = function () {}; (s.Macro = ge).__name__ = ["Macro"]; var we = function (e, t) { w.call(this, e, t); }; ((s["swf.MagicMissile"] = we).__name__ = ["swf", "MagicMissile"]), (we.__super__ = w), (we.prototype = n(w.prototype, { __class__: we })); var r_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[775]; we.call(this, r, o); }; ((s.MagicMissile = r_).__name__ = ["MagicMissile"]), (r_.__super__ = we), (r_.prototype = n(we.prototype, { __class__: r_ })), (Math.__name__ = ["Math"]); var ve = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(14, CT(this, this.frame15)); }; ((s["swf.Missile"] = ve).__name__ = ["swf", "Missile"]), (ve.__super__ = w), (ve.prototype = n(w.prototype, { frame15: function () { this.stop(); }, frame1: function () { this.stop(); }, frame2: function () { null != this.parent && (this.parent.parent.resolve("bombSnd").play(0, 1), (this.hitRadius *= 6)); }, frame3: function () { this.hitRadius = -1; }, __class__: ve, })); var o_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[671]; ve.call(this, r, o); }; ((s.Missile = o_).__name__ = ["Missile"]), (o_.__super__ = ve), (o_.prototype = n(ve.prototype, { __class__: o_ })); var ye = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(14, CT(this, this.frame15)); }; ((s["swf.MoabMissile"] = ye).__name__ = ["swf", "MoabMissile"]), (ye.__super__ = w), (ye.prototype = n(w.prototype, { frame15: function () { this.stop(); }, frame1: function () { this.stop(); }, frame2: function () { null != this.parent && (this.parent.parent.bombSnd.play(0, 1), (this.hitRadius *= 6)); }, frame3: function () { this.hitRadius = -1; }, __class__: ye, })); var a_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[669]; ye.call(this, r, o); }; ((s.MoabMissile = a_).__name__ = ["MoabMissile"]), (a_.__super__ = ye), (a_.prototype = n(ye.prototype, { __class__: a_ })); var Te = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.MonkeyAce"] = Te).__name__ = ["swf", "MonkeyAce"]), (Te.__super__ = b), (Te.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(), this.inner.resolve("inner").gotoAndStop(2); }, frame3: function () { this.stop(), this.inner.resolve("inner").gotoAndStop(3); }, frame4: function () { this.stop(), this.inner.resolve("inner").gotoAndStop(4); }, frame5: function () { this.stop(), this.inner.resolve("inner").gotoAndStop(5); }, __class__: Te, })); var l_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[383]; Te.call(this, r, o); }; ((s.MonkeyAce = l_).__name__ = ["MonkeyAce"]), (l_.__super__ = Te), (l_.prototype = n(Te.prototype, { __class__: l_ })); var Se = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.MonkeyBeacon"] = Se).__name__ = ["swf", "MonkeyBeacon"]), (Se.__super__ = b), (Se.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: Se, })); var h_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[569]; Se.call(this, r, o); }; ((s.MonkeyBeacon = h_).__name__ = ["MonkeyBeacon"]), (h_.__super__ = Se), (h_.prototype = n(Se.prototype, { __class__: h_ })); var xe = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.MonkeyWizard"] = xe).__name__ = ["swf", "MonkeyWizard"]), (xe.__super__ = b), (xe.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: xe, })); var __ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[148]; xe.call(this, r, o); }; ((s.MonkeyWizard = __).__name__ = ["MonkeyWizard"]), (__.__super__ = xe), (__.prototype = n(xe.prototype, { __class__: __ })); var Ee = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(14, CT(this, this.frame15)); }; ((s["swf.MortarHit"] = Ee).__name__ = ["swf", "MortarHit"]), (Ee.__super__ = w), (Ee.prototype = n(w.prototype, { frame15: function () { this.stop(), this.DeleteMe(); }, frame7: function () { this.hitRadius = -1; }, frame1: function () { (this.exploded = !0), null != this.parent && this.parent.parent.pineappleSnd.play(0, 1); }, __class__: Ee, })); var u_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[702]; Ee.call(this, r, o); }; ((s.MortarHit = u_).__name__ = ["MortarHit"]), (u_.__super__ = Ee), (u_.prototype = n(Ee.prototype, { __class__: u_ })); var Pe = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.MortarTower"] = Pe).__name__ = ["swf", "MortarTower"]), (Pe.__super__ = b), (Pe.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(), this.inner.set_rotation(this.innerRotation); }, frame5: function () { this.stop(), this.inner.set_rotation(this.innerRotation); }, __class__: Pe, })); var d_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[408]; Pe.call(this, r, o); }; ((s.MortarTower = d_).__name__ = ["MortarTower"]), (d_.__super__ = Pe), (d_.prototype = n(Pe.prototype, { __class__: d_ })); var Re = function () { o.call(this); var e = this.getBackgroundColor(), t = 0; 0.299 * ((e >> 16) & 255) + 0.587 * ((e >> 8) & 255) + 0.114 * (255 & e) < 70 && (t = 16777215); var s = this.getHeight() / 2 - 3.5, n = this.getWidth() - 60; (this.outline = new o()), this.outline.get_graphics().beginFill(t, 0.07), this.outline.get_graphics().drawRect(0, 0, n, 7), this.outline.set_x(30), this.outline.set_y(s), this.addChildAt(this.outline, this.__children._length), (this.progress = new o()), this.progress.get_graphics().beginFill(t, 0.35), this.progress.get_graphics().drawRect(0, 0, n - 4, 3), this.progress.set_x(32), this.progress.set_y(s + 2), this.progress.set_scaleX(0), this.addChildAt(this.progress, this.__children._length); }; ((s.NMEPreloader = Re).__name__ = ["NMEPreloader"]), (Re.__super__ = o), (Re.prototype = n(o.prototype, { getBackgroundColor: function () { return 16777215; }, getHeight: function () { return 640; }, getWidth: function () { return 640; }, onInit: function () {}, onLoaded: function () { this.dispatchEvent(new _a("complete")); }, onUpdate: function (e, t, s) { var n = e / t; 1 < n && (n = 1), this.progress.set_scaleX(n); }, __class__: Re, })); var Ae = function (e, t) { u.call(this, e, t); }; ((s["swf.Pathhit"] = Ae).__name__ = ["swf", "Pathhit"]), (Ae.__super__ = u), (Ae.prototype = n(u.prototype, { __class__: Ae })); var c_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[810]; Ae.call(this, r, o); }; ((s.Pathhit = c_).__name__ = ["Pathhit"]), (c_.__super__ = Ae), (c_.prototype = n(Ae.prototype, { __class__: c_ })); var Ie = function (e, t) { w.call(this, e, t), this.addFrameScript(66, CT(this, this.frame67)), this.addFrameScript(68, CT(this, this.frame69)), this.addFrameScript(80, CT(this, this.frame81)); }; ((s["swf.Pineapple"] = Ie).__name__ = ["swf", "Pineapple"]), (Ie.__super__ = w), (Ie.prototype = n(w.prototype, { frame69: function () { this.hitRadius = -1; }, frame81: function () { this.stop(), this.DeleteMe(); }, frame67: function () { (this.exploded = !0), null != this.parent && (this.pineSnd = this.parent.parent.pineappleSnd.play(0, 1)); }, __class__: Ie, })); var f_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[197]; Ie.call(this, r, o); }; ((s.Pineapple = f_).__name__ = ["Pineapple"]), (f_.__super__ = Ie), (f_.prototype = n(Ie.prototype, { __class__: f_ })); var Ce = function (e, t) { w.call(this, e, t); }; ((s["swf.Plasma"] = Ce).__name__ = ["swf", "Plasma"]), (Ce.__super__ = w), (Ce.prototype = n(w.prototype, { __class__: Ce })); var p_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[708]; Ce.call(this, r, o); }; ((s.Plasma = p_).__name__ = ["Plasma"]), (p_.__super__ = Ce), (p_.prototype = n(Ce.prototype, { __class__: p_ })); var Be = function () { (this.dataLoaded = !0), (this.swfLite = null), (this.introLoaded = !1), (this.time = 0), (this.loaded = !1); var t = this; zt.isMobile() || u.set_processSoundCommandCallback(l.process), Re.call(this), (this.initialStageColor = Zm.current.stage.get_color()), Zm.current.stage.set_color(0); var s = new XMLHttpRequest(); (s.onreadystatechange = function () { if ( 4 == s.readyState && null != s.status && 200 <= s.status && s.status <= 400 && "arraybuffer" == s.responseType ) { var e = Lf.ofData(s.response); (t.swfLite = Ca.unserializeLibrary(e)), t.attemptIntro(); } }), s.open("GET", "./lib/intro/intro.dat", !0), (s.responseType = "arraybuffer"), s.send(""), this.progress.set_y(this.getHeight() - 32), this.outline.set_y(this.progress.__transform.ty - 2), ke.register(); }; ((s.Preloader = Be).__name__ = ["Preloader"]), (Be.__super__ = Re), (Be.prototype = n(Re.prototype, { onLoaded: function () { (this.loaded = !0), this.attemptFinish(); }, onUpdate: function (e, t, s) { Re.prototype.onUpdate.call(this, e, t, s); }, __enterFrame: function (e) { Re.prototype.__enterFrame.call(this, e), this.introLoaded && ((this.time += e), this.time > Be.minDuration && this.attemptFinish()); }, attemptFinish: function () { 1 == this.loaded && this.time > Be.minDuration && (Zm.current.stage.set_color(this.initialStageColor), this.dispatchEvent(new _a("complete"))); }, attemptIntro: function () { var e = this; if (null != this.swfLite && this.dataLoaded) { var t = new u(this.swfLite, this.swfLite.root); this.addChildAt(t, 0), (this.introLoaded = !0); var s = 1; this.getWidth() < 500 && ((s = 0.75), t.set_scaleX(s), t.set_scaleY(s)), t.set_x(this.getWidth() / 2 - (Be.introWidth * s) / 2), t.set_y(this.getHeight() / 2 - (Be.introHeight * s) / 2), this.addEventListener("click", function () { window.open("http://www.addictinggames.com", "_blank"); }); var n = t.getChildAt(0); n.addFrameScript(131, function () { e.displayMessage(), n.stop(); }); } }, getBackgroundColor: function () { return 0; }, displayMessage: function () {}, __class__: Be, })); var De = function () {}; ((s.Reflect = De).__name__ = ["Reflect"]), (De.field = function (e, t) { try { return e[t]; } catch (e) { return (jf.lastException = e), null; } }), (De.getProperty = function (e, t) { var s; return null == e ? null : !!e.__properties__ && (s = e.__properties__["get_" + t]) ? e[s]() : e[t]; }), (De.fields = function (e) { var t = []; if (null != e) { var s = Object.prototype.hasOwnProperty; for (var n in e) "__id__" != n && "hx__closures__" != n && s.call(e, n) && t.push(n); } return t; }), (De.isFunction = function (e) { return "function" == typeof e && !(e.__name__ || e.__ename__); }), (De.compare = function (e, t) { return e == t ? 0 : t < e ? 1 : -1; }), (De.compareMethods = function (e, t) { return ( e == t || (!(!De.isFunction(e) || !De.isFunction(t)) && e.scope == t.scope && e.method == t.method && null != e.method) ); }), (De.isEnumValue = function (e) { return null != e && null != e.__enum__; }), (De.deleteField = function (e, t) { return !!Object.prototype.hasOwnProperty.call(e, t) && (delete e[t], !0); }), (De.makeVarArgs = function (t) { return function () { var e = Array.prototype.slice.call(arguments); return t(e); }; }); var ke = function () {}; ((s.ResizeHandler = ke).__name__ = ["ResizeHandler"]), (ke.register = function () { ke.registered || (window.addEventListener("resize", ke.handle), (ke.registered = !0)), ke.handle(); }), (ke.handle = function () { var a = qr.config.windows[0].width, l = qr.config.windows[0].height, h = window.document.getElementsByTagName("CANVAS")[0], e = window.devicePixelRatio, t = (h.clientWidth * e) | 0, s = (h.clientHeight * e) | 0; "" == h.style.width && ((h.style.width = h.clientWidth + "px"), (h.style.height = h.clientHeight + "px")), Zm.current.stage.window.onResize.dispatch(t, s), Zm.current.stage.window.resize(t, s), Qf.delay(function () { if (null != h) { var e = a, t = l, s = window.innerHeight, n = window.innerWidth, i = e / t, r = 0, o = 0; (r = s * i < n ? (o = s) * i : ((o = n * (t / e)), n)), (h.style.width = r + "px"), (h.style.height = o + "px"); } }, 10); }); var Fe = function (e, t) { w.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)); }; ((s["swf.RoadSpikes"] = Fe).__name__ = ["swf", "RoadSpikes"]), (Fe.__super__ = w), (Fe.prototype = n(w.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, frame6: function () { this.stop(); }, frame7: function () { this.stop(); }, frame8: function () { this.stop(); }, frame10: function () { this.stop(); }, frame11: function () { this.stop(); }, frame12: function () { this.stop(); }, frame9: function () { this.stop(); }, __class__: Fe, })); var b_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[705]; Fe.call(this, r, o); }; ((s.RoadSpikes = b_).__name__ = ["RoadSpikes"]), (b_.__super__ = Fe), (b_.prototype = n(Fe.prototype, { __class__: b_ })); var Me = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.Ship"] = Me).__name__ = ["swf", "Ship"]), (Me.__super__ = b), (Me.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: Me, })); var m_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[593]; Me.call(this, r, o); }; ((s.Ship = m_).__name__ = ["Ship"]), (m_.__super__ = Me), (m_.prototype = n(Me.prototype, { __class__: m_ })); var Le = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.Spikeopult"] = Le).__name__ = ["swf", "Spikeopult"]), (Le.__super__ = b), (Le.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: Le, })); var g_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[293]; Le.call(this, r, o); }; ((s.Spikeopult = g_).__name__ = ["Spikeopult"]), (g_.__super__ = Le), (g_.prototype = n(Le.prototype, { __class__: g_ })); var Ne = function (e, t) { w.call(this, e, t); }; ((s["swf.SpikeyBall"] = Ne).__name__ = ["swf", "SpikeyBall"]), (Ne.__super__ = w), (Ne.prototype = n(w.prototype, { __class__: Ne })); var w_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[661]; Ne.call(this, r, o); }; ((s.SpikeyBall = w_).__name__ = ["SpikeyBall"]), (w_.__super__ = Ne), (w_.prototype = n(Ne.prototype, { __class__: w_ })); var Oe = function (e, t) { w.call(this, e, t); }; ((s["swf.SpikeyBalls"] = Oe).__name__ = ["swf", "SpikeyBalls"]), (Oe.__super__ = w), (Oe.prototype = n(w.prototype, { __class__: Oe })); var v_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[660]; Oe.call(this, r, o); }; ((s.SpikeyBalls = v_).__name__ = ["SpikeyBalls"]), (v_.__super__ = Oe), (v_.prototype = n(Oe.prototype, { __class__: v_ })); var Ue = function () {}; ((s.Std = Ue).__name__ = ["Std"]), (Ue.string = function (e) { return Lp.__string_rec(e, ""); }), (Ue.parseInt = function (e) { var t = parseInt(e, 10); return ( 0 != t || (120 != he.cca(e, 1) && 88 != he.cca(e, 1)) || (t = parseInt(e)), isNaN(t) ? null : t ); }); var ze = function () { this.b = ""; }; ((s.StringBuf = ze).__name__ = ["StringBuf"]), (ze.prototype = { __class__: ze }); var Ri = function () {}; ((s.StringTools = Ri).__name__ = ["StringTools"]), (Ri.htmlEscape = function (e, t) { return ( (e = e .split("&") .join("&") .split("<") .join("<") .split(">") .join(">")), t ? e.split('"').join(""").split("'").join("'") : e ); }), (Ri.startsWith = function (e, t) { return e.length >= t.length && he.substr(e, 0, t.length) == t; }), (Ri.isSpace = function (e, t) { var s = he.cca(e, t); return (8 < s && s < 14) || 32 == s; }), (Ri.ltrim = function (e) { for (var t = e.length, s = 0; s < t && Ri.isSpace(e, s); ) ++s; return 0 < s ? he.substr(e, s, t - s) : e; }), (Ri.rtrim = function (e) { for (var t = e.length, s = 0; s < t && Ri.isSpace(e, t - s - 1); ) ++s; return 0 < s ? he.substr(e, 0, t - s) : e; }), (Ri.trim = function (e) { return Ri.ltrim(Ri.rtrim(e)); }), (Ri.replace = function (e, t, s) { return e.split(t).join(s); }), (Ri.hex = function (e, t) { for ( var s = ""; (s = "0123456789ABCDEF".charAt(15 & e) + s), 0 < (e >>>= 4); ); if (null != t) for (; s.length < t; ) s = "0" + s; return s; }); var Xe = function (e, t) { w.call(this, e, t); }; ((s["swf.SunBeam"] = Xe).__name__ = ["swf", "SunBeam"]), (Xe.__super__ = w), (Xe.prototype = n(w.prototype, { __class__: Xe })); var y_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[711]; Xe.call(this, r, o); }; ((s.SunBeam = y_).__name__ = ["SunBeam"]), (y_.__super__ = Xe), (y_.prototype = n(Xe.prototype, { __class__: y_ })); var He = function (e, t) { w.call(this, e, t); }; ((s["swf.SuperDart"] = He).__name__ = ["swf", "SuperDart"]), (He.__super__ = w), (He.prototype = n(w.prototype, { __class__: He })); var T_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[647]; He.call(this, r, o); }; ((s.SuperDart = T_).__name__ = ["SuperDart"]), (T_.__super__ = He), (T_.prototype = n(He.prototype, { __class__: T_ })); var Ve = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.SuperMonkey"] = Ve).__name__ = ["swf", "SuperMonkey"]), (Ve.__super__ = b), (Ve.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: Ve, })); var S_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[487]; Ve.call(this, r, o); }; ((s.SuperMonkey = S_).__name__ = ["SuperMonkey"]), (S_.__super__ = Ve), (S_.prototype = n(Ve.prototype, { __class__: S_ })); var Ye = function (e, t) { w.call(this, e, t); }; ((s["swf.Tack"] = Ye).__name__ = ["swf", "Tack"]), (Ye.__super__ = w), (Ye.prototype = n(w.prototype, { __class__: Ye })); var x_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[658]; Ye.call(this, r, o); }; ((s.Tack = x_).__name__ = ["Tack"]), (x_.__super__ = Ye), (x_.prototype = n(Ye.prototype, { __class__: x_ })); var We = function (e, t) { b.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.TackTower"] = We).__name__ = ["swf", "TackTower"]), (We.__super__ = b), (We.prototype = n(b.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: We, })); var E_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[455]; We.call(this, r, o); }; ((s.TackTower = E_).__name__ = ["TackTower"]), (E_.__super__ = We), (E_.prototype = n(We.prototype, { __class__: E_ })); var je = function (e, t) { w.call(this, e, t); }; ((s["swf.Tempest"] = je).__name__ = ["swf", "Tempest"]), (je.__super__ = w), (je.prototype = n(w.prototype, { __class__: je })); var P_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[36]; je.call(this, r, o); }; ((s.Tempest = P_).__name__ = ["Tempest"]), (P_.__super__ = je), (P_.prototype = n(je.prototype, { __class__: P_ })); var Ke = function (e, t) { w.call(this, e, t); }; ((s["swf.Tornado"] = Ke).__name__ = ["swf", "Tornado"]), (Ke.__super__ = w), (Ke.prototype = n(w.prototype, { __class__: Ke })); var R_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[76]; Ke.call(this, r, o); }; ((s.Tornado = R_).__name__ = ["Tornado"]), (R_.__super__ = Ke), (R_.prototype = n(Ke.prototype, { __class__: R_ })); var A_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[426]; b.call(this, r, o); }; ((s.Tower = A_).__name__ = ["Tower"]), (A_.__super__ = b), (A_.prototype = n(b.prototype, { __class__: A_ })); var qe = function (e, t) { (this.gridSize = 12), (this.squareSize = (540 / this.gridSize) | 0), u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), Zf.trace("new editor", { fileName: "TrackEditor.hx", lineNumber: 74, className: "swf.TrackEditor", methodName: "new", }), (this.currentTool = 0), (this.subTool = null), (this.isDrawing = !1), (this.isOnGrid = !1), (this.tracks = []), (this.cursors = [ this.cursor0, this.cursor1, this.cursor2, this.cursor3, this.cursor4, this.cursor5, this.cursor6, ]); for (var s = 1; s < this.cursors.length; ) s < 2 && (De.field(this.tools, "cursorbtn" + s + "_1").addEventListener( "click", CT(this, this.clickChangeTool) ), De.field(this.tools, "cursorbtn" + s + "_2").addEventListener( "click", CT(this, this.clickChangeTool) ), De.field(this.tools, "cursorbtn" + s + "_3").addEventListener( "click", CT(this, this.clickChangeTool) ), De.field(this.tools, "cursorbtn" + s + "_4").addEventListener( "click", CT(this, this.clickChangeTool) ), De.field(this.tools, "cursorbtn" + s + "_5").addEventListener( "click", CT(this, this.clickChangeTool) ), De.field(this.tools, "cursorbtn" + s + "_6").addEventListener( "click", CT(this, this.clickChangeTool) ), De.field(this.tools, "cursorbtn" + s + "_7").addEventListener( "click", CT(this, this.clickChangeTool) ), De.field(this.tools, "cursorbtn" + s + "_1").inner.gotoAndStop(1), De.field(this.tools, "cursorbtn" + s + "_2").inner.gotoAndStop(2), De.field(this.tools, "cursorbtn" + s + "_3").inner.gotoAndStop(3), De.field(this.tools, "cursorbtn" + s + "_4").inner.gotoAndStop(4), De.field(this.tools, "cursorbtn" + s + "_5").inner.gotoAndStop(5), De.field(this.tools, "cursorbtn" + s + "_6").inner.gotoAndStop(6), De.field(this.tools, "cursorbtn" + s + "_7").inner.gotoAndStop(7)), ++s; this.tools .resolve("startPos") .addEventListener("click", CT(this, this.clickSetToolStart)), this.tools .resolve("endPos") .addEventListener("click", CT(this, this.clickSetToolEnd)), this.setupArray(); }; ((s["swf.TrackEditor"] = qe).__name__ = ["swf", "TrackEditor"]), (qe.__super__ = u), (qe.prototype = n(u.prototype, { clearCellColRow: function (e, t) { var s = null; 0 != this.levelData[e][t] && (null != (s = this.pieceholder.getChildByName("piece" + e + "_" + t)) && this.pieceholder.removeChild(s), (this.levelData[e][t] = 0)); }, loadTrack: function (e) {}, frame1: function () { this.stop(), this.createnewtrackbtn.addEventListener( "click", CT(this, this.doNewTrack) ), this.exiteditorbtn.addEventListener( "click", CT(this, this.clickExitEditor) ); }, highlightPossibles: function () {}, clickSetToolEnd: function (e) { this.changeTool(6); }, getYFromRow: function (e) { return e * this.squareSize; }, clickChangeTool: function (e) { var t = Ue.parseInt( he.substr(Lp.__cast(e.currentTarget, u).__name, 9, 1) ), s = Ue.parseInt( he.substr(Lp.__cast(e.currentTarget, u).__name, 11, 1) ); this.changeTool(t, s); }, deactivateEditor: function () { this.removeEventListener("enterFrame", CT(this, this.editorLoop)); }, saveTrack: function () {}, getRowFromY: function (e) { return Math.floor(e / this.squareSize); }, clearAll: function () { for (var e = 0, t = 0; t < this.gridSize; ) { for (e = 0; e < this.gridSize; ) this.clearCellColRow(t, e), ++e; ++t; } }, gotoEditorMenu: function (e) { this.gotoAndStop("menu"), this.deactivateEditor(); }, getType: function (e, t) { return ( (e = this.getColFromX(e)), (t = this.getRowFromY(t)), De.field( De.field(this.levelData, null == e ? "null" : "" + e), null == t ? "null" : "" + t ) ); }, clickSetToolStart: function (e) { this.changeTool(5); }, doNewTrack: function (e) { Zf.trace("create new track", { fileName: "TrackEditor.hx", lineNumber: 204, className: "swf.TrackEditor", methodName: "doNewTrack", }), this.gotoAndStop("editor"); }, getColFromX: function (e) { return Math.floor(e / this.squareSize); }, activateEditor: function () { (this.gridArea = this.gridarea), this.game.playarea.gotoAndStop(1), this.addEventListener("enterFrame", CT(this, this.editorLoop)), this.addEventListener("click", CT(this, this.clickGrid)), (this.currentTool = 0), this.changeTool(1, 1), (this.currentTrack = []), this.highlightPossibles(); }, editorLoop: function (e) { var t = 0, s = 0; this.get_mouseX() < 540 && this.get_mouseY() < 540 ? ((t = this.getColFromX(this.get_mouseX())), (s = this.getRowFromY(this.get_mouseY())), (this.cursors[this.currentTool].x = t * this.squareSize), (this.cursors[this.currentTool].y = s * this.squareSize)) : (this.cursors[this.currentTool].x = 1e3); }, clearCell: function (e, t) { var s = this.getColFromX(e), n = this.getRowFromY(t); this.clearCellColRow(s, n); }, clearAllClick: function (e) { this.clearAll(); }, createPiece: function (e, t, s, n) { null == n && (n = 0); var i = null; if (((this.levelData[t][s] = e + "" + n), e < 5)) throw new Mp(""); 5 == e && (((i = new Xh()).name = "Entry"), (i.x = this.getXFromCol(t)), (i.y = this.getYFromRow(s)), (i.x += 22.5), (i.y += 22.5)), 6 == e && (((i = new Vh()).name = "Exit"), (i.x = this.getXFromCol(t)), (i.y = this.getYFromRow(s)), (i.x += 22.5), (i.y += 22.5)), (i.row = s), (i.col = t), (i.type = e); var r = this.pieceholder; r.addChildAt(i, r.__children._length); }, setupArray: function () { this.levelData = []; for (var e = 0; e < this.gridSize; ) { this.levelData[e] = []; for (var t = 0; t < this.gridSize; ) (this.levelData[e][t] = 0), ++t; ++e; } }, getXFromCol: function (e) { return e * this.squareSize; }, frame2: function () { this.stop(), this.gotomenubtn.addEventListener( "click", CT(this, this.gotoEditorMenu) ), this.clearallbtn.addEventListener( "click", CT(this, this.clearAllClick) ), this.activateEditor(); }, changeTool: function (e, t) { null == t && (t = 0), (this.cursors[this.currentTool].x = 1e3), (this.currentTool = e), 0 != t && ((this.subTool = t), this.cursors[this.currentTool].inner.gotoAndStop(t)); }, clickExitEditor: function (e) { this.set_visible(!1); }, clickGrid: function (e) { var t = 0, s = 0; this.get_mouseX() < 540 && this.get_mouseY() < 540 && ((t = this.getColFromX(this.get_mouseX())), (s = this.getRowFromY(this.get_mouseY())), 0 == this.levelData[t][s] ? 0 != this.currentTool && this.createPiece(this.currentTool, t, s, this.subTool) : 0 == this.currentTool && (Zf.trace("delete", { fileName: "TrackEditor.hx", lineNumber: 353, className: "swf.TrackEditor", methodName: "clickGrid", }), this.clearCellColRow(t, s))); }, __class__: qe, })); var I_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[759]; qe.call(this, r, o); }; ((s.TrackEditor = I_).__name__ = ["TrackEditor"]), (I_.__super__ = qe), (I_.prototype = n(qe.prototype, { __class__: I_ })); var Ze = function (e, t) { u.call(this, e, t); }; ((s["swf.TrackNode"] = Ze).__name__ = ["swf", "TrackNode"]), (Ze.__super__ = u), (Ze.prototype = n(u.prototype, { __class__: Ze })); var C_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[245]; Ze.call(this, r, o); }; ((s.TrackNode = C_).__name__ = ["TrackNode"]), (C_.__super__ = Ze), (C_.prototype = n(Ze.prototype, { __class__: C_ })); var Je = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPiece1"] = Je).__name__ = ["swf", "TrackPiece1"]), (Je.__super__ = Y), (Je.prototype = n(Y.prototype, { __class__: Je })); var B_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[261]; Je.call(this, r, o); }; ((s.TrackPiece1 = B_).__name__ = ["TrackPiece1"]), (B_.__super__ = Je), (B_.prototype = n(Je.prototype, { __class__: B_ })); var Qe = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPiece2"] = Qe).__name__ = ["swf", "TrackPiece2"]), (Qe.__super__ = Y), (Qe.prototype = n(Y.prototype, { __class__: Qe })); var D_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[259]; Qe.call(this, r, o); }; ((s.TrackPiece2 = D_).__name__ = ["TrackPiece2"]), (D_.__super__ = Qe), (D_.prototype = n(Qe.prototype, { __class__: D_ })); var $e = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPiece3"] = $e).__name__ = ["swf", "TrackPiece3"]), ($e.__super__ = Y), ($e.prototype = n(Y.prototype, { __class__: $e })); var k_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[257]; $e.call(this, r, o); }; ((s.TrackPiece3 = k_).__name__ = ["TrackPiece3"]), (k_.__super__ = $e), (k_.prototype = n($e.prototype, { __class__: k_ })); var et = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPiece4"] = et).__name__ = ["swf", "TrackPiece4"]), (et.__super__ = Y), (et.prototype = n(Y.prototype, { __class__: et })); var F_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[255]; et.call(this, r, o); }; ((s.TrackPiece4 = F_).__name__ = ["TrackPiece4"]), (F_.__super__ = et), (F_.prototype = n(et.prototype, { __class__: F_ })); var tt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPiece5"] = tt).__name__ = ["swf", "TrackPiece5"]), (tt.__super__ = Y), (tt.prototype = n(Y.prototype, { __class__: tt })); var M_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[253]; tt.call(this, r, o); }; ((s.TrackPiece5 = M_).__name__ = ["TrackPiece5"]), (M_.__super__ = tt), (M_.prototype = n(tt.prototype, { __class__: M_ })); var st = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPiece6"] = st).__name__ = ["swf", "TrackPiece6"]), (st.__super__ = Y), (st.prototype = n(Y.prototype, { __class__: st })); var L_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[251]; st.call(this, r, o); }; ((s.TrackPiece6 = L_).__name__ = ["TrackPiece6"]), (L_.__super__ = st), (L_.prototype = n(st.prototype, { __class__: L_ })); var nt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPiece7"] = nt).__name__ = ["swf", "TrackPiece7"]), (nt.__super__ = Y), (nt.prototype = n(Y.prototype, { __class__: nt })); var N_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[805]; nt.call(this, r, o); }; ((s.TrackPiece7 = N_).__name__ = ["TrackPiece7"]), (N_.__super__ = nt), (N_.prototype = n(nt.prototype, { __class__: N_ })); var it = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack1"] = it).__name__ = ["swf", "TrackPieceTrack1"]), (it.__super__ = Y), (it.prototype = n(Y.prototype, { __class__: it })); var O_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[806]; it.call(this, r, o); }; ((s.TrackPiece_track1 = O_).__name__ = ["TrackPiece_track1"]), (O_.__super__ = it), (O_.prototype = n(it.prototype, { __class__: O_ })); var rt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack10"] = rt).__name__ = ["swf", "TrackPieceTrack10"]), (rt.__super__ = Y), (rt.prototype = n(Y.prototype, { __class__: rt })); var U_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[778]; rt.call(this, r, o); }; ((s.TrackPiece_track10 = U_).__name__ = ["TrackPiece_track10"]), (U_.__super__ = rt), (U_.prototype = n(rt.prototype, { __class__: U_ })); var ot = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack10b"] = ot).__name__ = ["swf", "TrackPieceTrack10b"]), (ot.__super__ = Y), (ot.prototype = n(Y.prototype, { __class__: ot })); var G_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[249]; ot.call(this, r, o); }; ((s.TrackPiece_track10b = G_).__name__ = ["TrackPiece_track10b"]), (G_.__super__ = ot), (G_.prototype = n(ot.prototype, { __class__: G_ })); var at = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack12"] = at).__name__ = ["swf", "TrackPieceTrack12"]), (at.__super__ = Y), (at.prototype = n(Y.prototype, { __class__: at })); var z_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[777]; at.call(this, r, o); }; ((s.TrackPiece_track12 = z_).__name__ = ["TrackPiece_track12"]), (z_.__super__ = at), (z_.prototype = n(at.prototype, { __class__: z_ })); var lt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack12b"] = lt).__name__ = ["swf", "TrackPieceTrack12b"]), (lt.__super__ = Y), (lt.prototype = n(Y.prototype, { __class__: lt })); var X_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[776]; lt.call(this, r, o); }; ((s.TrackPiece_track12b = X_).__name__ = ["TrackPiece_track12b"]), (X_.__super__ = lt), (X_.prototype = n(lt.prototype, { __class__: X_ })); var ht = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack2"] = ht).__name__ = ["swf", "TrackPieceTrack2"]), (ht.__super__ = Y), (ht.prototype = n(Y.prototype, { __class__: ht })); var H_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[793]; ht.call(this, r, o); }; ((s.TrackPiece_track2 = H_).__name__ = ["TrackPiece_track2"]), (H_.__super__ = ht), (H_.prototype = n(ht.prototype, { __class__: H_ })); var _t = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack2b"] = _t).__name__ = ["swf", "TrackPieceTrack2b"]), (_t.__super__ = Y), (_t.prototype = n(Y.prototype, { __class__: _t })); var V_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[792]; _t.call(this, r, o); }; ((s.TrackPiece_track2b = V_).__name__ = ["TrackPiece_track2b"]), (V_.__super__ = _t), (V_.prototype = n(_t.prototype, { __class__: V_ })); var ut = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack3"] = ut).__name__ = ["swf", "TrackPieceTrack3"]), (ut.__super__ = Y), (ut.prototype = n(Y.prototype, { __class__: ut })); var Y_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[791]; ut.call(this, r, o); }; ((s.TrackPiece_track3 = Y_).__name__ = ["TrackPiece_track3"]), (Y_.__super__ = ut), (Y_.prototype = n(ut.prototype, { __class__: Y_ })); var dt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack3b"] = dt).__name__ = ["swf", "TrackPieceTrack3b"]), (dt.__super__ = Y), (dt.prototype = n(Y.prototype, { __class__: dt })); var W_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[790]; dt.call(this, r, o); }; ((s.TrackPiece_track3b = W_).__name__ = ["TrackPiece_track3b"]), (W_.__super__ = dt), (W_.prototype = n(dt.prototype, { __class__: W_ })); var ct = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack4"] = ct).__name__ = ["swf", "TrackPieceTrack4"]), (ct.__super__ = Y), (ct.prototype = n(Y.prototype, { __class__: ct })); var j_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[798]; ct.call(this, r, o); }; ((s.TrackPiece_track4 = j_).__name__ = ["TrackPiece_track4"]), (j_.__super__ = ct), (j_.prototype = n(ct.prototype, { __class__: j_ })); var ft = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack4b"] = ft).__name__ = ["swf", "TrackPieceTrack4b"]), (ft.__super__ = Y), (ft.prototype = n(Y.prototype, { __class__: ft })); var K_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[246]; ft.call(this, r, o); }; ((s.TrackPiece_track4b = K_).__name__ = ["TrackPiece_track4b"]), (K_.__super__ = ft), (K_.prototype = n(ft.prototype, { __class__: K_ })); var pt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack5"] = pt).__name__ = ["swf", "TrackPieceTrack5"]), (pt.__super__ = Y), (pt.prototype = n(Y.prototype, { __class__: pt })); var q_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[804]; pt.call(this, r, o); }; ((s.TrackPiece_track5 = q_).__name__ = ["TrackPiece_track5"]), (q_.__super__ = pt), (q_.prototype = n(pt.prototype, { __class__: q_ })); var bt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack5b"] = bt).__name__ = ["swf", "TrackPieceTrack5b"]), (bt.__super__ = Y), (bt.prototype = n(Y.prototype, { __class__: bt })); var Z_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[803]; bt.call(this, r, o); }; ((s.TrackPiece_track5b = Z_).__name__ = ["TrackPiece_track5b"]), (Z_.__super__ = bt), (Z_.prototype = n(bt.prototype, { __class__: Z_ })); var mt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack5c"] = mt).__name__ = ["swf", "TrackPieceTrack5c"]), (mt.__super__ = Y), (mt.prototype = n(Y.prototype, { __class__: mt })); var J_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[802]; mt.call(this, r, o); }; ((s.TrackPiece_track5c = J_).__name__ = ["TrackPiece_track5c"]), (J_.__super__ = mt), (J_.prototype = n(mt.prototype, { __class__: J_ })); var gt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack6"] = gt).__name__ = ["swf", "TrackPieceTrack6"]), (gt.__super__ = Y), (gt.prototype = n(Y.prototype, { __class__: gt })); var Q_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[801]; gt.call(this, r, o); }; ((s.TrackPiece_track6 = Q_).__name__ = ["TrackPiece_track6"]), (Q_.__super__ = gt), (Q_.prototype = n(gt.prototype, { __class__: Q_ })); var wt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack6b"] = wt).__name__ = ["swf", "TrackPieceTrack6b"]), (wt.__super__ = Y), (wt.prototype = n(Y.prototype, { __class__: wt })); var $_ = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[800]; wt.call(this, r, o); }; ((s.TrackPiece_track6b = $_).__name__ = ["TrackPiece_track6b"]), ($_.__super__ = wt), ($_.prototype = n(wt.prototype, { __class__: $_ })); var vt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack6c"] = vt).__name__ = ["swf", "TrackPieceTrack6c"]), (vt.__super__ = Y), (vt.prototype = n(Y.prototype, { __class__: vt })); var eu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[799]; vt.call(this, r, o); }; ((s.TrackPiece_track6c = eu).__name__ = ["TrackPiece_track6c"]), (eu.__super__ = vt), (eu.prototype = n(vt.prototype, { __class__: eu })); var Tt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack7"] = Tt).__name__ = ["swf", "TrackPieceTrack7"]), (Tt.__super__ = Y), (Tt.prototype = n(Y.prototype, { __class__: Tt })); var tu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[789]; Tt.call(this, r, o); }; ((s.TrackPiece_track7 = tu).__name__ = ["TrackPiece_track7"]), (tu.__super__ = Tt), (tu.prototype = n(Tt.prototype, { __class__: tu })); var St = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack7b"] = St).__name__ = ["swf", "TrackPieceTrack7b"]), (St.__super__ = Y), (St.prototype = n(Y.prototype, { __class__: St })); var su = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[788]; St.call(this, r, o); }; ((s.TrackPiece_track7b = su).__name__ = ["TrackPiece_track7b"]), (su.__super__ = St), (su.prototype = n(St.prototype, { __class__: su })); var xt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack8"] = xt).__name__ = ["swf", "TrackPieceTrack8"]), (xt.__super__ = Y), (xt.prototype = n(Y.prototype, { __class__: xt })); var nu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[787]; xt.call(this, r, o); }; ((s.TrackPiece_track8 = nu).__name__ = ["TrackPiece_track8"]), (nu.__super__ = xt), (nu.prototype = n(xt.prototype, { __class__: nu })); var Et = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack8b"] = Et).__name__ = ["swf", "TrackPieceTrack8b"]), (Et.__super__ = Y), (Et.prototype = n(Y.prototype, { __class__: Et })); var iu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[786]; Et.call(this, r, o); }; ((s.TrackPiece_track8b = iu).__name__ = ["TrackPiece_track8b"]), (iu.__super__ = Et), (iu.prototype = n(Et.prototype, { __class__: iu })); var Pt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack8c"] = Pt).__name__ = ["swf", "TrackPieceTrack8c"]), (Pt.__super__ = Y), (Pt.prototype = n(Y.prototype, { __class__: Pt })); var ru = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[785]; Pt.call(this, r, o); }; ((s.TrackPiece_track8c = ru).__name__ = ["TrackPiece_track8c"]), (ru.__super__ = Pt), (ru.prototype = n(Pt.prototype, { __class__: ru })); var Rt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack8d"] = Rt).__name__ = ["swf", "TrackPieceTrack8d"]), (Rt.__super__ = Y), (Rt.prototype = n(Y.prototype, { __class__: Rt })); var ou = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[784]; Rt.call(this, r, o); }; ((s.TrackPiece_track8d = ou).__name__ = ["TrackPiece_track8d"]), (ou.__super__ = Rt), (ou.prototype = n(Rt.prototype, { __class__: ou })); var At = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack8e"] = At).__name__ = ["swf", "TrackPieceTrack8e"]), (At.__super__ = Y), (At.prototype = n(Y.prototype, { __class__: At })); var au = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[783]; At.call(this, r, o); }; ((s.TrackPiece_track8e = au).__name__ = ["TrackPiece_track8e"]), (au.__super__ = At), (au.prototype = n(At.prototype, { __class__: au })); var It = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack9"] = It).__name__ = ["swf", "TrackPieceTrack9"]), (It.__super__ = Y), (It.prototype = n(Y.prototype, { __class__: It })); var lu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[248]; It.call(this, r, o); }; ((s.TrackPiece_track9 = lu).__name__ = ["TrackPiece_track9"]), (lu.__super__ = It), (lu.prototype = n(It.prototype, { __class__: lu })); var Ct = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrack9b"] = Ct).__name__ = ["swf", "TrackPieceTrack9b"]), (Ct.__super__ = Y), (Ct.prototype = n(Y.prototype, { __class__: Ct })); var hu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[247]; Ct.call(this, r, o); }; ((s.TrackPiece_track9b = hu).__name__ = ["TrackPiece_track9b"]), (hu.__super__ = Ct), (hu.prototype = n(Ct.prototype, { __class__: hu })); var Bt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrackant1"] = Bt).__name__ = [ "swf", "TrackPieceTrackant1", ]), (Bt.__super__ = Y), (Bt.prototype = n(Y.prototype, { __class__: Bt })); var _u = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[797]; Bt.call(this, r, o); }; ((s.TrackPiece_trackant1 = _u).__name__ = ["TrackPiece_trackant1"]), (_u.__super__ = Bt), (_u.prototype = n(Bt.prototype, { __class__: _u })); var Dt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrackant2"] = Dt).__name__ = [ "swf", "TrackPieceTrackant2", ]), (Dt.__super__ = Y), (Dt.prototype = n(Y.prototype, { __class__: Dt })); var uu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[796]; Dt.call(this, r, o); }; ((s.TrackPiece_trackant2 = uu).__name__ = ["TrackPiece_trackant2"]), (uu.__super__ = Dt), (uu.prototype = n(Dt.prototype, { __class__: uu })); var kt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrackant3"] = kt).__name__ = [ "swf", "TrackPieceTrackant3", ]), (kt.__super__ = Y), (kt.prototype = n(Y.prototype, { __class__: kt })); var du = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[795]; kt.call(this, r, o); }; ((s.TrackPiece_trackant3 = du).__name__ = ["TrackPiece_trackant3"]), (du.__super__ = kt), (du.prototype = n(kt.prototype, { __class__: du })); var Ft = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrackant4"] = Ft).__name__ = [ "swf", "TrackPieceTrackant4", ]), (Ft.__super__ = Y), (Ft.prototype = n(Y.prototype, { __class__: Ft })); var cu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[794]; Ft.call(this, r, o); }; ((s.TrackPiece_trackant4 = cu).__name__ = ["TrackPiece_trackant4"]), (cu.__super__ = Ft), (cu.prototype = n(Ft.prototype, { __class__: cu })); var Mt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrackxa"] = Mt).__name__ = ["swf", "TrackPieceTrackxa"]), (Mt.__super__ = Y), (Mt.prototype = n(Y.prototype, { __class__: Mt })); var fu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[782]; Mt.call(this, r, o); }; ((s.TrackPiece_trackxa = fu).__name__ = ["TrackPiece_trackxa"]), (fu.__super__ = Mt), (fu.prototype = n(Mt.prototype, { __class__: fu })); var Lt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrackxb"] = Lt).__name__ = ["swf", "TrackPieceTrackxb"]), (Lt.__super__ = Y), (Lt.prototype = n(Y.prototype, { __class__: Lt })); var pu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[781]; Lt.call(this, r, o); }; ((s.TrackPiece_trackxb = pu).__name__ = ["TrackPiece_trackxb"]), (pu.__super__ = Lt), (pu.prototype = n(Lt.prototype, { __class__: pu })); var Nt = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrackxc"] = Nt).__name__ = ["swf", "TrackPieceTrackxc"]), (Nt.__super__ = Y), (Nt.prototype = n(Y.prototype, { __class__: Nt })); var bu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[780]; Nt.call(this, r, o); }; ((s.TrackPiece_trackxc = bu).__name__ = ["TrackPiece_trackxc"]), (bu.__super__ = Nt), (bu.prototype = n(Nt.prototype, { __class__: bu })); var Ot = function (e, t) { Y.call(this, e, t); }; ((s["swf.TrackPieceTrackxd"] = Ot).__name__ = ["swf", "TrackPieceTrackxd"]), (Ot.__super__ = Y), (Ot.prototype = n(Y.prototype, { __class__: Ot })); var mu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[779]; Ot.call(this, r, o); }; ((s.TrackPiece_trackxd = mu).__name__ = ["TrackPiece_trackxd"]), (mu.__super__ = Ot), (mu.prototype = n(Ot.prototype, { __class__: mu })); var Ut = (s.ValueType = { __ename__: ["ValueType"], __constructs__: [ "TNull", "TInt", "TFloat", "TBool", "TObject", "TFunction", "TClass", "TEnum", "TUnknown", ], }); (Ut.TNull = ["TNull", 0]), (Ut.TNull.toString = c), ((Ut.TNull.__enum__ = Ut).TInt = ["TInt", 1]), (Ut.TInt.toString = c), ((Ut.TInt.__enum__ = Ut).TFloat = ["TFloat", 2]), (Ut.TFloat.toString = c), ((Ut.TFloat.__enum__ = Ut).TBool = ["TBool", 3]), (Ut.TBool.toString = c), ((Ut.TBool.__enum__ = Ut).TObject = ["TObject", 4]), (Ut.TObject.toString = c), ((Ut.TObject.__enum__ = Ut).TFunction = ["TFunction", 5]), (Ut.TFunction.toString = c), ((Ut.TFunction.__enum__ = Ut).TClass = function (e) { var t = ["TClass", 6, e]; return (t.__enum__ = Ut), (t.toString = c), t; }), (Ut.TEnum = function (e) { var t = ["TEnum", 7, e]; return (t.__enum__ = Ut), (t.toString = c), t; }), (Ut.TUnknown = ["TUnknown", 8]), (Ut.TUnknown.toString = c), (Ut.TUnknown.__enum__ = Ut); var ms = function () {}; ((s.Type = ms).__name__ = ["Type"]), (ms.getSuperClass = function (e) { return e.__super__; }), (ms.getClassName = function (e) { var t = e.__name__; return null == t ? null : t.join("."); }), (ms.getEnumName = function (e) { return e.__ename__.join("."); }), (ms.resolveClass = function (e) { var t = s[e]; return null != t && t.__name__ ? t : null; }), (ms.resolveEnum = function (e) { var t = s[e]; return null != t && t.__ename__ ? t : null; }), (ms.createInstance = function (e, t) { switch (t.length) { case 0: return new e(); case 1: return new e(t[0]); case 2: return new e(t[0], t[1]); case 3: return new e(t[0], t[1], t[2]); case 4: return new e(t[0], t[1], t[2], t[3]); case 5: return new e(t[0], t[1], t[2], t[3], t[4]); case 6: return new e(t[0], t[1], t[2], t[3], t[4], t[5]); case 7: return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6]); case 8: return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7]); case 9: return new e(t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8]); case 10: return new e( t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9] ); case 11: return new e( t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10] ); case 12: return new e( t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11] ); case 13: return new e( t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11], t[12] ); case 14: return new e( t[0], t[1], t[2], t[3], t[4], t[5], t[6], t[7], t[8], t[9], t[10], t[11], t[12], t[13] ); default: throw new Mp("Too many arguments"); } }), (ms.createEmptyInstance = function (e) { function t() {} return (t.prototype = e.prototype), new t(); }), (ms.createEnum = function (e, t, s) { var n = De.field(e, t); if (null == n) throw new Mp("No such constructor " + t); if (De.isFunction(n)) { if (null == s) throw new Mp("Constructor " + t + " need parameters"); return n.apply(e, s); } if (null != s && 0 != s.length) throw new Mp("Constructor " + t + " does not need parameters"); return n; }), (ms.getClassFields = function (e) { var t = De.fields(e); return ( he.remove(t, "__name__"), he.remove(t, "__interfaces__"), he.remove(t, "__properties__"), he.remove(t, "__super__"), he.remove(t, "__meta__"), he.remove(t, "prototype"), t ); }), (ms.typeof = function (e) { switch (typeof e) { case "boolean": return Ut.TBool; case "function": return e.__name__ || e.__ename__ ? Ut.TObject : Ut.TFunction; case "number": return Math.ceil(e) == e % 2147483648 ? Ut.TInt : Ut.TFloat; case "object": if (null == e) return Ut.TNull; var t = e.__enum__; if (null != t) return Ut.TEnum(t); var s = Lp.getClass(e); return null != s ? Ut.TClass(s) : Ut.TObject; case "string": return Ut.TClass(String); case "undefined": return Ut.TNull; default: return Ut.TUnknown; } }), (ms.enumEq = function (e, t) { if (e == t) return !0; try { if (e[0] != t[0]) return !1; for (var s = 2, n = e.length; s < n; ) { var i = s++; if (!ms.enumEq(e[i], t[i])) return !1; } var r = e.__enum__; if (r != t.__enum__ || null == r) return !1; } catch (e) { return (jf.lastException = e), !1; } return !0; }); var Gt = {}; ((s["_UInt.UInt_Impl_"] = Gt).__name__ = ["_UInt", "UInt_Impl_"]), (Gt.gt = function (e, t) { var s = e < 0; return s != t < 0 ? s : t < e; }), (Gt.toFloat = function (e) { return e < 0 ? 4294967296 + e : e + 0; }); var zt = function () {}; ((s.Util = zt).__name__ = ["Util"]), (zt.isMobile = function () { return "ontouchstart" in window; }), (zt.registerVersions = function () { var e = new up(); null != NT.project ? e.setReserved("project", "1288a783e9ee251c82414b236f4b11d93af80893") : (e.h.project = "1288a783e9ee251c82414b236f4b11d93af80893"), null != NT.openfl ? e.setReserved("openfl", "61b6be8b48a5049db8bc60bc2e0449997c641ebc") : (e.h.openfl = "61b6be8b48a5049db8bc60bc2e0449997c641ebc"), (t.version = e); }); var Xt = function () {}; (s.Version = Xt).__name__ = ["Version"]; var Ht = function (e, t) { u.call(this, e, t); }; ((s["swf.Waterhit"] = Ht).__name__ = ["swf", "Waterhit"]), (Ht.__super__ = u), (Ht.prototype = n(u.prototype, { __class__: Ht })); var gu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[808]; Ht.call(this, r, o); }; ((s.Waterhit = gu).__name__ = ["Waterhit"]), (gu.__super__ = Ht), (gu.prototype = n(Ht.prototype, { __class__: gu })); var Vt = function (e) { (this.nodeType = e), (this.children = []), (this.attributeMap = new up()); }; ((s.Xml = Vt).__name__ = ["Xml"]), (Vt.parse = function (e) { return Sp.parse(e); }), (Vt.createElement = function (e) { var t = new Vt(Vt.Element); if (t.nodeType != Vt.Element) throw new Mp("Bad node type, expected Element but found " + t.nodeType); return (t.nodeName = e), t; }), (Vt.createPCData = function (e) { var t = new Vt(Vt.PCData); if (t.nodeType == Vt.Document || t.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + t.nodeType); return (t.nodeValue = e), t; }), (Vt.createCData = function (e) { var t = new Vt(Vt.CData); if (t.nodeType == Vt.Document || t.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + t.nodeType); return (t.nodeValue = e), t; }), (Vt.createComment = function (e) { var t = new Vt(Vt.Comment); if (t.nodeType == Vt.Document || t.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + t.nodeType); return (t.nodeValue = e), t; }), (Vt.createDocType = function (e) { var t = new Vt(Vt.DocType); if (t.nodeType == Vt.Document || t.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + t.nodeType); return (t.nodeValue = e), t; }), (Vt.createProcessingInstruction = function (e) { var t = new Vt(Vt.ProcessingInstruction); if (t.nodeType == Vt.Document || t.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + t.nodeType); return (t.nodeValue = e), t; }), (Vt.createDocument = function () { return new Vt(Vt.Document); }), (Vt.prototype = { get: function (e) { if (this.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element but found " + this.nodeType ); var t = this.attributeMap; return null != NT[e] ? t.getReserved(e) : t.h[e]; }, set: function (e, t) { if (this.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element but found " + this.nodeType ); var s = this.attributeMap; null != NT[e] ? s.setReserved(e, t) : (s.h[e] = t); }, exists: function (e) { if (this.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element but found " + this.nodeType ); var t = this.attributeMap; return null != NT[e] ? t.existsReserved(e) : t.h.hasOwnProperty(e); }, attributes: function () { if (this.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element but found " + this.nodeType ); return this.attributeMap.keys(); }, addChild: function (e) { if (this.nodeType != Vt.Document && this.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element or Document but found " + this.nodeType ); null != e.parent && e.parent.removeChild(e), this.children.push(e), (e.parent = this); }, removeChild: function (e) { if (this.nodeType != Vt.Document && this.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element or Document but found " + this.nodeType ); return !!he.remove(this.children, e) && !(e.parent = null); }, __class__: Vt, }); var Yt = function (e, t) { null == t && (t = 0), (this._loaded = !0); var s = null, n = NaN, i = null, r = null, o = null, a = 0; (this._rotationStepsNum = 0 == t ? 1 : t), (this._rotationStepSize = Yt.TWOPI / this._rotationStepsNum), (this.frames = []), (this.labels = {}); for (var l = new Km(), h = new d(), _ = 0; _ < e.get_totalFrames(); ) { for ( r = [], this.frames[_] = r, e.gotoAndStop(_ + 1), a = 0; a < this._rotationStepsNum; ) (s = new Kt()), (r[a] = s), (n = a * this._rotationStepSize), e.set_rotation((360 * n) / Yt.TWOPI), (i = e.getBounds(h)), l.identity(), l.rotate(n), l.translate(-i.x, -i.y), (s.pos = i.get_topLeft()), (s.data = new sw(0 | i.width, 0 | i.height, !0, 0)), s.data.draw(e, l), ++a; ++_; } for (var u = 0; u < e.get_currentLabels().length; ) (o = e.get_currentLabels()[u]), (this.labels[o.get_name()] = o.get_frame()), ++u; }; ((s["bitClip.Animation"] = Yt).__name__ = ["bitClip", "Animation"]), (Yt.__properties__ = { set_shushLoad: "set_shushLoad", set_shushLoadEnqueueFunction: "set_shushLoadEnqueueFunction", set_shushLoadQueueHurry: "set_shushLoadQueueHurry", get_shushLoadQueueHurry: "get_shushLoadQueueHurry", set_isShushLoaded: "set_isShushLoaded", get_isShushLoaded: "get_isShushLoaded", }), (Yt._shushLoadEnqueue = null), (Yt._shushLoadHurry = null), (Yt._shushLoaded = null), (Yt.set_isShushLoaded = function (e) { return (Yt._shushLoaded = e); }), (Yt.get_shushLoadQueueHurry = function () { return Yt._shushLoadHurry; }), (Yt.set_shushLoadEnqueueFunction = function (e) { return (Yt._shushLoadEnqueue = e); }), (Yt.get_isShushLoaded = function () { return Yt._shushLoaded; }), (Yt.set_shushLoadQueueHurry = function (e) { return (Yt._shushLoadHurry = e); }), (Yt.set_shushLoad = function (e) { return (Yt._shushLoad = e); }), (Yt.prototype = { getBMD: function (e, t) { for (null == t && (t = 0); t < 0; ) t += Yt.TWOPI; for (; t >= Yt.TWOPI; ) t -= Yt.TWOPI; return ( (this.rotIndex = (t / this._rotationStepSize + 0.5) | 0), this.rotIndex == this._rotationStepsNum && (this.rotIndex = 0), this.frames[e - 1][this.rotIndex] ); }, get_loaded: function () { return this._loaded; }, setLoaded: function () { this._loaded = !0; }, __class__: Yt, __properties__: { get_loaded: "get_loaded" }, }); var Wt = function (e, t) { null == t && (t = 0), (this.y = 0), (this.x = 0), (this.playing = !0), (this.deleteMe = !1), (this.angle = 0); var s = null; if ( (null != e && (null == this.clip ? (this.clip = e) : Zf.trace("misused bitclip!", { fileName: "BitClip.hx", lineNumber: 57, className: "bitClip.BitClip", methodName: "new", })), 0 != t && (this.rotationStepsNum = t), null == Wt.animations && (Wt.animations = {}), null != this.clip) ) { (this.totalFrames = this.clip.get_totalFrames()), (this.currentFrame = 1); try { s = Lp.__cast(De.field(Wt.animations, Ue.string(this.clip)), Yt); } catch (e) { (jf.lastException = e), (s = null); } null != s ? (this.animation = s) : (this.setSource(), Zf.trace("created new animation bitmaps", { fileName: "BitClip.hx", lineNumber: 80, className: "bitClip.BitClip", methodName: "new", })); } }; ((s["bitClip.BitClip"] = Wt).__name__ = ["bitClip", "BitClip"]), (Wt.animations = null), (Wt.prototype = { get_bmd: function () { var e = this.animation.getBMD(this.currentFrame, this.angle), t = new Kt(); return ( (t.data = e.data), (t.pos = e.pos.clone()), t.pos.offset(this.x, this.y), t ); }, setFrameAction: function (e, t) { null == this.animation.actions && (this.animation.actions = []), null == this.animation.actions[e] && (this.animation.actions[e] = t); }, stop: function () { this.playing = !1; }, get_recto: function () { var e = this.get_bmd(); return new cy(e.pos.x, e.pos.y, e.data.width, e.data.height); }, gotoAndPlayLabel: function (e) { null != De.field(this.animation.labels, e) && (this.currentFrame = De.field(this.animation.labels, e)), (this.playing = !0), (this.didGotoAction = !0); }, gotoAndPlay: function (e) { 0 < e && e <= this.totalFrames && (this.currentFrame = e), (this.playing = !0), (this.didGotoAction = !0); }, set_definitionClip: function (e) { return ( null == this.clip ? (this.clip = e) : Zf.trace("danger! danger!", { fileName: "BitClip.hx", lineNumber: 163, className: "bitClip.BitClip", methodName: "set_definitionClip", }), e ); }, render: function (e, t, s, n, i) { for ( null == i && (i = 0), null == n && (n = 0), null == s && (s = 0); !this.animation.get_loaded(); ) Yt.get_shushLoadQueueHurry()(), Zf.trace("hurry...", { fileName: "BitClip.hx", lineNumber: 173, className: "bitClip.BitClip", methodName: "render", }); var r = this.animation.getBMD(this.currentFrame, this.angle + i), o = r.pos.subtract(t.get_topLeft()); o.offset(this.x, this.y), o.offset(s, n), Lp.__cast(e.bitmapData, sw).copyPixels( r.data, new cy(0, 0, r.data.width, r.data.height), o, null, null, !0 ), this.playing && ((this.didGotoAction = !1), null != this.animation.actions && null != this.animation.actions[this.currentFrame] && ((this.frameAction = this.animation.actions[this.currentFrame]), this.frameAction(this)), this.playing && !this.didGotoAction && (this.currentFrame++, this.currentFrame > this.totalFrames && (this.currentFrame = 1))); }, step: function () { this.playing && (this.currentFrame++, this.currentFrame > this.totalFrames && (this.currentFrame = 1)); }, setSource: function () { var e = new Yt(this.clip, this.rotationStepsNum); (Wt.animations[Ue.string(this.clip)] = e), (this.animation = e); }, set_rotateSteps: function (e) { return ( null != this.clip ? Zf.trace("to late to change rotation steps!", { fileName: "BitClip.hx", lineNumber: 225, className: "bitClip.BitClip", methodName: "set_rotateSteps", }) : (this.rotationStepsNum = e), e ); }, gotoAndStop: function (e) { 0 < e && e <= this.totalFrames && (this.currentFrame = e), (this.playing = !1), (this.didGotoAction = !0); }, play: function () { this.playing = !0; }, gotoAndStopLabel: function (e) { Object.prototype.hasOwnProperty.call(this.animation.labels, e) && (this.currentFrame = De.field(this.animation.labels, e)), (this.playing = !1), (this.didGotoAction = !0); }, __class__: Wt, __properties__: { set_rotateSteps: "set_rotateSteps", set_definitionClip: "set_definitionClip", get_recto: "get_recto", get_bmd: "get_bmd", }, }); var jt = function (e, t) { null == t && (t = 0), (this.children = []), Wt.call(this, e, t); }; ((s["bitClip.BitClipPlus"] = jt).__name__ = ["bitClip", "BitClipPlus"]), (jt.__super__ = Wt), (jt.prototype = n(Wt.prototype, { removeChild: function (e) { this.children.splice(de.indexOf(this.children, e), 1); }, addChild: function (e) { this.children.push(e); }, render: function (e, t, s, n, i) { null == i && (i = 0), null == n && (n = 0), null == s && (s = 0); if ((Wt.prototype.render.call(this, e, t), 0 < this.children.length)) for (var r = 0, o = this.children; r < o.length; ) { var a = o[r]; ++r, a.render(e, t, this.x, this.y, this.angle); } }, __class__: jt, })); var Kt = function () {}; ((s["bitClip.PositionedBMD"] = Kt).__name__ = ["bitClip", "PositionedBMD"]), (Kt.prototype = { __class__: Kt }); var qt = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Areyousure539"] = qt).__name__ = [ "swf", "bloonstd4_fla", "Areyousure539", ]), (qt.__super__ = u), (qt.prototype = n(u.prototype, { quitgame: function (e) { this.parent.gotoAndStop(1), this.parent.parent.yesimsure(); }, frame1: function () { this.confirmquit.addEventListener("click", CT(this, this.quitgame)), this.cancelquit.addEventListener("click", CT(this, this.cancel)); }, cancel: function (e) { this.parent.gotoAndStop(1); }, __class__: qt, })); var wu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1980]; qt.call(this, r, o); }; ((s["bloonstd4_fla.Areyousure_539"] = wu).__name__ = [ "bloonstd4_fla", "Areyousure_539", ]), (wu.__super__ = qt), (wu.prototype = n(qt.prototype, { __class__: wu })); var Zt = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(16, CT(this, this.frame17)); }; ((s["swf.bloonstd4_fla.Areyousureyesno538"] = Zt).__name__ = [ "swf", "bloonstd4_fla", "Areyousureyesno538", ]), (Zt.__super__ = u), (Zt.prototype = n(u.prototype, { donothing: function (e) { Zf.trace("stop all input", { fileName: "Areyousureyesno538.hx", lineNumber: 23, className: "swf.bloonstd4_fla.Areyousureyesno538", methodName: "donothing", }); }, frame17: function () { this.stop(); }, frame1: function () { this.stop(); }, frame5: function () { this.donthitme.addEventListener("mouseDown", CT(this, this.donothing)); }, __class__: Zt, })); var vu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1981]; Zt.call(this, r, o); }; ((s["bloonstd4_fla.Areyousureyesno_538"] = vu).__name__ = [ "bloonstd4_fla", "Areyousureyesno_538", ]), (vu.__super__ = Zt), (vu.prototype = n(Zt.prototype, { __class__: vu })); var Jt = function (e, t) { this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), u.call(this, e, t); }; ((s["swf.bloonstd4_fla.Attackradius337"] = Jt).__name__ = [ "swf", "bloonstd4_fla", "Attackradius337", ]), (Jt.__super__ = u), (Jt.prototype = n(u.prototype, { frame1: function () { this.stop(), this.cantplace.set_visible(!1); }, frame2: function () { this.stop(), this.cantplace.set_visible(!0); }, __class__: Jt, })); var yu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1382]; Jt.call(this, r, o); }; ((s["bloonstd4_fla.Attackradius_337"] = yu).__name__ = [ "bloonstd4_fla", "Attackradius_337", ]), (yu.__super__ = Jt), (yu.prototype = n(Jt.prototype, { __class__: yu })); var Qt = function (e, t) { u.call(this, e, t), this.addFrameScript(8, CT(this, this.frame9)); }; ((s["swf.bloonstd4_fla.Backing416"] = Qt).__name__ = [ "swf", "bloonstd4_fla", "Backing416", ]), (Qt.__super__ = u), (Qt.prototype = n(u.prototype, { frame9: function () { this.stop(); }, __class__: Qt, })); var Tu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1567]; Qt.call(this, r, o); }; ((s["bloonstd4_fla.Backing_416"] = Tu).__name__ = [ "bloonstd4_fla", "Backing_416", ]), (Tu.__super__ = Qt), (Tu.prototype = n(Qt.prototype, { __class__: Tu })); var $t = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Bloon12sandbox32"] = $t).__name__ = [ "swf", "bloonstd4_fla", "Bloon12sandbox32", ]), ($t.__super__ = u), ($t.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: $t, })); var Su = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[885]; $t.call(this, r, o); }; ((s["bloonstd4_fla.Bloon12sandbox_32"] = Su).__name__ = [ "bloonstd4_fla", "Bloon12sandbox_32", ]), (Su.__super__ = $t), (Su.prototype = n($t.prototype, { __class__: Su })); var es = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Bloon1sandbox8"] = es).__name__ = [ "swf", "bloonstd4_fla", "Bloon1sandbox8", ]), (es.__super__ = u), (es.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: es, })); var xu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[848]; es.call(this, r, o); }; ((s["bloonstd4_fla.Bloon1sandbox_8"] = xu).__name__ = [ "bloonstd4_fla", "Bloon1sandbox_8", ]), (xu.__super__ = es), (xu.prototype = n(es.prototype, { __class__: xu })); var ts = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Bloon2sandbox11"] = ts).__name__ = [ "swf", "bloonstd4_fla", "Bloon2sandbox11", ]), (ts.__super__ = u), (ts.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: ts, })); var Eu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[855]; ts.call(this, r, o); }; ((s["bloonstd4_fla.Bloon2sandbox_11"] = Eu).__name__ = [ "bloonstd4_fla", "Bloon2sandbox_11", ]), (Eu.__super__ = ts), (Eu.prototype = n(ts.prototype, { __class__: Eu })); var ss = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnAce388"] = ss).__name__ = [ "swf", "bloonstd4_fla", "BtnAce388", ]), (ss.__super__ = u), (ss.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: ss, })); var Pu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1505]; ss.call(this, r, o); }; ((s["bloonstd4_fla.Btn_ace_388"] = Pu).__name__ = [ "bloonstd4_fla", "Btn_ace_388", ]), (Pu.__super__ = ss), (Pu.prototype = n(ss.prototype, { __class__: Pu })); var ns = function (e, t) { this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), u.call(this, e, t); }; ((s["swf.bloonstd4_fla.BtnBeacon366"] = ns).__name__ = [ "swf", "bloonstd4_fla", "BtnBeacon366", ]), (ns.__super__ = u), (ns.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: ns, })); var Ru = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1454]; ns.call(this, r, o); }; ((s["bloonstd4_fla.Btn_beacon_366"] = Ru).__name__ = [ "bloonstd4_fla", "Btn_beacon_366", ]), (Ru.__super__ = ns), (Ru.prototype = n(ns.prototype, { __class__: Ru })); var is = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnBomb354"] = is).__name__ = [ "swf", "bloonstd4_fla", "BtnBomb354", ]), (is.__super__ = u), (is.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: is, })); var Au = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1429]; is.call(this, r, o); }; ((s["bloonstd4_fla.Btn_bomb_354"] = Au).__name__ = [ "bloonstd4_fla", "Btn_bomb_354", ]), (Au.__super__ = is), (Au.prototype = n(is.prototype, { __class__: Au })); var rs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnBoomer351"] = rs).__name__ = [ "swf", "bloonstd4_fla", "BtnBoomer351", ]), (rs.__super__ = u), (rs.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: rs, })); var Iu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1423]; rs.call(this, r, o); }; ((s["bloonstd4_fla.Btn_boomer_351"] = Iu).__name__ = [ "bloonstd4_fla", "Btn_boomer_351", ]), (Iu.__super__ = rs), (Iu.prototype = n(rs.prototype, { __class__: Iu })); var os = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnBuccaneer378"] = os).__name__ = [ "swf", "bloonstd4_fla", "BtnBuccaneer378", ]), (os.__super__ = u), (os.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: os, })); var Cu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1482]; os.call(this, r, o); }; ((s["bloonstd4_fla.Btn_buccaneer_378"] = Cu).__name__ = [ "bloonstd4_fla", "Btn_buccaneer_378", ]), (Cu.__super__ = os), (Cu.prototype = n(os.prototype, { __class__: Cu })); var as = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnDart344"] = as).__name__ = [ "swf", "bloonstd4_fla", "BtnDart344", ]), (as.__super__ = u), (as.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: as, })); var Bu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1411]; as.call(this, r, o); }; ((s["bloonstd4_fla.Btn_dart_344"] = Bu).__name__ = [ "bloonstd4_fla", "Btn_dart_344", ]), (Bu.__super__ = as), (Bu.prototype = n(as.prototype, { __class__: Bu })); var ls = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.BtnEasy206"] = ls).__name__ = [ "swf", "bloonstd4_fla", "BtnEasy206", ]), (ls.__super__ = u), (ls.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: ls, })); var Du = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1052]; ls.call(this, r, o); }; ((s["bloonstd4_fla.Btn_easy_206"] = Du).__name__ = [ "bloonstd4_fla", "Btn_easy_206", ]), (Du.__super__ = ls), (Du.prototype = n(ls.prototype, { __class__: Du })); var hs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnFarm363"] = hs).__name__ = [ "swf", "bloonstd4_fla", "BtnFarm363", ]), (hs.__super__ = u), (hs.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: hs, })); var ku = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1448]; hs.call(this, r, o); }; ((s["bloonstd4_fla.Btn_farm_363"] = ku).__name__ = [ "bloonstd4_fla", "Btn_farm_363", ]), (ku.__super__ = hs), (ku.prototype = n(hs.prototype, { __class__: ku })); var _s = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnGlue385"] = _s).__name__ = [ "swf", "bloonstd4_fla", "BtnGlue385", ]), (_s.__super__ = u), (_s.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: _s, })); var Fu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1494]; _s.call(this, r, o); }; ((s["bloonstd4_fla.Btn_glue_385"] = Fu).__name__ = [ "bloonstd4_fla", "Btn_glue_385", ]), (Fu.__super__ = _s), (Fu.prototype = n(_s.prototype, { __class__: Fu })); var us = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnGluegunner372"] = us).__name__ = [ "swf", "bloonstd4_fla", "BtnGluegunner372", ]), (us.__super__ = u), (us.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: us, })); var Mu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1468]; us.call(this, r, o); }; ((s["bloonstd4_fla.Btn_gluegunner_372"] = Mu).__name__ = [ "bloonstd4_fla", "Btn_gluegunner_372", ]), (Mu.__super__ = us), (Mu.prototype = n(us.prototype, { __class__: Mu })); var ds = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.BtnHard212"] = ds).__name__ = [ "swf", "bloonstd4_fla", "BtnHard212", ]), (ds.__super__ = u), (ds.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: ds, })); var Lu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1071]; ds.call(this, r, o); }; ((s["bloonstd4_fla.Btn_hard_212"] = Lu).__name__ = [ "bloonstd4_fla", "Btn_hard_212", ]), (Lu.__super__ = ds), (Lu.prototype = n(ds.prototype, { __class__: Lu })); var cs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnIce359"] = cs).__name__ = [ "swf", "bloonstd4_fla", "BtnIce359", ]), (cs.__super__ = u), (cs.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: cs, })); var Nu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1441]; cs.call(this, r, o); }; ((s["bloonstd4_fla.Btn_ice_359"] = Nu).__name__ = [ "bloonstd4_fla", "Btn_ice_359", ]), (Nu.__super__ = cs), (Nu.prototype = n(cs.prototype, { __class__: Nu })); var fs = function (e, t) { this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), u.call(this, e, t); }; ((s["swf.bloonstd4_fla.BtnMed209"] = fs).__name__ = [ "swf", "bloonstd4_fla", "BtnMed209", ]), (fs.__super__ = u), (fs.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: fs, })); var Ou = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1062]; fs.call(this, r, o); }; ((s["bloonstd4_fla.Btn_med_209"] = Ou).__name__ = [ "bloonstd4_fla", "Btn_med_209", ]), (Ou.__super__ = fs), (Ou.prototype = n(fs.prototype, { __class__: Ou })); var ps = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnMortar369"] = ps).__name__ = [ "swf", "bloonstd4_fla", "BtnMortar369", ]), (ps.__super__ = u), (ps.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: ps, })); var Uu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1462]; ps.call(this, r, o); }; ((s["bloonstd4_fla.Btn_mortar_369"] = Uu).__name__ = [ "bloonstd4_fla", "Btn_mortar_369", ]), (Uu.__super__ = ps), (Uu.prototype = n(ps.prototype, { __class__: Uu })); var bs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnPineapple375"] = bs).__name__ = [ "swf", "bloonstd4_fla", "BtnPineapple375", ]), (bs.__super__ = u), (bs.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: bs, })); var Gu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1476]; bs.call(this, r, o); }; ((s["bloonstd4_fla.Btn_pineapple_375"] = Gu).__name__ = [ "bloonstd4_fla", "Btn_pineapple_375", ]), (Gu.__super__ = bs), (Gu.prototype = n(bs.prototype, { __class__: Gu })); var gs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnRoad382"] = gs).__name__ = [ "swf", "bloonstd4_fla", "BtnRoad382", ]), (gs.__super__ = u), (gs.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: gs, })); var zu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1488]; gs.call(this, r, o); }; ((s["bloonstd4_fla.Btn_road_382"] = zu).__name__ = [ "bloonstd4_fla", "Btn_road_382", ]), (zu.__super__ = gs), (zu.prototype = n(gs.prototype, { __class__: zu })); var ws = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnSuper357"] = ws).__name__ = [ "swf", "bloonstd4_fla", "BtnSuper357", ]), (ws.__super__ = u), (ws.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: ws, })); var Xu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1433]; ws.call(this, r, o); }; ((s["bloonstd4_fla.Btn_super_357"] = Xu).__name__ = [ "bloonstd4_fla", "Btn_super_357", ]), (Xu.__super__ = ws), (Xu.prototype = n(ws.prototype, { __class__: Xu })); var vs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnTack348"] = vs).__name__ = [ "swf", "bloonstd4_fla", "BtnTack348", ]), (vs.__super__ = u), (vs.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: vs, })); var Hu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1417]; vs.call(this, r, o); }; ((s["bloonstd4_fla.Btn_tack_348"] = Hu).__name__ = [ "bloonstd4_fla", "Btn_tack_348", ]), (Hu.__super__ = vs), (Hu.prototype = n(vs.prototype, { __class__: Hu })); var ys = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.BtnWizard393"] = ys).__name__ = [ "swf", "bloonstd4_fla", "BtnWizard393", ]), (ys.__super__ = u), (ys.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: ys, })); var Vu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1511]; ys.call(this, r, o); }; ((s["bloonstd4_fla.Btn_wizard_393"] = Vu).__name__ = [ "bloonstd4_fla", "Btn_wizard_393", ]), (Vu.__super__ = ys), (Vu.prototype = n(ys.prototype, { __class__: Vu })); var Ts = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(7, CT(this, this.frame8)); }; ((s["swf.bloonstd4_fla.Buymorecash398"] = Ts).__name__ = [ "swf", "bloonstd4_fla", "Buymorecash398", ]), (Ts.__super__ = u), (Ts.prototype = n(u.prototype, { frame8: function () { this.stop(); }, frame1: function () { this.stop(); }, __class__: Ts, })); var Yu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1521]; Ts.call(this, r, o); }; ((s["bloonstd4_fla.Buymorecash_398"] = Yu).__name__ = [ "bloonstd4_fla", "Buymorecash_398", ]), (Yu.__super__ = Ts), (Yu.prototype = n(Ts.prototype, { __class__: Yu })); var Ss = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(7, CT(this, this.frame8)); }; ((s["swf.bloonstd4_fla.Buymorelives402"] = Ss).__name__ = [ "swf", "bloonstd4_fla", "Buymorelives402", ]), (Ss.__super__ = u), (Ss.prototype = n(u.prototype, { frame8: function () { this.stop(); }, frame1: function () { this.stop(); }, __class__: Ss, })); var Wu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1524]; Ss.call(this, r, o); }; ((s["bloonstd4_fla.Buymorelives_402"] = Wu).__name__ = [ "bloonstd4_fla", "Buymorelives_402", ]), (Wu.__super__ = Ss), (Wu.prototype = n(Ss.prototype, { __class__: Wu })); var xs = function (e, t) { u.call(this, e, t), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Careerrankglow409"] = xs).__name__ = [ "swf", "bloonstd4_fla", "Careerrankglow409", ]), (xs.__super__ = u), (xs.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: xs, })); var ju = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1542]; xs.call(this, r, o); }; ((s["bloonstd4_fla.Careerrankglow_409"] = ju).__name__ = [ "bloonstd4_fla", "Careerrankglow_409", ]), (ju.__super__ = xs), (ju.prototype = n(xs.prototype, { __class__: ju })); var Es = function (e, t) { u.call(this, e, t), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.CatapultTower760"] = Es).__name__ = [ "swf", "bloonstd4_fla", "CatapultTower760", ]), (Es.__super__ = u), (Es.prototype = n(u.prototype, { frame2: function () { this.stop(); }, __class__: Es, })); var Ku = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[277]; Es.call(this, r, o); }; ((s["bloonstd4_fla.CatapultTower_760"] = Ku).__name__ = [ "bloonstd4_fla", "CatapultTower_760", ]), (Ku.__super__ = Es), (Ku.prototype = n(Es.prototype, { __class__: Ku })); var Ps = function (e, t) { u.call(this, e, t), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.CatapultTowerupgrader768"] = Ps).__name__ = [ "swf", "bloonstd4_fla", "CatapultTowerupgrader768", ]), (Ps.__super__ = u), (Ps.prototype = n(u.prototype, { frame2: function () { this.stop(); }, __class__: Ps, })); var qu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[291]; Ps.call(this, r, o); }; ((s["bloonstd4_fla.CatapultTowerupgrader_768"] = qu).__name__ = [ "bloonstd4_fla", "CatapultTowerupgrader_768", ]), (qu.__super__ = Ps), (qu.prototype = n(Ps.prototype, { __class__: qu })); var Rs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.ChooseDiffbox204"] = Rs).__name__ = [ "swf", "bloonstd4_fla", "ChooseDiffbox204", ]), (Rs.__super__ = u), (Rs.prototype = n(u.prototype, { showFrame3: function (e) { e.currentTarget.gotoAndStop(3); }, startSandbox: function (e) { this.parent.SetDiff("medium"), (this.parent.gameMode = "sandboxmode"), this.startGame(); }, frame1: function () { this.donthitme.addEventListener("mouseDown", CT(this, this.donothing)), this.cancelbtn.addEventListener( "mouseDown", CT(this, this.cancelchoose) ), this.easyDiffBtn.addEventListener("click", CT(this, this.clickEasy)), this.medDiffBtn.addEventListener("click", CT(this, this.clickMed)), this.hardDiffBtn.addEventListener("click", CT(this, this.clickHard)), this.easyDiffBtn.addEventListener( "rollOver", CT(this, this.rollOverEasy) ), this.medDiffBtn.addEventListener( "rollOver", CT(this, this.rollOverMed) ), this.hardDiffBtn.addEventListener( "rollOver", CT(this, this.rollOverHard) ), this.sandboxmode.addEventListener( "rollOver", CT(this, this.rollOverSand) ), this.apopalypsemode.addEventListener( "rollOver", CT(this, this.rollOverApop) ), (this.easyDiffBtn.buttonMode = !0), (this.medDiffBtn.buttonMode = !0), (this.hardDiffBtn.buttonMode = !0), (this.sandboxmode.buttonMode = !0), (this.apopalypsemode.buttonMode = !0), (this.suffixbit = ""), this.updateOptions(); }, hideFrame3: function (e) { e.currentTarget.gotoAndStop(1); }, buyDoubleCash: function (e) { this.parent.showItemStore("doublecash"); }, cancelchoose: function (e) { this.set_visible(!1), this.parent.resolve("mainmenu").set_visible(!0); }, rollOverEasy: function (e) { this.output_txt.set_text( "On easy, stuff is quite cheap to buy and you have 200 lives. There are 50 rounds to pass." ); }, rollOverSand: function (e) { 1 != this.parent.userProfile.data.towerUnlocks[20] && this.showFrame3(e), this.output_txt.set_text( "Sandbox Mode is unlocked at Rank 26. In the sandbox you have unlimited money and lives and can choose which bloons come and when." ); }, clickHard: function (e) { (this.suffixbit = "On hard, stuff is expensive and you only have 100 lives, and you have to pass 75 gruelling rounds."), this.parent.SetDiff("hard"), (this.parent.gameMode = "normalmode"), this.startGame(); }, rollOverMed: function (e) { this.output_txt.set_text( "On medium, stuff is fairly priced and you have 150 lives. There are 60 rounds to pass." ); }, toggleDoubleCash: function (e) { 1 == this.doublecashmode.get_currentFrame() ? (this.doublecashmode.gotoAndStop(2), (this.parent.doubleCash = !0)) : 2 == this.doublecashmode.get_currentFrame() && (this.doublecashmode.gotoAndStop(1), (this.parent.doubleCash = !1)); }, rollOverApop: function (e) { 1 != this.parent.userProfile.data.towerUnlocks[24] && this.showFrame3(e), this.output_txt.set_text( "Apopalypse Mode is unlocked at Rank 31. Bloons will come non-stop until you run out of lives." ); }, startApopalypse: function (e) { this.parent.SetDiff("medium"), (this.parent.gameMode = "apopalypsemode"), this.startGame(); }, donothing: function (e) { Zf.trace("stop all input", { fileName: "ChooseDiffbox204.hx", lineNumber: 147, className: "swf.bloonstd4_fla.ChooseDiffbox204", methodName: "donothing", }); }, updateOptions: function () { (this.doublecashmode.enabled = !1), (this.sandboxmode.enabled = !1), (this.apopalypsemode.enabled = !1), this.sandboxmode.removeEventListener( "click", CT(this, this.startSandbox) ), this.apopalypsemode.removeEventListener( "click", CT(this, this.startApopalypse) ), this.doublecashmode.removeEventListener( "rollOver", CT(this, this.showFrame3) ), this.doublecashmode.removeEventListener( "rollOut", CT(this, this.hideFrame3) ), this.doublecashmode.removeEventListener( "click", CT(this, this.buyDoubleCash) ), this.sandboxmode.removeEventListener( "rollOver", CT(this, this.showFrame3) ), this.apopalypsemode.removeEventListener( "rollOver", CT(this, this.showFrame3) ), this.sandboxmode.removeEventListener( "rollOut", CT(this, this.hideFrame3) ), this.apopalypsemode.removeEventListener( "rollOut", CT(this, this.hideFrame3) ), 1 == this.parent.mochiItems.doublecash ? (this.doublecashmode.addEventListener( "click", CT(this, this.toggleDoubleCash) ), (this.doublecashmode.enabled = !0)) : (this.doublecashmode.addEventListener( "rollOver", CT(this, this.showFrame3) ), this.doublecashmode.addEventListener( "rollOut", CT(this, this.hideFrame3) ), this.doublecashmode.addEventListener( "click", CT(this, this.buyDoubleCash) )), 1 == this.parent.userProfile.data.towerUnlocks[20] ? this.sandboxmode.addEventListener( "click", CT(this, this.startSandbox) ) : this.sandboxmode.addEventListener( "rollOut", CT(this, this.hideFrame3) ), 1 == this.parent.userProfile.data.towerUnlocks[24] ? this.apopalypsemode.addEventListener( "click", CT(this, this.startApopalypse) ) : this.apopalypsemode.addEventListener( "rollOut", CT(this, this.hideFrame3) ); }, clickMed: function (e) { (this.suffixbit = "On medium, stuff is fairly priced and you have 150 lives. There are 60 rounds to pass."), this.parent.SetDiff("medium"), (this.parent.gameMode = "normalmode"), this.startGame(); }, clickEasy: function (e) { (this.suffixbit = "On easy, stuff is quite cheap to buy and you have 200 lives. There are 50 rounds to pass."), this.parent.SetDiff("easy"), (this.parent.gameMode = "normalmode"), this.startGame(); }, startGame: function () { switch ( (this.set_visible(!1), this.parent.resolve("startrnd_btn").set_visible(!0), this.parent.gameMode) ) { case "apopalypsemode": this.parent.resolve("sandboxui").set_visible(!1), this.parent.Output( "Apopalypse Mode! Bloons will get stronger over time and never stop coming. Click start to begin." ); break; case "normalmode": this.parent.Output( "Welcome to Bloons® Tower Defense 4! \n" + this.suffixbit ), this.parent.resolve("sandboxui").set_visible(!1); break; case "sandboxmode": this.parent.resolve("sandboxui").set_visible(!0), this.parent.Output( "Welcome to the Sandbox. Create bloons to pop by clicking the buttons at the top." ); } this.parent.Init(); }, rollOverHard: function (e) { this.output_txt.set_text( "On hard, stuff is expensive and you only have 100 lives, and you have to pass 75 gruelling rounds." ); }, __class__: Rs, })); var Zu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1101]; Rs.call(this, r, o); }; ((s["bloonstd4_fla.ChooseDiffbox_204"] = Zu).__name__ = [ "bloonstd4_fla", "ChooseDiffbox_204", ]), (Zu.__super__ = Rs), (Zu.prototype = n(Rs.prototype, { __class__: Zu })); var As = function (e, t) { this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), u.call(this, e, t); }; ((s["swf.bloonstd4_fla.Clinksound596"] = As).__name__ = [ "swf", "bloonstd4_fla", "Clinksound596", ]), (As.__super__ = u), (As.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: As, })); var Ju = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2180]; As.call(this, r, o); }; ((s["bloonstd4_fla.Clinksound_596"] = Ju).__name__ = [ "bloonstd4_fla", "Clinksound_596", ]), (Ju.__super__ = As), (Ju.prototype = n(As.prototype, { __class__: Ju })); var Is = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectAceAnimouter121"] = Is).__name__ = [ "swf", "bloonstd4_fla", "CollectAceAnimouter121", ]), (Is.__super__ = u), (Is.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Is, })); var Qu = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[968]; Is.call(this, r, o); }; ((s["bloonstd4_fla.Collect_ace_animouter_121"] = Qu).__name__ = [ "bloonstd4_fla", "Collect_ace_animouter_121", ]), (Qu.__super__ = Is), (Qu.prototype = n(Is.prototype, { __class__: Qu })); var Cs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectApopalypseAnimouter200"] = Cs).__name__ = [ "swf", "bloonstd4_fla", "CollectApopalypseAnimouter200", ]), (Cs.__super__ = u), (Cs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Cs, })); var $u = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1032]; Cs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_apopalypse_animouter_200"] = $u).__name__ = [ "bloonstd4_fla", "Collect_apopalypse_animouter_200", ]), ($u.__super__ = Cs), ($u.prototype = n(Cs.prototype, { __class__: $u })); var Bs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectArcticAnimouter149"] = Bs).__name__ = [ "swf", "bloonstd4_fla", "CollectArcticAnimouter149", ]), (Bs.__super__ = u), (Bs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Bs, })); var ed = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[980]; Bs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_arctic_animouter_149"] = ed).__name__ = [ "bloonstd4_fla", "Collect_arctic_animouter_149", ]), (ed.__super__ = Bs), (ed.prototype = n(Bs.prototype, { __class__: ed })); var Ds = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectBatteryAnimouter190"] = Ds).__name__ = [ "swf", "bloonstd4_fla", "CollectBatteryAnimouter190", ]), (Ds.__super__ = u), (Ds.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Ds, })); var td = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1021]; Ds.call(this, r, o); }; ((s["bloonstd4_fla.Collect_battery_animouter_190"] = td).__name__ = [ "bloonstd4_fla", "Collect_battery_animouter_190", ]), (td.__super__ = Ds), (td.prototype = n(Ds.prototype, { __class__: td })); var ks = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectBattleshipAnimouter188"] = ks).__name__ = [ "swf", "bloonstd4_fla", "CollectBattleshipAnimouter188", ]), (ks.__super__ = u), (ks.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: ks, })); var sd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1018]; ks.call(this, r, o); }; ((s["bloonstd4_fla.Collect_battleship_animouter_188"] = sd).__name__ = [ "bloonstd4_fla", "Collect_battleship_animouter_188", ]), (sd.__super__ = ks), (sd.prototype = n(ks.prototype, { __class__: sd })); var Fs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectBeaconAnimouter114"] = Fs).__name__ = [ "swf", "bloonstd4_fla", "CollectBeaconAnimouter114", ]), (Fs.__super__ = u), (Fs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Fs, })); var nd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[962]; Fs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_beacon_animouter_114"] = nd).__name__ = [ "bloonstd4_fla", "Collect_beacon_animouter_114", ]), (nd.__super__ = Fs), (nd.prototype = n(Fs.prototype, { __class__: nd })); var Ms = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectBombAnimouter85"] = Ms).__name__ = [ "swf", "bloonstd4_fla", "CollectBombAnimouter85", ]), (Ms.__super__ = u), (Ms.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Ms, })); var id = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[937]; Ms.call(this, r, o); }; ((s["bloonstd4_fla.Collect_bomb_animouter_85"] = id).__name__ = [ "bloonstd4_fla", "Collect_bomb_animouter_85", ]), (id.__super__ = Ms), (id.prototype = n(Ms.prototype, { __class__: id })); var Ls = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectBoomerangAnimouter81"] = Ls).__name__ = [ "swf", "bloonstd4_fla", "CollectBoomerangAnimouter81", ]), (Ls.__super__ = u), (Ls.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Ls, })); var rd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[934]; Ls.call(this, r, o); }; ((s["bloonstd4_fla.Collect_boomerang_animouter_81"] = rd).__name__ = [ "bloonstd4_fla", "Collect_boomerang_animouter_81", ]), (rd.__super__ = Ls), (rd.prototype = n(Ls.prototype, { __class__: rd })); var Ns = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectFactoryAnimouter193"] = Ns).__name__ = [ "swf", "bloonstd4_fla", "CollectFactoryAnimouter193", ]), (Ns.__super__ = u), (Ns.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Ns, })); var od = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1024]; Ns.call(this, r, o); }; ((s["bloonstd4_fla.Collect_factory_animouter_193"] = od).__name__ = [ "bloonstd4_fla", "Collect_factory_animouter_193", ]), (od.__super__ = Ns), (od.prototype = n(Ns.prototype, { __class__: od })); var Os = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectFireAnimouter143"] = Os).__name__ = [ "swf", "bloonstd4_fla", "CollectFireAnimouter143", ]), (Os.__super__ = u), (Os.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Os, })); var ad = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[977]; Os.call(this, r, o); }; ((s["bloonstd4_fla.Collect_fire_animouter_143"] = ad).__name__ = [ "bloonstd4_fla", "Collect_fire_animouter_143", ]), (ad.__super__ = Os), (ad.prototype = n(Os.prototype, { __class__: ad })); var Us = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectGandalfAnimouter163"] = Us).__name__ = [ "swf", "bloonstd4_fla", "CollectGandalfAnimouter163", ]), (Us.__super__ = u), (Us.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Us, })); var ld = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1003]; Us.call(this, r, o); }; ((s["bloonstd4_fla.Collect_gandalf_animouter_163"] = ld).__name__ = [ "bloonstd4_fla", "Collect_gandalf_animouter_163", ]), (ld.__super__ = Us), (ld.prototype = n(Us.prototype, { __class__: ld })); var Gs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectGlueAnimouter108"] = Gs).__name__ = [ "swf", "bloonstd4_fla", "CollectGlueAnimouter108", ]), (Gs.__super__ = u), (Gs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Gs, })); var hd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[956]; Gs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_glue_animouter_108"] = hd).__name__ = [ "bloonstd4_fla", "Collect_glue_animouter_108", ]), (hd.__super__ = Gs), (hd.prototype = n(Gs.prototype, { __class__: hd })); var zs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectGluegunnerAnimouter116"] = zs).__name__ = [ "swf", "bloonstd4_fla", "CollectGluegunnerAnimouter116", ]), (zs.__super__ = u), (zs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: zs, })); var _d = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[965]; zs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_gluegunner_animouter_116"] = _d).__name__ = [ "bloonstd4_fla", "Collect_gluegunner_animouter_116", ]), (_d.__super__ = zs), (_d.prototype = n(zs.prototype, { __class__: _d })); var Xs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectGluesplatterAnimouter153"] = Xs).__name__ = [ "swf", "bloonstd4_fla", "CollectGluesplatterAnimouter153", ]), (Xs.__super__ = u), (Xs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Xs, })); var ud = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[983]; Xs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_gluesplatter_animouter_153"] = ud).__name__ = [ "bloonstd4_fla", "Collect_gluesplatter_animouter_153", ]), (ud.__super__ = Xs), (ud.prototype = n(Xs.prototype, { __class__: ud })); var Hs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectIceAnimouter95"] = Hs).__name__ = [ "swf", "bloonstd4_fla", "CollectIceAnimouter95", ]), (Hs.__super__ = u), (Hs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Hs, })); var dd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[943]; Hs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_ice_animouter_95"] = dd).__name__ = [ "bloonstd4_fla", "Collect_ice_animouter_95", ]), (dd.__super__ = Hs), (dd.prototype = n(Hs.prototype, { __class__: dd })); var Vs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectJediAnimouter185"] = Vs).__name__ = [ "swf", "bloonstd4_fla", "CollectJediAnimouter185", ]), (Vs.__super__ = u), (Vs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Vs, })); var cd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1015]; Vs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_jedi_animouter_185"] = cd).__name__ = [ "bloonstd4_fla", "Collect_jedi_animouter_185", ]), (cd.__super__ = Vs), (cd.prototype = n(Vs.prototype, { __class__: cd })); var Ys = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectMaulerAnimouter175"] = Ys).__name__ = [ "swf", "bloonstd4_fla", "CollectMaulerAnimouter175", ]), (Ys.__super__ = u), (Ys.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Ys, })); var fd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1009]; Ys.call(this, r, o); }; ((s["bloonstd4_fla.Collect_mauler_animouter_175"] = fd).__name__ = [ "bloonstd4_fla", "Collect_mauler_animouter_175", ]), (fd.__super__ = Ys), (fd.prototype = n(Ys.prototype, { __class__: fd })); var Ws = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectMoneyAnimouter110"] = Ws).__name__ = [ "swf", "bloonstd4_fla", "CollectMoneyAnimouter110", ]), (Ws.__super__ = u), (Ws.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Ws, })); var pd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[959]; Ws.call(this, r, o); }; ((s["bloonstd4_fla.Collect_money_animouter_110"] = pd).__name__ = [ "bloonstd4_fla", "Collect_money_animouter_110", ]), (pd.__super__ = Ws), (pd.prototype = n(Ws.prototype, { __class__: pd })); var js = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectMortarAnimouter89"] = js).__name__ = [ "swf", "bloonstd4_fla", "CollectMortarAnimouter89", ]), (js.__super__ = u), (js.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: js, })); var bd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[940]; js.call(this, r, o); }; ((s["bloonstd4_fla.Collect_mortar_animouter_89"] = bd).__name__ = [ "bloonstd4_fla", "Collect_mortar_animouter_89", ]), (bd.__super__ = js), (bd.prototype = n(js.prototype, { __class__: bd })); var Ks = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectPineappleAnimouter106"] = Ks).__name__ = [ "swf", "bloonstd4_fla", "CollectPineappleAnimouter106", ]), (Ks.__super__ = u), (Ks.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Ks, })); var md = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[953]; Ks.call(this, r, o); }; ((s["bloonstd4_fla.Collect_pineapple_animouter_106"] = md).__name__ = [ "bloonstd4_fla", "Collect_pineapple_animouter_106", ]), (md.__super__ = Ks), (md.prototype = n(Ks.prototype, { __class__: md })); var qs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectPlaneAnimouter158"] = qs).__name__ = [ "swf", "bloonstd4_fla", "CollectPlaneAnimouter158", ]), (qs.__super__ = u), (qs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: qs, })); var gd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[992]; qs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_plane_animouter_158"] = gd).__name__ = [ "bloonstd4_fla", "Collect_plane_animouter_158", ]), (gd.__super__ = qs), (gd.prototype = n(qs.prototype, { __class__: gd })); var Zs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectSandboxAnimouter161"] = Zs).__name__ = [ "swf", "bloonstd4_fla", "CollectSandboxAnimouter161", ]), (Zs.__super__ = u), (Zs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Zs, })); var wd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[999]; Zs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_sandbox_animouter_161"] = wd).__name__ = [ "bloonstd4_fla", "Collect_sandbox_animouter_161", ]), (wd.__super__ = Zs), (wd.prototype = n(Zs.prototype, { __class__: wd })); var Js = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectShipAnimouter136"] = Js).__name__ = [ "swf", "bloonstd4_fla", "CollectShipAnimouter136", ]), (Js.__super__ = u), (Js.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Js, })); var vd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[971]; Js.call(this, r, o); }; ((s["bloonstd4_fla.Collect_ship_animouter_136"] = vd).__name__ = [ "bloonstd4_fla", "Collect_ship_animouter_136", ]), (vd.__super__ = Js), (vd.prototype = n(Js.prototype, { __class__: vd })); var Qs = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectSpikepultAnimouter168"] = Qs).__name__ = [ "swf", "bloonstd4_fla", "CollectSpikepultAnimouter168", ]), (Qs.__super__ = u), (Qs.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: Qs, })); var yd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1006]; Qs.call(this, r, o); }; ((s["bloonstd4_fla.Collect_spikepult_animouter_168"] = yd).__name__ = [ "bloonstd4_fla", "Collect_spikepult_animouter_168", ]), (yd.__super__ = Qs), (yd.prototype = n(Qs.prototype, { __class__: yd })); var $s = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectSpikesAnimouter103"] = $s).__name__ = [ "swf", "bloonstd4_fla", "CollectSpikesAnimouter103", ]), ($s.__super__ = u), ($s.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: $s, })); var Td = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[950]; $s.call(this, r, o); }; ((s["bloonstd4_fla.Collect_spikes_animouter_103"] = Td).__name__ = [ "bloonstd4_fla", "Collect_spikes_animouter_103", ]), (Td.__super__ = $s), (Td.prototype = n($s.prototype, { __class__: Td })); var en = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectStormAnimouter179"] = en).__name__ = [ "swf", "bloonstd4_fla", "CollectStormAnimouter179", ]), (en.__super__ = u), (en.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: en, })); var Sd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1012]; en.call(this, r, o); }; ((s["bloonstd4_fla.Collect_storm_animouter_179"] = Sd).__name__ = [ "bloonstd4_fla", "Collect_storm_animouter_179", ]), (Sd.__super__ = en), (Sd.prototype = n(en.prototype, { __class__: Sd })); var tn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectSunAnimouter196"] = tn).__name__ = [ "swf", "bloonstd4_fla", "CollectSunAnimouter196", ]), (tn.__super__ = u), (tn.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: tn, })); var xd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1027]; tn.call(this, r, o); }; ((s["bloonstd4_fla.Collect_sun_animouter_196"] = xd).__name__ = [ "bloonstd4_fla", "Collect_sun_animouter_196", ]), (xd.__super__ = tn), (xd.prototype = n(tn.prototype, { __class__: xd })); var sn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectSuperAnimouter100"] = sn).__name__ = [ "swf", "bloonstd4_fla", "CollectSuperAnimouter100", ]), (sn.__super__ = u), (sn.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: sn, })); var Ed = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[946]; sn.call(this, r, o); }; ((s["bloonstd4_fla.Collect_super_animouter_100"] = Ed).__name__ = [ "bloonstd4_fla", "Collect_super_animouter_100", ]), (Ed.__super__ = sn), (Ed.prototype = n(sn.prototype, { __class__: Ed })); var nn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectTackAnim70"] = nn).__name__ = [ "swf", "bloonstd4_fla", "CollectTackAnim70", ]), (nn.__super__ = u), (nn.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: nn, })); var Pd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[931]; nn.call(this, r, o); }; ((s["bloonstd4_fla.Collect_tack_anim_70"] = Pd).__name__ = [ "bloonstd4_fla", "Collect_tack_anim_70", ]), (Pd.__super__ = nn), (Pd.prototype = n(nn.prototype, { __class__: Pd })); var rn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.CollectWizardAnimouter138"] = rn).__name__ = [ "swf", "bloonstd4_fla", "CollectWizardAnimouter138", ]), (rn.__super__ = u), (rn.prototype = n(u.prototype, { frame50: function () { this.stop(), Lp.__cast(this.parent.parent, u).gotoAndStop(1); }, frame1: function () { this.stop(); }, __class__: rn, })); var Rd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[974]; rn.call(this, r, o); }; ((s["bloonstd4_fla.Collect_wizard_animouter_138"] = Rd).__name__ = [ "bloonstd4_fla", "Collect_wizard_animouter_138", ]), (Rd.__super__ = rn), (Rd.prototype = n(rn.prototype, { __class__: Rd })); var on = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)), this.addFrameScript(12, CT(this, this.frame13)), this.addFrameScript(13, CT(this, this.frame14)), this.addFrameScript(14, CT(this, this.frame15)), this.addFrameScript(15, CT(this, this.frame16)), this.addFrameScript(16, CT(this, this.frame17)), this.addFrameScript(17, CT(this, this.frame18)), this.addFrameScript(18, CT(this, this.frame19)), this.addFrameScript(19, CT(this, this.frame20)), this.addFrameScript(20, CT(this, this.frame21)), this.addFrameScript(21, CT(this, this.frame22)), this.addFrameScript(22, CT(this, this.frame23)), this.addFrameScript(23, CT(this, this.frame24)), this.addFrameScript(24, CT(this, this.frame25)), this.addFrameScript(25, CT(this, this.frame26)), this.addFrameScript(26, CT(this, this.frame27)), this.addFrameScript(27, CT(this, this.frame28)), this.addFrameScript(28, CT(this, this.frame29)), this.addFrameScript(29, CT(this, this.frame30)), this.addFrameScript(30, CT(this, this.frame31)); }; ((s["swf.bloonstd4_fla.Collectupgradeinner53"] = on).__name__ = [ "swf", "bloonstd4_fla", "Collectupgradeinner53", ]), (on.__super__ = u), (on.prototype = n(u.prototype, { frame28: function () { this.stop(); }, frame30: function () { this.stop(); }, frame31: function () { this.stop(); }, frame10: function () { this.stop(); }, frame11: function () { this.stop(); }, frame13: function () { this.stop(); }, frame14: function () { this.stop(); }, frame15: function () { this.stop(); }, frame17: function () { this.stop(); }, frame18: function () { this.stop(); }, frame16: function () { this.stop(); }, collectUnlockClick: function (e) { this.pulse_mc.set_visible(!1), this.tower.play(), this.parent.parent.collectUnlockSnd.play(); }, frame12: function () { this.stop(); }, buymaxrankClick: function (e) { this.parent.parent.showItemStore("maxrank"); }, frame1: function () { this.collectUnlockbtn.addEventListener( "click", CT(this, this.collectUnlockClick) ), this.buymaxrank_btn.addEventListener( "click", CT(this, this.buymaxrankClick) ), this.stop(); }, frame2: function () { this.stop(), this.buymaxrank_btn.set_visible(!1); }, frame3: function () { this.stop(), this.buymaxrank_btn.set_visible(!0); }, frame5: function () { this.stop(); }, frame6: function () { this.stop(); }, frame7: function () { this.stop(); }, frame8: function () { this.stop(); }, frame9: function () { this.stop(); }, frame19: function () { this.stop(); }, frame4: function () { this.stop(), this.buymaxrank_btn.set_visible(!0); }, frame24: function () { this.stop(); }, frame25: function () { this.stop(); }, frame26: function () { this.stop(); }, frame20: function () { this.stop(); }, frame21: function () { this.stop(); }, frame22: function () { this.stop(); }, frame23: function () { this.stop(); }, frame27: function () { this.stop(); }, frame29: function () { this.stop(); }, __class__: on, })); var Ad = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1033]; on.call(this, r, o); }; ((s["bloonstd4_fla.Collectupgradeinner_53"] = Ad).__name__ = [ "bloonstd4_fla", "Collectupgradeinner_53", ]), (Ad.__super__ = on), (Ad.prototype = n(on.prototype, { __class__: Ad })); var an = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Continuousmodebtn219"] = an).__name__ = [ "swf", "bloonstd4_fla", "Continuousmodebtn219", ]), (an.__super__ = u), (an.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: an, })); var Id = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1099]; an.call(this, r, o); }; ((s["bloonstd4_fla.Continuousmodebtn_219"] = Id).__name__ = [ "bloonstd4_fla", "Continuousmodebtn_219", ]), (Id.__super__ = an), (Id.prototype = n(an.prototype, { __class__: Id })); var ln = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.CreateAccountPrompt552"] = ln).__name__ = [ "swf", "bloonstd4_fla", "CreateAccountPrompt552", ]), (ln.__super__ = u), (ln.prototype = n(u.prototype, { cancelchoose: function (e) { this.set_visible(!1); }, frame1: function () { this.donthitme.addEventListener("mouseDown", CT(this, this.donothing)), this.cancelbtn.addEventListener( "mouseDown", CT(this, this.cancelchoose) ); }, donothing: function (e) { Zf.trace("stop all input", { fileName: "CreateAccountPrompt552.hx", lineNumber: 34, className: "swf.bloonstd4_fla.CreateAccountPrompt552", methodName: "donothing", }); }, __class__: ln, })); var Cd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2022]; ln.call(this, r, o); }; ((s["bloonstd4_fla.CreateAccountPrompt_552"] = Cd).__name__ = [ "bloonstd4_fla", "CreateAccountPrompt_552", ]), (Cd.__super__ = ln), (Cd.prototype = n(ln.prototype, { __class__: Cd })); var hn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.ErrorDialog282"] = hn).__name__ = [ "swf", "bloonstd4_fla", "ErrorDialog282", ]), (hn.__super__ = u), (hn.prototype = n(u.prototype, { frame1: function () { this.donthitme.addEventListener("mouseDown", CT(this, this.donothing)), this.cancelbtn.addEventListener( "mouseDown", CT(this, this.cancelchoose) ); }, cancelchoose: function (e) { this.set_visible(!1); }, donothing: function (e) { Zf.trace("stop all input", { fileName: "ErrorDialog282.hx", lineNumber: 37, className: "swf.bloonstd4_fla.ErrorDialog282", methodName: "donothing", }); }, __class__: hn, })); var Bd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1300]; hn.call(this, r, o); }; ((s["bloonstd4_fla.Error_dialog_282"] = Bd).__name__ = [ "bloonstd4_fla", "Error_dialog_282", ]), (Bd.__super__ = hn), (Bd.prototype = n(hn.prototype, { __class__: Bd })); var _n = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Extracashmodebtn216"] = _n).__name__ = [ "swf", "bloonstd4_fla", "Extracashmodebtn216", ]), (_n.__super__ = u), (_n.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: _n, })); var Dd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1086]; _n.call(this, r, o); }; ((s["bloonstd4_fla.Extracashmodebtn_216"] = Dd).__name__ = [ "bloonstd4_fla", "Extracashmodebtn_216", ]), (Dd.__super__ = _n), (Dd.prototype = n(_n.prototype, { __class__: Dd })); var un = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Eyes452"] = un).__name__ = [ "swf", "bloonstd4_fla", "Eyes452", ]), (un.__super__ = u), (un.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: un, })); var kd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1687]; un.call(this, r, o); }; ((s["bloonstd4_fla.Eyes_452"] = kd).__name__ = ["bloonstd4_fla", "Eyes_452"]), (kd.__super__ = un), (kd.prototype = n(un.prototype, { __class__: kd })); var dn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(29, CT(this, this.frame30)); }; ((s["swf.bloonstd4_fla.Freeze12619"] = dn).__name__ = [ "swf", "bloonstd4_fla", "Freeze12619", ]), (dn.__super__ = u), (dn.prototype = n(u.prototype, { frame30: function () { this.stop(); }, frame1: function () { this.stop(); }, __class__: dn, })); var Fd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[311]; dn.call(this, r, o); }; ((s["bloonstd4_fla.Freeze12_619"] = Fd).__name__ = [ "bloonstd4_fla", "Freeze12_619", ]), (Fd.__super__ = dn), (Fd.prototype = n(dn.prototype, { __class__: Fd })); var cn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(29, CT(this, this.frame30)); }; ((s["swf.bloonstd4_fla.Freeze949"] = cn).__name__ = [ "swf", "bloonstd4_fla", "Freeze949", ]), (cn.__super__ = u), (cn.prototype = n(u.prototype, { frame30: function () { this.stop(); }, frame1: function () { this.stop(); }, __class__: cn, })); var Md = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[327]; cn.call(this, r, o); }; ((s["bloonstd4_fla.Freeze9_49"] = Md).__name__ = [ "bloonstd4_fla", "Freeze9_49", ]), (Md.__super__ = cn), (Md.prototype = n(cn.prototype, { __class__: Md })); var fn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(29, CT(this, this.frame30)); }; ((s["swf.bloonstd4_fla.Freeze757"] = fn).__name__ = [ "swf", "bloonstd4_fla", "Freeze757", ]), (fn.__super__ = u), (fn.prototype = n(u.prototype, { frame30: function () { this.stop(); }, frame1: function () { this.stop(); }, __class__: fn, })); var Ld = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[295]; fn.call(this, r, o); }; ((s["bloonstd4_fla.Freeze_757"] = Ld).__name__ = [ "bloonstd4_fla", "Freeze_757", ]), (Ld.__super__ = fn), (Ld.prototype = n(fn.prototype, { __class__: Ld })); var pn = function (e, t) { u.call(this, e, t), this.addFrameScript(13, CT(this, this.frame14)); }; ((s["swf.bloonstd4_fla.GenericExplosion632"] = pn).__name__ = [ "swf", "bloonstd4_fla", "GenericExplosion632", ]), (pn.__super__ = u), (pn.prototype = n(u.prototype, { frame14: function () { this.stop(); }, __class__: pn, })); var Nd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[196]; pn.call(this, r, o); }; ((s["bloonstd4_fla.Generic_explosion_632"] = Nd).__name__ = [ "bloonstd4_fla", "Generic_explosion_632", ]), (Nd.__super__ = pn), (Nd.prototype = n(pn.prototype, { __class__: Nd })); var bn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Glue12620"] = bn).__name__ = [ "swf", "bloonstd4_fla", "Glue12620", ]), (bn.__super__ = u), (bn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: bn, })); var Od = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[312]; bn.call(this, r, o); }; ((s["bloonstd4_fla.Glue12_620"] = Od).__name__ = [ "bloonstd4_fla", "Glue12_620", ]), (Od.__super__ = bn), (Od.prototype = n(bn.prototype, { __class__: Od })); var mn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Glue947"] = mn).__name__ = [ "swf", "bloonstd4_fla", "Glue947", ]), (mn.__super__ = u), (mn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: mn, })); var Ud = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[326]; mn.call(this, r, o); }; ((s["bloonstd4_fla.Glue9_47"] = Ud).__name__ = ["bloonstd4_fla", "Glue9_47"]), (Ud.__super__ = mn), (Ud.prototype = n(mn.prototype, { __class__: Ud })); var gn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.Glue783"] = gn).__name__ = [ "swf", "bloonstd4_fla", "Glue783", ]), (gn.__super__ = u), (gn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: gn, })); var Gd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[204]; gn.call(this, r, o); }; ((s["bloonstd4_fla.Glue_783"] = Gd).__name__ = ["bloonstd4_fla", "Glue_783"]), (Gd.__super__ = gn), (Gd.prototype = n(gn.prototype, { __class__: Gd })); var wn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(15, CT(this, this.frame16)); }; ((s["swf.bloonstd4_fla.GouprankMc52"] = wn).__name__ = [ "swf", "bloonstd4_fla", "GouprankMc52", ]), (wn.__super__ = u), (wn.prototype = n(u.prototype, { frame16: function () { this.stop(), this.inner.resolve("pulse_mc").set_visible(!0); }, frame1: function () { this.stop(), this.set_visible(!1); }, frame2: function () { this.set_visible(!0), Lp.__cast(this.inner.resolve("newrank_txt"), Sa).set_text( Ue.string(this.parent.userProfile.data.userRank) ), 1 == De.field(this.parent.resolve("mochiItems"), "maxrank") && this.inner.resolve("buymaxrank_btn").set_visible(!1); }, __class__: wn, })); var zd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1036]; wn.call(this, r, o); }; ((s["bloonstd4_fla.Gouprank_mc_52"] = zd).__name__ = [ "bloonstd4_fla", "Gouprank_mc_52", ]), (zd.__super__ = wn), (zd.prototype = n(wn.prototype, { __class__: zd })); var vn = function (e, t) { this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(198, CT(this, this.frame199)), u.call(this, e, t); }; ((s["swf.bloonstd4_fla.Intro285"] = vn).__name__ = [ "swf", "bloonstd4_fla", "Intro285", ]), (vn.__super__ = u), (vn.prototype = n(u.prototype, { frame1: function () { this.done = !1; }, frame199: function () { this.stop(), (this.done = !0), Lp.__cast(this.parent, u).play(); }, __class__: vn, })); var Xd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1344]; vn.call(this, r, o); }; ((s["bloonstd4_fla.Intro_285"] = Xd).__name__ = [ "bloonstd4_fla", "Intro_285", ]), (Xd.__super__ = vn), (Xd.prototype = n(vn.prototype, { __class__: Xd })); var yn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(49, CT(this, this.frame50)); }; ((s["swf.bloonstd4_fla.Light658"] = yn).__name__ = [ "swf", "bloonstd4_fla", "Light658", ]), (yn.__super__ = u), (yn.prototype = n(u.prototype, { frame50: function () { this.stop(); }, frame1: function () {}, __class__: yn, })); var Hd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[686]; yn.call(this, r, o); }; ((s["bloonstd4_fla.Light_658"] = Hd).__name__ = [ "bloonstd4_fla", "Light_658", ]), (Hd.__super__ = yn), (Hd.prototype = n(yn.prototype, { __class__: Hd })); var Tn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(87, CT(this, this.frame88)), this.addFrameScript(88, CT(this, this.frame89)); }; ((s["swf.bloonstd4_fla.Losepanel520"] = Tn).__name__ = [ "swf", "bloonstd4_fla", "Losepanel520", ]), (Tn.__super__ = u), (Tn.prototype = n(u.prototype, { get__parent: function () { return Lp.__cast(this.parent, a); }, frame1: function () { this.stop(), this.set_visible(!1); }, frame89: function () { this.get__parent().endLoseGame(), this.set_visible(!1); }, frame88: function () { this.stop(), null == this.get__parent().hasBooster && (this.losescreen.gotoAndStop(2), Zf.trace("GOTO AND STOP SOMETHING", { fileName: "Losepanel520.hx", lineNumber: 50, className: "swf.bloonstd4_fla.Losepanel520", methodName: "frame88", }), (this.rndnum = 3), 16 <= this.get__parent().userProfile.data.userRank && (this.rndnum = 8), this.losescreen .resolve("booster_ad") .gotoAndStop(cT.random(this.rndnum))), "apopalypsemode" == this.get__parent().gameMode ? Lp.__cast(this.losescreen.resolve("roundnum_txt"), Sa).set_text( Ue.string(this.get__parent().apopWave) ) : Lp.__cast(this.losescreen.resolve("roundnum_txt"), Sa).set_text( Ue.string(this.get__parent().curLevel) ), Lp.__cast(this.losescreen.resolve("rank_txt"), Sa).set_text( "" + Ue.string(this.get__parent().userProfile.data.userRank) ); }, frame2: function () { this.set_visible(!0); }, __class__: Tn, __properties__: n(u.prototype.__properties__, { get__parent: "get__parent", }), })); var Vd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1957]; Tn.call(this, r, o); }; ((s["bloonstd4_fla.Losepanel_520"] = Vd).__name__ = [ "bloonstd4_fla", "Losepanel_520", ]), (Vd.__super__ = Tn), (Vd.prototype = n(Tn.prototype, { __class__: Vd })); var Sn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.Losescreen523"] = Sn).__name__ = [ "swf", "bloonstd4_fla", "Losescreen523", ]), (Sn.__super__ = u), (Sn.prototype = n(u.prototype, { clickSubmitBtn: function (e) { this.parent.parent.submitRank(); }, frame2: function () { this.stop(); }, frame1: function () { this.stop(), this.menubtn.addEventListener("click", CT(this, this.clickMenuBtn)), this.submitrankbtn.addEventListener( "click", CT(this, this.clickSubmitBtn) ), this.booster_ad.addEventListener( "click", CT(this, this.buyBoosterClick) ); }, clickMenuBtn: function (e) { this.parent.play(); }, buyBoosterClick: function (e) { Zf.trace( "curernt frame of booster ad: " + this.booster_ad.get_currentFrame(), { fileName: "Losescreen523.hx", lineNumber: 57, className: "swf.bloonstd4_fla.Losescreen523", methodName: "buyBoosterClick", } ), this.parent.parent.clickedBoosterAd( this.booster_ad.get_currentFrame() ); }, __class__: Sn, })); var Yd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1956]; Sn.call(this, r, o); }; ((s["bloonstd4_fla.Losescreen_523"] = Yd).__name__ = [ "bloonstd4_fla", "Losescreen_523", ]), (Yd.__super__ = Sn), (Yd.prototype = n(Sn.prototype, { __class__: Yd })); var xn = function (e, t) { u.call(this, e, t), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.LsInnerinner657"] = xn).__name__ = [ "swf", "bloonstd4_fla", "LsInnerinner657", ]), (xn.__super__ = u), (xn.prototype = n(u.prototype, { frame2: function () { this.stop(); }, __class__: xn, })); var Wd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[688]; xn.call(this, r, o); }; ((s["bloonstd4_fla.Ls_innerinner_657"] = Wd).__name__ = [ "bloonstd4_fla", "Ls_innerinner_657", ]), (Wd.__super__ = xn), (Wd.prototype = n(xn.prototype, { __class__: Wd })); var En = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Mainmenu221"] = En).__name__ = [ "swf", "bloonstd4_fla", "Mainmenu221", ]), (En.__super__ = u), (En.prototype = n(u.prototype, { clickHandler: function (e) { var t = Ue.parseInt( he.substr(Lp.__cast(e.target.parent, u).__name, 11, null) ); this.doSetTrack(t); }, gotoExtras: function (e) { this.normaltab.set_visible(!1), this.premiumtab.set_visible(!1), this.extrastab.set_visible(!0); }, gotoPrem: function (e) { this.normaltab.set_visible(!1), this.premiumtab.set_visible(!0), this.extrastab.set_visible(!1); }, frame1: function () { for ( this.premiumtab.changetab_btn1.addEventListener( "click", CT(this, this.gotoNorm) ), this.extrastab.changetab_btn1.addEventListener( "click", CT(this, this.gotoNorm) ), this.normaltab.changetab_btn2.addEventListener( "click", CT(this, this.gotoExtras) ), this.premiumtab.changetab_btn2.addEventListener( "click", CT(this, this.gotoExtras) ), this.extrastab.changetab_btn2.addEventListener( "click", CT(this, this.gotoPrem) ), this.normaltab.changetab_btn1.addEventListener( "click", CT(this, this.gotoPrem) ), this.mainmenubtn.addEventListener( "click", CT(this, this.gotoMainMenu) ), null != this.parent.resolve("chooseDiffBox") && this.parent.resolve("chooseDiffBox").set_visible(!1), this.i = 1; this.i < 7; ) 5 != this.i && (De.field(this.normaltab, "trackselect" + this.i).addEventListener( "click", CT(this, this.clickHandler) ), (De.field(this.normaltab, "trackselect" + this.i).buttonMode = !0), De.field(this.normaltab, "medal" + this.i).strap && De.field(this.normaltab, "medal" + this.i).strap.gotoAndStop( this.i )), this.i++; for ( this.i = 12, De.field(this.normaltab, "trackselect" + this.i).addEventListener( "click", CT(this, this.clickHandler) ), De.field(this.normaltab, "trackselect" + this.i).buttonMode = !0, De.field(this.normaltab, "medal" + this.i).strap && De.field(this.normaltab, "medal" + this.i).strap.gotoAndStop( this.i ), this.i = 5; this.i < 14; ) 12 != this.i && 6 != this.i && (De.field(this.premiumtab, "trackselect" + this.i).addEventListener( "click", CT(this, this.clickHandler) ), De.field(this.premiumtab, "medal" + this.i).strap && De.field(this.premiumtab, "medal" + this.i).strap.gotoAndStop( this.i )), this.i++; this.parent.UpdateMedals(); }, doSetTrack: function (e) { this.parent.setTrack(e), this.set_visible(!1), this.parent.resolve("chooseDiffBox").set_visible(!0), this.parent.resolve("chooseDiffBox").updateOptions(), this.parent.userProfile.data.userRank ? Lp.__cast( this.parent.resolve("output").resolve("myrank_txt"), Sa ).set_text("" + Ue.string(this.parent.userProfile.data.userRank)) : Lp.__cast( this.parent.resolve("output").resolve("myrank_txt"), Sa ).set_text("1"); }, gotoMainMenu: function (e) { this.parent.yesimsure(); }, gotoNorm: function (e) { this.normaltab.set_visible(!0), this.premiumtab.set_visible(!1), this.extrastab.set_visible(!1); }, __class__: En, })); var jd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1287]; En.call(this, r, o); }; ((s["bloonstd4_fla.Mainmenu_221"] = jd).__name__ = [ "bloonstd4_fla", "Mainmenu_221", ]), (jd.__super__ = En), (jd.prototype = n(En.prototype, { __class__: jd })); var Pn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Medalz546"] = Pn).__name__ = [ "swf", "bloonstd4_fla", "Medalz546", ]), (Pn.__super__ = u), (Pn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: Pn, })); var Kd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1994]; Pn.call(this, r, o); }; ((s["bloonstd4_fla.Medalz_546"] = Kd).__name__ = [ "bloonstd4_fla", "Medalz_546", ]), (Kd.__super__ = Pn), (Kd.prototype = n(Pn.prototype, { __class__: Kd })); var Rn = function (e, t) { this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), u.call(this, e, t); }; ((s["swf.bloonstd4_fla.MenuBgTab2253"] = Rn).__name__ = [ "swf", "bloonstd4_fla", "MenuBgTab2253", ]), (Rn.__super__ = u), (Rn.prototype = n(u.prototype, { buyItemClick: function (e) { this.parent.parent.showItemStore(Lp.__cast(e.target, W).__name); }, doButtonUnlocks: function () { for (var e = 5; e < 14; ) 6 != e && 12 != e && (1 == De.field(this.parent.parent.resolve("mochiItems"), "track" + e) ? this.resolve("track" + e).set_visible(!1) : (this.resolve("track" + e).set_visible(!0), this.resolve("track" + e).addEventListener( "click", CT(this, this.buyItemClick) ))), ++e; 1 == this.parent.parent.resolve("mochiItems").trackpack ? this.trackpack.set_visible(!1) : (this.trackpack.set_visible(!0), this.trackpack.addEventListener( "click", CT(this, this.buyItemClick) )); }, frame1: function () {}, __class__: Rn, })); var qd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1247]; Rn.call(this, r, o); }; ((s["bloonstd4_fla.Menu_bg_tab2_253"] = qd).__name__ = [ "bloonstd4_fla", "Menu_bg_tab2_253", ]), (qd.__super__ = Rn), (qd.prototype = n(Rn.prototype, { __class__: qd })); var An = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.MenuBgTab3223"] = An).__name__ = [ "swf", "bloonstd4_fla", "MenuBgTab3223", ]), (An.__super__ = u), (An.prototype = n(u.prototype, { doToggleClick: function (e) { var t = Lp.__cast(e.currentTarget, u).__name, s = t.substring(0, t.length - 6); Zf.trace("this is the name: " + s, { fileName: "MenuBgTab3223.hx", lineNumber: 71, className: "swf.bloonstd4_fla.MenuBgTab3223", methodName: "doToggleClick", }), 2 == Lp.__cast(e.currentTarget, u).get_currentFrame() ? (Lp.__cast(this.parent.parent, a).deactivateMochiBooster(s), Lp.__cast(e.currentTarget, u).gotoAndStop(3)) : (Lp.__cast(this.parent.parent, a).activateMochiBooster(s), Lp.__cast(e.currentTarget, u).gotoAndStop(2)); }, resetUpgrades: function () { this.fragbombstoggle.gotoAndStop(1), this.doublerangtoggle.gotoAndStop(1), this.explosivedarttoggle.gotoAndStop(1), this.crystalballtoggle.gotoAndStop(1), this.dreadnaughttoggle.gotoAndStop(1), this.digitalamplifytoggle.gotoAndStop(1), this.monkeytycoontoggle.gotoAndStop(1), this.healthybananastoggle.gotoAndStop(1), this.doButtonUnlocks(); }, buyItemClick: function (e) { this.parent.parent.showItemStore(Lp.__cast(e.currentTarget, W).__name); }, doButtonUnlocks: function () { 1 == this.parent.parent.mochiItems.everything ? this.everything.set_visible(!1) : (this.everything.set_visible(!0), this.everything.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.doublecash ? this.doublecash.set_visible(!1) : (this.doublecash.set_visible(!0), this.doublecash.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.maxrank ? this.maxrank.set_visible(!1) : (this.maxrank.set_visible(!0), this.maxrank.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.doublerang ? (this.doublerang.set_visible(!1), this.doublerangtoggle.gotoAndStop(2)) : (this.doublerang.set_visible(!0), this.doublerang.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.explosivedart ? (this.explosivedart.set_visible(!1), this.explosivedarttoggle.gotoAndStop(2)) : (this.explosivedart.set_visible(!0), this.explosivedart.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.fragbombs ? (this.fragbombs.set_visible(!1), this.fragbombstoggle.gotoAndStop(2)) : (this.fragbombs.set_visible(!0), this.fragbombs.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.crystalball ? (this.crystalball.set_visible(!1), this.crystalballtoggle.gotoAndStop(2)) : (this.crystalball.set_visible(!0), this.crystalball.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.dreadnaught ? (this.dreadnaught.set_visible(!1), this.dreadnaughttoggle.gotoAndStop(2)) : (this.dreadnaught.set_visible(!0), this.dreadnaught.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.digitalamplify ? (this.digitalamplify.set_visible(!1), this.digitalamplifytoggle.gotoAndStop(2)) : (this.digitalamplify.set_visible(!0), this.digitalamplify.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.monkeytycoon ? (this.monkeytycoon.set_visible(!1), this.monkeytycoontoggle.gotoAndStop(2)) : (this.monkeytycoon.set_visible(!0), this.monkeytycoon.addEventListener( "click", CT(this, this.buyItemClick) )), 1 == this.parent.parent.mochiItems.healthybananas ? (this.healthybananas.set_visible(!1), this.healthybananastoggle.gotoAndStop(2)) : (this.healthybananas.set_visible(!0), this.healthybananas.addEventListener( "click", CT(this, this.buyItemClick) )); }, frame1: function () { this.doublerangtoggle.addEventListener( "click", CT(this, this.doToggleClick) ), this.explosivedarttoggle.addEventListener( "click", CT(this, this.doToggleClick) ), this.crystalballtoggle.addEventListener( "click", CT(this, this.doToggleClick) ), this.dreadnaughttoggle.addEventListener( "click", CT(this, this.doToggleClick) ), this.digitalamplifytoggle.addEventListener( "click", CT(this, this.doToggleClick) ), this.monkeytycoontoggle.addEventListener( "click", CT(this, this.doToggleClick) ), this.healthybananastoggle.addEventListener( "click", CT(this, this.doToggleClick) ), this.fragbombstoggle.addEventListener( "click", CT(this, this.doToggleClick) ); }, __class__: An, })); var Zd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1182]; An.call(this, r, o); }; ((s["bloonstd4_fla.Menu_bg_tab3_223"] = Zd).__name__ = [ "bloonstd4_fla", "Menu_bg_tab3_223", ]), (Zd.__super__ = An), (Zd.prototype = n(An.prototype, { __class__: Zd })); var In = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)); }; ((s["swf.bloonstd4_fla.MenuMedals264"] = In).__name__ = [ "swf", "bloonstd4_fla", "MenuMedals264", ]), (In.__super__ = u), (In.prototype = n(u.prototype, { frame1: function () { this.stop(), this.set_visible(!1); }, frame2: function () { this.stop(), this.set_visible(!0); }, frame3: function () { this.stop(), this.set_visible(!0); }, frame4: function () { this.stop(), this.set_visible(!0); }, __class__: In, })); var Jd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1231]; In.call(this, r, o); }; ((s["bloonstd4_fla.Menu_medals_264"] = Jd).__name__ = [ "bloonstd4_fla", "Menu_medals_264", ]), (Jd.__super__ = In), (Jd.prototype = n(In.prototype, { __class__: Jd })); var Cn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)), this.addFrameScript(12, CT(this, this.frame13)); }; ((s["swf.bloonstd4_fla.MenuMedalsStrap265"] = Cn).__name__ = [ "swf", "bloonstd4_fla", "MenuMedalsStrap265", ]), (Cn.__super__ = u), (Cn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, frame6: function () { this.stop(); }, frame7: function () { this.stop(); }, frame8: function () { this.stop(); }, frame10: function () { this.stop(); }, frame11: function () { this.stop(); }, frame12: function () { this.stop(); }, frame13: function () { this.stop(); }, frame9: function () { this.stop(); }, __class__: Cn, })); var Qd = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1225]; Cn.call(this, r, o); }; ((s["bloonstd4_fla.Menu_medals_strap_265"] = Qd).__name__ = [ "bloonstd4_fla", "Menu_medals_strap_265", ]), (Qd.__super__ = Cn), (Qd.prototype = n(Cn.prototype, { __class__: Qd })); var Bn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Metalclinksound597"] = Bn).__name__ = [ "swf", "bloonstd4_fla", "Metalclinksound597", ]), (Bn.__super__ = u), (Bn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Bn, })); var $d = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2181]; Bn.call(this, r, o); }; ((s["bloonstd4_fla.Metalclinksound_597"] = $d).__name__ = [ "bloonstd4_fla", "Metalclinksound_597", ]), ($d.__super__ = Bn), ($d.prototype = n(Bn.prototype, { __class__: $d })); var Dn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Miss436"] = Dn).__name__ = [ "swf", "bloonstd4_fla", "Miss436", ]), (Dn.__super__ = u), (Dn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Dn, })); var ec = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1635]; Dn.call(this, r, o); }; ((s["bloonstd4_fla.Miss_436"] = ec).__name__ = ["bloonstd4_fla", "Miss_436"]), (ec.__super__ = Dn), (ec.prototype = n(Dn.prototype, { __class__: ec })); var kn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Moneygain714"] = kn).__name__ = [ "swf", "bloonstd4_fla", "Moneygain714", ]), (kn.__super__ = u), (kn.prototype = n(u.prototype, { frame1: function () { this.stop(), this.inner.set_visible(!1); }, frame2: function () { this.stop(), this.inner.set_visible(!1); }, frame3: function () { this.inner.set_visible(!0); }, __class__: kn, })); var tc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[529]; kn.call(this, r, o); }; ((s["bloonstd4_fla.Moneygain_714"] = tc).__name__ = [ "bloonstd4_fla", "Moneygain_714", ]), (tc.__super__ = kn), (tc.prototype = n(kn.prototype, { __class__: tc })); var Fn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(15, CT(this, this.frame16)), this.addFrameScript(30, CT(this, this.frame31)); }; ((s["swf.bloonstd4_fla.Monkeystorm515"] = Fn).__name__ = [ "swf", "bloonstd4_fla", "Monkeystorm515", ]), (Fn.__super__ = u), (Fn.prototype = n(u.prototype, { frame16: function () { (this.parent.stormReady = !1), this.parent.doStormHittest(); }, frame31: function () {}, frame1: function () { this.stop(); }, __class__: Fn, })); var sc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1908]; Fn.call(this, r, o); }; ((s["bloonstd4_fla.Monkeystorm_515"] = sc).__name__ = [ "bloonstd4_fla", "Monkeystorm_515", ]), (sc.__super__ = Fn), (sc.prototype = n(Fn.prototype, { __class__: sc })); var Mn = function (e, t) { u.call(this, e, t), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.Mortarbarrel160"] = Mn).__name__ = [ "swf", "bloonstd4_fla", "Mortarbarrel160", ]), (Mn.__super__ = u), (Mn.prototype = n(u.prototype, { frame2: function () { this.stop(); }, __class__: Mn, })); var nc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[989]; Mn.call(this, r, o); }; ((s["bloonstd4_fla.Mortarbarrel_160"] = nc).__name__ = [ "bloonstd4_fla", "Mortarbarrel_160", ]), (nc.__super__ = Mn), (nc.prototype = n(Mn.prototype, { __class__: nc })); var Ln = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.MuteMusicBtn413"] = Ln).__name__ = [ "swf", "bloonstd4_fla", "MuteMusicBtn413", ]), (Ln.__super__ = u), (Ln.prototype = n(u.prototype, { frame1: function () { this.stop(), (this.newTransform = new vy(1, 0)), (this.newTransform.volume = 0.3), this.parent.parent.musChannel ? Lp.__cast( this.parent.parent.resolve("musChannel"), gy ).set_soundTransform(this.newTransform) : this.parent.parent.startMusic(); }, frame2: function () { this.stop(), (this.newTransform = new vy(1, 0)), (this.newTransform.volume = 0), this.parent.parent.musChannel && Lp.__cast( this.parent.parent.resolve("musChannel"), gy ).set_soundTransform(this.newTransform); }, __class__: Ln, })); var ic = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1558]; Ln.call(this, r, o); }; ((s["bloonstd4_fla.MuteMusic_btn_413"] = ic).__name__ = [ "bloonstd4_fla", "MuteMusic_btn_413", ]), (ic.__super__ = Ln), (ic.prototype = n(Ln.prototype, { __class__: ic })); var Nn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.MuteSndBtn412"] = Nn).__name__ = [ "swf", "bloonstd4_fla", "MuteSndBtn412", ]), (Nn.__super__ = u), (Nn.prototype = n(u.prototype, { frame1: function () { this.stop(), (this.newTransform = new vy(1, 0)), Howler.volume(0.5), (this.newTransform.volume = 0.5); }, frame2: function () { this.stop(), (this.newTransform = new vy(1, 0)), Howler.volume(0), (this.newTransform.volume = 0), this.parent.resolve("musbtn").gotoAndStop(2); }, __class__: Nn, })); var rc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1555]; Nn.call(this, r, o); }; ((s["bloonstd4_fla.MuteSnd_btn_412"] = rc).__name__ = [ "bloonstd4_fla", "MuteSnd_btn_412", ]), (rc.__super__ = Nn), (rc.prototype = n(Nn.prototype, { __class__: rc })); var On = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(11, CT(this, this.frame12)); }; ((s["swf.bloonstd4_fla.Pathhitmc296"] = On).__name__ = [ "swf", "bloonstd4_fla", "Pathhitmc296", ]), (On.__super__ = u), (On.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame4: function () { this.stop(); }, frame6: function () { this.stop(); }, frame3: function () { this.stop(); }, frame12: function () { this.stop(); }, frame5: function () { this.stop(); }, frame7: function () { this.stop(); }, frame8: function () { this.stop(); }, frame9: function () { this.stop(); }, __class__: On, })); var oc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1345]; On.call(this, r, o); }; ((s["bloonstd4_fla.Pathhitmc_296"] = oc).__name__ = [ "bloonstd4_fla", "Pathhitmc_296", ]), (oc.__super__ = On), (oc.prototype = n(On.prototype, { __class__: oc })); var Un = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)); }; ((s["swf.bloonstd4_fla.Planeinner122"] = Un).__name__ = [ "swf", "bloonstd4_fla", "Planeinner122", ]), (Un.__super__ = u), (Un.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, __class__: Un, })); var ac = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[381]; Un.call(this, r, o); }; ((s["bloonstd4_fla.Planeinner_122"] = ac).__name__ = [ "bloonstd4_fla", "Planeinner_122", ]), (ac.__super__ = Un), (ac.prototype = n(Un.prototype, { __class__: ac })); var Gn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)), this.addFrameScript(12, CT(this, this.frame13)); }; ((s["swf.bloonstd4_fla.Playarea299"] = Gn).__name__ = [ "swf", "bloonstd4_fla", "Playarea299", ]), (Gn.__super__ = u), (Gn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, frame6: function () { this.stop(); }, frame7: function () { this.stop(); }, frame8: function () { this.stop(); }, frame10: function () { this.stop(); }, frame11: function () { this.stop(); }, frame12: function () { this.stop(); }, frame13: function () { this.stop(), Zf.trace("choose this track", { fileName: "Playarea299.hx", lineNumber: 87, className: "swf.bloonstd4_fla.Playarea299", methodName: "frame13", }); }, frame9: function () { this.stop(); }, __class__: Gn, })); var lc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1373]; Gn.call(this, r, o); }; ((s["bloonstd4_fla.Playarea_299"] = lc).__name__ = [ "bloonstd4_fla", "Playarea_299", ]), (lc.__super__ = Gn), (lc.prototype = n(Gn.prototype, { __class__: lc })); var zn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(2001, CT(this, this.frame2002)); }; ((s["swf.bloonstd4_fla.ReloadMc504"] = zn).__name__ = [ "swf", "bloonstd4_fla", "ReloadMc504", ]), (zn.__super__ = u), (zn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2002: function () { this.parent.parent.parent.parent.stormReady = !0; }, __class__: zn, })); var hc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1862]; zn.call(this, r, o); }; ((s["bloonstd4_fla.Reload_mc_504"] = hc).__name__ = [ "bloonstd4_fla", "Reload_mc_504", ]), (hc.__super__ = zn), (hc.prototype = n(zn.prototype, { __class__: hc })); var Xn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.RoundinfoMc397"] = Xn).__name__ = [ "swf", "bloonstd4_fla", "RoundinfoMc397", ]), (Xn.__super__ = u), (Xn.prototype = n(u.prototype, { doFirstClick: function (e) { Lp.__cast(e.currentTarget, u).removeEventListener( "click", CT(this, this.doFirstClick) ), Lp.__cast(e.currentTarget, u).addEventListener( "click", CT(this, this.doClickMore) ), Lp.__cast(e.currentTarget, u).gotoAndPlay("drawOn"); }, frame1: function () { this.getmorecash.addEventListener("click", CT(this, this.doFirstClick)), this.getmorelives.addEventListener( "click", CT(this, this.doFirstClick) ), this.getmorecash.addEventListener( "rollOut", CT(this, this.doRollOut) ), this.getmorelives.addEventListener( "rollOut", CT(this, this.doRollOut) ); }, doRollOut: function (e) { Lp.__cast(e.currentTarget, u).removeEventListener( "click", CT(this, this.doClickMore) ), Lp.__cast(e.currentTarget, u).addEventListener( "click", CT(this, this.doFirstClick) ), 1 < Lp.__cast(e.currentTarget, u).get_currentFrame() && Lp.__cast(e.currentTarget, u).gotoAndPlay("drawOff"); }, doClickMore: function (e) { "getmorecash" == Lp.__cast(e.currentTarget, u).__name && this.parent.showItemStore("morecash"), "getmorelives" == Lp.__cast(e.currentTarget, u).__name && this.parent.showItemStore("morelives"), this.doRollOut(e); }, __class__: Xn, })); var _c = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1532]; Xn.call(this, r, o); }; ((s["bloonstd4_fla.Roundinfo_mc_397"] = _c).__name__ = [ "bloonstd4_fla", "Roundinfo_mc_397", ]), (_c.__super__ = Xn), (_c.prototype = n(Xn.prototype, { __class__: _c })); var Hn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Sandboxmodebtn218"] = Hn).__name__ = [ "swf", "bloonstd4_fla", "Sandboxmodebtn218", ]), (Hn.__super__ = u), (Hn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: Hn, })); var uc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1092]; Hn.call(this, r, o); }; ((s["bloonstd4_fla.Sandboxmodebtn_218"] = uc).__name__ = [ "bloonstd4_fla", "Sandboxmodebtn_218", ]), (uc.__super__ = Hn), (uc.prototype = n(Hn.prototype, { __class__: uc })); var Vn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Sandboxui6"] = Vn).__name__ = [ "swf", "bloonstd4_fla", "Sandboxui6", ]), (Vn.__super__ = u), (Vn.prototype = n(u.prototype, { clickHandler: function (e) { switch ( (Zf.trace("wewt: " + Lp.__cast(e.currentTarget, u).__name, { fileName: "Sandboxui6.hx", lineNumber: 48, className: "swf.bloonstd4_fla.Sandboxui6", methodName: "clickHandler", }), Lp.__cast(e.currentTarget, u).__name) ) { case "sendbfbs": this.parent.ABSTL(1, 14, 1); break; case "sendblacks": this.parent.ABSTL(10, 6, 1); break; case "sendblues": this.parent.ABSTL(20, 2, 1); break; case "sendcamos": this.parent.ABSTL(10, 11, 1); break; case "sendceramics": this.parent.ABSTL(5, 12, 1); break; case "sendgreens": this.parent.ABSTL(20, 3, 1); break; case "sendleads": this.parent.ABSTL(10, 8, 1); break; case "sendmoabs": this.parent.ABSTL(1, 13, 1); break; case "sendpinks": this.parent.ABSTL(20, 5, 1); break; case "sendrainbows": this.parent.ABSTL(10, 10, 1); break; case "sendreds": this.parent.ABSTL(20, 1, 1); break; case "sendwhites": this.parent.ABSTL(10, 7, 1); break; case "sendyellows": this.parent.ABSTL(20, 4, 1); break; case "sendzebras": this.parent.ABSTL(10, 9, 1); } }, frame1: function () { this.sendreds.addEventListener("click", CT(this, this.clickHandler)), this.sendblues.addEventListener("click", CT(this, this.clickHandler)), this.sendgreens.addEventListener( "click", CT(this, this.clickHandler) ), this.sendyellows.addEventListener( "click", CT(this, this.clickHandler) ), this.sendpinks.addEventListener("click", CT(this, this.clickHandler)), this.sendblacks.addEventListener( "click", CT(this, this.clickHandler) ), this.sendwhites.addEventListener( "click", CT(this, this.clickHandler) ), this.sendleads.addEventListener("click", CT(this, this.clickHandler)), this.sendzebras.addEventListener( "click", CT(this, this.clickHandler) ), this.sendrainbows.addEventListener( "click", CT(this, this.clickHandler) ), this.sendcamos.addEventListener("click", CT(this, this.clickHandler)), this.sendceramics.addEventListener( "click", CT(this, this.clickHandler) ), this.sendmoabs.addEventListener("click", CT(this, this.clickHandler)), this.sendbfbs.addEventListener("click", CT(this, this.clickHandler)); }, __class__: Vn, })); var dc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[896]; Vn.call(this, r, o); }; ((s["bloonstd4_fla.Sandboxui_6"] = dc).__name__ = [ "bloonstd4_fla", "Sandboxui_6", ]), (dc.__super__ = Vn), (dc.prototype = n(Vn.prototype, { __class__: dc })); var Yn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.Saving555"] = Yn).__name__ = [ "swf", "bloonstd4_fla", "Saving555", ]), (Yn.__super__ = u), (Yn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: Yn, })); var cc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2027]; Yn.call(this, r, o); }; ((s["bloonstd4_fla.Saving_555"] = cc).__name__ = [ "bloonstd4_fla", "Saving_555", ]), (cc.__super__ = Yn), (cc.prototype = n(Yn.prototype, { __class__: cc })); var Wn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.Sellforbtn415"] = Wn).__name__ = [ "swf", "bloonstd4_fla", "Sellforbtn415", ]), (Wn.__super__ = u), (Wn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: Wn, })); var fc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1569]; Wn.call(this, r, o); }; ((s["bloonstd4_fla.Sellforbtn_415"] = fc).__name__ = [ "bloonstd4_fla", "Sellforbtn_415", ]), (fc.__super__ = Wn), (fc.prototype = n(Wn.prototype, { __class__: fc })); var jn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.Soundtoggle557"] = jn).__name__ = [ "swf", "bloonstd4_fla", "Soundtoggle557", ]), (jn.__super__ = u), (jn.prototype = n(u.prototype, { frame1: function () { this.stop(), (this.newTransform = new vy(1, 0)), (this.newTransform.volume = 0.5), Howler.volume(0.5); }, frame2: function () { this.stop(), (this.newTransform = new vy(1, 0)), (this.newTransform.volume = 0), Howler.volume(0); }, __class__: jn, })); var pc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2034]; jn.call(this, r, o); }; ((s["bloonstd4_fla.Soundtoggle_557"] = pc).__name__ = [ "bloonstd4_fla", "Soundtoggle_557", ]), (pc.__super__ = jn), (pc.prototype = n(jn.prototype, { __class__: pc })); var Kn = function (e, t) { u.call(this, e, t), this.addFrameScript(24, CT(this, this.frame25)); }; ((s["swf.bloonstd4_fla.Spikeyballanim669"] = Kn).__name__ = [ "swf", "bloonstd4_fla", "Spikeyballanim669", ]), (Kn.__super__ = u), (Kn.prototype = n(u.prototype, { frame25: function () { this.stop(); }, __class__: Kn, })); var bc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[659]; Kn.call(this, r, o); }; ((s["bloonstd4_fla.Spikeyballanim_669"] = bc).__name__ = [ "bloonstd4_fla", "Spikeyballanim_669", ]), (bc.__super__ = Kn), (bc.prototype = n(Kn.prototype, { __class__: bc })); var qn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(376, CT(this, this.frame377)); }; ((s["swf.bloonstd4_fla.Spinnyintro559"] = qn).__name__ = [ "swf", "bloonstd4_fla", "Spinnyintro559", ]), (qn.__super__ = u), (qn.prototype = n(u.prototype, { get__parent: function () { return Lp.__cast(this.parent, a); }, clickedMoreGames: function (e) { this.get__parent().gotoNK(e); }, clickedNewGame: function (e) { this.set_visible(!1), this.get__parent().mainmenu.gotoNorm(null); }, doEditorClick: function (e) { var t = new Py("http://twitter.com/ninjakiwigames/"); Zm.getURL(t, "_blank"); }, clearCookie: function (e) { this.get__parent().userProfile.clear(); }, clickHS: function (e) {}, loadSaveClick: function (e) { this.get__parent().loadSavedGame(); }, frame377: function () { this.stop(), this.leaderboardbtn.addEventListener("click", CT(this, this.clickHS)), this.kaipbtn.addEventListener( "click", CT(this, this.clickedMoreGames) ), this.updateBits(); }, skipIntroClick: function (e) { this.gotoAndStop("end"); }, frame1: function () { this.skipintro.addEventListener("click", CT(this, this.skipIntroClick)); }, updateBits: function () { this.newgamebtn.addEventListener( "click", CT(this, this.clickedNewGame) ), this.moregames.addEventListener( "click", CT(this, this.clickedMoreGames) ), this.resumegamebtn.addEventListener( "click", CT(this, this.loadSaveClick) ), this.trackEditorBtn.addEventListener( "click", CT(this, this.doEditorClick) ), this.clearcookie.addEventListener( "click", CT(this, this.clearCookie) ), Zf.trace( "save game obj: " + Ue.string(this.get__parent().savedGameObj), { fileName: "Spinnyintro559.hx", lineNumber: 100, className: "swf.bloonstd4_fla.Spinnyintro559", methodName: "updateBits", } ); var e = !1; this.get__parent().savedGameObj && this.get__parent().mochiLoggedIn && this.get__parent().savedGameObj.curLevel ? (this.resumegamebtn.set_alpha(1), (this.resumegamebtn.enabled = !0)) : (e = !0), null != e && (this.resumegamebtn.removeEventListener( "click", CT(this, this.loadSaveClick) ), this.resumegamebtn.set_alpha(0.5), (this.resumegamebtn.enabled = !1)); }, __class__: qn, __properties__: n(u.prototype.__properties__, { get__parent: "get__parent", }), })); var mc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2177]; qn.call(this, r, o); }; ((s["bloonstd4_fla.Spinnyintro_559"] = mc).__name__ = [ "bloonstd4_fla", "Spinnyintro_559", ]), (mc.__super__ = qn), (mc.prototype = n(qn.prototype, { __class__: mc })); var Zn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Splatsound598"] = Zn).__name__ = [ "swf", "bloonstd4_fla", "Splatsound598", ]), (Zn.__super__ = u), (Zn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Zn, })); var gc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2182]; Zn.call(this, r, o); }; ((s["bloonstd4_fla.Splatsound_598"] = gc).__name__ = [ "bloonstd4_fla", "Splatsound_598", ]), (gc.__super__ = Zn), (gc.prototype = n(Zn.prototype, { __class__: gc })); var Jn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)); }; ((s["swf.bloonstd4_fla.St547"] = Jn).__name__ = [ "swf", "bloonstd4_fla", "St547", ]), (Jn.__super__ = u), (Jn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, frame6: function () { this.stop(); }, frame7: function () { this.stop(); }, frame8: function () { this.stop(); }, frame10: function () { this.stop(); }, frame11: function () { this.stop(); }, frame12: function () { this.stop(); }, frame9: function () { this.stop(); }, __class__: Jn, })); var wc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1990]; Jn.call(this, r, o); }; ((s["bloonstd4_fla.St_547"] = wc).__name__ = ["bloonstd4_fla", "St_547"]), (wc.__super__ = Jn), (wc.prototype = n(Jn.prototype, { __class__: wc })); var Qn = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Stockblueinnercopy492"] = Qn).__name__ = [ "swf", "bloonstd4_fla", "Stockblueinnercopy492", ]), (Qn.__super__ = u), (Qn.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Qn, })); var vc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1813]; Qn.call(this, r, o); }; ((s["bloonstd4_fla.Stockblueinnercopy_492"] = vc).__name__ = [ "bloonstd4_fla", "Stockblueinnercopy_492", ]), (vc.__super__ = Qn), (vc.prototype = n(Qn.prototype, { __class__: vc })); var $n = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)); }; ((s["swf.bloonstd4_fla.SuggestionsMc526"] = $n).__name__ = [ "swf", "bloonstd4_fla", "SuggestionsMc526", ]), ($n.__super__ = u), ($n.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, frame6: function () { this.stop(); }, frame7: function () { this.stop(); }, frame8: function () { this.stop(); }, __class__: $n, })); var yc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1955]; $n.call(this, r, o); }; ((s["bloonstd4_fla.Suggestions_mc_526"] = yc).__name__ = [ "bloonstd4_fla", "Suggestions_mc_526", ]), (yc.__super__ = $n), (yc.prototype = n($n.prototype, { __class__: yc })); var ei = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TargFirst508"] = ei).__name__ = [ "swf", "bloonstd4_fla", "TargFirst508", ]), (ei.__super__ = u), (ei.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: ei, })); var Tc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1884]; ei.call(this, r, o); }; ((s["bloonstd4_fla.Targ_first_508"] = Tc).__name__ = [ "bloonstd4_fla", "Targ_first_508", ]), (Tc.__super__ = ei), (Tc.prototype = n(ei.prototype, { __class__: Tc })); var ti = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TargHigh512"] = ti).__name__ = [ "swf", "bloonstd4_fla", "TargHigh512", ]), (ti.__super__ = u), (ti.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: ti, })); var Sc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1888]; ti.call(this, r, o); }; ((s["bloonstd4_fla.Targ_high_512"] = Sc).__name__ = [ "bloonstd4_fla", "Targ_high_512", ]), (Sc.__super__ = ti), (Sc.prototype = n(ti.prototype, { __class__: Sc })); var si = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TargLast511"] = si).__name__ = [ "swf", "bloonstd4_fla", "TargLast511", ]), (si.__super__ = u), (si.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: si, })); var xc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1886]; si.call(this, r, o); }; ((s["bloonstd4_fla.Targ_last_511"] = xc).__name__ = [ "bloonstd4_fla", "Targ_last_511", ]), (xc.__super__ = si), (xc.prototype = n(si.prototype, { __class__: xc })); var ni = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TargLow513"] = ni).__name__ = [ "swf", "bloonstd4_fla", "TargLow513", ]), (ni.__super__ = u), (ni.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: ni, })); var Ec = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1890]; ni.call(this, r, o); }; ((s["bloonstd4_fla.Targ_low_513"] = Ec).__name__ = [ "bloonstd4_fla", "Targ_low_513", ]), (Ec.__super__ = ni), (Ec.prototype = n(ni.prototype, { __class__: Ec })); var ii = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Targpriority507"] = ii).__name__ = [ "swf", "bloonstd4_fla", "Targpriority507", ]), (ii.__super__ = u), (ii.prototype = n(u.prototype, { frame1: function () { this.stop(), this.ai_first.addEventListener("click", CT(this, this.setAIMode)), this.ai_last.addEventListener("click", CT(this, this.setAIMode)), this.ai_high.addEventListener("click", CT(this, this.setAIMode)), this.ai_low.addEventListener("click", CT(this, this.setAIMode)), Zf.trace("seriously wtf are we here or not", { fileName: "Targpriority507.hx", lineNumber: 32, className: "swf.bloonstd4_fla.Targpriority507", methodName: "frame1", }); }, setAIMode: function (e) { Zf.trace("yeah?", { fileName: "Targpriority507.hx", lineNumber: 37, className: "swf.bloonstd4_fla.Targpriority507", methodName: "setAIMode", }); var t = he.substr(Lp.__cast(e.currentTarget, u).__name, 3, null); this.setAIModeDo(t); }, setAIModeDo: function (e) { (this.parent.parent.resolve("currentTower").AImode = e), this.ai_first.gotoAndStop(1), this.ai_last.gotoAndStop(1), this.ai_high.gotoAndStop(1), this.ai_low.gotoAndStop(1), De.field(this, "ai_" + e).gotoAndStop(2); }, __class__: ii, })); var Pc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1891]; ii.call(this, r, o); }; ((s["bloonstd4_fla.Targpriority_507"] = Pc).__name__ = [ "bloonstd4_fla", "Targpriority_507", ]), (Pc.__super__ = ii), (Pc.prototype = n(ii.prototype, { __class__: Pc })); var ri = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXTowerDartCatapult689"] = ri).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXTowerDartCatapult689", ]), (ri.__super__ = u), (ri.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: ri, })); var Rc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[632]; ri.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_Tower_Dart_Catapult_689"] = Rc).__name__ = [ "bloonstd4_fla", "TowerGFX_Tower_Dart_Catapult_689", ]), (Rc.__super__ = ri), (Rc.prototype = n(ri.prototype, { __class__: Rc })); var oi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXTowerDartTriplepult169"] = oi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXTowerDartTriplepult169", ]), (oi.__super__ = u), (oi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: oi, })); var Ac = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[641]; oi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_Tower_Dart_Triplepult_169"] = Ac).__name__ = [ "bloonstd4_fla", "TowerGFX_Tower_Dart_Triplepult_169", ]), (Ac.__super__ = oi), (Ac.prototype = n(oi.prototype, { __class__: Ac })); var ai = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXTowerMortar2Arm747"] = ai).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXTowerMortar2Arm747", ]), (ai.__super__ = u), (ai.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: ai, })); var Ic = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[403]; ai.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_Tower_Mortar2_Arm_747"] = Ic).__name__ = [ "bloonstd4_fla", "TowerGFX_Tower_Mortar2_Arm_747", ]), (Ic.__super__ = ai), (Ic.prototype = n(ai.prototype, { __class__: Ic })); var li = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXTowerMortarBatteryArm192"] = li).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXTowerMortarBatteryArm192", ]), (li.__super__ = u), (li.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: li, })); var Cc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[406]; li.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_Tower_MortarBattery_Arm_192"] = Cc).__name__ = [ "bloonstd4_fla", "TowerGFX_Tower_MortarBattery_Arm_192", ]), (Cc.__super__ = li), (Cc.prototype = n(li.prototype, { __class__: Cc })); var hi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TowerGFXTowerMortarArm91"] = hi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXTowerMortarArm91", ]), (hi.__super__ = u), (hi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: hi, })); var Bc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[394]; hi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_Tower_Mortar_Arm_91"] = Bc).__name__ = [ "bloonstd4_fla", "TowerGFX_Tower_Mortar_Arm_91", ]), (Bc.__super__ = hi), (Bc.prototype = n(hi.prototype, { __class__: Bc })); var _i = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TowerGFXArm160"] = _i).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXArm160", ]), (_i.__super__ = u), (_i.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: _i, })); var Dc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[623]; _i.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_arm1_60"] = Dc).__name__ = [ "bloonstd4_fla", "TowerGFX_arm1_60", ]), (Dc.__super__ = _i), (Dc.prototype = n(_i.prototype, { __class__: Dc })); var ui = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TowerGFXArm283"] = ui).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXArm283", ]), (ui.__super__ = u), (ui.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: ui, })); var kc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[464]; ui.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_arm2_83"] = kc).__name__ = [ "bloonstd4_fla", "TowerGFX_arm2_83", ]), (kc.__super__ = ui), (kc.prototype = n(ui.prototype, { __class__: kc })); var di = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXArm3722"] = di).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXArm3722", ]), (di.__super__ = u), (di.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: di, })); var Fc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[498]; di.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_arm3_722"] = Fc).__name__ = [ "bloonstd4_fla", "TowerGFX_arm3_722", ]), (Fc.__super__ = di), (Fc.prototype = n(di.prototype, { __class__: Fc })); var ci = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXArm4187"] = ci).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXArm4187", ]), (ci.__super__ = u), (ci.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: ci, })); var Mc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[515]; ci.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_arm4_187"] = Mc).__name__ = [ "bloonstd4_fla", "TowerGFX_arm4_187", ]), (Mc.__super__ = ci), (Mc.prototype = n(ci.prototype, { __class__: Mc })); var fi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXBladeTowerInner734"] = fi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXBladeTowerInner734", ]), (fi.__super__ = u), (fi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: fi, })); var Lc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[445]; fi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_blade_tower_inner_734"] = Lc).__name__ = [ "bloonstd4_fla", "TowerGFX_blade_tower_inner_734", ]), (Lc.__super__ = fi), (Lc.prototype = n(fi.prototype, { __class__: Lc })); var pi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TowerGFXBulletMissileinner2177"] = pi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXBulletMissileinner2177", ]), (pi.__super__ = u), (pi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: pi, })); var Nc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[422]; pi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_bullet_missileinner2_177"] = Nc).__name__ = [ "bloonstd4_fla", "TowerGFX_bullet_missileinner2_177", ]), (Nc.__super__ = pi), (Nc.prototype = n(pi.prototype, { __class__: Nc })); var bi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXBulletMissileinner743"] = bi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXBulletMissileinner743", ]), (bi.__super__ = u), (bi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: bi, })); var Oc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[418]; bi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_bullet_missileinner_743"] = Oc).__name__ = [ "bloonstd4_fla", "TowerGFX_bullet_missileinner_743", ]), (Oc.__super__ = bi), (Oc.prototype = n(bi.prototype, { __class__: Oc })); var mi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXFireTowerInner144"] = mi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXFireTowerInner144", ]), (mi.__super__ = u), (mi.prototype = n(u.prototype, { frame1: function () {}, __class__: mi })); var Uc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[453]; mi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_fire_tower_inner_144"] = Uc).__name__ = [ "bloonstd4_fla", "TowerGFX_fire_tower_inner_144", ]), (Uc.__super__ = mi), (Uc.prototype = n(mi.prototype, { __class__: Uc })); var gi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXGluegun2Inner696"] = gi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXGluegun2Inner696", ]), (gi.__super__ = u), (gi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: gi, })); var Gc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[602]; gi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_gluegun2_inner_696"] = Gc).__name__ = [ "bloonstd4_fla", "TowerGFX_gluegun2_inner_696", ]), (Gc.__super__ = gi), (Gc.prototype = n(gi.prototype, { __class__: Gc })); var wi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXGluegun3Inner155"] = wi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXGluegun3Inner155", ]), (wi.__super__ = u), (wi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: wi, })); var zc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[609]; wi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_gluegun3_inner_155"] = zc).__name__ = [ "bloonstd4_fla", "TowerGFX_gluegun3_inner_155", ]), (zc.__super__ = wi), (zc.prototype = n(wi.prototype, { __class__: zc })); var vi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXGluegunInner118"] = vi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXGluegunInner118", ]), (vi.__super__ = u), (vi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: vi, })); var Xc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[596]; vi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_gluegun_inner_118"] = Xc).__name__ = [ "bloonstd4_fla", "TowerGFX_gluegun_inner_118", ]), (Xc.__super__ = vi), (Xc.prototype = n(vi.prototype, { __class__: Xc })); var yi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXGunbarrell87"] = yi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXGunbarrell87", ]), (yi.__super__ = u), (yi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: yi, })); var Hc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[412]; yi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_gunbarrell_87"] = Hc).__name__ = [ "bloonstd4_fla", "TowerGFX_gunbarrell_87", ]), (Hc.__super__ = yi), (Hc.prototype = n(yi.prototype, { __class__: Hc })); var Ti = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TowerGFXPropStopped391"] = Ti).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXPropStopped391", ]), (Ti.__super__ = u), (Ti.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: Ti, })); var Vc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1499]; Ti.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_prop_stopped_391"] = Vc).__name__ = [ "bloonstd4_fla", "TowerGFX_prop_stopped_391", ]), (Vc.__super__ = Ti), (Vc.prototype = n(Ti.prototype, { __class__: Vc })); var Si = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXShiparm2Inner701"] = Si).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXShiparm2Inner701", ]), (Si.__super__ = u), (Si.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Si, })); var Yc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[577]; Si.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_shiparm2_inner_701"] = Yc).__name__ = [ "bloonstd4_fla", "TowerGFX_shiparm2_inner_701", ]), (Yc.__super__ = Si), (Yc.prototype = n(Si.prototype, { __class__: Yc })); var xi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXShiparm3Inner703"] = xi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXShiparm3Inner703", ]), (xi.__super__ = u), (xi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: xi, })); var Wc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[582]; xi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_shiparm3_inner_703"] = Wc).__name__ = [ "bloonstd4_fla", "TowerGFX_shiparm3_inner_703", ]), (Wc.__super__ = xi), (Wc.prototype = n(xi.prototype, { __class__: Wc })); var Ei = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXShiparm4Inner705"] = Ei).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXShiparm4Inner705", ]), (Ei.__super__ = u), (Ei.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Ei, })); var jc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[586]; Ei.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_shiparm4_inner_705"] = jc).__name__ = [ "bloonstd4_fla", "TowerGFX_shiparm4_inner_705", ]), (jc.__super__ = Ei), (jc.prototype = n(Ei.prototype, { __class__: jc })); var Pi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXShiparm5Inner189"] = Pi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXShiparm5Inner189", ]), (Pi.__super__ = u), (Pi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Pi, })); var Kc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[591]; Pi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_shiparm5_inner_189"] = Kc).__name__ = [ "bloonstd4_fla", "TowerGFX_shiparm5_inner_189", ]), (Kc.__super__ = Pi), (Kc.prototype = n(Pi.prototype, { __class__: Kc })); var Ai = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXShiparmInner137"] = Ai).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXShiparmInner137", ]), (Ai.__super__ = u), (Ai.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Ai, })); var qc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[572]; Ai.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_shiparm_inner_137"] = qc).__name__ = [ "bloonstd4_fla", "TowerGFX_shiparm_inner_137", ]), (qc.__super__ = Ai), (qc.prototype = n(Ai.prototype, { __class__: qc })); var Ii = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXTackTowerInner73"] = Ii).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXTackTowerInner73", ]), (Ii.__super__ = u), (Ii.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Ii, })); var Zc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[435]; Ii.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_tack_tower_inner_73"] = Zc).__name__ = [ "bloonstd4_fla", "TowerGFX_tack_tower_inner_73", ]), (Zc.__super__ = Ii), (Zc.prototype = n(Ii.prototype, { __class__: Zc })); var Ci = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXWizarm2801"] = Ci).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXWizarm2801", ]), (Ci.__super__ = u), (Ci.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Ci, })); var Jc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[102]; Ci.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_wizarm2_801"] = Jc).__name__ = [ "bloonstd4_fla", "TowerGFX_wizarm2_801", ]), (Jc.__super__ = Ci), (Jc.prototype = n(Ci.prototype, { __class__: Jc })); var Bi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXWizarm3805"] = Bi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXWizarm3805", ]), (Bi.__super__ = u), (Bi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Bi, })); var Qc = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[114]; Bi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_wizarm3_805"] = Qc).__name__ = [ "bloonstd4_fla", "TowerGFX_wizarm3_805", ]), (Qc.__super__ = Bi), (Qc.prototype = n(Bi.prototype, { __class__: Qc })); var Di = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXWizarm4809"] = Di).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXWizarm4809", ]), (Di.__super__ = u), (Di.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: Di, })); var $c = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[125]; Di.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_wizarm4_809"] = $c).__name__ = [ "bloonstd4_fla", "TowerGFX_wizarm4_809", ]), ($c.__super__ = Di), ($c.prototype = n(Di.prototype, { __class__: $c })); var ki = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.TowerGFXWizarm5165"] = ki).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXWizarm5165", ]), (ki.__super__ = u), (ki.prototype = n(u.prototype, { frame1: function () { this.stop(); }, __class__: ki, })); var ef = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[143]; ki.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_wizarm5_165"] = ef).__name__ = [ "bloonstd4_fla", "TowerGFX_wizarm5_165", ]), (ef.__super__ = ki), (ef.prototype = n(ki.prototype, { __class__: ef })); var Fi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)); }; ((s["swf.bloonstd4_fla.TowerGFXWizarm140"] = Fi).__name__ = [ "swf", "bloonstd4_fla", "TowerGFXWizarm140", ]), (Fi.__super__ = u), (Fi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, __class__: Fi, })); var tf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[87]; Fi.call(this, r, o); }; ((s["bloonstd4_fla.TowerGFX_wizarm_140"] = tf).__name__ = [ "bloonstd4_fla", "TowerGFX_wizarm_140", ]), (tf.__super__ = Fi), (tf.prototype = n(Fi.prototype, { __class__: tf })); var Mi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)), this.addFrameScript(12, CT(this, this.frame13)), this.addFrameScript(13, CT(this, this.frame14)), this.addFrameScript(14, CT(this, this.frame15)), this.addFrameScript(15, CT(this, this.frame16)); }; ((s["swf.bloonstd4_fla.Towerinfo536"] = Mi).__name__ = [ "swf", "bloonstd4_fla", "Towerinfo536", ]), (Mi.__super__ = u), (Mi.prototype = n(u.prototype, { frame10: function () { this.stop(); }, frame11: function () { this.stop(); }, frame13: function () { this.stop(); }, frame15: function () { this.stop(); }, frame12: function () { this.stop(); }, frame14: function () { this.stop(); }, frame16: function () { this.stop(); }, frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame6: function () { this.stop(); }, frame8: function () { this.stop(); }, frame9: function () { this.stop(); }, frame5: function () { this.stop(); }, frame7: function () { this.stop(); }, __class__: Mi, })); var sf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1965]; Mi.call(this, r, o); }; ((s["bloonstd4_fla.Towerinfo_536"] = sf).__name__ = [ "bloonstd4_fla", "Towerinfo_536", ]), (sf.__super__ = Mi), (sf.prototype = n(Mi.prototype, { __class__: sf })); var Li = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Toweroptions414"] = Li).__name__ = [ "swf", "bloonstd4_fla", "Toweroptions414", ]), (Li.__super__ = u), (Li.prototype = n(u.prototype, { Refresh: function () { for (var e = 1; e < 5; ) { var t = this.upgrade_group["upgrade" + e]; (t.upgrade = Ue.string(this.parent.resolve("currentTower").resolve("type")) + "" + e), t.gotoAndStop( Ue.string(this.parent.resolve("currentTower").resolve("type")) + "" + e ), this.parent.resolve("currentTower").upgradeNum >= e ? (t.resolve("hasbought").set_visible(!0), t.resolve("cost_txt").set_visible(!1)) : (t.resolve("hasbought").set_visible(!1), t.resolve("cost_txt").set_visible(!0), Lp.__cast(t.resolve("cost_txt"), Sa).set_text( "" + Ue.string(this.parent.GetUpgradeCost(e)) ), t.CheckAfford()), ++e; } this.upgrade_group.resolve("upgrade4lock").set_visible(!0), Lp.__cast( this.upgrade_group.resolve("upgrade4lock").resolve("minrank_txt"), Sa ).set_text( Ue.string( this.parent.resolve("currentTower").resolve("ug4_unlock_order") ) ), this.upgrade_group .resolve("upgrade4lock") .addEventListener("click", CT(this, this.buymaxrankClick)), (this.upgrade_group.resolve("upgrade4lock").buttonMode = !0), 1 == this.parent.userProfile.data.towerUnlocks[ (this.parent.resolve("currentTower").ug4_unlock_order - 1) | 0 ] && this.upgrade_group.resolve("upgrade4lock").set_visible(!1), "beacon" == this.parent.resolve("currentTower").type && 4 == this.parent.resolve("currentTower").upgradeNum ? this.upgrade_group.resolve("monkeystormbtn").set_visible(!0) : this.upgrade_group.resolve("monkeystormbtn").set_visible(!1); }, frame1: function () { (this.upgrade_group.resolve("upgrade1").upgrade = "na"), (this.upgrade_group.resolve("upgrade2").upgrade = "na"), (this.upgrade_group.resolve("upgrade3").upgrade = "na"), (this.upgrade_group.resolve("upgrade4").upgrade = "na"), this.sellTowerBtn.addEventListener( "mouseDown", CT(this, this.sellTower) ), this.sellTowerBtn.addEventListener( "rollOver", CT(this, this.sellTowerOver) ), this.sellTowerBtn.addEventListener( "rollOut", CT(this, this.sellTowerOut) ); }, sellTowerOver: function (e) { this.sellTowerBtn.gotoAndStop(2); }, buymaxrankClick: function (e) { this.parent.showItemStore("maxrank"); }, sellTowerOut: function (e) { this.sellTowerBtn.gotoAndStop(1); }, sellTower: function (e) { this.parent.SellCurrentTower(); }, __class__: Li, })); var nf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1898]; Li.call(this, r, o); }; ((s["bloonstd4_fla.Toweroptions_414"] = nf).__name__ = [ "bloonstd4_fla", "Toweroptions_414", ]), (nf.__super__ = Li), (nf.prototype = n(Li.prototype, { __class__: nf })); var Ni = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)), this.addFrameScript(12, CT(this, this.frame13)), this.addFrameScript(13, CT(this, this.frame14)), this.addFrameScript(14, CT(this, this.frame15)), this.addFrameScript(15, CT(this, this.frame16)); }; ((s["swf.bloonstd4_fla.Towerplace336"] = Ni).__name__ = [ "swf", "bloonstd4_fla", "Towerplace336", ]), (Ni.__super__ = u), (Ni.prototype = n(u.prototype, { frame1: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_width( this.radiusmc.set_height(2 * Lp.__cast(this.parent, a).RANGE_DART) ), Zf.trace("tehdart", { fileName: "Towerplace336.hx", lineNumber: 41, className: "swf.bloonstd4_fla.Towerplace336", methodName: "frame1", }); }, frame2: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_width( this.radiusmc.set_height(2 * Lp.__cast(this.parent, a).RANGE_TACK) ); }, frame3: function () { this.stop(), this.radiusmc.set_width( this.radiusmc.set_height( 2 * Lp.__cast(this.parent, a).RANGE_BOOMERANG ) ); }, frame4: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_width( this.radiusmc.set_height(2 * Lp.__cast(this.parent, a).RANGE_BOMB) ); }, frame6: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_width( this.radiusmc.set_height(2 * Lp.__cast(this.parent, a).RANGE_ICE) ); }, frame7: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_width( this.radiusmc.set_height(2 * Lp.__cast(this.parent, a).RANGE_SUPER) ); }, frame8: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_height(40), this.radiusmc.set_width(40); }, frame9: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_height(40), this.radiusmc.set_width(40); }, frame11: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_height(100), this.radiusmc.set_width(100); }, frame12: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_width( this.radiusmc.set_height(2 * Lp.__cast(this.parent, a).RANGE_BEACON) ); }, frame5: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_height(20), this.radiusmc.set_width(20); }, frame15: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_width( this.radiusmc.set_height(2 * Lp.__cast(this.parent, a).RANGE_SHIP) ); }, frame10: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_height(40), this.radiusmc.set_width(40); }, frame13: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_width( this.radiusmc.set_height(2 * Lp.__cast(this.parent, a).RANGE_GLUE) ); }, frame14: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_height(1), this.radiusmc.set_width(1); }, frame16: function () { this.stop(), this.radiusmc.set_visible(!0), this.radiusmc.set_width( this.radiusmc.set_height(2 * Lp.__cast(this.parent, a).RANGE_WIZARD) ); }, __class__: Ni, })); var rf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1384]; Ni.call(this, r, o); }; ((s["bloonstd4_fla.Towerplace_336"] = rf).__name__ = [ "bloonstd4_fla", "Towerplace_336", ]), (rf.__super__ = Ni), (rf.prototype = n(Ni.prototype, { __class__: rf })); var Oi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Track16btn232"] = Oi).__name__ = [ "swf", "bloonstd4_fla", "Track16btn232", ]), (Oi.__super__ = u), (Oi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: Oi, })); var of = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1127]; Oi.call(this, r, o); }; ((s["bloonstd4_fla.Track16btn_232"] = of).__name__ = [ "bloonstd4_fla", "Track16btn_232", ]), (of.__super__ = Oi), (of.prototype = n(Oi.prototype, { __class__: of })); var Ui = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Track17btn235"] = Ui).__name__ = [ "swf", "bloonstd4_fla", "Track17btn235", ]), (Ui.__super__ = u), (Ui.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: Ui, })); var af = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1132]; Ui.call(this, r, o); }; ((s["bloonstd4_fla.Track17btn_235"] = af).__name__ = [ "bloonstd4_fla", "Track17btn_235", ]), (af.__super__ = Ui), (af.prototype = n(Ui.prototype, { __class__: af })); var Gi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Track18btn238"] = Gi).__name__ = [ "swf", "bloonstd4_fla", "Track18btn238", ]), (Gi.__super__ = u), (Gi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: Gi, })); var lf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1136]; Gi.call(this, r, o); }; ((s["bloonstd4_fla.Track18btn_238"] = lf).__name__ = [ "bloonstd4_fla", "Track18btn_238", ]), (lf.__super__ = Gi), (lf.prototype = n(Gi.prototype, { __class__: lf })); var zi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Track19btn240"] = zi).__name__ = [ "swf", "bloonstd4_fla", "Track19btn240", ]), (zi.__super__ = u), (zi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: zi, })); var hf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1144]; zi.call(this, r, o); }; ((s["bloonstd4_fla.Track19btn_240"] = hf).__name__ = [ "bloonstd4_fla", "Track19btn_240", ]), (hf.__super__ = zi), (hf.prototype = n(zi.prototype, { __class__: hf })); var Xi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Track20btn244"] = Xi).__name__ = [ "swf", "bloonstd4_fla", "Track20btn244", ]), (Xi.__super__ = u), (Xi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: Xi, })); var _f = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1146]; Xi.call(this, r, o); }; ((s["bloonstd4_fla.Track20btn_244"] = _f).__name__ = [ "bloonstd4_fla", "Track20btn_244", ]), (_f.__super__ = Xi), (_f.prototype = n(Xi.prototype, { __class__: _f })); var Hi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Track21btn245"] = Hi).__name__ = [ "swf", "bloonstd4_fla", "Track21btn245", ]), (Hi.__super__ = u), (Hi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: Hi, })); var uf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1148]; Hi.call(this, r, o); }; ((s["bloonstd4_fla.Track21btn_245"] = uf).__name__ = [ "bloonstd4_fla", "Track21btn_245", ]), (uf.__super__ = Hi), (uf.prototype = n(Hi.prototype, { __class__: uf })); var Vi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Track22btn246"] = Vi).__name__ = [ "swf", "bloonstd4_fla", "Track22btn246", ]), (Vi.__super__ = u), (Vi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: Vi, })); var df = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1151]; Vi.call(this, r, o); }; ((s["bloonstd4_fla.Track22btn_246"] = df).__name__ = [ "bloonstd4_fla", "Track22btn_246", ]), (df.__super__ = Vi), (df.prototype = n(Vi.prototype, { __class__: df })); var Yi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.Track23btn248"] = Yi).__name__ = [ "swf", "bloonstd4_fla", "Track23btn248", ]), (Yi.__super__ = u), (Yi.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: Yi, })); var cf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1153]; Yi.call(this, r, o); }; ((s["bloonstd4_fla.Track23btn_248"] = cf).__name__ = [ "bloonstd4_fla", "Track23btn_248", ]), (cf.__super__ = Yi), (cf.prototype = n(Yi.prototype, { __class__: cf })); var Wi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)), this.addFrameScript(12, CT(this, this.frame13)); }; ((s["swf.bloonstd4_fla.TrackPreview556"] = Wi).__name__ = [ "swf", "bloonstd4_fla", "TrackPreview556", ]), (Wi.__super__ = u), (Wi.prototype = n(u.prototype, { frame1: function () { this.stop(), this.closeBtn.addEventListener("click", CT(this, this.clickClose)); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame6: function () { this.stop(); }, frame7: function () { this.stop(); }, frame8: function () { this.stop(); }, frame9: function () { this.stop(); }, frame11: function () { this.stop(); }, frame12: function () { this.stop(); }, frame5: function () { this.stop(); }, clickClose: function (e) { this.set_visible(!1); }, frame13: function () { this.stop(), Zf.trace("choose this track", { fileName: "TrackPreview556.hx", lineNumber: 96, className: "swf.bloonstd4_fla.TrackPreview556", methodName: "frame13", }); }, frame10: function () { this.stop(); }, __class__: Wi, })); var ff = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2029]; Wi.call(this, r, o); }; ((s["bloonstd4_fla.TrackPreview_556"] = ff).__name__ = [ "bloonstd4_fla", "TrackPreview_556", ]), (ff.__super__ = Wi), (ff.prototype = n(Wi.prototype, { __class__: ff })); var ji = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)); }; ((s["swf.bloonstd4_fla.UpgradeDartRange425"] = ji).__name__ = [ "swf", "bloonstd4_fla", "UpgradeDartRange425", ]), (ji.__super__ = u), (ji.prototype = n(u.prototype, { frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, __class__: ji, })); var pf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1598]; ji.call(this, r, o); }; ((s["bloonstd4_fla.Upgrade_dart_range_425"] = pf).__name__ = [ "bloonstd4_fla", "Upgrade_dart_range_425", ]), (pf.__super__ = ji), (pf.prototype = n(ji.prototype, { __class__: pf })); var Ki = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(2, CT(this, this.frame3)), this.addFrameScript(3, CT(this, this.frame4)), this.addFrameScript(4, CT(this, this.frame5)), this.addFrameScript(5, CT(this, this.frame6)), this.addFrameScript(6, CT(this, this.frame7)), this.addFrameScript(7, CT(this, this.frame8)), this.addFrameScript(8, CT(this, this.frame9)), this.addFrameScript(9, CT(this, this.frame10)), this.addFrameScript(10, CT(this, this.frame11)), this.addFrameScript(11, CT(this, this.frame12)), this.addFrameScript(12, CT(this, this.frame13)), this.addFrameScript(13, CT(this, this.frame14)), this.addFrameScript(14, CT(this, this.frame15)), this.addFrameScript(15, CT(this, this.frame16)), this.addFrameScript(16, CT(this, this.frame17)), this.addFrameScript(17, CT(this, this.frame18)), this.addFrameScript(18, CT(this, this.frame19)), this.addFrameScript(19, CT(this, this.frame20)), this.addFrameScript(20, CT(this, this.frame21)), this.addFrameScript(21, CT(this, this.frame22)), this.addFrameScript(22, CT(this, this.frame23)), this.addFrameScript(23, CT(this, this.frame24)), this.addFrameScript(24, CT(this, this.frame25)), this.addFrameScript(25, CT(this, this.frame26)), this.addFrameScript(26, CT(this, this.frame27)), this.addFrameScript(27, CT(this, this.frame28)), this.addFrameScript(28, CT(this, this.frame29)), this.addFrameScript(29, CT(this, this.frame30)), this.addFrameScript(30, CT(this, this.frame31)), this.addFrameScript(31, CT(this, this.frame32)), this.addFrameScript(32, CT(this, this.frame33)), this.addFrameScript(33, CT(this, this.frame34)), this.addFrameScript(34, CT(this, this.frame35)), this.addFrameScript(35, CT(this, this.frame36)), this.addFrameScript(36, CT(this, this.frame37)), this.addFrameScript(37, CT(this, this.frame38)), this.addFrameScript(38, CT(this, this.frame39)), this.addFrameScript(39, CT(this, this.frame40)), this.addFrameScript(40, CT(this, this.frame41)), this.addFrameScript(41, CT(this, this.frame42)), this.addFrameScript(42, CT(this, this.frame43)), this.addFrameScript(43, CT(this, this.frame44)), this.addFrameScript(44, CT(this, this.frame45)), this.addFrameScript(45, CT(this, this.frame46)), this.addFrameScript(46, CT(this, this.frame47)), this.addFrameScript(47, CT(this, this.frame48)), this.addFrameScript(48, CT(this, this.frame49)), this.addFrameScript(49, CT(this, this.frame50)), this.addFrameScript(50, CT(this, this.frame51)), this.addFrameScript(51, CT(this, this.frame52)); }; ((s["swf.bloonstd4_fla.UpgradeIcons418"] = Ki).__name__ = [ "swf", "bloonstd4_fla", "UpgradeIcons418", ]), (Ki.__super__ = u), (Ki.prototype = n(u.prototype, { frame31: function () { this.stop(); }, frame32: function () { this.stop(); }, frame33: function () { this.stop(); }, frame34: function () { this.stop(); }, frame35: function () { this.stop(); }, frame36: function () { this.stop(); }, frame37: function () { this.stop(); }, frame38: function () { this.stop(); }, frame39: function () { this.stop(); }, frame30: function () { this.stop(); }, frame40: function () { this.stop(); }, frame41: function () { this.stop(); }, frame42: function () { this.stop(); }, frame43: function () { this.stop(); }, frame44: function () { this.stop(); }, frame45: function () { this.stop(); }, frame46: function () { this.stop(); }, frame47: function () { this.stop(); }, frame48: function () { this.stop(); }, frame49: function () { this.stop(); }, frame50: function () { this.stop(); }, frame51: function () { this.stop(); }, frame52: function () { this.stop(); }, frame10: function () { this.stop(); }, frame11: function () { this.stop(); }, frame12: function () { this.stop(); }, frame13: function () { this.stop(); }, frame14: function () { this.stop(); }, frame15: function () { this.stop(); }, frame16: function () { this.stop(); }, frame17: function () { this.stop(); }, frame18: function () { this.stop(); }, frame19: function () { this.stop(); }, frame1: function () { this.stop(); }, frame2: function () { this.stop(); }, frame3: function () { this.stop(); }, frame4: function () { this.stop(); }, frame5: function () { this.stop(); }, frame6: function () { this.stop(); }, frame7: function () { this.stop(); }, frame8: function () { this.stop(); }, frame9: function () { this.stop(); }, frame22: function () { this.stop(); }, frame23: function () { this.stop(); }, CheckAfford: function () { this.parent.parent.parent.CanAfford(this.resolve("upgrade")) ? this.cantafford.set_visible(!1) : this.cantafford.set_visible(!0); }, frame25: function () { this.stop(); }, frame26: function () { this.stop(); }, frame20: function () { this.stop(); }, frame21: function () { this.stop(); }, frame29: function () { this.stop(); }, frame24: function () { this.stop(); }, frame27: function () { this.stop(); }, frame28: function () { this.stop(); }, __class__: Ki, })); var bf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[1840]; Ki.call(this, r, o); }; ((s["bloonstd4_fla.Upgrade_icons_418"] = bf).__name__ = [ "bloonstd4_fla", "Upgrade_icons_418", ]), (bf.__super__ = Ki), (bf.prototype = n(Ki.prototype, { __class__: bf })); var qi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Winbar545"] = qi).__name__ = [ "swf", "bloonstd4_fla", "Winbar545", ]), (qi.__super__ = u), (qi.prototype = n(u.prototype, { keepgoing: function (e) { this.parent.parent.set_visible(!1), this.parent.parent.parent.freePlayMode(); }, frame1: function () { this.okbtn.addEventListener("click", CT(this, this.clickBtn)), this.submitbtn.addEventListener( "click", CT(this, this.clickSubmitBtn) ), this.keepgoingbtn.addEventListener("click", CT(this, this.keepgoing)); }, clickBtn: function (e) { this.parent.parent.gotoAndPlay("drawOff"); }, clickSubmitBtn: function (e) { this.parent.parent.parent.submitRank(); }, __class__: qi, })); var mf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2013]; qi.call(this, r, o); }; ((s["bloonstd4_fla.Winbar_545"] = mf).__name__ = [ "bloonstd4_fla", "Winbar_545", ]), (mf.__super__ = qi), (mf.prototype = n(qi.prototype, { __class__: mf })); var Zi = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)); }; ((s["swf.bloonstd4_fla.Wingameinner543"] = Zi).__name__ = [ "swf", "bloonstd4_fla", "Wingameinner543", ]), (Zi.__super__ = u), (Zi.prototype = n(u.prototype, { frame1: function () { this.stop(), this.nohitbtn.addEventListener("click", CT(this, this.nohitplz)); }, nohitplz: function (e) {}, __class__: Zi, })); var gf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2014]; Zi.call(this, r, o); }; ((s["bloonstd4_fla.Wingameinner_543"] = gf).__name__ = [ "bloonstd4_fla", "Wingameinner_543", ]), (gf.__super__ = Zi), (gf.prototype = n(Zi.prototype, { __class__: gf })); var Ji = function (e, t) { u.call(this, e, t), this.addEventListener("addedToStage", CT(this, this.frame1)), this.addFrameScript(0, CT(this, this.frame1)), this.addFrameScript(1, CT(this, this.frame2)), this.addFrameScript(46, CT(this, this.frame47)), this.addFrameScript(92, CT(this, this.frame93)); }; ((s["swf.bloonstd4_fla.Winpanel542"] = Ji).__name__ = [ "swf", "bloonstd4_fla", "Winpanel542", ]), (Ji.__super__ = u), (Ji.prototype = n(u.prototype, { frame47: function () { this.stop(); }, frame1: function () { this.stop(), this.set_visible(!1); }, frame2: function () { this.set_visible(!0), this.inner .resolve("inner") .resolve("medal") .gotoAndStop(this.parent.resolve("diff")), this.inner .resolve("inner") .resolve("medal") .resolve("strap") .gotoAndStop(this.parent.resolve("trackNum")), Lp.__cast( this.inner.resolve("inner").resolve("msg_txt"), Sa ).set_text("You passed this track on " + Ue.string(this.parent.diff)); }, frame93: function () { this.parent.resolve("mainmenu").set_visible(!0), this.parent.Init(), this.set_visible(!1); }, __class__: Ji, })); var wf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[2015]; Ji.call(this, r, o); }; ((s["bloonstd4_fla.Winpanel_542"] = wf).__name__ = [ "bloonstd4_fla", "Winpanel_542", ]), (wf.__super__ = Ji), (wf.prototype = n(Ji.prototype, { __class__: wf })); var Qi = function (e, t) { u.call(this, e, t); }; ((s["swf.com.google.analytics.components.FlashTracker"] = Qi).__name__ = [ "swf", "com", "google", "analytics", "components", "FlashTracker", ]), (Qi.__super__ = u), (Qi.prototype = n(u.prototype, { __class__: Qi })); var vf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[829]; Qi.call(this, r, o); }; ((s["com.google.analytics.components.FlashTracker"] = vf).__name__ = [ "com", "google", "analytics", "components", "FlashTracker", ]), (vf.__super__ = Qi), (vf.prototype = n(Qi.prototype, { __class__: vf })); var $i = function (e, t) { u.call(this, e, t); }; ((s["swf.com.google.analytics.components.Icon"] = $i).__name__ = [ "swf", "com", "google", "analytics", "components", "Icon", ]), ($i.__super__ = u), ($i.prototype = n(u.prototype, { __class__: $i })); var yf = function () { var e = Ca.instances; if ( !(null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? e.existsReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : e.h.hasOwnProperty("lib/bloontowerdefense4/bloontowerdefense4.dat")) ) { var t = Ca.instances, s = Ca.unserializeLibrary( jy.toBytes( Wm.getBytes("lib/bloontowerdefense4/bloontowerdefense4.dat") ) ), n = t; null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? n.setReserved("lib/bloontowerdefense4/bloontowerdefense4.dat", s) : (n.h["lib/bloontowerdefense4/bloontowerdefense4.dat"] = s); } var i = Ca.instances, r = null != NT["lib/bloontowerdefense4/bloontowerdefense4.dat"] ? i.getReserved("lib/bloontowerdefense4/bloontowerdefense4.dat") : i.h["lib/bloontowerdefense4/bloontowerdefense4.dat"], o = r.symbols.h[828]; $i.call(this, r, o); }; ((s["com.google.analytics.components.Icon"] = yf).__name__ = [ "com", "google", "analytics", "components", "Icon", ]), (yf.__super__ = $i), (yf.prototype = n($i.prototype, { __class__: yf })); var er = function (e, t, s, n) { null == t && (t = 10), (this._paused = !0), (this.autoRotation = !1), (this.autoVisible = !0), (this.reflect = !1), (this.snapping = !1), (this._tweenPosition = 0), (this.repeat = 0), (this.duration = 1), (this._delay = 0), (this._position = 0), (this.autoPlay = !0), (this.ease = er.linearEase), g.call(this), (this.ticker = er.get_activeTicker()), this.set_target(e), (this.duration = t), (this.ease = null == er.defaultEase ? er.linearEase : er.defaultEase), this.setProperties(s), this.setTweenProperties(n); }; ((s["com.gskinner.motion.GTween"] = er).__name__ = [ "com", "gskinner", "motion", "GTween", ]), (er.__properties__ = { set_timingMode: "set_timingMode", get_timingMode: "get_timingMode", get_activeTicker: "get_activeTicker", }), (er.activeTweens = null), (er._activeTicker = null), (er.defaultEase = null), (er._timingMode = null), (er.set_timeInterval = function (e) { (er._timeInterval = e), Lp.__instanceof(er._activeTicker, rr) && Lp.__cast(er._activeTicker, rr).set_interval(er._timeInterval / 1e3); }), (er.get_timingMode = function () { return er._timingMode; }), (er.get_activeTicker = function () { return ( null == er._timingMode && er.set_timingMode("hybrid"), er._activeTicker ); }), (er.set_timingMode = function (e) { return ( (e = "frame" == e || "time" == e ? e : "hybrid") == er._timingMode || ((er._timingMode = e), "time" == er._timingMode ? ((er._activeTicker = new rr()), Lp.__cast(er._activeTicker, rr).set_interval( er._timeInterval / 1e3 )) : "frame" == er._timingMode ? (er._activeTicker = new sr()) : (er._activeTicker = new ir())), e ); }), (er.linearEase = function (e, t, s, n) { return e; }), (er.get_timeInterval = function () { return er._timeInterval; }), (er.__super__ = g), (er.prototype = n(g.prototype, { setGCLock: function (e) { if (!e) throw ( (Lp.__instanceof(this._target, i) && this._target.removeEventListener( "GDS__NONEXISTENT_EVENT", CT(this, this.nullListener) ), new Mp("")) ); Lp.__instanceof(this._target, i) ? this._target.addEventListener( "GDS__NONEXISTENT_EVENT", CT(this, this.nullListener), !1, 0, !1 ) : er.activeTweens.set(this, !0); }, get_target: function () { return this._target; }, get_delay: function () { return this._delay; }, set_delay: function (e) { this._position == -this._delay && this.setPosition(-e), (this._delay = e); }, init: function () { if (((this.inited = !0), !this._lockStartProperties)) throw ( ((this.startValues = {}), null != this.assignmentTarget && null != this.assignmentProperty && (this._propertyTarget = De.field( this.assignmentTarget, this.assignmentProperty )), new Mp("")) ); }, get_state: function () { return this._position == -this._delay && this._paused ? "start" : this._position < 0 ? "delay" : -1 != this.repeat && this._position >= (this.repeat + 1) * this.duration ? "end" : "tween"; }, get_lockStartProperties: function () { return this._lockStartProperties; }, deleteProperty: function (e) { throw new Mp(""); }, set_target: function (e) { return ( (this._propertyTarget = this._target = null == e ? {} : e), (this.inited = !1), e ); }, set_reversed: function (e) { return ( e == this._reversed || ((this._reversed = e), this.inited || this.init(), this.setPosition(this._position, !0)), e ); }, get_position: function () { return this._position; }, setPosition: function (e, t) { null == t && (t = !0); var s = NaN; (this._previousPosition = this._position), (this._position = e), this.inTick || this.get_paused() || this.updatePositionOffset(); var n = (this.repeat + 1) * this.duration; e < 0 ? (s = this._reversed ? this.duration : 0) : -1 == this.repeat || e < n ? ((s = e % this.duration), (this.reflect && 1 <= e / (this.duration % 2)) != this._reversed && (s = this.duration - s)) : (s = (this.reflect && 1 <= this.repeat % 2) != this._reversed ? 0 : this.duration), s != this._tweenPosition && ((this._previousTweenPosition = this._tweenPosition), (this._tweenPosition = s), !t && this.hasEventListener("change") && this.dispatchEvent(new _a("change")), !this.inited && this._previousPosition <= 0 && 0 <= this._position && (this.init(), !t && this.hasEventListener("init") && this.dispatchEvent(new _a("init"))), this.updateProperties(), -1 != this.repeat && this._previousPosition < n && n <= e && (!t && this.hasEventListener("complete") && this.dispatchEvent(new _a("complete")), this.set_paused(!0), null != this.nextTween && this.nextTween.set_paused(!1))); }, set_lockStartProperties: function (e) { e && !this.inited && this.init(), (this._lockStartProperties = e); }, get_paused: function () { return this._paused; }, get_tweenPosition: function () { return this._tweenPosition; }, invalidate: function () { (this.inited = !1), 0 < this._position && ((this._position = 0), this.updatePositionOffset()), this.autoPlay && this.set_paused(!1); }, getProperties: function () { return this.copyDynamic(this.endValues); }, get_propertyTarget: function () { return this._propertyTarget; }, play: function () { this.set_paused(!1); }, setAssignment: function (e, t) { (this.assignmentTarget = e), (this.assignmentProperty = t), (this.inited = !1); }, get_reversed: function () { return this._reversed; }, set_position: function (e) { return this.setPosition(e, !0), e; }, updateProperty: function (e, t, s, n) { throw new Mp(""); }, setProperties: function (e) { this.endValues = {}; for (var t = 0, s = De.fields(e); t < s.length; ) { var n = s[t]; ++t, this.setProperty(n, De.field(e, n)); } }, getProperty: function (e) { throw new Mp(""); }, end: function () { throw new Mp(""); }, set_paused: function (e) { return e == this._paused ? this._paused : ((this._paused = e) ? this.ticker.removeEventListener( "tick", CT(this, this.handleTick) ) : (this.ticker.addEventListener( "tick", CT(this, this.handleTick), !1, 0, !0 ), -1 != this.repeat && this._position >= this.duration * (this.repeat + 1) ? this.set_position(0) : this.updatePositionOffset()), this.setGCLock(!e), e); }, beginning: function () { this.setPosition(-this._delay); }, setProperty: function (e, t) { isNaN(t) || ((this.endValues[e] = t), this._lockStartProperties && null == De.field(this.startValues, e) && (this.startValues[e] = De.field(this._propertyTarget, e)), this.invalidate()); }, updatePositionOffset: function () { this.positionOffset = this.ticker.get_position() - this._position; }, copyDynamic: function (e) { throw new Mp(""); }, setTweenProperties: function (e) { var t = NaN; if (e) { if (Object.prototype.hasOwnProperty.call(e, "position")) throw ((t = e.position), new Mp("")); if (Object.prototype.hasOwnProperty.call(e, "initListener")) throw ( (this.addEventListener("init", e.initListener, !1, 0, !0), new Mp("")) ); if (Object.prototype.hasOwnProperty.call(e, "completeListener")) throw ( (this.addEventListener("complete", e.completeListener, !1, 0, !0), new Mp("")) ); if (Object.prototype.hasOwnProperty.call(e, "changeListener")) throw ( (this.addEventListener("change", e.changeListener, !1, 0, !0), new Mp("")) ); for (var s = 0, n = De.fields(e); s < n.length; ) { var i = n[s]; ++s, (this[i] = De.field(e, i)); } isNaN(t) || this.set_position(t); } }, updateProperties: function () { throw new Mp(""); }, reverse: function (e) { throw (null == e && (e = !0), new Mp("")); }, setStartProperties: function (e) { (this.startValues = this.copyDynamic(e)), (this.inited = !0); }, handleTick: function (e) { (this.inTick = !0), er.pauseAll ? this.updatePositionOffset() : this.setPosition( this.ticker.get_position() - this.positionOffset, !1 ), (this.inTick = !1); }, get_proxy: function () { return null == this._proxy && (this._proxy = new nr(this)), this._proxy; }, pause: function () { this.set_paused(!0); }, nullListener: function (e) {}, getStartProperties: function () { return this.copyDynamic(this.startValues); }, __class__: er, __properties__: { set_paused: "set_paused", get_paused: "get_paused", set_target: "set_target", get_target: "get_target", set_position: "set_position", get_position: "get_position", }, })); var tr = function () {}; ((s["com.gskinner.motion.ITicker"] = tr).__name__ = [ "com", "gskinner", "motion", "ITicker", ]), (tr.__interfaces__ = [i]), (tr.prototype = { __class__: tr, __properties__: { get_position: "get_position" }, }); var sr = function () { (this._position = 0), g.call(this), (this.shape = new Ea()), this.shape.addEventListener("enterFrame", CT(this, this.tick)); }; ((s["com.gskinner.motion.FrameTicker"] = sr).__name__ = [ "com", "gskinner", "motion", "FrameTicker", ]), (sr.__interfaces__ = [tr]), (sr.__super__ = g), (sr.prototype = n(g.prototype, { get_position: function () { return this._position; }, tick: function (e) { this._position++, this.dispatchEvent(new _a("tick")); }, __class__: sr, __properties__: { get_position: "get_position" }, })); var nr = function (e) { this.gTween = e; }; ((s["com.gskinner.motion.TargetProxy"] = nr).__name__ = [ "com", "gskinner", "motion", "TargetProxy", ]), (nr.prototype = { deleteProperty: function (e) { throw new Mp(""); }, setProperty: function (e, t) { throw new Mp(""); }, getProperty: function (e) { throw new Mp(""); }, __class__: nr, }); var ir = function () { g.call(this), (this.shape = new Ea()), this.shape.addEventListener("enterFrame", CT(this, this.tick)); }; ((s["com.gskinner.motion.HybridTicker"] = ir).__name__ = [ "com", "gskinner", "motion", "HybridTicker", ]), (ir.__interfaces__ = [tr]), (ir.__super__ = g), (ir.prototype = n(g.prototype, { get_position: function () { return Date.now() / 1e3; }, tick: function (e) { this.dispatchEvent(new _a("tick")); }, __class__: ir, __properties__: { get_position: "get_position" }, })); var rr = function () { g.call(this), (this.timer = new tT(20)), this.timer.start(), this.timer.addEventListener("timer", CT(this, this.tick)); }; ((s["com.gskinner.motion.TimeTicker"] = rr).__name__ = [ "com", "gskinner", "motion", "TimeTicker", ]), (rr.__interfaces__ = [tr]), (rr.__super__ = g), (rr.prototype = n(g.prototype, { get_position: function () { return Date.now() / 1e3; }, set_interval: function (e) { return this.timer.set_delay(1e3 * e), e; }, tick: function (e) { this.dispatchEvent(new _a("tick")), e.updateAfterEvent(); }, __class__: rr, __properties__: { set_interval: "set_interval", get_position: "get_position", }, })); var or = {}; ((s["format.swf._SWFData.SWFData_Impl_"] = or).__name__ = [ "format", "swf", "_SWFData", "SWFData_Impl_", ]), (or.__properties__ = { set_length: "set_length", get_length: "get_length", }), (or._new = function () { var e = new Gf(); return (e.__endian = 1), e; }), (or.readSI8 = function (e) { return e.resetBitsPending(), e.readByte(); }), (or.writeSI8 = function (e, t) { e.resetBitsPending(), e.writeByte(t); }), (or.readSI16 = function (e) { return e.resetBitsPending(), e.readShort(); }), (or.writeSI16 = function (e, t) { e.resetBitsPending(), e.writeShort(t); }), (or.readSI32 = function (e) { return e.resetBitsPending(), e.readInt(); }), (or.writeSI32 = function (e, t) { e.resetBitsPending(), e.writeInt(t); }), (or.readUI8 = function (e) { return e.resetBitsPending(), e.readUnsignedByte(); }), (or.writeUI8 = function (e, t) { e.resetBitsPending(), e.writeByte(t); }), (or.readUI16 = function (e) { return e.resetBitsPending(), e.readUnsignedShort(); }), (or.writeUI16 = function (e, t) { e.resetBitsPending(), e.writeShort(t); }), (or.readUI24 = function (e) { e.resetBitsPending(); var t = e.readUnsignedShort(); return (e.readUnsignedByte() << 16) | t; }), (or.writeUI24 = function (e, t) { e.resetBitsPending(), e.writeShort(65535 & t), e.writeByte(t >> 16); }), (or.readUI32 = function (e) { return e.resetBitsPending(), e.readUnsignedInt(); }), (or.writeUI32 = function (e, t) { e.resetBitsPending(), e.writeUnsignedInt(t); }), (or.readFIXED = function (e) { return e.resetBitsPending(), e.readInt() / 65536; }), (or.writeFIXED = function (e, t) { e.resetBitsPending(), e.writeInt((65536 * t) | 0); }), (or.readFIXED8 = function (e) { return e.resetBitsPending(), e.readShort() / 256; }), (or.writeFIXED8 = function (e, t) { e.resetBitsPending(), e.writeShort((256 * t) | 0); }), (or.readFLOAT = function (e) { return e.resetBitsPending(), e.readFloat(); }), (or.writeFLOAT = function (e, t) { e.resetBitsPending(), e.writeFloat(t); }), (or.readDOUBLE = function (e) { return e.resetBitsPending(), e.readDouble(); }), (or.writeDOUBLE = function (e, t) { e.resetBitsPending(), e.writeDouble(t); }), (or.readFLOAT16 = function (e) { e.resetBitsPending(); var t = e.readUnsignedShort(), s = 0 != (32768 & t) ? -1 : 1, n = (t >> 10) & 31, i = 1023 & t; return 0 == n ? 0 == i ? 0 : s * Math.pow(2, -14) * (i / 1024) : 31 == n ? 0 == i ? s < 0 ? -1 / 0 : 1 / 0 : NaN : s * Math.pow(2, n - 15) * (1 + i / 1024); }), (or.writeFLOAT16 = function (e, t) { Xf.write(t, e); }), (or.readEncodedU32 = function (e) { e.resetBitsPending(); var t = e.readUnsignedByte(); return ( 0 < (128 & t) && 0 < (16384 & (t = (127 & t) | (e.readUnsignedByte() << 7))) && 0 < (2097152 & (t = (16383 & t) | (e.readUnsignedByte() << 14))) && 0 < (268435456 & (t = (2097151 & t) | (e.readUnsignedByte() << 21))) && (t = (268435455 & t) | (e.readUnsignedByte() << 28)), t ); }), (or.writeEncodedU32 = function (e, t) { var s = 127 & t; 0 != (t >>= 7) ? or.writeUI8(e, 128 | s) : or.writeUI8(e, s); }), (or.readUB = function (e, t) { return e.readBits(t); }), (or.writeUB = function (e, t, s) { e.writeBits(t, s); }), (or.readSB = function (e, t) { var s = 32 - t; return ((e.readBits(t) << s) | 0) >> s; }), (or.writeSB = function (e, t, s) { e.writeBits(t, s); }), (or.readFB = function (e, t) { return or.readSB(e, t) / 65536; }), (or.writeFB = function (e, t, s) { or.writeSB(e, t, (65536 * s) | 0); }), (or.readSTRING = function (e) { for (var t = e.position; 0 < e.b[t++]; ); return e.resetBitsPending(), e.readUTFBytes(t - e.position); }), (or.writeSTRING = function (e, t) { null != t && 0 < t.length && e.writeUTFBytes(t), e.writeByte(0); }), (or.readLANGCODE = function (e) { return e.resetBitsPending(), e.readUnsignedByte(); }), (or.writeLANGCODE = function (e, t) { e.resetBitsPending(), e.writeByte(t); }), (or.readRGB = function (e) { return ( e.resetBitsPending(), -16777216 | (e.readUnsignedByte() << 16) | (e.readUnsignedByte() << 8) | e.readUnsignedByte() ); }), (or.writeRGB = function (e, t) { e.resetBitsPending(), e.writeByte((t >> 16) & 255), e.writeByte((t >> 8) & 255), e.writeByte(255 & t); }), (or.readRGBA = function (e) { e.resetBitsPending(); var t = 16777215 & or.readRGB(e); return (e.readUnsignedByte() << 24) | t; }), (or.writeRGBA = function (e, t) { e.resetBitsPending(), or.writeRGB(e, t), e.writeByte((t >> 24) & 255); }), (or.readARGB = function (e) { return ( e.resetBitsPending(), (e.readUnsignedByte() << 24) | (16777215 & or.readRGB(e)) ); }), (or.writeARGB = function (e, t) { e.resetBitsPending(), e.writeByte((t >> 24) & 255), or.writeRGB(e, t); }), (or.readRECT = function (e) { return new Lr(e); }), (or.writeRECT = function (e, t) { t.publish(e); }), (or.readMATRIX = function (e) { return new Rr(e); }), (or.writeMATRIX = function (e, t) { e.resetBitsPending(); var s, n = 1 != t.scaleX || 1 != t.scaleY, i = 0 != t.rotateSkew0 || 0 != t.rotateSkew1; (e.writeBits(1, n ? 1 : 0), n) && ((s = 0 == t.scaleX && 0 == t.scaleY ? 1 : e.calculateMaxBits(!0, [ (65536 * t.scaleX) | 0, (65536 * t.scaleY) | 0, ])), or.writeUB(e, 5, s), or.writeFB(e, s, t.scaleX), or.writeFB(e, s, t.scaleY)); if ((e.writeBits(1, i ? 1 : 0), i)) { var r = e.calculateMaxBits(!0, [ (65536 * t.rotateSkew0) | 0, (65536 * t.rotateSkew1) | 0, ]); or.writeUB(e, 5, r), or.writeFB(e, r, t.rotateSkew0), or.writeFB(e, r, t.rotateSkew1); } var o = e.calculateMaxBits(!0, [t.translateX, t.translateY]); or.writeUB(e, 5, o), or.writeSB(e, o, t.translateX), or.writeSB(e, o, t.translateY); }), (or.readCXFORM = function (e) { return new fr(e); }), (or.writeCXFORM = function (e, t) { t.publish(e); }), (or.readCXFORMWITHALPHA = function (e) { return new pr(e); }), (or.writeCXFORMWITHALPHA = function (e, t) { t.publish(e); }), (or.readSHAPE = function (e, t) { return null == t && (t = 20), new Ur(e, 1, t); }), (or.writeSHAPE = function (e, t) { t.publish(e); }), (or.readSHAPEWITHSTYLE = function (e, t, s) { return null == s && (s = 20), null == t && (t = 1), new Yr(e, t, s); }), (or.writeSHAPEWITHSTYLE = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readSTRAIGHTEDGERECORD = function (e, t) { return new Hr(e, t); }), (or.writeSTRAIGHTEDGERECORD = function (e, t) { t.publish(e); }), (or.readCURVEDEDGERECORD = function (e, t) { return new zr(e, t); }), (or.writeCURVEDEDGERECORD = function (e, t) { t.publish(e); }), (or.readSTYLECHANGERECORD = function (e, t, s, n, i) { return null == i && (i = 1), new Vr(e, t, s, n, i); }), (or.writeSTYLECHANGERECORD = function (e, t, s, n, i) { null == i && (i = 1), (t.numFillBits = s), (t.numLineBits = n), t.publish(e, i); }), (or.readFILLSTYLE = function (e, t) { return null == t && (t = 1), new gr(e, t); }), (or.writeFILLSTYLE = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readLINESTYLE = function (e, t) { return null == t && (t = 1), new Er(e, t); }), (or.writeLINESTYLE = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readLINESTYLE2 = function (e, t) { return null == t && (t = 1), new Pr(e, t); }), (or.writeLINESTYLE2 = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readBUTTONRECORD = function (e, t) { return ( null == t && (t = 1), 0 == or.readUI8(e) ? null : (e.position--, new _r(e, t)) ); }), (or.writeBUTTONRECORD = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readBUTTONCONDACTION = function (e) { return new hr(e); }), (or.writeBUTTONCONDACTION = function (e, t) { t.publish(e); }), (or.readFILTER = function (e) { var t = or.readUI8(e), s = ya.create(t); return s.parse(e), s; }), (or.writeFILTER = function (e, t) { or.writeUI8(e, t.id), t.publish(e); }), (or.readTEXTRECORD = function (e, t, s, n, i) { return ( null == i && (i = 1), 0 == or.readUI8(e) ? null : (e.position--, new Eo(e, t, s, n, i)) ); }), (or.writeTEXTRECORD = function (e, t, s, n, i, r) { null == r && (r = 1), t.publish(e, s, n, i, r); }), (or.readGLYPHENTRY = function (e, t, s) { return new Tr(e, t, s); }), (or.writeGLYPHENTRY = function (e, t, s, n) { t.publish(e, s, n); }), (or.readZONERECORD = function (e) { return new Ro(e); }), (or.writeZONERECORD = function (e, t) { t.publish(e); }), (or.readZONEDATA = function (e) { return new Po(e); }), (or.writeZONEDATA = function (e, t) { t.publish(e); }), (or.readKERNINGRECORD = function (e, t) { return new xr(e, t); }), (or.writeKERNINGRECORD = function (e, t, s) { t.publish(e, s); }), (or.readGRADIENT = function (e, t) { return null == t && (t = 1), new wr(e, t); }), (or.writeGRADIENT = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readFOCALGRADIENT = function (e, t) { return null == t && (t = 1), new vr(e, t); }), (or.writeFOCALGRADIENT = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readGRADIENTRECORD = function (e, t) { return null == t && (t = 1), new Sr(e, t); }), (or.writeGRADIENTRECORD = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readMORPHFILLSTYLE = function (e, t) { return null == t && (t = 1), new Ar(e, t); }), (or.writeMORPHFILLSTYLE = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readMORPHLINESTYLE = function (e, t) { return null == t && (t = 1), new Dr(e, t); }), (or.writeMORPHLINESTYLE = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readMORPHLINESTYLE2 = function (e, t) { return null == t && (t = 1), new kr(e, t); }), (or.writeMORPHLINESTYLE2 = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readMORPHGRADIENT = function (e, t) { return null == t && (t = 1), new Ir(e, t); }), (or.writeMORPHGRADIENT = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readMORPHFOCALGRADIENT = function (e, t) { return null == t && (t = 1), new Cr(e, t); }), (or.writeMORPHFOCALGRADIENT = function (e, t, s) { null == s && (s = 1), t.publish(e, s); }), (or.readMORPHGRADIENTRECORD = function (e) { return new Br(e); }), (or.writeMORPHGRADIENTRECORD = function (e, t) { t.publish(e); }), (or.readACTIONRECORD = function (e) { var t = e.position, s = null, n = or.readUI8(e); if (0 != n) { var i = 128 <= n ? or.readUI16(e) : 0; (s = va.create(n, i, t)).parse(e); } return s; }), (or.writeACTIONRECORD = function (e, t) { t.publish(e); }), (or.readREGISTERPARAM = function (e) { return new Nr(e); }), (or.writeREGISTERPARAM = function (e, t) { t.publish(e); }), (or.readSYMBOL = function (e) { return new Kr(e); }), (or.writeSYMBOL = function (e, t) { t.publish(e); }), (or.readSOUNDINFO = function (e) { return new jr(e); }), (or.writeSOUNDINFO = function (e, t) { t.publish(e); }), (or.readSOUNDENVELOPE = function (e) { return new Wr(e); }), (or.writeSOUNDENVELOPE = function (e, t) { t.publish(e); }), (or.readCLIPACTIONS = function (e, t) { return new dr(e, t); }), (or.writeCLIPACTIONS = function (e, t, s) { t.publish(e, s); }), (or.readCLIPACTIONRECORD = function (e, t) { var s = e.position; return 0 == (6 <= t ? or.readUI32(e) : or.readUI16(e)) ? null : ((e.position = s), new ur(e, t)); }), (or.writeCLIPACTIONRECORD = function (e, t, s) { t.publish(e, s); }), (or.readCLIPEVENTFLAGS = function (e, t) { return new cr(e, t); }), (or.writeCLIPEVENTFLAGS = function (e, t, s) { t.publish(e, s); }), (or.readTagHeader = function (e) { var t = e.position, s = or.readUI16(e), n = 63 & s; return 63 == n && (n = or.readSI32(e)), new Mr(s >> 6, n, e.position - t); }), (or.writeTagHeader = function (e, t, s, n) { null == n && (n = !1), s < 63 && !n ? or.writeUI16(e, (t << 6) | s) : (or.writeUI16(e, (t << 6) | 63), or.writeSI32(e, s)); }), (or.swfUncompress = function (e, t, s) { null == s && (s = 0); var n = e.position, i = new Uf(0); if (2 == t) e.readBytes(i), (i.position = 0), i.uncompress(); else { if (1 != t) throw new Mp(new _v("Unknown compression method: " + Ky.toString(t))); for (var r = 0; r < 5; ) { var o = r++; i.writeByte(e.b[o + 12]); } (i.__endian = 1), i.writeUnsignedInt(s - 8), i.writeUnsignedInt(0), (e.position = 17), e.readBytes(i, 13), (i.position = 0), i.uncompress(t); } or.set_length(e, (e.position = n)), e.writeBytes(i), (e.position = n); }), (or.swfCompress = function (e, t) { var s = e.position, n = new Uf(0); if (2 != t) throw new Mp( new _v( 1 == t ? "Can't publish LZMA compressed SWFs" : "Unknown compression method: " + Ky.toString(t) ) ); e.readBytes(n), (n.position = 0), n.compress(), or.set_length(e, (e.position = s)), e.writeBytes(n); }), (or.readRawTag = function (e) { return new Fr(e); }), (or.skipBytes = function (e, t) { e.position += t; }), (or.dump = function (e, t, s) { null == s && (s = 0); for ( var n = e.position, i = (e.position = 0 | Math.min(Math.max(n + s, 0), jy.get_length(e) - t)), r = "[Dump] total length: " + jy.get_length(e) + ", original position: " + n, o = 0, a = t; o < a; ) { var l = o++, h = Ri.hex(e.readUnsignedByte()); if ((1 == h.length && (h = "0" + h), l % 16 == 0)) { var _ = Ri.hex(i + l); r += "\r" + (_ = he.substr("00000000", 0, 8 - _.length) + _) + ": "; } r += h += " "; } (e.position = n), Zf.trace(r, { fileName: "SWFData.hx", lineNumber: 959, className: "format.swf._SWFData.SWFData_Impl_", methodName: "dump", }); }), (or.get_length = function (e) { return e.__length; }), (or.set_length = function (e, t) { return 0 < t && e.__resize(t), (e.__length = t); }); var ar = function () { this.dispatcher = new g(this); }; ((s["format.swf.events.SWFEventDispatcher"] = ar).__name__ = [ "format", "swf", "events", "SWFEventDispatcher", ]), (ar.__interfaces__ = [i]), (ar.prototype = { addEventListener: function (e, t, s, n, i) { null == i && (i = !1), null == n && (n = 0), null == s && (s = !1), this.dispatcher.addEventListener(e, t, s, n, i); }, removeEventListener: function (e, t, s) { null == s && (s = !1), this.dispatcher.removeEventListener(e, t, s); }, dispatchEvent: function (e) { return this.dispatcher.dispatchEvent(e); }, hasEventListener: function (e) { return this.dispatcher.hasEventListener(e); }, willTrigger: function (e) { return this.dispatcher.willTrigger(e); }, __class__: ar, }); var lr = function () { (this._tmpTagIterator = 0), ar.call(this), (this.backgroundColor = 16777215), (this.tags = []), (this.tagsRaw = []), (this.dictionary = new lp()), (this.scenes = []), (this.frames = []), (this.layers = []), (this.tagFactory = new Ta()), ((this.rootTimelineContainer = this).enterFrameProvider = new o()); }; ((s["format.swf.SWFTimelineContainer"] = lr).__name__ = [ "format", "swf", "SWFTimelineContainer", ]), (lr.__super__ = ar), (lr.prototype = n(ar.prototype, { getCharacter: function (e) { var t = this.rootTimelineContainer.dictionary.h[e]; return 0 <= t && t < this.rootTimelineContainer.tags.length ? this.rootTimelineContainer.tags[t] : null; }, get_scalingGrids: function () { return this.rootTimelineContainer._scalingGrids; }, getScalingGrid: function (e) { return this.get_scalingGrids().h.hasOwnProperty(e) ? this.rootTimelineContainer.tags[this.get_scalingGrids().h[e]] : null; }, parseTags: function (e, t) { var s; for (this.parseTagsInit(e, t); ; ) { if (!(null != (s = this.parseTag(e)) && 0 != s.type)) break; } this.parseTagsFinalize(); }, parseTagsAsync: function (e, t) { this.parseTagsInit(e, t), this.enterFrameProvider.addEventListener( "enterFrame", CT(this, this.parseTagsAsyncHandler) ); }, parseTagsAsyncHandler: function (e) { this.enterFrameProvider.removeEventListener( "enterFrame", CT(this, this.parseTagsAsyncHandler) ), this.dispatchEvent( new da( "progress", this._tmpData.position, or.get_length(this._tmpData), !1, !0 ) ) && this.parseTagsAsyncInternal(); }, parseTagsAsyncInternal: function () { for (var e, t = Date.now(); ; ) { if (!(null != (e = this.parseTag(this._tmpData, !0)) && 0 != e.type)) break; var s = Date.now(); if (lr.TIMEOUT < s - t) return void this.enterFrameProvider.addEventListener( "enterFrame", CT(this, this.parseTagsAsyncHandler) ); } this.parseTagsFinalize(), this.eof ? this.dispatchEvent(new ua("error", "eof")) : (this.dispatchEvent( new da( "progress", this._tmpData.position, or.get_length(this._tmpData) ) ), this.dispatchEvent( new da( "complete", this._tmpData.position, or.get_length(this._tmpData) ) )); }, parseTagsInit: function (e, t) { (this.tags = []), (this.frames = []), (this.layers = []), (this.dictionary = new lp()), (this.currentFrame = new Cf()), (this.frameLabels = new lp()), (this.frameIndexes = new up()), (this.hasSoundStream = !1), (this._tmpData = e), (this._tmpVersion = t); }, parseTag: function (e, t) { null == t && (t = !1); var s = e.position; if (((this.eof = s >= or.get_length(e)), this.eof)) return ( Zf.trace("WARNING: end of file encountered, no end tag.", { fileName: "SWFTimelineContainer.hx", lineNumber: 191, className: "format.swf.SWFTimelineContainer", methodName: "parseTag", }), null ); var n = or.readRawTag(e), i = n.header, r = this.tagFactory.create(i.type); try { if (Lp.__instanceof(r, lr)) { var o = r; (o.tagFactory = this.tagFactory), (o.rootTimelineContainer = this); } r.parse(e, i.contentLength, this._tmpVersion, t); } catch (e) { throw ( ((jf.lastException = e) instanceof Mp && (e = e.val), Lp.__instanceof(e, _v) ? (Zf.trace( "WARNING: parse error: " + e.message + ", Tag: " + r.name + ", Index: " + this.tags.length, { fileName: "SWFTimelineContainer.hx", lineNumber: 213, className: "format.swf.SWFTimelineContainer", methodName: "parseTag", } ), new Mp(e)) : e) ); } this.tags.push(r), this.tagsRaw.push(n), this.processTag(r); var a = s + i.get_tagLength(); if (e.position != a) { var l = this.tags.length - 1, h = e.position - (s + i.get_tagLength()), _ = h < 0 ? "underflow" : "overflow", u = { pos: s, bytes: h < 0 ? -h : h }; this.rootTimelineContainer == this ? Zf.trace( "WARNING: excess bytes: " + h + ", Tag: " + r.name + ", Index: " + l, { fileName: "SWFTimelineContainer.hx", lineNumber: 233, className: "format.swf.SWFTimelineContainer", methodName: "parseTag", } ) : ((u.indexRoot = this.rootTimelineContainer.tags.length), Zf.trace( "WARNING: excess bytes: " + h + ", Tag: " + r.name + ", Index: " + l + ", IndexRoot: " + Ue.string(u.indexRoot), { fileName: "SWFTimelineContainer.hx", lineNumber: 239, className: "format.swf.SWFTimelineContainer", methodName: "parseTag", } )); var d = new ca(_, l, u, !1, !0); this.dispatchEvent(d), (e.position = s + i.get_tagLength()); } return r; }, parseTagsFinalize: function () { null != this.soundStream && 0 == jy.get_length(this.soundStream.data) && (this.soundStream = null), lr.AUTOBUILD_LAYERS && this.buildLayers(); }, publishTags: function (e, t) { for (var s, n, i = 0, r = this.tags.length; i < r; ) { var o = i++; (s = this.tags[o]), (n = o < this.tagsRaw.length ? this.tagsRaw[o] : null), this.publishTag(e, s, n, t); } }, publishTagsAsync: function (e, t) { (this._tmpData = e), (this._tmpVersion = t), (this._tmpTagIterator = 0), this.enterFrameProvider.addEventListener( "enterFrame", CT(this, this.publishTagsAsyncHandler) ); }, publishTagsAsyncHandler: function (e) { this.enterFrameProvider.removeEventListener( "enterFrame", CT(this, this.publishTagsAsyncHandler) ), this.dispatchEvent( new da("progress", this._tmpTagIterator, this.tags.length) ) && this.publishTagsAsyncInternal(); }, publishTagsAsyncInternal: function () { for (var e, t, s = Date.now(); ; ) { (e = this._tmpTagIterator < this.tags.length ? this.tags[this._tmpTagIterator] : null), (t = this._tmpTagIterator < this.tagsRaw.length ? this.tagsRaw[this._tmpTagIterator] : null), this.publishTag(this._tmpData, e, t, this._tmpVersion), this._tmpTagIterator++; var n = Date.now(); if (lr.TIMEOUT < n - s) return void this.enterFrameProvider.addEventListener( "enterFrame", CT(this, this.publishTagsAsyncHandler) ); if (0 == e.type) break; } this.dispatchEvent( new da("progress", this._tmpTagIterator, this.tags.length) ), this.dispatchEvent( new da("complete", this._tmpTagIterator, this.tags.length) ); }, publishTag: function (t, s, n, e) { try { s.publish(t, e); } catch (e) { if ( ((jf.lastException = e) instanceof Mp && (e = e.val), !Lp.__instanceof(e, _v)) ) throw e; Zf.trace( "WARNING: publish error: " + e.message + " (tag: " + s.name + ")", { fileName: "SWFTimelineContainer.hx", lineNumber: 311, className: "format.swf.SWFTimelineContainer", methodName: "publishTag", } ), null != n ? n.publish(t) : Zf.trace("FATAL: publish error: No raw tag fallback", { fileName: "SWFTimelineContainer.hx", lineNumber: 315, className: "format.swf.SWFTimelineContainer", methodName: "publishTag", }); } }, processTag: function (e) { var t = this.tags.length - 1; if (Lp.__instanceof(e, tl)) this.processDefinitionTag(e, t); else if (Lp.__instanceof(e, sl)) this.processDisplayListTag(e, t); else switch (Lp.__cast(e.type, BT)) { case 8: this.processJPEGTablesTag(e, t); break; case 9: this.processBackgroundColorTag(e, t); break; case 15: this.processStartSound(e, t); break; case 18: case 19: case 45: lr.EXTRACT_SOUND_STREAM && this.processSoundStreamTag(e, t); break; case 78: this.processScalingGridTag(e, t); break; case 43: case 86: this.processFrameLabelTag(e, t); } }, processStartSound: function (e, t) { this.currentFrame.startSound = e; }, processDefinitionTag: function (e, t) { if (17 == Lp.__cast(e.type, BT)) { var s = this.dictionary.h[e.characterId], n = this.tags[s]; return ( Lp.__instanceof(n, fl) || Zf.trace( "Unable to find button associated with DefineButtonSound", { fileName: "SWFTimelineContainer.hx", lineNumber: 368, className: "format.swf.SWFTimelineContainer", methodName: "processDefinitionTag", } ), void (Lp.__cast(n, fl).defineSound = Lp.__cast(e, bl)) ); } 0 < e.characterId && ((this.dictionary.h[e.characterId] = t), this.currentFrame.characters.push(e.characterId)); }, processDisplayListTag: function (e, t) { switch (Lp.__cast(e.type, BT)) { case 1: if ( ((this.currentFrame.tagIndexEnd = t), null == this.currentFrame.label && this.frameLabels.exists(this.currentFrame.frameNumber)) ) { var s = this.frameLabels.get(this.currentFrame.frameNumber); this.currentFrame.label = s; } this.frames.push(this.currentFrame), (this.currentFrame = this.currentFrame.clone()), (this.currentFrame.frameNumber = this.frames.length), (this.currentFrame.tagIndexStart = t + 1); break; case 4: case 26: case 70: this.currentFrame.placeObject(t, e); break; case 5: case 28: this.currentFrame.removeObject(e); } }, processFrameLabelTag: function (e, t) { switch (Lp.__cast(e.type, BT)) { case 43: var s = e; (this.currentFrame.label = s.frameName), this.frameLabels.set(this.currentFrame.frameNumber, s.frameName), this.frameIndexes.set( s.frameName, this.currentFrame.frameNumber + 1 ); break; case 86: for (var n = e, i = 0, r = n.frameLabels.length; i < r; ) { var o = i++, a = n.frameLabels[o]; this.frameLabels.set(a.frameNumber, a.name), this.frameIndexes.set(a.name, a.frameNumber + 1); } for (var l = 0, h = n.scenes.length; l < h; ) { var _ = l++, u = n.scenes[_]; this.scenes.push(new Ff(u.offset, u.name)); } } }, processSoundStreamTag: function (e, t) { switch (Lp.__cast(e.type, BT)) { case 18: case 45: var s = e; (this.soundStream = new Mf()), (this.soundStream.compression = s.streamSoundCompression), (this.soundStream.rate = s.streamSoundRate), (this.soundStream.size = s.streamSoundSize), (this.soundStream.type = s.streamSoundType), (this.soundStream.numFrames = 0), (this.soundStream.numSamples = 0); break; case 19: if (null != this.soundStream) { this.hasSoundStream || ((this.hasSoundStream = !0), (this.soundStream.startFrame = this.currentFrame.frameNumber)); var n = e.soundData; switch ( ((n.__endian = 1), (n.position = 0), this.soundStream.compression) ) { case 1: break; case 2: var i = n.readUnsignedShort(); n.readShort(), 0 < i && ((this.soundStream.numSamples += i), this.soundStream.data.writeBytes(n, 4)); } this.soundStream.numFrames++; } } }, processBackgroundColorTag: function (e, t) { this.backgroundColor = e.color; }, processJPEGTablesTag: function (e, t) { this.jpegTablesTag = e; }, processScalingGridTag: function (e, t) { this.get_scalingGrids().h[e.characterId] = t; }, buildLayers: function () { for ( var e, t = new lp(), s = [], n = 0, i = this.frames.length; n < i; ) for ( var r = n++, o = this.frames[r], a = o.objects.keys(); a.hasNext(); ) { var l = a.next(); e = 0 | l; for (var h = !1, _ = 0; _ < s.length; ) { var u = s[_]; ++_, u == e && (h = !0); break; } h ? t.h[l].push(o.frameNumber) : ((t.h[l] = [o.frameNumber]), s.push(e)); } s.sort(CT(this, this.sortNumeric)); for (var d = 0, c = s.length; d < c; ) { var f = d++, p = new Df(s[f], this.frames.length), b = t.h[s[f]], m = b.length; if (0 < m) { for ( var g = 0, w = 0 | or.MAX_FLOAT_VALUE, v = 0 | or.MAX_FLOAT_VALUE, y = 0, T = m; y < T; ) { var S = b[y++], x = this.frames[S].objects.h[p.depth]; x.isKeyframe ? (p.appendStrip(g, w, v), (w = S), (g = Lp.__instanceof(this.getCharacter(x.characterId), Pl) ? 4 : 2)) : 2 == g && 0 < x.lastModifiedAtIndex && (g = 3), (v = S); } p.appendStrip(g, w, v); } this.layers.push(p); } for (var E = 0, P = this.frames.length; E < P; ) for ( var R = E++, A = this.frames[R].objects, I = A.keys(); I.hasNext(); ) for (var C = I.next(), B = 0, D = s.length; B < D; ) { var k = B++; C == s[k] && (A.h[C].layer = k); } }, sortNumeric: function (e, t) { return e - t; }, toString: function (e) { null == e && (e = 0); var t = ""; if (0 < this.tags.length) { t += "\n" + Yf.repeat(e + 2) + "Tags:"; for (var s = 0, n = this.tags.length; s < n; ) { var i = s++; t += "\n" + this.tags[i].toString(e + 4); } } if (0 < this.scenes.length) { t += "\n" + Yf.repeat(e + 2) + "Scenes:"; for (var r = 0, o = this.scenes.length; r < o; ) { var a = r++; t += "\n" + this.scenes[a].toString(e + 4); } } if (0 < this.frames.length) { t += "\n" + Yf.repeat(e + 2) + "Frames:"; for (var l = 0, h = this.frames.length; l < h; ) { var _ = l++; t += "\n" + this.frames[_].toString(e + 4); } } if (0 < this.layers.length) { t += "\n" + Yf.repeat(e + 2) + "Layers:"; for (var u = 0, d = this.layers.length; u < d; ) { var c = u++; t += "\n" + Yf.repeat(e + 4) + "[" + c + "] " + this.layers[c].toString(e + 4); } } return t; }, __class__: lr, __properties__: { get_scalingGrids: "get_scalingGrids" }, })); var hr = function (e) { var t = new ha(), s = new Array(0); (t.data = s), (t.length = 0), (t.fixed = !1), (this.actions = t), null != e && this.parse(e); }; ((s["format.swf.data.SWFButtonCondAction"] = hr).__name__ = [ "format", "swf", "data", "SWFButtonCondAction", ]), (hr.prototype = { parse: function (e) { var t, s = (or.readUI8(e) << 8) | or.readUI8(e); for ( this.condIdleToOverDown = 0 != (32768 & s), this.condOutDownToIdle = 0 != (16384 & s), this.condOutDownToOverDown = 0 != (8192 & s), this.condOverDownToOutDown = 0 != (4096 & s), this.condOverDownToOverUp = 0 != (2048 & s), this.condOverUpToOverDown = 0 != (1024 & s), this.condOverUpToIdle = 0 != (512 & s), this.condIdleToOverUp = 0 != (256 & s), this.condOverDownToIdle = 0 != (1 & s), this.condKeyPress = (255 & s) >> 1; null != (t = or.readACTIONRECORD(e)); ) { var n = this.actions; if (!n.fixed) { if ((n.length++, n.data.length < n.length)) { var i = n.data.length + 10, r = new Array(i); dp.blit(n.data, 0, r, 0, n.data.length), (n.data = r); } n.data[n.length - 1] = t; } } Io.resolveOffsets(this.actions); }, publish: function (e) { var t = 0; this.condIdleToOverDown && (t |= 128), this.condOutDownToIdle && (t |= 64), this.condOutDownToOverDown && (t |= 32), this.condOverDownToOutDown && (t |= 16), this.condOverDownToOverUp && (t |= 8), this.condOverUpToOverDown && (t |= 4), this.condOverUpToIdle && (t |= 2), this.condIdleToOverUp && (t |= 1), or.writeUI8(e, t); var s = this.condKeyPress << 1; this.condOverDownToIdle && (s |= 1), or.writeUI8(e, s); for (var n = 0, i = this.actions.length; n < i; ) { var r = n++; or.writeACTIONRECORD(e, this.actions.data[r]); } or.writeUI8(e, 0); }, clone: function () { var e = new hr(); (e.condActionSize = this.condActionSize), (e.condIdleToOverDown = this.condIdleToOverDown), (e.condOutDownToIdle = this.condOutDownToIdle), (e.condOutDownToOverDown = this.condOutDownToOverDown), (e.condOverDownToOutDown = this.condOverDownToOutDown), (e.condOverDownToOverUp = this.condOverDownToOverUp), (e.condOverUpToOverDown = this.condOverUpToOverDown), (e.condOverUpToIdle = this.condOverUpToIdle), (e.condIdleToOverUp = this.condIdleToOverUp), (e.condOverDownToIdle = this.condOverDownToIdle), (e.condKeyPress = this.condKeyPress); for (var t = 0, s = this.actions.length; t < s; ) { var n = t++, i = e.actions, r = this.actions.data[n].clone(); if (!i.fixed) { if ((i.length++, i.data.length < i.length)) { var o = i.data.length + 10, a = new Array(o); dp.blit(i.data, 0, a, 0, i.data.length), (i.data = a); } i.data[i.length - 1] = r; } } return e; }, toString: function (e) { null == e && (e = 0); var t = []; this.condIdleToOverDown && t.push("idleToOverDown"), this.condOutDownToIdle && t.push("outDownToIdle"), this.condOutDownToOverDown && t.push("outDownToOverDown"), this.condOverDownToOutDown && t.push("overDownToOutDown"), this.condOverDownToOverUp && t.push("overDownToOverUp"), this.condOverUpToOverDown && t.push("overUpToOverDown"), this.condOverUpToIdle && t.push("overUpToIdle"), this.condIdleToOverUp && t.push("idleToOverUp"), this.condOverDownToIdle && t.push("overDownToIdle"); for ( var s = "Cond: (" + t.join(",") + "), KeyPress: " + this.condKeyPress, n = 0, i = this.actions.length; n < i; ) { var r = n++; s += "\n" + Yf.repeat(e + 2) + "[" + r + "] " + this.actions.data[r].toString(e + 2); } return s; }, __class__: hr, }); var _r = function (e, t) { null == t && (t = 1), (this.filterList = []), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFButtonRecord"] = _r).__name__ = [ "format", "swf", "data", "SWFButtonRecord", ]), (_r.prototype = { parse: function (e, t) { null == t && (t = 1); var s = or.readUI8(e); if ( ((this.stateHitTest = 0 != (8 & s)), (this.stateDown = 0 != (4 & s)), (this.stateOver = 0 != (2 & s)), (this.stateUp = 0 != (1 & s)), (this.characterId = or.readUI16(e)), (this.placeDepth = or.readUI16(e)), (this.placeMatrix = or.readMATRIX(e)), 2 <= t) ) { if ( ((this.colorTransform = or.readCXFORMWITHALPHA(e)), (this.hasFilterList = 0 != (16 & s)), this.hasFilterList) ) for (var n = 0, i = or.readUI8(e); n < i; ) { n++; this.filterList.push(or.readFILTER(e)); } (this.hasBlendMode = 0 != (32 & s)), this.hasBlendMode && (this.blendMode = or.readUI8(e)); } }, publish: function (e, t) { null == t && (t = 1); var s = 0; if ( (2 <= t && this.hasBlendMode && (s |= 32), 2 <= t && this.hasFilterList && (s |= 16), this.stateHitTest && (s |= 8), this.stateDown && (s |= 4), this.stateOver && (s |= 2), this.stateUp && (s |= 1), or.writeUI8(e, s), or.writeUI16(e, this.characterId), or.writeUI16(e, this.placeDepth), or.writeMATRIX(e, this.placeMatrix), 2 <= t) ) { if ( (or.writeCXFORMWITHALPHA(e, this.colorTransform), this.hasFilterList) ) { var n = this.filterList.length; or.writeUI8(e, n); for (var i = 0, r = n; i < r; ) { var o = i++; or.writeFILTER(e, this.filterList[o]); } } this.hasBlendMode && or.writeUI8(e, this.blendMode); } }, clone: function () { var e = new _r(); (e.hasBlendMode = this.hasBlendMode), (e.hasFilterList = this.hasFilterList), (e.stateHitTest = this.stateHitTest), (e.stateDown = this.stateDown), (e.stateOver = this.stateOver), (e.stateUp = this.stateUp), (e.characterId = this.characterId), (e.placeDepth = this.placeDepth), (e.placeMatrix = this.placeMatrix.clone()), null != this.colorTransform && (e.colorTransform = Lp.__cast(this.colorTransform.clone(), pr)); for (var t = 0, s = this.filterList.length; t < s; ) { var n = t++; e.filterList.push(this.filterList[n].clone()); } return (e.blendMode = this.blendMode), e; }, toString: function (e) { null == e && (e = 0); var t = "Depth: " + this.placeDepth + ", CharacterID: " + this.characterId + ", States: ", s = []; if ( (this.stateUp && s.push("up"), this.stateOver && s.push("over"), this.stateDown && s.push("down"), this.stateHitTest && s.push("hit"), (t += s.join(",")), this.hasBlendMode && (t += ", BlendMode: " + Mo.toString(this.blendMode)), null == this.placeMatrix || this.placeMatrix.isIdentity() || (t += "\n" + Yf.repeat(e + 2) + "Matrix: " + Ue.string(this.placeMatrix)), null == this.colorTransform || this.colorTransform.isIdentity() || (t += "\n" + Yf.repeat(e + 2) + "ColorTransform: " + Ue.string(this.colorTransform)), this.hasFilterList) ) { t += "\n" + Yf.repeat(e + 2) + "Filters:"; for (var n = 0, i = this.filterList.length; n < i; ) { var r = n++; t += "\n" + Yf.repeat(e + 4) + "[" + r + "] " + this.filterList[r].toString(e + 4); } } return t; }, __class__: _r, }); var ur = function (e, t) { null == t && (t = 0); var s = new ha(), n = new Array(0); (s.data = n), (s.length = 0), (s.fixed = !1), (this.actions = s), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFClipActionRecord"] = ur).__name__ = [ "format", "swf", "data", "SWFClipActionRecord", ]), (ur.prototype = { parse: function (e, t) { this.eventFlags = or.readCLIPEVENTFLAGS(e, t); var s, n = or.readUI32(e), i = e.position; for ( this.eventFlags.keyPressEvent && (this.keyCode = or.readUI8(e)); null != (s = or.readACTIONRECORD(e)); ) { var r = this.actions; if (!r.fixed) { if ((r.length++, r.data.length < r.length)) { var o = r.data.length + 10, a = new Array(o); dp.blit(r.data, 0, a, 0, r.data.length), (r.data = a); } r.data[r.length - 1] = s; } } Io.resolveOffsets(this.actions), (e.position = i + n); }, publish: function (e, t) { or.writeCLIPEVENTFLAGS(e, this.eventFlags, t); var s = or._new(); this.eventFlags.keyPressEvent && or.writeUI8(s, this.keyCode); for (var n = 0, i = this.actions.length; n < i; ) { var r = n++; or.writeACTIONRECORD(s, this.actions.data[r]); } or.writeUI8(s, 0), or.writeUI32(e, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = "ClipActionRecords (" + this.eventFlags.toString() + "):"; 0 < this.keyCode && (t += ", KeyCode: " + this.keyCode), (t += ":"); for (var s = 0, n = this.actions.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 2) + "[" + i + "] " + this.actions.data[i].toString(e + 2); } return t; }, __class__: ur, }); var dr = function (e, t) { null == t && (t = 0), (this.records = []), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFClipActions"] = dr).__name__ = [ "format", "swf", "data", "SWFClipActions", ]), (dr.prototype = { parse: function (e, t) { var s; for ( or.readUI16(e), this.eventFlags = or.readCLIPEVENTFLAGS(e, t); null != (s = or.readCLIPACTIONRECORD(e, t)); ) this.records.push(s); }, publish: function (e, t) { or.writeUI16(e, 0), or.writeCLIPEVENTFLAGS(e, this.eventFlags, t); for (var s = 0, n = this.records.length; s < n; ) { var i = s++; or.writeCLIPACTIONRECORD(e, this.records[i], t); } 6 <= t ? or.writeUI32(e, 0) : or.writeUI16(e, 0); }, toString: function (e) { null == e && (e = 0); for ( var t = "ClipActions (" + this.eventFlags.toString() + "):", s = 0, n = this.records.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 2) + "[" + i + "] " + this.records[i].toString(e + 2); } return t; }, __class__: dr, }); var cr = function (e, t) { null == t && (t = 0), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFClipEventFlags"] = cr).__name__ = [ "format", "swf", "data", "SWFClipEventFlags", ]), (cr.prototype = { parse: function (e, t) { var s = or.readUI8(e); (this.keyUpEvent = 0 != (128 & s)), (this.keyDownEvent = 0 != (64 & s)), (this.mouseUpEvent = 0 != (32 & s)), (this.mouseDownEvent = 0 != (16 & s)), (this.mouseMoveEvent = 0 != (8 & s)), (this.unloadEvent = 0 != (4 & s)), (this.enterFrameEvent = 0 != (2 & s)), (this.loadEvent = 0 != (1 & s)); var n = or.readUI8(e); if ( ((this.dragOverEvent = 0 != (128 & n)), (this.rollOutEvent = 0 != (64 & n)), (this.rollOverEvent = 0 != (32 & n)), (this.releaseOutsideEvent = 0 != (16 & n)), (this.releaseEvent = 0 != (8 & n)), (this.pressEvent = 0 != (4 & n)), (this.initializeEvent = 0 != (2 & n)), (this.dataEvent = 0 != (1 & n)), 6 <= t) ) { var i = or.readUI8(e); (this.constructEvent = 0 != (4 & i)), (this.keyPressEvent = 0 != (2 & i)), (this.dragOutEvent = 0 != (1 & i)), or.readUI8(e); } }, publish: function (e, t) { var s = 0; this.keyUpEvent && (s |= 128), this.keyDownEvent && (s |= 64), this.mouseUpEvent && (s |= 32), this.mouseDownEvent && (s |= 16), this.mouseMoveEvent && (s |= 8), this.unloadEvent && (s |= 4), this.enterFrameEvent && (s |= 2), this.loadEvent && (s |= 1), or.writeUI8(e, s); var n = 0; if ( (this.dragOverEvent && (n |= 128), this.rollOutEvent && (n |= 64), this.rollOverEvent && (n |= 32), this.releaseOutsideEvent && (n |= 16), this.releaseEvent && (n |= 8), this.pressEvent && (n |= 4), this.initializeEvent && (n |= 2), this.dataEvent && (n |= 1), or.writeUI8(e, n), 6 <= t) ) { var i = 0; this.constructEvent && (i |= 4), this.keyPressEvent && (i |= 2), this.dragOutEvent && (i |= 1), or.writeUI8(e, i), or.writeUI8(e, 0); } }, toString: function () { var e = []; return ( this.keyUpEvent && e.push("keyup"), this.keyDownEvent && e.push("keydown"), this.mouseUpEvent && e.push("mouseup"), this.mouseDownEvent && e.push("mousedown"), this.mouseMoveEvent && e.push("mousemove"), this.unloadEvent && e.push("unload"), this.enterFrameEvent && e.push("enterframe"), this.loadEvent && e.push("load"), this.dragOverEvent && e.push("dragover"), this.rollOutEvent && e.push("rollout"), this.rollOverEvent && e.push("rollover"), this.releaseOutsideEvent && e.push("releaseoutside"), this.releaseEvent && e.push("release"), this.pressEvent && e.push("press"), this.initializeEvent && e.push("initialize"), this.dataEvent && e.push("data"), this.constructEvent && e.push("construct"), this.keyPressEvent && e.push("keypress"), this.dragOutEvent && e.push("dragout"), e.join(",") ); }, __class__: cr, }); var fr = function (e) { (this.aAdd = 0), (this.aMult = 256), (this.bAdd = 0), (this.gAdd = 0), (this.rAdd = 0), (this.bMult = 256), (this.gMult = 256), (this.rMult = 256), null != e && this.parse(e); }; ((s["format.swf.data.SWFColorTransform"] = fr).__name__ = [ "format", "swf", "data", "SWFColorTransform", ]), (fr.prototype = { get_colorTransform: function () { return new jm( this.rMult / 256, this.gMult / 256, this.bMult / 256, this.aMult / 256, this.rAdd, this.gAdd, this.bAdd, this.aAdd ); }, parse: function (e) { e.resetBitsPending(), (this.hasAddTerms = 1 == or.readUB(e, 1)), (this.hasMultTerms = 1 == or.readUB(e, 1)); var t = or.readUB(e, 4); (this.rMult = 256), (this.gMult = 256), (this.bMult = 256), this.hasMultTerms && ((this.rMult = or.readSB(e, t)), (this.gMult = or.readSB(e, t)), (this.bMult = or.readSB(e, t))), (this.rAdd = 0), (this.gAdd = 0), (this.bAdd = 0), this.hasAddTerms && ((this.rAdd = or.readSB(e, t)), (this.gAdd = or.readSB(e, t)), (this.bAdd = or.readSB(e, t))); }, publish: function (e) { e.resetBitsPending(), or.writeUB(e, 1, this.hasAddTerms ? 1 : 0), or.writeUB(e, 1, this.hasMultTerms ? 1 : 0); var t = []; this.hasMultTerms && (t.push(this.rMult), t.push(this.gMult), t.push(this.bMult)), this.hasAddTerms && (t.push(this.rAdd), t.push(this.gAdd), t.push(this.bAdd)); var s = e.calculateMaxBits(!0, t); or.writeUB(e, 4, s), this.hasMultTerms && (or.writeSB(e, s, this.rMult), or.writeSB(e, s, this.gMult), or.writeSB(e, s, this.bMult)), this.hasAddTerms && (or.writeSB(e, s, this.rAdd), or.writeSB(e, s, this.gAdd), or.writeSB(e, s, this.bAdd)); }, clone: function () { var e = new fr(); return ( (e.hasAddTerms = this.hasAddTerms), (e.hasMultTerms = this.hasMultTerms), (e.rMult = this.rMult), (e.gMult = this.gMult), (e.bMult = this.bMult), (e.rAdd = this.rAdd), (e.gAdd = this.gAdd), (e.bAdd = this.bAdd), e ); }, isIdentity: function () { return ( 1 == this.rMult && 1 == this.gMult && 1 == this.bMult && 1 == this.aMult && 0 == this.rAdd && 0 == this.gAdd && 0 == this.bAdd && 0 == this.aAdd ); }, toString: function () { return ( "(redMultiplier=" + this.rMult + ", greenMultiplier=" + this.gMult + ", blueMultiplier=" + this.bMult + ", alphaMultiplier=" + this.aMult + ", redOffset=" + this.rAdd + ", greenOffset=" + this.gAdd + ", blueOffset=" + this.bAdd + ", alphaOffset=" + this.aAdd + ")" ); }, __class__: fr, __properties__: { get_colorTransform: "get_colorTransform" }, }); var pr = function (e) { fr.call(this, e); }; ((s["format.swf.data.SWFColorTransformWithAlpha"] = pr).__name__ = [ "format", "swf", "data", "SWFColorTransformWithAlpha", ]), (pr.__super__ = fr), (pr.prototype = n(fr.prototype, { parse: function (e) { e.resetBitsPending(), (this.hasAddTerms = 1 == or.readUB(e, 1)), (this.hasMultTerms = 1 == or.readUB(e, 1)); var t = or.readUB(e, 4); (this.rMult = 256), (this.gMult = 256), (this.bMult = 256), (this.aMult = 256), this.hasMultTerms && ((this.rMult = or.readSB(e, t)), (this.gMult = or.readSB(e, t)), (this.bMult = or.readSB(e, t)), (this.aMult = or.readSB(e, t))), (this.rAdd = 0), (this.gAdd = 0), (this.bAdd = 0), (this.aAdd = 0), this.hasAddTerms && ((this.rAdd = or.readSB(e, t)), (this.gAdd = or.readSB(e, t)), (this.bAdd = or.readSB(e, t)), (this.aAdd = or.readSB(e, t))); }, publish: function (e) { e.resetBitsPending(), or.writeUB(e, 1, this.hasAddTerms ? 1 : 0), or.writeUB(e, 1, this.hasMultTerms ? 1 : 0); var t = []; this.hasMultTerms && (t.push(this.rMult), t.push(this.gMult), t.push(this.bMult), t.push(this.aMult)), this.hasAddTerms && (t.push(this.rAdd), t.push(this.gAdd), t.push(this.bAdd), t.push(this.aAdd)); var s = this.hasMultTerms || this.hasAddTerms ? e.calculateMaxBits(!0, t) : 1; or.writeUB(e, 4, s), this.hasMultTerms && (or.writeSB(e, s, this.rMult), or.writeSB(e, s, this.gMult), or.writeSB(e, s, this.bMult), or.writeSB(e, s, this.aMult)), this.hasAddTerms && (or.writeSB(e, s, this.rAdd), or.writeSB(e, s, this.gAdd), or.writeSB(e, s, this.bAdd), or.writeSB(e, s, this.aAdd)); }, clone: function () { var e = new pr(); return ( (e.hasAddTerms = this.hasAddTerms), (e.hasMultTerms = this.hasMultTerms), (e.rMult = this.rMult), (e.gMult = this.gMult), (e.bMult = this.bMult), (e.aMult = this.aMult), (e.rAdd = this.rAdd), (e.gAdd = this.gAdd), (e.bAdd = this.bAdd), (e.aAdd = this.aAdd), e ); }, toString: function () { return ( "(redMultiplier=" + this.rMult + ", greenMultiplier=" + this.gMult + ", blueMultiplier=" + this.bMult + ", alphaMultiplier=" + this.aMult + ", redOffset=" + this.rAdd + ", greenOffset=" + this.gAdd + ", blueOffset=" + this.bAdd + ", alphaOffset=" + this.aAdd + ")" ); }, __class__: pr, })); var br = function () {}; ((s["hxbit.Serializable"] = br).__name__ = ["hxbit", "Serializable"]), (br.prototype = { __class__: br }); var mr = function () { (this.usedClasses = []), null == mr.CLIDS && mr.initClassIDS(); }; ((s["hxbit.Serializer"] = mr).__name__ = ["hxbit", "Serializer"]), (mr.resetCounters = function () { (mr.UID = 0), (mr.SEQ = 0); }), (mr.allocUID = function () { return (mr.SEQ << 24) | ++mr.UID; }), (mr.registerClass = function (e) { if (null != mr.CLIDS) throw new Mp("Too late to register class"); var t = mr.CLASSES.length; return mr.CLASSES.push(e), t; }), (mr.hash = function (e) { for (var t = 1, s = 0, n = e.length; s < n; ) { var i = s++; t = (223 * t + e.charCodeAt(i)) | 0; } return (t = 1 + ((1073741823 & t) % 65423)); }), (mr.initClassIDS = function () { for (var e = mr.CLASSES, t = [], s = 0; s < e.length; ) { e[s]; ++s, t.push([]); } for (var n = t, i = [], r = 0, o = e.length; r < o; ) for (var a = r++, l = e[a]; null != (l = ms.getSuperClass(l)); ) { var h = e.indexOf(l); if (h < 0) break; n[h].push(a), (i[a] = !0); } for (var _ = [], u = 0, d = mr.CLASSES.length; u < d; ) { var c, f = u++; if (0 != n[f].length || i[f]) { for ( var p = ms.getClassName(e[f]), b = 1, m = 0, g = p.length; m < g; ) { var w = m++; b = (223 * b + p.charCodeAt(w)) | 0; } c = b = 1 + ((1073741823 & b) % 65423); } else c = 0; _.push(c); } (mr.CLIDS = _), (mr.CL_BYID = []); for (var v = 0, y = mr.CLIDS.length; v < y; ) { var T = v++, S = mr.CLIDS[T]; if (0 != S) { if (null != mr.CL_BYID[S]) throw new Mp( "Conflicting CLID between " + ms.getClassName(mr.CL_BYID[S]) + " and " + ms.getClassName(e[T]) ); mr.CL_BYID[S] = e[T]; } } }), (mr.isClassFinal = function (e) { return 0 == mr.CLIDS[e]; }), (mr.prototype = { set_remapIds: function (e) { return (this.remapObjs = e ? new hp() : null), e; }, get_remapIds: function () { return null != this.remapObjs; }, remap: function (e) { null == this.remapObjs.h.__keys__[e.__id__] && (this.remapObjs.set(e, e.__uid), (e.__uid = (mr.SEQ << 24) | ++mr.UID)); }, begin: function () { (this.out = new cp()), (this.refs = new lp()); }, end: function () { var e = this.out.getBytes(); return (this.out = null), (this.refs = null), e; }, setInput: function (e, t) { (this.input = e), (this.inPos = t), null == this.refs && (this.refs = new lp()); }, serialize: function (e) { return this.begin(), this.addKnownRef(e), this.out.getBytes(); }, unserialize: function (e, t, s) { return ( null == s && (s = 0), (this.refs = new lp()), this.setInput(e, s), this.getRef(t, t.__clid) ); }, getByte: function () { return this.input.b[this.inPos++]; }, addByte: function (e) { this.out.b.push(e); }, addInt: function (e) { 0 <= e && e < 128 ? this.out.b.push(e) : (this.out.b.push(128), this.out.addInt32(e)); }, addInt32: function (e) { this.out.addInt32(e); }, addInt64: function (e) { this.out.addInt64(e); }, addFloat: function (e) { this.out.addInt32(bp.floatToI32(e)); }, addDouble: function (e) { this.out.addInt64(bp.doubleToI64(e)); }, addBool: function (e) { this.out.b.push(e ? 1 : 0); }, addArray: function (e, t) { if (null != e) { var s = e.length + 1; 0 <= s && s < 128 ? this.out.b.push(s) : (this.out.b.push(128), this.out.addInt32(s)); for (var n = 0; n < e.length; ) { var i = e[n]; ++n, t(i); } } else this.out.b.push(0); }, addVector: function (e, t) { if (null != e) { var s = e.length + 1; 0 <= s && s < 128 ? this.out.b.push(s) : (this.out.b.push(128), this.out.addInt32(s)); for (var n = 0; n < e.length; ) { var i = e[n]; ++n, t(i); } } else this.out.b.push(0); }, getArray: function (e) { var t = this.input.b[this.inPos++]; 128 == t && ((t = this.input.getInt32(this.inPos)), (this.inPos += 4)); var s = t; if (0 == s) return null; for (var n = [], i = 0, r = --s; i < r; ) { n[i++] = e(); } return n; }, getVector: function (e) { var t = this.input.b[this.inPos++]; 128 == t && ((t = this.input.getInt32(this.inPos)), (this.inPos += 4)); var s = t; if (0 == s) return null; --s; for (var n = new Array(s), i = 0, r = s; i < r; ) { n[i++] = e(); } return n; }, addMap: function (e, t, s) { if (null != e) { var n = e, i = de.array({ iterator: function () { return n.keys(); }, }), r = i.length + 1; 0 <= r && r < 128 ? this.out.b.push(r) : (this.out.b.push(128), this.out.addInt32(r)); for (var o = 0; o < i.length; ) { var a = i[o]; ++o, t(a), s(e.get(a)); } } else this.out.b.push(0); }, getBool: function () { return 0 != this.input.b[this.inPos++]; }, getInt: function () { var e = this.input.b[this.inPos++]; return ( 128 == e && ((e = this.input.getInt32(this.inPos)), (this.inPos += 4)), e ); }, skip: function (e) { this.inPos += e; }, getInt32: function () { var e = this.input.getInt32(this.inPos); return (this.inPos += 4), e; }, getInt64: function () { var e = this.input.getInt64(this.inPos); return (this.inPos += 8), e; }, getDouble: function () { var e = this.input.getDouble(this.inPos); return (this.inPos += 8), e; }, getFloat: function () { var e = this.input.getFloat(this.inPos); return (this.inPos += 4), e; }, addString: function (e) { if (null == e) this.out.b.push(0); else { var t = Lf.ofString(e), s = t.length + 1; 0 <= s && s < 128 ? this.out.b.push(s) : (this.out.b.push(128), this.out.addInt32(s)); for (var n = this.out, i = (n.b, t.b), r = 0, o = t.length; r < o; ) { var a = r++; n.b.push(i[a]); } } }, addBytes: function (e) { if (null == e) this.out.b.push(0); else { var t = e.length + 1; 0 <= t && t < 128 ? this.out.b.push(t) : (this.out.b.push(128), this.out.addInt32(t)); for (var s = this.out, n = (s.b, e.b), i = 0, r = e.length; i < r; ) { var o = i++; s.b.push(n[o]); } } }, getString: function () { var e = this.input.b[this.inPos++]; 128 == e && ((e = this.input.getInt32(this.inPos)), (this.inPos += 4)); var t = e; if (0 == t) return null; --t; var s = this.input.getString(this.inPos, t); return (this.inPos += t), s; }, getBytes: function () { var e = this.input.b[this.inPos++]; 128 == e && ((e = this.input.getInt32(this.inPos)), (this.inPos += 4)); var t = e; if (0 == t) return null; --t; var s = this.input.sub(this.inPos, t); return (this.inPos += t), s; }, getDynamic: function () { var e = this.input.b[this.inPos++]; switch (e) { case 0: return null; case 1: return !1; case 2: return !0; case 3: var t = this.input.b[this.inPos++]; return ( 128 == t && ((t = this.input.getInt32(this.inPos)), (this.inPos += 4)), t ); case 4: var s = this.input.getFloat(this.inPos); return (this.inPos += 4), s; case 5: var n = {}, i = 0, r = this.input.b[this.inPos++]; 128 == r && ((r = this.input.getInt32(this.inPos)), (this.inPos += 4)); for (var o = r; i < o; ) { i++; var a = this.input.b[this.inPos++]; 128 == a && ((a = this.input.getInt32(this.inPos)), (this.inPos += 4)); var l, h = a; if (0 == h) l = null; else { --h; var _ = this.input.getString(this.inPos, h); (this.inPos += h), (l = _); } n[l] = this.getDynamic(); } return n; case 6: var u = this.input.b[this.inPos++]; 128 == u && ((u = this.input.getInt32(this.inPos)), (this.inPos += 4)); var d = u; if (0 == d) return null; --d; var c = this.input.getString(this.inPos, d); return (this.inPos += d), c; case 7: var f = [], p = 0, b = this.input.b[this.inPos++]; 128 == b && ((b = this.input.getInt32(this.inPos)), (this.inPos += 4)); for (var m = b; p < m; ) { p++; f.push(this.getDynamic()); } return f; case 8: var g = this.input.b[this.inPos++]; 128 == g && ((g = this.input.getInt32(this.inPos)), (this.inPos += 4)); var w = g; if (0 == w) return null; --w; var v = this.input.sub(this.inPos, w); return (this.inPos += w), v; default: throw new Mp("Invalid dynamic prefix " + e); } }, addDynamic: function (e) { if (null != e) { var t = ms.typeof(e); switch (t[1]) { case 1: this.out.b.push(3); var s = e; 0 <= s && s < 128 ? this.out.b.push(s) : (this.out.b.push(128), this.out.addInt32(s)); break; case 2: this.out.b.push(4), this.out.addInt32(bp.floatToI32(e)); break; case 3: this.out.b.push(e ? 2 : 1); break; case 4: var n = De.fields(e); this.out.b.push(5); var i = n.length; 0 <= i && i < 128 ? this.out.b.push(i) : (this.out.b.push(128), this.out.addInt32(i)); for (var r = 0; r < n.length; ) { var o = n[r]; if ((++r, null == o)) this.out.b.push(0); else { var a = Lf.ofString(o), l = a.length + 1; 0 <= l && l < 128 ? this.out.b.push(l) : (this.out.b.push(128), this.out.addInt32(l)); for ( var h = this.out, _ = (h.b, a.b), u = 0, d = a.length; u < d; ) { var c = u++; h.b.push(_[c]); } } this.addDynamic(De.field(e, o)); } break; case 6: var f = t[2]; switch (f) { case Array: this.out.b.push(7); var p = e, b = p.length; 0 <= b && b < 128 ? this.out.b.push(b) : (this.out.b.push(128), this.out.addInt32(b)); for (var m = 0; m < p.length; ) { var g = p[m]; ++m, this.addDynamic(g); } break; case String: this.out.b.push(6); var w = e; if (null == w) this.out.b.push(0); else { var v = Lf.ofString(w), y = v.length + 1; 0 <= y && y < 128 ? this.out.b.push(y) : (this.out.b.push(128), this.out.addInt32(y)); for ( var T = this.out, S = (T.b, v.b), x = 0, E = v.length; x < E; ) { var P = x++; T.b.push(S[P]); } } break; case Lf: this.out.b.push(8); var R = e; if (null == R) this.out.b.push(0); else { var A = R.length + 1; 0 <= A && A < 128 ? this.out.b.push(A) : (this.out.b.push(128), this.out.addInt32(A)); for ( var I = this.out, C = (I.b, R.b), B = 0, D = R.length; B < D; ) { var k = B++; I.b.push(C[k]); } } break; default: throw new Mp("Unsupported dynamic " + Ue.string(f)); } break; default: var F = t; throw new Mp("Unsupported dynamic " + Ue.string(F)); } } else this.out.b.push(0); }, addCLID: function (e) { this.out.b.push(e >> 8), this.out.b.push(255 & e); }, getCLID: function () { return (this.input.b[this.inPos++] << 8) | this.input.b[this.inPos++]; }, addObjRef: function (e) { var t = e.__uid; 0 <= t && t < 128 ? this.out.b.push(t) : (this.out.b.push(128), this.out.addInt32(t)); }, getObjRef: function () { var e = this.input.b[this.inPos++]; return ( 128 == e && ((e = this.input.getInt32(this.inPos)), (this.inPos += 4)), e ); }, addAnyRef: function (e) { if (null != e) { if ( (null != this.remapObjs && this.remap(e), this.addObjRef(e), null == this.refs.h[e.__uid]) ) { var t = (this.refs.h[e.__uid] = e).getCLID(); (this.usedClasses[t] = !0), this.out.b.push(t >> 8), this.out.b.push(255 & t), e.serialize(this); } } else this.out.b.push(0); }, addKnownRef: function (e) { if (null != e) { if ( (null != this.remapObjs && this.remap(e), this.addObjRef(e), null == this.refs.h[e.__uid]) ) { var t = (this.refs.h[e.__uid] = e).getCLID(); this.usedClasses[t] = !0; var s = mr.CLIDS[t]; 0 != s && (this.out.b.push(s >> 8), this.out.b.push(255 & s)), e.serialize(this); } } else this.out.b.push(0); }, getAnyRef: function () { var e = this.getObjRef(); if (0 == e) return null; if (null != this.refs.h[e]) return this.refs.h[e]; var t = 16777215 & e; mr.UID < t && (mr.UID = t); var s = (this.input.b[this.inPos++] << 8) | this.input.b[this.inPos++]; null != this.mapIndexes && (s = this.mapIndexes[s]); var n = ms.createEmptyInstance(mr.CLASSES[s]); return ( null != this.newObjects && this.newObjects.push(n), (n.__uid = e), n.unserializeInit(), (this.refs.h[e] = n), null != this.convert && null != this.convert[s] ? this.convertRef(n, this.convert[s]) : n.unserialize(this), n ); }, getRef: function (e, t) { var s = this.getObjRef(); if (0 == s) return null; if (null != this.refs.h[s]) return this.refs.h[s]; var n = 16777215 & s; if ((mr.UID < n && (mr.UID = n), 0 != mr.CLIDS[t])) { var i = (this.input.b[this.inPos++] << 8) | this.input.b[this.inPos++]; (e = mr.CL_BYID[i]), null != this.convert && (t = e.__clid); } var r = ms.createEmptyInstance(e); return ( null != this.newObjects && this.newObjects.push(r), (r.__uid = s), r.unserializeInit(), (this.refs.h[s] = r), null != this.convert && null != this.convert[t] ? this.convertRef(r, this.convert[t]) : r.unserialize(this), r ); }, getKnownRef: function (e) { return this.getRef(e, e.__clid); }, beginSave: function () { this.begin(), (this.usedClasses = []); }, endSave: function () { var e = this.end(); this.begin(); for ( var t = [], s = [], n = mr.CLASSES.indexOf(Cp), i = 0, r = this.usedClasses.length; i < r; ) { var o = i++; if (this.usedClasses[o] && o != n) { var a = mr.CLASSES[o], l = ms.createEmptyInstance(a).getSerializeSchema(); s.push(l), t.push(o), this.addKnownRef(l), this.refs.remove(l.__uid); } } var h = this.end(); this.begin(); var _ = Lf.ofString("HXS"), u = _.length + 1; 0 <= u && u < 128 ? this.out.b.push(u) : (this.out.b.push(128), this.out.addInt32(u)); for (var d = this.out, c = (d.b, _.b), f = 0, p = _.length; f < p; ) { var b = f++; d.b.push(c[b]); } this.out.b.push(1); for (var m = 0, g = t.length; m < g; ) { var w = m++, v = t[w], y = ms.getClassName(mr.CLASSES[v]); if (null == y) this.out.b.push(0); else { var T = Lf.ofString(y), S = T.length + 1; 0 <= S && S < 128 ? this.out.b.push(S) : (this.out.b.push(128), this.out.addInt32(S)); for ( var x = this.out, E = (x.b, T.b), P = 0, R = T.length; P < R; ) { var A = P++; x.b.push(E[A]); } } this.out.b.push(v >> 8), this.out.b.push(255 & v); var I = s[w].get_checkSum(); this.out.addInt32(I); } this.out.b.push(0); var C = h.length; 0 <= C && C < 128 ? this.out.b.push(C) : (this.out.b.push(128), this.out.addInt32(C)); for (var B = this.out, D = (B.b, h.b), k = 0, F = h.length; k < F; ) { var M = k++; B.b.push(D[M]); } for (var L = this.out, N = (L.b, e.b), O = 0, U = e.length; O < U; ) { var G = O++; L.b.push(N[G]); } return this.end(); }, beginLoad: function (e, t) { null == t && (t = 0), this.setInput(e, t); for ( var s = new up(), n = [], i = [], r = [], o = !1, a = !1, l = 0, h = mr.CLASSES.length; l < h; ) { var _ = l++, u = ms.getClassName(mr.CLASSES[_]); null != NT[u] ? s.setReserved(u, _) : (s.h[u] = _), (i[_] = _); } var d = this.input.b[this.inPos++]; 128 == d && ((d = this.input.getInt32(this.inPos)), (this.inPos += 4)); var c, f = d; if (0 == f) c = null; else { --f; var p = this.input.getString(this.inPos, f); (this.inPos += f), (c = p); } if ("HXS" != c) throw new Mp("Invalid HXS data"); var b = this.input.b[this.inPos++]; if (1 != b) throw new Mp("Unsupported HXS version " + b); for (;;) { var m = this.input.b[this.inPos++]; 128 == m && ((m = this.input.getInt32(this.inPos)), (this.inPos += 4)); var g, w = m; if (0 == w) g = null; else { --w; var v = this.input.getString(this.inPos, w); (this.inPos += w), (g = v); } if (null == g) break; var y = (this.input.b[this.inPos++] << 8) | this.input.b[this.inPos++], T = this.input.getInt32(this.inPos); this.inPos += 4; var S = T, x = null != NT[g] ? s.getReserved(g) : s.h[g]; if (null == x) throw new Mp("Missing class " + g + " found in HXS data"); var E = ms.createEmptyInstance(mr.CLASSES[x]).getSerializeSchema(); E.get_checkSum() != S && ((o = !0), (n[y] = E)), y != x && ((a = !0), (i[y] = x)), r.push(y); } var P = this.input.b[this.inPos++]; 128 == P && ((P = this.input.getInt32(this.inPos)), (this.inPos += 4)); var R = P; if (o) { this.convert = []; for (var A = 0; A < r.length; ) { var I = r[A]; ++A; var C = n[I], B = Cp, D = this.getRef(B, B.__clid); this.refs.remove(D.__uid), null != C && (this.convert[i[I]] = new Pp(C, D)); } } else this.inPos += R; a && (this.mapIndexes = i); }, endLoad: function () { (this.convert = null), (this.mapIndexes = null), this.setInput(null, 0); }, convertRef: function (e, t) { for ( var s = t.read.length, n = new Array(s), i = 0, r = t.read; i < r.length; ) { var o = r[i]; ++i, (n[o.index] = this.readValue(o.from)); } var a = this.out; this.out = new cp(); for (var l = 0, h = t.write; l < h.length; ) { var _, u = h[l]; ++l, null == u.from ? (_ = u.defaultValue) : ((_ = n[u.index]), u.same || (_ = null == _ ? u.defaultValue : this.convertValue(_, u.from, u.to))), this.writeValue(_, u.to); } var d = this.out.getBytes(); this.out = a; var c = this.input, f = this.inPos; this.setInput(d, 0), e.unserialize(this), this.setInput(c, f); }, isNullable: function (e) { switch (e[1]) { case 0: case 1: case 2: return !1; default: return !0; } }, convertValue: function (e, t, s) { if (null == e && this.isNullable(s)) return null; if (Pp.sameType(t, s)) return e; if (9 != t[1] || 9 != s[1]) throw new Mp( "Cannot convert " + Ue.string(e) + " from " + Ue.string(t) + " to " + Ue.string(s) ); for (var n = t[2], i = s[2], r = {}, o = 0; o < i.length; ) { var a = i[o]; ++o; for (var l = !1, h = null, _ = 0; _ < n.length; ) { var u = n[_]; if ((++_, u.name == a.name)) { (l = !0), (h = this.convertValue(De.field(e, u.name), u.type, a.type)); break; } } if (l) { if (null == h && a.opt) continue; } else { if (a.opt) continue; h = Pp.getDefault(a.type); } r[a.name] = h; } return r; }, readValue: function (e) { switch (e[1]) { case 0: var t = this.input.b[this.inPos++]; return ( 128 == t && ((t = this.input.getInt32(this.inPos)), (this.inPos += 4)), t ); case 1: var s = this.input.getFloat(this.inPos); return (this.inPos += 4), s; case 2: return 0 != this.input.b[this.inPos++]; case 3: var n = this.input.b[this.inPos++]; 128 == n && ((n = this.input.getInt32(this.inPos)), (this.inPos += 4)); var i = n; if (0 == i) return null; --i; var r = this.input.getString(this.inPos, i); return (this.inPos += i), r; case 4: var o = this.input.b[this.inPos++]; 128 == o && ((o = this.input.getInt32(this.inPos)), (this.inPos += 4)); var a = o; if (0 == a) return null; --a; var l = this.input.sub(this.inPos, a); return (this.inPos += a), l; case 5: var h = e[2]; return this.getKnownRef(ms.resolveClass(h)); case 6: var _ = e[2], u = ms.resolveClass("hxbit.enumSer." + _.split(".").join("_")); if (null != u) return u.doUnserialize(this); var d, c = ms.resolveEnum(_); if (null != c) { var f = yp.getType(c); d = Object.prototype.hasOwnProperty.call(f, "skipSerialize"); } else d = !1; if (d) { var p = this.input.b[this.inPos++]; return ( 128 == p && ((p = this.input.getInt32(this.inPos)), (this.inPos += 4)), null ); } throw new Mp("No enum unserializer found for " + _); case 7: var b = e[3], m = e[2]; switch (m[1]) { case 0: var g = this.input.b[this.inPos++]; 128 == g && ((g = this.input.getInt32(this.inPos)), (this.inPos += 4)); var w, v = g; if (0 == v) w = null; else { for (var y = new lp(); 0 < --v; ) { var T = this.readValue(m), S = this.readValue(b); y.h[T] = S; } w = y; } return w; case 3: var x = this.input.b[this.inPos++]; 128 == x && ((x = this.input.getInt32(this.inPos)), (this.inPos += 4)); var E, P = x; if (0 == P) E = null; else { for (var R = new up(); 0 < --P; ) { var A = this.readValue(m), I = this.readValue(b); null != NT[A] ? R.setReserved(A, I) : (R.h[A] = I); } E = R; } return E; default: var C = this.input.b[this.inPos++]; 128 == C && ((C = this.input.getInt32(this.inPos)), (this.inPos += 4)); var B, D = C; if (0 == D) B = null; else { for (var k = new hp(); 0 < --D; ) { var F = this.readValue(m), M = this.readValue(b); k.set(F, M); } B = k; } return B; } break; case 8: var L = e[2], N = this.input.b[this.inPos++]; 128 == N && ((N = this.input.getInt32(this.inPos)), (this.inPos += 4)); var O = N; if (0 == O) return null; for (var U = [], G = 0, z = --O; G < z; ) { U[G++] = this.readValue(L); } return U; case 9: var X = e[2], H = this.input.b[this.inPos++]; 128 == H && ((H = this.input.getInt32(this.inPos)), (this.inPos += 4)); var V = H; if (0 == V) return null; var Y = {}; --V; for (var W = [], j = 0; j < X.length; ) { var K = X[j]; ++j, this.isNullable(K.type) && W.push(K); } for (var q = W, Z = 0; Z < X.length; ) { var J = X[Z]; ++Z; var Q = q.indexOf(J); (0 <= Q && 0 == (V & (1 << Q))) || (Y[J.name] = this.readValue(J.type)); } return Y; case 10: var $ = e[2]; return this.readValue($); case 11: var ee = e[2], te = this.input.b[this.inPos++]; 128 == te && ((te = this.input.getInt32(this.inPos)), (this.inPos += 4)); var se = te; if (0 == se) return null; --se; for (var ne = new Array(se), ie = 0, re = se; ie < re; ) { ne[ie++] = this.readValue(ee); } return ne; case 12: var oe = e[2]; return 0 == this.input.b[this.inPos++] ? null : this.readValue(oe); case 13: throw new Mp("assert"); case 14: return this.getDynamic(); case 15: var ae = this.input.getInt64(this.inPos); return (this.inPos += 8), ae; case 16: var le = this.input.b[this.inPos++]; return ( 128 == le && ((le = this.input.getInt32(this.inPos)), (this.inPos += 4)), le ); } }, writeValue: function (e, t) { switch (t[1]) { case 0: var s = e; 0 <= s && s < 128 ? this.out.b.push(s) : (this.out.b.push(128), this.out.addInt32(s)); break; case 1: this.out.addInt32(bp.floatToI32(e)); break; case 2: this.out.b.push(e ? 1 : 0); break; case 3: var n = e; if (null == n) this.out.b.push(0); else { var i = Lf.ofString(n), r = i.length + 1; 0 <= r && r < 128 ? this.out.b.push(r) : (this.out.b.push(128), this.out.addInt32(r)); for ( var o = this.out, a = (o.b, i.b), l = 0, h = i.length; l < h; ) { var _ = l++; o.b.push(a[_]); } } break; case 4: var u = e; if (null == u) this.out.b.push(0); else { var d = u.length + 1; 0 <= d && d < 128 ? this.out.b.push(d) : (this.out.b.push(128), this.out.addInt32(d)); for ( var c = this.out, f = (c.b, u.b), p = 0, b = u.length; p < b; ) { var m = p++; c.b.push(f[m]); } } break; case 5: this.addKnownRef(e); break; case 6: var g = t[2], w = "hxbit.enumSer." + g.split(".").join("_"); if (null == w) throw new Mp("No enum unserializer found for " + g); ms.resolveClass(w).doSerialize(this, e); break; case 7: var v = t[3], y = t[2], T = e; if (null == T) this.out.b.push(0); else { var S = T, x = de.array({ iterator: function () { return S.keys(); }, }), E = x.length + 1; 0 <= E && E < 128 ? this.out.b.push(E) : (this.out.b.push(128), this.out.addInt32(E)); for (var P = 0; P < x.length; ) { var R = x[P]; ++P, this.writeValue(R, y), this.writeValue(T.get(R), v); } } break; case 8: var A = t[2], I = e; if (null == I) this.out.b.push(0); else { var C = I.length + 1; 0 <= C && C < 128 ? this.out.b.push(C) : (this.out.b.push(128), this.out.addInt32(C)); for (var B = 0; B < I.length; ) { var D = I[B]; ++B, this.writeValue(D, A); } } break; case 9: var k = t[2]; if (null == e) this.out.b.push(0); else { for (var F = 0, M = [], L = 0; L < k.length; ) { var N = k[L]; ++L, this.isNullable(N.type) && M.push(N); } for (var O = M, U = 0, G = O.length; U < G; ) { var z = U++; null != De.field(e, O[z].name) && (F |= 1 << z); } var X = F + 1; 0 <= X && X < 128 ? this.out.b.push(X) : (this.out.b.push(128), this.out.addInt32(X)); for (var H = 0; H < k.length; ) { var V = k[H]; ++H; var Y = O.indexOf(V); V.name; (0 <= Y && 0 == (F & (1 << Y))) || this.writeValue(De.field(e, V.name), V.type); } } break; case 10: var W = t[2]; this.writeValue(e, W); break; case 11: var j = t[2], K = e; if (null == K) this.out.b.push(0); else { var q = K.length + 1; 0 <= q && q < 128 ? this.out.b.push(q) : (this.out.b.push(128), this.out.addInt32(q)); for (var Z = 0; Z < K.length; ) { var J = K[Z]; ++Z, this.writeValue(J, j); } } break; case 12: var Q = t[2]; null == e ? this.out.b.push(0) : (this.out.b.push(1), this.writeValue(e, Q)); break; case 13: throw new Mp("assert"); case 14: this.addDynamic(e); break; case 15: this.out.addInt64(e); break; case 16: var $ = e; 0 <= $ && $ < 128 ? this.out.b.push($) : (this.out.b.push(128), this.out.addInt32($)); } }, __class__: mr, __properties__: { set_remapIds: "set_remapIds", get_remapIds: "get_remapIds", }, }); var gr = function (e, t) { null == t && (t = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFFillStyle"] = gr).__name__ = [ "format", "swf", "data", "SWFFillStyle", ]), (gr.__interfaces__ = [br]), (gr.prototype = { parse: function (e, t) { switch ( (null == t && (t = 1), (this._level = t), (this.type = or.readUI8(e)), this.type) ) { case 0: this.rgb = t <= 2 ? or.readRGB(e) : or.readRGBA(e); break; case 16: case 18: case 19: (this.gradientMatrix = or.readMATRIX(e)), (this.gradient = 19 == this.type ? or.readFOCALGRADIENT(e, t) : or.readGRADIENT(e, t)); break; case 64: case 65: case 66: case 67: (this.bitmapId = or.readUI16(e)), (this.bitmapMatrix = or.readMATRIX(e)); break; default: throw new Mp( new _v("Unknown fill style type: 0x" + Ri.hex(this.type)) ); } }, publish: function (e, t) { switch ((null == t && (t = 1), or.writeUI8(e, this.type), this.type)) { case 0: t <= 2 ? or.writeRGB(e, this.rgb) : or.writeRGBA(e, this.rgb); break; case 16: case 18: or.writeMATRIX(e, this.gradientMatrix), or.writeGRADIENT(e, this.gradient, t); break; case 19: or.writeMATRIX(e, this.gradientMatrix), or.writeFOCALGRADIENT(e, Lp.__cast(this.gradient, vr), t); break; case 64: case 65: case 66: case 67: or.writeUI16(e, this.bitmapId), or.writeMATRIX(e, this.bitmapMatrix); break; default: throw new Mp( new _v("Unknown fill style type: 0x" + Ri.hex(this.type)) ); } }, clone: function () { var e = new gr(); return ( (e.type = this.type), (e.rgb = this.rgb), (e.gradient = this.gradient.clone()), (e.gradientMatrix = this.gradientMatrix.clone()), (e.bitmapId = this.bitmapId), (e.bitmapMatrix = this.bitmapMatrix.clone()), e ); }, toString: function () { var e = "[SWFFillStyle] Type: " + Yf.printf("%02x", [this.type]); switch (this.type) { case 0: e += " (solid), Color: " + (this._level <= 2 ? zf.rgbToString(this.rgb) : zf.rgbaToString(this.rgb)); break; case 16: e += " (linear gradient), Gradient: " + Ue.string(this.gradient) + ", Matrix: " + Ue.string(this.gradientMatrix); break; case 18: e += " (radial gradient), Gradient: " + Ue.string(this.gradient) + ", Matrix: " + Ue.string(this.gradientMatrix); break; case 19: e += " (focal radial gradient), Gradient: " + Ue.string(this.gradient) + ", Matrix: " + Ue.string(this.gradientMatrix) + ", FocalPoint: " + this.gradient.focalPoint; break; case 64: e += " (repeating bitmap), BitmapID: " + this.bitmapId; break; case 65: e += " (clipped bitmap), BitmapID: " + this.bitmapId; break; case 66: e += " (non-smoothed repeating bitmap), BitmapID: " + this.bitmapId; break; case 67: e += " (non-smoothed clipped bitmap), BitmapID: " + this.bitmapId; } return e; }, is_transparent: function () { return ( !(this._level <= 2) && (null == this.rgb || 0 == zf.alpha(this.rgb)) ); }, getCLID: function () { return gr.__clid; }, serialize: function (e) { var t = this.type; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.rgb; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)), e.addKnownRef(this.gradient), e.addKnownRef(this.gradientMatrix); var n = this.bitmapId; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)), e.addKnownRef(this.bitmapMatrix); var i = this._level; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("type"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("rgb"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("gradient"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFGradient")), e.fieldsNames.push("gradientMatrix"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFMatrix")), e.fieldsNames.push("bitmapId"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("bitmapMatrix"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFMatrix")), e.fieldsNames.push("_level"), e.fieldsTypes.push(Ap.PInt), (e.isFinal = mr.isClassFinal(gr.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.type = t); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.rgb = s), (this.gradient = e.getRef(wr, wr.__clid)), (this.gradientMatrix = e.getRef(Rr, Rr.__clid)); var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.bitmapId = n), (this.bitmapMatrix = e.getRef(Rr, Rr.__clid)); var i = e.input.b[e.inPos++]; 128 == i && ((i = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this._level = i); }, __class__: gr, }); var wr = function (e, t) { null == t && (t = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.focalPoint = 0), (this.records = []), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFGradient"] = wr).__name__ = [ "format", "swf", "data", "SWFGradient", ]), (wr.__interfaces__ = [br]), (wr.prototype = { parse: function (e, t) { e.resetBitsPending(), (this.spreadMode = or.readUB(e, 2)), (this.interpolationMode = or.readUB(e, 2)); for (var s = 0, n = or.readUB(e, 4); s < n; ) { s++; this.records.push(or.readGRADIENTRECORD(e, t)); } }, publish: function (e, t) { null == t && (t = 1); var s = this.records.length; e.resetBitsPending(), or.writeUB(e, 2, this.spreadMode), or.writeUB(e, 2, this.interpolationMode), or.writeUB(e, 4, s); for (var n = 0, i = s; n < i; ) { var r = n++; or.writeGRADIENTRECORD(e, this.records[r], t); } }, clone: function () { var e = new wr(); (e.spreadMode = this.spreadMode), (e.interpolationMode = this.interpolationMode), (e.focalPoint = this.focalPoint); for (var t = 0, s = this.records.length; t < s; ) { var n = t++; e.records.push(this.records[n].clone()); } return e; }, toString: function () { return ( "(" + this.records.join(",") + "), SpreadMode: " + this.spreadMode + ", InterpolationMode: " + this.interpolationMode ); }, getCLID: function () { return wr.__clid; }, serialize: function (e) { var t = this.spreadMode; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.interpolationMode; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)), e.out.addInt32(bp.floatToI32(this.focalPoint)); var n = this.records; if (null == n) e.out.b.push(0); else { var i = n.length + 1; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); for (var r = 0; r < n.length; ) { var o = n[r]; ++r, e.addKnownRef(o); } } }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("spreadMode"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("interpolationMode"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("focalPoint"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("records"), e.fieldsTypes.push( Ap.PArray(Ap.PSerializable("format.swf.data.SWFGradientRecord")) ), (e.isFinal = mr.isClassFinal(wr.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.spreadMode = t); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.interpolationMode = s); var n, i = e.input.getFloat(e.inPos); (e.inPos += 4), (this.focalPoint = i); var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)); var o, a = r; if (0 == a) o = null; else { for (var l = [], h = 0, _ = --a; h < _; ) { var u = h++; (n = e.getRef(Sr, Sr.__clid)), (l[u] = n); } o = l; } this.records = o; }, __class__: wr, }); var vr = function (e, t) { null == t && (t = 1), wr.call(this, e, t); }; ((s["format.swf.data.SWFFocalGradient"] = vr).__name__ = [ "format", "swf", "data", "SWFFocalGradient", ]), (vr.__super__ = wr), (vr.prototype = n(wr.prototype, { parse: function (e, t) { wr.prototype.parse.call(this, e, t), (this.focalPoint = or.readFIXED8(e)); }, publish: function (e, t) { null == t && (t = 1), wr.prototype.publish.call(this, e, t), or.writeFIXED8(e, this.focalPoint); }, toString: function () { return "(" + this.records.join(",") + ")"; }, getCLID: function () { return vr.__clid; }, __class__: vr, })); var yr = function (e, t) { (this.frameNumber = e), (this.name = t); }; ((s["format.swf.data.SWFFrameLabel"] = yr).__name__ = [ "format", "swf", "data", "SWFFrameLabel", ]), (yr.prototype = { toString: function () { return "Frame: " + this.frameNumber + ", Name: " + this.name; }, __class__: yr, }); var Tr = function (e, t, s) { null == s && (s = 0), null == t && (t = 0), null != e && this.parse(e, t, s); }; ((s["format.swf.data.SWFGlyphEntry"] = Tr).__name__ = [ "format", "swf", "data", "SWFGlyphEntry", ]), (Tr.prototype = { parse: function (e, t, s) { (this.index = or.readUB(e, t)), (this.advance = or.readSB(e, s)); }, publish: function (e, t, s) { or.writeUB(e, t, this.index), or.writeSB(e, s, this.advance); }, clone: function () { var e = new Tr(); return (e.index = this.index), (e.advance = this.advance), e; }, toString: function () { return ( "[SWFGlyphEntry] Index: " + Ue.string(this.index) + ", Advance: " + Ue.string(this.advance) ); }, __class__: Tr, }); var Sr = function (e, t) { null == t && (t = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFGradientRecord"] = Sr).__name__ = [ "format", "swf", "data", "SWFGradientRecord", ]), (Sr.__interfaces__ = [br]), (Sr.prototype = { parse: function (e, t) { (this._level = t), (this.ratio = or.readUI8(e)), (this.color = t <= 2 ? or.readRGB(e) : or.readRGBA(e)); }, publish: function (e, t) { or.writeUI8(e, this.ratio), t <= 2 ? or.writeRGB(e, this.color) : or.writeRGBA(e, this.color); }, clone: function () { var e = new Sr(); return (e.ratio = this.ratio), (e.color = this.color), e; }, toString: function () { return ( "[" + this.ratio + "," + (this._level <= 2 ? zf.rgbToString(this.color) : zf.rgbaToString(this.color)) + "]" ); }, getCLID: function () { return Sr.__clid; }, serialize: function (e) { var t = this.ratio; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.color; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); var n = this._level; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("ratio"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("color"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("_level"), e.fieldsTypes.push(Ap.PInt), (e.isFinal = mr.isClassFinal(Sr.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.ratio = t); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.color = s); var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this._level = n); }, __class__: Sr, }); var xr = function (e, t) { null == t && (t = !1), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFKerningRecord"] = xr).__name__ = [ "format", "swf", "data", "SWFKerningRecord", ]), (xr.prototype = { parse: function (e, t) { (this.code1 = t ? or.readUI16(e) : or.readUI8(e)), (this.code2 = t ? or.readUI16(e) : or.readUI8(e)), (this.adjustment = or.readSI16(e)); }, publish: function (e, t) { t ? or.writeUI16(e, this.code1) : or.writeUI8(e, this.code1), t ? or.writeUI16(e, this.code2) : or.writeUI8(e, this.code2), or.writeSI16(e, this.adjustment); }, toString: function (e) { return ( null == e && (e = 0), "Code1: " + this.code1 + ", Code2: " + this.code2 + ", Adjustment: " + this.adjustment ); }, __class__: xr, }); var Er = function (e, t) { null == t && (t = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.startCapsStyle = 0), (this.endCapsStyle = 0), (this.jointStyle = 0), (this.hasFillFlag = !1), (this.noHScaleFlag = !1), (this.noVScaleFlag = !1), (this.pixelHintingFlag = !1), (this.noClose = !1), (this.miterLimitFactor = 3), (this.color = 0), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFLineStyle"] = Er).__name__ = [ "format", "swf", "data", "SWFLineStyle", ]), (Er.__interfaces__ = [br]), (Er.prototype = { parse: function (e, t) { null == t && (t = 1), (this._level = t), (this.width = or.readUI16(e)), (this.color = t <= 2 ? or.readRGB(e) : or.readRGBA(e)); }, publish: function (e, t) { null == t && (t = 1), or.writeUI16(e, this.width), t <= 2 ? or.writeRGB(e, this.color) : or.writeRGBA(e, this.color); }, clone: function () { var e = new Er(); return ( (e.width = this.width), (e.color = this.color), (e.startCapsStyle = this.startCapsStyle), (e.endCapsStyle = this.endCapsStyle), (e.jointStyle = this.jointStyle), (e.hasFillFlag = this.hasFillFlag), (e.noHScaleFlag = this.noHScaleFlag), (e.noVScaleFlag = this.noVScaleFlag), (e.pixelHintingFlag = this.pixelHintingFlag), (e.noClose = this.noClose), (e.miterLimitFactor = this.miterLimitFactor), (e.fillType = this.fillType.clone()), e ); }, toString: function () { return ( "[SWFLineStyle] Width: " + this.width + " Color: " + (this._level <= 2 ? zf.rgbToString(this.color) : zf.rgbaToString(this.color)) ); }, getCLID: function () { return Er.__clid; }, serialize: function (e) { var t = this.width; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.color; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); var n = this._level; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); var i = this.startCapsStyle; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); var r = this.endCapsStyle; 0 <= r && r < 128 ? e.out.b.push(r) : (e.out.b.push(128), e.out.addInt32(r)); var o = this.jointStyle; 0 <= o && o < 128 ? e.out.b.push(o) : (e.out.b.push(128), e.out.addInt32(o)), e.out.b.push(this.hasFillFlag ? 1 : 0), e.out.b.push(this.noHScaleFlag ? 1 : 0), e.out.b.push(this.noVScaleFlag ? 1 : 0), e.out.b.push(this.pixelHintingFlag ? 1 : 0), e.out.b.push(this.noClose ? 1 : 0), e.out.addInt32(bp.floatToI32(this.miterLimitFactor)), e.addKnownRef(this.fillType); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("width"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("color"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("_level"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("startCapsStyle"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("endCapsStyle"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("jointStyle"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("hasFillFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("noHScaleFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("noVScaleFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("pixelHintingFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("noClose"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("miterLimitFactor"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("fillType"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFFillStyle")), (e.isFinal = mr.isClassFinal(Er.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.width = t); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.color = s); var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this._level = n); var i = e.input.b[e.inPos++]; 128 == i && ((i = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.startCapsStyle = i); var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.endCapsStyle = r); var o = e.input.b[e.inPos++]; 128 == o && ((o = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.jointStyle = o), (this.hasFillFlag = 0 != e.input.b[e.inPos++]), (this.noHScaleFlag = 0 != e.input.b[e.inPos++]), (this.noVScaleFlag = 0 != e.input.b[e.inPos++]), (this.pixelHintingFlag = 0 != e.input.b[e.inPos++]), (this.noClose = 0 != e.input.b[e.inPos++]); var a = e.input.getFloat(e.inPos); (e.inPos += 4), (this.miterLimitFactor = a), (this.fillType = e.getRef(gr, gr.__clid)); }, __class__: Er, }); var Pr = function (e, t) { null == t && (t = 1), Er.call(this, e, t); }; ((s["format.swf.data.SWFLineStyle2"] = Pr).__name__ = [ "format", "swf", "data", "SWFLineStyle2", ]), (Pr.__super__ = Er), (Pr.prototype = n(Er.prototype, { parse: function (e, t) { null == t && (t = 1), (this.width = or.readUI16(e)), (this.startCapsStyle = or.readUB(e, 2)), (this.jointStyle = or.readUB(e, 2)), (this.hasFillFlag = 1 == or.readUB(e, 1)), (this.noHScaleFlag = 1 == or.readUB(e, 1)), (this.noVScaleFlag = 1 == or.readUB(e, 1)), (this.pixelHintingFlag = 1 == or.readUB(e, 1)), or.readUB(e, 5), (this.noClose = 1 == or.readUB(e, 1)), (this.endCapsStyle = or.readUB(e, 2)), 2 == this.jointStyle && (this.miterLimitFactor = or.readFIXED8(e)), this.hasFillFlag ? (this.fillType = or.readFILLSTYLE(e, t)) : (this.color = or.readRGBA(e)); }, publish: function (e, t) { null == t && (t = 1), or.writeUI16(e, this.width), or.writeUB(e, 2, this.startCapsStyle), or.writeUB(e, 2, this.jointStyle), or.writeUB(e, 1, this.hasFillFlag ? 1 : 0), or.writeUB(e, 1, this.noHScaleFlag ? 1 : 0), or.writeUB(e, 1, this.noVScaleFlag ? 1 : 0), or.writeUB(e, 1, this.pixelHintingFlag ? 1 : 0), or.writeUB(e, 5, 0), or.writeUB(e, 1, this.noClose ? 1 : 0), or.writeUB(e, 2, this.endCapsStyle), 2 == this.jointStyle && or.writeFIXED8(e, this.miterLimitFactor), this.hasFillFlag ? or.writeFILLSTYLE(e, this.fillType, t) : or.writeRGBA(e, this.color); }, toString: function () { var e = "[SWFLineStyle2] Width: " + this.width + ", StartCaps: " + Uo.toString(this.startCapsStyle) + ", EndCaps: " + Uo.toString(this.endCapsStyle) + ", Joint: " + Go.toString(this.jointStyle) + ", "; return ( this.noClose && (e += "NoClose, "), this.noHScaleFlag && (e += "NoHScale, "), this.noVScaleFlag && (e += "NoVScale, "), this.pixelHintingFlag && (e += "PixelHinting, "), this.hasFillFlag ? (e += "Fill: " + this.fillType.toString()) : (e += "Color: " + zf.rgbaToString(this.color)), e ); }, getCLID: function () { return Pr.__clid; }, __class__: Pr, })); var Rr = function (e) { (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.translateY = 0), (this.translateX = 0), (this.rotateSkew1 = 0), (this.rotateSkew0 = 0), (this.scaleY = 1), (this.scaleX = 1), null != e && this.parse(e); }; ((s["format.swf.data.SWFMatrix"] = Rr).__name__ = [ "format", "swf", "data", "SWFMatrix", ]), (Rr.__interfaces__ = [br]), (Rr.prototype = { get_matrix: function () { return new Km( this.scaleX, this.rotateSkew0, this.rotateSkew1, this.scaleY, this.translateX, this.translateY ); }, parse: function (e) { if ( (e.resetBitsPending(), (this.scaleX = 1), (this.scaleY = 1) == or.readUB(e, 1)) ) { var t = or.readUB(e, 5); (this.scaleX = or.readFB(e, t)), (this.scaleY = or.readFB(e, t)); } if ( ((this.rotateSkew0 = 0), (this.rotateSkew1 = 0), 1 == or.readUB(e, 1)) ) { var s = or.readUB(e, 5); (this.rotateSkew0 = or.readFB(e, s)), (this.rotateSkew1 = or.readFB(e, s)); } var n = or.readUB(e, 5); (this.translateX = or.readSB(e, n)), (this.translateY = or.readSB(e, n)); var i = this.get_matrix().deltaTransformPoint(new qm(0, 1)); (this.rotation = (180 / Math.PI) * Math.atan2(i.y, i.x) - 90), this.rotation < 0 && (this.rotation = 360 + this.rotation), (this.xscale = Math.sqrt( this.scaleX * this.scaleX + this.rotateSkew0 * this.rotateSkew0 ) * (this.scaleX < 0 ? -1 : 1)), (this.yscale = Math.sqrt( this.rotateSkew1 * this.rotateSkew1 + this.scaleY * this.scaleY ) * (this.scaleY < 0 ? -1 : 1)); }, clone: function () { var e = new Rr(); return ( (e.scaleX = this.scaleX), (e.scaleY = this.scaleY), (e.rotateSkew0 = this.rotateSkew0), (e.rotateSkew1 = this.rotateSkew1), (e.translateX = this.translateX), (e.translateY = this.translateY), e ); }, isIdentity: function () { return ( 1 == this.scaleX && 1 == this.scaleY && 0 == this.rotateSkew0 && 0 == this.rotateSkew1 && 0 == this.translateX && 0 == this.translateY ); }, toString: function () { return ( "(" + this.scaleX + "," + this.rotateSkew0 + "," + this.rotateSkew1 + "," + this.scaleY + "," + this.translateX + "," + this.translateY + ")" ); }, getCLID: function () { return Rr.__clid; }, serialize: function (e) { e.out.addInt32(bp.floatToI32(this.scaleX)), e.out.addInt32(bp.floatToI32(this.scaleY)), e.out.addInt32(bp.floatToI32(this.rotateSkew0)), e.out.addInt32(bp.floatToI32(this.rotateSkew1)); var t = this.translateX; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.translateY; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)), e.out.addInt32(bp.floatToI32(this.xscale)), e.out.addInt32(bp.floatToI32(this.yscale)), e.out.addInt32(bp.floatToI32(this.rotation)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("scaleX"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("scaleY"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("rotateSkew0"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("rotateSkew1"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("translateX"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("translateY"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("xscale"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("yscale"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("rotation"), e.fieldsTypes.push(Ap.PFloat), (e.isFinal = mr.isClassFinal(Rr.__clid)), e ); }, unserializeInit: function () { (this.scaleX = 1), (this.scaleY = 1), (this.rotateSkew0 = 0), (this.rotateSkew1 = 0), (this.translateX = 0), (this.translateY = 0); }, unserialize: function (e) { var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.scaleX = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.scaleY = s); var n = e.input.getFloat(e.inPos); (e.inPos += 4), (this.rotateSkew0 = n); var i = e.input.getFloat(e.inPos); (e.inPos += 4), (this.rotateSkew1 = i); var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.translateX = r); var o = e.input.b[e.inPos++]; 128 == o && ((o = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.translateY = o); var a = e.input.getFloat(e.inPos); (e.inPos += 4), (this.xscale = a); var l = e.input.getFloat(e.inPos); (e.inPos += 4), (this.yscale = l); var h = e.input.getFloat(e.inPos); (e.inPos += 4), (this.rotation = h); }, __class__: Rr, __properties__: { get_matrix: "get_matrix" }, }); var Ar = function (e, t) { null == t && (t = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFMorphFillStyle"] = Ar).__name__ = [ "format", "swf", "data", "SWFMorphFillStyle", ]), (Ar.__interfaces__ = [br]), (Ar.prototype = { parse: function (e, t) { switch ( (null == t && (t = 1), (this.type = or.readUI8(e)), this.type) ) { case 0: (this.startColor = or.readRGBA(e)), (this.endColor = or.readRGBA(e)); break; case 16: case 18: case 19: (this.startGradientMatrix = or.readMATRIX(e)), (this.endGradientMatrix = or.readMATRIX(e)), (this.gradient = 19 == this.type ? or.readMORPHFOCALGRADIENT(e, t) : or.readMORPHGRADIENT(e, t)); break; case 64: case 65: case 66: case 67: (this.bitmapId = or.readUI16(e)), (this.startBitmapMatrix = or.readMATRIX(e)), (this.endBitmapMatrix = or.readMATRIX(e)); break; default: throw new Mp( new _v("Unknown fill style type: 0x" + Ri.hex(this.type)) ); } }, publish: function (e, t) { switch ((null == t && (t = 1), or.writeUI8(e, this.type), this.type)) { case 0: or.writeRGBA(e, this.startColor), or.writeRGBA(e, this.endColor); break; case 16: case 18: case 19: or.writeMATRIX(e, this.startGradientMatrix), or.writeMATRIX(e, this.endGradientMatrix), 19 == this.type ? or.writeMORPHFOCALGRADIENT(e, Lp.__cast(this.gradient, Cr), t) : or.writeMORPHGRADIENT(e, this.gradient, t); break; case 64: case 65: case 66: case 67: or.writeUI16(e, this.bitmapId), or.writeMATRIX(e, this.startBitmapMatrix), or.writeMATRIX(e, this.endBitmapMatrix); break; default: throw new Mp( new _v("Unknown fill style type: 0x" + Ri.hex(this.type)) ); } }, getMorphedFillStyle: function (e) { null == e && (e = 0); var t = new gr(); switch (((t.type = this.type), this.type)) { case 0: t.rgb = zf.interpolate(this.startColor, this.endColor, e); break; case 16: case 18: (t.gradientMatrix = Hf.interpolate( this.startGradientMatrix, this.endGradientMatrix, e )), (t.gradient = this.gradient.getMorphedGradient(e)); break; case 64: case 65: case 66: case 67: (t.bitmapId = this.bitmapId), (t.bitmapMatrix = Hf.interpolate( this.startBitmapMatrix, this.endBitmapMatrix, e )); } return t; }, toString: function () { var e = "[SWFMorphFillStyle] Type: " + Ri.hex(this.type); switch (this.type) { case 0: e += " (solid), StartColor: " + zf.rgbaToString(this.startColor) + ", EndColor: " + zf.rgbaToString(this.endColor); break; case 16: e += " (linear gradient), Gradient: " + Ue.string(this.gradient); break; case 18: e += " (radial gradient), Gradient: " + Ue.string(this.gradient); break; case 19: e += " (focal radial gradient), Gradient: " + Ue.string(this.gradient); break; case 64: e += " (repeating bitmap), BitmapID: " + this.bitmapId; break; case 65: e += " (clipped bitmap), BitmapID: " + this.bitmapId; break; case 66: e += " (non-smoothed repeating bitmap), BitmapID: " + this.bitmapId; break; case 67: e += " (non-smoothed clipped bitmap), BitmapID: " + this.bitmapId; } return e; }, getCLID: function () { return Ar.__clid; }, serialize: function (e) { var t = this.type; if ( (0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)), null == this.startColor) ) e.out.b.push(0); else { e.out.b.push(1); var s = this.startColor; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); } if (null == this.endColor) e.out.b.push(0); else { e.out.b.push(1); var n = this.endColor; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); } if ( (e.addKnownRef(this.startGradientMatrix), e.addKnownRef(this.endGradientMatrix), e.addKnownRef(this.gradient), null == this.bitmapId) ) e.out.b.push(0); else { e.out.b.push(1); var i = this.bitmapId; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); } e.addKnownRef(this.startBitmapMatrix), e.addKnownRef(this.endBitmapMatrix); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("type"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("startColor"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("endColor"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("startGradientMatrix"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFMatrix")), e.fieldsNames.push("endGradientMatrix"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFMatrix")), e.fieldsNames.push("gradient"), e.fieldsTypes.push( Ap.PSerializable("format.swf.data.SWFMorphGradient") ), e.fieldsNames.push("bitmapId"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("startBitmapMatrix"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFMatrix")), e.fieldsNames.push("endBitmapMatrix"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFMatrix")), (e.isFinal = mr.isClassFinal(Ar.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; if ( (128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.type = t), 0 == e.input.b[e.inPos++]) ) this.startColor = null; else { var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.startColor = s); } if (0 == e.input.b[e.inPos++]) this.endColor = null; else { var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.endColor = n); } if ( ((this.startGradientMatrix = e.getRef(Rr, Rr.__clid)), (this.endGradientMatrix = e.getRef(Rr, Rr.__clid)), (this.gradient = e.getRef(Ir, Ir.__clid)), 0 == e.input.b[e.inPos++]) ) this.bitmapId = null; else { var i = e.input.b[e.inPos++]; 128 == i && ((i = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.bitmapId = i); } (this.startBitmapMatrix = e.getRef(Rr, Rr.__clid)), (this.endBitmapMatrix = e.getRef(Rr, Rr.__clid)); }, __class__: Ar, }); var Ir = function (e, t) { null == t && (t = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.records = []), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFMorphGradient"] = Ir).__name__ = [ "format", "swf", "data", "SWFMorphGradient", ]), (Ir.__interfaces__ = [br]), (Ir.prototype = { parse: function (e, t) { e.resetBitsPending(), (this.spreadMode = or.readUB(e, 2)), (this.interpolationMode = or.readUB(e, 2)); for (var s = 0, n = or.readUB(e, 4); s < n; ) { s++; this.records.push(or.readMORPHGRADIENTRECORD(e)); } }, publish: function (e, t) { var s = this.records.length; e.resetBitsPending(), or.writeUB(e, 2, this.spreadMode), or.writeUB(e, 2, this.interpolationMode), or.writeUB(e, 4, s); for (var n = 0, i = s; n < i; ) { var r = n++; or.writeMORPHGRADIENTRECORD(e, this.records[r]); } }, getMorphedGradient: function (e) { null == e && (e = 0); for (var t = new wr(), s = 0, n = this.records.length; s < n; ) { var i = s++; t.records.push(this.records[i].getMorphedGradientRecord(e)); } return t; }, toString: function () { return ( "(" + this.records.join(",") + "), spread:" + this.spreadMode + ", interpolation:" + this.interpolationMode ); }, getCLID: function () { return Ir.__clid; }, serialize: function (e) { var t = this.spreadMode; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.interpolationMode; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); var n = this.records; if (null == n) e.out.b.push(0); else { var i = n.length + 1; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); for (var r = 0; r < n.length; ) { var o = n[r]; ++r, e.addKnownRef(o); } } }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("spreadMode"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("interpolationMode"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("records"), e.fieldsTypes.push( Ap.PArray( Ap.PSerializable("format.swf.data.SWFMorphGradientRecord") ) ), (e.isFinal = mr.isClassFinal(Ir.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.spreadMode = t); var s, n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.interpolationMode = n); var i = e.input.b[e.inPos++]; 128 == i && ((i = e.input.getInt32(e.inPos)), (e.inPos += 4)); var r, o = i; if (0 == o) r = null; else { for (var a = [], l = 0, h = --o; l < h; ) { var _ = l++; (s = e.getRef(Br, Br.__clid)), (a[_] = s); } r = a; } this.records = r; }, __class__: Ir, }); var Cr = function (e, t) { null == t && (t = 1), Ir.call(this, e, t); }; ((s["format.swf.data.SWFMorphFocalGradient"] = Cr).__name__ = [ "format", "swf", "data", "SWFMorphFocalGradient", ]), (Cr.__super__ = Ir), (Cr.prototype = n(Ir.prototype, { parse: function (e, t) { Ir.prototype.parse.call(this, e, t), (this.startFocalPoint = or.readFIXED8(e)), (this.endFocalPoint = or.readFIXED8(e)); }, publish: function (e, t) { Ir.prototype.publish.call(this, e, t), or.writeFIXED8(e, this.startFocalPoint), or.writeFIXED8(e, this.endFocalPoint); }, getMorphedGradient: function (e) { null == e && (e = 0); for (var t = new wr(), s = 0, n = this.records.length; s < n; ) { var i = s++; t.records.push(this.records[i].getMorphedGradientRecord(e)); } return t; }, toString: function () { return ( "FocalPoint: " + this.startFocalPoint + "," + this.endFocalPoint + " (" + this.records.join(",") + ")" ); }, getCLID: function () { return Cr.__clid; }, serialize: function (e) { Ir.prototype.serialize.call(this, e), e.out.addInt32(bp.floatToI32(this.startFocalPoint)), e.out.addInt32(bp.floatToI32(this.endFocalPoint)); }, getSerializeSchema: function () { var e = Ir.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("startFocalPoint"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("endFocalPoint"), e.fieldsTypes.push(Ap.PFloat), (e.isFinal = mr.isClassFinal(Cr.__clid)), e ); }, unserialize: function (e) { Ir.prototype.unserialize.call(this, e); var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.startFocalPoint = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.endFocalPoint = s); }, __class__: Cr, })); var Br = function (e) { (this.__uid = (mr.SEQ << 24) | ++mr.UID), null != e && this.parse(e); }; ((s["format.swf.data.SWFMorphGradientRecord"] = Br).__name__ = [ "format", "swf", "data", "SWFMorphGradientRecord", ]), (Br.__interfaces__ = [br]), (Br.prototype = { parse: function (e) { (this.startRatio = or.readUI8(e)), (this.startColor = or.readRGBA(e)), (this.endRatio = or.readUI8(e)), (this.endColor = or.readRGBA(e)); }, publish: function (e) { or.writeUI8(e, this.startRatio), or.writeRGBA(e, this.startColor), or.writeUI8(e, this.endRatio), or.writeRGBA(e, this.endColor); }, getMorphedGradientRecord: function (e) { null == e && (e = 0); var t = new Sr(); return ( (t.color = zf.interpolate(this.startColor, this.endColor, e)), (t.ratio = (this.startRatio + (this.endRatio - this.startRatio) * e) | 0), t ); }, toString: function () { return ( "[" + this.startRatio + "," + zf.rgbaToString(this.startColor) + "," + this.endRatio + "," + zf.rgbaToString(this.endColor) + "]" ); }, getCLID: function () { return Br.__clid; }, serialize: function (e) { var t = this.startRatio; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.startColor; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); var n = this.endRatio; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); var i = this.endColor; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("startRatio"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("startColor"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("endRatio"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("endColor"), e.fieldsTypes.push(Ap.PInt), (e.isFinal = mr.isClassFinal(Br.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.startRatio = t); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.startColor = s); var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.endRatio = n); var i = e.input.b[e.inPos++]; 128 == i && ((i = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.endColor = i); }, __class__: Br, }); var Dr = function (e, t) { null == t && (t = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.startCapsStyle = 0), (this.endCapsStyle = 0), (this.jointStyle = 0), (this.miterLimitFactor = 3), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFMorphLineStyle"] = Dr).__name__ = [ "format", "swf", "data", "SWFMorphLineStyle", ]), (Dr.__interfaces__ = [br]), (Dr.prototype = { parse: function (e, t) { null == t && (t = 1), (this.startWidth = or.readUI16(e)), (this.endWidth = or.readUI16(e)), (this.startColor = or.readRGBA(e)), (this.endColor = or.readRGBA(e)); }, publish: function (e, t) { null == t && (t = 1), or.writeUI16(e, this.startWidth), or.writeUI16(e, this.endWidth), or.writeRGBA(e, this.startColor), or.writeRGBA(e, this.endColor); }, getMorphedLineStyle: function (e) { null == e && (e = 0); var t = new Er(); return ( this.hasFillFlag ? (t.fillType = this.fillType.getMorphedFillStyle(e)) : ((t.color = zf.interpolate(this.startColor, this.endColor, e)), (t.width = (this.startWidth + (this.endWidth - this.startWidth) * e) | 0)), (t.startCapsStyle = this.startCapsStyle), (t.endCapsStyle = this.endCapsStyle), (t.jointStyle = this.jointStyle), (t.hasFillFlag = this.hasFillFlag), (t.noHScaleFlag = this.noHScaleFlag), (t.noVScaleFlag = this.noVScaleFlag), (t.pixelHintingFlag = this.pixelHintingFlag), (t.noClose = this.noClose), (t.miterLimitFactor = this.miterLimitFactor), t ); }, toString: function () { return ( "[SWFMorphLineStyle] StartWidth: " + this.startWidth + ", EndWidth: " + this.endWidth + ", StartColor: " + zf.rgbaToString(this.startColor) + ", EndColor: " + zf.rgbaToString(this.endColor) ); }, getCLID: function () { return Dr.__clid; }, serialize: function (e) { var t = this.startWidth; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.endWidth; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); var n = this.startColor; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); var i = this.endColor; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); var r = this.startCapsStyle; 0 <= r && r < 128 ? e.out.b.push(r) : (e.out.b.push(128), e.out.addInt32(r)); var o = this.endCapsStyle; 0 <= o && o < 128 ? e.out.b.push(o) : (e.out.b.push(128), e.out.addInt32(o)); var a = this.jointStyle; 0 <= a && a < 128 ? e.out.b.push(a) : (e.out.b.push(128), e.out.addInt32(a)), e.out.b.push(this.hasFillFlag ? 1 : 0), e.out.b.push(this.noHScaleFlag ? 1 : 0), e.out.b.push(this.noVScaleFlag ? 1 : 0), e.out.b.push(this.pixelHintingFlag ? 1 : 0), e.out.b.push(this.noClose ? 1 : 0), e.out.addInt32(bp.floatToI32(this.miterLimitFactor)), e.addKnownRef(this.fillType); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("startWidth"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("endWidth"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("startColor"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("endColor"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("startCapsStyle"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("endCapsStyle"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("jointStyle"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("hasFillFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("noHScaleFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("noVScaleFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("pixelHintingFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("noClose"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("miterLimitFactor"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("fillType"), e.fieldsTypes.push( Ap.PSerializable("format.swf.data.SWFMorphFillStyle") ), (e.isFinal = mr.isClassFinal(Dr.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.startWidth = t); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.endWidth = s); var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.startColor = n); var i = e.input.b[e.inPos++]; 128 == i && ((i = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.endColor = i); var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.startCapsStyle = r); var o = e.input.b[e.inPos++]; 128 == o && ((o = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.endCapsStyle = o); var a = e.input.b[e.inPos++]; 128 == a && ((a = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.jointStyle = a), (this.hasFillFlag = 0 != e.input.b[e.inPos++]), (this.noHScaleFlag = 0 != e.input.b[e.inPos++]), (this.noVScaleFlag = 0 != e.input.b[e.inPos++]), (this.pixelHintingFlag = 0 != e.input.b[e.inPos++]), (this.noClose = 0 != e.input.b[e.inPos++]); var l = e.input.getFloat(e.inPos); (e.inPos += 4), (this.miterLimitFactor = l), (this.fillType = e.getRef(Ar, Ar.__clid)); }, __class__: Dr, }); var kr = function (e, t) { null == t && (t = 1), Dr.call(this, e, t); }; ((s["format.swf.data.SWFMorphLineStyle2"] = kr).__name__ = [ "format", "swf", "data", "SWFMorphLineStyle2", ]), (kr.__super__ = Dr), (kr.prototype = n(Dr.prototype, { parse: function (e, t) { null == t && (t = 1), (this.startWidth = or.readUI16(e)), (this.endWidth = or.readUI16(e)), (this.startCapsStyle = or.readUB(e, 2)), (this.jointStyle = or.readUB(e, 2)), (this.hasFillFlag = 1 == or.readUB(e, 1)), (this.noHScaleFlag = 1 == or.readUB(e, 1)), (this.noVScaleFlag = 1 == or.readUB(e, 1)), (this.pixelHintingFlag = 1 == or.readUB(e, 1)), or.readUB(e, 5), (this.noClose = 1 == or.readUB(e, 1)), (this.endCapsStyle = or.readUB(e, 2)), 2 == this.jointStyle && (this.miterLimitFactor = or.readFIXED8(e)), this.hasFillFlag ? (this.fillType = or.readMORPHFILLSTYLE(e, t)) : ((this.startColor = or.readRGBA(e)), (this.endColor = or.readRGBA(e))); }, publish: function (e, t) { null == t && (t = 1), or.writeUI16(e, this.startWidth), or.writeUI16(e, this.endWidth), or.writeUB(e, 2, this.startCapsStyle), or.writeUB(e, 2, this.jointStyle), or.writeUB(e, 1, this.hasFillFlag ? 1 : 0), or.writeUB(e, 1, this.noHScaleFlag ? 1 : 0), or.writeUB(e, 1, this.noVScaleFlag ? 1 : 0), or.writeUB(e, 1, this.pixelHintingFlag ? 1 : 0), or.writeUB(e, 5, 0), or.writeUB(e, 1, this.noClose ? 1 : 0), or.writeUB(e, 2, this.endCapsStyle), 2 == this.jointStyle && or.writeFIXED8(e, this.miterLimitFactor), this.hasFillFlag ? or.writeMORPHFILLSTYLE(e, this.fillType, t) : (or.writeRGBA(e, this.startColor), or.writeRGBA(e, this.endColor)); }, toString: function () { var e = "[SWFMorphLineStyle2] StartWidth: " + this.startWidth + ", EndWidth: " + this.endWidth + ", StartCaps: " + Uo.toString(this.startCapsStyle) + ", EndCaps: " + Uo.toString(this.endCapsStyle) + ", Joint: " + Go.toString(this.jointStyle); return ( this.hasFillFlag ? (e += ", Fill: " + this.fillType.toString()) : ((e += ", StartColor: " + zf.rgbaToString(this.startColor)), (e += ", EndColor: " + zf.rgbaToString(this.endColor))), e ); }, getCLID: function () { return kr.__clid; }, __class__: kr, })); var Fr = function (e) { null != e && this.parse(e); }; ((s["format.swf.data.SWFRawTag"] = Fr).__name__ = [ "format", "swf", "data", "SWFRawTag", ]), (Fr.prototype = { parse: function (e) { var t = e.position; (this.header = or.readTagHeader(e)), (this.bytes = or._new()); var s = e.position; (e.position = t), e.readBytes(jy.fromBytes(this.bytes), 0, this.header.get_tagLength()), (e.position = s); }, publish: function (e) { e.writeBytes(jy.fromBytes(this.bytes)); }, __class__: Fr, }); var Mr = function (e, t, s) { (this.type = e), (this.contentLength = t), (this.headerLength = s); }; ((s["format.swf.data.SWFRecordHeader"] = Mr).__name__ = [ "format", "swf", "data", "SWFRecordHeader", ]), (Mr.prototype = { get_tagLength: function () { return this.headerLength + this.contentLength; }, toString: function () { return ( "[SWFRecordHeader] type: " + this.type + ", headerLength: " + this.headerLength + ", contentlength: " + this.contentLength ); }, __class__: Mr, __properties__: { get_tagLength: "get_tagLength" }, }); var Lr = function (e) { (this.xmax = 11e3), (this.ymax = 8e3), (this._rectangle = new cy()), null != e && this.parse(e); }; ((s["format.swf.data.SWFRectangle"] = Lr).__name__ = [ "format", "swf", "data", "SWFRectangle", ]), (Lr.prototype = { parse: function (e) { e.resetBitsPending(); var t = or.readUB(e, 5); (this.xmin = or.readSB(e, t)), (this.xmax = or.readSB(e, t)), (this.ymin = or.readSB(e, t)), (this.ymax = or.readSB(e, t)); }, publish: function (e) { var t = e.calculateMaxBits(!0, [ this.xmin, this.xmax, this.ymin, this.ymax, ]); e.resetBitsPending(), or.writeUB(e, 5, t), or.writeSB(e, t, this.xmin), or.writeSB(e, t, this.xmax), or.writeSB(e, t, this.ymin), or.writeSB(e, t, this.ymax); }, clone: function () { var e = new Lr(); return ( (e.xmin = this.xmin), (e.xmax = this.xmax), (e.ymin = this.ymin), (e.ymax = this.ymax), e ); }, get_rect: function () { return ( this._rectangle.set_left(Vf.roundPixels20(this.xmin / 20)), this._rectangle.set_right(Vf.roundPixels20(this.xmax / 20)), this._rectangle.set_top(Vf.roundPixels20(this.ymin / 20)), this._rectangle.set_bottom(Vf.roundPixels20(this.ymax / 20)), this._rectangle ); }, toString: function () { return ( "(" + this.xmin + "," + this.xmax + "," + this.ymin + "," + this.ymax + ")" ); }, toStringSize: function () { return ( "(" + (this.xmax / 20 - this.xmin / 20) + "," + (this.ymax / 20 - this.ymin / 20) + ")" ); }, __class__: Lr, __properties__: { get_rect: "get_rect" }, }); var Nr = function (e) { null != e && this.parse(e); }; ((s["format.swf.data.SWFRegisterParam"] = Nr).__name__ = [ "format", "swf", "data", "SWFRegisterParam", ]), (Nr.prototype = { parse: function (e) { (this.register = or.readUI8(e)), (this.name = or.readSTRING(e)); }, publish: function (e) { or.writeUI8(e, this.register), or.writeSTRING(e, this.name); }, toString: function () { return this.register + ":" + this.name; }, __class__: Nr, }); var Or = function (e, t) { (this.offset = e), (this.name = t); }; ((s["format.swf.data.SWFScene"] = Or).__name__ = [ "format", "swf", "data", "SWFScene", ]), (Or.prototype = { toString: function () { return "Frame: " + this.offset + ", Name: " + this.name; }, __class__: Or, }); var Ur = function (e, t, s) { null == s && (s = 20), null == t && (t = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.edgeMapsCreated = !1), (this.records = []), (this.fillStyles = []), (this.lineStyles = []), (this.subLineStyles = []), (this.unitDivisor = s), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFShape"] = Ur).__name__ = [ "format", "swf", "data", "SWFShape", ]), (Ur.__interfaces__ = [br]), (Ur.getCoordMapKey = function (e) { return e.x + "_" + e.y; }), (Ur.prototype = { getMaxFillStyleIndex: function () { for (var e = 0, t = 0, s = this.records.length; t < s; ) { var n = t++, i = this.records[n]; if (2 == i.get_type()) { var r = Lp.__cast(i, Vr); if ( (r.fillStyle0 > e && (e = r.fillStyle0), r.fillStyle1 > e && (e = r.fillStyle1), r.stateNewStyles) ) break; } } return e; }, getMaxLineStyleIndex: function () { for (var e = 0, t = 0, s = this.records.length; t < s; ) { var n = t++, i = this.records[n]; if (2 == i.get_type()) { var r = Lp.__cast(i, Vr); if ((r.lineStyle > e && (e = r.lineStyle), r.stateNewStyles)) break; } } return e; }, parse: function (e, t) { null == t && (t = 1), e.resetBitsPending(); var s = or.readUB(e, 4), n = or.readUB(e, 4); this.readShapeRecords(e, s, n, t); }, publish: function (e, t) { null == t && (t = 1); var s = e.calculateMaxBits(!1, [this.getMaxFillStyleIndex()]), n = e.calculateMaxBits(!1, [this.getMaxLineStyleIndex()]); e.resetBitsPending(), or.writeUB(e, 4, s), or.writeUB(e, 4, n), this.writeShapeRecords(e, s, n, t); }, readShapeRecords: function (e, t, s, n) { null == n && (n = 1); for (var i = null; !Lp.__instanceof(i, Xr); ) { if (1 == or.readUB(e, 1)) { var r = 1 == or.readUB(e, 1), o = or.readUB(e, 4) + 2; i = r ? or.readSTRAIGHTEDGERECORD(e, o) : or.readCURVEDEDGERECORD(e, o); } else { var a = or.readUB(e, 5); if (0 == a) i = new Xr(); else { var l = or.readSTYLECHANGERECORD(e, a, t, s, n); l.stateNewStyles && ((t = l.numFillBits), (s = l.numLineBits)), (i = l); } } this.records.push(i); } }, writeShapeRecords: function (e, t, s, n) { null == n && (n = 1), (0 != this.records.length && Lp.__instanceof(this.records[this.records.length - 1], Xr)) || this.records.push(new Xr()); for (var i = 0, r = this.records.length; i < r; ) { var o = i++, a = this.records[o]; if (a.get_isEdgeRecord()) or.writeUB(e, 1, 1), 3 == a.get_type() ? (or.writeUB(e, 1, 1), or.writeSTRAIGHTEDGERECORD(e, Lp.__cast(a, Hr))) : (or.writeUB(e, 1, 0), or.writeCURVEDEDGERECORD(e, Lp.__cast(a, zr))); else if ((or.writeUB(e, 1, 0), 1 == a.get_type())) or.writeUB(e, 5, 0); else { var l = 0, h = Lp.__cast(a, Vr); h.stateNewStyles && (l |= 16), h.stateLineStyle && (l |= 8), h.stateFillStyle1 && (l |= 4), h.stateFillStyle0 && (l |= 2), h.stateMoveTo && (l |= 1), or.writeUB(e, 5, l), or.writeSTYLECHANGERECORD(e, h, t, s, n), h.stateNewStyles && ((t = h.numFillBits), (s = h.numLineBits)); } } }, export: function (e) { (this.edgeMapsCreated = !1), this.createEdgeMaps(), null == e && (e = new pa()), e.beginShape(); for (var t = 0, s = this.numGroups; t < s; ) { var n = t++; this.exportSubLinePath(e, n), this.exportFillPath(e, n), this.exportLinePath(e, n); } e.endShape(); }, createEdgeMaps: function () { if (!this.edgeMapsCreated) { var e, t, s, n = 0, i = 0, r = 0, o = 0, a = 0, l = 0, h = 0, _ = []; (this.numGroups = 0), (this.fillEdgeMaps = []), (this.lineEdgeMaps = []), (this.subLineEdgeMaps = []), (this.currentFillEdgeMap = new lp()), (this.currentLineEdgeMap = new lp()), (this.currentSubLineEdgeMap = new lp()); for (var u = 0, d = this.records.length; u < d; ) { var c = u++, f = this.records[c]; switch (f.get_type()) { case 1: this.processSubPath(_, h, a, l), this.cleanEdgeMap(this.currentFillEdgeMap), this.cleanEdgeMap(this.currentLineEdgeMap), this.cleanEdgeMap(this.currentSubLineEdgeMap), this.fillEdgeMaps.push(this.currentFillEdgeMap), this.lineEdgeMaps.push(this.currentLineEdgeMap), this.subLineEdgeMaps.push(this.currentSubLineEdgeMap), this.numGroups++; break; case 2: var p = Lp.__cast(f, Vr); (p.stateLineStyle || p.stateFillStyle0 || p.stateFillStyle1) && (this.processSubPath(_, h, a, l), (_ = [])), p.stateNewStyles && ((r = this.fillStyles.length), (o = this.lineStyles.length), this.appendFillStyles(this.fillStyles, p.fillStyles), this.appendLineStyles(this.lineStyles, p.lineStyles)), p.stateLineStyle && 0 == p.lineStyle && p.stateFillStyle0 && 0 == p.fillStyle0 && p.stateFillStyle1 && 0 == p.fillStyle1 ? (this.cleanEdgeMap(this.currentFillEdgeMap), this.cleanEdgeMap(this.currentLineEdgeMap), this.cleanEdgeMap(this.currentSubLineEdgeMap), this.fillEdgeMaps.push(this.currentFillEdgeMap), this.lineEdgeMaps.push(this.currentLineEdgeMap), this.subLineEdgeMaps.push(this.currentSubLineEdgeMap), (this.currentFillEdgeMap = new lp()), (this.currentLineEdgeMap = new lp()), (this.currentSubLineEdgeMap = new lp()), (l = a = h = 0), this.numGroups++) : (p.stateLineStyle && 0 < (h = p.lineStyle) && (h += o), p.stateFillStyle0 && 0 < (a = p.fillStyle0) && (a += r), p.stateFillStyle1 && 0 < (l = p.fillStyle1) && (l += r)), p.stateMoveTo && ((n = p.moveDeltaX / this.unitDivisor), (i = p.moveDeltaY / this.unitDivisor)); break; case 3: var b = Lp.__cast(f, Hr); (e = new qm(Vf.roundPixels400(n), Vf.roundPixels400(i))), b.generalLineFlag ? ((n += b.deltaX / this.unitDivisor), (i += b.deltaY / this.unitDivisor)) : b.vertLineFlag ? (i += b.deltaY / this.unitDivisor) : (n += b.deltaX / this.unitDivisor), (t = new qm(Vf.roundPixels400(n), Vf.roundPixels400(i))), _.push(new qo(e, t, h, l)); break; case 4: var m = Lp.__cast(f, zr); e = new qm(Vf.roundPixels400(n), Vf.roundPixels400(i)); var g = n + m.controlDeltaX / this.unitDivisor, w = i + m.controlDeltaY / this.unitDivisor; (n = g + m.anchorDeltaX / this.unitDivisor), (i = w + m.anchorDeltaY / this.unitDivisor), (s = new qm(g, w)), (t = new qm(Vf.roundPixels400(n), Vf.roundPixels400(i))), _.push(new Zo(e, s, t, h, l)); } } this.edgeMapsCreated = !0; } }, processSubPath: function (e, t, s, n) { var i = []; if ( 0 != s && null != this.fillStyles[s - 1] && !this.fillStyles[s - 1].is_transparent() && 0 != n && null != this.fillStyles[n - 1] && !this.fillStyles[n - 1].is_transparent() ) { var r = this.subLineStyles.length + 1; this.currentSubLineEdgeMap.h[r] = i; var o = this.fillStyles[n - 1]; if (0 == o.type) { var a = new Er(); (a.hasFillFlag = !0), (a.fillType = o), (a.noClose = !0), (a.width = 1), this.subLineStyles.push(a); for (var l = [], h = 0; h < e.length; ) { var _ = e[h]; ++h; var u = _.clone(); (u.subLineStyleIdx = r), l.push(u); } this.appendEdges(i, l); } } if (0 != s) { if (null == (i = this.currentFillEdgeMap.h[s])) { (this.currentFillEdgeMap.h[s] = []), (i = this.currentFillEdgeMap.h[s]); } for (var d = e.length - 1; 0 <= d; ) i.push(e[d].reverseWithNewFillStyle(s)), --d; } if (0 != n) { if (null == (i = this.currentFillEdgeMap.h[n])) { (this.currentFillEdgeMap.h[n] = []), (i = this.currentFillEdgeMap.h[n]); } this.appendEdges(i, e); } if (0 != t) { if (null == (i = this.currentLineEdgeMap.h[t])) { (this.currentLineEdgeMap.h[t] = []), (i = this.currentLineEdgeMap.h[t]); } this.appendEdges(i, e); } }, exportFillPath: function (t, e) { var s = this.createPathFromEdgeMap(this.fillEdgeMaps[e]), n = new qm(or.MAX_FLOAT_VALUE, or.MAX_FLOAT_VALUE), i = 0 | or.MAX_FLOAT_VALUE; if (0 < s.length) { t.beginFills(); for (var r = 0, o = s.length; r < o; ) { var a = s[r++]; if (i != a.fillStyleIdx) { i != or.MAX_FLOAT_VALUE && t.endFill(), (i = a.fillStyleIdx), (n = new qm(or.MAX_FLOAT_VALUE, or.MAX_FLOAT_VALUE)); try { var l, h = this.fillStyles[i - 1]; if (null != h) switch (h.type) { case 0: t.beginFill(zf.rgb(h.rgb), zf.alpha(h.rgb)); break; case 16: case 18: case 19: var _, u = [], d = [], c = []; ((l = h.gradientMatrix.get_matrix().clone()).tx /= 20), (l.ty /= 20); for (var f = 0, p = h.gradient.records.length; f < p; ) { var b = f++; (_ = h.gradient.records[b]), u.push(zf.rgb(_.color)), d.push(zf.alpha(_.color)), c.push(_.ratio); } t.beginGradientFill( 16 == h.type ? 0 : 1, u, d, c, l, Oo.toEnum(h.gradient.spreadMode), No.toEnum(h.gradient.interpolationMode), h.gradient.focalPoint ); break; case 64: case 65: case 66: case 67: var m = h.bitmapMatrix; (l = new Km( m.scaleX / 20, m.rotateSkew0 / 20, m.rotateSkew1 / 20, m.scaleY / 20, m.translateX / 20, m.translateY / 20 )), t.beginBitmapFill( h.bitmapId, l, 64 == h.type || 66 == h.type, 64 == h.type || 65 == h.type ); } else t.beginFill(16777215); } catch (e) { if ( ((jf.lastException = e) instanceof Mp && (e = e.val), !Lp.__instanceof(e, _v)) ) throw e; t.beginFill(0); } } if ( (n.equals(a.from) || t.moveTo(a.from.x, a.from.y), Lp.__instanceof(a, Zo)) ) { var g = a; t.curveTo(g.control.x, g.control.y, g.to.x, g.to.y); } else t.lineTo(a.to.x, a.to.y); n = a.to; } i != or.MAX_FLOAT_VALUE && t.endFill(), t.endFills(); } }, exportSubLinePath: function (e, t) { var s, n = this.createPathFromEdgeMap(this.subLineEdgeMaps[t]), i = new qm(or.MAX_FLOAT_VALUE, or.MAX_FLOAT_VALUE), r = 0 | or.MAX_FLOAT_VALUE; if (0 < n.length) { e.beginLines(); for (var o = 0, a = n.length; o < a; ) { var l = n[o++]; if ( (r != l.subLineStyleIdx && ((r = l.subLineStyleIdx), (i = new qm(or.MAX_FLOAT_VALUE, or.MAX_FLOAT_VALUE)), (s = this.subLineStyles.length > r - 1 ? this.subLineStyles[r - 1] : null), this.addLineStyleToHandler(e, s)), l.from.equals(i) || e.moveTo(l.from.x, l.from.y), Lp.__instanceof(l, Zo)) ) { var h = l; e.curveTo(h.control.x, h.control.y, h.to.x, h.to.y); } else e.lineTo(l.to.x, l.to.y); i = l.to; } e.endLines(); } }, exportLinePath: function (e, t) { var s, n = this.createPathFromEdgeMap(this.lineEdgeMaps[t]), i = new qm(or.MAX_FLOAT_VALUE, or.MAX_FLOAT_VALUE), r = 0 | or.MAX_FLOAT_VALUE; if (0 < n.length) { e.beginLines(); for (var o = 0, a = n.length; o < a; ) { var l = n[o++]; if ( (r != l.lineStyleIdx && ((r = l.lineStyleIdx), (i = new qm(or.MAX_FLOAT_VALUE, or.MAX_FLOAT_VALUE)), (s = this.lineStyles.length > r - 1 ? this.lineStyles[r - 1] : null), this.addLineStyleToHandler(e, s)), l.from.equals(i) || e.moveTo(l.from.x, l.from.y), Lp.__instanceof(l, Zo)) ) { var h = l; e.curveTo(h.control.x, h.control.y, h.to.x, h.to.y); } else e.lineTo(l.to.x, l.to.y); i = l.to; } e.endLines(); } }, addLineStyleToHandler: function (e, t) { if (null != t) { var s = 2; if ( (t.noHScaleFlag && t.noVScaleFlag ? (s = 1) : t.noHScaleFlag ? (s = 0) : t.noVScaleFlag && (s = 3), t.hasFillFlag) ) { var n = t.fillType; switch (n.type) { case 0: e.lineStyle( t.width / 20, zf.rgb(n.rgb), zf.alpha(n.rgb), t.pixelHintingFlag, s, Uo.toEnum(t.startCapsStyle), Uo.toEnum(t.endCapsStyle), Go.toEnum(t.jointStyle), t.miterLimitFactor ); break; case 16: case 18: case 19: var i, r = n.gradient, o = [], a = [], l = [], h = n.gradientMatrix.get_matrix().clone(); (h.tx /= 20), (h.ty /= 20); for (var _ = 0, u = n.gradient.records.length; _ < u; ) { var d = _++; (i = n.gradient.records[d]), o.push(zf.rgb(i.color)), a.push(zf.alpha(i.color)), l.push(i.ratio); } e.lineGradientStyle( 16 == n.type ? 0 : 1, o, a, l, h, Oo.toEnum(r.spreadMode), No.toEnum(r.interpolationMode), r.focalPoint ); break; case 64: case 65: case 66: case 67: var c = n.bitmapMatrix, f = new Km( c.scaleX / 20, c.rotateSkew0 / 20, c.rotateSkew1 / 20, c.scaleY / 20, c.translateX / 20, c.translateY / 20 ); e.lineBitmapStyle( n.bitmapId, f, 64 == n.type || 66 == n.type, 64 == n.type || 65 == n.type ); } } else e.lineStyle( t.width / 20, zf.rgb(t.color), zf.alpha(t.color), t.pixelHintingFlag, s, Uo.toEnum(t.startCapsStyle), Uo.toEnum(t.endCapsStyle), Go.toEnum(t.jointStyle), t.miterLimitFactor ); if (t.hasFillFlag) { var p = t.fillType; switch (p.type) { case 16: case 18: case 19: var b, m = [], g = [], w = [], v = p.gradientMatrix.get_matrix().clone(); (v.tx /= 20), (v.ty /= 20); for (var y = 0, T = p.gradient.records.length; y < T; ) { var S = y++; (b = p.gradient.records[S]), m.push(zf.rgb(b.color)), g.push(zf.alpha(b.color)), w.push(b.ratio); } e.lineGradientStyle( 16 == p.type ? 0 : 1, m, g, w, v, Oo.toEnum(p.gradient.spreadMode), No.toEnum(p.gradient.interpolationMode), p.gradient.focalPoint ); } } } else e.lineStyle(0); }, createPathFromEdgeMap: function (e) { for (var t = [], s = [], n = e.keys(); n.hasNext(); ) { var i = n.next(); s.push(0 | i); } s.sort(function (e, t) { return e - t; }); for (var r = 0, o = s.length; r < o; ) { var a = r++; this.appendEdges(t, e.h[s[a]]); } return t; }, cleanEdgeMap: function (e) { for (var t = e.keys(); t.hasNext(); ) { var s = t.next(), n = e.h[s]; if (null != n && 0 < n.length) { var i, r = null, o = []; for (this.createCoordMap(n); 0 < n.length; ) for (i = 0; i < n.length; ) if (null == r || r.to.equals(n[i].from)) { var a = n.splice(i, 1)[0]; o.push(a), this.removeEdgeFromCoordMap(a), (r = a); } else { var l = this.findNextEdgeInCoordMap(r); if (null != l) { for (var h = n.length; 0 <= --h; ) if (n[h] == l) { i = h; break; } } else (i = 0), (r = null); } e.h[s] = o; } } }, createCoordMap: function (e) { this.coordMap = new up(); for (var t = 0, s = e.length; t < s; ) { var n = t++, i = e[n].from, r = Ur.getCoordMapKey(i), o = this.coordMap, a = null != NT[r] ? o.getReserved(r) : o.h[r]; if (null == a) { var l = this.coordMap, h = [e[n]]; null != NT[r] ? l.setReserved(r, h) : (l.h[r] = h); } else a.push(e[n]); } }, removeEdgeFromCoordMap: function (e) { var t = Ur.getCoordMapKey(e.from), s = this.coordMap, n = null != NT[t] ? s.getReserved(t) : s.h[t]; if (null != n) if (1 == n.length) this.coordMap.remove(t); else for (var i = n.length; 0 <= --i; ) if (n[i] == e) { n.splice(i, 1); break; } }, findNextEdgeInCoordMap: function (e) { var t = Ur.getCoordMapKey(e.to), s = this.coordMap, n = null != NT[t] ? s.getReserved(t) : s.h[t]; return null != n && 0 < n.length ? n[0] : null; }, appendFillStyles: function (e, t) { for (var s = 0, n = t.length; s < n; ) { var i = s++; e.push(t[i]); } }, appendLineStyles: function (e, t) { for (var s = 0, n = t.length; s < n; ) { var i = s++; e.push(t[i]); } }, appendEdges: function (e, t) { for (var s = 0, n = t.length; s < n; ) { var i = s++; e.push(t[i]); } }, toString: function (e) { null == e && (e = 0); for ( var t = "\n" + Yf.repeat(e) + "ShapeRecords:", s = 0, n = this.records.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 2) + "[" + i + "] " + this.records[i].toString(e + 2); } return t; }, getCLID: function () { return Ur.__clid; }, serialize: function (e) { var t = this.records; if (null == t) e.out.b.push(0); else { var s = t.length + 1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); for (var n = 0; n < t.length; ) { var i = t[n]; ++n, e.addKnownRef(i); } } e.out.addInt32(bp.floatToI32(this.unitDivisor)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("records"), e.fieldsTypes.push( Ap.PArray(Ap.PSerializable("format.swf.data.SWFShapeRecord")) ), e.fieldsNames.push("unitDivisor"), e.fieldsTypes.push(Ap.PFloat), (e.isFinal = mr.isClassFinal(Ur.__clid)), e ); }, unserializeInit: function () { this.edgeMapsCreated = !1; }, unserialize: function (e) { var t, s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)); var n, i = s; if (0 == i) n = null; else { for (var r = [], o = 0, a = --i; o < a; ) { var l = o++; (t = e.getRef(Gr, Gr.__clid)), (r[l] = t); } n = r; } this.records = n; var h = e.input.getFloat(e.inPos); (e.inPos += 4), (this.unitDivisor = h); }, __class__: Ur, }); var Gr = function (e, t) { null == t && (t = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), null != e && this.parse(e, t); }; ((s["format.swf.data.SWFShapeRecord"] = Gr).__name__ = [ "format", "swf", "data", "SWFShapeRecord", ]), (Gr.__interfaces__ = [br]), (Gr.prototype = { get_type: function () { return 0; }, get_isEdgeRecord: function () { return 3 == this.get_type() || 4 == this.get_type(); }, parse: function (e, t) { null == t && (t = 1); }, publish: function (e, t) { null == t && (t = 1); }, clone: function () { return null; }, toString: function (e) { return null == e && (e = 0), "[SWFShapeRecord]"; }, getCLID: function () { return Gr.__clid; }, serialize: function (e) {}, getSerializeSchema: function () { var e = new Cp(); return (e.isFinal = mr.isClassFinal(Gr.__clid)), e; }, unserializeInit: function () {}, unserialize: function (e) {}, __class__: Gr, __properties__: { get_isEdgeRecord: "get_isEdgeRecord", get_type: "get_type", }, }); var zr = function (e, t, s) { null == s && (s = 1), null == t && (t = 0), (this.numBits = t), Gr.call(this, e, s); }; ((s["format.swf.data.SWFShapeRecordCurvedEdge"] = zr).__name__ = [ "format", "swf", "data", "SWFShapeRecordCurvedEdge", ]), (zr.__super__ = Gr), (zr.prototype = n(Gr.prototype, { parse: function (e, t) { null == t && (t = 1), (this.controlDeltaX = or.readSB(e, this.numBits)), (this.controlDeltaY = or.readSB(e, this.numBits)), (this.anchorDeltaX = or.readSB(e, this.numBits)), (this.anchorDeltaY = or.readSB(e, this.numBits)); }, publish: function (e, t) { throw (null == t && (t = 1), new Mp(":TODO:")); }, clone: function () { var e = new zr(); return ( (e.anchorDeltaX = this.anchorDeltaX), (e.anchorDeltaY = this.anchorDeltaY), (e.controlDeltaX = this.controlDeltaX), (e.controlDeltaY = this.controlDeltaY), (e.numBits = this.numBits), e ); }, get_type: function () { return 4; }, toString: function (e) { return ( null == e && (e = 0), "[SWFShapeRecordCurvedEdge] ControlDelta: " + this.controlDeltaX + "," + this.controlDeltaY + ", AnchorDelta: " + this.anchorDeltaX + "," + this.anchorDeltaY ); }, getCLID: function () { return zr.__clid; }, serialize: function (e) { Gr.prototype.serialize.call(this, e), e.out.addInt32(bp.floatToI32(this.controlDeltaX)), e.out.addInt32(bp.floatToI32(this.controlDeltaY)), e.out.addInt32(bp.floatToI32(this.anchorDeltaX)), e.out.addInt32(bp.floatToI32(this.anchorDeltaY)); var t = this.numBits; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); }, getSerializeSchema: function () { var e = Gr.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("controlDeltaX"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("controlDeltaY"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("anchorDeltaX"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("anchorDeltaY"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("numBits"), e.fieldsTypes.push(Ap.PInt), (e.isFinal = mr.isClassFinal(zr.__clid)), e ); }, unserialize: function (e) { Gr.prototype.unserialize.call(this, e); var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.controlDeltaX = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.controlDeltaY = s); var n = e.input.getFloat(e.inPos); (e.inPos += 4), (this.anchorDeltaX = n); var i = e.input.getFloat(e.inPos); (e.inPos += 4), (this.anchorDeltaY = i); var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.numBits = r); }, __class__: zr, })); var Xr = function () { Gr.call(this); }; ((s["format.swf.data.SWFShapeRecordEnd"] = Xr).__name__ = [ "format", "swf", "data", "SWFShapeRecordEnd", ]), (Xr.__super__ = Gr), (Xr.prototype = n(Gr.prototype, { clone: function () { return new Xr(); }, get_type: function () { return 1; }, toString: function (e) { return null == e && (e = 0), "[SWFShapeRecordEnd]"; }, getCLID: function () { return Xr.__clid; }, __class__: Xr, })); var Hr = function (e, t, s) { null == s && (s = 1), null == t && (t = 0), (this.numBits = t), Gr.call(this, e, s); }; ((s["format.swf.data.SWFShapeRecordStraightEdge"] = Hr).__name__ = [ "format", "swf", "data", "SWFShapeRecordStraightEdge", ]), (Hr.__super__ = Gr), (Hr.prototype = n(Gr.prototype, { parse: function (e, t) { null == t && (t = 1), (this.generalLineFlag = 1 == or.readUB(e, 1)), (this.vertLineFlag = !this.generalLineFlag && 1 == or.readUB(e, 1)), (this.deltaX = this.generalLineFlag || !this.vertLineFlag ? or.readSB(e, this.numBits) : 0), (this.deltaY = this.generalLineFlag || this.vertLineFlag ? or.readSB(e, this.numBits) : 0); }, publish: function (e, t) { throw (null == t && (t = 1), new Mp(":TODO:")); }, clone: function () { var e = new Hr(); return ( (e.deltaX = this.deltaX), (e.deltaY = this.deltaY), (e.generalLineFlag = this.generalLineFlag), (e.vertLineFlag = this.vertLineFlag), (e.numBits = this.numBits), e ); }, get_type: function () { return 3; }, toString: function (e) { null == e && (e = 0); var t = "[SWFShapeRecordStraightEdge] "; return ( this.generalLineFlag ? (t += "General: " + this.deltaX + "," + this.deltaY) : this.vertLineFlag ? (t += "Vertical: " + this.deltaY) : (t += "Horizontal: " + this.deltaX), t ); }, getCLID: function () { return Hr.__clid; }, serialize: function (e) { Gr.prototype.serialize.call(this, e), e.out.b.push(this.generalLineFlag ? 1 : 0), e.out.b.push(this.vertLineFlag ? 1 : 0), e.out.addInt32(bp.floatToI32(this.deltaY)), e.out.addInt32(bp.floatToI32(this.deltaX)); var t = this.numBits; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); }, getSerializeSchema: function () { var e = Gr.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("generalLineFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("vertLineFlag"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("deltaY"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("deltaX"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("numBits"), e.fieldsTypes.push(Ap.PInt), (e.isFinal = mr.isClassFinal(Hr.__clid)), e ); }, unserialize: function (e) { Gr.prototype.unserialize.call(this, e), (this.generalLineFlag = 0 != e.input.b[e.inPos++]), (this.vertLineFlag = 0 != e.input.b[e.inPos++]); var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.deltaY = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.deltaX = s); var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.numBits = n); }, __class__: Hr, })); var Vr = function (e, t, s, n, i) { null == i && (i = 1), null == n && (n = 0), null == s && (s = 0), null == t && (t = 0), (this.numLineBits = 0), (this.numFillBits = 0), (this.lineStyle = 0), (this.fillStyle1 = 0), (this.fillStyle0 = 0), (this.moveDeltaY = 0), (this.moveDeltaX = 0), (this.fillStyles = []), (this.lineStyles = []), (this.stateNewStyles = 0 != (16 & t)), (this.stateLineStyle = 0 != (8 & t)), (this.stateFillStyle1 = 0 != (4 & t)), (this.stateFillStyle0 = 0 != (2 & t)), (this.stateMoveTo = 0 != (1 & t)), (this.numFillBits = s), (this.numLineBits = n), Gr.call(this, e, i); }; ((s["format.swf.data.SWFShapeRecordStyleChange"] = Vr).__name__ = [ "format", "swf", "data", "SWFShapeRecordStyleChange", ]), (Vr.__super__ = Gr), (Vr.prototype = n(Gr.prototype, { get_type: function () { return 2; }, parse: function (e, t) { if ((null == t && (t = 1), this.stateMoveTo)) { var s = or.readUB(e, 5); (this.moveDeltaX = or.readSB(e, s)), (this.moveDeltaY = or.readSB(e, s)); } if ( ((this.fillStyle0 = this.stateFillStyle0 ? or.readUB(e, this.numFillBits) : 0), (this.fillStyle1 = this.stateFillStyle1 ? or.readUB(e, this.numFillBits) : 0), (this.lineStyle = this.stateLineStyle ? or.readUB(e, this.numLineBits) : 0), this.stateNewStyles) ) { e.resetBitsPending(); for (var n = 0, i = this.readStyleArrayLength(e, t); n < i; ) { n++; this.fillStyles.push(or.readFILLSTYLE(e, t)); } for (var r = 0, o = this.readStyleArrayLength(e, t); r < o; ) { r++; this.lineStyles.push( t <= 3 ? or.readLINESTYLE(e, t) : or.readLINESTYLE2(e, t) ); } e.resetBitsPending(), (this.numFillBits = or.readUB(e, 4)), (this.numLineBits = or.readUB(e, 4)); } }, publish: function (e, t) { throw (null == t && (t = 1), new Mp(":TODO:")); }, readStyleArrayLength: function (e, t) { null == t && (t = 1); var s = or.readUI8(e); return 2 <= t && 255 == s && (s = or.readUI16(e)), s; }, writeStyleArrayLength: function (e, t, s) { null == s && (s = 1), 2 <= s && 254 < t ? (or.writeUI8(e, 255), or.writeUI16(e, t)) : or.writeUI8(e, t); }, clone: function () { var e = new Vr(); (e.stateNewStyles = this.stateNewStyles), (e.stateLineStyle = this.stateLineStyle), (e.stateFillStyle1 = this.stateFillStyle1), (e.stateFillStyle0 = this.stateFillStyle0), (e.stateMoveTo = this.stateMoveTo), (e.moveDeltaX = this.moveDeltaX), (e.moveDeltaY = this.moveDeltaY), (e.fillStyle0 = this.fillStyle0), (e.fillStyle1 = this.fillStyle1), (e.lineStyle = this.lineStyle), (e.numFillBits = this.numFillBits), (e.numLineBits = this.numLineBits); for (var t = 0, s = this.fillStyles.length; t < s; ) { var n = t++; e.fillStyles.push(this.fillStyles[n].clone()); } for (var i = 0, r = this.lineStyles.length; i < r; ) { var o = i++; e.lineStyles.push(this.lineStyles[o].clone()); } return e; }, toString: function (e) { null == e && (e = 0); var t = "[SWFShapeRecordStyleChange] ", s = []; if ( (this.stateMoveTo && s.push("MoveTo: " + this.moveDeltaX + "," + this.moveDeltaY), this.stateFillStyle0 && s.push("FillStyle0: " + this.fillStyle0), this.stateFillStyle1 && s.push("FillStyle1: " + this.fillStyle1), this.stateLineStyle && s.push("LineStyle: " + this.lineStyle), 0 < s.length && (t += s.join(", ")), this.stateNewStyles) ) { if (0 < this.fillStyles.length) { t += "\n" + Yf.repeat(e + 2) + "New FillStyles:"; for (var n = 0, i = this.fillStyles.length; n < i; ) { var r = n++; t += "\n" + Yf.repeat(e + 4) + "[" + (r + 1) + "] " + this.fillStyles[r].toString(); } } if (0 < this.lineStyles.length) { t += "\n" + Yf.repeat(e + 2) + "New LineStyles:"; for (var o = 0, a = this.lineStyles.length; o < a; ) { var l = o++; t += "\n" + Yf.repeat(e + 4) + "[" + (l + 1) + "] " + this.lineStyles[l].toString(); } } } return t; }, getCLID: function () { return Vr.__clid; }, serialize: function (e) { Gr.prototype.serialize.call(this, e), e.out.b.push(this.stateNewStyles ? 1 : 0), e.out.b.push(this.stateLineStyle ? 1 : 0), e.out.b.push(this.stateFillStyle1 ? 1 : 0), e.out.b.push(this.stateFillStyle0 ? 1 : 0), e.out.b.push(this.stateMoveTo ? 1 : 0), e.out.addInt32(bp.floatToI32(this.moveDeltaX)), e.out.addInt32(bp.floatToI32(this.moveDeltaY)); var t = this.fillStyle0; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.fillStyle1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); var n = this.lineStyle; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); var i = this.numFillBits; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); var r = this.numLineBits; 0 <= r && r < 128 ? e.out.b.push(r) : (e.out.b.push(128), e.out.addInt32(r)); var o = this.fillStyles; if (null == o) e.out.b.push(0); else { var a = o.length + 1; 0 <= a && a < 128 ? e.out.b.push(a) : (e.out.b.push(128), e.out.addInt32(a)); for (var l = 0; l < o.length; ) { var h = o[l]; ++l, e.addKnownRef(h); } } var _ = this.lineStyles; if (null == _) e.out.b.push(0); else { var u = _.length + 1; 0 <= u && u < 128 ? e.out.b.push(u) : (e.out.b.push(128), e.out.addInt32(u)); for (var d = 0; d < _.length; ) { var c = _[d]; ++d, e.addKnownRef(c); } } }, getSerializeSchema: function () { var e = Gr.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("stateNewStyles"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("stateLineStyle"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("stateFillStyle1"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("stateFillStyle0"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("stateMoveTo"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("moveDeltaX"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("moveDeltaY"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("fillStyle0"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("fillStyle1"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("lineStyle"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("numFillBits"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("numLineBits"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("fillStyles"), e.fieldsTypes.push( Ap.PArray(Ap.PSerializable("format.swf.data.SWFFillStyle")) ), e.fieldsNames.push("lineStyles"), e.fieldsTypes.push( Ap.PArray(Ap.PSerializable("format.swf.data.SWFLineStyle")) ), (e.isFinal = mr.isClassFinal(Vr.__clid)), e ); }, unserializeInit: function () { Gr.prototype.unserializeInit.call(this), (this.moveDeltaX = 0), (this.moveDeltaY = 0), (this.fillStyle0 = 0), (this.fillStyle1 = 0), (this.lineStyle = 0), (this.numFillBits = 0), (this.numLineBits = 0); }, unserialize: function (e) { Gr.prototype.unserialize.call(this, e), (this.stateNewStyles = 0 != e.input.b[e.inPos++]), (this.stateLineStyle = 0 != e.input.b[e.inPos++]), (this.stateFillStyle1 = 0 != e.input.b[e.inPos++]), (this.stateFillStyle0 = 0 != e.input.b[e.inPos++]), (this.stateMoveTo = 0 != e.input.b[e.inPos++]); var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.moveDeltaX = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.moveDeltaY = s); var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.fillStyle0 = n); var i = e.input.b[e.inPos++]; 128 == i && ((i = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.fillStyle1 = i); var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.lineStyle = r); var o = e.input.b[e.inPos++]; 128 == o && ((o = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.numFillBits = o); var a, l = e.input.b[e.inPos++]; 128 == l && ((l = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.numLineBits = l); var h = e.input.b[e.inPos++]; 128 == h && ((h = e.input.getInt32(e.inPos)), (e.inPos += 4)); var _, u, d = h; if (0 == d) _ = null; else { for (var c = [], f = 0, p = --d; f < p; ) { var b = f++; (a = e.getRef(gr, gr.__clid)), (c[b] = a); } _ = c; } this.fillStyles = _; var m = e.input.b[e.inPos++]; 128 == m && ((m = e.input.getInt32(e.inPos)), (e.inPos += 4)); var g, w = m; if (0 == w) g = null; else { for (var v = [], y = 0, T = --w; y < T; ) { var S = y++; (u = e.getRef(Er, Er.__clid)), (v[S] = u); } g = v; } this.lineStyles = g; }, __class__: Vr, })); var Yr = function (e, t, s) { null == s && (s = 20), null == t && (t = 1), (this.initialFillStyles = []), (this.initialLineStyles = []), Ur.call(this, e, t, s); }; ((s["format.swf.data.SWFShapeWithStyle"] = Yr).__name__ = [ "format", "swf", "data", "SWFShapeWithStyle", ]), (Yr.__super__ = Ur), (Yr.prototype = n(Ur.prototype, { parse: function (e, t) { null == t && (t = 1), e.resetBitsPending(); for (var s = 0, n = this.readStyleArrayLength(e, t); s < n; ) { s++; this.initialFillStyles.push(or.readFILLSTYLE(e, t)); } for (var i = 0, r = this.readStyleArrayLength(e, t); i < r; ) { i++; this.initialLineStyles.push( t <= 3 ? or.readLINESTYLE(e, t) : or.readLINESTYLE2(e, t) ); } e.resetBitsPending(); var o = or.readUB(e, 4), a = or.readUB(e, 4); this.readShapeRecords(e, o, a, t); }, publish: function (e, t) { null == t && (t = 1), e.resetBitsPending(); var s = this.initialFillStyles.length; this.writeStyleArrayLength(e, s, t); for (var n = 0, i = s; n < i; ) { var r = n++; this.initialFillStyles[r].publish(e, t); } var o = this.initialLineStyles.length; this.writeStyleArrayLength(e, o, t); for (var a = 0, l = o; a < l; ) { var h = a++; this.initialLineStyles[h].publish(e, t); } var _ = e.calculateMaxBits(!1, [this.getMaxFillStyleIndex()]), u = e.calculateMaxBits(!1, [this.getMaxLineStyleIndex()]); e.resetBitsPending(), or.writeUB(e, 4, _), or.writeUB(e, 4, u), this.writeShapeRecords(e, _, u, t); }, export: function (e) { (this.fillStyles = this.initialFillStyles.slice()), (this.lineStyles = this.initialLineStyles.slice()), Ur.prototype.export.call(this, e); }, toString: function (e) { null == e && (e = 0); var t = ""; if (0 < this.initialFillStyles.length) { t += "\n" + Yf.repeat(e) + "FillStyles:"; for (var s = 0, n = this.initialFillStyles.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 2) + "[" + (i + 1) + "] " + this.initialFillStyles[i].toString(); } } if (0 < this.initialLineStyles.length) { t += "\n" + Yf.repeat(e) + "LineStyles:"; for (var r = 0, o = this.initialLineStyles.length; r < o; ) { var a = r++; t += "\n" + Yf.repeat(e + 2) + "[" + (a + 1) + "] " + this.initialLineStyles[a].toString(); } } return t + Ur.prototype.toString.call(this, e); }, readStyleArrayLength: function (e, t) { null == t && (t = 1); var s = or.readUI8(e); return 2 <= t && 255 == s && (s = or.readUI16(e)), s; }, writeStyleArrayLength: function (e, t, s) { null == s && (s = 1), 2 <= s && 254 < t ? (or.writeUI8(e, 255), or.writeUI16(e, t)) : or.writeUI8(e, t); }, getCLID: function () { return Yr.__clid; }, __class__: Yr, })); var Wr = function (e) { null != e && this.parse(e); }; ((s["format.swf.data.SWFSoundEnvelope"] = Wr).__name__ = [ "format", "swf", "data", "SWFSoundEnvelope", ]), (Wr.prototype = { parse: function (e) { (this.pos44 = or.readUI32(e)), (this.leftLevel = or.readUI16(e)), (this.rightLevel = or.readUI16(e)); }, publish: function (e) { or.writeUI32(e, this.pos44), or.writeUI16(e, this.leftLevel), or.writeUI16(e, this.rightLevel); }, clone: function () { var e = new Wr(); return ( (e.pos44 = this.pos44), (e.leftLevel = this.leftLevel), (e.rightLevel = this.rightLevel), e ); }, toString: function () { return "[SWFSoundEnvelope]"; }, __class__: Wr, }); var jr = function (e) { (this.envelopeRecords = []), null != e && this.parse(e); }; ((s["format.swf.data.SWFSoundInfo"] = jr).__name__ = [ "format", "swf", "data", "SWFSoundInfo", ]), (jr.prototype = { parse: function (e) { var t = or.readUI8(e); if ( ((this.syncStop = 0 != (32 & t)), (this.syncNoMultiple = 0 != (16 & t)), (this.hasEnvelope = 0 != (8 & t)), (this.hasLoops = 0 != (4 & t)), (this.hasOutPoint = 0 != (2 & t)), (this.hasInPoint = 0 != (1 & t)), this.hasInPoint && (this.inPoint = or.readUI32(e)), this.hasOutPoint && (this.outPoint = or.readUI32(e)), this.hasLoops && (this.loopCount = or.readUI16(e)), this.hasEnvelope) ) for (var s = 0, n = or.readUI8(e); s < n; ) { s++; this.envelopeRecords.push(or.readSOUNDENVELOPE(e)); } }, publish: function (e) { var t = 0; if ( (this.syncStop && (t |= 32), this.syncNoMultiple && (t |= 16), this.hasEnvelope && (t |= 8), this.hasLoops && (t |= 4), this.hasOutPoint && (t |= 2), this.hasInPoint && (t |= 1), or.writeUI8(e, t), this.hasInPoint && or.writeUI32(e, this.inPoint), this.hasOutPoint && or.writeUI32(e, this.outPoint), this.hasLoops && or.writeUI16(e, this.loopCount), this.hasEnvelope) ) { var s = this.envelopeRecords.length; or.writeUI8(e, s); for (var n = 0, i = s; n < i; ) { var r = n++; or.writeSOUNDENVELOPE(e, this.envelopeRecords[r]); } } }, clone: function () { var e = new jr(); (e.syncStop = this.syncStop), (e.syncNoMultiple = this.syncNoMultiple), (e.hasEnvelope = this.hasEnvelope), (e.hasLoops = this.hasLoops), (e.hasOutPoint = this.hasOutPoint), (e.hasInPoint = this.hasInPoint), (e.outPoint = this.outPoint), (e.inPoint = this.inPoint), (e.loopCount = this.loopCount); for (var t = 0, s = this.envelopeRecords.length; t < s; ) { var n = t++; e.envelopeRecords.push(this.envelopeRecords[n].clone()); } return e; }, toString: function () { return "[SWFSoundInfo]"; }, __class__: jr, }); var Kr = function (e) { null != e && this.parse(e); }; ((s["format.swf.data.SWFSymbol"] = Kr).__name__ = [ "format", "swf", "data", "SWFSymbol", ]), (Kr.create = function (e, t) { var s = new Kr(); return (s.tagId = e), (s.name = t), s; }), (Kr.prototype = { parse: function (e) { (this.tagId = or.readUI16(e)), (this.name = or.readSTRING(e)); }, publish: function (e) { or.writeUI16(e, this.tagId), or.writeSTRING(e, this.name); }, toString: function () { return "TagID: " + this.tagId + ", Name: " + this.name; }, __class__: Kr, }); var Eo = function (e, t, s, n, i) { null == i && (i = 1), null == s && (s = 0), null == t && (t = 0), (this.glyphEntries = []), null != e && this.parse(e, t, s, n, i); }; ((s["format.swf.data.SWFTextRecord"] = Eo).__name__ = [ "format", "swf", "data", "SWFTextRecord", ]), (Eo.prototype = { parse: function (e, t, s, n, i) { null == i && (i = 1), (this._level = i); var r = or.readUI8(e); (this.type = r >> 7), (this.hasFont = 0 != (8 & r)), (this.hasColor = 0 != (4 & r)), (this.hasYOffset = 0 != (2 & r)), (this.hasXOffset = 0 != (1 & r)), this.hasFont ? (this.fontId = or.readUI16(e)) : null != n && (this.fontId = n.fontId), this.hasColor ? (this.textColor = i < 2 ? or.readRGB(e) : or.readRGBA(e)) : null != n && (this.textColor = n.textColor), this.hasXOffset ? (this.xOffset = or.readSI16(e)) : null != n && (this.xOffset = n.xOffset), this.hasYOffset ? (this.yOffset = or.readSI16(e)) : null != n && (this.yOffset = n.yOffset), this.hasFont ? (this.textHeight = or.readUI16(e)) : null != n && (this.textHeight = n.textHeight); for (var o = 0, a = or.readUI8(e); o < a; ) { o++; this.glyphEntries.push(or.readGLYPHENTRY(e, t, s)); } }, publish: function (e, t, s, n, i) { null == i && (i = 1); var r = this.type << 7; (this.hasFont = null == n || n.fontId != this.fontId || n.textHeight != this.textHeight), (this.hasColor = null == n || n.textColor != this.textColor), (this.hasXOffset = null == n || n.xOffset != this.xOffset), (this.hasYOffset = null == n || n.yOffset != this.yOffset), this.hasFont && (r |= 8), this.hasColor && (r |= 4), this.hasYOffset && (r |= 2), this.hasXOffset && (r |= 1), or.writeUI8(e, r), this.hasFont && or.writeUI16(e, this.fontId), this.hasColor && (2 <= i ? or.writeRGBA(e, this.textColor) : or.writeRGB(e, this.textColor)), this.hasXOffset && or.writeSI16(e, this.xOffset), this.hasYOffset && or.writeSI16(e, this.yOffset), this.hasFont && or.writeUI16(e, this.textHeight); var o = this.glyphEntries.length; or.writeUI8(e, o); for (var a = 0, l = o; a < l; ) { var h = a++; or.writeGLYPHENTRY(e, this.glyphEntries[h], t, s); } }, clone: function () { var e = new Eo(); (e.type = this.type), (e.hasFont = this.hasFont), (e.hasColor = this.hasColor), (e.hasXOffset = this.hasXOffset), (e.hasYOffset = this.hasYOffset), (e.fontId = this.fontId), (e.textColor = this.textColor), (e.textHeight = this.textHeight), (e.xOffset = this.xOffset), (e.yOffset = this.yOffset); for (var t = 0, s = this.glyphEntries.length; t < s; ) { var n = t++; e.glyphEntries.push(this.glyphEntries[n].clone()); } return e; }, toString: function (e) { null == e && (e = 0); var t = ["Glyphs: " + Ue.string(this.glyphEntries.length)]; this.hasFont && (t.push("FontID: " + this.fontId), t.push("Height: " + this.textHeight)), this.hasColor && t.push( "Color: " + (this._level <= 2 ? zf.rgbToString(this.textColor) : zf.rgbaToString(this.textColor)) ), this.hasXOffset && t.push("XOffset: " + this.xOffset), this.hasYOffset && t.push("YOffset: " + this.yOffset); for ( var s = t.join(", "), n = 0, i = this.glyphEntries.length; n < i; ) { var r = n++; s += "\n" + Yf.repeat(e + 2) + "[" + r + "] " + this.glyphEntries[r].toString(); } return s; }, __class__: Eo, }); var Po = function (e) { null != e && this.parse(e); }; ((s["format.swf.data.SWFZoneData"] = Po).__name__ = [ "format", "swf", "data", "SWFZoneData", ]), (Po.prototype = { parse: function (e) { (this.alignmentCoordinate = or.readFLOAT16(e)), (this.range = or.readFLOAT16(e)); }, publish: function (e) { or.writeFLOAT16(e, this.alignmentCoordinate), or.writeFLOAT16(e, this.range); }, toString: function () { return "(" + this.alignmentCoordinate + "," + this.range + ")"; }, __class__: Po, }); var Ro = function (e) { (this.zoneData = []), null != e && this.parse(e); }; ((s["format.swf.data.SWFZoneRecord"] = Ro).__name__ = [ "format", "swf", "data", "SWFZoneRecord", ]), (Ro.prototype = { parse: function (e) { for (var t = 0, s = or.readUI8(e); t < s; ) { t++; this.zoneData.push(or.readZONEDATA(e)); } var n = or.readUI8(e); (this.maskX = 0 != (1 & n)), (this.maskY = 0 != (2 & n)); }, publish: function (e) { var t = this.zoneData.length; or.writeUI8(e, t); for (var s = 0, n = t; s < n; ) { var i = s++; or.writeZONEDATA(e, this.zoneData[i]); } var r = 0; this.maskX && (r |= 1), this.maskY && (r |= 2), or.writeUI8(e, r); }, toString: function (e) { null == e && (e = 0); for ( var t = "MaskY: " + Ue.string(this.maskY) + ", MaskX: " + Ue.string(this.maskX), s = 0, n = this.zoneData.length; s < n; ) { var i = s++; t += ", " + i + ": " + this.zoneData[i].toString(); } return t; }, __class__: Ro, }); var Ao = function () {}; ((s["format.swf.data.actions.IAction"] = Ao).__name__ = [ "format", "swf", "data", "actions", "IAction", ]), (Ao.prototype = { __class__: Ao, __properties__: { get_lengthWithHeader: "get_lengthWithHeader" }, }); var Io = function (e, t, s) { (this.code = e), (this.length = t), (this.pos = s); }; ((s["format.swf.data.actions.Action"] = Io).__name__ = [ "format", "swf", "data", "actions", "Action", ]), (Io.__interfaces__ = [Ao]), (Io.resolveOffsets = function (e) { for (var t, s = e.length, n = 0, i = s; n < i; ) { var r = n++; if (((t = e.data[r]), Lp.__instanceof(t, Bo))) { var o = 0, a = !1, l = t, h = l.pos + l.get_lengthWithHeader() + l.branchOffset; if (h <= l.pos) for (o = r; 0 <= o; ) { if (h == e.data[o].pos) { a = !0; break; } --o; } else { for (; o < s; ) { if (h == e.data[o].pos) { a = !0; break; } ++o; } a || (h == (t = e.data[o - 1]).pos + t.get_lengthWithHeader() && ((o = -1), (a = !0))); } l.branchIndex = a ? o : -2; } } }), (Io.prototype = { get_lengthWithHeader: function () { return this.length + (128 <= this.code ? 3 : 1); }, parse: function (e) {}, publish: function (e) { this.write(e); }, clone: function () { return new Io(this.code, this.length, this.pos); }, write: function (e, t) { if ((or.writeUI8(e, this.code), 128 <= this.code)) { if (!(null != t && 0 < or.get_length(t))) throw ( ((this.length = 0), new Mp(new _v("Action body null or empty."))) ); (this.length = or.get_length(t)), or.writeUI16(e, this.length), e.writeBytes(jy.fromBytes(t)); } else this.length = 0; }, toString: function (e) { return ( null == e && (e = 0), "[Action] Code: " + Ri.hex(this.code) + ", Length: " + this.length ); }, __class__: Io, __properties__: { get_lengthWithHeader: "get_lengthWithHeader" }, }); var Co = function (e, t, s) { Io.call(this, e, t, s); }; ((s["format.swf.data.actions.ActionUnknown"] = Co).__name__ = [ "format", "swf", "data", "actions", "ActionUnknown", ]), (Co.__interfaces__ = [Ao]), (Co.__super__ = Io), (Co.prototype = n(Io.prototype, { parse: function (e) { 0 < this.length && or.skipBytes(e, this.length); }, toString: function (e) { return ( null == e && (e = 0), "[????] Code: " + Ri.hex(this.code) + ", Length: " + this.length ); }, __class__: Co, })); var Bo = function () {}; ((s["format.swf.data.actions.IActionBranch"] = Bo).__name__ = [ "format", "swf", "data", "actions", "IActionBranch", ]), (Bo.__interfaces__ = [Ao]), (Bo.prototype = { __class__: Bo }); var Do = function (e, t, s) { Io.call(this, e, t, s); }; ((s["format.swf.data.actions.swf3.ActionStop"] = Do).__name__ = [ "format", "swf", "data", "actions", "swf3", "ActionStop", ]), (Do.__interfaces__ = [Ao]), (Do.__super__ = Io), (Do.prototype = n(Io.prototype, { toString: function (e) { return null == e && (e = 0), "[ActionStop]"; }, __class__: Do, })); var ko = function () {}; ((s["format.swf.data.consts.BitmapFormat"] = ko).__name__ = [ "format", "swf", "data", "consts", "BitmapFormat", ]), (ko.toString = function (e) { switch (e) { case 3: return "8 BPP"; case 4: return "15 BPP"; case 5: return "24 BPP"; default: return "unknown"; } }); var Fo = function () {}; ((s["format.swf.data.consts.BitmapType"] = Fo).__name__ = [ "format", "swf", "data", "consts", "BitmapType", ]), (Fo.toString = function (e) { switch (e) { case 1: return "JPEG"; case 2: return "GIF89a"; case 3: return "PNG"; default: return "unknown"; } }); var Mo = function () {}; ((s["format.swf.data.consts.BlendMode"] = Mo).__name__ = [ "format", "swf", "data", "consts", "BlendMode", ]), (Mo.toString = function (e) { switch (e) { case 0: case 1: return "normal"; case 2: return "layer"; case 3: return "multiply"; case 4: return "screen"; case 5: return "lighten"; case 6: return "darken"; case 7: return "difference"; case 8: return "add"; case 9: return "subtract"; case 10: return "invert"; case 11: return "alpha"; case 12: return "erase"; case 13: return "overlay"; case 14: return "hardlight"; default: return "unknown"; } }); var Lo = function () {}; ((s["format.swf.data.consts.CSMTableHint"] = Lo).__name__ = [ "format", "swf", "data", "consts", "CSMTableHint", ]), (Lo.toString = function (e) { switch (e) { case 0: return "thin"; case 1: return "medium"; case 2: return "thick"; default: return "unknown"; } }); var No = function () {}; ((s["format.swf.data.consts.GradientInterpolationMode"] = No).__name__ = [ "format", "swf", "data", "consts", "GradientInterpolationMode", ]), (No.toEnum = function (e) { switch (e) { case 0: return 1; case 1: return 0; default: return 1; } }), (No.toString = function (e) { switch (e) { case 0: return Sw.toString(1).toLowerCase(); case 1: return Sw.toString(0).toLowerCase(); default: return Sw.toString(1).toLowerCase(); } }); var Oo = function () {}; ((s["format.swf.data.consts.GradientSpreadMode"] = Oo).__name__ = [ "format", "swf", "data", "consts", "GradientSpreadMode", ]), (Oo.toEnum = function (e) { switch (e) { case 0: return 0; case 1: return 1; case 2: return 2; default: return 0; } }), (Oo.toString = function (e) { switch (e) { case 0: return Mw.toString(0).toLowerCase(); case 1: return Mw.toString(1).toLowerCase(); case 2: return Mw.toString(2).toLowerCase(); default: return "unknown"; } }); var Uo = function () {}; ((s["format.swf.data.consts.LineCapsStyle"] = Uo).__name__ = [ "format", "swf", "data", "consts", "LineCapsStyle", ]), (Uo.toEnum = function (e) { return 1; }), (Uo.toString = function (e) { switch (e) { case 0: return iw.toString(1).toLowerCase(); case 1: return iw.toString(0).toLowerCase(); case 2: return iw.toString(2).toLowerCase(); default: return "unknown"; } }); var Go = function () {}; ((s["format.swf.data.consts.LineJointStyle"] = Go).__name__ = [ "format", "swf", "data", "consts", "LineJointStyle", ]), (Go.toEnum = function (e) { switch (e) { case 0: return 2; case 1: return 0; case 2: return 1; default: return 2; } }), (Go.toString = function (e) { switch (e) { case 0: return Ew.toString(2).toLowerCase(); case 1: return Ew.toString(0).toLowerCase(); case 2: return Ew.toString(1).toLowerCase(); default: return "null"; } }); var zo = function () {}; ((s["format.swf.data.consts.SoundCompression"] = zo).__name__ = [ "format", "swf", "data", "consts", "SoundCompression", ]), (zo.toString = function (e) { switch (e) { case 0: return "Uncompressed Native Endian"; case 1: return "ADPCM"; case 2: return "MP3"; case 3: return "Uncompressed Little Endian"; case 4: return "Nellymoser 16kHz"; case 5: return "Nellymoser 8kHz"; case 6: return "Nellymoser"; case 11: return "Speex"; default: return "unknown"; } }); var Xo = function () {}; ((s["format.swf.data.consts.SoundRate"] = Xo).__name__ = [ "format", "swf", "data", "consts", "SoundRate", ]), (Xo.toString = function (e) { switch (e) { case 0: return "5.5kHz"; case 1: return "11kHz"; case 2: return "22kHz"; case 3: return "44kHz"; default: return "unknown"; } }); var Ho = function () {}; ((s["format.swf.data.consts.SoundSize"] = Ho).__name__ = [ "format", "swf", "data", "consts", "SoundSize", ]), (Ho.toString = function (e) { switch (e) { case 0: return "8bit"; case 1: return "16bit"; default: return "unknown"; } }); var Vo = function () {}; ((s["format.swf.data.consts.SoundType"] = Vo).__name__ = [ "format", "swf", "data", "consts", "SoundType", ]), (Vo.toString = function (e) { switch (e) { case 0: return "mono"; case 1: return "stereo"; default: return "unknown"; } }); var Yo = function () {}; ((s["format.swf.data.consts.VideoCodecID"] = Yo).__name__ = [ "format", "swf", "data", "consts", "VideoCodecID", ]), (Yo.toString = function (e) { switch (e) { case 2: return "H.263"; case 3: return "Screen Video"; case 4: return "VP6"; case 5: return "VP6 With Alpha"; case 6: return "Screen Video V2"; default: return "unknown"; } }); var Wo = function () {}; ((s["format.swf.data.consts.VideoDeblockingType"] = Wo).__name__ = [ "format", "swf", "data", "consts", "VideoDeblockingType", ]), (Wo.toString = function (e) { switch (e) { case 0: return "videopacket"; case 1: return "off"; case 2: return "level 1"; case 3: return "level 2"; case 4: return "level 3"; case 5: return "level 4"; default: return "unknown"; } }); var jo = function () {}; ((s["format.swf.data.etc.IEdge"] = jo).__name__ = [ "format", "swf", "data", "etc", "IEdge", ]), (jo.prototype = { __class__: jo }); var Ko = function () { this.__uid = (mr.SEQ << 24) | ++mr.UID; }; ((s["format.swf.data.etc.Edge"] = Ko).__name__ = [ "format", "swf", "data", "etc", "Edge", ]), (Ko.__interfaces__ = [br, jo]), (Ko.prototype = { reverseWithNewFillStyle: function (e) { throw new Mp( "Pure virtual baseclass. Should not be instantiated or called." ); }, clone: function () { throw new Mp( "Pure virtual baseclass. Should not be instantiated or called." ); }, getCLID: function () { return Ko.__clid; }, serialize: function (e) { e.addKnownRef(this.from), e.addKnownRef(this.to); var t = this.lineStyleIdx; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); var s = this.fillStyleIdx; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); var n = this.subLineStyleIdx; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("from"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Point")), e.fieldsNames.push("to"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Point")), e.fieldsNames.push("lineStyleIdx"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("fillStyleIdx"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("subLineStyleIdx"), e.fieldsTypes.push(Ap.PInt), (e.isFinal = mr.isClassFinal(Ko.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { (this.from = e.getRef(qm, qm.__clid)), (this.to = e.getRef(qm, qm.__clid)); var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.lineStyleIdx = t); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.fillStyleIdx = s); var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.subLineStyleIdx = n); }, __class__: Ko, }); var qo = function (e, t, s, n) { null == n && (n = 0), null == s && (s = 0), Ko.call(this), (this.from = e), (this.to = t), (this.lineStyleIdx = s), (this.fillStyleIdx = n); }; ((s["format.swf.data.etc.StraightEdge"] = qo).__name__ = [ "format", "swf", "data", "etc", "StraightEdge", ]), (qo.__super__ = Ko), (qo.prototype = n(Ko.prototype, { reverseWithNewFillStyle: function (e) { return new qo(this.to, this.from, this.lineStyleIdx, e); }, clone: function () { return new qo(this.from, this.to, this.lineStyleIdx, this.fillStyleIdx); }, toString: function () { return ( "stroke:" + this.lineStyleIdx + ", fill:" + this.fillStyleIdx + ", start:" + this.from.toString() + ", end:" + this.to.toString() ); }, getCLID: function () { return qo.__clid; }, __class__: qo, })); var Zo = function (e, t, s, n, i) { null == i && (i = 0), null == n && (n = 0), qo.call(this, e, s, n, i), (this.control = t); }; ((s["format.swf.data.etc.CurvedEdge"] = Zo).__name__ = [ "format", "swf", "data", "etc", "CurvedEdge", ]), (Zo.__super__ = qo), (Zo.prototype = n(qo.prototype, { reverseWithNewFillStyle: function (e) { return new Zo(this.to, this.control, this.from, this.lineStyleIdx, e); }, clone: function () { return new Zo( this.from, this.control, this.to, this.lineStyleIdx, this.fillStyleIdx ); }, toString: function () { return ( "stroke:" + this.lineStyleIdx + ", fill:" + this.fillStyleIdx + ", start:" + this.from.toString() + ", control:" + this.control.toString() + ", end:" + this.to.toString() ); }, getCLID: function () { return Zo.__clid; }, serialize: function (e) { qo.prototype.serialize.call(this, e), e.addKnownRef(this.control); }, getSerializeSchema: function () { var e = qo.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("control"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Point")), (e.isFinal = mr.isClassFinal(Zo.__clid)), e ); }, unserialize: function (e) { qo.prototype.unserialize.call(this, e), (this.control = e.getRef(qm, qm.__clid)); }, __class__: Zo, })); var Jo = function () { (this.samples = 1152), this.init(); }; ((s["format.swf.data.etc.MPEGFrame"] = Jo).__name__ = [ "format", "swf", "data", "etc", "MPEGFrame", ]), (Jo.prototype = { get_crc: function () { return (this._crc.position = 0), this._crc.readUnsignedShort(); }, get_size: function () { var e = 0; return ( 0 == this.layer ? ((e = Math.floor((12e3 * this.bitrate) / this.samplingrate)), this.padding && ++e, (e <<= 2)) : ((e = Math.floor( ((0 == this.version ? 144e3 : 72e3) * this.bitrate) / this.samplingrate )), this.padding && ++e), e - 4 - (this.hasCRC ? 2 : 0) ); }, setHeaderByteAt: function (e, t) { switch (e) { case 0: if (255 != t) throw new Mp(new _v("Not a MPEG header.")); break; case 1: if (224 != (224 & t)) throw new Mp(new _v("Not a MPEG header.")); switch ((24 & t) >> 3) { case 2: this.version = 1; break; case 3: this.version = 0; break; default: throw new Mp(new _v("Unsupported MPEG version.")); } if (1 != (6 & t) >> 1) throw new Mp(new _v("Unsupported MPEG layer.")); (this.layer = 2), (this.hasCRC = 0 == (1 & t)); break; case 2: var s = (240 & t) >> 4; if (0 == s || 15 == s) throw new Mp(new _v("Unsupported bitrate index.")); this.bitrate = Jo.mpegBitrates[this.version][this.layer][s]; var n = (12 & t) >> 2; if (3 == n) throw new Mp(new _v("Unsupported samplingrate index.")); (this.samplingrate = Jo.mpegsamplingrates[this.version][n]), (this.padding = 2 == (2 & t)); break; case 3: (this.channelMode = (192 & t) >> 6), (this.channelModeExt = (48 & t) >> 4), (this.copyright = 8 == (8 & t)), (this.original = 4 == (4 & t)), (this.emphasis = 2 & t); break; default: throw new Mp(new _v("Index out of bounds.")); } this._header.b[e] = 255 & t; }, setCRCByteAt: function (e, t) { if (1 < e) throw new Mp(new _v("Index out of bounds.")); this._crc.b[e] = 255 & t; }, init: function () { var e = new Uf(0); (this._header = e), this._header.writeByte(0), this._header.writeByte(0), this._header.writeByte(0), this._header.writeByte(0); var t = new Uf(0); (this._crc = t), this._crc.writeByte(0), this._crc.writeByte(0); }, getFrame: function () { var e = new Uf(0); return ( e.writeBytes(this._header, 0, 4), this.hasCRC && e.writeBytes(this._crc, 0, 2), e.writeBytes(this.data), e ); }, toString: function () { var e = "MPEG "; switch (this.version) { case 0: e += "1.0 "; break; case 1: e += "2.0 "; break; case 2: e += "2.5 "; break; default: e += "?.? "; } switch (this.layer) { case 0: e += "Layer I"; break; case 1: e += "Layer II"; break; case 2: e += "Layer III"; break; default: e += "Layer ?"; } var t = "unknown"; switch (this.channelMode) { case 0: t = "Stereo"; break; case 1: t = "Joint stereo"; break; case 2: t = "Dual channel"; break; case 3: t = "Mono"; } return ( e + ", " + this.bitrate + " kbit/s, " + this.samplingrate + " Hz, " + t + ", " + this.get_size() + " bytes" ); }, __class__: Jo, __properties__: { get_size: "get_size", get_crc: "get_crc" }, }); var Qo = function () {}; ((s["format.swf.data.filters.IFilter"] = Qo).__name__ = [ "format", "swf", "data", "filters", "IFilter", ]), (Qo.prototype = { __class__: Qo, __properties__: { get_type: "get_type", get_filter: "get_filter" }, }); var $o = function (e) { this.id = e; }; ((s["format.swf.data.filters.Filter"] = $o).__name__ = [ "format", "swf", "data", "filters", "Filter", ]), ($o.__interfaces__ = [Qo]), ($o.prototype = { get_filter: function () { throw new Mp(new _v("Implement in subclasses!")); }, get_type: function () { return null; }, parse: function (e) { throw new Mp(new _v("Implement in subclasses!")); }, publish: function (e) { throw new Mp(new _v("Implement in subclasses!")); }, clone: function () { throw new Mp(new _v("Implement in subclasses!")); }, toString: function (e) { return null == e && (e = 0), "[Filter]"; }, __class__: $o, __properties__: { get_type: "get_type", get_filter: "get_filter" }, }); var ea = function (e) { $o.call(this, e); }; ((s["format.swf.data.filters.FilterBevel"] = ea).__name__ = [ "format", "swf", "data", "filters", "FilterBevel", ]), (ea.__interfaces__ = [Qo]), (ea.__super__ = $o), (ea.prototype = n($o.prototype, { get_type: function () { var e; return ( (e = this.onTop ? 0 : this.innerShadow ? 1 : 2), ma.BevelFilter( this.distance, (180 * this.angle) / Math.PI, zf.rgb(this.highlightColor), zf.alpha(this.highlightColor), zf.rgb(this.shadowColor), zf.alpha(this.shadowColor), this.blurX, this.blurY, this.strength, this.passes, e, this.knockout ) ); }, get_filter: function () { var e; return ( (e = this.onTop ? 0 : this.innerShadow ? 1 : 2), new Lv( this.distance, (180 * this.angle) / Math.PI, zf.rgb(this.highlightColor), zf.alpha(this.highlightColor), zf.rgb(this.shadowColor), zf.alpha(this.shadowColor), this.blurX, this.blurY, this.strength, this.passes, e, this.knockout ) ); }, parse: function (e) { (this.highlightColor = or.readRGBA(e)), (this.shadowColor = or.readRGBA(e)), (this.blurX = or.readFIXED(e)), (this.blurY = or.readFIXED(e)), (this.angle = or.readFIXED(e)), (this.distance = or.readFIXED(e)), (this.strength = or.readFIXED8(e)); var t = or.readUI8(e); (this.innerShadow = 0 != (128 & t)), (this.knockout = 0 != (64 & t)), (this.compositeSource = 0 != (32 & t)), (this.onTop = 0 != (16 & t)), (this.passes = 15 & t); }, publish: function (e) { or.writeRGBA(e, this.shadowColor), or.writeRGBA(e, this.highlightColor), or.writeFIXED(e, this.blurX), or.writeFIXED(e, this.blurY), or.writeFIXED(e, this.angle), or.writeFIXED(e, this.distance), or.writeFIXED8(e, this.strength); var t = 15 & this.passes; this.innerShadow && (t |= 128), this.knockout && (t |= 64), this.compositeSource && (t |= 32), this.onTop && (t |= 16), or.writeUI8(e, t); }, clone: function () { var e = new ea(this.id); return ( (e.shadowColor = this.shadowColor), (e.highlightColor = this.highlightColor), (e.blurX = this.blurX), (e.blurY = this.blurY), (e.angle = this.angle), (e.distance = this.distance), (e.strength = this.strength), (e.passes = this.passes), (e.innerShadow = this.innerShadow), (e.knockout = this.knockout), (e.compositeSource = this.compositeSource), (e.onTop = this.onTop), e ); }, toString: function (e) { null == e && (e = 0); var t = "[BevelFilter] ShadowColor: " + zf.rgbToString(this.shadowColor) + ", HighlightColor: " + zf.rgbToString(this.highlightColor) + ", BlurX: " + this.blurX + ", BlurY: " + this.blurY + ", Angle: " + this.angle + ", Distance: " + this.distance + ", Strength: " + this.strength + ", Passes: " + this.passes, s = []; return ( this.innerShadow && s.push("InnerShadow"), this.knockout && s.push("Knockout"), this.compositeSource && s.push("CompositeSource"), this.onTop && s.push("OnTop"), 0 < s.length && (t += ", Flags: " + s.join(", ")), t ); }, __class__: ea, })); var ta = function (e) { $o.call(this, e); }; ((s["format.swf.data.filters.FilterBlur"] = ta).__name__ = [ "format", "swf", "data", "filters", "FilterBlur", ]), (ta.__interfaces__ = [Qo]), (ta.__super__ = $o), (ta.prototype = n($o.prototype, { get_filter: function () { return new Ov(this.blurX, this.blurY, this.passes); }, get_type: function () { return ma.BlurFilter(this.blurX, this.blurY, this.passes); }, parse: function (e) { (this.blurX = or.readFIXED(e)), (this.blurY = or.readFIXED(e)), (this.passes = or.readUI8(e) >> 3); }, publish: function (e) { or.writeFIXED(e, this.blurX), or.writeFIXED(e, this.blurY), or.writeUI8(e, this.passes << 3); }, clone: function () { var e = new ta(this.id); return ( (e.blurX = this.blurX), (e.blurY = this.blurY), (e.passes = this.passes), e ); }, toString: function (e) { return ( null == e && (e = 0), "[BlurFilter] BlurX: " + this.blurX + ", BlurY: " + this.blurY + ", Passes: " + this.passes ); }, __class__: ta, })); var sa = function (e) { $o.call(this, e), (this.colorMatrix = []); }; ((s["format.swf.data.filters.FilterColorMatrix"] = sa).__name__ = [ "format", "swf", "data", "filters", "FilterColorMatrix", ]), (sa.__interfaces__ = [Qo]), (sa.__super__ = $o), (sa.prototype = n($o.prototype, { get_filter: function () { return new Uv(this.multipliers.value, this.offsets.value); }, get_type: function () { return ma.ColorMatrixFilter(this.multipliers, this.offsets); }, parse: function (e) { for (var t = 0; t < 20; ) { t++; this.colorMatrix.push(or.readFLOAT(e)); } var s, n = [ this.colorMatrix[0], this.colorMatrix[1], this.colorMatrix[2], this.colorMatrix[3], this.colorMatrix[5], this.colorMatrix[6], this.colorMatrix[7], this.colorMatrix[8], this.colorMatrix[10], this.colorMatrix[11], this.colorMatrix[12], this.colorMatrix[13], this.colorMatrix[15], this.colorMatrix[16], this.colorMatrix[17], this.colorMatrix[18], ]; (s = null != n ? new GT(n) : null), (this.multipliers = new Jy(s)); var i, r = [ this.colorMatrix[4] / 255, this.colorMatrix[9] / 255, this.colorMatrix[14] / 255, this.colorMatrix[19] / 255, ]; (i = null != r ? new GT(r) : null), (this.offsets = new Jy(i)); }, publish: function (e) { for (var t = 0; t < 20; ) { var s = t++; or.writeFLOAT(e, this.colorMatrix[s]); } }, clone: function () { for (var e = new sa(this.id), t = 0; t < 20; ) { var s = t++; e.colorMatrix.push(this.colorMatrix[s]); } return e; }, toString: function (e) { null == e && (e = 0); var t = Yf.repeat(e + 2); return ( "[ColorMatrixFilter]\n" + t + "[R] " + this.colorMatrix[0] + ", " + this.colorMatrix[1] + ", " + this.colorMatrix[2] + ", " + this.colorMatrix[3] + ", " + this.colorMatrix[4] + "\n" + t + "[G] " + this.colorMatrix[5] + ", " + this.colorMatrix[6] + ", " + this.colorMatrix[7] + ", " + this.colorMatrix[8] + ", " + this.colorMatrix[9] + "\n" + t + "[B] " + this.colorMatrix[10] + ", " + this.colorMatrix[11] + ", " + this.colorMatrix[12] + ", " + this.colorMatrix[13] + ", " + this.colorMatrix[14] + "\n" + t + "[A] " + this.colorMatrix[15] + ", " + this.colorMatrix[16] + ", " + this.colorMatrix[17] + ", " + this.colorMatrix[18] + ", " + this.colorMatrix[19] ); }, __class__: sa, })); var na = function (e) { $o.call(this, e), (this.matrix = []); }; ((s["format.swf.data.filters.FilterConvolution"] = na).__name__ = [ "format", "swf", "data", "filters", "FilterConvolution", ]), (na.__interfaces__ = [Qo]), (na.__super__ = $o), (na.prototype = n($o.prototype, { get_filter: function () { for (var e = [], t = 0, s = this.matrix.length; t < s; ) { var n = t++; e.push(this.matrix[n]); } return new kv(); }, parse: function (e) { (this.matrixX = or.readUI8(e)), (this.matrixY = or.readUI8(e)), (this.divisor = or.readFLOAT(e)), (this.bias = or.readFLOAT(e)); for (var t = 0, s = this.matrixX * this.matrixY; t < s; ) { t++; this.matrix.push(or.readFLOAT(e)); } this.defaultColor = or.readRGBA(e); var n = or.readUI8(e); (this.clamp = 0 != (2 & n)), (this.preserveAlpha = 0 != (1 & n)); }, publish: function (e) { or.writeUI8(e, this.matrixX), or.writeUI8(e, this.matrixY), or.writeFLOAT(e, this.divisor), or.writeFLOAT(e, this.bias); for (var t = 0, s = this.matrixX * this.matrixY; t < s; ) { var n = t++; or.writeFLOAT(e, this.matrix[n]); } or.writeRGBA(e, this.defaultColor); var i = 0; this.clamp && (i |= 2), this.preserveAlpha && (i |= 1), or.writeUI8(e, i); }, clone: function () { var e = new na(this.id); (e.matrixX = this.matrixX), (e.matrixY = this.matrixY), (e.divisor = this.divisor), (e.bias = this.bias); for (var t = 0, s = this.matrixX * this.matrixY; t < s; ) { var n = t++; e.matrix.push(this.matrix[n]); } return ( (e.defaultColor = this.defaultColor), (e.clamp = this.clamp), (e.preserveAlpha = this.preserveAlpha), e ); }, toString: function (e) { null == e && (e = 0); var t = "[ConvolutionFilter] DefaultColor: " + zf.rgbToString(this.defaultColor) + ", Divisor: " + this.divisor + ", Bias: " + this.bias, s = []; if ( (this.clamp && s.push("Clamp"), this.preserveAlpha && s.push("PreserveAlpha"), 0 < s.length && (t += ", Flags: " + s.join(", ")), 0 < this.matrix.length) ) { t += "\n" + Yf.repeat(e + 2) + "Matrix:"; for (var n = 0, i = this.matrixY; n < i; ) { var r = n++; t += "\n" + Yf.repeat(e + 4) + "[" + r + "]"; for (var o = 0, a = this.matrixX; o < a; ) { var l = o++; t += (0 < l ? ", " : " ") + this.matrix[this.matrixX * r + l]; } } } return t; }, __class__: na, })); var ia = function (e) { $o.call(this, e); }; ((s["format.swf.data.filters.FilterDropShadow"] = ia).__name__ = [ "format", "swf", "data", "filters", "FilterDropShadow", ]), (ia.__interfaces__ = [Qo]), (ia.__super__ = $o), (ia.prototype = n($o.prototype, { get_filter: function () { return new Gv( this.distance, (180 * this.angle) / Math.PI, zf.rgb(this.dropShadowColor), zf.alpha(this.dropShadowColor), this.blurX, this.blurY, this.strength, this.passes, this.innerShadow, this.knockout, !this.compositeSource ); }, get_type: function () { return ma.DropShadowFilter( this.distance, (180 * this.angle) / Math.PI, zf.rgb(this.dropShadowColor), zf.alpha(this.dropShadowColor), this.blurX, this.blurY, this.strength, this.passes, this.innerShadow, this.knockout, !this.compositeSource ); }, parse: function (e) { (this.dropShadowColor = or.readRGBA(e)), (this.blurX = or.readFIXED(e)), (this.blurY = or.readFIXED(e)), (this.angle = or.readFIXED(e)), (this.distance = or.readFIXED(e)), (this.strength = or.readFIXED8(e)); var t = or.readUI8(e); (this.innerShadow = 0 != (128 & t)), (this.knockout = 0 != (64 & t)), (this.compositeSource = 0 != (32 & t)), (this.passes = 31 & t); }, publish: function (e) { or.writeRGBA(e, this.dropShadowColor), or.writeFIXED(e, this.blurX), or.writeFIXED(e, this.blurY), or.writeFIXED(e, this.angle), or.writeFIXED(e, this.distance), or.writeFIXED8(e, this.strength); var t = 31 & this.passes; this.innerShadow && (t |= 128), this.knockout && (t |= 64), this.compositeSource && (t |= 32), or.writeUI8(e, t); }, clone: function () { var e = new ia(this.id); return ( (e.dropShadowColor = this.dropShadowColor), (e.blurX = this.blurX), (e.blurY = this.blurY), (e.angle = this.angle), (e.distance = this.distance), (e.strength = this.strength), (e.passes = this.passes), (e.innerShadow = this.innerShadow), (e.knockout = this.knockout), (e.compositeSource = this.compositeSource), e ); }, toString: function (e) { null == e && (e = 0); var t = "[DropShadowFilter] DropShadowColor: " + zf.rgbToString(this.dropShadowColor) + ", BlurX: " + this.blurX + ", BlurY: " + this.blurY + ", Angle: " + this.angle + ", Distance: " + this.distance + ", Strength: " + this.strength + ", Passes: " + this.passes, s = []; return ( this.innerShadow && s.push("InnerShadow"), this.knockout && s.push("Knockout"), this.compositeSource && s.push("CompositeSource"), 0 < s.length && (t += ", Flags: " + s.join(", ")), t ); }, __class__: ia, })); var ra = function (e) { $o.call(this, e); }; ((s["format.swf.data.filters.FilterGlow"] = ra).__name__ = [ "format", "swf", "data", "filters", "FilterGlow", ]), (ra.__interfaces__ = [Qo]), (ra.__super__ = $o), (ra.prototype = n($o.prototype, { get_filter: function () { return new zv( zf.rgb(this.glowColor), zf.alpha(this.glowColor), this.blurX, this.blurY, this.strength, this.passes, this.innerGlow, this.knockout ); }, get_type: function () { return ma.GlowFilter( zf.rgb(this.glowColor), zf.alpha(this.glowColor), this.blurX, this.blurY, this.strength, this.passes, this.innerGlow, this.knockout ); }, parse: function (e) { (this.glowColor = or.readRGBA(e)), (this.blurX = or.readFIXED(e)), (this.blurY = or.readFIXED(e)), (this.strength = or.readFIXED8(e)); var t = or.readUI8(e); (this.innerGlow = 0 != (128 & t)), (this.knockout = 0 != (64 & t)), (this.compositeSource = 0 != (32 & t)), (this.passes = 31 & t); }, publish: function (e) { or.writeRGBA(e, this.glowColor), or.writeFIXED(e, this.blurX), or.writeFIXED(e, this.blurY), or.writeFIXED8(e, this.strength); var t = 31 & this.passes; this.innerGlow && (t |= 128), this.knockout && (t |= 64), this.compositeSource && (t |= 32), or.writeUI8(e, t); }, clone: function () { var e = new ra(this.id); return ( (e.glowColor = this.glowColor), (e.blurX = this.blurX), (e.blurY = this.blurY), (e.strength = this.strength), (e.passes = this.passes), (e.innerGlow = this.innerGlow), (e.knockout = this.knockout), (e.compositeSource = this.compositeSource), e ); }, toString: function (e) { null == e && (e = 0); var t = "[GlowFilter] GlowColor: " + zf.rgbToString(this.glowColor) + ", BlurX: " + this.blurX + ", BlurY: " + this.blurY + ", Strength: " + this.strength + ", Passes: " + this.passes, s = []; return ( this.innerGlow && s.push("InnerGlow"), this.knockout && s.push("Knockout"), this.compositeSource && s.push("CompositeSource"), 0 < s.length && (t += ", Flags: " + s.join(", ")), t ); }, __class__: ra, })); var oa = function (e) { $o.call(this, e), (this.gradientColors = []), (this.gradientRatios = []); }; ((s["format.swf.data.filters.FilterGradientBevel"] = oa).__name__ = [ "format", "swf", "data", "filters", "FilterGradientBevel", ]), (oa.__interfaces__ = [Qo]), (oa.__super__ = $o), (oa.prototype = n($o.prototype, { get_filter: function () { for ( var e, t = [], s = [], n = [], i = 0, r = this.numColors; i < r; ) { var o = i++; t.push(zf.rgb(this.gradientColors[o])), s.push(zf.alpha(this.gradientColors[o])), n.push(this.gradientRatios[o]); } return ( (e = this.onTop ? 0 : this.innerShadow ? 1 : 2), new Mv( this.distance, this.angle, t, s, n, this.blurX, this.blurY, this.strength, this.passes, Nv.fromString(Nv.toString(e)), this.knockout ) ); }, get_type: function () { for ( var e, t = [], s = [], n = [], i = 0, r = this.numColors; i < r; ) { var o = i++; t.push(zf.rgb(this.gradientColors[o])), s.push(zf.alpha(this.gradientColors[o])), n.push(this.gradientRatios[o]); } return ( (e = this.onTop ? 0 : this.innerShadow ? 1 : 2), ma.GradientBevelFilter( this.distance, (180 * this.angle) / Math.PI, t, s, n, this.blurX, this.blurY, this.strength, this.passes, e, this.knockout ) ); }, parse: function (e) { this.numColors = or.readUI8(e); for (var t = 0, s = this.numColors; t < s; ) { t++; this.gradientColors.push(or.readRGBA(e)); } for (var n = 0, i = this.numColors; n < i; ) { n++; this.gradientRatios.push(or.readUI8(e)); } (this.blurX = or.readFIXED(e)), (this.blurY = or.readFIXED(e)), (this.angle = or.readFIXED(e)), (this.distance = or.readFIXED(e)), (this.strength = or.readFIXED8(e)); var r = or.readUI8(e); (this.innerShadow = 0 != (128 & r)), (this.knockout = 0 != (64 & r)), (this.compositeSource = 0 != (32 & r)), (this.onTop = 0 != (16 & r)), (this.passes = 15 & r); }, publish: function (e) { or.writeUI8(e, this.numColors); for (var t = 0, s = this.numColors; t < s; ) { var n = t++; or.writeRGBA(e, this.gradientColors[n]); } for (var i = 0, r = this.numColors; i < r; ) { var o = i++; or.writeUI8(e, this.gradientRatios[o]); } or.writeFIXED(e, this.blurX), or.writeFIXED(e, this.blurY), or.writeFIXED(e, this.angle), or.writeFIXED(e, this.distance), or.writeFIXED8(e, this.strength); var a = 15 & this.passes; this.innerShadow && (a |= 128), this.knockout && (a |= 64), this.compositeSource && (a |= 32), this.onTop && (a |= 16), or.writeUI8(e, a); }, clone: function () { var e = new oa(this.id); e.numColors = this.numColors; for (var t = 0, s = this.numColors; t < s; ) { var n = t++; e.gradientColors.push(this.gradientColors[n]); } for (var i = 0, r = this.numColors; i < r; ) { var o = i++; e.gradientRatios.push(this.gradientRatios[o]); } return ( (e.blurX = this.blurX), (e.blurY = this.blurY), (e.angle = this.angle), (e.distance = this.distance), (e.strength = this.strength), (e.passes = this.passes), (e.innerShadow = this.innerShadow), (e.knockout = this.knockout), (e.compositeSource = this.compositeSource), (e.onTop = this.onTop), e ); }, toString: function (e) { null == e && (e = 0); var t = "[GradientBevelFilter] BlurX: " + this.blurX + ", BlurY: " + this.blurY + ", Angle: " + this.angle + ", Distance: " + this.distance + ", Strength: " + this.strength + ", Passes: " + this.passes, s = []; if ( (this.innerShadow && s.push("InnerShadow"), this.knockout && s.push("Knockout"), this.compositeSource && s.push("CompositeSource"), this.onTop && s.push("OnTop"), 0 < s.length && (t += ", Flags: " + s.join(", ")), 0 < this.gradientColors.length) ) { t += "\n" + Yf.repeat(e + 2) + "GradientColors:"; for (var n = 0, i = this.gradientColors.length; n < i; ) { var r = n++; t += (0 < r ? ", " : " ") + zf.rgbToString(this.gradientColors[r]); } } if (0 < this.gradientRatios.length) { t += "\n" + Yf.repeat(e + 2) + "GradientRatios:"; for (var o = 0, a = this.gradientRatios.length; o < a; ) { var l = o++; t += (0 < l ? ", " : " ") + this.gradientRatios[l]; } } return t; }, __class__: oa, })); var aa = function (e) { $o.call(this, e), (this.gradientColors = []), (this.gradientRatios = []); }; ((s["format.swf.data.filters.FilterGradientGlow"] = aa).__name__ = [ "format", "swf", "data", "filters", "FilterGradientGlow", ]), (aa.__interfaces__ = [Qo]), (aa.__super__ = $o), (aa.prototype = n($o.prototype, { get_filter: function () { for ( var e, t = [], s = [], n = [], i = 0, r = this.numColors; i < r; ) { var o = i++; t.push(zf.rgb(this.gradientColors[o])), s.push(zf.alpha(this.gradientColors[o])), n.push(this.gradientRatios[o]); } return ( (e = this.onTop ? 0 : this.innerShadow ? 1 : 2), new Xv( this.distance, (180 * this.angle) / Math.PI, t, s, n, this.blurX, this.blurY, this.strength, this.passes, e, this.knockout ) ); }, get_type: function () { for ( var e, t = [], s = [], n = [], i = 0, r = this.numColors; i < r; ) { var o = i++; t.push(zf.rgb(this.gradientColors[o])), s.push(zf.alpha(this.gradientColors[o])), n.push(this.gradientRatios[o]); } return ( (e = this.onTop ? 0 : this.innerShadow ? 1 : 2), ma.GradientGlowFilter( this.distance, (180 * this.angle) / Math.PI, t, s, n, this.blurX, this.blurY, this.strength, this.passes, e, this.knockout ) ); }, parse: function (e) { this.numColors = or.readUI8(e); for (var t = 0, s = this.numColors; t < s; ) { t++; this.gradientColors.push(or.readRGBA(e)); } for (var n = 0, i = this.numColors; n < i; ) { n++; this.gradientRatios.push(or.readUI8(e)); } (this.blurX = or.readFIXED(e)), (this.blurY = or.readFIXED(e)), (this.angle = or.readFIXED(e)), (this.distance = or.readFIXED(e)), (this.strength = or.readFIXED8(e)); var r = or.readUI8(e); (this.innerShadow = 0 != (128 & r)), (this.knockout = 0 != (64 & r)), (this.compositeSource = 0 != (32 & r)), (this.onTop = 0 != (16 & r)), (this.passes = 15 & r); }, publish: function (e) { or.writeUI8(e, this.numColors); for (var t = 0, s = this.numColors; t < s; ) { var n = t++; or.writeRGBA(e, this.gradientColors[n]); } for (var i = 0, r = this.numColors; i < r; ) { var o = i++; or.writeUI8(e, this.gradientRatios[o]); } or.writeFIXED(e, this.blurX), or.writeFIXED(e, this.blurY), or.writeFIXED(e, this.angle), or.writeFIXED(e, this.distance), or.writeFIXED8(e, this.strength); var a = 15 & this.passes; this.innerShadow && (a |= 128), this.knockout && (a |= 64), this.compositeSource && (a |= 32), this.onTop && (a |= 16), or.writeUI8(e, a); }, clone: function () { var e = new aa(this.id); e.numColors = this.numColors; for (var t = 0, s = this.numColors; t < s; ) { var n = t++; e.gradientColors.push(this.gradientColors[n]); } for (var i = 0, r = this.numColors; i < r; ) { var o = i++; e.gradientRatios.push(this.gradientRatios[o]); } return ( (e.blurX = this.blurX), (e.blurY = this.blurY), (e.angle = this.angle), (e.distance = this.distance), (e.strength = this.strength), (e.passes = this.passes), (e.innerShadow = this.innerShadow), (e.knockout = this.knockout), (e.compositeSource = this.compositeSource), (e.onTop = this.onTop), e ); }, toString: function (e) { null == e && (e = 0); var t = "[GradientGlowFilter] BlurX: " + this.blurX + ", BlurY: " + this.blurY + ", Angle: " + this.angle + ", Distance: " + this.distance + ", Strength: " + this.strength + ", Passes: " + this.passes, s = []; if ( (this.innerShadow && s.push("InnerShadow"), this.knockout && s.push("Knockout"), this.compositeSource && s.push("CompositeSource"), this.onTop && s.push("OnTop"), 0 < s.length && (t += ", Flags: " + s.join(", ")), 0 < this.gradientColors.length) ) { t += "\n" + Yf.repeat(e + 2) + "GradientColors:"; for (var n = 0, i = this.gradientColors.length; n < i; ) { var r = n++; t += (0 < r ? ", " : " ") + zf.rgbToString(this.gradientColors[r]); } } if (0 < this.gradientRatios.length) { t += "\n" + Yf.repeat(e + 2) + "GradientRatios:"; for (var o = 0, a = this.gradientRatios.length; o < a; ) { var l = o++; t += (0 < l ? ", " : " ") + this.gradientRatios[l]; } } return t; }, __class__: aa, })); var la = function (e, t, s) { null == s && (s = -1), (this.mCapacity = 16), (this.size = 0), (this.mFactory = e), (this.mDispose = null == t ? function (e) {} : t), (this.maxSize = s); var n = this.mCapacity, i = new ha(), r = new Array(n); (i.data = r), (i.length = n), (i.fixed = !1), (this.mPool = i); }; ((s["openfl.ObjectPool"] = la).__name__ = ["openfl", "ObjectPool"]), (la.prototype = { preallocate: function (e) { if (0 != this.size) throw new Mp("Can't preallocate when size is already set"); this.size = this.mCapacity = e; var t = this.size, s = new ha(), n = new Array(t); (s.data = n), (s.length = t), (s.fixed = !1), (this.mPool = s); for (var i = 0, r = e; i < r; ) { var o = i++, a = this.mPool, l = this.mFactory(); if ( !a.fixed && (o >= a.length && (a.length = o + 1), a.data.length < a.length) ) { var h = a.data.length + 10, _ = new Array(h); dp.blit(a.data, 0, _, 0, a.data.length), (a.data = _); } a.data[o] = l; } }, free: function () { for (var e = 0, t = this.mCapacity; e < t; ) { var s = e++; this.mDispose(this.mPool.data[s]); } (this.mPool = null), (this.mFactory = null), (this.mDispose = null); }, get: function () { return 0 < this.size ? this.mPool.data[--this.size] : this.mFactory(); }, put: function (e) { if (this.size == this.maxSize) this.mDispose(e); else { this.size == this.mCapacity && this.resize(); var t = this.mPool, s = this.size++; if ( !t.fixed && (s >= t.length && (t.length = s + 1), t.data.length < t.length) ) { var n = t.data.length + 10, i = new Array(n); dp.blit(t.data, 0, i, 0, t.data.length), (t.data = i); } t.data[s] = e; } }, iterator: function () { var e = 0, t = this.size, s = this.mPool; return { hasNext: function () { return e < t; }, next: function () { return (e += 1), s.data[e - 1]; }, }; }, resize: function () { var e = (this.mCapacity + 0.5 * this.mCapacity) | 0, t = this.mPool; if (!t.fixed) { if (e > t.length) { var s = new Array(e); dp.blit(t.data, 0, s, 0, 0 | Math.min(t.data.length, e)), (t.data = s); } t.length = e; } this.mCapacity = e; }, __class__: la, }); var ha = function () { this.length = 0; }; ((s["openfl.VectorData"] = ha).__name__ = ["openfl", "VectorData"]), (ha.prototype = { __class__: ha }); var _a = function (e, t, s) { null == s && (s = !1), null == t && (t = !1), (this.type = e), (this.bubbles = t), (this.cancelable = s), (this.__fromPool = !1), (this.__refcount = 0), (this.eventPhase = 2); }; ((s["openfl.events.Event"] = _a).__name__ = ["openfl", "events", "Event"]), (_a.__create = function (e, t, s) { null == s && (s = !1), null == t && (t = !1); var n = _a.pool.get(); return ( (n.type = e), (n.bubbles = t), (n.cancelable = s), (n.target = null), (n.currentTarget = null), (n.__isCanceled = !1), (n.__isCanceledNow = !1), (n.__preventDefault = !1), (n.__fromPool = !0), (n.__refcount = 0), (n.eventPhase = 2), n ); }), (_a.prototype = { clone: function () { var e = new _a(this.type, this.bubbles, this.cancelable); return ( (e.eventPhase = this.eventPhase), (e.target = this.target), (e.currentTarget = this.currentTarget), e ); }, __resetPooledEvent: function () { (this.target = null), (this.currentTarget = null), (this.__isCanceled = !1), (this.__isCanceledNow = !1), (this.__preventDefault = !1), (this.__fromPool = !0), (this.__refcount = 0), (this.eventPhase = 2); }, formatToString: function (e, t, s, n, i, r, o) { var a = []; return ( null != t && a.push(t), null != s && a.push(s), null != n && a.push(n), null != i && a.push(i), null != r && a.push(r), null != o && a.push(o), CT(this, this.__formatToString).apply(this, [e, a]) ); }, isDefaultPrevented: function () { return this.__preventDefault; }, preventDefault: function () { this.cancelable && (this.__preventDefault = !0); }, stopImmediatePropagation: function () { (this.__isCanceled = !0), (this.__isCanceledNow = !0); }, stopPropagation: function () { this.__isCanceled = !0; }, toString: function () { return this.__formatToString("Event", [ "type", "bubbles", "cancelable", ]); }, __formatToString: function (e, t) { for (var s = "[" + e, n = null, i = 0; i < t.length; ) { var r = t[i]; ++i, (s += "string" == typeof (n = De.field(this, r)) ? " " + r + '="' + Ue.string(n) + '"' : " " + r + "=" + Ue.string(n)); } return (s += "]"); }, acquire: function () { ++this.__refcount; }, release: function () { 0 == --this.__refcount && this.__fromPool && ((this.__refcount = -1), (this.__fromPool = !1), _a.pool.put(this)); }, __class__: _a, }); var ua = function (e, t, s, n) { null == n && (n = !1), null == s && (s = !1), _a.call(this, e, s, n), (this.reason = t); }; ((s["format.swf.events.SWFErrorEvent"] = ua).__name__ = [ "format", "swf", "events", "SWFErrorEvent", ]), (ua.__super__ = _a), (ua.prototype = n(_a.prototype, { clone: function () { return new ua(this.type, this.reason, this.bubbles, this.cancelable); }, toString: function () { return "[SWFErrorEvent] reason: " + this.reason; }, __class__: ua, })); var da = function (e, t, s, n, i) { null == i && (i = !1), null == n && (n = !1), _a.call(this, e, n, i), (this.processed = t), (this.total = s); }; ((s["format.swf.events.SWFProgressEvent"] = da).__name__ = [ "format", "swf", "events", "SWFProgressEvent", ]), (da.__super__ = _a), (da.prototype = n(_a.prototype, { get_progress: function () { return this.processed / this.total; }, get_progressPercent: function () { return Math.round(100 * this.get_progress()); }, clone: function () { return new da( this.type, this.processed, this.total, this.bubbles, this.cancelable ); }, toString: function () { return ( "[SWFProgressEvent] processed: " + this.processed + ", total: " + this.total + " (" + this.get_progressPercent() + "%)" ); }, __class__: da, __properties__: { get_progressPercent: "get_progressPercent", get_progress: "get_progress", }, })); var ca = function (e, t, s, n, i) { null == i && (i = !1), null == n && (n = !1), _a.call(this, e, n, i), (this.index = t), (this.data = s); }; ((s["format.swf.events.SWFWarningEvent"] = ca).__name__ = [ "format", "swf", "events", "SWFWarningEvent", ]), (ca.__super__ = _a), (ca.prototype = n(_a.prototype, { clone: function () { return new ca( this.type, this.index, this.data, this.bubbles, this.cancelable ); }, toString: function () { return "[SWFWarningEvent] index: " + this.index; }, __class__: ca, })); var fa = function () {}; ((s["format.swf.exporters.core.IShapeExporter"] = fa).__name__ = [ "format", "swf", "exporters", "core", "IShapeExporter", ]), (fa.prototype = { __class__: fa }); var pa = function () {}; ((s["format.swf.exporters.core.DefaultShapeExporter"] = pa).__name__ = [ "format", "swf", "exporters", "core", "DefaultShapeExporter", ]), (pa.__interfaces__ = [fa]), (pa.prototype = { beginShape: function () {}, endShape: function () {}, beginFills: function () {}, endFills: function () {}, beginLines: function () {}, endLines: function () {}, beginFill: function (e, t) { null == t && (t = 1); }, beginGradientFill: function (e, t, s, n, i, r, o, a) { null == a && (a = 0); }, beginBitmapFill: function (e, t, s, n) { null == n && (n = !1), null == s && (s = !0); }, endFill: function () {}, lineStyle: function (e, t, s, n, i, r, o, a, l) { null == l && (l = 3), null == n && (n = !1), null == s && (s = 1), null == t && (t = 0), null == e && (e = 0); }, lineGradientStyle: function (e, t, s, n, i, r, o, a) { null == a && (a = 0); }, lineBitmapStyle: function (e, t, s, n) {}, moveTo: function (e, t) {}, lineTo: function (e, t) {}, curveTo: function (e, t, s, n) {}, __class__: pa, }); var ba = function () { pa.call(this), (this.commands = []); }; ((s["format.swf.exporters.ShapeCommandExporter"] = ba).__name__ = [ "format", "swf", "exporters", "ShapeCommandExporter", ]), (ba.__super__ = pa), (ba.prototype = n(pa.prototype, { beginShape: function () { this.commands = []; }, beginFills: function () { this.commands.push( ga.LineStyle(null, null, null, null, null, null, null, null) ); }, beginLines: function () {}, beginFill: function (e, t) { null == t && (t = 1), this.commands.push(ga.BeginFill(e, t)); }, beginGradientFill: function (e, t, s, n, i, r, o, a) { null == a && (a = 0), this.commands.push(ga.BeginGradientFill(e, t, s, n, i, r, o, a)); }, beginBitmapFill: function (e, t, s, n) { null == n && (n = !1), null == s && (s = !0), this.commands.push(ga.BeginBitmapFill(e, t, s, n)); }, endFill: function () { this.commands.push(ga.EndFill); }, lineStyle: function (e, t, s, n, i, r, o, a, l) { null == l && (l = 3), null == n && (n = !1), null == s && (s = 1), null == t && (t = 0), null == e && (e = 0), this.commands.push(ga.LineStyle(e, t, s, n, i, r, a, l)); }, lineGradientStyle: function (e, t, s, n, i, r, o, a) { null == a && (a = 0), null == o && (o = 1), null == r && (r = 0), this.commands.push(ga.LineGradientStyle(e, t, s, n, i, r, o, a)); }, lineBitmapStyle: function (e, t, s, n) { this.commands.push(ga.LineBitmapStyle(e, t, s, n)); }, moveTo: function (e, t) { this.commands.push(ga.MoveTo(e, t)); }, lineTo: function (e, t) { this.commands.push(ga.LineTo(e, t)); }, curveTo: function (e, t, s, n) { this.commands.push(ga.CurveTo(e, t, s, n)); }, __class__: ba, })); var ma = (s["format.swf.exporters.core.FilterType"] = { __ename__: ["format", "swf", "exporters", "core", "FilterType"], __constructs__: [ "BlurFilter", "ColorMatrixFilter", "DropShadowFilter", "GlowFilter", "GradientGlowFilter", "BevelFilter", "GradientBevelFilter", ], }); (ma.BlurFilter = function (e, t, s) { var n = ["BlurFilter", 0, e, t, s]; return (n.__enum__ = ma), (n.toString = c), n; }), (ma.ColorMatrixFilter = function (e, t) { var s = ["ColorMatrixFilter", 1, e, t]; return (s.__enum__ = ma), (s.toString = c), s; }), (ma.DropShadowFilter = function (e, t, s, n, i, r, o, a, l, h, _) { var u = ["DropShadowFilter", 2, e, t, s, n, i, r, o, a, l, h, _]; return (u.__enum__ = ma), (u.toString = c), u; }), (ma.GlowFilter = function (e, t, s, n, i, r, o, a) { var l = ["GlowFilter", 3, e, t, s, n, i, r, o, a]; return (l.__enum__ = ma), (l.toString = c), l; }), (ma.GradientGlowFilter = function (e, t, s, n, i, r, o, a, l, h, _) { var u = ["GradientGlowFilter", 4, e, t, s, n, i, r, o, a, l, h, _]; return (u.__enum__ = ma), (u.toString = c), u; }), (ma.BevelFilter = function (e, t, s, n, i, r, o, a, l, h, _, u) { var d = ["BevelFilter", 5, e, t, s, n, i, r, o, a, l, h, _, u]; return (d.__enum__ = ma), (d.toString = c), d; }), (ma.GradientBevelFilter = function (e, t, s, n, i, r, o, a, l, h, _) { var u = ["GradientBevelFilter", 6, e, t, s, n, i, r, o, a, l, h, _]; return (u.__enum__ = ma), (u.toString = c), u; }); var ga = (s["format.swf.exporters.core.ShapeCommand"] = { __ename__: ["format", "swf", "exporters", "core", "ShapeCommand"], __constructs__: [ "BeginBitmapFill", "BeginFill", "BeginGradientFill", "CurveTo", "DrawImage", "EndFill", "LineStyle", "LineGradientStyle", "LineBitmapStyle", "LineTo", "MoveTo", ], }); (ga.BeginBitmapFill = function (e, t, s, n) { var i = ["BeginBitmapFill", 0, e, t, s, n]; return (i.__enum__ = ga), (i.toString = c), i; }), (ga.BeginFill = function (e, t) { var s = ["BeginFill", 1, e, t]; return (s.__enum__ = ga), (s.toString = c), s; }), (ga.BeginGradientFill = function (e, t, s, n, i, r, o, a) { var l = ["BeginGradientFill", 2, e, t, s, n, i, r, o, a]; return (l.__enum__ = ga), (l.toString = c), l; }), (ga.CurveTo = function (e, t, s, n) { var i = ["CurveTo", 3, e, t, s, n]; return (i.__enum__ = ga), (i.toString = c), i; }), (ga.DrawImage = function (e, t, s) { var n = ["DrawImage", 4, e, t, s]; return (n.__enum__ = ga), (n.toString = c), n; }), (ga.EndFill = ["EndFill", 5]), (ga.EndFill.toString = c), ((ga.EndFill.__enum__ = ga).LineStyle = function (e, t, s, n, i, r, o, a) { var l = ["LineStyle", 6, e, t, s, n, i, r, o, a]; return (l.__enum__ = ga), (l.toString = c), l; }), (ga.LineGradientStyle = function (e, t, s, n, i, r, o, a) { var l = ["LineGradientStyle", 7, e, t, s, n, i, r, o, a]; return (l.__enum__ = ga), (l.toString = c), l; }), (ga.LineBitmapStyle = function (e, t, s, n) { var i = ["LineBitmapStyle", 8, e, t, s, n]; return (i.__enum__ = ga), (i.toString = c), i; }), (ga.LineTo = function (e, t) { var s = ["LineTo", 9, e, t]; return (s.__enum__ = ga), (s.toString = c), s; }), (ga.MoveTo = function (e, t) { var s = ["MoveTo", 10, e, t]; return (s.__enum__ = ga), (s.toString = c), s; }); var wa = function () {}; ((s["format.swf.factories.ISWFTagFactory"] = wa).__name__ = [ "format", "swf", "factories", "ISWFTagFactory", ]), (wa.prototype = { __class__: wa }); var va = function () {}; ((s["format.swf.factories.SWFActionFactory"] = va).__name__ = [ "format", "swf", "factories", "SWFActionFactory", ]), (va.create = function (e, t, s) { return 7 == e ? new Do(e, t, s) : new Co(e, t, s); }); var ya = function () {}; ((s["format.swf.factories.SWFFilterFactory"] = ya).__name__ = [ "format", "swf", "factories", "SWFFilterFactory", ]), (ya.create = function (e) { switch (e) { case 0: return new ia(e); case 1: return new ta(e); case 2: return new ra(e); case 3: return new ea(e); case 4: return new aa(e); case 5: return new na(e); case 6: return new sa(e); case 7: return new oa(e); default: throw new Mp(new _v("Unknown filter ID: " + e)); } }); var Ta = function () {}; ((s["format.swf.factories.SWFTagFactory"] = Ta).__name__ = [ "format", "swf", "factories", "SWFTagFactory", ]), (Ta.__interfaces__ = [wa]), (Ta.prototype = { create: function (e) { switch (e) { case 0: return this.createTagEnd(); case 1: return this.createTagShowFrame(); case 2: return this.createTagDefineShape(); case 4: return this.createTagPlaceObject(); case 5: return this.createTagRemoveObject(); case 6: return this.createTagDefineBits(); case 7: return this.createTagDefineButton(); case 8: return this.createTagJPEGTables(); case 9: return this.createTagSetBackgroundColor(); case 10: return this.createTagDefineFont(); case 11: return this.createTagDefineText(); case 12: return this.createTagDoAction(); case 13: return this.createTagDefineFontInfo(); case 14: return this.createTagDefineSound(); case 15: return this.createTagStartSound(); case 17: return this.createTagDefineButtonSound(); case 18: return this.createTagSoundStreamHead(); case 19: return this.createTagSoundStreamBlock(); case 20: return this.createTagDefineBitsLossless(); case 21: return this.createTagDefineBitsJPEG2(); case 22: return this.createTagDefineShape2(); case 23: return this.createTagDefineButtonCxform(); case 24: return this.createTagProtect(); case 26: return this.createTagPlaceObject2(); case 28: return this.createTagRemoveObject2(); case 32: return this.createTagDefineShape3(); case 33: return this.createTagDefineText2(); case 34: return this.createTagDefineButton2(); case 35: return this.createTagDefineBitsJPEG3(); case 36: return this.createTagDefineBitsLossless2(); case 37: return this.createTagDefineEditText(); case 39: return this.createTagDefineSprite(); case 40: return this.createTagNameCharacter(); case 41: return this.createTagProductInfo(); case 43: return this.createTagFrameLabel(); case 45: return this.createTagSoundStreamHead2(); case 46: return this.createTagDefineMorphShape(); case 48: return this.createTagDefineFont2(); case 56: return this.createTagExportAssets(); case 57: return this.createTagImportAssets(); case 58: return this.createTagEnableDebugger(); case 59: return this.createTagDoInitAction(); case 60: return this.createTagDefineVideoStream(); case 61: return this.createTagVideoFrame(); case 62: return this.createTagDefineFontInfo2(); case 63: return this.createTagDebugID(); case 64: return this.createTagEnableDebugger2(); case 65: return this.createTagScriptLimits(); case 66: return this.createTagSetTabIndex(); case 69: return this.createTagFileAttributes(); case 70: return this.createTagPlaceObject3(); case 71: return this.createTagImportAssets2(); case 72: return this.createTagDoABCDeprecated(); case 73: return this.createTagDefineFontAlignZones(); case 74: return this.createTagCSMTextSettings(); case 75: return this.createTagDefineFont3(); case 76: return this.createTagSymbolClass(); case 77: return this.createTagMetadata(); case 78: return this.createTagDefineScalingGrid(); case 82: return this.createTagDoABC(); case 83: return this.createTagDefineShape4(); case 84: return this.createTagDefineMorphShape2(); case 86: return this.createTagDefineSceneAndFrameLabelData(); case 87: return this.createTagDefineBinaryData(); case 88: return this.createTagDefineFontName(); case 89: return this.createTagStartSound2(); case 90: return this.createTagDefineBitsJPEG4(); case 91: return this.createTagDefineFont4(); case 93: return this.createTagEnableTelemetry(); case 94: return this.createTagPlaceObject4(); case 253: return this.createTagSWFEncryptActions(); case 255: return this.createTagSWFEncryptSignature(); default: return this.createTagUnknown(e); } }, createTagEnd: function () { return new Wl(); }, createTagShowFrame: function () { return new dh(); }, createTagDefineShape: function () { return new Cl(); }, createTagPlaceObject: function () { return new th(); }, createTagRemoveObject: function () { return new ah(); }, createTagDefineBits: function () { return new al(); }, createTagDefineButton: function () { return new cl(); }, createTagJPEGTables: function () { return new Ql(); }, createTagSetBackgroundColor: function () { return new _h(); }, createTagDefineFont: function () { return new gl(); }, createTagDefineText: function () { return new Ll(); }, createTagDoAction: function () { return new zl(); }, createTagDefineFontInfo: function () { return new Sl(); }, createTagDefineSound: function () { return new Fl(); }, createTagStartSound: function () { return new Sf(); }, createTagDefineButtonSound: function () { return new bl(); }, createTagSoundStreamHead: function () { return new fh(); }, createTagSoundStreamBlock: function () { return new ch(); }, createTagDefineBitsLossless: function () { return new ul(); }, createTagDefineBitsJPEG2: function () { return new ll(); }, createTagDefineShape2: function () { return new Bl(); }, createTagDefineButtonCxform: function () { return new pl(); }, createTagProtect: function () { return new oh(); }, createTagPlaceObject2: function () { return new sh(); }, createTagRemoveObject2: function () { return new lh(); }, createTagDefineShape3: function () { return new Dl(); }, createTagDefineText2: function () { return new Nl(); }, createTagDefineButton2: function () { return new fl(); }, createTagDefineBitsJPEG3: function () { return new hl(); }, createTagDefineBitsLossless2: function () { return new dl(); }, createTagDefineEditText: function () { return new ml(); }, createTagDefineSprite: function () { return new Ml(); }, createTagNameCharacter: function () { return new eh(); }, createTagProductInfo: function () { return new rh(); }, createTagFrameLabel: function () { return new ql(); }, createTagSoundStreamHead2: function () { return new Tf(); }, createTagDefineMorphShape: function () { return new Pl(); }, createTagDefineFont2: function () { return new wl(); }, createTagExportAssets: function () { return new jl(); }, createTagImportAssets: function () { return new Zl(); }, createTagEnableDebugger: function () { return new Hl(); }, createTagDoInitAction: function () { return new Xl(); }, createTagDefineVideoStream: function () { return new Ol(); }, createTagVideoFrame: function () { return new Rf(); }, createTagDefineFontInfo2: function () { return new xl(); }, createTagDebugID: function () { return new rl(); }, createTagEnableDebugger2: function () { return new Vl(); }, createTagScriptLimits: function () { return new hh(); }, createTagSetTabIndex: function () { return new uh(); }, createTagFileAttributes: function () { return new Kl(); }, createTagPlaceObject3: function () { return new nh(); }, createTagImportAssets2: function () { return new Jl(); }, createTagDefineFontAlignZones: function () { return new Tl(); }, createTagCSMTextSettings: function () { return new il(); }, createTagDefineFont3: function () { return new vl(); }, createTagSymbolClass: function () { return new Ef(); }, createTagMetadata: function () { return new $l(); }, createTagDefineScalingGrid: function () { return new Al(); }, createTagDoABC: function () { return new Ul(); }, createTagDoABCDeprecated: function () { return new Gl(); }, createTagDefineShape4: function () { return new kl(); }, createTagDefineMorphShape2: function () { return new Rl(); }, createTagDefineSceneAndFrameLabelData: function () { return new Il(); }, createTagDefineBinaryData: function () { return new ol(); }, createTagDefineFontName: function () { return new El(); }, createTagStartSound2: function () { return new xf(); }, createTagDefineBitsJPEG4: function () { return new _l(); }, createTagDefineFont4: function () { return new yl(); }, createTagEnableTelemetry: function () { return new Yl(); }, createTagPlaceObject4: function () { return new ih(); }, createTagSWFEncryptActions: function () { return new Af(); }, createTagSWFEncryptSignature: function () { return new If(); }, createTagUnknown: function (e) { return new Pf(e); }, __class__: Ta, }); var Sa = function () { (this.__graphicsSavedScale = new qm(0, 0)), (this.__clicks = 0), yt.call(this), (this.__caretIndex = -1), (this.__graphics = new hw(!1)), ((this.__graphics.__owner = this).__textEngine = new Zg(this)), (this.__layoutDirty = !0), (this.__tabEnabled = !0), null == Sa.__defaultTextFormat && ((Sa.__defaultTextFormat = new Uy( "Times New Roman", 12, 0, !1, !1, !1, "", "", 3, 0, 0, 0, 0 )), (Sa.__defaultTextFormat.blockIndent = 0), (Sa.__defaultTextFormat.bullet = !1), (Sa.__defaultTextFormat.letterSpacing = 0), (Sa.__defaultTextFormat.kerning = !1)), (this.__textFormat = Sa.__defaultTextFormat.clone()), this.__textEngine.textFormatRanges.push(new Jg(this.__textFormat, 0, 0)), this.addEventListener("mouseDown", CT(this, this.this_onMouseDown)); }; ((s["openfl.text.TextField"] = Sa).__name__ = [ "openfl", "text", "TextField", ]), (Sa.__defaultTextFormat = null), (Sa.__super__ = yt), (Sa.prototype = n(yt.prototype, { appendText: function (e) { if (0 == this.get_maxChars()) this.__textEngine.text += e; else { if (!(this.__textEngine.text.length < this.get_maxChars())) return; var t = this.get_maxChars() - (this.__textEngine.text.length + e.length); this.__textEngine.text += he.substr(e, 0, t); } (this.__textEngine.textFormatRanges[ this.__textEngine.textFormatRanges.length - 1 ].end = this.__textEngine.text.length), this.set_dirty(!0), (this.__layoutDirty = !0); }, getCharBoundaries: function (e) { if (e < 0 || e > this.__textEngine.text.length) return null; this.__updateLayout(); for (var t = 0, s = this.__textEngine.layoutGroups; t < s.length; ) { var n = s[t]; if ((++t, e >= n.startIndex && e <= n.endIndex)) { for (var i = n.offsetX, r = 0, o = e - n.startIndex; r < o; ) { var a = r++; i += n.advances[a]; } return new cy( i, n.offsetY, n.advances[e - n.startIndex], n.ascent + n.descent ); } } return null; }, getCharBoundariesInGroup: function (e, t) { if (e < 0 || e > this.__textEngine.text.length - 1) return null; if ((this.__updateLayout(), e < t.startIndex || e > t.endIndex)) return null; for (var s = t.offsetX, n = 0, i = e - t.startIndex; n < i; ) { var r = n++; s += t.advances[r]; } return new cy( s, t.offsetY, t.advances[e - t.startIndex], t.ascent + t.descent ); }, getCharIndexAtPoint: function (e, t) { if ( e <= 2 || e > this.get_width() + 4 || t <= 0 || t > this.get_height() + 4 ) return -1; this.__updateLayout(), (e += this.get_scrollH()); for (var s = 0, n = this.get_scrollV() - 1; s < n; ) { var i = s++; t += this.__textEngine.lineHeights[i]; } for (var r = 0, o = this.__textEngine.layoutGroups; r < o.length; ) { var a = o[r]; if ( (++r, t >= a.offsetY && t <= a.offsetY + a.height && e >= a.offsetX && e <= a.offsetX + a.width) ) { for (var l = 0, h = 0, _ = a.advances.length; h < _; ) { var u = h++; if (((l += a.advances[u]), e <= a.offsetX + l)) return a.startIndex + u; } return a.endIndex; } } return -1; }, getFirstCharInParagraph: function (e) { if (e < 0 || e > this.__textEngine.text.length - 1) return 0; for (var t = this.__textEngine.text.indexOf("\n"), s = 0; -1 < t; ) { if (t <= e) s = t + 1; else if (e < t) break; t = this.__textEngine.text.indexOf("\n", t + 1); } return s; }, getLineIndexAtPoint: function (e, t) { if ( (this.__updateLayout(), e <= 2 || e > this.get_width() + 4 || t <= 0 || t > this.get_height() + 4) ) return -1; for (var s = 0, n = this.get_scrollV() - 1; s < n; ) { var i = s++; t += this.__textEngine.lineHeights[i]; } for (var r = 0, o = this.__textEngine.layoutGroups; r < o.length; ) { var a = o[r]; if ((++r, t >= a.offsetY && t <= a.offsetY + a.height)) return a.lineIndex; } return -1; }, getLineIndexOfChar: function (e) { if (e < 0 || e > this.__textEngine.text.length) return -1; this.__updateLayout(); for (var t = 0, s = this.__textEngine.layoutGroups; t < s.length; ) { var n = s[t]; if ((++t, n.startIndex <= e && n.endIndex >= e)) return n.lineIndex; } return -1; }, getLineLength: function (e) { if ( (this.__updateLayout(), e < 0 || e > this.__textEngine.numLines - 1) ) return 0; for ( var t = -1, s = -1, n = 0, i = this.__textEngine.layoutGroups; n < i.length; ) { var r = i[n]; if ((++n, r.lineIndex == e)) -1 == t && (t = r.startIndex); else if (r.lineIndex == e + 1) { s = r.startIndex; break; } } return -1 == s && (s = this.__textEngine.text.length), s - t; }, getLineMetrics: function (e) { this.__updateLayout(); var t, s = this.__textEngine.lineAscents[e], n = this.__textEngine.lineDescents[e], i = this.__textEngine.lineLeadings[e], r = this.__textEngine.lineHeights[e], o = this.__textEngine.lineWidths[e]; switch (this.__textFormat.align) { case 0: t = (this.__textEngine.width - o) / 2; break; case 1: case 4: t = this.__textEngine.width - o - 2; break; case 2: case 3: case 5: t = 2; } return new zy(t, o, r, s, n, i); }, getLineOffset: function (e) { if ( (this.__updateLayout(), e < 0 || e > this.__textEngine.numLines - 1) ) return -1; for (var t = 0, s = this.__textEngine.layoutGroups; t < s.length; ) { var n = s[t]; if ((++t, n.lineIndex == e)) return n.startIndex; } return 0; }, getLineText: function (e) { if ( (this.__updateLayout(), e < 0 || e > this.__textEngine.numLines - 1) ) return null; for ( var t = -1, s = -1, n = 0, i = this.__textEngine.layoutGroups; n < i.length; ) { var r = i[n]; if ((++n, r.lineIndex == e)) -1 == t && (t = r.startIndex); else if (r.lineIndex == e + 1) { s = r.startIndex; break; } } return ( -1 == s && (s = this.__textEngine.text.length), this.__textEngine.text.substring(t, s) ); }, getParagraphLength: function (e) { if (e < 0 || e > this.__textEngine.text.length - 1) return 0; var t = this.getFirstCharInParagraph(e), s = this.__textEngine.text.indexOf("\n", e) + 1; return 0 == s && (s = this.__textEngine.text.length), s - t; }, getTextFormat: function (e, t) { null == t && (t = 0), null == e && (e = 0); for ( var s = null, n = 0, i = this.__textEngine.textFormatRanges; n < i.length; ) { var r = i[n]; ++n, ((r.start <= e && r.end >= e) || (r.start <= t && r.end >= t)) && (null == s ? (s = r.format.clone()) : (r.format.font != s.font && (s.font = null), r.format.size != s.size && (s.size = null), r.format.color != s.color && (s.color = null), r.format.bold != s.bold && (s.bold = null), r.format.italic != s.italic && (s.italic = null), r.format.underline != s.underline && (s.underline = null), r.format.url != s.url && (s.url = null), r.format.target != s.target && (s.target = null), r.format.align != s.align && (s.align = null), r.format.leftMargin != s.leftMargin && (s.leftMargin = null), r.format.rightMargin != s.rightMargin && (s.rightMargin = null), r.format.indent != s.indent && (s.indent = null), r.format.leading != s.leading && (s.leading = null), r.format.blockIndent != s.blockIndent && (s.blockIndent = null), r.format.bullet != s.bullet && (s.bullet = null), r.format.kerning != s.kerning && (s.kerning = null), r.format.letterSpacing != s.letterSpacing && (s.letterSpacing = null), r.format.tabStops != s.tabStops && (s.tabStops = null))); } return s; }, replaceSelectedText: function (e) { if ("" != e || this.__selectionIndex != this.__caretIndex) { var t = this.__caretIndex < this.__selectionIndex ? this.__caretIndex : this.__selectionIndex, s = this.__caretIndex > this.__selectionIndex ? this.__caretIndex : this.__selectionIndex; (e = this.replaceText(t, s, e)), (this.__caretIndex = t + e.length), (this.__selectionIndex = this.__caretIndex); } }, replaceText: function (e, t, s) { if (t < e || e < 0 || t > this.__textEngine.text.length || null == s) return ""; if ( 0 < this.get_maxChars() && this.__textEngine.text.length - (t - e) + s.length > this.get_maxChars() ) { var n = this.get_maxChars() - (this.__textEngine.text.length - (t - e)); if (n <= 0) return ""; s = he.substr(s, 0, n); } var i = this.__textEngine.text.substring(0, e) + s, r = this.__textEngine.text.substring(t); this.__textEngine.text = i + r; for ( var o, a = s.length - (t - e), l = 0; l < this.__textEngine.textFormatRanges.length; ) (o = this.__textEngine.textFormatRanges[l]).start <= e && o.end >= t ? ((o.end += a), ++l) : o.start >= e && o.end <= t ? (this.__textEngine.textFormatRanges.splice(l, 1), (a -= o.end - o.start)) : (o.start > e && o.start <= t && (o.start += a), ++l); return this.set_dirty(!0), (this.__layoutDirty = !0), s; }, setSelection: function (e, t) { (this.__selectionIndex = e), (this.__caretIndex = t); }, setTextFormat: function (e, t, s) { null == s && (s = 0), null == t && (t = 0), null != e.font && (this.__textFormat.font = e.font), null != e.size && (this.__textFormat.size = e.size), null != e.color && (this.__textFormat.color = e.color), null != e.bold && (this.__textFormat.bold = e.bold), null != e.italic && (this.__textFormat.italic = e.italic), null != e.underline && (this.__textFormat.underline = e.underline), null != e.url && (this.__textFormat.url = e.url), null != e.target && (this.__textFormat.target = e.target), null != e.align && (this.__textFormat.align = e.align), null != e.leftMargin && (this.__textFormat.leftMargin = e.leftMargin), null != e.rightMargin && (this.__textFormat.rightMargin = e.rightMargin), null != e.indent && (this.__textFormat.indent = e.indent), null != e.leading && (this.__textFormat.leading = e.leading), null != e.blockIndent && (this.__textFormat.blockIndent = e.blockIndent), null != e.bullet && (this.__textFormat.bullet = e.bullet), null != e.kerning && (this.__textFormat.kerning = e.kerning), null != e.letterSpacing && (this.__textFormat.letterSpacing = e.letterSpacing), null != e.tabStops && (this.__textFormat.tabStops = e.tabStops), this.set_dirty(!0), (this.__layoutDirty = !0); }, __getBounds: function (e) { this.__updateLayout(), e.setTo( this.__textEngine.bounds.x, this.__textEngine.bounds.y, this.__textEngine.bounds.width, this.__textEngine.bounds.height ); }, __getCursor: function () { return this.__textEngine.selectable ? Bm.TEXT : null; }, __getPosition: function (e, t) { if (!this.__textEngine.selectable) return -1; this.__updateLayout(), (e += this.get_scrollH()); for (var s = 0, n = this.get_scrollV() - 1; s < n; ) { var i = s++; t += this.__textEngine.lineHeights[i]; } t < 0 && (e = t = 0), t > this.__textEngine.textHeight && ((t = this.__textEngine.textHeight), (e = this.__textEngine.textWidth)); for ( var r, o, a = !0, l = 0, h = this.__textEngine.layoutGroups.length; l < h; ) { var _ = l++; if ( ((r = this.__textEngine.layoutGroups[_]), (o = _ < this.__textEngine.layoutGroups.length - 1 ? this.__textEngine.layoutGroups[_ + 1] : null), a && (t < r.offsetY && (t = r.offsetY), e < r.offsetX && (e = r.offsetX), (a = !1)), ((t >= r.offsetY && t < r.offsetY + r.height) || null == o) && ((e >= r.offsetX && e < r.offsetX + r.width) || null == o || o.lineIndex != r.lineIndex)) ) { for (var u = 0, d = 0, c = r.advances.length; d < c; ) { var f = d++; if (((u += r.advances[f]), e <= r.offsetX + u)) return e <= r.offsetX + (u - r.advances[f]) + r.advances[f] / 2 ? r.startIndex + f : r.startIndex + f < r.endIndex ? r.startIndex + f + 1 : r.endIndex; } return r.endIndex; } } return this.__textEngine.text.length; }, __hitTest: function (e, t, s, n, i, r) { if ( !!( !!( !( 0 < this.__recursiveMouseListenerCount || null == this.__branchDepth || this.__branchDepth > W.__lastMouseListenerBranchDepth ) || !r.__visible ) || this.__isMask ) || (!!i && !this.mouseEnabled) ) return !1; if (null != this.__mask && !this.__mask.__hitTestMask(e, t)) return !1; this.__getWorldTransform(), this.__updateLayout(); var o = this.__worldTransform, a = o.a * o.d - o.b * o.c, l = 0 == a ? -o.tx : (1 / a) * (o.c * (o.ty - t) + o.d * (e - o.tx)), h = this.__worldTransform, _ = h.a * h.d - h.b * h.c, u = 0 == _ ? -h.ty : (1 / _) * (h.a * (t - h.ty) + h.b * (h.tx - e)); return ( !!this.__textEngine.bounds.contains(l, u) && (null != n && (n._items[n._length++] = r), !0) ); }, __hitTestMask: function (e, t) { this.__getWorldTransform(), this.__updateLayout(); var s = this.__worldTransform, n = s.a * s.d - s.b * s.c, i = 0 == n ? -s.tx : (1 / n) * (s.c * (s.ty - t) + s.d * (e - s.tx)), r = this.__worldTransform, o = r.a * r.d - r.b * r.c, a = 0 == o ? -r.ty : (1 / o) * (r.a * (t - r.ty) + r.b * (r.tx - e)); return !!this.__textEngine.bounds.contains(i, a); }, __renderCanvas: function (e) { var t = this.__graphics; if (this.__dirty || null == t || t.get_dirty() || null == t.__bitmap) { var s = this.__textEngine; if ( (this.__updateLayout(), (this.__showCursor || (null != s.text && "" != s.text) || s.background || s.border || s.__hasFocus) && (!(s.width <= 0 || s.height <= 0) || 2 == s.autoSize)) ) { var n = cy.pool.get(), i = cy.pool.get(), r = this.__renderTransform; this.__getBounds(i), i.transform(n, r), (null != t && null != t.__canvas) || (null == t && ((this.__graphics = new hw(!1)), (t = this.__graphics)), (t.__canvas = Eg.pool.get()), (t.__context = t.__canvas.getContext("2d")), (t.__bounds = new cy(0, 0, i.width, i.height))); var o = t.__context; (t.__canvas.width = Math.ceil(n.width)), (t.__canvas.height = Math.ceil(n.height)); var a = Km.pool.get(); if ( (a.copyFrom(r), a.translate(-Math.floor(n.x), -Math.floor(n.y)), o.setTransform(a.a, a.b, a.c, a.d, a.tx, a.ty), (null != s.text && "" != s.text) || s.__hasFocus) ) { var l = s.text; if (s.displayAsPassword) { var h = l.length; l = Yf.repeat(h, "*"); } 0 != s.antiAliasType || 1 != s.gridFitType ? ((t.__context.mozImageSmoothingEnabled = !0), (t.__context.msImageSmoothingEnabled = !0), (t.__context.imageSmoothingEnabled = !0)) : ((t.__context.mozImageSmoothingEnabled = !1), (t.__context.msImageSmoothingEnabled = !1), (t.__context.imageSmoothingEnabled = !1)), (s.border || s.background) && (o.rect(0.5, 0.5, n.width - 1, n.height - 1), s.background && ((o.fillStyle = "#" + Ri.hex(s.backgroundColor, 6)), o.fill()), s.border && ((o.lineWidth = 1), (o.strokeStyle = "#" + Ri.hex(s.borderColor, 6)), o.stroke())), (o.textBaseline = "alphabetic"), (o.textAlign = "start"); for ( var _, u = -this.get_scrollH(), d = 0, c = 0, f = this.get_scrollV() - 1; c < f; ) { var p = c++; d -= s.lineHeights[p]; } var b = 0; if (this.__showCursor && 0 == s.layoutGroups.length) { var m = this.__textFormat, g = Zg.getFont(m); (o.font = g.name), (o.fillStyle = "#" + Ri.hex(m.color, 6)); var w = s.calculateFontDimensions(this.__textFormat, g); o.fillRect(2, 2, 1, w.height); } for (var v = 0, y = s.layoutGroups; v < y.length; ) { var T = y[v]; if ((++v, !(T.lineIndex < this.get_scrollV() - 1))) { if (T.lineIndex > this.get_scrollV() + s.bottomScrollV - 2) break; var S = Zg.getFont(T.format); (b = S.ascent * T.format.size), (o.font = S.name), (o.fillStyle = "#" + Ri.hex(T.format.color, 6)); var x = l.substring(T.startIndex, T.endIndex), E = new RegExp("\n", "g".split("u").join("")); if ( ((x = x.replace(E, "")), o.fillText(x, T.offsetX + u, T.offsetY + b + d), -1 < this.__caretIndex && s.selectable) ) if (this.__selectionIndex == this.__caretIndex) { if ( this.__showCursor && T.startIndex <= this.__caretIndex && (T.endIndex > this.__caretIndex || (T.endIndex == s.text.length && s.text.length == this.__caretIndex)) ) { for ( var P = (_ = 0), R = this.__caretIndex - T.startIndex; P < R; ) { var A = P++; if (T.advances.length <= A) break; _ += T.advances[A]; } o.fillRect(T.offsetX + _, T.offsetY, 1, T.height); } } else if ( !( T.endIndex < Math.min(this.__caretIndex, this.__selectionIndex) || T.startIndex > Math.max(this.__caretIndex, this.__selectionIndex) ) ) { var I, C, B = 0 | Math.min(this.__selectionIndex, this.__caretIndex), D = 0 | Math.max(this.__selectionIndex, this.__caretIndex); T.startIndex > B && (B = T.startIndex), T.endIndex < D && (D = T.endIndex), (I = this.getCharBoundariesInGroup(B, T)), D >= s.text.length ? ((C = this.getCharBoundariesInGroup( s.text.length - 1, T )).x += C.width + 2) : (C = this.getCharBoundariesInGroup(D, T)), null != I && null != C && ((o.fillStyle = "#000000"), o.fillRect(I.x, I.y, C.x - I.x, T.height), (o.fillStyle = "#FFFFFF"), o.fillText( l.substring(B, D), u + I.x, T.offsetY + b + d )); } } } } else (s.border || s.background) && (s.border ? o.rect(0.5, 0.5, n.width - 1, n.height - 1) : o.rect(0, 0, n.width, n.height), s.background && ((o.fillStyle = "#" + Ri.hex(s.backgroundColor, 6)), o.fill()), s.border && ((o.lineWidth = 1), (o.lineCap = "square"), (o.strokeStyle = "#" + Ri.hex(s.borderColor, 6)), o.stroke())); var k = Km.pool.get(); k.copyFrom(a), k.invert(), t.set___bitmap(sw.fromGraphics(t, null, k)), (t.__canvas = null), (this.__graphicsSavedScale.x = this.renderScaleX), (this.__graphicsSavedScale.y = this.renderScaleY), (this.__dirty = !1), t.set_dirty(!1), Km.pool.put(a), Km.pool.put(k), cy.pool.put(n), cy.pool.put(i); } else (t.__canvas = null), (t.__context = null), t.set_dirty(!1), null != t.__bitmap && t.__bitmap.dispose(), (this.__dirty = !1); } if ( 0 == this.__textEngine.antiAliasType && 1 == this.__textEngine.gridFitType ) { var F = e.context.imageSmoothingEnabled; F && ((e.context.mozImageSmoothingEnabled = !1), (e.context.msImageSmoothingEnabled = !1), (e.context.imageSmoothingEnabled = !1)), yt.prototype.__renderCanvas.call(this, e), F && ((e.context.mozImageSmoothingEnabled = !0), (e.context.msImageSmoothingEnabled = !0), (e.context.imageSmoothingEnabled = !0)); } else yt.prototype.__renderCanvas.call(this, e); }, __drawGraphicsGL: function (e) { var t = this.__graphics; if (this.__dirty || null == t || t.get_dirty() || null == t.__bitmap) { var s = this.__textEngine; if ( (this.__updateLayout(), (this.__showCursor || (null != s.text && "" != s.text) || s.background || s.border || s.__hasFocus) && (!(s.width <= 0 || s.height <= 0) || 2 == s.autoSize)) ) { var n = cy.pool.get(), i = cy.pool.get(), r = this.__renderTransform; this.__getBounds(i), i.transform(n, r), (null != t && null != t.__canvas) || (null == t && ((this.__graphics = new hw(!1)), (t = this.__graphics)), (t.__canvas = Eg.pool.get()), (t.__context = t.__canvas.getContext("2d")), (t.__bounds = new cy(0, 0, i.width, i.height))); var o = t.__context; (t.__canvas.width = Math.ceil(n.width)), (t.__canvas.height = Math.ceil(n.height)); var a = Km.pool.get(); if ( (a.copyFrom(r), a.translate(-Math.floor(n.x), -Math.floor(n.y)), o.setTransform(a.a, a.b, a.c, a.d, a.tx, a.ty), (null != s.text && "" != s.text) || s.__hasFocus) ) { var l = s.text; if (s.displayAsPassword) { var h = l.length; l = Yf.repeat(h, "*"); } 0 != s.antiAliasType || 1 != s.gridFitType ? ((t.__context.mozImageSmoothingEnabled = !0), (t.__context.msImageSmoothingEnabled = !0), (t.__context.imageSmoothingEnabled = !0)) : ((t.__context.mozImageSmoothingEnabled = !1), (t.__context.msImageSmoothingEnabled = !1), (t.__context.imageSmoothingEnabled = !1)), (s.border || s.background) && (o.rect(0.5, 0.5, n.width - 1, n.height - 1), s.background && ((o.fillStyle = "#" + Ri.hex(s.backgroundColor, 6)), o.fill()), s.border && ((o.lineWidth = 1), (o.strokeStyle = "#" + Ri.hex(s.borderColor, 6)), o.stroke())), (o.textBaseline = "alphabetic"), (o.textAlign = "start"); for ( var _, u = -this.get_scrollH(), d = 0, c = 0, f = this.get_scrollV() - 1; c < f; ) { var p = c++; d -= s.lineHeights[p]; } var b = 0; if (this.__showCursor && 0 == s.layoutGroups.length) { var m = this.__textFormat, g = Zg.getFont(m); (o.font = g.name), (o.fillStyle = "#" + Ri.hex(m.color, 6)); var w = s.calculateFontDimensions(this.__textFormat, g); o.fillRect(2, 2, 1, w.height); } for (var v = 0, y = s.layoutGroups; v < y.length; ) { var T = y[v]; if ((++v, !(T.lineIndex < this.get_scrollV() - 1))) { if (T.lineIndex > this.get_scrollV() + s.bottomScrollV - 2) break; var S = Zg.getFont(T.format); (b = S.ascent * T.format.size), (o.font = S.name), (o.fillStyle = "#" + Ri.hex(T.format.color, 6)); var x = l.substring(T.startIndex, T.endIndex), E = new RegExp("\n", "g".split("u").join("")); if ( ((x = x.replace(E, "")), o.fillText(x, T.offsetX + u, T.offsetY + b + d), -1 < this.__caretIndex && s.selectable) ) if (this.__selectionIndex == this.__caretIndex) { if ( this.__showCursor && T.startIndex <= this.__caretIndex && (T.endIndex > this.__caretIndex || (T.endIndex == s.text.length && s.text.length == this.__caretIndex)) ) { for ( var P = (_ = 0), R = this.__caretIndex - T.startIndex; P < R; ) { var A = P++; if (T.advances.length <= A) break; _ += T.advances[A]; } o.fillRect(T.offsetX + _, T.offsetY, 1, T.height); } } else if ( !( T.endIndex < Math.min(this.__caretIndex, this.__selectionIndex) || T.startIndex > Math.max(this.__caretIndex, this.__selectionIndex) ) ) { var I, C, B = 0 | Math.min(this.__selectionIndex, this.__caretIndex), D = 0 | Math.max(this.__selectionIndex, this.__caretIndex); T.startIndex > B && (B = T.startIndex), T.endIndex < D && (D = T.endIndex), (I = this.getCharBoundariesInGroup(B, T)), D >= s.text.length ? ((C = this.getCharBoundariesInGroup( s.text.length - 1, T )).x += C.width + 2) : (C = this.getCharBoundariesInGroup(D, T)), null != I && null != C && ((o.fillStyle = "#000000"), o.fillRect(I.x, I.y, C.x - I.x, T.height), (o.fillStyle = "#FFFFFF"), o.fillText( l.substring(B, D), u + I.x, T.offsetY + b + d )); } } } } else (s.border || s.background) && (s.border ? o.rect(0.5, 0.5, n.width - 1, n.height - 1) : o.rect(0, 0, n.width, n.height), s.background && ((o.fillStyle = "#" + Ri.hex(s.backgroundColor, 6)), o.fill()), s.border && ((o.lineWidth = 1), (o.lineCap = "square"), (o.strokeStyle = "#" + Ri.hex(s.borderColor, 6)), o.stroke())); var k = Km.pool.get(); k.copyFrom(a), k.invert(), t.set___bitmap(sw.fromGraphics(t, null, k)), (t.__canvas = null), (this.__graphicsSavedScale.x = this.renderScaleX), (this.__graphicsSavedScale.y = this.renderScaleY), (this.__dirty = !1), t.set_dirty(!1), Km.pool.put(a), Km.pool.put(k), cy.pool.put(n), cy.pool.put(i); } else (t.__canvas = null), (t.__context = null), t.set_dirty(!1), null != t.__bitmap && t.__bitmap.dispose(), (this.__dirty = !1); } Bg.renderBitmap( this, e, 0 < this.__graphics.mustRefreshGraphicsCounter ); }, __startCursorTimer: function () { (this.__cursorTimer = Qf.delay(CT(this, this.__startCursorTimer), 600)), (this.__showCursor = !this.__showCursor), this.set_dirty(!0); }, __startTextInput: function () { this.__caretIndex < 0 && ((this.__caretIndex = this.__textEngine.text.length), (this.__selectionIndex = this.__caretIndex)), null != this.stage && (this.stage.window.backend.setEnableTextEvents(!0), this.__inputEnabled || (this.stage.window.backend.setEnableTextEvents(!0), this.stage.window.onTextInput.has( CT(this, this.window_onTextInput) ) || (this.stage.window.onTextInput.add( CT(this, this.window_onTextInput) ), this.stage.window.onKeyDown.add( CT(this, this.window_onKeyDown) )), (this.__inputEnabled = !0), (this.__textEngine.__hasFocus = !0), this.__startCursorTimer())); }, __stopCursorTimer: function () { null != this.__cursorTimer && (this.__cursorTimer.stop(), (this.__cursorTimer = null)), this.__showCursor && ((this.__showCursor = !1), this.set_dirty(!0)); }, __stopTextInput: function () { this.__inputEnabled && null != this.stage && (this.stage.window.backend.setEnableTextEvents(!1), this.stage.window.onTextInput.remove( CT(this, this.window_onTextInput) ), this.stage.window.onKeyDown.remove(CT(this, this.window_onKeyDown)), (this.__inputEnabled = !1), (this.__textEngine.__hasFocus = !1), this.__stopCursorTimer()); }, __updateLayout: function () { if (this.__layoutDirty) { if ((this.__textEngine.update(), 2 != this.__textEngine.autoSize)) { var e = this.__textEngine.width, t = this.__textEngine.height; switch (this.__textEngine.autoSize) { case 0: case 1: case 3: this.__textEngine.wordWrap || (this.__textEngine.width = this.__textEngine.textWidth + 4), (this.__textEngine.height = this.__textEngine.textHeight + 4); } if (this.__textEngine.width != e) switch (this.__textEngine.autoSize) { case 0: this.set_x( this.__transform.tx + (e - this.__textEngine.width) / 2 ); break; case 3: this.set_x( this.__transform.tx + (e - this.__textEngine.width) ); } (this.__textEngine.width == e && this.__textEngine.height == t) || this.__textEngine.getLineMeasurements(), this.__textEngine.getBounds(); } this.__caretIndex > this.__textEngine.text.length && (this.__caretIndex = this.__textEngine.text.length), this.__selectionIndex > this.__textEngine.text.length && (this.__selectionIndex = this.__textEngine.text.length), (this.__layoutDirty = !1); } }, delayGraphicsRefresh: function (e, t) { if ( (yt.prototype.delayGraphicsRefresh.call(this, e, t), t && !this.delayScaleRotationGraphicsRefresh) ) if ( Math.abs(this.__graphicsSavedScale.x - this.renderScaleX) > Sa.__maxScaleDifferenceBetweenRefreshGraphics || Math.abs(this.__graphicsSavedScale.y - this.renderScaleY) > Sa.__maxScaleDifferenceBetweenRefreshGraphics ) this.__graphics.mustRefreshGraphicsCounter = 1; else { var s = this.__graphics; (s.mustRefreshGraphicsCounter = hw.__dirtyGraphicsDelay), s.set_dirty(!1); } }, _onWorldTransformScaleRotationChanged: function () { yt.prototype._onWorldTransformScaleRotationChanged.call(this), (this.__layoutDirty = !0); }, __update: function (e, t) { this.__updateLayout(), yt.prototype.__update.call(this, e, t); }, get_antiAliasType: function () { return this.__textEngine.antiAliasType; }, set_antiAliasType: function (e) { return (this.__textEngine.antiAliasType = e); }, get_autoSize: function () { return this.__textEngine.autoSize; }, set_autoSize: function (e) { return ( e != this.__textEngine.autoSize && (this.set_dirty(!0), (this.__layoutDirty = !0)), (this.__textEngine.autoSize = e) ); }, get_background: function () { return this.__textEngine.background; }, set_background: function (e) { return ( e != this.__textEngine.background && this.set_dirty(!0), (this.__textEngine.background = e) ); }, get_backgroundColor: function () { return this.__textEngine.backgroundColor; }, set_backgroundColor: function (e) { return ( e != this.__textEngine.backgroundColor && this.set_dirty(!0), (this.__textEngine.backgroundColor = e) ); }, get_border: function () { return this.__textEngine.border; }, set_border: function (e) { return ( e != this.__textEngine.border && this.set_dirty(!0), (this.__textEngine.border = e) ); }, get_borderColor: function () { return this.__textEngine.borderColor; }, set_borderColor: function (e) { return ( e != this.__textEngine.borderColor && this.set_dirty(!0), (this.__textEngine.borderColor = e) ); }, get_bottomScrollV: function () { return this.__updateLayout(), this.__textEngine.bottomScrollV; }, get_caretIndex: function () { return this.__caretIndex; }, get_defaultTextFormat: function () { return this.__textFormat.clone(); }, set_defaultTextFormat: function (e) { return ( this.__textFormat.__merge(e), (this.__layoutDirty = !0), this.set_dirty(!0), e ); }, get_displayAsPassword: function () { return this.__textEngine.displayAsPassword; }, set_displayAsPassword: function (e) { return ( e != this.__textEngine.displayAsPassword && (this.set_dirty(!0), (this.__layoutDirty = !0)), (this.__textEngine.displayAsPassword = e) ); }, get_embedFonts: function () { return this.__textEngine.embedFonts; }, set_embedFonts: function (e) { return (this.__textEngine.embedFonts = e); }, get_gridFitType: function () { return this.__textEngine.gridFitType; }, set_gridFitType: function (e) { return (this.__textEngine.gridFitType = e); }, get_height: function () { return this.__updateLayout(), yt.prototype.get_height.call(this); }, set_height: function (e) { return ( (1 == this.get_scaleY() && e == this.__textEngine.height) || (this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++), this.set_dirty(!0), (this.__layoutDirty = !0)), this.set_scaleY(1), (this.__textEngine.height = e) ); }, get_htmlText: function () { return this.__textEngine.text; }, parseTags: function (e, t, s, n) { null == n && (n = []); var i = ""; if (e.nodeType != Vt.Document && e.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element or Document but found " + e.nodeType ); for (var r = he.iter(e.children); r.hasNext(); ) { var o, a = r.next(); if (0 == a.nodeType) { if (a.nodeType != Vt.Document && a.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element or Document but found " + a.nodeType ); o = null == a.children[0]; } else o = !0; if (o) { if (a.nodeType == Vt.Document || a.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + a.nodeType); if ( (n.push(new Jg(t, s, s + a.nodeValue.length)), a.nodeType == Vt.Document || a.nodeType == Vt.Element) ) throw new Mp("Bad node type, unexpected " + a.nodeType); if ( ((i += a.nodeValue), a.nodeType == Vt.Document || a.nodeType == Vt.Element) ) throw new Mp("Bad node type, unexpected " + a.nodeType); s += a.nodeValue.length; } else { if (a.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element but found " + a.nodeType ); var l = a.nodeName, h = t.clone(); switch (l.toLowerCase()) { case "b": h.bold = !0; break; case "font": for (var _ = a.attributes(); _.hasNext(); ) { var u = _.next(); switch (u.toLowerCase()) { case "color": h.color = Ue.parseInt( "0x" + this.stripHexPrefix(a.get(u)) ); break; case "face": var d = a.get(u); (h.font = Ca.fontAliases.get(d)), null == h.font && (h.font = d); break; case "kerning": h.kerning = 0 != Ue.parseInt(a.get(u)); break; case "letterSpacing": h.letterSpacing = parseFloat(a.get(u)); break; case "size": h.size = Ue.parseInt(a.get(u)); } } break; case "i": h.italic = !0; break; case "indent": h.leftMargin += 20; break; case "li": h.bullet = !0; break; case "p": for (var c = a.attributes(); c.hasNext(); ) { var f = c.next(); if ("align" == f.toLowerCase()) switch (a.get(f).toLowerCase()) { case "center": h.align = 0; break; case "justify": h.align = 2; break; case "left": h.align = 3; break; case "right": h.align = 4; } } } var p = this.parseTags(a, h, s, n); (i += p.text), (s = p.start_index); } } return { text: i, start_index: s, format_ranges: n }; }, stripHexPrefix: function (e) { return 0 == e.indexOf("#") ? e.substring(1) : 0 == e.indexOf("0x") ? e.substring(2) : e; }, set_htmlText: function (t) { if ( ((this.__isHTML && this.__cachedHtmlText == t) || (this.set_dirty(!0), (this.__layoutDirty = !0)), (this.__isHTML = !0), (this.__cachedHtmlText = t), null != this.__div) ) return (this.__textEngine.text = t); var e = new RegExp("", "g".split("u").join("")), n = (t = t.replace(s, "

")).lastIndexOf("

"); if (0 < n) { var i = he.substr(t, 0, n), r = he.substr(t, n, null), o = new RegExp("

", "g".split("u").join("")); t = (i = i.replace(o, "

\n")) + r; } var a = new RegExp("
", "g".split("u").join("")); t = t.replace(a, "\n"); var l = new RegExp("
", "g".split("u").join("")); t = t.replace(l, "\n"); var h = new RegExp("
", "g".split("u").join("")); t = t.replace(h, "\n"); var _ = new RegExp("", "g".split("u").join("")); t = t.replace(_, "\n"); for (var u = 1; 0 < (u = t.indexOf("
  • ", u)); ) { "\n" != t.charAt(u - 1) && ((t = he.substr(t, 0, u) + "\n" + he.substr(t, u, null)), ++u), ++u; } var d, c = new RegExp("
  • ", "g".split("u").join("")); t = t.replace(c, "●\t\t"); try { d = Vt.parse(t); } catch (e) { (jf.lastException = e) instanceof Mp && (e = e.val), Zf.trace("Unable to parse html: " + Ue.string(e), { fileName: "TextField.hx", lineNumber: 1353, className: "openfl.text.TextField", methodName: "set_htmlText", }); var f = new RegExp("<.*?>", "g".split("u").join("")); (t = t.replace(f, "")), (d = Vt.parse(t)); } this.__textEngine.textFormatRanges.splice( 0, this.__textEngine.textFormatRanges.length ), (this.__textFormat.bold = !1), (this.__textFormat.italic = !1), (this.__textFormat.leftMargin = null); var p = this.parseTags(d, this.__textFormat.clone(), 0); return ( (t = p.text), (this.__textEngine.textFormatRanges = p.format_ranges), 0 < p.format_ranges.length && (this.__textFormat = p.format_ranges[0].format), (this.__textEngine.text = t) ); }, get_length: function () { return null != this.__textEngine.text ? this.__textEngine.text.length : 0; }, get_maxChars: function () { return this.__textEngine.maxChars; }, set_maxChars: function (e) { return ( e != this.__textEngine.maxChars && (this.set_dirty(!0), (this.__layoutDirty = !0)), (this.__textEngine.maxChars = e) ); }, get_maxScrollH: function () { return this.__updateLayout(), this.__textEngine.maxScrollH; }, get_maxScrollV: function () { return this.__updateLayout(), this.__textEngine.maxScrollV; }, get_multiline: function () { return this.__textEngine.multiline; }, set_multiline: function (e) { return ( e != this.__textEngine.multiline && (this.set_dirty(!0), (this.__layoutDirty = !0)), (this.__textEngine.multiline = e) ); }, get_numLines: function () { return this.__updateLayout(), this.__textEngine.numLines; }, get_restrict: function () { return this.__textEngine.restrict; }, set_restrict: function (e) { return (this.__textEngine.restrict = e); }, get_scrollH: function () { return this.__textEngine.scrollH; }, set_scrollH: function (e) { return ( e > this.__textEngine.maxScrollH && (e = this.__textEngine.maxScrollH), e < 0 && (e = 0), e != this.__textEngine.scrollH && this.set_dirty(!0), (this.__textEngine.scrollH = e) ); }, get_scrollV: function () { return this.__textEngine.scrollV; }, set_scrollV: function (e) { return ( e > this.__textEngine.maxScrollV && (e = this.__textEngine.maxScrollV), e < 1 && (e = 1), e != this.__textEngine.scrollV && this.set_dirty(!0), (this.__textEngine.scrollV = e) ); }, get_selectable: function () { return this.__textEngine.selectable; }, set_selectable: function (e) { return ( e != this.__textEngine.selectable && 1 == this.get_type() && (null != this.stage && this.stage.get_focus() == this ? this.__startTextInput() : e || this.__stopTextInput()), (this.__textEngine.selectable = e) ); }, get_selectionBeginIndex: function () { return 0 | Math.min(this.__caretIndex, this.__selectionIndex); }, get_selectionEndIndex: function () { return 0 | Math.max(this.__caretIndex, this.__selectionIndex); }, get_sharpness: function () { return this.__textEngine.sharpness; }, set_sharpness: function (e) { return ( e != this.__textEngine.sharpness && this.set_dirty(!0), (this.__textEngine.sharpness = e) ); }, get_text: function () { return this.__textEngine.text; }, set_text: function (e) { if (!this.__isHTML && this.__textEngine.text == e) return e; this.set_dirty(!0), (this.__layoutDirty = !0), 1 < this.__textEngine.textFormatRanges.length && this.__textEngine.textFormatRanges.splice( 1, this.__textEngine.textFormatRanges.length - 1 ); var t = this.__textEngine.textFormatRanges[0]; return ( (t.format = this.__textFormat), (t.start = 0), (t.end = e.length), (this.__isHTML = !1), (this.__cachedHtmlText = null), (this.__textEngine.text = e) ); }, get_textColor: function () { return this.__textFormat.color; }, set_textColor: function (e) { e != this.__textFormat.color && this.set_dirty(!0); for ( var t = 0, s = this.__textEngine.textFormatRanges; t < s.length; ) { var n = s[t]; ++t, (n.format.color = e); } return (this.__textFormat.color = e); }, get_textWidth: function () { return this.__updateLayout(), this.__textEngine.textWidth; }, get_textHeight: function () { return this.__updateLayout(), this.__textEngine.textHeight; }, get_type: function () { return this.__textEngine.type; }, set_type: function (e) { return ( e != this.__textEngine.type && (1 == e ? (this.addEventListener( "focusIn", CT(this, this.this_onFocusIn) ), this.addEventListener( "focusOut", CT(this, this.this_onFocusOut) ), this.addEventListener( "addedToStage", CT(this, this.this_onAddedToStage) ), this.this_onFocusIn(null)) : (this.removeEventListener( "focusIn", CT(this, this.this_onFocusIn) ), this.removeEventListener( "focusOut", CT(this, this.this_onFocusOut) ), this.removeEventListener( "addedToStage", CT(this, this.this_onAddedToStage) ), this.__stopTextInput()), this.set_dirty(!0)), (this.__textEngine.type = e) ); }, get_width: function () { return this.__updateLayout(), yt.prototype.get_width.call(this); }, set_width: function (e) { return ( (1 == this.get_scaleX() && this.__textEngine.width == e) || (this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++), this.set_dirty(!0), (this.__layoutDirty = !0)), this.set_scaleX(1), (this.__textEngine.width = e) ); }, get_wordWrap: function () { return this.__textEngine.wordWrap; }, set_wordWrap: function (e) { return ( e != this.__textEngine.wordWrap && (this.set_dirty(!0), (this.__layoutDirty = !0)), (this.__textEngine.wordWrap = e) ); }, get_dirty: function () { return this.__dirty; }, set_dirty: function (e) { return ( e && ((this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0)), (this.__dirty = e) ); }, stage_onMouseMove: function (e) { if ( null != this.stage && this.__textEngine.selectable && 0 <= this.__selectionIndex ) { this.__updateLayout(); var t = this.__getPosition(this.get_mouseX(), this.get_mouseY()); t != this.__caretIndex && ((this.__caretIndex = t), this.set_dirty(!0)); } }, stage_onMouseUp: function (e) { var t = this; if ( null != this.stage && (this.stage.removeEventListener( "mouseMove", CT(this, this.stage_onMouseMove) ), this.stage.removeEventListener( "mouseUp", CT(this, this.stage_onMouseUp) ), null != this.__clickTimer && this.__clickTimer.stop(), (this.__clickTimer = Qf.delay(function () { (t.__clicks = 0), (t.__clickTimer = null); }, 400)), this.stage.get_focus() == this) ) if ( (this.__updateLayout(), 3 <= this.__clicks && this.__clicks % 3 == 0) ) this.__selectAll(); else if (2 <= this.__clicks && this.__clicks % 2 == 0) this.__selectWord(); else { this.__getWorldTransform(); var s, n, i = this.__getPosition(this.get_mouseX(), this.get_mouseY()); (s = 0 | Math.min(this.__selectionIndex, i)), (n = 0 | Math.max(this.__selectionIndex, i)), (this.__selectionIndex = s), (this.__caretIndex = n), this.__inputEnabled && (this.this_onFocusIn(null), this.__stopCursorTimer(), this.__startCursorTimer()); } }, this_onAddedToStage: function (e) { this.this_onFocusIn(null); }, this_onFocusIn: function (e) { this.get_selectable() && 1 == this.get_type() && null != this.stage && this.stage.get_focus() == this && this.__startTextInput(); }, this_onFocusOut: function (e) { this.__stopTextInput(); }, this_onMouseDown: function (e) { this.get_selectable() && (this.__updateLayout(), (this.__caretIndex = this.__getPosition( this.get_mouseX(), this.get_mouseY() )), (this.__selectionIndex = this.__caretIndex), this.set_dirty(!0), null != this.__firstDownPos && (Math.abs(this.__firstDownPos.x - this.get_mouseX()) > Sa.__moveDelta || Math.abs(this.__firstDownPos.y - this.get_mouseY()) > Sa.__moveDelta) && (null != this.__clickTimer && this.__clickTimer.stop(), (this.__clicks = 0), qm.pool.put(this.__firstDownPos), (this.__firstDownPos = null)), this.__clicks++, 1 == this.__clicks && (null != this.__firstDownPos && qm.pool.put(this.__firstDownPos), (this.__firstDownPos = qm.pool.get()), (this.__firstDownPos.x = this.get_mouseX()), (this.__firstDownPos.y = this.get_mouseY())), this.stage.addEventListener( "mouseMove", CT(this, this.stage_onMouseMove) ), this.stage.addEventListener( "mouseUp", CT(this, this.stage_onMouseUp) )); }, __findFirstSpace: function (e, t, s) { null == s && (s = !0); var n = this.__textEngine.text.charAt(t); if (e) { if (s) for (; 0 < t && (" " == n || "-" == n); ) --t, (n = this.__textEngine.text.charAt(t)); for (; 0 < t && " " != n && "-" != n; ) --t, (n = this.__textEngine.text.charAt(t)); } else { var i = this.__textEngine.text.length - 1; if (s) for (; t < i && (" " == n || "-" == n); ) ++t, (n = this.__textEngine.text.charAt(t)); for (; t < i && " " != n && "-" != n; ) ++t, (n = this.__textEngine.text.charAt(t)); } return t; }, __selectWord: function () { (this.__caretIndex = this.__getPosition( this.get_mouseX(), this.get_mouseY() )), (this.__selectionIndex = this.__caretIndex), this.set_dirty(!0); this.__textEngine.text.charAt(this.__caretIndex); this.__caretIndex = this.__findFirstSpace(!0, this.__caretIndex, !1); var e = this.__textEngine.text.charAt(this.__caretIndex); (" " != e && "-" != e) || ++this.__caretIndex, (this.__selectionIndex = this.__findFirstSpace( !1, this.__selectionIndex, !1 )); }, __selectAll: function () { (this.__caretIndex = 0), (this.__selectionIndex = this.__textEngine.text.length), this.set_dirty(!0); }, window_onKeyDown: function (e, t) { switch (e) { case 8: this.__selectionIndex == this.__caretIndex && 0 < this.__caretIndex && (Im.get_ctrlKey(t) ? ((this.__selectionIndex = this.__findFirstSpace( !0, this.__caretIndex - 1 )), 0 != this.__selectionIndex && (this.__selectionIndex += 1)) : (this.__selectionIndex = this.__caretIndex - 1)), this.__selectionIndex != this.__caretIndex && (this.replaceSelectedText(""), (this.__selectionIndex = this.__caretIndex), this.dispatchEvent(new _a("change", !0))); break; case 97: Im.get_ctrlKey(t) && this.__selectAll(); break; case 99: Im.get_ctrlKey(t) && hm.set_text( this.__textEngine.text.substring( this.__caretIndex, this.__selectionIndex ) ); break; case 118: if (Im.get_ctrlKey(t)) { var s = hm.get_text(); null != s ? this.replaceSelectedText(s) : this.replaceSelectedText(""), this.dispatchEvent(new _a("change", !0)); } else this.__textEngine.textFormatRanges[ this.__textEngine.textFormatRanges.length - 1 ].end = this.__textEngine.text.length; break; case 120: Im.get_ctrlKey(t) && (hm.set_text( this.__textEngine.text.substring( this.__caretIndex, this.__selectionIndex ) ), this.__caretIndex != this.__selectionIndex && (this.replaceSelectedText(""), this.dispatchEvent(new _a("change", !0)))); break; case 127: this.__selectionIndex == this.__caretIndex && this.__caretIndex < this.__textEngine.text.length && (Im.get_ctrlKey(t) ? (this.__selectionIndex = this.__findFirstSpace(!1, this.__caretIndex) + 1) : (this.__selectionIndex = this.__caretIndex + 1)), this.__selectionIndex != this.__caretIndex && (this.replaceSelectedText(""), (this.__selectionIndex = this.__caretIndex), this.dispatchEvent(new _a("change", !0))); break; case 1073741898: var n = this.getCharBoundaries(this.__caretIndex); (n.x = 0), (this.__caretIndex = this.__getPosition(n.x, n.y)), Im.get_shiftKey(t) || (this.__selectionIndex = this.__caretIndex), this.__stopCursorTimer(), this.__startCursorTimer(); break; case 1073741901: var i = this.getLineIndexOfChar(this.__caretIndex), r = this.getCharBoundaries(this.__caretIndex); (r.x += this.__textEngine.textWidth), this.__textEngine.lineLayoutGroups[i][0].endIndex == this.__caretIndex && (r.y += r.height + 1), (this.__caretIndex = this.__getPosition(r.x, r.y)), Im.get_shiftKey(t) || (this.__selectionIndex = this.__caretIndex), this.__stopCursorTimer(), this.__startCursorTimer(); break; case 1073741903: Im.get_shiftKey(t) && Im.get_ctrlKey(t) ? ((this.__caretIndex = this.__findFirstSpace( !1, 0 | Math.min( this.__caretIndex + 1, this.__textEngine.text.length ) )), this.get_caretIndex() < this.__textEngine.text.length && (this.__caretIndex += 1)) : Im.get_ctrlKey(t) ? ((this.__caretIndex = this.__findFirstSpace( !1, 0 | Math.min( this.__caretIndex + 1, this.__textEngine.text.length ) )), this.get_caretIndex() < this.__textEngine.text.length && (this.__caretIndex += 1), (this.__selectionIndex = this.__caretIndex)) : Im.get_shiftKey(t) ? this.__caretIndex < this.__textEngine.text.length && this.__caretIndex++ : (this.__selectionIndex == this.__caretIndex ? this.__caretIndex < this.__textEngine.text.length && this.__caretIndex++ : (this.__caretIndex = 0 | Math.max(this.__caretIndex, this.__selectionIndex)), (this.__selectionIndex = this.__caretIndex)), this.__stopCursorTimer(), this.__startCursorTimer(); break; case 1073741904: Im.get_shiftKey(t) && Im.get_ctrlKey(t) ? ((this.__caretIndex = this.__findFirstSpace( !0, this.__caretIndex - 1 )), 0 != this.get_caretIndex() && (this.__caretIndex += 1)) : Im.get_ctrlKey(t) ? ((this.__caretIndex = this.__findFirstSpace( !0, this.__caretIndex - 1 )), 0 != this.get_caretIndex() && (this.__caretIndex += 1), (this.__selectionIndex = this.__caretIndex)) : Im.get_shiftKey(t) ? 0 < this.__caretIndex && this.__caretIndex-- : (this.__selectionIndex == this.__caretIndex ? 0 < this.__caretIndex && this.__caretIndex-- : (this.__caretIndex = 0 | Math.min(this.__caretIndex, this.__selectionIndex)), (this.__selectionIndex = this.__caretIndex)), this.__stopCursorTimer(), this.__startCursorTimer(); break; case 1073741905: var o = this.getCharBoundaries(this.__caretIndex); (o.y += o.height + 1), (this.__caretIndex = this.__getPosition(o.x, o.y)), Im.get_shiftKey(t) || (this.__selectionIndex = this.__caretIndex), this.__stopCursorTimer(), this.__startCursorTimer(); break; case 1073741906: var a = this.getCharBoundaries(this.__caretIndex); (a.y -= a.height), (this.__caretIndex = this.__getPosition(a.x, a.y)), Im.get_shiftKey(t) || (this.__selectionIndex = this.__caretIndex), this.__stopCursorTimer(), this.__startCursorTimer(); } }, window_onTextInput: function (e) { this.replaceSelectedText(e), this.dispatchEvent(new _a("change", !0)); }, __class__: Sa, __properties__: n(yt.prototype.__properties__, { set_dirty: "set_dirty", get_dirty: "get_dirty", set_wordWrap: "set_wordWrap", get_wordWrap: "get_wordWrap", set_type: "set_type", get_type: "get_type", get_textWidth: "get_textWidth", get_textHeight: "get_textHeight", set_textColor: "set_textColor", get_textColor: "get_textColor", set_text: "set_text", get_text: "get_text", set_sharpness: "set_sharpness", get_sharpness: "get_sharpness", get_selectionEndIndex: "get_selectionEndIndex", get_selectionBeginIndex: "get_selectionBeginIndex", set_selectable: "set_selectable", get_selectable: "get_selectable", set_scrollV: "set_scrollV", get_scrollV: "get_scrollV", set_scrollH: "set_scrollH", get_scrollH: "get_scrollH", set_restrict: "set_restrict", get_restrict: "get_restrict", get_numLines: "get_numLines", set_multiline: "set_multiline", get_multiline: "get_multiline", get_maxScrollV: "get_maxScrollV", get_maxScrollH: "get_maxScrollH", set_maxChars: "set_maxChars", get_maxChars: "get_maxChars", get_length: "get_length", set_htmlText: "set_htmlText", get_htmlText: "get_htmlText", set_gridFitType: "set_gridFitType", get_gridFitType: "get_gridFitType", set_embedFonts: "set_embedFonts", get_embedFonts: "get_embedFonts", set_displayAsPassword: "set_displayAsPassword", get_displayAsPassword: "get_displayAsPassword", set_defaultTextFormat: "set_defaultTextFormat", get_defaultTextFormat: "get_defaultTextFormat", get_caretIndex: "get_caretIndex", get_bottomScrollV: "get_bottomScrollV", set_borderColor: "set_borderColor", get_borderColor: "get_borderColor", set_border: "set_border", get_border: "get_border", set_backgroundColor: "set_backgroundColor", get_backgroundColor: "get_backgroundColor", set_background: "set_background", get_background: "get_background", set_autoSize: "set_autoSize", get_autoSize: "get_autoSize", set_antiAliasType: "set_antiAliasType", get_antiAliasType: "get_antiAliasType", }), })); var xa = function (e, t) { Sa.call(this), (this.swf = e), (this.symbol = t), (this._variableName = Ri.replace(t.variableName, "_parent.", "")), this.set_width(t.width), this.set_height(t.height), this.set_multiline(t.multiline), this.set_wordWrap(t.wordWrap), this.set_displayAsPassword(t.password), this.set_border(t.border), this.set_selectable(t.selectable); var s = new Uy(); null != t.color && (s.color = 16777215 & t.color), (s.size = Math.round(t.fontHeight / 20)); var n = t.fontName, i = Ca.fontAliases; (s.font = null != NT[n] ? i.getReserved(n) : i.h[n]), null == s.font && (s.font = Ca.fontAliasesId.h[t.fontID]), null == s.font && (s.font = t.fontName); var r = !1, o = s.font; if (null == o) r = !0; else switch (o) { case "": case "_sans": case "_serif": case "_typewriter": r = !0; break; default: for (var a = 0, l = _o.enumerateFonts(); a < l.length; ) { var h = l[a]; if ((++a, h.name == s.font)) { r = !0; break; } } } r ? this.set_embedFonts(!0) : Zf.trace( 'Warning: Could not find required font "' + s.font + '", it has not been embedded', { fileName: "DynamicTextField.hx", lineNumber: 86, className: "format.swf.lite.DynamicTextField", methodName: "new", } ), null != t.align && ("center" == t.align ? (s.align = 0) : "right" == t.align ? (s.align = 4) : "justify" == t.align && (s.align = 2), (s.leftMargin = (t.leftMargin / 20) | 0), (s.rightMargin = (t.rightMargin / 20) | 0), (s.indent = (t.indent / 20) | 0), (s.leading = (t.leading / 20) | 0)), this.set_defaultTextFormat(s), null != t.text && (t.html ? this.set_htmlText(t.text) : this.set_text(t.text)), null != t.maxLength && this.set_maxChars(t.maxLength); }; ((s["format.swf.lite.DynamicTextField"] = xa).__name__ = [ "format", "swf", "lite", "DynamicTextField", ]), (xa.__super__ = Sa), (xa.prototype = n(Sa.prototype, { __update: function (e, t) { var s = null != this._variableName && 0 < this._variableName.length; if (s) { var n = this._variableName, i = this.parent; "_root." == he.substr(this._variableName, 0, 6) ? ((n = Ri.replace(this._variableName, "_root.", "")), (i = Zm.current.getChildAt(0))) : "_global." == he.substr(this._variableName, 0, 8) && ((n = Ri.replace(this._variableName, "_global.", "")), (i = Zm.current.getChildAt(0))); for ( var r = n.split("."), o = function (e, t) { for (var s = e, n = 0; n < t.length; ) { var i = t[n]; if ((++n, null == (s = De.field(s, i)))) return null; } return s; }; null != i; ) { if (Object.prototype.hasOwnProperty.call(i, r[0])) { var a = o(i, r); if (null != a) { null != this.symbol && this.symbol.html ? this.set_htmlText(Ue.string(a)) : this.set_text(Ue.string(a)); break; } } i = i.parent; } } Sa.prototype.__update.call(this, e, t), s && (this.__updateDirty = !0); }, applyTextToVariable: function () { if (null != this._variableName && 0 < this._variableName.length) { var e = this._variableName, t = this.parent; for ( "_root." == he.substr(this._variableName, 0, 6) && ((e = Ri.replace(this._variableName, "_root.", "")), (t = Zm.current.getChildAt(0))); null != t; ) { if (Object.prototype.hasOwnProperty.call(t, e)) { t[e] = this.__textEngine.text; break; } t = t.parent; } } }, window_onKeyDown: function (e, t) { Sa.prototype.window_onKeyDown.call(this, e, t), this.applyTextToVariable(); }, window_onTextInput: function (e) { Sa.prototype.window_onTextInput.call(this, e), this.applyTextToVariable(); }, __class__: xa, })); var Ea = function () { W.call(this); }; ((s["openfl.display.Shape"] = Ea).__name__ = ["openfl", "display", "Shape"]), (Ea.__super__ = W), (Ea.prototype = n(W.prototype, { getSymbol: function () { return this.get_graphics().__symbol; }, get_graphics: function () { return ( null == this.__graphics && ((this.__graphics = new hw()), (this.__graphics.__owner = this)), this.__graphics ); }, __hitTest: function (e, t, s, n, i, r) { return ( !(!this.parent.mouseEnabled && i) && W.prototype.__hitTest.call(this, e, t, s, n, i, r) ); }, toString: function () { var e = this.getSymbol(); return null != e ? "[Shape id: " + e.id + "]" : W.prototype.toString.call(this); }, __class__: Ea, __properties__: n(W.prototype.__properties__, { get_graphics: "get_graphics", }), })); var Pa = function (e, t) { (this.mustCache = !1), Ea.call(this), (this.__symbol = t), (this.get_graphics().__symbol = t).useBitmapCache && (this.get_graphics().keepBitmapData = !0), (this.__swf = e), null == this.__symbol.cachedHandlers && (this.__symbol.cachedHandlers = new lp()), this.set_ratio(0); }; ((s["format.swf.lite.MorphShape"] = Pa).__name__ = [ "format", "swf", "lite", "MorphShape", ]), (Pa.__updateMorphShape = function (e, t, s, n) { var i = e.getCacheEntry(s, t); if (null != i) return ( (n.__bitmap = i.bitmapData), (n.__dirty = !1), (n.__bounds = i.bounds), !1 ); var r = Math.floor(65535 * t), o = e.cachedHandlers.h[r]; if (null == o) { var a = e.getShape(t); (o = new ba()), a.export(o), (e.cachedHandlers.h[r] = o); } return n.clear(), Va.processCommands(n, o.commands), !0; }), (Pa.__super__ = Ea), (Pa.prototype = n(Ea.prototype, { __reset: function () { this.set_ratio(0); }, __getBounds: function (e) { this.__update(!0, !1), Ea.prototype.__getBounds.call(this, e); }, getSymbol: function () { return this.__symbol; }, set_ratio: function (e) { return this.ratio == e ? e : ((this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), (this.ratio = e)); }, __update: function (e, t) { (this.__updateTransforms(), this.__renderDirty) && Pa.__updateMorphShape( this.__symbol, this.ratio, this.__renderTransform, this.get_graphics() ) && (this.mustCache = !0); Ea.prototype.__update.call(this, e, t); }, __renderGL: function (e) { Ea.prototype.__renderGL.call(this, e), this.mustCache && (null != this.get_graphics().__bitmap && this.__symbol.addCacheEntry( this.get_graphics().__bitmap, this.get_graphics().__bounds, this.__renderTransform, this.ratio ), (this.mustCache = !1)); }, __class__: Pa, __properties__: n(Ea.prototype.__properties__, { set_ratio: "set_ratio", }), })); var Ra = function () {}; ((s["lime.app.IModule"] = Ra).__name__ = ["lime", "app", "IModule"]), (Ra.prototype = { __class__: Ra }); var Aa = function () { this.onExit = new rb(); }; ((s["lime.app.Module"] = Aa).__name__ = ["lime", "app", "Module"]), (Aa.__interfaces__ = [Ra]), (Aa.prototype = { onGamepadAxisMove: function (e, t, s) {}, onGamepadButtonDown: function (e, t) {}, onGamepadButtonUp: function (e, t) {}, onGamepadConnect: function (e) { Zf.trace("onGamepadConnect (module)", { fileName: "Module.hx", lineNumber: 64, className: "lime.app.Module", methodName: "onGamepadConnect", }); }, onGamepadDisconnect: function (e) {}, onJoystickAxisMove: function (e, t, s) {}, onJoystickButtonDown: function (e, t) {}, onJoystickButtonUp: function (e, t) {}, onJoystickConnect: function (e) {}, onJoystickDisconnect: function (e) {}, onJoystickHatMove: function (e, t, s) {}, onJoystickTrackballMove: function (e, t, s) {}, onKeyDown: function (e, t, s) {}, onKeyUp: function (e, t, s) {}, onModuleExit: function (e) {}, onMouseDown: function (e, t, s, n) {}, onMouseMove: function (e, t, s) {}, onMouseMoveRelative: function (e, t, s) {}, onMouseUp: function (e, t, s, n) {}, onMouseWheel: function (e, t, s) {}, onPreloadComplete: function () {}, onPreloadProgress: function (e, t, s) {}, onRenderContextLost: function (e) {}, onRenderContextRestored: function (e, t) {}, onTextEdit: function (e, t, s, n) {}, onTextInput: function (e, t) {}, onTouchEnd: function (e) {}, onTouchMove: function (e) {}, onTouchStart: function (e) {}, onWindowActivate: function (e) {}, onWindowClose: function (e) {}, onWindowCreate: function (e) {}, onWindowDeactivate: function (e) {}, onWindowEnter: function (e) {}, onWindowFocusIn: function (e) {}, onWindowFocusOut: function (e) {}, onWindowFullscreen: function (e) {}, onWindowLeave: function (e) {}, onWindowMove: function (e, t, s) {}, onWindowMinimize: function (e) {}, onWindowResize: function (e, t, s) {}, onWindowRestore: function (e) {}, render: function (e) {}, update: function (e) {}, __class__: Aa, }); var Ia = function () { Aa.call(this); }; ((s["format.swf.lite.SoundProcessorModule"] = Ia).__name__ = [ "format", "swf", "lite", "SoundProcessorModule", ]), (Ia.__super__ = Aa), (Ia.prototype = n(Aa.prototype, { render: function (e) { if (0 < u.soundCommandTable.length) { for (var t = 0, s = u.soundCommandTable; t < s.length; ) { var n = s[t]; ++t, null != n.movieClip.stage && u._processSoundCommandCallback(n.command); } u.soundCommandTable = []; } }, __class__: Ia, })); var Ca = function () { (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.symbols = new lp()), (this.classes = new up()), (this.classes_id = new lp()); }; ((s["format.swf.lite.SWFLite"] = Ca).__name__ = [ "format", "swf", "lite", "SWFLite", ]), (Ca.__interfaces__ = [br]), (Ca.__properties__ = { get_defaultInstance: "get_defaultInstance" }), (Ca.defaultInstance = null), (Ca.unserializeLibrary = function (e) { if (null == e) return null; var t = new mr().unserialize(e, Ca); return ( t.cacheSymbolClassNames(), (t.classes = new up()), (t.classes_id = new lp()), t.prepareShapeBitmaps(), t ); }), (Ca.get_defaultInstance = function () { var e = Ca.instances; return null != NT["lib/graphics/graphics.dat"] ? e.getReserved("lib/graphics/graphics.dat") : e.h["lib/graphics/graphics.dat"]; }), (Ca.prototype = { createButton: function (e) { return null; }, createMovieClip: function (e) { if ((null == e && (e = ""), "" == e)) { if ("" != this.root.className) { var t = this.root.className, s = this.classes, n = null != NT[t] ? s.getReserved(t) : s.h[t]; if (null != n) return ms.createInstance(n, [this, this.root]); Zf.trace( "Loading root movie, searching for symbol " + this.root.className + " not found", { fileName: "SWFLite.hx", lineNumber: 60, className: "format.swf.lite.SWFLite", methodName: "createMovieClip", } ); } return new u(this, this.root); } var i = this.symbolClassNames, r = null != NT[e] ? i.getReserved(e) : i.h[e]; if (null != r) { if (r.poolable && 0 < r.pool.size) { var o = r.pool.get(); return o.__reset(), o; } if ("" != r.className) { var a = r.className, l = this.classes, h = null != NT[a] ? l.getReserved(a) : l.h[a]; if (null != h) return ms.createInstance(h, [this, r]); } var _ = this.classes_id.h[r.id]; if (null != _) return ms.createInstance(_, [this, r]); if (Lp.__instanceof(r, Ka)) return new u(this, r); } return null; }, getBitmapData: function (e) { var t = this.symbolClassNames, s = null != NT[e] ? t.getReserved(e) : t.h[e]; if (null != s && Lp.__instanceof(s, Oa)) { var n = s; return Wm.getBitmapData(n.path); } return null; }, hasSymbol: function (e) { var t = this.symbolClassNames; return null != NT[e] ? t.existsReserved(e) : t.h.hasOwnProperty(e); }, serializeLibrary: function () { var e = new mr(); return (this.symbolClassNames = null), e.serialize(this); }, cacheSymbolClassNames: function () { this.symbolClassNames = new up(); for (var e = this.symbols.iterator(); e.hasNext(); ) { var t = e.next(); if (null != t.className) { var s = t.className, n = this.symbolClassNames; null != NT[s] ? n.setReserved(s, t) : (n.h[s] = t); } } }, prepareShapeBitmaps: function () { for (var e = this.symbols.iterator(); e.hasNext(); ) { var t = e.next(); Lp.__instanceof(t, Va) && Lp.__cast(t, Va).graphics.__commands.resolveBitmapDatas(this); } }, set_frameRate: function (e) { return (this.frameTime = (1e3 / e) | 0), (this.frameRate = e); }, getCLID: function () { return Ca.__clid; }, serialize: function (e) { e.out.addInt32(bp.floatToI32(this.frameRate)), e.addKnownRef(this.root); var t = this.symbols; if (null == t) e.out.b.push(0); else { var s = t, n = de.array({ iterator: function () { return s.keys(); }, }), i = n.length + 1; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); for (var r = 0; r < n.length; ) { var o = n[r]; ++r, 0 <= o && o < 128 ? e.out.b.push(o) : (e.out.b.push(128), e.out.addInt32(o)), e.addKnownRef(t.h[o]); } } var a = this.symbolClassNames; if (null == a) e.out.b.push(0); else { var l = a, h = de.array({ iterator: function () { return l.keys(); }, }), _ = h.length + 1; 0 <= _ && _ < 128 ? e.out.b.push(_) : (e.out.b.push(128), e.out.addInt32(_)); for (var u = 0; u < h.length; ) { var d = h[u]; if ((++u, null == d)) e.out.b.push(0); else { var c = Lf.ofString(d), f = c.length + 1; 0 <= f && f < 128 ? e.out.b.push(f) : (e.out.b.push(128), e.out.addInt32(f)); for ( var p = e.out, b = (p.b, c.b), m = 0, g = c.length; m < g; ) { var w = m++; p.b.push(b[w]); } } e.addKnownRef(null != NT[d] ? a.getReserved(d) : a.h[d]); } } }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("frameRate"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("root"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SpriteSymbol") ), e.fieldsNames.push("symbols"), e.fieldsTypes.push( Ap.PMap( Ap.PInt, Ap.PSerializable("format.swf.lite.symbols.SWFSymbol") ) ), e.fieldsNames.push("symbolClassNames"), e.fieldsTypes.push( Ap.PMap( Ap.PString, Ap.PSerializable("format.swf.lite.symbols.SWFSymbol") ) ), (e.isFinal = mr.isClassFinal(Ca.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.getFloat(e.inPos); (e.inPos += 4), this.set_frameRate(t), (this.root = e.getRef(Ka, Ka.__clid)); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)); var n, i, r = s; if (0 == r) n = null; else { for (var o = new lp(); 0 < --r; ) { var a = e.input.b[e.inPos++]; 128 == a && ((a = e.input.getInt32(e.inPos)), (e.inPos += 4)); var l = a, h = e.getRef(Na, Na.__clid); o.h[l] = h; } n = o; } this.symbols = n; var _ = e.input.b[e.inPos++]; 128 == _ && ((_ = e.input.getInt32(e.inPos)), (e.inPos += 4)); var u, d = _; if (0 == d) u = null; else { for (var c = new up(); 0 < --d; ) { var f = e.input.b[e.inPos++]; 128 == f && ((f = e.input.getInt32(e.inPos)), (e.inPos += 4)); var p = f; if (0 == p) i = null; else { --p; var b = e.input.getString(e.inPos, p); (e.inPos += p), (i = b); } var m = i, g = e.getRef(Na, Na.__clid); null != NT[m] ? c.setReserved(m, g) : (c.h[m] = g); } u = c; } this.symbolClassNames = u; }, __class__: Ca, __properties__: { set_frameRate: "set_frameRate" }, }); var Ba = function () { Zr.call(this); }; ((s["openfl.AssetLibrary"] = Ba).__name__ = ["openfl", "AssetLibrary"]), (Ba.__super__ = Zr), (Ba.prototype = n(Zr.prototype, { getMovieClip: function (e) { return null; }, loadMovieClip: function (e) { var t = this; return new bb(function () { return t.getMovieClip(e); }); }, __class__: Ba, })); var Da = function (e) { if ((Ba.call(this), null != e)) { var t = Wm.getBytes(e); this.swf = Ca.unserializeLibrary(jy.toBytes(t)); var s = this.swf, n = Ca.instances; null != NT[e] ? n.setReserved(e, s) : (n.h[e] = s); } }; ((s["format.swf.lite.SWFLiteLibrary"] = Da).__name__ = [ "format", "swf", "lite", "SWFLiteLibrary", ]), (Da.__super__ = Ba), (Da.prototype = n(Ba.prototype, { exists: function (e, t) { return ( ("" == e && "MOVIE_CLIP" == t) || (("IMAGE" == t || "MOVIE_CLIP" == t) && this.swf.hasSymbol(e)) ); }, getImage: function (e) { return kb.fromBitmapData(this.swf.getBitmapData(e)); }, getMovieClip: function (e) { return this.swf.createMovieClip(e); }, load: function () { var e = new gb(); return e.complete(this), e.future; }, unload: function () { for (var e, t = this.swf.symbols.iterator(); t.hasNext(); ) { var s = t.next(); Lp.__instanceof(s, Oa) && ((e = s), Wm.cache.removeBitmapData(e.path)); } }, __class__: Da, })); var ka = function (e, t, s, n) { (this.__childRect = new cy()), j.call(this), (this.enabled = !0), (this.trackAsMenu = !1), (this.useHandCursor = !0), (this.mouseChildren = !1), this.set_upState(null != e ? e : new W()), this.set_overState(t), this.set_downState(s), this.set_hitTestState(null != n ? n : new W()), this.addEventListener("mouseDown", CT(this, this.__this_onMouseDown)), this.addEventListener("mouseOut", CT(this, this.__this_onMouseOut)), this.addEventListener("mouseOver", CT(this, this.__this_onMouseOver)), this.addEventListener("mouseUp", CT(this, this.__this_onMouseUp)), this.set___currentState(this.upState); }; ((s["openfl.display.SimpleButton"] = ka).__name__ = [ "openfl", "display", "SimpleButton", ]), (ka.__super__ = j), (ka.prototype = n(j.prototype, { __getCursor: function () { return this.useHandCursor && !this.__ignoreEvent ? Bm.POINTER : null; }, set_downState: function (e) { return ( null != e ? (this.addChildAt(e, this.__children._length), e.set_visible(!1), null != this.downState && (this.removeChild(this.downState), this.__currentState == this.downState && this.set___currentState(e))) : null != this.downState && this.removeChild(this.downState), (this.downState = e) ); }, set_hitTestState: function (e) { return ( null != e ? (this.addChildAt(e, this.__children._length), e.set_alpha(0), null != this.hitTestState && (this.removeChild(this.hitTestState), this.__currentState == this.hitTestState && this.set___currentState(e))) : null != this.hitTestState && this.removeChild(this.hitTestState), (this.hitTestState = e) ); }, set_overState: function (e) { return ( null != e ? (this.addChildAt(e, this.__children._length), e.set_visible(!1), null != this.overState && (this.removeChild(this.overState), this.__currentState == this.overState && this.set___currentState(e))) : null != this.overState && this.removeChild(this.overState), (this.overState = e) ); }, get_soundTransform: function () { return ( null == this.__soundTransform && (this.__soundTransform = new vy()), new vy(this.__soundTransform.volume, this.__soundTransform.pan) ); }, set_soundTransform: function (e) { return (this.__soundTransform = new vy(e.volume, e.pan)), e; }, set_upState: function (e) { return ( null != e ? (this.addChildAt(e, this.__children._length), e.set_visible(!1), null != this.upState && (this.removeChild(this.upState), this.__currentState == this.upState && this.set___currentState(e))) : null != this.upState && this.removeChild(this.upState), (this.upState = e) ); }, set___currentState: function (e) { return e == this.__currentState ? e : (null != this.__currentState && this.__currentState.set_visible(!1), e.set_visible(!0), (this.__currentState = e)); }, __this_onMouseDown: function (e) { this.__stateChange("overup", "down"), null != this.downState && this.set___currentState(this.downState); }, __this_onMouseOut: function (e) { (this.__ignoreEvent = !1), this.upState != this.__currentState && (this.set___currentState(this.upState), this.__stateChange("overup", "idle")); }, __this_onMouseOver: function (e) { e.buttonDown && (this.__ignoreEvent = !0), this.overState == this.__currentState || null == this.overState || this.__ignoreEvent || (this.set___currentState(this.overState), this.__stateChange("idle", "overup")); }, __this_onMouseUp: function (e) { (this.__ignoreEvent = !1), this.__stateChange("down", "overup"), null != this.overState ? this.set___currentState(this.overState) : this.set___currentState(this.upState); }, __stateChange: function (e, t) {}, __class__: ka, __properties__: n(j.prototype.__properties__, { set___currentState: "set___currentState", set_upState: "set_upState", set_soundTransform: "set_soundTransform", get_soundTransform: "get_soundTransform", set_overState: "set_overState", set_hitTestState: "set_hitTestState", set_downState: "set_downState", }), })); var Fa = function (e, t) { ka.call(this), null != (this.symbol = t).downState && this.set_downState(new u(e, t.downState)), null != t.hitState && this.set_hitTestState(new u(e, t.hitState)), null != t.overState && this.set_overState(new u(e, t.overState)), null != t.upState && this.set_upState(new u(e, t.upState)); }; ((s["format.swf.lite.SimpleButton"] = Fa).__name__ = [ "format", "swf", "lite", "SimpleButton", ]), (Fa.__super__ = ka), (Fa.prototype = n(ka.prototype, { __stateChange: function (e, t) { switch (e) { case "down": "overup" == t && null != this.symbol.onUpSound && u._processSoundCommandCallback(this.symbol.onUpSound); break; case "idle": "overup" == t && null != this.symbol.onOverSound && u._processSoundCommandCallback(this.symbol.onOverSound); break; case "overup": switch (t) { case "down": null != this.symbol.onDownSound && u._processSoundCommandCallback(this.symbol.onDownSound); break; case "idle": null != this.symbol.onIdleSound && u._processSoundCommandCallback(this.symbol.onIdleSound); } } }, __class__: Fa, })); var Ma = function (e, t) { (this._symbol = t), d.call(this), (this.__totalFrames = 1), (this.__currentFrame = 1); var s = Lp.__cast(e.symbols.h[t.bitmapID], Oa); if (this.isSpritesheetImage(s.path)) { var n = Ma.spritesheet.getDisplayObjectByFrameName(s.path); this.addDisplayObject(n, t); } else { var i = new ew(Wm.getBitmapDataFromSymbol(s)); (i.smoothing = t.smooth), (i.pixelSnapping = 2), this.addDisplayObject(i, t); } }; ((s["format.swf.lite.SimpleSprite"] = Ma).__name__ = [ "format", "swf", "lite", "SimpleSprite", ]), (Ma.spritesheet = null), (Ma.__super__ = d), (Ma.prototype = n(d.prototype, { isSpritesheetImage: function (e) { return null != Ma.spritesheet && !Ma.spritesheet.isBitmapExcluded(e); }, addDisplayObject: function (e, t) { e.__transform.copyFrom(t.matrix), this.addChildAt(e, this.__children._length); }, __hitTest: function (e, t, s, n, i, r) { return ( !(!this.parent.mouseEnabled && i) && d.prototype.__hitTest.call(this, e, t, s, n, i, r) ); }, getSymbol: function () { return this._symbol; }, __class__: Ma, })); var La = function (e, t) { j.call(this), (this.swf = e), (this.symbol = t), this.renderGlyphs(); }; ((s["format.swf.lite.StaticTextField"] = La).__name__ = [ "format", "swf", "lite", "StaticTextField", ]), (La.__super__ = j), (La.prototype = n(j.prototype, { renderGlyphs: function () { if (((this.glyphs = []), null != this.symbol.records)) for ( var e = null, t = 16777215, s = this.symbol.matrix.tx, n = this.symbol.matrix.ty, i = 0, r = this.symbol.records; i < r.length; ) { var o = r[i]; if ( (++i, null != o.fontID && (e = this.swf.symbols.h[o.fontID]), null != o.offsetX && (s = this.symbol.matrix.tx + 0.05 * o.offsetX), null != o.offsetY && (n = this.symbol.matrix.ty + 0.05 * o.offsetY), null != o.color && (t = o.color), null != e) ) for ( var a, l = o.fontHeight / 1024, h = 0, _ = o.glyphs.length; h < _; ) { var u = h++; a = o.glyphs[u]; var d = new Ea(), c = new hw(!1); (d.__graphics = c), e.glyphs[a].set_useBitmapCache(!0), c.copyFrom(e.glyphs[a].graphics, !0), (c.__owner = d).set_x(s), d.set_y(n), d.set_scaleX(l), d.set_scaleY(l), (s += 0.05 * o.advances[u]), d .get_transform() .get_colorTransform() .set_color(16777215 & t), (d.get_transform().get_colorTransform().alphaMultiplier = ((t >> 24) & 255) / 255), this.addChildAt(d, this.__children._length), this.glyphs.push(d); } } }, __class__: La, })); var Na = function () { (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.forbidCachedBitmapUpdate = !1), (this.pixelPerfectHitTest = !0), (this.uniqueSharedCachedBitmap = null), (this.useUniqueSharedBitmapCache = !1), (this.poolable = !1), (this.id = -1), (this.className = ""); }; ((s["format.swf.lite.symbols.SWFSymbol"] = Na).__name__ = [ "format", "swf", "lite", "symbols", "SWFSymbol", ]), (Na.__interfaces__ = [br]), (Na.prototype = { set_poolable: function (e) { return ( e && null == this.pool && (this.pool = new la(function () { throw new Mp("Forbidden"); })), (this.poolable = e) ); }, initPool: function (e, t) { this.pool = new la(function () { throw new Mp("Forbidden"); }); for (var s = 0, n = t; s < n; ) { s++; var i = e.createMovieClip(this.className); this.pool.put(i); } this.set_poolable(!0); }, toString: function () { return "SWFSymbol[id: " + this.id + ", name: " + this.className + "] "; }, getCLID: function () { return Na.__clid; }, serialize: function (e) { var t = this.className; if (null == t) e.out.b.push(0); else { var s = Lf.ofString(t), n = s.length + 1; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); for (var i = e.out, r = (i.b, s.b), o = 0, a = s.length; o < a; ) { var l = o++; i.b.push(r[l]); } } var h = this.id; 0 <= h && h < 128 ? e.out.b.push(h) : (e.out.b.push(128), e.out.addInt32(h)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("className"), e.fieldsTypes.push(Ap.PString), e.fieldsNames.push("id"), e.fieldsTypes.push(Ap.PInt), (e.isFinal = mr.isClassFinal(Na.__clid)), e ); }, unserializeInit: function () { (this.className = ""), (this.id = -1), this.set_poolable(!1), (this.useUniqueSharedBitmapCache = !1), (this.uniqueSharedCachedBitmap = null), (this.pixelPerfectHitTest = !0), (this.forbidCachedBitmapUpdate = !1); }, unserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)); var s, n = t; if (0 == n) s = null; else { --n; var i = e.input.getString(e.inPos, n); (e.inPos += n), (s = i); } this.className = s; var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.id = r); }, __class__: Na, __properties__: { set_poolable: "set_poolable" }, }); var Oa = function () { (this.path = ""), (this.alpha = ""), Na.call(this); }; ((s["format.swf.lite.symbols.BitmapSymbol"] = Oa).__name__ = [ "format", "swf", "lite", "symbols", "BitmapSymbol", ]), (Oa.__super__ = Na), (Oa.prototype = n(Na.prototype, { getCLID: function () { return Oa.__clid; }, serialize: function (e) { Na.prototype.serialize.call(this, e); var t = this.alpha; if (null == t) e.out.b.push(0); else { var s = Lf.ofString(t), n = s.length + 1; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); for (var i = e.out, r = (i.b, s.b), o = 0, a = s.length; o < a; ) { var l = o++; i.b.push(r[l]); } } var h = this.path; if (null == h) e.out.b.push(0); else { var _ = Lf.ofString(h), u = _.length + 1; 0 <= u && u < 128 ? e.out.b.push(u) : (e.out.b.push(128), e.out.addInt32(u)); for (var d = e.out, c = (d.b, _.b), f = 0, p = _.length; f < p; ) { var b = f++; d.b.push(c[b]); } } }, getSerializeSchema: function () { var e = Na.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("alpha"), e.fieldsTypes.push(Ap.PString), e.fieldsNames.push("path"), e.fieldsTypes.push(Ap.PString), (e.isFinal = mr.isClassFinal(Oa.__clid)), e ); }, unserializeInit: function () { Na.prototype.unserializeInit.call(this), (this.alpha = ""), (this.path = ""); }, unserialize: function (e) { Na.prototype.unserialize.call(this, e); var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)); var s, n = t; if (0 == n) s = null; else { --n; var i = e.input.getString(e.inPos, n); (e.inPos += n), (s = i); } this.alpha = s; var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)); var o, a = r; if (0 == a) o = null; else { --a; var l = e.input.getString(e.inPos, a); (e.inPos += a), (o = l); } this.path = o; }, __class__: Oa, })); var Ua = function () { Na.call(this); }; ((s["format.swf.lite.symbols.ButtonSymbol"] = Ua).__name__ = [ "format", "swf", "lite", "symbols", "ButtonSymbol", ]), (Ua.__super__ = Na), (Ua.prototype = n(Na.prototype, { getCLID: function () { return Ua.__clid; }, serialize: function (e) { Na.prototype.serialize.call(this, e), e.addKnownRef(this.downState), e.addKnownRef(this.hitState), e.addKnownRef(this.overState), e.addKnownRef(this.upState), e.addKnownRef(this.onIdleSound), e.addKnownRef(this.onOverSound), e.addKnownRef(this.onDownSound), e.addKnownRef(this.onUpSound); }, getSerializeSchema: function () { var e = Na.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("downState"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SpriteSymbol") ), e.fieldsNames.push("hitState"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SpriteSymbol") ), e.fieldsNames.push("overState"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SpriteSymbol") ), e.fieldsNames.push("upState"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SpriteSymbol") ), e.fieldsNames.push("onIdleSound"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SoundCommand") ), e.fieldsNames.push("onOverSound"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SoundCommand") ), e.fieldsNames.push("onDownSound"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SoundCommand") ), e.fieldsNames.push("onUpSound"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SoundCommand") ), (e.isFinal = mr.isClassFinal(Ua.__clid)), e ); }, unserialize: function (e) { Na.prototype.unserialize.call(this, e), (this.downState = e.getRef(Ka, Ka.__clid)), (this.hitState = e.getRef(Ka, Ka.__clid)), (this.overState = e.getRef(Ka, Ka.__clid)), (this.upState = e.getRef(Ka, Ka.__clid)), (this.onIdleSound = e.getRef(ja, ja.__clid)), (this.onOverSound = e.getRef(ja, ja.__clid)), (this.onDownSound = e.getRef(ja, ja.__clid)), (this.onUpSound = e.getRef(ja, ja.__clid)); }, __class__: Ua, })); var Ga = function () { (this.text = ""), (this.fontName = ""), (this.align = ""), (this.variableName = ""), Na.call(this); }; ((s["format.swf.lite.symbols.DynamicTextSymbol"] = Ga).__name__ = [ "format", "swf", "lite", "symbols", "DynamicTextSymbol", ]), (Ga.__super__ = Na), (Ga.prototype = n(Na.prototype, { getCLID: function () { return Ga.__clid; }, serialize: function (e) { Na.prototype.serialize.call(this, e); var t = this.variableName; if (null == t) e.out.b.push(0); else { var s = Lf.ofString(t), n = s.length + 1; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); for (var i = e.out, r = (i.b, s.b), o = 0, a = s.length; o < a; ) { var l = o++; i.b.push(r[l]); } } var h = this.align; if (null == h) e.out.b.push(0); else { var _ = Lf.ofString(h), u = _.length + 1; 0 <= u && u < 128 ? e.out.b.push(u) : (e.out.b.push(128), e.out.addInt32(u)); for (var d = e.out, c = (d.b, _.b), f = 0, p = _.length; f < p; ) { var b = f++; d.b.push(c[b]); } } if ((e.out.b.push(this.border ? 1 : 0), null == this.color)) e.out.b.push(0); else { e.out.b.push(1); var m = this.color; 0 <= m && m < 128 ? e.out.b.push(m) : (e.out.b.push(128), e.out.addInt32(m)); } var g = this.fontHeight; 0 <= g && g < 128 ? e.out.b.push(g) : (e.out.b.push(128), e.out.addInt32(g)); var w = this.fontID; 0 <= w && w < 128 ? e.out.b.push(w) : (e.out.b.push(128), e.out.addInt32(w)); var v = this.fontName; if (null == v) e.out.b.push(0); else { var y = Lf.ofString(v), T = y.length + 1; 0 <= T && T < 128 ? e.out.b.push(T) : (e.out.b.push(128), e.out.addInt32(T)); for (var S = e.out, x = (S.b, y.b), E = 0, P = y.length; E < P; ) { var R = E++; S.b.push(x[R]); } } if ( (e.out.addInt32(bp.floatToI32(this.height)), e.out.b.push(this.html ? 1 : 0), null == this.indent) ) e.out.b.push(0); else { e.out.b.push(1); var A = this.indent; 0 <= A && A < 128 ? e.out.b.push(A) : (e.out.b.push(128), e.out.addInt32(A)); } if (null == this.leading) e.out.b.push(0); else { e.out.b.push(1); var I = this.leading; 0 <= I && I < 128 ? e.out.b.push(I) : (e.out.b.push(128), e.out.addInt32(I)); } if (null == this.leftMargin) e.out.b.push(0); else { e.out.b.push(1); var C = this.leftMargin; 0 <= C && C < 128 ? e.out.b.push(C) : (e.out.b.push(128), e.out.addInt32(C)); } if ( (e.out.b.push(this.multiline ? 1 : 0), e.out.b.push(this.password ? 1 : 0), null == this.rightMargin) ) e.out.b.push(0); else { e.out.b.push(1); var B = this.rightMargin; 0 <= B && B < 128 ? e.out.b.push(B) : (e.out.b.push(128), e.out.addInt32(B)); } e.out.b.push(this.selectable ? 1 : 0); var D = this.text; if (null == D) e.out.b.push(0); else { var k = Lf.ofString(D), F = k.length + 1; 0 <= F && F < 128 ? e.out.b.push(F) : (e.out.b.push(128), e.out.addInt32(F)); for (var M = e.out, L = (M.b, k.b), N = 0, O = k.length; N < O; ) { var U = N++; M.b.push(L[U]); } } if ( (e.out.addInt32(bp.floatToI32(this.width)), e.out.b.push(this.wordWrap ? 1 : 0), e.out.addInt32(bp.floatToI32(this.x)), e.out.addInt32(bp.floatToI32(this.y)), null == this.maxLength) ) e.out.b.push(0); else { e.out.b.push(1); var G = this.maxLength; 0 <= G && G < 128 ? e.out.b.push(G) : (e.out.b.push(128), e.out.addInt32(G)); } }, getSerializeSchema: function () { var e = Na.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("variableName"), e.fieldsTypes.push(Ap.PString), e.fieldsNames.push("align"), e.fieldsTypes.push(Ap.PString), e.fieldsNames.push("border"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("color"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("fontHeight"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("fontID"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("fontName"), e.fieldsTypes.push(Ap.PString), e.fieldsNames.push("height"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("html"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("indent"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("leading"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("leftMargin"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("multiline"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("password"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("rightMargin"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("selectable"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("text"), e.fieldsTypes.push(Ap.PString), e.fieldsNames.push("width"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("wordWrap"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("x"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("y"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("maxLength"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), (e.isFinal = mr.isClassFinal(Ga.__clid)), e ); }, unserializeInit: function () { Na.prototype.unserializeInit.call(this), (this.variableName = ""), (this.align = ""), (this.fontName = ""), (this.text = ""); }, unserialize: function (e) { Na.prototype.unserialize.call(this, e); var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)); var s, n = t; if (0 == n) s = null; else { --n; var i = e.input.getString(e.inPos, n); (e.inPos += n), (s = i); } this.variableName = s; var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)); var o, a = r; if (0 == a) o = null; else { --a; var l = e.input.getString(e.inPos, a); (e.inPos += a), (o = l); } if ( ((this.align = o), (this.border = 0 != e.input.b[e.inPos++]), 0 == e.input.b[e.inPos++]) ) this.color = null; else { var h = e.input.b[e.inPos++]; 128 == h && ((h = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.color = h); } var _ = e.input.b[e.inPos++]; 128 == _ && ((_ = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.fontHeight = _); var u = e.input.b[e.inPos++]; 128 == u && ((u = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.fontID = u); var d = e.input.b[e.inPos++]; 128 == d && ((d = e.input.getInt32(e.inPos)), (e.inPos += 4)); var c, f = d; if (0 == f) c = null; else { --f; var p = e.input.getString(e.inPos, f); (e.inPos += f), (c = p); } this.fontName = c; var b = e.input.getFloat(e.inPos); if ( ((e.inPos += 4), (this.height = b), (this.html = 0 != e.input.b[e.inPos++]), 0 == e.input.b[e.inPos++]) ) this.indent = null; else { var m = e.input.b[e.inPos++]; 128 == m && ((m = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.indent = m); } if (0 == e.input.b[e.inPos++]) this.leading = null; else { var g = e.input.b[e.inPos++]; 128 == g && ((g = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.leading = g); } if (0 == e.input.b[e.inPos++]) this.leftMargin = null; else { var w = e.input.b[e.inPos++]; 128 == w && ((w = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.leftMargin = w); } if ( ((this.multiline = 0 != e.input.b[e.inPos++]), (this.password = 0 != e.input.b[e.inPos++]), 0 == e.input.b[e.inPos++]) ) this.rightMargin = null; else { var v = e.input.b[e.inPos++]; 128 == v && ((v = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.rightMargin = v); } this.selectable = 0 != e.input.b[e.inPos++]; var y = e.input.b[e.inPos++]; 128 == y && ((y = e.input.getInt32(e.inPos)), (e.inPos += 4)); var T, S = y; if (0 == S) T = null; else { --S; var x = e.input.getString(e.inPos, S); (e.inPos += S), (T = x); } this.text = T; var E = e.input.getFloat(e.inPos); (e.inPos += 4), (this.width = E), (this.wordWrap = 0 != e.input.b[e.inPos++]); var P = e.input.getFloat(e.inPos); (e.inPos += 4), (this.x = P); var R = e.input.getFloat(e.inPos); if (((e.inPos += 4), (this.y = R), 0 == e.input.b[e.inPos++])) this.maxLength = null; else { var A = e.input.b[e.inPos++]; 128 == A && ((A = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.maxLength = A); } }, __class__: Ga, })); var za = function () { (this.name = ""), Na.call(this); }; ((s["format.swf.lite.symbols.FontSymbol"] = za).__name__ = [ "format", "swf", "lite", "symbols", "FontSymbol", ]), (za.renderGlyph = function (e, t, s, n, i) { for (var r = 0; r < t.length; ) { var o = t[r]; switch ((++r, o[1])) { case 1: e.beginFill(16777215, 1); break; case 3: var a = o[5], l = o[4], h = o[3], _ = o[2]; e.curveTo(_ * s + n, h * s + i, l * s + n, a * s + i); break; case 5: e.endFill(); break; case 6: var u = o[9], d = o[8], c = o[7], f = o[6], p = o[5], b = o[4], m = o[3], g = o[2]; null != g ? e.lineStyle(g, m, b, p, f, c, d, u) : e.lineStyle(); break; case 9: var w = o[3], v = o[2]; e.lineTo(v * s + n, w * s + i); break; case 10: var y = o[3], T = o[2]; e.moveTo(T * s + n, y * s + i); } } }), (za.__super__ = Na), (za.prototype = n(Na.prototype, { getCLID: function () { return za.__clid; }, serialize: function (e) { Na.prototype.serialize.call(this, e); var t = this.advances; if (null == t) e.out.b.push(0); else { var s = t.length + 1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); for (var n = 0; n < t.length; ) { var i = t[n]; ++n, null == i ? e.out.b.push(0) : (e.out.b.push(1), 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i))); } } e.out.b.push(this.bold ? 1 : 0); var r = this.codes; if (null == r) e.out.b.push(0); else { var o = r.length + 1; 0 <= o && o < 128 ? e.out.b.push(o) : (e.out.b.push(128), e.out.addInt32(o)); for (var a = 0; a < r.length; ) { var l = r[a]; ++a, 0 <= l && l < 128 ? e.out.b.push(l) : (e.out.b.push(128), e.out.addInt32(l)); } } var h = this.glyphs; if (null == h) e.out.b.push(0); else { var _ = h.length + 1; 0 <= _ && _ < 128 ? e.out.b.push(_) : (e.out.b.push(128), e.out.addInt32(_)); for (var u = 0; u < h.length; ) { var d = h[u]; ++u, e.addKnownRef(d); } } if ((e.out.b.push(this.italic ? 1 : 0), null == this.leading)) e.out.b.push(0); else { e.out.b.push(1); var c = this.leading; 0 <= c && c < 128 ? e.out.b.push(c) : (e.out.b.push(128), e.out.addInt32(c)); } var f = this.name; if (null == f) e.out.b.push(0); else { var p = Lf.ofString(f), b = p.length + 1; 0 <= b && b < 128 ? e.out.b.push(b) : (e.out.b.push(128), e.out.addInt32(b)); for (var m = e.out, g = (m.b, p.b), w = 0, v = p.length; w < v; ) { var y = w++; m.b.push(g[y]); } } }, getSerializeSchema: function () { var e = Na.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("advances"), e.fieldsTypes.push(Ap.PArray(Ap.PNull(Ap.PInt))), e.fieldsNames.push("bold"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("codes"), e.fieldsTypes.push(Ap.PArray(Ap.PInt)), e.fieldsNames.push("glyphs"), e.fieldsTypes.push( Ap.PArray(Ap.PSerializable("format.swf.lite.symbols.ShapeSymbol")) ), e.fieldsNames.push("italic"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("leading"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("name"), e.fieldsTypes.push(Ap.PString), (e.isFinal = mr.isClassFinal(za.__clid)), e ); }, unserializeInit: function () { Na.prototype.unserializeInit.call(this), (this.name = ""); }, unserialize: function (e) { var t; Na.prototype.unserialize.call(this, e); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)); var n, i, r = s; if (0 == r) n = null; else { for (var o = [], a = 0, l = --r; a < l; ) { var h = a++; if (0 == e.input.b[e.inPos++]) t = null; else { var _ = e.input.b[e.inPos++]; 128 == _ && ((_ = e.input.getInt32(e.inPos)), (e.inPos += 4)), (t = _); } o[h] = t; } n = o; } (this.advances = n), (this.bold = 0 != e.input.b[e.inPos++]); var u = e.input.b[e.inPos++]; 128 == u && ((u = e.input.getInt32(e.inPos)), (e.inPos += 4)); var d, c, f = u; if (0 == f) d = null; else { for (var p = [], b = 0, m = --f; b < m; ) { var g = b++, w = e.input.b[e.inPos++]; 128 == w && ((w = e.input.getInt32(e.inPos)), (e.inPos += 4)), (i = w), (p[g] = i); } d = p; } this.codes = d; var v = e.input.b[e.inPos++]; 128 == v && ((v = e.input.getInt32(e.inPos)), (e.inPos += 4)); var y, T = v; if (0 == T) y = null; else { for (var S = [], x = 0, E = --T; x < E; ) { var P = x++; (c = e.getRef(Va, Va.__clid)), (S[P] = c); } y = S; } if ( ((this.glyphs = y), (this.italic = 0 != e.input.b[e.inPos++]), 0 == e.input.b[e.inPos++]) ) this.leading = null; else { var R = e.input.b[e.inPos++]; 128 == R && ((R = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.leading = R); } var A = e.input.b[e.inPos++]; 128 == A && ((A = e.input.getInt32(e.inPos)), (e.inPos += 4)); var I, C = A; if (0 == C) I = null; else { --C; var B = e.input.getString(e.inPos, C); (e.inPos += C), (I = B); } this.name = I; }, __class__: za, })); var Xa = function () { (this.__cachePrecision = null), (this.useBitmapCache = !1), Na.call(this); }; ((s["format.swf.lite.symbols.MorphShapeSymbol"] = Xa).__name__ = [ "format", "swf", "lite", "symbols", "MorphShapeSymbol", ]), (Xa.__super__ = Na), (Xa.prototype = n(Na.prototype, { get_cachePrecision: function () { return ( null == this.__cachePrecision && (this.__cachePrecision = Xa.defaultCachePrecision), this.__cachePrecision ); }, set_cachePrecision: function (e) { return (this.__cachePrecision = e); }, getShape: function (e) { for ( var t = 0, s = new Ur(), n = null, i = null, r = 0, o = this.startEdges.records.length; r < o; ) { var a = r++, l = this.startEdges.records[a], h = this.endEdges.records[t++], _ = null; if ( (4 == l.get_type() && 3 == h.get_type() ? (h = this.convertToCurvedEdge(Lp.__cast(h, Hr))) : 3 == l.get_type() && 4 == h.get_type() && (l = this.convertToCurvedEdge(Lp.__cast(l, Hr))), 2 != h.get_type() || 2 == l.get_type()) ) { switch (l.get_type()) { case 1: _ = l.clone(); break; case 2: var u = !1, d = (n = l).clone(); if (2 == h.get_type()) { var c = h; c.stateMoveTo && ((u = !0), (i = c)); } else --t; var f = 0, p = 0; null != i && ((f = i.moveDeltaX), (p = i.moveDeltaY)), (d.stateMoveTo || (u && i.stateMoveTo)) && ((d.moveDeltaX += (f - d.moveDeltaX) * e), (d.moveDeltaY += (p - d.moveDeltaY) * e), (d.stateMoveTo = !0)), (_ = d); break; case 3: var b = l.clone(), m = h; (b.deltaX += (m.deltaX - b.deltaX) * e), (b.deltaY += (m.deltaY - b.deltaY) * e), 0 != b.deltaX && 0 != b.deltaY ? ((b.generalLineFlag = !0), (b.vertLineFlag = !1)) : ((b.generalLineFlag = !1), (b.vertLineFlag = 0 == b.deltaX)), (_ = b); break; case 4: var g = l.clone(), w = h; (g.controlDeltaX += (w.controlDeltaX - g.controlDeltaX) * e), (g.controlDeltaY += (w.controlDeltaY - g.controlDeltaY) * e), (g.anchorDeltaX += (w.anchorDeltaX - g.anchorDeltaX) * e), (g.anchorDeltaY += (w.anchorDeltaY - g.anchorDeltaY) * e), (_ = g); } s.records.push(_); } else { var v = n.clone(), y = h, T = 0, S = 0; null != y && ((T = y.moveDeltaX), (S = y.moveDeltaY)), (v.stateMoveTo = !0), (v.moveDeltaX += (T - v.moveDeltaX) * e), (v.moveDeltaY += (S - v.moveDeltaY) * e), ++t, s.records.push(v); } } for (var x = 0, E = this.morphFillStyles.length; x < E; ) { var P = x++; s.fillStyles.push(this.morphFillStyles[P].getMorphedFillStyle(e)); } for (var R = 0, A = this.morphLineStyles.length; R < A; ) { var I = R++; s.lineStyles.push(this.morphLineStyles[I].getMorphedLineStyle(e)); } return s; }, convertToCurvedEdge: function (e) { var t = new zr(); return ( (t.controlDeltaX = e.deltaX / 2), (t.controlDeltaY = e.deltaY / 2), (t.anchorDeltaX = e.deltaX / 2), (t.anchorDeltaY = e.deltaY / 2), t ); }, set_useBitmapCache: function (e) { return ( e && null == this.cachedTable && (this.cachedTable = []), (this.useBitmapCache = e) ); }, getCacheEntry: function (e, t) { if (this.useBitmapCache) for ( var s = Ha.getHash(e, t, this.get_cachePrecision()), n = 0, i = this.cachedTable; n < i.length; ) { var r = i[n]; if ((++n, r.hash == s)) return r; } return null; }, addCacheEntry: function (e, t, s, n) { if (this.useBitmapCache) { var i = Ha.getHash(s, n, this.get_cachePrecision()); this.cachedTable.push(new Ha(e, t, i)); } }, getCLID: function () { return Xa.__clid; }, serialize: function (e) { Na.prototype.serialize.call(this, e), e.addKnownRef(this.startEdges), e.addKnownRef(this.endEdges); var t = this.morphFillStyles; if (null == t) e.out.b.push(0); else { var s = t.length + 1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); for (var n = 0; n < t.length; ) { var i = t[n]; ++n, e.addKnownRef(i); } } var r = this.morphLineStyles; if (null == r) e.out.b.push(0); else { var o = r.length + 1; 0 <= o && o < 128 ? e.out.b.push(o) : (e.out.b.push(128), e.out.addInt32(o)); for (var a = 0; a < r.length; ) { var l = r[a]; ++a, e.addKnownRef(l); } } }, getSerializeSchema: function () { var e = Na.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("startEdges"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFShape")), e.fieldsNames.push("endEdges"), e.fieldsTypes.push(Ap.PSerializable("format.swf.data.SWFShape")), e.fieldsNames.push("morphFillStyles"), e.fieldsTypes.push( Ap.PArray(Ap.PSerializable("format.swf.data.SWFMorphFillStyle")) ), e.fieldsNames.push("morphLineStyles"), e.fieldsTypes.push( Ap.PArray(Ap.PSerializable("format.swf.data.SWFMorphLineStyle")) ), (e.isFinal = mr.isClassFinal(Xa.__clid)), e ); }, unserializeInit: function () { Na.prototype.unserializeInit.call(this), this.set_useBitmapCache(!1), (this.__cachePrecision = null); }, unserialize: function (e) { var t; Na.prototype.unserialize.call(this, e), (this.startEdges = e.getRef(Ur, Ur.__clid)), (this.endEdges = e.getRef(Ur, Ur.__clid)); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)); var n, i, r = s; if (0 == r) n = null; else { for (var o = [], a = 0, l = --r; a < l; ) { var h = a++; (t = e.getRef(Ar, Ar.__clid)), (o[h] = t); } n = o; } this.morphFillStyles = n; var _ = e.input.b[e.inPos++]; 128 == _ && ((_ = e.input.getInt32(e.inPos)), (e.inPos += 4)); var u, d = _; if (0 == d) u = null; else { for (var c = [], f = 0, p = --d; f < p; ) { var b = f++; (i = e.getRef(Dr, Dr.__clid)), (c[b] = i); } u = c; } this.morphLineStyles = u; }, __class__: Xa, __properties__: n(Na.prototype.__properties__, { set_cachePrecision: "set_cachePrecision", get_cachePrecision: "get_cachePrecision", set_useBitmapCache: "set_useBitmapCache", }), })); var Ha = function (e, t, s) { (this.bitmapData = e), (this.bounds = t.clone()), (this.hash = s); }; ((s["format.swf.lite.symbols.CacheEntry"] = Ha).__name__ = [ "format", "swf", "lite", "symbols", "CacheEntry", ]), (Ha.getHash = function (e, t, s) { var n = Ha.__buffer; return ( (n[0] = 0 | (e.a * s)), (n[1] = 0 | (e.b * s)), (n[2] = 0 | (e.c * s)), (n[3] = 0 | (e.d * s)), (n[4] = 0 | (100 * t)), np.make(Lf.ofData(n.buffer)) ); }), (Ha.prototype = { __class__: Ha }); var Va = function () { (this.renderScale = 1), (this.snapCoordinates = !1), (this.forbidClearCacheOnResize = !1), (this.useBitmapCache = !1), (this.__translationCachePrecision = null), (this.__cachePrecision = null), (this.activeGraphicsTable = new hp()), Na.call(this); }; ((s["format.swf.lite.symbols.ShapeSymbol"] = Va).__name__ = [ "format", "swf", "lite", "symbols", "ShapeSymbol", ]), (Va.lastStageWidth = null), (Va.lastStageHeight = null), (Va.processCommands = function (e, t) { for (var s = 0; s < t.length; ) { var n = t[s]; switch ((++s, n[1])) { case 0: var i = n[5], r = n[4], o = n[3], a = n[2]; e.beginBitmapFillWithId(a, o, r, i); break; case 1: var l = n[3], h = n[2]; e.beginFill(h, l); break; case 2: var _ = n[9], u = n[8], d = n[7], c = n[6], f = n[5], p = n[4], b = n[3], m = n[2]; e.beginGradientFill(m, b, p, f, c, d, u, _); break; case 3: var g = n[5], w = n[4], v = n[3], y = n[2]; e.curveTo(y, v, w, g); break; case 4: var T = n[4], S = n[3], x = n[2]; e.drawImageWithId(x, S, T); break; case 5: e.endFill(); break; case 6: var E = n[9], P = n[8], R = n[7], A = n[6], I = n[5], C = n[4], B = n[3], D = n[2]; null != D ? e.lineStyle(D, B, C, I, A, R, P, E) : e.lineStyle(); break; case 7: var k = n[9], F = n[8], M = n[7], L = n[6], N = n[5], O = n[4], U = n[3], G = n[2]; e.lineGradientStyle(G, U, O, N, L, M, F, k); break; case 8: var z = n[5], X = n[4], H = n[3], V = n[2]; e.lineBitmapStyleWithId(V, H, X, z); break; case 9: var Y = n[3], W = n[2]; e.lineTo(W, Y); break; case 10: var j = n[3], K = n[2]; e.moveTo(K, j); } } }), (Va.__clearCachedTables = function (e) { var t = De.getProperty(e.currentTarget, "width"), s = De.getProperty(e.currentTarget, "height"); if (Va.lastStageWidth != t || Va.lastStageHeight != s) { for ( var n = Va.shapeSymbolsUsingBitmapCacheMap.iterator(); n.hasNext(); ) { var i = n.next(); i.forbidClearCacheOnResize || i.__clearCachedTable(); } (Va.lastStageWidth = t), (Va.lastStageHeight = s); } }), (Va.__super__ = Na), (Va.prototype = n(Na.prototype, { set_useBitmapCache: function (e) { if (e && null == this.cachedTable) { if ( ((this.cachedTable = []), (Va.shapeSymbolsUsingBitmapCacheMap.h[this.id] = this), !Va.eventIsListened) ) { var t = Zm.current.stage; (Va.lastStageWidth = t.get_width()), (Va.lastStageHeight = t.get_height()), t.addEventListener("resize", Va.__clearCachedTables), (Va.eventIsListened = !0); } } else e || Va.shapeSymbolsUsingBitmapCacheMap.remove(this.id); return (this.useBitmapCache = e); }, getCacheEntry: function (e) { for ( var t = Ya.getHash( e, this.get_cachePrecision(), this.get_translationCachePrecision() ), s = 0, n = this.cachedTable; s < n.length; ) { var i = n[s]; if ((++s, i.hash == t)) return i; } return null; }, getCachedBitmapData: function (e) { if (this.useBitmapCache) { var t = this.getCacheEntry(e); if (null != t) return t.bitmapData; if (this.forbidCachedBitmapUpdate && 0 < this.cachedTable.length) return this.cachedTable[0].bitmapData; } return null; }, setCachedBitmapData: function (e, t) { this.useBitmapCache && this.cachedTable.push( new Ya( e, Ya.getHash( t, this.get_cachePrecision(), this.get_translationCachePrecision() ) ) ); }, fillDrawCommandBuffer: function (e) { (this.graphics = new hw()), (this.graphics.__symbol = this), Va.processCommands(this.graphics, e), (this.graphics.readOnly = !0); }, __clearCachedTable: function () { for (var e = this.activeGraphicsTable.keys(); e.hasNext(); ) { e.next().dispose(!1); } for (var t = 0, s = this.cachedTable; t < s.length; ) { var n = s[t]; ++t, null != n.bitmapData && n.bitmapData.dispose(); } 0 < this.cachedTable.length && this.cachedTable.splice(0, this.cachedTable.length); }, get_cachePrecision: function () { return ( null == this.__cachePrecision && (this.__cachePrecision = Va.defaultCachePrecision), this.__cachePrecision ); }, set_cachePrecision: function (e) { return (this.__cachePrecision = e); }, get_translationCachePrecision: function () { return ( null == this.__translationCachePrecision && (this.__translationCachePrecision = Va.defaultTranslationCachePrecision), this.__translationCachePrecision ); }, set_translationCachePrecision: function (e) { return (this.__translationCachePrecision = e); }, registerGraphics: function (e) { this.activeGraphicsTable.set(e, !0); }, unregisterGraphics: function (e) { this.activeGraphicsTable.remove(e); }, getCLID: function () { return Va.__clid; }, serialize: function (e) { Na.prototype.serialize.call(this, e), e.addKnownRef(this.bounds), e.addKnownRef(this.graphics); }, getSerializeSchema: function () { var e = Na.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("bounds"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Rectangle")), e.fieldsNames.push("graphics"), e.fieldsTypes.push(Ap.PSerializable("openfl.display.Graphics")), (e.isFinal = mr.isClassFinal(Va.__clid)), e ); }, unserializeInit: function () { Na.prototype.unserializeInit.call(this), (this.activeGraphicsTable = new hp()), (this.__cachePrecision = null), (this.__translationCachePrecision = null), this.set_useBitmapCache(!1), (this.forbidClearCacheOnResize = !1), (this.snapCoordinates = !1), (this.renderScale = 1); }, unserialize: function (e) { Na.prototype.unserialize.call(this, e), (this.bounds = e.getRef(cy, cy.__clid)), (this.graphics = e.getRef(hw, hw.__clid)); }, __class__: Va, __properties__: n(Na.prototype.__properties__, { set_translationCachePrecision: "set_translationCachePrecision", get_translationCachePrecision: "get_translationCachePrecision", set_cachePrecision: "set_cachePrecision", get_cachePrecision: "get_cachePrecision", set_useBitmapCache: "set_useBitmapCache", }), })); var Ya = function (e, t) { (this.bitmapData = e), (this.hash = t); }; ((s["format.swf.lite.symbols._ShapeSymbol.CacheEntry"] = Ya).__name__ = [ "format", "swf", "lite", "symbols", "_ShapeSymbol", "CacheEntry", ]), (Ya.getHash = function (e, t, s) { var n = Ya.__buffer; return ( (n[0] = 0 | (e.a * t)), (n[1] = 0 | (e.b * t)), (n[2] = 0 | (e.c * t)), (n[3] = 0 | (e.d * t)), (n[4] = 0 | ((e.tx - Math.floor(e.tx)) * s)), (n[5] = 0 | ((e.ty - Math.floor(e.ty)) * s)), np.make(Lf.ofData(n.buffer)) ); }), (Ya.prototype = { __class__: Ya }); var Wa = function () { Na.call(this); }; ((s["format.swf.lite.symbols.SimpleSpriteSymbol"] = Wa).__name__ = [ "format", "swf", "lite", "symbols", "SimpleSpriteSymbol", ]), (Wa.__super__ = Na), (Wa.prototype = n(Na.prototype, { getCLID: function () { return Wa.__clid; }, serialize: function (e) { Na.prototype.serialize.call(this, e); var t = this.bitmapID; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)), e.addKnownRef(this.matrix), e.addKnownRef(this.bounds), e.out.b.push(this.smooth ? 1 : 0); }, getSerializeSchema: function () { var e = Na.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("bitmapID"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("matrix"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Matrix")), e.fieldsNames.push("bounds"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Rectangle")), e.fieldsNames.push("smooth"), e.fieldsTypes.push(Ap.PBool), (e.isFinal = mr.isClassFinal(Wa.__clid)), e ); }, unserialize: function (e) { Na.prototype.unserialize.call(this, e); var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.bitmapID = t), (this.matrix = e.getRef(Km, Km.__clid)), (this.bounds = e.getRef(cy, cy.__clid)), (this.smooth = 0 != e.input.b[e.inPos++]); }, __class__: Wa, })); var ja = function () { this.__uid = (mr.SEQ << 24) | ++mr.UID; }; ((s["format.swf.lite.symbols.SoundCommand"] = ja).__name__ = [ "format", "swf", "lite", "symbols", "SoundCommand", ]), (ja.__interfaces__ = [br]), (ja.prototype = { getCLID: function () { return ja.__clid; }, serialize: function (e) { var t = this.soundId; if ( (0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)), e.out.b.push(this.stop ? 1 : 0), e.out.b.push(this.noMultiple ? 1 : 0), null == this.outPoint) ) e.out.b.push(0); else { e.out.b.push(1); var s = this.outPoint; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); } if (null == this.inPoint) e.out.b.push(0); else { e.out.b.push(1); var n = this.inPoint; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); } var i = this.loopCount; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("soundId"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("stop"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("noMultiple"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("outPoint"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("inPoint"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("loopCount"), e.fieldsTypes.push(Ap.PInt), (e.isFinal = mr.isClassFinal(ja.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; if ( (128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.soundId = t), (this.stop = 0 != e.input.b[e.inPos++]), (this.noMultiple = 0 != e.input.b[e.inPos++]), 0 == e.input.b[e.inPos++]) ) this.outPoint = null; else { var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.outPoint = s); } if (0 == e.input.b[e.inPos++]) this.inPoint = null; else { var n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.inPoint = n); } var i = e.input.b[e.inPos++]; 128 == i && ((i = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.loopCount = i); }, __class__: ja, }); var Ka = function () { Na.call(this), (this.frames = []); }; ((s["format.swf.lite.symbols.SpriteSymbol"] = Ka).__name__ = [ "format", "swf", "lite", "symbols", "SpriteSymbol", ]), (Ka.__super__ = Na), (Ka.prototype = n(Na.prototype, { findDependentSymbols: function (e, t, s, n, i) { for (var r = 0, o = this.frames; r < o.length; ) { var a = o[r]; ++r; for (var l = 0, h = a.objects; l < h.length; ) { var _ = h[l]; if ((++l, _.type == $a.CREATE || _.type == $a.UPDATE_CHARACTER)) { var u = e.symbols.h[_.symbol]; Lp.__instanceof(u, Ka) ? Lp.__cast(u, Ka).findDependentSymbols(e, t, s, n) : null != t && Lp.__instanceof(u, Va) ? (t.h[_.symbol] = u) : null != i && Lp.__instanceof(u, Xa) ? (i.h[_.symbol] = u) : null != s && Lp.__instanceof(u, Wa) ? (s.h[_.symbol] = u) : null != n && Lp.__instanceof(u, Ga) && (n.h[_.symbol] = u); } } } }, createNeededTextures: function (e, t) { var s = new lp(), n = new lp(); this.findDependentSymbols(t, s, n); for (var i = s.iterator(); i.hasNext(); ) { i.next().graphics.createTextures(e); } for (var r = n.iterator(); r.hasNext(); ) { var o = r.next(); Wm.getBitmapDataFromSymbol( Lp.__cast(t.symbols.h[o.bitmapID], Oa) ).getTexture(e); } }, getCLID: function () { return Ka.__clid; }, serialize: function (e) { Na.prototype.serialize.call(this, e); var t = this.frames; if (null == t) e.out.b.push(0); else { var s = t.length + 1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); for (var n = 0; n < t.length; ) { var i = t[n]; ++n, e.addKnownRef(i); } } e.addKnownRef(this.scalingGridRect); }, getSerializeSchema: function () { var e = Na.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("frames"), e.fieldsTypes.push( Ap.PArray(Ap.PSerializable("format.swf.lite.timeline.Frame")) ), e.fieldsNames.push("scalingGridRect"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Rectangle")), (e.isFinal = mr.isClassFinal(Ka.__clid)), e ); }, unserialize: function (e) { var t; Na.prototype.unserialize.call(this, e); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)); var n, i = s; if (0 == i) n = null; else { for (var r = [], o = 0, a = --i; o < a; ) { var l = o++; (t = e.getRef(Ja, Ja.__clid)), (r[l] = t); } n = r; } (this.frames = n), (this.scalingGridRect = e.getRef(cy, cy.__clid)); }, __class__: Ka, })); var qa = function () { Na.call(this); }; ((s["format.swf.lite.symbols.StaticTextSymbol"] = qa).__name__ = [ "format", "swf", "lite", "symbols", "StaticTextSymbol", ]), (qa.__super__ = Na), (qa.prototype = n(Na.prototype, { getCLID: function () { return qa.__clid; }, serialize: function (e) { Na.prototype.serialize.call(this, e), e.addKnownRef(this.matrix), e.addKnownRef(this.bounds); var t = this.records; if (null == t) e.out.b.push(0); else { var s = t.length + 1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); for (var n = 0; n < t.length; ) { var i = t[n]; ++n, e.addKnownRef(i); } } e.out.b.push(this.shapeIsScaled ? 1 : 0); }, getSerializeSchema: function () { var e = Na.prototype.getSerializeSchema.call(this); return ( e.fieldsNames.push("matrix"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Matrix")), e.fieldsNames.push("bounds"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Rectangle")), e.fieldsNames.push("records"), e.fieldsTypes.push( Ap.PArray( Ap.PSerializable("format.swf.lite.symbols.StaticTextRecord") ) ), e.fieldsNames.push("shapeIsScaled"), e.fieldsTypes.push(Ap.PBool), (e.isFinal = mr.isClassFinal(qa.__clid)), e ); }, unserialize: function (e) { var t; Na.prototype.unserialize.call(this, e), (this.matrix = e.getRef(Km, Km.__clid)), (this.bounds = e.getRef(cy, cy.__clid)); var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)); var n, i = s; if (0 == i) n = null; else { for (var r = [], o = 0, a = --i; o < a; ) { var l = o++; (t = e.getRef(Za, Za.__clid)), (r[l] = t); } n = r; } (this.records = n), (this.shapeIsScaled = 0 != e.input.b[e.inPos++]); }, __class__: qa, })); var Za = function () { this.__uid = (mr.SEQ << 24) | ++mr.UID; }; ((s["format.swf.lite.symbols.StaticTextRecord"] = Za).__name__ = [ "format", "swf", "lite", "symbols", "StaticTextRecord", ]), (Za.__interfaces__ = [br]), (Za.prototype = { getCLID: function () { return Za.__clid; }, serialize: function (e) { var t = this.advances; if (null == t) e.out.b.push(0); else { var s = t.length + 1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); for (var n = 0; n < t.length; ) { var i = t[n]; ++n, 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); } } if (null == this.color) e.out.b.push(0); else { e.out.b.push(1); var r = this.color; 0 <= r && r < 128 ? e.out.b.push(r) : (e.out.b.push(128), e.out.addInt32(r)); } var o = this.fontHeight; if ( (0 <= o && o < 128 ? e.out.b.push(o) : (e.out.b.push(128), e.out.addInt32(o)), null == this.fontID) ) e.out.b.push(0); else { e.out.b.push(1); var a = this.fontID; 0 <= a && a < 128 ? e.out.b.push(a) : (e.out.b.push(128), e.out.addInt32(a)); } var l = this.glyphs; if (null == l) e.out.b.push(0); else { var h = l.length + 1; 0 <= h && h < 128 ? e.out.b.push(h) : (e.out.b.push(128), e.out.addInt32(h)); for (var _ = 0; _ < l.length; ) { var u = l[_]; ++_, 0 <= u && u < 128 ? e.out.b.push(u) : (e.out.b.push(128), e.out.addInt32(u)); } } if (null == this.offsetX) e.out.b.push(0); else { e.out.b.push(1); var d = this.offsetX; 0 <= d && d < 128 ? e.out.b.push(d) : (e.out.b.push(128), e.out.addInt32(d)); } if (null == this.offsetY) e.out.b.push(0); else { e.out.b.push(1); var c = this.offsetY; 0 <= c && c < 128 ? e.out.b.push(c) : (e.out.b.push(128), e.out.addInt32(c)); } }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("advances"), e.fieldsTypes.push(Ap.PArray(Ap.PInt)), e.fieldsNames.push("color"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("fontHeight"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("fontID"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("glyphs"), e.fieldsTypes.push(Ap.PArray(Ap.PInt)), e.fieldsNames.push("offsetX"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("offsetY"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), (e.isFinal = mr.isClassFinal(Za.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t, s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)); var n, i = s; if (0 == i) n = null; else { for (var r = [], o = 0, a = --i; o < a; ) { var l = o++, h = e.input.b[e.inPos++]; 128 == h && ((h = e.input.getInt32(e.inPos)), (e.inPos += 4)), (t = h), (r[l] = t); } n = r; } if (((this.advances = n), 0 == e.input.b[e.inPos++])) this.color = null; else { var _ = e.input.b[e.inPos++]; 128 == _ && ((_ = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.color = _); } var u, d = e.input.b[e.inPos++]; if ( (128 == d && ((d = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.fontHeight = d), 0 == e.input.b[e.inPos++]) ) this.fontID = null; else { var c = e.input.b[e.inPos++]; 128 == c && ((c = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.fontID = c); } var f = e.input.b[e.inPos++]; 128 == f && ((f = e.input.getInt32(e.inPos)), (e.inPos += 4)); var p, b = f; if (0 == b) p = null; else { for (var m = [], g = 0, w = --b; g < w; ) { var v = g++, y = e.input.b[e.inPos++]; 128 == y && ((y = e.input.getInt32(e.inPos)), (e.inPos += 4)), (u = y), (m[v] = u); } p = m; } if (((this.glyphs = p), 0 == e.input.b[e.inPos++])) this.offsetX = null; else { var T = e.input.b[e.inPos++]; 128 == T && ((T = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.offsetX = T); } if (0 == e.input.b[e.inPos++]) this.offsetY = null; else { var S = e.input.b[e.inPos++]; 128 == S && ((S = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.offsetY = S); } }, __class__: Za, }); var Ja = function () { (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.objects = []); }; ((s["format.swf.lite.timeline.Frame"] = Ja).__name__ = [ "format", "swf", "lite", "timeline", "Frame", ]), (Ja.__interfaces__ = [br]), (Ja.prototype = { getCLID: function () { return Ja.__clid; }, serialize: function (e) { var t = this.label; if (null == t) e.out.b.push(0); else { var s = Lf.ofString(t), n = s.length + 1; 0 <= n && n < 128 ? e.out.b.push(n) : (e.out.b.push(128), e.out.addInt32(n)); for (var i = e.out, r = (i.b, s.b), o = 0, a = s.length; o < a; ) { var l = o++; i.b.push(r[l]); } } var h = this.objects; if (null == h) e.out.b.push(0); else { var _ = h.length + 1; 0 <= _ && _ < 128 ? e.out.b.push(_) : (e.out.b.push(128), e.out.addInt32(_)); for (var u = 0; u < h.length; ) { var d = h[u]; ++u, e.addKnownRef(d); } } e.addKnownRef(this.startSound); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("label"), e.fieldsTypes.push(Ap.PString), e.fieldsNames.push("objects"), e.fieldsTypes.push( Ap.PArray(Ap.PSerializable("format.swf.lite.timeline.FrameObject")) ), e.fieldsNames.push("startSound"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SoundCommand") ), (e.isFinal = mr.isClassFinal(Ja.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)); var s, n, i = t; if (0 == i) s = null; else { --i; var r = e.input.getString(e.inPos, i); (e.inPos += i), (s = r); } this.label = s; var o = e.input.b[e.inPos++]; 128 == o && ((o = e.input.getInt32(e.inPos)), (e.inPos += 4)); var a, l = o; if (0 == l) a = null; else { for (var h = [], _ = 0, u = --l; _ < u; ) { var d = _++; (n = e.getRef(Qa, Qa.__clid)), (h[d] = n); } a = h; } (this.objects = a), (this.startSound = e.getRef(ja, ja.__clid)); }, __class__: Ja, }); var Qa = function () { (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.cacheAsBitmap = !1); }; ((s["format.swf.lite.timeline.FrameObject"] = Qa).__name__ = [ "format", "swf", "lite", "timeline", "FrameObject", ]), (Qa.__interfaces__ = [br]), (Qa.prototype = { getCLID: function () { return Qa.__clid; }, serialize: function (e) { if ((e.out.b.push(this.cacheAsBitmap ? 1 : 0), null == this.clipDepth)) e.out.b.push(0); else { e.out.b.push(1); var t = this.clipDepth; 0 <= t && t < 128 ? e.out.b.push(t) : (e.out.b.push(128), e.out.addInt32(t)); } if ((e.addKnownRef(this.colorTransform), null == this.depth)) e.out.b.push(0); else { e.out.b.push(1); var s = this.depth; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); } var n = this.filters; if (null == n) e.out.b.push(0); else { var i = n.length + 1; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); for (var r = 0; r < n.length; ) { var o = n[r]; ++r, Dp.doSerialize(e, o); } } var a = this.id; 0 <= a && a < 128 ? e.out.b.push(a) : (e.out.b.push(128), e.out.addInt32(a)), e.addKnownRef(this.matrix); var l = this.name; if (null == l) e.out.b.push(0); else { var h = Lf.ofString(l), _ = h.length + 1; 0 <= _ && _ < 128 ? e.out.b.push(_) : (e.out.b.push(128), e.out.addInt32(_)); for (var u = e.out, d = (u.b, h.b), c = 0, f = h.length; c < f; ) { var p = c++; u.b.push(d[p]); } } if (null == this.symbol) e.out.b.push(0); else { e.out.b.push(1); var b = this.symbol; 0 <= b && b < 128 ? e.out.b.push(b) : (e.out.b.push(128), e.out.addInt32(b)); } if ((kp.doSerialize(e, this.type), null == this.blendMode)) e.out.b.push(0); else { e.out.b.push(1); var m = this.blendMode; 0 <= m && m < 128 ? e.out.b.push(m) : (e.out.b.push(128), e.out.addInt32(m)); } null == this.ratio ? e.out.b.push(0) : (e.out.b.push(1), e.out.addInt32(bp.floatToI32(this.ratio))); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("cacheAsBitmap"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("clipDepth"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("colorTransform"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.ColorTransform")), e.fieldsNames.push("depth"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("filters"), e.fieldsTypes.push( Ap.PArray(Ap.PEnum("format.swf.exporters.core.FilterType")) ), e.fieldsNames.push("id"), e.fieldsTypes.push(Ap.PInt), e.fieldsNames.push("matrix"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Matrix")), e.fieldsNames.push("name"), e.fieldsTypes.push(Ap.PString), e.fieldsNames.push("symbol"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("type"), e.fieldsTypes.push( Ap.PEnum("format.swf.lite.timeline.FrameObjectType") ), e.fieldsNames.push("blendMode"), e.fieldsTypes.push(Ap.PNull(Ap.PInt)), e.fieldsNames.push("ratio"), e.fieldsTypes.push(Ap.PNull(Ap.PFloat)), (e.isFinal = mr.isClassFinal(Qa.__clid)), e ); }, unserializeInit: function () { this.cacheAsBitmap = !1; }, unserialize: function (e) { if ( ((this.cacheAsBitmap = 0 != e.input.b[e.inPos++]), 0 == e.input.b[e.inPos++]) ) this.clipDepth = null; else { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.clipDepth = t); } if ( ((this.colorTransform = e.getRef(jm, jm.__clid)), 0 == e.input.b[e.inPos++]) ) this.depth = null; else { var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.depth = s); } var n, i = e.input.b[e.inPos++]; 128 == i && ((i = e.input.getInt32(e.inPos)), (e.inPos += 4)); var r, o = i; if (0 == o) r = null; else { for (var a = [], l = 0, h = --o; l < h; ) { var _ = l++; (n = Dp.doUnserialize(e)), (a[_] = n); } r = a; } this.filters = r; var u = e.input.b[e.inPos++]; 128 == u && ((u = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.id = u), (this.matrix = e.getRef(Km, Km.__clid)); var d = e.input.b[e.inPos++]; 128 == d && ((d = e.input.getInt32(e.inPos)), (e.inPos += 4)); var c, f = d; if (0 == f) c = null; else { --f; var p = e.input.getString(e.inPos, f); (e.inPos += f), (c = p); } if (((this.name = c), 0 == e.input.b[e.inPos++])) this.symbol = null; else { var b = e.input.b[e.inPos++]; 128 == b && ((b = e.input.getInt32(e.inPos)), (e.inPos += 4)), (this.symbol = b); } var m, g = kp.doUnserialize(e); if (((this.type = g), 0 == e.input.b[e.inPos++])) m = null; else { var w = e.input.b[e.inPos++]; 128 == w && ((w = e.input.getInt32(e.inPos)), (e.inPos += 4)), (m = w); } if (((this.blendMode = m), 0 == e.input.b[e.inPos++])) this.ratio = null; else { var v = e.input.getFloat(e.inPos); (e.inPos += 4), (this.ratio = v); } }, __class__: Qa, }); var $a = (s["format.swf.lite.timeline.FrameObjectType"] = { __ename__: ["format", "swf", "lite", "timeline", "FrameObjectType"], __constructs__: ["CREATE", "UPDATE", "UPDATE_CHARACTER", "DESTROY"], }); ($a.CREATE = ["CREATE", 0]), ($a.CREATE.toString = c), (($a.CREATE.__enum__ = $a).UPDATE = ["UPDATE", 1]), ($a.UPDATE.toString = c), (($a.UPDATE.__enum__ = $a).UPDATE_CHARACTER = ["UPDATE_CHARACTER", 2]), ($a.UPDATE_CHARACTER.toString = c), (($a.UPDATE_CHARACTER.__enum__ = $a).DESTROY = ["DESTROY", 3]), ($a.DESTROY.toString = c), ($a.DESTROY.__enum__ = $a); var el = function () {}; ((s["format.swf.tags.ITag"] = el).__name__ = [ "format", "swf", "tags", "ITag", ]), (el.prototype = { __class__: el }); var tl = function () {}; ((s["format.swf.tags.IDefinitionTag"] = tl).__name__ = [ "format", "swf", "tags", "IDefinitionTag", ]), (tl.__interfaces__ = [el]), (tl.prototype = { __class__: tl }); var sl = function () {}; ((s["format.swf.tags.IDisplayListTag"] = sl).__name__ = [ "format", "swf", "tags", "IDisplayListTag", ]), (sl.__interfaces__ = [el]); var nl = function () {}; ((s["format.swf.tags.Tag"] = nl).__name__ = ["format", "swf", "tags", "Tag"]), (nl.toStringCommon = function (e, t, s) { return ( null == s && (s = 0), Yf.repeat(s) + "[" + Yf.printf("%02d", [e]) + ":" + t + "] " ); }); var il = function () { (this.type = 74), (this.name = "CSMTextSettings"), (this.version = 8), (this.level = 1); }; ((s["format.swf.tags.TagCSMTextSettings"] = il).__name__ = [ "format", "swf", "tags", "TagCSMTextSettings", ]), (il.__interfaces__ = [el]), (il.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.textId = or.readUI16(e)), (this.useFlashType = or.readUB(e, 2)), (this.gridFit = or.readUB(e, 3)), or.readUB(e, 3), (this.thickness = or.readFIXED(e)), (this.sharpness = or.readFIXED(e)), or.readUI8(e); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 12), or.writeUI16(e, this.textId), or.writeUB(e, 2, this.useFlashType), or.writeUB(e, 3, this.gridFit), or.writeUB(e, 3, 0), or.writeFIXED(e, this.thickness), or.writeFIXED(e, this.sharpness), or.writeUI8(e, 0); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "TextID: " + this.textId + ", UseFlashType: " + this.useFlashType + ", GridFit: " + this.gridFit + ", Thickness: " + this.thickness + ", Sharpness: " + this.sharpness ); }, __class__: il, }); var rl = function () { (this.type = 63), (this.name = "DebugID"), (this.version = 6), (this.level = 1); var e = new Uf(0); this.uuid = e; }; ((s["format.swf.tags.TagDebugID"] = rl).__name__ = [ "format", "swf", "tags", "TagDebugID", ]), (rl.__interfaces__ = [el]), (rl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), 0 < t && e.readBytes(this.uuid, 0, t); }, publish: function (e, t) { or.writeTagHeader(e, this.type, jy.get_length(this.uuid)), 0 < jy.get_length(this.uuid) && e.writeBytes(this.uuid); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "UUID: "; return ( 16 == jy.get_length(this.uuid) ? ((t += Yf.printf("%02x%02x%02x%02x-", [ this.uuid.b[0], this.uuid.b[1], this.uuid.b[2], this.uuid.b[3], ])), (t += Yf.printf("%02x%02x-", [this.uuid.b[4], this.uuid.b[5]])), (t += Yf.printf("%02x%02x-", [this.uuid.b[6], this.uuid.b[7]])), (t += Yf.printf("%02x%02x-", [this.uuid.b[8], this.uuid.b[9]])), (t += Yf.printf("%02x%02x%02x%02x%02x%02x", [ this.uuid.b[10], this.uuid.b[11], this.uuid.b[12], this.uuid.b[13], this.uuid.b[14], this.uuid.b[15], ]))) : (t += "(invalid length: " + jy.get_length(this.uuid) + ")"), t ); }, __class__: rl, }); var ol = function () { (this.type = 87), (this.name = "DefineBinaryData"), (this.version = 9), (this.level = 1); var e = new Uf(0); this.binaryData = e; }; ((s["format.swf.tags.TagDefineBinaryData"] = ol).__name__ = [ "format", "swf", "tags", "TagDefineBinaryData", ]), (ol.__interfaces__ = [tl]), (ol.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), or.readUI32(e), 6 < t && e.readBytes(this.binaryData, 0, t - 6); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeUI32(s, 0), 0 < jy.get_length(this.binaryData) && s.writeBytes(this.binaryData), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new ol(); return ( (e.characterId = this.characterId), 0 < jy.get_length(this.binaryData) && e.binaryData.writeBytes(this.binaryData), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Length: " + jy.get_length(this.binaryData) ); }, __class__: ol, }); var al = function () { (this.bitmapType = 1), (this.type = 6), (this.name = "DefineBits"), (this.version = 1), (this.level = 1); var e = new Uf(0); this.bitmapData = e; }; ((s["format.swf.tags.TagDefineBits"] = al).__name__ = [ "format", "swf", "tags", "TagDefineBits", ]), (al.__interfaces__ = [tl]), (al.parseJpegChunks = function (e) { for ( var t = 0, s = jy.get_length(e); t < s && (255 != e.b[t] || (t + 1 < s && (0 == e.b[t + 1] || 255 == e.b[t + 1]))); ) ++t; for (; t < s; ) { t++; var n = e.b[t++]; if ( (192 <= n && n <= 199) || (201 <= n && n <= 207) || (218 <= n && n <= 239) || 254 == n ) t += e.b[t] << (8 + e.b[t + 1]); for ( ; t < s && (255 != e.b[t] || (t + 1 < s && (0 == e.b[t + 1] || 255 == e.b[t + 1]))); ) ++t; 216 != n && 217 != n && Zf.trace("Unsupported: Implement for current platform", { fileName: "TagDefineBits.hx", lineNumber: 132, className: "format.swf.tags.TagDefineBits", methodName: "parseJpegChunks", }); } return []; }), (al.hasErrorHeader = function (e) { return ( 4 < jy.get_length(e) && 255 == e.b[0] && 217 == e.b[1] && 255 == e.b[2] && 216 == e.b[3] ); }), (al.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), 2 < t && (e.readBytes(this.bitmapData, 0, t - 2), al.hasErrorHeader(this.bitmapData) && Zf.trace("Unsupported: Implement for current platform", { fileName: "TagDefineBits.hx", lineNumber: 46, className: "format.swf.tags.TagDefineBits", methodName: "parse", })); }, publish: function (e, t) { or.writeTagHeader(e, this.type, jy.get_length(this.bitmapData) + 2, !0), or.writeUI16(e, this.characterId), 0 < jy.get_length(this.bitmapData) && e.writeBytes(this.bitmapData); }, clone: function () { var e = new al(); return ( (e.characterId = this.characterId), (e.bitmapType = this.bitmapType), 0 < jy.get_length(this.bitmapData) && e.bitmapData.writeBytes(this.bitmapData), e ); }, exportBitmapData: function (e) { (this.onCompleteCallback = e), (this.loader = new Rw()), this.loader.contentLoaderInfo.addEventListener( "complete", CT(this, this.exportCompleteHandler) ), this.loader.loadBytes(this.bitmapData); }, exportCompleteHandler: function (e) { var t = e.target.loader, s = new sw( Math.ceil(t.content.get_width()), Math.ceil(t.content.get_height()) ); s.draw(t), (this.instance = s), this.onCompleteCallback(s); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", BitmapLength: " + jy.get_length(this.bitmapData) ); }, getOriginalImageData: function (e) { var t = new Uf(0), s = al.parseJpegChunks(this.bitmapData), n = !1; if (null != e && 0 != jy.get_length(e)) for (var i = 0; i < s.length; ) { var r = s[i]; ++i; var o = r.b[1]; if (196 == o || 219 == o) { n = !0; break; } } if ( (t.writeByte(255), t.writeByte(216), n || null == e || 0 == jy.get_length(e)) ) for (var a = 0; a < s.length; ) { var l = s[a]; ++a, t.writeBytes(l); } else { al.hasErrorHeader(e) && Zf.trace("Unsupported: Implement for current platform", { fileName: "TagDefineBits.hx", lineNumber: 166, className: "format.swf.tags.TagDefineBits", methodName: "getOriginalImageData", }); for (var h = !1, _ = al.parseJpegChunks(e), u = 0; u < s.length; ) { var d = s[u]; ++u; var c = d.b[1]; if (!h && 192 <= c && c <= 207) { for (var f = 0; f < _.length; ) { var p = _[f]; ++f, t.writeBytes(p); } h = !0; } t.writeBytes(d); } } return t.writeByte(255), t.writeByte(217), t; }, __class__: al, }); var ll = function () { al.call(this), (this.type = 21), (this.name = "DefineBitsJPEG2"), (this.version = 2), (this.level = 2); }; ((s["format.swf.tags.TagDefineBitsJPEG2"] = ll).__name__ = [ "format", "swf", "tags", "TagDefineBitsJPEG2", ]), (ll.__interfaces__ = [tl]), (ll.__super__ = al), (ll.prototype = n(al.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), al.prototype.parse.call(this, e, t, s), 255 != this.bitmapData.b[0] || (216 != this.bitmapData.b[1] && 217 != this.bitmapData.b[1]) ? 137 == this.bitmapData.b[0] && 80 == this.bitmapData.b[1] && 78 == this.bitmapData.b[2] && 71 == this.bitmapData.b[3] && 13 == this.bitmapData.b[4] && 10 == this.bitmapData.b[5] && 26 == this.bitmapData.b[6] && 10 == this.bitmapData.b[7] ? (this.bitmapType = 3) : 71 == this.bitmapData.b[0] && 73 == this.bitmapData.b[1] && 70 == this.bitmapData.b[2] && 56 == this.bitmapData.b[3] && 57 == this.bitmapData.b[4] && 97 == this.bitmapData.b[5] && (this.bitmapType = 2) : (this.bitmapType = 1), 1 != this.bitmapType && (s = 8); }, clone: function () { var e = new ll(); return ( (e.characterId = this.characterId), (e.bitmapType = this.bitmapType), 0 < jy.get_length(this.bitmapData) && e.bitmapData.writeBytes(this.bitmapData), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Type: " + Fo.toString(this.bitmapType) + ", BitmapLength: " + jy.get_length(this.bitmapData) ); }, __class__: ll, })); var hl = function () { ll.call(this), (this.type = 35), (this.name = "DefineBitsJPEG3"), (this.version = 3), (this.level = 3); var e = new Uf(0); this.bitmapAlphaData = e; }; ((s["format.swf.tags.TagDefineBitsJPEG3"] = hl).__name__ = [ "format", "swf", "tags", "TagDefineBitsJPEG3", ]), (hl.__interfaces__ = [tl]), (hl.__super__ = ll), (hl.prototype = n(ll.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)); var i = or.readUI32(e); e.readBytes(this.bitmapData, 0, i), 255 != this.bitmapData.b[0] || (216 != this.bitmapData.b[1] && 217 != this.bitmapData.b[1]) ? 137 == this.bitmapData.b[0] && 80 == this.bitmapData.b[1] && 78 == this.bitmapData.b[2] && 71 == this.bitmapData.b[3] && 13 == this.bitmapData.b[4] && 10 == this.bitmapData.b[5] && 26 == this.bitmapData.b[6] && 10 == this.bitmapData.b[7] ? (this.bitmapType = 3) : 71 == this.bitmapData.b[0] && 73 == this.bitmapData.b[1] && 70 == this.bitmapData.b[2] && 56 == this.bitmapData.b[3] && 57 == this.bitmapData.b[4] && 97 == this.bitmapData.b[5] && (this.bitmapType = 2) : (this.bitmapType = 1); var r = t - i - 6; 0 < r && e.readBytes(this.bitmapAlphaData, 0, r), this.bitmapType; }, publish: function (e, t) { or.writeTagHeader( e, this.type, jy.get_length(this.bitmapData) + jy.get_length(this.bitmapAlphaData) + 6, !0 ), or.writeUI16(e, this.characterId), or.writeUI32(e, jy.get_length(this.bitmapData)), 0 < jy.get_length(this.bitmapData) && e.writeBytes(this.bitmapData), 0 < jy.get_length(this.bitmapAlphaData) && e.writeBytes(this.bitmapAlphaData); }, clone: function () { var e = new hl(); return ( (e.characterId = this.characterId), (e.bitmapType = this.bitmapType), 0 < jy.get_length(this.bitmapData) && e.bitmapData.writeBytes(this.bitmapData), 0 < jy.get_length(this.bitmapAlphaData) && e.bitmapAlphaData.writeBytes(this.bitmapAlphaData), e ); }, exportCompleteHandler: function (e) { var t = e.target.loader, s = new sw( Math.ceil(t.content.get_width()), Math.ceil(t.content.get_height()), !0 ); s.draw(t); try { this.bitmapAlphaData.uncompress(); } catch (e) { jf.lastException = e; } for ( var n = function (e) { return 255 < e ? 255 : e < 0 ? 0 : 0 | e; }, i = (this.bitmapAlphaData.position = 0), r = s.physicalHeight; i < r; ) for (var o = i++, a = 0, l = s.physicalWidth; a < l; ) { var h = a++, _ = this.bitmapAlphaData.readUnsignedByte(), u = 255 / _, d = s.getPixel(h, o), c = n(((d >> 16) & 255) * u), f = n(((d >> 8) & 255) * u), p = n((255 & d) * u); s.setPixel32(h, o, (_ << 24) + (c << 16) + (f << 8) + p); } (this.instance = s), this.onCompleteCallback(s); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Type: " + Fo.toString(this.bitmapType) + ", HasAlphaData: " + Ue.string(0 < jy.get_length(this.bitmapAlphaData)) + ", " + (0 < jy.get_length(this.bitmapAlphaData) ? "BitmapAlphaLength: " + jy.get_length(this.bitmapAlphaData) + ", " : "") + "BitmapLength: " + jy.get_length(this.bitmapData) ); }, __class__: hl, })); var _l = function () { hl.call(this), (this.type = 90), (this.name = "DefineBitsJPEG4"), (this.version = 10), (this.level = 4); }; ((s["format.swf.tags.TagDefineBitsJPEG4"] = _l).__name__ = [ "format", "swf", "tags", "TagDefineBitsJPEG4", ]), (_l.__interfaces__ = [tl]), (_l.__super__ = hl), (_l.prototype = n(hl.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)); var i = or.readUI32(e); (this.deblockParam = or.readFIXED8(e)), e.readBytes(this.bitmapData, 0, i), 255 != this.bitmapData.b[0] || (216 != this.bitmapData.b[1] && 217 != this.bitmapData.b[1]) ? 137 == this.bitmapData.b[0] && 80 == this.bitmapData.b[1] && 78 == this.bitmapData.b[2] && 71 == this.bitmapData.b[3] && 13 == this.bitmapData.b[4] && 10 == this.bitmapData.b[5] && 26 == this.bitmapData.b[6] && 10 == this.bitmapData.b[7] ? (this.bitmapType = 3) : 71 == this.bitmapData.b[0] && 73 == this.bitmapData.b[1] && 70 == this.bitmapData.b[2] && 56 == this.bitmapData.b[3] && 57 == this.bitmapData.b[4] && 97 == this.bitmapData.b[5] && (this.bitmapType = 2) : (this.bitmapType = 1); var r = t - i - 6; 0 < r && e.readBytes(this.bitmapAlphaData, 0, r); }, publish: function (e, t) { or.writeTagHeader( e, this.type, jy.get_length(this.bitmapData) + jy.get_length(this.bitmapAlphaData) + 6, !0 ), or.writeUI16(e, this.characterId), or.writeUI32(e, jy.get_length(this.bitmapData)), or.writeFIXED8(e, this.deblockParam), 0 < jy.get_length(this.bitmapData) && e.writeBytes(this.bitmapData), 0 < jy.get_length(this.bitmapAlphaData) && e.writeBytes(this.bitmapAlphaData); }, clone: function () { var e = new _l(); return ( (e.characterId = this.characterId), (e.bitmapType = this.bitmapType), (e.deblockParam = this.deblockParam), 0 < jy.get_length(this.bitmapData) && e.bitmapData.writeBytes(this.bitmapData), 0 < jy.get_length(this.bitmapAlphaData) && e.bitmapAlphaData.writeBytes(this.bitmapAlphaData), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Type: " + Fo.toString(this.bitmapType) + ", DeblockParam: " + this.deblockParam + ", HasAlphaData: " + Ue.string(0 < jy.get_length(this.bitmapAlphaData)) + ", " + (0 < jy.get_length(this.bitmapAlphaData) ? "BitmapAlphaLength: " + jy.get_length(this.bitmapAlphaData) + ", " : "") + "BitmapLength: " + jy.get_length(this.bitmapData) ); }, __class__: _l, })); var ul = function () { (this.type = 20), (this.name = "DefineBitsLossless"), (this.version = 2), (this.level = 1); var e = new Uf(0); this.zlibBitmapData = e; }; ((s["format.swf.tags.TagDefineBitsLossless"] = ul).__name__ = [ "format", "swf", "tags", "TagDefineBitsLossless", ]), (ul.__interfaces__ = [tl]), (ul.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.bitmapFormat = or.readUI8(e)), (this.bitmapWidth = or.readUI16(e)), (this.bitmapHeight = or.readUI16(e)), 3 == this.bitmapFormat && (this.bitmapColorTableSize = or.readUI8(e) + 1), e.readBytes( this.zlibBitmapData, 0, t - (3 == this.bitmapFormat ? 8 : 7) ); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeUI8(s, this.bitmapFormat), or.writeUI16(s, this.bitmapWidth), or.writeUI16(s, this.bitmapHeight), 3 == this.bitmapFormat && or.writeUI8(s, this.bitmapColorTableSize - 1), 0 < jy.get_length(this.zlibBitmapData) && s.writeBytes(this.zlibBitmapData), or.writeTagHeader(e, this.type, or.get_length(s), !0), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new ul(); return ( (e.characterId = this.characterId), (e.bitmapFormat = this.bitmapFormat), (e.bitmapWidth = this.bitmapWidth), (e.bitmapHeight = this.bitmapHeight), 0 < jy.get_length(this.zlibBitmapData) && e.zlibBitmapData.writeBytes(this.zlibBitmapData), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Format: " + ko.toString(this.bitmapFormat) + ", Size: (" + this.bitmapWidth + "," + this.bitmapHeight + ")" ); }, __class__: ul, }); var dl = function () { ul.call(this), (this.type = 36), (this.name = "DefineBitsLossless2"), (this.version = 3), (this.level = 2); }; ((s["format.swf.tags.TagDefineBitsLossless2"] = dl).__name__ = [ "format", "swf", "tags", "TagDefineBitsLossless2", ]), (dl.__super__ = ul), (dl.prototype = n(ul.prototype, { clone: function () { var e = new dl(); return ( (e.characterId = this.characterId), (e.bitmapFormat = this.bitmapFormat), (e.bitmapWidth = this.bitmapWidth), (e.bitmapHeight = this.bitmapHeight), 0 < jy.get_length(this.zlibBitmapData) && e.zlibBitmapData.writeBytes(this.zlibBitmapData), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Format: " + ko.toString(this.bitmapFormat) + ", Size: (" + this.bitmapWidth + "," + this.bitmapHeight + ")" ); }, __class__: dl, })); var cl = function () { (this.type = 7), (this.name = "DefineButton"), (this.version = 1), (this.level = 1), (this.characters = []), (this.actions = []), (this.frames = new up()); }; ((s["format.swf.tags.TagDefineButton"] = cl).__name__ = [ "format", "swf", "tags", "TagDefineButton", ]), (cl.__interfaces__ = [tl]), (cl.prototype = { parse: function (e, t, s, n) { var i, r; for ( null == n && (n = !1), this.characterId = or.readUI16(e); null != (i = or.readBUTTONRECORD(e)); ) this.characters.push(i); for (; null != (r = or.readACTIONRECORD(e)); ) this.actions.push(r); this.processRecords(); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId); for (var n = 0, i = this.characters.length; n < i; ) { var r = n++; or.writeBUTTONRECORD(e, this.characters[r]); } or.writeUI8(e, 0); for (var o = 0, a = this.actions.length; o < a; ) { var l = o++; or.writeACTIONRECORD(e, this.actions[l]); } or.writeUI8(e, 0), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new cl(); e.characterId = this.characterId; for (var t = 0, s = this.characters.length; t < s; ) { var n = t++; e.characters.push(this.characters[n].clone()); } for (var i = 0, r = this.actions.length; i < r; ) { var o = i++; e.actions.push(this.actions[o].clone()); } return e; }, getRecordsByState: function (e) { var t = this.frames; return null != NT[e] ? t.getReserved(e) : t.h[e]; }, processRecords: function () { for ( var e = [], t = [], s = [], n = [], i = 0, r = this.characters.length; i < r; ) { var o = i++, a = this.characters[o]; a.stateUp && e.push(a), a.stateOver && t.push(a), a.stateDown && s.push(a), a.stateHitTest && n.push(a); } e.sort(CT(this, this.sortByDepthCompareFunction)), t.sort(CT(this, this.sortByDepthCompareFunction)), s.sort(CT(this, this.sortByDepthCompareFunction)), n.sort(CT(this, this.sortByDepthCompareFunction)); var l = this.frames; null != NT.up ? l.setReserved("up", e) : (l.h.up = e); var h = this.frames; null != NT.over ? h.setReserved("over", t) : (h.h.over = t); var _ = this.frames; null != NT.down ? _.setReserved("down", s) : (_.h.down = s); var u = this.frames; null != NT.hit ? u.setReserved("hit", n) : (u.h.hit = n); }, sortByDepthCompareFunction: function (e, t) { return e.placeDepth < t.placeDepth ? -1 : e.placeDepth > t.placeDepth ? 1 : 0; }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId; if (0 < this.characters.length) { t += "\n" + Yf.repeat(e + 2) + "Characters:"; for (var s = 0, n = this.characters.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + this.characters[i].toString(e + 4); } } if (0 < this.actions.length) { t += "\n" + Yf.repeat(e + 2) + "Actions:"; for (var r = 0, o = this.actions.length; r < o; ) { var a = r++; t += "\n" + Yf.repeat(e + 4) + "[" + a + "] " + this.actions[a].toString(e + 4); } } return t; }, __class__: cl, }); var fl = function () { (this.type = 34), (this.name = "DefineButton2"), (this.version = 3), (this.level = 2), (this.characters = []), (this.condActions = []), (this.frames = new up()); }; ((s["format.swf.tags.TagDefineButton2"] = fl).__name__ = [ "format", "swf", "tags", "TagDefineButton2", ]), (fl.__interfaces__ = [tl]), (fl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.trackAsMenu = 0 != (1 & or.readUI8(e))); for ( var i, r = or.readUI16(e); null != (i = or.readBUTTONRECORD(e, 2)); ) this.characters.push(i); if (0 != r) for ( var o; (o = or.readUI16(e)), this.condActions.push(or.readBUTTONCONDACTION(e)), 0 != o; ); this.processRecords(); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeUI8(s, this.trackAsMenu ? 1 : 0); for ( var n = 0 < this.condActions.length, i = or._new(), r = 0, o = this.characters.length; r < o; ) { var a = r++; or.writeBUTTONRECORD(i, this.characters[a], 2); } if ( (or.writeUI8(i, 0), or.writeUI16(s, n ? or.get_length(i) + 2 : 0), s.writeBytes(jy.fromBytes(i)), n) ) for (var l = 0, h = this.condActions.length; l < h; ) { var _ = l++, u = or._new(); or.writeBUTTONCONDACTION(u, this.condActions[_]), or.writeUI16( s, _ < this.condActions.length - 1 ? or.get_length(u) + 2 : 0 ), s.writeBytes(jy.fromBytes(u)); } or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new fl(); (e.characterId = this.characterId), (e.trackAsMenu = this.trackAsMenu); for (var t = 0, s = this.characters.length; t < s; ) { var n = t++; e.characters.push(this.characters[n].clone()); } for (var i = 0, r = this.condActions.length; i < r; ) { var o = i++; e.condActions.push(this.condActions[o].clone()); } return e; }, getRecordsByState: function (e) { var t = this.frames; return null != NT[e] ? t.getReserved(e) : t.h[e]; }, processRecords: function () { for ( var e = [], t = [], s = [], n = [], i = 0, r = this.characters.length; i < r; ) { var o = i++, a = this.characters[o]; a.stateUp && e.push(a), a.stateOver && t.push(a), a.stateDown && s.push(a), a.stateHitTest && n.push(a); } e.sort(CT(this, this.sortByDepthCompareFunction)), t.sort(CT(this, this.sortByDepthCompareFunction)), s.sort(CT(this, this.sortByDepthCompareFunction)), n.sort(CT(this, this.sortByDepthCompareFunction)); var l = this.frames; null != NT.up ? l.setReserved("up", e) : (l.h.up = e); var h = this.frames; null != NT.over ? h.setReserved("over", t) : (h.h.over = t); var _ = this.frames; null != NT.down ? _.setReserved("down", s) : (_.h.down = s); var u = this.frames; null != NT.hit ? u.setReserved("hit", n) : (u.h.hit = n); }, sortByDepthCompareFunction: function (e, t) { return e.placeDepth < t.placeDepth ? -1 : e.placeDepth > t.placeDepth ? 1 : 0; }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", TrackAsMenu: " + Ue.string(this.trackAsMenu); if (0 < this.characters.length) { t += "\n" + Yf.repeat(e + 2) + "Characters:"; for (var s = 0, n = this.characters.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + this.characters[i].toString(e + 4); } } if (0 < this.condActions.length) { t += "\n" + Yf.repeat(e + 2) + "CondActions:"; for (var r = 0, o = this.condActions.length; r < o; ) { var a = r++; t += "\n" + Yf.repeat(e + 4) + "[" + a + "] " + this.condActions[a].toString(e + 4); } } return t; }, __class__: fl, }); var pl = function () { (this.type = 23), (this.name = "DefineButtonCxform"), (this.version = 2), (this.level = 1); }; ((s["format.swf.tags.TagDefineButtonCxform"] = pl).__name__ = [ "format", "swf", "tags", "TagDefineButtonCxform", ]), (pl.__interfaces__ = [tl]), (pl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.buttonColorTransform = or.readCXFORM(e)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeCXFORM(s, this.buttonColorTransform), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new pl(); return ( (e.characterId = this.characterId), (e.buttonColorTransform = this.buttonColorTransform.clone()), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", ColorTransform: " + Ue.string(this.buttonColorTransform) ); }, __class__: pl, }); var bl = function () { (this.type = 17), (this.name = "DefineButtonSound"), (this.version = 2), (this.level = 1); }; ((s["format.swf.tags.TagDefineButtonSound"] = bl).__name__ = [ "format", "swf", "tags", "TagDefineButtonSound", ]), (bl.__interfaces__ = [tl]), (bl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.buttonSoundChar0 = or.readUI16(e)), 0 != this.buttonSoundChar0 && (this.buttonSoundInfo0 = or.readSOUNDINFO(e)), (this.buttonSoundChar1 = or.readUI16(e)), 0 != this.buttonSoundChar1 && (this.buttonSoundInfo1 = or.readSOUNDINFO(e)), (this.buttonSoundChar2 = or.readUI16(e)), 0 != this.buttonSoundChar2 && (this.buttonSoundInfo2 = or.readSOUNDINFO(e)), (this.buttonSoundChar3 = or.readUI16(e)), 0 != this.buttonSoundChar3 && (this.buttonSoundInfo3 = or.readSOUNDINFO(e)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeUI16(s, this.buttonSoundChar0), 0 != this.buttonSoundChar0 && or.writeSOUNDINFO(s, this.buttonSoundInfo0), or.writeUI16(s, this.buttonSoundChar1), 0 != this.buttonSoundChar1 && or.writeSOUNDINFO(s, this.buttonSoundInfo1), or.writeUI16(s, this.buttonSoundChar2), 0 != this.buttonSoundChar2 && or.writeSOUNDINFO(s, this.buttonSoundInfo2), or.writeUI16(s, this.buttonSoundChar3), 0 != this.buttonSoundChar3 && or.writeSOUNDINFO(s, this.buttonSoundInfo3), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new bl(); return ( (e.characterId = this.characterId), (e.buttonSoundChar0 = this.buttonSoundChar0), (e.buttonSoundChar1 = this.buttonSoundChar1), (e.buttonSoundChar2 = this.buttonSoundChar2), (e.buttonSoundChar3 = this.buttonSoundChar3), (e.buttonSoundInfo0 = this.buttonSoundInfo0.clone()), (e.buttonSoundInfo1 = this.buttonSoundInfo1.clone()), (e.buttonSoundInfo2 = this.buttonSoundInfo2.clone()), (e.buttonSoundInfo3 = this.buttonSoundInfo3.clone()), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ButtonID: " + this.characterId + ", ButtonSoundChars: " + this.buttonSoundChar0 + "," + this.buttonSoundChar1 + "," + this.buttonSoundChar2 + "," + this.buttonSoundChar3 ); }, __class__: bl, }); var ml = function () { (this.type = 37), (this.name = "DefineEditText"), (this.version = 4), (this.level = 1); }; ((s["format.swf.tags.TagDefineEditText"] = ml).__name__ = [ "format", "swf", "tags", "TagDefineEditText", ]), (ml.__interfaces__ = [tl]), (ml.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.bounds = or.readRECT(e)); var i = or.readUI8(e); (this.hasText = 0 != (128 & i)), (this.wordWrap = 0 != (64 & i)), (this.multiline = 0 != (32 & i)), (this.password = 0 != (16 & i)), (this.readOnly = 0 != (8 & i)), (this.hasTextColor = 0 != (4 & i)), (this.hasMaxLength = 0 != (2 & i)), (this.hasFont = 0 != (1 & i)); var r = or.readUI8(e); (this.hasFontClass = 0 != (128 & r)), (this.autoSize = 0 != (64 & r)), (this.hasLayout = 0 != (32 & r)), (this.noSelect = 0 != (16 & r)), (this.border = 0 != (8 & r)), (this.wasStatic = 0 != (4 & r)), (this.html = 0 != (2 & r)), (this.useOutlines = 0 != (1 & r)), this.hasFont && (this.fontId = or.readUI16(e)), this.hasFontClass && (this.fontClass = or.readSTRING(e)), this.hasFont && (this.fontHeight = or.readUI16(e)), this.hasTextColor && (this.textColor = or.readRGBA(e)), this.hasMaxLength && (this.maxLength = or.readUI16(e)), this.hasLayout && ((this.align = or.readUI8(e)), (this.leftMargin = or.readUI16(e)), (this.rightMargin = or.readUI16(e)), (this.indent = or.readUI16(e)), (this.leading = or.readSI16(e))), (this.variableName = or.readSTRING(e)), this.hasText && (this.initialText = or.readSTRING(e)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeRECT(s, this.bounds); var n = 0; this.hasText && (n |= 128), this.wordWrap && (n |= 64), this.multiline && (n |= 32), this.password && (n |= 16), this.readOnly && (n |= 8), this.hasTextColor && (n |= 4), this.hasMaxLength && (n |= 2), this.hasFont && (n |= 1), or.writeUI8(s, n); var i = 0; this.hasFontClass && (i |= 128), this.autoSize && (i |= 64), this.hasLayout && (i |= 32), this.noSelect && (i |= 16), this.border && (i |= 8), this.wasStatic && (i |= 4), this.html && (i |= 2), this.useOutlines && (i |= 1), or.writeUI8(s, i), this.hasFont && or.writeUI16(s, this.fontId), this.hasFontClass && or.writeSTRING(s, this.fontClass), this.hasFont && or.writeUI16(s, this.fontHeight), this.hasTextColor && or.writeRGBA(s, this.textColor), this.hasMaxLength && or.writeUI16(s, this.maxLength), this.hasLayout && (or.writeUI8(s, this.align), or.writeUI16(s, this.leftMargin), or.writeUI16(s, this.rightMargin), or.writeUI16(s, this.indent), or.writeSI16(s, this.leading)), or.writeSTRING(s, this.variableName), this.hasText && or.writeSTRING(s, this.initialText), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new ml(); return ( (e.characterId = this.characterId), (e.bounds = this.bounds.clone()), (e.variableName = this.variableName), (e.hasText = this.hasText), (e.wordWrap = this.wordWrap), (e.multiline = this.multiline), (e.password = this.password), (e.readOnly = this.readOnly), (e.hasTextColor = this.hasTextColor), (e.hasMaxLength = this.hasMaxLength), (e.hasFont = this.hasFont), (e.hasFontClass = this.hasFontClass), (e.autoSize = this.autoSize), (e.hasLayout = this.hasLayout), (e.noSelect = this.noSelect), (e.border = this.border), (e.wasStatic = this.wasStatic), (e.html = this.html), (e.useOutlines = this.useOutlines), (e.fontId = this.fontId), (e.fontClass = this.fontClass), (e.fontHeight = this.fontHeight), (e.textColor = this.textColor), (e.maxLength = this.maxLength), (e.align = this.align), (e.leftMargin = this.leftMargin), (e.rightMargin = this.rightMargin), (e.indent = this.indent), (e.leading = this.leading), (e.initialText = this.initialText), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", " + (this.hasText && 0 < this.initialText.length ? "Text: " + this.initialText + ", " : "") + (0 < this.variableName.length ? "VariableName: " + this.variableName + ", " : "") + "Bounds: " + Ue.string(this.bounds) ); }, __class__: ml, }); var gl = function () { (this.type = 10), (this.name = "DefineFont"), (this.version = 1), (this.level = 1), (this.glyphShapeTable = []); }; ((s["format.swf.tags.TagDefineFont"] = gl).__name__ = [ "format", "swf", "tags", "TagDefineFont", ]), (gl.__interfaces__ = [tl]), (gl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)); var i = or.readUI16(e) >> 1; or.skipBytes(e, (i - 1) << 1); for (var r = 0, o = i; r < o; ) { r++; this.glyphShapeTable.push(or.readSHAPE(e, gl.unitDivisor)); } }, publish: function (e, t) { var s = or._new(), n = this.glyphShapeTable.length, i = or._new(); or.writeUI16(s, this.characterId); for (var r = n << 1, o = 0, a = n; o < a; ) { var l = o++; or.writeUI16(s, i.position + r), or.writeSHAPE(i, this.glyphShapeTable[l]); } s.writeBytes(jy.fromBytes(i)), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { throw new Mp(new _v("Not implemented yet.")); }, export: function (e, t) { this.glyphShapeTable[t].export(e); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Glyphs: " + this.glyphShapeTable.length + this.toStringCommon(e) ); }, toStringCommon: function (e) { for (var t = "", s = 0, n = this.glyphShapeTable.length; s < n; ) { var i = s++; (t += "\n" + Yf.repeat(e + 2) + "[" + i + "] GlyphShapes:"), (t += this.glyphShapeTable[i].toString(e + 4)); } return t; }, __class__: gl, }); var wl = function () { gl.call(this), (this.type = 48), (this.name = "DefineFont2"), (this.version = 3), (this.level = 2), (this.codeTable = []), (this.fontAdvanceTable = []), (this.fontBoundsTable = []), (this.fontKerningTable = []); }; ((s["format.swf.tags.TagDefineFont2"] = wl).__name__ = [ "format", "swf", "tags", "TagDefineFont2", ]), (wl.__interfaces__ = [tl]), (wl.__super__ = gl), (wl.prototype = n(gl.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)); var i = or.readUI8(e); (this.hasLayout = 0 != (128 & i)), (this.shiftJIS = 0 != (64 & i)), (this.smallText = 0 != (32 & i)), (this.ansi = 0 != (16 & i)), (this.wideOffsets = 0 != (8 & i)), (this.wideCodes = 0 != (4 & i)), (this.italic = 0 != (2 & i)), (this.bold = 0 != (1 & i)), (this.languageCode = or.readLANGCODE(e)); var r = or.readUI8(e), o = new Uf(0); e.readBytes(o, 0, r), (this.fontName = o.readUTFBytes(r)); var a = or.readUI16(e); if (0 < a) { or.skipBytes(e, a << (this.wideOffsets ? 2 : 1)), this.wideOffsets ? or.readUI32(e) : or.readUI16(e); for (var l = 0, h = a; l < h; ) { l++; this.glyphShapeTable.push(or.readSHAPE(e)); } for (var _ = 0, u = a; _ < u; ) { _++; this.codeTable.push( this.wideCodes ? or.readUI16(e) : or.readUI8(e) ); } } if (this.hasLayout) { (this.ascent = or.readUI16(e)), (this.descent = or.readUI16(e)), (this.leading = or.readSI16(e)); for (var d = 0, c = a; d < c; ) { d++; this.fontAdvanceTable.push(or.readSI16(e)); } for (var f = 0, p = a; f < p; ) { f++; this.fontBoundsTable.push(or.readRECT(e)); } for (var b = 0, m = or.readUI16(e); b < m; ) { b++; this.fontKerningTable.push(or.readKERNINGRECORD(e, this.wideCodes)); } } }, publish: function (e, t) { var s = or._new(), n = this.glyphShapeTable.length; or.writeUI16(s, this.characterId); var i = 0; this.hasLayout && (i |= 128), this.shiftJIS && (i |= 64), this.smallText && (i |= 32), this.ansi && (i |= 16), this.wideOffsets && (i |= 8), this.wideCodes && (i |= 4), this.italic && (i |= 2), this.bold && (i |= 1), or.writeUI8(s, i), or.writeLANGCODE(s, this.languageCode); var r = new Uf(0); if ( (r.writeUTFBytes(this.fontName), or.writeUI8(s, jy.get_length(r)), s.writeBytes(r), or.writeUI16(s, n), 0 < n) ) { for ( var o = n << (this.wideOffsets ? 2 : 1), a = this.wideOffsets ? 4 : 2, l = (this.wideOffsets, o + a), h = or._new(), _ = 0, u = n; _ < u; ) { var d = _++; this.wideOffsets ? or.writeUI32(s, l + h.position) : or.writeUI16(s, l + h.position), or.writeSHAPE(h, this.glyphShapeTable[d]); } this.wideOffsets ? or.writeUI32(s, l + or.get_length(h)) : or.writeUI16(s, l + or.get_length(h)), s.writeBytes(jy.fromBytes(h)); for (var c = 0, f = n; c < f; ) { var p = c++; this.wideCodes ? or.writeUI16(s, this.codeTable[p]) : or.writeUI8(s, this.codeTable[p]); } } if (this.hasLayout) { or.writeUI16(s, this.ascent), or.writeUI16(s, this.descent), or.writeSI16(s, this.leading); for (var b = 0, m = n; b < m; ) { var g = b++; or.writeSI16(s, this.fontAdvanceTable[g]); } for (var w = 0, v = n; w < v; ) { var y = w++; or.writeRECT(s, this.fontBoundsTable[y]); } var T = this.fontKerningTable.length; or.writeUI16(s, T); for (var S = 0, x = T; S < x; ) { var E = S++; or.writeKERNINGRECORD(s, this.fontKerningTable[E], this.wideCodes); } } or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", FontName: " + this.fontName + ", Italic: " + Ue.string(this.italic) + ", Bold: " + Ue.string(this.bold) + ", Glyphs: " + this.glyphShapeTable.length + this.toStringCommon(e) ); }, toStringCommon: function (e) { var t = gl.prototype.toStringCommon.call(this, e); if ( (this.hasLayout && ((t += "\n" + Yf.repeat(e + 2) + "Ascent: " + this.ascent), (t += "\n" + Yf.repeat(e + 2) + "Descent: " + this.descent), (t += "\n" + Yf.repeat(e + 2) + "Leading: " + this.leading)), 0 < this.codeTable.length) ) { t += "\n" + Yf.repeat(e + 2) + "CodeTable:"; for (var s = 0, n = this.codeTable.length; s < n; ) { var i = s++; t += 0 == (15 & i) ? "\n" + Yf.repeat(e + 4) + Ue.string(this.codeTable[i]) : ", " + Ue.string(this.codeTable[i]); } } if (0 < this.fontAdvanceTable.length) { t += "\n" + Yf.repeat(e + 2) + "FontAdvanceTable:"; for (var r = 0, o = this.fontAdvanceTable.length; r < o; ) { var a = r++; t += 0 == (7 & a) ? "\n" + Yf.repeat(e + 4) + Ue.string(this.fontAdvanceTable[a]) : ", " + Ue.string(this.fontAdvanceTable[a]); } } if (0 < this.fontBoundsTable.length) { for (var l = !1, h = 0, _ = this.fontBoundsTable.length; h < _; ) { var u = h++, d = this.fontBoundsTable[u]; if (0 != d.xmin || 0 != d.xmax || 0 != d.ymin || 0 != d.ymax) { l = !0; break; } } if (l) { t += "\n" + Yf.repeat(e + 2) + "FontBoundsTable:"; for (var c = 0, f = this.fontBoundsTable.length; c < f; ) { var p = c++; t += "\n" + Yf.repeat(e + 4) + "[" + p + "] " + this.fontBoundsTable[p].toString(); } } } if (0 < this.fontKerningTable.length) { t += "\n" + Yf.repeat(e + 2) + "KerningTable:"; for (var b = 0, m = this.fontKerningTable.length; b < m; ) { var g = b++; t += "\n" + Yf.repeat(e + 4) + "[" + g + "] " + this.fontKerningTable[g].toString(); } } return t; }, __class__: wl, })); var vl = function () { wl.call(this), (this.type = 75), (this.name = "DefineFont3"), (this.version = 8), (this.level = 2); }; ((s["format.swf.tags.TagDefineFont3"] = vl).__name__ = [ "format", "swf", "tags", "TagDefineFont3", ]), (vl.__interfaces__ = [tl]), (vl.__super__ = wl), (vl.prototype = n(wl.prototype, { toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", FontName: " + this.fontName + ", Italic: " + Ue.string(this.italic) + ", Bold: " + Ue.string(this.bold) + ", Glyphs: " + this.glyphShapeTable.length + this.toStringCommon(e) ); }, __class__: vl, })); var yl = function () { (this.type = 91), (this.name = "DefineFont4"), (this.version = 10), (this.level = 1); var e = new Uf(0); this.fontData = e; }; ((s["format.swf.tags.TagDefineFont4"] = yl).__name__ = [ "format", "swf", "tags", "TagDefineFont4", ]), (yl.__interfaces__ = [tl]), (yl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); var i = e.position; this.characterId = or.readUI16(e); var r = or.readUI8(e); (this.hasFontData = 0 != (4 & r)), (this.italic = 0 != (2 & r)), (this.bold = 0 != (1 & r)), (this.fontName = or.readSTRING(e)), this.hasFontData && t > (0 | e.position) - i && e.readBytes(this.fontData, 0, t - (e.position - i)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId); var n = 0; this.hasFontData && (n |= 4), this.italic && (n |= 2), this.bold && (n |= 1), or.writeUI8(s, n), or.writeSTRING(s, this.fontName), this.hasFontData && 0 < jy.get_length(this.fontData) && s.writeBytes(this.fontData), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new yl(); return ( (e.characterId = this.characterId), (e.hasFontData = this.hasFontData), (e.italic = this.italic), (e.bold = this.bold), (e.fontName = this.fontName), 0 < jy.get_length(this.fontData) && e.fontData.writeBytes(this.fontData), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", FontName: " + this.fontName + ", HasFontData: " + Ue.string(this.hasFontData) + ", Italic: " + Ue.string(this.italic) + ", Bold: " + Ue.string(this.bold) ); }, __class__: yl, }); var Tl = function () { (this.type = 73), (this.name = "DefineFontAlignZones"), (this.version = 8), (this.level = 1), (this.zoneTable = []); }; ((s["format.swf.tags.TagDefineFontAlignZones"] = Tl).__name__ = [ "format", "swf", "tags", "TagDefineFontAlignZones", ]), (Tl.__interfaces__ = [el]), (Tl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.fontId = or.readUI16(e)), (this.csmTableHint = or.readUI8(e) >> 6); for (var i = e.position + t - 3; (0 | e.position) < i; ) this.zoneTable.push(or.readZONERECORD(e)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.fontId), or.writeUI8(s, this.csmTableHint << 6); for (var n = 0, i = this.zoneTable.length; n < i; ) { var r = n++; or.writeZONERECORD(s, this.zoneTable[r]); } or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); for ( var t = nl.toStringCommon(this.type, this.name, e) + "FontID: " + this.fontId + ", CSMTableHint: " + Lo.toString(this.csmTableHint) + ", Records: " + this.zoneTable.length, s = 0, n = this.zoneTable.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 2) + "[" + i + "] " + this.zoneTable[i].toString(e + 2); } return t; }, __class__: Tl, }); var Sl = function () { (this.langCodeLength = 0), (this.langCode = 0), (this.type = 13), (this.name = "DefineFontInfo"), (this.version = 1), (this.level = 1), (this.codeTable = []); }; ((s["format.swf.tags.TagDefineFontInfo"] = Sl).__name__ = [ "format", "swf", "tags", "TagDefineFontInfo", ]), (Sl.__interfaces__ = [el]), (Sl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.fontId = or.readUI16(e)); var i = or.readUI8(e), r = new Uf(0); e.readBytes(r, 0, i), (this.fontName = r.readUTFBytes(i)); var o = or.readUI8(e); (this.smallText = 0 != (32 & o)), (this.shiftJIS = 0 != (16 & o)), (this.ansi = 0 != (8 & o)), (this.italic = 0 != (4 & o)), (this.bold = 0 != (2 & o)), (this.wideCodes = 0 != (1 & o)), this.parseLangCode(e); var a = t - i - this.langCodeLength - 4; this.wideCodes && (a >>= 1); for (var l = 0, h = a; l < h; ) { l++; this.codeTable.push(this.wideCodes ? or.readUI16(e) : or.readUI8(e)); } }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.fontId); var n = new Uf(0); n.writeUTFBytes(this.fontName), or.writeUI8(s, jy.get_length(n)), s.writeBytes(n); var i = 0; this.smallText && (i |= 32), this.shiftJIS && (i |= 16), this.ansi && (i |= 8), this.italic && (i |= 4), this.bold && (i |= 2), this.wideCodes && (i |= 1), or.writeUI8(s, i), this.publishLangCode(s); for (var r = 0, o = this.codeTable.length; r < o; ) { var a = r++; this.wideCodes ? or.writeUI16(s, this.codeTable[a]) : or.writeUI8(s, this.codeTable[a]); } or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, parseLangCode: function (e) {}, publishLangCode: function (e) {}, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "FontID: " + this.fontId + ", FontName: " + this.fontName + ", Italic: " + Ue.string(this.italic) + ", Bold: " + Ue.string(this.bold) + ", Codes: " + this.codeTable.length ); }, __class__: Sl, }); var xl = function () { Sl.call(this), (this.type = 62), (this.name = "DefineFontInfo2"), (this.version = 6), (this.level = 2); }; ((s["format.swf.tags.TagDefineFontInfo2"] = xl).__name__ = [ "format", "swf", "tags", "TagDefineFontInfo2", ]), (xl.__interfaces__ = [el]), (xl.__super__ = Sl), (xl.prototype = n(Sl.prototype, { parseLangCode: function (e) { (this.langCode = or.readUI8(e)), (this.langCodeLength = 1); }, publishLangCode: function (e) { or.writeUI8(e, this.langCode); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "FontID: " + this.fontId + ", FontName: " + this.fontName + ", Italic: " + Ue.string(this.italic) + ", Bold: " + Ue.string(this.bold) + ", LanguageCode: " + this.langCode + ", Codes: " + this.codeTable.length ); }, __class__: xl, })); var El = function () { (this.type = 88), (this.name = "DefineFontName"), (this.version = 9), (this.level = 1); }; ((s["format.swf.tags.TagDefineFontName"] = El).__name__ = [ "format", "swf", "tags", "TagDefineFontName", ]), (El.__interfaces__ = [el]), (El.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.fontId = or.readUI16(e)), (this.fontName = or.readSTRING(e)), (this.fontCopyright = or.readSTRING(e)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.fontId), or.writeSTRING(s, this.fontName), or.writeSTRING(s, this.fontCopyright), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "FontID: " + this.fontId + ", Name: " + this.fontName + ", Copyright: " + this.fontCopyright ); }, __class__: El, }); var Pl = function () { (this.type = 46), (this.name = "DefineMorphShape"), (this.version = 3), (this.level = 1), (this.morphFillStyles = []), (this.morphLineStyles = []), (this.exportShape = new Ur()); }; ((s["format.swf.tags.TagDefineMorphShape"] = Pl).__name__ = [ "format", "swf", "tags", "TagDefineMorphShape", ]), (Pl.__interfaces__ = [tl]), (Pl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.startBounds = or.readRECT(e)), (this.endBounds = or.readRECT(e)), or.readUI32(e); var i = or.readUI8(e); 255 == i && (i = or.readUI16(e)); for (var r = 0, o = i; r < o; ) { r++; this.morphFillStyles.push(or.readMORPHFILLSTYLE(e)); } var a = or.readUI8(e); 255 == a && (a = or.readUI16(e)); for (var l = 0, h = a; l < h; ) { l++; this.morphLineStyles.push(or.readMORPHLINESTYLE(e)); } (this.startEdges = or.readSHAPE(e)), (this.endEdges = or.readSHAPE(e)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeRECT(s, this.startBounds), or.writeRECT(s, this.endBounds); var n = or._new(), i = this.morphFillStyles.length; 254 < i ? (or.writeUI8(n, 255), or.writeUI16(n, i)) : or.writeUI8(n, i); for (var r = 0, o = i; r < o; ) { var a = r++; or.writeMORPHFILLSTYLE(n, this.morphFillStyles[a]); } var l = this.morphLineStyles.length; 254 < l ? (or.writeUI8(n, 255), or.writeUI16(n, l)) : or.writeUI8(n, l); for (var h = 0, _ = l; h < _; ) { var u = h++; or.writeMORPHLINESTYLE(n, this.morphLineStyles[u]); } or.writeSHAPE(n, this.startEdges), or.writeUI32(s, or.get_length(n)), s.writeBytes(jy.fromBytes(n)), or.writeSHAPE(s, this.endEdges), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { throw new Mp(new _v("Not implemented yet.")); }, export: function (e) { null == e && (e = 0); throw new Mp(":TODO: floating point interpolated records"); }, convertToCurvedEdge: function (e) { var t = new zr(); return ( (t.controlDeltaX = (e.deltaX / 2) | 0), (t.controlDeltaY = (e.deltaY / 2) | 0), (t.anchorDeltaX = (e.deltaX / 2) | 0), (t.anchorDeltaY = (e.deltaY / 2) | 0), t ); }, toString: function (e) { null == e && (e = 0); var t = Yf.repeat(e + 2), s = Yf.repeat(e + 4), n = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId; if ( ((n += "\n" + t + "Bounds:"), (n += "\n" + s + "StartBounds: " + this.startBounds.toString()), (n += "\n" + s + "EndBounds: " + this.endBounds.toString()), 0 < this.morphFillStyles.length) ) { n += "\n" + t + "FillStyles:"; for (var i = 0, r = this.morphFillStyles.length; i < r; ) { var o = i++; n += "\n" + s + "[" + (o + 1) + "] " + this.morphFillStyles[o].toString(); } } if (0 < this.morphLineStyles.length) { n += "\n" + t + "LineStyles:"; for (var a = 0, l = this.morphLineStyles.length; a < l; ) { var h = a++; n += "\n" + s + "[" + (h + 1) + "] " + this.morphLineStyles[h].toString(); } } return ( (n += this.startEdges.toString(e + 2)), (n += this.endEdges.toString(e + 2)) ); }, __class__: Pl, }); var Rl = function () { Pl.call(this), (this.type = 84), (this.name = "DefineMorphShape2"), (this.version = 8), (this.level = 2); }; ((s["format.swf.tags.TagDefineMorphShape2"] = Rl).__name__ = [ "format", "swf", "tags", "TagDefineMorphShape2", ]), (Rl.__interfaces__ = [el]), (Rl.__super__ = Pl), (Rl.prototype = n(Pl.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.startBounds = or.readRECT(e)), (this.endBounds = or.readRECT(e)), (this.startEdgeBounds = or.readRECT(e)), (this.endEdgeBounds = or.readRECT(e)); var i = or.readUI8(e); (this.usesNonScalingStrokes = 0 != (2 & i)), (this.usesScalingStrokes = 0 != (1 & i)), or.readUI32(e); var r = or.readUI8(e); 255 == r && (r = or.readUI16(e)); for (var o = 0, a = r; o < a; ) { o++; this.morphFillStyles.push(or.readMORPHFILLSTYLE(e)); } var l = or.readUI8(e); 255 == l && (l = or.readUI16(e)); for (var h = 0, _ = l; h < _; ) { h++; this.morphLineStyles.push(or.readMORPHLINESTYLE2(e)); } (this.startEdges = or.readSHAPE(e)), (this.endEdges = or.readSHAPE(e)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeRECT(s, this.startBounds), or.writeRECT(s, this.endBounds), or.writeRECT(s, this.startEdgeBounds), or.writeRECT(s, this.endEdgeBounds); var n = 0; this.usesNonScalingStrokes && (n |= 2), this.usesScalingStrokes && (n |= 1), or.writeUI8(s, n); var i = or._new(), r = this.morphFillStyles.length; 254 < r ? (or.writeUI8(i, 255), or.writeUI16(i, r)) : or.writeUI8(i, r); for (var o = 0, a = r; o < a; ) { var l = o++; or.writeMORPHFILLSTYLE(i, this.morphFillStyles[l]); } var h = this.morphLineStyles.length; 254 < h ? (or.writeUI8(i, 255), or.writeUI16(i, h)) : or.writeUI8(i, h); for (var _ = 0, u = h; _ < u; ) { var d = _++; or.writeMORPHLINESTYLE2(i, Lp.__cast(this.morphLineStyles[d], kr)); } or.writeSHAPE(i, this.startEdges), or.writeUI32(s, or.get_length(i)), s.writeBytes(jy.fromBytes(i)), or.writeSHAPE(s, this.endEdges), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = Yf.repeat(e + 2), s = Yf.repeat(e + 4), n = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId; if ( ((n += "\n" + t + "Bounds:"), (n += "\n" + s + "StartBounds: " + this.startBounds.toString()), (n += "\n" + s + "EndBounds: " + this.endBounds.toString()), (n += "\n" + s + "StartEdgeBounds: " + this.startEdgeBounds.toString()), (n += "\n" + s + "EndEdgeBounds: " + this.endEdgeBounds.toString()), 0 < this.morphFillStyles.length) ) { n += "\n" + t + "FillStyles:"; for (var i = 0, r = this.morphFillStyles.length; i < r; ) { var o = i++; n += "\n" + s + "[" + (o + 1) + "] " + this.morphFillStyles[o].toString(); } } if (0 < this.morphLineStyles.length) { n += "\n" + t + "LineStyles:"; for (var a = 0, l = this.morphLineStyles.length; a < l; ) { var h = a++; n += "\n" + s + "[" + (h + 1) + "] " + this.morphLineStyles[h].toString(); } } return ( (n += this.startEdges.toString(e + 2)), (n += this.endEdges.toString(e + 2)) ); }, __class__: Rl, })); var Al = function () { (this.type = 78), (this.name = "DefineScalingGrid"), (this.version = 8), (this.level = 1); }; ((s["format.swf.tags.TagDefineScalingGrid"] = Al).__name__ = [ "format", "swf", "tags", "TagDefineScalingGrid", ]), (Al.__interfaces__ = [el]), (Al.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.splitter = or.readRECT(e)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeRECT(s, this.splitter), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new Al(); return ( (e.characterId = this.characterId), (e.splitter = this.splitter.clone()), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "CharacterID: " + this.characterId + ", Splitter: " + Ue.string(this.splitter) ); }, __class__: Al, }); var Il = function () { (this.type = 86), (this.name = "DefineSceneAndFrameLabelData"), (this.version = 9), (this.level = 1), (this.scenes = []), (this.frameLabels = []); }; ((s["format.swf.tags.TagDefineSceneAndFrameLabelData"] = Il).__name__ = [ "format", "swf", "tags", "TagDefineSceneAndFrameLabelData", ]), (Il.__interfaces__ = [el]), (Il.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); for (var i = 0, r = or.readEncodedU32(e); i < r; ) { i++; var o = or.readEncodedU32(e), a = or.readSTRING(e); this.scenes.push(new Or(o, a)); } for (var l = 0, h = or.readEncodedU32(e); l < h; ) { l++; var _ = or.readEncodedU32(e), u = or.readSTRING(e); this.frameLabels.push(new yr(_, u)); } }, publish: function (e, t) { var s = or._new(); or.writeEncodedU32(s, this.scenes.length); for (var n = 0, i = this.scenes.length; n < i; ) { var r = n++, o = this.scenes[r]; or.writeEncodedU32(s, o.offset), or.writeSTRING(s, o.name); } or.writeEncodedU32(s, this.frameLabels.length); for (var a = 0, l = this.frameLabels.length; a < l; ) { var h = a++, _ = this.frameLabels[h]; or.writeEncodedU32(s, _.frameNumber), or.writeSTRING(s, _.name); } or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e); if (0 < this.scenes.length) { t += "\n" + Yf.repeat(e + 2) + "Scenes:"; for (var s = 0, n = this.scenes.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + this.scenes[i].toString(); } } if (0 < this.frameLabels.length) { t += "\n" + Yf.repeat(e + 2) + "FrameLabels:"; for (var r = 0, o = this.frameLabels.length; r < o; ) { var a = r++; t += "\n" + Yf.repeat(e + 4) + "[" + a + "] " + this.frameLabels[a].toString(); } } return t; }, __class__: Il, }); var Cl = function () { (this.type = 2), (this.name = "DefineShape"), (this.version = 1), (this.level = 1); }; ((s["format.swf.tags.TagDefineShape"] = Cl).__name__ = [ "format", "swf", "tags", "TagDefineShape", ]), (Cl.__interfaces__ = [tl]), (Cl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.shapeBounds = or.readRECT(e)), (this.shapes = or.readSHAPEWITHSTYLE(e, this.level)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeRECT(s, this.shapeBounds), or.writeSHAPEWITHSTYLE(s, this.shapes, this.level), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { throw new Mp(new _v("Not implemented yet.")); }, export: function (e) { this.shapes.export(e); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Bounds: " + Ue.string(this.shapeBounds); return (t += this.shapes.toString(e + 2)); }, __class__: Cl, }); var Bl = function () { Cl.call(this), (this.type = 22), (this.name = "DefineShape2"), (this.version = 2), (this.level = 2); }; ((s["format.swf.tags.TagDefineShape2"] = Bl).__name__ = [ "format", "swf", "tags", "TagDefineShape2", ]), (Bl.__interfaces__ = [tl]), (Bl.__super__ = Cl), (Bl.prototype = n(Cl.prototype, { toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Bounds: " + Ue.string(this.shapeBounds); return (t += this.shapes.toString(e + 2)); }, __class__: Bl, })); var Dl = function () { Bl.call(this), (this.type = 32), (this.name = "DefineShape3"), (this.version = 3), (this.level = 3); }; ((s["format.swf.tags.TagDefineShape3"] = Dl).__name__ = [ "format", "swf", "tags", "TagDefineShape3", ]), (Dl.__interfaces__ = [tl]), (Dl.__super__ = Bl), (Dl.prototype = n(Bl.prototype, { toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Bounds: " + Ue.string(this.shapeBounds); return (t += this.shapes.toString(e + 2)); }, __class__: Dl, })); var kl = function () { Dl.call(this), (this.type = 83), (this.name = "DefineShape4"), (this.version = 8), (this.level = 4); }; ((s["format.swf.tags.TagDefineShape4"] = kl).__name__ = [ "format", "swf", "tags", "TagDefineShape4", ]), (kl.__interfaces__ = [tl]), (kl.__super__ = Dl), (kl.prototype = n(Dl.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.shapeBounds = or.readRECT(e)), (this.edgeBounds = or.readRECT(e)); var i = or.readUI8(e); (this.usesFillWindingRule = 0 != (4 & i)), (this.usesNonScalingStrokes = 0 != (2 & i)), (this.usesScalingStrokes = 0 != (1 & i)), (this.shapes = or.readSHAPEWITHSTYLE(e, this.level)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeRECT(s, this.shapeBounds), or.writeRECT(s, this.edgeBounds); var n = 0; this.usesFillWindingRule && (n |= 4), this.usesNonScalingStrokes && (n |= 2), this.usesScalingStrokes && (n |= 1), or.writeUI8(s, n), or.writeSHAPEWITHSTYLE(s, this.shapes, this.level), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", "; return ( this.usesFillWindingRule && (t += "UsesFillWindingRule, "), this.usesNonScalingStrokes && (t += "UsesNonScalingStrokes, "), this.usesScalingStrokes && (t += "UsesScalingStrokes, "), (t += "ShapeBounds: " + Ue.string(this.shapeBounds) + ", EdgeBounds: " + Ue.string(this.edgeBounds)), (t += this.shapes.toString(e + 2)) ); }, __class__: kl, })); var Fl = function () { (this.type = 14), (this.name = "DefineSound"), (this.version = 1), (this.level = 1); var e = new Uf(0); this.soundData = e; }; ((s["format.swf.tags.TagDefineSound"] = Fl).__name__ = [ "format", "swf", "tags", "TagDefineSound", ]), (Fl.__interfaces__ = [tl]), (Fl.create = function (e, t, s, n, i, r, o) { null == r && (r = 0), null == i && (i = 1), null == n && (n = 1), null == s && (s = 3), null == t && (t = 2); var a = new Fl(); return ( (a.characterId = e), (a.soundFormat = t), (a.soundRate = s), (a.soundSize = n), (a.soundType = i), (a.soundSampleCount = r), null != o && 0 < jy.get_length(o) && a.soundData.writeBytes(o), a ); }), (Fl.createWithMP3 = function (e, t) { if (null != t && 0 < jy.get_length(t)) { var s = new Fl(); return (s.characterId = e), s.processMP3(t), s; } throw new Mp(new _v("No MP3 data.")); }), (Fl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.soundFormat = or.readUB(e, 4)), (this.soundRate = or.readUB(e, 2)), (this.soundSize = or.readUB(e, 1)), (this.soundType = or.readUB(e, 1)), (this.soundSampleCount = or.readUI32(e)), e.readBytes(this.soundData, 0, t - 7); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeUB(s, 4, this.soundFormat), or.writeUB(s, 2, this.soundRate), or.writeUB(s, 1, this.soundSize), or.writeUB(s, 1, this.soundType), or.writeUI32(s, this.soundSampleCount), 0 < jy.get_length(this.soundData) && s.writeBytes(this.soundData), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new Fl(); return ( (e.characterId = this.characterId), (e.soundFormat = this.soundFormat), (e.soundRate = this.soundRate), (e.soundSize = this.soundSize), (e.soundType = this.soundType), (e.soundSampleCount = this.soundSampleCount), 0 < jy.get_length(this.soundData) && e.soundData.writeBytes(this.soundData), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "SoundID: " + this.characterId + ", Format: " + zo.toString(this.soundFormat) + ", Rate: " + Xo.toString(this.soundRate) + ", Size: " + Ho.toString(this.soundSize) + ", Type: " + Vo.toString(this.soundType) + ", Samples: " + this.soundSampleCount ); }, processMP3: function (e) { for ( var t = 0, s = 0, n = jy.get_length(e), i = 0, r = !0, o = 0, a = 0, l = new Jo(), h = "id3v2"; t < (0 | jy.get_length(e)); ) switch (h) { case "frame": l.setHeaderByteAt(0, e.b[t++]), l.setHeaderByteAt(1, e.b[t++]), l.setHeaderByteAt(2, e.b[t++]), l.setHeaderByteAt(3, e.b[t++]), l.hasCRC && (l.setCRCByteAt(0, e.b[t++]), l.setCRCByteAt(1, e.b[t++])), r && ((r = !1), (o = l.samplingrate), (a = l.channelMode)), (i += l.samples), (t += l.get_size()), (h = "sync"); break; case "id3v2": 73 == e.b[t] && 68 == e.b[t + 1] && 51 == e.b[t + 2] && (t += 10 + ((e.b[t + 6] << 21) | (e.b[t + 7] << 14) | (e.b[t + 8] << 7) | e.b[t + 9])), (s = t), (h = "sync"); break; case "sync": 255 == e.b[t] && 224 == (224 & e.b[t + 1]) ? (h = "frame") : 84 == e.b[t] && 65 == e.b[t + 1] && 71 == e.b[t + 2] ? ((n = t), (t = jy.get_length(e))) : ++t; } switch ( ((this.soundSampleCount = i), (this.soundFormat = 2), (this.soundSize = 1), (this.soundType = 3 == a ? 0 : 1), o) ) { case 11025: this.soundRate = 1; break; case 22050: this.soundRate = 2; break; case 44100: this.soundRate = 3; break; default: throw new Mp(new _v("Unsupported sampling rate: " + o + " Hz")); } var _ = new Uf(0); (this.soundData = _), this.soundData.writeShort(0), this.soundData.writeBytes(e, s, n - s); }, __class__: Fl, }); var Ml = function () { lr.call(this), (this.type = 39), (this.name = "DefineSprite"), (this.version = 3), (this.level = 1); }; ((s["format.swf.tags.TagDefineSprite"] = Ml).__name__ = [ "format", "swf", "tags", "TagDefineSprite", ]), (Ml.__interfaces__ = [tl]), (Ml.__super__ = lr), (Ml.prototype = n(lr.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.frameCount = or.readUI16(e)), this.parseTags(e, s); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeUI16(s, this.frameCount), this.publishTags(s, t), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { throw new Mp(new _v("Not implemented yet.")); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", FrameCount: " + this.frameCount + lr.prototype.toString.call(this, e) ); }, __class__: Ml, })); var Ll = function () { (this.type = 11), (this.name = "DefineText"), (this.version = 1), (this.level = 1), (this.records = []); }; ((s["format.swf.tags.TagDefineText"] = Ll).__name__ = [ "format", "swf", "tags", "TagDefineText", ]), (Ll.__interfaces__ = [tl]), (Ll.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.textBounds = or.readRECT(e)), (this.textMatrix = or.readMATRIX(e)); for ( var i = or.readUI8(e), r = or.readUI8(e), o = null; null != (o = or.readTEXTRECORD(e, i, r, o, this.level)); ) this.records.push(o); }, publish: function (e, t) { var s, n = or._new(); or.writeUI16(n, this.characterId), or.writeRECT(n, this.textBounds), or.writeMATRIX(n, this.textMatrix); for (var i = [], r = [], o = this.records.length, a = 0, l = o; a < l; ) for ( var h = a++, _ = 0, u = (s = this.records[h]).glyphEntries.length; _ < u; ) { var d = _++, c = s.glyphEntries[d]; i.push(c.index), r.push(c.advance); } var f = n.calculateMaxBits(!1, i), p = n.calculateMaxBits(!0, r); or.writeUI8(n, f), or.writeUI8(n, p), (s = null); for (var b = 0, m = o; b < m; ) { var g = b++; or.writeTEXTRECORD(n, this.records[g], f, p, s, this.level), (s = this.records[g]); } or.writeUI8(n, 0), or.writeTagHeader(e, this.type, or.get_length(n)), e.writeBytes(jy.fromBytes(n)); }, clone: function () { var e = new Ll(); (e.characterId = this.characterId), (e.textBounds = this.textBounds.clone()), (e.textMatrix = this.textMatrix.clone()); for (var t = 0, s = this.records.length; t < s; ) { var n = t++; e.records.push(this.records[n].clone()); } return e; }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Bounds: " + Ue.string(this.textBounds) + ", Matrix: " + Ue.string(this.textMatrix); if (0 < this.records.length) { t += "\n" + Yf.repeat(e + 2) + "TextRecords:"; for (var s = 0, n = this.records.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + this.records[i].toString(e + 4); } } return t; }, __class__: Ll, }); var Nl = function () { Ll.call(this), (this.type = 33), (this.name = "DefineText2"), (this.version = 3), (this.level = 2); }; ((s["format.swf.tags.TagDefineText2"] = Nl).__name__ = [ "format", "swf", "tags", "TagDefineText2", ]), (Nl.__interfaces__ = [tl]), (Nl.__super__ = Ll), (Nl.prototype = n(Ll.prototype, { toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Bounds: " + Ue.string(this.textBounds) + ", Matrix: " + Ue.string(this.textMatrix); if (0 < this.records.length) { t += "\n" + Yf.repeat(e + 2) + "TextRecords:"; for (var s = 0, n = this.records.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + this.records[i].toString(); } } return t; }, __class__: Nl, })); var Ol = function () { (this.type = 60), (this.name = "DefineVideoStream"), (this.version = 6), (this.level = 1); }; ((s["format.swf.tags.TagDefineVideoStream"] = Ol).__name__ = [ "format", "swf", "tags", "TagDefineVideoStream", ]), (Ol.__interfaces__ = [tl]), (Ol.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.numFrames = or.readUI16(e)), (this.width = or.readUI16(e)), (this.height = or.readUI16(e)), or.readUB(e, 4), (this.deblocking = or.readUB(e, 3)), (this.smoothing = 1 == or.readUB(e, 1)), (this.codecId = or.readUI8(e)); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 10), or.writeUI16(e, this.characterId), or.writeUI16(e, this.numFrames), or.writeUI16(e, this.width), or.writeUI16(e, this.height), or.writeUB(e, 4, 0), or.writeUB(e, 3, this.deblocking), or.writeUB(e, 1, this.smoothing ? 1 : 0), or.writeUI8(e, this.codecId); }, clone: function () { var e = new Ol(); return ( (e.characterId = this.characterId), (e.numFrames = this.numFrames), (e.width = this.width), (e.height = this.height), (e.deblocking = this.deblocking), (e.smoothing = this.smoothing), (e.codecId = this.codecId), e ); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId + ", Frames: " + this.numFrames + ", Width: " + this.width + ", Height: " + this.height + ", Deblocking: " + Wo.toString(this.deblocking) + ", Smoothing: " + Ue.string(this.smoothing) + ", Codec: " + Yo.toString(this.codecId) ); }, __class__: Ol, }); var Ul = function () { (this.abcName = ""), (this.type = 82), (this.name = "DoABC"), (this.version = 9), (this.level = 1); var e = new Uf(0); this.bytes = e; }; ((s["format.swf.tags.TagDoABC"] = Ul).__name__ = [ "format", "swf", "tags", "TagDoABC", ]), (Ul.__interfaces__ = [el]), (Ul.create = function (e, t, s) { null == s && (s = !0), null == t && (t = ""); var n = new Ul(); return ( null != e && 0 < jy.get_length(e) && n.bytes.writeBytes(e), (n.abcName = t), (n.lazyInitializeFlag = s), n ); }), (Ul.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); var i = e.position, r = or.readUI32(e); (this.lazyInitializeFlag = 0 != (1 & r)), (this.abcName = or.readSTRING(e)), e.readBytes(this.bytes, 0, t - (e.position - i)); }, publish: function (e, t) { var s = or._new(); or.writeUI32(s, this.lazyInitializeFlag ? 1 : 0), or.writeSTRING(s, this.abcName), 0 < jy.get_length(this.bytes) && s.writeBytes(this.bytes), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "Lazy: " + Ue.string(this.lazyInitializeFlag) + ", " + (0 < this.abcName.length ? "Name: " + this.abcName + ", " : "") + "Length: " + jy.get_length(this.bytes) ); }, __class__: Ul, }); var Gl = function () { (this.type = 72), (this.name = "DoABCDeprecated"), (this.version = 9), (this.level = 1); var e = new Uf(0); this.bytes = e; }; ((s["format.swf.tags.TagDoABCDeprecated"] = Gl).__name__ = [ "format", "swf", "tags", "TagDoABCDeprecated", ]), (Gl.__interfaces__ = [el]), (Gl.create = function (e) { var t = new Gl(); return null != e && 0 < jy.get_length(e) && t.bytes.writeBytes(e), t; }), (Gl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); var i = e.position; e.readBytes(this.bytes, 0, t - (e.position - i)); }, publish: function (e, t) { var s = or._new(); 0 < jy.get_length(this.bytes) && s.writeBytes(this.bytes), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "Length: " + jy.get_length(this.bytes) ); }, __class__: Gl, }); var zl = function () { (this.type = 12), (this.name = "DoAction"), (this.version = 3), (this.level = 1), (this.actions = []); }; ((s["format.swf.tags.TagDoAction"] = zl).__name__ = [ "format", "swf", "tags", "TagDoAction", ]), (zl.__interfaces__ = [el]), (zl.prototype = { parse: function (e, t, s, n) { var i; for (null == n && (n = !1); null != (i = or.readACTIONRECORD(e)); ) this.actions.push(i); }, publish: function (e, t) { for (var s = or._new(), n = 0, i = this.actions.length; n < i; ) { var r = n++; or.writeACTIONRECORD(s, this.actions[r]); } or.writeUI8(s, 0), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); for ( var t = nl.toStringCommon(this.type, this.name, e), s = 0, n = this.actions.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 2) + "[" + i + "] " + this.actions[i].toString(e + 2); } return t; }, __class__: zl, }); var Xl = function () { zl.call(this), (this.type = 59), (this.name = "DoInitAction"), (this.version = 6), (this.level = 1); }; ((s["format.swf.tags.TagDoInitAction"] = Xl).__name__ = [ "format", "swf", "tags", "TagDoInitAction", ]), (Xl.__interfaces__ = [el]), (Xl.__super__ = zl), (Xl.prototype = n(zl.prototype, { parse: function (e, t, s, n) { var i; for ( null == n && (n = !1), this.spriteId = or.readUI16(e); null != (i = or.readACTIONRECORD(e)); ) this.actions.push(i); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.spriteId); for (var n = 0, i = this.actions.length; n < i; ) { var r = n++; or.writeACTIONRECORD(s, this.actions[r]); } or.writeUI8(s, 0), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); for ( var t = nl.toStringCommon(this.type, this.name, e) + "SpriteID: " + this.spriteId + ", ", s = 0, n = this.actions.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 2) + "[" + i + "] " + this.actions[i].toString(e + 2); } return t; }, __class__: Xl, })); var Hl = function () { (this.type = 58), (this.name = "EnableDebugger"), (this.version = 5), (this.level = 1); var e = new Uf(0); this.password = e; }; ((s["format.swf.tags.TagEnableDebugger"] = Hl).__name__ = [ "format", "swf", "tags", "TagEnableDebugger", ]), (Hl.__interfaces__ = [el]), (Hl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), 0 < t && e.readBytes(this.password, 0, t); }, publish: function (e, t) { or.writeTagHeader(e, this.type, jy.get_length(this.password)), 0 < jy.get_length(this.password) && e.writeBytes(this.password); }, toString: function (e) { return null == e && (e = 0), nl.toStringCommon(this.type, this.name, e); }, __class__: Hl, }); var Vl = function () { Hl.call(this), (this.reserved = 0), (this.type = 64), (this.name = "EnableDebugger2"), (this.version = 6), (this.level = 2); }; ((s["format.swf.tags.TagEnableDebugger2"] = Vl).__name__ = [ "format", "swf", "tags", "TagEnableDebugger2", ]), (Vl.__interfaces__ = [el]), (Vl.__super__ = Hl), (Vl.prototype = n(Hl.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), (this.reserved = or.readUI16(e)), 2 < t && e.readBytes(this.password, 0, t - 2); }, publish: function (e, t) { or.writeTagHeader(e, this.type, jy.get_length(this.password) + 2), or.writeUI16(e, this.reserved), 0 < jy.get_length(this.password) && e.writeBytes(this.password); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "Password: " + (0 < jy.get_length(this.password) ? "null" : this.password.readUTF()) + ", Reserved: 0x" + Ri.hex(this.reserved) ); }, __class__: Vl, })); var Yl = function () { (this.level = 1), (this.version = 19), (this.name = "EnableTelemetry"), (this.type = 93); var e = new Uf(0); this.password = e; }; ((s["format.swf.tags.TagEnableTelemetry"] = Yl).__name__ = [ "format", "swf", "tags", "TagEnableTelemetry", ]), (Yl.__interfaces__ = [el]), (Yl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), 2 < t && (e.readByte(), e.readByte(), e.readBytes(this.password, 0, t - 2)); }, publish: function (e, t) { or.writeTagHeader(e, this.type, jy.get_length(this.password) + 2), e.writeByte(0), e.writeByte(0), 0 < jy.get_length(this.password) && e.writeBytes(this.password); }, toString: function (e) { return null == e && (e = 0), nl.toStringCommon(this.type, this.name, e); }, __class__: Yl, }); var Wl = function () { (this.type = 0), (this.name = "End"), (this.version = 1), (this.level = 1); }; ((s["format.swf.tags.TagEnd"] = Wl).__name__ = [ "format", "swf", "tags", "TagEnd", ]), (Wl.__interfaces__ = [el]), (Wl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 0); }, toString: function (e) { return null == e && (e = 0), nl.toStringCommon(this.type, this.name, e); }, __class__: Wl, }); var jl = function () { (this.type = 56), (this.name = "ExportAssets"), (this.version = 5), (this.level = 1), (this.symbols = []); }; ((s["format.swf.tags.TagExportAssets"] = jl).__name__ = [ "format", "swf", "tags", "TagExportAssets", ]), (jl.__interfaces__ = [el]), (jl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); for (var i = 0, r = or.readUI16(e); i < r; ) { i++; this.symbols.push(or.readSYMBOL(e)); } }, publish: function (e, t) { var s = or._new(), n = this.symbols.length; or.writeUI16(s, n); for (var i = 0, r = n; i < r; ) { var o = i++; or.writeSYMBOL(s, this.symbols[o]); } or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e); if (0 < this.symbols.length) { t += "\n" + Yf.repeat(e + 2) + "Assets:"; for (var s = 0, n = this.symbols.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + this.symbols[i].toString(); } } return t; }, __class__: jl, }); var Kl = function () { (this.useNetwork = !1), (this.actionscript3 = !0), (this.hasMetadata = !1), (this.useGPU = !1), (this.useDirectBlit = !1), (this.type = 69), (this.name = "FileAttributes"), (this.version = 8), (this.level = 1); }; ((s["format.swf.tags.TagFileAttributes"] = Kl).__name__ = [ "format", "swf", "tags", "TagFileAttributes", ]), (Kl.__interfaces__ = [el]), (Kl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); var i = or.readUI8(e); (this.useDirectBlit = 0 != (64 & i)), (this.useGPU = 0 != (32 & i)), (this.hasMetadata = 0 != (16 & i)), (this.actionscript3 = 0 != (8 & i)), (this.useNetwork = 0 != (1 & i)), or.skipBytes(e, 3); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 4); var s = 0; this.useNetwork && (s |= 1), this.actionscript3 && (s |= 8), this.hasMetadata && (s |= 16), this.useGPU && (s |= 32), this.useDirectBlit && (s |= 64), or.writeUI8(e, s), or.writeUI8(e, 0), or.writeUI8(e, 0), or.writeUI8(e, 0); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "AS3: " + Ue.string(this.actionscript3) + ", HasMetadata: " + Ue.string(this.hasMetadata) + ", UseDirectBlit: " + Ue.string(this.useDirectBlit) + ", UseGPU: " + Ue.string(this.useGPU) + ", UseNetwork: " + Ue.string(this.useNetwork) ); }, __class__: Kl, }); var ql = function () { (this.type = 43), (this.name = "FrameLabel"), (this.version = 3), (this.level = 1); }; ((s["format.swf.tags.TagFrameLabel"] = ql).__name__ = [ "format", "swf", "tags", "TagFrameLabel", ]), (ql.__interfaces__ = [el]), (ql.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); var i = e.position; (this.frameName = or.readSTRING(e)), (0 | e.position) - i < t && (or.readUI8(e), (this.namedAnchorFlag = !0)); }, publish: function (e, t) { var s = or._new(); or.writeSTRING(s, this.frameName), this.namedAnchorFlag && or.writeUI8(e, 1), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = "Name: " + this.frameName; return ( this.namedAnchorFlag && (t += ", NamedAnchor = true"), nl.toStringCommon(this.type, this.name, e) + t ); }, __class__: ql, }); var Zl = function () { (this.type = 57), (this.name = "ImportAssets"), (this.version = 5), (this.level = 1), (this.symbols = []); }; ((s["format.swf.tags.TagImportAssets"] = Zl).__name__ = [ "format", "swf", "tags", "TagImportAssets", ]), (Zl.__interfaces__ = [el]), (Zl.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.url = or.readSTRING(e)); for (var i = 0, r = or.readUI16(e); i < r; ) { i++; this.symbols.push(or.readSYMBOL(e)); } }, publish: function (e, t) { var s = or._new(); or.writeSTRING(s, this.url); var n = this.symbols.length; or.writeUI16(s, n); for (var i = 0, r = n; i < r; ) { var o = i++; or.writeSYMBOL(s, this.symbols[o]); } or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e); if (0 < this.symbols.length) { t += "\n" + Yf.repeat(e + 2) + "Assets:"; for (var s = 0, n = this.symbols.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + this.symbols[i].toString(); } } return t; }, __class__: Zl, }); var Jl = function () { Zl.call(this), (this.type = 71), (this.name = "ImportAssets2"), (this.version = 8), (this.level = 2); }; ((s["format.swf.tags.TagImportAssets2"] = Jl).__name__ = [ "format", "swf", "tags", "TagImportAssets2", ]), (Jl.__interfaces__ = [el]), (Jl.__super__ = Zl), (Jl.prototype = n(Zl.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), (this.url = or.readSTRING(e)), or.readUI8(e), or.readUI8(e); for (var i = 0, r = or.readUI16(e); i < r; ) { i++; this.symbols.push(or.readSYMBOL(e)); } }, publish: function (e, t) { var s = or._new(); or.writeSTRING(s, this.url), or.writeUI8(s, 1), or.writeUI8(s, 0); var n = this.symbols.length; or.writeUI16(s, n); for (var i = 0, r = n; i < r; ) { var o = i++; or.writeSYMBOL(s, this.symbols[o]); } or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, __class__: Jl, })); var Ql = function () { (this.type = 8), (this.name = "JPEGTables"), (this.version = 1), (this.level = 1); var e = new Uf(0); this.jpegTables = e; }; ((s["format.swf.tags.TagJPEGTables"] = Ql).__name__ = [ "format", "swf", "tags", "TagJPEGTables", ]), (Ql.__interfaces__ = [el]), (Ql.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), 0 < t && e.readBytes(this.jpegTables, 0, t); }, publish: function (e, t) { or.writeTagHeader(e, this.type, jy.get_length(this.jpegTables)), 0 < jy.get_length(this.jpegTables) && e.writeBytes(this.jpegTables); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "Length: " + jy.get_length(this.jpegTables) ); }, __class__: Ql, }); var $l = function () { (this.type = 77), (this.name = "Metadata"), (this.version = 1), (this.level = 1); }; ((s["format.swf.tags.TagMetadata"] = $l).__name__ = [ "format", "swf", "tags", "TagMetadata", ]), ($l.__interfaces__ = [el]), ($l.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.xmlString = or.readSTRING(e)); }, publish: function (e, t) { var s = or._new(); or.writeSTRING(s, this.xmlString), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t, s = nl.toStringCommon(this.type, this.name, e); try { (t = Vt.parse(this.xmlString)), (s += " " + xp.print(t)); } catch (e) { if ( ((jf.lastException = e) instanceof Mp && (e = e.val), !Lp.__instanceof(e, _v)) ) throw e; s += " " + this.xmlString; } return s; }, __class__: $l, }); var eh = function () { (this.level = 1), (this.version = 3), (this.name = "NameCharacter"), (this.type = 40); var e = new Uf(0); this.binaryData = e; }; ((s["format.swf.tags.TagNameCharacter"] = eh).__name__ = [ "format", "swf", "tags", "TagNameCharacter", ]), (eh.__interfaces__ = [el]), (eh.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), 2 < t && e.readBytes(this.binaryData, 0, t - 2); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), 0 < jy.get_length(this.binaryData) && s.writeBytes(this.binaryData), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, clone: function () { var e = new eh(); return ( (e.characterId = this.characterId), 0 < jy.get_length(this.binaryData) && e.binaryData.writeBytes(this.binaryData), e ); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "ID: " + this.characterId; return ( 0 < jy.get_length(this.binaryData) && ((this.binaryData.position = 0), (t += ", Name: " + this.binaryData.readUTFBytes(jy.get_length(this.binaryData) - 1)), (this.binaryData.position = 0)), t ); }, __class__: eh, }); var th = function () { (this.hasCacheAsBitmap = !1), (this.type = 4), (this.name = "PlaceObject"), (this.version = 1), (this.level = 1), (this.surfaceFilterList = []); }; ((s["format.swf.tags.TagPlaceObject"] = th).__name__ = [ "format", "swf", "tags", "TagPlaceObject", ]), (th.__interfaces__ = [sl]), (th.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); var i = e.position; (this.characterId = or.readUI16(e)), (this.depth = or.readUI16(e)), (this.matrix = or.readMATRIX(e)), (this.hasCharacter = !0), (this.hasMatrix = !0), (0 | e.position) - i < t && ((this.colorTransform = or.readCXFORM(e)), (this.hasColorTransform = !0)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.characterId), or.writeUI16(s, this.depth), or.writeMATRIX(s, this.matrix), this.hasColorTransform && or.writeCXFORM(s, this.colorTransform), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "Depth: " + this.depth; return ( this.hasCharacter && (t += ", CharacterID: " + this.characterId), this.hasMatrix && (t += ", Matrix: " + Ue.string(this.matrix)), this.hasColorTransform && (t += ", ColorTransform: " + Ue.string(this.colorTransform)), t ); }, __class__: th, }); var sh = function () { th.call(this), (this.type = 26), (this.name = "PlaceObject2"), (this.version = 3), (this.level = 2); }; ((s["format.swf.tags.TagPlaceObject2"] = sh).__name__ = [ "format", "swf", "tags", "TagPlaceObject2", ]), (sh.__interfaces__ = [sl]), (sh.__super__ = th), (sh.prototype = n(th.prototype, { parse: function (e, t, s, n) { null == n && (n = !1); var i = or.readUI8(e); (this.hasClipActions = 0 != (128 & i)), (this.hasClipDepth = 0 != (64 & i)), (this.hasName = 0 != (32 & i)), (this.hasRatio = 0 != (16 & i)), (this.hasColorTransform = 0 != (8 & i)), (this.hasMatrix = 0 != (4 & i)), (this.hasCharacter = 0 != (2 & i)), (this.hasMove = 0 != (1 & i)), (this.depth = or.readUI16(e)), this.hasCharacter && (this.characterId = or.readUI16(e)), this.hasMatrix && (this.matrix = or.readMATRIX(e)), this.hasColorTransform && (this.colorTransform = or.readCXFORMWITHALPHA(e)), this.hasRatio && (this.ratio = or.readUI16(e)), this.hasName && (this.instanceName = or.readSTRING(e)), this.hasClipDepth && (this.clipDepth = or.readUI16(e)), this.hasClipActions && (this.clipActions = or.readCLIPACTIONS(e, s)); }, publish: function (e, t) { var s = 0, n = or._new(); this.hasMove && (s |= 1), this.hasCharacter && (s |= 2), this.hasMatrix && (s |= 4), this.hasColorTransform && (s |= 8), this.hasRatio && (s |= 16), this.hasName && (s |= 32), this.hasClipDepth && (s |= 64), this.hasClipActions && (s |= 128), or.writeUI8(n, s), or.writeUI16(n, this.depth), this.hasCharacter && or.writeUI16(n, this.characterId), this.hasMatrix && or.writeMATRIX(n, this.matrix), this.hasColorTransform && or.writeCXFORM(n, this.colorTransform), this.hasRatio && or.writeUI16(n, this.ratio), this.hasName && or.writeSTRING(n, this.instanceName), this.hasClipDepth && or.writeUI16(n, this.clipDepth), this.hasClipActions && or.writeCLIPACTIONS(n, this.clipActions, t), or.writeTagHeader(e, this.type, or.get_length(n)), e.writeBytes(jy.fromBytes(n)); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "Depth: " + this.depth; return ( this.hasCharacter && (t += ", CharacterID: " + this.characterId), this.hasMatrix && (t += ", Matrix: " + this.matrix.toString()), this.hasColorTransform && (t += ", ColorTransform: " + Ue.string(this.colorTransform)), this.hasRatio && (t += ", Ratio: " + this.ratio), this.hasName && (t += ", Name: " + this.instanceName), this.hasClipDepth && (t += ", ClipDepth: " + this.clipDepth), this.hasClipActions && null != this.clipActions && (t += "\n" + Yf.repeat(e + 2) + this.clipActions.toString(e + 2)), t ); }, __class__: sh, })); var nh = function () { sh.call(this), (this.type = 70), (this.name = "PlaceObject3"), (this.version = 8), (this.level = 3); }; ((s["format.swf.tags.TagPlaceObject3"] = nh).__name__ = [ "format", "swf", "tags", "TagPlaceObject3", ]), (nh.__interfaces__ = [sl]), (nh.__super__ = sh), (nh.prototype = n(sh.prototype, { parse: function (e, t, s, n) { null == n && (n = !1); var i = or.readUI8(e); (this.hasClipActions = 0 != (128 & i)), (this.hasClipDepth = 0 != (64 & i)), (this.hasName = 0 != (32 & i)), (this.hasRatio = 0 != (16 & i)), (this.hasColorTransform = 0 != (8 & i)), (this.hasMatrix = 0 != (4 & i)), (this.hasCharacter = 0 != (2 & i)), (this.hasMove = 0 != (1 & i)); var r = or.readUI8(e); if ( ((this.hasOpaqueBackground = 0 != (64 & r)), (this.hasVisible = 0 != (32 & r)), (this.hasImage = 0 != (16 & r)), (this.hasClassName = 0 != (8 & r)), (this.hasCacheAsBitmap = 0 != (4 & r)), (this.hasBlendMode = 0 != (2 & r)), (this.hasFilterList = 0 != (1 & r)), (this.depth = or.readUI16(e)), this.hasClassName && (this.className = or.readSTRING(e)), this.hasCharacter && (this.characterId = or.readUI16(e)), this.hasMatrix && (this.matrix = or.readMATRIX(e)), this.hasColorTransform && (this.colorTransform = or.readCXFORMWITHALPHA(e)), this.hasRatio && (this.ratio = or.readUI16(e)), this.hasName && (this.instanceName = or.readSTRING(e)), this.hasClipDepth && (this.clipDepth = or.readUI16(e)), this.hasFilterList) ) for (var o = 0, a = or.readUI8(e); o < a; ) { o++; this.surfaceFilterList.push(or.readFILTER(e)); } this.hasBlendMode && (this.blendMode = or.readUI8(e)), this.hasCacheAsBitmap && (this.bitmapCache = or.readUI8(e)), this.hasVisible && (this.visible = or.readUI8(e)), this.hasOpaqueBackground && (this.bitmapBackgroundColor = or.readRGBA(e)), this.hasClipActions && (this.clipActions = or.readCLIPACTIONS(e, s)); }, prepareBody: function () { var e = or._new(), t = 0; this.hasClipActions && (t |= 128), this.hasClipDepth && (t |= 64), this.hasName && (t |= 32), this.hasRatio && (t |= 16), this.hasColorTransform && (t |= 8), this.hasMatrix && (t |= 4), this.hasCharacter && (t |= 2), this.hasMove && (t |= 1), or.writeUI8(e, t); var s = 0; if ( (this.hasOpaqueBackground && (s |= 64), this.hasVisible && (s |= 32), this.hasImage && (s |= 16), this.hasClassName && (s |= 8), this.hasCacheAsBitmap && (s |= 4), this.hasBlendMode && (s |= 2), this.hasFilterList && (s |= 1), or.writeUI8(e, s), or.writeUI16(e, this.depth), this.hasClassName && or.writeSTRING(e, this.className), this.hasCharacter && or.writeUI16(e, this.characterId), this.hasMatrix && or.writeMATRIX(e, this.matrix), this.hasColorTransform && or.writeCXFORM(e, this.colorTransform), this.hasRatio && or.writeUI16(e, this.ratio), this.hasName && or.writeSTRING(e, this.instanceName), this.hasClipDepth && or.writeUI16(e, this.clipDepth), this.hasFilterList) ) { var n = this.surfaceFilterList.length; or.writeUI8(e, n); for (var i = 0, r = n; i < r; ) { var o = i++; or.writeFILTER(e, this.surfaceFilterList[o]); } } return ( this.hasBlendMode && or.writeUI8(e, this.blendMode), this.hasCacheAsBitmap && or.writeUI8(e, this.bitmapCache), this.hasVisible && or.writeUI8(e, this.visible), this.hasOpaqueBackground && or.writeRGBA(e, this.bitmapBackgroundColor), this.hasClipActions && or.writeCLIPACTIONS(e, this.clipActions, this.version), e ); }, publish: function (e, t) { var s = this.prepareBody(); or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e) + "Depth: " + this.depth; if ( (this.hasClassName && (t += ", ClassName: " + this.className), this.hasCharacter && (t += ", CharacterID: " + this.characterId), this.hasMatrix && (t += ", Matrix: " + this.matrix.toString()), this.hasColorTransform && (t += ", ColorTransform: " + Ue.string(this.colorTransform)), this.hasRatio && (t += ", Ratio: " + this.ratio), this.hasName && (t += ", Name: " + this.instanceName), this.hasClipDepth && (t += ", ClipDepth: " + this.clipDepth), this.hasBlendMode && (t += ", BlendMode: " + Mo.toString(this.blendMode)), this.hasCacheAsBitmap && (t += ", CacheAsBitmap: " + this.bitmapCache), this.hasVisible && (t += ", Visible: " + this.visible), this.hasOpaqueBackground && (t += ", BackgroundColor: " + zf.rgbaToString(this.bitmapBackgroundColor)), this.hasFilterList) ) { t += "\n" + Yf.repeat(e + 2) + "Filters:"; for (var s = 0, n = this.surfaceFilterList.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + this.surfaceFilterList[i].toString(e + 4); } } return ( this.hasClipActions && (t += "\n" + Yf.repeat(e + 2) + this.clipActions.toString(e + 2)), t ); }, __class__: nh, })); var ih = function () { nh.call(this), (this.type = 94), (this.name = "PlaceObject4"), (this.version = 19), (this.level = 4); }; ((s["format.swf.tags.TagPlaceObject4"] = ih).__name__ = [ "format", "swf", "tags", "TagPlaceObject4", ]), (ih.__interfaces__ = [sl]), (ih.__super__ = nh), (ih.prototype = n(nh.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), nh.prototype.parse.call(this, e, t, s, n); }, publish: function (e, t) { var s = this.prepareBody(); or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = nh.prototype.toString.call(this, e); return ( null != this.metaData && (t += "\n" + Yf.repeat(e + 2) + "MetaData: yes"), t ); }, __class__: ih, })); var rh = function () { (this.type = 41), (this.name = "ProductInfo"), (this.version = 3), (this.level = 1); }; ((s["format.swf.tags.TagProductInfo"] = rh).__name__ = [ "format", "swf", "tags", "TagProductInfo", ]), (rh.__interfaces__ = [el]), (rh.UINT_MAX_CARRY = function () { return or.MAX_FLOAT_VALUE + 1; }), (rh.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.productId = or.readUI32(e)), (this.edition = or.readUI32(e)), (this.majorVersion = or.readUI8(e)), (this.minorVersion = or.readUI8(e)), (this.build = or.readUI32(e) + or.readUI32(e) * (or.MAX_FLOAT_VALUE + 1)); var i = or.readUI32(e) + or.readUI32(e) * (or.MAX_FLOAT_VALUE + 1); this.compileDate = new Date(i); }, publish: function (e, t) { var s = or._new(); or.writeUI32(s, this.productId), or.writeUI32(s, this.edition), or.writeUI8(s, this.majorVersion), or.writeUI8(s, this.minorVersion), or.writeUI32(s, 0 | this.build), or.writeUI32(s, (this.build / (or.MAX_FLOAT_VALUE + 1)) | 0), or.writeUI32(s, 0 | this.compileDate.getTime()), or.writeUI32( s, (this.compileDate.getTime() / (or.MAX_FLOAT_VALUE + 1)) | 0 ), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "ProductID: " + this.productId + ", Edition: " + this.edition + ", Version: " + this.majorVersion + "." + this.minorVersion + " r" + this.build + ", CompileDate: " + he.dateStr(this.compileDate) ); }, __class__: rh, }); var oh = function () { (this.type = 24), (this.name = "Protect"), (this.version = 2), (this.level = 1); var e = new Uf(0); this.password = e; }; ((s["format.swf.tags.TagProtect"] = oh).__name__ = [ "format", "swf", "tags", "TagProtect", ]), (oh.__interfaces__ = [el]), (oh.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), 0 < t && e.readBytes(this.password, 0, t); }, publish: function (e, t) { or.writeTagHeader(e, this.type, jy.get_length(this.password)), 0 < jy.get_length(this.password) && e.writeBytes(this.password); }, toString: function (e) { return null == e && (e = 0), nl.toStringCommon(this.type, this.name, e); }, __class__: oh, }); var ah = function () { (this.characterId = 0), (this.type = 5), (this.name = "RemoveObject"), (this.version = 1), (this.level = 1); }; ((s["format.swf.tags.TagRemoveObject"] = ah).__name__ = [ "format", "swf", "tags", "TagRemoveObject", ]), (ah.__interfaces__ = [sl]), (ah.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.characterId = or.readUI16(e)), (this.depth = or.readUI16(e)); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 4), or.writeUI16(e, this.characterId), or.writeUI16(e, this.depth); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "CharacterID: " + this.characterId + ", Depth: " + this.depth ); }, __class__: ah, }); var lh = function () { ah.call(this), (this.type = 28), (this.name = "RemoveObject2"), (this.version = 3), (this.level = 2); }; ((s["format.swf.tags.TagRemoveObject2"] = lh).__name__ = [ "format", "swf", "tags", "TagRemoveObject2", ]), (lh.__interfaces__ = [sl]), (lh.__super__ = ah), (lh.prototype = n(ah.prototype, { parse: function (e, t, s, n) { null == n && (n = !1), (this.depth = or.readUI16(e)); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 2), or.writeUI16(e, this.depth); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "Depth: " + this.depth ); }, __class__: lh, })); var hh = function () { (this.type = 65), (this.name = "ScriptLimits"), (this.version = 7), (this.level = 1); }; ((s["format.swf.tags.TagScriptLimits"] = hh).__name__ = [ "format", "swf", "tags", "TagScriptLimits", ]), (hh.__interfaces__ = [el]), (hh.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.maxRecursionDepth = or.readUI16(e)), (this.scriptTimeoutSeconds = or.readUI16(e)); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 4), or.writeUI16(e, this.maxRecursionDepth), or.writeUI16(e, this.scriptTimeoutSeconds); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "MaxRecursionDepth: " + this.maxRecursionDepth + ", ScriptTimeoutSeconds: " + this.scriptTimeoutSeconds ); }, __class__: hh, }); var _h = function () { (this.color = 16777215), (this.type = 9), (this.name = "SetBackgroundColor"), (this.version = 1), (this.level = 1); }; ((s["format.swf.tags.TagSetBackgroundColor"] = _h).__name__ = [ "format", "swf", "tags", "TagSetBackgroundColor", ]), (_h.__interfaces__ = [el]), (_h.create = function (e) { null == e && (e = 16777215); var t = new _h(); return (t.color = e), t; }), (_h.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.color = or.readRGB(e)); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 3), or.writeRGB(e, this.color); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "Color: " + zf.rgbToString(this.color) ); }, __class__: _h, }); var uh = function () { (this.type = 66), (this.name = "SetTabIndex"), (this.version = 7), (this.level = 1); }; ((s["format.swf.tags.TagSetTabIndex"] = uh).__name__ = [ "format", "swf", "tags", "TagSetTabIndex", ]), (uh.__interfaces__ = [el]), (uh.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.depth = or.readUI16(e)), (this.tabIndex = or.readUI16(e)); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 4), or.writeUI16(e, this.depth), or.writeUI16(e, this.tabIndex); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "Depth: " + this.depth + ", TabIndex: " + this.tabIndex ); }, __class__: uh, }); var dh = function () { (this.type = 1), (this.name = "ShowFrame"), (this.version = 1), (this.level = 1); }; ((s["format.swf.tags.TagShowFrame"] = dh).__name__ = [ "format", "swf", "tags", "TagShowFrame", ]), (dh.__interfaces__ = [sl]), (dh.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); }, publish: function (e, t) { or.writeTagHeader(e, this.type, 0); }, toString: function (e) { return null == e && (e = 0), nl.toStringCommon(this.type, this.name, e); }, __class__: dh, }); var ch = function () { (this.type = 19), (this.name = "SoundStreamBlock"), (this.version = 1), (this.level = 1); var e = new Uf(0); this.soundData = e; }; ((s["format.swf.tags.TagSoundStreamBlock"] = ch).__name__ = [ "format", "swf", "tags", "TagSoundStreamBlock", ]), (ch.__interfaces__ = [el]), (ch.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), e.readBytes(this.soundData, 0, t); }, publish: function (e, t) { or.writeTagHeader(e, this.type, jy.get_length(this.soundData), !0), 0 < jy.get_length(this.soundData) && e.writeBytes(this.soundData); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "Length: " + jy.get_length(this.soundData) ); }, __class__: ch, }); var fh = function () { (this.type = 18), (this.name = "SoundStreamHead"), (this.version = 1), (this.level = 1); }; ((s["format.swf.tags.TagSoundStreamHead"] = fh).__name__ = [ "format", "swf", "tags", "TagSoundStreamHead", ]), (fh.__interfaces__ = [el]), (fh.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), or.readUB(e, 4), (this.playbackSoundRate = or.readUB(e, 2)), (this.playbackSoundSize = or.readUB(e, 1)), (this.playbackSoundType = or.readUB(e, 1)), (this.streamSoundCompression = or.readUB(e, 4)), (this.streamSoundRate = or.readUB(e, 2)), (this.streamSoundSize = or.readUB(e, 1)), (this.streamSoundType = or.readUB(e, 1)), (this.streamSoundSampleCount = or.readUI16(e)), 2 == this.streamSoundCompression && (this.latencySeek = or.readSI16(e)); }, publish: function (e, t) { var s = or._new(); or.writeUB(s, 4, 0), or.writeUB(s, 2, this.playbackSoundRate), or.writeUB(s, 1, this.playbackSoundSize), or.writeUB(s, 1, this.playbackSoundType), or.writeUB(s, 4, this.streamSoundCompression), or.writeUB(s, 2, this.streamSoundRate), or.writeUB(s, 1, this.streamSoundSize), or.writeUB(s, 1, this.streamSoundType), or.writeUI16(s, this.streamSoundSampleCount), 2 == this.streamSoundCompression && or.writeSI16(s, this.latencySeek), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e); return ( 0 < this.streamSoundSampleCount && (t += "Format: " + zo.toString(this.streamSoundCompression) + ", Rate: " + Xo.toString(this.streamSoundRate) + ", Size: " + Ho.toString(this.streamSoundSize) + ", Type: " + Vo.toString(this.streamSoundType) + ", "), (t += "Samples: " + this.streamSoundSampleCount + ", "), (t += "LatencySeek: " + this.latencySeek) ); }, __class__: fh, }); var Tf = function () { fh.call(this), (this.type = 45), (this.name = "SoundStreamHead2"), (this.version = 3), (this.level = 2); }; ((s["format.swf.tags.TagSoundStreamHead2"] = Tf).__name__ = [ "format", "swf", "tags", "TagSoundStreamHead2", ]), (Tf.__interfaces__ = [el]), (Tf.__super__ = fh), (Tf.prototype = n(fh.prototype, { toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e); return ( 0 < this.streamSoundSampleCount && (t += "Format: " + zo.toString(this.streamSoundCompression) + ", Rate: " + Xo.toString(this.streamSoundRate) + ", Size: " + Ho.toString(this.streamSoundSize) + ", Type: " + Vo.toString(this.streamSoundType) + ", "), (t += "Samples: " + this.streamSoundSampleCount) ); }, __class__: Tf, })); var Sf = function () { (this.type = 15), (this.name = "StartSound"), (this.version = 1), (this.level = 1); }; ((s["format.swf.tags.TagStartSound"] = Sf).__name__ = [ "format", "swf", "tags", "TagStartSound", ]), (Sf.__interfaces__ = [el]), (Sf.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.soundId = or.readUI16(e)), (this.soundInfo = or.readSOUNDINFO(e)); }, publish: function (e, t) { var s = or._new(); or.writeUI16(s, this.soundId), or.writeSOUNDINFO(s, this.soundInfo), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "SoundID: " + this.soundId + ", SoundInfo: " + Ue.string(this.soundInfo) ); }, __class__: Sf, }); var xf = function () { (this.type = 89), (this.name = "StartSound2"), (this.version = 9), (this.level = 2); }; ((s["format.swf.tags.TagStartSound2"] = xf).__name__ = [ "format", "swf", "tags", "TagStartSound2", ]), (xf.__interfaces__ = [el]), (xf.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.soundClassName = or.readSTRING(e)), (this.soundInfo = or.readSOUNDINFO(e)); }, publish: function (e, t) { var s = or._new(); or.writeSTRING(s, this.soundClassName), or.writeSOUNDINFO(s, this.soundInfo), or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "SoundClassName: " + this.soundClassName + ", SoundInfo: " + Ue.string(this.soundInfo) ); }, __class__: xf, }); var Ef = function () { (this.type = 76), (this.name = "SymbolClass"), (this.version = 9), (this.level = 1), (this.symbols = []); }; ((s["format.swf.tags.TagSymbolClass"] = Ef).__name__ = [ "format", "swf", "tags", "TagSymbolClass", ]), (Ef.__interfaces__ = [el]), (Ef.prototype = { parse: function (e, t, s, n) { null == n && (n = !1); for (var i = 0, r = or.readUI16(e); i < r; ) { i++; this.symbols.push(or.readSYMBOL(e)); } }, publish: function (e, t) { var s = or._new(), n = this.symbols.length; or.writeUI16(s, n); for (var i = 0, r = n; i < r; ) { var o = i++; or.writeSYMBOL(s, this.symbols[o]); } or.writeTagHeader(e, this.type, or.get_length(s)), e.writeBytes(jy.fromBytes(s)); }, toString: function (e) { null == e && (e = 0); var t = nl.toStringCommon(this.type, this.name, e); if (0 < this.symbols.length) { t += "\n" + Yf.repeat(e + 2) + "Symbols:"; for (var s = 0, n = this.symbols.length; s < n; ) { var i = s++; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + this.symbols[i].toString(); } } return t; }, __class__: Ef, }); var Pf = function (e) { null == e && (e = 0), (this.type = e), (this.name = "????"), (this.version = 0), (this.level = 1); }; ((s["format.swf.tags.TagUnknown"] = Pf).__name__ = [ "format", "swf", "tags", "TagUnknown", ]), (Pf.__interfaces__ = [el]), (Pf.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), or.skipBytes(e, t); }, publish: function (e, t) { throw new Mp(new _v("No raw tag data available.")); }, toString: function (e) { return null == e && (e = 0), nl.toStringCommon(this.type, this.name, e); }, __class__: Pf, }); var Rf = function () { (this.type = 61), (this.name = "VideoFrame"), (this.version = 6), (this.level = 1); var e = new Uf(0); this.videoData = e; }; ((s["format.swf.tags.TagVideoFrame"] = Rf).__name__ = [ "format", "swf", "tags", "TagVideoFrame", ]), (Rf.__interfaces__ = [el]), (Rf.prototype = { parse: function (e, t, s, n) { null == n && (n = !1), (this.streamId = or.readUI16(e)), (this.frameNum = or.readUI16(e)), e.readBytes(this.videoData, 0, t - 4); }, publish: function (e, t) { or.writeTagHeader(e, this.type, jy.get_length(this.videoData) + 4), or.writeUI16(e, this.streamId), or.writeUI16(e, this.frameNum), 0 < jy.get_length(this.videoData) && e.writeBytes(this.videoData); }, toString: function (e) { return ( null == e && (e = 0), nl.toStringCommon(this.type, this.name, e) + "StreamID: " + this.streamId + ", Frame: " + this.frameNum ); }, __class__: Rf, }); var Af = function (e) { null == e && (e = 0), Pf.call(this), (this.type = 253), (this.name = "SWFEncryptActions"); }; ((s["format.swf.tags.etc.TagSWFEncryptActions"] = Af).__name__ = [ "format", "swf", "tags", "etc", "TagSWFEncryptActions", ]), (Af.__interfaces__ = [el]), (Af.__super__ = Pf), (Af.prototype = n(Pf.prototype, { __class__: Af })); var If = function (e) { null == e && (e = 0), Pf.call(this), (this.type = 255), (this.name = "SWFEncryptSignature"); }; ((s["format.swf.tags.etc.TagSWFEncryptSignature"] = If).__name__ = [ "format", "swf", "tags", "etc", "TagSWFEncryptSignature", ]), (If.__interfaces__ = [el]), (If.__super__ = Pf), (If.prototype = n(Pf.prototype, { __class__: If })); var Cf = function (e, t) { null == t && (t = 0), null == e && (e = 0), (this.tagIndexEnd = 0), (this.tagIndexStart = 0), (this.frameNumber = 0), (this.frameNumber = e), (this.tagIndexStart = t), (this.objects = new lp()), (this.characters = []); }; ((s["format.swf.timeline.Frame"] = Cf).__name__ = [ "format", "swf", "timeline", "Frame", ]), (Cf.prototype = { getObjectsSortedByDepth: function () { var e = []; if (null == this._objectsSortedByDepth) { for (var t = this.objects.keys(); t.hasNext(); ) { var s = t.next(); e.push(s); } e.sort(CT(this, this.sortNumeric)), (this._objectsSortedByDepth = []); for (var n = 0, i = e.length; n < i; ) { var r = n++; this._objectsSortedByDepth.push(this.objects.h[e[r]]); } } return this._objectsSortedByDepth; }, sortNumeric: function (e, t) { return e - t; }, get_tagCount: function () { return this.tagIndexEnd - this.tagIndexStart + 1; }, placeObject: function (e, t) { var s = this.objects.h[t.depth]; if (null != s) 0 == t.characterId ? ((s.lastModifiedAtIndex = e), (s.isKeyframe = !1)) : ((t.hasName || t.hasMatrix || t.hasColorTransform || t.hasFilterList) && (s.lastModifiedAtIndex = e), (s.isKeyframe = !0), t.characterId != s.characterId && ((s.characterId = t.characterId), (s.lastModifiedAtIndex = e))); else { var n = this.objects, i = t.depth, r = new Bf( t.depth, t.clipDepth, t.characterId, t.className, e, 0, !0 ); n.h[i] = r; } this._objectsSortedByDepth = null; }, removeObject: function (e) { this.objects.remove(e.depth), (this._objectsSortedByDepth = null); }, clone: function () { for (var e = new Cf(), t = this.objects.keys(); t.hasNext(); ) { var s = t.next(), n = e.objects, i = this.objects.h[s].clone(); n.h[s] = i; } return e; }, toString: function (e) { null == e && (e = 0); var t = Yf.repeat(e) + "[" + this.frameNumber + "] Start: " + this.tagIndexStart + ", Length: " + this.get_tagCount(); null != this.label && "" != this.label && (t += ", Label: " + this.label), 0 < this.characters.length && (t += "\n" + Yf.repeat(e + 2) + "Defined CharacterIDs: " + this.characters.join(", ")); for (var s = this.objects.keys(); s.hasNext(); ) { var n = s.next(); t += this.objects.h[n].toString(); } return t; }, __class__: Cf, __properties__: { get_tagCount: "get_tagCount" }, }); var Bf = function (e, t, s, n, i, r, o) { null == o && (o = !1), null == r && (r = 0), (this.layer = -1), (this.depth = e), (this.clipDepth = t), (this.characterId = s), (this.className = n), (this.placedAtIndex = i), (this.lastModifiedAtIndex = r), (this.isKeyframe = o), (this.layer = -1); }; ((s["format.swf.timeline.FrameObject"] = Bf).__name__ = [ "format", "swf", "timeline", "FrameObject", ]), (Bf.prototype = { clone: function () { return new Bf( this.depth, this.clipDepth, this.characterId, this.className, this.placedAtIndex, this.lastModifiedAtIndex, !1 ); }, toString: function () { var e = Yf.repeat(2) + "Depth: " + this.depth + (-1 < this.layer ? " (Layer " + this.layer + ")" : "") + ", CharacterId: " + this.characterId + ", "; return ( null != this.className && (e += "ClassName: " + this.className + ", "), (e += "PlacedAt: " + this.placedAtIndex), 0 < this.lastModifiedAtIndex && (e += ", LastModifiedAt: " + this.lastModifiedAtIndex), this.isKeyframe && (e += ", IsKeyframe"), e ); }, __class__: Bf, }); var Df = function (e, t) { (this.frameCount = 0), (this.depth = 0), (this.depth = e), (this.frameCount = t), (this.frameStripMap = []), (this.strips = []); }; ((s["format.swf.timeline.Layer"] = Df).__name__ = [ "format", "swf", "timeline", "Layer", ]), (Df.prototype = { appendStrip: function (e, t, s) { if (0 != e) { var n = this.strips.length; if (0 == n && 0 < t) { for (var i = 0, r = t; i < r; ) { var o = i++; this.frameStripMap[o] = n; } this.strips[n++] = new kf(1, 0, t - 1); } else if (0 < n) { var a = this.strips[n - 1]; if (a.endFrameIndex + 1 < t) { for (var l = a.endFrameIndex + 1, h = t; l < h; ) { var _ = l++; this.frameStripMap[_] = n; } this.strips[n++] = new kf(1, a.endFrameIndex + 1, t - 1); } } for (var u = t, d = s + 1; u < d; ) { var c = u++; this.frameStripMap[c] = n; } this.strips[n] = new kf(e, t, s); } }, getStripsForFrameRegion: function (e, t) { if (e >= this.frameStripMap.length || t < e) return []; var s = this.frameStripMap[e], n = t >= this.frameStripMap.length ? this.strips.length - 1 : this.frameStripMap[t]; return this.strips.slice(s, n + 1); }, toString: function (e) { null == e && (e = 0); var t = "Depth: " + this.depth + ", Frames: " + this.frameCount; if (0 < this.strips.length) { t += "\n" + Yf.repeat(e + 2) + "Strips:"; for (var s = 0, n = this.strips.length; s < n; ) { var i = s++, r = this.strips[i]; t += "\n" + Yf.repeat(e + 4) + "[" + i + "] " + r.toString(); } } return t; }, __class__: Df, }); var kf = function (e, t, s) { (this.endFrameIndex = 0), (this.startFrameIndex = 0), (this.type = 0), (this.type = e), (this.startFrameIndex = t), (this.endFrameIndex = s); }; ((s["format.swf.timeline.LayerStrip"] = kf).__name__ = [ "format", "swf", "timeline", "LayerStrip", ]), (kf.prototype = { toString: function () { var e; switch ( ((e = this.startFrameIndex == this.endFrameIndex ? "Frame: " + this.startFrameIndex : "Frames: " + this.startFrameIndex + "-" + this.endFrameIndex), (e += ", Type: "), this.type) ) { case 0: e += "EMPTY"; break; case 1: e += "SPACER"; break; case 2: e += "STATIC"; break; case 3: e += "MOTIONTWEEN"; break; case 4: e += "SHAPETWEEN"; break; default: e += "unknown"; } return e; }, __class__: kf, }); var Ff = function (e, t) { (this.frameNumber = 0), (this.frameNumber = e), (this.name = t); }; ((s["format.swf.timeline.Scene"] = Ff).__name__ = [ "format", "swf", "timeline", "Scene", ]), (Ff.prototype = { toString: function (e) { return ( null == e && (e = 0), Yf.repeat(e) + "Name: " + this.name + ", Frame: " + this.frameNumber ); }, __class__: Ff, }); var Mf = function () { var e = new Uf(0); this.data = e; }; ((s["format.swf.timeline.SoundStream"] = Mf).__name__ = [ "format", "swf", "timeline", "SoundStream", ]), (Mf.prototype = { toString: function () { return ( "[SoundStream] StartFrame: " + this.startFrame + ", Frames: " + this.numFrames + ", Samples: " + this.numSamples + ", Bytes: " + jy.get_length(this.data) ); }, __class__: Mf, }); var Lf = function (e) { (this.length = e.byteLength), (this.b = new zT(e)), ((this.b.bufferValue = e).hxBytes = this), (e.bytes = this.b); }; ((s["haxe.io.Bytes"] = Lf).__name__ = ["haxe", "io", "Bytes"]), (Lf.alloc = function (e) { return new Lf(new OT(e)); }), (Lf.ofString = function (e) { for (var t = [], s = 0; s < e.length; ) { var n = e.charCodeAt(s++); 55296 <= n && n <= 56319 && (n = ((n - 55232) << 10) | (1023 & e.charCodeAt(s++))), n <= 127 ? t.push(n) : (n <= 2047 ? t.push(192 | (n >> 6)) : (n <= 65535 ? t.push(224 | (n >> 12)) : (t.push(240 | (n >> 18)), t.push(128 | ((n >> 12) & 63))), t.push(128 | ((n >> 6) & 63))), t.push(128 | (63 & n))); } return new Lf(new zT(t).buffer); }), (Lf.ofData = function (e) { var t = e.hxBytes; return null != t ? t : new Lf(e); }), (Lf.fastGet = function (e, t) { return e.bytes[t]; }), (Lf.prototype = { blit: function (e, t, s, n) { if (e < 0 || s < 0 || n < 0 || e + n > this.length || s + n > t.length) throw new Mp(pp.OutsideBounds); 0 == s && n == t.b.byteLength ? this.b.set(t.b, e) : this.b.set(t.b.subarray(s, s + n), e); }, sub: function (e, t) { if (e < 0 || t < 0 || e + t > this.length) throw new Mp(pp.OutsideBounds); return new Lf( this.b.buffer.slice(e + this.b.byteOffset, e + this.b.byteOffset + t) ); }, getDouble: function (e) { return ( null == this.data && (this.data = new UT( this.b.buffer, this.b.byteOffset, this.b.byteLength )), this.data.getFloat64(e, !0) ); }, getFloat: function (e) { return ( null == this.data && (this.data = new UT( this.b.buffer, this.b.byteOffset, this.b.byteLength )), this.data.getFloat32(e, !0) ); }, setDouble: function (e, t) { null == this.data && (this.data = new UT( this.b.buffer, this.b.byteOffset, this.b.byteLength )), this.data.setFloat64(e, t, !0); }, setFloat: function (e, t) { null == this.data && (this.data = new UT( this.b.buffer, this.b.byteOffset, this.b.byteLength )), this.data.setFloat32(e, t, !0); }, setUInt16: function (e, t) { null == this.data && (this.data = new UT( this.b.buffer, this.b.byteOffset, this.b.byteLength )), this.data.setUint16(e, t, !0); }, getInt32: function (e) { return ( null == this.data && (this.data = new UT( this.b.buffer, this.b.byteOffset, this.b.byteLength )), this.data.getInt32(e, !0) ); }, setInt32: function (e, t) { null == this.data && (this.data = new UT( this.b.buffer, this.b.byteOffset, this.b.byteLength )), this.data.setInt32(e, t, !0); }, getInt64: function (e) { return new qf(this.getInt32(e + 4), this.getInt32(e)); }, getString: function (e, t) { if (e < 0 || t < 0 || e + t > this.length) throw new Mp(pp.OutsideBounds); for ( var s = "", n = this.b, i = String.fromCharCode, r = e, o = e + t; r < o; ) { var a = n[r++]; if (a < 128) { if (0 == a) break; s += i(a); } else if (a < 224) s += i(((63 & a) << 6) | (127 & n[r++])); else if (a < 240) { s += i(((31 & a) << 12) | ((127 & n[r++]) << 6) | (127 & n[r++])); } else { var l = ((15 & a) << 18) | ((127 & n[r++]) << 12) | ((127 & n[r++]) << 6) | (127 & n[r++]); (s += i(55232 + (l >> 10))), (s += i((1023 & l) | 56320)); } } return s; }, toString: function () { return this.getString(0, this.length); }, __class__: Lf, }); var Nf = function () {}; ((s["openfl.utils.IDataOutput"] = Nf).__name__ = [ "openfl", "utils", "IDataOutput", ]), (Nf.prototype = { __class__: Nf, __properties__: { set_endian: "set_endian", get_endian: "get_endian" }, }); var Of = function () {}; ((s["openfl.utils.IDataInput"] = Of).__name__ = [ "openfl", "utils", "IDataInput", ]), (Of.prototype = { __class__: Of, __properties__: { set_endian: "set_endian", get_endian: "get_endian", get_bytesAvailable: "get_bytesAvailable", }, }); var Uf = function (e) { null == e && (e = 0); var t = new Lf(new OT(e)); Lf.call(this, t.b.buffer), (this.__length = e), (this.__endian = 0), (this.position = 0); }; ((s["openfl.utils.ByteArrayData"] = Uf).__name__ = [ "openfl", "utils", "ByteArrayData", ]), (Uf.__interfaces__ = [Nf, Of]), (Uf.fromBytes = function (e) { var t = new Uf(); return t.__fromBytes(e), t; }), (Uf.__super__ = Lf), (Uf.prototype = n(Lf.prototype, { clear: function () { (this.__length = 0), (this.position = 0); }, compress: function (e) { (this.__length = this.length), (this.position = this.__length); }, deflate: function () { this.compress(0); }, inflate: function () { this.uncompress(0); }, readBoolean: function () { if (this.position < this.length) return 0 != this.b[this.position++]; throw new Mp(new cv()); }, readByte: function () { var e = this.readUnsignedByte(); return 0 != (128 & e) ? e - 256 : e; }, readBytes: function (e, t, s) { if ( (null == s && (s = 0), null == t && (t = 0), 0 == s && (s = this.__length - this.position), this.position + s > this.__length) ) throw new Mp(new cv()); e.__length < t + s && e.__resize(t + s), e.blit(t, this, this.position, s), (this.position += s); }, readDouble: function () { if (this.position + 8 > this.__length) throw new Mp(new cv()); return (this.position += 8), this.getDouble(this.position - 8); }, readFloat: function () { if (this.position + 4 > this.__length) throw new Mp(new cv()); return (this.position += 4), this.getFloat(this.position - 4); }, readInt: function () { var e = this.readUnsignedByte(), t = this.readUnsignedByte(), s = this.readUnsignedByte(), n = this.readUnsignedByte(); return 1 == this.__endian ? (n << 24) | (s << 16) | (t << 8) | e : (e << 24) | (t << 16) | (s << 8) | n; }, readMultiByte: function (e, t) { return this.readUTFBytes(e); }, readShort: function () { var e, t = this.readUnsignedByte(), s = this.readUnsignedByte(); return 0 != (32768 & (e = 1 == this.__endian ? (s << 8) | t : (t << 8) | s)) ? e - 65536 : e; }, readUnsignedByte: function () { if (this.position < this.__length) return this.b[this.position++]; throw new Mp(new cv()); }, readUnsignedInt: function () { var e = this.readUnsignedByte(), t = this.readUnsignedByte(), s = this.readUnsignedByte(), n = this.readUnsignedByte(); return 1 == this.__endian ? (n << 24) | (s << 16) | (t << 8) | e : (e << 24) | (t << 16) | (s << 8) | n; }, readUnsignedShort: function () { var e = this.readUnsignedByte(), t = this.readUnsignedByte(); return 1 == this.__endian ? (t << 8) + e : (e << 8) | t; }, readUTF: function () { var e = this.readUnsignedShort(); return this.readUTFBytes(e); }, readUTFBytes: function (e) { if (this.position + e > this.__length) throw new Mp(new cv()); return (this.position += e), this.getString(this.position - e, e); }, uncompress: function (e) { (this.__length = this.length), (this.position = 0); }, writeBoolean: function (e) { this.writeByte(e ? 1 : 0); }, writeByte: function (e) { this.__resize(this.position + 1), (this.b[this.position++] = 255 & e); }, writeBytes: function (e, t, s) { null == s && (s = 0), null == t && (t = 0), 0 != jy.get_length(e) && (0 == s && (s = jy.get_length(e) - t), this.__resize(this.position + s), this.blit(this.position, e, t, s), (this.position = this.position + s)); }, writeDouble: function (e) { this.__resize(this.position + 8), this.setDouble(this.position, e), (this.position += 8); }, writeFloat: function (e) { this.__resize(this.position + 4), this.setFloat(this.position, e), (this.position += 4); }, writeInt: function (e) { this.__resize(this.position + 4), 1 == this.__endian ? ((this.b[this.position++] = 255 & e), (this.b[this.position++] = (e >> 8) & 255), (this.b[this.position++] = (e >> 16) & 255), (this.b[this.position++] = (e >> 24) & 255)) : ((this.b[this.position++] = (e >> 24) & 255), (this.b[this.position++] = (e >> 16) & 255), (this.b[this.position++] = (e >> 8) & 255), (this.b[this.position++] = 255 & e)); }, writeMultiByte: function (e, t) { this.writeUTFBytes(e); }, writeShort: function (e) { this.__resize(this.position + 2), 1 == this.__endian ? ((this.b[this.position++] = 255 & e), (this.b[this.position++] = (e >> 8) & 255)) : ((this.b[this.position++] = (e >> 8) & 255), (this.b[this.position++] = 255 & e)); }, writeUnsignedInt: function (e) { this.writeInt(e); }, writeUTF: function (e) { var t = Lf.ofString(e); this.writeShort(t.length), this.writeBytes(jy.fromBytes(t)); }, writeUTFBytes: function (e) { var t = Lf.ofString(e); this.writeBytes(jy.fromBytes(t)); }, __fromBytes: function (e) { (this.b = e.b), (this.length = e.length), (this.data = e.data), (this.__length = e.length); }, __resize: function (e) { if (e > this.length) { var t = new Lf(new OT((3 * (e + 1)) >> 1)); t.blit(0, this, 0, this.length), (this.b = t.b), (this.length = t.length), (this.data = t.data); } this.__length < e && (this.__length = e); }, __setData: function (e) { (this.b = e.b), (this.length = e.length), (this.data = e.data); }, get_bytesAvailable: function () { return this.__length - this.position; }, get_endian: function () { return this.__endian; }, set_endian: function (e) { return (this.__endian = e); }, __class__: Uf, __properties__: { set_endian: "set_endian", get_endian: "get_endian", get_bytesAvailable: "get_bytesAvailable", }, })); var Gf = function (e) { (this.bitsPending = 0), Uf.call(this, e); }; ((s["format.swf.utils.BitArray"] = Gf).__name__ = [ "format", "swf", "utils", "BitArray", ]), (Gf.__super__ = Uf), (Gf.prototype = n(Uf.prototype, { readBits: function (e, t) { if ((null == t && (t = 0), 0 == e)) return t; var s, n; if (0 < this.bitsPending) { var i = this.b[this.position - 1] & (255 >> (8 - this.bitsPending)); (n = 0 | Math.min(this.bitsPending, e)), (this.bitsPending -= n), (s = i >> this.bitsPending); } else (n = 0 | Math.min(8, e)), (this.bitsPending = 8 - n), (s = this.readUnsignedByte() >> this.bitsPending); return (t = (t << n) | s), 0 < (e -= n) ? this.readBits(e, t) : t; }, writeBits: function (e, t) { var s; 0 != e && ((t &= -1 >>> (32 - e)), 0 < this.bitsPending ? this.bitsPending > e ? ((this.b[this.position - 1] = 255 & (this.b[this.position - 1] | (t << (this.bitsPending - e)))), (s = e), (this.bitsPending -= e)) : ((s = this.bitsPending == e ? ((this.b[this.position - 1] = 255 & (this.b[this.position - 1] | t)), e) : ((this.b[this.position - 1] = 255 & (this.b[this.position - 1] | (t >> (e - this.bitsPending)))), this.bitsPending)), (this.bitsPending = 0)) : ((s = 0 | Math.min(8, e)), (this.bitsPending = 8 - s), this.writeByte((t >> (e - s)) << this.bitsPending)), 0 < (e -= s) && this.writeBits(e, t)); }, resetBitsPending: function () { this.bitsPending = 0; }, calculateMaxBits: function (e, t) { var s = 0, n = 0 | or.MIN_FLOAT_VALUE; if (e) for (var i = 0; i < t.length; ) { var r = t[i]; ++i, (s |= 0 <= r ? r : ~r << 1), n < r && (n = r); } else for (var o = 0; o < t.length; ) { var a = t[o]; ++o, (s |= a); } var l = 0; return ( 0 < s && ((l = sp.encode(null == s ? "null" : "" + s, "01").length), e && 0 < n && sp.encode(null == n ? "null" : "" + n, "01").length >= l && ++l), l ); }, __class__: Gf, })); var zf = function () {}; ((s["format.swf.utils.ColorUtils"] = zf).__name__ = [ "format", "swf", "utils", "ColorUtils", ]), (zf.alpha = function (e) { return (e >>> 24) / 255; }), (zf.rgb = function (e) { return 16777215 & e; }), (zf.r = function (e) { return ((zf.rgb(e) >> 16) & 255) / 255; }), (zf.g = function (e) { return ((zf.rgb(e) >> 8) & 255) / 255; }), (zf.b = function (e) { return (255 & zf.rgb(e)) / 255; }), (zf.interpolate = function (e, t, s) { var n = zf.r(e), i = zf.g(e), r = zf.b(e), o = zf.alpha(e), a = (255 * (n + (zf.r(t) - n) * s)) | 0, l = (255 * (i + (zf.g(t) - i) * s)) | 0; return ( (255 * (r + (zf.b(t) - r) * s)) | 0 | (l << 8) | (a << 16) | (((255 * (o + (zf.alpha(t) - o) * s)) | 0) << 24) ); }), (zf.rgbToString = function (e) { return Yf.printf("#%06x", [16777215 & e]); }), (zf.rgbaToString = function (e) { return Yf.printf("#%06x(%02x)", [16777215 & e, e >>> 24]); }), (zf.argbToString = function (e) { return Yf.printf("#(%02x)%06x", [e >>> 24, 16777215 & e]); }); var Xf = function () {}; ((s["format.swf.utils.HalfPrecisionWriter"] = Xf).__name__ = [ "format", "swf", "utils", "HalfPrecisionWriter", ]), (Xf.write = function (e, t) { var s, n, i, r, o, a; t.resetBitsPending(); var l = 0, h = t.position; t.writeDouble(e), (t.position -= 4), (s = t.readUnsignedInt()), (t.position = h), (l = 0 == (2147483647 & s) ? s >> 16 : ((n = -2147483648 & s), (r = 1048575 & s), 0 == (i = 2146435072 & s) ? n >> 16 : 2146435072 == i ? 0 == r ? (n >> 16) | 31744 : 65024 : ((n >>= 16), 31 <= (a = (i >> 20) - 1023 + 15) ? (r >> 16) | 31744 : a <= 0 ? (21 < 10 - a ? (o = 0) : ((o = (r |= 1048576) >> (11 - a)), 0 < ((r >> (10 - a)) & 1) && ++o), n | o) : ((i = a << 10), (o = r >> 10), 0 < (512 & r) ? 1 + (n | i | o) : n | i | o)))), t.writeShort(l); }); var Hf = function () {}; ((s["format.swf.utils.MatrixUtils"] = Hf).__name__ = [ "format", "swf", "utils", "MatrixUtils", ]), (Hf.interpolate = function (e, t, s) { var n = new Rr(); return ( (n.scaleX = e.scaleX + (t.scaleX - e.scaleX) * s), (n.scaleY = e.scaleY + (t.scaleY - e.scaleY) * s), (n.rotateSkew0 = e.rotateSkew0 + (t.rotateSkew0 - e.rotateSkew0) * s), (n.rotateSkew1 = e.rotateSkew1 + (t.rotateSkew1 - e.rotateSkew1) * s), (n.translateX = (e.translateX + (t.translateX - e.translateX) * s) | 0), (n.translateY = (e.translateY + (t.translateY - e.translateY) * s) | 0), n ); }); var Vf = function () {}; ((s["format.swf.utils.NumberUtils"] = Vf).__name__ = [ "format", "swf", "utils", "NumberUtils", ]), (Vf.roundPixels20 = function (e) { return Math.round(100 * e) / 100; }), (Vf.roundPixels400 = function (e) { return Math.round(1e4 * e) / 1e4; }); var Yf = function () {}; ((s["format.swf.utils.StringUtils"] = Yf).__name__ = [ "format", "swf", "utils", "StringUtils", ]), (Yf.trim = function (e) { return Yf.ltrim(Yf.rtrim(e)); }), (Yf.ltrim = function (e) { if (null != e) for (var t = 0, s = e.length; t < s; ) { var n = t++; if (32 < he.cca(e, n)) return e.substring(n); } return ""; }), (Yf.rtrim = function (e) { if (null != e) for (var t = e.length; 0 < t; ) { if (32 < he.cca(e, t - 1)) return e.substring(0, t); --t; } return ""; }), (Yf.simpleEscape = function (e) { return (e = (e = (e = e.split("\n").join("\\n")).split("\r").join("\\r")) .split("\t") .join("\\t")); }), (Yf.strictEscape = function (e, t) { if ((null == t && (t = !0), null != e && 0 < e.length)) { t && (e = Yf.trim(e)); for ( var s = (e = encodeURIComponent(e)).split(""), n = 0, i = s.length; n < i; ) { var r = n++; switch (s[r]) { case "!": s[r] = "%21"; break; case "'": s[r] = "%27"; break; case "(": s[r] = "%28"; break; case ")": s[r] = "%29"; break; case "*": s[r] = "%2A"; break; case "-": s[r] = "%2D"; break; case ".": s[r] = "%2E"; break; case "_": s[r] = "%5F"; break; case "~": s[r] = "%7E"; } } return s.join(""); } return ""; }), (Yf.repeat = function (e, t) { null == t && (t = " "); for (var s = "", n = 0, i = e; n < i; ) { n++; s += t; } return s; }), (Yf.printf = function (e, t) { var s = "", n = 0, i = -1, r = 0; try { for (; r < e.length; ) { var o = e.charAt(r); if ("%" == o) if (++r < e.length) if ("%" == (o = e.charAt(r))) s += o; else { var a, l = !1, h = !1, _ = !1, u = !1, d = -1, c = -1, f = "", p = Yf.getIndex(e); if (p < -1 || 0 == p) throw ( (Zf.trace("ERR parsing index", { fileName: "StringUtils.hx", lineNumber: 116, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); if (-1 == p) { if (1 == i) throw ( (Zf.trace("ERR: indexed placeholder expected", { fileName: "StringUtils.hx", lineNumber: 119, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); -1 == i && (i = 0), ++n; } else { if (0 == i) throw ( (Zf.trace("ERR: non-indexed placeholder expected", { fileName: "StringUtils.hx", lineNumber: 123, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); -1 == i && (i = 1), (n = p); } for ( o = e.charAt(r); "+" == o || "-" == o || "#" == o || " " == o || "0" == o; ) { switch (o) { case " ": _ = !0; break; case "+": l = !0; break; case "-": h = !0; break; case "0": u = !0; } if (++r == e.length) break; o = e.charAt(r); } if (r == e.length) throw "__break__"; if ("*" == o) { var b = 0; if (++r == e.length) throw "__break__"; if ((p = Yf.getIndex(e)) < -1 || 0 == p) throw ( (Zf.trace("ERR parsing index for width", { fileName: "StringUtils.hx", lineNumber: 152, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); if (-1 == p) { if (1 == i) throw ( (Zf.trace( "ERR: indexed placeholder expected for width", { fileName: "StringUtils.hx", lineNumber: 155, className: "format.swf.utils.StringUtils", methodName: "printf", } ), "__break__") ); -1 == i && (i = 0), (b = n++); } else { if (0 == i) throw ( (Zf.trace( "ERR: non-indexed placeholder expected for width", { fileName: "StringUtils.hx", lineNumber: 159, className: "format.swf.utils.StringUtils", methodName: "printf", } ), "__break__") ); -1 == i && (i = 1), (b = p); } if ((--b, !(t.length > b && 0 <= b))) throw ( (Zf.trace("ERR index out of bounds while parsing width", { fileName: "StringUtils.hx", lineNumber: 172, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); if (((d = 0 | t[b]), isNaN(d))) throw ( ((d = -1), Zf.trace("ERR NaN while parsing width", { fileName: "StringUtils.hx", lineNumber: 168, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); o = e.charAt(r); } else { for ( ; "0" <= o && o <= "9" && (-1 == d && (d = 0), (d = 10 * d + Ue.parseInt(o)), ++r != e.length); ) o = e.charAt(r); if (-1 != d && r == e.length) throw ( (Zf.trace("ERR eof while parsing width", { fileName: "StringUtils.hx", lineNumber: 184, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); } if ("." == o) { if (++r == e.length) throw "__break__"; if ("*" == (o = e.charAt(r))) { var m = 0; if (++r == e.length) throw "__break__"; if ((p = Yf.getIndex(e)) < -1 || 0 == p) throw ( (Zf.trace("ERR parsing index for precision", { fileName: "StringUtils.hx", lineNumber: 200, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); if (-1 == p) { if (1 == i) throw ( (Zf.trace( "ERR: indexed placeholder expected for precision", { fileName: "StringUtils.hx", lineNumber: 203, className: "format.swf.utils.StringUtils", methodName: "printf", } ), "__break__") ); -1 == i && (i = 0), (m = n++); } else { if (0 == i) throw ( (Zf.trace( "ERR: non-indexed placeholder expected for precision", { fileName: "StringUtils.hx", lineNumber: 207, className: "format.swf.utils.StringUtils", methodName: "printf", } ), "__break__") ); -1 == i && (i = 1), (m = p); } if ((--m, !(t.length > m && 0 <= m))) throw ( (Zf.trace( "ERR index out of bounds while parsing precision", { fileName: "StringUtils.hx", lineNumber: 220, className: "format.swf.utils.StringUtils", methodName: "printf", } ), "__break__") ); if (((c = 0 | t[m]), isNaN(c))) throw ( ((c = -1), Zf.trace("ERR NaN while parsing precision", { fileName: "StringUtils.hx", lineNumber: 216, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); o = e.charAt(r); } else { for ( ; "0" <= o && o <= "9" && (-1 == c && (c = 0), (c = 10 * c + Ue.parseInt(o)), ++r != e.length); ) o = e.charAt(r); if (-1 != c && r == e.length) throw ( (Zf.trace("ERR eof while parsing precision", { fileName: "StringUtils.hx", lineNumber: 232, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); } } switch (o) { case "h": case "l": if (++r == e.length) throw ( (Zf.trace("ERR eof after length", { fileName: "StringUtils.hx", lineNumber: 243, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); var g = e.charAt(r); if (("h" == o && "h" == g) || ("l" == o && "l" == g)) { if (++r == e.length) throw ( (Zf.trace("ERR eof after length", { fileName: "StringUtils.hx", lineNumber: 246, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); o = e.charAt(r); } else o = g; break; case "L": case "j": case "t": case "z": if (++r == e.length) throw ( (Zf.trace("ERR eof after length", { fileName: "StringUtils.hx", lineNumber: 252, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); o = e.charAt(r); } if (!(0 <= "diufFeEgGxXoscpn".indexOf(o))) throw ( (Zf.trace("ERR unknown type: " + o, { fileName: "StringUtils.hx", lineNumber: 262, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); if (((f = o), !(t.length >= n && 0 < n))) throw ( (Zf.trace("ERR value index out of bounds (" + n + ")", { fileName: "StringUtils.hx", lineNumber: 269, className: "format.swf.utils.StringUtils", methodName: "printf", }), "__break__") ); a = t[n - 1]; var w, v, y = "", T = 0; switch (f) { case "E": case "F": case "G": case "e": case "f": case "g": -1 == c && (c = 6); var S = Math.pow(10, c); if ( ((w = "number" == typeof a ? a : parseFloat(Ue.string(a))), (y = Ue.string(Math.round(Math.abs(w) * S) / S)), 0 < c) ) { var x, E = y.indexOf("."); (x = -1 == E ? ((y += "."), c) : c - (y.length - E - 1)), (y += Yf.repeat(x, "0")); } T = w < 0 ? 1 : -1; break; case "c": y = Ue.string(a).charAt(0); break; case "d": case "i": (v = "number" == typeof a ? a : Ue.parseInt(Ue.string(a))), (y = Ue.string(Math.abs(v))), (T = v < 0 ? 1 : -1); break; case "o": y = sp.encode(Ue.string(0 | a), "01234567"); break; case "s": (y = Ue.string(a)), -1 != c && (y = he.substr(y, 0, c)); break; case "u": y = Ue.string( "number" == typeof a ? a : Ue.parseInt(Ue.string(a)) ); break; case "X": case "p": case "x": (y = Ri.hex("number" == typeof a ? 0 | a : Ue.parseInt(a))), "X" == f && (y = y.toUpperCase()); } var P = 1 == T || l || _; if (-1 < d) { var R = d - y.length; if ((P && --R, 0 < R)) { var A = u && !h ? "0" : " "; h || (A += y), (y += Yf.repeat(R, A)); } } P && (y = -1 == T ? (_ ? " " : "0") + y : "-" + y), (s += y); } else s += o; else s += o; ++r; } } catch (e) { if ("__break__" != e) throw e; } return s; }), (Yf.getIndex = function (e) { for (var t = 0, s = !1, n = "", i = Yf.i; ; ) { if (!("0" <= (n = e.charAt(Yf.i)) && n <= "9")) break; if (((s = !0), (t = 10 * t + Ue.parseInt(n)), ++Yf.i == e.length)) return -2; } return s ? "$" != n ? ((Yf.i = i), -1) : ++Yf.i == e.length ? -2 : t : -1; }); var Wf = (s["haxe.StackItem"] = { __ename__: ["haxe", "StackItem"], __constructs__: [ "CFunction", "Module", "FilePos", "Method", "LocalFunction", ], }); (Wf.CFunction = ["CFunction", 0]), (Wf.CFunction.toString = c), ((Wf.CFunction.__enum__ = Wf).Module = function (e) { var t = ["Module", 1, e]; return (t.__enum__ = Wf), (t.toString = c), t; }), (Wf.FilePos = function (e, t, s) { var n = ["FilePos", 2, e, t, s]; return (n.__enum__ = Wf), (n.toString = c), n; }), (Wf.Method = function (e, t) { var s = ["Method", 3, e, t]; return (s.__enum__ = Wf), (s.toString = c), s; }), (Wf.LocalFunction = function (e) { var t = ["LocalFunction", 4, e]; return (t.__enum__ = Wf), (t.toString = c), t; }); var jf = function () {}; ((s["haxe.CallStack"] = jf).__name__ = ["haxe", "CallStack"]), (jf.lastException = null), (jf.getStack = function (e) { if (null == e) return []; var t = Error.prepareStackTrace; Error.prepareStackTrace = function (e, t) { for (var s = [], n = 0; n < t.length; ) { var i = t[n]; ++n, null != jf.wrapCallSite && (i = jf.wrapCallSite(i)); var r = null, o = i.getFunctionName(); if (null != o) { var a = o.lastIndexOf("."); if (0 <= a) { var l = he.substr(o, 0, a), h = he.substr(o, a + 1, null); r = Wf.Method(l, h); } } s.push(Wf.FilePos(r, i.getFileName(), i.getLineNumber())); } return s; }; var s = jf.makeStack(e.stack); return (Error.prepareStackTrace = t), s; }), (jf.wrapCallSite = null), (jf.callStack = function () { try { throw new Error(); } catch (e) { (jf.lastException = e) instanceof Mp && (e = e.val); var t = jf.getStack(e); return t.shift(), t; } }), (jf.exceptionStack = function () { return jf.getStack(jf.lastException); }), (jf.toString = function (e) { for (var t = new ze(), s = 0; s < e.length; ) { var n = e[s]; ++s, (t.b += "\nCalled from "), jf.itemToString(t, n); } return t.b; }), (jf.itemToString = function (e, t) { switch (t[1]) { case 0: e.b += "a C function"; break; case 1: var s = t[2]; (e.b += "module "), (e.b += null == s ? "null" : "" + s); break; case 2: var n = t[4], i = t[3], r = t[2]; null != r && (jf.itemToString(e, r), (e.b += " (")), (e.b += null == i ? "null" : "" + i), (e.b += " line "), (e.b += null == n ? "null" : "" + n), null != r && (e.b += ")"); break; case 3: var o = t[3], a = t[2]; (e.b += null == a ? "null" : "" + a), (e.b += "."), (e.b += null == o ? "null" : "" + o); break; case 4: var l = t[2]; (e.b += "local function #"), (e.b += null == l ? "null" : "" + l); } }), (jf.makeStack = function (e) { if (null == e) return []; if ("string" != typeof e) return e; var t = e.split("\n"); "Error" == t[0] && t.shift(); for ( var s = [], n = new V( "^ at ([A-Za-z0-9_. ]+) \\(([^)]+):([0-9]+):([0-9]+)\\)$", "" ), i = 0; i < t.length; ) { var r = t[i]; if ((++i, n.match(r))) { var o = n.matched(1).split("."), a = o.pop(), l = n.matched(2), h = Ue.parseInt(n.matched(3)); s.push( Wf.FilePos( "Anonymous function" == a ? Wf.LocalFunction() : "Global code" == a ? null : Wf.Method(o.join("."), a), l, h ) ); } else s.push(Wf.Module(Ri.trim(r))); } return s; }); var Kf = function () {}; ((s["haxe.IMap"] = Kf).__name__ = ["haxe", "IMap"]), (Kf.prototype = { __class__: Kf }); var qf = function (e, t) { (this.high = e), (this.low = t); }; ((s["haxe._Int64.___Int64"] = qf).__name__ = ["haxe", "_Int64", "___Int64"]), (qf.prototype = { __class__: qf }); var Zf = function () {}; ((s["haxe.Log"] = Zf).__name__ = ["haxe", "Log"]), (Zf.trace = function (e, t) { Lp.__trace(e, t); }); var Jf = function () { (this.buf = new ze()), (this.cache = []), (this.useCache = Jf.USE_CACHE), (this.useEnumIndex = Jf.USE_ENUM_INDEX), (this.shash = new up()), (this.scount = 0); }; ((s["haxe.Serializer"] = Jf).__name__ = ["haxe", "Serializer"]), (Jf.run = function (e) { var t = new Jf(); return t.serialize(e), t.toString(); }), (Jf.prototype = { toString: function () { return this.buf.b; }, serializeString: function (e) { var t = this.shash, s = null != NT[e] ? t.getReserved(e) : t.h[e]; if (null != s) return ( (this.buf.b += "R"), void (this.buf.b += null == s ? "null" : "" + s) ); var n = this.shash, i = this.scount++; null != NT[e] ? n.setReserved(e, i) : (n.h[e] = i), (this.buf.b += "y"), (e = encodeURIComponent(e)), (this.buf.b += Ue.string(e.length)), (this.buf.b += ":"), (this.buf.b += null == e ? "null" : "" + e); }, serializeRef: function (e) { for (var t = typeof e, s = 0, n = this.cache.length; s < n; ) { var i = s++, r = this.cache[i]; if (typeof r == t && r == e) return ( (this.buf.b += "r"), (this.buf.b += null == i ? "null" : "" + i), !0 ); } return this.cache.push(e), !1; }, serializeFields: function (e) { for (var t = 0, s = De.fields(e); t < s.length; ) { var n = s[t]; ++t, this.serializeString(n), this.serialize(De.field(e, n)); } this.buf.b += "g"; }, serialize: function (e) { var t = ms.typeof(e); switch (t[1]) { case 0: this.buf.b += "n"; break; case 1: var s = e; if (0 == s) return void (this.buf.b += "z"); (this.buf.b += "i"), (this.buf.b += null == s ? "null" : "" + s); break; case 2: var n = e; isNaN(n) ? (this.buf.b += "k") : isFinite(n) ? ((this.buf.b += "d"), (this.buf.b += null == n ? "null" : "" + n)) : (this.buf.b += n < 0 ? "m" : "p"); break; case 3: this.buf.b += e ? "t" : "f"; break; case 4: if (Lp.__instanceof(e, MT)) { var i = ms.getClassName(e); (this.buf.b += "A"), this.serializeString(i); } else if (Lp.__instanceof(e, LT)) (this.buf.b += "B"), this.serializeString(ms.getEnumName(e)); else { if (this.useCache && this.serializeRef(e)) return; (this.buf.b += "o"), this.serializeFields(e); } break; case 5: throw new Mp("Cannot serialize function"); case 6: var r = t[2]; if (r == String) return void this.serializeString(e); if (this.useCache && this.serializeRef(e)) return; switch (r) { case Array: var o = 0; this.buf.b += "a"; for (var a = 0, l = e.length; a < l; ) { var h = a++; null == e[h] ? ++o : (0 < o && (1 == o ? (this.buf.b += "n") : ((this.buf.b += "u"), (this.buf.b += null == o ? "null" : "" + o)), (o = 0)), this.serialize(e[h])); } 0 < o && (1 == o ? (this.buf.b += "n") : ((this.buf.b += "u"), (this.buf.b += null == o ? "null" : "" + o))), (this.buf.b += "h"); break; case Date: var _ = e; (this.buf.b += "v"), (this.buf.b += Ue.string(_.getTime())); break; case pe: this.buf.b += "l"; for (var u = e.h; null != u; ) { var d = u.item; u = u.next; var c = d; this.serialize(c); } this.buf.b += "h"; break; case lp: this.buf.b += "q"; for (var f = e, p = f.keys(); p.hasNext(); ) { var b = p.next(); (this.buf.b += ":"), (this.buf.b += null == b ? "null" : "" + b), this.serialize(f.h[b]); } this.buf.b += "h"; break; case hp: this.buf.b += "M"; for (var m = e, g = m.keys(); g.hasNext(); ) { var w = g.next(), v = De.field(w, "__id__"); De.deleteField(w, "__id__"), this.serialize(w), (w.__id__ = v), this.serialize(m.h[w.__id__]); } this.buf.b += "h"; break; case up: this.buf.b += "b"; for (var y = e, T = y.keys(); T.hasNext(); ) { var S = T.next(); this.serializeString(S), this.serialize(null != NT[S] ? y.getReserved(S) : y.h[S]); } this.buf.b += "h"; break; case Lf: var x = e; (this.buf.b += "s"), (this.buf.b += Ue.string(Math.ceil((8 * x.length) / 6))), (this.buf.b += ":"); var E = 0, P = x.length - 2, R = Jf.BASE64_CODES; if (null == R) { var A = Jf.BASE64.length; R = new Array(A); for (var I = 0, C = Jf.BASE64.length; I < C; ) { var B = I++; R[B] = he.cca(Jf.BASE64, B); } Jf.BASE64_CODES = R; } for (; E < P; ) { var D = x.b[E++], k = x.b[E++], F = x.b[E++]; (this.buf.b += String.fromCharCode(R[D >> 2])), (this.buf.b += String.fromCharCode( R[63 & ((D << 4) | (k >> 4))] )), (this.buf.b += String.fromCharCode( R[63 & ((k << 2) | (F >> 6))] )), (this.buf.b += String.fromCharCode(R[63 & F])); } if (E == P) { var M = x.b[E++], L = x.b[E++]; (this.buf.b += String.fromCharCode(R[M >> 2])), (this.buf.b += String.fromCharCode( R[63 & ((M << 4) | (L >> 4))] )), (this.buf.b += String.fromCharCode(R[(L << 2) & 63])); } else if (E == P + 1) { var N = x.b[E++]; (this.buf.b += String.fromCharCode(R[N >> 2])), (this.buf.b += String.fromCharCode(R[(N << 4) & 63])); } break; default: this.useCache && this.cache.pop(), null != e.hxSerialize ? ((this.buf.b += "C"), this.serializeString(ms.getClassName(r)), this.useCache && this.cache.push(e), e.hxSerialize(this), (this.buf.b += "g")) : ((this.buf.b += "c"), this.serializeString(ms.getClassName(r)), this.useCache && this.cache.push(e), this.serializeFields(e)); } break; case 7: var O = t[2]; if (this.useCache) { if (this.serializeRef(e)) return; this.cache.pop(); } (this.buf.b += Ue.string(this.useEnumIndex ? "j" : "w")), this.serializeString(ms.getEnumName(O)), this.useEnumIndex ? ((this.buf.b += ":"), (this.buf.b += Ue.string(e[1]))) : this.serializeString(e[0]), (this.buf.b += ":"); var U = e.length; this.buf.b += Ue.string(U - 2); for (var G = 2, z = U; G < z; ) { var X = G++; this.serialize(e[X]); } this.useCache && this.cache.push(e); break; default: throw new Mp("Cannot serialize " + Ue.string(e)); } }, __class__: Jf, }); var Qf = function (e) { var t = this; this.id = setInterval(function () { t.run(); }, e); }; ((s["haxe.Timer"] = Qf).__name__ = ["haxe", "Timer"]), (Qf.delay = function (e, t) { var s = new Qf(t); return ( (s.run = function () { s.stop(), e(); }), s ); }), (Qf.measure = function (e, t) { var s = Date.now() / 1e3, n = e(); return Zf.trace(Date.now() / 1e3 - s + "s", t), n; }), (Qf.stamp = function () { return Date.now() / 1e3; }), (Qf.prototype = { stop: function () { null != this.id && (clearInterval(this.id), (this.id = null)); }, run: function () {}, __class__: Qf, }); var $f = function () {}; ((s["haxe._Unserializer.DefaultResolver"] = $f).__name__ = [ "haxe", "_Unserializer", "DefaultResolver", ]), ($f.prototype = { resolveClass: function (e) { return ms.resolveClass(e); }, resolveEnum: function (e) { return ms.resolveEnum(e); }, __class__: $f, }); var ep = function (e) { (this.buf = e), (this.length = e.length), (this.pos = 0), (this.scache = []), (this.cache = []); var t = ep.DEFAULT_RESOLVER; null == t && ((t = new $f()), (ep.DEFAULT_RESOLVER = t)), (this.resolver = t); }; ((s["haxe.Unserializer"] = ep).__name__ = ["haxe", "Unserializer"]), (ep.initCodes = function () { for (var e = [], t = 0, s = ep.BASE64.length; t < s; ) { var n = t++; e[ep.BASE64.charCodeAt(n)] = n; } return e; }), (ep.prototype = { setResolver: function (e) { this.resolver = null == e ? (null == tp.instance && (tp.instance = new tp()), tp.instance) : e; }, readDigits: function () { for (var e = 0, t = !1, s = this.pos; ; ) { var n = this.buf.charCodeAt(this.pos); if (n != n) break; if (45 != n) { if (n < 48 || 57 < n) break; (e = 10 * e + (n - 48)), this.pos++; } else { if (this.pos != s) break; (t = !0), this.pos++; } } return t && (e *= -1), e; }, readFloat: function () { for (var e = this.pos; ; ) { var t = this.buf.charCodeAt(this.pos); if (t != t) break; if (!((43 <= t && t < 58) || 101 == t || 69 == t)) break; this.pos++; } return parseFloat(he.substr(this.buf, e, this.pos - e)); }, unserializeObject: function (e) { for (;;) { if (this.pos >= this.length) throw new Mp("Invalid object"); if (103 == this.buf.charCodeAt(this.pos)) break; var t = this.unserialize(); if ("string" != typeof t) throw new Mp("Invalid object key"); var s = this.unserialize(); e[t] = s; } this.pos++; }, unserializeEnum: function (e, t) { if (58 != this.buf.charCodeAt(this.pos++)) throw new Mp("Invalid enum format"); var s = this.readDigits(); if (0 == s) return ms.createEnum(e, t); for (var n = []; 0 < s--; ) n.push(this.unserialize()); return ms.createEnum(e, t, n); }, unserialize: function () { switch (this.buf.charCodeAt(this.pos++)) { case 65: var e = this.unserialize(), t = this.resolver.resolveClass(e); if (null == t) throw new Mp("Class not found " + e); return t; case 66: var s = this.unserialize(), n = this.resolver.resolveEnum(s); if (null == n) throw new Mp("Enum not found " + s); return n; case 67: var i = this.unserialize(), r = this.resolver.resolveClass(i); if (null == r) throw new Mp("Class not found " + i); var o = ms.createEmptyInstance(r); if ( (this.cache.push(o), o.hxUnserialize(this), 103 != this.buf.charCodeAt(this.pos++)) ) throw new Mp("Invalid custom data"); return o; case 77: var a = new hp(); this.cache.push(a); for (this.buf; 104 != this.buf.charCodeAt(this.pos); ) { var l = this.unserialize(); a.set(l, this.unserialize()); } return this.pos++, a; case 82: var h = this.readDigits(); if (h < 0 || h >= this.scache.length) throw new Mp("Invalid string reference"); return this.scache[h]; case 97: this.buf; var _ = []; for (this.cache.push(_); ; ) { var u = this.buf.charCodeAt(this.pos); if (104 == u) { this.pos++; break; } if (117 == u) { this.pos++; var d = this.readDigits(); _[_.length + d - 1] = null; } else _.push(this.unserialize()); } return _; case 98: var c = new up(); this.cache.push(c); for (this.buf; 104 != this.buf.charCodeAt(this.pos); ) { var f = this.unserialize(), p = this.unserialize(); null != NT[f] ? c.setReserved(f, p) : (c.h[f] = p); } return this.pos++, c; case 99: var b = this.unserialize(), m = this.resolver.resolveClass(b); if (null == m) throw new Mp("Class not found " + b); var g = ms.createEmptyInstance(m); return this.cache.push(g), this.unserializeObject(g), g; case 100: return this.readFloat(); case 102: return !1; case 105: return this.readDigits(); case 106: var w = this.unserialize(), v = this.resolver.resolveEnum(w); if (null == v) throw new Mp("Enum not found " + w); this.pos++; var y = this.readDigits(), T = v.__constructs__.slice()[y]; if (null == T) throw new Mp("Unknown enum index " + w + "@" + y); var S = this.unserializeEnum(v, T); return this.cache.push(S), S; case 107: return NaN; case 108: var x = new pe(); this.cache.push(x); for (this.buf; 104 != this.buf.charCodeAt(this.pos); ) x.add(this.unserialize()); return this.pos++, x; case 109: return -1 / 0; case 110: return null; case 111: var E = {}; return this.cache.push(E), this.unserializeObject(E), E; case 112: return 1 / 0; case 113: var P = new lp(); this.cache.push(P); this.buf; for (var R = this.buf.charCodeAt(this.pos++); 58 == R; ) { var A = this.readDigits(), I = this.unserialize(); (P.h[A] = I), (R = this.buf.charCodeAt(this.pos++)); } if (104 != R) throw new Mp("Invalid IntMap format"); return P; case 114: var C = this.readDigits(); if (C < 0 || C >= this.cache.length) throw new Mp("Invalid reference"); return this.cache[C]; case 115: var B = this.readDigits(), D = this.buf; if ( 58 != this.buf.charCodeAt(this.pos++) || this.length - this.pos < B ) throw new Mp("Invalid bytes length"); var k = ep.CODES; null == k && ((k = ep.initCodes()), (ep.CODES = k)); for ( var F = this.pos, M = 3 & B, L = F + (B - M), N = new Lf(new OT(3 * (B >> 2) + (2 <= M ? M - 1 : 0))), O = 0; F < L; ) { var U = k[D.charCodeAt(F++)], G = k[D.charCodeAt(F++)]; N.b[O++] = 255 & ((U << 2) | (G >> 4)); var z = k[D.charCodeAt(F++)]; N.b[O++] = 255 & ((G << 4) | (z >> 2)); var X = k[D.charCodeAt(F++)]; N.b[O++] = 255 & ((z << 6) | X); } if (2 <= M) { var H = k[D.charCodeAt(F++)], V = k[D.charCodeAt(F++)]; if (((N.b[O++] = 255 & ((H << 2) | (V >> 4))), 3 == M)) { var Y = k[D.charCodeAt(F++)]; N.b[O++] = 255 & ((V << 4) | (Y >> 2)); } } return (this.pos += B), this.cache.push(N), N; case 116: return !0; case 118: var W; if ( 48 <= this.buf.charCodeAt(this.pos) && this.buf.charCodeAt(this.pos) <= 57 && 48 <= this.buf.charCodeAt(this.pos + 1) && this.buf.charCodeAt(this.pos + 1) <= 57 && 48 <= this.buf.charCodeAt(this.pos + 2) && this.buf.charCodeAt(this.pos + 2) <= 57 && 48 <= this.buf.charCodeAt(this.pos + 3) && this.buf.charCodeAt(this.pos + 3) <= 57 && 45 == this.buf.charCodeAt(this.pos + 4) ) (W = he.strDate(he.substr(this.buf, this.pos, 19))), (this.pos += 19); else { var j = this.readFloat(); W = new Date(j); } return this.cache.push(W), W; case 119: var K = this.unserialize(), q = this.resolver.resolveEnum(K); if (null == q) throw new Mp("Enum not found " + K); var Z = this.unserializeEnum(q, this.unserialize()); return this.cache.push(Z), Z; case 120: throw Mp.wrap(this.unserialize()); case 121: var J = this.readDigits(); if ( 58 != this.buf.charCodeAt(this.pos++) || this.length - this.pos < J ) throw new Mp("Invalid string length"); var Q = he.substr(this.buf, this.pos, J); return ( (this.pos += J), (Q = decodeURIComponent(Q.split("+").join(" "))), this.scache.push(Q), Q ); case 122: return 0; } throw ( (this.pos--, new Mp( "Invalid char " + this.buf.charAt(this.pos) + " at position " + this.pos )) ); }, __class__: ep, }); var tp = function () {}; ((s["haxe._Unserializer.NullResolver"] = tp).__name__ = [ "haxe", "_Unserializer", "NullResolver", ]), (tp.instance = null), (tp.prototype = { resolveClass: function (e) { return null; }, resolveEnum: function (e) { return null; }, __class__: tp, }); var sp = function (e) { for (var t = e.length, s = 1; 1 << s < t; ) ++s; if (8 < s || t != 1 << s) throw new Mp("BaseCode : base length must be a power of two."); (this.base = e), (this.nbits = s); }; ((s["haxe.crypto.BaseCode"] = sp).__name__ = ["haxe", "crypto", "BaseCode"]), (sp.encode = function (e, t) { return new sp(Lf.ofString(t)).encodeString(e); }), (sp.prototype = { encodeBytes: function (e) { for ( var t = this.nbits, s = this.base, n = ((8 * e.length) / t) | 0, i = new Lf(new OT(n + ((8 * e.length) % t == 0 ? 0 : 1))), r = 0, o = 0, a = (1 << t) - 1, l = 0, h = 0; h < n; ) { for (; o < t; ) (o += 8), (r <<= 8), (r |= e.b[l++]); (o -= t), (i.b[h++] = 255 & s.b[(r >> o) & a]); } return 0 < o && (i.b[h++] = 255 & s.b[(r << (t - o)) & a]), i; }, encodeString: function (e) { return this.encodeBytes(Lf.ofString(e)).toString(); }, __class__: sp, }); var np = function () {}; ((s["haxe.crypto.Crc32"] = np).__name__ = ["haxe", "crypto", "Crc32"]), (np.make = function (e) { for (var t = -1, s = e.b.bufferValue, n = 0, i = e.length; n < i; ) { for (var r = n++, o = 255 & (t ^ s.bytes[r]), a = 0; a < 8; ) { a++; 1 == (1 & o) ? (o = (o >>> 1) ^ -306674912) : (o >>>= 1); } t = (t >>> 8) ^ o; } return -1 ^ t; }); var ip = function () {}; ((s["haxe.crypto.Md5"] = ip).__name__ = ["haxe", "crypto", "Md5"]), (ip.encode = function (e) { var t = new ip(), s = t.doEncode(ip.str2blks(e)); return t.hex(s); }), (ip.str2blks = function (e) { for ( var t = Lf.ofString(e), s = 1 + ((t.length + 8) >> 6), n = [], i = 0, r = 16 * s; i < r; ) { n[i++] = 0; } for (var o = 0, a = t.length, l = 8 * a; o < a; ) (n[o >> 2] |= t.b[o] << (((l + o) % 4) * 8)), ++o; n[o >> 2] |= 128 << (((l + o) % 4) * 8); var h = 16 * s - 2; return ( (n[h] = 255 & l), (n[h] |= ((l >>> 8) & 255) << 8), (n[h] |= ((l >>> 16) & 255) << 16), (n[h] |= ((l >>> 24) & 255) << 24), n ); }), (ip.prototype = { bitOR: function (e, t) { return (((e >>> 1) | (t >>> 1)) << 1) | ((1 & e) | (1 & t)); }, bitXOR: function (e, t) { return (((e >>> 1) ^ (t >>> 1)) << 1) | ((1 & e) ^ (1 & t)); }, bitAND: function (e, t) { return (((e >>> 1) & (t >>> 1)) << 1) | (1 & e & t); }, addme: function (e, t) { var s = (65535 & e) + (65535 & t); return (((e >> 16) + (t >> 16) + (s >> 16)) << 16) | (65535 & s); }, hex: function (e) { for (var t = "", s = "0123456789abcdef", n = 0; n < e.length; ) { var i = e[n]; ++n; for (var r = 0; r < 4; ) { var o = r++; t += s.charAt((i >> (8 * o + 4)) & 15) + s.charAt((i >> (8 * o)) & 15); } } return t; }, rol: function (e, t) { return (e << t) | (e >>> (32 - t)); }, cmn: function (e, t, s, n, i, r) { return this.addme( this.rol(this.addme(this.addme(t, e), this.addme(n, r)), i), s ); }, ff: function (e, t, s, n, i, r, o) { return this.cmn( this.bitOR(this.bitAND(t, s), this.bitAND(~t, n)), e, t, i, r, o ); }, gg: function (e, t, s, n, i, r, o) { return this.cmn( this.bitOR(this.bitAND(t, n), this.bitAND(s, ~n)), e, t, i, r, o ); }, hh: function (e, t, s, n, i, r, o) { return this.cmn(this.bitXOR(this.bitXOR(t, s), n), e, t, i, r, o); }, ii: function (e, t, s, n, i, r, o) { return this.cmn(this.bitXOR(s, this.bitOR(t, ~n)), e, t, i, r, o); }, doEncode: function (e) { for ( var t = 1732584193, s = -271733879, n = -1732584194, i = 271733878, r = 0; r < e.length; ) { var o = t, a = s, l = n, h = i; 0, (t = this.ff(t, s, n, i, e[r], 7, -680876936)), (i = this.ff(i, t, s, n, e[r + 1], 12, -389564586)), (n = this.ff(n, i, t, s, e[r + 2], 17, 606105819)), (s = this.ff(s, n, i, t, e[r + 3], 22, -1044525330)), (t = this.ff(t, s, n, i, e[r + 4], 7, -176418897)), (i = this.ff(i, t, s, n, e[r + 5], 12, 1200080426)), (n = this.ff(n, i, t, s, e[r + 6], 17, -1473231341)), (s = this.ff(s, n, i, t, e[r + 7], 22, -45705983)), (t = this.ff(t, s, n, i, e[r + 8], 7, 1770035416)), (i = this.ff(i, t, s, n, e[r + 9], 12, -1958414417)), (n = this.ff(n, i, t, s, e[r + 10], 17, -42063)), (s = this.ff(s, n, i, t, e[r + 11], 22, -1990404162)), (t = this.ff(t, s, n, i, e[r + 12], 7, 1804603682)), (i = this.ff(i, t, s, n, e[r + 13], 12, -40341101)), (n = this.ff(n, i, t, s, e[r + 14], 17, -1502002290)), (s = this.ff(s, n, i, t, e[r + 15], 22, 1236535329)), (t = this.gg(t, s, n, i, e[r + 1], 5, -165796510)), (i = this.gg(i, t, s, n, e[r + 6], 9, -1069501632)), (n = this.gg(n, i, t, s, e[r + 11], 14, 643717713)), (s = this.gg(s, n, i, t, e[r], 20, -373897302)), (t = this.gg(t, s, n, i, e[r + 5], 5, -701558691)), (i = this.gg(i, t, s, n, e[r + 10], 9, 38016083)), (n = this.gg(n, i, t, s, e[r + 15], 14, -660478335)), (s = this.gg(s, n, i, t, e[r + 4], 20, -405537848)), (t = this.gg(t, s, n, i, e[r + 9], 5, 568446438)), (i = this.gg(i, t, s, n, e[r + 14], 9, -1019803690)), (n = this.gg(n, i, t, s, e[r + 3], 14, -187363961)), (s = this.gg(s, n, i, t, e[r + 8], 20, 1163531501)), (t = this.gg(t, s, n, i, e[r + 13], 5, -1444681467)), (i = this.gg(i, t, s, n, e[r + 2], 9, -51403784)), (n = this.gg(n, i, t, s, e[r + 7], 14, 1735328473)), (s = this.gg(s, n, i, t, e[r + 12], 20, -1926607734)), (t = this.hh(t, s, n, i, e[r + 5], 4, -378558)), (i = this.hh(i, t, s, n, e[r + 8], 11, -2022574463)), (n = this.hh(n, i, t, s, e[r + 11], 16, 1839030562)), (s = this.hh(s, n, i, t, e[r + 14], 23, -35309556)), (t = this.hh(t, s, n, i, e[r + 1], 4, -1530992060)), (i = this.hh(i, t, s, n, e[r + 4], 11, 1272893353)), (n = this.hh(n, i, t, s, e[r + 7], 16, -155497632)), (s = this.hh(s, n, i, t, e[r + 10], 23, -1094730640)), (t = this.hh(t, s, n, i, e[r + 13], 4, 681279174)), (i = this.hh(i, t, s, n, e[r], 11, -358537222)), (n = this.hh(n, i, t, s, e[r + 3], 16, -722521979)), (s = this.hh(s, n, i, t, e[r + 6], 23, 76029189)), (t = this.hh(t, s, n, i, e[r + 9], 4, -640364487)), (i = this.hh(i, t, s, n, e[r + 12], 11, -421815835)), (n = this.hh(n, i, t, s, e[r + 15], 16, 530742520)), (s = this.hh(s, n, i, t, e[r + 2], 23, -995338651)), (t = this.ii(t, s, n, i, e[r], 6, -198630844)), (i = this.ii(i, t, s, n, e[r + 7], 10, 1126891415)), (n = this.ii(n, i, t, s, e[r + 14], 15, -1416354905)), (s = this.ii(s, n, i, t, e[r + 5], 21, -57434055)), (t = this.ii(t, s, n, i, e[r + 12], 6, 1700485571)), (i = this.ii(i, t, s, n, e[r + 3], 10, -1894986606)), (n = this.ii(n, i, t, s, e[r + 10], 15, -1051523)), (s = this.ii(s, n, i, t, e[r + 1], 21, -2054922799)), (t = this.ii(t, s, n, i, e[r + 8], 6, 1873313359)), (i = this.ii(i, t, s, n, e[r + 15], 10, -30611744)), (n = this.ii(n, i, t, s, e[r + 6], 15, -1560198380)), (s = this.ii(s, n, i, t, e[r + 13], 21, 1309151649)), (t = this.ii(t, s, n, i, e[r + 4], 6, -145523070)), (i = this.ii(i, t, s, n, e[r + 11], 10, -1120210379)), (n = this.ii(n, i, t, s, e[r + 2], 15, 718787259)), (s = this.ii(s, n, i, t, e[r + 9], 21, -343485551)), (t = this.addme(t, o)), (s = this.addme(s, a)), (n = this.addme(n, l)), (i = this.addme(i, h)), (r += 16); } return [t, s, n, i]; }, __class__: ip, }); var rp = function () {}; ((s["haxe.ds.BalancedTree"] = rp).__name__ = ["haxe", "ds", "BalancedTree"]), (rp.prototype = { set: function (e, t) { this.root = this.setLoop(e, t, this.root); }, get: function (e) { for (var t = this.root; null != t; ) { var s = this.compare(e, t.key); if (0 == s) return t.value; t = s < 0 ? t.left : t.right; } return null; }, remove: function (e) { try { return (this.root = this.removeLoop(e, this.root)), !0; } catch (e) { if ( ((jf.lastException = e) instanceof Mp && (e = e.val), Lp.__instanceof(e, String)) ) return !1; throw e; } }, exists: function (e) { for (var t = this.root; null != t; ) { var s = this.compare(e, t.key); if (0 == s) return !0; t = s < 0 ? t.left : t.right; } return !1; }, iterator: function () { var e = []; return this.iteratorLoop(this.root, e), he.iter(e); }, keys: function () { var e = []; return this.keysLoop(this.root, e), he.iter(e); }, setLoop: function (e, t, s) { if (null == s) return new op(null, e, t, null); var n = this.compare(e, s.key); if (0 == n) return new op(s.left, e, t, s.right, null == s ? 0 : s._height); if (n < 0) { var i = this.setLoop(e, t, s.left); return this.balance(i, s.key, s.value, s.right); } var r = this.setLoop(e, t, s.right); return this.balance(s.left, s.key, s.value, r); }, removeLoop: function (e, t) { if (null == t) throw new Mp("Not_found"); var s = this.compare(e, t.key); return 0 == s ? this.merge(t.left, t.right) : s < 0 ? this.balance(this.removeLoop(e, t.left), t.key, t.value, t.right) : this.balance(t.left, t.key, t.value, this.removeLoop(e, t.right)); }, iteratorLoop: function (e, t) { null != e && (this.iteratorLoop(e.left, t), t.push(e.value), this.iteratorLoop(e.right, t)); }, keysLoop: function (e, t) { null != e && (this.keysLoop(e.left, t), t.push(e.key), this.keysLoop(e.right, t)); }, merge: function (e, t) { if (null == e) return t; if (null == t) return e; var s = this.minBinding(t); return this.balance(e, s.key, s.value, this.removeMinBinding(t)); }, minBinding: function (e) { if (null == e) throw new Mp("Not_found"); return null == e.left ? e : this.minBinding(e.left); }, removeMinBinding: function (e) { return null == e.left ? e.right : this.balance( this.removeMinBinding(e.left), e.key, e.value, e.right ); }, balance: function (e, t, s, n) { var i = null == e ? 0 : e._height, r = null == n ? 0 : n._height; if (r + 2 < i) { var o = e.left, a = e.right; return (null == o ? 0 : o._height) >= (null == a ? 0 : a._height) ? new op(e.left, e.key, e.value, new op(e.right, t, s, n)) : new op( new op(e.left, e.key, e.value, e.right.left), e.right.key, e.right.value, new op(e.right.right, t, s, n) ); } if (i + 2 < r) { var l = n.right, h = n.left; return (null == l ? 0 : l._height) > (null == h ? 0 : h._height) ? new op(new op(e, t, s, n.left), n.key, n.value, n.right) : new op( new op(e, t, s, n.left.left), n.left.key, n.left.value, new op(n.left.right, n.key, n.value, n.right) ); } return new op(e, t, s, n, (r < i ? i : r) + 1); }, compare: function (e, t) { return De.compare(e, t); }, __class__: rp, }); var op = function (e, t, s, n, i) { if ( (null == i && (i = -1), (this.left = e), (this.key = t), (this.value = s), (this.right = n), -1 == i) ) { var r, o = this.left, a = this.right; if ((null == o ? 0 : o._height) > (null == a ? 0 : a._height)) { var l = this.left; r = null == l ? 0 : l._height; } else { var h = this.right; r = null == h ? 0 : h._height; } this._height = r + 1; } else this._height = i; }; ((s["haxe.ds.TreeNode"] = op).__name__ = ["haxe", "ds", "TreeNode"]), (op.prototype = { __class__: op }); var ap = function () { rp.call(this); }; ((s["haxe.ds.EnumValueMap"] = ap).__name__ = ["haxe", "ds", "EnumValueMap"]), (ap.__interfaces__ = [Kf]), (ap.__super__ = rp), (ap.prototype = n(rp.prototype, { compare: function (e, t) { var s = e[1] - t[1]; if (0 != s) return s; var n = e.slice(2), i = t.slice(2); return 0 == n.length && 0 == i.length ? 0 : this.compareArgs(n, i); }, compareArgs: function (e, t) { var s = e.length - t.length; if (0 != s) return s; for (var n = 0, i = e.length; n < i; ) { var r = n++, o = this.compareArg(e[r], t[r]); if (0 != o) return o; } return 0; }, compareArg: function (e, t) { return De.isEnumValue(e) && De.isEnumValue(t) ? this.compare(e, t) : e instanceof Array && null == e.__enum__ && t instanceof Array && null == t.__enum__ ? this.compareArgs(e, t) : De.compare(e, t); }, __class__: ap, })); var lp = function () { this.h = {}; }; ((s["haxe.ds.IntMap"] = lp).__name__ = ["haxe", "ds", "IntMap"]), (lp.__interfaces__ = [Kf]), (lp.prototype = { set: function (e, t) { this.h[e] = t; }, get: function (e) { return this.h[e]; }, exists: function (e) { return this.h.hasOwnProperty(e); }, remove: function (e) { return !!this.h.hasOwnProperty(e) && (delete this.h[e], !0); }, keys: function () { var e = []; for (var t in this.h) this.h.hasOwnProperty(t) && e.push(0 | t); return he.iter(e); }, iterator: function () { return { ref: this.h, it: this.keys(), hasNext: function () { return this.it.hasNext(); }, next: function () { var e = this.it.next(); return this.ref[e]; }, }; }, __class__: lp, }); var hp = function () { this.h = { __keys__: {} }; }; ((s["haxe.ds.ObjectMap"] = hp).__name__ = ["haxe", "ds", "ObjectMap"]), (hp.__interfaces__ = [Kf]), (hp.assignId = function (e) { return (e.__id__ = ++hp.count); }), (hp.getId = function (e) { return e.__id__; }), (hp.prototype = { set: function (e, t) { var s = e.__id__ || (e.__id__ = ++hp.count); (this.h[s] = t), (this.h.__keys__[s] = e); }, get: function (e) { return this.h[e.__id__]; }, exists: function (e) { return null != this.h.__keys__[e.__id__]; }, remove: function (e) { var t = e.__id__; return ( null != this.h.__keys__[t] && (delete this.h[t], delete this.h.__keys__[t], !0) ); }, keys: function () { var e = []; for (var t in this.h.__keys__) this.h.hasOwnProperty(t) && e.push(this.h.__keys__[t]); return he.iter(e); }, iterator: function () { return { ref: this.h, it: this.keys(), hasNext: function () { return this.it.hasNext(); }, next: function () { var e = this.it.next(); return this.ref[e.__id__]; }, }; }, __class__: hp, }); var _p = function (e, t) { (this.map = e), (this.keys = t), (this.index = 0), (this.count = t.length); }; ((s["haxe.ds._StringMap.StringMapIterator"] = _p).__name__ = [ "haxe", "ds", "_StringMap", "StringMapIterator", ]), (_p.prototype = { hasNext: function () { return this.index < this.count; }, next: function () { var e = this.map, t = this.keys[this.index++]; return null != NT[t] ? e.getReserved(t) : e.h[t]; }, __class__: _p, }); var up = function () { this.h = {}; }; ((s["haxe.ds.StringMap"] = up).__name__ = ["haxe", "ds", "StringMap"]), (up.__interfaces__ = [Kf]), (up.prototype = { set: function (e, t) { null != NT[e] ? this.setReserved(e, t) : (this.h[e] = t); }, get: function (e) { return null != NT[e] ? this.getReserved(e) : this.h[e]; }, exists: function (e) { return null != NT[e] ? this.existsReserved(e) : this.h.hasOwnProperty(e); }, setReserved: function (e, t) { null == this.rh && (this.rh = {}), (this.rh["$" + e] = t); }, getReserved: function (e) { return null == this.rh ? null : this.rh["$" + e]; }, existsReserved: function (e) { return null != this.rh && this.rh.hasOwnProperty("$" + e); }, remove: function (e) { return null != NT[e] ? ((e = "$" + e), !(null == this.rh || !this.rh.hasOwnProperty(e)) && (delete this.rh[e], !0)) : !!this.h.hasOwnProperty(e) && (delete this.h[e], !0); }, keys: function () { return he.iter(this.arrayKeys()); }, arrayKeys: function () { var e = []; for (var t in this.h) this.h.hasOwnProperty(t) && e.push(t); if (null != this.rh) for (var t in this.rh) 36 == t.charCodeAt(0) && e.push(t.substr(1)); return e; }, iterator: function () { return new _p(this, this.arrayKeys()); }, __class__: up, }); var dp = {}; ((s["haxe.ds._Vector.Vector_Impl_"] = dp).__name__ = [ "haxe", "ds", "_Vector", "Vector_Impl_", ]), (dp.blit = function (e, t, s, n, i) { if (e == s) { if (t < n) for (var r = t + i, o = n + i, a = 0, l = i; a < l; ) { a++; --r, (e[--o] = e[r]); } else if (n < t) for (var h = t, _ = n, u = 0, d = i; u < d; ) { u++; (e[_] = e[h]), ++h, ++_; } } else for (var c = 0, f = i; c < f; ) { var p = c++; s[n + p] = e[t + p]; } }); var cp = function () { this.b = []; }; ((s["haxe.io.BytesBuffer"] = cp).__name__ = ["haxe", "io", "BytesBuffer"]), (cp.prototype = { addInt32: function (e) { this.b.push(255 & e), this.b.push((e >> 8) & 255), this.b.push((e >> 16) & 255), this.b.push(e >>> 24); }, addInt64: function (e) { this.addInt32(e.low), this.addInt32(e.high); }, getBytes: function () { var e = new Lf(new zT(this.b).buffer); return (this.b = null), e; }, __class__: cp, }); var fp = function () {}; ((s["haxe.io.Eof"] = fp).__name__ = ["haxe", "io", "Eof"]), (fp.prototype = { toString: function () { return "Eof"; }, __class__: fp, }); var pp = (s["haxe.io.Error"] = { __ename__: ["haxe", "io", "Error"], __constructs__: ["Blocked", "Overflow", "OutsideBounds", "Custom"], }); (pp.Blocked = ["Blocked", 0]), (pp.Blocked.toString = c), ((pp.Blocked.__enum__ = pp).Overflow = ["Overflow", 1]), (pp.Overflow.toString = c), ((pp.Overflow.__enum__ = pp).OutsideBounds = ["OutsideBounds", 2]), (pp.OutsideBounds.toString = c), ((pp.OutsideBounds.__enum__ = pp).Custom = function (e) { var t = ["Custom", 3, e]; return (t.__enum__ = pp), (t.toString = c), t; }); var bp = function () {}; ((s["haxe.io.FPHelper"] = bp).__name__ = ["haxe", "io", "FPHelper"]), (bp.i32ToFloat = function (e) { var t = (e >>> 23) & 255, s = 8388607 & e; return 0 == s && 0 == t ? 0 : (1 - ((e >>> 31) << 1)) * (1 + Math.pow(2, -23) * s) * Math.pow(2, t - 127); }), (bp.floatToI32 = function (e) { if (0 == e) return 0; var t = e < 0 ? -e : e, s = Math.floor(Math.log(t) / 0.6931471805599453); s < -127 ? (s = -127) : 128 < s && (s = 128); var n = Math.round(8388608 * (t / Math.pow(2, s) - 1)); return ( 8388608 == n && s < 128 && ((n = 0), ++s), (e < 0 ? -2147483648 : 0) | ((s + 127) << 23) | n ); }), (bp.i64ToDouble = function (e, t) { var s = ((t >> 20) & 2047) - 1023, n = 4294967296 * (1048575 & t) + 2147483648 * (e >>> 31) + (2147483647 & e); return 0 == n && -1023 == s ? 0 : (1 - ((t >>> 31) << 1)) * (1 + Math.pow(2, -52) * n) * Math.pow(2, s); }), (bp.doubleToI64 = function (e) { var t = bp.i64tmp; if (0 == e) (t.low = 0), (t.high = 0); else if (isFinite(e)) { var s = e < 0 ? -e : e, n = Math.floor(Math.log(s) / 0.6931471805599453), i = Math.round(4503599627370496 * (s / Math.pow(2, n) - 1)), r = 0 | i, o = (i / 4294967296) | 0; (t.low = r), (t.high = (e < 0 ? -2147483648 : 0) | ((n + 1023) << 20) | o); } else t.high = 0 < e ? ((t.low = 0), 2146435072) : ((t.low = 0), -1048576); return t; }); var mp = {}; ((s["haxe.io._Int32Array.Int32Array_Impl_"] = mp).__name__ = [ "haxe", "io", "_Int32Array", "Int32Array_Impl_", ]), (mp.fromArray = function (e, t, s) { if ( (null == t && (t = 0), null == s && (s = e.length - t), t < 0 || s < 0 || t + s > e.length) ) throw new Mp(pp.OutsideBounds); if (0 == t && s == e.length) return new Int32Array(e); for (var n = new Int32Array(e.length), i = 0, r = s; i < r; ) { var o = i++; n[o] = 0 | e[o + t]; } return n; }), (mp.fromBytes = function (e, t, s) { return ( null == t && (t = 0), null == s && (s = (e.length - t) >> 2), new Int32Array(e.b.bufferValue, t, s) ); }); var gp = function (e) { switch (e) { case ".": case "..": return (this.dir = e), void (this.file = ""); } var t = e.lastIndexOf("/"), s = e.lastIndexOf("\\"); t < s ? ((this.dir = he.substr(e, 0, s)), (e = he.substr(e, s + 1, null)), (this.backslash = !0)) : s < t ? ((this.dir = he.substr(e, 0, t)), (e = he.substr(e, t + 1, null))) : (this.dir = null); var n = e.lastIndexOf("."); this.file = -1 != n ? ((this.ext = he.substr(e, n + 1, null)), he.substr(e, 0, n)) : ((this.ext = null), e); }; ((s["haxe.io.Path"] = gp).__name__ = ["haxe", "io", "Path"]), (gp.withoutExtension = function (e) { var t = new gp(e); return (t.ext = null), t.toString(); }), (gp.prototype = { toString: function () { return ( (null == this.dir ? "" : this.dir + (this.backslash ? "\\" : "/")) + this.file + (null == this.ext ? "" : "." + this.ext) ); }, __class__: gp, }); var wp = {}; ((s["haxe.io._UInt16Array.UInt16Array_Impl_"] = wp).__name__ = [ "haxe", "io", "_UInt16Array", "UInt16Array_Impl_", ]), (wp.fromBytes = function (e, t, s) { return ( null == t && (t = 0), null == s && (s = (e.length - t) >> 1), new Uint16Array(e.b.bufferValue, t, s) ); }); var vp = {}; ((s["haxe.io._UInt8Array.UInt8Array_Impl_"] = vp).__name__ = [ "haxe", "io", "_UInt8Array", "UInt8Array_Impl_", ]), (vp.fromArray = function (e, t, s) { if ( (null == t && (t = 0), null == s && (s = e.length - t), t < 0 || s < 0 || t + s > e.length) ) throw new Mp(pp.OutsideBounds); if (0 == t && s == e.length) return new zT(e); for (var n = new zT(e.length), i = 0, r = s; i < r; ) { var o = i++; n[o] = 255 & e[o + t]; } return n; }), (vp.fromBytes = function (e, t, s) { return ( null == t && (t = 0), null == s && (s = e.length - t), new zT(e.b.bufferValue, t, s) ); }); var yp = function () {}; ((s["haxe.rtti.Meta"] = yp).__name__ = ["haxe", "rtti", "Meta"]), (yp.getType = function (e) { var t = yp.getMeta(e); return null == t || null == t.obj ? {} : t.obj; }), (yp.getMeta = function (e) { return e.__meta__; }); var Tp = function (e, t, s) { (this.xml = t), (this.message = e), (this.position = s), (this.lineNumber = 1); for (var n = (this.positionAtLine = 0), i = s; n < i; ) { var r = n++, o = t.charCodeAt(r); 10 == o ? (this.lineNumber++, (this.positionAtLine = 0)) : 13 != o && this.positionAtLine++; } }; ((s["haxe.xml.XmlParserException"] = Tp).__name__ = [ "haxe", "xml", "XmlParserException", ]), (Tp.prototype = { toString: function () { return ( ms.getClassName(Lp.getClass(this)) + ": " + this.message + " at line " + this.lineNumber + " char " + this.positionAtLine ); }, __class__: Tp, }); var Sp = function () {}; ((s["haxe.xml.Parser"] = Sp).__name__ = ["haxe", "xml", "Parser"]), (Sp.parse = function (e, t) { null == t && (t = !1); var s = Vt.createDocument(); return Sp.doParse(e, t, 0, s), s; }), (Sp.doParse = function (e, t, s, n) { null == s && (s = 0); for ( var i = null, r = 1, o = 1, a = null, l = 0, h = 0, _ = 0, u = e.charCodeAt(s), d = new ze(), c = 1, f = -1; u == u; ) { switch (r) { case 0: switch (u) { case 9: case 10: case 13: case 32: break; default: r = o; continue; } break; case 1: if (60 != u) { (l = s), (r = 13); continue; } (r = 0), (o = 2); break; case 2: switch (u) { case 33: if (91 == e.charCodeAt(s + 1)) { if (((s += 2), "CDATA[" != he.substr(e, s, 6).toUpperCase())) throw new Mp(new Tp("Expected ", e, s)); } (r = 0), (o = 12); continue; case 11: if (62 != u) throw new Mp(new Tp("Expected >", e, s)); r = 1; break; case 12: if (62 == u) return 0 == h && n.addChild(Vt.createPCData("")), s; throw new Mp(new Tp("Expected >", e, s)); case 13: if (60 == u) { var y = s - l; d.b += null == y ? he.substr(e, l, null) : he.substr(e, l, y); var T = Vt.createPCData(d.b); (d = new ze()), n.addChild(T), ++h, (r = 0), (o = 2); } else if (38 == u) { var S = s - l; (d.b += null == S ? he.substr(e, l, null) : he.substr(e, l, S)), (r = 18), (c = 13), (l = s + 1); } break; case 14: if (63 == u && 62 == e.charCodeAt(s + 1)) { ++s; var x = he.substr(e, l + 1, s - l - 2); n.addChild(Vt.createProcessingInstruction(x)), ++h, (r = 1); } break; case 15: 45 == u && 45 == e.charCodeAt(s + 1) && 62 == e.charCodeAt(s + 2) && (n.addChild(Vt.createComment(he.substr(e, l, s - l))), ++h, (s += 2), (r = 1)); break; case 16: 91 == u ? ++_ : 93 == u ? --_ : 62 == u && 0 == _ && (n.addChild(Vt.createDocType(he.substr(e, l, s - l))), ++h, (r = 1)); break; case 17: if ( 93 == u && 93 == e.charCodeAt(s + 1) && 62 == e.charCodeAt(s + 2) ) { var E = Vt.createCData(he.substr(e, l, s - l)); n.addChild(E), ++h, (s += 2), (r = 1); } break; case 18: if (59 == u) { var P = he.substr(e, l, s - l); if (35 == P.charCodeAt(0)) { var R = 120 == P.charCodeAt(1) ? Ue.parseInt("0" + he.substr(P, 1, P.length - 1)) : Ue.parseInt(he.substr(P, 1, P.length - 1)); d.b += String.fromCharCode(R); } else { var A = Sp.escapes; if ( null != NT[P] ? A.existsReserved(P) : A.h.hasOwnProperty(P) ) { var I = Sp.escapes, C = null != NT[P] ? I.getReserved(P) : I.h[P]; d.b += Ue.string(C); } else { if (t) throw new Mp(new Tp("Undefined entity: " + P, e, s)); d.b += Ue.string("&" + P + ";"); } } (l = s + 1), (r = c); } else if ( !( (97 <= u && u <= 122) || (65 <= u && u <= 90) || (48 <= u && u <= 57) || 58 == u || 46 == u || 95 == u || 45 == u ) && 35 != u ) { if (t) throw new Mp( new Tp( "Invalid character in entity: " + String.fromCharCode(u), e, s ) ); d.b += "&"; var B = s - l; (d.b += null == B ? he.substr(e, l, null) : he.substr(e, l, B)), (l = s--), (r = c); } } u = e.charCodeAt(++s); } if ((1 == r && ((l = s), (r = 13)), 13 == r)) { if (s != l || 0 == h) { var D = s - l; (d.b += null == D ? he.substr(e, l, null) : he.substr(e, l, D)), n.addChild(Vt.createPCData(d.b)), ++h; } return s; } if (t || 18 != r || 13 != c) throw new Mp(new Tp("Unexpected end", e, s)); d.b += "&"; var k = s - l; return ( (d.b += null == k ? he.substr(e, l, null) : he.substr(e, l, k)), n.addChild(Vt.createPCData(d.b)), ++h, s ); }); var xp = function (e) { (this.output = new ze()), (this.pretty = e); }; ((s["haxe.xml.Printer"] = xp).__name__ = ["haxe", "xml", "Printer"]), (xp.print = function (e, t) { null == t && (t = !1); var s = new xp(t); return s.writeNode(e, ""), s.output.b; }), (xp.prototype = { writeNode: function (e, t) { switch (e.nodeType) { case 0: if ( ((this.output.b += Ue.string(t + "<")), e.nodeType != Vt.Element) ) throw new Mp( "Bad node type, expected Element but found " + e.nodeType ); this.output.b += Ue.string(e.nodeName); for (var s = e.attributes(); s.hasNext(); ) { var n = s.next(); this.output.b += Ue.string(" " + n + '="'); var i = Ri.htmlEscape(e.get(n), !0); (this.output.b += Ue.string(i)), (this.output.b += '"'); } if (this.hasChildren(e)) { if ( ((this.output.b += ">"), this.pretty && (this.output.b += "\n"), e.nodeType != Vt.Document && e.nodeType != Vt.Element) ) throw new Mp( "Bad node type, expected Element or Document but found " + e.nodeType ); for (var r = he.iter(e.children); r.hasNext(); ) { var o = r.next(); this.writeNode(o, this.pretty ? t + "\t" : t); } if ( ((this.output.b += Ue.string(t + ""), this.pretty && (this.output.b += "\n"); } else (this.output.b += "/>"), this.pretty && (this.output.b += "\n"); break; case 1: if (e.nodeType == Vt.Document || e.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + e.nodeType); var a = e.nodeValue; if (0 != a.length) { var l = t + Ri.htmlEscape(a); (this.output.b += Ue.string(l)), this.pretty && (this.output.b += "\n"); } break; case 2: if ( ((this.output.b += Ue.string(t + ""), this.pretty && (this.output.b += "\n"); break; case 3: if (e.nodeType == Vt.Document || e.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + e.nodeType); var _ = e.nodeValue, u = new RegExp("[\n\r\t]+", "g".split("u").join("")); (_ = "\x3c!--" + (_ = _.replace(u, "")) + "--\x3e"), (this.output.b += null == t ? "null" : "" + t); var d = Ri.trim(_); (this.output.b += Ue.string(d)), this.pretty && (this.output.b += "\n"); break; case 4: if (e.nodeType == Vt.Document || e.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + e.nodeType); (this.output.b += Ue.string("")), this.pretty && (this.output.b += "\n"); break; case 5: if (e.nodeType == Vt.Document || e.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + e.nodeType); (this.output.b += Ue.string("")), this.pretty && (this.output.b += "\n"); break; case 6: if (e.nodeType != Vt.Document && e.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element or Document but found " + e.nodeType ); for (var c = he.iter(e.children); c.hasNext(); ) { var f = c.next(); this.writeNode(f, t); } } }, hasChildren: function (e) { if (e.nodeType != Vt.Document && e.nodeType != Vt.Element) throw new Mp( "Bad node type, expected Element or Document but found " + e.nodeType ); for (var t = he.iter(e.children); t.hasNext(); ) { var s = t.next(); switch (s.nodeType) { case 0: case 1: return !0; case 2: case 3: if (s.nodeType == Vt.Document || s.nodeType == Vt.Element) throw new Mp("Bad node type, unexpected " + s.nodeType); if (0 != Ri.ltrim(s.nodeValue).length) return !0; } } return !1; }, __class__: xp, }); var Ep = function (e, t) { (this.from = e), (this.to = t); }; ((s["hxbit.ConvertField"] = Ep).__name__ = ["hxbit", "ConvertField"]), (Ep.prototype = { __class__: Ep }); var Pp = function (e, t) { for (var s = new up(), n = 0, i = e.fieldsNames.length; n < i; ) { var r = n++, o = e.fieldsNames[r], a = e.fieldsTypes[r]; null != NT[o] ? s.setReserved(o, a) : (s.h[o] = a); } if (((this.read = []), e.isFinal != t.isFinal)) throw new Mp("TODO : handle final flag change"); for (var l = new up(), h = 0, _ = t.fieldsNames.length; h < _; ) { var u = h++, d = t.fieldsTypes[u], c = t.fieldsNames[u], f = null != NT[c] ? s.getReserved(c) : s.h[c], p = new Ep(d, f); null != f && (Pp.sameType(d, f) ? (p.same = !0) : (p.defaultValue = Pp.getDefault(f))), (p.index = this.read.length), this.read.push(p); var b = t.fieldsNames[u]; null != NT[b] ? l.setReserved(b, p) : (l.h[b] = p); } this.write = []; for (var m = 0, g = e.fieldsNames.length; m < g; ) { var w = m++, v = e.fieldsTypes[w], y = e.fieldsNames[w], T = null != NT[y] ? l.getReserved(y) : l.h[y]; null == T && ((T = new Ep(null, v)).defaultValue = Pp.getDefault(v)), this.write.push(T); } }; ((s["hxbit.Convert"] = Pp).__name__ = ["hxbit", "Convert"]), (Pp.sameType = function (e, t) { switch (e[1]) { case 0: switch (t[1]) { case 10: var s = t[2]; return Pp.sameType(e, s); case 16: return !0; default: return ms.enumEq(e, t); } break; case 7: switch (t[1]) { case 7: var n = e[2], i = e[3], r = t[3], o = t[2]; return !!Pp.sameType(n, o) && Pp.sameType(i, r); case 10: var a = t[2]; return Pp.sameType(e, a); default: return ms.enumEq(e, t); } break; case 8: switch (t[1]) { case 8: var l = e[2], h = t[2]; return Pp.sameType(l, h); case 10: var _ = t[2]; return Pp.sameType(e, _); default: return ms.enumEq(e, t); } break; case 9: switch (t[1]) { case 9: var u = e[2], d = t[2]; if (u.length != d.length) return !1; for (var c = 0, f = u.length; c < f; ) { var p = c++, b = u[p], m = d[p]; if ( b.name != m.name || b.opt != m.opt || !Pp.sameType(b.type, m.type) ) return !1; } return !0; case 10: var g = t[2]; return Pp.sameType(e, g); default: return ms.enumEq(e, t); } break; case 10: if (10 == t[1]) { var w = e[2], v = t[2]; return Pp.sameType(w, v); } var y = e[2]; return Pp.sameType(y, t); case 11: switch (t[1]) { case 10: var T = t[2]; return Pp.sameType(e, T); case 11: var S = e[2], x = t[2]; return Pp.sameType(S, x); default: return ms.enumEq(e, t); } break; case 12: switch (t[1]) { case 10: var E = t[2]; return Pp.sameType(e, E); case 12: var P = e[2], R = t[2]; return Pp.sameType(P, R); default: return ms.enumEq(e, t); } break; case 16: switch (t[1]) { case 0: return !0; case 10: var A = t[2]; return Pp.sameType(e, A); default: return ms.enumEq(e, t); } break; default: if (10 != t[1]) return ms.enumEq(e, t); var I = t[2]; return Pp.sameType(e, I); } }), (Pp.getDefault = function (e) { switch (e[1]) { case 1: return 0; case 2: return !1; case 7: switch (e[2][1]) { case 0: return new lp(); case 3: return new up(); default: return new hp(); } break; case 8: return []; case 3: case 4: case 5: case 6: case 9: case 12: case 13: case 14: return null; case 10: var t = e[2]; return Pp.getDefault(t); case 11: return new Array(0); case 15: return new qf(0, 0); case 0: case 16: return 0; } }), (Pp.prototype = { toString: function () { for (var e = [], t = 0, s = this.write.length; t < s; ) { var n = t++, i = this.write[n]; e.push( null == i.from ? "insert:" + Ue.string(i.defaultValue) : i.same ? n == i.index ? "s" : "@" + i.index : "@" + i.index + ":" + Ue.string(i.to) ); } return e.toString(); }, __class__: Pp, }); var Rp = (s["hxbit.RpcMode"] = { __ename__: ["hxbit", "RpcMode"], __constructs__: ["All", "Client", "Server", "Owner"], }); (Rp.All = ["All", 0]), (Rp.All.toString = c), ((Rp.All.__enum__ = Rp).Client = ["Client", 1]), (Rp.Client.toString = c), ((Rp.Client.__enum__ = Rp).Server = ["Server", 2]), (Rp.Server.toString = c), ((Rp.Server.__enum__ = Rp).Owner = ["Owner", 3]), (Rp.Owner.toString = c), (Rp.Owner.__enum__ = Rp); var Ap = (s["hxbit.PropTypeDesc"] = { __ename__: ["hxbit", "PropTypeDesc"], __constructs__: [ "PInt", "PFloat", "PBool", "PString", "PBytes", "PSerializable", "PEnum", "PMap", "PArray", "PObj", "PAlias", "PVector", "PNull", "PUnknown", "PDynamic", "PInt64", "PFlags", ], }); (Ap.PInt = ["PInt", 0]), (Ap.PInt.toString = c), ((Ap.PInt.__enum__ = Ap).PFloat = ["PFloat", 1]), (Ap.PFloat.toString = c), ((Ap.PFloat.__enum__ = Ap).PBool = ["PBool", 2]), (Ap.PBool.toString = c), ((Ap.PBool.__enum__ = Ap).PString = ["PString", 3]), (Ap.PString.toString = c), ((Ap.PString.__enum__ = Ap).PBytes = ["PBytes", 4]), (Ap.PBytes.toString = c), ((Ap.PBytes.__enum__ = Ap).PSerializable = function (e) { var t = ["PSerializable", 5, e]; return (t.__enum__ = Ap), (t.toString = c), t; }), (Ap.PEnum = function (e) { var t = ["PEnum", 6, e]; return (t.__enum__ = Ap), (t.toString = c), t; }), (Ap.PMap = function (e, t) { var s = ["PMap", 7, e, t]; return (s.__enum__ = Ap), (s.toString = c), s; }), (Ap.PArray = function (e) { var t = ["PArray", 8, e]; return (t.__enum__ = Ap), (t.toString = c), t; }), (Ap.PObj = function (e) { var t = ["PObj", 9, e]; return (t.__enum__ = Ap), (t.toString = c), t; }), (Ap.PAlias = function (e) { var t = ["PAlias", 10, e]; return (t.__enum__ = Ap), (t.toString = c), t; }), (Ap.PVector = function (e) { var t = ["PVector", 11, e]; return (t.__enum__ = Ap), (t.toString = c), t; }), (Ap.PNull = function (e) { var t = ["PNull", 12, e]; return (t.__enum__ = Ap), (t.toString = c), t; }), (Ap.PUnknown = ["PUnknown", 13]), (Ap.PUnknown.toString = c), ((Ap.PUnknown.__enum__ = Ap).PDynamic = ["PDynamic", 14]), (Ap.PDynamic.toString = c), ((Ap.PDynamic.__enum__ = Ap).PInt64 = ["PInt64", 15]), (Ap.PInt64.toString = c), ((Ap.PInt64.__enum__ = Ap).PFlags = function (e) { var t = ["PFlags", 16, e]; return (t.__enum__ = Ap), (t.toString = c), t; }); var Ip = function () {}; (s["hxbit.Macros"] = Ip).__name__ = ["hxbit", "Macros"]; var Cp = function () { (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.fieldsNames = []), (this.fieldsTypes = []); }; ((s["hxbit.Schema"] = Cp).__name__ = ["hxbit", "Schema"]), (Cp.__interfaces__ = [br]), (Cp.prototype = { get_checkSum: function () { var e = new mr(); e.begin(); var t = this.__uid; (this.__uid = 0), e.addKnownRef(this), (this.__uid = t); var s = e.end(); return np.make(s); }, getCLID: function () { return Cp.__clid; }, serialize: function (e) { e.out.b.push(this.isFinal ? 1 : 0); var t = this.fieldsNames; if (null == t) e.out.b.push(0); else { var s = t.length + 1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); for (var n = 0; n < t.length; ) { var i = t[n]; if ((++n, null == i)) e.out.b.push(0); else { var r = Lf.ofString(i), o = r.length + 1; 0 <= o && o < 128 ? e.out.b.push(o) : (e.out.b.push(128), e.out.addInt32(o)); for ( var a = e.out, l = (a.b, r.b), h = 0, _ = r.length; h < _; ) { var u = h++; a.b.push(l[u]); } } } } var d = this.fieldsTypes; if (null == d) e.out.b.push(0); else { var c = d.length + 1; 0 <= c && c < 128 ? e.out.b.push(c) : (e.out.b.push(128), e.out.addInt32(c)); for (var f = 0; f < d.length; ) { var p = d[f]; ++f, Fp.doSerialize(e, p); } } }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("isFinal"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("fieldsNames"), e.fieldsTypes.push(Ap.PArray(Ap.PString)), e.fieldsNames.push("fieldsTypes"), e.fieldsTypes.push(Ap.PArray(Ap.PEnum("hxbit.PropTypeDesc"))), (e.isFinal = mr.isClassFinal(Cp.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t; this.isFinal = 0 != e.input.b[e.inPos++]; var s = e.input.b[e.inPos++]; 128 == s && ((s = e.input.getInt32(e.inPos)), (e.inPos += 4)); var n, i, r = s; if (0 == r) n = null; else { for (var o = [], a = 0, l = --r; a < l; ) { var h = a++, _ = e.input.b[e.inPos++]; 128 == _ && ((_ = e.input.getInt32(e.inPos)), (e.inPos += 4)); var u = _; if (0 == u) t = null; else { --u; var d = e.input.getString(e.inPos, u); (e.inPos += u), (t = d); } o[h] = t; } n = o; } this.fieldsNames = n; var c = e.input.b[e.inPos++]; 128 == c && ((c = e.input.getInt32(e.inPos)), (e.inPos += 4)); var f, p = c; if (0 == p) f = null; else { for (var b = [], m = 0, g = --p; m < g; ) { var w = m++; (i = Fp.doUnserialize(e)), (b[w] = i); } f = b; } this.fieldsTypes = f; }, __class__: Cp, __properties__: { get_checkSum: "get_checkSum" }, }); var Bp = function () {}; (s["hxbit.SerializableEnum"] = Bp).__name__ = ["hxbit", "SerializableEnum"]; var Dp = function () {}; ((s["hxbit.enumSer.format_swf_exporters_core_FilterType"] = Dp).__name__ = [ "hxbit", "enumSer", "format_swf_exporters_core_FilterType", ]), (Dp.doSerialize = function (e, t) { if (null == t) e.out.b.push(0); else switch (t[1]) { case 0: var s = t[4], n = t[3], i = t[2]; e.out.b.push(1), e.out.addInt32(bp.floatToI32(i)), e.out.addInt32(bp.floatToI32(n)), 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); break; case 1: var r = t[3], o = t[2]; e.out.b.push(2), e.addKnownRef(o), e.addKnownRef(r); break; case 2: var a = t[12], l = t[11], h = t[10], _ = t[9], u = t[8], d = t[7], c = t[6], f = t[5], p = t[4], b = t[3], m = t[2]; e.out.b.push(3), e.out.addInt32(bp.floatToI32(m)), e.out.addInt32(bp.floatToI32(b)), 0 <= p && p < 128 ? e.out.b.push(p) : (e.out.b.push(128), e.out.addInt32(p)), e.out.addInt32(bp.floatToI32(f)), e.out.addInt32(bp.floatToI32(c)), e.out.addInt32(bp.floatToI32(d)), e.out.addInt32(bp.floatToI32(u)), 0 <= _ && _ < 128 ? e.out.b.push(_) : (e.out.b.push(128), e.out.addInt32(_)), e.out.b.push(h ? 1 : 0), e.out.b.push(l ? 1 : 0), e.out.b.push(a ? 1 : 0); break; case 3: var g = t[9], w = t[8], v = t[7], y = t[6], T = t[5], S = t[4], x = t[3], E = t[2]; e.out.b.push(4), 0 <= E && E < 128 ? e.out.b.push(E) : (e.out.b.push(128), e.out.addInt32(E)), e.out.addInt32(bp.floatToI32(x)), e.out.addInt32(bp.floatToI32(S)), e.out.addInt32(bp.floatToI32(T)), e.out.addInt32(bp.floatToI32(y)), 0 <= v && v < 128 ? e.out.b.push(v) : (e.out.b.push(128), e.out.addInt32(v)), e.out.b.push(w ? 1 : 0), e.out.b.push(g ? 1 : 0); break; case 4: var P = t[12], R = t[11], A = t[10], I = t[9], C = t[8], B = t[7], D = t[6], k = t[5], F = t[4], M = t[3], L = t[2]; if ( (e.out.b.push(5), e.out.addInt32(bp.floatToI32(L)), e.out.addInt32(bp.floatToI32(M)), null == F) ) e.out.b.push(0); else { var N = F.length + 1; 0 <= N && N < 128 ? e.out.b.push(N) : (e.out.b.push(128), e.out.addInt32(N)); for (var O = 0; O < F.length; ) { var U = F[O]; ++O, 0 <= U && U < 128 ? e.out.b.push(U) : (e.out.b.push(128), e.out.addInt32(U)); } } if (null == k) e.out.b.push(0); else { var G = k.length + 1; 0 <= G && G < 128 ? e.out.b.push(G) : (e.out.b.push(128), e.out.addInt32(G)); for (var z = 0; z < k.length; ) { var X = k[z]; ++z, e.out.addInt32(bp.floatToI32(X)); } } if (null == D) e.out.b.push(0); else { var H = D.length + 1; 0 <= H && H < 128 ? e.out.b.push(H) : (e.out.b.push(128), e.out.addInt32(H)); for (var V = 0; V < D.length; ) { var Y = D[V]; ++V, e.out.addInt32(bp.floatToI32(Y)); } } if ( (e.out.addInt32(bp.floatToI32(B)), e.out.addInt32(bp.floatToI32(C)), e.out.addInt32(bp.floatToI32(I)), 0 <= A && A < 128 ? e.out.b.push(A) : (e.out.b.push(128), e.out.addInt32(A)), null == R) ) e.out.b.push(0); else { e.out.b.push(1); var W = R; 0 <= W && W < 128 ? e.out.b.push(W) : (e.out.b.push(128), e.out.addInt32(W)); } e.out.b.push(P ? 1 : 0); break; case 5: var j = t[13], K = t[12], q = t[11], Z = t[10], J = t[9], Q = t[8], $ = t[7], ee = t[6], te = t[5], se = t[4], ne = t[3], ie = t[2]; if ( (e.out.b.push(6), e.out.addInt32(bp.floatToI32(ie)), e.out.addInt32(bp.floatToI32(ne)), 0 <= se && se < 128 ? e.out.b.push(se) : (e.out.b.push(128), e.out.addInt32(se)), e.out.addInt32(bp.floatToI32(te)), 0 <= ee && ee < 128 ? e.out.b.push(ee) : (e.out.b.push(128), e.out.addInt32(ee)), e.out.addInt32(bp.floatToI32($)), e.out.addInt32(bp.floatToI32(Q)), e.out.addInt32(bp.floatToI32(J)), e.out.addInt32(bp.floatToI32(Z)), 0 <= q && q < 128 ? e.out.b.push(q) : (e.out.b.push(128), e.out.addInt32(q)), null == K) ) e.out.b.push(0); else { e.out.b.push(1); var re = K; 0 <= re && re < 128 ? e.out.b.push(re) : (e.out.b.push(128), e.out.addInt32(re)); } e.out.b.push(j ? 1 : 0); break; case 6: var oe = t[12], ae = t[11], le = t[10], he = t[9], _e = t[8], ue = t[7], de = t[6], ce = t[5], fe = t[4], pe = t[3], be = t[2]; if ( (e.out.b.push(7), e.out.addInt32(bp.floatToI32(be)), e.out.addInt32(bp.floatToI32(pe)), null == fe) ) e.out.b.push(0); else { var me = fe.length + 1; 0 <= me && me < 128 ? e.out.b.push(me) : (e.out.b.push(128), e.out.addInt32(me)); for (var ge = 0; ge < fe.length; ) { var we = fe[ge]; ++ge, 0 <= we && we < 128 ? e.out.b.push(we) : (e.out.b.push(128), e.out.addInt32(we)); } } if (null == ce) e.out.b.push(0); else { var ve = ce.length + 1; 0 <= ve && ve < 128 ? e.out.b.push(ve) : (e.out.b.push(128), e.out.addInt32(ve)); for (var ye = 0; ye < ce.length; ) { var Te = ce[ye]; ++ye, e.out.addInt32(bp.floatToI32(Te)); } } if (null == de) e.out.b.push(0); else { var Se = de.length + 1; 0 <= Se && Se < 128 ? e.out.b.push(Se) : (e.out.b.push(128), e.out.addInt32(Se)); for (var xe = 0; xe < de.length; ) { var Ee = de[xe]; ++xe, e.out.addInt32(bp.floatToI32(Ee)); } } if ( (e.out.addInt32(bp.floatToI32(ue)), e.out.addInt32(bp.floatToI32(_e)), e.out.addInt32(bp.floatToI32(he)), 0 <= le && le < 128 ? e.out.b.push(le) : (e.out.b.push(128), e.out.addInt32(le)), null == ae) ) e.out.b.push(0); else { e.out.b.push(1); var Pe = ae; 0 <= Pe && Pe < 128 ? e.out.b.push(Pe) : (e.out.b.push(128), e.out.addInt32(Pe)); } e.out.b.push(oe ? 1 : 0); } }), (Dp.doUnserialize = function (e) { var t = e.input.b[e.inPos++]; if (0 == t) return null; switch (t) { case 1: var s, n, i = e.input.getFloat(e.inPos); (e.inPos += 4), (s = i); var r, o = e.input.getFloat(e.inPos); (e.inPos += 4), (n = o); var a = e.input.b[e.inPos++]; return ( 128 == a && ((a = e.input.getInt32(e.inPos)), (e.inPos += 4)), (r = a), ma.BlurFilter(s, n, r) ); case 2: var l = e.getRef(Jy, Jy.__clid), h = e.getRef(Jy, Jy.__clid); return ma.ColorMatrixFilter(l, h); case 3: var _, u, d = e.input.getFloat(e.inPos); (e.inPos += 4), (_ = d); var c, f = e.input.getFloat(e.inPos); (e.inPos += 4), (u = f); var p, b = e.input.b[e.inPos++]; 128 == b && ((b = e.input.getInt32(e.inPos)), (e.inPos += 4)), (c = b); var m, g = e.input.getFloat(e.inPos); (e.inPos += 4), (p = g); var w, v = e.input.getFloat(e.inPos); (e.inPos += 4), (m = v); var y, T = e.input.getFloat(e.inPos); (e.inPos += 4), (w = T); var S, x = e.input.getFloat(e.inPos); (e.inPos += 4), (y = x); var E = e.input.b[e.inPos++]; 128 == E && ((E = e.input.getInt32(e.inPos)), (e.inPos += 4)), (S = E); var P = 0 != e.input.b[e.inPos++], R = 0 != e.input.b[e.inPos++], A = 0 != e.input.b[e.inPos++]; return ma.DropShadowFilter(_, u, c, p, m, w, y, S, P, R, A); case 4: var I, C, B = e.input.b[e.inPos++]; 128 == B && ((B = e.input.getInt32(e.inPos)), (e.inPos += 4)), (I = B); var D, k = e.input.getFloat(e.inPos); (e.inPos += 4), (C = k); var F, M = e.input.getFloat(e.inPos); (e.inPos += 4), (D = M); var L, N = e.input.getFloat(e.inPos); (e.inPos += 4), (F = N); var O, U = e.input.getFloat(e.inPos); (e.inPos += 4), (L = U); var G = e.input.b[e.inPos++]; 128 == G && ((G = e.input.getInt32(e.inPos)), (e.inPos += 4)), (O = G); var z = 0 != e.input.b[e.inPos++], X = 0 != e.input.b[e.inPos++]; return ma.GlowFilter(I, C, D, F, L, O, z, X); case 5: var H, V, Y = e.input.getFloat(e.inPos); (e.inPos += 4), (H = Y); var W, j, K = e.input.getFloat(e.inPos); (e.inPos += 4), (V = K); var q = e.input.b[e.inPos++]; 128 == q && ((q = e.input.getInt32(e.inPos)), (e.inPos += 4)); var Z, J, Q = q; if (0 == Q) W = null; else { for (var $ = [], ee = 0, te = --Q; ee < te; ) { var se = ee++, ne = e.input.b[e.inPos++]; 128 == ne && ((ne = e.input.getInt32(e.inPos)), (e.inPos += 4)), (j = ne), ($[se] = j); } W = $; } var ie = e.input.b[e.inPos++]; 128 == ie && ((ie = e.input.getInt32(e.inPos)), (e.inPos += 4)); var re, oe, ae = ie; if (0 == ae) Z = null; else { for (var le = [], he = 0, _e = --ae; he < _e; ) { var ue = he++, de = e.input.getFloat(e.inPos); (e.inPos += 4), (J = de), (le[ue] = J); } Z = le; } var ce = e.input.b[e.inPos++]; 128 == ce && ((ce = e.input.getInt32(e.inPos)), (e.inPos += 4)); var fe, pe = ce; if (0 == pe) re = null; else { for (var be = [], me = 0, ge = --pe; me < ge; ) { var we = me++, ve = e.input.getFloat(e.inPos); (e.inPos += 4), (oe = ve), (be[we] = oe); } re = be; } var ye, Te = e.input.getFloat(e.inPos); (e.inPos += 4), (fe = Te); var Se, xe = e.input.getFloat(e.inPos); (e.inPos += 4), (ye = xe); var Ee, Pe = e.input.getFloat(e.inPos); (e.inPos += 4), (Se = Pe); var Re, Ae, Ie = e.input.b[e.inPos++]; if ( (128 == Ie && ((Ie = e.input.getInt32(e.inPos)), (e.inPos += 4)), (Ee = Ie), 0 == e.input.b[e.inPos++]) ) Ae = null; else { var Ce = e.input.b[e.inPos++]; 128 == Ce && ((Ce = e.input.getInt32(e.inPos)), (e.inPos += 4)), (Ae = Ce); } Re = Ae; var Be = 0 != e.input.b[e.inPos++]; return ma.GradientGlowFilter(H, V, W, Z, re, fe, ye, Se, Ee, Re, Be); case 6: var De, ke, Fe = e.input.getFloat(e.inPos); (e.inPos += 4), (De = Fe); var Me, Le = e.input.getFloat(e.inPos); (e.inPos += 4), (ke = Le); var Ne, Oe = e.input.b[e.inPos++]; 128 == Oe && ((Oe = e.input.getInt32(e.inPos)), (e.inPos += 4)), (Me = Oe); var Ue, Ge = e.input.getFloat(e.inPos); (e.inPos += 4), (Ne = Ge); var ze, Xe = e.input.b[e.inPos++]; 128 == Xe && ((Xe = e.input.getInt32(e.inPos)), (e.inPos += 4)), (Ue = Xe); var He, Ve = e.input.getFloat(e.inPos); (e.inPos += 4), (ze = Ve); var Ye, We = e.input.getFloat(e.inPos); (e.inPos += 4), (He = We); var je, Ke = e.input.getFloat(e.inPos); (e.inPos += 4), (Ye = Ke); var qe, Ze = e.input.getFloat(e.inPos); (e.inPos += 4), (je = Ze); var Je, Qe, $e = e.input.b[e.inPos++]; if ( (128 == $e && (($e = e.input.getInt32(e.inPos)), (e.inPos += 4)), (qe = $e), 0 == e.input.b[e.inPos++]) ) Qe = null; else { var et = e.input.b[e.inPos++]; 128 == et && ((et = e.input.getInt32(e.inPos)), (e.inPos += 4)), (Qe = et); } Je = Qe; var tt = 0 != e.input.b[e.inPos++]; return ma.BevelFilter(De, ke, Me, Ne, Ue, ze, He, Ye, je, qe, Je, tt); case 7: var st, nt, it = e.input.getFloat(e.inPos); (e.inPos += 4), (st = it); var rt, ot, at = e.input.getFloat(e.inPos); (e.inPos += 4), (nt = at); var lt = e.input.b[e.inPos++]; 128 == lt && ((lt = e.input.getInt32(e.inPos)), (e.inPos += 4)); var ht, _t, ut = lt; if (0 == ut) rt = null; else { for (var dt = [], ct = 0, ft = --ut; ct < ft; ) { var pt = ct++, bt = e.input.b[e.inPos++]; 128 == bt && ((bt = e.input.getInt32(e.inPos)), (e.inPos += 4)), (ot = bt), (dt[pt] = ot); } rt = dt; } var mt = e.input.b[e.inPos++]; 128 == mt && ((mt = e.input.getInt32(e.inPos)), (e.inPos += 4)); var gt, wt, vt = mt; if (0 == vt) ht = null; else { for (var yt = [], Tt = 0, St = --vt; Tt < St; ) { var xt = Tt++, Et = e.input.getFloat(e.inPos); (e.inPos += 4), (_t = Et), (yt[xt] = _t); } ht = yt; } var Pt = e.input.b[e.inPos++]; 128 == Pt && ((Pt = e.input.getInt32(e.inPos)), (e.inPos += 4)); var Rt, At = Pt; if (0 == At) gt = null; else { for (var It = [], Ct = 0, Bt = --At; Ct < Bt; ) { var Dt = Ct++, kt = e.input.getFloat(e.inPos); (e.inPos += 4), (wt = kt), (It[Dt] = wt); } gt = It; } var Ft, Mt = e.input.getFloat(e.inPos); (e.inPos += 4), (Rt = Mt); var Lt, Nt = e.input.getFloat(e.inPos); (e.inPos += 4), (Ft = Nt); var Ot, Ut = e.input.getFloat(e.inPos); (e.inPos += 4), (Lt = Ut); var Gt, zt, Xt = e.input.b[e.inPos++]; if ( (128 == Xt && ((Xt = e.input.getInt32(e.inPos)), (e.inPos += 4)), (Ot = Xt), 0 == e.input.b[e.inPos++]) ) zt = null; else { var Ht = e.input.b[e.inPos++]; 128 == Ht && ((Ht = e.input.getInt32(e.inPos)), (e.inPos += 4)), (zt = Ht); } Gt = zt; var Vt = 0 != e.input.b[e.inPos++]; return ma.GradientBevelFilter( st, nt, rt, ht, gt, Rt, Ft, Lt, Ot, Gt, Vt ); default: throw new Mp("Invalid enum index " + t); } }), (Dp.getSchema = function () { for ( var e = new Cp(), t = e.fieldsTypes, s = [], n = 0, i = [Ap.PInt]; n < i.length; ) { var r = i[n]; ++n, s.push({ name: "", type: r, opt: !1 }); } t.push(Ap.PObj(s)), e.fieldsNames.push("BlurFilter"); for ( var o = e.fieldsTypes, a = [], l = 0, h = [Ap.PSerializable("openfl.utils.Float32ArrayContainer")]; l < h.length; ) { var _ = h[l]; ++l, a.push({ name: "", type: _, opt: !1 }); } o.push(Ap.PObj(a)), e.fieldsNames.push("ColorMatrixFilter"); for ( var u = e.fieldsTypes, d = [], c = 0, f = [Ap.PBool]; c < f.length; ) { var p = f[c]; ++c, d.push({ name: "", type: p, opt: !1 }); } u.push(Ap.PObj(d)), e.fieldsNames.push("DropShadowFilter"); for ( var b = e.fieldsTypes, m = [], g = 0, w = [Ap.PBool]; g < w.length; ) { var v = w[g]; ++g, m.push({ name: "", type: v, opt: !1 }); } b.push(Ap.PObj(m)), e.fieldsNames.push("GlowFilter"); for ( var y = e.fieldsTypes, T = [], S = 0, x = [Ap.PBool]; S < x.length; ) { var E = x[S]; ++S, T.push({ name: "", type: E, opt: !1 }); } y.push(Ap.PObj(T)), e.fieldsNames.push("GradientGlowFilter"); for ( var P = e.fieldsTypes, R = [], A = 0, I = [Ap.PBool]; A < I.length; ) { var C = I[A]; ++A, R.push({ name: "", type: C, opt: !1 }); } P.push(Ap.PObj(R)), e.fieldsNames.push("BevelFilter"); for ( var B = e.fieldsTypes, D = [], k = 0, F = [Ap.PBool]; k < F.length; ) { var M = F[k]; ++k, D.push({ name: "", type: M, opt: !1 }); } return B.push(Ap.PObj(D)), e.fieldsNames.push("GradientBevelFilter"), e; }); var kp = function () {}; ((s["hxbit.enumSer.format_swf_lite_timeline_FrameObjectType"] = kp).__name__ = ["hxbit", "enumSer", "format_swf_lite_timeline_FrameObjectType"]), (kp.doSerialize = function (e, t) { if (null == t) e.out.b.push(0); else switch (t[1]) { case 0: e.out.b.push(1); break; case 1: e.out.b.push(2); break; case 2: e.out.b.push(3); break; case 3: e.out.b.push(4); } }), (kp.doUnserialize = function (e) { var t = e.input.b[e.inPos++]; if (0 == t) return null; switch (t) { case 1: return $a.CREATE; case 2: return $a.UPDATE; case 3: return $a.UPDATE_CHARACTER; case 4: return $a.DESTROY; default: throw new Mp("Invalid enum index " + t); } }), (kp.getSchema = function () { var e = new Cp(); return ( e.fieldsTypes.push(null), e.fieldsNames.push("CREATE"), e.fieldsTypes.push(null), e.fieldsNames.push("UPDATE"), e.fieldsTypes.push(null), e.fieldsNames.push("UPDATE_CHARACTER"), e.fieldsTypes.push(null), e.fieldsNames.push("DESTROY"), e ); }); var Fp = function () {}; ((s["hxbit.enumSer.hxbit_PropTypeDesc"] = Fp).__name__ = [ "hxbit", "enumSer", "hxbit_PropTypeDesc", ]), (Fp.doSerialize = function (e, t) { if (null == t) e.out.b.push(0); else switch (t[1]) { case 0: e.out.b.push(1); break; case 1: e.out.b.push(2); break; case 2: e.out.b.push(3); break; case 3: e.out.b.push(4); break; case 4: e.out.b.push(5); break; case 5: var s = t[2]; if ((e.out.b.push(6), null == s)) e.out.b.push(0); else { var n = Lf.ofString(s), i = n.length + 1; 0 <= i && i < 128 ? e.out.b.push(i) : (e.out.b.push(128), e.out.addInt32(i)); for ( var r = e.out, o = (r.b, n.b), a = 0, l = n.length; a < l; ) { var h = a++; r.b.push(o[h]); } } break; case 6: var _ = t[2]; if ((e.out.b.push(7), null == _)) e.out.b.push(0); else { var u = Lf.ofString(_), d = u.length + 1; 0 <= d && d < 128 ? e.out.b.push(d) : (e.out.b.push(128), e.out.addInt32(d)); for ( var c = e.out, f = (c.b, u.b), p = 0, b = u.length; p < b; ) { var m = p++; c.b.push(f[m]); } } break; case 7: var g = t[3], w = t[2]; e.out.b.push(8), Fp.doSerialize(e, w), Fp.doSerialize(e, g); break; case 8: var v = t[2]; e.out.b.push(9), Fp.doSerialize(e, v); break; case 9: var y = t[2]; if ((e.out.b.push(10), null == y)) e.out.b.push(0); else { var T = y.length + 1; 0 <= T && T < 128 ? e.out.b.push(T) : (e.out.b.push(128), e.out.addInt32(T)); for (var S = 0; S < y.length; ) { var x = y[S]; ++S; var E = x; if (null == E) e.out.b.push(0); else { var P = 0; null != E.name && (P |= 1), null != E.type && (P |= 2); var R = P + 1; if ( (0 <= R && R < 128 ? e.out.b.push(R) : (e.out.b.push(128), e.out.addInt32(R)), 0 != (1 & P)) ) { var A = E.name; if (null == A) e.out.b.push(0); else { var I = Lf.ofString(A), C = I.length + 1; 0 <= C && C < 128 ? e.out.b.push(C) : (e.out.b.push(128), e.out.addInt32(C)); for ( var B = e.out, D = (B.b, I.b), k = 0, F = I.length; k < F; ) { var M = k++; B.b.push(D[M]); } } } e.out.b.push(E.opt ? 1 : 0), 0 != (2 & P) && Fp.doSerialize(e, E.type); } } } break; case 10: var L = t[2]; e.out.b.push(11), Fp.doSerialize(e, L); break; case 11: var N = t[2]; e.out.b.push(12), Fp.doSerialize(e, N); break; case 12: var O = t[2]; e.out.b.push(13), Fp.doSerialize(e, O); break; case 13: e.out.b.push(14); break; case 14: e.out.b.push(15); break; case 15: e.out.b.push(16); break; case 16: var U = t[2]; e.out.b.push(17), Fp.doSerialize(e, U); } }), (Fp.doUnserialize = function (e) { var t = e.input.b[e.inPos++]; if (0 == t) return null; switch (t) { case 1: return Ap.PInt; case 2: return Ap.PFloat; case 3: return Ap.PBool; case 4: return Ap.PString; case 5: return Ap.PBytes; case 6: var s, n = e.input.b[e.inPos++]; 128 == n && ((n = e.input.getInt32(e.inPos)), (e.inPos += 4)); var i = n; if (0 == i) s = null; else { --i; var r = e.input.getString(e.inPos, i); (e.inPos += i), (s = r); } return Ap.PSerializable(s); case 7: var o, a = e.input.b[e.inPos++]; 128 == a && ((a = e.input.getInt32(e.inPos)), (e.inPos += 4)); var l = a; if (0 == l) o = null; else { --l; var h = e.input.getString(e.inPos, l); (e.inPos += l), (o = h); } return Ap.PEnum(o); case 8: var _, u; return ( (_ = Fp.doUnserialize(e)), (u = Fp.doUnserialize(e)), Ap.PMap(_, u) ); case 9: var d; return (d = Fp.doUnserialize(e)), Ap.PArray(d); case 10: var c, f, p = e.input.b[e.inPos++]; 128 == p && ((p = e.input.getInt32(e.inPos)), (e.inPos += 4)); var b = p; if (0 == b) c = null; else { for (var m = [], g = 0, w = --b; g < w; ) { var v = g++, y = e.input.b[e.inPos++]; 128 == y && ((y = e.input.getInt32(e.inPos)), (e.inPos += 4)); var T = y; if (0 == T) f = null; else { var S, x = null, E = null; if (0 != (1 & --T)) { var P = e.input.b[e.inPos++]; 128 == P && ((P = e.input.getInt32(e.inPos)), (e.inPos += 4)); var R = P; if (0 == R) E = null; else { --R; var A = e.input.getString(e.inPos, R); (e.inPos += R), (E = A); } } if (((S = 0 != e.input.b[e.inPos++]), 0 != (2 & T))) x = Fp.doUnserialize(e); f = { name: E, opt: S, type: x }; } m[v] = f; } c = m; } return Ap.PObj(c); case 11: var I; return (I = Fp.doUnserialize(e)), Ap.PAlias(I); case 12: var C; return (C = Fp.doUnserialize(e)), Ap.PVector(C); case 13: var B; return (B = Fp.doUnserialize(e)), Ap.PNull(B); case 14: return Ap.PUnknown; case 15: return Ap.PDynamic; case 16: return Ap.PInt64; case 17: var D; return (D = Fp.doUnserialize(e)), Ap.PFlags(D); default: throw new Mp("Invalid enum index " + t); } }), (Fp.getSchema = function () { var e = new Cp(); e.fieldsTypes.push(null), e.fieldsNames.push("PInt"), e.fieldsTypes.push(null), e.fieldsNames.push("PFloat"), e.fieldsTypes.push(null), e.fieldsNames.push("PBool"), e.fieldsTypes.push(null), e.fieldsNames.push("PString"), e.fieldsTypes.push(null), e.fieldsNames.push("PBytes"); for ( var t = e.fieldsTypes, s = [], n = 0, i = [Ap.PString]; n < i.length; ) { var r = i[n]; ++n, s.push({ name: "", type: r, opt: !1 }); } t.push(Ap.PObj(s)), e.fieldsNames.push("PSerializable"); for ( var o = e.fieldsTypes, a = [], l = 0, h = [Ap.PString]; l < h.length; ) { var _ = h[l]; ++l, a.push({ name: "", type: _, opt: !1 }); } o.push(Ap.PObj(a)), e.fieldsNames.push("PEnum"); for ( var u = e.fieldsTypes, d = [], c = 0, f = [Ap.PEnum("hxbit.PropTypeDesc")]; c < f.length; ) { var p = f[c]; ++c, d.push({ name: "", type: p, opt: !1 }); } u.push(Ap.PObj(d)), e.fieldsNames.push("PMap"); for ( var b = e.fieldsTypes, m = [], g = 0, w = [Ap.PEnum("hxbit.PropTypeDesc")]; g < w.length; ) { var v = w[g]; ++g, m.push({ name: "", type: v, opt: !1 }); } b.push(Ap.PObj(m)), e.fieldsNames.push("PArray"); for ( var y = e.fieldsTypes, T = [], S = 0, x = [ Ap.PArray( Ap.PObj([ { opt: !1, type: Ap.PString, name: "name" }, { opt: !1, type: Ap.PBool, name: "opt" }, { opt: !1, type: Ap.PEnum("hxbit.PropTypeDesc"), name: "type" }, ]) ), ]; S < x.length; ) { var E = x[S]; ++S, T.push({ name: "", type: E, opt: !1 }); } y.push(Ap.PObj(T)), e.fieldsNames.push("PObj"); for ( var P = e.fieldsTypes, R = [], A = 0, I = [Ap.PEnum("hxbit.PropTypeDesc")]; A < I.length; ) { var C = I[A]; ++A, R.push({ name: "", type: C, opt: !1 }); } P.push(Ap.PObj(R)), e.fieldsNames.push("PAlias"); for ( var B = e.fieldsTypes, D = [], k = 0, F = [Ap.PEnum("hxbit.PropTypeDesc")]; k < F.length; ) { var M = F[k]; ++k, D.push({ name: "", type: M, opt: !1 }); } B.push(Ap.PObj(D)), e.fieldsNames.push("PVector"); for ( var L = e.fieldsTypes, N = [], O = 0, U = [Ap.PEnum("hxbit.PropTypeDesc")]; O < U.length; ) { var G = U[O]; ++O, N.push({ name: "", type: G, opt: !1 }); } L.push(Ap.PObj(N)), e.fieldsNames.push("PNull"), e.fieldsTypes.push(null), e.fieldsNames.push("PUnknown"), e.fieldsTypes.push(null), e.fieldsNames.push("PDynamic"), e.fieldsTypes.push(null), e.fieldsNames.push("PInt64"); for ( var z = e.fieldsTypes, X = [], H = 0, V = [Ap.PEnum("hxbit.PropTypeDesc")]; H < V.length; ) { var Y = V[H]; ++H, X.push({ name: "", type: Y, opt: !1 }); } return z.push(Ap.PObj(X)), e.fieldsNames.push("PFlags"), e; }); var Mp = function (e) { Error.call(this), (this.val = e), (this.message = String(e)), Error.captureStackTrace && Error.captureStackTrace(this, Mp); }; ((s["js._Boot.HaxeError"] = Mp).__name__ = ["js", "_Boot", "HaxeError"]), (Mp.wrap = function (e) { return e instanceof Error ? e : new Mp(e); }), (Mp.__super__ = Error), (Mp.prototype = n(Error.prototype, { __class__: Mp })); var Lp = function () {}; ((s["js.Boot"] = Lp).__name__ = ["js", "Boot"]), (Lp.__unhtml = function (e) { return e .split("&") .join("&") .split("<") .join("<") .split(">") .join(">"); }), (Lp.__trace = function (e, t) { var s, n = null != t ? t.fileName + ":" + t.lineNumber + ": " : ""; if (((n += Lp.__string_rec(e, "")), null != t && null != t.customParams)) for (var i = 0, r = t.customParams; i < r.length; ) { var o = r[i]; ++i, (n += "," + Lp.__string_rec(o, "")); } "undefined" != typeof document && null != (s = document.getElementById("haxe:trace")) ? (s.innerHTML += Lp.__unhtml(n) + "
    ") : "undefined" != typeof console && null != console.log && console.log(n); }), (Lp.getClass = function (e) { if (e instanceof Array && null == e.__enum__) return Array; var t = e.__class__; if (null != t) return t; var s = Lp.__nativeClassName(e); return null != s ? Lp.__resolveNativeClass(s) : null; }), (Lp.__string_rec = function (e, t) { if (null == e) return "null"; if (5 <= t.length) return "<...>"; var s = typeof e; switch ( ("function" == s && (e.__name__ || e.__ename__) && (s = "object"), s) ) { case "function": return ""; case "object": if (e instanceof Array) { if (e.__enum__) { if (2 == e.length) return e[0]; var n = e[0] + "("; t += "\t"; for (var i = 2, r = e.length; i < r; ) { var o = i++; n += 2 != o ? "," + Lp.__string_rec(e[o], t) : Lp.__string_rec(e[o], t); } return n + ")"; } var a = "["; t += "\t"; for (var l = 0, h = e.length; l < h; ) { var _ = l++; a += (0 < _ ? "," : "") + Lp.__string_rec(e[_], t); } return (a += "]"); } var u; try { u = e.toString; } catch (e) { return (jf.lastException = e), "???"; } if (null != u && u != Object.toString && "function" == typeof u) { var d = e.toString(); if ("[object Object]" != d) return d; } var c = null, f = "{\n"; t += "\t"; var p = null != e.hasOwnProperty; for (var c in e) (p && !e.hasOwnProperty(c)) || ("prototype" != c && "__class__" != c && "__super__" != c && "__interfaces__" != c && "__properties__" != c && (2 != f.length && (f += ", \n"), (f += t + c + " : " + Lp.__string_rec(e[c], t)))); return (f += "\n" + (t = t.substring(1)) + "}"); case "string": return e; default: return String(e); } }), (Lp.__interfLoop = function (e, t) { if (null == e) return !1; if (e == t) return !0; var s = e.__interfaces__; if (null != s) for (var n = 0, i = s.length; n < i; ) { var r = s[n++]; if (r == t || Lp.__interfLoop(r, t)) return !0; } return Lp.__interfLoop(e.__super__, t); }), (Lp.__instanceof = function (e, t) { if (null == t) return !1; switch (t) { case Array: return e instanceof Array && null == e.__enum__; case FT: return "boolean" == typeof e; case DT: return !0; case kT: return "number" == typeof e; case BT: return "number" == typeof e && (0 | e) === e; case String: return "string" == typeof e; default: if (null == e) return !1; if ("function" == typeof t) { if (e instanceof t) return !0; if (Lp.__interfLoop(Lp.getClass(e), t)) return !0; } else if ( "object" == typeof t && Lp.__isNativeObj(t) && e instanceof t ) return !0; return ( (t == MT && null != e.__name__) || (t == LT && null != e.__ename__) || e.__enum__ == t ); } }), (Lp.__cast = function (e, t) { if (Lp.__instanceof(e, t)) return e; throw new Mp("Cannot cast " + Ue.string(e) + " to " + Ue.string(t)); }), (Lp.__nativeClassName = function (e) { var t = Lp.__toStr.call(e).slice(8, -1); return "Object" == t || "Function" == t || "Math" == t || "JSON" == t ? null : t; }), (Lp.__isNativeObj = function (e) { return null != Lp.__nativeClassName(e); }), (Lp.__resolveNativeClass = function (e) { return t[e]; }); var Np = function () {}; ((s["js.Browser"] = Np).__name__ = ["js", "Browser"]), (Np.getLocalStorage = function () { try { var e = window.localStorage; return e.getItem(""), e; } catch (e) { return (jf.lastException = e), null; } }), (Np.alert = function (e) { window.alert(Lp.__string_rec(e, "")); }); var Op = function () {}; ((s["js.html._CanvasElement.CanvasUtil"] = Op).__name__ = [ "js", "html", "_CanvasElement", "CanvasUtil", ]), (Op.getContextWebGL = function (e, t) { for (var s = 0, n = ["webgl", "experimental-webgl"]; s < n.length; ) { var i = n[s]; ++s; var r = e.getContext(i, t); if (null != r) return r; } return null; }); var Up = function (e) { if (e instanceof Array && null == e.__enum__) (this.a = e), (this.byteLength = e.length); else { var t = e; this.a = []; for (var s = 0, n = t; s < n; ) { var i = s++; this.a[i] = 0; } this.byteLength = t; } }; ((s["js.html.compat.ArrayBuffer"] = Up).__name__ = [ "js", "html", "compat", "ArrayBuffer", ]), (Up.sliceImpl = function (e, t) { var s = new zT(this, e, null == t ? null : t - e), n = new OT(s.byteLength); return new zT(n).set(s), n; }), (Up.prototype = { slice: function (e, t) { return new Up(this.a.slice(e, t)); }, __class__: Up, }); var Gp = function (e, t, s) { if ( ((this.buf = e), (this.offset = null == t ? 0 : t), (this.length = null == s ? e.byteLength - this.offset : s), this.offset < 0 || this.length < 0 || this.offset + this.length > e.byteLength) ) throw new Mp(pp.OutsideBounds); (this.byteLength = this.length), (this.byteOffset = this.offset), (this.buffer = this.buf); }; ((s["js.html.compat.DataView"] = Gp).__name__ = [ "js", "html", "compat", "DataView", ]), (Gp.prototype = { getInt8: function (e) { var t = this.buf.a[this.offset + e]; return 128 <= t ? t - 256 : t; }, getUint8: function (e) { return this.buf.a[this.offset + e]; }, getInt16: function (e, t) { var s = this.getUint16(e, t); return 32768 <= s ? s - 65536 : s; }, getUint16: function (e, t) { return t ? this.buf.a[this.offset + e] | (this.buf.a[this.offset + e + 1] << 8) : (this.buf.a[this.offset + e] << 8) | this.buf.a[this.offset + e + 1]; }, getInt32: function (e, t) { var s = this.offset + e, n = this.buf.a[s++], i = this.buf.a[s++], r = this.buf.a[s++], o = this.buf.a[s++]; return t ? n | (i << 8) | (r << 16) | (o << 24) : o | (r << 8) | (i << 16) | (n << 24); }, getUint32: function (e, t) { var s = this.getInt32(e, t); return s < 0 ? s + 4294967296 : s; }, getFloat32: function (e, t) { return bp.i32ToFloat(this.getInt32(e, t)); }, getFloat64: function (e, t) { var s = this.getInt32(e, t), n = this.getInt32(e + 4, t); return bp.i64ToDouble(t ? s : n, t ? n : s); }, setInt8: function (e, t) { this.buf.a[e + this.offset] = t < 0 ? (t + 128) & 255 : 255 & t; }, setUint8: function (e, t) { this.buf.a[e + this.offset] = 255 & t; }, setInt16: function (e, t, s) { this.setUint16(e, t < 0 ? t + 65536 : t, s); }, setUint16: function (e, t, s) { var n = e + this.offset; s ? ((this.buf.a[n] = 255 & t), (this.buf.a[n++] = (t >> 8) & 255)) : ((this.buf.a[n++] = (t >> 8) & 255), (this.buf.a[n] = 255 & t)); }, setInt32: function (e, t, s) { this.setUint32(e, t, s); }, setUint32: function (e, t, s) { var n = e + this.offset; this.buf.a[n++] = s ? ((this.buf.a[n++] = 255 & t), (this.buf.a[n++] = (t >> 8) & 255), (this.buf.a[n++] = (t >> 16) & 255), t >>> 24) : ((this.buf.a[n++] = t >>> 24), (this.buf.a[n++] = (t >> 16) & 255), (this.buf.a[n++] = (t >> 8) & 255), 255 & t); }, setFloat32: function (e, t, s) { this.setUint32(e, bp.floatToI32(t), s); }, setFloat64: function (e, t, s) { var n = bp.doubleToI64(t); s ? (this.setUint32(e, n.low), this.setUint32(e, n.high)) : (this.setUint32(e, n.high), this.setUint32(e, n.low)); }, __class__: Gp, }); var zp = function () {}; ((s["js.html.compat.Float32Array"] = zp).__name__ = [ "js", "html", "compat", "Float32Array", ]), (zp._new = function (e, t, s) { var n; if ("number" == typeof e) { n = []; for (var i = 0, r = e; i < r; ) { n[i++] = 0; } n.byteLength = n.length << 2; for (var o = [], a = (n.byteOffset = 0), l = n.length << 2; a < l; ) { a++; o.push(0); } n.buffer = new Up(o); } else if (Lp.__instanceof(e, Up)) { var h = e; null == t && (t = 0), null == s && (s = (h.byteLength - t) >> 2), (n = []); for (var _ = 0, u = s; _ < u; ) { _++; var d = h.a[t++] | (h.a[t++] << 8) | (h.a[t++] << 16) | (h.a[t++] << 24); n.push(bp.i32ToFloat(d)); } (n.byteLength = n.length << 2), (n.byteOffset = t), (n.buffer = h); } else { if (!(e instanceof Array && null == e.__enum__)) throw new Mp("TODO " + Ue.string(e)); n = e.slice(); for (var c = [], f = 0; f < n.length; ) { var p = n[f]; ++f; var b = bp.floatToI32(p); c.push(255 & b), c.push((b >> 8) & 255), c.push((b >> 16) & 255), c.push(b >>> 24); } (n.byteLength = n.length << 2), (n.byteOffset = 0), (n.buffer = new Up(c)); } return (n.subarray = zp._subarray), (n.set = zp._set), n; }), (zp._set = function (e, t) { if (Lp.__instanceof(e.buffer, Up)) { var s = e; if (e.byteLength + t > this.byteLength) throw new Mp("set() outside of range"); for (var n = 0, i = e.byteLength; n < i; ) { var r = n++; this[r + t] = s[r]; } } else { if (!(e instanceof Array && null == e.__enum__)) throw new Mp("TODO"); var o = e; if (o.length + t > this.byteLength) throw new Mp("set() outside of range"); for (var a = 0, l = o.length; a < l; ) { var h = a++; this[h + t] = o[h]; } } }), (zp._subarray = function (e, t) { var s = zp._new(this.slice(e, t)); return (s.byteOffset = 4 * e), s; }); var Xp = function () {}; ((s["js.html.compat.Uint8Array"] = Xp).__name__ = [ "js", "html", "compat", "Uint8Array", ]), (Xp._new = function (e, t, s) { var n; if ("number" == typeof e) { n = []; for (var i = 0, r = e; i < r; ) { n[i++] = 0; } (n.byteLength = n.length), (n.byteOffset = 0), (n.buffer = new Up(n)); } else if (Lp.__instanceof(e, Up)) { var o = e; null == t && (t = 0), null == s && (s = o.byteLength - t), ((n = 0 == t ? o.a : o.a.slice(t, t + s)).byteLength = n.length), (n.byteOffset = t), (n.buffer = o); } else { if (!(e instanceof Array && null == e.__enum__)) throw new Mp("TODO " + Ue.string(e)); ((n = e.slice()).byteLength = n.length), (n.byteOffset = 0), (n.buffer = new Up(n)); } return (n.subarray = Xp._subarray), (n.set = Xp._set), n; }), (Xp._set = function (e, t) { if (Lp.__instanceof(e.buffer, Up)) { var s = e; if (e.byteLength + t > this.byteLength) throw new Mp("set() outside of range"); for (var n = 0, i = e.byteLength; n < i; ) { var r = n++; this[r + t] = s[r]; } } else { if (!(e instanceof Array && null == e.__enum__)) throw new Mp("TODO"); var o = e; if (o.length + t > this.byteLength) throw new Mp("set() outside of range"); for (var a = 0, l = o.length; a < l; ) { var h = a++; this[h + t] = o[h]; } } }), (Xp._subarray = function (e, t) { var s = Xp._new(this.slice(e, t)); return (s.byteOffset = e), s; }); var Hp = function () { (this.enabled = !0), (this.audio = new up()), (this.font = new up()), (this.image = new up()), (this.version = 174231); }; ((s["lime.AssetCache"] = Hp).__name__ = ["lime", "AssetCache"]), (Hp.prototype = { clear: function (e) { if (null == e) (this.audio = new up()), (this.font = new up()), (this.image = new up()); else { for (var t = this.audio.keys(); t.hasNext(); ) { var s = t.next(); Ri.startsWith(s, e) && this.audio.remove(s); } for (var n = this.font.keys(); n.hasNext(); ) { var i = n.next(); Ri.startsWith(i, e) && this.font.remove(i); } for (var r = this.image.keys(); r.hasNext(); ) { var o = r.next(); Ri.startsWith(o, e) && this.image.remove(o); } } }, __class__: Hp, }); var Vp = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_Void_Void"] = Vp).__name__ = [ "lime", "app", "Event_Void_Void", ]), (Vp.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function () { this.canceled = !1; for ( var e = this.__listeners, t = this.__repeat, s = 0; s < e.length && (e[s](), t[s] ? ++s : this.remove(e[s]), !this.canceled); ); }, __class__: Vp, }); var Yp = function () {}; ((s["lime.Assets"] = Yp).__name__ = ["lime", "Assets"]), (Yp.exists = function (e, t) { Yp.initialize(), null == t && (t = "BINARY"); var s = e.substring(0, e.indexOf(":")), n = he.substr(e, e.indexOf(":") + 1, null), i = Yp.getLibrary(s); return null != i && i.exists(n, t); }), (Yp.getAudioBuffer = function (e, t) { var s; if ((null == t && (t = !0), Yp.initialize(), t && Yp.cache.enabled)) { var n = Yp.cache.audio; s = null != NT[e] ? n.existsReserved(e) : n.h.hasOwnProperty(e); } else s = !1; if (s) { var i = Yp.cache.audio, r = null != NT[e] ? i.getReserved(e) : i.h[e]; if (Yp.isValidAudio(r)) return r; } var o = e.substring(0, e.indexOf(":")), a = he.substr(e, e.indexOf(":") + 1, null), l = Yp.getLibrary(o); if (null != l) if (l.exists(a, "SOUND")) { if (l.isLocal(a, "SOUND")) { var h = l.getAudioBuffer(a); if (t && Yp.cache.enabled) { var _ = Yp.cache.audio; null != NT[e] ? _.setReserved(e, h) : (_.h[e] = h); } return h; } Zf.trace( '[Assets] Audio asset "' + e + '" exists, but only asynchronously', { fileName: "Assets.hx", lineNumber: 125, className: "lime.Assets", methodName: "getAudioBuffer", } ); } else Zf.trace( '[Assets] There is no audio asset with an ID of "' + e + '"', { fileName: "Assets.hx", lineNumber: 131, className: "lime.Assets", methodName: "getAudioBuffer", } ); else Zf.trace('[Assets] There is no asset library named "' + o + '"', { fileName: "Assets.hx", lineNumber: 137, className: "lime.Assets", methodName: "getAudioBuffer", }); return null; }), (Yp.getBytes = function (e) { Yp.initialize(); var t = e.substring(0, e.indexOf(":")), s = he.substr(e, e.indexOf(":") + 1, null), n = Yp.getLibrary(t); if (null != n) if (n.exists(s, "BINARY")) { if (n.isLocal(s, "BINARY")) return n.getBytes(s); Zf.trace( '[Assets] String or Bytes asset "' + e + '" exists, but only asynchronously', { fileName: "Assets.hx", lineNumber: 174, className: "lime.Assets", methodName: "getBytes", } ); } else Zf.trace( '[Assets] There is no String or Bytes asset with an ID of "' + e + '"', { fileName: "Assets.hx", lineNumber: 180, className: "lime.Assets", methodName: "getBytes", } ); else Zf.trace('[Assets] There is no asset library named "' + t + '"', { fileName: "Assets.hx", lineNumber: 186, className: "lime.Assets", methodName: "getBytes", }); return null; }), (Yp.getFont = function (e, t) { var s; if ((null == t && (t = !0), Yp.initialize(), t && Yp.cache.enabled)) { var n = Yp.cache.font; s = null != NT[e] ? n.existsReserved(e) : n.h.hasOwnProperty(e); } else s = !1; if (s) { var i = Yp.cache.font; return null != NT[e] ? i.getReserved(e) : i.h[e]; } var r = e.substring(0, e.indexOf(":")), o = he.substr(e, e.indexOf(":") + 1, null), a = Yp.getLibrary(r); if (null != a) if (a.exists(o, "FONT")) { if (a.isLocal(o, "FONT")) { var l = a.getFont(o); if (t && Yp.cache.enabled) { var h = Yp.cache.font; null != NT[e] ? h.setReserved(e, l) : (h.h[e] = l); } return l; } Zf.trace( '[Assets] Font asset "' + e + '" exists, but only asynchronously', { fileName: "Assets.hx", lineNumber: 237, className: "lime.Assets", methodName: "getFont", } ); } else Zf.trace( '[Assets] There is no Font asset with an ID of "' + e + '"', { fileName: "Assets.hx", lineNumber: 243, className: "lime.Assets", methodName: "getFont", } ); else Zf.trace('[Assets] There is no asset library named "' + r + '"', { fileName: "Assets.hx", lineNumber: 249, className: "lime.Assets", methodName: "getFont", }); return null; }), (Yp.getImage = function (e, t) { var s; if ((null == t && (t = !0), Yp.initialize(), t && Yp.cache.enabled)) { var n = Yp.cache.image; s = null != NT[e] ? n.existsReserved(e) : n.h.hasOwnProperty(e); } else s = !1; if (s) { var i = Yp.cache.image, r = null != NT[e] ? i.getReserved(e) : i.h[e]; if (Yp.isValidImage(r)) return r; } var o = e.substring(0, e.indexOf(":")), a = he.substr(e, e.indexOf(":") + 1, null), l = Yp.getLibrary(o); if (null != l) if (l.exists(a, "IMAGE")) { if (l.isLocal(a, "IMAGE")) { var h = l.getImage(a); if (t && Yp.cache.enabled) { var _ = Yp.cache.image; null != NT[e] ? _.setReserved(e, h) : (_.h[e] = h); } return h; } Zf.trace( '[Assets] Image asset "' + e + '" exists, but only asynchronously', { fileName: "Assets.hx", lineNumber: 307, className: "lime.Assets", methodName: "getImage", } ); } else Zf.trace( '[Assets] There is no Image asset with an ID of "' + e + '"', { fileName: "Assets.hx", lineNumber: 313, className: "lime.Assets", methodName: "getImage", } ); else Zf.trace('[Assets] There is no asset library named "' + o + '"', { fileName: "Assets.hx", lineNumber: 319, className: "lime.Assets", methodName: "getImage", }); return null; }), (Yp.getLibrary = function (e) { (null != e && "" != e) || (e = "default"); var t = Yp.libraries; return null != NT[e] ? t.getReserved(e) : t.h[e]; }), (Yp.getExtraSoundOptions = function (e) { Yp.initialize(); var t = Yp.getLibrary(""); if (null != t) { if (t.exists(e, null)) return t.getExtraSoundOptions(e); Zf.trace('[Assets] There is no asset with an ID of "' + e + '"', { fileName: "Assets.hx", lineNumber: 355, className: "lime.Assets", methodName: "getExtraSoundOptions", }); } return null; }), (Yp.getLogicalPath = function (e) { Yp.initialize(); var t = Yp.getLibrary(""); if (null != t) for (var s = t.getPathMap(), n = s.keys(); n.hasNext(); ) { var i = n.next(); if ((null != NT[i] ? s.getReserved(i) : s.h[i]) == e) return i; } return ""; }), (Yp.getPath = function (e) { Yp.initialize(); var t = e.substring(0, e.indexOf(":")), s = he.substr(e, e.indexOf(":") + 1, null), n = Yp.getLibrary(t); if (null != n) { if (n.exists(s, null)) return n.getPath(s); Zf.trace('[Assets] There is no asset with an ID of "' + e + '"', { fileName: "Assets.hx", lineNumber: 411, className: "lime.Assets", methodName: "getPath", }); } else Zf.trace('[Assets] There is no asset library named "' + t + '"', { fileName: "Assets.hx", lineNumber: 417, className: "lime.Assets", methodName: "getPath", }); return null; }), (Yp.getText = function (e) { Yp.initialize(); var t = e.substring(0, e.indexOf(":")), s = he.substr(e, e.indexOf(":") + 1, null), n = Yp.getLibrary(t); if (null != n) if (n.exists(s, "TEXT")) { if (n.isLocal(s, "TEXT")) return n.getText(s); Zf.trace( '[Assets] String asset "' + e + '" exists, but only asynchronously', { fileName: "Assets.hx", lineNumber: 454, className: "lime.Assets", methodName: "getText", } ); } else Zf.trace( '[Assets] There is no String asset with an ID of "' + e + '"', { fileName: "Assets.hx", lineNumber: 460, className: "lime.Assets", methodName: "getText", } ); else Zf.trace('[Assets] There is no asset library named "' + t + '"', { fileName: "Assets.hx", lineNumber: 466, className: "lime.Assets", methodName: "getText", }); return null; }), (Yp.initialize = function () { Yp.initialized || (Yp.registerLibrary("default", new X()), (Yp.initialized = !0)); }), (Yp.isLocal = function (e, t, s) { if ((null == s && (s = !0), Yp.initialize(), s && Yp.cache.enabled)) { if ("IMAGE" == t || null == t) { var n = Yp.cache.image; if (null != NT[e] ? n.existsReserved(e) : n.h.hasOwnProperty(e)) return !0; } if ("FONT" == t || null == t) { var i = Yp.cache.font; if (null != NT[e] ? i.existsReserved(e) : i.h.hasOwnProperty(e)) return !0; } if ("SOUND" == t || "MUSIC" == t || null == t) { var r = Yp.cache.audio; if (null != NT[e] ? r.existsReserved(e) : r.h.hasOwnProperty(e)) return !0; } } var o = e.substring(0, e.indexOf(":")), a = he.substr(e, e.indexOf(":") + 1, null), l = Yp.getLibrary(o); return null != l && l.isLocal(a, t); }), (Yp.isValidAudio = function (e) { return null != e; }), (Yp.isValidImage = function (e) { return !0; }), (Yp.list = function (e) { Yp.initialize(); for ( var t = [], s = Yp.libraries, n = new _p(s, s.arrayKeys()); n.hasNext(); ) { var i = n.next().list(e); null != i && (t = t.concat(i)); } return t; }), (Yp.loadAudioBuffer = function (s, e) { null == e && (e = !0), Yp.initialize(); var t, n = new gb(); if (e && Yp.cache.enabled) { var i = Yp.cache.audio; t = null != NT[s] ? i.existsReserved(s) : i.h.hasOwnProperty(s); } else t = !1; if (t) { var r = Yp.cache.audio, o = null != NT[s] ? r.getReserved(s) : r.h[s]; if (Yp.isValidAudio(o)) return n.complete(o), n.future; } var a = s.indexOf(":"), l = s.substring(0, a), h = s.indexOf(":") + 1, _ = he.substr(s, h, null), u = Yp.getLibrary(l); if (null != u) if (u.exists(_, "SOUND")) { var d = u.loadAudioBuffer(_); e && Yp.cache.enabled && d.onComplete(function (e) { var t = Yp.cache.audio; null != NT[s] ? t.setReserved(s, e) : (t.h[s] = e); }), n.completeWith(d); } else n.error('[Assets] There is no audio asset with an ID of "' + s + '"'); else n.error('[Assets] There is no asset library named "' + l + '"'); return n.future; }), (Yp.loadBytes = function (e) { Yp.initialize(); var t = new gb(), s = e.substring(0, e.indexOf(":")), n = he.substr(e, e.indexOf(":") + 1, null), i = Yp.getLibrary(s); return ( null != i ? i.exists(n, "BINARY") ? t.completeWith(i.loadBytes(n)) : t.error( '[Assets] There is no String or Bytes asset with an ID of "' + e + '"' ) : t.error('[Assets] There is no asset library named "' + s + '"'), t.future ); }), (Yp.loadFont = function (e) { Yp.initialize(); var t = new gb(), s = e.substring(0, e.indexOf(":")), n = he.substr(e, e.indexOf(":") + 1, null), i = Yp.getLibrary(s); return ( null != i ? i.exists(n, "FONT") ? t.completeWith(i.loadFont(n)) : t.error( '[Assets] There is no Font asset with an ID of "' + e + '"' ) : t.error('[Assets] There is no asset library named "' + s + '"'), t.future ); }), (Yp.loadImage = function (s, e) { null == e && (e = !0), Yp.initialize(); var t, n = new gb(); if (e && Yp.cache.enabled) { var i = Yp.cache.image; t = null != NT[s] ? i.existsReserved(s) : i.h.hasOwnProperty(s); } else t = !1; if (t) { var r = Yp.cache.image, o = null != NT[s] ? r.getReserved(s) : r.h[s]; if (Yp.isValidImage(o)) return n.complete(o), n.future; } var a = s.indexOf(":"), l = s.substring(0, a), h = s.indexOf(":") + 1, _ = he.substr(s, h, null), u = Yp.getLibrary(l); if (null != u) if (u.exists(_, "IMAGE")) { var d = u.loadImage(_); e && Yp.cache.enabled && d.onComplete(function (e) { var t = Yp.cache.image; null != NT[s] ? t.setReserved(s, e) : (t.h[s] = e); }), n.completeWith(d); } else n.error('[Assets] There is no Image asset with an ID of "' + s + '"'); else n.error('[Assets] There is no asset library named "' + l + '"'); return n.future; }), (Yp.loadLibrary = function (e) { Yp.initialize(); var t = new gb(), s = Yp.getText("libraries/" + e + ".json"); if (null != s && "" != s) { var n = JSON.parse(s), i = ms.createInstance(ms.resolveClass(n.type), n.args), r = Yp.libraries; null != NT[e] ? r.setReserved(e, i) : (r.h[e] = i), i.onChange.add(CT((AT = Yp.onChange), AT.dispatch)), t.completeWith(i.load()); } else t.error('[Assets] There is no asset library named "' + e + '"'); return t.future; }), (Yp.loadText = function (e) { Yp.initialize(); var t = new gb(), s = e.substring(0, e.indexOf(":")), n = he.substr(e, e.indexOf(":") + 1, null), i = Yp.getLibrary(s); return ( null != i ? i.exists(n, "TEXT") ? t.completeWith(i.loadText(n)) : t.error( '[Assets] There is no String asset with an ID of "' + e + '"' ) : t.error('[Assets] There is no asset library named "' + s + '"'), t.future ); }), (Yp.registerLibrary = function (e, t) { var s = Yp.libraries; if (null != NT[e] ? s.existsReserved(e) : s.h.hasOwnProperty(e)) { var n = Yp.libraries; if ((null != NT[e] ? n.getReserved(e) : n.h[e]) == t) return; Yp.unloadLibrary(e); } null != t && t.onChange.add(Yp.library_onChange); var i = Yp.libraries; null != NT[e] ? i.setReserved(e, t) : (i.h[e] = t); }), (Yp.unloadLibrary = function (e) { Yp.initialize(); var t = Yp.libraries, s = null != NT[e] ? t.getReserved(e) : t.h[e]; null != s && (Yp.cache.clear(e + ":"), s.onChange.remove(Yp.library_onChange), s.unload()), Yp.libraries.remove(e); }), (Yp.library_onChange = function () { Yp.cache.clear(), Yp.onChange.dispatch(); }); var Wp = function (e) { (this.gameDeviceCache = new lp()), (this.parent = e), (this.currentUpdate = 0), (this.lastUpdate = 0), (this.nextUpdate = 0), (this.framePeriod = -1), Sb.init(), (Wp.instance = this); }; ((s["lime._backend.html5.HTML5Application"] = Wp).__name__ = [ "lime", "_backend", "html5", "HTML5Application", ]), (Wp.instance = null), (Wp.staticHandleApplicationEvent = function (e) { var t = performance.now(); Wp.instance.handleApplicationEvent(t); }), (Wp.prototype = { convertKeyCode: function (e) { if (65 <= e && e <= 90) return e + 32; switch (e) { case 16: return 1073742049; case 17: return 1073742048; case 18: return 1073742050; case 20: return 1073741881; case 33: return 1073741899; case 34: return 1073741902; case 35: return 1073741901; case 36: return 1073741898; case 37: return 1073741904; case 38: return 1073741906; case 39: return 1073741903; case 40: return 1073741905; case 45: return 1073741897; case 46: return 127; case 112: return 1073741882; case 113: return 1073741883; case 114: return 1073741884; case 115: return 1073741885; case 116: return 1073741886; case 117: return 1073741887; case 118: return 1073741888; case 119: return 1073741889; case 120: return 1073741890; case 121: return 1073741891; case 122: return 1073741892; case 123: return 1073741893; case 124: return 1073741928; case 125: return 1073741929; case 126: return 1073741930; case 144: return 1073741907; case 186: return 59; case 187: return 61; case 188: return 44; case 189: return 45; case 190: return 46; case 191: return 47; case 192: return 96; case 219: return 91; case 220: return 92; case 221: return 93; case 222: return 39; } return e; }, create: function (e) {}, exec: function () { window.addEventListener("keydown", CT(this, this.handleKeyEvent), !1), window.addEventListener("keyup", CT(this, this.handleKeyEvent), !1), window.addEventListener( "focus", CT(this, this.handleWindowEvent), !1 ), window.addEventListener("blur", CT(this, this.handleWindowEvent), !1), this.parent.windows[0].__resizable && window.addEventListener( "resize", CT(this, this.handleWindowEvent), !1 ), window.addEventListener( "beforeunload", CT(this, this.handleWindowEvent), !1 ), CanvasRenderingContext2D.prototype.isPointInStroke || (CanvasRenderingContext2D.prototype.isPointInStroke = function ( e, t, s ) { return !1; }); for ( var r = 0, e = ["ms", "moz", "webkit", "o"], t = 0; t < e.length && !window.requestAnimationFrame; ++t ) (window.requestAnimationFrame = window[e[t] + "RequestAnimationFrame"]), (window.cancelAnimationFrame = window[e[t] + "CancelAnimationFrame"] || window[e[t] + "CancelRequestAnimationFrame"]); return ( window.requestAnimationFrame || (window.requestAnimationFrame = function (e, t) { var s = new Date().getTime(), n = Math.max(0, 16 - (s - r)), i = window.setTimeout(function () { e(s + n); }, n); return (r = s + n), i; }), window.cancelAnimationFrame || (window.cancelAnimationFrame = function (e) { clearTimeout(e); }), (window.requestAnimFrame = window.requestAnimationFrame), (this.requestAnimFrameFunc = window.requestAnimationFrame), this.handleApplicationEvent(0), 0 ); }, exit: function () { Sb.shutdown(); }, getFrameRate: function () { return this.framePeriod < 0 ? 60 : 1e3 == this.framePeriod ? 0 : 1e3 / this.framePeriod; }, handleApplicationEvent: function (e) { if (((this.currentUpdate = e), this.currentUpdate >= this.nextUpdate)) { if ( ((this.deltaTime = this.currentUpdate - this.lastUpdate), this.parent.onUpdate.dispatch(0 | this.deltaTime), null != this.parent.renderers[0] && (this.parent.render(this.parent.renderers[0]), this.parent.renderers[0].flip()), this.framePeriod < 0) ) this.nextUpdate = this.currentUpdate; else for ( ; (this.nextUpdate += this.framePeriod), this.nextUpdate < this.currentUpdate; ); this.lastUpdate = this.currentUpdate; } Wp.stopUpdating || this.requestAnimFrameFunc.call( window, Wp.staticHandleApplicationEvent ); }, handleKeyEvent: function (e) { if (null != this.parent.windows[0]) { 8 == e.keyCode && e.preventDefault(); var t = this.convertKeyCode(null != e.keyCode ? e.keyCode : e.which), s = (e.shiftKey ? 3 : 0) | (e.ctrlKey ? 192 : 0) | (e.altKey ? 768 : 0) | (e.metaKey ? 3072 : 0); "keydown" == e.type ? this.parent.windows[0].onKeyDown.dispatch(t, s) : this.parent.windows[0].onKeyUp.dispatch(t, s), this.parent.windows[0].backend.getEnableTextEvents() || e.preventDefault(); } }, handleWindowEvent: function (e) { if (null != this.parent.windows[0]) switch (e.type) { case "beforeunload": this.parent.windows[0].onClose.dispatch(); break; case "blur": this.parent.windows[0].onFocusOut.dispatch(), this.parent.windows[0].onDeactivate.dispatch(); break; case "focus": this.parent.windows[0].onFocusIn.dispatch(), this.parent.windows[0].onActivate.dispatch(); } }, setFrameRate: function (e) { return (this.framePeriod = 60 <= e ? -1 : 0 < e ? 1e3 / e : 1e3), e; }, updateGameDevices: function () { var e = Pm.__getDeviceData(); if (null != e) for (var t, s, n, i, r, o = 0, a = e.length; o < a; ) { if (null != (i = e[(t = o++)])) { if (!this.gameDeviceCache.h.hasOwnProperty(t)) { ((r = new jp()).id = t), (r.connected = i.connected); for (var l = 0, h = i.buttons.length; l < h; ) { var _ = l++; r.buttons.push(i.buttons[_].value); } for (var u = 0, d = i.axes.length; u < d; ) { var c = u++; r.axes.push(i.axes[c]); } "standard" == i.mapping && (r.isGamepad = !0), (this.gameDeviceCache.h[t] = r), i.connected && (Pm.__connect(t), r.isGamepad && Sm.__connect(t)); } if ( ((r = this.gameDeviceCache.h[t]), (n = Pm.devices.h[t]), (s = Sm.devices.h[t]), i.connected) ) { for (var f, p, b = 0, m = i.buttons.length; b < m; ) { var g = b++; if ((p = i.buttons[g].value) != r.buttons[g]) { if (6 == g) n.onAxisMove.dispatch(i.axes.length, p), null != s && s.onAxisMove.dispatch(4, p); else if (7 == g) n.onAxisMove.dispatch(i.axes.length + 1, p), null != s && s.onAxisMove.dispatch(5, p); else if ( (0 < p ? n.onButtonDown.dispatch(g) : n.onButtonUp.dispatch(g), null != s) ) { switch (g) { case 0: f = 0; break; case 1: f = 1; break; case 2: f = 2; break; case 3: f = 3; break; case 4: f = 9; break; case 5: f = 10; break; case 8: f = 4; break; case 9: f = 6; break; case 10: f = 7; break; case 11: f = 8; break; case 12: f = 11; break; case 13: f = 12; break; case 14: f = 13; break; case 15: f = 14; break; case 16: f = 5; break; default: continue; } 0 < p ? s.onButtonDown.dispatch(f) : s.onButtonUp.dispatch(f); } r.buttons[g] = p; } } for (var w = 0, v = i.axes.length; w < v; ) { var y = w++; i.axes[y] != r.axes[y] && (n.onAxisMove.dispatch(y, i.axes[y]), null != s && s.onAxisMove.dispatch(y, i.axes[y]), (r.axes[y] = i.axes[y])); } } else r.connected && ((r.connected = !1), Pm.__disconnect(t), Sm.__disconnect(t)); } } }, __class__: Wp, }); var jp = function () { (this.connected = !0), (this.buttons = []), (this.axes = []); }; ((s["lime._backend.html5.GameDeviceData"] = jp).__name__ = [ "lime", "_backend", "html5", "GameDeviceData", ]), (jp.prototype = { __class__: jp }); var Kp = function () {}; ((s["lime._backend.html5.HTML5Mouse"] = Kp).__name__ = [ "lime", "_backend", "html5", "HTML5Mouse", ]), (Kp.__cursor = null), (Kp.__hidden = null), (Kp.hide = function () { if (!Kp.__hidden) { Kp.__hidden = !0; for (var e = 0, t = Jp.current.windows; e < t.length; ) { var s = t[e]; ++e, (s.backend.element.style.cursor = "none"); } } }), (Kp.show = function () { if (Kp.__hidden) { Kp.__hidden = !1; var e = Kp.__cursor; (Kp.__cursor = null), Kp.set_cursor(e); } }), (Kp.warp = function (e, t, s) {}), (Kp.get_cursor = function () { return null == Kp.__cursor ? Bm.DEFAULT : Kp.__cursor; }), (Kp.set_cursor = function (e) { if (Kp.__cursor != e) { if (!Kp.__hidden) for (var t = 0, s = Jp.current.windows; t < s.length; ) { var n, i = s[t]; switch ((++t, e[1])) { case 0: n = "default"; break; case 1: n = "crosshair"; break; case 3: n = "move"; break; case 4: n = "pointer"; break; case 5: n = "nesw-resize"; break; case 6: n = "ns-resize"; break; case 7: n = "nwse-resize"; break; case 8: n = "ew-resize"; break; case 9: n = "text"; break; case 10: case 11: n = "wait"; break; default: n = "auto"; } i.backend.element.style.cursor = n; } Kp.__cursor = e; } return Kp.__cursor; }), (Kp.get_lock = function () { return !1; }), (Kp.set_lock = function (e) { return e; }); var qp = function (e) { this.parent = e; }; ((s["lime._backend.html5.HTML5Renderer"] = qp).__name__ = [ "lime", "_backend", "html5", "HTML5Renderer", ]), (qp.prototype = { create: function () { this.createContext(), 0 == this.parent.context[1] && (this.parent.window.backend.canvas.addEventListener( "webglcontextlost", CT(this, this.handleEvent), !1 ), this.parent.window.backend.canvas.addEventListener( "webglcontextrestored", CT(this, this.handleEvent), !1 )); }, createContext: function () { if (null != this.parent.window.backend.canvas) { var e, t = { alpha: !1, antialias: Object.prototype.hasOwnProperty.call( this.parent.window.config, "antialiasing" ) && 0 < this.parent.window.config.antialiasing, depth: !Object.prototype.hasOwnProperty.call( this.parent.window.config, "depthBuffer" ) || this.parent.window.config.depthBuffer, premultipliedAlpha: !1, stencil: Object.prototype.hasOwnProperty.call( this.parent.window.config, "stencilBuffer" ) && this.parent.window.config.stencilBuffer, preserveDrawingBuffer: !1, }; if ( null == (e = Op.getContextWebGL(this.parent.window.backend.canvas, t)) ) throw new Mp("Only webgl supported"); (Vb.context = e), (this.parent.context = Nb.OPENGL(new Db())), (this.parent.type = Ub.OPENGL); } }, flip: function () {}, handleEvent: function (e) { switch (e.type) { case "webglcontextlost": e.preventDefault(), (this.parent.context = null), this.parent.onContextLost.dispatch(); break; case "webglcontextrestored": this.createContext(), this.parent.onContextRestored.dispatch(this.parent.context); } }, readPixels: function (e) { if ( null != this.parent.window.backend.canvas && (null == e ? (e = new Jb( 0, 0, this.parent.window.backend.canvas.width, this.parent.window.backend.canvas.height )) : e.__contract( 0, 0, this.parent.window.backend.canvas.width, this.parent.window.backend.canvas.height ), 0 < e.width && 0 < e.height) ) { var t = window.document.createElement("canvas"); return ( (t.width = 0 | e.width), (t.height = 0 | e.height), t .getContext("2d") .drawImage(this.parent.window.backend.canvas, -e.x, -e.y), kb.fromCanvas(t) ); } return null; }, render: function () {}, __class__: qp, }); var Zp = function (e) { (this.unusedTouchesPool = new pe()), (this.currentTouches = new lp()), null != (this.parent = e).config && Object.prototype.hasOwnProperty.call(e.config, "element") && (this.element = e.config.element), e.onFocusIn.add(CT(this, this.focus)); }; ((s["lime._backend.html5.HTML5Window"] = Zp).__name__ = [ "lime", "_backend", "html5", "HTML5Window", ]), (Zp.textInput = null), (Zp.prototype = { alert: function (e, t) { null != e && Np.alert(e); }, close: function () { this.parent.application.removeWindow(this.parent); }, create: function (e) { if ( ((this.setWidth = this.parent.__width), (this.setHeight = this.parent.__height), (this.parent.id = Zp.windowID++), Lp.__instanceof(this.element, HTMLCanvasElement) ? (this.canvas = this.element) : (this.canvas = window.document.createElement("canvas")), null != this.canvas) ) { var t = this.canvas.style; t.setProperty("-webkit-transform", "translateZ(0)", null), t.setProperty("transform", "translateZ(0)", null); } else if (null != this.div) { var s = this.div.style; s.setProperty("-webkit-transform", "translate3D(0,0,0)", null), s.setProperty("transform", "translate3D(0,0,0)", null), (s.position = "relative"), (s.overflow = "hidden"), s.setProperty("-webkit-user-select", "none", null), s.setProperty("-moz-user-select", "none", null), s.setProperty("-ms-user-select", "none", null), s.setProperty("-o-user-select", "none", null); } if (this.parent.__resizable) if ( ((this.parent.__originalWidth = this.parent.__width), (this.parent.__originalHeight = this.parent.__height), null == this.element || (0 == this.element.clientWidth && 0 == this.element.clientHeight)) ) this.parent.resize(window.innerWidth, window.innerHeight); else { var n = 0, i = 0; 0 != this.element.clientWidth && 0 != this.element.clientHeight ? ((n = this.element.clientWidth), (i = this.element.clientHeight)) : 0 != this.element.clientWidth ? ((n = this.element.clientWidth), (i = Math.round( n * (this.parent.__originalHeight / this.parent.__originalWidth) ))) : ((i = this.element.clientHeight), (n = Math.round( i * (this.parent.__originalWidth / this.parent.__originalHeight) ))), this.parent.resize(0 | n, 0 | i); } else 0 == this.parent.__width && 0 == this.parent.__height && (null != this.element && 0 != this.element.clientWidth && 0 != this.element.clientHeight ? this.parent.resize( this.element.clientWidth, this.element.clientHeight ) : this.parent.resize(window.innerWidth, window.innerHeight)), (this.parent.__originalWidth = this.parent.__width), (this.parent.__originalHeight = this.parent.__height); if ( (null != this.canvas ? ((this.canvas.width = this.parent.__width), (this.canvas.height = this.parent.__height)) : ((this.div.style.width = this.parent.__width + "px"), (this.div.style.height = this.parent.__height + "px")), null != this.element) ) { null != this.canvas ? this.element != this.canvas && this.element.appendChild(this.canvas) : this.element.appendChild(this.div); for ( var r = [ "mousedown", "mouseenter", "mouseleave", "mousemove", "mouseup", "wheel", "contextmenu", ], o = 0; o < r.length; ) { var a = r[o]; ++o, this.element.addEventListener( a, CT(this, this.handleMouseEvent), !0 ); } window.document.addEventListener( "dragstart", function (e) { return ( "img" != e.target.nodeName.toLowerCase() || (e.preventDefault(), !1) ); }, !1 ), this.element.addEventListener( "touchstart", CT(this, this.handleTouchEvent), !0 ), this.element.addEventListener( "touchmove", CT(this, this.handleTouchEvent), !0 ), this.element.addEventListener( "touchend", CT(this, this.handleTouchEvent), !0 ), this.element.addEventListener( "gamepadconnected", CT(this, this.handleGamepadEvent), !0 ), this.element.addEventListener( "gamepaddisconnected", CT(this, this.handleGamepadEvent), !0 ); } }, focus: function () {}, getDisplay: function () { return cm.getDisplay(0); }, getEnableTextEvents: function () { return this.enableTextEvents; }, handleFocusEvent: function (e) { this.enableTextEvents && Qf.delay(function () { Zp.textInput.focus(); }, 20); }, handleGamepadEvent: function (e) { switch (e.type) { case "gamepadconnected": Pm.__connect(e.gamepad.index), "standard" == e.gamepad.mapping && Sm.__connect(e.gamepad.index); break; case "gamepaddisconnected": Pm.__disconnect(e.gamepad.index), Sm.__disconnect(e.gamepad.index); } }, handleInputEvent: function (e) { "" != Zp.textInput.value && (this.parent.onTextInput.dispatch(Zp.textInput.value), (Zp.textInput.value = "")); }, handleMouseEvent: function (e) { var t = 0, s = 0; if ("wheel" != e.type) { if (null != this.element) if (null != this.canvas) { var n = this.canvas.getBoundingClientRect(); (t = (e.clientX - n.left) * (this.parent.__width / n.width)), (s = (e.clientY - n.top) * (this.parent.__height / n.height)); } else if (null != this.div) { var i = this.div.getBoundingClientRect(); (t = e.clientX - i.left), (s = e.clientY - i.top); } else { var r = this.element.getBoundingClientRect(); (t = (e.clientX - r.left) * (this.parent.__width / r.width)), (s = (e.clientY - r.top) * (this.parent.__height / r.height)); } else (t = e.clientX), (s = e.clientY); switch (e.type) { case "mousedown": this.parent.onMouseDown.dispatch(t, s, e.button); break; case "mouseenter": this.parent.onEnter.dispatch(); break; case "contextmenu": case "mouseleave": this.parent.onLeave.dispatch(); break; case "mousemove": this.parent.onMouseMove.dispatch(t, s); break; case "mouseup": this.parent.onMouseUp.dispatch(t, s, e.button); } } else this.parent.onMouseWheel.dispatch(e.deltaX, -e.deltaY); }, handleTouchEvent: function (e) { e.preventDefault(); var t = null; null != this.element && (t = null != this.canvas ? this.canvas.getBoundingClientRect() : null != this.div ? this.div.getBoundingClientRect() : this.element.getBoundingClientRect()); var s = this.setWidth, n = this.setHeight; (0 != s && 0 != n) || (n = null != t ? ((s = t.width), t.height) : (s = 1)); for (var i = 0, r = e.changedTouches; i < r.length; ) { var o = r[i]; ++i; var a = 0, l = 0; switch ( ((l = null != t ? ((a = (o.clientX - t.left) * (this.parent.__width / t.width)), (o.clientY - t.top) * (this.parent.__height / t.height)) : ((a = o.clientX), o.clientY)), e.type) ) { case "touchend": var h = this.currentTouches.get(o.identifier); if (null != h) { var _ = h.x, u = h.y; (h.x = a / s), (h.y = l / n), (h.dx = h.x - _), (h.dy = h.y - u), (h.pressure = o.force), Dm.onEnd.dispatch(h), this.currentTouches.remove(o.identifier), this.unusedTouchesPool.add(h), h == this.primaryTouch && (this.parent.onMouseUp.dispatch(a, l, 0), (this.primaryTouch = null)); } break; case "touchmove": var d = this.currentTouches.get(o.identifier); if (null != d) { var c = d.x, f = d.y; (d.x = a / s), (d.y = l / n), (d.dx = d.x - c), (d.dy = d.y - f), (d.pressure = o.force), Dm.onMove.dispatch(d), d == this.primaryTouch && this.parent.onMouseMove.dispatch(a, l); } break; case "touchstart": var p = this.unusedTouchesPool.pop(); null == p ? (p = new Dm( a / s, l / n, o.identifier, 0, 0, o.force, this.parent.id )) : ((p.x = a / s), (p.y = l / n), (p.id = o.identifier), (p.dx = 0), (p.dy = 0), (p.pressure = o.force), (p.device = this.parent.id)), this.currentTouches.set(o.identifier, p), Dm.onStart.dispatch(p), null == this.primaryTouch && (this.primaryTouch = p), p == this.primaryTouch && this.parent.onMouseDown.dispatch(a, l, 0); } } }, move: function (e, t) {}, resize: function (e, t) { if ( null != this.element && ((this.parent.__width = e), (this.parent.__height = t), null != this.canvas && this.element != this.canvas) ) { var s = this.parent.stage, n = e, i = t; null != s && (2 != s.get_scaleMode() && ((e = Math.ceil(s.stageWidth * s.get_scaleX())), (t = Math.ceil(s.stageHeight * s.get_scaleY())), (this.parent.__width = e), (this.parent.__height = t)), Math.floor((n - e) / 2), Math.floor((i - t) / 2)); } }, resizeViewport: function (e, t) { (this.canvas.width = e), (this.canvas.height = t); }, setBorderless: function (e) { return e; }, setEnableTextEvents: function (e) { return ( e ? (null == Zp.textInput && (((Zp.textInput = window.document.createElement("input")).type = "text"), (Zp.textInput.style.position = "absolute"), (Zp.textInput.style.opacity = "0"), (Zp.textInput.style.color = "transparent"), (Zp.textInput.value = ""), (Zp.textInput.autocapitalize = "off"), (Zp.textInput.autocorrect = "off"), (Zp.textInput.autocomplete = "off"), new V("(iPad|iPhone|iPod).*OS 8_", "gi").match( window.navigator.userAgent ) ? ((Zp.textInput.style.fontSize = "0px"), (Zp.textInput.style.width = "0px"), (Zp.textInput.style.height = "0px"), (Zp.textInput.style.left = "0px"), (Zp.textInput.style.top = "50%")) : ((Zp.textInput.style.width = "1px"), (Zp.textInput.style.height = "1px"), (Zp.textInput.style.left = "-1000px"), (Zp.textInput.style.top = "0px")), (Zp.textInput.style.pointerEvents = "none"), (Zp.textInput.style.zIndex = "-10000000"), window.document.body.appendChild(Zp.textInput)), this.enableTextEvents || (Zp.textInput.addEventListener( "input", CT(this, this.handleInputEvent), !0 ), Zp.textInput.addEventListener( "blur", CT(this, this.handleFocusEvent), !0 )), Zp.textInput.focus()) : null != Zp.textInput && (Zp.textInput.removeEventListener( "input", CT(this, this.handleInputEvent), !0 ), Zp.textInput.removeEventListener( "blur", CT(this, this.handleFocusEvent), !0 ), Zp.textInput.blur()), (this.enableTextEvents = e) ); }, setFullscreen: function (e) { return !1; }, setIcon: function (e) {}, setMinimized: function (e) { return !1; }, setResizable: function (e) { return e; }, setTitle: function (e) { return e; }, getScreenWidth: function () { return window.screen.width; }, getScreenHeight: function () { return window.screen.height; }, __class__: Zp, }); var Jp = function () { (this.onUpdate = new rb()), Aa.call(this), null == Jp.current && (Jp.current = this), (this.modules = []), (this.renderers = []), (this.windows = []), (this.windowByID = new lp()), (this.backend = new Wp(this)), this.onExit.add(CT(this, this.onModuleExit)), this.onUpdate.add(CT(this, this.update)), Sm.onConnect.add(CT(this, this.__onGamepadConnect)), Pm.onConnect.add(CT(this, this.__onJoystickConnect)), Dm.onStart.add(CT(this, this.onTouchStart)), Dm.onMove.add(CT(this, this.onTouchMove)), Dm.onEnd.add(CT(this, this.onTouchEnd)); }; ((s["lime.app.Application"] = Jp).__name__ = ["lime", "app", "Application"]), (Jp.current = null), (Jp.__super__ = Aa), (Jp.prototype = n(Aa.prototype, { addModule: function (e) { if ((this.modules.push(e), 0 < this.windows.length)) { for (var t = 0, s = this.windows; t < s.length; ) { var n = s[t]; ++t, e.onWindowCreate(n); } (null == this.preloader || this.preloader.complete) && e.onPreloadComplete(); } }, addRenderer: function (e) { var t = CT(this, this.render), s = e; e.onRender.add(function () { t(s); }); var n = CT(this, this.onRenderContextLost), i = e; e.onContextLost.add(function () { n(i); }); var r = CT(this, this.onRenderContextRestored), o = e; e.onContextRestored.add(function (e) { r(o, e); }), this.renderers.push(e); }, create: function (e) { if (((this.config = e), this.backend.create(e), null != e)) { if ( (Object.prototype.hasOwnProperty.call(e, "fps") && this.backend.setFrameRate(e.fps), Object.prototype.hasOwnProperty.call(e, "windows")) ) for (var t = 0, s = e.windows; t < s.length; ) { var n = s[t]; ++t; var i = new km(n); this.createWindow(i); break; } (null == this.preloader || this.preloader.complete) && this.onPreloadComplete(); } }, createWindow: function (e) { var t = CT(this, this.onWindowActivate), s = e; e.onActivate.add(function () { t(s); }); var n = CT(this, this.onWindowClose), i = e; e.onClose.add(function () { n(i); }); var r = CT(this, this.onWindowCreate), o = e; e.onCreate.add(function () { r(o); }); var a = CT(this, this.onWindowDeactivate), l = e; e.onDeactivate.add(function () { a(l); }); var h = CT(this, this.onWindowEnter), _ = e; e.onEnter.add(function () { h(_); }); var u = CT(this, this.onWindowFocusIn), d = e; e.onFocusIn.add(function () { u(d); }); var c = CT(this, this.onWindowFocusOut), f = e; e.onFocusOut.add(function () { c(f); }); var p = CT(this, this.onWindowFullscreen), b = e; e.onFullscreen.add(function () { p(b); }); var m = CT(this, this.onKeyDown), g = e; e.onKeyDown.add(function (e, t) { m(g, e, t); }); var w = CT(this, this.onKeyUp), v = e; e.onKeyUp.add(function (e, t) { w(v, e, t); }); var y = CT(this, this.onWindowLeave), T = e; e.onLeave.add(function () { y(T); }); var S = CT(this, this.onWindowMinimize), x = e; e.onMinimize.add(function () { S(x); }); var E = CT(this, this.onMouseDown), P = e; e.onMouseDown.add(function (e, t, s) { E(P, e, t, s); }); var R = CT(this, this.onMouseMove), A = e; e.onMouseMove.add(function (e, t) { R(A, e, t); }); var I = CT(this, this.onMouseMoveRelative), C = e; e.onMouseMoveRelative.add(function (e, t) { I(C, e, t); }); var B = CT(this, this.onMouseUp), D = e; e.onMouseUp.add(function (e, t, s) { B(D, e, t, s); }); var k = CT(this, this.onMouseWheel), F = e; e.onMouseWheel.add(function (e, t) { k(F, e, t); }); var M = CT(this, this.onWindowMove), L = e; e.onMove.add(function (e, t) { M(L, e, t); }); var N = CT(this, this.onWindowResize), O = e; e.onResize.add(function (e, t) { N(O, e, t); }); var U = CT(this, this.onWindowRestore), G = e; e.onRestore.add(function () { U(G); }); var z = CT(this, this.onTextEdit), X = e; e.onTextEdit.add(function (e, t, s) { z(X, e, t, s); }); var H = CT(this, this.onTextInput), V = e; if ( (e.onTextInput.add(function (e) { H(V, e); }), null == e.renderer) ) { var Y = new Ob(e); this.addRenderer(Y); } e.create(this), this.windows.push(e), (this.windowByID.h[e.id] = e).onCreate.dispatch(); }, exec: function () { return (Jp.current = this).backend.exec(); }, onGamepadAxisMove: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onGamepadAxisMove(e, t, s); } }, onGamepadButtonDown: function (e, t) { for (var s = 0, n = this.modules; s < n.length; ) { var i = n[s]; ++s, i.onGamepadButtonDown(e, t); } }, onGamepadButtonUp: function (e, t) { for (var s = 0, n = this.modules; s < n.length; ) { var i = n[s]; ++s, i.onGamepadButtonUp(e, t); } }, onGamepadConnect: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onGamepadConnect(e); } }, onGamepadDisconnect: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onGamepadDisconnect(e); } }, onJoystickAxisMove: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onJoystickAxisMove(e, t, s); } }, onJoystickButtonDown: function (e, t) { for (var s = 0, n = this.modules; s < n.length; ) { var i = n[s]; ++s, i.onJoystickButtonDown(e, t); } }, onJoystickButtonUp: function (e, t) { for (var s = 0, n = this.modules; s < n.length; ) { var i = n[s]; ++s, i.onJoystickButtonUp(e, t); } }, onJoystickConnect: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onJoystickConnect(e); } }, onJoystickDisconnect: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onJoystickDisconnect(e); } }, onJoystickHatMove: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onJoystickHatMove(e, t, s); } }, onJoystickTrackballMove: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onJoystickTrackballMove(e, t, s); } }, onKeyDown: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onKeyDown(e, t, s); } }, onKeyUp: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onKeyUp(e, t, s); } }, onModuleExit: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onModuleExit(e); } this.backend.exit(); }, onMouseDown: function (e, t, s, n) { for (var i = 0, r = this.modules; i < r.length; ) { var o = r[i]; ++i, o.onMouseDown(e, t, s, n); } }, onMouseMove: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onMouseMove(e, t, s); } }, onMouseMoveRelative: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onMouseMoveRelative(e, t, s); } }, onMouseUp: function (e, t, s, n) { for (var i = 0, r = this.modules; i < r.length; ) { var o = r[i]; ++i, o.onMouseUp(e, t, s, n); } }, onMouseWheel: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onMouseWheel(e, t, s); } }, onPreloadComplete: function () { for (var e = 0, t = this.modules; e < t.length; ) { var s = t[e]; ++e, s.onPreloadComplete(); } }, onPreloadProgress: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onPreloadProgress(e, t, s); } }, onRenderContextLost: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onRenderContextLost(e); } }, onRenderContextRestored: function (e, t) { for (var s = 0, n = this.modules; s < n.length; ) { var i = n[s]; ++s, i.onRenderContextRestored(e, t); } }, onTextEdit: function (e, t, s, n) { for (var i = 0, r = this.modules; i < r.length; ) { var o = r[i]; ++i, o.onTextEdit(e, t, s, n); } }, onTextInput: function (e, t) { for (var s = 0, n = this.modules; s < n.length; ) { var i = n[s]; ++s, i.onTextInput(e, t); } }, onTouchEnd: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onTouchEnd(e); } }, onTouchMove: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onTouchMove(e); } }, onTouchStart: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onTouchStart(e); } }, onWindowActivate: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowActivate(e); } }, onWindowClose: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowClose(e); } this.removeWindow(e); }, onWindowCreate: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowCreate(e); } }, onWindowDeactivate: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowDeactivate(e); } }, onWindowEnter: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowEnter(e); } }, onWindowFocusIn: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowFocusIn(e); } }, onWindowFocusOut: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowFocusOut(e); } }, onWindowFullscreen: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowFullscreen(e); } }, onWindowLeave: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowLeave(e); } }, onWindowMinimize: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowMinimize(e); } }, onWindowMove: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onWindowMove(e, t, s); } }, onWindowResize: function (e, t, s) { for (var n = 0, i = this.modules; n < i.length; ) { var r = i[n]; ++n, r.onWindowResize(e, t, s); } }, onWindowRestore: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.onWindowRestore(e); } }, removeModule: function (e) { null != e && (e.onModuleExit(0), he.remove(this.modules, e)); }, removeRenderer: function (e) { null != e && -1 < this.renderers.indexOf(e) && he.remove(this.renderers, e); }, removeWindow: function (e) { null != e && this.windowByID.h.hasOwnProperty(e.id) && (he.remove(this.windows, e), this.windowByID.remove(e.id), e.close(), this.windows[0] == e && (this.window = null)); }, render: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.render(e); } }, setPreloader: function (e) { null != this.preloader && (this.preloader.onProgress.remove(CT(this, this.onPreloadProgress)), this.preloader.onComplete.remove(CT(this, this.onPreloadComplete))), (this.preloader = e).complete ? this.onPreloadComplete() : (e.onProgress.add(CT(this, this.onPreloadProgress)), e.onComplete.add(CT(this, this.onPreloadComplete))); }, update: function (e) { for (var t = 0, s = this.modules; t < s.length; ) { var n = s[t]; ++t, n.update(e); } }, __onGamepadConnect: function (e) { this.onGamepadConnect(e); var s = CT(this, this.onGamepadAxisMove), n = e; e.onAxisMove.add(function (e, t) { s(n, e, t); }); var t = CT(this, this.onGamepadButtonDown), i = e; e.onButtonDown.add(function (e) { t(i, e); }); var r = CT(this, this.onGamepadButtonUp), o = e; e.onButtonUp.add(function (e) { r(o, e); }); var a = CT(this, this.onGamepadDisconnect), l = e; e.onDisconnect.add(function () { a(l); }); }, __onJoystickConnect: function (e) { this.onJoystickConnect(e); var s = CT(this, this.onJoystickAxisMove), n = e; e.onAxisMove.add(function (e, t) { s(n, e, t); }); var t = CT(this, this.onJoystickButtonDown), i = e; e.onButtonDown.add(function (e) { t(i, e); }); var r = CT(this, this.onJoystickButtonUp), o = e; e.onButtonUp.add(function (e) { r(o, e); }); var a = CT(this, this.onJoystickDisconnect), l = e; e.onDisconnect.add(function () { a(l); }); var h = CT(this, this.onJoystickHatMove), _ = e; e.onHatMove.add(function (e, t) { h(_, e, t); }); var u = CT(this, this.onJoystickTrackballMove), d = e; e.onTrackballMove.add(function (e, t) { u(d, e, t); }); }, stopUpdating: function () { Wp.stopUpdating = !0; }, get_frameRate: function () { return this.backend.getFrameRate(); }, set_frameRate: function (e) { return this.backend.setFrameRate(e); }, get_renderer: function () { return this.renderers[0]; }, get_window: function () { return this.windows[0]; }, __class__: Jp, __properties__: { get_window: "get_window", get_renderer: "get_renderer", set_frameRate: "set_frameRate", get_frameRate: "get_frameRate", }, })); var Qp = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event"] = Qp).__name__ = ["lime", "app", "Event"]), (Qp.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, __class__: Qp, }); var $p = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_Dynamic_Void"] = $p).__name__ = [ "lime", "app", "Event_Dynamic_Void", ]), ($p.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e) { this.canceled = !1; for ( var t = this.__listeners, s = this.__repeat, n = 0; n < t.length && (t[n](e), s[n] ? ++n : this.remove(t[n]), !this.canceled); ); }, __class__: $p, }); var eb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_Float_Float_Int_Void"] = eb).__name__ = [ "lime", "app", "Event_Float_Float_Int_Void", ]), (eb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e, t, s) { this.canceled = !1; for ( var n = this.__listeners, i = this.__repeat, r = 0; r < n.length && (n[r](e, t, s), i[r] ? ++r : this.remove(n[r]), !this.canceled); ); }, __class__: eb, }); var tb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_Float_Float_Void"] = tb).__name__ = [ "lime", "app", "Event_Float_Float_Void", ]), (tb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e, t) { this.canceled = !1; for ( var s = this.__listeners, n = this.__repeat, i = 0; i < s.length && (s[i](e, t), n[i] ? ++i : this.remove(s[i]), !this.canceled); ); }, __class__: tb, }); var sb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_Int_Float_Void"] = sb).__name__ = [ "lime", "app", "Event_Int_Float_Void", ]), (sb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e, t) { this.canceled = !1; for ( var s = this.__listeners, n = this.__repeat, i = 0; i < s.length && (s[i](e, t), n[i] ? ++i : this.remove(s[i]), !this.canceled); ); }, __class__: sb, }); var nb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_Int_Int_Dynamic_Void"] = nb).__name__ = [ "lime", "app", "Event_Int_Int_Dynamic_Void", ]), (nb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e, t, s) { this.canceled = !1; for ( var n = this.__listeners, i = this.__repeat, r = 0; r < n.length && (n[r](e, t, s), i[r] ? ++r : this.remove(n[r]), !this.canceled); ); }, __class__: nb, }); var ib = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_Int_Int_Void"] = ib).__name__ = [ "lime", "app", "Event_Int_Int_Void", ]), (ib.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e, t) { this.canceled = !1; for ( var s = this.__listeners, n = this.__repeat, i = 0; i < s.length && (s[i](e, t), n[i] ? ++i : this.remove(s[i]), !this.canceled); ); }, __class__: ib, }); var rb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_Int_Void"] = rb).__name__ = [ "lime", "app", "Event_Int_Void", ]), (rb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e) { this.canceled = !1; for ( var t = this.__listeners, s = this.__repeat, n = 0; n < t.length && (t[n](e), s[n] ? ++n : this.remove(t[n]), !this.canceled); ); }, __class__: rb, }); var ob = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_Int_lime_ui_JoystickHatPosition_Void"] = ob).__name__ = [ "lime", "app", "Event_Int_lime_ui_JoystickHatPosition_Void", ]), (ob.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e, t) { this.canceled = !1; for ( var s = this.__listeners, n = this.__repeat, i = 0; i < s.length && (s[i](e, t), n[i] ? ++i : this.remove(s[i]), !this.canceled); ); }, __class__: ob, }); var ab = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_String_Int_Int_Void"] = ab).__name__ = [ "lime", "app", "Event_String_Int_Int_Void", ]), (ab.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e, t, s) { this.canceled = !1; for ( var n = this.__listeners, i = this.__repeat, r = 0; r < n.length && (n[r](e, t, s), i[r] ? ++r : this.remove(n[r]), !this.canceled); ); }, __class__: ab, }); var lb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_String_Void"] = lb).__name__ = [ "lime", "app", "Event_String_Void", ]), (lb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e) { this.canceled = !1; for ( var t = this.__listeners, s = this.__repeat, n = 0; n < t.length && (t[n](e), s[n] ? ++n : this.remove(t[n]), !this.canceled); ); }, __class__: lb, }); var hb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_lime_graphics_RenderContext_Void"] = hb).__name__ = [ "lime", "app", "Event_lime_graphics_RenderContext_Void", ]), (hb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e) { this.canceled = !1; for ( var t = this.__listeners, s = this.__repeat, n = 0; n < t.length && (t[n](e), s[n] ? ++n : this.remove(t[n]), !this.canceled); ); }, __class__: hb, }); var _b = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_lime_ui_GamepadAxis_Float_Void"] = _b).__name__ = [ "lime", "app", "Event_lime_ui_GamepadAxis_Float_Void", ]), (_b.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e, t) { this.canceled = !1; for ( var s = this.__listeners, n = this.__repeat, i = 0; i < s.length && (s[i](e, t), n[i] ? ++i : this.remove(s[i]), !this.canceled); ); }, __class__: _b, }); var ub = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_lime_ui_GamepadButton_Void"] = ub).__name__ = [ "lime", "app", "Event_lime_ui_GamepadButton_Void", ]), (ub.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e) { this.canceled = !1; for ( var t = this.__listeners, s = this.__repeat, n = 0; n < t.length && (t[n](e), s[n] ? ++n : this.remove(t[n]), !this.canceled); ); }, __class__: ub, }); var db = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_lime_ui_Gamepad_Void"] = db).__name__ = [ "lime", "app", "Event_lime_ui_Gamepad_Void", ]), (db.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e) { this.canceled = !1; for ( var t = this.__listeners, s = this.__repeat, n = 0; n < t.length && (t[n](e), s[n] ? ++n : this.remove(t[n]), !this.canceled); ); }, __class__: db, }); var cb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_lime_ui_Joystick_Void"] = cb).__name__ = [ "lime", "app", "Event_lime_ui_Joystick_Void", ]), (cb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e) { this.canceled = !1; for ( var t = this.__listeners, s = this.__repeat, n = 0; n < t.length && (t[n](e), s[n] ? ++n : this.remove(t[n]), !this.canceled); ); }, __class__: cb, }); var fb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void"] = fb).__name__ = [ "lime", "app", "Event_lime_ui_KeyCode_lime_ui_KeyModifier_Void", ]), (fb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e, t) { this.canceled = !1; for ( var s = this.__listeners, n = this.__repeat, i = 0; i < s.length && (s[i](e, t), n[i] ? ++i : this.remove(s[i]), !this.canceled); ); }, __class__: fb, }); var pb = function () { (this.canceled = !1), (this.__listeners = []), (this.__priorities = []), (this.__repeat = []); }; ((s["lime.app.Event_lime_ui_Touch_Void"] = pb).__name__ = [ "lime", "app", "Event_lime_ui_Touch_Void", ]), (pb.prototype = { add: function (e, t, s) { null == s && (s = 0), null == t && (t = !1); for (var n = 0, i = this.__priorities.length; n < i; ) { var r = n++; if (s > this.__priorities[r]) return ( this.__listeners.splice(r, 0, e), this.__priorities.splice(r, 0, s), void this.__repeat.splice(r, 0, !t) ); } this.__listeners.push(e), this.__priorities.push(s), this.__repeat.push(!t); }, cancel: function () { this.canceled = !0; }, has: function (e) { for (var t = 0, s = this.__listeners; t < s.length; ) { var n = s[t]; if ((++t, De.compareMethods(n, e))) return !0; } return !1; }, remove: function (e) { for (var t = this.__listeners.length; 0 <= --t; ) De.compareMethods(this.__listeners[t], e) && (this.__listeners.splice(t, 1), this.__priorities.splice(t, 1), this.__repeat.splice(t, 1)); }, dispatch: function (e) { this.canceled = !1; for ( var t = this.__listeners, s = this.__repeat, n = 0; n < t.length && (t[n](e), s[n] ? ++n : this.remove(t[n]), !this.canceled); ); }, __class__: pb, }); var bb = function (e) { if (null != e) { null == bb.__threadPool && ((bb.__threadPool = new fm()), bb.__threadPool.doWork.add(bb.threadPool_doWork), bb.__threadPool.onComplete.add(bb.threadPool_onComplete), bb.__threadPool.onError.add(bb.threadPool_onError)); var t = new gb(); (t.future = this), bb.__threadPool.queue({ promise: t, work: e }); } }; ((s["lime.app.Future"] = bb).__name__ = ["lime", "app", "Future"]), (bb.__threadPool = null), (bb.threadPool_doWork = function (t) { try { var e = t.work(); bb.__threadPool.sendComplete({ promise: t.promise, result: e }); } catch (e) { (jf.lastException = e) instanceof Mp && (e = e.val), bb.__threadPool.sendError({ promise: t.promise, error: e }); } }), (bb.threadPool_onComplete = function (e) { e.promise.complete(e.result); }), (bb.threadPool_onError = function (e) { e.promise.error(e.error); }), (bb.prototype = { onComplete: function (e) { return ( null != e && (this.__completed ? e(this.value) : this.__errored || (null == this.__completeListeners && (this.__completeListeners = []), this.__completeListeners.push(e))), this ); }, onError: function (e) { return ( null != e && (this.__errored ? e(this.__errorMessage) : this.__completed || (null == this.__errorListeners && (this.__errorListeners = []), this.__errorListeners.push(e))), this ); }, onProgress: function (e) { return ( null != e && (null == this.__progressListeners && (this.__progressListeners = []), this.__progressListeners.push(e)), this ); }, then: function (s) { if (this.__completed) return s(this.value); if (this.__errored) { var e = new bb(); return e.onError(this.__errorMessage), e; } var n = new gb(); return ( this.onError(CT(n, n.error)), this.onProgress(CT(n, n.progress)), this.onComplete(function (e) { var t = s(e); t.onError(CT(n, n.error)), t.onComplete(CT(n, n.complete)); }), n.future ); }, get_isCompleted: function () { return !!this.__completed || this.__errored; }, __class__: bb, __properties__: { get_isCompleted: "get_isCompleted" }, }); var mb = function () { (this.total = 0), (this.loaded = 0), (this.onError = new lb()), (this.onProgress = new nb()), (this.onComplete = new Vp()), this.onProgress.add(CT(this, this.update)); }; ((s["lime.app.Preloader"] = mb).__name__ = ["lime", "app", "Preloader"]), (mb.prototype = { create: function (e) {}, load: function (e, t) { for (var s = null, n = Yp.cache.version, i = 0, r = e.length; i < r; ) { var o = i++; switch (((s = e[o]), t[o])) { case "BINARY": if (!mb.loaders.exists(s)) { var a = new nm(); mb.loaders.set(s, a), this.total++; } break; case "FONT": this.total++, this.loadFont(s); break; case "IMAGE": if (!mb.images.exists(s)) { var l = new Image(); mb.images.set(s, l), (l.crossOrigin = "Anonymous"), (l.onload = CT(this, this.image_onLoad)), (l.onerror = CT(this, this.image_onError)), (l.src = s + "?" + n), this.total++; } break; case "TEXT": if (!mb.loaders.exists(s)) { var h = new nm(); (h.responseType = "text"), mb.loaders.set(s, h), this.total++; } } } for (var _ = mb.loaders.keys(); _.hasNext(); ) { var u = _.next(), d = mb.loaders; (null != NT[u] ? d.getReserved(u) : d.h[u]) .load(u + "?" + n) .onComplete(CT(this, this.loader_onComplete)) .onError(CT(this, this.loader_onError)); } 0 == this.total && this.start(); }, loadFont: function (t) { var s = this; if (window.document.fonts && CT((AT = window.document.fonts), AT.load)) window.document.fonts.load("1em '" + t + "'").then(function (e) { s.loaded++, s.onProgress.dispatch(s.loaded, s.total, t), s.loaded == s.total && s.start(); }); else { var e = window.document.createElement("span"); e.innerHTML = "giItT1WQy@!-/#"; var n = e.style; (n.position = "absolute"), (n.left = "-10000px"), (n.top = "-10000px"), (n.fontSize = "300px"), (n.fontFamily = "Blank"), (n.fontVariant = "normal"), (n.fontStyle = "normal"), (n.fontWeight = "normal"), (n.letterSpacing = "0"), window.document.body.appendChild(e); var i = e.offsetWidth; n.fontFamily = "'" + t + "', Blank"; var r = null, o = !1, a = 0, l = function () { return ( (a += 1), (e.offsetWidth != i || 200 < a) && (o ? (s.loaded++, null != r && window.clearInterval(r), e.parentNode.removeChild(e), (e = null), s.onProgress.dispatch(s.loaded, s.total, null), s.loaded == s.total && s.start(), !0) : !(o = !0)) ); }; l() || (r = window.setInterval(l, 50)); } }, start: function () { (this.complete = !0), this.onComplete.dispatch(); }, update: function (e, t, s) {}, image_onLoad: function (e) { this.loaded++, this.onProgress.dispatch(this.loaded, this.total, e), this.loaded == this.total && this.start(); }, image_onError: function (e) { this.onError.dispatch(e.target.src), t.console.error("Error loading image: " + e.target.src), this.loaded++; }, loader_onComplete: function (e) { this.loaded++, this.onProgress.dispatch(this.loaded, this.total, null), this.loaded == this.total && this.start(); }, loader_onError: function (e) { this.onError.dispatch(e); }, __class__: mb, }); var gb = function () { this.future = new bb(); }; ((s["lime.app.Promise"] = gb).__name__ = ["lime", "app", "Promise"]), (gb.prototype = { complete: function (e) { if ( !this.future.__errored && ((this.future.__completed = !0), (this.future.value = e), null != this.future.__completeListeners) ) { for (var t = 0, s = this.future.__completeListeners; t < s.length; ) { var n = s[t]; ++t, n(e); } this.future.__completeListeners = null; } return this; }, completeWith: function (e) { return ( e.onComplete(CT(this, this.complete)), e.onError(CT(this, this.error)), e.onProgress(CT(this, this.progress)), this ); }, error: function (e) { if ( !this.future.__completed && ((this.future.__errored = !0), (this.future.__errorMessage = e), null != this.future.__errorListeners) ) { for (var t = 0, s = this.future.__errorListeners; t < s.length; ) { var n = s[t]; ++t, n(e); } this.future.__errorListeners = null; } return this; }, progress: function (e) { if ( !this.future.__errored && !this.future.__completed && null != this.future.__progressListeners ) for (var t = 0, s = this.future.__progressListeners; t < s.length; ) { var n = s[t]; ++t, n(e); } return this; }, get_isCompleted: function () { return this.future.get_isCompleted(); }, __class__: gb, __properties__: { get_isCompleted: "get_isCompleted" }, }); var wb = function () { (this.EXPONENT_DISTANCE_CLAMPED = 53254), (this.EXPONENT_DISTANCE = 53253), (this.LINEAR_DISTANCE_CLAMPED = 53252), (this.LINEAR_DISTANCE = 53251), (this.INVERSE_DISTANCE_CLAMPED = 53250), (this.INVERSE_DISTANCE = 53249), (this.DISTANCE_MODEL = 53248), (this.DOPPLER_VELOCITY = 49153), (this.SPEED_OF_SOUND = 49155), (this.DOPPLER_FACTOR = 49152), (this.EXTENSIONS = 45060), (this.RENDERER = 45059), (this.VERSION = 45058), (this.VENDOR = 45057), (this.OUT_OF_MEMORY = 40965), (this.INVALID_OPERATION = 40964), (this.INVALID_VALUE = 40963), (this.INVALID_ENUM = 40962), (this.INVALID_NAME = 40961), (this.NO_ERROR = 0), (this.SIZE = 8196), (this.CHANNELS = 8195), (this.BITS = 8194), (this.FREQUENCY = 8193), (this.FORMAT_STEREO16 = 4355), (this.FORMAT_STEREO8 = 4354), (this.FORMAT_MONO16 = 4353), (this.FORMAT_MONO8 = 4352), (this.UNDETERMINED = 4144), (this.STREAMING = 4137), (this.STATIC = 4136), (this.SOURCE_TYPE = 4135), (this.BYTE_OFFSET = 4134), (this.SAMPLE_OFFSET = 4133), (this.SEC_OFFSET = 4132), (this.MAX_DISTANCE = 4131), (this.CONE_OUTER_GAIN = 4130), (this.ROLLOFF_FACTOR = 4129), (this.REFERENCE_DISTANCE = 4128), (this.BUFFERS_PROCESSED = 4118), (this.BUFFERS_QUEUED = 4117), (this.STOPPED = 4116), (this.PAUSED = 4115), (this.PLAYING = 4114), (this.INITIAL = 4113), (this.SOURCE_STATE = 4112), (this.ORIENTATION = 4111), (this.MAX_GAIN = 4110), (this.MIN_GAIN = 4109), (this.GAIN = 4106), (this.BUFFER = 4105), (this.LOOPING = 4103), (this.VELOCITY = 4102), (this.DIRECTION = 4101), (this.POSITION = 4100), (this.PITCH = 4099), (this.CONE_OUTER_ANGLE = 4098), (this.CONE_INNER_ANGLE = 4097), (this.SOURCE_RELATIVE = 514), (this.TRUE = 1), (this.FALSE = 0), (this.NONE = 0); }; ((s["lime.audio.ALAudioContext"] = wb).__name__ = [ "lime", "audio", "ALAudioContext", ]), (wb.prototype = { bufferData: function (e, t, s, n, i) { Ab.bufferData(e, t, s, n, i); }, buffer3f: function (e, t, s, n, i) { Ab.buffer3f(e, t, s, n, i); }, buffer3i: function (e, t, s, n, i) { Ab.buffer3i(e, t, s, n, i); }, bufferf: function (e, t, s) { Ab.bufferf(e, t, s); }, bufferfv: function (e, t, s) { Ab.bufferfv(e, t, s); }, bufferi: function (e, t, s) { Ab.bufferi(e, t, s); }, bufferiv: function (e, t, s) { Ab.bufferiv(e, t, s); }, deleteBuffer: function (e) { Ab.deleteBuffer(e); }, deleteBuffers: function (e) { Ab.deleteBuffers(e); }, deleteSource: function (e) { Ab.deleteSource(e); }, deleteSources: function (e) { Ab.deleteSources(e); }, disable: function (e) { Ab.disable(e); }, distanceModel: function (e) { Ab.distanceModel(e); }, dopplerFactor: function (e) { Ab.dopplerFactor(e); }, dopplerVelocity: function (e) { Ab.dopplerVelocity(e); }, enable: function (e) { Ab.enable(e); }, genSource: function () { return Ab.genSource(); }, genSources: function (e) { return Ab.genSources(e); }, genBuffer: function () { return Ab.genBuffer(); }, genBuffers: function (e) { return Ab.genBuffers(e); }, getBoolean: function (e) { return Ab.getBoolean(e); }, getBooleanv: function (e, t) { return null == t && (t = 1), Ab.getBooleanv(e, t); }, getBuffer3f: function (e, t) { return Ab.getBuffer3f(e, t); }, getBuffer3i: function (e, t) { return Ab.getBuffer3i(e, t); }, getBufferf: function (e, t) { return Ab.getBufferf(e, t); }, getBufferfv: function (e, t, s) { return null == s && (s = 1), Ab.getBufferfv(e, t, s); }, getBufferi: function (e, t) { return Ab.getBufferi(e, t); }, getBufferiv: function (e, t, s) { return null == s && (s = 1), Ab.getBufferiv(e, t, s); }, getDouble: function (e) { return Ab.getDouble(e); }, getDoublev: function (e, t) { return null == t && (t = 1), Ab.getDoublev(e, t); }, getEnumValue: function (e) { return Ab.getEnumValue(e); }, getError: function () { return Ab.getError(); }, getErrorString: function () { return Ab.getErrorString(); }, getFloat: function (e) { return Ab.getFloat(e); }, getFloatv: function (e, t) { return null == t && (t = 1), Ab.getFloatv(e, t); }, getInteger: function (e) { return Ab.getInteger(e); }, getIntegerv: function (e, t) { return null == t && (t = 1), Ab.getIntegerv(e, t); }, getListener3f: function (e) { return Ab.getListener3f(e); }, getListener3i: function (e) { return Ab.getListener3i(e); }, getListenerf: function (e) { return Ab.getListenerf(e); }, getListenerfv: function (e, t) { return null == t && (t = 1), Ab.getListenerfv(e, t); }, getListeneri: function (e) { return Ab.getListeneri(e); }, getListeneriv: function (e, t) { return null == t && (t = 1), Ab.getListeneriv(e, t); }, getProcAddress: function (e) { return Ab.getProcAddress(e); }, getSource3f: function (e, t) { return Ab.getSource3f(e, t); }, getSourcef: function (e, t) { return Ab.getSourcef(e, t); }, getSource3i: function (e, t) { return Ab.getSource3i(e, t); }, getSourcefv: function (e, t, s) { return null == s && (s = 1), Ab.getSourcefv(e, t); }, getSourcei: function (e, t) { return Ab.getSourcei(e, t); }, getSourceiv: function (e, t, s) { return null == s && (s = 1), Ab.getSourceiv(e, t, s); }, getString: function (e) { return Ab.getString(e); }, isBuffer: function (e) { return Ab.isBuffer(e); }, isEnabled: function (e) { return Ab.isEnabled(e); }, isExtensionPresent: function (e) { return Ab.isExtensionPresent(e); }, isSource: function (e) { return Ab.isSource(e); }, listener3f: function (e, t, s, n) { Ab.listener3f(e, t, s, n); }, listener3i: function (e, t, s, n) { Ab.listener3i(e, t, s, n); }, listenerf: function (e, t) { Ab.listenerf(e, t); }, listenerfv: function (e, t) { Ab.listenerfv(e, t); }, listeneri: function (e, t) { Ab.listeneri(e, t); }, listeneriv: function (e, t) { Ab.listeneriv(e, t); }, source3f: function (e, t, s, n, i) { Ab.source3f(e, t, s, n, i); }, source3i: function (e, t, s, n, i) { Ab.source3i(e, t, s, n, i); }, sourcef: function (e, t, s) { Ab.sourcef(e, t, s); }, sourcefv: function (e, t, s) { Ab.sourcefv(e, t, s); }, sourcei: function (e, t, s) { Ab.sourcei(e, t, s); }, sourceiv: function (e, t, s) { Ab.sourceiv(e, t, s); }, sourcePlay: function (e) { Ab.sourcePlay(e); }, sourcePlayv: function (e) { Ab.sourcePlayv(e); }, sourceStop: function (e) { Ab.sourceStop(e); }, sourceStopv: function (e) { Ab.sourceStopv(e); }, sourceRewind: function (e) { Ab.sourceRewind(e); }, sourceRewindv: function (e) { Ab.sourceRewindv(e); }, sourcePause: function (e) { Ab.sourcePause(e); }, sourcePausev: function (e) { Ab.sourcePausev(e); }, sourceQueueBuffer: function (e, t) { Ab.sourceQueueBuffer(e, t); }, sourceQueueBuffers: function (e, t, s) { Ab.sourceQueueBuffers(e, t, s); }, sourceUnqueueBuffer: function (e) { return Ab.sourceUnqueueBuffer(e); }, sourceUnqueueBuffers: function (e, t) { return Ab.sourceUnqueueBuffers(e, t); }, speedOfSound: function (e) { Ab.speedOfSound(e); }, __class__: wb, }); var vb = function () { (this.ALL_DEVICES_SPECIFIER = 4115), (this.DEFAULT_ALL_DEVICES_SPECIFIER = 4114), (this.ENUMERATE_ALL_EXT = 1), (this.EXTENSIONS = 4102), (this.DEVICE_SPECIFIER = 4101), (this.DEFAULT_DEVICE_SPECIFIER = 4100), (this.ALL_ATTRIBUTES = 4099), (this.ATTRIBUTES_SIZE = 4098), (this.OUT_OF_MEMORY = 40965), (this.INVALID_VALUE = 40964), (this.INVALID_ENUM = 40963), (this.INVALID_CONTEXT = 40962), (this.INVALID_DEVICE = 40961), (this.NO_ERROR = 0), (this.STEREO_SOURCES = 4113), (this.MONO_SOURCES = 4112), (this.SYNC = 4105), (this.REFRESH = 4104), (this.FREQUENCY = 4103), (this.TRUE = 1), (this.FALSE = 0); }; ((s["lime.audio.ALCAudioContext"] = vb).__name__ = [ "lime", "audio", "ALCAudioContext", ]), (vb.prototype = { closeDevice: function (e) { return Ib.closeDevice(e); }, createContext: function (e, t) { return Ib.createContext(e, t); }, destroyContext: function (e) { Ib.destroyContext(e); }, getContextsDevice: function (e) { return Ib.getContextsDevice(e); }, getCurrentContext: function () { return Ib.getCurrentContext(); }, getError: function (e) { return Ib.getError(e); }, getErrorString: function (e) { return Ib.getErrorString(e); }, getIntegerv: function (e, t, s) { return null == s && (s = 1), Ib.getIntegerv(e, t, s); }, getString: function (e, t) { return Ib.getString(e, t); }, makeContextCurrent: function (e) { return Ib.makeContextCurrent(e); }, openDevice: function (e) { return Ib.openDevice(e); }, processContext: function (e) { Ib.processContext(e); }, suspendContext: function (e) { Ib.suspendContext(e); }, __class__: vb, }); var yb = function () { this.id = 0; }; ((s["lime.audio.AudioBuffer"] = yb).__name__ = [ "lime", "audio", "AudioBuffer", ]), (yb.fromBytes = function (e) { return null; }), (yb.fromFile = function (e) { return null; }), (yb.fromURL = function (e, t) { null != e && -1 == e.indexOf("http://") && -1 == e.indexOf("https://") && t(yb.fromFile(e)); }), (yb.prototype = { dispose: function () {}, __class__: yb }); var Tb = (s["lime.audio.AudioContext"] = { __ename__: ["lime", "audio", "AudioContext"], __constructs__: ["OPENAL", "HTML5", "WEB", "FLASH", "CUSTOM"], }); (Tb.OPENAL = function (e, t) { var s = ["OPENAL", 0, e, t]; return (s.__enum__ = Tb), (s.toString = c), s; }), (Tb.HTML5 = function (e) { var t = ["HTML5", 1, e]; return (t.__enum__ = Tb), (t.toString = c), t; }), (Tb.WEB = function (e) { var t = ["WEB", 2, e]; return (t.__enum__ = Tb), (t.toString = c), t; }), (Tb.FLASH = function (e) { var t = ["FLASH", 3, e]; return (t.__enum__ = Tb), (t.toString = c), t; }), (Tb.CUSTOM = function (e) { var t = ["CUSTOM", 4, e]; return (t.__enum__ = Tb), (t.toString = c), t; }); var Sb = function () {}; ((s["lime.audio.AudioManager"] = Sb).__name__ = [ "lime", "audio", "AudioManager", ]), (Sb.context = null), (Sb.init = function (e) { if (null == Sb.context) if (null == e) try { (window.AudioContext = window.AudioContext || window.webkitAudioContext), (Sb.context = Tb.WEB(new AudioContext())); } catch (e) { (jf.lastException = e), (Sb.context = Tb.HTML5(new Rb())); } else Sb.context = e; }), (Sb.resume = function () { if (null != Sb.context) { var e = Sb.context; if (0 == e[1]) { var t = e[2]; t.processContext(t.getCurrentContext()); } } }), (Sb.shutdown = function () { if (null != Sb.context) { var e = Sb.context; switch (e[1]) { case 0: var t = e[2], s = t.getCurrentContext(); if (null != s) { var n = t.getContextsDevice(s); t.makeContextCurrent(null), t.destroyContext(s), t.closeDevice(n); } break; case 2: e[2].close(); } Sb.context = null; } }), (Sb.suspend = function () { if (null != Sb.context) { var e = Sb.context; if (0 == e[1]) { var t = e[2]; t.suspendContext(t.getCurrentContext()); } } }); var xb = function (e, t, s, n) { null == n && (n = 0), null == t && (t = 0), (this.onComplete = new Vp()), (this.buffer = e), (this.offset = t), null != s && 0 != s && this.set_length(s), this.set_loops(n), (this.id = 0), null != e && this.init(); }; ((s["lime.audio.AudioSource"] = xb).__name__ = [ "lime", "audio", "AudioSource", ]), (xb.prototype = { dispose: function () { var e = Sb.context; if (0 == e[1]) { var t = e[3]; 0 != this.id && t.deleteSource(this.id); } }, init: function () { var e = Sb.context; if (0 == e[1]) { var t = e[3]; if (0 == this.buffer.id) { this.buffer.id = t.genBuffer(); var s = 0; 1 == this.buffer.channels ? 8 == this.buffer.bitsPerSample ? (s = t.FORMAT_MONO8) : 16 == this.buffer.bitsPerSample && (s = t.FORMAT_MONO16) : 2 == this.buffer.channels && (8 == this.buffer.bitsPerSample ? (s = t.FORMAT_STEREO8) : 16 == this.buffer.bitsPerSample && (s = t.FORMAT_STEREO16)), t.bufferData( this.buffer.id, s, this.buffer.data, this.buffer.data.length, this.buffer.sampleRate ); } (this.id = t.genSource()), t.sourcei(this.id, t.BUFFER, this.buffer.id); } }, play: function () {}, pause: function () {}, stop: function () {}, timer_onRun: function () {}, get_currentTime: function () { return 0; }, set_currentTime: function (e) { return (this.pauseTime = e); }, get_gain: function () { return 1; }, set_gain: function (e) { return 1; }, get_length: function () { return null != this.__length ? this.__length : 0; }, set_length: function (e) { return (this.__length = e); }, get_loops: function () { return this.__loops; }, set_loops: function (e) { return (this.__loops = e); }, __class__: xb, __properties__: { set_loops: "set_loops", get_loops: "get_loops", set_length: "set_length", get_length: "get_length", set_gain: "set_gain", get_gain: "get_gain", set_currentTime: "set_currentTime", get_currentTime: "get_currentTime", }, }); var Eb = function (e, t, s) { (this.start = e), (this.duration = t), (this.preload = s); }; ((s["lime.audio.ExtraSoundOptions"] = Eb).__name__ = [ "lime", "audio", "ExtraSoundOptions", ]), (Eb.prototype = { __class__: Eb }); var Pb = function () {}; ((s["lime.audio.FlashAudioContext"] = Pb).__name__ = [ "lime", "audio", "FlashAudioContext", ]), (Pb.prototype = { createBuffer: function (e, t) { return null; }, getBytesLoaded: function (e) { return 0; }, getBytesTotal: function (e) { return 0; }, getID3: function (e) { return null; }, getIsBuffering: function (e) { return !1; }, getIsURLInaccessible: function (e) { return !1; }, getLength: function (e) { return 0; }, getURL: function (e) { return null; }, close: function (e) {}, extract: function (e, t, s, n) { return null == n && (n = -1), 0; }, load: function (e, t, s) {}, loadCompressedDataFromByteArray: function (e, t, s) {}, loadPCMFromByteArray: function (e, t, s, n, i, r) { null == r && (r = 44100), null == i && (i = !0); }, play: function (e, t, s, n) { return null == s && (s = 0), null == t && (t = 0), null; }, __class__: Pb, }); var Rb = function () { (this.NETWORK_NO_SOURCE = 3), (this.NETWORK_LOADING = 2), (this.NETWORK_IDLE = 1), (this.NETWORK_EMPTY = 0), (this.HAVE_NOTHING = 0), (this.HAVE_METADATA = 1), (this.HAVE_FUTURE_DATA = 3), (this.HAVE_ENOUGH_DATA = 4), (this.HAVE_CURRENT_DATA = 2); }; ((s["lime.audio.HTML5AudioContext"] = Rb).__name__ = [ "lime", "audio", "HTML5AudioContext", ]), (Rb.prototype = { canPlayType: function (e, t) { return null != e.src ? e.src.canPlayType(t) : null; }, createBuffer: function (e) { var t = new yb(); return (t.src = new Audio()), (t.src.src = e), t; }, getAutoplay: function (e) { return null != e.src && e.src.autoplay; }, getBuffered: function (e) { return null != e.src ? e.src.buffered : null; }, getCurrentSrc: function (e) { return null != e.src ? e.src.currentSrc : null; }, getCurrentTime: function (e) { return null != e.src ? e.src.currentTime : 0; }, getDefaultPlaybackRate: function (e) { return null != e.src ? e.src.defaultPlaybackRate : 1; }, getDuration: function (e) { return null != e.src ? e.src.duration : 0; }, getEnded: function (e) { return null != e.src && e.src.ended; }, getError: function (e) { return null != e.src ? e.src.error : null; }, getLoop: function (e) { return null != e.src && e.src.loop; }, getMuted: function (e) { return null != e.src && e.src.muted; }, getNetworkState: function (e) { return null != e.src ? e.src.networkState : 0; }, getPaused: function (e) { return null != e.src && e.src.paused; }, getPlaybackRate: function (e) { return null != e.src ? e.src.playbackRate : 1; }, getPlayed: function (e) { return null != e.src ? e.src.played : null; }, getPreload: function (e) { return null != e.src ? e.src.preload : null; }, getReadyState: function (e) { return null != e.src ? e.src.readyState : 0; }, getSeekable: function (e) { return null != e.src ? e.src.seekable : null; }, getSeeking: function (e) { return null != e.src && e.src.seeking; }, getSrc: function (e) { return null != e.src ? e.src.src : null; }, getStartTime: function (e) { return null != e.src ? e.src.playbackRate : 0; }, getVolume: function (e) { return null != e.src ? e.src.volume : 1; }, load: function (e) { null == e.src || e.src.load(); }, pause: function (e) { null == e.src || e.src.pause(); }, play: function (e) { null == e.src || e.src.play(); }, setAutoplay: function (e, t) { null != e.src && (e.src.autoplay = t); }, setCurrentTime: function (e, t) { null != e.src && (e.src.currentTime = t); }, setDefaultPlaybackRate: function (e, t) { null != e.src && (e.src.defaultPlaybackRate = t); }, setLoop: function (e, t) { null != e.src && (e.src.loop = t); }, setMuted: function (e, t) { null != e.src && (e.src.muted = t); }, setPlaybackRate: function (e, t) { null != e.src && (e.src.playbackRate = t); }, setPreload: function (e, t) { null != e.src && (e.src.preload = t); }, setSrc: function (e, t) { null != e.src && (e.src.src = t); }, setVolume: function (e, t) { null != e.src && (e.src.volume = t); }, __class__: Rb, }); var Ab = function () {}; ((s["lime.audio.openal.AL"] = Ab).__name__ = [ "lime", "audio", "openal", "AL", ]), (Ab.bufferData = function (e, t, s, n, i) {}), (Ab.buffer3f = function (e, t, s, n, i) {}), (Ab.buffer3i = function (e, t, s, n, i) {}), (Ab.bufferf = function (e, t, s) {}), (Ab.bufferfv = function (e, t, s) {}), (Ab.bufferi = function (e, t, s) {}), (Ab.bufferiv = function (e, t, s) {}), (Ab.deleteBuffer = function (e) {}), (Ab.deleteBuffers = function (e) {}), (Ab.deleteSource = function (e) {}), (Ab.deleteSources = function (e) {}), (Ab.disable = function (e) {}), (Ab.distanceModel = function (e) {}), (Ab.dopplerFactor = function (e) {}), (Ab.dopplerVelocity = function (e) {}), (Ab.enable = function (e) {}), (Ab.genSource = function () { return 0; }), (Ab.genSources = function (e) { return null; }), (Ab.genBuffer = function () { return 0; }), (Ab.genBuffers = function (e) { return null; }), (Ab.getBoolean = function (e) { return !1; }), (Ab.getBooleanv = function (e, t) { return null == t && (t = 1), null; }), (Ab.getBuffer3f = function (e, t) { return null; }), (Ab.getBuffer3i = function (e, t) { return null; }), (Ab.getBufferf = function (e, t) { return 0; }), (Ab.getBufferfv = function (e, t, s) { return null == s && (s = 1), null; }), (Ab.getBufferi = function (e, t) { return 0; }), (Ab.getBufferiv = function (e, t, s) { return null == s && (s = 1), null; }), (Ab.getDouble = function (e) { return 0; }), (Ab.getDoublev = function (e, t) { return null == t && (t = 1), null; }), (Ab.getEnumValue = function (e) { return 0; }), (Ab.getError = function () { return 0; }), (Ab.getErrorString = function () { switch (Ab.getError()) { case 40961: return "INVALID_NAME: Invalid parameter name"; case 40962: return "INVALID_ENUM: Invalid enum value"; case 40963: return "INVALID_VALUE: Invalid parameter value"; case 40964: return "INVALID_OPERATION: Illegal operation or call"; case 40965: return "OUT_OF_MEMORY: OpenAL has run out of memory"; default: return ""; } }), (Ab.getFloat = function (e) { return 0; }), (Ab.getFloatv = function (e, t) { return null == t && (t = 1), null; }), (Ab.getInteger = function (e) { return 0; }), (Ab.getIntegerv = function (e, t) { return null == t && (t = 1), null; }), (Ab.getListener3f = function (e) { return null; }), (Ab.getListener3i = function (e) { return null; }), (Ab.getListenerf = function (e) { return 0; }), (Ab.getListenerfv = function (e, t) { return null == t && (t = 1), null; }), (Ab.getListeneri = function (e) { return 0; }), (Ab.getListeneriv = function (e, t) { return null == t && (t = 1), null; }), (Ab.getProcAddress = function (e) { return null; }), (Ab.getSource3f = function (e, t) { return null; }), (Ab.getSourcef = function (e, t) { return 0; }), (Ab.getSource3i = function (e, t) { return null; }), (Ab.getSourcefv = function (e, t, s) { return null == s && (s = 1), null; }), (Ab.getSourcei = function (e, t) { return 0; }), (Ab.getSourceiv = function (e, t, s) { return null == s && (s = 1), null; }), (Ab.getString = function (e) { return null; }), (Ab.isBuffer = function (e) { return !1; }), (Ab.isEnabled = function (e) { return !1; }), (Ab.isExtensionPresent = function (e) { return !1; }), (Ab.isSource = function (e) { return !1; }), (Ab.listener3f = function (e, t, s, n) {}), (Ab.listener3i = function (e, t, s, n) {}), (Ab.listenerf = function (e, t) {}), (Ab.listenerfv = function (e, t) {}), (Ab.listeneri = function (e, t) {}), (Ab.listeneriv = function (e, t) {}), (Ab.source3f = function (e, t, s, n, i) {}), (Ab.source3i = function (e, t, s, n, i) {}), (Ab.sourcef = function (e, t, s) {}), (Ab.sourcefv = function (e, t, s) {}), (Ab.sourcei = function (e, t, s) {}), (Ab.sourceiv = function (e, t, s) {}), (Ab.sourcePlay = function (e) {}), (Ab.sourcePlayv = function (e) {}), (Ab.sourceStop = function (e) {}), (Ab.sourceStopv = function (e) {}), (Ab.sourceRewind = function (e) {}), (Ab.sourceRewindv = function (e) {}), (Ab.sourcePause = function (e) {}), (Ab.sourcePausev = function (e) {}), (Ab.sourceQueueBuffer = function (e, t) {}), (Ab.sourceQueueBuffers = function (e, t, s) {}), (Ab.sourceUnqueueBuffer = function (e) { return 0; }), (Ab.sourceUnqueueBuffers = function (e, t) { return null; }), (Ab.speedOfSound = function (e) {}); var Ib = function () {}; ((s["lime.audio.openal.ALC"] = Ib).__name__ = [ "lime", "audio", "openal", "ALC", ]), (Ib.closeDevice = function (e) { return !1; }), (Ib.createContext = function (e, t) { return null; }), (Ib.destroyContext = function (e) {}), (Ib.getContextsDevice = function (e) { return null; }), (Ib.getCurrentContext = function () { return null; }), (Ib.getError = function (e) { return 0; }), (Ib.getErrorString = function (e) { switch (Ib.getError(e)) { case 40961: return "INVALID_DEVICE: Invalid device (or no device?)"; case 40962: return "INVALID_CONTEXT: Invalid context (or no context?)"; case 40963: return "INVALID_ENUM: Invalid enum value"; case 40964: return "INVALID_VALUE: Invalid param value"; case 40965: return "OUT_OF_MEMORY: OpenAL has run out of memory"; default: return ""; } }), (Ib.getIntegerv = function (e, t, s) { return null; }), (Ib.getString = function (e, t) { return null; }), (Ib.makeContextCurrent = function (e) { return !1; }), (Ib.openDevice = function (e) { return null; }), (Ib.processContext = function (e) {}), (Ib.suspendContext = function (e) {}); var Cb = {}; ((s["lime.audio.openal._ALContext.ALContext_Impl_"] = Cb).__name__ = [ "lime", "audio", "openal", "_ALContext", "ALContext_Impl_", ]), (Cb._new = function (e) { return e; }); var Bb = {}; ((s["lime.audio.openal._ALDevice.ALDevice_Impl_"] = Bb).__name__ = [ "lime", "audio", "openal", "_ALDevice", "ALDevice_Impl_", ]), (Bb._new = function (e) { return e; }); var Db = function () { (this.BROWSER_DEFAULT_WEBGL = 37444), (this.UNPACK_COLORSPACE_CONVERSION_WEBGL = 37443), (this.CONTEXT_LOST_WEBGL = 37442), (this.UNPACK_PREMULTIPLY_ALPHA_WEBGL = 37441), (this.UNPACK_FLIP_Y_WEBGL = 37440), (this.INVALID_FRAMEBUFFER_OPERATION = 1286), (this.MAX_RENDERBUFFER_SIZE = 34024), (this.RENDERBUFFER_BINDING = 36007), (this.FRAMEBUFFER_BINDING = 36006), (this.FRAMEBUFFER_UNSUPPORTED = 36061), (this.FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 36057), (this.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 36055), (this.FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 36054), (this.FRAMEBUFFER_COMPLETE = 36053), (this.NONE = 0), (this.DEPTH_STENCIL_ATTACHMENT = 33306), (this.STENCIL_ATTACHMENT = 36128), (this.DEPTH_ATTACHMENT = 36096), (this.COLOR_ATTACHMENT0 = 36064), (this.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 36051), (this.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 36050), (this.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 36049), (this.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 36048), (this.RENDERBUFFER_STENCIL_SIZE = 36181), (this.RENDERBUFFER_DEPTH_SIZE = 36180), (this.RENDERBUFFER_ALPHA_SIZE = 36179), (this.RENDERBUFFER_BLUE_SIZE = 36178), (this.RENDERBUFFER_GREEN_SIZE = 36177), (this.RENDERBUFFER_RED_SIZE = 36176), (this.RENDERBUFFER_INTERNAL_FORMAT = 36164), (this.RENDERBUFFER_HEIGHT = 36163), (this.RENDERBUFFER_WIDTH = 36162), (this.DEPTH_STENCIL = 34041), (this.STENCIL_INDEX8 = 36168), (this.STENCIL_INDEX = 6401), (this.DEPTH_COMPONENT16 = 33189), (this.RGB565 = 36194), (this.RGB5_A1 = 32855), (this.RGBA4 = 32854), (this.RENDERBUFFER = 36161), (this.FRAMEBUFFER = 36160), (this.HIGH_INT = 36341), (this.MEDIUM_INT = 36340), (this.LOW_INT = 36339), (this.HIGH_FLOAT = 36338), (this.MEDIUM_FLOAT = 36337), (this.LOW_FLOAT = 36336), (this.COMPILE_STATUS = 35713), (this.POINT_SPRITE = 34913), (this.VERTEX_PROGRAM_POINT_SIZE = 34370), (this.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 34975), (this.VERTEX_ATTRIB_ARRAY_POINTER = 34373), (this.VERTEX_ATTRIB_ARRAY_NORMALIZED = 34922), (this.VERTEX_ATTRIB_ARRAY_TYPE = 34341), (this.VERTEX_ATTRIB_ARRAY_STRIDE = 34340), (this.VERTEX_ATTRIB_ARRAY_SIZE = 34339), (this.VERTEX_ATTRIB_ARRAY_ENABLED = 34338), (this.SAMPLER_CUBE = 35680), (this.SAMPLER_2D = 35678), (this.FLOAT_MAT4 = 35676), (this.FLOAT_MAT3 = 35675), (this.FLOAT_MAT2 = 35674), (this.BOOL_VEC4 = 35673), (this.BOOL_VEC3 = 35672), (this.BOOL_VEC2 = 35671), (this.BOOL = 35670), (this.INT_VEC4 = 35669), (this.INT_VEC3 = 35668), (this.INT_VEC2 = 35667), (this.FLOAT_VEC4 = 35666), (this.FLOAT_VEC3 = 35665), (this.FLOAT_VEC2 = 35664), (this.MIRRORED_REPEAT = 33648), (this.CLAMP_TO_EDGE = 33071), (this.REPEAT = 10497), (this.ACTIVE_TEXTURE = 34016), (this.TEXTURE31 = 34015), (this.TEXTURE30 = 34014), (this.TEXTURE29 = 34013), (this.TEXTURE28 = 34012), (this.TEXTURE27 = 34011), (this.TEXTURE26 = 34010), (this.TEXTURE25 = 34009), (this.TEXTURE24 = 34008), (this.TEXTURE23 = 34007), (this.TEXTURE22 = 34006), (this.TEXTURE21 = 34005), (this.TEXTURE20 = 34004), (this.TEXTURE19 = 34003), (this.TEXTURE18 = 34002), (this.TEXTURE17 = 34001), (this.TEXTURE16 = 34e3), (this.TEXTURE15 = 33999), (this.TEXTURE14 = 33998), (this.TEXTURE13 = 33997), (this.TEXTURE12 = 33996), (this.TEXTURE11 = 33995), (this.TEXTURE10 = 33994), (this.TEXTURE9 = 33993), (this.TEXTURE8 = 33992), (this.TEXTURE7 = 33991), (this.TEXTURE6 = 33990), (this.TEXTURE5 = 33989), (this.TEXTURE4 = 33988), (this.TEXTURE3 = 33987), (this.TEXTURE2 = 33986), (this.TEXTURE1 = 33985), (this.TEXTURE0 = 33984), (this.MAX_CUBE_MAP_TEXTURE_SIZE = 34076), (this.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074), (this.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073), (this.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072), (this.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071), (this.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070), (this.TEXTURE_CUBE_MAP_POSITIVE_X = 34069), (this.TEXTURE_BINDING_CUBE_MAP = 34068), (this.TEXTURE_CUBE_MAP = 34067), (this.TEXTURE = 5890), (this.TEXTURE_2D = 3553), (this.TEXTURE_WRAP_T = 10243), (this.TEXTURE_WRAP_S = 10242), (this.TEXTURE_MIN_FILTER = 10241), (this.TEXTURE_MAG_FILTER = 10240), (this.LINEAR_MIPMAP_LINEAR = 9987), (this.NEAREST_MIPMAP_LINEAR = 9986), (this.LINEAR_MIPMAP_NEAREST = 9985), (this.NEAREST_MIPMAP_NEAREST = 9984), (this.LINEAR = 9729), (this.NEAREST = 9728), (this.VERSION = 7938), (this.RENDERER = 7937), (this.VENDOR = 7936), (this.DECR_WRAP = 34056), (this.INCR_WRAP = 34055), (this.INVERT = 5386), (this.DECR = 7683), (this.INCR = 7682), (this.REPLACE = 7681), (this.KEEP = 7680), (this.ALWAYS = 519), (this.GEQUAL = 518), (this.NOTEQUAL = 517), (this.GREATER = 516), (this.LEQUAL = 515), (this.EQUAL = 514), (this.LESS = 513), (this.NEVER = 512), (this.CURRENT_PROGRAM = 35725), (this.SHADING_LANGUAGE_VERSION = 35724), (this.ACTIVE_ATTRIBUTES = 35721), (this.ACTIVE_UNIFORMS = 35718), (this.ATTACHED_SHADERS = 35717), (this.VALIDATE_STATUS = 35715), (this.LINK_STATUS = 35714), (this.DELETE_STATUS = 35712), (this.SHADER_TYPE = 35663), (this.MAX_FRAGMENT_UNIFORM_VECTORS = 36349), (this.MAX_TEXTURE_IMAGE_UNITS = 34930), (this.MAX_VERTEX_TEXTURE_IMAGE_UNITS = 35660), (this.MAX_COMBINED_TEXTURE_IMAGE_UNITS = 35661), (this.MAX_VARYING_VECTORS = 36348), (this.MAX_VERTEX_UNIFORM_VECTORS = 36347), (this.MAX_VERTEX_ATTRIBS = 34921), (this.VERTEX_SHADER = 35633), (this.FRAGMENT_SHADER = 35632), (this.UNSIGNED_SHORT_5_6_5 = 33635), (this.UNSIGNED_SHORT_5_5_5_1 = 32820), (this.UNSIGNED_SHORT_4_4_4_4 = 32819), (this.LUMINANCE_ALPHA = 6410), (this.LUMINANCE = 6409), (this.BGRA_EXT = 32993), (this.BGR_EXT = 32992), (this.RGBA = 6408), (this.RGB = 6407), (this.ALPHA = 6406), (this.DEPTH_COMPONENT = 6402), (this.FLOAT = 5126), (this.UNSIGNED_INT = 5125), (this.INT = 5124), (this.UNSIGNED_SHORT = 5123), (this.SHORT = 5122), (this.UNSIGNED_BYTE = 5121), (this.BYTE = 5120), (this.GENERATE_MIPMAP_HINT = 33170), (this.NICEST = 4354), (this.FASTEST = 4353), (this.DONT_CARE = 4352), (this.COMPRESSED_TEXTURE_FORMATS = 34467), (this.SAMPLE_COVERAGE_INVERT = 32939), (this.SAMPLE_COVERAGE_VALUE = 32938), (this.SAMPLES = 32937), (this.SAMPLE_BUFFERS = 32936), (this.TEXTURE_BINDING_2D = 32873), (this.POLYGON_OFFSET_FACTOR = 32824), (this.POLYGON_OFFSET_UNITS = 10752), (this.STENCIL_BITS = 3415), (this.DEPTH_BITS = 3414), (this.ALPHA_BITS = 3413), (this.BLUE_BITS = 3412), (this.GREEN_BITS = 3411), (this.RED_BITS = 3410), (this.SUBPIXEL_BITS = 3408), (this.MAX_VIEWPORT_DIMS = 3386), (this.MAX_TEXTURE_SIZE = 3379), (this.PACK_ALIGNMENT = 3333), (this.UNPACK_ALIGNMENT = 3317), (this.COLOR_WRITEMASK = 3107), (this.COLOR_CLEAR_VALUE = 3106), (this.SCISSOR_BOX = 3088), (this.VIEWPORT = 2978), (this.STENCIL_BACK_WRITEMASK = 36005), (this.STENCIL_BACK_VALUE_MASK = 36004), (this.STENCIL_BACK_REF = 36003), (this.STENCIL_BACK_PASS_DEPTH_PASS = 34819), (this.STENCIL_BACK_PASS_DEPTH_FAIL = 34818), (this.STENCIL_BACK_FAIL = 34817), (this.STENCIL_BACK_FUNC = 34816), (this.STENCIL_WRITEMASK = 2968), (this.STENCIL_VALUE_MASK = 2963), (this.STENCIL_REF = 2967), (this.STENCIL_PASS_DEPTH_PASS = 2966), (this.STENCIL_PASS_DEPTH_FAIL = 2965), (this.STENCIL_FAIL = 2964), (this.STENCIL_FUNC = 2962), (this.STENCIL_CLEAR_VALUE = 2961), (this.DEPTH_FUNC = 2932), (this.DEPTH_CLEAR_VALUE = 2931), (this.DEPTH_WRITEMASK = 2930), (this.DEPTH_RANGE = 2928), (this.FRONT_FACE = 2886), (this.CULL_FACE_MODE = 2885), (this.ALIASED_LINE_WIDTH_RANGE = 33902), (this.ALIASED_POINT_SIZE_RANGE = 33901), (this.LINE_WIDTH = 2849), (this.CCW = 2305), (this.CW = 2304), (this.OUT_OF_MEMORY = 1285), (this.INVALID_OPERATION = 1282), (this.INVALID_VALUE = 1281), (this.INVALID_ENUM = 1280), (this.NO_ERROR = 0), (this.SAMPLE_COVERAGE = 32928), (this.SAMPLE_ALPHA_TO_COVERAGE = 32926), (this.POLYGON_OFFSET_FILL = 32823), (this.SCISSOR_TEST = 3089), (this.DEPTH_TEST = 2929), (this.STENCIL_TEST = 2960), (this.DITHER = 3024), (this.BLEND = 3042), (this.CULL_FACE = 2884), (this.FRONT_AND_BACK = 1032), (this.BACK = 1029), (this.FRONT = 1028), (this.CURRENT_VERTEX_ATTRIB = 34342), (this.BUFFER_USAGE = 34661), (this.BUFFER_SIZE = 34660), (this.DYNAMIC_DRAW = 35048), (this.STATIC_DRAW = 35044), (this.STREAM_DRAW = 35040), (this.ELEMENT_ARRAY_BUFFER_BINDING = 34965), (this.ARRAY_BUFFER_BINDING = 34964), (this.ELEMENT_ARRAY_BUFFER = 34963), (this.ARRAY_BUFFER = 34962), (this.BLEND_COLOR = 32773), (this.ONE_MINUS_CONSTANT_ALPHA = 32772), (this.CONSTANT_ALPHA = 32771), (this.ONE_MINUS_CONSTANT_COLOR = 32770), (this.CONSTANT_COLOR = 32769), (this.BLEND_SRC_ALPHA = 32971), (this.BLEND_DST_ALPHA = 32970), (this.BLEND_SRC_RGB = 32969), (this.BLEND_DST_RGB = 32968), (this.FUNC_REVERSE_SUBTRACT = 32779), (this.FUNC_SUBTRACT = 32778), (this.BLEND_EQUATION_ALPHA = 34877), (this.BLEND_EQUATION_RGB = 32777), (this.BLEND_EQUATION = 32777), (this.FUNC_ADD = 32774), (this.SRC_ALPHA_SATURATE = 776), (this.ONE_MINUS_DST_COLOR = 775), (this.DST_COLOR = 774), (this.ONE_MINUS_DST_ALPHA = 773), (this.DST_ALPHA = 772), (this.ONE_MINUS_SRC_ALPHA = 771), (this.SRC_ALPHA = 770), (this.ONE_MINUS_SRC_COLOR = 769), (this.SRC_COLOR = 768), (this.ONE = 1), (this.ZERO = 0), (this.TRIANGLE_FAN = 6), (this.TRIANGLE_STRIP = 5), (this.TRIANGLES = 4), (this.LINE_STRIP = 3), (this.LINE_LOOP = 2), (this.LINES = 1), (this.POINTS = 0), (this.COLOR_BUFFER_BIT = 16384), (this.STENCIL_BUFFER_BIT = 1024), (this.DEPTH_BUFFER_BIT = 256); }; ((s["lime.graphics.GLRenderContext"] = Db).__name__ = [ "lime", "graphics", "GLRenderContext", ]), (Db.prototype = { activeTexture: function (e) { e != Vb.currentActiveTexture && (Vb.context.activeTexture(e), (Vb.currentActiveTexture = e)); }, attachShader: function (e, t) { Vb.context.attachShader(e, t); }, bindAttribLocation: function (e, t, s) { Vb.context.bindAttribLocation(e, t, s); }, bindBuffer: function (e, t) { Vb.context.bindBuffer(e, t); }, bindFramebuffer: function (e, t) { Vb.context.bindFramebuffer(e, t); }, bindRenderbuffer: function (e, t) { Vb.context.bindRenderbuffer(e, t); }, bindTexture: function (e, t) { Vb.currentBoundTexture[Vb.currentActiveTexture] != t && (Vb.context.bindTexture(e, t), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = t) || Vb.textureStateCache.exists(t) || Vb.textureStateCache.set(t, new lp())); }, blendColor: function (e, t, s, n) { Vb.context.blendColor(e, t, s, n); }, blendEquation: function (e) { Vb.context.blendEquation(e); }, blendEquationSeparate: function (e, t) { Vb.context.blendEquationSeparate(e, t); }, blendFunc: function (e, t) { Vb.context.blendFunc(e, t); }, blendFuncSeparate: function (e, t, s, n) { Vb.context.blendFuncSeparate(e, t, s, n); }, bufferData: function (e, t, s) { Vb.context.bufferData(e, t, s); }, bufferSubData: function (e, t, s) { Vb.context.bufferSubData(e, t, s); }, checkFramebufferStatus: function (e) { return Vb.context.checkFramebufferStatus(e); }, clear: function (e) { Vb.context.clear(e); }, clearColor: function (e, t, s, n) { Vb.context.clearColor(e, t, s, n); }, clearDepth: function (e) { Vb.context.clearDepth(e); }, clearStencil: function (e) { Vb.context.clearStencil(e); }, colorMask: function (e, t, s, n) { Vb.context.colorMask(e, t, s, n); }, compileShader: function (e) { Vb.context.compileShader(e); }, compressedTexImage2D: function (e, t, s, n, i, r, o) { Vb.context.compressedTexImage2D(e, t, s, n, i, r, o); }, compressedTexSubImage2D: function (e, t, s, n, i, r, o, a) { Vb.context.compressedTexSubImage2D(e, t, s, n, i, r, o, a); }, copyTexImage2D: function (e, t, s, n, i, r, o, a) { Vb.context.copyTexImage2D(e, t, s, n, i, r, o, a); }, copyTexSubImage2D: function (e, t, s, n, i, r, o, a) { Vb.context.copyTexSubImage2D(e, t, s, n, i, r, o, a); }, createBuffer: function () { return Vb.context.createBuffer(); }, createFramebuffer: function () { return Vb.context.createFramebuffer(); }, createProgram: function () { return Vb.context.createProgram(); }, createRenderbuffer: function () { return Vb.context.createRenderbuffer(); }, createShader: function (e) { return Vb.context.createShader(e); }, createTexture: function () { return Vb.context.createTexture(); }, cullFace: function (e) { Vb.context.cullFace(e); }, deleteBuffer: function (e) { Vb.context.deleteBuffer(e); }, deleteFramebuffer: function (e) { Vb.context.deleteFramebuffer(e); }, deleteProgram: function (e) { Vb.context.deleteProgram(e); }, deleteRenderbuffer: function (e) { Vb.context.deleteRenderbuffer(e); }, deleteShader: function (e) { Vb.context.deleteShader(e); }, deleteTexture: function (e) { Vb.textureStateCache.remove(e), Vb.context.deleteTexture(e); }, depthFunc: function (e) { Vb.context.depthFunc(e); }, depthMask: function (e) { Vb.context.depthMask(e); }, depthRange: function (e, t) { Vb.context.depthRange(e, t); }, detachShader: function (e, t) { Vb.context.detachShader(e, t); }, disable: function (e) { Vb.context.disable(e); }, disableVertexAttribArray: function (e) { Vb.context.disableVertexAttribArray(e); }, drawArrays: function (e, t, s) { Vb.context.drawArrays(e, t, s); }, drawElements: function (e, t, s, n) { Vb.context.drawElements(e, t, s, n); }, enable: function (e) { Vb.context.enable(e); }, enableVertexAttribArray: function (e) { Vb.context.enableVertexAttribArray(e); }, finish: function () { Vb.context.finish(); }, flush: function () { Vb.context.flush(); }, framebufferRenderbuffer: function (e, t, s, n) { Vb.context.framebufferRenderbuffer(e, t, s, n); }, framebufferTexture2D: function (e, t, s, n, i) { Vb.context.framebufferTexture2D(e, t, s, n, i); }, frontFace: function (e) { Vb.context.frontFace(e); }, generateMipmap: function (e) { Vb.context.generateMipmap(e); }, getActiveAttrib: function (e, t) { return Vb.context.getActiveAttrib(e, t); }, getActiveUniform: function (e, t) { return Vb.context.getActiveUniform(e, t); }, getAttachedShaders: function (e) { return Vb.context.getAttachedShaders(e); }, getAttribLocation: function (e, t) { return Vb.context.getAttribLocation(e, t); }, getBufferParameter: function (e, t) { return Vb.context.getBufferParameter(e, t); }, getContextAttributes: function () { return Vb.context.getContextAttributes(); }, getError: function () { return Vb.context.getError(); }, getExtension: function (e) { return Vb.context.getExtension(e); }, getFramebufferAttachmentParameter: function (e, t, s) { return Vb.context.getFramebufferAttachmentParameter(e, t, s); }, getParameter: function (e) { return Vb.context.getParameter(e); }, getProgramInfoLog: function (e) { return Vb.context.getProgramInfoLog(e); }, getProgramParameter: function (e, t) { return Vb.context.getProgramParameter(e, t); }, getRenderbufferParameter: function (e, t) { return Vb.context.getRenderbufferParameter(e, t); }, getShaderInfoLog: function (e) { return Vb.context.getShaderInfoLog(e); }, getShaderParameter: function (e, t) { return Vb.context.getShaderParameter(e, t); }, getShaderPrecisionFormat: function (e, t) { return Vb.context.getShaderPrecisionFormat(e, t); }, getShaderSource: function (e) { return Vb.context.getShaderSource(e); }, getSupportedExtensions: function () { return Vb.context.getSupportedExtensions(); }, getTexParameter: function (e, t) { return Vb.context.getTexParameter(e, t); }, getUniform: function (e, t) { return Vb.context.getUniform(e, t); }, getUniformLocation: function (e, t) { return Vb.context.getUniformLocation(e, t); }, getVertexAttrib: function (e, t) { return Vb.context.getVertexAttrib(e, t); }, getVertexAttribOffset: function (e, t) { return Vb.context.getVertexAttribOffset(e, t); }, hint: function (e, t) { Vb.context.hint(e, t); }, isBuffer: function (e) { return Vb.context.isBuffer(e); }, isContextLost: function () { return Vb.context.isContextLost(); }, isEnabled: function (e) { return Vb.context.isEnabled(e); }, isFramebuffer: function (e) { return Vb.context.isFramebuffer(e); }, isProgram: function (e) { return Vb.context.isProgram(e); }, isRenderbuffer: function (e) { return Vb.context.isRenderbuffer(e); }, isShader: function (e) { return Vb.context.isShader(e); }, isTexture: function (e) { return Vb.context.isTexture(e); }, lineWidth: function (e) { Vb.context.lineWidth(e); }, linkProgram: function (e) { Vb.context.linkProgram(e); }, pixelStorei: function (e, t) { Vb.context.pixelStorei(e, t); }, polygonOffset: function (e, t) { Vb.context.polygonOffset(e, t); }, readPixels: function (e, t, s, n, i, r, o) { Vb.context.readPixels(e, t, s, n, i, r, o); }, renderbufferStorage: function (e, t, s, n) { Vb.context.renderbufferStorage(e, t, s, n); }, sampleCoverage: function (e, t) { Vb.context.sampleCoverage(e, t); }, scissor: function (e, t, s, n) { Vb.context.scissor(e, t, s, n); }, shaderSource: function (e, t) { Vb.context.shaderSource(e, t); }, stencilFunc: function (e, t, s) { Vb.context.stencilFunc(e, t, s); }, stencilFuncSeparate: function (e, t, s, n) { Vb.context.stencilFuncSeparate(e, t, s, n); }, stencilMask: function (e) { Vb.context.stencilMask(e); }, stencilMaskSeparate: function (e, t) { Vb.context.stencilMaskSeparate(e, t); }, stencilOp: function (e, t, s) { Vb.context.stencilOp(e, t, s); }, stencilOpSeparate: function (e, t, s, n) { Vb.context.stencilOpSeparate(e, t, s, n); }, texImage2D: function (e, t, s, n, i, r, o, a, l) { Vb.context.texImage2D(e, t, s, n, i, r, o, a, l); }, texImage2DWeb: function (e, t, s, n, i, r) { Vb.context.texImage2D(e, t, s, n, i, r); }, texParameterf: function (e, t, s) { Vb.context.texParameterf(e, t, s); }, texParameteri: function (e, t, s) { var n = Vb.currentBoundTexture[Vb.currentActiveTexture], i = Vb.textureStateCache.get(n); i.h[t] != s && (Vb.context.texParameteri(e, t, s), (i.h[t] = s)); }, texSubImage2D: function (e, t, s, n, i, r, o, a, l) { Vb.context.texSubImage2D(e, t, s, n, i, r, o, a, l); }, uniform1f: function (e, t) { Vb.context.uniform1f(e, t); }, uniform1fv: function (e, t) { Vb.context.uniform1fv(e, t); }, uniform1i: function (e, t) { Vb.context.uniform1i(e, t); }, uniform1iv: function (e, t) { Vb.context.uniform1iv(e, t); }, uniform2f: function (e, t, s) { Vb.context.uniform2f(e, t, s); }, uniform2fv: function (e, t) { Vb.context.uniform2fv(e, t); }, uniform2i: function (e, t, s) { Vb.context.uniform2i(e, t, s); }, uniform2iv: function (e, t) { Vb.context.uniform2iv(e, t); }, uniform3f: function (e, t, s, n) { Vb.context.uniform3f(e, t, s, n); }, uniform3fv: function (e, t) { Vb.context.uniform3fv(e, t); }, uniform3i: function (e, t, s, n) { Vb.context.uniform3i(e, t, s, n); }, uniform3iv: function (e, t) { Vb.context.uniform3iv(e, t); }, uniform4f: function (e, t, s, n, i) { Vb.context.uniform4f(e, t, s, n, i); }, uniform4fv: function (e, t) { Vb.context.uniform4fv(e, t); }, uniform4i: function (e, t, s, n, i) { Vb.context.uniform4i(e, t, s, n, i); }, uniform4iv: function (e, t) { Vb.context.uniform4iv(e, t); }, uniformMatrix2fv: function (e, t, s) { Vb.context.uniformMatrix2fv(e, t, s); }, uniformMatrix3fv: function (e, t, s) { Vb.context.uniformMatrix3fv(e, t, s); }, uniformMatrix4fv: function (e, t, s) { Vb.context.uniformMatrix4fv(e, t, s); }, useProgram: function (e) { var t = e; t != Vb.currentProgram && (Vb.context.useProgram(t), (t = Vb.currentProgram)); }, validateProgram: function (e) { Vb.context.validateProgram(e); }, vertexAttrib1f: function (e, t) { Vb.context.vertexAttrib1f(e, t); }, vertexAttrib1fv: function (e, t) { Vb.context.vertexAttrib1fv(e, t); }, vertexAttrib2f: function (e, t, s) { Vb.context.vertexAttrib2f(e, t, s); }, vertexAttrib2fv: function (e, t) { Vb.context.vertexAttrib2fv(e, t); }, vertexAttrib3f: function (e, t, s, n) { Vb.context.vertexAttrib3f(e, t, s, n); }, vertexAttrib3fv: function (e, t) { Vb.context.vertexAttrib3fv(e, t); }, vertexAttrib4f: function (e, t, s, n, i) { Vb.context.vertexAttrib4f(e, t, s, n, i); }, vertexAttrib4fv: function (e, t) { Vb.context.vertexAttrib4fv(e, t); }, vertexAttribPointer: function (e, t, s, n, i, r) { Vb.context.vertexAttribPointer(e, t, s, n, i, r); }, viewport: function (e, t, s, n) { Vb.context.viewport(e, t, s, n); }, get_version: function () { return 2; }, __class__: Db, __properties__: { get_version: "get_version" }, }); var kb = function (e, t, s, n, i, r, o) { if ( (null == i && (i = -1), null == n && (n = -1), null == s && (s = 0), null == t && (t = 0), (this.offsetX = t), (this.offsetY = s), (this.width = n), (this.height = i), null == o) ) if (null != Jp.current && null != Jp.current.renderers[0]) { Jp.current.renderers[0].context; this.type = Lb.DATA; } else this.type = Lb.DATA; else this.type = o; if (null == e) { if (0 < n && 0 < i) switch (this.type[1]) { case 0: (this.buffer = new Fb(null, n, i)), Yb.createCanvas(this, n, i), null != r && this.fillRect(new Jb(0, 0, n, i), r); break; case 1: var a, l = n * i * 4; (a = null != l ? new zT(l) : null), (this.buffer = new Fb(a, n, i)), null != r && this.fillRect(new Jb(0, 0, n, i), r); } } else this.__fromImageBuffer(e); }; ((s["lime.graphics.Image"] = kb).__name__ = ["lime", "graphics", "Image"]), (kb.__base64Encoder = null), (kb.fromBase64 = function (e, t, s) { if (null == e) return null; var n = new kb(); return n.__fromBase64(e, t, s), n; }), (kb.fromBitmapData = function (e) { return null == e ? null : De.getProperty(e, "image"); }), (kb.fromBytes = function (e, t) { if (null == e) return null; var s = new kb(); return s.__fromBytes(e, t), s; }), (kb.fromCanvas = function (e) { if (null == e) return null; var t = new Fb(null, e.width, e.height); return t.set_src(e), new kb(t); }), (kb.fromFile = function (e, t, s) { var n = new kb(); return n.__fromFile(e, t, s), n; }), (kb.fromImageElement = function (e) { if (null == e) return null; var t = new Fb(null, e.width, e.height); return t.set_src(e), new kb(t); }), (kb.__base64Encode = function (e) { var t; switch (e.length % 3) { case 1: t = "=="; break; case 2: t = "="; break; default: t = ""; } return ( null == kb.__base64Encoder && (kb.__base64Encoder = new sp(Lf.ofString(kb.__base64Chars))), kb.__base64Encoder.encodeBytes(e).toString() + t ); }), (kb.__isJPG = function (e) { return 255 == e.b[0] && 216 == e.b[1]; }), (kb.__isPNG = function (e) { return ( 137 == e.b[0] && 80 == e.b[1] && 78 == e.b[2] && 71 == e.b[3] && 13 == e.b[4] && 10 == e.b[5] && 26 == e.b[6] && 10 == e.b[7] ); }), (kb.__isGIF = function (e) { if (71 != e.b[0] || 73 != e.b[1] || 70 != e.b[2] || 56 != e.b[3]) return !1; var t = e.b[4]; return (55 == t || 57 == t) && 97 == e.b[5]; }), (kb.prototype = { clone: function () { if (null == this.buffer) return new kb( null, this.offsetX, this.offsetY, this.width, this.height, null, this.type ); this.type == Lb.CANVAS && null == this.buffer.__srcImage && (Yb.convertToCanvas(this), Yb.sync(this, !0)); var e = new kb( this.buffer.clone(), this.offsetX, this.offsetY, this.width, this.height, null, this.type ); return (e.dirty = this.dirty), e; }, colorTransform: function (e, t) { if (((e = this.__clipRect(e)), null != this.buffer && null != e)) switch (this.type[1]) { case 0: Yb.colorTransform(this, e, t); break; case 1: Yb.convertToData(this), Wb.colorTransform(this, e, t); break; case 2: e.offset(this.offsetX, this.offsetY), this.buffer.__srcBitmapData.colorTransform( e.__toFlashRectangle(), Kb.__toFlashColorTransform(t) ); } }, copyChannel: function (e, t, s, n, i) { if ( ((t = this.__clipRect(t)), null != this.buffer && null != t) && (i != Mb.ALPHA || this.get_transparent()) && !(t.width <= 0 || t.height <= 0) ) switch ( (t.x + t.width > e.width && (t.width = e.width - t.x), t.y + t.height > e.height && (t.height = e.height - t.y), this.type[1]) ) { case 0: Yb.copyChannel(this, e, t, s, n, i); break; case 1: Yb.convertToData(this), Yb.convertToData(e), Wb.copyChannel(this, e, t, s, n, i); break; case 2: var r, o; switch (n[1]) { case 0: r = 1; break; case 1: r = 2; break; case 2: r = 4; break; case 3: r = 8; } switch (i[1]) { case 0: o = 1; break; case 1: o = 2; break; case 2: o = 4; break; case 3: o = 8; } t.offset(e.offsetX, e.offsetY), s.offset(this.offsetX, this.offsetY), this.buffer.__srcBitmapData.copyChannel( e.buffer.get_src(), t.__toFlashRectangle(), s.__toFlashPoint(), r, o ); } }, copyPixels: function (e, t, s, n, i, r) { if ( (null == r && (r = !1), null != this.buffer && null != e) && !( t.width <= 0 || t.height <= 0 || this.width <= 0 || this.height <= 0 ) ) switch ( (t.x + t.width > e.width && (t.width = e.width - t.x), t.y + t.height > e.height && (t.height = e.height - t.y), t.x < 0 && ((t.width += t.x), (t.x = 0)), t.y < 0 && ((t.height += t.y), (t.y = 0)), s.x + t.width > this.width && (t.width = this.width - s.x), s.y + t.height > this.height && (t.height = this.height - s.y), s.x < 0 && ((t.width += s.x), (t.x = -s.x), (s.x = 0)), s.y < 0 && ((t.height += s.y), (t.y = -s.y), (s.y = 0)), this.type[1]) ) { case 0: Yb.convertToCanvas(this), Yb.copyPixels(this, e, t, s, n, i, r); break; case 1: Yb.convertToData(this), Yb.convertToData(e), Wb.copyPixels(this, e, t, s, n, i, r); break; case 2: t.offset(e.offsetX, e.offsetY), s.offset(this.offsetX, this.offsetY), null != n && null != i && i.offset(n.offsetX, n.offsetY), this.buffer.__srcBitmapData.copyPixels( e.buffer.__srcBitmapData, t.__toFlashRectangle(), s.__toFlashPoint(), null != n ? n.buffer.get_src() : null, null != i ? i.__toFlashPoint() : null, r ); } }, encode: function (e, t) { switch ((null == t && (t = 90), null == e && (e = "png"), e)) { case "bmp": return Gb.encode(this); case "jpeg": case "jpg": return Xb.encode(this, t); case "png": return Hb.encode(this); } return null; }, fillRect: function (e, t, s) { if (((e = this.__clipRect(e)), null != this.buffer && null != e)) { switch (this.type[1]) { case 0: Yb.fillRect(this, e, t, s); break; case 1: if ((Yb.convertToData(this), 0 == this.buffer.data.length)) return; Wb.fillRect(this, e, t, s); break; case 2: var n; if ((e.offset(this.offsetX, this.offsetY), null == s)) { n = ((255 & t) << 24) | ((255 & (t >> 24)) << 16) | ((255 & (t >> 16)) << 8) | (255 & (t >> 8)); } else switch (s) { case 1: n = t; break; case 2: n = ((255 & t) << 24) | ((255 & (t >> 8)) << 16) | ((255 & (t >> 16)) << 8) | (255 & (t >> 24)); break; default: n = ((255 & t) << 24) | ((255 & (t >> 24)) << 16) | ((255 & (t >> 16)) << 8) | (255 & (t >> 8)); } this.buffer.__srcBitmapData.fillRect(e.__toFlashRectangle(), n); } this.dirty = !0; } }, floodFill: function (e, t, s, n) { if (null != this.buffer) switch (this.type[1]) { case 0: Yb.floodFill(this, e, t, s, n); break; case 1: Yb.convertToData(this), Wb.floodFill(this, e, t, s, n); break; case 2: var i; if (null == n) { i = ((255 & s) << 24) | ((255 & (s >> 24)) << 16) | ((255 & (s >> 16)) << 8) | (255 & (s >> 8)); } else switch (n) { case 1: i = s; break; case 2: i = ((255 & s) << 24) | ((255 & (s >> 8)) << 16) | ((255 & (s >> 16)) << 8) | (255 & (s >> 24)); break; default: i = ((255 & s) << 24) | ((255 & (s >> 24)) << 16) | ((255 & (s >> 16)) << 8) | (255 & (s >> 8)); } this.buffer.__srcBitmapData.floodFill( e + this.offsetX, t + this.offsetY, i ); } }, getColorBoundsRect: function (e, t, s, n) { if ((null == s && (s = !0), null == this.buffer)) return null; switch (this.type[1]) { case 0: return ( Yb.convertToData(this), Wb.getColorBoundsRect(this, e, t, s, n) ); case 1: return Wb.getColorBoundsRect(this, e, t, s, n); case 2: var i = this.buffer.__srcBitmapData.getColorBoundsRect(e, t, s); return new Jb(i.x, i.y, i.width, i.height); default: return null; } }, getPixel: function (e, t, s) { if ( null == this.buffer || e < 0 || t < 0 || e >= this.width || t >= this.height ) return 0; switch (this.type[1]) { case 0: return Yb.getPixel(this, e, t, s); case 1: return Yb.convertToData(this), Wb.getPixel(this, e, t, s); case 2: var n = this.buffer.__srcBitmapData.getPixel( e + this.offsetX, t + this.offsetY ); if (null == s) { return ( ((255 & (n >> 16)) << 24) | ((255 & (n >> 8)) << 16) | ((255 & n) << 8) | (255 & (n >> 24)) ); } switch (s) { case 1: return n; case 2: return ( ((255 & n) << 24) | ((255 & (n >> 8)) << 16) | ((255 & (n >> 16)) << 8) | (255 & (n >> 24)) ); default: return ( ((255 & (n >> 16)) << 24) | ((255 & (n >> 8)) << 16) | ((255 & n) << 8) | (255 & (n >> 24)) ); } break; default: return 0; } }, getPixel32: function (e, t, s) { if ( null == this.buffer || e < 0 || t < 0 || e >= this.width || t >= this.height ) return 0; switch (this.type[1]) { case 0: return Yb.getPixel32(this, e, t, s); case 1: return Yb.convertToData(this), Wb.getPixel32(this, e, t, s); case 2: var n = this.buffer.__srcBitmapData.getPixel32( e + this.offsetX, t + this.offsetY ); if (null == s) { return ( ((255 & (n >> 16)) << 24) | ((255 & (n >> 8)) << 16) | ((255 & n) << 8) | (255 & (n >> 24)) ); } switch (s) { case 1: return n; case 2: return ( ((255 & n) << 24) | ((255 & (n >> 8)) << 16) | ((255 & (n >> 16)) << 8) | (255 & (n >> 24)) ); default: return ( ((255 & (n >> 16)) << 24) | ((255 & (n >> 8)) << 16) | ((255 & n) << 8) | (255 & (n >> 24)) ); } break; default: return 0; } }, getPixels: function (e, t) { if (null == this.buffer) return null; switch (this.type[1]) { case 0: return Yb.getPixels(this, e, t); case 1: return Yb.convertToData(this), Wb.getPixels(this, e, t); case 2: default: return null; } }, merge: function (e, t, s, n, i, r, o) { if (null != this.buffer && null != e) switch (this.type[1]) { case 0: Yb.convertToCanvas(this), Yb.merge(this, e, t, s, n, i, r, o); break; case 1: Yb.convertToData(this), Yb.convertToData(e), Wb.merge(this, e, t, s, n, i, r, o); break; case 2: t.offset(this.offsetX, this.offsetY), this.buffer.__srcBitmapData.merge( e.buffer.__srcBitmapData, t.__toFlashRectangle(), s.__toFlashPoint(), n, i, r, o ); break; default: return; } }, resize: function (e, t) { switch (this.type[1]) { case 0: Yb.resize(this, e, t); break; case 1: Wb.resize(this, e, t); } (this.buffer.width = e), (this.buffer.height = t), (this.offsetX = 0), (this.offsetY = 0), (this.width = e), (this.height = t); }, scroll: function (e, t) { if (null != this.buffer) switch (this.type[1]) { case 0: Yb.scroll(this, e, t); break; case 1: this.copyPixels(this, this.get_rect(), new Qb(e, t)); break; case 2: this.buffer.__srcBitmapData.scroll( e + this.offsetX, t + this.offsetX ); } }, setPixel: function (e, t, s, n) { if ( !( null == this.buffer || e < 0 || t < 0 || e >= this.width || t >= this.height ) ) switch (this.type[1]) { case 0: Yb.setPixel(this, e, t, s, n); break; case 1: Yb.convertToData(this), Wb.setPixel(this, e, t, s, n); break; case 2: var i; if (null == n) { i = ((255 & s) << 24) | ((255 & (s >> 24)) << 16) | ((255 & (s >> 16)) << 8) | (255 & (s >> 8)); } else switch (n) { case 1: i = s; break; case 2: i = ((255 & s) << 24) | ((255 & (s >> 8)) << 16) | ((255 & (s >> 16)) << 8) | (255 & (s >> 24)); break; default: i = ((255 & s) << 24) | ((255 & (s >> 24)) << 16) | ((255 & (s >> 16)) << 8) | (255 & (s >> 8)); } this.buffer.__srcBitmapData.setPixel( e + this.offsetX, t + this.offsetX, i ); } }, setPixel32: function (e, t, s, n) { if ( !( null == this.buffer || e < 0 || t < 0 || e >= this.width || t >= this.height ) ) switch (this.type[1]) { case 0: Yb.setPixel32(this, e, t, s, n); break; case 1: Yb.convertToData(this), Wb.setPixel32(this, e, t, s, n); break; case 2: var i; if (null == n) { i = ((255 & s) << 24) | ((255 & (s >> 24)) << 16) | ((255 & (s >> 16)) << 8) | (255 & (s >> 8)); } else switch (n) { case 1: i = s; break; case 2: i = ((255 & s) << 24) | ((255 & (s >> 8)) << 16) | ((255 & (s >> 16)) << 8) | (255 & (s >> 24)); break; default: i = ((255 & s) << 24) | ((255 & (s >> 24)) << 16) | ((255 & (s >> 16)) << 8) | (255 & (s >> 8)); } this.buffer.__srcBitmapData.setPixel32( e + this.offsetX, t + this.offsetY, i ); } }, setPixels: function (e, t, s) { if (((e = this.__clipRect(e)), null != this.buffer && null != e)) switch (this.type[1]) { case 0: Yb.setPixels(this, e, t, s); break; case 1: Yb.convertToData(this), Wb.setPixels(this, e, t, s); } }, threshold: function (e, t, s, n, i, r, o, a, l) { if ( (null == a && (a = !1), null == o && (o = -1), null == r && (r = 0), null == this.buffer || null == e || null == t) ) return 0; switch (this.type[1]) { case 0: case 1: return ( Yb.convertToData(this), Wb.threshold(this, e, t, s, n, i, r, o, a, l) ); case 2: var h, _; if (null == l) { h = ((255 & r) << 24) | ((255 & (r >> 24)) << 16) | ((255 & (r >> 16)) << 8) | (255 & (r >> 8)); } else switch (l) { case 1: h = r; break; case 2: h = ((255 & r) << 24) | ((255 & (r >> 8)) << 16) | ((255 & (r >> 16)) << 8) | (255 & (r >> 24)); break; default: h = ((255 & r) << 24) | ((255 & (r >> 24)) << 16) | ((255 & (r >> 16)) << 8) | (255 & (r >> 8)); } if (null == l) { _ = ((255 & o) << 24) | ((255 & (o >> 24)) << 16) | ((255 & (o >> 16)) << 8) | (255 & (o >> 8)); } else switch (l) { case 1: _ = o; break; case 2: _ = ((255 & o) << 24) | ((255 & (o >> 8)) << 16) | ((255 & (o >> 16)) << 8) | (255 & (o >> 24)); break; default: _ = ((255 & o) << 24) | ((255 & (o >> 24)) << 16) | ((255 & (o >> 16)) << 8) | (255 & (o >> 8)); } return ( t.offset(e.offsetX, e.offsetY), s.offset(this.offsetX, this.offsetY), this.buffer.__srcBitmapData.threshold( e.buffer.get_src(), t.__toFlashRectangle(), s.__toFlashPoint(), n, i, h, _, a ) ); } return 0; }, __clipRect: function (e) { return null == e ? null : e.x < 0 && ((e.width -= -e.x), (e.x = 0), e.x + e.width <= 0) ? null : e.y < 0 && ((e.height -= -e.y), (e.y = 0), e.y + e.height <= 0) ? null : e.x + e.width >= this.width && ((e.width -= e.x + e.width - this.width), e.width <= 0) ? null : e.y + e.height >= this.height && ((e.height -= e.y + e.height - this.height), e.height <= 0) ? null : e; }, __fromBase64: function (e, t, s) { var n = this, i = new Image(); i.crossOrigin = "Anonymous"; i.addEventListener( "load", function (e) { (n.buffer = new Fb(null, i.width, i.height)), (n.buffer.__srcImage = i), (n.offsetX = 0), (n.offsetY = 0), (n.width = n.buffer.width), (n.height = n.buffer.height), null != s && s(n); }, !1 ), (i.src = "data:" + t + ";base64," + e); }, __fromBytes: function (e, t) { var s = ""; if (kb.__isPNG(e)) s = "image/png"; else if (kb.__isJPG(e)) s = "image/jpeg"; else { if (!kb.__isGIF(e)) throw new Mp( "Image tried to read PNG/JPG Bytes, but found an invalid header." ); s = "image/gif"; } this.__fromBase64(kb.__base64Encode(e), s, t); }, __fromFile: function (e, t, s) { var n = this, i = new Image(); (i.crossOrigin = "Anonymous"), (i.onload = function (e) { (n.buffer = new Fb(null, i.width, i.height)), (n.buffer.__srcImage = i), (n.width = i.width), (n.height = i.height), null != t && t(n); }), (i.onerror = function (e) { null != s && s(); }), (i.src = e); i.complete; }, __fromImageBuffer: function (e) { null != (this.buffer = e) && (-1 == this.width && (this.width = e.width), -1 == this.height && (this.height = e.height)); }, get_data: function () { return ( null == this.buffer.data && 0 < this.buffer.width && 0 < this.buffer.height && (Yb.convertToCanvas(this), Yb.sync(this, !1), Yb.createImageData(this)), this.buffer.data ); }, set_data: function (e) { return (this.buffer.data = e); }, get_format: function () { return this.buffer.format; }, set_format: function (e) { this.buffer.format != e && 1 == this.type[1] && Wb.setFormat(this, e); return (this.buffer.format = e); }, get_powerOfTwo: function () { return ( 0 != this.buffer.width && (this.buffer.width & (1 + ~this.buffer.width)) == this.buffer.width && 0 != this.buffer.height && (this.buffer.height & (1 + ~this.buffer.height)) == this.buffer.height ); }, set_powerOfTwo: function (e) { if (e != this.get_powerOfTwo()) { for (var t = 1, s = 1; t < this.buffer.width; ) t <<= 1; for (; s < this.buffer.height; ) s <<= 1; switch (this.type[1]) { case 0: break; case 1: Wb.resizeBuffer(this, t, s); } } return e; }, get_premultiplied: function () { return this.buffer.premultiplied; }, set_premultiplied: function (e) { if (e && !this.buffer.premultiplied) 1 == this.type[1] && (Yb.convertToData(this), Wb.multiplyAlpha(this)); else if (!e && this.buffer.premultiplied) { 1 == this.type[1] && (Yb.convertToData(this), Wb.unmultiplyAlpha(this)); } return e; }, get_rect: function () { return new Jb(0, 0, this.width, this.height); }, get_src: function () { return ( null == this.buffer.__srcCanvas && Yb.convertToCanvas(this), this.buffer.get_src() ); }, set_src: function (e) { return this.buffer.set_src(e); }, get_transparent: function () { return null != this.buffer && this.buffer.transparent; }, set_transparent: function (e) { return null != this.buffer && (this.buffer.transparent = e); }, __class__: kb, __properties__: { set_transparent: "set_transparent", get_transparent: "get_transparent", set_src: "set_src", get_src: "get_src", get_rect: "get_rect", set_premultiplied: "set_premultiplied", get_premultiplied: "get_premultiplied", set_powerOfTwo: "set_powerOfTwo", get_powerOfTwo: "get_powerOfTwo", set_format: "set_format", get_format: "get_format", set_data: "set_data", get_data: "get_data", }, }); var Fb = function (e, t, s, n, i) { null == n && (n = 32), null == s && (s = 0), null == t && (t = 0), (this.data = e), (this.width = t), (this.height = s), (this.bitsPerPixel = n), (this.format = null == i ? 0 : i), (this.transparent = !0); }; ((s["lime.graphics.ImageBuffer"] = Fb).__name__ = [ "lime", "graphics", "ImageBuffer", ]), (Fb.prototype = { clone: function () { var e = new Fb(this.data, this.width, this.height, this.bitsPerPixel); if (null != this.data) { var t, s = this.data.byteLength; (t = null != s ? new zT(s) : null), (e.data = t); var n = this.data, i = null != n ? new zT(n) : null; e.data.set(i); } else if (null != this.__srcImageData) { (e.__srcCanvas = window.document.createElement("canvas")), (e.__srcContext = e.__srcCanvas.getContext("2d")), (e.__srcCanvas.width = this.__srcImageData.width), (e.__srcCanvas.height = this.__srcImageData.height), (e.__srcImageData = e.__srcContext.createImageData( this.__srcImageData.width, this.__srcImageData.height )); var r = new Uint8ClampedArray(this.__srcImageData.data); e.__srcImageData.data.set(r); } else null != this.__srcCanvas ? ((e.__srcCanvas = window.document.createElement("canvas")), (e.__srcContext = e.__srcCanvas.getContext("2d")), (e.__srcCanvas.width = this.__srcCanvas.width), (e.__srcCanvas.height = this.__srcCanvas.height), e.__srcContext.drawImage(this.__srcCanvas, 0, 0)) : (e.__srcImage = this.__srcImage); return ( (e.bitsPerPixel = this.bitsPerPixel), (e.format = this.format), (e.premultiplied = this.premultiplied), (e.transparent = this.transparent), e ); }, get_src: function () { return null != this.__srcImage ? this.__srcImage : this.__srcCanvas; }, set_src: function (e) { return ( e instanceof HTMLImageElement ? (this.__srcImage = e) : e instanceof HTMLCanvasElement && ((this.__srcCanvas = e), (this.__srcContext = this.__srcCanvas.getContext("2d"))), e ); }, get_stride: function () { return 4 * this.width; }, get_glCompatibleBuffer: function () { return null != this.__srcImageData ? this.__srcImageData : null != this.__srcImage ? this.__srcImage : null != this.__srcCanvas ? this.__srcCanvas : null; }, __class__: Fb, __properties__: { get_glCompatibleBuffer: "get_glCompatibleBuffer", get_stride: "get_stride", set_src: "set_src", get_src: "get_src", }, }); var Mb = (s["lime.graphics.ImageChannel"] = { __ename__: ["lime", "graphics", "ImageChannel"], __constructs__: ["RED", "GREEN", "BLUE", "ALPHA"], }); (Mb.RED = ["RED", 0]), (Mb.RED.toString = c), ((Mb.RED.__enum__ = Mb).GREEN = ["GREEN", 1]), (Mb.GREEN.toString = c), ((Mb.GREEN.__enum__ = Mb).BLUE = ["BLUE", 2]), (Mb.BLUE.toString = c), ((Mb.BLUE.__enum__ = Mb).ALPHA = ["ALPHA", 3]), (Mb.ALPHA.toString = c), (Mb.ALPHA.__enum__ = Mb); var Lb = (s["lime.graphics.ImageType"] = { __ename__: ["lime", "graphics", "ImageType"], __constructs__: ["CANVAS", "DATA", "FLASH", "CUSTOM"], }); (Lb.CANVAS = ["CANVAS", 0]), (Lb.CANVAS.toString = c), ((Lb.CANVAS.__enum__ = Lb).DATA = ["DATA", 1]), (Lb.DATA.toString = c), ((Lb.DATA.__enum__ = Lb).FLASH = ["FLASH", 2]), (Lb.FLASH.toString = c), ((Lb.FLASH.__enum__ = Lb).CUSTOM = ["CUSTOM", 3]), (Lb.CUSTOM.toString = c), (Lb.CUSTOM.__enum__ = Lb); var Nb = (s["lime.graphics.RenderContext"] = { __ename__: ["lime", "graphics", "RenderContext"], __constructs__: ["OPENGL", "CUSTOM", "NONE"], }); (Nb.OPENGL = function (e) { var t = ["OPENGL", 0, e]; return (t.__enum__ = Nb), (t.toString = c), t; }), (Nb.CUSTOM = function (e) { var t = ["CUSTOM", 1, e]; return (t.__enum__ = Nb), (t.toString = c), t; }), (Nb.NONE = ["NONE", 2]), (Nb.NONE.toString = c), (Nb.NONE.__enum__ = Nb); var Ob = function (e) { (this.onRender = new Vp()), (this.onContextRestored = new hb()), (this.onContextLost = new Vp()), (this.window = e), (this.backend = new qp(this)), (this.window.renderer = this); }; ((s["lime.graphics.Renderer"] = Ob).__name__ = [ "lime", "graphics", "Renderer", ]), (Ob.prototype = { create: function () { this.backend.create(); }, flip: function () { this.backend.flip(); }, readPixels: function (e) { return this.backend.readPixels(e); }, render: function () { this.backend.render(); }, __class__: Ob, }); var Ub = (s["lime.graphics.RendererType"] = { __ename__: ["lime", "graphics", "RendererType"], __constructs__: ["OPENGL", "CUSTOM"], }); (Ub.OPENGL = ["OPENGL", 0]), (Ub.OPENGL.toString = c), ((Ub.OPENGL.__enum__ = Ub).CUSTOM = ["CUSTOM", 1]), (Ub.CUSTOM.toString = c), (Ub.CUSTOM.__enum__ = Ub); var Gb = function () {}; ((s["lime.graphics.format.BMP"] = Gb).__name__ = [ "lime", "graphics", "format", "BMP", ]), (Gb.encode = function (e, t) { (e.get_premultiplied() || 0 != e.get_format()) && ((e = e.clone()).set_premultiplied(!1), e.set_format(0)), null == t && (t = zb.RGB); var s = 14, n = 40, i = e.width * e.height * 4; if (null != t) switch (t[1]) { case 0: i = 3 * e.width + ((3 * e.width) % 4) + 3 * e.height + 3 * e.height; break; case 1: n = 108; break; case 2: (s = 0), (i += e.width * e.height); } var r = new Lf(new OT(s + n + i)), o = 0; if ( (0 < s && ((r.b[o++] = 66), (r.b[o++] = 77), r.setInt32(o, r.length), (o += 4), r.setUInt16(o, 0), (o += 2), r.setUInt16(o, 0), (o += 2), r.setInt32(o, s + n), (o += 4)), r.setInt32(o, n), (o += 4), r.setInt32(o, e.width), (o += 4), r.setInt32(o, t == zb.ICO ? 2 * e.height : e.height), (o += 4), r.setUInt16(o, 1), (o += 2), r.setUInt16(o, t == zb.RGB ? 24 : 32), (o += 2), r.setInt32(o, t == zb.BITFIELD ? 3 : 0), (o += 4), r.setInt32(o, i), (o += 4), r.setInt32(o, 11824), (o += 4), r.setInt32(o, 11824), (o += 4), r.setInt32(o, 0), (o += 4), r.setInt32(o, 0), (o += 4), t == zb.BITFIELD) ) { r.setInt32(o, 16711680), (o += 4), r.setInt32(o, 65280), (o += 4), r.setInt32(o, 255), (o += 4), r.setInt32(o, -16777216), (o += 4), (r.b[o++] = 32), (r.b[o++] = 110), (r.b[o++] = 105), (r.b[o++] = 87); for (var a = 0; a < 48; ) { a++; r.b[o++] = 0; } } var l, h, _, u, d = e.getPixels(new Jb(0, 0, e.width, e.height), 1), c = 0; if (null != t) switch (t[1]) { case 0: for (var f = 0, p = e.height; f < p; ) { var b = f++; c = 4 * (e.height - 1 - b) * e.width; for (var m = 0, g = e.width; m < g; ) { m++; (l = d.b[c++]), (h = d.b[c++]), (_ = d.b[c++]), (u = d.b[c++]), (r.b[o++] = 255 & u), (r.b[o++] = 255 & _), (r.b[o++] = 255 & h); } for (var w = 0, v = (3 * e.width) % 4; w < v; ) { w++; r.b[o++] = 0; } } break; case 1: for (var y = 0, T = e.height; y < T; ) { var S = y++; c = 4 * (e.height - 1 - S) * e.width; for (var x = 0, E = e.width; x < E; ) { x++; (l = d.b[c++]), (h = d.b[c++]), (_ = d.b[c++]), (u = d.b[c++]), (r.b[o++] = 255 & u), (r.b[o++] = 255 & _), (r.b[o++] = 255 & h), (r.b[o++] = 255 & l); } } break; case 2: for ( var P = new Lf(new OT(e.width * e.height)), R = 0, A = 0, I = e.height; A < I; ) { var C = A++; c = 4 * (e.height - 1 - C) * e.width; for (var B = 0, D = e.width; B < D; ) { B++; (l = d.b[c++]), (h = d.b[c++]), (_ = d.b[c++]), (u = d.b[c++]), (r.b[o++] = 255 & u), (r.b[o++] = 255 & _), (r.b[o++] = 255 & h), (r.b[o++] = 255 & l), (P.b[R++] = 0); } } r.blit(o, P, 0, e.width * e.height); } return r; }); var zb = (s["lime.graphics.format.BMPType"] = { __ename__: ["lime", "graphics", "format", "BMPType"], __constructs__: ["RGB", "BITFIELD", "ICO"], }); (zb.RGB = ["RGB", 0]), (zb.RGB.toString = c), ((zb.RGB.__enum__ = zb).BITFIELD = ["BITFIELD", 1]), (zb.BITFIELD.toString = c), ((zb.BITFIELD.__enum__ = zb).ICO = ["ICO", 2]), (zb.ICO.toString = c), (zb.ICO.__enum__ = zb); var Xb = function () {}; ((s["lime.graphics.format.JPEG"] = Xb).__name__ = [ "lime", "graphics", "format", "JPEG", ]), (Xb.decodeBytes = function (e, t) { return null == t && (t = !0), null; }), (Xb.decodeFile = function (e, t) { return null == t && (t = !0), null; }), (Xb.encode = function (e, t) { if ( ((e.get_premultiplied() || 0 != e.get_format()) && ((e = e.clone()).set_premultiplied(!1), e.set_format(0)), Yb.sync(e, !1), null == e.buffer.__srcCanvas) ) return null; for ( var s = e.buffer.__srcCanvas.toDataURL("image/jpeg", t / 100), n = window.atob(s.split(";base64,")[1]), i = new Lf(new OT(n.length)), r = 0, o = n.length; r < o; ) { var a = r++, l = he.cca(n, a); i.b[a] = 255 & l; } return i; }); var Hb = function () {}; ((s["lime.graphics.format.PNG"] = Hb).__name__ = [ "lime", "graphics", "format", "PNG", ]), (Hb.decodeBytes = function (e, t) { return null == t && (t = !0), null; }), (Hb.decodeFile = function (e, t) { return null == t && (t = !0), null; }), (Hb.encode = function (e) { return ( (e.get_premultiplied() || 0 != e.get_format()) && ((e = e.clone()).set_premultiplied(!1), e.set_format(0)), null ); }); var Vb = function () {}; ((s["lime.graphics.opengl.GL"] = Vb).__name__ = [ "lime", "graphics", "opengl", "GL", ]), (Vb.__properties__ = { get_version: "get_version" }), (Vb.version = null), (Vb.context = null), (Vb.currentProgram = null), (Vb.currentActiveTexture = null), (Vb.activeTexture = function (e) { e != Vb.currentActiveTexture && (Vb.context.activeTexture(e), (Vb.currentActiveTexture = e)); }), (Vb.attachShader = function (e, t) { Vb.context.attachShader(e, t); }), (Vb.bindAttribLocation = function (e, t, s) { Vb.context.bindAttribLocation(e, t, s); }), (Vb.bindBuffer = function (e, t) { Vb.context.bindBuffer(e, t); }), (Vb.bindFramebuffer = function (e, t) { Vb.context.bindFramebuffer(e, t); }), (Vb.bindRenderbuffer = function (e, t) { Vb.context.bindRenderbuffer(e, t); }), (Vb.bindTexture = function (e, t) { Vb.currentBoundTexture[Vb.currentActiveTexture] != t && (Vb.context.bindTexture(e, t), null != (Vb.currentBoundTexture[Vb.currentActiveTexture] = t) && null == Vb.textureStateCache.h.__keys__[t.__id__] && Vb.textureStateCache.set(t, new lp())); }), (Vb.blendColor = function (e, t, s, n) { Vb.context.blendColor(e, t, s, n); }), (Vb.blendEquation = function (e) { Vb.context.blendEquation(e); }), (Vb.blendEquationSeparate = function (e, t) { Vb.context.blendEquationSeparate(e, t); }), (Vb.blendFunc = function (e, t) { Vb.context.blendFunc(e, t); }), (Vb.blendFuncSeparate = function (e, t, s, n) { Vb.context.blendFuncSeparate(e, t, s, n); }), (Vb.bufferData = function (e, t, s) { Vb.context.bufferData(e, t, s); }), (Vb.bufferSubData = function (e, t, s) { Vb.context.bufferSubData(e, t, s); }), (Vb.checkFramebufferStatus = function (e) { return Vb.context.checkFramebufferStatus(e); }), (Vb.clear = function (e) { Vb.context.clear(e); }), (Vb.clearColor = function (e, t, s, n) { Vb.context.clearColor(e, t, s, n); }), (Vb.clearDepth = function (e) { Vb.context.clearDepth(e); }), (Vb.clearStencil = function (e) { Vb.context.clearStencil(e); }), (Vb.colorMask = function (e, t, s, n) { Vb.context.colorMask(e, t, s, n); }), (Vb.compileShader = function (e) { Vb.context.compileShader(e); }), (Vb.compressedTexImage2D = function (e, t, s, n, i, r, o) { Vb.context.compressedTexImage2D(e, t, s, n, i, r, o); }), (Vb.compressedTexSubImage2D = function (e, t, s, n, i, r, o, a) { Vb.context.compressedTexSubImage2D(e, t, s, n, i, r, o, a); }), (Vb.copyTexImage2D = function (e, t, s, n, i, r, o, a) { Vb.context.copyTexImage2D(e, t, s, n, i, r, o, a); }), (Vb.copyTexSubImage2D = function (e, t, s, n, i, r, o, a) { Vb.context.copyTexSubImage2D(e, t, s, n, i, r, o, a); }), (Vb.createBuffer = function () { return Vb.context.createBuffer(); }), (Vb.createFramebuffer = function () { return Vb.context.createFramebuffer(); }), (Vb.createProgram = function () { return Vb.context.createProgram(); }), (Vb.createRenderbuffer = function () { return Vb.context.createRenderbuffer(); }), (Vb.createShader = function (e) { return Vb.context.createShader(e); }), (Vb.createTexture = function () { return Vb.context.createTexture(); }), (Vb.cullFace = function (e) { Vb.context.cullFace(e); }), (Vb.deleteBuffer = function (e) { Vb.context.deleteBuffer(e); }), (Vb.deleteFramebuffer = function (e) { Vb.context.deleteFramebuffer(e); }), (Vb.deleteProgram = function (e) { Vb.context.deleteProgram(e); }), (Vb.deleteRenderbuffer = function (e) { Vb.context.deleteRenderbuffer(e); }), (Vb.deleteShader = function (e) { Vb.context.deleteShader(e); }), (Vb.deleteTexture = function (e) { Vb.textureStateCache.remove(e), Vb.context.deleteTexture(e); }), (Vb.depthFunc = function (e) { Vb.context.depthFunc(e); }), (Vb.depthMask = function (e) { Vb.context.depthMask(e); }), (Vb.depthRange = function (e, t) { Vb.context.depthRange(e, t); }), (Vb.detachShader = function (e, t) { Vb.context.detachShader(e, t); }), (Vb.disable = function (e) { Vb.context.disable(e); }), (Vb.disableVertexAttribArray = function (e) { Vb.context.disableVertexAttribArray(e); }), (Vb.drawArrays = function (e, t, s) { Vb.context.drawArrays(e, t, s); }), (Vb.drawElements = function (e, t, s, n) { Vb.context.drawElements(e, t, s, n); }), (Vb.enable = function (e) { Vb.context.enable(e); }), (Vb.enableVertexAttribArray = function (e) { Vb.context.enableVertexAttribArray(e); }), (Vb.finish = function () { Vb.context.finish(); }), (Vb.flush = function () { Vb.context.flush(); }), (Vb.framebufferRenderbuffer = function (e, t, s, n) { Vb.context.framebufferRenderbuffer(e, t, s, n); }), (Vb.framebufferTexture2D = function (e, t, s, n, i) { Vb.context.framebufferTexture2D(e, t, s, n, i); }), (Vb.frontFace = function (e) { Vb.context.frontFace(e); }), (Vb.generateMipmap = function (e) { Vb.context.generateMipmap(e); }), (Vb.getActiveAttrib = function (e, t) { return Vb.context.getActiveAttrib(e, t); }), (Vb.getActiveUniform = function (e, t) { return Vb.context.getActiveUniform(e, t); }), (Vb.getAttachedShaders = function (e) { return Vb.context.getAttachedShaders(e); }), (Vb.getAttribLocation = function (e, t) { return Vb.context.getAttribLocation(e, t); }), (Vb.getBufferParameter = function (e, t) { return Vb.context.getBufferParameter(e, t); }), (Vb.getContextAttributes = function () { return Vb.context.getContextAttributes(); }), (Vb.getError = function () { return Vb.context.getError(); }), (Vb.getExtension = function (e) { return Vb.context.getExtension(e); }), (Vb.getFramebufferAttachmentParameter = function (e, t, s) { return Vb.context.getFramebufferAttachmentParameter(e, t, s); }), (Vb.getParameter = function (e) { return Vb.context.getParameter(e); }), (Vb.getProgramInfoLog = function (e) { return Vb.context.getProgramInfoLog(e); }), (Vb.getProgramParameter = function (e, t) { return Vb.context.getProgramParameter(e, t); }), (Vb.getRenderbufferParameter = function (e, t) { return Vb.context.getRenderbufferParameter(e, t); }), (Vb.getShaderInfoLog = function (e) { return Vb.context.getShaderInfoLog(e); }), (Vb.getShaderParameter = function (e, t) { return Vb.context.getShaderParameter(e, t); }), (Vb.getShaderPrecisionFormat = function (e, t) { return Vb.context.getShaderPrecisionFormat(e, t); }), (Vb.getShaderSource = function (e) { return Vb.context.getShaderSource(e); }), (Vb.getSupportedExtensions = function () { return Vb.context.getSupportedExtensions(); }), (Vb.getTexParameter = function (e, t) { return Vb.context.getTexParameter(e, t); }), (Vb.getUniform = function (e, t) { return Vb.context.getUniform(e, t); }), (Vb.getUniformLocation = function (e, t) { return Vb.context.getUniformLocation(e, t); }), (Vb.getVertexAttrib = function (e, t) { return Vb.context.getVertexAttrib(e, t); }), (Vb.getVertexAttribOffset = function (e, t) { return Vb.context.getVertexAttribOffset(e, t); }), (Vb.hint = function (e, t) { Vb.context.hint(e, t); }), (Vb.isBuffer = function (e) { return Vb.context.isBuffer(e); }), (Vb.isContextLost = function () { return Vb.context.isContextLost(); }), (Vb.isEnabled = function (e) { return Vb.context.isEnabled(e); }), (Vb.isFramebuffer = function (e) { return Vb.context.isFramebuffer(e); }), (Vb.isProgram = function (e) { return Vb.context.isProgram(e); }), (Vb.isRenderbuffer = function (e) { return Vb.context.isRenderbuffer(e); }), (Vb.isShader = function (e) { return Vb.context.isShader(e); }), (Vb.isTexture = function (e) { return Vb.context.isTexture(e); }), (Vb.lineWidth = function (e) { Vb.context.lineWidth(e); }), (Vb.linkProgram = function (e) { Vb.context.linkProgram(e); }), (Vb.pixelStorei = function (e, t) { Vb.context.pixelStorei(e, t); }), (Vb.polygonOffset = function (e, t) { Vb.context.polygonOffset(e, t); }), (Vb.readPixels = function (e, t, s, n, i, r, o) { Vb.context.readPixels(e, t, s, n, i, r, o); }), (Vb.renderbufferStorage = function (e, t, s, n) { Vb.context.renderbufferStorage(e, t, s, n); }), (Vb.sampleCoverage = function (e, t) { Vb.context.sampleCoverage(e, t); }), (Vb.scissor = function (e, t, s, n) { Vb.context.scissor(e, t, s, n); }), (Vb.shaderSource = function (e, t) { Vb.context.shaderSource(e, t); }), (Vb.stencilFunc = function (e, t, s) { Vb.context.stencilFunc(e, t, s); }), (Vb.stencilFuncSeparate = function (e, t, s, n) { Vb.context.stencilFuncSeparate(e, t, s, n); }), (Vb.stencilMask = function (e) { Vb.context.stencilMask(e); }), (Vb.stencilMaskSeparate = function (e, t) { Vb.context.stencilMaskSeparate(e, t); }), (Vb.stencilOp = function (e, t, s) { Vb.context.stencilOp(e, t, s); }), (Vb.stencilOpSeparate = function (e, t, s, n) { Vb.context.stencilOpSeparate(e, t, s, n); }), (Vb.texImage2D = function (e, t, s, n, i, r, o, a, l) { Vb.context.texImage2D(e, t, s, n, i, r, o, a, l); }), (Vb.texImage2DWeb = function (e, t, s, n, i, r) { Vb.context.texImage2D(e, t, s, n, i, r); }), (Vb.texParameterf = function (e, t, s) { Vb.context.texParameterf(e, t, s); }), (Vb.texParameteri = function (e, t, s) { var n = Vb.currentBoundTexture[Vb.currentActiveTexture], i = Vb.textureStateCache.h[n.__id__]; i.h[t] != s && (Vb.context.texParameteri(e, t, s), (i.h[t] = s)); }), (Vb.texSubImage2D = function (e, t, s, n, i, r, o, a, l) { Vb.context.texSubImage2D(e, t, s, n, i, r, o, a, l); }), (Vb.uniform1f = function (e, t) { Vb.context.uniform1f(e, t); }), (Vb.uniform1fv = function (e, t) { Vb.context.uniform1fv(e, t); }), (Vb.uniform1i = function (e, t) { Vb.context.uniform1i(e, t); }), (Vb.uniform1iv = function (e, t) { Vb.context.uniform1iv(e, t); }), (Vb.uniform2f = function (e, t, s) { Vb.context.uniform2f(e, t, s); }), (Vb.uniform2fv = function (e, t) { Vb.context.uniform2fv(e, t); }), (Vb.uniform2i = function (e, t, s) { Vb.context.uniform2i(e, t, s); }), (Vb.uniform2iv = function (e, t) { Vb.context.uniform2iv(e, t); }), (Vb.uniform3f = function (e, t, s, n) { Vb.context.uniform3f(e, t, s, n); }), (Vb.uniform3fv = function (e, t) { Vb.context.uniform3fv(e, t); }), (Vb.uniform3i = function (e, t, s, n) { Vb.context.uniform3i(e, t, s, n); }), (Vb.uniform3iv = function (e, t) { Vb.context.uniform3iv(e, t); }), (Vb.uniform4f = function (e, t, s, n, i) { Vb.context.uniform4f(e, t, s, n, i); }), (Vb.uniform4fv = function (e, t) { Vb.context.uniform4fv(e, t); }), (Vb.uniform4i = function (e, t, s, n, i) { Vb.context.uniform4i(e, t, s, n, i); }), (Vb.uniform4iv = function (e, t) { Vb.context.uniform4iv(e, t); }), (Vb.uniformMatrix2fv = function (e, t, s) { Vb.context.uniformMatrix2fv(e, t, s); }), (Vb.uniformMatrix3fv = function (e, t, s) { Vb.context.uniformMatrix3fv(e, t, s); }), (Vb.uniformMatrix4fv = function (e, t, s) { Vb.context.uniformMatrix4fv(e, t, s); }), (Vb.useProgram = function (e) { e != Vb.currentProgram && (Vb.context.useProgram(e), (e = Vb.currentProgram)); }), (Vb.validateProgram = function (e) { Vb.context.validateProgram(e); }), (Vb.vertexAttrib1f = function (e, t) { Vb.context.vertexAttrib1f(e, t); }), (Vb.vertexAttrib1fv = function (e, t) { Vb.context.vertexAttrib1fv(e, t); }), (Vb.vertexAttrib2f = function (e, t, s) { Vb.context.vertexAttrib2f(e, t, s); }), (Vb.vertexAttrib2fv = function (e, t) { Vb.context.vertexAttrib2fv(e, t); }), (Vb.vertexAttrib3f = function (e, t, s, n) { Vb.context.vertexAttrib3f(e, t, s, n); }), (Vb.vertexAttrib3fv = function (e, t) { Vb.context.vertexAttrib3fv(e, t); }), (Vb.vertexAttrib4f = function (e, t, s, n, i) { Vb.context.vertexAttrib4f(e, t, s, n, i); }), (Vb.vertexAttrib4fv = function (e, t) { Vb.context.vertexAttrib4fv(e, t); }), (Vb.vertexAttribPointer = function (e, t, s, n, i, r) { Vb.context.vertexAttribPointer(e, t, s, n, i, r); }), (Vb.viewport = function (e, t, s, n) { Vb.context.viewport(e, t, s, n); }), (Vb.get_version = function () { return 2; }); var Yb = function () {}; ((s["lime.graphics.utils.ImageCanvasUtil"] = Yb).__name__ = [ "lime", "graphics", "utils", "ImageCanvasUtil", ]), (Yb.colorTransform = function (e, t, s) { Yb.convertToCanvas(e), Yb.createImageData(e), Wb.colorTransform(e, t, s); }), (Yb.convertToCanvas = function (e) { var t = e.buffer; if (e.type == Lb.DATA && null != t.data) return ( Yb.createCanvas(e, t.width, t.height), Yb.createImageData(e), t.__srcContext.putImageData(t.__srcImageData, 0, 0), void (e.type = Lb.CANVAS) ); null != t.__srcImage ? (null == t.__srcCanvas && (Yb.createCanvas(e, t.__srcImage.width, t.__srcImage.height), t.__srcContext.drawImage(t.__srcImage, 0, 0)), (t.__srcImage = null)) : null != t.data && null == t.__srcCanvas ? (Yb.createCanvas(e, t.width, t.height), Yb.createImageData(e), t.__srcContext.putImageData(t.__srcImageData, 0, 0)) : null == t.data && null != t.__srcImageData && (t.data = t.__srcImageData.data); }), (Yb.convertToData = function (e) { null == e.buffer.data && (Yb.convertToCanvas(e), Yb.sync(e, !1), Yb.createImageData(e), (e.buffer.__srcCanvas = null), (e.buffer.__srcContext = null)); }), (Yb.copyChannel = function (e, t, s, n, i, r) { Yb.convertToCanvas(t), Yb.createImageData(t), Yb.convertToCanvas(e), Yb.createImageData(e), Wb.copyChannel(e, t, s, n, i, r); }), (Yb.copyPixels = function (e, t, s, n, i, r, o) { if ( (null == o && (o = !1), !( null == n || n.x >= e.width || n.y >= e.height || null == s || s.width < 1 || s.height < 1 )) ) { if (null != i && i.get_transparent()) { null == r && (r = new Qb()); var a = e.clone(); a.copyChannel( i, new Jb(r.x, r.y, s.width, s.height), new Qb(s.x, s.y), Mb.ALPHA, Mb.ALPHA ), (t = a); } Yb.sync(e, !0), o || (e.get_transparent() && t.get_transparent() && e.buffer.__srcContext.clearRect( n.x + e.offsetX, n.y + e.offsetY, s.width + e.offsetX, s.height + e.offsetY )), Yb.sync(t, !1), Yb.convertToCanvas(t), null != t.buffer.get_src() && (e.buffer.__srcContext.drawImage( t.buffer.get_src(), (s.x + t.offsetX) | 0, (s.y + t.offsetY) | 0, 0 | s.width, 0 | s.height, (n.x + e.offsetX) | 0, (n.y + e.offsetY) | 0, 0 | s.width, 0 | s.height ), (e.dirty = !0)); } }), (Yb.createCanvas = function (e, t, s) { var n = e.buffer; null == n.__srcCanvas && ((n.__srcCanvas = window.document.createElement("canvas")), (n.__srcCanvas.width = t), (n.__srcCanvas.height = s), e.get_transparent() ? (n.__srcContext = n.__srcCanvas.getContext("2d")) : (e.get_transparent() || n.__srcCanvas.setAttribute("moz-opaque", "true"), (n.__srcContext = n.__srcCanvas.getContext("2d", { alpha: !1 }))), (n.__srcContext.mozImageSmoothingEnabled = !1), (n.__srcContext.msImageSmoothingEnabled = !1), (n.__srcContext.imageSmoothingEnabled = !1)); }), (Yb.createImageData = function (e) { var t = e.buffer; if (null == t.__srcImageData) { null == t.data ? (t.__srcImageData = t.__srcContext.getImageData( 0, 0, t.width, t.height )) : ((t.__srcImageData = t.__srcContext.createImageData( t.width, t.height )), t.__srcImageData.data.set(t.data)); var s, n = t.__srcImageData.data.buffer; (s = null != n ? new zT(n) : null), (t.data = s); } }), (Yb.fillRect = function (e, t, s, n) { var i, r, o, a; (Yb.convertToCanvas(e), Yb.sync(e, !0), 0 == t.x && 0 == t.y && t.width == e.width && t.height == e.height && e.get_transparent() && 0 == (255 & s)) ? (e.buffer.__srcCanvas.width = e.buffer.width) : ((a = 1 == n ? ((i = (s >> 16) & 255), (r = (s >> 8) & 255), (o = 255 & s), e.get_transparent() ? (s >> 24) & 255 : 255) : ((i = (s >> 24) & 255), (r = (s >> 16) & 255), (o = (s >> 8) & 255), e.get_transparent() ? 255 & s : 255)), (e.buffer.__srcContext.fillStyle = "rgba(" + i + ", " + r + ", " + o + ", " + a / 255 + ")"), e.buffer.__srcContext.fillRect( t.x + e.offsetX, t.y + e.offsetY, t.width + e.offsetX, t.height + e.offsetY )); }), (Yb.floodFill = function (e, t, s, n, i) { Yb.convertToCanvas(e), Yb.createImageData(e), Wb.floodFill(e, t, s, n, i); }), (Yb.getPixel = function (e, t, s, n) { return ( Yb.convertToCanvas(e), Yb.createImageData(e), Wb.getPixel(e, t, s, n) ); }), (Yb.getPixel32 = function (e, t, s, n) { return ( Yb.convertToCanvas(e), Yb.createImageData(e), Wb.getPixel32(e, t, s, n) ); }), (Yb.getPixels = function (e, t, s) { return ( Yb.convertToCanvas(e), Yb.createImageData(e), Wb.getPixels(e, t, s) ); }), (Yb.merge = function (e, t, s, n, i, r, o, a) { Yb.convertToCanvas(t), Yb.createImageData(t), Yb.convertToCanvas(e), Yb.createImageData(e), Wb.merge(e, t, s, n, i, r, o, a); }), (Yb.resize = function (e, t, s) { var n = e.buffer; if (null == n.__srcCanvas) Yb.createCanvas(e, t, s), n.__srcContext.drawImage(n.get_src(), 0, 0, t, s); else { Yb.sync(e, !0); var i = n.__srcCanvas; (n.__srcCanvas = null), Yb.createCanvas(e, t, s), n.__srcContext.drawImage(i, 0, 0, t, s); } }), (Yb.scroll = function (e, t, s) { (t % e.width == 0 && s % e.height == 0) || (Yb.convertToCanvas(e), Yb.sync(e, !0), e.buffer.__srcContext.clearRect(t, s, e.width, e.height), e.buffer.__srcContext.drawImage(e.buffer.__srcCanvas, t, s)); }), (Yb.setPixel = function (e, t, s, n, i) { Yb.convertToCanvas(e), Yb.createImageData(e), Wb.setPixel(e, t, s, n, i); }), (Yb.setPixel32 = function (e, t, s, n, i) { Yb.convertToCanvas(e), Yb.createImageData(e), Wb.setPixel32(e, t, s, n, i); }), (Yb.setPixels = function (e, t, s, n) { Yb.convertToCanvas(e), Yb.createImageData(e), Wb.setPixels(e, t, s, n); }), (Yb.sync = function (e, t) { e.dirty && null != e.buffer.__srcImageData && e.type != Lb.DATA && (e.buffer.__srcContext.putImageData(e.buffer.__srcImageData, 0, 0), (e.buffer.data = null), (e.dirty = !1)), t && ((e.buffer.__srcImageData = null), (e.buffer.data = null)); }); var Wb = function () {}; ((s["lime.graphics.utils.ImageDataUtil"] = Wb).__name__ = [ "lime", "graphics", "utils", "ImageDataUtil", ]), (Wb.colorTransform = function (e, t, s) { var n = e.buffer.data; if (null != n) { for ( var i, r, o, a = e.buffer.format, l = e.buffer.premultiplied, h = new jb(e, t), _ = Kb.getAlphaTable(s), u = Kb.getRedTable(s), d = Kb.getGreenTable(s), c = Kb.getBlueTable(s), f = 0, p = h.height; f < p; ) { var b = f++; i = h.offset + h.stride * b; for (var m = 0, g = h.width; m < g; ) { switch (((r = i + 4 * m++), a)) { case 0: o = ((255 & n[r]) << 24) | ((255 & n[r + 1]) << 16) | ((255 & n[r + 2]) << 8) | (255 & n[r + 3]); break; case 1: o = ((255 & n[r + 1]) << 24) | ((255 & n[r + 2]) << 16) | ((255 & n[r + 3]) << 8) | (255 & n[r]); break; case 2: o = ((255 & n[r + 2]) << 24) | ((255 & n[r + 1]) << 16) | ((255 & n[r]) << 8) | (255 & n[r + 3]); } switch ( (l && 0 != (255 & o) && 255 != (255 & o) && ((sm.unmult = 255 / (255 & o)), (o = ((255 & sm.__clamp[Math.round(((o >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((o >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((o >> 8) & 255) * sm.unmult)]) << 8) | (255 & o))), (o = ((255 & u[(o >> 24) & 255]) << 24) | ((255 & d[(o >> 16) & 255]) << 16) | ((255 & c[(o >> 8) & 255]) << 8) | (255 & _[255 & o])), l && (0 == (255 & o) ? 0 != o && (o = 0) : 255 != (255 & o) && ((sm.a16 = sm.__alpha16[255 & o]), (o = ((((((o >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((o >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((o >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & o)))), a) ) { case 0: (n[r] = (o >> 24) & 255), (n[r + 1] = (o >> 16) & 255), (n[r + 2] = (o >> 8) & 255), (n[r + 3] = 255 & o); break; case 1: (n[r] = 255 & o), (n[r + 1] = (o >> 24) & 255), (n[r + 2] = (o >> 16) & 255), (n[r + 3] = (o >> 8) & 255); break; case 2: (n[r] = (o >> 8) & 255), (n[r + 1] = (o >> 16) & 255), (n[r + 2] = (o >> 24) & 255), (n[r + 3] = 255 & o); } } } e.dirty = !0; } }), (Wb.copyChannel = function (e, t, s, n, i, r) { var o, a; switch (r[1]) { case 0: o = 0; break; case 1: o = 1; break; case 2: o = 2; break; case 3: o = 3; } switch (i[1]) { case 0: a = 0; break; case 1: a = 1; break; case 2: a = 2; break; case 3: a = 3; } var l = t.buffer.data, h = e.buffer.data; if (null != l && null != h) { for ( var _, u, d, c, f = new jb(t, s), p = new jb(e, new Jb(n.x, n.y, f.width, f.height)), b = t.buffer.format, m = e.buffer.format, g = t.buffer.premultiplied, w = e.buffer.premultiplied, v = 0, y = 0, T = p.height; y < T; ) { var S = y++; (_ = f.offset + f.stride * S), (u = p.offset + p.stride * S); for (var x = 0, E = p.width; x < E; ) { x++; switch (b) { case 0: d = ((255 & l[_]) << 24) | ((255 & l[_ + 1]) << 16) | ((255 & l[_ + 2]) << 8) | (255 & l[_ + 3]); break; case 1: d = ((255 & l[_ + 1]) << 24) | ((255 & l[_ + 2]) << 16) | ((255 & l[_ + 3]) << 8) | (255 & l[_]); break; case 2: d = ((255 & l[_ + 2]) << 24) | ((255 & l[_ + 1]) << 16) | ((255 & l[_]) << 8) | (255 & l[_ + 3]); } switch ( (g && 0 != (255 & d) && 255 != (255 & d) && ((sm.unmult = 255 / (255 & d)), (d = ((255 & sm.__clamp[Math.round(((d >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((d >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((d >> 8) & 255) * sm.unmult)]) << 8) | (255 & d))), m) ) { case 0: c = ((255 & h[u]) << 24) | ((255 & h[u + 1]) << 16) | ((255 & h[u + 2]) << 8) | (255 & h[u + 3]); break; case 1: c = ((255 & h[u + 1]) << 24) | ((255 & h[u + 2]) << 16) | ((255 & h[u + 3]) << 8) | (255 & h[u]); break; case 2: c = ((255 & h[u + 2]) << 24) | ((255 & h[u + 1]) << 16) | ((255 & h[u]) << 8) | (255 & h[u + 3]); } switch ( (w && 0 != (255 & c) && 255 != (255 & c) && ((sm.unmult = 255 / (255 & c)), (c = ((255 & sm.__clamp[Math.round(((c >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((c >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((c >> 8) & 255) * sm.unmult)]) << 8) | (255 & c))), a) ) { case 0: v = (d >> 24) & 255; break; case 1: v = (d >> 16) & 255; break; case 2: v = (d >> 8) & 255; break; case 3: v = 255 & d; } switch (o) { case 0: c = ((255 & v) << 24) | ((255 & (c >> 16)) << 16) | ((255 & (c >> 8)) << 8) | (255 & c); break; case 1: c = ((255 & (c >> 24)) << 24) | ((255 & v) << 16) | ((255 & (c >> 8)) << 8) | (255 & c); break; case 2: c = ((255 & (c >> 24)) << 24) | ((255 & (c >> 16)) << 16) | ((255 & v) << 8) | (255 & c); break; case 3: c = ((255 & (c >> 24)) << 24) | ((255 & (c >> 16)) << 16) | ((255 & (c >> 8)) << 8) | (255 & v); } switch ( (w && (0 == (255 & c) ? 0 != c && (c = 0) : 255 != (255 & c) && ((sm.a16 = sm.__alpha16[255 & c]), (c = ((((((c >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((c >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((c >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & c)))), m) ) { case 0: (h[u] = (c >> 24) & 255), (h[u + 1] = (c >> 16) & 255), (h[u + 2] = (c >> 8) & 255), (h[u + 3] = 255 & c); break; case 1: (h[u] = 255 & c), (h[u + 1] = (c >> 24) & 255), (h[u + 2] = (c >> 16) & 255), (h[u + 3] = (c >> 8) & 255); break; case 2: (h[u] = (c >> 8) & 255), (h[u + 1] = (c >> 16) & 255), (h[u + 2] = (c >> 24) & 255), (h[u + 3] = 255 & c); } (_ += 4), (u += 4); } } e.dirty = !0; } }), (Wb.copyPixels = function (e, t, s, n, i, r, o) { null == o && (o = !1); var a = t.buffer.data, l = e.buffer.data; if (null != a && null != l) { var h, _, u, d, c, f, p, b, m = new jb(t, s), g = new jb(e, new Jb(n.x, n.y, m.width, m.height)), w = t.buffer.format, v = e.buffer.format, y = t.buffer.premultiplied, T = e.buffer.premultiplied; if (o && t.get_transparent()) if (null == i) for (var S = 0, x = g.height; S < x; ) { var E = S++; (h = m.offset + m.stride * E), (_ = g.offset + g.stride * E); for (var P = 0, R = g.width; P < R; ) { P++; switch (w) { case 0: u = ((255 & a[h]) << 24) | ((255 & a[h + 1]) << 16) | ((255 & a[h + 2]) << 8) | (255 & a[h + 3]); break; case 1: u = ((255 & a[h + 1]) << 24) | ((255 & a[h + 2]) << 16) | ((255 & a[h + 3]) << 8) | (255 & a[h]); break; case 2: u = ((255 & a[h + 2]) << 24) | ((255 & a[h + 1]) << 16) | ((255 & a[h]) << 8) | (255 & a[h + 3]); } switch ( (y && 0 != (255 & u) && 255 != (255 & u) && ((sm.unmult = 255 / (255 & u)), (u = ((255 & sm.__clamp[ Math.round(((u >> 24) & 255) * sm.unmult) ]) << 24) | ((255 & sm.__clamp[ Math.round(((u >> 16) & 255) * sm.unmult) ]) << 16) | ((255 & sm.__clamp[Math.round(((u >> 8) & 255) * sm.unmult)]) << 8) | (255 & u))), v) ) { case 0: b = ((255 & l[_]) << 24) | ((255 & l[_ + 1]) << 16) | ((255 & l[_ + 2]) << 8) | (255 & l[_ + 3]); break; case 1: b = ((255 & l[_ + 1]) << 24) | ((255 & l[_ + 2]) << 16) | ((255 & l[_ + 3]) << 8) | (255 & l[_]); break; case 2: b = ((255 & l[_ + 2]) << 24) | ((255 & l[_ + 1]) << 16) | ((255 & l[_]) << 8) | (255 & l[_ + 3]); } if ( (T && 0 != (255 & b) && 255 != (255 & b) && ((sm.unmult = 255 / (255 & b)), (b = ((255 & sm.__clamp[ Math.round(((b >> 24) & 255) * sm.unmult) ]) << 24) | ((255 & sm.__clamp[ Math.round(((b >> 16) & 255) * sm.unmult) ]) << 16) | ((255 & sm.__clamp[Math.round(((b >> 8) & 255) * sm.unmult)]) << 8) | (255 & b))), 0 == (p = (d = (255 & u) / 255) + (c = (255 & b) / 255) * (f = 1 - d))) ) b = 0; else b = ((255 & ((b = ((255 & ((b = ((255 & ((b = ((255 & sm.__clamp[ Math.round( (((u >> 24) & 255) * d + ((b >> 24) & 255) * c * f) / p ) ]) << 24) | ((255 & (b >> 16)) << 16) | ((255 & (b >> 8)) << 8) | (255 & b)) >> 24)) << 24) | ((255 & sm.__clamp[ Math.round( (((u >> 16) & 255) * d + ((b >> 16) & 255) * c * f) / p ) ]) << 16) | ((255 & (b >> 8)) << 8) | (255 & b)) >> 24)) << 24) | ((255 & (b >> 16)) << 16) | ((255 & sm.__clamp[ Math.round( (((u >> 8) & 255) * d + ((b >> 8) & 255) * c * f) / p ) ]) << 8) | (255 & b)) >> 24)) << 24) | ((255 & (b >> 16)) << 16) | ((255 & (b >> 8)) << 8) | (255 & sm.__clamp[Math.round(255 * p)]); switch ( (T && (0 == (255 & b) ? 0 != b && (b = 0) : 255 != (255 & b) && ((sm.a16 = sm.__alpha16[255 & b]), (b = ((((((b >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((b >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((b >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & b)))), v) ) { case 0: (l[_] = (b >> 24) & 255), (l[_ + 1] = (b >> 16) & 255), (l[_ + 2] = (b >> 8) & 255), (l[_ + 3] = 255 & b); break; case 1: (l[_] = 255 & b), (l[_ + 1] = (b >> 24) & 255), (l[_ + 2] = (b >> 16) & 255), (l[_ + 3] = (b >> 8) & 255); break; case 2: (l[_] = (b >> 8) & 255), (l[_ + 1] = (b >> 16) & 255), (l[_ + 2] = (b >> 24) & 255), (l[_ + 3] = 255 & b); } (h += 4), (_ += 4); } } else { null == r && (r = new Qb()); for ( var A, I, C = i.buffer.data, B = i.buffer.format, D = i.buffer.premultiplied, k = new jb(i, new Jb(r.x, r.y, g.width, g.height)), F = 0, M = k.height; F < M; ) { var L = F++; (h = m.offset + m.stride * L), (_ = g.offset + g.stride * L), (A = k.offset + k.stride * L); for (var N = 0, O = k.width; N < O; ) { N++; switch (w) { case 0: u = ((255 & a[h]) << 24) | ((255 & a[h + 1]) << 16) | ((255 & a[h + 2]) << 8) | (255 & a[h + 3]); break; case 1: u = ((255 & a[h + 1]) << 24) | ((255 & a[h + 2]) << 16) | ((255 & a[h + 3]) << 8) | (255 & a[h]); break; case 2: u = ((255 & a[h + 2]) << 24) | ((255 & a[h + 1]) << 16) | ((255 & a[h]) << 8) | (255 & a[h + 3]); } switch ( (y && 0 != (255 & u) && 255 != (255 & u) && ((sm.unmult = 255 / (255 & u)), (u = ((255 & sm.__clamp[ Math.round(((u >> 24) & 255) * sm.unmult) ]) << 24) | ((255 & sm.__clamp[ Math.round(((u >> 16) & 255) * sm.unmult) ]) << 16) | ((255 & sm.__clamp[Math.round(((u >> 8) & 255) * sm.unmult)]) << 8) | (255 & u))), v) ) { case 0: b = ((255 & l[_]) << 24) | ((255 & l[_ + 1]) << 16) | ((255 & l[_ + 2]) << 8) | (255 & l[_ + 3]); break; case 1: b = ((255 & l[_ + 1]) << 24) | ((255 & l[_ + 2]) << 16) | ((255 & l[_ + 3]) << 8) | (255 & l[_]); break; case 2: b = ((255 & l[_ + 2]) << 24) | ((255 & l[_ + 1]) << 16) | ((255 & l[_]) << 8) | (255 & l[_ + 3]); } switch ( (T && 0 != (255 & b) && 255 != (255 & b) && ((sm.unmult = 255 / (255 & b)), (b = ((255 & sm.__clamp[ Math.round(((b >> 24) & 255) * sm.unmult) ]) << 24) | ((255 & sm.__clamp[ Math.round(((b >> 16) & 255) * sm.unmult) ]) << 16) | ((255 & sm.__clamp[Math.round(((b >> 8) & 255) * sm.unmult)]) << 8) | (255 & b))), B) ) { case 0: I = ((255 & C[A]) << 24) | ((255 & C[A + 1]) << 16) | ((255 & C[A + 2]) << 8) | (255 & C[A + 3]); break; case 1: I = ((255 & C[A + 1]) << 24) | ((255 & C[A + 2]) << 16) | ((255 & C[A + 3]) << 8) | (255 & C[A]); break; case 2: I = ((255 & C[A + 2]) << 24) | ((255 & C[A + 1]) << 16) | ((255 & C[A]) << 8) | (255 & C[A + 3]); } if ( (D && 0 != (255 & I) && 255 != (255 & I) && ((sm.unmult = 255 / (255 & I)), (I = ((255 & sm.__clamp[ Math.round(((I >> 24) & 255) * sm.unmult) ]) << 24) | ((255 & sm.__clamp[ Math.round(((I >> 16) & 255) * sm.unmult) ]) << 16) | ((255 & sm.__clamp[Math.round(((I >> 8) & 255) * sm.unmult)]) << 8) | (255 & I))), 0 == (p = (d = (255 & I) / 255) + (c = (255 & b) / 255) * (f = 1 - d))) ) b = 0; else b = ((255 & ((b = ((255 & ((b = ((255 & ((b = ((255 & sm.__clamp[ Math.round( (((u >> 24) & 255) * d + ((b >> 24) & 255) * c * f) / p ) ]) << 24) | ((255 & (b >> 16)) << 16) | ((255 & (b >> 8)) << 8) | (255 & b)) >> 24)) << 24) | ((255 & sm.__clamp[ Math.round( (((u >> 16) & 255) * d + ((b >> 16) & 255) * c * f) / p ) ]) << 16) | ((255 & (b >> 8)) << 8) | (255 & b)) >> 24)) << 24) | ((255 & (b >> 16)) << 16) | ((255 & sm.__clamp[ Math.round( (((u >> 8) & 255) * d + ((b >> 8) & 255) * c * f) / p ) ]) << 8) | (255 & b)) >> 24)) << 24) | ((255 & (b >> 16)) << 16) | ((255 & (b >> 8)) << 8) | (255 & sm.__clamp[Math.round(255 * p)]); switch ( (T && (0 == (255 & b) ? 0 != b && (b = 0) : 255 != (255 & b) && ((sm.a16 = sm.__alpha16[255 & b]), (b = ((((((b >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((b >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((b >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & b)))), v) ) { case 0: (l[_] = (b >> 24) & 255), (l[_ + 1] = (b >> 16) & 255), (l[_ + 2] = (b >> 8) & 255), (l[_ + 3] = 255 & b); break; case 1: (l[_] = 255 & b), (l[_ + 1] = (b >> 24) & 255), (l[_ + 2] = (b >> 16) & 255), (l[_ + 3] = (b >> 8) & 255); break; case 2: (l[_] = (b >> 8) & 255), (l[_ + 1] = (b >> 16) & 255), (l[_ + 2] = (b >> 24) & 255), (l[_ + 3] = 255 & b); } (h += 4), (_ += 4); } } } else for (var U = 0, G = g.height; U < G; ) { var z = U++; (h = m.offset + m.stride * z), (_ = g.offset + g.stride * z); for (var X = 0, H = g.width; X < H; ) { X++; switch (w) { case 0: u = ((255 & a[h]) << 24) | ((255 & a[h + 1]) << 16) | ((255 & a[h + 2]) << 8) | (255 & a[h + 3]); break; case 1: u = ((255 & a[h + 1]) << 24) | ((255 & a[h + 2]) << 16) | ((255 & a[h + 3]) << 8) | (255 & a[h]); break; case 2: u = ((255 & a[h + 2]) << 24) | ((255 & a[h + 1]) << 16) | ((255 & a[h]) << 8) | (255 & a[h + 3]); } switch ( (y && 0 != (255 & u) && 255 != (255 & u) && ((sm.unmult = 255 / (255 & u)), (u = ((255 & sm.__clamp[Math.round(((u >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((u >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((u >> 8) & 255) * sm.unmult)]) << 8) | (255 & u))), T && (0 == (255 & u) ? 0 != u && (u = 0) : 255 != (255 & u) && ((sm.a16 = sm.__alpha16[255 & u]), (u = ((((((u >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((u >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((u >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & u)))), v) ) { case 0: (l[_] = (u >> 24) & 255), (l[_ + 1] = (u >> 16) & 255), (l[_ + 2] = (u >> 8) & 255), (l[_ + 3] = 255 & u); break; case 1: (l[_] = 255 & u), (l[_ + 1] = (u >> 24) & 255), (l[_ + 2] = (u >> 16) & 255), (l[_ + 3] = (u >> 8) & 255); break; case 2: (l[_] = (u >> 8) & 255), (l[_ + 1] = (u >> 16) & 255), (l[_ + 2] = (u >> 24) & 255), (l[_ + 3] = 255 & u); } (h += 4), (_ += 4); } } e.dirty = !0; } }), (Wb.fillRect = function (e, t, s, n) { var i; switch (n) { case 1: i = ((255 & (s >> 16)) << 24) | ((255 & (s >> 8)) << 16) | ((255 & s) << 8) | (255 & (s >> 24)); break; case 2: i = ((255 & (s >> 8)) << 24) | ((255 & (s >> 16)) << 16) | ((255 & (s >> 24)) << 8) | (255 & s); break; default: i = s; } e.get_transparent() || (i = ((255 & (i >> 24)) << 24) | ((255 & (i >> 16)) << 16) | ((255 & (i >> 8)) << 8) | 255); var r = e.buffer.data; if (null != r) { for ( var o, a = e.buffer.format, l = e.buffer.premultiplied, h = new jb(e, t), _ = 0, u = h.height; _ < u; ) { var d = _++; o = h.offset + h.stride * d; for (var c = 0, f = h.width; c < f; ) { var p = o + 4 * c++; switch ( (l && (0 == (255 & i) ? 0 != i && (i = 0) : 255 != (255 & i) && ((sm.a16 = sm.__alpha16[255 & i]), (i = ((((((i >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((i >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((i >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & i)))), a) ) { case 0: (r[p] = (i >> 24) & 255), (r[p + 1] = (i >> 16) & 255), (r[p + 2] = (i >> 8) & 255), (r[p + 3] = 255 & i); break; case 1: (r[p] = 255 & i), (r[p + 1] = (i >> 24) & 255), (r[p + 2] = (i >> 16) & 255), (r[p + 3] = (i >> 8) & 255); break; case 2: (r[p] = (i >> 8) & 255), (r[p + 1] = (i >> 16) & 255), (r[p + 2] = (i >> 24) & 255), (r[p + 3] = 255 & i); } } } e.dirty = !0; } }), (Wb.floodFill = function (e, t, s, n, i) { var r = e.buffer.data; if (null != r) { 1 == i && (n = ((16777215 & n) << 8) | ((n >> 24) & 255)); var o, a = e.buffer.format, l = e.buffer.premultiplied, h = n, _ = (s + e.offsetY) * (4 * e.buffer.width) + 4 * (t + e.offsetX); switch (a) { case 0: o = ((255 & r[_]) << 24) | ((255 & r[_ + 1]) << 16) | ((255 & r[_ + 2]) << 8) | (255 & r[_ + 3]); break; case 1: o = ((255 & r[_ + 1]) << 24) | ((255 & r[_ + 2]) << 16) | ((255 & r[_ + 3]) << 8) | (255 & r[_]); break; case 2: o = ((255 & r[_ + 2]) << 24) | ((255 & r[_ + 1]) << 16) | ((255 & r[_]) << 8) | (255 & r[_ + 3]); } if ( (l && 0 != (255 & o) && 255 != (255 & o) && ((sm.unmult = 255 / (255 & o)), (o = ((255 & sm.__clamp[Math.round(((o >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((o >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((o >> 8) & 255) * sm.unmult)]) << 8) | (255 & o))), e.get_transparent() || ((h = ((255 & (h >> 24)) << 24) | ((255 & (h >> 16)) << 16) | ((255 & (h >> 8)) << 8) | 255), (o = ((255 & (o >> 24)) << 24) | ((255 & (o >> 16)) << 16) | ((255 & (o >> 8)) << 8) | 255)), h != o) ) { var u, d, c, f, p, b, m = [0, -1, 1, 0], g = [-1, 0, 0, 1], w = -e.offsetX, v = -e.offsetY, y = w + e.width, T = v + e.height, S = []; for (S.push(t), S.push(s); 0 < S.length; ) { (d = S.pop()), (u = S.pop()); for (var x = 0; x < 4; ) { var E = x++; if ( ((f = d + g[E]), !((c = u + m[E]) < w || f < v || y <= c || T <= f)) ) { switch (((p = 4 * (f * e.width + c)), a)) { case 0: b = ((255 & r[p]) << 24) | ((255 & r[p + 1]) << 16) | ((255 & r[p + 2]) << 8) | (255 & r[p + 3]); break; case 1: b = ((255 & r[p + 1]) << 24) | ((255 & r[p + 2]) << 16) | ((255 & r[p + 3]) << 8) | (255 & r[p]); break; case 2: b = ((255 & r[p + 2]) << 24) | ((255 & r[p + 1]) << 16) | ((255 & r[p]) << 8) | (255 & r[p + 3]); } if ( (l && 0 != (255 & b) && 255 != (255 & b) && ((sm.unmult = 255 / (255 & b)), (b = ((255 & sm.__clamp[ Math.round(((b >> 24) & 255) * sm.unmult) ]) << 24) | ((255 & sm.__clamp[ Math.round(((b >> 16) & 255) * sm.unmult) ]) << 16) | ((255 & sm.__clamp[Math.round(((b >> 8) & 255) * sm.unmult)]) << 8) | (255 & b))), b == o) ) { switch ( (l && (0 == (255 & h) ? 0 != h && (h = 0) : 255 != (255 & h) && ((sm.a16 = sm.__alpha16[255 & h]), (h = ((((((h >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((h >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((h >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & h)))), a) ) { case 0: (r[p] = (h >> 24) & 255), (r[p + 1] = (h >> 16) & 255), (r[p + 2] = (h >> 8) & 255), (r[p + 3] = 255 & h); break; case 1: (r[p] = 255 & h), (r[p + 1] = (h >> 24) & 255), (r[p + 2] = (h >> 16) & 255), (r[p + 3] = (h >> 8) & 255); break; case 2: (r[p] = (h >> 8) & 255), (r[p + 1] = (h >> 16) & 255), (r[p + 2] = (h >> 24) & 255), (r[p + 3] = 255 & h); } S.push(c), S.push(f); } } } } e.dirty = !0; } } }), (Wb.getColorBoundsRect = function (e, t, s, n, i) { null == n && (n = !0); var r, o, a, l, h = e.width + 1, _ = 0, u = e.height + 1, d = 0; switch (i) { case 1: r = ((255 & (s >> 16)) << 24) | ((255 & (s >> 8)) << 16) | ((255 & s) << 8) | (255 & (s >> 24)); o = ((255 & (t >> 16)) << 24) | ((255 & (t >> 8)) << 16) | ((255 & t) << 8) | (255 & (t >> 24)); break; case 2: r = ((255 & (s >> 8)) << 24) | ((255 & (s >> 16)) << 16) | ((255 & (s >> 24)) << 8) | (255 & s); o = ((255 & (t >> 8)) << 24) | ((255 & (t >> 16)) << 16) | ((255 & (t >> 24)) << 8) | (255 & t); break; default: (r = s), (o = t); } e.get_transparent() || ((r = ((255 & (r >> 24)) << 24) | ((255 & (r >> 16)) << 16) | ((255 & (r >> 8)) << 8) | 255), (o = ((255 & (o >> 24)) << 24) | ((255 & (o >> 16)) << 16) | ((255 & (o >> 8)) << 8) | 255)); for (var c, f = 0, p = e.width; f < p; ) { var b = f++; l = !1; for (var m = 0, g = e.height; m < g; ) { var w = m++; if ( ((a = e.getPixel32(b, w, 0)), (l = n ? (a & o) == r : (a & o) != r)) ) { b < h && (h = b); break; } } if (l) break; } for (var v = 0, y = e.width; v < y; ) { var T = v++; (c = e.width - 1 - T), (l = !1); for (var S = 0, x = e.height; S < x; ) { var E = S++; if ( ((a = e.getPixel32(c, E, 0)), (l = n ? (a & o) == r : (a & o) != r)) ) { _ < c && (_ = c); break; } } if (l) break; } for (var P, R = 0, A = e.height; R < A; ) { var I = R++; l = !1; for (var C = 0, B = e.width; C < B; ) { var D = C++; if ( ((a = e.getPixel32(D, I, 0)), (l = n ? (a & o) == r : (a & o) != r)) ) { I < u && (u = I); break; } } if (l) break; } for (var k = 0, F = e.height; k < F; ) { var M = k++; (P = e.height - 1 - M), (l = !1); for (var L = 0, N = e.width; L < N; ) { var O = L++; if ( ((a = e.getPixel32(O, P, 0)), (l = n ? (a & o) == r : (a & o) != r)) ) { d < P && (d = P); break; } } if (l) break; } var U = _ - h, G = d - u; return ( 0 < U && ++U, 0 < G && ++G, U < 0 && (U = 0), G < 0 && (G = 0), h == _ && (U = 1), u == d && (G = 1), h > e.width && (h = 0), u > e.height && (u = 0), new Jb(h, u, U, G) ); }), (Wb.getPixel = function (e, t, s, n) { var i, r = e.buffer.data, o = 4 * (s + e.offsetY) * e.buffer.width + 4 * (t + e.offsetX), a = e.buffer.premultiplied; switch (e.buffer.format) { case 0: i = ((255 & r[o]) << 24) | ((255 & r[o + 1]) << 16) | ((255 & r[o + 2]) << 8) | (255 & r[o + 3]); break; case 1: i = ((255 & r[o + 1]) << 24) | ((255 & r[o + 2]) << 16) | ((255 & r[o + 3]) << 8) | (255 & r[o]); break; case 2: i = ((255 & r[o + 2]) << 24) | ((255 & r[o + 1]) << 16) | ((255 & r[o]) << 8) | (255 & r[o + 3]); } switch ( (a && 0 != (255 & i) && 255 != (255 & i) && ((sm.unmult = 255 / (255 & i)), (i = ((255 & sm.__clamp[Math.round(((i >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((i >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((i >> 8) & 255) * sm.unmult)]) << 8) | (255 & i))), (i = ((255 & (i >> 24)) << 24) | ((255 & (i >> 16)) << 16) | ((255 & (i >> 8)) << 8) | 0), n) ) { case 1: return ( ((255 & i) << 24) | ((255 & (i >> 24)) << 16) | ((255 & (i >> 16)) << 8) | (255 & (i >> 8)) ); case 2: return ( ((255 & (i >> 8)) << 24) | ((255 & (i >> 16)) << 16) | ((255 & (i >> 24)) << 8) | (255 & i) ); default: return i; } }), (Wb.getPixel32 = function (e, t, s, n) { var i, r = e.buffer.data, o = 4 * (s + e.offsetY) * e.buffer.width + 4 * (t + e.offsetX), a = e.buffer.premultiplied; switch (e.buffer.format) { case 0: i = ((255 & r[o]) << 24) | ((255 & r[o + 1]) << 16) | ((255 & r[o + 2]) << 8) | (255 & r[o + 3]); break; case 1: i = ((255 & r[o + 1]) << 24) | ((255 & r[o + 2]) << 16) | ((255 & r[o + 3]) << 8) | (255 & r[o]); break; case 2: i = ((255 & r[o + 2]) << 24) | ((255 & r[o + 1]) << 16) | ((255 & r[o]) << 8) | (255 & r[o + 3]); } switch ( (a && 0 != (255 & i) && 255 != (255 & i) && ((sm.unmult = 255 / (255 & i)), (i = ((255 & sm.__clamp[Math.round(((i >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((i >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((i >> 8) & 255) * sm.unmult)]) << 8) | (255 & i))), n) ) { case 1: return ( ((255 & i) << 24) | ((255 & (i >> 24)) << 16) | ((255 & (i >> 16)) << 8) | (255 & (i >> 8)) ); case 2: return ( ((255 & (i >> 8)) << 24) | ((255 & (i >> 16)) << 16) | ((255 & (i >> 24)) << 8) | (255 & i) ); default: return i; } }), (Wb.getPixels = function (e, t, s) { if (null == e.buffer.data) return null; for ( var n, i, r = (t.width * t.height) | 0, o = new Lf(new OT(4 * r)), a = e.buffer.data, l = e.buffer.format, h = e.buffer.premultiplied, _ = new jb(e, t), u = 0, d = 0, c = _.height; d < c; ) { var f = d++; n = _.offset + _.stride * f; for (var p = 0, b = _.width; p < b; ) { p++; switch (l) { case 0: i = ((255 & a[n]) << 24) | ((255 & a[n + 1]) << 16) | ((255 & a[n + 2]) << 8) | (255 & a[n + 3]); break; case 1: i = ((255 & a[n + 1]) << 24) | ((255 & a[n + 2]) << 16) | ((255 & a[n + 3]) << 8) | (255 & a[n]); break; case 2: i = ((255 & a[n + 2]) << 24) | ((255 & a[n + 1]) << 16) | ((255 & a[n]) << 8) | (255 & a[n + 3]); } switch ( (h && 0 != (255 & i) && 255 != (255 & i) && ((sm.unmult = 255 / (255 & i)), (i = ((255 & sm.__clamp[Math.round(((i >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((i >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((i >> 8) & 255) * sm.unmult)]) << 8) | (255 & i))), s) ) { case 1: i = ((255 & i) << 24) | ((255 & (i >> 24)) << 16) | ((255 & (i >> 16)) << 8) | (255 & (i >> 8)); break; case 2: i = ((255 & (i >> 8)) << 24) | ((255 & (i >> 16)) << 16) | ((255 & (i >> 24)) << 8) | (255 & i); } (o.b[u++] = 255 & (i >> 24)), (o.b[u++] = 255 & (i >> 16)), (o.b[u++] = 255 & (i >> 8)), (o.b[u++] = 255 & i), (n += 4); } } return o; }), (Wb.merge = function (e, t, s, n, i, r, o, a) { if (null != e.buffer.data && null != t.buffer.data) { for ( var l, h, _, u, d = new jb(t, s), c = new jb(e, new Jb(n.x, n.y, d.width, d.height)), f = t.buffer.data, p = e.buffer.data, b = t.buffer.format, m = e.buffer.format, g = t.buffer.premultiplied, w = e.buffer.premultiplied, v = 0, y = c.height; v < y; ) { var T = v++; (l = d.offset + d.stride * T), (h = c.offset + c.stride * T); for (var S = 0, x = c.width; S < x; ) { S++; switch (b) { case 0: _ = ((255 & f[l]) << 24) | ((255 & f[l + 1]) << 16) | ((255 & f[l + 2]) << 8) | (255 & f[l + 3]); break; case 1: _ = ((255 & f[l + 1]) << 24) | ((255 & f[l + 2]) << 16) | ((255 & f[l + 3]) << 8) | (255 & f[l]); break; case 2: _ = ((255 & f[l + 2]) << 24) | ((255 & f[l + 1]) << 16) | ((255 & f[l]) << 8) | (255 & f[l + 3]); } switch ( (g && 0 != (255 & _) && 255 != (255 & _) && ((sm.unmult = 255 / (255 & _)), (_ = ((255 & sm.__clamp[Math.round(((_ >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((_ >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((_ >> 8) & 255) * sm.unmult)]) << 8) | (255 & _))), m) ) { case 0: u = ((255 & p[h]) << 24) | ((255 & p[h + 1]) << 16) | ((255 & p[h + 2]) << 8) | (255 & p[h + 3]); break; case 1: u = ((255 & p[h + 1]) << 24) | ((255 & p[h + 2]) << 16) | ((255 & p[h + 3]) << 8) | (255 & p[h]); break; case 2: u = ((255 & p[h + 2]) << 24) | ((255 & p[h + 1]) << 16) | ((255 & p[h]) << 8) | (255 & p[h + 3]); } switch ( (w && 0 != (255 & u) && 255 != (255 & u) && ((sm.unmult = 255 / (255 & u)), (u = ((255 & sm.__clamp[Math.round(((u >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((u >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((u >> 8) & 255) * sm.unmult)]) << 8) | (255 & u))), (u = ((255 & ((u = ((255 & ((u = ((255 & ((u = ((255 & (((((_ >> 24) & 255) * i + ((u >> 24) & 255) * (256 - i)) / 256) | 0)) << 24) | ((255 & (u >> 16)) << 16) | ((255 & (u >> 8)) << 8) | (255 & u)) >> 24)) << 24) | ((255 & (((((_ >> 16) & 255) * r + ((u >> 16) & 255) * (256 - r)) / 256) | 0)) << 16) | ((255 & (u >> 8)) << 8) | (255 & u)) >> 24)) << 24) | ((255 & (u >> 16)) << 16) | ((255 & (((((_ >> 8) & 255) * o + ((u >> 8) & 255) * (256 - o)) / 256) | 0)) << 8) | (255 & u)) >> 24)) << 24) | ((255 & (u >> 16)) << 16) | ((255 & (u >> 8)) << 8) | (255 & ((((255 & _) * a + (255 & u) * (256 - a)) / 256) | 0))), w && (0 == (255 & u) ? 0 != u && (u = 0) : 255 != (255 & u) && ((sm.a16 = sm.__alpha16[255 & u]), (u = ((((((u >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((u >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((u >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & u)))), m) ) { case 0: (p[h] = (u >> 24) & 255), (p[h + 1] = (u >> 16) & 255), (p[h + 2] = (u >> 8) & 255), (p[h + 3] = 255 & u); break; case 1: (p[h] = 255 & u), (p[h + 1] = (u >> 24) & 255), (p[h + 2] = (u >> 16) & 255), (p[h + 3] = (u >> 8) & 255); break; case 2: (p[h] = (u >> 8) & 255), (p[h + 1] = (u >> 16) & 255), (p[h + 2] = (u >> 24) & 255), (p[h + 3] = 255 & u); } (l += 4), (h += 4); } } e.dirty = !0; } }), (Wb.multiplyAlpha = function (e) { var t = e.buffer.data; if (null != t && e.buffer.transparent) { for ( var s, n = e.buffer.format, i = 0, r = (t.length / 4) | 0; i < r; ) { var o = i++, a = 4 * o; switch (n) { case 0: s = ((255 & t[a]) << 24) | ((255 & t[a + 1]) << 16) | ((255 & t[a + 2]) << 8) | (255 & t[a + 3]); break; case 1: s = ((255 & t[a + 1]) << 24) | ((255 & t[a + 2]) << 16) | ((255 & t[a + 3]) << 8) | (255 & t[a]); break; case 2: s = ((255 & t[a + 2]) << 24) | ((255 & t[a + 1]) << 16) | ((255 & t[a]) << 8) | (255 & t[a + 3]); } var l = 4 * o; switch ( (0 == (255 & s) ? 0 != s && (s = 0) : 255 != (255 & s) && ((sm.a16 = sm.__alpha16[255 & s]), (s = ((((((s >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((s >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((s >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & s))), n) ) { case 0: (t[l] = (s >> 24) & 255), (t[l + 1] = (s >> 16) & 255), (t[l + 2] = (s >> 8) & 255), (t[l + 3] = 255 & s); break; case 1: (t[l] = 255 & s), (t[l + 1] = (s >> 24) & 255), (t[l + 2] = (s >> 16) & 255), (t[l + 3] = (s >> 8) & 255); break; case 2: (t[l] = (s >> 8) & 255), (t[l + 1] = (s >> 16) & 255), (t[l + 2] = (s >> 24) & 255), (t[l + 3] = 255 & s); } } (e.buffer.premultiplied = !0), (e.dirty = !0); } }), (Wb.resize = function (e, t, s) { var n = e.buffer; if (n.width != t || n.height != s) { var i, r = t * s * 4; i = null != r ? new zT(r) : null; for ( var o, a, l, h, _, u, d, c, f, p, b, m, g, w = new Fb(i, t, s), v = e.width, y = e.height, T = e.get_data(), S = w.data, x = 0, E = s; x < E; ) for (var P = x++, R = 0, A = t; R < A; ) { var I = R++; (o = 4 * ((d = 0 | (f = ((P + 0.5) / s) * y - 0.5)) * v + (u = 0 | (c = ((I + 0.5) / t) * v - 0.5)))), (l = d < y - 1 ? o + 4 * v : o), (h = (a = u < v - 1 ? o + 4 : o) != o ? l + 4 : l), (m = 1 - (p = c - u)), (g = 1 - (b = f - d)), (S[(_ = 4 * (P * t + I))] = ((Gt.toFloat(T[o]) * m + Gt.toFloat(T[a]) * p) * g + (Gt.toFloat(T[l]) * m + Gt.toFloat(T[h]) * p) * b) | 0), (S[_ + 1] = ((Gt.toFloat(T[o + 1]) * m + Gt.toFloat(T[a + 1]) * p) * g + (Gt.toFloat(T[l + 1]) * m + Gt.toFloat(T[h + 1]) * p) * b) | 0), (S[_ + 2] = ((Gt.toFloat(T[o + 2]) * m + Gt.toFloat(T[a + 2]) * p) * g + (Gt.toFloat(T[l + 2]) * m + Gt.toFloat(T[h + 2]) * p) * b) | 0), 0 == T[a + 3] || 0 == T[l + 3] || 0 == T[h + 3] ? (S[_ + 3] = 0) : (S[_ + 3] = T[o + 3]); } (n.data = w.data), (n.width = t), (n.height = s); } }), (Wb.resizeBuffer = function (e, t, s) { for ( var n, i, r = e.buffer, o = e.get_data(), a = t * s * 4, l = null != a ? new zT(a) : null, h = 0, _ = r.height; h < _; ) for (var u = h++, d = 0, c = r.width; d < c; ) { var f = d++; (n = 4 * (u * r.width + f)), (l[(i = 4 * (u * t + f))] = o[n]), (l[i + 1] = o[n + 1]), (l[i + 2] = o[n + 2]), (l[i + 3] = o[n + 3]); } (r.data = l), (r.width = t), (r.height = s); }), (Wb.setFormat = function (e, t) { var s = e.buffer.data; if (null != s) { var n, i, r, o, a, l, h, _, u, d, c, f, p, b = (s.length / 4) | 0; switch (e.get_format()) { case 0: (i = 0), (r = 1), (o = 2), (a = 3); break; case 1: (i = 1), (r = 2), (o = 3), (a = 0); break; case 2: (i = 2), (r = 1), (o = 0), (a = 3); } switch (t) { case 0: (l = 0), (h = 1), (_ = 2), (u = 3); break; case 1: (l = 1), (h = 2), (_ = 3), (u = 0); break; case 2: (l = 2), (h = 1), (_ = 0), (u = 3); } for (var m = 0, g = b; m < g; ) { (d = s[(n = 4 * m++) + i]), (c = s[n + r]), (f = s[n + o]), (p = s[n + a]), (s[n + l] = d), (s[n + h] = c), (s[n + _] = f), (s[n + u] = p); } (e.buffer.format = t), (e.dirty = !0); } }), (Wb.setPixel = function (e, t, s, n, i) { var r; switch (i) { case 1: r = ((255 & (n >> 16)) << 24) | ((255 & (n >> 8)) << 16) | ((255 & n) << 8) | (255 & (n >> 24)); break; case 2: r = ((255 & (n >> 8)) << 24) | ((255 & (n >> 16)) << 16) | ((255 & (n >> 24)) << 8) | (255 & n); break; default: r = n; } var o = 0, a = e.buffer.data, l = 4 * (s + e.offsetY) * e.buffer.width + 4 * (t + e.offsetX), h = e.buffer.premultiplied; switch (e.buffer.format) { case 0: o = ((255 & a[l]) << 24) | ((255 & a[l + 1]) << 16) | ((255 & a[l + 2]) << 8) | (255 & a[l + 3]); break; case 1: o = ((255 & a[l + 1]) << 24) | ((255 & a[l + 2]) << 16) | ((255 & a[l + 3]) << 8) | (255 & a[l]); break; case 2: o = ((255 & a[l + 2]) << 24) | ((255 & a[l + 1]) << 16) | ((255 & a[l]) << 8) | (255 & a[l + 3]); } h && 0 != (255 & o) && 255 != (255 & o) && ((sm.unmult = 255 / (255 & o)), (o = ((255 & sm.__clamp[Math.round(((o >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((o >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((o >> 8) & 255) * sm.unmult)]) << 8) | (255 & o))), (r = ((255 & (r >> 24)) << 24) | ((255 & (r >> 16)) << 16) | ((255 & (r >> 8)) << 8) | (255 & (255 & o))); var _ = e.buffer.data, u = 4 * (s + e.offsetY) * e.buffer.width + 4 * (t + e.offsetX); switch ( (e.buffer.premultiplied && (0 == (255 & r) ? 0 != r && (r = 0) : 255 != (255 & r) && ((sm.a16 = sm.__alpha16[255 & r]), (r = ((((((r >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((r >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((r >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & r)))), e.buffer.format) ) { case 0: (_[u] = (r >> 24) & 255), (_[u + 1] = (r >> 16) & 255), (_[u + 2] = (r >> 8) & 255), (_[u + 3] = 255 & r); break; case 1: (_[u] = 255 & r), (_[u + 1] = (r >> 24) & 255), (_[u + 2] = (r >> 16) & 255), (_[u + 3] = (r >> 8) & 255); break; case 2: (_[u] = (r >> 8) & 255), (_[u + 1] = (r >> 16) & 255), (_[u + 2] = (r >> 24) & 255), (_[u + 3] = 255 & r); } e.dirty = !0; }), (Wb.setPixel32 = function (e, t, s, n, i) { var r; switch (i) { case 1: r = ((255 & (n >> 16)) << 24) | ((255 & (n >> 8)) << 16) | ((255 & n) << 8) | (255 & (n >> 24)); break; case 2: r = ((255 & (n >> 8)) << 24) | ((255 & (n >> 16)) << 16) | ((255 & (n >> 24)) << 8) | (255 & n); break; default: r = n; } e.get_transparent() || (r = ((255 & (r >> 24)) << 24) | ((255 & (r >> 16)) << 16) | ((255 & (r >> 8)) << 8) | 255); var o = e.buffer.data, a = 4 * (s + e.offsetY) * e.buffer.width + 4 * (t + e.offsetX); switch ( (e.buffer.premultiplied && (0 == (255 & r) ? 0 != r && (r = 0) : 255 != (255 & r) && ((sm.a16 = sm.__alpha16[255 & r]), (r = ((((((r >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((r >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((r >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & r)))), e.buffer.format) ) { case 0: (o[a] = (r >> 24) & 255), (o[a + 1] = (r >> 16) & 255), (o[a + 2] = (r >> 8) & 255), (o[a + 3] = 255 & r); break; case 1: (o[a] = 255 & r), (o[a + 1] = (r >> 24) & 255), (o[a + 2] = (r >> 16) & 255), (o[a + 3] = (r >> 8) & 255); break; case 2: (o[a] = (r >> 8) & 255), (o[a + 1] = (r >> 16) & 255), (o[a + 2] = (r >> 24) & 255), (o[a + 3] = 255 & r); } e.dirty = !0; }), (Wb.setPixels = function (e, t, s, n) { if (null != e.buffer.data) { for ( var i, r, o, a = e.buffer.data, l = e.buffer.format, h = e.buffer.premultiplied, _ = new jb(e, t), u = e.get_transparent(), d = 0, c = 0, f = _.height; c < f; ) { var p = c++; i = _.offset + _.stride * p; for (var b = 0, m = _.width; b < m; ) { var g = b++; switch ( ((r = s.b[d + 3] | (s.b[d + 2] << 8) | (s.b[d + 1] << 16) | (s.b[d] << 24)), (d += 4), n) ) { case 1: o = ((255 & (r >> 16)) << 24) | ((255 & (r >> 8)) << 16) | ((255 & r) << 8) | (255 & (r >> 24)); break; case 2: o = ((255 & (r >> 8)) << 24) | ((255 & (r >> 16)) << 16) | ((255 & (r >> 24)) << 8) | (255 & r); break; default: o = r; } u || (o = ((255 & (o >> 24)) << 24) | ((255 & (o >> 16)) << 16) | ((255 & (o >> 8)) << 8) | 255); var w = i + 4 * g; switch ( (h && (0 == (255 & o) ? 0 != o && (o = 0) : 255 != (255 & o) && ((sm.a16 = sm.__alpha16[255 & o]), (o = ((((((o >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((o >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((o >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & o)))), l) ) { case 0: (a[w] = (o >> 24) & 255), (a[w + 1] = (o >> 16) & 255), (a[w + 2] = (o >> 8) & 255), (a[w + 3] = 255 & o); break; case 1: (a[w] = 255 & o), (a[w + 1] = (o >> 24) & 255), (a[w + 2] = (o >> 16) & 255), (a[w + 3] = (o >> 8) & 255); break; case 2: (a[w] = (o >> 8) & 255), (a[w + 1] = (o >> 16) & 255), (a[w + 2] = (o >> 24) & 255), (a[w + 3] = 255 & o); } } } e.dirty = !0; } }), (Wb.threshold = function (e, t, s, n, i, r, o, a, l, h) { var _, u, d, c; switch (h) { case 1: _ = ((255 & (o >> 16)) << 24) | ((255 & (o >> 8)) << 16) | ((255 & o) << 8) | (255 & (o >> 24)); u = ((255 & (a >> 16)) << 24) | ((255 & (a >> 8)) << 16) | ((255 & a) << 8) | (255 & (a >> 24)); d = ((255 & (r >> 16)) << 24) | ((255 & (r >> 8)) << 16) | ((255 & r) << 8) | (255 & (r >> 24)); break; case 2: _ = ((255 & (o >> 8)) << 24) | ((255 & (o >> 16)) << 16) | ((255 & (o >> 24)) << 8) | (255 & o); u = ((255 & (a >> 8)) << 24) | ((255 & (a >> 16)) << 16) | ((255 & (a >> 24)) << 8) | (255 & a); d = ((255 & (r >> 8)) << 24) | ((255 & (r >> 16)) << 16) | ((255 & (r >> 24)) << 8) | (255 & r); break; default: (_ = o), (u = a), (d = r); } switch (i) { case "!=": c = 0; break; case "<": c = 2; break; case "<=": c = 3; break; case "==": c = 1; break; case ">": c = 4; break; case ">=": c = 5; break; default: c = -1; } if (-1 == c) return 0; var f = t.buffer.data, p = e.buffer.data; if (null == f || null == p) return 0; for ( var b, m, g, w, v, y, T = 0, S = new jb(t, s), x = new jb(e, new Jb(n.x, n.y, S.width, S.height)), E = t.buffer.format, P = e.buffer.format, R = t.buffer.premultiplied, A = e.buffer.premultiplied, I = 0, C = x.height; I < C; ) { var B = I++; (b = S.offset + S.stride * B), (m = x.offset + x.stride * B); for (var D = 0, k = x.width; D < k; ) { var F, M; D++; switch (E) { case 0: g = ((255 & f[b]) << 24) | ((255 & f[b + 1]) << 16) | ((255 & f[b + 2]) << 8) | (255 & f[b + 3]); break; case 1: g = ((255 & f[b + 1]) << 24) | ((255 & f[b + 2]) << 16) | ((255 & f[b + 3]) << 8) | (255 & f[b]); break; case 2: g = ((255 & f[b + 2]) << 24) | ((255 & f[b + 1]) << 16) | ((255 & f[b]) << 8) | (255 & f[b + 3]); } switch ( (R && 0 != (255 & g) && 255 != (255 & g) && ((sm.unmult = 255 / (255 & g)), (g = ((255 & sm.__clamp[Math.round(((g >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((g >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((g >> 8) & 255) * sm.unmult)]) << 8) | (255 & g))), (y = (F = ((w = g & u) >> 24) & 255) != (M = (d >> 24) & 255) ? M < F ? 1 : -1 : (F = (w >> 16) & 255) != (M = (d >> 16) & 255) ? M < F ? 1 : -1 : (F = (w >> 8) & 255) != (M = (d >> 8) & 255) ? M < F ? 1 : -1 : (F = 255 & w) != (M = 255 & d) ? M < F ? 1 : -1 : 0), c) ) { case 0: v = 0 != y; break; case 1: v = 0 == y; break; case 2: v = -1 == y; break; case 3: v = 0 == y || -1 == y; break; case 4: v = 1 == y; break; case 5: v = 0 == y || 1 == y; break; default: v = !1; } if (v) { switch ( (A && (0 == (255 & _) ? 0 != _ && (_ = 0) : 255 != (255 & _) && ((sm.a16 = sm.__alpha16[255 & _]), (_ = ((((((_ >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((_ >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((_ >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & _)))), P) ) { case 0: (p[m] = (_ >> 24) & 255), (p[m + 1] = (_ >> 16) & 255), (p[m + 2] = (_ >> 8) & 255), (p[m + 3] = 255 & _); break; case 1: (p[m] = 255 & _), (p[m + 1] = (_ >> 24) & 255), (p[m + 2] = (_ >> 16) & 255), (p[m + 3] = (_ >> 8) & 255); break; case 2: (p[m] = (_ >> 8) & 255), (p[m + 1] = (_ >> 16) & 255), (p[m + 2] = (_ >> 24) & 255), (p[m + 3] = 255 & _); } ++T; } else if (l) switch ( (A && (0 == (255 & g) ? 0 != g && (g = 0) : 255 != (255 & g) && ((sm.a16 = sm.__alpha16[255 & g]), (g = ((((((g >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((g >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((g >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & g)))), P) ) { case 0: (p[m] = (g >> 24) & 255), (p[m + 1] = (g >> 16) & 255), (p[m + 2] = (g >> 8) & 255), (p[m + 3] = 255 & g); break; case 1: (p[m] = 255 & g), (p[m + 1] = (g >> 24) & 255), (p[m + 2] = (g >> 16) & 255), (p[m + 3] = (g >> 8) & 255); break; case 2: (p[m] = (g >> 8) & 255), (p[m + 1] = (g >> 16) & 255), (p[m + 2] = (g >> 24) & 255), (p[m + 3] = 255 & g); } (b += 4), (m += 4); } } return 0 < T && (e.dirty = !0), T; }), (Wb.unmultiplyAlpha = function (e) { var t = e.buffer.data; if (null != t) { for ( var s, n = e.buffer.format, i = 0, r = (t.length / 4) | 0; i < r; ) { var o = i++, a = 4 * o; switch (n) { case 0: s = ((255 & t[a]) << 24) | ((255 & t[a + 1]) << 16) | ((255 & t[a + 2]) << 8) | (255 & t[a + 3]); break; case 1: s = ((255 & t[a + 1]) << 24) | ((255 & t[a + 2]) << 16) | ((255 & t[a + 3]) << 8) | (255 & t[a]); break; case 2: s = ((255 & t[a + 2]) << 24) | ((255 & t[a + 1]) << 16) | ((255 & t[a]) << 8) | (255 & t[a + 3]); } 0 != (255 & s) && 255 != (255 & s) && ((sm.unmult = 255 / (255 & s)), (s = ((255 & sm.__clamp[Math.round(((s >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((s >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((s >> 8) & 255) * sm.unmult)]) << 8) | (255 & s))); var l = 4 * o; switch (n) { case 0: (t[l] = (s >> 24) & 255), (t[l + 1] = (s >> 16) & 255), (t[l + 2] = (s >> 8) & 255), (t[l + 3] = 255 & s); break; case 1: (t[l] = 255 & s), (t[l + 1] = (s >> 24) & 255), (t[l + 2] = (s >> 16) & 255), (t[l + 3] = (s >> 8) & 255); break; case 2: (t[l] = (s >> 8) & 255), (t[l + 1] = (s >> 16) & 255), (t[l + 2] = (s >> 24) & 255), (t[l + 3] = 255 & s); } } (e.buffer.premultiplied = !1), (e.dirty = !0); } }), (Wb.__pixelCompare = function (e, t) { var s, n; return (s = (e >> 24) & 255) != (n = (t >> 24) & 255) ? n < s ? 1 : -1 : (s = (e >> 16) & 255) != (n = (t >> 16) & 255) ? n < s ? 1 : -1 : (s = (e >> 8) & 255) != (n = (t >> 8) & 255) ? n < s ? 1 : -1 : (s = 255 & e) != (n = 255 & t) ? n < s ? 1 : -1 : 0; }); var jb = function (e, t) { (this.image = e), (this.rect = null == t ? e.get_rect() : (t.x < 0 && (t.x = 0), t.y < 0 && (t.y = 0), t.x + t.width > e.width && (t.width = e.width - t.x), t.y + t.height > e.height && (t.height = e.height - t.y), t.width < 0 && (t.width = 0), t.height < 0 && (t.height = 0), t)), (this.stride = e.buffer.get_stride()), (this.x = Math.ceil(this.rect.x)), (this.y = Math.ceil(this.rect.y)), (this.width = Math.floor(this.rect.width)), (this.height = Math.floor(this.rect.height)), (this.offset = this.stride * (this.y + e.offsetY) + 4 * (this.x + e.offsetX)); }; ((s["lime.graphics.utils._ImageDataUtil.ImageDataView"] = jb).__name__ = [ "lime", "graphics", "utils", "_ImageDataUtil", "ImageDataView", ]), (jb.prototype = { clip: function (e, t, s, n) { this.rect.__contract(e, t, s, n), (this.x = Math.ceil(this.rect.x)), (this.y = Math.ceil(this.rect.y)), (this.width = Math.floor(this.rect.width)), (this.height = Math.floor(this.rect.height)), (this.offset = this.stride * (this.y + this.image.offsetY) + 4 * (this.x + this.image.offsetX)); }, row: function (e) { return this.offset + this.stride * e; }, __class__: jb, }); var Kb = {}; ((s["lime.math._ColorMatrix.ColorMatrix_Impl_"] = Kb).__name__ = [ "lime", "math", "_ColorMatrix", "ColorMatrix_Impl_", ]), (Kb.__properties__ = { set_redOffset: "set_redOffset", get_redOffset: "get_redOffset", set_redMultiplier: "set_redMultiplier", get_redMultiplier: "get_redMultiplier", set_greenOffset: "set_greenOffset", get_greenOffset: "get_greenOffset", set_greenMultiplier: "set_greenMultiplier", get_greenMultiplier: "get_greenMultiplier", set_color: "set_color", get_color: "get_color", set_blueOffset: "set_blueOffset", get_blueOffset: "get_blueOffset", set_blueMultiplier: "set_blueMultiplier", get_blueMultiplier: "get_blueMultiplier", set_alphaOffset: "set_alphaOffset", get_alphaOffset: "get_alphaOffset", set_alphaMultiplier: "set_alphaMultiplier", get_alphaMultiplier: "get_alphaMultiplier", }), (Kb._new = function (e) { var t; if (null != e && 20 == e.length) t = e; else { var s = Kb.__identity; t = null != s ? new GT(s) : null; } return t; }), (Kb.clone = function (e) { var t; return (t = null != e ? new GT(e) : null), Kb._new(t); }), (Kb.concat = function (e, t) { (e[0] += t[0]), (e[6] += t[6]), (e[12] += t[12]), (e[18] += t[18]); }), (Kb.copyFrom = function (e, t) { e.set(t); }), (Kb.identity = function (e) { (e[0] = 1), (e[1] = 0), (e[2] = 0), (e[3] = 0), (e[4] = 0), (e[5] = 0), (e[6] = 1), (e[7] = 0), (e[8] = 0), (e[9] = 0), (e[10] = 0), (e[11] = 0), (e[12] = 1), (e[13] = 0), (e[14] = 0), (e[15] = 0), (e[16] = 0), (e[17] = 0), (e[18] = 1), (e[19] = 0); }), (Kb.getAlphaTable = function (e) { for ( var t, s = new zT(256), n = e[18], i = 255 * e[19], r = 0; r < 256; ) { var o = r++; 255 < (t = Math.floor(o * n + i)) && (t = 255), t < 0 && (t = 0), (s[o] = t); } return s; }), (Kb.getBlueTable = function (e) { for ( var t, s = new zT(256), n = e[12], i = 255 * e[14], r = 0; r < 256; ) { var o = r++; 255 < (t = Math.floor(o * n + i)) && (t = 255), t < 0 && (t = 0), (s[o] = t); } return s; }), (Kb.getGreenTable = function (e) { for (var t, s = new zT(256), n = e[6], i = 255 * e[9], r = 0; r < 256; ) { var o = r++; 255 < (t = Math.floor(o * n + i)) && (t = 255), t < 0 && (t = 0), (s[o] = t); } return s; }), (Kb.getRedTable = function (e) { for (var t, s = new zT(256), n = e[0], i = 255 * e[4], r = 0; r < 256; ) { var o = r++; 255 < (t = Math.floor(o * n + i)) && (t = 255), t < 0 && (t = 0), (s[o] = t); } return s; }), (Kb.__toFlashColorTransform = function (e) { return null; }), (Kb.get_alphaMultiplier = function (e) { return e[18]; }), (Kb.set_alphaMultiplier = function (e, t) { return (e[18] = t); }), (Kb.get_alphaOffset = function (e) { return 255 * e[19]; }), (Kb.set_alphaOffset = function (e, t) { return (e[19] = t / 255); }), (Kb.get_blueMultiplier = function (e) { return e[12]; }), (Kb.set_blueMultiplier = function (e, t) { return (e[12] = t); }), (Kb.get_blueOffset = function (e) { return 255 * e[14]; }), (Kb.set_blueOffset = function (e, t) { return (e[14] = t / 255); }), (Kb.get_color = function (e) { return ( (((255 * e[4]) | 0) << 16) | (((255 * e[9]) | 0) << 8) | (255 * e[14]) | 0 ); }), (Kb.set_color = function (e, t) { return ( (e[4] = ((t >> 16) & 255) / 255), (e[9] = ((t >> 8) & 255) / 255), (e[14] = (255 & t) / 255), (e[0] = 0), (e[6] = 0), (e[12] = 0), Kb.get_color(e) ); }), (Kb.get_greenMultiplier = function (e) { return e[6]; }), (Kb.set_greenMultiplier = function (e, t) { return (e[6] = t); }), (Kb.get_greenOffset = function (e) { return 255 * e[9]; }), (Kb.set_greenOffset = function (e, t) { return (e[9] = t / 255); }), (Kb.get_redMultiplier = function (e) { return e[0]; }), (Kb.set_redMultiplier = function (e, t) { return (e[0] = t); }), (Kb.get_redOffset = function (e) { return 255 * e[4]; }), (Kb.set_redOffset = function (e, t) { return (e[4] = t / 255); }), (Kb.get = function (e, t) { return e[t]; }), (Kb.set = function (e, t, s) { return (e[t] = s); }); var qb = function (e, t, s, n, i, r) { null == r && (r = 0), null == i && (i = 0), null == n && (n = 1), null == s && (s = 0), null == t && (t = 0), null == e && (e = 1), (this.a = e), (this.b = t), (this.c = s), (this.d = n), (this.tx = i), (this.ty = r); }; ((s["lime.math.Matrix3"] = qb).__name__ = ["lime", "math", "Matrix3"]), (qb.prototype = { clone: function () { return new qb(this.a, this.b, this.c, this.d, this.tx, this.ty); }, concat: function (e) { var t = this.a * e.a + this.b * e.c; (this.b = this.a * e.b + this.b * e.d), (this.a = t); var s = this.c * e.a + this.d * e.c; (this.d = this.c * e.b + this.d * e.d), (this.c = s); var n = this.tx * e.a + this.ty * e.c + e.tx; (this.ty = this.tx * e.b + this.ty * e.d + e.ty), (this.tx = n); }, copyColumnFrom: function (e, t) { if (2 < e) throw new Mp("Column " + e + " out of bounds (2)"); 0 == e ? ((this.a = t.x), (this.c = t.y)) : 1 == e ? ((this.b = t.x), (this.d = t.y)) : ((this.tx = t.x), (this.ty = t.y)); }, copyColumnTo: function (e, t) { if (2 < e) throw new Mp("Column " + e + " out of bounds (2)"); t.z = 0 == e ? ((t.x = this.a), (t.y = this.c), 0) : 1 == e ? ((t.x = this.b), (t.y = this.d), 0) : ((t.x = this.tx), (t.y = this.ty), 1); }, copyFrom: function (e) { (this.a = e.a), (this.b = e.b), (this.c = e.c), (this.d = e.d), (this.tx = e.tx), (this.ty = e.ty); }, copyRowFrom: function (e, t) { if (2 < e) throw new Mp("Row " + e + " out of bounds (2)"); 0 == e ? ((this.a = t.x), (this.c = t.y)) : 1 == e ? ((this.b = t.x), (this.d = t.y)) : ((this.tx = t.x), (this.ty = t.y)); }, copyRowTo: function (e, t) { if (2 < e) throw new Mp("Row " + e + " out of bounds (2)"); t.z = 0 == e ? ((t.x = this.a), (t.y = this.b), this.tx) : 1 == e ? ((t.x = this.c), (t.y = this.d), this.ty) : ((t.x = 0), (t.y = 0), 1); }, createBox: function (e, t, s, n, i) { null == i && (i = 0), null == n && (n = 0), null == s && (s = 0), (this.a = e), (this.d = t), (this.b = s), (this.tx = n), (this.ty = i); }, createGradientBox: function (e, t, s, n, i) { if ( (null == i && (i = 0), null == n && (n = 0), null == s && (s = 0), (this.a = e / 1638.4), (this.d = t / 1638.4), 0 != s) ) { var r = Math.cos(s), o = Math.sin(s); (this.b = o * this.d), (this.c = -o * this.a), (this.a *= r), (this.d *= r); } else (this.b = 0), (this.c = 0); (this.tx = n + e / 2), (this.ty = i + t / 2); }, equals: function (e) { return ( null != e && this.tx == e.tx && this.ty == e.ty && this.a == e.a && this.b == e.b && this.c == e.c && this.d == e.d ); }, deltaTransformVector2: function (e) { return new Qb(e.x * this.a + e.y * this.c, e.x * this.b + e.y * this.d); }, identity: function () { (this.a = 1), (this.b = 0), (this.c = 0), (this.d = 1), (this.tx = 0), (this.ty = 0); }, invert: function () { var e = this.a * this.d - this.b * this.c; if (0 == e) (this.a = this.b = this.c = this.d = 0), (this.tx = -this.tx), (this.ty = -this.ty); else { e = 1 / e; var t = this.d * e; (this.d = this.a * e), (this.a = t), (this.b *= -e), (this.c *= -e); var s = -this.a * this.tx - this.c * this.ty; (this.ty = -this.b * this.tx - this.d * this.ty), (this.tx = s); } return this; }, mult: function (e) { var t = new qb(this.a, this.b, this.c, this.d, this.tx, this.ty); return t.concat(e), t; }, rotate: function (e) { var t = Math.cos(e), s = Math.sin(e), n = this.a * t - this.b * s; (this.b = this.a * s + this.b * t), (this.a = n); var i = this.c * t - this.d * s; (this.d = this.c * s + this.d * t), (this.c = i); var r = this.tx * t - this.ty * s; (this.ty = this.tx * s + this.ty * t), (this.tx = r); }, scale: function (e, t) { (this.a *= e), (this.b *= t), (this.c *= e), (this.d *= t), (this.tx *= e), (this.ty *= t); }, setRotation: function (e, t) { null == t && (t = 1), (this.a = Math.cos(e) * t), (this.c = Math.sin(e) * t), (this.b = -this.c), (this.d = this.a); }, setTo: function (e, t, s, n, i, r) { (this.a = e), (this.b = t), (this.c = s), (this.d = n), (this.tx = i), (this.ty = r); }, to3DString: function (e) { return ( null == e && (e = !1), e ? "Matrix33d(" + this.a + ", " + this.b + ", 0, 0, " + this.c + ", " + this.d + ", 0, 0, 0, 0, 1, 0, " + (0 | this.tx) + ", " + (0 | this.ty) + ", 0, 1)" : "Matrix33d(" + this.a + ", " + this.b + ", 0, 0, " + this.c + ", " + this.d + ", 0, 0, 0, 0, 1, 0, " + this.tx + ", " + this.ty + ", 0, 1)" ); }, toMozString: function () { return ( "Matrix3(" + this.a + ", " + this.b + ", " + this.c + ", " + this.d + ", " + this.tx + "px, " + this.ty + "px)" ); }, toString: function () { return ( "Matrix3(" + this.a + ", " + this.b + ", " + this.c + ", " + this.d + ", " + this.tx + ", " + this.ty + ")" ); }, transformVector2: function (e) { return new Qb( e.x * this.a + e.y * this.c + this.tx, e.x * this.b + e.y * this.d + this.ty ); }, translate: function (e, t) { (this.tx += e), (this.ty += t); }, __cleanValues: function () { (this.a = Math.round(1e3 * this.a) / 1e3), (this.b = Math.round(1e3 * this.b) / 1e3), (this.c = Math.round(1e3 * this.c) / 1e3), (this.d = Math.round(1e3 * this.d) / 1e3), (this.tx = Math.round(10 * this.tx) / 10), (this.ty = Math.round(10 * this.ty) / 10); }, __transformX: function (e) { return e.x * this.a + e.y * this.c + this.tx; }, __transformY: function (e) { return e.x * this.b + e.y * this.d + this.ty; }, __translateTransformed: function (e) { (this.tx = e.x * this.a + e.y * this.c + this.tx), (this.ty = e.x * this.b + e.y * this.d + this.ty); }, __class__: qb, }); var Zb = {}; ((s["lime.math._Matrix4.Matrix4_Impl_"] = Zb).__name__ = [ "lime", "math", "_Matrix4", "Matrix4_Impl_", ]), (Zb.__properties__ = { set_position: "set_position", get_position: "get_position", get_determinant: "get_determinant", }), (Zb._new = function (e) { var t; if (null != e && 16 == e.length) t = e; else { var s = Zb.__identity; t = null != s ? new GT(s) : null; } return t; }), (Zb.append = function (e, t) { var s = e[0], n = e[4], i = e[8], r = e[12], o = e[1], a = e[5], l = e[9], h = e[13], _ = e[2], u = e[6], d = e[10], c = e[14], f = e[3], p = e[7], b = e[11], m = e[15], g = Zb.get(t, 0), w = Zb.get(t, 4), v = Zb.get(t, 8), y = Zb.get(t, 12), T = Zb.get(t, 1), S = Zb.get(t, 5), x = Zb.get(t, 9), E = Zb.get(t, 13), P = Zb.get(t, 2), R = Zb.get(t, 6), A = Zb.get(t, 10), I = Zb.get(t, 14), C = Zb.get(t, 3), B = Zb.get(t, 7), D = Zb.get(t, 11), k = Zb.get(t, 15); (e[0] = s * g + o * w + _ * v + f * y), (e[1] = s * T + o * S + _ * x + f * E), (e[2] = s * P + o * R + _ * A + f * I), (e[3] = s * C + o * B + _ * D + f * k), (e[4] = n * g + a * w + u * v + p * y), (e[5] = n * T + a * S + u * x + p * E), (e[6] = n * P + a * R + u * A + p * I), (e[7] = n * C + a * B + u * D + p * k), (e[8] = i * g + l * w + d * v + b * y), (e[9] = i * T + l * S + d * x + b * E), (e[10] = i * P + l * R + d * A + b * I), (e[11] = i * C + l * B + d * D + b * k), (e[12] = r * g + h * w + c * v + m * y), (e[13] = r * T + h * S + c * x + m * E), (e[14] = r * P + h * R + c * A + m * I), (e[15] = r * C + h * B + c * D + m * k); }), (Zb.appendRotation = function (e, t, s, n) { var i = Zb.getAxisRotation(s.x, s.y, s.z, t); if (null != n) { var r = n; Zb.appendTranslation(i, r.x, r.y, r.z); } Zb.append(e, i); }), (Zb.appendScale = function (e, t, s, n) { var i, r = [t, 0, 0, 0, 0, s, 0, 0, 0, 0, n, 0, 0, 0, 0, 1]; (i = null != r ? new GT(r) : null), Zb.append(e, Zb._new(i)); }), (Zb.appendTranslation = function (e, t, s, n) { (e[12] += t), (e[13] += s), (e[14] += n); }), (Zb.clone = function (e) { var t; return (t = null != e ? new GT(e) : null), Zb._new(t); }), (Zb.copyColumnFrom = function (e, t, s) { switch (t) { case 0: (e[0] = s.x), (e[1] = s.y), (e[2] = s.z), (e[3] = s.w); break; case 1: (e[4] = s.x), (e[5] = s.y), (e[6] = s.z), (e[7] = s.w); break; case 2: (e[8] = s.x), (e[9] = s.y), (e[10] = s.z), (e[11] = s.w); break; case 3: (e[12] = s.x), (e[13] = s.y), (e[14] = s.z), (e[15] = s.w); break; default: throw new Mp("Error, Column " + t + " out of bounds [0, ..., 3]"); } }), (Zb.copyColumnTo = function (e, t, s) { switch (t) { case 0: (s.x = e[0]), (s.y = e[1]), (s.z = e[2]), (s.w = e[3]); break; case 1: (s.x = e[4]), (s.y = e[5]), (s.z = e[6]), (s.w = e[7]); break; case 2: (s.x = e[8]), (s.y = e[9]), (s.z = e[10]), (s.w = e[11]); break; case 3: (s.x = e[12]), (s.y = e[13]), (s.z = e[14]), (s.w = e[15]); break; default: throw new Mp("Error, Column " + t + " out of bounds [0, ..., 3]"); } }), (Zb.copyFrom = function (e, t) { e.set(t); }), (Zb.copythisFrom = function (e, t, s, n) { null == n && (n = !1), null == s && (s = 0), n && Zb.transpose(e); for (var i = 0, r = t.length - s; i < r; ) { var o = i++; e[o] = t[o + s]; } n && Zb.transpose(e); }), (Zb.copythisTo = function (e, t, s, n) { null == n && (n = !1), null == s && (s = 0), n && Zb.transpose(e); for (var i = 0, r = e.length; i < r; ) { var o = i++; t[o + s] = e[o]; } n && Zb.transpose(e); }), (Zb.copyRowFrom = function (e, t, s) { switch (t) { case 0: (e[0] = s.x), (e[4] = s.y), (e[8] = s.z), (e[12] = s.w); break; case 1: (e[1] = s.x), (e[5] = s.y), (e[9] = s.z), (e[13] = s.w); break; case 2: (e[2] = s.x), (e[6] = s.y), (e[10] = s.z), (e[14] = s.w); break; case 3: (e[3] = s.x), (e[7] = s.y), (e[11] = s.z), (e[15] = s.w); break; default: throw new Mp( "Error, Row " + Ue.string(Gt.toFloat(t)) + " out of bounds [0, ..., 3]" ); } }), (Zb.create2D = function (e, t, s, n) { null == n && (n = 0), null == s && (s = 1); var i, r = (n * Math.PI) / 180, o = Math.cos(r), a = Math.sin(r), l = [o * s, -a * s, 0, 0, a * s, o * s, 0, 0, 0, 0, 1, 0, e, t, 0, 1]; return (i = null != l ? new GT(l) : null), Zb._new(i); }), (Zb.createABCD = function (e, t, s, n, i, r) { var o, a = [e, t, 0, 0, s, n, 0, 0, 0, 0, 1, 0, i, r, 0, 1]; return (o = null != a ? new GT(a) : null), Zb._new(o); }), (Zb.createOrtho = function (e, t, s, n, i, r) { var o, a = 1 / (t - e), l = 1 / (n - s), h = 1 / (r - i), _ = [ 2 * a, 0, 0, 0, 0, 2 * l, 0, 0, 0, 0, -2 * h, 0, -(e + t) * a, -(s + n) * l, -(i + r) * h, 1, ]; return (o = null != _ ? new GT(_) : null), Zb._new(o); }), (Zb.copyRowTo = function (e, t, s) { switch (t) { case 0: (s.x = e[0]), (s.y = e[4]), (s.z = e[8]), (s.w = e[12]); break; case 1: (s.x = e[1]), (s.y = e[5]), (s.z = e[9]), (s.w = e[13]); break; case 2: (s.x = e[2]), (s.y = e[6]), (s.z = e[10]), (s.w = e[14]); break; case 3: (s.x = e[3]), (s.y = e[7]), (s.z = e[11]), (s.w = e[15]); break; default: throw new Mp("Error, Row " + t + " out of bounds [0, ..., 3]"); } }), (Zb.copyToMatrix4 = function (e, t) { Lp.__cast(t, GT).set(e); }), (Zb.deltaTransformVector = function (e, t) { var s = t.x, n = t.y, i = t.z; return new $b( s * e[0] + n * e[4] + i * e[8] + e[3], s * e[1] + n * e[5] + i * e[9] + e[7], s * e[2] + n * e[6] + i * e[10] + e[11], 0 ); }), (Zb.identity = function (e) { (e[0] = 1), (e[1] = 0), (e[2] = 0), (e[3] = 0), (e[4] = 0), (e[5] = 1), (e[6] = 0), (e[7] = 0), (e[8] = 0), (e[9] = 0), (e[10] = 1), (e[11] = 0), (e[12] = 0), (e[13] = 0), (e[14] = 0), (e[15] = 1); }), (Zb.interpolate = function (e, t, s) { for (var n = Zb._new(), i = 0; i < 16; ) { var r = i++; Zb.set(n, r, Zb.get(e, r) + (Zb.get(t, r) - Zb.get(e, r)) * s); } return n; }), (Zb.interpolateTo = function (e, t, s) { for (var n = 0; n < 16; ) { var i = n++; e[i] += (Zb.get(t, i) - e[i]) * s; } }), (Zb.invert = function (e) { var t = Zb.get_determinant(e), s = 1e-11 < Math.abs(t); if (s) { t = 1 / t; var n = e[0], i = e[4], r = e[8], o = e[12], a = e[1], l = e[5], h = e[9], _ = e[13], u = e[2], d = e[6], c = e[10], f = e[14], p = e[3], b = e[7], m = e[11], g = e[15]; (e[0] = t * (l * (c * g - f * m) - h * (d * g - f * b) + _ * (d * m - c * b))), (e[1] = -t * (a * (c * g - f * m) - h * (u * g - f * p) + _ * (u * m - c * p))), (e[2] = t * (a * (d * g - f * b) - l * (u * g - f * p) + _ * (u * b - d * p))), (e[3] = -t * (a * (d * m - c * b) - l * (u * m - c * p) + h * (u * b - d * p))), (e[4] = -t * (i * (c * g - f * m) - r * (d * g - f * b) + o * (d * m - c * b))), (e[5] = t * (n * (c * g - f * m) - r * (u * g - f * p) + o * (u * m - c * p))), (e[6] = -t * (n * (d * g - f * b) - i * (u * g - f * p) + o * (u * b - d * p))), (e[7] = t * (n * (d * m - c * b) - i * (u * m - c * p) + r * (u * b - d * p))), (e[8] = t * (i * (h * g - _ * m) - r * (l * g - _ * b) + o * (l * m - h * b))), (e[9] = -t * (n * (h * g - _ * m) - r * (a * g - _ * p) + o * (a * m - h * p))), (e[10] = t * (n * (l * g - _ * b) - i * (a * g - _ * p) + o * (a * b - l * p))), (e[11] = -t * (n * (l * m - h * b) - i * (a * m - h * p) + r * (a * b - l * p))), (e[12] = -t * (i * (h * f - _ * c) - r * (l * f - _ * d) + o * (l * c - h * d))), (e[13] = t * (n * (h * f - _ * c) - r * (a * f - _ * u) + o * (a * c - h * u))), (e[14] = -t * (n * (l * f - _ * d) - i * (a * f - _ * u) + o * (a * d - l * u))), (e[15] = t * (n * (l * c - h * d) - i * (a * c - h * u) + r * (a * d - l * u))); } return s; }), (Zb.pointAt = function (e, t, s, n) { null == s && (s = new $b(0, 0, -1)), null == n && (n = new $b(0, -1, 0)); var i, r = new $b(s.x - t.x, s.y - t.y, s.z - t.z), o = new $b(n.x, n.y, n.z, n.w), a = Math.sqrt(r.x * r.x + r.y * r.y + r.z * r.z); 0 != a && ((r.x /= a), (r.y /= a), (r.z /= a)); var l = Math.sqrt(o.x * o.x + o.y * o.y + o.z * o.z); 0 != l && ((o.x /= l), (o.y /= l), (o.z /= l)); var h = new $b(r.x, r.y, r.z, r.w), _ = o.x * r.x + o.y * r.y + o.z * r.z; if ( ((h.x *= _), (h.y *= _), (h.z *= _), (o = new $b(o.x - h.x, o.y - h.y, o.z - h.z)), 0 < Math.sqrt(o.x * o.x + o.y * o.y + o.z * o.z)) ) { var u = Math.sqrt(o.x * o.x + o.y * o.y + o.z * o.z); 0 != u && ((o.x /= u), (o.y /= u), (o.z /= u)); } else o = 0 != r.x ? new $b(-r.y, r.x, 0) : new $b(1, 0, 0); i = new $b( o.y * r.z - o.z * r.y, o.z * r.x - o.x * r.z, o.x * r.y - o.y * r.x, 1 ); var d = Math.sqrt(i.x * i.x + i.y * i.y + i.z * i.z); 0 != d && ((i.x /= d), (i.y /= d), (i.z /= d)), (e[0] = i.x), (e[4] = i.y), (e[8] = i.z), (e[12] = 0), (e[1] = o.x), (e[5] = o.y), (e[9] = o.z), (e[13] = 0), (e[2] = r.x), (e[6] = r.y), (e[10] = r.z), (e[14] = 0), (e[3] = t.x), (e[7] = t.y), (e[11] = t.z), (e[15] = 1); }), (Zb.prepend = function (e, t) { var s = Zb.get(t, 0), n = Zb.get(t, 4), i = Zb.get(t, 8), r = Zb.get(t, 12), o = Zb.get(t, 1), a = Zb.get(t, 5), l = Zb.get(t, 9), h = Zb.get(t, 13), _ = Zb.get(t, 2), u = Zb.get(t, 6), d = Zb.get(t, 10), c = Zb.get(t, 14), f = Zb.get(t, 3), p = Zb.get(t, 7), b = Zb.get(t, 11), m = Zb.get(t, 15), g = e[0], w = e[4], v = e[8], y = e[12], T = e[1], S = e[5], x = e[9], E = e[13], P = e[2], R = e[6], A = e[10], I = e[14], C = e[3], B = e[7], D = e[11], k = e[15]; (e[0] = s * g + o * w + _ * v + f * y), (e[1] = s * T + o * S + _ * x + f * E), (e[2] = s * P + o * R + _ * A + f * I), (e[3] = s * C + o * B + _ * D + f * k), (e[4] = n * g + a * w + u * v + p * y), (e[5] = n * T + a * S + u * x + p * E), (e[6] = n * P + a * R + u * A + p * I), (e[7] = n * C + a * B + u * D + p * k), (e[8] = i * g + l * w + d * v + b * y), (e[9] = i * T + l * S + d * x + b * E), (e[10] = i * P + l * R + d * A + b * I), (e[11] = i * C + l * B + d * D + b * k), (e[12] = r * g + h * w + c * v + m * y), (e[13] = r * T + h * S + c * x + m * E), (e[14] = r * P + h * R + c * A + m * I), (e[15] = r * C + h * B + c * D + m * k); }), (Zb.prependRotation = function (e, t, s, n) { var i = Zb.getAxisRotation(s.x, s.y, s.z, t); if (null != n) { var r = n; Zb.appendTranslation(i, r.x, r.y, r.z); } Zb.prepend(e, i); }), (Zb.prependScale = function (e, t, s, n) { var i, r = [t, 0, 0, 0, 0, s, 0, 0, 0, 0, n, 0, 0, 0, 0, 1]; (i = null != r ? new GT(r) : null), Zb.prepend(e, Zb._new(i)); }), (Zb.prependTranslation = function (e, t, s, n) { var i = Zb._new(); Zb.set_position(i, new $b(t, s, n)), Zb.prepend(e, i); }), (Zb.transformVector = function (e, t) { var s = t.x, n = t.y, i = t.z; return new $b( s * e[0] + n * e[4] + i * e[8] + e[12], s * e[1] + n * e[5] + i * e[9] + e[13], s * e[2] + n * e[6] + i * e[10] + e[14], s * e[3] + n * e[7] + i * e[11] + e[15] ); }), (Zb.transformVectors = function (e, t, s) { for (var n = 0; n + 3 <= t.length; ) { var i = t[n], r = t[n + 1], o = t[n + 2]; (s[n] = i * e[0] + r * e[4] + o * e[8] + e[12]), (s[n + 1] = i * e[1] + r * e[5] + o * e[9] + e[13]), (s[n + 2] = i * e[2] + r * e[6] + o * e[10] + e[14]), (n += 3); } }), (Zb.transpose = function (e) { var t = null != e ? new GT(e) : null; (e[1] = t[4]), (e[2] = t[8]), (e[3] = t[12]), (e[4] = t[1]), (e[6] = t[9]), (e[7] = t[13]), (e[8] = t[2]), (e[9] = t[6]), (e[11] = t[14]), (e[12] = t[3]), (e[13] = t[7]), (e[14] = t[11]); }), (Zb.getAxisRotation = function (e, t, s, n) { var i = Zb._new(), r = new $b(e, t, s), o = -n * (Math.PI / 180), a = Math.cos(o), l = Math.sin(o), h = 1 - a; Zb.set(i, 0, a + r.x * r.x * h), Zb.set(i, 5, a + r.y * r.y * h), Zb.set(i, 10, a + r.z * r.z * h); var _ = r.x * r.y * h, u = r.z * l; return ( Zb.set(i, 4, _ + u), Zb.set(i, 1, _ - u), (_ = r.x * r.z * h), (u = r.y * l), Zb.set(i, 8, _ - u), Zb.set(i, 2, _ + u), (_ = r.y * r.z * h), (u = r.x * l), Zb.set(i, 9, _ + u), Zb.set(i, 6, _ - u), i ); }), (Zb.get_determinant = function (e) { return ( (e[0] * e[5] - e[4] * e[1]) * (e[10] * e[15] - e[14] * e[11]) - (e[0] * e[9] - e[8] * e[1]) * (e[6] * e[15] - e[14] * e[7]) + (e[0] * e[13] - e[12] * e[1]) * (e[6] * e[11] - e[10] * e[7]) + (e[4] * e[9] - e[8] * e[5]) * (e[2] * e[15] - e[14] * e[3]) - (e[4] * e[13] - e[12] * e[5]) * (e[2] * e[11] - e[10] * e[3]) + (e[8] * e[13] - e[12] * e[9]) * (e[2] * e[7] - e[6] * e[3]) ); }), (Zb.get_position = function (e) { return new $b(e[12], e[13], e[14]); }), (Zb.set_position = function (e, t) { return (e[12] = t.x), (e[13] = t.y), (e[14] = t.z), t; }), (Zb.get = function (e, t) { return e[t]; }), (Zb.set = function (e, t, s) { return (e[t] = s); }); var Jb = function (e, t, s, n) { null == n && (n = 0), null == s && (s = 0), null == t && (t = 0), null == e && (e = 0), (this.x = e), (this.y = t), (this.width = s), (this.height = n); }; ((s["lime.math.Rectangle"] = Jb).__name__ = ["lime", "math", "Rectangle"]), (Jb.prototype = { clone: function () { return new Jb(this.x, this.y, this.width, this.height); }, contains: function (e, t) { return ( e >= this.x && t >= this.y && e < this.get_right() && t < this.get_bottom() ); }, containsPoint: function (e) { return this.contains(e.x, e.y); }, containsRect: function (e) { return e.width <= 0 || e.height <= 0 ? e.x > this.x && e.y > this.y && e.get_right() < this.get_right() && e.get_bottom() < this.get_bottom() : e.x >= this.x && e.y >= this.y && e.get_right() <= this.get_right() && e.get_bottom() <= this.get_bottom(); }, copyFrom: function (e) { (this.x = e.x), (this.y = e.y), (this.width = e.width), (this.height = e.height); }, equals: function (e) { return ( null != e && this.x == e.x && this.y == e.y && this.width == e.width && this.height == e.height ); }, inflate: function (e, t) { (this.x -= e), (this.width += 2 * e), (this.y -= t), (this.height += 2 * t); }, inflatePoint: function (e) { this.inflate(e.x, e.y); }, intersection: function (e) { var t = this.x < e.x ? e.x : this.x, s = this.get_right() > e.get_right() ? e.get_right() : this.get_right(); if (s <= t) return new Jb(); var n = this.y < e.y ? e.y : this.y, i = this.get_bottom() > e.get_bottom() ? e.get_bottom() : this.get_bottom(); return i <= n ? new Jb() : new Jb(t, n, s - t, i - n); }, intersects: function (e) { var t = this.x < e.x ? e.x : this.x; return ( !( (this.get_right() > e.get_right() ? e.get_right() : this.get_right()) <= t ) && (this.y < e.y ? e.y : this.y) < (this.get_bottom() > e.get_bottom() ? e.get_bottom() : this.get_bottom()) ); }, isEmpty: function () { return this.width <= 0 || this.height <= 0; }, offset: function (e, t) { (this.x += e), (this.y += t); }, offsetPoint: function (e) { (this.x += e.x), (this.y += e.y); }, setEmpty: function () { this.x = this.y = this.width = this.height = 0; }, setTo: function (e, t, s, n) { (this.x = e), (this.y = t), (this.width = s), (this.height = n); }, transform: function (e) { var t = e.a * this.x + e.c * this.y, s = t, n = e.b * this.x + e.d * this.y, i = n, r = e.a * (this.x + this.width) + e.c * this.y, o = e.b * (this.x + this.width) + e.d * this.y; return ( r < t && (t = r), o < n && (n = o), s < r && (s = r), i < o && (i = o), (r = e.a * (this.x + this.width) + e.c * (this.y + this.height)) < t && (t = r), (o = e.b * (this.x + this.width) + e.d * (this.y + this.height)) < n && (n = o), s < r && (s = r), i < o && (i = o), (r = e.a * this.x + e.c * (this.y + this.height)) < t && (t = r), (o = e.b * this.x + e.d * (this.y + this.height)) < n && (n = o), s < r && (s = r), i < o && (i = o), new Jb(t + e.tx, n + e.ty, s - t, i - n) ); }, union: function (e) { if (0 == this.width || 0 == this.height) return e.clone(); if (0 == e.width || 0 == e.height) return this.clone(); var t = this.x > e.x ? e.x : this.x, s = this.get_right() < e.get_right() ? e.get_right() : this.get_right(), n = this.y > e.y ? e.y : this.y, i = this.get_bottom() < e.get_bottom() ? e.get_bottom() : this.get_bottom(); return new Jb(t, n, s - t, i - n); }, __contract: function (e, t, s, n) { (0 == this.width && 0 == this.height) || (this.x < e && (this.x = e), this.y < t && (this.y = t), this.get_right() > e + s && (this.width = e + s - this.x), this.get_bottom() > t + n && (this.height = t + n - this.y)); }, __expand: function (e, t, s, n) { if (0 == this.width && 0 == this.height) return ( (this.x = e), (this.y = t), (this.width = s), void (this.height = n) ); var i = this.get_right(), r = this.get_bottom(); this.x > e && (this.x = e), this.y > t && (this.y = t), i < e + s && (this.width = e + s - this.x), r < t + n && (this.height = t + n - this.y); }, __toFlashRectangle: function () { return null; }, get_bottom: function () { return this.y + this.height; }, set_bottom: function (e) { return (this.height = e - this.y), e; }, get_bottomRight: function () { return new Qb(this.x + this.width, this.y + this.height); }, set_bottomRight: function (e) { return ( (this.width = e.x - this.x), (this.height = e.y - this.y), e.clone() ); }, get_left: function () { return this.x; }, set_left: function (e) { return (this.width -= e - this.x), (this.x = e); }, get_right: function () { return this.x + this.width; }, set_right: function (e) { return (this.width = e - this.x), e; }, get_size: function () { return new Qb(this.width, this.height); }, set_size: function (e) { return (this.width = e.x), (this.height = e.y), e.clone(); }, get_top: function () { return this.y; }, set_top: function (e) { return (this.height -= e - this.y), (this.y = e); }, get_topLeft: function () { return new Qb(this.x, this.y); }, set_topLeft: function (e) { return (this.x = e.x), (this.y = e.y), e.clone(); }, __class__: Jb, __properties__: { set_topLeft: "set_topLeft", get_topLeft: "get_topLeft", set_top: "set_top", get_top: "get_top", set_size: "set_size", get_size: "get_size", set_right: "set_right", get_right: "get_right", set_left: "set_left", get_left: "get_left", set_bottomRight: "set_bottomRight", get_bottomRight: "get_bottomRight", set_bottom: "set_bottom", get_bottom: "get_bottom", }, }); var Qb = function (e, t) { null == t && (t = 0), null == e && (e = 0), (this.x = e), (this.y = t); }; ((s["lime.math.Vector2"] = Qb).__name__ = ["lime", "math", "Vector2"]), (Qb.distance = function (e, t) { var s = e.x - t.x, n = e.y - t.y; return Math.sqrt(s * s + n * n); }), (Qb.interpolate = function (e, t, s) { return new Qb(t.x + s * (e.x - t.x), t.y + s * (e.y - t.y)); }), (Qb.polar = function (e, t) { return new Qb(e * Math.cos(t), e * Math.sin(t)); }), (Qb.prototype = { add: function (e) { return new Qb(e.x + this.x, e.y + this.y); }, clone: function () { return new Qb(this.x, this.y); }, equals: function (e) { return null != e && e.x == this.x && e.y == this.y; }, normalize: function (e) { if (0 != this.x || 0 != this.y) { var t = e / Math.sqrt(this.x * this.x + this.y * this.y); (this.x *= t), (this.y *= t); } }, offset: function (e, t) { (this.x += e), (this.y += t); }, setTo: function (e, t) { (this.x = e), (this.y = t); }, subtract: function (e) { return new Qb(this.x - e.x, this.y - e.y); }, __toFlashPoint: function () { return null; }, get_length: function () { return Math.sqrt(this.x * this.x + this.y * this.y); }, __class__: Qb, __properties__: { get_length: "get_length" }, }); var $b = function (e, t, s, n) { null == n && (n = 0), null == s && (s = 0), null == t && (t = 0), null == e && (e = 0), (this.w = n), (this.x = e), (this.y = t), (this.z = s); }; ((s["lime.math.Vector4"] = $b).__name__ = ["lime", "math", "Vector4"]), ($b.__properties__ = { get_Z_AXIS: "get_Z_AXIS", get_Y_AXIS: "get_Y_AXIS", get_X_AXIS: "get_X_AXIS", }), ($b.X_AXIS = null), ($b.Y_AXIS = null), ($b.Z_AXIS = null), ($b.angleBetween = function (e, t) { var s = new $b(e.x, e.y, e.z, e.w), n = Math.sqrt(s.x * s.x + s.y * s.y + s.z * s.z); 0 != n && ((s.x /= n), (s.y /= n), (s.z /= n)); var i = new $b(t.x, t.y, t.z, t.w), r = Math.sqrt(i.x * i.x + i.y * i.y + i.z * i.z); return ( 0 != r && ((i.x /= r), (i.y /= r), (i.z /= r)), Math.acos(s.x * i.x + s.y * i.y + s.z * i.z) ); }), ($b.distance = function (e, t) { var s = t.x - e.x, n = t.y - e.y, i = t.z - e.z; return Math.sqrt(s * s + n * n + i * i); }), ($b.get_X_AXIS = function () { return new $b(1, 0, 0); }), ($b.get_Y_AXIS = function () { return new $b(0, 1, 0); }), ($b.get_Z_AXIS = function () { return new $b(0, 0, 1); }), ($b.prototype = { add: function (e) { return new $b(this.x + e.x, this.y + e.y, this.z + e.z); }, clone: function () { return new $b(this.x, this.y, this.z, this.w); }, copyFrom: function (e) { (this.x = e.x), (this.y = e.y), (this.z = e.z); }, crossProduct: function (e) { return new $b( this.y * e.z - this.z * e.y, this.z * e.x - this.x * e.z, this.x * e.y - this.y * e.x, 1 ); }, decrementBy: function (e) { (this.x -= e.x), (this.y -= e.y), (this.z -= e.z); }, dotProduct: function (e) { return this.x * e.x + this.y * e.y + this.z * e.z; }, equals: function (e, t) { return ( null == t && (t = !1), this.x == e.x && this.y == e.y && this.z == e.z && (!t || this.w == e.w) ); }, incrementBy: function (e) { (this.x += e.x), (this.y += e.y), (this.z += e.z); }, nearEquals: function (e, t, s) { return ( null == s && (s = !1), Math.abs(this.x - e.x) < t && Math.abs(this.y - e.y) < t && Math.abs(this.z - e.z) < t && (!s || Math.abs(this.w - e.w) < t) ); }, negate: function () { (this.x *= -1), (this.y *= -1), (this.z *= -1); }, normalize: function () { var e = Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); return 0 != e && ((this.x /= e), (this.y /= e), (this.z /= e)), e; }, project: function () { (this.x /= this.w), (this.y /= this.w), (this.z /= this.w); }, scaleBy: function (e) { (this.x *= e), (this.y *= e), (this.z *= e); }, setTo: function (e, t, s) { (this.x = e), (this.y = t), (this.z = s); }, subtract: function (e) { return new $b(this.x - e.x, this.y - e.y, this.z - e.z); }, toString: function () { return "Vector4(" + this.x + ", " + this.y + ", " + this.z + ")"; }, get_length: function () { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); }, get_lengthSquared: function () { return this.x * this.x + this.y * this.y + this.z * this.z; }, __class__: $b, __properties__: { get_lengthSquared: "get_lengthSquared", get_length: "get_length", }, }); var em = {}; ((s["lime.math.color._ARGB.ARGB_Impl_"] = em).__name__ = [ "lime", "math", "color", "_ARGB", "ARGB_Impl_", ]), (em.__properties__ = { set_r: "set_r", get_r: "get_r", set_g: "set_g", get_g: "get_g", set_b: "set_b", get_b: "get_b", set_a: "set_a", get_a: "get_a", }), (em.a16 = null), (em.unmult = null), (em._new = function (e) { return null == e && (e = 0), e; }), (em.create = function (e, t, s, n) { return ( ((255 & e) << 24) | ((255 & t) << 16) | ((255 & s) << 8) | (255 & n) ); }), (em.multiplyAlpha = function (e) { 0 == ((e >> 24) & 255) ? (e = 0) : 255 != ((e >> 24) & 255) && ((em.a16 = sm.__alpha16[(e >> 24) & 255]), (e = ((255 & (e >> 24)) << 24) | ((((((e >> 16) & 255) * em.a16) >> 16) & 255) << 16) | ((((((e >> 8) & 255) * em.a16) >> 16) & 255) << 8) | ((((255 & e) * em.a16) >> 16) & 255))); }), (em.readUInt8 = function (e, t, s, n, i) { switch ((null == i && (i = !1), null == n && (n = 0), n)) { case 0: e = ((255 & t[s + 1]) << 24) | ((255 & t[s + 2]) << 16) | ((255 & t[s + 3]) << 8) | (255 & t[s]); break; case 1: e = ((255 & t[s + 2]) << 24) | ((255 & t[s + 3]) << 16) | ((255 & t[s]) << 8) | (255 & t[s + 1]); break; case 2: e = ((255 & t[s + 1]) << 24) | ((255 & t[s]) << 16) | ((255 & t[s + 3]) << 8) | (255 & t[s + 2]); } i && 0 != ((e >> 24) & 255) && 255 != ((e >> 24) & 255) && ((em.unmult = 255 / ((e >> 24) & 255)), (e = ((255 & (e >> 24)) << 24) | ((255 & sm.__clamp[Math.floor(((e >> 16) & 255) * em.unmult)]) << 16) | ((255 & sm.__clamp[Math.floor(((e >> 8) & 255) * em.unmult)]) << 8) | (255 & sm.__clamp[Math.floor((255 & e) * em.unmult)]))); }), (em.set = function (e, t, s, n, i) { ((255 & t) << 24) | ((255 & s) << 16) | ((255 & n) << 8) | (255 & i); }), (em.unmultiplyAlpha = function (e) { 0 != ((e >> 24) & 255) && 255 != ((e >> 24) & 255) && ((em.unmult = 255 / ((e >> 24) & 255)), (e = ((255 & (e >> 24)) << 24) | ((255 & sm.__clamp[Math.floor(((e >> 16) & 255) * em.unmult)]) << 16) | ((255 & sm.__clamp[Math.floor(((e >> 8) & 255) * em.unmult)]) << 8) | (255 & sm.__clamp[Math.floor((255 & e) * em.unmult)]))); }), (em.writeUInt8 = function (e, t, s, n, i) { switch ( (null == i && (i = !1), null == n && (n = 0), i && (0 == ((e >> 24) & 255) ? (e = 0) : 255 != ((e >> 24) & 255) && ((em.a16 = sm.__alpha16[(e >> 24) & 255]), (e = ((255 & (e >> 24)) << 24) | ((((((e >> 16) & 255) * em.a16) >> 16) & 255) << 16) | ((((((e >> 8) & 255) * em.a16) >> 16) & 255) << 8) | ((((255 & e) * em.a16) >> 16) & 255)))), n) ) { case 0: (t[s] = (e >> 16) & 255), (t[s + 1] = (e >> 8) & 255), (t[s + 2] = 255 & e), (t[s + 3] = (e >> 24) & 255); break; case 1: (t[s] = (e >> 24) & 255), (t[s + 1] = (e >> 16) & 255), (t[s + 2] = (e >> 8) & 255), (t[s + 3] = 255 & e); break; case 2: (t[s] = 255 & e), (t[s + 1] = (e >> 8) & 255), (t[s + 2] = (e >> 16) & 255), (t[s + 3] = (e >> 24) & 255); } }), (em.__fromBGRA = function (e) { return ( ((255 & e) << 24) | ((255 & (e >> 8)) << 16) | ((255 & (e >> 16)) << 8) | (255 & (e >> 24)) ); }), (em.__fromRGBA = function (e) { return ( ((255 & e) << 24) | ((255 & (e >> 24)) << 16) | ((255 & (e >> 16)) << 8) | (255 & (e >> 8)) ); }), (em.get_a = function (e) { return (e >> 24) & 255; }), (em.set_a = function (e, t) { return ( (e = ((255 & t) << 24) | ((255 & (e >> 16)) << 16) | ((255 & (e >> 8)) << 8) | (255 & e)), t ); }), (em.get_b = function (e) { return 255 & e; }), (em.set_b = function (e, t) { return ( (e = ((255 & (e >> 24)) << 24) | ((255 & (e >> 16)) << 16) | ((255 & (e >> 8)) << 8) | (255 & t)), t ); }), (em.get_g = function (e) { return (e >> 8) & 255; }), (em.set_g = function (e, t) { return ( (e = ((255 & (e >> 24)) << 24) | ((255 & (e >> 16)) << 16) | ((255 & t) << 8) | (255 & e)), t ); }), (em.get_r = function (e) { return (e >> 16) & 255; }), (em.set_r = function (e, t) { return ( (e = ((255 & (e >> 24)) << 24) | ((255 & t) << 16) | ((255 & (e >> 8)) << 8) | (255 & e)), t ); }); var tm = {}; ((s["lime.math.color._BGRA.BGRA_Impl_"] = tm).__name__ = [ "lime", "math", "color", "_BGRA", "BGRA_Impl_", ]), (tm.__properties__ = { set_r: "set_r", get_r: "get_r", set_g: "set_g", get_g: "get_g", set_b: "set_b", get_b: "get_b", set_a: "set_a", get_a: "get_a", }), (tm.a16 = null), (tm.unmult = null), (tm._new = function (e) { return null == e && (e = 0), e; }), (tm.create = function (e, t, s, n) { return ( ((255 & e) << 24) | ((255 & t) << 16) | ((255 & s) << 8) | (255 & n) ); }), (tm.multiplyAlpha = function (e) { 0 == (255 & e) ? (e = 0) : 255 != (255 & e) && ((tm.a16 = sm.__alpha16[255 & e]), (e = ((((((e >> 24) & 255) * tm.a16) >> 16) & 255) << 24) | ((((((e >> 16) & 255) * tm.a16) >> 16) & 255) << 16) | ((((((e >> 8) & 255) * tm.a16) >> 16) & 255) << 8) | (255 & e))); }), (tm.readUInt8 = function (e, t, s, n, i) { switch ((null == i && (i = !1), null == n && (n = 0), n)) { case 0: e = ((255 & t[s + 2]) << 24) | ((255 & t[s + 1]) << 16) | ((255 & t[s]) << 8) | (255 & t[s + 3]); break; case 1: e = ((255 & t[s + 3]) << 24) | ((255 & t[s + 2]) << 16) | ((255 & t[s + 1]) << 8) | (255 & t[s]); break; case 2: e = ((255 & t[s]) << 24) | ((255 & t[s + 1]) << 16) | ((255 & t[s + 2]) << 8) | (255 & t[s + 3]); } i && 0 != (255 & e) && 255 != (255 & e) && ((tm.unmult = 255 / (255 & e)), (e = ((255 & sm.__clamp[Math.floor(((e >> 24) & 255) * tm.unmult)]) << 24) | ((255 & sm.__clamp[Math.floor(((e >> 16) & 255) * tm.unmult)]) << 16) | ((255 & sm.__clamp[Math.floor(((e >> 8) & 255) * tm.unmult)]) << 8) | (255 & e))); }), (tm.set = function (e, t, s, n, i) { ((255 & t) << 24) | ((255 & s) << 16) | ((255 & n) << 8) | (255 & i); }), (tm.unmultiplyAlpha = function (e) { 0 != (255 & e) && 255 != (255 & e) && ((tm.unmult = 255 / (255 & e)), (e = ((255 & sm.__clamp[Math.floor(((e >> 24) & 255) * tm.unmult)]) << 24) | ((255 & sm.__clamp[Math.floor(((e >> 16) & 255) * tm.unmult)]) << 16) | ((255 & sm.__clamp[Math.floor(((e >> 8) & 255) * tm.unmult)]) << 8) | (255 & e))); }), (tm.writeUInt8 = function (e, t, s, n, i) { switch ( (null == i && (i = !1), null == n && (n = 0), i && (0 == (255 & e) ? (e = 0) : 255 != (255 & e) && ((tm.a16 = sm.__alpha16[255 & e]), (e = ((((((e >> 24) & 255) * tm.a16) >> 16) & 255) << 24) | ((((((e >> 16) & 255) * tm.a16) >> 16) & 255) << 16) | ((((((e >> 8) & 255) * tm.a16) >> 16) & 255) << 8) | (255 & e)))), n) ) { case 0: (t[s] = (e >> 8) & 255), (t[s + 1] = (e >> 16) & 255), (t[s + 2] = (e >> 24) & 255), (t[s + 3] = 255 & e); break; case 1: (t[s] = 255 & e), (t[s + 1] = (e >> 8) & 255), (t[s + 2] = (e >> 16) & 255), (t[s + 3] = (e >> 24) & 255); break; case 2: (t[s] = (e >> 24) & 255), (t[s + 1] = (e >> 16) & 255), (t[s + 2] = (e >> 8) & 255), (t[s + 3] = 255 & e); } }), (tm.__fromARGB = function (e) { return ( ((255 & e) << 24) | ((255 & (e >> 8)) << 16) | ((255 & (e >> 16)) << 8) | (255 & (e >> 24)) ); }), (tm.__fromRGBA = function (e) { return ( ((255 & (e >> 8)) << 24) | ((255 & (e >> 16)) << 16) | ((255 & (e >> 24)) << 8) | (255 & e) ); }), (tm.get_a = function (e) { return 255 & e; }), (tm.set_a = function (e, t) { return ( (e = ((255 & (e >> 24)) << 24) | ((255 & (e >> 16)) << 16) | ((255 & (e >> 8)) << 8) | (255 & t)), t ); }), (tm.get_b = function (e) { return (e >> 24) & 255; }), (tm.set_b = function (e, t) { return ( (e = ((255 & t) << 24) | ((255 & (e >> 16)) << 16) | ((255 & (e >> 8)) << 8) | (255 & e)), t ); }), (tm.get_g = function (e) { return (e >> 16) & 255; }), (tm.set_g = function (e, t) { return ( (e = ((255 & (e >> 24)) << 24) | ((255 & t) << 16) | ((255 & (e >> 8)) << 8) | (255 & e)), t ); }), (tm.get_r = function (e) { return (e >> 8) & 255; }), (tm.set_r = function (e, t) { return ( (e = ((255 & (e >> 24)) << 24) | ((255 & (e >> 16)) << 16) | ((255 & t) << 8) | (255 & e)), t ); }); var sm = {}; ((s["lime.math.color._RGBA.RGBA_Impl_"] = sm).__name__ = [ "lime", "math", "color", "_RGBA", "RGBA_Impl_", ]), (sm.__properties__ = { set_r: "set_r", get_r: "get_r", set_g: "set_g", get_g: "get_g", set_b: "set_b", get_b: "get_b", set_a: "set_a", get_a: "get_a", }), (sm.__alpha16 = null), (sm.__clamp = null), (sm.a16 = null), (sm.unmult = null), (sm._new = function (e) { return null == e && (e = 0), e; }), (sm.create = function (e, t, s, n) { return ( ((255 & e) << 24) | ((255 & t) << 16) | ((255 & s) << 8) | (255 & n) ); }), (sm.multiplyAlpha = function (e) { 0 == (255 & e) ? 0 != e && (e = 0) : 255 != (255 & e) && ((sm.a16 = sm.__alpha16[255 & e]), (e = ((((((e >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((e >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((e >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & e))); }), (sm.readUInt8 = function (e, t, s, n, i) { switch ((null == i && (i = !1), null == n && (n = 0), n)) { case 0: e = ((255 & t[s]) << 24) | ((255 & t[s + 1]) << 16) | ((255 & t[s + 2]) << 8) | (255 & t[s + 3]); break; case 1: e = ((255 & t[s + 1]) << 24) | ((255 & t[s + 2]) << 16) | ((255 & t[s + 3]) << 8) | (255 & t[s]); break; case 2: e = ((255 & t[s + 2]) << 24) | ((255 & t[s + 1]) << 16) | ((255 & t[s]) << 8) | (255 & t[s + 3]); } i && 0 != (255 & e) && 255 != (255 & e) && ((sm.unmult = 255 / (255 & e)), (e = ((255 & sm.__clamp[Math.round(((e >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((e >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((e >> 8) & 255) * sm.unmult)]) << 8) | (255 & e))); }), (sm.set = function (e, t, s, n, i) { ((255 & t) << 24) | ((255 & s) << 16) | ((255 & n) << 8) | (255 & i); }), (sm.unmultiplyAlpha = function (e) { 0 != (255 & e) && 255 != (255 & e) && ((sm.unmult = 255 / (255 & e)), (e = ((255 & sm.__clamp[Math.round(((e >> 24) & 255) * sm.unmult)]) << 24) | ((255 & sm.__clamp[Math.round(((e >> 16) & 255) * sm.unmult)]) << 16) | ((255 & sm.__clamp[Math.round(((e >> 8) & 255) * sm.unmult)]) << 8) | (255 & e))); }), (sm.writeUInt8 = function (e, t, s, n, i) { switch ( (null == i && (i = !1), null == n && (n = 0), i && (0 == (255 & e) ? 0 != e && (e = 0) : 255 != (255 & e) && ((sm.a16 = sm.__alpha16[255 & e]), (e = ((((((e >> 24) & 255) * sm.a16) >> 16) & 255) << 24) | ((((((e >> 16) & 255) * sm.a16) >> 16) & 255) << 16) | ((((((e >> 8) & 255) * sm.a16) >> 16) & 255) << 8) | (255 & e)))), n) ) { case 0: (t[s] = (e >> 24) & 255), (t[s + 1] = (e >> 16) & 255), (t[s + 2] = (e >> 8) & 255), (t[s + 3] = 255 & e); break; case 1: (t[s] = 255 & e), (t[s + 1] = (e >> 24) & 255), (t[s + 2] = (e >> 16) & 255), (t[s + 3] = (e >> 8) & 255); break; case 2: (t[s] = (e >> 8) & 255), (t[s + 1] = (e >> 16) & 255), (t[s + 2] = (e >> 24) & 255), (t[s + 3] = 255 & e); } }), (sm.__fromARGB = function (e) { return ( ((255 & (e >> 16)) << 24) | ((255 & (e >> 8)) << 16) | ((255 & e) << 8) | (255 & (e >> 24)) ); }), (sm.__fromBGRA = function (e) { return ( ((255 & (e >> 8)) << 24) | ((255 & (e >> 16)) << 16) | ((255 & (e >> 24)) << 8) | (255 & e) ); }), (sm.get_a = function (e) { return 255 & e; }), (sm.set_a = function (e, t) { return ( (e = ((255 & (e >> 24)) << 24) | ((255 & (e >> 16)) << 16) | ((255 & (e >> 8)) << 8) | (255 & t)), t ); }), (sm.get_b = function (e) { return (e >> 8) & 255; }), (sm.set_b = function (e, t) { return ( (e = ((255 & (e >> 24)) << 24) | ((255 & (e >> 16)) << 16) | ((255 & t) << 8) | (255 & e)), t ); }), (sm.get_g = function (e) { return (e >> 16) & 255; }), (sm.set_g = function (e, t) { return ( (e = ((255 & (e >> 24)) << 24) | ((255 & t) << 16) | ((255 & (e >> 8)) << 8) | (255 & e)), t ); }), (sm.get_r = function (e) { return (e >> 24) & 255; }), (sm.set_r = function (e, t) { return ( (e = ((255 & t) << 24) | ((255 & (e >> 16)) << 16) | ((255 & (e >> 8)) << 8) | (255 & e)), t ); }); var nm = function () { (this.responseType = "arraybuffer"), (this.response = { bytes: null, text: null }), (this.promise = new gb()); }; ((s["lime.net.HTTPRequest"] = nm).__name__ = ["lime", "net", "HTTPRequest"]), (nm.prototype = { load: function (e) { var t = this; (this.bytesLoaded = 0), (this.bytesTotal = 0); var s = new XMLHttpRequest(); return ( s.addEventListener("progress", CT(this, this.request_onProgress), !1), (s.onreadystatechange = function () { 4 == s.readyState && (null != s.status && 200 <= s.status && s.status <= 400 ? ("arraybuffer" == s.responseType ? (t.response.bytes = Mm.ofData(s.response)) : (t.response.text = s.response), t.promise.complete(t.response)) : t.promise.error(s.responseURL)); }), s.open("GET", e, !0), (s.responseType = this.responseType), s.send(""), this.promise.future ); }, curl_onProgress: function (e, t, s, n) { return ( (n > this.bytesLoaded || t > this.bytesLoaded || s > this.bytesTotal || e > this.bytesTotal) && (n > this.bytesLoaded && (this.bytesLoaded = 0 | n), t > this.bytesLoaded && (this.bytesLoaded = 0 | t), s > this.bytesTotal && (this.bytesTotal = 0 | s), e > this.bytesTotal && (this.bytesTotal = 0 | e), this.promise.progress(this.bytesLoaded / this.bytesTotal)), 0 ); }, curl_onWrite: function (e, t, s) { var n = this.response.bytes; return ( (this.response.bytes = Mm.alloc( this.response.bytes.length + e.length )), this.response.bytes.blit(0, n, 0, n.length), this.response.bytes.blit(n.length, e, 0, e.length), t * s ); }, request_onProgress: function (e) { this.promise.progress(e.loaded / e.total); }, __class__: nm, }); var im = {}; ((s["lime.net.curl._CURL.CURL_Impl_"] = im).__name__ = [ "lime", "net", "curl", "_CURL", "CURL_Impl_", ]), (im.getDate = function (e, t) { return 0; }), (im.globalCleanup = function () {}), (im.globalInit = function (e) { return 0; }), (im.version = function () { return null; }), (im.versionInfo = function (e) { return null; }), (im.intGt = function (e, t) { return t < e; }); var rm = function () {}; ((s["lime.net.curl.CURLEasy"] = rm).__name__ = [ "lime", "net", "curl", "CURLEasy", ]), (rm.cleanup = function (e) {}), (rm.duphandle = function (e) { return 0; }), (rm.escape = function (e, t, s) { return null; }), (rm.getinfo = function (e, t) { return null; }), (rm.init = function () { return 0; }), (rm.pause = function (e, t) { return 0; }), (rm.perform = function (e) { return 0; }), (rm.reset = function (e) {}), (rm.setopt = function (e, t, s) { return 0; }), (rm.strerror = function (e) { return null; }), (rm.unescape = function (e, t, s, n) { return null; }), (rm.__writeCallback = function (e, t, s, n) { return 0; }); var om = function () { (this.onProgress = new $p()), (this.onError = new $p()), (this.onComplete = new $p()), (this.doWork = new $p()); }; ((s["lime.system.BackgroundWorker"] = om).__name__ = [ "lime", "system", "BackgroundWorker", ]), (om.prototype = { cancel: function () { this.canceled = !0; }, run: function (e) { (this.canceled = !1), (this.__runMessage = e), this.__doWork(); }, sendComplete: function (e) { this.canceled || ((this.canceled = !0), this.onComplete.dispatch(e)); }, sendError: function (e) { this.canceled || ((this.canceled = !0), this.onError.dispatch(e)); }, sendProgress: function (e) { this.canceled || this.onProgress.dispatch(e); }, __doWork: function () { this.doWork.dispatch(this.__runMessage); }, __update: function (e) {}, __class__: om, }); var am = function () {}; ((s["lime.system.CFFI"] = am).__name__ = ["lime", "system", "CFFI"]), (am.available = null), (am.enabled = null), (am.load = function (e, t, s, n) { if ((null == n && (n = !1), null == s && (s = 0), !am.enabled)) return De.makeVarArgs(function (e) { return {}; }); return null; }), (am.__findHaxelib = function (e) { return ""; }), (am.__loaderTrace = function (e) {}), (am.__sysName = function () { return null; }), (am.__tryLoad = function (e, t, s, n) { return null; }); var lm = {}; ((s["lime.system._CFFIPointer.CFFIPointer_Impl_"] = lm).__name__ = [ "lime", "system", "_CFFIPointer", "CFFIPointer_Impl_", ]), (lm._new = function (e) { return e; }), (lm.get = function (e) { return 0; }), (lm.equals = function (e, t) { return lm.get(e) == t; }), (lm.equalsPointer = function (e, t) { return lm.get(e) == lm.get(t); }), (lm.greaterThan = function (e, t) { return lm.get(e) > t; }), (lm.greaterThanPointer = function (e, t) { return lm.get(e) > lm.get(t); }), (lm.greaterThanOrEqual = function (e, t) { return lm.get(e) >= t; }), (lm.greaterThanOrEqualPointer = function (e, t) { return lm.get(e) >= lm.get(t); }), (lm.lessThan = function (e, t) { return lm.get(e) < t; }), (lm.lessThanPointer = function (e, t) { return lm.get(e) < lm.get(t); }), (lm.lessThanOrEqual = function (e, t) { return lm.get(e) <= t; }), (lm.lessThanOrEqualPointer = function (e, t) { return lm.get(e) <= lm.get(t); }), (lm.notEquals = function (e, t) { return lm.get(e) != t; }), (lm.notEqualsPointer = function (e, t) { return lm.get(e) != lm.get(t); }); var hm = function () {}; ((s["lime.system.Clipboard"] = hm).__name__ = [ "lime", "system", "Clipboard", ]), (hm.__properties__ = { set_text: "set_text", get_text: "get_text" }), (hm.get_text = function () { return null; }), (hm.set_text = function (e) { try { clipboard.copy(e); } catch (e) { (jf.lastException = e), Zf.trace("Failed to copy text.", { fileName: "Clipboard.hx", lineNumber: 56, className: "lime.system.Clipboard", methodName: "set_text", }); } return e; }); var _m = function () {}; ((s["lime.system.Display"] = _m).__name__ = ["lime", "system", "Display"]), (_m.prototype = { __class__: _m }); var um = function (e, t, s, n) { (this.width = e), (this.height = t), (this.refreshRate = s), (this.pixelFormat = n); }; ((s["lime.system.DisplayMode"] = um).__name__ = [ "lime", "system", "DisplayMode", ]), (um.prototype = { __class__: um }); var dm = (s["lime.system.Endian"] = { __ename__: ["lime", "system", "Endian"], __constructs__: ["LITTLE_ENDIAN", "BIG_ENDIAN"], }); (dm.LITTLE_ENDIAN = ["LITTLE_ENDIAN", 0]), (dm.LITTLE_ENDIAN.toString = c), ((dm.LITTLE_ENDIAN.__enum__ = dm).BIG_ENDIAN = ["BIG_ENDIAN", 1]), (dm.BIG_ENDIAN.toString = c), (dm.BIG_ENDIAN.__enum__ = dm); var cm = function () {}; ((s["lime.system.System"] = cm).__name__ = ["lime", "system", "System"]), (cm.__properties__ = { get_userDirectory: "get_userDirectory", get_numDisplays: "get_numDisplays", get_fontsDirectory: "get_fontsDirectory", get_endianness: "get_endianness", get_documentsDirectory: "get_documentsDirectory", get_desktopDirectory: "get_desktopDirectory", get_applicationStorageDirectory: "get_applicationStorageDirectory", get_applicationDirectory: "get_applicationDirectory", set_allowScreenTimeout: "set_allowScreenTimeout", get_allowScreenTimeout: "get_allowScreenTimeout", }), (cm.applicationDirectory = null), (cm.applicationStorageDirectory = null), (cm.desktopDirectory = null), (cm.disableCFFI = null), (cm.documentsDirectory = null), (cm.endianness = null), (cm.fontsDirectory = null), (cm.numDisplays = null), (cm.userDirectory = null), (cm.embed = e.lime.embed = function (e, t, s, n, i) { var r = null; r = "string" == typeof e ? window.document.getElementById(Lp.__cast(e, String)) : null == e ? window.document.createElement("div") : e; var o = null; null != n && (o = -1 < (n = Ri.replace(n, "#", "")).indexOf("0x") ? Ue.parseInt(n) : Ue.parseInt("0x" + n)), null == t && (t = 0), null == s && (s = 0), (qr.config.windows[0].background = o), (qr.config.windows[0].element = r), (qr.config.windows[0].width = t), (qr.config.windows[0].height = s), (qr.config.assetsPrefix = i), qr.create(); }), (cm.exit = function (e) {}), (cm.getDisplay = function (e) { if (0 != e) return null; var t = new _m(); return ( (t.id = 0), (t.name = "Generic Display"), (t.dpi = 96), (t.currentMode = new um( window.screen.width, window.screen.height, 60, 1 )), (t.supportedModes = [t.currentMode]), (t.bounds = new Jb(0, 0, t.currentMode.width, t.currentMode.height)), t ); }), (cm.getTimer = function () { return Date.now(); }), (cm.load = function (e, t, s, n) { return null == n && (n = !1), null == s && (s = 0), am.load(e, t, s, n); }), (cm.get_allowScreenTimeout = function () { return !0; }), (cm.set_allowScreenTimeout = function (e) { return !0; }), (cm.get_applicationDirectory = function () { return null; }), (cm.get_applicationStorageDirectory = function () { return ( null != Jp.current && null != Jp.current.config && (null != Jp.current.config.company && Jp.current.config.company, null != Jp.current.config.file && Jp.current.config.file), null ); }), (cm.get_desktopDirectory = function () { return null; }), (cm.get_documentsDirectory = function () { return null; }), (cm.get_fontsDirectory = function () { return null; }), (cm.get_numDisplays = function () { return 1; }), (cm.get_userDirectory = function () { return null; }), (cm.get_endianness = function () { return dm.LITTLE_ENDIAN; }); var fm = function (e, t) { null == t && (t = 1), null == e && (e = 0), (this.onProgress = new $p()), (this.onError = new $p()), (this.onComplete = new $p()), (this.doWork = new $p()), (this.minThreads = e), (this.maxThreads = t), (this.currentThreads = 0); }; ((s["lime.system.ThreadPool"] = fm).__name__ = [ "lime", "system", "ThreadPool", ]), (fm.prototype = { queue: function (e) { this.doWork.dispatch(e); }, sendComplete: function (e) { this.onComplete.dispatch(e); }, sendError: function (e) { this.onError.dispatch(e); }, sendProgress: function (e) { this.onProgress.dispatch(e); }, __class__: fm, }); var pm = (s["lime.system._ThreadPool.ThreadPoolMessageType"] = { __ename__: ["lime", "system", "_ThreadPool", "ThreadPoolMessageType"], __constructs__: ["COMPLETE", "ERROR", "EXIT", "PROGRESS", "WORK"], }); (pm.COMPLETE = ["COMPLETE", 0]), (pm.COMPLETE.toString = c), ((pm.COMPLETE.__enum__ = pm).ERROR = ["ERROR", 1]), (pm.ERROR.toString = c), ((pm.ERROR.__enum__ = pm).EXIT = ["EXIT", 2]), (pm.EXIT.toString = c), ((pm.EXIT.__enum__ = pm).PROGRESS = ["PROGRESS", 3]), (pm.PROGRESS.toString = c), ((pm.PROGRESS.__enum__ = pm).WORK = ["WORK", 4]), (pm.WORK.toString = c), (pm.WORK.__enum__ = pm); var bm = function (e, t) { (this.type = e), (this.state = t); }; ((s["lime.system._ThreadPool.ThreadPoolMessage"] = bm).__name__ = [ "lime", "system", "_ThreadPool", "ThreadPoolMessage", ]), (bm.prototype = { __class__: bm }); var mm = {}; ((s["lime.text._Glyph.Glyph_Impl_"] = mm).__name__ = [ "lime", "text", "_Glyph", "Glyph_Impl_", ]), (mm._new = function (e) { return e; }); var gm = function () {}; ((s["lime.text.GlyphMetrics"] = gm).__name__ = [ "lime", "text", "GlyphMetrics", ]), (gm.prototype = { __class__: gm }); var wm = function (e, t, s) { (this.glyph = e), (this.advance = t), (this.offset = null != s ? s : new Qb()); }; ((s["lime.text.GlyphPosition"] = wm).__name__ = [ "lime", "text", "GlyphPosition", ]), (wm.prototype = { __class__: wm }); var vm = {}; ((s["lime.text._TextDirection.TextDirection_Impl_"] = vm).__name__ = [ "lime", "text", "_TextDirection", "TextDirection_Impl_", ]), (vm.__properties__ = { get_vertical: "get_vertical", get_horizontal: "get_horizontal", get_forward: "get_forward", get_backward: "get_backward", }), (vm.reverse = function (e) { 1; }), (vm.toString = function (e) { switch (e) { case 4: return "leftToRight"; case 5: return "rightToLeft"; case 6: return "topToBottom"; case 7: return "bottomToTop"; default: return ""; } }), (vm.get_backward = function (e) { return 5 == (-3 & e); }), (vm.get_forward = function (e) { return 4 == (-3 & e); }), (vm.get_horizontal = function (e) { return 4 == (-2 & e); }), (vm.get_vertical = function (e) { return 6 == (-2 & e); }); var ym = function (e, t, s, n, i, r) { null == r && (r = "en"), null == i && (i = "Zyyy"), null == n && (n = 4), null == s && (s = 12), null == e && (e = ""), this.set_text(e), this.set_font(t), this.set_size(s), (this.__direction = n), (this.__script = i), (this.__language = r), (this.positions = []), (this.__dirty = !0); }; ((s["lime.text.TextLayout"] = ym).__name__ = ["lime", "text", "TextLayout"]), (ym.prototype = { __position: function () { this.positions = []; }, get_positions: function () { return ( this.__dirty && ((this.__dirty = !1), this.__position()), this.positions ); }, get_direction: function () { return this.__direction; }, set_direction: function (e) { return ( e == this.__direction || ((this.__direction = e), (this.__dirty = !0)), e ); }, set_font: function (e) { return e == this.font || ((this.font = e), (this.__dirty = !0)), e; }, get_glyphs: function () { for (var e = [], t = 0, s = this.get_positions(); t < s.length; ) { var n = s[t]; ++t, e.push(n.glyph); } return e; }, get_language: function () { return this.__language; }, set_language: function (e) { return ( e == this.__language || ((this.__language = e), (this.__dirty = !0)), e ); }, get_script: function () { return this.__script; }, set_script: function (e) { return ( e == this.__script || ((this.__script = e), (this.__dirty = !0)), e ); }, set_size: function (e) { return e == this.size || ((this.size = e), (this.__dirty = !0)), e; }, set_text: function (e) { return e == this.text || ((this.text = e), (this.__dirty = !0)), e; }, __class__: ym, __properties__: { set_text: "set_text", set_size: "set_size", set_script: "set_script", get_script: "get_script", get_positions: "get_positions", set_language: "set_language", get_language: "get_language", get_glyphs: "get_glyphs", set_font: "set_font", set_direction: "set_direction", get_direction: "get_direction", }, }); var Tm = {}; ((s["lime.text._TextScript.TextScript_Impl_"] = Tm).__name__ = [ "lime", "text", "_TextScript", "TextScript_Impl_", ]), (Tm.__properties__ = { get_rightToLeft: "get_rightToLeft" }), (Tm.get_rightToLeft = function (e) { switch (e) { case "Arab": case "Armi": case "Avst": case "Cprt": case "Hebr": case "Khar": case "Lydi": case "Mand": case "Nkoo": case "Orkh": case "Phli": case "Phlp": case "Phnx": case "Samr": case "Sarb": case "Syrc": case "Thaa": return !0; default: return !1; } }); var Sm = function (e) { (this.onDisconnect = new Vp()), (this.onButtonUp = new ub()), (this.onButtonDown = new ub()), (this.onAxisMove = new _b()), (this.id = e), (this.connected = !0); }; ((s["lime.ui.Gamepad"] = Sm).__name__ = ["lime", "ui", "Gamepad"]), (Sm.addMappings = function (e) {}), (Sm.__connect = function (e) { if (!Sm.devices.h.hasOwnProperty(e)) { var t = new Sm(e); (Sm.devices.h[e] = t), Sm.onConnect.dispatch(t); } }), (Sm.__disconnect = function (e) { var t = Sm.devices.h[e]; null != t && (t.connected = !1), Sm.devices.remove(e), null != t && t.onDisconnect.dispatch(); }), (Sm.prototype = { get_guid: function () { return Pm.__getDeviceData()[this.id].id; }, get_name: function () { return Pm.__getDeviceData()[this.id].id; }, __class__: Sm, __properties__: { get_name: "get_name", get_guid: "get_guid" }, }); var xm = {}; ((s["lime.ui._GamepadAxis.GamepadAxis_Impl_"] = xm).__name__ = [ "lime", "ui", "_GamepadAxis", "GamepadAxis_Impl_", ]), (xm.toString = function (e) { switch (e) { case 0: return "LEFT_X"; case 1: return "LEFT_Y"; case 2: return "RIGHT_X"; case 3: return "RIGHT_Y"; case 4: return "TRIGGER_LEFT"; case 5: return "TRIGGER_RIGHT"; default: return "UNKNOWN (" + e + ")"; } }); var Em = {}; ((s["lime.ui._GamepadButton.GamepadButton_Impl_"] = Em).__name__ = [ "lime", "ui", "_GamepadButton", "GamepadButton_Impl_", ]), (Em.toString = function (e) { switch (e) { case 0: return "A"; case 1: return "B"; case 2: return "X"; case 3: return "Y"; case 4: return "BACK"; case 5: return "GUIDE"; case 6: return "START"; case 7: return "LEFT_STICK"; case 8: return "RIGHT_STICK"; case 9: return "LEFT_SHOULDER"; case 10: return "RIGHT_SHOULDER"; case 11: return "DPAD_UP"; case 12: return "DPAD_DOWN"; case 13: return "DPAD_LEFT"; case 14: return "DPAD_RIGHT"; default: return "UNKNOWN (" + e + ")"; } }); var Pm = function (e) { (this.onTrackballMove = new sb()), (this.onHatMove = new ob()), (this.onDisconnect = new Vp()), (this.onButtonUp = new rb()), (this.onButtonDown = new rb()), (this.onAxisMove = new sb()), (this.id = e), (this.connected = !0); }; ((s["lime.ui.Joystick"] = Pm).__name__ = ["lime", "ui", "Joystick"]), (Pm.__connect = function (e) { if (!Pm.devices.h.hasOwnProperty(e)) { var t = new Pm(e); (Pm.devices.h[e] = t), Pm.onConnect.dispatch(t); } }), (Pm.__disconnect = function (e) { var t = Pm.devices.h[e]; null != t && (t.connected = !1), Pm.devices.remove(e), null != t && t.onDisconnect.dispatch(); }), (Pm.__getDeviceData = function () { return navigator.getGamepads ? navigator.getGamepads() : navigator.webkitGetGamepads ? navigator.webkitGetGamepads() : null; }), (Pm.prototype = { get_guid: function () { return Pm.__getDeviceData()[this.id].id; }, get_name: function () { return Pm.__getDeviceData()[this.id].id; }, get_numAxes: function () { return Pm.__getDeviceData()[this.id].axes.length; }, get_numButtons: function () { return Pm.__getDeviceData()[this.id].buttons.length; }, get_numHats: function () { return 0; }, get_numTrackballs: function () { return 0; }, __class__: Pm, __properties__: { get_numTrackballs: "get_numTrackballs", get_numHats: "get_numHats", get_numButtons: "get_numButtons", get_numAxes: "get_numAxes", get_name: "get_name", get_guid: "get_guid", }, }); var Rm = {}; ((s["lime.ui._JoystickHatPosition.JoystickHatPosition_Impl_"] = Rm).__name__ = ["lime", "ui", "_JoystickHatPosition", "JoystickHatPosition_Impl_"]), (Rm.__properties__ = { set_up: "set_up", get_up: "get_up", set_right: "set_right", get_right: "get_right", set_left: "set_left", get_left: "get_left", set_down: "set_down", get_down: "get_down", set_center: "set_center", get_center: "get_center", }), (Rm._new = function (e) { return e; }), (Rm.get_center = function (e) { return 0 == e; }), (Rm.set_center = function (e, t) { return t && 0, t; }), (Rm.get_down = function (e) { return 0 < (4 & e); }), (Rm.set_down = function (e, t) { return t ? 4 : 268435451, t; }), (Rm.get_left = function (e) { return 0 < (8 & e); }), (Rm.set_left = function (e, t) { return t ? 8 : 268435447, t; }), (Rm.get_right = function (e) { return 0 < (2 & e); }), (Rm.set_right = function (e, t) { return t ? 2 : 268435453, t; }), (Rm.get_up = function (e) { return 0 < (1 & e); }), (Rm.set_up = function (e, t) { return t ? 1 : 268435454, t; }); var Am = {}; ((s["lime.ui._KeyCode.KeyCode_Impl_"] = Am).__name__ = [ "lime", "ui", "_KeyCode", "KeyCode_Impl_", ]), (Am.gt = function (e, t) { return t < e; }), (Am.gte = function (e, t) { return t <= e; }), (Am.lt = function (e, t) { return e < t; }), (Am.lte = function (e, t) { return e <= t; }), (Am.plus = function (e, t) { return e + t; }); var Im = {}; ((s["lime.ui._KeyModifier.KeyModifier_Impl_"] = Im).__name__ = [ "lime", "ui", "_KeyModifier", "KeyModifier_Impl_", ]), (Im.__properties__ = { set_shiftKey: "set_shiftKey", get_shiftKey: "get_shiftKey", set_numLock: "set_numLock", get_numLock: "get_numLock", set_metaKey: "set_metaKey", get_metaKey: "get_metaKey", set_ctrlKey: "set_ctrlKey", get_ctrlKey: "get_ctrlKey", set_capsLock: "set_capsLock", get_capsLock: "get_capsLock", set_altKey: "set_altKey", get_altKey: "get_altKey", }), (Im.get_altKey = function (e) { return !((256 & e) <= 0) || 0 < (512 & e); }), (Im.set_altKey = function (e, t) { return t ? 768 : 268434687, t; }), (Im.get_capsLock = function (e) { return !((8192 & e) <= 0) || 0 < (8192 & e); }), (Im.set_capsLock = function (e, t) { return t ? 8192 : 268427263, t; }), (Im.get_ctrlKey = function (e) { return !((64 & e) <= 0) || 0 < (128 & e); }), (Im.set_ctrlKey = function (e, t) { return t ? 192 : 268435263, t; }), (Im.get_metaKey = function (e) { return !((1024 & e) <= 0) || 0 < (2048 & e); }), (Im.set_metaKey = function (e, t) { return t ? 3072 : 268432383, t; }), (Im.get_numLock = function (e) { return !((4096 & e) <= 0) || 0 < (4096 & e); }), (Im.set_numLock = function (e, t) { return t ? 4096 : 268431359, t; }), (Im.get_shiftKey = function (e) { return !((1 & e) <= 0) || 0 < (2 & e); }), (Im.set_shiftKey = function (e, t) { return t ? 3 : 268435452, t; }); var Cm = function () {}; ((s["lime.ui.Mouse"] = Cm).__name__ = ["lime", "ui", "Mouse"]), (Cm.__properties__ = { set_lock: "set_lock", get_lock: "get_lock", set_cursor: "set_cursor", get_cursor: "get_cursor", }), (Cm.hide = function () { Kp.hide(); }), (Cm.show = function () { Kp.show(); }), (Cm.warp = function (e, t, s) { Kp.warp(e, t, s); }), (Cm.get_cursor = function () { return Kp.get_cursor(); }), (Cm.set_cursor = function (e) { return Kp.set_cursor(e); }), (Cm.get_lock = function () { return Kp.get_lock(); }), (Cm.set_lock = function (e) { return Kp.set_lock(e); }); var Bm = (s["lime.ui.MouseCursor"] = { __ename__: ["lime", "ui", "MouseCursor"], __constructs__: [ "ARROW", "CROSSHAIR", "DEFAULT", "MOVE", "POINTER", "RESIZE_NESW", "RESIZE_NS", "RESIZE_NWSE", "RESIZE_WE", "TEXT", "WAIT", "WAIT_ARROW", "CUSTOM", ], }); (Bm.ARROW = ["ARROW", 0]), (Bm.ARROW.toString = c), ((Bm.ARROW.__enum__ = Bm).CROSSHAIR = ["CROSSHAIR", 1]), (Bm.CROSSHAIR.toString = c), ((Bm.CROSSHAIR.__enum__ = Bm).DEFAULT = ["DEFAULT", 2]), (Bm.DEFAULT.toString = c), ((Bm.DEFAULT.__enum__ = Bm).MOVE = ["MOVE", 3]), (Bm.MOVE.toString = c), ((Bm.MOVE.__enum__ = Bm).POINTER = ["POINTER", 4]), (Bm.POINTER.toString = c), ((Bm.POINTER.__enum__ = Bm).RESIZE_NESW = ["RESIZE_NESW", 5]), (Bm.RESIZE_NESW.toString = c), ((Bm.RESIZE_NESW.__enum__ = Bm).RESIZE_NS = ["RESIZE_NS", 6]), (Bm.RESIZE_NS.toString = c), ((Bm.RESIZE_NS.__enum__ = Bm).RESIZE_NWSE = ["RESIZE_NWSE", 7]), (Bm.RESIZE_NWSE.toString = c), ((Bm.RESIZE_NWSE.__enum__ = Bm).RESIZE_WE = ["RESIZE_WE", 8]), (Bm.RESIZE_WE.toString = c), ((Bm.RESIZE_WE.__enum__ = Bm).TEXT = ["TEXT", 9]), (Bm.TEXT.toString = c), ((Bm.TEXT.__enum__ = Bm).WAIT = ["WAIT", 10]), (Bm.WAIT.toString = c), ((Bm.WAIT.__enum__ = Bm).WAIT_ARROW = ["WAIT_ARROW", 11]), (Bm.WAIT_ARROW.toString = c), ((Bm.WAIT_ARROW.__enum__ = Bm).CUSTOM = ["CUSTOM", 12]), (Bm.CUSTOM.toString = c), (Bm.CUSTOM.__enum__ = Bm); var Dm = function (e, t, s, n, i, r, o) { (this.x = e), (this.y = t), (this.id = s), (this.dx = n), (this.dy = i), (this.pressure = r), (this.device = o); }; ((s["lime.ui.Touch"] = Dm).__name__ = ["lime", "ui", "Touch"]), (Dm.prototype = { __class__: Dm }); var km = function (e) { (this.onTextInput = new lb()), (this.onTextEdit = new ab()), (this.onRestore = new Vp()), (this.onResize = new ib()), (this.onMove = new tb()), (this.onMouseWheel = new tb()), (this.onMouseUp = new eb()), (this.onMouseMoveRelative = new tb()), (this.onMouseMove = new tb()), (this.onMouseDown = new eb()), (this.onMinimize = new Vp()), (this.onLeave = new Vp()), (this.onKeyUp = new fb()), (this.onKeyDown = new fb()), (this.onFullscreen = new Vp()), (this.onFocusOut = new Vp()), (this.onFocusIn = new Vp()), (this.onEnter = new Vp()), (this.onDeactivate = new Vp()), (this.onCreate = new Vp()), (this.onClose = new Vp()), (this.onActivate = new Vp()), (this.config = e), (this.__width = 0), (this.__height = 0), (this.__fullscreen = !1), (this.__scale = 1), (this.__x = 0), (this.__y = 0), (this.__title = ""), (this.id = -1), null != e && (Object.prototype.hasOwnProperty.call(e, "width") && ((this.__width = e.width), (this.__originalWidth = e.width)), Object.prototype.hasOwnProperty.call(e, "height") && ((this.__height = e.height), (this.__originalHeight = e.height)), Object.prototype.hasOwnProperty.call(e, "x") && (this.__x = e.x), Object.prototype.hasOwnProperty.call(e, "y") && (this.__y = e.y), Object.prototype.hasOwnProperty.call(e, "fullscreen") && (this.__fullscreen = e.fullscreen), Object.prototype.hasOwnProperty.call(e, "borderless") && (this.__borderless = e.borderless), Object.prototype.hasOwnProperty.call(e, "resizable") && (this.__resizable = e.resizable), Object.prototype.hasOwnProperty.call(e, "title") && (this.__title = e.title)), (this.backend = new Zp(this)); }; ((s["lime.ui.Window"] = km).__name__ = ["lime", "ui", "Window"]), (km.prototype = { alert: function (e, t) { this.backend.alert(e, t); }, close: function () { this.backend.close(); }, create: function (e) { (this.application = e), this.backend.create(e), null != this.renderer && this.renderer.create(); }, focus: function () { this.backend.focus(); }, move: function (e, t) { this.backend.move(e, t), (this.__x = e), (this.__y = t); }, resize: function (e, t) { (this.__width = e), (this.__height = t), this.backend.resize(e, t); }, resizeViewport: function (e, t) { this.backend.resizeViewport(e, t); }, setIcon: function (e) { null != e && this.backend.setIcon(e); }, toString: function () { return "[object Window]"; }, get_display: function () { return this.backend.getDisplay(); }, get_borderless: function () { return this.__borderless; }, set_borderless: function (e) { return (this.__borderless = this.backend.setBorderless(e)); }, get_originalWidth: function () { return this.__originalWidth; }, get_originalHeight: function () { return this.__originalHeight; }, get_enableTextEvents: function () { return this.backend.getEnableTextEvents(); }, set_enableTextEvents: function (e) { return this.backend.setEnableTextEvents(e); }, get_fullscreen: function () { return this.__fullscreen; }, set_fullscreen: function (e) { return (this.__fullscreen = this.backend.setFullscreen(e)); }, get_height: function () { return this.__height; }, set_height: function (e) { return this.resize(this.__width, e), this.__height; }, get_minimized: function () { return this.__minimized; }, set_minimized: function (e) { return (this.__minimized = this.backend.setMinimized(e)); }, get_resizable: function () { return this.__resizable; }, set_resizable: function (e) { return ( (this.__resizable = this.backend.setResizable(e)), this.__resizable ); }, get_scale: function () { return this.__scale; }, get_screenWidth: function () { return this.backend.getScreenWidth(); }, get_screenHeight: function () { return this.backend.getScreenHeight(); }, get_title: function () { return this.__title; }, set_title: function (e) { return (this.__title = this.backend.setTitle(this.__title)); }, get_width: function () { return this.__width; }, set_width: function (e) { return this.resize(e, this.__height), this.__width; }, get_x: function () { return this.__x; }, set_x: function (e) { return this.move(e, this.__y), this.__x; }, get_y: function () { return this.__y; }, set_y: function (e) { return this.move(this.__x, e), this.__y; }, __class__: km, __properties__: { set_y: "set_y", get_y: "get_y", set_x: "set_x", get_x: "get_x", set_width: "set_width", get_width: "get_width", set_title: "set_title", get_title: "get_title", get_screenHeight: "get_screenHeight", get_screenWidth: "get_screenWidth", get_scale: "get_scale", set_resizable: "set_resizable", get_resizable: "get_resizable", get_originalHeight: "get_originalHeight", get_originalWidth: "get_originalWidth", set_minimized: "set_minimized", get_minimized: "get_minimized", set_height: "set_height", get_height: "get_height", set_fullscreen: "set_fullscreen", get_fullscreen: "get_fullscreen", set_enableTextEvents: "set_enableTextEvents", get_enableTextEvents: "get_enableTextEvents", get_display: "get_display", set_borderless: "set_borderless", get_borderless: "get_borderless", }, }); var Fm = (s["lime.utils.TAError"] = { __ename__: ["lime", "utils", "TAError"], __constructs__: ["RangeError"], }); (Fm.RangeError = ["RangeError", 0]), (Fm.RangeError.toString = c), (Fm.RangeError.__enum__ = Fm); var Mm = function (e, t) { Lf.call(this, t); }; ((s["lime.utils.Bytes"] = Mm).__name__ = ["lime", "utils", "Bytes"]), (Mm.alloc = function (e) { var t = new Lf(new OT(e)); return new Mm(t.length, t.b.bufferValue); }), (Mm.fastGet = function (e, t) { return e.bytes[t]; }), (Mm.ofData = function (e) { var t = Lf.ofData(e); return new Mm(t.length, t.b.bufferValue); }), (Mm.ofString = function (e) { var t = Lf.ofString(e); return new Mm(t.length, t.b.bufferValue); }), (Mm.readFile = function (e) { return null; }), (Mm.lime_bytes_from_data_pointer = function (e, t) { return Mm.cffi_lime_bytes_from_data_pointer(e, t); }), (Mm.lime_bytes_get_data_pointer = function (e) { return Mm.cffi_lime_bytes_get_data_pointer(e); }), (Mm.lime_bytes_read_file = function (e) { return Mm.cffi_lime_bytes_read_file(e); }), (Mm.__super__ = Lf), (Mm.prototype = n(Lf.prototype, { __class__: Mm })); var Lm = {}; ((s["lime.utils._Float32Array.Float32Array_Impl_"] = Lm).__name__ = [ "lime", "utils", "_Float32Array", "Float32Array_Impl_", ]), (Lm.__set = function (e, t, s) { return (e[t] = s); }), (Lm.__get = function (e, t) { return e[t]; }), (Lm.fromBytes = function (e, t, s) { return ( null == t && (t = 0), null == t ? new GT(e.b.bufferValue) : null == s ? new GT(e.b.bufferValue, t) : new GT(e.b.bufferValue, t, s) ); }), (Lm.toBytes = function (e) { return new Lf(new zT(e.buffer)); }), (Lm.toString = function (e) { return null != e ? "Float32Array [byteLength:" + e.byteLength + ", length:" + e.length + "]" : null; }); var Nm = function () {}; ((s["lime.utils.GLUtils"] = Nm).__name__ = ["lime", "utils", "GLUtils"]), (Nm.compileShader = function (e, t) { var s = Vb.context.createShader(t); if ( (Vb.context.shaderSource(s, e), Vb.context.compileShader(s), 0 == Vb.context.getShaderParameter(s, 35713)) ) switch (t) { case 35632: throw new Mp("Error compiling fragment shader"); case 35633: throw new Mp("Error compiling vertex shader"); default: throw new Mp("Error compiling unknown shader type"); } return s; }), (Nm.createProgram = function (e, t) { var s = Nm.compileShader(e, 35633), n = Nm.compileShader(t, 35632), i = Vb.context.createProgram(); if ( (Vb.context.attachShader(i, s), Vb.context.attachShader(i, n), Vb.context.linkProgram(i), 0 == Vb.context.getProgramParameter(i, 35714)) ) throw new Mp("Unable to initialize the shader program."); return i; }); var Om = {}; ((s["lime.utils._Int16Array.Int16Array_Impl_"] = Om).__name__ = [ "lime", "utils", "_Int16Array", "Int16Array_Impl_", ]), (Om.__set = function (e, t, s) { return (e[t] = s); }), (Om.__get = function (e, t) { return e[t]; }), (Om.fromBytes = function (e, t, s) { return ( null == t && (t = 0), null == t ? new Int16Array(e.b.bufferValue) : null == s ? new Int16Array(e.b.bufferValue, t) : new Int16Array(e.b.bufferValue, t, s) ); }), (Om.toBytes = function (e) { return new Lf(new zT(e.buffer)); }), (Om.toString = function (e) { return null != e ? "Int16Array [byteLength:" + e.byteLength + ", length:" + e.length + "]" : null; }); var Um = {}; ((s["lime.utils._Int32Array.Int32Array_Impl_"] = Um).__name__ = [ "lime", "utils", "_Int32Array", "Int32Array_Impl_", ]), (Um.__set = function (e, t, s) { return (e[t] = s); }), (Um.__get = function (e, t) { return e[t]; }), (Um.fromBytes = function (e, t, s) { return ( null == t && (t = 0), null == t ? new Int32Array(e.b.bufferValue) : null == s ? new Int32Array(e.b.bufferValue, t) : new Int32Array(e.b.bufferValue, t, s) ); }), (Um.toBytes = function (e) { return new Lf(new zT(e.buffer)); }), (Um.toString = function (e) { return null != e ? "Int32Array [byteLength:" + e.byteLength + ", length:" + e.length + "]" : null; }); var Gm = function () {}; ((s["lime.utils.LZMA"] = Gm).__name__ = ["lime", "utils", "LZMA"]), (Gm.decode = function (e) { return null; }), (Gm.encode = function (e) { return null; }); var zm = {}; ((s["lime.utils._UInt16Array.UInt16Array_Impl_"] = zm).__name__ = [ "lime", "utils", "_UInt16Array", "UInt16Array_Impl_", ]), (zm.__set = function (e, t, s) { return (e[t] = s); }), (zm.__get = function (e, t) { return e[t]; }), (zm.fromBytes = function (e, t, s) { return ( null == t && (t = 0), null == t ? new Uint16Array(e.b.bufferValue) : null == s ? new Uint16Array(e.b.bufferValue, t) : new Uint16Array(e.b.bufferValue, t, s) ); }), (zm.toBytes = function (e) { return new Lf(new zT(e.buffer)); }), (zm.toString = function (e) { return null != e ? "UInt16Array [byteLength:" + e.byteLength + ", length:" + e.length + "]" : null; }); var Xm = {}; ((s["lime.utils._UInt32Array.UInt32Array_Impl_"] = Xm).__name__ = [ "lime", "utils", "_UInt32Array", "UInt32Array_Impl_", ]), (Xm.__set = function (e, t, s) { return (e[t] = s); }), (Xm.__get = function (e, t) { return e[t]; }), (Xm.fromBytes = function (e, t, s) { return ( null == t && (t = 0), null == t ? new Uint32Array(e.b.bufferValue) : null == s ? new Uint32Array(e.b.bufferValue, t) : new Uint32Array(e.b.bufferValue, t, s) ); }), (Xm.toBytes = function (e) { return new Lf(new zT(e.buffer)); }), (Xm.toString = function (e) { return null != e ? "UInt32Array [byteLength:" + e.byteLength + ", length:" + e.length + "]" : null; }); var Hm = {}; ((s["lime.utils._UInt8Array.UInt8Array_Impl_"] = Hm).__name__ = [ "lime", "utils", "_UInt8Array", "UInt8Array_Impl_", ]), (Hm.__set = function (e, t, s) { return (e[t] = s); }), (Hm.__get = function (e, t) { return e[t]; }), (Hm.fromBytes = function (e, t, s) { return null == t ? new zT(e.b.bufferValue) : null == s ? new zT(e.b.bufferValue, t) : new zT(e.b.bufferValue, t, s); }), (Hm.toBytes = function (e) { return new Lf(new zT(e.buffer)); }), (Hm.toString = function (e) { return null != e ? "UInt8Array [byteLength:" + e.byteLength + ", length:" + e.length + "]" : null; }); var Vm = function () {}; ((s["openfl.IAssetCache"] = Vm).__name__ = ["openfl", "IAssetCache"]), (Vm.prototype = { __class__: Vm, __properties__: { set_enabled: "set_enabled", get_enabled: "get_enabled", }, }); var Ym = function () { (this.__enabled = !0), (this.bitmapData = new up()), (this.font = new up()), (this.sound = new up()); }; ((s["openfl.AssetCache"] = Ym).__name__ = ["openfl", "AssetCache"]), (Ym.__interfaces__ = [Vm]), (Ym.prototype = { clear: function (e) { if (null == e) (this.bitmapData = new up()), (this.font = new up()), (this.sound = new up()); else { for (var t = this.bitmapData.keys(); t.hasNext(); ) { var s = t.next(); Ri.startsWith(s, e) && this.bitmapData.remove(s); } for (var n = this.font.keys(); n.hasNext(); ) { var i = n.next(); Ri.startsWith(i, e) && this.font.remove(i); } for (var r = this.sound.keys(); r.hasNext(); ) { var o = r.next(); Ri.startsWith(o, e) && this.sound.remove(o); } } }, getBitmapData: function (e) { var t = this.bitmapData; return null != NT[e] ? t.getReserved(e) : t.h[e]; }, getFont: function (e) { var t = this.font; return null != NT[e] ? t.getReserved(e) : t.h[e]; }, getSound: function (e) { var t = this.sound; return null != NT[e] ? t.getReserved(e) : t.h[e]; }, hasBitmapData: function (e) { var t = this.bitmapData; return null != NT[e] ? t.existsReserved(e) : t.h.hasOwnProperty(e); }, hasFont: function (e) { var t = this.font; return null != NT[e] ? t.existsReserved(e) : t.h.hasOwnProperty(e); }, hasSound: function (e) { var t = this.sound; return null != NT[e] ? t.existsReserved(e) : t.h.hasOwnProperty(e); }, removeBitmapData: function (e) { return this.bitmapData.remove(e); }, removeFont: function (e) { return this.font.remove(e); }, removeSound: function (e) { return this.sound.remove(e); }, setBitmapData: function (e, t) { var s = this.bitmapData; null != NT[e] ? s.setReserved(e, t) : (s.h[e] = t); }, setFont: function (e, t) { var s = this.font; null != NT[e] ? s.setReserved(e, t) : (s.h[e] = t); }, setSound: function (e, t) { var s = this.sound; null != NT[e] ? s.setReserved(e, t) : (s.h[e] = t); }, get_enabled: function () { return this.__enabled; }, set_enabled: function (e) { return (this.__enabled = e); }, __class__: Ym, __properties__: { set_enabled: "set_enabled", get_enabled: "get_enabled", }, }); var Wm = function () {}; ((s["openfl.Assets"] = Wm).__name__ = ["openfl", "Assets"]), (Wm.addEventListener = function (e, t, s, n, i) { null == i && (i = !1), null == n && (n = 0), null == s && (s = !1), Yp.onChange.has(Wm.LimeAssets_onChange) || Yp.onChange.add(Wm.LimeAssets_onChange), Wm.dispatcher.addEventListener(e, t, s, n, i); }), (Wm.dispatchEvent = function (e) { return Wm.dispatcher.dispatchEvent(e); }), (Wm.exists = function (e, t) { return Yp.exists(e, t); }), (Wm.getBitmapData = function (e, t) { if ( (null == t && (t = !0), t && Wm.cache.get_enabled() && Wm.cache.hasBitmapData(e)) ) { var s = Wm.cache.getBitmapData(e); if (Wm.isValidBitmapData(s)) return s; } var n = Yp.getImage(e, !1); if (null == n) return null; var i = sw.fromImage(n); return t && Wm.cache.get_enabled() && Wm.cache.setBitmapData(e, i), i; }), (Wm.getBitmapDataFromSymbol = function (e, t) { return ( null == t && (t = !0), sw.isSpritesheetImage(e.path) ? sw.getFromSpritesheet(e.id, e.path) : Wm.getBitmapData(e.path, t) ); }), (Wm.getBytes = function (e) { return jy.fromBytes(Yp.getBytes(e)); }), (Wm.getFont = function (e, t) { if ( (null == t && (t = !0), t && Wm.cache.get_enabled() && Wm.cache.hasFont(e)) ) return Wm.cache.getFont(e); var s = Yp.getFont(e, !1); if (null == s) return new _o(); var n = _o.__fromLimeFont(s); return t && Wm.cache.get_enabled() && Wm.cache.setFont(e, n), n; }), (Wm.getLibrary = function (e) { return Yp.getLibrary(e); }), (Wm.getMovieClip = function (e) { var t = e.substring(0, e.indexOf(":")), s = he.substr(e, e.indexOf(":") + 1, null), n = Wm.getLibrary(t); if (null != n) if (n.exists(s, "MOVIE_CLIP")) { if (n.isLocal(s, "MOVIE_CLIP")) return n.getMovieClip(s); Zf.trace( '[openfl.Assets] MovieClip asset "' + e + '" exists, but only asynchronously', { fileName: "Assets.hx", lineNumber: 232, className: "openfl.Assets", methodName: "getMovieClip", } ); } else Zf.trace( '[openfl.Assets] There is no MovieClip asset with an ID of "' + e + '"', { fileName: "Assets.hx", lineNumber: 238, className: "openfl.Assets", methodName: "getMovieClip", } ); else Zf.trace( '[openfl.Assets] There is no asset library named "' + t + '"', { fileName: "Assets.hx", lineNumber: 244, className: "openfl.Assets", methodName: "getMovieClip", } ); return null; }), (Wm.getMusic = function (e, t) { null == t && (t = !0); var s = Yp.getPath(e); return null != s ? new my(new Py(s)) : null; }), (Wm.getPath = function (e) { return Yp.getPath(e); }), (Wm.getSound = function (e, t) { if ( (null == t && (t = !0), t && Wm.cache.get_enabled() && Wm.cache.hasSound(e)) ) { var s = Wm.cache.getSound(e); if (Wm.isValidSound(s)) return s; } var n = Yp.getPath(e); return null != n ? new my(new Py(n)) : null; }), (Wm.getText = function (e) { return Yp.getText(e); }), (Wm.hasEventListener = function (e) { return Wm.dispatcher.hasEventListener(e); }), (Wm.isLocal = function (e, t, s) { if ((null == s && (s = !0), s && Wm.cache.get_enabled())) { if (("IMAGE" == t || null == t) && Wm.cache.hasBitmapData(e)) return !0; if (("FONT" == t || null == t) && Wm.cache.hasFont(e)) return !0; if (("SOUND" == t || "MUSIC" == t || null == t) && Wm.cache.hasSound(e)) return !0; } var n = e.substring(0, e.indexOf(":")), i = he.substr(e, e.indexOf(":") + 1, null), r = Wm.getLibrary(n); return null != r && r.isLocal(i, t); }), (Wm.isValidBitmapData = function (e) { return null != e && null != e.get_bd().get_image(); }), (Wm.isValidSound = function (e) { return !0; }), (Wm.list = function (e) { return Yp.list(e); }), (Wm.loadBitmapData = function (s, n, t) { null == n && (n = !0), null == n && (n = !0); var i = new gb(); if ( (null != t && (i.future.onComplete(t), i.future.onError(function (e) { t(null); })), n && Wm.cache.get_enabled() && Wm.cache.hasBitmapData(s)) ) { var e = Wm.cache.getBitmapData(s); if (Wm.isValidBitmapData(e)) return i.complete(e), i.future; } return ( Yp.loadImage(s, !1) .onComplete(function (e) { if (null != e) { var t = sw.fromImage(e); n && Wm.cache.get_enabled() && Wm.cache.setBitmapData(s, t), i.complete(t); } else i.error('[Assets] Could not load Image "' + s + '"'); }) .onError(CT(i, i.error)) .onProgress(CT(i, i.progress)), i.future ); }), (Wm.loadBytes = function (e, t) { var s = new gb(), n = Yp.loadBytes(e); return ( null != t && (s.future.onComplete(t), s.future.onError(function (e) { t(null); }), n.onComplete(function (e) { s.complete(jy.fromBytes(e)); }), n.onProgress(function (e) { s.progress(e); }), n.onError(function (e) { s.error(e); })), s.future ); }), (Wm.loadFont = function (s, n, t) { null == n && (n = !0), null == n && (n = !0); var i = new gb(); if ( (null != t && (i.future.onComplete(t), i.future.onError(function (e) { t(null); })), n && Wm.cache.get_enabled() && Wm.cache.hasFont(s)) ) { var e = Wm.cache.getFont(s); return i.complete(e), i.future; } return ( Yp.loadFont(s) .onComplete(function (e) { var t = _o.__fromLimeFont(e); n && Wm.cache.get_enabled() && Wm.cache.setFont(s, t), i.complete(t); }) .onError(CT(i, i.error)) .onProgress(CT(i, i.progress)), i.future ); }), (Wm.loadLibrary = function (e, t) { var s = Yp.loadLibrary(e); return ( null != t && (s.onComplete(t), s.onError(function (e) { t(null); })), s ); }), (Wm.loadMusic = function (e, t, s) { return ( null == t && (t = !0), null == t && (t = !0), new bb(function () { return Wm.getMusic(e, t); }) ); }), (Wm.loadMovieClip = function (e, t) { var s = new gb(); null != t && (s.future.onComplete(t), s.future.onError(function (e) { t(null); })); var n = e.substring(0, e.indexOf(":")), i = he.substr(e, e.indexOf(":") + 1, null), r = Wm.getLibrary(n); return ( null != r ? r.exists(i, "MOVIE_CLIP") ? s.completeWith(r.loadMovieClip(i)) : s.error( '[Assets] There is no MovieClip asset with an ID of "' + e + '"' ) : s.error('[Assets] There is no asset library named "' + n + '"'), s.future ); }), (Wm.loadSound = function (e, t, s) { return ( null == t && (t = !0), null == t && (t = !0), new bb(function () { return Wm.getSound(e, t); }) ); }), (Wm.loadText = function (e, t) { var s = Yp.loadText(e); return ( null != t && (s.onComplete(t), s.onError(function (e) { t(null); })), s ); }), (Wm.registerLibrary = function (e, t) { Yp.registerLibrary(e, t); }), (Wm.removeEventListener = function (e, t, s) { null == s && (s = !1), Wm.dispatcher.removeEventListener(e, t, s); }), (Wm.resolveClass = function (e) { return ms.resolveClass(e); }), (Wm.resolveEnum = function (e) { return ms.resolveEnum(e); }), (Wm.unloadLibrary = function (e) { Yp.unloadLibrary(e); }), (Wm.LimeAssets_onChange = function () { Wm.dispatchEvent(new _a("change")); }); var jm = function (e, t, s, n, i, r, o, a) { null == a && (a = 0), null == o && (o = 0), null == r && (r = 0), null == i && (i = 0), null == n && (n = 1), null == s && (s = 1), null == t && (t = 1), null == e && (e = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.redMultiplier = e), (this.greenMultiplier = t), (this.blueMultiplier = s), (this.alphaMultiplier = n), (this.redOffset = i), (this.greenOffset = r), (this.blueOffset = o), (this.alphaOffset = a); }; ((s["openfl.geom.ColorTransform"] = jm).__name__ = [ "openfl", "geom", "ColorTransform", ]), (jm.__interfaces__ = [br]), (jm.prototype = { concat: function (e) { (this.redMultiplier *= e.redMultiplier), (this.greenMultiplier *= e.greenMultiplier), (this.blueMultiplier *= e.blueMultiplier), (this.alphaMultiplier *= e.alphaMultiplier), (this.redOffset = e.redMultiplier * this.redOffset + e.redOffset), (this.greenOffset = e.greenMultiplier * this.greenOffset + e.greenOffset), (this.blueOffset = e.blueMultiplier * this.blueOffset + e.blueOffset), (this.alphaOffset = e.alphaMultiplier * this.alphaOffset + e.alphaOffset); }, toString: function () { return ( "(redMultiplier=" + this.redMultiplier + ", greenMultiplier=" + this.greenMultiplier + ", blueMultiplier=" + this.blueMultiplier + ", alphaMultiplier=" + this.alphaMultiplier + ", redOffset=" + this.redOffset + ", greenOffset=" + this.greenOffset + ", blueOffset=" + this.blueOffset + ", alphaOffset=" + this.alphaOffset + ")" ); }, __clone: function () { return new jm( this.redMultiplier, this.greenMultiplier, this.blueMultiplier, this.alphaMultiplier, this.redOffset, this.greenOffset, this.blueOffset, this.alphaOffset ); }, __combine: function (e) { (this.redMultiplier *= e.redMultiplier), (this.greenMultiplier *= e.greenMultiplier), (this.blueMultiplier *= e.blueMultiplier), (this.alphaMultiplier *= e.alphaMultiplier), (this.redOffset += e.redOffset), (this.greenOffset += e.greenOffset), (this.blueOffset += e.blueOffset), (this.alphaOffset += e.alphaOffset); }, __equals: function (e, t) { return ( null == t && (t = !1), !( null == e || this.redMultiplier != e.redMultiplier || this.greenMultiplier != e.greenMultiplier || this.blueMultiplier != e.blueMultiplier || (!t && this.alphaMultiplier != e.alphaMultiplier) || this.redOffset != e.redOffset || this.greenOffset != e.greenOffset || this.blueOffset != e.blueOffset ) && this.alphaOffset == e.alphaOffset ); }, __isDefault: function () { return ( 1 == this.redMultiplier && 1 == this.greenMultiplier && 1 == this.blueMultiplier && 1 == this.alphaMultiplier && 0 == this.redOffset && 0 == this.greenOffset && 0 == this.blueOffset && 0 == this.alphaOffset ); }, reset: function () { var e = !this.__isDefault(); return ( e && ((this.redMultiplier = this.greenMultiplier = this.blueMultiplier = this.alphaMultiplier = 1), (this.redOffset = this.greenOffset = this.blueOffset = this.alphaOffset = 0)), e ); }, setFromCombination: function (e, t) { (this.redMultiplier = e.redMultiplier * t.redMultiplier), (this.greenMultiplier = e.greenMultiplier * t.greenMultiplier), (this.blueMultiplier = e.blueMultiplier * t.blueMultiplier), (this.alphaMultiplier = e.alphaMultiplier * t.alphaMultiplier), (this.redOffset = e.redOffset + t.redOffset), (this.greenOffset = e.greenOffset + t.greenOffset), (this.blueOffset = e.blueOffset + t.blueOffset), (this.alphaOffset = e.alphaOffset + t.alphaOffset); }, copyFrom: function (e) { (this.redMultiplier = e.redMultiplier), (this.greenMultiplier = e.greenMultiplier), (this.blueMultiplier = e.blueMultiplier), (this.alphaMultiplier = e.alphaMultiplier), (this.redOffset = e.redOffset), (this.greenOffset = e.greenOffset), (this.blueOffset = e.blueOffset), (this.alphaOffset = e.alphaOffset); }, get_color: function () { return ( ((0 | this.redOffset) << 16) | ((0 | this.greenOffset) << 8) | 0 | this.blueOffset ); }, set_color: function (e) { return ( (this.redOffset = (e >> 16) & 255), (this.greenOffset = (e >> 8) & 255), (this.blueOffset = 255 & e), (this.redMultiplier = 0), (this.greenMultiplier = 0), (this.blueMultiplier = 0), this.get_color() ); }, __toLimeColorMatrix: function () { var e = [ this.redMultiplier, 0, 0, 0, this.redOffset / 255, 0, this.greenMultiplier, 0, 0, this.greenOffset / 255, 0, 0, this.blueMultiplier, 0, this.blueOffset / 255, 0, 0, 0, this.alphaMultiplier, this.alphaOffset / 255, ]; return null != e ? new GT(e) : null; }, getCLID: function () { return jm.__clid; }, serialize: function (e) { e.out.addInt32(bp.floatToI32(this.alphaMultiplier)), e.out.addInt32(bp.floatToI32(this.alphaOffset)), e.out.addInt32(bp.floatToI32(this.blueMultiplier)), e.out.addInt32(bp.floatToI32(this.blueOffset)), e.out.addInt32(bp.floatToI32(this.greenMultiplier)), e.out.addInt32(bp.floatToI32(this.greenOffset)), e.out.addInt32(bp.floatToI32(this.redMultiplier)), e.out.addInt32(bp.floatToI32(this.redOffset)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("alphaMultiplier"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("alphaOffset"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("blueMultiplier"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("blueOffset"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("greenMultiplier"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("greenOffset"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("redMultiplier"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("redOffset"), e.fieldsTypes.push(Ap.PFloat), (e.isFinal = mr.isClassFinal(jm.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.alphaMultiplier = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.alphaOffset = s); var n = e.input.getFloat(e.inPos); (e.inPos += 4), (this.blueMultiplier = n); var i = e.input.getFloat(e.inPos); (e.inPos += 4), (this.blueOffset = i); var r = e.input.getFloat(e.inPos); (e.inPos += 4), (this.greenMultiplier = r); var o = e.input.getFloat(e.inPos); (e.inPos += 4), (this.greenOffset = o); var a = e.input.getFloat(e.inPos); (e.inPos += 4), (this.redMultiplier = a); var l = e.input.getFloat(e.inPos); (e.inPos += 4), (this.redOffset = l); }, __class__: jm, __properties__: { set_color: "set_color", get_color: "get_color" }, }); var Km = function (e, t, s, n, i, r) { null == r && (r = 0), null == i && (i = 0), null == n && (n = 1), null == s && (s = 0), null == t && (t = 0), null == e && (e = 1), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.a = e), (this.b = t), (this.c = s), (this.d = n), (this.tx = i), (this.ty = r); }; ((s["openfl.geom.Matrix"] = Km).__name__ = ["openfl", "geom", "Matrix"]), (Km.__interfaces__ = [br]), (Km.prototype = { clone: function () { return new Km(this.a, this.b, this.c, this.d, this.tx, this.ty); }, preTransform: function (e) { (this.tx = e.tx * this.a + e.ty * this.c + this.tx), (this.ty = e.tx * this.b + e.ty * this.d + this.ty); var t = e.a * this.a + e.b * this.c; (this.c = e.c * this.a + e.d * this.c), (this.a = t); var s = e.a * this.b + e.b * this.d; (this.d = e.c * this.b + e.d * this.d), (this.b = s); }, concat: function (e) { var t = this.a * e.a + this.b * e.c; (this.b = this.a * e.b + this.b * e.d), (this.a = t); var s = this.c * e.a + this.d * e.c; (this.d = this.c * e.b + this.d * e.d), (this.c = s); var n = this.tx * e.a + this.ty * e.c + e.tx; (this.ty = this.tx * e.b + this.ty * e.d + e.ty), (this.tx = n); }, copyColumnFrom: function (e, t) { if (2 < e) throw new Mp("Column " + e + " out of bounds (2)"); 0 == e ? ((this.a = t.x), (this.c = t.y)) : 1 == e ? ((this.b = t.x), (this.d = t.y)) : ((this.tx = t.x), (this.ty = t.y)); }, copyColumnTo: function (e, t) { if (2 < e) throw new Mp("Column " + e + " out of bounds (2)"); t.z = 0 == e ? ((t.x = this.a), (t.y = this.c), 0) : 1 == e ? ((t.x = this.b), (t.y = this.d), 0) : ((t.x = this.tx), (t.y = this.ty), 1); }, copyFrom: function (e) { (this.a = e.a), (this.b = e.b), (this.c = e.c), (this.d = e.d), (this.tx = e.tx), (this.ty = e.ty); }, copyRowFrom: function (e, t) { if (2 < e) throw new Mp("Row " + e + " out of bounds (2)"); 0 == e ? ((this.a = t.x), (this.c = t.y)) : 1 == e ? ((this.b = t.x), (this.d = t.y)) : ((this.tx = t.x), (this.ty = t.y)); }, copyRowTo: function (e, t) { if (2 < e) throw new Mp("Row " + e + " out of bounds (2)"); 0 == e ? ((t.x = this.a), (t.y = this.b), (t.z = this.tx)) : 1 == e ? ((t.x = this.c), (t.y = this.d), (t.z = this.ty)) : t.setTo(0, 0, 1); }, createBox: function (e, t, s, n, i) { if ( (null == i && (i = 0), null == n && (n = 0), null == s && (s = 0), 0 != s) ) { var r = Math.cos(s), o = Math.sin(s); (this.a = r * e), (this.b = o * t), (this.c = -o * e), (this.d = r * t); } else (this.a = e), (this.b = 0), (this.c = 0), (this.d = t); (this.tx = n), (this.ty = i); }, createGradientBox: function (e, t, s, n, i) { if ( (null == i && (i = 0), null == n && (n = 0), null == s && (s = 0), (this.a = e / 1638.4), (this.d = t / 1638.4), 0 != s) ) { var r = Math.cos(s), o = Math.sin(s); (this.b = o * this.d), (this.c = -o * this.a), (this.a *= r), (this.d *= r); } else (this.b = 0), (this.c = 0); (this.tx = n + e / 2), (this.ty = i + t / 2); }, deltaTransformPoint: function (e) { return new qm(e.x * this.a + e.y * this.c, e.x * this.b + e.y * this.d); }, equals: function (e) { return ( null != e && this.tx == e.tx && this.ty == e.ty && this.a == e.a && this.b == e.b && this.c == e.c && this.d == e.d ); }, identity: function () { (this.a = 1), (this.b = 0), (this.c = 0), (this.d = 1), (this.tx = 0), (this.ty = 0); }, invert: function () { var e = this.a * this.d - this.b * this.c; if (0 == e) (this.a = this.b = this.c = this.d = 0), (this.tx = -this.tx), (this.ty = -this.ty); else { e = 1 / e; var t = this.d * e; (this.d = this.a * e), (this.a = t), (this.b *= -e), (this.c *= -e); var s = -this.a * this.tx - this.c * this.ty; (this.ty = -this.b * this.tx - this.d * this.ty), (this.tx = s); } return this; }, rotate: function (e) { var t = Math.cos(e), s = Math.sin(e), n = this.a * t - this.b * s; (this.b = this.a * s + this.b * t), (this.a = n); var i = this.c * t - this.d * s; (this.d = this.c * s + this.d * t), (this.c = i); var r = this.tx * t - this.ty * s; (this.ty = this.tx * s + this.ty * t), (this.tx = r); }, scale: function (e, t) { (this.a *= e), (this.b *= t), (this.c *= e), (this.d *= t), (this.tx *= e), (this.ty *= t); }, setRotation: function (e, t) { null == t && (t = 1), (this.a = Math.cos(e) * t), (this.c = Math.sin(e) * t), (this.b = -this.c), (this.d = this.a); }, setTo: function (e, t, s, n, i, r) { (this.a = e), (this.b = t), (this.c = s), (this.d = n), (this.tx = i), (this.ty = r); }, to3DString: function (e) { return ( null == e && (e = !1), e ? "matrix3d(" + this.a + ", " + this.b + ", 0, 0, " + this.c + ", " + this.d + ", 0, 0, 0, 0, 1, 0, " + (0 | this.tx) + ", " + (0 | this.ty) + ", 0, 1)" : "matrix3d(" + this.a + ", " + this.b + ", 0, 0, " + this.c + ", " + this.d + ", 0, 0, 0, 0, 1, 0, " + this.tx + ", " + this.ty + ", 0, 1)" ); }, toMozString: function () { return ( "matrix(" + this.a + ", " + this.b + ", " + this.c + ", " + this.d + ", " + this.tx + "px, " + this.ty + "px)" ); }, toString: function () { return ( "matrix(" + this.a + ", " + this.b + ", " + this.c + ", " + this.d + ", " + this.tx + ", " + this.ty + ")" ); }, transformPoint: function (e) { return new qm( e.x * this.a + e.y * this.c + this.tx, e.x * this.b + e.y * this.d + this.ty ); }, translate: function (e, t) { (this.tx += e), (this.ty += t); }, toArray: function (e) { if ((null == e && (e = !1), null == this.__array)) { var t = new GT(9); this.__array = t; } return ( (this.__array[8] = ((this.__array[7] = e ? ((this.__array[0] = this.a), (this.__array[1] = this.b), (this.__array[2] = 0), (this.__array[3] = this.c), (this.__array[4] = this.d), (this.__array[5] = 0), (this.__array[6] = this.tx), this.ty) : ((this.__array[0] = this.a), (this.__array[1] = this.c), (this.__array[2] = this.tx), (this.__array[3] = this.b), (this.__array[4] = this.d), (this.__array[5] = this.ty), (this.__array[6] = 0))), 1)), this.__array ); }, __cleanValues: function () { (this.a = Math.round(1e3 * this.a) / 1e3), (this.b = Math.round(1e3 * this.b) / 1e3), (this.c = Math.round(1e3 * this.c) / 1e3), (this.d = Math.round(1e3 * this.d) / 1e3), (this.tx = Math.round(10 * this.tx) / 10), (this.ty = Math.round(10 * this.ty) / 10); }, __toMatrix3: function () { return new qb(this.a, this.b, this.c, this.d, this.tx, this.ty); }, __transformInversePoint: function (e) { var t = this.a * this.d - this.b * this.c; if (0 == t) (e.x = -this.tx), (e.y = -this.ty); else { var s = (1 / t) * (this.c * (this.ty - e.y) + this.d * (e.x - this.tx)); (e.y = (1 / t) * (this.a * (e.y - this.ty) + this.b * (this.tx - e.x))), (e.x = s); } }, __transformInverseX: function (e, t) { var s = this.a * this.d - this.b * this.c; return 0 == s ? -this.tx : (1 / s) * (this.c * (this.ty - t) + this.d * (e - this.tx)); }, __transformInverseY: function (e, t) { var s = this.a * this.d - this.b * this.c; return 0 == s ? -this.ty : (1 / s) * (this.a * (t - this.ty) + this.b * (this.tx - e)); }, __transformPoint: function (e) { var t = e.x, s = e.y; (e.x = t * this.a + s * this.c + this.tx), (e.y = t * this.b + s * this.d + this.ty); }, __transformX: function (e, t) { return e * this.a + t * this.c + this.tx; }, __transformY: function (e, t) { return e * this.b + t * this.d + this.ty; }, __translateTransformed: function (e, t) { (this.tx = e * this.a + t * this.c + this.tx), (this.ty = e * this.b + t * this.d + this.ty); }, getCLID: function () { return Km.__clid; }, serialize: function (e) { e.out.addInt32(bp.floatToI32(this.a)), e.out.addInt32(bp.floatToI32(this.b)), e.out.addInt32(bp.floatToI32(this.c)), e.out.addInt32(bp.floatToI32(this.d)), e.out.addInt32(bp.floatToI32(this.tx)), e.out.addInt32(bp.floatToI32(this.ty)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("a"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("b"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("c"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("d"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("tx"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("ty"), e.fieldsTypes.push(Ap.PFloat), (e.isFinal = mr.isClassFinal(Km.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.a = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.b = s); var n = e.input.getFloat(e.inPos); (e.inPos += 4), (this.c = n); var i = e.input.getFloat(e.inPos); (e.inPos += 4), (this.d = i); var r = e.input.getFloat(e.inPos); (e.inPos += 4), (this.tx = r); var o = e.input.getFloat(e.inPos); (e.inPos += 4), (this.ty = o); }, __class__: Km, }); var qm = function (e, t) { null == t && (t = 0), null == e && (e = 0), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.x = e), (this.y = t); }; ((s["openfl.geom.Point"] = qm).__name__ = ["openfl", "geom", "Point"]), (qm.__interfaces__ = [br]), (qm.squareDistance = function (e, t) { var s = e.x - t.x, n = e.y - t.y; return s * s + n * n; }), (qm.distance = function (e, t) { var s = e.x - t.x, n = e.y - t.y; return Math.sqrt(s * s + n * n); }), (qm.interpolate = function (e, t, s) { return new qm(t.x + s * (e.x - t.x), t.y + s * (e.y - t.y)); }), (qm.polar = function (e, t) { return new qm(e * Math.cos(t), e * Math.sin(t)); }), (qm.prototype = { add: function (e) { return new qm(e.x + this.x, e.y + this.y); }, clone: function () { return new qm(this.x, this.y); }, copyFrom: function (e) { (this.x = e.x), (this.y = e.y); }, equals: function (e) { return null != e && e.x == this.x && e.y == this.y; }, normalize: function (e) { if (0 != this.x || 0 != this.y) { var t = e / Math.sqrt(this.x * this.x + this.y * this.y); (this.x *= t), (this.y *= t); } }, offset: function (e, t) { (this.x += e), (this.y += t); }, setTo: function (e, t) { (this.x = e), (this.y = t); }, subtract: function (e) { return new qm(this.x - e.x, this.y - e.y); }, toString: function () { return "(x=" + this.x + ", y=" + this.y + ")"; }, __toLimeVector2: function () { return new Qb(this.x, this.y); }, get_length: function () { return Math.sqrt(this.x * this.x + this.y * this.y); }, getCLID: function () { return qm.__clid; }, serialize: function (e) { e.out.addInt32(bp.floatToI32(this.x)), e.out.addInt32(bp.floatToI32(this.y)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("x"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("y"), e.fieldsTypes.push(Ap.PFloat), (e.isFinal = mr.isClassFinal(qm.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.x = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.y = s); }, __class__: qm, __properties__: { get_length: "get_length" }, }); var Zm = function () {}; ((s["openfl.Lib"] = Zm).__name__ = ["openfl", "Lib"]), (Zm.application = null), (Zm.as = function (e, t) { return Lp.__instanceof(e, t) ? e : null; }), (Zm.attach = function (e) { return new d(); }), (Zm.embed = e.openfl.embed = function (e, t, s, n, i) { cm.embed(e, t, s, n, i); }), (Zm.getTimer = function () { return Date.now(); }), (Zm.getURL = function (e, t) { null == t && (t = "_blank"), window.open(e.url, t); }), (Zm.notImplemented = function (e) { var t = Zm.__sentWarnings; if (!(null != NT[e] ? t.existsReserved(e) : t.h.hasOwnProperty(e))) { var s = Zm.__sentWarnings; null != NT[e] ? s.setReserved(e, !0) : (s.h[e] = !0), Zf.trace("Warning: " + e + " is not implemented", { fileName: "Lib.hx", lineNumber: 113, className: "openfl.Lib", methodName: "notImplemented", }); } }), (Zm.preventDefaultTouchMove = function () { window.document.addEventListener( "touchmove", function (e) { e.preventDefault(); }, !1 ); }), (Zm.trace = function (e) { Zf.trace(e, { fileName: "Lib.hx", lineNumber: 144, className: "openfl.Lib", methodName: "trace", }); }); var Jm = {}; ((s["openfl._Vector.Vector_Impl_"] = Jm).__name__ = [ "openfl", "_Vector", "Vector_Impl_", ]), (Jm.__properties__ = { set_fixed: "set_fixed", get_fixed: "get_fixed", set_length: "set_length", get_length: "get_length", }), (Jm._new = function (e, t) { null == t && (t = !1), null == e && (e = 0); var s = new ha(), n = new Array(e); return (s.data = n), (s.length = e), (s.fixed = t), s; }), (Jm.concat = function (e, t) { var s = new ha(); (s.length = null != t ? e.length + t.length : e.length), (s.fixed = !1); var n = s.length, i = new Array(n); return ( (s.data = i), dp.blit(e.data, 0, s.data, 0, e.length), null != t && dp.blit(t.data, 0, s.data, e.length, t.length), s ); }), (Jm.copy = function (e) { var t = new ha(); (t.length = e.length), (t.fixed = e.fixed); var s = e.length, n = new Array(s); return (t.data = n), dp.blit(e.data, 0, t.data, 0, e.length), t; }), (Jm.iterator = function (e) { return new Qm(e); }), (Jm.join = function (e, t) { for (var s = "", n = 0, i = e.length; n < i; ) { var r = n++; 0 < r && (s += t), (s += Ue.string(e.data[r])); } return s; }), (Jm.pop = function (e) { var t = null; return ( e.fixed || (0 < e.length && (e.length--, (t = e.data[e.length]))), t ); }), (Jm.push = function (e, t) { if (!e.fixed) { if ((e.length++, e.data.length < e.length)) { var s = e.data.length + 10, n = new Array(s); dp.blit(e.data, 0, n, 0, e.data.length), (e.data = n); } e.data[e.length - 1] = t; } return e.length; }), (Jm.reverse = function (e) { for (var t = e.length, s = new Array(t), n = 0, i = e.length; n < i; ) { var r = n++; s[e.length - 1 - r] = e.data[r]; } e.data = s; }), (Jm.shift = function (e) { if (!e.fixed && 0 < e.length) { e.length--; var t = e.data[0]; return dp.blit(e.data, 1, e.data, 0, e.length), t; } return null; }), (Jm.unshift = function (e, t) { if (!e.fixed) { if ((e.length++, e.data.length < e.length)) { var s = e.length + 10, n = new Array(s); dp.blit(e.data, 0, n, 1, e.data.length), (e.data = n); } else dp.blit(e.data, 0, e.data, 1, e.length - 1); e.data[0] = t; } }), (Jm.slice = function (e, t, s) { null == s && (s = 0), null == t && (t = 0), t < 0 && (t += e.length), s <= 0 && (s += e.length), s > e.length && (s = e.length); var n = s - t; (n <= 0 || n > e.length) && (n = e.length); var i = new ha(); (i.length = s - t), (i.fixed = !0); var r = new Array(n); return (i.data = r), dp.blit(e.data, t, i.data, 0, n), i; }), (Jm.sort = function (e, t) { var s = e.data.slice(0); s.sort(t), (e.data = s.slice(0)); }), (Jm.splice = function (e, t, s) { t < 0 && (t += e.length), t + s > e.length && (s = e.length - t), s < 0 && (s = 0); var n = new ha(); (n.length = s), (n.fixed = !1); var i = new Array(s); return ( (n.data = i), dp.blit(e.data, t, n.data, 0, s), 0 < s && ((e.length -= s), dp.blit(e.data, t + s, e.data, t, e.length - t)), n ); }), (Jm.toString = function (e) { return e.data.slice(0).toString(); }), (Jm.indexOf = function (e, t, s) { null == s && (s = 0); for (var n = -1, i = s, r = e.length; i < r; ) { var o = i++; if (e.data[o] == t) { n = o; break; } } return n; }), (Jm.lastIndexOf = function (e, t, s) { null == s && (s = 0); for (var n = -1, i = e.length - 1; s <= i; ) { if (e.data[i] == t) { n = i; break; } --i; } return n; }), (Jm.ofArray = function (e) { var t = new ha(); return (t.length = e.length), (t.fixed = !0), (t.data = e.slice(0)), t; }), (Jm.convert = function (e) { return e; }), (Jm.get = function (e, t) { return e.data[t]; }), (Jm.set = function (e, t, s) { if ( !e.fixed && (t >= e.length && (e.length = t + 1), e.data.length < e.length) ) { var n = e.data.length + 10, i = new Array(n); dp.blit(e.data, 0, i, 0, e.data.length), (e.data = i); } return (e.data[t] = s); }), (Jm.fromArray = function (e) { var t = new ha(); return (t.length = e.length), (t.fixed = !0), (t.data = e.slice(0)), t; }), (Jm.toArray = function (e) { for (var t = [], s = 0, n = e.data.length; s < n; ) { var i = s++; t.push(e.data[i]); } return t; }), (Jm.fromHaxeVector = function (e) { var t = new ha(); return (t.length = e.length), (t.fixed = !0), (t.data = e), t; }), (Jm.toHaxeVector = function (e) { return e.data; }), (Jm.fromVectorData = function (e) { return e; }), (Jm.toVectorData = function (e) { return e; }), (Jm.get_length = function (e) { return e.length; }), (Jm.set_length = function (e, t) { if (!e.fixed) { if (t > e.length) { var s = new Array(t); dp.blit(e.data, 0, s, 0, 0 | Math.min(e.data.length, t)), (e.data = s); } e.length = t; } return t; }), (Jm.get_fixed = function (e) { return e.fixed; }), (Jm.set_fixed = function (e, t) { return (e.fixed = t); }); var Qm = function (e) { (this.index = 0), (this.vectorData = e); }; ((s["openfl.VectorDataIterator"] = Qm).__name__ = [ "openfl", "VectorDataIterator", ]), (Qm.prototype = { hasNext: function () { return this.index < this.vectorData.length; }, next: function () { return this.vectorData.data[this.index++]; }, __class__: Qm, }); var $m = function (e) { this.renderSession = e; }; ((s["openfl._internal.renderer.AbstractMaskManager"] = $m).__name__ = [ "openfl", "_internal", "renderer", "AbstractMaskManager", ]), ($m.prototype = { pushMask: function (e) {}, pushRect: function (e, t) {}, popMask: function () {}, popRect: function () {}, saveState: function () {}, restoreState: function () {}, __class__: $m, }); var eg = function (e, t) { (this.width = e), (this.height = t); }; ((s["openfl._internal.renderer.AbstractRenderer"] = eg).__name__ = [ "openfl", "_internal", "renderer", "AbstractRenderer", ]), (eg.prototype = { render: function (e) {}, renderShape: function (e) {}, setViewport: function (e, t, s, n, i) { null == i && (i = !1); }, resize: function (e, t) {}, __class__: eg, }); var tg = function () { this.__uid = (mr.SEQ << 24) | ++mr.UID; var e = new Ge(); (e._items = []), (e._length = e._items.length), (this.cf = e); var t = new Ge(); (t._items = []), (t._length = t._items.length), (this.bd = t); var s = new Ge(); (s._items = []), (s._length = s._items.length), (this.bd_ids = s); var n = new Ge(); (n._items = []), (n._length = n._items.length), (this.vi = n); var i = new Ge(); (i._items = []), (i._length = i._items.length), (this.vf = i); var r = new Ge(); (r._items = []), (r._length = r._items.length), (this.m = r); var o = new Ge(); (o._items = []), (o._length = o._items.length), (this.ii = o); var a = new Ge(); (a._items = []), (a._length = a._items.length), (this.i = a); var l = new Ge(); (l._items = []), (l._length = l._items.length), (this.ff = l); var h = new Ge(); (h._items = []), (h._length = h._items.length), (this.t = h); var _ = new Ge(); (_._items = []), (_._length = _._items.length), (this.b = _); var u = new Ge(); (u._items = []), (u._length = u._items.length), (this.types = u); }; ((s["openfl._internal.renderer.DrawCommandBuffer"] = tg).__name__ = [ "openfl", "_internal", "renderer", "DrawCommandBuffer", ]), (tg.__interfaces__ = [br]), (tg.bitmapOverride = null), (tg.prototype = { pushClampedFloat: function (e) { var t = this.cf; t._items[t._length++] = (255 * e) | 0; }, pushTwip: function (e) { var t = this.t; t._items[t._length++] = (20 * e) | 0; }, append: function (e) { for (var t = new sg(e), s = 0, n = e.types; s < n._length; ) { var i = s >= n._length ? null : n._items[s]; switch ((++s, i)) { case 0: t.advance(), (t.prev = 0); var r = t, o = r.buffer.bd, a = r.bdPos, l = r.buffer.m, h = r.mPos, _ = r.buffer.b, u = r.bPos, d = r.buffer.b, c = r.bPos + 1; this.beginBitmapFill( a >= o._length ? null : o._items[a], h >= l._length ? null : l._items[h], u >= _._length ? null : _._items[u], c >= d._length ? null : d._items[c] ); break; case 1: t.advance(), (t.prev = 1); var f = t, p = f.buffer.i, b = f.iPos; this.beginFill( b >= p._length ? null : p._items[b], f.buffer.clampedFloats[f.cfPos] / 255 ); break; case 2: t.advance(), (t.prev = 2); var m = t, g = m.buffer.i, w = m.iPos, v = m.buffer.ii, y = m.iiPos, T = m.buffer.ff, S = m.ffPos, x = m.buffer.ii, E = m.iiPos + 1, P = m.buffer.m, R = m.mPos, A = m.buffer.i, I = m.iPos + 1, C = m.buffer.i, B = m.iPos + 2; this.beginGradientFill( w >= g._length ? null : g._items[w], y >= v._length ? null : v._items[y], S >= T._length ? null : T._items[S], E >= x._length ? null : x._items[E], R >= P._length ? null : P._items[R], I >= A._length ? null : A._items[I], B >= C._length ? null : C._items[B], m.buffer.twips[m.fPos] / 20 ); break; case 3: t.advance(), (t.prev = 3); var D = t; this.cubicCurveTo( D.buffer.twips[D.fPos] / 20, D.buffer.twips[D.fPos + 1] / 20, D.buffer.twips[D.fPos + 2] / 20, D.buffer.twips[D.fPos + 3] / 20, D.buffer.twips[D.fPos + 4] / 20, D.buffer.twips[D.fPos + 5] / 20 ); break; case 4: t.advance(), (t.prev = 4); var k = t; this.curveTo( k.buffer.twips[k.fPos] / 20, k.buffer.twips[k.fPos + 1] / 20, k.buffer.twips[k.fPos + 2] / 20, k.buffer.twips[k.fPos + 3] / 20 ); break; case 5: t.advance(), (t.prev = 5); var F = t; this.drawCircle( F.buffer.twips[F.fPos] / 20, F.buffer.twips[F.fPos + 1] / 20, F.buffer.twips[F.fPos + 2] / 20 ); break; case 6: t.advance(), (t.prev = 6); var M = t; this.drawArc( M.buffer.twips[M.fPos] / 20, M.buffer.twips[M.fPos + 1] / 20, M.buffer.twips[M.fPos + 2] / 20, M.buffer.twips[M.fPos + 3] / 20, M.buffer.twips[M.fPos + 4] / 20 ); break; case 7: t.advance(), (t.prev = 7); var L = t; this.drawEllipse( L.buffer.twips[L.fPos] / 20, L.buffer.twips[L.fPos + 1] / 20, L.buffer.twips[L.fPos + 2] / 20, L.buffer.twips[L.fPos + 3] / 20 ); break; case 8: t.advance(), (t.prev = 8); var N = t, O = N.buffer.bd, U = N.bdPos, G = N.buffer.m, z = N.mPos, X = N.buffer.b, H = N.bPos; this.drawImage( U >= O._length ? null : O._items[U], z >= G._length ? null : G._items[z], H >= X._length ? null : X._items[H] ); break; case 9: t.advance(), (t.prev = 9); var V = t, Y = V.buffer.vi, W = V.viPos, j = V.buffer.vf, K = V.vfPos, q = V.buffer.i, Z = V.iPos; this.drawPath( W >= Y._length ? null : Y._items[W], K >= j._length ? null : j._items[K], Z >= q._length ? null : q._items[Z] ); break; case 10: t.advance(), (t.prev = 10); var J = t; this.drawRect( J.buffer.twips[J.fPos] / 20, J.buffer.twips[J.fPos + 1] / 20, J.buffer.twips[J.fPos + 2] / 20, J.buffer.twips[J.fPos + 3] / 20 ); break; case 11: t.advance(), (t.prev = 11); var Q = t; this.drawRoundRect( Q.buffer.twips[Q.fPos] / 20, Q.buffer.twips[Q.fPos + 1] / 20, Q.buffer.twips[Q.fPos + 2] / 20, Q.buffer.twips[Q.fPos + 3] / 20, Q.buffer.twips[Q.fPos + 4] / 20, Q.buffer.twips[Q.fPos + 5] / 20 ); break; case 13: t.advance(), (t.prev = 13); var $ = t, ee = $.buffer.vf, te = $.vfPos, se = $.buffer.vi, ne = $.viPos + 1, ie = $.buffer.vf, re = $.vfPos + 2, oe = $.buffer.i, ae = $.iPos + 3; this.drawTriangles( te >= ee._length ? null : ee._items[te], ne >= se._length ? null : se._items[ne], re >= ie._length ? null : ie._items[re], ae >= oe._length ? null : oe._items[ae] ); break; case 14: t.advance(), (t.prev = 14); this.endFill(); break; case 15: t.advance(), (t.prev = 15); var le = t, he = le.buffer.bd, _e = le.bdPos, ue = le.buffer.m, de = le.mPos, ce = le.buffer.b, fe = le.bPos, pe = le.buffer.b, be = le.bPos + 1; this.lineBitmapStyle( _e >= he._length ? null : he._items[_e], de >= ue._length ? null : ue._items[de], fe >= ce._length ? null : ce._items[fe], be >= pe._length ? null : pe._items[be] ); break; case 16: t.advance(), (t.prev = 16); var me = t, ge = me.buffer.i, we = me.iPos, ve = me.buffer.ii, ye = me.iiPos, Te = me.buffer.ff, Se = me.ffPos, xe = me.buffer.ii, Ee = me.iiPos + 1, Pe = me.buffer.m, Re = me.mPos, Ae = me.buffer.i, Ie = me.iPos + 1, Ce = me.buffer.i, Be = me.iPos + 2; this.lineGradientStyle( we >= ge._length ? null : ge._items[we], ye >= ve._length ? null : ve._items[ye], Se >= Te._length ? null : Te._items[Se], Ee >= xe._length ? null : xe._items[Ee], Re >= Pe._length ? null : Pe._items[Re], Ie >= Ae._length ? null : Ae._items[Ie], Be >= Ce._length ? null : Ce._items[Be], me.buffer.twips[me.fPos] / 20 ); break; case 17: t.advance(), (t.prev = 17); var De = t, ke = De.buffer.i, Fe = De.iPos, Me = De.buffer.b, Le = De.bPos, Ne = De.buffer.i, Oe = De.iPos + 1, Ue = De.buffer.i, Ge = De.iPos + 2, ze = De.buffer.i, Xe = De.iPos + 3; this.lineStyle( De.buffer.twips[De.fPos] / 20, Fe >= ke._length ? null : ke._items[Fe], De.buffer.clampedFloats[De.cfPos] / 255, Le >= Me._length ? null : Me._items[Le], Oe >= Ne._length ? null : Ne._items[Oe], Ge >= Ue._length ? null : Ue._items[Ge], Xe >= ze._length ? null : ze._items[Xe], De.buffer.twips[De.fPos + 1] / 20 ); break; case 18: t.advance(), (t.prev = 18); var He = t; this.lineTo( He.buffer.twips[He.fPos] / 20, He.buffer.twips[He.fPos + 1] / 20 ); break; case 19: t.advance(), (t.prev = 19); var Ve = t; this.moveTo( Ve.buffer.twips[Ve.fPos] / 20, Ve.buffer.twips[Ve.fPos + 1] / 20 ); break; case 20: t.advance(), (t.prev = 20); var Ye = t, We = Ye.buffer.m, je = Ye.mPos; this.overrideMatrix(je >= We._length ? null : We._items[je]); } } return t.destroy(), e; }, beginBitmapFill: function (e, t, s, n) { var i = this.types; i._items[i._length++] = 0; var r = this.bd; r._items[r._length++] = e; var o = this.m; o._items[o._length++] = t; var a = this.b; a._items[a._length++] = s; var l = this.b; l._items[l._length++] = n; }, beginBitmapFillWithId: function (e, t, s, n) { var i = this.types; i._items[i._length++] = 0; var r = this.bd_ids; r._items[r._length++] = e; var o = this.m; o._items[o._length++] = t; var a = this.b; a._items[a._length++] = s; var l = this.b; l._items[l._length++] = n; }, beginFill: function (e, t) { var s = this.types; s._items[s._length++] = 1; var n = this.i; n._items[n._length++] = e; var i = this.cf; i._items[i._length++] = (255 * t) | 0; }, beginGradientFill: function (e, t, s, n, i, r, o, a) { var l = this.types; l._items[l._length++] = 2; var h = this.i; h._items[h._length++] = e; var _ = this.ii; _._items[_._length++] = t; var u = this.ff; u._items[u._length++] = s; var d = this.ii; d._items[d._length++] = n; var c = this.m; c._items[c._length++] = i; var f = this.i; f._items[f._length++] = r; var p = this.i; p._items[p._length++] = o; var b = this.t; b._items[b._length++] = (20 * a) | 0; }, clear: function () { for (var e = this.types, t = 0, s = e._length; t < s; ) { var n = t++; e._items[n] = null; } e._length = 0; for (var i = this.b, r = 0, o = i._length; r < o; ) { var a = r++; i._items[a] = null; } i._length = 0; for (var l = this.i, h = 0, _ = l._length; h < _; ) { var u = h++; l._items[u] = null; } l._length = 0; for (var d = this.t, c = 0, f = d._length; c < f; ) { var p = c++; d._items[p] = null; } d._length = 0; for (var b = this.m, m = 0, g = b._length; m < g; ) { var w = m++; b._items[w] = null; } b._length = 0; for (var v = this.vi, y = 0, T = v._length; y < T; ) { var S = y++; v._items[S] = null; } v._length = 0; for (var x = this.vf, E = 0, P = x._length; E < P; ) { var R = E++; x._items[R] = null; } x._length = 0; for (var A = this.bd_ids, I = 0, C = A._length; I < C; ) { var B = I++; A._items[B] = null; } A._length = 0; for (var D = this.ff, k = 0, F = D._length; k < F; ) { var M = k++; D._items[M] = null; } D._length = 0; for (var L = this.ii, N = 0, O = L._length; N < O; ) { var U = N++; L._items[U] = null; } L._length = 0; for (var G = this.bd, z = 0, X = G._length; z < X; ) { var H = z++; G._items[H] = null; } G._length = 0; for (var V = this.cf, Y = 0, W = V._length; Y < W; ) { var j = Y++; V._items[j] = null; } (V._length = 0), (this.drawCommandTypes = null), (this.floats = null), (this.clampedFloats = null), (this.twips = null); }, copy: function () { var e = new tg(); return e.append(this), e; }, cubicCurveTo: function (e, t, s, n, i, r) { var o = this.types; o._items[o._length++] = 3; var a = this.t; a._items[a._length++] = (20 * e) | 0; var l = this.t; l._items[l._length++] = (20 * t) | 0; var h = this.t; h._items[h._length++] = (20 * s) | 0; var _ = this.t; _._items[_._length++] = (20 * n) | 0; var u = this.t; u._items[u._length++] = (20 * i) | 0; var d = this.t; d._items[d._length++] = (20 * r) | 0; }, curveTo: function (e, t, s, n) { var i = this.types; i._items[i._length++] = 4; var r = this.t; r._items[r._length++] = (20 * e) | 0; var o = this.t; o._items[o._length++] = (20 * t) | 0; var a = this.t; a._items[a._length++] = (20 * s) | 0; var l = this.t; l._items[l._length++] = (20 * n) | 0; }, destroy: function () { this.clear(), (this.types = null), (this.b = null), (this.i = null), (this.t = null), (this.ff = null), (this.ii = null), (this.m = null), (this.vf = null), (this.vi = null), (this.bd_ids = null); }, drawCircle: function (e, t, s) { var n = this.types; n._items[n._length++] = 5; var i = this.t; i._items[i._length++] = (20 * e) | 0; var r = this.t; r._items[r._length++] = (20 * t) | 0; var o = this.t; o._items[o._length++] = (20 * s) | 0; }, drawArc: function (e, t, s, n, i) { var r = this.types; r._items[r._length++] = 6; var o = this.t; o._items[o._length++] = (20 * e) | 0; var a = this.t; a._items[a._length++] = (20 * t) | 0; var l = this.t; l._items[l._length++] = (20 * s) | 0; var h = this.t; h._items[h._length++] = (20 * n) | 0; var _ = this.t; _._items[_._length++] = (20 * i) | 0; }, drawEllipse: function (e, t, s, n) { var i = this.types; i._items[i._length++] = 7; var r = this.t; r._items[r._length++] = (20 * e) | 0; var o = this.t; o._items[o._length++] = (20 * t) | 0; var a = this.t; a._items[a._length++] = (20 * s) | 0; var l = this.t; l._items[l._length++] = (20 * n) | 0; }, drawImage: function (e, t, s) { var n = this.types; n._items[n._length++] = 8; var i = this.bd; i._items[i._length++] = e; var r = this.m; r._items[r._length++] = t; var o = this.b; o._items[o._length++] = s; }, drawImageWithId: function (e, t, s) { var n = this.types; n._items[n._length++] = 8; var i = this.bd_ids; i._items[i._length++] = e; var r = this.m; r._items[r._length++] = t; var o = this.b; o._items[o._length++] = s; }, drawPath: function (e, t, s) { throw new Mp("Unsupported drawPath"); }, drawRect: function (e, t, s, n) { var i = this.types; i._items[i._length++] = 10; var r = this.t; r._items[r._length++] = (20 * e) | 0; var o = this.t; o._items[o._length++] = (20 * t) | 0; var a = this.t; a._items[a._length++] = (20 * s) | 0; var l = this.t; l._items[l._length++] = (20 * n) | 0; }, drawRoundRect: function (e, t, s, n, i, r) { var o = this.types; o._items[o._length++] = 11; var a = this.t; a._items[a._length++] = (20 * e) | 0; var l = this.t; l._items[l._length++] = (20 * t) | 0; var h = this.t; h._items[h._length++] = (20 * s) | 0; var _ = this.t; _._items[_._length++] = (20 * n) | 0; var u = this.t; u._items[u._length++] = (20 * i) | 0; var d = this.t; d._items[d._length++] = (20 * r) | 0; }, drawTriangles: function (e, t, s, n) { throw new Mp("Unsupported drawTriangles"); }, endFill: function () { var e = this.types; e._items[e._length++] = 14; }, lineBitmapStyle: function (e, t, s, n) { var i = this.types; i._items[i._length++] = 15; var r = this.bd; r._items[r._length++] = e; var o = this.m; o._items[o._length++] = t; var a = this.b; a._items[a._length++] = s; var l = this.b; l._items[l._length++] = n; }, lineBitmapStyleWithId: function (e, t, s, n) { var i = this.types; i._items[i._length++] = 15; var r = this.bd_ids; r._items[r._length++] = e; var o = this.m; o._items[o._length++] = t; var a = this.b; a._items[a._length++] = s; var l = this.b; l._items[l._length++] = n; }, lineGradientStyle: function (e, t, s, n, i, r, o, a) { var l = this.types; l._items[l._length++] = 16; var h = this.i; h._items[h._length++] = e; var _ = this.ii; _._items[_._length++] = t; var u = this.ff; u._items[u._length++] = s; var d = this.ii; d._items[d._length++] = n; var c = this.m; c._items[c._length++] = i; var f = this.i; f._items[f._length++] = r; var p = this.i; p._items[p._length++] = o; var b = this.t; b._items[b._length++] = (20 * a) | 0; }, lineStyle: function (e, t, s, n, i, r, o, a) { var l = this.types; l._items[l._length++] = 17; var h = this.t; h._items[h._length++] = (20 * (null == e ? -1 : e)) | 0; var _ = this.i; _._items[_._length++] = t; var u = this.cf; u._items[u._length++] = (255 * s) | 0; var d = this.b; d._items[d._length++] = n; var c = this.i; (c._items[c._length++] = i), null == r && (r = 1); var f = this.i; (f._items[f._length++] = r), null == o && (o = 2); var p = this.i; p._items[p._length++] = o; var b = this.t; b._items[b._length++] = (20 * a) | 0; }, lineTo: function (e, t) { var s = this.types; s._items[s._length++] = 18; var n = this.t; n._items[n._length++] = (20 * e) | 0; var i = this.t; i._items[i._length++] = (20 * t) | 0; }, moveTo: function (e, t) { var s = this.types; s._items[s._length++] = 19; var n = this.t; n._items[n._length++] = (20 * e) | 0; var i = this.t; i._items[i._length++] = (20 * t) | 0; }, overrideMatrix: function (e) { var t = this.types; t._items[t._length++] = 20; var s = this.m; s._items[s._length++] = e; }, get_length: function () { return this.validate(), this.drawCommandTypes.length; }, resolveBitmapDatas: function (e) { var t = new Ge(); (t._items = []), (t._length = t._items.length), (this.bd = t); for (var s = 0, n = this.bd_ids._length; s < n; ) { var i, r = s++; if (null != tg.bitmapOverride) { var o = this.bd_ids; i = tg.bitmapOverride.h.hasOwnProperty( r >= o._length ? null : o._items[r] ); } else i = !1; if (i) { var a = this.bd, l = this.bd_ids, h = Wm.getBitmapData( tg.bitmapOverride.h[r >= l._length ? null : l._items[r]] ); a._items[a._length++] = h; } else { var _ = this.bd_ids, u = e.symbols.h[r >= _._length ? null : _._items[r]]; if (null != u) { var d = this.bd, c = sw.getFromSymbol(u); d._items[d._length++] = c; } else { var f = this.bd; f._items[f._length++] = null; } } } }, validate: function () { null == this.drawCommandTypes && ((this.drawCommandTypes = vp.fromArray(this.types._items)), (this.clampedFloats = vp.fromArray(this.cf._items)), (this.twips = mp.fromArray(this.t._items))); }, needsHighPrecision: function () { for (var e = 0, t = this.twips.length; e < t; ) { var s = e++; if (this.twips[s] < -32768 || 32767 < this.twips[s]) return !0; } return !1; }, customSerialize: function (e) { this.validate(); var t = Lf.ofData(this.drawCommandTypes.buffer); if (null == t) e.out.b.push(0); else { var s = t.length + 1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); for (var n = e.out, i = (n.b, t.b), r = 0, o = t.length; r < o; ) { var a = r++; n.b.push(i[a]); } } var l = this.b._items; if (null == l) e.out.b.push(0); else { var h = l.length + 1; 0 <= h && h < 128 ? e.out.b.push(h) : (e.out.b.push(128), e.out.addInt32(h)); for (var _ = 0; _ < l.length; ) { var u = l[_]; ++_, e.out.b.push(u ? 1 : 0); } } var d = this.i._items; if (null == d) e.out.b.push(0); else { var c = d.length + 1; 0 <= c && c < 128 ? e.out.b.push(c) : (e.out.b.push(128), e.out.addInt32(c)); for (var f = 0; f < d.length; ) { var p = d[f]; ++f, 0 <= p && p < 128 ? e.out.b.push(p) : (e.out.b.push(128), e.out.addInt32(p)); } } if (this.needsHighPrecision()) { e.out.b.push(1); var b = Lf.ofData(this.twips.buffer); if (null == b) e.out.b.push(0); else { var m = b.length + 1; 0 <= m && m < 128 ? e.out.b.push(m) : (e.out.b.push(128), e.out.addInt32(m)); for (var g = e.out, w = (g.b, b.b), v = 0, y = b.length; v < y; ) { var T = v++; g.b.push(w[T]); } } } else { e.out.b.push(0); for ( var S = new Uint16Array(this.twips.length), x = 0, E = this.twips.length; x < E; ) { var P = x++; S[P] = (this.twips[P] + 32768) & 65535; } var R = Lf.ofData(S.buffer); if (null == R) e.out.b.push(0); else { var A = R.length + 1; 0 <= A && A < 128 ? e.out.b.push(A) : (e.out.b.push(128), e.out.addInt32(A)); for (var I = e.out, C = (I.b, R.b), B = 0, D = R.length; B < D; ) { var k = B++; I.b.push(C[k]); } } } var F = this.ff._items; if (null == F) e.out.b.push(0); else { var M = F.length + 1; 0 <= M && M < 128 ? e.out.b.push(M) : (e.out.b.push(128), e.out.addInt32(M)); for (var L = 0; L < F.length; ) { var N = F[L]; if ((++L, null == N)) e.out.b.push(0); else { var O = N.length + 1; 0 <= O && O < 128 ? e.out.b.push(O) : (e.out.b.push(128), e.out.addInt32(O)); for (var U = 0; U < N.length; ) { var G = N[U]; ++U, e.out.addInt32(bp.floatToI32(G)); } } } } var z = this.ii._items; if (null == z) e.out.b.push(0); else { var X = z.length + 1; 0 <= X && X < 128 ? e.out.b.push(X) : (e.out.b.push(128), e.out.addInt32(X)); for (var H = 0; H < z.length; ) { var V = z[H]; if ((++H, null == V)) e.out.b.push(0); else { var Y = V.length + 1; 0 <= Y && Y < 128 ? e.out.b.push(Y) : (e.out.b.push(128), e.out.addInt32(Y)); for (var W = 0; W < V.length; ) { var j = V[W]; ++W, 0 <= j && j < 128 ? e.out.b.push(j) : (e.out.b.push(128), e.out.addInt32(j)); } } } } var K = this.m._items; if (null == K) e.out.b.push(0); else { var q = K.length + 1; 0 <= q && q < 128 ? e.out.b.push(q) : (e.out.b.push(128), e.out.addInt32(q)); for (var Z = 0; Z < K.length; ) { var J = K[Z]; ++Z, e.out.addInt32(bp.floatToI32(J.a)), e.out.addInt32(bp.floatToI32(J.b)), e.out.addInt32(bp.floatToI32(J.c)), e.out.addInt32(bp.floatToI32(J.d)), e.out.addInt32(bp.floatToI32(J.tx)), e.out.addInt32(bp.floatToI32(J.ty)); } } var Q = this.bd_ids._items; if (null == Q) e.out.b.push(0); else { var $ = Q.length + 1; 0 <= $ && $ < 128 ? e.out.b.push($) : (e.out.b.push(128), e.out.addInt32($)); for (var ee = 0; ee < Q.length; ) { var te = Q[ee]; ++ee, 0 <= te && te < 128 ? e.out.b.push(te) : (e.out.b.push(128), e.out.addInt32(te)); } } var se = Lf.ofData(this.clampedFloats.buffer); if (null == se) e.out.b.push(0); else { var ne = se.length + 1; 0 <= ne && ne < 128 ? e.out.b.push(ne) : (e.out.b.push(128), e.out.addInt32(ne)); for ( var ie = e.out, re = (ie.b, se.b), oe = 0, ae = se.length; oe < ae; ) { var le = oe++; ie.b.push(re[le]); } } }, customUnserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)); var s, n = t; if (0 == n) s = null; else { --n; var i = e.input.sub(e.inPos, n); (e.inPos += n), (s = i); } this.drawCommandTypes = vp.fromBytes(s); var r = e.input.b[e.inPos++]; 128 == r && ((r = e.input.getInt32(e.inPos)), (e.inPos += 4)); var o, a = r; if (0 == a) o = null; else { for (var l = [], h = 0, _ = --a; h < _; ) { l[h++] = 0 != e.input.b[e.inPos++]; } o = l; } var u = new Ge(); (u._items = null != o ? o : []), (u._length = u._items.length), (this.b = u); var d = e.input.b[e.inPos++]; 128 == d && ((d = e.input.getInt32(e.inPos)), (e.inPos += 4)); var c, f = d; if (0 == f) c = null; else { for (var p = [], b = 0, m = --f; b < m; ) { var g = b++, w = e.input.b[e.inPos++]; 128 == w && ((w = e.input.getInt32(e.inPos)), (e.inPos += 4)), (p[g] = w); } c = p; } var v = new Ge(); if ( ((v._items = null != c ? c : []), (v._length = v._items.length), (this.i = v), 0 != e.input.b[e.inPos++]) ) { var y = e.input.b[e.inPos++]; 128 == y && ((y = e.input.getInt32(e.inPos)), (e.inPos += 4)); var T, S = y; if (0 == S) T = null; else { --S; var x = e.input.sub(e.inPos, S); (e.inPos += S), (T = x); } this.twips = mp.fromBytes(T); } else { var E = e.input.b[e.inPos++]; 128 == E && ((E = e.input.getInt32(e.inPos)), (e.inPos += 4)); var P, R = E; if (0 == R) P = null; else { --R; var A = e.input.sub(e.inPos, R); (e.inPos += R), (P = A); } var I = wp.fromBytes(P), C = new Int32Array(I.length); this.twips = C; for (var B = 0, D = this.twips.length; B < D; ) { var k = B++; this.twips[k] = (I[k] - 32768) | 0; } } var F = e.input.b[e.inPos++]; 128 == F && ((F = e.input.getInt32(e.inPos)), (e.inPos += 4)); var M, L = F; if (0 == L) M = null; else { for (var N = [], O = 0, U = --L; O < U; ) { var G = O++, z = e.input.b[e.inPos++]; 128 == z && ((z = e.input.getInt32(e.inPos)), (e.inPos += 4)); var X, H = z; if (0 == H) X = null; else { for (var V = [], Y = 0, W = --H; Y < W; ) { var j = Y++, K = e.input.getFloat(e.inPos); (e.inPos += 4), (V[j] = K); } X = V; } N[G] = X; } M = N; } var q = new Ge(); (q._items = null != M ? M : []), (q._length = q._items.length), (this.ff = q); var Z = e.input.b[e.inPos++]; 128 == Z && ((Z = e.input.getInt32(e.inPos)), (e.inPos += 4)); var J, Q = Z; if (0 == Q) J = null; else { for (var $ = [], ee = 0, te = --Q; ee < te; ) { var se = ee++, ne = e.input.b[e.inPos++]; 128 == ne && ((ne = e.input.getInt32(e.inPos)), (e.inPos += 4)); var ie, re = ne; if (0 == re) ie = null; else { for (var oe = [], ae = 0, le = --re; ae < le; ) { var he = ae++, _e = e.input.b[e.inPos++]; 128 == _e && ((_e = e.input.getInt32(e.inPos)), (e.inPos += 4)), (oe[he] = _e); } ie = oe; } $[se] = ie; } J = $; } var ue = new Ge(); (ue._items = null != J ? J : []), (ue._length = ue._items.length), (this.ii = ue); var de = e.input.b[e.inPos++]; 128 == de && ((de = e.input.getInt32(e.inPos)), (e.inPos += 4)); var ce, fe = de; if (0 == fe) ce = null; else { for (var pe = [], be = 0, me = --fe; be < me; ) { var ge = be++, we = new Km(), ve = e.input.getFloat(e.inPos); (e.inPos += 4), (we.a = ve); var ye = e.input.getFloat(e.inPos); (e.inPos += 4), (we.b = ye); var Te = e.input.getFloat(e.inPos); (e.inPos += 4), (we.c = Te); var Se = e.input.getFloat(e.inPos); (e.inPos += 4), (we.d = Se); var xe = e.input.getFloat(e.inPos); (e.inPos += 4), (we.tx = xe); var Ee = e.input.getFloat(e.inPos); (e.inPos += 4), (we.ty = Ee), (pe[ge] = we); } ce = pe; } var Pe = new Ge(); (Pe._items = null != ce ? ce : []), (Pe._length = Pe._items.length), (this.m = Pe); var Re = e.input.b[e.inPos++]; 128 == Re && ((Re = e.input.getInt32(e.inPos)), (e.inPos += 4)); var Ae, Ie = Re; if (0 == Ie) Ae = null; else { for (var Ce = [], Be = 0, De = --Ie; Be < De; ) { var ke = Be++, Fe = e.input.b[e.inPos++]; 128 == Fe && ((Fe = e.input.getInt32(e.inPos)), (e.inPos += 4)), (Ce[ke] = Fe); } Ae = Ce; } var Me = new Ge(); (Me._items = null != Ae ? Ae : []), (Me._length = Me._items.length), (this.bd_ids = Me); var Le = e.input.b[e.inPos++]; 128 == Le && ((Le = e.input.getInt32(e.inPos)), (e.inPos += 4)); var Ne, Oe = Le; if (0 == Oe) Ne = null; else { --Oe; var Ue = e.input.sub(e.inPos, Oe); (e.inPos += Oe), (Ne = Ue); } this.clampedFloats = vp.fromBytes(Ne); }, getCLID: function () { return tg.__clid; }, serialize: function (e) { this.customSerialize(e); }, getSerializeSchema: function () { var e = new Cp(); return (e.isFinal = mr.isClassFinal(tg.__clid)), e; }, unserializeInit: function () { var e = new Ge(); (e._items = []), (e._length = e._items.length), (this.types = e); var t = new Ge(); (t._items = []), (t._length = t._items.length), (this.b = t); var s = new Ge(); (s._items = []), (s._length = s._items.length), (this.t = s); var n = new Ge(); (n._items = []), (n._length = n._items.length), (this.ff = n); var i = new Ge(); (i._items = []), (i._length = i._items.length), (this.i = i); var r = new Ge(); (r._items = []), (r._length = r._items.length), (this.ii = r); var o = new Ge(); (o._items = []), (o._length = o._items.length), (this.m = o); var a = new Ge(); (a._items = []), (a._length = a._items.length), (this.vf = a); var l = new Ge(); (l._items = []), (l._length = l._items.length), (this.vi = l); var h = new Ge(); (h._items = []), (h._length = h._items.length), (this.bd_ids = h); var _ = new Ge(); (_._items = []), (_._length = _._items.length), (this.bd = _); var u = new Ge(); (u._items = []), (u._length = u._items.length), (this.cf = u); }, unserialize: function (e) { this.customUnserialize(e); }, __class__: tg, __properties__: { get_length: "get_length" }, }); var sg = function (e) { this.reset(e); }; ((s["openfl._internal.renderer.DrawCommandReader"] = sg).__name__ = [ "openfl", "_internal", "renderer", "DrawCommandReader", ]), (sg.prototype = { endCheck: function () { this.advance(); }, advance: function () { switch (this.prev) { case 0: (this.bdPos += 1), (this.mPos += 1), (this.bPos += 2); break; case 1: (this.iPos += 1), (this.cfPos += 1); break; case 2: (this.mPos += 1), (this.iiPos += 2), (this.ffPos += 1), (this.fPos += 1), (this.iPos += 3); break; case 3: this.fPos += 6; break; case 4: this.fPos += 4; break; case 5: this.fPos += 3; break; case 6: this.fPos += 5; break; case 7: this.fPos += 4; break; case 8: (this.bdPos += 1), (this.mPos += 1), (this.bPos += 1); break; case 9: (this.viPos += 1), (this.vfPos += 1), (this.iPos += 1); break; case 10: this.fPos += 4; break; case 11: this.fPos += 6; break; case 12: throw new Mp("Unsupported DRAW_TILES"); case 13: (this.vfPos += 2), (this.viPos += 1), (this.iPos += 1); break; case 14: break; case 15: (this.bdPos += 1), (this.mPos += 1), (this.bPos += 2); break; case 16: (this.mPos += 1), (this.iiPos += 2), (this.ffPos += 1), (this.fPos += 1), (this.iPos += 3); break; case 17: (this.iPos += 4), (this.fPos += 2), (this.cfPos += 1), (this.bPos += 1); break; case 18: case 19: this.fPos += 2; break; case 20: this.mPos += 1; } }, destroy: function () { (this.buffer = null), this.reset(); }, bool: function (e) { var t = this.buffer.b, s = this.bPos + e; return s >= t._length ? null : t._items[s]; }, fArr: function (e) { var t = this.buffer.ff, s = this.ffPos + e; return s >= t._length ? null : t._items[s]; }, float: function (e) { return this.buffer.twips[this.fPos + e] / 20; }, clampedFloat: function (e) { return this.buffer.clampedFloats[this.cfPos + e] / 255; }, iArr: function (e) { var t = this.buffer.ii, s = this.iiPos + e; return s >= t._length ? null : t._items[s]; }, int: function (e) { var t = this.buffer.i, s = this.iPos + e; return s >= t._length ? null : t._items[s]; }, matrix: function (e) { var t = this.buffer.m, s = this.mPos + e; return s >= t._length ? null : t._items[s]; }, iVec: function (e) { var t = this.buffer.vi, s = this.viPos + e; return s >= t._length ? null : t._items[s]; }, fVec: function (e) { var t = this.buffer.vf, s = this.vfPos + e; return s >= t._length ? null : t._items[s]; }, bitmapData: function (e) { var t = this.buffer.bd, s = this.bdPos + e; return s >= t._length ? null : t._items[s]; }, readBeginBitmapFill: function () { this.advance(), (this.prev = 0); return this; }, readBeginFill: function () { this.advance(), (this.prev = 1); return this; }, readBeginGradientFill: function () { this.advance(), (this.prev = 2); return this; }, readCubicCurveTo: function () { this.advance(), (this.prev = 3); return this; }, readCurveTo: function () { this.advance(), (this.prev = 4); return this; }, readDrawCircle: function () { this.advance(), (this.prev = 5); return this; }, readDrawArc: function () { this.advance(), (this.prev = 6); return this; }, readDrawEllipse: function () { this.advance(), (this.prev = 7); return this; }, readDrawImage: function () { this.advance(), (this.prev = 8); return this; }, readDrawPath: function () { this.advance(), (this.prev = 9); return this; }, readDrawRect: function () { this.advance(), (this.prev = 10); return this; }, readDrawRoundRect: function () { this.advance(), (this.prev = 11); return this; }, readDrawTriangles: function () { this.advance(), (this.prev = 13); return this; }, readEndFill: function () { this.advance(), (this.prev = 14); return this; }, readLineBitmapStyle: function () { this.advance(), (this.prev = 15); return this; }, readLineGradientStyle: function () { this.advance(), (this.prev = 16); return this; }, readLineStyle: function () { this.advance(), (this.prev = 17); return this; }, readLineTo: function () { this.advance(), (this.prev = 18); return this; }, readMoveTo: function () { this.advance(), (this.prev = 19); return this; }, readOverrideMatrix: function () { this.advance(), (this.prev = 20); return this; }, reset: function (e) { (this.buffer = e), (this.bPos = this.iPos = this.fPos = this.mPos = this.viPos = this.vfPos = this.ffPos = this.iiPos = this.bdPos = this.cfPos = 0), (this.prev = 21), null != e && e.validate(); }, skip: function (e) { this.advance(), (this.prev = e); }, __class__: sg, }); var ng = {}; ((s[ "openfl._internal.renderer._DrawCommandReader.BeginBitmapFillView_Impl_" ] = ng).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "BeginBitmapFillView_Impl_", ]), (ng.__properties__ = { get_smooth: "get_smooth", get_repeat: "get_repeat", get_matrix: "get_matrix", get_bitmap: "get_bitmap", }), (ng._new = function (e) { return e; }), (ng.get_bitmap = function (e) { var t = e.buffer.bd, s = e.bdPos; return s >= t._length ? null : t._items[s]; }), (ng.get_matrix = function (e) { var t = e.buffer.m, s = e.mPos; return s >= t._length ? null : t._items[s]; }), (ng.get_repeat = function (e) { var t = e.buffer.b, s = e.bPos; return s >= t._length ? null : t._items[s]; }), (ng.get_smooth = function (e) { var t = e.buffer.b, s = e.bPos + 1; return s >= t._length ? null : t._items[s]; }); var ig = {}; ((s["openfl._internal.renderer._DrawCommandReader.BeginFillView_Impl_"] = ig).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "BeginFillView_Impl_", ]), (ig.__properties__ = { get_alpha: "get_alpha", get_color: "get_color" }), (ig._new = function (e) { return e; }), (ig.get_color = function (e) { var t = e.buffer.i, s = e.iPos; return s >= t._length ? null : t._items[s]; }), (ig.get_alpha = function (e) { return e.buffer.clampedFloats[e.cfPos] / 255; }); var rg = {}; ((s[ "openfl._internal.renderer._DrawCommandReader.BeginGradientFillView_Impl_" ] = rg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "BeginGradientFillView_Impl_", ]), (rg.__properties__ = { get_focalPointRatio: "get_focalPointRatio", get_interpolationMethod: "get_interpolationMethod", get_spreadMethod: "get_spreadMethod", get_matrix: "get_matrix", get_ratios: "get_ratios", get_alphas: "get_alphas", get_colors: "get_colors", get_type: "get_type", }), (rg._new = function (e) { return e; }), (rg.get_type = function (e) { var t = e.buffer.i, s = e.iPos; return s >= t._length ? null : t._items[s]; }), (rg.get_colors = function (e) { var t = e.buffer.ii, s = e.iiPos; return s >= t._length ? null : t._items[s]; }), (rg.get_alphas = function (e) { var t = e.buffer.ff, s = e.ffPos; return s >= t._length ? null : t._items[s]; }), (rg.get_ratios = function (e) { var t = e.buffer.ii, s = e.iiPos + 1; return s >= t._length ? null : t._items[s]; }), (rg.get_matrix = function (e) { var t = e.buffer.m, s = e.mPos; return s >= t._length ? null : t._items[s]; }), (rg.get_spreadMethod = function (e) { var t = e.buffer.i, s = e.iPos + 1; return s >= t._length ? null : t._items[s]; }), (rg.get_interpolationMethod = function (e) { var t = e.buffer.i, s = e.iPos + 2; return s >= t._length ? null : t._items[s]; }), (rg.get_focalPointRatio = function (e) { return e.buffer.twips[e.fPos] / 20; }); var og = {}; ((s["openfl._internal.renderer._DrawCommandReader.CubicCurveToView_Impl_"] = og).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "CubicCurveToView_Impl_", ]), (og.__properties__ = { get_anchorY: "get_anchorY", get_anchorX: "get_anchorX", get_controlY2: "get_controlY2", get_controlX2: "get_controlX2", get_controlY1: "get_controlY1", get_controlX1: "get_controlX1", }), (og._new = function (e) { return e; }), (og.get_controlX1 = function (e) { return e.buffer.twips[e.fPos] / 20; }), (og.get_controlY1 = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }), (og.get_controlX2 = function (e) { return e.buffer.twips[e.fPos + 2] / 20; }), (og.get_controlY2 = function (e) { return e.buffer.twips[e.fPos + 3] / 20; }), (og.get_anchorX = function (e) { return e.buffer.twips[e.fPos + 4] / 20; }), (og.get_anchorY = function (e) { return e.buffer.twips[e.fPos + 5] / 20; }); var ag = {}; ((s["openfl._internal.renderer._DrawCommandReader.CurveToView_Impl_"] = ag).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "CurveToView_Impl_", ]), (ag.__properties__ = { get_anchorY: "get_anchorY", get_anchorX: "get_anchorX", get_controlY: "get_controlY", get_controlX: "get_controlX", }), (ag._new = function (e) { return e; }), (ag.get_controlX = function (e) { return e.buffer.twips[e.fPos] / 20; }), (ag.get_controlY = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }), (ag.get_anchorX = function (e) { return e.buffer.twips[e.fPos + 2] / 20; }), (ag.get_anchorY = function (e) { return e.buffer.twips[e.fPos + 3] / 20; }); var lg = {}; ((s["openfl._internal.renderer._DrawCommandReader.DrawCircleView_Impl_"] = lg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "DrawCircleView_Impl_", ]), (lg.__properties__ = { get_radius: "get_radius", get_y: "get_y", get_x: "get_x", }), (lg._new = function (e) { return e; }), (lg.get_x = function (e) { return e.buffer.twips[e.fPos] / 20; }), (lg.get_y = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }), (lg.get_radius = function (e) { return e.buffer.twips[e.fPos + 2] / 20; }); var hg = {}; ((s["openfl._internal.renderer._DrawCommandReader.DrawArcView_Impl_"] = hg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "DrawArcView_Impl_", ]), (hg.__properties__ = { get_endAngle: "get_endAngle", get_startAngle: "get_startAngle", get_radius: "get_radius", get_y: "get_y", get_x: "get_x", }), (hg._new = function (e) { return e; }), (hg.get_x = function (e) { return e.buffer.twips[e.fPos] / 20; }), (hg.get_y = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }), (hg.get_radius = function (e) { return e.buffer.twips[e.fPos + 2] / 20; }), (hg.get_startAngle = function (e) { return e.buffer.twips[e.fPos + 3] / 20; }), (hg.get_endAngle = function (e) { return e.buffer.twips[e.fPos + 4] / 20; }); var _g = {}; ((s["openfl._internal.renderer._DrawCommandReader.DrawEllipseView_Impl_"] = _g).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "DrawEllipseView_Impl_", ]), (_g.__properties__ = { get_height: "get_height", get_width: "get_width", get_y: "get_y", get_x: "get_x", }), (_g._new = function (e) { return e; }), (_g.get_x = function (e) { return e.buffer.twips[e.fPos] / 20; }), (_g.get_y = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }), (_g.get_width = function (e) { return e.buffer.twips[e.fPos + 2] / 20; }), (_g.get_height = function (e) { return e.buffer.twips[e.fPos + 3] / 20; }); var ug = {}; ((s["openfl._internal.renderer._DrawCommandReader.DrawImageView_Impl_"] = ug).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "DrawImageView_Impl_", ]), (ug.__properties__ = { get_smooth: "get_smooth", get_matrix: "get_matrix", get_bitmap: "get_bitmap", }), (ug._new = function (e) { return e; }), (ug.get_bitmap = function (e) { var t = e.buffer.bd, s = e.bdPos; return s >= t._length ? null : t._items[s]; }), (ug.get_matrix = function (e) { var t = e.buffer.m, s = e.mPos; return s >= t._length ? null : t._items[s]; }), (ug.get_smooth = function (e) { var t = e.buffer.b, s = e.bPos; return s >= t._length ? null : t._items[s]; }); var dg = {}; ((s["openfl._internal.renderer._DrawCommandReader.DrawPathView_Impl_"] = dg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "DrawPathView_Impl_", ]), (dg.__properties__ = { get_winding: "get_winding", get_data: "get_data", get_commands: "get_commands", }), (dg._new = function (e) { return e; }), (dg.get_commands = function (e) { var t = e.buffer.vi, s = e.viPos; return s >= t._length ? null : t._items[s]; }), (dg.get_data = function (e) { var t = e.buffer.vf, s = e.vfPos; return s >= t._length ? null : t._items[s]; }), (dg.get_winding = function (e) { var t = e.buffer.i, s = e.iPos; return s >= t._length ? null : t._items[s]; }); var cg = {}; ((s["openfl._internal.renderer._DrawCommandReader.DrawRectView_Impl_"] = cg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "DrawRectView_Impl_", ]), (cg.__properties__ = { get_height: "get_height", get_width: "get_width", get_y: "get_y", get_x: "get_x", }), (cg._new = function (e) { return e; }), (cg.get_x = function (e) { return e.buffer.twips[e.fPos] / 20; }), (cg.get_y = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }), (cg.get_width = function (e) { return e.buffer.twips[e.fPos + 2] / 20; }), (cg.get_height = function (e) { return e.buffer.twips[e.fPos + 3] / 20; }); var fg = {}; ((s["openfl._internal.renderer._DrawCommandReader.DrawRoundRectView_Impl_"] = fg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "DrawRoundRectView_Impl_", ]), (fg.__properties__ = { get_ellipseHeight: "get_ellipseHeight", get_ellipseWidth: "get_ellipseWidth", get_height: "get_height", get_width: "get_width", get_y: "get_y", get_x: "get_x", }), (fg._new = function (e) { return e; }), (fg.get_x = function (e) { return e.buffer.twips[e.fPos] / 20; }), (fg.get_y = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }), (fg.get_width = function (e) { return e.buffer.twips[e.fPos + 2] / 20; }), (fg.get_height = function (e) { return e.buffer.twips[e.fPos + 3] / 20; }), (fg.get_ellipseWidth = function (e) { return e.buffer.twips[e.fPos + 4] / 20; }), (fg.get_ellipseHeight = function (e) { return e.buffer.twips[e.fPos + 5] / 20; }); var pg = {}; ((s["openfl._internal.renderer._DrawCommandReader.DrawTrianglesView_Impl_"] = pg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "DrawTrianglesView_Impl_", ]), (pg.__properties__ = { get_culling: "get_culling", get_uvtData: "get_uvtData", get_indices: "get_indices", get_vertices: "get_vertices", }), (pg._new = function (e) { return e; }), (pg.get_vertices = function (e) { var t = e.buffer.vf, s = e.vfPos; return s >= t._length ? null : t._items[s]; }), (pg.get_indices = function (e) { var t = e.buffer.vi, s = e.viPos + 1; return s >= t._length ? null : t._items[s]; }), (pg.get_uvtData = function (e) { var t = e.buffer.vf, s = e.vfPos + 2; return s >= t._length ? null : t._items[s]; }), (pg.get_culling = function (e) { var t = e.buffer.i, s = e.iPos + 3; return s >= t._length ? null : t._items[s]; }); var bg = {}; ((s["openfl._internal.renderer._DrawCommandReader.EndFillView_Impl_"] = bg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "EndFillView_Impl_", ]), (bg._new = function (e) { return e; }); var mg = {}; ((s[ "openfl._internal.renderer._DrawCommandReader.LineBitmapStyleView_Impl_" ] = mg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "LineBitmapStyleView_Impl_", ]), (mg.__properties__ = { get_smooth: "get_smooth", get_repeat: "get_repeat", get_matrix: "get_matrix", get_bitmap: "get_bitmap", }), (mg._new = function (e) { return e; }), (mg.get_bitmap = function (e) { var t = e.buffer.bd, s = e.bdPos; return s >= t._length ? null : t._items[s]; }), (mg.get_matrix = function (e) { var t = e.buffer.m, s = e.mPos; return s >= t._length ? null : t._items[s]; }), (mg.get_repeat = function (e) { var t = e.buffer.b, s = e.bPos; return s >= t._length ? null : t._items[s]; }), (mg.get_smooth = function (e) { var t = e.buffer.b, s = e.bPos + 1; return s >= t._length ? null : t._items[s]; }); var gg = {}; ((s[ "openfl._internal.renderer._DrawCommandReader.LineGradientStyleView_Impl_" ] = gg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "LineGradientStyleView_Impl_", ]), (gg.__properties__ = { get_focalPointRatio: "get_focalPointRatio", get_interpolationMethod: "get_interpolationMethod", get_spreadMethod: "get_spreadMethod", get_matrix: "get_matrix", get_ratios: "get_ratios", get_alphas: "get_alphas", get_colors: "get_colors", get_type: "get_type", }), (gg._new = function (e) { return e; }), (gg.get_type = function (e) { var t = e.buffer.i, s = e.iPos; return s >= t._length ? null : t._items[s]; }), (gg.get_colors = function (e) { var t = e.buffer.ii, s = e.iiPos; return s >= t._length ? null : t._items[s]; }), (gg.get_alphas = function (e) { var t = e.buffer.ff, s = e.ffPos; return s >= t._length ? null : t._items[s]; }), (gg.get_ratios = function (e) { var t = e.buffer.ii, s = e.iiPos + 1; return s >= t._length ? null : t._items[s]; }), (gg.get_matrix = function (e) { var t = e.buffer.m, s = e.mPos; return s >= t._length ? null : t._items[s]; }), (gg.get_spreadMethod = function (e) { var t = e.buffer.i, s = e.iPos + 1; return s >= t._length ? null : t._items[s]; }), (gg.get_interpolationMethod = function (e) { var t = e.buffer.i, s = e.iPos + 2; return s >= t._length ? null : t._items[s]; }), (gg.get_focalPointRatio = function (e) { return e.buffer.twips[e.fPos] / 20; }); var wg = {}; ((s["openfl._internal.renderer._DrawCommandReader.LineStyleView_Impl_"] = wg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "LineStyleView_Impl_", ]), (wg.__properties__ = { get_miterLimit: "get_miterLimit", get_joints: "get_joints", get_caps: "get_caps", get_scaleMode: "get_scaleMode", get_pixelHinting: "get_pixelHinting", get_alpha: "get_alpha", get_color: "get_color", get_thickness: "get_thickness", }), (wg._new = function (e) { return e; }), (wg.get_thickness = function (e) { return e.buffer.twips[e.fPos] / 20; }), (wg.get_color = function (e) { var t = e.buffer.i, s = e.iPos; return s >= t._length ? null : t._items[s]; }), (wg.get_alpha = function (e) { return e.buffer.clampedFloats[e.cfPos] / 255; }), (wg.get_pixelHinting = function (e) { var t = e.buffer.b, s = e.bPos; return s >= t._length ? null : t._items[s]; }), (wg.get_scaleMode = function (e) { var t = e.buffer.i, s = e.iPos + 1; return s >= t._length ? null : t._items[s]; }), (wg.get_caps = function (e) { var t = e.buffer.i, s = e.iPos + 2; return s >= t._length ? null : t._items[s]; }), (wg.get_joints = function (e) { var t = e.buffer.i, s = e.iPos + 3; return s >= t._length ? null : t._items[s]; }), (wg.get_miterLimit = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }); var vg = {}; ((s["openfl._internal.renderer._DrawCommandReader.LineToView_Impl_"] = vg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "LineToView_Impl_", ]), (vg.__properties__ = { get_y: "get_y", get_x: "get_x" }), (vg._new = function (e) { return e; }), (vg.get_x = function (e) { return e.buffer.twips[e.fPos] / 20; }), (vg.get_y = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }); var yg = {}; ((s["openfl._internal.renderer._DrawCommandReader.MoveToView_Impl_"] = yg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "MoveToView_Impl_", ]), (yg.__properties__ = { get_y: "get_y", get_x: "get_x" }), (yg._new = function (e) { return e; }), (yg.get_x = function (e) { return e.buffer.twips[e.fPos] / 20; }), (yg.get_y = function (e) { return e.buffer.twips[e.fPos + 1] / 20; }); var Tg = {}; ((s["openfl._internal.renderer._DrawCommandReader.OverrideMatrixView_Impl_"] = Tg).__name__ = [ "openfl", "_internal", "renderer", "_DrawCommandReader", "OverrideMatrixView_Impl_", ]), (Tg.__properties__ = { get_matrix: "get_matrix" }), (Tg._new = function (e) { return e; }), (Tg.get_matrix = function (e) { var t = e.buffer.m, s = e.mPos; return s >= t._length ? null : t._items[s]; }); var Sg = function () {}; (s["openfl._internal.renderer.DrawCommandType"] = Sg).__name__ = [ "openfl", "_internal", "renderer", "DrawCommandType", ]; var xg = function () { this.activeTextures = 0; var e = new Ge(); (e._items = []), (e._length = e._items.length), (this.renderTargetBaseTransformStack = e), this.pushRenderTargetBaseTransform(null, null); }; ((s["openfl._internal.renderer.RenderSession"] = xg).__name__ = [ "openfl", "_internal", "renderer", "RenderSession", ]), (xg.prototype = { pushRenderTargetBaseTransform: function (e, t) { var s = Km.pool.get(), n = De.field(e, "__renderTransform"); null != n ? (s.copyFrom(n), s.invert()) : s.identity(), null != t && s.concat(t); var i = this.renderTargetBaseTransformStack; i._items[i._length++] = s; }, popRenderTargetBaseTransform: function () { var e = this.renderTargetBaseTransformStack, t = e._items[--e._length]; e._items[e._length] = null; var s = t; Km.pool.put(s); }, getRenderTargetBaseTransform: function () { var e = this.renderTargetBaseTransformStack; return e._items[e._length - 1]; }, get_usesMainSpriteBatch: function () { var e = this.renderer; return this.spriteBatch == e.mainSpriteBatch; }, __class__: xg, __properties__: { get_usesMainSpriteBatch: "get_usesMainSpriteBatch" }, }); var Eg = function () {}; ((s["openfl._internal.renderer.canvas.CanvasGraphics"] = Eg).__name__ = [ "openfl", "_internal", "renderer", "canvas", "CanvasGraphics", ]), (Eg.hasFill = null), (Eg.hasStroke = null), (Eg.hitTesting = null), (Eg.inversePendingMatrix = null), (Eg.pendingMatrix = null), (Eg.context = null), (Eg.__hitTestContext = null), (Eg.__hitTestCanvas = null), (Eg.closePath = function () { var e = Eg.context; null != e.strokeStyle && (e.closePath(), e.stroke(), e.beginPath()); }), (Eg.createBitmapFill = function (e, t) { return ( e.get_bd().__sync(), 0 == e.get_src().width ? null : Eg.context.createPattern(e.get_src(), t ? "repeat" : "no-repeat") ); }), (Eg.createGradientPattern = function (e, t, s, n, i, r, o, a) { var l = null, h = Eg.context; switch ((0 != a && (a = Math.min(Math.max(a, -1), 1)), e)) { case 0: l = h.createLinearGradient(-819.2, 0, 819.2, 0); break; case 1: l = h.createRadialGradient(819.2 * a, 0, 0, 0, 0, 819.2); } for (var _ = 0, u = t.length; _ < u; ) { var d = _++, c = t[d], f = s[d], p = (16711680 & c) >>> 16, b = (65280 & c) >>> 8, m = 255 & c, g = n[d] / 255; g < 0 && (g = 0), 1 < g && (g = 1), l.addColorStop(g, "rgba(" + p + ", " + b + ", " + m + ", " + f + ")"); } return l; }), (Eg.drawRoundRect = function (e, t, s, n, i, r) { null == r && (r = i), s / 2 < (i *= 0.5) && (i = s / 2), n / 2 < (r *= 0.5) && (r = n / 2); var o = e + s, a = t + n, l = -i + i * Eg.SIN45, h = -i + i * Eg.TAN22, _ = -r + r * Eg.SIN45, u = -r + r * Eg.TAN22, d = Eg.context; d.moveTo(o, a - r), d.quadraticCurveTo(o, a + u, o + l, a + _), d.quadraticCurveTo(o + h, a, o - i, a), d.lineTo(e + i, a), d.quadraticCurveTo(e - h, a, e - l, a + _), d.quadraticCurveTo(e, a + u, e, a - r), d.lineTo(e, t + r), d.quadraticCurveTo(e, t - u, e - l, t - _), d.quadraticCurveTo(e - h, t, e + i, t), d.lineTo(o - i, t), d.quadraticCurveTo(o + h, t, o + l, t - _), d.quadraticCurveTo(o, t - u, o, t + r), d.lineTo(o, a - r); }), (Eg.beginRenderStep = function () { Eg.context.beginPath(), (Eg.positionX = 0), (Eg.positionY = 0), (Eg.closeGap = !1), (Eg.startX = 0), (Eg.startY = 0), (Eg.hasFill = !1), (Eg.hasStroke = !1); }), (Eg.resetFillStyle = function () { (Eg.hasFill = !1), (Eg.hasStroke = !1); }), (Eg.endRenderStep = function () { var e = Eg; if (e.hasStroke || e.hasFill) { if (e.hasStroke) { Eg.context.save(); var t = e.pendingMatrix; null != t && t.a * t.d - t.c * t.b != 0 && (Eg.snapCoordinates && Eg.context.setTransform( Eg.currentTransform.a, Eg.currentTransform.b, Eg.currentTransform.c, Eg.currentTransform.d, Eg.currentTransform.tx, Eg.currentTransform.ty ), Eg.context.transform(t.a, t.b, t.c, t.d, t.tx, t.ty)), null != t && t.a == t.d && (Eg.context.lineWidth = Eg.context.lineWidth / t.a), e.hitTesting || Eg.context.stroke(), Eg.context.restore(), Eg.context.closePath(); } if ( (e.hasFill && Eg.closeGap ? Eg.context.lineTo(Eg.startX, Eg.startY) : Eg.closeGap && Eg.positionX == Eg.startX && Eg.positionY == Eg.startY && Eg.context.closePath(), e.hasFill) ) { Eg.context.save(); var s = e.pendingMatrix; null != s && s.a * s.d - s.c * s.b != 0 && (Eg.snapCoordinates && Eg.context.setTransform( Eg.currentTransform.a, Eg.currentTransform.b, Eg.currentTransform.c, Eg.currentTransform.d, Eg.currentTransform.tx, Eg.currentTransform.ty ), Eg.context.transform(s.a, s.b, s.c, s.d, s.tx, s.ty)), e.hitTesting || Eg.context.fill(e.canvasWindingRule), Eg.context.restore(), Eg.context.closePath(); } e.pendingMatrix = null; } }), (Eg.hitTest = function (e, t, s) { var n = e.__bounds, i = Eg; if ( null == e.__commands || 0 == e.__commands.get_length() || null == n || n.width <= 0 || n.height <= 0 ) return !1; (Eg.hitTesting = !0), null == Eg.__hitTestCanvas && ((Eg.__hitTestCanvas = window.document.createElement("canvas")), (Eg.__hitTestCanvas.width = 1024), (Eg.__hitTestCanvas.height = 1024), (Eg.__hitTestContext = Eg.__hitTestCanvas.getContext("2d"))), (Eg.context = Eg.__hitTestContext); var r = Eg.__hitTestContext; r.setTransform(1, 0, 0, 1, 0, 0), (t *= 1), (s *= 1), Eg.beginRenderStep(); var o = Eg.drawCommandReaderPool.get(); o.reset(e.__commands); for (var a = 0, l = e.__commands.drawCommandTypes; a < l.length; ) { var h = l[a]; switch ((++a, h)) { case 0: case 1: case 2: if ( (Eg.endRenderStep(), Eg.hasFill && r.isPointInPath(t, s, Eg.canvasWindingRule)) ) return Eg.drawCommandReaderPool.put(o), !0; if (Eg.hasStroke && r.isPointInStroke(t, s)) return Eg.drawCommandReaderPool.put(o), !0; if ((Eg.beginRenderStep(), 0 == h)) { o.advance(), (o.prev = 0); } else if (2 == h) { o.advance(), (o.prev = 2); } else { o.advance(), (o.prev = 1); } Eg.hasFill = !0; break; case 3: o.advance(), (o.prev = 3); var _ = o; Eg.context.bezierCurveTo( _.buffer.twips[_.fPos] / 20, _.buffer.twips[_.fPos + 1] / 20, _.buffer.twips[_.fPos + 2] / 20, _.buffer.twips[_.fPos + 3] / 20, _.buffer.twips[_.fPos + 4] / 20, _.buffer.twips[_.fPos + 5] / 20 ); break; case 4: o.advance(), (o.prev = 4); var u = o; Eg.context.quadraticCurveTo( u.buffer.twips[u.fPos] / 20, u.buffer.twips[u.fPos + 1] / 20, u.buffer.twips[u.fPos + 2] / 20, u.buffer.twips[u.fPos + 3] / 20 ); break; case 5: o.advance(), (o.prev = 5); var d = o; Eg.context.moveTo( d.buffer.twips[d.fPos] / 20, d.buffer.twips[d.fPos + 1] / 20 ), Eg.context.arc( d.buffer.twips[d.fPos] / 20, d.buffer.twips[d.fPos + 1] / 20, d.buffer.twips[d.fPos + 2] / 20, 0, 2 * Math.PI, !0 ); break; case 6: o.advance(), (o.prev = 6); var c = o; Eg.context.moveTo( c.buffer.twips[c.fPos] / 20, c.buffer.twips[c.fPos + 1] / 20 ), Eg.context.arc( c.buffer.twips[c.fPos] / 20, c.buffer.twips[c.fPos + 1] / 20, c.buffer.twips[c.fPos + 2] / 20, c.buffer.twips[c.fPos + 3] / 20, c.buffer.twips[c.fPos + 4] / 20, !0 ); break; case 7: o.advance(), (o.prev = 7); var f = o, p = f.buffer.twips[f.fPos] / 20, b = f.buffer.twips[f.fPos + 1] / 20, m = f.buffer.twips[f.fPos + 2] / 20, g = f.buffer.twips[f.fPos + 3] / 20, w = (m / 2) * 0.5522848, v = (g / 2) * 0.5522848, y = p + m, T = b + g, S = p + m / 2, x = b + g / 2; Eg.context.moveTo(p, x), Eg.context.bezierCurveTo(p, x - v, S - w, b, S, b), Eg.context.bezierCurveTo(S + w, b, y, x - v, y, x), Eg.context.bezierCurveTo(y, x + v, S + w, T, S, T), Eg.context.bezierCurveTo(S - w, T, p, x + v, p, x); break; case 8: o.advance(), (o.prev = 8); var E = o; Eg.context.save(); var P = E.buffer.m, R = E.mPos, A = E.buffer.m, I = E.mPos, C = E.buffer.m, B = E.mPos, D = E.buffer.m, k = E.mPos, F = E.buffer.m, M = E.mPos, L = E.buffer.m, N = E.mPos; Eg.context.transform( (R >= P._length ? null : P._items[R]).a, (I >= A._length ? null : A._items[I]).b, (B >= C._length ? null : C._items[B]).c, (k >= D._length ? null : D._items[k]).d, (M >= F._length ? null : F._items[M]).tx, (N >= L._length ? null : L._items[N]).ty ); var O = E.buffer.bd, U = E.bdPos; if ( null != (U >= O._length ? null : O._items[U]) && !Eg.hitTesting ) { var G = E.buffer.bd, z = E.bdPos, X = z >= G._length ? null : G._items[z], H = X.get_uvData(), V = X.get_bd().get_image().get_src(); if (null == H) Eg.context.drawImage(V, 0, 0, 1, 1); else { var Y = V.width, W = V.height; Eg.context.drawImage( V, H.x0 * Y, H.y0 * W, (H.x1 - H.x0) * Y, (H.y2 - H.y0) * W, 0, 0, 1, 1 ); } } else Eg.context.rect(0, 0, 1, 1); if ( (Eg.context.restore(), r.isPointInPath(t, s, Eg.canvasWindingRule)) ) return Eg.drawCommandReaderPool.put(o), !0; break; case 10: o.advance(), (o.prev = 10); var j = o; Eg.context.rect( j.buffer.twips[j.fPos] / 20, j.buffer.twips[j.fPos + 1] / 20, j.buffer.twips[j.fPos + 2] / 20, j.buffer.twips[j.fPos + 3] / 20 ); break; case 11: o.advance(), (o.prev = 11); var K = o; Eg.drawRoundRect( K.buffer.twips[K.fPos] / 20, K.buffer.twips[K.fPos + 1] / 20, K.buffer.twips[K.fPos + 2] / 20, K.buffer.twips[K.fPos + 3] / 20, K.buffer.twips[K.fPos + 4] / 20, K.buffer.twips[K.fPos + 5] / 20 ); break; case 14: o.advance(), (o.prev = 14); if ( (Eg.endRenderStep(), i.hasFill && r.isPointInPath(t, s, i.canvasWindingRule)) ) return Eg.drawCommandReaderPool.put(o), !0; if (i.hasStroke && r.isPointInStroke(t, s)) return Eg.drawCommandReaderPool.put(o), !0; Eg.beginRenderStep(); break; case 15: o.advance(), (o.prev = 15); Eg.hasStroke && Eg.closePath(), Eg.context.moveTo(Eg.positionX, Eg.positionY), (Eg.context.strokeStyle = "white"), (Eg.hasStroke = !0); break; case 16: o.advance(), (o.prev = 16); var q = o; Eg.hasStroke && Eg.closePath(), Eg.context.moveTo(Eg.positionX, Eg.positionY), (Eg.context.strokeStyle = "white"); var Z = q.buffer.m, J = q.mPos; (Eg.pendingMatrix = J >= Z._length ? null : Z._items[J]), (Eg.hasStroke = !0); break; case 17: o.advance(), (o.prev = 17); var Q = o; if ( ((Eg.hasStroke || Eg.hasFill) && (Eg.hitTesting ? Eg.context.closePath() : (Eg.hasStroke && Eg.context.stroke(), Eg.context.closePath(), Eg.hasFill && Eg.context.fill(Eg.canvasWindingRule)), Eg.context.beginPath()), Eg.context.moveTo(Eg.positionX, Eg.positionY), Q.buffer.twips[Q.fPos] / 20 == null || Q.buffer.twips[Q.fPos] / 20 == -1) ) Eg.hasStroke = !1; else { Eg.context.lineWidth = 0 < Q.buffer.twips[Q.fPos] / 20 ? Math.max(Q.buffer.twips[Q.fPos] / 20, 1) : 1; var $ = Q.buffer.i, ee = Q.iPos + 3; Eg.context.lineJoin = Ew.toString( ee >= $._length ? null : $._items[ee] ).toLowerCase(); var te, se = Q.buffer.i, ne = Q.iPos + 2; if (0 == (ne >= se._length ? null : se._items[ne])) te = "butt"; else { var ie = Q.buffer.i, re = Q.iPos + 2; te = iw .toString(re >= ie._length ? null : ie._items[re]) .toLowerCase(); } (Eg.context.lineCap = te), (Eg.context.miterLimit = Q.buffer.twips[Q.fPos + 1] / 20), (Eg.context.strokeStyle = "white"), (Eg.hasStroke = 0 < Q.buffer.clampedFloats[Q.cfPos] / 255); } break; case 18: o.advance(), (o.prev = 18); var oe = o; Eg.context.lineTo( oe.buffer.twips[oe.fPos] / 20, oe.buffer.twips[oe.fPos + 1] / 20 ), (Eg.positionX = oe.buffer.twips[oe.fPos] / 20), (Eg.positionY = oe.buffer.twips[oe.fPos + 1] / 20); break; case 19: o.advance(), (o.prev = 19); var ae = o; Eg.context.moveTo( ae.buffer.twips[ae.fPos] / 20, ae.buffer.twips[ae.fPos + 1] / 20 ), (Eg.positionX = ae.buffer.twips[ae.fPos] / 20), (Eg.positionY = ae.buffer.twips[ae.fPos + 1] / 20), (Eg.closeGap = !0), (Eg.startX = ae.buffer.twips[ae.fPos] / 20), (Eg.startY = ae.buffer.twips[ae.fPos + 1] / 20); break; default: o.advance(), (o.prev = h); } } return ( Eg.endRenderStep(), Eg.hasFill && r.isPointInPath(t, s, i.canvasWindingRule) ? (Eg.drawCommandReaderPool.put(o), !0) : Eg.hasStroke && r.isPointInStroke(t, s) ? (Eg.drawCommandReaderPool.put(o), !0) : (Eg.drawCommandReaderPool.put(o), !1) ); }), (Eg.isCCW = function (e, t, s, n, i, r) { return (s - e) * (r - t) - (n - t) * (i - e) < 0; }), (Eg.normalizeUVT = function (e, t) { null == t && (t = !1); for ( var s = -1 / 0, n = -1 / 0, i = e.length, r = 1, o = i + 1; r < o; ) { var a = r++; (t && a % 3 == 0) || (s < (n = e.data[a - 1]) && (s = n)); } var l = new ha(), h = new Array(0); (l.data = h), (l.length = 0), (l.fixed = !1); for (var _ = l, u = 1, d = i + 1; u < d; ) { var c = u++; if (!t || c % 3 != 0) { var f = e.data[c - 1] / s; if (!_.fixed) { if ((_.length++, _.data.length < _.length)) { var p = _.data.length + 10, b = new Array(p); dp.blit(_.data, 0, b, 0, _.data.length), (_.data = b); } _.data[_.length - 1] = f; } } } return { max: s, uvt: _ }; }), (Eg.render = function (e, t, s, n, i) { if ((null == i && (i = !1), null == n && (n = !1), e.get_dirty())) { if (0 == Eg.glMaxTextureSize) { t.gl; Eg.glMaxTextureSize = Vb.context.getParameter(t.gl.MAX_TEXTURE_SIZE) - 2 * Eg.padding - 1; } Eg.hitTesting = !1; var r = e.__bounds; if ( (!n && !e.__visible) || 0 == e.__commands.get_length() || null == r || r.width <= 0 || r.height <= 0 ) (e.__canvas = null), (e.__context = null), e.set___bitmap(null); else { var o = s; if (null != e.__symbol && Lp.__instanceof(e.__symbol, Va)) { var a = null, l = Lp.__cast(e.__symbol, Va); l.registerGraphics(e); var h = l.renderScale, _ = cy.pool.get(); for ( r.transform(_, o); _.width > Eg.glMaxTextureSize || _.height > Eg.glMaxTextureSize; ) (h *= 0.9), (_.width *= 0.9), (_.height *= 0.9); if ( (o.scale(h, h), cy.pool.put(_), !i && null != (a = l.getCachedBitmapData(o))) ) return e.set___bitmap(a), void e.set_dirty(!1); } else { var u = cy.pool.get(), d = 1; for ( r.transform(u, o); u.width > Eg.glMaxTextureSize || u.height > Eg.glMaxTextureSize; ) (d *= 0.9), (u.width *= 0.9), (u.height *= 0.9); o.scale(d, d), cy.pool.put(u); } null == e.__canvas && ((e.__canvas = Eg.pool.get()), (e.__context = e.__canvas.getContext("2d"))), (Eg.context = e.__context); var c = Eg.context, f = cy.pool.get(); r.transform(f, o); var p = Math.floor(f.x), b = Math.floor(f.y), m = Math.ceil(f.width + f.x - p) + 2 * Eg.padding, g = Math.ceil(f.height + f.y - b) + 2 * Eg.padding; (e.__canvas.width = m), (e.__canvas.height = g), (Eg.snapCoordinates = null != e.__symbol && Lp.__instanceof(e.__symbol, Va) && Lp.__cast(e.__symbol, Va).snapCoordinates); var w = Km.pool.get(); w.copyFrom(o), w.translate(Eg.padding - p, Eg.padding - b), cy.pool.put(f), Eg.snapCoordinates ? Eg.currentTransform.setTo( w.a, w.b, w.c, w.d, Math.round(w.tx), Math.round(w.ty) ) : c.setTransform(w.a, w.b, w.c, w.d, w.tx, w.ty), Eg.beginRenderStep(); var v = Eg.drawCommandReaderPool.get(); if ((v.reset(e.__commands), Eg.snapCoordinates)) for (var y = 0, T = e.__commands.drawCommandTypes; y < T.length; ) { var S = T[y]; switch ((++y, S)) { case 0: Eg.endRenderStep(), Eg.beginRenderStep(), v.advance(), (v.prev = 0); var x, E = v; if (n) x = !0; else { var P = E.buffer.bd, R = E.bdPos; x = null == (R >= P._length ? null : P._items[R]); } if (x) Eg.context.fillStyle = "white"; else { var A = E.buffer.bd, I = E.bdPos, C = E.buffer.b, B = E.bPos; (Eg.context.fillStyle = Eg.createBitmapFill( I >= A._length ? null : A._items[I], B >= C._length ? null : C._items[B] )), (Eg.hasFill = !0); var D = E.buffer.m, k = E.mPos; if (null != (k >= D._length ? null : D._items[k])) { var F = E.buffer.m, M = E.mPos; (Eg.pendingMatrix = M >= F._length ? null : F._items[M]), null == Eg.inversePendingMatrix && (Eg.inversePendingMatrix = Km.pool.get()); var L = E.buffer.m, N = E.mPos; Eg.inversePendingMatrix.copyFrom( N >= L._length ? null : L._items[N] ), Eg.inversePendingMatrix.invert(); } else (Eg.pendingMatrix = null) != Eg.inversePendingMatrix && (Km.pool.put(Eg.inversePendingMatrix), (Eg.inversePendingMatrix = null)); } break; case 1: Eg.endRenderStep(), Eg.beginRenderStep(), v.advance(), (v.prev = 1); var O = v; if (O.buffer.clampedFloats[O.cfPos] / 255 < 0.005 && !n) Eg.hasFill = !1; else { if (n) Eg.context.fillStyle = "white"; else if (O.buffer.clampedFloats[O.cfPos] / 255 == 1) { var U = O.buffer.i, G = O.iPos, z = Ri.hex(G >= U._length ? null : U._items[G], 6); Eg.context.fillStyle = "#" + z; } else { var X = O.buffer.i, H = O.iPos, V = (16711680 & (H >= X._length ? null : X._items[H])) >>> 16, Y = O.buffer.i, W = O.iPos, j = (65280 & (W >= Y._length ? null : Y._items[W])) >>> 8, K = O.buffer.i, q = O.iPos, Z = 255 & (q >= K._length ? null : K._items[q]); Eg.context.fillStyle = "rgba(" + V + ", " + j + ", " + Z + ", " + O.buffer.clampedFloats[O.cfPos] / 255 + ")"; } Eg.hasFill = !0; } break; case 2: Eg.endRenderStep(), Eg.beginRenderStep(), v.advance(), (v.prev = 2); var J = v; if (n) Eg.context.fillStyle = "white"; else { var Q = J.buffer.i, $ = J.iPos, ee = J.buffer.ii, te = J.iiPos, se = J.buffer.ff, ne = J.ffPos, ie = J.buffer.ii, re = J.iiPos + 1, oe = J.buffer.m, ae = J.mPos, le = J.buffer.i, he = J.iPos + 1, _e = J.buffer.i, ue = J.iPos + 2; Eg.context.fillStyle = Eg.createGradientPattern( $ >= Q._length ? null : Q._items[$], te >= ee._length ? null : ee._items[te], ne >= se._length ? null : se._items[ne], re >= ie._length ? null : ie._items[re], ae >= oe._length ? null : oe._items[ae], he >= le._length ? null : le._items[he], ue >= _e._length ? null : _e._items[ue], J.buffer.twips[J.fPos] / 20 ); } var de = J.buffer.m, ce = J.mPos; (Eg.pendingMatrix = ce >= de._length ? null : de._items[ce]), (Eg.hasFill = !0); break; case 4: v.advance(), (v.prev = 4); var fe = v, pe = Eg.currentTransform, be = (fe.buffer.twips[fe.fPos + 2] / 20) * pe.a + (fe.buffer.twips[fe.fPos + 3] / 20) * pe.c + pe.tx, me = Eg.currentTransform, ge = (fe.buffer.twips[fe.fPos + 2] / 20) * me.b + (fe.buffer.twips[fe.fPos + 3] / 20) * me.d + me.ty, we = Math.round(be), ve = Math.round(ge), ye = we - be, Te = ve - ge, Se = Eg.currentTransform, xe = (fe.buffer.twips[fe.fPos] / 20) * Se.a + (fe.buffer.twips[fe.fPos + 1] / 20) * Se.c + Se.tx + ye, Ee = Eg.currentTransform, Pe = (fe.buffer.twips[fe.fPos] / 20) * Ee.b + (fe.buffer.twips[fe.fPos + 1] / 20) * Ee.d + Ee.ty + Te; Eg.context.quadraticCurveTo(xe, Pe, we, ve); break; case 8: v.advance(), (v.prev = 8); var Re = v; Eg.context.save(); var Ae = Km.pool.get(), Ie = Re.buffer.m, Ce = Re.mPos; if ( (Ae.copyFrom(Ce >= Ie._length ? null : Ie._items[Ce]), Ae.concat(Eg.currentTransform), 0 != Ae.b || 0 != Ae.c) ) throw ( (Km.pool.put(Ae), new Mp("can't use snapping on rotated images")) ); if ( (Eg.context.setTransform( Math.round(Ae.a), Math.round(Ae.b), Math.round(Ae.c), Math.round(Ae.d), Math.round(Ae.tx), Math.round(Ae.ty) ), Km.pool.put(Ae), Eg.hitTesting) ) (Eg.context.fillStyle = "white"), Eg.context.fillRect(0, 0, 1, 1); else { var Be = Re.buffer.bd, De = Re.bdPos, ke = De >= Be._length ? null : Be._items[De], Fe = ke.get_uvData(), Me = ke.get_bd().get_image().get_src(); if (null == Fe) Eg.context.drawImage(Me, 0, 0, 1, 1); else { var Le = Me.width, Ne = Me.height; Eg.context.drawImage( Me, Fe.x0 * Le, Fe.y0 * Ne, (Fe.x1 - Fe.x0) * Le, (Fe.y2 - Fe.y0) * Ne, 0, 0, 1, 1 ); } } Eg.context.restore(); break; case 14: v.advance(), (v.prev = 14); Eg.endRenderStep(), Eg.beginRenderStep(); break; case 17: v.advance(), (v.prev = 17); var Oe = v; if ( ((Eg.hasStroke || Eg.hasFill) && (Eg.hitTesting ? Eg.context.closePath() : (Eg.hasStroke && Eg.context.stroke(), Eg.context.closePath(), Eg.hasFill && Eg.context.fill(Eg.canvasWindingRule)), Eg.context.beginPath()), Eg.context.moveTo(Eg.positionX, Eg.positionY), Oe.buffer.twips[Oe.fPos] / 20 == null || Oe.buffer.twips[Oe.fPos] / 20 == -1) ) Eg.hasStroke = !1; else { Eg.context.lineWidth = 0 < Oe.buffer.twips[Oe.fPos] / 20 ? Math.max(Oe.buffer.twips[Oe.fPos] / 20, 1) : 1; var Ue = Oe.buffer.i, Ge = Oe.iPos + 3; Eg.context.lineJoin = Ew.toString( Ge >= Ue._length ? null : Ue._items[Ge] ).toLowerCase(); var ze, Xe = Oe.buffer.i, He = Oe.iPos + 2; if (0 == (He >= Xe._length ? null : Xe._items[He])) ze = "butt"; else { var Ve = Oe.buffer.i, Ye = Oe.iPos + 2; ze = iw .toString(Ye >= Ve._length ? null : Ve._items[Ye]) .toLowerCase(); } if ( ((Eg.context.lineCap = ze), (Eg.context.miterLimit = Oe.buffer.twips[Oe.fPos + 1] / 20), n) ) Eg.context.strokeStyle = "white"; else if (Oe.buffer.clampedFloats[Oe.cfPos] / 255 == 1) { var We = Oe.buffer.i, je = Oe.iPos, Ke = Ri.hex( 16777215 & (je >= We._length ? null : We._items[je]), 6 ); Eg.context.strokeStyle = "#" + Ke; } else { var qe = Oe.buffer.i, Ze = Oe.iPos, Je = (16711680 & (Ze >= qe._length ? null : qe._items[Ze])) >>> 16, Qe = Oe.buffer.i, $e = Oe.iPos, et = (65280 & ($e >= Qe._length ? null : Qe._items[$e])) >>> 8, tt = Oe.buffer.i, st = Oe.iPos, nt = 255 & (st >= tt._length ? null : tt._items[st]); Eg.context.strokeStyle = "rgba(" + Je + ", " + et + ", " + nt + ", " + Oe.buffer.clampedFloats[Oe.cfPos] / 255 + ")"; } Eg.hasStroke = 0 < Oe.buffer.clampedFloats[Oe.cfPos] / 255; } break; case 18: v.advance(), (v.prev = 18); var it = v, rt = Eg.currentTransform, ot = Math.round( (it.buffer.twips[it.fPos] / 20) * rt.a + (it.buffer.twips[it.fPos + 1] / 20) * rt.c + rt.tx ), at = Eg.currentTransform, lt = Math.round( (it.buffer.twips[it.fPos] / 20) * at.b + (it.buffer.twips[it.fPos + 1] / 20) * at.d + at.ty ); Eg.context.lineTo(ot, lt), (Eg.positionX = ot), (Eg.positionY = lt); break; case 19: v.advance(), (v.prev = 19); var ht = v, _t = Eg.currentTransform, ut = Math.round( (ht.buffer.twips[ht.fPos] / 20) * _t.a + (ht.buffer.twips[ht.fPos + 1] / 20) * _t.c + _t.tx ), dt = Eg.currentTransform, ct = Math.round( (ht.buffer.twips[ht.fPos] / 20) * dt.b + (ht.buffer.twips[ht.fPos + 1] / 20) * dt.d + dt.ty ); Eg.context.moveTo(ut, ct), (Eg.positionX = ut), (Eg.positionY = ct), (Eg.closeGap = !0), (Eg.startX = ut), (Eg.startY = ct); break; default: throw new Mp(":TODO:"); } } else for ( var ft = 0, pt = e.__commands.drawCommandTypes; ft < pt.length; ) { var bt = pt[ft]; switch ((++ft, bt)) { case 0: Eg.endRenderStep(), Eg.beginRenderStep(), v.advance(), (v.prev = 0); var mt, gt = v; if (n) mt = !0; else { var wt = gt.buffer.bd, vt = gt.bdPos; mt = null == (vt >= wt._length ? null : wt._items[vt]); } if (mt) Eg.context.fillStyle = "white"; else { var yt = gt.buffer.bd, Tt = gt.bdPos, St = gt.buffer.b, xt = gt.bPos; (Eg.context.fillStyle = Eg.createBitmapFill( Tt >= yt._length ? null : yt._items[Tt], xt >= St._length ? null : St._items[xt] )), (Eg.hasFill = !0); var Et = gt.buffer.m, Pt = gt.mPos; if (null != (Pt >= Et._length ? null : Et._items[Pt])) { var Rt = gt.buffer.m, At = gt.mPos; (Eg.pendingMatrix = At >= Rt._length ? null : Rt._items[At]), null == Eg.inversePendingMatrix && (Eg.inversePendingMatrix = Km.pool.get()); var It = gt.buffer.m, Ct = gt.mPos; Eg.inversePendingMatrix.copyFrom( Ct >= It._length ? null : It._items[Ct] ), Eg.inversePendingMatrix.invert(); } else (Eg.pendingMatrix = null) != Eg.inversePendingMatrix && (Km.pool.put(Eg.inversePendingMatrix), (Eg.inversePendingMatrix = null)); } break; case 1: Eg.endRenderStep(), Eg.beginRenderStep(), v.advance(), (v.prev = 1); var Bt = v; if (Bt.buffer.clampedFloats[Bt.cfPos] / 255 < 0.005 && !n) Eg.hasFill = !1; else { if (n) Eg.context.fillStyle = "white"; else if (Bt.buffer.clampedFloats[Bt.cfPos] / 255 == 1) { var Dt = Bt.buffer.i, kt = Bt.iPos, Ft = Ri.hex(kt >= Dt._length ? null : Dt._items[kt], 6); Eg.context.fillStyle = "#" + Ft; } else { var Mt = Bt.buffer.i, Lt = Bt.iPos, Nt = (16711680 & (Lt >= Mt._length ? null : Mt._items[Lt])) >>> 16, Ot = Bt.buffer.i, Ut = Bt.iPos, Gt = (65280 & (Ut >= Ot._length ? null : Ot._items[Ut])) >>> 8, zt = Bt.buffer.i, Xt = Bt.iPos, Ht = 255 & (Xt >= zt._length ? null : zt._items[Xt]); Eg.context.fillStyle = "rgba(" + Nt + ", " + Gt + ", " + Ht + ", " + Bt.buffer.clampedFloats[Bt.cfPos] / 255 + ")"; } Eg.hasFill = !0; } break; case 2: Eg.endRenderStep(), Eg.beginRenderStep(), v.advance(), (v.prev = 2); var Vt = v; if (n) Eg.context.fillStyle = "white"; else { var Yt = Vt.buffer.i, Wt = Vt.iPos, jt = Vt.buffer.ii, Kt = Vt.iiPos, qt = Vt.buffer.ff, Zt = Vt.ffPos, Jt = Vt.buffer.ii, Qt = Vt.iiPos + 1, $t = Vt.buffer.m, es = Vt.mPos, ts = Vt.buffer.i, ss = Vt.iPos + 1, ns = Vt.buffer.i, is = Vt.iPos + 2; Eg.context.fillStyle = Eg.createGradientPattern( Wt >= Yt._length ? null : Yt._items[Wt], Kt >= jt._length ? null : jt._items[Kt], Zt >= qt._length ? null : qt._items[Zt], Qt >= Jt._length ? null : Jt._items[Qt], es >= $t._length ? null : $t._items[es], ss >= ts._length ? null : ts._items[ss], is >= ns._length ? null : ns._items[is], Vt.buffer.twips[Vt.fPos] / 20 ); } var rs = Vt.buffer.m, os = Vt.mPos; (Eg.pendingMatrix = os >= rs._length ? null : rs._items[os]), (Eg.hasFill = !0); break; case 3: v.advance(), (v.prev = 3); var as = v; Eg.context.bezierCurveTo( as.buffer.twips[as.fPos] / 20, as.buffer.twips[as.fPos + 1] / 20, as.buffer.twips[as.fPos + 2] / 20, as.buffer.twips[as.fPos + 3] / 20, as.buffer.twips[as.fPos + 4] / 20, as.buffer.twips[as.fPos + 5] / 20 ); break; case 4: v.advance(), (v.prev = 4); var ls = v; Eg.context.quadraticCurveTo( ls.buffer.twips[ls.fPos] / 20, ls.buffer.twips[ls.fPos + 1] / 20, ls.buffer.twips[ls.fPos + 2] / 20, ls.buffer.twips[ls.fPos + 3] / 20 ); break; case 5: v.advance(), (v.prev = 5); var hs = v; Eg.context.moveTo( hs.buffer.twips[hs.fPos] / 20, hs.buffer.twips[hs.fPos + 1] / 20 ), Eg.context.arc( hs.buffer.twips[hs.fPos] / 20, hs.buffer.twips[hs.fPos + 1] / 20, hs.buffer.twips[hs.fPos + 2] / 20, 0, 2 * Math.PI, !0 ); break; case 6: v.advance(), (v.prev = 6); var _s = v; Eg.context.moveTo( _s.buffer.twips[_s.fPos] / 20, _s.buffer.twips[_s.fPos + 1] / 20 ), Eg.context.arc( _s.buffer.twips[_s.fPos] / 20, _s.buffer.twips[_s.fPos + 1] / 20, _s.buffer.twips[_s.fPos + 2] / 20, _s.buffer.twips[_s.fPos + 3] / 20, _s.buffer.twips[_s.fPos + 4] / 20, !0 ); break; case 7: v.advance(), (v.prev = 7); var us = v, ds = us.buffer.twips[us.fPos] / 20, cs = us.buffer.twips[us.fPos + 1] / 20, fs = us.buffer.twips[us.fPos + 2] / 20, ps = us.buffer.twips[us.fPos + 3] / 20, bs = (fs / 2) * 0.5522848, ms = (ps / 2) * 0.5522848, gs = ds + fs, ws = cs + ps, vs = ds + fs / 2, ys = cs + ps / 2; Eg.context.moveTo(ds, ys), Eg.context.bezierCurveTo(ds, ys - ms, vs - bs, cs, vs, cs), Eg.context.bezierCurveTo(vs + bs, cs, gs, ys - ms, gs, ys), Eg.context.bezierCurveTo(gs, ys + ms, vs + bs, ws, vs, ws), Eg.context.bezierCurveTo(vs - bs, ws, ds, ys + ms, ds, ys); break; case 8: v.advance(), (v.prev = 8); var Ts = v; Eg.context.save(); var Ss = Ts.buffer.m, xs = Ts.mPos, Es = Ts.buffer.m, Ps = Ts.mPos, Rs = Ts.buffer.m, As = Ts.mPos, Is = Ts.buffer.m, Cs = Ts.mPos, Bs = Ts.buffer.m, Ds = Ts.mPos, ks = Ts.buffer.m, Fs = Ts.mPos; Eg.context.transform( (xs >= Ss._length ? null : Ss._items[xs]).a, (Ps >= Es._length ? null : Es._items[Ps]).b, (As >= Rs._length ? null : Rs._items[As]).c, (Cs >= Is._length ? null : Is._items[Cs]).d, (Ds >= Bs._length ? null : Bs._items[Ds]).tx, (Fs >= ks._length ? null : ks._items[Fs]).ty ); var Ms = Ts.buffer.bd, Ls = Ts.bdPos; if ( null != (Ls >= Ms._length ? null : Ms._items[Ls]) && !Eg.hitTesting ) { var Ns = Ts.buffer.bd, Os = Ts.bdPos, Us = Os >= Ns._length ? null : Ns._items[Os], Gs = Us.get_uvData(), zs = Us.get_bd().get_image().get_src(); if (null == Gs) Eg.context.drawImage(zs, 0, 0, 1, 1); else { var Xs = zs.width, Hs = zs.height; Eg.context.drawImage( zs, Gs.x0 * Xs, Gs.y0 * Hs, (Gs.x1 - Gs.x0) * Xs, (Gs.y2 - Gs.y0) * Hs, 0, 0, 1, 1 ); } } else Eg.context.rect(0, 0, 1, 1); Eg.context.restore(); break; case 10: v.advance(), (v.prev = 10); var Vs = v; Eg.context.rect( Vs.buffer.twips[Vs.fPos] / 20, Vs.buffer.twips[Vs.fPos + 1] / 20, Vs.buffer.twips[Vs.fPos + 2] / 20, Vs.buffer.twips[Vs.fPos + 3] / 20 ); break; case 11: v.advance(), (v.prev = 11); var Ys = v; Eg.drawRoundRect( Ys.buffer.twips[Ys.fPos] / 20, Ys.buffer.twips[Ys.fPos + 1] / 20, Ys.buffer.twips[Ys.fPos + 2] / 20, Ys.buffer.twips[Ys.fPos + 3] / 20, Ys.buffer.twips[Ys.fPos + 4] / 20, Ys.buffer.twips[Ys.fPos + 5] / 20 ); break; case 13: Eg.endRenderStep(), Eg.beginRenderStep(), v.advance(), (v.prev = 13); for ( var Ws, js, Ks, qs, Zs, Js, Qs, $s, en, tn, sn, nn, rn, on, an, ln, hn, _n, un, dn, cn, fn, pn, bn, mn, gn, wn, vn, yn = v, Tn = yn.buffer.vf, Sn = yn.vfPos, xn = Sn >= Tn._length ? null : Tn._items[Sn], En = yn.buffer.vi, Pn = yn.viPos + 1, Rn = Pn >= En._length ? null : En._items[Pn], An = yn.buffer.vf, In = yn.vfPos + 2, Cn = In >= An._length ? null : An._items[In], Bn = 0, Dn = Rn.length; Bn < Dn; ) { (js = (Ws = Bn) + 1), (Ks = Bn + 2), (qs = 2 * Rn.data[Ws]), (Zs = 2 * Rn.data[Ws] + 1), (Js = 2 * Rn.data[js]), (Qs = 2 * Rn.data[js] + 1), ($s = 2 * Rn.data[Ks]), (en = 2 * Rn.data[Ks] + 1), (tn = xn.data[qs]), (sn = xn.data[Zs]), (nn = xn.data[Js]), (rn = xn.data[Qs]), (on = xn.data[$s]), (an = xn.data[en]); var kn = yn.buffer.i, Fn = yn.iPos + 3; switch (Fn >= kn._length ? null : kn._items[Fn]) { case 0: if ((nn - tn) * (an - sn) - (rn - sn) * (on - tn) < 0) { Bn += 3; continue; } break; case 2: if ((nn - tn) * (an - sn) - (rn - sn) * (on - tn) < 0) break; Bn += 3; continue; } var Mn = c; Mn.save(), Mn.beginPath(), Mn.moveTo(tn, sn), Mn.lineTo(nn, rn), Mn.lineTo(on, an), Mn.closePath(), Mn.clip(), (ln = Cn.data[qs] * null.width), (_n = Cn.data[Js] * null.width), (dn = Cn.data[$s] * null.width), (hn = Cn.data[Zs] * null.height), (un = Cn.data[Qs] * null.height), 0 != (fn = ln * ((cn = Cn.data[en] * null.height) - un) - _n * cn + dn * un + (_n - dn) * hn) ? ((pn = -( hn * (on - nn) - un * on + cn * nn + (un - cn) * tn ) / fn), (bn = (un * an + hn * (rn - an) - cn * rn + (cn - un) * sn) / fn), (mn = (ln * (on - nn) - _n * on + dn * nn + (_n - dn) * tn) / fn), (gn = -( _n * an + ln * (rn - an) - dn * rn + (dn - _n) * sn ) / fn), (wn = (ln * (cn * nn - un * on) + hn * (_n * on - dn * nn) + (dn * un - _n * cn) * tn) / fn), (vn = (ln * (cn * rn - un * an) + hn * (_n * an - dn * rn) + (dn * un - _n * cn) * sn) / fn), Mn.transform(pn, bn, mn, gn, wn, vn), Mn.drawImage(null, 0, 0), Mn.restore(), (Bn += 3)) : (Bn += 3); } break; case 14: v.advance(), (v.prev = 14); Eg.endRenderStep(), Eg.beginRenderStep(); break; case 15: v.advance(), (v.prev = 15); var Ln = v; if ( (Eg.hasStroke && Eg.closePath(), Eg.context.moveTo(Eg.positionX, Eg.positionY), n) ) Eg.context.strokeStyle = "white"; else { var Nn = Ln.buffer.bd, On = Ln.bdPos, Un = Ln.buffer.b, Gn = Ln.bPos; Eg.context.strokeStyle = Eg.createBitmapFill( On >= Nn._length ? null : Nn._items[On], Gn >= Un._length ? null : Un._items[Gn] ); } Eg.hasStroke = !0; break; case 16: v.advance(), (v.prev = 16); var zn = v; if ( (Eg.hasStroke && Eg.closePath(), Eg.context.moveTo(Eg.positionX, Eg.positionY), n) ) Eg.context.strokeStyle = "white"; else { var Xn = zn.buffer.i, Hn = zn.iPos, Vn = zn.buffer.ii, Yn = zn.iiPos, Wn = zn.buffer.ff, jn = zn.ffPos, Kn = zn.buffer.ii, qn = zn.iiPos + 1, Zn = zn.buffer.m, Jn = zn.mPos, Qn = zn.buffer.i, $n = zn.iPos + 1, ei = zn.buffer.i, ti = zn.iPos + 2; Eg.context.strokeStyle = Eg.createGradientPattern( Hn >= Xn._length ? null : Xn._items[Hn], Yn >= Vn._length ? null : Vn._items[Yn], jn >= Wn._length ? null : Wn._items[jn], qn >= Kn._length ? null : Kn._items[qn], Jn >= Zn._length ? null : Zn._items[Jn], $n >= Qn._length ? null : Qn._items[$n], ti >= ei._length ? null : ei._items[ti], zn.buffer.twips[zn.fPos] / 20 ); } var si = zn.buffer.m, ni = zn.mPos; (Eg.pendingMatrix = ni >= si._length ? null : si._items[ni]), (Eg.hasStroke = !0); break; case 17: v.advance(), (v.prev = 17); var ii = v; if ( ((Eg.hasStroke || Eg.hasFill) && (Eg.hitTesting ? Eg.context.closePath() : (Eg.hasStroke && Eg.context.stroke(), Eg.context.closePath(), Eg.hasFill && Eg.context.fill(Eg.canvasWindingRule)), Eg.context.beginPath()), Eg.context.moveTo(Eg.positionX, Eg.positionY), ii.buffer.twips[ii.fPos] / 20 == null || ii.buffer.twips[ii.fPos] / 20 == -1) ) Eg.hasStroke = !1; else { Eg.context.lineWidth = 0 < ii.buffer.twips[ii.fPos] / 20 ? Math.max(ii.buffer.twips[ii.fPos] / 20, 1) : 1; var ri = ii.buffer.i, oi = ii.iPos + 3; Eg.context.lineJoin = Ew.toString( oi >= ri._length ? null : ri._items[oi] ).toLowerCase(); var ai, li = ii.buffer.i, hi = ii.iPos + 2; if (0 == (hi >= li._length ? null : li._items[hi])) ai = "butt"; else { var _i = ii.buffer.i, ui = ii.iPos + 2; ai = iw .toString(ui >= _i._length ? null : _i._items[ui]) .toLowerCase(); } if ( ((Eg.context.lineCap = ai), (Eg.context.miterLimit = ii.buffer.twips[ii.fPos + 1] / 20), n) ) Eg.context.strokeStyle = "white"; else if (ii.buffer.clampedFloats[ii.cfPos] / 255 == 1) { var di = ii.buffer.i, ci = ii.iPos, fi = Ri.hex( 16777215 & (ci >= di._length ? null : di._items[ci]), 6 ); Eg.context.strokeStyle = "#" + fi; } else { var pi = ii.buffer.i, bi = ii.iPos, mi = (16711680 & (bi >= pi._length ? null : pi._items[bi])) >>> 16, gi = ii.buffer.i, wi = ii.iPos, vi = (65280 & (wi >= gi._length ? null : gi._items[wi])) >>> 8, yi = ii.buffer.i, Ti = ii.iPos, Si = 255 & (Ti >= yi._length ? null : yi._items[Ti]); Eg.context.strokeStyle = "rgba(" + mi + ", " + vi + ", " + Si + ", " + ii.buffer.clampedFloats[ii.cfPos] / 255 + ")"; } Eg.hasStroke = 0 < ii.buffer.clampedFloats[ii.cfPos] / 255; } break; case 18: v.advance(), (v.prev = 18); var xi = v; Eg.context.lineTo( xi.buffer.twips[xi.fPos] / 20, xi.buffer.twips[xi.fPos + 1] / 20 ), (Eg.positionX = xi.buffer.twips[xi.fPos] / 20), (Eg.positionY = xi.buffer.twips[xi.fPos + 1] / 20); break; case 19: v.advance(), (v.prev = 19); var Ei = v; Eg.context.moveTo( Ei.buffer.twips[Ei.fPos] / 20, Ei.buffer.twips[Ei.fPos + 1] / 20 ), (Eg.positionX = Ei.buffer.twips[Ei.fPos] / 20), (Eg.positionY = Ei.buffer.twips[Ei.fPos + 1] / 20), (Eg.closeGap = !0), (Eg.startX = Ei.buffer.twips[Ei.fPos] / 20), (Eg.startY = Ei.buffer.twips[Ei.fPos + 1] / 20); break; default: v.advance(), (v.prev = bt); } } Eg.endRenderStep(), Eg.drawCommandReaderPool.put(v); var Pi = Km.pool.get(); Pi.copyFrom(w), Pi.invert(), e.set___bitmap(sw.fromGraphics(e, null, Pi)), (e.__canvas = null), Km.pool.put(Pi), Km.pool.put(w), i || null == e.__symbol || (Lp.__instanceof(e.__symbol, Va) && Lp.__cast(e.__symbol, Va).setCachedBitmapData(e.__bitmap, o)); } e.set_dirty(!1); } }), (Eg.cubicCurveTo = function (e) { e.advance(), (e.prev = 3); var t = e; Eg.context.bezierCurveTo( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20, t.buffer.twips[t.fPos + 2] / 20, t.buffer.twips[t.fPos + 3] / 20, t.buffer.twips[t.fPos + 4] / 20, t.buffer.twips[t.fPos + 5] / 20 ); }), (Eg.curveTo = function (e) { e.advance(), (e.prev = 4); var t = e; Eg.context.quadraticCurveTo( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20, t.buffer.twips[t.fPos + 2] / 20, t.buffer.twips[t.fPos + 3] / 20 ); }), (Eg.snappedCurveTo = function (e) { e.advance(), (e.prev = 4); var t = e, s = Eg.currentTransform, n = (t.buffer.twips[t.fPos + 2] / 20) * s.a + (t.buffer.twips[t.fPos + 3] / 20) * s.c + s.tx, i = Eg.currentTransform, r = (t.buffer.twips[t.fPos + 2] / 20) * i.b + (t.buffer.twips[t.fPos + 3] / 20) * i.d + i.ty, o = Math.round(n), a = Math.round(r), l = o - n, h = a - r, _ = Eg.currentTransform, u = (t.buffer.twips[t.fPos] / 20) * _.a + (t.buffer.twips[t.fPos + 1] / 20) * _.c + _.tx + l, d = Eg.currentTransform, c = (t.buffer.twips[t.fPos] / 20) * d.b + (t.buffer.twips[t.fPos + 1] / 20) * d.d + d.ty + h; Eg.context.quadraticCurveTo(u, c, o, a); }), (Eg.drawCircle = function (e) { e.advance(), (e.prev = 5); var t = e; Eg.context.moveTo( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20 ), Eg.context.arc( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20, t.buffer.twips[t.fPos + 2] / 20, 0, 2 * Math.PI, !0 ); }), (Eg.drawArc = function (e) { e.advance(), (e.prev = 6); var t = e; Eg.context.moveTo( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20 ), Eg.context.arc( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20, t.buffer.twips[t.fPos + 2] / 20, t.buffer.twips[t.fPos + 3] / 20, t.buffer.twips[t.fPos + 4] / 20, !0 ); }), (Eg.drawEllipse = function (e) { e.advance(), (e.prev = 7); var t = e, s = t.buffer.twips[t.fPos] / 20, n = t.buffer.twips[t.fPos + 1] / 20, i = t.buffer.twips[t.fPos + 2] / 20, r = t.buffer.twips[t.fPos + 3] / 20, o = (i / 2) * 0.5522848, a = (r / 2) * 0.5522848, l = s + i, h = n + r, _ = s + i / 2, u = n + r / 2; Eg.context.moveTo(s, u), Eg.context.bezierCurveTo(s, u - a, _ - o, n, _, n), Eg.context.bezierCurveTo(_ + o, n, l, u - a, l, u), Eg.context.bezierCurveTo(l, u + a, _ + o, h, _, h), Eg.context.bezierCurveTo(_ - o, h, s, u + a, s, u); }), (Eg.drawImageFromBitmapData = function (e) { var t = e.get_uvData(), s = e.get_bd().get_image().get_src(); if (null == t) Eg.context.drawImage(s, 0, 0, 1, 1); else { var n = s.width, i = s.height; Eg.context.drawImage( s, t.x0 * n, t.y0 * i, (t.x1 - t.x0) * n, (t.y2 - t.y0) * i, 0, 0, 1, 1 ); } }), (Eg.drawImage = function (e) { e.advance(), (e.prev = 8); var t = e; Eg.context.save(); var s = t.buffer.m, n = t.mPos, i = t.buffer.m, r = t.mPos, o = t.buffer.m, a = t.mPos, l = t.buffer.m, h = t.mPos, _ = t.buffer.m, u = t.mPos, d = t.buffer.m, c = t.mPos; Eg.context.transform( (n >= s._length ? null : s._items[n]).a, (r >= i._length ? null : i._items[r]).b, (a >= o._length ? null : o._items[a]).c, (h >= l._length ? null : l._items[h]).d, (u >= _._length ? null : _._items[u]).tx, (c >= d._length ? null : d._items[c]).ty ); var f = t.buffer.bd, p = t.bdPos; if (null != (p >= f._length ? null : f._items[p]) && !Eg.hitTesting) { var b = t.buffer.bd, m = t.bdPos, g = m >= b._length ? null : b._items[m], w = g.get_uvData(), v = g.get_bd().get_image().get_src(); if (null == w) Eg.context.drawImage(v, 0, 0, 1, 1); else { var y = v.width, T = v.height; Eg.context.drawImage( v, w.x0 * y, w.y0 * T, (w.x1 - w.x0) * y, (w.y2 - w.y0) * T, 0, 0, 1, 1 ); } } else Eg.context.rect(0, 0, 1, 1); Eg.context.restore(); }), (Eg.snappedDrawImage = function (e) { e.advance(), (e.prev = 8); var t = e; Eg.context.save(); var s = Km.pool.get(), n = t.buffer.m, i = t.mPos; if ( (s.copyFrom(i >= n._length ? null : n._items[i]), s.concat(Eg.currentTransform), 0 != s.b || 0 != s.c) ) throw (Km.pool.put(s), new Mp("can't use snapping on rotated images")); if ( (Eg.context.setTransform( Math.round(s.a), Math.round(s.b), Math.round(s.c), Math.round(s.d), Math.round(s.tx), Math.round(s.ty) ), Km.pool.put(s), Eg.hitTesting) ) (Eg.context.fillStyle = "white"), Eg.context.fillRect(0, 0, 1, 1); else { var r = t.buffer.bd, o = t.bdPos, a = o >= r._length ? null : r._items[o], l = a.get_uvData(), h = a.get_bd().get_image().get_src(); if (null == l) Eg.context.drawImage(h, 0, 0, 1, 1); else { var _ = h.width, u = h.height; Eg.context.drawImage( h, l.x0 * _, l.y0 * u, (l.x1 - l.x0) * _, (l.y2 - l.y0) * u, 0, 0, 1, 1 ); } } Eg.context.restore(); }), (Eg.drawRoundRect2 = function (e) { e.advance(), (e.prev = 11); var t = e; Eg.drawRoundRect( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20, t.buffer.twips[t.fPos + 2] / 20, t.buffer.twips[t.fPos + 3] / 20, t.buffer.twips[t.fPos + 4] / 20, t.buffer.twips[t.fPos + 5] / 20 ); }), (Eg.lineTo = function (e) { e.advance(), (e.prev = 18); var t = e; Eg.context.lineTo( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20 ), (Eg.positionX = t.buffer.twips[t.fPos] / 20), (Eg.positionY = t.buffer.twips[t.fPos + 1] / 20); }), (Eg.snappedLineTo = function (e) { e.advance(), (e.prev = 18); var t = e, s = Eg.currentTransform, n = Math.round( (t.buffer.twips[t.fPos] / 20) * s.a + (t.buffer.twips[t.fPos + 1] / 20) * s.c + s.tx ), i = Eg.currentTransform, r = Math.round( (t.buffer.twips[t.fPos] / 20) * i.b + (t.buffer.twips[t.fPos + 1] / 20) * i.d + i.ty ); Eg.context.lineTo(n, r), (Eg.positionX = n), (Eg.positionY = r); }), (Eg.moveTo = function (e) { e.advance(), (e.prev = 19); var t = e; Eg.context.moveTo( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20 ), (Eg.positionX = t.buffer.twips[t.fPos] / 20), (Eg.positionY = t.buffer.twips[t.fPos + 1] / 20), (Eg.closeGap = !0), (Eg.startX = t.buffer.twips[t.fPos] / 20), (Eg.startY = t.buffer.twips[t.fPos + 1] / 20); }), (Eg.snappedMoveTo = function (e) { e.advance(), (e.prev = 19); var t = e, s = Eg.currentTransform, n = Math.round( (t.buffer.twips[t.fPos] / 20) * s.a + (t.buffer.twips[t.fPos + 1] / 20) * s.c + s.tx ), i = Eg.currentTransform, r = Math.round( (t.buffer.twips[t.fPos] / 20) * i.b + (t.buffer.twips[t.fPos + 1] / 20) * i.d + i.ty ); Eg.context.moveTo(n, r), (Eg.positionX = n), (Eg.positionY = r), (Eg.closeGap = !0), (Eg.startX = n), (Eg.startY = r); }), (Eg.lineStyle = function (e, t) { e.advance(), (e.prev = 17); var s = e; if ( ((Eg.hasStroke || Eg.hasFill) && (Eg.hitTesting ? Eg.context.closePath() : (Eg.hasStroke && Eg.context.stroke(), Eg.context.closePath(), Eg.hasFill && Eg.context.fill(Eg.canvasWindingRule)), Eg.context.beginPath()), Eg.context.moveTo(Eg.positionX, Eg.positionY), s.buffer.twips[s.fPos] / 20 == null || s.buffer.twips[s.fPos] / 20 == -1) ) Eg.hasStroke = !1; else { Eg.context.lineWidth = 0 < s.buffer.twips[s.fPos] / 20 ? Math.max(s.buffer.twips[s.fPos] / 20, 1) : 1; var n = s.buffer.i, i = s.iPos + 3; Eg.context.lineJoin = Ew.toString( i >= n._length ? null : n._items[i] ).toLowerCase(); var r, o = s.buffer.i, a = s.iPos + 2; if (0 == (a >= o._length ? null : o._items[a])) r = "butt"; else { var l = s.buffer.i, h = s.iPos + 2; r = iw.toString(h >= l._length ? null : l._items[h]).toLowerCase(); } if ( ((Eg.context.lineCap = r), (Eg.context.miterLimit = s.buffer.twips[s.fPos + 1] / 20), t) ) Eg.context.strokeStyle = "white"; else if (s.buffer.clampedFloats[s.cfPos] / 255 == 1) { var _ = s.buffer.i, u = s.iPos, d = Ri.hex(16777215 & (u >= _._length ? null : _._items[u]), 6); Eg.context.strokeStyle = "#" + d; } else { var c = s.buffer.i, f = s.iPos, p = (16711680 & (f >= c._length ? null : c._items[f])) >>> 16, b = s.buffer.i, m = s.iPos, g = (65280 & (m >= b._length ? null : b._items[m])) >>> 8, w = s.buffer.i, v = s.iPos, y = 255 & (v >= w._length ? null : w._items[v]); Eg.context.strokeStyle = "rgba(" + p + ", " + g + ", " + y + ", " + s.buffer.clampedFloats[s.cfPos] / 255 + ")"; } Eg.hasStroke = 0 < s.buffer.clampedFloats[s.cfPos] / 255; } }), (Eg.lineGradientStyle = function (e, t) { e.advance(), (e.prev = 16); var s = e; if ( (Eg.hasStroke && Eg.closePath(), Eg.context.moveTo(Eg.positionX, Eg.positionY), t) ) Eg.context.strokeStyle = "white"; else { var n = s.buffer.i, i = s.iPos, r = s.buffer.ii, o = s.iiPos, a = s.buffer.ff, l = s.ffPos, h = s.buffer.ii, _ = s.iiPos + 1, u = s.buffer.m, d = s.mPos, c = s.buffer.i, f = s.iPos + 1, p = s.buffer.i, b = s.iPos + 2; Eg.context.strokeStyle = Eg.createGradientPattern( i >= n._length ? null : n._items[i], o >= r._length ? null : r._items[o], l >= a._length ? null : a._items[l], _ >= h._length ? null : h._items[_], d >= u._length ? null : u._items[d], f >= c._length ? null : c._items[f], b >= p._length ? null : p._items[b], s.buffer.twips[s.fPos] / 20 ); } var m = s.buffer.m, g = s.mPos; (Eg.pendingMatrix = g >= m._length ? null : m._items[g]), (Eg.hasStroke = !0); }), (Eg.lineBitmapStyle = function (e, t) { e.advance(), (e.prev = 15); var s = e; if ( (Eg.hasStroke && Eg.closePath(), Eg.context.moveTo(Eg.positionX, Eg.positionY), t) ) Eg.context.strokeStyle = "white"; else { var n = s.buffer.bd, i = s.bdPos, r = s.buffer.b, o = s.bPos; Eg.context.strokeStyle = Eg.createBitmapFill( i >= n._length ? null : n._items[i], o >= r._length ? null : r._items[o] ); } Eg.hasStroke = !0; }), (Eg.beginBitmapFill = function (e, t) { e.advance(), (e.prev = 0); var s, n = e; if (t) s = !0; else { var i = n.buffer.bd, r = n.bdPos; s = null == (r >= i._length ? null : i._items[r]); } if (s) Eg.context.fillStyle = "white"; else { var o = n.buffer.bd, a = n.bdPos, l = n.buffer.b, h = n.bPos; (Eg.context.fillStyle = Eg.createBitmapFill( a >= o._length ? null : o._items[a], h >= l._length ? null : l._items[h] )), (Eg.hasFill = !0); var _ = n.buffer.m, u = n.mPos; if (null != (u >= _._length ? null : _._items[u])) { var d = n.buffer.m, c = n.mPos; (Eg.pendingMatrix = c >= d._length ? null : d._items[c]), null == Eg.inversePendingMatrix && (Eg.inversePendingMatrix = Km.pool.get()); var f = n.buffer.m, p = n.mPos; Eg.inversePendingMatrix.copyFrom(p >= f._length ? null : f._items[p]), Eg.inversePendingMatrix.invert(); } else (Eg.pendingMatrix = null) != Eg.inversePendingMatrix && (Km.pool.put(Eg.inversePendingMatrix), (Eg.inversePendingMatrix = null)); } }), (Eg.beginFill = function (e, t) { e.advance(), (e.prev = 1); var s = e; if (s.buffer.clampedFloats[s.cfPos] / 255 < 0.005 && !t) Eg.hasFill = !1; else { if (t) Eg.context.fillStyle = "white"; else if (s.buffer.clampedFloats[s.cfPos] / 255 == 1) { var n = s.buffer.i, i = s.iPos, r = Ri.hex(i >= n._length ? null : n._items[i], 6); Eg.context.fillStyle = "#" + r; } else { var o = s.buffer.i, a = s.iPos, l = (16711680 & (a >= o._length ? null : o._items[a])) >>> 16, h = s.buffer.i, _ = s.iPos, u = (65280 & (_ >= h._length ? null : h._items[_])) >>> 8, d = s.buffer.i, c = s.iPos, f = 255 & (c >= d._length ? null : d._items[c]); Eg.context.fillStyle = "rgba(" + l + ", " + u + ", " + f + ", " + s.buffer.clampedFloats[s.cfPos] / 255 + ")"; } Eg.hasFill = !0; } }), (Eg.beginGradientFill = function (e, t) { e.advance(), (e.prev = 2); var s = e; if (t) Eg.context.fillStyle = "white"; else { var n = s.buffer.i, i = s.iPos, r = s.buffer.ii, o = s.iiPos, a = s.buffer.ff, l = s.ffPos, h = s.buffer.ii, _ = s.iiPos + 1, u = s.buffer.m, d = s.mPos, c = s.buffer.i, f = s.iPos + 1, p = s.buffer.i, b = s.iPos + 2; Eg.context.fillStyle = Eg.createGradientPattern( i >= n._length ? null : n._items[i], o >= r._length ? null : r._items[o], l >= a._length ? null : a._items[l], _ >= h._length ? null : h._items[_], d >= u._length ? null : u._items[d], f >= c._length ? null : c._items[f], b >= p._length ? null : p._items[b], s.buffer.twips[s.fPos] / 20 ); } var m = s.buffer.m, g = s.mPos; (Eg.pendingMatrix = g >= m._length ? null : m._items[g]), (Eg.hasFill = !0); }), (Eg.drawRect = function (e) { e.advance(), (e.prev = 10); var t = e; Eg.context.rect( t.buffer.twips[t.fPos] / 20, t.buffer.twips[t.fPos + 1] / 20, t.buffer.twips[t.fPos + 2] / 20, t.buffer.twips[t.fPos + 3] / 20 ); }); var Pg = function (e) { $m.call(this, e); }; ((s["openfl._internal.renderer.canvas.CanvasMaskManager"] = Pg).__name__ = [ "openfl", "_internal", "renderer", "canvas", "CanvasMaskManager", ]), (Pg.__super__ = $m), (Pg.prototype = n($m.prototype, { pushMask: function (e) { var t = this.renderSession.context; t.save(); var s = e.__getWorldTransform(); t.setTransform(s.a, s.b, s.c, s.d, s.tx, s.ty), t.beginPath(), e.__renderCanvasMask(this.renderSession), t.clip(); }, pushRect: function (e, t) { var s = this.renderSession.context; s.save(), s.setTransform(t.a, t.b, t.c, t.d, t.tx, t.ty), s.beginPath(), s.rect(e.x, e.y, e.width, e.height), s.clip(); }, popMask: function () { this.renderSession.context.restore(); }, popRect: function () { this.renderSession.context.restore(); }, __class__: Pg, })); var Rg = function (e, t, s) { eg.call(this, e, t), (this.context = s), (this.renderSession = new xg()), (this.renderSession.context = s), ((this.renderSession.renderer = this).renderSession.maskManager = new Pg( this.renderSession )); }; ((s["openfl._internal.renderer.canvas.CanvasRenderer"] = Rg).__name__ = [ "openfl", "_internal", "renderer", "canvas", "CanvasRenderer", ]), (Rg.__super__ = eg), (Rg.prototype = n(eg.prototype, { render: function (e) { this.context.setTransform(1, 0, 0, 1, 0, 0), (this.context.globalAlpha = 1), !e.__transparent && e.__clearBeforeRender ? ((this.context.fillStyle = e.__colorString), this.context.fillRect(0, 0, e.stageWidth, e.stageHeight)) : e.__transparent && e.__clearBeforeRender && this.context.clearRect(0, 0, e.stageWidth, e.stageHeight), e.__renderCanvas(this.renderSession); }, __class__: Rg, })); var Ag = function () {}; ((s["openfl._internal.renderer.canvas.CanvasTextField"] = Ag).__name__ = [ "openfl", "_internal", "renderer", "canvas", "CanvasTextField", ]), (Ag.disableInputMode = function (e) {}), (Ag.enableInputMode = function (e) { if (((e.__cursorPosition = -1), null == e.__hiddenInput)) { e.__hiddenInput = window.document.createElement("input"); var t = e.__hiddenInput; (t.type = "text"), (t.style.position = "absolute"), (t.style.opacity = "0"), (t.style.color = "transparent"), (t.style.left = "0px"), (t.style.top = "50%"), new V("(iPad|iPhone|iPod).*OS 8_", "gi").match( window.navigator.userAgent ) ? ((t.style.fontSize = "0px"), (t.style.width = "0px"), (t.style.height = "0px")) : ((t.style.width = "1px"), (t.style.height = "1px")), (t.style.pointerEvents = "none"), (t.style.zIndex = "-10000000"), 0 < e.maxChars && (t.maxLength = e.maxChars), window.document.body.appendChild(t), (t.value = e.text); } }), (Ag.render = function (e, t) { var s = e.__graphics; if (e.__dirty || null == s || s.get_dirty() || null == s.__bitmap) { var n = e.__textEngine; if ( (e.__updateLayout(), (e.__showCursor || (null != n.text && "" != n.text) || n.background || n.border || n.__hasFocus) && (!(n.width <= 0 || n.height <= 0) || 2 == n.autoSize)) ) { var i = cy.pool.get(), r = cy.pool.get(), o = e.__renderTransform; e.__getBounds(r), r.transform(i, o), (null != s && null != s.__canvas) || (null == s && ((e.__graphics = new hw(!1)), (s = e.__graphics)), (s.__canvas = Eg.pool.get()), (s.__context = s.__canvas.getContext("2d")), (s.__bounds = new cy(0, 0, r.width, r.height))); var a = s.__context; (s.__canvas.width = Math.ceil(i.width)), (s.__canvas.height = Math.ceil(i.height)); var l = Km.pool.get(); if ( (l.copyFrom(o), l.translate(-Math.floor(i.x), -Math.floor(i.y)), a.setTransform(l.a, l.b, l.c, l.d, l.tx, l.ty), (null != n.text && "" != n.text) || n.__hasFocus) ) { var h = n.text; if (n.displayAsPassword) { var _ = h.length; h = Yf.repeat(_, "*"); } 0 != n.antiAliasType || 1 != n.gridFitType ? ((s.__context.mozImageSmoothingEnabled = !0), (s.__context.msImageSmoothingEnabled = !0), (s.__context.imageSmoothingEnabled = !0)) : ((s.__context.mozImageSmoothingEnabled = !1), (s.__context.msImageSmoothingEnabled = !1), (s.__context.imageSmoothingEnabled = !1)), (n.border || n.background) && (a.rect(0.5, 0.5, i.width - 1, i.height - 1), n.background && ((a.fillStyle = "#" + Ri.hex(n.backgroundColor, 6)), a.fill()), n.border && ((a.lineWidth = 1), (a.strokeStyle = "#" + Ri.hex(n.borderColor, 6)), a.stroke())), (a.textBaseline = "alphabetic"), (a.textAlign = "start"); for ( var u, d = -e.get_scrollH(), c = 0, f = 0, p = e.get_scrollV() - 1; f < p; ) { var b = f++; c -= n.lineHeights[b]; } var m = 0; if (e.__showCursor && 0 == n.layoutGroups.length) { var g = e.__textFormat, w = Zg.getFont(g); (a.font = w.name), (a.fillStyle = "#" + Ri.hex(g.color, 6)); var v = n.calculateFontDimensions(e.__textFormat, w); a.fillRect(2, 2, 1, v.height); } for (var y = 0, T = n.layoutGroups; y < T.length; ) { var S = T[y]; if ((++y, !(S.lineIndex < e.get_scrollV() - 1))) { if (S.lineIndex > e.get_scrollV() + n.bottomScrollV - 2) break; var x = Zg.getFont(S.format); (m = x.ascent * S.format.size), (a.font = x.name), (a.fillStyle = "#" + Ri.hex(S.format.color, 6)); var E = h.substring(S.startIndex, S.endIndex), P = new RegExp("\n", "g".split("u").join("")); if ( ((E = E.replace(P, "")), a.fillText(E, S.offsetX + d, S.offsetY + m + c), -1 < e.__caretIndex && n.selectable) ) if (e.__selectionIndex == e.__caretIndex) { if ( e.__showCursor && S.startIndex <= e.__caretIndex && (S.endIndex > e.__caretIndex || (S.endIndex == n.text.length && n.text.length == e.__caretIndex)) ) { for ( var R = (u = 0), A = e.__caretIndex - S.startIndex; R < A; ) { var I = R++; if (S.advances.length <= I) break; u += S.advances[I]; } a.fillRect(S.offsetX + u, S.offsetY, 1, S.height); } } else if ( !( S.endIndex < Math.min(e.__caretIndex, e.__selectionIndex) || S.startIndex > Math.max(e.__caretIndex, e.__selectionIndex) ) ) { var C, B, D = 0 | Math.min(e.__selectionIndex, e.__caretIndex), k = 0 | Math.max(e.__selectionIndex, e.__caretIndex); S.startIndex > D && (D = S.startIndex), S.endIndex < k && (k = S.endIndex), (C = e.getCharBoundariesInGroup(D, S)), k >= n.text.length ? ((B = e.getCharBoundariesInGroup( n.text.length - 1, S )).x += B.width + 2) : (B = e.getCharBoundariesInGroup(k, S)), null != C && null != B && ((a.fillStyle = "#000000"), a.fillRect(C.x, C.y, B.x - C.x, S.height), (a.fillStyle = "#FFFFFF"), a.fillText( h.substring(D, k), d + C.x, S.offsetY + m + c )); } } } } else (n.border || n.background) && (n.border ? a.rect(0.5, 0.5, i.width - 1, i.height - 1) : a.rect(0, 0, i.width, i.height), n.background && ((a.fillStyle = "#" + Ri.hex(n.backgroundColor, 6)), a.fill()), n.border && ((a.lineWidth = 1), (a.lineCap = "square"), (a.strokeStyle = "#" + Ri.hex(n.borderColor, 6)), a.stroke())); var F = Km.pool.get(); F.copyFrom(l), F.invert(), s.set___bitmap(sw.fromGraphics(s, null, F)), (s.__canvas = null), (e.__graphicsSavedScale.x = e.renderScaleX), (e.__graphicsSavedScale.y = e.renderScaleY), (e.__dirty = !1), s.set_dirty(!1), Km.pool.put(l), Km.pool.put(F), cy.pool.put(i), cy.pool.put(r); } else (s.__canvas = null), (s.__context = null), s.set_dirty(!1), null != s.__bitmap && s.__bitmap.dispose(), (e.__dirty = !1); } }); var Ig = function () {}; ((s["openfl._internal.renderer.opengl.FrameBufferDataItem"] = Ig).__name__ = [ "openfl", "_internal", "renderer", "opengl", "FrameBufferDataItem", ]), (Ig.prototype = { set: function (e, t, s) { (this.texture = e), (this.viewPort = t), (this.transparent = s); }, __class__: Ig, }); var Cg = function () {}; ((s["openfl._internal.renderer.opengl.GLBitmap"] = Cg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "GLBitmap", ]), (Cg.render = function (e, t) { if ( e.isRenderable() && !(e.__worldAlpha <= 0) && null != e.bitmapData && e.bitmapData.get_valid() ) { var s = Km.pool.get(); s.copyFrom(e.__renderTransform); var n = e.bitmapData, i = e.smoothing, r = e.__renderColorTransform, o = e.__renderAlpha, a = e.__blendMode, l = e.__shader, h = e.pixelSnapping; null != n && t.spriteBatch.renderBitmapDataEx( n, n.physicalWidth, n.physicalHeight, n.get_uvData(), i, s, r, o, a, l, h ), Km.pool.put(s); } }), (Cg.pushFramebuffer = function (e, t, s, n, i, r, o) { null == o && (o = !0), null == r && (r = !1), null == i && (i = !0); var a = e.gl; if (null == a) return null; var l = e.renderer; e.spriteBatch != l.mainSpriteBatch && e.spriteBatch.stop(); var h = e.renderer, _ = 0 | s.x, u = 0 | s.y, d = 0 | s.width, c = 0 | s.height; if (Cg.fbData.length <= 0) { var f = Cg.fbDataPool.get(); (f.texture = null), (f.viewPort = null), (f.transparent = h.transparent), Cg.fbData.push(f); } null == t && (t = new Xg(a, d, c, n, o)), t.resize(d, c), (h.transparent = i), e.maskManager.saveState(), Vb.context.bindFramebuffer( a.FRAMEBUFFER, (t.__swapped ? t.__texture1 : t.__texture0).frameBuffer ), Lp.__cast(h, Bg).set_renderToTexture(!0), h.setViewport(_, u, d, c), Vb.context.colorMask(!0, !0, !0, !0), e.blendModeManager.setBlendMode(10), r && (t.__swapped ? t.__texture1 : t.__texture0).clear(0, 0, 0, 0, null); var p = Cg.fbDataPool.get(); return ( (p.texture = t), (p.viewPort = s), (p.transparent = i), Cg.fbData.push(p), t ); }), (Cg.drawBitmapDrawable = function (e, t, s, n, i, r, o) { var a = Cg.fbData[Cg.fbData.length - 1]; if (null == a) throw new Mp("No data to draw to"); if (null != e.gl) { if (Lp.__instanceof(s, W)) { var l = Lp.__cast(s, W); if (null == l.stage) { if (null != Cg.dataToClean.h.__keys__[l.__id__]) Cg.dataToClean.h[l.__id__].stop(); var h = Cg.dataToClean, _ = Qf.delay(function () { null == l.stage && l.__releaseResources(), Cg.dataToClean.remove(l); }, 1); h.set(l, _); } } var u = a.viewPort, d = e.spriteBatch, c = null != t, f = cy.pool.get(); if ( (null != i ? f.copyFrom(i) : f.setTo(u.x, u.y, u.width, u.height), d.begin(e, c ? null : f, r, o), c) ) { t.__worldTransform.identity(); var p = t.__worldTransform, b = u.height, m = p.tx, g = p.ty; if ( ((p.tx = 0), (p.ty = 0), p.scale(1, -1), p.translate(0, b), (p.tx += m), (p.ty -= g), t.__renderGL(e), d.stop(), null != t.__texture) ) { var w = t.__texture; Vb.textureStateCache.remove(w), Vb.context.deleteTexture(w); } (t.__texture = null), d.start(f, null, null); } var v = s.__resolvedCacheAsBitmap, y = s.__blendMode; e.pushRenderTargetBaseTransform(s, n), (s.__resolvedCacheAsBitmap = !1), (s.__blendMode = null), s.__renderGL(e), (s.__blendMode = y), (s.__resolvedCacheAsBitmap = v), e.popRenderTargetBaseTransform(), d.finish(), cy.pool.put(f); } }), (Cg.popFramebuffer = function (e, t) { var s = e.gl; if (null != s) { if ((e.spriteBatch.finish(), null != t)) { var n, i, r, o, a = Cg.fbData[Cg.fbData.length - 1]; (o = null == a.viewPort ? ((n = i = 0), (r = e.renderer.width), e.renderer.height) : ((n = Math.floor(a.viewPort.x)), (i = Math.floor(a.viewPort.y)), (r = Math.ceil(a.viewPort.width)), Math.ceil(a.viewPort.height))), (t.width == r && t.height == o) || t.resize(r, o), Vb.context.readPixels( n, i, r, o, s.RGBA, s.UNSIGNED_BYTE, t.buffer.data ), (t.dirty = !1), t.set_premultiplied(!0); } Cg.fbDataPool.put(Cg.fbData.pop()); var l, h, _, u, d, c = Cg.fbData[Cg.fbData.length - 1]; if (null == c) throw new Mp("oh"); if ( ((u = null == c.viewPort ? ((l = h = 0), (_ = e.renderer.width), e.renderer.height) : ((l = Math.floor(c.viewPort.x)), (h = Math.floor(c.viewPort.y)), (_ = Math.ceil(c.viewPort.width)), Math.ceil(c.viewPort.height))), null == c.texture) ) d = e.defaultFramebuffer; else { var f = c.texture; d = (f.__swapped ? f.__texture1 : f.__texture0).frameBuffer; } Vb.context.bindFramebuffer(s.FRAMEBUFFER, d), Lp.__cast(e.renderer, Bg).set_renderToTexture(1 < Cg.fbData.length), e.renderer.setViewport(l, h, _, u), (e.renderer.transparent = c.transparent), e.maskManager.restoreState(); } }), (Cg.flipMatrix = function (e, t) { var s = e.tx, n = e.ty; (e.tx = 0), (e.ty = 0), e.scale(1, -1), e.translate(0, t), (e.tx += s), (e.ty -= n); }); var Bg = function (e, t, s, n, i, r) { null == r && (r = !1), null == i && (i = !1), null == n && (n = !1), null == t && (t = 600), null == e && (e = 800), (this.vpHeight = 0), (this.vpWidth = 0), (this.vpY = 0), (this.vpX = 0), (this.renderToTexture = !1), eg.call(this, e, t), (this.transparent = n), (this.preserveDrawingBuffer = r), (this.width = e), (this.height = t), (this.viewport = new cy()), (this.options = { alpha: n, antialias: i, premultipliedAlpha: n, stencil: !0, preserveDrawingBuffer: r, }), (this._glContextId = Bg.glContextId++), (this.gl = s), (this.defaultFramebuffer = null), (Bg.glContexts[this._glContextId] = s), (this.projectionMatrix = new Km()), (this.projection = new qm()), (this.projection.x = this.width / 2), (this.projection.y = -this.height / 2), (this.offset = new qm(0, 0)), this.resize(this.width, this.height), (this.contextLost = !1), (this.shaderManager = new Vg(s)), (this.mainSpriteBatch = new Wg(s)), (this.offscreenSpriteBatch = new Wg(s)), (this.filterManager = new Gg(s, this.transparent)), (this.blendModeManager = new Ug(s)), (this.renderSession = new xg()), (this.renderSession.gl = this.gl), (this.renderSession.drawCount = 0), (this.renderSession.shaderManager = this.shaderManager), (this.renderSession.filterManager = this.filterManager), (this.renderSession.blendModeManager = this.blendModeManager), (this.renderSession.spriteBatch = this.mainSpriteBatch), ((this.renderSession.renderer = this).renderSession.defaultFramebuffer = this.defaultFramebuffer), (this.renderSession.projectionMatrix = this.projectionMatrix), (this.maskManager = new zg(this.renderSession)), (this.renderSession.maskManager = this.maskManager), Vv.initialize(this.renderSession), this.shaderManager.setShader(this.shaderManager.defaultShader, !0), Vb.context.disable(s.DEPTH_TEST), Vb.context.disable(s.CULL_FACE), Vb.context.enable(s.BLEND), Vb.context.colorMask(!0, !0, !0, this.transparent); }; ((s["openfl._internal.renderer.opengl.GLRenderer"] = Bg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "GLRenderer", ]), (Bg.renderBitmap = function (e, t, s) { if ( e.isRenderable() && !(e.__worldAlpha <= 0) && null != e.__graphics && null != e.__graphics.__bitmap ) { var n = Km.__temp, i = e.__graphics.__bitmap; n.copyFrom(e.__renderTransform); var r = e.__renderColorTransform, o = e.__renderAlpha, a = e.__blendMode; null != i && t.spriteBatch.renderBitmapDataEx( i, i.physicalWidth, i.physicalHeight, i.get_uvData(), s, n, r, o, a, null, null ); } }), (Bg.__super__ = eg), (Bg.prototype = n(eg.prototype, { destroy: function () { (Bg.glContexts[this._glContextId] = null), (this.projection = null), (this.offset = null), this.shaderManager.destroy(), this.mainSpriteBatch.destroy(), this.offscreenSpriteBatch.destroy(), this.maskManager.destroy(), this.filterManager.destroy(), (this.shaderManager = null), (this.mainSpriteBatch = null), (this.offscreenSpriteBatch = null), (this.maskManager = null), (this.filterManager = null), (this.gl = null), (this.renderSession = null); }, setViewport: function (e, t, s, n, i) { if ( (null == i && (i = !1), i || this.vpX != e || this.vpY != t || this.vpWidth != s || this.vpHeight != n) ) { (this.vpX = e), (this.vpY = t), (this.vpWidth = s), (this.vpHeight = n); this.gl; Vb.context.viewport(e, t, s, n), this.setOrtho(e, t, s, n), this.viewport.setTo(e, t, s, n); } }, setOrtho: function (e, t, s, n) { var i = this.projectionMatrix; if ( (i.identity(), (i.a = (1 / s) * 2), (i.d = (-1 / n) * 2), (i.tx = -1 - e * i.a), (i.ty = 1 - t * i.d), this.renderToTexture) ) { var r = i.tx, o = i.ty; (i.tx = 0), (i.ty = 0), i.scale(1, -1), i.translate(0, 0), (i.tx += r), (i.ty -= o); } }, handleContextLost: function (e) { e.preventDefault(), (this.contextLost = !0); }, handleContextRestored: function () { var e = this.gl; Bg.glContextId++, this.shaderManager.setContext(e), this.mainSpriteBatch.setContext(e), this.offscreenSpriteBatch.setContext(e), this.maskManager.setContext(e), this.filterManager.setContext(e), (this.renderSession.gl = e), (this.defaultFramebuffer = null), Vb.context.disable(e.DEPTH_TEST), Vb.context.disable(e.CULL_FACE), Vb.context.enable(e.BLEND), Vb.context.colorMask(!0, !0, !0, this.transparent), this.setViewport(0, 0, this.width, this.height), (this.contextLost = !1); }, render: function (e) { if (!this.contextLost) { var t = this.gl; this.setViewport(0, 0, this.width, this.height), Vb.context.bindFramebuffer(t.FRAMEBUFFER, this.defaultFramebuffer), this.transparent ? Vb.context.clearColor(0, 0, 0, 0) : Vb.context.clearColor( e.__colorSplit[0], e.__colorSplit[1], e.__colorSplit[2], 1 ), Vb.context.clear(t.COLOR_BUFFER_BIT), this.renderDisplayObject(e, this.projection); } }, renderDisplayObject: function (e, t, s) { this.renderSession.blendModeManager.setBlendMode(10), (this.renderSession.drawCount = 0), (this.renderSession.currentBlendMode = null), this.mainSpriteBatch.begin(this.renderSession), (this.mainSpriteBatch.preventFlush = !0), this.filterManager.begin(this.renderSession, s), e.__renderGL(this.renderSession), (this.mainSpriteBatch.preventFlush = !1), this.mainSpriteBatch.finish(); }, resize: function (e, t) { (this.width = e), (this.height = t), eg.prototype.resize.call(this, e, t), this.setViewport(0, 0, e, t), (this.projection.x = e / 2), (this.projection.y = -t / 2); }, set_renderToTexture: function (e) { return ( this.renderToTexture != e && ((this.renderToTexture = e), (this.renderSession.spriteBatch = e ? this.offscreenSpriteBatch : this.mainSpriteBatch), this.setOrtho(this.vpX, this.vpY, this.vpWidth, this.vpHeight)), e ); }, __class__: Bg, __properties__: { set_renderToTexture: "set_renderToTexture" }, })); var Dg = function (e) { (this.uniformMatrix3fCache = new hp()), (this.uniform4fCache = new hp()), (this.uniform2fCache = new hp()), (this.uniform1iCache = new hp()), (this.wrapT = 33071), (this.wrapS = 33071), (this.compiled = !1), (this.uniforms = new nT()), (this.attributes = new nT()), (this.ID = Dg.UID++), (this.gl = e), (this.program = null); }; ((s["openfl._internal.renderer.opengl.shaders2.Shader"] = Dg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "shaders2", "Shader", ]), (Dg.compileProgram = function (e, t, s) { var n = Vg.compiledShadersCache, i = ip.encode(t + s); if (null != NT[i] ? n.existsReserved(i) : n.h.hasOwnProperty(i)) return null != NT[i] ? n.getReserved(i) : n.h[i]; var r = Dg.compileShader(e, t, e.VERTEX_SHADER), o = Dg.compileShader(e, s, e.FRAGMENT_SHADER), a = Vb.context.createProgram(); return null != r && null != o && (Vb.context.attachShader(a, r), Vb.context.attachShader(a, o), Vb.context.bindAttribLocation(a, 0, "openfl_aPosition"), Vb.context.bindAttribLocation(a, 1, "openfl_aTexCoord0"), Vb.context.bindAttribLocation(a, 2, "openfl_aColor"), Vb.context.linkProgram(a), Vb.context.deleteShader(r), Vb.context.deleteShader(o), 0 == Vb.context.getProgramParameter(a, e.LINK_STATUS)) ? (Zf.trace( "Could not compile the program:\n\t" + Vb.context.getProgramInfoLog(a), { fileName: "Shader.hx", lineNumber: 272, className: "openfl._internal.renderer.opengl.shaders2.Shader", methodName: "compileProgram", } ), Zf.trace("VERTEX:\n" + t + "\nFRAGMENT:\n" + s, { fileName: "Shader.hx", lineNumber: 273, className: "openfl._internal.renderer.opengl.shaders2.Shader", methodName: "compileProgram", }), null) : (null != NT[i] ? n.setReserved(i, a) : (n.h[i] = a), a); }), (Dg.compileShader = function (e, t, s) { var n = t, i = Vb.context.createShader(s); return ( Vb.context.shaderSource(i, n), Vb.context.compileShader(i), 0 == Vb.context.getShaderParameter(i, e.COMPILE_STATUS) ? (Zf.trace( "Could not compile the shader:\n\t" + Vb.context.getShaderInfoLog(i), { fileName: "Shader.hx", lineNumber: 290, className: "openfl._internal.renderer.opengl.shaders2.Shader", methodName: "compileShader", } ), Zf.trace(t, { fileName: "Shader.hx", lineNumber: 291, className: "openfl._internal.renderer.opengl.shaders2.Shader", methodName: "compileShader", }), null) : i ); }), (Dg.resetCache = function () { Dg.currentVertexArray = null; }), (Dg.prototype = { init: function (e) { if ((null == e && (e = !1), !this.compiled || e)) { if ( (null != this.vertexSrc && (this.vertexString = this.vertexSrc.join("\n")), null != this.fragmentSrc && (this.fragmentString = this.fragmentSrc.join("\n")), null == this.vertexString || null == this.fragmentString) ) throw new Mp("No vertex or fragment source provided"); if ( ((this.program = Dg.compileProgram( this.gl, this.vertexString, this.fragmentString )), null != this.program) ) { this.gl; var t = this.program; t != Vb.currentProgram && (Vb.context.useProgram(t), (t = Vb.currentProgram)), this.uniform1i(this.getUniformLocation("openfl_uSampler0"), 0), this.uniform1i(this.getUniformLocation("openfl_uSampler1"), 1), (this.compiled = !0); } } }, destroy: function () { if (null != this.program) { this.gl; Vb.context.deleteProgram(this.program); } (this.compiled = !1), (this.attributes = null); }, applyData: function (e, t) { if (null != e) for (var s, n, i, r, o = 0, a = e.keys.length; o < a; ) { var l = o++, h = e.keys[l]; if (((n = this.getUniformLocation(h)), null != (s = e.values[l]))) if (((i = s.value), (r = s.bitmap), null != i || null != r)) switch (s.internalType) { case 1: switch (s.size) { case 1: this.uniform1i(n, 0 | i[0]); break; case 2: this.gl; Vb.context.uniform2i(n, 0 | i[0], 0 | i[1]); break; case 3: this.gl; Vb.context.uniform3i(n, 0 | i[0], 0 | i[1], 0 | i[2]); break; case 4: this.gl; Vb.context.uniform4i( n, 0 | i[0], 0 | i[1], 0 | i[2], 0 | i[3] ); } break; case 2: switch (s.size) { case 1: this.gl; Vb.context.uniform1f(n, i[0]); break; case 2: this.uniform2f(n, i[0], i[1]); break; case 3: this.gl; Vb.context.uniform3f(n, i[0], i[1], i[2]); break; case 4: this.uniform4f(n, i[0], i[1], i[2], i[3]); } break; case 3: switch (s.size) { case 2: this.gl; Vb.context.uniformMatrix2fv(n, s.transpose, s.value); break; case 3: this.gl; Vb.context.uniformMatrix3fv(n, s.transpose, s.value); break; case 4: this.gl; Vb.context.uniformMatrix4fv(n, s.transpose, s.value); } break; case 4: if (null == r || !r.__isValid) continue; this.gl; var _ = this.gl.TEXTURE0 + t.activeTextures; _ != Vb.currentActiveTexture && (Vb.context.activeTexture(_), (Vb.currentActiveTexture = _)); this.gl; var u = this.gl.TEXTURE_2D, d = r.getTexture(this.gl); Vb.currentBoundTexture[Vb.currentActiveTexture] != d && (Vb.context.bindTexture(u, d), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = d) || Vb.textureStateCache.exists(d) || Vb.textureStateCache.set(d, new lp())), this.uniform1i(n, t.activeTextures); this.gl; var c = this.gl.TEXTURE_2D, f = this.gl.TEXTURE_MAG_FILTER, p = s.smooth ? this.gl.LINEAR : this.gl.NEAREST, b = Vb.currentBoundTexture[Vb.currentActiveTexture], m = Vb.textureStateCache.get(b); m.h[f] != p && (Vb.context.texParameteri(c, f, p), (m.h[f] = p)); this.gl; var g = this.gl.TEXTURE_2D, w = this.gl.TEXTURE_MIN_FILTER, v = s.smooth ? this.gl.LINEAR : this.gl.NEAREST, y = Vb.currentBoundTexture[Vb.currentActiveTexture], T = Vb.textureStateCache.get(y); T.h[w] != v && (Vb.context.texParameteri(g, w, v), (T.h[w] = v)); this.gl; var S = this.gl.TEXTURE_2D, x = this.gl.TEXTURE_WRAP_S, E = s.repeatX, P = Vb.currentBoundTexture[Vb.currentActiveTexture], R = Vb.textureStateCache.get(P); R.h[x] != E && (Vb.context.texParameteri(S, x, E), (R.h[x] = E)); this.gl; var A = this.gl.TEXTURE_2D, I = this.gl.TEXTURE_WRAP_T, C = s.repeatY, B = Vb.currentBoundTexture[Vb.currentActiveTexture], D = Vb.textureStateCache.get(B); D.h[I] != C && (Vb.context.texParameteri(A, I, C), (D.h[I] = C)), t.activeTextures++; } } }, getAttribLocation: function (e) { if (null == this.program) throw new Mp("Shader isn't initialized"); var t = this.attributes.h[e]; if (null == t) { this.gl; (t = Vb.context.getAttribLocation(this.program, e)), (this.attributes.h[e] = t); } return t; }, getUniformLocation: function (e) { if (null == this.program) throw new Mp("Shader isn't initialized"); var t = this.uniforms.h[e]; if (null == t && !this.uniforms.h.hasOwnProperty(e)) { this.gl; (t = Vb.context.getUniformLocation(this.program, e)), (this.uniforms.h[e] = t); } return t; }, enableVertexAttribute: function (e, t, s) { var n = this.getAttribLocation(e.name); if (0 <= n) { this.gl; Vb.context.enableVertexAttribArray(n); this.gl; Vb.context.vertexAttribPointer( n, e.components, e.type, e.normalized, t, 4 * s ); } }, disableVertexAttribute: function (e, t) { null == t && (t = !0); var s = this.getAttribLocation(e.name); this.gl; if ((Vb.context.disableVertexAttribArray(s), t)) switch (e.components) { case 1: this.gl; var n = e.defaultValue.subarray(0, 1); Vb.context.vertexAttrib1fv(s, n); break; case 2: this.gl; var i = e.defaultValue.subarray(0, 2); Vb.context.vertexAttrib2fv(s, i); break; case 3: this.gl; var r = e.defaultValue.subarray(0, 3); Vb.context.vertexAttrib3fv(s, r); break; default: this.gl; var o = e.defaultValue.subarray(0, 4); Vb.context.vertexAttrib4fv(s, o); } }, bindVertexArray: function (e) { if (e != Dg.currentVertexArray) { var t = 0, s = e.get_stride(); if ( null != Dg.currentVertexArray && e.attributes == Dg.currentVertexArray.attributes ) for (var n = 0, i = e.attributes; n < i.length; ) { var r = i[n]; if ((++n, r.enabled)) { var o, a = this.getAttribLocation(r.name); if (0 <= a) { this.gl; Vb.context.vertexAttribPointer( a, r.components, r.type, r.normalized, s, 4 * t ); } switch (r.type) { case 5120: case 5121: o = 1; break; case 5122: case 5123: o = 2; break; default: o = 4; } t += Math.floor((r.components * o) / 4); } } else for (var l = 0, h = e.attributes; l < h.length; ) { var _ = h[l]; if ((++l, _.enabled)) { var u; switch ((this.enableVertexAttribute(_, s, t), _.type)) { case 5120: case 5121: u = 1; break; case 5122: case 5123: u = 2; break; default: u = 4; } t += Math.floor((_.components * u) / 4); } else this.disableVertexAttribute(_, !0); } Dg.currentVertexArray = e; } }, unbindVertexArray: function (e) { for (var t = 0, s = e.attributes; t < s.length; ) { var n = s[t]; ++t, this.disableVertexAttribute(n, !1); } Dg.currentVertexArray = null; }, uniform1i: function (e, t) { if (null != e && this.uniform1iCache.h[e.__id__] != t) { this.gl; Vb.context.uniform1i(e, t), this.uniform1iCache.set(e, t); } }, uniform2f: function (e, t, s) { if (null != e) { var n = this.uniform2fCache.h[e.__id__]; if (null == n) (n = new Qb()), this.uniform2fCache.set(e, n); else if (n.x == t && n.y == s) return; this.gl; Vb.context.uniform2f(e, t, s), (n.x = t), (n.y = s); } }, uniform4f: function (e, t, s, n, i) { if (null != e) { var r = this.uniform4fCache.h[e.__id__]; if (null == r) (r = new $b()), this.uniform4fCache.set(e, r); else if (r.x == t && r.y == s && r.z == n && r.w == i) return; this.gl; Vb.context.uniform4f(e, t, s, n, i), (r.x = t), (r.y = s), (r.z = n), (r.w = i); } }, uniformMatrix3fv: function (e, t, s) { if (null != e) { var n = this.uniformMatrix3fCache.h[e.__id__]; if (null == n) (n = new Km()), this.uniformMatrix3fCache.set(e, n); else if (s.equals(n)) return; this.gl; var i = s.toArray(!0); Vb.context.uniformMatrix3fv(e, t, i), n.copyFrom(s); } }, __class__: Dg, }); var kg = function (e) { Dg.call(this, e), (this.vertexSrc = kg.VERTEX_SRC), (this.fragmentSrc = [ "#ifdef GL_ES", "precision lowp float;", "#endif", "uniform sampler2D openfl_uSampler0;", "uniform sampler2D openfl_uSampler1;", "uniform vec4 openfl_uColorMultiplier;", "uniform vec4 openfl_uColorOffset;", "uniform bool openfl_uUseColorTransform;", "uniform vec2 openfl_uUVScale;", "varying vec2 openfl_vTexCoord;", "varying vec2 openfl_vMaskTexCoord;", "varying vec4 openfl_vColor;", "vec4 colorTransform(const vec4 color, const vec4 tint, const vec4 multiplier, const vec4 offset) {", "\tif(!openfl_uUseColorTransform) {", "\t\treturn color * tint;", "\t}", "\tvec4 unmultiply;", "\tif (color.a == 0.0) {", "\t\tunmultiply = vec4(0.0, 0.0, 0.0, 0.0);", "\t} else {", " \tunmultiply = vec4(color.rgb / color.a, color.a);", "\t}", " vec4 result = unmultiply * tint * multiplier;", " result = result + offset;", " result = clamp(result, 0., 1.);", " result = vec4(result.rgb * result.a, result.a);", " return result;", "}", "void main(void) {", " vec4 tc = texture2D(openfl_uSampler0, openfl_vTexCoord);", " vec4 mask = texture2D(openfl_uSampler1, openfl_vMaskTexCoord * openfl_uUVScale);", " float inside = step( 0.0, openfl_vMaskTexCoord.x ) * step( -1.0, -openfl_vMaskTexCoord.x );", " inside *= step( 0.0, openfl_vMaskTexCoord.y ) * step( -1.0, -openfl_vMaskTexCoord.y );", "\tfloat maskAlpha = inside * mask.a;", " gl_FragColor = colorTransform(tc, openfl_vColor, openfl_uColorMultiplier, openfl_uColorOffset)* maskAlpha;", "}", ]), this.init(); }; ((s["openfl._internal.renderer.opengl.shaders2.DefaultMaskedShader"] = kg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "shaders2", "DefaultMaskedShader", ]), (kg.__super__ = Dg), (kg.prototype = n(Dg.prototype, { init: function (e) { null == e && (e = !1), Dg.prototype.init.call(this, e), this.getAttribLocation("openfl_aPosition"), this.getAttribLocation("openfl_aTexCoord0"), this.getAttribLocation("openfl_aColor"), this.getUniformLocation("openfl_uProjectionMatrix"), this.getUniformLocation("openfl_uMaskMatrix"), this.getUniformLocation("openfl_uUVScale"), this.getUniformLocation("openfl_uSampler0"), this.getUniformLocation("openfl_uSampler1"), this.getUniformLocation("openfl_uColorMultiplier"), this.getUniformLocation("openfl_uColorOffset"), this.getUniformLocation("openfl_uUseColorTransform"); }, __class__: kg, })); var Fg = function (e) { Dg.call(this, e), (this.vertexSrc = Fg.VERTEX_SRC), (this.fragmentSrc = [ "#ifdef GL_ES", "precision lowp float;", "#endif", "uniform sampler2D openfl_uSampler0;", "uniform vec4 openfl_uColorMultiplier;", "uniform vec4 openfl_uColorOffset;", "uniform bool openfl_uUseColorTransform;", "varying vec2 openfl_vTexCoord;", "varying vec4 openfl_vColor;", "vec4 colorTransform(const vec4 color, const vec4 tint, const vec4 multiplier, const vec4 offset) {", "\tif(!openfl_uUseColorTransform) {", "\t\treturn color * tint;", "\t}", "\tvec4 unmultiply;", "\tif (color.a == 0.0) {", "\t\tunmultiply = vec4(0.0, 0.0, 0.0, 0.0);", "\t} else {", " \tunmultiply = vec4(color.rgb / color.a, color.a);", "\t}", "\tvec4 result = unmultiply * tint * multiplier;", "\tresult = result + offset;", "\tresult = clamp(result, 0., 1.);", "\tfloat finalMultiplier = 1. - step(0., -color.a);", "\tresult.a *= finalMultiplier;", "\tresult = vec4(result.rgb * result.a, result.a);", "\treturn result;", "}", "void main(void) {", " vec4 tc = texture2D(openfl_uSampler0, openfl_vTexCoord);", " gl_FragColor = colorTransform(tc, openfl_vColor, openfl_uColorMultiplier, openfl_uColorOffset);", "}", ]), this.init(); }; ((s["openfl._internal.renderer.opengl.shaders2.DefaultShader"] = Fg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "shaders2", "DefaultShader", ]), (Fg.__super__ = Dg), (Fg.prototype = n(Dg.prototype, { init: function (e) { null == e && (e = !1), Dg.prototype.init.call(this, e), this.getAttribLocation("openfl_aPosition"), this.getAttribLocation("openfl_aTexCoord0"), this.getAttribLocation("openfl_aColor"), this.getUniformLocation("openfl_uProjectionMatrix"), this.getUniformLocation("openfl_uSampler0"), this.getUniformLocation("openfl_uColorMultiplier"), this.getUniformLocation("openfl_uColorOffset"), this.getUniformLocation("openfl_uUseColorTransform"); }, __class__: Fg, })); var Mg = function (e) { Dg.call(this, e), (this.vertexSrc = [ "attribute vec2 openfl_aPosition;", "attribute vec2 openfl_aTexCoord0;", "attribute vec4 openfl_aColor;", "uniform mat3 openfl_uProjectionMatrix;", "varying vec2 vTexCoord;", "varying vec4 vColor;", "void main(void) {", " gl_Position = vec4((openfl_uProjectionMatrix * vec3(openfl_aPosition, 1.0)).xy, 0.0, 1.0);", " vTexCoord = openfl_aTexCoord0;", " vColor = openfl_aColor.bgra;", "}", ]), (this.fragmentSrc = [ "#ifdef GL_ES", "precision lowp float;", "#endif", "uniform sampler2D openfl_uSampler0;", "uniform vec3 openfl_uColor;", "uniform bool openfl_uUseTexture;", "uniform float openfl_uAlpha;", "uniform vec4 openfl_uColorMultiplier;", "uniform vec4 openfl_uColorOffset;", "varying vec2 vTexCoord;", "varying vec4 vColor;", "vec4 tmp;", "vec4 colorTransform(const vec4 color, const vec4 tint, const vec4 multiplier, const vec4 offset) {", " vec4 unmultiply = vec4(color.rgb / color.a, color.a);", " vec4 result = unmultiply * tint * multiplier;", " result = result + offset;", " result = clamp(result, 0., 1.);", " result = vec4(result.rgb * result.a, result.a);", " return result;", "}", "void main(void) {", " if(openfl_uUseTexture) {", " tmp = texture2D(openfl_uSampler0, vTexCoord);", " } else {", " tmp = vec4(openfl_uColor, 1.);", " }", " gl_FragColor = colorTransform(tmp, vColor, openfl_uColorMultiplier, openfl_uColorOffset);", "}", ]), this.init(); }; ((s["openfl._internal.renderer.opengl.shaders2.DrawTrianglesShader"] = Mg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "shaders2", "DrawTrianglesShader", ]), (Mg.__super__ = Dg), (Mg.prototype = n(Dg.prototype, { init: function (e) { null == e && (e = !1), Dg.prototype.init.call(this, e), this.getAttribLocation("openfl_aPosition"), this.getAttribLocation("openfl_aTexCoord0"), this.getAttribLocation("openfl_aColor"), this.getUniformLocation("openfl_uSampler0"), this.getUniformLocation("openfl_uProjectionMatrix"), this.getUniformLocation("openfl_uColor"), this.getUniformLocation("openfl_uAlpha"), this.getUniformLocation("openfl_uUseTexture"), this.getUniformLocation("openfl_uColorMultiplier"), this.getUniformLocation("openfl_uColorOffset"); }, __class__: Mg, })); var Lg = function (e) { Dg.call(this, e), (this.vertexSrc = [ "attribute vec2 openfl_aPosition;", "uniform mat3 openfl_uTranslationMatrix;", "uniform mat3 openfl_uProjectionMatrix;", "uniform vec4 openfl_uColor;", "uniform float openfl_uAlpha;", "uniform vec4 openfl_uColorMultiplier;", "uniform vec4 openfl_uColorOffset;", "varying vec4 vColor;", "vec4 colorTransform(const vec4 color, const float alpha, const vec4 multiplier, const vec4 offset) {", " vec4 result = color * multiplier;", " result.a *= alpha;", " result = result + offset;", " result = clamp(result, 0., 1.);", " result = vec4(result.rgb * result.a, result.a);", " return result;", "}", "void main(void) {", " gl_Position = vec4((openfl_uProjectionMatrix * openfl_uTranslationMatrix * vec3(openfl_aPosition, 1.0)).xy, 0.0, 1.0);", " vColor = colorTransform(openfl_uColor, openfl_uAlpha, openfl_uColorMultiplier, openfl_uColorOffset);", "}", ]), (this.fragmentSrc = [ "#ifdef GL_ES", "precision lowp float;", "#endif", "varying vec4 vColor;", "void main(void) {", " gl_FragColor = vColor;", "}", ]), this.init(); }; ((s["openfl._internal.renderer.opengl.shaders2.FillShader"] = Lg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "shaders2", "FillShader", ]), (Lg.__super__ = Dg), (Lg.prototype = n(Dg.prototype, { init: function (e) { null == e && (e = !1), Dg.prototype.init.call(this, e), this.getAttribLocation("openfl_aPosition"), this.getUniformLocation("openfl_uTranslationMatrix"), this.getUniformLocation("openfl_uProjectionMatrix"), this.getUniformLocation("openfl_uColor"), this.getUniformLocation("openfl_uColorMultiplier"), this.getUniformLocation("openfl_uColorOffset"); }, __class__: Lg, })); var Ng = function (e) { Dg.call(this, e), (this.vertexSrc = [ "attribute vec2 openfl_aPosition;", "uniform mat3 openfl_uTranslationMatrix;", "uniform mat3 openfl_uProjectionMatrix;", "uniform mat3 openfl_uPatternMatrix;", "varying vec2 vPosition;", "void main(void) {", " gl_Position = vec4((openfl_uProjectionMatrix * openfl_uTranslationMatrix * vec3(openfl_aPosition, 1.0)).xy, 0.0, 1.0);", " vPosition = (openfl_uPatternMatrix * vec3(openfl_aPosition, 1)).xy;", "}", ]), (this.fragmentSrc = [ "#ifdef GL_ES", "precision lowp float;", "#endif", "uniform float openfl_uAlpha;", "uniform vec2 openfl_uPatternTL;", "uniform vec2 openfl_uPatternBR;", "uniform sampler2D openfl_uSampler0;", "uniform vec4 openfl_uColorMultiplier;", "uniform vec4 openfl_uColorOffset;", "varying vec2 vPosition;", "vec4 colorTransform(const vec4 color, const float alpha, const vec4 multiplier, const vec4 offset) {", " vec4 unmultiply = vec4(color.rgb / color.a, color.a);", " vec4 result = unmultiply * multiplier;", " result.a *= alpha;", " result = result + offset;", " result = clamp(result, 0., 1.);", " result = vec4(result.rgb * result.a, result.a);", " return result;", "}", "void main(void) {", " vec2 pos = mix(openfl_uPatternTL, openfl_uPatternBR, vPosition);", " vec4 tcol = texture2D(openfl_uSampler0, pos);", " gl_FragColor = colorTransform(tcol, openfl_uAlpha, openfl_uColorMultiplier, openfl_uColorOffset);", "}", ]), this.init(); }; ((s["openfl._internal.renderer.opengl.shaders2.PatternFillShader"] = Ng).__name__ = [ "openfl", "_internal", "renderer", "opengl", "shaders2", "PatternFillShader", ]), (Ng.__super__ = Dg), (Ng.prototype = n(Dg.prototype, { init: function (e) { null == e && (e = !1), Dg.prototype.init.call(this, e), this.getAttribLocation("openfl_aPosition"), this.getUniformLocation("openfl_uTranslationMatrix"), this.getUniformLocation("openfl_uPatternMatrix"), this.getUniformLocation("openfl_uProjectionMatrix"), this.getUniformLocation("openfl_uSampler0"), this.getUniformLocation("openfl_uPatternTL"), this.getUniformLocation("openfl_uPatternBR"), this.getUniformLocation("openfl_uAlpha"), this.getUniformLocation("openfl_uColorMultiplier"), this.getUniformLocation("openfl_uColorOffset"); }, __class__: Ng, })); var Og = function (e) { Dg.call(this, e), (this.vertexSrc = [ "attribute vec2 openfl_aPosition;", "attribute vec4 openfl_aColor;", "uniform mat3 openfl_uTranslationMatrix;", "uniform mat3 openfl_uProjectionMatrix;", "uniform vec4 openfl_uColorMultiplier;", "uniform vec4 openfl_uColorOffset;", "uniform float openfl_uAlpha;", "varying vec4 vColor;", "vec4 colorTransform(const vec4 color, const float alpha, const vec4 multiplier, const vec4 offset) {", " vec4 result = color * multiplier;", " result.a *= alpha;", " result = result + offset;", " result = clamp(result, 0., 1.);", " result = vec4(result.rgb * result.a, result.a);", " return result;", "}", "void main(void) {", " gl_Position = vec4((openfl_uProjectionMatrix * openfl_uTranslationMatrix * vec3(openfl_aPosition, 1.0)).xy, 0.0, 1.0);", " vColor = colorTransform(openfl_aColor, openfl_uAlpha, openfl_uColorMultiplier, openfl_uColorOffset);", "}", ]), (this.fragmentSrc = [ "#ifdef GL_ES", "precision lowp float;", "#endif", "varying vec4 vColor;", "void main(void) {", " gl_FragColor = vColor;", "}", ]), this.init(); }; ((s["openfl._internal.renderer.opengl.shaders2.PrimitiveShader"] = Og).__name__ = [ "openfl", "_internal", "renderer", "opengl", "shaders2", "PrimitiveShader", ]), (Og.__super__ = Dg), (Og.prototype = n(Dg.prototype, { init: function (e) { null == e && (e = !1), Dg.prototype.init.call(this, e), this.getAttribLocation("openfl_aPosition"), this.getAttribLocation("openfl_aColor"), this.getUniformLocation("openfl_uTranslationMatrix"), this.getUniformLocation("openfl_uProjectionMatrix"), this.getUniformLocation("openfl_uAlpha"), this.getUniformLocation("openfl_uColorMultiplier"), this.getUniformLocation("openfl_uColorOffset"); }, __class__: Og, })); var Ug = function (e) { (this.gl = e), (this.currentBlendMode = null); }; ((s["openfl._internal.renderer.opengl.utils.BlendModeManager"] = Ug).__name__ = [ "openfl", "_internal", "renderer", "opengl", "utils", "BlendModeManager", ]), (Ug.prototype = { destroy: function () { this.gl = null; }, setBlendMode: function (e, t) { if ( (null == t && (t = !1), null == e && ((e = 10), (t = !0)), !t && this.currentBlendMode == e) ) return !1; switch ((this.currentBlendMode = e)) { case 0: this.gl; Vb.context.blendEquation(32774); this.gl; Vb.context.blendFunc(1, 1); break; case 9: this.gl; Vb.context.blendEquation(32774); this.gl; Vb.context.blendFunc(774, 771); break; case 12: this.gl; Vb.context.blendEquation(32774); this.gl; Vb.context.blendFunc(1, 769); break; case 14: this.gl; Vb.context.blendEquation(32779); this.gl; Vb.context.blendFunc(1, 1); break; default: this.gl; Vb.context.blendEquation(32774); this.gl; Vb.context.blendFunc(1, 771); } return !0; }, __class__: Ug, }); var Gg = function (e, t) { (this.transparent = t), (this.filterStack = []), (this.offsetX = 0), (this.offsetY = 0), this.setContext(e); }; ((s["openfl._internal.renderer.opengl.utils.FilterManager"] = Gg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "utils", "FilterManager", ]), (Gg.prototype = { applyFilterPass: function (e, t, s, n) {}, begin: function (e, t) { (this.renderSession = e), (this.defaultShader = e.shaderManager.defaultShader), (this.width = 0), (this.height = 0), (this.buffer = t); }, destroy: function () { this.gl; (this.filterStack = null), (this.offsetX = 0); for (var e = (this.offsetY = 0), t = this.texturePool; e < t.length; ) { var s = t[e]; ++e, s.destroy(); } (this.texturePool = null), Vb.context.deleteBuffer(this.vertexBuffer), Vb.context.deleteBuffer(this.uvBuffer), Vb.context.deleteBuffer(this.colorBuffer), Vb.context.deleteBuffer(this.indexBuffer); }, initShaderBuffers: function () { var e = this.gl; (this.vertexBuffer = Vb.context.createBuffer()), (this.uvBuffer = Vb.context.createBuffer()), (this.colorBuffer = Vb.context.createBuffer()), (this.indexBuffer = Vb.context.createBuffer()); var t, s = [0, 0, 1, 0, 0, 1, 1, 1]; (t = null != s ? new GT(s) : null), (this.vertexArray = t), Vb.context.bindBuffer(e.ARRAY_BUFFER, this.vertexBuffer), Vb.context.bufferData( e.ARRAY_BUFFER, this.vertexArray, e.STATIC_DRAW ); var n, i = [0, 0, 1, 0, 0, 1, 1, 1]; (n = null != i ? new GT(i) : null), (this.uvArray = n), Vb.context.bindBuffer(e.ARRAY_BUFFER, this.uvBuffer), Vb.context.bufferData(e.ARRAY_BUFFER, this.uvArray, e.STATIC_DRAW); var r, o = [1, 16777215, 1, 16777215, 1, 16777215, 1, 16777215]; (r = null != o ? new GT(o) : null), (this.colorArray = r), Vb.context.bindBuffer(e.ARRAY_BUFFER, this.colorBuffer), Vb.context.bufferData(e.ARRAY_BUFFER, this.colorArray, e.STATIC_DRAW), Vb.context.bindBuffer(e.ELEMENT_ARRAY_BUFFER, this.indexBuffer); var a, l = e.ELEMENT_ARRAY_BUFFER, h = [0, 1, 2, 1, 3, 2]; (a = null != h ? new Uint16Array(h) : null), Vb.context.bufferData(l, a, e.STATIC_DRAW); }, popFilter: function () {}, pushFilter: function (e) {}, setContext: function (e) { (this.gl = e), (this.texturePool = []), this.initShaderBuffers(); }, __class__: Gg, }); var zg = function (e) { $m.call(this, e), this.setContext(e.gl), (this.clips = []); var t = new Ge(); (t._items = []), (t._length = t._items.length), (this.maskBitmapTable = t); var s = new Ge(); (s._items = []), (s._length = s._items.length), (this.maskMatrixTable = s), (this.maskCount = 0); }; ((s["openfl._internal.renderer.opengl.utils.GLMaskManager"] = zg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "utils", "GLMaskManager", ]), (zg.__super__ = $m), (zg.prototype = n($m.prototype, { destroy: function () { this.gl = null; }, pushRect: function (e, t) { var s = t.clone(), n = this.renderSession.renderer.viewport.height, i = s.tx, r = s.ty; (s.tx = 0), (s.ty = 0), s.scale(1, -1), s.translate(0, n), (s.tx += i), (s.ty -= r); var o = e.clone(); o.transform(o, s), null != this.currentClip && (o = this.currentClip.intersection(o)); var a = null == this.currentClip || o.isEmpty() || this.currentClip.containsRect(o); if ((this.clips.push(o), (this.currentClip = o), a)) { var l = this.maskBitmapTable, h = this.maskMatrixTable; this.renderSession.spriteBatch.start( this.currentClip, l._items[l._length - 1], h._items[h._length - 1] ); } }, pushMask: function (e) { var t = this.renderSession, s = t.renderer; t.spriteBatch != s.mainSpriteBatch && this.renderSession.spriteBatch.stop(); var n = null, i = null; if (null != e) { if ( null == e.__cachedBitmap || e.__updateCachedBitmap || 0 < this.maskCount ) { (e.__visible = !0), (e.__isMask = !1), (W.__isCachingAsMask = !0), e.__update(!0, !1); var r = this.maskBitmapTable, o = this.maskMatrixTable; e.__updateCachedBitmapFn( this.renderSession, r._items[r._length - 1], o._items[o._length - 1] ), (W.__isCachingAsMask = !1), (e.__isMask = !0), (e.__visible = !1); } n = e.__cachedBitmap; } if (null != n) { var a = this.renderSession.getRenderTargetBaseTransform(); (i = Km.pool.get()), n.getLocalTransform(i), i.concat(e.__renderTransform), i.concat(a), i.invert(), i.scale(1 / n.physicalWidth, 1 / n.physicalHeight), ++this.maskCount; } var l = this.maskBitmapTable; l._items[l._length++] = n; var h = this.maskMatrixTable; (h._items[h._length++] = i), this.renderSession.spriteBatch.start(this.currentClip, n, i); }, popMask: function () { var e = this.maskBitmapTable, t = e._items[--e._length]; (e._items[e._length] = null) != t && --this.maskCount; var s = this.maskMatrixTable, n = s._items[--s._length]; (s._items[s._length] = null) != n && Km.pool.put(n); var i = this.maskBitmapTable, r = this.maskMatrixTable; this.renderSession.spriteBatch.start( this.currentClip, i._items[i._length - 1], r._items[r._length - 1] ); }, popRect: function () { this.clips.pop(), (this.currentClip = this.clips[this.clips.length - 1]); var e = this.maskBitmapTable, t = this.maskMatrixTable; this.renderSession.spriteBatch.start( this.currentClip, e._items[e._length - 1], t._items[t._length - 1] ); }, saveState: function () { (this.savedClip = this.currentClip), (this.currentClip = null); }, restoreState: function () { (this.currentClip = this.savedClip), (this.savedClip = null); }, setContext: function (e) { null != this.renderSession && (this.renderSession.gl = e), (this.gl = e); }, __class__: zg, })); var Xg = function (e, t, s, n, i) { null == i && (i = !0), null == n && (n = !0), (this.__swapped = !1), (this.powerOfTwo = !0), (this.useOldTexture = !1), (this.gl = e), (this.width = t), (this.height = s), (this.smoothing = n), (this.powerOfTwo = i); var r = new Hg(e, t, s, n, i); this.__swapped ? (this.__texture1 = r) : (this.__texture0 = r); }; ((s["openfl._internal.renderer.opengl.utils.PingPongTexture"] = Xg).__name__ = ["openfl", "_internal", "renderer", "opengl", "utils", "PingPongTexture"]), (Xg.prototype = { swap: function () { if ( ((this.__swapped = !this.__swapped), null == (this.__swapped ? this.__texture1 : this.__texture0)) ) { var e = new Hg( this.gl, this.width, this.height, this.smoothing, this.powerOfTwo ); this.__swapped ? (this.__texture1 = e) : (this.__texture0 = e); } }, clear: function (e, t, s, n, i) { null == n && (n = 0), null == s && (s = 0), null == t && (t = 0), null == e && (e = 0), (this.__swapped ? this.__texture1 : this.__texture0).clear( e, t, s, n, i ); }, resize: function (e, t) { (this.width = e), (this.height = t), (this.__swapped ? this.__texture1 : this.__texture0).resize(e, t); }, destroyOldRenderTexture: function () { this.__swapped ? null != this.__texture0 && (this.__texture0.destroy(), (this.__texture0 = null)) : null != this.__texture1 && (this.__texture1.destroy(), (this.__texture1 = null)); }, destroy: function () { null != this.__texture0 && (this.__texture0.destroy(), (this.__texture0 = null)), null != this.__texture1 && (this.__texture1.destroy(), (this.__texture1 = null)), (this.__swapped = !1); }, get_renderTexture: function () { return this.__swapped ? this.__texture1 : this.__texture0; }, set_renderTexture: function (e) { return this.__swapped ? (this.__texture1 = e) : (this.__texture0 = e); }, get_oldRenderTexture: function () { return this.__swapped ? this.__texture0 : this.__texture1; }, set_oldRenderTexture: function (e) { return this.__swapped ? (this.__texture0 = e) : (this.__texture1 = e); }, get_framebuffer: function () { return (this.__swapped ? this.__texture1 : this.__texture0).frameBuffer; }, get_texture: function () { return this.useOldTexture ? (this.__swapped ? this.__texture0 : this.__texture1).texture : (this.__swapped ? this.__texture1 : this.__texture0).texture; }, get___otherTexture: function () { return this.__swapped ? this.__texture0 : this.__texture1; }, __class__: Xg, __properties__: { get___otherTexture: "get___otherTexture", get_texture: "get_texture", get_framebuffer: "get_framebuffer", set_oldRenderTexture: "set_oldRenderTexture", get_oldRenderTexture: "get_oldRenderTexture", set_renderTexture: "set_renderTexture", get_renderTexture: "get_renderTexture", }, }); var Hg = function (e, t, s, n, i) { null == i && (i = !0), null == n && (n = !0), (this.gl = e), (this.powerOfTwo = i), (this.frameBuffer = Vb.context.createFramebuffer()), (this.texture = Vb.context.createTexture()); var r = this.texture; Vb.currentBoundTexture[Vb.currentActiveTexture] != r && (Vb.context.bindTexture(e.TEXTURE_2D, r), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = r) || Vb.textureStateCache.exists(r) || Vb.textureStateCache.set(r, new lp())); var o = e.TEXTURE_2D, a = e.TEXTURE_MAG_FILTER, l = n ? e.LINEAR : e.NEAREST, h = Vb.currentBoundTexture[Vb.currentActiveTexture], _ = Vb.textureStateCache.get(h); _.h[a] != l && (Vb.context.texParameteri(o, a, l), (_.h[a] = l)); var u = e.TEXTURE_2D, d = e.TEXTURE_MIN_FILTER, c = n ? e.LINEAR : e.NEAREST, f = Vb.currentBoundTexture[Vb.currentActiveTexture], p = Vb.textureStateCache.get(f); p.h[d] != c && (Vb.context.texParameteri(u, d, c), (p.h[d] = c)); var b = e.TEXTURE_2D, m = e.TEXTURE_WRAP_S, g = e.CLAMP_TO_EDGE, w = Vb.currentBoundTexture[Vb.currentActiveTexture], v = Vb.textureStateCache.get(w); v.h[m] != g && (Vb.context.texParameteri(b, m, g), (v.h[m] = g)); var y = e.TEXTURE_2D, T = e.TEXTURE_WRAP_T, S = e.CLAMP_TO_EDGE, x = Vb.currentBoundTexture[Vb.currentActiveTexture], E = Vb.textureStateCache.get(x); E.h[T] != S && (Vb.context.texParameteri(y, T, S), (E.h[T] = S)), Vb.context.bindFramebuffer(e.FRAMEBUFFER, this.frameBuffer), Vb.context.framebufferTexture2D( e.FRAMEBUFFER, e.COLOR_ATTACHMENT0, e.TEXTURE_2D, this.texture, 0 ), this.resize(t, s); }; ((s["openfl._internal.renderer.opengl.utils.RenderTexture"] = Hg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "utils", "RenderTexture", ]), (Hg.prototype = { clear: function (e, t, s, n, i) { null == n && (n = 0), null == s && (s = 0), null == t && (t = 0), null == e && (e = 0); this.gl; Vb.context.clearColor(e, t, s, n); this.gl; Vb.context.clear(null == i ? this.gl.COLOR_BUFFER_BIT : i); }, destroy: function () { if (null != this.frameBuffer) { this.gl; Vb.context.deleteFramebuffer(this.frameBuffer); } if (null != this.texture) { this.gl; var e = this.texture; Vb.textureStateCache.remove(e), Vb.context.deleteTexture(e); } (this.frameBuffer = null), (this.texture = null); }, resize: function (e, t) { if (this.width != e || this.height != t) { var s = (this.width = e), n = (this.height = t); if (this.powerOfTwo) { for (var i = 1; i < e; ) i <<= 1; s = i; for (var r = 1; r < t; ) r <<= 1; n = r; } var o = this.__width, a = this.__height; if ( ((this.__width = s), (this.__height = n), this.createUVs(), o != s || a != n) ) { if (0 == Hg.glMaxTextureSize) { this.gl; Hg.glMaxTextureSize = Vb.context.getParameter( this.gl.MAX_TEXTURE_SIZE ); } this.__width > Hg.glMaxTextureSize && (this.__width = Hg.glMaxTextureSize), this.__height > Hg.glMaxTextureSize && (this.__height = Hg.glMaxTextureSize); this.gl; var l = this.texture; Vb.currentBoundTexture[Vb.currentActiveTexture] != l && (Vb.context.bindTexture(this.gl.TEXTURE_2D, l), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = l) || Vb.textureStateCache.exists(l) || Vb.textureStateCache.set(l, new lp())); this.gl; Vb.context.texImage2D( this.gl.TEXTURE_2D, 0, this.gl.RGBA, this.__width, this.__height, 0, this.gl.RGBA, this.gl.UNSIGNED_BYTE, null ); } } }, createUVs: function () { null == this.__uvData && (this.__uvData = new vw()); var e = this.width / this.__width, t = this.height / this.__height; (this.__uvData.x0 = 0), (this.__uvData.y0 = 0), (this.__uvData.x1 = e), (this.__uvData.y1 = 0), (this.__uvData.x2 = e), (this.__uvData.y2 = t), (this.__uvData.x3 = 0), (this.__uvData.y3 = t); }, powOfTwo: function (e) { for (var t = 1; t < e; ) t <<= 1; return t; }, __class__: Hg, }); var Vg = function (e) { this.setContext(e); }; ((s["openfl._internal.renderer.opengl.utils.ShaderManager"] = Vg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "utils", "ShaderManager", ]), (Vg.prototype = { setContext: function (e) { (this.gl = e), (this.defaultShader = new Fg(e)), (this.defaultMaskedShader = new kg(e)), (this.fillShader = new Lg(e)), (this.patternFillShader = new Ng(e)), (this.drawTrianglesShader = new Mg(e)), (this.primitiveShader = new Og(e)), this.setShader(this.defaultShader, !0); }, destroy: function () { this.defaultShader.destroy(), this.fillShader.destroy(), this.patternFillShader.destroy(), this.drawTrianglesShader.destroy(), this.primitiveShader.destroy(), (this.gl = null); }, setShader: function (e, t) { if ((null == t && (t = !1), null == e)) { this.currentShader = null; this.gl; var s = null; return ( s != Vb.currentProgram && (Vb.context.useProgram(s), (s = Vb.currentProgram)), !0 ); } if (null != this.currentShader && !t && this.currentShader.ID == e.ID) return !1; this.currentShader = e; this.gl; var n = e.program; return ( n != Vb.currentProgram && (Vb.context.useProgram(n), (n = Vb.currentProgram)), !0 ); }, __class__: Vg, }); var Yg = function () {}; ((s["openfl._internal.renderer.opengl.utils.VertexBufferContext"] = Yg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "utils", "VertexBufferContext", ]), (Yg.prototype = { __class__: Yg }); var Wg = function (e, t, s) { null == s && (s = 3), null == t && (t = 2e3), (this.vertexBufferContextIndex = 0), (this.colorTransform = new jm()), (this.matrix = new Km()), (this.lastEnableColor = !0), (this.enableColor = !0), (this.attributes = []), (this.writtenVertexBytes = 0), (this.preventFlush = !1), (this.drawing = !1), (this.states = []), (this.maxSprites = t), this.attributes.push(new qg(2, 5126, !1, "openfl_aPosition")), this.attributes.push(new qg(2, 5126, !1, "openfl_aTexCoord0")), this.attributes.push(new qg(4, 5121, !0, "openfl_aColor")); var n, i = [1, 1, 1, 1]; (n = null != i ? new GT(i) : null), (this.attributes[2].defaultValue = n); for ( var r = (this.maxElementsPerVertex = 0), o = this.attributes; r < o.length; ) { var a = o[r]; ++r; var l, h = this.maxElementsPerVertex; switch (a.type) { case 5120: case 5121: l = 1; break; case 5122: case 5123: l = 2; break; default: l = 4; } this.maxElementsPerVertex = h + Math.floor((a.components * l) / 4); } (this.vertexArraySize = t * this.maxElementsPerVertex * 4 * 4), (this.indexArraySize = 6 * t), (this.vertexBufferContexts = []); for (var _ = 0, u = s; _ < u; ) { var d = _++; this.vertexBufferContexts.push(new Yg()); var c = this.vertexBufferContexts[d]; c.vertexArray = new Kg(this.attributes, this.vertexArraySize, !1); var f, p = c.vertexArray.buffer; (f = null != p ? new GT(p, 0) : null), (c.positions = f); var b, m = c.vertexArray.buffer; (b = null != m ? new Uint32Array(m, 0) : null), (c.colors = b); } (this.vertexArray = this.vertexBufferContexts[0].vertexArray), (this.positions = this.vertexBufferContexts[0].positions), (this.colors = this.vertexBufferContexts[0].colors); var g, w = this.indexArraySize; (g = null != w ? new Uint16Array(w) : null), (this.indices = g); for (var v = 0, y = 0; v < this.indexArraySize; ) (this.indices[v] = y), (this.indices[v + 1] = y + 1), (this.indices[v + 2] = y + 2), (this.indices[v + 3] = y), (this.indices[v + 4] = y + 2), (this.indices[v + 5] = y + 3), (v += 6), (y += 4); (this.currentState = new jg()), (this.drawing = !1), (this.batchedSprites = 0), this.setContext(e); }; ((s["openfl._internal.renderer.opengl.utils.SpriteBatch"] = Wg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "utils", "SpriteBatch", ]), (Wg.prototype = { destroy: function () { for (var e = 0, t = this.vertexBufferContexts; e < t.length; ) { var s = t[e]; ++e, s.vertexArray.destroy(), (s.vertexArray = null); } this.indices = null; this.gl; Vb.context.deleteBuffer(this.indexBuffer), this.currentState.destroy(); for (var n = 0, i = this.states; n < i.length; ) { var r = i[n]; ++n, r.destroy(); } (this.colorTransform = null), (this.gl = null); }, begin: function (e, t, s, n) { (this.renderSession = e), (this.shader = e.shaderManager.defaultShader), this.start(t, s, n); }, finish: function () { this.stop(), (this.clipRect = null); }, start: function (e, t, s) { (this.drawing = !0), (this.maskBitmap = t), (this.maskMatrix = s), (this.clipRect = e); }, stop: function () { (this.drawing = !1), this.flush(); }, renderBitmapData: function (e, t, s, n, i, r, o, a) { null == i && (i = 1), null != e && this.renderBitmapDataEx( e, e.physicalWidth, e.physicalHeight, e.get_uvData(), t, s, n, i, r, o, a ); }, renderBitmapDataEx: function (e, t, s, n, i, r, o, a, l, h, _) { if (0 != t && 0 != s) { var u = e.getTexture(this.gl); if ( (this.batchedSprites >= this.maxSprites && this.flush(), null != n) ) { if (null != h) { h.__init(this.gl), (h.__shader.wrapS = h.repeatX), (h.__shader.wrapT = h.repeatY), (h.__shader.smooth = h.smooth), (h.__shader.blendMode = h.blendMode); var d = h.data.get(kw.uObjectSize), c = h.data.get(kw.uTextureSize); if (null != e) if ( ((d.value[0] = e.width), (d.value[1] = e.height), null != e.get_bd().__pingPongTexture) ) { var f = c.value, p = e.get_bd().__pingPongTexture; f[0] = (p.__swapped ? p.__texture1 : p.__texture0).__width; var b = c.value, m = e.get_bd().__pingPongTexture; b[1] = (m.__swapped ? m.__texture1 : m.__texture0).__height; } else (c.value[0] = e.width), (c.value[1] = e.height); else (d.value[0] = 0), (d.value[1] = 0), (c.value[0] = 0), (c.value[1] = 0); } var g = ((255 & ((255 * a) | 0)) << 24) | 16777215; (this.enableColor = !0), this.enableColor != this.lastEnableColor && (this.flush(), (this.lastEnableColor = this.enableColor)), (this.attributes[2].enabled = this.lastEnableColor); for (var w = 0, v = 0, y = this.attributes; v < y.length; ) { var T = y[v]; if ((++v, T.enabled)) { var S; switch (T.type) { case 5120: case 5121: S = 1; break; case 5122: case 5123: S = 2; break; default: S = 4; } w += Math.floor((T.components * S) / 4); } } this.elementsPerVertex = w; var x = this.renderSession.getRenderTargetBaseTransform(), E = Km.pool.get(); e.getLocalTransform(E), E.concat(r), E.concat(x), null == i && (i = !( Math.abs(Math.abs(E.a) * t - e.physicalWidth) < 0.5 && Math.abs(Math.abs(E.d) * s - e.physicalHeight) < 0.5 && Math.abs(E.b) < 0.001 && Math.abs(E.c) < 0.001 )), 1 == _ && (_ = i && 0 == r.b && 0 == r.c && Math.abs(1 - r.a) < 0.001 && Math.abs(1 - r.d) < 0.001 ? ((r.a = 1), (r.d = 1), 0) : 2); var P = 4 * this.batchedSprites * this.elementsPerVertex, R = E.a, A = E.b, I = E.c, C = E.d, B = E.tx, D = E.ty; if ( ((this.positions[P + 16] = null == _ || 2 == _ ? ((this.positions[P] = B), (this.positions[P + 1] = D), (this.positions[P + 5] = R * t + B), (this.positions[P + 6] = A * t + D), (this.positions[P + 10] = R * t + I * s + B), (this.positions[P + 11] = C * s + A * t + D), (this.positions[P + 15] = I * s + B), C * s + D) : ((this.positions[P] = Math.round(B)), (this.positions[P + 1] = Math.round(D)), (this.positions[P + 5] = Math.round(B) + R * t), (this.positions[P + 6] = Math.round(D) + A * t), (this.positions[P + 10] = Math.round(B) + R * t + I * s), (this.positions[P + 11] = Math.round(D) + C * s + A * t), (this.positions[P + 15] = Math.round(B) + I * s), Math.round(D) + C * s)), this.enableColor) ) { var k = (this.colors[P + 19] = g), F = (this.colors[P + 14] = k), M = (this.colors[P + 9] = F); this.colors[P + 4] = M; } (this.positions[P + 2] = n.x0), (this.positions[P + 3] = n.y0), (this.positions[P + 7] = n.x1), (this.positions[P + 8] = n.y1), (this.positions[P + 12] = n.x2), (this.positions[P + 13] = n.y2), (this.positions[P + 17] = n.x3), (this.positions[P + 18] = n.y3), (this.writtenVertexBytes = P + 20); var L = this.batchedSprites, N = this.states[L]; if ( (null == N && (N = this.states[L] = new jg()), (N.texture = u), null != this.maskBitmap && null != this.maskBitmap.get_uvData()) ) { N.maskTexture = this.maskBitmap.getTexture(this.gl); var O = this.maskBitmap.get_uvData(), U = N.maskTextureUVScale; (U.x = O.x1), (U.y = O.y2), N.maskMatrix.copyFrom(this.maskMatrix); } else N.maskTexture = null; (N.textureSmooth = i), (N.blendMode = null != l ? l : 10), (N.skipColorTransform = null != o && o.__isDefault()), N.skipColorTransform || ((N.colorTransform.redMultiplier = o.redMultiplier), (N.colorTransform.greenMultiplier = o.greenMultiplier), (N.colorTransform.blueMultiplier = o.blueMultiplier), (N.colorTransform.alphaMultiplier = o.alphaMultiplier), (N.colorTransform.redOffset = o.redOffset), (N.colorTransform.greenOffset = o.greenOffset), (N.colorTransform.blueOffset = o.blueOffset), (N.colorTransform.alphaOffset = o.alphaOffset)), (N.shaderData = null == h ? (N.shader = null) : ((N.shader = h.__shader), h.data)), this.batchedSprites++, Km.pool.put(E); } } }, fillVertices: function (e, t, s, n, i, r, o) { null == r && (r = -1); var a = n.a, l = n.b, h = n.c, _ = n.d, u = n.tx, d = n.ty; if ( ((this.positions[e + 16] = null == o || 2 == o ? ((this.positions[e] = u), (this.positions[e + 1] = d), (this.positions[e + 5] = a * t + u), (this.positions[e + 6] = l * t + d), (this.positions[e + 10] = a * t + h * s + u), (this.positions[e + 11] = _ * s + l * t + d), (this.positions[e + 15] = h * s + u), _ * s + d) : ((this.positions[e] = Math.round(u)), (this.positions[e + 1] = Math.round(d)), (this.positions[e + 5] = Math.round(u) + a * t), (this.positions[e + 6] = Math.round(d) + l * t), (this.positions[e + 10] = Math.round(u) + a * t + h * s), (this.positions[e + 11] = Math.round(d) + _ * s + l * t), (this.positions[e + 15] = Math.round(u) + h * s), Math.round(d) + _ * s)), this.enableColor) ) { var c = (this.colors[e + 19] = r), f = (this.colors[e + 14] = c), p = (this.colors[e + 9] = f); this.colors[e + 4] = p; } (this.positions[e + 2] = i.x0), (this.positions[e + 3] = i.y0), (this.positions[e + 7] = i.x1), (this.positions[e + 8] = i.y1), (this.positions[e + 12] = i.x2), (this.positions[e + 13] = i.y2), (this.positions[e + 17] = i.x3), (this.positions[e + 18] = i.y3), (this.writtenVertexBytes = e + 20); }, enableAttributes: function (e) { null == e && (e = -1), (this.enableColor = -1 != e), this.enableColor != this.lastEnableColor && (this.flush(), (this.lastEnableColor = this.enableColor)), (this.attributes[2].enabled = this.lastEnableColor); for (var t = 0, s = 0, n = this.attributes; s < n.length; ) { var i = n[s]; if ((++s, i.enabled)) { var r; switch (i.type) { case 5120: case 5121: r = 1; break; case 5122: case 5123: r = 2; break; default: r = 4; } t += Math.floor((i.components * r) / 4); } } this.elementsPerVertex = t; }, flush: function () { if (this.preventFlush) throw new Mp("SpriteBatch flush forbidden"); if (0 != this.batchedSprites) { if (null != this.clipRect) { this.gl; Vb.context.enable(this.gl.SCISSOR_TEST); this.gl; Vb.context.scissor( Math.floor(this.clipRect.x), Math.floor(this.clipRect.y), Math.ceil(this.clipRect.width), Math.ceil(this.clipRect.height) ); } this.renderSession.activeTextures = 1; var e = this.vertexArray; e.gl; Vb.context.bindBuffer(e.gl.ARRAY_BUFFER, e.glBuffer); this.gl; Vb.context.bindBuffer(this.gl.ELEMENT_ARRAY_BUFFER, this.indexBuffer); var t, s = this.vertexArray, n = this.positions.subarray(0, this.writtenVertexBytes); s.gl; Vb.context.bufferSubData(s.gl.ARRAY_BUFFER, 0, n), (this.vertexBufferContextIndex = (this.vertexBufferContextIndex + 1) % this.vertexBufferContexts.length), (this.vertexArray = this.vertexBufferContexts[ this.vertexBufferContextIndex ].vertexArray), (this.positions = this.vertexBufferContexts[ this.vertexBufferContextIndex ].positions), (this.colors = this.vertexBufferContexts[this.vertexBufferContextIndex].colors); var i = 0, r = 0; (this.currentState.shader = null), (this.currentState.shaderData = null), (this.currentState.texture = null), (this.currentState.maskTexture = null), (this.currentState.maskMatrix = null), (this.currentState.textureSmooth = !1), (this.currentState.blendMode = this.renderSession.blendModeManager.currentBlendMode), (this.currentState.colorTransform = null); for (var o = 0, a = this.batchedSprites; o < a; ) { var l = o++; t = this.states[l]; var h = this.currentState; if ( !( (null == t.shader && null == h.shader) || (null != t.shader && null != h.shader && t.shader.ID == h.shader.ID) ) || t.texture != h.texture || t.maskTexture != h.maskTexture || t.textureSmooth != h.textureSmooth || t.blendMode != h.blendMode || !( (t.skipColorTransform && h.skipColorTransform) || (!t.skipColorTransform && !h.skipColorTransform && t.colorTransform.__equals(h.colorTransform, !0)) ) ) { this.renderBatch(this.currentState, i, r), (r = l), (i = 0), (this.currentState.shader = t.shader), (this.currentState.shaderData = t.shaderData), (this.currentState.texture = t.texture), (this.currentState.maskTexture = t.maskTexture); var _ = t.maskTextureUVScale, u = this.currentState.maskTextureUVScale; (u.x = _.x), (u.y = _.y), (this.currentState.maskMatrix = t.maskMatrix), (this.currentState.textureSmooth = t.textureSmooth), (this.currentState.blendMode = t.blendMode), (this.currentState.skipColorTransform = t.skipColorTransform), (this.currentState.colorTransform = this.currentState .skipColorTransform ? null : t.colorTransform); } ++i; } if ( (this.renderBatch(this.currentState, i, r), (this.batchedSprites = 0), (this.writtenVertexBytes = 0), null != this.clipRect) ) { this.gl; Vb.context.disable(this.gl.SCISSOR_TEST); } } }, renderBatch: function (e, t, s) { if (0 != t && null != e.texture) { var n = null == e.shader ? null != e.maskTexture ? this.renderSession.shaderManager.defaultMaskedShader : this.renderSession.shaderManager.defaultShader : e.shader; if ( (this.renderSession.shaderManager.setShader(n), n.bindVertexArray(this.vertexArray), !0, this.renderSession.blendModeManager.setBlendMode( null != n.blendMode ? n.blendMode : e.blendMode ), n.uniformMatrix3fv( n.getUniformLocation("openfl_uProjectionMatrix"), !1, this.renderSession.projectionMatrix ), null != e.colorTransform) ) { n.uniform1i(n.getUniformLocation("openfl_uUseColorTransform"), 1); var i = e.colorTransform; n.uniform4f( n.getUniformLocation("openfl_uColorMultiplier"), i.redMultiplier, i.greenMultiplier, i.blueMultiplier, 1 ), n.uniform4f( n.getUniformLocation("openfl_uColorOffset"), i.redOffset / 255, i.greenOffset / 255, i.blueOffset / 255, i.alphaOffset / 255 ); } else n.uniform1i(n.getUniformLocation("openfl_uUseColorTransform"), 0), n.uniform4f( n.getUniformLocation("openfl_uColorMultiplier"), 1, 1, 1, 1 ), n.uniform4f( n.getUniformLocation("openfl_uColorOffset"), 0, 0, 0, 0 ); this.gl; var r = this.gl.TEXTURE0; r != Vb.currentActiveTexture && (Vb.context.activeTexture(r), (Vb.currentActiveTexture = r)); this.gl; var o = e.texture; if ( (Vb.currentBoundTexture[Vb.currentActiveTexture] != o && (Vb.context.bindTexture(this.gl.TEXTURE_2D, o), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = o) || Vb.textureStateCache.exists(o) || Vb.textureStateCache.set(o, new lp())), (null != n.smooth && n.smooth) || e.textureSmooth) ) { this.gl; var a = this.gl.TEXTURE_2D, l = this.gl.TEXTURE_MAG_FILTER, h = this.gl.LINEAR, _ = Vb.currentBoundTexture[Vb.currentActiveTexture], u = Vb.textureStateCache.get(_); u.h[l] != h && (Vb.context.texParameteri(a, l, h), (u.h[l] = h)); this.gl; var d = this.gl.TEXTURE_2D, c = this.gl.TEXTURE_MIN_FILTER, f = this.gl.LINEAR, p = Vb.currentBoundTexture[Vb.currentActiveTexture], b = Vb.textureStateCache.get(p); b.h[c] != f && (Vb.context.texParameteri(d, c, f), (b.h[c] = f)); } else { this.gl; var m = this.gl.TEXTURE_2D, g = this.gl.TEXTURE_MAG_FILTER, w = this.gl.NEAREST, v = Vb.currentBoundTexture[Vb.currentActiveTexture], y = Vb.textureStateCache.get(v); y.h[g] != w && (Vb.context.texParameteri(m, g, w), (y.h[g] = w)); this.gl; var T = this.gl.TEXTURE_2D, S = this.gl.TEXTURE_MIN_FILTER, x = this.gl.NEAREST, E = Vb.currentBoundTexture[Vb.currentActiveTexture], P = Vb.textureStateCache.get(E); P.h[S] != x && (Vb.context.texParameteri(T, S, x), (P.h[S] = x)); } this.gl; var R = this.gl.TEXTURE_2D, A = this.gl.TEXTURE_WRAP_S, I = n.wrapS, C = Vb.currentBoundTexture[Vb.currentActiveTexture], B = Vb.textureStateCache.get(C); B.h[A] != I && (Vb.context.texParameteri(R, A, I), (B.h[A] = I)); this.gl; var D = this.gl.TEXTURE_2D, k = this.gl.TEXTURE_WRAP_T, F = n.wrapT, M = Vb.currentBoundTexture[Vb.currentActiveTexture], L = Vb.textureStateCache.get(M); if ( (L.h[k] != F && (Vb.context.texParameteri(D, k, F), (L.h[k] = F)), null != e.maskTexture) ) { this.gl; var N = this.gl.TEXTURE1; N != Vb.currentActiveTexture && (Vb.context.activeTexture(N), (Vb.currentActiveTexture = N)); this.gl; var O = e.maskTexture; Vb.currentBoundTexture[Vb.currentActiveTexture] != O && (Vb.context.bindTexture(this.gl.TEXTURE_2D, O), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = O) || Vb.textureStateCache.exists(O) || Vb.textureStateCache.set(O, new lp())), n.uniformMatrix3fv( n.getUniformLocation("openfl_uMaskMatrix"), !1, e.maskMatrix ), n.uniform2f( n.getUniformLocation("openfl_uUVScale"), e.maskTextureUVScale.x, e.maskTextureUVScale.y ); } n.applyData(e.shaderData, this.renderSession); this.gl; Vb.context.drawElements( this.gl.TRIANGLES, 6 * t, this.gl.UNSIGNED_SHORT, 6 * s * 2 ), this.renderSession.drawCount++; } }, setState: function (e, t, s, n, i, r) { null == s && (s = !1); var o = this.states[e]; if ( (null == o && (o = this.states[e] = new jg()), (o.texture = t), null != this.maskBitmap && null != this.maskBitmap.get_uvData()) ) { o.maskTexture = this.maskBitmap.getTexture(this.gl); var a = this.maskBitmap.get_uvData(), l = o.maskTextureUVScale; (l.x = a.x1), (l.y = a.y2), o.maskMatrix.copyFrom(this.maskMatrix); } else o.maskTexture = null; (o.textureSmooth = s), (o.blendMode = null != n ? n : 10), (o.skipColorTransform = null != i && i.__isDefault()), o.skipColorTransform || ((o.colorTransform.redMultiplier = i.redMultiplier), (o.colorTransform.greenMultiplier = i.greenMultiplier), (o.colorTransform.blueMultiplier = i.blueMultiplier), (o.colorTransform.alphaMultiplier = i.alphaMultiplier), (o.colorTransform.redOffset = i.redOffset), (o.colorTransform.greenOffset = i.greenOffset), (o.colorTransform.blueOffset = i.blueOffset), (o.colorTransform.alphaOffset = i.alphaOffset)), (o.shaderData = null == r ? (o.shader = null) : ((o.shader = r.__shader), r.data)); }, setContext: function (e) { this.gl = e; for (var t = 0, s = this.vertexBufferContexts; t < s.length; ) { var n = s[t]; ++t, n.vertexArray.setContext(e, n.positions); } (this.indexBuffer = Vb.context.createBuffer()), Vb.context.bindBuffer(e.ELEMENT_ARRAY_BUFFER, this.indexBuffer), Vb.context.bufferData( e.ELEMENT_ARRAY_BUFFER, this.indices, e.STATIC_DRAW ); }, prepareShader: function (e, t) { if (null != e) { e.__init(this.gl), (e.__shader.wrapS = e.repeatX), (e.__shader.wrapT = e.repeatY), (e.__shader.smooth = e.smooth), (e.__shader.blendMode = e.blendMode); var s = e.data.get(kw.uObjectSize), n = e.data.get(kw.uTextureSize); if (null != t) if ( ((s.value[0] = t.width), (s.value[1] = t.height), null != t.get_bd().__pingPongTexture) ) { var i = n.value, r = t.get_bd().__pingPongTexture; i[0] = (r.__swapped ? r.__texture1 : r.__texture0).__width; var o = n.value, a = t.get_bd().__pingPongTexture; o[1] = (a.__swapped ? a.__texture1 : a.__texture0).__height; } else (n.value[0] = t.width), (n.value[1] = t.height); else (s.value[0] = 0), (s.value[1] = 0), (n.value[0] = 0), (n.value[1] = 0); } }, getElementsPerVertex: function () { for (var e = 0, t = 0, s = this.attributes; t < s.length; ) { var n = s[t]; if ((++t, n.enabled)) { var i; switch (n.type) { case 5120: case 5121: i = 1; break; case 5122: case 5123: i = 2; break; default: i = 4; } e += Math.floor((n.components * i) / 4); } } return e; }, setNextVertexBufferContext: function () { (this.vertexBufferContextIndex = (this.vertexBufferContextIndex + 1) % this.vertexBufferContexts.length), (this.vertexArray = this.vertexBufferContexts[ this.vertexBufferContextIndex ].vertexArray), (this.positions = this.vertexBufferContexts[this.vertexBufferContextIndex].positions), (this.colors = this.vertexBufferContexts[this.vertexBufferContextIndex].colors); }, __class__: Wg, }); var jg = function () { (this.maskMatrix = new Km()), (this.maskTextureUVScale = new Qb()), (this.skipColorTransform = !1), (this.textureSmooth = !0), (this.colorTransform = jm.pool.get()), this.colorTransform.reset(); }; ((s["openfl._internal.renderer.opengl.utils._SpriteBatch.State"] = jg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "utils", "_SpriteBatch", "State", ]), (jg.prototype = { equals: function (e) { return ( ((null == this.shader && null == e.shader) || (null != this.shader && null != e.shader && this.shader.ID == e.shader.ID)) && this.texture == e.texture && this.maskTexture == e.maskTexture && this.textureSmooth == e.textureSmooth && this.blendMode == e.blendMode && (!(!this.skipColorTransform || !e.skipColorTransform) || (!this.skipColorTransform && !e.skipColorTransform && this.colorTransform.__equals(e.colorTransform, !0))) ); }, destroy: function () { (this.texture = null), (this.colorTransform = null), (this.maskTexture = null), jm.pool.put(this.colorTransform), null != this.maskMatrix && (this.maskMatrix = null); }, __class__: jg, }); var Kg = function (e, t, s) { null == s && (s = !1), null == t && (t = 0), (this.isStatic = !1), (this.size = 0), (this.attributes = []), (this.size = t), (this.attributes = e), 0 < t && (this.buffer = new OT(t)), (this.isStatic = s); }; ((s["openfl._internal.renderer.opengl.utils.VertexArray"] = Kg).__name__ = [ "openfl", "_internal", "renderer", "opengl", "utils", "VertexArray", ]), (Kg.prototype = { bind: function () { this.gl; Vb.context.bindBuffer(this.gl.ARRAY_BUFFER, this.glBuffer); }, unbind: function () { this.gl; Vb.context.bindBuffer(this.gl.ARRAY_BUFFER, null); }, upload: function (e) { this.gl; Vb.context.bufferSubData(this.gl.ARRAY_BUFFER, 0, e); }, destroy: function () { if (null != this.gl) { this.gl; Vb.context.deleteBuffer(this.glBuffer); } this.buffer = null; }, setContext: function (e, t) { (this.gl = e), (this.glBuffer = Vb.context.createBuffer()), Vb.context.bindBuffer(e.ARRAY_BUFFER, this.glBuffer), Vb.context.bufferData( e.ARRAY_BUFFER, t, this.isStatic ? e.STATIC_DRAW : e.DYNAMIC_DRAW ); }, get_stride: function () { for (var e = 0, t = 0, s = this.attributes; t < s.length; ) { var n = s[t]; if ((++t, n.enabled)) { var i; switch (n.type) { case 5120: case 5121: i = 1; break; case 5122: case 5123: i = 2; break; default: i = 4; } e += 4 * Math.floor((n.components * i) / 4); } } return e; }, __class__: Kg, __properties__: { get_stride: "get_stride" }, }); var qg = function (e, t, s, n, i) { var r; (null == s && (s = !1), (this.enabled = !0), (this.normalized = !1), (this.components = e), (this.type = t), (this.normalized = s), (this.name = n), null == i) ? ((r = null != e ? new GT(e) : null), (this.defaultValue = r)) : (this.defaultValue = i); }; ((s["openfl._internal.renderer.opengl.utils.VertexAttribute"] = qg).__name__ = ["openfl", "_internal", "renderer", "opengl", "utils", "VertexAttribute"]), (qg.prototype = { copy: function () { return new qg( this.components, this.type, this.normalized, this.name, this.defaultValue ); }, getElementsBytes: function () { switch (this.type) { case 5120: case 5121: return 1; case 5122: case 5123: return 2; default: return 4; } }, get_elements: function () { var e; switch (this.type) { case 5120: case 5121: e = 1; break; case 5122: case 5123: e = 2; break; default: e = 4; } return Math.floor((this.components * e) / 4); }, __class__: qg, __properties__: { get_elements: "get_elements" }, }); var Zg = function (e) { (this.textField = e), (this.width = 100), (this.height = 100), (this.text = ""), (this.bounds = new cy(0, 0, 0, 0)), (this.type = 0), (this.autoSize = 2), (this.displayAsPassword = !1), (this.embedFonts = !1), (this.selectable = !0), (this.computeAdvances = !1), (this.borderColor = 0), (this.border = !1), (this.backgroundColor = 16777215), (this.background = !1), (this.gridFitType = 1), (this.maxChars = 0), (this.multiline = !1), (this.sharpness = 0), (this.scrollH = 0), (this.scrollV = 1), (this.wordWrap = !1), (this.lineAscents = []), (this.lineBreaks = []), (this.lineDescents = []), (this.lineLeadings = []), (this.lineHeights = []), (this.lineWidths = []), (this.layoutGroups = []), (this.lineLayoutGroups = []), (this.textFormatRanges = []), (Zg.__canvas = window.document.createElement("canvas")), (Zg.__context = Zg.__canvas.getContext("2d")); }; ((s["openfl._internal.text.TextEngine"] = Zg).__name__ = [ "openfl", "_internal", "text", "TextEngine", ]), (Zg.__canvas = null), (Zg.__context = null), (Zg.getFont = function (e) { var t = e.font, s = e.italic ? "italic " : "normal "; switch ( ((s += "normal "), (s += e.bold ? "bold " : "normal "), (s += e.size + "px"), (s += "/" + (e.size + e.leading + 6) + "px "), e.font) ) { case "_sans": s += "sans-serif"; break; case "_serif": s += "serif"; break; case "_typewriter": s += "monospace"; break; default: s += "'" + t + "'"; } var n = s, i = De.getProperty(Wm.getLibrary("default"), "fontData").get(t); if (null == i) { Zf.trace( "Warning: No font data found for font: " + t + ". Falling back to " + e.font, { fileName: "TextEngine.hx", lineNumber: 242, className: "openfl._internal.text.TextEngine", methodName: "getFont", } ), (i = De.getProperty(Wm.getLibrary("default"), "fontData").get( e.font )); var r = e.font, o = "normal "; switch ( ((o += "normal "), (o += "normal "), (o += e.size + "px"), (o += "/" + (e.size + e.leading + 6) + "px "), e.font) ) { case "_sans": o += "sans-serif"; break; case "_serif": o += "serif"; break; case "_typewriter": o += "monospace"; break; default: o += "'" + r + "'"; } if (((n = o), null == i)) return ( Zf.trace( "Fallback didn't contain font data. Falling back to defaults.", { fileName: "TextEngine.hx", lineNumber: 248, className: "openfl._internal.text.TextEngine", methodName: "getFont", } ), { name: n, ascent: 0.825, descent: 0.175 } ); } return { name: n, ascent: i.ascent, descent: i.descent }; }), (Zg.getFontInstance = function (e) { return null; }), (Zg.prototype = { getBounds: function () { var e = this.border ? 1 : 0; (this.bounds.width = this.width + e), (this.bounds.height = this.height + e); }, getLine: function (e) { return e < 0 || e > this.lineBreaks.length + 1 ? null : 0 == this.lineBreaks.length ? this.text : this.text.substring( 0 < e ? this.lineBreaks[e - 1] : 0, this.lineBreaks[e] ); }, calculateFontDimensions: function (e, t) { var s = {}; return ( (s.ascent = e.size * t.ascent), (s.descent = e.size * t.descent), (s.leading = e.leading), (s.height = s.ascent + s.descent + s.leading), s ); }, getLineMeasurements: function () { this.lineAscents.splice(0, this.lineAscents.length), this.lineDescents.splice(0, this.lineDescents.length), this.lineLeadings.splice(0, this.lineLeadings.length), this.lineHeights.splice(0, this.lineHeights.length), this.lineWidths.splice(0, this.lineWidths.length); var e = 0, t = 0, s = null, n = 0, i = 0; (this.textWidth = 0), (this.textHeight = 0), (this.numLines = 1), (this.bottomScrollV = 0); for ( var r = (this.maxScrollH = 0), o = this.lineLayoutGroups; r < o.length; ) { var a = o[r]; if ((++r, 0 < a.length)) { for (var l = a[0]; l.lineIndex > this.numLines - 1; ) this.lineAscents.push(e), this.lineDescents.push(t), this.lineLeadings.push(null != s ? s : 0), this.lineHeights.push(n), this.lineWidths.push(i), (s = null), (i = n = t = e = 0), this.numLines++, this.textHeight <= this.height - 2 && this.bottomScrollV++; (e = Math.max(e, l.ascent)), (t = Math.max(t, l.descent)), (s = null == s ? l.leading : 0 | Math.max(s, l.leading)), (n = Math.max(n, l.height)), (this.textHeight = l.offsetY - 2 + l.ascent + l.descent); for (var h = (i = 0); h < a.length; ) { var _ = a[h]; ++h, (i += _.width) > this.textWidth && (this.textWidth = i); } } } this.lineAscents.push(e), this.lineDescents.push(t), this.lineLeadings.push(null != s ? s : 0), this.lineHeights.push(n), this.lineWidths.push(i), 1 == this.numLines ? ((this.bottomScrollV = 1), 0 < s && (this.textHeight += s)) : this.textHeight <= this.height - 2 && this.bottomScrollV++, this.textWidth > this.width - 4 ? (this.maxScrollH = (this.textWidth - this.width + 4) | 0) : (this.maxScrollH = 0), (this.maxScrollV = this.numLines - this.bottomScrollV + 1); }, getLayoutGroups: function () { var e = this; this.layoutGroups.splice(0, this.layoutGroups.length), this.lineLayoutGroups.splice(0, this.lineLayoutGroups.length); var t, s = -1, n = null, i = this.textField.get_defaultTextFormat(), r = 0, o = 0, a = 0, l = 0, h = [], _ = 0, u = 2, d = 2, c = 0, f = 0, p = this.text.length; if (s < e.textFormatRanges.length - 1) { ++s, (n = e.textFormatRanges[s]), i.__merge(n.format); var b = Zg.getFont(i); Zg.__context.font = b.name; var m = e.calculateFontDimensions(i, b); (o = m.ascent), (a = m.descent), (r = m.leading), (_ = m.height); } var g = n.format; t = new Qg(g, n.start, -1); var w = u, v = 2 == u; if ((v && 0 < g.leftMargin && (w += g.leftMargin), v && g.bullet)) { w += Zg.__context.measureText("●\t\t").width; } for ( t.offsetX = w, t.ascent = o, t.descent = a, t.leading = r, t.lineIndex = f, t.offsetY = d, t.height = _, l = 0; c < p; ) { var y = p, T = e.text.indexOf(" ", c); 0 <= T && T < y && (y = T); var S = e.text.indexOf("-", c); 0 <= S && S < y && (y = S); var x = e.text.indexOf("\n", c); 0 <= x && x < y && (y = x); var E = this.text.charAt(y); n.end - 1 < y && "\n" == E && ((y = n.end - 1), (E = this.text.charAt(y))); var P = this.text, R = t.startIndex, A = null == R && null == y ? Zg.__context.measureText(P).width : Zg.__context.measureText(P.substring(R, y)).width; if (e.selectable || e.computeAdvances) { for (var I = this.text, C = [], B = t.startIndex, D = y; B < D; ) { var k = B++, F = I.charAt(k), M = Yf.repeat(64, F), L = Zg.__context.measureText(M).width / 64; C.push(L); } h = C; } if ( 1 < y - c && this.wordWrap && Math.floor(t.offsetX + A) > this.width - 4 ) { var N = this.text, O = null == c && null == y ? Zg.__context.measureText(N).width : Zg.__context.measureText(N.substring(c, y)).width; if (2 == t.offsetX && Math.floor(t.offsetX + O) > this.width - 4) { if (null == h || 0 == h.length) { for ( var U = this.text, G = [], z = t.startIndex, X = y; z < X; ) { var H = z++, V = U.charAt(H), Y = Yf.repeat(64, V), W = Zg.__context.measureText(Y).width / 64; G.push(W); } h = G; } for (var j = 0, K = 0; K < h.length; ) { if (((j += h[K]), Math.floor(t.offsetX + j) > this.width - 4)) { (c = t.startIndex + K), h.splice(c - t.startIndex, y - c); break; } ++K; } K == h.length && (c = t.startIndex + K), (l = this.width - 4); } var q = c; if (t.startIndex != q) { for ( t.endIndex = q, t.width = l, t.advances = h, h = null, e.layoutGroups.push(t); e.lineLayoutGroups.length <= f; ) e.lineLayoutGroups.push([]); e.lineLayoutGroups[f].push(t); } for (; " " == e.text.charAt(q); ) ++q; (d += _), (u = 2), ++f; var Z = n.format; t = new Qg(Z, q, -1); var J = u, Q = 2 == u; if ((Q && 0 < Z.leftMargin && (J += Z.leftMargin), Q && Z.bullet)) { J += Zg.__context.measureText("●\t\t").width; } (t.offsetX = J), (t.ascent = o), (t.descent = a), (t.leading = r), (t.lineIndex = f), (t.offsetY = d), (t.height = _), (l = 0); } else { if (((c = y + 1), (l = A), "\n" == E)) { var $ = c; if (t.startIndex != $) { for ( t.endIndex = $, t.width = l, t.advances = h, h = null, e.layoutGroups.push(t); e.lineLayoutGroups.length <= f; ) e.lineLayoutGroups.push([]); e.lineLayoutGroups[f].push(t); } for (; " " == e.text.charAt($); ) ++$; (d += _), (u = 2), ++f; var ee = n.format; t = new Qg(ee, $, -1); var te = u, se = 2 == u; if ( (se && 0 < ee.leftMargin && (te += ee.leftMargin), se && ee.bullet) ) { te += Zg.__context.measureText("●\t\t").width; } (t.offsetX = te), (t.ascent = o), (t.descent = a), (t.leading = r), (t.lineIndex = f), (t.offsetY = d), (t.height = _), (l = 0); } else { for (var ne = 0; " " == E; ) ++ne, (E = this.text.charAt(y + ne)); 0 < ne && (c += ne - 1); } if (c >= n.end) { c = n.end; var ie = this.text, re = t.startIndex; if ( ((l = null == re && null == c ? Zg.__context.measureText(ie).width : Zg.__context.measureText(ie.substring(re, c)).width), e.selectable || e.computeAdvances) ) { for ( var oe = this.text, ae = [], le = t.startIndex, he = c; le < he; ) { var _e = le++, ue = oe.charAt(_e), de = Yf.repeat(64, ue), ce = Zg.__context.measureText(de).width / 64; ae.push(ce); } h = ae; } if (t.startIndex != c) { for ( t.endIndex = c, t.width = l, t.advances = h, h = null, e.layoutGroups.push(t); e.lineLayoutGroups.length <= f; ) e.lineLayoutGroups.push([]); e.lineLayoutGroups[f].push(t); } if (((u = t.offsetX + l), s < e.textFormatRanges.length - 1)) { ++s, (n = e.textFormatRanges[s]), i.__merge(n.format); var fe = Zg.getFont(i); Zg.__context.font = fe.name; var pe = e.calculateFontDimensions(i, fe); (o = pe.ascent), (a = pe.descent), (r = pe.leading), (_ = pe.height); } var be = n.format; t = new Qg(be, n.start, -1); var me = u, ge = 2 == u; if ( (ge && 0 < be.leftMargin && (me += be.leftMargin), ge && be.bullet) ) { me += Zg.__context.measureText("●\t\t").width; } (t.offsetX = me), (t.ascent = o), (t.descent = a), (t.leading = r), (t.lineIndex = f), (t.offsetY = d), (t.height = _), (l = 0); } else if (2 == n.format.align) { var we = y; if (t.startIndex != we) { for ( t.endIndex = we, t.width = l, t.advances = h, h = null, e.layoutGroups.push(t); e.lineLayoutGroups.length <= f; ) e.lineLayoutGroups.push([]); e.lineLayoutGroups[f].push(t); } u = t.offsetX + t.width; var ve = n.format; t = new Qg(ve, c, -1); var ye = u, Te = 2 == u; if ( (Te && 0 < ve.leftMargin && (ye += ve.leftMargin), Te && ve.bullet) ) { ye += Zg.__context.measureText("●\t\t").width; } (t.offsetX = ye), (t.ascent = o), (t.descent = a), (t.leading = r), (t.lineIndex = f), (t.offsetY = d), (t.height = _), (l = 0); } } } if (s < this.textFormatRanges.length - 1) throw new Mp( "not all text ranges were processed by the text engine." ); }, setTextAlignment: function () { var e, t, s = -1, n = 0, i = this.width; if ( (2 == this.autoSize || this.multiline || (i = this.textWidth), 0 < this.lineLayoutGroups.length) ) for (var r = 0, o = this.lineLayoutGroups.length; r < o; ) { var a = r++; if (0 < (t = this.lineLayoutGroups[a]).length) switch (((s = (e = t[0]).lineIndex), e.format.align)) { case 0: n = this.lineWidths[s] < i - 4 ? Math.round((i - 4 - this.lineWidths[s]) / 2) : 0; break; case 2: if (this.lineWidths[s] < i - 4 && 1 < t.length) { n = (e = t[t.length - 1]).endIndex < this.text.length && "\n" != this.text.charAt(e.endIndex) ? (i - 4 - this.lineWidths[s]) / (t.length - 1) : Zg.__context.measureText(" ").width; for (var l = 0, h = t.length; l < h; ) { var _ = l++; t[_].offsetX += n * _; } } n = 0; break; case 4: n = this.lineWidths[s] < i - 4 ? Math.round(i - 4 - this.lineWidths[s]) : 0; break; default: n = 0; } if (0 < n) for (var u = 0; u < t.length; ) { var d = t[u]; ++u, (d.offsetX += n); } } }, update: function () { null == this.text || "" == Ri.trim(this.text) || 0 == this.textFormatRanges.length ? (this.lineAscents.splice(0, this.lineAscents.length), this.lineBreaks.splice(0, this.lineBreaks.length), this.lineDescents.splice(0, this.lineDescents.length), this.lineLeadings.splice(0, this.lineLeadings.length), this.lineHeights.splice(0, this.lineHeights.length), this.lineWidths.splice(0, this.lineWidths.length), this.layoutGroups.splice(0, this.layoutGroups.length), this.lineLayoutGroups.splice(0, this.lineLayoutGroups.length), (this.textWidth = 0), (this.textHeight = 0), (this.numLines = 1), (this.maxScrollH = 0), (this.maxScrollV = 1), (this.bottomScrollV = 1)) : (this.getLayoutGroups(), this.getLineMeasurements(), this.setTextAlignment()), this.getBounds(); }, __class__: Zg, }); var Jg = function (e, t, s) { (this.format = e), (this.start = t), (this.end = s); }; ((s["openfl._internal.text.TextFormatRange"] = Jg).__name__ = [ "openfl", "_internal", "text", "TextFormatRange", ]), (Jg.prototype = { __class__: Jg }); var Qg = function (e, t, s) { (this.format = e), (this.startIndex = t), (this.endIndex = s); }; ((s["openfl._internal.text.TextLayoutGroup"] = Qg).__name__ = [ "openfl", "_internal", "text", "TextLayoutGroup", ]), (Qg.prototype = { __class__: Qg }); var $g = function () { Jp.call(this), null == Zm.application && (Zm.application = this); }; ((s["openfl.display.Application"] = $g).__name__ = [ "openfl", "display", "Application", ]), ($g.__super__ = Jp), ($g.prototype = n(Jp.prototype, { create: function (e) { if (((this.config = e), this.backend.create(e), null != e)) { if ( (Object.prototype.hasOwnProperty.call(e, "fps") && this.backend.setFrameRate(e.fps), Object.prototype.hasOwnProperty.call(e, "windows")) ) for (var t = 0, s = e.windows; t < s.length; ) { var n = s[t]; ++t; var i = new Hw(n); this.createWindow(i); break; } (null == this.preloader || this.preloader.complete) && this.onPreloadComplete(); } }, __class__: $g, })); var ew = function (e, t, s) { null == s && (s = !1), W.call(this), (this.bitmapData = e), (this.pixelSnapping = t), (this.smoothing = s), (this.__useSeparateRenderScaleTransform = !1), null == t && (this.pixelSnapping = 1); }; ((s["openfl.display.Bitmap"] = ew).__name__ = [ "openfl", "display", "Bitmap", ]), (ew.__super__ = W), (ew.prototype = n(W.prototype, { __getBounds: function (e) { null != this.bitmapData ? e.setTo(0, 0, this.bitmapData.width, this.bitmapData.height) : e.setEmpty(); }, __hitTest: function (e, t, s, n, i, r) { if ( !!( !!( !( 0 < this.__recursiveMouseListenerCount || null == this.__branchDepth || this.__branchDepth > W.__lastMouseListenerBranchDepth ) || !r.__visible ) || this.__isMask ) || null == this.bitmapData ) return !1; if (null != this.__mask && !this.__mask.__hitTestMask(e, t)) return !1; this.__getWorldTransform(); var o = this.__worldTransform, a = o.a * o.d - o.b * o.c, l = 0 == a ? -o.tx : (1 / a) * (o.c * (o.ty - t) + o.d * (e - o.tx)), h = this.__worldTransform, _ = h.a * h.d - h.b * h.c, u = 0 == _ ? -h.ty : (1 / _) * (h.a * (t - h.ty) + h.b * (h.tx - e)); return ( 0 < l && 0 < u && l <= this.bitmapData.width && u <= this.bitmapData.height && (null == n || i || (n._items[n._length++] = r), !0) ); }, __hitTestMask: function (e, t) { if (null == this.bitmapData) return !1; this.__getWorldTransform(); var s = this.__worldTransform, n = s.a * s.d - s.b * s.c, i = 0 == n ? -s.tx : (1 / n) * (s.c * (s.ty - t) + s.d * (e - s.tx)), r = this.__worldTransform, o = r.a * r.d - r.b * r.c, a = 0 == o ? -r.ty : (1 / o) * (r.a * (t - r.ty) + r.b * (r.tx - e)); return ( 0 < i && 0 < a && i <= this.bitmapData.width && a <= this.bitmapData.height ); }, __renderCanvasMask: function (e) { e.context.rect(0, 0, this.get_width(), this.get_height()); }, __renderGL: function (e) { if (this.__resolvedCacheAsBitmap) { if ( ((this.__isCachingAsBitmap = !0), (!this.__updateCachedBitmap && !this.__updateFilters) || (this.forbidCachedBitmapUpdate && null != this.__cachedBitmap) || this.__updateCachedBitmapFn(e), 0 < this.__cachedBitmap.width && 0 < this.__cachedBitmap.height) ) { this.__cacheGLMatrix.identity(), this.__cacheGLMatrix.copyFrom(this.__renderTransform), this.__cacheGLMatrix.translate(this.__offset.x, this.__offset.y); var t = this.__cachedBitmap, s = this.__cacheAsBitmapSmooth, n = this.__cacheGLMatrix, i = this.__worldColorTransform, r = this.__worldAlpha, o = this.blendMode, a = this.__shader; null != t && e.spriteBatch.renderBitmapDataEx( t, t.physicalWidth, t.physicalHeight, t.get_uvData(), s, n, i, r, o, a, 2 ); } this.__isCachingAsBitmap = !1; } else { if ( (null != this.__scrollRect && e.maskManager.pushRect(this.__scrollRect, this.__renderTransform), null != this.__mask && (this.__mask.__maskCached || (null != this.__mask.__cachedBitmap && (this.__mask.__cachedBitmap.dispose(), (this.__mask.__cachedBitmap = null)), (this.__mask.__isMask = !0), this.__mask.__update(!0, !0), (this.__mask.__maskCached = !0)), e.maskManager.pushMask(this.__mask)), this.isRenderable() && !(this.__worldAlpha <= 0) && null != this.bitmapData && this.bitmapData.get_valid()) ) { var l = Km.pool.get(); l.copyFrom(this.__renderTransform); var h = this.bitmapData, _ = this.smoothing, u = this.__renderColorTransform, d = this.__renderAlpha, c = this.__blendMode, f = this.__shader, p = this.pixelSnapping; null != h && e.spriteBatch.renderBitmapDataEx( h, h.physicalWidth, h.physicalHeight, h.get_uvData(), _, l, u, d, c, f, p ), Km.pool.put(l); } null != this.__mask && e.maskManager.popMask(), null != this.__scrollRect && e.maskManager.popRect(); } }, get_height: function () { return null != this.bitmapData ? this.bitmapData.height * this.get_scaleY() : 0; }, set_height: function (e) { return null != this.bitmapData ? (e != this.bitmapData.height && this.set_scaleY(e / this.bitmapData.height), e) : 0; }, get_width: function () { return null != this.bitmapData ? this.bitmapData.width * this.get_scaleX() : 0; }, set_width: function (e) { return null != this.bitmapData ? (e != this.bitmapData.width && this.set_scaleX(e / this.bitmapData.width), e) : 0; }, __class__: ew, })); var tw = function () {}; ((s["openfl.display.IBitmapData"] = tw).__name__ = [ "openfl", "display", "IBitmapData", ]), (tw.prototype = { __class__: tw, __properties__: { get_valid: "get_valid", set_uvData: "set_uvData", get_uvData: "get_uvData", get_src: "get_src", get_bd: "get_bd", }, }); var sw = function (e, t, s, n, i) { null == n && (n = -1), null == s && (s = !0), (this.__imageShouldBeSynced = !1), (this.__usingPingPongTexture = !1), (this.__renderToLocalMatrix = new Km()), (this.__keepSource = !1), (this.transparent = s), (null == e || e < 0) && (e = 0), (null == t || t < 0) && (t = 0), (this.width = this.physicalWidth = e), (this.height = this.physicalHeight = t), 0 < e && 0 < t && (s ? 0 == (-16777216 & n) && (n = 0) : (n = -16777216 | (16777215 & n)), (n = (n << 8) | ((n >>> 24) & 255)), (this.__image = new kb(null, 0, 0, e, t, n, i)), this.__image.set_transparent(s), (this.__isValid = !0)), this.__createUVs(), (this.__worldTransform = new Km()), (this.__renderColorTransform = new jm()); }; ((s["openfl.display.BitmapData"] = sw).__name__ = [ "openfl", "display", "BitmapData", ]), (sw.__interfaces__ = [tw, r]), (sw.spritesheet = null), (sw.fromBase64 = function (e, t, s) { var n = new sw(0, 0, !0), i = s, r = n; return ( kb.fromBase64(e, t, function (e) { r.__fromImage(e, e.width, e.height), null != i && i(r); }), n ); }), (sw.fromBytes = function (e, t, s) { var n = new sw(0, 0, !0), i = t, r = s, o = n; return ( kb.fromBytes(jy.toBytes(e), function (e) { if ((o.__fromImage(e, e.width, e.height), null != i)) { Yb.convertToCanvas(e), Yb.createImageData(e); for (var t = e.buffer.data, s = 0, n = jy.get_length(i); s < n; ) { t[4 * s++ + 3] = i.readUnsignedByte(); } e.dirty = !0; } null != r && r(o); }), n ); }), (sw.fromCanvas = function (e, t, s, n, i) { if ((null == t && (t = !0), null == e)) return null; var r = new sw(0, 0, t); return ( r.__fromImage(kb.fromCanvas(e), s, n, i), r.__image.set_transparent(t), r ); }), (sw.fromGraphics = function (e, t, s) { null == t && (t = !0); var n = e.__bounds; return sw.fromCanvas(e.__canvas, null, n.width, n.height, s); }), (sw.fromFile = function (e, t, s) { var n = new sw(0, 0, !0); return n.__fromFile(e, t, s), n; }), (sw.fromImage = function (e, t) { if ((null == t && (t = !0), null == e || null == e.buffer)) return null; var s = new sw(0, 0, t); return ( s.__fromImage(e, e.width, e.height), s.__image.set_transparent(t), s ); }), (sw.__asRenderTexture = function () { return new sw(0, 0); }), (sw.getFromSymbol = function (e) { if (Wm.cache.hasBitmapData(e.path)) return Wm.cache.getBitmapData(e.path); if (sw.isSpritesheetImage(e.path)) return sw.getFromSpritesheet(e.id, e.path); var t = Yp.getImage(e.path, !1); if (null != t && null != e.alpha && "" != e.alpha) { var s = Yp.getImage(e.alpha, !1); t.copyChannel(s, s.get_rect(), new Qb(), Mb.RED, Mb.ALPHA), (t.buffer.premultiplied = !0), t.set_premultiplied(!1); } var n = sw.fromImage(t); return Wm.cache.setBitmapData(e.path, n), n; }), (sw.isSpritesheetImage = function (e) { return null != sw.spritesheet && !sw.spritesheet.isBitmapExcluded(e); }), (sw.getFromSpritesheet = function (e, t) { if (Wm.cache.hasBitmapData(t)) return Wm.cache.getBitmapData(t); var s = sw.spritesheet.getBitmapDataByFrameName(t); return Wm.cache.setBitmapData(t, s), s; }), (sw.prototype = { applyFilter: function (e, t, s, n) { this.__isValid && null != e && e.__isValid && (Yb.convertToCanvas(this.get_image()), Yb.createImageData(this.get_image()), Yb.convertToCanvas(e.get_image()), Yb.createImageData(e.get_image()), n.__applyFilter( this.get_image().buffer.__srcImageData, e.get_image().buffer.__srcImageData, t, s ), (this.get_image().dirty = !0)); }, clone: function () { return this.__isValid ? sw.fromImage(this.__image.clone(), this.transparent) : new sw(this.physicalWidth, this.physicalHeight, this.transparent); }, get_bd: function () { return this; }, get_src: function () { return this.get_image().get_src(); }, get_uvData: function () { return this.__uvData; }, set_uvData: function (e) { return ( this.__createUVs(e.x0, e.y0, e.x1, e.y1, e.x2, e.y2, e.x3, e.y3), e ); }, get_valid: function () { return this.__isValid; }, colorTransform: function (e, t) { this.__isValid && (this.get_image().colorTransform( e.__toLimeRectangle(), t.__toLimeColorMatrix() ), (this.__usingPingPongTexture = !1)); }, compare: function (e) { if (e == this) return 0; if (null == e) return -1; if (0 == this.__isValid || 0 == e.__isValid) return -2; if (this.physicalWidth != e.physicalWidth) return -3; if (this.physicalHeight != e.physicalHeight) return -4; if ( null != this.get_image() && null != e.get_image() && this.get_image().get_format() == e.get_image().get_format() ) { for ( var t = this.get_image().get_data(), s = e.get_image().get_data(), n = !0, i = 0, r = t.length; i < r; ) { var o = i++; if (t[o] != s[o]) { n = !1; break; } } if (n) return 0; } for ( var a, l, h, _, u, d, c, f, p = null, b = 0, m = this.physicalHeight; b < m; ) for (var g = b++, w = 0, v = this.physicalWidth; w < v; ) { var y = w++; (a = !1), (_ = 0), (l = this.getPixel32(y, g)) != (h = e.getPixel32(y, g)) && ((u = ((l >> 16) & 255) - ((h >> 16) & 255)) < 0 && (u *= -1), (d = ((l >> 8) & 255) - ((h >> 8) & 255)) < 0 && (d *= -1), (c = (255 & l) - (255 & h)) < 0 && (c *= -1), 0 == u && 0 == d && 0 == c ? 0 != (f = ((l >> 24) & 255) - ((h >> 24) & 255)) && ((_ = ((255 & f) << 24) | ((255 & ((_ = ((255 & ((_ = ((255 & ((_ = ((255 & (_ >> 24)) << 24) | 16711680 | ((255 & (_ >> 8)) << 8) | (255 & _)) >> 24)) << 24) | ((255 & (_ >> 16)) << 16) | 65280 | (255 & _)) >> 24)) << 24) | ((255 & (_ >> 16)) << 16) | ((255 & (_ >> 8)) << 8) | 255) >> 16)) << 16) | ((255 & (_ >> 8)) << 8) | (255 & _)), (a = !0)) : ((_ = -16777216 | ((255 & ((_ = ((255 & ((_ = ((255 & ((_ = ((255 & (_ >> 24)) << 24) | ((255 & u) << 16) | ((255 & (_ >> 8)) << 8) | (255 & _)) >> 24)) << 24) | ((255 & (_ >> 16)) << 16) | ((255 & d) << 8) | (255 & _)) >> 24)) << 24) | ((255 & (_ >> 16)) << 16) | ((255 & (_ >> 8)) << 8) | (255 & c)) >> 16)) << 16) | ((255 & (_ >> 8)) << 8) | (255 & _)), (a = !0))), a && (null == p && (p = new sw( this.physicalWidth, this.physicalHeight, this.transparent || e.transparent, 0 )), p.setPixel32(y, g, _)); } return null == p ? 0 : p; }, copyChannel: function (e, t, s, n, i) { if (this.__isValid) { var r, o; switch (n) { case 1: r = Mb.RED; break; case 2: r = Mb.GREEN; break; case 4: r = Mb.BLUE; break; case 8: r = Mb.ALPHA; break; default: return; } switch (i) { case 1: o = Mb.RED; break; case 2: o = Mb.GREEN; break; case 4: o = Mb.BLUE; break; case 8: o = Mb.ALPHA; break; default: return; } this.get_image().copyChannel( e.get_image(), t.__toLimeRectangle(), s.__toLimeVector2(), r, o ), (this.__usingPingPongTexture = !1); } }, copyPixels: function (e, t, s, n, i, r) { null == r && (r = !1), this.__isValid && null != e && (this.get_image().copyPixels( e.get_image(), t.__toLimeRectangle(), s.__toLimeVector2(), null != n ? n.get_image() : null, null != i ? i.__toLimeVector2() : null, r ), (this.__usingPingPongTexture = !1)); }, dispose: function () { (this.__image = null), (this.width = 0), (this.height = 0), (this.__isValid = !1); var e = Zm.current.stage.__renderer; if (null != e && null != e.renderSession.gl) { if (null != this.__texture) { var t = this.__texture; Vb.textureStateCache.remove(t), Vb.context.deleteTexture(t), (this.__texture = null); } null != this.__buffer && (Vb.context.deleteBuffer(this.__buffer), (this.__buffer = null)); } null != this.__pingPongTexture && (this.__pingPongTexture.destroy(), (this.__pingPongTexture = null)), null != this.__uvData && (vw.pool.put(this.__uvData), (this.__uvData = null)); }, disposeBackBuffer: function () { null != this.__pingPongTexture && this.__pingPongTexture.destroyOldRenderTexture(); }, draw: function (e, t, s, n, i, r, o) { if ((null == o && (o = !1), null == r && (r = !1), this.__isValid)) { if ((null != s && !s.__isDefault()) || null != n) throw new Mp(":TODO: Not supported"); var a = Zm.current.stage.__renderer.renderSession, l = !0; if (Lp.__instanceof(e, W)) { var h = Lp.__cast(e, W); (l = !!h.__visible && h.isRenderable()) || (h.set_visible(!0), h.__update(!1, !0)); } e.__updateTransforms(), e.__updateChildren(!0); var _ = !this.__usingPingPongTexture; this.__pushFrameBuffer(a, r, !0, !0), Cg.drawBitmapDrawable(a, _ ? this : null, e, t, i, null, null), Cg.popFramebuffer(a, o ? this.__image : null), o || (this.__imageShouldBeSynced = !0); var u = this.__pingPongTexture, d = (u.__swapped ? u.__texture1 : u.__texture0).__uvData; this.__createUVs(d.x0, d.y0, d.x1, d.y1, d.x2, d.y2, d.x3, d.y3), (this.__isValid = !0), (this.__usingPingPongTexture = !0), Lp.__instanceof(e, W) && !l && Lp.__cast(e, W).set_visible(l); } }, encode: function (e, t, s) { return this.__isValid && null != e ? Lp.__instanceof(t, Cw) ? jy.fromBytes(this.get_image().encode("png")) : Lp.__instanceof(t, xw) ? jy.fromBytes( this.get_image().encode("jpg", Lp.__cast(t, xw).quality) ) : null : null; }, fillRect: function (e, t) { this.__isValid && null != e && (this.transparent && 0 == (-16777216 & t) && (t = 0), this.get_image().fillRect(e.__toLimeRectangle(), t, 1), (this.__usingPingPongTexture = !1)); }, floodFill: function (e, t, s) { this.__isValid && (this.get_image().floodFill(e, t, s, 1), (this.__usingPingPongTexture = !1)); }, generateFilterRect: function (e, t) { return e.clone(); }, getBuffer: function (e) { if (null == this.__buffer) { var t = [ this.width, this.height, 0, 1, 1, 0, this.height, 0, 0, 1, this.width, 0, 0, 1, 0, 0, 0, 0, 0, 0, ]; (this.__buffer = Vb.context.createBuffer()), Vb.context.bindBuffer(e.ARRAY_BUFFER, this.__buffer); var s, n = e.ARRAY_BUFFER; (s = null != t ? new GT(t) : null), Vb.context.bufferData(n, s, e.STATIC_DRAW), Vb.context.bindBuffer(e.ARRAY_BUFFER, null); } return this.__buffer; }, getColorBoundsRect: function (e, t, s) { if ((null == s && (s = !0), !this.__isValid)) return new cy(0, 0, this.width, this.height); if (!this.transparent || 0 < ((e >> 24) & 255)) { 0 == ((t >> 24) & 255) && 0; } var n = this.get_image().getColorBoundsRect(e, t, s, 1); return new cy(n.x, n.y, n.width, n.height); }, getPixel: function (e, t) { return this.__isValid ? this.get_image().getPixel(e, t, 1) : 0; }, getPixel32: function (e, t) { return this.__isValid ? this.get_image().getPixel32(e, t, 1) : 0; }, getPixels: function (e) { return this.__isValid ? (null == e && ((e = cy.__temp), this.getPhysicalRect(e)), jy.fromBytes(this.get_image().getPixels(e.__toLimeRectangle(), 1))) : null; }, getTexture: function (e) { if (!this.__isValid) return null; if (this.__usingPingPongTexture && null != this.__pingPongTexture) { var t = this.__pingPongTexture; return t.useOldTexture ? (t.__swapped ? t.__texture0 : t.__texture1).texture : (t.__swapped ? t.__texture1 : t.__texture0).texture; } if (null == this.__texture) { this.__texture = Vb.context.createTexture(); var s = this.__texture; Vb.currentBoundTexture[Vb.currentActiveTexture] != s && (Vb.context.bindTexture(e.TEXTURE_2D, s), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = s) || Vb.textureStateCache.exists(s) || Vb.textureStateCache.set(s, new lp())); var n = e.TEXTURE_2D, i = e.TEXTURE_WRAP_S, r = e.CLAMP_TO_EDGE, o = Vb.currentBoundTexture[Vb.currentActiveTexture], a = Vb.textureStateCache.get(o); a.h[i] != r && (Vb.context.texParameteri(n, i, r), (a.h[i] = r)); var l = e.TEXTURE_2D, h = e.TEXTURE_WRAP_T, _ = e.CLAMP_TO_EDGE, u = Vb.currentBoundTexture[Vb.currentActiveTexture], d = Vb.textureStateCache.get(u); d.h[h] != _ && (Vb.context.texParameteri(l, h, _), (d.h[h] = _)); var c = e.TEXTURE_2D, f = e.TEXTURE_MAG_FILTER, p = e.LINEAR, b = Vb.currentBoundTexture[Vb.currentActiveTexture], m = Vb.textureStateCache.get(b); m.h[f] != p && (Vb.context.texParameteri(c, f, p), (m.h[f] = p)); var g = e.TEXTURE_2D, w = e.TEXTURE_MIN_FILTER, v = e.LINEAR, y = Vb.currentBoundTexture[Vb.currentActiveTexture], T = Vb.textureStateCache.get(y); T.h[w] != v && (Vb.context.texParameteri(g, w, v), (T.h[w] = v)), (this.__image.dirty = !0); } if (null != this.__image && this.__image.dirty) { var S, x; x = 1 == this.__image.buffer.bitsPerPixel ? ((S = e.ALPHA), e.ALPHA) : ((S = e.RGBA), e.RGBA); var E = this.__texture; Vb.currentBoundTexture[Vb.currentActiveTexture] != E && (Vb.context.bindTexture(e.TEXTURE_2D, E), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = E) || Vb.textureStateCache.exists(E) || Vb.textureStateCache.set(E, new lp())); var P = this.__image, R = e.UNPACK_PREMULTIPLY_ALPHA_WEBGL, A = !P.get_premultiplied() && P.get_transparent() ? 1 : 0; Vb.context.pixelStorei(R, A); var I = P.buffer.get_glCompatibleBuffer(); if (null == I) { var C = e.TEXTURE_2D, B = this.physicalWidth, D = this.physicalHeight, k = e.UNSIGNED_BYTE, F = P.get_data(); Vb.context.texImage2D(C, 0, S, B, D, 0, x, k, F); } else Vb.context.texImage2D(e.TEXTURE_2D, 0, S, x, e.UNSIGNED_BYTE, I); (this.__image.dirty = !1), this.__keepSource || null == this.__image.buffer.__srcCanvas || (Eg.pool.put(this.__image.buffer.__srcCanvas), (this.__image.buffer.__srcCanvas = null), (this.__image = null)); } return this.__texture; }, getVector: function (e) { var t = this.getPixels(e), s = (jy.get_length(t) / 4) | 0, n = new ha(), i = new Array(s); (n.data = i), (n.length = s), (n.fixed = !0); for (var r = n, o = 0, a = s; o < a; ) { var l = o++, h = t.readUnsignedInt(); if ( !r.fixed && (l >= r.length && (r.length = l + 1), r.data.length < r.length) ) { var _ = r.data.length + 10, u = new Array(_); dp.blit(r.data, 0, u, 0, r.data.length), (r.data = u); } r.data[l] = h; } return r; }, histogram: function (e) { for ( var t = null != e ? e : new cy(0, 0, this.physicalWidth, this.physicalHeight), s = this.getPixels(t), n = [], i = 0; i < 4; ) { i++; for (var r = [], o = 0; o < 256; ) { o++; r.push(0); } n.push(r); } for (var a = n, l = 0, h = jy.get_length(s); l < h; ) { ++a[l++ % 4][s.readUnsignedByte()]; } return a; }, hitTest: function (e, t, s, n, i) { if ((null == i && (i = 1), !this.__isValid)) return !1; if ( (Lp.__instanceof(s, ew) && (s = Lp.__cast(s, ew).bitmapData), Lp.__instanceof(s, qm)) ) { var r = s; r.x, e.x, r.y, e.y; throw new Mp(":TODO: compute rect"); } if (Lp.__instanceof(s, sw)) { throw ( (null == n ? 0 : ((n.x - e.x) | 0, (n.y - e.y) | 0), new Mp(":TODO: compute rect")) ); } if (Lp.__instanceof(s, cy)) { var o = cy.__temp; if ( (o.copyFrom(s), o.offset(-e.x, -e.y), o.__contract(0, 0, this.width, this.height), 0 < o.width && 0 < o.height) ) for ( var a = this.getPixels(o), l = 0, h = (jy.get_length(a) / 4) | 0; l < h; ) { l++; if (t <= ((a.readUnsignedInt() >> 24) & 255)) return !0; } } return !1; }, lock: function () {}, merge: function (e, t, s, n, i, r, o) { this.__isValid && null != e && e.__isValid && null != t && null != s && (this.get_image().merge( e.get_image(), t.__toLimeRectangle(), s.__toLimeVector2(), n, i, r, o ), (this.__usingPingPongTexture = !1)); }, noise: function (e, t, s, n, i) { if ( (null == i && (i = !1), null == n && (n = 7), null == s && (s = 255), null == t && (t = 0), this.__isValid) ) { var r = function () { return ( (e = 1103515245 * e + 12345), (0 | Math.abs(e / 65536)) % 32768 ); }; r(); for ( var o = s - t, a = 1 == (1 & n), l = (2 & n) >> 1 == 1, h = (4 & n) >> 2 == 1, _ = (8 & n) >> 3 == 1, u = 0, d = this.physicalHeight; u < d; ) for (var c = u++, f = 0, p = this.physicalWidth; f < p; ) { var b = f++, m = 0, g = 0, w = 0, v = 255; i ? ((m = w = g = t + (r() % o)), (v = 255)) : (a && (m = t + (r() % o)), l && (w = t + (r() % o)), h && (g = t + (r() % o)), _ && (v = t + (r() % o))); var y = v; (y = ((y = ((y = (y << 8) + m) << 8) + w) << 8) + g), this.setPixel32(b, c, y); } } }, paletteMap: function (e, t, s, n, i, r, o) { for ( var a, l, h, _, u, d, c, f, p, b, m = 0 | t.width, g = 0 | t.height, w = this.getPixels(t), v = (w.position = 0), y = g * m; v < y; ) { var T = v++; (a = w.readUnsignedInt()), 255 < (u = (((c = null == o ? -16777216 & a : o[(a >> 24) & 255]) >> 24) & 255) + (((f = null == n ? 16711680 & a : n[(a >> 16) & 255]) >> 24) & 255) + (((p = null == i ? 65280 & a : i[(a >> 8) & 255]) >> 24) & 255) + (((b = null == r ? 255 & a : r[255 & a]) >> 24) & 255)) && (u = 255), 255 < (l = ((c >> 16) & 255) + ((f >> 16) & 255) + ((p >> 16) & 255) + ((b >> 16) & 255)) && (l = 255), 255 < (h = ((c >> 8) & 255) + ((f >> 8) & 255) + ((p >> 8) & 255) + ((b >> 8) & 255)) && (h = 255), 255 < (_ = (255 & c) + (255 & f) + (255 & p) + (255 & b)) && (_ = 255), (d = (u << 24) | (l << 16) | (h << 8) | _), (w.position = 4 * T), w.writeUnsignedInt(d); } w.position = 0; var S = new cy(s.x, s.y, m, g); this.setPixels(S, w); }, perlinNoise: function (e, t, s, n, i, r, o, a, l) { null == a && (a = !1), null == o && (o = 7), Zm.notImplemented("BitmapData.perlinNoise"); }, scroll: function (e, t) { this.__isValid && (this.get_image().scroll(e, t), (this.__usingPingPongTexture = !1)); }, setPixel: function (e, t, s) { this.__isValid && (this.get_image().setPixel(e, t, s, 1), (this.__usingPingPongTexture = !1)); }, setPixel32: function (e, t, s) { this.__isValid && (this.get_image().setPixel32(e, t, s, 1), (this.__usingPingPongTexture = !1)); }, setPixels: function (e, t) { this.__isValid && null != e && (this.get_image().setPixels(e.__toLimeRectangle(), jy.toBytes(t), 1), (this.__usingPingPongTexture = !1)); }, setVector: function (e, t) { var s = new Uf(0); jy.set_length(s, 4 * t.length); for (var n = 0; n < t.length; ) { var i = t.data[n]; ++n, s.writeUnsignedInt(i); } (s.position = 0), this.setPixels(e, s); }, threshold: function (e, t, s, n, i, r, o, a) { return ( null == a && (a = !1), null == o && (o = -1), null == r && (r = 0), null == e || null == t || null == s || t.x > e.width || t.y > e.height || s.x > this.width || s.y > this.height ? 0 : this.get_image().threshold( e.get_image(), t.__toLimeRectangle(), s.__toLimeVector2(), n, i, r, o, a, 1 ) ); }, unlock: function (e) {}, __createUVs: function (e, t, s, n, i, r, o, a) { null == a && (a = 1), null == o && (o = 0), null == r && (r = 1), null == i && (i = 1), null == n && (n = 0), null == s && (s = 1), null == t && (t = 0), null == e && (e = 0), null == this.__uvData && (this.__uvData = vw.pool.get()), (this.__uvData.x0 = e), (this.__uvData.y0 = t), (this.__uvData.x1 = s), (this.__uvData.y1 = n), (this.__uvData.x2 = i), (this.__uvData.y2 = r), (this.__uvData.x3 = o), (this.__uvData.y3 = a); }, __pushFrameBuffer: function (e, t, s, n) { null == n && (n = !0), null == s && (s = !1), null == t && (t = !1); var i = cy.pool.get(); this.getPhysicalRect(i), (this.__pingPongTexture = Cg.pushFramebuffer( e, this.__pingPongTexture, i, t, this.transparent, s, n )), cy.pool.put(i); }, __drawGL: function (e, t, s, n, i, r, o, a, l, h, _) { null == l && (l = !0), null == a && (a = !1), null == o && (o = !1), null == r && (r = !1), null == i && (i = !1), this.__pushFrameBuffer(e, i, o, l), Cg.drawBitmapDrawable(e, r ? this : null, t, s, n, h, _), Cg.popFramebuffer(e, a ? this.__image : null), a || (this.__imageShouldBeSynced = !0); var u = this.__pingPongTexture, d = (u.__swapped ? u.__texture1 : u.__texture0).__uvData; this.__createUVs(d.x0, d.y0, d.x1, d.y1, d.x2, d.y2, d.x3, d.y3), (this.__isValid = !0), (this.__usingPingPongTexture = !0); }, __popFrameBuffer: function (e, t) { null == t && (t = !1), Cg.popFramebuffer(e, t ? this.__image : null), t || (this.__imageShouldBeSynced = !0); var s = this.__pingPongTexture, n = (s.__swapped ? s.__texture1 : s.__texture0).__uvData; this.__createUVs(n.x0, n.y0, n.x1, n.y1, n.x2, n.y2, n.x3, n.y3), (this.__isValid = !0), (this.__usingPingPongTexture = !0); }, __fromBase64: function (e, t, s) { var n = this; kb.fromBase64(e, t, function (e) { n.__fromImage(e, e.width, e.height), null != s && s(n); }); }, __fromBytes: function (e, i, r) { var o = this; kb.fromBytes(jy.toBytes(e), function (e) { if ((o.__fromImage(e, e.width, e.height), null != i)) { Yb.convertToCanvas(e), Yb.createImageData(e); for (var t = e.buffer.data, s = 0, n = jy.get_length(i); s < n; ) { t[4 * s++ + 3] = i.readUnsignedByte(); } e.dirty = !0; } null != r && r(o); }); }, __fromFile: function (e, t, s) { var n = this; kb.fromFile( e, function (e) { n.__fromImage(e, e.width, e.height), null != t && t(n); }, s ); }, __fromImage: function (e, t, s, n) { null != e && null != e.buffer && ((this.__image = e), (this.width = t), (this.height = s), (this.physicalWidth = e.width), (this.physicalHeight = e.height), this.__renderToLocalMatrix.copyFrom(null != n ? n : Km.__identity), (this.__isValid = !0)); }, __renderGL: function (e) { var t = this.__worldTransform, s = this.__renderColorTransform, n = this.__blendMode, i = this.__shader; e.spriteBatch.renderBitmapDataEx( this, this.physicalWidth, this.physicalHeight, this.get_uvData(), null, t, s, 1, n, i, null ); }, __resize: function (e, t, s, n) { (this.width = e), (this.height = t), (this.physicalWidth = s), (this.physicalHeight = n), this.__renderToLocalMatrix.identity(), null != this.__image && this.__image.resize(s, n); }, __resizeTo: function (e) { this.__resize(e.width, e.height, e.physicalWidth, e.physicalHeight); }, __sync: function () { Yb.sync(this.get_image(), !1); }, __updateChildren: function (e) {}, __updateMask: function (e) {}, __updateTransforms: function () { this.__worldTransform.identity(); }, get_image: function () { if (this.__imageShouldBeSynced) { var e = Zm.current.stage.__renderer.renderSession; this.__pushFrameBuffer(e), Cg.popFramebuffer(e, this.__image); var t = this.__pingPongTexture, s = (t.__swapped ? t.__texture1 : t.__texture0).__uvData; this.__createUVs(s.x0, s.y0, s.x1, s.y1, s.x2, s.y2, s.x3, s.y3), (this.__isValid = !0), (this.__usingPingPongTexture = !0), (this.__imageShouldBeSynced = !1); } return this.__image; }, getLocalTransform: function (e) { e.copyFrom(this.__renderToLocalMatrix); }, getPhysicalRect: function (e) { (e.x = 0), (e.y = 0), (e.width = this.physicalWidth), (e.height = this.physicalHeight); }, __class__: sw, __properties__: { get_valid: "get_valid", set_uvData: "set_uvData", get_uvData: "get_uvData", get_src: "get_src", get_image: "get_image", get_bd: "get_bd", }, }); var nw = {}; ((s["openfl.display._BlendMode.BlendMode_Impl_"] = nw).__name__ = [ "openfl", "display", "_BlendMode", "BlendMode_Impl_", ]), (nw.fromString = function (e) { switch (e) { case "add": return 0; case "alpha": return 1; case "darken": return 2; case "difference": return 3; case "erase": return 4; case "hardlight": return 5; case "invert": return 6; case "layer": return 7; case "lighten": return 8; case "multiply": return 9; case "normal": return 10; case "overlay": return 11; case "screen": return 12; case "shader": return 13; case "subtract": return 14; default: return null; } }), (nw.toString = function (e) { switch (e) { case 0: return "add"; case 1: return "alpha"; case 2: return "darken"; case 3: return "difference"; case 4: return "erase"; case 5: return "hardlight"; case 6: return "invert"; case 7: return "layer"; case 8: return "lighten"; case 9: return "multiply"; case 10: return "normal"; case 11: return "overlay"; case 12: return "screen"; case 13: return "shader"; case 14: return "subtract"; default: return null; } }); var iw = {}; ((s["openfl.display._CapsStyle.CapsStyle_Impl_"] = iw).__name__ = [ "openfl", "display", "_CapsStyle", "CapsStyle_Impl_", ]), (iw.fromString = function (e) { switch (e) { case "none": return 0; case "round": return 1; case "square": return 2; default: return null; } }), (iw.toString = function (e) { switch (e) { case 0: return "none"; case 1: return "round"; case 2: return "square"; default: return null; } }); var rw = function (e) { null == e && (e = "DirectRenderer"), W.call(this); }; ((s["openfl.display.DirectRenderer"] = rw).__name__ = [ "openfl", "display", "DirectRenderer", ]), (rw.__super__ = W), (rw.prototype = n(W.prototype, { get_render: function () { return this.__render; }, set_render: function (e) { return (this.__render = e); }, set_width: function (e) { return (this.__width = 0 | e); }, get_width: function () { return this.__width; }, set_height: function (e) { return (this.__height = 0 | e); }, get_height: function () { return this.__height; }, __class__: rw, __properties__: n(W.prototype.__properties__, { set_render: "set_render", get_render: "get_render", }), })); var ow = function (e, t) { g.call(this), (this.__name = e), (this.__frame = t); }; ((s["openfl.display.FrameLabel"] = ow).__name__ = [ "openfl", "display", "FrameLabel", ]), (ow.__super__ = g), (ow.prototype = n(g.prototype, { get_frame: function () { return this.__frame; }, get_name: function () { return this.__name; }, __class__: ow, __properties__: { get_name: "get_name", get_frame: "get_frame" }, })); var aw = function () { (this.values = []), (this.keys = []); }; ((s["openfl.display.GLShaderData"] = aw).__name__ = [ "openfl", "display", "GLShaderData", ]), (aw.prototype = { set: function (e, t) { for (var s = 0, n = this.keys.length; s < n; ) { var i = s++; if (this.keys[i] == e) return void (this.values[i] = t); } this.keys.push(e), this.values.push(t); }, get: function (e) { for (var t = 0, s = this.keys.length; t < s; ) { var n = t++; if (this.keys[n] == e) return this.values[n]; } throw new Mp("Unknown parameter " + e); }, __class__: aw, }); var lw = {}; ((s["openfl.display._GradientType.GradientType_Impl_"] = lw).__name__ = [ "openfl", "display", "_GradientType", "GradientType_Impl_", ]), (lw.fromString = function (e) { switch (e) { case "linear": return 0; case "radial": return 1; default: return null; } }), (lw.toString = function (e) { switch (e) { case 0: return "linear"; case 1: return "radial"; default: return null; } }); var hw = function (e) { null == e && (e = !0), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.keepBitmapData = !1), (this.__dirty = !0), (this.mustRefreshGraphicsCounter = -1), (this.__commands = e ? new tg() : null), (this.__strokePadding = 0), (this.__positionX = 0), (this.__positionY = 0), null != this.__commands && this.moveTo(0, 0); }; ((s["openfl.display.Graphics"] = hw).__name__ = [ "openfl", "display", "Graphics", ]), (hw.__interfaces__ = [br]), (hw.prototype = { beginBitmapFill: function (e, t, s, n) { if ((null == n && (n = !1), null == s && (s = !0), this.readOnly)) throw new Mp("don't fill readonly!"); this.__commands.beginBitmapFill(e, null != t ? t.clone() : null, s, n), (this.__visible = !0); }, beginBitmapFillWithId: function (e, t, s, n) { null == n && (n = !1), null == s && (s = !0), this.__commands.beginBitmapFillWithId(e, t, s, n), (this.__visible = !0); }, drawImageWithId: function (e, t, s) { var n = qm.pool.get(); this.__inflateBounds(t.tx, t.ty), (n.x = 0), (n.y = 1); var i = n.x, r = n.y; (n.x = i * t.a + r * t.c + t.tx), (n.y = i * t.b + r * t.d + t.ty), this.__inflateBounds(n.x, n.y), (n.x = 1), (n.y = 0); var o = n.x, a = n.y; (n.x = o * t.a + a * t.c + t.tx), (n.y = o * t.b + a * t.d + t.ty), this.__inflateBounds(n.x, n.y), (n.x = 1), (n.y = 1); var l = n.x, h = n.y; (n.x = l * t.a + h * t.c + t.tx), (n.y = l * t.b + h * t.d + t.ty), this.__inflateBounds(n.x, n.y), this.__commands.drawImageWithId(e, t, s), (this.__visible = !0), qm.pool.put(n); }, beginFill: function (e, t) { if ((null == t && (t = 1), null == e && (e = 0), this.readOnly)) throw new Mp("don't fill readonly!"); this.__commands.beginFill(16777215 & e, t), 0 < t && (this.__visible = !0); }, beginGradientFill: function (e, t, s, n, i, r, o, a) { if ( (null == a && (a = 0), null == o && (o = 1), null == r && (r = 0), this.readOnly) ) throw new Mp("don't fill readonly!"); this.__commands.beginGradientFill(e, t, s, n, i, r, o, a); for (var l = 0; l < s.length; ) { var h = s[l]; if ((++l, 0 < h)) { this.__visible = !0; break; } } }, clear: function () { this.readOnly ? ((this.__commands = new tg()), (this.readOnly = !1)) : this.__commands.clear(), (this.__strokePadding = 0), null != this.__bounds && (this.set_dirty(!0), (this.__bounds = null)), (this.__visible = !1), this.moveTo(0, 0); }, copyFrom: function (e, t) { null == t && (t = !1), (this.__commands = t ? ((this.__bounds = e.__bounds), e.__commands) : ((this.__bounds = null != e.__bounds ? e.__bounds.clone() : null), e.__commands.copy())), this.set_dirty(!0), (this.__strokePadding = e.__strokePadding), (this.__positionX = e.__positionX), (this.__positionY = e.__positionY), (this.__visible = e.__visible), (this.__symbol = e.__symbol); }, cubicCurveTo: function (e, t, s, n, i, r) { var o, a, l, h; if ( (this.__inflateBounds( this.__positionX - this.__strokePadding, this.__positionY - this.__strokePadding ), this.__inflateBounds( this.__positionX + this.__strokePadding, this.__positionY + this.__strokePadding ), !( (e < (l = o = i) && e > this.__positionX) || (i < e && e < this.__positionX) ) || !( (s < i && s > this.__positionX) || (i < s && s < this.__positionX) )) ) { var _ = 2 * this.__positionX - 4 * e + 2 * s, u = e - this.__positionX, d = -this.__positionX + 3 * e + i - 3 * s, c = (-_ + Math.sqrt(_ * _ - 4 * u * d)) / (2 * d), f = (-_ - Math.sqrt(_ * _ - 4 * u * d)) / (2 * d); 0 < c && c < 1 && (o = this.__calculateBezierCubicPoint( c, this.__positionX, e, s, i )), 0 < f && f < 1 && (l = this.__calculateBezierCubicPoint( f, this.__positionX, e, s, i )); } if ( !( (t < (h = a = r) && t > this.__positionX) || (r < t && t < this.__positionX) ) || !((n < r && n > this.__positionX) || (r < n && n < this.__positionX)) ) { var p = 2 * this.__positionX - 4 * t + 2 * n, b = t - this.__positionX, m = -this.__positionX + 3 * t + r - 3 * n, g = (-p + Math.sqrt(p * p - 4 * b * m)) / (2 * m), w = (-p - Math.sqrt(p * p - 4 * b * m)) / (2 * m); 0 < g && g < 1 && (a = this.__calculateBezierCubicPoint( g, this.__positionX, t, n, r )), 0 < w && w < 1 && (h = this.__calculateBezierCubicPoint( w, this.__positionX, t, n, r )); } this.__inflateBounds( o - this.__strokePadding, a - this.__strokePadding ), this.__inflateBounds( o + this.__strokePadding, a + this.__strokePadding ), this.__inflateBounds( l - this.__strokePadding, h - this.__strokePadding ), this.__inflateBounds( l + this.__strokePadding, h + this.__strokePadding ), (this.__positionX = i), (this.__positionY = r), this.__commands.cubicCurveTo(e, t, s, n, i, r), this.set_dirty(!0); }, curveTo: function (e, t, s, n) { var i, r; if ( (this.__inflateBounds( this.__positionX - this.__strokePadding, this.__positionY - this.__strokePadding ), this.__inflateBounds( this.__positionX + this.__strokePadding, this.__positionY + this.__strokePadding ), (e < s && e > this.__positionX) || (s < e && e < this.__positionX)) ) i = s; else { var o = (this.__positionX - e) / (this.__positionX - 2 * e + s); i = this.__calculateBezierQuadPoint(o, this.__positionX, e, s); } if ((t < n && t > this.__positionY) || (n < t && t < this.__positionY)) r = n; else { var a = (this.__positionY - t) / (this.__positionY - 2 * t + n); r = this.__calculateBezierQuadPoint(a, this.__positionY, t, n); } this.__inflateBounds( i - this.__strokePadding, r - this.__strokePadding ), this.__inflateBounds( i + this.__strokePadding, r + this.__strokePadding ), (this.__positionX = s), (this.__positionY = n), this.__commands.curveTo(e, t, s, n), this.set_dirty(!0); }, drawCircle: function (e, t, s) { s <= 0 || (this.__inflateBounds( e - s - this.__strokePadding, t - s - this.__strokePadding ), this.__inflateBounds( e + s + this.__strokePadding, t + s + this.__strokePadding ), this.__commands.drawCircle(e, t, s), this.set_dirty(!0)); }, drawArc: function (e, t, s, n, i) { s <= 0 || (this.__inflateBounds( e - s - this.__strokePadding, t - s - this.__strokePadding ), this.__inflateBounds( e + s + this.__strokePadding, t + s + this.__strokePadding ), this.__commands.moveTo(e, t), this.__commands.drawArc(e, t, s, n, i), this.set_dirty(!0)); }, drawEllipse: function (e, t, s, n) { s <= 0 || n <= 0 || (this.__inflateBounds( e - this.__strokePadding, t - this.__strokePadding ), this.__inflateBounds( e + s + this.__strokePadding, t + n + this.__strokePadding ), this.__commands.drawEllipse(e, t, s, n), this.set_dirty(!0)); }, drawGraphicsData: function (e) { for (var t, s, n, i, r, o = 0; o < e.length; ) { var a = e.data[o]; ++o, Lp.__instanceof(a, mw) ? ((t = a), this.beginFill(t.color, t.alpha)) : Lp.__instanceof(a, dw) ? ((s = a), this.beginBitmapFill( s.bitmapData, s.matrix, s.repeat, s.smooth )) : Lp.__instanceof(a, fw) ? ((n = a), this.beginGradientFill( n.type, n.colors, n.alphas, n.ratios, n.matrix, n.spreadMethod, n.interpolationMethod, n.focalPointRatio )) : Lp.__instanceof(a, ww) ? ((i = a), Lp.__instanceof(i.fill, mw) ? ((t = i.fill), this.lineStyle( i.thickness, t.color, t.alpha, i.pixelHinting, i.scaleMode, i.caps, i.joints, i.miterLimit )) : (this.lineStyle( i.thickness, 0, 1, i.pixelHinting, i.scaleMode, i.caps, i.joints, i.miterLimit ), Lp.__instanceof(i.fill, dw) ? ((s = i.fill), this.lineBitmapStyle( s.bitmapData, s.matrix, s.repeat, s.smooth )) : Lp.__instanceof(i.fill, fw) && ((n = i.fill), this.lineGradientStyle( n.type, n.colors, n.alphas, n.ratios, n.matrix, n.spreadMethod, n.interpolationMethod, n.focalPointRatio )))) : Lp.__instanceof(a, bw) ? ((r = a), this.drawPath(r.commands, r.data, r.winding)) : Lp.__instanceof(a, cw) && this.endFill(); } }, drawPath: function (e, t, s) { null == s && (s = "evenOdd"); var n = 0, i = 0; try { for (; i < e.length; ) { var r = e.data[i]; if ((++i, null != r)) switch (r) { case 1: this.moveTo(t.data[n], t.data[n + 1]), (n += 2); break; case 2: this.lineTo(t.data[n], t.data[n + 1]), (n += 2); break; case 3: this.curveTo( t.data[n], t.data[n + 1], t.data[n + 2], t.data[n + 3] ), (n += 4); break; case 4: throw ( (this.moveTo(t.data[n + 2], t.data[n + 3]), "__break__") ); case 5: throw ( (this.lineTo(t.data[n + 2], t.data[n + 3]), "__break__") ); case 6: this.cubicCurveTo( t.data[n], t.data[n + 1], t.data[n + 2], t.data[n + 3], t.data[n + 4], t.data[n + 5] ), (n += 6); } } } catch (e) { if ("__break__" != e) throw e; } }, drawRect: function (e, t, s, n) { s <= 0 || n <= 0 || (this.__inflateBounds( e - this.__strokePadding, t - this.__strokePadding ), this.__inflateBounds( e + s + this.__strokePadding, t + n + this.__strokePadding ), this.__commands.drawRect(e, t, s, n), this.set_dirty(!0)); }, drawRoundRect: function (e, t, s, n, i, r) { s <= 0 || n <= 0 || (this.__inflateBounds( e - this.__strokePadding, t - this.__strokePadding ), this.__inflateBounds( e + s + this.__strokePadding, t + n + this.__strokePadding ), this.__commands.drawRoundRect(e, t, s, n, i, r), this.set_dirty(!0)); }, drawRoundRectComplex: function (e, t, s, n, i, r, o, a) { Zm.notImplemented("Graphics.drawRoundRectComplex"); }, drawTriangles: function (e, t, s, n) { null == n && (n = 1); var i = (e.length / 2) | 0; if ((null == n && (n = 1), null == t)) { if (i % 3 != 0) throw new Mp(new uv("Not enough vertices to close a triangle.")); var r = new ha(), o = new Array(0); (r.data = o), (r.length = 0), (r.fixed = !1), (t = r); for (var a = 0, l = i; a < l; ) { var h = a++; if (!t.fixed) { if ((t.length++, t.data.length < t.length)) { var _ = t.data.length + 10, u = new Array(_); dp.blit(t.data, 0, u, 0, t.data.length), (t.data = u); } t.data[t.length - 1] = h; } } } this.__inflateBounds(0, 0); for ( var d = -1 / 0, c = -1 / 0, f = -1 / 0, p = -1 / 0, b = 0, m = i; b < m; ) { var g = b++; f < (d = e.data[2 * g]) && (f = d), p < (c = e.data[2 * g + 1]) && (p = c); } this.__inflateBounds(f, p), this.__commands.drawTriangles(e, t, s, n), this.set_dirty(!0), (this.__visible = !0); }, endFill: function () { this.__commands.endFill(); }, lineBitmapStyle: function (e, t, s, n) { null == n && (n = !1), null == s && (s = !0), this.__commands.lineBitmapStyle( e, null != t ? t.clone() : null, s, n ); }, lineBitmapStyleWithId: function (e, t, s, n) { null == n && (n = !1), null == s && (s = !0), this.__commands.lineBitmapStyleWithId( e, null != t ? t.clone() : null, s, n ); }, lineGradientStyle: function (e, t, s, n, i, r, o, a) { null == a && (a = 0), null == o && (o = 1), null == r && (r = 0), this.__commands.lineGradientStyle(e, t, s, n, i, r, o, a); }, lineStyle: function (e, t, s, n, i, r, o, a) { null == a && (a = 3), null == i && (i = 2), null == n && (n = !1), null == s && (s = 1), null == t && (t = 0), null != e && (1 == o ? e > this.__strokePadding && (this.__strokePadding = e) : e / 2 > this.__strokePadding && (this.__strokePadding = e / 2)), this.__commands.lineStyle(e, t, s, n, i, r, o, a), null != e && (this.__visible = !0); }, lineTo: function (e, t) { this.__inflateBounds( this.__positionX - this.__strokePadding, this.__positionY - this.__strokePadding ), this.__inflateBounds( this.__positionX + this.__strokePadding, this.__positionY + this.__strokePadding ), (this.__positionX = e), (this.__positionY = t), this.__inflateBounds( this.__positionX - this.__strokePadding, this.__positionY - this.__strokePadding ), this.__inflateBounds( this.__positionX + 2 * this.__strokePadding, this.__positionY + this.__strokePadding ), this.__commands.lineTo(e, t), this.set_dirty(!0); }, moveTo: function (e, t) { (this.__positionX = e), (this.__positionY = t), this.__commands.moveTo(e, t); }, createTextures: function (e) { for (var t = this.__commands.bd, s = 0; s < t._length; ) { var n = s >= t._length ? null : t._items[s]; ++s, n.getTexture(e); } }, __calculateBezierCubicPoint: function (e, t, s, n, i) { var r = 1 - e; return ( t * (r * r * r) + 3 * s * e * (r * r) + 3 * n * r * (e * e) + i * (e * e * e) ); }, __calculateBezierQuadPoint: function (e, t, s, n) { var i = 1 - e; return i * i * t + 2 * i * e * s + e * e * n; }, __getBounds: function (e) { null != this.__bounds ? e.copyFrom(this.__bounds) : e.setEmpty(); }, __hitTest: function (e, t, s, n) { if (null == this.__bounds) return !1; var i = n.a * n.d - n.b * n.c, r = 0 == i ? -n.tx : (1 / i) * (n.c * (n.ty - t) + n.d * (e - n.tx)), o = n.a * n.d - n.b * n.c, a = 0 == o ? -n.ty : (1 / o) * (n.a * (t - n.ty) + n.b * (n.tx - e)); return !!this.__bounds.contains(r, a) && (!s || Eg.hitTest(this, r, a)); }, __inflateBounds: function (e, t) { null != this.__bounds ? (e < this.__bounds.x && ((this.__bounds.width += this.__bounds.x - e), (this.__bounds.x = e)), t < this.__bounds.y && ((this.__bounds.height += this.__bounds.y - t), (this.__bounds.y = t)), e > this.__bounds.x + this.__bounds.width && (this.__bounds.width = e - this.__bounds.x), t > this.__bounds.y + this.__bounds.height && (this.__bounds.height = t - this.__bounds.y)) : (this.__bounds = new cy(e, t, 0, 0)); }, dispose: function (e) { null == e && (e = !0), this.set___bitmap(null), (this.__dirty = !0), this.set_dirty(!0), e && null != this.__symbol && Lp.__instanceof(this.__symbol, Va) && this.__symbol.unregisterGraphics(this); }, __disposeBitmap: function () { this.set___bitmap(null), (this.__dirty = !0); }, set_dirty: function (e) { if (e && null != this.__owner) { var t = this.__owner; (t.__updateCachedBitmap = !0), (t.__updateFilters = null != t.__filters && 0 < t.__filters.length), t.__isMask && (t.__maskCached = !1), t.__renderDirty || ((t.__renderDirty = !0), W.__worldRenderDirty++, null != t.__cachedParent && t.__cachedParent.__setRenderDirty()), t.__updateDirty || null == t.stage || t == t.stage || (t.__updateDirty = !0); } return (this.__dirty = e); }, get_dirty: function () { return this.__dirty; }, set___bitmap: function (e) { return ( null == this.__bitmap || this.keepBitmapData || (null != this.__symbol && Lp.__instanceof(this.__symbol, Va) && Lp.__cast(this.__symbol, Va).useBitmapCache) || this.__bitmap.dispose(), (this.__bitmap = e) ); }, clearGraphicsCounter: function () { this.mustRefreshGraphicsCounter = 1; }, resetGraphicsCounter: function () { (this.mustRefreshGraphicsCounter = hw.__dirtyGraphicsDelay), this.set_dirty(!1); }, __enterFrame: function () { 0 < this.mustRefreshGraphicsCounter && 0 == --this.mustRefreshGraphicsCounter && this.set_dirty(!0); }, get_snapCoordinates: function () { return ( !(null == this.__symbol || !Lp.__instanceof(this.__symbol, Va)) && Lp.__cast(this.__symbol, Va).snapCoordinates ); }, getCLID: function () { return hw.__clid; }, serialize: function (e) { e.addKnownRef(this.__bounds), e.addKnownRef(this.__commands), e.out.addInt32(bp.floatToI32(this.__positionX)), e.out.addInt32(bp.floatToI32(this.__positionY)), e.out.addInt32(bp.floatToI32(this.__strokePadding)), e.out.b.push(this.__visible ? 1 : 0), e.addKnownRef(this.__symbol); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("__bounds"), e.fieldsTypes.push(Ap.PSerializable("openfl.geom.Rectangle")), e.fieldsNames.push("__commands"), e.fieldsTypes.push( Ap.PSerializable("openfl._internal.renderer.DrawCommandBuffer") ), e.fieldsNames.push("__positionX"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("__positionY"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("__strokePadding"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("__visible"), e.fieldsTypes.push(Ap.PBool), e.fieldsNames.push("__symbol"), e.fieldsTypes.push( Ap.PSerializable("format.swf.lite.symbols.SWFSymbol") ), (e.isFinal = mr.isClassFinal(hw.__clid)), e ); }, unserializeInit: function () { (this.mustRefreshGraphicsCounter = -1), (this.__dirty = !0), (this.keepBitmapData = !1); }, unserialize: function (e) { (this.__bounds = e.getRef(cy, cy.__clid)), (this.__commands = e.getRef(tg, tg.__clid)); var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.__positionX = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.__positionY = s); var n = e.input.getFloat(e.inPos); (e.inPos += 4), (this.__strokePadding = n), (this.__visible = 0 != e.input.b[e.inPos++]), (this.__symbol = e.getRef(Na, Na.__clid)); }, __class__: hw, __properties__: { set___bitmap: "set___bitmap", set_dirty: "set_dirty", get_dirty: "get_dirty", get_snapCoordinates: "get_snapCoordinates", }, }); var _w = function () {}; ((s["openfl.display.IGraphicsFill"] = _w).__name__ = [ "openfl", "display", "IGraphicsFill", ]), (_w.prototype = { __class__: _w }); var uw = function () {}; ((s["openfl.display.IGraphicsData"] = uw).__name__ = [ "openfl", "display", "IGraphicsData", ]), (uw.prototype = { __class__: uw }); var dw = function (e, t, s, n) { null == n && (n = !1), null == s && (s = !0), (this.bitmapData = e), (this.matrix = t), (this.repeat = s), (this.smooth = n), (this.__graphicsDataType = yw.BITMAP), (this.__graphicsFillType = Tw.BITMAP_FILL); }; ((s["openfl.display.GraphicsBitmapFill"] = dw).__name__ = [ "openfl", "display", "GraphicsBitmapFill", ]), (dw.__interfaces__ = [_w, uw]), (dw.prototype = { __class__: dw }); var cw = function () { (this.__graphicsDataType = yw.END), (this.__graphicsFillType = Tw.END_FILL); }; ((s["openfl.display.GraphicsEndFill"] = cw).__name__ = [ "openfl", "display", "GraphicsEndFill", ]), (cw.__interfaces__ = [_w, uw]), (cw.prototype = { __class__: cw }); var fw = function (e, t, s, n, i, r, o, a) { null == a && (a = 0), null == e && (e = 0), null == r && (r = 0), null == o && (o = 1), (this.type = e), (this.colors = t), (this.alphas = s), (this.ratios = n), (this.matrix = i), (this.spreadMethod = r), (this.interpolationMethod = o), (this.focalPointRatio = a), (this.__graphicsDataType = yw.GRADIENT), (this.__graphicsFillType = Tw.GRADIENT_FILL); }; ((s["openfl.display.GraphicsGradientFill"] = fw).__name__ = [ "openfl", "display", "GraphicsGradientFill", ]), (fw.__interfaces__ = [_w, uw]), (fw.prototype = { __class__: fw }); var pw = function () {}; (s["openfl.display.IGraphicsPath"] = pw).__name__ = [ "openfl", "display", "IGraphicsPath", ]; var bw = function (e, t, s) { null == s && (s = "evenOdd"), (this.commands = e), (this.data = t), (this.winding = s), (this.__graphicsDataType = yw.PATH); }; ((s["openfl.display.GraphicsPath"] = bw).__name__ = [ "openfl", "display", "GraphicsPath", ]), (bw.__interfaces__ = [pw, uw]), (bw.prototype = { curveTo: function (e, t, s, n) { if (null != this.commands && null != this.data) { var i = this.commands; if (!i.fixed) { if ((i.length++, i.data.length < i.length)) { var r = i.data.length + 10, o = new Array(r); dp.blit(i.data, 0, o, 0, i.data.length), (i.data = o); } i.data[i.length - 1] = 3; } var a = this.data; if (!a.fixed) { if ((a.length++, a.data.length < a.length)) { var l = a.data.length + 10, h = new Array(l); dp.blit(a.data, 0, h, 0, a.data.length), (a.data = h); } a.data[a.length - 1] = s; } var _ = this.data; if (!_.fixed) { if ((_.length++, _.data.length < _.length)) { var u = _.data.length + 10, d = new Array(u); dp.blit(_.data, 0, d, 0, _.data.length), (_.data = d); } _.data[_.length - 1] = n; } var c = this.data; if (!c.fixed) { if ((c.length++, c.data.length < c.length)) { var f = c.data.length + 10, p = new Array(f); dp.blit(c.data, 0, p, 0, c.data.length), (c.data = p); } c.data[c.length - 1] = e; } var b = this.data; if (!b.fixed) { if ((b.length++, b.data.length < b.length)) { var m = b.data.length + 10, g = new Array(m); dp.blit(b.data, 0, g, 0, b.data.length), (b.data = g); } b.data[b.length - 1] = t; } } }, lineTo: function (e, t) { if (null != this.commands && null != this.data) { var s = this.commands; if (!s.fixed) { if ((s.length++, s.data.length < s.length)) { var n = s.data.length + 10, i = new Array(n); dp.blit(s.data, 0, i, 0, s.data.length), (s.data = i); } s.data[s.length - 1] = 2; } var r = this.data; if (!r.fixed) { if ((r.length++, r.data.length < r.length)) { var o = r.data.length + 10, a = new Array(o); dp.blit(r.data, 0, a, 0, r.data.length), (r.data = a); } r.data[r.length - 1] = e; } var l = this.data; if (!l.fixed) { if ((l.length++, l.data.length < l.length)) { var h = l.data.length + 10, _ = new Array(h); dp.blit(l.data, 0, _, 0, l.data.length), (l.data = _); } l.data[l.length - 1] = t; } } }, moveTo: function (e, t) { if (null != this.commands && null != this.data) { var s = this.commands; if (!s.fixed) { if ((s.length++, s.data.length < s.length)) { var n = s.data.length + 10, i = new Array(n); dp.blit(s.data, 0, i, 0, s.data.length), (s.data = i); } s.data[s.length - 1] = 1; } var r = this.data; if (!r.fixed) { if ((r.length++, r.data.length < r.length)) { var o = r.data.length + 10, a = new Array(o); dp.blit(r.data, 0, a, 0, r.data.length), (r.data = a); } r.data[r.length - 1] = e; } var l = this.data; if (!l.fixed) { if ((l.length++, l.data.length < l.length)) { var h = l.data.length + 10, _ = new Array(h); dp.blit(l.data, 0, _, 0, l.data.length), (l.data = _); } l.data[l.length - 1] = t; } } }, wideLineTo: function (e, t) { if (null != this.commands && null != this.data) { var s = this.commands; if (!s.fixed) { if ((s.length++, s.data.length < s.length)) { var n = s.data.length + 10, i = new Array(n); dp.blit(s.data, 0, i, 0, s.data.length), (s.data = i); } s.data[s.length - 1] = 2; } var r = this.data; if (!r.fixed) { if ((r.length++, r.data.length < r.length)) { var o = r.data.length + 10, a = new Array(o); dp.blit(r.data, 0, a, 0, r.data.length), (r.data = a); } r.data[r.length - 1] = e; } var l = this.data; if (!l.fixed) { if ((l.length++, l.data.length < l.length)) { var h = l.data.length + 10, _ = new Array(h); dp.blit(l.data, 0, _, 0, l.data.length), (l.data = _); } l.data[l.length - 1] = t; } } }, wideMoveTo: function (e, t) { if (null != this.commands && null != this.data) { var s = this.commands; if (!s.fixed) { if ((s.length++, s.data.length < s.length)) { var n = s.data.length + 10, i = new Array(n); dp.blit(s.data, 0, i, 0, s.data.length), (s.data = i); } s.data[s.length - 1] = 1; } var r = this.data; if (!r.fixed) { if ((r.length++, r.data.length < r.length)) { var o = r.data.length + 10, a = new Array(o); dp.blit(r.data, 0, a, 0, r.data.length), (r.data = a); } r.data[r.length - 1] = e; } var l = this.data; if (!l.fixed) { if ((l.length++, l.data.length < l.length)) { var h = l.data.length + 10, _ = new Array(h); dp.blit(l.data, 0, _, 0, l.data.length), (l.data = _); } l.data[l.length - 1] = t; } } }, __class__: bw, }); var mw = function (e, t) { null == t && (t = 1), null == e && (e = 0), (this.alpha = t), (this.color = e), (this.__graphicsDataType = yw.SOLID), (this.__graphicsFillType = Tw.SOLID_FILL); }; ((s["openfl.display.GraphicsSolidFill"] = mw).__name__ = [ "openfl", "display", "GraphicsSolidFill", ]), (mw.__interfaces__ = [_w, uw]), (mw.prototype = { __class__: mw }); var gw = function () {}; (s["openfl.display.IGraphicsStroke"] = gw).__name__ = [ "openfl", "display", "IGraphicsStroke", ]; var ww = function (e, t, s, n, i, r, o) { null == r && (r = 3), null == t && (t = !1), null == e && (e = 0), (this.caps = null != n ? n : 0), (this.fill = o), (this.joints = null != i ? i : 2), (this.miterLimit = r), (this.pixelHinting = t), (this.scaleMode = null != s ? s : 2), (this.thickness = e), (this.__graphicsDataType = yw.STROKE); }; ((s["openfl.display.GraphicsStroke"] = ww).__name__ = [ "openfl", "display", "GraphicsStroke", ]), (ww.__interfaces__ = [gw, uw]), (ww.prototype = { __class__: ww }); var vw = function () { (this.y3 = 0), (this.y2 = 0), (this.y1 = 0), (this.y0 = 0), (this.x3 = 0), (this.x2 = 0), (this.x1 = 0), (this.x0 = 0); }; ((s["openfl.display.TextureUvs"] = vw).__name__ = [ "openfl", "display", "TextureUvs", ]), (vw.prototype = { reset: function () { this.x0 = this.x1 = this.x2 = this.x3 = this.y0 = this.y1 = this.y2 = this.y3 = 0; }, __class__: vw, }); var yw = (s["openfl.display.GraphicsDataType"] = { __ename__: ["openfl", "display", "GraphicsDataType"], __constructs__: ["STROKE", "SOLID", "GRADIENT", "PATH", "BITMAP", "END"], }); (yw.STROKE = ["STROKE", 0]), (yw.STROKE.toString = c), ((yw.STROKE.__enum__ = yw).SOLID = ["SOLID", 1]), (yw.SOLID.toString = c), ((yw.SOLID.__enum__ = yw).GRADIENT = ["GRADIENT", 2]), (yw.GRADIENT.toString = c), ((yw.GRADIENT.__enum__ = yw).PATH = ["PATH", 3]), (yw.PATH.toString = c), ((yw.PATH.__enum__ = yw).BITMAP = ["BITMAP", 4]), (yw.BITMAP.toString = c), ((yw.BITMAP.__enum__ = yw).END = ["END", 5]), (yw.END.toString = c), (yw.END.__enum__ = yw); var Tw = (s["openfl.display.GraphicsFillType"] = { __ename__: ["openfl", "display", "GraphicsFillType"], __constructs__: ["SOLID_FILL", "GRADIENT_FILL", "BITMAP_FILL", "END_FILL"], }); (Tw.SOLID_FILL = ["SOLID_FILL", 0]), (Tw.SOLID_FILL.toString = c), ((Tw.SOLID_FILL.__enum__ = Tw).GRADIENT_FILL = ["GRADIENT_FILL", 1]), (Tw.GRADIENT_FILL.toString = c), ((Tw.GRADIENT_FILL.__enum__ = Tw).BITMAP_FILL = ["BITMAP_FILL", 2]), (Tw.BITMAP_FILL.toString = c), ((Tw.BITMAP_FILL.__enum__ = Tw).END_FILL = ["END_FILL", 3]), (Tw.END_FILL.toString = c), (Tw.END_FILL.__enum__ = Tw); var Sw = {}; ((s["openfl.display._InterpolationMethod.InterpolationMethod_Impl_"] = Sw).__name__ = [ "openfl", "display", "_InterpolationMethod", "InterpolationMethod_Impl_", ]), (Sw.fromString = function (e) { switch (e) { case "linearRGB": return 0; case "rgb": return 1; default: return null; } }), (Sw.toString = function (e) { switch (e) { case 0: return "linearRGB"; case 1: return "rgb"; default: return null; } }); var xw = function (e) { null == e && (e = 80), (this.quality = e); }; ((s["openfl.display.JPEGEncoderOptions"] = xw).__name__ = [ "openfl", "display", "JPEGEncoderOptions", ]), (xw.prototype = { __class__: xw }); var Ew = {}; ((s["openfl.display._JointStyle.JointStyle_Impl_"] = Ew).__name__ = [ "openfl", "display", "_JointStyle", "JointStyle_Impl_", ]), (Ew.fromString = function (e) { switch (e) { case "bevel": return 0; case "miter": return 1; case "round": return 2; default: return null; } }), (Ew.toString = function (e) { switch (e) { case 0: return "bevel"; case 1: return "miter"; case 2: return "round"; default: return null; } }); var Pw = {}; ((s["openfl.display._LineScaleMode.LineScaleMode_Impl_"] = Pw).__name__ = [ "openfl", "display", "_LineScaleMode", "LineScaleMode_Impl_", ]), (Pw.fromString = function (e) { switch (e) { case "horizontal": return 0; case "none": return 1; case "normal": return 2; case "vertical": return 3; default: return null; } }), (Pw.toString = function (e) { switch (e) { case 0: return "horizontal"; case 1: return "none"; case 2: return "normal"; case 3: return "vertical"; default: return null; } }); var Rw = function () { j.call(this), (this.contentLoaderInfo = Aw.create(this)); }; ((s["openfl.display.Loader"] = Rw).__name__ = [ "openfl", "display", "Loader", ]), (Rw.__super__ = j), (Rw.prototype = n(j.prototype, { close: function () { Zm.notImplemented("Loader.close"); }, load: function (s, e) { var t = "", n = s.url.split("."); if ( (0 < n.length && (t = n[n.length - 1].toLowerCase()), -1 != t.indexOf("?") && (t = t.split("?")[0]), (this.contentLoaderInfo.url = s.url), null == s.contentType && "" != s.contentType) ) { var i; switch (t) { case "gif": i = "image/gif"; break; case "jpeg": case "jpg": i = "image/jpeg"; break; case "png": i = "image/png"; break; case "swf": i = "application/x-shockwave-flash"; break; default: i = "application/x-www-form-urlencoded"; } this.contentLoaderInfo.contentType = i; } else this.contentLoaderInfo.contentType = s.contentType; var r = new om(); r.doWork.add(function (e) { var t = s.url; sw.fromFile( t, function (e) { r.sendComplete(e); }, function () { r.sendError("ioError"); } ); }), r.onError.add(CT(this, this.BitmapData_onError)), r.onComplete.add(CT(this, this.BitmapData_onLoad)), r.run(); }, loadBytes: function (t, e) { var s = new om(); s.doWork.add(function (e) { sw.fromBytes(t, null, function (e) { s.sendComplete(e); }); }), s.onComplete.add(CT(this, this.BitmapData_onLoad)), s.run(); }, unload: function () { if (0 < this.__children._length) { for (; 0 < this.__children._length; ) this.removeChildAt(0); (this.content = null), (this.contentLoaderInfo.url = null), (this.contentLoaderInfo.contentType = null), (this.contentLoaderInfo.content = null), (this.contentLoaderInfo.bytesLoaded = 0), (this.contentLoaderInfo.bytesTotal = 0), (this.contentLoaderInfo.width = 0), (this.contentLoaderInfo.height = 0); var e = new _a("unload"); (e.currentTarget = this).__dispatchEvent(e); } }, unloadAndStop: function (e) { null == e && (e = !0), Zm.notImplemented("Loader.unloadAndStop"); }, BitmapData_onLoad: function (e) { (this.contentLoaderInfo.content = new ew(e)), (this.content = this.contentLoaderInfo.content), this.addChildAt( this.contentLoaderInfo.content, this.__children._length ); var t = new _a("complete"); (t.target = this.contentLoaderInfo), (t.currentTarget = this.contentLoaderInfo), this.contentLoaderInfo.dispatchEvent(t); }, BitmapData_onError: function (e) { var t = new xv("ioError"); (t.target = this.contentLoaderInfo), (t.currentTarget = this.contentLoaderInfo), this.contentLoaderInfo.dispatchEvent(t); }, __class__: Rw, })); var Aw = function () { g.call(this), (this.applicationDomain = Cy.currentDomain), (this.bytesLoaded = 0), (this.bytesTotal = 0), (this.childAllowsParent = !0), (this.parameters = null == Aw.__parameters ? {} : Aw.__parameters); }; ((s["openfl.display.LoaderInfo"] = Aw).__name__ = [ "openfl", "display", "LoaderInfo", ]), (Aw.__parameters = null), (Aw.create = function (e) { var t = new Aw(); return ( (t.uncaughtErrorEvents = new Dv()), null != e ? (t.loader = e) : (t.url = Aw.__rootURL), t ); }), (Aw.__super__ = g), (Aw.prototype = n(g.prototype, { __class__: Aw })); var Iw = function () { rw.call(this, "OpenGLView"); }; ((s["openfl.display.OpenGLView"] = Iw).__name__ = [ "openfl", "display", "OpenGLView", ]), (Iw.__properties__ = { get_isSupported: "get_isSupported" }), (Iw.isSupported = null), (Iw.get_isSupported = function () { if (!window.WebGLRenderingContext) return !1; if (null != Vb.context) return !0; var e = window.document.createElement("canvas"), t = e.getContext("webgl"); return null == t && (t = e.getContext("experimental-webgl")), null != t; }), (Iw.__super__ = rw), (Iw.prototype = n(rw.prototype, { __renderCanvas: function (e) {}, __renderGL: function (e) { if (null != this.stage && this.isRenderable()) { var t = cy.pool.get(); null == this.__scrollRect ? t.setTo(0, 0, this.get_width(), this.get_height()) : t.setTo( this.__transform.tx + this.__scrollRect.x, this.__transform.ty + this.__scrollRect.y, this.__scrollRect.width, this.__scrollRect.height ), null != this.__render && this.__render(t), cy.pool.put(t), e.shaderManager.setShader(null), e.blendModeManager.setBlendMode(null), e.renderer.setViewport( 0, 0, 0 | this.get_width(), 0 | this.get_height(), !0 ), Dg.resetCache(); } }, __class__: Iw, })); var Cw = function (e) { null == e && (e = !1), (this.fastCompression = e); }; ((s["openfl.display.PNGEncoderOptions"] = Cw).__name__ = [ "openfl", "display", "PNGEncoderOptions", ]), (Cw.prototype = { __class__: Cw }); var Bw = {}; ((s["openfl.display._PixelSnapping.PixelSnapping_Impl_"] = Bw).__name__ = [ "openfl", "display", "_PixelSnapping", "PixelSnapping_Impl_", ]), (Bw.fromString = function (e) { switch (e) { case "always": return 0; case "auto": return 1; case "never": return 2; default: return null; } }), (Bw.toString = function (e) { switch (e) { case 0: return "always"; case 1: return "auto"; case 2: return "never"; default: return null; } }); var Dw = function (e) { if ((mb.call(this), null != e)) { this.display = e; var t = Zm.current; t.addChildAt(e, t.__children._length), Lp.__instanceof(e, Re) && Lp.__cast(e, Re).onInit(); } }; ((s["openfl.display.Preloader"] = Dw).__name__ = [ "openfl", "display", "Preloader", ]), (Dw.__super__ = mb), (Dw.prototype = n(mb.prototype, { load: function (e, t) { for (var s = [], n = null, i = 0, r = e.length; i < r; ) { var o = i++; switch (((n = e[o]), t[o])) { case "MUSIC": case "SOUND": gp.withoutExtension(n); this.total++, s.push(n); } } for (var a = new vy(0), l = 0; l < s.length; ) { var h = s[l]; ++l; var _ = h, u = Yp.getLogicalPath(_), d = Yp.getExtraSoundOptions(u), c = null; null != d && null != d.preload && (c = d.preload); var f = new my(); if ( (f.addEventListener("complete", CT(this, this.sound_onComplete)), f.addEventListener("ioError", CT(this, this.sound_onIOError)), f.load(new Py(_), null, c, !0), null != c) ) for (var p = 0, b = c; p < b; ) { p++; f.prePlayHTML5(null, null, a); } } mb.prototype.load.call(this, e, t); }, start: function () { null != this.display && Lp.__instanceof(this.display, Re) ? (this.display.addEventListener( "complete", CT(this, this.display_onComplete) ), Lp.__cast(this.display, Re).onLoaded()) : mb.prototype.start.call(this); }, update: function (e, t, s) { null != this.display && Lp.__instanceof(this.display, Re) && Lp.__cast(this.display, Re).onUpdate(e, t, s); }, display_onComplete: function (e) { this.display.removeEventListener( "complete", CT(this, this.display_onComplete) ), Zm.current.removeChild(this.display), Zm.current.stage.set_focus(null), (this.display = null), mb.prototype.start.call(this); }, sound_onComplete: function () { this.loaded++, this.onProgress.dispatch(this.loaded, this.total, null), this.loaded == this.total && this.start(); }, sound_onIOError: function (e) { this.onError.dispatch(e.target.soundName), this.loaded++, this.onProgress.dispatch(this.loaded, this.total, null), this.loaded == this.total && this.start(); }, __class__: Dw, })); var kw = function (e) { null == e && (e = 1), (this.__dirty = !0), (this.repeatY = 33071), (this.repeatX = 33071), (this.precision = 1), (this.precision = e), (this.data = new aw()), this.data.set(kw.uObjectSize, new Fw("vec2")), this.data.set(kw.uTextureSize, new Fw("vec2")); }; ((s["openfl.display.Shader"] = kw).__name__ = [ "openfl", "display", "Shader", ]), (kw.prototype = { __init: function (e) { var t = this.__dirty; if (t) { null != this.__shader && this.__shader.destroy(), (this.__shader = new Dg(e)); var s = null != this.__vertexCode ? this.__vertexCode : Fg.VERTEX_SRC.join("\n"); (this.__shader.vertexString = s), (this.__shader.fragmentString = this.__fragmentCode), (this.__dirty = !1); } this.__shader.init(t); }, __buildFragmentCode: function (e) { var t, s = []; switch ((s.push("#ifdef GL_ES"), this.precision)) { case 1: t = "precision mediump float;"; break; case 2: t = "precision highp float;"; break; default: t = "precision lowp float;"; } s.push(t), s.push("#endif"), (s = s.concat(kw.fragmentHeader)).push(e), (this.__fragmentCode = s.join("\n")); }, __buildVertexCode: function (e) { var t, s = []; switch ((s.push("#ifdef GL_ES"), this.precision)) { case 1: t = "precision mediump float;"; break; case 2: t = "precision highp float;"; break; default: t = "precision lowp float;"; } s.push(t), s.push("#endif"), (s = s.concat(kw.vertexHeader)).push(e), (this.__vertexCode = s.join("\n")); }, __class__: kw, }); var Fw = function (e, t) { (this.internalType = 0), (this.transpose = !1), (this.repeatY = 33071), (this.repeatX = 33071), (this.smooth = !0), (this.arraySize = 0), (this.size = 0), (this.type = e), (this.arraySize = null == t ? 0 : t), this.__init(); }; ((s["openfl.display.GLShaderParameter"] = Fw).__name__ = [ "openfl", "display", "GLShaderParameter", ]), (Fw.prototype = { __init: function () { var e = this.type; switch (e) { case "bool": (this.internalType = 1), (this.size = 1); var t, s = [0]; if (((t = null != s ? new GT(s) : null), 4 == this.internalType)) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); this.value = t; break; case "float": (this.internalType = 2), (this.size = 1); var n, i = [0]; if (((n = null != i ? new GT(i) : null), 4 == this.internalType)) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); this.value = n; break; case "int": (this.internalType = 1), (this.size = 1); var r, o = [0]; if (((r = null != o ? new GT(o) : null), 4 == this.internalType)) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); this.value = r; break; case "sampler2D": case "samplerCube": if (-1 < e.indexOf("vec")) { Ri.startsWith(this.type, "b") || Ri.startsWith(this.type, "i") ? (this.internalType = 1) : (this.internalType = 2); var a = Ue.parseInt(this.type.charAt(this.type.length - 1)); this.size = a; for (var l = [], h = 0, _ = this.size; h < _; ) { h++; l.push(0); } var u; if (((u = null != l ? new GT(l) : null), 4 == this.internalType)) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); this.value = u; } else { if (-1 < e.indexOf("mat")) { this.internalType = 3; var d, c, f = Ue.parseInt(this.type.charAt(this.type.length - 1)); switch (((this.size = f), this.size)) { case 2: d = [1, 0, 1, 0]; break; case 3: d = [1, 0, 0, 0, 1, 0, 0, 0, 1]; break; case 4: d = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]; break; default: d = [0]; } if ( ((c = null != d ? new GT(d) : null), 4 == this.internalType) ) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); this.value = c; } else (this.internalType = 4), (this.size = 0); } break; default: if (-1 < e.indexOf("vec")) { Ri.startsWith(this.type, "b") || Ri.startsWith(this.type, "i") ? (this.internalType = 1) : (this.internalType = 2); var p = Ue.parseInt(this.type.charAt(this.type.length - 1)); this.size = p; for (var b = [], m = 0, g = this.size; m < g; ) { m++; b.push(0); } var w; if (((w = null != b ? new GT(b) : null), 4 == this.internalType)) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); this.value = w; } else { if (-1 < e.indexOf("mat")) { this.internalType = 3; var v, y, T = Ue.parseInt(this.type.charAt(this.type.length - 1)); switch (((this.size = T), this.size)) { case 2: v = [1, 0, 1, 0]; break; case 3: v = [1, 0, 0, 0, 1, 0, 0, 0, 1]; break; case 4: v = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]; break; default: v = [0]; } if ( ((y = null != v ? new GT(v) : null), 4 == this.internalType) ) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); this.value = y; } else (this.internalType = 0), Zf.trace("Can't initialize value for type " + this.type, { fileName: "Shader.hx", lineNumber: 308, className: "openfl.display.GLShaderParameter", methodName: "__init", }); } } }, set_value: function (e) { if (4 == this.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (this.value = e); }, set_bitmap: function (e) { if (4 != this.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); return (this.bitmap = e); }, __class__: Fw, __properties__: { set_bitmap: "set_bitmap", set_value: "set_value" }, }); var Mw = {}; ((s["openfl.display._SpreadMethod.SpreadMethod_Impl_"] = Mw).__name__ = [ "openfl", "display", "_SpreadMethod", "SpreadMethod_Impl_", ]), (Mw.fromString = function (e) { switch (e) { case "pad": return 0; case "reflect": return 1; case "repeat": return 2; default: return null; } }), (Mw.toString = function (e) { switch (e) { case 0: return "pad"; case 1: return "reflect"; case 2: return "repeat"; default: return null; } }); var Lw = function (e, t) { this.__mouseDownStates = new lp(); var s = new Ge(); (s._items = []), (s._length = s._items.length), (this.__inElements = s); var n = new Ge(); (n._items = []), (n._length = n._items.length), (this.__outElements = n), (this.__scaleMode = 3), (this.__pingPongIndex = 0); var i = new Ge(); (i._items = []), (i._length = i._items.length); var r = new Ge(); (r._items = []), (r._length = r._items.length), (this.__pingPongChildrenStack = [i, r]); var o = new Ge(); (o._items = []), (o._length = o._items.length), (this.__allChildrenTempStack = o), j.call(this), (this.__worldTransform = new Km()), (this.__branchDepth = 0), (this.application = e.application), (this.window = e), null == t ? ((this.__transparent = !0), this.set_color(0)) : this.set_color(t), this.set_name(null), (this.__deltaTime = 0), (this.__displayState = 2), (this.__mouseX = 0), (this.__mouseY = 0), (this.__lastClickTime = 0), (this.stageWidth = (e.get_originalWidth() * e.__scale) | 0), (this.stageHeight = (e.get_originalHeight() * e.__scale) | 0), ((this.stage = this).align = 6), (this.allowsFullScreen = !0), (this.allowsFullScreenInteractive = !0), (this.quality = 1), (this.stageFocusRect = !0), (this.__macKeyboard = (/AppleWebKit/.test(navigator.userAgent) && /Mobile\/\w+/.test(navigator.userAgent)) || /Mac/.test(navigator.platform)), (this.__clearBeforeRender = !0); var a = new Ge(); (a._items = []), (a._length = a._items.length), (this.__stack = a); var l = new Ge(); (l._items = []), (l._length = l._items.length), (this.__focusStack = l); var h = new Ge(); (h._items = []), (h._length = h._items.length), (this.__mouseOutStack = h); var _ = new ha(), u = new Array(0); (_.data = u), (_.length = 0), (_.fixed = !1), (this.stage3Ds = _); var d = this.stage3Ds, c = new Nw(); if (!d.fixed) { if ((d.length++, d.data.length < d.length)) { var f = d.data.length + 10, p = new Array(f); dp.blit(d.data, 0, p, 0, d.data.length), (d.data = p); } d.data[d.length - 1] = c; } if (null == Zm.current.stage) { var b = this.stage; b.addChildAt(Zm.current, b.__children._length); } this.__allChildrenStack = this.__pingPongChildrenStack[this.__pingPongIndex]; var m = this.__allChildrenStack; m._items[m._length++] = this.stage; }; ((s["openfl.display.Stage"] = Lw).__name__ = ["openfl", "display", "Stage"]), (Lw.__interfaces__ = [Ra]), (Lw.fireEvent = function (e, t) { var s = t._length; if (0 == s) (e.eventPhase = 2), e.target.__broadcast(e, !1); else { e.eventPhase = 1; var n = t._length - 1; (e.target = n >= t._length ? null : t._items[n]), e.acquire(); for (var i = 0, r = s - 1; i < r; ) { var o = i++; if ( ((o >= t._length ? null : t._items[o]).__broadcast(e, !1), e.__isCanceled) ) return void e.release(); } if (((e.eventPhase = 2), e.target.__broadcast(e, !1), e.__isCanceled)) return void e.release(); if (e.bubbles) { e.eventPhase = 3; for (var a = s - 2; 0 <= a; ) { if ( ((a >= t._length ? null : t._items[a]).__broadcast(e, !1), e.__isCanceled) ) return void e.release(); --a; } } e.release(); } }), (Lw.__super__ = j), (Lw.prototype = n(j.prototype, { invalidate: function () { this.__invalidated = !0; }, onGamepadAxisMove: function (e, t, s) { Xy.__onGamepadAxisMove(e, t, s); }, onGamepadButtonDown: function (e, t) { Xy.__onGamepadButtonDown(e, t); }, onGamepadButtonUp: function (e, t) { Xy.__onGamepadButtonUp(e, t); }, onGamepadConnect: function (e) { Xy.__onGamepadConnect(e); }, onGamepadDisconnect: function (e) { Xy.__onGamepadDisconnect(e); }, onJoystickAxisMove: function (e, t, s) {}, onJoystickButtonDown: function (e, t) {}, onJoystickButtonUp: function (e, t) {}, onJoystickConnect: function (e) {}, onJoystickDisconnect: function (e) {}, onJoystickHatMove: function (e, t, s) {}, onJoystickTrackballMove: function (e, t, s) {}, onKeyDown: function (e, t, s) { null != this.window && this.window == e && this.__onKey("keyDown", t, s); }, onKeyUp: function (e, t, s) { null != this.window && this.window == e && this.__onKey("keyUp", t, s); }, onModuleExit: function (e) { null != this.window && this.__broadcastFromStage(_a.__create("deactivate"), !0); }, onMouseDown: function (e, t, s, n) { if (null != this.window && this.window == e) { var i; switch (n) { case 1: i = "middleMouseDown"; break; case 2: i = "rightMouseDown"; break; default: i = "mouseDown"; } this.__onMouse(i, (t * e.__scale) | 0, (s * e.__scale) | 0, n); } }, onMouseMove: function (e, t, s) { null != this.window && this.window == e && this.__onMouse( "mouseMove", (t * e.__scale) | 0, (s * e.__scale) | 0, 0 ); }, onMouseMoveRelative: function (e, t, s) {}, onMouseUp: function (e, t, s, n) { if (null != this.window && this.window == e) { var i; switch (n) { case 1: i = "middleMouseUp"; break; case 2: i = "rightMouseUp"; break; default: i = "mouseUp"; } this.__onMouse(i, (t * e.__scale) | 0, (s * e.__scale) | 0, n); } }, onMouseWheel: function (e, t, s) { null != this.window && this.window == e && this.__onMouseWheel((t * e.__scale) | 0, (s * e.__scale) | 0); }, onPreloadComplete: function () {}, onPreloadProgress: function (e, t, s) {}, onRenderContextLost: function (e) {}, onRenderContextRestored: function (e, t) {}, onTextEdit: function (e, t, s, n) {}, onTextInput: function (e, t) { if (null != this.window && this.window == e) { for (var s = this.__stack, n = 0, i = s._length; n < i; ) { var r = n++; s._items[r] = null; } (s._length = 0), null == this.__focus ? this.__getInteractive(this.__stack) : this.__focus.__getInteractive(this.__stack); var o = new mv("textInput", !0, !1, t); if (0 < this.__stack._length) { for (var a = this.__stack, l = 0, h = a._length - 1; l < h; ) { var _ = a._items[l]; (a._items[l] = a._items[h]), (a._items[h] = _), ++l, --h; } Lw.fireEvent(o, this.__stack); } else this.__broadcastFromStage(o, !0); } }, onTouchMove: function (e) { this.__onTouch("touchMove", e); }, onTouchEnd: function (e) { this.__onTouch("touchEnd", e); }, onTouchStart: function (e) { this.__onTouch("touchBegin", e); }, onWindowActivate: function (e) { if (null != this.window && this.window == e) { var t = _a.__create("activate"); this.__broadcastFromStage(t, !0); } }, onWindowClose: function (e) { this.window == e && (this.window = null); }, onWindowCreate: function (e) { if (null != this.window && this.window == e && null != e.renderer) { var t = e.renderer.context; if (0 == t[1]) { var s = t[2]; this.__renderer = new Bg(this.stageWidth, this.stageHeight, s); } e.__resizable && qr.resizeStatic({ width: e.__width, height: e.__height }); } }, onWindowDeactivate: function (e) { if (null != this.window && this.window == e) { var t = _a.__create("deactivate"); this.__broadcastFromStage(t, !0); } }, onWindowEnter: function (e) { null != this.window && this.window == e && this.__dispatchEvent(_a.__create("mouseEnter")); }, onWindowFocusIn: function (e) { if (null != this.window && this.window == e) { var t = new vv("focusIn", !0, !1, null, !1, 0); this.__broadcastFromStage(t, !0); } }, onWindowFocusOut: function (e) { if (null != this.window && this.window == e) { var t = new vv("focusOut", !0, !1, null, !1, 0); this.__broadcastFromStage(t, !0); } }, onWindowFullscreen: function (e) { null != this.window && this.window == e && 2 == this.__displayState && (this.__displayState = 1); }, onWindowLeave: function (e) { if (null != this.window && this.window == e) { this.__dispatchEvent(_a.__create("mouseLeave")); for (var t = this.__mouseDownStates.keys(); t.hasNext(); ) { var s = t.next(); this.__mouseDownStates.h[s] && this.onMouseUp(e, this.__mouseX, this.__mouseY, s); } } }, onWindowMinimize: function (e) {}, onWindowMove: function (e, t, s) {}, onWindowResize: function (e, t, s) { if (null != this.window && this.window == e) { 2 == this.__displayState || e.__fullscreen || (this.__displayState = 2), (t = (t * e.__scale) | 0), (s = (s * e.__scale) | 0); var n = this.get_scaleX(), i = this.get_scaleY(), r = this.stageWidth / this.stageHeight, o = t / s; if (r == o && 2 != this.get_scaleMode()) this.set_scaleX(t / this.stageWidth), this.set_scaleY(s / this.stageHeight); else switch (this.get_scaleMode()) { case 0: this.set_scaleX(t / this.stageWidth), this.set_scaleY(s / this.stageHeight); break; case 1: if (r < o) { var a = t / this.stageWidth; this.set_scaleX(a), this.set_scaleY(a), (s = Math.ceil(this.stageHeight * a)); } else { var l = s / this.stageHeight; this.set_scaleX(l), this.set_scaleY(l), (t = Math.ceil(this.stageWidth * l)); } break; case 2: (t = this.stageWidth), (s = this.stageHeight); break; case 3: if (r < o) { var h = s / this.stageHeight; this.set_scaleX(h), this.set_scaleY(h), (t = Math.ceil(this.stageWidth * h)); } else { var _ = t / this.stageWidth; this.set_scaleX(_), this.set_scaleY(_), (s = Math.ceil(this.stageHeight * _)); } } if ( (this.__update(!1, !0), null != this.__renderer && (Zf.trace("Resizing renderer to " + t + ", " + s, { fileName: "Stage.hx", lineNumber: 665, className: "openfl.display.Stage", methodName: "onWindowResize", }), this.__renderer.resize(t, s), e.resizeViewport(t, s)), n != this.get_scaleX() || i != this.get_scaleY()) ) { var u = _a.__create("resize"); this.__broadcastFromStage(u, !1); } } }, get_scaleMode: function () { return this.__scaleMode; }, set_scaleMode: function (e) { return ( e != this.__scaleMode && this.onWindowResize( this.window, this.window.__width, this.window.__height ), (this.__scaleMode = e) ); }, onWindowRestore: function (e) {}, __concatDepthFirstChildren: function (e, t) { var s = this.__allChildrenTempStack; for ( s._items[s._length++] = 0, null != t && ((t.__branchDirty = !1), (t.__branchDepth = null != t.parent ? t.parent.__branchDepth + 1 : 0), (e._items[e._length++] = t)); 0 < this.__allChildrenTempStack._length; ) { var n = this.__allChildrenTempStack, i = n._items[n._length - 1]; if ( null == t.__children || 0 == t.__children._length || i >= t.__children._length ) { var r = this.__allChildrenTempStack; r._items[--r._length]; if ( ((r._items[r._length] = null), 0 < this.__allChildrenTempStack._length) ) { var o = this.__allChildrenTempStack, a = this.__allChildrenTempStack, l = a._items[--a._length]; (a._items[a._length] = null), (o._items[o._length++] = l + 1); } t = t.parent; } else { var h = t.__children; null != (t = i >= h._length ? null : h._items[i]) && ((t.__branchDirty = !1), (t.__branchDepth = null != t.parent ? t.parent.__branchDepth + 1 : 0), (e._items[e._length++] = t)); var _ = this.__allChildrenTempStack; _._items[_._length++] = 0; } } }, __updateAllChildrenStack: function () { if (0 != W.__worldBranchDirty) { W.__worldBranchDirty = 0; var e = this.__pingPongIndex; this.__pingPongIndex ^= 1; for ( var t = this.__pingPongChildrenStack[e], s = this.__pingPongChildrenStack[this.__pingPongIndex], n = 0; n < t._length; ) { var i = n >= t._length ? null : t._items[n]; if (i.__branchDirty) { this.__concatDepthFirstChildren(s, i); for (var r = i.__branchDepth, o = n; ++o < t._length; ) { if ((o >= t._length ? null : t._items[o]).__branchDepth <= r) break; } n = o; } else ++n, (s._items[s._length++] = i); } for (var a = 0, l = t._length; a < l; ) { var h = a++; t._items[h] = null; } (t._length = 0), (this.__allChildrenStack = s); } }, __enterFrame: function (e) { for (var t, s = 1; s < this.__allChildrenStack._length; ) { var n = this.__allChildrenStack; null != (t = s >= n._length ? null : n._items[s]).stage && t.__enterFrame(e), ++s; } }, __broadcastFromStage: function (e, t) { var s; if ( (null == e.target && (e.target = this), e.acquire(), null != this.__eventMap && this.hasEventListener(e.type)) ) { var n; if ((e.acquire(), null == this.__eventMap || null == e)) e.release(), (n = !1); else { var i, r = e.type; if ( (this.__dispatching.get(r) ? (null == (i = this.__newEventMap.get(r)) && (i = this.__eventMap.get(r)), null != i && (i = i.slice())) : null != (i = this.__eventMap.get(r)) && this.__dispatching.set(r, !0), null != i) ) { var o = null; o = null == e.target ? null != this.__targetDispatcher ? this.__targetDispatcher : this : e.target; for ( var a, l = 1 == e.eventPhase, h = 0; h < i.length && ((e.target = o), (e.currentTarget = this), (a = i[h]).useCapture != l || (a.callback.call(a, e), !e.__isCanceledNow)); ) a == i[h] && ++h; if (null != this.__newEventMap && this.__newEventMap.exists(r)) { var _ = this.__newEventMap.get(r); 0 < _.length ? this.__eventMap.set(r, _) : this.__eventMap.remove(r), this.__eventMap.iterator().hasNext() ? this.__newEventMap.remove(r) : ((this.__eventMap = null), (this.__newEventMap = null)); } this.__dispatching.set(e.type, !1), e.release(), (n = !0); } else e.release(), (n = !1); } s = !!e.__isCanceled || n; } else s = !1; if (!e.__isCanceled && t) for (var u, d = 1; d < this.__allChildrenStack._length; ) { var c = this.__allChildrenStack; if ( (u = d >= c._length ? null : c._items[d]).stage == this && null != u.__eventMap && u.hasEventListener(e.type) ) { if ((e.acquire(), null == u.__eventMap || null == e)) e.release(), !1; else { var f, p = e.type; if ( (u.__dispatching.get(p) ? (null == (f = u.__newEventMap.get(p)) && (f = u.__eventMap.get(p)), null != f && (f = f.slice())) : null != (f = u.__eventMap.get(p)) && u.__dispatching.set(p, !0), null != f) ) { var b = null; b = null == e.target ? null != u.__targetDispatcher ? u.__targetDispatcher : u : e.target; for ( var m, g = 1 == e.eventPhase, w = 0; w < f.length && ((e.target = b), (e.currentTarget = u), (m = f[w]).useCapture != g || (m.callback.call(m, e), !e.__isCanceledNow)); ) m == f[w] && ++w; if (null != u.__newEventMap && u.__newEventMap.exists(p)) { var v = u.__newEventMap.get(p); 0 < v.length ? u.__eventMap.set(p, v) : u.__eventMap.remove(p), u.__eventMap.iterator().hasNext() ? u.__newEventMap.remove(p) : ((u.__eventMap = null), (u.__newEventMap = null)); } u.__dispatching.set(e.type, !1), e.release(), !0; } else e.release(), !1; } e.__isCanceled; } if (e.__isCanceled) return e.release(), !0; ++d; } return e.release(), s; }, render: function (e) { null != e.window && e.window == this.window && (null != this.application && 0 < this.application.windows.length && (this.__transformDirty || ((this.__transformDirty = !0), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0), W.__worldTransformDirty++), (this.__updateCachedBitmap = !0), (this.__updateFilters = null != this.__filters && 0 < this.__filters.length), this.__isMask && (this.__maskCached = !1), this.__renderDirty || ((this.__renderDirty = !0), W.__worldRenderDirty++, null != this.__cachedParent && this.__cachedParent.__setRenderDirty()), this.__updateDirty || null == this.stage || this == this.stage || (this.__updateDirty = !0)), this.__rendering || ((this.__rendering = !0), this.__broadcastFromStage(_a.__create("enterFrame"), !0), this.__invalidated && ((this.__invalidated = !1), this.__broadcastFromStage(_a.__create("render"), !0)), this.__updateAllChildrenStack(), this.__enterFrame(this.__deltaTime), this.__updateAllChildrenStack(), (this.__deltaTime = 0), this.__updateDirtyElements(!1, !0), null != this.__renderer && this.__renderer.render(this), (this.__rendering = !1))); }, update: function (e) { (this.__deltaTime = e), Lw.__calledOnMouseThisFrame || this.__onMouse(null, this.__mouseX, this.__mouseY, 0), (Lw.__calledOnMouseThisFrame = !1), this.__updateAllChildrenStack(); }, __drag: function (e) { var t = this.__dragObject.parent; null != t && (e = t.globalToLocal(e)); var s = e.x + this.__dragOffsetX, n = e.y + this.__dragOffsetY; null != this.__dragBounds && (s < this.__dragBounds.x ? (s = this.__dragBounds.x) : s > this.__dragBounds.get_right() && (s = this.__dragBounds.get_right()), n < this.__dragBounds.y ? (n = this.__dragBounds.y) : n > this.__dragBounds.get_bottom() && (n = this.__dragBounds.get_bottom())), this.__dragObject.set_x(s), this.__dragObject.set_y(n); }, __getInteractive: function (e) { return null != e && (e._items[e._length++] = this), !0; }, __onKey: function (e, t, s) { (Pv.__altKey = Im.get_altKey(s)), (Pv.__commandKey = Im.get_metaKey(s)), (Pv.__ctrlKey = Im.get_ctrlKey(s)), (Pv.__shiftKey = Im.get_shiftKey(s)); for (var n = this.__stack, i = 0, r = n._length; i < r; ) { var o = i++; n._items[o] = null; } if ( ((n._length = 0), null == this.__focus ? this.__getInteractive(this.__stack) : this.__focus.__getInteractive(this.__stack), 0 < this.__stack._length) ) { var a, l; switch (t) { case 96: case 97: case 98: case 99: case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 108: case 110: case 111: case 1073741910: case 1073741911: case 1073741923: a = 3; break; case 1073742048: case 1073742049: case 1073742050: case 1073742051: a = 1; break; case 1073742052: case 1073742053: case 1073742054: case 1073742055: a = 2; break; default: a = 0; } switch (t) { case 8: l = 8; break; case 9: l = 9; break; case 13: l = 13; break; case 27: l = 27; break; case 32: l = 32; break; case 33: l = 49; break; case 34: l = 222; break; case 35: l = 51; break; case 36: l = 52; break; case 37: l = 53; break; case 38: l = 55; break; case 39: l = 222; break; case 40: l = 57; break; case 41: l = 48; break; case 42: l = 56; break; case 44: l = 188; break; case 45: l = 189; break; case 46: l = 190; break; case 47: l = 191; break; case 48: l = 48; break; case 49: l = 49; break; case 50: l = 50; break; case 51: l = 51; break; case 52: l = 52; break; case 53: l = 53; break; case 54: l = 54; break; case 55: l = 55; break; case 56: l = 56; break; case 57: l = 57; break; case 58: case 59: l = 186; break; case 60: l = 60; break; case 61: l = 187; break; case 62: l = 190; break; case 63: l = 191; break; case 64: l = 50; break; case 91: l = 219; break; case 92: l = 220; break; case 93: l = 221; break; case 94: l = 54; break; case 95: l = 189; break; case 96: l = 192; break; case 97: l = 65; break; case 98: l = 66; break; case 99: l = 67; break; case 100: l = 68; break; case 101: l = 69; break; case 102: l = 70; break; case 103: l = 71; break; case 104: l = 72; break; case 105: l = 73; break; case 106: l = 74; break; case 107: l = 75; break; case 108: l = 76; break; case 109: l = 77; break; case 110: l = 78; break; case 111: l = 79; break; case 112: l = 80; break; case 113: l = 81; break; case 114: l = 82; break; case 115: l = 83; break; case 116: l = 84; break; case 117: l = 85; break; case 118: l = 86; break; case 119: l = 87; break; case 120: l = 88; break; case 121: l = 89; break; case 122: l = 90; break; case 127: l = 46; break; case 1073741881: l = 20; break; case 1073741882: l = 112; break; case 1073741883: l = 113; break; case 1073741884: l = 114; break; case 1073741885: l = 115; break; case 1073741886: l = 116; break; case 1073741887: l = 117; break; case 1073741888: l = 118; break; case 1073741889: l = 119; break; case 1073741890: l = 120; break; case 1073741891: l = 121; break; case 1073741892: l = 122; break; case 1073741893: l = 123; break; case 1073741894: l = 301; break; case 1073741895: l = 145; break; case 1073741896: l = 19; break; case 1073741897: l = 45; break; case 1073741898: l = 36; break; case 1073741899: l = 33; break; case 1073741901: l = 35; break; case 1073741902: l = 34; break; case 1073741903: l = 39; break; case 1073741904: l = 37; break; case 1073741905: l = 40; break; case 1073741906: l = 38; break; case 1073741907: l = 144; break; case 1073741908: l = 111; break; case 1073741909: l = 106; break; case 1073741910: l = 109; break; case 1073741911: l = 107; break; case 1073741912: l = 108; break; case 1073741913: l = 97; break; case 1073741914: l = 98; break; case 1073741915: l = 99; break; case 1073741916: l = 100; break; case 1073741917: l = 101; break; case 1073741918: l = 102; break; case 1073741919: l = 103; break; case 1073741920: l = 104; break; case 1073741921: l = 105; break; case 1073741922: l = 96; break; case 1073741923: l = 110; break; case 1073741925: l = 302; break; case 1073741928: l = 124; break; case 1073741929: l = 125; break; case 1073741930: l = 126; break; case 1073741982: l = 13; break; case 1073742044: l = 110; break; case 1073742048: l = 17; break; case 1073742049: l = 16; break; case 1073742050: l = 18; break; case 1073742051: l = 15; break; case 1073742052: l = 17; break; case 1073742053: l = 16; break; case 1073742054: l = 18; break; case 1073742055: l = 15; break; default: l = t; } for ( var h = Yy.__getCharCode(l, Im.get_shiftKey(s)), _ = new Ev( e, !0, !1, h, l, a, this.__macKeyboard ? Im.get_ctrlKey(s) || Im.get_metaKey(s) : Im.get_ctrlKey(s), Im.get_altKey(s), Im.get_shiftKey(s), Im.get_ctrlKey(s), Im.get_metaKey(s) ), u = this.__stack, d = 0, c = u._length - 1; d < c; ) { var f = u._items[d]; (u._items[d] = u._items[c]), (u._items[c] = f), ++d, --c; } Lw.fireEvent(_, this.__stack), _.__isCanceled && ("keyDown" == e ? this.window.onKeyDown.cancel() : this.window.onKeyUp.cancel()); } }, __onMouse: function (e, t, s, n) { var i = this; if (!(2 < n)) { (Lw.__calledOnMouseThisFrame = !0), (this.__mouseX = t), (this.__mouseY = s); var r = t / this.get_scaleX(), o = s / this.get_scaleY(), a = null, l = qm.pool.get(), h = qm.pool.get(); l.setTo(this.get_mouseX(), this.get_mouseY()); for (var _ = this.__stack, u = 0, d = _._length; u < d; ) { var c = u++; _._items[c] = null; } if ( ((_._length = 0), this.__hitTest(t, s, !0, this.__stack, !0, this)) ) { var f = this.__stack, p = this.__stack._length - 1; a = p >= f._length ? null : f._items[p]; } else { for (var b = (a = this).__stack, m = 0, g = b._length; m < g; ) { var w = m++; b._items[w] = null; } b._length = 0; var v = this.__stack; v._items[v._length++] = this; } if ((null == a && (a = this), h.copyFrom(l), null != a.stage)) { var y = a.stage.__getWorldTransform(), T = h.x, S = h.y; (h.x = T * y.a + S * y.c + y.tx), (h.y = T * y.b + S * y.d + y.ty); } var x = a.__getWorldTransform(), E = x.a * x.d - x.b * x.c; if (0 == E) (h.x = -x.tx), (h.y = -x.ty); else { var P = (1 / E) * (x.c * (x.ty - h.y) + x.d * (h.x - x.tx)); (h.y = (1 / E) * (x.a * (h.y - x.ty) + x.b * (x.tx - h.x))), (h.x = P); } var R = null; switch (e) { case "middleMouseDown": this.__mouseDownStates.set(n, !0), (this.__mouseDownMiddle = a); break; case "middleMouseUp": this.__mouseDownStates.set(n, !1), this.__mouseDownMiddle == a && (R = "middleClick"), (this.__mouseDownMiddle = null); break; case "mouseDown": a.get_tabEnabled() ? this.set_focus(a) : this.set_focus(null), this.__mouseDownStates.set(n, !0), (this.__mouseDownLeft = a); break; case "mouseUp": this.__mouseDownStates.set(n, !1), this.__mouseDownLeft == a && (R = "click"), (this.__mouseDownLeft = null); break; case "rightMouseDown": this.__mouseDownStates.set(n, !0), (this.__mouseDownRight = a); break; case "rightMouseUp": this.__mouseDownStates.set(n, !1), this.__mouseDownRight == a && (R = "rightClick"), (this.__mouseDownRight = null); } if ( (Lw.fireEvent( Pv.__create(e, r, o, a == this ? l : h, a, this), this.__stack ), null != R && (Lw.fireEvent( Pv.__create(R, r, o, a == this ? l : h, a, this), this.__stack ), "mouseUp" == e && Lp.__cast(a, yt).doubleClickEnabled)) ) { var A = Date.now(); A - this.__lastClickTime < 500 ? (Lw.fireEvent( Pv.__create("doubleClick", r, o, a == this ? l : h, a, this), this.__stack ), (this.__lastClickTime = 0)) : (this.__lastClickTime = A); } for (var I, C, B = null, D = 0, k = this.__stack._length; D < k; ) { var F = D++, M = this.__stack; if ( null != (B = (F >= M._length ? null : M._items[F]).__getCursor()) ) { Cm.set_cursor(B); break; } } if ((null == B && Cm.set_cursor(Bm.ARROW), 0 < this.__stack._length)) if (0 != this.__mouseOutStack._length) if (0 < this.__mouseOutStack._length) { var L = this.__mouseOutStack, N = this.__mouseOutStack._length - 1, O = this.__stack, U = this.__stack._length - 1; C = (N >= L._length ? null : L._items[N]) != (U >= O._length ? null : O._items[U]); } else C = !1; else C = !0; else C = !1; if (C) { for (var G = this.__outElements, z = 0, X = G._length; z < X; ) { var H = z++; G._items[H] = null; } G._length = 0; for (var V = this.__inElements, Y = 0, W = V._length; Y < W; ) { var j = Y++; V._items[j] = null; } if ((V._length = 0) == i.__mouseOutStack._length) { var K = i.__inElements, q = i.__stack, Z = K._length; K._length = q._length; for (var J = 0, Q = K._length; J < Q; ) { var $ = J++, ee = $; K._items[$] = ee >= q._length ? null : q._items[ee]; } for (var te = K._length, se = Z; te < se; ) { var ne = te++; K._items[ne] = null; } } for ( var ie = 0, re = 0 | Math.max(i.__stack._length, i.__mouseOutStack._length); ie < re; ) { var oe = ie++, ae = i.__stack, le = i.__mouseOutStack; if ( (oe >= ae._length ? null : ae._items[oe]) != (oe >= le._length ? null : le._items[oe]) ) { var he = i.__outElements, _e = i.__mouseOutStack, ue = he._length; he._length = _e._length - oe; for (var de = 0, ce = he._length; de < ce; ) { var fe = de++, pe = oe + fe; he._items[fe] = pe >= _e._length ? null : _e._items[pe]; } for (var be = he._length, me = ue; be < me; ) { var ge = be++; he._items[ge] = null; } var we = i.__inElements, ve = i.__stack, ye = we._length; we._length = ve._length - oe; for (var Te = 0, Se = we._length; Te < Se; ) { var xe = Te++, Ee = oe + xe; we._items[xe] = Ee >= ve._length ? null : ve._items[Ee]; } for (var Pe = we._length, Re = ye; Pe < Re; ) { var Ae = Pe++; we._items[Ae] = null; } break; } } if (0 < this.__mouseOutStack._length) { var Ie = this.__mouseOutStack, Ce = this.__mouseOutStack._length - 1, Be = Ce >= Ie._length ? null : Ie._items[Ce]; if ((h.copyFrom(l), null != Be.stage)) { var De = Be.stage.__getWorldTransform(), ke = h.x, Fe = h.y; (h.x = ke * De.a + Fe * De.c + De.tx), (h.y = ke * De.b + Fe * De.d + De.ty); } var Me = Be.__getWorldTransform(), Le = Me.a * Me.d - Me.b * Me.c; if (0 == Le) (h.x = -Me.tx), (h.y = -Me.ty); else { var Ne = (1 / Le) * (Me.c * (Me.ty - h.y) + Me.d * (h.x - Me.tx)); (h.y = (1 / Le) * (Me.a * (h.y - Me.ty) + Me.b * (Me.tx - h.x))), (h.x = Ne); } ((I = Pv.__create("mouseOut", r, o, h, Be, i)).bubbles = !0), Be.__dispatchEvent(I); } for (var Oe = this.__outElements._length - 1; 0 <= Oe; ) { var Ue = this.__outElements, Ge = Oe >= Ue._length ? null : Ue._items[Oe]; if (Ge.hasEventListener("rollOut")) { if ((h.copyFrom(l), null != Ge.stage)) { var ze = Ge.stage.__getWorldTransform(), Xe = h.x, He = h.y; (h.x = Xe * ze.a + He * ze.c + ze.tx), (h.y = Xe * ze.b + He * ze.d + ze.ty); } var Ve = Ge.__getWorldTransform(), Ye = Ve.a * Ve.d - Ve.b * Ve.c; if (0 == Ye) (h.x = -Ve.tx), (h.y = -Ve.ty); else { var We = (1 / Ye) * (Ve.c * (Ve.ty - h.y) + Ve.d * (h.x - Ve.tx)); (h.y = (1 / Ye) * (Ve.a * (h.y - Ve.ty) + Ve.b * (Ve.tx - h.x))), (h.x = We); } ((I = Pv.__create("rollOut", r, o, h, Ge, i)).bubbles = !1), Ge.__dispatchEvent(I); } --Oe; } for (var je = 0, Ke = this.__inElements; je < Ke._length; ) { var qe = je >= Ke._length ? null : Ke._items[je]; if ((++je, qe.hasEventListener("rollOver"))) { if ((h.copyFrom(l), null != qe.stage)) { var Ze = qe.stage.__getWorldTransform(), Je = h.x, Qe = h.y; (h.x = Je * Ze.a + Qe * Ze.c + Ze.tx), (h.y = Je * Ze.b + Qe * Ze.d + Ze.ty); } var $e = qe.__getWorldTransform(), et = $e.a * $e.d - $e.b * $e.c; if (0 == et) (h.x = -$e.tx), (h.y = -$e.ty); else { var tt = (1 / et) * ($e.c * ($e.ty - h.y) + $e.d * (h.x - $e.tx)); (h.y = (1 / et) * ($e.a * (h.y - $e.ty) + $e.b * ($e.tx - h.x))), (h.x = tt); } ((I = Pv.__create("rollOver", r, o, h, qe, i)).bubbles = !1), qe.__dispatchEvent(I); } } var st = this.__stack, nt = this.__stack._length - 1, it = nt >= st._length ? null : st._items[nt]; if ((h.copyFrom(l), null != it.stage)) { var rt = it.stage.__getWorldTransform(), ot = h.x, at = h.y; (h.x = ot * rt.a + at * rt.c + rt.tx), (h.y = ot * rt.b + at * rt.d + rt.ty); } var lt = it.__getWorldTransform(), ht = lt.a * lt.d - lt.b * lt.c; if (0 == ht) (h.x = -lt.tx), (h.y = -lt.ty); else { var _t = (1 / ht) * (lt.c * (lt.ty - h.y) + lt.d * (h.x - lt.tx)); (h.y = (1 / ht) * (lt.a * (h.y - lt.ty) + lt.b * (lt.tx - h.x))), (h.x = _t); } ((I = Pv.__create("mouseOver", r, o, h, it, i)).bubbles = !0), it.__dispatchEvent(I); } null != this.__dragObject && this.__drag(l); var ut = this.__mouseOutStack, dt = this.__stack, ct = ut._length; ut._length = dt._length; for (var ft = 0, pt = ut._length; ft < pt; ) { var bt = ft++, mt = bt; ut._items[bt] = mt >= dt._length ? null : dt._items[mt]; } for (var gt = ut._length, wt = ct; gt < wt; ) { var vt = gt++; ut._items[vt] = null; } qm.pool.put(l), qm.pool.put(h); } }, __onMouseWheel: function (e, t) { for ( var s = this.__mouseX, n = this.__mouseY, i = this.__stack, r = 0, o = i._length; r < o; ) { var a = r++; i._items[a] = null; } if ( ((i._length = 0), !this.__hitTest(s, n, !1, this.__stack, !0, this)) ) { for (var l = this.__stack, h = 0, _ = l._length; h < _; ) { var u = h++; l._items[u] = null; } l._length = 0; var d = this.__stack; d._items[d._length++] = this; } var c = this.__stack, f = this.__stack._length - 1, p = f >= c._length ? null : c._items[f], b = qm.pool.get(); b.setTo(s, n); var m = 0 | t; Lw.fireEvent( Pv.__create( "mouseWheel", this.__mouseX, this.__mouseY, p == this ? b : p.globalToLocal(b), p, this, m ), this.__stack ), qm.pool.put(b); }, __onTouch: function (e, t) { (this.__mouseX = t.x * this.stageWidth), (this.__mouseY = t.y * this.stageHeight); var s = this.__mouseX / this.get_scaleX(), n = this.__mouseY / this.get_scaleY(), i = null, r = qm.pool.get(), o = qm.pool.get(); r.setTo(this.get_mouseX(), this.get_mouseY()); for (var a = this.__stack, l = 0, h = a._length; l < h; ) { var _ = l++; a._items[_] = null; } if ( ((a._length = 0), this.__hitTest( this.__mouseX, this.__mouseY, !0, this.__stack, !0, this )) ) { var u = this.__stack, d = this.__stack._length - 1; i = d >= u._length ? null : u._items[d]; } else { for (var c = (i = this).__stack, f = 0, p = c._length; f < p; ) { var b = f++; c._items[b] = null; } c._length = 0; var m = this.__stack; m._items[m._length++] = this; } if ((null == i && (i = this), o.copyFrom(r), null != i.stage)) { var g = i.stage.__getWorldTransform(), w = o.x, v = o.y; (o.x = w * g.a + v * g.c + g.tx), (o.y = w * g.b + v * g.d + g.ty); } var y = i.__getWorldTransform(), T = y.a * y.d - y.b * y.c; if (0 == T) (o.x = -y.tx), (o.y = -y.ty); else { var S = (1 / T) * (y.c * (y.ty - o.y) + y.d * (o.x - y.tx)); (o.y = (1 / T) * (y.a * (o.y - y.ty) + y.b * (y.tx - o.x))), (o.x = S); } Lw.fireEvent( Bv.__create(e, null, s, n, i == this ? r : o, i), this.__stack ), qm.pool.put(r), qm.pool.put(o); }, __hitTest: function (e, t, s, n, i, r) { var o = j.prototype.__hitTest.call(this, e, t, s, n, i, r); if (!o) { var a = cy.pool.get(); (a.x = this.__transform.tx), (a.y = this.__transform.ty), (a.width = this.get_scaleX() * this.stageWidth), (a.height = this.get_scaleY() * this.stageHeight), (o = a.contains(e, t)), cy.pool.put(a), o && null != n && (n._items[n._length++] = this); } return o; }, __resize: function () {}, __startDrag: function (e, t, s) { if ( ((this.__dragBounds = null == s ? null : s.clone()), (this.__dragObject = e), null != this.__dragObject) ) if (t) (this.__dragOffsetX = -this.__dragObject.get_width() / 2), (this.__dragOffsetY = -this.__dragObject.get_height() / 2); else { var n = qm.pool.get(); n.setTo(this.get_mouseX(), this.get_mouseY()); var i = this.__dragObject.parent; null != i && (n = i.globalToLocal(n)), (this.__dragOffsetX = this.__dragObject.__transform.tx - n.x), (this.__dragOffsetY = this.__dragObject.__transform.ty - n.y), qm.pool.put(n); } }, __stopDrag: function (e) { (this.__dragBounds = null), (this.__dragObject = null); }, __updateDirtyElements: function (e, t) { if ( 0 < W.__worldTransformDirty && (e || this.__dirty || 0 < W.__worldRenderDirty) ) { this.__updateTransforms(), t && this.__transformDirty && ((this.__transformDirty = !1), W.__worldTransformDirty--), e || (this.__updateColor(), null != this.parent && ((null != this.blendMode && 10 != this.blendMode) || (this.__blendMode = this.parent.__blendMode), null == this.shader && (this.__shader = this.parent.__shader)), (this.__renderDirty = this.__renderDirty && !t), (this.__updateDirty = !1)); for (var s = 0; s < this.__allChildrenStack._length; ) { var n = this.__allChildrenStack, i = s >= n._length ? null : n._items[s]; i.__updateDirty && i.__update(e, t), ++s; } t && ((W.__worldTransformDirty = 0), e || (W.__worldRenderDirty = 0), (this.__dirty = e)); } }, canvas_onContextLost: function (e) {}, canvas_onContextRestored: function (e) {}, get_color: function () { return this.__color; }, set_color: function (e) { var t = (16711680 & e) >>> 16, s = (65280 & e) >>> 8, n = 255 & e; return ( (this.__colorSplit = [t / 255, s / 255, n / 255]), (this.__colorString = "#" + Ri.hex(e, 6)), (this.__color = e) ); }, get_displayState: function () { return this.__displayState; }, set_displayState: function (e) { return ( null != this.window && (2 == e ? this.window.__fullscreen && (this.window.set_fullscreen(!1), this.dispatchEvent(new yv("fullScreen", !1, !1, !1, !0))) : this.window.__fullscreen || (this.window.set_fullscreen(!0), this.dispatchEvent(new yv("fullScreen", !1, !1, !0, !0)))), (this.__displayState = e) ); }, get_focus: function () { return this.__focus; }, set_focus: function (e) { if (e != this.__focus) { var t = this.__focus; if (((this.__focus = e), null != t)) { for ( var s = new vv("focusOut", !0, !1, this.__focus, !1, 0), n = this.__focusStack, i = 0, r = n._length; i < r; ) { var o = i++; n._items[o] = null; } (n._length = 0), t.__getInteractive(this.__focusStack); for (var a = this.__focusStack, l = 0, h = a._length - 1; l < h; ) { var _ = a._items[l]; (a._items[l] = a._items[h]), (a._items[h] = _), ++l, --h; } Lw.fireEvent(s, this.__focusStack); } if (null != this.__focus) { for ( var u = new vv("focusIn", !0, !1, t, !1, 0), d = this.__focusStack, c = 0, f = d._length; c < f; ) { var p = c++; d._items[p] = null; } (d._length = 0), e.__getInteractive(this.__focusStack); for (var b = this.__focusStack, m = 0, g = b._length - 1; m < g; ) { var w = b._items[m]; (b._items[m] = b._items[g]), (b._items[g] = w), ++m, --g; } Lw.fireEvent(u, this.__focusStack); } } return this.__focus; }, get_frameRate: function () { return null != this.application ? this.application.backend.getFrameRate() : 0; }, set_frameRate: function (e) { return ( (this.frameTime = (1e3 / e) | 0), null != this.application ? this.application.backend.setFrameRate(e) : e ); }, get_fullScreenWidth: function () { return this.window.backend.getScreenWidth(); }, get_fullScreenHeight: function () { return this.window.backend.getScreenHeight(); }, __class__: Lw, __properties__: n(j.prototype.__properties__, { get_fullScreenHeight: "get_fullScreenHeight", get_fullScreenWidth: "get_fullScreenWidth", set_scaleMode: "set_scaleMode", get_scaleMode: "get_scaleMode", set_frameRate: "set_frameRate", get_frameRate: "get_frameRate", set_focus: "set_focus", get_focus: "get_focus", set_displayState: "set_displayState", get_displayState: "get_displayState", set_color: "set_color", get_color: "get_color", }), })); var Nw = function () { g.call(this); }; ((s["openfl.display.Stage3D"] = Nw).__name__ = [ "openfl", "display", "Stage3D", ]), (Nw.__super__ = g), (Nw.prototype = n(g.prototype, { requestContext3D: function (e) { null == e && (e = ""); var t = this; Iw.get_isSupported() ? Qf.delay(function () { (t.context3D = new Yw()), t.dispatchEvent(new _a("context3DCreate")); }, 1) : Qf.delay(function () { t.dispatchEvent(new gv("error")); }, 1); }, __class__: Nw, })); var Ow = {}; ((s["openfl.display._StageAlign.StageAlign_Impl_"] = Ow).__name__ = [ "openfl", "display", "_StageAlign", "StageAlign_Impl_", ]), (Ow.fromString = function (e) { switch (e) { case "bottom": return 0; case "bottomLeft": return 1; case "bottomRight": return 2; case "left": return 3; case "right": return 4; case "top": return 5; case "topLeft": return 6; case "topRight": return 7; default: return null; } }), (Ow.toString = function (e) { switch (e) { case 0: return "bottom"; case 1: return "bottomLeft"; case 2: return "bottomRight"; case 3: return "left"; case 4: return "right"; case 5: return "top"; case 6: return "topLeft"; case 7: return "topRight"; default: return null; } }); var Uw = {}; ((s["openfl.display._StageDisplayState.StageDisplayState_Impl_"] = Uw).__name__ = [ "openfl", "display", "_StageDisplayState", "StageDisplayState_Impl_", ]), (Uw.fromString = function (e) { switch (e) { case "fullScreen": return 0; case "fullScreenInteractive": return 1; case "normal": return 2; default: return null; } }), (Uw.toString = function (e) { switch (e) { case 0: return "fullScreen"; case 1: return "fullScreenInteractive"; case 2: return "normal"; default: return null; } }); var Gw = {}; ((s["openfl.display._StageQuality.StageQuality_Impl_"] = Gw).__name__ = [ "openfl", "display", "_StageQuality", "StageQuality_Impl_", ]), (Gw.fromString = function (e) { switch (e) { case "best": return 0; case "high": return 1; case "low": return 2; case "medium": return 3; default: return null; } }), (Gw.toString = function (e) { switch (e) { case 0: return "best"; case 1: return "high"; case 2: return "low"; case 3: return "medium"; default: return null; } }); var zw = {}; ((s["openfl.display._StageScaleMode.StageScaleMode_Impl_"] = zw).__name__ = [ "openfl", "display", "_StageScaleMode", "StageScaleMode_Impl_", ]), (zw.fromString = function (e) { switch (e) { case "exactFit": return 0; case "noBorder": return 1; case "noScale": return 2; case "showAll": return 3; default: return null; } }), (zw.toString = function (e) { switch (e) { case 0: return "exactFit"; case 1: return "noBorder"; case 2: return "noScale"; case 3: return "showAll"; default: return null; } }); var Xw = {}; ((s["openfl.display._TriangleCulling.TriangleCulling_Impl_"] = Xw).__name__ = ["openfl", "display", "_TriangleCulling", "TriangleCulling_Impl_"]), (Xw.fromString = function (e) { switch (e) { case "negative": return 0; case "none": return 1; case "positive": return 2; default: return null; } }), (Xw.toString = function (e) { switch (e) { case 0: return "negative"; case 1: return "none"; case 2: return "positive"; default: return null; } }); var Hw = function (e) { km.call(this, e); }; ((s["openfl.display.Window"] = Hw).__name__ = [ "openfl", "display", "Window", ]), (Hw.__super__ = km), (Hw.prototype = n(km.prototype, { create: function (e) { km.prototype.create.call(this, e), (this.stage = new Lw( this, Object.prototype.hasOwnProperty.call(this.config, "background") ? this.config.background : 16777215 )), e.addModule(this.stage); }, __class__: Hw, })); var Vw = function () {}; ((s["openfl.display.api.ISpritesheet"] = Vw).__name__ = [ "openfl", "display", "api", "ISpritesheet", ]), (Vw.prototype = { __class__: Vw }); var Yw = function () { this.disposed = !1; (this.stencilCompareMode = 519), (this.stencilRef = 0), (this.stencilReadMask = 255), (this._yFlip = 1), (this.vertexBuffersCreated = []), (this.indexBuffersCreated = []), (this.programsCreated = []), (this.texturesCreated = []), (this.samplerParameters = []); for (var e = 0, t = Yw.MAX_SAMPLERS; e < t; ) { var s = e++; (this.samplerParameters[s] = new Ww()), (this.samplerParameters[s].wrap = sv.CLAMP), (this.samplerParameters[s].filter = Qw.LINEAR), (this.samplerParameters[s].mipfilter = Zw.MIPNONE); } var n = Zm.current.stage; (this.ogl = new Iw()), this.resize(), n.addChildAt(this.ogl, 0), Vb.context.pixelStorei(37440, 1), Vb.context.pixelStorei(37441, 1), n.addEventListener("resize", CT(this, this.resize)); }; ((s["openfl.display3D.Context3D"] = Yw).__name__ = [ "openfl", "display3D", "Context3D", ]), (Yw.prototype = { clear: function (e, t, s, n, i, r, o) { null == o && (o = 17664), null == r && (r = 0), null == i && (i = 1), null == n && (n = 1), null == s && (s = 0), null == t && (t = 0), null == e && (e = 0), this.drawing || (this.__updateBlendStatus(), (this.drawing = !0)), null != this.scissorRectangle && Vb.context.disable(3089), Vb.context.clearColor(e, t, s, n), Vb.context.clearDepth(i), Vb.context.clearStencil(r), Vb.context.clear(o), null != this.scissorRectangle && Vb.context.enable(3089); }, configureBackBuffer: function (e, t, s, n) { null == n && (n = !0), (this.backBufferDepthAndStencil = n), this.updateDepthAndStencilState(), this.setBackBufferViewPort(null, null, e, t), this.updateScissorRectangle(); }, setBackBufferViewPort: function (e, t, s, n) { null == e && (e = 0 | this.scrollRect.x), null == t && (t = 0 | this.scrollRect.y), null == s && (s = 0 | this.scrollRect.width), null == n && (n = 0 | this.scrollRect.height), (this.scrollRect.x = e), (this.scrollRect.y = t), (this.scrollRect.width = s), (this.scrollRect.height = n), this.ogl.set_width(e + s), this.ogl.set_height(t + n), this.updateBackBufferViewPort(); }, resize: function (e) { var t = Zm.current.stage, s = t.__renderer, n = null != s ? s.width : t.stageWidth * t.get_scaleX(), i = null != s ? s.height : t.stageHeight * t.get_scaleY(); this.ogl.set_scrollRect(new cy(0, 0, n, i)), (this.scrollRect = this.ogl.get_scrollRect()), this.ogl.set_width(n), this.ogl.set_height(i); }, updateBackBufferViewPort: function () { this.renderToTexture || Vb.context.viewport( 0 | this.scrollRect.x, 0 | this.scrollRect.y, 0 | this.scrollRect.width, 0 | this.scrollRect.height ); }, updateDepthAndStencilState: function () { ( this.renderToTexture ? this.rttDepthAndStencil : this.backBufferDepthAndStencil ) ? (Jp.current.windows[0].config.depthBuffer && Vb.context.enable(2929), Jp.current.windows[0].config.stencilBuffer && Vb.context.enable(2960)) : (Vb.context.disable(2929), Vb.context.disable(2960)); }, createCubeTexture: function (e, t, s, n) { null == n && (n = 0); var i = new av(this, Vb.context.createTexture(), e); return this.texturesCreated.push(i), i; }, createIndexBuffer: function (e, t) { null == t && (t = jw.STATIC_DRAW); var s = new nv( this, Vb.context.createBuffer(), e, t == jw.STATIC_DRAW ? 35044 : 35048 ); return this.indexBuffersCreated.push(s), s; }, createProgram: function () { var e = new iv(this, Vb.context.createProgram()); return this.programsCreated.push(e), e; }, createRectangleTexture: function (e, t, s, n) { var i = new lv(this, Vb.context.createTexture(), n, e, t); return this.texturesCreated.push(i), i; }, createTexture: function (e, t, s, n, i) { null == i && (i = 0); var r = new hv(this, Vb.context.createTexture(), n, e, t); return this.texturesCreated.push(r), r; }, createVertexBuffer: function (e, t, s) { null == s && (s = jw.STATIC_DRAW); var n = new rv( this, Vb.context.createBuffer(), e, t, s == jw.STATIC_DRAW ? 35044 : 35048 ); return this.vertexBuffersCreated.push(n), n; }, __deleteTexture: function (e) { if (null != e.glTexture) { he.remove(this.texturesCreated, e); var t = e.glTexture; Vb.textureStateCache.remove(t), Vb.context.deleteTexture(t), (e.glTexture = null); } }, __deleteVertexBuffer: function (e) { null != e.glBuffer && (he.remove(this.vertexBuffersCreated, e), Vb.context.deleteBuffer(e.glBuffer), (e.glBuffer = null)); }, __deleteIndexBuffer: function (e) { null != e.glBuffer && (he.remove(this.indexBuffersCreated, e), Vb.context.deleteBuffer(e.glBuffer), (e.glBuffer = null)); }, __deleteProgram: function (e) { null != e.glProgram && (he.remove(this.programsCreated, e), Vb.context.deleteProgram(e.glProgram), (e.glProgram = null)); }, dispose: function () { for (var e = 0, t = this.vertexBuffersCreated; e < t.length; ) { var s = t[e]; ++e, s.dispose(); } this.vertexBuffersCreated = null; for (var n = 0, i = this.indexBuffersCreated; n < i.length; ) { var r = i[n]; ++n, r.dispose(); } this.indexBuffersCreated = null; for (var o = 0, a = this.programsCreated; o < a.length; ) { var l = a[o]; ++o, l.dispose(); } (this.programsCreated = null), (this.samplerParameters = null); for (var h = 0, _ = this.texturesCreated; h < _.length; ) { var u = _[h]; ++h, u.dispose(); } (this.texturesCreated = null) != this.framebuffer && (Vb.context.deleteFramebuffer(this.framebuffer), (this.framebuffer = null)), null != this.renderbuffer && (Vb.context.deleteRenderbuffer(this.renderbuffer), (this.renderbuffer = null)), (this.disposed = !0); }, drawToBitmapData: function (e) {}, drawTriangles: function (e, t, s) { null == s && (s = -1), null == t && (t = 0); var n, i = Vb.context.getUniformLocation( this.currentProgram.glProgram, "yflip" ); if ((Vb.context.uniform1f(i, this._yFlip), !this.drawing)) throw new Mp( new _v( "Need to clear before drawing if the buffer has not been cleared since the last present() call." ) ); n = -1 == s ? e.numIndices : 3 * s; var r = 2 * t; Vb.context.bindBuffer(34963, e.glBuffer), Vb.context.drawElements(4, n, 5123, r); }, present: function () { this.drawing = !1; var e = null; e != Vb.currentProgram && (Vb.context.useProgram(e), (e = Vb.currentProgram)), Vb.context.bindBuffer(34962, null), Vb.context.disable(2884), null != this.framebuffer && Vb.context.bindFramebuffer(36160, null), null != this.renderbuffer && Vb.context.bindRenderbuffer(36161, null); }, removeRenderMethod: function (e) { this.ogl.set_render(null); }, setBlendFactors: function (e, t) { (this.blendEnabled = !0), (this.blendSourceFactor = e), (this.blendDestinationFactor = t), this.__updateBlendStatus(); }, setColorMask: function (e, t, s, n) { Vb.context.colorMask(e, t, s, n); }, setCulling: function (e) { if (0 == e) Vb.context.disable(2884); else switch ((Vb.context.enable(2884), e)) { case 1028: Vb.context.cullFace(1028); break; case 1029: Vb.context.cullFace(1029); break; case 1032: Vb.context.cullFace(1032); break; default: throw new Mp("Unknown Context3DTriangleFace type."); } switch (e) { case 0: case 1028: this._yFlip = 1; break; case 1029: this._yFlip = -1; break; case 1032: this._yFlip = 1; break; default: throw new Mp("Unknown culling mode " + e + "."); } }, setDepthTest: function (e, t) { Vb.context.depthFunc(t), Vb.context.depthMask(e); }, setGLSLProgramConstantsFromByteArray: function (e, t, s) { null == s && (s = 0); var n = Vb.context.getUniformLocation(this.currentProgram.glProgram, e); t.position = s; var i = t.readFloat(), r = t.readFloat(), o = t.readFloat(), a = t.readFloat(); Vb.context.uniform4f(n, i, r, o, a); }, setGLSLProgramConstantsFromMatrix: function (e, t, s) { null == s && (s = !1); for ( var n = Vb.context.getUniformLocation( this.currentProgram.glProgram, e ), i = t.rawData, r = [], o = 0, a = i.data.length; o < a; ) { var l = o++; r.push(i.data[l]); } var h; (h = null != r ? new GT(r) : null), Vb.context.uniformMatrix4fv(n, !s, h); }, setGLSLProgramConstantsFromVector4: function (e, t, s) { null == s && (s = 0); var n = Vb.context.getUniformLocation(this.currentProgram.glProgram, e); Vb.context.uniform4f(n, t[s], t[s + 1], t[s + 2], t[s + 3]); }, setGLSLTextureAt: function (e, t, s) { switch (s) { case 0: 33984 != Vb.currentActiveTexture && (Vb.context.activeTexture(33984), (Vb.currentActiveTexture = 33984)); break; case 1: 33985 != Vb.currentActiveTexture && (Vb.context.activeTexture(33985), (Vb.currentActiveTexture = 33985)); break; case 2: 33986 != Vb.currentActiveTexture && (Vb.context.activeTexture(33986), (Vb.currentActiveTexture = 33986)); break; case 3: 33987 != Vb.currentActiveTexture && (Vb.context.activeTexture(33987), (Vb.currentActiveTexture = 33987)); break; case 4: 33988 != Vb.currentActiveTexture && (Vb.context.activeTexture(33988), (Vb.currentActiveTexture = 33988)); break; case 5: 33989 != Vb.currentActiveTexture && (Vb.context.activeTexture(33989), (Vb.currentActiveTexture = 33989)); break; case 6: 33990 != Vb.currentActiveTexture && (Vb.context.activeTexture(33990), (Vb.currentActiveTexture = 33990)); break; case 7: 33991 != Vb.currentActiveTexture && (Vb.context.activeTexture(33991), (Vb.currentActiveTexture = 33991)); break; default: throw new Mp("Does not support texture8 or more"); } if (null == t) return ( null != Vb.currentBoundTexture[Vb.currentActiveTexture] && (Vb.context.bindTexture(3553, null), (Vb.currentBoundTexture[Vb.currentActiveTexture] = null)), void ( null != Vb.currentBoundTexture[Vb.currentActiveTexture] && (Vb.context.bindTexture(34067, null), (Vb.currentBoundTexture[Vb.currentActiveTexture] = null)) ) ); var n = Vb.context.getUniformLocation(this.currentProgram.glProgram, e); if (Lp.__instanceof(t, hv)) { var i = Lp.__cast(t, hv).glTexture; Vb.currentBoundTexture[Vb.currentActiveTexture] != i && (Vb.context.bindTexture(3553, i), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = i) || Vb.textureStateCache.exists(i) || Vb.textureStateCache.set(i, new lp())), Vb.context.uniform1i(n, s); } else if (Lp.__instanceof(t, lv)) { var r = Lp.__cast(t, lv).glTexture; Vb.currentBoundTexture[Vb.currentActiveTexture] != r && (Vb.context.bindTexture(3553, r), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = r) || Vb.textureStateCache.exists(r) || Vb.textureStateCache.set(r, new lp())), Vb.context.uniform1i(n, s); } else { if (!Lp.__instanceof(t, av)) throw new Mp( "Texture of type " + ms.getClassName(null == t ? null : Lp.getClass(t)) + " not supported yet" ); var o = Lp.__cast(t, av).glTexture; Vb.currentBoundTexture[Vb.currentActiveTexture] != o && (Vb.context.bindTexture(34067, o), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = o) || Vb.textureStateCache.exists(o) || Vb.textureStateCache.set(o, new lp())), Vb.context.uniform1i(n, s); } var a = this.samplerParameters[s]; null != a ? this.setTextureParameters(t, a.wrap, a.filter, a.mipfilter) : this.setTextureParameters(t, sv.CLAMP, Qw.NEAREST, Zw.MIPNONE); }, setGLSLVertexBufferAt: function (e, t, s, n) { null == s && (s = 0); var i = null != this.currentProgram && null != this.currentProgram.glProgram ? Vb.context.getAttribLocation(this.currentProgram.glProgram, e) : -1; if (-1 != i) if (null != t) { Vb.context.bindBuffer(34962, t.glBuffer); var r = 4, o = 5126, a = 4; if (n == tv.BYTES_4) (o = 5126), (a = r = 4); else if (n == tv.FLOAT_1) (r = 1), (o = 5126), (a = 4); else if (n == tv.FLOAT_2) (r = 2), (o = 5126), (a = 4); else if (n == tv.FLOAT_3) (r = 3), (o = 5126), (a = 4); else { if (n != tv.FLOAT_4) throw new Mp( "Buffer format " + Ue.string(n) + " is not supported" ); (o = 5126), (a = r = 4); } Vb.context.enableVertexAttribArray(i), Vb.context.vertexAttribPointer( i, r, o, !1, t.data32PerVertex * a, s * a ); } else -1 < i && Vb.context.disableVertexAttribArray(i); }, setProgram: function (e) { var t = null; null != e && (t = e.glProgram); var s = t; s != Vb.currentProgram && (Vb.context.useProgram(s), (s = Vb.currentProgram)), (this.currentProgram = e); }, setProgramConstantsFromByteArray: function (e, t, s, n, i) { n.position = i; for (var r = 0, o = s; r < o; ) { var a = r++, l = this.__getUniformLocationNameFromAgalRegisterIndex(e, t + a); this.setGLSLProgramConstantsFromByteArray(l, n); } }, setProgramConstantsFromMatrix: function (e, t, s, n) { null == n && (n = !1); var i = s.rawData; n ? (this.setProgramConstantsFromVector( e, t, [i.data[0], i.data[4], i.data[8], i.data[12]], 1 ), this.setProgramConstantsFromVector( e, t + 1, [i.data[1], i.data[5], i.data[9], i.data[13]], 1 ), this.setProgramConstantsFromVector( e, t + 2, [i.data[2], i.data[6], i.data[10], i.data[14]], 1 ), this.setProgramConstantsFromVector( e, t + 3, [i.data[3], i.data[7], i.data[11], i.data[15]], 1 )) : (this.setProgramConstantsFromVector( e, t, [i.data[0], i.data[1], i.data[2], i.data[3]], 1 ), this.setProgramConstantsFromVector( e, t + 1, [i.data[4], i.data[5], i.data[6], i.data[7]], 1 ), this.setProgramConstantsFromVector( e, t + 2, [i.data[8], i.data[9], i.data[10], i.data[11]], 1 ), this.setProgramConstantsFromVector( e, t + 3, [i.data[12], i.data[13], i.data[14], i.data[15]], 1 )); }, setProgramConstantsFromVector: function (e, t, s, n) { null == n && (n = 1); for (var i = 0, r = n; i < r; ) { var o = i++, a = 4 * o, l = this.__getUniformLocationNameFromAgalRegisterIndex(e, t + o); this.setGLSLProgramConstantsFromVector4(l, s, a); } }, setRenderMethod: function (t) { this.ogl.set_render(function (e) { t(null); }); }, setRenderToBackBuffer: function () { Vb.context.disable(2929), Vb.context.disable(2960), Vb.context.disable(3089), Vb.context.bindFramebuffer(36160, null), null != this.framebuffer && Vb.context.bindFramebuffer(36160, null), null != this.renderbuffer && Vb.context.bindRenderbuffer(36161, null), (this.renderToTexture = !1), this.updateBackBufferViewPort(), this.updateScissorRectangle(), this.updateDepthAndStencilState(); }, setRenderToTexture: function (e, t, s, n) { null == n && (n = 0), null == s && (s = 0), null == t && (t = !1), null == this.framebuffer && (this.framebuffer = Vb.context.createFramebuffer()), Vb.context.bindFramebuffer(36160, this.framebuffer), null == this.renderbuffer && (this.renderbuffer = Vb.context.createRenderbuffer()), Vb.context.bindRenderbuffer(36161, this.renderbuffer), t && Vb.context.renderbufferStorage(36161, 34041, e.width, e.height), Vb.context.framebufferTexture2D(36160, 36064, 3553, e.glTexture, 0), Vb.context.renderbufferStorage(36161, 34041, e.width, e.height), Vb.context.framebufferRenderbuffer( 36160, 33306, 36161, this.renderbuffer ), t && (Vb.context.enable(2929), Vb.context.enable(2960)); var i = e.glTexture; Vb.currentBoundTexture[Vb.currentActiveTexture] != i && (Vb.context.bindTexture(3553, i), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = i) || Vb.textureStateCache.exists(i) || Vb.textureStateCache.set(i, new lp())), Vb.context.texImage2D( 3553, 0, 6408, e.width, e.height, 0, 6408, 5121, null ); var r = Vb.currentBoundTexture[Vb.currentActiveTexture], o = Vb.textureStateCache.get(r); 9729 != o.h[10240] && (Vb.context.texParameteri(3553, 10240, 9729), (o.h[10240] = 9729)); var a = Vb.currentBoundTexture[Vb.currentActiveTexture], l = Vb.textureStateCache.get(a); 9985 != l.h[10241] && (Vb.context.texParameteri(3553, 10241, 9985), (l.h[10241] = 9985)), Vb.context.viewport(0, 0, e.width, e.height), (this.renderToTexture = !0), (this.rttDepthAndStencil = t), (this.rttWidth = e.width), (this.rttHeight = e.height); }, setSamplerStateAt: function (e, t, s, n) { if (!(0 <= e && e < Yw.MAX_SAMPLERS)) throw new Mp("Sampler is out of bounds."); (this.samplerParameters[e].wrap = t), (this.samplerParameters[e].filter = s), (this.samplerParameters[e].mipfilter = n); }, setScissorRectangle: function (e) { null != (this.scissorRectangle = e) ? (Vb.context.enable(3089), this.updateScissorRectangle()) : Vb.context.disable(3089); }, updateScissorRectangle: function () { if (null != this.scissorRectangle) { var e = this.renderToTexture ? this.rttHeight : 0 | this.scrollRect.height; Vb.context.scissor( 0 | this.scissorRectangle.x, (e - (0 | this.scissorRectangle.y) - (0 | this.scissorRectangle.height)) | 0, 0 | this.scissorRectangle.width, 0 | this.scissorRectangle.height ); } }, setStencilActions: function (e, t, s, n, i) { var r = t; (this.stencilCompareMode = r), Vb.context.stencilOp(s, n, i), Vb.context.stencilFunc( this.stencilCompareMode, this.stencilRef, this.stencilReadMask ); }, setStencilReferenceValue: function (e, t, s) { null == s && (s = 255), null == t && (t = 255), (this.stencilReadMask = t), (this.stencilRef = e), Vb.context.stencilFunc( this.stencilCompareMode, this.stencilRef, this.stencilReadMask ), Vb.context.stencilMask(s); }, setTextureAt: function (e, t) { var s = "fs" + e; this.setGLSLTextureAt(s, t, e); }, setTextureParameters: function (e, t, s, n) { if (!Yw.anisotropySupportTested) { var i = Vb.context.getExtension("EXT_texture_filter_anisotropic"); if ( ((null != i && null != De.field(i, "MAX_TEXTURE_MAX_ANISOTROPY_EXT")) || (i = Vb.context.getExtension( "MOZ_EXT_texture_filter_anisotropic" )), (null != i && null != De.field(i, "MAX_TEXTURE_MAX_ANISOTROPY_EXT")) || (i = Vb.context.getExtension( "WEBKIT_EXT_texture_filter_anisotropic" )), (Yw.supportsAnisotropy = null != i), Yw.supportsAnisotropy) ) { Yw.maxSupportedAnisotropy = Vb.context.getParameter( i.MAX_TEXTURE_MAX_ANISOTROPY_EXT ); var r = Yw.TEXTURE_MAX_ANISOTROPY_EXT, o = Yw.maxSupportedAnisotropy, a = Vb.currentBoundTexture[Vb.currentActiveTexture], l = Vb.textureStateCache.get(a); l.h[r] != o && (Vb.context.texParameteri(3553, r, o), (l.h[r] = o)); } Yw.anisotropySupportTested = !0; } if (Lp.__instanceof(e, hv)) { switch (t[1]) { case 0: var h = Vb.currentBoundTexture[Vb.currentActiveTexture], _ = Vb.textureStateCache.get(h); 33071 != _.h[10242] && (Vb.context.texParameteri(3553, 10242, 33071), (_.h[10242] = 33071)); var u = Vb.currentBoundTexture[Vb.currentActiveTexture], d = Vb.textureStateCache.get(u); 33071 != d.h[10243] && (Vb.context.texParameteri(3553, 10243, 33071), (d.h[10243] = 33071)); break; case 1: var c = Vb.currentBoundTexture[Vb.currentActiveTexture], f = Vb.textureStateCache.get(c); 10497 != f.h[10242] && (Vb.context.texParameteri(3553, 10242, 10497), (f.h[10242] = 10497)); var p = Vb.currentBoundTexture[Vb.currentActiveTexture], b = Vb.textureStateCache.get(p); 10497 != b.h[10243] && (Vb.context.texParameteri(3553, 10243, 10497), (b.h[10243] = 10497)); } switch (s[1]) { case 0: if (Yw.supportsAnisotropy) { var m = Yw.TEXTURE_MAX_ANISOTROPY_EXT, g = Gt.gt(2, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 2; Vb.context.texParameterf(3553, m, g); } break; case 1: if (Yw.supportsAnisotropy) { var w = Yw.TEXTURE_MAX_ANISOTROPY_EXT, v = Gt.gt(4, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 4; Vb.context.texParameterf(3553, w, v); } break; case 2: if (Yw.supportsAnisotropy) { var y = Yw.TEXTURE_MAX_ANISOTROPY_EXT, T = Gt.gt(8, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 8; Vb.context.texParameterf(3553, y, T); } break; case 3: if (Yw.supportsAnisotropy) { var S = Yw.TEXTURE_MAX_ANISOTROPY_EXT, x = Gt.gt(16, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 16; Vb.context.texParameterf(3553, S, x); } break; case 4: var E = Vb.currentBoundTexture[Vb.currentActiveTexture], P = Vb.textureStateCache.get(E); 9729 != P.h[10240] && (Vb.context.texParameteri(3553, 10240, 9729), (P.h[10240] = 9729)), Yw.supportsAnisotropy && Vb.context.texParameterf( 3553, Yw.TEXTURE_MAX_ANISOTROPY_EXT, 1 ); break; case 5: var R = Vb.currentBoundTexture[Vb.currentActiveTexture], A = Vb.textureStateCache.get(R); 9728 != A.h[10240] && (Vb.context.texParameteri(3553, 10240, 9728), (A.h[10240] = 9728)), Yw.supportsAnisotropy && Vb.context.texParameterf( 3553, Yw.TEXTURE_MAX_ANISOTROPY_EXT, 1 ); } switch (n[1]) { case 0: var I = Vb.currentBoundTexture[Vb.currentActiveTexture], C = Vb.textureStateCache.get(I); 9987 != C.h[10241] && (Vb.context.texParameteri(3553, 10241, 9987), (C.h[10241] = 9987)); break; case 1: var B = Vb.currentBoundTexture[Vb.currentActiveTexture], D = Vb.textureStateCache.get(B); 9984 != D.h[10241] && (Vb.context.texParameteri(3553, 10241, 9984), (D.h[10241] = 9984)); break; case 2: var k = s == Qw.NEAREST ? 9728 : 9729, F = Vb.currentBoundTexture[Vb.currentActiveTexture], M = Vb.textureStateCache.get(F); M.h[10241] != k && (Vb.context.texParameteri(3553, 10241, k), (M.h[10241] = k)); } var L = e; n == Zw.MIPNONE || L.mipmapsGenerated || (Vb.context.generateMipmap(3553), (L.mipmapsGenerated = !0)); } else if (Lp.__instanceof(e, lv)) { var N = Vb.currentBoundTexture[Vb.currentActiveTexture], O = Vb.textureStateCache.get(N); 33071 != O.h[10242] && (Vb.context.texParameteri(3553, 10242, 33071), (O.h[10242] = 33071)); var U = Vb.currentBoundTexture[Vb.currentActiveTexture], G = Vb.textureStateCache.get(U); switch ( (33071 != G.h[10243] && (Vb.context.texParameteri(3553, 10243, 33071), (G.h[10243] = 33071)), s[1]) ) { case 0: if (Yw.supportsAnisotropy) { var z = Yw.TEXTURE_MAX_ANISOTROPY_EXT, X = Gt.gt(2, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 2; Vb.context.texParameterf(3553, z, X); } break; case 1: if (Yw.supportsAnisotropy) { var H = Yw.TEXTURE_MAX_ANISOTROPY_EXT, V = Gt.gt(4, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 4; Vb.context.texParameterf(3553, H, V); } break; case 2: if (Yw.supportsAnisotropy) { var Y = Yw.TEXTURE_MAX_ANISOTROPY_EXT, W = Gt.gt(8, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 8; Vb.context.texParameterf(3553, Y, W); } break; case 3: if (Yw.supportsAnisotropy) { var j = Yw.TEXTURE_MAX_ANISOTROPY_EXT, K = Gt.gt(16, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 16; Vb.context.texParameterf(3553, j, K); } break; case 4: var q = Vb.currentBoundTexture[Vb.currentActiveTexture], Z = Vb.textureStateCache.get(q); 9729 != Z.h[10240] && (Vb.context.texParameteri(3553, 10240, 9729), (Z.h[10240] = 9729)), Yw.supportsAnisotropy && Vb.context.texParameterf( 3553, Yw.TEXTURE_MAX_ANISOTROPY_EXT, 1 ); break; case 5: var J = Vb.currentBoundTexture[Vb.currentActiveTexture], Q = Vb.textureStateCache.get(J); 9728 != Q.h[10240] && (Vb.context.texParameteri(3553, 10240, 9728), (Q.h[10240] = 9728)), Yw.supportsAnisotropy && Vb.context.texParameterf( 3553, Yw.TEXTURE_MAX_ANISOTROPY_EXT, 1 ); } var $ = s == Qw.NEAREST ? 9728 : 9729, ee = Vb.currentBoundTexture[Vb.currentActiveTexture], te = Vb.textureStateCache.get(ee); te.h[10241] != $ && (Vb.context.texParameteri(3553, 10241, $), (te.h[10241] = $)); } else { if (!Lp.__instanceof(e, av)) throw new Mp( "Texture of type " + ms.getClassName(null == e ? null : Lp.getClass(e)) + " not supported yet" ); switch (t[1]) { case 0: var se = Vb.currentBoundTexture[Vb.currentActiveTexture], ne = Vb.textureStateCache.get(se); 33071 != ne.h[10242] && (Vb.context.texParameteri(34067, 10242, 33071), (ne.h[10242] = 33071)); var ie = Vb.currentBoundTexture[Vb.currentActiveTexture], re = Vb.textureStateCache.get(ie); 33071 != re.h[10243] && (Vb.context.texParameteri(34067, 10243, 33071), (re.h[10243] = 33071)); break; case 1: var oe = Vb.currentBoundTexture[Vb.currentActiveTexture], ae = Vb.textureStateCache.get(oe); 10497 != ae.h[10242] && (Vb.context.texParameteri(34067, 10242, 10497), (ae.h[10242] = 10497)); var le = Vb.currentBoundTexture[Vb.currentActiveTexture], he = Vb.textureStateCache.get(le); 10497 != he.h[10243] && (Vb.context.texParameteri(34067, 10243, 10497), (he.h[10243] = 10497)); } switch (s[1]) { case 0: if (Yw.supportsAnisotropy) { var _e = Yw.TEXTURE_MAX_ANISOTROPY_EXT, ue = Gt.gt(2, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 2; Vb.context.texParameterf(34067, _e, ue); } break; case 1: if (Yw.supportsAnisotropy) { var de = Yw.TEXTURE_MAX_ANISOTROPY_EXT, ce = Gt.gt(4, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 4; Vb.context.texParameterf(34067, de, ce); } break; case 2: if (Yw.supportsAnisotropy) { var fe = Yw.TEXTURE_MAX_ANISOTROPY_EXT, pe = Gt.gt(8, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 8; Vb.context.texParameterf(34067, fe, pe); } break; case 3: if (Yw.supportsAnisotropy) { var be = Yw.TEXTURE_MAX_ANISOTROPY_EXT, me = Gt.gt(16, Yw.maxSupportedAnisotropy) ? Gt.toFloat(Yw.maxSupportedAnisotropy) : 16; Vb.context.texParameterf(34067, be, me); } break; case 4: var ge = Vb.currentBoundTexture[Vb.currentActiveTexture], we = Vb.textureStateCache.get(ge); 9729 != we.h[10240] && (Vb.context.texParameteri(34067, 10240, 9729), (we.h[10240] = 9729)), Yw.supportsAnisotropy && Vb.context.texParameterf( 34067, Yw.TEXTURE_MAX_ANISOTROPY_EXT, 1 ); break; case 5: var ve = Vb.currentBoundTexture[Vb.currentActiveTexture], ye = Vb.textureStateCache.get(ve); 9728 != ye.h[10240] && (Vb.context.texParameteri(34067, 10240, 9728), (ye.h[10240] = 9728)), Yw.supportsAnisotropy && Vb.context.texParameterf( 34067, Yw.TEXTURE_MAX_ANISOTROPY_EXT, 1 ); } switch (n[1]) { case 0: var Te = Vb.currentBoundTexture[Vb.currentActiveTexture], Se = Vb.textureStateCache.get(Te); 9987 != Se.h[10241] && (Vb.context.texParameteri(34067, 10241, 9987), (Se.h[10241] = 9987)); break; case 1: var xe = Vb.currentBoundTexture[Vb.currentActiveTexture], Ee = Vb.textureStateCache.get(xe); 9984 != Ee.h[10241] && (Vb.context.texParameteri(34067, 10241, 9984), (Ee.h[10241] = 9984)); break; case 2: var Pe = s == Qw.NEAREST ? 9728 : 9729, Re = Vb.currentBoundTexture[Vb.currentActiveTexture], Ae = Vb.textureStateCache.get(Re); Ae.h[10241] != Pe && (Vb.context.texParameteri(34067, 10241, Pe), (Ae.h[10241] = Pe)); } var Ie = e; n == Zw.MIPNONE || Ie.mipmapsGenerated || (Vb.context.generateMipmap(34067), (Ie.mipmapsGenerated = !0)); } }, setVertexBufferAt: function (e, t, s, n) { null == s && (s = 0); var i = "va" + e; this.setGLSLVertexBufferAt(i, t, s, n); }, __getUniformLocationNameFromAgalRegisterIndex: function (e, t) { if (e == Jw.VERTEX) return "vc" + t; if (e == Jw.FRAGMENT) return "fc" + t; throw new Mp("Program Type " + Ue.string(e) + " not supported"); }, __updateBlendStatus: function () { this.blendEnabled ? (Vb.context.enable(3042), Vb.context.blendEquation(32774), Vb.context.blendFunc( this.blendSourceFactor, this.blendDestinationFactor )) : Vb.context.disable(3042); }, __class__: Yw, }); var Ww = function () {}; ((s["openfl.display3D._Context3D.SamplerState"] = Ww).__name__ = [ "openfl", "display3D", "_Context3D", "SamplerState", ]), (Ww.prototype = { __class__: Ww }); var jw = (s["openfl.display3D.Context3DBufferUsage"] = { __ename__: ["openfl", "display3D", "Context3DBufferUsage"], __constructs__: ["STATIC_DRAW", "DYNAMIC_DRAW"], }); (jw.STATIC_DRAW = ["STATIC_DRAW", 0]), (jw.STATIC_DRAW.toString = c), ((jw.STATIC_DRAW.__enum__ = jw).DYNAMIC_DRAW = ["DYNAMIC_DRAW", 1]), (jw.DYNAMIC_DRAW.toString = c), (jw.DYNAMIC_DRAW.__enum__ = jw); var Kw = function () {}; (s["openfl.display3D.Context3DClearMask"] = Kw).__name__ = [ "openfl", "display3D", "Context3DClearMask", ]; var qw = {}; ((s["openfl.display3D._Context3DCompareMode.Context3DCompareMode_Impl_"] = qw).__name__ = [ "openfl", "display3D", "_Context3DCompareMode", "Context3DCompareMode_Impl_", ]), (qw._new = function (e) { return e; }), (qw.fromInt = function (e) { return e; }), (qw.toInt = function (e) { return e; }); var Zw = (s["openfl.display3D.Context3DMipFilter"] = { __ename__: ["openfl", "display3D", "Context3DMipFilter"], __constructs__: ["MIPLINEAR", "MIPNEAREST", "MIPNONE"], }); (Zw.MIPLINEAR = ["MIPLINEAR", 0]), (Zw.MIPLINEAR.toString = c), ((Zw.MIPLINEAR.__enum__ = Zw).MIPNEAREST = ["MIPNEAREST", 1]), (Zw.MIPNEAREST.toString = c), ((Zw.MIPNEAREST.__enum__ = Zw).MIPNONE = ["MIPNONE", 2]), (Zw.MIPNONE.toString = c), (Zw.MIPNONE.__enum__ = Zw); var Jw = (s["openfl.display3D.Context3DProgramType"] = { __ename__: ["openfl", "display3D", "Context3DProgramType"], __constructs__: ["VERTEX", "FRAGMENT"], }); (Jw.VERTEX = ["VERTEX", 0]), (Jw.VERTEX.toString = c), ((Jw.VERTEX.__enum__ = Jw).FRAGMENT = ["FRAGMENT", 1]), (Jw.FRAGMENT.toString = c), (Jw.FRAGMENT.__enum__ = Jw); var Qw = (s["openfl.display3D.Context3DTextureFilter"] = { __ename__: ["openfl", "display3D", "Context3DTextureFilter"], __constructs__: [ "ANISOTROPIC2X", "ANISOTROPIC4X", "ANISOTROPIC8X", "ANISOTROPIC16X", "LINEAR", "NEAREST", ], }); (Qw.ANISOTROPIC2X = ["ANISOTROPIC2X", 0]), (Qw.ANISOTROPIC2X.toString = c), ((Qw.ANISOTROPIC2X.__enum__ = Qw).ANISOTROPIC4X = ["ANISOTROPIC4X", 1]), (Qw.ANISOTROPIC4X.toString = c), ((Qw.ANISOTROPIC4X.__enum__ = Qw).ANISOTROPIC8X = ["ANISOTROPIC8X", 2]), (Qw.ANISOTROPIC8X.toString = c), ((Qw.ANISOTROPIC8X.__enum__ = Qw).ANISOTROPIC16X = ["ANISOTROPIC16X", 3]), (Qw.ANISOTROPIC16X.toString = c), ((Qw.ANISOTROPIC16X.__enum__ = Qw).LINEAR = ["LINEAR", 4]), (Qw.LINEAR.toString = c), ((Qw.LINEAR.__enum__ = Qw).NEAREST = ["NEAREST", 5]), (Qw.NEAREST.toString = c), (Qw.NEAREST.__enum__ = Qw); var $w = (s["openfl.display3D.Context3DTextureFormat"] = { __ename__: ["openfl", "display3D", "Context3DTextureFormat"], __constructs__: ["BGRA", "COMPRESSED", "COMPRESSED_ALPHA"], }); ($w.BGRA = ["BGRA", 0]), ($w.BGRA.toString = c), (($w.BGRA.__enum__ = $w).COMPRESSED = ["COMPRESSED", 1]), ($w.COMPRESSED.toString = c), (($w.COMPRESSED.__enum__ = $w).COMPRESSED_ALPHA = ["COMPRESSED_ALPHA", 2]), ($w.COMPRESSED_ALPHA.toString = c), ($w.COMPRESSED_ALPHA.__enum__ = $w); var ev = {}; ((s["openfl.display3D._Context3DTriangleFace.Context3DTriangleFace_Impl_"] = ev).__name__ = [ "openfl", "display3D", "_Context3DTriangleFace", "Context3DTriangleFace_Impl_", ]), (ev._new = function (e) { return e; }), (ev.fromInt = function (e) { return e; }), (ev.toInt = function (e) { return e; }); var tv = (s["openfl.display3D.Context3DVertexBufferFormat"] = { __ename__: ["openfl", "display3D", "Context3DVertexBufferFormat"], __constructs__: ["BYTES_4", "FLOAT_1", "FLOAT_2", "FLOAT_3", "FLOAT_4"], }); (tv.BYTES_4 = ["BYTES_4", 0]), (tv.BYTES_4.toString = c), ((tv.BYTES_4.__enum__ = tv).FLOAT_1 = ["FLOAT_1", 1]), (tv.FLOAT_1.toString = c), ((tv.FLOAT_1.__enum__ = tv).FLOAT_2 = ["FLOAT_2", 2]), (tv.FLOAT_2.toString = c), ((tv.FLOAT_2.__enum__ = tv).FLOAT_3 = ["FLOAT_3", 3]), (tv.FLOAT_3.toString = c), ((tv.FLOAT_3.__enum__ = tv).FLOAT_4 = ["FLOAT_4", 4]), (tv.FLOAT_4.toString = c), (tv.FLOAT_4.__enum__ = tv); var sv = (s["openfl.display3D.Context3DWrapMode"] = { __ename__: ["openfl", "display3D", "Context3DWrapMode"], __constructs__: ["CLAMP", "REPEAT"], }); (sv.CLAMP = ["CLAMP", 0]), (sv.CLAMP.toString = c), ((sv.CLAMP.__enum__ = sv).REPEAT = ["REPEAT", 1]), (sv.REPEAT.toString = c), (sv.REPEAT.__enum__ = sv); var nv = function (e, t, s, n) { (this.context = e), (this.glBuffer = t), (this.numIndices = s), (this.bufferUsage = n); }; ((s["openfl.display3D.IndexBuffer3D"] = nv).__name__ = [ "openfl", "display3D", "IndexBuffer3D", ]), (nv.prototype = { dispose: function () { this.context.__deleteIndexBuffer(this); }, uploadFromByteArray: function (e, t, s, n) { Vb.context.bindBuffer(34963, this.glBuffer); var i, r = 2 * n, o = t + 2 * s; (i = null != r ? new Int16Array(r) : null), (e.position = o); for (var a = 0; e.position < r + o; ) (i[a] = e.readUnsignedByte()), ++a; Vb.context.bufferData(34963, i, this.bufferUsage); }, uploadFromVector: function (e, t, s) { var n; Vb.context.bindBuffer(34963, this.glBuffer), (n = null != s ? new Int16Array(s) : null); for (var i = t, r = t + s; i < r; ) { var o = i++; n[o] = e.data[o]; } Vb.context.bufferData(34963, n, this.bufferUsage); }, uploadFromInt16Array: function (e) { Vb.context.bindBuffer(34963, this.glBuffer), Vb.context.bufferData(34963, e, this.bufferUsage); }, __class__: nv, }); var iv = function (e, t) { (this.context = e), (this.glProgram = t), (this.glFCLocationMap = []), (this.glVCLocationMap = []), (this.glFSLocationMap = []), (this.glVALocationMap = []); }; ((s["openfl.display3D.Program3D"] = iv).__name__ = [ "openfl", "display3D", "Program3D", ]), (iv.prototype = { dispose: function () { this.context.__deleteProgram(this); }, upload: function (e, t) { if ( (Vb.context.attachShader(this.glProgram, e), Vb.context.attachShader(this.glProgram, t), Vb.context.linkProgram(this.glProgram), 0 == Vb.context.getProgramParameter(this.glProgram, 35714)) ) { var s = Vb.context.getProgramInfoLog(this.glProgram); if ("" != s) throw new Mp(s); } for ( var n = 0, i = Vb.context.getProgramParameter(this.glProgram, 35718); n < i; ) { var r = n++, o = Vb.context.getActiveUniform(this.glProgram, r), a = Vb.context.getUniformLocation(this.glProgram, o.name); if (null == this.yFlip && "yflip" == o.name) this.yFlip = a; else { var l = he.substr(o.name, 0, 2), h = Ue.parseInt(he.substr(o.name, 2, null)); switch (l) { case "fc": this.glFCLocationMap[h] = a; break; case "fs": this.glFSLocationMap[h] = a; break; case "vc": this.glVCLocationMap[h] = a; } } } for ( var _ = 0, u = Vb.context.getProgramParameter(this.glProgram, 35721); _ < u; ) { var d = _++, c = Vb.context.getActiveAttrib(this.glProgram, d), f = he.substr(c.name, 0, 2), p = Ue.parseInt(he.substr(c.name, 2, null)); "va" == f && (this.glVALocationMap[p] = d); } }, yFlipLoc: function () { return this.yFlip; }, fsUniformLocationFromAgal: function (e) { return this.glFCLocationMap[e]; }, vsUniformLocationFromAgal: function (e) { return this.glVCLocationMap[e]; }, fsampUniformLocationFromAgal: function (e) { return this.glFSLocationMap[e]; }, vaUniformLocationFromAgal: function (e) { return this.glVALocationMap[e]; }, constUniformLocationFromAgal: function (e, t) { return e == Jw.VERTEX ? this.glVCLocationMap[t] : this.glFCLocationMap[t]; }, __class__: iv, }); var rv = function (e, t, s, n, i) { (this.context = e), (this.glBuffer = t), (this.numVertices = s), (this.data32PerVertex = n), (this.bufferUsage = i); }; ((s["openfl.display3D.VertexBuffer3D"] = rv).__name__ = [ "openfl", "display3D", "VertexBuffer3D", ]), (rv.prototype = { dispose: function () { this.context.__deleteVertexBuffer(this); }, uploadFromByteArray: function (e, t, s, n) { var i = 4 * this.data32PerVertex; Vb.context.bindBuffer(34962, this.glBuffer); var r, o = n * i, a = t + s * i; (r = null != o ? new GT(o) : null), (e.position = a); for (var l = 0; e.position < o + a; ) (r[l] = e.readUnsignedByte()), ++l; Vb.context.bufferData(34962, r, this.bufferUsage); }, uploadFromFloat32Array: function (e, t, s) { Vb.context.bindBuffer(34962, this.glBuffer), Vb.context.bufferData(34962, e, this.bufferUsage); }, uploadFromVector: function (e, t, s) { Vb.context.bindBuffer(34962, this.glBuffer); var n, i = s * this.data32PerVertex; if (0 == t && i == e.length) n = new GT(e.data); else { n = null != i ? new GT(i) : null; for (var r = t, o = t + i; r < o; ) { var a = r++; n[a] = e.data[a]; } } Vb.context.bufferData(34962, n, this.bufferUsage), (n = null); }, __class__: rv, }); var ov = function (e, t, s, n) { null == n && (n = 0), null == s && (s = 0), g.call(this), (this.context = e), (this.width = s), (this.height = n), (this.glTexture = t); }; ((s["openfl.display3D.textures.TextureBase"] = ov).__name__ = [ "openfl", "display3D", "textures", "TextureBase", ]), (ov.__super__ = g), (ov.prototype = n(g.prototype, { dispose: function () { this.context.__deleteTexture(this); }, __class__: ov, })); var av = function (e, t, s) { ov.call(this, e, t, s, s), (this.size = s), (this.mipmapsGenerated = !1), (this._textures = []); for (var n = 0; n < 6; ) { var i = n++; this._textures[i] = Vb.context.createTexture(); } }; ((s["openfl.display3D.textures.CubeTexture"] = av).__name__ = [ "openfl", "display3D", "textures", "CubeTexture", ]), (av.__super__ = ov), (av.prototype = n(ov.prototype, { glTextureAt: function (e) { return this._textures[e]; }, uploadCompressedTextureFromByteArray: function (e, t, s) { null == s && (s = !1); }, uploadFromBitmapData: function (e, t, s) { null == s && (s = 0); var n = e.get_image().get_data(), i = this.glTexture; switch ( (Vb.currentBoundTexture[Vb.currentActiveTexture] != i && (Vb.context.bindTexture(34067, i), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = i) || Vb.textureStateCache.exists(i) || Vb.textureStateCache.set(i, new lp())), t) ) { case 0: Vb.context.texImage2D( 34069, s, 6408, e.physicalWidth, e.physicalHeight, 0, 6408, 5121, n ); break; case 1: Vb.context.texImage2D( 34070, s, 6408, e.physicalWidth, e.physicalHeight, 0, 6408, 5121, n ); break; case 2: Vb.context.texImage2D( 34071, s, 6408, e.physicalWidth, e.physicalHeight, 0, 6408, 5121, n ); break; case 3: Vb.context.texImage2D( 34072, s, 6408, e.physicalWidth, e.physicalHeight, 0, 6408, 5121, n ); break; case 4: Vb.context.texImage2D( 34073, s, 6408, e.physicalWidth, e.physicalHeight, 0, 6408, 5121, n ); break; case 5: Vb.context.texImage2D( 34074, s, 6408, e.physicalWidth, e.physicalHeight, 0, 6408, 5121, n ); break; default: throw new Mp("unknown side type"); } null != Vb.currentBoundTexture[Vb.currentActiveTexture] && (Vb.context.bindTexture(34067, null), (Vb.currentBoundTexture[Vb.currentActiveTexture] = null)); }, uploadFromByteArray: function (e, t, s, n) { null == n && (n = 0); }, __class__: av, })); var lv = function (e, t, s, n, i) { (this.optimizeForRenderToTexture = s), null == this.optimizeForRenderToTexture && (this.optimizeForRenderToTexture = !1), ov.call(this, e, t, n, i); }; ((s["openfl.display3D.textures.RectangleTexture"] = lv).__name__ = [ "openfl", "display3D", "textures", "RectangleTexture", ]), (lv.__super__ = ov), (lv.prototype = n(ov.prototype, { uploadFromBitmapData: function (e, t) { null == t && (t = 0); var s = jy.fromArrayBuffer(e.get_image().get_data().buffer); (this.width = e.physicalWidth), (this.height = e.physicalHeight), this.uploadFromByteArray(s, 0); }, uploadFromByteArray: function (e, t) { var s = this.glTexture; Vb.currentBoundTexture[Vb.currentActiveTexture] != s && (Vb.context.bindTexture(3553, s), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = s) || Vb.textureStateCache.exists(s) || Vb.textureStateCache.set(s, new lp())), this.optimizeForRenderToTexture && Vb.context.pixelStorei(37440, 1); var n = Vb.currentBoundTexture[Vb.currentActiveTexture], i = Vb.textureStateCache.get(n); 9728 != i.h[10240] && (Vb.context.texParameteri(3553, 10240, 9728), (i.h[10240] = 9728)); var r = Vb.currentBoundTexture[Vb.currentActiveTexture], o = Vb.textureStateCache.get(r); 9728 != o.h[10241] && (Vb.context.texParameteri(3553, 10241, 9728), (o.h[10241] = 9728)); var a = Vb.currentBoundTexture[Vb.currentActiveTexture], l = Vb.textureStateCache.get(a); 33071 != l.h[10242] && (Vb.context.texParameteri(3553, 10242, 33071), (l.h[10242] = 33071)); var h = Vb.currentBoundTexture[Vb.currentActiveTexture], _ = Vb.textureStateCache.get(h); 33071 != _.h[10243] && (Vb.context.texParameteri(3553, 10243, 33071), (_.h[10243] = 33071)); var u = jy.get_length(e), d = null != u ? new zT(u) : null; e.position = t; for (var c = 0; e.position < jy.get_length(e); ) (d[c] = e.readUnsignedByte()), ++c; Vb.context.texImage2D( 3553, 0, 6408, this.width, this.height, 0, 6408, 5121, d ), null != Vb.currentBoundTexture[Vb.currentActiveTexture] && (Vb.context.bindTexture(3553, null), (Vb.currentBoundTexture[Vb.currentActiveTexture] = null)); }, __class__: lv, })); var hv = function (e, t, s, n, i) { (this.optimizeForRenderToTexture = s), (this.mipmapsGenerated = !1), -1 == hv.internalFormat && (hv.internalFormat = 6408), null == this.optimizeForRenderToTexture && (this.optimizeForRenderToTexture = !1), ov.call(this, e, t, n, i); }; ((s["openfl.display3D.textures.Texture"] = hv).__name__ = [ "openfl", "display3D", "textures", "Texture", ]), (hv.__super__ = ov), (hv.prototype = n(ov.prototype, { uploadCompressedTextureFromByteArray: function (e, t, s) { null == s && (s = !1); }, uploadFromBitmapData: function (e, t) { null == t && (t = 0); var s = e.get_image(); (this.width = s.width), (this.height = s.height); var n = this.glTexture; Vb.currentBoundTexture[Vb.currentActiveTexture] != n && (Vb.context.bindTexture(3553, n), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = n) || Vb.textureStateCache.exists(n) || Vb.textureStateCache.set(n, new lp())), Vb.context.pixelStorei(37440, 1); var i = s, r = !i.get_premultiplied() && i.get_transparent() ? 1 : 0; Vb.context.pixelStorei(37441, r); var o = i.buffer.get_glCompatibleBuffer(); if (null == o) { var a = hv.internalFormat, l = this.width, h = this.height, _ = hv.internalFormat, u = i.get_data(); Vb.context.texImage2D(3553, 0, a, l, h, 0, _, 5121, u); } else Vb.context.texImage2D( 3553, 0, hv.internalFormat, hv.internalFormat, 5121, o ); null != Vb.currentBoundTexture[Vb.currentActiveTexture] && (Vb.context.bindTexture(3553, null), (Vb.currentBoundTexture[Vb.currentActiveTexture] = null)), Vb.context.pixelStorei(37440, 0), (s.dirty = !1); }, uploadFromByteArray: function (e, t, s) { null == s && (s = 0); var n = jy.get_length(e), i = null != n ? new zT(n) : null; e.position = t; for (var r = 0; e.position < jy.get_length(e); ) (i[r] = e.readUnsignedByte()), ++r; this.uploadFromUInt8Array(i, s); }, uploadFromUInt8Array: function (e, t) { null == t && (t = 0); var s = this.glTexture; if ( (Vb.currentBoundTexture[Vb.currentActiveTexture] != s && (Vb.context.bindTexture(3553, s), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = s) || Vb.textureStateCache.exists(s) || Vb.textureStateCache.set(s, new lp())), Vb.context.pixelStorei(37440, 1), this.optimizeForRenderToTexture) ) { var n = Vb.currentBoundTexture[Vb.currentActiveTexture], i = Vb.textureStateCache.get(n); 9728 != i.h[10240] && (Vb.context.texParameteri(3553, 10240, 9728), (i.h[10240] = 9728)); var r = Vb.currentBoundTexture[Vb.currentActiveTexture], o = Vb.textureStateCache.get(r); 9728 != o.h[10241] && (Vb.context.texParameteri(3553, 10241, 9728), (o.h[10241] = 9728)); var a = Vb.currentBoundTexture[Vb.currentActiveTexture], l = Vb.textureStateCache.get(a); 33071 != l.h[10242] && (Vb.context.texParameteri(3553, 10242, 33071), (l.h[10242] = 33071)); var h = Vb.currentBoundTexture[Vb.currentActiveTexture], _ = Vb.textureStateCache.get(h); 33071 != _.h[10243] && (Vb.context.texParameteri(3553, 10243, 33071), (_.h[10243] = 33071)); } Vb.context.texImage2D( 3553, t, hv.internalFormat, this.width, this.height, 0, hv.internalFormat, 5121, e ), null != Vb.currentBoundTexture[Vb.currentActiveTexture] && (Vb.context.bindTexture(3553, null), (Vb.currentBoundTexture[Vb.currentActiveTexture] = null)), Vb.context.pixelStorei(37440, 0); }, __class__: hv, })); var _v = function (e, t) { null == t && (t = 0), null == e && (e = ""), (this.message = e), (this.errorID = t), (this.name = "Error"); }; ((s["openfl.errors.Error"] = _v).__name__ = ["openfl", "errors", "Error"]), (_v.prototype = { getStackTrace: function () { return jf.toString(jf.exceptionStack()); }, toString: function () { return null != this.message ? this.message : "Error"; }, __class__: _v, }); var uv = function (e) { null == e && (e = ""), _v.call(this, e), (this.name = "ArgumentError"); }; ((s["openfl.errors.ArgumentError"] = uv).__name__ = [ "openfl", "errors", "ArgumentError", ]), (uv.__super__ = _v), (uv.prototype = n(_v.prototype, { __class__: uv })); var dv = function (e) { null == e && (e = ""), _v.call(this, e), (this.name = "IOError"); }; ((s["openfl.errors.IOError"] = dv).__name__ = [ "openfl", "errors", "IOError", ]), (dv.__super__ = _v), (dv.prototype = n(_v.prototype, { __class__: dv })); var cv = function () { dv.call(this, "End of file was encountered"), (this.name = "EOFError"), (this.errorID = 2030); }; ((s["openfl.errors.EOFError"] = cv).__name__ = [ "openfl", "errors", "EOFError", ]), (cv.__super__ = dv), (cv.prototype = n(dv.prototype, { __class__: cv })); var fv = function (e) { null == e && (e = ""), _v.call(this, e, 0), (this.name = "RangeError"); }; ((s["openfl.errors.RangeError"] = fv).__name__ = [ "openfl", "errors", "RangeError", ]), (fv.__super__ = _v), (fv.prototype = n(_v.prototype, { __class__: fv })); var pv = function (e) { null == e && (e = ""), _v.call(this, e, 0), (this.name = "TypeError"); }; ((s["openfl.errors.TypeError"] = pv).__name__ = [ "openfl", "errors", "TypeError", ]), (pv.__super__ = _v), (pv.prototype = n(_v.prototype, { __class__: pv })); var bv = function (e, t, s, n) { null == n && (n = !1), null == s && (s = !1), null == t && (t = !1), _a.call(this, e, t, s), (this.activating = n); }; ((s["openfl.events.ActivityEvent"] = bv).__name__ = [ "openfl", "events", "ActivityEvent", ]), (bv.__super__ = _a), (bv.prototype = n(_a.prototype, { clone: function () { var e = new bv( this.type, this.bubbles, this.cancelable, this.activating ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("ActivityEvent", [ "type", "bubbles", "cancelable", "activating", ]); }, __class__: bv, })); var mv = function (e, t, s, n) { null == n && (n = ""), null == s && (s = !1), null == t && (t = !1), _a.call(this, e, t, s), (this.text = n); }; ((s["openfl.events.TextEvent"] = mv).__name__ = [ "openfl", "events", "TextEvent", ]), (mv.__super__ = _a), (mv.prototype = n(_a.prototype, { clone: function () { var e = new mv(this.type, this.bubbles, this.cancelable, this.text); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("TextEvent", [ "type", "bubbles", "cancelable", "text", ]); }, __class__: mv, })); var gv = function (e, t, s, n, i) { null == i && (i = 0), null == n && (n = ""), null == s && (s = !1), null == t && (t = !1), mv.call(this, e, t, s, n), (this.errorID = i); }; ((s["openfl.events.ErrorEvent"] = gv).__name__ = [ "openfl", "events", "ErrorEvent", ]), (gv.__super__ = mv), (gv.prototype = n(mv.prototype, { clone: function () { var e = new gv( this.type, this.bubbles, this.cancelable, this.text, this.errorID ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("ErrorEvent", [ "type", "bubbles", "cancelable", "text", "errorID", ]); }, __class__: gv, })); var wv = function (e, t, s) { (this.callback = e), (this.useCapture = t), (this.priority = s); }; ((s["openfl.events._EventDispatcher.Listener"] = wv).__name__ = [ "openfl", "events", "_EventDispatcher", "Listener", ]), (wv.prototype = { match: function (e, t) { return !!De.compareMethods(this.callback, e) && this.useCapture == t; }, callCallback: function (e) { this.callback.apply(this, [e]); }, __class__: wv, }); var vv = function (e, t, s, n, i, r) { null == r && (r = 0), null == i && (i = !1), null == s && (s = !1), null == t && (t = !1), _a.call(this, e, t, s), (this.keyCode = r), (this.shiftKey = i), (this.relatedObject = n); }; ((s["openfl.events.FocusEvent"] = vv).__name__ = [ "openfl", "events", "FocusEvent", ]), (vv.__super__ = _a), (vv.prototype = n(_a.prototype, { clone: function () { var e = new vv( this.type, this.bubbles, this.cancelable, this.relatedObject, this.shiftKey, this.keyCode ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("FocusEvent", [ "type", "bubbles", "cancelable", "relatedObject", "shiftKey", "keyCode", ]); }, __class__: vv, })); var yv = function (e, t, s, n, i) { null == i && (i = !1), null == n && (n = !1), null == s && (s = !1), null == t && (t = !1), bv.call(this, e, t, s), (this.fullScreen = n), (this.interactive = i); }; ((s["openfl.events.FullScreenEvent"] = yv).__name__ = [ "openfl", "events", "FullScreenEvent", ]), (yv.__super__ = bv), (yv.prototype = n(bv.prototype, { clone: function () { var e = new yv( this.type, this.bubbles, this.cancelable, this.fullScreen, this.interactive ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("FullscreenEvent", [ "type", "bubbles", "cancelable", "fullscreen", "interactive", ]); }, __class__: yv, })); var Tv = function (e, t, s, n) { null == s && (s = !1), null == t && (t = !0), _a.call(this, e, t, s), (this.device = n); }; ((s["openfl.events.GameInputEvent"] = Tv).__name__ = [ "openfl", "events", "GameInputEvent", ]), (Tv.__super__ = _a), (Tv.prototype = n(_a.prototype, { clone: function () { var e = new Tv(this.type, this.bubbles, this.cancelable, this.device); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("GameInputEvent", [ "type", "bubbles", "cancelable", "device", ]); }, __class__: Tv, })); var Sv = function (e, t, s, n, i) { null == i && (i = !1), null == n && (n = 0), null == s && (s = !1), null == t && (t = !1), (this.status = n), (this.redirected = i), _a.call(this, e, t, s); }; ((s["openfl.events.HTTPStatusEvent"] = Sv).__name__ = [ "openfl", "events", "HTTPStatusEvent", ]), (Sv.__super__ = _a), (Sv.prototype = n(_a.prototype, { clone: function () { var e = new Sv( this.type, this.bubbles, null, this.status, this.redirected ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("HTTPStatusEvent", [ "type", "bubbles", "cancelable", "status", "redirected", ]); }, __class__: Sv, })); var xv = function (e, t, s, n, i) { null == i && (i = 0), null == n && (n = ""), null == s && (s = !1), null == t && (t = !0), gv.call(this, e, t, s, n, i); }; ((s["openfl.events.IOErrorEvent"] = xv).__name__ = [ "openfl", "events", "IOErrorEvent", ]), (xv.__super__ = gv), (xv.prototype = n(gv.prototype, { clone: function () { var e = new xv( this.type, this.bubbles, this.cancelable, this.text, this.errorID ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("IOErrorEvent", [ "type", "bubbles", "cancelable", "text", "errorID", ]); }, __class__: xv, })); var Ev = function (e, t, s, n, i, r, o, a, l, h, _) { null == _ && (_ = !1), null == h && (h = !1), null == l && (l = !1), null == a && (a = !1), null == o && (o = !1), null == i && (i = 0), null == n && (n = 0), null == s && (s = !1), null == t && (t = !1), _a.call(this, e, t, s), (this.charCode = n), (this.keyCode = i), (this.keyLocation = null != r ? r : 0), (this.ctrlKey = o), (this.altKey = a), (this.shiftKey = l), (this.controlKey = h), (this.commandKey = _); }; ((s["openfl.events.KeyboardEvent"] = Ev).__name__ = [ "openfl", "events", "KeyboardEvent", ]), (Ev.__super__ = _a), (Ev.prototype = n(_a.prototype, { clone: function () { var e = new Ev( this.type, this.bubbles, this.cancelable, this.charCode, this.keyCode, this.keyLocation, this.ctrlKey, this.altKey, this.shiftKey, this.controlKey, this.commandKey ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("KeyboardEvent", [ "type", "bubbles", "cancelable", "charCode", "keyCode", "keyLocation", "ctrlKey", "altKey", "shiftKey", ]); }, __class__: Ev, })); var Pv = function (e, t, s) { null == s && (s = !1), null == t && (t = !0), null == e && (e = "unset"), _a.call(this, e, t, s); }; ((s["openfl.events.MouseEvent"] = Pv).__name__ = [ "openfl", "events", "MouseEvent", ]), (Pv.__altKey = null), (Pv.__buttonDown = null), (Pv.__commandKey = null), (Pv.__ctrlKey = null), (Pv.__shiftKey = null), (Pv.__create = function (e, t, s, n, i, r, o) { switch ( (null == o && (o = 0), null == s && (s = 0), null == t && (t = 0), e) ) { case "mouseDown": Pv.__buttonDown = !0; break; case "mouseUp": Pv.__buttonDown = !1; } var a = Pv.pool.get(); return ( (a.target = null), (a.currentTarget = null), (a.__isCanceled = !1), (a.__isCanceledNow = !1), (a.__preventDefault = !1), (a.__fromPool = !0), (a.__refcount = 0), (a.eventPhase = 2), (a.type = e), (a.bubbles = !0), (a.cancelable = !1), (a.altKey = Pv.__altKey), (a.ctrlKey = Pv.__ctrlKey), (a.shiftKey = Pv.__shiftKey), (a.relatedObject = null), (a.delta = o), (a.localY = null == n ? (a.localX = 0) : ((a.localX = n.x), n.y)), (a.buttonDown = Pv.__buttonDown), (a.commandKey = Pv.__commandKey), (a.clickCount = 0), (a.stageX = t), (a.stageY = s), null != r && ((a.scaledStageX = t * r.get_scaleX()), (a.scaledStageY = s * r.get_scaleY())), (a.target = i), a ); }), (Pv.isMouseEvent = function (e) { return ( "click" == e || "doubleClick" == e || "middleClick" == e || "middleMouseDown" == e || "middleMouseUp" == e || "mouseDown" == e || "mouseMove" == e || "mouseOut" == e || "mouseOver" == e || "mouseUp" == e || "mouseWheel" == e || "rightClick" == e || "rightMouseDown" == e || "rightMouseUp" == e || "rollOut" == e || "rollOver" == e || "touchBegin" == e || "touchMove" == e || "touchEnd" == e ); }), (Pv.__super__ = _a), (Pv.prototype = n(_a.prototype, { toString: function () { return this.__formatToString("MouseEvent", [ "type", "bubbles", "cancelable", "localX", "localY", "relatedObject", "ctrlKey", "altKey", "shiftKey", "buttonDown", "delta", ]); }, updateAfterEvent: function () {}, release: function () { 0 == --this.__refcount && this.__fromPool && ((this.__refcount = -1), (this.__fromPool = !1), Pv.pool.put(this)); }, __class__: Pv, })); var Rv = function (e, t, s, n) { null == s && (s = !1), null == t && (t = !1), (this.info = n), _a.call(this, e, t, s); }; ((s["openfl.events.NetStatusEvent"] = Rv).__name__ = [ "openfl", "events", "NetStatusEvent", ]), (Rv.__super__ = _a), (Rv.prototype = n(_a.prototype, { clone: function () { var e = new Rv(this.type, this.bubbles, this.cancelable, this.info); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("NetStatusEvent", [ "type", "bubbles", "cancelable", "info", ]); }, __class__: Rv, })); var Av = function (e, t, s, n, i) { null == i && (i = 0), null == n && (n = 0), null == s && (s = !1), null == t && (t = !1), _a.call(this, e, t, s), (this.bytesLoaded = n), (this.bytesTotal = i); }; ((s["openfl.events.ProgressEvent"] = Av).__name__ = [ "openfl", "events", "ProgressEvent", ]), (Av.__super__ = _a), (Av.prototype = n(_a.prototype, { clone: function () { var e = new Av( this.type, this.bubbles, this.cancelable, this.bytesLoaded, this.bytesTotal ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("ProgressEvent", [ "type", "bubbles", "cancelable", "bytesLoaded", "bytesTotal", ]); }, __class__: Av, })); var Iv = function (e, t, s, n, i) { null == i && (i = 0), null == n && (n = ""), null == s && (s = !1), null == t && (t = !1), gv.call(this, e, t, s, n, i); }; ((s["openfl.events.SecurityErrorEvent"] = Iv).__name__ = [ "openfl", "events", "SecurityErrorEvent", ]), (Iv.__super__ = gv), (Iv.prototype = n(gv.prototype, { clone: function () { var e = new Iv( this.type, this.bubbles, this.cancelable, this.text, this.errorID ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("SecurityErrorEvent", [ "type", "bubbles", "cancelable", "text", "errorID", ]); }, __class__: Iv, })); var Cv = function (e, t, s) { null == s && (s = !1), null == t && (t = !1), _a.call(this, e, t, s); }; ((s["openfl.events.TimerEvent"] = Cv).__name__ = [ "openfl", "events", "TimerEvent", ]), (Cv.__super__ = _a), (Cv.prototype = n(_a.prototype, { clone: function () { var e = new Cv(this.type, this.bubbles, this.cancelable); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("TimerEvent", [ "type", "bubbles", "cancelable", ]); }, updateAfterEvent: function () {}, __class__: Cv, })); var Bv = function ( e, t, s, n, i, r, o, a, l, h, _, u, d, c, f, p, b, m, g, w ) { null == w && (w = !1), null == b && (b = 0), null == p && (p = !1), null == f && (f = !1), null == c && (c = !1), null == d && (d = !1), null == u && (u = !1), null == h && (h = 0), null == l && (l = 0), null == a && (a = 0), null == o && (o = 0), null == r && (r = 0), null == i && (i = !1), null == n && (n = 0), null == s && (s = !1), null == t && (t = !0), _a.call(this, e, t, s), (this.touchPointID = n), (this.isPrimaryTouchPoint = i), (this.localX = r), (this.localY = o), (this.sizeX = a), (this.sizeY = l), (this.pressure = h), (this.relatedObject = _), (this.ctrlKey = u), (this.altKey = d), (this.shiftKey = c), (this.commandKey = f), (this.controlKey = p); }; ((s["openfl.events.TouchEvent"] = Bv).__name__ = [ "openfl", "events", "TouchEvent", ]), (Bv.__create = function (e, t, s, n, i, r) { var o = new Bv(e, !0, !1, 0, !0, i.x, i.y, 1, 1, 1); return (o.stageX = s), (o.stageY = n), (o.target = r), o; }), (Bv.__super__ = _a), (Bv.prototype = n(_a.prototype, { clone: function () { var e = new Bv( this.type, this.bubbles, this.cancelable, this.touchPointID, this.isPrimaryTouchPoint, this.localX, this.localY, this.sizeX, this.sizeY, this.pressure, this.relatedObject, this.ctrlKey, this.altKey, this.shiftKey, this.commandKey, this.controlKey ); return ( (e.target = this.target), (e.currentTarget = this.currentTarget), (e.eventPhase = this.eventPhase), e ); }, toString: function () { return this.__formatToString("TouchEvent", [ "type", "bubbles", "cancelable", "touchPointID", "isPrimaryTouchPoint", "localX", "localY", "sizeX", "sizeY", "pressure", "relatedObject", "ctrlKey", "altKey", "shiftKey", "commandKey", "controlKey", ]); }, updateAfterEvent: function () {}, __class__: Bv, })); var Dv = function () { g.call(this); }; ((s["openfl.events.UncaughtErrorEvents"] = Dv).__name__ = [ "openfl", "events", "UncaughtErrorEvents", ]), (Dv.__super__ = g), (Dv.prototype = n(g.prototype, { __class__: Dv })); var kv = function () {}; ((s["openfl.filters.BitmapFilter"] = kv).__name__ = [ "openfl", "filters", "BitmapFilter", ]), (kv.__applyFilters = function (e, t, s) { if (!s.__usingPingPongTexture) throw new Mp(":TODO: unsupported mode"); for (var n = 0; n < e.length; ) { var i = e[n]; ++n; for (var r = i.__getCommands(s), o = 0; o < r.length; ) { var a = r[o]; switch ((++o, a[1])) { case 0: var l = a[9], h = a[8], _ = a[7], u = a[6], d = a[5], c = a[4], f = a[3], p = a[2], b = qm.pool.get(); (b.x = h * Math.cos((l * Math.PI) / 180)), (b.y = h * Math.sin((l * Math.PI) / 180)), Yv.apply(t, p, f, c, d, u, _, b), qm.pool.put(b); break; case 1: var m = a[6], g = a[5], w = a[4], v = a[3], y = a[2], T = qm.pool.get(); (T.x = g * Math.cos((m * Math.PI) / 180)), (T.y = g * Math.sin((m * Math.PI) / 180)), ly.apply(t, y, v, w, T), qm.pool.put(T); break; case 2: var S = a[5], x = a[4], E = a[3], P = a[2]; Jv.apply(t, P, E, x, S); break; case 3: var R = a[4], A = a[3], I = a[2]; jv.apply(t, I, A, R); break; case 4: var C = a[5], B = a[4], D = a[3], k = a[2]; qv.apply(t, k, D, B, C); break; case 5: var F = a[4], M = a[3], L = a[2]; ty.apply(t, L, M, F); break; case 6: var N = a[4], O = a[3], U = a[2]; $v.apply(t, U, O, N); break; case 7: var G = a[4], z = a[3], X = a[2]; oy.apply(t, X, z, G); break; case 8: var H = a[4], V = a[3], Y = a[2]; _y.apply(t, Y, V, H); break; case 9: var W = a[5], j = a[4], K = a[3], q = a[2]; _y.apply(t, q, K, j, W); break; case 10: var Z = a[5], J = a[4], Q = a[3], $ = a[2]; iy.apply(t, $, Q, J, Z); } } i.dispose(); } s.disposeBackBuffer(); }), (kv.__expandBounds = function (e, t) { for (var s = 0; s < e.length; ) { var n = e[s]; ++s, n.__growBounds(t); } }), (kv.__getOffset = function (e, t, s) { (e.x = t * Math.cos((s * Math.PI) / 180)), (e.y = t * Math.sin((s * Math.PI) / 180)); }), (kv.prototype = { clone: function () { return new kv(); }, dispose: function () {}, __applyFilter: function (e, t, s, n) { throw new Mp(":TODO: Unsupported path. Patch code."); }, equals: function (e) { return !1; }, __growBounds: function (e) {}, __getCommands: function (e) { return []; }, __class__: kv, }); var Fv = function (e, t, s, n, i, r, o, a, l, h, _) { null == _ && (_ = !1), null == h && (h = 1), null == l && (l = 1), null == a && (a = 1), null == o && (o = 4), null == r && (r = 4), null == t && (t = 45), null == e && (e = 4), (this.__lookupTextureIsDirty = !0), kv.call(this), (this.distance = e), (this.angle = t), (this.colors = s), (this.alphas = n), (this.ratios = i), (this.blurX = r), (this.blurY = o), (this.strength = a), (this.quality = l), (this.type = h), (this.knockout = _); }; ((s["openfl.filters.GradientFilter"] = Fv).__name__ = [ "openfl", "filters", "GradientFilter", ]), (Fv.__super__ = kv), (Fv.prototype = n(kv.prototype, { dispose: function () {}, equals: function (e) { if (Lp.__instanceof(e, Fv)) { var t = e; if (this.colors.length != t.colors.length) return !1; for (var s = 0, n = this.colors.length; s < n; ) { var i = s++; if ( this.colors[i] != t.colors[i] || this.alphas[i] != t.alphas[i] || this.ratios[i] != t.ratios[i] ) return !1; } return ( this.distance == t.distance && this.angle == t.angle && this.blurX == t.blurX && this.blurY == t.blurY && this.strength == t.strength && this.quality == t.quality && this.type == t.type && this.knockout == t.knockout ); } return !1; }, updateLookupTexture: function () { var e = this.getHash(); if ( ((this.__lookupTexture = Fv.__textureCacheMap.h[e]), null == this.__lookupTexture) ) { (this.__lookupTexture = new sw(256, 1)), (Fv.__textureCacheMap.h[e] = this.__lookupTexture); for ( var t = 0, s = 0, n = Math.max(Math.min(this.ratios[0] / 255, 1), 0), i = ((255 & Math.round(255 * this.alphas[0])) << 24) | ((255 & ((16777215 & this.colors[0]) >>> 16)) << 16) | ((255 & ((16777215 & this.colors[0]) >>> 8)) << 8) | (255 & this.colors[0]), r = ((255 & Math.round(255 * this.alphas[0])) << 24) | ((255 & ((16777215 & this.colors[0]) >>> 16)) << 16) | ((255 & ((16777215 & this.colors[0]) >>> 8)) << 8) | (255 & this.colors[0]), o = this.__lookupTexture.physicalWidth, a = 0, l = o; a < l; ) { var h = a++, _ = (h + 0.5) / o; if (n < _) { for (; n < _; ) n = t < this.ratios.length - 1 ? (++t, Math.max(Math.min(this.ratios[t] / 255, 1), 0)) : 1; var u = 0 == t ? 0 : t - 1; (r = ((255 & Math.round(255 * this.alphas[t])) << 24) | ((255 & ((16777215 & this.colors[t]) >>> 16)) << 16) | ((255 & ((16777215 & this.colors[t]) >>> 8)) << 8) | (255 & this.colors[t])), (i = ((255 & Math.round(255 * this.alphas[u])) << 24) | ((255 & ((16777215 & this.colors[u]) >>> 16)) << 16) | ((255 & ((16777215 & this.colors[u]) >>> 8)) << 8) | (255 & this.colors[u])), (s = Math.max(Math.min(this.ratios[u] / 255, 1), 0)); } for ( var d = (_ - s) / (n - s), c = Gt.toFloat(((16777215 & i) >>> 16) & 255) / Gt.toFloat(255), f = Gt.toFloat(((16777215 & i) >>> 8) & 255) / Gt.toFloat(255), p = Gt.toFloat(255 & i) / Gt.toFloat(255), b = Gt.toFloat(i >>> 24) / Gt.toFloat(255), m = (255 * (c + (Gt.toFloat(((16777215 & r) >>> 16) & 255) / Gt.toFloat(255) - c) * d)) | 0, g = (255 * (f + (Gt.toFloat(((16777215 & r) >>> 8) & 255) / Gt.toFloat(255) - f) * d)) | 0, w = (255 * (p + (Gt.toFloat(255 & r) / Gt.toFloat(255) - p) * d)) | 0 | (g << 8) | (m << 16) | (((255 * (b + (Gt.toFloat(r >>> 24) / Gt.toFloat(255) - b) * d)) | 0) << 24), v = 0, y = this.__lookupTexture.physicalHeight; v < y; ) { var T = v++; this.__lookupTexture.setPixel32(h, T, w); } } } else this.__lookupTextureIsDirty = !1; }, getHash: function () { for ( var e = new GT( this.colors.length + this.alphas.length + this.ratios.length ), t = 0, s = 0, n = this.colors.length; s < n; ) { var i = s++; e[i] = this.colors[i]; } t += this.colors.length; for (var r = 0, o = this.alphas.length; r < o; ) { var a = r++; e[t + a] = this.alphas[a]; } t += this.alphas.length; for (var l = 0, h = this.ratios.length; l < h; ) { var _ = l++; e[t + _] = this.ratios[_]; } return np.make(Lf.ofData(e.buffer)); }, __class__: Fv, })); var Mv = function (e, t, s, n, i, r, o, a, l, h, _) { null == _ && (_ = !1), null == h && (h = 1), null == l && (l = 1), null == a && (a = 1), null == o && (o = 4), null == r && (r = 4), null == t && (t = 45), null == e && (e = 4), Fv.call(this, e, t, s, n, i, r, o, a, l, h, _); }; ((s["openfl.filters.GradientBevelFilter"] = Mv).__name__ = [ "openfl", "filters", "GradientBevelFilter", ]), (Mv.__super__ = Fv), (Mv.prototype = n(Fv.prototype, { clone: function () { return new Mv( this.distance, this.angle, this.colors, this.alphas, this.ratios, this.blurX, this.blurY, this.strength, this.quality, this.type, this.knockout ); }, dispose: function () { null != this.__highlightBitmapData && (this.__highlightBitmapData.dispose(), (this.__highlightBitmapData = null)), null != this.__shadowBitmapData && (this.__shadowBitmapData.dispose(), (this.__shadowBitmapData = null)); }, __growBounds: function (e) { var t = qm.pool.get(), s = this.distance, n = this.angle; (t.x = s * Math.cos((n * Math.PI) / 180)), (t.y = s * Math.sin((n * Math.PI) / 180)); var i = Math.ceil(((Math.ceil(this.blurX) - 1) / 2) * this.quality), r = Math.ceil(((Math.ceil(this.blurY) - 1) / 2) * this.quality); (e.x -= Math.abs(t.x) + i), (e.y -= Math.abs(t.y) + r), (e.width += 2 * (Math.abs(t.x) + i)), (e.height += 2 * (Math.abs(t.y) + r)), qm.pool.put(t); }, __getCommands: function (e) { var t = [], s = e; if ( (null == this.__highlightBitmapData && (this.__highlightBitmapData = sw.__asRenderTexture()), null == this.__shadowBitmapData && (this.__shadowBitmapData = sw.__asRenderTexture()), this.__lookupTextureIsDirty && (this.updateLookupTexture(), (this.__lookupTextureIsDirty = !1)), this.__highlightBitmapData.__resizeTo(e), this.__shadowBitmapData.__resizeTo(e), 1 < this.blurX || 1 < this.blurY ? (t.push( sy.Blur1D( this.__highlightBitmapData, s, this.blurX, this.quality, !0, 1, this.distance, this.angle + 180 ) ), t.push( sy.Blur1D( this.__shadowBitmapData, s, this.blurX, this.quality, !0, 1, this.distance, this.angle ) ), t.push( sy.Blur1D( this.__highlightBitmapData, this.__highlightBitmapData, this.blurY, this.quality, !1, 1, 0, 0 ) ), t.push( sy.Blur1D( this.__shadowBitmapData, this.__shadowBitmapData, this.blurY, this.quality, !1, 1, 0, 0 ) )) : (t.push( sy.Offset( this.__highlightBitmapData, s, 1, this.distance, this.angle + 180 ) ), t.push( sy.Offset( this.__shadowBitmapData, s, 1, this.distance, this.angle ) )), t.push( sy.DestOut( this.__highlightBitmapData, this.__highlightBitmapData, this.__shadowBitmapData, this.strength ) ), this.knockout && 0 == this.type) ) return ( t.push( sy.ColorLookup( e, this.__highlightBitmapData, this.__lookupTexture ) ), t ); switch ( (t.push( sy.ColorLookup( this.__highlightBitmapData, this.__highlightBitmapData, this.__lookupTexture ) ), this.type) ) { case 0: if (this.knockout) throw new Mp( "knockout && full combination should already have been handled" ); t.push(sy.Combine(e, e, this.__highlightBitmapData)); break; case 1: this.knockout ? t.push(sy.InnerKnockout(e, e, this.__highlightBitmapData)) : t.push(sy.CombineInner(e, e, this.__highlightBitmapData)); break; case 2: this.knockout ? t.push( sy.OuterKnockoutTransparency( e, e, this.__highlightBitmapData, !0 ) ) : t.push(sy.Combine(e, this.__highlightBitmapData, e)); } return t; }, __class__: Mv, })); var Lv = function (e, t, s, n, i, r, o, a, l, h, _, u) { null == u && (u = !1), null == _ && (_ = 1), null == h && (h = 1), null == l && (l = 1), null == a && (a = 4), null == o && (o = 4), null == r && (r = 1), null == i && (i = 0), null == n && (n = 1), null == s && (s = 16777215), null == t && (t = 45), null == e && (e = 4), (this.highlightColor = s), (this.highlightAlpha = n); var d = [(this.shadowColor = i), i, s, s], c = [(this.shadowAlpha = r), 0, 0, n]; Mv.call(this, e, t, d, c, [0, 127, 128, 255], o, a, l, h, _, u); }; ((s["openfl.filters.BevelFilter"] = Lv).__name__ = [ "openfl", "filters", "BevelFilter", ]), (Lv.__super__ = Mv), (Lv.prototype = n(Mv.prototype, { clone: function () { return new Lv( this.distance, this.angle, this.highlightColor, this.highlightAlpha, this.shadowColor, this.shadowAlpha, this.blurX, this.blurY, this.strength, this.quality, this.type, this.knockout ); }, __class__: Lv, })); var Nv = {}; ((s["openfl.filters._BitmapFilterType.BitmapFilterType_Impl_"] = Nv).__name__ = [ "openfl", "filters", "_BitmapFilterType", "BitmapFilterType_Impl_", ]), (Nv.fromString = function (e) { switch (e) { case "full": return 0; case "inner": return 1; case "outer": return 2; default: return null; } }), (Nv.toString = function (e) { switch (e) { case 0: return "full"; case 1: return "inner"; case 2: return "outer"; default: return null; } }); var Ov = function (e, t, s) { null == s && (s = 1), null == t && (t = 4), null == e && (e = 4), kv.call(this), (this.blurX = e), (this.blurY = t), this.set_quality(s); }; ((s["openfl.filters.BlurFilter"] = Ov).__name__ = [ "openfl", "filters", "BlurFilter", ]), (Ov.__super__ = kv), (Ov.prototype = n(kv.prototype, { clone: function () { return new Ov(this.blurX, this.blurY, this.quality); }, equals: function (e) { if (Lp.__instanceof(e, Ov)) { var t = e; return ( this.blurX == t.blurX && this.blurY == t.blurY && this.quality == t.quality ); } return !1; }, __growBounds: function (e) { var t = Math.ceil(((Math.ceil(this.blurX) - 1) / 2) * this.quality), s = Math.ceil(((Math.ceil(this.blurY) - 1) / 2) * this.quality); (e.x += -t), (e.y += -s), (e.width += 2 * t), (e.height += 2 * s); }, __getCommands: function (e) { var t = []; return ( 0 < this.blurX && t.push(sy.Blur1D(e, e, this.blurX, this.quality, !0, 1, 0, 0)), 0 < this.blurY && t.push(sy.Blur1D(e, e, this.blurY, this.quality, !1, 1, 0, 0)), t ); }, set_quality: function (e) { return (this.quality = e); }, __class__: Ov, __properties__: { set_quality: "set_quality" }, })); var Uv = function (e, t) { if ((kv.call(this), null != e && 16 != e.length)) throw new Mp("Invalid length for color matrix filter multipliers"); if (null != t && 4 != t.length) throw new Mp("Invalid length for color matrix filter offsets"); (this.multipliers = e), (this.offsets = t); }; ((s["openfl.filters.ColorMatrixFilter"] = Uv).__name__ = [ "openfl", "filters", "ColorMatrixFilter", ]), (Uv.__super__ = kv), (Uv.prototype = n(kv.prototype, { clone: function () { return new Uv(this.multipliers, this.offsets); }, equals: function (e) { if (Lp.__instanceof(e, Uv)) { for (var t = e, s = 0, n = this.multipliers.length; s < n; ) { var i = s++; if (this.multipliers[i] != t.multipliers[i]) return !1; } for (var r = 0, o = this.offsets.length; r < o; ) { var a = r++; if (this.offsets[a] != t.offsets[a]) return !1; } return !0; } return !1; }, __getCommands: function (e) { return [sy.ColorTransform(e, e, this.multipliers, this.offsets)]; }, __class__: Uv, })); var Gv = function (e, t, s, n, i, r, o, a, l, h, _) { null == _ && (_ = !1), null == h && (h = !1), null == l && (l = !1), null == a && (a = 1), null == o && (o = 1), null == r && (r = 4), null == i && (i = 4), null == n && (n = 1), null == s && (s = 0), null == t && (t = 45), null == e && (e = 4), kv.call(this), (this.distance = e), (this.angle = t), (this.color = s), (this.alpha = n), (this.blurX = i), (this.blurY = r), (this.strength = o), this.set_quality(a), (this.inner = l), this.set_knockout(h), this.set_hideObject(_); }; ((s["openfl.filters.DropShadowFilter"] = Gv).__name__ = [ "openfl", "filters", "DropShadowFilter", ]), (Gv.__super__ = kv), (Gv.prototype = n(kv.prototype, { clone: function () { return new Gv( this.distance, this.angle, this.color, this.alpha, this.blurX, this.blurY, this.strength, this.quality, this.inner, this.knockout, this.hideObject ); }, dispose: function () { null != this.__shadowBitmapData && (this.__shadowBitmapData.dispose(), (this.__shadowBitmapData = null)); }, equals: function (e) { if (Lp.__instanceof(e, Gv)) { var t = e; return ( !( this.distance != t.distance || this.angle != t.angle || this.color != t.color || this.alpha != t.alpha || this.blurX != t.blurX || this.blurY != t.blurY || this.strength != t.strength || this.quality != t.quality || this.inner != t.inner || !this.knockout || !t.knockout ) && this.hideObject == t.hideObject ); } return !1; }, __growBounds: function (e) { var t = qm.pool.get(), s = this.distance, n = this.angle; (t.x = s * Math.cos((n * Math.PI) / 180)), (t.y = s * Math.sin((n * Math.PI) / 180)); var i = Math.ceil(((Math.ceil(this.blurX) - 1) / 2) * this.quality), r = Math.ceil(((Math.ceil(this.blurY) - 1) / 2) * this.quality); (e.x -= Math.abs(t.x) + i), (e.y -= Math.abs(t.y) + r), (e.width += 2 * (Math.abs(t.x) + i)), (e.height += 2 * (Math.abs(t.y) + r)), qm.pool.put(t); }, __getCommands: function (e) { var t = [], s = e; if ( (null == this.__shadowBitmapData && (this.__shadowBitmapData = sw.__asRenderTexture()), this.__shadowBitmapData.__resizeTo(e), this.inner && (t.push( sy.ColorTransform( this.__shadowBitmapData, e, kv.__inverseAlphaMultipliers, kv.__inverseAlphaOffsets ) ), (s = this.__shadowBitmapData)), 1 < this.blurX || 1 < this.blurY ? (t.push( sy.Blur1D( this.__shadowBitmapData, s, this.blurX, this.quality, !0, 1, this.distance, this.angle ) ), t.push( sy.Blur1D( this.__shadowBitmapData, this.__shadowBitmapData, this.blurY, this.quality, !1, this.strength, 0, 0 ) )) : t.push( sy.Offset( this.__shadowBitmapData, s, this.strength, this.distance, this.angle ) ), this.hideObject && !this.knockout && !this.inner) ) return ( t.push( sy.Colorize(e, this.__shadowBitmapData, this.color, this.alpha) ), t ); if ( (t.push( sy.Colorize( this.__shadowBitmapData, this.__shadowBitmapData, this.color, this.alpha ) ), this.inner) ) this.knockout || this.hideObject ? t.push(sy.InnerKnockout(e, e, this.__shadowBitmapData)) : t.push(sy.CombineInner(e, e, this.__shadowBitmapData)); else if (this.knockout) t.push(sy.OuterKnockout(e, e, this.__shadowBitmapData)); else { if (this.hideObject) throw new Mp( "hideObject && !knockout && !inner combination should already have been handled" ); t.push(sy.Combine(e, this.__shadowBitmapData, e)); } return t; }, set_knockout: function (e) { return (this.knockout = e); }, set_hideObject: function (e) { return (this.hideObject = e); }, set_quality: function (e) { return (this.quality = e); }, __class__: Gv, __properties__: { set_quality: "set_quality", set_knockout: "set_knockout", set_hideObject: "set_hideObject", }, })); var zv = function (e, t, s, n, i, r, o, a) { null == a && (a = !1), null == o && (o = !1), null == r && (r = 1), null == i && (i = 2), null == n && (n = 6), null == s && (s = 6), null == t && (t = 1), null == e && (e = 16711680), kv.call(this), 0 == s && (s = 1), 0 == n && (n = 1), (this.color = e), (this.alpha = t), (this.blurX = s), (this.blurY = n), (this.strength = i), this.set_quality(r), (this.inner = o), this.set_knockout(a); }; ((s["openfl.filters.GlowFilter"] = zv).__name__ = [ "openfl", "filters", "GlowFilter", ]), (zv.__super__ = kv), (zv.prototype = n(kv.prototype, { clone: function () { return new zv( this.color, this.alpha, this.blurX, this.blurY, this.strength, this.quality, this.inner, this.knockout ); }, dispose: function () { null != this.__glowBitmapData && (this.__glowBitmapData.dispose(), (this.__glowBitmapData = null)); }, equals: function (e) { if (Lp.__instanceof(e, zv)) { var t = e; return ( !( this.color != t.color || this.alpha != t.alpha || this.blurX != t.blurX || this.blurY != t.blurY || this.strength != t.strength || this.quality != t.quality || this.inner != t.inner || !this.knockout ) && t.knockout ); } return !1; }, __growBounds: function (e) { var t = Math.ceil(((Math.ceil(this.blurX) - 1) / 2) * this.quality), s = Math.ceil(((Math.ceil(this.blurY) - 1) / 2) * this.quality); (e.x += -t), (e.y += -s), (e.width += 2 * t), (e.height += 2 * s); }, __getCommands: function (e) { null == this.__glowBitmapData && (this.__glowBitmapData = sw.__asRenderTexture()); var t = [], s = e; return ( this.__glowBitmapData.__resizeTo(e), this.inner && (t.push( sy.ColorTransform( this.__glowBitmapData, e, kv.__inverseAlphaMultipliers, kv.__inverseAlphaOffsets ) ), (s = this.__glowBitmapData)), t.push( sy.Blur1D( this.__glowBitmapData, s, this.blurX, this.quality, !0, 1, 0, 0 ) ), t.push( sy.Blur1D( this.__glowBitmapData, this.__glowBitmapData, this.blurY, this.quality, !1, this.strength, 0, 0 ) ), t.push( sy.Colorize( this.__glowBitmapData, this.__glowBitmapData, this.color, this.alpha ) ), this.knockout ? this.inner ? t.push(sy.InnerKnockout(e, e, this.__glowBitmapData)) : t.push(sy.OuterKnockout(e, e, this.__glowBitmapData)) : this.inner ? t.push(sy.CombineInner(e, e, this.__glowBitmapData)) : t.push(sy.Combine(e, this.__glowBitmapData, e)), t ); }, set_knockout: function (e) { return (this.knockout = e); }, set_quality: function (e) { return (this.quality = e); }, __class__: zv, __properties__: { set_quality: "set_quality", set_knockout: "set_knockout", }, })); var Xv = function (e, t, s, n, i, r, o, a, l, h, _) { null == _ && (_ = !1), null == h && (h = 1), null == l && (l = 1), null == a && (a = 1), null == o && (o = 4), null == r && (r = 4), null == t && (t = 45), null == e && (e = 4), Fv.call(this, e, t, s, n, i, r, o, a, l, h, _); }; ((s["openfl.filters.GradientGlowFilter"] = Xv).__name__ = [ "openfl", "filters", "GradientGlowFilter", ]), (Xv.__super__ = Fv), (Xv.prototype = n(Fv.prototype, { clone: function () { return new Xv( this.distance, this.angle, this.colors, this.alphas, this.ratios, this.blurX, this.blurY, this.strength, this.quality, this.type, this.knockout ); }, dispose: function () { null != this.__glowBitmapData && (this.__glowBitmapData.dispose(), (this.__glowBitmapData = null)); }, __growBounds: function (e) { var t = qm.pool.get(), s = this.distance, n = this.angle; (t.x = s * Math.cos((n * Math.PI) / 180)), (t.y = s * Math.sin((n * Math.PI) / 180)); var i = Math.ceil(((Math.ceil(this.blurX) - 1) / 2) * this.quality), r = Math.ceil(((Math.ceil(this.blurY) - 1) / 2) * this.quality); (e.x -= Math.abs(t.x) + i), (e.y -= Math.abs(t.y) + r), (e.width += 2 * (Math.abs(t.x) + i)), (e.height += 2 * (Math.abs(t.y) + r)), qm.pool.put(t); }, __getCommands: function (e) { var t = []; switch ( (null == this.__glowBitmapData && (this.__glowBitmapData = sw.__asRenderTexture()), this.__lookupTextureIsDirty && (this.updateLookupTexture(), (this.__lookupTextureIsDirty = !1)), this.__glowBitmapData.__resizeTo(e), t.push( sy.Blur1D( this.__glowBitmapData, e, this.blurX, this.quality, !0, 1, this.distance, this.angle ) ), t.push( sy.Blur1D( this.__glowBitmapData, this.__glowBitmapData, this.blurY, this.quality, !1, this.strength, 0, 0 ) ), t.push( sy.ColorLookup( this.__glowBitmapData, this.__glowBitmapData, this.__lookupTexture ) ), this.type) ) { case 0: t.push(sy.Combine(e, e, this.__glowBitmapData)); break; case 1: t.push(sy.CombineInner(e, e, this.__glowBitmapData)); break; case 2: t.push(sy.Combine(e, this.__glowBitmapData, e)); } return t; }, __class__: Xv, })); var Hv = function () { (this.__uFetchCount = new Fw("float", 0)), (this.__uTexCoordDelta = new Fw("vec2", 0)), (this.__uTexCoordOffset = new Fw("vec2", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform vec2 uTexCoordDelta;", "uniform float uFetchCount;", "uniform float uWeightTable[32];", "void main(void)", "{", "vec2 texcoord_delta = uTexCoordDelta / " + kw.uTextureSize + ";", "int fetch_count = int(uFetchCount);", "vec4 result = vec4(0.0);", "for(int i = 0; i < 32; ++i){", " if (i >= fetch_count) break;", " result += texture2D(" + kw.uSampler + ", " + kw.vTexCoord + " + texcoord_delta * float(i)) * uWeightTable[i];", "}", "\tgl_FragColor = clamp(result, 0.0, 1.0);", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "uniform vec2 uTexCoordOffset;", "void main(void)", "{", "vec2 texcoord_offset = uTexCoordOffset / " + kw.uTextureSize + ";", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + " - texcoord_offset;", kw.vColor + " = " + kw.aColor + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uTexCoordOffset", this.__uTexCoordOffset), this.data.set("uTexCoordDelta", this.__uTexCoordDelta), this.data.set("uFetchCount", this.__uFetchCount), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nuniform vec2 uTexCoordOffset;\nvoid main(void)\n{\nvec2 texcoord_offset = uTexCoordOffset / " + kw.uTextureSize + ";\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + " - texcoord_offset;\n" + kw.vColor + " = " + kw.aColor + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform vec2 uTexCoordDelta;\nuniform float uFetchCount;\nuniform float uWeightTable[32];\nvoid main(void)\n{\nvec2 texcoord_delta = uTexCoordDelta / " + kw.uTextureSize + ";\nint fetch_count = int(uFetchCount);\nvec4 result = vec4(0.0);\nfor(int i = 0; i < 32; ++i){\n if (i >= fetch_count) break;\n result += texture2D(" + kw.uSampler + ", " + kw.vTexCoord + " + texcoord_delta * float(i)) * uWeightTable[i];\n}\n\tgl_FragColor = clamp(result, 0.0, 1.0);\n}" ); }; ((s["openfl.filters.commands._Blur1DCommand.BlurShader"] = Hv).__name__ = [ "openfl", "filters", "commands", "_Blur1DCommand", "BlurShader", ]), (Hv.__super__ = kw), (Hv.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uTexCoordOffset: function () { return this.__uTexCoordOffset.value; }, set_uTexCoordOffset: function (e) { var t = this.__uTexCoordOffset; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uTexCoordDelta: function () { return this.__uTexCoordDelta.value; }, set_uTexCoordDelta: function (e) { var t = this.__uTexCoordDelta; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uFetchCount: function () { return this.__uFetchCount.value[0]; }, set_uFetchCount: function (e) { return (this.__uFetchCount.value[0] = e); }, __class__: Hv, __properties__: { set_uFetchCount: "set_uFetchCount", get_uFetchCount: "get_uFetchCount", set_uTexCoordDelta: "set_uTexCoordDelta", get_uTexCoordDelta: "get_uTexCoordDelta", set_uTexCoordOffset: "set_uTexCoordOffset", get_uTexCoordOffset: "get_uTexCoordOffset", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var Vv = function () {}; ((s["openfl.filters.commands.CommandHelper"] = Vv).__name__ = [ "openfl", "filters", "commands", "CommandHelper", ]), (Vv.vertexArray = null), (Vv.shaderTable = null), (Vv.addShader = function (e) { null == Vv.shaderTable && (Vv.shaderTable = []), Vv.shaderTable.push(e); }), (Vv.initialize = function (e) { var t = []; t.push(new qg(2, 5126, !1, "openfl_aPosition")), t.push(new qg(2, 5126, !1, "openfl_aTexCoord0")), (Vv.vertexArray = new Kg(t, 64, !0)); var s = Vv.vertexArray.buffer, n = null != s ? new GT(s, 0) : null; if ( ((n[0] = 0), (n[1] = 0), (n[4] = 1), (n[5] = 0), (n[8] = 0), (n[9] = 1), (n[12] = 1), (n[13] = 1), (n[2] = 0), (n[3] = 0), (n[6] = 1), (n[7] = 0), (n[10] = 0), (n[11] = 1), (n[14] = 1), (n[15] = 1), Vv.vertexArray.setContext(e.gl, n), null != Vv.shaderTable) ) for (var i = 0, r = Vv.shaderTable; i < r.length; ) { var o = r[i]; ++i, o.__init(e.gl); } }), (Vv.apply = function (e, t, s, n, i, r) { t.__usingPingPongTexture && t.__pingPongTexture.swap(), i && (t.__pingPongTexture.useOldTexture = !0), t.__pushFrameBuffer(e, !0, !0, !0); var o = e.gl; if (null != n) { n.__init(o), (n.__shader.wrapS = n.repeatX), (n.__shader.wrapT = n.repeatY), (n.__shader.smooth = n.smooth), (n.__shader.blendMode = n.blendMode); var a = n.data.get(kw.uObjectSize), l = n.data.get(kw.uTextureSize), h = n.data.get("openfl_uScaleVector"); if (null != s) if ( ((a.value[0] = s.width), (a.value[1] = s.height), null != s.__pingPongTexture) ) { var _ = s.__pingPongTexture, u = _.__swapped ? _.__texture1 : _.__texture0; (l.value[0] = u.__width), (l.value[1] = u.__height), (h.value[0] = u.__uvData.x1), (h.value[1] = u.__uvData.y2); } else (l.value[0] = s.width), (l.value[1] = s.height), (h.value[0] = s.__uvData.x1), (h.value[1] = s.__uvData.y2); else (a.value[0] = 0), (a.value[1] = 0), (l.value[0] = 0), (l.value[1] = 0), (h.value[0] = 0), (h.value[1] = 0); } var d = n.__shader; e.shaderManager.setShader(d); var c = Vv.vertexArray; c.gl; Vb.context.bindBuffer(c.gl.ARRAY_BUFFER, c.glBuffer), d.bindVertexArray(Vv.vertexArray); var f = d.blendMode; null == f && (f = 10), e.blendModeManager.setBlendMode(f); var p = o.TEXTURE0; p != Vb.currentActiveTexture && (Vb.context.activeTexture(p), (Vb.currentActiveTexture = p)); var b = o.TEXTURE_2D, m = s.getTexture(o); Vb.currentBoundTexture[Vb.currentActiveTexture] != m && (Vb.context.bindTexture(b, m), null == (Vb.currentBoundTexture[Vb.currentActiveTexture] = m) || Vb.textureStateCache.exists(m) || Vb.textureStateCache.set(m, new lp())); var g = o.TEXTURE_2D, w = o.TEXTURE_MAG_FILTER, v = o.LINEAR, y = Vb.currentBoundTexture[Vb.currentActiveTexture], T = Vb.textureStateCache.get(y); T.h[w] != v && (Vb.context.texParameteri(g, w, v), (T.h[w] = v)); var S = o.TEXTURE_2D, x = o.TEXTURE_MIN_FILTER, E = o.LINEAR, P = Vb.currentBoundTexture[Vb.currentActiveTexture], R = Vb.textureStateCache.get(P); R.h[x] != E && (Vb.context.texParameteri(S, x, E), (R.h[x] = E)); var A = o.TEXTURE_2D, I = o.TEXTURE_WRAP_S, C = d.wrapS, B = Vb.currentBoundTexture[Vb.currentActiveTexture], D = Vb.textureStateCache.get(B); D.h[I] != C && (Vb.context.texParameteri(A, I, C), (D.h[I] = C)); var k = o.TEXTURE_2D, F = o.TEXTURE_WRAP_T, M = d.wrapT, L = Vb.currentBoundTexture[Vb.currentActiveTexture], N = Vb.textureStateCache.get(L); N.h[F] != M && (Vb.context.texParameteri(k, F, M), (N.h[F] = M)), (e.activeTextures = 1), d.applyData(n.data, e), null != r && r(e), Vb.context.drawArrays(o.TRIANGLE_STRIP, 0, 4), Cg.popFramebuffer(e, null), (t.__imageShouldBeSynced = !0); var O = t.__pingPongTexture, U = (O.__swapped ? O.__texture1 : O.__texture0).__uvData; t.__createUVs(U.x0, U.y0, U.x1, U.y1, U.x2, U.y2, U.x3, U.y3), (t.__isValid = !0), (t.__usingPingPongTexture = !0), i && (t.__pingPongTexture.useOldTexture = !1); }), (Vv.prepareShader = function (e, t, s) { if (null != t) { t.__init(e), (t.__shader.wrapS = t.repeatX), (t.__shader.wrapT = t.repeatY), (t.__shader.smooth = t.smooth), (t.__shader.blendMode = t.blendMode); var n = t.data.get(kw.uObjectSize), i = t.data.get(kw.uTextureSize), r = t.data.get("openfl_uScaleVector"); if (null != s) if ( ((n.value[0] = s.width), (n.value[1] = s.height), null != s.__pingPongTexture) ) { var o = s.__pingPongTexture, a = o.__swapped ? o.__texture1 : o.__texture0; (i.value[0] = a.__width), (i.value[1] = a.__height), (r.value[0] = a.__uvData.x1), (r.value[1] = a.__uvData.y2); } else (i.value[0] = s.width), (i.value[1] = s.height), (r.value[0] = s.__uvData.x1), (r.value[1] = s.__uvData.y2); else (n.value[0] = 0), (n.value[1] = 0), (i.value[0] = 0), (i.value[1] = 0), (r.value[0] = 0), (r.value[1] = 0); } }); var Yv = function () {}; ((s["openfl.filters.commands.Blur1DCommand"] = Yv).__name__ = [ "openfl", "filters", "commands", "Blur1DCommand", ]), (Yv.apply = function (e, t, s, n, i, r, o, a) { var l, h, _, u = Math.ceil(n), d = (u - 1) / 2; h = r ? ((l = n * i - 1), 0) : ((l = 0), n * i - 1); for ( var c = u + 0 * (u - 1), f = null != c ? new GT(c) : null, p = 1 / u, b = 0, m = u; b < m; ) { f[b++] = p; } for (var g = 1, w = i; g < w; ) { var v = g++, y = f, T = f.length; f = null != (c = u + v * (u - 1)) ? new GT(c) : null; for (var S = (2 * d) | 0, x = 0, E = c; x < E; ) for (var P = x++, R = (f[P] = 0), A = u; R < A; ) { var I = P - S + R++; if (0 <= I && I < T) f[P] += p * y[I]; } } var C = (_ = f).length, B = C; if (32 < C) { for ( var D = (C - 32 + 1) >> 1, k = 0, F = 0, M = (_ = _.subarray(D, C - D)).length; F < M; ) { var L = F++; k += _[L]; } for (var N = o / k, O = 0, U = _.length; O < U; ) { var G = O++; _[G] *= N; } C = _.length; } else for (var z = 0, X = _.length; z < X; ) { var H = z++; _[H] *= o; } (Yv.__shader.__uFetchCount.value[0] = C), (Yv.__shader.__uTexCoordDelta.value[1] = 1 < C ? ((Yv.__shader.__uTexCoordDelta.value[0] = l / (B - 1)), h / (B - 1)) : (Yv.__shader.__uTexCoordDelta.value[0] = 0)), (Yv.__shader.__uTexCoordOffset.value[0] = ((0.5 * C) / B) * l + a.x), (Yv.__shader.__uTexCoordOffset.value[1] = ((0.5 * C) / B) * h + a.y), Vv.apply(e, t, s, Yv.__shader, s == t, function (e) { Yv.preDrawCallback(e, _); }); }), (Yv.preDrawCallback = function (e, t) { e.gl; var s = Yv.__shader.__shader.getUniformLocation("uWeightTable"); Vb.context.uniform1fv(s, t); }); var Wv = function () { (this.__uColorLookupSampler = new Fw("sampler2D", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform sampler2D uColorLookupSampler;", "void main(void)", "{", "float a = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ").a;", "gl_FragColor = texture2D(uColorLookupSampler, vec2(a, 0.5));", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "void main(void)", "{", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uColorLookupSampler", this.__uColorLookupSampler), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform sampler2D uColorLookupSampler;\nvoid main(void)\n{\nfloat a = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ").a;\ngl_FragColor = texture2D(uColorLookupSampler, vec2(a, 0.5));\n}" ); }; ((s["openfl.filters.commands._ColorLookupCommand.ColorLookupShader"] = Wv).__name__ = [ "openfl", "filters", "commands", "_ColorLookupCommand", "ColorLookupShader", ]), (Wv.__super__ = kw), (Wv.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uColorLookupSampler: function () { return this.__uColorLookupSampler.bitmap; }, set_uColorLookupSampler: function (e) { var t = this.__uColorLookupSampler; if (4 != t.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); return (t.bitmap = e); }, __class__: Wv, __properties__: { set_uColorLookupSampler: "set_uColorLookupSampler", get_uColorLookupSampler: "get_uColorLookupSampler", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var jv = function () {}; ((s["openfl.filters.commands.ColorLookupCommand"] = jv).__name__ = [ "openfl", "filters", "commands", "ColorLookupCommand", ]), (jv.apply = function (e, t, s, n) { var i = jv.__shader.__uColorLookupSampler; if (4 != i.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); (i.bitmap = n), Vv.apply(e, t, s, jv.__shader, s == t); }); var Kv = function () { (this.__uOffsets = new Fw("vec4", 0)), (this.__uMultipliers = new Fw("mat4", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform mat4 uMultipliers;", "uniform vec4 uOffsets;", "void main(void) {", "\tvec4 color = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");", "\tcolor = vec4(color.rgb / (color.a + 0.000001), color.a);", "\tcolor = uOffsets + color * uMultipliers;", "\tcolor = vec4(color.rgb * color.a, color.a);", "\tgl_FragColor = color;", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "void main(void)", "{", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uMultipliers", this.__uMultipliers), this.data.set("uOffsets", this.__uOffsets), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform mat4 uMultipliers;\nuniform vec4 uOffsets;\nvoid main(void) {\n\tvec4 color = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");\n\tcolor = vec4(color.rgb / (color.a + 0.000001), color.a);\n\tcolor = uOffsets + color * uMultipliers;\n\tcolor = vec4(color.rgb * color.a, color.a);\n\tgl_FragColor = color;\n}" ); }; ((s["openfl.filters.commands._ColorTransformCommand.ColorTransformShader"] = Kv).__name__ = [ "openfl", "filters", "commands", "_ColorTransformCommand", "ColorTransformShader", ]), (Kv.__super__ = kw), (Kv.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uMultipliers: function () { return this.__uMultipliers.value; }, set_uMultipliers: function (e) { var t = this.__uMultipliers; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uOffsets: function () { return this.__uOffsets.value; }, set_uOffsets: function (e) { var t = this.__uOffsets; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, __class__: Kv, __properties__: { set_uOffsets: "set_uOffsets", get_uOffsets: "get_uOffsets", set_uMultipliers: "set_uMultipliers", get_uMultipliers: "get_uMultipliers", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var qv = function () {}; ((s["openfl.filters.commands.ColorTransformCommand"] = qv).__name__ = [ "openfl", "filters", "commands", "ColorTransformCommand", ]), (qv.apply = function (e, t, s, n, i) { var r = qv.__shader.__uMultipliers; if (4 == r.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); r.value = n; var o = qv.__shader.__uOffsets; if (4 == o.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); (o.value = i), Vv.apply(e, t, s, qv.__shader, s == t); }); var Zv = function () { (this.__uColor = new Fw("vec4", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform vec4 uColor;", "void main(void)", "{", "float a = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ").a;", "a = clamp(a * uColor.a, 0.0, 1.0);", "gl_FragColor = vec4(uColor.rgb * a, a);", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "void main(void)", "{", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uColor", this.__uColor), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform vec4 uColor;\nvoid main(void)\n{\nfloat a = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ").a;\na = clamp(a * uColor.a, 0.0, 1.0);\ngl_FragColor = vec4(uColor.rgb * a, a);\n}" ); }; ((s["openfl.filters.commands._ColorizeCommand.ColorizeShader"] = Zv).__name__ = [ "openfl", "filters", "commands", "_ColorizeCommand", "ColorizeShader", ]), (Zv.__super__ = kw), (Zv.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uColor: function () { return this.__uColor.value; }, set_uColor: function (e) { var t = this.__uColor; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, __class__: Zv, __properties__: { set_uColor: "set_uColor", get_uColor: "get_uColor", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var Jv = function () {}; ((s["openfl.filters.commands.ColorizeCommand"] = Jv).__name__ = [ "openfl", "filters", "commands", "ColorizeCommand", ]), (Jv.apply = function (e, t, s, n, i) { (Jv.__shader.__uColor.value[0] = ((n >> 16) & 255) / 255), (Jv.__shader.__uColor.value[1] = ((n >> 8) & 255) / 255), (Jv.__shader.__uColor.value[2] = (255 & n) / 255), (Jv.__shader.__uColor.value[3] = i), Vv.apply(e, t, s, Jv.__shader, s == t); }); var Qv = function () { (this.__uSource1Sampler = new Fw("sampler2D", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform sampler2D uSource1Sampler;", "void main(void)", "{", "vec4 src2 = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");", "vec4 src1 = texture2D(uSource1Sampler, " + kw.vTexCoord + ");", "gl_FragColor = src2 + src1 * (1.0 - src2.a);", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "void main(void)", "{", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uSource1Sampler", this.__uSource1Sampler), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform sampler2D uSource1Sampler;\nvoid main(void)\n{\nvec4 src2 = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");\nvec4 src1 = texture2D(uSource1Sampler, " + kw.vTexCoord + ");\ngl_FragColor = src2 + src1 * (1.0 - src2.a);\n}" ); }; ((s["openfl.filters.commands._CombineCommand.CombineShader"] = Qv).__name__ = ["openfl", "filters", "commands", "_CombineCommand", "CombineShader"]), (Qv.__super__ = kw), (Qv.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uSource1Sampler: function () { return this.__uSource1Sampler.bitmap; }, set_uSource1Sampler: function (e) { var t = this.__uSource1Sampler; if (4 != t.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); return (t.bitmap = e); }, __class__: Qv, __properties__: { set_uSource1Sampler: "set_uSource1Sampler", get_uSource1Sampler: "get_uSource1Sampler", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var $v = function () {}; ((s["openfl.filters.commands.CombineCommand"] = $v).__name__ = [ "openfl", "filters", "commands", "CombineCommand", ]), ($v.apply = function (e, t, s, n) { var i = $v.__shader.__uSource1Sampler; if (4 != i.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); (i.bitmap = s), Vv.apply(e, t, n, $v.__shader, s == t || n == t); }); var ey = function () { (this.__uSource1Sampler = new Fw("sampler2D", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform sampler2D uSource1Sampler;", "void main(void)", "{", "vec4 src2 = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");", "vec4 src1 = texture2D(uSource1Sampler, " + kw.vTexCoord + ");", "gl_FragColor = clamp(src1 * (1.0 - src2.a) + src1.a * src2, 0.0, 1.0);", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "void main(void)", "{", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uSource1Sampler", this.__uSource1Sampler), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform sampler2D uSource1Sampler;\nvoid main(void)\n{\nvec4 src2 = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");\nvec4 src1 = texture2D(uSource1Sampler, " + kw.vTexCoord + ");\ngl_FragColor = clamp(src1 * (1.0 - src2.a) + src1.a * src2, 0.0, 1.0);\n}" ); }; ((s["openfl.filters.commands._CombineInnerCommand.CombineInnerShader"] = ey).__name__ = [ "openfl", "filters", "commands", "_CombineInnerCommand", "CombineInnerShader", ]), (ey.__super__ = kw), (ey.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uSource1Sampler: function () { return this.__uSource1Sampler.bitmap; }, set_uSource1Sampler: function (e) { var t = this.__uSource1Sampler; if (4 != t.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); return (t.bitmap = e); }, __class__: ey, __properties__: { set_uSource1Sampler: "set_uSource1Sampler", get_uSource1Sampler: "get_uSource1Sampler", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var ty = function () {}; ((s["openfl.filters.commands.CombineInnerCommand"] = ty).__name__ = [ "openfl", "filters", "commands", "CombineInnerCommand", ]), (ty.apply = function (e, t, s, n) { var i = ty.__shader.__uSource1Sampler; if (4 != i.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); (i.bitmap = s), Vv.apply(e, t, n, ty.__shader, s == t || n == t); }); var sy = (s["openfl.filters.commands.CommandType"] = { __ename__: ["openfl", "filters", "commands", "CommandType"], __constructs__: [ "Blur1D", "Offset", "Colorize", "ColorLookup", "ColorTransform", "CombineInner", "Combine", "InnerKnockout", "OuterKnockout", "OuterKnockoutTransparency", "DestOut", ], }); (sy.Blur1D = function (e, t, s, n, i, r, o, a) { var l = ["Blur1D", 0, e, t, s, n, i, r, o, a]; return (l.__enum__ = sy), (l.toString = c), l; }), (sy.Offset = function (e, t, s, n, i) { var r = ["Offset", 1, e, t, s, n, i]; return (r.__enum__ = sy), (r.toString = c), r; }), (sy.Colorize = function (e, t, s, n) { var i = ["Colorize", 2, e, t, s, n]; return (i.__enum__ = sy), (i.toString = c), i; }), (sy.ColorLookup = function (e, t, s) { var n = ["ColorLookup", 3, e, t, s]; return (n.__enum__ = sy), (n.toString = c), n; }), (sy.ColorTransform = function (e, t, s, n) { var i = ["ColorTransform", 4, e, t, s, n]; return (i.__enum__ = sy), (i.toString = c), i; }), (sy.CombineInner = function (e, t, s) { var n = ["CombineInner", 5, e, t, s]; return (n.__enum__ = sy), (n.toString = c), n; }), (sy.Combine = function (e, t, s) { var n = ["Combine", 6, e, t, s]; return (n.__enum__ = sy), (n.toString = c), n; }), (sy.InnerKnockout = function (e, t, s) { var n = ["InnerKnockout", 7, e, t, s]; return (n.__enum__ = sy), (n.toString = c), n; }), (sy.OuterKnockout = function (e, t, s) { var n = ["OuterKnockout", 8, e, t, s]; return (n.__enum__ = sy), (n.toString = c), n; }), (sy.OuterKnockoutTransparency = function (e, t, s, n) { var i = ["OuterKnockoutTransparency", 9, e, t, s, n]; return (i.__enum__ = sy), (i.toString = c), i; }), (sy.DestOut = function (e, t, s, n) { var i = ["DestOut", 10, e, t, s, n]; return (i.__enum__ = sy), (i.toString = c), i; }); var ny = function () { (this.__uStrength = new Fw("float", 0)), (this.__uShadowSourceSampler = new Fw("sampler2D", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform sampler2D uShadowSourceSampler;", "uniform float uStrength;", "void main(void)", "{", "float highlight = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ").a;", "float shadow = texture2D(uShadowSourceSampler, " + kw.vTexCoord + ").a;", "float high = clamp((highlight - shadow) * uStrength, 0., 1.);", "float low = clamp((shadow - highlight) * uStrength, 0., 1.);", "gl_FragColor = vec4(0.5 * ( 1. + high - low ));", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "void main(void)", "{", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uShadowSourceSampler", this.__uShadowSourceSampler), this.data.set("uStrength", this.__uStrength), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform sampler2D uShadowSourceSampler;\nuniform float uStrength;\nvoid main(void)\n{\nfloat highlight = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ").a;\nfloat shadow = texture2D(uShadowSourceSampler, " + kw.vTexCoord + ").a;\nfloat high = clamp((highlight - shadow) * uStrength, 0., 1.);\nfloat low = clamp((shadow - highlight) * uStrength, 0., 1.);\ngl_FragColor = vec4(0.5 * ( 1. + high - low ));\n}" ); }; ((s["openfl.filters.commands._DestOutCommand.DestOutShader"] = ny).__name__ = ["openfl", "filters", "commands", "_DestOutCommand", "DestOutShader"]), (ny.__super__ = kw), (ny.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uShadowSourceSampler: function () { return this.__uShadowSourceSampler.bitmap; }, set_uShadowSourceSampler: function (e) { var t = this.__uShadowSourceSampler; if (4 != t.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); return (t.bitmap = e); }, get_uStrength: function () { return this.__uStrength.value[0]; }, set_uStrength: function (e) { return (this.__uStrength.value[0] = e); }, __class__: ny, __properties__: { set_uStrength: "set_uStrength", get_uStrength: "get_uStrength", set_uShadowSourceSampler: "set_uShadowSourceSampler", get_uShadowSourceSampler: "get_uShadowSourceSampler", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var iy = function () {}; ((s["openfl.filters.commands.DestOutCommand"] = iy).__name__ = [ "openfl", "filters", "commands", "DestOutCommand", ]), (iy.apply = function (e, t, s, n, i) { var r = iy.__shader.__uShadowSourceSampler; if (4 != r.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); (r.bitmap = n), (iy.__shader.__uStrength.value[0] = i), Vv.apply(e, t, s, iy.__shader, s == t || n == t); }); var ry = function () { (this.__outer = new Fw("float", 0)), (this.__uSource1Sampler = new Fw("sampler2D", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform sampler2D uSource1Sampler;", "uniform float outer;", "void main(void)", "{", "vec4 src2 = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");", "vec4 src1 = texture2D(uSource1Sampler, " + kw.vTexCoord + ");", "src2 *= src1.a;", "gl_FragColor = src2;", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "void main(void)", "{", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uSource1Sampler", this.__uSource1Sampler), this.data.set("outer", this.__outer), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform sampler2D uSource1Sampler;\nuniform float outer;\nvoid main(void)\n{\nvec4 src2 = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");\nvec4 src1 = texture2D(uSource1Sampler, " + kw.vTexCoord + ");\nsrc2 *= src1.a;\ngl_FragColor = src2;\n}" ); }; ((s["openfl.filters.commands._InnerKnockoutCommand.InnerKnockoutShader"] = ry).__name__ = [ "openfl", "filters", "commands", "_InnerKnockoutCommand", "InnerKnockoutShader", ]), (ry.__super__ = kw), (ry.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uSource1Sampler: function () { return this.__uSource1Sampler.bitmap; }, set_uSource1Sampler: function (e) { var t = this.__uSource1Sampler; if (4 != t.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); return (t.bitmap = e); }, get_outer: function () { return this.__outer.value[0]; }, set_outer: function (e) { return (this.__outer.value[0] = e); }, __class__: ry, __properties__: { set_outer: "set_outer", get_outer: "get_outer", set_uSource1Sampler: "set_uSource1Sampler", get_uSource1Sampler: "get_uSource1Sampler", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var oy = function () {}; ((s["openfl.filters.commands.InnerKnockoutCommand"] = oy).__name__ = [ "openfl", "filters", "commands", "InnerKnockoutCommand", ]), (oy.apply = function (e, t, s, n) { var i = oy.__shader.__uSource1Sampler; if (4 != i.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); (i.bitmap = s), Vv.apply(e, t, n, oy.__shader, s == t || n == t); }); var ay = function () { (this.__uStrength = new Fw("float", 0)), (this.__uTexCoordOffset = new Fw("vec2", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform float uStrength;", "void main(void)", "{", "vec4 result = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");", "gl_FragColor = clamp(result * uStrength, 0.0, 1.0);", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "uniform vec2 uTexCoordOffset;", "void main(void)", "{", "vec2 texcoord_offset = uTexCoordOffset / " + kw.uTextureSize + ";", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + " - texcoord_offset;", kw.vColor + " = " + kw.aColor + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uTexCoordOffset", this.__uTexCoordOffset), this.data.set("uStrength", this.__uStrength), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nuniform vec2 uTexCoordOffset;\nvoid main(void)\n{\nvec2 texcoord_offset = uTexCoordOffset / " + kw.uTextureSize + ";\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + " - texcoord_offset;\n" + kw.vColor + " = " + kw.aColor + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform float uStrength;\nvoid main(void)\n{\nvec4 result = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");\ngl_FragColor = clamp(result * uStrength, 0.0, 1.0);\n}" ); }; ((s["openfl.filters.commands._OffsetCommand.OffsetShader"] = ay).__name__ = [ "openfl", "filters", "commands", "_OffsetCommand", "OffsetShader", ]), (ay.__super__ = kw), (ay.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uTexCoordOffset: function () { return this.__uTexCoordOffset.value; }, set_uTexCoordOffset: function (e) { var t = this.__uTexCoordOffset; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uStrength: function () { return this.__uStrength.value[0]; }, set_uStrength: function (e) { return (this.__uStrength.value[0] = e); }, __class__: ay, __properties__: { set_uStrength: "set_uStrength", get_uStrength: "get_uStrength", set_uTexCoordOffset: "set_uTexCoordOffset", get_uTexCoordOffset: "get_uTexCoordOffset", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var ly = function () {}; ((s["openfl.filters.commands.OffsetCommand"] = ly).__name__ = [ "openfl", "filters", "commands", "OffsetCommand", ]), (ly.apply = function (e, t, s, n, i) { (ly.__shader.__uTexCoordOffset.value[0] = i.x), (ly.__shader.__uTexCoordOffset.value[1] = i.y), (ly.__shader.__uStrength.value[0] = n), Vv.apply(e, t, s, ly.__shader, s == t); }); var hy = function () { (this.__allow_transparency = new Fw("float", 0)), (this.__uSource1Sampler = new Fw("sampler2D", 0)), (this.__openfl_uScaleVector = new Fw("vec2", 0)), (this.fragment = [ "uniform sampler2D uSource1Sampler;", "uniform float allow_transparency;", "void main(void)", "{", "vec4 src2 = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");", "vec4 src1 = texture2D(uSource1Sampler, " + kw.vTexCoord + ");", "src2 *= 1. - ( allow_transparency * src1.a + ( 1. - allow_transparency ) * step(0.0001, src1.a) );", "gl_FragColor = src2;", "}", ]), (this.vertex = [ "uniform vec2 openfl_uScaleVector;", "void main(void)", "{", kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";", "gl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);", "}", ]), kw.call(this), Vv.addShader(this), this.data.set("openfl_uScaleVector", this.__openfl_uScaleVector), this.data.set("uSource1Sampler", this.__uSource1Sampler), this.data.set("allow_transparency", this.__allow_transparency), this.__buildVertexCode( "uniform vec2 openfl_uScaleVector;\nvoid main(void)\n{\n" + kw.vTexCoord + " = openfl_uScaleVector * " + kw.aTexCoord + ";\ngl_Position = vec4(" + kw.aPosition + " * 2.0 - 1.0, 0.0, 1.0);\n}" ), this.__buildFragmentCode( "uniform sampler2D uSource1Sampler;\nuniform float allow_transparency;\nvoid main(void)\n{\nvec4 src2 = texture2D(" + kw.uSampler + ", " + kw.vTexCoord + ");\nvec4 src1 = texture2D(uSource1Sampler, " + kw.vTexCoord + ");\nsrc2 *= 1. - ( allow_transparency * src1.a + ( 1. - allow_transparency ) * step(0.0001, src1.a) );\ngl_FragColor = src2;\n}" ); }; ((s["openfl.filters.commands._OuterKnockoutCommand.OuterKnockoutShader"] = hy).__name__ = [ "openfl", "filters", "commands", "_OuterKnockoutCommand", "OuterKnockoutShader", ]), (hy.__super__ = kw), (hy.prototype = n(kw.prototype, { get_openfl_uScaleVector: function () { return this.__openfl_uScaleVector.value; }, set_openfl_uScaleVector: function (e) { var t = this.__openfl_uScaleVector; if (4 == t.internalType) throw new Mp( "This parameter doesn't accept a value, use bitmap instead" ); return (t.value = e); }, get_uSource1Sampler: function () { return this.__uSource1Sampler.bitmap; }, set_uSource1Sampler: function (e) { var t = this.__uSource1Sampler; if (4 != t.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); return (t.bitmap = e); }, get_allow_transparency: function () { return this.__allow_transparency.value[0]; }, set_allow_transparency: function (e) { return (this.__allow_transparency.value[0] = e); }, __class__: hy, __properties__: { set_allow_transparency: "set_allow_transparency", get_allow_transparency: "get_allow_transparency", set_uSource1Sampler: "set_uSource1Sampler", get_uSource1Sampler: "get_uSource1Sampler", set_openfl_uScaleVector: "set_openfl_uScaleVector", get_openfl_uScaleVector: "get_openfl_uScaleVector", }, })); var _y = function () {}; ((s["openfl.filters.commands.OuterKnockoutCommand"] = _y).__name__ = [ "openfl", "filters", "commands", "OuterKnockoutCommand", ]), (_y.apply = function (e, t, s, n, i) { null == i && (i = !0); var r = _y.__shader.__uSource1Sampler; if (4 != r.internalType) throw new Mp( "This parameter doesn't accept a bitmap, use value instead" ); (r.bitmap = s), (_y.__shader.__allow_transparency.value[0] = i ? 1 : 0), Vv.apply(e, t, n, _y.__shader, s == t || n == t); }); var uy = function (e) { if (null != e && 16 == e.length) this.rawData = e; else { var t = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], s = new ha(); (s.length = t.length), (s.fixed = !0), (s.data = t.slice(0)), (this.rawData = s); } }; ((s["openfl.geom.Matrix3D"] = uy).__name__ = ["openfl", "geom", "Matrix3D"]), (uy.create2D = function (e, t, s, n) { null == n && (n = 0), null == s && (s = 1); var i = (n * Math.PI) / 180, r = Math.cos(i), o = Math.sin(i), a = [r * s, -o * s, 0, 0, o * s, r * s, 0, 0, 0, 0, 1, 0, e, t, 0, 1], l = new ha(); return ( (l.length = a.length), (l.fixed = !0), (l.data = a.slice(0)), new uy(l) ); }), (uy.createABCD = function (e, t, s, n, i, r) { var o = [e, t, 0, 0, s, n, 0, 0, 0, 0, 1, 0, i, r, 0, 1], a = new ha(); return ( (a.length = o.length), (a.fixed = !0), (a.data = o.slice(0)), new uy(a) ); }), (uy.createOrtho = function (e, t, s, n, i, r) { var o = 1 / (t - e), a = 1 / (n - s), l = 1 / (r - i), h = [ 2 * o, 0, 0, 0, 0, 2 * a, 0, 0, 0, 0, -2 * l, 0, -(e + t) * o, -(s + n) * a, -(i + r) * l, 1, ], _ = new ha(); return ( (_.length = h.length), (_.fixed = !0), (_.data = h.slice(0)), new uy(_) ); }), (uy.interpolate = function (e, t, s) { for (var n = new uy(), i = 0; i < 16; ) { var r = i++, o = n.rawData, a = e.rawData.data[r] + (t.rawData.data[r] - e.rawData.data[r]) * s; if ( !o.fixed && (r >= o.length && (o.length = r + 1), o.data.length < o.length) ) { var l = o.data.length + 10, h = new Array(l); dp.blit(o.data, 0, h, 0, o.data.length), (o.data = h); } o.data[r] = a; } return n; }), (uy.__getAxisRotation = function (e, t, s, n) { var i = new uy(), r = new py(e, t, s), o = -n * (Math.PI / 180), a = Math.cos(o), l = Math.sin(o), h = 1 - a, _ = i.rawData, u = a + r.x * r.x * h; if ( !_.fixed && (_.length <= 0 && (_.length = 1), _.data.length < _.length) ) { var d = _.data.length + 10, c = new Array(d); dp.blit(_.data, 0, c, 0, _.data.length), (_.data = c); } _.data[0] = u; var f = i.rawData, p = a + r.y * r.y * h; if ( !f.fixed && (f.length <= 5 && (f.length = 6), f.data.length < f.length) ) { var b = f.data.length + 10, m = new Array(b); dp.blit(f.data, 0, m, 0, f.data.length), (f.data = m); } f.data[5] = p; var g = i.rawData, w = a + r.z * r.z * h; if ( !g.fixed && (g.length <= 10 && (g.length = 11), g.data.length < g.length) ) { var v = g.data.length + 10, y = new Array(v); dp.blit(g.data, 0, y, 0, g.data.length), (g.data = y); } g.data[10] = w; var T = r.x * r.y * h, S = r.z * l, x = i.rawData; if ( !x.fixed && (x.length <= 4 && (x.length = 5), x.data.length < x.length) ) { var E = x.data.length + 10, P = new Array(E); dp.blit(x.data, 0, P, 0, x.data.length), (x.data = P); } x.data[4] = T + S; var R = i.rawData; if ( !R.fixed && (R.length <= 1 && (R.length = 2), R.data.length < R.length) ) { var A = R.data.length + 10, I = new Array(A); dp.blit(R.data, 0, I, 0, R.data.length), (R.data = I); } (R.data[1] = T - S), (T = r.x * r.z * h), (S = r.y * l); var C = i.rawData; if ( !C.fixed && (C.length <= 8 && (C.length = 9), C.data.length < C.length) ) { var B = C.data.length + 10, D = new Array(B); dp.blit(C.data, 0, D, 0, C.data.length), (C.data = D); } C.data[8] = T - S; var k = i.rawData; if ( !k.fixed && (k.length <= 2 && (k.length = 3), k.data.length < k.length) ) { var F = k.data.length + 10, M = new Array(F); dp.blit(k.data, 0, M, 0, k.data.length), (k.data = M); } (k.data[2] = T + S), (T = r.y * r.z * h), (S = r.x * l); var L = i.rawData; if ( !L.fixed && (L.length <= 9 && (L.length = 10), L.data.length < L.length) ) { var N = L.data.length + 10, O = new Array(N); dp.blit(L.data, 0, O, 0, L.data.length), (L.data = O); } L.data[9] = T + S; var U = i.rawData; if ( !U.fixed && (U.length <= 6 && (U.length = 7), U.data.length < U.length) ) { var G = U.data.length + 10, z = new Array(G); dp.blit(U.data, 0, z, 0, U.data.length), (U.data = z); } return (U.data[6] = T - S), i; }), (uy.prototype = { append: function (e) { var t = this.rawData.data[0], s = this.rawData.data[4], n = this.rawData.data[8], i = this.rawData.data[12], r = this.rawData.data[1], o = this.rawData.data[5], a = this.rawData.data[9], l = this.rawData.data[13], h = this.rawData.data[2], _ = this.rawData.data[6], u = this.rawData.data[10], d = this.rawData.data[14], c = this.rawData.data[3], f = this.rawData.data[7], p = this.rawData.data[11], b = this.rawData.data[15], m = e.rawData.data[0], g = e.rawData.data[4], w = e.rawData.data[8], v = e.rawData.data[12], y = e.rawData.data[1], T = e.rawData.data[5], S = e.rawData.data[9], x = e.rawData.data[13], E = e.rawData.data[2], P = e.rawData.data[6], R = e.rawData.data[10], A = e.rawData.data[14], I = e.rawData.data[3], C = e.rawData.data[7], B = e.rawData.data[11], D = e.rawData.data[15], k = this.rawData; if ( !k.fixed && (k.length <= 0 && (k.length = 1), k.data.length < k.length) ) { var F = k.data.length + 10, M = new Array(F); dp.blit(k.data, 0, M, 0, k.data.length), (k.data = M); } k.data[0] = t * m + r * g + h * w + c * v; var L = this.rawData; if ( !L.fixed && (L.length <= 1 && (L.length = 2), L.data.length < L.length) ) { var N = L.data.length + 10, O = new Array(N); dp.blit(L.data, 0, O, 0, L.data.length), (L.data = O); } L.data[1] = t * y + r * T + h * S + c * x; var U = this.rawData; if ( !U.fixed && (U.length <= 2 && (U.length = 3), U.data.length < U.length) ) { var G = U.data.length + 10, z = new Array(G); dp.blit(U.data, 0, z, 0, U.data.length), (U.data = z); } U.data[2] = t * E + r * P + h * R + c * A; var X = this.rawData; if ( !X.fixed && (X.length <= 3 && (X.length = 4), X.data.length < X.length) ) { var H = X.data.length + 10, V = new Array(H); dp.blit(X.data, 0, V, 0, X.data.length), (X.data = V); } X.data[3] = t * I + r * C + h * B + c * D; var Y = this.rawData; if ( !Y.fixed && (Y.length <= 4 && (Y.length = 5), Y.data.length < Y.length) ) { var W = Y.data.length + 10, j = new Array(W); dp.blit(Y.data, 0, j, 0, Y.data.length), (Y.data = j); } Y.data[4] = s * m + o * g + _ * w + f * v; var K = this.rawData; if ( !K.fixed && (K.length <= 5 && (K.length = 6), K.data.length < K.length) ) { var q = K.data.length + 10, Z = new Array(q); dp.blit(K.data, 0, Z, 0, K.data.length), (K.data = Z); } K.data[5] = s * y + o * T + _ * S + f * x; var J = this.rawData; if ( !J.fixed && (J.length <= 6 && (J.length = 7), J.data.length < J.length) ) { var Q = J.data.length + 10, $ = new Array(Q); dp.blit(J.data, 0, $, 0, J.data.length), (J.data = $); } J.data[6] = s * E + o * P + _ * R + f * A; var ee = this.rawData; if ( !ee.fixed && (ee.length <= 7 && (ee.length = 8), ee.data.length < ee.length) ) { var te = ee.data.length + 10, se = new Array(te); dp.blit(ee.data, 0, se, 0, ee.data.length), (ee.data = se); } ee.data[7] = s * I + o * C + _ * B + f * D; var ne = this.rawData; if ( !ne.fixed && (ne.length <= 8 && (ne.length = 9), ne.data.length < ne.length) ) { var ie = ne.data.length + 10, re = new Array(ie); dp.blit(ne.data, 0, re, 0, ne.data.length), (ne.data = re); } ne.data[8] = n * m + a * g + u * w + p * v; var oe = this.rawData; if ( !oe.fixed && (oe.length <= 9 && (oe.length = 10), oe.data.length < oe.length) ) { var ae = oe.data.length + 10, le = new Array(ae); dp.blit(oe.data, 0, le, 0, oe.data.length), (oe.data = le); } oe.data[9] = n * y + a * T + u * S + p * x; var he = this.rawData; if ( !he.fixed && (he.length <= 10 && (he.length = 11), he.data.length < he.length) ) { var _e = he.data.length + 10, ue = new Array(_e); dp.blit(he.data, 0, ue, 0, he.data.length), (he.data = ue); } he.data[10] = n * E + a * P + u * R + p * A; var de = this.rawData; if ( !de.fixed && (de.length <= 11 && (de.length = 12), de.data.length < de.length) ) { var ce = de.data.length + 10, fe = new Array(ce); dp.blit(de.data, 0, fe, 0, de.data.length), (de.data = fe); } de.data[11] = n * I + a * C + u * B + p * D; var pe = this.rawData; if ( !pe.fixed && (pe.length <= 12 && (pe.length = 13), pe.data.length < pe.length) ) { var be = pe.data.length + 10, me = new Array(be); dp.blit(pe.data, 0, me, 0, pe.data.length), (pe.data = me); } pe.data[12] = i * m + l * g + d * w + b * v; var ge = this.rawData; if ( !ge.fixed && (ge.length <= 13 && (ge.length = 14), ge.data.length < ge.length) ) { var we = ge.data.length + 10, ve = new Array(we); dp.blit(ge.data, 0, ve, 0, ge.data.length), (ge.data = ve); } ge.data[13] = i * y + l * T + d * S + b * x; var ye = this.rawData; if ( !ye.fixed && (ye.length <= 14 && (ye.length = 15), ye.data.length < ye.length) ) { var Te = ye.data.length + 10, Se = new Array(Te); dp.blit(ye.data, 0, Se, 0, ye.data.length), (ye.data = Se); } ye.data[14] = i * E + l * P + d * R + b * A; var xe = this.rawData; if ( !xe.fixed && (xe.length <= 15 && (xe.length = 16), xe.data.length < xe.length) ) { var Ee = xe.data.length + 10, Pe = new Array(Ee); dp.blit(xe.data, 0, Pe, 0, xe.data.length), (xe.data = Pe); } xe.data[15] = i * I + l * C + d * B + b * D; }, appendRotation: function (e, t, s) { var n = uy.__getAxisRotation(t.x, t.y, t.z, e); if (null != s) { var i = s; n.appendTranslation(i.x, i.y, i.z); } this.append(n); }, appendScale: function (e, t, s) { var n = [e, 0, 0, 0, 0, t, 0, 0, 0, 0, s, 0, 0, 0, 0, 1], i = new ha(); (i.length = n.length), (i.fixed = !0), (i.data = n.slice(0)), this.append(new uy(i)); }, appendTranslation: function (e, t, s) { var n = this.rawData, i = n.data[12] + e; if ( !n.fixed && (n.length <= 12 && (n.length = 13), n.data.length < n.length) ) { var r = n.data.length + 10, o = new Array(r); dp.blit(n.data, 0, o, 0, n.data.length), (n.data = o); } n.data[12] = i; var a = this.rawData, l = a.data[13] + t; if ( !a.fixed && (a.length <= 13 && (a.length = 14), a.data.length < a.length) ) { var h = a.data.length + 10, _ = new Array(h); dp.blit(a.data, 0, _, 0, a.data.length), (a.data = _); } a.data[13] = l; var u = this.rawData, d = u.data[14] + s; if ( !u.fixed && (u.length <= 14 && (u.length = 15), u.data.length < u.length) ) { var c = u.data.length + 10, f = new Array(c); dp.blit(u.data, 0, f, 0, u.data.length), (u.data = f); } u.data[14] = d; }, clone: function () { var e = this.rawData, t = new ha(); (t.length = e.length), (t.fixed = e.fixed); var s = e.length, n = new Array(s); return (t.data = n), dp.blit(e.data, 0, t.data, 0, e.length), new uy(t); }, copyColumnFrom: function (e, t) { switch (e) { case 0: var s = this.rawData, n = t.x; if ( !s.fixed && (s.length <= 0 && (s.length = 1), s.data.length < s.length) ) { var i = s.data.length + 10, r = new Array(i); dp.blit(s.data, 0, r, 0, s.data.length), (s.data = r); } s.data[0] = n; var o = this.rawData, a = t.y; if ( !o.fixed && (o.length <= 1 && (o.length = 2), o.data.length < o.length) ) { var l = o.data.length + 10, h = new Array(l); dp.blit(o.data, 0, h, 0, o.data.length), (o.data = h); } o.data[1] = a; var _ = this.rawData, u = t.z; if ( !_.fixed && (_.length <= 2 && (_.length = 3), _.data.length < _.length) ) { var d = _.data.length + 10, c = new Array(d); dp.blit(_.data, 0, c, 0, _.data.length), (_.data = c); } _.data[2] = u; var f = this.rawData, p = t.w; if ( !f.fixed && (f.length <= 3 && (f.length = 4), f.data.length < f.length) ) { var b = f.data.length + 10, m = new Array(b); dp.blit(f.data, 0, m, 0, f.data.length), (f.data = m); } f.data[3] = p; break; case 1: var g = this.rawData, w = t.x; if ( !g.fixed && (g.length <= 4 && (g.length = 5), g.data.length < g.length) ) { var v = g.data.length + 10, y = new Array(v); dp.blit(g.data, 0, y, 0, g.data.length), (g.data = y); } g.data[4] = w; var T = this.rawData, S = t.y; if ( !T.fixed && (T.length <= 5 && (T.length = 6), T.data.length < T.length) ) { var x = T.data.length + 10, E = new Array(x); dp.blit(T.data, 0, E, 0, T.data.length), (T.data = E); } T.data[5] = S; var P = this.rawData, R = t.z; if ( !P.fixed && (P.length <= 6 && (P.length = 7), P.data.length < P.length) ) { var A = P.data.length + 10, I = new Array(A); dp.blit(P.data, 0, I, 0, P.data.length), (P.data = I); } P.data[6] = R; var C = this.rawData, B = t.w; if ( !C.fixed && (C.length <= 7 && (C.length = 8), C.data.length < C.length) ) { var D = C.data.length + 10, k = new Array(D); dp.blit(C.data, 0, k, 0, C.data.length), (C.data = k); } C.data[7] = B; break; case 2: var F = this.rawData, M = t.x; if ( !F.fixed && (F.length <= 8 && (F.length = 9), F.data.length < F.length) ) { var L = F.data.length + 10, N = new Array(L); dp.blit(F.data, 0, N, 0, F.data.length), (F.data = N); } F.data[8] = M; var O = this.rawData, U = t.y; if ( !O.fixed && (O.length <= 9 && (O.length = 10), O.data.length < O.length) ) { var G = O.data.length + 10, z = new Array(G); dp.blit(O.data, 0, z, 0, O.data.length), (O.data = z); } O.data[9] = U; var X = this.rawData, H = t.z; if ( !X.fixed && (X.length <= 10 && (X.length = 11), X.data.length < X.length) ) { var V = X.data.length + 10, Y = new Array(V); dp.blit(X.data, 0, Y, 0, X.data.length), (X.data = Y); } X.data[10] = H; var W = this.rawData, j = t.w; if ( !W.fixed && (W.length <= 11 && (W.length = 12), W.data.length < W.length) ) { var K = W.data.length + 10, q = new Array(K); dp.blit(W.data, 0, q, 0, W.data.length), (W.data = q); } W.data[11] = j; break; case 3: var Z = this.rawData, J = t.x; if ( !Z.fixed && (Z.length <= 12 && (Z.length = 13), Z.data.length < Z.length) ) { var Q = Z.data.length + 10, $ = new Array(Q); dp.blit(Z.data, 0, $, 0, Z.data.length), (Z.data = $); } Z.data[12] = J; var ee = this.rawData, te = t.y; if ( !ee.fixed && (ee.length <= 13 && (ee.length = 14), ee.data.length < ee.length) ) { var se = ee.data.length + 10, ne = new Array(se); dp.blit(ee.data, 0, ne, 0, ee.data.length), (ee.data = ne); } ee.data[13] = te; var ie = this.rawData, re = t.z; if ( !ie.fixed && (ie.length <= 14 && (ie.length = 15), ie.data.length < ie.length) ) { var oe = ie.data.length + 10, ae = new Array(oe); dp.blit(ie.data, 0, ae, 0, ie.data.length), (ie.data = ae); } ie.data[14] = re; var le = this.rawData, he = t.w; if ( !le.fixed && (le.length <= 15 && (le.length = 16), le.data.length < le.length) ) { var _e = le.data.length + 10, ue = new Array(_e); dp.blit(le.data, 0, ue, 0, le.data.length), (le.data = ue); } le.data[15] = he; } }, copyColumnTo: function (e, t) { switch (e) { case 0: (t.x = this.rawData.data[0]), (t.y = this.rawData.data[1]), (t.z = this.rawData.data[2]), (t.w = this.rawData.data[3]); break; case 1: (t.x = this.rawData.data[4]), (t.y = this.rawData.data[5]), (t.z = this.rawData.data[6]), (t.w = this.rawData.data[7]); break; case 2: (t.x = this.rawData.data[8]), (t.y = this.rawData.data[9]), (t.z = this.rawData.data[10]), (t.w = this.rawData.data[11]); break; case 3: (t.x = this.rawData.data[12]), (t.y = this.rawData.data[13]), (t.z = this.rawData.data[14]), (t.w = this.rawData.data[15]); } }, copyFrom: function (e) { var t = e.rawData, s = new ha(); (s.length = t.length), (s.fixed = t.fixed); var n = t.length, i = new Array(n); (s.data = i), dp.blit(t.data, 0, s.data, 0, t.length), (this.rawData = s); }, copyRawDataFrom: function (e, t, s) { null == s && (s = !1), null == t && (t = 0), s && this.transpose(); for (var n = 0, i = e.length - t; n < i; ) { var r = n++, o = this.rawData, a = e.data[r + t]; if ( !o.fixed && (r >= o.length && (o.length = r + 1), o.data.length < o.length) ) { var l = o.data.length + 10, h = new Array(l); dp.blit(o.data, 0, h, 0, o.data.length), (o.data = h); } o.data[r] = a; } s && this.transpose(); }, copyRawDataTo: function (e, t, s) { null == s && (s = !1), null == t && (t = 0), s && this.transpose(); for (var n = 0, i = this.rawData.length; n < i; ) { var r = n++, o = r + t, a = this.rawData.data[r]; if ( !e.fixed && (o >= e.length && (e.length = o + 1), e.data.length < e.length) ) { var l = e.data.length + 10, h = new Array(l); dp.blit(e.data, 0, h, 0, e.data.length), (e.data = h); } e.data[o] = a; } s && this.transpose(); }, copyRowFrom: function (e, t) { switch (e) { case 0: var s = this.rawData, n = t.x; if ( !s.fixed && (s.length <= 0 && (s.length = 1), s.data.length < s.length) ) { var i = s.data.length + 10, r = new Array(i); dp.blit(s.data, 0, r, 0, s.data.length), (s.data = r); } s.data[0] = n; var o = this.rawData, a = t.y; if ( !o.fixed && (o.length <= 4 && (o.length = 5), o.data.length < o.length) ) { var l = o.data.length + 10, h = new Array(l); dp.blit(o.data, 0, h, 0, o.data.length), (o.data = h); } o.data[4] = a; var _ = this.rawData, u = t.z; if ( !_.fixed && (_.length <= 8 && (_.length = 9), _.data.length < _.length) ) { var d = _.data.length + 10, c = new Array(d); dp.blit(_.data, 0, c, 0, _.data.length), (_.data = c); } _.data[8] = u; var f = this.rawData, p = t.w; if ( !f.fixed && (f.length <= 12 && (f.length = 13), f.data.length < f.length) ) { var b = f.data.length + 10, m = new Array(b); dp.blit(f.data, 0, m, 0, f.data.length), (f.data = m); } f.data[12] = p; break; case 1: var g = this.rawData, w = t.x; if ( !g.fixed && (g.length <= 1 && (g.length = 2), g.data.length < g.length) ) { var v = g.data.length + 10, y = new Array(v); dp.blit(g.data, 0, y, 0, g.data.length), (g.data = y); } g.data[1] = w; var T = this.rawData, S = t.y; if ( !T.fixed && (T.length <= 5 && (T.length = 6), T.data.length < T.length) ) { var x = T.data.length + 10, E = new Array(x); dp.blit(T.data, 0, E, 0, T.data.length), (T.data = E); } T.data[5] = S; var P = this.rawData, R = t.z; if ( !P.fixed && (P.length <= 9 && (P.length = 10), P.data.length < P.length) ) { var A = P.data.length + 10, I = new Array(A); dp.blit(P.data, 0, I, 0, P.data.length), (P.data = I); } P.data[9] = R; var C = this.rawData, B = t.w; if ( !C.fixed && (C.length <= 13 && (C.length = 14), C.data.length < C.length) ) { var D = C.data.length + 10, k = new Array(D); dp.blit(C.data, 0, k, 0, C.data.length), (C.data = k); } C.data[13] = B; break; case 2: var F = this.rawData, M = t.x; if ( !F.fixed && (F.length <= 2 && (F.length = 3), F.data.length < F.length) ) { var L = F.data.length + 10, N = new Array(L); dp.blit(F.data, 0, N, 0, F.data.length), (F.data = N); } F.data[2] = M; var O = this.rawData, U = t.y; if ( !O.fixed && (O.length <= 6 && (O.length = 7), O.data.length < O.length) ) { var G = O.data.length + 10, z = new Array(G); dp.blit(O.data, 0, z, 0, O.data.length), (O.data = z); } O.data[6] = U; var X = this.rawData, H = t.z; if ( !X.fixed && (X.length <= 10 && (X.length = 11), X.data.length < X.length) ) { var V = X.data.length + 10, Y = new Array(V); dp.blit(X.data, 0, Y, 0, X.data.length), (X.data = Y); } X.data[10] = H; var W = this.rawData, j = t.w; if ( !W.fixed && (W.length <= 14 && (W.length = 15), W.data.length < W.length) ) { var K = W.data.length + 10, q = new Array(K); dp.blit(W.data, 0, q, 0, W.data.length), (W.data = q); } W.data[14] = j; break; case 3: var Z = this.rawData, J = t.x; if ( !Z.fixed && (Z.length <= 3 && (Z.length = 4), Z.data.length < Z.length) ) { var Q = Z.data.length + 10, $ = new Array(Q); dp.blit(Z.data, 0, $, 0, Z.data.length), (Z.data = $); } Z.data[3] = J; var ee = this.rawData, te = t.y; if ( !ee.fixed && (ee.length <= 7 && (ee.length = 8), ee.data.length < ee.length) ) { var se = ee.data.length + 10, ne = new Array(se); dp.blit(ee.data, 0, ne, 0, ee.data.length), (ee.data = ne); } ee.data[7] = te; var ie = this.rawData, re = t.z; if ( !ie.fixed && (ie.length <= 11 && (ie.length = 12), ie.data.length < ie.length) ) { var oe = ie.data.length + 10, ae = new Array(oe); dp.blit(ie.data, 0, ae, 0, ie.data.length), (ie.data = ae); } ie.data[11] = re; var le = this.rawData, he = t.w; if ( !le.fixed && (le.length <= 15 && (le.length = 16), le.data.length < le.length) ) { var _e = le.data.length + 10, ue = new Array(_e); dp.blit(le.data, 0, ue, 0, le.data.length), (le.data = ue); } le.data[15] = he; } }, copyRowTo: function (e, t) { switch (e) { case 0: (t.x = this.rawData.data[0]), (t.y = this.rawData.data[4]), (t.z = this.rawData.data[8]), (t.w = this.rawData.data[12]); break; case 1: (t.x = this.rawData.data[1]), (t.y = this.rawData.data[5]), (t.z = this.rawData.data[9]), (t.w = this.rawData.data[13]); break; case 2: (t.x = this.rawData.data[2]), (t.y = this.rawData.data[6]), (t.z = this.rawData.data[10]), (t.w = this.rawData.data[14]); break; case 3: (t.x = this.rawData.data[3]), (t.y = this.rawData.data[7]), (t.z = this.rawData.data[11]), (t.w = this.rawData.data[15]); } }, copyToMatrix3D: function (e) { var t = this.rawData, s = new ha(); (s.length = t.length), (s.fixed = t.fixed); var n = t.length, i = new Array(n); (s.data = i), dp.blit(t.data, 0, s.data, 0, t.length), (e.rawData = s); }, decompose: function (e) { null == e && (e = 1); var t = new ha(), s = new Array(0); (t.data = s), (t.length = 0), (t.fixed = !1); var n = t, i = this.clone().rawData, r = new ha(); (r.length = i.length), (r.fixed = i.fixed); var o = i.length, a = new Array(o); (r.data = a), dp.blit(i.data, 0, r.data, 0, i.length); var l = r, h = new py(l.data[12], l.data[13], l.data[14]); if ( !l.fixed && (l.length <= 12 && (l.length = 13), l.data.length < l.length) ) { var _ = l.data.length + 10, u = new Array(_); dp.blit(l.data, 0, u, 0, l.data.length), (l.data = u); } if ( ((l.data[12] = 0), !l.fixed && (l.length <= 13 && (l.length = 14), l.data.length < l.length)) ) { var d = l.data.length + 10, c = new Array(d); dp.blit(l.data, 0, c, 0, l.data.length), (l.data = c); } if ( ((l.data[13] = 0), !l.fixed && (l.length <= 14 && (l.length = 15), l.data.length < l.length)) ) { var f = l.data.length + 10, p = new Array(f); dp.blit(l.data, 0, p, 0, l.data.length), (l.data = p); } l.data[14] = 0; var b = new py(); (b.x = Math.sqrt( l.data[0] * l.data[0] + l.data[1] * l.data[1] + l.data[2] * l.data[2] )), (b.y = Math.sqrt( l.data[4] * l.data[4] + l.data[5] * l.data[5] + l.data[6] * l.data[6] )), (b.z = Math.sqrt( l.data[8] * l.data[8] + l.data[9] * l.data[9] + l.data[10] * l.data[10] )), l.data[0] * (l.data[5] * l.data[10] - l.data[6] * l.data[9]) - l.data[1] * (l.data[4] * l.data[10] - l.data[6] * l.data[8]) + l.data[2] * (l.data[4] * l.data[9] - l.data[5] * l.data[8]) < 0 && (b.z = -b.z); var m = l, g = m.data[0] / b.x; if ( !m.fixed && (m.length <= 0 && (m.length = 1), m.data.length < m.length) ) { var w = m.data.length + 10, v = new Array(w); dp.blit(m.data, 0, v, 0, m.data.length), (m.data = v); } m.data[0] = g; var y = l, T = y.data[1] / b.x; if ( !y.fixed && (y.length <= 1 && (y.length = 2), y.data.length < y.length) ) { var S = y.data.length + 10, x = new Array(S); dp.blit(y.data, 0, x, 0, y.data.length), (y.data = x); } y.data[1] = T; var E = l, P = E.data[2] / b.x; if ( !E.fixed && (E.length <= 2 && (E.length = 3), E.data.length < E.length) ) { var R = E.data.length + 10, A = new Array(R); dp.blit(E.data, 0, A, 0, E.data.length), (E.data = A); } E.data[2] = P; var I = l, C = I.data[4] / b.y; if ( !I.fixed && (I.length <= 4 && (I.length = 5), I.data.length < I.length) ) { var B = I.data.length + 10, D = new Array(B); dp.blit(I.data, 0, D, 0, I.data.length), (I.data = D); } I.data[4] = C; var k = l, F = k.data[5] / b.y; if ( !k.fixed && (k.length <= 5 && (k.length = 6), k.data.length < k.length) ) { var M = k.data.length + 10, L = new Array(M); dp.blit(k.data, 0, L, 0, k.data.length), (k.data = L); } k.data[5] = F; var N = l, O = N.data[6] / b.y; if ( !N.fixed && (N.length <= 6 && (N.length = 7), N.data.length < N.length) ) { var U = N.data.length + 10, G = new Array(U); dp.blit(N.data, 0, G, 0, N.data.length), (N.data = G); } N.data[6] = O; var z = l, X = z.data[8] / b.z; if ( !z.fixed && (z.length <= 8 && (z.length = 9), z.data.length < z.length) ) { var H = z.data.length + 10, V = new Array(H); dp.blit(z.data, 0, V, 0, z.data.length), (z.data = V); } z.data[8] = X; var Y = l, W = Y.data[9] / b.z; if ( !Y.fixed && (Y.length <= 9 && (Y.length = 10), Y.data.length < Y.length) ) { var j = Y.data.length + 10, K = new Array(j); dp.blit(Y.data, 0, K, 0, Y.data.length), (Y.data = K); } Y.data[9] = W; var q = l, Z = q.data[10] / b.z; if ( !q.fixed && (q.length <= 10 && (q.length = 11), q.data.length < q.length) ) { var J = q.data.length + 10, Q = new Array(J); dp.blit(q.data, 0, Q, 0, q.data.length), (q.data = Q); } q.data[10] = Z; var $ = new py(); switch (e) { case 0: $.w = Math.acos((l.data[0] + l.data[5] + l.data[10] - 1) / 2); var ee = Math.sqrt( (l.data[6] - l.data[9]) * (l.data[6] - l.data[9]) + (l.data[8] - l.data[2]) * (l.data[8] - l.data[2]) + (l.data[1] - l.data[4]) * (l.data[1] - l.data[4]) ); 0 != ee ? (($.x = (l.data[6] - l.data[9]) / ee), ($.y = (l.data[8] - l.data[2]) / ee), ($.z = (l.data[1] - l.data[4]) / ee)) : ($.x = $.y = $.z = 0); break; case 1: ($.y = Math.asin(-l.data[2])), 1 != l.data[2] && -1 != l.data[2] ? (($.x = Math.atan2(l.data[6], l.data[10])), ($.z = Math.atan2(l.data[1], l.data[0]))) : (($.z = 0), ($.x = Math.atan2(l.data[4], l.data[5]))); break; case 2: var te = l.data[0] + l.data[5] + l.data[10]; 0 < te ? (($.w = Math.sqrt(1 + te) / 2), ($.x = (l.data[6] - l.data[9]) / (4 * $.w)), ($.y = (l.data[8] - l.data[2]) / (4 * $.w)), ($.z = (l.data[1] - l.data[4]) / (4 * $.w))) : l.data[0] > l.data[5] && l.data[0] > l.data[10] ? (($.x = Math.sqrt(1 + l.data[0] - l.data[5] - l.data[10]) / 2), ($.w = (l.data[6] - l.data[9]) / (4 * $.x)), ($.y = (l.data[1] + l.data[4]) / (4 * $.x)), ($.z = (l.data[8] + l.data[2]) / (4 * $.x))) : l.data[5] > l.data[10] ? (($.y = Math.sqrt(1 + l.data[5] - l.data[0] - l.data[10]) / 2), ($.x = (l.data[1] + l.data[4]) / (4 * $.y)), ($.w = (l.data[8] - l.data[2]) / (4 * $.y)), ($.z = (l.data[6] + l.data[9]) / (4 * $.y))) : (($.z = Math.sqrt(1 + l.data[10] - l.data[0] - l.data[5]) / 2), ($.x = (l.data[8] + l.data[2]) / (4 * $.z)), ($.y = (l.data[6] + l.data[9]) / (4 * $.z)), ($.w = (l.data[1] - l.data[4]) / (4 * $.z))); } if (!n.fixed) { if ((n.length++, n.data.length < n.length)) { var se = n.data.length + 10, ne = new Array(se); dp.blit(n.data, 0, ne, 0, n.data.length), (n.data = ne); } n.data[n.length - 1] = h; } if (!n.fixed) { if ((n.length++, n.data.length < n.length)) { var ie = n.data.length + 10, re = new Array(ie); dp.blit(n.data, 0, re, 0, n.data.length), (n.data = re); } n.data[n.length - 1] = $; } if (!n.fixed) { if ((n.length++, n.data.length < n.length)) { var oe = n.data.length + 10, ae = new Array(oe); dp.blit(n.data, 0, ae, 0, n.data.length), (n.data = ae); } n.data[n.length - 1] = b; } return n; }, deltaTransformVector: function (e) { var t = e.x, s = e.y, n = e.z; return new py( t * this.rawData.data[0] + s * this.rawData.data[4] + n * this.rawData.data[8] + this.rawData.data[3], t * this.rawData.data[1] + s * this.rawData.data[5] + n * this.rawData.data[9] + this.rawData.data[7], t * this.rawData.data[2] + s * this.rawData.data[6] + n * this.rawData.data[10] + this.rawData.data[11], 0 ); }, identity: function () { var e = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], t = new ha(); (t.length = e.length), (t.fixed = !0), (t.data = e.slice(0)), (this.rawData = t); }, interpolateTo: function (e, t) { for (var s = 0; s < 16; ) { var n = s++, i = this.rawData, r = this.rawData.data[n] + (e.rawData.data[n] - this.rawData.data[n]) * t; if ( !i.fixed && (n >= i.length && (i.length = n + 1), i.data.length < i.length) ) { var o = i.data.length + 10, a = new Array(o); dp.blit(i.data, 0, a, 0, i.data.length), (i.data = a); } i.data[n] = r; } }, invert: function () { var e = this.get_determinant(), t = 1e-11 < Math.abs(e); if (t) { e = 1 / e; var s = this.rawData.data[0], n = this.rawData.data[4], i = this.rawData.data[8], r = this.rawData.data[12], o = this.rawData.data[1], a = this.rawData.data[5], l = this.rawData.data[9], h = this.rawData.data[13], _ = this.rawData.data[2], u = this.rawData.data[6], d = this.rawData.data[10], c = this.rawData.data[14], f = this.rawData.data[3], p = this.rawData.data[7], b = this.rawData.data[11], m = this.rawData.data[15], g = this.rawData; if ( !g.fixed && (g.length <= 0 && (g.length = 1), g.data.length < g.length) ) { var w = g.data.length + 10, v = new Array(w); dp.blit(g.data, 0, v, 0, g.data.length), (g.data = v); } g.data[0] = e * (a * (d * m - c * b) - l * (u * m - c * p) + h * (u * b - d * p)); var y = this.rawData; if ( !y.fixed && (y.length <= 1 && (y.length = 2), y.data.length < y.length) ) { var T = y.data.length + 10, S = new Array(T); dp.blit(y.data, 0, S, 0, y.data.length), (y.data = S); } y.data[1] = -e * (o * (d * m - c * b) - l * (_ * m - c * f) + h * (_ * b - d * f)); var x = this.rawData; if ( !x.fixed && (x.length <= 2 && (x.length = 3), x.data.length < x.length) ) { var E = x.data.length + 10, P = new Array(E); dp.blit(x.data, 0, P, 0, x.data.length), (x.data = P); } x.data[2] = e * (o * (u * m - c * p) - a * (_ * m - c * f) + h * (_ * p - u * f)); var R = this.rawData; if ( !R.fixed && (R.length <= 3 && (R.length = 4), R.data.length < R.length) ) { var A = R.data.length + 10, I = new Array(A); dp.blit(R.data, 0, I, 0, R.data.length), (R.data = I); } R.data[3] = -e * (o * (u * b - d * p) - a * (_ * b - d * f) + l * (_ * p - u * f)); var C = this.rawData; if ( !C.fixed && (C.length <= 4 && (C.length = 5), C.data.length < C.length) ) { var B = C.data.length + 10, D = new Array(B); dp.blit(C.data, 0, D, 0, C.data.length), (C.data = D); } C.data[4] = -e * (n * (d * m - c * b) - i * (u * m - c * p) + r * (u * b - d * p)); var k = this.rawData; if ( !k.fixed && (k.length <= 5 && (k.length = 6), k.data.length < k.length) ) { var F = k.data.length + 10, M = new Array(F); dp.blit(k.data, 0, M, 0, k.data.length), (k.data = M); } k.data[5] = e * (s * (d * m - c * b) - i * (_ * m - c * f) + r * (_ * b - d * f)); var L = this.rawData; if ( !L.fixed && (L.length <= 6 && (L.length = 7), L.data.length < L.length) ) { var N = L.data.length + 10, O = new Array(N); dp.blit(L.data, 0, O, 0, L.data.length), (L.data = O); } L.data[6] = -e * (s * (u * m - c * p) - n * (_ * m - c * f) + r * (_ * p - u * f)); var U = this.rawData; if ( !U.fixed && (U.length <= 7 && (U.length = 8), U.data.length < U.length) ) { var G = U.data.length + 10, z = new Array(G); dp.blit(U.data, 0, z, 0, U.data.length), (U.data = z); } U.data[7] = e * (s * (u * b - d * p) - n * (_ * b - d * f) + i * (_ * p - u * f)); var X = this.rawData; if ( !X.fixed && (X.length <= 8 && (X.length = 9), X.data.length < X.length) ) { var H = X.data.length + 10, V = new Array(H); dp.blit(X.data, 0, V, 0, X.data.length), (X.data = V); } X.data[8] = e * (n * (l * m - h * b) - i * (a * m - h * p) + r * (a * b - l * p)); var Y = this.rawData; if ( !Y.fixed && (Y.length <= 9 && (Y.length = 10), Y.data.length < Y.length) ) { var W = Y.data.length + 10, j = new Array(W); dp.blit(Y.data, 0, j, 0, Y.data.length), (Y.data = j); } Y.data[9] = -e * (s * (l * m - h * b) - i * (o * m - h * f) + r * (o * b - l * f)); var K = this.rawData; if ( !K.fixed && (K.length <= 10 && (K.length = 11), K.data.length < K.length) ) { var q = K.data.length + 10, Z = new Array(q); dp.blit(K.data, 0, Z, 0, K.data.length), (K.data = Z); } K.data[10] = e * (s * (a * m - h * p) - n * (o * m - h * f) + r * (o * p - a * f)); var J = this.rawData; if ( !J.fixed && (J.length <= 11 && (J.length = 12), J.data.length < J.length) ) { var Q = J.data.length + 10, $ = new Array(Q); dp.blit(J.data, 0, $, 0, J.data.length), (J.data = $); } J.data[11] = -e * (s * (a * b - l * p) - n * (o * b - l * f) + i * (o * p - a * f)); var ee = this.rawData; if ( !ee.fixed && (ee.length <= 12 && (ee.length = 13), ee.data.length < ee.length) ) { var te = ee.data.length + 10, se = new Array(te); dp.blit(ee.data, 0, se, 0, ee.data.length), (ee.data = se); } ee.data[12] = -e * (n * (l * c - h * d) - i * (a * c - h * u) + r * (a * d - l * u)); var ne = this.rawData; if ( !ne.fixed && (ne.length <= 13 && (ne.length = 14), ne.data.length < ne.length) ) { var ie = ne.data.length + 10, re = new Array(ie); dp.blit(ne.data, 0, re, 0, ne.data.length), (ne.data = re); } ne.data[13] = e * (s * (l * c - h * d) - i * (o * c - h * _) + r * (o * d - l * _)); var oe = this.rawData; if ( !oe.fixed && (oe.length <= 14 && (oe.length = 15), oe.data.length < oe.length) ) { var ae = oe.data.length + 10, le = new Array(ae); dp.blit(oe.data, 0, le, 0, oe.data.length), (oe.data = le); } oe.data[14] = -e * (s * (a * c - h * u) - n * (o * c - h * _) + r * (o * u - a * _)); var he = this.rawData; if ( !he.fixed && (he.length <= 15 && (he.length = 16), he.data.length < he.length) ) { var _e = he.data.length + 10, ue = new Array(_e); dp.blit(he.data, 0, ue, 0, he.data.length), (he.data = ue); } he.data[15] = e * (s * (a * d - l * u) - n * (o * d - l * _) + i * (o * u - a * _)); } return t; }, pointAt: function (e, t, s) { null == t && (t = new py(0, 0, -1)), null == s && (s = new py(0, -1, 0)); var n, i = t.subtract(e), r = s.clone(); i.normalize(), r.normalize(); var o = i.clone(); o.scaleBy(r.dotProduct(i)), 0 < (r = r.subtract(o)).get_length() ? r.normalize() : (r = 0 != i.x ? new py(-i.y, i.x, 0) : new py(1, 0, 0)), (n = r.crossProduct(i)).normalize(); var a = this.rawData, l = n.x; if ( !a.fixed && (a.length <= 0 && (a.length = 1), a.data.length < a.length) ) { var h = a.data.length + 10, _ = new Array(h); dp.blit(a.data, 0, _, 0, a.data.length), (a.data = _); } a.data[0] = l; var u = this.rawData, d = n.y; if ( !u.fixed && (u.length <= 4 && (u.length = 5), u.data.length < u.length) ) { var c = u.data.length + 10, f = new Array(c); dp.blit(u.data, 0, f, 0, u.data.length), (u.data = f); } u.data[4] = d; var p = this.rawData, b = n.z; if ( !p.fixed && (p.length <= 8 && (p.length = 9), p.data.length < p.length) ) { var m = p.data.length + 10, g = new Array(m); dp.blit(p.data, 0, g, 0, p.data.length), (p.data = g); } p.data[8] = b; var w = this.rawData; if ( !w.fixed && (w.length <= 12 && (w.length = 13), w.data.length < w.length) ) { var v = w.data.length + 10, y = new Array(v); dp.blit(w.data, 0, y, 0, w.data.length), (w.data = y); } w.data[12] = 0; var T = this.rawData, S = r.x; if ( !T.fixed && (T.length <= 1 && (T.length = 2), T.data.length < T.length) ) { var x = T.data.length + 10, E = new Array(x); dp.blit(T.data, 0, E, 0, T.data.length), (T.data = E); } T.data[1] = S; var P = this.rawData, R = r.y; if ( !P.fixed && (P.length <= 5 && (P.length = 6), P.data.length < P.length) ) { var A = P.data.length + 10, I = new Array(A); dp.blit(P.data, 0, I, 0, P.data.length), (P.data = I); } P.data[5] = R; var C = this.rawData, B = r.z; if ( !C.fixed && (C.length <= 9 && (C.length = 10), C.data.length < C.length) ) { var D = C.data.length + 10, k = new Array(D); dp.blit(C.data, 0, k, 0, C.data.length), (C.data = k); } C.data[9] = B; var F = this.rawData; if ( !F.fixed && (F.length <= 13 && (F.length = 14), F.data.length < F.length) ) { var M = F.data.length + 10, L = new Array(M); dp.blit(F.data, 0, L, 0, F.data.length), (F.data = L); } F.data[13] = 0; var N = this.rawData, O = i.x; if ( !N.fixed && (N.length <= 2 && (N.length = 3), N.data.length < N.length) ) { var U = N.data.length + 10, G = new Array(U); dp.blit(N.data, 0, G, 0, N.data.length), (N.data = G); } N.data[2] = O; var z = this.rawData, X = i.y; if ( !z.fixed && (z.length <= 6 && (z.length = 7), z.data.length < z.length) ) { var H = z.data.length + 10, V = new Array(H); dp.blit(z.data, 0, V, 0, z.data.length), (z.data = V); } z.data[6] = X; var Y = this.rawData, W = i.z; if ( !Y.fixed && (Y.length <= 10 && (Y.length = 11), Y.data.length < Y.length) ) { var j = Y.data.length + 10, K = new Array(j); dp.blit(Y.data, 0, K, 0, Y.data.length), (Y.data = K); } Y.data[10] = W; var q = this.rawData; if ( !q.fixed && (q.length <= 14 && (q.length = 15), q.data.length < q.length) ) { var Z = q.data.length + 10, J = new Array(Z); dp.blit(q.data, 0, J, 0, q.data.length), (q.data = J); } q.data[14] = 0; var Q = this.rawData, $ = e.x; if ( !Q.fixed && (Q.length <= 3 && (Q.length = 4), Q.data.length < Q.length) ) { var ee = Q.data.length + 10, te = new Array(ee); dp.blit(Q.data, 0, te, 0, Q.data.length), (Q.data = te); } Q.data[3] = $; var se = this.rawData, ne = e.y; if ( !se.fixed && (se.length <= 7 && (se.length = 8), se.data.length < se.length) ) { var ie = se.data.length + 10, re = new Array(ie); dp.blit(se.data, 0, re, 0, se.data.length), (se.data = re); } se.data[7] = ne; var oe = this.rawData, ae = e.z; if ( !oe.fixed && (oe.length <= 11 && (oe.length = 12), oe.data.length < oe.length) ) { var le = oe.data.length + 10, he = new Array(le); dp.blit(oe.data, 0, he, 0, oe.data.length), (oe.data = he); } oe.data[11] = ae; var _e = this.rawData; if ( !_e.fixed && (_e.length <= 15 && (_e.length = 16), _e.data.length < _e.length) ) { var ue = _e.data.length + 10, de = new Array(ue); dp.blit(_e.data, 0, de, 0, _e.data.length), (_e.data = de); } _e.data[15] = 1; }, prepend: function (e) { var t = e.rawData.data[0], s = e.rawData.data[4], n = e.rawData.data[8], i = e.rawData.data[12], r = e.rawData.data[1], o = e.rawData.data[5], a = e.rawData.data[9], l = e.rawData.data[13], h = e.rawData.data[2], _ = e.rawData.data[6], u = e.rawData.data[10], d = e.rawData.data[14], c = e.rawData.data[3], f = e.rawData.data[7], p = e.rawData.data[11], b = e.rawData.data[15], m = this.rawData.data[0], g = this.rawData.data[4], w = this.rawData.data[8], v = this.rawData.data[12], y = this.rawData.data[1], T = this.rawData.data[5], S = this.rawData.data[9], x = this.rawData.data[13], E = this.rawData.data[2], P = this.rawData.data[6], R = this.rawData.data[10], A = this.rawData.data[14], I = this.rawData.data[3], C = this.rawData.data[7], B = this.rawData.data[11], D = this.rawData.data[15], k = this.rawData; if ( !k.fixed && (k.length <= 0 && (k.length = 1), k.data.length < k.length) ) { var F = k.data.length + 10, M = new Array(F); dp.blit(k.data, 0, M, 0, k.data.length), (k.data = M); } k.data[0] = t * m + r * g + h * w + c * v; var L = this.rawData; if ( !L.fixed && (L.length <= 1 && (L.length = 2), L.data.length < L.length) ) { var N = L.data.length + 10, O = new Array(N); dp.blit(L.data, 0, O, 0, L.data.length), (L.data = O); } L.data[1] = t * y + r * T + h * S + c * x; var U = this.rawData; if ( !U.fixed && (U.length <= 2 && (U.length = 3), U.data.length < U.length) ) { var G = U.data.length + 10, z = new Array(G); dp.blit(U.data, 0, z, 0, U.data.length), (U.data = z); } U.data[2] = t * E + r * P + h * R + c * A; var X = this.rawData; if ( !X.fixed && (X.length <= 3 && (X.length = 4), X.data.length < X.length) ) { var H = X.data.length + 10, V = new Array(H); dp.blit(X.data, 0, V, 0, X.data.length), (X.data = V); } X.data[3] = t * I + r * C + h * B + c * D; var Y = this.rawData; if ( !Y.fixed && (Y.length <= 4 && (Y.length = 5), Y.data.length < Y.length) ) { var W = Y.data.length + 10, j = new Array(W); dp.blit(Y.data, 0, j, 0, Y.data.length), (Y.data = j); } Y.data[4] = s * m + o * g + _ * w + f * v; var K = this.rawData; if ( !K.fixed && (K.length <= 5 && (K.length = 6), K.data.length < K.length) ) { var q = K.data.length + 10, Z = new Array(q); dp.blit(K.data, 0, Z, 0, K.data.length), (K.data = Z); } K.data[5] = s * y + o * T + _ * S + f * x; var J = this.rawData; if ( !J.fixed && (J.length <= 6 && (J.length = 7), J.data.length < J.length) ) { var Q = J.data.length + 10, $ = new Array(Q); dp.blit(J.data, 0, $, 0, J.data.length), (J.data = $); } J.data[6] = s * E + o * P + _ * R + f * A; var ee = this.rawData; if ( !ee.fixed && (ee.length <= 7 && (ee.length = 8), ee.data.length < ee.length) ) { var te = ee.data.length + 10, se = new Array(te); dp.blit(ee.data, 0, se, 0, ee.data.length), (ee.data = se); } ee.data[7] = s * I + o * C + _ * B + f * D; var ne = this.rawData; if ( !ne.fixed && (ne.length <= 8 && (ne.length = 9), ne.data.length < ne.length) ) { var ie = ne.data.length + 10, re = new Array(ie); dp.blit(ne.data, 0, re, 0, ne.data.length), (ne.data = re); } ne.data[8] = n * m + a * g + u * w + p * v; var oe = this.rawData; if ( !oe.fixed && (oe.length <= 9 && (oe.length = 10), oe.data.length < oe.length) ) { var ae = oe.data.length + 10, le = new Array(ae); dp.blit(oe.data, 0, le, 0, oe.data.length), (oe.data = le); } oe.data[9] = n * y + a * T + u * S + p * x; var he = this.rawData; if ( !he.fixed && (he.length <= 10 && (he.length = 11), he.data.length < he.length) ) { var _e = he.data.length + 10, ue = new Array(_e); dp.blit(he.data, 0, ue, 0, he.data.length), (he.data = ue); } he.data[10] = n * E + a * P + u * R + p * A; var de = this.rawData; if ( !de.fixed && (de.length <= 11 && (de.length = 12), de.data.length < de.length) ) { var ce = de.data.length + 10, fe = new Array(ce); dp.blit(de.data, 0, fe, 0, de.data.length), (de.data = fe); } de.data[11] = n * I + a * C + u * B + p * D; var pe = this.rawData; if ( !pe.fixed && (pe.length <= 12 && (pe.length = 13), pe.data.length < pe.length) ) { var be = pe.data.length + 10, me = new Array(be); dp.blit(pe.data, 0, me, 0, pe.data.length), (pe.data = me); } pe.data[12] = i * m + l * g + d * w + b * v; var ge = this.rawData; if ( !ge.fixed && (ge.length <= 13 && (ge.length = 14), ge.data.length < ge.length) ) { var we = ge.data.length + 10, ve = new Array(we); dp.blit(ge.data, 0, ve, 0, ge.data.length), (ge.data = ve); } ge.data[13] = i * y + l * T + d * S + b * x; var ye = this.rawData; if ( !ye.fixed && (ye.length <= 14 && (ye.length = 15), ye.data.length < ye.length) ) { var Te = ye.data.length + 10, Se = new Array(Te); dp.blit(ye.data, 0, Se, 0, ye.data.length), (ye.data = Se); } ye.data[14] = i * E + l * P + d * R + b * A; var xe = this.rawData; if ( !xe.fixed && (xe.length <= 15 && (xe.length = 16), xe.data.length < xe.length) ) { var Ee = xe.data.length + 10, Pe = new Array(Ee); dp.blit(xe.data, 0, Pe, 0, xe.data.length), (xe.data = Pe); } xe.data[15] = i * I + l * C + d * B + b * D; }, prependRotation: function (e, t, s) { var n = uy.__getAxisRotation(t.x, t.y, t.z, e); if (null != s) { var i = s; n.appendTranslation(i.x, i.y, i.z); } this.prepend(n); }, prependScale: function (e, t, s) { var n = [e, 0, 0, 0, 0, t, 0, 0, 0, 0, s, 0, 0, 0, 0, 1], i = new ha(); (i.length = n.length), (i.fixed = !0), (i.data = n.slice(0)), this.prepend(new uy(i)); }, prependTranslation: function (e, t, s) { var n = new uy(); n.set_position(new py(e, t, s)), this.prepend(n); }, recompose: function (e, t) { if ( e.length < 3 || 0 == e.data[2].x || 0 == e.data[2].y || 0 == e.data[2].z ) return !1; null == t && (t = 1), this.identity(); var s = []; if ( ((s[0] = s[1] = s[2] = e.data[2].x), (s[4] = s[5] = s[6] = e.data[2].y), (s[8] = s[9] = s[10] = e.data[2].z), null == t) ) { var n = e.data[1].x, i = e.data[1].y, r = e.data[1].z, o = e.data[1].w; ms.enumEq(t, 0) && ((n *= Math.sin(o / 2)), (i *= Math.sin(o / 2)), (r *= Math.sin(o / 2)), (o = Math.cos(o / 2))); var a = this.rawData; if ( !a.fixed && (a.length <= 0 && (a.length = 1), a.data.length < a.length) ) { var l = a.data.length + 10, h = new Array(l); dp.blit(a.data, 0, h, 0, a.data.length), (a.data = h); } a.data[0] = (1 - 2 * i * i - 2 * r * r) * s[0]; var _ = this.rawData; if ( !_.fixed && (_.length <= 1 && (_.length = 2), _.data.length < _.length) ) { var u = _.data.length + 10, d = new Array(u); dp.blit(_.data, 0, d, 0, _.data.length), (_.data = d); } _.data[1] = (2 * n * i + 2 * o * r) * s[1]; var c = this.rawData; if ( !c.fixed && (c.length <= 2 && (c.length = 3), c.data.length < c.length) ) { var f = c.data.length + 10, p = new Array(f); dp.blit(c.data, 0, p, 0, c.data.length), (c.data = p); } c.data[2] = (2 * n * r - 2 * o * i) * s[2]; var b = this.rawData; if ( !b.fixed && (b.length <= 3 && (b.length = 4), b.data.length < b.length) ) { var m = b.data.length + 10, g = new Array(m); dp.blit(b.data, 0, g, 0, b.data.length), (b.data = g); } b.data[3] = 0; var w = this.rawData; if ( !w.fixed && (w.length <= 4 && (w.length = 5), w.data.length < w.length) ) { var v = w.data.length + 10, y = new Array(v); dp.blit(w.data, 0, y, 0, w.data.length), (w.data = y); } w.data[4] = (2 * n * i - 2 * o * r) * s[4]; var T = this.rawData; if ( !T.fixed && (T.length <= 5 && (T.length = 6), T.data.length < T.length) ) { var S = T.data.length + 10, x = new Array(S); dp.blit(T.data, 0, x, 0, T.data.length), (T.data = x); } T.data[5] = (1 - 2 * n * n - 2 * r * r) * s[5]; var E = this.rawData; if ( !E.fixed && (E.length <= 6 && (E.length = 7), E.data.length < E.length) ) { var P = E.data.length + 10, R = new Array(P); dp.blit(E.data, 0, R, 0, E.data.length), (E.data = R); } E.data[6] = (2 * i * r + 2 * o * n) * s[6]; var A = this.rawData; if ( !A.fixed && (A.length <= 7 && (A.length = 8), A.data.length < A.length) ) { var I = A.data.length + 10, C = new Array(I); dp.blit(A.data, 0, C, 0, A.data.length), (A.data = C); } A.data[7] = 0; var B = this.rawData; if ( !B.fixed && (B.length <= 8 && (B.length = 9), B.data.length < B.length) ) { var D = B.data.length + 10, k = new Array(D); dp.blit(B.data, 0, k, 0, B.data.length), (B.data = k); } B.data[8] = (2 * n * r + 2 * o * i) * s[8]; var F = this.rawData; if ( !F.fixed && (F.length <= 9 && (F.length = 10), F.data.length < F.length) ) { var M = F.data.length + 10, L = new Array(M); dp.blit(F.data, 0, L, 0, F.data.length), (F.data = L); } F.data[9] = (2 * i * r - 2 * o * n) * s[9]; var N = this.rawData; if ( !N.fixed && (N.length <= 10 && (N.length = 11), N.data.length < N.length) ) { var O = N.data.length + 10, U = new Array(O); dp.blit(N.data, 0, U, 0, N.data.length), (N.data = U); } N.data[10] = (1 - 2 * n * n - 2 * i * i) * s[10]; var G = this.rawData; if ( !G.fixed && (G.length <= 11 && (G.length = 12), G.data.length < G.length) ) { var z = G.data.length + 10, X = new Array(z); dp.blit(G.data, 0, X, 0, G.data.length), (G.data = X); } G.data[11] = 0; var H = this.rawData, V = e.data[0].x; if ( !H.fixed && (H.length <= 12 && (H.length = 13), H.data.length < H.length) ) { var Y = H.data.length + 10, W = new Array(Y); dp.blit(H.data, 0, W, 0, H.data.length), (H.data = W); } H.data[12] = V; var j = this.rawData, K = e.data[0].y; if ( !j.fixed && (j.length <= 13 && (j.length = 14), j.data.length < j.length) ) { var q = j.data.length + 10, Z = new Array(q); dp.blit(j.data, 0, Z, 0, j.data.length), (j.data = Z); } j.data[13] = K; var J = this.rawData, Q = e.data[0].z; if ( !J.fixed && (J.length <= 14 && (J.length = 15), J.data.length < J.length) ) { var $ = J.data.length + 10, ee = new Array($); dp.blit(J.data, 0, ee, 0, J.data.length), (J.data = ee); } J.data[14] = Q; var te = this.rawData; if ( !te.fixed && (te.length <= 15 && (te.length = 16), te.data.length < te.length) ) { var se = te.data.length + 10, ne = new Array(se); dp.blit(te.data, 0, ne, 0, te.data.length), (te.data = ne); } te.data[15] = 1; } else if (1 == t) { var ie = Math.cos(e.data[1].x), re = Math.cos(e.data[1].y), oe = Math.cos(e.data[1].z), ae = Math.sin(e.data[1].x), le = Math.sin(e.data[1].y), he = Math.sin(e.data[1].z), _e = this.rawData; if ( !_e.fixed && (_e.length <= 0 && (_e.length = 1), _e.data.length < _e.length) ) { var ue = _e.data.length + 10, de = new Array(ue); dp.blit(_e.data, 0, de, 0, _e.data.length), (_e.data = de); } _e.data[0] = re * oe * s[0]; var ce = this.rawData; if ( !ce.fixed && (ce.length <= 1 && (ce.length = 2), ce.data.length < ce.length) ) { var fe = ce.data.length + 10, pe = new Array(fe); dp.blit(ce.data, 0, pe, 0, ce.data.length), (ce.data = pe); } ce.data[1] = re * he * s[1]; var be = this.rawData; if ( !be.fixed && (be.length <= 2 && (be.length = 3), be.data.length < be.length) ) { var me = be.data.length + 10, ge = new Array(me); dp.blit(be.data, 0, ge, 0, be.data.length), (be.data = ge); } be.data[2] = -le * s[2]; var we = this.rawData; if ( !we.fixed && (we.length <= 3 && (we.length = 4), we.data.length < we.length) ) { var ve = we.data.length + 10, ye = new Array(ve); dp.blit(we.data, 0, ye, 0, we.data.length), (we.data = ye); } we.data[3] = 0; var Te = this.rawData; if ( !Te.fixed && (Te.length <= 4 && (Te.length = 5), Te.data.length < Te.length) ) { var Se = Te.data.length + 10, xe = new Array(Se); dp.blit(Te.data, 0, xe, 0, Te.data.length), (Te.data = xe); } Te.data[4] = (ae * le * oe - ie * he) * s[4]; var Ee = this.rawData; if ( !Ee.fixed && (Ee.length <= 5 && (Ee.length = 6), Ee.data.length < Ee.length) ) { var Pe = Ee.data.length + 10, Re = new Array(Pe); dp.blit(Ee.data, 0, Re, 0, Ee.data.length), (Ee.data = Re); } Ee.data[5] = (ae * le * he + ie * oe) * s[5]; var Ae = this.rawData; if ( !Ae.fixed && (Ae.length <= 6 && (Ae.length = 7), Ae.data.length < Ae.length) ) { var Ie = Ae.data.length + 10, Ce = new Array(Ie); dp.blit(Ae.data, 0, Ce, 0, Ae.data.length), (Ae.data = Ce); } Ae.data[6] = ae * re * s[6]; var Be = this.rawData; if ( !Be.fixed && (Be.length <= 7 && (Be.length = 8), Be.data.length < Be.length) ) { var De = Be.data.length + 10, ke = new Array(De); dp.blit(Be.data, 0, ke, 0, Be.data.length), (Be.data = ke); } Be.data[7] = 0; var Fe = this.rawData; if ( !Fe.fixed && (Fe.length <= 8 && (Fe.length = 9), Fe.data.length < Fe.length) ) { var Me = Fe.data.length + 10, Le = new Array(Me); dp.blit(Fe.data, 0, Le, 0, Fe.data.length), (Fe.data = Le); } Fe.data[8] = (ie * le * oe + ae * he) * s[8]; var Ne = this.rawData; if ( !Ne.fixed && (Ne.length <= 9 && (Ne.length = 10), Ne.data.length < Ne.length) ) { var Oe = Ne.data.length + 10, Ue = new Array(Oe); dp.blit(Ne.data, 0, Ue, 0, Ne.data.length), (Ne.data = Ue); } Ne.data[9] = (ie * le * he - ae * oe) * s[9]; var Ge = this.rawData; if ( !Ge.fixed && (Ge.length <= 10 && (Ge.length = 11), Ge.data.length < Ge.length) ) { var ze = Ge.data.length + 10, Xe = new Array(ze); dp.blit(Ge.data, 0, Xe, 0, Ge.data.length), (Ge.data = Xe); } Ge.data[10] = ie * re * s[10]; var He = this.rawData; if ( !He.fixed && (He.length <= 11 && (He.length = 12), He.data.length < He.length) ) { var Ve = He.data.length + 10, Ye = new Array(Ve); dp.blit(He.data, 0, Ye, 0, He.data.length), (He.data = Ye); } He.data[11] = 0; var We = this.rawData, je = e.data[0].x; if ( !We.fixed && (We.length <= 12 && (We.length = 13), We.data.length < We.length) ) { var Ke = We.data.length + 10, qe = new Array(Ke); dp.blit(We.data, 0, qe, 0, We.data.length), (We.data = qe); } We.data[12] = je; var Ze = this.rawData, Je = e.data[0].y; if ( !Ze.fixed && (Ze.length <= 13 && (Ze.length = 14), Ze.data.length < Ze.length) ) { var Qe = Ze.data.length + 10, $e = new Array(Qe); dp.blit(Ze.data, 0, $e, 0, Ze.data.length), (Ze.data = $e); } Ze.data[13] = Je; var et = this.rawData, tt = e.data[0].z; if ( !et.fixed && (et.length <= 14 && (et.length = 15), et.data.length < et.length) ) { var st = et.data.length + 10, nt = new Array(st); dp.blit(et.data, 0, nt, 0, et.data.length), (et.data = nt); } et.data[14] = tt; var it = this.rawData; if ( !it.fixed && (it.length <= 15 && (it.length = 16), it.data.length < it.length) ) { var rt = it.data.length + 10, ot = new Array(rt); dp.blit(it.data, 0, ot, 0, it.data.length), (it.data = ot); } it.data[15] = 1; } else { var at = e.data[1].x, lt = e.data[1].y, ht = e.data[1].z, _t = e.data[1].w; ms.enumEq(t, 0) && ((at *= Math.sin(_t / 2)), (lt *= Math.sin(_t / 2)), (ht *= Math.sin(_t / 2)), (_t = Math.cos(_t / 2))); var ut = this.rawData; if ( !ut.fixed && (ut.length <= 0 && (ut.length = 1), ut.data.length < ut.length) ) { var dt = ut.data.length + 10, ct = new Array(dt); dp.blit(ut.data, 0, ct, 0, ut.data.length), (ut.data = ct); } ut.data[0] = (1 - 2 * lt * lt - 2 * ht * ht) * s[0]; var ft = this.rawData; if ( !ft.fixed && (ft.length <= 1 && (ft.length = 2), ft.data.length < ft.length) ) { var pt = ft.data.length + 10, bt = new Array(pt); dp.blit(ft.data, 0, bt, 0, ft.data.length), (ft.data = bt); } ft.data[1] = (2 * at * lt + 2 * _t * ht) * s[1]; var mt = this.rawData; if ( !mt.fixed && (mt.length <= 2 && (mt.length = 3), mt.data.length < mt.length) ) { var gt = mt.data.length + 10, wt = new Array(gt); dp.blit(mt.data, 0, wt, 0, mt.data.length), (mt.data = wt); } mt.data[2] = (2 * at * ht - 2 * _t * lt) * s[2]; var vt = this.rawData; if ( !vt.fixed && (vt.length <= 3 && (vt.length = 4), vt.data.length < vt.length) ) { var yt = vt.data.length + 10, Tt = new Array(yt); dp.blit(vt.data, 0, Tt, 0, vt.data.length), (vt.data = Tt); } vt.data[3] = 0; var St = this.rawData; if ( !St.fixed && (St.length <= 4 && (St.length = 5), St.data.length < St.length) ) { var xt = St.data.length + 10, Et = new Array(xt); dp.blit(St.data, 0, Et, 0, St.data.length), (St.data = Et); } St.data[4] = (2 * at * lt - 2 * _t * ht) * s[4]; var Pt = this.rawData; if ( !Pt.fixed && (Pt.length <= 5 && (Pt.length = 6), Pt.data.length < Pt.length) ) { var Rt = Pt.data.length + 10, At = new Array(Rt); dp.blit(Pt.data, 0, At, 0, Pt.data.length), (Pt.data = At); } Pt.data[5] = (1 - 2 * at * at - 2 * ht * ht) * s[5]; var It = this.rawData; if ( !It.fixed && (It.length <= 6 && (It.length = 7), It.data.length < It.length) ) { var Ct = It.data.length + 10, Bt = new Array(Ct); dp.blit(It.data, 0, Bt, 0, It.data.length), (It.data = Bt); } It.data[6] = (2 * lt * ht + 2 * _t * at) * s[6]; var Dt = this.rawData; if ( !Dt.fixed && (Dt.length <= 7 && (Dt.length = 8), Dt.data.length < Dt.length) ) { var kt = Dt.data.length + 10, Ft = new Array(kt); dp.blit(Dt.data, 0, Ft, 0, Dt.data.length), (Dt.data = Ft); } Dt.data[7] = 0; var Mt = this.rawData; if ( !Mt.fixed && (Mt.length <= 8 && (Mt.length = 9), Mt.data.length < Mt.length) ) { var Lt = Mt.data.length + 10, Nt = new Array(Lt); dp.blit(Mt.data, 0, Nt, 0, Mt.data.length), (Mt.data = Nt); } Mt.data[8] = (2 * at * ht + 2 * _t * lt) * s[8]; var Ot = this.rawData; if ( !Ot.fixed && (Ot.length <= 9 && (Ot.length = 10), Ot.data.length < Ot.length) ) { var Ut = Ot.data.length + 10, Gt = new Array(Ut); dp.blit(Ot.data, 0, Gt, 0, Ot.data.length), (Ot.data = Gt); } Ot.data[9] = (2 * lt * ht - 2 * _t * at) * s[9]; var zt = this.rawData; if ( !zt.fixed && (zt.length <= 10 && (zt.length = 11), zt.data.length < zt.length) ) { var Xt = zt.data.length + 10, Ht = new Array(Xt); dp.blit(zt.data, 0, Ht, 0, zt.data.length), (zt.data = Ht); } zt.data[10] = (1 - 2 * at * at - 2 * lt * lt) * s[10]; var Vt = this.rawData; if ( !Vt.fixed && (Vt.length <= 11 && (Vt.length = 12), Vt.data.length < Vt.length) ) { var Yt = Vt.data.length + 10, Wt = new Array(Yt); dp.blit(Vt.data, 0, Wt, 0, Vt.data.length), (Vt.data = Wt); } Vt.data[11] = 0; var jt = this.rawData, Kt = e.data[0].x; if ( !jt.fixed && (jt.length <= 12 && (jt.length = 13), jt.data.length < jt.length) ) { var qt = jt.data.length + 10, Zt = new Array(qt); dp.blit(jt.data, 0, Zt, 0, jt.data.length), (jt.data = Zt); } jt.data[12] = Kt; var Jt = this.rawData, Qt = e.data[0].y; if ( !Jt.fixed && (Jt.length <= 13 && (Jt.length = 14), Jt.data.length < Jt.length) ) { var $t = Jt.data.length + 10, es = new Array($t); dp.blit(Jt.data, 0, es, 0, Jt.data.length), (Jt.data = es); } Jt.data[13] = Qt; var ts = this.rawData, ss = e.data[0].z; if ( !ts.fixed && (ts.length <= 14 && (ts.length = 15), ts.data.length < ts.length) ) { var ns = ts.data.length + 10, is = new Array(ns); dp.blit(ts.data, 0, is, 0, ts.data.length), (ts.data = is); } ts.data[14] = ss; var rs = this.rawData; if ( !rs.fixed && (rs.length <= 15 && (rs.length = 16), rs.data.length < rs.length) ) { var os = rs.data.length + 10, as = new Array(os); dp.blit(rs.data, 0, as, 0, rs.data.length), (rs.data = as); } rs.data[15] = 1; } if (0 == e.data[2].x) { var ls = this.rawData; if ( !ls.fixed && (ls.length <= 0 && (ls.length = 1), ls.data.length < ls.length) ) { var hs = ls.data.length + 10, _s = new Array(hs); dp.blit(ls.data, 0, _s, 0, ls.data.length), (ls.data = _s); } ls.data[0] = 1e-15; } if (0 == e.data[2].y) { var us = this.rawData; if ( !us.fixed && (us.length <= 5 && (us.length = 6), us.data.length < us.length) ) { var ds = us.data.length + 10, cs = new Array(ds); dp.blit(us.data, 0, cs, 0, us.data.length), (us.data = cs); } us.data[5] = 1e-15; } if (0 == e.data[2].z) { var fs = this.rawData; if ( !fs.fixed && (fs.length <= 10 && (fs.length = 11), fs.data.length < fs.length) ) { var ps = fs.data.length + 10, bs = new Array(ps); dp.blit(fs.data, 0, bs, 0, fs.data.length), (fs.data = bs); } fs.data[10] = 1e-15; } return !(0 == e.data[2].x || 0 == e.data[2].y || 0 == e.data[2].y); }, transformVector: function (e) { var t = e.x, s = e.y, n = e.z; return new py( t * this.rawData.data[0] + s * this.rawData.data[4] + n * this.rawData.data[8] + this.rawData.data[12], t * this.rawData.data[1] + s * this.rawData.data[5] + n * this.rawData.data[9] + this.rawData.data[13], t * this.rawData.data[2] + s * this.rawData.data[6] + n * this.rawData.data[10] + this.rawData.data[14], t * this.rawData.data[3] + s * this.rawData.data[7] + n * this.rawData.data[11] + this.rawData.data[15] ); }, transformVectors: function (e, t) { for (var s, n, i, r = 0; r + 3 <= e.length; ) { (s = e.data[r]), (n = e.data[r + 1]), (i = e.data[r + 2]); var o = s * this.rawData.data[0] + n * this.rawData.data[4] + i * this.rawData.data[8] + this.rawData.data[12]; if ( !t.fixed && (r >= t.length && (t.length = r + 1), t.data.length < t.length) ) { var a = t.data.length + 10, l = new Array(a); dp.blit(t.data, 0, l, 0, t.data.length), (t.data = l); } t.data[r] = o; var h = r + 1, _ = s * this.rawData.data[1] + n * this.rawData.data[5] + i * this.rawData.data[9] + this.rawData.data[13]; if ( !t.fixed && (h >= t.length && (t.length = h + 1), t.data.length < t.length) ) { var u = t.data.length + 10, d = new Array(u); dp.blit(t.data, 0, d, 0, t.data.length), (t.data = d); } t.data[h] = _; var c = r + 2, f = s * this.rawData.data[2] + n * this.rawData.data[6] + i * this.rawData.data[10] + this.rawData.data[14]; if ( !t.fixed && (c >= t.length && (t.length = c + 1), t.data.length < t.length) ) { var p = t.data.length + 10, b = new Array(p); dp.blit(t.data, 0, b, 0, t.data.length), (t.data = b); } (t.data[c] = f), (r += 3); } }, transpose: function () { var e = this.rawData, t = new ha(); (t.length = e.length), (t.fixed = e.fixed); var s = e.length, n = new Array(s); (t.data = n), dp.blit(e.data, 0, t.data, 0, e.length); var i = t, r = this.rawData, o = i.data[4]; if ( !r.fixed && (r.length <= 1 && (r.length = 2), r.data.length < r.length) ) { var a = r.data.length + 10, l = new Array(a); dp.blit(r.data, 0, l, 0, r.data.length), (r.data = l); } r.data[1] = o; var h = this.rawData, _ = i.data[8]; if ( !h.fixed && (h.length <= 2 && (h.length = 3), h.data.length < h.length) ) { var u = h.data.length + 10, d = new Array(u); dp.blit(h.data, 0, d, 0, h.data.length), (h.data = d); } h.data[2] = _; var c = this.rawData, f = i.data[12]; if ( !c.fixed && (c.length <= 3 && (c.length = 4), c.data.length < c.length) ) { var p = c.data.length + 10, b = new Array(p); dp.blit(c.data, 0, b, 0, c.data.length), (c.data = b); } c.data[3] = f; var m = this.rawData, g = i.data[1]; if ( !m.fixed && (m.length <= 4 && (m.length = 5), m.data.length < m.length) ) { var w = m.data.length + 10, v = new Array(w); dp.blit(m.data, 0, v, 0, m.data.length), (m.data = v); } m.data[4] = g; var y = this.rawData, T = i.data[9]; if ( !y.fixed && (y.length <= 6 && (y.length = 7), y.data.length < y.length) ) { var S = y.data.length + 10, x = new Array(S); dp.blit(y.data, 0, x, 0, y.data.length), (y.data = x); } y.data[6] = T; var E = this.rawData, P = i.data[13]; if ( !E.fixed && (E.length <= 7 && (E.length = 8), E.data.length < E.length) ) { var R = E.data.length + 10, A = new Array(R); dp.blit(E.data, 0, A, 0, E.data.length), (E.data = A); } E.data[7] = P; var I = this.rawData, C = i.data[2]; if ( !I.fixed && (I.length <= 8 && (I.length = 9), I.data.length < I.length) ) { var B = I.data.length + 10, D = new Array(B); dp.blit(I.data, 0, D, 0, I.data.length), (I.data = D); } I.data[8] = C; var k = this.rawData, F = i.data[6]; if ( !k.fixed && (k.length <= 9 && (k.length = 10), k.data.length < k.length) ) { var M = k.data.length + 10, L = new Array(M); dp.blit(k.data, 0, L, 0, k.data.length), (k.data = L); } k.data[9] = F; var N = this.rawData, O = i.data[14]; if ( !N.fixed && (N.length <= 11 && (N.length = 12), N.data.length < N.length) ) { var U = N.data.length + 10, G = new Array(U); dp.blit(N.data, 0, G, 0, N.data.length), (N.data = G); } N.data[11] = O; var z = this.rawData, X = i.data[3]; if ( !z.fixed && (z.length <= 12 && (z.length = 13), z.data.length < z.length) ) { var H = z.data.length + 10, V = new Array(H); dp.blit(z.data, 0, V, 0, z.data.length), (z.data = V); } z.data[12] = X; var Y = this.rawData, W = i.data[7]; if ( !Y.fixed && (Y.length <= 13 && (Y.length = 14), Y.data.length < Y.length) ) { var j = Y.data.length + 10, K = new Array(j); dp.blit(Y.data, 0, K, 0, Y.data.length), (Y.data = K); } Y.data[13] = W; var q = this.rawData, Z = i.data[11]; if ( !q.fixed && (q.length <= 14 && (q.length = 15), q.data.length < q.length) ) { var J = q.data.length + 10, Q = new Array(J); dp.blit(q.data, 0, Q, 0, q.data.length), (q.data = Q); } q.data[14] = Z; }, get_determinant: function () { return ( (this.rawData.data[0] * this.rawData.data[5] - this.rawData.data[4] * this.rawData.data[1]) * (this.rawData.data[10] * this.rawData.data[15] - this.rawData.data[14] * this.rawData.data[11]) - (this.rawData.data[0] * this.rawData.data[9] - this.rawData.data[8] * this.rawData.data[1]) * (this.rawData.data[6] * this.rawData.data[15] - this.rawData.data[14] * this.rawData.data[7]) + (this.rawData.data[0] * this.rawData.data[13] - this.rawData.data[12] * this.rawData.data[1]) * (this.rawData.data[6] * this.rawData.data[11] - this.rawData.data[10] * this.rawData.data[7]) + (this.rawData.data[4] * this.rawData.data[9] - this.rawData.data[8] * this.rawData.data[5]) * (this.rawData.data[2] * this.rawData.data[15] - this.rawData.data[14] * this.rawData.data[3]) - (this.rawData.data[4] * this.rawData.data[13] - this.rawData.data[12] * this.rawData.data[5]) * (this.rawData.data[2] * this.rawData.data[11] - this.rawData.data[10] * this.rawData.data[3]) + (this.rawData.data[8] * this.rawData.data[13] - this.rawData.data[12] * this.rawData.data[9]) * (this.rawData.data[2] * this.rawData.data[7] - this.rawData.data[6] * this.rawData.data[3]) ); }, get_position: function () { return new py( this.rawData.data[12], this.rawData.data[13], this.rawData.data[14] ); }, set_position: function (e) { var t = this.rawData, s = e.x; if ( !t.fixed && (t.length <= 12 && (t.length = 13), t.data.length < t.length) ) { var n = t.data.length + 10, i = new Array(n); dp.blit(t.data, 0, i, 0, t.data.length), (t.data = i); } t.data[12] = s; var r = this.rawData, o = e.y; if ( !r.fixed && (r.length <= 13 && (r.length = 14), r.data.length < r.length) ) { var a = r.data.length + 10, l = new Array(a); dp.blit(r.data, 0, l, 0, r.data.length), (r.data = l); } r.data[13] = o; var h = this.rawData, _ = e.z; if ( !h.fixed && (h.length <= 14 && (h.length = 15), h.data.length < h.length) ) { var u = h.data.length + 10, d = new Array(u); dp.blit(h.data, 0, d, 0, h.data.length), (h.data = d); } return (h.data[14] = _), e; }, __class__: uy, __properties__: { set_position: "set_position", get_position: "get_position", get_determinant: "get_determinant", }, }); var dy = {}; ((s["openfl.geom._Orientation3D.Orientation3D_Impl_"] = dy).__name__ = [ "openfl", "geom", "_Orientation3D", "Orientation3D_Impl_", ]), (dy.fromString = function (e) { switch (e) { case "axisAngle": return 0; case "eulerAngles": return 1; case "quaternion": return 2; default: return null; } }), (dy.toString = function (e) { switch (e) { case 0: return "axisAngle"; case 1: return "eulerAngles"; case 2: return "quaternion"; default: return null; } }); var cy = function (e, t, s, n) { null == n && (n = 0), null == s && (s = 0), null == t && (t = 0), null == e && (e = 0), (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.x = e), (this.y = t), (this.width = s), (this.height = n); }; ((s["openfl.geom.Rectangle"] = cy).__name__ = [ "openfl", "geom", "Rectangle", ]), (cy.__interfaces__ = [br]), (cy.prototype = { clone: function () { return new cy(this.x, this.y, this.width, this.height); }, contains: function (e, t) { return ( e >= this.x && t >= this.y && e < this.get_right() && t < this.get_bottom() ); }, containsPoint: function (e) { return this.contains(e.x, e.y); }, containsRect: function (e) { return e.width <= 0 || e.height <= 0 ? e.x > this.x && e.y > this.y && e.get_right() < this.get_right() && e.get_bottom() < this.get_bottom() : e.x >= this.x && e.y >= this.y && e.get_right() <= this.get_right() && e.get_bottom() <= this.get_bottom(); }, copyFrom: function (e) { (this.x = e.x), (this.y = e.y), (this.width = e.width), (this.height = e.height); }, equals: function (e) { return ( null != e && this.x == e.x && this.y == e.y && this.width == e.width && this.height == e.height ); }, inflate: function (e, t) { (this.x -= e), (this.width += 2 * e), (this.y -= t), (this.height += 2 * t); }, inflatePoint: function (e) { this.inflate(e.x, e.y); }, intersection: function (e) { var t = this.x < e.x ? e.x : this.x, s = this.get_right() > e.get_right() ? e.get_right() : this.get_right(); if (s <= t) return new cy(); var n = this.y < e.y ? e.y : this.y, i = this.get_bottom() > e.get_bottom() ? e.get_bottom() : this.get_bottom(); return i <= n ? new cy() : new cy(t, n, s - t, i - n); }, intersects: function (e) { var t = this.x < e.x ? e.x : this.x; return ( !( (this.get_right() > e.get_right() ? e.get_right() : this.get_right()) <= t ) && (this.y < e.y ? e.y : this.y) < (this.get_bottom() > e.get_bottom() ? e.get_bottom() : this.get_bottom()) ); }, isEmpty: function () { return this.width <= 0 || this.height <= 0; }, offset: function (e, t) { (this.x += e), (this.y += t); }, offsetPoint: function (e) { (this.x += e.x), (this.y += e.y); }, setEmpty: function () { this.x = this.y = this.width = this.height = 0; }, setTo: function (e, t, s, n) { (this.x = e), (this.y = t), (this.width = s), (this.height = n); }, toString: function () { return ( "(x=" + this.x + ", y=" + this.y + ", width=" + this.width + ", height=" + this.height + ")" ); }, union: function (e) { if (0 == this.width || 0 == this.height) return e.clone(); if (0 == e.width || 0 == e.height) return this.clone(); var t = this.x > e.x ? e.x : this.x, s = this.get_right() < e.get_right() ? e.get_right() : this.get_right(), n = this.y > e.y ? e.y : this.y, i = this.get_bottom() < e.get_bottom() ? e.get_bottom() : this.get_bottom(); return new cy(t, n, s - t, i - n); }, __contract: function (e, t, s, n) { (0 == this.width && 0 == this.height) || (this.x < e && (this.x = e), this.y < t && (this.y = t), this.get_right() > e + s && (this.width = e + s - this.x), this.get_bottom() > t + n && (this.height = t + n - this.y)); }, __expand: function (e, t, s, n) { if (0 != s || 0 != n) { if (0 == this.width && 0 == this.height) return ( (this.x = e), (this.y = t), (this.width = s), void (this.height = n) ); var i = this.get_right(), r = this.get_bottom(); this.x > e && ((this.x = e), (this.width = i - e)), this.y > t && ((this.y = t), (this.height = r - t)), i < e + s && (this.width = e + s - this.x), r < t + n && (this.height = t + n - this.y); } }, __toLimeRectangle: function () { return new Jb(this.x, this.y, this.width, this.height); }, transform: function (e, t) { var s = t.a * this.x + t.c * this.y, n = s, i = t.b * this.x + t.d * this.y, r = i, o = t.a * (this.x + this.width) + t.c * this.y, a = t.b * (this.x + this.width) + t.d * this.y; o < s && (s = o), a < i && (i = a), n < o && (n = o), r < a && (r = a), (o = t.a * (this.x + this.width) + t.c * (this.y + this.height)) < s && (s = o), (a = t.b * (this.x + this.width) + t.d * (this.y + this.height)) < i && (i = a), n < o && (n = o), r < a && (r = a), (o = t.a * this.x + t.c * (this.y + this.height)) < s && (s = o), (a = t.b * this.x + t.d * (this.y + this.height)) < i && (i = a), n < o && (n = o), r < a && (r = a), e.setTo(s + t.tx, i + t.ty, n - s, r - i); }, get_bottom: function () { return this.y + this.height; }, set_bottom: function (e) { return (this.height = e - this.y), e; }, get_bottomRight: function () { return new qm(this.x + this.width, this.y + this.height); }, set_bottomRight: function (e) { return ( (this.width = e.x - this.x), (this.height = e.y - this.y), e.clone() ); }, get_left: function () { return this.x; }, set_left: function (e) { return (this.width -= e - this.x), (this.x = e); }, get_right: function () { return this.x + this.width; }, set_right: function (e) { return (this.width = e - this.x), e; }, get_size: function () { return new qm(this.width, this.height); }, set_size: function (e) { return (this.width = e.x), (this.height = e.y), e.clone(); }, get_top: function () { return this.y; }, set_top: function (e) { return (this.height -= e - this.y), (this.y = e); }, get_topLeft: function () { return new qm(this.x, this.y); }, set_topLeft: function (e) { return (this.x = e.x), (this.y = e.y), e.clone(); }, getCLID: function () { return cy.__clid; }, serialize: function (e) { e.out.addInt32(bp.floatToI32(this.height)), e.out.addInt32(bp.floatToI32(this.width)), e.out.addInt32(bp.floatToI32(this.x)), e.out.addInt32(bp.floatToI32(this.y)); }, getSerializeSchema: function () { var e = new Cp(); return ( e.fieldsNames.push("height"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("width"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("x"), e.fieldsTypes.push(Ap.PFloat), e.fieldsNames.push("y"), e.fieldsTypes.push(Ap.PFloat), (e.isFinal = mr.isClassFinal(cy.__clid)), e ); }, unserializeInit: function () {}, unserialize: function (e) { var t = e.input.getFloat(e.inPos); (e.inPos += 4), (this.height = t); var s = e.input.getFloat(e.inPos); (e.inPos += 4), (this.width = s); var n = e.input.getFloat(e.inPos); (e.inPos += 4), (this.x = n); var i = e.input.getFloat(e.inPos); (e.inPos += 4), (this.y = i); }, __class__: cy, __properties__: { set_topLeft: "set_topLeft", get_topLeft: "get_topLeft", set_top: "set_top", get_top: "get_top", set_size: "set_size", get_size: "get_size", set_right: "set_right", get_right: "get_right", set_left: "set_left", get_left: "get_left", set_bottomRight: "set_bottomRight", get_bottomRight: "get_bottomRight", set_bottom: "set_bottom", get_bottom: "get_bottom", }, }); var fy = function (e) { (this.concatenatedColorTransform = new jm()), (this.pixelBounds = new cy()), (this.__displayObject = e), (this.__hasMatrix = !0); }; ((s["openfl.geom.Transform"] = fy).__name__ = [ "openfl", "geom", "Transform", ]), (fy.prototype = { reset: function (e) { this.concatenatedColorTransform.reset(), this.pixelBounds.setEmpty(), (this.__displayObject = e), (this.__hasMatrix = !0); }, get_colorTransform: function () { return this.__displayObject.__colorTransform; }, set_colorTransform: function (e) { if (!this.__displayObject.__colorTransform.__equals(e)) { this.__displayObject.__colorTransform.copyFrom(e); var t = this.__displayObject; t.__isMask && (t.__maskCached = !1), t.__renderDirty || ((t.__renderDirty = !0), W.__worldRenderDirty++, null != t.__cachedParent && t.__cachedParent.__setRenderDirty()), t.__updateDirty || null == t.stage || t == t.stage || (t.__updateDirty = !0); } return e; }, get_matrix: function () { return this.__hasMatrix ? this.__displayObject.__transform.clone() : null; }, getMatrixNoClone: function () { return this.__hasMatrix ? this.__displayObject.__transform : null; }, get_concatenatedMatrix: function () { return this.__hasMatrix ? this.__displayObject.__getWorldTransform().clone() : null; }, set_matrix: function (e) { if (null == e) return (this.__hasMatrix = !1), null; if ( ((this.__hasMatrix = !0), (this.__hasMatrix3D = !1), null != this.__displayObject) ) { var t = (180 / Math.PI) * Math.atan2(e.d, e.c) - 90; if (t != this.__displayObject.__rotation) { var s = (this.__displayObject.__rotation = t) * (Math.PI / 180); (this.__displayObject.__rotationSine = Math.sin(s)), (this.__displayObject.__rotationCosine = Math.cos(s)); } this.__displayObject.__transform.copyFrom(e); var n = this.__displayObject; n.__transformDirty || ((n.__transformDirty = !0), n.__isMask && (n.__maskCached = !1), n.__renderDirty || ((n.__renderDirty = !0), W.__worldRenderDirty++, null != n.__cachedParent && n.__cachedParent.__setRenderDirty()), n.__updateDirty || null == n.stage || n == n.stage || (n.__updateDirty = !0), W.__worldTransformDirty++); } return e; }, get_matrix3D: function () { if (this.__hasMatrix3D) { var e = this.__displayObject.__transform, t = [e.a, e.b, 0, 0, e.c, e.d, 0, 0, 0, 0, 1, 0, e.tx, e.ty, 0, 1], s = new ha(); return ( (s.length = t.length), (s.fixed = !0), (s.data = t.slice(0)), new uy(s) ); } return null; }, set_matrix3D: function (e) { if (null == e) return (this.__hasMatrix3D = !1), null; if ( ((this.__hasMatrix = !1), (this.__hasMatrix3D = !0), null != this.__displayObject) ) { var t = (180 / Math.PI) * Math.atan2(e.rawData.data[5], e.rawData.data[4]) - 90; if (t != this.__displayObject.__rotation) { var s = (this.__displayObject.__rotation = t) * (Math.PI / 180); (this.__displayObject.__rotationSine = Math.sin(s)), (this.__displayObject.__rotationCosine = Math.cos(s)); } (this.__displayObject.__transform.a = e.rawData.data[0]), (this.__displayObject.__transform.b = e.rawData.data[1]), (this.__displayObject.__transform.c = e.rawData.data[5]), (this.__displayObject.__transform.d = e.rawData.data[6]), (this.__displayObject.__transform.tx = e.rawData.data[12]), (this.__displayObject.__transform.ty = e.rawData.data[13]); var n = this.__displayObject; n.__transformDirty || ((n.__transformDirty = !0), n.__isMask && (n.__maskCached = !1), n.__renderDirty || ((n.__renderDirty = !0), W.__worldRenderDirty++, null != n.__cachedParent && n.__cachedParent.__setRenderDirty()), n.__updateDirty || null == n.stage || n == n.stage || (n.__updateDirty = !0), W.__worldTransformDirty++); } return e; }, __class__: fy, __properties__: { set_matrix3D: "set_matrix3D", get_matrix3D: "get_matrix3D", set_matrix: "set_matrix", get_matrix: "get_matrix", get_concatenatedMatrix: "get_concatenatedMatrix", set_colorTransform: "set_colorTransform", get_colorTransform: "get_colorTransform", }, }); var py = function (e, t, s, n) { null == n && (n = 0), null == s && (s = 0), null == t && (t = 0), null == e && (e = 0), (this.w = n), (this.x = e), (this.y = t), (this.z = s); }; ((s["openfl.geom.Vector3D"] = py).__name__ = ["openfl", "geom", "Vector3D"]), (py.__properties__ = { get_Z_AXIS: "get_Z_AXIS", get_Y_AXIS: "get_Y_AXIS", get_X_AXIS: "get_X_AXIS", }), (py.X_AXIS = null), (py.Y_AXIS = null), (py.Z_AXIS = null), (py.angleBetween = function (e, t) { var s = e.get_length(), n = t.get_length(), i = e.dotProduct(t); return 0 != s && (i /= s), 0 != n && (i /= n), Math.acos(i); }), (py.distance = function (e, t) { var s = t.x - e.x, n = t.y - e.y, i = t.z - e.z; return Math.sqrt(s * s + n * n + i * i); }), (py.get_X_AXIS = function () { return new py(1, 0, 0); }), (py.get_Y_AXIS = function () { return new py(0, 1, 0); }), (py.get_Z_AXIS = function () { return new py(0, 0, 1); }), (py.prototype = { add: function (e) { return new py(this.x + e.x, this.y + e.y, this.z + e.z); }, clone: function () { return new py(this.x, this.y, this.z, this.w); }, copyFrom: function (e) { (this.x = e.x), (this.y = e.y), (this.z = e.z); }, crossProduct: function (e) { return new py( this.y * e.z - this.z * e.y, this.z * e.x - this.x * e.z, this.x * e.y - this.y * e.x, 1 ); }, decrementBy: function (e) { (this.x -= e.x), (this.y -= e.y), (this.z -= e.z); }, dotProduct: function (e) { return this.x * e.x + this.y * e.y + this.z * e.z; }, equals: function (e, t) { return ( null == t && (t = !1), this.x == e.x && this.y == e.y && this.z == e.z && (!t || this.w == e.w) ); }, incrementBy: function (e) { (this.x += e.x), (this.y += e.y), (this.z += e.z); }, nearEquals: function (e, t, s) { return ( null == s && (s = !1), Math.abs(this.x - e.x) < t && Math.abs(this.y - e.y) < t && Math.abs(this.z - e.z) < t && (!s || Math.abs(this.w - e.w) < t) ); }, negate: function () { (this.x *= -1), (this.y *= -1), (this.z *= -1); }, normalize: function () { var e = this.get_length(); return 0 != e && ((this.x /= e), (this.y /= e), (this.z /= e)), e; }, project: function () { (this.x /= this.w), (this.y /= this.w), (this.z /= this.w); }, scaleBy: function (e) { (this.x *= e), (this.y *= e), (this.z *= e); }, setTo: function (e, t, s) { (this.x = e), (this.y = t), (this.z = s); }, subtract: function (e) { return new py(this.x - e.x, this.y - e.y, this.z - e.z); }, toString: function () { return "Vector3D(" + this.x + ", " + this.y + ", " + this.z + ")"; }, get_length: function () { return Math.sqrt(this.x * this.x + this.y * this.y + this.z * this.z); }, get_lengthSquared: function () { return this.x * this.x + this.y * this.y + this.z * this.z; }, __class__: py, __properties__: { get_lengthSquared: "get_lengthSquared", get_length: "get_length", }, }); var by = function () {}; ((s["openfl.media.ID3Info"] = by).__name__ = ["openfl", "media", "ID3Info"]), (by.prototype = { __class__: by }); var my = function (e, t) { (this.itHasSoundSprite = !1), g.call(this, this), (this.bytesLoaded = 0), (this.bytesTotal = 0), (this.id3 = null), (this.isBuffering = !1), (this.url = null) != e && this.load(e, t); }; ((s["openfl.media.Sound"] = my).__name__ = ["openfl", "media", "Sound"]), (my.fromAudioBuffer = function (e) { var t = new my(); return (t.__buffer = e), t; }), (my.fromFile = function (e) { return my.fromAudioBuffer(yb.fromFile(e)); }), (my.__super__ = g), (my.prototype = n(g.prototype, { close: function () { null != this.__sound && this.__sound.unload(); }, load: function (e, t, s, n) { null == n && (n = !1), null == s && (s = 5), (this.soundName = e.url); var i = this.soundName, r = my.__registeredSounds; if (null != NT[i] ? r.existsReserved(i) : r.h.hasOwnProperty(i)) { var o = this.soundName, a = my.__registeredSounds; this.__sound = null != NT[o] ? a.getReserved(o) : a.h[o]; } else if (!n) throw new Mp("All sounds should have been registered in preloader!"); var l = Yp.getLogicalPath(this.soundName), h = Yp.getExtraSoundOptions(l), _ = null; if ( (null != h && null != h.start && null != h.duration && (this.itHasSoundSprite = !0), null == this.__sound) ) { (_ = this.itHasSoundSprite ? { src: this.soundName, sprite: { clip: [h.start, h.duration] }, onload: CT(this, this.howler_onFileLoad), onloaderror: CT(this, this.howler_onFileError), pool: s, } : { src: this.soundName, onload: CT(this, this.howler_onFileLoad), onloaderror: CT(this, this.howler_onFileError), pool: s, }), (this.__sound = new Howl(_)), this.__sound.volume(0); var u = this.soundName, d = this.__sound, c = my.__registeredSounds; null != NT[u] ? c.setReserved(u, d) : (c.h[u] = d); } }, loadCompressedDataFromByteArray: function (e, t, s) { null == s && (s = !1), Zm.notImplemented("Sound.loadCompressedDataFromByteArray"); }, loadPCMFromByteArray: function (e, t, s, n, i) { null == i && (i = 44100), null == n && (n = !0), Zm.notImplemented("Sound.loadPCMFromByteArray"); }, play: function (e, t, s) { if ( (null == t && (t = 0), null == e && (e = 0), null == s && (s = new vy(1, 0)), 0 != s.pan) ) throw new Mp(":TODO: use spatial plugin"); var n = -1; return ( (n = this.itHasSoundSprite ? this.__sound.play("clip") : this.__sound.play()), this.__sound.volume(s.volume, n), this.__sound.loop(1 < t, n), 0 != e && this.__sound.seek(e / 1e3, n), gy.__create(this, n, t) ); }, prePlayHTML5: function (e, t, s) { return ( null == t && (t = 0), null == e && (e = 0), this.__sound._webAudio ? null : this.play(e, t, s) ); }, stop: function (e) { this.__sound.stop(e); }, dispose: function (e) { this.__sound.off("end", null, e), this.__sound.off("stop", null, e); }, get_id3: function () { return new by(); }, get_length: function () { return null != this.__sound ? this.__sound.duration() : 0; }, AudioBuffer_onURLLoad: function (e) { null == e ? this.dispatchEvent(new xv("ioError")) : ((this.__buffer = e), this.dispatchEvent(_a.__create("complete"))); }, howler_onFileLoad: function () { this.dispatchEvent(_a.__create("complete")); }, howler_onFileError: function () { this.dispatchEvent(new xv("ioError")); }, __class__: my, __properties__: { get_length: "get_length", get_id3: "get_id3" }, })); var gy = function () { g.call(this, this), (this.leftPeak = 1), (this.rightPeak = 1); }; ((s["openfl.media.SoundChannel"] = gy).__name__ = [ "openfl", "media", "SoundChannel", ]), (gy.__create = function (e, t, s) { var n = gy.pool.get(); return ( null != e && ((n.__soundId = t), (n.__numberOfLoopsRemaining = s), (n.__looping = 1 < s), (n.__sound = e), n.__sound.__sound.on( "stop", CT(n, n.soundInstance_onComplete), n.__soundId ), n.__sound.__sound.on( "end", CT(n, n.soundInstance_onEnd), n.__soundId ), (n.__isValid = !0)), n ); }), (gy.__super__ = g), (gy.prototype = n(g.prototype, { stop: function () { this.__isValid && this.__sound.stop(this.__soundId); }, __dispose: function () { this.__isValid && (this.__sound.dispose(this.__soundId), gy.pool.put(this), (this.__isValid = !1)); }, get_position: function () { return this.__isValid ? this.__sound.__sound.seek() : 0; }, set_position: function (e) { return this.__isValid ? (this.__sound.__sound.seek(0 | e), this.__sound.__sound.seek()) : 0; }, get_soundTransform: function () { return this.__isValid ? new vy(this.__sound.__sound.volume(), 0) : new vy(); }, set_soundTransform: function (e) { return this.__isValid && this.__sound.__sound.volume(e.volume), e; }, soundInstance_onComplete: function () { this.__dispose(), this.dispatchEvent(_a.__create("soundComplete")); }, soundInstance_onEnd: function () { this.__numberOfLoopsRemaining--, this.__numberOfLoopsRemaining <= 0 && this.__looping && this.__sound.stop(this.__soundId); }, __class__: gy, __properties__: { set_soundTransform: "set_soundTransform", get_soundTransform: "get_soundTransform", set_position: "set_position", get_position: "get_position", }, })); var wy = function (e, t) { null == t && (t = !1), null == e && (e = 1e3), (this.bufferTime = e), (this.checkPolicyFile = t); }; ((s["openfl.media.SoundLoaderContext"] = wy).__name__ = [ "openfl", "media", "SoundLoaderContext", ]), (wy.prototype = { __class__: wy }); var vy = function (e, t) { null == t && (t = 0), null == e && (e = 1), (this.volume = e), (this.pan = t), (this.leftToLeft = 0), (this.leftToRight = 0), (this.rightToLeft = 0), (this.rightToRight = 0); }; ((s["openfl.media.SoundTransform"] = vy).__name__ = [ "openfl", "media", "SoundTransform", ]), (vy.prototype = { clone: function () { return new vy(this.volume, this.pan); }, __class__: vy, }); var yy = function () { g.call(this); }; ((s["openfl.net.NetConnection"] = yy).__name__ = [ "openfl", "net", "NetConnection", ]), (yy.__super__ = g), (yy.prototype = n(g.prototype, { connect: function (e, t, s, n, i, r) { if (null != e) throw new Mp('Error: Can only connect in "HTTP streaming" mode'); this.dispatchEvent( new Rv("netStatus", !1, !0, { code: "connectSuccess" }) ); }, __class__: yy, })); var Ty = function () { g.call(this), ((this.client = this).objectEncoding = 3); }; ((s["openfl.net.SharedObject"] = Ty).__name__ = [ "openfl", "net", "SharedObject", ]), (Ty.__sharedObjects = null), (Ty.getLocal = function (e, t, s) { null == s && (s = !1), null == t && (t = window.location.href), null == Ty.__sharedObjects && ((Ty.__sharedObjects = new up()), Zm.application.onExit.add(Ty.application_onExit)); var n = t + "/" + e, i = Ty.__sharedObjects; if (!(null != NT[n] ? i.existsReserved(n) : i.h.hasOwnProperty(n))) { var r = new Ty(); (r.data = {}), (r.__localPath = t), (r.__name = e); var o = null; try { var a = Np.getLocalStorage(); null != a && (o = a.getItem(t + ":" + e)); } catch (e) { jf.lastException = e; } if (null != o && "" != o) try { var l = new ep(o); l.setResolver({ resolveEnum: ms.resolveEnum, resolveClass: Ty.__resolveClass, }), (r.data = l.unserialize()); } catch (e) { jf.lastException = e; } var h = Ty.__sharedObjects; null != NT[n] ? h.setReserved(n, r) : (h.h[n] = r); } var _ = Ty.__sharedObjects; return null != NT[n] ? _.getReserved(n) : _.h[n]; }), (Ty.getRemote = function (e, t, s, n) { return ( null == n && (n = !1), null == s && (s = !1), Zm.notImplemented("SharedObject.getRemote"), null ); }), (Ty.__mkdir = function (e) {}), (Ty.__resolveClass = function (e) { return null != e ? (Ri.startsWith(e, "neash.") && (e = Ri.replace(e, "neash.", "openfl.")), Ri.startsWith(e, "native.") && (e = Ri.replace(e, "native.", "openfl.")), Ri.startsWith(e, "flash.") && (e = Ri.replace(e, "flash.", "openfl.")), Ri.startsWith(e, "openfl._v2.") && (e = Ri.replace(e, "openfl._v2.", "openfl.")), Ri.startsWith(e, "openfl._legacy.") && (e = Ri.replace(e, "openfl._legacy.", "openfl.")), ms.resolveClass(e)) : null; }), (Ty.application_onExit = function (e) { for ( var t = Ty.__sharedObjects, s = new _p(t, t.arrayKeys()); s.hasNext(); ) { s.next().flush(); } }), (Ty.__super__ = g), (Ty.prototype = n(g.prototype, { clear: function () { this.data = {}; try { var e = Np.getLocalStorage(); null != e && e.removeItem(this.__localPath + ":" + this.__name); } catch (e) { jf.lastException = e; } }, close: function () {}, connect: function (e, t) { Zm.notImplemented("SharedObject.connect"); }, flush: function (e) { if ((null == e && (e = 0), 0 == De.fields(this.data).length)) return 0; var t = Jf.run(this.data); try { var s = Np.getLocalStorage(); null != s && (s.removeItem(this.__localPath + ":" + this.__name), s.setItem(this.__localPath + ":" + this.__name, t)); } catch (e) { return (jf.lastException = e), 1; } return 0; }, send: function (e) { Zm.notImplemented("SharedObject.send"); }, setDirty: function (e) {}, setProperty: function (e, t) { null != this.data && (this.data[e] = t); }, get_size: function () { try { var e = Jf.run(this.data); return Lf.ofString(e).length; } catch (e) { return (jf.lastException = e), 0; } }, __class__: Ty, __properties__: { get_size: "get_size" }, })); var Sy = {}; ((s["openfl.net._SharedObjectFlushStatus.SharedObjectFlushStatus_Impl_"] = Sy).__name__ = [ "openfl", "net", "_SharedObjectFlushStatus", "SharedObjectFlushStatus_Impl_", ]), (Sy.fromString = function (e) { switch (e) { case "flushed": return 0; case "pending": return 1; default: return null; } }), (Sy.toString = function (e) { switch (e) { case 0: return "flushed"; case 1: return "pending"; default: return null; } }); var xy = function (e) { g.call(this), (this.bytesLoaded = 0), (this.bytesTotal = 0), this.set_dataFormat(1), null != e && this.load(e); }; ((s["openfl.net.URLLoader"] = xy).__name__ = ["openfl", "net", "URLLoader"]), (xy.__super__ = g), (xy.prototype = n(g.prototype, { close: function () {}, getData: function () { return null; }, load: function (e) { this.requestUrl(e.url, e.method, e.data, e.formatRequestHeaders()); }, registerEvents: function (e) { var s = this; "undefined" != typeof XMLHttpRequestProgressEvent && e.addEventListener("progress", CT(this, this.onProgress), !1), (e.onreadystatechange = function () { if (4 == e.readyState) { var t; try { t = e.status; } catch (e) { (jf.lastException = e), (t = null); } null == t && (t = null), null != t && s.onStatus(t), null != t && 200 <= t && t < 400 ? s.onData(e.response) : null == t ? s.onError("Failed to connect or resolve host") : 12029 == t ? s.onError("Failed to connect to host") : 12007 == t ? s.onError("Unknown host") : 0 == t ? (s.onError( "Unable to make request (may be blocked due to cross-domain permissions)" ), s.onSecurityError( "Unable to make request (may be blocked due to cross-domain permissions)" )) : s.onError("Http Error #" + e.status); } }); }, requestUrl: function (e, t, s, n) { var i = new XMLHttpRequest(); this.registerEvents(i); var r = ""; if (Lp.__instanceof(s, Uf)) { var o = s; r = 0 == this.dataFormat ? Lp.__cast(o, OT) : o.readUTFBytes(o.length); } else if (Lp.__instanceof(s, Iy)) for (var a = s, l = 0, h = De.fields(a); l < h.length; ) { var _ = h[l]; ++l, 0 != r.length && (r += "&"); var u = encodeURIComponent(_) + "=", d = De.field(a, _); r += u + encodeURIComponent(d); } else null != s && (r = s.toString()); try { if ("GET" == t && null != r && "" != r) { var c = e.split("?").length <= 1; i.open(t, e + (c ? "?" : "&") + Ue.string(r), !0), (r = ""); } else i.open(t, e, !0); } catch (e) { return ( (jf.lastException = e) instanceof Mp && (e = e.val), void this.onError(e.toString()) ); } 0 == this.dataFormat && (i.responseType = "arraybuffer"); for (var f = 0; f < n.length; ) { var p = n[f]; ++f, i.setRequestHeader(p.name, p.value); } i.send(r), this.onOpen(), (this.getData = function () { return null != i.response ? i.response : i.responseText; }); }, onData: function (e) { var t = this.getData(), s = this.dataFormat; this.data = 0 == s ? jy.fromArrayBuffer(t) : Ue.string(t); var n = new _a("complete"); (n.currentTarget = this).dispatchEvent(n); }, onError: function (e) { var t = new xv("ioError"); (t.text = e), (t.currentTarget = this).dispatchEvent(t); }, onOpen: function () { var e = new _a("open"); (e.currentTarget = this).dispatchEvent(e); }, onProgress: function (e) { var t = new Av("progress"); (t.currentTarget = this), (t.bytesLoaded = e.loaded), (t.bytesTotal = e.total), this.dispatchEvent(t); }, onSecurityError: function (e) { var t = new Iv("securityError"); (t.text = e), (t.currentTarget = this).dispatchEvent(t); }, onStatus: function (e) { var t = new Sv("httpStatus", !1, !1, e); (t.currentTarget = this).dispatchEvent(t); }, set_dataFormat: function (e) { return ( 0 != e || Object.prototype.hasOwnProperty.call(window, "ArrayBuffer") ? (this.dataFormat = e) : (this.dataFormat = 1), this.dataFormat ); }, __class__: xy, __properties__: { set_dataFormat: "set_dataFormat" }, })); var Ey = {}; ((s["openfl.net._URLLoaderDataFormat.URLLoaderDataFormat_Impl_"] = Ey).__name__ = [ "openfl", "net", "_URLLoaderDataFormat", "URLLoaderDataFormat_Impl_", ]), (Ey.fromString = function (e) { switch (e) { case "binary": return 0; case "text": return 1; case "variables": return 2; default: return null; } }), (Ey.toString = function (e) { switch (e) { case 0: return "binary"; case 1: return "text"; case 2: return "variables"; default: return null; } }); var Py = function (e) { null != e && (this.url = e), (this.requestHeaders = []), (this.method = Ay.toString(1)), (this.contentType = null); }; ((s["openfl.net.URLRequest"] = Py).__name__ = [ "openfl", "net", "URLRequest", ]), (Py.prototype = { formatRequestHeaders: function () { var e = this.requestHeaders; return ( null == e && (e = []), 1 == Ay.fromString(this.method) || null == this.data || (("string" == typeof this.data || Lp.__instanceof(this.data, Uf)) && (e = e.slice()).push( new Ry( "Content-Type", null != this.contentType ? this.contentType : "application/x-www-form-urlencoded" ) )), e ); }, __class__: Py, }); var Ry = function (e, t) { null == t && (t = ""), null == e && (e = ""), (this.name = e), (this.value = t); }; ((s["openfl.net.URLRequestHeader"] = Ry).__name__ = [ "openfl", "net", "URLRequestHeader", ]), (Ry.prototype = { __class__: Ry }); var Ay = {}; ((s["openfl.net._URLRequestMethod.URLRequestMethod_Impl_"] = Ay).__name__ = [ "openfl", "net", "_URLRequestMethod", "URLRequestMethod_Impl_", ]), (Ay.fromString = function (e) { switch (e) { case "DELETE": return 0; case "GET": return 1; case "HEAD": return 2; case "OPTIONS": return 3; case "POST": return 4; case "PUT": return 5; default: return null; } }), (Ay.toString = function (e) { switch (e) { case 0: return "DELETE"; case 1: return "GET"; case 2: return "HEAD"; case 3: return "OPTIONS"; case 4: return "POST"; case 5: return "PUT"; default: return null; } }); var Iy = function (e) { null != e && this.decode(e); }; ((s["openfl.net.URLVariables"] = Iy).__name__ = [ "openfl", "net", "URLVariables", ]), (Iy.prototype = { decode: function (e) { for (var t = De.fields(this), s = 0; s < t.length; ) { var n = t[s]; ++s, De.deleteField(this, n); } for (var i = e.split(";").join("&").split("&"), r = 0; r < i.length; ) { var o = i[r]; ++r; var a = o.indexOf("="); if (0 < a) { var l = he.substr(o, 0, a), h = decodeURIComponent(l.split("+").join(" ")), _ = he.substr(o, a + 1, null); this[h] = decodeURIComponent(_.split("+").join(" ")); } else 0 != a && (this[decodeURIComponent(o.split("+").join(" "))] = ""); } }, toString: function () { for (var e = [], t = De.fields(this), s = 0; s < t.length; ) { var n = t[s]; ++s; var i = encodeURIComponent(n) + "=", r = De.field(this, n); e.push(i + encodeURIComponent(r)); } return e.join("&"); }, __class__: Iy, }); var Cy = function (e) { this.parentDomain = null != e ? e : Cy.currentDomain; }; ((s["openfl.system.ApplicationDomain"] = Cy).__name__ = [ "openfl", "system", "ApplicationDomain", ]), (Cy.prototype = { getDefinition: function (e) { return ms.resolveClass(e); }, hasDefinition: function (e) { return null != ms.resolveClass(e); }, __class__: Cy, }); var By = function (e, t, s) { null == e && (e = !1), (this.checkPolicyFile = e), (this.securityDomain = s), (this.applicationDomain = t), (this.allowCodeImport = !0), (this.allowLoadBytesCodeExecution = !0); }; ((s["openfl.system.LoaderContext"] = By).__name__ = [ "openfl", "system", "LoaderContext", ]), (By.prototype = { __class__: By }); var Dy = function () {}; ((s["openfl.system.SecurityDomain"] = Dy).__name__ = [ "openfl", "system", "SecurityDomain", ]), (Dy.prototype = { __class__: Dy }); var ky = {}; ((s["openfl.text._AntiAliasType.AntiAliasType_Impl_"] = ky).__name__ = [ "openfl", "text", "_AntiAliasType", "AntiAliasType_Impl_", ]), (ky.fromString = function (e) { switch (e) { case "advanced": return 0; case "normal": return 1; default: return null; } }), (ky.toString = function (e) { switch (e) { case 0: return "advanced"; case 1: return "normal"; default: return null; } }); var Fy = {}; ((s["openfl.text._FontStyle.FontStyle_Impl_"] = Fy).__name__ = [ "openfl", "text", "_FontStyle", "FontStyle_Impl_", ]), (Fy.fromString = function (e) { switch (e) { case "bold": return 0; case "boldItalic": return 1; case "italic": return 2; case "regular": return 3; default: return null; } }), (Fy.toString = function (e) { switch (e) { case 0: return "bold"; case 1: return "boldItalic"; case 2: return "italic"; case 3: return "regular"; default: return null; } }); var My = {}; ((s["openfl.text._FontType.FontType_Impl_"] = My).__name__ = [ "openfl", "text", "_FontType", "FontType_Impl_", ]), (My.fromString = function (e) { switch (e) { case "device": return 0; case "embedded": return 1; case "embeddedCFF": return 2; default: return null; } }), (My.toString = function (e) { switch (e) { case 0: return "device"; case 1: return "embedded"; case 2: return "embeddedCFF"; default: return null; } }); var Ly = {}; ((s["openfl.text._GridFitType.GridFitType_Impl_"] = Ly).__name__ = [ "openfl", "text", "_GridFitType", "GridFitType_Impl_", ]), (Ly.fromString = function (e) { switch (e) { case "none": return 0; case "pixel": return 1; case "subpixel": return 2; default: return null; } }), (Ly.toString = function (e) { switch (e) { case 0: return "none"; case 1: return "pixel"; case 2: return "subpixel"; default: return null; } }); var Ny = {}; ((s["openfl.text._TextFieldAutoSize.TextFieldAutoSize_Impl_"] = Ny).__name__ = ["openfl", "text", "_TextFieldAutoSize", "TextFieldAutoSize_Impl_"]), (Ny.fromString = function (e) { switch (e) { case "center": return 0; case "left": return 1; case "none": return 2; case "right": return 3; default: return null; } }), (Ny.toString = function (e) { switch (e) { case 0: return "center"; case 1: return "left"; case 2: return "none"; case 3: return "right"; default: return null; } }); var Oy = {}; ((s["openfl.text._TextFieldType.TextFieldType_Impl_"] = Oy).__name__ = [ "openfl", "text", "_TextFieldType", "TextFieldType_Impl_", ]), (Oy.fromString = function (e) { switch (e) { case "dynamic": return 0; case "input": return 1; default: return null; } }), (Oy.toString = function (e) { switch (e) { case 0: return "dynamic"; case 1: return "input"; default: return null; } }); var Uy = function (e, t, s, n, i, r, o, a, l, h, _, u, d) { (this.font = e), (this.size = t), (this.color = s), (this.bold = n), (this.italic = i), (this.underline = r), (this.url = o), (this.target = a), (this.align = l), (this.leftMargin = h), (this.rightMargin = _), (this.indent = u), (this.leading = d); }; ((s["openfl.text.TextFormat"] = Uy).__name__ = [ "openfl", "text", "TextFormat", ]), (Uy.getBulletText = function () { return "●\t\t"; }), (Uy.getBulletIndentLeftMargin = function () { return 20; }), (Uy.prototype = { clone: function () { var e = new Uy( this.font, this.size, this.color, this.bold, this.italic, this.underline, this.url, this.target ); return ( (e.align = this.align), (e.leftMargin = this.leftMargin), (e.rightMargin = this.rightMargin), (e.indent = this.indent), (e.leading = this.leading), (e.blockIndent = this.blockIndent), (e.bullet = this.bullet), (e.kerning = this.kerning), (e.letterSpacing = this.letterSpacing), (e.tabStops = this.tabStops), e ); }, __merge: function (e) { null != e.font && (this.font = e.font), null != e.size && (this.size = e.size), null != e.color && (this.color = e.color), null != e.bold && (this.bold = e.bold), null != e.italic && (this.italic = e.italic), null != e.underline && (this.underline = e.underline), null != e.url && (this.url = e.url), null != e.target && (this.target = e.target), null != e.align && (this.align = e.align), null != e.leftMargin && (this.leftMargin = e.leftMargin), null != e.rightMargin && (this.rightMargin = e.rightMargin), null != e.indent && (this.indent = e.indent), null != e.leading && (this.leading = e.leading), null != e.blockIndent && (this.blockIndent = e.blockIndent), null != e.bullet && (this.bullet = e.bullet), null != e.kerning && (this.kerning = e.kerning), null != e.letterSpacing && (this.letterSpacing = e.letterSpacing), null != e.tabStops && (this.tabStops = e.tabStops); }, __class__: Uy, }); var Gy = {}; ((s["openfl.text._TextFormatAlign.TextFormatAlign_Impl_"] = Gy).__name__ = [ "openfl", "text", "_TextFormatAlign", "TextFormatAlign_Impl_", ]), (Gy.fromString = function (e) { switch (e) { case "center": return 0; case "end": return 1; case "justify": return 2; case "left": return 3; case "right": return 4; case "start": return 5; default: return null; } }), (Gy.toString = function (e) { switch (e) { case 0: return "center"; case 1: return "end"; case 2: return "justify"; case 3: return "left"; case 4: return "right"; case 5: return "start"; default: return null; } }); var zy = function (e, t, s, n, i, r) { (this.x = e), (this.width = t), (this.height = s), (this.ascent = n), (this.descent = i), (this.leading = r); }; ((s["openfl.text.TextLineMetrics"] = zy).__name__ = [ "openfl", "text", "TextLineMetrics", ]), (zy.prototype = { __class__: zy }); var Xy = function () { g.call(this), Xy.__instances.push(this); }; ((s["openfl.ui.GameInput"] = Xy).__name__ = ["openfl", "ui", "GameInput"]), (Xy.getDeviceAt = function (e) { return 0 <= e && e < Xy.__deviceList.length ? Xy.__deviceList[e] : null; }), (Xy.__getDevice = function (e) { if (null == e) return null; if (null == Xy.__devices.h.__keys__[e.__id__]) { var t = Pm.__getDeviceData()[e.id].id, s = Pm.__getDeviceData(), n = new Vy(t, s[e.id].id); Xy.__deviceList.push(n), Xy.__devices.set(e, n), (Xy.numDevices = Xy.__deviceList.length); } return Xy.__devices.h[e.__id__]; }), (Xy.__onGamepadAxisMove = function (e, t, s) { var n = Xy.__getDevice(e); if (null != n && n.enabled) { if (!n.__axis.h.hasOwnProperty(t)) { var i; switch (t) { case 0: i = "LEFT_X"; break; case 1: i = "LEFT_Y"; break; case 2: i = "RIGHT_X"; break; case 3: i = "RIGHT_Y"; break; case 4: i = "TRIGGER_LEFT"; break; case 5: i = "TRIGGER_RIGHT"; break; default: i = "UNKNOWN (" + t + ")"; } var r = new Hy(n, "AXIS_" + i, -1, 1); (n.__axis.h[t] = r), n.__controls.push(r); } var o = n.__axis.h[t]; (o.value = s), o.dispatchEvent(new _a("change")); } }), (Xy.__onGamepadButtonDown = function (e, t) { var s = Xy.__getDevice(e); if (null != s && s.enabled) { if (!s.__button.h.hasOwnProperty(t)) { var n; switch (t) { case 0: n = "A"; break; case 1: n = "B"; break; case 2: n = "X"; break; case 3: n = "Y"; break; case 4: n = "BACK"; break; case 5: n = "GUIDE"; break; case 6: n = "START"; break; case 7: n = "LEFT_STICK"; break; case 8: n = "RIGHT_STICK"; break; case 9: n = "LEFT_SHOULDER"; break; case 10: n = "RIGHT_SHOULDER"; break; case 11: n = "DPAD_UP"; break; case 12: n = "DPAD_DOWN"; break; case 13: n = "DPAD_LEFT"; break; case 14: n = "DPAD_RIGHT"; break; default: n = "UNKNOWN (" + t + ")"; } var i = new Hy(s, "BUTTON_" + n, 0, 1); (s.__button.h[t] = i), s.__controls.push(i); } var r = s.__button.h[t]; (r.value = 1), r.dispatchEvent(new _a("change")); } }), (Xy.__onGamepadButtonUp = function (e, t) { var s = Xy.__getDevice(e); if (null != s && s.enabled) { if (!s.__button.h.hasOwnProperty(t)) { var n; switch (t) { case 0: n = "A"; break; case 1: n = "B"; break; case 2: n = "X"; break; case 3: n = "Y"; break; case 4: n = "BACK"; break; case 5: n = "GUIDE"; break; case 6: n = "START"; break; case 7: n = "LEFT_STICK"; break; case 8: n = "RIGHT_STICK"; break; case 9: n = "LEFT_SHOULDER"; break; case 10: n = "RIGHT_SHOULDER"; break; case 11: n = "DPAD_UP"; break; case 12: n = "DPAD_DOWN"; break; case 13: n = "DPAD_LEFT"; break; case 14: n = "DPAD_RIGHT"; break; default: n = "UNKNOWN (" + t + ")"; } var i = new Hy(s, "BUTTON_" + n, 0, 1); (s.__button.h[t] = i), s.__controls.push(i); } var r = s.__button.h[t]; (r.value = 0), r.dispatchEvent(new _a("change")); } }), (Xy.__onGamepadConnect = function (e) { var t = Xy.__getDevice(e); if (null != t) for (var s = 0, n = Xy.__instances; s < n.length; ) { var i = n[s]; ++s, i.dispatchEvent(new Tv("deviceAdded", null, null, t)); } }), (Xy.__onGamepadDisconnect = function (e) { var t = Xy.__devices.h[e.__id__]; if (null != t) { null != Xy.__devices.h.__keys__[e.__id__] && (he.remove(Xy.__deviceList, Xy.__devices.h[e.__id__]), Xy.__devices.remove(e)), (Xy.numDevices = Xy.__deviceList.length); for (var s = 0, n = Xy.__instances; s < n.length; ) { var i = n[s]; ++s, i.dispatchEvent(new Tv("deviceRemoved", null, null, t)); } } }), (Xy.__super__ = g), (Xy.prototype = n(g.prototype, { __class__: Xy })); var Hy = function (e, t, s, n, i) { null == i && (i = 0), g.call(this), (this.device = e), (this.id = t), (this.minValue = s), (this.maxValue = n), (this.value = i); }; ((s["openfl.ui.GameInputControl"] = Hy).__name__ = [ "openfl", "ui", "GameInputControl", ]), (Hy.__super__ = g), (Hy.prototype = n(g.prototype, { __class__: Hy })); var Vy = function (e, t) { var s; (this.__controls = []), (this.__button = new lp()), (this.__axis = new lp()), (this.id = e), (this.name = t); for (var n = 0; n < 6; ) { var i = n++; (s = new Hy(this, "AXIS_" + i, -1, 1)), (this.__axis.h[i] = s), this.__controls.push(s); } for (var r = 0; r < 15; ) { var o = r++; (s = new Hy(this, "BUTTON_" + o, 0, 1)), (this.__button.h[o] = s), this.__controls.push(s); } }; ((s["openfl.ui.GameInputDevice"] = Vy).__name__ = [ "openfl", "ui", "GameInputDevice", ]), (Vy.prototype = { getCachedSamples: function (e, t) { return null == t && (t = !1), 0; }, getControlAt: function (e) { return 0 <= e && e < this.__controls.length ? this.__controls[e] : null; }, startCachingSamples: function (e, t) {}, stopCachingSamples: function () {}, get_numControls: function () { return this.__controls.length; }, __class__: Vy, __properties__: { get_numControls: "get_numControls" }, }); var Yy = function () {}; ((s["openfl.ui.Keyboard"] = Yy).__name__ = ["openfl", "ui", "Keyboard"]), (Yy.capsLock = null), (Yy.numLock = null), (Yy.isAccessible = function () { return !1; }), (Yy.__convertKeyCode = function (e) { switch (e) { case 8: return 8; case 9: return 9; case 13: return 13; case 27: return 27; case 32: return 32; case 33: return 49; case 34: return 222; case 35: return 51; case 36: return 52; case 37: return 53; case 38: return 55; case 39: return 222; case 40: return 57; case 41: return 48; case 42: return 56; case 44: return 188; case 45: return 189; case 46: return 190; case 47: return 191; case 48: return 48; case 49: return 49; case 50: return 50; case 51: return 51; case 52: return 52; case 53: return 53; case 54: return 54; case 55: return 55; case 56: return 56; case 57: return 57; case 58: case 59: return 186; case 60: return 60; case 61: return 187; case 62: return 190; case 63: return 191; case 64: return 50; case 91: return 219; case 92: return 220; case 93: return 221; case 94: return 54; case 95: return 189; case 96: return 192; case 97: return 65; case 98: return 66; case 99: return 67; case 100: return 68; case 101: return 69; case 102: return 70; case 103: return 71; case 104: return 72; case 105: return 73; case 106: return 74; case 107: return 75; case 108: return 76; case 109: return 77; case 110: return 78; case 111: return 79; case 112: return 80; case 113: return 81; case 114: return 82; case 115: return 83; case 116: return 84; case 117: return 85; case 118: return 86; case 119: return 87; case 120: return 88; case 121: return 89; case 122: return 90; case 127: return 46; case 1073741881: return 20; case 1073741882: return 112; case 1073741883: return 113; case 1073741884: return 114; case 1073741885: return 115; case 1073741886: return 116; case 1073741887: return 117; case 1073741888: return 118; case 1073741889: return 119; case 1073741890: return 120; case 1073741891: return 121; case 1073741892: return 122; case 1073741893: return 123; case 1073741894: return 301; case 1073741895: return 145; case 1073741896: return 19; case 1073741897: return 45; case 1073741898: return 36; case 1073741899: return 33; case 1073741901: return 35; case 1073741902: return 34; case 1073741903: return 39; case 1073741904: return 37; case 1073741905: return 40; case 1073741906: return 38; case 1073741907: return 144; case 1073741908: return 111; case 1073741909: return 106; case 1073741910: return 109; case 1073741911: return 107; case 1073741912: return 108; case 1073741913: return 97; case 1073741914: return 98; case 1073741915: return 99; case 1073741916: return 100; case 1073741917: return 101; case 1073741918: return 102; case 1073741919: return 103; case 1073741920: return 104; case 1073741921: return 105; case 1073741922: return 96; case 1073741923: return 110; case 1073741925: return 302; case 1073741928: return 124; case 1073741929: return 125; case 1073741930: return 126; case 1073741982: return 13; case 1073742044: return 110; case 1073742048: return 17; case 1073742049: return 16; case 1073742050: return 18; case 1073742051: return 15; case 1073742052: return 17; case 1073742053: return 16; case 1073742054: return 18; case 1073742055: return 15; default: return e; } }), (Yy.__getCharCode = function (e, t) { if ((null == t && (t = !1), t)) { switch (e) { case 48: return 41; case 49: return 33; case 50: return 64; case 51: return 35; case 52: return 36; case 53: return 37; case 54: return 94; case 55: return 38; case 56: return 42; case 57: return 40; case 186: return 58; case 187: return 43; case 188: return 60; case 189: return 95; case 190: return 62; case 191: return 63; case 192: return 126; case 219: return 123; case 220: return 124; case 221: return 125; case 222: return 34; } if (65 <= e && e <= 90) return e - 65 + 65; } else { switch (e) { case 8: return 8; case 9: return 9; case 13: return 13; case 27: return 27; case 32: return 32; case 186: return 59; case 187: return 61; case 188: return 44; case 189: return 45; case 190: return 46; case 191: return 47; case 192: return 96; case 219: return 91; case 220: return 92; case 221: return 93; case 222: return 39; } if (48 <= e && e <= 57) return e - 48 + 48; if (65 <= e && e <= 90) return e - 65 + 97; } if (96 <= e && e <= 105) return e - 96 + 48; switch (e) { case 8: return 8; case 13: return 13; case 46: return 127; case 106: return 42; case 107: return 43; case 108: return 44; case 110: return 45; case 111: return 46; } return 0; }), (Yy.__getKeyLocation = function (e) { switch (e) { case 96: case 97: case 98: case 99: case 100: case 101: case 102: case 103: case 104: case 105: case 106: case 108: case 110: case 111: case 1073741910: case 1073741911: case 1073741923: return 3; case 1073742048: case 1073742049: case 1073742050: case 1073742051: return 1; case 1073742052: case 1073742053: case 1073742054: case 1073742055: return 2; default: return 0; } }); var Wy = function () {}; ((s["openfl.ui.Mouse"] = Wy).__name__ = ["openfl", "ui", "Mouse"]), (Wy.hide = function () { Cm.hide(); }), (Wy.show = function () { Cm.show(); }); var jy = {}; ((s["openfl.utils._ByteArray.ByteArray_Impl_"] = jy).__name__ = [ "openfl", "utils", "_ByteArray", "ByteArray_Impl_", ]), (jy.__properties__ = { set_length: "set_length", get_length: "get_length", }), (jy.defaultObjectEncoding = null), (jy._new = function (e) { return null == e && (e = 0), new Uf(e); }), (jy.get = function (e, t) { return e.b[t]; }), (jy.set = function (e, t, s) { return (e.b[t] = 255 & s), s; }), (jy.fromArrayBuffer = function (e) { return Uf.fromBytes(Lf.ofData(e)); }), (jy.fromBytes = function (e) { return Lp.__instanceof(e, Uf) ? e : Uf.fromBytes(e); }), (jy.fromBytesData = function (e) { return Uf.fromBytes(Lf.ofData(e)); }), (jy.toArrayBuffer = function (e) { return e.b.bufferValue; }), (jy.toBytes = function (e) { return e; }), (jy.toBytesData = function (e) { return e.b.bufferValue; }), (jy.toLimeBytes = function (e) { return new Mm(jy.get_length(e), e.b.bufferValue); }), (jy.get_length = function (e) { return e.__length; }), (jy.set_length = function (e, t) { return 0 < t && e.__resize(t), (e.__length = t); }); var Ky = {}; ((s["openfl.utils._CompressionAlgorithm.CompressionAlgorithm_Impl_"] = Ky).__name__ = [ "openfl", "utils", "_CompressionAlgorithm", "CompressionAlgorithm_Impl_", ]), (Ky.fromString = function (e) { switch (e) { case "deflate": return 0; case "lzma": return 1; case "zlib": return 2; default: return null; } }), (Ky.toString = function (e) { switch (e) { case 0: return "deflate"; case 1: return "lzma"; case 2: return "zlib"; default: return null; } }); var qy = {}; ((s["openfl.utils._Dictionary.Dictionary_Impl_"] = qy).__name__ = [ "openfl", "utils", "_Dictionary", "Dictionary_Impl_", ]), (qy.get = function (e, t) { return e.get(t); }), (qy.set = function (e, t, s) { return e.set(t, s), s; }), (qy.iterator = function (e) { return e.keys(); }), (qy.toStringMap = function (e, t) { return new up(); }), (qy.toIntMap = function (e, t) { return new lp(); }), (qy.toEnumValueMapMap = function (e, t) { return new ap(); }), (qy.toObjectMap = function (e, t) { return new hp(); }), (qy.fromStringMap = function (e) { return e; }), (qy.fromIntMap = function (e) { return e; }), (qy.fromObjectMap = function (e) { return e; }); var Zy = {}; ((s["openfl.utils._Endian.Endian_Impl_"] = Zy).__name__ = [ "openfl", "utils", "_Endian", "Endian_Impl_", ]), (Zy.fromString = function (e) { switch (e) { case "bigEndian": return 0; case "littleEndian": return 1; default: return null; } }), (Zy.toString = function (e) { switch (e) { case 0: return "bigEndian"; case 1: return "littleEndian"; default: return null; } }); var Jy = function (e) { (this.__uid = (mr.SEQ << 24) | ++mr.UID), (this.value = e); }; ((s["openfl.utils.Float32ArrayContainer"] = Jy).__name__ = [ "openfl", "utils", "Float32ArrayContainer", ]), (Jy.__interfaces__ = [br]), (Jy.prototype = { customSerialize: function (e) { var t = Lm.toBytes(this.value); if (null == t) e.out.b.push(0); else { var s = t.length + 1; 0 <= s && s < 128 ? e.out.b.push(s) : (e.out.b.push(128), e.out.addInt32(s)); for (var n = e.out, i = (n.b, t.b), r = 0, o = t.length; r < o; ) { var a = r++; n.b.push(i[a]); } } }, customUnserialize: function (e) { var t = e.input.b[e.inPos++]; 128 == t && ((t = e.input.getInt32(e.inPos)), (e.inPos += 4)); var s, n = t; if (0 == n) s = null; else { --n; var i = e.input.sub(e.inPos, n); (e.inPos += n), (s = i); } var r, o = s.b.bufferValue; (r = null != o ? new GT(o) : null), (this.value = r); }, getCLID: function () { return Jy.__clid; }, serialize: function (e) { this.customSerialize(e); }, getSerializeSchema: function () { var e = new Cp(); return (e.isFinal = mr.isClassFinal(Jy.__clid)), e; }, unserializeInit: function () {}, unserialize: function (e) { this.customUnserialize(e); }, __class__: Jy, }); var Qy = {}; ((s["openfl.utils._Object.Object_Impl_"] = Qy).__name__ = [ "openfl", "utils", "_Object", "Object_Impl_", ]), (Qy._new = function () { return {}; }), (Qy.hasOwnProperty = function (e, t) { return null != e && Object.prototype.hasOwnProperty.call(e, t); }), (Qy.isPrototypeOf = function (e, t) { for (var s = e, n = null == s ? null : Lp.getClass(s); null != n; ) { if (n == t) return !0; n = ms.getSuperClass(n); } return !1; }), (Qy.iterator = function (e) { var t = De.fields(e); return null == t && (t = []), he.iter(t); }), (Qy.propertyIsEnumerable = function (e, t) { return ( !(null == e || !Object.prototype.hasOwnProperty.call(e, t)) && Lp.__instanceof(De.field(e, t), eT) ); }), (Qy.toLocaleString = function (e) { return Ue.string(e); }), (Qy.toString = function (e) { return Ue.string(e); }), (Qy.valueOf = function (e) { return e; }), (Qy.__get = function (e, t) { return De.field(e, t); }), (Qy.__set = function (e, t, s) { return (e[t] = s); }); var $y = function () {}; ((s["haxe.lang.Iterator"] = $y).__name__ = ["haxe", "lang", "Iterator"]), ($y.prototype = { __class__: $y }); var eT = function () {}; ((s["haxe.lang.Iterable"] = eT).__name__ = ["haxe", "lang", "Iterable"]), (eT.prototype = { __class__: eT }); var tT = function (e, t) { if ((null == t && (t = 0), isNaN(e) || e < 0)) throw new Mp( new _v("The delay specified is negative or not a finite number") ); g.call(this), (this.__delay = e), this.set_repeatCount(t), (this.running = !1), (this.currentCount = 0); }; ((s["openfl.utils.Timer"] = tT).__name__ = ["openfl", "utils", "Timer"]), (tT.__super__ = g), (tT.prototype = n(g.prototype, { reset: function () { this.running && this.stop(), (this.currentCount = 0); }, start: function () { this.running || ((this.running = !0), (this.__timerID = window.setInterval( CT(this, this.timer_onTimer), 0 | this.__delay ))); }, stop: function () { (this.running = !1), null != this.__timerID && (window.clearInterval(this.__timerID), (this.__timerID = null)); }, get_delay: function () { return this.__delay; }, set_delay: function (e) { return ( (this.__delay = e), this.running && (this.stop(), this.start()), this.__delay ); }, set_repeatCount: function (e) { return ( this.running && 0 != e && e <= this.currentCount && this.stop(), (this.repeatCount = e) ); }, timer_onTimer: function () { this.currentCount++, 0 < this.repeatCount && this.currentCount >= this.repeatCount ? (this.stop(), this.dispatchEvent(new Cv("timer")), this.dispatchEvent(new Cv("timerComplete"))) : this.dispatchEvent(new Cv("timer")); }, __class__: tT, __properties__: { set_repeatCount: "set_repeatCount", set_delay: "set_delay", get_delay: "get_delay", }, })); var sT = function (e, t) { (this.map = e), (this.keys = t), (this.index = 0), (this.count = t.length); }; ((s["openfl.utils._UnsafeStringMap.UnsafeStringMapIterator"] = sT).__name__ = ["openfl", "utils", "_UnsafeStringMap", "UnsafeStringMapIterator"]), (sT.prototype = { hasNext: function () { return this.index < this.count; }, next: function () { return this.map.h[this.keys[this.index++]]; }, __class__: sT, }); var nT = function () { this.h = {}; }; ((s["openfl.utils.UnsafeStringMap"] = nT).__name__ = [ "openfl", "utils", "UnsafeStringMap", ]), (nT.__interfaces__ = [Kf]), (nT.prototype = { set: function (e, t) { this.h[e] = t; }, get: function (e) { return this.h[e]; }, exists: function (e) { return this.h.hasOwnProperty(e); }, remove: function (e) { return !!this.h.hasOwnProperty(e) && (delete this.h[e], !0); }, keys: function () { return he.iter(this.arrayKeys()); }, arrayKeys: function () { var e = []; for (var t in this.h) this.h.hasOwnProperty(t) && e.push(t); return e; }, iterator: function () { return new sT(this, this.arrayKeys()); }, toString: function () { var e = ""; e += "{"; for (var t = this.arrayKeys(), s = 0, n = t.length; s < n; ) { var i = s++, r = t[i]; (e += null == r ? "null" : "" + r), (e += " => "), (e += Ue.string(Ue.string(this.h[r]))), i < t.length - 1 && (e += ", "); } return (e += "}"); }, __class__: nT, }); var iT = {}; ((s["openfl.utils._UnshrinkableArray.UnshrinkableArray_Impl_"] = iT).__name__ = [ "openfl", "utils", "_UnshrinkableArray", "UnshrinkableArray_Impl_", ]), (iT.__properties__ = { get_length: "get_length" }), (iT._new = function (e, t) { null == e && (e = 64); var s = new Ge(); return (s._items = null != t ? t : []), (s._length = s._items.length), s; }), (iT.getInternalArray = function (e) { return e._items; }), (iT.push = function (e, t) { e._items[e._length++] = t; }), (iT.pop = function (e) { var t = e._items[--e._length]; return (e._items[e._length] = null), t; }), (iT.insert = function (e, t, s) { for (var n = e._length - 1; t <= n; ) (e._items[n + 1] = e._items[n]), --n; (e._items[t] = s), (e._length = t > e._length ? t : e._length), ++e._length; }), (iT.concat = function (e, t) { for (var s = e._items.length - e._length, n = 0, i = s; n < i; ) { var r = n++; e._items[e._length + r] = r >= t._length ? null : t._items[r]; } return ( (e._items = e._items.concat(t._items.slice(s))), (e._length += t._length), e ); }), (iT.clear = function (e) { for (var t = 0, s = e._length; t < s; ) { var n = t++; e._items[n] = null; } e._length = 0; }), (iT.filter = function (e, t) { var s = new Ge(); (s._items = []), (s._length = s._items.length); for (var n = s, i = 0, r = e._length; i < r; ) { var o = i++, a = e._items[o]; t(a) && (n._items[n._length++] = a); } return n; }), (iT.remove = function (e, t) { var s = e._items.indexOf(t, null), n = s >= e._length ? -1 : s; if (0 <= n) { for (var i = n, r = e._length - 1; i < r; ) { var o = i++; e._items[o] = e._items[o + 1]; } --e._length, (e._items[e._length] = null); } return 0 <= n; }), (iT.splice = function (e, t, s) { if (((t = Math.max(t, 0)), 0 < (s = Math.min(s, e._length - t)))) { for (var n = t, i = e._length - s; n < i; ) { var r = n++; e._items[r] = e._items[r + s]; } for (var o = e._length - s, a = e._length; o < a; ) { var l = o++; e._items[l] = null; } e._length -= s; } }), (iT.slice = function (e, t, s) { s = null == s ? e._length : Math.min(e._length, s); var n = e._items.slice(t, s), i = new Ge(); return (i._items = null != n ? n : []), (i._length = i._items.length), i; }), (iT.sliceArray = function (e, t, s) { return ( (s = null == s ? e._length : Math.min(e._length, s)), e._items.slice(t, s) ); }), (iT.reverse = function (e) { for (var t = 0, s = e._length - 1; t < s; ) { var n = e._items[t]; (e._items[t] = e._items[s]), (e._items[s] = n), ++t, --s; } }), (iT.copyFrom = function (e, t, s) { null == s && (s = 0); var n = e._length; e._length = t._length - s; for (var i = 0, r = e._length; i < r; ) { var o = i++, a = s + o; e._items[o] = a >= t._length ? null : t._items[a]; } for (var l = e._length, h = n; l < h; ) { var _ = l++; e._items[_] = null; } }), (iT.pushFromArray = function (e, t) { for (var s = e._length, n = 0, i = t._length; n < i; ) { var r = n++; e._items[s + r] = r >= t._length ? null : t._items[r]; } e._length += t._length; }), (iT.indexOf = function (e, t, s) { var n = e._items.indexOf(t, s); return n >= e._length ? -1 : n; }), (iT.last = function (e) { return e._items[e._length - 1]; }), (iT.get = function (e, t) { return t >= e._length ? null : e._items[t]; }), (iT.set = function (e, t, s) { return t >= e._length && (e._length = t + 1), (e._items[t] = s); }), (iT.get_length = function (e) { return e._length; }); var rT = function () {}; ((s["swagapi.Lib"] = rT).__name__ = ["swagapi", "Lib"]), (rT.client = null), (rT.initialize = function () { try { var e = "5cf583a0c79e903a0e65d08e"; (rT.client = SWAGAPI.getInstance({ wrapper: window.document.querySelector("#root"), api_key: e, theme: "shockwave", debug: !0, })), rT.client.startSession().then(function (e) { Zf.trace("SWAG API session started.", { fileName: "Lib.hx", lineNumber: 19, className: "swagapi.Lib", methodName: "initialize", }); }), rT.client.on("DIALOG_CLOSED", function () { rT.dialogIsShown = !1; }); } catch (e) { (jf.lastException = e), Zf.trace("SWAG API not started.", { fileName: "Lib.hx", lineNumber: 26, className: "swagapi.Lib", methodName: "initialize", }); } }), (rT.showDialog = function (e) { null == e && (e = "scores"); try { rT.client.showDialog(e), (rT.dialogIsShown = !0); } catch (e) { (jf.lastException = e), Zf.trace("SWAG API error while showDialog.", { fileName: "Lib.hx", lineNumber: 35, className: "swagapi.Lib", methodName: "showDialog", }); } }), (rT.isDialogShown = function () { return rT.dialogIsShown; }); var oT = function (e) { null == e && (e = 1); var t = null, s = 0, n = e; switch ( ((this.rotSpeed = 0), (this.bloonBusted = !1), null == oT.bloon1Clip && ((oT.bloon1Clip = new gh()), (oT.bloon2Clip = new xh()), (oT.bloon3Clip = new Eh()), (oT.bloon4Clip = new Ph()), (oT.bloon5Clip = new Rh()), (oT.bloon6Clip = new Ah()), (oT.bloon7Clip = new Ih()), (oT.bloon8Clip = new Ch()), (oT.bloon9Clip = new Bh()), (oT.bloon10Clip = new wh()), (oT.bloon11Clip = new vh()), (oT.bloon12Clip = new yh()), (oT.bloon13Clip = new Th()), (oT.bloon14Clip = new Sh()), (oT.glueClip12 = oT.bloon12Clip.resolve("glue")), (oT.freezeClip12 = oT.bloon12Clip.resolve("freeze")), oT.bloon12Clip.removeChild(oT.glueClip12), oT.bloon12Clip.removeChild(oT.freezeClip12), (oT.glueClip13 = oT.bloon13Clip.resolve("glue")), (oT.freezeClip13 = oT.bloon13Clip.resolve("freeze")), oT.bloon13Clip.removeChild(oT.glueClip13), oT.bloon13Clip.removeChild(oT.freezeClip13), (oT.glueClip14 = oT.bloon14Clip.resolve("glue")), (oT.freezeClip14 = oT.bloon14Clip.resolve("freeze")), oT.bloon14Clip.removeChild(oT.glueClip14), oT.bloon14Clip.removeChild(oT.freezeClip14)), n) ) { case 1: this.set_definitionClip(oT.bloon1Clip); break; case 2: this.set_definitionClip(oT.bloon2Clip); break; case 3: this.set_definitionClip(oT.bloon3Clip); break; case 4: this.set_definitionClip(oT.bloon4Clip); break; case 5: this.set_definitionClip(oT.bloon5Clip); break; case 6: this.set_definitionClip(oT.bloon6Clip); break; case 7: this.set_definitionClip(oT.bloon7Clip); break; case 8: this.set_definitionClip(oT.bloon8Clip); break; case 9: this.set_definitionClip(oT.bloon9Clip); break; case 10: this.set_definitionClip(oT.bloon10Clip); break; case 11: this.set_definitionClip(oT.bloon11Clip); break; case 12: this.set_definitionClip(oT.bloon12Clip); break; case 13: this.set_rotateSteps(20), this.set_definitionClip(oT.bloon13Clip), (this.rotSpeed = 0.18); break; case 14: this.set_rotateSteps(20), this.set_definitionClip(oT.bloon14Clip), (this.rotSpeed = 0.08); } (this.radius = 0.6 * this.clip.get_width()), 12 < n && (this.radius *= 2), 12 == n && ((this.glue = new Wt(De.field(oT, "glueClip" + n), 1)), (this.freeze = new Wt(De.field(oT, "freezeClip" + n), 1)), this.glue.stop(), this.freeze.stop(), (t = function (e) { e.stop(); }), this.freeze.setFrameAction(this.freeze.totalFrames, t)), jt.call(this), 12 == n && (this.addChild(this.glue), this.addChild(this.freeze)), null == this.animation.actions && ((this.animation.actions = []), (s = 6), 12 == n && (s = 11), (this.animation.actions[s] = function (e) { e.RemoveMe(!0); })), (this.rank = n), (this.prog = 0), (this.timeSinceLastWaypoint = 0), (this.snapfrozen = !1), (this.inherited = !1), (this.popped = !1), (this.frozen = !1), (this.blewup = !1), (this.glued = !1), (this.chilled = !1), (this.arctic = !1), (this.parentBlewUp = !1), (this.frame = 1), (this.timeFrozen = 0), (this.timeGlued = 0), (this.destIndex = 0), (this.firstFrame = 0), (this.hits = 0), (this.destAngle = 0), (this.hitCheck = !0), (this.done = !1), this.stop(); }; ((s["swf.Bloon"] = oT).__name__ = ["swf", "Bloon"]), (oT.glueClip13 = null), (oT.glueClip12 = null), (oT.glueClip14 = null), (oT.bloon10Clip = null), (oT.bloon11Clip = null), (oT.bloon12Clip = null), (oT.bloon13Clip = null), (oT.bloon14Clip = null), (oT.bloon1Clip = null), (oT.bloon2Clip = null), (oT.bloon3Clip = null), (oT.bloon4Clip = null), (oT.bloon5Clip = null), (oT.bloon7Clip = null), (oT.bloon8Clip = null), (oT.bloon9Clip = null), (oT.bloon6Clip = null), (oT.freezeClip12 = null), (oT.freezeClip13 = null), (oT.freezeClip14 = null), (oT.__super__ = jt), (oT.prototype = n(jt.prototype, { getNextNode: function () { var e = NaN; if (this.destIndex != this.track.nodes.length) { if ( ((this.destNode = this.track.nodes[this.destIndex]), null != this.destNode) ) { var t = this.destNode.x - this.x, s = this.destNode.y - this.y, n = Math.sqrt(t * t + s * s); (this.vx = (this.speed * t) / n), (this.vy = (this.speed * s) / n), 12 < this.rank && ((e = Math.atan2(this.vx, -this.vy)), 1 < this.destIndex ? (this.destAngle = e) : (this.destAngle = this.angle = e)); } } else this.GotToEnd(); }, glueMe: function (e, t) { 12 < this.rank || this.glued || (12 == this.rank ? this.glue.gotoAndStopLabel("drawOn") : this.frozen ? this.gotoAndStopLabel("gluefreeze") : this.gotoAndStopLabel("glue"), (this.timeGlued = 0), (this.glued = !0), null != e && ((this.gluer = e.shooter), null == this.gluer && Zf.trace("type: " + this.rank, { fileName: "Bloon.hx", lineNumber: 321, className: "swf.Bloon", methodName: "glueMe", })), null != t && (this.gluer = t.gluer)); }, freezeMe: function (e, t, s) { 12 < this.rank || (12 == this.rank ? this.freeze.gotoAndPlayLabel("drawOn") : this.glued ? this.gotoAndStopLabel("gluefreeze") : this.gotoAndStopLabel("freeze"), (this.frozen = !0), (this.timeFrozen = 0), null != t && ((this.freezer = t.shooter), null == this.freezer && Zf.trace("type: " + this.rank, { fileName: "Bloon.hx", lineNumber: 355, className: "swf.Bloon", methodName: "freezeMe", })), null != s && ((this.freezer = s.freezer), Zf.trace("freezer: " + Ue.string(this.freezer), { fileName: "Bloon.hx", lineNumber: 361, className: "swf.Bloon", methodName: "freezeMe", })), 1 < this.freezer.upgradeNum && this.rank < 13 && (this.chilled = !0), e && 2 < this.freezer.upgradeNum && ((this.snapfrozen = !0), this.Pop(t.type, t.shooter))); }, Pop: function (e, t, s) { if ( (null == s && (s = !0), (this.done = !0), (this.respawnMe = s), "spikes" == e && (this.popperBullet = null), "mortar" == e && 2 < t.upgradeNum && ((null != this.parentBloon && this.parentBloon.bloonBusted) || (this.bloonBusted = !0)), (this.popped = !0), ("bomb" == e || "pineapple" == e || "mortar" == e) && this.rank < 12) ) { if (6 == this.rank || 9 == this.rank) return (this.popped = !1), void (this.done = !1); null != t && t.popcount++, (this.blewup = !0), this.RemoveMe(!0); } else { if ((null != t && t.popcount++, (this.popped = !0), 12 == this.rank)) return ( (this.parentBloon = this).hits++, void (this.hits <= 8 ? (this.game.ceramicSnd.play(0, 1), (this.popped = !1), (this.done = !1), null != t && t.popcount--, this.gotoAndStop(this.hits + 2)) : this.RemoveMe(!0)) ); if (13 == this.rank) return ( this.hits++, (this.parentBloon = this), null != t && "bomb" == e && 4 == t.upgradeNum && (this.hits += 10), void (this.hits < 200 ? ((this.popped = !1), (this.done = !1), null != t && t.popcount--, this.game.zeppHit.play()) : (this.game.zeppSmash.play(), this.RemoveMe(!0))) ); if (14 == this.rank) return ( (this.parentBloon = this).hits++, "bomb" == e && 4 == t.upgradeNum && (this.hits += 10), void (this.hits < 700 ? (null != t && t.popcount--, (this.popped = !1), (this.done = !1), this.game.zeppHit.play()) : (this.game.zeppSmash.play(), this.RemoveMe(!0))) ); this.game.poppedThisFrame++, 2 < this.game.poppedThisFrame ? this.RemoveMe(!0) : (De.field(this.game, "pop" + cT.random(4) + "Snd").play(), this.gotoAndPlayLabel("pop")); } }, Init: function () { switch (this.rank) { case 1: this.maxspeed = this.speed = 2; break; case 2: this.maxspeed = this.speed = 2.8; break; case 3: this.maxspeed = this.speed = 3.6; break; case 4: this.maxspeed = this.speed = 6.4; break; case 5: this.maxspeed = this.speed = 7; break; case 6: this.maxspeed = this.speed = 3.6; break; case 7: this.maxspeed = this.speed = 4; break; case 8: this.maxspeed = this.speed = 2; break; case 9: this.maxspeed = this.speed = 3.6; break; case 10: this.maxspeed = this.speed = 4.4; break; case 11: this.maxspeed = this.speed = 2.8; break; case 12: this.maxspeed = this.speed = 4; break; case 13: this.maxspeed = this.speed = 2; break; case 14: this.maxspeed = this.speed = 0.5; } (this.maxspeed += this.game.globSpeedMod), (this.speed = this.maxspeed), 0 == this.destIndex ? this.track.verified ? ((this.x = this.track.nodes[this.destIndex].x + cT.randomRange(-10, 10)), (this.y = this.track.nodes[this.destIndex].y + cT.randomRange(-10, 10)), this.getNextNode()) : (Zf.trace("track not verified", { fileName: "Bloon.hx", lineNumber: 557, className: "swf.Bloon", methodName: "Init", }), this.RemoveMe(!1)) : this.getNextNode(); }, endGlue: function () { (this.glued = !1), 12 == this.rank ? this.glue.gotoAndStop(1) : this.frozen ? this.gotoAndStopLabel("freeze") : this.gotoAndStop(1); }, endFreeze: function () { (this.frozen = !1), 12 == this.rank ? this.freeze.gotoAndStop(1) : this.glued ? this.gotoAndStopLabel("glue") : this.gotoAndStop(1); }, random: function (e) { return Math.floor(Math.random() * e); }, RemoveMe: function (e) { var t = null, s = NaN, n = NaN; if (e && (this.game.PoppedOne(!1), 1 < this.rank && this.respawnMe)) if ((t = this).rank < 6) this.game.NewBloon(this.rank - 1, this.x, this.y, this); else switch ( ((s = this.vx / this.speed), (n = this.vy / this.speed), this.rank) ) { case 6: case 7: this.game.NewBloon(5, this.x + 15 * s, this.y + 15 * n, t), this.game.NewBloon(5, this.x - 15 * s, this.y - 15 * n, t); break; case 8: this.game.NewBloon(6, this.x + 10 * s, this.y + 10 * n, t), this.game.NewBloon(6, this.x - 10 * s, this.y - 10 * n, t); break; case 9: this.game.NewBloon(6, this.x + 10 * s, this.y + 10 * n, t), this.game.NewBloon(7, this.x - 10 * s, this.y - 10 * n, t); break; case 10: this.game.NewBloon(9, this.x + 15 * s, this.y + 15 * n, t), this.game.NewBloon(9, this.x - 15 * s, this.y - 15 * n, t); break; case 11: this.game.NewBloon(5, this.x + 15 * s, this.y + 15 * n, t), this.game.NewBloon(5, this.x - 15 * s, this.y - 15 * n, t); break; case 12: this.game.NewBloon(10, this.x + 20 * s, this.y + 20 * n, t), this.game.NewBloon(10, this.x - 20 * s, this.y - 20 * n, t); break; case 13: this.game.NewBloon(12, this.x + 40 * s, this.y + 40 * n, t), this.game.NewBloon(12, this.x - 40 * s, this.y - 40 * n, t), this.game.NewBloon(12, this.x + 20 * s, this.y + 20 * n, t), this.game.NewBloon(12, this.x - 20 * s, this.y - 20 * n, t); break; case 14: this.game.NewBloon(13, this.x + 60 * s, this.y + 60 * n, t), this.game.NewBloon(13, this.x - 60 * s, this.y - 60 * n, t), this.game.NewBloon(13, this.x + 20 * s, this.y + 20 * n, t), this.game.NewBloon(13, this.x - 20 * s, this.y - 20 * n, t); } this.deleteMe = !0; }, GotToEnd: function () { Zf.trace("got to end: " + this.rank, { fileName: "Bloon.hx", lineNumber: 664, className: "swf.Bloon", methodName: "GotToEnd", }), this.game.Escaped(this), this.RemoveMe(!1), (this.done = !0); }, Update: function () { var e = NaN, t = NaN, s = NaN, n = NaN, i = NaN, r = NaN, o = NaN, a = null, l = null; if (!this.popped && !this.done) { if (12 < this.rank) this.angle > Math.PI ? (this.angle -= 2 * Math.PI) : this.angle <= -Math.PI && (this.angle += 2 * Math.PI), (e = this.destAngle - this.angle) > Math.PI ? (e -= 2 * Math.PI) : -e > Math.PI && (e += 2 * Math.PI), e > this.rotSpeed ? (this.angle += this.rotSpeed) : -e > this.rotSpeed ? (this.angle -= this.rotSpeed) : (this.angle = this.destAngle); else if (7 != this.rank && 9 != this.rank) for (var h = 0, _ = this.game.towerlist; h < _.length; ) { var u = _[h]; if ((++h, "ice" == u.type && 4 == u.upgradeNum)) if ( (u.x - this.x) * (u.x - this.x) + (u.y - this.y) * (u.y - this.y) < u.arsq ) { if (!this.arctic) { this.arctic = !0; break; } } else this.arctic = !1; } if (this.glued) if ((this.timeGlued++, null != this.gluer)) { if ( ((this.timeGlued > this.gluer.glueLen || 1e3 < this.timeGlued) && this.endGlue(), 2 < this.gluer.upgradeNum && 0 < this.timeGlued && this.timeGlued % 80 == 0) ) return void this.Pop("na", this.gluer); } else 1e3 < this.timeGlued && this.endGlue(); this.frozen ? (this.timeFrozen++, (this.timeFrozen > this.freezer.freezeLen || 100 < this.timeFrozen) && this.endFreeze()) : ((this.x - this.destNode.x) * (this.x - this.destNode.x) + (this.y - this.destNode.y) * (this.y - this.destNode.y) < 400 ? (this.destIndex++, (this.timeSinceLastWaypoint = 0), this.getNextNode()) : 1500 < this.timeSinceLastWaypoint && (Zf.trace( "******************************************BLOON LEFT THE TRACK**************************************************", { fileName: "Bloon.hx", lineNumber: 784, className: "swf.Bloon", methodName: "Update", } ), this.RemoveMe(!1)), (t = this.vx), (s = this.vy), this.glued && 12 != this.rank && ((t /= 3), (s /= 3)), this.chilled && 7 != this.rank && 9 != this.rank && ((t /= 2), (s /= 2)), this.arctic && ((t /= 3), (s /= 3)), (this.x += t), (this.y += s), (this.prog = (this.prog += Math.abs(t)) + Math.abs(s))), this.chilled || this.frozen || this.glued || this.arctic || this.timeSinceLastWaypoint++; for (var d = 0, c = this.game.bulletlist; d < c.length; ) { var f = c[d]; if ((++d, this.popped || this.done)) break; if ( (null == this.parentBloon || f != this.parentBloon.popperBullet || this.parentBloon.bloonBusted) && !( ("frag" == f.type && f.timealive < 4) || ("gluetower" == f.type && this.glued) ) ) { if ("pineapple" == f.type && !f.exploded) continue; if ("boomerang" != f.type) { if (((r = f.__transform.tx - this.x) < 0 && (r = -r), 100 < r)) continue; if (((o = f.__transform.ty - this.y) < 0 && (o = -o), 100 < o)) continue; } if ( ((n = f.__transform.tx), (i = f.__transform.ty), f.hitRadius * f.hitRadius, "boomerang" == f.type && ((a = new qm(f.inner.__transform.tx, f.inner.__transform.ty)), (n = (l = f.inner.localToGlobal(a)).x / 2 + f.__transform.tx / 2), (i = l.y / 2 + f.__transform.ty / 2)), -1 != f.hitRadius) ) if ( (n - this.x) * (n - this.x) + (i - this.y) * (i - this.y) < (f.hitRadius + this.radius) * (f.hitRadius + this.radius) ) if ("glue" == f.type) this.rank < 13 && (0 == f.pierceCount && this.game.soundeffects.resolve("splat").play(), this.glued || f.pierceCount++, f.pierceCount >= f.pierceMax && f.DeleteMe(), this.glueMe(f)); else { if (8 == this.rank && !f.leadbreak && "ice" != f.type) return ( (f.pierceCount += 5), this.game.soundeffects.metalclink.play(), void (f.pierceCount >= f.pierceMax && f.DeleteMe()) ); if ( (f.pierceCount++, f.pierceCount >= f.pierceMax ? f.DeleteMe() : "spikes" == f.type && f.gotoAndStop(11 - (f.pierceMax - f.pierceCount)), ("bomb" == f.type || "fireball" == f.type || ("gluetower" == f.type && 3 < f.shooter.upgradeNum)) && !f.hashit) ) (f.hashit = !0), (f.vx = f.vy = 0), f.gotoAndPlay(2), "bomb" == f.type && 1 == De.field(this.game.mochiBoosters, "fragbombs") && this.game.fragBurst(f.shooter); else if ("gluetower" == f.type) this.glued || this.glueMe(f); else if ("ice" == f.type) this.frozen || 7 == this.rank || 9 == this.rank || this.freezeMe(!0, f); else if ("tornado" == f.type || "tempest" == f.type) { if (f == this.blower) { f.pierceCount--; continue; } this.rank < 13 && 8 != this.rank && ((this.destIndex = cT.random(this.destIndex)), this.getNextNode(), (this.blower = f), this.endFreeze(), this.endGlue()), 3 < f.shooter.upgradeNum && ((this.popperBullet = f), this.Pop(f.type, f.shooter)); } else this.frozen ? f.icebreak ? ((this.popperBullet = f), this.Pop(f.type, f.shooter)) : "ice" != f.type && this.game.soundeffects.clink.play() : ((this.popperBullet = f), this.Pop(f.type, f.shooter)); if (this.rank < 13) return; } } } } }, playZepSmash: function () { this.game.zeppSmash.play(0, 1); }, __class__: oT, })); var aT = function () { var e = Yp.getPath("assets/sounds/19_BombSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.BombSnd"] = aT).__name__ = ["swf", "BombSnd"]), (aT.__super__ = my), (aT.prototype = n(my.prototype, { __class__: aT })); var lT = function () { var e = Yp.getPath("assets/sounds/2_Btd4Music.m4a"); my.call(this, new Py(e)); }; ((s["swf.Btd4Music"] = lT).__name__ = ["swf", "Btd4Music"]), (lT.__super__ = my), (lT.prototype = n(my.prototype, { __class__: lT })); var hT = function () { var e = Yp.getPath("assets/sounds/16_CeramicSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.CeramicSnd"] = hT).__name__ = ["swf", "CeramicSnd"]), (hT.__super__ = my), (hT.prototype = n(my.prototype, { __class__: hT })); var _T = function () { var e = Yp.getPath("assets/sounds/3_CollectUnlockSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.CollectUnlockSnd"] = _T).__name__ = ["swf", "CollectUnlockSnd"]), (_T.__super__ = my), (_T.prototype = n(my.prototype, { __class__: _T })); var uT = function () { u.call(this, null, null), (this.scoreA = Math.round((13371337 * Math.random()) / 10)), (this.bullshit1 = this.scoreA), (this.bullshit2 = -this.bullshit1), (this.bullshit3 = (2 * this.bullshit2) | 0), (this.bullshit4 = (2 * this.bullshit3) | 0), (this.scoreB = -this.scoreA), this.addEventListener("enterFrame", CT(this, this.randomise)); }; ((s["swf.CryptScore"] = uT).__name__ = ["swf", "CryptScore"]), (uT.__super__ = u), (uT.prototype = n(u.prototype, { set_value: function (e) { return (this.scoreB = (-this.scoreA + 2 * e) | 0), e; }, add: function (e) { this.scoreB = (this.scoreB + 2 * e) | 0; }, stopHo: function () { this.removeEventListener("enterFrame", CT(this, this.randomise)); }, multiply: function (e) { this.scoreB = (this.scoreB + (e - 1) * (this.scoreA + this.scoreB)) | 0; }, get_value: function () { return ((this.scoreA + this.scoreB) / 2) | 0; }, randomise: function (e) { Math.round((13371337 * Math.random()) / 10), Math.round(Math.random()); throw new Mp(""); }, __class__: uT, __properties__: n(u.prototype.__properties__, { set_value: "set_value", get_value: "get_value", }), })); var dT = function () { var e = Yp.getPath("assets/sounds/14_FireRingSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.FireRingSnd"] = dT).__name__ = ["swf", "FireRingSnd"]), (dT.__super__ = my), (dT.prototype = n(my.prototype, { __class__: dT })); var cT = function () {}; ((s["swf.Helpers"] = cT).__name__ = ["swf", "Helpers"]), (cT.randomRange = function (e, t) { return Math.round(Math.random() * t) + e; }), (cT.random = function (e) { return Math.ceil(Math.random() * e); }), (cT.skewedRandom = function (e) { var t = cT.random(Math.floor(e / 2)), s = cT.random(Math.floor(e / 2)), n = cT.random(e), i = t + s; return 2 == i && 1 == n ? 1 : n < i ? i : n; }), (cT.waitForSomething = function (e, t) { var s, n = t; s = function (e) { n(); }; var i = new tT(e, 1); i.addEventListener("timer", s), i.start(); }), (cT.getDistSq = function (e, t, s, n) { return (e - s) * (e - s) + (t - n) * (t - n); }), (cT.prototype = { __class__: cT }); var fT = function () { var e = Yp.getPath("assets/sounds/5_IceSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.IceSnd"] = fT).__name__ = ["swf", "IceSnd"]), (fT.__super__ = my), (fT.prototype = n(my.prototype, { __class__: fT })); var pT = function () { var e = Yp.getPath("assets/sounds/12_PineSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.PineSnd"] = pT).__name__ = ["swf", "PineSnd"]), (pT.__super__ = my), (pT.prototype = n(my.prototype, { __class__: pT })); var bT = function () { var e = Yp.getPath("assets/sounds/10_Pop1.m4a"); my.call(this, new Py(e)); }; ((s["swf.Pop1"] = bT).__name__ = ["swf", "Pop1"]), (bT.__super__ = my), (bT.prototype = n(my.prototype, { __class__: bT })); var mT = function () { var e = Yp.getPath("assets/sounds/9_Pop2.m4a"); my.call(this, new Py(e)); }; ((s["swf.Pop2"] = mT).__name__ = ["swf", "Pop2"]), (mT.__super__ = my), (mT.prototype = n(my.prototype, { __class__: mT })); var gT = function () { var e = Yp.getPath("assets/sounds/8_Pop3.m4a"); my.call(this, new Py(e)); }; ((s["swf.Pop3"] = gT).__name__ = ["swf", "Pop3"]), (gT.__super__ = my), (gT.prototype = n(my.prototype, { __class__: gT })); var wT = function () { var e = Yp.getPath("assets/sounds/7_Pop4.m4a"); my.call(this, new Py(e)); }; ((s["swf.Pop4"] = wT).__name__ = ["swf", "Pop4"]), (wT.__super__ = my), (wT.prototype = n(my.prototype, { __class__: wT })); var vT = function () { var e = Yp.getPath("assets/sounds/13_RankUpSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.RankUpSnd"] = vT).__name__ = ["swf", "RankUpSnd"]), (vT.__super__ = my), (vT.prototype = n(my.prototype, { __class__: vT })); var yT = function () { var e = Yp.getPath("assets/sounds/6_SelltowerSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.SelltowerSnd"] = yT).__name__ = ["swf", "SelltowerSnd"]), (yT.__super__ = my), (yT.prototype = n(my.prototype, { __class__: yT })); var TT = function () { var e = Yp.getPath("assets/sounds/4_TornadoSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.TornadoSnd"] = TT).__name__ = ["swf", "TornadoSnd"]), (TT.__super__ = my), (TT.prototype = n(my.prototype, { __class__: TT })); var ST = function () { var e = Yp.getPath("assets/sounds/11_TowerPlaceSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.TowerPlaceSnd"] = ST).__name__ = ["swf", "TowerPlaceSnd"]), (ST.__super__ = my), (ST.prototype = n(my.prototype, { __class__: ST })); var xT = function () { u.call(this, null, null), this.init(); }; ((s["swf.Track"] = xT).__name__ = ["swf", "Track"]), (xT.__super__ = u), (xT.prototype = n(u.prototype, { init: function () { (this.nodes = []), (this.verified = !1); }, __class__: xT, })); var ET = function () { var e = Yp.getPath("assets/sounds/1_ZeppHitSnd.m4a"); my.call(this, new Py(e)); }; ((s["swf.ZeppHitSnd"] = ET).__name__ = ["swf", "ZeppHitSnd"]), (ET.__super__ = my), (ET.prototype = n(my.prototype, { __class__: ET })); var PT = function () { var e = Yp.getPath("assets/sounds/15_ZeppSmash.m4a"); my.call(this, new Py(e)); }; function RT(e) { return e instanceof Array ? function () { return he.iter(e); } : "function" == typeof e.iterator ? CT(e, e.iterator) : e.iterator; } ((s["swf.ZeppSmash"] = PT).__name__ = ["swf", "ZeppSmash"]), (PT.__super__ = my), (PT.prototype = n(my.prototype, { __class__: PT })); var AT, IT = 0; function CT(e, t) { return null == t ? null : (null == t.__id__ && (t.__id__ = IT++), null == e.hx__closures__ ? (e.hx__closures__ = {}) : (s = e.hx__closures__[t.__id__]), null == s && (((s = function () { return s.method.apply(s.scope, arguments); }).scope = e), (s.method = t), (e.hx__closures__[t.__id__] = s)), s); var s; } Object.defineProperty(W.prototype, "x", { get: function () { return this.get_x(); }, set: function (e) { this.set_x(e); }, }), Object.defineProperty(W.prototype, "y", { get: function () { return this.get_y(); }, set: function (e) { this.set_y(e); }, }), Object.defineProperty(W.prototype, "name", { get: function () { return this.get_name(); }, set: function (e) { this.set_name(e); }, }), Object.defineProperty(W.prototype, "visible", { get: function () { return this.get_visible(); }, set: function (e) { this.set_visible(e); }, }), Object.defineProperty(W.prototype, "scaleX", { get: function () { return this.get_scaleX(); }, set: function (e) { this.set_scaleX(e); }, }), Object.defineProperty(W.prototype, "scaleY", { get: function () { return this.get_scaleY(); }, set: function (e) { this.set_scaleY(e); }, }), Object.defineProperty(W.prototype, "rotation", { get: function () { return this.get_rotation(); }, set: function (e) { this.set_rotation(e); }, }), Object.defineProperty(W.prototype, "mask", { get: function () { return this.get_mask(); }, set: function (e) { this.set_mask(e); }, }), l.addAlias(1, "1_ZeppHitSnd"), l.addAlias(3, "3_CollectUnlockSnd"), l.addAlias(4, "4_TornadoSnd"), l.addAlias(5, "5_IceSnd"), l.addAlias(6, "6_SelltowerSnd"), l.addAlias(7, "7_Pop4"), l.addAlias(8, "8_Pop3"), l.addAlias(9, "9_Pop2"), l.addAlias(10, "10_Pop1"), l.addAlias(11, "11_TowerPlaceSnd"), l.addAlias(12, "12_PineSnd"), l.addAlias(13, "13_RankUpSnd"), l.addAlias(14, "14_FireRingSnd"), l.addAlias(15, "15_ZeppSmash"), l.addAlias(16, "16_CeramicSnd"), l.addAlias(17, "17_splat"), l.addAlias(18, "18_metalclink"), l.addAlias(19, "19_BombSnd"), (s.Math = Math), (String.prototype.__class__ = s.String = String), (String.__name__ = ["String"]), (s.Array = Array), (Array.__name__ = ["Array"]), (Date.prototype.__class__ = s.Date = Date), (Date.__name__ = ["Date"]); var BT = (s.Int = { __name__: ["Int"] }), DT = (s.Dynamic = { __name__: ["Dynamic"] }), kT = (s.Float = Number); kT.__name__ = ["Float"]; var FT = (s.Bool = Boolean); FT.__ename__ = ["Bool"]; var MT = (s.Class = { __name__: ["Class"] }), LT = {}, NT = {}, OT = t.ArrayBuffer || Up; null == OT.prototype.slice && (OT.prototype.slice = Up.sliceImpl); var UT = t.DataView || Gp, GT = t.Float32Array || zp._new, zT = t.Uint8Array || Xp._new, XT = new Uint32Array(256); sm.__alpha16 = XT; for (var HT = 0; HT < 256; ) { var VT = HT++; sm.__alpha16[VT] = Math.ceil(257.00392156862745 * VT); } var YT = new zT(510); sm.__clamp = YT; for (var WT = 0; WT < 255; ) { var jT = WT++; sm.__clamp[jT] = jT; } for (var KT, qT, ZT, JT, QT = 255; QT < 511; ) { var $T = QT++; sm.__clamp[$T] = 255; } (am.available = !1), (am.enabled = !1), (W.__worldRenderDirty = 0), (W.__worldTransformDirty = 0), (W.__worldBranchDirty = 0), (W.__cachedBitmapPadding = 1), (W.NO_MOUSE_LISTENER_BRANCH_DEPTH = 9999), (W.__lastMouseListenerBranchDepth = 9999), (W.__parentList = new Array(32)), (j.__mouseListenerBranchDepthStack = (((KT = new Ge())._items = []), (KT._length = KT._items.length), KT)), (u.soundCommandTable = []), (l.playingSoundTable = new lp()), (_o.__registeredFonts = []), (Be.minDuration = 5500), (Be.introWidth = 1440), (Be.introHeight = 900), (ke.registered = !1), (Vt.Element = 0), (Vt.PCData = 1), (Vt.CData = 2), (Vt.Comment = 3), (Vt.DocType = 4), (Vt.ProcessingInstruction = 5), (Vt.Document = 6), (Yt.TWOPI = 2 * Math.PI), (Yt.ROTATION_STEPS_DEFAULT = 1), (Yt._shushLoad = !1), (er.START = "start"), (er.snappingProperties = { x: !0, y: !0 }), (er.pauseAll = !1), (er.FRAME = "frame"), (er._timeInterval = 40), (er.TWEEN = "tween"), (er.TIME = "time"), (er.rotationProperties = { rotation: !0, rotationX: !0, rotationY: !0, rotationZ: !0, }), (er.DELAY = "delay"), (er.END = "end"), (er.HYBRID = "hybrid"), (or.FLOAT16_EXPONENT_BASE = 15), (or.MIN_FLOAT_VALUE = Number.MIN_VALUE), (or.MAX_FLOAT_VALUE = Number.MAX_VALUE), (lr.TIMEOUT = 50), (lr.AUTOBUILD_LAYERS = !1), (lr.EXTRACT_SOUND_STREAM = !0), (mr.UID = 0), (mr.SEQ = 0), (mr.SEQ_BITS = 8), (mr.SEQ_MASK = 16777215), (mr.CLASSES = []), (mr.CL_BYID = null), (mr.CLIDS = null), (gr.__clid = mr.registerClass(gr)), (wr.__clid = mr.registerClass(wr)), (vr.__clid = mr.registerClass(vr)), (Sr.__clid = mr.registerClass(Sr)), (Er.__clid = mr.registerClass(Er)), (Pr.__clid = mr.registerClass(Pr)), (Rr.__clid = mr.registerClass(Rr)), (Ar.__clid = mr.registerClass(Ar)), (Ir.__clid = mr.registerClass(Ir)), (Cr.__clid = mr.registerClass(Cr)), (Br.__clid = mr.registerClass(Br)), (Dr.__clid = mr.registerClass(Dr)), (kr.__clid = mr.registerClass(kr)), (Ur.__clid = mr.registerClass(Ur)), (Gr.TYPE_UNKNOWN = 0), (Gr.TYPE_END = 1), (Gr.TYPE_STYLECHANGE = 2), (Gr.TYPE_STRAIGHTEDGE = 3), (Gr.TYPE_CURVEDEDGE = 4), (Gr.__clid = mr.registerClass(Gr)), (zr.__clid = mr.registerClass(zr)), (Xr.__clid = mr.registerClass(Xr)), (Hr.__clid = mr.registerClass(Hr)), (Vr.__clid = mr.registerClass(Vr)), (Yr.__clid = mr.registerClass(Yr)), (Do.CODE = 7), (ko.BIT_8 = 3), (ko.BIT_15 = 4), (ko.BIT_24 = 5), (Fo.JPEG = 1), (Fo.GIF89A = 2), (Fo.PNG = 3), (Mo.NORMAL_0 = 0), (Mo.NORMAL_1 = 1), (Mo.LAYER = 2), (Mo.MULTIPLY = 3), (Mo.SCREEN = 4), (Mo.LIGHTEN = 5), (Mo.DARKEN = 6), (Mo.DIFFERENCE = 7), (Mo.ADD = 8), (Mo.SUBTRACT = 9), (Mo.INVERT = 10), (Mo.ALPHA = 11), (Mo.ERASE = 12), (Mo.OVERLAY = 13), (Mo.HARDLIGHT = 14), (Lo.THIN = 0), (Lo.MEDIUM = 1), (Lo.THICK = 2), (No.NORMAL = 0), (No.LINEAR = 1), (Oo.PAD = 0), (Oo.REFLECT = 1), (Oo.REPEAT = 2), (Uo.ROUND = 0), (Uo.NO = 1), (Uo.SQUARE = 2), (Go.ROUND = 0), (Go.BEVEL = 1), (Go.MITER = 2), (zo.UNCOMPRESSED_NATIVE_ENDIAN = 0), (zo.ADPCM = 1), (zo.MP3 = 2), (zo.UNCOMPRESSED_LITTLE_ENDIAN = 3), (zo.NELLYMOSER_16_KHZ = 4), (zo.NELLYMOSER_8_KHZ = 5), (zo.NELLYMOSER = 6), (zo.SPEEX = 11), (Xo.KHZ_5 = 0), (Xo.KHZ_11 = 1), (Xo.KHZ_22 = 2), (Xo.KHZ_44 = 3), (Ho.BIT_8 = 0), (Ho.BIT_16 = 1), (Vo.MONO = 0), (Vo.STEREO = 1), (Yo.H263 = 2), (Yo.SCREEN = 3), (Yo.VP6 = 4), (Yo.VP6ALPHA = 5), (Yo.SCREENV2 = 6), (Wo.VIDEOPACKET = 0), (Wo.OFF = 1), (Wo.LEVEL1 = 2), (Wo.LEVEL2 = 3), (Wo.LEVEL3 = 4), (Wo.LEVEL4 = 5), (Ko.__clid = mr.registerClass(Ko)), (qo.__clid = mr.registerClass(qo)), (Zo.__clid = mr.registerClass(Zo)), (Jo.MPEGversion_1_0 = 0), (Jo.MPEGversion_2_0 = 1), (Jo.MPEGversion_2_5 = 2), (Jo.MPEG_LAYER_I = 0), (Jo.MPEG_LAYER_II = 1), (Jo.MPEG_LAYER_III = 2), (Jo.CHANNEL_MODE_STEREO = 0), (Jo.CHANNEL_MODE_JOINT_STEREO = 1), (Jo.CHANNEL_MODE_DUAL = 2), (Jo.CHANNEL_MODE_MONO = 3), (Jo.mpegBitrates = [ [ [0, 32, 96, 128, 160, 192, 224, 256, 288, 320, 352, 384, 416, 448, -1], [0, 32, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, 384, -1], [0, 32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320, -1], ], [ [0, 32, 48, 56, 64, 80, 96, 112, 128, 144, 160, 176, 192, 224, 256, -1], [0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, -1], [0, 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160, -1], ], ]), (Jo.mpegsamplingrates = [ [44100, 48e3, 32e3], [22050, 24e3, 16e3], [11025, 12e3, 8e3], ]), (_a.ACTIVATE = "activate"), (_a.ADDED = "added"), (_a.ADDED_TO_STAGE = "addedToStage"), (_a.CANCEL = "cancel"), (_a.CHANGE = "change"), (_a.CLOSE = "close"), (_a.COMPLETE = "complete"), (_a.CONNECT = "connect"), (_a.CONTEXT3D_CREATE = "context3DCreate"), (_a.DEACTIVATE = "deactivate"), (_a.ENTER_FRAME = "enterFrame"), (_a.ID3 = "id3"), (_a.INIT = "init"), (_a.MOUSE_LEAVE = "mouseLeave"), (_a.MOUSE_ENTER = "mouseEnter"), (_a.OPEN = "open"), (_a.REMOVED = "removed"), (_a.REMOVED_FROM_STAGE = "removedFromStage"), (_a.RENDER = "render"), (_a.RESIZE = "resize"), (_a.SCROLL = "scroll"), (_a.SELECT = "select"), (_a.SOUND_COMPLETE = "soundComplete"), (_a.TAB_CHILDREN_CHANGE = "tabChildrenChange"), (_a.TAB_ENABLED_CHANGE = "tabEnabledChange"), (_a.TAB_INDEX_CHANGE = "tabIndexChange"), (_a.UNLOAD = "unload"), (_a.pool = new la(function () { return new _a(""); })), (ua.ERROR = "error"), (ua.REASON_EOF = "eof"), (da.PROGRESS = "progress"), (da.COMPLETE = "complete"), (ca.WARN_OVERFLOW = "overflow"), (ca.WARN_UNDERFLOW = "underflow"), (Sa.__moveDelta = 10), (Sa.__maxScaleDifferenceBetweenRefreshGraphics = 0.4), (Ca.instances = new up()), (Ca.fontAliases = new up()), (Ca.fontAliasesId = new lp()), (Ca.__clid = mr.registerClass(Ca)), (Na.__clid = mr.registerClass(Na)), (Oa.__clid = mr.registerClass(Oa)), (Ua.__clid = mr.registerClass(Ua)), (Ga.__clid = mr.registerClass(Ga)), (za.__clid = mr.registerClass(za)), (Xa.defaultCachePrecision = 100), (Xa.__clid = mr.registerClass(Xa)), (Ha.__buffer = new Int32Array(5)), (Va.defaultCachePrecision = 100), (Va.defaultTranslationCachePrecision = 100), (Va.eventIsListened = !1), (Va.shapeSymbolsUsingBitmapCacheMap = new lp()), (Va.__clid = mr.registerClass(Va)), (Ya.__buffer = new Int32Array(6)), (Wa.__clid = mr.registerClass(Wa)), (ja.__clid = mr.registerClass(ja)), (Ka.__clid = mr.registerClass(Ka)), (qa.__clid = mr.registerClass(qa)), (Za.__clid = mr.registerClass(Za)), (Ja.__clid = mr.registerClass(Ja)), (Qa.__clid = mr.registerClass(Qa)), (il.TYPE = 74), (rl.TYPE = 63), (ol.TYPE = 87), (al.TYPE = 6), (ll.TYPE = 21), (hl.TYPE = 35), (_l.TYPE = 90), (ul.TYPE = 20), (dl.TYPE = 36), (cl.TYPE = 7), (cl.STATE_UP = "up"), (cl.STATE_OVER = "over"), (cl.STATE_DOWN = "down"), (cl.STATE_HIT = "hit"), (fl.TYPE = 34), (pl.TYPE = 23), (bl.TYPE = 17), (ml.TYPE = 37), (gl.TYPE = 10), (gl.unitDivisor = 1), (wl.TYPE = 48), (vl.TYPE = 75), (vl.unitDivisor = 20), (yl.TYPE = 91), (Tl.TYPE = 73), (Sl.TYPE = 13), (xl.TYPE = 62), (El.TYPE = 88), (Pl.TYPE = 46), (Rl.TYPE = 84), (Al.TYPE = 78), (Il.TYPE = 86), (Cl.TYPE = 2), (Bl.TYPE = 22), (Dl.TYPE = 32), (kl.TYPE = 83), (Fl.TYPE = 14), (Ml.TYPE = 39), (Ll.TYPE = 11), (Nl.TYPE = 33), (Ol.TYPE = 60), (Ul.TYPE = 82), (Gl.TYPE = 72), (zl.TYPE = 12), (Xl.TYPE = 59), (Hl.TYPE = 58), (Vl.TYPE = 64), (Yl.TYPE = 93), (Wl.TYPE = 0), (jl.TYPE = 56), (Kl.TYPE = 69), (ql.TYPE = 43), (Zl.TYPE = 57), (Jl.TYPE = 71), (Ql.TYPE = 8), ($l.TYPE = 77), (eh.TYPE = 40), (th.TYPE = 4), (sh.TYPE = 26), (nh.TYPE = 70), (ih.TYPE = 94), (rh.TYPE = 41), (oh.TYPE = 24), (ah.TYPE = 5), (lh.TYPE = 28), (hh.TYPE = 65), (_h.TYPE = 9), (uh.TYPE = 66), (dh.TYPE = 1), (ch.TYPE = 19), (fh.TYPE = 18), (Tf.TYPE = 45), (Sf.TYPE = 15), (xf.TYPE = 89), (Ef.TYPE = 76), (Rf.TYPE = 61), (Af.TYPE = 253), (If.TYPE = 255), (kf.TYPE_EMPTY = 0), (kf.TYPE_SPACER = 1), (kf.TYPE_STATIC = 2), (kf.TYPE_MOTIONTWEEN = 3), (kf.TYPE_SHAPETWEEN = 4), (Yf.i = 0), (Yf.SIGN_UNDEF = 0), (Yf.SIGN_POS = -1), (Yf.SIGN_NEG = 1), (Jf.USE_CACHE = !1), (Jf.USE_ENUM_INDEX = !1), (Jf.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:"), (Jf.BASE64_CODES = null), (ep.DEFAULT_RESOLVER = new $f()), (ep.BASE64 = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789%:"), (ep.CODES = null), (hp.count = 0), (bp.i64tmp = new qf(0, 0)), (Sp.escapes = ((qT = new up()), null != NT.lt ? qT.setReserved("lt", "<") : (qT.h.lt = "<"), null != NT.gt ? qT.setReserved("gt", ">") : (qT.h.gt = ">"), null != NT.amp ? qT.setReserved("amp", "&") : (qT.h.amp = "&"), null != NT.quot ? qT.setReserved("quot", '"') : (qT.h.quot = '"'), null != NT.apos ? qT.setReserved("apos", "'") : (qT.h.apos = "'"), qT)), (Ip.IN_ENUM_SER = !1), (Cp.__clid = mr.registerClass(Cp)), (Lp.__toStr = {}.toString), (zp.BYTES_PER_ELEMENT = 4), (Xp.BYTES_PER_ELEMENT = 1), (Yp.cache = new Hp()), (Yp.libraries = new up()), (Yp.onChange = new Vp()), (Yp.initialized = !1), (Yp.extraSoundOptions = new up()), (Wp.stopUpdating = !1), (Zp.windowID = 0), (mb.images = new up()), (mb.loaders = new up()), (Ab.NONE = 0), (Ab.FALSE = 0), (Ab.TRUE = 1), (Ab.SOURCE_RELATIVE = 514), (Ab.CONE_INNER_ANGLE = 4097), (Ab.CONE_OUTER_ANGLE = 4098), (Ab.PITCH = 4099), (Ab.POSITION = 4100), (Ab.DIRECTION = 4101), (Ab.VELOCITY = 4102), (Ab.LOOPING = 4103), (Ab.BUFFER = 4105), (Ab.GAIN = 4106), (Ab.MIN_GAIN = 4109), (Ab.MAX_GAIN = 4110), (Ab.ORIENTATION = 4111), (Ab.SOURCE_STATE = 4112), (Ab.INITIAL = 4113), (Ab.PLAYING = 4114), (Ab.PAUSED = 4115), (Ab.STOPPED = 4116), (Ab.BUFFERS_QUEUED = 4117), (Ab.BUFFERS_PROCESSED = 4118), (Ab.REFERENCE_DISTANCE = 4128), (Ab.ROLLOFF_FACTOR = 4129), (Ab.CONE_OUTER_GAIN = 4130), (Ab.MAX_DISTANCE = 4131), (Ab.SEC_OFFSET = 4132), (Ab.SAMPLE_OFFSET = 4133), (Ab.BYTE_OFFSET = 4134), (Ab.SOURCE_TYPE = 4135), (Ab.STATIC = 4136), (Ab.STREAMING = 4137), (Ab.UNDETERMINED = 4144), (Ab.FORMAT_MONO8 = 4352), (Ab.FORMAT_MONO16 = 4353), (Ab.FORMAT_STEREO8 = 4354), (Ab.FORMAT_STEREO16 = 4355), (Ab.FREQUENCY = 8193), (Ab.BITS = 8194), (Ab.CHANNELS = 8195), (Ab.SIZE = 8196), (Ab.NO_ERROR = 0), (Ab.INVALID_NAME = 40961), (Ab.INVALID_ENUM = 40962), (Ab.INVALID_VALUE = 40963), (Ab.INVALID_OPERATION = 40964), (Ab.OUT_OF_MEMORY = 40965), (Ab.VENDOR = 45057), (Ab.VERSION = 45058), (Ab.RENDERER = 45059), (Ab.EXTENSIONS = 45060), (Ab.DOPPLER_FACTOR = 49152), (Ab.SPEED_OF_SOUND = 49155), (Ab.DOPPLER_VELOCITY = 49153), (Ab.DISTANCE_MODEL = 53248), (Ab.INVERSE_DISTANCE = 53249), (Ab.INVERSE_DISTANCE_CLAMPED = 53250), (Ab.LINEAR_DISTANCE = 53251), (Ab.LINEAR_DISTANCE_CLAMPED = 53252), (Ab.EXPONENT_DISTANCE = 53253), (Ab.EXPONENT_DISTANCE_CLAMPED = 53254), (Ib.FALSE = 0), (Ib.TRUE = 1), (Ib.FREQUENCY = 4103), (Ib.REFRESH = 4104), (Ib.SYNC = 4105), (Ib.MONO_SOURCES = 4112), (Ib.STEREO_SOURCES = 4113), (Ib.NO_ERROR = 0), (Ib.INVALID_DEVICE = 40961), (Ib.INVALID_CONTEXT = 40962), (Ib.INVALID_ENUM = 40963), (Ib.INVALID_VALUE = 40964), (Ib.OUT_OF_MEMORY = 40965), (Ib.ATTRIBUTES_SIZE = 4098), (Ib.ALL_ATTRIBUTES = 4099), (Ib.DEFAULT_DEVICE_SPECIFIER = 4100), (Ib.DEVICE_SPECIFIER = 4101), (Ib.EXTENSIONS = 4102), (Ib.ENUMERATE_ALL_EXT = 1), (Ib.DEFAULT_ALL_DEVICES_SPECIFIER = 4114), (Ib.ALL_DEVICES_SPECIFIER = 4115), (kb.__base64Chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"), (Vb.DEPTH_BUFFER_BIT = 256), (Vb.STENCIL_BUFFER_BIT = 1024), (Vb.COLOR_BUFFER_BIT = 16384), (Vb.POINTS = 0), (Vb.LINES = 1), (Vb.LINE_LOOP = 2), (Vb.LINE_STRIP = 3), (Vb.TRIANGLES = 4), (Vb.TRIANGLE_STRIP = 5), (Vb.TRIANGLE_FAN = 6), (Vb.ZERO = 0), (Vb.ONE = 1), (Vb.SRC_COLOR = 768), (Vb.ONE_MINUS_SRC_COLOR = 769), (Vb.SRC_ALPHA = 770), (Vb.ONE_MINUS_SRC_ALPHA = 771), (Vb.DST_ALPHA = 772), (Vb.ONE_MINUS_DST_ALPHA = 773), (Vb.DST_COLOR = 774), (Vb.ONE_MINUS_DST_COLOR = 775), (Vb.SRC_ALPHA_SATURATE = 776), (Vb.FUNC_ADD = 32774), (Vb.BLEND_EQUATION = 32777), (Vb.BLEND_EQUATION_RGB = 32777), (Vb.BLEND_EQUATION_ALPHA = 34877), (Vb.FUNC_SUBTRACT = 32778), (Vb.FUNC_REVERSE_SUBTRACT = 32779), (Vb.BLEND_DST_RGB = 32968), (Vb.BLEND_SRC_RGB = 32969), (Vb.BLEND_DST_ALPHA = 32970), (Vb.BLEND_SRC_ALPHA = 32971), (Vb.CONSTANT_COLOR = 32769), (Vb.ONE_MINUS_CONSTANT_COLOR = 32770), (Vb.CONSTANT_ALPHA = 32771), (Vb.ONE_MINUS_CONSTANT_ALPHA = 32772), (Vb.BLEND_COLOR = 32773), (Vb.ARRAY_BUFFER = 34962), (Vb.ELEMENT_ARRAY_BUFFER = 34963), (Vb.ARRAY_BUFFER_BINDING = 34964), (Vb.ELEMENT_ARRAY_BUFFER_BINDING = 34965), (Vb.STREAM_DRAW = 35040), (Vb.STATIC_DRAW = 35044), (Vb.DYNAMIC_DRAW = 35048), (Vb.BUFFER_SIZE = 34660), (Vb.BUFFER_USAGE = 34661), (Vb.CURRENT_VERTEX_ATTRIB = 34342), (Vb.FRONT = 1028), (Vb.BACK = 1029), (Vb.FRONT_AND_BACK = 1032), (Vb.CULL_FACE = 2884), (Vb.BLEND = 3042), (Vb.DITHER = 3024), (Vb.STENCIL_TEST = 2960), (Vb.DEPTH_TEST = 2929), (Vb.SCISSOR_TEST = 3089), (Vb.POLYGON_OFFSET_FILL = 32823), (Vb.SAMPLE_ALPHA_TO_COVERAGE = 32926), (Vb.SAMPLE_COVERAGE = 32928), (Vb.NO_ERROR = 0), (Vb.INVALID_ENUM = 1280), (Vb.INVALID_VALUE = 1281), (Vb.INVALID_OPERATION = 1282), (Vb.OUT_OF_MEMORY = 1285), (Vb.CW = 2304), (Vb.CCW = 2305), (Vb.LINE_WIDTH = 2849), (Vb.ALIASED_POINT_SIZE_RANGE = 33901), (Vb.ALIASED_LINE_WIDTH_RANGE = 33902), (Vb.CULL_FACE_MODE = 2885), (Vb.FRONT_FACE = 2886), (Vb.DEPTH_RANGE = 2928), (Vb.DEPTH_WRITEMASK = 2930), (Vb.DEPTH_CLEAR_VALUE = 2931), (Vb.DEPTH_FUNC = 2932), (Vb.STENCIL_CLEAR_VALUE = 2961), (Vb.STENCIL_FUNC = 2962), (Vb.STENCIL_FAIL = 2964), (Vb.STENCIL_PASS_DEPTH_FAIL = 2965), (Vb.STENCIL_PASS_DEPTH_PASS = 2966), (Vb.STENCIL_REF = 2967), (Vb.STENCIL_VALUE_MASK = 2963), (Vb.STENCIL_WRITEMASK = 2968), (Vb.STENCIL_BACK_FUNC = 34816), (Vb.STENCIL_BACK_FAIL = 34817), (Vb.STENCIL_BACK_PASS_DEPTH_FAIL = 34818), (Vb.STENCIL_BACK_PASS_DEPTH_PASS = 34819), (Vb.STENCIL_BACK_REF = 36003), (Vb.STENCIL_BACK_VALUE_MASK = 36004), (Vb.STENCIL_BACK_WRITEMASK = 36005), (Vb.VIEWPORT = 2978), (Vb.SCISSOR_BOX = 3088), (Vb.COLOR_CLEAR_VALUE = 3106), (Vb.COLOR_WRITEMASK = 3107), (Vb.UNPACK_ALIGNMENT = 3317), (Vb.PACK_ALIGNMENT = 3333), (Vb.MAX_TEXTURE_SIZE = 3379), (Vb.MAX_VIEWPORT_DIMS = 3386), (Vb.SUBPIXEL_BITS = 3408), (Vb.RED_BITS = 3410), (Vb.GREEN_BITS = 3411), (Vb.BLUE_BITS = 3412), (Vb.ALPHA_BITS = 3413), (Vb.DEPTH_BITS = 3414), (Vb.STENCIL_BITS = 3415), (Vb.POLYGON_OFFSET_UNITS = 10752), (Vb.POLYGON_OFFSET_FACTOR = 32824), (Vb.TEXTURE_BINDING_2D = 32873), (Vb.SAMPLE_BUFFERS = 32936), (Vb.SAMPLES = 32937), (Vb.SAMPLE_COVERAGE_VALUE = 32938), (Vb.SAMPLE_COVERAGE_INVERT = 32939), (Vb.COMPRESSED_TEXTURE_FORMATS = 34467), (Vb.DONT_CARE = 4352), (Vb.FASTEST = 4353), (Vb.NICEST = 4354), (Vb.GENERATE_MIPMAP_HINT = 33170), (Vb.BYTE = 5120), (Vb.UNSIGNED_BYTE = 5121), (Vb.SHORT = 5122), (Vb.UNSIGNED_SHORT = 5123), (Vb.INT = 5124), (Vb.UNSIGNED_INT = 5125), (Vb.FLOAT = 5126), (Vb.DEPTH_COMPONENT = 6402), (Vb.ALPHA = 6406), (Vb.RGB = 6407), (Vb.RGBA = 6408), (Vb.BGR_EXT = 32992), (Vb.BGRA_EXT = 32993), (Vb.LUMINANCE = 6409), (Vb.LUMINANCE_ALPHA = 6410), (Vb.UNSIGNED_SHORT_4_4_4_4 = 32819), (Vb.UNSIGNED_SHORT_5_5_5_1 = 32820), (Vb.UNSIGNED_SHORT_5_6_5 = 33635), (Vb.FRAGMENT_SHADER = 35632), (Vb.VERTEX_SHADER = 35633), (Vb.MAX_VERTEX_ATTRIBS = 34921), (Vb.MAX_VERTEX_UNIFORM_VECTORS = 36347), (Vb.MAX_VARYING_VECTORS = 36348), (Vb.MAX_COMBINED_TEXTURE_IMAGE_UNITS = 35661), (Vb.MAX_VERTEX_TEXTURE_IMAGE_UNITS = 35660), (Vb.MAX_TEXTURE_IMAGE_UNITS = 34930), (Vb.MAX_FRAGMENT_UNIFORM_VECTORS = 36349), (Vb.SHADER_TYPE = 35663), (Vb.DELETE_STATUS = 35712), (Vb.LINK_STATUS = 35714), (Vb.VALIDATE_STATUS = 35715), (Vb.ATTACHED_SHADERS = 35717), (Vb.ACTIVE_UNIFORMS = 35718), (Vb.ACTIVE_ATTRIBUTES = 35721), (Vb.SHADING_LANGUAGE_VERSION = 35724), (Vb.CURRENT_PROGRAM = 35725), (Vb.NEVER = 512), (Vb.LESS = 513), (Vb.EQUAL = 514), (Vb.LEQUAL = 515), (Vb.GREATER = 516), (Vb.NOTEQUAL = 517), (Vb.GEQUAL = 518), (Vb.ALWAYS = 519), (Vb.KEEP = 7680), (Vb.REPLACE = 7681), (Vb.INCR = 7682), (Vb.DECR = 7683), (Vb.INVERT = 5386), (Vb.INCR_WRAP = 34055), (Vb.DECR_WRAP = 34056), (Vb.VENDOR = 7936), (Vb.RENDERER = 7937), (Vb.VERSION = 7938), (Vb.NEAREST = 9728), (Vb.LINEAR = 9729), (Vb.NEAREST_MIPMAP_NEAREST = 9984), (Vb.LINEAR_MIPMAP_NEAREST = 9985), (Vb.NEAREST_MIPMAP_LINEAR = 9986), (Vb.LINEAR_MIPMAP_LINEAR = 9987), (Vb.TEXTURE_MAG_FILTER = 10240), (Vb.TEXTURE_MIN_FILTER = 10241), (Vb.TEXTURE_WRAP_S = 10242), (Vb.TEXTURE_WRAP_T = 10243), (Vb.TEXTURE_2D = 3553), (Vb.TEXTURE = 5890), (Vb.TEXTURE_CUBE_MAP = 34067), (Vb.TEXTURE_BINDING_CUBE_MAP = 34068), (Vb.TEXTURE_CUBE_MAP_POSITIVE_X = 34069), (Vb.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070), (Vb.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071), (Vb.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072), (Vb.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073), (Vb.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074), (Vb.MAX_CUBE_MAP_TEXTURE_SIZE = 34076), (Vb.TEXTURE0 = 33984), (Vb.TEXTURE1 = 33985), (Vb.TEXTURE2 = 33986), (Vb.TEXTURE3 = 33987), (Vb.TEXTURE4 = 33988), (Vb.TEXTURE5 = 33989), (Vb.TEXTURE6 = 33990), (Vb.TEXTURE7 = 33991), (Vb.TEXTURE8 = 33992), (Vb.TEXTURE9 = 33993), (Vb.TEXTURE10 = 33994), (Vb.TEXTURE11 = 33995), (Vb.TEXTURE12 = 33996), (Vb.TEXTURE13 = 33997), (Vb.TEXTURE14 = 33998), (Vb.TEXTURE15 = 33999), (Vb.TEXTURE16 = 34e3), (Vb.TEXTURE17 = 34001), (Vb.TEXTURE18 = 34002), (Vb.TEXTURE19 = 34003), (Vb.TEXTURE20 = 34004), (Vb.TEXTURE21 = 34005), (Vb.TEXTURE22 = 34006), (Vb.TEXTURE23 = 34007), (Vb.TEXTURE24 = 34008), (Vb.TEXTURE25 = 34009), (Vb.TEXTURE26 = 34010), (Vb.TEXTURE27 = 34011), (Vb.TEXTURE28 = 34012), (Vb.TEXTURE29 = 34013), (Vb.TEXTURE30 = 34014), (Vb.TEXTURE31 = 34015), (Vb.ACTIVE_TEXTURE = 34016), (Vb.REPEAT = 10497), (Vb.CLAMP_TO_EDGE = 33071), (Vb.MIRRORED_REPEAT = 33648), (Vb.FLOAT_VEC2 = 35664), (Vb.FLOAT_VEC3 = 35665), (Vb.FLOAT_VEC4 = 35666), (Vb.INT_VEC2 = 35667), (Vb.INT_VEC3 = 35668), (Vb.INT_VEC4 = 35669), (Vb.BOOL = 35670), (Vb.BOOL_VEC2 = 35671), (Vb.BOOL_VEC3 = 35672), (Vb.BOOL_VEC4 = 35673), (Vb.FLOAT_MAT2 = 35674), (Vb.FLOAT_MAT3 = 35675), (Vb.FLOAT_MAT4 = 35676), (Vb.SAMPLER_2D = 35678), (Vb.SAMPLER_CUBE = 35680), (Vb.VERTEX_ATTRIB_ARRAY_ENABLED = 34338), (Vb.VERTEX_ATTRIB_ARRAY_SIZE = 34339), (Vb.VERTEX_ATTRIB_ARRAY_STRIDE = 34340), (Vb.VERTEX_ATTRIB_ARRAY_TYPE = 34341), (Vb.VERTEX_ATTRIB_ARRAY_NORMALIZED = 34922), (Vb.VERTEX_ATTRIB_ARRAY_POINTER = 34373), (Vb.VERTEX_ATTRIB_ARRAY_BUFFER_BINDING = 34975), (Vb.VERTEX_PROGRAM_POINT_SIZE = 34370), (Vb.POINT_SPRITE = 34913), (Vb.COMPILE_STATUS = 35713), (Vb.LOW_FLOAT = 36336), (Vb.MEDIUM_FLOAT = 36337), (Vb.HIGH_FLOAT = 36338), (Vb.LOW_INT = 36339), (Vb.MEDIUM_INT = 36340), (Vb.HIGH_INT = 36341), (Vb.FRAMEBUFFER = 36160), (Vb.RENDERBUFFER = 36161), (Vb.RGBA4 = 32854), (Vb.RGB5_A1 = 32855), (Vb.RGB565 = 36194), (Vb.DEPTH_COMPONENT16 = 33189), (Vb.STENCIL_INDEX = 6401), (Vb.STENCIL_INDEX8 = 36168), (Vb.DEPTH_STENCIL = 34041), (Vb.RENDERBUFFER_WIDTH = 36162), (Vb.RENDERBUFFER_HEIGHT = 36163), (Vb.RENDERBUFFER_INTERNAL_FORMAT = 36164), (Vb.RENDERBUFFER_RED_SIZE = 36176), (Vb.RENDERBUFFER_GREEN_SIZE = 36177), (Vb.RENDERBUFFER_BLUE_SIZE = 36178), (Vb.RENDERBUFFER_ALPHA_SIZE = 36179), (Vb.RENDERBUFFER_DEPTH_SIZE = 36180), (Vb.RENDERBUFFER_STENCIL_SIZE = 36181), (Vb.FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE = 36048), (Vb.FRAMEBUFFER_ATTACHMENT_OBJECT_NAME = 36049), (Vb.FRAMEBUFFER_ATTACHMENT_TEXTURE_LEVEL = 36050), (Vb.FRAMEBUFFER_ATTACHMENT_TEXTURE_CUBE_MAP_FACE = 36051), (Vb.COLOR_ATTACHMENT0 = 36064), (Vb.DEPTH_ATTACHMENT = 36096), (Vb.STENCIL_ATTACHMENT = 36128), (Vb.DEPTH_STENCIL_ATTACHMENT = 33306), (Vb.NONE = 0), (Vb.FRAMEBUFFER_COMPLETE = 36053), (Vb.FRAMEBUFFER_INCOMPLETE_ATTACHMENT = 36054), (Vb.FRAMEBUFFER_INCOMPLETE_MISSING_ATTACHMENT = 36055), (Vb.FRAMEBUFFER_INCOMPLETE_DIMENSIONS = 36057), (Vb.FRAMEBUFFER_UNSUPPORTED = 36061), (Vb.FRAMEBUFFER_BINDING = 36006), (Vb.RENDERBUFFER_BINDING = 36007), (Vb.MAX_RENDERBUFFER_SIZE = 34024), (Vb.INVALID_FRAMEBUFFER_OPERATION = 1286), (Vb.UNPACK_FLIP_Y_WEBGL = 37440), (Vb.UNPACK_PREMULTIPLY_ALPHA_WEBGL = 37441), (Vb.CONTEXT_LOST_WEBGL = 37442), (Vb.UNPACK_COLORSPACE_CONVERSION_WEBGL = 37443), (Vb.BROWSER_DEFAULT_WEBGL = 37444), (Vb.currentBoundTexture = new Array(8)), (Vb.textureStateCache = new hp()), (Kb.__identity = [ 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, ]), (qb.__identity = new qb()), (Zb.__identity = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]), (im.GLOBAL_SSL = 1), (im.GLOBAL_WIN32 = 2), (im.GLOBAL_ALL = 3), (im.GLOBAL_NOTHING = 0), (im.GLOBAL_DEFAULT = 3), (im.GLOBAL_ACK_EINTR = 4), (om.MESSAGE_COMPLETE = "__COMPLETE__"), (om.MESSAGE_ERROR = "__ERROR__"), (am.__moduleNames = null), (vm.INVALID = 0), (vm.LEFT_TO_RIGHT = 4), (vm.RIGHT_TO_LEFT = 5), (vm.TOP_TO_BOTTOM = 6), (vm.BOTTOM_TO_TOP = 7), (Tm.COMMON = "Zyyy"), (Tm.INHERITED = "Zinh"), (Tm.UNKNOWN = "Zzzz"), (Tm.ARABIC = "Arab"), (Tm.ARMENIAN = "Armn"), (Tm.BENGALI = "Beng"), (Tm.CYRILLIC = "Cyrl"), (Tm.DEVANAGARI = "Deva"), (Tm.GEORGIAN = "Geor"), (Tm.GREEK = "Grek"), (Tm.GUJARATI = "Gujr"), (Tm.GURMUKHI = "Guru"), (Tm.HANGUL = "Hang"), (Tm.HAN = "Hani"), (Tm.HEBREW = "Hebr"), (Tm.HIRAGANA = "Hira"), (Tm.KANNADA = "Knda"), (Tm.KATAKANA = "Kana"), (Tm.LAO = "Laoo"), (Tm.LATIN = "Latn"), (Tm.MALAYALAM = "Mlym"), (Tm.ORIYA = "Orya"), (Tm.TAMIL = "Taml"), (Tm.TELUGA = "Telu"), (Tm.THAI = "Thai"), (Tm.TIBETAN = "Tibt"), (Tm.BOPOMOFO = "Bopo"), (Tm.BRAILLE = "Brai"), (Tm.CANADIAN_SYLLABICS = "Cans"), (Tm.CHEROKEE = "Cher"), (Tm.ETHIOPIC = "Ethi"), (Tm.KHMER = "Khmr"), (Tm.MONGOLIAN = "Mong"), (Tm.MYANMAR = "Mymr"), (Tm.OGHAM = "Ogam"), (Tm.RUNIC = "Runr"), (Tm.SINHALA = "Sinh"), (Tm.SYRIAC = "Syrc"), (Tm.THAANA = "Thaa"), (Tm.YI = "Yiii"), (Tm.DESERET = "Dsrt"), (Tm.GOTHIC = "Goth"), (Tm.OLD_ITALIC = "Ital"), (Tm.BUHID = "Buhd"), (Tm.HANUNOO = "Hano"), (Tm.TAGALOG = "Tglg"), (Tm.TAGBANWA = "Tagb"), (Tm.CYPRIOT = "Cprt"), (Tm.LIMBU = "Limb"), (Tm.LINEAR_B = "Linb"), (Tm.OSMANYA = "Osma"), (Tm.SHAVIAN = "Shaw"), (Tm.TAI_LE = "Tale"), (Tm.UGARITIC = "Ugar"), (Tm.BUGINESE = "Bugi"), (Tm.COPTIC = "Copt"), (Tm.GLAGOLITIC = "Glag"), (Tm.KHAROSHTHI = "Khar"), (Tm.NEW_TAI_LUE = "Talu"), (Tm.OLD_PERSIAN = "Xpeo"), (Tm.SYLOTI_NAGRI = "Sylo"), (Tm.TIFINAGH = "Tfng"), (Tm.BALINESE = "Bali"), (Tm.CUNEIFORM = "Xsux"), (Tm.NKO = "Nkoo"), (Tm.PHAGS_PA = "Phag"), (Tm.PHOENICIAN = "Phnx"), (Tm.CARIAN = "Cari"), (Tm.CHAM = "Cham"), (Tm.KAYAH_LI = "Kali"), (Tm.LEPCHA = "Lepc"), (Tm.LYCIAN = "Lyci"); (Tm.LYDIAN = "Lydi"), (Tm.OL_CHIKI = "Olck"), (Tm.REJANG = "Rjng"), (Tm.SAURASHTRA = "Saur"), (Tm.SUNDANESE = "Sund"), (Tm.VAI = "Vaii"), (Tm.AVESTAN = "Avst"), (Tm.BAMUM = "Bamu"), (Tm.EGYPTIAN_HIEROGLYPHS = "Egyp"), (Tm.IMPERIAL_ARAMAIC = "Armi"), (Tm.INSCRIPTIONAL_PAHLAVI = "Phli"), (Tm.INSCRIPTIONAL_PARTHIAN = "Prti"), (Tm.JAVANESE = "Java"), (Tm.KAITHI = "Kthi"), (Tm.LISU = "Lisu"), (Tm.MEETEI_MAYEK = "Mtei"), (Tm.OLD_SOUTH_ARABIAN = "Sarb"), (Tm.OLD_TURKIC = "Orkh"), (Tm.SAMARITAN = "Samr"), (Tm.TAI_THAM = "Lana"), (Tm.TAI_VIET = "Tavt"), (Tm.BATAK = "Batk"), (Tm.BRAHMI = "Brah"), (Tm.MANDAIC = "Mand"), (Tm.CHAKMA = "Cakm"), (Tm.MEROITIC_CURSIVE = "Merc"), (Tm.MEROITIC_HIEROGLYPHS = "Mero"), (Tm.MIAO = "Plrd"), (Tm.SHARADA = "Shrd"), (Tm.SORA_SOMPENG = "Sora"), (Tm.TAKRI = "Takr"), (Tm.BASSA_VAH = "Bass"), (Tm.CAUCASIAN_ALBANIAN = "Aghb"), (Tm.DUPLOYAN = "Dupl"), (Tm.ELBASAN = "Elba"), (Tm.GRANTHA = "Gran"), (Tm.KHOJKI = "Khoj"), (Tm.KHUDAWADI = "Sind"), (Tm.LINEAR_A = "Lina"), (Tm.MAHAJANI = "Mahj"), (Tm.MANICHAEAN = "Mani"), (Tm.MENDE_KIKAKUI = "Mend"), (Tm.MODI = "Modi"), (Tm.MRO = "Mroo"), (Tm.NABATAEAN = "Nbat"), (Tm.OLD_NORTH_ARABIAN = "Narb"), (Tm.OLD_PERMIC = "Perm"), (Tm.PAHAWH_HMONG = "Hmng"), (Tm.PALMYRENE = "Palm"), (Tm.PAU_CIN_HAU = "Pauc"), (Tm.PSALTER_PAHLAVI = "Phlp"), (Tm.SIDDHAM = "Sidd"), (Tm.TIRHUTA = "Tirh"), (Tm.WARANG_CITI = "Wara"), (Sm.devices = new lp()), (Sm.onConnect = new db()), (xm.LEFT_X = 0), (xm.LEFT_Y = 1), (xm.RIGHT_X = 2), (xm.RIGHT_Y = 3), (xm.TRIGGER_LEFT = 4), (xm.TRIGGER_RIGHT = 5), (Em.A = 0), (Em.B = 1), (Em.X = 2), (Em.Y = 3), (Em.BACK = 4), (Em.GUIDE = 5), (Em.START = 6), (Em.LEFT_STICK = 7), (Em.RIGHT_STICK = 8), (Em.LEFT_SHOULDER = 9), (Em.RIGHT_SHOULDER = 10), (Em.DPAD_UP = 11), (Em.DPAD_DOWN = 12), (Em.DPAD_LEFT = 13), (Em.DPAD_RIGHT = 14), (Pm.devices = new lp()), (Pm.onConnect = new cb()), (Rm.CENTER = 0), (Rm.DOWN = 4), (Rm.LEFT = 8), (Rm.RIGHT = 2), (Rm.UP = 1), (Rm.DOWN_LEFT = 12), (Rm.DOWN_RIGHT = 6), (Rm.UP_LEFT = 9), (Rm.UP_RIGHT = 3), (Am.UNKNOWN = 0), (Am.BACKSPACE = 8), (Am.TAB = 9), (Am.RETURN = 13), (Am.ESCAPE = 27), (Am.SPACE = 32), (Am.EXCLAMATION = 33), (Am.QUOTE = 34), (Am.HASH = 35), (Am.DOLLAR = 36), (Am.PERCENT = 37), (Am.AMPERSAND = 38), (Am.SINGLE_QUOTE = 39), (Am.LEFT_PARENTHESIS = 40), (Am.RIGHT_PARENTHESIS = 41), (Am.ASTERISK = 42), (Am.PLUS = 43), (Am.COMMA = 44), (Am.MINUS = 45), (Am.PERIOD = 46), (Am.SLASH = 47), (Am.NUMBER_0 = 48), (Am.NUMBER_1 = 49), (Am.NUMBER_2 = 50), (Am.NUMBER_3 = 51), (Am.NUMBER_4 = 52), (Am.NUMBER_5 = 53), (Am.NUMBER_6 = 54), (Am.NUMBER_7 = 55), (Am.NUMBER_8 = 56), (Am.NUMBER_9 = 57), (Am.COLON = 58), (Am.SEMICOLON = 59), (Am.LESS_THAN = 60), (Am.EQUALS = 61), (Am.GREATER_THAN = 62), (Am.QUESTION = 63), (Am.AT = 64), (Am.LEFT_BRACKET = 91), (Am.BACKSLASH = 92), (Am.RIGHT_BRACKET = 93), (Am.CARET = 94), (Am.UNDERSCORE = 95), (Am.GRAVE = 96), (Am.A = 97), (Am.B = 98), (Am.C = 99), (Am.D = 100), (Am.E = 101), (Am.F = 102), (Am.G = 103), (Am.H = 104), (Am.I = 105), (Am.J = 106), (Am.K = 107), (Am.L = 108), (Am.M = 109), (Am.N = 110), (Am.O = 111), (Am.P = 112), (Am.Q = 113), (Am.R = 114), (Am.S = 115), (Am.T = 116), (Am.U = 117), (Am.V = 118), (Am.W = 119), (Am.X = 120), (Am.Y = 121), (Am.Z = 122), (Am.DELETE = 127), (Am.CAPS_LOCK = 1073741881), (Am.F1 = 1073741882), (Am.F2 = 1073741883), (Am.F3 = 1073741884), (Am.F4 = 1073741885), (Am.F5 = 1073741886), (Am.F6 = 1073741887), (Am.F7 = 1073741888), (Am.F8 = 1073741889), (Am.F9 = 1073741890), (Am.F10 = 1073741891), (Am.F11 = 1073741892), (Am.F12 = 1073741893), (Am.PRINT_SCREEN = 1073741894), (Am.SCROLL_LOCK = 1073741895), (Am.PAUSE = 1073741896), (Am.INSERT = 1073741897), (Am.HOME = 1073741898), (Am.PAGE_UP = 1073741899), (Am.END = 1073741901), (Am.PAGE_DOWN = 1073741902), (Am.RIGHT = 1073741903), (Am.LEFT = 1073741904), (Am.DOWN = 1073741905), (Am.UP = 1073741906), (Am.NUM_LOCK = 1073741907), (Am.NUMPAD_DIVIDE = 1073741908), (Am.NUMPAD_MULTIPLY = 1073741909), (Am.NUMPAD_MINUS = 1073741910), (Am.NUMPAD_PLUS = 1073741911), (Am.NUMPAD_ENTER = 1073741912), (Am.NUMPAD_1 = 1073741913), (Am.NUMPAD_2 = 1073741914), (Am.NUMPAD_3 = 1073741915), (Am.NUMPAD_4 = 1073741916), (Am.NUMPAD_5 = 1073741917), (Am.NUMPAD_6 = 1073741918), (Am.NUMPAD_7 = 1073741919), (Am.NUMPAD_8 = 1073741920), (Am.NUMPAD_9 = 1073741921), (Am.NUMPAD_0 = 1073741922), (Am.NUMPAD_PERIOD = 1073741923), (Am.APPLICATION = 1073741925), (Am.POWER = 1073741926), (Am.NUMPAD_EQUALS = 1073741927), (Am.F13 = 1073741928), (Am.F14 = 1073741929), (Am.F15 = 1073741930), (Am.F16 = 1073741931), (Am.F17 = 1073741932), (Am.F18 = 1073741933), (Am.F19 = 1073741934), (Am.F20 = 1073741935), (Am.F21 = 1073741936), (Am.F22 = 1073741937), (Am.F23 = 1073741938), (Am.F24 = 1073741939), (Am.EXECUTE = 1073741940), (Am.HELP = 1073741941), (Am.MENU = 1073741942), (Am.SELECT = 1073741943), (Am.STOP = 1073741944), (Am.AGAIN = 1073741945), (Am.UNDO = 1073741946), (Am.CUT = 1073741947), (Am.COPY = 1073741948), (Am.PASTE = 1073741949), (Am.FIND = 1073741950), (Am.MUTE = 1073741951), (Am.VOLUME_UP = 1073741952), (Am.VOLUME_DOWN = 1073741953), (Am.NUMPAD_COMMA = 1073741957), (Am.ALT_ERASE = 1073741977), (Am.SYSTEM_REQUEST = 1073741978), (Am.CANCEL = 1073741979), (Am.CLEAR = 1073741980), (Am.PRIOR = 1073741981), (Am.RETURN2 = 1073741982), (Am.SEPARATOR = 1073741983), (Am.OUT = 1073741984), (Am.OPER = 1073741985), (Am.CLEAR_AGAIN = 1073741986), (Am.CRSEL = 1073741987), (Am.EXSEL = 1073741988), (Am.NUMPAD_00 = 1073742e3), (Am.NUMPAD_000 = 1073742001), (Am.THOUSAND_SEPARATOR = 1073742002), (Am.DECIMAL_SEPARATOR = 1073742003), (Am.CURRENCY_UNIT = 1073742004), (Am.CURRENCY_SUBUNIT = 1073742005), (Am.NUMPAD_LEFT_PARENTHESIS = 1073742006), (Am.NUMPAD_RIGHT_PARENTHESIS = 1073742007), (Am.NUMPAD_LEFT_BRACE = 1073742008), (Am.NUMPAD_RIGHT_BRACE = 1073742009), (Am.NUMPAD_TAB = 1073742010), (Am.NUMPAD_BACKSPACE = 1073742011), (Am.NUMPAD_A = 1073742012), (Am.NUMPAD_B = 1073742013), (Am.NUMPAD_C = 1073742014), (Am.NUMPAD_D = 1073742015), (Am.NUMPAD_E = 1073742016), (Am.NUMPAD_F = 1073742017), (Am.NUMPAD_XOR = 1073742018), (Am.NUMPAD_POWER = 1073742019), (Am.NUMPAD_PERCENT = 1073742020), (Am.NUMPAD_LESS_THAN = 1073742021), (Am.NUMPAD_GREATER_THAN = 1073742022), (Am.NUMPAD_AMPERSAND = 1073742023), (Am.NUMPAD_DOUBLE_AMPERSAND = 1073742024), (Am.NUMPAD_VERTICAL_BAR = 1073742025), (Am.NUMPAD_DOUBLE_VERTICAL_BAR = 1073742026), (Am.NUMPAD_COLON = 1073742027), (Am.NUMPAD_HASH = 1073742028), (Am.NUMPAD_SPACE = 1073742029), (Am.NUMPAD_AT = 1073742030), (Am.NUMPAD_EXCLAMATION = 1073742031), (Am.NUMPAD_MEM_STORE = 1073742032), (Am.NUMPAD_MEM_RECALL = 1073742033), (Am.NUMPAD_MEM_CLEAR = 1073742034), (Am.NUMPAD_MEM_ADD = 1073742035), (Am.NUMPAD_MEM_SUBTRACT = 1073742036), (Am.NUMPAD_MEM_MULTIPLY = 1073742037), (Am.NUMPAD_MEM_DIVIDE = 1073742038), (Am.NUMPAD_PLUS_MINUS = 1073742039), (Am.NUMPAD_CLEAR = 1073742040), (Am.NUMPAD_CLEAR_ENTRY = 1073742041), (Am.NUMPAD_BINARY = 1073742042), (Am.NUMPAD_OCTAL = 1073742043), (Am.NUMPAD_DECIMAL = 1073742044), (Am.NUMPAD_HEXADECIMAL = 1073742045), (Am.LEFT_CTRL = 1073742048), (Am.LEFT_SHIFT = 1073742049), (Am.LEFT_ALT = 1073742050), (Am.LEFT_META = 1073742051), (Am.RIGHT_CTRL = 1073742052), (Am.RIGHT_SHIFT = 1073742053), (Am.RIGHT_ALT = 1073742054), (Am.RIGHT_META = 1073742055), (Am.MODE = 1073742081), (Am.AUDIO_NEXT = 1073742082), (Am.AUDIO_PREVIOUS = 1073742083), (Am.AUDIO_STOP = 1073742084), (Am.AUDIO_PLAY = 1073742085), (Am.AUDIO_MUTE = 1073742086), (Am.MEDIA_SELECT = 1073742087), (Am.WWW = 1073742088), (Am.MAIL = 1073742089), (Am.CALCULATOR = 1073742090), (Am.COMPUTER = 1073742091), (Am.APP_CONTROL_SEARCH = 1073742092), (Am.APP_CONTROL_HOME = 1073742093), (Am.APP_CONTROL_BACK = 1073742094), (Am.APP_CONTROL_FORWARD = 1073742095), (Am.APP_CONTROL_STOP = 1073742096), (Am.APP_CONTROL_REFRESH = 1073742097), (Am.APP_CONTROL_BOOKMARKS = 1073742098), (Am.BRIGHTNESS_DOWN = 1073742099), (Am.BRIGHTNESS_UP = 1073742100), (Am.DISPLAY_SWITCH = 1073742101), (Am.BACKLIGHT_TOGGLE = 1073742102), (Am.BACKLIGHT_DOWN = 1073742103), (Am.BACKLIGHT_UP = 1073742104), (Am.EJECT = 1073742105), (Am.SLEEP = 1073742106), (Im.NONE = 0), (Im.LEFT_SHIFT = 1), (Im.RIGHT_SHIFT = 2), (Im.LEFT_CTRL = 64), (Im.RIGHT_CTRL = 128), (Im.LEFT_ALT = 256), (Im.RIGHT_ALT = 512), (Im.LEFT_META = 1024), (Im.RIGHT_META = 2048), (Im.NUM_LOCK = 4096), (Im.CAPS_LOCK = 8192), (Im.MODE = 16384), (Im.CTRL = 192), (Im.SHIFT = 3), (Im.ALT = 768), (Im.META = 3072), (Dm.onEnd = new pb()), (Dm.onMove = new pb()), (Dm.onStart = new pb()), (Mm.cffi_lime_bytes_from_data_pointer = am.load( "lime", "lime_bytes_from_data_pointer", 2, !1 )), (Mm.cffi_lime_bytes_get_data_pointer = am.load( "lime", "lime_bytes_get_data_pointer", 1, !1 )), (Mm.cffi_lime_bytes_read_file = am.load( "lime", "lime_bytes_read_file", 1, !1 )), (Lm.BYTES_PER_ELEMENT = 4), (Om.BYTES_PER_ELEMENT = 2), (Um.BYTES_PER_ELEMENT = 4), (zm.BYTES_PER_ELEMENT = 2), (Xm.BYTES_PER_ELEMENT = 4), (Hm.BYTES_PER_ELEMENT = 1), (Wm.cache = new Ym()), (Wm.dispatcher = new g()), (jm.pool = new la(function () { return new jm(); })), (jm.__clid = mr.registerClass(jm)), (Km.pool = new la(function () { return new Km(); })), (Km.__identity = new Km()), (Km.__temp = new Km()), (Km.__clid = mr.registerClass(Km)), (qm.pool = new la(function () { return new qm(); })), (qm.__clid = mr.registerClass(qm)), (Zm.current = new d()), (Zm.__sentWarnings = new up()), (tg.__clid = mr.registerClass(tg)), (Sg.BEGIN_BITMAP_FILL = 0), (Sg.BEGIN_FILL = 1), (Sg.BEGIN_GRADIENT_FILL = 2), (Sg.CUBIC_CURVE_TO = 3), (Sg.CURVE_TO = 4), (Sg.DRAW_CIRCLE = 5), (Sg.DRAW_ARC = 6), (Sg.DRAW_ELLIPSE = 7), (Sg.DRAW_IMAGE = 8), (Sg.DRAW_PATH = 9), (Sg.DRAW_RECT = 10), (Sg.DRAW_ROUND_RECT = 11), (Sg.DRAW_TILES = 12), (Sg.DRAW_TRIANGLES = 13), (Sg.END_FILL = 14), (Sg.LINE_BITMAP_STYLE = 15), (Sg.LINE_GRADIENT_STYLE = 16), (Sg.LINE_STYLE = 17), (Sg.LINE_TO = 18), (Sg.MOVE_TO = 19), (Sg.OVERRIDE_MATRIX = 20), (Sg.UNKNOWN = 21), (Eg.pool = new la(function () { return window.document.createElement("canvas"); })), (Eg.SIN45 = 0.7071067811865476), (Eg.TAN22 = 0.41421356237309503), (Eg.padding = 1), (Eg.canvasWindingRule = "evenodd"), (Eg.positionX = 0), (Eg.positionY = 0), (Eg.closeGap = !1), (Eg.startX = 0), (Eg.startY = 0), (Eg.currentTransform = new Km()), (Eg.snapCoordinates = !1), (Eg.drawCommandReaderPool = new la(function () { return new sg(null); })), (Eg.glMaxTextureSize = 0), (Cg.fbDataPool = new la(function () { return new Ig(); })), (Cg.fbData = []), (Cg.dataToClean = new hp()), (Bg.glContextId = 0), (Bg.glContexts = []), (Dg.UID = 0), (Dg.currentVertexArray = null), (kg.VERTEX_SRC = [ "attribute vec2 openfl_aPosition;", "attribute vec2 openfl_aTexCoord0;", "attribute vec4 openfl_aColor;", "uniform mat3 openfl_uProjectionMatrix;", "uniform mat3 openfl_uMaskMatrix;", "uniform bool openfl_uUseColorTransform;", "varying vec2 openfl_vTexCoord;", "varying vec2 openfl_vMaskTexCoord;", "varying vec4 openfl_vColor;", "void main(void) {", " gl_Position = vec4((openfl_uProjectionMatrix * vec3(openfl_aPosition, 1.0)).xy, 0.0, 1.0);", " openfl_vTexCoord = openfl_aTexCoord0;", " openfl_vMaskTexCoord = (openfl_uMaskMatrix * vec3(openfl_aPosition, 1.0)).xy;", " if(openfl_uUseColorTransform)", " \topenfl_vColor = openfl_aColor;", " else", " \topenfl_vColor = vec4(openfl_aColor.rgb * openfl_aColor.a, openfl_aColor.a);", "}", ]), (Fg.VERTEX_SRC = [ "attribute vec2 openfl_aPosition;", "attribute vec2 openfl_aTexCoord0;", "attribute vec4 openfl_aColor;", "uniform mat3 openfl_uProjectionMatrix;", "uniform bool openfl_uUseColorTransform;", "varying vec2 openfl_vTexCoord;", "varying vec4 openfl_vColor;", "void main(void) {", "\tgl_Position = vec4((openfl_uProjectionMatrix * vec3(openfl_aPosition, 1.0)).xy, 0.0, 1.0);", "\topenfl_vTexCoord = openfl_aTexCoord0;", "\tif(openfl_uUseColorTransform)", "\t\topenfl_vColor = openfl_aColor;", "\telse", "\t\topenfl_vColor = vec4(openfl_aColor.rgb * openfl_aColor.a, openfl_aColor.a);", "}", ]), (Hg.glMaxTextureSize = 0), (Vg.compiledShadersCache = new up()), (Wg.VERTS_PER_SPRITE = 4), (Zg.UTF8_TAB = 9), (Zg.UTF8_ENDLINE = 10), (Zg.UTF8_SPACE = 32), (Zg.UTF8_HYPHEN = 45), (Zg.OFFSET_START = 2), (Zg.__defaultFonts = new up()), (sw.__isGLES = null), (nw.ADD = 0), (nw.ALPHA = 1), (nw.DARKEN = 2), (nw.DIFFERENCE = 3), (nw.ERASE = 4), (nw.HARDLIGHT = 5), (nw.INVERT = 6), (nw.LAYER = 7), (nw.LIGHTEN = 8), (nw.MULTIPLY = 9), (nw.NORMAL = 10), (nw.OVERLAY = 11), (nw.SCREEN = 12), (nw.SHADER = 13), (nw.SUBTRACT = 14), (iw.NONE = 0), (iw.ROUND = 1), (iw.SQUARE = 2), (lw.LINEAR = 0), (lw.RADIAL = 1), (hw.__dirtyGraphicsDelay = 2), (hw.TILE_SCALE = 1), (hw.TILE_ROTATION = 2), (hw.TILE_RGB = 4), (hw.TILE_ALPHA = 8), (hw.TILE_TRANS_2x2 = 16), (hw.TILE_RECT = 32), (hw.TILE_ORIGIN = 64), (hw.TILE_BLEND_NORMAL = 0), (hw.TILE_BLEND_ADD = 65536), (hw.TILE_BLEND_MULTIPLY = 131072), (hw.TILE_BLEND_SCREEN = 262144), (hw.TILE_BLEND_SUBTRACT = 524288), (hw.TILE_BLEND_DARKEN = 1048576), (hw.TILE_BLEND_LIGHTEN = 2097152), (hw.TILE_BLEND_OVERLAY = 4194304), (hw.TILE_BLEND_HARDLIGHT = 8388608), (hw.TILE_BLEND_DIFFERENCE = 16777216), (hw.TILE_BLEND_INVERT = 33554432), (hw.__clid = mr.registerClass(hw)), (vw.pool = new la(function () { return new vw(); })), (Sw.LINEAR_RGB = 0), (Sw.RGB = 1), (Ew.BEVEL = 0), (Ew.MITER = 1), (Ew.ROUND = 2), (Pw.HORIZONTAL = 0), (Pw.NONE = 1), (Pw.NORMAL = 2), (Pw.VERTICAL = 3), (Aw.__rootURL = window.document.URL), (Iw.CONTEXT_LOST = "glcontextlost"), (Iw.CONTEXT_RESTORED = "glcontextrestored"), (Bw.ALWAYS = 0), (Bw.AUTO = 1), (Bw.NEVER = 2), (kw.uniformRegex = new V( "^\\s*uniform\\s+(sampler(?:2D|Cube)|[bi]?vec[234]|float|int|bool|mat[234])\\s+(\\w+)\\s*(?:\\[(\\d+)\\])?\\s*;.*$", "gmi" )), (kw.aPosition = "openfl_aPosition"), (kw.aTexCoord = "openfl_aTexCoord0"), (kw.aColor = "openfl_aColor"), (kw.uSampler = "openfl_uSampler0"), (kw.uProjectionMatrix = "openfl_uProjectionMatrix"), (kw.uColorMultiplier = "openfl_uColorMultiplier"), (kw.uColorOffset = "openfl_uColorOffset"), (kw.uObjectSize = "openfl_uObjectSize"), (kw.uTextureSize = "openfl_uTextureSize"), (kw.vTexCoord = "openfl_vTexCoord"), (kw.vColor = "openfl_vColor"), (kw.vertexHeader = [ "attribute vec2 " + kw.aPosition + ";", "attribute vec2 " + kw.aTexCoord + ";", "attribute vec4 " + kw.aColor + ";", "uniform mat3 " + kw.uProjectionMatrix + ";", "uniform vec2 " + kw.uObjectSize + ";", "uniform vec2 " + kw.uTextureSize + ";", "varying vec2 " + kw.vTexCoord + ";", "varying vec4 " + kw.vColor + ";", ]), (kw.fragmentHeader = [ "uniform sampler2D " + kw.uSampler + ";", "uniform vec4 " + kw.uColorMultiplier + ";", "uniform vec4 " + kw.uColorOffset + ";", "uniform vec2 " + kw.uObjectSize + ";", "uniform vec2 " + kw.uTextureSize + ";", "varying vec2 " + kw.vTexCoord + ";", "varying vec4 " + kw.vColor + ";", "vec4 colorTransform(const vec4 color, const vec4 tint, const vec4 multiplier, const vec4 offset) {", " vec4 unmultiply = vec4(color.rgb / color.a, color.a);", " vec4 result = unmultiply * tint * multiplier;", " result = result + offset;", " result = clamp(result, 0., 1.);", " result = vec4(result.rgb * result.a, result.a);", " return result;", "}", ]), (Mw.PAD = 0), (Mw.REFLECT = 1), (Mw.REPEAT = 2), (Lw.__calledOnMouseThisFrame = !1), (Ow.BOTTOM = 0), (Ow.BOTTOM_LEFT = 1), (Ow.BOTTOM_RIGHT = 2), (Ow.LEFT = 3), (Ow.RIGHT = 4), (Ow.TOP = 5), (Ow.TOP_LEFT = 6), (Ow.TOP_RIGHT = 7), (Uw.FULL_SCREEN = 0), (Uw.FULL_SCREEN_INTERACTIVE = 1), (Uw.NORMAL = 2), (Gw.BEST = 0), (Gw.HIGH = 1), (Gw.LOW = 2), (Gw.MEDIUM = 3), (zw.EXACT_FIT = 0), (zw.NO_BORDER = 1), (zw.NO_SCALE = 2), (zw.SHOW_ALL = 3), (Xw.NEGATIVE = 0), (Xw.NONE = 1), (Xw.POSITIVE = 2), (Yw.TEXTURE_MAX_ANISOTROPY_EXT = 34046), (Yw.MAX_SAMPLERS = 8), (Yw.MAX_TEXTURE_MAX_ANISOTROPY_EXT = 34047), (Yw.anisotropySupportTested = !1), (Yw.supportsAnisotropy = !1), (Yw.maxSupportedAnisotropy = 256), (Kw.ALL = 17664), (Kw.COLOR = 16384), (Kw.DEPTH = 256), (Kw.STENCIL = 1024), (qw.ALWAYS = 519), (qw.EQUAL = 514), (qw.GREATER = 516), (qw.GREATER_EQUAL = 518), (qw.LESS = 513), (qw.LESS_EQUAL = 515), (qw.NEVER = 512), (qw.NOT_EQUAL = 517), (ev.BACK = 1028), (ev.FRONT = 1029), (ev.FRONT_AND_BACK = 1032), (ev.NONE = 0), (hv.internalFormat = -1), (_v.DEFAULT_TO_STRING = "Error"), (bv.ACTIVITY = "activity"), (mv.LINK = "link"), (mv.TEXT_INPUT = "textInput"), (gv.ERROR = "error"), (vv.FOCUS_IN = "focusIn"), (vv.FOCUS_OUT = "focusOut"), (vv.KEY_FOCUS_CHANGE = "keyFocusChange"), (vv.MOUSE_FOCUS_CHANGE = "mouseFocusChange"), (yv.FULL_SCREEN = "fullScreen"), (yv.FULL_SCREEN_INTERACTIVE_ACCEPTED = "fullScreenInteractiveAccepted"), (Tv.DEVICE_ADDED = "deviceAdded"), (Tv.DEVICE_REMOVED = "deviceRemoved"), (Tv.DEVICE_UNUSABLE = "deviceUnusable"), (Sv.HTTP_RESPONSE_STATUS = "httpResponseStatus"), (Sv.HTTP_STATUS = "httpStatus"), (xv.IO_ERROR = "ioError"), (Ev.KEY_DOWN = "keyDown"), (Ev.KEY_UP = "keyUp"), (Pv.pool = new la(function () { return new Pv(); })), (Pv.CLICK = "click"), (Pv.DOUBLE_CLICK = "doubleClick"), (Pv.MIDDLE_CLICK = "middleClick"), (Pv.MIDDLE_MOUSE_DOWN = "middleMouseDown"), (Pv.MIDDLE_MOUSE_UP = "middleMouseUp"), (Pv.MOUSE_DOWN = "mouseDown"), (Pv.MOUSE_MOVE = "mouseMove"), (Pv.MOUSE_OUT = "mouseOut"), (Pv.MOUSE_OVER = "mouseOver"), (Pv.MOUSE_UP = "mouseUp"), (Pv.MOUSE_WHEEL = "mouseWheel"), (Pv.RIGHT_CLICK = "rightClick"), (Pv.RIGHT_MOUSE_DOWN = "rightMouseDown"), (Pv.RIGHT_MOUSE_UP = "rightMouseUp"), (Pv.ROLL_OUT = "rollOut"), (Pv.ROLL_OVER = "rollOver"), (Rv.NET_STATUS = "netStatus"), (Av.PROGRESS = "progress"), (Av.SOCKET_DATA = "socketData"), (Iv.SECURITY_ERROR = "securityError"), (Cv.TIMER = "timer"), (Cv.TIMER_COMPLETE = "timerComplete"), (Bv.TOUCH_BEGIN = "touchBegin"), (Bv.TOUCH_END = "touchEnd"), (Bv.TOUCH_MOVE = "touchMove"), (Bv.TOUCH_OUT = "touchOut"), (Bv.TOUCH_OVER = "touchOver"), (Bv.TOUCH_ROLL_OUT = "touchRollOut"), (Bv.TOUCH_ROLL_OVER = "touchRollOver"), (Bv.TOUCH_TAP = "touchTap"), (kv.__inverseAlphaMultipliers = null != (ZT = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, -1]) ? new GT(ZT) : null), (kv.__inverseAlphaOffsets = null != (JT = [0, 0, 0, 1]) ? new GT(JT) : null), (Fv.__textureCacheMap = new lp()), (Nv.FULL = 0), (Nv.INNER = 1), (Nv.OUTER = 2), (Hv.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uTexCoordOffset: { noCompletion: null }, set_uTexCoordOffset: { noCompletion: null }, get_uTexCoordDelta: { noCompletion: null }, set_uTexCoordDelta: { noCompletion: null }, get_uFetchCount: { noCompletion: null }, set_uFetchCount: { noCompletion: null }, }, }), (Yv.MAXIMUM_FETCH_COUNT = 32), (Yv.__shader = new Hv()), (Wv.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uColorLookupSampler: { noCompletion: null }, set_uColorLookupSampler: { noCompletion: null }, }, }), (jv.__shader = new Wv()), (Kv.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uMultipliers: { noCompletion: null }, set_uMultipliers: { noCompletion: null }, get_uOffsets: { noCompletion: null }, set_uOffsets: { noCompletion: null }, }, }), (qv.__shader = new Kv()), (Zv.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uColor: { noCompletion: null }, set_uColor: { noCompletion: null }, }, }), (Jv.__shader = new Zv()), (Qv.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uSource1Sampler: { noCompletion: null }, set_uSource1Sampler: { noCompletion: null }, }, }), ($v.__shader = new Qv()), (ey.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uSource1Sampler: { noCompletion: null }, set_uSource1Sampler: { noCompletion: null }, }, }), (ty.__shader = new ey()), (ny.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uShadowSourceSampler: { noCompletion: null }, set_uShadowSourceSampler: { noCompletion: null }, get_uStrength: { noCompletion: null }, set_uStrength: { noCompletion: null }, }, }), (iy.__shader = new ny()), (ry.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uSource1Sampler: { noCompletion: null }, set_uSource1Sampler: { noCompletion: null }, get_outer: { noCompletion: null }, set_outer: { noCompletion: null }, }, }), (oy.__shader = new ry()), (ay.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uTexCoordOffset: { noCompletion: null }, set_uTexCoordOffset: { noCompletion: null }, get_uStrength: { noCompletion: null }, set_uStrength: { noCompletion: null }, }, }), (ly.__shader = new ay()), (hy.__meta__ = { fields: { vertex: { vertex: null }, fragment: { fragment: null }, get_openfl_uScaleVector: { noCompletion: null }, set_openfl_uScaleVector: { noCompletion: null }, get_uSource1Sampler: { noCompletion: null }, set_uSource1Sampler: { noCompletion: null }, get_allow_transparency: { noCompletion: null }, set_allow_transparency: { noCompletion: null }, }, }), (_y.__shader = new hy()), (dy.AXIS_ANGLE = 0), (dy.EULER_ANGLES = 1), (dy.QUATERNION = 2), (cy.pool = new la(function () { return new cy(); })), (cy.__temp = new cy()), (cy.__clid = mr.registerClass(cy)), (fy.pool = new la(function () { return new fy(null); })), (my.__registeredSounds = new up()), (gy.pool = new la(function () { return new gy(); })), (yy.CONNECT_SUCCESS = "connectSuccess"), (Ty.defaultObjectEncoding = 3), (Sy.FLUSHED = 0), (Sy.PENDING = 1), (Ey.BINARY = 0), (Ey.TEXT = 1), (Ey.VARIABLES = 2), (Ay.DELETE = 0), (Ay.GET = 1), (Ay.HEAD = 2), (Ay.OPTIONS = 3), (Ay.POST = 4), (Ay.PUT = 5), (Cy.currentDomain = new Cy(null)), (Dy.currentDomain = new Dy()), (ky.ADVANCED = 0), (ky.NORMAL = 1), (Fy.BOLD = 0), (Fy.BOLD_ITALIC = 1), (Fy.ITALIC = 2), (Fy.REGULAR = 3), (My.DEVICE = 0), (My.EMBEDDED = 1), (My.EMBEDDED_CFF = 2), (Ly.NONE = 0), (Ly.PIXEL = 1), (Ly.SUBPIXEL = 2), (Ny.CENTER = 0), (Ny.LEFT = 1), (Ny.NONE = 2), (Ny.RIGHT = 3), (Oy.DYNAMIC = 0), (Oy.INPUT = 1), (Gy.CENTER = 0), (Gy.END = 1), (Gy.JUSTIFY = 2), (Gy.LEFT = 3), (Gy.RIGHT = 4), (Gy.START = 5), (Xy.isSupported = !0), (Xy.numDevices = 0), (Xy.__deviceList = []), (Xy.__devices = new hp()), (Xy.__instances = []), (Vy.MAX_BUFFER_SIZE = 32e3), (Yy.NUMBER_0 = 48), (Yy.NUMBER_1 = 49), (Yy.NUMBER_2 = 50), (Yy.NUMBER_3 = 51), (Yy.NUMBER_4 = 52), (Yy.NUMBER_5 = 53), (Yy.NUMBER_6 = 54), (Yy.NUMBER_7 = 55), (Yy.NUMBER_8 = 56), (Yy.NUMBER_9 = 57), (Yy.A = 65), (Yy.B = 66), (Yy.C = 67), (Yy.D = 68), (Yy.E = 69), (Yy.F = 70), (Yy.G = 71), (Yy.H = 72), (Yy.I = 73), (Yy.J = 74), (Yy.K = 75), (Yy.L = 76), (Yy.M = 77), (Yy.N = 78), (Yy.O = 79), (Yy.P = 80), (Yy.Q = 81), (Yy.R = 82), (Yy.S = 83), (Yy.T = 84), (Yy.U = 85), (Yy.V = 86), (Yy.W = 87), (Yy.X = 88), (Yy.Y = 89), (Yy.Z = 90), (Yy.NUMPAD_0 = 96), (Yy.NUMPAD_1 = 97), (Yy.NUMPAD_2 = 98), (Yy.NUMPAD_3 = 99), (Yy.NUMPAD_4 = 100), (Yy.NUMPAD_5 = 101), (Yy.NUMPAD_6 = 102), (Yy.NUMPAD_7 = 103), (Yy.NUMPAD_8 = 104), (Yy.NUMPAD_9 = 105), (Yy.NUMPAD_MULTIPLY = 106), (Yy.NUMPAD_ADD = 107), (Yy.NUMPAD_ENTER = 108), (Yy.NUMPAD_SUBTRACT = 109), (Yy.NUMPAD_DECIMAL = 110), (Yy.NUMPAD_DIVIDE = 111), (Yy.F1 = 112), (Yy.F2 = 113), (Yy.F3 = 114), (Yy.F4 = 115), (Yy.F5 = 116), (Yy.F6 = 117), (Yy.F7 = 118), (Yy.F8 = 119), (Yy.F9 = 120), (Yy.F10 = 121), (Yy.F11 = 122), (Yy.F12 = 123), (Yy.F13 = 124), (Yy.F14 = 125), (Yy.F15 = 126), (Yy.BACKSPACE = 8), (Yy.TAB = 9), (Yy.ALTERNATE = 18), (Yy.ENTER = 13), (Yy.COMMAND = 15), (Yy.SHIFT = 16), (Yy.CONTROL = 17), (Yy.BREAK = 19), (Yy.CAPS_LOCK = 20), (Yy.NUMPAD = 21), (Yy.ESCAPE = 27), (Yy.SPACE = 32), (Yy.PAGE_UP = 33), (Yy.PAGE_DOWN = 34), (Yy.END = 35), (Yy.HOME = 36), (Yy.LEFT = 37), (Yy.RIGHT = 39), (Yy.UP = 38), (Yy.DOWN = 40), (Yy.INSERT = 45), (Yy.DELETE = 46), (Yy.NUMLOCK = 144), (Yy.SEMICOLON = 186), (Yy.EQUAL = 187), (Yy.COMMA = 188), (Yy.MINUS = 189), (Yy.PERIOD = 190), (Yy.SLASH = 191), (Yy.BACKQUOTE = 192), (Yy.LEFTBRACKET = 219), (Yy.BACKSLASH = 220), (Yy.RIGHTBRACKET = 221), (Yy.QUOTE = 222), (Ky.DEFLATE = 0), (Ky.LZMA = 1), (Ky.ZLIB = 2), (Zy.BIG_ENDIAN = 0), (Zy.LITTLE_ENDIAN = 1), (Jy.__clid = mr.registerClass(Jy)), (rT.dialogIsShown = !1), qr.main(); })( "undefined" != typeof exports ? exports : "undefined" != typeof window ? window : "undefined" != typeof self ? self : this, "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : this );