this.createjs = this.createjs || {}, createjs.extend = function(t, e) { "use strict"; function i() { this.constructor = t } return i.prototype = e.prototype, t.prototype = new i } , this.createjs = this.createjs || {}, createjs.promote = function(t, e) { "use strict"; var i = t.prototype , s = Object.getPrototypeOf && Object.getPrototypeOf(i) || i.__proto__; if (s) for (var n in i[(e += "_") + "constructor"] = s.constructor, s) i.hasOwnProperty(n) && "function" == typeof s[n] && (i[e + n] = s[n]); return t } , this.createjs = this.createjs || {}, createjs.indexOf = function(t, e) { "use strict"; for (var i = 0, s = t.length; i < s; i++) if (e === t[i]) return i; return -1 } , this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i) { this.type = t, this.target = null, this.currentTarget = null, this.eventPhase = 0, this.bubbles = !!e, this.cancelable = !!i, this.timeStamp = (new Date).getTime(), this.defaultPrevented = !1, this.propagationStopped = !1, this.immediatePropagationStopped = !1, this.removed = !1 } var e = t.prototype; e.preventDefault = function() { this.defaultPrevented = this.cancelable && !0 } , e.stopPropagation = function() { this.propagationStopped = !0 } , e.stopImmediatePropagation = function() { this.immediatePropagationStopped = this.propagationStopped = !0 } , e.remove = function() { this.removed = !0 } , e.clone = function() { return new t(this.type,this.bubbles,this.cancelable) } , e.set = function(t) { for (var e in t) this[e] = t[e]; return this } , e.toString = function() { return "[Event (type=" + this.type + ")]" } , createjs.Event = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { this._listeners = null, this._captureListeners = null } var e = t.prototype; t.initialize = function(t) { t.addEventListener = e.addEventListener, t.on = e.on, t.removeEventListener = t.off = e.removeEventListener, t.removeAllEventListeners = e.removeAllEventListeners, t.hasEventListener = e.hasEventListener, t.dispatchEvent = e.dispatchEvent, t._dispatchEvent = e._dispatchEvent, t.willTrigger = e.willTrigger } , e.addEventListener = function(t, e, i) { var s, n = (s = i ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {})[t]; return n && this.removeEventListener(t, e, i), (n = s[t]) ? n.push(e) : s[t] = [e], e } , e.on = function(t, e, i, s, n, r) { return e.handleEvent && (i = i || e, e = e.handleEvent), i = i || this, this.addEventListener(t, function(t) { e.call(i, t, n), s && t.remove() }, r) } , e.removeEventListener = function(t, e, i) { var s = i ? this._captureListeners : this._listeners; if (s) { var n = s[t]; if (n) for (var r = 0, a = n.length; r < a; r++) if (n[r] == e) { 1 == a ? delete s[t] : n.splice(r, 1); break } } } , e.off = e.removeEventListener, e.removeAllEventListeners = function(t) { t ? (this._listeners && delete this._listeners[t], this._captureListeners && delete this._captureListeners[t]) : this._listeners = this._captureListeners = null } , e.dispatchEvent = function(t, e, i) { if ("string" == typeof t) { var s = this._listeners; if (!(e || s && s[t])) return !0; t = new createjs.Event(t,e,i) } else t.target && t.clone && (t = t.clone()); try { t.target = this } catch (t) {} if (t.bubbles && this.parent) { for (var n = this, r = [n]; n.parent; ) r.push(n = n.parent); var a, h = r.length; for (a = h - 1; a >= 0 && !t.propagationStopped; a--) r[a]._dispatchEvent(t, 1 + (0 == a)); for (a = 1; a < h && !t.propagationStopped; a++) r[a]._dispatchEvent(t, 3) } else this._dispatchEvent(t, 2); return !t.defaultPrevented } , e.hasEventListener = function(t) { var e = this._listeners , i = this._captureListeners; return !!(e && e[t] || i && i[t]) } , e.willTrigger = function(t) { for (var e = this; e; ) { if (e.hasEventListener(t)) return !0; e = e.parent } return !1 } , e.toString = function() { return "[EventDispatcher]" } , e._dispatchEvent = function(t, e) { var i, s = 1 == e ? this._captureListeners : this._listeners; if (t && s) { var n = s[t.type]; if (!n || !(i = n.length)) return; try { t.currentTarget = this } catch (t) {} try { t.eventPhase = e } catch (t) {} t.removed = !1, n = n.slice(); for (var r = 0; r < i && !t.immediatePropagationStopped; r++) { var a = n[r]; a.handleEvent ? a.handleEvent(t) : a(t), t.removed && (this.off(t.type, a, 1 == e), t.removed = !1) } } } , createjs.EventDispatcher = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "Ticker cannot be instantiated." } t.RAF_SYNCHED = "synched", t.RAF = "raf", t.TIMEOUT = "timeout", t.useRAF = !1, t.timingMode = null, t.maxDelta = 0, t.paused = !1, t.removeEventListener = null, t.removeAllEventListeners = null, t.dispatchEvent = null, t.hasEventListener = null, t._listeners = null, createjs.EventDispatcher.initialize(t), t._addEventListener = t.addEventListener, t.addEventListener = function() { return !t._inited && t.init(), t._addEventListener.apply(t, arguments) } , t._inited = !1, t._startTime = 0, t._pausedTime = 0, t._ticks = 0, t._pausedTicks = 0, t._interval = 50, t._lastTime = 0, t._times = null, t._tickTimes = null, t._timerId = null, t._raf = !0, t.setInterval = function(e) { t._interval = e, t._inited && t._setupTick() } , t.getInterval = function() { return t._interval } , t.setFPS = function(e) { t.setInterval(1e3 / e) } , t.getFPS = function() { return 1e3 / t._interval } ; try { Object.defineProperties(t, { interval: { get: t.getInterval, set: t.setInterval }, framerate: { get: t.getFPS, set: t.setFPS } }) } catch (t) { console.log(t) } t.init = function() { t._inited || (t._inited = !0, t._times = [], t._tickTimes = [], t._startTime = t._getTime(), t._times.push(t._lastTime = 0), t.interval = t._interval) } , t.reset = function() { if (t._raf) { var e = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame; e && e(t._timerId) } else clearTimeout(t._timerId); t.removeAllEventListeners("tick"), t._timerId = t._times = t._tickTimes = null, t._startTime = t._lastTime = t._ticks = 0, t._inited = !1 } , t.getMeasuredTickTime = function(e) { var i = 0 , s = t._tickTimes; if (!s || s.length < 1) return -1; e = Math.min(s.length, e || 0 | t.getFPS()); for (var n = 0; n < e; n++) i += s[n]; return i / e } , t.getMeasuredFPS = function(e) { var i = t._times; return !i || i.length < 2 ? -1 : (e = Math.min(i.length - 1, e || 0 | t.getFPS()), 1e3 / ((i[0] - i[e]) / e)) } , t.setPaused = function(e) { t.paused = e } , t.getPaused = function() { return t.paused } , t.getTime = function(e) { return t._startTime ? t._getTime() - (e ? t._pausedTime : 0) : -1 } , t.getEventTime = function(e) { return t._startTime ? (t._lastTime || t._startTime) - (e ? t._pausedTime : 0) : -1 } , t.getTicks = function(e) { return t._ticks - (e ? t._pausedTicks : 0) } , t._handleSynch = function() { t._timerId = null, t._setupTick(), t._getTime() - t._lastTime >= .97 * (t._interval - 1) && t._tick() } , t._handleRAF = function() { t._timerId = null, t._setupTick(), t._tick() } , t._handleTimeout = function() { t._timerId = null, t._setupTick(), t._tick() } , t._setupTick = function() { if (null == t._timerId) { var e = t.timingMode || t.useRAF && t.RAF_SYNCHED; if (e == t.RAF_SYNCHED || e == t.RAF) { var i = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame; if (i) return t._timerId = i(e == t.RAF ? t._handleRAF : t._handleSynch), void (t._raf = !0) } t._raf = !1, t._timerId = setTimeout(t._handleTimeout, t._interval) } } , t._tick = function() { var e = t.paused , i = t._getTime() , s = i - t._lastTime; if (t._lastTime = i, t._ticks++, e && (t._pausedTicks++, t._pausedTime += s), t.hasEventListener("tick")) { var n = new createjs.Event("tick") , r = t.maxDelta; n.delta = r && s > r ? r : s, n.paused = e, n.time = i, n.runTime = i - t._pausedTime, t.dispatchEvent(n) } for (t._tickTimes.unshift(t._getTime() - i); t._tickTimes.length > 100; ) t._tickTimes.pop(); for (t._times.unshift(i); t._times.length > 100; ) t._times.pop() } ; var e = window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow); t._getTime = function() { return (e && e.call(performance) || (new Date).getTime()) - t._startTime } , createjs.Ticker = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "UID cannot be instantiated" } t._nextID = 0, t.get = function() { return t._nextID++ } , createjs.UID = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i, s, n, r, a, h, o, c, l) { this.Event_constructor(t, e, i), this.stageX = s, this.stageY = n, this.rawX = null == o ? s : o, this.rawY = null == c ? n : c, this.nativeEvent = r, this.pointerID = a, this.primary = !!h, this.relatedTarget = l } var e = createjs.extend(t, createjs.Event); e._get_localX = function() { return this.currentTarget.globalToLocal(this.rawX, this.rawY).x } , e._get_localY = function() { return this.currentTarget.globalToLocal(this.rawX, this.rawY).y } , e._get_isTouch = function() { return -1 !== this.pointerID } ; try { Object.defineProperties(e, { localX: { get: e._get_localX }, localY: { get: e._get_localY }, isTouch: { get: e._get_isTouch } }) } catch (t) {} e.clone = function() { return new t(this.type,this.bubbles,this.cancelable,this.stageX,this.stageY,this.nativeEvent,this.pointerID,this.primary,this.rawX,this.rawY) } , e.toString = function() { return "[MouseEvent (type=" + this.type + " stageX=" + this.stageX + " stageY=" + this.stageY + ")]" } , createjs.MouseEvent = createjs.promote(t, "Event") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i, s, n, r) { this.setValues(t, e, i, s, n, r) } var e = t.prototype; t.DEG_TO_RAD = Math.PI / 180, t.identity = null, e.setValues = function(t, e, i, s, n, r) { return this.a = null == t ? 1 : t, this.b = e || 0, this.c = i || 0, this.d = null == s ? 1 : s, this.tx = n || 0, this.ty = r || 0, this } , e.append = function(t, e, i, s, n, r) { var a = this.a , h = this.b , o = this.c , c = this.d; return 1 == t && 0 == e && 0 == i && 1 == s || (this.a = a * t + o * e, this.b = h * t + c * e, this.c = a * i + o * s, this.d = h * i + c * s), this.tx = a * n + o * r + this.tx, this.ty = h * n + c * r + this.ty, this } , e.prepend = function(t, e, i, s, n, r) { var a = this.a , h = this.c , o = this.tx; return this.a = t * a + i * this.b, this.b = e * a + s * this.b, this.c = t * h + i * this.d, this.d = e * h + s * this.d, this.tx = t * o + i * this.ty + n, this.ty = e * o + s * this.ty + r, this } , e.appendMatrix = function(t) { return this.append(t.a, t.b, t.c, t.d, t.tx, t.ty) } , e.prependMatrix = function(t) { return this.prepend(t.a, t.b, t.c, t.d, t.tx, t.ty) } , e.appendTransform = function(e, i, s, n, r, a, h, o, c) { if (r % 360) var l = r * t.DEG_TO_RAD , u = Math.cos(l) , d = Math.sin(l); else u = 1, d = 0; return a || h ? (a *= t.DEG_TO_RAD, h *= t.DEG_TO_RAD, this.append(Math.cos(h), Math.sin(h), -Math.sin(a), Math.cos(a), e, i), this.append(u * s, d * s, -d * n, u * n, 0, 0)) : this.append(u * s, d * s, -d * n, u * n, e, i), (o || c) && (this.tx -= o * this.a + c * this.c, this.ty -= o * this.b + c * this.d), this } , e.prependTransform = function(e, i, s, n, r, a, h, o, c) { if (r % 360) var l = r * t.DEG_TO_RAD , u = Math.cos(l) , d = Math.sin(l); else u = 1, d = 0; return (o || c) && (this.tx -= o, this.ty -= c), a || h ? (a *= t.DEG_TO_RAD, h *= t.DEG_TO_RAD, this.prepend(u * s, d * s, -d * n, u * n, 0, 0), this.prepend(Math.cos(h), Math.sin(h), -Math.sin(a), Math.cos(a), e, i)) : this.prepend(u * s, d * s, -d * n, u * n, e, i), this } , e.rotate = function(e) { e *= t.DEG_TO_RAD; var i = Math.cos(e) , s = Math.sin(e) , n = this.a , r = this.b; return this.a = n * i + this.c * s, this.b = r * i + this.d * s, this.c = -n * s + this.c * i, this.d = -r * s + this.d * i, this } , e.skew = function(e, i) { return e *= t.DEG_TO_RAD, i *= t.DEG_TO_RAD, this.append(Math.cos(i), Math.sin(i), -Math.sin(e), Math.cos(e), 0, 0), this } , e.scale = function(t, e) { return this.a *= t, this.b *= t, this.c *= e, this.d *= e, this } , e.translate = function(t, e) { return this.tx += this.a * t + this.c * e, this.ty += this.b * t + this.d * e, this } , e.identity = function() { return this.a = this.d = 1, this.b = this.c = this.tx = this.ty = 0, this } , e.invert = function() { var t = this.a , e = this.b , i = this.c , s = this.d , n = this.tx , r = t * s - e * i; return this.a = s / r, this.b = -e / r, this.c = -i / r, this.d = t / r, this.tx = (i * this.ty - s * n) / r, this.ty = -(t * this.ty - e * n) / r, this } , e.isIdentity = function() { return 0 === this.tx && 0 === this.ty && 1 === this.a && 0 === this.b && 0 === this.c && 1 === this.d } , e.equals = function(t) { return this.tx === t.tx && this.ty === t.ty && this.a === t.a && this.b === t.b && this.c === t.c && this.d === t.d } , e.transformPoint = function(t, e, i) { return (i = i || {}).x = t * this.a + e * this.c + this.tx, i.y = t * this.b + e * this.d + this.ty, i } , e.decompose = function(e) { null == e && (e = {}), e.x = this.tx, e.y = this.ty, e.scaleX = Math.sqrt(this.a * this.a + this.b * this.b), e.scaleY = Math.sqrt(this.c * this.c + this.d * this.d); var i = Math.atan2(-this.c, this.d) , s = Math.atan2(this.b, this.a); return Math.abs(1 - i / s) < 1e-5 ? (e.rotation = s / t.DEG_TO_RAD, this.a < 0 && this.d >= 0 && (e.rotation += e.rotation <= 0 ? 180 : -180), e.skewX = e.skewY = 0) : (e.skewX = i / t.DEG_TO_RAD, e.skewY = s / t.DEG_TO_RAD), e } , e.copy = function(t) { return this.setValues(t.a, t.b, t.c, t.d, t.tx, t.ty) } , e.clone = function() { return new t(this.a,this.b,this.c,this.d,this.tx,this.ty) } , e.toString = function() { return "[Matrix2D (a=" + this.a + " b=" + this.b + " c=" + this.c + " d=" + this.d + " tx=" + this.tx + " ty=" + this.ty + ")]" } , t.identity = new t, createjs.Matrix2D = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i, s, n) { this.setValues(t, e, i, s, n) } var e = t.prototype; e.setValues = function(t, e, i, s, n) { return this.visible = null == t || !!t, this.alpha = null == e ? 1 : e, this.shadow = i, this.compositeOperation = s, this.matrix = n || this.matrix && this.matrix.identity() || new createjs.Matrix2D, this } , e.append = function(t, e, i, s, n) { return this.alpha *= e, this.shadow = i || this.shadow, this.compositeOperation = s || this.compositeOperation, this.visible = this.visible && t, n && this.matrix.appendMatrix(n), this } , e.prepend = function(t, e, i, s, n) { return this.alpha *= e, this.shadow = this.shadow || i, this.compositeOperation = this.compositeOperation || s, this.visible = this.visible && t, n && this.matrix.prependMatrix(n), this } , e.identity = function() { return this.visible = !0, this.alpha = 1, this.shadow = this.compositeOperation = null, this.matrix.identity(), this } , e.clone = function() { return new t(this.alpha,this.shadow,this.compositeOperation,this.visible,this.matrix.clone()) } , createjs.DisplayProps = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e) { this.setValues(t, e) } var e = t.prototype; e.setValues = function(t, e) { return this.x = t || 0, this.y = e || 0, this } , e.copy = function(t) { return this.x = t.x, this.y = t.y, this } , e.clone = function() { return new t(this.x,this.y) } , e.toString = function() { return "[Point (x=" + this.x + " y=" + this.y + ")]" } , createjs.Point = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i, s) { this.setValues(t, e, i, s) } var e = t.prototype; e.setValues = function(t, e, i, s) { return this.x = t || 0, this.y = e || 0, this.width = i || 0, this.height = s || 0, this } , e.extend = function(t, e, i, s) { return i = i || 0, s = s || 0, t + i > this.x + this.width && (this.width = t + i - this.x), e + s > this.y + this.height && (this.height = e + s - this.y), t < this.x && (this.width += this.x - t, this.x = t), e < this.y && (this.height += this.y - e, this.y = e), this } , e.pad = function(t, e, i, s) { return this.x -= e, this.y -= t, this.width += e + s, this.height += t + i, this } , e.copy = function(t) { return this.setValues(t.x, t.y, t.width, t.height) } , e.contains = function(t, e, i, s) { return i = i || 0, s = s || 0, t >= this.x && t + i <= this.x + this.width && e >= this.y && e + s <= this.y + this.height } , e.union = function(t) { return this.clone().extend(t.x, t.y, t.width, t.height) } , e.intersection = function(e) { var i = e.x , s = e.y , n = i + e.width , r = s + e.height; return this.x > i && (i = this.x), this.y > s && (s = this.y), this.x + this.width < n && (n = this.x + this.width), this.y + this.height < r && (r = this.y + this.height), n <= i || r <= s ? null : new t(i,s,n - i,r - s) } , e.intersects = function(t) { return t.x <= this.x + this.width && this.x <= t.x + t.width && t.y <= this.y + this.height && this.y <= t.y + t.height } , e.isEmpty = function() { return this.width <= 0 || this.height <= 0 } , e.clone = function() { return new t(this.x,this.y,this.width,this.height) } , e.toString = function() { return "[Rectangle (x=" + this.x + " y=" + this.y + " width=" + this.width + " height=" + this.height + ")]" } , createjs.Rectangle = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i, s, n, r, a) { t.addEventListener && (this.target = t, this.overLabel = null == i ? "over" : i, this.outLabel = null == e ? "out" : e, this.downLabel = null == s ? "down" : s, this.play = n, this._isPressed = !1, this._isOver = !1, this._enabled = !1, t.mouseChildren = !1, this.enabled = !0, this.handleEvent({}), r && (a && (r.actionsEnabled = !1, r.gotoAndStop && r.gotoAndStop(a)), t.hitArea = r)) } var e = t.prototype; e.setEnabled = function(t) { if (t != this._enabled) { var e = this.target; this._enabled = t, t ? (e.cursor = "pointer", e.addEventListener("rollover", this), e.addEventListener("rollout", this), e.addEventListener("mousedown", this), e.addEventListener("pressup", this), e._reset && (e.__reset = e._reset, e._reset = this._reset)) : (e.cursor = null, e.removeEventListener("rollover", this), e.removeEventListener("rollout", this), e.removeEventListener("mousedown", this), e.removeEventListener("pressup", this), e.__reset && (e._reset = e.__reset, delete e.__reset)) } } , e.getEnabled = function() { return this._enabled } ; try { Object.defineProperties(e, { enabled: { get: e.getEnabled, set: e.setEnabled } }) } catch (t) {} e.toString = function() { return "[ButtonHelper]" } , e.handleEvent = function(t) { var e, i = this.target, s = t.type; "mousedown" == s ? (this._isPressed = !0, e = this.downLabel) : "pressup" == s ? (this._isPressed = !1, e = this._isOver ? this.overLabel : this.outLabel) : "rollover" == s ? (this._isOver = !0, e = this._isPressed ? this.downLabel : this.overLabel) : (this._isOver = !1, e = this._isPressed ? this.overLabel : this.outLabel), this.play ? i.gotoAndPlay && i.gotoAndPlay(e) : i.gotoAndStop && i.gotoAndStop(e) } , e._reset = function() { var t = this.paused; this.__reset(), this.paused = t } , createjs.ButtonHelper = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i, s) { this.color = t || "black", this.offsetX = e || 0, this.offsetY = i || 0, this.blur = s || 0 } var e = t.prototype; t.identity = new t("transparent",0,0,0), e.toString = function() { return "[Shadow]" } , e.clone = function() { return new t(this.color,this.offsetX,this.offsetY,this.blur) } , createjs.Shadow = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.EventDispatcher_constructor(), this.complete = !0, this.framerate = 0, this._animations = null, this._frames = null, this._images = null, this._data = null, this._loadCount = 0, this._frameHeight = 0, this._frameWidth = 0, this._numFrames = 0, this._regX = 0, this._regY = 0, this._spacing = 0, this._margin = 0, this._parseData(t) } var e = createjs.extend(t, createjs.EventDispatcher); e.getAnimations = function() { return this._animations.slice() } ; try { Object.defineProperties(e, { animations: { get: e.getAnimations } }) } catch (t) {} e.getNumFrames = function(t) { if (null == t) return this._frames ? this._frames.length : this._numFrames || 0; var e = this._data[t]; return null == e ? 0 : e.frames.length } , e.getAnimation = function(t) { return this._data[t] } , e.getFrame = function(t) { var e; return this._frames && (e = this._frames[t]) ? e : null } , e.getFrameBounds = function(t, e) { var i = this.getFrame(t); return i ? (e || new createjs.Rectangle).setValues(-i.regX, -i.regY, i.rect.width, i.rect.height) : null } , e.toString = function() { return "[SpriteSheet]" } , e.clone = function() { throw "SpriteSheet cannot be cloned." } , e._parseData = function(t) { var e, i, s, n; if (null != t) { if (this.framerate = t.framerate || 0, t.images && (i = t.images.length) > 0) for (n = this._images = [], e = 0; e < i; e++) { var r = t.images[e]; if ("string" == typeof r) { var a = r; (r = document.createElement("img")).src = a } n.push(r), r.getContext || r.naturalWidth || (this._loadCount++, this.complete = !1, function(t, e) { r.onload = function() { t._handleImageLoad(e) } }(this, a), function(t, e) { r.onerror = function() { t._handleImageError(e) } }(this, a)) } if (null == t.frames) ; else if (Array.isArray(t.frames)) for (this._frames = [], e = 0, i = (n = t.frames).length; e < i; e++) { var h = n[e]; this._frames.push({ image: this._images[h[4] ? h[4] : 0], rect: new createjs.Rectangle(h[0],h[1],h[2],h[3]), regX: h[5] || 0, regY: h[6] || 0 }) } else s = t.frames, this._frameWidth = s.width, this._frameHeight = s.height, this._regX = s.regX || 0, this._regY = s.regY || 0, this._spacing = s.spacing || 0, this._margin = s.margin || 0, this._numFrames = s.count, 0 == this._loadCount && this._calculateFrames(); var o; if (this._animations = [], null != (s = t.animations)) for (o in this._data = {}, s) { var c = { name: o } , l = s[o]; if ("number" == typeof l) n = c.frames = [l]; else if (Array.isArray(l)) if (1 == l.length) c.frames = [l[0]]; else for (c.speed = l[3], c.next = l[2], n = c.frames = [], e = l[0]; e <= l[1]; e++) n.push(e); else { c.speed = l.speed, c.next = l.next; var u = l.frames; n = c.frames = "number" == typeof u ? [u] : u.slice(0) } !0 !== c.next && void 0 !== c.next || (c.next = o), (!1 === c.next || n.length < 2 && c.next == o) && (c.next = null), c.speed || (c.speed = 1), this._animations.push(o), this._data[o] = c } } } , e._handleImageLoad = function(t) { 0 == --this._loadCount && (this._calculateFrames(), this.complete = !0, this.dispatchEvent("complete")) } , e._handleImageError = function(t) { var e = new createjs.Event("error"); e.src = t, this.dispatchEvent(e), 0 == --this._loadCount && this.dispatchEvent("complete") } , e._calculateFrames = function() { if (!this._frames && 0 != this._frameWidth) { this._frames = []; var t = this._numFrames || 1e5 , e = 0 , i = this._frameWidth , s = this._frameHeight , n = this._spacing , r = this._margin; t: for (var a = 0, h = this._images; a < h.length; a++) for (var o = h[a], c = o.width, l = o.height, u = r; u <= l - r - s; ) { for (var d = r; d <= c - r - i; ) { if (e >= t) break t; e++, this._frames.push({ image: o, rect: new createjs.Rectangle(d,u,i,s), regX: this._regX, regY: this._regY }), d += i + n } u += s + n } this._numFrames = e } } , createjs.SpriteSheet = createjs.promote(t, "EventDispatcher") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { this.command = null, this._stroke = null, this._strokeStyle = null, this._oldStrokeStyle = null, this._strokeDash = null, this._oldStrokeDash = null, this._strokeIgnoreScale = !1, this._fill = null, this._instructions = [], this._commitIndex = 0, this._activeInstructions = [], this._dirty = !1, this._storeIndex = 0, this.clear() } var e = t.prototype , i = t; t.getRGB = function(t, e, i, s) { return null != t && null == i && (s = e, i = 255 & t, e = t >> 8 & 255, t = t >> 16 & 255), null == s ? "rgb(" + t + "," + e + "," + i + ")" : "rgba(" + t + "," + e + "," + i + "," + s + ")" } , t.getHSL = function(t, e, i, s) { return null == s ? "hsl(" + t % 360 + "," + e + "%," + i + "%)" : "hsla(" + t % 360 + "," + e + "%," + i + "%," + s + ")" } , t.BASE_64 = { A: 0, B: 1, C: 2, D: 3, E: 4, F: 5, G: 6, H: 7, I: 8, J: 9, K: 10, L: 11, M: 12, N: 13, O: 14, P: 15, Q: 16, R: 17, S: 18, T: 19, U: 20, V: 21, W: 22, X: 23, Y: 24, Z: 25, a: 26, b: 27, c: 28, d: 29, e: 30, f: 31, g: 32, h: 33, i: 34, j: 35, k: 36, l: 37, m: 38, n: 39, o: 40, p: 41, q: 42, r: 43, s: 44, t: 45, u: 46, v: 47, w: 48, x: 49, y: 50, z: 51, 0: 52, 1: 53, 2: 54, 3: 55, 4: 56, 5: 57, 6: 58, 7: 59, 8: 60, 9: 61, "+": 62, "/": 63 }, t.STROKE_CAPS_MAP = ["butt", "round", "square"], t.STROKE_JOINTS_MAP = ["miter", "round", "bevel"]; var s = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); s.getContext && (t._ctx = s.getContext("2d"), s.width = s.height = 1), e.getInstructions = function() { return this._updateInstructions(), this._instructions } ; try { Object.defineProperties(e, { instructions: { get: e.getInstructions } }) } catch (t) {} e.isEmpty = function() { return !(this._instructions.length || this._activeInstructions.length) } , e.draw = function(t, e) { this._updateInstructions(); for (var i = this._instructions, s = this._storeIndex, n = i.length; s < n; s++) i[s].exec(t, e) } , e.drawAsPath = function(t) { this._updateInstructions(); for (var e, i = this._instructions, s = this._storeIndex, n = i.length; s < n; s++) !1 !== (e = i[s]).path && e.exec(t) } , e.moveTo = function(t, e) { return this.append(new i.MoveTo(t,e), !0) } , e.lineTo = function(t, e) { return this.append(new i.LineTo(t,e)) } , e.arcTo = function(t, e, s, n, r) { return this.append(new i.ArcTo(t,e,s,n,r)) } , e.arc = function(t, e, s, n, r, a) { return this.append(new i.Arc(t,e,s,n,r,a)) } , e.quadraticCurveTo = function(t, e, s, n) { return this.append(new i.QuadraticCurveTo(t,e,s,n)) } , e.bezierCurveTo = function(t, e, s, n, r, a) { return this.append(new i.BezierCurveTo(t,e,s,n,r,a)) } , e.rect = function(t, e, s, n) { return this.append(new i.Rect(t,e,s,n)) } , e.closePath = function() { return this._activeInstructions.length ? this.append(new i.ClosePath) : this } , e.clear = function() { return this._instructions.length = this._activeInstructions.length = this._commitIndex = 0, this._strokeStyle = this._oldStrokeStyle = this._stroke = this._fill = this._strokeDash = this._oldStrokeDash = null, this._dirty = this._strokeIgnoreScale = !1, this } , e.beginFill = function(t) { return this._setFill(t ? new i.Fill(t) : null) } , e.beginLinearGradientFill = function(t, e, s, n, r, a) { return this._setFill((new i.Fill).linearGradient(t, e, s, n, r, a)) } , e.beginRadialGradientFill = function(t, e, s, n, r, a, h, o) { return this._setFill((new i.Fill).radialGradient(t, e, s, n, r, a, h, o)) } , e.beginBitmapFill = function(t, e, s) { return this._setFill(new i.Fill(null,s).bitmap(t, e)) } , e.endFill = function() { return this.beginFill() } , e.setStrokeStyle = function(t, e, s, n, r) { return this._updateInstructions(!0), this._strokeStyle = this.command = new i.StrokeStyle(t,e,s,n,r), this._stroke && (this._stroke.ignoreScale = r), this._strokeIgnoreScale = r, this } , e.setStrokeDash = function(t, e) { return this._updateInstructions(!0), this._strokeDash = this.command = new i.StrokeDash(t,e), this } , e.beginStroke = function(t) { return this._setStroke(t ? new i.Stroke(t) : null) } , e.beginLinearGradientStroke = function(t, e, s, n, r, a) { return this._setStroke((new i.Stroke).linearGradient(t, e, s, n, r, a)) } , e.beginRadialGradientStroke = function(t, e, s, n, r, a, h, o) { return this._setStroke((new i.Stroke).radialGradient(t, e, s, n, r, a, h, o)) } , e.beginBitmapStroke = function(t, e) { return this._setStroke((new i.Stroke).bitmap(t, e)) } , e.endStroke = function() { return this.beginStroke() } , e.curveTo = e.quadraticCurveTo, e.drawRect = e.rect, e.drawRoundRect = function(t, e, i, s, n) { return this.drawRoundRectComplex(t, e, i, s, n, n, n, n) } , e.drawRoundRectComplex = function(t, e, s, n, r, a, h, o) { return this.append(new i.RoundRect(t,e,s,n,r,a,h,o)) } , e.drawCircle = function(t, e, s) { return this.append(new i.Circle(t,e,s)) } , e.drawEllipse = function(t, e, s, n) { return this.append(new i.Ellipse(t,e,s,n)) } , e.drawPolyStar = function(t, e, s, n, r, a) { return this.append(new i.PolyStar(t,e,s,n,r,a)) } , e.append = function(t, e) { return this._activeInstructions.push(t), this.command = t, e || (this._dirty = !0), this } , e.decodePath = function(e) { for (var i = [this.moveTo, this.lineTo, this.quadraticCurveTo, this.bezierCurveTo, this.closePath], s = [2, 2, 4, 6, 0], n = 0, r = e.length, a = [], h = 0, o = 0, c = t.BASE_64; n < r; ) { var l = e.charAt(n) , u = c[l] , d = u >> 3 , p = i[d]; if (!p || 3 & u) throw "bad path data (@" + n + "): " + l; var f = s[d]; d || (h = o = 0), a.length = 0, n++; for (var _ = 2 + (u >> 2 & 1), m = 0; m < f; m++) { var g = c[e.charAt(n)] , v = g >> 5 ? -1 : 1; g = (31 & g) << 6 | c[e.charAt(n + 1)], 3 == _ && (g = g << 6 | c[e.charAt(n + 2)]), g = v * g / 10, m % 2 ? h = g += h : o = g += o, a[m] = g, n += _ } p.apply(this, a) } return this } , e.store = function() { return this._updateInstructions(!0), this._storeIndex = this._instructions.length, this } , e.unstore = function() { return this._storeIndex = 0, this } , e.clone = function() { var e = new t; return e.command = this.command, e._stroke = this._stroke, e._strokeStyle = this._strokeStyle, e._strokeDash = this._strokeDash, e._strokeIgnoreScale = this._strokeIgnoreScale, e._fill = this._fill, e._instructions = this._instructions.slice(), e._commitIndex = this._commitIndex, e._activeInstructions = this._activeInstructions.slice(), e._dirty = this._dirty, e._storeIndex = this._storeIndex, e } , e.toString = function() { return "[Graphics]" } , e.mt = e.moveTo, e.lt = e.lineTo, e.at = e.arcTo, e.bt = e.bezierCurveTo, e.qt = e.quadraticCurveTo, e.a = e.arc, e.r = e.rect, e.cp = e.closePath, e.c = e.clear, e.f = e.beginFill, e.lf = e.beginLinearGradientFill, e.rf = e.beginRadialGradientFill, e.bf = e.beginBitmapFill, e.ef = e.endFill, e.ss = e.setStrokeStyle, e.sd = e.setStrokeDash, e.s = e.beginStroke, e.ls = e.beginLinearGradientStroke, e.rs = e.beginRadialGradientStroke, e.bs = e.beginBitmapStroke, e.es = e.endStroke, e.dr = e.drawRect, e.rr = e.drawRoundRect, e.rc = e.drawRoundRectComplex, e.dc = e.drawCircle, e.de = e.drawEllipse, e.dp = e.drawPolyStar, e.p = e.decodePath, e._updateInstructions = function(e) { var i = this._instructions , s = this._activeInstructions , n = this._commitIndex; if (this._dirty && s.length) { i.length = n, i.push(t.beginCmd); var r = s.length , a = i.length; i.length = a + r; for (var h = 0; h < r; h++) i[h + a] = s[h]; this._fill && i.push(this._fill), this._stroke && (this._strokeDash !== this._oldStrokeDash && (this._oldStrokeDash = this._strokeDash, i.push(this._strokeDash)), this._strokeStyle !== this._oldStrokeStyle && (this._oldStrokeStyle = this._strokeStyle, i.push(this._strokeStyle)), i.push(this._stroke)), this._dirty = !1 } e && (s.length = 0, this._commitIndex = i.length) } , e._setFill = function(t) { return this._updateInstructions(!0), this.command = this._fill = t, this } , e._setStroke = function(t) { return this._updateInstructions(!0), (this.command = this._stroke = t) && (t.ignoreScale = this._strokeIgnoreScale), this } , (i.LineTo = function(t, e) { this.x = t, this.y = e } ).prototype.exec = function(t) { t.lineTo(this.x, this.y) } , (i.MoveTo = function(t, e) { this.x = t, this.y = e } ).prototype.exec = function(t) { t.moveTo(this.x, this.y) } , (i.ArcTo = function(t, e, i, s, n) { this.x1 = t, this.y1 = e, this.x2 = i, this.y2 = s, this.radius = n } ).prototype.exec = function(t) { t.arcTo(this.x1, this.y1, this.x2, this.y2, this.radius) } , (i.Arc = function(t, e, i, s, n, r) { this.x = t, this.y = e, this.radius = i, this.startAngle = s, this.endAngle = n, this.anticlockwise = !!r } ).prototype.exec = function(t) { t.arc(this.x, this.y, this.radius, this.startAngle, this.endAngle, this.anticlockwise) } , (i.QuadraticCurveTo = function(t, e, i, s) { this.cpx = t, this.cpy = e, this.x = i, this.y = s } ).prototype.exec = function(t) { t.quadraticCurveTo(this.cpx, this.cpy, this.x, this.y) } , (i.BezierCurveTo = function(t, e, i, s, n, r) { this.cp1x = t, this.cp1y = e, this.cp2x = i, this.cp2y = s, this.x = n, this.y = r } ).prototype.exec = function(t) { t.bezierCurveTo(this.cp1x, this.cp1y, this.cp2x, this.cp2y, this.x, this.y) } , (i.Rect = function(t, e, i, s) { this.x = t, this.y = e, this.w = i, this.h = s } ).prototype.exec = function(t) { t.rect(this.x, this.y, this.w, this.h) } , (i.ClosePath = function() {} ).prototype.exec = function(t) { t.closePath() } , (i.BeginPath = function() {} ).prototype.exec = function(t) { t.beginPath() } , (e = (i.Fill = function(t, e) { this.style = t, this.matrix = e } ).prototype).exec = function(t) { if (this.style) { t.fillStyle = this.style; var e = this.matrix; e && (t.save(), t.transform(e.a, e.b, e.c, e.d, e.tx, e.ty)), t.fill(), e && t.restore() } } , e.linearGradient = function(e, i, s, n, r, a) { for (var h = this.style = t._ctx.createLinearGradient(s, n, r, a), o = 0, c = e.length; o < c; o++) h.addColorStop(i[o], e[o]); return h.props = { colors: e, ratios: i, x0: s, y0: n, x1: r, y1: a, type: "linear" }, this } , e.radialGradient = function(e, i, s, n, r, a, h, o) { for (var c = this.style = t._ctx.createRadialGradient(s, n, r, a, h, o), l = 0, u = e.length; l < u; l++) c.addColorStop(i[l], e[l]); return c.props = { colors: e, ratios: i, x0: s, y0: n, r0: r, x1: a, y1: h, r1: o, type: "radial" }, this } , e.bitmap = function(e, i) { (e.naturalWidth || e.getContext || e.readyState >= 2) && ((this.style = t._ctx.createPattern(e, i || "")).props = { image: e, repetition: i, type: "bitmap" }); return this } , e.path = !1, (e = (i.Stroke = function(t, e) { this.style = t, this.ignoreScale = e } ).prototype).exec = function(t) { this.style && (t.strokeStyle = this.style, this.ignoreScale && (t.save(), t.setTransform(1, 0, 0, 1, 0, 0)), t.stroke(), this.ignoreScale && t.restore()) } , e.linearGradient = i.Fill.prototype.linearGradient, e.radialGradient = i.Fill.prototype.radialGradient, e.bitmap = i.Fill.prototype.bitmap, e.path = !1, (e = (i.StrokeStyle = function(t, e, i, s, n) { this.width = t, this.caps = e, this.joints = i, this.miterLimit = s, this.ignoreScale = n } ).prototype).exec = function(e) { e.lineWidth = null == this.width ? "1" : this.width, e.lineCap = null == this.caps ? "butt" : isNaN(this.caps) ? this.caps : t.STROKE_CAPS_MAP[this.caps], e.lineJoin = null == this.joints ? "miter" : isNaN(this.joints) ? this.joints : t.STROKE_JOINTS_MAP[this.joints], e.miterLimit = null == this.miterLimit ? "10" : this.miterLimit, e.ignoreScale = null != this.ignoreScale && this.ignoreScale } , e.path = !1, (i.StrokeDash = function(t, e) { this.segments = t, this.offset = e || 0 } ).prototype.exec = function(t) { t.setLineDash && (t.setLineDash(this.segments || i.StrokeDash.EMPTY_SEGMENTS), t.lineDashOffset = this.offset || 0) } , i.StrokeDash.EMPTY_SEGMENTS = [], (i.RoundRect = function(t, e, i, s, n, r, a, h) { this.x = t, this.y = e, this.w = i, this.h = s, this.radiusTL = n, this.radiusTR = r, this.radiusBR = a, this.radiusBL = h } ).prototype.exec = function(t) { var e = (o < c ? o : c) / 2 , i = 0 , s = 0 , n = 0 , r = 0 , a = this.x , h = this.y , o = this.w , c = this.h , l = this.radiusTL , u = this.radiusTR , d = this.radiusBR , p = this.radiusBL; l < 0 && (l *= i = -1), l > e && (l = e), u < 0 && (u *= s = -1), u > e && (u = e), d < 0 && (d *= n = -1), d > e && (d = e), p < 0 && (p *= r = -1), p > e && (p = e), t.moveTo(a + o - u, h), t.arcTo(a + o + u * s, h - u * s, a + o, h + u, u), t.lineTo(a + o, h + c - d), t.arcTo(a + o + d * n, h + c + d * n, a + o - d, h + c, d), t.lineTo(a + p, h + c), t.arcTo(a - p * r, h + c + p * r, a, h + c - p, p), t.lineTo(a, h + l), t.arcTo(a - l * i, h - l * i, a + l, h, l), t.closePath() } , (i.Circle = function(t, e, i) { this.x = t, this.y = e, this.radius = i } ).prototype.exec = function(t) { t.arc(this.x, this.y, this.radius, 0, 2 * Math.PI) } , (i.Ellipse = function(t, e, i, s) { this.x = t, this.y = e, this.w = i, this.h = s } ).prototype.exec = function(t) { var e = this.x , i = this.y , s = this.w , n = this.h , r = .5522848 , a = s / 2 * r , h = n / 2 * r , o = e + s , c = i + n , l = e + s / 2 , u = i + n / 2; t.moveTo(e, u), t.bezierCurveTo(e, u - h, l - a, i, l, i), t.bezierCurveTo(l + a, i, o, u - h, o, u), t.bezierCurveTo(o, u + h, l + a, c, l, c), t.bezierCurveTo(l - a, c, e, u + h, e, u) } , (i.PolyStar = function(t, e, i, s, n, r) { this.x = t, this.y = e, this.radius = i, this.sides = s, this.pointSize = n, this.angle = r } ).prototype.exec = function(t) { var e = this.x , i = this.y , s = this.radius , n = (this.angle || 0) / 180 * Math.PI , r = this.sides , a = 1 - (this.pointSize || 0) , h = Math.PI / r; t.moveTo(e + Math.cos(n) * s, i + Math.sin(n) * s); for (var o = 0; o < r; o++) n += h, 1 != a && t.lineTo(e + Math.cos(n) * s * a, i + Math.sin(n) * s * a), n += h, t.lineTo(e + Math.cos(n) * s, i + Math.sin(n) * s); t.closePath() } , t.beginCmd = new i.BeginPath, createjs.Graphics = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { this.EventDispatcher_constructor(), this.alpha = 1, this.cacheCanvas = null, this.cacheID = 0, this.id = createjs.UID.get(), this.mouseEnabled = !0, this.tickEnabled = !0, this.name = null, this.parent = null, this.regX = 0, this.regY = 0, this.rotation = 0, this.scaleX = 1, this.scaleY = 1, this.skewX = 0, this.skewY = 0, this.shadow = null, this.visible = !0, this.x = 0, this.y = 0, this.transformMatrix = null, this.compositeOperation = null, this.snapToPixel = !0, this.filters = null, this.mask = null, this.hitArea = null, this.cursor = null, this._cacheOffsetX = 0, this._cacheOffsetY = 0, this._filterOffsetX = 0, this._filterOffsetY = 0, this._cacheScale = 1, this._cacheDataURLID = 0, this._cacheDataURL = null, this._props = new createjs.DisplayProps, this._rectangle = new createjs.Rectangle, this._bounds = null } var e = createjs.extend(t, createjs.EventDispatcher); t._MOUSE_EVENTS = ["click", "dblclick", "mousedown", "mouseout", "mouseover", "pressmove", "pressup", "rollout", "rollover"], t.suppressCrossDomainErrors = !1, t._snapToPixelEnabled = !1; var i = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); i.getContext && (t._hitTestCanvas = i, t._hitTestContext = i.getContext("2d"), i.width = i.height = 1), t._nextCacheID = 1, e.getStage = function() { for (var t = this, e = createjs.Stage; t.parent; ) t = t.parent; return t instanceof e ? t : null } ; try { Object.defineProperties(e, { stage: { get: e.getStage } }) } catch (t) {} e.isVisible = function() { return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY) } , e.draw = function(t, e) { var i = this.cacheCanvas; if (e || !i) return !1; var s = this._cacheScale; return t.drawImage(i, this._cacheOffsetX + this._filterOffsetX, this._cacheOffsetY + this._filterOffsetY, i.width / s, i.height / s), !0 } , e.updateContext = function(e) { var i = this , s = i.mask , n = i._props.matrix; s && s.graphics && !s.graphics.isEmpty() && (s.getMatrix(n), e.transform(n.a, n.b, n.c, n.d, n.tx, n.ty), s.graphics.drawAsPath(e), e.clip(), n.invert(), e.transform(n.a, n.b, n.c, n.d, n.tx, n.ty)), this.getMatrix(n); var r = n.tx , a = n.ty; t._snapToPixelEnabled && i.snapToPixel && (r = r + (r < 0 ? -.5 : .5) | 0, a = a + (a < 0 ? -.5 : .5) | 0), e.transform(n.a, n.b, n.c, n.d, r, a), e.globalAlpha *= i.alpha, i.compositeOperation && (e.globalCompositeOperation = i.compositeOperation), i.shadow && this._applyShadow(e, i.shadow) } , e.cache = function(t, e, i, s, n) { n = n || 1, this.cacheCanvas || (this.cacheCanvas = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas")), this._cacheWidth = i, this._cacheHeight = s, this._cacheOffsetX = t, this._cacheOffsetY = e, this._cacheScale = n, this.updateCache() } , e.updateCache = function(e) { var i = this.cacheCanvas; if (!i) throw "cache() must be called before updateCache()"; var s = this._cacheScale , n = this._cacheOffsetX * s , r = this._cacheOffsetY * s , a = this._cacheWidth , h = this._cacheHeight , o = i.getContext("2d") , c = this._getFilterBounds(); n += this._filterOffsetX = c.x, r += this._filterOffsetY = c.y, a = Math.ceil(a * s) + c.width, h = Math.ceil(h * s) + c.height, a != i.width || h != i.height ? (i.width = a, i.height = h) : e || o.clearRect(0, 0, a + 1, h + 1), o.save(), o.globalCompositeOperation = e, o.setTransform(s, 0, 0, s, -n, -r), this.draw(o, !0), this._applyFilters(), o.restore(), this.cacheID = t._nextCacheID++ } , e.uncache = function() { this._cacheDataURL = this.cacheCanvas = null, this.cacheID = this._cacheOffsetX = this._cacheOffsetY = this._filterOffsetX = this._filterOffsetY = 0, this._cacheScale = 1 } , e.getCacheDataURL = function() { return this.cacheCanvas ? (this.cacheID != this._cacheDataURLID && (this._cacheDataURL = this.cacheCanvas.toDataURL()), this._cacheDataURL) : null } , e.localToGlobal = function(t, e, i) { return this.getConcatenatedMatrix(this._props.matrix).transformPoint(t, e, i || new createjs.Point) } , e.globalToLocal = function(t, e, i) { return this.getConcatenatedMatrix(this._props.matrix).invert().transformPoint(t, e, i || new createjs.Point) } , e.localToLocal = function(t, e, i, s) { return s = this.localToGlobal(t, e, s), i.globalToLocal(s.x, s.y, s) } , e.setTransform = function(t, e, i, s, n, r, a, h, o) { return this.x = t || 0, this.y = e || 0, this.scaleX = null == i ? 1 : i, this.scaleY = null == s ? 1 : s, this.rotation = n || 0, this.skewX = r || 0, this.skewY = a || 0, this.regX = h || 0, this.regY = o || 0, this } , e.getMatrix = function(t) { var e = this , i = t && t.identity() || new createjs.Matrix2D; return e.transformMatrix ? i.copy(e.transformMatrix) : i.appendTransform(e.x, e.y, e.scaleX, e.scaleY, e.rotation, e.skewX, e.skewY, e.regX, e.regY) } , e.getConcatenatedMatrix = function(t) { for (var e = this, i = this.getMatrix(t); e = e.parent; ) i.prependMatrix(e.getMatrix(e._props.matrix)); return i } , e.getConcatenatedDisplayProps = function(t) { t = t ? t.identity() : new createjs.DisplayProps; var e = this , i = e.getMatrix(t.matrix); do { t.prepend(e.visible, e.alpha, e.shadow, e.compositeOperation), e != this && i.prependMatrix(e.getMatrix(e._props.matrix)) } while (e = e.parent);return t } , e.hitTest = function(e, i) { var s = t._hitTestContext; s.setTransform(1, 0, 0, 1, -e, -i), this.draw(s); var n = this._testHit(s); return s.setTransform(1, 0, 0, 1, 0, 0), s.clearRect(0, 0, 2, 2), n } , e.set = function(t) { for (var e in t) this[e] = t[e]; return this } , e.getBounds = function() { if (this._bounds) return this._rectangle.copy(this._bounds); var t = this.cacheCanvas; if (t) { var e = this._cacheScale; return this._rectangle.setValues(this._cacheOffsetX, this._cacheOffsetY, t.width / e, t.height / e) } return null } , e.getTransformedBounds = function() { return this._getBounds() } , e.setBounds = function(t, e, i, s) { null == t && (this._bounds = t), this._bounds = (this._bounds || new createjs.Rectangle).setValues(t, e, i, s) } , e.clone = function() { return this._cloneProps(new t) } , e.toString = function() { return "[DisplayObject (name=" + this.name + ")]" } , e._cloneProps = function(t) { return t.alpha = this.alpha, t.mouseEnabled = this.mouseEnabled, t.tickEnabled = this.tickEnabled, t.name = this.name, t.regX = this.regX, t.regY = this.regY, t.rotation = this.rotation, t.scaleX = this.scaleX, t.scaleY = this.scaleY, t.shadow = this.shadow, t.skewX = this.skewX, t.skewY = this.skewY, t.visible = this.visible, t.x = this.x, t.y = this.y, t.compositeOperation = this.compositeOperation, t.snapToPixel = this.snapToPixel, t.filters = null == this.filters ? null : this.filters.slice(0), t.mask = this.mask, t.hitArea = this.hitArea, t.cursor = this.cursor, t._bounds = this._bounds, t } , e._applyShadow = function(t, e) { e = e || Shadow.identity, t.shadowColor = e.color, t.shadowOffsetX = e.offsetX, t.shadowOffsetY = e.offsetY, t.shadowBlur = e.blur } , e._tick = function(t) { var e = this._listeners; e && e.tick && (t.target = null, t.propagationStopped = t.immediatePropagationStopped = !1, this.dispatchEvent(t)) } , e._testHit = function(e) { try { var i = e.getImageData(0, 0, 1, 1).data[3] > 1 } catch (e) { if (!t.suppressCrossDomainErrors) throw "An error has occurred. This is most likely due to security restrictions on reading canvas pixel data with local or cross-domain images." } return i } , e._applyFilters = function() { if (this.filters && 0 != this.filters.length && this.cacheCanvas) for (var t = this.filters.length, e = this.cacheCanvas.getContext("2d"), i = this.cacheCanvas.width, s = this.cacheCanvas.height, n = 0; n < t; n++) this.filters[n].applyFilter(e, 0, 0, i, s) } , e._getFilterBounds = function(t) { var e, i = this.filters, s = this._rectangle.setValues(0, 0, 0, 0); if (!i || !(e = i.length)) return s; for (var n = 0; n < e; n++) { var r = this.filters[n]; r.getBounds && r.getBounds(s) } return s } , e._getBounds = function(t, e) { return this._transformBounds(this.getBounds(), t, e) } , e._transformBounds = function(t, e, i) { if (!t) return t; var s = t.x , n = t.y , r = t.width , a = t.height , h = this._props.matrix; h = i ? h.identity() : this.getMatrix(h), (s || n) && h.appendTransform(0, 0, 1, 1, 0, 0, 0, -s, -n), e && h.prependMatrix(e); var o = r * h.a , c = r * h.b , l = a * h.c , u = a * h.d , d = h.tx , p = h.ty , f = d , _ = d , m = p , g = p; return (s = o + d) < f ? f = s : s > _ && (_ = s), (s = o + l + d) < f ? f = s : s > _ && (_ = s), (s = l + d) < f ? f = s : s > _ && (_ = s), (n = c + p) < m ? m = n : n > g && (g = n), (n = c + u + p) < m ? m = n : n > g && (g = n), (n = u + p) < m ? m = n : n > g && (g = n), t.setValues(f, m, _ - f, g - m) } , e._hasMouseEventListener = function() { for (var e = t._MOUSE_EVENTS, i = 0, s = e.length; i < s; i++) if (this.hasEventListener(e[i])) return !0; return !!this.cursor } , createjs.DisplayObject = createjs.promote(t, "EventDispatcher") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { this.DisplayObject_constructor(), this.children = [], this.mouseChildren = !0, this.tickChildren = !0 } var e = createjs.extend(t, createjs.DisplayObject); e.getNumChildren = function() { return this.children.length } ; try { Object.defineProperties(e, { numChildren: { get: e.getNumChildren } }) } catch (t) {} e.initialize = t, e.isVisible = function() { var t = this.cacheCanvas || this.children.length; return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && t) } , e.draw = function(t, e) { if (this.DisplayObject_draw(t, e)) return !0; for (var i = this.children.slice(), s = 0, n = i.length; s < n; s++) { var r = i[s]; r.isVisible() && (t.save(), r.updateContext(t), r.draw(t), t.restore()) } return !0 } , e.addChild = function(t) { if (null == t) return t; var e = arguments.length; if (e > 1) { for (var i = 0; i < e; i++) this.addChild(arguments[i]); return arguments[e - 1] } return t.parent && t.parent.removeChild(t), t.parent = this, this.children.push(t), t.dispatchEvent("added"), t } , e.addChildAt = function(t, e) { var i = arguments.length , s = arguments[i - 1]; if (s < 0 || s > this.children.length) return arguments[i - 2]; if (i > 2) { for (var n = 0; n < i - 1; n++) this.addChildAt(arguments[n], s + n); return arguments[i - 2] } return t.parent && t.parent.removeChild(t), t.parent = this, this.children.splice(e, 0, t), t.dispatchEvent("added"), t } , e.removeChild = function(t) { var e = arguments.length; if (e > 1) { for (var i = !0, s = 0; s < e; s++) i = i && this.removeChild(arguments[s]); return i } return this.removeChildAt(createjs.indexOf(this.children, t)) } , e.removeChildAt = function(t) { var e = arguments.length; if (e > 1) { for (var i = [], s = 0; s < e; s++) i[s] = arguments[s]; i.sort(function(t, e) { return e - t }); var n = !0; for (s = 0; s < e; s++) n = n && this.removeChildAt(i[s]); return n } if (t < 0 || t > this.children.length - 1) return !1; var r = this.children[t]; return r && (r.parent = null), this.children.splice(t, 1), r.dispatchEvent("removed"), !0 } , e.removeAllChildren = function() { for (var t = this.children; t.length; ) this.removeChildAt(0) } , e.getChildAt = function(t) { return this.children[t] } , e.getChildByName = function(t) { for (var e = this.children, i = 0, s = e.length; i < s; i++) if (e[i].name == t) return e[i]; return null } , e.sortChildren = function(t) { this.children.sort(t) } , e.getChildIndex = function(t) { return createjs.indexOf(this.children, t) } , e.swapChildrenAt = function(t, e) { var i = this.children , s = i[t] , n = i[e]; s && n && (i[t] = n, i[e] = s) } , e.swapChildren = function(t, e) { for (var i, s, n = this.children, r = 0, a = n.length; r < a && (n[r] == t && (i = r), n[r] == e && (s = r), null == i || null == s); r++) ; r != a && (n[i] = e, n[s] = t) } , e.setChildIndex = function(t, e) { var i = this.children , s = i.length; if (!(t.parent != this || e < 0 || e >= s)) { for (var n = 0; n < s && i[n] != t; n++) ; n != s && n != e && (i.splice(n, 1), i.splice(e, 0, t)) } } , e.contains = function(t) { for (; t; ) { if (t == this) return !0; t = t.parent } return !1 } , e.hitTest = function(t, e) { return null != this.getObjectUnderPoint(t, e) } , e.getObjectsUnderPoint = function(t, e, i) { var s = [] , n = this.localToGlobal(t, e); return this._getObjectsUnderPoint(n.x, n.y, s, i > 0, 1 == i), s } , e.getObjectUnderPoint = function(t, e, i) { var s = this.localToGlobal(t, e); return this._getObjectsUnderPoint(s.x, s.y, null, i > 0, 1 == i) } , e.getBounds = function() { return this._getBounds(null, !0) } , e.getTransformedBounds = function() { return this._getBounds() } , e.clone = function(e) { var i = this._cloneProps(new t); return e && this._cloneChildren(i), i } , e.toString = function() { return "[Container (name=" + this.name + ")]" } , e._tick = function(t) { if (this.tickChildren) for (var e = this.children.length - 1; e >= 0; e--) { var i = this.children[e]; i.tickEnabled && i._tick && i._tick(t) } this.DisplayObject__tick(t) } , e._cloneChildren = function(t) { t.children.length && t.removeAllChildren(); for (var e = t.children, i = 0, s = this.children.length; i < s; i++) { var n = this.children[i].clone(!0); n.parent = t, e.push(n) } } , e._getObjectsUnderPoint = function(e, i, s, n, r, a) { if (!(a = a || 0) && !this._testMask(this, e, i)) return null; var h, o = createjs.DisplayObject._hitTestContext; r = r || n && this._hasMouseEventListener(); for (var c = this.children, l = c.length - 1; l >= 0; l--) { var u = c[l] , d = u.hitArea; if (u.visible && (d || u.isVisible()) && (!n || u.mouseEnabled) && (d || this._testMask(u, e, i))) if (!d && u instanceof t) { var p = u._getObjectsUnderPoint(e, i, s, n, r, a + 1); if (!s && p) return n && !this.mouseChildren ? this : p } else { if (n && !r && !u._hasMouseEventListener()) continue; var f = u.getConcatenatedDisplayProps(u._props); if (h = f.matrix, d && (h.appendMatrix(d.getMatrix(d._props.matrix)), f.alpha = d.alpha), o.globalAlpha = f.alpha, o.setTransform(h.a, h.b, h.c, h.d, h.tx - e, h.ty - i), (d || u).draw(o), !this._testHit(o)) continue; if (o.setTransform(1, 0, 0, 1, 0, 0), o.clearRect(0, 0, 2, 2), !s) return n && !this.mouseChildren ? this : u; s.push(u) } } return null } , e._testMask = function(t, e, i) { var s = t.mask; if (!s || !s.graphics || s.graphics.isEmpty()) return !0; var n = this._props.matrix , r = t.parent; n = r ? r.getConcatenatedMatrix(n) : n.identity(), n = s.getMatrix(s._props.matrix).prependMatrix(n); var a = createjs.DisplayObject._hitTestContext; return a.setTransform(n.a, n.b, n.c, n.d, n.tx - e, n.ty - i), s.graphics.drawAsPath(a), a.fillStyle = "#000", a.fill(), !!this._testHit(a) && (a.setTransform(1, 0, 0, 1, 0, 0), a.clearRect(0, 0, 2, 2), !0) } , e._getBounds = function(t, e) { var i = this.DisplayObject_getBounds(); if (i) return this._transformBounds(i, t, e); var s = this._props.matrix; s = e ? s.identity() : this.getMatrix(s), t && s.prependMatrix(t); for (var n = this.children.length, r = null, a = 0; a < n; a++) { var h = this.children[a]; h.visible && (i = h._getBounds(s)) && (r ? r.extend(i.x, i.y, i.width, i.height) : r = i.clone()) } return r } , createjs.Container = createjs.promote(t, "DisplayObject") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.Container_constructor(), this.autoClear = !0, this.canvas = "string" == typeof t ? document.getElementById(t) : t, this.mouseX = 0, this.mouseY = 0, this.drawRect = null, this.snapToPixelEnabled = !1, this.mouseInBounds = !1, this.tickOnUpdate = !0, this.mouseMoveOutside = !1, this.preventSelection = !0, this._pointerData = {}, this._pointerCount = 0, this._primaryPointerID = null, this._mouseOverIntervalID = null, this._nextStage = null, this._prevStage = null, this.enableDOMEvents(!0) } var e = createjs.extend(t, createjs.Container); e._get_nextStage = function() { return this._nextStage } , e._set_nextStage = function(t) { this._nextStage && (this._nextStage._prevStage = null), t && (t._prevStage = this), this._nextStage = t } ; try { Object.defineProperties(e, { nextStage: { get: e._get_nextStage, set: e._set_nextStage } }) } catch (t) {} e.update = function(t) { if (this.canvas && (this.tickOnUpdate && this.tick(t), !1 !== this.dispatchEvent("drawstart", !1, !0))) { createjs.DisplayObject._snapToPixelEnabled = this.snapToPixelEnabled; var e = this.drawRect , i = this.canvas.getContext("2d"); i.setTransform(1, 0, 0, 1, 0, 0), this.autoClear && (e ? i.clearRect(e.x, e.y, e.width, e.height) : i.clearRect(0, 0, this.canvas.width + 1, this.canvas.height + 1)), i.save(), this.drawRect && (i.beginPath(), i.rect(e.x, e.y, e.width, e.height), i.clip()), this.updateContext(i), this.draw(i, !1), i.restore(), this.dispatchEvent("drawend") } } , e.tick = function(t) { if (this.tickEnabled && !1 !== this.dispatchEvent("tickstart", !1, !0)) { var e = new createjs.Event("tick"); if (t) for (var i in t) t.hasOwnProperty(i) && (e[i] = t[i]); this._tick(e), this.dispatchEvent("tickend") } } , e.handleEvent = function(t) { "tick" == t.type && this.update(t) } , e.clear = function() { if (this.canvas) { var t = this.canvas.getContext("2d"); t.setTransform(1, 0, 0, 1, 0, 0), t.clearRect(0, 0, this.canvas.width + 1, this.canvas.height + 1) } } , e.toDataURL = function(t, e) { var i, s = this.canvas.getContext("2d"), n = this.canvas.width, r = this.canvas.height; if (t) { i = s.getImageData(0, 0, n, r); var a = s.globalCompositeOperation; s.globalCompositeOperation = "destination-over", s.fillStyle = t, s.fillRect(0, 0, n, r) } var h = this.canvas.toDataURL(e || "image/png"); return t && (s.putImageData(i, 0, 0), s.globalCompositeOperation = a), h } , e.enableMouseOver = function(t) { if (this._mouseOverIntervalID && (clearInterval(this._mouseOverIntervalID), this._mouseOverIntervalID = null, 0 == t && this._testMouseOver(!0)), null == t) t = 20; else if (t <= 0) return; var e = this; this._mouseOverIntervalID = setInterval(function() { e._testMouseOver() }, 1e3 / Math.min(50, t)) } , e.enableDOMEvents = function(t) { null == t && (t = !0); var e, i, s = this._eventListeners; if (!t && s) { for (e in s) (i = s[e]).t.removeEventListener(e, i.f, !1); this._eventListeners = null } else if (t && !s && this.canvas) { var n = window.addEventListener ? window : document , r = this; for (e in (s = this._eventListeners = {}).mouseup = { t: n, f: function(t) { r._handleMouseUp(t) } }, s.mousemove = { t: n, f: function(t) { r._handleMouseMove(t) } }, s.dblclick = { t: this.canvas, f: function(t) { r._handleDoubleClick(t) } }, s.mousedown = { t: this.canvas, f: function(t) { r._handleMouseDown(t) } }, s) (i = s[e]).t.addEventListener(e, i.f, !1) } } , e.clone = function() { throw "Stage cannot be cloned." } , e.toString = function() { return "[Stage (name=" + this.name + ")]" } , e._getElementRect = function(t) { var e; try { e = t.getBoundingClientRect() } catch (i) { e = { top: t.offsetTop, left: t.offsetLeft, width: t.offsetWidth, height: t.offsetHeight } } var i = (window.pageXOffset || document.scrollLeft || 0) - (document.clientLeft || document.body.clientLeft || 0) , s = (window.pageYOffset || document.scrollTop || 0) - (document.clientTop || document.body.clientTop || 0) , n = window.getComputedStyle ? getComputedStyle(t, null) : t.currentStyle , r = parseInt(n.paddingLeft) + parseInt(n.borderLeftWidth) , a = parseInt(n.paddingTop) + parseInt(n.borderTopWidth) , h = parseInt(n.paddingRight) + parseInt(n.borderRightWidth) , o = parseInt(n.paddingBottom) + parseInt(n.borderBottomWidth); return { left: e.left + i + r, right: e.right + i - h, top: e.top + s + a, bottom: e.bottom + s - o } } , e._getPointerData = function(t) { var e = this._pointerData[t]; return e || (e = this._pointerData[t] = { x: 0, y: 0 }), e } , e._handleMouseMove = function(t) { t || (t = window.event), this._handlePointerMove(-1, t, t.pageX, t.pageY) } , e._handlePointerMove = function(t, e, i, s, n) { if ((!this._prevStage || void 0 !== n) && this.canvas) { var r = this._nextStage , a = this._getPointerData(t) , h = a.inBounds; this._updatePointerPosition(t, e, i, s), (h || a.inBounds || this.mouseMoveOutside) && (-1 === t && a.inBounds == !h && this._dispatchMouseEvent(this, h ? "mouseleave" : "mouseenter", !1, t, a, e), this._dispatchMouseEvent(this, "stagemousemove", !1, t, a, e), this._dispatchMouseEvent(a.target, "pressmove", !0, t, a, e)), r && r._handlePointerMove(t, e, i, s, null) } } , e._updatePointerPosition = function(t, e, i, s) { var n = this._getElementRect(this.canvas); i -= n.left, s -= n.top; var r = this.canvas.width , a = this.canvas.height; i /= (n.right - n.left) / r, s /= (n.bottom - n.top) / a; var h = this._getPointerData(t); (h.inBounds = i >= 0 && s >= 0 && i <= r - 1 && s <= a - 1) ? (h.x = i, h.y = s) : this.mouseMoveOutside && (h.x = i < 0 ? 0 : i > r - 1 ? r - 1 : i, h.y = s < 0 ? 0 : s > a - 1 ? a - 1 : s), h.posEvtObj = e, h.rawX = i, h.rawY = s, t !== this._primaryPointerID && -1 !== t || (this.mouseX = h.x, this.mouseY = h.y, this.mouseInBounds = h.inBounds) } , e._handleMouseUp = function(t) { this._handlePointerUp(-1, t, !1) } , e._handlePointerUp = function(t, e, i, s) { var n = this._nextStage , r = this._getPointerData(t); if (!this._prevStage || void 0 !== s) { var a = null , h = r.target; s || !h && !n || (a = this._getObjectsUnderPoint(r.x, r.y, null, !0)), r.down && (this._dispatchMouseEvent(this, "stagemouseup", !1, t, r, e, a), r.down = !1), a == h && this._dispatchMouseEvent(h, "click", !0, t, r, e), this._dispatchMouseEvent(h, "pressup", !0, t, r, e), i ? (t == this._primaryPointerID && (this._primaryPointerID = null), delete this._pointerData[t]) : r.target = null, n && n._handlePointerUp(t, e, i, s || a && this) } } , e._handleMouseDown = function(t) { this._handlePointerDown(-1, t, t.pageX, t.pageY) } , e._handlePointerDown = function(t, e, i, s, n) { this.preventSelection && e.preventDefault(), null != this._primaryPointerID && -1 !== t || (this._primaryPointerID = t), null != s && this._updatePointerPosition(t, e, i, s); var r = null , a = this._nextStage , h = this._getPointerData(t); n || (r = h.target = this._getObjectsUnderPoint(h.x, h.y, null, !0)), h.inBounds && (this._dispatchMouseEvent(this, "stagemousedown", !1, t, h, e, r), h.down = !0), this._dispatchMouseEvent(r, "mousedown", !0, t, h, e), a && a._handlePointerDown(t, e, i, s, n || r && this) } , e._testMouseOver = function(t, e, i) { if (!this._prevStage || void 0 !== e) { var s = this._nextStage; if (this._mouseOverIntervalID) { var n = this._getPointerData(-1); if (n && (t || this.mouseX != this._mouseOverX || this.mouseY != this._mouseOverY || !this.mouseInBounds)) { var r, a, h, o = n.posEvtObj, c = i || o && o.target == this.canvas, l = null, u = -1, d = ""; !e && (t || this.mouseInBounds && c) && (l = this._getObjectsUnderPoint(this.mouseX, this.mouseY, null, !0), this._mouseOverX = this.mouseX, this._mouseOverY = this.mouseY); var p = this._mouseOverTarget || [] , f = p[p.length - 1] , _ = this._mouseOverTarget = []; for (r = l; r; ) _.unshift(r), d || (d = r.cursor), r = r.parent; for (this.canvas.style.cursor = d, !e && i && (i.canvas.style.cursor = d), a = 0, h = _.length; a < h && _[a] == p[a]; a++) u = a; for (f != l && this._dispatchMouseEvent(f, "mouseout", !0, -1, n, o, l), a = p.length - 1; a > u; a--) this._dispatchMouseEvent(p[a], "rollout", !1, -1, n, o, l); for (a = _.length - 1; a > u; a--) this._dispatchMouseEvent(_[a], "rollover", !1, -1, n, o, f); f != l && this._dispatchMouseEvent(l, "mouseover", !0, -1, n, o, f), s && s._testMouseOver(t, e || l && this, i || c && this) } } else s && s._testMouseOver(t, e, i) } } , e._handleDoubleClick = function(t, e) { var i = null , s = this._nextStage , n = this._getPointerData(-1); e || (i = this._getObjectsUnderPoint(n.x, n.y, null, !0), this._dispatchMouseEvent(i, "dblclick", !0, -1, n, t)), s && s._handleDoubleClick(t, e || i && this) } , e._dispatchMouseEvent = function(t, e, i, s, n, r, a) { if (t && (i || t.hasEventListener(e))) { var h = new createjs.MouseEvent(e,i,!1,n.x,n.y,r,s,s === this._primaryPointerID || -1 === s,n.rawX,n.rawY,a); t.dispatchEvent(h) } } , createjs.Stage = createjs.promote(t, "Container") }(), this.createjs = this.createjs || {}, function() { function t(t) { this.DisplayObject_constructor(), "string" == typeof t ? (this.image = document.createElement("img"), this.image.src = t) : this.image = t, this.sourceRect = null } var e = createjs.extend(t, createjs.DisplayObject); e.initialize = t, e.isVisible = function() { var t = this.image , e = this.cacheCanvas || t && (t.naturalWidth || t.getContext || t.readyState >= 2); return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && e) } , e.draw = function(t, e) { if (this.DisplayObject_draw(t, e) || !this.image) return !0; var i = this.image , s = this.sourceRect; if (s) { var n = s.x , r = s.y , a = n + s.width , h = r + s.height , o = 0 , c = 0 , l = i.width , u = i.height; n < 0 && (o -= n, n = 0), a > l && (a = l), r < 0 && (c -= r, r = 0), h > u && (h = u), t.drawImage(i, n, r, a - n, h - r, o, c, a - n, h - r) } else t.drawImage(i, 0, 0); return !0 } , e.getBounds = function() { var t = this.DisplayObject_getBounds(); if (t) return t; var e = this.image , i = this.sourceRect || e; return e && (e.naturalWidth || e.getContext || e.readyState >= 2) ? this._rectangle.setValues(0, 0, i.width, i.height) : null } , e.clone = function() { var e = new t(this.image); return this.sourceRect && (e.sourceRect = this.sourceRect.clone()), this._cloneProps(e), e } , e.toString = function() { return "[Bitmap (name=" + this.name + ")]" } , createjs.Bitmap = createjs.promote(t, "DisplayObject") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e) { this.DisplayObject_constructor(), this.currentFrame = 0, this.currentAnimation = null, this.paused = !0, this.spriteSheet = t, this.currentAnimationFrame = 0, this.framerate = 0, this._animation = null, this._currentFrame = null, this._skipAdvance = !1, null != e && this.gotoAndPlay(e) } var e = createjs.extend(t, createjs.DisplayObject); e.initialize = t, e.isVisible = function() { var t = this.cacheCanvas || this.spriteSheet.complete; return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && t) } , e.draw = function(t, e) { if (this.DisplayObject_draw(t, e)) return !0; this._normalizeFrame(); var i = this.spriteSheet.getFrame(0 | this._currentFrame); if (!i) return !1; var s = i.rect; return s.width && s.height && t.drawImage(i.image, s.x, s.y, s.width, s.height, -i.regX, -i.regY, s.width, s.height), !0 } , e.play = function() { this.paused = !1 } , e.stop = function() { this.paused = !0 } , e.gotoAndPlay = function(t) { this.paused = !1, this._skipAdvance = !0, this._goto(t) } , e.gotoAndStop = function(t) { this.paused = !0, this._goto(t) } , e.advance = function(t) { var e = this.framerate || this.spriteSheet.framerate , i = e && null != t ? t / (1e3 / e) : 1; this._normalizeFrame(i) } , e.getBounds = function() { return this.DisplayObject_getBounds() || this.spriteSheet.getFrameBounds(this.currentFrame, this._rectangle) } , e.clone = function() { return this._cloneProps(new t(this.spriteSheet)) } , e.toString = function() { return "[Sprite (name=" + this.name + ")]" } , e._cloneProps = function(t) { return this.DisplayObject__cloneProps(t), t.currentFrame = this.currentFrame, t.currentAnimation = this.currentAnimation, t.paused = this.paused, t.currentAnimationFrame = this.currentAnimationFrame, t.framerate = this.framerate, t._animation = this._animation, t._currentFrame = this._currentFrame, t._skipAdvance = this._skipAdvance, t } , e._tick = function(t) { this.paused || (this._skipAdvance || this.advance(t && t.delta), this._skipAdvance = !1), this.DisplayObject__tick(t) } , e._normalizeFrame = function(t) { t = t || 0; var e, i = this._animation, s = this.paused, n = this._currentFrame; if (i) { var r = i.speed || 1 , a = this.currentAnimationFrame; if (a + t * r >= (e = i.frames.length)) { var h = i.next; if (this._dispatchAnimationEnd(i, n, s, h, e - 1)) return; if (h) return this._goto(h, t - (e - a) / r); this.paused = !0, a = i.frames.length - 1 } else a += t * r; this.currentAnimationFrame = a, this._currentFrame = i.frames[0 | a] } else if ((n = this._currentFrame += t) >= (e = this.spriteSheet.getNumFrames()) && e > 0 && !this._dispatchAnimationEnd(i, n, s, e - 1) && (this._currentFrame -= e) >= e) return this._normalizeFrame(); n = 0 | this._currentFrame, this.currentFrame != n && (this.currentFrame = n, this.dispatchEvent("change")) } , e._dispatchAnimationEnd = function(t, e, i, s, n) { var r = t ? t.name : null; if (this.hasEventListener("animationend")) { var a = new createjs.Event("animationend"); a.name = r, a.next = s, this.dispatchEvent(a) } var h = this._animation != t || this._currentFrame != e; return h || i || !this.paused || (this.currentAnimationFrame = n, h = !0), h } , e._goto = function(t, e) { if (this.currentAnimationFrame = 0, isNaN(t)) { var i = this.spriteSheet.getAnimation(t); i && (this._animation = i, this.currentAnimation = t, this._normalizeFrame(e)) } else this.currentAnimation = this._animation = null, this._currentFrame = t, this._normalizeFrame() } , createjs.Sprite = createjs.promote(t, "DisplayObject") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.DisplayObject_constructor(), this.graphics = t || new createjs.Graphics } var e = createjs.extend(t, createjs.DisplayObject); e.isVisible = function() { var t = this.cacheCanvas || this.graphics && !this.graphics.isEmpty(); return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && t) } , e.draw = function(t, e) { return !!this.DisplayObject_draw(t, e) || (this.graphics.draw(t, this), !0) } , e.clone = function(e) { var i = e && this.graphics ? this.graphics.clone() : this.graphics; return this._cloneProps(new t(i)) } , e.toString = function() { return "[Shape (name=" + this.name + ")]" } , createjs.Shape = createjs.promote(t, "DisplayObject") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i) { this.DisplayObject_constructor(), this.text = t, this.font = e, this.color = i, this.textAlign = "left", this.textBaseline = "top", this.maxWidth = null, this.outline = 0, this.lineHeight = 0, this.lineWidth = null } var e = createjs.extend(t, createjs.DisplayObject) , i = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); i.getContext && (t._workingContext = i.getContext("2d"), i.width = i.height = 1), t.H_OFFSETS = { start: 0, left: 0, center: -.5, end: -1, right: -1 }, t.V_OFFSETS = { top: 0, hanging: -.01, middle: -.4, alphabetic: -.8, ideographic: -.85, bottom: -1 }, e.isVisible = function() { var t = this.cacheCanvas || null != this.text && "" !== this.text; return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && t) } , e.draw = function(t, e) { if (this.DisplayObject_draw(t, e)) return !0; var i = this.color || "#000"; return this.outline ? (t.strokeStyle = i, t.lineWidth = 1 * this.outline) : t.fillStyle = i, this._drawText(this._prepContext(t)), !0 } , e.getMeasuredWidth = function() { return this._getMeasuredWidth(this.text) } , e.getMeasuredLineHeight = function() { return 1.2 * this._getMeasuredWidth("M") } , e.getMeasuredHeight = function() { return this._drawText(null, {}).height } , e.getBounds = function() { var e = this.DisplayObject_getBounds(); if (e) return e; if (null == this.text || "" === this.text) return null; var i = this._drawText(null, {}) , s = this.maxWidth && this.maxWidth < i.width ? this.maxWidth : i.width , n = s * t.H_OFFSETS[this.textAlign || "left"] , r = (this.lineHeight || this.getMeasuredLineHeight()) * t.V_OFFSETS[this.textBaseline || "top"]; return this._rectangle.setValues(n, r, s, i.height) } , e.getMetrics = function() { var e = { lines: [] }; return e.lineHeight = this.lineHeight || this.getMeasuredLineHeight(), e.vOffset = e.lineHeight * t.V_OFFSETS[this.textBaseline || "top"], this._drawText(null, e, e.lines) } , e.clone = function() { return this._cloneProps(new t(this.text,this.font,this.color)) } , e.toString = function() { return "[Text (text=" + (this.text.length > 20 ? this.text.substr(0, 17) + "..." : this.text) + ")]" } , e._cloneProps = function(t) { return this.DisplayObject__cloneProps(t), t.textAlign = this.textAlign, t.textBaseline = this.textBaseline, t.maxWidth = this.maxWidth, t.outline = this.outline, t.lineHeight = this.lineHeight, t.lineWidth = this.lineWidth, t } , e._prepContext = function(t) { return t.font = this.font || "10px sans-serif", t.textAlign = this.textAlign || "left", t.textBaseline = this.textBaseline || "top", t } , e._drawText = function(e, i, s) { var n = !!e; n || ((e = t._workingContext).save(), this._prepContext(e)); for (var r = this.lineHeight || this.getMeasuredLineHeight(), a = 0, h = 0, o = String(this.text).split(/(?:\r\n|\r|\n)/), c = 0, l = o.length; c < l; c++) { var u = o[c] , d = null; if (null != this.lineWidth && (d = e.measureText(u).width) > this.lineWidth) { var p = u.split(/(\s)/); u = p[0], d = e.measureText(u).width; for (var f = 1, _ = p.length; f < _; f += 2) { var m = e.measureText(p[f] + p[f + 1]).width; d + m > this.lineWidth ? (n && this._drawTextLine(e, u, h * r), s && s.push(u), d > a && (a = d), u = p[f + 1], d = e.measureText(u).width, h++) : (u += p[f] + p[f + 1], d += m) } } n && this._drawTextLine(e, u, h * r), s && s.push(u), i && null == d && (d = e.measureText(u).width), d > a && (a = d), h++ } return i && (i.width = a, i.height = h * r), n || e.restore(), i } , e._drawTextLine = function(t, e, i) { this.outline ? t.strokeText(e, 0, i, this.maxWidth || 65535) : t.fillText(e, 0, i, this.maxWidth || 65535) } , e._getMeasuredWidth = function(e) { var i = t._workingContext; i.save(); var s = this._prepContext(i).measureText(e).width; return i.restore(), s } , createjs.Text = createjs.promote(t, "DisplayObject") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e) { this.Container_constructor(), this.text = t || "", this.spriteSheet = e, this.lineHeight = 0, this.letterSpacing = 0, this.spaceWidth = 0, this._oldProps = { text: 0, spriteSheet: 0, lineHeight: 0, letterSpacing: 0, spaceWidth: 0 } } var e = createjs.extend(t, createjs.Container); t.maxPoolSize = 100, t._spritePool = [], e.draw = function(t, e) { this.DisplayObject_draw(t, e) || (this._updateText(), this.Container_draw(t, e)) } , e.getBounds = function() { return this._updateText(), this.Container_getBounds() } , e.isVisible = function() { var t = this.cacheCanvas || this.spriteSheet && this.spriteSheet.complete && this.text; return !!(this.visible && this.alpha > 0 && 0 !== this.scaleX && 0 !== this.scaleY && t) } , e.clone = function() { return this._cloneProps(new t(this.text,this.spriteSheet)) } , e.addChild = e.addChildAt = e.removeChild = e.removeChildAt = e.removeAllChildren = function() {} , e._cloneProps = function(t) { return this.Container__cloneProps(t), t.lineHeight = this.lineHeight, t.letterSpacing = this.letterSpacing, t.spaceWidth = this.spaceWidth, t } , e._getFrameIndex = function(t, e) { var i, s = e.getAnimation(t); return s || (t != (i = t.toUpperCase()) || t != (i = t.toLowerCase()) || (i = null), i && (s = e.getAnimation(i))), s && s.frames[0] } , e._getFrame = function(t, e) { var i = this._getFrameIndex(t, e); return null == i ? i : e.getFrame(i) } , e._getLineHeight = function(t) { var e = this._getFrame("1", t) || this._getFrame("T", t) || this._getFrame("L", t) || t.getFrame(0); return e ? e.rect.height : 1 } , e._getSpaceWidth = function(t) { var e = this._getFrame("1", t) || this._getFrame("l", t) || this._getFrame("e", t) || this._getFrame("a", t) || t.getFrame(0); return e ? e.rect.width : 1 } , e._updateText = function() { var e, i = 0, s = 0, n = this._oldProps, r = !1, a = this.spaceWidth, h = this.lineHeight, o = this.spriteSheet, c = t._spritePool, l = this.children, u = 0, d = l.length; for (var p in n) n[p] != this[p] && (n[p] = this[p], r = !0); if (r) { var f = !!this._getFrame(" ", o); f || a || (a = this._getSpaceWidth(o)), h || (h = this._getLineHeight(o)); for (var _ = 0, m = this.text.length; _ < m; _++) { var g = this.text.charAt(_); if (" " != g || f) if ("\n" != g && "\r" != g) { var v = this._getFrameIndex(g, o); null != v && (u < d ? e = l[u] : (l.push(e = c.length ? c.pop() : new createjs.Sprite), e.parent = this, d++), e.spriteSheet = o, e.gotoAndStop(v), e.x = i, e.y = s, u++, i += e.getBounds().width + this.letterSpacing) } else "\r" == g && "\n" == this.text.charAt(_ + 1) && _++, i = 0, s += h; else i += a } for (; d > u; ) c.push(e = l.pop()), e.parent = null, d--; c.length > t.maxPoolSize && (c.length = t.maxPoolSize) } } , createjs.BitmapText = createjs.promote(t, "Container") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(e, i, s, n) { this.Container_constructor(), !t.inited && t.init(), this.mode = e || t.INDEPENDENT, this.startPosition = i || 0, this.loop = s, this.currentFrame = 0, this.timeline = new createjs.Timeline(null,n,{ paused: !0, position: i, useTicks: !0 }), this.paused = !1, this.actionsEnabled = !0, this.autoReset = !0, this.frameBounds = this.frameBounds || null, this.framerate = null, this._synchOffset = 0, this._prevPos = -1, this._prevPosition = 0, this._t = 0, this._managed = {} } var e = createjs.extend(t, createjs.Container); t.INDEPENDENT = "independent", t.SINGLE_FRAME = "single", t.SYNCHED = "synched", t.inited = !1, t.init = function() { t.inited || (i.install(), t.inited = !0) } , e.getLabels = function() { return this.timeline.getLabels() } , e.getCurrentLabel = function() { return this._updateTimeline(), this.timeline.getCurrentLabel() } , e.getDuration = function() { return this.timeline.duration } ; try { Object.defineProperties(e, { labels: { get: e.getLabels }, currentLabel: { get: e.getCurrentLabel }, totalFrames: { get: e.getDuration }, duration: { get: e.getDuration } }) } catch (t) {} function i() { throw "MovieClipPlugin cannot be instantiated." } e.initialize = t, e.isVisible = function() { return !!(this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY) } , e.draw = function(t, e) { return !!this.DisplayObject_draw(t, e) || (this._updateTimeline(), this.Container_draw(t, e), !0) } , e.play = function() { this.paused = !1 } , e.stop = function() { this.paused = !0 } , e.gotoAndPlay = function(t) { this.paused = !1, this._goto(t) } , e.gotoAndStop = function(t) { this.paused = !0, this._goto(t) } , e.advance = function(e) { var i = t.INDEPENDENT; if (this.mode == i) { for (var s = this, n = s.framerate; (s = s.parent) && null == n; ) s.mode == i && (n = s._framerate); this._framerate = n; var r = null != n && -1 != n && null != e ? e / (1e3 / n) + this._t : 1 , a = 0 | r; for (this._t = r - a; !this.paused && a--; ) this._prevPosition = this._prevPos < 0 ? 0 : this._prevPosition + 1, this._updateTimeline() } } , e.clone = function() { throw "MovieClip cannot be cloned." } , e.toString = function() { return "[MovieClip (name=" + this.name + ")]" } , e._tick = function(t) { this.advance(t && t.delta), this.Container__tick(t) } , e._goto = function(t) { var e = this.timeline.resolve(t); null != e && (-1 == this._prevPos && (this._prevPos = NaN), this._prevPosition = e, this._t = 0, this._updateTimeline()) } , e._reset = function() { this._prevPos = -1, this._t = this.currentFrame = 0, this.paused = !1 } , e._updateTimeline = function() { var e = this.timeline , i = this.mode != t.INDEPENDENT; e.loop = null == this.loop || this.loop; var s = i ? this.startPosition + (this.mode == t.SINGLE_FRAME ? 0 : this._synchOffset) : this._prevPos < 0 ? 0 : this._prevPosition , n = i || !this.actionsEnabled ? createjs.Tween.NONE : null; if (this.currentFrame = e._calcPosition(s), e.setPosition(s, n), this._prevPosition = e._prevPosition, this._prevPos != e._prevPos) { for (var r in this.currentFrame = this._prevPos = e._prevPos, this._managed) this._managed[r] = 1; for (var a = e._tweens, h = 0, o = a.length; h < o; h++) { var c = a[h] , l = c._target; if (l != this && !c.passive) { var u = c._stepPosition; l instanceof createjs.DisplayObject ? this._addManagedChild(l, u) : this._setState(l.state, u) } } var d = this.children; for (h = d.length - 1; h >= 0; h--) { var p = d[h].id; 1 == this._managed[p] && (this.removeChildAt(h), delete this._managed[p]) } } } , e._setState = function(t, e) { if (t) for (var i = t.length - 1; i >= 0; i--) { var s = t[i] , n = s.t , r = s.p; for (var a in r) n[a] = r[a]; this._addManagedChild(n, e) } } , e._addManagedChild = function(e, i) { e._off || (this.addChildAt(e, 0), e instanceof t && (e._synchOffset = i, e.mode == t.INDEPENDENT && e.autoReset && !this._managed[e.id] && e._reset()), this._managed[e.id] = 2) } , e._getBounds = function(t, e) { var i = this.DisplayObject_getBounds(); return i || (this._updateTimeline(), this.frameBounds && (i = this._rectangle.copy(this.frameBounds[this.currentFrame]))), i ? this._transformBounds(i, t, e) : this.Container__getBounds(t, e) } , createjs.MovieClip = createjs.promote(t, "Container"), i.priority = 100, i.install = function() { createjs.Tween.installPlugin(i, ["startPosition"]) } , i.init = function(t, e, i) { return i } , i.step = function() {} , i.tween = function(e, i, s, n, r, a, h, o) { return e.target instanceof t ? 1 == a ? r[i] : n[i] : s } }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "SpriteSheetUtils cannot be instantiated" } var e = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); e.getContext && (t._workingCanvas = e, t._workingContext = e.getContext("2d"), e.width = e.height = 1), t.addFlippedFrames = function(e, i, s, n) { if (i || s || n) { var r = 0; i && t._flip(e, ++r, !0, !1), s && t._flip(e, ++r, !1, !0), n && t._flip(e, ++r, !0, !0) } } , t.extractFrame = function(e, i) { isNaN(i) && (i = e.getAnimation(i).frames[0]); var s = e.getFrame(i); if (!s) return null; var n = s.rect , r = t._workingCanvas; r.width = n.width, r.height = n.height, t._workingContext.drawImage(s.image, n.x, n.y, n.width, n.height, 0, 0, n.width, n.height); var a = document.createElement("img"); return a.src = r.toDataURL("image/png"), a } , t.mergeAlpha = function(t, e, i) { i || (i = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas")), i.width = Math.max(e.width, t.width), i.height = Math.max(e.height, t.height); var s = i.getContext("2d"); return s.save(), s.drawImage(t, 0, 0), s.globalCompositeOperation = "destination-in", s.drawImage(e, 0, 0), s.restore(), i } , t._flip = function(e, i, s, n) { for (var r = e._images, a = t._workingCanvas, h = t._workingContext, o = r.length / i, c = 0; c < o; c++) { var l = r[c]; l.__tmp = c, h.setTransform(1, 0, 0, 1, 0, 0), h.clearRect(0, 0, a.width + 1, a.height + 1), a.width = l.width, a.height = l.height, h.setTransform(s ? -1 : 1, 0, 0, n ? -1 : 1, s ? l.width : 0, n ? l.height : 0), h.drawImage(l, 0, 0); var u = document.createElement("img"); u.src = a.toDataURL("image/png"), u.width = l.width, u.height = l.height, r.push(u) } var d = e._frames , p = d.length / i; for (c = 0; c < p; c++) { var f = (l = d[c]).rect.clone() , _ = { image: u = r[l.image.__tmp + o * i], rect: f, regX: l.regX, regY: l.regY }; s && (f.x = u.width - f.x - f.width, _.regX = f.width - l.regX), n && (f.y = u.height - f.y - f.height, _.regY = f.height - l.regY), d.push(_) } var m = "_" + (s ? "h" : "") + (n ? "v" : "") , g = e._animations , v = e._data , w = g.length / i; for (c = 0; c < w; c++) { var x = g[c] , y = { name: x + m, speed: (l = v[x]).speed, next: l.next, frames: [] }; l.next && (y.next += m); for (var b = 0, E = (d = l.frames).length; b < E; b++) y.frames.push(d[b] + p * i); v[y.name] = y, g.push(y.name) } } , createjs.SpriteSheetUtils = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.EventDispatcher_constructor(), this.maxWidth = 2048, this.maxHeight = 2048, this.spriteSheet = null, this.scale = 1, this.padding = 1, this.timeSlice = .3, this.progress = -1, this.framerate = t || 0, this._frames = [], this._animations = {}, this._data = null, this._nextFrameIndex = 0, this._index = 0, this._timerID = null, this._scale = 1 } var e = createjs.extend(t, createjs.EventDispatcher); t.ERR_DIMENSIONS = "frame dimensions exceed max spritesheet dimensions", t.ERR_RUNNING = "a build is already running", e.addFrame = function(e, i, s, n, r) { if (this._data) throw t.ERR_RUNNING; var a = i || e.bounds || e.nominalBounds; return !a && e.getBounds && (a = e.getBounds()), a ? (s = s || 1, this._frames.push({ source: e, sourceRect: a, scale: s, funct: n, data: r, index: this._frames.length, height: a.height * s }) - 1) : null } , e.addAnimation = function(e, i, s, n) { if (this._data) throw t.ERR_RUNNING; this._animations[e] = { frames: i, next: s, speed: n } } , e.addMovieClip = function(e, i, s, n, r, a) { if (this._data) throw t.ERR_RUNNING; var h = e.frameBounds , o = i || e.bounds || e.nominalBounds; if (!o && e.getBounds && (o = e.getBounds()), o || h) { var c, l, u = this._frames.length, d = e.timeline.duration; for (c = 0; c < d; c++) { var p = h && h[c] ? h[c] : o; this.addFrame(e, p, s, this._setupMovieClipFrame, { i: c, f: n, d: r }) } var f = e.timeline._labels , _ = []; for (var m in f) _.push({ index: f[m], label: m }); if (_.length) for (_.sort(function(t, e) { return t.index - e.index }), c = 0, l = _.length; c < l; c++) { for (var g = _[c].label, v = u + _[c].index, w = u + (c == l - 1 ? d : _[c + 1].index), x = [], y = v; y < w; y++) x.push(y); a && !(g = a(g, e, v, w)) || this.addAnimation(g, x, !0) } } } , e.build = function() { if (this._data) throw t.ERR_RUNNING; for (this._startBuild(); this._drawNext(); ) ; return this._endBuild(), this.spriteSheet } , e.buildAsync = function(e) { if (this._data) throw t.ERR_RUNNING; this.timeSlice = e, this._startBuild(); var i = this; this._timerID = setTimeout(function() { i._run() }, 50 - 50 * Math.max(.01, Math.min(.99, this.timeSlice || .3))) } , e.stopAsync = function() { clearTimeout(this._timerID), this._data = null } , e.clone = function() { throw "SpriteSheetBuilder cannot be cloned." } , e.toString = function() { return "[SpriteSheetBuilder]" } , e._startBuild = function() { var e = this.padding || 0; this.progress = 0, this.spriteSheet = null, this._index = 0, this._scale = this.scale; var i = []; this._data = { images: [], frames: i, framerate: this.framerate, animations: this._animations }; var s = this._frames.slice(); if (s.sort(function(t, e) { return t.height <= e.height ? -1 : 1 }), s[s.length - 1].height + 2 * e > this.maxHeight) throw t.ERR_DIMENSIONS; for (var n = 0, r = 0, a = 0; s.length; ) { var h = this._fillRow(s, n, a, i, e); if (h.w > r && (r = h.w), n += h.h, !h.h || !s.length) { var o = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); o.width = this._getSize(r, this.maxWidth), o.height = this._getSize(n, this.maxHeight), this._data.images[a] = o, h.h || (r = n = 0, a++) } } } , e._setupMovieClipFrame = function(t, e) { var i = t.actionsEnabled; t.actionsEnabled = !1, t.gotoAndStop(e.i), t.actionsEnabled = i, e.f && e.f(t, e.d, e.i) } , e._getSize = function(t, e) { for (var i = 4; Math.pow(2, ++i) < t; ) ; return Math.min(e, Math.pow(2, i)) } , e._fillRow = function(e, i, s, n, r) { for (var a = this.maxWidth, h = this.maxHeight - (i += r), o = r, c = 0, l = e.length - 1; l >= 0; l--) { var u = e[l] , d = this._scale * u.scale , p = u.sourceRect , f = u.source , _ = Math.floor(d * p.x - r) , m = Math.floor(d * p.y - r) , g = Math.ceil(d * p.height + 2 * r) , v = Math.ceil(d * p.width + 2 * r); if (v > a) throw t.ERR_DIMENSIONS; g > h || o + v > a || (u.img = s, u.rect = new createjs.Rectangle(o,i,v,g), c = c || g, e.splice(l, 1), n[u.index] = [o, i, v, g, s, Math.round(-_ + d * f.regX - r), Math.round(-m + d * f.regY - r)], o += v) } return { w: o, h: c } } , e._endBuild = function() { this.spriteSheet = new createjs.SpriteSheet(this._data), this._data = null, this.progress = 1, this.dispatchEvent("complete") } , e._run = function() { for (var t = 50 * Math.max(.01, Math.min(.99, this.timeSlice || .3)), e = (new Date).getTime() + t, i = !1; e > (new Date).getTime(); ) if (!this._drawNext()) { i = !0; break } if (i) this._endBuild(); else { var s = this; this._timerID = setTimeout(function() { s._run() }, 50 - t) } var n = this.progress = this._index / this._frames.length; if (this.hasEventListener("progress")) { var r = new createjs.Event("progress"); r.progress = n, this.dispatchEvent(r) } } , e._drawNext = function() { var t = this._frames[this._index] , e = t.scale * this._scale , i = t.rect , s = t.sourceRect , n = this._data.images[t.img].getContext("2d"); return t.funct && t.funct(t.source, t.data), n.save(), n.beginPath(), n.rect(i.x, i.y, i.width, i.height), n.clip(), n.translate(Math.ceil(i.x - s.x * e), Math.ceil(i.y - s.y * e)), n.scale(e, e), t.source.draw(n), n.restore(), ++this._index < this._frames.length } , createjs.SpriteSheetBuilder = createjs.promote(t, "EventDispatcher") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.DisplayObject_constructor(), "string" == typeof t && (t = document.getElementById(t)), this.mouseEnabled = !1; var e = t.style; e.position = "absolute", e.transformOrigin = e.WebkitTransformOrigin = e.msTransformOrigin = e.MozTransformOrigin = e.OTransformOrigin = "0% 0%", this.htmlElement = t, this._oldProps = null } var e = createjs.extend(t, createjs.DisplayObject); e.isVisible = function() { return null != this.htmlElement } , e.draw = function(t, e) { return !0 } , e.cache = function() {} , e.uncache = function() {} , e.updateCache = function() {} , e.hitTest = function() {} , e.localToGlobal = function() {} , e.globalToLocal = function() {} , e.localToLocal = function() {} , e.clone = function() { throw "DOMElement cannot be cloned." } , e.toString = function() { return "[DOMElement (name=" + this.name + ")]" } , e._tick = function(t) { var e = this.getStage(); e && e.on("drawend", this._handleDrawEnd, this, !0), this.DisplayObject__tick(t) } , e._handleDrawEnd = function(t) { var e = this.htmlElement; if (e) { var i = e.style , s = this.getConcatenatedDisplayProps(this._props) , n = s.matrix , r = s.visible ? "visible" : "hidden"; if (r != i.visibility && (i.visibility = r), s.visible) { var a = this._oldProps , h = a && a.matrix , o = 1e4; if (!h || !h.equals(n)) { var c = "matrix(" + (n.a * o | 0) / o + "," + (n.b * o | 0) / o + "," + (n.c * o | 0) / o + "," + (n.d * o | 0) / o + "," + (n.tx + .5 | 0); i.transform = i.WebkitTransform = i.OTransform = i.msTransform = c + "," + (n.ty + .5 | 0) + ")", i.MozTransform = c + "px," + (n.ty + .5 | 0) + "px)", a || (a = this._oldProps = new createjs.DisplayProps(!0,NaN)), a.matrix.copy(n) } a.alpha != s.alpha && (i.opacity = "" + (s.alpha * o | 0) / o, a.alpha = s.alpha) } } } , createjs.DOMElement = createjs.promote(t, "DisplayObject") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() {} var e = t.prototype; e.getBounds = function(t) { return t } , e.applyFilter = function(t, e, i, s, n, r, a, h) { r = r || t, null == a && (a = e), null == h && (h = i); try { var o = t.getImageData(e, i, s, n) } catch (t) { return !1 } return !!this._applyFilter(o) && (r.putImageData(o, a, h), !0) } , e.toString = function() { return "[Filter]" } , e.clone = function() { return new t } , e._applyFilter = function(t) { return !0 } , createjs.Filter = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i) { (isNaN(t) || t < 0) && (t = 0), (isNaN(e) || e < 0) && (e = 0), (isNaN(i) || i < 1) && (i = 1), this.blurX = 0 | t, this.blurY = 0 | e, this.quality = 0 | i } var e = createjs.extend(t, createjs.Filter); t.MUL_TABLE = [1, 171, 205, 293, 57, 373, 79, 137, 241, 27, 391, 357, 41, 19, 283, 265, 497, 469, 443, 421, 25, 191, 365, 349, 335, 161, 155, 149, 9, 278, 269, 261, 505, 245, 475, 231, 449, 437, 213, 415, 405, 395, 193, 377, 369, 361, 353, 345, 169, 331, 325, 319, 313, 307, 301, 37, 145, 285, 281, 69, 271, 267, 263, 259, 509, 501, 493, 243, 479, 118, 465, 459, 113, 446, 55, 435, 429, 423, 209, 413, 51, 403, 199, 393, 97, 3, 379, 375, 371, 367, 363, 359, 355, 351, 347, 43, 85, 337, 333, 165, 327, 323, 5, 317, 157, 311, 77, 305, 303, 75, 297, 294, 73, 289, 287, 71, 141, 279, 277, 275, 68, 135, 67, 133, 33, 262, 260, 129, 511, 507, 503, 499, 495, 491, 61, 121, 481, 477, 237, 235, 467, 232, 115, 457, 227, 451, 7, 445, 221, 439, 218, 433, 215, 427, 425, 211, 419, 417, 207, 411, 409, 203, 202, 401, 399, 396, 197, 49, 389, 387, 385, 383, 95, 189, 47, 187, 93, 185, 23, 183, 91, 181, 45, 179, 89, 177, 11, 175, 87, 173, 345, 343, 341, 339, 337, 21, 167, 83, 331, 329, 327, 163, 81, 323, 321, 319, 159, 79, 315, 313, 39, 155, 309, 307, 153, 305, 303, 151, 75, 299, 149, 37, 295, 147, 73, 291, 145, 289, 287, 143, 285, 71, 141, 281, 35, 279, 139, 69, 275, 137, 273, 17, 271, 135, 269, 267, 133, 265, 33, 263, 131, 261, 130, 259, 129, 257, 1], t.SHG_TABLE = [0, 9, 10, 11, 9, 12, 10, 11, 12, 9, 13, 13, 10, 9, 13, 13, 14, 14, 14, 14, 10, 13, 14, 14, 14, 13, 13, 13, 9, 14, 14, 14, 15, 14, 15, 14, 15, 15, 14, 15, 15, 15, 14, 15, 15, 15, 15, 15, 14, 15, 15, 15, 15, 15, 15, 12, 14, 15, 15, 13, 15, 15, 15, 15, 16, 16, 16, 15, 16, 14, 16, 16, 14, 16, 13, 16, 16, 16, 15, 16, 13, 16, 15, 16, 14, 9, 16, 16, 16, 16, 16, 16, 16, 16, 16, 13, 14, 16, 16, 15, 16, 16, 10, 16, 15, 16, 14, 16, 16, 14, 16, 16, 14, 16, 16, 14, 15, 16, 16, 16, 14, 15, 14, 15, 13, 16, 16, 15, 17, 17, 17, 17, 17, 17, 14, 15, 17, 17, 16, 16, 17, 16, 15, 17, 16, 17, 11, 17, 16, 17, 16, 17, 16, 17, 17, 16, 17, 17, 16, 17, 17, 16, 16, 17, 17, 17, 16, 14, 17, 17, 17, 17, 15, 16, 14, 16, 15, 16, 13, 16, 15, 16, 14, 16, 15, 16, 12, 16, 15, 16, 17, 17, 17, 17, 17, 13, 16, 15, 17, 17, 17, 16, 15, 17, 17, 17, 16, 15, 17, 17, 14, 16, 17, 17, 16, 17, 17, 16, 15, 17, 16, 14, 17, 16, 15, 17, 16, 17, 17, 16, 17, 15, 16, 17, 14, 17, 16, 15, 17, 16, 17, 13, 17, 16, 17, 17, 16, 17, 14, 17, 16, 17, 16, 17, 16, 17, 9], e.getBounds = function(t) { var e = 0 | this.blurX , i = 0 | this.blurY; if (e <= 0 && i <= 0) return t; var s = Math.pow(this.quality, .2); return (t || new createjs.Rectangle).pad(e * s + 1, i * s + 1, e * s + 1, i * s + 1) } , e.clone = function() { return new t(this.blurX,this.blurY,this.quality) } , e.toString = function() { return "[BlurFilter]" } , e._applyFilter = function(e) { var i = this.blurX >> 1; if (isNaN(i) || i < 0) return !1; var s = this.blurY >> 1; if (isNaN(s) || s < 0) return !1; if (0 == i && 0 == s) return !1; var n = this.quality; (isNaN(n) || n < 1) && (n = 1), (n |= 0) > 3 && (n = 3), n < 1 && (n = 1); var r = e.data , a = 0 , h = 0 , o = 0 , c = 0 , l = 0 , u = 0 , d = 0 , p = 0 , f = 0 , _ = 0 , m = 0 , g = 0 , v = 0 , w = 0 , x = 0 , y = i + i + 1 | 0 , b = s + s + 1 | 0 , E = 0 | e.width , S = 0 | e.height , j = E - 1 | 0 , T = S - 1 | 0 , M = i + 1 | 0 , D = s + 1 | 0 , C = { r: 0, b: 0, g: 0, a: 0 } , P = C; for (o = 1; o < y; o++) P = P.n = { r: 0, b: 0, g: 0, a: 0 }; P.n = C; var O = { r: 0, b: 0, g: 0, a: 0 } , k = O; for (o = 1; o < b; o++) k = k.n = { r: 0, b: 0, g: 0, a: 0 }; k.n = O; for (var I = null, L = 0 | t.MUL_TABLE[i], F = 0 | t.SHG_TABLE[i], A = 0 | t.MUL_TABLE[s], R = 0 | t.SHG_TABLE[s]; n-- > 0; ) { d = u = 0; var N = L , B = F; for (h = S; --h > -1; ) { for (p = M * (g = r[0 | u]), f = M * (v = r[u + 1 | 0]), _ = M * (w = r[u + 2 | 0]), m = M * (x = r[u + 3 | 0]), P = C, o = M; --o > -1; ) P.r = g, P.g = v, P.b = w, P.a = x, P = P.n; for (o = 1; o < M; o++) c = u + ((j < o ? j : o) << 2) | 0, p += P.r = r[c], f += P.g = r[c + 1], _ += P.b = r[c + 2], m += P.a = r[c + 3], P = P.n; for (I = C, a = 0; a < E; a++) r[u++] = p * N >>> B, r[u++] = f * N >>> B, r[u++] = _ * N >>> B, r[u++] = m * N >>> B, c = d + ((c = a + i + 1) < j ? c : j) << 2, p -= I.r - (I.r = r[c]), f -= I.g - (I.g = r[c + 1]), _ -= I.b - (I.b = r[c + 2]), m -= I.a - (I.a = r[c + 3]), I = I.n; d += E } for (N = A, B = R, a = 0; a < E; a++) { for (p = D * (g = r[u = a << 2 | 0]) | 0, f = D * (v = r[u + 1 | 0]) | 0, _ = D * (w = r[u + 2 | 0]) | 0, m = D * (x = r[u + 3 | 0]) | 0, k = O, o = 0; o < D; o++) k.r = g, k.g = v, k.b = w, k.a = x, k = k.n; for (l = E, o = 1; o <= s; o++) u = l + a << 2, p += k.r = r[u], f += k.g = r[u + 1], _ += k.b = r[u + 2], m += k.a = r[u + 3], k = k.n, o < T && (l += E); if (u = a, I = O, n > 0) for (h = 0; h < S; h++) r[(c = u << 2) + 3] = x = m * N >>> B, x > 0 ? (r[c] = p * N >>> B, r[c + 1] = f * N >>> B, r[c + 2] = _ * N >>> B) : r[c] = r[c + 1] = r[c + 2] = 0, c = a + ((c = h + D) < T ? c : T) * E << 2, p -= I.r - (I.r = r[c]), f -= I.g - (I.g = r[c + 1]), _ -= I.b - (I.b = r[c + 2]), m -= I.a - (I.a = r[c + 3]), I = I.n, u += E; else for (h = 0; h < S; h++) r[(c = u << 2) + 3] = x = m * N >>> B, x > 0 ? (x = 255 / x, r[c] = (p * N >>> B) * x, r[c + 1] = (f * N >>> B) * x, r[c + 2] = (_ * N >>> B) * x) : r[c] = r[c + 1] = r[c + 2] = 0, c = a + ((c = h + D) < T ? c : T) * E << 2, p -= I.r - (I.r = r[c]), f -= I.g - (I.g = r[c + 1]), _ -= I.b - (I.b = r[c + 2]), m -= I.a - (I.a = r[c + 3]), I = I.n, u += E } } return !0 } , createjs.BlurFilter = createjs.promote(t, "Filter") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.alphaMap = t, this._alphaMap = null, this._mapData = null } var e = createjs.extend(t, createjs.Filter); e.clone = function() { var e = new t(this.alphaMap); return e._alphaMap = this._alphaMap, e._mapData = this._mapData, e } , e.toString = function() { return "[AlphaMapFilter]" } , e._applyFilter = function(t) { if (!this.alphaMap) return !0; if (!this._prepAlphaMap()) return !1; for (var e = t.data, i = this._mapData, s = 0, n = e.length; s < n; s += 4) e[s + 3] = i[s] || 0; return !0 } , e._prepAlphaMap = function() { if (!this.alphaMap) return !1; if (this.alphaMap == this._alphaMap && this._mapData) return !0; this._mapData = null; var t, e = this._alphaMap = this.alphaMap, i = e; e instanceof HTMLCanvasElement ? t = i.getContext("2d") : ((i = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas")).width = e.width, i.height = e.height, (t = i.getContext("2d")).drawImage(e, 0, 0)); try { var s = t.getImageData(0, 0, e.width, e.height) } catch (t) { return !1 } return this._mapData = s.data, !0 } , createjs.AlphaMapFilter = createjs.promote(t, "Filter") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.mask = t } var e = createjs.extend(t, createjs.Filter); e.applyFilter = function(t, e, i, s, n, r, a, h) { return !this.mask || (r = r || t, null == a && (a = e), null == h && (h = i), r.save(), t == r && (r.globalCompositeOperation = "destination-in", r.drawImage(this.mask, a, h), r.restore(), !0)) } , e.clone = function() { return new t(this.mask) } , e.toString = function() { return "[AlphaMaskFilter]" } , createjs.AlphaMaskFilter = createjs.promote(t, "Filter") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i, s, n, r, a, h) { this.redMultiplier = null != t ? t : 1, this.greenMultiplier = null != e ? e : 1, this.blueMultiplier = null != i ? i : 1, this.alphaMultiplier = null != s ? s : 1, this.redOffset = n || 0, this.greenOffset = r || 0, this.blueOffset = a || 0, this.alphaOffset = h || 0 } var e = createjs.extend(t, createjs.Filter); e.toString = function() { return "[ColorFilter]" } , e.clone = function() { return new t(this.redMultiplier,this.greenMultiplier,this.blueMultiplier,this.alphaMultiplier,this.redOffset,this.greenOffset,this.blueOffset,this.alphaOffset) } , e._applyFilter = function(t) { for (var e = t.data, i = e.length, s = 0; s < i; s += 4) e[s] = e[s] * this.redMultiplier + this.redOffset, e[s + 1] = e[s + 1] * this.greenMultiplier + this.greenOffset, e[s + 2] = e[s + 2] * this.blueMultiplier + this.blueOffset, e[s + 3] = e[s + 3] * this.alphaMultiplier + this.alphaOffset; return !0 } , createjs.ColorFilter = createjs.promote(t, "Filter") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i, s) { this.setColor(t, e, i, s) } var e = t.prototype; t.DELTA_INDEX = [0, .01, .02, .04, .05, .06, .07, .08, .1, .11, .12, .14, .15, .16, .17, .18, .2, .21, .22, .24, .25, .27, .28, .3, .32, .34, .36, .38, .4, .42, .44, .46, .48, .5, .53, .56, .59, .62, .65, .68, .71, .74, .77, .8, .83, .86, .89, .92, .95, .98, 1, 1.06, 1.12, 1.18, 1.24, 1.3, 1.36, 1.42, 1.48, 1.54, 1.6, 1.66, 1.72, 1.78, 1.84, 1.9, 1.96, 2, 2.12, 2.25, 2.37, 2.5, 2.62, 2.75, 2.87, 3, 3.2, 3.4, 3.6, 3.8, 4, 4.3, 4.7, 4.9, 5, 5.5, 6, 6.5, 6.8, 7, 7.3, 7.5, 7.8, 8, 8.4, 8.7, 9, 9.4, 9.6, 9.8, 10], t.IDENTITY_MATRIX = [1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1], t.LENGTH = t.IDENTITY_MATRIX.length, e.setColor = function(t, e, i, s) { return this.reset().adjustColor(t, e, i, s) } , e.reset = function() { return this.copy(t.IDENTITY_MATRIX) } , e.adjustColor = function(t, e, i, s) { return this.adjustHue(s), this.adjustContrast(e), this.adjustBrightness(t), this.adjustSaturation(i) } , e.adjustBrightness = function(t) { return 0 == t || isNaN(t) ? this : (t = this._cleanValue(t, 255), this._multiplyMatrix([1, 0, 0, 0, t, 0, 1, 0, 0, t, 0, 0, 1, 0, t, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this) } , e.adjustContrast = function(e) { return 0 == e || isNaN(e) ? this : (i = (e = this._cleanValue(e, 100)) < 0 ? 127 + e / 100 * 127 : 127 * (i = 0 == (i = e % 1) ? t.DELTA_INDEX[e] : t.DELTA_INDEX[e << 0] * (1 - i) + t.DELTA_INDEX[1 + (e << 0)] * i) + 127, this._multiplyMatrix([i / 127, 0, 0, 0, .5 * (127 - i), 0, i / 127, 0, 0, .5 * (127 - i), 0, 0, i / 127, 0, .5 * (127 - i), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this); var i } , e.adjustSaturation = function(t) { if (0 == t || isNaN(t)) return this; var e = 1 + ((t = this._cleanValue(t, 100)) > 0 ? 3 * t / 100 : t / 100); return this._multiplyMatrix([.3086 * (1 - e) + e, .6094 * (1 - e), .082 * (1 - e), 0, 0, .3086 * (1 - e), .6094 * (1 - e) + e, .082 * (1 - e), 0, 0, .3086 * (1 - e), .6094 * (1 - e), .082 * (1 - e) + e, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this } , e.adjustHue = function(t) { if (0 == t || isNaN(t)) return this; t = this._cleanValue(t, 180) / 180 * Math.PI; var e = Math.cos(t) , i = Math.sin(t); return this._multiplyMatrix([.213 + .787 * e + -.213 * i, .715 + -.715 * e + -.715 * i, .072 + -.072 * e + .928 * i, 0, 0, .213 + -.213 * e + .143 * i, .715 + e * (1 - .715) + .14 * i, .072 + -.072 * e + -.283 * i, 0, 0, .213 + -.213 * e + -.787 * i, .715 + -.715 * e + .715 * i, .072 + .928 * e + .072 * i, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this } , e.concat = function(e) { return (e = this._fixMatrix(e)).length != t.LENGTH ? this : (this._multiplyMatrix(e), this) } , e.clone = function() { return (new t).copy(this) } , e.toArray = function() { for (var e = [], i = 0, s = t.LENGTH; i < s; i++) e[i] = this[i]; return e } , e.copy = function(e) { for (var i = t.LENGTH, s = 0; s < i; s++) this[s] = e[s]; return this } , e.toString = function() { return "[ColorMatrix]" } , e._multiplyMatrix = function(t) { var e, i, s, n = []; for (e = 0; e < 5; e++) { for (i = 0; i < 5; i++) n[i] = this[i + 5 * e]; for (i = 0; i < 5; i++) { var r = 0; for (s = 0; s < 5; s++) r += t[i + 5 * s] * n[s]; this[i + 5 * e] = r } } } , e._cleanValue = function(t, e) { return Math.min(e, Math.max(-e, t)) } , e._fixMatrix = function(e) { return e instanceof t && (e = e.toArray()), e.length < t.LENGTH ? e = e.slice(0, e.length).concat(t.IDENTITY_MATRIX.slice(e.length, t.LENGTH)) : e.length > t.LENGTH && (e = e.slice(0, t.LENGTH)), e } , createjs.ColorMatrix = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.matrix = t } var e = createjs.extend(t, createjs.Filter); e.toString = function() { return "[ColorMatrixFilter]" } , e.clone = function() { return new t(this.matrix) } , e._applyFilter = function(t) { for (var e, i, s, n, r = t.data, a = r.length, h = this.matrix, o = h[0], c = h[1], l = h[2], u = h[3], d = h[4], p = h[5], f = h[6], _ = h[7], m = h[8], g = h[9], v = h[10], w = h[11], x = h[12], y = h[13], b = h[14], E = h[15], S = h[16], j = h[17], T = h[18], M = h[19], D = 0; D < a; D += 4) e = r[D], i = r[D + 1], s = r[D + 2], n = r[D + 3], r[D] = e * o + i * c + s * l + n * u + d, r[D + 1] = e * p + i * f + s * _ + n * m + g, r[D + 2] = e * v + i * w + s * x + n * y + b, r[D + 3] = e * E + i * S + s * j + n * T + M; return !0 } , createjs.ColorMatrixFilter = createjs.promote(t, "Filter") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "Touch cannot be instantiated" } t.isSupported = function() { return !!("ontouchstart"in window || window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 0 || window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 0) } , t.enable = function(e, i, s) { return !!(e && e.canvas && t.isSupported()) && (!!e.__touch || (e.__touch = { pointers: {}, multitouch: !i, preventDefault: !s, count: 0 }, "ontouchstart"in window ? t._IOS_enable(e) : (window.navigator.msPointerEnabled || window.navigator.pointerEnabled) && t._IE_enable(e), !0)) } , t.disable = function(e) { e && ("ontouchstart"in window ? t._IOS_disable(e) : (window.navigator.msPointerEnabled || window.navigator.pointerEnabled) && t._IE_disable(e), delete e.__touch) } , t._IOS_enable = function(e) { var i = e.canvas , s = e.__touch.f = function(i) { t._IOS_handleEvent(e, i) } ; i.addEventListener("touchstart", s, !1), i.addEventListener("touchmove", s, !1), i.addEventListener("touchend", s, !1), i.addEventListener("touchcancel", s, !1) } , t._IOS_disable = function(t) { var e = t.canvas; if (e) { var i = t.__touch.f; e.removeEventListener("touchstart", i, !1), e.removeEventListener("touchmove", i, !1), e.removeEventListener("touchend", i, !1), e.removeEventListener("touchcancel", i, !1) } } , t._IOS_handleEvent = function(t, e) { if (t) { t.__touch.preventDefault && e.preventDefault && e.preventDefault(); for (var i = e.changedTouches, s = e.type, n = 0, r = i.length; n < r; n++) { var a = i[n] , h = a.identifier; a.target == t.canvas && ("touchstart" == s ? this._handleStart(t, h, e, a.pageX, a.pageY) : "touchmove" == s ? this._handleMove(t, h, e, a.pageX, a.pageY) : "touchend" != s && "touchcancel" != s || this._handleEnd(t, h, e)) } } } , t._IE_enable = function(e) { var i = e.canvas , s = e.__touch.f = function(i) { t._IE_handleEvent(e, i) } ; void 0 === window.navigator.pointerEnabled ? (i.addEventListener("MSPointerDown", s, !1), window.addEventListener("MSPointerMove", s, !1), window.addEventListener("MSPointerUp", s, !1), window.addEventListener("MSPointerCancel", s, !1), e.__touch.preventDefault && (i.style.msTouchAction = "none")) : (i.addEventListener("pointerdown", s, !1), window.addEventListener("pointermove", s, !1), window.addEventListener("pointerup", s, !1), window.addEventListener("pointercancel", s, !1), e.__touch.preventDefault && (i.style.touchAction = "none")), e.__touch.activeIDs = {} } , t._IE_disable = function(t) { var e = t.__touch.f; void 0 === window.navigator.pointerEnabled ? (window.removeEventListener("MSPointerMove", e, !1), window.removeEventListener("MSPointerUp", e, !1), window.removeEventListener("MSPointerCancel", e, !1), t.canvas && t.canvas.removeEventListener("MSPointerDown", e, !1)) : (window.removeEventListener("pointermove", e, !1), window.removeEventListener("pointerup", e, !1), window.removeEventListener("pointercancel", e, !1), t.canvas && t.canvas.removeEventListener("pointerdown", e, !1)) } , t._IE_handleEvent = function(t, e) { if (t) { t.__touch.preventDefault && e.preventDefault && e.preventDefault(); var i = e.type , s = e.pointerId , n = t.__touch.activeIDs; if ("MSPointerDown" == i || "pointerdown" == i) { if (e.srcElement != t.canvas) return; n[s] = !0, this._handleStart(t, s, e, e.pageX, e.pageY) } else n[s] && ("MSPointerMove" == i || "pointermove" == i ? this._handleMove(t, s, e, e.pageX, e.pageY) : "MSPointerUp" != i && "MSPointerCancel" != i && "pointerup" != i && "pointercancel" != i || (delete n[s], this._handleEnd(t, s, e))) } } , t._handleStart = function(t, e, i, s, n) { var r = t.__touch; if (r.multitouch || !r.count) { var a = r.pointers; a[e] || (a[e] = !0, r.count++, t._handlePointerDown(e, i, s, n)) } } , t._handleMove = function(t, e, i, s, n) { t.__touch.pointers[e] && t._handlePointerMove(e, i, s, n) } , t._handleEnd = function(t, e, i) { var s = t.__touch , n = s.pointers; n[e] && (s.count--, t._handlePointerUp(e, i, !0), delete n[e]) } , createjs.Touch = t }(), this.createjs = this.createjs || {}, function() { "use strict"; var t = createjs.EaselJS = createjs.EaselJS || {}; t.version = "NEXT", t.buildDate = "Tue, 17 Nov 2015 21:54:18 GMT" }(); this.createjs = this.createjs || {}, function() { "use strict"; var e = createjs.PreloadJS = createjs.PreloadJS || {}; e.version = "NEXT", e.buildDate = "Wed, 30 Nov 2016 20:56:14 GMT" }(), this.createjs = this.createjs || {}, createjs.extend = function(e, t) { "use strict"; function s() { this.constructor = e } return s.prototype = t.prototype, e.prototype = new s } , this.createjs = this.createjs || {}, createjs.promote = function(e, t) { "use strict"; var s = e.prototype , r = Object.getPrototypeOf && Object.getPrototypeOf(s) || s.__proto__; if (r) for (var a in s[(t += "_") + "constructor"] = r.constructor, r) s.hasOwnProperty(a) && "function" == typeof r[a] && (s[t + a] = r[a]); return e } , this.createjs = this.createjs || {}, function() { "use strict"; createjs.proxy = function(e, t) { var s = Array.prototype.slice.call(arguments, 2); return function() { return e.apply(t, Array.prototype.slice.call(arguments, 0).concat(s)) } } }(), this.createjs = this.createjs || {}, createjs.indexOf = function(e, t) { "use strict"; for (var s = 0, r = e.length; s < r; s++) if (t === e[s]) return s; return -1 } , this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t, s) { this.type = e, this.target = null, this.currentTarget = null, this.eventPhase = 0, this.bubbles = !!t, this.cancelable = !!s, this.timeStamp = (new Date).getTime(), this.defaultPrevented = !1, this.propagationStopped = !1, this.immediatePropagationStopped = !1, this.removed = !1 } var t = e.prototype; t.preventDefault = function() { this.defaultPrevented = this.cancelable && !0 } , t.stopPropagation = function() { this.propagationStopped = !0 } , t.stopImmediatePropagation = function() { this.immediatePropagationStopped = this.propagationStopped = !0 } , t.remove = function() { this.removed = !0 } , t.clone = function() { return new e(this.type,this.bubbles,this.cancelable) } , t.set = function(e) { for (var t in e) this[t] = e[t]; return this } , t.toString = function() { return "[Event (type=" + this.type + ")]" } , createjs.Event = e }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t, s) { this.Event_constructor("error"), this.title = e, this.message = t, this.data = s } createjs.extend(e, createjs.Event).clone = function() { return new createjs.ErrorEvent(this.title,this.message,this.data) } , createjs.ErrorEvent = createjs.promote(e, "Event") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e() { this._listeners = null, this._captureListeners = null } var t = e.prototype; e.initialize = function(e) { e.addEventListener = t.addEventListener, e.on = t.on, e.removeEventListener = e.off = t.removeEventListener, e.removeAllEventListeners = t.removeAllEventListeners, e.hasEventListener = t.hasEventListener, e.dispatchEvent = t.dispatchEvent, e._dispatchEvent = t._dispatchEvent, e.willTrigger = t.willTrigger } , t.addEventListener = function(e, t, s) { var r, a = (r = s ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {})[e]; return a && this.removeEventListener(e, t, s), (a = r[e]) ? a.push(t) : r[e] = [t], t } , t.on = function(e, t, s, r, a, i) { return t.handleEvent && (s = s || t, t = t.handleEvent), s = s || this, this.addEventListener(e, function(e) { t.call(s, e, a), r && e.remove() }, i) } , t.removeEventListener = function(e, t, s) { var r = s ? this._captureListeners : this._listeners; if (r) { var a = r[e]; if (a) for (var i = 0, n = a.length; i < n; i++) if (a[i] == t) { 1 == n ? delete r[e] : a.splice(i, 1); break } } } , t.off = t.removeEventListener, t.removeAllEventListeners = function(e) { e ? (this._listeners && delete this._listeners[e], this._captureListeners && delete this._captureListeners[e]) : this._listeners = this._captureListeners = null } , t.dispatchEvent = function(e, t, s) { if ("string" == typeof e) { var r = this._listeners; if (!(t || r && r[e])) return !0; e = new createjs.Event(e,t,s) } else e.target && e.clone && (e = e.clone()); try { e.target = this } catch (e) {} if (e.bubbles && this.parent) { for (var a = this, i = [a]; a.parent; ) i.push(a = a.parent); var n, o = i.length; for (n = o - 1; n >= 0 && !e.propagationStopped; n--) i[n]._dispatchEvent(e, 1 + (0 == n)); for (n = 1; n < o && !e.propagationStopped; n++) i[n]._dispatchEvent(e, 3) } else this._dispatchEvent(e, 2); return !e.defaultPrevented } , t.hasEventListener = function(e) { var t = this._listeners , s = this._captureListeners; return !!(t && t[e] || s && s[e]) } , t.willTrigger = function(e) { for (var t = this; t; ) { if (t.hasEventListener(e)) return !0; t = t.parent } return !1 } , t.toString = function() { return "[EventDispatcher]" } , t._dispatchEvent = function(e, t) { var s, r = 1 == t ? this._captureListeners : this._listeners; if (e && r) { var a = r[e.type]; if (!a || !(s = a.length)) return; try { e.currentTarget = this } catch (e) {} try { e.eventPhase = t } catch (e) {} e.removed = !1, a = a.slice(); for (var i = 0; i < s && !e.immediatePropagationStopped; i++) { var n = a[i]; n.handleEvent ? n.handleEvent(e) : n(e), e.removed && (this.off(e.type, n, 1 == t), e.removed = !1) } } } , createjs.EventDispatcher = e }(), this.createjs = this.createjs || {}, function(e) { "use strict"; function t(e, t) { this.Event_constructor("progress"), this.loaded = e, this.total = null == t ? 1 : t, this.progress = 0 == t ? 0 : this.loaded / this.total } createjs.extend(t, createjs.Event).clone = function() { return new createjs.ProgressEvent(this.loaded,this.total) } , createjs.ProgressEvent = createjs.promote(t, "Event") }(window), function() { var e = "function" == typeof define && define.amd , t = { function: !0, object: !0 } , s = t[typeof exports] && exports && !exports.nodeType && exports , r = t[typeof window] && window || this , a = s && t[typeof module] && module && !module.nodeType && "object" == typeof global && global; function i(e, s) { e || (e = r.Object()), s || (s = r.Object()); var a = e.Number || r.Number , n = e.String || r.String , o = e.Object || r.Object , c = e.Date || r.Date , l = e.SyntaxError || r.SyntaxError , h = e.TypeError || r.TypeError , u = e.Math || r.Math , d = e.JSON || r.JSON; "object" == typeof d && d && (s.stringify = d.stringify, s.parse = d.parse); var _, f, p, m = o.prototype, g = m.toString, v = new c(-0xc782b5b800cec); try { v = -109252 == v.getUTCFullYear() && 0 === v.getUTCMonth() && 1 === v.getUTCDate() && 10 == v.getUTCHours() && 37 == v.getUTCMinutes() && 6 == v.getUTCSeconds() && 708 == v.getUTCMilliseconds() } catch (e) {} function j(e) { if (j[e] !== p) return j[e]; var t; if ("bug-string-char-index" == e) t = "a" != "a"[0]; else if ("json" == e) t = j("json-stringify") && j("json-parse"); else { var r, i = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}'; if ("json-stringify" == e) { var o = s.stringify , l = "function" == typeof o && v; if (l) { (r = function() { return 1 } ).toJSON = r; try { l = "0" === o(0) && "0" === o(new a) && '""' == o(new n) && o(g) === p && o(p) === p && o() === p && "1" === o(r) && "[1]" == o([r]) && "[null]" == o([p]) && "null" == o(null) && "[null,null,null]" == o([p, g, null]) && o({ a: [r, !0, !1, null, "\0\b\n\f\r\t"] }) == i && "1" === o(null, r) && "[\n 1,\n 2\n]" == o([1, 2], null, 1) && '"-271821-04-20T00:00:00.000Z"' == o(new c(-864e13)) && '"+275760-09-13T00:00:00.000Z"' == o(new c(864e13)) && '"-000001-01-01T00:00:00.000Z"' == o(new c(-621987552e5)) && '"1969-12-31T23:59:59.999Z"' == o(new c(-1)) } catch (e) { l = !1 } } t = l } if ("json-parse" == e) { var h = s.parse; if ("function" == typeof h) try { if (0 === h("0") && !h(!1)) { var u = 5 == (r = h(i)).a.length && 1 === r.a[0]; if (u) { try { u = !h('"\t"') } catch (e) {} if (u) try { u = 1 !== h("01") } catch (e) {} if (u) try { u = 1 !== h("1.") } catch (e) {} } } } catch (e) { u = !1 } t = u } } return j[e] = !!t } if (!j("json")) { var L = j("bug-string-char-index"); if (!v) var E = u.floor , y = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334] , T = function(e, t) { return y[t] + 365 * (e - 1970) + E((e - 1969 + (t = +(t > 1))) / 4) - E((e - 1901 + t) / 100) + E((e - 1601 + t) / 400) }; if ((_ = m.hasOwnProperty) || (_ = function(e) { var t, s = {}; return (s.__proto__ = null, s.__proto__ = { toString: 1 }, s).toString != g ? _ = function(e) { var t = this.__proto__ , s = e in (this.__proto__ = null, this); return this.__proto__ = t, s } : (t = s.constructor, _ = function(e) { var s = (this.constructor || t).prototype; return e in this && !(e in s && this[e] === s[e]) } ), s = null, _.call(this, e) } ), f = function(e, s) { var r, a, i, n = 0; for (i in (r = function() { this.valueOf = 0 } ).prototype.valueOf = 0, a = new r) _.call(a, i) && n++; return r = a = null, n ? f = 2 == n ? function(e, t) { var s, r = {}, a = "[object Function]" == g.call(e); for (s in e) a && "prototype" == s || _.call(r, s) || !(r[s] = 1) || !_.call(e, s) || t(s) } : function(e, t) { var s, r, a = "[object Function]" == g.call(e); for (s in e) a && "prototype" == s || !_.call(e, s) || (r = "constructor" === s) || t(s); (r || _.call(e, s = "constructor")) && t(s) } : (a = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], f = function(e, s) { var r, i, n = "[object Function]" == g.call(e), o = !n && "function" != typeof e.constructor && t[typeof e.hasOwnProperty] && e.hasOwnProperty || _; for (r in e) n && "prototype" == r || !o.call(e, r) || s(r); for (i = a.length; r = a[--i]; o.call(e, r) && s(r)) ; } ), f(e, s) } , !j("json-stringify")) { var S = { 92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t" } , b = function(e, t) { return ("000000" + (t || 0)).slice(-e) } , A = function(e) { for (var t = '"', s = 0, r = e.length, a = !L || r > 10, i = a && (L ? e.split("") : e); s < r; s++) { var n = e.charCodeAt(s); switch (n) { case 8: case 9: case 10: case 12: case 13: case 34: case 92: t += S[n]; break; default: if (n < 32) { t += "\\u00" + b(2, n.toString(16)); break } t += a ? i[s] : e.charAt(s) } } return t + '"' } , R = function(e, t, s, r, a, i, n) { var o, c, l, u, d, m, v, j, L, y, S, w, I, O, P, x; try { o = t[e] } catch (e) {} if ("object" == typeof o && o) if ("[object Date]" != (c = g.call(o)) || _.call(o, "toJSON")) "function" == typeof o.toJSON && ("[object Number]" != c && "[object String]" != c && "[object Array]" != c || _.call(o, "toJSON")) && (o = o.toJSON(e)); else if (o > -1 / 0 && o < 1 / 0) { if (T) { for (d = E(o / 864e5), l = E(d / 365.2425) + 1970 - 1; T(l + 1, 0) <= d; l++) ; for (u = E((d - T(l, 0)) / 30.42); T(l, u + 1) <= d; u++) ; d = 1 + d - T(l, u), v = E((m = (o % 864e5 + 864e5) % 864e5) / 36e5) % 24, j = E(m / 6e4) % 60, L = E(m / 1e3) % 60, y = m % 1e3 } else l = o.getUTCFullYear(), u = o.getUTCMonth(), d = o.getUTCDate(), v = o.getUTCHours(), j = o.getUTCMinutes(), L = o.getUTCSeconds(), y = o.getUTCMilliseconds(); o = (l <= 0 || l >= 1e4 ? (l < 0 ? "-" : "+") + b(6, l < 0 ? -l : l) : b(4, l)) + "-" + b(2, u + 1) + "-" + b(2, d) + "T" + b(2, v) + ":" + b(2, j) + ":" + b(2, L) + "." + b(3, y) + "Z" } else o = null; if (s && (o = s.call(t, e, o)), null === o) return "null"; if ("[object Boolean]" == (c = g.call(o))) return "" + o; if ("[object Number]" == c) return o > -1 / 0 && o < 1 / 0 ? "" + o : "null"; if ("[object String]" == c) return A("" + o); if ("object" == typeof o) { for (O = n.length; O--; ) if (n[O] === o) throw h(); if (n.push(o), S = [], P = i, i += a, "[object Array]" == c) { for (I = 0, O = o.length; I < O; I++) w = R(I, o, s, r, a, i, n), S.push(w === p ? "null" : w); x = S.length ? a ? "[\n" + i + S.join(",\n" + i) + "\n" + P + "]" : "[" + S.join(",") + "]" : "[]" } else f(r || o, function(e) { var t = R(e, o, s, r, a, i, n); t !== p && S.push(A(e) + ":" + (a ? " " : "") + t) }), x = S.length ? a ? "{\n" + i + S.join(",\n" + i) + "\n" + P + "}" : "{" + S.join(",") + "}" : "{}"; return n.pop(), x } }; s.stringify = function(e, s, r) { var a, i, n, o; if (t[typeof s] && s) if ("[object Function]" == (o = g.call(s))) i = s; else if ("[object Array]" == o) { n = {}; for (var c, l = 0, h = s.length; l < h; c = s[l++], ("[object String]" == (o = g.call(c)) || "[object Number]" == o) && (n[c] = 1)) ; } if (r) if ("[object Number]" == (o = g.call(r))) { if ((r -= r % 1) > 0) for (a = "", r > 10 && (r = 10); a.length < r; a += " ") ; } else "[object String]" == o && (a = r.length <= 10 ? r : r.slice(0, 10)); return R("", ((c = {})[""] = e, c), i, n, a, "", []) } } if (!j("json-parse")) { var w, I, O = n.fromCharCode, P = { 92: "\\", 34: '"', 47: "/", 98: "\b", 116: "\t", 110: "\n", 102: "\f", 114: "\r" }, x = function() { throw w = I = null, l() }, C = function() { for (var e, t, s, r, a, i = I, n = i.length; w < n; ) switch (a = i.charCodeAt(w)) { case 9: case 10: case 13: case 32: w++; break; case 123: case 125: case 91: case 93: case 58: case 44: return e = L ? i.charAt(w) : i[w], w++, e; case 34: for (e = "@", w++; w < n; ) if ((a = i.charCodeAt(w)) < 32) x(); else if (92 == a) switch (a = i.charCodeAt(++w)) { case 92: case 34: case 47: case 98: case 116: case 110: case 102: case 114: e += P[a], w++; break; case 117: for (t = ++w, s = w + 4; w < s; w++) (a = i.charCodeAt(w)) >= 48 && a <= 57 || a >= 97 && a <= 102 || a >= 65 && a <= 70 || x(); e += O("0x" + i.slice(t, w)); break; default: x() } else { if (34 == a) break; for (a = i.charCodeAt(w), t = w; a >= 32 && 92 != a && 34 != a; ) a = i.charCodeAt(++w); e += i.slice(t, w) } if (34 == i.charCodeAt(w)) return w++, e; x(); default: if (t = w, 45 == a && (r = !0, a = i.charCodeAt(++w)), a >= 48 && a <= 57) { for (48 == a && ((a = i.charCodeAt(w + 1)) >= 48 && a <= 57) && x(), r = !1; w < n && ((a = i.charCodeAt(w)) >= 48 && a <= 57); w++) ; if (46 == i.charCodeAt(w)) { for (s = ++w; s < n && ((a = i.charCodeAt(s)) >= 48 && a <= 57); s++) ; s == w && x(), w = s } if (101 == (a = i.charCodeAt(w)) || 69 == a) { for (43 != (a = i.charCodeAt(++w)) && 45 != a || w++, s = w; s < n && ((a = i.charCodeAt(s)) >= 48 && a <= 57); s++) ; s == w && x(), w = s } return +i.slice(t, w) } if (r && x(), "true" == i.slice(w, w + 4)) return w += 4, !0; if ("false" == i.slice(w, w + 5)) return w += 5, !1; if ("null" == i.slice(w, w + 4)) return w += 4, null; x() } return "$" }, M = function(e) { var t, s; if ("$" == e && x(), "string" == typeof e) { if ("@" == (L ? e.charAt(0) : e[0])) return e.slice(1); if ("[" == e) { for (t = []; "]" != (e = C()); s || (s = !0)) s && ("," == e ? "]" == (e = C()) && x() : x()), "," == e && x(), t.push(M(e)); return t } if ("{" == e) { for (t = {}; "}" != (e = C()); s || (s = !0)) s && ("," == e ? "}" == (e = C()) && x() : x()), "," != e && "string" == typeof e && "@" == (L ? e.charAt(0) : e[0]) && ":" == C() || x(), t[e.slice(1)] = M(C()); return t } x() } return e }, N = function(e, t, s) { var r = F(e, t, s); r === p ? delete e[t] : e[t] = r }, F = function(e, t, s) { var r, a = e[t]; if ("object" == typeof a && a) if ("[object Array]" == g.call(a)) for (r = a.length; r--; ) N(a, r, s); else f(a, function(e) { N(a, e, s) }); return s.call(e, t, a) }; s.parse = function(e, t) { var s, r; return w = 0, I = "" + e, s = M(C()), "$" != C() && x(), w = I = null, t && "[object Function]" == g.call(t) ? F(((r = {})[""] = s, r), "", t) : s } } } return s.runInContext = i, s } if (!a || a.global !== a && a.window !== a && a.self !== a || (r = a), s && !e) i(r, s); else { var n = r.JSON , o = r.JSON3 , c = !1 , l = i(r, r.JSON3 = { noConflict: function() { return c || (c = !0, r.JSON = n, r.JSON3 = o, n = o = null), l } }); r.JSON = { parse: l.parse, stringify: l.stringify } } e && define(function() { return l }) } .call(this), function() { var e = { a: function() { return e.el("a") }, svg: function() { return e.el("svg") }, object: function() { return e.el("object") }, image: function() { return e.el("image") }, img: function() { return e.el("img") }, style: function() { return e.el("style") }, link: function() { return e.el("link") }, script: function() { return e.el("script") }, audio: function() { return e.el("audio") }, video: function() { return e.el("video") }, text: function(e) { return document.createTextNode(e) }, el: function(e) { return document.createElement(e) } }; createjs.Elements = e }(), function() { var e = { ABSOLUTE_PATT: /^(?:\w+:)?\/{2}/i, RELATIVE_PATT: /^[./]*?\//i, EXTENSION_PATT: /\/?[^/]+\.(\w{1,5})$/i, parseURI: function(t) { var s = { absolute: !1, relative: !1, protocol: null, hostname: null, port: null, pathname: null, search: null, hash: null, host: null }; if (null == t) return s; var r = createjs.Elements.a(); for (var a in r.href = t, s) a in r && (s[a] = r[a]); var i, n = t.indexOf("?"); return n > -1 && (t = t.substr(0, n)), e.ABSOLUTE_PATT.test(t) ? s.absolute = !0 : e.RELATIVE_PATT.test(t) && (s.relative = !0), (i = t.match(e.EXTENSION_PATT)) && (s.extension = i[1].toLowerCase()), s }, formatQueryString: function(e, t) { if (null == e) throw new Error("You must specify data."); var s = []; for (var r in e) s.push(r + "=" + escape(e[r])); return t && (s = s.concat(t)), s.join("&") }, buildURI: function(e, t) { if (null == t) return e; var s = [] , r = e.indexOf("?"); if (-1 != r) { var a = e.slice(r + 1); s = s.concat(a.split("&")) } return -1 != r ? e.slice(0, r) + "?" + this.formatQueryString(t, s) : e + "?" + this.formatQueryString(t, s) }, isCrossDomain: function(e) { var t = createjs.Elements.a(); t.href = e.src; var s = createjs.Elements.a(); return s.href = location.href, "" != t.hostname && (t.port != s.port || t.protocol != s.protocol || t.hostname != s.hostname) }, isLocal: function(e) { var t = createjs.Elements.a(); return t.href = e.src, "" == t.hostname && "file:" == t.protocol } }; createjs.URLUtils = e }(), function() { var e = { container: null, appendToHead: function(t) { e.getHead().appendChild(t) }, appendToBody: function(t) { null == e.container && (e.container = document.createElement("div"), e.container.id = "preloadjs-container", e.container.style.visibility = "hidden", e.container.style.position = "absolute", e.container.style.width = e.container.style.height = "10px", e.container.style.transform = e.container.style.msTransform = e.container.style.webkitTransform = e.container.style.oTransform = "translate(-10px, -10px)", e.getBody().appendChild(e.container)), e.container.appendChild(t) }, getHead: function() { return document.head || document.getElementsByTagName("head")[0] }, getBody: function() { return document.body || document.getElementsByTagName("body")[0] }, removeChild: function(e) { e.parent && e.parent.removeChild(e) }, isImageTag: function(e) { return e instanceof HTMLImageElement }, isAudioTag: function(e) { return !!window.HTMLAudioElement && e instanceof HTMLAudioElement }, isVideoTag: function(e) { return !!window.HTMLVideoElement && e instanceof HTMLVideoElement } }; createjs.DomUtils = e }(), function() { var e = { parseXML: function(e) { var t = null; try { if (window.DOMParser) t = (new DOMParser).parseFromString(e, "text/xml") } catch (e) {} if (!t) try { (t = new ActiveXObject("Microsoft.XMLDOM")).async = !1, t.loadXML(e) } catch (e) { t = null } return t }, parseJSON: function(e) { if (null == e) return null; try { return JSON.parse(e) } catch (e) { throw e } } }; createjs.DataUtils = e }(), this.createjs = this.createjs || {}, function() { var e = { BINARY: "binary", CSS: "css", FONT: "font", FONTCSS: "fontcss", IMAGE: "image", JAVASCRIPT: "javascript", JSON: "json", JSONP: "jsonp", MANIFEST: "manifest", SOUND: "sound", VIDEO: "video", SPRITESHEET: "spritesheet", SVG: "svg", TEXT: "text", XML: "xml" }; createjs.Types = e }(), this.createjs = this.createjs || {}, function() { var e = { POST: "POST", GET: "GET" }; createjs.Methods = e }(), this.createjs = this.createjs || {}, function() { "use strict"; function e() { this.src = null, this.type = null, this.id = null, this.maintainOrder = !1, this.callback = null, this.data = null, this.method = createjs.LoadItem.GET, this.values = null, this.headers = null, this.withCredentials = !1, this.mimeType = null, this.crossOrigin = null, this.loadTimeout = s.LOAD_TIMEOUT_DEFAULT } var t = e.prototype = {} , s = e; s.LOAD_TIMEOUT_DEFAULT = 8e3, s.create = function(t) { if ("string" == typeof t) { var r = new e; return r.src = t, r } if (t instanceof s) return t; if (t instanceof Object && t.src) return null == t.loadTimeout && (t.loadTimeout = s.LOAD_TIMEOUT_DEFAULT), t; throw new Error("Type not recognized.") } , t.set = function(e) { for (var t in e) this[t] = e[t]; return this } , createjs.LoadItem = s }(), function() { var e = { isBinary: function(e) { switch (e) { case createjs.AbstractLoader.IMAGE: case createjs.AbstractLoader.BINARY: return !0; default: return !1 } }, isText: function(e) { switch (e) { case createjs.AbstractLoader.TEXT: case createjs.AbstractLoader.JSON: case createjs.AbstractLoader.MANIFEST: case createjs.AbstractLoader.XML: case createjs.AbstractLoader.CSS: case createjs.AbstractLoader.SVG: case createjs.AbstractLoader.JAVASCRIPT: case createjs.AbstractLoader.SPRITESHEET: return !0; default: return !1 } }, getTypeByExtension: function(e) { if (null == e) return createjs.AbstractLoader.TEXT; switch (e.toLowerCase()) { case "jpeg": case "jpg": case "gif": case "png": case "webp": case "bmp": return createjs.AbstractLoader.IMAGE; case "ogg": case "mp3": case "webm": return createjs.AbstractLoader.SOUND; case "mp4": case "webm": case "ts": return createjs.AbstractLoader.VIDEO; case "json": return createjs.AbstractLoader.JSON; case "xml": return createjs.AbstractLoader.XML; case "css": return createjs.AbstractLoader.CSS; case "js": return createjs.AbstractLoader.JAVASCRIPT; case "svg": return createjs.AbstractLoader.SVG; default: return createjs.AbstractLoader.TEXT } } }; createjs.RequestUtils = e }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t, s) { this.EventDispatcher_constructor(), this.loaded = !1, this.canceled = !1, this.progress = 0, this.type = s, this.resultFormatter = null, this._item = e ? createjs.LoadItem.create(e) : null, this._preferXHR = t, this._result = null, this._rawResult = null, this._loadedItems = null, this._tagSrcAttribute = null, this._tag = null } var t = createjs.extend(e, createjs.EventDispatcher) , s = e; s.POST = createjs.Methods.POST, s.GET = createjs.Methods.GET, s.BINARY = createjs.Types.BINARY, s.CSS = createjs.Types.CSS, s.FONT = createjs.Types.FONT, s.FONTCSS = createjs.Types.FONTCSS, s.IMAGE = createjs.Types.IMAGE, s.JAVASCRIPT = createjs.Types.JAVASCRIPT, s.JSON = createjs.Types.JSON, s.JSONP = createjs.Types.JSONP, s.MANIFEST = "manifest", s.SOUND = createjs.Types.SOUND, s.VIDEO = createjs.Types.VIDEO, s.SPRITESHEET = createjs.Types.SPRITESHEET, s.SVG = createjs.Types.SVG, s.TEXT = createjs.Types.TEXT, s.XML = createjs.Types.XML, t.getItem = function() { return this._item } , t.getResult = function(e) { return e ? this._rawResult : this._result } , t.getTag = function() { return this._tag } , t.setTag = function(e) { this._tag = e } , t.load = function() { this._createRequest(), this._request.on("complete", this, this), this._request.on("progress", this, this), this._request.on("loadStart", this, this), this._request.on("abort", this, this), this._request.on("timeout", this, this), this._request.on("error", this, this); var e = new createjs.Event("initialize"); e.loader = this._request, this.dispatchEvent(e), this._request.load() } , t.cancel = function() { this.canceled = !0, this.destroy() } , t.destroy = function() { this._request && (this._request.removeAllEventListeners(), this._request.destroy()), this._request = null, this._item = null, this._rawResult = null, this._result = null, this._loadItems = null, this.removeAllEventListeners() } , t.getLoadedItems = function() { return this._loadedItems } , t._createRequest = function() { this._preferXHR ? this._request = new createjs.XHRRequest(this._item) : this._request = new createjs.TagRequest(this._item,this._tag || this._createTag(),this._tagSrcAttribute) } , t._createTag = function(e) { return null } , t._sendLoadStart = function() { this._isCanceled() || this.dispatchEvent("loadstart") } , t._sendProgress = function(e) { if (!this._isCanceled()) { var t = null; "number" == typeof e ? (this.progress = e, t = new createjs.ProgressEvent(this.progress)) : (t = e, this.progress = e.loaded / e.total, t.progress = this.progress, (isNaN(this.progress) || this.progress == 1 / 0) && (this.progress = 0)), this.hasEventListener("progress") && this.dispatchEvent(t) } } , t._sendComplete = function() { if (!this._isCanceled()) { this.loaded = !0; var e = new createjs.Event("complete"); e.rawResult = this._rawResult, null != this._result && (e.result = this._result), this.dispatchEvent(e) } } , t._sendError = function(e) { !this._isCanceled() && this.hasEventListener("error") && (null == e && (e = new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")), this.dispatchEvent(e)) } , t._isCanceled = function() { return !(null != window.createjs && !this.canceled) } , t.resultFormatter = null, t.handleEvent = function(e) { switch (e.type) { case "complete": this._rawResult = e.target._response; var t = this.resultFormatter && this.resultFormatter(this); t instanceof Function ? t.call(this, createjs.proxy(this._resultFormatSuccess, this), createjs.proxy(this._resultFormatFailed, this)) : (this._result = t || this._rawResult, this._sendComplete()); break; case "progress": this._sendProgress(e); break; case "error": this._sendError(e); break; case "loadstart": this._sendLoadStart(); break; case "abort": case "timeout": this._isCanceled() || this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_" + e.type.toUpperCase() + "_ERROR")) } } , t._resultFormatSuccess = function(e) { this._result = e, this._sendComplete() } , t._resultFormatFailed = function(e) { this._sendError(e) } , t.buildPath = function(e, t) { return createjs.URLUtils.buildURI(e, t) } , t.toString = function() { return "[PreloadJS AbstractLoader]" } , createjs.AbstractLoader = createjs.promote(e, "EventDispatcher") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t, s) { this.AbstractLoader_constructor(e, t, s), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "src", this.on("initialize", this._updateXHR, this) } var t = createjs.extend(e, createjs.AbstractLoader); t.load = function() { this._tag || (this._tag = this._createTag(this._item.src)), this._tag.preload = "auto", this._tag.load(), this.AbstractLoader_load() } , t._createTag = function() {} , t._createRequest = function() { this._preferXHR ? this._request = new createjs.XHRRequest(this._item) : this._request = new createjs.MediaTagRequest(this._item,this._tag || this._createTag(),this._tagSrcAttribute) } , t._updateXHR = function(e) { e.loader.setResponseType && e.loader.setResponseType("blob") } , t._formatResult = function(e) { if (this._tag.removeEventListener && this._tag.removeEventListener("canplaythrough", this._loadedHandler), this._tag.onstalled = null, this._preferXHR) { var t = window.URL || window.webkitURL , s = e.getResult(!0); e.getTag().src = t.createObjectURL(s) } return e.getTag() } , createjs.AbstractMediaLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; var e = function(e) { this._item = e } , t = createjs.extend(e, createjs.EventDispatcher); t.load = function() {} , t.destroy = function() {} , t.cancel = function() {} , createjs.AbstractRequest = createjs.promote(e, "EventDispatcher") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t, s) { this.AbstractRequest_constructor(e), this._tag = t, this._tagSrcAttribute = s, this._loadedHandler = createjs.proxy(this._handleTagComplete, this), this._addedToDOM = !1 } var t = createjs.extend(e, createjs.AbstractRequest); t.load = function() { this._tag.onload = createjs.proxy(this._handleTagComplete, this), this._tag.onreadystatechange = createjs.proxy(this._handleReadyStateChange, this), this._tag.onerror = createjs.proxy(this._handleError, this); var e = new createjs.Event("initialize"); e.loader = this._tag, this.dispatchEvent(e), this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), this._item.loadTimeout), this._tag[this._tagSrcAttribute] = this._item.src, null == this._tag.parentNode && (createjs.DomUtils.appendToBody(this._tag), this._addedToDOM = !0) } , t.destroy = function() { this._clean(), this._tag = null, this.AbstractRequest_destroy() } , t._handleReadyStateChange = function() { clearTimeout(this._loadTimeout); var e = this._tag; "loaded" != e.readyState && "complete" != e.readyState || this._handleTagComplete() } , t._handleError = function() { this._clean(), this.dispatchEvent("error") } , t._handleTagComplete = function() { this._rawResult = this._tag, this._result = this.resultFormatter && this.resultFormatter(this) || this._rawResult, this._clean(), this.dispatchEvent("complete") } , t._handleTimeout = function() { this._clean(), this.dispatchEvent(new createjs.Event("timeout")) } , t._clean = function() { this._tag.onload = null, this._tag.onreadystatechange = null, this._tag.onerror = null, this._addedToDOM && null != this._tag.parentNode && this._tag.parentNode.removeChild(this._tag), clearTimeout(this._loadTimeout) } , t._handleStalled = function() {} , createjs.TagRequest = createjs.promote(e, "AbstractRequest") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t, s) { this.AbstractRequest_constructor(e), this._tag = t, this._tagSrcAttribute = s, this._loadedHandler = createjs.proxy(this._handleTagComplete, this) } var t = createjs.extend(e, createjs.TagRequest); t.load = function() { var e = createjs.proxy(this._handleStalled, this); this._stalledCallback = e; var t = createjs.proxy(this._handleProgress, this); this._handleProgress = t, this._tag.addEventListener("stalled", e), this._tag.addEventListener("progress", t), this._tag.addEventListener && this._tag.addEventListener("canplaythrough", this._loadedHandler, !1), this.TagRequest_load() } , t._handleReadyStateChange = function() { clearTimeout(this._loadTimeout); var e = this._tag; "loaded" != e.readyState && "complete" != e.readyState || this._handleTagComplete() } , t._handleStalled = function() {} , t._handleProgress = function(e) { if (e && !(e.loaded > 0 && 0 == e.total)) { var t = new createjs.ProgressEvent(e.loaded,e.total); this.dispatchEvent(t) } } , t._clean = function() { this._tag.removeEventListener && this._tag.removeEventListener("canplaythrough", this._loadedHandler), this._tag.removeEventListener("stalled", this._stalledCallback), this._tag.removeEventListener("progress", this._progressCallback), this.TagRequest__clean() } , createjs.MediaTagRequest = createjs.promote(e, "TagRequest") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e) { this.AbstractRequest_constructor(e), this._request = null, this._loadTimeout = null, this._xhrLevel = 1, this._response = null, this._rawResponse = null, this._canceled = !1, this._handleLoadStartProxy = createjs.proxy(this._handleLoadStart, this), this._handleProgressProxy = createjs.proxy(this._handleProgress, this), this._handleAbortProxy = createjs.proxy(this._handleAbort, this), this._handleErrorProxy = createjs.proxy(this._handleError, this), this._handleTimeoutProxy = createjs.proxy(this._handleTimeout, this), this._handleLoadProxy = createjs.proxy(this._handleLoad, this), this._handleReadyStateChangeProxy = createjs.proxy(this._handleReadyStateChange, this), this._createXHR(e) } var t = createjs.extend(e, createjs.AbstractRequest); e.ACTIVEX_VERSIONS = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], t.getResult = function(e) { return e && this._rawResponse ? this._rawResponse : this._response } , t.cancel = function() { this.canceled = !0, this._clean(), this._request.abort() } , t.load = function() { if (null != this._request) { null != this._request.addEventListener ? (this._request.addEventListener("loadstart", this._handleLoadStartProxy, !1), this._request.addEventListener("progress", this._handleProgressProxy, !1), this._request.addEventListener("abort", this._handleAbortProxy, !1), this._request.addEventListener("error", this._handleErrorProxy, !1), this._request.addEventListener("timeout", this._handleTimeoutProxy, !1), this._request.addEventListener("load", this._handleLoadProxy, !1), this._request.addEventListener("readystatechange", this._handleReadyStateChangeProxy, !1)) : (this._request.onloadstart = this._handleLoadStartProxy, this._request.onprogress = this._handleProgressProxy, this._request.onabort = this._handleAbortProxy, this._request.onerror = this._handleErrorProxy, this._request.ontimeout = this._handleTimeoutProxy, this._request.onload = this._handleLoadProxy, this._request.onreadystatechange = this._handleReadyStateChangeProxy), 1 == this._xhrLevel && (this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), this._item.loadTimeout)); try { this._item.values ? this._request.send(createjs.URLUtils.formatQueryString(this._item.values)) : this._request.send() } catch (e) { this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,e)) } } else this._handleError() } , t.setResponseType = function(e) { "blob" === e && (e = window.URL ? "blob" : "arraybuffer", this._responseType = e), this._request.responseType = e } , t.getAllResponseHeaders = function() { return this._request.getAllResponseHeaders instanceof Function ? this._request.getAllResponseHeaders() : null } , t.getResponseHeader = function(e) { return this._request.getResponseHeader instanceof Function ? this._request.getResponseHeader(e) : null } , t._handleProgress = function(e) { if (e && !(e.loaded > 0 && 0 == e.total)) { var t = new createjs.ProgressEvent(e.loaded,e.total); this.dispatchEvent(t) } } , t._handleLoadStart = function(e) { clearTimeout(this._loadTimeout), this.dispatchEvent("loadstart") } , t._handleAbort = function(e) { this._clean(), this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,e)) } , t._handleError = function(e) { this._clean(), this.dispatchEvent(new createjs.ErrorEvent(e.message)) } , t._handleReadyStateChange = function(e) { 4 == this._request.readyState && this._handleLoad() } , t._handleLoad = function(e) { if (!this.loaded) { this.loaded = !0; var t = this._checkError(); if (t) this._handleError(t); else { if (this._response = this._getResponse(), "arraybuffer" === this._responseType) try { this._response = new Blob([this._response]) } catch (e) { if (window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, "TypeError" === e.name && window.BlobBuilder) { var s = new BlobBuilder; s.append(this._response), this._response = s.getBlob() } } this._clean(), this.dispatchEvent(new createjs.Event("complete")) } } } , t._handleTimeout = function(e) { this._clean(), this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,e)) } , t._checkError = function() { var e = parseInt(this._request.status); return e >= 400 && e <= 599 ? new Error(e) : null } , t._getResponse = function() { if (null != this._response) return this._response; if (null != this._request.response) return this._request.response; try { if (null != this._request.responseText) return this._request.responseText } catch (e) {} try { if (null != this._request.responseXML) return this._request.responseXML } catch (e) {} return null } , t._createXHR = function(e) { var t = createjs.URLUtils.isCrossDomain(e) , r = {} , a = null; if (window.XMLHttpRequest) a = new XMLHttpRequest, t && void 0 === a.withCredentials && window.XDomainRequest && (a = new XDomainRequest); else { for (var i = 0, n = s.ACTIVEX_VERSIONS.length; i < n; i++) { var o = s.ACTIVEX_VERSIONS[i]; try { a = new ActiveXObject(o); break } catch (e) {} } if (null == a) return !1 } null == e.mimeType && createjs.RequestUtils.isText(e.type) && (e.mimeType = "text/plain; charset=utf-8"), e.mimeType && a.overrideMimeType && a.overrideMimeType(e.mimeType), this._xhrLevel = "string" == typeof a.responseType ? 2 : 1; var c = null; if (c = e.method == createjs.AbstractLoader.GET ? createjs.URLUtils.buildURI(e.src, e.values) : e.src, a.open(e.method || createjs.AbstractLoader.GET, c, !0), t && a instanceof XMLHttpRequest && 1 == this._xhrLevel && (r.Origin = location.origin), e.values && e.method == createjs.AbstractLoader.POST && (r["Content-Type"] = "application/x-www-form-urlencoded"), t || r["X-Requested-With"] || (r["X-Requested-With"] = "XMLHttpRequest"), e.headers) for (var l in e.headers) r[l] = e.headers[l]; for (l in r) a.setRequestHeader(l, r[l]); return a instanceof XMLHttpRequest && void 0 !== e.withCredentials && (a.withCredentials = e.withCredentials), this._request = a, !0 } , t._clean = function() { clearTimeout(this._loadTimeout), null != this._request.removeEventListener ? (this._request.removeEventListener("loadstart", this._handleLoadStartProxy), this._request.removeEventListener("progress", this._handleProgressProxy), this._request.removeEventListener("abort", this._handleAbortProxy), this._request.removeEventListener("error", this._handleErrorProxy), this._request.removeEventListener("timeout", this._handleTimeoutProxy), this._request.removeEventListener("load", this._handleLoadProxy), this._request.removeEventListener("readystatechange", this._handleReadyStateChangeProxy)) : (this._request.onloadstart = null, this._request.onprogress = null, this._request.onabort = null, this._request.onerror = null, this._request.ontimeout = null, this._request.onload = null, this._request.onreadystatechange = null) } , t.toString = function() { return "[PreloadJS XHRRequest]" } , createjs.XHRRequest = createjs.promote(e, "AbstractRequest") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t, s) { this.AbstractLoader_constructor(), this._plugins = [], this._typeCallbacks = {}, this._extensionCallbacks = {}, this.next = null, this.maintainScriptOrder = !0, this.stopOnError = !1, this._maxConnections = 1, this._availableLoaders = [createjs.FontLoader, createjs.ImageLoader, createjs.JavaScriptLoader, createjs.CSSLoader, createjs.JSONLoader, createjs.JSONPLoader, createjs.SoundLoader, createjs.ManifestLoader, createjs.SpriteSheetLoader, createjs.XMLLoader, createjs.SVGLoader, createjs.BinaryLoader, createjs.VideoLoader, createjs.TextLoader], this._defaultLoaderLength = this._availableLoaders.length, this.init(e, t, s) } var t = createjs.extend(e, createjs.AbstractLoader) , s = e; t.init = function(e, t, s) { this.useXHR = !0, this.preferXHR = !0, this._preferXHR = !0, this.setPreferXHR(e), this._paused = !1, this._basePath = t, this._crossOrigin = s, this._loadStartWasDispatched = !1, this._currentlyLoadingScript = null, this._currentLoads = [], this._loadQueue = [], this._loadQueueBackup = [], this._loadItemsById = {}, this._loadItemsBySrc = {}, this._loadedResults = {}, this._loadedRawResults = {}, this._numItems = 0, this._numItemsLoaded = 0, this._scriptOrder = [], this._loadedScripts = [], this._lastProgress = NaN } , s.loadTimeout = 8e3, s.LOAD_TIMEOUT = 0, s.BINARY = createjs.AbstractLoader.BINARY, s.CSS = createjs.AbstractLoader.CSS, s.FONT = createjs.AbstractLoader.FONT, s.FONTCSS = createjs.AbstractLoader.FONTCSS, s.IMAGE = createjs.AbstractLoader.IMAGE, s.JAVASCRIPT = createjs.AbstractLoader.JAVASCRIPT, s.JSON = createjs.AbstractLoader.JSON, s.JSONP = createjs.AbstractLoader.JSONP, s.MANIFEST = createjs.AbstractLoader.MANIFEST, s.SOUND = createjs.AbstractLoader.SOUND, s.VIDEO = createjs.AbstractLoader.VIDEO, s.SVG = createjs.AbstractLoader.SVG, s.TEXT = createjs.AbstractLoader.TEXT, s.XML = createjs.AbstractLoader.XML, s.POST = createjs.AbstractLoader.POST, s.GET = createjs.AbstractLoader.GET, t.registerLoader = function(e) { if (!e || !e.canLoadItem) throw new Error("loader is of an incorrect type."); if (-1 != this._availableLoaders.indexOf(e)) throw new Error("loader already exists."); this._availableLoaders.unshift(e) } , t.unregisterLoader = function(e) { var t = this._availableLoaders.indexOf(e); -1 != t && t < this._defaultLoaderLength - 1 && this._availableLoaders.splice(t, 1) } , t.setUseXHR = function(e) { return this.setPreferXHR(e) } , t.setPreferXHR = function(e) { return this.preferXHR = 0 != e && null != window.XMLHttpRequest, this.preferXHR } , t.removeAll = function() { this.remove() } , t.remove = function(e) { var t = null; if (e && !Array.isArray(e)) t = [e]; else if (e) t = e; else if (arguments.length > 0) return; var s = !1; if (t) { for (; t.length; ) { var r = t.pop() , a = this.getResult(r); for (i = this._loadQueue.length - 1; i >= 0; i--) if ((n = this._loadQueue[i].getItem()).id == r || n.src == r) { this._loadQueue.splice(i, 1)[0].cancel(); break } for (i = this._loadQueueBackup.length - 1; i >= 0; i--) if ((n = this._loadQueueBackup[i].getItem()).id == r || n.src == r) { this._loadQueueBackup.splice(i, 1)[0].cancel(); break } if (a) this._disposeItem(this.getItem(r)); else for (var i = this._currentLoads.length - 1; i >= 0; i--) { var n = this._currentLoads[i].getItem(); if (n.id == r || n.src == r) { this._currentLoads.splice(i, 1)[0].cancel(), s = !0; break } } } s && this._loadNext() } else { for (var o in this.close(), this._loadItemsById) this._disposeItem(this._loadItemsById[o]); this.init(this.preferXHR, this._basePath) } } , t.reset = function() { for (var e in this.close(), this._loadItemsById) this._disposeItem(this._loadItemsById[e]); for (var t = [], s = 0, r = this._loadQueueBackup.length; s < r; s++) t.push(this._loadQueueBackup[s].getItem()); this.loadManifest(t, !1) } , t.installPlugin = function(e) { if (null != e && null != e.getPreloadHandlers) { this._plugins.push(e); var t = e.getPreloadHandlers(); if (t.scope = e, null != t.types) for (var s = 0, r = t.types.length; s < r; s++) this._typeCallbacks[t.types[s]] = t; if (null != t.extensions) for (s = 0, r = t.extensions.length; s < r; s++) this._extensionCallbacks[t.extensions[s]] = t } } , t.setMaxConnections = function(e) { this._maxConnections = e, !this._paused && this._loadQueue.length > 0 && this._loadNext() } , t.loadFile = function(e, t, s) { if (null != e) this._addItem(e, null, s), !1 !== t ? this.setPaused(!1) : this.setPaused(!0); else { var r = new createjs.ErrorEvent("PRELOAD_NO_FILE"); this._sendError(r) } } , t.loadManifest = function(e, t, r) { var a = null , i = null; if (Array.isArray(e)) { if (0 == e.length) { var n = new createjs.ErrorEvent("PRELOAD_MANIFEST_EMPTY"); return void this._sendError(n) } a = e } else if ("string" == typeof e) a = [{ src: e, type: s.MANIFEST }]; else { if ("object" != typeof e) { n = new createjs.ErrorEvent("PRELOAD_MANIFEST_NULL"); return void this._sendError(n) } if (void 0 !== e.src) { if (null == e.type) e.type = s.MANIFEST; else if (e.type != s.MANIFEST) { var n = new createjs.ErrorEvent("PRELOAD_MANIFEST_TYPE"); this._sendError(n) } a = [e] } else void 0 !== e.manifest && (a = e.manifest, i = e.path) } for (var o = 0, c = a.length; o < c; o++) this._addItem(a[o], i, r); !1 !== t ? this.setPaused(!1) : this.setPaused(!0) } , t.load = function() { this.setPaused(!1) } , t.getItem = function(e) { return this._loadItemsById[e] || this._loadItemsBySrc[e] } , t.getResult = function(e, t) { var s = this._loadItemsById[e] || this._loadItemsBySrc[e]; if (null == s) return null; var r = s.id; return t && this._loadedRawResults[r] ? this._loadedRawResults[r] : this._loadedResults[r] } , t.getItems = function(e) { var t = []; for (var s in this._loadItemsById) { var r = this._loadItemsById[s] , a = this.getResult(s); !0 === e && null == a || t.push({ item: r, result: a, rawResult: this.getResult(s, !0) }) } return t } , t.setPaused = function(e) { this._paused = e, this._paused || this._loadNext() } , t.close = function() { for (; this._currentLoads.length; ) this._currentLoads.pop().cancel(); this._scriptOrder.length = 0, this._loadedScripts.length = 0, this.loadStartWasDispatched = !1, this._itemCount = 0, this._lastProgress = NaN } , t._addItem = function(e, t, s) { var r = this._createLoadItem(e, t, s); if (null != r) { var a = this._createLoader(r); null != a && ("plugins"in a && (a.plugins = this._plugins), r._loader = a, this._loadQueue.push(a), this._loadQueueBackup.push(a), this._numItems++, this._updateProgress(), (this.maintainScriptOrder && r.type == createjs.LoadQueue.JAVASCRIPT || !0 === r.maintainOrder) && (this._scriptOrder.push(r), this._loadedScripts.push(null))) } } , t._createLoadItem = function(e, t, s) { var r = createjs.LoadItem.create(e); if (null == r) return null; var a = "" , i = s || this._basePath; if (r.src instanceof Object) { if (!r.type) return null; if (t) { a = t; var n = createjs.URLUtils.parseURI(t); null == i || n.absolute || n.relative || (a = i + a) } else null != i && (a = i) } else { var o = createjs.URLUtils.parseURI(r.src); o.extension && (r.ext = o.extension), null == r.type && (r.type = createjs.RequestUtils.getTypeByExtension(r.ext)); var c = r.src; if (!o.absolute && !o.relative) if (t) { a = t; n = createjs.URLUtils.parseURI(t); c = t + c, null == i || n.absolute || n.relative || (a = i + a) } else null != i && (a = i); r.src = a + r.src } r.path = a, void 0 !== r.id && null !== r.id && "" !== r.id || (r.id = c); var l = this._typeCallbacks[r.type] || this._extensionCallbacks[r.ext]; if (l) { var h = l.callback.call(l.scope, r, this); if (!1 === h) return null; !0 === h || null != h && (r._loader = h), null != (o = createjs.URLUtils.parseURI(r.src)).extension && (r.ext = o.extension) } return this._loadItemsById[r.id] = r, this._loadItemsBySrc[r.src] = r, null == r.crossOrigin && (r.crossOrigin = this._crossOrigin), r } , t._createLoader = function(e) { if (null != e._loader) return e._loader; for (var t = this.preferXHR, s = 0; s < this._availableLoaders.length; s++) { var r = this._availableLoaders[s]; if (r && r.canLoadItem(e)) return new r(e,t) } return null } , t._loadNext = function() { if (!this._paused) { this._loadStartWasDispatched || (this._sendLoadStart(), this._loadStartWasDispatched = !0), this._numItems == this._numItemsLoaded ? (this.loaded = !0, this._sendComplete(), this.next && this.next.load && this.next.load()) : this.loaded = !1; for (var e = 0; e < this._loadQueue.length && !(this._currentLoads.length >= this._maxConnections); e++) { var t = this._loadQueue[e]; this._canStartLoad(t) && (this._loadQueue.splice(e, 1), e--, this._loadItem(t)) } } } , t._loadItem = function(e) { e.on("fileload", this._handleFileLoad, this), e.on("progress", this._handleProgress, this), e.on("complete", this._handleFileComplete, this), e.on("error", this._handleError, this), e.on("fileerror", this._handleFileError, this), this._currentLoads.push(e), this._sendFileStart(e.getItem()), e.load() } , t._handleFileLoad = function(e) { e.target = null, this.dispatchEvent(e) } , t._handleFileError = function(e) { var t = new createjs.ErrorEvent("FILE_LOAD_ERROR",null,e.item); this._sendError(t) } , t._handleError = function(e) { var t = e.target; this._numItemsLoaded++, this._finishOrderedItem(t, !0), this._updateProgress(); var s = new createjs.ErrorEvent("FILE_LOAD_ERROR",null,t.getItem()); this._sendError(s), this.stopOnError ? this.setPaused(!0) : (this._removeLoadItem(t), this._cleanLoadItem(t), this._loadNext()) } , t._handleFileComplete = function(e) { var t = e.target , s = t.getItem() , r = t.getResult(); this._loadedResults[s.id] = r; var a = t.getResult(!0); null != a && a !== r && (this._loadedRawResults[s.id] = a), this._saveLoadedItems(t), this._removeLoadItem(t), this._finishOrderedItem(t) || this._processFinishedLoad(s, t), this._cleanLoadItem(t) } , t._saveLoadedItems = function(e) { var t = e.getLoadedItems(); if (null !== t) for (var s = 0; s < t.length; s++) { var r = t[s].item; this._loadItemsBySrc[r.src] = r, this._loadItemsById[r.id] = r, this._loadedResults[r.id] = t[s].result, this._loadedRawResults[r.id] = t[s].rawResult } } , t._finishOrderedItem = function(e, t) { var s = e.getItem(); if (this.maintainScriptOrder && s.type == createjs.LoadQueue.JAVASCRIPT || s.maintainOrder) { e instanceof createjs.JavaScriptLoader && (this._currentlyLoadingScript = !1); var r = createjs.indexOf(this._scriptOrder, s); return -1 != r && (this._loadedScripts[r] = !0 === t || s, this._checkScriptLoadOrder(), !0) } return !1 } , t._checkScriptLoadOrder = function() { for (var e = this._loadedScripts.length, t = 0; t < e; t++) { var s = this._loadedScripts[t]; if (null === s) break; if (!0 !== s) { var r = this._loadedResults[s.id]; s.type == createjs.LoadQueue.JAVASCRIPT && createjs.DomUtils.appendToHead(r); var a = s._loader; this._processFinishedLoad(s, a), this._loadedScripts[t] = !0 } } } , t._processFinishedLoad = function(e, t) { if (this._numItemsLoaded++, !this.maintainScriptOrder && e.type == createjs.LoadQueue.JAVASCRIPT) { var s = t.getTag(); createjs.DomUtils.appendToHead(s) } this._updateProgress(), this._sendFileComplete(e, t), this._loadNext() } , t._canStartLoad = function(e) { if (!this.maintainScriptOrder || e.preferXHR) return !0; var t = e.getItem(); if (t.type != createjs.LoadQueue.JAVASCRIPT) return !0; if (this._currentlyLoadingScript) return !1; for (var s = this._scriptOrder.indexOf(t), r = 0; r < s; ) { if (null == this._loadedScripts[r]) return !1; r++ } return this._currentlyLoadingScript = !0, !0 } , t._removeLoadItem = function(e) { for (var t = this._currentLoads.length, s = 0; s < t; s++) if (this._currentLoads[s] == e) { this._currentLoads.splice(s, 1); break } } , t._cleanLoadItem = function(e) { var t = e.getItem(); t && delete t._loader } , t._handleProgress = function(e) { var t = e.target; this._sendFileProgress(t.getItem(), t.progress), this._updateProgress() } , t._updateProgress = function() { var e = this._numItemsLoaded / this._numItems , t = this._numItems - this._numItemsLoaded; if (t > 0) { for (var s = 0, r = 0, a = this._currentLoads.length; r < a; r++) s += this._currentLoads[r].progress; e += s / t * (t / this._numItems) } this._lastProgress != e && (this._sendProgress(e), this._lastProgress = e) } , t._disposeItem = function(e) { delete this._loadedResults[e.id], delete this._loadedRawResults[e.id], delete this._loadItemsById[e.id], delete this._loadItemsBySrc[e.src] } , t._sendFileProgress = function(e, t) { if (!this._isCanceled() && !this._paused && this.hasEventListener("fileprogress")) { var s = new createjs.Event("fileprogress"); s.progress = t, s.loaded = t, s.total = 1, s.item = e, this.dispatchEvent(s) } } , t._sendFileComplete = function(e, t) { if (!this._isCanceled() && !this._paused) { var s = new createjs.Event("fileload"); s.loader = t, s.item = e, s.result = this._loadedResults[e.id], s.rawResult = this._loadedRawResults[e.id], e.completeHandler && e.completeHandler(s), this.hasEventListener("fileload") && this.dispatchEvent(s) } } , t._sendFileStart = function(e) { var t = new createjs.Event("filestart"); t.item = e, this.hasEventListener("filestart") && this.dispatchEvent(t) } , t.toString = function() { return "[PreloadJS LoadQueue]" } , createjs.LoadQueue = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e) { this.AbstractLoader_constructor(e, !0, createjs.AbstractLoader.TEXT) } createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.TEXT } , createjs.TextLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e) { this.AbstractLoader_constructor(e, !0, createjs.AbstractLoader.BINARY), this.on("initialize", this._updateXHR, this) } var t = createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.BINARY } , t._updateXHR = function(e) { e.loader.setResponseType("arraybuffer") } , createjs.BinaryLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t) { this.AbstractLoader_constructor(e, t, createjs.AbstractLoader.CSS), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "href", this._tag = t ? createjs.Elements.style() : createjs.Elements.link(), this._tag.rel = "stylesheet", this._tag.type = "text/css" } var t = createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.CSS } , t._formatResult = function(e) { if (this._preferXHR) { var t = e.getTag(); if (t.styleSheet) t.styleSheet.cssText = e.getResult(!0); else { var s = createjs.Elements.text(e.getResult(!0)); t.appendChild(s) } } else t = this._tag; return createjs.DomUtils.appendToHead(t), t } , createjs.CSSLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t) { this.AbstractLoader_constructor(e, t, e.type), this._faces = {}, this._watched = [], this._count = 0, this._watchInterval = null, this._loadTimeout = null, this._injectCSS = void 0 === e.injectCSS || e.injectCSS, this.dispatchEvent("initialize") } var t = createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.FONT || e.type == createjs.AbstractLoader.FONTCSS } , e.sampleText = "abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ", e._ctx = document.createElement("canvas").getContext("2d"), e._referenceFonts = ["serif", "monospace"], e.WEIGHT_REGEX = /[- ._]*(thin|normal|book|regular|medium|black|heavy|[1-9]00|(?:extra|ultra|semi|demi)?[- ._]*(?:light|bold))[- ._]*/gi, e.STYLE_REGEX = /[- ._]*(italic|oblique)[- ._]*/gi, e.FONT_FORMAT = { woff2: "woff2", woff: "woff", ttf: "truetype", otf: "truetype" }, e.FONT_WEIGHT = { thin: 100, extralight: 200, ultralight: 200, light: 300, semilight: 300, demilight: 300, book: "normal", regular: "normal", semibold: 600, demibold: 600, extrabold: 800, ultrabold: 800, black: 900, heavy: 900 }, e.WATCH_DURATION = 10, t.load = function() { if (this.type == createjs.AbstractLoader.FONTCSS) { if (!this._watchCSS()) return void this.AbstractLoader_load() } else if (this._item.src instanceof Array) this._watchFontArray(); else { var e = this._defFromSrc(this._item.src); this._watchFont(e), this._injectStyleTag(this._cssFromDef(e)) } this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), this._item.loadTimeout), this.dispatchEvent("loadstart") } , t._handleTimeout = function() { this._stopWatching(), this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,event)) } , t._createRequest = function() { return this._request } , t.handleEvent = function(e) { switch (e.type) { case "complete": this._rawResult = e.target._response, this._result = !0, this._parseCSS(this._rawResult); break; case "error": this._stopWatching(), this.AbstractLoader_handleEvent(e) } } , t._watchCSS = function() { var e = this._item.src; return e instanceof HTMLStyleElement && (this._injectCSS && !e.parentNode && (document.head || document.getElementsByTagName("head")[0]).appendChild(e), this._injectCSS = !1, e = "\n" + e.textContent), -1 !== e.search(/\n|\r|@font-face/i) ? (this._parseCSS(e), !0) : (this._request = new createjs.XHRRequest(this._item), !1) } , t._parseCSS = function(e) { for (var t = /@font-face\s*\{([^}]+)}/g; ; ) { var s = t.exec(e); if (!s) break; this._watchFont(this._parseFontFace(s[1])) } this._injectStyleTag(e) } , t._watchFontArray = function() { for (var e, t = this._item.src, s = "", r = t.length - 1; r >= 0; r--) { var a = t[r]; e = "string" == typeof a ? this._defFromSrc(a) : this._defFromObj(a), this._watchFont(e), s += this._cssFromDef(e) + "\n" } this._injectStyleTag(s) } , t._injectStyleTag = function(e) { if (this._injectCSS) { var t = document.head || document.getElementsByTagName("head")[0] , s = document.createElement("style"); s.type = "text/css", s.styleSheet ? s.styleSheet.cssText = e : s.appendChild(document.createTextNode(e)), t.appendChild(s) } } , t._parseFontFace = function(e) { var t = this._getCSSValue(e, "font-family") , s = this._getCSSValue(e, "src"); return t && s ? this._defFromObj({ family: t, src: s, style: this._getCSSValue(e, "font-style"), weight: this._getCSSValue(e, "font-weight") }) : null } , t._watchFont = function(e) { e && !this._faces[e.id] && (this._faces[e.id] = e, this._watched.push(e), this._count++, this._calculateReferenceSizes(e), this._startWatching()) } , t._startWatching = function() { null == this._watchInterval && (this._watchInterval = setInterval(createjs.proxy(this._watch, this), e.WATCH_DURATION)) } , t._stopWatching = function() { clearInterval(this._watchInterval), clearTimeout(this._loadTimeout), this._watchInterval = null } , t._watch = function() { for (var t = this._watched, s = e._referenceFonts, r = t.length, a = r - 1; a >= 0; a--) for (var i = t[a], n = i.refs, o = n.length - 1; o >= 0; o--) { if (this._getTextWidth(i.family + "," + s[o], i.weight, i.style) != n[o]) { var c = new createjs.Event("fileload"); i.type = "font-family", c.item = i, this.dispatchEvent(c), t.splice(a, 1); break } } if (r !== t.length) { c = new createjs.ProgressEvent(this._count - t.length,this._count); this.dispatchEvent(c) } 0 === r && (this._stopWatching(), this._sendComplete()) } , t._calculateReferenceSizes = function(t) { for (var s = e._referenceFonts, r = t.refs = [], a = 0; a < s.length; a++) r[a] = this._getTextWidth(s[a], t.weight, t.style) } , t._defFromSrc = function(t) { var s, r = /[- ._]+/g, a = t, i = null; -1 !== (s = a.search(/[?#]/)) && (a = a.substr(0, s)), -1 !== (s = a.lastIndexOf(".")) && (i = a.substr(s + 1), a = a.substr(0, s)), -1 !== (s = a.lastIndexOf("/")) && (a = a.substr(s + 1)); var n = a , o = n.match(e.WEIGHT_REGEX); o && (o = o[0], n = n.replace(o, ""), o = o.replace(r, "").toLowerCase()); var c = a.match(e.STYLE_REGEX); c && (n = n.replace(c[0], ""), c = "italic"), n = n.replace(r, ""); var l = "local('" + a.replace(r, " ") + "'), url('" + t + "')" , h = e.FONT_FORMAT[i]; return h && (l += " format('" + h + "')"), this._defFromObj({ family: n, weight: e.FONT_WEIGHT[o] || o, style: c, src: l }) } , t._defFromObj = function(e) { var t = { family: e.family, src: e.src, style: e.style || "normal", weight: e.weight || "normal" }; return t.id = t.family + ";" + t.style + ";" + t.weight, t } , t._cssFromDef = function(e) { return "@font-face {\n\tfont-family: '" + e.family + "';\n\tfont-style: " + e.style + ";\n\tfont-weight: " + e.weight + ";\n\tsrc: " + e.src + ";\n}" } , t._getTextWidth = function(t, s, r) { var a = e._ctx; return a.font = r + " " + s + " 72px " + t, a.measureText(e.sampleText).width } , t._getCSSValue = function(e, t) { var s = new RegExp(t + ":s*([^;}]+?)s*[;}]").exec(e); return s && s[1] ? s[1] : null } , createjs.FontLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t) { this.AbstractLoader_constructor(e, t, createjs.AbstractLoader.IMAGE), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "src", createjs.DomUtils.isImageTag(e) ? this._tag = e : createjs.DomUtils.isImageTag(e.src) ? this._tag = e.src : createjs.DomUtils.isImageTag(e.tag) && (this._tag = e.tag), null != this._tag ? this._preferXHR = !1 : this._tag = createjs.Elements.img(), this.on("initialize", this._updateXHR, this) } var t = createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.IMAGE } , t.load = function() { if ("" != this._tag.src && this._tag.complete) this._sendComplete(); else { var e = this._item.crossOrigin; 1 == e && (e = "Anonymous"), null == e || createjs.URLUtils.isLocal(this._item) || (this._tag.crossOrigin = e), this.AbstractLoader_load() } } , t._updateXHR = function(e) { e.loader.mimeType = "text/plain; charset=x-user-defined-binary", e.loader.setResponseType && e.loader.setResponseType("blob") } , t._formatResult = function(e) { return this._formatImage } , t._formatImage = function(e, t) { var s = this._tag , r = window.URL || window.webkitURL; if (this._preferXHR) if (r) { var a = r.createObjectURL(this.getResult(!0)); s.src = a, s.addEventListener("load", this._cleanUpURL, !1), s.addEventListener("error", this._cleanUpURL, !1) } else s.src = this._item.src; else ;s.complete ? e(s) : (s.onload = createjs.proxy(function() { e(this._tag) }, this), s.onerror = createjs.proxy(function() { t(this._tag) }, this)) } , t._cleanUpURL = function(e) { (window.URL || window.webkitURL).revokeObjectURL(e.target.src) } , createjs.ImageLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t) { this.AbstractLoader_constructor(e, t, createjs.AbstractLoader.JAVASCRIPT), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "src", this.setTag(createjs.Elements.script()) } var t = createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.JAVASCRIPT } , t._formatResult = function(e) { var t = e.getTag(); return this._preferXHR && (t.text = e.getResult(!0)), t } , createjs.JavaScriptLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e) { this.AbstractLoader_constructor(e, !0, createjs.AbstractLoader.JSON), this.resultFormatter = this._formatResult } var t = createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.JSON } , t._formatResult = function(e) { var t = null; try { t = createjs.DataUtils.parseJSON(e.getResult(!0)) } catch (e) { var s = new createjs.ErrorEvent("JSON_FORMAT",null,e); return this._sendError(s), e } return t } , createjs.JSONLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e) { this.AbstractLoader_constructor(e, !1, createjs.AbstractLoader.JSONP), this.setTag(createjs.Elements.script()), this.getTag().type = "text/javascript" } var t = createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.JSONP } , t.cancel = function() { this.AbstractLoader_cancel(), this._dispose() } , t.load = function() { if (null == this._item.callback) throw new Error("callback is required for loading JSONP requests."); if (null != window[this._item.callback]) throw new Error("JSONP callback '" + this._item.callback + "' already exists on window. You need to specify a different callback or re-name the current one."); window[this._item.callback] = createjs.proxy(this._handleLoad, this), createjs.DomUtils.appendToBody(this._tag), this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), this._item.loadTimeout), this._tag.src = this._item.src } , t._handleLoad = function(e) { this._result = this._rawResult = e, this._sendComplete(), this._dispose() } , t._handleTimeout = function() { this._dispose(), this.dispatchEvent(new createjs.ErrorEvent("timeout")) } , t._dispose = function() { createjs.DomUtils.removeChild(this._tag), delete window[this._item.callback], clearTimeout(this._loadTimeout) } , createjs.JSONPLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e) { this.AbstractLoader_constructor(e, null, createjs.AbstractLoader.MANIFEST), this.plugins = null, this._manifestQueue = null } var t = createjs.extend(e, createjs.AbstractLoader) , s = e; s.MANIFEST_PROGRESS = .25, s.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.MANIFEST } , t.load = function() { this.AbstractLoader_load() } , t._createRequest = function() { var e = this._item.callback; this._request = null != e ? new createjs.JSONPLoader(this._item) : new createjs.JSONLoader(this._item) } , t.handleEvent = function(e) { switch (e.type) { case "complete": return this._rawResult = e.target.getResult(!0), this._result = e.target.getResult(), this._sendProgress(s.MANIFEST_PROGRESS), void this._loadManifest(this._result); case "progress": return e.loaded *= s.MANIFEST_PROGRESS, this.progress = e.loaded / e.total, (isNaN(this.progress) || this.progress == 1 / 0) && (this.progress = 0), void this._sendProgress(e) } this.AbstractLoader_handleEvent(e) } , t.destroy = function() { this.AbstractLoader_destroy(), this._manifestQueue.close() } , t._loadManifest = function(e) { if (e && e.manifest) { var t = this._manifestQueue = new createjs.LoadQueue; t.on("fileload", this._handleManifestFileLoad, this), t.on("progress", this._handleManifestProgress, this), t.on("complete", this._handleManifestComplete, this, !0), t.on("error", this._handleManifestError, this, !0); for (var s = 0, r = this.plugins.length; s < r; s++) t.installPlugin(this.plugins[s]); t.loadManifest(e) } else this._sendComplete() } , t._handleManifestFileLoad = function(e) { e.target = null, this.dispatchEvent(e) } , t._handleManifestComplete = function(e) { this._loadedItems = this._manifestQueue.getItems(!0), this._sendComplete() } , t._handleManifestProgress = function(e) { this.progress = e.progress * (1 - s.MANIFEST_PROGRESS) + s.MANIFEST_PROGRESS, this._sendProgress(this.progress) } , t._handleManifestError = function(e) { var t = new createjs.Event("fileerror"); t.item = e.data, this.dispatchEvent(t) } , createjs.ManifestLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t) { this.AbstractMediaLoader_constructor(e, t, createjs.AbstractLoader.SOUND), createjs.DomUtils.isAudioTag(e) ? this._tag = e : createjs.DomUtils.isAudioTag(e.src) ? this._tag = e : createjs.DomUtils.isAudioTag(e.tag) && (this._tag = createjs.DomUtils.isAudioTag(e) ? e : e.src), null != this._tag && (this._preferXHR = !1) } var t = createjs.extend(e, createjs.AbstractMediaLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.SOUND } , t._createTag = function(e) { var t = createjs.Elements.audio(); return t.autoplay = !1, t.preload = "none", t.src = e, t } , createjs.SoundLoader = createjs.promote(e, "AbstractMediaLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t) { this.AbstractMediaLoader_constructor(e, t, createjs.AbstractLoader.VIDEO), createjs.DomUtils.isVideoTag(e) || createjs.DomUtils.isVideoTag(e.src) ? (this.setTag(createjs.DomUtils.isVideoTag(e) ? e : e.src), this._preferXHR = !1) : this.setTag(this._createTag()) } var t = e; createjs.extend(e, createjs.AbstractMediaLoader)._createTag = function() { return createjs.Elements.video() } , t.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.VIDEO } , createjs.VideoLoader = createjs.promote(e, "AbstractMediaLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t) { this.AbstractLoader_constructor(e, t, createjs.AbstractLoader.SPRITESHEET), this._manifestQueue = null } var t = createjs.extend(e, createjs.AbstractLoader) , s = e; s.SPRITESHEET_PROGRESS = .25, s.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.SPRITESHEET } , t.destroy = function() { this.AbstractLoader_destroy(), this._manifestQueue.close() } , t._createRequest = function() { var e = this._item.callback; this._request = null != e ? new createjs.JSONPLoader(this._item) : new createjs.JSONLoader(this._item) } , t.handleEvent = function(e) { switch (e.type) { case "complete": return this._rawResult = e.target.getResult(!0), this._result = e.target.getResult(), this._sendProgress(s.SPRITESHEET_PROGRESS), void this._loadManifest(this._result); case "progress": return e.loaded *= s.SPRITESHEET_PROGRESS, this.progress = e.loaded / e.total, (isNaN(this.progress) || this.progress == 1 / 0) && (this.progress = 0), void this._sendProgress(e) } this.AbstractLoader_handleEvent(e) } , t._loadManifest = function(e) { if (e && e.images) { var t = this._manifestQueue = new createjs.LoadQueue(this._preferXHR,this._item.path,this._item.crossOrigin); t.on("complete", this._handleManifestComplete, this, !0), t.on("fileload", this._handleManifestFileLoad, this), t.on("progress", this._handleManifestProgress, this), t.on("error", this._handleManifestError, this, !0), t.loadManifest(e.images) } } , t._handleManifestFileLoad = function(e) { var t = e.result; if (null != t) { var s = this.getResult().images; s[s.indexOf(e.item.src)] = t } } , t._handleManifestComplete = function(e) { this._result = new createjs.SpriteSheet(this._result), this._loadedItems = this._manifestQueue.getItems(!0), this._sendComplete() } , t._handleManifestProgress = function(e) { this.progress = e.progress * (1 - s.SPRITESHEET_PROGRESS) + s.SPRITESHEET_PROGRESS, this._sendProgress(this.progress) } , t._handleManifestError = function(e) { var t = new createjs.Event("fileerror"); t.item = e.data, this.dispatchEvent(t) } , createjs.SpriteSheetLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e, t) { this.AbstractLoader_constructor(e, t, createjs.AbstractLoader.SVG), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "data", t ? this.setTag(createjs.Elements.svg()) : (this.setTag(createjs.Elements.object()), this.getTag().type = "image/svg+xml") } var t = createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.SVG } , t._formatResult = function(e) { var t = createjs.DataUtils.parseXML(e.getResult(!0)) , s = e.getTag(); return !this._preferXHR && document.body.contains(s) && document.body.removeChild(s), null != t.documentElement ? (s.appendChild(t.documentElement), s) : t } , createjs.SVGLoader = createjs.promote(e, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function e(e) { this.AbstractLoader_constructor(e, !0, createjs.AbstractLoader.XML), this.resultFormatter = this._formatResult } var t = createjs.extend(e, createjs.AbstractLoader); e.canLoadItem = function(e) { return e.type == createjs.AbstractLoader.XML } , t._formatResult = function(e) { return createjs.DataUtils.parseXML(e.getResult(!0)) } , createjs.XMLLoader = createjs.promote(e, "AbstractLoader") }(); this.createjs = this.createjs || {}, function() { var t = createjs.SoundJS = createjs.SoundJS || {}; t.version = "NEXT", t.buildDate = "Thu, 27 Oct 2016 17:49:37 GMT" }(), this.createjs = this.createjs || {}, createjs.extend = function(t, e) { "use strict"; function s() { this.constructor = t } return s.prototype = e.prototype, t.prototype = new s } , this.createjs = this.createjs || {}, createjs.promote = function(t, e) { "use strict"; var s = t.prototype , i = Object.getPrototypeOf && Object.getPrototypeOf(s) || s.__proto__; if (i) for (var n in s[(e += "_") + "constructor"] = i.constructor, i) s.hasOwnProperty(n) && "function" == typeof i[n] && (s[e + n] = i[n]); return t } , this.createjs = this.createjs || {}, createjs.indexOf = function(t, e) { "use strict"; for (var s = 0, i = t.length; s < i; s++) if (e === t[s]) return s; return -1 } , this.createjs = this.createjs || {}, function() { "use strict"; createjs.proxy = function(t, e) { var s = Array.prototype.slice.call(arguments, 2); return function() { return t.apply(e, Array.prototype.slice.call(arguments, 0).concat(s)) } } }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "BrowserDetect cannot be instantiated" } var e = t.agent = window.navigator.userAgent; t.isWindowPhone = e.indexOf("IEMobile") > -1 || e.indexOf("Windows Phone") > -1, t.isFirefox = e.indexOf("Firefox") > -1, t.isOpera = null != window.opera, t.isChrome = e.indexOf("Chrome") > -1, t.isIOS = (e.indexOf("iPod") > -1 || e.indexOf("iPhone") > -1 || e.indexOf("iPad") > -1) && !t.isWindowPhone, t.isAndroid = e.indexOf("Android") > -1 && !t.isWindowPhone, t.isBlackberry = e.indexOf("Blackberry") > -1, createjs.BrowserDetect = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { this._listeners = null, this._captureListeners = null } var e = t.prototype; t.initialize = function(t) { t.addEventListener = e.addEventListener, t.on = e.on, t.removeEventListener = t.off = e.removeEventListener, t.removeAllEventListeners = e.removeAllEventListeners, t.hasEventListener = e.hasEventListener, t.dispatchEvent = e.dispatchEvent, t._dispatchEvent = e._dispatchEvent, t.willTrigger = e.willTrigger } , e.addEventListener = function(t, e, s) { var i, n = (i = s ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {})[t]; return n && this.removeEventListener(t, e, s), (n = i[t]) ? n.push(e) : i[t] = [e], e } , e.on = function(t, e, s, i, n, r) { return e.handleEvent && (s = s || e, e = e.handleEvent), s = s || this, this.addEventListener(t, function(t) { e.call(s, t, n), i && t.remove() }, r) } , e.removeEventListener = function(t, e, s) { var i = s ? this._captureListeners : this._listeners; if (i) { var n = i[t]; if (n) for (var r = 0, a = n.length; r < a; r++) if (n[r] == e) { 1 == a ? delete i[t] : n.splice(r, 1); break } } } , e.off = e.removeEventListener, e.removeAllEventListeners = function(t) { t ? (this._listeners && delete this._listeners[t], this._captureListeners && delete this._captureListeners[t]) : this._listeners = this._captureListeners = null } , e.dispatchEvent = function(t, e, s) { if ("string" == typeof t) { var i = this._listeners; if (!(e || i && i[t])) return !0; t = new createjs.Event(t,e,s) } else t.target && t.clone && (t = t.clone()); try { t.target = this } catch (t) {} if (t.bubbles && this.parent) { for (var n = this, r = [n]; n.parent; ) r.push(n = n.parent); var a, o = r.length; for (a = o - 1; a >= 0 && !t.propagationStopped; a--) r[a]._dispatchEvent(t, 1 + (0 == a)); for (a = 1; a < o && !t.propagationStopped; a++) r[a]._dispatchEvent(t, 3) } else this._dispatchEvent(t, 2); return !t.defaultPrevented } , e.hasEventListener = function(t) { var e = this._listeners , s = this._captureListeners; return !!(e && e[t] || s && s[t]) } , e.willTrigger = function(t) { for (var e = this; e; ) { if (e.hasEventListener(t)) return !0; e = e.parent } return !1 } , e.toString = function() { return "[EventDispatcher]" } , e._dispatchEvent = function(t, e) { var s, i = 1 == e ? this._captureListeners : this._listeners; if (t && i) { var n = i[t.type]; if (!n || !(s = n.length)) return; try { t.currentTarget = this } catch (t) {} try { t.eventPhase = e } catch (t) {} t.removed = !1, n = n.slice(); for (var r = 0; r < s && !t.immediatePropagationStopped; r++) { var a = n[r]; a.handleEvent ? a.handleEvent(t) : a(t), t.removed && (this.off(t.type, a, 1 == e), t.removed = !1) } } } , createjs.EventDispatcher = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, s) { this.type = t, this.target = null, this.currentTarget = null, this.eventPhase = 0, this.bubbles = !!e, this.cancelable = !!s, this.timeStamp = (new Date).getTime(), this.defaultPrevented = !1, this.propagationStopped = !1, this.immediatePropagationStopped = !1, this.removed = !1 } var e = t.prototype; e.preventDefault = function() { this.defaultPrevented = this.cancelable && !0 } , e.stopPropagation = function() { this.propagationStopped = !0 } , e.stopImmediatePropagation = function() { this.immediatePropagationStopped = this.propagationStopped = !0 } , e.remove = function() { this.removed = !0 } , e.clone = function() { return new t(this.type,this.bubbles,this.cancelable) } , e.set = function(t) { for (var e in t) this[e] = t[e]; return this } , e.toString = function() { return "[Event (type=" + this.type + ")]" } , createjs.Event = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, s) { this.Event_constructor("error"), this.title = t, this.message = e, this.data = s } createjs.extend(t, createjs.Event).clone = function() { return new createjs.ErrorEvent(this.title,this.message,this.data) } , createjs.ErrorEvent = createjs.promote(t, "Event") }(), this.createjs = this.createjs || {}, function(t) { "use strict"; function e(t, e) { this.Event_constructor("progress"), this.loaded = t, this.total = null == e ? 1 : e, this.progress = 0 == e ? 0 : this.loaded / this.total } createjs.extend(e, createjs.Event).clone = function() { return new createjs.ProgressEvent(this.loaded,this.total) } , createjs.ProgressEvent = createjs.promote(e, "Event") }(window), this.createjs = this.createjs || {}, function() { "use strict"; function t() { this.src = null, this.type = null, this.id = null, this.maintainOrder = !1, this.callback = null, this.data = null, this.method = createjs.LoadItem.GET, this.values = null, this.headers = null, this.withCredentials = !1, this.mimeType = null, this.crossOrigin = null, this.loadTimeout = s.LOAD_TIMEOUT_DEFAULT } var e = t.prototype = {} , s = t; s.LOAD_TIMEOUT_DEFAULT = 8e3, s.create = function(e) { if ("string" == typeof e) { var i = new t; return i.src = e, i } if (e instanceof s) return e; if (e instanceof Object && e.src) return null == e.loadTimeout && (e.loadTimeout = s.LOAD_TIMEOUT_DEFAULT), e; throw new Error("Type not recognized.") } , e.set = function(t) { for (var e in t) this[e] = t[e]; return this } , createjs.LoadItem = s }(), function() { var t = { isBinary: function(t) { switch (t) { case createjs.AbstractLoader.IMAGE: case createjs.AbstractLoader.BINARY: return !0; default: return !1 } }, isText: function(t) { switch (t) { case createjs.AbstractLoader.TEXT: case createjs.AbstractLoader.JSON: case createjs.AbstractLoader.MANIFEST: case createjs.AbstractLoader.XML: case createjs.AbstractLoader.CSS: case createjs.AbstractLoader.SVG: case createjs.AbstractLoader.JAVASCRIPT: case createjs.AbstractLoader.SPRITESHEET: return !0; default: return !1 } }, getTypeByExtension: function(t) { if (null == t) return createjs.AbstractLoader.TEXT; switch (t.toLowerCase()) { case "jpeg": case "jpg": case "gif": case "png": case "webp": case "bmp": return createjs.AbstractLoader.IMAGE; case "ogg": case "mp3": case "webm": return createjs.AbstractLoader.SOUND; case "mp4": case "webm": case "ts": return createjs.AbstractLoader.VIDEO; case "json": return createjs.AbstractLoader.JSON; case "xml": return createjs.AbstractLoader.XML; case "css": return createjs.AbstractLoader.CSS; case "js": return createjs.AbstractLoader.JAVASCRIPT; case "svg": return createjs.AbstractLoader.SVG; default: return createjs.AbstractLoader.TEXT } } }; createjs.RequestUtils = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, s) { this.EventDispatcher_constructor(), this.loaded = !1, this.canceled = !1, this.progress = 0, this.type = s, this.resultFormatter = null, this._item = t ? createjs.LoadItem.create(t) : null, this._preferXHR = e, this._result = null, this._rawResult = null, this._loadedItems = null, this._tagSrcAttribute = null, this._tag = null } var e = createjs.extend(t, createjs.EventDispatcher) , s = t; s.POST = createjs.Methods.POST, s.GET = createjs.Methods.GET, s.BINARY = createjs.Types.BINARY, s.CSS = createjs.Types.CSS, s.IMAGE = createjs.Types.IMAGE, s.JAVASCRIPT = createjs.Types.JAVASCRIPT, s.JSON = createjs.Types.JSON, s.JSONP = createjs.Types.JSONP, s.MANIFEST = "manifest", s.SOUND = createjs.Types.SOUND, s.VIDEO = createjs.Types.VIDEO, s.SPRITESHEET = createjs.Types.SPRITESHEET, s.SVG = createjs.Types.SVG, s.TEXT = createjs.Types.TEXT, s.XML = createjs.Types.XML, e.getItem = function() { return this._item } , e.getResult = function(t) { return t ? this._rawResult : this._result } , e.getTag = function() { return this._tag } , e.setTag = function(t) { this._tag = t } , e.load = function() { this._createRequest(), this._request.on("complete", this, this), this._request.on("progress", this, this), this._request.on("loadStart", this, this), this._request.on("abort", this, this), this._request.on("timeout", this, this), this._request.on("error", this, this); var t = new createjs.Event("initialize"); t.loader = this._request, this.dispatchEvent(t), this._request.load() } , e.cancel = function() { this.canceled = !0, this.destroy() } , e.destroy = function() { this._request && (this._request.removeAllEventListeners(), this._request.destroy()), this._request = null, this._item = null, this._rawResult = null, this._result = null, this._loadItems = null, this.removeAllEventListeners() } , e.getLoadedItems = function() { return this._loadedItems } , e._createRequest = function() { this._preferXHR ? this._request = new createjs.XHRRequest(this._item) : this._request = new createjs.TagRequest(this._item,this._tag || this._createTag(),this._tagSrcAttribute) } , e._createTag = function(t) { return null } , e._sendLoadStart = function() { this._isCanceled() || this.dispatchEvent("loadstart") } , e._sendProgress = function(t) { if (!this._isCanceled()) { var e = null; "number" == typeof t ? (this.progress = t, e = new createjs.ProgressEvent(this.progress)) : (e = t, this.progress = t.loaded / t.total, e.progress = this.progress, (isNaN(this.progress) || this.progress == 1 / 0) && (this.progress = 0)), this.hasEventListener("progress") && this.dispatchEvent(e) } } , e._sendComplete = function() { if (!this._isCanceled()) { this.loaded = !0; var t = new createjs.Event("complete"); t.rawResult = this._rawResult, null != this._result && (t.result = this._result), this.dispatchEvent(t) } } , e._sendError = function(t) { !this._isCanceled() && this.hasEventListener("error") && (null == t && (t = new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")), this.dispatchEvent(t)) } , e._isCanceled = function() { return !(null != window.createjs && !this.canceled) } , e.resultFormatter = null, e.handleEvent = function(t) { switch (t.type) { case "complete": this._rawResult = t.target._response; var e = this.resultFormatter && this.resultFormatter(this); e instanceof Function ? e.call(this, createjs.proxy(this._resultFormatSuccess, this), createjs.proxy(this._resultFormatFailed, this)) : (this._result = e || this._rawResult, this._sendComplete()); break; case "progress": this._sendProgress(t); break; case "error": this._sendError(t); break; case "loadstart": this._sendLoadStart(); break; case "abort": case "timeout": this._isCanceled() || this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_" + t.type.toUpperCase() + "_ERROR")) } } , e._resultFormatSuccess = function(t) { this._result = t, this._sendComplete() } , e._resultFormatFailed = function(t) { this._sendError(t) } , e.buildPath = function(t, e) { return createjs.URLUtils.buildURI(t, e) } , e.toString = function() { return "[PreloadJS AbstractLoader]" } , createjs.AbstractLoader = createjs.promote(t, "EventDispatcher") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, s) { this.AbstractLoader_constructor(t, e, s), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "src", this.on("initialize", this._updateXHR, this) } var e = createjs.extend(t, createjs.AbstractLoader); e.load = function() { this._tag || (this._tag = this._createTag(this._item.src)), this._tag.preload = "auto", this._tag.load(), this.AbstractLoader_load() } , e._createTag = function() {} , e._createRequest = function() { this._preferXHR ? this._request = new createjs.XHRRequest(this._item) : this._request = new createjs.MediaTagRequest(this._item,this._tag || this._createTag(),this._tagSrcAttribute) } , e._updateXHR = function(t) { t.loader.setResponseType && t.loader.setResponseType("blob") } , e._formatResult = function(t) { if (this._tag.removeEventListener && this._tag.removeEventListener("canplaythrough", this._loadedHandler), this._tag.onstalled = null, this._preferXHR) { var e = window.URL || window.webkitURL , s = t.getResult(!0); t.getTag().src = e.createObjectURL(s) } return t.getTag() } , createjs.AbstractMediaLoader = createjs.promote(t, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; var t = function(t) { this._item = t } , e = createjs.extend(t, createjs.EventDispatcher); e.load = function() {} , e.destroy = function() {} , e.cancel = function() {} , createjs.AbstractRequest = createjs.promote(t, "EventDispatcher") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, s) { this.AbstractRequest_constructor(t), this._tag = e, this._tagSrcAttribute = s, this._loadedHandler = createjs.proxy(this._handleTagComplete, this), this._addedToDOM = !1, this._startTagVisibility = null } var e = createjs.extend(t, createjs.AbstractRequest); e.load = function() { this._tag.onload = createjs.proxy(this._handleTagComplete, this), this._tag.onreadystatechange = createjs.proxy(this._handleReadyStateChange, this), this._tag.onerror = createjs.proxy(this._handleError, this); var t = new createjs.Event("initialize"); t.loader = this._tag, this.dispatchEvent(t), this._hideTag(), this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), this._item.loadTimeout), this._tag[this._tagSrcAttribute] = this._item.src, null == this._tag.parentNode && (createjs.DomUtils.appendToBody(this._tag), this._addedToDOM = !0) } , e.destroy = function() { this._clean(), this._tag = null, this.AbstractRequest_destroy() } , e._handleReadyStateChange = function() { clearTimeout(this._loadTimeout); var t = this._tag; "loaded" != t.readyState && "complete" != t.readyState || this._handleTagComplete() } , e._handleError = function() { this._clean(), this.dispatchEvent("error") } , e._handleTagComplete = function() { this._rawResult = this._tag, this._result = this.resultFormatter && this.resultFormatter(this) || this._rawResult, this._clean(), this._showTag(), this.dispatchEvent("complete") } , e._handleTimeout = function() { this._clean(), this.dispatchEvent(new createjs.Event("timeout")) } , e._clean = function() { this._tag.onload = null, this._tag.onreadystatechange = null, this._tag.onerror = null, this._addedToDOM && null != this._tag.parentNode && this._tag.parentNode.removeChild(this._tag), clearTimeout(this._loadTimeout) } , e._hideTag = function() { this._startTagVisibility = this._tag.style.visibility, this._tag.style.visibility = "hidden" } , e._showTag = function() { this._tag.style.visibility = this._startTagVisibility } , e._handleStalled = function() {} , createjs.TagRequest = createjs.promote(t, "AbstractRequest") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, s) { this.AbstractRequest_constructor(t), this._tag = e, this._tagSrcAttribute = s, this._loadedHandler = createjs.proxy(this._handleTagComplete, this) } var e = createjs.extend(t, createjs.TagRequest); e.load = function() { var t = createjs.proxy(this._handleStalled, this); this._stalledCallback = t; var e = createjs.proxy(this._handleProgress, this); this._handleProgress = e, this._tag.addEventListener("stalled", t), this._tag.addEventListener("progress", e), this._tag.addEventListener && this._tag.addEventListener("canplaythrough", this._loadedHandler, !1), this.TagRequest_load() } , e._handleReadyStateChange = function() { clearTimeout(this._loadTimeout); var t = this._tag; "loaded" != t.readyState && "complete" != t.readyState || this._handleTagComplete() } , e._handleStalled = function() {} , e._handleProgress = function(t) { if (t && !(t.loaded > 0 && 0 == t.total)) { var e = new createjs.ProgressEvent(t.loaded,t.total); this.dispatchEvent(e) } } , e._clean = function() { this._tag.removeEventListener && this._tag.removeEventListener("canplaythrough", this._loadedHandler), this._tag.removeEventListener("stalled", this._stalledCallback), this._tag.removeEventListener("progress", this._progressCallback), this.TagRequest__clean() } , createjs.MediaTagRequest = createjs.promote(t, "TagRequest") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.AbstractRequest_constructor(t), this._request = null, this._loadTimeout = null, this._xhrLevel = 1, this._response = null, this._rawResponse = null, this._canceled = !1, this._handleLoadStartProxy = createjs.proxy(this._handleLoadStart, this), this._handleProgressProxy = createjs.proxy(this._handleProgress, this), this._handleAbortProxy = createjs.proxy(this._handleAbort, this), this._handleErrorProxy = createjs.proxy(this._handleError, this), this._handleTimeoutProxy = createjs.proxy(this._handleTimeout, this), this._handleLoadProxy = createjs.proxy(this._handleLoad, this), this._handleReadyStateChangeProxy = createjs.proxy(this._handleReadyStateChange, this), this._createXHR(t) } var e = createjs.extend(t, createjs.AbstractRequest); t.ACTIVEX_VERSIONS = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], e.getResult = function(t) { return t && this._rawResponse ? this._rawResponse : this._response } , e.cancel = function() { this.canceled = !0, this._clean(), this._request.abort() } , e.load = function() { if (null != this._request) { null != this._request.addEventListener ? (this._request.addEventListener("loadstart", this._handleLoadStartProxy, !1), this._request.addEventListener("progress", this._handleProgressProxy, !1), this._request.addEventListener("abort", this._handleAbortProxy, !1), this._request.addEventListener("error", this._handleErrorProxy, !1), this._request.addEventListener("timeout", this._handleTimeoutProxy, !1), this._request.addEventListener("load", this._handleLoadProxy, !1), this._request.addEventListener("readystatechange", this._handleReadyStateChangeProxy, !1)) : (this._request.onloadstart = this._handleLoadStartProxy, this._request.onprogress = this._handleProgressProxy, this._request.onabort = this._handleAbortProxy, this._request.onerror = this._handleErrorProxy, this._request.ontimeout = this._handleTimeoutProxy, this._request.onload = this._handleLoadProxy, this._request.onreadystatechange = this._handleReadyStateChangeProxy), 1 == this._xhrLevel && (this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), this._item.loadTimeout)); try { this._item.values ? this._request.send(createjs.URLUtils.formatQueryString(this._item.values)) : this._request.send() } catch (t) { this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND",null,t)) } } else this._handleError() } , e.setResponseType = function(t) { "blob" === t && (t = window.URL ? "blob" : "arraybuffer", this._responseType = t), this._request.responseType = t } , e.getAllResponseHeaders = function() { return this._request.getAllResponseHeaders instanceof Function ? this._request.getAllResponseHeaders() : null } , e.getResponseHeader = function(t) { return this._request.getResponseHeader instanceof Function ? this._request.getResponseHeader(t) : null } , e._handleProgress = function(t) { if (t && !(t.loaded > 0 && 0 == t.total)) { var e = new createjs.ProgressEvent(t.loaded,t.total); this.dispatchEvent(e) } } , e._handleLoadStart = function(t) { clearTimeout(this._loadTimeout), this.dispatchEvent("loadstart") } , e._handleAbort = function(t) { this._clean(), this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED",null,t)) } , e._handleError = function(t) { this._clean(), this.dispatchEvent(new createjs.ErrorEvent(t.message)) } , e._handleReadyStateChange = function(t) { 4 == this._request.readyState && this._handleLoad() } , e._handleLoad = function(t) { if (!this.loaded) { this.loaded = !0; var e = this._checkError(); if (e) this._handleError(e); else { if (this._response = this._getResponse(), "arraybuffer" === this._responseType) try { this._response = new Blob([this._response]) } catch (t) { if (window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, "TypeError" === t.name && window.BlobBuilder) { var s = new BlobBuilder; s.append(this._response), this._response = s.getBlob() } } this._clean(), this.dispatchEvent(new createjs.Event("complete")) } } } , e._handleTimeout = function(t) { this._clean(), this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT",null,t)) } , e._checkError = function() { var t = parseInt(this._request.status); return t >= 400 && t <= 599 ? new Error(t) : null } , e._getResponse = function() { if (null != this._response) return this._response; if (null != this._request.response) return this._request.response; try { if (null != this._request.responseText) return this._request.responseText } catch (t) {} try { if (null != this._request.responseXML) return this._request.responseXML } catch (t) {} return null } , e._createXHR = function(t) { var e = createjs.URLUtils.isCrossDomain(t) , i = {} , n = null; if (window.XMLHttpRequest) n = new XMLHttpRequest, e && void 0 === n.withCredentials && window.XDomainRequest && (n = new XDomainRequest); else { for (var r = 0, a = s.ACTIVEX_VERSIONS.length; r < a; r++) { var o = s.ACTIVEX_VERSIONS[r]; try { n = new ActiveXObject(o); break } catch (t) {} } if (null == n) return !1 } null == t.mimeType && createjs.RequestUtils.isText(t.type) && (t.mimeType = "text/plain; charset=utf-8"), t.mimeType && n.overrideMimeType && n.overrideMimeType(t.mimeType), this._xhrLevel = "string" == typeof n.responseType ? 2 : 1; var u = null; if (u = t.method == createjs.AbstractLoader.GET ? createjs.URLUtils.buildURI(t.src, t.values) : t.src, n.open(t.method || createjs.AbstractLoader.GET, u, !0), e && n instanceof XMLHttpRequest && 1 == this._xhrLevel && (i.Origin = location.origin), t.values && t.method == createjs.AbstractLoader.POST && (i["Content-Type"] = "application/x-www-form-urlencoded"), e || i["X-Requested-With"] || (i["X-Requested-With"] = "XMLHttpRequest"), t.headers) for (var c in t.headers) i[c] = t.headers[c]; for (c in i) n.setRequestHeader(c, i[c]); return n instanceof XMLHttpRequest && void 0 !== t.withCredentials && (n.withCredentials = t.withCredentials), this._request = n, !0 } , e._clean = function() { clearTimeout(this._loadTimeout), null != this._request.removeEventListener ? (this._request.removeEventListener("loadstart", this._handleLoadStartProxy), this._request.removeEventListener("progress", this._handleProgressProxy), this._request.removeEventListener("abort", this._handleAbortProxy), this._request.removeEventListener("error", this._handleErrorProxy), this._request.removeEventListener("timeout", this._handleTimeoutProxy), this._request.removeEventListener("load", this._handleLoadProxy), this._request.removeEventListener("readystatechange", this._handleReadyStateChangeProxy)) : (this._request.onloadstart = null, this._request.onprogress = null, this._request.onabort = null, this._request.onerror = null, this._request.ontimeout = null, this._request.onload = null, this._request.onreadystatechange = null) } , e.toString = function() { return "[PreloadJS XHRRequest]" } , createjs.XHRRequest = createjs.promote(t, "AbstractRequest") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e) { this.AbstractMediaLoader_constructor(t, e, createjs.AbstractLoader.SOUND), createjs.DomUtils.isAudioTag(t) ? this._tag = t : createjs.DomUtils.isAudioTag(t.src) ? this._tag = t : createjs.DomUtils.isAudioTag(t.tag) && (this._tag = createjs.DomUtils.isAudioTag(t) ? t : t.src), null != this._tag && (this._preferXHR = !1) } var e = createjs.extend(t, createjs.AbstractMediaLoader); t.canLoadItem = function(t) { return t.type == createjs.AbstractLoader.SOUND } , e._createTag = function(t) { var e = createjs.Elements.audio(); return e.autoplay = !1, e.preload = "none", e.src = t, e } , createjs.SoundLoader = createjs.promote(t, "AbstractMediaLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; var t = function() { this.interrupt = null, this.delay = null, this.offset = null, this.loop = null, this.volume = null, this.pan = null, this.startTime = null, this.duration = null } , e = t.prototype = {} , s = t; s.create = function(t) { if (t instanceof s || t instanceof Object) { var e = new createjs.PlayPropsConfig; return e.set(t), e } throw new Error("Type not recognized.") } , e.set = function(t) { for (var e in t) this[e] = t[e]; return this } , e.toString = function() { return "[PlayPropsConfig]" } , createjs.PlayPropsConfig = s }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "Sound cannot be instantiated" } var e = t; function s(t, e) { this.init(t, e) } e.INTERRUPT_ANY = "any", e.INTERRUPT_EARLY = "early", e.INTERRUPT_LATE = "late", e.INTERRUPT_NONE = "none", e.PLAY_INITED = "playInited", e.PLAY_SUCCEEDED = "playSucceeded", e.PLAY_INTERRUPTED = "playInterrupted", e.PLAY_FINISHED = "playFinished", e.PLAY_FAILED = "playFailed", e.SUPPORTED_EXTENSIONS = ["mp3", "ogg", "opus", "mpeg", "wav", "m4a", "mp4", "aiff", "wma", "mid"], e.EXTENSION_MAP = { m4a: "mp4" }, e.FILE_PATTERN = /^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([/.]*?(?:[^?]+)?\/)?((?:[^/?]+)\.(\w+))(?:\?(\S+)?)?$/, e.defaultInterruptBehavior = e.INTERRUPT_NONE, e.alternateExtensions = [], e.activePlugin = null, e._masterVolume = 1, Object.defineProperty(e, "volume", { get: function() { return this._masterVolume }, set: function(t) { if (null == Number(t)) return !1; if (t = Math.max(0, Math.min(1, t)), e._masterVolume = t, !this.activePlugin || !this.activePlugin.setVolume || !this.activePlugin.setVolume(t)) for (var s = this._instances, i = 0, n = s.length; i < n; i++) s[i].setMasterVolume(t) } }), e._masterMute = !1, Object.defineProperty(e, "muted", { get: function() { return this._masterMute }, set: function(t) { if (null == t) return !1; if (this._masterMute = t, !this.activePlugin || !this.activePlugin.setMute || !this.activePlugin.setMute(t)) for (var e = this._instances, s = 0, i = e.length; s < i; s++) e[s].setMasterMute(t); return !0 } }), Object.defineProperty(e, "capabilities", { get: function() { return null == e.activePlugin ? null : e.activePlugin._capabilities }, set: function(t) { return !1 } }), e._pluginsRegistered = !1, e._lastID = 0, e._instances = [], e._idHash = {}, e._preloadHash = {}, e._defaultPlayPropsHash = {}, e.addEventListener = null, e.removeEventListener = null, e.removeAllEventListeners = null, e.dispatchEvent = null, e.hasEventListener = null, e._listeners = null, createjs.EventDispatcher.initialize(e), e.getPreloadHandlers = function() { return { callback: createjs.proxy(e.initLoad, e), types: ["sound"], extensions: e.SUPPORTED_EXTENSIONS } } , e._handleLoadComplete = function(t) { var s = t.target.getItem().src; if (e._preloadHash[s]) for (var i = 0, n = e._preloadHash[s].length; i < n; i++) { var r = e._preloadHash[s][i]; if (e._preloadHash[s][i] = !0, e.hasEventListener("fileload")) (t = new createjs.Event("fileload")).src = r.src, t.id = r.id, t.data = r.data, t.sprite = r.sprite, e.dispatchEvent(t) } } , e._handleLoadError = function(t) { var s = t.target.getItem().src; if (e._preloadHash[s]) for (var i = 0, n = e._preloadHash[s].length; i < n; i++) { var r = e._preloadHash[s][i]; if (e._preloadHash[s][i] = !1, e.hasEventListener("fileerror")) (t = new createjs.Event("fileerror")).src = r.src, t.id = r.id, t.data = r.data, t.sprite = r.sprite, e.dispatchEvent(t) } } , e._registerPlugin = function(t) { return !!t.isSupported() && (e.activePlugin = new t, !0) } , e.registerPlugins = function(t) { e._pluginsRegistered = !0; for (var s = 0, i = t.length; s < i; s++) if (e._registerPlugin(t[s])) return !0; return !1 } , e.initializeDefaultPlugins = function() { return null != e.activePlugin || !e._pluginsRegistered && !!e.registerPlugins([createjs.WebAudioPlugin, createjs.HTMLAudioPlugin]) } , e.isReady = function() { return null != e.activePlugin } , e.getCapabilities = function() { return null == e.activePlugin ? null : e.activePlugin._capabilities } , e.getCapability = function(t) { return null == e.activePlugin ? null : e.activePlugin._capabilities[t] } , e.initLoad = function(t) { return e._registerSound(t) } , e._registerSound = function(t) { if (!e.initializeDefaultPlugins()) return !1; var i; if (t.src instanceof Object ? (i = e._parseSrc(t.src)).src = t.path + i.src : i = e._parsePath(t.src), null == i) return !1; t.src = i.src, t.type = "sound"; var n = t.data , r = null; if (null != n && (isNaN(n.channels) ? isNaN(n) || (r = parseInt(n)) : r = parseInt(n.channels), n.audioSprite)) for (var a, o = n.audioSprite.length; o--; ) a = n.audioSprite[o], e._idHash[a.id] = { src: t.src, startTime: parseInt(a.startTime), duration: parseInt(a.duration) }, a.defaultPlayProps && (e._defaultPlayPropsHash[a.id] = createjs.PlayPropsConfig.create(a.defaultPlayProps)); null != t.id && (e._idHash[t.id] = { src: t.src }); var u = e.activePlugin.register(t); return s.create(t.src, r), null != n && isNaN(n) ? t.data.channels = r || s.maxPerChannel() : t.data = r || s.maxPerChannel(), u.type && (t.type = u.type), t.defaultPlayProps && (e._defaultPlayPropsHash[t.src] = createjs.PlayPropsConfig.create(t.defaultPlayProps)), u } , e.registerSound = function(t, s, i, n, r) { var a = { src: t, id: s, data: i, defaultPlayProps: r }; t instanceof Object && t.src && (n = s, a = t), (a = createjs.LoadItem.create(a)).path = n, null == n || a.src instanceof Object || (a.src = n + a.src); var o = e._registerSound(a); if (!o) return !1; if (e._preloadHash[a.src] || (e._preloadHash[a.src] = []), e._preloadHash[a.src].push(a), 1 == e._preloadHash[a.src].length) o.on("complete", this._handleLoadComplete, this), o.on("error", this._handleLoadError, this), e.activePlugin.preload(o); else if (1 == e._preloadHash[a.src][0]) return !0; return a } , e.registerSounds = function(t, e) { var s = []; t.path && (e ? e += t.path : e = t.path, t = t.manifest); for (var i = 0, n = t.length; i < n; i++) s[i] = createjs.Sound.registerSound(t[i].src, t[i].id, t[i].data, e, t[i].defaultPlayProps); return s } , e.removeSound = function(t, i) { if (null == e.activePlugin) return !1; var n; if (t instanceof Object && t.src && (t = t.src), t instanceof Object ? n = e._parseSrc(t) : (t = e._getSrcById(t).src, n = e._parsePath(t)), null == n) return !1; for (var r in t = n.src, null != i && (t = i + t), e._idHash) e._idHash[r].src == t && delete e._idHash[r]; return s.removeSrc(t), delete e._preloadHash[t], e.activePlugin.removeSound(t), !0 } , e.removeSounds = function(t, e) { var s = []; t.path && (e ? e += t.path : e = t.path, t = t.manifest); for (var i = 0, n = t.length; i < n; i++) s[i] = createjs.Sound.removeSound(t[i].src, e); return s } , e.removeAllSounds = function() { e._idHash = {}, e._preloadHash = {}, s.removeAll(), e.activePlugin && e.activePlugin.removeAllSounds() } , e.loadComplete = function(t) { if (!e.isReady()) return !1; var s = e._parsePath(t); return t = s ? e._getSrcById(s.src).src : e._getSrcById(t).src, void 0 != e._preloadHash[t] && 1 == e._preloadHash[t][0] } , e._parsePath = function(t) { "string" != typeof t && (t = t.toString()); var s = t.match(e.FILE_PATTERN); if (null == s) return !1; for (var i = s[4], n = s[5], r = e.capabilities, a = 0; !r[n]; ) if (n = e.alternateExtensions[a++], a > e.alternateExtensions.length) return null; return { name: i, src: t = t.replace("." + s[5], "." + n), extension: n } } , e._parseSrc = function(t) { var s = { name: void 0, src: void 0, extension: void 0 } , i = e.capabilities; for (var n in t) if (t.hasOwnProperty(n) && i[n]) { s.src = t[n], s.extension = n; break } if (!s.src) return !1; var r = s.src.lastIndexOf("/"); return s.name = -1 != r ? s.src.slice(r + 1) : s.src, s } , e.play = function(t, s, i, n, r, a, o, u, c) { var l; l = s instanceof Object || s instanceof createjs.PlayPropsConfig ? createjs.PlayPropsConfig.create(s) : createjs.PlayPropsConfig.create({ interrupt: s, delay: i, offset: n, loop: r, volume: a, pan: o, startTime: u, duration: c }); var h = e.createInstance(t, l.startTime, l.duration); return e._playInstance(h, l) || h._playFailed(), h } , e.createInstance = function(t, i, n) { if (!e.initializeDefaultPlugins()) return new createjs.DefaultSoundInstance(t,i,n); var r = e._defaultPlayPropsHash[t]; t = e._getSrcById(t); var a = e._parsePath(t.src) , o = null; return null != a && null != a.src ? (s.create(a.src), null == i && (i = t.startTime), o = e.activePlugin.create(a.src, i, n || t.duration), (r = r || e._defaultPlayPropsHash[a.src]) && o.applyPlayProps(r)) : o = new createjs.DefaultSoundInstance(t,i,n), o.uniqueId = e._lastID++, o } , e.stop = function() { for (var t = this._instances, e = t.length; e--; ) t[e].stop() } , e.setVolume = function(t) { if (null == Number(t)) return !1; if (t = Math.max(0, Math.min(1, t)), e._masterVolume = t, !this.activePlugin || !this.activePlugin.setVolume || !this.activePlugin.setVolume(t)) for (var s = this._instances, i = 0, n = s.length; i < n; i++) s[i].setMasterVolume(t) } , e.getVolume = function() { return this._masterVolume } , e.setMute = function(t) { if (null == t) return !1; if (this._masterMute = t, !this.activePlugin || !this.activePlugin.setMute || !this.activePlugin.setMute(t)) for (var e = this._instances, s = 0, i = e.length; s < i; s++) e[s].setMasterMute(t); return !0 } , e.getMute = function() { return this._masterMute } , e.setDefaultPlayProps = function(t, s) { t = e._getSrcById(t), e._defaultPlayPropsHash[e._parsePath(t.src).src] = createjs.PlayPropsConfig.create(s) } , e.getDefaultPlayProps = function(t) { return t = e._getSrcById(t), e._defaultPlayPropsHash[e._parsePath(t.src).src] } , e._playInstance = function(t, s) { var i = e._defaultPlayPropsHash[t.src] || {}; if (null == s.interrupt && (s.interrupt = i.interrupt || e.defaultInterruptBehavior), null == s.delay && (s.delay = i.delay || 0), null == s.offset && (s.offset = t.getPosition()), null == s.loop && (s.loop = t.loop), null == s.volume && (s.volume = t.volume), null == s.pan && (s.pan = t.pan), 0 == s.delay) { if (!e._beginPlaying(t, s)) return !1 } else { var n = setTimeout(function() { e._beginPlaying(t, s) }, s.delay); t.delayTimeoutId = n } return this._instances.push(t), !0 } , e._beginPlaying = function(t, e) { if (!s.add(t, e.interrupt)) return !1; if (!t._beginPlaying(e)) { var i = createjs.indexOf(this._instances, t); return i > -1 && this._instances.splice(i, 1), !1 } return !0 } , e._getSrcById = function(t) { return e._idHash[t] || { src: t } } , e._playFinished = function(t) { s.remove(t); var e = createjs.indexOf(this._instances, t); e > -1 && this._instances.splice(e, 1) } , createjs.Sound = t, s.channels = {}, s.create = function(t, e) { return null == s.get(t) && (s.channels[t] = new s(t,e), !0) } , s.removeSrc = function(t) { var e = s.get(t); return null != e && (e._removeAll(), delete s.channels[t], !0) } , s.removeAll = function() { for (var t in s.channels) s.channels[t]._removeAll(); s.channels = {} } , s.add = function(t, e) { var i = s.get(t.src); return null != i && i._add(t, e) } , s.remove = function(t) { var e = s.get(t.src); return null != e && (e._remove(t), !0) } , s.maxPerChannel = function() { return i.maxDefault } , s.get = function(t) { return s.channels[t] } ; var i = s.prototype; i.constructor = s, i.src = null, i.max = null, i.maxDefault = 100, i.length = 0, i.init = function(t, e) { this.src = t, this.max = e || this.maxDefault, -1 == this.max && (this.max = this.maxDefault), this._instances = [] } , i._get = function(t) { return this._instances[t] } , i._add = function(t, e) { return !!this._getSlot(e, t) && (this._instances.push(t), this.length++, !0) } , i._remove = function(t) { var e = createjs.indexOf(this._instances, t); return -1 != e && (this._instances.splice(e, 1), this.length--, !0) } , i._removeAll = function() { for (var t = this.length - 1; t >= 0; t--) this._instances[t].stop() } , i._getSlot = function(e, s) { var i, n; if (e != t.INTERRUPT_NONE && null == (n = this._get(0))) return !0; for (var r = 0, a = this.max; r < a; r++) { if (null == (i = this._get(r))) return !0; if (i.playState == t.PLAY_FINISHED || i.playState == t.PLAY_INTERRUPTED || i.playState == t.PLAY_FAILED) { n = i; break } e != t.INTERRUPT_NONE && ((e == t.INTERRUPT_EARLY && i.getPosition() < n.getPosition() || e == t.INTERRUPT_LATE && i.getPosition() > n.getPosition()) && (n = i)) } return null != n && (n._interrupt(), this._remove(n), !0) } , i.toString = function() { return "[Sound SoundChannel]" } }(), this.createjs = this.createjs || {}, function() { "use strict"; var t = function(t, e, s, i) { this.EventDispatcher_constructor(), this.src = t, this.uniqueId = -1, this.playState = null, this.delayTimeoutId = null, this._volume = 1, Object.defineProperty(this, "volume", { get: this.getVolume, set: this.setVolume }), this._pan = 0, Object.defineProperty(this, "pan", { get: this.getPan, set: this.setPan }), this._startTime = Math.max(0, e || 0), Object.defineProperty(this, "startTime", { get: this.getStartTime, set: this.setStartTime }), this._duration = Math.max(0, s || 0), Object.defineProperty(this, "duration", { get: this.getDuration, set: this.setDuration }), this._playbackResource = null, Object.defineProperty(this, "playbackResource", { get: this.getPlaybackResource, set: this.setPlaybackResource }), !1 !== i && !0 !== i && this.setPlaybackResource(i), this._position = 0, Object.defineProperty(this, "position", { get: this.getPosition, set: this.setPosition }), this._loop = 0, Object.defineProperty(this, "loop", { get: this.getLoop, set: this.setLoop }), this._muted = !1, Object.defineProperty(this, "muted", { get: this.getMuted, set: this.setMuted }), this._paused = !1, Object.defineProperty(this, "paused", { get: this.getPaused, set: this.setPaused }) } , e = createjs.extend(t, createjs.EventDispatcher); e.play = function(t, e, s, i, n, r) { var a; return a = t instanceof Object || t instanceof createjs.PlayPropsConfig ? createjs.PlayPropsConfig.create(t) : createjs.PlayPropsConfig.create({ interrupt: t, delay: e, offset: s, loop: i, volume: n, pan: r }), this.playState == createjs.Sound.PLAY_SUCCEEDED ? (this.applyPlayProps(a), void (this._paused && this.setPaused(!1))) : (this._cleanUp(), createjs.Sound._playInstance(this, a), this) } , e.stop = function() { return this._position = 0, this._paused = !1, this._handleStop(), this._cleanUp(), this.playState = createjs.Sound.PLAY_FINISHED, this } , e.destroy = function() { this._cleanUp(), this.src = null, this.playbackResource = null, this.removeAllEventListeners() } , e.applyPlayProps = function(t) { return null != t.offset && this.setPosition(t.offset), null != t.loop && this.setLoop(t.loop), null != t.volume && this.setVolume(t.volume), null != t.pan && this.setPan(t.pan), null != t.startTime && (this.setStartTime(t.startTime), this.setDuration(t.duration)), this } , e.toString = function() { return "[AbstractSoundInstance]" } , e.getPaused = function() { return this._paused } , e.setPaused = function(t) { if (!(!0 !== t && !1 !== t || this._paused == t || 1 == t && this.playState != createjs.Sound.PLAY_SUCCEEDED)) return this._paused = t, t ? this._pause() : this._resume(), clearTimeout(this.delayTimeoutId), this } , e.setVolume = function(t) { return t == this._volume ? this : (this._volume = Math.max(0, Math.min(1, t)), this._muted || this._updateVolume(), this) } , e.getVolume = function() { return this._volume } , e.setMuted = function(t) { if (!0 === t || !1 === t) return this._muted = t, this._updateVolume(), this } , e.getMuted = function() { return this._muted } , e.setPan = function(t) { return t == this._pan ? this : (this._pan = Math.max(-1, Math.min(1, t)), this._updatePan(), this) } , e.getPan = function() { return this._pan } , e.getPosition = function() { return this._paused || this.playState != createjs.Sound.PLAY_SUCCEEDED || (this._position = this._calculateCurrentPosition()), this._position } , e.setPosition = function(t) { return this._position = Math.max(0, t), this.playState == createjs.Sound.PLAY_SUCCEEDED && this._updatePosition(), this } , e.getStartTime = function() { return this._startTime } , e.setStartTime = function(t) { return t == this._startTime ? this : (this._startTime = Math.max(0, t || 0), this._updateStartTime(), this) } , e.getDuration = function() { return this._duration } , e.setDuration = function(t) { return t == this._duration ? this : (this._duration = Math.max(0, t || 0), this._updateDuration(), this) } , e.setPlaybackResource = function(t) { return this._playbackResource = t, 0 == this._duration && this._setDurationFromSource(), this } , e.getPlaybackResource = function() { return this._playbackResource } , e.getLoop = function() { return this._loop } , e.setLoop = function(t) { null != this._playbackResource && (0 != this._loop && 0 == t ? this._removeLooping(t) : 0 == this._loop && 0 != t && this._addLooping(t)), this._loop = t } , e._sendEvent = function(t) { var e = new createjs.Event(t); this.dispatchEvent(e) } , e._cleanUp = function() { clearTimeout(this.delayTimeoutId), this._handleCleanUp(), this._paused = !1, createjs.Sound._playFinished(this) } , e._interrupt = function() { this._cleanUp(), this.playState = createjs.Sound.PLAY_INTERRUPTED, this._sendEvent("interrupted") } , e._beginPlaying = function(t) { return this.setPosition(t.offset), this.setLoop(t.loop), this.setVolume(t.volume), this.setPan(t.pan), null != t.startTime && (this.setStartTime(t.startTime), this.setDuration(t.duration)), null != this._playbackResource && this._position < this._duration ? (this._paused = !1, this._handleSoundReady(), this.playState = createjs.Sound.PLAY_SUCCEEDED, this._sendEvent("succeeded"), !0) : (this._playFailed(), !1) } , e._playFailed = function() { this._cleanUp(), this.playState = createjs.Sound.PLAY_FAILED, this._sendEvent("failed") } , e._handleSoundComplete = function(t) { if (this._position = 0, 0 != this._loop) return this._loop--, this._handleLoop(), void this._sendEvent("loop"); this._cleanUp(), this.playState = createjs.Sound.PLAY_FINISHED, this._sendEvent("complete") } , e._handleSoundReady = function() {} , e._updateVolume = function() {} , e._updatePan = function() {} , e._updateStartTime = function() {} , e._updateDuration = function() {} , e._setDurationFromSource = function() {} , e._calculateCurrentPosition = function() {} , e._updatePosition = function() {} , e._removeLooping = function(t) {} , e._addLooping = function(t) {} , e._pause = function() {} , e._resume = function() {} , e._handleStop = function() {} , e._handleCleanUp = function() {} , e._handleLoop = function() {} , createjs.AbstractSoundInstance = createjs.promote(t, "EventDispatcher"), createjs.DefaultSoundInstance = createjs.AbstractSoundInstance }(), this.createjs = this.createjs || {}, function() { "use strict"; var t = function() { this._capabilities = null, this._loaders = {}, this._audioSources = {}, this._soundInstances = {}, this._volume = 1, this._loaderClass, this._soundInstanceClass } , e = t.prototype; t._capabilities = null, t.isSupported = function() { return !0 } , e.register = function(t) { var e = this._loaders[t.src]; return e && !e.canceled ? this._loaders[t.src] : (this._audioSources[t.src] = !0, this._soundInstances[t.src] = [], (e = new this._loaderClass(t)).on("complete", this._handlePreloadComplete, this), this._loaders[t.src] = e, e) } , e.preload = function(t) { t.on("error", this._handlePreloadError, this), t.load() } , e.isPreloadStarted = function(t) { return null != this._audioSources[t] } , e.isPreloadComplete = function(t) { return !(null == this._audioSources[t] || 1 == this._audioSources[t]) } , e.removeSound = function(t) { if (this._soundInstances[t]) { for (var e = this._soundInstances[t].length; e--; ) { this._soundInstances[t][e].destroy() } delete this._soundInstances[t], delete this._audioSources[t], this._loaders[t] && this._loaders[t].destroy(), delete this._loaders[t] } } , e.removeAllSounds = function() { for (var t in this._audioSources) this.removeSound(t) } , e.create = function(t, e, s) { this.isPreloadStarted(t) || this.preload(this.register(t)); var i = new this._soundInstanceClass(t,e,s,this._audioSources[t]); return this._soundInstances[t] && this._soundInstances[t].push(i), i } , e.setVolume = function(t) { return this._volume = t, this._updateVolume(), !0 } , e.getVolume = function() { return this._volume } , e.setMute = function(t) { return this._updateVolume(), !0 } , e.toString = function() { return "[AbstractPlugin]" } , e._handlePreloadComplete = function(t) { var e = t.target.getItem().src; this._audioSources[e] = t.result; for (var s = 0, i = this._soundInstances[e].length; s < i; s++) { this._soundInstances[e][s].setPlaybackResource(this._audioSources[e]), this._soundInstances[e] = null } } , e._handlePreloadError = function(t) {} , e._updateVolume = function() {} , createjs.AbstractPlugin = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t) { this.AbstractLoader_constructor(t, !0, createjs.AbstractLoader.SOUND) } var e = createjs.extend(t, createjs.AbstractLoader); t.context = null, e.toString = function() { return "[WebAudioLoader]" } , e._createRequest = function() { this._request = new createjs.XHRRequest(this._item,!1), this._request.setResponseType("arraybuffer") } , e._sendComplete = function(e) { t.context.decodeAudioData(this._rawResult, createjs.proxy(this._handleAudioDecoded, this), createjs.proxy(this._sendError, this)) } , e._handleAudioDecoded = function(t) { this._result = t, this.AbstractLoader__sendComplete() } , createjs.WebAudioLoader = createjs.promote(t, "AbstractLoader") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i, n) { this.AbstractSoundInstance_constructor(t, e, i, n), this.gainNode = s.context.createGain(), this.panNode = s.context.createPanner(), this.panNode.panningModel = s._panningModel, this.panNode.connect(this.gainNode), this._updatePan(), this.sourceNode = null, this._soundCompleteTimeout = null, this._sourceNodeNext = null, this._playbackStartTime = 0, this._endedHandler = createjs.proxy(this._handleSoundComplete, this) } var e = createjs.extend(t, createjs.AbstractSoundInstance) , s = t; s.context = null, s._scratchBuffer = null, s.destinationNode = null, s._panningModel = "equalpower", e.destroy = function() { this.AbstractSoundInstance_destroy(), this.panNode.disconnect(0), this.panNode = null, this.gainNode.disconnect(0), this.gainNode = null } , e.toString = function() { return "[WebAudioSoundInstance]" } , e._updatePan = function() { this.panNode.setPosition(this._pan, 0, -.5) } , e._removeLooping = function(t) { this._sourceNodeNext = this._cleanUpAudioNode(this._sourceNodeNext) } , e._addLooping = function(t) { this.playState == createjs.Sound.PLAY_SUCCEEDED && (this._sourceNodeNext = this._createAndPlayAudioNode(this._playbackStartTime, 0)) } , e._setDurationFromSource = function() { this._duration = 1e3 * this.playbackResource.duration } , e._handleCleanUp = function() { this.sourceNode && this.playState == createjs.Sound.PLAY_SUCCEEDED && (this.sourceNode = this._cleanUpAudioNode(this.sourceNode), this._sourceNodeNext = this._cleanUpAudioNode(this._sourceNodeNext)), 0 != this.gainNode.numberOfOutputs && this.gainNode.disconnect(0), clearTimeout(this._soundCompleteTimeout), this._playbackStartTime = 0 } , e._cleanUpAudioNode = function(t) { if (t) { t.stop(0), t.disconnect(0); try { t.buffer = s._scratchBuffer } catch (t) {} t = null } return t } , e._handleSoundReady = function(t) { this.gainNode.connect(s.destinationNode); var e = .001 * this._duration , i = .001 * this._position; i > e && (i = e), this.sourceNode = this._createAndPlayAudioNode(s.context.currentTime - e, i), this._playbackStartTime = this.sourceNode.startTime - i, this._soundCompleteTimeout = setTimeout(this._endedHandler, 1e3 * (e - i)), 0 != this._loop && (this._sourceNodeNext = this._createAndPlayAudioNode(this._playbackStartTime, 0)) } , e._createAndPlayAudioNode = function(t, e) { var i = s.context.createBufferSource(); i.buffer = this.playbackResource, i.connect(this.panNode); var n = .001 * this._duration; return i.startTime = t + n, i.start(i.startTime, e + .001 * this._startTime, n - e), i } , e._pause = function() { this._position = 1e3 * (s.context.currentTime - this._playbackStartTime), this.sourceNode = this._cleanUpAudioNode(this.sourceNode), this._sourceNodeNext = this._cleanUpAudioNode(this._sourceNodeNext), 0 != this.gainNode.numberOfOutputs && this.gainNode.disconnect(0), clearTimeout(this._soundCompleteTimeout) } , e._resume = function() { this._handleSoundReady() } , e._updateVolume = function() { var t = this._muted ? 0 : this._volume; t != this.gainNode.gain.value && (this.gainNode.gain.value = t) } , e._calculateCurrentPosition = function() { return 1e3 * (s.context.currentTime - this._playbackStartTime) } , e._updatePosition = function() { this.sourceNode = this._cleanUpAudioNode(this.sourceNode), this._sourceNodeNext = this._cleanUpAudioNode(this._sourceNodeNext), clearTimeout(this._soundCompleteTimeout), this._paused || this._handleSoundReady() } , e._handleLoop = function() { this._cleanUpAudioNode(this.sourceNode), this.sourceNode = this._sourceNodeNext, this._playbackStartTime = this.sourceNode.startTime, this._sourceNodeNext = this._createAndPlayAudioNode(this._playbackStartTime, 0), this._soundCompleteTimeout = setTimeout(this._endedHandler, this._duration) } , e._updateDuration = function() { this.playState == createjs.Sound.PLAY_SUCCEEDED && (this._pause(), this._resume()) } , createjs.WebAudioSoundInstance = createjs.promote(t, "AbstractSoundInstance") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { this.AbstractPlugin_constructor(), this._panningModel = s._panningModel, this.context = s.context, this.dynamicsCompressorNode = this.context.createDynamicsCompressor(), this.dynamicsCompressorNode.connect(this.context.destination), this.gainNode = this.context.createGain(), this.gainNode.connect(this.dynamicsCompressorNode), createjs.WebAudioSoundInstance.destinationNode = this.gainNode, this._capabilities = s._capabilities, this._loaderClass = createjs.WebAudioLoader, this._soundInstanceClass = createjs.WebAudioSoundInstance, this._addPropsToClasses() } var e = createjs.extend(t, createjs.AbstractPlugin) , s = t; s._capabilities = null, s._panningModel = "equalpower", s.context = null, s._scratchBuffer = null, s._unlocked = !1, s.isSupported = function() { var t = createjs.BrowserDetect.isIOS || createjs.BrowserDetect.isAndroid || createjs.BrowserDetect.isBlackberry; return !("file:" == location.protocol && !t && !this._isFileXHRSupported()) && (s._generateCapabilities(), null != s.context) } , s.playEmptySound = function() { if (null != s.context) { var t = s.context.createBufferSource(); t.buffer = s._scratchBuffer, t.connect(s.context.destination), t.start(0, 0, 0) } } , s._isFileXHRSupported = function() { var t = !0 , e = new XMLHttpRequest; try { e.open("GET", "WebAudioPluginTest.fail", !1) } catch (e) { return t = !1 } e.onerror = function() { t = !1 } , e.onload = function() { t = 404 == this.status || 200 == this.status || 0 == this.status && "" != this.response } ; try { e.send() } catch (e) { t = !1 } return t } , s._generateCapabilities = function() { if (null == s._capabilities) { var t = document.createElement("audio"); if (null == t.canPlayType) return null; if (null == s.context) if (window.AudioContext) s.context = new AudioContext; else { if (!window.webkitAudioContext) return null; s.context = new webkitAudioContext } null == s._scratchBuffer && (s._scratchBuffer = s.context.createBuffer(1, 1, 22050)), s._compatibilitySetUp(), "ontouchstart"in window && "running" != s.context.state && (s._unlock(), document.addEventListener("mousedown", s._unlock, !0), document.addEventListener("touchend", s._unlock, !0)), s._capabilities = { panning: !0, volume: !0, tracks: -1 }; for (var e = createjs.Sound.SUPPORTED_EXTENSIONS, i = createjs.Sound.EXTENSION_MAP, n = 0, r = e.length; n < r; n++) { var a = e[n] , o = i[a] || a; s._capabilities[a] = "no" != t.canPlayType("audio/" + a) && "" != t.canPlayType("audio/" + a) || "no" != t.canPlayType("audio/" + o) && "" != t.canPlayType("audio/" + o) } s.context.destination.numberOfChannels < 2 && (s._capabilities.panning = !1) } } , s._compatibilitySetUp = function() { if (s._panningModel = "equalpower", !s.context.createGain) { s.context.createGain = s.context.createGainNode; var t = s.context.createBufferSource(); t.__proto__.start = t.__proto__.noteGrainOn, t.__proto__.stop = t.__proto__.noteOff, s._panningModel = 0 } } , s._unlock = function() { s._unlocked || (s.playEmptySound(), "running" == s.context.state && (document.removeEventListener("mousedown", s._unlock, !0), document.removeEventListener("touchend", s._unlock, !0), s._unlocked = !0)) } , e.toString = function() { return "[WebAudioPlugin]" } , e._addPropsToClasses = function() { var t = this._soundInstanceClass; t.context = this.context, t._scratchBuffer = s._scratchBuffer, t.destinationNode = this.gainNode, t._panningModel = this._panningModel, this._loaderClass.context = this.context } , e._updateVolume = function() { var t = createjs.Sound._masterMute ? 0 : this._volume; t != this.gainNode.gain.value && (this.gainNode.gain.value = t) } , createjs.WebAudioPlugin = createjs.promote(t, "AbstractPlugin") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "HTMLAudioTagPool cannot be instantiated" } var e = t; function s(t) { this._tags = [] } e._tags = {}, e._tagPool = new s, e._tagUsed = {}, e.get = function(t) { var s = e._tags[t]; return null == s ? (s = e._tags[t] = e._tagPool.get()).src = t : e._tagUsed[t] ? (s = e._tagPool.get()).src = t : e._tagUsed[t] = !0, s } , e.set = function(t, s) { s == e._tags[t] ? e._tagUsed[t] = !1 : e._tagPool.set(s) } , e.remove = function(t) { var s = e._tags[t]; return null != s && (e._tagPool.set(s), delete e._tags[t], delete e._tagUsed[t], !0) } , e.getDuration = function(t) { var s = e._tags[t]; return null != s && s.duration ? 1e3 * s.duration : 0 } , createjs.HTMLAudioTagPool = t; var i = s.prototype; i.constructor = s, i.get = function() { var t; return null == (t = 0 == this._tags.length ? this._createTag() : this._tags.pop()).parentNode && document.body.appendChild(t), t } , i.set = function(t) { -1 == createjs.indexOf(this._tags, t) && (this._tags.src = null, this._tags.push(t)) } , i.toString = function() { return "[TagPool]" } , i._createTag = function() { var t = document.createElement("audio"); return t.autoplay = !1, t.preload = "none", t } }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, s, i) { this.AbstractSoundInstance_constructor(t, e, s, i), this._audioSpriteStopTime = null, this._delayTimeoutId = null, this._endedHandler = createjs.proxy(this._handleSoundComplete, this), this._readyHandler = createjs.proxy(this._handleTagReady, this), this._stalledHandler = createjs.proxy(this._playFailed, this), this._audioSpriteEndHandler = createjs.proxy(this._handleAudioSpriteLoop, this), this._loopHandler = createjs.proxy(this._handleSoundComplete, this), s ? this._audioSpriteStopTime = .001 * (e + s) : this._duration = createjs.HTMLAudioTagPool.getDuration(this.src) } var e = createjs.extend(t, createjs.AbstractSoundInstance); e.setMasterVolume = function(t) { this._updateVolume() } , e.setMasterMute = function(t) { this._updateVolume() } , e.toString = function() { return "[HTMLAudioSoundInstance]" } , e._removeLooping = function() { null != this._playbackResource && (this._playbackResource.loop = !1, this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, !1)) } , e._addLooping = function() { null == this._playbackResource || this._audioSpriteStopTime || (this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, !1), this._playbackResource.loop = !0) } , e._handleCleanUp = function() { var t = this._playbackResource; if (null != t) { t.pause(), t.loop = !1, t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED, this._endedHandler, !1), t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY, this._readyHandler, !1), t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED, this._stalledHandler, !1), t.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, !1), t.removeEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE, this._audioSpriteEndHandler, !1); try { t.currentTime = this._startTime } catch (t) {} createjs.HTMLAudioTagPool.set(this.src, t), this._playbackResource = null } } , e._beginPlaying = function(t) { return this._playbackResource = createjs.HTMLAudioTagPool.get(this.src), this.AbstractSoundInstance__beginPlaying(t) } , e._handleSoundReady = function(t) { if (4 !== this._playbackResource.readyState) { var e = this._playbackResource; return e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY, this._readyHandler, !1), e.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED, this._stalledHandler, !1), e.preload = "auto", void e.load() } this._updateVolume(), this._playbackResource.currentTime = .001 * (this._startTime + this._position), this._audioSpriteStopTime ? this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE, this._audioSpriteEndHandler, !1) : (this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED, this._endedHandler, !1), 0 != this._loop && (this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, !1), this._playbackResource.loop = !0)), this._playbackResource.play() } , e._handleTagReady = function(t) { this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY, this._readyHandler, !1), this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED, this._stalledHandler, !1), this._handleSoundReady() } , e._pause = function() { this._playbackResource.pause() } , e._resume = function() { this._playbackResource.play() } , e._updateVolume = function() { if (null != this._playbackResource) { var t = this._muted || createjs.Sound._masterMute ? 0 : this._volume * createjs.Sound._masterVolume; t != this._playbackResource.volume && (this._playbackResource.volume = t) } } , e._calculateCurrentPosition = function() { return 1e3 * this._playbackResource.currentTime - this._startTime } , e._updatePosition = function() { this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, !1), this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._handleSetPositionSeek, !1); try { this._playbackResource.currentTime = .001 * (this._position + this._startTime) } catch (t) { this._handleSetPositionSeek(null) } } , e._handleSetPositionSeek = function(t) { null != this._playbackResource && (this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._handleSetPositionSeek, !1), this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, !1)) } , e._handleAudioSpriteLoop = function(t) { this._playbackResource.currentTime <= this._audioSpriteStopTime || (this._playbackResource.pause(), 0 == this._loop ? this._handleSoundComplete(null) : (this._position = 0, this._loop--, this._playbackResource.currentTime = .001 * this._startTime, this._paused || this._playbackResource.play(), this._sendEvent("loop"))) } , e._handleLoop = function(t) { 0 == this._loop && (this._playbackResource.loop = !1, this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, !1)) } , e._updateStartTime = function() { this._audioSpriteStopTime = .001 * (this._startTime + this._duration), this.playState == createjs.Sound.PLAY_SUCCEEDED && (this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED, this._endedHandler, !1), this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE, this._audioSpriteEndHandler, !1)) } , e._updateDuration = function() { this._audioSpriteStopTime = .001 * (this._startTime + this._duration), this.playState == createjs.Sound.PLAY_SUCCEEDED && (this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED, this._endedHandler, !1), this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE, this._audioSpriteEndHandler, !1)) } , e._setDurationFromSource = function() { this._duration = createjs.HTMLAudioTagPool.getDuration(this.src), this._playbackResource = null } , createjs.HTMLAudioSoundInstance = createjs.promote(t, "AbstractSoundInstance") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { this.AbstractPlugin_constructor(), this.defaultNumChannels = 2, this._capabilities = s._capabilities, this._loaderClass = createjs.SoundLoader, this._soundInstanceClass = createjs.HTMLAudioSoundInstance } var e = createjs.extend(t, createjs.AbstractPlugin) , s = t; s.MAX_INSTANCES = 30, s._AUDIO_READY = "canplaythrough", s._AUDIO_ENDED = "ended", s._AUDIO_SEEKED = "seeked", s._AUDIO_STALLED = "stalled", s._TIME_UPDATE = "timeupdate", s._capabilities = null, s.isSupported = function() { return s._generateCapabilities(), null != s._capabilities } , s._generateCapabilities = function() { if (null == s._capabilities) { var t = document.createElement("audio"); if (null == t.canPlayType) return null; s._capabilities = { panning: !1, volume: !0, tracks: -1 }; for (var e = createjs.Sound.SUPPORTED_EXTENSIONS, i = createjs.Sound.EXTENSION_MAP, n = 0, r = e.length; n < r; n++) { var a = e[n] , o = i[a] || a; s._capabilities[a] = "no" != t.canPlayType("audio/" + a) && "" != t.canPlayType("audio/" + a) || "no" != t.canPlayType("audio/" + o) && "" != t.canPlayType("audio/" + o) } } } , e.register = function(t) { var e = createjs.HTMLAudioTagPool.get(t.src) , s = this.AbstractPlugin_register(t); return s.setTag(e), s } , e.removeSound = function(t) { this.AbstractPlugin_removeSound(t), createjs.HTMLAudioTagPool.remove(t) } , e.create = function(t, e, s) { var i = this.AbstractPlugin_create(t, e, s); return i.setPlaybackResource(null), i } , e.toString = function() { return "[HTMLAudioPlugin]" } , e.setVolume = e.getVolume = e.setMute = null, createjs.HTMLAudioPlugin = createjs.promote(t, "AbstractPlugin") }(); this.createjs = this.createjs || {}, createjs.extend = function(t, e) { "use strict"; function i() { this.constructor = t } return i.prototype = e.prototype, t.prototype = new i } , this.createjs = this.createjs || {}, createjs.promote = function(t, e) { "use strict"; var i = t.prototype , n = Object.getPrototypeOf && Object.getPrototypeOf(i) || i.__proto__; if (n) for (var r in i[(e += "_") + "constructor"] = n.constructor, n) i.hasOwnProperty(r) && "function" == typeof n[r] && (i[e + r] = n[r]); return t } , this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i) { this.type = t, this.target = null, this.currentTarget = null, this.eventPhase = 0, this.bubbles = !!e, this.cancelable = !!i, this.timeStamp = (new Date).getTime(), this.defaultPrevented = !1, this.propagationStopped = !1, this.immediatePropagationStopped = !1, this.removed = !1 } var e = t.prototype; e.preventDefault = function() { this.defaultPrevented = this.cancelable && !0 } , e.stopPropagation = function() { this.propagationStopped = !0 } , e.stopImmediatePropagation = function() { this.immediatePropagationStopped = this.propagationStopped = !0 } , e.remove = function() { this.removed = !0 } , e.clone = function() { return new t(this.type,this.bubbles,this.cancelable) } , e.set = function(t) { for (var e in t) this[e] = t[e]; return this } , e.toString = function() { return "[Event (type=" + this.type + ")]" } , createjs.Event = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { this._listeners = null, this._captureListeners = null } var e = t.prototype; t.initialize = function(t) { t.addEventListener = e.addEventListener, t.on = e.on, t.removeEventListener = t.off = e.removeEventListener, t.removeAllEventListeners = e.removeAllEventListeners, t.hasEventListener = e.hasEventListener, t.dispatchEvent = e.dispatchEvent, t._dispatchEvent = e._dispatchEvent, t.willTrigger = e.willTrigger } , e.addEventListener = function(t, e, i) { var n, r = (n = i ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {})[t]; return r && this.removeEventListener(t, e, i), (r = n[t]) ? r.push(e) : n[t] = [e], e } , e.on = function(t, e, i, n, r, s) { return e.handleEvent && (i = i || e, e = e.handleEvent), i = i || this, this.addEventListener(t, function(t) { e.call(i, t, r), n && t.remove() }, s) } , e.removeEventListener = function(t, e, i) { var n = i ? this._captureListeners : this._listeners; if (n) { var r = n[t]; if (r) for (var s = 0, o = r.length; o > s; s++) if (r[s] == e) { 1 == o ? delete n[t] : r.splice(s, 1); break } } } , e.off = e.removeEventListener, e.removeAllEventListeners = function(t) { t ? (this._listeners && delete this._listeners[t], this._captureListeners && delete this._captureListeners[t]) : this._listeners = this._captureListeners = null } , e.dispatchEvent = function(t, e, i) { if ("string" == typeof t) { var n = this._listeners; if (!(e || n && n[t])) return !0; t = new createjs.Event(t,e,i) } else t.target && t.clone && (t = t.clone()); try { t.target = this } catch (t) {} if (t.bubbles && this.parent) { for (var r = this, s = [r]; r.parent; ) s.push(r = r.parent); var o, a = s.length; for (o = a - 1; o >= 0 && !t.propagationStopped; o--) s[o]._dispatchEvent(t, 1 + (0 == o)); for (o = 1; a > o && !t.propagationStopped; o++) s[o]._dispatchEvent(t, 3) } else this._dispatchEvent(t, 2); return !t.defaultPrevented } , e.hasEventListener = function(t) { var e = this._listeners , i = this._captureListeners; return !!(e && e[t] || i && i[t]) } , e.willTrigger = function(t) { for (var e = this; e; ) { if (e.hasEventListener(t)) return !0; e = e.parent } return !1 } , e.toString = function() { return "[EventDispatcher]" } , e._dispatchEvent = function(t, e) { var i, n = 1 == e ? this._captureListeners : this._listeners; if (t && n) { var r = n[t.type]; if (!r || !(i = r.length)) return; try { t.currentTarget = this } catch (t) {} try { t.eventPhase = e } catch (t) {} t.removed = !1, r = r.slice(); for (var s = 0; i > s && !t.immediatePropagationStopped; s++) { var o = r[s]; o.handleEvent ? o.handleEvent(t) : o(t), t.removed && (this.off(t.type, o, 1 == e), t.removed = !1) } } } , createjs.EventDispatcher = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "Ticker cannot be instantiated." } t.RAF_SYNCHED = "synched", t.RAF = "raf", t.TIMEOUT = "timeout", t.useRAF = !1, t.timingMode = null, t.maxDelta = 0, t.paused = !1, t.removeEventListener = null, t.removeAllEventListeners = null, t.dispatchEvent = null, t.hasEventListener = null, t._listeners = null, createjs.EventDispatcher.initialize(t), t._addEventListener = t.addEventListener, t.addEventListener = function() { return !t._inited && t.init(), t._addEventListener.apply(t, arguments) } , t._inited = !1, t._startTime = 0, t._pausedTime = 0, t._ticks = 0, t._pausedTicks = 0, t._interval = 50, t._lastTime = 0, t._times = null, t._tickTimes = null, t._timerId = null, t._raf = !0, t.setInterval = function(e) { t._interval = e, t._inited && t._setupTick() } , t.getInterval = function() { return t._interval } , t.setFPS = function(e) { t.setInterval(1e3 / e) } , t.getFPS = function() { return 1e3 / t._interval } ; try { Object.defineProperties(t, { interval: { get: t.getInterval, set: t.setInterval }, framerate: { get: t.getFPS, set: t.setFPS } }) } catch (t) { console.log(t) } t.init = function() { t._inited || (t._inited = !0, t._times = [], t._tickTimes = [], t._startTime = t._getTime(), t._times.push(t._lastTime = 0), t.interval = t._interval) } , t.reset = function() { if (t._raf) { var e = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame; e && e(t._timerId) } else clearTimeout(t._timerId); t.removeAllEventListeners("tick"), t._timerId = t._times = t._tickTimes = null, t._startTime = t._lastTime = t._ticks = 0, t._inited = !1 } , t.getMeasuredTickTime = function(e) { var i = 0 , n = t._tickTimes; if (!n || n.length < 1) return -1; e = Math.min(n.length, e || 0 | t.getFPS()); for (var r = 0; e > r; r++) i += n[r]; return i / e } , t.getMeasuredFPS = function(e) { var i = t._times; return !i || i.length < 2 ? -1 : (e = Math.min(i.length - 1, e || 0 | t.getFPS()), 1e3 / ((i[0] - i[e]) / e)) } , t.setPaused = function(e) { t.paused = e } , t.getPaused = function() { return t.paused } , t.getTime = function(e) { return t._startTime ? t._getTime() - (e ? t._pausedTime : 0) : -1 } , t.getEventTime = function(e) { return t._startTime ? (t._lastTime || t._startTime) - (e ? t._pausedTime : 0) : -1 } , t.getTicks = function(e) { return t._ticks - (e ? t._pausedTicks : 0) } , t._handleSynch = function() { t._timerId = null, t._setupTick(), t._getTime() - t._lastTime >= .97 * (t._interval - 1) && t._tick() } , t._handleRAF = function() { t._timerId = null, t._setupTick(), t._tick() } , t._handleTimeout = function() { t._timerId = null, t._setupTick(), t._tick() } , t._setupTick = function() { if (null == t._timerId) { var e = t.timingMode || t.useRAF && t.RAF_SYNCHED; if (e == t.RAF_SYNCHED || e == t.RAF) { var i = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame; if (i) return t._timerId = i(e == t.RAF ? t._handleRAF : t._handleSynch), void (t._raf = !0) } t._raf = !1, t._timerId = setTimeout(t._handleTimeout, t._interval) } } , t._tick = function() { var e = t.paused , i = t._getTime() , n = i - t._lastTime; if (t._lastTime = i, t._ticks++, e && (t._pausedTicks++, t._pausedTime += n), t.hasEventListener("tick")) { var r = new createjs.Event("tick") , s = t.maxDelta; r.delta = s && n > s ? s : n, r.paused = e, r.time = i, r.runTime = i - t._pausedTime, t.dispatchEvent(r) } for (t._tickTimes.unshift(t._getTime() - i); t._tickTimes.length > 100; ) t._tickTimes.pop(); for (t._times.unshift(i); t._times.length > 100; ) t._times.pop() } ; var e = window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow); t._getTime = function() { return (e && e.call(performance) || (new Date).getTime()) - t._startTime } , createjs.Ticker = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(e, i, n) { this.ignoreGlobalPause = !1, this.loop = !1, this.duration = 0, this.pluginData = n || {}, this.target = e, this.position = null, this.passive = !1, this._paused = !1, this._curQueueProps = {}, this._initQueueProps = {}, this._steps = [], this._actions = [], this._prevPosition = 0, this._stepPosition = 0, this._prevPos = -1, this._target = e, this._useTicks = !1, this._inited = !1, this._registered = !1, i && (this._useTicks = i.useTicks, this.ignoreGlobalPause = i.ignoreGlobalPause, this.loop = i.loop, i.onChange && this.addEventListener("change", i.onChange), i.override && t.removeTweens(e)), i && i.paused ? this._paused = !0 : createjs.Tween._register(this, !0), i && null != i.position && this.setPosition(i.position, t.NONE) } var e = createjs.extend(t, createjs.EventDispatcher); t.NONE = 0, t.LOOP = 1, t.REVERSE = 2, t.IGNORE = {}, t._tweens = [], t._plugins = {}, t.get = function(e, i, n, r) { return r && t.removeTweens(e), new t(e,i,n) } , t.tick = function(e, i) { for (var n = t._tweens.slice(), r = n.length - 1; r >= 0; r--) { var s = n[r]; i && !s.ignoreGlobalPause || s._paused || s.tick(s._useTicks ? 1 : e) } } , t.handleEvent = function(t) { "tick" == t.type && this.tick(t.delta, t.paused) } , t.removeTweens = function(e) { if (e.tweenjs_count) { for (var i = t._tweens, n = i.length - 1; n >= 0; n--) { var r = i[n]; r._target == e && (r._paused = !0, i.splice(n, 1)) } e.tweenjs_count = 0 } } , t.removeAllTweens = function() { for (var e = t._tweens, i = 0, n = e.length; n > i; i++) { var r = e[i]; r._paused = !0, r.target && (r.target.tweenjs_count = 0) } e.length = 0 } , t.hasActiveTweens = function(e) { return e ? null != e.tweenjs_count && !!e.tweenjs_count : t._tweens && !!t._tweens.length } , t.installPlugin = function(e, i) { var n = e.priority; null == n && (e.priority = n = 0); for (var r = 0, s = i.length, o = t._plugins; s > r; r++) { var a = i[r]; if (o[a]) { for (var u = o[a], c = 0, h = u.length; h > c && !(n < u[c].priority); c++) ; o[a].splice(c, 0, e) } else o[a] = [e] } } , t._register = function(e, i) { var n = e._target , r = t._tweens; if (i && !e._registered) n && (n.tweenjs_count = n.tweenjs_count ? n.tweenjs_count + 1 : 1), r.push(e), !t._inited && createjs.Ticker && (createjs.Ticker.addEventListener("tick", t), t._inited = !0); else if (!i && e._registered) { n && n.tweenjs_count--; for (var s = r.length; s--; ) if (r[s] == e) { r.splice(s, 1); break } } e._registered = i } , e.wait = function(t, e) { if (null == t || 0 >= t) return this; var i = this._cloneProps(this._curQueueProps); return this._addStep({ d: t, p0: i, e: this._linearEase, p1: i, v: e }) } , e.to = function(t, e, i) { return (isNaN(e) || 0 > e) && (e = 0), this._addStep({ d: e || 0, p0: this._cloneProps(this._curQueueProps), e: i, p1: this._cloneProps(this._appendQueueProps(t)) }) } , e.call = function(t, e, i) { return this._addAction({ f: t, p: e || [this], o: i || this._target }) } , e.set = function(t, e) { return this._addAction({ f: this._set, o: this, p: [t, e || this._target] }) } , e.play = function(t) { return t || (t = this), this.call(t.setPaused, [!1], t) } , e.pause = function(t) { return t || (t = this), this.call(t.setPaused, [!0], t) } , e.setPosition = function(t, e) { 0 > t && (t = 0), null == e && (e = 1); var i = t , n = !1; if (i >= this.duration && (this.loop ? i %= this.duration : (i = this.duration, n = !0)), i == this._prevPos) return n; var r = this._prevPos; if (this.position = this._prevPos = i, this._prevPosition = t, this._target) if (n) this._updateTargetProps(null, 1); else if (this._steps.length > 0) { for (var s = 0, o = this._steps.length; o > s && !(this._steps[s].t > i); s++) ; var a = this._steps[s - 1]; this._updateTargetProps(a, (this._stepPosition = i - a.t) / a.d) } return 0 != e && this._actions.length > 0 && (this._useTicks ? this._runActions(i, i) : 1 == e && r > i ? (r != this.duration && this._runActions(r, this.duration), this._runActions(0, i, !0)) : this._runActions(r, i)), n && this.setPaused(!0), this.dispatchEvent("change"), n } , e.tick = function(t) { this._paused || this.setPosition(this._prevPosition + t) } , e.setPaused = function(e) { return this._paused === !!e ? this : (this._paused = !!e, t._register(this, !e), this) } , e.w = e.wait, e.t = e.to, e.c = e.call, e.s = e.set, e.toString = function() { return "[Tween]" } , e.clone = function() { throw "Tween can not be cloned." } , e._updateTargetProps = function(e, i) { var n, r, s, o, a, u; if (e || 1 != i) { if (this.passive = !!e.v, this.passive) return; e.e && (i = e.e(i, 0, 1, 1)), n = e.p0, r = e.p1 } else this.passive = !1, n = r = this._curQueueProps; for (var c in this._initQueueProps) { null == (o = n[c]) && (n[c] = o = this._initQueueProps[c]), null == (a = r[c]) && (r[c] = a = o), s = o == a || 0 == i || 1 == i || "number" != typeof o ? 1 == i ? a : o : o + (a - o) * i; var h = !1; if (u = t._plugins[c]) for (var l = 0, _ = u.length; _ > l; l++) { var p = u[l].tween(this, c, s, n, r, i, !!e && n == r, !e); p == t.IGNORE ? h = !0 : s = p } h || (this._target[c] = s) } } , e._runActions = function(t, e, i) { var n = t , r = e , s = -1 , o = this._actions.length , a = 1; for (t > e && (n = e, r = t, s = o, o = a = -1); (s += a) != o; ) { var u = this._actions[s] , c = u.t; (c == r || c > n && r > c || i && c == t) && u.f.apply(u.o, u.p) } } , e._appendQueueProps = function(e) { var i, n, r, s, o; for (var a in e) if (void 0 === this._initQueueProps[a]) { if (n = this._target[a], i = t._plugins[a]) for (r = 0, s = i.length; s > r; r++) n = i[r].init(this, a, n); this._initQueueProps[a] = this._curQueueProps[a] = void 0 === n ? null : n } else n = this._curQueueProps[a]; for (var a in e) { if (n = this._curQueueProps[a], i = t._plugins[a]) for (o = o || {}, r = 0, s = i.length; s > r; r++) i[r].step && i[r].step(this, a, n, e[a], o); this._curQueueProps[a] = e[a] } return o && this._appendQueueProps(o), this._curQueueProps } , e._cloneProps = function(t) { var e = {}; for (var i in t) e[i] = t[i]; return e } , e._addStep = function(t) { return t.d > 0 && (this._steps.push(t), t.t = this.duration, this.duration += t.d), this } , e._addAction = function(t) { return t.t = this.duration, this._actions.push(t), this } , e._set = function(t, e) { for (var i in t) e[i] = t[i] } , createjs.Tween = createjs.promote(t, "EventDispatcher") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t(t, e, i) { this.EventDispatcher_constructor(), this.ignoreGlobalPause = !1, this.duration = 0, this.loop = !1, this.position = null, this._paused = !1, this._tweens = [], this._labels = null, this._labelList = null, this._prevPosition = 0, this._prevPos = -1, this._useTicks = !1, this._registered = !1, i && (this._useTicks = i.useTicks, this.loop = i.loop, this.ignoreGlobalPause = i.ignoreGlobalPause, i.onChange && this.addEventListener("change", i.onChange)), t && this.addTween.apply(this, t), this.setLabels(e), i && i.paused ? this._paused = !0 : createjs.Tween._register(this, !0), i && null != i.position && this.setPosition(i.position, createjs.Tween.NONE) } var e = createjs.extend(t, createjs.EventDispatcher); e.addTween = function(t) { var e = arguments.length; if (e > 1) { for (var i = 0; e > i; i++) this.addTween(arguments[i]); return arguments[0] } return 0 == e ? null : (this.removeTween(t), this._tweens.push(t), t.setPaused(!0), t._paused = !1, t._useTicks = this._useTicks, t.duration > this.duration && (this.duration = t.duration), this._prevPos >= 0 && t.setPosition(this._prevPos, createjs.Tween.NONE), t) } , e.removeTween = function(t) { var e = arguments.length; if (e > 1) { for (var i = !0, n = 0; e > n; n++) i = i && this.removeTween(arguments[n]); return i } if (0 == e) return !1; var r = this._tweens; for (n = r.length; n--; ) if (r[n] == t) return r.splice(n, 1), t.duration >= this.duration && this.updateDuration(), !0; return !1 } , e.addLabel = function(t, e) { this._labels[t] = e; var i = this._labelList; if (i) { for (var n = 0, r = i.length; r > n && !(e < i[n].position); n++) ; i.splice(n, 0, { label: t, position: e }) } } , e.setLabels = function(t) { this._labels = t || {} } , e.getLabels = function() { var t = this._labelList; if (!t) { t = this._labelList = []; var e = this._labels; for (var i in e) t.push({ label: i, position: e[i] }); t.sort(function(t, e) { return t.position - e.position }) } return t } , e.getCurrentLabel = function() { var t = this.getLabels() , e = this.position , i = t.length; if (i) { for (var n = 0; i > n && !(e < t[n].position); n++) ; return 0 == n ? null : t[n - 1].label } return null } , e.gotoAndPlay = function(t) { this.setPaused(!1), this._goto(t) } , e.gotoAndStop = function(t) { this.setPaused(!0), this._goto(t) } , e.setPosition = function(t, e) { var i = this._calcPosition(t) , n = !this.loop && t >= this.duration; if (i == this._prevPos) return n; this._prevPosition = t, this.position = this._prevPos = i; for (var r = 0, s = this._tweens.length; s > r; r++) if (this._tweens[r].setPosition(i, e), i != this._prevPos) return !1; return n && this.setPaused(!0), this.dispatchEvent("change"), n } , e.setPaused = function(t) { this._paused = !!t, createjs.Tween._register(this, !t) } , e.updateDuration = function() { this.duration = 0; for (var t = 0, e = this._tweens.length; e > t; t++) { var i = this._tweens[t]; i.duration > this.duration && (this.duration = i.duration) } } , e.tick = function(t) { this.setPosition(this._prevPosition + t) } , e.resolve = function(t) { var e = Number(t); return isNaN(e) && (e = this._labels[t]), e } , e.toString = function() { return "[Timeline]" } , e.clone = function() { throw "Timeline can not be cloned." } , e._goto = function(t) { var e = this.resolve(t); null != e && this.setPosition(e) } , e._calcPosition = function(t) { return 0 > t ? 0 : t < this.duration ? t : this.loop ? t % this.duration : this.duration } , createjs.Timeline = createjs.promote(t, "EventDispatcher") }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "Ease cannot be instantiated." } t.linear = function(t) { return t } , t.none = t.linear, t.get = function(t) { return -1 > t && (t = -1), t > 1 && (t = 1), function(e) { return 0 == t ? e : 0 > t ? e * (e * -t + 1 + t) : e * ((2 - e) * t + (1 - t)) } } , t.getPowIn = function(t) { return function(e) { return Math.pow(e, t) } } , t.getPowOut = function(t) { return function(e) { return 1 - Math.pow(1 - e, t) } } , t.getPowInOut = function(t) { return function(e) { return (e *= 2) < 1 ? .5 * Math.pow(e, t) : 1 - .5 * Math.abs(Math.pow(2 - e, t)) } } , t.quadIn = t.getPowIn(2), t.quadOut = t.getPowOut(2), t.quadInOut = t.getPowInOut(2), t.cubicIn = t.getPowIn(3), t.cubicOut = t.getPowOut(3), t.cubicInOut = t.getPowInOut(3), t.quartIn = t.getPowIn(4), t.quartOut = t.getPowOut(4), t.quartInOut = t.getPowInOut(4), t.quintIn = t.getPowIn(5), t.quintOut = t.getPowOut(5), t.quintInOut = t.getPowInOut(5), t.sineIn = function(t) { return 1 - Math.cos(t * Math.PI / 2) } , t.sineOut = function(t) { return Math.sin(t * Math.PI / 2) } , t.sineInOut = function(t) { return -.5 * (Math.cos(Math.PI * t) - 1) } , t.getBackIn = function(t) { return function(e) { return e * e * ((t + 1) * e - t) } } , t.backIn = t.getBackIn(1.7), t.getBackOut = function(t) { return function(e) { return --e * e * ((t + 1) * e + t) + 1 } } , t.backOut = t.getBackOut(1.7), t.getBackInOut = function(t) { return t *= 1.525, function(e) { return (e *= 2) < 1 ? .5 * e * e * ((t + 1) * e - t) : .5 * ((e -= 2) * e * ((t + 1) * e + t) + 2) } } , t.backInOut = t.getBackInOut(1.7), t.circIn = function(t) { return -(Math.sqrt(1 - t * t) - 1) } , t.circOut = function(t) { return Math.sqrt(1 - --t * t) } , t.circInOut = function(t) { return (t *= 2) < 1 ? -.5 * (Math.sqrt(1 - t * t) - 1) : .5 * (Math.sqrt(1 - (t -= 2) * t) + 1) } , t.bounceIn = function(e) { return 1 - t.bounceOut(1 - e) } , t.bounceOut = function(t) { return 1 / 2.75 > t ? 7.5625 * t * t : 2 / 2.75 > t ? 7.5625 * (t -= 1.5 / 2.75) * t + .75 : 2.5 / 2.75 > t ? 7.5625 * (t -= 2.25 / 2.75) * t + .9375 : 7.5625 * (t -= 2.625 / 2.75) * t + .984375 } , t.bounceInOut = function(e) { return .5 > e ? .5 * t.bounceIn(2 * e) : .5 * t.bounceOut(2 * e - 1) + .5 } , t.getElasticIn = function(t, e) { var i = 2 * Math.PI; return function(n) { if (0 == n || 1 == n) return n; var r = e / i * Math.asin(1 / t); return -t * Math.pow(2, 10 * (n -= 1)) * Math.sin((n - r) * i / e) } } , t.elasticIn = t.getElasticIn(1, .3), t.getElasticOut = function(t, e) { var i = 2 * Math.PI; return function(n) { if (0 == n || 1 == n) return n; var r = e / i * Math.asin(1 / t); return t * Math.pow(2, -10 * n) * Math.sin((n - r) * i / e) + 1 } } , t.elasticOut = t.getElasticOut(1, .3), t.getElasticInOut = function(t, e) { var i = 2 * Math.PI; return function(n) { var r = e / i * Math.asin(1 / t); return (n *= 2) < 1 ? -.5 * t * Math.pow(2, 10 * (n -= 1)) * Math.sin((n - r) * i / e) : t * Math.pow(2, -10 * (n -= 1)) * Math.sin((n - r) * i / e) * .5 + 1 } } , t.elasticInOut = t.getElasticInOut(1, .3 * 1.5), createjs.Ease = t }(), this.createjs = this.createjs || {}, function() { "use strict"; function t() { throw "MotionGuidePlugin cannot be instantiated." } t.priority = 0, t._rotOffS, t._rotOffE, t._rotNormS, t._rotNormE, t.install = function() { return createjs.Tween.installPlugin(t, ["guide", "x", "y", "rotation"]), createjs.Tween.IGNORE } , t.init = function(t, e, i) { var n = t.target; return n.hasOwnProperty("x") || (n.x = 0), n.hasOwnProperty("y") || (n.y = 0), n.hasOwnProperty("rotation") || (n.rotation = 0), "rotation" == e && (t.__needsRot = !0), "guide" == e ? null : i } , t.step = function(e, i, n, r, s) { if ("rotation" == i && (e.__rotGlobalS = n, e.__rotGlobalE = r, t.testRotData(e, s)), "guide" != i) return r; var o, a = r; a.hasOwnProperty("path") || (a.path = []); var u = a.path; if (a.hasOwnProperty("end") || (a.end = 1), a.hasOwnProperty("start") || (a.start = n && n.hasOwnProperty("end") && n.path === u ? n.end : 0), a.hasOwnProperty("_segments") && a._length) return r; var c = u.length; if (!(c >= 6 && (c - 2) % 4 == 0)) throw "invalid 'path' data, please see documentation for valid paths"; a._segments = [], a._length = 0; for (var h = 2; c > h; h += 4) { for (var l, _, p = u[h - 2], f = u[h - 1], d = u[h + 0], v = u[h + 1], g = u[h + 2], m = u[h + 3], w = p, P = f, T = 0, E = [], b = 1; 10 >= b; b++) { var O = b / 10 , k = 1 - O; l = k * k * p + 2 * k * O * d + O * O * g, _ = k * k * f + 2 * k * O * v + O * O * m, T += E[E.push(Math.sqrt((o = l - w) * o + (o = _ - P) * o)) - 1], w = l, P = _ } a._segments.push(T), a._segments.push(E), a._length += T } o = a.orient, a.orient = !0; var I = {}; return t.calc(a, a.start, I), e.__rotPathS = Number(I.rotation.toFixed(5)), t.calc(a, a.end, I), e.__rotPathE = Number(I.rotation.toFixed(5)), a.orient = !1, t.calc(a, a.end, s), a.orient = o, a.orient ? (e.__guideData = a, t.testRotData(e, s), r) : r } , t.testRotData = function(t, e) { if (void 0 === t.__rotGlobalS || void 0 === t.__rotGlobalE) { if (t.__needsRot) return; t.__rotGlobalS = t.__rotGlobalE = void 0 !== t._curQueueProps.rotation ? t._curQueueProps.rotation : e.rotation = t.target.rotation || 0 } if (void 0 !== t.__guideData) { var i = t.__guideData , n = t.__rotGlobalE - t.__rotGlobalS , r = t.__rotPathE - t.__rotPathS , s = n - r; if ("auto" == i.orient) s > 180 ? s -= 360 : -180 > s && (s += 360); else if ("cw" == i.orient) { for (; 0 > s; ) s += 360; 0 == s && n > 0 && 180 != n && (s += 360) } else if ("ccw" == i.orient) { for (s = n - (r > 180 ? 360 - r : r); s > 0; ) s -= 360; 0 == s && 0 > n && -180 != n && (s -= 360) } i.rotDelta = s, i.rotOffS = t.__rotGlobalS - t.__rotPathS, t.__rotGlobalS = t.__rotGlobalE = t.__guideData = t.__needsRot = void 0 } } , t.tween = function(e, i, n, r, s, o, a) { var u = s.guide; if (void 0 == u || u === r.guide) return n; if (u.lastRatio != o) { var c = (u.end - u.start) * (a ? u.end : o) + u.start; switch (t.calc(u, c, e.target), u.orient) { case "cw": case "ccw": case "auto": e.target.rotation += u.rotOffS + u.rotDelta * o; break; case "fixed": default: e.target.rotation += u.rotOffS } u.lastRatio = o } return "rotation" != i || u.orient && "false" != u.orient ? e.target[i] : n } , t.calc = function(t, e, i) { if (void 0 == t._segments) throw "Missing critical pre-calculated information, please file a bug"; void 0 == i && (i = { x: 0, y: 0, rotation: 0 }); for (var n = t._segments, r = t.path, s = t._length * e, o = n.length - 2, a = 0; s > n[a] && o > a; ) s -= n[a], a += 2; var u = n[a + 1] , c = 0; for (o = u.length - 1; s > u[c] && o > c; ) s -= u[c], c++; var h = c / ++o + s / (o * u[c]); a = 2 * a + 2; var l = 1 - h; return i.x = l * l * r[a - 2] + 2 * l * h * r[a + 0] + h * h * r[a + 2], i.y = l * l * r[a - 1] + 2 * l * h * r[a + 1] + h * h * r[a + 3], t.orient && (i.rotation = 57.2957795 * Math.atan2((r[a + 1] - r[a - 1]) * l + (r[a + 3] - r[a + 1]) * h, (r[a + 0] - r[a - 2]) * l + (r[a + 2] - r[a + 0]) * h)), i } , createjs.MotionGuidePlugin = t }(), this.createjs = this.createjs || {}, function() { "use strict"; var t = createjs.TweenJS = createjs.TweenJS || {}; t.version = "NEXT", t.buildDate = "Wed, 25 Nov 2015 19:32:49 GMT" }(); var viewporter; !function() { var e; if ((viewporter = { forceDetection: !1, disableLegacyAndroid: !0, ACTIVE: function() { return (!viewporter.disableLegacyAndroid || !/android 2/i.test(navigator.userAgent)) && (!/ipad/i.test(navigator.userAgent) && (!!/webos/i.test(navigator.userAgent) || "ontouchstart"in window)) }, READY: !1, isLandscape: function() { return 90 === window.orientation || -90 === window.orientation }, ready: function(e) { window.addEventListener("viewportready", e, !1) }, change: function(e) { window.addEventListener("viewportchange", e, !1) }, refresh: function() { e && e.prepareVisualViewport() }, preventPageScroll: function() { document.body.addEventListener("touchmove", function(e) { e.preventDefault() }, !1), document.body.addEventListener("touchstart", function() { e.prepareVisualViewport() }, !1) } }).ACTIVE = viewporter.ACTIVE(), viewporter.ACTIVE) { var t = function() { var e = this; this.IS_ANDROID = /Android/.test(navigator.userAgent) && !/Chrome/.test(navigator.userAgent); var t = function() { e.prepareVisualViewport(); var t = window.orientation; window.addEventListener("orientationchange", function() { window.orientation !== t && (e.prepareVisualViewport(), t = window.orientation) }, !1) }; "loading" === document.readyState ? document.addEventListener("DOMContentLoaded", function() { t() }, !1) : t() }; t.prototype = { getProfile: function() { if (viewporter.forceDetection) return null; for (var e in viewporter.profiles) if (new RegExp(e).test(navigator.userAgent)) return viewporter.profiles[e]; return null }, postProcess: function() { viewporter.READY = !0, this.triggerWindowEvent(this._firstUpdateExecuted ? "viewportchange" : "viewportready"), this._firstUpdateExecuted = !0 }, prepareVisualViewport: function() { var e = this; if (navigator.standalone) return this.postProcess(); document.documentElement.style.minHeight = "5000px"; var t = window.innerHeight , n = this.getProfile() , i = viewporter.isLandscape() ? "landscape" : "portrait"; window.scrollTo(0, e.IS_ANDROID ? 1 : 0); var r = 40 , o = window.setInterval(function() { window.scrollTo(0, e.IS_ANDROID ? 1 : 0), r--, ((e.IS_ANDROID ? n && window.innerHeight === n[i] : window.innerHeight > t) || r < 0) && (document.documentElement.style.minHeight = window.innerHeight + "px", document.getElementById("viewporter").style.position = "relative", document.getElementById("viewporter").style.height = window.innerHeight + "px", clearInterval(o), e.postProcess()) }, 10) }, triggerWindowEvent: function(e) { var t = document.createEvent("Event"); t.initEvent(e, !1, !1), window.dispatchEvent(t) } }, e = new t } }(), viewporter.profiles = { MZ601: { portrait: 696, landscape: 1176 }, "GT-I9000|GT-I9100|Nexus S": { portrait: 508, landscape: 295 }, "GT-P1000": { portrait: 657, landscape: 400 }, "Desire_A8181|DesireHD_A9191": { portrait: 533, landscape: 320 } }; var card_set_1 = { images: ["card_set1.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set1_1_00: [0], set1_1_01: [1], set1_1_02: [2], set1_1_03: [3], set1_1_04: [4], set1_1_05: [5], set1_1_06: [6], set1_1_07: [7], set1_1_08: [8], set1_1_09: [9], set1_1_10: [10], set1_1_11: [11], set1_1_12: [12], set1_2_00: [13], set1_2_01: [14], set1_2_02: [15], set1_2_03: [16], set1_2_04: [17], set1_2_05: [18], set1_2_06: [19], set1_2_07: [20], set1_2_08: [21], set1_2_09: [22], set1_2_10: [23], set1_2_11: [24], set1_2_12: [25], set1_3_00: [26], set1_3_01: [27], set1_3_02: [28], set1_3_03: [29], set1_3_04: [30], set1_3_05: [31], set1_3_06: [32], set1_3_07: [33], set1_3_08: [34], set1_3_09: [35], set1_3_10: [36], set1_3_11: [37], set1_3_12: [38], set1_4_00: [39], set1_4_01: [40], set1_4_02: [41], set1_4_03: [42], set1_4_04: [43], set1_4_05: [44], set1_4_06: [45], set1_4_07: [46], set1_4_08: [47], set1_4_09: [48], set1_4_10: [49], set1_4_11: [50], set1_4_12: [51], set1_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:02948114c18f548a6f50dd00a8df348e:0ad1a46e8eb165e55114f3e1f0c5300e:3d9d7e140ecac95b1eb7372f2b92b36a$", "EaselJS Extended Exporter - Trim support"] }; var card_set_2 = { images: ["card_set2.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154]], animations: { set2_1_00: [0], set2_1_01: [1], set2_1_02: [2], set2_1_03: [3], set2_1_04: [4], set2_1_05: [5], set2_1_06: [6], set2_1_07: [7], set2_1_08: [8], set2_1_09: [9], set2_1_10: [10], set2_1_11: [11], set2_1_12: [12], set2_2_00: [13], set2_2_01: [14], set2_2_02: [15], set2_2_03: [16], set2_2_04: [17], set2_2_05: [18], set2_2_06: [19], set2_2_07: [20], set2_2_08: [21], set2_2_09: [22], set2_2_10: [23], set2_2_11: [24], set2_2_12: [25], set2_3_00: [26], set2_3_01: [27], set2_3_02: [28], set2_3_03: [29], set2_3_04: [30], set2_3_05: [31], set2_3_06: [32], set2_3_07: [33], set2_3_08: [34], set2_3_09: [35], set2_3_10: [36], set2_3_11: [37], set2_3_12: [38], set2_4_00: [39], set2_4_01: [40], set2_4_02: [41], set2_4_03: [42], set2_4_04: [43], set2_4_05: [44], set2_4_06: [45], set2_4_07: [46], set2_4_08: [47], set2_4_09: [48], set2_4_10: [49], set2_4_11: [50], set2_4_12: [51], set2_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:f9c2d4df28536ff057d4bc30198d67c6:015c0afa79db05158f48d44169811824:be740e6f623056be79e024e7fff25e7d$", "EaselJS Extended Exporter - Trim support"] }; var card_set_3 = { images: ["card_set3.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set3_1_00: [0], set3_1_01: [1], set3_1_02: [2], set3_1_03: [3], set3_1_04: [4], set3_1_05: [5], set3_1_06: [6], set3_1_07: [7], set3_1_08: [8], set3_1_09: [9], set3_1_10: [10], set3_1_11: [11], set3_1_12: [12], set3_2_00: [13], set3_2_01: [14], set3_2_02: [15], set3_2_03: [16], set3_2_04: [17], set3_2_05: [18], set3_2_06: [19], set3_2_07: [20], set3_2_08: [21], set3_2_09: [22], set3_2_10: [23], set3_2_11: [24], set3_2_12: [25], set3_3_00: [26], set3_3_01: [27], set3_3_02: [28], set3_3_03: [29], set3_3_04: [30], set3_3_05: [31], set3_3_06: [32], set3_3_07: [33], set3_3_08: [34], set3_3_09: [35], set3_3_10: [36], set3_3_11: [37], set3_3_12: [38], set3_4_00: [39], set3_4_01: [40], set3_4_02: [41], set3_4_03: [42], set3_4_04: [43], set3_4_05: [44], set3_4_06: [45], set3_4_07: [46], set3_4_08: [47], set3_4_09: [48], set3_4_10: [49], set3_4_11: [50], set3_4_12: [51], set3_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:e6f3bdf2e86d47ef5b854811dcd4f3da:d8d97cc01b36b334924f69d4abc0c4c7:b6ac1bd6fc8b141b8fce8433f60238f7$", "EaselJS Extended Exporter - Trim support"] }; var card_set_4 = { images: ["card_set4.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set4_1_00: [0], set4_1_01: [1], set4_1_02: [2], set4_1_03: [3], set4_1_04: [4], set4_1_05: [5], set4_1_06: [6], set4_1_07: [7], set4_1_08: [8], set4_1_09: [9], set4_1_10: [10], set4_1_11: [11], set4_1_12: [12], set4_2_00: [13], set4_2_01: [14], set4_2_02: [15], set4_2_03: [16], set4_2_04: [17], set4_2_05: [18], set4_2_06: [19], set4_2_07: [20], set4_2_08: [21], set4_2_09: [22], set4_2_10: [23], set4_2_11: [24], set4_2_12: [25], set4_3_00: [26], set4_3_01: [27], set4_3_02: [28], set4_3_03: [29], set4_3_04: [30], set4_3_05: [31], set4_3_06: [32], set4_3_07: [33], set4_3_08: [34], set4_3_09: [35], set4_3_10: [36], set4_3_11: [37], set4_3_12: [38], set4_4_00: [39], set4_4_01: [40], set4_4_02: [41], set4_4_03: [42], set4_4_04: [43], set4_4_05: [44], set4_4_06: [45], set4_4_07: [46], set4_4_08: [47], set4_4_09: [48], set4_4_10: [49], set4_4_11: [50], set4_4_12: [51], set4_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:5343eafac2eafad8350613ca3df179c7:a19c42c7a999a6df0859315780ace063:787d719bee9517145f1847cabf909898$", "EaselJS Extended Exporter - Trim support"] }; var card_set_5 = { images: ["card_set5.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set5_1_00: [0], set5_1_01: [1], set5_1_02: [2], set5_1_03: [3], set5_1_04: [4], set5_1_05: [5], set5_1_06: [6], set5_1_07: [7], set5_1_08: [8], set5_1_09: [9], set5_1_10: [10], set5_1_11: [11], set5_1_12: [12], set5_2_00: [13], set5_2_01: [14], set5_2_02: [15], set5_2_03: [16], set5_2_04: [17], set5_2_05: [18], set5_2_06: [19], set5_2_07: [20], set5_2_08: [21], set5_2_09: [22], set5_2_10: [23], set5_2_11: [24], set5_2_12: [25], set5_3_00: [26], set5_3_01: [27], set5_3_02: [28], set5_3_03: [29], set5_3_04: [30], set5_3_05: [31], set5_3_06: [32], set5_3_07: [33], set5_3_08: [34], set5_3_09: [35], set5_3_10: [36], set5_3_11: [37], set5_3_12: [38], set5_4_00: [39], set5_4_01: [40], set5_4_02: [41], set5_4_03: [42], set5_4_04: [43], set5_4_05: [44], set5_4_06: [45], set5_4_07: [46], set5_4_08: [47], set5_4_09: [48], set5_4_10: [49], set5_4_11: [50], set5_4_12: [51], set5_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:85552382073ca455009346247a1cce1f:fc8ab2017d0b8603c9527119b9da4a5b:c4e834190485bd70dbf84eb8f959c350$", "EaselJS Extended Exporter - Trim support"] }; var card_set_6 = { images: ["card_set6.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set6_1_00: [0], set6_1_01: [1], set6_1_02: [2], set6_1_03: [3], set6_1_04: [4], set6_1_05: [5], set6_1_06: [6], set6_1_07: [7], set6_1_08: [8], set6_1_09: [9], set6_1_10: [10], set6_1_11: [11], set6_1_12: [12], set6_2_00: [13], set6_2_01: [14], set6_2_02: [15], set6_2_03: [16], set6_2_04: [17], set6_2_05: [18], set6_2_06: [19], set6_2_07: [20], set6_2_08: [21], set6_2_09: [22], set6_2_10: [23], set6_2_11: [24], set6_2_12: [25], set6_3_00: [26], set6_3_01: [27], set6_3_02: [28], set6_3_03: [29], set6_3_04: [30], set6_3_05: [31], set6_3_06: [32], set6_3_07: [33], set6_3_08: [34], set6_3_09: [35], set6_3_10: [36], set6_3_11: [37], set6_3_12: [38], set6_4_00: [39], set6_4_01: [40], set6_4_02: [41], set6_4_03: [42], set6_4_04: [43], set6_4_05: [44], set6_4_06: [45], set6_4_07: [46], set6_4_08: [47], set6_4_09: [48], set6_4_10: [49], set6_4_11: [50], set6_4_12: [51], set6_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:3985a152f84723dce2bf55c967b081e0:34ef2f225c7d567730db257b9ce4475a:f71a49ab3f2677f5df84e8fd661c9ab0$", "EaselJS Extended Exporter - Trim support"] }; var card_set_7 = { images: ["card_set7.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set7_1_00: [0], set7_1_01: [1], set7_1_02: [2], set7_1_03: [3], set7_1_04: [4], set7_1_05: [5], set7_1_06: [6], set7_1_07: [7], set7_1_08: [8], set7_1_09: [9], set7_1_10: [10], set7_1_11: [11], set7_1_12: [12], set7_2_00: [13], set7_2_01: [14], set7_2_02: [15], set7_2_03: [16], set7_2_04: [17], set7_2_05: [18], set7_2_06: [19], set7_2_07: [20], set7_2_08: [21], set7_2_09: [22], set7_2_10: [23], set7_2_11: [24], set7_2_12: [25], set7_3_00: [26], set7_3_01: [27], set7_3_02: [28], set7_3_03: [29], set7_3_04: [30], set7_3_05: [31], set7_3_06: [32], set7_3_07: [33], set7_3_08: [34], set7_3_09: [35], set7_3_10: [36], set7_3_11: [37], set7_3_12: [38], set7_4_00: [39], set7_4_01: [40], set7_4_02: [41], set7_4_03: [42], set7_4_04: [43], set7_4_05: [44], set7_4_06: [45], set7_4_07: [46], set7_4_08: [47], set7_4_09: [48], set7_4_10: [49], set7_4_11: [50], set7_4_12: [51], set7_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:83cb6b57aca3b84012ae65b9fabaf60b:2f16d0e58a4b6a3918430c52f93d7cf2:40f5e377ae71f20e46c90e55f58d84dd$", "EaselJS Extended Exporter - Trim support"] }; var card_set_8 = { images: ["card_set8.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set8_1_00: [0], set8_1_01: [1], set8_1_02: [2], set8_1_03: [3], set8_1_04: [4], set8_1_05: [5], set8_1_06: [6], set8_1_07: [7], set8_1_08: [8], set8_1_09: [9], set8_1_10: [10], set8_1_11: [11], set8_1_12: [12], set8_2_00: [13], set8_2_01: [14], set8_2_02: [15], set8_2_03: [16], set8_2_04: [17], set8_2_05: [18], set8_2_06: [19], set8_2_07: [20], set8_2_08: [21], set8_2_09: [22], set8_2_10: [23], set8_2_11: [24], set8_2_12: [25], set8_3_00: [26], set8_3_01: [27], set8_3_02: [28], set8_3_03: [29], set8_3_04: [30], set8_3_05: [31], set8_3_06: [32], set8_3_07: [33], set8_3_08: [34], set8_3_09: [35], set8_3_10: [36], set8_3_11: [37], set8_3_12: [38], set8_4_00: [39], set8_4_01: [40], set8_4_02: [41], set8_4_03: [42], set8_4_04: [43], set8_4_05: [44], set8_4_06: [45], set8_4_07: [46], set8_4_08: [47], set8_4_09: [48], set8_4_10: [49], set8_4_11: [50], set8_4_12: [51], set8_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:fc45dbc9947488bf13c54c036dd30c5b:0647524cb4067235e29a34e719828cde:dfac5c632b6360721e2c4b07568c974a$", "EaselJS Extended Exporter - Trim support"] }; var card_set_9 = { images: ["card_set9.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set9_1_00: [0], set9_1_01: [1], set9_1_02: [2], set9_1_03: [3], set9_1_04: [4], set9_1_05: [5], set9_1_06: [6], set9_1_07: [7], set9_1_08: [8], set9_1_09: [9], set9_1_10: [10], set9_1_11: [11], set9_1_12: [12], set9_2_00: [13], set9_2_01: [14], set9_2_02: [15], set9_2_03: [16], set9_2_04: [17], set9_2_05: [18], set9_2_06: [19], set9_2_07: [20], set9_2_08: [21], set9_2_09: [22], set9_2_10: [23], set9_2_11: [24], set9_2_12: [25], set9_3_00: [26], set9_3_01: [27], set9_3_02: [28], set9_3_03: [29], set9_3_04: [30], set9_3_05: [31], set9_3_06: [32], set9_3_07: [33], set9_3_08: [34], set9_3_09: [35], set9_3_10: [36], set9_3_11: [37], set9_3_12: [38], set9_4_00: [39], set9_4_01: [40], set9_4_02: [41], set9_4_03: [42], set9_4_04: [43], set9_4_05: [44], set9_4_06: [45], set9_4_07: [46], set9_4_08: [47], set9_4_09: [48], set9_4_10: [49], set9_4_11: [50], set9_4_12: [51], set9_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:fb4378490a173711c394408785b4202c:a9288b175647196cae6b2d0ad3a1f5b5:faf75e035a16dcaddfd7425a60b9deca$", "EaselJS Extended Exporter - Trim support"] }; var card_set_10 = { images: ["card_set10.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set10_1_00: [0], set10_1_01: [1], set10_1_02: [2], set10_1_03: [3], set10_1_04: [4], set10_1_05: [5], set10_1_06: [6], set10_1_07: [7], set10_1_08: [8], set10_1_09: [9], set10_1_10: [10], set10_1_11: [11], set10_1_12: [12], set10_2_00: [13], set10_2_01: [14], set10_2_02: [15], set10_2_03: [16], set10_2_04: [17], set10_2_05: [18], set10_2_06: [19], set10_2_07: [20], set10_2_08: [21], set10_2_09: [22], set10_2_10: [23], set10_2_11: [24], set10_2_12: [25], set10_3_00: [26], set10_3_01: [27], set10_3_02: [28], set10_3_03: [29], set10_3_04: [30], set10_3_05: [31], set10_3_06: [32], set10_3_07: [33], set10_3_08: [34], set10_3_09: [35], set10_3_10: [36], set10_3_11: [37], set10_3_12: [38], set10_4_00: [39], set10_4_01: [40], set10_4_02: [41], set10_4_03: [42], set10_4_04: [43], set10_4_05: [44], set10_4_06: [45], set10_4_07: [46], set10_4_08: [47], set10_4_09: [48], set10_4_10: [49], set10_4_11: [50], set10_4_12: [51], set10_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:3f6f68374cb6ac500851a27e474ad3ee:e35945e8faec352126cb1a1a3d6ae78f:3eacff917af6bf41f181419c3cb27723$", "EaselJS Extended Exporter - Trim support"] }; var card_set_11 = { images: ["card_set11.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set11_1_00: [0], set11_1_01: [1], set11_1_02: [2], set11_1_03: [3], set11_1_04: [4], set11_1_05: [5], set11_1_06: [6], set11_1_07: [7], set11_1_08: [8], set11_1_09: [9], set11_1_10: [10], set11_1_11: [11], set11_1_12: [12], set11_2_00: [13], set11_2_01: [14], set11_2_02: [15], set11_2_03: [16], set11_2_04: [17], set11_2_05: [18], set11_2_06: [19], set11_2_07: [20], set11_2_08: [21], set11_2_09: [22], set11_2_10: [23], set11_2_11: [24], set11_2_12: [25], set11_3_00: [26], set11_3_01: [27], set11_3_02: [28], set11_3_03: [29], set11_3_04: [30], set11_3_05: [31], set11_3_06: [32], set11_3_07: [33], set11_3_08: [34], set11_3_09: [35], set11_3_10: [36], set11_3_11: [37], set11_3_12: [38], set11_4_00: [39], set11_4_01: [40], set11_4_02: [41], set11_4_03: [42], set11_4_04: [43], set11_4_05: [44], set11_4_06: [45], set11_4_07: [46], set11_4_08: [47], set11_4_09: [48], set11_4_10: [49], set11_4_11: [50], set11_4_12: [51], set11_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:d526c811d021d106a504e31a86629e1f:dc3ce24198ed0c158deae1d17048b1ba:d60bc8ffaeedb7f9c4d23af89a0ac195$", "EaselJS Extended Exporter - Trim support"] }; var card_set_12 = { images: ["card_set12.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set12_1_00: [0], set12_1_01: [1], set12_1_02: [2], set12_1_03: [3], set12_1_04: [4], set12_1_05: [5], set12_1_06: [6], set12_1_07: [7], set12_1_08: [8], set12_1_09: [9], set12_1_10: [10], set12_1_11: [11], set12_1_12: [12], set12_2_00: [13], set12_2_01: [14], set12_2_02: [15], set12_2_03: [16], set12_2_04: [17], set12_2_05: [18], set12_2_06: [19], set12_2_07: [20], set12_2_08: [21], set12_2_09: [22], set12_2_10: [23], set12_2_11: [24], set12_2_12: [25], set12_3_00: [26], set12_3_01: [27], set12_3_02: [28], set12_3_03: [29], set12_3_04: [30], set12_3_05: [31], set12_3_06: [32], set12_3_07: [33], set12_3_08: [34], set12_3_09: [35], set12_3_10: [36], set12_3_11: [37], set12_3_12: [38], set12_4_00: [39], set12_4_01: [40], set12_4_02: [41], set12_4_03: [42], set12_4_04: [43], set12_4_05: [44], set12_4_06: [45], set12_4_07: [46], set12_4_08: [47], set12_4_09: [48], set12_4_10: [49], set12_4_11: [50], set12_4_12: [51], set12_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:b328bbc2c7ca8c4e921b298119cc7641:d2e591f798f93f9be4dd8a2c2352a595:900476ba4414c45bd25e44607f106265$", "EaselJS Extended Exporter - Trim support"] }; var card_set_13 = { images: ["card_set13.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set13_1_00: [0], set13_1_01: [1], set13_1_02: [2], set13_1_03: [3], set13_1_04: [4], set13_1_05: [5], set13_1_06: [6], set13_1_07: [7], set13_1_08: [8], set13_1_09: [9], set13_1_10: [10], set13_1_11: [11], set13_1_12: [12], set13_2_00: [13], set13_2_01: [14], set13_2_02: [15], set13_2_03: [16], set13_2_04: [17], set13_2_05: [18], set13_2_06: [19], set13_2_07: [20], set13_2_08: [21], set13_2_09: [22], set13_2_10: [23], set13_2_11: [24], set13_2_12: [25], set13_3_00: [26], set13_3_01: [27], set13_3_02: [28], set13_3_03: [29], set13_3_04: [30], set13_3_05: [31], set13_3_06: [32], set13_3_07: [33], set13_3_08: [34], set13_3_09: [35], set13_3_10: [36], set13_3_11: [37], set13_3_12: [38], set13_4_00: [39], set13_4_01: [40], set13_4_02: [41], set13_4_03: [42], set13_4_04: [43], set13_4_05: [44], set13_4_06: [45], set13_4_07: [46], set13_4_08: [47], set13_4_09: [48], set13_4_10: [49], set13_4_11: [50], set13_4_12: [51], set13_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:87f625b3d19c5ac2657fc11b0c27f6da:7bb6f825a0cc5ea65c97cf9bfefdb1e8:af7cca1968b15d40d4267cacf9f8043f$", "EaselJS Extended Exporter - Trim support"] }; var card_set_14 = { images: ["card_set14.png"], frames: [[1, 1, 111, 154, 0, -0, -0, 111, 154], [1, 157, 111, 154, 0, -0, -0, 111, 154], [1, 313, 111, 154, 0, -0, -0, 111, 154], [1, 469, 111, 154, 0, -0, -0, 111, 154], [1, 625, 111, 154, 0, -0, -0, 111, 154], [1, 781, 111, 154, 0, -0, -0, 111, 154], [114, 1, 111, 154, 0, -0, -0, 111, 154], [227, 1, 111, 154, 0, -0, -0, 111, 154], [340, 1, 111, 154, 0, -0, -0, 111, 154], [453, 1, 111, 154, 0, -0, -0, 111, 154], [566, 1, 111, 154, 0, -0, -0, 111, 154], [679, 1, 111, 154, 0, -0, -0, 111, 154], [792, 1, 111, 154, 0, -0, -0, 111, 154], [905, 1, 111, 154, 0, -0, -0, 111, 154], [114, 157, 111, 154, 0, -0, -0, 111, 154], [114, 313, 111, 154, 0, -0, -0, 111, 154], [114, 469, 111, 154, 0, -0, -0, 111, 154], [114, 625, 111, 154, 0, -0, -0, 111, 154], [114, 781, 111, 154, 0, -0, -0, 111, 154], [227, 157, 111, 154, 0, -0, -0, 111, 154], [227, 313, 111, 154, 0, -0, -0, 111, 154], [227, 469, 111, 154, 0, -0, -0, 111, 154], [227, 625, 111, 154, 0, -0, -0, 111, 154], [227, 781, 111, 154, 0, -0, -0, 111, 154], [340, 157, 111, 154, 0, -0, -0, 111, 154], [453, 157, 111, 154, 0, -0, -0, 111, 154], [566, 157, 111, 154, 0, -0, -0, 111, 154], [679, 157, 111, 154, 0, -0, -0, 111, 154], [792, 157, 111, 154, 0, -0, -0, 111, 154], [905, 157, 111, 154, 0, -0, -0, 111, 154], [340, 313, 111, 154, 0, -0, -0, 111, 154], [340, 469, 111, 154, 0, -0, -0, 111, 154], [340, 625, 111, 154, 0, -0, -0, 111, 154], [340, 781, 111, 154, 0, -0, -0, 111, 154], [453, 313, 111, 154, 0, -0, -0, 111, 154], [566, 313, 111, 154, 0, -0, -0, 111, 154], [679, 313, 111, 154, 0, -0, -0, 111, 154], [792, 313, 111, 154, 0, -0, -0, 111, 154], [905, 313, 111, 154, 0, -0, -0, 111, 154], [453, 469, 111, 154, 0, -0, -0, 111, 154], [453, 625, 111, 154, 0, -0, -0, 111, 154], [453, 781, 111, 154, 0, -0, -0, 111, 154], [566, 469, 111, 154, 0, -0, -0, 111, 154], [679, 469, 111, 154, 0, -0, -0, 111, 154], [792, 469, 111, 154, 0, -0, -0, 111, 154], [905, 469, 111, 154, 0, -0, -0, 111, 154], [566, 625, 111, 154, 0, -0, -0, 111, 154], [566, 781, 111, 154, 0, -0, -0, 111, 154], [679, 625, 111, 154, 0, -0, -0, 111, 154], [679, 781, 111, 154, 0, -0, -0, 111, 154], [792, 625, 111, 154, 0, -0, -0, 111, 154], [905, 625, 111, 154, 0, -0, -0, 111, 154], [792, 781, 111, 154, 0, -0, -0, 111, 154]], animations: { set14_1_00: [0], set14_1_01: [1], set14_1_02: [2], set14_1_03: [3], set14_1_04: [4], set14_1_05: [5], set14_1_06: [6], set14_1_07: [7], set14_1_08: [8], set14_1_09: [9], set14_1_10: [10], set14_1_11: [11], set14_1_12: [12], set14_2_00: [13], set14_2_01: [14], set14_2_02: [15], set14_2_03: [16], set14_2_04: [17], set14_2_05: [18], set14_2_06: [19], set14_2_07: [20], set14_2_08: [21], set14_2_09: [22], set14_2_10: [23], set14_2_11: [24], set14_2_12: [25], set14_3_00: [26], set14_3_01: [27], set14_3_02: [28], set14_3_03: [29], set14_3_04: [30], set14_3_05: [31], set14_3_06: [32], set14_3_07: [33], set14_3_08: [34], set14_3_09: [35], set14_3_10: [36], set14_3_11: [37], set14_3_12: [38], set14_4_00: [39], set14_4_01: [40], set14_4_02: [41], set14_4_03: [42], set14_4_04: [43], set14_4_05: [44], set14_4_06: [45], set14_4_07: [46], set14_4_08: [47], set14_4_09: [48], set14_4_10: [49], set14_4_11: [50], set14_4_12: [51], set14_back: [52] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:e8aa0c2b5595b8894e3fcc2cf64b180d:7883314275cde0124aee42ad1a29e2c2:2f5279bc0664c6fea30f8decb2907aa0$", "EaselJS Extended Exporter - Trim support"] }; var ore_atlas_alpha_neon = { images: ["art_neon.png"], frames: [[443, 2019, 46, 27, 0, -0, -0, 46, 27], [491, 2019, 46, 27, 0, -0, -0, 46, 27], [539, 2019, 46, 27, 0, -0, -0, 46, 27], [1055, 111, 201, 98, 0, -0, -0, 201, 98], [1055, 211, 201, 98, 0, -0, -0, 201, 98], [950, 1, 98, 99, 0, -0, -0, 98, 99], [950, 102, 98, 99, 0, -0, -0, 98, 99], [848, 103, 98, 99, 0, -0, -0, 98, 99], [1050, 1, 96, 98, 0, -0, -0, 96, 98], [1149, 756, 96, 98, 0, -0, -0, 96, 98], [945, 304, 98, 99, 0, -0, -0, 98, 99], [1938, 1465, 96, 97, 0, -0, -0, 96, 97], [1149, 856, 96, 98, 0, -0, -0, 96, 98], [948, 203, 98, 99, 0, -0, -0, 98, 99], [845, 204, 98, 99, 0, -0, -0, 98, 99], [1149, 956, 96, 98, 0, -0, -0, 96, 98], [621, 1829, 160, 162, 0, -0, -0, 160, 162], [845, 305, 98, 99, 0, -0, -0, 98, 99], [848, 1, 100, 100, 0, -0, -0, 100, 100], [773, 110, 70, 70, 0, -0, -0, 70, 70], [773, 182, 70, 70, 0, -0, -0, 70, 70], [773, 326, 67, 68, 0, -0, -0, 67, 68], [773, 254, 70, 70, 0, -0, -0, 70, 70], [80, 1829, 386, 188, 0, -0, -0, 386, 188], [468, 1829, 151, 188, 0, -0, -0, 151, 188], [1149, 1, 108, 108, 0, -0, -0, 108, 108], [773, 396, 58, 59, 0, -0, -0, 58, 59], [515, 1, 256, 1024, 0, -0, -0, 256, 1024], [1, 1, 512, 1024, 0, -0, -0, 512, 1024], [1, 2024, 440, 17, 0, -0, -0, 440, 17], [1625, 829, 118, 118, 0, -0, -0, 118, 118], [1260, 442, 600, 385, 0, -0, -0, 600, 385], [1149, 311, 98, 99, 0, -0, -0, 98, 99], [1260, 1, 600, 439, 0, -0, -0, 600, 439], [1, 1027, 600, 800, 0, -0, -0, 600, 800], [603, 1027, 450, 800, 0, -0, -0, 450, 800], [1045, 311, 98, 99, 0, -0, -0, 98, 99], [1149, 1056, 96, 98, 0, -0, -0, 96, 98], [1938, 1165, 96, 98, 0, -0, -0, 96, 98], [1938, 1265, 96, 98, 0, -0, -0, 96, 98], [1149, 1156, 96, 98, 0, -0, -0, 96, 98], [1033, 513, 139, 140, 0, -0, -0, 139, 140], [621, 1993, 327, 51, 0, -0, -0, 327, 51], [950, 1993, 308, 32, 0, -0, -0, 308, 32], [783, 1829, 120, 162, 0, -0, -0, 120, 162], [905, 1829, 120, 162, 0, -0, -0, 120, 162], [1027, 1829, 120, 162, 0, -0, -0, 120, 162], [1260, 829, 120, 162, 0, -0, -0, 120, 162], [945, 405, 98, 99, 0, -0, -0, 98, 99], [1149, 412, 98, 99, 0, -0, -0, 98, 99], [1504, 829, 119, 162, 0, -0, -0, 119, 162], [1055, 1720, 93, 93, 0, -0, -0, 93, 93], [1825, 1165, 111, 154, 0, -0, -0, 111, 154], [1260, 1149, 111, 154, 0, -0, -0, 111, 154], [1373, 1149, 111, 154, 0, -0, -0, 111, 154], [1486, 1149, 111, 154, 0, -0, -0, 111, 154], [1599, 1261, 111, 154, 0, -0, -0, 111, 154], [1712, 1297, 111, 154, 0, -0, -0, 111, 154], [1825, 1321, 111, 154, 0, -0, -0, 111, 154], [1055, 1564, 111, 154, 0, -0, -0, 111, 154], [1149, 1815, 111, 154, 0, -0, -0, 111, 154], [1625, 949, 111, 154, 0, -0, -0, 111, 154], [1858, 853, 111, 154, 0, -0, -0, 111, 154], [1738, 985, 111, 154, 0, -0, -0, 111, 154], [1851, 1009, 111, 154, 0, -0, -0, 111, 154], [1260, 993, 111, 154, 0, -0, -0, 111, 154], [1373, 993, 111, 154, 0, -0, -0, 111, 154], [1486, 993, 111, 154, 0, -0, -0, 111, 154], [1599, 1105, 111, 154, 0, -0, -0, 111, 154], [1712, 1141, 111, 154, 0, -0, -0, 111, 154], [1149, 1256, 96, 98, 0, -0, -0, 96, 98], [1938, 1365, 96, 98, 0, -0, -0, 96, 98], [1862, 1, 139, 140, 0, -0, -0, 139, 140], [1862, 143, 139, 140, 0, -0, -0, 139, 140], [1862, 285, 139, 140, 0, -0, -0, 139, 140], [1862, 427, 139, 140, 0, -0, -0, 139, 140], [1862, 569, 139, 140, 0, -0, -0, 139, 140], [1862, 711, 139, 140, 0, -0, -0, 139, 140], [773, 662, 300, 339, 0, -0, -0, 300, 339], [773, 507, 150, 153, 0, -0, -0, 150, 153], [1382, 829, 120, 162, 0, -0, -0, 120, 162], [1045, 412, 98, 99, 0, -0, -0, 98, 99], [1, 1829, 77, 193, 0, -0, -0, 77, 193], [773, 1, 73, 107, 0, -0, -0, 73, 107], [833, 406, 98, 99, 0, -0, -0, 98, 99], [933, 506, 98, 99, 0, -0, -0, 98, 99], [1149, 655, 98, 99, 0, -0, -0, 98, 99], [1745, 829, 111, 154, 0, -0, -0, 111, 154]], animations: { "animations-leaf animanimations-leaf0_t": [0], "animations-leaf animanimations-leaf1_t": [1], "animations-leaf animanimations-leaf2_t": [2], arrow_left: [3], arrow_right: [4], "b_1-3_1": [5], "b_1-3_3": [6], "b_1-3_inactive": [7], b_back: [8], b_back1: [9], b_calendar: [10], b_finish: [11], b_help: [12], "b_L-R": [13], "b_R-L": [14], b_restart: [15], b_select: [16], b_statistics: [17], black_rect: [18], "calendar cell current": [19], "calendar cell empty": [20], "calendar cell future": [21], "calendar cell won": [22], cards1_back: [23], cards2_back: [24], cards3_back: [25], close: [26], "font_green-export": [27], "font_white-export": [28], line1: [29], "loading ring": [30], logo: [31], menu: [32], menu_back: [33], menu_back_big: [34], menu_back_big1: [35], moves: [36], mus_off: [37], mus_on: [38], options: [39], pause: [40], play: [41], progressbar_bottom: [42], progressbar_top: [43], result0: [44], result1: [45], result2: [46], result3: [47], score: [48], score_vegas: [49], select: [50], select_border: [51], set1_back: [52], set2_back: [53], set3_back: [54], set4_back: [55], set5_back: [56], set6_back: [57], set7_back: [58], set8_back: [59], set9_back: [60], set10_back: [61], set11_back: [62], set12_back: [63], set13_back: [64], set14_back: [65], set15_back: [66], set16_back: [67], set17_back: [68], set18_back: [69], sound_off: [70], sound_on: [71], stat_bestscore: [72], stat_besttime: [73], stat_movies: [74], stat_played: [75], stat_time: [76], stat_won: [77], "Symbol 1Tween 10_t": [78], "Symbol 1Tween 20_t": [79], table_card_back: [80], time: [81], "tmp-tile animanimations-glow0_t": [82], "tmp-tile animanimations-sparks0_t": [83], vegas: [84], vegas_inactive: [85], vegas_off: [86], "White card": [87] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:9d30c0c0c6161415e503e4af36932491:5e561ed832a5ab973e8f812c1313a155:552017f61203fbbcc0e93284ab086c1a$", "EaselJS Extended Exporter - Trim support"] }; var __extends = this && this.__extends || function(e, t) { for (var s in t) t.hasOwnProperty(s) && (e[s] = t[s]); function i() { this.constructor = e } e.prototype = null === t ? Object.create(t) : (i.prototype = t.prototype, new i) } , ore_atlas_alpha = { images: ["art.png"], frames: [[1934, 652, 98, 98, 0, -0, -0, 98, 98], [1833, 682, 98, 98, 0, -0, -0, 98, 98], [1843, 443, 96, 187, 0, -0, -0, 96, 187], [309, 1111, 66, 139, 0, -0, -0, 66, 139], [664, 1609, 120, 115, 0, -0, -0, 120, 115], [950, 142, 200, 200, 0, -0, -0, 200, 200], [480, 1212, 100, 50, 0, -0, -0, 100, 50], [21, 0, 245, 556, 0, -0, -0, 245, 556], [811, 979, 306, 134, 0, -0, -0, 306, 134], [21, 557, 227, 404, 0, -0, -0, 227, 404], [0, 1922, 294, 124, 0, -0, -0, 294, 124], [0, 0, 20, 960, 0, -0, -0, 20, 960], [295, 0, 856, 141, 0, -0, -0, 856, 141], [426, 1752, 384, 164, 0, -0, -0, 384, 164], [21, 1233, 200, 200, 0, -0, -0, 200, 200], [1732, 601, 100, 50, 0, -0, -0, 100, 50], [1732, 443, 110, 96, 0, -0, -0, 110, 96], [0, 961, 20, 960, 0, -0, -0, 20, 960], [588, 1163, 163, 99, 0, -0, -0, 163, 99], [588, 1494, 80, 40, 0, -0, -0, 80, 40], [1702, 979, 62, 63, 0, -0, -0, 62, 63], [643, 661, 66, 25, 0, -0, -0, 66, 25], [267, 29, 24, 25, 0, -0, -0, 24, 25], [267, 55, 24, 25, 0, -0, -0, 24, 25], [894, 393, 52, 51, 0, -0, -0, 52, 51], [267, 0, 26, 28, 0, -0, -0, 26, 28], [249, 1440, 32, 52, 0, -0, -0, 32, 52], [249, 1399, 38, 40, 0, -0, -0, 38, 40], [294, 567, 49, 67, 0, -0, -0, 49, 67], [288, 469, 56, 46, 0, -0, -0, 56, 46], [710, 661, 100, 21, 0, -0, -0, 100, 21], [267, 81, 22, 99, 0, -0, -0, 22, 99], [1016, 894, 101, 44, 0, -0, -0, 101, 44], [1149, 527, 582, 137, 0, -0, -0, 582, 137], [1149, 665, 582, 137, 0, -0, -0, 582, 137], [588, 1535, 75, 195, 0, -0, -0, 75, 195], [822, 1114, 276, 46, 0, -0, -0, 276, 46], [822, 1161, 276, 46, 0, -0, -0, 276, 46], [822, 1208, 276, 46, 0, -0, -0, 276, 46], [822, 1255, 276, 46, 0, -0, -0, 276, 46], [822, 1302, 276, 46, 0, -0, -0, 276, 46], [894, 445, 52, 14, 0, -0, -0, 52, 14], [1792, 326, 37, 15, 0, -0, -0, 37, 15], [614, 661, 28, 29, 0, -0, -0, 28, 29], [848, 421, 37, 35, 0, -0, -0, 37, 35], [811, 793, 125, 73, 0, -0, -0, 125, 73], [376, 1111, 103, 111, 0, -0, -0, 103, 111], [811, 867, 81, 111, 0, -0, -0, 81, 111], [673, 1263, 131, 185, 0, -0, -0, 131, 185], [21, 1434, 200, 200, 0, -0, -0, 200, 200], [1833, 631, 100, 50, 0, -0, -0, 100, 50], [1792, 402, 148, 40, 0, -0, -0, 148, 40], [267, 221, 20, 960, 0, -0, -0, 20, 960], [21, 962, 216, 166, 0, -0, -0, 216, 166], [309, 1510, 278, 241, 0, -0, -0, 278, 241], [309, 1263, 363, 230, 0, -0, -0, 363, 230], [1659, 1284, 363, 230, 0, -0, -0, 363, 230], [1659, 1256, 386, 27, 0, -0, -0, 386, 27], [345, 393, 60, 64, 0, -0, -0, 60, 64], [21, 1635, 200, 200, 0, -0, -0, 200, 200], [1732, 652, 100, 50, 0, -0, -0, 100, 50], [295, 142, 654, 154, 0, -0, -0, 654, 154], [1137, 1286, 416, 28, 0, -0, -0, 416, 28], [345, 732, 543, 60, 0, -0, -0, 543, 60], [288, 793, 20, 960, 0, -0, -0, 20, 960], [295, 297, 652, 95, 0, -0, -0, 652, 95], [1149, 363, 582, 163, 0, -0, -0, 582, 163], [309, 860, 474, 250, 0, -0, -0, 474, 250], [1659, 1161, 386, 94, 0, -0, -0, 386, 94], [809, 393, 84, 27, 0, -0, -0, 84, 27], [1955, 191, 92, 58, 0, -0, -0, 92, 58], [1955, 250, 89, 88, 0, -0, -0, 89, 88], [560, 661, 33, 33, 0, -0, -0, 33, 33], [480, 1111, 100, 100, 0, -0, -0, 100, 100], [249, 1493, 32, 40, 0, -0, -0, 32, 40], [309, 732, 35, 56, 0, -0, -0, 35, 56], [1792, 283, 39, 42, 0, -0, -0, 39, 42], [21, 1836, 80, 80, 0, -0, -0, 80, 80], [1957, 102, 90, 88, 0, -0, -0, 90, 88], [1957, 0, 90, 101, 0, -0, -0, 90, 101], [1765, 977, 60, 60, 0, -0, -0, 60, 60], [1826, 979, 60, 60, 0, -0, -0, 60, 60], [921, 1619, 60, 60, 0, -0, -0, 60, 60], [921, 1680, 60, 60, 0, -0, -0, 60, 60], [921, 1741, 60, 60, 0, -0, -0, 60, 60], [921, 1802, 60, 60, 0, -0, -0, 60, 60], [980, 1863, 60, 60, 0, -0, -0, 60, 60], [1016, 1924, 60, 60, 0, -0, -0, 60, 60], [1016, 1985, 60, 60, 0, -0, -0, 60, 60], [982, 1619, 60, 60, 0, -0, -0, 60, 60], [983, 1547, 60, 60, 0, -0, -0, 60, 60], [982, 1680, 60, 60, 0, -0, -0, 60, 60], [982, 1741, 60, 60, 0, -0, -0, 60, 60], [982, 1802, 60, 60, 0, -0, -0, 60, 60], [1041, 1863, 60, 60, 0, -0, -0, 60, 60], [1077, 1924, 60, 60, 0, -0, -0, 60, 60], [1077, 1985, 60, 60, 0, -0, -0, 60, 60], [1043, 1608, 60, 60, 0, -0, -0, 60, 60], [1044, 1547, 60, 60, 0, -0, -0, 60, 60], [1043, 1669, 60, 60, 0, -0, -0, 60, 60], [1043, 1730, 60, 60, 0, -0, -0, 60, 60], [1043, 1791, 60, 60, 0, -0, -0, 60, 60], [1102, 1852, 60, 60, 0, -0, -0, 60, 60], [1138, 1913, 60, 60, 0, -0, -0, 60, 60], [1138, 1974, 60, 60, 0, -0, -0, 60, 60], [1104, 1608, 60, 60, 0, -0, -0, 60, 60], [1105, 1515, 60, 60, 0, -0, -0, 60, 60], [1137, 1385, 60, 60, 0, -0, -0, 60, 60], [1137, 1446, 60, 60, 0, -0, -0, 60, 60], [1137, 1315, 60, 60, 0, -0, -0, 60, 60], [1104, 1669, 60, 60, 0, -0, -0, 60, 60], [1104, 1730, 60, 60, 0, -0, -0, 60, 60], [1104, 1791, 60, 60, 0, -0, -0, 60, 60], [1163, 1852, 60, 60, 0, -0, -0, 60, 60], [1199, 1913, 60, 60, 0, -0, -0, 60, 60], [1199, 1974, 60, 60, 0, -0, -0, 60, 60], [1165, 1576, 60, 60, 0, -0, -0, 60, 60], [1166, 1515, 60, 60, 0, -0, -0, 60, 60], [294, 635, 49, 60, 0, -0, -0, 49, 60], [1198, 1385, 60, 60, 0, -0, -0, 60, 60], [344, 661, 35, 34, 0, -0, -0, 35, 34], [380, 661, 35, 34, 0, -0, -0, 35, 34], [416, 661, 35, 34, 0, -0, -0, 35, 34], [452, 661, 35, 34, 0, -0, -0, 35, 34], [488, 661, 35, 34, 0, -0, -0, 35, 34], [524, 661, 35, 34, 0, -0, -0, 35, 34], [102, 1836, 80, 80, 0, -0, -0, 80, 80], [183, 1836, 80, 80, 0, -0, -0, 80, 80], [1732, 703, 98, 98, 0, -0, -0, 98, 98], [249, 1676, 30, 45, 0, -0, -0, 30, 45], [889, 737, 30, 45, 0, -0, -0, 30, 45], [375, 1752, 30, 45, 0, -0, -0, 30, 45], [309, 814, 30, 45, 0, -0, -0, 30, 45], [375, 1752, 30, 45, 0, -0, -0, 30, 45], [1940, 530, 100, 60, 0, -0, -0, 100, 60], [1940, 591, 100, 60, 0, -0, -0, 100, 60], [1940, 591, 100, 60, 0, -0, -0, 100, 60], [1732, 540, 100, 60, 0, -0, -0, 100, 60], [249, 557, 13, 20, 0, -0, -0, 13, 20], [1151, 247, 640, 115, 0, -0, -0, 640, 115], [249, 1722, 30, 14, 0, -0, -0, 30, 14], [345, 460, 600, 200, 0, -0, -0, 600, 200], [809, 421, 38, 38, 0, -0, -0, 38, 38], [264, 1836, 80, 80, 0, -0, -0, 80, 80], [1932, 751, 98, 98, 0, -0, -0, 98, 98], [1834, 107, 120, 120, 0, -0, -0, 120, 120], [1834, 228, 120, 120, 0, -0, -0, 120, 120], [673, 1449, 120, 120, 0, -0, -0, 120, 120], [1831, 781, 98, 98, 0, -0, -0, 98, 98], [1732, 802, 98, 98, 0, -0, -0, 98, 98], [249, 578, 13, 19, 0, -0, -0, 13, 19], [288, 732, 20, 18, 0, -0, -0, 20, 18], [594, 661, 19, 33, 0, -0, -0, 19, 33], [249, 1737, 19, 17, 0, -0, -0, 19, 17], [1792, 247, 40, 35, 0, -0, -0, 40, 35], [288, 751, 19, 24, 0, -0, -0, 19, 24], [309, 789, 35, 24, 0, -0, -0, 35, 24], [894, 1874, 85, 93, 0, -0, -0, 85, 93], [946, 593, 184, 115, 0, -0, -0, 184, 115], [1930, 850, 98, 98, 0, -0, -0, 98, 98], [1831, 880, 98, 98, 0, -0, -0, 98, 98], [1930, 949, 98, 98, 0, -0, -0, 98, 98], [1702, 901, 62, 71, 0, -0, -0, 62, 71], [894, 661, 47, 75, 0, -0, -0, 47, 75], [894, 1968, 60, 75, 0, -0, -0, 60, 75], [822, 1425, 61, 75, 0, -0, -0, 61, 75], [1765, 901, 65, 75, 0, -0, -0, 65, 75], [955, 1968, 60, 75, 0, -0, -0, 60, 75], [822, 1501, 61, 75, 0, -0, -0, 61, 75], [1732, 363, 59, 75, 0, -0, -0, 59, 75], [822, 1349, 63, 75, 0, -0, -0, 63, 75], [921, 1547, 61, 71, 0, -0, -0, 61, 71], [288, 393, 56, 75, 0, -0, -0, 56, 75], [1554, 1286, 98, 98, 0, -0, -0, 98, 98], [894, 1349, 98, 98, 0, -0, -0, 98, 98], [1941, 429, 100, 100, 0, -0, -0, 100, 100], [664, 1570, 142, 38, 0, -0, -0, 142, 38], [267, 181, 22, 39, 0, -0, -0, 22, 39], [294, 1754, 80, 80, 0, -0, -0, 80, 80], [993, 1349, 98, 98, 0, -0, -0, 98, 98], [345, 1835, 80, 80, 0, -0, -0, 80, 80], [1702, 1048, 340, 112, 0, -0, -0, 340, 112], [295, 1917, 598, 128, 0, -0, -0, 598, 128], [1792, 349, 161, 52, 0, -0, -0, 161, 52], [21, 1129, 208, 51, 0, -0, -0, 208, 51], [588, 1111, 172, 51, 0, -0, -0, 172, 51], [294, 696, 595, 35, 0, -0, -0, 595, 35], [222, 1763, 71, 72, 0, -0, -0, 71, 72], [21, 1181, 203, 51, 0, -0, -0, 203, 51], [345, 793, 440, 52, 0, -0, -0, 440, 52], [894, 867, 40, 102, 0, -0, -0, 40, 102], [1955, 339, 88, 89, 0, -0, -0, 88, 89], [894, 1448, 98, 98, 0, -0, -0, 98, 98], [993, 1448, 98, 98, 0, -0, -0, 98, 98], [822, 1577, 98, 98, 0, -0, -0, 98, 98], [822, 1676, 98, 98, 0, -0, -0, 98, 98], [822, 1775, 98, 98, 0, -0, -0, 98, 98], [406, 393, 402, 63, 0, -0, -0, 402, 63], [942, 709, 183, 184, 0, -0, -0, 183, 184], [249, 1534, 30, 70, 0, -0, -0, 30, 70], [249, 1605, 30, 70, 0, -0, -0, 30, 70], [1016, 939, 39, 39, 0, -0, -0, 39, 39], [1149, 803, 552, 293, 0, -0, -0, 552, 293], [1152, 0, 804, 106, 0, -0, -0, 804, 106], [1152, 107, 681, 139, 0, -0, -0, 681, 139], [1149, 1097, 509, 188, 0, -0, -0, 509, 188], [249, 598, 10, 800, 0, -0, -0, 10, 800], [238, 962, 10, 800, 0, -0, -0, 10, 800], [1138, 343, 10, 800, 0, -0, -0, 10, 800], [1126, 709, 10, 800, 0, -0, -0, 10, 800], [811, 1114, 10, 800, 0, -0, -0, 10, 800], [948, 343, 189, 249, 0, -0, -0, 189, 249], [294, 516, 50, 50, 0, -0, -0, 50, 50], [935, 894, 80, 80, 0, -0, -0, 80, 80]], animations: { achievements: [0], back: [1], "back01-02_tree1": [2], "back01-02_tree2": [3], "back01-02_tree3": [4], back01_big_cloud1: [5], back01_big_cloud2: [6], back01_big_tree1: [7], back01_building1: [8], back01_building2: [9], back01_building3: [10], back01_grad: [11], back01_hills: [12], back01_houses: [13], back02_big_cloud1: [14], back02_big_cloud2: [15], back02_boat: [16], back02_grad: [17], back02_island_end: [18], back02_island_green1: [19], back02_island_green10: [20], back02_island_green2: [21], back02_island_green3: [22], back02_island_green4: [23], back02_island_green5: [24], back02_island_green6: [25], back02_island_green7: [26], back02_island_green8: [27], back02_island_green9: [28], back02_island_hill: [29], back02_island_lake: [30], back02_island_middle: [31], back02_island_small: [32], back02_land1: [33], back02_land2: [34], back02_lighthouse: [35], back02_wave1: [36], back02_wave2: [37], back02_wave3: [38], back02_wave4: [39], back02_wave5: [40], "back03-04_bush1": [41], "back03-04_bush2": [42], "back03-04_bush3": [43], "back03-04_bush4": [44], "back03-04_land_small": [45], "back03-04_tree1": [46], "back03-04_tree2": [47], "back03-04_tree3": [48], back03_big_cloud1: [49], back03_big_cloud2: [50], back03_fence: [51], back03_grad: [52], back03_house1: [53], back03_house2: [54], back03_land1: [55], back03_land2: [56], back03_land3: [57], back03_wel: [58], back04_big_cloud1: [59], back04_big_cloud2: [60], back04_cloud1: [61], back04_cloud2: [62], back04_cloud3: [63], back04_grad: [64], back04_hill1: [65], back04_hill2: [66], back04_hill3: [67], back04_land_big: [68], back04_rock1: [69], back04_rock2: [70], back04_rock3: [71], base: [72], black_rect: [73], block_particle1: [74], block_particle2: [75], block_particle3: [76], blue_gradient: [77], bonus_particle: [78], cage: [79], character00_teddy: [80], character01_flower_pot: [81], character02_duck: [82], character03_thors_hammer: [83], character04_shark: [84], character05_brick: [85], character06_cheese: [86], character07_bunny: [87], character08_skull: [88], character09_lucky_cat: [89], character10_brocken_tv: [90], character11_apple: [91], character12_smiley_new: [92], character13_snowman: [93], character14_bomb: [94], character15_frog: [95], character16_tire_new: [96], character17_monkey: [97], character18_book: [98], character19_bananas: [99], "character20_t-rex": [100], character21_poop: [101], character22_calculator: [102], character23_fat_bird: [103], character24_tomato: [104], character25_choko: [105], character26_robot: [106], character27_cow: [107], character28_mug: [108], character29_piranha_bones: [109], character30_pterodactyl: [110], character31_burger: [111], character32_garbage: [112], character33_kolobokur: [113], character34_drink: [114], character35_lion: [115], character36_meat: [116], character37_beaver: [117], character38_panda_new: [118], character39_car: [119], cir_fire1: [120], cir_fire2: [121], cir_fire3: [122], cir_fire4: [123], cir_fire5: [124], cir_fire6: [125], dirt1: [126], dirt2: [127], facebook_like: [128], fire1: [129], fire2: [130], fire3: [131], fire4: [132], fire5: [133], fireball1: [134], fireball2: [135], fireball3: [136], fireball4: [137], game_arrow: [138], game_over: [139], game_platform_end: [140], game_title: [141], "gloss animGloss0_t": [142], green_gradient: [143], help: [144], item_shop: [145], item_shop_closed: [146], item_shop_select: [147], items: [148], leaderboards: [149], leaf1: [150], leaf2: [151], leaf3: [152], leaf4: [153], leaf5: [154], menu_line_part1: [155], menu_line_part2: [156], monster_shell: [157], more: [158], music_off: [159], music_on: [160], no_ads: [161], number_0: [162], number_1: [163], number_2: [164], number_3: [165], number_4: [166], number_5: [167], number_6: [168], number_7: [169], number_8: [170], number_9: [171], number_slash: [172], pause: [173], pause_play: [174], platform: [175], progress_bar: [176], "progressbar star": [177], purple_gradient: [178], rate: [179], red_gradient: [180], restart: [181], restore_purchases: [182], s_best: [183], s_score: [184], s_shop: [185], s_shop_text: [186], s_star_icon: [187], s_stars: [188], s_tap_to_start: [189], s_yellow_line: [190], select_spell: [191], settings: [192], share: [193], shop: [194], sound_off: [195], sound_on: [196], spikes: [197], "star glow": [198], stick: [199], stick_glass: [200], time: [201], title: [202], top_cloud1: [203], top_cloud2: [204], top_cloud3: [205], w_left: [206], w_mid1: [207], w_mid2: [208], w_mid3: [209], w_right: [210], watch_video: [211], white: [212], yellow_gradient: [213] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:bba5c4a2741b28bab3e0b013af9e83d8:e4710851dda3b51fe9b4b4789102e6a0:9eb3a69878084614b39dbba1d72c6cfc$", "EaselJS Extended Exporter - Trim support"] } , ore_atlas_alpha_tiles = { images: ["art_tiles.png"], frames: [[0, 0, 125, 182, 0, -0, -0, 125, 182], [126, 0, 125, 182, 0, -0, -0, 125, 182], [252, 0, 125, 182, 0, -0, -0, 125, 182], [378, 0, 125, 182, 0, -0, -0, 125, 182], [504, 0, 125, 182, 0, -0, -0, 125, 182], [630, 0, 125, 182, 0, -0, -0, 125, 182], [756, 0, 125, 182, 0, -0, -0, 125, 182], [882, 0, 125, 182, 0, -0, -0, 125, 182], [0, 183, 125, 182, 0, -0, -0, 125, 182], [126, 183, 125, 182, 0, -0, -0, 125, 182], [252, 183, 125, 182, 0, -0, -0, 125, 182], [378, 183, 125, 182, 0, -0, -0, 125, 182], [504, 183, 125, 182, 0, -0, -0, 125, 182], [630, 183, 125, 182, 0, -0, -0, 125, 182], [756, 183, 125, 182, 0, -0, -0, 125, 182], [882, 183, 125, 182, 0, -0, -0, 125, 182], [0, 366, 125, 182, 0, -0, -0, 125, 182], [126, 366, 125, 182, 0, -0, -0, 125, 182], [252, 366, 125, 182, 0, -0, -0, 125, 182], [378, 366, 125, 182, 0, -0, -0, 125, 182], [504, 366, 125, 182, 0, -0, -0, 125, 182], [630, 366, 125, 182, 0, -0, -0, 125, 182], [756, 366, 125, 182, 0, -0, -0, 125, 182], [882, 366, 125, 182, 0, -0, -0, 125, 182], [0, 549, 125, 182, 0, -0, -0, 125, 182], [126, 549, 125, 182, 0, -0, -0, 125, 182], [252, 549, 125, 182, 0, -0, -0, 125, 182], [378, 549, 125, 182, 0, -0, -0, 125, 182], [504, 549, 125, 182, 0, -0, -0, 125, 182], [630, 549, 125, 182, 0, -0, -0, 125, 182], [756, 549, 125, 182, 0, -0, -0, 125, 182], [882, 549, 125, 182, 0, -0, -0, 125, 182], [0, 732, 125, 182, 0, -0, -0, 125, 182], [126, 732, 125, 182, 0, -0, -0, 125, 182], [252, 732, 125, 182, 0, -0, -0, 125, 182], [378, 732, 125, 182, 0, -0, -0, 125, 182], [504, 732, 125, 182, 0, -0, -0, 125, 182], [630, 732, 125, 182, 0, -0, -0, 125, 182], [756, 732, 125, 182, 0, -0, -0, 125, 182], [882, 732, 125, 182, 0, -0, -0, 125, 182], [0, 915, 125, 182, 0, -0, -0, 125, 182], [0, 1098, 125, 182, 0, -0, -0, 125, 182], [0, 1281, 125, 182, 0, -0, -0, 125, 182], [0, 1464, 125, 182, 0, -0, -0, 125, 182], [0, 1647, 125, 182, 0, -0, -0, 125, 182], [0, 1830, 125, 182, 0, -0, -0, 125, 182], [126, 915, 125, 182, 0, -0, -0, 125, 182], [252, 915, 125, 182, 0, -0, -0, 125, 182], [378, 915, 125, 182, 0, -0, -0, 125, 182], [504, 915, 125, 182, 0, -0, -0, 125, 182], [630, 915, 125, 182, 0, -0, -0, 125, 182], [756, 915, 125, 182, 0, -0, -0, 125, 182], [882, 915, 125, 182, 0, -0, -0, 125, 182], [126, 1098, 125, 182, 0, -0, -0, 125, 182], [126, 1281, 125, 182, 0, -0, -0, 125, 182], [126, 1464, 125, 182, 0, -0, -0, 125, 182], [126, 1647, 125, 182, 0, -0, -0, 125, 182], [126, 1830, 125, 182, 0, -0, -0, 125, 182], [252, 1098, 125, 182, 0, -0, -0, 125, 182], [378, 1098, 125, 182, 0, -0, -0, 125, 182], [504, 1098, 125, 182, 0, -0, -0, 125, 182], [630, 1098, 125, 182, 0, -0, -0, 125, 182], [756, 1098, 125, 182, 0, -0, -0, 125, 182], [882, 1098, 125, 182, 0, -0, -0, 125, 182], [252, 1281, 125, 182, 0, -0, -0, 125, 182], [252, 1464, 125, 182, 0, -0, -0, 125, 182], [252, 1647, 125, 182, 0, -0, -0, 125, 182], [252, 1830, 125, 182, 0, -0, -0, 125, 182], [378, 1281, 125, 182, 0, -0, -0, 125, 182], [504, 1281, 125, 182, 0, -0, -0, 125, 182], [630, 1281, 125, 182, 0, -0, -0, 125, 182], [756, 1281, 125, 182, 0, -0, -0, 125, 182]], animations: { "10_of_clubs": [0], "10_of_diamonds": [1], "10_of_hearts": [2], "10_of_spades": [3], "2_of_clubs": [4], "2_of_diamonds": [5], "2_of_hearts": [6], "2_of_spades": [7], "3_of_clubs": [8], "3_of_diamonds": [9], "3_of_hearts": [10], "3_of_spades": [11], "4_of_clubs": [12], "4_of_diamonds": [13], "4_of_hearts": [14], "4_of_spades": [15], "5_of_clubs": [16], "5_of_diamonds": [17], "5_of_hearts": [18], "5_of_spades": [19], "6_of_clubs": [20], "6_of_diamonds": [21], "6_of_hearts": [22], "6_of_spades": [23], "7_of_clubs": [24], "7_of_diamonds": [25], "7_of_hearts": [26], "7_of_spades": [27], "8_of_clubs": [28], "8_of_diamonds": [29], "8_of_hearts": [30], "8_of_spades": [31], "9_of_clubs": [32], "9_of_diamonds": [33], "9_of_hearts": [34], "9_of_spades": [35], ace_of_clubs: [36], ace_of_diamonds: [37], ace_of_hearts: [38], ace_of_spades: [39], ace_of_spades2: [40], card_back: [41], jack_of_clubs: [42], jack_of_clubs2: [43], jack_of_diamonds: [44], jack_of_diamonds2: [45], jack_of_hearts: [46], jack_of_hearts2: [47], jack_of_spades: [48], jack_of_spades2: [49], king_of_clubs: [50], king_of_clubs2: [51], king_of_diamonds: [52], king_of_diamonds2: [53], king_of_hearts: [54], king_of_hearts2: [55], king_of_spades: [56], king_of_spades2: [57], queen_of_clubs: [58], queen_of_clubs2: [59], queen_of_diamonds: [60], queen_of_diamonds2: [61], queen_of_hearts: [62], queen_of_hearts2: [63], queen_of_spades: [64], queen_of_spades2: [65], red_joker: [66], result0: [67], result1: [68], result2: [69], result3: [70], table_card_back: [71] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:9eb17232e5f01ded0ff5082fd8fe925a:e6b0f83b4a6c62611f32a208ea0a42d2:6d8e7a168d82c293db4064ce46ee06b3$", "EaselJS Extended Exporter - Trim support"] } , GameObject = function() { function e() { this.sprite = null, this.isDestroyed = !1, this.isWaitingForDestruction = !1, this.isLocked = !1, this.speed = new createjs.Point(0,0), this.gravity = new createjs.Point(0,0), this.angularSpeed = 0, this.stage = App.game.stage, this.level = BaseLevel.instance } return e.prototype.canBeVisible = function(e) { return !0 } , e.prototype.clearCloseCoins = function() {} , e.prototype.update = function(e) { if (this.sprite) { this.sprite.x += this.speed.x * e, this.sprite.y += this.speed.y * e, this.speed.x += this.gravity.x * e, this.speed.y += this.gravity.y * e, this.sprite.rotation += this.angularSpeed * e; var t = this.sprite.x , s = this.sprite.y; this.sprite.x = t, this.sprite.y = s } } , e.prototype.destroy = function() { removeClip(this.sprite), this.sprite = null, this.isDestroyed = !0 } , e }() , AnimationObject = function(e) { function t(t, s) { void 0 === s && (s = null); var i = e.call(this) || this; return i.frameTime = 1 / 30, i.animPos = new createjs.Point(0,0), i.currentFrame = 0, i.isPlaying = !1, i.animationPower = 1, i.animationSpeed = 1, i.stopSpeed = 0, i.resetFrame = -1, i.resetStopFrame = !1, i.destroyOnReset = !1, i.playAnimationIn = -1, i.animationToPlay = 0, i.handlePos = !1, i.hasRotation = !1, i.initSpritePos = cjp(0, 0), i.stopFrame = -1, s && (i.sprite = s, i.initSpritePos = cjp(s.x, s.y)), i.animationFrames = t, i.animationLen = t.length, i } return __extends(t, e), t.prototype.initAnim = function() { this.animPos.x = this.animPos.y = 0, this.animationPower = 1, this.animationSpeed = 1 } , t.prototype.setFrame = function(e, t) { void 0 === t && (t = !0); var s = this.animationLen , i = e < 0 || e >= s ? null : this.animationFrames[e] , a = e + 1 < 0 || e + 1 >= s ? null : this.animationFrames[e + 1] , n = null == i ? 0 : i.length , r = null == a ? 0 : a.length , o = null == i || n <= 0 , c = !o && null != a && r > 0 , h = this.currentFrame - e , l = this.animationPower; if (o) { if (this.resetFrame > 0) return this.setFrame(this.resetFrame), void (this.isPlaying = !1); if (this.resetStopFrame) return this.setFrame(e - 1), void (this.isPlaying = !1); if (this.destroyOnReset) return void this.destroy(); this.animPos.x = 0, this.animPos.y = 0, this.sprite.scaleX = 1, this.sprite.scaleY = 1, this.sprite.skewX = 0, this.sprite.skewY = 0, this.sprite.alpha = 1, this.sprite.rotation = 0 } else if (t) { var d = !c; this.animPos.x = d ? i[0] * l : l * (i[0] + h * (a[0] - i[0])), this.animPos.y = d ? i[1] * l : l * (i[1] + h * (a[1] - i[1])), this.sprite.scaleX = d ? 1 + (i[2] - 1) * l : 1 + (i[2] + h * (a[2] - i[2]) - 1) * l, this.sprite.scaleY = d ? 1 + (i[3] - 1) * l : 1 + (i[3] + h * (a[3] - i[3]) - 1) * l, this.hasRotation ? (this.sprite.skewX = d ? i[4] * l : l * (i[4] + h * (a[4] - i[4])), this.sprite.skewY = d ? i[5] * l : l * (i[5] + h * (a[5] - i[5]))) : this.sprite.rotation = i[4], n >= 7 && r >= 7 && (this.sprite.alpha = d ? 1 + (i[6] - 1) * l : 1 + (i[6] + h * (a[6] - i[6]) - 1) * l) } o && (this.isPlaying = !1, this.currentFrame = 0) } , t.prototype.playAnimation = function(e, t, s) { void 0 === t && (t = 1), void 0 === s && (s = 1), this.animationPower = t, this.animationSpeed = s, this.currentFrame = e, this.isPlaying = !0, this.setFrame(e) } , t.prototype.prepareToPlayAnimation = function(e, t) { this.playAnimationIn = e, this.animationToPlay = t } , t.prototype.update = function(e) { if (!this.isDestroyed) { if (this.sprite) { if (this.isPlaying) for (var t = e * this.animationSpeed; t > 0 && (this.stopFrame < 0 || ~~this.currentFrame != this.stopFrame) && this.isPlaying; ) this.currentFrame += t >= this.frameTime ? 1 : t / this.frameTime, t -= this.frameTime, this.setFrame(~~this.currentFrame, t <= this.frameTime); if (this.isDestroyed) return; this.playAnimationIn > 0 && (this.playAnimationIn -= e, this.playAnimationIn <= 0 && (this.sprite.visible = !0, this.playAnimation(this.animationToPlay, 1, 1))) } this.handlePos && (this.sprite.x = this.initSpritePos.x + this.animPos.x, this.sprite.y = this.initSpritePos.y + this.animPos.y) } } , t }(GameObject) , MinMaxData = function() { function e(e, t) { void 0 === e && (e = 0), void 0 === t && (t = 0), this.minValue = e, this.maxValue = t } return e.prototype.setData = function(e, t) { this.minValue = e, this.maxValue = t } , e.prototype.getValueI = function(e) { return void 0 === e && (e = -1), Math.floor(this.getValue(e)) } , e.prototype.checkValue = function(e) { return e >= this.minValue && e <= this.maxValue } , e.prototype.getValue = function(e) { return void 0 === e && (e = -1), lerp(this.minValue, this.maxValue, e >= 0 ? e : Math.random()) } , e }() , BezierData = function() { function e(t, s, i, a) { this.value = new createjs.Point, this.speed = 0, this.totalTime = 0, this.currentTime = 0, this.delay = 0, this.progress = 0, this.startPoint = t, this.controlPoint1 = s, this.controlPoint2 = i, this.endPoint = a, this.ease = createjs.Ease.linear, null == e.EASE_IN && (e.EASE_OUT = createjs.Ease.quadOut, e.EASE_IN = createjs.Ease.quadIn), this.length = this.getLength() } return e.prototype.clone = function(t) { return void 0 === t && (t = new createjs.Point(0,0)), new e(cjp(this.startPoint.x + t.x, this.startPoint.y + t.y),cjp(this.controlPoint1.x + t.x, this.controlPoint1.y + t.y),cjp(this.controlPoint2.x + t.x, this.controlPoint2.y + t.y),cjp(this.endPoint.x + t.x, this.endPoint.y + t.y)) } , e.prototype.setTime = function(e) { this.totalTime = e, this.currentTime = 0 } , e.prototype.getValue = function() { var e = this.startPoint , t = this.controlPoint1 , s = this.controlPoint2 , i = this.endPoint , a = this.ease(this.progress); return this.value.x = Math.pow(1 - a, 3) * e.x + 3 * Math.pow(1 - a, 2) * a * t.x + 3 * (1 - a) * Math.pow(a, 2) * s.x + Math.pow(a, 3) * i.x, this.value.y = Math.pow(1 - a, 3) * e.y + 3 * Math.pow(1 - a, 2) * a * t.y + 3 * (1 - a) * Math.pow(a, 2) * s.y + Math.pow(a, 3) * i.y, this.value } , e.prototype.update = function(e) { if (this.delay > 0) this.delay -= e; else { this.currentTime += e, this.currentTime > this.totalTime && (this.currentTime = this.totalTime); var t = this.currentTime / this.totalTime; t = (0, createjs.Ease.linear)(t); this.progress = limit(lerp(0, 1, t), 0, 1), this.getValue() } } , e.prototype.getLength = function() { for (var e = this.progress, t = 0, s = 0, i = 0, a = !0, n = 0; n <= 1 + 1e-10; n += .05) this.progress = n, this.getValue(), a || (t += distanceBetweenPoints(s, i, this.value.x, this.value.y)), a = !1, s = this.value.x, i = this.value.y; return this.progress = e, t } , e }(); BezierData.EASE_IN = null, BezierData.EASE_OUT = null; var Symbol_1 = { name: "Symbol 1", skew: "true", l: [{ flashName: "Layer 7", name: "Tween 1", d: { anchorX: "0.5", anchorY: "0.5", name: "Symbol 1Tween 10_t.png" }, f: [{ r: "0.000", x: "-153", y: "287.5", skX: "0", skY: "0", scX: "0.133", scY: "0.133" }, { r: "0.000", x: "-153.05", y: "182.15", skX: "0", skY: "0", scX: "0.457", scY: "0.457" }, { r: "0.000", x: "-153", y: "136.9", skX: "0", skY: "0", scX: "0.596", scY: "0.596" }, { r: "0.000", x: "-153", y: "105.35", skX: "0", skY: "0", scX: "0.693", scY: "0.693" }, { r: "0.000", x: "-153", y: "81.65", skX: "0", skY: "0", scX: "0.766", scY: "0.766" }, { r: "0.000", x: "-153", y: "63", skX: "0", skY: "0", scX: "0.823", scY: "0.823" }, { r: "0.000", x: "-153.05", y: "48.3", skX: "0", skY: "0", scX: "0.868", scY: "0.868" }, { r: "0.000", x: "-153", y: "36.55", skX: "0", skY: "0", scX: "0.905", scY: "0.905" }, { r: "0.000", x: "-153.05", y: "27.15", skX: "0", skY: "0", scX: "0.933", scY: "0.933" }, { r: "0.000", x: "-153", y: "19.85", skX: "0", skY: "0", scX: "0.956", scY: "0.956" }, { r: "0.000", x: "-153", y: "14.35", skX: "0", skY: "0", scX: "0.973", scY: "0.973" }, { r: "0.000", x: "-153", y: "10.3", skX: "0", skY: "0", scX: "0.985", scY: "0.985" }, { r: "0.000", x: "-153", y: "7.5", skX: "0", skY: "0", scX: "0.994", scY: "0.994" }, { r: "0.000", x: "-153", y: "6", skX: "0", skY: "0", scX: "0.998", scY: "0.998" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "5.5", skX: "0", skY: "0" }, { r: "0.000", x: "-153", y: "4.15", skX: "0", skY: "0", scX: "1.002", scY: "1.002" }, { r: "0.000", x: "-153", y: "-0.35", skX: "0", skY: "0", scX: "1.007", scY: "1.007" }, { r: "0.000", x: "-153", y: "-9.1", skX: "0", skY: "0", scX: "1.017", scY: "1.017" }, { r: "0.000", x: "-153", y: "-23.6", skX: "0", skY: "0", scX: "1.034", scY: "1.034" }, { r: "0.000", x: "-153", y: "-46.8", skX: "0", skY: "0", scX: "1.061", scY: "1.061" }, { r: "0.000", x: "-153.05", y: "-84.55", skX: "0", skY: "0", scX: "1.105", scY: "1.105" }, { r: "0.000", x: "-153.05", y: "-153.45", skX: "0", skY: "0", scX: "1.186", scY: "1.186" }, { r: "0.000", x: "-153.2", y: "-546.4", skX: "0", skY: "0", scX: "1.645", scY: "1.645" }] }, { flashName: "Layer 6", name: "Tween 2", f: [{ v: "false", c: "4" }, { r: "59.998", x: "-151.85", y: "298.85", skX: "59.998", skY: "59.998", scX: "0.178", scY: "0.178" }, { r: "43.364", x: "-107.3", y: "216.05", skX: "43.364", skY: "43.364", scX: "0.481", scY: "0.481" }, { r: "37.606", x: "-92.1", y: "187.75", skX: "37.606", skY: "37.606", scX: "0.585", scY: "0.585" }, { r: "33.614", x: "-81.55", y: "168.25", skX: "33.614", skY: "33.614", scX: "0.657", scY: "0.657" }, { r: "30.605", x: "-73.45", y: "153.25", skX: "30.605", skY: "30.605", scX: "0.712", scY: "0.712" }, { r: "28.305", x: "-67.05", y: "141.3", skX: "28.305", skY: "28.305", scX: "0.756", scY: "0.756" }, { r: "26.299", x: "-61.65", y: "131.3", skX: "26.299", skY: "26.299", scX: "0.793", scY: "0.793" }, { r: "24.558", x: "-57.1", y: "122.85", skX: "24.558", skY: "24.558", scX: "0.824", scY: "0.824" }, { r: "23.066", x: "-53.25", y: "115.6", skX: "23.066", skY: "23.066", scX: "0.85", scY: "0.85" }, { r: "21.813", x: "-49.9", y: "109.45", skX: "21.813", skY: "21.813", scX: "0.873", scY: "0.873" }, { r: "20.790", x: "-47.05", y: "104.05", skX: "20.79", skY: "20.79", scX: "0.893", scY: "0.893" }, { r: "19.801", x: "-44.55", y: "99.35", skX: "19.801", skY: "19.801", scX: "0.91", scY: "0.91" }, { r: "19.031", x: "-42.35", y: "95.25", skX: "19.031", skY: "19.031", scX: "0.925", scY: "0.925" }, { r: "18.287", x: "-40.45", y: "91.7", skX: "18.287", skY: "18.287", scX: "0.938", scY: "0.938" }, { r: "17.568", x: "-38.75", y: "88.65", skX: "17.568", skY: "17.568", scX: "0.95", scY: "0.95" }, { r: "17.058", x: "-37.3", y: "85.9", skX: "17.058", skY: "17.058", scX: "0.96", scY: "0.96" }, { r: "16.566", x: "-36.05", y: "83.65", skX: "16.566", skY: "16.566", scX: "0.968", scY: "0.968" }, { r: "16.279", x: "-35.05", y: "81.65", skX: "16.279", skY: "16.279", scX: "0.975", scY: "0.975" }, { r: "15.820", x: "-34.1", y: "80", skX: "15.82", skY: "15.82", scX: "0.981", scY: "0.981" }, { r: "15.562", x: "-33.35", y: "78.6", skX: "15.562", skY: "15.562", scX: "0.986", scY: "0.986" }, { r: "15.318", x: "-32.75", y: "77.5", skX: "15.318", skY: "15.318", scX: "0.991", scY: "0.991" }, { r: "15.273", x: "-32.35", y: "76.6", skX: "15.273", skY: "15.273", scX: "0.994", scY: "0.994" }, { r: "15.054", x: "-31.95", y: "75.95", skX: "15.054", skY: "15.054", scX: "0.996", scY: "0.996" }, { r: "15.029", x: "-31.75", y: "75.45", skX: "15.029", skY: "15.029", scX: "0.998", scY: "0.998" }, { r: "15.017", x: "-31.6", y: "75.3", skX: "15.017", skY: "15.017" }, { r: "14.999", x: "-31.25", y: "75.5", skX: "14.999", skY: "14.999" }, { r: "14.796", x: "-29.7", y: "75.3", skX: "14.796", skY: "14.796", scX: "1.006", scY: "1.006" }, { r: "14.323", x: "-24.5", y: "74.65", skX: "14.323", skY: "14.323", scX: "1.03", scY: "1.03" }, { r: "13.573", x: "-14.45", y: "73.25", skX: "13.573", skY: "13.573", scX: "1.075", scY: "1.075" }, { r: "12.512", x: "2.2", y: "71.05", skX: "12.512", skY: "12.512", scX: "1.15", scY: "1.15" }, { r: "10.519", x: "28.5", y: "67.5", skX: "10.519", skY: "10.519", scX: "1.27", scY: "1.27" }, { r: "7.284", x: "71.15", y: "61.85", skX: "7.284", skY: "7.284", scX: "1.463", scY: "1.463" }, { r: "1.533", x: "148.35", y: "51.55", skX: "1.533", skY: "1.533", scX: "1.812", scY: "1.812" }, { r: "-30.001", x: "573.1", y: "-5.2", skX: "-30.001", skY: "-30.001", scX: "3.735", scY: "3.735" }], d: { anchorX: "0.5", anchorY: "0.5", name: "Symbol 1Tween 20_t.png" } }, { flashName: "Layer 5", name: "Tween 2", f: [{ v: "false", c: "4" }, { r: "-90.000", x: "-153.9", y: "271.85", skX: "-90", skY: "-90", scX: "0.178", scY: "0.178" }, { r: "-73.449", x: "-86.65", y: "113.55", skX: "-73.449", skY: "-73.449", scX: "0.482", scY: "0.482" }, { r: "-67.698", x: "-63.6", y: "59.25", skX: "-67.698", skY: "-67.698", scX: "0.586", scY: "0.586" }, { r: "-63.708", x: "-47.8", y: "22", skX: "-63.708", skY: "-63.708", scX: "0.657", scY: "0.657" }, { r: "-60.699", x: "-35.65", y: "-6.55", skX: "-60.699", skY: "-60.699", scX: "0.712", scY: "0.712" }, { r: "-58.400", x: "-25.85", y: "-29.5", skX: "-58.4", skY: "-58.4", scX: "0.756", scY: "0.756" }, { r: "-56.392", x: "-17.75", y: "-48.65", skX: "-56.392", skY: "-56.392", scX: "0.792", scY: "0.792" }, { r: "-54.651", x: "-10.85", y: "-64.75", skX: "-54.651", skY: "-54.651", scX: "0.823", scY: "0.823" }, { r: "-53.159", x: "-5", y: "-78.55", skX: "-53.159", skY: "-53.159", scX: "0.85", scY: "0.85" }, { r: "-51.903", x: "0", y: "-90.4", skX: "-51.903", skY: "-51.903", scX: "0.873", scY: "0.873" }, { r: "-50.878", x: "4.4", y: "-100.75", skX: "-50.878", skY: "-50.878", scX: "0.892", scY: "0.892" }, { r: "-49.890", x: "8.2", y: "-109.75", skX: "-49.89", skY: "-49.89", scX: "0.91", scY: "0.91" }, { r: "-49.119", x: "11.5", y: "-117.6", skX: "-49.119", skY: "-49.119", scX: "0.925", scY: "0.925" }, { r: "-48.374", x: "14.4", y: "-124.4", skX: "-48.374", skY: "-48.374", scX: "0.938", scY: "0.938" }, { r: "-47.654", x: "16.95", y: "-130.3", skX: "-47.654", skY: "-47.654", scX: "0.949", scY: "0.949" }, { r: "-47.143", x: "19.15", y: "-135.5", skX: "-47.143", skY: "-47.143", scX: "0.959", scY: "0.959" }, { r: "-46.649", x: "21", y: "-139.9", skX: "-46.649", skY: "-46.649", scX: "0.967", scY: "0.967" }, { r: "-46.363", x: "22.55", y: "-143.6", skX: "-46.363", skY: "-46.363", scX: "0.974", scY: "0.974" }, { r: "-45.903", x: "23.95", y: "-146.8", skX: "-45.903", skY: "-45.903", scX: "0.981", scY: "0.981" }, { r: "-45.645", x: "25.1", y: "-149.4", skX: "-45.645", skY: "-45.645", scX: "0.986", scY: "0.986" }, { r: "-45.400", x: "26", y: "-151.55", skX: "-45.4", skY: "-45.4", scX: "0.99", scY: "0.99" }, { r: "-45.356", x: "26.7", y: "-153.2", skX: "-45.356", skY: "-45.356", scX: "0.993", scY: "0.993" }, { r: "-45.135", x: "27.25", y: "-154.5", skX: "-45.135", skY: "-45.135", scX: "0.995", scY: "0.995" }, { r: "-45.111", x: "27.6", y: "-155.4", skX: "-45.111", skY: "-45.111", scX: "0.997", scY: "0.997" }, { r: "-45.098", x: "27.85", y: "-155.9", skX: "-45.098", skY: "-45.098", scX: "0.998", scY: "0.998" }, { r: "-45.000", x: "27.7", y: "-155.95", skX: "-45", skY: "-45" }, { r: "-44.877", x: "29.6", y: "-158.15", skX: "-44.877", skY: "-44.877", scX: "1.004", scY: "1.004" }, { r: "-44.403", x: "35.75", y: "-165.35", skX: "-44.403", skY: "-44.403", scX: "1.025", scY: "1.025" }, { r: "-43.653", x: "47.7", y: "-179.15", skX: "-43.653", skY: "-43.653", scX: "1.063", scY: "1.063" }, { r: "-42.589", x: "67.55", y: "-202.3", skX: "-42.589", skY: "-42.589", scX: "1.128", scY: "1.128" }, { r: "-40.592", x: "98.95", y: "-238.8", skX: "-40.592", skY: "-40.592", scX: "1.23", scY: "1.23" }, { r: "-37.350", x: "149.7", y: "-297.9", skX: "-37.35", skY: "-37.35", scX: "1.395", scY: "1.395" }, { r: "-31.585", x: "241.6", y: "-404.75", skX: "-31.585", skY: "-31.585", scX: "1.694", scY: "1.694" }, { r: "0.000", x: "747.3", y: "-993.75", skX: "0", skY: "0", scX: "3.346", scY: "3.346" }], d: { anchorX: "0.5", anchorY: "0.5", name: "Symbol 1Tween 20_t.png" } }, { flashName: "Layer 4", name: "Tween 2", f: [{ v: "false", c: "4" }, { x: "-155.7", y: "302.6", skX: "165.001", skY: "-14.999", scX: "0.178", scY: "0.178" }, { x: "-208.45", y: "218.6", skX: "-178.465", skY: "1.535", scX: "0.482", scY: "0.482" }, { x: "-226.5", y: "189.75", skX: "-172.723", skY: "7.277", scX: "0.586", scY: "0.586" }, { x: "-238.9", y: "170", skX: "-168.739", skY: "11.261", scX: "0.657", scY: "0.657" }, { x: "-248.4", y: "154.85", skX: "-165.733", skY: "14.267", scX: "0.712", scY: "0.712" }, { x: "-256.1", y: "142.55", skX: "-163.437", skY: "16.563", scX: "0.756", scY: "0.756" }, { x: "-262.35", y: "132.45", skX: "-161.432", skY: "18.568", scX: "0.793", scY: "0.793" }, { x: "-267.8", y: "123.9", skX: "-159.691", skY: "20.309", scX: "0.824", scY: "0.824" }, { x: "-272.35", y: "116.55", skX: "-158.2", skY: "21.8", scX: "0.85", scY: "0.85" }, { x: "-276.35", y: "110.2", skX: "-156.947", skY: "23.053", scX: "0.873", scY: "0.873" }, { x: "-279.75", y: "104.7", skX: "-155.923", skY: "24.077", scX: "0.893", scY: "0.893" }, { x: "-282.75", y: "99.9", skX: "-154.935", skY: "25.065", scX: "0.91", scY: "0.91" }, { x: "-285.35", y: "95.75", skX: "-154.163", skY: "25.837", scX: "0.925", scY: "0.925" }, { x: "-287.6", y: "92.2", skX: "-153.421", skY: "26.579", scX: "0.938", scY: "0.938" }, { x: "-289.6", y: "89", skX: "-152.7", skY: "27.3", scX: "0.949", scY: "0.949" }, { x: "-291.35", y: "86.3", skX: "-152.189", skY: "27.811", scX: "0.959", scY: "0.959" }, { x: "-292.75", y: "83.95", skX: "-151.697", skY: "28.303", scX: "0.967", scY: "0.967" }, { x: "-294.05", y: "81.95", skX: "-151.41", skY: "28.59", scX: "0.975", scY: "0.975" }, { x: "-295.1", y: "80.25", skX: "-150.95", skY: "29.05", scX: "0.981", scY: "0.981" }, { x: "-296", y: "78.85", skX: "-150.692", skY: "29.308", scX: "0.986", scY: "0.986" }, { x: "-296.65", y: "77.75", skX: "-150.448", skY: "29.552", scX: "0.99", scY: "0.99" }, { x: "-297.2", y: "76.8", skX: "-150.404", skY: "29.596", scX: "0.993", scY: "0.993" }, { x: "-297.65", y: "76.15", skX: "-150.181", skY: "29.819", scX: "0.996", scY: "0.996" }, { x: "-297.95", y: "75.7", skX: "-150.16", skY: "29.84", scX: "0.997", scY: "0.997" }, { x: "-298.15", y: "75.45", skX: "-150.145", skY: "29.855", scX: "0.998", scY: "0.998" }, { x: "-298.1", y: "75.5", skX: "-150", skY: "30" }, { x: "-299.95", y: "75.1", skX: "-149.924", skY: "30.076", scX: "1.005", scY: "1.005" }, { x: "-306", y: "73.55", skX: "-149.45", skY: "30.55", scX: "1.026", scY: "1.026" }, { x: "-317.6", y: "70.7", skX: "-148.7", skY: "31.3", scX: "1.066", scY: "1.066" }, { x: "-336.75", y: "65.95", skX: "-147.637", skY: "32.363", scX: "1.132", scY: "1.132" }, { x: "-367.3", y: "58.55", skX: "-145.641", skY: "34.359", scX: "1.237", scY: "1.237" }, { x: "-416.55", y: "46.4", skX: "-142.399", skY: "37.601", scX: "1.407", scY: "1.407" }, { x: "-505.7", y: "24.4", skX: "-136.632", skY: "43.368", scX: "1.715", scY: "1.715" }, { x: "-996.6", y: "-96.4", skX: "-105.001", skY: "74.999", scX: "3.418", scY: "3.418" }], d: { anchorX: "0.5", anchorY: "0.5", name: "Symbol 1Tween 20_t.png" } }, { flashName: "Layer 3", name: "Tween 2", f: [{ v: "false", c: "4" }, { x: "-155.05", y: "268.2", skX: "-53.221", skY: "126.779", scX: "0.178", scY: "0.178" }, { x: "-220.6", y: "97.85", skX: "-86.691", skY: "93.309", scX: "0.482", scY: "0.482" }, { x: "-243.1", y: "39.5", skX: "-97.795", skY: "82.205", scX: "0.586", scY: "0.586" }, { x: "-258.6", y: "-0.65", skX: "-105.766", skY: "74.234", scX: "0.657", scY: "0.657" }, { x: "-270.5", y: "-31.35", skX: "-111.781", skY: "68.219", scX: "0.712", scY: "0.712" }, { x: "-280.1", y: "-56.1", skX: "-116.564", skY: "63.436", scX: "0.756", scY: "0.756" }, { x: "-288", y: "-76.55", skX: "-120.579", skY: "59.421", scX: "0.792", scY: "0.792" }, { x: "-294.8", y: "-93.9", skX: "-124.063", skY: "55.937", scX: "0.823", scY: "0.823" }, { x: "-300.5", y: "-108.75", skX: "-126.859", skY: "53.141", scX: "0.85", scY: "0.85" }, { x: "-305.45", y: "-121.55", skX: "-129.368", skY: "50.632", scX: "0.873", scY: "0.873" }, { x: "-309.75", y: "-132.65", skX: "-131.606", skY: "48.394", scX: "0.892", scY: "0.892" }, { x: "-313.5", y: "-142.3", skX: "-133.397", skY: "46.603", scX: "0.91", scY: "0.91" }, { x: "-316.75", y: "-150.7", skX: "-135.126", skY: "44.874", scX: "0.925", scY: "0.925" }, { x: "-319.7", y: "-157.95", skX: "-136.614", skY: "43.386", scX: "0.938", scY: "0.938" }, { x: "-322.15", y: "-164.4", skX: "-137.866", skY: "42.134", scX: "0.949", scY: "0.949" }, { x: "-324.25", y: "-169.85", skX: "-138.89", skY: "41.11", scX: "0.959", scY: "0.959" }, { x: "-326.1", y: "-174.65", skX: "-139.875", skY: "40.125", scX: "0.967", scY: "0.967" }, { x: "-327.7", y: "-178.65", skX: "-140.637", skY: "39.363", scX: "0.974", scY: "0.974" }, { x: "-329", y: "-182.05", skX: "-141.368", skY: "38.632", scX: "0.981", scY: "0.981" }, { x: "-330.05", y: "-184.9", skX: "-141.885", skY: "38.115", scX: "0.986", scY: "0.986" }, { x: "-330.95", y: "-187.15", skX: "-142.373", skY: "37.627", scX: "0.99", scY: "0.99" }, { x: "-331.7", y: "-189.05", skX: "-142.65", skY: "37.35", scX: "0.993", scY: "0.993" }, { x: "-332.15", y: "-190.35", skX: "-142.905", skY: "37.095", scX: "0.995", scY: "0.995" }, { x: "-332.55", y: "-191.35", skX: "-143.14", skY: "36.86", scX: "0.997", scY: "0.997" }, { x: "-332.85", y: "-191.8", skX: "-143.167", skY: "36.833", scX: "0.998", scY: "0.998" }, { x: "-332.4", y: "-191.45", skX: "-143.218", skY: "36.782" }, { x: "-333.85", y: "-193.7", skX: "-143.391", skY: "36.609", scX: "1.005", scY: "1.005" }, { x: "-338.9", y: "-201.2", skX: "-143.677", skY: "36.323", scX: "1.028", scY: "1.028" }, { x: "-348.35", y: "-215.55", skX: "-144.428", skY: "35.572", scX: "1.073", scY: "1.073" }, { x: "-364.2", y: "-239.45", skX: "-145.678", skY: "34.322", scX: "1.147", scY: "1.147" }, { x: "-389.15", y: "-277.3", skX: "-147.674", skY: "32.326", scX: "1.264", scY: "1.264" }, { x: "-429.75", y: "-338.5", skX: "-150.917", skY: "29.083", scX: "1.453", scY: "1.453" }, { x: "-503", y: "-449.4", skX: "-156.679", skY: "23.321", scX: "1.796", scY: "1.796" }, { x: "-906.05", y: "-1060", skX: "171.783", skY: "-8.217", scX: "3.686", scY: "3.686" }], d: { anchorX: "0.5", anchorY: "0.5", name: "Symbol 1Tween 20_t.png" } }, { flashName: "Layer 2", name: "Tween 2", f: [{ v: "false", c: "4" }, { r: "-25.326", x: "-156.35", y: "287", skX: "-25.326", skY: "-25.326", scX: "0.314", scY: "0.314" }, { r: "-8.549", x: "-85.5", y: "170.1", skX: "-8.549", skY: "-8.549", scX: "0.851", scY: "0.851" }, { r: "-2.807", x: "-61.1", y: "130.05", skX: "-2.807", skY: "-2.807", scX: "1.035", scY: "1.035" }, { r: "0.798", x: "-44.45", y: "102.5", skX: "0.798", skY: "0.798", scX: "1.162", scY: "1.162" }, { r: "3.799", x: "-31.65", y: "81.4", skX: "3.799", skY: "3.799", scX: "1.258", scY: "1.258" }, { r: "6.282", x: "-21.3", y: "64.4", skX: "6.282", skY: "6.282", scX: "1.336", scY: "1.336" }, { r: "8.284", x: "-12.7", y: "50.3", skX: "8.284", skY: "8.284", scX: "1.401", scY: "1.401" }, { r: "10.023", x: "-5.45", y: "38.4", skX: "10.023", skY: "10.023", scX: "1.455", scY: "1.455" }, { r: "11.512", x: "0.65", y: "28.2", skX: "11.512", skY: "11.512", scX: "1.502", scY: "1.502" }, { r: "12.765", x: "6", y: "19.45", skX: "12.765", skY: "12.765", scX: "1.542", scY: "1.542" }, { r: "13.787", x: "10.7", y: "11.8", skX: "13.787", skY: "13.787", scX: "1.577", scY: "1.577" }, { r: "14.775", x: "14.7", y: "5.15", skX: "14.775", skY: "14.775", scX: "1.607", scY: "1.607" }, { r: "15.545", x: "18.2", y: "-0.65", skX: "15.545", skY: "15.545", scX: "1.634", scY: "1.634" }, { r: "16.287", x: "21.3", y: "-5.6", skX: "16.287", skY: "16.287", scX: "1.657", scY: "1.657" }, { r: "16.819", x: "23.95", y: "-9.95", skX: "16.819", skY: "16.819", scX: "1.677", scY: "1.677" }, { r: "17.518", x: "26.3", y: "-13.75", skX: "17.518", skY: "17.518", scX: "1.694", scY: "1.694" }, { r: "17.823", x: "28.25", y: "-17", skX: "17.823", skY: "17.823", scX: "1.709", scY: "1.709" }, { r: "18.297", x: "29.9", y: "-19.8", skX: "18.297", skY: "18.297", scX: "1.722", scY: "1.722" }, { r: "18.568", x: "31.35", y: "-22.15", skX: "18.568", skY: "18.568", scX: "1.733", scY: "1.733" }, { r: "18.825", x: "32.55", y: "-24.05", skX: "18.825", skY: "18.825", scX: "1.741", scY: "1.741" }, { r: "19.069", x: "33.5", y: "-25.7", skX: "19.069", skY: "19.069", scX: "1.749", scY: "1.749" }, { r: "19.302", x: "34.25", y: "-26.95", skX: "19.302", skY: "19.302", scX: "1.754", scY: "1.754" }, { r: "19.524", x: "34.8", y: "-27.85", skX: "19.524", skY: "19.524", scX: "1.759", scY: "1.759" }, { r: "19.547", x: "35.25", y: "-28.5", skX: "19.547", skY: "19.547", scX: "1.762", scY: "1.762" }, { r: "19.559", x: "35.4", y: "-28.8", skX: "19.559", skY: "19.559", scX: "1.763", scY: "1.763" }, { r: "19.672", x: "35.25", y: "-28.75", skX: "19.672", skY: "19.672", scX: "1.766", scY: "1.766" }, { r: "19.564", x: "37.45", y: "-30.1", skX: "19.564", skY: "19.564", scX: "1.769", scY: "1.769" }, { r: "19.565", x: "45.1", y: "-34.45", skX: "19.565", skY: "19.565", scX: "1.788", scY: "1.788" }, { r: "19.565", x: "59.8", y: "-42.85", skX: "19.565", skY: "19.565", scX: "1.823", scY: "1.823" }, { r: "19.564", x: "84.1", y: "-56.75", skX: "19.564", skY: "19.564", scX: "1.882", scY: "1.882" }, { r: "19.565", x: "122.65", y: "-78.85", skX: "19.565", skY: "19.565", scX: "1.975", scY: "1.975" }, { r: "19.565", x: "185", y: "-114.55", skX: "19.565", skY: "19.565", scX: "2.126", scY: "2.126" }, { r: "19.564", x: "297.9", y: "-179.25", skX: "19.564", skY: "19.564", scX: "2.398", scY: "2.398" }, { r: "19.672", x: "919.55", y: "-535.2", skX: "19.672", skY: "19.672", scX: "3.904", scY: "3.904" }], d: { anchorX: "0.5", anchorY: "0.5", name: "Symbol 1Tween 20_t.png" } }, { flashName: "Layer 1", name: "Tween 2", f: [{ v: "false", c: "4" }, { x: "-153", y: "281.95", skX: "175.328", skY: "-4.672", scX: "0.314", scY: "0.314" }, { x: "-228.55", y: "164.85", skX: "158.708", skY: "-21.292", scX: "0.85", scY: "0.85" }, { x: "-254.4", y: "124.7", skX: "152.956", skY: "-27.044", scX: "1.034", scY: "1.034" }, { x: "-272.15", y: "97.05", skX: "149.152", skY: "-30.848", scX: "1.16", scY: "1.16" }, { x: "-285.75", y: "75.9", skX: "146.142", skY: "-33.858", scX: "1.257", scY: "1.257" }, { x: "-296.65", y: "58.85", skX: "143.655", skY: "-36.345", scX: "1.334", scY: "1.334" }, { x: "-305.75", y: "44.75", skX: "141.647", skY: "-38.353", scX: "1.399", scY: "1.399" }, { x: "-313.5", y: "32.8", skX: "139.904", skY: "-40.096", scX: "1.454", scY: "1.454" }, { x: "-320.05", y: "22.65", skX: "138.412", skY: "-41.588", scX: "1.5", scY: "1.5" }, { x: "-325.75", y: "13.75", skX: "137.157", skY: "-42.843", scX: "1.541", scY: "1.541" }, { x: "-330.7", y: "6.1", skX: "136.133", skY: "-43.867", scX: "1.576", scY: "1.576" }, { x: "-334.95", y: "-0.45", skX: "135.144", skY: "-44.856", scX: "1.606", scY: "1.606" }, { x: "-338.7", y: "-6.25", skX: "134.373", skY: "-45.627", scX: "1.633", scY: "1.633" }, { x: "-341.95", y: "-11.3", skX: "133.629", skY: "-46.371", scX: "1.656", scY: "1.656" }, { x: "-344.75", y: "-15.65", skX: "133.097", skY: "-46.903", scX: "1.676", scY: "1.676" }, { x: "-347.2", y: "-19.45", skX: "132.397", skY: "-47.603", scX: "1.693", scY: "1.693" }, { x: "-349.3", y: "-22.75", skX: "132.092", skY: "-47.908", scX: "1.708", scY: "1.708" }, { x: "-351.1", y: "-25.6", skX: "131.617", skY: "-48.383", scX: "1.721", scY: "1.721" }, { x: "-352.65", y: "-27.9", skX: "131.344", skY: "-48.656", scX: "1.731", scY: "1.731" }, { x: "-353.9", y: "-29.8", skX: "131.087", skY: "-48.913", scX: "1.74", scY: "1.74" }, { x: "-354.9", y: "-31.4", skX: "130.842", skY: "-49.158", scX: "1.748", scY: "1.748" }, { x: "-355.7", y: "-32.65", skX: "130.61", skY: "-49.39", scX: "1.753", scY: "1.753" }, { x: "-356.3", y: "-33.65", skX: "130.388", skY: "-49.612", scX: "1.758", scY: "1.758" }, { x: "-356.75", y: "-34.25", skX: "130.366", skY: "-49.634", scX: "1.761", scY: "1.761" }, { x: "-356.95", y: "-34.6", skX: "130.352", skY: "-49.648", scX: "1.762", scY: "1.762" }, { x: "-357", y: "-34.45", skX: "130.328", skY: "-49.672", scX: "1.766", scY: "1.766" }, { x: "-359.25", y: "-35.7", skX: "130.348", skY: "-49.652", scX: "1.768", scY: "1.768" }, { x: "-366.6", y: "-39.95", skX: "130.348", skY: "-49.652", scX: "1.787", scY: "1.787" }, { x: "-380.75", y: "-48.1", skX: "130.347", skY: "-49.653", scX: "1.822", scY: "1.822" }, { x: "-404.3", y: "-61.55", skX: "130.348", skY: "-49.652", scX: "1.881", scY: "1.881" }, { x: "-441.5", y: "-83", skX: "130.348", skY: "-49.652", scX: "1.974", scY: "1.974" }, { x: "-501.85", y: "-117.45", skX: "130.347", skY: "-49.653", scX: "2.124", scY: "2.124" }, { x: "-610.85", y: "-180", skX: "130.348", skY: "-49.652", scX: "2.397", scY: "2.397" }, { x: "-1211.4", y: "-524.4", skX: "130.328", skY: "-49.672", scX: "3.903", scY: "3.903" }], d: { anchorX: "0.5", anchorY: "0.5", name: "Symbol 1Tween 20_t.png" } }] } , font_green_export = "font_green-export\nchar_id=65 x=0 y=764 width=69 height=73 yoffset=17 xadvance=63 letter=A\nchar_id=66 x=72 y=302 width=56 height=73 yoffset=17 xadvance=50 letter=B\nchar_id=67 x=70 y=616 width=62 height=75 yoffset=16 xadvance=56 letter=C\nchar_id=68 x=0 y=691 width=70 height=73 yoffset=17 xadvance=64 letter=D\nchar_id=69 x=93 y=75 width=52 height=73 yoffset=17 xadvance=46 letter=E\nchar_id=70 x=95 y=0 width=50 height=73 yoffset=17 xadvance=44 letter=F\nchar_id=71 x=0 y=837 width=69 height=75 yoffset=16 xadvance=63 letter=G\nchar_id=72 x=0 y=468 width=71 height=73 yoffset=17 xadvance=65 letter=H\nchar_id=73 x=182 y=764 width=35 height=73 yoffset=17 xadvance=29 letter=I\nchar_id=74 x=188 y=148 width=38 height=94 yoffset=17 xadvance=32 letter=J\nchar_id=75 x=69 y=838 width=68 height=73 yoffset=17 xadvance=62 letter=K\nchar_id=76 x=76 y=222 width=54 height=73 yoffset=17 xadvance=48 letter=L\nchar_id=77 x=0 y=148 width=85 height=74 yoffset=17 xadvance=79 letter=M\nchar_id=78 x=0 y=393 width=71 height=75 yoffset=17 xadvance=65 letter=N\nchar_id=79 x=0 y=616 width=70 height=75 yoffset=16 xadvance=64 letter=O\nchar_id=80 x=85 y=148 width=54 height=73 yoffset=17 xadvance=48 letter=P\nchar_id=81 x=0 y=302 width=72 height=91 yoffset=16 xadvance=66 letter=Q\nchar_id=82 x=69 y=911 width=64 height=73 yoffset=17 xadvance=58 letter=R\nchar_id=83 x=128 y=295 width=50 height=75 yoffset=16 xadvance=44 letter=S\nchar_id=84 x=70 y=691 width=60 height=73 yoffset=17 xadvance=54 letter=T\nchar_id=85 x=69 y=764 width=68 height=74 yoffset=17 xadvance=62 letter=U\nchar_id=86 x=0 y=912 width=69 height=73 yoffset=17 xadvance=63 letter=V\nchar_id=87 x=0 y=75 width=93 height=73 yoffset=17 xadvance=87 letter=W\nchar_id=88 x=71 y=467 width=60 height=74 yoffset=16 xadvance=54 letter=X\nchar_id=89 x=71 y=393 width=61 height=74 yoffset=16 xadvance=55 letter=Y\nchar_id=90 x=130 y=691 width=59 height=73 yoffset=17 xadvance=53 letter=Z\nchar_id=33 x=223 y=468 width=22 height=74 yoffset=17 xadvance=16 letter=!\nchar_id=8470 x=0 y=0 width=95 height=75 yoffset=17 xadvance=89 letter=№\nchar_id=59 x=180 y=441 width=28 height=68 yoffset=37 xadvance=22 letter=;\nchar_id=37 x=0 y=222 width=76 height=80 yoffset=13 xadvance=70 letter=%\nchar_id=58 x=217 y=762 width=22 height=54 yoffset=37 xadvance=16 letter=:\nchar_id=63 x=180 y=366 width=38 height=75 yoffset=16 xadvance=32 letter=?\nchar_id=42 x=137 y=838 width=38 height=43 yoffset=16 xadvance=32 letter=*\nchar_id=40 x=220 y=660 width=29 height=102 yoffset=12 xadvance=23 letter=(\nchar_id=41 x=218 y=366 width=29 height=102 yoffset=12 xadvance=23 letter=)\nchar_id=95 x=0 y=985 width=50 height=13 yoffset=89 xadvance=44 letter=_\nchar_id=43 x=130 y=221 width=49 height=56 yoffset=25 xadvance=43 letter=+\nchar_id=45 x=0 y=998 width=35 height=19 yoffset=53 xadvance=29 letter=-\nchar_id=61 x=50 y=985 width=49 height=33 yoffset=38 xadvance=43 letter==\nchar_id=46 x=133 y=586 width=22 height=23 yoffset=68 xadvance=16 letter=.\nchar_id=44 x=131 y=986 width=28 height=36 yoffset=69 xadvance=22 letter=,\nchar_id=47 x=132 y=370 width=48 height=97 yoffset=13 xadvance=42 letter=/\nchar_id=124 x=223 y=542 width=17 height=96 yoffset=13 xadvance=11 letter=|\nchar_id=64 x=70 y=541 width=63 height=75 yoffset=16 xadvance=57 letter=@\nchar_id=35 x=139 y=148 width=49 height=73 yoffset=17 xadvance=43 letter=#\nchar_id=36 x=178 y=277 width=45 height=89 yoffset=10 xadvance=39 letter=$\nchar_id=94 x=131 y=467 width=49 height=46 yoffset=17 xadvance=43 letter=^\nchar_id=38 x=0 y=541 width=70 height=75 yoffset=16 xadvance=64 letter=&\nchar_id=123 x=189 y=660 width=31 height=99 yoffset=13 xadvance=25 letter={\nchar_id=125 x=190 y=0 width=31 height=99 yoffset=13 xadvance=25 letter=}\nchar_id=91 x=223 y=242 width=28 height=97 yoffset=14 xadvance=22 letter=[\nchar_id=93 x=221 y=0 width=28 height=97 yoffset=14 xadvance=22 letter=]\nchar_id=48 x=137 y=764 width=45 height=74 yoffset=17 xadvance=39 letter=0\nchar_id=49 x=179 y=513 width=44 height=73 yoffset=17 xadvance=38 letter=1\nchar_id=50 x=133 y=911 width=46 height=73 yoffset=17 xadvance=40 letter=2\nchar_id=51 x=145 y=0 width=45 height=74 yoffset=17 xadvance=39 letter=3\nchar_id=52 x=132 y=616 width=47 height=73 yoffset=17 xadvance=41 letter=4\nchar_id=53 x=179 y=586 width=44 height=74 yoffset=17 xadvance=38 letter=5\nchar_id=54 x=179 y=838 width=45 height=74 yoffset=17 xadvance=39 letter=6\nchar_id=55 x=133 y=513 width=46 height=73 yoffset=17 xadvance=40 letter=7\nchar_id=56 x=145 y=74 width=45 height=74 yoffset=17 xadvance=39 letter=8\nchar_id=57 x=179 y=912 width=45 height=74 yoffset=17 xadvance=39 letter=9\nchar_id=32 x=0 y=0 width=0 height=0 yoffset=0 xadvance=32 letter= \nchar_id=9 x=0 y=0 width=0 height=0 yoffset=0 xadvance=32 letter=\t" , font_white_export = "font_white-export\nchar_id=65 x=0 y=509 width=85 height=85 yoffset=5 xadvance=77 letter=A\nchar_id=66 x=155 y=762 width=68 height=84 yoffset=6 xadvance=60 letter=B\nchar_id=67 x=0 y=678 width=82 height=86 yoffset=5 xadvance=74 letter=C\nchar_id=68 x=82 y=678 width=74 height=84 yoffset=6 xadvance=66 letter=D\nchar_id=69 x=223 y=848 width=58 height=84 yoffset=6 xadvance=50 letter=E\nchar_id=70 x=223 y=932 width=57 height=84 yoffset=6 xadvance=49 letter=F\nchar_id=71 x=0 y=764 width=82 height=85 yoffset=6 xadvance=74 letter=G\nchar_id=72 x=85 y=423 width=72 height=84 yoffset=6 xadvance=64 letter=H\nchar_id=73 x=228 y=84 width=48 height=84 yoffset=6 xadvance=40 letter=I\nchar_id=74 x=157 y=334 width=67 height=85 yoffset=6 xadvance=59 letter=J\nchar_id=75 x=82 y=594 width=74 height=84 yoffset=6 xadvance=66 letter=K\nchar_id=76 x=224 y=504 width=57 height=84 yoffset=6 xadvance=49 letter=L\nchar_id=77 x=0 y=594 width=82 height=84 yoffset=6 xadvance=74 letter=M\nchar_id=78 x=80 y=849 width=74 height=84 yoffset=6 xadvance=66 letter=N\nchar_id=79 x=0 y=423 width=85 height=86 yoffset=5 xadvance=77 letter=O\nchar_id=80 x=87 y=256 width=70 height=84 yoffset=6 xadvance=62 letter=P\nchar_id=81 x=0 y=256 width=87 height=86 yoffset=5 xadvance=79 letter=Q\nchar_id=82 x=82 y=762 width=73 height=84 yoffset=6 xadvance=65 letter=R\nchar_id=83 x=92 y=164 width=70 height=86 yoffset=5 xadvance=62 letter=S\nchar_id=84 x=162 y=85 width=66 height=84 yoffset=6 xadvance=58 letter=T\nchar_id=85 x=105 y=0 width=70 height=85 yoffset=6 xadvance=62 letter=U\nchar_id=86 x=0 y=849 width=80 height=85 yoffset=6 xadvance=72 letter=V\nchar_id=87 x=0 y=0 width=105 height=85 yoffset=6 xadvance=97 letter=W\nchar_id=88 x=78 y=934 width=78 height=84 yoffset=6 xadvance=70 letter=X\nchar_id=89 x=0 y=934 width=78 height=84 yoffset=6 xadvance=70 letter=Y\nchar_id=90 x=154 y=846 width=69 height=84 yoffset=6 xadvance=61 letter=Z\nchar_id=33 x=281 y=504 width=33 height=84 yoffset=5 xadvance=25 letter=!\nchar_id=8470 x=0 y=85 width=94 height=79 yoffset=11 xadvance=86 letter=№\nchar_id=59 x=275 y=347 width=33 height=72 yoffset=26 xadvance=25 letter=;\nchar_id=37 x=0 y=342 width=87 height=81 yoffset=10 xadvance=79 letter=%\nchar_id=58 x=276 y=93 width=33 height=65 yoffset=26 xadvance=25 letter=:\nchar_id=63 x=223 y=763 width=60 height=85 yoffset=4 xadvance=52 letter=?\nchar_id=42 x=224 y=348 width=49 height=47 yoffset=9 xadvance=41 letter=*\nchar_id=40 x=284 y=678 width=33 height=95 yoffset=7 xadvance=25 letter=(\nchar_id=41 x=281 y=848 width=33 height=95 yoffset=7 xadvance=25 letter=)\nchar_id=95 x=87 y=380 width=64 height=19 yoffset=83 xadvance=56 letter=_\nchar_id=43 x=94 y=85 width=65 height=67 yoffset=23 xadvance=57 letter=+\nchar_id=45 x=87 y=399 width=38 height=20 yoffset=46 xadvance=30 letter=-\nchar_id=61 x=87 y=340 width=65 height=40 yoffset=36 xadvance=57 letter==\nchar_id=46 x=240 y=38 width=33 height=32 yoffset=59 xadvance=25 letter=.\nchar_id=44 x=280 y=943 width=33 height=40 yoffset=59 xadvance=25 letter=,\nchar_id=47 x=275 y=168 width=47 height=86 yoffset=8 xadvance=39 letter=/\nchar_id=124 x=312 y=0 width=20 height=114 yoffset=1 xadvance=12 letter=|\nchar_id=64 x=0 y=164 width=92 height=92 yoffset=6 xadvance=84 letter=@\nchar_id=35 x=162 y=169 width=56 height=79 yoffset=11 xadvance=48 letter=#\nchar_id=36 x=224 y=169 width=51 height=95 yoffset=3 xadvance=43 letter=$\nchar_id=94 x=156 y=679 width=60 height=60 yoffset=11 xadvance=52 letter=^\nchar_id=38 x=85 y=507 width=71 height=86 yoffset=5 xadvance=63 letter=&\nchar_id=123 x=275 y=254 width=36 height=93 yoffset=8 xadvance=28 letter={\nchar_id=125 x=276 y=0 width=36 height=93 yoffset=8 xadvance=28 letter=}\nchar_id=91 x=311 y=254 width=31 height=93 yoffset=8 xadvance=23 letter=[\nchar_id=93 x=308 y=347 width=32 height=93 yoffset=8 xadvance=24 letter=]\nchar_id=48 x=157 y=419 width=66 height=86 yoffset=5 xadvance=58 letter=0\nchar_id=49 x=224 y=264 width=51 height=84 yoffset=6 xadvance=43 letter=1\nchar_id=50 x=223 y=593 width=62 height=85 yoffset=5 xadvance=54 letter=2\nchar_id=51 x=223 y=419 width=63 height=85 yoffset=6 xadvance=55 letter=3\nchar_id=52 x=157 y=250 width=67 height=84 yoffset=6 xadvance=59 letter=4\nchar_id=53 x=223 y=678 width=61 height=85 yoffset=6 xadvance=53 letter=5\nchar_id=54 x=156 y=507 width=68 height=86 yoffset=5 xadvance=60 letter=6\nchar_id=55 x=175 y=0 width=65 height=84 yoffset=6 xadvance=57 letter=7\nchar_id=56 x=156 y=593 width=67 height=86 yoffset=5 xadvance=59 letter=8\nchar_id=57 x=156 y=930 width=67 height=86 yoffset=5 xadvance=59 letter=9\nchar_id=32 x=0 y=0 width=0 height=0 yoffset=0 xadvance=38 letter= \nchar_id=9 x=0 y=0 width=0 height=0 yoffset=0 xadvance=38 letter=\t" , ore_atlas_font = { images: ["art_font.png"], frames: [[0, 268, 23, 34, 0, -0, -48, 23, 82], [211, 199, 23, 25, 0, -0, -57, 23, 82], [236, 179, 20, 47, 0, -0, -47, 20, 94], [82, 186, 24, 35, 0, -0, -58, 24, 93], [23, 278, 21, 34, 0, -0, -48, 21, 82], [189, 266, 16, 32, 0, -0, -50, 16, 82], [211, 249, 20, 35, 0, -0, -56, 20, 91], [138, 175, 24, 34, 0, -0, -48, 24, 82], [243, 104, 13, 35, 0, -0, -47, 13, 82], [193, 35, 31, 25, 0, -0, -57, 31, 82], [101, 234, 22, 25, 0, -0, -57, 22, 82], [211, 224, 23, 25, 0, -0, -57, 23, 82], [162, 191, 23, 34, 0, -0, -58, 23, 92], [148, 140, 25, 35, 0, -0, -57, 25, 92], [74, 247, 22, 25, 0, -0, -57, 22, 82], [47, 255, 22, 25, 0, -0, -57, 22, 82], [53, 200, 24, 35, 0, -0, -47, 24, 82], [77, 221, 24, 26, 0, -0, -57, 24, 83], [211, 174, 25, 25, 0, -0, -57, 25, 82], [66, 35, 33, 25, 0, -0, -57, 33, 82], [0, 207, 26, 26, 0, -0, -57, 26, 83], [223, 70, 30, 34, 0, -0, -58, 30, 92], [113, 175, 25, 25, 0, -0, -57, 25, 82], [142, 250, 16, 35, 0, -0, -47, 16, 82], [185, 191, 12, 35, 0, -0, -47, 12, 82], [123, 255, 16, 35, 0, -0, -47, 16, 82], [231, 283, 19, 12, 0, -0, -62, 19, 74], [197, 196, 14, 35, 0, -0, -47, 14, 82], [69, 272, 15, 19, 0, -0, -45, 15, 64], [33, 35, 33, 33, 0, -0, -48, 33, 81], [24, 243, 23, 35, 0, -0, -47, 23, 82], [191, 0, 34, 35, 0, -0, -47, 34, 82], [128, 70, 29, 35, 0, -0, -47, 29, 82], [173, 140, 10, 14, 0, -0, -47, 10, 61], [158, 250, 15, 35, 0, -0, -47, 15, 82], [197, 231, 14, 35, 0, -0, -47, 14, 82], [238, 161, 18, 18, 0, -0, -47, 18, 65], [183, 130, 28, 26, 0, -0, -54, 28, 80], [198, 181, 13, 15, 0, -0, -72, 13, 87], [123, 244, 19, 11, 0, -0, -62, 19, 73], [185, 226, 12, 12, 0, -0, -73, 12, 85], [234, 226, 22, 35, 0, -0, -47, 22, 82], [94, 116, 27, 35, 0, -0, -47, 27, 82], [26, 208, 24, 35, 0, -0, -47, 24, 82], [99, 35, 32, 35, 0, -0, -47, 32, 82], [60, 130, 27, 35, 0, -0, -47, 27, 82], [87, 151, 26, 35, 0, -0, -47, 26, 82], [29, 138, 27, 35, 0, -0, -47, 27, 82], [56, 165, 26, 35, 0, -0, -47, 26, 82], [224, 35, 30, 35, 0, -0, -47, 30, 82], [27, 173, 26, 35, 0, -0, -47, 26, 82], [98, 81, 29, 35, 0, -0, -47, 29, 82], [44, 280, 14, 24, 0, -0, -56, 14, 80], [198, 156, 13, 25, 0, -0, -57, 13, 82], [231, 261, 19, 22, 0, -0, -59, 19, 81], [50, 235, 24, 20, 0, -0, -60, 24, 80], [238, 139, 18, 22, 0, -0, -59, 18, 81], [0, 233, 24, 35, 0, -0, -48, 24, 83], [0, 70, 32, 32, 0, -0, -50, 32, 82], [215, 104, 28, 35, 0, -0, -47, 28, 82], [65, 95, 29, 35, 0, -0, -47, 29, 82], [127, 105, 28, 35, 0, -0, -47, 28, 82], [0, 35, 33, 35, 0, -0, -47, 33, 82], [173, 156, 25, 35, 0, -0, -47, 25, 82], [225, 0, 31, 35, 0, -0, -47, 31, 82], [0, 102, 31, 35, 0, -0, -47, 31, 82], [31, 103, 29, 35, 0, -0, -47, 29, 82], [173, 252, 16, 35, 0, -0, -47, 16, 82], [155, 105, 28, 35, 0, -0, -47, 28, 82], [131, 35, 31, 35, 0, -0, -47, 31, 82], [0, 172, 27, 35, 0, -0, -47, 27, 82], [47, 0, 37, 35, 0, -0, -47, 37, 82], [0, 137, 29, 35, 0, -0, -47, 29, 82], [162, 35, 31, 35, 0, -0, -47, 31, 82], [211, 139, 27, 35, 0, -0, -47, 27, 82], [66, 60, 32, 35, 0, -0, -47, 32, 82], [121, 140, 27, 35, 0, -0, -47, 27, 82], [157, 70, 29, 35, 0, -0, -47, 29, 82], [186, 95, 29, 35, 0, -0, -47, 29, 82], [193, 60, 30, 35, 0, -0, -47, 30, 82], [156, 0, 35, 35, 0, -0, -47, 35, 82], [0, 0, 47, 35, 0, -0, -47, 47, 82], [84, 0, 36, 35, 0, -0, -47, 36, 82], [33, 68, 32, 35, 0, -0, -47, 32, 82], [120, 0, 36, 35, 0, -0, -47, 36, 82], [205, 284, 15, 35, 0, -0, -47, 15, 82], [130, 209, 22, 35, 0, -0, -47, 22, 82], [96, 259, 15, 35, 0, -0, -47, 15, 82], [173, 238, 20, 14, 0, -0, -51, 20, 65], [98, 70, 30, 11, 0, -0, -73, 30, 84], [173, 225, 12, 13, 0, -0, -50, 12, 63], [152, 225, 21, 25, 0, -0, -58, 21, 83], [106, 200, 24, 34, 0, -0, -48, 24, 82], [0, 302, 21, 26, 0, -0, -57, 21, 83]], animations: { 100: [0], 101: [1], 102: [2], 103: [3], 104: [4], 105: [5], 106: [6], 107: [7], 108: [8], 109: [9], 110: [10], 111: [11], 112: [12], 113: [13], 114: [14], 115: [15], 116: [16], 117: [17], 118: [18], 119: [19], 120: [20], 121: [21], 122: [22], 123: [23], 124: [24], 125: [25], 126: [26], 33: [27], 34: [28], 35: [29], 36: [30], 37: [31], 38: [32], 39: [33], 40: [34], 41: [35], 42: [36], 43: [37], 44: [38], 45: [39], 46: [40], 47: [41], 48: [42], 49: [43], 50: [44], 51: [45], 52: [46], 53: [47], 54: [48], 55: [49], 56: [50], 57: [51], 58: [52], 59: [53], 60: [54], 61: [55], 62: [56], 63: [57], 64: [58], 65: [59], 66: [60], 67: [61], 68: [62], 69: [63], 70: [64], 71: [65], 72: [66], 73: [67], 74: [68], 75: [69], 76: [70], 77: [71], 78: [72], 79: [73], 80: [74], 81: [75], 82: [76], 83: [77], 84: [78], 85: [79], 86: [80], 87: [81], 88: [82], 89: [83], 90: [84], 91: [85], 92: [86], 93: [87], 94: [88], 95: [89], 96: [90], 97: [91], 98: [92], 99: [93] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:c46cbea25f773a9962bbb3df5217d64b:131cee7dfedf58401b0ac08d4f40ed45:8bb43b20010cac30968ff0726d4875a1$", "EaselJS Extended Exporter - Trim support"] } , ore_atlas_jpg = { images: ["art.jpg"], frames: [[4, 4, 642, 161, 0, -0, -0, 642, 161]], animations: { back_line: [0] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:d18690bc3522ce7bb6c269776b7c56cd:5959fc0d19a0cfd0c13cb133e95ea98e:32b29c51a57d9bd124e2a2c793aac754$", "EaselJS Extended Exporter - Trim support"] } , ore_atlas_linear = { images: ["art_linear.png"], frames: [[1030, 88, 89, 39, 0, -0, -0, 89, 39], [668, 481, 75, 57, 0, -0, -0, 75, 57], [571, 756, 76, 55, 0, -0, -0, 76, 55], [0, 1731, 367, 315, 0, -0, -0, 367, 315], [1433, 542, 134, 76, 0, -0, -0, 134, 76], [622, 269, 113, 146, 0, -0, -0, 113, 146], [1970, 604, 49, 72, 0, -0, -0, 49, 72], [1588, 261, 51, 87, 0, -0, -0, 51, 87], [1550, 625, 63, 47, 0, -0, -0, 63, 47], [0, 1162, 451, 567, 0, -0, -0, 451, 567], [0, 625, 398, 491, 0, -0, -0, 398, 491], [597, 471, 69, 63, 0, -0, -0, 69, 63], [668, 417, 66, 62, 0, -0, -0, 66, 62], [526, 471, 69, 65, 0, -0, -0, 69, 65], [369, 1731, 200, 200, 0, -0, -0, 200, 200], [1745, 149, 100, 50, 0, -0, -0, 100, 50], [2023, 200, 20, 960, 0, -0, -0, 20, 960], [745, 471, 342, 159, 0, -0, -0, 342, 159], [1089, 542, 342, 159, 0, -0, -0, 342, 159], [743, 632, 342, 159, 0, -0, -0, 342, 159], [400, 624, 260, 130, 0, -0, -0, 260, 130], [737, 293, 352, 176, 0, -0, -0, 352, 176], [0, 293, 418, 208, 0, -0, -0, 418, 208], [1112, 149, 631, 110, 0, -0, -0, 631, 110], [1745, 253, 97, 96, 0, -0, -0, 97, 96], [1849, 142, 172, 180, 0, -0, -0, 172, 180], [1433, 620, 115, 159, 0, -0, -0, 115, 159], [420, 269, 200, 200, 0, -0, -0, 200, 200], [1745, 201, 100, 50, 0, -0, -0, 100, 50], [1844, 324, 172, 178, 0, -0, -0, 172, 178], [1588, 351, 244, 272, 0, -0, -0, 244, 272], [1127, 0, 721, 62, 0, -0, -0, 721, 62], [1127, 64, 720, 83, 0, -0, -0, 720, 83], [0, 88, 1028, 179, 0, -0, -0, 1028, 179], [0, 0, 1125, 86, 0, -0, -0, 1125, 86], [453, 756, 20, 960, 0, -0, -0, 20, 960], [1834, 504, 137, 63, 0, -0, -0, 137, 63], [1834, 569, 134, 133, 0, -0, -0, 134, 133], [1112, 261, 474, 279, 0, -0, -0, 474, 279], [420, 471, 104, 69, 0, -0, -0, 104, 69], [1850, 0, 178, 140, 0, -0, -0, 178, 140], [1030, 129, 80, 80, 0, -0, -0, 80, 80], [1030, 211, 80, 80, 0, -0, -0, 80, 80], [656, 542, 79, 77, 0, -0, -0, 79, 77], [1973, 504, 48, 76, 0, -0, -0, 48, 76], [1970, 678, 48, 76, 0, -0, -0, 48, 76], [0, 1118, 48, 40, 0, -0, -0, 48, 40], [400, 813, 48, 76, 0, -0, -0, 48, 76], [50, 1118, 48, 40, 0, -0, -0, 48, 40], [400, 985, 44, 52, 0, -0, -0, 44, 52], [100, 1118, 112, 36, 0, -0, -0, 112, 36], [1970, 582, 50, 20, 0, -0, -0, 50, 20], [662, 621, 79, 77, 0, -0, -0, 79, 77], [1615, 625, 57, 61, 0, -0, -0, 57, 61], [1550, 674, 53, 57, 0, -0, -0, 53, 57], [214, 1118, 47, 34, 0, -0, -0, 47, 34], [400, 938, 46, 45, 0, -0, -0, 46, 45], [420, 756, 29, 55, 0, -0, -0, 29, 55], [388, 1118, 30, 23, 0, -0, -0, 30, 23], [400, 891, 48, 45, 0, -0, -0, 48, 45], [649, 779, 73, 77, 0, -0, -0, 73, 77], [571, 813, 73, 77, 0, -0, -0, 73, 77], [475, 829, 66, 47, 0, -0, -0, 66, 47], [359, 1118, 27, 30, 0, -0, -0, 27, 30], [2023, 172, 22, 26, 0, -0, -0, 22, 26], [2023, 142, 22, 28, 0, -0, -0, 22, 28], [369, 1933, 79, 77, 0, -0, -0, 79, 77], [263, 1150, 44, 8, 0, -0, -0, 44, 8], [450, 1933, 79, 77, 0, -0, -0, 79, 77], [531, 1933, 79, 77, 0, -0, -0, 79, 77], [475, 756, 72, 71, 0, -0, -0, 72, 71], [475, 878, 66, 47, 0, -0, -0, 66, 47], [1641, 261, 80, 80, 0, -0, -0, 80, 80], [0, 542, 80, 80, 0, -0, -0, 80, 80], [82, 542, 80, 80, 0, -0, -0, 80, 80], [164, 542, 80, 80, 0, -0, -0, 80, 80], [246, 542, 80, 80, 0, -0, -0, 80, 80], [328, 542, 80, 80, 0, -0, -0, 80, 80], [410, 542, 80, 80, 0, -0, -0, 80, 80], [492, 542, 80, 80, 0, -0, -0, 80, 80], [574, 542, 80, 80, 0, -0, -0, 80, 80], [263, 1118, 30, 30, 0, -0, -0, 30, 30], [295, 1118, 30, 30, 0, -0, -0, 30, 30], [327, 1118, 30, 30, 0, -0, -0, 30, 30], [662, 700, 79, 77, 0, -0, -0, 79, 77]], animations: { "Bunny_flashTween 100_t": [0], "Bunny_flashTween 120_t": [1], "Bunny_flashTween 140_t": [2], "Bunny_flashTween 160_t": [3], "Bunny_flashTween 180_t": [4], "Bunny_flashTween 200_t": [5], "Bunny_flashTween 220_t": [6], "Bunny_flashTween 240_t": [7], "Bunny_flashTween 260_t": [8], "Bunny_flashTween 280_t": [9], "Bunny_flashTween 300_t": [10], artefact1: [11], artefact2: [12], artefact3: [13], back05_big_cloud1: [14], back05_big_cloud2: [15], back05_grad: [16], back05_ground1: [17], back05_ground2: [18], back05_ground3: [19], back05_mountain1: [20], back05_mountain2: [21], back05_mountain3: [22], back05_mountains: [23], back05_nessy: [24], back05_tree1: [25], back05_tree2: [26], back06_big_cloud1: [27], back06_big_cloud2: [28], back06_cactus1: [29], back06_cactus2: [30], back06_desert1a: [31], back06_desert1b: [32], back06_desert2: [33], back06_desert3: [34], back06_grad: [35], back06_skull: [36], back06_soda_flower: [37], back06_sun: [38], back06_tree1: [39], back06_tree2: [40], blocker: [41], blocker_2: [42], blue: [43], brick1: [44], brick2: [45], brick3: [46], brick4: [47], brick5: [48], brick6: [49], brick7: [50], brick8: [51], color_bomb: [52], corner1: [53], corner2: [54], destr1: [55], destr2: [56], destr3: [57], destr4: [58], destr5: [59], destructable_block_1: [60], destructable_block_2: [61], "fx-spiderAnimation 430_t": [62], grass1: [63], grass2: [64], grass3: [65], green: [66], mid: [67], purple: [68], red: [69], shield: [70], spider: [71], tile_1: [72], tile_2: [73], tile_3: [74], tile_4: [75], tile_5: [76], tile_6: [77], tile_7: [78], tile_8: [79], undestructable_block: [80], window_back: [81], window_back2: [82], window_back3: [83], yellow: [84] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:0e409f08186ed020678751eda1de22f7:30716ca85b5841ce53c91620f355eda8:557819d2338e28a614768bb7e7cd2523$", "EaselJS Extended Exporter - Trim support"] } , ore_atlas_linear_neon = { images: ["art_linear_neon.png"], frames: [[1959, 566, 89, 39, 0, -0, -0, 89, 39], [139, 1337, 75, 57, 0, -0, -0, 75, 57], [1595, 1199, 76, 55, 0, -0, -0, 76, 55], [644, 599, 367, 315, 0, -0, -0, 367, 315], [315, 1059, 134, 76, 0, -0, -0, 134, 76], [1931, 0, 113, 146, 0, -0, -0, 113, 146], [0, 987, 49, 72, 0, -0, -0, 49, 72], [140, 1085, 51, 87, 0, -0, -0, 51, 87], [0, 1288, 63, 47, 0, -0, -0, 63, 47], [0, 418, 451, 567, 0, -0, -0, 451, 567], [1283, 460, 398, 491, 0, -0, -0, 398, 491], [1908, 391, 139, 65, 0, -0, -0, 139, 65], [960, 1082, 122, 72, 0, -0, -0, 122, 72], [1931, 148, 113, 67, 0, -0, -0, 113, 67], [1425, 1275, 143, 63, 0, -0, -0, 143, 63], [1672, 1306, 158, 42, 0, -0, -0, 158, 42], [1690, 352, 216, 78, 0, -0, -0, 216, 78], [1283, 352, 405, 106, 0, -0, -0, 405, 106], [1940, 1265, 106, 55, 0, -0, -0, 106, 55], [1943, 957, 104, 56, 0, -0, -0, 104, 56], [315, 987, 136, 70, 0, -0, -0, 136, 70], [1677, 1193, 158, 111, 0, -0, -0, 158, 111], [1683, 891, 258, 300, 0, -0, -0, 258, 300], [1935, 1378, 110, 52, 0, -0, -0, 110, 52], [1940, 1207, 108, 56, 0, -0, -0, 108, 56], [1289, 204, 640, 146, 0, -0, -0, 640, 146], [1289, 0, 640, 202, 0, -0, -0, 640, 202], [647, 0, 640, 349, 0, -0, -0, 640, 349], [1433, 953, 160, 320, 0, -0, -0, 160, 320], [100, 1996, 32, 40, 0, -0, -0, 32, 40], [216, 1337, 35, 56, 0, -0, -0, 35, 56], [399, 1174, 39, 42, 0, -0, -0, 39, 42], [1959, 793, 80, 80, 0, -0, -0, 80, 80], [216, 1549, 57, 29, 0, -0, -0, 57, 29], [1807, 432, 57, 10, 0, -0, -0, 57, 10], [1807, 444, 57, 10, 0, -0, -0, 57, 10], [0, 1064, 57, 10, 0, -0, -0, 57, 10], [253, 1513, 57, 29, 0, -0, -0, 57, 29], [264, 1474, 57, 29, 0, -0, -0, 57, 29], [1013, 702, 90, 88, 0, -0, -0, 90, 88], [1943, 1015, 101, 62, 0, -0, -0, 101, 62], [1943, 1079, 101, 62, 0, -0, -0, 101, 62], [1943, 1143, 101, 62, 0, -0, -0, 101, 62], [1837, 1193, 101, 62, 0, -0, -0, 101, 62], [1837, 1257, 101, 62, 0, -0, -0, 101, 62], [1832, 1321, 101, 62, 0, -0, -0, 101, 62], [1816, 1385, 101, 62, 0, -0, -0, 101, 62], [1812, 1449, 101, 62, 0, -0, -0, 101, 62], [1915, 1498, 101, 62, 0, -0, -0, 101, 62], [193, 1072, 101, 62, 0, -0, -0, 101, 62], [1013, 599, 90, 101, 0, -0, -0, 90, 101], [647, 351, 457, 246, 0, -0, -0, 457, 246], [1595, 1256, 75, 76, 0, -0, -0, 75, 76], [62, 1513, 75, 76, 0, -0, -0, 75, 76], [139, 1513, 75, 76, 0, -0, -0, 75, 76], [125, 987, 48, 85, 0, -0, -0, 48, 85], [1931, 217, 113, 56, 0, -0, -0, 113, 56], [554, 1064, 66, 83, 0, -0, -0, 66, 83], [206, 1396, 67, 76, 0, -0, -0, 67, 76], [139, 1396, 65, 80, 0, -0, -0, 65, 80], [52, 1996, 46, 42, 0, -0, -0, 46, 42], [1763, 432, 42, 15, 0, -0, -0, 42, 15], [2022, 458, 26, 23, 0, -0, -0, 26, 23], [917, 1085, 29, 29, 0, -0, -0, 29, 29], [1931, 275, 113, 56, 0, -0, -0, 113, 56], [175, 1996, 35, 34, 0, -0, -0, 35, 34], [253, 1340, 35, 34, 0, -0, -0, 35, 34], [273, 1263, 35, 34, 0, -0, -0, 35, 34], [273, 1299, 35, 34, 0, -0, -0, 35, 34], [212, 1996, 35, 34, 0, -0, -0, 35, 34], [216, 1513, 35, 34, 0, -0, -0, 35, 34], [1931, 333, 113, 56, 0, -0, -0, 113, 56], [960, 916, 30, 37, 0, -0, -0, 30, 37], [139, 1478, 27, 33, 0, -0, -0, 27, 33], [98, 1182, 71, 104, 0, -0, -0, 71, 104], [1959, 875, 80, 80, 0, -0, -0, 80, 80], [1013, 792, 80, 80, 0, -0, -0, 80, 80], [960, 1019, 127, 61, 0, -0, -0, 127, 61], [0, 1493, 60, 97, 0, -0, -0, 60, 97], [2018, 1498, 30, 45, 0, -0, -0, 30, 45], [2018, 1545, 30, 45, 0, -0, -0, 30, 45], [65, 1288, 30, 45, 0, -0, -0, 30, 45], [97, 1288, 30, 45, 0, -0, -0, 30, 45], [129, 1288, 30, 45, 0, -0, -0, 30, 45], [1570, 1334, 100, 60, 0, -0, -0, 100, 60], [171, 1200, 100, 60, 0, -0, -0, 100, 60], [273, 1201, 100, 60, 0, -0, -0, 100, 60], [171, 1262, 100, 60, 0, -0, -0, 100, 60], [1672, 1390, 138, 101, 0, -0, -0, 138, 101], [0, 1085, 138, 91, 0, -0, -0, 138, 91], [1106, 589, 170, 84, 0, -0, -0, 170, 84], [1106, 495, 172, 92, 0, -0, -0, 172, 92], [1013, 874, 80, 80, 0, -0, -0, 80, 80], [1105, 675, 167, 167, 0, -0, -0, 167, 167], [1095, 844, 167, 167, 0, -0, -0, 167, 167], [453, 726, 167, 167, 0, -0, -0, 167, 167], [453, 895, 167, 167, 0, -0, -0, 167, 167], [622, 916, 167, 167, 0, -0, -0, 167, 167], [791, 916, 167, 167, 0, -0, -0, 167, 167], [1264, 953, 167, 167, 0, -0, -0, 167, 167], [1095, 1013, 167, 167, 0, -0, -0, 167, 167], [1748, 432, 13, 19, 0, -0, -0, 13, 19], [1908, 352, 20, 18, 0, -0, -0, 20, 18], [2022, 483, 19, 33, 0, -0, -0, 19, 33], [1908, 372, 19, 17, 0, -0, -0, 19, 17], [399, 1137, 40, 35, 0, -0, -0, 40, 35], [1727, 432, 19, 24, 0, -0, -0, 19, 24], [1690, 432, 35, 24, 0, -0, -0, 35, 24], [1683, 566, 274, 323, 0, -0, -0, 274, 323], [453, 418, 189, 189, 0, -0, -0, 189, 189], [0, 1182, 96, 104, 0, -0, -0, 96, 104], [1959, 698, 85, 93, 0, -0, -0, 85, 93], [453, 609, 184, 115, 0, -0, -0, 184, 115], [1672, 1350, 142, 38, 0, -0, -0, 142, 38], [1595, 953, 80, 80, 0, -0, -0, 80, 80], [1919, 1432, 120, 64, 0, -0, -0, 120, 64], [175, 987, 138, 83, 0, -0, -0, 138, 83], [1595, 1035, 80, 80, 0, -0, -0, 80, 80], [193, 1136, 101, 62, 0, -0, -0, 101, 62], [451, 1064, 101, 62, 0, -0, -0, 101, 62], [451, 1128, 101, 62, 0, -0, -0, 101, 62], [296, 1137, 101, 62, 0, -0, -0, 101, 62], [275, 1396, 57, 29, 0, -0, -0, 57, 29], [59, 1064, 57, 10, 0, -0, -0, 57, 10], [0, 1592, 57, 200, 0, -0, -0, 57, 200], [0, 1794, 57, 200, 0, -0, -0, 57, 200], [275, 1427, 57, 29, 0, -0, -0, 57, 29], [290, 1340, 57, 29, 0, -0, -0, 57, 29], [0, 0, 645, 416, 0, -0, -0, 645, 416], [960, 956, 133, 61, 0, -0, -0, 133, 61], [1690, 458, 330, 106, 0, -0, -0, 330, 106], [1106, 351, 175, 142, 0, -0, -0, 175, 142], [1959, 607, 88, 89, 0, -0, -0, 88, 89], [1935, 1322, 111, 54, 0, -0, -0, 111, 54], [51, 987, 72, 71, 0, -0, -0, 72, 71], [310, 1263, 57, 29, 0, -0, -0, 57, 29], [310, 1294, 57, 29, 0, -0, -0, 57, 29], [622, 1085, 57, 29, 0, -0, -0, 57, 29], [681, 1085, 57, 29, 0, -0, -0, 57, 29], [740, 1085, 57, 29, 0, -0, -0, 57, 29], [799, 1085, 57, 29, 0, -0, -0, 57, 29], [59, 1592, 57, 200, 0, -0, -0, 57, 200], [59, 1794, 57, 200, 0, -0, -0, 57, 200], [118, 1592, 57, 200, 0, -0, -0, 57, 200], [118, 1794, 57, 200, 0, -0, -0, 57, 200], [177, 1592, 57, 200, 0, -0, -0, 57, 200], [177, 1794, 57, 200, 0, -0, -0, 57, 200], [858, 1085, 57, 29, 0, -0, -0, 57, 29], [622, 1116, 57, 29, 0, -0, -0, 57, 29], [681, 1116, 57, 29, 0, -0, -0, 57, 29], [740, 1116, 57, 29, 0, -0, -0, 57, 29], [799, 1116, 57, 29, 0, -0, -0, 57, 29], [858, 1116, 57, 29, 0, -0, -0, 57, 29], [134, 1996, 39, 39, 0, -0, -0, 39, 39], [1264, 1122, 159, 213, 0, -0, -0, 159, 213], [0, 1337, 137, 153, 0, -0, -0, 137, 153], [0, 1996, 50, 50, 0, -0, -0, 50, 50], [168, 1478, 30, 30, 0, -0, -0, 30, 30], [200, 1478, 30, 30, 0, -0, -0, 30, 30], [232, 1474, 30, 30, 0, -0, -0, 30, 30], [1595, 1117, 80, 80, 0, -0, -0, 80, 80]], animations: { "Bunny_flashTween 100_t": [0], "Bunny_flashTween 120_t": [1], "Bunny_flashTween 140_t": [2], "Bunny_flashTween 160_t": [3], "Bunny_flashTween 180_t": [4], "Bunny_flashTween 200_t": [5], "Bunny_flashTween 220_t": [6], "Bunny_flashTween 240_t": [7], "Bunny_flashTween 260_t": [8], "Bunny_flashTween 280_t": [9], "Bunny_flashTween 300_t": [10], Corner_H_L: [11], Corner_H_R: [12], Corner_V_L: [13], Corner_V_R: [14], "FX_lineTween 70_t": [15], H2: [16], H4: [17], H_end_Left: [18], H_end_Right: [19], V1: [20], V2: [21], V6: [22], V_end_Down: [23], V_end_Up: [24], back1_tr: [25], back3_tr: [26], back_grad_3: [27], back_sprite: [28], block_particle1: [29], block_particle2: [30], block_particle3: [31], blue_gradient: [32], blue_stick_bottom: [33], blue_stick_bottom_active: [34], blue_stick_middle: [35], blue_stick_middle_active: [36], blue_stick_top: [37], blue_stick_top_active: [38], bonus_particle: [39], bunny_fly_01: [40], bunny_fly_02: [41], bunny_fly_03: [42], bunny_fly_04: [43], bunny_fly_05: [44], bunny_fly_06: [45], bunny_shoot_01: [46], bunny_shoot_02: [47], bunny_shoot_03: [48], bunny_shoot_04: [49], cage: [50], cells: [51], "chars-enemie-enemie_animchars-enemie-enemie_body_down0_t": [52], "chars-enemie-enemie_animchars-enemie-enemie_body_left0_t": [53], "chars-enemie-enemie_animchars-enemie-enemie_body_right0_t": [54], "chars-enemie-enemie_animchars-enemie-enemie_trace0_t": [55], "chars-enemie-enemie_animshadow0_t": [56], "chars-rabbit-rabbitchars-rabbit-rabbit_body_left0_t": [57], "chars-rabbit-rabbitchars-rabbit-rabbit_body_right0_t": [58], "chars-rabbit-rabbitchars-rabbit-rabbit_body_up0_t": [59], "chars-rabbit-rabbitchars-rabbit-rabbit_ear0_t": [60], "chars-rabbit-rabbitchars-rabbit-rabbit_leg_right0_t": [61], "chars-rabbit-rabbitchars-rabbit-rabbit_leg_up0_t": [62], "chars-rabbit-rabbitchars-rabbit-rabbit_tail0_t": [63], "chars-rabbit-rabbitchars-shadow0_t": [64], cir_fire1: [65], cir_fire2: [66], cir_fire3: [67], cir_fire4: [68], cir_fire5: [69], cir_fire6: [70], "decor-coin-coin_animchars-shadow0_t": [71], "decor-coin-coin_animdecor-coin-Tween 10_t": [72], "decor-coin-coin_animdecor-coin-Tween 20_t": [73], dirt: [74], dirt1: [75], dirt2: [76], fence: [77], fenceV: [78], fire1: [79], fire2: [80], fire3: [81], fire4: [82], fire5: [83], fireball1: [84], fireball2: [85], fireball3: [86], fireball4: [87], flower: [88], flower_red: [89], flower_red_small: [90], grass: [91], green_gradient: [92], hit_splash1: [93], hit_splash2: [94], hit_splash3: [95], hit_splash4: [96], hit_splash5: [97], hit_splash6: [98], hit_splash7: [99], hit_splash8: [100], leaf1: [101], leaf2: [102], leaf3: [103], leaf4: [104], leaf5: [105], menu_line_part1: [106], menu_line_part2: [107], menu_play: [108], menu_play2: [109], menu_play3: [110], monster_shell: [111], more: [112], progress_bar: [113], purple_gradient: [114], ramp_down: [115], ramp_up: [116], red_gradient: [117], red_stick_arrow_1: [118], red_stick_arrow_2: [119], red_stick_arrow_3: [120], red_stick_arrow_4: [121], red_stick_bottom: [122], red_stick_bottom_active: [123], red_stick_middle: [124], red_stick_middle_active: [125], red_stick_top: [126], red_stick_top_active: [127], river: [128], river_leaf: [129], river_wood: [130], rock: [131], select_spell: [132], shadow: [133], shield: [134], stick_bottom_hit1: [135], stick_bottom_hit2: [136], stick_bottom_hit3: [137], stick_bottom_hit4: [138], stick_bottom_hit5: [139], stick_bottom_hit6: [140], stick_middle_hit1: [141], stick_middle_hit2: [142], stick_middle_hit3: [143], stick_middle_hit4: [144], stick_middle_hit5: [145], stick_middle_hit6: [146], stick_top_hit1: [147], stick_top_hit2: [148], stick_top_hit3: [149], stick_top_hit4: [150], stick_top_hit5: [151], stick_top_hit6: [152], time: [153], "tree big": [154], "tree small": [155], white: [156], window_back: [157], window_back2: [158], window_back3: [159], yellow_gradient: [160] }, texturepacker: ["SmartUpdateHash: $TexturePacker:SmartUpdate:47c12560d482190beb9873ade41a91d0:7e52d7b019057bdc9a85cb37f908ea10:c01d7f4f0fcb990f94d5668a67690eaf$", "EaselJS Extended Exporter - Trim support"] } , Menu = function(e) { function t() { var t = e.call(this) || this; return t.animatedButtons = [], t.clickables = [], t.isMenuActive = !1, t.lastClickCount = 0, t.isRestarting = !1, t.lastClickable = null, t } return __extends(t, e), t.prototype.show = function() { this.sprite && this.stage.addChild(this.sprite); for (var e = 0; e < this.animatedButtons.length; ++e) this.animatedButtons[e] && this.animatedButtons[e].onShow(); this.isMenuActive = !0, this.onResize() } , t.prototype.update = function(t) { e.prototype.update.call(this, t); for (var s = this.animatedButtons.length, i = 0; i < s; ++i) this.animatedButtons[i] && this.animatedButtons[i].update(t) } , t.prototype.hide = function() { removeClip(this.sprite), this.isMenuActive = !1; for (var e = 0; e < this.animatedButtons.length; ++e) this.animatedButtons[e] && this.animatedButtons[e].onHide() } , t.prototype.checkClick = function(e, t) { this.lastClickCount = 0; for (var s = this.clickables.length, i = 0; i < s; ++i) { var a = this.clickables[i]; if (a && a.checkClick(e, t)) { this.lastClickable = a, a.onClick(), ++this.lastClickCount, this.lastClickable = a; break } } } , t.prototype.onResize = function() {} , t.prototype.onDown = function(e, t) {} , t.prototype.onUp = function(e, t) { this.checkClick(e, t) } , t.prototype.restartLevel = function(e) { void 0 === e && (e = null), this.isRestarting = !0, e && e.nativeEvent && e.preventDefault && e.preventDefault(), MenuManager.instance.closeCurrent(), BaseLevel.instance.restart(), this.isRestarting = !1 } , t.prototype.loadMainMenu = function(e) { void 0 === e && (e = null), e && e.preventDefault() } , t }(GameObject) , CalendarMenu = function(e) { function t() { var t = e.call(this) || this; t.seeds = [], t.data = "seed:155885,moves:104,time:276\nseed:194298,moves:119,time:320\nseed:141023,moves:125,time:385\nseed:185289,moves:111,time:85\nseed:63340,moves:118,time:356\nseed:185434,moves:109,time:282\nseed:141512,moves:115,time:238\nseed:69871,moves:103,time:129\nseed:29370,moves:117,time:244\nseed:189108,moves:119,time:100\nseed:186644,moves:112,time:166\nseed:38701,moves:107,time:294\nseed:6593,moves:115,time:187\nseed:137989,moves:124,time:289\nseed:33425,moves:116,time:326\nseed:165834,moves:124,time:242\nseed:54552,moves:122,time:61\nseed:175660,moves:109,time:50\nseed:96762,moves:114,time:145\nseed:60338,moves:121,time:241\nseed:137027,moves:114,time:350\nseed:120203,moves:117,time:220\nseed:35785,moves:118,time:118\nseed:80339,moves:109,time:280\nseed:189976,moves:107,time:34\nseed:57874,moves:116,time:195\nseed:10640,moves:104,time:132\nseed:115849,moves:109,time:65\nseed:35387,moves:111,time:192\nseed:6526,moves:121,time:294\nseed:151668,moves:108,time:108\nseed:44471,moves:107,time:399\nseed:100111,moves:116,time:159\nseed:79729,moves:120,time:139\nseed:228166,moves:123,time:320\nseed:130300,moves:123,time:304\nseed:110165,moves:117,time:307\nseed:220501,moves:125,time:87\nseed:36887,moves:118,time:332\nseed:183661,moves:107,time:336\nseed:142958,moves:121,time:319\nseed:85953,moves:104,time:348\nseed:7937,moves:104,time:192\nseed:158683,moves:112,time:87\nseed:70075,moves:124,time:254\nseed:160287,moves:109,time:390\nseed:36454,moves:102,time:118\nseed:97716,moves:116,time:391\nseed:176235,moves:119,time:155\nseed:17717,moves:106,time:303\nseed:143251,moves:123,time:369\nseed:66264,moves:121,time:81\nseed:228456,moves:119,time:308\nseed:143853,moves:125,time:340\nseed:48166,moves:119,time:160\nseed:23648,moves:118,time:257\nseed:43302,moves:115,time:217\nseed:52176,moves:112,time:285\nseed:153434,moves:115,time:292\nseed:119738,moves:112,time:188\nseed:212194,moves:123,time:118\nseed:152870,moves:117,time:265\nseed:65958,moves:116,time:156\nseed:59610,moves:113,time:349\nseed:147696,moves:112,time:256\nseed:132173,moves:125,time:49\nseed:68696,moves:97,time:11\nseed:125247,moves:113,time:249\nseed:136462,moves:120,time:76\nseed:133850,moves:109,time:86\nseed:210095,moves:124,time:96\nseed:146003,moves:114,time:372\nseed:82825,moves:108,time:323\nseed:40851,moves:121,time:27\nseed:53676,moves:121,time:368\nseed:216040,moves:108,time:69\nseed:43197,moves:119,time:94\nseed:6996,moves:103,time:181\nseed:107574,moves:122,time:52\nseed:142469,moves:122,time:288\nseed:90917,moves:113,time:292\nseed:167358,moves:118,time:224\nseed:174937,moves:109,time:78\nseed:186020,moves:120,time:366\nseed:229663,moves:117,time:277\nseed:195964,moves:114,time:345\nseed:109947,moves:120,time:233\nseed:44401,moves:107,time:298\nseed:41224,moves:109,time:371\nseed:219230,moves:113,time:218\nseed:90868,moves:121,time:19\nseed:63544,moves:115,time:111\nseed:9079,moves:111,time:150\nseed:174061,moves:121,time:386\nseed:8294,moves:115,time:321\nseed:28042,moves:113,time:188\nseed:151816,moves:123,time:328\nseed:104911,moves:109,time:358\nseed:129843,moves:109,time:274\nseed:145479,moves:117,time:56\nseed:221689,moves:117,time:386\nseed:118703,moves:120,time:19\nseed:69293,moves:113,time:77\nseed:50381,moves:107,time:322\nseed:72773,moves:121,time:183\nseed:186219,moves:112,time:102\nseed:62351,moves:115,time:228\nseed:44124,moves:112,time:304\nseed:173948,moves:124,time:295\nseed:230577,moves:121,time:202\nseed:23589,moves:115,time:158\nseed:185085,moves:110,time:182\nseed:185918,moves:117,time:173\nseed:195835,moves:107,time:326\nseed:142587,moves:120,time:51\nseed:7625,moves:105,time:308\nseed:194053,moves:111,time:352\nseed:123549,moves:124,time:182\nseed:141483,moves:124,time:60\nseed:182110,moves:125,time:255\nseed:142845,moves:124,time:143\nseed:187622,moves:117,time:137\nseed:146995,moves:108,time:122\nseed:219894,moves:108,time:263\nseed:176262,moves:118,time:238\nseed:77076,moves:120,time:20\nseed:169675,moves:111,time:168\nseed:26153,moves:106,time:317\nseed:59602,moves:115,time:318\nseed:137790,moves:118,time:165\nseed:107827,moves:108,time:337\nseed:214570,moves:124,time:368\nseed:152491,moves:111,time:398\nseed:131662,moves:116,time:234\nseed:4072,moves:125,time:247\nseed:170105,moves:125,time:75\nseed:123562,moves:104,time:170\nseed:77678,moves:122,time:345\nseed:105792,moves:122,time:87\nseed:135215,moves:106,time:282\nseed:138497,moves:112,time:52\nseed:215266,moves:111,time:371\nseed:202954,moves:124,time:365\nseed:48825,moves:116,time:347\nseed:23237,moves:98,time:86\nseed:211740,moves:124,time:195\nseed:177587,moves:117,time:83\nseed:127499,moves:125,time:229\nseed:53697,moves:121,time:346\nseed:55049,moves:113,time:195\nseed:136806,moves:118,time:58\nseed:8665,moves:109,time:80\nseed:160911,moves:119,time:235\nseed:169997,moves:111,time:182\nseed:62593,moves:112,time:104\nseed:182567,moves:118,time:125\nseed:51746,moves:106,time:229\nseed:146140,moves:125,time:256\nseed:153517,moves:119,time:337\nseed:50561,moves:114,time:202\nseed:49599,moves:109,time:208\nseed:78092,moves:105,time:131\nseed:137916,moves:117,time:113\nseed:19603,moves:125,time:337\nseed:211998,moves:104,time:37\nseed:21361,moves:102,time:236\nseed:90624,moves:114,time:208\nseed:191092,moves:121,time:289\nseed:200702,moves:107,time:131\nseed:118891,moves:119,time:396\nseed:102430,moves:110,time:143\nseed:145452,moves:124,time:119\nseed:69274,moves:112,time:134\nseed:135702,moves:108,time:217\nseed:53173,moves:124,time:118\nseed:109305,moves:114,time:296\nseed:71540,moves:110,time:347\nseed:228397,moves:119,time:46\nseed:106163,moves:115,time:94\nseed:115524,moves:108,time:186\nseed:96910,moves:119,time:76\nseed:215989,moves:112,time:202\nseed:196878,moves:108,time:46\nseed:16045,moves:117,time:222\nseed:1702,moves:114,time:156\nseed:111592,moves:117,time:310\nseed:59537,moves:114,time:195\nseed:169508,moves:114,time:196\nseed:172446,moves:108,time:92\nseed:84217,moves:122,time:243\nseed:216766,moves:116,time:102\nseed:1860,moves:119,time:88\nseed:187200,moves:119,time:345\nseed:36290,moves:121,time:35\nseed:207953,moves:109,time:255\nseed:61577,moves:110,time:217\nseed:120668,moves:121,time:133\nseed:115935,moves:119,time:132\nseed:77818,moves:121,time:316\nseed:188114,moves:110,time:84\nseed:208039,moves:122,time:396\nseed:176966,moves:105,time:9\nseed:36806,moves:120,time:258\nseed:147578,moves:115,time:399\nseed:176388,moves:117,time:206\nseed:183685,moves:118,time:171\nseed:55439,moves:118,time:310\nseed:23562,moves:115,time:314\nseed:72171,moves:121,time:358\nseed:5862,moves:119,time:140\nseed:164988,moves:120,time:282\nseed:69054,moves:119,time:388\nseed:48486,moves:123,time:60\nseed:119192,moves:109,time:283\nseed:108058,moves:106,time:48\nseed:125468,moves:119,time:226\nseed:133651,moves:112,time:346\nseed:215419,moves:111,time:276\nseed:185144,moves:115,time:89\nseed:161155,moves:116,time:88\nseed:84969,moves:115,time:258\nseed:170021,moves:109,time:164\nseed:230902,moves:112,time:181\nseed:231023,moves:121,time:41\nseed:109794,moves:120,time:235\nseed:212345,moves:106,time:50\nseed:82139,moves:107,time:231\nseed:17813,moves:122,time:151\nseed:141633,moves:118,time:247\nseed:211221,moves:121,time:349\nseed:9170,moves:106,time:176\nseed:153109,moves:124,time:254\nseed:114250,moves:116,time:263\nseed:176899,moves:108,time:57\nseed:43423,moves:124,time:303\nseed:113801,moves:111,time:81\nseed:107117,moves:114,time:111\nseed:14973,moves:122,time:239\nseed:108939,moves:117,time:357\nseed:152558,moves:106,time:169\nseed:149502,moves:112,time:252\nseed:214218,moves:116,time:112\nseed:15322,moves:116,time:325\nseed:213471,moves:119,time:278\nseed:27953,moves:121,time:243\nseed:66482,moves:118,time:70\nseed:183964,moves:111,time:322\nseed:231910,moves:111,time:184\nseed:99350,moves:106,time:87\nseed:75020,moves:106,time:13\nseed:9369,moves:116,time:325\nseed:63211,moves:124,time:40\nseed:54466,moves:116,time:229\nseed:15661,moves:111,time:111\nseed:138067,moves:117,time:96\nseed:220058,moves:118,time:334\nseed:207835,moves:109,time:116\nseed:165748,moves:108,time:252\nseed:194099,moves:109,time:297\nseed:6711,moves:106,time:72\nseed:48220,moves:111,time:259\nseed:116072,moves:118,time:379\nseed:170290,moves:115,time:352\nseed:124180,moves:112,time:81\nseed:187743,moves:121,time:99\nseed:71846,moves:107,time:134\nseed:103981,moves:120,time:166\nseed:41539,moves:110,time:32\nseed:140429,moves:122,time:38\nseed:44748,moves:119,time:239\nseed:67847,moves:111,time:358\nseed:189361,moves:113,time:23\nseed:222141,moves:105,time:47\nseed:94846,moves:112,time:87\nseed:40007,moves:109,time:51\nseed:49236,moves:118,time:118\nseed:166606,moves:120,time:218\nseed:214624,moves:111,time:122\nseed:9700,moves:112,time:249\nseed:16787,moves:115,time:112\nseed:199329,moves:121,time:151\nseed:91911,moves:118,time:124\nseed:25664,moves:104,time:170\nseed:16819,moves:106,time:155\nseed:26419,moves:114,time:113\nseed:56721,moves:119,time:133\nseed:149521,moves:112,time:214\nseed:22116,moves:120,time:145\nseed:144923,moves:108,time:44\nseed:10761,moves:114,time:154\nseed:25994,moves:119,time:189\nseed:127575,moves:113,time:311\nseed:116994,moves:107,time:278\nseed:119340,moves:120,time:162\nseed:145648,moves:110,time:391\nseed:111299,moves:106,time:26\nseed:168194,moves:111,time:385\nseed:87074,moves:108,time:176\nseed:51080,moves:112,time:184\nseed:70306,moves:108,time:168\nseed:217494,moves:115,time:373\nseed:11046,moves:107,time:397\nseed:26411,moves:116,time:107\nseed:219168,moves:112,time:258\nseed:64216,moves:117,time:73\nseed:63972,moves:122,time:262\nseed:87423,moves:114,time:144\nseed:227403,moves:106,time:60\nseed:230620,moves:105,time:111\nseed:161462,moves:112,time:292\nseed:77412,moves:118,time:212\nseed:164219,moves:121,time:120\nseed:202339,moves:115,time:243\nseed:46922,moves:108,time:21\nseed:55912,moves:114,time:112\nseed:26497,moves:105,time:84\nseed:155853,moves:118,time:58\nseed:115309,moves:112,time:123\nseed:4225,moves:118,time:55\nseed:60139,moves:121,time:231\nseed:118819,moves:116,time:384\nseed:126193,moves:113,time:48\nseed:178898,moves:109,time:391\nseed:70462,moves:114,time:50\nseed:199173,moves:118,time:122\nseed:34976,moves:120,time:353\nseed:28897,moves:123,time:259\nseed:180159,moves:104,time:170\nseed:166009,moves:113,time:226\nseed:71929,moves:109,time:62\nseed:46562,moves:113,time:23\nseed:43334,moves:111,time:143\nseed:219276,moves:118,time:317\nseed:60999,moves:118,time:387\nseed:48352,moves:120,time:227\nseed:177536,moves:119,time:102\nseed:1997,moves:117,time:141\nseed:222345,moves:117,time:232\nseed:216352,moves:113,time:65\nseed:52875,moves:114,time:60\nseed:101777,moves:111,time:399\nseed:160153,moves:115,time:150\nseed:15029,moves:122,time:119\nseed:78527,moves:117,time:169\nseed:33788,moves:116,time:382\nseed:59403,moves:112,time:303\nseed:166361,moves:111,time:285\nseed:55869,moves:116,time:399\nseed:83319,moves:115,time:73\nseed:178960,moves:111,time:224\nseed:53638,moves:116,time:262\nseed:40512,moves:119,time:52\nseed:38921,moves:109,time:270\nseed:188904,moves:114,time:83\nseed:77466,moves:120,time:247\nseed:161024,moves:118,time:227\nseed:229795,moves:120,time:172\nseed:107606,moves:123,time:94\nseed:206435,moves:120,time:100\nseed:215099,moves:108,time:185\nseed:79468,moves:121,time:337\nseed:225731,moves:111,time:28\nseed:157852,moves:122,time:391\nseed:10283,moves:121,time:75\nseed:17690,moves:116,time:253\nseed:204707,moves:115,time:232\nseed:29606,moves:118,time:382\nseed:84096,moves:107,time:121\nseed:122396,moves:113,time:214\nseed:186356,moves:109,time:140"; var s = new createjs.Container; t.sprite = s; var i = new createjs.Container; s.addChild(i), t.mainSprite = i, s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H; var a = createSpriteFromSpritesheet("black_rect"); setReg(a, .5, .5, !0), a.scaleX = (App.SCREEN_W + 500) / 100, a.scaleY = (App.SCREEN_H + 500) / 100, a.alpha = .75, i.addChild(a); var n = createSpriteFromSpritesheet("menu_back_big"); i.addChild(n), setReg(n, .5, .5, !0), n.scaleX = 1, n.scaleY = .85; var r = new createjs.BitmapText("07/2013",App.game.atlases[0]); r.letterSpacing = -3, t.monthText = r, r.y = -286, r.scaleX = .9, r.scaleY = .75, setReg(r, .5, .5, !0), i.addChild(t.monthText); var o = new ScaleButton(createSpriteFromSpritesheet("close"),function(e) { t.close() } ,i,255,-297); t.animatedButtons.push(o), t.clickables.push(o), (o = new ScaleButton(createSpriteFromSpritesheet("arrow_right"),function(e) { return t.nextMonth() } ,i,141,265)).baseScale = .7, t.animatedButtons.push(o), t.clickables.push(o), (o = new ScaleButton(createSpriteFromSpritesheet("arrow_left"),function(e) { return t.prevMonth() } ,i,-141,265)).baseScale = .7, t.animatedButtons.push(o), t.clickables.push(o), (o = new ScaleButton(createSpriteFromSpritesheet("play"),function(e) { return t.playChallenge() } ,i,0,265)).baseScale = .9, t.animatedButtons.push(o), t.clickables.push(o), t.render(Date.now()); for (var c = t.data.split("\n"), h = 0; h < c.length; ++h) { var l = c[h].split(",")[0].split(":")[1]; t.seeds.push(parseInt(l)) } return t } return __extends(t, e), t.prototype.getChallengeSeed = function(e) { void 0 === e && (e = null), null == e && (e = new Date); var t = new Date(e.getFullYear(),0,0) , s = e.getTime() - t.getTime() , i = Math.floor(s / 864e5); return this.seeds[i] } , t.prototype.playChallenge = function() { this.close(), MenuManager.instance.closeCurrent(), BaseLevel.instance.init(!1, -1, null, !0); for (var e = 0; e < 3; ++e) App.game.update(null) } , t.prototype.nextMonth = function() { var e = new Date(this.lastDate.getFullYear(),this.lastDate.getMonth() + 1,0); this.render(e.getTime() + 1728e5) } , t.prototype.prevMonth = function() { var e = new Date(this.lastDate.getFullYear(),this.lastDate.getMonth(),1); this.render(e.getTime() - 1728e5) } , t.prototype.render = function(e) { for (var t = this; this.mainSprite.numChildren > 7; ) this.mainSprite.removeChildAt(7); for (var s = 0; s < this.clickables.length; ++s) { void 0 != this.clickables[s].sprite.date && (this.clickables.splice(s, 1), this.animatedButtons.splice(s, 1), s--) } var i = new Date , a = new Date(e); this.lastDate = new Date(e), this.monthText.text = a.getMonth() + 1 + "/" + a.getFullYear(); var n = new Date(a.getFullYear(),a.getMonth() + 1,0) , r = n.getDate() , o = (n = new Date(a.getFullYear(),a.getMonth(),1)).getDay() - 1; o < 0 && (o = 6); var c = 0; for (s = 0; s < r; ++s) { var h = 70 * (o - 3) , l = 70 * c - 225 + 25 , d = new Date(a.getFullYear(),a.getMonth(),1 + s) , p = i.getFullYear() == d.getFullYear() && i.getMonth() == d.getMonth() && i.getDate() == d.getDate() , u = !1 , m = d.getFullYear() + "-" + d.getMonth() + "-" + d.getDate(); -1 != SaveManager.instance.completedChallenges.indexOf(m) && (u = !0); var g = !p && d.getTime() > i.getTime() , y = createSpriteFromSpritesheet(u ? "calendar cell won" : p ? "calendar cell current" : g ? "calendar cell empty" : "calendar cell future"); if (u || p || (y.alpha = g ? .6 : .8), setReg(y, .5, .5, !0), this.mainSprite.addChild(y), y.x = h, y.y = l, y.date = d, y.scaleX = y.scaleY = 1, 6 == o && ++c, o = (o + 1) % 7, !g) { var v = new ScaleButton(y,function(e) { t.openChallengeByButton() } ,y.parent,y.x,y.y); v.baseScale = 1, this.animatedButtons.push(v), this.clickables.push(v) } var f = new createjs.BitmapText((s + 1).toString(),App.game.atlases[1]); f.letterSpacing = -3, setReg(f, 0, .5, !0), this.mainSprite.addChild(f), setReg(f, .5, .5, !0), f.x = y.x, f.y = y.y, f.scaleX = f.scaleY = .44 } } , t.prototype.openChallengeByButton = function() { var e = this.lastClickable.sprite.date; if (e) { var t = this.getChallengeSeed(e); this.close(), MenuManager.instance.closeCurrent(), BaseLevel.instance.init(!0, t, e); for (var s = 0; s < 3; ++s) App.game.update(null) } } , t.prototype.menu = function() {} , t.prototype.restart = function() {} , t.prototype.update = function(t) { e.prototype.update.call(this, t); var s = App.game.screenFactors.x , i = App.game.screenFactors.y , a = i > s , n = (s + i - 1) / 1; this.sprite.scaleX = this.sprite.scaleY = lerp(a ? 1 : .9, 1.6, n) } , t.prototype.close = function() { MenuManager.instance.closeCurrent(), MenuManager.instance.current = MenuManager.instance.mainMenu //window.game_uptap_analytics.trackScreen("SCREEN_HOME") } , t.prototype.show = function() { this.isMenuActive || (e.prototype.show.call(this), //window.game_uptap_analytics.trackScreen("SCREEN_OTHER", "SCREEN_CALENDAR"), this.render(Date.now()), this.update(0)) } , t.prototype.hide = function() { e.prototype.hide.call(this) } , t }(Menu) , CardBackMenu = function(e) { function t() { var t = e.call(this) || this; t.cards = []; var s = new createjs.Container; t.sprite = s; var i = new createjs.Container; s.addChild(i), s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H; var a = createSpriteFromSpritesheet("black_rect"); setReg(a, .5, .5, !0), a.scaleX = (App.SCREEN_W + 500) / 100, a.scaleY = (App.SCREEN_H + 500) / 100, a.alpha = .75, i.addChild(a); var n = createSpriteFromSpritesheet("menu_back"); i.addChild(n), setReg(n, .5, .5, !0), n.scaleX = 1, n.scaleY = 1; var r = new ScaleButton(createSpriteFromSpritesheet("close"),function(e) { t.close() } ,i,255,-177); t.animatedButtons.push(r), t.clickables.push(r); for (var o = 0; o < SaveManager.BACK_AMOUNT; ++o) { var c = o % 6 - 2.5 , h = Math.floor(o / 6) , l = createSpriteFromSpritesheet("cards2_back"); setReg(l, .5, .5, !0), i.addChild(l), l.x = 90 * c, l.y = 115 * h - 85 - 5 + 10, l.scaleX = l.scaleY = .59; var d = createSpriteFromSpritesheet("set" + (o + 1) + "_back"); setReg(d, .5, .5, !0), d.scaleX = d.scaleY = l.scaleX, d.x = l.x, d.y = 115 * h - 85 - 6 + 10, i.addChild(d), t.cards.push(d), (r = new ScaleButton(d,function(e) { t.changeBack() } ,i,d.x,d.y)).baseScale = d.scaleX, r.noScale = !0, t.animatedButtons.push(r), t.clickables.push(r) } return t } return __extends(t, e), t.prototype.changeBack = function() { var e = this.cards.indexOf(this.lastClickable.sprite); SaveManager.instance.currentCardBack = e, /*window.game_uptap_analytics.trackEvent("EVENT_CUSTOM", { event: "EVENT_CARDBACKCHANGED", cardback: e + 1 }),*/ this.close() } , t.prototype.menu = function() {} , t.prototype.restart = function() {} , t.prototype.update = function(t) { e.prototype.update.call(this, t); var s = App.game.screenFactors.x , i = App.game.screenFactors.y , a = i > s , n = (s + i - 1) / 1; this.sprite.scaleX = this.sprite.scaleY = lerp(a ? 1 : .75, 1.4, n) } , t.prototype.close = function() { MenuManager.instance.closeCurrent(), MenuManager.instance.current = MenuManager.instance.settings//, // window.game_uptap_analytics.trackScreen("SCREEN_SETTINGS") } , t.prototype.show = function() { this.isMenuActive || (e.prototype.show.call(this), //window.game_uptap_analytics.trackScreen("SCREEN_OTHER", "SCREEN_CARDBACKS"), this.update(0)) } , t.prototype.hide = function() { e.prototype.hide.call(this) } , t }(Menu) , CardFaceMenu = function(e) { function t() { var t = e.call(this) || this; t.cards = []; var s = new createjs.Container; t.sprite = s; var i = new createjs.Container; s.addChild(i), s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H; var a = createSpriteFromSpritesheet("black_rect"); setReg(a, .5, .5, !0), a.scaleX = (App.SCREEN_W + 500) / 100, a.scaleY = (App.SCREEN_H + 500) / 100, a.alpha = .75, i.addChild(a); var n = createSpriteFromSpritesheet("menu_back_big"); i.addChild(n), setReg(n, .5, .5, !0), n.scaleX = 1, n.scaleY = 1; var r = new ScaleButton(createSpriteFromSpritesheet("close"),function(e) { t.close() } ,i,270,-381); t.animatedButtons.push(r), t.clickables.push(r); for (var o = 0; o < SaveManager.SET_AMOUNT; ++o) { var c = o % 2 == 0 ? -1 : 1 , h = Math.floor(o / 2) , l = createSpriteFromSpritesheet("cards1_back"); setReg(l, .5, .5, !0), i.addChild(l), l.x = 119 * c, l.y = 109 * h - 325 - 4, l.scaleX = l.scaleY = .5831; for (var d = 0; d < 3; ++d) { var p = createSpriteFromSpritesheet(CardObject.getCardSpriteName(o % 4, [7, 11, 0][d], SaveManager.instance.currentCardSet)); setReg(p, .5, .5, !0), p.scaleX = p.scaleY = .57, p.x = l.x + 70 * (d - 1), p.y = l.y - 1, i.addChild(p), t.cards.push(p), (r = new ScaleButton(p,function(e) { t.changeFace() } ,i,p.x,p.y)).baseScale = p.scaleX, r.noScale = !0, t.animatedButtons.push(r), t.clickables.push(r) } } return t } return __extends(t, e), t.prototype.changeFace = function() { var e = this.cards.indexOf(this.lastClickable.sprite); SaveManager.instance.currentCardSet = Math.floor(e / 3), /*window.game_uptap_analytics.trackEvent("EVENT_CUSTOM", { event: "EVENT_CARDSETCHANGED", cardset: SaveManager.instance.currentCardSet + 1 }),*/ this.close() } , t.prototype.menu = function() {} , t.prototype.restart = function() {} , t.prototype.update = function(t) { e.prototype.update.call(this, t); var s = App.game.screenFactors.x , i = App.game.screenFactors.y , a = i > s , n = (s + i - 1) / 1; this.sprite.scaleX = this.sprite.scaleY = lerp(a ? 1 : .75, 1.4, n); for (var r = 0; r < SaveManager.SET_AMOUNT; ++r) for (var o = 0; o < 3; ++o) { var c = this.cards[3 * r + o] , h = CardObject.getCardSpriteName(r % 4, [7, 11, 0][o], r) , l = getSpritesheetByName(h); c.spriteSheet = App.game.atlases[l], c.gotoAndStop(h) } } , t.prototype.close = function() { MenuManager.instance.closeCurrent(), MenuManager.instance.current = MenuManager.instance.settings/*, window.game_uptap_analytics.trackScreen("SCREEN_SETTINGS")*/ } , t.prototype.show = function() { this.isMenuActive || (e.prototype.show.call(this), //window.game_uptap_analytics.trackScreen("SCREEN_OTHER", "SCREEN_CARDSETS"), this.update(0)) } , t.prototype.hide = function() { e.prototype.hide.call(this) } , t }(Menu) , GameBackMenu = function(e) { function t() { var t = e.call(this) || this; t.backgrounds = [], t.backs = []; var s = new createjs.Container; t.sprite = s; var i = new createjs.Container; s.addChild(i), s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H; var a = createSpriteFromSpritesheet("black_rect"); setReg(a, .5, .5, !0), a.scaleX = (App.SCREEN_W + 500) / 100, a.scaleY = (App.SCREEN_H + 500) / 100, a.alpha = .75, i.addChild(a); var n = createSpriteFromSpritesheet("menu_back"); i.addChild(n), setReg(n, .5, .5, !0), n.scaleX = 1, n.scaleY = 1; var r = new ScaleButton(createSpriteFromSpritesheet("close"),function(e) { t.close() } ,i,255,-177); t.animatedButtons.push(r), t.clickables.push(r); for (var o = 0; o < SaveManager.GAME_BACK_AMOUNT; ++o) { var c = o % 4 - 1.5 , h = Math.floor(o / 4) , l = createSpriteFromSpritesheet("cards3_back"); setReg(l, .5, .5, !0), i.addChild(l), l.x = 115 * c, l.y = 113 * h - 111 - 5 + 10, l.scaleX = l.scaleY = 1, t.backgrounds.push(l), (r = new ScaleButton(l,function(e) { t.changeBack() } ,i,l.x,l.y)).baseScale = 1, r.noScale = !0, t.animatedButtons.push(r), t.clickables.push(r); var d = createBitmap("back" + (SaveManager.instance.currentGameBack + 1)); d.regX = 400, d.regY = 400, d.scaleX = d.scaleY = .1, d.x = l.x, d.y = l.y - 1, i.addChild(d), t.backs.push(d) } return t } return __extends(t, e), t.prototype.changeBack = function() { var e = this.backgrounds.indexOf(this.lastClickable.sprite); SaveManager.instance.currentGameBack = e, /*window.game_uptap_analytics.trackEvent("EVENT_CUSTOM", { event: "EVENT_BACKGROUNDCHANGED", background: e + 1 }),*/ this.close() } , t.prototype.menu = function() {} , t.prototype.restart = function() {} , t.prototype.update = function(t) { e.prototype.update.call(this, t); var s = App.game.screenFactors.x , i = App.game.screenFactors.y , a = i > s , n = (s + i - 1) / 1; this.sprite.scaleX = this.sprite.scaleY = lerp(a ? 1 : .75, 1.4, n); for (var r = 0; r < this.backs.length; ++r) { var o = this.backs[r] , c = "back" + (r + 1) , h = App.game.preloader.loader.getResult(c); h || (h = App.game.preloader.postLoader.getResult(c)), o.image = h } } , t.prototype.close = function() { MenuManager.instance.closeCurrent(), MenuManager.instance.current = MenuManager.instance.settings/*, window.game_uptap_analytics.trackScreen("SCREEN_SETTINGS")*/ } , t.prototype.show = function() { this.isMenuActive || (e.prototype.show.call(this), // window.game_uptap_analytics.trackScreen("SCREEN_OTHER", "SCREEN_BACKGROUNDS"), this.update(0)) } , t.prototype.hide = function() { e.prototype.hide.call(this) } , t }(Menu) , Hud = function(e) { function t() { var t = e.call(this) || this; t.clickables = [], t.buttonContainerRight = new createjs.Container, t.buttonContainerLeft = new createjs.Container, t.statsContainer = new createjs.Container, t.bonusButtons = [], t.buttonGlows = []; var s = new createjs.Container; t.sprite = s, addChild(t.sprite, t.level.hudLayer); t.sprite; t.buttonContainerRight = new createjs.Container, s.addChild(t.buttonContainerRight), t.buttonContainerLeft = new createjs.Container, s.addChild(t.buttonContainerLeft); var i, a; t.movesContainer = new createjs.Container, s.addChild(t.movesContainer), t.buttonBack = createSpriteFromSpritesheet("black_rect"), t.movesContainer.addChild(t.buttonBack), setReg(t.buttonBack, .5, .5, !0), t.buttonBack.scaleY = 1, t.buttonBack.y = 0, t.buttonBack.alpha = .5, (i = new ScaleButton(createSpriteFromSpritesheet("b_help"),function(e) { t.showHint() } ,t.buttonContainerRight,-43,0)).baseScale = .8, t.clickables.push(i), t.bonusButtons.push(i), i.needSound = !1, (i = new ScaleButton(createSpriteFromSpritesheet("b_back"),function(e) { t.undoMove() } ,t.buttonContainerRight,43,0)).baseScale = .8, t.clickables.push(i), i.needSound = !1, t.bonusButtons.push(i), t.undoButton = i, (i = new ScaleButton(createSpriteFromSpritesheet("b_finish"),function(e) { t.autoComplete() } ,t.buttonContainerLeft,43,0)).baseScale = .8, t.clickables.push(i), t.bonusButtons.push(i), (i = new ScaleButton(createSpriteFromSpritesheet("options"),function(e) { t.openOptions() } ,t.buttonContainerLeft,-43,0)).baseScale = .8, t.clickables.push(i), t.bonusButtons.push(i); for (var n = 0; n < t.bonusButtons.length; ++n) { var r = createSpriteFromSpritesheet("b_select"); t.buttonGlows.push(r), t.bonusButtons[n].sprite.parent.addChild(r), setReg(r, .5, .5, !0) } return t.statsContainer = new createjs.Container, s.addChild(t.statsContainer), t.statsBack = createSpriteFromSpritesheet("black_rect"), t.statsContainer.addChild(t.statsBack), setReg(t.statsBack, .5, .5, !0), t.statsBack.scaleY = .9, t.statsBack.y = -8, t.statsBack.alpha = .5, t.scoreIcon = createSpriteFromSpritesheet("score"), setReg(t.scoreIcon, 1, .5, !0), t.scoreIcon.scaleX = t.scoreIcon.scaleY = .7, t.scoreIcon.x = -45, t.statsContainer.addChild(t.scoreIcon), t.movesIcon = createSpriteFromSpritesheet("moves"), setReg(t.movesIcon, .5, .5, !0), t.movesIcon.scaleX = t.movesIcon.scaleY = .7, t.movesContainer.addChild(t.movesIcon), t.timeIcon = createSpriteFromSpritesheet("time"), setReg(t.timeIcon, .5, .5, !0), t.timeIcon.scaleX = t.timeIcon.scaleY = .7, t.statsContainer.addChild(t.timeIcon), (a = new createjs.BitmapText("$1-312",App.game.atlases[0])).letterSpacing = -2, t.scoreText = a, setReg(a, 0, .5, !0), t.statsContainer.addChild(t.scoreText), (a = new createjs.BitmapText("213",App.game.atlases[0])).letterSpacing = -2, t.movesText = a, setReg(a, 0, .5, !0), t.movesContainer.addChild(t.movesText), (a = new createjs.BitmapText("0:00",App.game.atlases[0])).letterSpacing = -5, t.timeText = a, setReg(a, 0, .5, !0), t.statsContainer.addChild(t.timeText), t.update(0), t } return __extends(t, e), t.prototype.openOptions = function() { MenuManager.instance.show(MenuManager.instance.settings) } , t.prototype.autoComplete = function() { BaseLevel.instance.isActivated && BaseLevel.instance.autoComplete() } , t.prototype.undoMove = function() { BaseLevel.instance.isActivated && BaseLevel.instance.stepBack() } , t.prototype.showHint = function() { BaseLevel.instance.isActivated && BaseLevel.instance.showHint() } , t.prototype.doNothing = function() {} , t.prototype.help = function() { BaseLevel.instance.showHint() } , t.prototype.pause = function() { MenuManager.instance.show(MenuManager.instance.pause) } , t.prototype.onDown = function(e, t) { for (var s = this.clickables.length, i = 0; i < s; ++i) { var a = this.clickables[i]; if (a && a.checkClick(e, t)) { a.onClick(); break } } } , t.prototype.hasClick = function(e, t) { for (var s = this.clickables.length, i = 0; i < s; ++i) { var a = this.clickables[i]; if (a && a.checkClick(e, t)) return !0 } return !1 } , t.prototype.show = function() { this.update(0) } , t.prototype.update = function(t) { e.prototype.update.call(this, t), this.sprite.visible = BaseLevel.instance.isActivated; var s = App.game.screenFactors.x , i = App.game.screenFactors.y , a = i > s; this.buttonContainerRight.x = .5 * App.SCREEN_W + (a ? lerp(505, 235, 1 - s) : lerp(510, 505, i)), this.buttonContainerRight.y = .5 * App.SCREEN_H + (a ? lerp(577, 570, 1 - s) : lerp(305, 577, i)) - 15, this.buttonContainerRight.scaleX = this.buttonContainerRight.scaleY = a ? lerp(1, .9, 1 - s) : lerp(.7, 1, i), this.buttonContainerLeft.x = .5 * App.SCREEN_W - (a ? lerp(490, 235, 1 - s) : lerp(510, 490, i)), this.buttonContainerLeft.y = this.buttonContainerRight.y, this.buttonContainerLeft.scaleX = this.buttonContainerLeft.scaleY = this.buttonContainerRight.scaleX, this.statsContainer.scaleX = this.statsContainer.scaleY = this.buttonContainerLeft.scaleX, this.statsContainer.x = .5 * App.SCREEN_W, this.statsContainer.y = .5 * App.SCREEN_H - (a ? lerp(565, 575, 1 - s) : lerp(305, 565, i)) + 15, this.statsBack.scaleX = 1 + App.SCREEN_W / 50, this.buttonBack.scaleX = this.statsBack.scaleX, this.movesContainer.x = .5 * App.SCREEN_W, this.movesContainer.y = .5 * App.SCREEN_H + (a ? lerp(545, 540, 1 - s) : lerp(277, 545, i)) + 15, this.sprite.setChildIndex(this.movesContainer, 0), this.movesContainer.scaleX = this.movesContainer.scaleY = this.statsContainer.scaleX; for (var n = 0; n < this.bonusButtons.length; ++n) { var r = this.buttonGlows[n] , o = this.bonusButtons[n]; r.x = o.sprite.x, r.y = o.sprite.y, r.scaleX = .65 * o.sprite.scaleX, r.scaleY = .65 * o.sprite.scaleY; var c = !1; 0 == n ? c = this.level.timeSinceLastSave > 15 && !this.level.isFinished : 1 == n ? c = !1 : 2 == n && (c = this.level.canFinish && !this.level.isFinished); var h = r.speed ? r.speed : 1; r.visible = c, r.alpha += t * h * 3, (r.alpha > 1 && h > 0 || r.alpha < 0 && h < 0) && (r.speed = -1 * h), r.alpha = limit(r.alpha, 0, 1) } this.scoreText.text = SaveManager.instance.vegasEnabled ? BaseLevel.instance.vegasScore.toString() : BaseLevel.instance.usualScore.toString(), this.scoreText.x = -40, "portrait" == "portrait"/*window.game_uptap.getOrientation()*/ && (this.scoreText.x -= 150), this.scoreText.y = 7, this.scoreText.scaleX = .95, this.scoreText.scaleY = .77, this.scoreText.visible = !0, this.scoreIcon.x = -45, "portrait" == "portrait"/*window.game_uptap.getOrientation()*/ && (this.scoreIcon.x -= 150), this.scoreIcon.gotoAndStop(SaveManager.instance.vegasEnabled ? "score_vegas" : "score"), this.timeText.text = BaseLevel.instance.timeText, this.timeText.x = this.timeIcon.x + 34, this.timeText.y = 0, this.timeText.scaleX = this.scoreText.scaleX, this.timeText.scaleY = this.scoreText.scaleY, this.movesText.text = BaseLevel.instance.moves.toString(), this.movesText.x = this.movesIcon.x + 40, this.movesText.y = 0, this.movesText.scaleX = this.scoreText.scaleX, this.movesText.scaleY = this.scoreText.scaleY; var l = (this.buttonContainerRight.x - .5 * App.SCREEN_W) / this.buttonContainerRight.scaleX; this.timeIcon.x = l - 140, this.movesIcon.x = -25, this.undoButton.isEnabled = BaseLevel.instance.canUndo, this.undoButton.sprite.gotoAndStop(BaseLevel.instance.canUndo ? "b_back" : "b_back1") } , t.prototype.destroy = function() { e.prototype.destroy.call(this) } , t.prototype.reset = function() { removeClip(this.sprite), addChild(this.sprite, this.level.hudLayer) } , t }(GameObject) , LoadingMenu = function(e) { function t() { var t = e.call(this) || this , s = new createjs.Container; t.sprite = s; var i = new createjs.Container; s.addChild(i), s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H; var a = createSpriteFromSpritesheet("black_rect"); return setReg(a, .5, .5, !0), a.scaleX = (App.SCREEN_W + 500) / 100, a.scaleY = (App.SCREEN_H + 500) / 100, a.alpha = .75, i.addChild(a), t.ring = createSpriteFromSpritesheet("loading ring"), setReg(t.ring, .5, .5, !0), i.addChild(t.ring), t } return __extends(t, e), t.prototype.update = function(t) { e.prototype.update.call(this, t), this.ring.rotation += 230 * t, this.ring.scaleX = this.ring.scaleY = 1.5, Preloader.instance.postLoadComplete && MenuManager.instance.show(this.menuToShow) } , t.prototype.close = function() { MenuManager.instance.closeCurrent(), MenuManager.instance.current = MenuManager.instance.mainMenu } , t.prototype.show = function() { this.isMenuActive || (e.prototype.show.call(this), this.update(0)) } , t.prototype.hide = function() { e.prototype.hide.call(this) } , t }(Menu) , MainMenu = function(e) { function t() { var t = e.call(this) || this; t.firstShow = !0, t.logoShift = { y: 0 }; var s = new createjs.Container; t.sprite = s, s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H; var i, a = createSpriteFromSpritesheet("logo"); return setReg(a, .5, .5, !0), s.addChild(a), a.y = -200, t.logo = a, (i = new ScaleButton(createSpriteFromSpritesheet("play"),function(e) { t.onPlayButtonPress() } ,s,0,0)).baseScale = 1, t.playButton = i, t.animatedButtons.push(i), t.clickables.push(i), (i = new ScaleButton(createSpriteFromSpritesheet("options"),function(e) { t.openOptions() } ,s,0,0)).baseScale = .7, t.optionsButtons = i, t.animatedButtons.push(i), t.clickables.push(i), (i = new ScaleButton(createSpriteFromSpritesheet("b_statistics"),function(e) { t.openStatistics() } ,s,0,0)).baseScale = .7, t.statisticsButton = i, t.animatedButtons.push(i), t.clickables.push(i), (i = new ScaleButton(createSpriteFromSpritesheet("b_calendar"),function(e) { t.openCalendar() } ,s,0,0)).baseScale = 1, t.calendarButton = i, t.animatedButtons.push(i), t.clickables.push(i), t.moreButton = new MoreGamesButton(s,0,0,1), t.clickables.push(t.moreButton), t.onResize(), t } return __extends(t, e), t.prototype.tweenLogo = function() { var e = this; createjs.Tween.removeTweens(this.logoShift); for (var t = createjs.Tween.get(this.logoShift, { loop: !1 }), s = 0; s < 30; ++s) t.to({ y: 25 }, 1e3, createjs.Ease.cubicInOut), t.to({ y: 0 }, 1e3, createjs.Ease.cubicInOut); t.call(function() { return e.tweenLogo() }) } , t.prototype.openCalendar = function() { MenuManager.instance.show(MenuManager.instance.calendarMenu) } , t.prototype.openStatistics = function() { MenuManager.instance.show(MenuManager.instance.stats) } , t.prototype.openOptions = function() { MenuManager.instance.show(MenuManager.instance.settings) } , t.prototype.onPlayButtonPress = function() { console.log("玩家进入") window.start_game++ window['uptap'].GameEvent("start_game",window.start_game); MenuManager.instance.closeCurrent(), BaseLevel.instance.init(); for (var e = 0; e < 3; ++e) App.game.update(null) } , t.prototype.onUp = function(t, s) { e.prototype.onUp.call(this, t, s) } , t.prototype.onPlayDown = function() { SoundsManager.instance.playSound("button"), MenuManager.instance.closeCurrent() } , t.prototype.onResize = function() { e.prototype.onResize.call(this) } , t.prototype.show = function() { e.prototype.show.call(this), //window.game_uptap_analytics.trackScreen("SCREEN_HOME"), this.firstShow && (BaseLevel.instance.initBackgrounds(!0), BaseLevel.instance.deactivate(), BaseLevel.instance.hud.sprite.visible = !1), this.firstShow = !1, this.tweenLogo() } , t.prototype.hide = function() { e.prototype.hide.call(this), createjs.Tween.removeTweens(this.logoShift) } , t.prototype.trueHide = function() { e.prototype.hide.call(this), MenuManager.instance.current == this && (MenuManager.instance.current = null) } , t.prototype.update = function(t) { e.prototype.update.call(this, t); var s = App.game.screenFactors.x , i = App.game.screenFactors.y , a = i > s , n = (s + i - 1) / 1; this.sprite.scaleX = this.sprite.scaleY = lerp(a ? 1.2 : 1, 1.7, n), this.logo.y = -160 + (a ? lerp(0, -100, 1 - s) : 0), this.playButton.sprite.y = .65 * -this.logo.y + 15, this.logo.scaleX = this.logo.scaleY = .7, this.optionsButtons.sprite.y = a ? lerp(-310, -440, 1 - s) : lerp(-275, -310, i), this.optionsButtons.sprite.x = a ? lerp(295, 225, 1 - s) : lerp(525, 295, i), this.calendarButton.sprite.x = this.playButton.sprite.x + 130, this.calendarButton.sprite.y = this.playButton.sprite.y, this.statisticsButton.sprite.x = this.optionsButtons.sprite.x - 77, this.statisticsButton.sprite.y = this.optionsButtons.sprite.y, this.moreButton && this.moreButton.sprite && (this.moreButton.sprite.y = a ? lerp(320, 430, 1 - s) : lerp(280, 320, i), this.moreButton.sprite.x = 0, this.moreButton.sprite.scaleX = this.moreButton.sprite.scaleY = .25, this.moreButton.updateRectScale()), this.onResize(), this.logo.regY = 193 - this.logoShift.y / this.logo.scaleY } , t.prototype.onDown = function(t, s) { e.prototype.onDown.call(this, t, s) } , t }(Menu) , MenuManager = function() { function e() { this.menus = [], this.mainMenu = new MainMenu, this.pause = new PauseMenu, this.winMenu = new WinMenu, this.settings = new SettingsMenu, this.cardFaceMenu = new CardFaceMenu, this.cardBackMenu = new CardBackMenu, this.gameBackMenu = new GameBackMenu, this.loadingMenu = new LoadingMenu, this.calendarMenu = new CalendarMenu, this.stats = new StatisticsMenu, this.menus.push(this.mainMenu, this.winMenu, this.settings), e.instance = this } return e.prototype.show = function(e, t) { void 0 === t && (t = !0), this.current == this.mainMenu && e == this.settings || this.current == this.settings && e == this.cardFaceMenu || this.current == this.settings && e == this.cardBackMenu || this.current == this.settings && e == this.loadingMenu || this.current == this.mainMenu && e == this.stats || this.current == this.mainMenu && e == this.calendarMenu || this.current == this.settings && e == this.gameBackMenu || this.closeCurrent(), this.current = e, this.current && (this.current.show(), this.current && this.current.update(0)) } , e.prototype.update = function(e) { this.current && this.current.update(e) } , e.prototype.closeCurrent = function() { this.current && this.current.hide(), this.current && !this.current.isMenuActive && (this.current = null) } , e.prototype.onResize = function() { this.current && this.current.onResize() } , e }() , PauseMenu = function(e) { function t() { var t = e.call(this) || this , s = new createjs.Container; t.sprite = s; var i = new createjs.Container; s.addChild(i), s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H - 40; var a = createSpriteFromSpritesheet("black_rect"); setReg(a, .5, .5, !0), a.scaleX = (App.SCREEN_W + 500) / 100, a.scaleY = (App.SCREEN_H + 500) / 100, a.alpha = .6, i.addChild(a); var n = createSpriteFromSpritesheet("menu_back"); i.addChild(n), setReg(n, .5, .5, !0), n.scaleX = .75, n.scaleY = .75; var r = new SoundButton(!0,i,-115,-127); t.animatedButtons.push(r), t.clickables.push(r); r = new SoundButton(!1,i,-40,-127); t.animatedButtons.push(r), t.clickables.push(r), (r = new ScaleButton(createSpriteFromSpritesheet("play"),function(e) { t.close() } ,i,0,25)).baseScale = 1, t.animatedButtons.push(r), t.clickables.push(r); r = new ScaleButton(createSpriteFromSpritesheet("b_restart"),function(e) { t.restart() } ,i,110,25); t.animatedButtons.push(r), t.clickables.push(r); r = new ScaleButton(createSpriteFromSpritesheet("menu"),function(e) { t.menu() } ,i,-110,25); t.animatedButtons.push(r), t.clickables.push(r); r = new ScaleButton(createSpriteFromSpritesheet("close"),function(e) { t.close() } ,i,115,-127); return t.animatedButtons.push(r), t.clickables.push(r), t } return __extends(t, e), t.prototype.menu = function() { MenuManager.instance.show(MenuManager.instance.mainMenu) } , t.prototype.restart = function() { BaseLevel.instance.init(!0), MenuManager.instance.closeCurrent() } , t.prototype.update = function(t) { e.prototype.update.call(this, t); App.game.screenFactors.x, App.game.screenFactors.y; this.sprite.scaleX = this.sprite.scaleY = 1.3 * (App.game.screenFactors.y > .4 ? 1 : lerp(.7, 1, App.game.screenFactors.y / .4)) } , t.prototype.close = function() { MenuManager.instance.closeCurrent() } , t.prototype.show = function() { this.isMenuActive || (e.prototype.show.call(this), // window.game_uptap_analytics.trackScreen("SCREEN_PAUSE"), this.update(0)) } , t.prototype.hide = function() { e.prototype.hide.call(this) } , t }(Menu) , SettingsMenu = function(e) { function t() { var t = e.call(this) || this; t.cards = []; var s = new createjs.Container; t.sprite = s; var i = new createjs.Container; s.addChild(i), t.mainContainer = i, i.y = 35, s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H; var a = createSpriteFromSpritesheet("black_rect"); setReg(a, .5, .5, !0), a.scaleX = (App.SCREEN_W + 500) / 100, a.scaleY = (App.SCREEN_H + 500) / 100, a.alpha = .75, i.addChild(a), t.grayBack = a; var n = createSpriteFromSpritesheet("menu_back_big1"); i.addChild(n), setReg(n, .5, .5, !0), n.scaleX = 1, n.scaleY = .9, n.y = -35; var r = new ScaleButton(createSpriteFromSpritesheet("close"),function(e) { t.close() } ,i,175,-351); t.animatedButtons.push(r), t.clickables.push(r), (r = new SoundButton(!0,i,50,-305)).baseScale = .8, t.animatedButtons.push(r), t.clickables.push(r), (r = new SoundButton(!1,i,-50,-305)).baseScale = .8, t.animatedButtons.push(r), t.clickables.push(r), setReg(c = createSpriteFromSpritesheet("line1"), .5, .5, !0), i.addChild(c), c.y = -257, c.scaleY = .5, c.alpha = .5, (r = new ScaleButton(createSpriteFromSpritesheet("b_1-3_1"),function(e) { SaveManager.instance.switchCardMode() } ,i,50,-205)).baseScale = .8, t.cardButton = r, t.animatedButtons.push(r), t.clickables.push(r), setReg(c = createSpriteFromSpritesheet("line1"), .5, .5, !0), i.addChild(c), c.y = -157, c.scaleY = .5, c.alpha = .5, (r = new ScaleButton(createSpriteFromSpritesheet("b_L-R"),function(e) { SaveManager.instance.switchHandMode() } ,i,-50,-205)).baseScale = .8, t.handButton = r, t.animatedButtons.push(r), t.clickables.push(r), setReg(c = createSpriteFromSpritesheet("line1"), .5, .5, !0), i.addChild(c), c.y = -58, c.scaleY = .5, c.alpha = .5, (r = new ScaleButton(createSpriteFromSpritesheet("vegas"),function(e) { SaveManager.instance.switchVegas() } ,i,0,-105)).baseScale = .8, t.vegasButton = r, t.animatedButtons.push(r), t.clickables.push(r); var o, c; setReg(o = createSpriteFromSpritesheet("cards1_back"), .5, .5, !0), i.addChild(o), o.x = -50, o.y = 9, o.scaleX = o.scaleY = .55; for (var h = 0; h < 3; ++h) { var l; setReg(l = createSpriteFromSpritesheet(CardObject.getCardSpriteName(0, [7, 11, 0][h])), .5, .5, !0), l.scaleX = l.scaleY = .55, l.x = 65 * (h - 1) - 50, l.y = 8, i.addChild(l), t.cards.push(l), (r = new ScaleButton(l,function(e) { Preloader.instance.postLoadComplete ? MenuManager.instance.show(MenuManager.instance.cardFaceMenu) : (MenuManager.instance.show(MenuManager.instance.loadingMenu), MenuManager.instance.loadingMenu.menuToShow = MenuManager.instance.cardFaceMenu) } ,i,l.x,l.y)).baseScale = l.scaleX, r.noScale = !0, t.animatedButtons.push(r), t.clickables.push(r) } return setReg(c = createSpriteFromSpritesheet("line1"), .5, .5, !0), i.addChild(c), c.y = 73, c.scaleY = .5, c.alpha = .5, setReg(o = createSpriteFromSpritesheet("cards2_back"), .5, .5, !0), i.addChild(o), o.x = 120, o.y = 10, o.scaleX = o.scaleY = .55, setReg(l = createSpriteFromSpritesheet("set1_back", 0), .5, .5, !0), l.scaleX = l.scaleY = .55, l.x = 120, l.y = 8, i.addChild(l), (r = new ScaleButton(l,function(e) { MenuManager.instance.show(MenuManager.instance.cardBackMenu) } ,i,l.x,l.y)).baseScale = l.scaleX, r.noScale = !0, t.animatedButtons.push(r), t.clickables.push(r), t.cardBack = l, setReg(o = createSpriteFromSpritesheet("cards3_back"), .5, .5, !0), i.addChild(o), o.x = 0, o.y = 143, o.scaleX = o.scaleY = 1, (r = new ScaleButton(o,function(e) { Preloader.instance.postLoadComplete ? MenuManager.instance.show(MenuManager.instance.gameBackMenu) : (MenuManager.instance.show(MenuManager.instance.loadingMenu), MenuManager.instance.loadingMenu.menuToShow = MenuManager.instance.gameBackMenu) } ,i,o.x,o.y)).baseScale = o.scaleX, r.noScale = !0, t.animatedButtons.push(r), t.clickables.push(r), t.backgound = createBitmap("back" + (SaveManager.instance.currentGameBack + 1)), t.backgound.scaleX = t.backgound.scaleY = .1, i.addChild(t.backgound), t.backgound.x = o.x, t.backgound.y = o.y - 1, setReg(t.backgound, .5, .5, !0), setReg(c = createSpriteFromSpritesheet("line1"), .5, .5, !0), i.addChild(c), c.y = 210, c.scaleY = .5, c.alpha = .5, (r = new ScaleButton(createSpriteFromSpritesheet("menu"),function(e) { t.menu() } ,i,-50,265)).baseScale = .8, t.animatedButtons.push(r), t.clickables.push(r), t.homeButton = r, (r = new ScaleButton(createSpriteFromSpritesheet("b_restart"),function(e) { t.restart() } ,i,50,265)).baseScale = .8, t.animatedButtons.push(r), t.clickables.push(r), t.restartButton = r, t } return __extends(t, e), t.prototype.menu = function() { BaseLevel.instance.isActivated ? ( /*window.game_uptap_analytics.trackEvent("EVENT_LEVELFAIL", { reason: "quit", levelName: BaseLevel.instance.levelName }),*/ SaveManager.instance.vegasEnabled && (SaveManager.instance.vegasComulative = BaseLevel.instance.vegasScore), SaveManager.instance.totalTime += BaseLevel.instance.gameTime, SaveManager.instance.save(), BaseLevel.instance.deactivate(), MenuManager.instance.show(MenuManager.instance.mainMenu)) : this.close() } , t.prototype.restart = function() { if (BaseLevel.instance.isActivated) { SaveManager.instance.vegasEnabled && (SaveManager.instance.vegasComulative = BaseLevel.instance.vegasScore), SaveManager.instance.totalTime += BaseLevel.instance.gameTime, SaveManager.instance.save(), BaseLevel.instance.deactivate(), MenuManager.instance.closeCurrent(), BaseLevel.instance.init(BaseLevel.instance.isChallenge, BaseLevel.instance.challengeSeed, BaseLevel.instance.challengeDate, !0); for (var e = 0; e < 3; ++e) App.game.update(null) } } , t.prototype.update = function(t) { e.prototype.update.call(this, t); var s = App.game.screenFactors.x , i = App.game.screenFactors.y , a = i > s , n = (s + i - 1) / 1; this.sprite.scaleX = this.sprite.scaleY = lerp(a ? 1.2 : .88, 1.6, n); var r = BaseLevel.instance.isActivated; this.cardButton.sprite.gotoAndStop(r ? "b_1-3_inactive" : SaveManager.instance.currentCardMode == SaveManager.CARD_MODE_1 ? "b_1-3_1" : "b_1-3_3"), this.handButton.sprite.gotoAndStop(SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_LEFT ? "b_L-R" : "b_R-L"), this.vegasButton.sprite.gotoAndStop(r ? "vegas_inactive" : SaveManager.instance.vegasEnabled ? "vegas" : "vegas_off"); for (var o = 0; o < this.cards.length; ++o) { var c = CardObject.getCardSpriteName(SaveManager.instance.currentCardSet % 4, [7, 11, 0][o]); this.cards[o].spriteSheet = App.game.atlases[getSpritesheetByName(c)], this.cards[o].gotoAndStop(c) } this.cardBack.gotoAndStop("set" + (SaveManager.instance.currentCardBack + 1) + "_back"); var h = App.game.preloader.loader.getResult("back" + (SaveManager.instance.currentGameBack + 1)); h || (h = App.game.preloader.postLoader.getResult("back" + (SaveManager.instance.currentGameBack + 1))), this.backgound.image = h, this.restartButton.sprite.visible = this.restartButton.isEnabled = r, this.homeButton.sprite.x = r ? -50 : 0, this.vegasButton.isEnabled = !r, this.cardButton.isEnabled = !r, this.grayBack.y = -this.mainContainer.y } , t.prototype.close = function() { MenuManager.instance.closeCurrent(), MenuManager.instance.mainMenu.isMenuActive ? (//window.game_uptap_analytics.trackScreen("SCREEN_HOME"), MenuManager.instance.current = MenuManager.instance.mainMenu) : //window.game_uptap_analytics.trackScreen("SCREEN_LEVEL", BaseLevel.instance.levelName), SaveManager.instance.save() } , t.prototype.show = function() { this.isMenuActive || (e.prototype.show.call(this), //window.game_uptap_analytics.trackScreen("SCREEN_SETTINGS"), this.update(0), createjs.Tween.removeTweens(this.grayBack), createjs.Tween.removeTweens(this.mainContainer), this.grayBack.alpha = 0, this.mainContainer.y = .75 * App.SCREEN_H, createjs.Tween.get(this.grayBack, { loop: !1 }).to({ alpha: .75 }, 300, createjs.Ease.linear), createjs.Tween.get(this.mainContainer, { loop: !1 }).wait(100).to({ y: 35 }, 900, createjs.Ease.elasticOut)) } , t.prototype.hide = function() { e.prototype.hide.call(this) } , t }(Menu) , StatisticsMenu = function(e) { function t() { var t = e.call(this) || this; t.icons = [], t.texts = []; var s = new createjs.Container; t.sprite = s; var i = new createjs.Container; s.addChild(i), s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H; var a = createSpriteFromSpritesheet("black_rect"); setReg(a, .5, .5, !0), a.scaleX = (App.SCREEN_W + 500) / 100, a.scaleY = (App.SCREEN_H + 500) / 100, a.alpha = .75, i.addChild(a); var n = createSpriteFromSpritesheet("menu_back"); i.addChild(n), setReg(n, .5, .5, !0), n.scaleX = 1, n.scaleY = 1; var r = new ScaleButton(createSpriteFromSpritesheet("close"),function(e) { t.close() } ,i,255,-177); t.animatedButtons.push(r), t.clickables.push(r); for (var o = ["stat_won", "stat_played", "stat_bestscore", "stat_movies", "stat_besttime", "stat_time"], c = 0; c < 6; ++c) { var h = c % 2 , l = Math.floor(c / 2) , d = createSpriteFromSpritesheet(o[c]); d.x = 0 == h ? -225 : 40, d.y = 115 * l - 100, setReg(d, .5, .5, !0), d.scaleX = d.scaleY = .65, i.addChild(d), t.icons.push(d); var p = new createjs.BitmapText("xxx",App.game.atlases[1]); p.letterSpacing = -3, t.texts.push(p), setReg(p, .5, .5, !0), i.addChild(p), p.x = d.x + 130, p.y = d.y, p.scaleX = p.scaleY = c >= 4 ? .4 : .5 } return t } return __extends(t, e), t.prototype.formatTime = function(e) { e = Math.round(e); var t = Math.floor(e / 3600); e -= 3600 * t; var s = Math.floor(e / 60); e -= 60 * s; var i = ""; return t > 0 && (i += t + ":"), i += (t > 0 && s < 10 ? "0" : "") + s + ":" + (e < 10 ? "0" : "") + e } , t.prototype.update = function(t) { e.prototype.update.call(this, t); var s = App.game.screenFactors.x , i = App.game.screenFactors.y , a = i > s , n = (s + i - 1) / 1; this.sprite.scaleX = this.sprite.scaleY = lerp(a ? 1 : .75, 1.4, n); for (var r = 0; r < this.icons.length; ++r) { var o = ""; o = 0 == r ? SaveManager.instance.winGamesCount.toString() : 1 == r ? SaveManager.instance.gamesCount.toString() : 2 == r ? SaveManager.instance.bestScore.toString() : 3 == r ? SaveManager.instance.leastMoves.toString() : 4 == r ? this.formatTime(SaveManager.instance.bestTime) : this.formatTime(SaveManager.instance.totalTime), this.texts[r].text = o, setReg(this.texts[r], .5, .5, !0) } } , t.prototype.close = function() { MenuManager.instance.closeCurrent(), MenuManager.instance.current = MenuManager.instance.mainMenu/*, window.game_uptap_analytics.trackScreen("SCREEN_HOME")*/ } , t.prototype.show = function() { this.isMenuActive || (e.prototype.show.call(this), // window.game_uptap_analytics.trackScreen("SCREEN_OTHER", "SCREEN_STATISTICS"), this.update(0)) } , t.prototype.hide = function() { e.prototype.hide.call(this) } , t }(Menu) , WinMenu = function(e) { function t() { var t = e.call(this) || this; t.currentScore = 0, t.scoreModeSprites = [], t.currentSound = 0; var s = new createjs.Container; t.sprite = s, t.winContainer = new createjs.Container, s.addChild(t.winContainer), t.winAnim = new AnimatedNode(AnimationManager.instance.getAnimation("win anim"),1 / 30,null), t.winAnim.x = 151, t.winAnim.y = 40, t.winContainer.addChild(t.winAnim), t.winAnim.addAction(t.winAnim.totalFrames - 1, ActionType.ACTION_STOP); var i = new createjs.Container; s.addChild(i), i.visible = !1, t.mainContainer = i, s.x = .5 * App.SCREEN_W, s.y = .5 * App.SCREEN_H - 40; var a = createSpriteFromSpritesheet("black_rect"); setReg(a, .5, .5, !0), a.scaleX = (App.SCREEN_W + 200) / 100, a.scaleY = (App.SCREEN_H + 200) / 100, a.alpha = .6, t.grayBack = a, i.addChild(a); var n, r = createSpriteFromSpritesheet("menu_back_big"); return i.addChild(r), setReg(r, .5, .5, !0), r.scaleX = .8, r.scaleY = .7, this.buttonRestart = new ScaleButton(createSpriteFromSpritesheet("b_restart"),function(e) { t.close() } ,i,65,215), this.buttonRestart.baseScale = 1, this.buttonRestart.sprite.visible = !1, t.animatedButtons.push(this.buttonRestart), this.buttonHome = new ScaleButton(createSpriteFromSpritesheet("menu"),function(e) { t.menu() } ,i,-65,215), this.buttonHome.sprite.visible = !1, t.animatedButtons.push(this.buttonHome), t.scoreIcon = createSpriteFromSpritesheet("score"), setReg(t.scoreIcon, .5, .5, !0), t.scoreIcon.scaleX = t.scoreIcon.scaleY = 1, i.addChild(t.scoreIcon), t.scoreIcon.x = -80, t.scoreIcon.y = -185, t.movesIcon = createSpriteFromSpritesheet("moves"), setReg(t.movesIcon, .5, .5, !0), t.movesIcon.scaleX = t.movesIcon.scaleY = t.scoreIcon.scaleX, i.addChild(t.movesIcon), t.movesIcon.x = -80, t.movesIcon.y = -55, t.timeIcon = createSpriteFromSpritesheet("time"), setReg(t.timeIcon, .5, .5, !0), t.timeIcon.scaleX = t.timeIcon.scaleY = t.scoreIcon.scaleX, i.addChild(t.timeIcon), t.timeIcon.x = -80, t.timeIcon.y = 75, (n = new createjs.BitmapText("$1-312",App.game.atlases[1])).letterSpacing = -3, t.scoreText = n, setReg(n, 0, .5, !0), i.addChild(t.scoreText), (n = new createjs.BitmapText("213",App.game.atlases[1])).letterSpacing = -3, t.movesText = n, setReg(n, 0, .5, !0), i.addChild(t.movesText), (n = new createjs.BitmapText("0:00",App.game.atlases[1])).letterSpacing = -8, t.timeText = n, setReg(n, 0, .5, !0), i.addChild(t.timeText), t } return __extends(t, e), t.prototype.showScores = function() {} , t.prototype.menu = function() { BaseLevel.instance.deactivate(), MenuManager.instance.show(MenuManager.instance.mainMenu) } , t.prototype.restart = function() { BaseLevel.instance.init(), MenuManager.instance.closeCurrent() } , t.prototype.update = function(t) { e.prototype.update.call(this, t); var s = App.game.screenFactors.x , i = (n = App.game.screenFactors.y) > s , a = (s + n - 1) / 1; this.winContainer.scaleX = this.winContainer.scaleY = lerp(i ? 1 : 1.2, 1.5, a), this.winAnim.visible = this.winAnim.isPlaying, this.winAnim.update(t), this.winAnim.visible || this.mainContainer.visible || this.showMenu(), this.scoreText.text = Math.round(this.currentScore).toString(), this.scoreText.x = this.scoreIcon.x + 135, this.scoreText.y = this.scoreIcon.y, this.scoreText.scaleX = this.scoreText.scaleY = .65, this.scoreText.visible = !0, setReg(this.scoreText, .5, .5, !0), this.scoreIcon.gotoAndStop(SaveManager.instance.vegasEnabled ? "score_vegas" : "score"), this.timeText.text = BaseLevel.instance.timeText, this.timeText.x = this.timeIcon.x + 135, this.timeText.y = this.timeIcon.y, setReg(this.timeText, .5, .5, !0), this.timeText.scaleX = this.timeText.scaleY = this.scoreText.scaleX, this.movesText.text = BaseLevel.instance.moves.toString(), this.movesText.x = this.movesIcon.x + 135, this.movesText.y = this.movesIcon.y, setReg(this.movesText, .5, .5, !0), this.movesText.scaleX = this.movesText.scaleY = this.scoreText.scaleX, this.grayBack.y = -this.mainContainer.y; var n; s = App.game.screenFactors.x, i = (n = App.game.screenFactors.y) > s, a = (s + n - 1) / 1; this.sprite.scaleX = this.sprite.scaleY = lerp(i ? 1 : .9, 1.6, a) } , t.prototype.close = function() { BaseLevel.instance.deactivate(), MenuManager.instance.closeCurrent(), BaseLevel.instance.init(BaseLevel.instance.isChallenge, BaseLevel.instance.challengeSeed, BaseLevel.instance.challengeDate); for (var e = 0; e < 3; ++e) App.game.update(null) } , t.prototype.show = function() { this.isMenuActive || (e.prototype.show.call(this), this.currentSound = 0, this.update(0), this.winAnim.gotoAndPlay(0), SaveManager.instance.save(), SoundsManager.instance.playSound("win"), this.mainContainer.visible = !1) } , t.prototype.showMenu = function() { // window.game_uptap_analytics.trackScreen("SCREEN_GAMERESULT"); var e = function() { this.buttonRestart.sprite.visible = !0, this.buttonHome.sprite.visible = !0, this.clickables.push(this.buttonHome), this.clickables.push(this.buttonRestart) }.bind(this) , t = SaveManager.instance.vegasEnabled ? BaseLevel.instance.vegasScore : BaseLevel.instance.usualScore; this.scoreText.text = t.toString(), setReg(this.scoreText, 0, .5); this.grayBack.alpha = 0, this.mainContainer.y = 1 * App.SCREEN_H, createjs.Tween.removeTweens(this.grayBack), createjs.Tween.removeTweens(this.mainContainer), createjs.Tween.get(this.grayBack, { loop: !1 }).wait(300).to({ alpha: .85 }, 300, createjs.Ease.linear), createjs.Tween.get(this.mainContainer, { loop: !1 }).wait(400).to({ y: 35 }, 900, createjs.Ease.elasticOut), createjs.Tween.removeTweens(this), this.currentScore = 0, createjs.Tween.get(this, { loop: !1 }).wait(600).to({ currentScore: t }, 1200, createjs.Ease.cubicOut).call(function() { setTimeout(function() { var obj = {type:2,score:BaseLevel.instance.game_uptapScore.score}; uptap.UpdataScore(obj); uptap.ShowScreenVideo("游戏结束",function(){ e(); }); //游戏结束 console.log("Gameover!"+BaseLevel.instance.levelName+"<-->"+BaseLevel.instance.game_uptapScore.score); //console.log("什么?"+BaseLevel.instance.game_uptapScore.score+"--->"+BaseLevel.instance.levelName+" --->" + BaseLevel.instance.usualScore) /* Promise.all([window.game_uptap_analytics.trackEvent("EVENT_LEVELSUCCESS", { levelName: BaseLevel.instance.levelName }), window.game_uptap_analytics.trackEvent("EVENT_LEVELSCORE", { levelScore: BaseLevel.instance.game_uptapScore.score, levelName: BaseLevel.instance.levelName })]).then(e, e) */ } .bind(this), 1500) } .bind(this)), this.mainContainer.visible = !0 } , t.prototype.playSound = function() { SoundsManager.instance.playSound("star_sound" + (this.currentSound + 1)), ++this.currentSound } , t.prototype.hide = function() { e.prototype.hide.call(this) } , t }(Menu) , ObjectPool = function() { return function() {} }() , CardObject = function(e) { function t(t, s, i) { var a = e.call(this) || this; return a.color = 0, a.type = 0, a.slot = null, a.isOnFront = !1, a.isHidden = !1, a.isSelected = !1, a.id = 0, a.timeSinceSelect = 0, a.posBeforeDrag = cjp(0, 0), a.isOnDrag = !1, a.dragStartPos = cjp(0, 0), a.isTweeningPos = !1, a.positionLockedByDrag = !1, a.tweenPosition = { x: 0, y: 0, rotation: 0, selectScale: 1, selectAlpha: 0 }, a.isFlipping = !1, a.flipParams = { skewX: 0, skewY: 0, scaleY: 1, scaleX: 1, shiftY: 0 }, a.isShowingFromDeck = !1, a.deckShowParams = { skewX: 0, skewY: 0, scaleY: 1, scaleX: 1, shiftY: 0 }, a.isOnWrongAnimation = !1, a.wrongAnimationParams = { shiftX: 0, shiftY: 0 }, a.lastTweenDelay = 0, a.tweenStarted = !1, a.posOnFlipStart = cjp(0, 0), a.hasDragParent = !1, a.lockZOder = !1, a.lockZOrderValue = 0, a.isOnWinAnimation = !1, a.startWinTweenIn = -1, a.winAnimationType = 0, a.winRotationSpeed = 0, a.deselectedCount = 0, a.id = i, a.color = t, a.type = s, a.sprite = new createjs.Container, a.level.tileLayer.addChild(a.sprite), a.mainSprite = createSpriteFromSpritesheet(a.spriteName), setReg(a.mainSprite, .5, .5, !0), a.sprite.addChild(a.mainSprite), a.selectSprite = createSpriteFromSpritesheet("select"), setReg(a.selectSprite, .5, .5, !0), a.sprite.addChild(a.selectSprite), a.selectSprite.alphaDelay = -.5, a.selectSprite.alpha = 0, a.hintSprite = createSpriteFromSpritesheet("White card"), setReg(a.hintSprite, .5, .5, !0), a.sprite.addChild(a.hintSprite), a.hintSprite.alpha = 0, a } return __extends(t, e), t.prototype.destroy = function() { e.prototype.destroy.call(this), createjs.Tween.removeTweens(this.tweenPosition), createjs.Tween.removeTweens(this.mainSprite), createjs.Tween.removeTweens(this), createjs.Tween.removeTweens(this.flipParams), createjs.Tween.removeTweens(this.deckShowParams), createjs.Tween.removeTweens(this.hintSprite) } , Object.defineProperty(t.prototype, "isOnScreen", { get: function() { var e = this.sprite.localToGlobal(0, 0); return e.x >= -t.SPRITE_SIZE.x && e.x <= App.SCREEN_W + t.SPRITE_SIZE.x && e.y >= App.CURRENT_SHIFT - t.SPRITE_SIZE.y && e.y <= App.SCREEN_H - App.CURRENT_SHIFT + t.SPRITE_SIZE.y }, enumerable: !0, configurable: !0 }), t.prototype.startWinAnimation = function(e, t) { if (!this.isOnWinAnimation) if (this.isOnWinAnimation = !0, this.winAnimationType = e, e == BaseLevel.WIN_ANIMATION_BEZIER) { var s = SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_RIGHT , i = s ? -1 : 1 , a = this.level.resultSlots.indexOf(this.slot); (!s && a <= 2 && Math.random() < .5 || s && a >= 1 && Math.random() < .75) && (i = -1), i *= lerp(160, 470 * i * (i > 0 ? 1 : 2 == a ? .45 : .7), Math.random()); var n = cjp(this.sprite.x, this.sprite.y) , r = cjp(n.x - i, n.y + 1.5 * App.SCREEN_H) , o = (lerp(200, 300, Math.random()), cjp(r.x, n.y)) , c = cjp(lerp(n.x, r.x, lerp(.35, .75, Math.random())), n.y); this.winBezier = new BezierData(n,c,o,r), this.winBezier.totalTime = lerp(3, 5, Math.random()) / 3, this.winBezier.delay = t / 1e3, this.winBezier.ease = BezierData.EASE_IN; createjs.Tween.get(this.mainSprite, { loop: !1 }).wait(t).to({ rotation: lerp(90, 0, Math.random()) * (i > 0 ? 1 : -1) }, 1e3 * this.winBezier.totalTime * 1, createjs.Ease.cubicIn) } else this.startWinTweenIn = t / 1e3, this.tweenPosition.x = this.sprite.x, this.tweenPosition.y = this.sprite.y, this.sprite.zLock = 1e6 - t } , t.prototype.startWinTween = function() { var e = this; if (this.isOnWinAnimation) if (this.tweenPosition.x = this.sprite.x, this.tweenPosition.y = this.sprite.y, this.tweenPosition.selectScale = 1, this.tweenPosition.selectAlpha = 0, this.winAnimationType == BaseLevel.WIN_ANIMATION_HELICOPTER) createjs.Tween.get(this, { loop: !1 }).to({ winRotationSpeed: lerp(900, 2e3, Math.random()) * (Math.random() < .5 ? 1 : -1) }, lerp(1e3, 2e3, Math.random()), createjs.Ease.quartIn).call(function() { var t = SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_RIGHT , s = cjp(0, 2.1 * App.SCREEN_W); rotatePoint(s, Math.random() < .8 ? lerp(0, t ? -90 : 90, Math.random()) : 360 * Math.random()); var i = lerp(1500, 2300, Math.random()); createjs.Tween.get(e.tweenPosition, { loop: !1 }).to({ x: e.tweenPosition.x + s.x, y: e.tweenPosition.y + s.y }, i, createjs.Ease.quartIn), createjs.Tween.get(e.mainSprite, { loop: !1 }).to({ scaleX: 2, scaleY: 2 }, i, createjs.Ease.quartIn) }); else if (this.winAnimationType == BaseLevel.WIN_ANIMATION_FLIP) for (var t = this.tweenPosition.x, s = this.tweenPosition.y, i = 1, a = 0, n = createjs.Tween.get(this.tweenPosition, { loop: !1 }), r = createjs.Tween.get(this.mainSprite, { loop: !1 }); s < this.sprite.y + 1.5 * App.SCREEN_H; ) { var o = lerp(100, 200, Math.random()) , c = t < 0 ? .35 : .65; i += .05, t += h = lerp(150, 250, Math.random()) * (Math.random() < c ? -1 : 1), s += o, a += lerp(-45, 45, Math.random()), n.to({ x: t, y: s, rotation: a }, 450, createjs.Ease.cubicOut).wait(250), r.to({ scaleX: 1.35 * i, scaleY: 1.35 * i }, 150, createjs.Ease.quadInOut).to({ scaleX: 1 * i, scaleY: 1 * i }, 200, createjs.Ease.quadInOut).wait(350) } else if (this.winAnimationType == BaseLevel.WIN_ANIMATION_FLIP2) { t = this.tweenPosition.x, s = this.tweenPosition.y, i = 1, a = 0; this.sprite.zLock = this.sprite.zOrder; for (n = createjs.Tween.get(this.tweenPosition, { loop: !1 }), r = createjs.Tween.get(this.mainSprite, { loop: !1 }); s < this.sprite.y + 1.5 * App.SCREEN_H; ) { o = lerp(100, 200, Math.random()), c = t < 0 ? .35 : .65; var h = lerp(150, 250, Math.random()) * (Math.random() < c ? -1 : 1) , l = lerp(300, 700, Math.random()) , d = lerp(100, 350, Math.random()); i += .05, t += h, s += o, a += lerp(-45, 45, Math.random()), n.to({ x: t, y: s, rotation: a }, l, createjs.Ease.cubicOut).wait(d), r.to({ scaleX: 1.35 * i, scaleY: 1.35 * i }, .33 * l, createjs.Ease.quadInOut).to({ scaleX: 1 * i, scaleY: 1 * i }, .44 * l, createjs.Ease.quadInOut).wait(d + .23 * l) } } } , t.prototype.skipWinAnimation = function() { this.isOnWinAnimation && (this.winBezier && (this.winBezier.delay = 0), this.startWinTweenIn > 0 && (this.startWinTweenIn = .01)) } , Object.defineProperty(t.prototype, "humanCode", { get: function() { return t.humanTypeNames[this.type] + t.humanColorNames[this.color] }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "solverCode", { get: function() { var e = (this.type + 1).toString(); return 1 == e.length && (e = "0" + e), e + t.solverColor[this.color].toString() }, enumerable: !0, configurable: !0 }), t.prototype.flip = function() { var e = this; if (!this.isFlipping) { SoundsManager.instance.playSound("deck_next", 0, .2), this.isFlipping = !0, this.setSpriteName(this.level.cardBackName); this.posOnFlipStart.x = this.sprite.x, this.posOnFlipStart.y = this.sprite.y, createjs.Tween.get(this.flipParams, { loop: !1 }).wait(65).to({ scaleX: .5, skewY: 45, shiftY: -30 }, 65, createjs.Ease.linear).call(function() { return e.test() }).to({ scaleX: .4, skewY: 90 }, 65, createjs.Ease.linear).call(function() { return e.changeCardImage() }).to({ scaleX: .5, skewY: 136 }, 65, createjs.Ease.linear).to({ scaleX: 1, skewY: 180, shiftY: 0 }, 65, createjs.Ease.linear).call(function() { return e.stopFlip() }), this.update(0) } } , t.prototype.test = function() {} , t.prototype.changeCardImage = function() { this.setSpriteName(this.spriteName), this.mainSprite.scaleX = -1 } , t.prototype.stopFlip = function() { this.isFlipping = !1, createjs.Tween.removeTweens(this.flipParams), this.flipParams.skewX = this.flipParams.skewX = 0, this.flipParams.scaleY = this.sprite.scaleX = 1, this.flipParams.shiftY = 0, this.sprite.scaleX = this.sprite.scaleY = 1, this.sprite.skewX = this.sprite.skewY = 0, this.mainSprite.scaleX = 1, this.mainSprite.y = 0 } , t.prototype.showFromDeck = function(e) { var t = this; if (void 0 === e && (e = 0), !this.isShowingFromDeck) { this.isShowingFromDeck = !0, this.setSpriteName(this.level.cardBackName), createjs.Tween.removeTweens(this.deckShowParams); this.posOnFlipStart.x = this.slot.sprite.x, this.posOnFlipStart.y = this.sprite.y, this.deckShowParams.scaleX = 1, this.deckShowParams.shiftY = 0, this.deckShowParams.skewX = this.deckShowParams.skewY = 0, createjs.Tween.get(this.deckShowParams, { loop: !1 }).wait(e).to({ scaleX: .5, skewY: 45, shiftY: -30 }, 65, createjs.Ease.linear).call(function() { return t.test() }).to({ scaleX: .4, skewY: 90 }, 65, createjs.Ease.linear).call(function() { return t.changeCardImage() }).to({ scaleX: .5, skewY: 136 }, 65, createjs.Ease.linear).to({ scaleX: 1, skewY: 180, shiftY: 0 }, 65, createjs.Ease.linear).call(function() { return t.stopShowFromDeck() }), this.update(0) } } , t.prototype.stopShowFromDeck = function() { this.isShowingFromDeck = !1, createjs.Tween.removeTweens(this.deckShowParams), this.deckShowParams.skewX = this.deckShowParams.skewX = 0, this.deckShowParams.scaleY = this.sprite.scaleX = 1, this.deckShowParams.shiftY = 0, this.mainSprite.scaleX = this.mainSprite.scaleY = 1, this.mainSprite.x = 0, this.mainSprite.scaleX = 1, setReg(this.mainSprite, .5, .5, !0), this.sprite.skewX = this.sprite.skewY = 0, this.mainSprite.y = 0 } , t.prototype.showWrongAnimation = function(e, t) { var s = this; if (void 0 === e && (e = 0), void 0 === t && (t = !0), !this.isOnWrongAnimation) { this.isOnWrongAnimation = !0, createjs.Tween.removeTweens(this.wrongAnimationParams); this.wrongAnimationParams.shiftY = this.wrongAnimationParams.shiftX = 0; for (var i = Math.random() < .5 ? 1 : -1, a = lerp(47, 58, Math.random()), n = createjs.Tween.get(this.wrongAnimationParams, { loop: !1 }).wait(e), r = 0; r < 10; ++r) n.to({ shiftX: (r % 2 == 0 ? -1 : 1) * i * (a - 2 * r) * .3 }, 40, createjs.Ease.quadInOut); if (n.to({ shiftX: 0 }, 40, createjs.Ease.quadInOut), n.call(function() { return s.stopWrongAnimation() }), this.update(0), this.slot instanceof TableCardSlot && t) for (r = this.slot.cards.indexOf(this) + 1; r < this.slot.cards.length; ++r) this.slot.cards[r].showWrongAnimation(e, !1) } } , t.prototype.stopWrongAnimation = function() { this.isOnWrongAnimation = !1, createjs.Tween.removeTweens(this.wrongAnimationParams), this.wrongAnimationParams.shiftY = this.wrongAnimationParams.shiftX = 0 } , t.prototype.startDrag = function(e, t) { this.isOnDrag || (this.isOnDrag = !0, SoundsManager.instance.playSound("start_drag", 0, .5, 275), this.posBeforeDrag.x = this.sprite.x, this.posBeforeDrag.y = this.sprite.y, this.dragStartPos = this.level.tileLayer.globalToLocal(e, t)) } , t.prototype.stopDrag = function() { this.isOnDrag && (this.isOnDrag = !1) } , t.prototype.onDrag = function(e, t) { if (this.isOnDrag) { var s = this.level.tileLayer.globalToLocal(e, t); if (this.sprite.x = this.posBeforeDrag.x + (s.x - this.dragStartPos.x), this.sprite.y = this.posBeforeDrag.y + (s.y - this.dragStartPos.y), this.sprite.zOrder = 9e5, this.slot instanceof TableCardSlot) for (var i = this.slot, a = i.cards.indexOf(this), n = a + 1; n < i.cards.length; ++n) if (r != this) { var r = i.cards[n]; r.positionLockedByDrag = !0, r.sprite.x = this.sprite.x, r.sprite.y = this.sprite.y - (a - n) * TableCardSlot.CARD_SHIFT_UNLOCKED, r.sprite.zOrder = this.sprite.zOrder - 100 * (a - n) } } } , t.prototype.load = function(e, t, s, i) { this.stopDrag(), this.stopFlip(), this.stopShowFromDeck(), this.isHidden = e, this.deselect(), this.isOnFront = t, this.slot = s, createjs.Tween.removeTweens(this.sprite), this.sprite.alpha = 1, Math.abs(i) > 1e-5 && (this.sprite.x = i) } , t.prototype.playHint = function() { if (this.sprite) { createjs.Tween.removeTweens(this.hintSprite); for (var e = createjs.Tween.get(this.hintSprite, { loop: !1 }), t = 0; t < 5; ++t) e.to({ alpha: 0 }, 175, createjs.Ease.quadOut).to({ alpha: .9 }, 200, createjs.Ease.quadIn); e.to({ alpha: 0 }, 175, createjs.Ease.quadInOut) } } , t.prototype.stopHint = function() { Math.abs(this.hintSprite.alpha) > 1e-5 && (createjs.Tween.removeTweens(this.hintSprite), this.hintSprite.alpha = 0) } , Object.defineProperty(t.prototype, "save", { get: function() { return [this.isOnFront, this.isHidden, this.id, this.isTweeningPos ? 0 : this.sprite.x] }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "isRed", { get: function() { return 1 == this.color || 2 == this.color }, enumerable: !0, configurable: !0 }), t.prototype.canPut = function(e) { return e.slot != this.slot && e.isRed != this.isRed && e.type == this.type - 1 } , t.prototype.setSpriteName = function(e) { var t = getAtlas(e); this.mainSprite.spriteSheet = App.game.atlases[t], this.mainSprite.gotoAndStop(e) } , t.prototype.update = function(t) { this.positionLockedByDrag = !1, e.prototype.update.call(this, t), this.isSelected ? this.deselectedCount = 0 : this.deselectedCount += t; var s = this.isOnFront ? this.spriteName : this.level.cardBackName; this.isFlipping || this.isShowingFromDeck || this.setSpriteName(s), this.isSelected && (this.timeSinceSelect += t); var i = this.slot instanceof TableCardSlot , a = i; if (this.hasDragParent = i, this.hintSprite.visible = Math.abs(this.hintSprite.alpha) > 1e-5, a) { a = !1; for (var n = (o = this.slot).cards.indexOf(this), r = 0; r < n; ++r) if (o.cards[r].isSelected) { a = !0; break } } if (this.hasDragParent) { this.hasDragParent = !1; var o; for (n = (o = this.slot).cards.indexOf(this), r = 0; r < n; ++r) if (o.cards[r].isOnDrag) { this.hasDragParent = !0; break } } if (this.isTweeningPos && (this.tweenStarted && (this.sprite.zOrder = 99e4), this.sprite.x = this.tweenPosition.x, this.sprite.y = this.tweenPosition.y, this.selectSprite.scaleX = this.selectSprite.scaleY = this.tweenPosition.selectScale, this.selectSprite.alpha = this.tweenPosition.selectAlpha), this.isOnWrongAnimation ? (this.mainSprite.x = this.wrongAnimationParams.shiftX, this.mainSprite.y = this.wrongAnimationParams.shiftY) : this.isShowingFromDeck || this.isFlipping || (this.mainSprite.x = 0, this.mainSprite.y = 0), this.isFlipping ? (this.sprite.scaleY = this.flipParams.scaleY, this.sprite.scaleX = this.flipParams.scaleX, this.sprite.skewX = this.flipParams.skewX, this.sprite.skewY = this.flipParams.skewY, this.mainSprite.y = this.flipParams.shiftY) : this.isShowingFromDeck || this.isOnWrongAnimation || (this.sprite.skewX = this.sprite.skewY = this.sprite.rotation = 0), this.isShowingFromDeck ? (this.sprite.scaleY = this.deckShowParams.scaleY, this.sprite.scaleX = this.deckShowParams.scaleX, this.sprite.skewX = this.deckShowParams.skewX, this.sprite.skewY = this.deckShowParams.skewY, this.mainSprite.y = this.deckShowParams.shiftY) : this.isFlipping || this.isOnWrongAnimation || (this.isFlipping || this.isShowingFromDeck || (this.mainSprite.scaleX = 1), this.sprite.skewX = this.sprite.skewY = this.sprite.rotation = 0), this.sprite.visible = !0, !this.isTweeningPos) { var c = this.isSelected || a; this.selectSprite.alphaDelay = limit(this.selectSprite.alphaDelay + 8 * t * (c ? 1 : -1), -.75, 1), this.selectSprite.alpha = limit(this.selectSprite.alphaDelay, 0, 1), this.selectSprite.scaleX = this.selectSprite.scaleY = 1 } if (this.hasDragParent && (this.positionLockedByDrag = !0), this.isTweeningPos && this.slot instanceof ResultCardSlot && this.tweenStarted && !this.lockZOder && (this.sprite.zOrder = 999999 + this.lastTweenDelay), this.isOnWinAnimation) { if (this.winBezier) { this.winBezier.update(t); var h = this.winBezier.getValue(); this.sprite.x = h.x, this.sprite.y = h.y } if (this.startWinTweenIn > 0 && (this.startWinTweenIn -= t, this.startWinTweenIn < 0 && this.startWinTween()), this.winAnimationType == BaseLevel.WIN_ANIMATION_HELICOPTER) { for (this.mainSprite.rotation += this.winRotationSpeed * t; this.mainSprite.rotation > 360; ) this.mainSprite.rotation -= 360; for (; this.mainSprite.rotation < -360; ) this.mainSprite.rotation += 360; this.sprite.x = this.tweenPosition.x, this.sprite.y = this.tweenPosition.y } this.winAnimationType != BaseLevel.WIN_ANIMATION_FLIP && this.winAnimationType != BaseLevel.WIN_ANIMATION_FLIP2 || (this.sprite.x = this.tweenPosition.x, this.sprite.y = this.tweenPosition.y, this.sprite.rotation = this.tweenPosition.rotation, void 0 != this.sprite.zLock && (this.sprite.zOrder = this.sprite.zLock)) } this.lockZOder && (this.sprite.zOrder = this.lockZOrderValue) } , t.prototype.tweenPos = function(e, s, i, a, n, r) { var o = this; if (void 0 === i && (i = 250), void 0 === a && (a = createjs.Ease.cubicInOut), void 0 === n && (n = 0), void 0 === r && (r = !1), !this.isTweeningPos) { this.lastTweenDelay = n, this.isTweeningPos = !0, this.tweenStarted = !1, this.hasDragParent && (this.lockZOder = !0, this.lockZOrderValue = this.sprite.zOrder), this.tweenPosition.x = this.sprite.x, this.tweenPosition.y = this.sprite.y, this.tweenPosition.selectScale = 1, this.tweenPosition.selectAlpha = 0, i *= .65, !(this.slot instanceof ResultCardSlot || this.slot instanceof DeckCardSlot) && t.timeSinceLastEndMoveSound > .3 && (SoundsManager.instance.playSound("end_move"), t.timeSinceLastEndMoveSound = 0), createjs.Tween.removeTweens(this.tweenPosition); var c = createjs.Tween.get(this.tweenPosition, { loop: !1 }).wait(n).call(function() { o.tweenStarted = !0 }).to({ x: e, y: s }, i, a); r && (c.to({ selectAlpha: 1 }, 1, a), c.to({ selectAlpha: .1, selectScale: 1.35 }, 450, createjs.Ease.cubicOut)), c.call(function() { o.isTweeningPos = !1, createjs.Tween.removeTweens(o.tweenPosition), o.lockZOder = !1, o.tweenPosition.selectScale = o.hintSprite.scaleX = o.hintSprite.scaleY = 1, o.tweenPosition.selectAlpha = o.hintSprite.alpha = 0 }) } } , Object.defineProperty(t.prototype, "positionChangeAllowed", { get: function() { return !(this.isOnDrag || this.positionLockedByDrag || this.isTweeningPos || this.hasDragParent) }, enumerable: !0, configurable: !0 }), t.prototype.checkClick = function(e, s, i) { var a = this.sprite.x , n = this.sprite.y , r = e >= a - .5 * t.SPRITE_SIZE.x && e <= a + .5 * t.SPRITE_SIZE.x , o = !1; return o = i ? s >= n - .5 * t.SPRITE_SIZE.y && s <= n - .5 * t.SPRITE_SIZE.y + TableCardSlot.CARD_SHIFT_UNLOCKED : s >= n - .5 * t.SPRITE_SIZE.y && s <= n + .5 * t.SPRITE_SIZE.y, r && o } , t.prototype.checkIntersection = function(e) { if (!e || !this.isOnDrag && !e.isOnDrag) return !1; var s = new createjs.Rectangle(this.sprite.x - .5 * t.SPRITE_SIZE.x,this.sprite.y - .5 * t.SPRITE_SIZE.y,t.SPRITE_SIZE.x,t.SPRITE_SIZE.y) , i = new createjs.Rectangle(e.sprite.x - .5 * t.SPRITE_SIZE.x,e.sprite.y - .5 * t.SPRITE_SIZE.y,t.SPRITE_SIZE.x,t.SPRITE_SIZE.y); return s.intersects(i) } , t.prototype.select = function(e) { void 0 === e && (e = !0), this.isSelected || (this.timeSinceSelect = 0, this.isSelected = !0, -1 == this.level.selectedCards.indexOf(this) && e && this.level.selectedCards.push(this), createjs.Tween.removeTweens(this.sprite), this.sprite.alpha = 1, this.level.stopHint(), this.level.cardClickCount++, this.deselectedCount > .3 && SoundsManager.instance.playSound("card_select", 0, .7)) } , t.prototype.deselect = function(e) { if (void 0 === e && (e = !0), this.isSelected) { for (this.isSelected = !1; -1 != this.level.selectedCards.indexOf(this); ) { var t = this.level.selectedCards.indexOf(this); this.level.selectedCards.splice(t, 1) } createjs.Tween.removeTweens(this.sprite), this.sprite.alpha = 1 } } , t.prototype.showFront = function(e) { this.isOnFront || (this.isOnFront = !0, e && this.flip()) } , t.prototype.showBack = function() { this.isOnFront = !1 } , t.prototype.hide = function() { this.isHidden = !0 } , t.prototype.show = function() { this.isHidden = !1 } , Object.defineProperty(t.prototype, "isMaxCard", { get: function() { return 12 == this.type }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "isMinCard", { get: function() { return 0 == this.type }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "spriteName", { get: function() { return t.getCardSpriteName(this.color, this.type) }, enumerable: !0, configurable: !0 }), t.getCardSpriteName = function(e, s, i) { return void 0 === i && (i = -1), i < 0 && (i = SaveManager.instance.currentCardSet), "set" + (i + 1) + "_" + t.colorNames[e] + "_" + t.typeNames[s] } , t }(GameObject); CardObject.colorNames = ["2", "4", "3", "1"], CardObject.solverColor = [1, 2, 3, 4], CardObject.typeNames = ["12", "00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "10", "11"], CardObject.humanTypeNames = ["A", "2", "3", "4", "5", "6", "7", "8", "9", "T", "J", "Q", "K"], CardObject.humanColorNames = ["C", "D", "H", "S"], CardObject.SPRITE_SIZE = cjp(111, 154), CardObject.COLOR_AMOUNT = 4, CardObject.TYPE_AMOUNT = 13, CardObject.timeSinceLastEndMoveSound = 0; var CardSlot = function() { function e() { this.cards = [], this.sprite = null, this.saves = [], this.hintSprite = createSpriteFromSpritesheet("White card"), setReg(this.hintSprite, .5, .5, !0), this.hintSprite.alpha = 0 } return Object.defineProperty(e.prototype, "isEmpty", { get: function() { return 0 == this.cards.length }, enumerable: !0, configurable: !0 }), Object.defineProperty(e.prototype, "humanCode", { get: function() { for (var e = "", t = 0; t < this.cards.length; ++t) e += this.cards[t].humanCode + " "; return e }, enumerable: !0, configurable: !0 }), e.prototype.save = function() { for (; this.saves.length > 1; ) this.saves.splice(0, 1); for (var e = [], t = 0; t < this.cards.length; ++t) e.push(this.cards[t].save); this.saves.push(e) } , e.prototype.needCheckResult = function(e) { return e == this.topCard } , e.prototype.load = function() { if (this.saves.length > 1) { this.cards.length = 0; for (var e = this.saves[this.saves.length - 2], t = 0; t < e.length; ++t) if (e[t]instanceof Array && !(e[t][0]instanceof CardObject) && e[t].length > 0) { var s = e[t] , i = s[2] , a = s[1] , n = s[0] , r = s[3] , o = BaseLevel.instance.cards[i]; o.load(a, n, this, r), this.cards.push(o) } this.saves.splice(this.saves.length - 1, 1) } } , e.prototype.playHint = function() { if (this.sprite) { createjs.Tween.removeTweens(this.hintSprite), this.hintSprite.gotoAndStop("White card"), this.hintSprite.scaleX = this.hintSprite.scaleY = 1; for (var e = createjs.Tween.get(this.hintSprite, { loop: !1 }), t = 0; t < 5; ++t) e.to({ alpha: 0 }, 175, createjs.Ease.quadOut).to({ alpha: .9 }, 200, createjs.Ease.quadIn); e.to({ alpha: 0 }, 175, createjs.Ease.quadInOut) } } , e.prototype.stopHint = function() { Math.abs(this.hintSprite.alpha) > 1e-5 && (createjs.Tween.removeTweens(this.hintSprite), this.hintSprite.alpha = 0) } , e.prototype.addCard = function(e, t, s) { e.slot != this && (e.slot && e.slot.removeCard(e), t && this.checkSpriteTweenOnAdd(e, 0, s), this.cards.push(e), e.slot = this) } , e.prototype.getPredictableCardPos = function() { return cjp(this.sprite.x, this.sprite.y) } , e.prototype.checkSpriteTweenOnAdd = function(e, t, s) { var i = this.getPredictableCardPos(); e.tweenPos(i.x, i.y + t, 250, createjs.Ease.cubicInOut, s, this instanceof ResultCardSlot) } , e.prototype.removeCard = function(e) { var t = this.cards.indexOf(e); -1 != t && (this.cards.splice(t, 1), e.slot = null) } , Object.defineProperty(e.prototype, "topCard", { get: function() { return 0 == this.cards.length ? null : this.cards[this.cards.length - 1] }, enumerable: !0, configurable: !0 }), e.prototype.update = function(e) { this.sprite && (this.sprite.x = this.position.x, this.sprite.y = this.position.y), this.hintSprite.visible = Math.abs(this.hintSprite.alpha) > 1e-5 && null != this.sprite, this.sprite && this.sprite.parent && (this.hintSprite.parent || this.sprite.parent.addChild(this.hintSprite), this.hintSprite.x = this.sprite.x, this.hintSprite.y = this.sprite.y, this.hintSprite.zOrder = this.sprite.zOrder + 1) } , e.prototype.reset = function() { for (var e = 0; e < this.cards.length; ++e) this.cards[e].destroy(); this.cards.length = 0, this.saves.length = 0, this.sprite && (this.sprite.alpha = 1, createjs.Tween.removeTweens(this.sprite)) } , Object.defineProperty(e.prototype, "isFull", { get: function() { return !1 }, enumerable: !0, configurable: !0 }), e.prototype.onLevelGenerated = function() {} , e.prototype.getClickCard = function(e, t) { return null } , e.prototype.canPut = function(e) { return !1 } , e.prototype.checkClick = function(e, t, s) { var i = this.position.x , a = this.position.y; return e >= i - .5 * CardObject.SPRITE_SIZE.x && e <= i + .5 * CardObject.SPRITE_SIZE.x && t >= a - .5 * CardObject.SPRITE_SIZE.y && t <= a + .5 * CardObject.SPRITE_SIZE.y || this.topCard && this.topCard.checkIntersection(s) || this.checkEmptyDragIntersetion(s) } , e.prototype.checkEmptyDragIntersetion = function(e) { if (!e || !e.isOnDrag || this.cards.length > 0 || e.slot == this) return !1; var t = new createjs.Rectangle(this.sprite.x - .5 * CardObject.SPRITE_SIZE.x,this.sprite.y - .5 * CardObject.SPRITE_SIZE.y,CardObject.SPRITE_SIZE.x,CardObject.SPRITE_SIZE.y) , s = new createjs.Rectangle(e.sprite.x - .5 * CardObject.SPRITE_SIZE.x,e.sprite.y - .5 * CardObject.SPRITE_SIZE.y,CardObject.SPRITE_SIZE.x,CardObject.SPRITE_SIZE.y); return t.intersects(s) } , e }() , DeckCardSlot = function(e) { function t() { var t = e.call(this) || this; return t.currentCard = -1, t.currentCards = [], t.timeSinceNextCard = 1e5, t.needEndHint = !0, t.position = cjp(210 - .5 * App.SCREEN_W, 150 - .5 * App.SCREEN_H), t.sprite = createSpriteFromSpritesheet(BaseLevel.instance.cardBackName), setReg(t.sprite, .5, .5, !0), BaseLevel.instance.tileLayer.addChild(t.sprite), t.sprite.zOrder = 10, t } return __extends(t, e), t.prototype.needCheckResult = function(t) { return e.prototype.needCheckResult.call(this, t) || -1 != this.currentCards.indexOf(t) } , t.prototype.save = function() { e.prototype.save.call(this), this.saves[this.saves.length - 1].push(this.currentCard), this.saves[this.saves.length - 1].push(this.currentCards.slice()) } , t.prototype.load = function() { if (this.saves.length > 1) { var t = this.saves[this.saves.length - 2]; this.currentCard = t[t.length - 2], this.currentCards = t[t.length - 1].slice(), e.prototype.load.call(this); for (var s = 0; s < this.currentCards.length; ++s) { var i = s; SaveManager.instance.currentCardMode == SaveManager.CARD_MODE_3 && (i = 2 - i), this.currentCards[s].sprite.x = this.position.x + (140 + 45 * i) * (SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_LEFT ? 1 : -1) } } } , t.prototype.removeCard = function(t) { e.prototype.removeCard.call(this, t), SaveManager.instance.currentCardMode == SaveManager.CARD_MODE_1 && (0 == this.currentCard ? (this.currentCard = -1, this.currentCards = []) : (this.currentCard--, this.currentCard < 0 && (this.currentCard = 0), this.cards.length > 0 && (this.currentCards = [this.cards[this.currentCard]]))) } , t.prototype.nextCard = function() { if (!(this.timeSinceNextCard < .1)) { for (var e = 0; e < this.currentCards.length; ++e) { var t = this.currentCards[e]; if (t.isFlipping || t.isShowingFromDeck) return } this.timeSinceNextCard = 0; var s = this.currentCard; BaseLevel.instance.cardClickCount++; for (e = 0; e < this.currentCards.length; ++e) this.currentCards[e].isSelected && this.currentCards[e].deselect(!1); 0 == this.cards.length ? this.currentCard = 0 : SoundsManager.instance.playSound("deck_next", 0, .2); var i = SaveManager.instance.currentCardMode; if (this.currentCard = this.currentCard < 0 ? 0 : this.currentCard + (i == SaveManager.CARD_MODE_1 ? 1 : 3), this.currentCard >= this.cards.length) { BaseLevel.instance.game_uptapScore.penaltyScore += BaseLevel.instance.game_uptapScore.penaltyScores.deckEnd, this.currentCard = -1; for (e = 0; e < this.cards.length; ++e) this.cards[e].sprite.x = this.position.x } if (i == SaveManager.CARD_MODE_3) for (e = 0; e < this.cards.length; ++e) this.cards[e].sprite.x = this.position.x; if (this.currentCards.length = 0, s != this.currentCard) { for (e = 0; e < this.cards.length; ++e) this.cards[e].isSelected && this.cards[e].deselect(); if (this.currentCard >= 0 && this.cards.length > 0) for (e = 0; e < (i == SaveManager.CARD_MODE_1 ? 1 : 3); ++e) { var a = this.currentCard + e , n = e; a >= this.cards.length || (i == SaveManager.CARD_MODE_3 && (n = 2 - n, SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_LEFT && (n = 2 - n)), this.cards[a].mainSprite.visible = !0, this.cards[a].tweenPos(this.position.x + (130 + 60 * n) * (SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_LEFT ? 1 : -1), this.position.y, 400, createjs.Ease.quadInOut, 100 * e), this.cards[a].showFromDeck(100 * e), this.currentCards.push(this.cards[a])) } } this.needEndHint && this.cards.length > (i == SaveManager.CARD_MODE_3 ? 3 : 1) && -1 != this.currentCards.indexOf(this.cards[this.cards.length - 1]) && (this.playHint(), this.needEndHint = !1, this.hintSprite.gotoAndStop("select"), this.hintSprite.scaleX = this.hintSprite.scaleY = .95) } } , Object.defineProperty(t.prototype, "isFull", { get: function() { return this.cards.length >= 24 }, enumerable: !0, configurable: !0 }), t.prototype.onLevelGenerated = function() { for (var e = 0; e < this.cards.length; ++e) { var t = this.cards[e]; t.hide(), t.showBack() } } , Object.defineProperty(t.prototype, "topCard", { get: function() { return 0 == this.cards.length || this.currentCard < 0 || this.currentCards.length <= 0 ? null : SaveManager.instance.currentCardMode == SaveManager.CARD_MODE_1 ? this.cards[this.currentCard] : this.currentCards[this.currentCards.length - 1] }, enumerable: !0, configurable: !0 }), t.prototype.addCard = function(t, s, i) { e.prototype.addCard.call(this, t, s, i), t.sprite.x = this.position.x } , t.prototype.update = function(t) { e.prototype.update.call(this, t), this.timeSinceNextCard += t; var s = SaveManager.instance.currentCardMode , i = 210 - .5 * App.SCREEN_W , a = 990 - .5 * App.SCREEN_W; for (this.position.x = SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_LEFT ? i : a; this.cards.length > 0 && this.currentCard >= this.cards.length; ) this.nextCard(); for (var n = 0; n < this.cards.length; ++n) { var r = this.cards[n] , o = -1 != this.currentCards.indexOf(r); if (r.positionChangeAllowed) { var c = Math.abs(r.sprite.x - i) < 5 || Math.abs(r.sprite.x - a) < 5 , h = Math.max(this.currentCards.indexOf(r), 0); s == SaveManager.CARD_MODE_3 && (h = 2 - h, SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_LEFT && (h = 2 - h)), r.sprite.x = this.position.x + (c ? 0 : (130 + 60 * h) * (SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_LEFT ? 1 : -1)), r.sprite.y = this.position.y + 0, r.sprite.zOrder = n >= this.currentCard && n < this.currentCard + (s == SaveManager.CARD_MODE_3 ? 3 : 1) ? 1e5 + 100 * (n - this.currentCard) * (SaveManager.instance.currentHandMode, SaveManager.HAND_MODE_LEFT, 1) : n, r.mainSprite.visible = r.isTweeningPos || Math.abs(r.sprite.x - this.position.x) > 10 || o } o ? r.show() : r.hide(), r.showFront(!1) } for (n = 0; n < this.currentCards.length; ++n) { (r = this.currentCards[n]).slot != this && (this.currentCards.splice(n, 1), n--) } s == SaveManager.CARD_MODE_1 && this.cards.length > 0 && this.currentCard < this.cards.length && 0 == this.currentCards.length && this.currentCard >= 0 && this.currentCards.push(this.cards[this.currentCard]), this.sprite.gotoAndStop(this.cards.length > 0 && this.currentCard != this.cards.length - 1 ? BaseLevel.instance.cardBackName : "table_card_back") } , t.prototype.getClickCard = function(e, t) { if (this.cards.length <= 0 || this.currentCard < 0 || 0 == this.currentCards.length) return null; for (var s = this.currentCards.length - 1; s >= this.currentCards.length - 1; --s) { var i = this.currentCards[s]; if (i.isOnFront && !i.isHidden && i.checkClick(e, t, !1)) return i } return null } , t.prototype.reset = function() { e.prototype.reset.call(this), this.currentCards.length = 0, this.currentCard = -1, this.timeSinceNextCard = 1e5 } , t }(CardSlot) , TableCardSlot = function(e) { function t(t) { var s = e.call(this) || this; return s.id = 0, s.position = cjp(210 + 130 * t - .5 * App.SCREEN_W, -275), s.id = t, s.sprite = createSpriteFromSpritesheet("table_card_back"), setReg(s.sprite, .5, .5, !0), BaseLevel.instance.tileLayer.addChild(s.sprite), s.sprite.zOrder = -100, s } return __extends(t, e), t.prototype.addCard = function(s, i, a) { if (s.slot) { var n = s.slot , r = 0; if (n instanceof t) for (var o = s.slot.cards.indexOf(s); n.cards.length > o; ) { var c = n.cards[o]; this.checkSpriteTweenOnAdd(c, 0, a), n.removeCard(c), this.cards.push(c), c.slot = this, c.isTweeningPos && (c.lockZOder = !0, c.sprite.zOrder = c.lockZOrderValue = 999999 + 100 * r, !1), ++r } else s.slot.removeCard(s), this.checkSpriteTweenOnAdd(s, r * t.CARD_SHIFT_UNLOCKED, a), this.cards.push(s), s.slot = this; i && this.checkSpriteTweenOnAdd(s, r * t.CARD_SHIFT_UNLOCKED, a) } else e.prototype.addCard.call(this, s, i, a); this.update(0) } , t.prototype.update = function(s) { e.prototype.update.call(this, s); for (var i = 0, a = 0; a < this.cards.length; ++a) { var n = this.cards[a]; !n.positionChangeAllowed || n.hasDragParent || n.positionLockedByDrag || n.lockZOder || (n.sprite.x = this.position.x, n.sprite.y = this.position.y + i, n.sprite.zOrder = 1e3 * this.id + 10 * a), n.isOnFront ? i += t.CARD_SHIFT_UNLOCKED : i += t.CARD_SHIFT_HIDDEN } } , t.prototype.getPredictableCardPos = function() { if (0 == this.cards.length) return e.prototype.getPredictableCardPos.call(this); for (var s = 0, i = 0; i < this.cards.length; ++i) { this.cards[i].isOnFront ? s += t.CARD_SHIFT_UNLOCKED : s += t.CARD_SHIFT_HIDDEN } return cjp(this.sprite.x, this.position.y + s) } , t.prototype.removeCard = function(t) { e.prototype.removeCard.call(this, t), BaseLevel.instance.cardsOpenedTemp = BaseLevel.instance.cardsOpened, this.cards.length > 0 && !this.cards[this.cards.length - 1].isOnFront && (this.cards[this.cards.length - 1].showFront(!0), BaseLevel.instance.cardsOpened++) } , Object.defineProperty(t.prototype, "isFull", { get: function() { return this.cards.length >= this.id + 1 }, enumerable: !0, configurable: !0 }), t.prototype.onLevelGenerated = function() { for (var e = 0; e < this.cards.length; ++e) { var t = this.cards[e]; t.show(), e == this.cards.length - 1 ? t.showFront(!1) : t.showBack() } } , t.prototype.getClickCard = function(e, t) { if (this.cards.length <= 0) return null; this.cardsOpenedTemp = this.cardsOpened; BaseLevel.instance.selectedCards.length; for (var s = 0; s < this.cards.length; ++s) { var i = this.cards[s]; if (i.isOnFront && !i.isHidden && i.checkClick(e, t, s != this.cards.length - 1)) return i } return null } , t.prototype.canPut = function(e) { return 0 == this.cards.length && e.isMaxCard || this.topCard && this.topCard.canPut(e) } , t.prototype.checkClick = function(t, s, i) { return !!this.getClickCard(t, s) || e.prototype.checkClick.call(this, t, s, i) } , t }(CardSlot); TableCardSlot.CARD_SHIFT_HIDDEN = 15, TableCardSlot.CARD_SHIFT_UNLOCKED = 35; var ResultCardSlot = function(e) { function t(t) { var s = e.call(this) || this; return s.id = 0, s.timeSinceSoundPlay = 0, s.id = t, s.position = cjp(210 + 130 * (3 + t) - .5 * App.SCREEN_W, 150 - .5 * App.SCREEN_H), s.sprite = createSpriteFromSpritesheet("result" + s.id), setReg(s.sprite, .5, .5, !0), BaseLevel.instance.tileLayer.addChild(s.sprite), s.sprite.zOrder = 10 * s.id, s } return __extends(t, e), t.prototype.addCard = function(t, s, i) { e.prototype.addCard.call(this, t, s, i), this.timeSinceSoundPlay > .25 && (SoundsManager.instance.playSound("put_result", 0, .6), this.timeSinceSoundPlay = 0) } , Object.defineProperty(t.prototype, "cardColor", { get: function() { return 0 == this.cards.length ? -1 : this.cards[0].color }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "isFull", { get: function() { return !0 }, enumerable: !0, configurable: !0 }), t.prototype.canPut = function(e) { return 0 == this.cards.length && e.isMinCard || this.cardColor == e.color && this.cards.length > 0 && this.cards[this.cards.length - 1].type + 1 == e.type && (e.slot.needCheckResult(e) || BaseLevel.instance.isFinishing) } , t.prototype.update = function(t) { e.prototype.update.call(this, t), this.timeSinceSoundPlay += t, this.position.x = SaveManager.instance.currentHandMode == SaveManager.HAND_MODE_LEFT ? 210 + 130 * (3 + this.id) - .5 * App.SCREEN_W : 210 + 130 * (0 + this.id) - .5 * App.SCREEN_W; for (var s = 0; s < this.cards.length; ++s) { var i = this.cards[s]; i.positionChangeAllowed && (i.sprite.x = this.position.x, i.sprite.y = this.position.y, i.sprite.zOrder = 1e3 * this.id + 10 * i.type + 1, i.sprite.visible = !0, i.mainSprite.visible = !0), s == this.cards.length - 1 ? i.show() : i.hide() } } , t.prototype.getClickCard = function(e, t) { if (this.cards.length <= 0) return null; var s = this.cards[this.cards.length - 1]; return s.isOnFront && !s.isHidden && s.checkClick(e, t, !1) ? s : null } , t }(CardSlot) , DESIGN_FPS = 60 , ANIM_SCALE = 1.475 , needMoreGames = false , needMusic = !0; function getInt(e) { return Math.floor(1e6 * Math.random()) % e } function distanceBetweenPoints(e, t, s, i) { return Math.sqrt((e - s) * (e - s) + (t - i) * (t - i)) } function getDistanceF(e, t, s, i) { return Math.sqrt((e - s) * (e - s) + (t - i) * (t - i)) } function getDistanceP(e, t) { return getDistanceF(e.x, e.y, t.x, t.y) } function getPointLength(e) { return getDistanceF(0, 0, e.x, e.y) } function seededRandom(e, t) { return 0 + t / 233280 * (e - 0) } function removeClip(e) { e && e.parent && e.parent.removeChild(e) } function isMobile() { var e = navigator.userAgent || navigator.vendor; return /(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|android|ipad|playbook|silk|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e) || /1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0, 4)) } function cjp(e, t) { return new createjs.Point(e,t) } function createSpriteFromSpritesheet(e, t) { if (void 0 === t && (t = 0), !App.game.atlases[t].getAnimation(e)) { for (var s = !1, i = App.game.atlases.length, a = 0; a < i; ++a) if (App.game.atlases[a] && App.game.atlases[a].getAnimation(e)) { s = !0, t = a; break } if (!s) return null } var n = new createjs.Sprite(App.game.atlases[t],e); return n.gotoAndStop(e), n.framerate = 30, n } function getAtlas(e) { for (var t = App.game.atlases.length, s = 0; s < t; ++s) if (App.game.atlases[s] && App.game.atlases[s].getAnimation(e)) return s; return 0 } function getSpritesheetByName(e) { for (var t = App.game.atlases.length, s = 0; s < t; ++s) if (App.game.atlases[s] && App.game.atlases[s].getAnimation(e)) return s; return 0 } function safeTrackEvent(e, t) {} function addChild(e, t) { t.addChild(e) } function createBitmap(e) { var t = App.game.preloader.loader.getResult(e); return !t && App.game.preloader.postLoader && (t = App.game.preloader.postLoader.getResult(e)), new createjs.Bitmap(t) } function setReg(e, t, s, i) { void 0 === t && (t = .5), void 0 === s && (s = .5), void 0 === i && (i = !0), e.regX = (i ? e.getBounds().width : 1) * t, e.regY = (i ? e.getBounds().height : 1) * s, i && (e.regX = Math.round(e.regX), e.regY = Math.round(e.regY)) } function sqr(e) { return e * e } function dist2(e, t, s, i) { return sqr(e - s) + sqr(t - i) } function distToSegmentSquared(e, t, s) { var i = dist2(e.x, e.y, s.x, s.y); if (0 == i) return dist2(e.x, e.y, t.x, t.y); var a = ((e.x - t.x) * (s.x - t.x) + (e.y - t.y) * (s.y - t.y)) / i; return a < 0 ? dist2(e.x, e.y, t.x, t.y) : a > 1 ? dist2(e.x, e.y, s.x, s.y) : dist2(e.x, e.y, t.x + a * (s.x - t.x), t.y + a * (s.y - t.y)) } function distToSegment(e, t, s) { return Math.sqrt(distToSegmentSquared(e, t, s)) } function limitDt(e) { return e } function limit(e, t, s) { return e < t && (e = t), e > s && (e = s), e } function lerp(e, t, s) { return e + s * (t - e) } function lerpAngle(e, t, s) { return Math.abs(t - e) > 180 && (t > e ? e += 360 : t += 360), normalizeAngle(e + (t - e) * s) } var DEG_TO_RAD = Math.PI / 180; function angleBetween(e, t, s, i) { return Math.atan2(i - t, s - e) } function normalizeAngle(e, t, s) { for (void 0 === t && (t = 0), void 0 === s && (s = 360); e > s; ) e -= 360; for (; e < t; ) e += 360; return e } function sign(e) { return e > 0 ? 1 : -1 } function rotatePoint(e, t) { t *= Math.PI / 180; var s = Math.sin(t) , i = Math.cos(t) , a = e.x * i - e.y * s , n = e.x * s + e.y * i; e.x = a, e.y = n } function solveEquation(e, t, s, i, a, n) { var r = testPoint; return r.x = (s * a - t * n) / (e * a - t * i), r.y = (e * n - s * i) / (e * a - t * i), r } function createAnimation(e, t, s, i, a, n, r, o, c, h) { void 0 === n && (n = 1), void 0 === r && (r = null), void 0 === o && (o = 0), void 0 === c && (c = 1), void 0 === h && (h = 4); for (var l = [], d = i; d <= a; d += c) { for (var p = "", u = h + (d <= 9 ? -1 : -2), m = 0; m < u; m++) p += "0"; var g = e.animations[s + p + d][0]; if (void 0 != g && null != g && !isNaN(g)) for (u = 1 + (d == a ? o : 0), m = 0; m < u; ++m) l.push(g) } e.animations[t] = { frames: l, next: r || t, speed: n } } function linePoint(e, t, s, i) { i.x = e.x + s * (t.x - e.x), i.y = e.y + s * (t.y - e.y) } function createFontFrames(e) { for (var t = "abcdefghijklmnopqrstuvwxyz1234567890!-./:%@,.", s = 0; s < t.length; ++s) { var i = t.charCodeAt(s) , a = t.charAt(s) , n = a.toUpperCase().charCodeAt(0) , r = e.animations[i.toString()] , o = e.animations[n.toString()] , c = r || o; c && (e.animations[a.toLowerCase()] = e.animations[a.toUpperCase()] = c) } } function createFont(e, t, s) { var i = e.split("\n") , a = i[0] , n = t.animations[a][0] , r = t.frames[n] , o = r[0] , c = r[1]; for (s *= 1, n = 1; n < i.length - 1; ++n) { var h = i[n].split(" ") , l = parseInt(h[1].split("=")[1]) , d = parseInt(h[2].split("=")[1]) , p = parseInt(h[3].split("=")[1]) , u = parseInt(h[4].split("=")[1]) , m = h[7].split("=")[1]; (isNaN(l) || isNaN(d) || isNaN(p) || isNaN(u) || void 0 == m) && game_uptap.log("Font error! " + i[n]), r = [o + l, c + d, p, u, 0, 0, .5 * -(s - u), p, .5 * (u + s)], t.frames.push(r), t.animations[m.toLowerCase()] = t.animations[m.toUpperCase()] = [t.frames.length - 1] } } var spriteSheetInfo, textSize = new createjs.Point; function getTextSize(e) { for (var t = e.text.length, s = e.letterSpacing, i = 0, a = 0, n = 0; n < t; ++n) { var r = e.text.charAt(n) , o = e._getFrame(r, e.spriteSheet); " " == r ? i += e.spaceWidth : (a = Math.max(a, o.rect.height), i += o.rect.width + (0 == n ? 0 : s)) } return textSize.x = i, textSize.y = a, textSize } function getSegmentsDistance(e, t, s, i, a, n, r, o) { if (segmentsIntersect(e, t, s, i, a, n, r, o)) return 0; var c = 1e10; return c = Math.min(c, pointSegmentDistance(e, t, a, n, r, o)), c = Math.min(c, pointSegmentDistance(s, i, a, n, r, o)), c = Math.min(c, pointSegmentDistance(a, n, e, t, s, i)), c = Math.min(c, pointSegmentDistance(r, o, e, t, s, i)) } function segmentsIntersect(e, t, s, i, a, n, r, o) { var c = s - e , h = i - t , l = r - a , d = o - n , p = l * h - d * c; if (0 == p) return !1; var u = (c * (n - t) + h * (e - a)) / p , m = (l * (t - n) + d * (a - e)) / -p; return 0 <= u && u <= 1 && 0 <= m && m <= 1 } function hypot(e, t) { return Math.sqrt(e * e + t * t) } function pointSegmentDistance(e, t, s, i, a, n) { var r = a - s , o = n - i; if (r == o && 0 == o) return hypot(e - s, t - i); var c = ((e - s) * r + (t - i) * o) / (r * r + o * o); if (c < 0) r = e - s, o = t - i; else if (c > 1) r = e - a, o = t - n; else { r = e - (s + c * r), o = t - (i + c * o) } return hypot(r, o) } function segmentDistToPoint(e, t, s, i, a, n) { var r = s - e , o = i - t , c = ((a - e) * r + (n - t) * o) / (r * r + o * o); c > 1 ? c = 1 : c < 0 && (c = 0); var h = e + c * r - a , l = t + c * o - n; return Math.sqrt(h * h + l * l) } var jellyAnimation = [[0, 0, 1, 1, 0, 0], [.024999999999997247, -1.15, .9915771484375, 1.0256500244140625, 0, 0], [.05000000000000293, -3.700000000000004, .97265625, 1.083343505859375, 0, 0], [.12499999999999867, -6.200000000000005, .9544219970703125, 1.1389007568359375, 0, 0], [.10000000000000009, -7.300000000000006, .946807861328125, 1.162109375, 0, 0], [.10000000000000009, -7.300000000000006, .946807861328125, 1.162109375, 0, 0], [.05000000000000293, -6.0749999999999975, .9620361328125, 1.1312408447265625, 0, 0], [5.773159728050814e-15, -3.275, .9962615966796875, 1.061798095703125, 0, 0], [.024999999999997247, -.6249999999999942, 1.02923583984375, .994903564453125, 0, 0], [.05000000000000293, .5249999999999972, 1.042999267578125, .9669952392578125, 0, 0], [.07500000000000151, -1.1250000000000013, 1.01068115234375, 1.00726318359375, 0, 0], [.14999999999999725, -2.3750000000000013, .9874267578125, 1.0362396240234375, 0, 0], [.12499999999999867, -2.8750000000000013, .977996826171875, 1.0479736328125, 0, 0], [.12499999999999867, -1.199999999999997, .9898681640625, 1.018829345703125, 0, 0], [.10000000000000009, -.12499999999999423, .9973602294921875, 1.00042724609375, 0, 0], [.10000000000000009, .17499999999999583, 1, .993988037109375, 0, 0], [.05000000000000293, .025000000000004352, 1, .9984588623046875, 0, 0], [-1.3322676295501878e-15, -1.3322676295501878e-15, 1, 1, 0, 0], [.05000000000000293, .049999999999995826, 1, 1, 0, 0], [1.7749999999999972, .07500000000000151, 1, 1.0004982491681325, .7527414880487653, 0], [5.825000000000001, .025000000000004352, 1, 1.001664350237178, 2.5152581429922156, 0], [9.274999999999997, .049999999999995826, 1, 1.0026699631071858, 4.031232289654886, 0], [10.700000000000001, .049999999999995826, 1, 1.0032807863162294, 4.644965767715552, 0], [8.274999999999997, .05000000000000293, 1, 1.0027891286212487, 3.539021537307087, 0], [1.8749999999999987, .049999999999995826, 1, 1.0021068045460955, .7807179428891375, 0], [-1.3750000000000013, .05000000000000293, 1, 1.0012419476751582, -1.5640586784195598, 0], [-2.0499999999999985, .049999999999995826, 1, 1.0010724593956364, -2.6542661529803153, 0], [-1.5499999999999985, .049999999999995826, 1, 1.000676433996075, -1.8001100161352006, 0], [-.5000000000000013, .049999999999995826, 1, 1.0002103088230885, -.5280555851120258, 0], [.05000000000000293, .049999999999995826, 1, 1, 0, 0], [.05000000000000293, .049999999999995826, 1, 1, 0, 0], [.14999999999999725, -.44999999999999707, .9672088623046875, 1.0127410888671875, 0, 0], [.17499999999999583, -1.1250000000000013, .9302825927734375, 1.0271148681640625, 0, 0], [.2500000000000058, -1.5499999999999985, .9080352783203125, 1.0357666015625, 0, 0], [.24999999999999867, -1.65, .9017333984375, 1.0382080078125, 0, 0], [.14999999999999725, -.7500000000000013, .929656982421875, 1.016571044921875, 0, 0], [.05000000000000293, 2.0750000000000015, 1.009918212890625, .954345703125, 0, 0], [-.1750000000000056, 5.124999999999998, 1.09759521484375, .886383056640625, 0, 0], [-.02499999999999991, 3.2749999999999972, 1.0360107421875, .9274749755859375, 0, 0], [.10000000000000009, 1.4249999999999958, .9744415283203125, .9685516357421875, 0, 0], [.24999999999999867, -.37500000000000133, .9128570556640625, 1.0096435546875, 0, 0], [.14999999999999725, .8250000000000015, .9672088623046875, .9827728271484375, 0, 0], [-1.3322676295501878e-15, 2.049999999999996, 1.021575927734375, .9558868408203125, 0, 0], [-.10000000000000275, 3.2499999999999987, 1.075927734375, .92901611328125, 0, 0], [.049999999999995826, .5750000000000015, 1.0054473876953125, .9878997802734375, 0, 0], [.2000000000000015, -2.074999999999997, .934967041015625, 1.0467987060546875, 0, 0], [.14999999999999725, -1.0000000000000013, .9674835205078125, 1.0233917236328125, 0, 0], [.05000000000000293, .049999999999995826, 1, 1, 0, 0]] , animationLen = jellyAnimation.length , infectionAnimation = [[-5.45, 6.7, .2093048095703125, .2093048095703125, -90], [-12.85, -7.1, .4721621818247029, .5332973252041089, -57.44282531738281], [-20.25, -20.9, .7355242093689353, .8577964765204296, -24.838973999023438], [-27.65, -34.7, .9999897640140254, 1.1836297829182174, 7.5378265380859375], [-29.8, -30.3, .9997831778700582, 1.091577771078232, 3.756561279296875], [-32, -26, 1, 1, 0], [-32, -26, 1, 1, 0], [-31.95, -26.05, 1.001846819647027, .9969487508448114, .057708740234375], [-31.9, -26.1, 1.0037219319230408, .9939256842776457, .3033599853515625], [-31.85, -26.15, 1.0055697779975414, .9908747767757754, .5490264892578125], [-31.85, -26.2, 1.0074057139272234, .98782676126546, .7937774658203125], [-31.8, -26.25, 1.009260075153359, .9847809776560529, 1.03851318359375], [-31.75, -26.25, 1.0111181887786254, .981722437701235, 1.2840728759765625], [-31.7, -26.35, 1.0129799411806937, .978711727711441, 1.52960205078125], [-31.6, -26.4, 1.0147996763132587, .9756423241316923, 1.775054931640625], [-31.55, -26.4, 1.0166537591403784, .972604648004515, 2.0204620361328125], [-31.55, -26.5, 1.018527030226445, .969568985028705, 2.2657928466796875], [-31.5, -26.55, 1.02037384999685, .9665041568291709, 2.5110321044921875], [-31.5, -26.6, 1.022209578352633, .9634709293721622, 2.757049560546875], [-31.45, -26.65, 1.024064004784086, .9604241542910443, 3.001220703125], [-31.4, -26.7, 1.025936951191221, .9574041839347995, 3.0587615966796875], [-31.35, -26.75, 1.0279747939691337, .9545372097207427, 3.46746826171875], [-31.45, -26.75, 1.0259217141446704, .9574033696144164, 3.0587615966796875], [-31.45, -26.7, 1.0240495659921491, .9604241542910443, 3.0020904541015625], [-31.5, -26.7, 1.0221790960924766, .9634564220383081, 2.757049560546875], [-31.5, -26.6, 1.02035860586198, .9664895813186706, 2.5110321044921875], [-31.6, -26.5, 1.0185282372097, .9695390946743678, 2.2675323486328125], [-31.6, -26.45, 1.016638509837502, .9725893986997568, 2.0204620361328125], [-31.65, -26.45, 1.0147853705911112, .9756113485562844, 1.7768096923828125], [-31.75, -26.4, 1.0129341811242665, .9786816284141395, 1.52960205078125], [-31.75, -26.3, 1.0111032758935554, .9817071827452236, 1.2849578857421875], [-31.8, -26.25, 1.009229839316147, .9847962339375539, 1.0393829345703125], [-31.85, -26.2, 1.0073904566036784, .9878420185897583, .7937774658203125], [-31.85, -26.2, 1.0055545199079683, .9908747767757754, .5490264892578125], [-31.95, -26.15, 1.0037067541893363, .99391050663846, .3042449951171875], [-32, -26.1, 1.001831576320605, .9969334920635343, .0585784912109375], [-32, -26, 1, 1, 0], []] , tempArrays = {}; function getArray(e) { var t = tempArrays[e]; return t.length = 0, t } var testPoint = new createjs.Point; function getPoint(e, t) { return testPoint.x = e, testPoint.y = t, testPoint } var testPoint2 = new createjs.Point; function getPoint2(e, t) { return testPoint2.x = e, testPoint2.y = t, testPoint2 } function crossProduct(e, t) { return e.x * t.y - t.x * e.y } function isPointRightOfLine(e, t, s) { return crossProduct(getPoint(t.x - e.x, t.y - e.y), getPoint2(s.x - e.x, s.y - e.y)) < 0 } function isPointOnLine(e, t, s) { var i = crossProduct(getPoint(t.x - e.x, t.y - e.y), getPoint2(s.x - e.x, s.y - e.y)); return Math.abs(i) < 1e-6 } function lineSegmentTouchesOrCrossesLine(e, t, s, i) { if (isPointOnLine(e, t, s) || isPointOnLine(e, t, i)) return !0; var a = 0; return isPointRightOfLine(e, t, s) && a++, isPointRightOfLine(e, t, i) && a++, 1 == a } function getIntervalIntersection(e, t, s, i) { return e <= s && t >= s || e >= s && e <= i } function doLinesIntersect(e, t, s, i) { var a = e.x , n = e.y , r = t.x , o = t.y , c = s.x , h = s.y , l = i.x , d = i.y , p = (a - r) * (h - d) - (n - o) * (c - l); if (0 == p) return !1; var u = ((c - l) * (a * o - n * r) - (a - r) * (c * d - h * l)) / p; getPoint(u, ((h - d) * (a * o - n * r) - (n - o) * (c * d - h * l)) / p); return !(u < Math.min(a, r) || u > Math.max(a, r)) && !(u < Math.min(c, l) || u > Math.max(c, l)) } var BaseLevel = function(e) { function t() { var s = e.call(this) || this; s.levelName = "", s.restarted = !1, s.isEnded = !1, s.score = 0, s.game_uptapScore = {}, s.objects = [], s.hudLayer = new createjs.Container, s.isPressed = !1, s.backLayer = new createjs.Container, s.tileLayer = new createjs.Container, s.effectLayer = new createjs.Container, s.effectLayer2 = new createjs.Container, s.levelTime = 0, s.downPos = new createjs.Point, s.movePos = new createjs.Point, s.prevLayerX = 0, s.isActivated = !1, s.hasMouseDownAfterActivation = !1, s.isGenerating = !1, s.backId = 0, s.isLost = !1, s.isInititalizing = !1, s.tableSlots = [], s.resultSlots = [], s.slots = [], s.selectedCards = [], s.cards = [], s.needSave = !1, s.timeSinceMouseDown = 0, s.lastClickCard = null, s.totalMoveSinceLastDown = 0, s.prevMousePos = cjp(0, 0), s.timeSinceLastSave = 0, s.cardsOpened = 0, s.cardsOpenedTemp = 0, s.moves = 0, s.gameTime = 0, s.isFirstSave = !0, s.canUndo = !1, s.timeSinceLastEmptyClick = 0, s.cardClickCount = 0, s.emptyClickCount = 0, s.isChallenge = !1, s.challengeSeed = -1, s.challengeDate = null, s.isFinishing = !1, s.winAnimationStarted = !1, s.winSkipCount = 0, s.needResetZPos = !1, s.lastNonWinScore = 0, s.eventFired = !1, t.instance = s, App.level = s, s.hud = new Hud, s.deck = new DeckCardSlot, s.slots.push(s.deck); for (var i = 0; i < 4; ++i) a = new ResultCardSlot(i), s.slots.push(a), s.resultSlots.push(a); for (i = 0; i < 7; ++i) { var a = new TableCardSlot(i); s.slots.push(a), s.tableSlots.push(a) } return s } return __extends(t, e), t.prototype.onResult = function() { if (this.gameTime > 0) { SaveManager.instance.vegasComulative = this.vegasScore; var e = this.isFinished; if (e) { SaveManager.instance.vegasEnabled ? (this.game_uptapScore.score = this.vegasScore, SaveManager.instance.vegasComulative = this.game_uptapScore.score) : (this.game_uptapScore.score = this.usualScore, this.game_uptapScore.score += Math.max(this.game_uptapScore.timeScore - 10 * this.gameTime, 1234), this.game_uptapScore.score = Math.round(this.game_uptapScore.score)), SaveManager.instance.winGamesCount++, SaveManager.instance.bestTime = SaveManager.instance.bestTime > 0 ? Math.min(this.gameTime, SaveManager.instance.bestTime) : this.gameTime; var t = 0 == SaveManager.instance.leastMoves ? 1e10 : SaveManager.instance.leastMoves; SaveManager.instance.leastMoves = Math.min(this.moves, t), SaveManager.instance.vegasEnabled || (SaveManager.instance.bestScore = Math.max(this.game_uptapScore.score, SaveManager.instance.bestScore)), this.isChallenge && SaveManager.instance.tryAddChallenge(this.challengeDate) } SaveManager.instance.totalTime += this.gameTime, SaveManager.instance.save() } } , Object.defineProperty(t.prototype, "isCompleted", { get: function() { return !1 }, enumerable: !0, configurable: !0 }), t.prototype.deactivate = function() { this.isActivated && (this.isActivated = !1, this.reset()) } , t.prototype.startWinAnimation = function() { if (!this.winAnimationStarted) { this.winAnimationStarted = !0, SoundsManager.instance.playSound("win_anim_start"); var e = getInt(4) , s = 1500 , i = 10; if (e == t.WIN_ANIMATION_BEZIER || e == t.WIN_ANIMATION_HELICOPTER || e == t.WIN_ANIMATION_FLIP2) for (var a = 0; a < CardObject.TYPE_AMOUNT; ++a) for (var n = 0; n < CardObject.COLOR_AMOUNT; ++n) { (o = (r = this.resultSlots[n]).cards.splice(r.cards.length - 1)[0]).startWinAnimation(e, i), o.slot = null, o.sprite.zOrder = 1e6 - i, i += s = Math.max(s - 250, 150) } else if (e == t.WIN_ANIMATION_FLIP) { s = 0; for (a = 0; a < CardObject.TYPE_AMOUNT; ++a) { for (n = 0; n < CardObject.COLOR_AMOUNT; ++n) { var r, o; (o = (r = this.resultSlots[n]).cards.splice(r.cards.length - 1)[0]).startWinAnimation(e, i), o.slot = null, o.sprite.zOrder = 1e6 - i } i += 700 } } } } , t.prototype.stepBack = function() { if (!this.isFinished && !this.winAnimationStarted && this.canUndo) { this.game_uptapScore.penaltyScore += this.game_uptapScore.penaltyScores.undo;/*, window.game_uptap_analytics.trackEvent("EVENT_CUSTOM", { event: "EVENT_UNDO" });*/ for (var e = 0; e < this.slots.length; ++e) this.slots[e].load(); this.selectedCards.length = 0, this.canUndo = !1, this.cardsOpened = this.cardsOpenedTemp, this.moves++, SoundsManager.instance.playSound("undo"), this.update(0) } } , Object.defineProperty(t.prototype, "vegasScore", { get: function() { if (this.winAnimationStarted) return this.game_uptapScore.score || this.lastNonWinScore; for (var e = SaveManager.instance.vegasComulative, t = 0; t < this.resultSlots.length; ++t) e += 5 * this.resultSlots[t].cards.length; return e -= this.game_uptapScore.penaltyScore, this.lastNonWinScore = e, e }, enumerable: !0, configurable: !0 }), Object.defineProperty(t.prototype, "usualScore", { get: function() { if (this.winAnimationStarted) return this.game_uptapScore.score || this.lastNonWinScore; if (!this.deck) return 0; for (var e = 0, t = 0; t < this.resultSlots.length; ++t) e += 10 * this.resultSlots[t].cards.length; return e += 5 * (24 - this.deck.cards.length), e += 5 * this.cardsOpened, e -= this.game_uptapScore.penaltyScore, this.lastNonWinScore = e, Math.max(0, e) }, enumerable: !0, configurable: !0 }), t.prototype.getSolverCode = function() { for (var e = "", t = 0; t < 20; ++t) for (var s = 0; s < this.tableSlots.length; ++s) t < this.tableSlots[s].cards.length && (e += this.tableSlots[s].cards[t].solverCode); for (s = 0; s < this.deck.cards.length; ++s) e += this.deck.cards[s].solverCode; return e } , t.prototype.generate = function() { /*window.game_uptap_analytics.trackEvent(this.restarted ? "EVENT_LEVELRESTART" : "EVENT_LEVELSTART", { levelName: this.levelName }),*/ this.needSave = !1; for (var e = 0; e < this.slots.length; ++e) this.slots[e].reset(); for (e = 0; e < this.objects.length; ++e) this.objects[e].isDestroyed || this.objects[e].destroy(); var t = []; this.cards = []; for (var s = 0, i = 0; i < CardObject.COLOR_AMOUNT; ++i) for (var a = 0; a < CardObject.TYPE_AMOUNT; ++a) { var n = new CardObject(i,a,s); this.cards.push(n), t.push(n), ++s } for (var r = this.isChallenge ? this.challengeSeed >= 0 ? this.challengeSeed : MenuManager.instance.calendarMenu.getChallengeSeed() : getInt(1e6); t.length > 0; ) { e = Math.floor(seededRandom(1e3, r)) % t.length; r = (9301 * r + 49297) % 233280, (n = t.splice(e, 1)[0]).color; for (var o = 0; o < this.slots.length; ++o) if (!this.slots[o].isFull) { this.slots[o].addCard(n, !1, 0); break } n.slot || game_uptap.log("error"), this.objects.push(n) } for (e = 0; e < this.slots.length; ++e) this.slots[e].onLevelGenerated(); this.needSave = !0; this.getSolverCode(), this.deck.humanCode } , t.prototype.restart = function() { this.reset(), this.init(), MenuManager.instance.show(MenuManager.instance.mainMenu) } , t.prototype.resize = function(e, t) { var s = t > e , i = (e + t - 1) / 1; this.tileLayer.scaleX = this.tileLayer.scaleY = lerp(s ? .7 : .76, 1.2, i), this.tileLayer.y = .5 * App.SCREEN_H + lerp(s ? -110 : 140, 165, i) } , t.prototype.initBackgrounds = function(e) { void 0 === e && (e = !1), this.backLayer.removeAllChildren(), this.backLayer.parent || this.addChild(this.backLayer), this.needStaticBackround = !0; var t = createBitmap("back1"); t.scaleX = t.scaleY = App.SCREEN_H / 800, this.backLayer.addChild(t), this.gameBack = t, this.destroyObjects(), this.parent || App.game.stage.addChildAt(this, 0) } , Object.defineProperty(t.prototype, "cardBackName", { get: function() { return "set" + (SaveManager.instance.currentCardBack + 1) + "_back" }, enumerable: !0, configurable: !0 }), t.prototype.init = function(e, t, s, i) { this.eventFired = !1, void 0 === e && (e = !1), void 0 === t && (t = -1), void 0 === s && (s = null), this.restarted = !!i, this.isChallenge = e, this.challengeSeed = t, this.challengeDate = s, SaveManager.instance.vegasEnabled && (SaveManager.instance.vegasComulative -= 52), this.levelName = (SaveManager.instance.vegasEnabled ? "vegas_" : "") + (this.isChallenge ? "challenge_" + (this.challengeSeed || "null") : ""), this.isInititalizing = !0, this.winAnimationStarted = !1, this.canUndo = !1, this.isFirstSave = !0, this.isLost = !1, this.score = 0, SaveManager.instance.vegasEnabled ? this.game_uptapScore = { score: 0, timeScore: 9999, penaltyScore: 0, penaltyScores: { hint: 5, undo: 5, deckEnd: 5, autoComplete: 5 } } : this.game_uptapScore = { score: 0, timeScore: 9999, penaltyScore: 0, penaltyScores: { hint: 5, undo: 10, deckEnd: 15, autoComplete: 5 } }, this.winSkipCount = 0, this.cardsOpened = this.cardsOpenedTemp = this.moves = this.gameTime = 0; var a = (new Date).getTime() / 1e3; (new Date).getTime(); this.initBackgrounds(), this.addChild(this.hudLayer), this.addChild(this.tileLayer), this.tileLayer.x = .5 * App.SCREEN_W, this.tileLayer.y = .5 * App.SCREEN_H, this.tileLayer.scaleX = this.tileLayer.scaleY = 1, this.addChild(this.effectLayer), this.addChild(this.effectLayer2), this.generate(), this.isActivated = !1, this.levelTime = 0, SoundsManager.instance.reset(), this.isEnded = !1, this.isPressed = !1, this.score = 0, this.prevLayerX = 0, this.hud.show(), this.activateLevel(), this.isInititalizing = !1, SaveManager.instance.gamesCount++, this.update(0) } , t.prototype.activateLevel = function() { this.isActivated = !0, this.hasMouseDownAfterActivation = !1, this.timeSinceLastSave = 0 } , t.prototype.destroyObjects = function() { for (var e = this.objects.length, t = 0; t < e; ++t) this.objects[t].destroy(); this.objects.length = 0 } , Object.defineProperty(t.prototype, "hasSelectedCards", { get: function() { for (var e = 0; e < this.cards.length; ++e) if (this.cards[e].isSelected) return !0; return !1 }, enumerable: !0, configurable: !0 }), t.prototype.onMouseUp = function(e, t) { if (!MenuManager.instance.current) { if (this.isActivated && (this.hud.onDown(e, t), !this.hud.hasClick(e, t))) { if (this.isPressed) { this.isPressed = !1; var s = this.tileLayer.globalToLocal(e, t); if (e = s.x, t = s.y, this.deck.checkClick(e, t, null)) { ad_nums++ if(ad_nums > 5) { ad_nums = 0; console.log("翻拍12new"); uptap.ShowScreenVideo("翻牌",function(){}); } for (this.deck.nextCard(); this.selectedCards.length > 0; ) this.selectedCards[0].deselect(); return this.needSave = !this.deck.isEmpty, this.emptyClickCount = 0, void (this.lastClickCard && (this.lastClickCard.stopDrag(), this.lastClickCard = null)) } if (1 == this.selectedCards.length) { var i = this.selectedCards[0]; if (i.isTweeningPos) return; var a = i.isOnDrag; if (a) { for (var n = 0; n < this.slots.length; ++n) if (this.slots[n].checkClick(e, t, i) && this.slots[n].canPut(i)) return this.slots[n].addCard(i, !0, 0), this.needSave = !0, i.deselect(), i.stopDrag(), i == this.lastClickCard && (this.lastClickCard = null), void (this.emptyClickCount = 0) } else for (n = 0; n < this.slots.length; ++n) if (this.slots[n].canPut(i) && (!(i.slot instanceof TableCardSlot && this.slots[n]instanceof TableCardSlot && i.slot.cards[0] == i && this.slots[n].isEmpty) || n < this.slots.indexOf(i.slot)) && !(i.slot instanceof ResultCardSlot && this.slots[n]instanceof ResultCardSlot)) return this.slots[n].addCard(i, !0, 0), this.needSave = !0, i.deselect(), i.stopDrag(), i == this.lastClickCard && (this.lastClickCard = null), void (this.emptyClickCount = 0); i.deselect(), a || i.showWrongAnimation() } } if (0 == this.cardClickCount && this.timeSinceMouseDown < .2) { if (++this.emptyClickCount, this.winAnimationStarted) { if (0 == this.winSkipCount) for (n = 0; n < this.cards.length; ++n) this.cards[n].skipWinAnimation(); else this.showWinMenu(); ++this.winSkipCount } } else this.emptyClickCount = 0; 2 == this.emptyClickCount && (this.emptyClickCount = 0, this.autoComplete()), this.lastClickCard && (this.lastClickCard.stopDrag(), this.lastClickCard = null) } } } , t.prototype.showWinMenu = function() { MenuManager.instance.winMenu.isMenuActive || MenuManager.instance.show(MenuManager.instance.winMenu) } , t.prototype.onMouseMove = function(e, t) { if (!MenuManager.instance.current && !this.hud.hasClick(e, t) && this.lastClickCard && this.isPressed) { this.totalMoveSinceLastDown += Math.abs(e - this.prevMousePos.x) + Math.abs(t - this.prevMousePos.y), this.prevMousePos.x = e, this.prevMousePos.y = t; var s = this.totalMoveSinceLastDown > (this.selectedCards.length > 0 && this.selectedCards[0] != this.lastClickCard && this.lastClickCard.slot.canPut(this.selectedCards[0]) ? 100 : 20); s && this.selectedCards.length > 0 && this.selectedCards[0] != this.lastClickCard && (this.selectedCards[0].deselect(), this.selectedCards.splice(0, 1)), s && !this.lastClickCard.isOnDrag && (this.lastClickCard.startDrag(e, t), this.lastClickCard.select(!0)), this.lastClickCard.isOnDrag && this.lastClickCard.onDrag(e, t) } } , t.prototype.onMouseDown = function(e, t) { MenuManager.instance.current || (this.prevMousePos.x = e, this.prevMousePos.y = t, this.totalMoveSinceLastDown = 0, this.cardClickCount = 0, this.isActivated && (this.timeSinceMouseDown > .4 && (this.emptyClickCount = 0), this.hud.hasClick(e, t) || (this.lastClickCard && (this.lastClickCard.stopDrag(), this.lastClickCard = null), this.hasMouseDownAfterActivation = !0, this.timeSinceMouseDown = 0, this.isPressed = !0, this.downPos.x = this.movePos.x = e, this.downPos.y = this.movePos.y = t, this.trySelectCard(e, t, !0)))) } , t.prototype.trySelectCard = function(e, t, s) { var i = this.tileLayer.globalToLocal(e, t); e = i.x, t = i.y; for (var a = this.hasSelectedCards, n = s && a, r = 0; r < this.slots.length; ++r) { var o = this.slots[r].getClickCard(e, t); if (o && !o.isTweeningPos) { if (s && (this.lastClickCard = o), o.isSelected || n ? o.timeSinceSelect < .2 && a && this.selectedCards[0] == o ? this.tryPutCardOnResult(o) : n || (o.timeSinceSelect = 0) : o.select(), n) continue; if (o.isSelected && 2 == this.selectedCards.length) { var c = this.selectedCards[0]; o.deselect(), c.deselect(), o.canPut(c) ? (o.slot.addCard(c, !0, 0), this.needSave = !0) : o.select() } break } } } , t.prototype.tryPutCardOnResult = function(e, t) { void 0 === t && (t = 0); for (var s = 0; s < this.resultSlots.length; ++s) { var i = this.resultSlots[s]; if (i.canPut(e)) return e.deselect(), i.addCard(e, !0, t), e.isOnFront || e.showFront(!1), this.needSave = !0, !0 } return !1 } , Object.defineProperty(t.prototype, "isFinished", { get: function() { if (this.winAnimationStarted) return !0; for (var e = 0; e < this.resultSlots.length; ++e) if (13 != this.resultSlots[e].cards.length) return !1; for (e = 0; e < this.cards.length; ++e) if (this.cards[e].isTweeningPos) return !1; return !0 }, enumerable: !0, configurable: !0 }), t.prototype.autoComplete = function(e) { var t = !1 , s = 0; if (void 0 === e && (e = !1), !this.isFinished && !this.winAnimationStarted) { (e = e || this.canFinish) && (this.isFinishing = !0); for (var i = 0, a = 0; a < CardObject.TYPE_AMOUNT; ++a) for (var n = this.cards.length, r = 0; r < n; ++r) { var o = this.cards[r]; (o.isOnFront && !o.isFlipping && o == o.slot.topCard || e) && o.type == a && !(o.slot instanceof ResultCardSlot) && this.tryPutCardOnResult(o, i * (e ? 50 : 130)) && (t || (SaveManager.instance.vegasEnabled || (this.game_uptapScore.penaltyScore += this.game_uptapScore.penaltyScores.autoComplete), /*window.game_uptap_analytics.trackEvent("EVENT_CUSTOM", { event: "EVENT_AUTOCOMPLETE" }),*/ t = !0), s++, ++i) } this.moves += Math.max(0, s - 1), this.isFinishing = !1 } } , Object.defineProperty(t.prototype, "canFinish", { get: function() { for (var e = 0; e < this.tableSlots.length; ++e) for (var t = this.tableSlots[e], s = 0; s < t.cards.length; ++s) if (!t.cards[s].isOnFront) return !1; return !0 }, enumerable: !0, configurable: !0 }), t.prototype.stopHint = function() { for (var e = 0; e < this.slots.length; ++e) this.slots[e].stopHint(); for (e = 0; e < this.cards.length; ++e) this.cards[e].stopHint() } , Object.defineProperty(t.prototype, "timeText", { get: function() { var e = Math.floor(this.gameTime / 60) , t = Math.floor(this.gameTime - 60 * e); return e + ":" + (t < 10 ? "0" : "") + t }, enumerable: !0, configurable: !0 }), t.prototype.update = function(e) { var t = App.game.preloader.loader.getResult("back" + (SaveManager.instance.currentGameBack + 1)); if (t || (t = App.game.preloader.postLoader.getResult("back" + (SaveManager.instance.currentGameBack + 1))), this.gameBack.image = t, this.tileLayer.visible = this.hudLayer.visible = this.isActivated, this.isActivated || 0 == e) { if (CardObject.timeSinceLastEndMoveSound += e, e > 0 && !SaveManager.instance.vegasEnabled && (SaveManager.instance.vegasComulative = 0), this.needSave) { for (var s = 0; s < this.slots.length; ++s) this.slots[s].save(); this.timeSinceLastSave = 0, this.needSave = !1, this.isFirstSave ? this.isFirstSave = !1 : (++this.moves, this.canUndo = !0), this.stopHint() } this.timeSinceLastSave += e, this.timeSinceMouseDown += e; for (s = 0; s < this.slots.length; ++s) this.slots[s].update(e); for (s = 0; s < this.objects.length; ++s) { var i = this.objects[s]; i && !i.isDestroyed ? i.update(e) : (this.objects.splice(s, 1), s--) } this.needResetZPos = !this.winAnimationStarted && !this.isFinished; for (s = 0; s < this.cards.length; ++s) this.cards[s].isTweeningPos && (this.needResetZPos = !1); if (this.needResetZPos) for (s = 0; s < this.cards.length; ++s) this.cards[s].lockZOder = !1, this.cards[s].lockZOrderValue = 0; if ((this.moves > 0 || this.gameTime > .5) && !this.winAnimationStarted && (this.gameTime += e), this.hud.update(e), this.resize(App.game.screenFactors.x, App.game.screenFactors.y), this.tileLayer.sortChildren(function(e, t) { return (e.zOrder ? e.zOrder : 0) - (t.zOrder ? t.zOrder : 0) }), this.isCompleted && !MenuManager.instance.winMenu.isMenuActive && MenuManager.instance.show(MenuManager.instance.winMenu), (MenuManager.instance.mainMenu.isMenuActive || MenuManager.instance.current == MenuManager.instance.mainMenu) && game_uptap.log("bug"), this.isFinished && (this.eventFired || (this.eventFired = !0, this.onResult()), this.startWinAnimation()), this.winAnimationStarted && !MenuManager.instance.winMenu.isMenuActive) { var a = !0; for (s = 0; s < this.cards.length; ++s) if (this.cards[s].isOnScreen) { a = !1; break } a && this.showWinMenu() } } } , t.prototype.reset = function() { this.uncache(), this.isFirstSave = !0, this.canUndo = !1, this.winAnimationStarted = !1, this.winSkipCount = 0, this.cardsOpened = this.moves = this.gameTime = 0, this.selectedCards.length = 0; for (var e = this.objects.length, t = 0; t < e; ++t) this.objects[t].destroy(); this.objects.length = 0, this.hud.reset(); for (t = 0; t < this.getNumChildren(); ++t) { var s = this.getChildAt(t); if (s && s != this.hudLayer && s != this.backLayer && s != this.tileLayer) for (var i = 0; i < s.getNumChildren(); ++i) removeClip(s.getChildAt(i)) } this.x = this.y = 0, this.isFinishing = !1 } , Object.defineProperty(t.prototype, "canAutocomplete", { get: function() { if (!this.deck.isEmpty) return !1; for (var e = 0; e < this.tableSlots.length; ++e) for (var t = this.tableSlots[e], s = 0; s < t.cards.length; ++s) { if (t.cards[s].isHidden) return !1 } return !0 }, enumerable: !0, configurable: !0 }), t.prototype.showHint = function() { if (!this.isFinished && !this.winAnimationStarted) { var e = !1; this.timeSinceLastSave = 0; for (var t = [], s = 0; s < this.tableSlots.length; ++s) t.push(this.tableSlots[s]); t.push(this.deck); var i = []; for (s = 0; s < this.tableSlots.length; ++s) i.push(this.tableSlots[s]); for (s = 0; s < this.resultSlots.length; ++s) i.push(this.resultSlots[s]); if (!e) for (s = 0; s < t.length; ++s) { if ((d = (l = t[s]).topCard) && d.isMinCard) { d.playHint(), this.resultSlots[d.color].playHint(), e = !0, /*window.game_uptap_analytics.trackEvent("EVENT_CUSTOM", { event: "EVENT_HINT" }),*/ (this.usualScore > 0 || SaveManager.instance.vegasEnabled) && (this.game_uptapScore.penaltyScore += this.game_uptapScore.penaltyScores.hint); break } } if (!e) for (s = 0; s < this.tableSlots.length; ++s) { for (var a = (u = this.tableSlots[s]).topCard, n = 0; n < this.tableSlots.length; ++n) { var r = this.tableSlots[n]; if (!(u.isEmpty && !r.isEmpty && r.cards[0].isMaxCard && !r.cards[0].isHidden || r.isEmpty && !u.isEmpty && u.cards[0].isMaxCard && !u.cards[0].isHidden)) { if (u != r) for (var o = 0; o < r.cards.length; ++o) { var c = r.cards[o]; if (c.isOnFront && !c.isHidden) { if (a && a.canPut(c) || !a && u.canPut(c)) { a ? a.playHint() : u.playHint(), c.playHint(), e = !0; break } break } } if (e) break } } if (e) break } if (!e && this.deck.currentCard >= 0 && this.deck.currentCards.length > 0) { var h = this.deck.topCard; if (h) for (s = 0; s < i.length; ++s) { var l, d = (l = i[s]).topCard; if (l.canPut(h)) { h.playHint(), l.topCard ? l.topCard.playHint() : l.playHint(), e = !0; break } } } if (!e) for (s = 0; s < this.tableSlots.length; ++s) { if (d = (u = this.tableSlots[s]).topCard) { var p = 1 == u.cards.length; if (!p) u.cards[u.cards.length - 2].isHidden && (p = !0); if (p) for (n = 0; n < this.resultSlots.length; ++n) if ((l = this.resultSlots[n]).canPut(d)) { d.playHint(), l.topCard ? l.topCard.playHint() : l.playHint(), e = !0; break } } if (e) break } if (!e) for (s = 0; s < this.tableSlots.length; ++s) { var u; if (d = (u = this.tableSlots[s]).topCard) for (n = 0; n < this.resultSlots.length; ++n) if ((l = this.resultSlots[n]).canPut(d)) { d.playHint(), l.topCard ? l.topCard.playHint() : l.playHint(), e = !0; break } if (e) break } e || this.deck.cards.length > (this.deck.topCard ? 0 : 1) && (this.deck.playHint(), e = !0), e && SoundsManager.instance.playSound("hint") } } , t }(createjs.Container); BaseLevel.WIN_ANIMATION_BEZIER = 0, BaseLevel.WIN_ANIMATION_HELICOPTER = 1, BaseLevel.WIN_ANIMATION_FLIP = 2, BaseLevel.WIN_ANIMATION_FLIP2 = 3; var ActionType, App = function() { function e() { var t = this; this.atlases = [], this.musicPlayed = !1, this.gameTime = 0, this.isMouseDown = !1, this.isVisible = !0, this.visibilityState = null, this.isPlayingOnMobile = !1, this.isPaused = !1, this.isHidden = !1, this.lastShiftX = 0, this.screenFactors = cjp(0, 0), this.realScreenSize = cjp(e.SCREEN_W, e.SCREEN_H), this.prevSizes = cjp(0, 0), this.resizesLeft = 3, this.canvasScale = 1, this.dontCheckMenuClick = !1, e.game = this, this.isPlayingOnMobile = isMobile(), window.top != window && (document.getElementById("header").style.display = "none"); try { if (-1 != navigator.appVersion.indexOf("Win")) document.getElementsByTagName("body")[0].style.overflow = "hidden" } catch (e) {} this.stage = new createjs.Stage("canvas"), createjs.Touch.enable(this.stage, !0), this.levelManager = new SaveManager, this.preloader = new Preloader, setTimeout(function() { window.scrollTo(0, 1) }, 1e3), viewporter && viewporter.ACTIVE ? (window.addEventListener("viewportready", function() { return t.resize() }, !0), window.addEventListener("viewportchange", function() { return t.resize() }, !0), viewporter.preventPageScroll()) : window.addEventListener("resize", function() { return t.resize() }, !0), this.resize(), window.addEventListener("touchstart", function() {}), createjs.Ticker.setFPS(60), createjs.Ticker.addEventListener("tick", function(e) { t.update(e) }), this.stage.addEventListener("stagemousedown", function(e) { t.onPreloaderDown(e) }), window.addEventListener("DOMMouseScroll", function(e) { return t.stopScroll(e) }, !1), window.onscroll = function(e) { return t.stopScroll(e) } , window.addEventListener("scroll", function(e) { return t.stopScroll(e) }, !0), window.ondragstart = function(e) { return t.stopScroll(e) } , window.ondrag = function(e) { return t.stopScroll(e) } , window.addEventListener("ondrag", function(e) { return t.stopScroll(e) }, !0), window.addEventListener("dragstart", function(e) { return t.stopScroll(e) }, !0), document.onkeydown = function(e) { return t.onKeyDown(e) } , window.game_uptap_onPauseRequested = function() { return t.pauseGame() } , window.game_uptap_onResumeRequested = function() { return t.resumeGame() } } return e.prototype.onKeyDown = function(e) {} , e.prototype.stopScroll = function(e) { void 0 === e && (e = null), e.preventDefault(), e.returnValue = !1, document.body.scrollTop = 0 } , e.prototype.showAds = function() { console.log("显示广告!"); return !1 } , e.prototype.onLoadComplete = function() { var e = this; this.initGame_uptap(), this.stage.removeAllEventListeners(), this.resize(); var t = JSON.parse(JSON.stringify(ore_atlas_alpha_neon)); createFont(font_green_export, t, 79); var s = this.preloader.loader.getResult("art.png"); null != s && void 0 != s || game_uptap.log("ERRORRRRRRRRRRRRRRRRRRRRR:"), t.images = [this.preloader.loader.getResult("art.png")], spriteSheetInfo = t, this.animationManager = new AnimationManager, this.animationManager.putAnimation("win anim", Symbol_1, 0), this.atlases.push(new createjs.SpriteSheet(t)); t = JSON.parse(JSON.stringify(ore_atlas_alpha_neon)); createFont(font_white_export, t, 90), t.images = [this.preloader.loader.getResult("art.png")], spriteSheetInfo = t, this.atlases.push(new createjs.SpriteSheet(t)), this.atlases.push(null); var i = "card_set_" + (SaveManager.instance.currentCardSet + 1); (t = JSON.parse(JSON.stringify(window[i]))).images = [this.preloader.loader.getResult(i + ".png")], this.atlases.push(new createjs.SpriteSheet(t)), BaseLevel.pool || (BaseLevel.pool = new ObjectPool), BaseLevel.instance = new BaseLevel, this.soundManager = new SoundsManager, this.stage.addEventListener("stagemousedown", function(t) { e.onDown(t) }), this.stage.addEventListener("stagemouseup", function(t) { e.onUp(t) }), this.stage.addEventListener("stagemousemove", function(t) { e.onMove(t) }), this.menuManager = new MenuManager, this.preloader.disable(), this.resize(), this.isPlayingOnMobile || this.soundManager.playMusic(), this.setVisibilityListener(), this.menuManager.show(this.menuManager.mainMenu) } , e.prototype.initGame_uptap = function() {} , e.prototype.restart = function() { BaseLevel.instance.reset(), BaseLevel.instance.init() } , e.prototype.pauseGame = function() { this.isPaused = !0, SoundsManager.instance.pauseMusic() } , e.prototype.resumeGame = function() { this.isPaused = !1, SoundsManager.instance.resumeMusic() } , e.prototype.update = function(t) { if (!this.isPaused) { document.body.scrollTop = 0, t && this.stage.update(t), this.resize(); var s = limit(t ? t.delta / 1e3 : 0, .5 / 60, 2 / 60); e.level && e.level.update(s), this.menuManager && this.menuManager.update(s), this.preloader && this.preloader.update(s), this.soundManager && this.soundManager.update(s), this.gameTime += t ? t.delta / 1e3 : 0 } } , e.prototype.onPreloaderDown = function(e) { e.nativeEvent && e.preventDefault && e.preventDefault() && e.stopPropagation() } , e.prototype.onDown = function(t) { if (!this.isPaused) { this.isMouseDown = !0, e.level && e.level.isActivated && e.level.onMouseDown(t.stageX, t.stageY), this.soundManager.playMusic(); var s = MenuManager.instance.current; s && s.onDown(t.stageX, t.stageY), MenuManager.instance.current == MenuManager.instance.loadingMenu && MenuManager.instance.loadingMenu.isMenuActive && (MenuManager.instance.closeCurrent(), MenuManager.instance.current = MenuManager.instance.settings, this.dontCheckMenuClick = !0), this.onMove(t), t.nativeEvent && t.preventDefault && t.preventDefault() && t.stopPropagation() } } , e.prototype.onMove = function(t) { if (!this.isPaused && this.isMouseDown) { MenuManager.instance.current; e.level && e.level.isActivated && e.level.onMouseMove(t.stageX, t.stageY), t.nativeEvent && t.preventDefault && t.preventDefault() && t.stopPropagation() } } , e.prototype.onUp = function(t) { if (!this.isPaused) { this.isMouseDown = !1; var s = MenuManager.instance.current; s && (this.dontCheckMenuClick ? this.dontCheckMenuClick = !1 : s.onUp(t.stageX, t.stageY)), e.level && e.level.isActivated && e.level.onMouseUp(t.stageX, t.stageY), t.nativeEvent && t.preventDefault && t.preventDefault() && t.stopPropagation() } } , e.prototype.resize = function() { var t = window.innerWidth , s = window.innerHeight; this.prevSizes.x != t || this.prevSizes.y != s ? this.resizesLeft = 3 : this.resizesLeft--, this.prevSizes.x = t, this.prevSizes.y = s; var i = s > t , a = t , n = s , r = this.stage , o = r.canvas.width , c = r.canvas.height , h = a / (i ? e.BASE_SIZE : o) , l = n / (i ? c : e.BASE_SIZE) , d = Math.min(h, l) , p = o * d , u = c * d; i && e.BASE_SIZE, i || e.BASE_SIZE; r.canvas.style.width = p + "px", r.canvas.style.height = u + "px", this.canvasScale = d; var m = (n - u) / 2; r.canvas.parentElement; e.CURRENT_SHIFT = m / d, e.CURRENT_SHIFT > 0 && (e.CURRENT_SHIFT = 0), e.CURRENT_SHIFT = Math.abs(e.CURRENT_SHIFT), e.ACTUAL_H = e.SCREEN_H - 2 * e.CURRENT_SHIFT; var g = (u + 2 * (m < 0 ? m : 0)) / u; this.realScreenSize.y = g * e.SCREEN_H; var y = e.BASE_SIZE / e.SCREEN_H; g = (g - y) / (1 - y); var v = (p + 2 * (this.lastShiftX < 0 ? this.lastShiftX : 0)) / p; this.realScreenSize.x = v * e.SCREEN_W; var f = e.BASE_SIZE / e.SCREEN_W; v = (v - f) / (1 - f), BaseLevel.instance && BaseLevel.instance.resize(v, g), this.screenFactors.x = v, this.screenFactors.y = g, r.canvas.style.top = m + "px", this.lastShiftX = (t - p) / 2, this.stage.canvas.style.left = this.lastShiftX + "px", this.menuManager && this.menuManager.onResize(), this.preloader && this.preloader.onResize() } , e.prototype.setVisibilityListener = function() { var e = this , t = "hidden" , s = function() { return e.onVisibilityChange() }; t in document ? (document.addEventListener("visibilitychange", s), this.visibilityState = "visibilityState") : (t = "mozHidden")in document ? (document.addEventListener("mozvisibilitychange", s), this.visibilityState = "mozVisibilityState") : (t = "webkitHidden")in document ? (document.addEventListener("webkitvisibilitychange", s), this.visibilityState = "webkitVisibilityState") : (t = "msHidden")in document ? (document.addEventListener("msvisibilitychange", s), this.visibilityState = "msVisibilityState") : "onfocusin"in document ? document.onfocusin = document.onfocusout = s : window.onpageshow = window.onpagehide = window.onfocus = window.onblur = s } , e.prototype.onVisibilityChange = function() { var e = this.visibilityState && document[this.visibilityState] && "hidden" == document[this.visibilityState]; this.isHidden = e, SoundsManager.instance.musicPaused && !e ? SoundsManager.instance.resumeMusic() : e && !SoundsManager.instance.musicPaused && SoundsManager.instance.pauseMusic() } , e }(); function touchHandlerDummy(e) { return e.preventDefault(), !1 } App.SCREEN_W = 1200, App.SCREEN_H = 1200, App.BASE_SIZE = 640, App.ACTUAL_H = App.SCREEN_H, App.CURRENT_SHIFT = 0, function(e) { e[e.ACTION_STOP = 0] = "ACTION_STOP", e[e.ACTION_GOTO_AND_PLAY = 1] = "ACTION_GOTO_AND_PLAY", e[e.ACTION_GOTO_AND_STOP = 2] = "ACTION_GOTO_AND_STOP" }(ActionType || (ActionType = {})); var FrameSelector = function() { function e(e) { this.object = e, this.names = new Array, this.values = new Array } return e.prototype.getFrame = function(e, t) { return 0 } , e.prototype.testLayer = function(e) { return !0 } , e }() , SingleFlameSelector = function(e) { function t(t) { var s = e.call(this, null) || this; return s.frame = t, s } return __extends(t, e), t.prototype.getFrame = function(e, t) { return this.frame } , t }(FrameSelector) , AnimatedNode = function(e) { function t(t, s, i) { var a = e.call(this) || this; return a.animations = [], a.animation = t, a.parts = new Array, a.isPlaying = !0, a.actions = new Array, a.hasCycle = !1, a.owner = null, a.skins = new Array, a.frameSelector = i, a.initFrameDelay = s, a.initParts(), a.mouseChildren = !1, a } return __extends(t, e), t.prototype.createUsualSprite = function(e) { var s = AnimationManager.instance.getAnimation(e); if (s) { var i = new t(s,this.frameDelay,null); return this.animations.push(i), i } return createSpriteFromSpritesheet(e) } , t.prototype.initParts = function() { this.setFrameDelay(this.animation.forceFrameDelay > 0 ? this.animation.forceFrameDelay : Math.abs(this.initFrameDelay) < 1e-10 ? 1 / DESIGN_FPS : this.initFrameDelay), this.totalFrames = 1; for (var e = 0; e < this.animation.layers.length; e++) { var t = this.animation.layers[e]; if (!this.frameSelector || this.frameSelector.testLayer(this.animation.name)) { this.totalFrames = Math.max(this.totalFrames, t.frames.length); var s = this.frameSelector ? this.frameSelector.getFrame(this, t) : 0; if (-1 != s) { this.skins.push(s); var i = new createjs.Container , a = null , n = t.getClipData(s); (a = this.createUsualSprite(n ? n.name : t.name)) && (n && (a.regX = a.getBounds().width * n.anchor.x, a.regY = a.getBounds().height * (1 - n.anchor.y)), i.addChild(a)), this.parts.push(i), this.addChild(i) } else this.skins.push(-1), this.parts.push(null) } } this.gotoAndPlay(0), this.animation.transform && this.animation.transform.applyTransform(this), this.totalFrames <= 1 && this.stop(), this.frameSelector && (this.frameSelector = null), this.animation && this.animation.isAdd, this.animation && this.animation.isOverlay } , t.prototype.getFrameByPartIndex = function(e) { var t = e; return this.animation.layers[t].frames[this.currentFrame] } , t.prototype.disableLayer = function(e) { var t = this.getPartByFlashName(e); t && removeClip(t) } , t.prototype.update = function(e) { limitDt(e); for (var t = 0; t < this.animations.length; ++t) this.animations[t].update(e); if (this.isPlaying) for (this.currentDelay -= e; this.currentDelay <= 0; ) { this.gotoAndPlay(this.currentFrame + 1); for (t = 0; t < this.actions.length; t++) this.actions[t].checkAction(); this.currentDelay += this.frameDelay, 0 == this.currentFrame && (this.hasCycle = !0) } } , t.prototype.setRandomFrame = function() { var e = getInt(this.totalFrames); this.isPlaying ? this.gotoAndPlay(e) : this.gotoAndStop(e) } , t.prototype.setFrameDelay = function(e) { this.currentDelay = this.frameDelay = e } , t.prototype.setFps = function(e) { this.setFrameDelay(1 / e) } , t.prototype.isOnLastFrame = function() { return this.currentFrame == this.totalFrames - 1 } , t.prototype.setOwner = function(e) { this.owner = e } , t.prototype.getOwner = function() { return this.owner } , t.prototype.gotoAndPlay = function(e) { this.play(), this.currentFrame = Math.max(0, e), this.currentFrame = this.currentFrame % this.totalFrames; for (var t = 0; t < this.parts.length; t++) { var s = this.parts[t]; if (s) { var i = t; this.animation.layers[i].frames[this.currentFrame].applyTransform(s), this.owner && (s.visible = s.visible && this.owner.canBeVisible(s)) } } var a = this.currentFrame; for (t = 0; t < this.actions.length; t++) if (this.actions[t].checkAction(), this.currentFrame != a) return } , t.prototype.gotoAndStop = function(e) { this.gotoAndPlay(e), this.stop() } , t.prototype.play = function() { this.isPlaying || this.resetFrameDelay(), this.isPlaying = !0 } , t.prototype.stop = function() { this.isPlaying = !1, this.resetFrameDelay() } , t.prototype.resetFrameDelay = function() { this.currentDelay = this.frameDelay } , t.prototype.getCurrentDelay = function() { return this.currentDelay } , t.prototype.setCurrentDelay = function(e) { this.currentDelay = this.frameDelay * e } , t.prototype.getFloatFrame = function() { return this.currentFrame + limit((this.frameDelay - this.currentDelay) / this.frameDelay, 0, 1) } , t.prototype.setPartSkin = function(e, t, s) { void 0 === s && (s = !1); var i = this.animation.getLayerByFlashName(e) , a = this.parts[i].getChildAt(0) , n = this.animation.layers[i]; s && (t = n.clipDatas.length + t), this.skins[i] = t; var r = n.getClipData(t); a.gotoAndStop(r.name), a.regX = a.getBounds().width * r.anchor.x, a.regY = a.getBounds().height * (1 - r.anchor.y) } , t.prototype.getPart = function(e) { return this.parts[e] } , t.prototype.getPartByFlashName = function(e) { return this.getPart(this.animation.getLayerByFlashName(e)) } , t.prototype.getPartSkin = function(e) { return this.skins[e] } , t.prototype.getPartSkinByName = function(e) { return this.getPartSkin(this.animation.getLayerByFlashName(e)) } , t.prototype.getSkinByFlashName = function(e) { return this.getPartSkin(this.animation.getLayerByFlashName(e)) } , t.prototype.updateOwnerVisibility = function() { for (var e = 0; e < this.parts.length; e++) { var t = this.parts[e]; t && this.owner && (t.visible = t.visible && this.owner.canBeVisible(t)) } } , t.prototype.destroy = function() { this.skins = null, this.frameSelector = null; for (var e = 0; e < this.parts.length; e++) this.parts[e] && removeClip(this.parts[e]); for (e = 0; e < this.animations.length; ++e) this.animations[e].destroy(); this.owner = null, this.parts = null, this.actions = null } , t.prototype.addAction = function(e, t, s, i) { void 0 === s && (s = -1), void 0 === i && (i = 1); var a = new AnimationAction(e,t,this,s,i); return this.actions.push(a), a } , t }(createjs.Container) , FrameData = function() { function e(e, t, s, i, a, n, r, o, c) { void 0 === t && (t = 100), void 0 === s && (s = 0), void 0 === i && (i = 0), void 0 === a && (a = 0), void 0 === n && (n = 1), void 0 === r && (r = 1), void 0 === o && (o = 0), void 0 === c && (c = 0), this.visible = "false" != e && 0 != e, this.alpha = t, this.rotation = s, this.x = i, this.y = a, this.scaleX = n, this.scaleY = r, this.skewX = "NaN" == o || isNaN(o) ? 0 : o, this.skewY = "NaN" == c || isNaN(o) ? 0 : c, Math.abs(this.rotation - this.skewX) < 1e-5 && Math.abs(this.rotation - this.skewY) < 1e-5 && (this.skewX = this.skewY = 0) } return e.prototype.clone = function() { return new e(this.visible,this.alpha,this.rotation,this.x,this.y,this.scaleX,this.scaleY) } , e.prototype.applyTransform = function(e) { if (e.visible = this.visible, e.visible) { var t = Math.abs(this.rotation) > .001 , s = Math.abs(this.skewX) > .001 || Math.abs(this.skewY) > .001; e.alpha = this.alpha, e.rotation = this.rotation, e.x = this.x, e.y = this.y, isNaN(this.scaleX) || (e.scaleX = this.scaleX), isNaN(this.scaleY) || (e.scaleY = this.scaleY), !t && s ? (e.skewX = this.skewX, e.skewY = this.skewY, this.rotation = 0) : e.skewX = e.skewY = 0 } } , e.getEmptyData = function() { return e.empty || (e.empty = new e(!1,0,0,0,0,0,0)), e.empty } , e }() , ClipLayerData = function() { return function(e, t) { this.name = e.split(".")[0], this.anchor = t } }() , LayerData = function() { function e(e, t, s, i) { this.isMark = i, this.frames = new Array, this.name = t, this.data = e, this.flashName = s, this.clipDatas = new Array } return e.prototype.addFrame = function(e) { this.frames.push(e) } , e.prototype.addClipData = function(e) { this.clipDatas.push(e) } , e.prototype.getClipData = function(e) { return -1 != this.data.name.indexOf("leaves base anim") || "tree anim" == this.data.name && "Layer 1" == this.flashName || "leaf anim" == this.data.name ? ((e = BaseLevel.instance.backId - 1) >= this.clipDatas.length - 1 && (e = this.clipDatas.length - 1), this.clipDatas[e]) : "none" == name ? null : e < this.clipDatas.length ? this.clipDatas[e] : this.clipDatas[this.clipDatas.length - 1] } , e.prototype.clone = function() { for (var t = new e(this.data,this.name,this.flashName,!1), s = 0; s < this.clipDatas.length; s++) t.addClipData(new ClipLayerData(this.clipDatas[s].name,this.clipDatas[s].anchor)); for (s = 0; s < this.frames.length; s++) t.addFrame(this.frames[s].clone()); return t } , e }() , AnimationData = function() { function e(e, t) { this.layerNameMap = {}, this.layers = new Array, this.animationDatas = new Array, this.name = e, this.transform = t, this.isAdd = !1, this.forceFrameDelay = -1, this.isOverlay = !1 } return e.prototype.setAdd = function() { return this.isAdd = !0, this } , e.prototype.setScale = function(e, t) {} , e.prototype.shift = function(e, t) { return this } , e.prototype.addLayer = function(e) { var t = this.layers.length; this.layerNameMap[e.flashName] = t, this.layers.push(e) } , e.prototype.addData = function(e) { this.animationDatas.push(e) } , e.prototype.getLayerByFlashName = function(e) { return this.layerNameMap[e] } , e.prototype.connectLayers = function(e) { return this } , e.prototype.makeTheSameAmountOfFramesInAllLayers = function() { for (var e = 0, t = 0; t < this.layers.length; ++t) e = Math.max(e, this.layers[t].frames.length); for (t = 0; t < this.layers.length; ++t) for (var s = this.layers[t]; s.frames.length < e; ) s.addFrame(FrameData.getEmptyData()) } , e.prototype.cloneLayer = function(e, t) { var s = this.getLayerByFlashName(e) , i = this.getLayerByFlashName(t); this.layers[i].frames = this.layers[s].frames } , e }() , AnimationManager = function() { function e() { this.data = {}, e.instance = this, this.data = {} } return e.prototype.putAnimation = function(e, t, s) { var i = this.parseAnimation(t, s); return this.data[e] = i, i } , e.prototype.parseAnimation = function(e, t) { for (var s = new AnimationData(e.name,null), i = 0, a = void 0 == e.l.length ? 1 : e.l.length, n = 0; n < a; ++n) { for (var r = 1 == a ? e.l : e.l[n], o = r.flashName, c = void 0 != r.isMark, h = new LayerData(s,r.name,o || "",c), l = void 0 == r.d ? 0 : void 0 == r.d.length ? 1 : r.d.length, d = 0; d < l; ++d) { var p = 1 == l ? r.d : r.d[d] , u = p.name.split("/") , m = u[u.length - 1] , g = parseFloat(p.anchorX) , y = parseFloat(p.anchorY) , v = new ClipLayerData(m,new createjs.Point(g,1 - y)); h.addClipData(v) } for (var f = 0; f < t; f++) h.addFrame(FrameData.getEmptyData()); for (var S = void 0 == r.f.length ? 1 : r.f.length, _ = 0; _ < S; ++_) { var k = null , b = 1 == S ? r.f : r.f[_] , w = "false" != b.v && (void 0 == b.v || null == b.v || b.v); if (w) { var x = w ? void 0 != b.a ? parseFloat(b.a) : 100 : 0; x /= 100; var C = w ? parseFloat(b.r) : 0 , M = w ? parseFloat(b.x) : 0 , E = w ? parseFloat(b.y) : 0 , Y = w ? parseFloat(b.scX) : 0 , X = w ? parseFloat(b.scY) : 0 , A = w ? parseFloat(b.skX) : 0 , T = w ? parseFloat(b.skY) : 0; k = new FrameData(w,x,C,M,E,Y,X,A,T) } else k = FrameData.getEmptyData(); h.addFrame(k) } s.addLayer(h), i = Math.max(i, _) } return s.makeTheSameAmountOfFramesInAllLayers(), s } , e.prototype.getAnimation = function(e) { return this.data[e] } , e }() , AnimationAction = function() { function e(e, t, s, i, a) { this.frame = e, this.type = t, this.animation = s, this.data = i, this.probability = a, this.isEnabled = !0, this.frameSelector = null } return e.prototype.checkAction = function() { if (this.isEnabled && this.animation.currentFrame == this.frame && this.animation.isPlaying && Math.random() <= this.probability) switch (this.type) { case ActionType.ACTION_STOP: this.animation.stop(); break; case ActionType.ACTION_GOTO_AND_PLAY: this.animation.gotoAndPlay(this.calcNextFrame()); break; case ActionType.ACTION_GOTO_AND_STOP: this.animation.gotoAndStop(this.data) } } , e.prototype.calcNextFrame = function() { var e = this.frameSelector ? this.frameSelector.selectFrame(this.frame) : this.data; return -1 == e && (e = this.data), e } , e.prototype.setSelector = function(e) { this.frameSelector = e } , e.prototype.setEnabled = function(e) { this.isEnabled = e } , e.prototype.getEnabled = function() { return this.isEnabled } , e }(); function getButtonAnimation(e) { var t = new AnimatedNode(App.game.animationManager.getAnimation("buttons anim"),1 / 30,new SingleFlameSelector(e)); return t.addAction(t.totalFrames - 1, ActionType.ACTION_STOP), t } var SaveManager = function() { function e() { this.version = .9397, this.isFirstLoad = !0, this.lastOpened = 0, this.currentCardMode = e.CARD_MODE_1, this.currentHandMode = e.HAND_MODE_LEFT, this.currentCardSet = 11, this.currentCardBack = 11, this.currentGameBack = 0, this.vegasEnabled = !1, this.vegasComulative = 0, this.winGamesCount = 0, this.gamesCount = 0, this.bestScore = 0, this.leastMoves = 0, this.bestTime = 0, this.totalTime = 0, this.completedChallenges = [], e.instance = this, this.load() } return e.prototype.switchCardMode = function() { this.currentCardMode = (this.currentCardMode + 1) % 2/*, window.game_uptap_analytics.trackEvent("EVENT_CUSTOM", { event: "EVENT_CARDMODESWITCHED", cardMode: this.currentCardMode })*/ } , e.prototype.switchHandMode = function() { this.currentHandMode = (this.currentHandMode + 1) % 2/*, window.game_uptap_analytics.trackEvent("EVENT_CUSTOM", { event: "EVENT_HANDMODESWITCHED", handMode: this.currentHandMode })*/ } , e.prototype.switchVegas = function() { this.vegasEnabled = !this.vegasEnabled/*, window.game_uptap_analytics.trackEvent("EVENT_CUSTOM", { event: "EVENT_VEGASMODESWITCHED", enabled: this.vegasEnabled ? 1 : 0 })*/ } , e.prototype.tryAddChallenge = function(e) { void 0 === e && (e = null), e || (e = new Date); var t = e.getFullYear() + "-" + e.getMonth() + "-" + e.getDate(); -1 == this.completedChallenges.indexOf(t) && this.completedChallenges.push(t) } , e.prototype.save = function() { var e = { version: this.version, currentCardMode: this.currentCardMode, currentHandMode: this.currentHandMode, currentCardSet: this.currentCardSet, currentCardBack: this.currentCardBack, currentGameBack: this.currentGameBack, vegasEnabled: this.vegasEnabled, vegasComulative: this.vegasComulative, winGamesCount: this.winGamesCount, gamesCount: this.gamesCount, bestScore: this.bestScore, leastMoves: this.leastMoves, bestTime: this.bestTime, totalTime: this.totalTime, completedChallenges: this.completedChallenges }; window.localStorage.setItem("save", JSON.stringify(e)) } , e.prototype.getValue = function(e, t) { return null == e || void 0 == e ? t : e } , e.prototype.load = function() { var t = window.localStorage.getItem("save"); if (!(t = JSON.parse(t))) return this.currentCardSet = window.game_uptap_defaultCardSet || 13, this.currentCardBack = window.game_uptap_defaultCardBack || 1, this.currentGameBack = window.game_uptap_defaultGameBack || 1, void (this.currentHandMode = e.HAND_MODE_RIGHT); this.currentCardMode = this.getValue(t.currentCardMode, e.CARD_MODE_1), this.currentHandMode = this.getValue(t.currentHandMode, e.HAND_MODE_LEFT), this.currentCardSet = this.getValue(t.currentCardSet, 1), this.currentCardBack = this.getValue(t.currentCardBack, 1), this.currentGameBack = this.getValue(t.currentGameBack, 0), this.vegasEnabled = this.getValue(t.vegasEnabled, !1), this.vegasComulative = this.getValue(t.vegasComulative, 0), this.winGamesCount = this.getValue(t.winGamesCount, 0), this.gamesCount = this.getValue(t.gamesCount, 0), this.bestScore = this.getValue(t.bestScore, 0), this.leastMoves = this.getValue(t.leastMoves, 0), this.bestTime = this.getValue(t.bestTime, 0), this.totalTime = this.getValue(t.totalTime, 0), this.completedChallenges = this.getValue(t.completedChallenges, []), this.isFirstLoad = !1 } , e }(); SaveManager.CARD_MODE_1 = 0, SaveManager.CARD_MODE_3 = 1, SaveManager.HAND_MODE_LEFT = 0, SaveManager.HAND_MODE_RIGHT = 1, SaveManager.SET_AMOUNT = 14, SaveManager.BACK_AMOUNT = 18, SaveManager.GAME_BACK_AMOUNT = 12; var SinglePlayObject = function(e) { function t(t, s, i, a, n, r, o, c) { void 0 === c && (c = 1); var h = e.call(this) || this , l = createSpriteFromSpritesheet(i); return l.play(), l.scaleX = l.scaleY = c, l.regX = r / c, l.regY = o / c, l.x = t, l.y = s, h.lastFrame = a, h.sprite = l, addChild(h.sprite, n), h } return __extends(t, e), t.prototype.update = function(t) { e.prototype.update.call(this, t); var s = this.sprite; s.currentAnimationFrame >= this.lastFrame && (s.stop(), this.destroy()) } , t }(GameObject) , Preloader = function() { function e() { this.postLoader = null, this.sprites = [], this.mainLoadingStarted = !1, this.hasBrandLogo = !1, this.hasMoreGames = !1, this.shownButton = !1, this.loadedMain = !1, this.postLoadComplete = !1, e.instance = this, this.loadApi() } return e.prototype.loadApi = function() { // window.game_uptap_analytics.trackScreen("SCREEN_SPLASH"), this.onApiLoaded(null) } , e.prototype.onApiLoaded = function(e) { var t = this , s = new createjs.Container; App.game.stage.addChild(s), this.sprite = s; this.preLoader = new createjs.LoadQueue(!0,"",!0), this.preLoader.addEventListener("complete", function() { return t.onPreLoadComplete() }), this.preLoader.loadManifest([{ src: "assets/preloader/preloader.jpg", id: "preloader" }, { src: "assets/preloader/circle.jpg", id: "preloader candy top" }, { src: "assets/preloader/progressbar_top.png", id: "preloader progress top" }, { src: "assets/preloader/progressbar back.png", id: "progressbar back" }, { src: "assets/preloader/logo.png", id: "logo" }]) } , e.prototype.onPreLoadComplete = function() { var e = this; if (!this.mainLoadingStarted) { this.mainLoadingStarted = !0; var t = this.sprite , s = new createjs.Bitmap(this.preLoader.getResult("preloader")); t.addChild(s), this.sprites.push(s), this.back = s, s.scaleX = s.scaleY = App.SCREEN_H / 800, s = new createjs.Bitmap(this.preLoader.getResult("progressbar back")), t.addChild(s), s.x = .5 * App.SCREEN_W, s.scaleX = .5, s.regX = s.getBounds().width / 2, s.regY = s.getBounds().height / 2 + .5, this.sprites.push(s), s = new createjs.Bitmap(this.preLoader.getResult("preloader progress top")), t.addChild(s), s.x = .5 * App.SCREEN_W, s.scaleX = .5, s.regX = s.getBounds().width / 2, s.regY = s.getBounds().height / 2 + .5, this.barRect = s.getBounds().clone(), this.sprites.push(s), s = new createjs.Bitmap(this.preLoader.getResult("preloader candy top")), t.addChild(s), s.regX = s.getBounds().width / 2, s.regY = s.getBounds().height / 2, this.sprites.push(s), s = new createjs.Bitmap(this.preLoader.getResult("logo")), t.addChild(s), setReg(s, .5, .5, !0), this.sprites.push(s), this.logo = s, this.onResize(), createjs.Sound.initializeDefaultPlugins(), createjs.Sound.registerPlugins([createjs.WebAudioPlugin, createjs.HTMLAudioPlugin]), createjs.Sound.alternateExtensions = ["mp3"]; var i = SaveManager.instance.currentGameBack + 1 , a = [{ src: "assets/art_neon.png", id: "art.png" }, /*{ src: "11.png",//window.game_uptap ? window.game_uptap.getMoreGamesButtonImage() : "assets/More_Games600x253_onWhite.png", id: "more1" }, */{ src: "assets/back" + i + ".jpg", id: "back" + i }]; i = SaveManager.instance.currentCardSet + 1; a.push({ src: "assets/card_set" + i + ".png", id: "card_set_" + i + ".png" }); needMusic && a.push({ src: "assets/sound/music/klondike_main.ogg", id: "main_music", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/button.ogg", id: "button", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/deck_next.ogg", id: "deck_next", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/hint.ogg", id: "hint", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/put_result.ogg", id: "put_result", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/card_select.ogg", id: "card_select", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/end_move.ogg", id: "end_move", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/win_anim_start.ogg", id: "win_anim_start", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/win.ogg", id: "win", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/undo.ogg", id: "undo", type: createjs.LoadQueue.SOUND }, { src: "assets/sound/start_drag.ogg", id: "start_drag", type: createjs.LoadQueue.SOUND }), this.loader = new createjs.LoadQueue(!0); var n = createjs.Sound; this.loader.installPlugin(n), createjs.Sound.initializeDefaultPlugins(), createjs.Sound.registerPlugins([createjs.WebAudioPlugin, createjs.HTMLAudioPlugin]), createjs.Sound.alternateExtensions = ["mp3"], this.loader.addEventListener("complete", function() { return e.onLoadComplete() }), this.loader.addEventListener("progress", function() { return e.onProgress() }), this.loader.loadManifest(a) } } , e.prototype.onLoadComplete = function() { console.log("-------加载完成-------->>"); uptap.HideLoading(); uptap.Login(function(t) { console.log("uptap_login_end && data = ", t) }); if (this.onResize(), this.onProgress(), !this.shownButton) { if (this.shownButton = !0, !this.loadedMain) { this.loadedMain = !0, App.game.onLoadComplete(); var e = window.localStorage.getItem("volume"); e && (SoundsManager.instance.setMusic(!!JSON.parse(e).bgmVolume), SoundsManager.instance.setSound(!!JSON.parse(e).sfxVolume)), SoundsManager.instance.playMusic() } this.lazyLoad() } } , e.prototype.isActive = function() { return null != this.sprite.parent } , e.prototype.disable = function() { removeClip(this.sprite); for (var e = 0; e < this.sprites.length; ++e) removeClip(this.sprites[e]) } , e.prototype.onProgress = function() { if (!(this.sprites.length <= 0) && this.barRect) { var e = this.loader.progress , t = new createjs.Rectangle(this.barRect.x,this.barRect.y,limit(this.barRect.width * e, 1, this.barRect.width),this.barRect.height); this.sprites[2].sourceRect = t } } , e.prototype.update = function(e) { if (this.logo) { var t = App.game.screenFactors.x , s = App.game.screenFactors.y , i = s > t , a = (t + s - 1) / 1; this.logo.scaleX = this.logo.scaleY = lerp(i ? 1.2 : 1, 1.7, a), this.logo.x = .5 * App.SCREEN_W, this.logo.y = .5 * App.SCREEN_H - 180 + (i ? lerp(0, -100, 1 - t) : 0), this.sprites[1].scaleX = this.sprites[1].scaleY = 1.3 * this.logo.scaleX, this.sprites[1].scaleX *= .7, this.sprites[1].y = .5 * App.SCREEN_H - (-180 + (i ? lerp(0, -100, 1 - t) : 0)), this.sprites[2].scaleX = this.sprites[1].scaleX, this.sprites[2].scaleY = this.sprites[1].scaleY, this.sprites[2].y = this.sprites[1].y } } , e.prototype.onResize = function() {} , e.prototype.lazyLoad = function() { for (var e = this, t = SaveManager.instance.currentCardSet, s = [], i = 0; i < SaveManager.SET_AMOUNT; ++i) t != i && s.push({ src: "assets/card_set" + (i + 1) + ".png", id: "card_set_" + (i + 1) + ".png" }); for (t = SaveManager.instance.currentGameBack, i = 0; i < SaveManager.GAME_BACK_AMOUNT; ++i) t != i && s.push({ src: "assets/back" + (i + 1) + ".jpg", id: "back" + (i + 1) }); this.postLoader = new createjs.LoadQueue(!0,"",!0), this.postLoader.addEventListener("complete", function() { return e.onPostLoadComplete() }), this.postLoader.addEventListener("progress", function() { return e.onPostProgress() }), this.postLoader.loadManifest(s) } , e.prototype.onPostLoadComplete = function() { if (!this.postLoadComplete) { this.postLoadComplete = !0; for (var e = SaveManager.instance.currentCardSet, t = 0; t < SaveManager.SET_AMOUNT; ++t) if (t != e) { var s = "card_set_" + (t + 1) , i = JSON.parse(JSON.stringify(window[s])); i.images[0] = this.postLoader.getResult(s + ".png"), App.game.atlases.push(new createjs.SpriteSheet(i)) } } } , e.prototype.onPostProgress = function() {} , e }() , SoundsManager = function() { function e() { this.lastPlays = {}, this.delays = {}, this.shifts = {}, this.musicPlayed = !1, this.isSoundEnabled = needMusic, this.isMusicEnabled = needMusic, this.musicPaused = !1, this.volumes = {}, e.instance = this, this.delays.remove1 = this.delays.remove2 = this.delays.remove3 = this.delays.remove4 = this.delays.remove5 = .15, this.delays.button = this.delays.bonus_set = this.delays.bonus_bomb = this.delays.bonus_color = this.delays.bonus_line = this.delays.mark_remove = this.delays.block_crash = this.delays.color_block_remove = this.delays.object_select = this.delays.shield_remove = .05, this.delays.stop_move = .05 } return e.prototype.update = function(e) { this.time += e } , e.prototype.playSound = function(e, t, s, i) { if (void 0 === t && (t = 0), void 0 === s && (s = 1), void 0 === i && (i = 0), this.isSoundEnabled) { var a = this.delays[e] , n = this.lastPlays[e] , r = this.shifts[e] , o = 0 , c = this.volumes[e] ? this.volumes[e] : 1; if (a) if (r) if (!n || n < this.time) this.lastPlays[e] = this.time; else { if (!(n + r < this.time + a)) return; this.lastPlays[e] = n + r, o = 1e3 * (this.lastPlays[e] - this.time) } else { if (n && Math.abs(this.time - n) < a) return; this.lastPlays[e] = this.time } createjs.Sound.play(e, "none", o + t, i, 0, c * s) } } , e.prototype.playMusic = function() { if (!this.musicPlayed) { this.music; this.music ? this.music.play(createjs.Sound.INTERRUPT_NONE, 0, 0, -1, 1) : this.music = createjs.Sound.play("main_music", { interrupt: createjs.Sound.INTERRUPT_ANY, loop: -1, volume: .25 }), this.musicPlayed = this.music.playState == createjs.Sound.PLAY_SUCCEEDED, this.isMusicEnabled || (this.music.paused = !0) } } , e.prototype.pauseMusic = function() { this.musicPaused = !0, this.musicPlayed && this.music && this.isMusicEnabled && (this.music.paused = !0) } , e.prototype.resumeMusic = function() { this.musicPaused = !1, this.musicPlayed && this.isMusicEnabled && this.music && (this.music.paused = !1) } , e.prototype.setSound = function(e) { void 0 === e && (e = !0), this.isSoundEnabled = e } , e.prototype.setMusic = function(e) { void 0 === e && (e = !0), this.isMusicEnabled = e, this.music && !this.musicPaused && (this.music.paused = !e) } , e.prototype.reset = function() { this.time = 0, this.lastPlays = {} } , e }() , ClickableObject = function(e) { function t(t) { void 0 === t && (t = null); var s = e.call(this) || this; return s.shape = -1, s.radius = 0, s.shift = new createjs.Point, s.rect = new createjs.Rectangle, s.lastClickTime = -1, s.isEnabled = !0, s.needSound = !0, t && (s.sprite = t), s } return __extends(t, e), t.prototype.setCircle = function(e, s, i) { void 0 === s && (s = 0), void 0 === i && (i = 0), this.shape = t.CIRCLE_SHAPE, this.radius = e, this.shift.x = s, this.shift.y = i } , t.prototype.setRect = function(e, s, i, a) { this.shape = t.RECT_SHAPE, this.rect.setValues(e, s, i, a) } , t.prototype.checkClick = function(e, s) { if (!this.isEnabled) return !1; if (this.sprite && this.shape >= 0 && this.sprite.visible && this.sprite.parent && this.sprite.parent.visible) { for (var i = this.sprite.localToGlobal(this.sprite.regX, this.sprite.regY), a = 1, n = 1, r = this.sprite.parent; r; ) a *= r.scaleX, n *= r.scaleY, r = r.parent; switch (this.shape) { case t.CIRCLE_SHAPE: return getDistanceF(i.x + this.shift.x, i.y + this.shift.y, e, s) <= this.radius; case t.RECT_SHAPE: return e >= i.x + this.rect.x * a && s >= i.y + this.rect.y * n && e <= i.x + this.rect.x * a + this.rect.width * a && s <= i.y + this.rect.y * n + this.rect.height * n } } return !1 } , t.prototype.onClick = function() { if (this.callback) { var e = App.game.gameTime; Math.abs(e - this.lastClickTime) > .3 && (this.lastClickTime = e, this.callback()) } } , t.prototype.updateRectScale = function() { var e = this.sprite.getBounds(); this.setRect(.5 * -e.width * this.sprite.scaleX, .5 * -e.height * this.sprite.scaleY, e.width * this.sprite.scaleX, e.height * this.sprite.scaleY) } , t }(GameObject); ClickableObject.CIRCLE_SHAPE = 0, ClickableObject.RECT_SHAPE = 1; var ButtonObject = function(e) { function t(t, s, i, a, n) { void 0 === a && (a = 0), void 0 === n && (n = 0); var r = e.call(this) || this; r._baseScale = 1, r.callback = s, t.x = a, t.y = n, i.addChild(t), r.sprite = t; var o = r.sprite.getBounds(); return r.setRect(.5 * -o.width, .5 * -o.height, o.width, o.height), r } return __extends(t, e), Object.defineProperty(t.prototype, "baseScale", { set: function(e) { this._baseScale = e, this.sprite.scaleX = this.sprite.scaleY = e, this.updateRectScale() }, enumerable: !0, configurable: !0 }), t.prototype.onClick = function() { e.prototype.onClick.call(this), this.needSound && SoundsManager.instance.playSound("button") } , t.prototype.onShow = function() {} , t.prototype.onHide = function() {} , t }(ClickableObject) , AnimatedButtonObject = function(e) { function t(t, s, i, a, n) { void 0 === a && (a = 0), void 0 === n && (n = 0); var r = e.call(this, getButtonAnimation(t), s, i, a, n) || this; return r.playAnimIn = -1, r.anim = r.sprite, r.anim.stop(), r } return __extends(t, e), t.prototype.update = function(t) { e.prototype.update.call(this, t), this.playAnimIn > 0 && (this.playAnimIn -= t, this.playAnimIn <= 0 && this.playAnim()), this.anim.update(t) } , t.prototype.playAnim = function() { var e = 30 * lerp(1.3, 1.6, Math.random()); this.anim.setFrameDelay(1 / e), this.playAnimIn = -1, this.anim.gotoAndPlay(0) } , t.prototype.onClick = function() { e.prototype.onClick.call(this), this.playAnim() } , t.prototype.onShow = function() { this.playAnimIn = lerp(1 / 60, .1, Math.random()) } , t.prototype.onHide = function() {} , t }(ButtonObject) , ScaleButton = function(e) { function t(t, s, i, a, n) { void 0 === a && (a = 0), void 0 === n && (n = 0); var r = e.call(this, t, s, i, a, n) || this; return r.noScale = !1, t.regX = t.getBounds().width / 2, t.regY = t.getBounds().height / 2, r } return __extends(t, e), t.prototype.onClick = function() { e.prototype.onClick.call(this), this.noScale || createjs.Tween.get(this.sprite, { loop: !1 }).wait(0).to({ scaleX: 1.3 * this._baseScale, scaleY: 1.3 * this._baseScale }, 100, createjs.Ease.cubicOut).wait(0).to({ scaleX: this._baseScale, scaleY: this._baseScale }, 100, createjs.Ease.cubicIn) } , t }(ButtonObject) , SoundButton = function(e) { function t(t, s, i, a, n) { void 0 === n && (n = 0); var r = e.call(this, createSpriteFromSpritesheet(t ? "mus_on" : "sound_on"), null, s, i, a) || this; return r.spriteType = 0, r.spriteNames = [["mus_on", "mus_off", "sound_on", "sound_off"], ["mus_on", "mus_off", "sound_on", "sound_off"]], r.callback = function(e) { r.changeState(e) } , r.spriteType = n, r.isMusic = t, r } return __extends(t, e), t.prototype.getSpriteName = function(e) { var t = this.isMusic ? SoundsManager.instance.isMusicEnabled : SoundsManager.instance.isSoundEnabled; return e && (t = !t), this.spriteNames[this.spriteType][(t ? 0 : 1) + (this.isMusic ? 0 : 2)] } , t.prototype.changeState = function(e) { this.sprite.gotoAndStop(this.getSpriteName(!0)); var t = !(this.isMusic ? SoundsManager.instance.isMusicEnabled : SoundsManager.instance.isSoundEnabled); this.isMusic ? SoundsManager.instance.setMusic(t) : SoundsManager.instance.setSound(t), /*window.game_uptap_analytics.trackEvent("EVENT_VOLUMECHANGE", { bgmVolume: SoundsManager.instance.isMusicEnabled ? 1 : 0, sfxVolume: SoundsManager.instance.isSoundEnabled ? 1 : 0 }),*/ window.localStorage.setItem("volume", JSON.stringify({ bgmVolume: SoundsManager.instance.isMusicEnabled ? 1 : 0, sfxVolume: SoundsManager.instance.isSoundEnabled ? 1 : 0 })) console.log("声音") } , t.prototype.onShow = function() { e.prototype.onShow.call(this); this.isMusic ? SoundsManager.instance.isMusicEnabled : SoundsManager.instance.isSoundEnabled; this.sprite.gotoAndStop(this.getSpriteName(!1)) } , t }(ScaleButton) , MoreGamesButton = function(e) { function t(t, s, i, a) { var n = e.call(this) || this; n.initScale = 1; var r = needMoreGames ? createBitmap("more1") : null; return r && (r.scaleX = r.scaleY = n.initScale, r.x = s, r.y = i, r.regX = r.getBounds().width / 2, r.regY = r.getBounds().height / 2, r.mouseEnabled = !1, t.addChild(r), n.callback = function() { return n.onLogoClick() } ), n.sprite = r, n } return __extends(t, e), t.prototype.onLogoClick = function() { if (this.sprite && this.sprite.visible) { try { void 0 != window.game_uptap && window.game_uptap.moreGamesLink() } catch (e) {} createjs.Tween.get(this.sprite, { loop: !1 }).wait(0).to({ scaleX: 1.2 * this.initScale, scaleY: 1.2 * this.initScale, alpha: 1 }, 200, createjs.Ease.circOut).wait(0).to({ scaleX: this.initScale, scaleY: this.initScale }, 250, createjs.Ease.circIn) } } , t.prototype.checkClick = function(e, t) { if (this.sprite) { var s = this.sprite.getBounds() , i = this.sprite.localToGlobal(0, 0) , a = this.initScale * s.width , n = this.initScale * s.height; return e >= i.x && e <= i.x + a && t >= i.y && t <= i.y + n } return !1 } , t }(ClickableObject); window.onload = function() {} ;