vendor: 12,168 bytes, lines 1-271
1/*! 2* @license CreateJS 3* Visit http://createjs.com/ for documentation, updates and examples. 4* 5* Copyright (c) 2011-2015 gskinner.com, inc. 6* 7* Distributed under the terms of the MIT license. 8* http://www.opensource.org/licenses/mit-license.html 9* 10* This notice shall be included in all copies or substantial portions of the Software. 11*/ 12this.createjs = this.createjs || {}, createjs.extend = function (a, b) { 13 "use strict"; 14 15 function c() { 16 this.constructor = a 17 } 18 19 return c.prototype = b.prototype, a.prototype = new c 20}, this.createjs = this.createjs || {}, createjs.promote = function (a, b) { 21 "use strict"; 22 var c = a.prototype, d = Object.getPrototypeOf && Object.getPrototypeOf(c) || c.__proto__; 23 if (d) { 24 c[(b += "_") + "constructor"] = d.constructor; 25 for (var e in d) c.hasOwnProperty(e) && "function" == typeof d[e] && (c[b + e] = d[e]) 26 } 27 return a 28}, this.createjs = this.createjs || {}, createjs.indexOf = function (a, b) { 29 "use strict"; 30 for (var c = 0, d = a.length; d > c; c++) if (b === a[c]) return c; 31 return -1 32}, this.createjs = this.createjs || {}, function () { 33 "use strict"; 34 35 function a(a, b, c) { 36 this.type = a, this.target = null, this.currentTarget = null, this.eventPhase = 0, this.bubbles = !! b, this.cancelable = !! c, this.timeStamp = (new Date).getTime(), this.defaultPrevented = ! 1, this.propagationStopped = ! 1, this.immediatePropagationStopped = ! 1, this.removed = ! 1 37 } 38 39 var b = a.prototype; 40 b.preventDefault = function () { 41 this.defaultPrevented = this.cancelable && ! 0 42 }, b.stopPropagation = function () { 43 this.propagationStopped = ! 0 44 }, b.stopImmediatePropagation = function () { 45 this.immediatePropagationStopped = this.propagationStopped = ! 0 46 }, b.remove = function () { 47 this.removed = ! 0 48 }, b.clone = function () { 49 return new a(this.type, this.bubbles, this.cancelable) 50 }, b.set = function (a) { 51 for (var b in a) this[b] = a[b]; 52 return this 53 }, b.toString = function () { 54 return "[Event (type=" + this.type + ")]" 55 }, createjs.Event = a 56}(), this.createjs = this.createjs || {}, function () { 57 "use strict"; 58 59 function a() { 60 this._listeners = null, this._captureListeners = null 61 } 62 63 var b = a.prototype; 64 a.initialize = function (a) { 65 a.addEventListener = b.addEventListener, a.on = b.on, a.removeEventListener = a.off = b.removeEventListener, a.removeAllEventListeners = b.removeAllEventListeners, a.hasEventListener = b.hasEventListener, a.dispatchEvent = b.dispatchEvent, a._dispatchEvent = b._dispatchEvent, a.willTrigger = b.willTrigger 66 }, b.addEventListener = function (a, b, c) { 67 var d; 68 d = c ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {}; 69 var e = d[a]; 70 return e && this.removeEventListener(a, b, c), e = d[a], e ? e.push(b) : d[a] = [b], b 71 }, b.on = function (a, b, c, d, e, f) { 72 return b.handleEvent && (c = c || b, b = b.handleEvent), c = c || this, this.addEventListener(a, function (a) { 73 b.call(c, a, e), d && a.remove() 74 }, f) 75 }, b.removeEventListener = function (a, b, c) { 76 var d = c ? this._captureListeners : this._listeners; 77 if (d) { 78 var e = d[a]; 79 if (e) for (var f = 0, g = e.length; g > f; f++) if (e[f] == b) { 80 1 == g ? delete d[a] : e.splice(f, 1); 81 break 82 } 83 } 84 }, b.off = b.removeEventListener, b.removeAllEventListeners = function (a) { 85 a ? (this._listeners && delete this._listeners[a], this._captureListeners && delete this._captureListeners[a]) : this._listeners = this._captureListeners = null 86 }, b.dispatchEvent = function (a, b, c) { 87 if ("string" == typeof a) { 88 var d = this._listeners; 89 if ( ! (b || d && d[a])) return ! 0; 90 a = new createjs.Event(a, b, c) 91 } else a.target && a.clone && (a = a.clone()); 92 try { 93 a.target = this 94 } catch (e) { 95 } 96 if (a.bubbles && this.parent) { 97 for (var f = this, g = [f]; f.parent;) g.push(f = f.parent); 98 var h, i = g.length; 99 for (h = i - 1; h >= 0 && ! a.propagationStopped; h--) g[h]._dispatchEvent(a, 1 + (0 == h)); 100 for (h = 1; i > h && ! a.propagationStopped; h++) g[h]._dispatchEvent(a, 3) 101 } else this._dispatchEvent(a, 2); 102 return ! a.defaultPrevented 103 }, b.hasEventListener = function (a) { 104 var b = this._listeners, c = this._captureListeners; 105 return !! (b && b[a] || c && c[a]) 106 }, b.willTrigger = function (a) { 107 for (var b = this; b;) { 108 if (b.hasEventListener(a)) return ! 0; 109 b = b.parent 110 } 111 return ! 1 112 }, b.toString = function () { 113 return "[EventDispatcher]" 114 }, b._dispatchEvent = function (a, b) { 115 var c, d = 1 == b ? this._captureListeners : this._listeners; 116 if (a && d) { 117 var e = d[a.type]; 118 if ( ! e || ! (c = e.length)) return; 119 try { 120 a.currentTarget = this 121 } catch (f) { 122 } 123 try { 124 a.eventPhase = b 125 } catch (f) { 126 } 127 a.removed = ! 1, e = e.slice(); 128 for (var g = 0; c > g && ! a.immediatePropagationStopped; g++) { 129 var h = e[g]; 130 h.handleEvent ? h.handleEvent(a) : h(a), a.removed && (this.off(a.type, h, 1 == b), a.removed = ! 1) 131 } 132 } 133 }, createjs.EventDispatcher = a 134}(), this.createjs = this.createjs || {}, function () { 135 "use strict"; 136 137 function a() { 138 throw"Ticker cannot be instantiated." 139 } 140 141 a.RAF_SYNCHED = "synched", a.RAF = "raf", a.TIMEOUT = "timeout", a.useRAF = ! 1, a.timingMode = null, a.maxDelta = 0, a.paused = ! 1, a.removeEventListener = null, a.removeAllEventListeners = null, a.dispatchEvent = null, a.hasEventListener = null, a._listeners = null, createjs.EventDispatcher.initialize(a), a._addEventListener = a.addEventListener, a.addEventListener = function () { 142 return ! a._inited && a.init(), a._addEventListener.apply(a, arguments) 143 }, a._inited = ! 1, a._startTime = 0, a._pausedTime = 0, a._ticks = 0, a._pausedTicks = 0, a._interval = 50, a._lastTime = 0, a._times = null, a._tickTimes = null, a._timerId = null, a._raf = ! 0, a.setInterval = function (b) { 144 a._interval = b, a._inited && a._setupTick() 145 }, a.getInterval = function () { 146 return a._interval 147 }, a.setFPS = function (b) { 148 a.setInterval(1e3 / b) 149 }, a.getFPS = function () { 150 return 1e3 / a._interval 151 }; 152 try { 153 Object.defineProperties(a, { 154 interval: {get: a.getInterval, set: a.setInterval}, 155 framerate: {get: a.getFPS, set: a.setFPS} 156 }) 157 } catch (b) { 158 console.log(b) 159 } 160 a.init = function () { 161 a._inited || (a._inited = ! 0, a._times = [], a._tickTimes = [], a._startTime = a._getTime(), a._times.push(a._lastTime = 0), a.interval = a._interval) 162 }, a.reset = function () { 163 if (a._raf) { 164 var b = window.cancelAnimationFrame || window.webkitCancelAnimationFrame || window.mozCancelAnimationFrame || window.oCancelAnimationFrame || window.msCancelAnimationFrame; 165 b && b(a._timerId) 166 } else clearTimeout(a._timerId); 167 a.removeAllEventListeners("tick"), a._timerId = a._times = a._tickTimes = null, a._startTime = a._lastTime = a._ticks = 0, a._inited = ! 1 168 }, a.getMeasuredTickTime = function (b) { 169 var c = 0, d = a._tickTimes; 170 if ( ! d || d.length < 1) return -1; 171 b = Math.min(d.length, b || 0 | a.getFPS()); 172 for (var e = 0; b > e; e++) c += d[e]; 173 return c / b 174 }, a.getMeasuredFPS = function (b) { 175 var c = a._times; 176 return ! c || c.length < 2 ? -1 : (b = Math.min(c.length - 1, b || 0 | a.getFPS()), 1e3 / ((c[0] - c[b]) / b)) 177 }, a.setPaused = function (b) { 178 a.paused = b 179 }, a.getPaused = function () { 180 return a.paused 181 }, a.getTime = function (b) { 182 return a._startTime ? a._getTime() - (b ? a._pausedTime : 0) : -1 183 }, a.getEventTime = function (b) { 184 return a._startTime ? (a._lastTime || a._startTime) - (b ? a._pausedTime : 0) : -1 185 }, a.getTicks = function (b) { 186 return a._ticks - (b ? a._pausedTicks : 0) 187 }, a._handleSynch = function () { 188 a._timerId = null, a._setupTick(), a._getTime() - a._lastTime >= .97 * (a._interval - 1) && a._tick() 189 }, a._handleRAF = function () { 190 a._timerId = null, a._setupTick(), a._tick() 191 }, a._handleTimeout = function () { 192 a._timerId = null, a._setupTick(), a._tick() 193 }, a._setupTick = function () { 194 if (null == a._timerId) { 195 var b = a.timingMode || a.useRAF && a.RAF_SYNCHED; 196 if (b == a.RAF_SYNCHED || b == a.RAF) { 197 var c = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.oRequestAnimationFrame || window.msRequestAnimationFrame; 198 if (c) return a._timerId = c(b == a.RAF ? a._handleRAF : a._handleSynch), void (a._raf = ! 0) 199 } 200 a._raf = ! 1, a._timerId = setTimeout(a._handleTimeout, a._interval) 201 } 202 }, a._tick = function () { 203 var b = a.paused, c = a._getTime(), d = c - a._lastTime; 204 if (a._lastTime = c, a._ticks++, b && (a._pausedTicks++, a._pausedTime += d), a.hasEventListener("tick")) { 205 var e = new createjs.Event("tick"), f = a.maxDelta; 206 e.delta = f && d > f ? f : d, e.paused = b, e.time = c, e.runTime = c - a._pausedTime, a.dispatchEvent(e) 207 } 208 for (a._tickTimes.unshift(a._getTime() - c); a._tickTimes.length > 100;) a._tickTimes.pop(); 209 for (a._times.unshift(c); a._times.length > 100;) a._times.pop() 210 }; 211 var c = window.performance && (performance.now || performance.mozNow || performance.msNow || performance.oNow || performance.webkitNow); 212 a._getTime = function () { 213 return (c && c.call(performance) || (new Date).getTime()) - a._startTime 214 }, createjs.Ticker = a 215}(), this.createjs = this.createjs || {}, function () { 216 "use strict"; 217 218 function a() { 219 throw"UID cannot be instantiated" 220 } 221 222 a._nextID = 0, a.get = function () { 223 return a._nextID++ 224 }, createjs.UID = a 225}(), this.createjs = this.createjs || {}, function () { 226 "use strict"; 227 228 function a(a, b, c, d, e, f, g, h, i, j, k) { 229 this.Event_constructor(a, b, c), this.stageX = d, this.stageY = e, this.rawX = null == i ? d : i, this.rawY = null == j ? e : j, this.nativeEvent = f, this.pointerID = g, this.primary = !! h, this.relatedTarget = k 230 } 231 232 var b = createjs.extend(a, createjs.Event); 233 b._get_localX = function () { 234 return this.currentTarget.globalToLocal(this.rawX, this.rawY).x 235 }, b._get_localY = function () { 236 return this.currentTarget.globalToLocal(this.rawX, this.rawY).y 237 }, b._get_isTouch = function () { 238 return -1 !== this.pointerID 239 }; 240 try { 241 Object.defineProperties(b, { 242 localX: {get: b._get_localX}, 243 localY: {get: b._get_localY}, 244 isTouch: {get: b._get_isTouch} 245 }) 246 } catch (c) { 247 } 248 b.clone = function () { 249 return new a(this.type, this.bubbles, this.cancelable, this.stageX, this.stageY, this.nativeEvent, this.pointerID, this.primary, this.rawX, this.rawY) 250 }, b.toString = function () { 251 return "[MouseEvent (type=" + this.type + " stageX=" + this.stageX + " stageY=" + this.stageY + ")]" 252 }, createjs.MouseEvent = createjs.promote(a, "Event") 253}(), this.createjs = this.createjs || {}, function () { 254 "use strict"; 255 256 function a(a, b, c, d, e, f) { 257 this.setValues(a, b, c, d, e, f) 258 } 259 260 var b = a.prototype; 261 a.DEG_TO_RAD = Math.PI / 180, a.identity = null, b.setValues = function (a, b, c, d, e, f) { 262 return this.a = null == a ? 1 : a, this.b = b || 0, this.c = c || 0, this.d = null == d ? 1 : d, this.tx = e || 0, this.ty = f || 0, this 263 }, b.append = function (a, b, c, d, e, f) { 264 var g = this.a, h = this.b, i = this.c, j = this.d; 265 return (1 != a || 0 != b || 0 != c || 1 != d) && (this.a = g * a + i * b, this.b = h * a + j * b, this.c = g * c + i * d, this.d = h * c + j * d), this.tx = g * e + i * f + this.tx, this.ty = h * e + j * f + this.ty, this 266 }, b.prepend = function (a, b, c, d, e, f) { 267 var g = this.a, h = this.c, i = this.tx; 268 return this.a = a * g + c * this.b, this.b = b * g + d * this.b, this.c = a * h + c * this.d, this.d = b * h + d * this.d, this.tx = a * i + c * this.ty + e, this.ty = b * i + d * this.ty + f, this 269 }, b.appendMatrix = function (a) { 270 return this.append(a.a, a.b, a.c, a.d, a.tx, a.ty) 271 }
vendor: 4,264 bytes, lines 271-324
271, b.prependMatrix = function (a) { 272 return this.prepend(a.a, a.b, a.c, a.d, a.tx, a.ty) 273 }, b.appendTransform = function (b, c, d, e, f, g, h, i, j) { 274 if (f % 360) var k = f * a.DEG_TO_RAD, l = Math.cos(k), m = Math.sin(k); else l = 1, m = 0; 275 return g || h ? (g *= a.DEG_TO_RAD, h *= a.DEG_TO_RAD, this.append(Math.cos(h), Math.sin(h), -Math.sin(g), Math.cos(g), b, c), this.append(l * d, m * d, -m * e, l * e, 0, 0)) : this.append(l * d, m * d, -m * e, l * e, b, c), (i || j) && (this.tx -= i * this.a + j * this.c, this.ty -= i * this.b + j * this.d), this 276 }, b.prependTransform = function (b, c, d, e, f, g, h, i, j) { 277 if (f % 360) var k = f * a.DEG_TO_RAD, l = Math.cos(k), m = Math.sin(k); else l = 1, m = 0; 278 return (i || j) && (this.tx -= i, this.ty -= j), g || h ? (g *= a.DEG_TO_RAD, h *= a.DEG_TO_RAD, this.prepend(l * d, m * d, -m * e, l * e, 0, 0), this.prepend(Math.cos(h), Math.sin(h), -Math.sin(g), Math.cos(g), b, c)) : this.prepend(l * d, m * d, -m * e, l * e, b, c), this 279 }, b.rotate = function (b) { 280 b *= a.DEG_TO_RAD; 281 var c = Math.cos(b), d = Math.sin(b), e = this.a, f = this.b; 282 return this.a = e * c + this.c * d, this.b = f * c + this.d * d, this.c = -e * d + this.c * c, this.d = -f * d + this.d * c, this 283 }, b.skew = function (b, c) { 284 return b *= a.DEG_TO_RAD, c *= a.DEG_TO_RAD, this.append(Math.cos(c), Math.sin(c), -Math.sin(b), Math.cos(b), 0, 0), this 285 }, b.scale = function (a, b) { 286 return this.a *= a, this.b *= a, this.c *= b, this.d *= b, this 287 }, b.translate = function (a, b) { 288 return this.tx += this.a * a + this.c * b, this.ty += this.b * a + this.d * b, this 289 }, b.identity = function () { 290 return this.a = this.d = 1, this.b = this.c = this.tx = this.ty = 0, this 291 }, b.invert = function () { 292 var a = this.a, b = this.b, c = this.c, d = this.d, e = this.tx, f = a * d - b * c; 293 return this.a = d / f, this.b = -b / f, this.c = -c / f, this.d = a / f, this.tx = (c * this.ty - d * e) / f, this.ty = -(a * this.ty - b * e) / f, this 294 }, b.isIdentity = function () { 295 return 0 === this.tx && 0 === this.ty && 1 === this.a && 0 === this.b && 0 === this.c && 1 === this.d 296 }, b.equals = function (a) { 297 return this.tx === a.tx && this.ty === a.ty && this.a === a.a && this.b === a.b && this.c === a.c && this.d === a.d 298 }, b.transformPoint = function (a, b, c) { 299 return c = c || {}, c.x = a * this.a + b * this.c + this.tx, c.y = a * this.b + b * this.d + this.ty, c 300 }, b.decompose = function (b) { 301 null == b && (b = {}), b.x = this.tx, b.y = this.ty, b.scaleX = Math.sqrt(this.a * this.a + this.b * this.b), b.scaleY = Math.sqrt(this.c * this.c + this.d * this.d); 302 var c = Math.atan2(-this.c, this.d), d = Math.atan2(this.b, this.a), e = Math.abs(1 - c / d); 303 return 1e-5 > e ? (b.rotation = d / a.DEG_TO_RAD, this.a < 0 && this.d >= 0 && (b.rotation += b.rotation <= 0 ? 180 : -180), b.skewX = b.skewY = 0) : (b.skewX = c / a.DEG_TO_RAD, b.skewY = d / a.DEG_TO_RAD), b 304 }, b.copy = function (a) { 305 return this.setValues(a.a, a.b, a.c, a.d, a.tx, a.ty) 306 }, b.clone = function () { 307 return new a(this.a, this.b, this.c, this.d, this.tx, this.ty) 308 }, b.toString = function () { 309 return "[Matrix2D (a=" + this.a + " b=" + this.b + " c=" + this.c + " d=" + this.d + " tx=" + this.tx + " ty=" + this.ty + ")]" 310 }, a.identity = new a, createjs.Matrix2D = a 311}(), this.createjs = this.createjs || {}, function () { 312 "use strict"; 313 314 function a(a, b, c, d, e) { 315 this.setValues(a, b, c, d, e) 316 } 317 318 var b = a.prototype; 319 b.setValues = function (a, b, c, d, e) { 320 return this.visible = null == a ? ! 0 : !! a, this.alpha = null == b ? 1 : b, this.shadow = c, this.compositeOperation = d, this.matrix = e || this.matrix && this.matrix.identity() || new createjs.Matrix2D, this 321 }, b.append = function (a, b, c, d, e) { 322 return this.alpha *= b, this.shadow = c || this.shadow, this.compositeOperation = d || this.compositeOperation, this.visible = this.visible && a, e && this.matrix.appendMatrix(e), this 323 }, b.prepend = function (a, b, c, d, e) { 324 return this.alpha *= b, this.shadow = this.shadow || c, this.compositeOperation = this.compositeOperation || d, this.visible = this.visible && a, e && this.matrix.prependM
vendor: 6,814 bytes, lines 324-460
324atrix(e), this 325 }, b.identity = function () { 326 return this.visible = ! 0, this.alpha = 1, this.shadow = this.compositeOperation = null, this.matrix.identity(), this 327 }, b.clone = function () { 328 return new a(this.alpha, this.shadow, this.compositeOperation, this.visible, this.matrix.clone()) 329 }, createjs.DisplayProps = a 330}(), this.createjs = this.createjs || {}, function () { 331 "use strict"; 332 333 function a(a, b) { 334 this.setValues(a, b) 335 } 336 337 var b = a.prototype; 338 b.setValues = function (a, b) { 339 return this.x = a || 0, this.y = b || 0, this 340 }, b.copy = function (a) { 341 return this.x = a.x, this.y = a.y, this 342 }, b.clone = function () { 343 return new a(this.x, this.y) 344 }, b.toString = function () { 345 return "[Point (x=" + this.x + " y=" + this.y + ")]" 346 }, createjs.Point = a 347}(), this.createjs = this.createjs || {}, function () { 348 "use strict"; 349 350 function a(a, b, c, d) { 351 this.setValues(a, b, c, d) 352 } 353 354 var b = a.prototype; 355 b.setValues = function (a, b, c, d) { 356 return this.x = a || 0, this.y = b || 0, this.width = c || 0, this.height = d || 0, this 357 }, b.extend = function (a, b, c, d) { 358 return c = c || 0, d = d || 0, a + c > this.x + this.width && (this.width = a + c - this.x), b + d > this.y + this.height && (this.height = b + d - this.y), a < this.x && (this.width += this.x - a, this.x = a), b < this.y && (this.height += this.y - b, this.y = b), this 359 }, b.pad = function (a, b, c, d) { 360 return this.x -= b, this.y -= a, this.width += b + d, this.height += a + c, this 361 }, b.copy = function (a) { 362 return this.setValues(a.x, a.y, a.width, a.height) 363 }, b.contains = function (a, b, c, d) { 364 return c = c || 0, d = d || 0, a >= this.x && a + c <= this.x + this.width && b >= this.y && b + d <= this.y + this.height 365 }, b.union = function (a) { 366 return this.clone().extend(a.x, a.y, a.width, a.height) 367 }, b.intersection = function (b) { 368 var c = b.x, d = b.y, e = c + b.width, f = d + b.height; 369 return this.x > c && (c = this.x), this.y > d && (d = this.y), this.x + this.width < e && (e = this.x + this.width), this.y + this.height < f && (f = this.y + this.height), c >= e || d >= f ? null : new a(c, d, e - c, f - d) 370 }, b.intersects = function (a) { 371 return a.x <= this.x + this.width && this.x <= a.x + a.width && a.y <= this.y + this.height && this.y <= a.y + a.height 372 }, b.isEmpty = function () { 373 return this.width <= 0 || this.height <= 0 374 }, b.clone = function () { 375 return new a(this.x, this.y, this.width, this.height) 376 }, b.toString = function () { 377 return "[Rectangle (x=" + this.x + " y=" + this.y + " width=" + this.width + " height=" + this.height + ")]" 378 }, createjs.Rectangle = a 379}(), this.createjs = this.createjs || {}, function () { 380 "use strict"; 381 382 function a(a, b, c, d, e, f, g) { 383 a.addEventListener && (this.target = a, this.overLabel = null == c ? "over" : c, this.outLabel = null == b ? "out" : b, this.downLabel = null == d ? "down" : d, this.play = e, this._isPressed = ! 1, this._isOver = ! 1, this._enabled = ! 1, a.mouseChildren = ! 1, this.enabled = ! 0, this.handleEvent({}), f && (g && (f.actionsEnabled = ! 1, f.gotoAndStop && f.gotoAndStop(g)), a.hitArea = f)) 384 } 385 386 var b = a.prototype; 387 b.setEnabled = function (a) { 388 if (a != this._enabled) { 389 var b = this.target; 390 this._enabled = a, a ? (b.cursor = "pointer", b.addEventListener("rollover", this), b.addEventListener("rollout", this), b.addEventListener("mousedown", this), b.addEventListener("pressup", this), b._reset && (b.__reset = b._reset, b._reset = this._reset)) : (b.cursor = null, b.removeEventListener("rollover", this), b.removeEventListener("rollout", this), b.removeEventListener("mousedown", this), b.removeEventListener("pressup", this), b.__reset && (b._reset = b.__reset, delete b.__reset)) 391 } 392 }, b.getEnabled = function () { 393 return this._enabled 394 }; 395 try { 396 Object.defineProperties(b, {enabled: {get: b.getEnabled, set: b.setEnabled}}) 397 } catch (c) { 398 } 399 b.toString = function () { 400 return "[ButtonHelper]" 401 }, b.handleEvent = function (a) { 402 var b, c = this.target, d = a.type; 403 "mousedown" == d ? (this._isPressed = ! 0, b = this.downLabel) : "pressup" == d ? (this._isPressed = ! 1, b = this._isOver ? this.overLabel : this.outLabel) : "rollover" == d ? (this._isOver = ! 0, b = this._isPressed ? this.downLabel : this.overLabel) : (this._isOver = ! 1, b = this._isPressed ? this.overLabel : this.outLabel), this.play ? c.gotoAndPlay && c.gotoAndPlay(b) : c.gotoAndStop && c.gotoAndStop(b) 404 }, b._reset = function () { 405 var a = this.paused; 406 this.__reset(), this.paused = a 407 }, createjs.ButtonHelper = a 408}(), this.createjs = this.createjs || {}, function () { 409 "use strict"; 410 411 function a(a, b, c, d) { 412 this.color = a || "black", this.offsetX = b || 0, this.offsetY = c || 0, this.blur = d || 0 413 } 414 415 var b = a.prototype; 416 a.identity = new a("transparent", 0, 0, 0), b.toString = function () { 417 return "[Shadow]" 418 }, b.clone = function () { 419 return new a(this.color, this.offsetX, this.offsetY, this.blur) 420 }, createjs.Shadow = a 421}(), this.createjs = this.createjs || {}, function () { 422 "use strict"; 423 424 function a(a) { 425 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(a) 426 } 427 428 var b = createjs.extend(a, createjs.EventDispatcher); 429 b.getAnimations = function () { 430 return this._animations.slice() 431 }; 432 try { 433 Object.defineProperties(b, {animations: {get: b.getAnimations}}) 434 } catch (c) { 435 } 436 b.getNumFrames = function (a) { 437 if (null == a) return this._frames ? this._frames.length : this._numFrames || 0; 438 var b = this._data[a]; 439 return null == b ? 0 : b.frames.length 440 }, b.getAnimation = function (a) { 441 return this._data[a] 442 }, b.getFrame = function (a) { 443 var b; 444 return this._frames && (b = this._frames[a]) ? b : null 445 }, b.getFrameBounds = function (a, b) { 446 var c = this.getFrame(a); 447 return c ? (b || new createjs.Rectangle).setValues(-c.regX, -c.regY, c.rect.width, c.rect.height) : null 448 }, b.toString = function () { 449 return "[SpriteSheet]" 450 }, b.clone = function () { 451 throw"SpriteSheet cannot be cloned." 452 }, b._parseData = function (a) { 453 var b, c, d, e; 454 if (null != a) { 455 if (this.framerate = a.framerate || 0, a.images && (c = a.images.length) > 0) for (e = this._images = [], b = 0; c > b; b++) { 456 var f = a.images[b]; 457 if ("string" == typeof f) { 458 var g = f; 459 f = document.createElement("img"), f.src = g 460 }
vendor: 4,137 bytes, lines 461-567
461 e.push(f), f.getContext || f.naturalWidth || (this._loadCount++, this.complete = ! 1, function (a, b) { 462 f.onload = function () { 463 a._handleImageLoad(b) 464 } 465 }(this, g), function (a, b) { 466 f.onerror = function () { 467 a._handleImageError(b) 468 } 469 }(this, g)) 470 } 471 if (null == a.frames) ; else if (Array.isArray(a.frames)) for (this._frames = [], e = a.frames, b = 0, c = e.length; c > b; b++) { 472 var h = e[b]; 473 this._frames.push({ 474 image: this._images[h[4] ? h[4] : 0], 475 rect: new createjs.Rectangle(h[0], h[1], h[2], h[3]), 476 regX: h[5] || 0, 477 regY: h[6] || 0 478 }) 479 } else d = a.frames, this._frameWidth = d.width, this._frameHeight = d.height, this._regX = d.regX || 0, this._regY = d.regY || 0, this._spacing = d.spacing || 0, this._margin = d.margin || 0, this._numFrames = d.count, 0 == this._loadCount && this._calculateFrames(); 480 if (this._animations = [], null != (d = a.animations)) { 481 this._data = {}; 482 var i; 483 for (i in d) { 484 var j = {name: i}, k = d[i]; 485 if ("number" == typeof k) e = j.frames = [k]; else if (Array.isArray(k)) if (1 == k.length) j.frames = [k[0]]; else for (j.speed = k[3], j.next = k[2], e = j.frames = [], b = k[0]; b <= k[1]; b++) e.push(b); else { 486 j.speed = k.speed, j.next = k.next; 487 var l = k.frames; 488 e = j.frames = "number" == typeof l ? [l] : l.slice(0) 489 } 490 (j.next === ! 0 || void 0 === j.next) && (j.next = i), (j.next === ! 1 || e.length < 2 && j.next == i) && (j.next = null), j.speed || (j.speed = 1), this._animations.push(i), this._data[i] = j 491 } 492 } 493 } 494 }, b._handleImageLoad = function (a) { 495 0 == --this._loadCount && (this._calculateFrames(), this.complete = ! 0, this.dispatchEvent("complete")) 496 }, b._handleImageError = function (a) { 497 var b = new createjs.Event("error"); 498 b.src = a, this.dispatchEvent(b), 0 == --this._loadCount && this.dispatchEvent("complete") 499 }, b._calculateFrames = function () { 500 if ( ! this._frames && 0 != this._frameWidth) { 501 this._frames = []; 502 var a = this._numFrames || 1e5, b = 0, c = this._frameWidth, d = this._frameHeight, e = this._spacing, 503 f = this._margin; 504 a:for (var g = 0, h = this._images; g < h.length; g++) for (var i = h[g], j = i.width, k = i.height, l = f; k - f - d >= l;) { 505 for (var m = f; j - f - c >= m;) { 506 if (b >= a) break a; 507 b++, this._frames.push({ 508 image: i, 509 rect: new createjs.Rectangle(m, l, c, d), 510 regX: this._regX, 511 regY: this._regY 512 }), m += c + e 513 } 514 l += d + e 515 } 516 this._numFrames = b 517 } 518 }, createjs.SpriteSheet = createjs.promote(a, "EventDispatcher") 519}(), this.createjs = this.createjs || {}, function () { 520 "use strict"; 521 522 function a() { 523 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() 524 } 525 526 var b = a.prototype, c = a; 527 a.getRGB = function (a, b, c, d) { 528 return null != a && null == c && (d = b, c = 255 & a, b = a >> 8 & 255, a = a >> 16 & 255), null == d ? "rgb(" + a + "," + b + "," + c + ")" : "rgba(" + a + "," + b + "," + c + "," + d + ")" 529 }, a.getHSL = function (a, b, c, d) { 530 return null == d ? "hsl(" + a % 360 + "," + b + "%," + c + "%)" : "hsla(" + a % 360 + "," + b + "%," + c + "%," + d + ")" 531 }, a.BASE_64 = { 532 A: 0, 533 B: 1, 534 C: 2, 535 D: 3, 536 E: 4, 537 F: 5, 538 G: 6, 539 H: 7, 540 I: 8, 541 J: 9, 542 K: 10, 543 L: 11, 544 M: 12, 545 N: 13, 546 O: 14, 547 P: 15, 548 Q: 16, 549 R: 17, 550 S: 18, 551 T: 19, 552 U: 20, 553 V: 21, 554 W: 22, 555 X: 23, 556 Y: 24, 557 Z: 25, 558 a: 26, 559 b: 27, 560 c: 28, 561 d: 29, 562 e: 30, 563 f: 31, 564 g: 32, 565 h: 33, 566 i: 34, 567 j: 35,
vendor: 9,398 bytes, lines 568-743
568 k: 36, 569 l: 37, 570 m: 38, 571 n: 39, 572 o: 40, 573 p: 41, 574 q: 42, 575 r: 43, 576 s: 44, 577 t: 45, 578 u: 46, 579 v: 47, 580 w: 48, 581 x: 49, 582 y: 50, 583 z: 51, 584 0: 52, 585 1: 53, 586 2: 54, 587 3: 55, 588 4: 56, 589 5: 57, 590 6: 58, 591 7: 59, 592 8: 60, 593 9: 61, 594 "+": 62, 595 "/": 63 596 }, a.STROKE_CAPS_MAP = ["butt", "round", "square"], a.STROKE_JOINTS_MAP = ["miter", "round", "bevel"]; 597 var d = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); 598 d.getContext && (a._ctx = d.getContext("2d"), d.width = d.height = 1), b.getInstructions = function () { 599 return this._updateInstructions(), this._instructions 600 }; 601 try { 602 Object.defineProperties(b, {instructions: {get: b.getInstructions}}) 603 } catch (e) { 604 } 605 b.isEmpty = function () { 606 return ! (this._instructions.length || this._activeInstructions.length) 607 }, b.draw = function (a, b) { 608 this._updateInstructions(); 609 for (var c = this._instructions, d = this._storeIndex, e = c.length; e > d; d++) c[d].exec(a, b) 610 }, b.drawAsPath = function (a) { 611 this._updateInstructions(); 612 for (var b, c = this._instructions, d = this._storeIndex, e = c.length; e > d; d++) (b = c[d]).path !== ! 1 && b.exec(a) 613 }, b.moveTo = function (a, b) { 614 return this.append(new c.MoveTo(a, b), ! 0) 615 }, b.lineTo = function (a, b) { 616 return this.append(new c.LineTo(a, b)) 617 }, b.arcTo = function (a, b, d, e, f) { 618 return this.append(new c.ArcTo(a, b, d, e, f)) 619 }, b.arc = function (a, b, d, e, f, g) { 620 return this.append(new c.Arc(a, b, d, e, f, g)) 621 }, b.quadraticCurveTo = function (a, b, d, e) { 622 return this.append(new c.QuadraticCurveTo(a, b, d, e)) 623 }, b.bezierCurveTo = function (a, b, d, e, f, g) { 624 return this.append(new c.BezierCurveTo(a, b, d, e, f, g)) 625 }, b.rect = function (a, b, d, e) { 626 return this.append(new c.Rect(a, b, d, e)) 627 }, b.closePath = function () { 628 return this._activeInstructions.length ? this.append(new c.ClosePath) : this 629 }, b.clear = function () { 630 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 631 }, b.beginFill = function (a) { 632 return this._setFill(a ? new c.Fill(a) : null) 633 }, b.beginLinearGradientFill = function (a, b, d, e, f, g) { 634 return this._setFill((new c.Fill).linearGradient(a, b, d, e, f, g)) 635 }, b.beginRadialGradientFill = function (a, b, d, e, f, g, h, i) { 636 return this._setFill((new c.Fill).radialGradient(a, b, d, e, f, g, h, i)) 637 }, b.beginBitmapFill = function (a, b, d) { 638 return this._setFill(new c.Fill(null, d).bitmap(a, b)) 639 }, b.endFill = function () { 640 return this.beginFill() 641 }, b.setStrokeStyle = function (a, b, d, e, f) { 642 return this._updateInstructions( ! 0), this._strokeStyle = this.command = new c.StrokeStyle(a, b, d, e, f), this._stroke && (this._stroke.ignoreScale = f), this._strokeIgnoreScale = f, this 643 }, b.setStrokeDash = function (a, b) { 644 return this._updateInstructions( ! 0), this._strokeDash = this.command = new c.StrokeDash(a, b), this 645 }, b.beginStroke = function (a) { 646 return this._setStroke(a ? new c.Stroke(a) : null) 647 }, b.beginLinearGradientStroke = function (a, b, d, e, f, g) { 648 return this._setStroke((new c.Stroke).linearGradient(a, b, d, e, f, g)) 649 }, b.beginRadialGradientStroke = function (a, b, d, e, f, g, h, i) { 650 return this._setStroke((new c.Stroke).radialGradient(a, b, d, e, f, g, h, i)) 651 }, b.beginBitmapStroke = function (a, b) { 652 return this._setStroke((new c.Stroke).bitmap(a, b)) 653 }, b.endStroke = function () { 654 return this.beginStroke() 655 }, b.curveTo = b.quadraticCurveTo, b.drawRect = b.rect, b.drawRoundRect = function (a, b, c, d, e) { 656 return this.drawRoundRectComplex(a, b, c, d, e, e, e, e) 657 }, b.drawRoundRectComplex = function (a, b, d, e, f, g, h, i) { 658 return this.append(new c.RoundRect(a, b, d, e, f, g, h, i)) 659 }, b.drawCircle = function (a, b, d) { 660 return this.append(new c.Circle(a, b, d)) 661 }, b.drawEllipse = function (a, b, d, e) { 662 return this.append(new c.Ellipse(a, b, d, e)) 663 }, b.drawPolyStar = function (a, b, d, e, f, g) { 664 return this.append(new c.PolyStar(a, b, d, e, f, g)) 665 }, b.append = function (a, b) { 666 return this._activeInstructions.push(a), this.command = a, b || (this._dirty = ! 0), this 667 }, b.decodePath = function (b) { 668 for (var c = [this.moveTo, this.lineTo, this.quadraticCurveTo, this.bezierCurveTo, this.closePath], d = [2, 2, 4, 6, 0], e = 0, f = b.length, g = [], h = 0, i = 0, j = a.BASE_64; f > e;) { 669 var k = b.charAt(e), l = j[k], m = l >> 3, n = c[m]; 670 if ( ! n || 3 & l) throw"bad path data (@" + e + "): " + k; 671 var o = d[m]; 672 m || (h = i = 0), g.length = 0, e++; 673 for (var p = (l >> 2 & 1) + 2, q = 0; o > q; q++) { 674 var r = j[b.charAt(e)], s = r >> 5 ? -1 : 1; 675 r = (31 & r) << 6 | j[b.charAt(e + 1)], 3 == p && (r = r << 6 | j[b.charAt(e + 2)]), r = s * r / 10, q % 2 ? h = r += h : i = r += i, g[q] = r, e += p 676 } 677 n.apply(this, g) 678 } 679 return this 680 }, b.store = function () { 681 return this._updateInstructions( ! 0), this._storeIndex = this._instructions.length, this 682 }, b.unstore = function () { 683 return this._storeIndex = 0, this 684 }, b.clone = function () { 685 var b = new a; 686 return b.command = this.command, b._stroke = this._stroke, b._strokeStyle = this._strokeStyle, b._strokeDash = this._strokeDash, b._strokeIgnoreScale = this._strokeIgnoreScale, b._fill = this._fill, b._instructions = this._instructions.slice(), b._commitIndex = this._commitIndex, b._activeInstructions = this._activeInstructions.slice(), b._dirty = this._dirty, b._storeIndex = this._storeIndex, b 687 }, b.toString = function () { 688 return "[Graphics]" 689 }, b.mt = b.moveTo, b.lt = b.lineTo, b.at = b.arcTo, b.bt = b.bezierCurveTo, b.qt = b.quadraticCurveTo, b.a = b.arc, b.r = b.rect, b.cp = b.closePath, b.c = b.clear, b.f = b.beginFill, b.lf = b.beginLinearGradientFill, b.rf = b.beginRadialGradientFill, b.bf = b.beginBitmapFill, b.ef = b.endFill, b.ss = b.setStrokeStyle, b.sd = b.setStrokeDash, b.s = b.beginStroke, b.ls = b.beginLinearGradientStroke, b.rs = b.beginRadialGradientStroke, b.bs = b.beginBitmapStroke, b.es = b.endStroke, b.dr = b.drawRect, b.rr = b.drawRoundRect, b.rc = b.drawRoundRectComplex, b.dc = b.drawCircle, b.de = b.drawEllipse, b.dp = b.drawPolyStar, b.p = b.decodePath, b._updateInstructions = function (b) { 690 var c = this._instructions, d = this._activeInstructions, e = this._commitIndex; 691 if (this._dirty && d.length) { 692 c.length = e, c.push(a.beginCmd); 693 var f = d.length, g = c.length; 694 c.length = g + f; 695 for (var h = 0; f > h; h++) c[h + g] = d[h]; 696 this._fill && c.push(this._fill), this._stroke && (this._strokeDash !== this._oldStrokeDash && (this._oldStrokeDash = this._strokeDash, c.push(this._strokeDash)), this._strokeStyle !== this._oldStrokeStyle && (this._oldStrokeStyle = this._strokeStyle, c.push(this._strokeStyle)), c.push(this._stroke)), this._dirty = ! 1 697 } 698 b && (d.length = 0, this._commitIndex = c.length) 699 }, b._setFill = function (a) { 700 return this._updateInstructions( ! 0), this.command = this._fill = a, this 701 }, b._setStroke = function (a) { 702 return this._updateInstructions( ! 0), (this.command = this._stroke = a) && (a.ignoreScale = this._strokeIgnoreScale), this 703 }, (c.LineTo = function (a, b) { 704 this.x = a, this.y = b 705 }).prototype.exec = function (a) { 706 a.lineTo(this.x, this.y) 707 }, (c.MoveTo = function (a, b) { 708 this.x = a, this.y = b 709 }).prototype.exec = function (a) { 710 a.moveTo(this.x, this.y) 711 }, (c.ArcTo = function (a, b, c, d, e) { 712 this.x1 = a, this.y1 = b, this.x2 = c, this.y2 = d, this.radius = e 713 }).prototype.exec = function (a) { 714 a.arcTo(this.x1, this.y1, this.x2, this.y2, this.radius) 715 }, (c.Arc = function (a, b, c, d, e, f) { 716 this.x = a, this.y = b, this.radius = c, this.startAngle = d, this.endAngle = e, this.anticlockwise = !! f 717 }).prototype.exec = function (a) { 718 a.arc(this.x, this.y, this.radius, this.startAngle, this.endAngle, this.anticlockwise) 719 }, (c.QuadraticCurveTo = function (a, b, c, d) { 720 this.cpx = a, this.cpy = b, this.x = c, this.y = d 721 }).prototype.exec = function (a) { 722 a.quadraticCurveTo(this.cpx, this.cpy, this.x, this.y) 723 }, (c.BezierCurveTo = function (a, b, c, d, e, f) { 724 this.cp1x = a, this.cp1y = b, this.cp2x = c, this.cp2y = d, this.x = e, this.y = f 725 }).prototype.exec = function (a) { 726 a.bezierCurveTo(this.cp1x, this.cp1y, this.cp2x, this.cp2y, this.x, this.y) 727 }, (c.Rect = function (a, b, c, d) { 728 this.x = a, this.y = b, this.w = c, this.h = d 729 }).prototype.exec = function (a) { 730 a.rect(this.x, this.y, this.w, this.h) 731 }, (c.ClosePath = function () { 732 }).prototype.exec = function (a) { 733 a.closePath() 734 }, (c.BeginPath = function () { 735 }).prototype.exec = function (a) { 736 a.beginPath() 737 }, b = (c.Fill = function (a, b) { 738 this.style = a, this.matrix = b 739 }).prototype, b.exec = function (a) { 740 if (this.style) { 741 a.fillStyle = this.style; 742 var b = this.matrix; 743 b && (a.save(), a.transform(b.a, b.b, b.c, b.d, b.tx, b.ty)), a.fill(), b && a.restore(
vendor: 13,114 bytes, lines 743-909
743) 744 } 745 }, b.linearGradient = function (b, c, d, e, f, g) { 746 for (var h = this.style = a._ctx.createLinearGradient(d, e, f, g), i = 0, j = b.length; j > i; i++) h.addColorStop(c[i], b[i]); 747 return h.props = {colors: b, ratios: c, x0: d, y0: e, x1: f, y1: g, type: "linear"}, this 748 }, b.radialGradient = function (b, c, d, e, f, g, h, i) { 749 for (var j = this.style = a._ctx.createRadialGradient(d, e, f, g, h, i), k = 0, l = b.length; l > k; k++) j.addColorStop(c[k], b[k]); 750 return j.props = {colors: b, ratios: c, x0: d, y0: e, r0: f, x1: g, y1: h, r1: i, type: "radial"}, this 751 }, b.bitmap = function (b, c) { 752 if (b.naturalWidth || b.getContext || b.readyState >= 2) { 753 var d = this.style = a._ctx.createPattern(b, c || ""); 754 d.props = {image: b, repetition: c, type: "bitmap"} 755 } 756 return this 757 }, b.path = ! 1, b = (c.Stroke = function (a, b) { 758 this.style = a, this.ignoreScale = b 759 }).prototype, b.exec = function (a) { 760 this.style && (a.strokeStyle = this.style, this.ignoreScale && (a.save(), a.setTransform(1, 0, 0, 1, 0, 0)), a.stroke(), this.ignoreScale && a.restore()) 761 }, b.linearGradient = c.Fill.prototype.linearGradient, b.radialGradient = c.Fill.prototype.radialGradient, b.bitmap = c.Fill.prototype.bitmap, b.path = ! 1, b = (c.StrokeStyle = function (a, b, c, d, e) { 762 this.width = a, this.caps = b, this.joints = c, this.miterLimit = d, this.ignoreScale = e 763 }).prototype, b.exec = function (b) { 764 b.lineWidth = null == this.width ? "1" : this.width, b.lineCap = null == this.caps ? "butt" : isNaN(this.caps) ? this.caps : a.STROKE_CAPS_MAP[this.caps], b.lineJoin = null == this.joints ? "miter" : isNaN(this.joints) ? this.joints : a.STROKE_JOINTS_MAP[this.joints], b.miterLimit = null == this.miterLimit ? "10" : this.miterLimit, b.ignoreScale = null == this.ignoreScale ? ! 1 : this.ignoreScale 765 }, b.path = ! 1, (c.StrokeDash = function (a, b) { 766 this.segments = a, this.offset = b || 0 767 }).prototype.exec = function (a) { 768 a.setLineDash && (a.setLineDash(this.segments || c.StrokeDash.EMPTY_SEGMENTS), a.lineDashOffset = this.offset || 0) 769 }, c.StrokeDash.EMPTY_SEGMENTS = [], (c.RoundRect = function (a, b, c, d, e, f, g, h) { 770 this.x = a, this.y = b, this.w = c, this.h = d, this.radiusTL = e, this.radiusTR = f, this.radiusBR = g, this.radiusBL = h 771 }).prototype.exec = function (a) { 772 var b = (j > i ? i : j) / 2, c = 0, d = 0, e = 0, f = 0, g = this.x, h = this.y, i = this.w, j = this.h, 773 k = this.radiusTL, l = this.radiusTR, m = this.radiusBR, n = this.radiusBL; 774 0 > k && (k *= c = -1), k > b && (k = b), 0 > l && (l *= d = -1), l > b && (l = b), 0 > m && (m *= e = -1), m > b && (m = b), 0 > n && (n *= f = -1), n > b && (n = b), a.moveTo(g + i - l, h), a.arcTo(g + i + l * d, h - l * d, g + i, h + l, l), a.lineTo(g + i, h + j - m), a.arcTo(g + i + m * e, h + j + m * e, g + i - m, h + j, m), a.lineTo(g + n, h + j), a.arcTo(g - n * f, h + j + n * f, g, h + j - n, n), a.lineTo(g, h + k), a.arcTo(g - k * c, h - k * c, g + k, h, k), a.closePath() 775 }, (c.Circle = function (a, b, c) { 776 this.x = a, this.y = b, this.radius = c 777 }).prototype.exec = function (a) { 778 a.arc(this.x, this.y, this.radius, 0, 2 * Math.PI) 779 }, (c.Ellipse = function (a, b, c, d) { 780 this.x = a, this.y = b, this.w = c, this.h = d 781 }).prototype.exec = function (a) { 782 var b = this.x, c = this.y, d = this.w, e = this.h, f = .5522848, g = d / 2 * f, h = e / 2 * f, i = b + d, 783 j = c + e, k = b + d / 2, l = c + e / 2; 784 a.moveTo(b, l), a.bezierCurveTo(b, l - h, k - g, c, k, c), a.bezierCurveTo(k + g, c, i, l - h, i, l), a.bezierCurveTo(i, l + h, k + g, j, k, j), a.bezierCurveTo(k - g, j, b, l + h, b, l) 785 }, (c.PolyStar = function (a, b, c, d, e, f) { 786 this.x = a, this.y = b, this.radius = c, this.sides = d, this.pointSize = e, this.angle = f 787 }).prototype.exec = function (a) { 788 var b = this.x, c = this.y, d = this.radius, e = (this.angle || 0) / 180 * Math.PI, f = this.sides, 789 g = 1 - (this.pointSize || 0), h = Math.PI / f; 790 a.moveTo(b + Math.cos(e) * d, c + Math.sin(e) * d); 791 for (var i = 0; f > i; i++) e += h, 1 != g && a.lineTo(b + Math.cos(e) * d * g, c + Math.sin(e) * d * g), e += h, a.lineTo(b + Math.cos(e) * d, c + Math.sin(e) * d); 792 a.closePath() 793 }, a.beginCmd = new c.BeginPath, createjs.Graphics = a 794}(), this.createjs = this.createjs || {}, function () { 795 "use strict"; 796 797 function a() { 798 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, 799 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 800 } 801 802 var b = createjs.extend(a, createjs.EventDispatcher); 803 a._MOUSE_EVENTS = ["click", "dblclick", "mousedown", "mouseout", "mouseover", "pressmove", "pressup", "rollout", "rollover"], a.suppressCrossDomainErrors = ! 1, a._snapToPixelEnabled = ! 1; 804 var c = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); 805 c.getContext && (a._hitTestCanvas = c, a._hitTestContext = c.getContext("2d"), c.width = c.height = 1), a._nextCacheID = 1, b.getStage = function () { 806 for (var a = this, b = createjs.Stage; a.parent;) a = a.parent; 807 return a instanceof b ? a : null 808 }; 809 try { 810 Object.defineProperties(b, {stage: {get: b.getStage}}) 811 } catch (d) { 812 } 813 b.isVisible = function () { 814 return !! (this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY) 815 }, b.draw = function (a, b) { 816 var c = this.cacheCanvas; 817 if (b || ! c) return ! 1; 818 var d = this._cacheScale; 819 return a.drawImage(c, this._cacheOffsetX + this._filterOffsetX, this._cacheOffsetY + this._filterOffsetY, c.width / d, c.height / d), ! 0 820 }, b.updateContext = function (b) { 821 var c = this, d = c.mask, e = c._props.matrix; 822 d && d.graphics && ! d.graphics.isEmpty() && (d.getMatrix(e), b.transform(e.a, e.b, e.c, e.d, e.tx, e.ty), d.graphics.drawAsPath(b), b.clip(), e.invert(), b.transform(e.a, e.b, e.c, e.d, e.tx, e.ty)), this.getMatrix(e); 823 var f = e.tx, g = e.ty; 824 a._snapToPixelEnabled && c.snapToPixel && (f = f + (0 > f ? -.5 : .5) | 0, g = g + (0 > g ? -.5 : .5) | 0), b.transform(e.a, e.b, e.c, e.d, f, g), b.globalAlpha *= c.alpha, c.compositeOperation && (b.globalCompositeOperation = c.compositeOperation), c.shadow && this._applyShadow(b, c.shadow) 825 }, b.cache = function (a, b, c, d, e) { 826 e = e || 1, this.cacheCanvas || (this.cacheCanvas = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas")), this._cacheWidth = c, this._cacheHeight = d, this._cacheOffsetX = a, this._cacheOffsetY = b, this._cacheScale = e, this.updateCache() 827 }, b.updateCache = function (b) { 828 var c = this.cacheCanvas; 829 if ( ! c) throw"cache() must be called before updateCache()"; 830 var d = this._cacheScale, e = this._cacheOffsetX * d, f = this._cacheOffsetY * d, g = this._cacheWidth, 831 h = this._cacheHeight, i = c.getContext("2d"), j = this._getFilterBounds(); 832 e += this._filterOffsetX = j.x, f += this._filterOffsetY = j.y, g = Math.ceil(g * d) + j.width, h = Math.ceil(h * d) + j.height, g != c.width || h != c.height ? (c.width = g, c.height = h) : b || i.clearRect(0, 0, g + 1, h + 1), i.save(), i.globalCompositeOperation = b, i.setTransform(d, 0, 0, d, -e, -f), this.draw(i, ! 0), this._applyFilters(), i.restore(), this.cacheID = a._nextCacheID++ 833 }, b.uncache = function () { 834 this._cacheDataURL = this.cacheCanvas = null, this.cacheID = this._cacheOffsetX = this._cacheOffsetY = this._filterOffsetX = this._filterOffsetY = 0, this._cacheScale = 1 835 }, b.getCacheDataURL = function () { 836 return this.cacheCanvas ? (this.cacheID != this._cacheDataURLID && (this._cacheDataURL = this.cacheCanvas.toDataURL()), this._cacheDataURL) : null 837 }, b.localToGlobal = function (a, b, c) { 838 return this.getConcatenatedMatrix(this._props.matrix).transformPoint(a, b, c || new createjs.Point) 839 }, b.globalToLocal = function (a, b, c) { 840 return this.getConcatenatedMatrix(this._props.matrix).invert().transformPoint(a, b, c || new createjs.Point) 841 }, b.localToLocal = function (a, b, c, d) { 842 return d = this.localToGlobal(a, b, d), c.globalToLocal(d.x, d.y, d) 843 }, b.setTransform = function (a, b, c, d, e, f, g, h, i) { 844 return this.x = a || 0, this.y = b || 0, this.scaleX = null == c ? 1 : c, this.scaleY = null == d ? 1 : d, this.rotation = e || 0, this.skewX = f || 0, this.skewY = g || 0, this.regX = h || 0, this.regY = i || 0, this 845 }, b.getMatrix = function (a) { 846 var b = this, c = a && a.identity() || new createjs.Matrix2D; 847 return b.transformMatrix ? c.copy(b.transformMatrix) : c.appendTransform(b.x, b.y, b.scaleX, b.scaleY, b.rotation, b.skewX, b.skewY, b.regX, b.regY) 848 }, b.getConcatenatedMatrix = function (a) { 849 for (var b = this, c = this.getMatrix(a); b = b.parent;) c.prependMatrix(b.getMatrix(b._props.matrix)); 850 return c 851 }, b.getConcatenatedDisplayProps = function (a) { 852 a = a ? a.identity() : new createjs.DisplayProps; 853 var b = this, c = b.getMatrix(a.matrix); 854 do a.prepend(b.visible, b.alpha, b.shadow, b.compositeOperation), b != this && c.prependMatrix(b.getMatrix(b._props.matrix)); while (b = b.parent); 855 return a 856 }, b.hitTest = function (b, c) { 857 var d = a._hitTestContext; 858 d.setTransform(1, 0, 0, 1, -b, -c), this.draw(d); 859 var e = this._testHit(d); 860 return d.setTransform(1, 0, 0, 1, 0, 0), d.clearRect(0, 0, 2, 2), e 861 }, b.set = function (a) { 862 for (var b in a) this[b] = a[b]; 863 return this 864 }, b.getBounds = function () { 865 if (this._bounds) return this._rectangle.copy(this._bounds); 866 var a = this.cacheCanvas; 867 if (a) { 868 var b = this._cacheScale; 869 return this._rectangle.setValues(this._cacheOffsetX, this._cacheOffsetY, a.width / b, a.height / b) 870 } 871 return null 872 }, b.getTransformedBounds = function () { 873 return this._getBounds() 874 }, b.setBounds = function (a, b, c, d) { 875 null == a && (this._bounds = a), this._bounds = (this._bounds || new createjs.Rectangle).setValues(a, b, c, d) 876 }, b.clone = function () { 877 return this._cloneProps(new a) 878 }, b.toString = function () { 879 return "[DisplayObject (name=" + this.name + ")]" 880 }, b._cloneProps = function (a) { 881 return a.alpha = this.alpha, a.mouseEnabled = this.mouseEnabled, a.tickEnabled = this.tickEnabled, a.name = this.name, a.regX = this.regX, a.regY = this.regY, a.rotation = this.rotation, a.scaleX = this.scaleX, a.scaleY = this.scaleY, a.shadow = this.shadow, a.skewX = this.skewX, a.skewY = this.skewY, a.visible = this.visible, a.x = this.x, a.y = this.y, a.compositeOperation = this.compositeOperation, a.snapToPixel = this.snapToPixel, a.filters = null == this.filters ? null : this.filters.slice(0), a.mask = this.mask, a.hitArea = this.hitArea, a.cursor = this.cursor, a._bounds = this._bounds, a 882 }, b._applyShadow = function (a, b) { 883 b = b || Shadow.identity, a.shadowColor = b.color, a.shadowOffsetX = b.offsetX, a.shadowOffsetY = b.offsetY, a.shadowBlur = b.blur 884 }, b._tick = function (a) { 885 var b = this._listeners; 886 b && b.tick && (a.target = null, a.propagationStopped = a.immediatePropagationStopped = ! 1, this.dispatchEvent(a)) 887 }, b._testHit = function (b) { 888 try { 889 var c = b.getImageData(0, 0, 1, 1).data[3] > 1 890 } catch (d) { 891 if ( ! a.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." 892 } 893 return c 894 }, b._applyFilters = function () { 895 if (this.filters && 0 != this.filters.length && this.cacheCanvas) for (var a = this.filters.length, b = this.cacheCanvas.getContext("2d"), c = this.cacheCanvas.width, d = this.cacheCanvas.height, e = 0; a > e; e++) this.filters[e].applyFilter(b, 0, 0, c, d) 896 }, b._getFilterBounds = function (a) { 897 var b, c = this.filters, d = this._rectangle.setValues(0, 0, 0, 0); 898 if ( ! c || ! (b = c.length)) return d; 899 for (var e = 0; b > e; e++) { 900 var f = this.filters[e]; 901 f.getBounds && f.getBounds(d) 902 } 903 return d 904 }, b._getBounds = function (a, b) { 905 return this._transformBounds(this.getBounds(), a, b) 906 }, b._transformBounds = function (a, b, c) { 907 if ( ! a) return a; 908 var d = a.x, e = a.y, f = a.width, g = a.height, h = this._props.matrix; 909 h = c ? h.identity() : this.getMatrix(h), (d || e) && h.appendTransform(0, 0, 1, 1, 0, 0, 0, -d, -e), b && h.prependM
vendor: 5,226 bytes, lines 909-1029
909atrix(b); 910 var i = f * h.a, j = f * h.b, k = g * h.c, l = g * h.d, m = h.tx, n = h.ty, o = m, p = m, q = n, r = n; 911 return (d = i + m) < o ? o = d : d > p && (p = d), (d = i + k + m) < o ? o = d : d > p && (p = d), (d = k + m) < o ? o = d : d > p && (p = d), (e = j + n) < q ? q = e : e > r && (r = e), (e = j + l + n) < q ? q = e : e > r && (r = e), (e = l + n) < q ? q = e : e > r && (r = e), a.setValues(o, q, p - o, r - q) 912 }, b._hasMouseEventListener = function () { 913 for (var b = a._MOUSE_EVENTS, c = 0, d = b.length; d > c; c++) if (this.hasEventListener(b[c])) return ! 0; 914 return !! this.cursor 915 }, createjs.DisplayObject = createjs.promote(a, "EventDispatcher") 916}(), this.createjs = this.createjs || {}, function () { 917 "use strict"; 918 919 function a() { 920 this.DisplayObject_constructor(), this.children = [], this.mouseChildren = ! 0, this.tickChildren = ! 0 921 } 922 923 var b = createjs.extend(a, createjs.DisplayObject); 924 b.getNumChildren = function () { 925 return this.children.length 926 }; 927 try { 928 Object.defineProperties(b, {numChildren: {get: b.getNumChildren}}) 929 } catch (c) { 930 } 931 b.initialize = a, b.isVisible = function () { 932 var a = this.cacheCanvas || this.children.length; 933 return !! (this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a) 934 }, b.draw = function (a, b) { 935 if (this.DisplayObject_draw(a, b)) return ! 0; 936 for (var c = this.children.slice(), d = 0, e = c.length; e > d; d++) { 937 var f = c[d]; 938 f.isVisible() && (a.save(), f.updateContext(a), f.draw(a), a.restore()) 939 } 940 return ! 0 941 }, b.addChild = function (a) { 942 if (null == a) return a; 943 var b = arguments.length; 944 if (b > 1) { 945 for (var c = 0; b > c; c++) this.addChild(arguments[c]); 946 return arguments[b - 1] 947 } 948 return a.parent && a.parent.removeChild(a), a.parent = this, this.children.push(a), a.dispatchEvent("added"), a 949 }, b.addChildAt = function (a, b) { 950 var c = arguments.length, d = arguments[c - 1]; 951 if (0 > d || d > this.children.length) return arguments[c - 2]; 952 if (c > 2) { 953 for (var e = 0; c - 1 > e; e++) this.addChildAt(arguments[e], d + e); 954 return arguments[c - 2] 955 } 956 return a.parent && a.parent.removeChild(a), a.parent = this, this.children.splice(b, 0, a), a.dispatchEvent("added"), a 957 }, b.removeChild = function (a) { 958 var b = arguments.length; 959 if (b > 1) { 960 for (var c = ! 0, d = 0; b > d; d++) c = c && this.removeChild(arguments[d]); 961 return c 962 } 963 return this.removeChildAt(createjs.indexOf(this.children, a)) 964 }, b.removeChildAt = function (a) { 965 var b = arguments.length; 966 if (b > 1) { 967 for (var c = [], d = 0; b > d; d++) c[d] = arguments[d]; 968 c.sort(function (a, b) { 969 return b - a 970 }); 971 for (var e = ! 0, d = 0; b > d; d++) e = e && this.removeChildAt(c[d]); 972 return e 973 } 974 if (0 > a || a > this.children.length - 1) return ! 1; 975 var f = this.children[a]; 976 return f && (f.parent = null), this.children.splice(a, 1), f.dispatchEvent("removed"), ! 0 977 }, b.removeAllChildren = function () { 978 for (var a = this.children; a.length;) this.removeChildAt(0) 979 }, b.getChildAt = function (a) { 980 return this.children[a] 981 }, b.getChildByName = function (a) { 982 for (var b = this.children, c = 0, d = b.length; d > c; c++) if (b[c].name == a) return b[c]; 983 return null 984 }, b.sortChildren = function (a) { 985 this.children.sort(a) 986 }, b.getChildIndex = function (a) { 987 return createjs.indexOf(this.children, a) 988 }, b.swapChildrenAt = function (a, b) { 989 var c = this.children, d = c[a], e = c[b]; 990 d && e && (c[a] = e, c[b] = d) 991 }, b.swapChildren = function (a, b) { 992 for (var c, d, e = this.children, f = 0, g = e.length; g > f && (e[f] == a && (c = f), e[f] == b && (d = f), null == c || null == d); f++) ; 993 f != g && (e[c] = b, e[d] = a) 994 }, b.setChildIndex = function (a, b) { 995 var c = this.children, d = c.length; 996 if ( ! (a.parent != this || 0 > b || b >= d)) { 997 for (var e = 0; d > e && c[e] != a; e++) ; 998 e != d && e != b && (c.splice(e, 1), c.splice(b, 0, a)) 999 } 1000 }, b.contains = function (a) { 1001 for (; a;) { 1002 if (a == this) return ! 0; 1003 a = a.parent 1004 } 1005 return ! 1 1006 }, b.hitTest = function (a, b) { 1007 return null != this.getObjectUnderPoint(a, b) 1008 }, b.getObjectsUnderPoint = function (a, b, c) { 1009 var d = [], e = this.localToGlobal(a, b); 1010 return this._getObjectsUnderPoint(e.x, e.y, d, c > 0, 1 == c), d 1011 }, b.getObjectUnderPoint = function (a, b, c) { 1012 var d = this.localToGlobal(a, b); 1013 return this._getObjectsUnderPoint(d.x, d.y, null, c > 0, 1 == c) 1014 }, b.getBounds = function () { 1015 return this._getBounds(null, ! 0) 1016 }, b.getTransformedBounds = function () { 1017 return this._getBounds() 1018 }, b.clone = function (b) { 1019 var c = this._cloneProps(new a); 1020 return b && this._cloneChildren(c), c 1021 }, b.toString = function () { 1022 return "[Container (name=" + this.name + ")]" 1023 }, b._tick = function (a) { 1024 if (this.tickChildren) for (var b = this.children.length - 1; b >= 0; b--) { 1025 var c = this.children[b]; 1026 c.tickEnabled && c._tick && c._tick(a) 1027 } 1028 this.DisplayObject__tick(a) 1029 }
vendor: 1,649 bytes, lines 1029-1057
1029, b._cloneChildren = function (a) { 1030 a.children.length && a.removeAllChildren(); 1031 for (var b = a.children, c = 0, d = this.children.length; d > c; c++) { 1032 var e = this.children[c].clone( ! 0); 1033 e.parent = a, b.push(e) 1034 } 1035 }, b._getObjectsUnderPoint = function (b, c, d, e, f, g) { 1036 if (g = g || 0, ! g && ! this._testMask(this, b, c)) return null; 1037 var h, i = createjs.DisplayObject._hitTestContext; 1038 f = f || e && this._hasMouseEventListener(); 1039 for (var j = this.children, k = j.length, l = k - 1; l >= 0; l--) { 1040 var m = j[l], n = m.hitArea; 1041 if (m.visible && (n || m.isVisible()) && ( ! e || m.mouseEnabled) && (n || this._testMask(m, b, c))) if ( ! n && m instanceof a) { 1042 var o = m._getObjectsUnderPoint(b, c, d, e, f, g + 1); 1043 if ( ! d && o) return e && ! this.mouseChildren ? this : o 1044 } else { 1045 if (e && ! f && ! m._hasMouseEventListener()) continue; 1046 var p = m.getConcatenatedDisplayProps(m._props); 1047 if (h = p.matrix, n && (h.appendMatrix(n.getMatrix(n._props.matrix)), p.alpha = n.alpha), i.globalAlpha = p.alpha, i.setTransform(h.a, h.b, h.c, h.d, h.tx - b, h.ty - c), (n || m).draw(i), ! this._testHit(i)) continue; 1048 if (i.setTransform(1, 0, 0, 1, 0, 0), i.clearRect(0, 0, 2, 2), ! d) return e && ! this.mouseChildren ? this : m; 1049 d.push(m) 1050 } 1051 } 1052 return null 1053 }, b._testMask = function (a, b, c) { 1054 var d = a.mask; 1055 if ( ! d || ! d.graphics || d.graphics.isEmpty()) return ! 0; 1056 var e = this._props.matrix, f = a.parent; 1057 e = f ? f.getConcatenatedMatrix(e) : e.identity(), e = d.getMatrix(d._props.matrix).prependM
vendor: 21,231 bytes, lines 1057-1419
1057atrix(e); 1058 var g = createjs.DisplayObject._hitTestContext; 1059 return g.setTransform(e.a, e.b, e.c, e.d, e.tx - b, e.ty - c), d.graphics.drawAsPath(g), g.fillStyle = "#000", g.fill(), this._testHit(g) ? (g.setTransform(1, 0, 0, 1, 0, 0), g.clearRect(0, 0, 2, 2), ! 0) : ! 1 1060 }, b._getBounds = function (a, b) { 1061 var c = this.DisplayObject_getBounds(); 1062 if (c) return this._transformBounds(c, a, b); 1063 var d = this._props.matrix; 1064 d = b ? d.identity() : this.getMatrix(d), a && d.prependMatrix(a); 1065 for (var e = this.children.length, f = null, g = 0; e > g; g++) { 1066 var h = this.children[g]; 1067 h.visible && (c = h._getBounds(d)) && (f ? f.extend(c.x, c.y, c.width, c.height) : f = c.clone()) 1068 } 1069 return f 1070 }, createjs.Container = createjs.promote(a, "DisplayObject") 1071}(), this.createjs = this.createjs || {}, function () { 1072 "use strict"; 1073 1074 function a(a) { 1075 this.Container_constructor(), this.autoClear = ! 0, this.canvas = "string" == typeof a ? document.getElementById(a) : a, 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) 1076 } 1077 1078 var b = createjs.extend(a, createjs.Container); 1079 b._get_nextStage = function () { 1080 return this._nextStage 1081 }, b._set_nextStage = function (a) { 1082 this._nextStage && (this._nextStage._prevStage = null), a && (a._prevStage = this), this._nextStage = a 1083 }; 1084 try { 1085 Object.defineProperties(b, {nextStage: {get: b._get_nextStage, set: b._set_nextStage}}) 1086 } catch (c) { 1087 } 1088 b.update = function (a) { 1089 if (this.canvas && (this.tickOnUpdate && this.tick(a), this.dispatchEvent("drawstart", ! 1, ! 0) !== ! 1)) { 1090 createjs.DisplayObject._snapToPixelEnabled = this.snapToPixelEnabled; 1091 var b = this.drawRect, c = this.canvas.getContext("2d"); 1092 c.setTransform(1, 0, 0, 1, 0, 0), this.autoClear && (b ? c.clearRect(b.x, b.y, b.width, b.height) : c.clearRect(0, 0, this.canvas.width + 1, this.canvas.height + 1)), c.save(), this.drawRect && (c.beginPath(), c.rect(b.x, b.y, b.width, b.height), c.clip()), this.updateContext(c), this.draw(c, ! 1), c.restore(), this.dispatchEvent("drawend") 1093 } 1094 }, b.tick = function (a) { 1095 if (this.tickEnabled && this.dispatchEvent("tickstart", ! 1, ! 0) !== ! 1) { 1096 var b = new createjs.Event("tick"); 1097 if (a) for (var c in a) a.hasOwnProperty(c) && (b[c] = a[c]); 1098 this._tick(b), this.dispatchEvent("tickend") 1099 } 1100 }, b.handleEvent = function (a) { 1101 "tick" == a.type && this.update(a) 1102 }, b.clear = function () { 1103 if (this.canvas) { 1104 var a = this.canvas.getContext("2d"); 1105 a.setTransform(1, 0, 0, 1, 0, 0), a.clearRect(0, 0, this.canvas.width + 1, this.canvas.height + 1) 1106 } 1107 }, b.toDataURL = function (a, b) { 1108 var c, d = this.canvas.getContext("2d"), e = this.canvas.width, f = this.canvas.height; 1109 if (a) { 1110 c = d.getImageData(0, 0, e, f); 1111 var g = d.globalCompositeOperation; 1112 d.globalCompositeOperation = "destination-over", d.fillStyle = a, d.fillRect(0, 0, e, f) 1113 } 1114 var h = this.canvas.toDataURL(b || "image/png"); 1115 return a && (d.putImageData(c, 0, 0), d.globalCompositeOperation = g), h 1116 }, b.enableMouseOver = function (a) { 1117 if (this._mouseOverIntervalID && (clearInterval(this._mouseOverIntervalID), this._mouseOverIntervalID = null, 0 == a && this._testMouseOver( ! 0)), null == a) a = 20; else if (0 >= a) return; 1118 var b = this; 1119 this._mouseOverIntervalID = setInterval(function () { 1120 b._testMouseOver() 1121 }, 1e3 / Math.min(50, a)) 1122 }, b.enableDOMEvents = function (a) { 1123 null == a && (a = ! 0); 1124 var b, c, d = this._eventListeners; 1125 if ( ! a && d) { 1126 for (b in d) c = d[b], c.t.removeEventListener(b, c.f, ! 1); 1127 this._eventListeners = null 1128 } else if (a && ! d && this.canvas) { 1129 var e = window.addEventListener ? window : document, f = this; 1130 d = this._eventListeners = {}, d.mouseup = { 1131 t: e, f: function (a) { 1132 f._handleMouseUp(a) 1133 } 1134 }, d.mousemove = { 1135 t: e, f: function (a) { 1136 f._handleMouseMove(a) 1137 } 1138 }, d.dblclick = { 1139 t: this.canvas, f: function (a) { 1140 f._handleDoubleClick(a) 1141 } 1142 }, d.mousedown = { 1143 t: this.canvas, f: function (a) { 1144 f._handleMouseDown(a) 1145 } 1146 }; 1147 for (b in d) c = d[b], c.t.addEventListener(b, c.f, ! 1) 1148 } 1149 }, b.clone = function () { 1150 throw"Stage cannot be cloned." 1151 }, b.toString = function () { 1152 return "[Stage (name=" + this.name + ")]" 1153 }, b._getElementRect = function (a) { 1154 var b; 1155 try { 1156 b = a.getBoundingClientRect() 1157 } catch (c) { 1158 b = {top: a.offsetTop, left: a.offsetLeft, width: a.offsetWidth, height: a.offsetHeight} 1159 } 1160 var d = (window.pageXOffset || document.scrollLeft || 0) - (document.clientLeft || document.body.clientLeft || 0), 1161 e = (window.pageYOffset || document.scrollTop || 0) - (document.clientTop || document.body.clientTop || 0), 1162 f = window.getComputedStyle ? getComputedStyle(a, null) : a.currentStyle, 1163 g = parseInt(f.paddingLeft) + parseInt(f.borderLeftWidth), 1164 h = parseInt(f.paddingTop) + parseInt(f.borderTopWidth), 1165 i = parseInt(f.paddingRight) + parseInt(f.borderRightWidth), 1166 j = parseInt(f.paddingBottom) + parseInt(f.borderBottomWidth); 1167 return {left: b.left + d + g, right: b.right + d - i, top: b.top + e + h, bottom: b.bottom + e - j} 1168 }, b._getPointerData = function (a) { 1169 var b = this._pointerData[a]; 1170 return b || (b = this._pointerData[a] = {x: 0, y: 0}), b 1171 }, b._handleMouseMove = function (a) { 1172 a || (a = window.event), this._handlePointerMove(-1, a, a.pageX, a.pageY) 1173 }, b._handlePointerMove = function (a, b, c, d, e) { 1174 if (( ! this._prevStage || void 0 !== e) && this.canvas) { 1175 var f = this._nextStage, g = this._getPointerData(a), h = g.inBounds; 1176 this._updatePointerPosition(a, b, c, d), (h || g.inBounds || this.mouseMoveOutside) && (-1 === a && g.inBounds == ! h && this._dispatchMouseEvent(this, h ? "mouseleave" : "mouseenter", ! 1, a, g, b), this._dispatchMouseEvent(this, "stagemousemove", ! 1, a, g, b), this._dispatchMouseEvent(g.target, "pressmove", ! 0, a, g, b)), f && f._handlePointerMove(a, b, c, d, null) 1177 } 1178 }, b._updatePointerPosition = function (a, b, c, d) { 1179 var e = this._getElementRect(this.canvas); 1180 c -= e.left, d -= e.top; 1181 var f = this.canvas.width, g = this.canvas.height; 1182 c /= (e.right - e.left) / f, d /= (e.bottom - e.top) / g; 1183 var h = this._getPointerData(a); 1184 (h.inBounds = c >= 0 && d >= 0 && f - 1 >= c && g - 1 >= d) ? (h.x = c, h.y = d) : this.mouseMoveOutside && (h.x = 0 > c ? 0 : c > f - 1 ? f - 1 : c, h.y = 0 > d ? 0 : d > g - 1 ? g - 1 : d), h.posEvtObj = b, h.rawX = c, h.rawY = d, (a === this._primaryPointerID || -1 === a) && (this.mouseX = h.x, this.mouseY = h.y, this.mouseInBounds = h.inBounds) 1185 }, b._handleMouseUp = function (a) { 1186 this._handlePointerUp(-1, a, ! 1) 1187 }, b._handlePointerUp = function (a, b, c, d) { 1188 var e = this._nextStage, f = this._getPointerData(a); 1189 if ( ! this._prevStage || void 0 !== d) { 1190 var g = null, h = f.target; 1191 d || ! h && ! e || (g = this._getObjectsUnderPoint(f.x, f.y, null, ! 0)), f.down && (this._dispatchMouseEvent(this, "stagemouseup", ! 1, a, f, b, g), f.down = ! 1), g == h && this._dispatchMouseEvent(h, "click", ! 0, a, f, b), this._dispatchMouseEvent(h, "pressup", ! 0, a, f, b), c ? (a == this._primaryPointerID && (this._primaryPointerID = null), delete this._pointerData[a]) : f.target = null, e && e._handlePointerUp(a, b, c, d || g && this) 1192 } 1193 }, b._handleMouseDown = function (a) { 1194 this._handlePointerDown(-1, a, a.pageX, a.pageY) 1195 }, b._handlePointerDown = function (a, b, c, d, e) { 1196 this.preventSelection && b.preventDefault(), (null == this._primaryPointerID || -1 === a) && (this._primaryPointerID = a), null != d && this._updatePointerPosition(a, b, c, d); 1197 var f = null, g = this._nextStage, h = this._getPointerData(a); 1198 e || (f = h.target = this._getObjectsUnderPoint(h.x, h.y, null, ! 0)), h.inBounds && (this._dispatchMouseEvent(this, "stagemousedown", ! 1, a, h, b, f), h.down = ! 0), this._dispatchMouseEvent(f, "mousedown", ! 0, a, h, b), g && g._handlePointerDown(a, b, c, d, e || f && this) 1199 }, b._testMouseOver = function (a, b, c) { 1200 if ( ! this._prevStage || void 0 !== b) { 1201 var d = this._nextStage; 1202 if ( ! this._mouseOverIntervalID) return void (d && d._testMouseOver(a, b, c)); 1203 var e = this._getPointerData(-1); 1204 if (e && (a || this.mouseX != this._mouseOverX || this.mouseY != this._mouseOverY || ! this.mouseInBounds)) { 1205 var f, g, h, i = e.posEvtObj, j = c || i && i.target == this.canvas, k = null, l = -1, m = ""; 1206 ! b && (a || this.mouseInBounds && j) && (k = this._getObjectsUnderPoint(this.mouseX, this.mouseY, null, ! 0), this._mouseOverX = this.mouseX, this._mouseOverY = this.mouseY); 1207 var n = this._mouseOverTarget || [], o = n[n.length - 1], p = this._mouseOverTarget = []; 1208 for (f = k; f;) p.unshift(f), m || (m = f.cursor), f = f.parent; 1209 for (this.canvas.style.cursor = m, ! b && c && (c.canvas.style.cursor = m), g = 0, h = p.length; h > g && p[g] == n[g]; g++) l = g; 1210 for (o != k && this._dispatchMouseEvent(o, "mouseout", ! 0, -1, e, i, k), g = n.length - 1; g > l; g--) this._dispatchMouseEvent(n[g], "rollout", ! 1, -1, e, i, k); 1211 for (g = p.length - 1; g > l; g--) this._dispatchMouseEvent(p[g], "rollover", ! 1, -1, e, i, o); 1212 o != k && this._dispatchMouseEvent(k, "mouseover", ! 0, -1, e, i, o), d && d._testMouseOver(a, b || k && this, c || j && this) 1213 } 1214 } 1215 }, b._handleDoubleClick = function (a, b) { 1216 var c = null, d = this._nextStage, e = this._getPointerData(-1); 1217 b || (c = this._getObjectsUnderPoint(e.x, e.y, null, ! 0), this._dispatchMouseEvent(c, "dblclick", ! 0, -1, e, a)), d && d._handleDoubleClick(a, b || c && this) 1218 }, b._dispatchMouseEvent = function (a, b, c, d, e, f, g) { 1219 if (a && (c || a.hasEventListener(b))) { 1220 var h = new createjs.MouseEvent(b, c, ! 1, e.x, e.y, f, d, d === this._primaryPointerID || -1 === d, e.rawX, e.rawY, g); 1221 a.dispatchEvent(h) 1222 } 1223 }, createjs.Stage = createjs.promote(a, "Container") 1224}(), this.createjs = this.createjs || {}, function () { 1225 function a(a) { 1226 this.DisplayObject_constructor(), "string" == typeof a ? (this.image = document.createElement("img"), this.image.src = a) : this.image = a, this.sourceRect = null 1227 } 1228 1229 var b = createjs.extend(a, createjs.DisplayObject); 1230 b.initialize = a, b.isVisible = function () { 1231 var a = this.image, b = this.cacheCanvas || a && (a.naturalWidth || a.getContext || a.readyState >= 2); 1232 return !! (this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && b) 1233 }, b.draw = function (a, b) { 1234 if (this.DisplayObject_draw(a, b) || ! this.image) return ! 0; 1235 var c = this.image, d = this.sourceRect; 1236 if (d) { 1237 var e = d.x, f = d.y, g = e + d.width, h = f + d.height, i = 0, j = 0, k = c.width, l = c.height; 1238 0 > e && (i -= e, e = 0), g > k && (g = k), 0 > f && (j -= f, f = 0), h > l && (h = l), a.drawImage(c, e, f, g - e, h - f, i, j, g - e, h - f) 1239 } else a.drawImage(c, 0, 0); 1240 return ! 0 1241 }, b.getBounds = function () { 1242 var a = this.DisplayObject_getBounds(); 1243 if (a) return a; 1244 var b = this.image, c = this.sourceRect || b, d = b && (b.naturalWidth || b.getContext || b.readyState >= 2); 1245 return d ? this._rectangle.setValues(0, 0, c.width, c.height) : null 1246 }, b.clone = function () { 1247 var b = new a(this.image); 1248 return this.sourceRect && (b.sourceRect = this.sourceRect.clone()), this._cloneProps(b), b 1249 }, b.toString = function () { 1250 return "[Bitmap (name=" + this.name + ")]" 1251 }, createjs.Bitmap = createjs.promote(a, "DisplayObject") 1252}(), this.createjs = this.createjs || {}, function () { 1253 "use strict"; 1254 1255 function a(a, b) { 1256 this.DisplayObject_constructor(), this.currentFrame = 0, this.currentAnimation = null, this.paused = ! 0, this.spriteSheet = a, this.currentAnimationFrame = 0, this.framerate = 0, this._animation = null, this._currentFrame = null, this._skipAdvance = ! 1, null != b && this.gotoAndPlay(b) 1257 } 1258 1259 var b = createjs.extend(a, createjs.DisplayObject); 1260 b.initialize = a, b.isVisible = function () { 1261 var a = this.cacheCanvas || this.spriteSheet.complete; 1262 return !! (this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a) 1263 }, b.draw = function (a, b) { 1264 if (this.DisplayObject_draw(a, b)) return ! 0; 1265 this._normalizeFrame(); 1266 var c = this.spriteSheet.getFrame(0 | this._currentFrame); 1267 if ( ! c) return ! 1; 1268 var d = c.rect; 1269 return d.width && d.height && a.drawImage(c.image, d.x, d.y, d.width, d.height, -c.regX, -c.regY, d.width, d.height), ! 0 1270 }, b.play = function () { 1271 this.paused = ! 1 1272 }, b.stop = function () { 1273 this.paused = ! 0 1274 }, b.gotoAndPlay = function (a) { 1275 this.paused = ! 1, this._skipAdvance = ! 0, this._goto(a) 1276 }, b.gotoAndStop = function (a) { 1277 this.paused = ! 0, this._goto(a) 1278 }, b.advance = function (a) { 1279 var b = this.framerate || this.spriteSheet.framerate, c = b && null != a ? a / (1e3 / b) : 1; 1280 this._normalizeFrame(c) 1281 }, b.getBounds = function () { 1282 return this.DisplayObject_getBounds() || this.spriteSheet.getFrameBounds(this.currentFrame, this._rectangle) 1283 }, b.clone = function () { 1284 return this._cloneProps(new a(this.spriteSheet)) 1285 }, b.toString = function () { 1286 return "[Sprite (name=" + this.name + ")]" 1287 }, b._cloneProps = function (a) { 1288 return this.DisplayObject__cloneProps(a), a.currentFrame = this.currentFrame, a.currentAnimation = this.currentAnimation, a.paused = this.paused, a.currentAnimationFrame = this.currentAnimationFrame, a.framerate = this.framerate, a._animation = this._animation, a._currentFrame = this._currentFrame, a._skipAdvance = this._skipAdvance, a 1289 }, b._tick = function (a) { 1290 this.paused || (this._skipAdvance || this.advance(a && a.delta), this._skipAdvance = ! 1), this.DisplayObject__tick(a) 1291 }, b._normalizeFrame = function (a) { 1292 a = a || 0; 1293 var b, c = this._animation, d = this.paused, e = this._currentFrame; 1294 if (c) { 1295 var f = c.speed || 1, g = this.currentAnimationFrame; 1296 if (b = c.frames.length, g + a * f >= b) { 1297 var h = c.next; 1298 if (this._dispatchAnimationEnd(c, e, d, h, b - 1)) return; 1299 if (h) return this._goto(h, a - (b - g) / f); 1300 this.paused = ! 0, g = c.frames.length - 1 1301 } else g += a * f; 1302 this.currentAnimationFrame = g, this._currentFrame = c.frames[0 | g] 1303 } else if (e = this._currentFrame += a, b = this.spriteSheet.getNumFrames(), e >= b && b > 0 && ! this._dispatchAnimationEnd(c, e, d, b - 1) && (this._currentFrame -= b) >= b) return this._normalizeFrame(); 1304 e = 0 | this._currentFrame, this.currentFrame != e && (this.currentFrame = e, this.dispatchEvent("change")) 1305 }, b._dispatchAnimationEnd = function (a, b, c, d, e) { 1306 var f = a ? a.name : null; 1307 if (this.hasEventListener("animationend")) { 1308 var g = new createjs.Event("animationend"); 1309 g.name = f, g.next = d, this.dispatchEvent(g) 1310 } 1311 var h = this._animation != a || this._currentFrame != b; 1312 return h || c || ! this.paused || (this.currentAnimationFrame = e, h = ! 0), h 1313 }, b._goto = function (a, b) { 1314 if (this.currentAnimationFrame = 0, isNaN(a)) { 1315 var c = this.spriteSheet.getAnimation(a); 1316 c && (this._animation = c, this.currentAnimation = a, this._normalizeFrame(b)) 1317 } else this.currentAnimation = this._animation = null, this._currentFrame = a, this._normalizeFrame() 1318 }, createjs.Sprite = createjs.promote(a, "DisplayObject") 1319}(), this.createjs = this.createjs || {}, function () { 1320 "use strict"; 1321 1322 function a(a) { 1323 this.DisplayObject_constructor(), this.graphics = a ? a : new createjs.Graphics 1324 } 1325 1326 var b = createjs.extend(a, createjs.DisplayObject); 1327 b.isVisible = function () { 1328 var a = this.cacheCanvas || this.graphics && ! this.graphics.isEmpty(); 1329 return !! (this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a) 1330 }, b.draw = function (a, b) { 1331 return this.DisplayObject_draw(a, b) ? ! 0 : (this.graphics.draw(a, this), ! 0) 1332 }, b.clone = function (b) { 1333 var c = b && this.graphics ? this.graphics.clone() : this.graphics; 1334 return this._cloneProps(new a(c)) 1335 }, b.toString = function () { 1336 return "[Shape (name=" + this.name + ")]" 1337 }, createjs.Shape = createjs.promote(a, "DisplayObject") 1338}(), this.createjs = this.createjs || {}, function () { 1339 "use strict"; 1340 1341 function a(a, b, c) { 1342 this.DisplayObject_constructor(), this.text = a, this.font = b, this.color = c, this.textAlign = "left", this.textBaseline = "top", this.maxWidth = null, this.outline = 0, this.lineHeight = 0, this.lineWidth = null 1343 } 1344 1345 var b = createjs.extend(a, createjs.DisplayObject), 1346 c = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); 1347 c.getContext && (a._workingContext = c.getContext("2d"), c.width = c.height = 1), a.H_OFFSETS = { 1348 start: 0, 1349 left: 0, 1350 center: -.5, 1351 end: -1, 1352 right: -1 1353 }, a.V_OFFSETS = { 1354 top: 0, 1355 hanging: -.01, 1356 middle: -.4, 1357 alphabetic: -.8, 1358 ideographic: -.85, 1359 bottom: -1 1360 }, b.isVisible = function () { 1361 var a = this.cacheCanvas || null != this.text && "" !== this.text; 1362 return !! (this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY && a) 1363 }, b.draw = function (a, b) { 1364 if (this.DisplayObject_draw(a, b)) return ! 0; 1365 var c = this.color || "#000"; 1366 return this.outline ? (a.strokeStyle = c, a.lineWidth = 1 * this.outline) : a.fillStyle = c, this._drawText(this._prepContext(a)), ! 0 1367 }, b.getMeasuredWidth = function () { 1368 return this._getMeasuredWidth(this.text) 1369 }, b.getMeasuredLineHeight = function () { 1370 return 1.2 * this._getMeasuredWidth("M") 1371 }, b.getMeasuredHeight = function () { 1372 return this._drawText(null, {}).height 1373 }, b.getBounds = function () { 1374 var b = this.DisplayObject_getBounds(); 1375 if (b) return b; 1376 if (null == this.text || "" === this.text) return null; 1377 var c = this._drawText(null, {}), d = this.maxWidth && this.maxWidth < c.width ? this.maxWidth : c.width, 1378 e = d * a.H_OFFSETS[this.textAlign || "left"], f = this.lineHeight || this.getMeasuredLineHeight(), 1379 g = f * a.V_OFFSETS[this.textBaseline || "top"]; 1380 return this._rectangle.setValues(e, g, d, c.height) 1381 }, b.getMetrics = function () { 1382 var b = {lines: []}; 1383 return b.lineHeight = this.lineHeight || this.getMeasuredLineHeight(), b.vOffset = b.lineHeight * a.V_OFFSETS[this.textBaseline || "top"], this._drawText(null, b, b.lines) 1384 }, b.clone = function () { 1385 return this._cloneProps(new a(this.text, this.font, this.color)) 1386 }, b.toString = function () { 1387 return "[Text (text=" + (this.text.length > 20 ? this.text.substr(0, 17) + "..." : this.text) + ")]" 1388 }, b._cloneProps = function (a) { 1389 return this.DisplayObject__cloneProps(a), a.textAlign = this.textAlign, a.textBaseline = this.textBaseline, a.maxWidth = this.maxWidth, a.outline = this.outline, a.lineHeight = this.lineHeight, a.lineWidth = this.lineWidth, a 1390 }, b._prepContext = function (a) { 1391 return a.font = this.font || "10px sans-serif", a.textAlign = this.textAlign || "left", a.textBaseline = this.textBaseline || "top", a 1392 }, b._drawText = function (b, c, d) { 1393 var e = !! b; 1394 e || (b = a._workingContext, b.save(), this._prepContext(b)); 1395 for (var f = this.lineHeight || this.getMeasuredLineHeight(), g = 0, h = 0, i = String(this.text).split(/(?:\r\n|\r|\n)/), j = 0, k = i.length; k > j; j++) { 1396 var l = i[j], m = null; 1397 if (null != this.lineWidth && (m = b.measureText(l).width) > this.lineWidth) { 1398 var n = l.split(/(\s)/); 1399 l = n[0], m = b.measureText(l).width; 1400 for (var o = 1, p = n.length; p > o; o += 2) { 1401 var q = b.measureText(n[o] + n[o + 1]).width; 1402 m + q > this.lineWidth ? (e && this._drawTextLine(b, l, h * f), d && d.push(l), m > g && (g = m), l = n[o + 1], m = b.measureText(l).width, h++) : (l += n[o] + n[o + 1], m += q) 1403 } 1404 } 1405 e && this._drawTextLine(b, l, h * f), d && d.push(l), c && null == m && (m = b.measureText(l).width), m > g && (g = m), h++ 1406 } 1407 return c && (c.width = g, c.height = h * f), e || b.restore(), c 1408 }, b._drawTextLine = function (a, b, c) { 1409 this.outline ? a.strokeText(b, 0, c, this.maxWidth || 65535) : a.fillText(b, 0, c, this.maxWidth || 65535) 1410 }, b._getMeasuredWidth = function (b) { 1411 var c = a._workingContext; 1412 c.save(); 1413 var d = this._prepContext(c).measureText(b).width; 1414 return c.restore(), d 1415 }, createjs.Text = createjs.promote(a, "DisplayObject") 1416}(), this.createjs = this.createjs || {}, function () { 1417 "use strict"; 1418 1419 function a(a, b) {
vendor: 3,116 bytes, lines 1420-1475
1420 this.Container_constructor(), this.text = a || "", this.spriteSheet = b, this.lineHeight = 0, this.letterSpacing = 0, this.spaceWidth = 0, this._oldProps = { 1421 text: 0, 1422 spriteSheet: 0, 1423 lineHeight: 0, 1424 letterSpacing: 0, 1425 spaceWidth: 0 1426 } 1427 } 1428 1429 var b = createjs.extend(a, createjs.Container); 1430 a.maxPoolSize = 100, a._spritePool = [], b.draw = function (a, b) { 1431 this.DisplayObject_draw(a, b) || (this._updateText(), this.Container_draw(a, b)) 1432 }, b.getBounds = function () { 1433 return this._updateText(), this.Container_getBounds() 1434 }, b.isVisible = function () { 1435 var a = this.cacheCanvas || this.spriteSheet && this.spriteSheet.complete && this.text; 1436 return !! (this.visible && this.alpha > 0 && 0 !== this.scaleX && 0 !== this.scaleY && a) 1437 }, b.clone = function () { 1438 return this._cloneProps(new a(this.text, this.spriteSheet)) 1439 }, b.addChild = b.addChildAt = b.removeChild = b.removeChildAt = b.removeAllChildren = function () { 1440 }, b._cloneProps = function (a) { 1441 return this.Container__cloneProps(a), a.lineHeight = this.lineHeight, a.letterSpacing = this.letterSpacing, a.spaceWidth = this.spaceWidth, a 1442 }, b._getFrameIndex = function (a, b) { 1443 var c, d = b.getAnimation(a); 1444 return d || (a != (c = a.toUpperCase()) || a != (c = a.toLowerCase()) || (c = null), c && (d = b.getAnimation(c))), d && d.frames[0] 1445 }, b._getFrame = function (a, b) { 1446 var c = this._getFrameIndex(a, b); 1447 return null == c ? c : b.getFrame(c) 1448 }, b._getLineHeight = function (a) { 1449 var b = this._getFrame("1", a) || this._getFrame("T", a) || this._getFrame("L", a) || a.getFrame(0); 1450 return b ? b.rect.height : 1 1451 }, b._getSpaceWidth = function (a) { 1452 var b = this._getFrame("1", a) || this._getFrame("l", a) || this._getFrame("e", a) || this._getFrame("a", a) || a.getFrame(0); 1453 return b ? b.rect.width : 1 1454 }, b._updateText = function () { 1455 var b, c = 0, d = 0, e = this._oldProps, f = ! 1, g = this.spaceWidth, h = this.lineHeight, i = this.spriteSheet, 1456 j = a._spritePool, k = this.children, l = 0, m = k.length; 1457 for (var n in e) e[n] != this[n] && (e[n] = this[n], f = ! 0); 1458 if (f) { 1459 var o = !! this._getFrame(" ", i); 1460 o || g || (g = this._getSpaceWidth(i)), h || (h = this._getLineHeight(i)); 1461 for (var p = 0, q = this.text.length; q > p; p++) { 1462 var r = this.text.charAt(p); 1463 if (" " != r || o) if ("\n" != r && "\r" != r) { 1464 var s = this._getFrameIndex(r, i); 1465 null != s && (m > l ? b = k[l] : (k.push(b = j.length ? j.pop() : new createjs.Sprite), b.parent = this, m++), b.spriteSheet = i, b.gotoAndStop(s), b.x = c, b.y = d, l++, c += b.getBounds().width + this.letterSpacing) 1466 } else "\r" == r && "\n" == this.text.charAt(p + 1) && p++, c = 0, d += h; else c += g 1467 } 1468 for (; m > l;) j.push(b = k.pop()), b.parent = null, m--; 1469 j.length > a.maxPoolSize && (j.length = a.maxPoolSize) 1470 } 1471 }, createjs.BitmapText = createjs.promote(a, "Container") 1472}(), this.createjs = this.createjs || {}, function () { 1473 "use strict"; 1474 1475 function a(b, c, d, e) {
vendor: 16,401 bytes, lines 1476-1811
1476 this.Container_constructor(), ! a.inited && a.init(), this.mode = b || a.INDEPENDENT, this.startPosition = c || 0, this.loop = d, this.currentFrame = 0, this.timeline = new createjs.Timeline(null, e, { 1477 paused: ! 0, 1478 position: c, 1479 useTicks: ! 0 1480 }), 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 = {} 1481 } 1482 1483 function b() { 1484 throw"MovieClipPlugin cannot be instantiated." 1485 } 1486 1487 var c = createjs.extend(a, createjs.Container); 1488 a.INDEPENDENT = "independent", a.SINGLE_FRAME = "single", a.SYNCHED = "synched", a.inited = ! 1, a.init = function () { 1489 a.inited || (b.install(), a.inited = ! 0) 1490 }, c.getLabels = function () { 1491 return this.timeline.getLabels() 1492 }, c.getCurrentLabel = function () { 1493 return this._updateTimeline(), this.timeline.getCurrentLabel() 1494 }, c.getDuration = function () { 1495 return this.timeline.duration; 1496 }; 1497 try { 1498 Object.defineProperties(c, { 1499 labels: {get: c.getLabels}, 1500 currentLabel: {get: c.getCurrentLabel}, 1501 totalFrames: {get: c.getDuration}, 1502 duration: {get: c.getDuration} 1503 }) 1504 } catch (d) { 1505 } 1506 c.initialize = a, c.isVisible = function () { 1507 return !! (this.visible && this.alpha > 0 && 0 != this.scaleX && 0 != this.scaleY) 1508 }, c.draw = function (a, b) { 1509 return this.DisplayObject_draw(a, b) ? ! 0 : (this._updateTimeline(), this.Container_draw(a, b), ! 0) 1510 }, c.play = function () { 1511 this.paused = ! 1 1512 }, c.stop = function () { 1513 this.paused = ! 0 1514 }, c.gotoAndPlay = function (a) { 1515 this.paused = ! 1, this._goto(a) 1516 }, c.gotoAndStop = function (a) { 1517 this.paused = ! 0, this._goto(a) 1518 }, c.advance = function (b) { 1519 var c = a.INDEPENDENT; 1520 if (this.mode == c) { 1521 for (var d = this, e = d.framerate; (d = d.parent) && null == e;) d.mode == c && (e = d._framerate); 1522 this._framerate = e; 1523 var f = null != e && -1 != e && null != b ? b / (1e3 / e) + this._t : 1, g = 0 | f; 1524 for (this._t = f - g; ! this.paused && g--;) this._prevPosition = this._prevPos < 0 ? 0 : this._prevPosition + 1, this._updateTimeline() 1525 } 1526 }, c.clone = function () { 1527 throw"MovieClip cannot be cloned." 1528 }, c.toString = function () { 1529 return "[MovieClip (name=" + this.name + ")]" 1530 }, c._tick = function (a) { 1531 this.advance(a && a.delta), this.Container__tick(a) 1532 }, c._goto = function (a) { 1533 var b = this.timeline.resolve(a); 1534 null != b && (-1 == this._prevPos && (this._prevPos = NaN), this._prevPosition = b, this._t = 0, this._updateTimeline()) 1535 }, c._reset = function () { 1536 this._prevPos = -1, this._t = this.currentFrame = 0, this.paused = ! 1 1537 }, c._updateTimeline = function () { 1538 var b = this.timeline, c = this.mode != a.INDEPENDENT; 1539 b.loop = null == this.loop ? ! 0 : this.loop; 1540 var d = c ? this.startPosition + (this.mode == a.SINGLE_FRAME ? 0 : this._synchOffset) : this._prevPos < 0 ? 0 : this._prevPosition, 1541 e = c || ! this.actionsEnabled ? createjs.Tween.NONE : null; 1542 if (this.currentFrame = b._calcPosition(d), b.setPosition(d, e), this._prevPosition = b._prevPosition, this._prevPos != b._prevPos) { 1543 this.currentFrame = this._prevPos = b._prevPos; 1544 for (var f in this._managed) this._managed[f] = 1; 1545 for (var g = b._tweens, h = 0, i = g.length; i > h; h++) { 1546 var j = g[h], k = j._target; 1547 if (k != this && ! j.passive) { 1548 var l = j._stepPosition; 1549 k instanceof createjs.DisplayObject ? this._addManagedChild(k, l) : this._setState(k.state, l) 1550 } 1551 } 1552 var m = this.children; 1553 for (h = m.length - 1; h >= 0; h--) { 1554 var n = m[h].id; 1555 1 == this._managed[n] && (this.removeChildAt(h), delete this._managed[n]) 1556 } 1557 } 1558 }, c._setState = function (a, b) { 1559 if (a) for (var c = a.length - 1; c >= 0; c--) { 1560 var d = a[c], e = d.t, f = d.p; 1561 for (var g in f) e[g] = f[g]; 1562 this._addManagedChild(e, b) 1563 } 1564 }, c._addManagedChild = function (b, c) { 1565 b._off || (this.addChildAt(b, 0), b instanceof a && (b._synchOffset = c, b.mode == a.INDEPENDENT && b.autoReset && ! this._managed[b.id] && b._reset()), this._managed[b.id] = 2) 1566 }, c._getBounds = function (a, b) { 1567 var c = this.DisplayObject_getBounds(); 1568 return c || (this._updateTimeline(), this.frameBounds && (c = this._rectangle.copy(this.frameBounds[this.currentFrame]))), c ? this._transformBounds(c, a, b) : this.Container__getBounds(a, b) 1569 }, createjs.MovieClip = createjs.promote(a, "Container"), b.priority = 100, b.install = function () { 1570 createjs.Tween.installPlugin(b, ["startPosition"]) 1571 }, b.init = function (a, b, c) { 1572 return c 1573 }, b.step = function () { 1574 }, b.tween = function (b, c, d, e, f, g, h, i) { 1575 return b.target instanceof a ? 1 == g ? f[c] : e[c] : d 1576 } 1577}(), this.createjs = this.createjs || {}, function () { 1578 "use strict"; 1579 1580 function a() { 1581 throw"SpriteSheetUtils cannot be instantiated" 1582 } 1583 1584 var b = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); 1585 b.getContext && (a._workingCanvas = b, a._workingContext = b.getContext("2d"), b.width = b.height = 1), a.addFlippedFrames = function (b, c, d, e) { 1586 if (c || d || e) { 1587 var f = 0; 1588 c && a._flip(b, ++f, ! 0, ! 1), d && a._flip(b, ++f, ! 1, ! 0), e && a._flip(b, ++f, ! 0, ! 0) 1589 } 1590 }, a.extractFrame = function (b, c) { 1591 isNaN(c) && (c = b.getAnimation(c).frames[0]); 1592 var d = b.getFrame(c); 1593 if ( ! d) return null; 1594 var e = d.rect, f = a._workingCanvas; 1595 f.width = e.width, f.height = e.height, a._workingContext.drawImage(d.image, e.x, e.y, e.width, e.height, 0, 0, e.width, e.height); 1596 var g = document.createElement("img"); 1597 return g.src = f.toDataURL("image/png"), g 1598 }, a.mergeAlpha = function (a, b, c) { 1599 c || (c = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas")), c.width = Math.max(b.width, a.width), c.height = Math.max(b.height, a.height); 1600 var d = c.getContext("2d"); 1601 return d.save(), d.drawImage(a, 0, 0), d.globalCompositeOperation = "destination-in", d.drawImage(b, 0, 0), d.restore(), c 1602 }, a._flip = function (b, c, d, e) { 1603 for (var f = b._images, g = a._workingCanvas, h = a._workingContext, i = f.length / c, j = 0; i > j; j++) { 1604 var k = f[j]; 1605 k.__tmp = j, h.setTransform(1, 0, 0, 1, 0, 0), h.clearRect(0, 0, g.width + 1, g.height + 1), g.width = k.width, g.height = k.height, h.setTransform(d ? -1 : 1, 0, 0, e ? -1 : 1, d ? k.width : 0, e ? k.height : 0), h.drawImage(k, 0, 0); 1606 var l = document.createElement("img"); 1607 l.src = g.toDataURL("image/png"), l.width = k.width, l.height = k.height, f.push(l) 1608 } 1609 var m = b._frames, n = m.length / c; 1610 for (j = 0; n > j; j++) { 1611 k = m[j]; 1612 var o = k.rect.clone(); 1613 l = f[k.image.__tmp + i * c]; 1614 var p = {image: l, rect: o, regX: k.regX, regY: k.regY}; 1615 d && (o.x = l.width - o.x - o.width, p.regX = o.width - k.regX), e && (o.y = l.height - o.y - o.height, p.regY = o.height - k.regY), m.push(p) 1616 } 1617 var q = "_" + (d ? "h" : "") + (e ? "v" : ""), r = b._animations, s = b._data, t = r.length / c; 1618 for (j = 0; t > j; j++) { 1619 var u = r[j]; 1620 k = s[u]; 1621 var v = {name: u + q, speed: k.speed, next: k.next, frames: []}; 1622 k.next && (v.next += q), m = k.frames; 1623 for (var w = 0, x = m.length; x > w; w++) v.frames.push(m[w] + n * c); 1624 s[v.name] = v, r.push(v.name) 1625 } 1626 }, createjs.SpriteSheetUtils = a 1627}(), this.createjs = this.createjs || {}, function () { 1628 "use strict"; 1629 1630 function a(a) { 1631 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 = a || 0, this._frames = [], this._animations = {}, this._data = null, this._nextFrameIndex = 0, this._index = 0, this._timerID = null, this._scale = 1 1632 } 1633 1634 var b = createjs.extend(a, createjs.EventDispatcher); 1635 a.ERR_DIMENSIONS = "frame dimensions exceed max spritesheet dimensions", a.ERR_RUNNING = "a build is already running", b.addFrame = function (b, c, d, e, f) { 1636 if (this._data) throw a.ERR_RUNNING; 1637 var g = c || b.bounds || b.nominalBounds; 1638 return ! g && b.getBounds && (g = b.getBounds()), g ? (d = d || 1, this._frames.push({ 1639 source: b, 1640 sourceRect: g, 1641 scale: d, 1642 funct: e, 1643 data: f, 1644 index: this._frames.length, 1645 height: g.height * d 1646 }) - 1) : null 1647 }, b.addAnimation = function (b, c, d, e) { 1648 if (this._data) throw a.ERR_RUNNING; 1649 this._animations[b] = {frames: c, next: d, speed: e} 1650 }, b.addMovieClip = function (b, c, d, e, f, g) { 1651 if (this._data) throw a.ERR_RUNNING; 1652 var h = b.frameBounds, i = c || b.bounds || b.nominalBounds; 1653 if (! i && b.getBounds && (i = b.getBounds()), i || h) { 1654 var j, k, l = this._frames.length, m = b.timeline.duration; 1655 for (j = 0; m > j; j++) { 1656 var n = h && h[j] ? h[j] : i; 1657 this.addFrame(b, n, d, this._setupMovieClipFrame, {i: j, f: e, d: f}) 1658 } 1659 var o = b.timeline._labels, p = []; 1660 for (var q in o) p.push({index: o[q], label: q}); 1661 if (p.length) for (p.sort(function (a, b) { 1662 return a.index - b.index 1663 }), j = 0, k = p.length; k > j; j++) { 1664 for (var r = p[j].label, s = l + p[j].index, t = l + (j == k - 1 ? m : p[j + 1].index), u = [], v = s; t > v; v++) u.push(v); 1665 ( ! g || (r = g(r, b, s, t))) && this.addAnimation(r, u, ! 0) 1666 } 1667 } 1668 }, b.build = function () { 1669 if (this._data) throw a.ERR_RUNNING; 1670 for (this._startBuild(); this._drawNext();) ; 1671 return this._endBuild(), this.spriteSheet 1672 }, b.buildAsync = function (b) { 1673 if (this._data) throw a.ERR_RUNNING; 1674 this.timeSlice = b, this._startBuild(); 1675 var c = this; 1676 this._timerID = setTimeout(function () { 1677 c._run() 1678 }, 50 - 50 * Math.max(.01, Math.min(.99, this.timeSlice || .3))) 1679 }, b.stopAsync = function () { 1680 clearTimeout(this._timerID), this._data = null 1681 }, b.clone = function () { 1682 throw"SpriteSheetBuilder cannot be cloned." 1683 }, b.toString = function () { 1684 return "[SpriteSheetBuilder]" 1685 }, b._startBuild = function () { 1686 var b = this.padding || 0; 1687 this.progress = 0, this.spriteSheet = null, this._index = 0, this._scale = this.scale; 1688 var c = []; 1689 this._data = {images: [], frames: c, framerate: this.framerate, animations: this._animations}; 1690 var d = this._frames.slice(); 1691 if (d.sort(function (a, b) { 1692 return a.height <= b.height ? -1 : 1 1693 }), d[d.length - 1].height + 2 * b > this.maxHeight) throw a.ERR_DIMENSIONS; 1694 for (var e = 0, f = 0, g = 0; d.length;) { 1695 var h = this._fillRow(d, e, g, c, b); 1696 if (h.w > f && (f = h.w), e += h.h, ! h.h || ! d.length) { 1697 var i = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"); 1698 i.width = this._getSize(f, this.maxWidth), i.height = this._getSize(e, this.maxHeight), this._data.images[g] = i, h.h || (f = e = 0, g++) 1699 } 1700 } 1701 }, b._setupMovieClipFrame = function (a, b) { 1702 var c = a.actionsEnabled; 1703 a.actionsEnabled = ! 1, a.gotoAndStop(b.i), a.actionsEnabled = c, b.f && b.f(a, b.d, b.i) 1704 }, b._getSize = function (a, b) { 1705 for (var c = 4; Math.pow(2, ++c) < a;) ; 1706 return Math.min(b, Math.pow(2, c)) 1707 }, b._fillRow = function (b, c, d, e, f) { 1708 var g = this.maxWidth, h = this.maxHeight; 1709 c += f; 1710 for (var i = h - c, j = f, k = 0, l = b.length - 1; l >= 0; l--) { 1711 var m = b[l], n = this._scale * m.scale, o = m.sourceRect, p = m.source, q = Math.floor(n * o.x - f), 1712 r = Math.floor(n * o.y - f), s = Math.ceil(n * o.height + 2 * f), t = Math.ceil(n * o.width + 2 * f); 1713 if (t > g) throw a.ERR_DIMENSIONS; 1714 s > i || j + t > g || (m.img = d, m.rect = new createjs.Rectangle(j, c, t, s), k = k || s, b.splice(l, 1), e[m.index] = [j, c, t, s, d, Math.round(-q + n * p.regX - f), Math.round(-r + n * p.regY - f)], j += t) 1715 } 1716 return {w: j, h: k} 1717 }, b._endBuild = function () { 1718 this.spriteSheet = new createjs.SpriteSheet(this._data), this._data = null, this.progress = 1, this.dispatchEvent("complete") 1719 }, b._run = function () { 1720 for (var a = 50 * Math.max(.01, Math.min(.99, this.timeSlice || .3)), b = (new Date).getTime() + a, c = ! 1; b > (new Date).getTime();) if ( ! this._drawNext()) { 1721 c = ! 0; 1722 break 1723 } 1724 if (c) this._endBuild(); else { 1725 var d = this; 1726 this._timerID = setTimeout(function () { 1727 d._run() 1728 }, 50 - a) 1729 } 1730 var e = this.progress = this._index / this._frames.length; 1731 if (this.hasEventListener("progress")) { 1732 var f = new createjs.Event("progress"); 1733 f.progress = e, this.dispatchEvent(f) 1734 } 1735 }, b._drawNext = function () { 1736 var a = this._frames[this._index], b = a.scale * this._scale, c = a.rect, d = a.sourceRect, 1737 e = this._data.images[a.img], f = e.getContext("2d"); 1738 return a.funct && a.funct(a.source, a.data), f.save(), f.beginPath(), f.rect(c.x, c.y, c.width, c.height), f.clip(), f.translate(Math.ceil(c.x - d.x * b), Math.ceil(c.y - d.y * b)), f.scale(b, b), a.source.draw(f), f.restore(), ++this._index < this._frames.length 1739 }, createjs.SpriteSheetBuilder = createjs.promote(a, "EventDispatcher") 1740}(), this.createjs = this.createjs || {}, function () { 1741 "use strict"; 1742 1743 function a(a) { 1744 this.DisplayObject_constructor(), "string" == typeof a && (a = document.getElementById(a)), this.mouseEnabled = ! 1; 1745 var b = a.style; 1746 b.position = "absolute", b.transformOrigin = b.WebkitTransformOrigin = b.msTransformOrigin = b.MozTransformOrigin = b.OTransformOrigin = "0% 0%", this.htmlElement = a, this._oldProps = null 1747 } 1748 1749 var b = createjs.extend(a, createjs.DisplayObject); 1750 b.isVisible = function () { 1751 return null != this.htmlElement 1752 }, b.draw = function (a, b) { 1753 return ! 0 1754 }, b.cache = function () { 1755 }, b.uncache = function () { 1756 }, b.updateCache = function () { 1757 }, b.hitTest = function () { 1758 }, b.localToGlobal = function () { 1759 }, b.globalToLocal = function () { 1760 }, b.localToLocal = function () { 1761 }, b.clone = function () { 1762 throw"DOMElement cannot be cloned." 1763 }, b.toString = function () { 1764 return "[DOMElement (name=" + this.name + ")]" 1765 }, b._tick = function (a) { 1766 var b = this.getStage(); 1767 b && b.on("drawend", this._handleDrawEnd, this, ! 0), this.DisplayObject__tick(a) 1768 }, b._handleDrawEnd = function (a) { 1769 var b = this.htmlElement; 1770 if (b) { 1771 var c = b.style, d = this.getConcatenatedDisplayProps(this._props), e = d.matrix, 1772 f = d.visible ? "visible" : "hidden"; 1773 if (f != c.visibility && (c.visibility = f), d.visible) { 1774 var g = this._oldProps, h = g && g.matrix, i = 1e4; 1775 if ( ! h || ! h.equals(e)) { 1776 var j = "matrix(" + (e.a * i | 0) / i + "," + (e.b * i | 0) / i + "," + (e.c * i | 0) / i + "," + (e.d * i | 0) / i + "," + (e.tx + .5 | 0); 1777 c.transform = c.WebkitTransform = c.OTransform = c.msTransform = j + "," + (e.ty + .5 | 0) + ")", c.MozTransform = j + "px," + (e.ty + .5 | 0) + "px)", g || (g = this._oldProps = new createjs.DisplayProps( ! 0, NaN)), g.matrix.copy(e) 1778 } 1779 g.alpha != d.alpha && (c.opacity = "" + (d.alpha * i | 0) / i, g.alpha = d.alpha) 1780 } 1781 } 1782 }, createjs.DOMElement = createjs.promote(a, "DisplayObject") 1783}(), this.createjs = this.createjs || {}, function () { 1784 "use strict"; 1785 1786 function a() { 1787 } 1788 1789 var b = a.prototype; 1790 b.getBounds = function (a) { 1791 return a 1792 }, b.applyFilter = function (a, b, c, d, e, f, g, h) { 1793 f = f || a, null == g && (g = b), null == h && (h = c); 1794 try { 1795 var i = a.getImageData(b, c, d, e) 1796 } catch (j) { 1797 return ! 1 1798 } 1799 return this._applyFilter(i) ? (f.putImageData(i, g, h), ! 0) : ! 1 1800 }, b.toString = function () { 1801 return "[Filter]" 1802 }, b.clone = function () { 1803 return new a 1804 }, b._applyFilter = function (a) { 1805 return ! 0 1806 }, createjs.Filter = a 1807}(), this.createjs = this.createjs || {}, function () { 1808 "use strict"; 1809 1810 function a(a, b, c) { 1811 (isNaN(a) || 0 > a) && (a = 0), (isNaN(b) || 0 > b) && (b = 0), (isNaN(c) || 1 > c) && (c = 1), this.blurX = 0 | a, this.blurY = 0 | b, this.qual
vendor: 12,858 bytes, lines 1811-1989
1811ity = 0 | c 1812 } 1813 1814 var b = createjs.extend(a, createjs.Filter); 1815 a.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], a.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], b.getBounds = function (a) { 1816 var b = 0 | this.blurX, c = 0 | this.blurY; 1817 if (0 >= b && 0 >= c) return a; 1818 var d = Math.pow(this.quality, .2); 1819 return (a || new createjs.Rectangle).pad(b * d + 1, c * d + 1, b * d + 1, c * d + 1) 1820 }, b.clone = function () { 1821 return new a(this.blurX, this.blurY, this.quality) 1822 }, b.toString = function () { 1823 return "[BlurFilter]" 1824 }, b._applyFilter = function (b) { 1825 var c = this.blurX >> 1; 1826 if (isNaN(c) || 0 > c) return ! 1; 1827 var d = this.blurY >> 1; 1828 if (isNaN(d) || 0 > d) return ! 1; 1829 if (0 == c && 0 == d) return ! 1; 1830 var e = this.quality; 1831 (isNaN(e) || 1 > e) && (e = 1), e |= 0, e > 3 && (e = 3), 1 > e && (e = 1); 1832 var f = b.data, g = 0, h = 0, i = 0, j = 0, k = 0, l = 0, m = 0, n = 0, o = 0, p = 0, q = 0, r = 0, s = 0, t = 0, 1833 u = 0, v = c + c + 1 | 0, w = d + d + 1 | 0, x = 0 | b.width, y = 0 | b.height, z = x - 1 | 0, A = y - 1 | 0, 1834 B = c + 1 | 0, C = d + 1 | 0, D = {r: 0, b: 0, g: 0, a: 0}, E = D; 1835 for (i = 1; v > i; i++) E = E.n = {r: 0, b: 0, g: 0, a: 0}; 1836 E.n = D; 1837 var F = {r: 0, b: 0, g: 0, a: 0}, G = F; 1838 for (i = 1; w > i; i++) G = G.n = {r: 0, b: 0, g: 0, a: 0}; 1839 G.n = F; 1840 for (var H = null, I = 0 | a.MUL_TABLE[c], J = 0 | a.SHG_TABLE[c], K = 0 | a.MUL_TABLE[d], L = 0 | a.SHG_TABLE[d]; e-- > 0;) { 1841 m = l = 0; 1842 var M = I, N = J; 1843 for (h = y; --h > -1;) { 1844 for (n = B * (r = f[0 | l]), o = B * (s = f[l + 1 | 0]), p = B * (t = f[l + 2 | 0]), q = B * (u = f[l + 3 | 0]), E = D, i = B; --i > -1;) E.r = r, E.g = s, E.b = t, E.a = u, E = E.n; 1845 for (i = 1; B > i; i++) j = l + ((i > z ? z : i) << 2) | 0, n += E.r = f[j], o += E.g = f[j + 1], p += E.b = f[j + 2], q += E.a = f[j + 3], E = E.n; 1846 for (H = D, g = 0; x > g; g++) f[l++] = n * M >>> N, f[l++] = o * M >>> N, f[l++] = p * M >>> N, f[l++] = q * M >>> N, j = m + ((j = g + c + 1) < z ? j : z) << 2, n -= H.r - (H.r = f[j]), o -= H.g - (H.g = f[j + 1]), p -= H.b - (H.b = f[j + 2]), q -= H.a - (H.a = f[j + 3]), H = H.n; 1847 m += x 1848 } 1849 for (M = K, N = L, g = 0; x > g; g++) { 1850 for (l = g << 2 | 0, n = C * (r = f[l]) | 0, o = C * (s = f[l + 1 | 0]) | 0, p = C * (t = f[l + 2 | 0]) | 0, q = C * (u = f[l + 3 | 0]) | 0, G = F, i = 0; C > i; i++) G.r = r, G.g = s, G.b = t, G.a = u, G = G.n; 1851 for (k = x, i = 1; d >= i; i++) l = k + g << 2, n += G.r = f[l], o += G.g = f[l + 1], p += G.b = f[l + 2], q += G.a = f[l + 3], G = G.n, A > i && (k += x); 1852 if (l = g, H = F, e > 0) for (h = 0; y > h; h++) j = l << 2, f[j + 3] = u = q * M >>> N, u > 0 ? (f[j] = n * M >>> N, f[j + 1] = o * M >>> N, f[j + 2] = p * M >>> N) : f[j] = f[j + 1] = f[j + 2] = 0, j = g + ((j = h + C) < A ? j : A) * x << 2, n -= H.r - (H.r = f[j]), o -= H.g - (H.g = f[j + 1]), p -= H.b - (H.b = f[j + 2]), q -= H.a - (H.a = f[j + 3]), H = H.n, l += x; else for (h = 0; y > h; h++) j = l << 2, f[j + 3] = u = q * M >>> N, u > 0 ? (u = 255 / u, f[j] = (n * M >>> N) * u, f[j + 1] = (o * M >>> N) * u, f[j + 2] = (p * M >>> N) * u) : f[j] = f[j + 1] = f[j + 2] = 0, j = g + ((j = h + C) < A ? j : A) * x << 2, n -= H.r - (H.r = f[j]), o -= H.g - (H.g = f[j + 1]), p -= H.b - (H.b = f[j + 2]), q -= H.a - (H.a = f[j + 3]), H = H.n, l += x 1853 } 1854 } 1855 return ! 0 1856 }, createjs.BlurFilter = createjs.promote(a, "Filter") 1857}(), this.createjs = this.createjs || {}, function () { 1858 "use strict"; 1859 1860 function a(a) { 1861 this.alphaMap = a, this._alphaMap = null, this._mapData = null 1862 } 1863 1864 var b = createjs.extend(a, createjs.Filter); 1865 b.clone = function () { 1866 var b = new a(this.alphaMap); 1867 return b._alphaMap = this._alphaMap, b._mapData = this._mapData, b 1868 }, b.toString = function () { 1869 return "[AlphaMapFilter]" 1870 }, b._applyFilter = function (a) { 1871 if ( ! this.alphaMap) return ! 0; 1872 if ( ! this._prepAlphaMap()) return ! 1; 1873 for (var b = a.data, c = this._mapData, d = 0, e = b.length; e > d; d += 4) b[d + 3] = c[d] || 0; 1874 return ! 0 1875 }, b._prepAlphaMap = function () { 1876 if ( ! this.alphaMap) return ! 1; 1877 if (this.alphaMap == this._alphaMap && this._mapData) return ! 0; 1878 this._mapData = null; 1879 var a, b = this._alphaMap = this.alphaMap, c = b; 1880 b instanceof HTMLCanvasElement ? a = c.getContext("2d") : (c = createjs.createCanvas ? createjs.createCanvas() : document.createElement("canvas"), c.width = b.width, c.height = b.height, a = c.getContext("2d"), a.drawImage(b, 0, 0)); 1881 try { 1882 var d = a.getImageData(0, 0, b.width, b.height) 1883 } catch (e) { 1884 return ! 1 1885 } 1886 return this._mapData = d.data, ! 0 1887 }, createjs.AlphaMapFilter = createjs.promote(a, "Filter") 1888}(), this.createjs = this.createjs || {}, function () { 1889 "use strict"; 1890 1891 function a(a) { 1892 this.mask = a 1893 } 1894 1895 var b = createjs.extend(a, createjs.Filter); 1896 b.applyFilter = function (a, b, c, d, e, f, g, h) { 1897 return this.mask ? (f = f || a, null == g && (g = b), null == h && (h = c), f.save(), a != f ? ! 1 : (f.globalCompositeOperation = "destination-in", f.drawImage(this.mask, g, h), f.restore(), ! 0)) : ! 0 1898 }, b.clone = function () { 1899 return new a(this.mask) 1900 }, b.toString = function () { 1901 return "[AlphaMaskFilter]" 1902 }, createjs.AlphaMaskFilter = createjs.promote(a, "Filter") 1903}(), this.createjs = this.createjs || {}, function () { 1904 "use strict"; 1905 1906 function a(a, b, c, d, e, f, g, h) { 1907 this.redMultiplier = null != a ? a : 1, this.greenMultiplier = null != b ? b : 1, this.blueMultiplier = null != c ? c : 1, this.alphaMultiplier = null != d ? d : 1, this.redOffset = e || 0, this.greenOffset = f || 0, this.blueOffset = g || 0, this.alphaOffset = h || 0 1908 } 1909 1910 var b = createjs.extend(a, createjs.Filter); 1911 b.toString = function () { 1912 return "[ColorFilter]" 1913 }, b.clone = function () { 1914 return new a(this.redMultiplier, this.greenMultiplier, this.blueMultiplier, this.alphaMultiplier, this.redOffset, this.greenOffset, this.blueOffset, this.alphaOffset) 1915 }, b._applyFilter = function (a) { 1916 for (var b = a.data, c = b.length, d = 0; c > d; d += 4) b[d] = b[d] * this.redMultiplier + this.redOffset, b[d + 1] = b[d + 1] * this.greenMultiplier + this.greenOffset, b[d + 2] = b[d + 2] * this.blueMultiplier + this.blueOffset, b[d + 3] = b[d + 3] * this.alphaMultiplier + this.alphaOffset; 1917 return ! 0 1918 }, createjs.ColorFilter = createjs.promote(a, "Filter") 1919}(), this.createjs = this.createjs || {}, function () { 1920 "use strict"; 1921 1922 function a(a, b, c, d) { 1923 this.setColor(a, b, c, d) 1924 } 1925 1926 var b = a.prototype; 1927 a.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], a.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], a.LENGTH = a.IDENTITY_MATRIX.length, b.setColor = function (a, b, c, d) { 1928 return this.reset().adjustColor(a, b, c, d) 1929 }, b.reset = function () { 1930 return this.copy(a.IDENTITY_MATRIX) 1931 }, b.adjustColor = function (a, b, c, d) { 1932 return this.adjustHue(d), this.adjustContrast(b), this.adjustBrightness(a), this.adjustSaturation(c) 1933 }, b.adjustBrightness = function (a) { 1934 return 0 == a || isNaN(a) ? this : (a = this._cleanValue(a, 255), this._multiplyMatrix([1, 0, 0, 0, a, 0, 1, 0, 0, a, 0, 0, 1, 0, a, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this) 1935 }, b.adjustContrast = function (b) { 1936 if (0 == b || isNaN(b)) return this; 1937 b = this._cleanValue(b, 100); 1938 var c; 1939 return 0 > b ? c = 127 + b / 100 * 127 : (c = b % 1, c = 0 == c ? a.DELTA_INDEX[b] : a.DELTA_INDEX[b << 0] * (1 - c) + a.DELTA_INDEX[(b << 0) + 1] * c, c = 127 * c + 127), this._multiplyMatrix([c / 127, 0, 0, 0, .5 * (127 - c), 0, c / 127, 0, 0, .5 * (127 - c), 0, 0, c / 127, 0, .5 * (127 - c), 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this 1940 }, b.adjustSaturation = function (a) { 1941 if (0 == a || isNaN(a)) return this; 1942 a = this._cleanValue(a, 100); 1943 var b = 1 + (a > 0 ? 3 * a / 100 : a / 100), c = .3086, d = .6094, e = .082; 1944 return this._multiplyMatrix([c * (1 - b) + b, d * (1 - b), e * (1 - b), 0, 0, c * (1 - b), d * (1 - b) + b, e * (1 - b), 0, 0, c * (1 - b), d * (1 - b), e * (1 - b) + b, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this 1945 }, b.adjustHue = function (a) { 1946 if (0 == a || isNaN(a)) return this; 1947 a = this._cleanValue(a, 180) / 180 * Math.PI; 1948 var b = Math.cos(a), c = Math.sin(a), d = .213, e = .715, f = .072; 1949 return this._multiplyMatrix([d + b * (1 - d) + c * -d, e + b * -e + c * -e, f + b * -f + c * (1 - f), 0, 0, d + b * -d + .143 * c, e + b * (1 - e) + .14 * c, f + b * -f + c * -.283, 0, 0, d + b * -d + c * -(1 - d), e + b * -e + c * e, f + b * (1 - f) + c * f, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1]), this 1950 }, b.concat = function (b) { 1951 return b = this._fixMatrix(b), b.length != a.LENGTH ? this : (this._multiplyMatrix(b), this) 1952 }, b.clone = function () { 1953 return (new a).copy(this) 1954 }, b.toArray = function () { 1955 for (var b = [], c = 0, d = a.LENGTH; d > c; c++) b[c] = this[c]; 1956 return b 1957 }, b.copy = function (b) { 1958 for (var c = a.LENGTH, d = 0; c > d; d++) this[d] = b[d]; 1959 return this 1960 }, b.toString = function () { 1961 return "[ColorMatrix]" 1962 }, b._multiplyMatrix = function (a) { 1963 var b, c, d, e = []; 1964 for (b = 0; 5 > b; b++) { 1965 for (c = 0; 5 > c; c++) e[c] = this[c + 5 * b]; 1966 for (c = 0; 5 > c; c++) { 1967 var f = 0; 1968 for (d = 0; 5 > d; d++) f += a[c + 5 * d] * e[d]; 1969 this[c + 5 * b] = f 1970 } 1971 } 1972 }, b._cleanValue = function (a, b) { 1973 return Math.min(b, Math.max(-b, a)) 1974 }, b._fixMatrix = function (b) { 1975 return b instanceof a && (b = b.toArray()), b.length < a.LENGTH ? b = b.slice(0, b.length).concat(a.IDENTITY_MATRIX.slice(b.length, a.LENGTH)) : b.length > a.LENGTH && (b = b.slice(0, a.LENGTH)), b 1976 }, createjs.ColorMatrix = a 1977}(), this.createjs = this.createjs || {}, function () { 1978 "use strict"; 1979 1980 function a(a) { 1981 this.matrix = a 1982 } 1983 1984 var b = createjs.extend(a, createjs.Filter); 1985 b.toString = function () { 1986 return "[ColorMatrixFilter]" 1987 }, b.clone = function () { 1988 return new a(this.matrix) 1989 }, b._applyFilter = function (a) {
vendor: 9,697 bytes, lines 1990-2165
1990 for (var b, c, d, e, f = a.data, g = f.length, h = this.matrix, i = h[0], j = h[1], k = h[2], l = h[3], m = h[4], n = h[5], o = h[6], p = h[7], q = h[8], r = h[9], s = h[10], t = h[11], u = h[12], v = h[13], w = h[14], x = h[15], y = h[16], z = h[17], A = h[18], B = h[19], C = 0; g > C; C += 4) b = f[C], c = f[C + 1], d = f[C + 2], e = f[C + 3], f[C] = b * i + c * j + d * k + e * l + m, f[C + 1] = b * n + c * o + d * p + e * q + r, f[C + 2] = b * s + c * t + d * u + e * v + w, f[C + 3] = b * x + c * y + d * z + e * A + B; 1991 return ! 0 1992 }, createjs.ColorMatrixFilter = createjs.promote(a, "Filter") 1993}(), this.createjs = this.createjs || {}, function () { 1994 "use strict"; 1995 1996 function a() { 1997 throw"Touch cannot be instantiated" 1998 } 1999 2000 a.isSupported = function () { 2001 return !! ("ontouchstart" in window || window.navigator.msPointerEnabled && window.navigator.msMaxTouchPoints > 0 || window.navigator.pointerEnabled && window.navigator.maxTouchPoints > 0) 2002 }, a.enable = function (b, c, d) { 2003 return b && b.canvas && a.isSupported() ? b.__touch ? ! 0 : (b.__touch = { 2004 pointers: {}, 2005 multitouch: ! c, 2006 preventDefault: ! d, 2007 count: 0 2008 }, "ontouchstart" in window ? a._IOS_enable(b) : (window.navigator.msPointerEnabled || window.navigator.pointerEnabled) && a._IE_enable(b), ! 0) : ! 1 2009 }, a.disable = function (b) { 2010 b && ("ontouchstart" in window ? a._IOS_disable(b) : (window.navigator.msPointerEnabled || window.navigator.pointerEnabled) && a._IE_disable(b), delete b.__touch) 2011 }, a._IOS_enable = function (b) { 2012 var c = b.canvas, d = b.__touch.f = function (c) { 2013 a._IOS_handleEvent(b, c) 2014 }; 2015 c.addEventListener("touchstart", d, ! 1), c.addEventListener("touchmove", d, ! 1), c.addEventListener("touchend", d, ! 1), c.addEventListener("touchcancel", d, ! 1) 2016 }, a._IOS_disable = function (a) { 2017 var b = a.canvas; 2018 if (b) { 2019 var c = a.__touch.f; 2020 b.removeEventListener("touchstart", c, ! 1), b.removeEventListener("touchmove", c, ! 1), b.removeEventListener("touchend", c, ! 1), b.removeEventListener("touchcancel", c, ! 1) 2021 } 2022 }, a._IOS_handleEvent = function (a, b) { 2023 if (a) { 2024 a.__touch.preventDefault && b.preventDefault && b.preventDefault(); 2025 for (var c = b.changedTouches, d = b.type, e = 0, f = c.length; f > e; e++) { 2026 var g = c[e], h = g.identifier; 2027 g.target == a.canvas && ("touchstart" == d ? this._handleStart(a, h, b, g.pageX, g.pageY) : "touchmove" == d ? this._handleMove(a, h, b, g.pageX, g.pageY) : ("touchend" == d || "touchcancel" == d) && this._handleEnd(a, h, b)) 2028 } 2029 } 2030 }, a._IE_enable = function (b) { 2031 var c = b.canvas, d = b.__touch.f = function (c) { 2032 a._IE_handleEvent(b, c) 2033 }; 2034 void 0 === window.navigator.pointerEnabled ? (c.addEventListener("MSPointerDown", d, ! 1), window.addEventListener("MSPointerMove", d, ! 1), window.addEventListener("MSPointerUp", d, ! 1), window.addEventListener("MSPointerCancel", d, ! 1), b.__touch.preventDefault && (c.style.msTouchAction = "none")) : (c.addEventListener("pointerdown", d, ! 1), window.addEventListener("pointermove", d, ! 1), window.addEventListener("pointerup", d, ! 1), window.addEventListener("pointercancel", d, ! 1), b.__touch.preventDefault && (c.style.touchAction = "none")), b.__touch.activeIDs = {} 2035 }, a._IE_disable = function (a) { 2036 var b = a.__touch.f; 2037 void 0 === window.navigator.pointerEnabled ? (window.removeEventListener("MSPointerMove", b, ! 1), window.removeEventListener("MSPointerUp", b, ! 1), window.removeEventListener("MSPointerCancel", b, ! 1), a.canvas && a.canvas.removeEventListener("MSPointerDown", b, ! 1)) : (window.removeEventListener("pointermove", b, ! 1), window.removeEventListener("pointerup", b, ! 1), window.removeEventListener("pointercancel", b, ! 1), a.canvas && a.canvas.removeEventListener("pointerdown", b, ! 1)) 2038 }, a._IE_handleEvent = function (a, b) { 2039 if (a) { 2040 a.__touch.preventDefault && b.preventDefault && b.preventDefault(); 2041 var c = b.type, d = b.pointerId, e = a.__touch.activeIDs; 2042 if ("MSPointerDown" == c || "pointerdown" == c) { 2043 if (b.srcElement != a.canvas) return; 2044 e[d] = ! 0, this._handleStart(a, d, b, b.pageX, b.pageY) 2045 } else e[d] && ("MSPointerMove" == c || "pointermove" == c ? this._handleMove(a, d, b, b.pageX, b.pageY) : ("MSPointerUp" == c || "MSPointerCancel" == c || "pointerup" == c || "pointercancel" == c) && (delete e[d], this._handleEnd(a, d, b))) 2046 } 2047 }, a._handleStart = function (a, b, c, d, e) { 2048 var f = a.__touch; 2049 if (f.multitouch || ! f.count) { 2050 var g = f.pointers; 2051 g[b] || (g[b] = ! 0, f.count++, a._handlePointerDown(b, c, d, e)) 2052 } 2053 }, a._handleMove = function (a, b, c, d, e) { 2054 a.__touch.pointers[b] && a._handlePointerMove(b, c, d, e) 2055 }, a._handleEnd = function (a, b, c) { 2056 var d = a.__touch, e = d.pointers; 2057 e[b] && (d.count--, a._handlePointerUp(b, c, ! 0), delete e[b]) 2058 }, createjs.Touch = a 2059}(), this.createjs = this.createjs || {}, function () { 2060 "use strict"; 2061 var a = createjs.EaselJS = createjs.EaselJS || {}; 2062 a.version = "0.8.2", a.buildDate = "Thu, 26 Nov 2015 20:44:34 GMT" 2063}(), this.createjs = this.createjs || {}, function () { 2064 "use strict"; 2065 var a = createjs.PreloadJS = createjs.PreloadJS || {}; 2066 a.version = "0.6.2", a.buildDate = "Thu, 26 Nov 2015 20:44:31 GMT" 2067}(), this.createjs = this.createjs || {}, function () { 2068 "use strict"; 2069 createjs.proxy = function (a, b) { 2070 var c = Array.prototype.slice.call(arguments, 2); 2071 return function () { 2072 return a.apply(b, Array.prototype.slice.call(arguments, 0).concat(c)) 2073 } 2074 } 2075}(), this.createjs = this.createjs || {}, function () { 2076 "use strict"; 2077 2078 function a(a, b, c) { 2079 this.Event_constructor("error"), this.title = a, this.message = b, this.data = c 2080 } 2081 2082 var b = createjs.extend(a, createjs.Event); 2083 b.clone = function () { 2084 return new createjs.ErrorEvent(this.title, this.message, this.data) 2085 }, createjs.ErrorEvent = createjs.promote(a, "Event") 2086}(), this.createjs = this.createjs || {}, function (a) { 2087 "use strict"; 2088 2089 function b(a, b) { 2090 this.Event_constructor("progress"), this.loaded = a, this.total = null == b ? 1 : b, this.progress = 0 == b ? 0 : this.loaded / this.total 2091 } 2092 2093 var c = createjs.extend(b, createjs.Event); 2094 c.clone = function () { 2095 return new createjs.ProgressEvent(this.loaded, this.total) 2096 }, createjs.ProgressEvent = createjs.promote(b, "Event") 2097}(window), function () { 2098 function a(b, d) { 2099 function f(a) { 2100 if (f[a] !== q) return f[a]; 2101 var b; 2102 if ("bug-string-char-index" == a) b = "a" != "a"[0]; else if ("json" == a) b = f("json-stringify") && f("json-parse"); else { 2103 var c, e = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}'; 2104 if ("json-stringify" == a) { 2105 var i = d.stringify, k = "function" == typeof i && t; 2106 if (k) { 2107 (c = function () { 2108 return 1 2109 }).toJSON = c; 2110 try { 2111 k = "0" === i(0) && "0" === i(new g) && '""' == i(new h) && i(s) === q && i(q) === q && i() === q && "1" === i(c) && "[1]" == i([c]) && "[null]" == i([q]) && "null" == i(null) && "[null,null,null]" == i([q, s, null]) && i({a: [c, ! 0, ! 1, null, "\x00\b\n\f\r "]}) == e && "1" === i(null, c) && "[\n 1,\n 2\n]" == i([1, 2], null, 1) && '"-271821-04-20T00:00:00.000Z"' == i(new j(-864e13)) && '"+275760-09-13T00:00:00.000Z"' == i(new j(864e13)) && '"-000001-01-01T00:00:00.000Z"' == i(new j(-621987552e5)) && '"1969-12-31T23:59:59.999Z"' == i(new j(-1)) 2112 } catch (l) { 2113 k = ! 1 2114 } 2115 } 2116 b = k 2117 } 2118 if ("json-parse" == a) { 2119 var m = d.parse; 2120 if ("function" == typeof m) try { 2121 if (0 === m("0") && ! m( ! 1)) { 2122 c = m(e); 2123 var n = 5 == c.a.length && 1 === c.a[0]; 2124 if (n) { 2125 try { 2126 n = ! m('" "') 2127 } catch (l) { 2128 } 2129 if (n) try { 2130 n = 1 !== m("01") 2131 } catch (l) { 2132 } 2133 if (n) try { 2134 n = 1 !== m("1.") 2135 } catch (l) { 2136 } 2137 } 2138 } 2139 } catch (l) { 2140 n = ! 1 2141 } 2142 b = n 2143 } 2144 } 2145 return f[a] = !! b 2146 } 2147 2148 b || (b = e.Object()), d || (d = e.Object()); 2149 var g = b.Number || e.Number, h = b.String || e.String, i = b.Object || e.Object, j = b.Date || e.Date, 2150 k = b.SyntaxError || e.SyntaxError, l = b.TypeError || e.TypeError, m = b.Math || e.Math, n = b.JSON || e.JSON; 2151 "object" == typeof n && n && (d.stringify = n.stringify, d.parse = n.parse); 2152 var o, p, q, r = i.prototype, s = r.toString, t = new j(-0xc782b5b800cec); 2153 try { 2154 t = -109252 == t.getUTCFullYear() && 0 === t.getUTCMonth() && 1 === t.getUTCDate() && 10 == t.getUTCHours() && 37 == t.getUTCMinutes() && 6 == t.getUTCSeconds() && 708 == t.getUTCMilliseconds() 2155 } catch (u) { 2156 } 2157 if ( ! f("json")) { 2158 var v = "[object Function]", w = "[object Date]", x = "[object Number]", y = "[object String]", 2159 z = "[object Array]", A = "[object Boolean]", B = f("bug-string-char-index"); 2160 if ( ! t) var C = m.floor, D = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], E = function (a, b) { 2161 return D[b] + 365 * (a - 1970) + C((a - 1969 + (b = +(b > 1))) / 4) - C((a - 1901 + b) / 100) + C((a - 1601 + b) / 400) 2162 }; 2163 if ((o = r.hasOwnProperty) || (o = function (a) { 2164 var b, c = {}; 2165 return (c.__proto__ = null, c.__proto__ = {toString: 1}
vendor: 9,441 bytes, lines 2165-2356
2165, c).toString != s ? o = function (a) { 2166 var b = this.__proto__, c = a in (this.__proto__ = null, this); 2167 return this.__proto__ = b, c 2168 } : (b = c.constructor, o = function (a) { 2169 var c = (this.constructor || b).prototype; 2170 return a in this && ! (a in c && this[a] === c[a]) 2171 }), c = null, o.call(this, a) 2172 }), p = function (a, b) { 2173 var d, e, f, g = 0; 2174 (d = function () { 2175 this.valueOf = 0 2176 }).prototype.valueOf = 0, e = new d; 2177 for (f in e) o.call(e, f) && g++; 2178 return d = e = null, g ? p = 2 == g ? function (a, b) { 2179 var c, d = {}, e = s.call(a) == v; 2180 for (c in a) e && "prototype" == c || o.call(d, c) || ! (d[c] = 1) || ! o.call(a, c) || b(c) 2181 } : function (a, b) { 2182 var c, d, e = s.call(a) == v; 2183 for (c in a) e && "prototype" == c || ! o.call(a, c) || (d = "constructor" === c) || b(c); 2184 (d || o.call(a, c = "constructor")) && b(c) 2185 } : (e = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], p = function (a, b) { 2186 var d, f, g = s.call(a) == v, 2187 h = ! g && "function" != typeof a.constructor && c[typeof a.hasOwnProperty] && a.hasOwnProperty || o; 2188 for (d in a) g && "prototype" == d || ! h.call(a, d) || b(d); 2189 for (f = e.length; d = e[--f]; h.call(a, d) && b(d)) ; 2190 }), p(a, b) 2191 }, ! f("json-stringify")) { 2192 var F = {92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t"}, G = "000000", 2193 H = function (a, b) { 2194 return (G + (b || 0)).slice(-a) 2195 }, I = "\\u00", J = function (a) { 2196 for (var b = '"', c = 0, d = a.length, e = ! B || d > 10, f = e && (B ? a.split("") : a); d > c; c++) { 2197 var g = a.charCodeAt(c); 2198 switch (g) { 2199 case 8: 2200 case 9: 2201 case 10: 2202 case 12: 2203 case 13: 2204 case 34: 2205 case 92: 2206 b += F[g]; 2207 break; 2208 default: 2209 if (32 > g) { 2210 b += I + H(2, g.toString(16)); 2211 break 2212 } 2213 b += e ? f[c] : a.charAt(c) 2214 } 2215 } 2216 return b + '"' 2217 }, K = function (a, b, c, d, e, f, g) { 2218 var h, i, j, k, m, n, r, t, u, v, B, D, F, G, I, L; 2219 try { 2220 h = b[a] 2221 } catch (M) { 2222 } 2223 if ("object" == typeof h && h) if (i = s.call(h), i != w || o.call(h, "toJSON")) "function" == typeof h.toJSON && (i != x && i != y && i != z || o.call(h, "toJSON")) && (h = h.toJSON(a)); else if (h > -1 / 0 && 1 / 0 > h) { 2224 if (E) { 2225 for (m = C(h / 864e5), j = C(m / 365.2425) + 1970 - 1; E(j + 1, 0) <= m; j++) ; 2226 for (k = C((m - E(j, 0)) / 30.42); E(j, k + 1) <= m; k++) ; 2227 m = 1 + m - E(j, k), n = (h % 864e5 + 864e5) % 864e5, r = C(n / 36e5) % 24, t = C(n / 6e4) % 60, u = C(n / 1e3) % 60, v = n % 1e3 2228 } else j = h.getUTCFullYear(), k = h.getUTCMonth(), m = h.getUTCDate(), r = h.getUTCHours(), t = h.getUTCMinutes(), u = h.getUTCSeconds(), v = h.getUTCMilliseconds(); 2229 h = (0 >= j || j >= 1e4 ? (0 > j ? "-" : "+") + H(6, 0 > j ? -j : j) : H(4, j)) + "-" + H(2, k + 1) + "-" + H(2, m) + "T" + H(2, r) + ":" + H(2, t) + ":" + H(2, u) + "." + H(3, v) + "Z" 2230 } else h = null; 2231 if (c && (h = c.call(b, a, h)), null === h) return "null"; 2232 if (i = s.call(h), i == A) return "" + h; 2233 if (i == x) return h > -1 / 0 && 1 / 0 > h ? "" + h : "null"; 2234 if (i == y) return J("" + h); 2235 if ("object" == typeof h) { 2236 for (G = g.length; G--;) if (g[G] === h) throw l(); 2237 if (g.push(h), B = [], I = f, f += e, i == z) { 2238 for (F = 0, G = h.length; G > F; F++) D = K(F, h, c, d, e, f, g), B.push(D === q ? "null" : D); 2239 L = B.length ? e ? "[\n" + f + B.join(",\n" + f) + "\n" + I + "]" : "[" + B.join(",") + "]" : "[]" 2240 } else p(d || h, function (a) { 2241 var b = K(a, h, c, d, e, f, g); 2242 b !== q && B.push(J(a) + ":" + (e ? " " : "") + b) 2243 }), L = B.length ? e ? "{\n" + f + B.join(",\n" + f) + "\n" + I + "}" : "{" + B.join(",") + "}" : "{}"; 2244 return g.pop(), L 2245 } 2246 }; 2247 d.stringify = function (a, b, d) { 2248 var e, f, g, h; 2249 if (c[typeof b] && b) if ((h = s.call(b)) == v) f = b; else if (h == z) { 2250 g = {}; 2251 for (var i, j = 0, k = b.length; k > j; i = b[j++], h = s.call(i), (h == y || h == x) && (g[i] = 1)) ; 2252 } 2253 if (d) if ((h = s.call(d)) == x) { 2254 if ((d -= d % 1) > 0) for (e = "", d > 10 && (d = 10); e.length < d; e += " ") ; 2255 } else h == y && (e = d.length <= 10 ? d : d.slice(0, 10)); 2256 return K("", (i = {}, i[""] = a, i), f, g, e, "", []) 2257 } 2258 } 2259 if ( ! f("json-parse")) { 2260 var L, M, N = h.fromCharCode, 2261 O = {92: "\\", 34: '"', 47: "/", 98: "\b", 116: " ", 110: "\n", 102: "\f", 114: "\r"}, P = function () { 2262 throw L = M = null, k() 2263 }, Q = function () { 2264 for (var a, b, c, d, e, f = M, g = f.length; g > L;) switch (e = f.charCodeAt(L)) { 2265 case 9: 2266 case 10: 2267 case 13: 2268 case 32: 2269 L++; 2270 break; 2271 case 123: 2272 case 125: 2273 case 91: 2274 case 93: 2275 case 58: 2276 case 44: 2277 return a = B ? f.charAt(L) : f[L], L++, a; 2278 case 34: 2279 for (a = "@", L++; g > L;) if (e = f.charCodeAt(L), 32 > e) P(); else if (92 == e) switch (e = f.charCodeAt(++L)) { 2280 case 92: 2281 case 34: 2282 case 47: 2283 case 98: 2284 case 116: 2285 case 110: 2286 case 102: 2287 case 114: 2288 a += O[e], L++; 2289 break; 2290 case 117: 2291 for (b = ++L, c = L + 4; c > L; L++) e = f.charCodeAt(L), e >= 48 && 57 >= e || e >= 97 && 102 >= e || e >= 65 && 70 >= e || P(); 2292 a += N("0x" + f.slice(b, L)); 2293 break; 2294 default: 2295 P() 2296 } else { 2297 if (34 == e) break; 2298 for (e = f.charCodeAt(L), b = L; e >= 32 && 92 != e && 34 != e;) e = f.charCodeAt(++L); 2299 a += f.slice(b, L) 2300 } 2301 if (34 == f.charCodeAt(L)) return L++, a; 2302 P(); 2303 default: 2304 if (b = L, 45 == e && (d = ! 0, e = f.charCodeAt(++L)), e >= 48 && 57 >= e) { 2305 for (48 == e && (e = f.charCodeAt(L + 1), e >= 48 && 57 >= e) && P(), d = ! 1; g > L && (e = f.charCodeAt(L), e >= 48 && 57 >= e); L++) ; 2306 if (46 == f.charCodeAt(L)) { 2307 for (c = ++L; g > c && (e = f.charCodeAt(c), e >= 48 && 57 >= e); c++) ; 2308 c == L && P(), L = c 2309 } 2310 if (e = f.charCodeAt(L), 101 == e || 69 == e) { 2311 for (e = f.charCodeAt(++L), (43 == e || 45 == e) && L++, c = L; g > c && (e = f.charCodeAt(c), e >= 48 && 57 >= e); c++) ; 2312 c == L && P(), L = c 2313 } 2314 return +f.slice(b, L) 2315 } 2316 if (d && P(), "true" == f.slice(L, L + 4)) return L += 4, ! 0; 2317 if ("false" == f.slice(L, L + 5)) return L += 5, ! 1; 2318 if ("null" == f.slice(L, L + 4)) return L += 4, null; 2319 P() 2320 } 2321 return "$" 2322 }, R = function (a) { 2323 var b, c; 2324 if ("$" == a && P(), "string" == typeof a) { 2325 if ("@" == (B ? a.charAt(0) : a[0])) return a.slice(1); 2326 if ("[" == a) { 2327 for (b = []; a = Q(), "]" != a; c || (c = ! 0)) c && ("," == a ? (a = Q(), "]" == a && P()) : P()), "," == a && P(), b.push(R(a)); 2328 return b 2329 } 2330 if ("{" == a) { 2331 for (b = {}; a = Q(), "}" != a; c || (c = ! 0)) c && ("," == a ? (a = Q(), "}" == a && P()) : P()), ("," == a || "string" != typeof a || "@" != (B ? a.charAt(0) : a[0]) || ":" != Q()) && P(), b[a.slice(1)] = R(Q()); 2332 return b 2333 } 2334 P() 2335 } 2336 return a 2337 }, S = function (a, b, c) { 2338 var d = T(a, b, c); 2339 d === q ? delete a[b] : a[b] = d 2340 }, T = function (a, b, c) { 2341 var d, e = a[b]; 2342 if ("object" == typeof e && e) if (s.call(e) == z) for (d = e.length; d--;) S(e, d, c); else p(e, function (a) { 2343 S(e, a, c) 2344 }); 2345 return c.call(a, b, e) 2346 }; 2347 d.parse = function (a, b) { 2348 var c, d; 2349 return L = 0, M = "" + a, c = R(Q()), "$" != Q() && P(), L = M = null, b && s.call(b) == v ? T((d = {}, d[""] = c, d), "", b) : c 2350 } 2351 } 2352 } 2353 return d.runInContext = a, d 2354 } 2355 2356 var b = "function" == typeof define && define.amd, c = {"function": ! 0, object: ! 0},
vendor: 4,606 bytes, lines 2357-2477
2357 d = c[typeof exports] && exports && ! exports.nodeType && exports, e = c[typeof window] && window || this, 2358 f = d && c[typeof module] && module && ! module.nodeType && "object" == typeof global && global; 2359 if (! f || f.global !== f && f.window !== f && f.self !== f || (e = f), d && ! b) a(e, d); else { 2360 var g = e.JSON, h = e.JSON3, i = ! 1, j = a(e, e.JSON3 = { 2361 noConflict: function () { 2362 return i || (i = ! 0, e.JSON = g, e.JSON3 = h, g = h = null), j 2363 } 2364 }); 2365 e.JSON = {parse: j.parse, stringify: j.stringify} 2366 } 2367 b && define(function () { 2368 return j 2369 }) 2370}.call(this), function () { 2371 var a = {}; 2372 a.appendToHead = function (b) { 2373 a.getHead().appendChild(b) 2374 }, a.getHead = function () { 2375 return document.head || document.getElementsByTagName("head")[0] 2376 }, a.getBody = function () { 2377 return document.body || document.getElementsByTagName("body")[0] 2378 }, createjs.DomUtils = a 2379}(), function () { 2380 var a = {}; 2381 a.parseXML = function (a, b) { 2382 var c = null; 2383 try { 2384 if (window.DOMParser) { 2385 var d = new DOMParser; 2386 c = d.parseFromString(a, b) 2387 } 2388 } catch (e) { 2389 } 2390 if ( ! c) try { 2391 c = new ActiveXObject("Microsoft.XMLDOM"), c.async = ! 1, c.loadXML(a) 2392 } catch (e) { 2393 c = null 2394 } 2395 return c 2396 }, a.parseJSON = function (a) { 2397 if (null == a) return null; 2398 try { 2399 return JSON.parse(a) 2400 } catch (b) { 2401 throw b 2402 } 2403 }, createjs.DataUtils = a 2404}(), this.createjs = this.createjs || {}, function () { 2405 "use strict"; 2406 2407 function a() { 2408 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 = c.LOAD_TIMEOUT_DEFAULT 2409 } 2410 2411 var b = a.prototype = {}, c = a; 2412 c.LOAD_TIMEOUT_DEFAULT = 8e3, c.create = function (b) { 2413 if ("string" == typeof b) { 2414 var d = new a; 2415 return d.src = b, d 2416 } 2417 if (b instanceof c) return b; 2418 if (b instanceof Object && b.src) return null == b.loadTimeout && (b.loadTimeout = c.LOAD_TIMEOUT_DEFAULT), b; 2419 throw new Error("Type not recognized.") 2420 }, b.set = function (a) { 2421 for (var b in a) this[b] = a[b]; 2422 return this 2423 }, createjs.LoadItem = c 2424}(), function () { 2425 var a = {}; 2426 a.ABSOLUTE_PATT = /^(?:\w+:)?\/{2}/i, a.RELATIVE_PATT = /^[.\/]*?\//i, a.EXTENSION_PATT = /\/?[^\/]+\.(\w{1,5})$/i, a.parseURI = function (b) { 2427 var c = {absolute: ! 1, relative: ! 1}; 2428 if (null == b) return c; 2429 var d = b.indexOf("?"); 2430 d > -1 && (b = b.substr(0, d)); 2431 var e; 2432 return a.ABSOLUTE_PATT.test(b) ? c.absolute = ! 0 : a.RELATIVE_PATT.test(b) && (c.relative = ! 0), (e = b.match(a.EXTENSION_PATT)) && (c.extension = e[1].toLowerCase()), c 2433 }, a.formatQueryString = function (a, b) { 2434 if (null == a) throw new Error("You must specify data."); 2435 var c = []; 2436 for (var d in a) c.push(d + "=" + escape(a[d])); 2437 return b && (c = c.concat(b)), c.join("&") 2438 }, a.buildPath = function (a, b) { 2439 if (null == b) return a; 2440 var c = [], d = a.indexOf("?"); 2441 if (-1 != d) { 2442 var e = a.slice(d + 1); 2443 c = c.concat(e.split("&")) 2444 } 2445 return -1 != d ? a.slice(0, d) + "?" + this.formatQueryString(b, c) : a + "?" + this.formatQueryString(b, c) 2446 }, a.isCrossDomain = function (a) { 2447 var b = document.createElement("a"); 2448 b.href = a.src; 2449 var c = document.createElement("a"); 2450 c.href = location.href; 2451 var d = "" != b.hostname && (b.port != c.port || b.protocol != c.protocol || b.hostname != c.hostname); 2452 return d 2453 }, a.isLocal = function (a) { 2454 var b = document.createElement("a"); 2455 return b.href = a.src, "" == b.hostname && "file:" == b.protocol 2456 }, a.isBinary = function (a) { 2457 switch (a) { 2458 case createjs.AbstractLoader.IMAGE: 2459 case createjs.AbstractLoader.BINARY: 2460 return ! 0; 2461 default: 2462 return ! 1 2463 } 2464 }, a.isImageTag = function (a) { 2465 return a instanceof HTMLImageElement 2466 }, a.isAudioTag = function (a) { 2467 return window.HTMLAudioElement ? a instanceof HTMLAudioElement : ! 1 2468 }, a.isVideoTag = function (a) { 2469 return window.HTMLVideoElement ? a instanceof HTMLVideoElement : ! 1 2470 }, a.isText = function (a) { 2471 switch (a) { 2472 case createjs.AbstractLoader.TEXT: 2473 case createjs.AbstractLoader.JSON: 2474 case createjs.AbstractLoader.MANIFEST: 2475 case createjs.AbstractLoader.XML: 2476 case createjs.AbstractLoader.CSS: 2477 case createjs.AbstractLoader.SVG:
vendor: 23,745 bytes, lines 2478-2864
2478 case createjs.AbstractLoader.JAVASCRIPT: 2479 case createjs.AbstractLoader.SPRITESHEET: 2480 return ! 0; 2481 default: 2482 return ! 1 2483 } 2484 }, a.getTypeByExtension = function (a) { 2485 if (null == a) return createjs.AbstractLoader.TEXT; 2486 switch (a.toLowerCase()) { 2487 case"jpeg": 2488 case"jpg": 2489 case"gif": 2490 case"png": 2491 case"webp": 2492 case"bmp": 2493 return createjs.AbstractLoader.IMAGE; 2494 case"ogg": 2495 case"mp3": 2496 case"webm": 2497 return createjs.AbstractLoader.SOUND; 2498 case"mp4": 2499 case"webm": 2500 case"ts": 2501 return createjs.AbstractLoader.VIDEO; 2502 case"json": 2503 return createjs.AbstractLoader.JSON; 2504 case"xml": 2505 return createjs.AbstractLoader.XML; 2506 case"css": 2507 return createjs.AbstractLoader.CSS; 2508 case"js": 2509 return createjs.AbstractLoader.JAVASCRIPT; 2510 case"svg": 2511 return createjs.AbstractLoader.SVG; 2512 default: 2513 return createjs.AbstractLoader.TEXT 2514 } 2515 }, createjs.RequestUtils = a 2516}(), this.createjs = this.createjs || {}, function () { 2517 "use strict"; 2518 2519 function a(a, b, c) { 2520 this.EventDispatcher_constructor(), this.loaded = ! 1, this.canceled = ! 1, this.progress = 0, this.type = c, this.resultFormatter = null, a ? this._item = createjs.LoadItem.create(a) : this._item = null, this._preferXHR = b, this._result = null, this._rawResult = null, this._loadedItems = null, this._tagSrcAttribute = null, this._tag = null 2521 } 2522 2523 var b = createjs.extend(a, createjs.EventDispatcher), c = a; 2524 c.POST = "POST", c.GET = "GET", c.BINARY = "binary", c.CSS = "css", c.IMAGE = "image", c.JAVASCRIPT = "javascript", c.JSON = "json", c.JSONP = "jsonp", c.MANIFEST = "manifest", c.SOUND = "sound", c.VIDEO = "video", c.SPRITESHEET = "spritesheet", c.SVG = "svg", c.TEXT = "text", c.XML = "xml", b.getItem = function () { 2525 return this._item 2526 }, b.getResult = function (a) { 2527 return a ? this._rawResult : this._result 2528 }, b.getTag = function () { 2529 return this._tag 2530 }, b.setTag = function (a) { 2531 this._tag = a 2532 }, b.load = function () { 2533 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); 2534 var a = new createjs.Event("initialize"); 2535 a.loader = this._request, this.dispatchEvent(a), this._request.load() 2536 }, b.cancel = function () { 2537 this.canceled = ! 0, this.destroy() 2538 }, b.destroy = function () { 2539 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() 2540 }, b.getLoadedItems = function () { 2541 return this._loadedItems 2542 }, b._createRequest = function () { 2543 this._preferXHR ? this._request = new createjs.XHRRequest(this._item) : this._request = new createjs.TagRequest(this._item, this._tag || this._createTag(), this._tagSrcAttribute) 2544 }, b._createTag = function (a) { 2545 return null 2546 }, b._sendLoadStart = function () { 2547 this._isCanceled() || this.dispatchEvent("loadstart") 2548 }, b._sendProgress = function (a) { 2549 if ( ! this._isCanceled()) { 2550 var b = null; 2551 "number" == typeof a ? (this.progress = a, b = new createjs.ProgressEvent(this.progress)) : (b = a, this.progress = a.loaded / a.total, b.progress = this.progress, (isNaN(this.progress) || this.progress == 1 / 0) && (this.progress = 0)), this.hasEventListener("progress") && this.dispatchEvent(b) 2552 } 2553 }, b._sendComplete = function () { 2554 if ( ! this._isCanceled()) { 2555 this.loaded = ! 0; 2556 var a = new createjs.Event("complete"); 2557 a.rawResult = this._rawResult, null != this._result && (a.result = this._result), this.dispatchEvent(a) 2558 } 2559 }, b._sendError = function (a) { 2560 ! this._isCanceled() && this.hasEventListener("error") && (null == a && (a = new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")), this.dispatchEvent(a)) 2561 }, b._isCanceled = function () { 2562 return null == window.createjs || this.canceled ? ! 0 : ! 1 2563 }, b.resultFormatter = null, b.handleEvent = function (a) { 2564 switch (a.type) { 2565 case"complete": 2566 this._rawResult = a.target._response; 2567 var b = this.resultFormatter && this.resultFormatter(this); 2568 b instanceof Function ? b.call(this, createjs.proxy(this._resultFormatSuccess, this), createjs.proxy(this._resultFormatFailed, this)) : (this._result = b || this._rawResult, this._sendComplete()); 2569 break; 2570 case"progress": 2571 this._sendProgress(a); 2572 break; 2573 case"error": 2574 this._sendError(a); 2575 break; 2576 case"loadstart": 2577 this._sendLoadStart(); 2578 break; 2579 case"abort": 2580 case"timeout": 2581 this._isCanceled() || this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_" + a.type.toUpperCase() + "_ERROR")) 2582 } 2583 }, b._resultFormatSuccess = function (a) { 2584 this._result = a, this._sendComplete() 2585 }, b._resultFormatFailed = function (a) { 2586 this._sendError(a) 2587 }, b.buildPath = function (a, b) { 2588 return createjs.RequestUtils.buildPath(a, b) 2589 }, b.toString = function () { 2590 return "[PreloadJS AbstractLoader]" 2591 }, createjs.AbstractLoader = createjs.promote(a, "EventDispatcher") 2592}(), this.createjs = this.createjs || {}, function () { 2593 "use strict"; 2594 2595 function a(a, b, c) { 2596 this.AbstractLoader_constructor(a, b, c), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "src", this.on("initialize", this._updateXHR, this) 2597 } 2598 2599 var b = createjs.extend(a, createjs.AbstractLoader); 2600 b.load = function () { 2601 this._tag || (this._tag = this._createTag(this._item.src)), this._tag.preload = "auto", this._tag.load(), this.AbstractLoader_load() 2602 }, b._createTag = function () { 2603 }, b._createRequest = function () { 2604 this._preferXHR ? this._request = new createjs.XHRRequest(this._item) : this._request = new createjs.MediaTagRequest(this._item, this._tag || this._createTag(), this._tagSrcAttribute) 2605 }, b._updateXHR = function (a) { 2606 a.loader.setResponseType && a.loader.setResponseType("blob") 2607 }, b._formatResult = function (a) { 2608 if (this._tag.removeEventListener && this._tag.removeEventListener("canplaythrough", this._loadedHandler), this._tag.onstalled = null, this._preferXHR) { 2609 var b = window.URL || window.webkitURL, c = a.getResult( ! 0); 2610 a.getTag().src = b.createObjectURL(c) 2611 } 2612 return a.getTag() 2613 }, createjs.AbstractMediaLoader = createjs.promote(a, "AbstractLoader") 2614}(), this.createjs = this.createjs || {}, function () { 2615 "use strict"; 2616 var a = function (a) { 2617 this._item = a 2618 }, b = createjs.extend(a, createjs.EventDispatcher); 2619 b.load = function () { 2620 }, b.destroy = function () { 2621 }, b.cancel = function () { 2622 }, createjs.AbstractRequest = createjs.promote(a, "EventDispatcher") 2623}(), this.createjs = this.createjs || {}, function () { 2624 "use strict"; 2625 2626 function a(a, b, c) { 2627 this.AbstractRequest_constructor(a), this._tag = b, this._tagSrcAttribute = c, this._loadedHandler = createjs.proxy(this._handleTagComplete, this), this._addedToDOM = ! 1, this._startTagVisibility = null 2628 } 2629 2630 var b = createjs.extend(a, createjs.AbstractRequest); 2631 b.load = function () { 2632 this._tag.onload = createjs.proxy(this._handleTagComplete, this), this._tag.onreadystatechange = createjs.proxy(this._handleReadyStateChange, this), this._tag.onerror = createjs.proxy(this._handleError, this); 2633 var a = new createjs.Event("initialize"); 2634 a.loader = this._tag, this.dispatchEvent(a), this._hideTag(), this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), this._item.loadTimeout), this._tag[this._tagSrcAttribute] = this._item.src, null == this._tag.parentNode && (window.document.body.appendChild(this._tag), this._addedToDOM = ! 0) 2635 }, b.destroy = function () { 2636 this._clean(), this._tag = null, this.AbstractRequest_destroy() 2637 }, b._handleReadyStateChange = function () { 2638 clearTimeout(this._loadTimeout); 2639 var a = this._tag; 2640 ("loaded" == a.readyState || "complete" == a.readyState) && this._handleTagComplete() 2641 }, b._handleError = function () { 2642 this._clean(), this.dispatchEvent("error") 2643 }, b._handleTagComplete = function () { 2644 this._rawResult = this._tag, this._result = this.resultFormatter && this.resultFormatter(this) || this._rawResult, this._clean(), this._showTag(), this.dispatchEvent("complete") 2645 }, b._handleTimeout = function () { 2646 this._clean(), this.dispatchEvent(new createjs.Event("timeout")) 2647 }, b._clean = function () { 2648 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) 2649 }, b._hideTag = function () { 2650 this._startTagVisibility = this._tag.style.visibility, this._tag.style.visibility = "hidden" 2651 }, b._showTag = function () { 2652 this._tag.style.visibility = this._startTagVisibility 2653 }, b._handleStalled = function () { 2654 }, createjs.TagRequest = createjs.promote(a, "AbstractRequest") 2655}(), this.createjs = this.createjs || {}, function () { 2656 "use strict"; 2657 2658 function a(a, b, c) { 2659 this.AbstractRequest_constructor(a), this._tag = b, this._tagSrcAttribute = c, this._loadedHandler = createjs.proxy(this._handleTagComplete, this) 2660 } 2661 2662 var b = createjs.extend(a, createjs.TagRequest); 2663 b.load = function () { 2664 var a = createjs.proxy(this._handleStalled, this); 2665 this._stalledCallback = a; 2666 var b = createjs.proxy(this._handleProgress, this); 2667 this._handleProgress = b, this._tag.addEventListener("stalled", a), this._tag.addEventListener("progress", b), this._tag.addEventListener && this._tag.addEventListener("canplaythrough", this._loadedHandler, ! 1), this.TagRequest_load() 2668 }, b._handleReadyStateChange = function () { 2669 clearTimeout(this._loadTimeout); 2670 var a = this._tag; 2671 ("loaded" == a.readyState || "complete" == a.readyState) && this._handleTagComplete() 2672 }, b._handleStalled = function () { 2673 }, b._handleProgress = function (a) { 2674 if (a && ! (a.loaded > 0 && 0 == a.total)) { 2675 var b = new createjs.ProgressEvent(a.loaded, a.total); 2676 this.dispatchEvent(b) 2677 } 2678 }, b._clean = function () { 2679 this._tag.removeEventListener && this._tag.removeEventListener("canplaythrough", this._loadedHandler), this._tag.removeEventListener("stalled", this._stalledCallback), this._tag.removeEventListener("progress", this._progressCallback), this.TagRequest__clean() 2680 }, createjs.MediaTagRequest = createjs.promote(a, "TagRequest") 2681}(), this.createjs = this.createjs || {}, function () { 2682 "use strict"; 2683 2684 function a(a) { 2685 this.AbstractRequest_constructor(a), 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(a) 2686 } 2687 2688 var b = createjs.extend(a, createjs.AbstractRequest); 2689 a.ACTIVEX_VERSIONS = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], b.getResult = function (a) { 2690 return a && this._rawResponse ? this._rawResponse : this._response 2691 }, b.cancel = function () { 2692 this.canceled = ! 0, this._clean(), this._request.abort() 2693 }, b.load = function () { 2694 if (null == this._request) return void this._handleError(); 2695 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)); 2696 try { 2697 this._item.values && this._item.method != createjs.AbstractLoader.GET ? this._item.method == createjs.AbstractLoader.POST && this._request.send(createjs.RequestUtils.formatQueryString(this._item.values)) : this._request.send() 2698 } catch (a) { 2699 this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND", null, a)) 2700 } 2701 }, b.setResponseType = function (a) { 2702 "blob" === a && (a = window.URL ? "blob" : "arraybuffer", this._responseType = a), this._request.responseType = a 2703 }, b.getAllResponseHeaders = function () { 2704 return this._request.getAllResponseHeaders instanceof Function ? this._request.getAllResponseHeaders() : null 2705 }, b.getResponseHeader = function (a) { 2706 return this._request.getResponseHeader instanceof Function ? this._request.getResponseHeader(a) : null 2707 }, b._handleProgress = function (a) { 2708 if (a && ! (a.loaded > 0 && 0 == a.total)) { 2709 var b = new createjs.ProgressEvent(a.loaded, a.total); 2710 this.dispatchEvent(b) 2711 } 2712 }, b._handleLoadStart = function (a) { 2713 clearTimeout(this._loadTimeout), this.dispatchEvent("loadstart") 2714 }, b._handleAbort = function (a) { 2715 this._clean(), this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED", null, a)) 2716 }, b._handleError = function (a) { 2717 this._clean(), this.dispatchEvent(new createjs.ErrorEvent(a.message)) 2718 }, b._handleReadyStateChange = function (a) { 2719 4 == this._request.readyState && this._handleLoad() 2720 }, b._handleLoad = function (a) { 2721 if ( ! this.loaded) { 2722 this.loaded = ! 0; 2723 var b = this._checkError(); 2724 if (b) return void this._handleError(b); 2725 if (this._response = this._getResponse(), "arraybuffer" === this._responseType) try { 2726 this._response = new Blob([this._response]) 2727 } catch (c) { 2728 if (window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, "TypeError" === c.name && window.BlobBuilder) { 2729 var d = new BlobBuilder; 2730 d.append(this._response), this._response = d.getBlob() 2731 } 2732 } 2733 this._clean(), this.dispatchEvent(new createjs.Event("complete")) 2734 } 2735 }, b._handleTimeout = function (a) { 2736 this._clean(), this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT", null, a)) 2737 }, b._checkError = function () { 2738 var a = parseInt(this._request.status); 2739 switch (a) { 2740 case 404: 2741 case 0: 2742 return new Error(a) 2743 } 2744 return null 2745 }, b._getResponse = function () { 2746 if (null != this._response) return this._response; 2747 if (null != this._request.response) return this._request.response; 2748 try { 2749 if (null != this._request.responseText) return this._request.responseText 2750 } catch (a) { 2751 } 2752 try { 2753 if (null != this._request.responseXML) return this._request.responseXML 2754 } catch (a) { 2755 } 2756 return null 2757 }, b._createXHR = function (a) { 2758 var b = createjs.RequestUtils.isCrossDomain(a), c = {}, d = null; 2759 if (window.XMLHttpRequest) d = new XMLHttpRequest, b && void 0 === d.withCredentials && window.XDomainRequest && (d = new XDomainRequest); else { 2760 for (var e = 0, f = s.ACTIVEX_VERSIONS.length; f > e; e++) { 2761 var g = s.ACTIVEX_VERSIONS[e]; 2762 try { 2763 d = new ActiveXObject(g); 2764 break 2765 } catch (h) { 2766 } 2767 } 2768 if (null == d) return ! 1 2769 } 2770 null == a.mimeType && createjs.RequestUtils.isText(a.type) && (a.mimeType = "text/plain; charset=utf-8"), a.mimeType && d.overrideMimeType && d.overrideMimeType(a.mimeType), this._xhrLevel = "string" == typeof d.responseType ? 2 : 1; 2771 var i = null; 2772 if (i = a.method == createjs.AbstractLoader.GET ? createjs.RequestUtils.buildPath(a.src, a.values) : a.src, d.open(a.method || createjs.AbstractLoader.GET, i, ! 0), b && d instanceof XMLHttpRequest && 1 == this._xhrLevel && (c.Origin = location.origin), a.values && a.method == createjs.AbstractLoader.POST && (c["Content-Type"] = "application/x-www-form-urlencoded"), b || c["X-Requested-With"] || (c["X-Requested-With"] = "XMLHttpRequest"), a.headers) for (var j in a.headers) c[j] = a.headers[j]; 2773 for (j in c) d.setRequestHeader(j, c[j]); 2774 return d instanceof XMLHttpRequest && void 0 !== a.withCredentials && (d.withCredentials = a.withCredentials), this._request = d, ! 0 2775 }, b._clean = function () { 2776 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) 2777 }, b.toString = function () { 2778 return "[PreloadJS XHRRequest]" 2779 }, createjs.XHRRequest = createjs.promote(a, "AbstractRequest") 2780}(), this.createjs = this.createjs || {},function () { 2781 "use strict"; 2782 2783 function a(a, b, c) { 2784 this.AbstractLoader_constructor(), this._plugins = [], this._typeCallbacks = {}, this._extensionCallbacks = {}, this.next = null, this.maintainScriptOrder = ! 0, this.stopOnError = ! 1, this._maxConnections = 1, this._availableLoaders = [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(a, b, c) 2785 } 2786 2787 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 2788 b.init = function (a, b, c) { 2789 this.useXHR = ! 0, this.preferXHR = ! 0, this._preferXHR = ! 0, this.setPreferXHR(a), this._paused = ! 1, this._basePath = b, this._crossOrigin = c, 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 2790 }, c.loadTimeout = 8e3, c.LOAD_TIMEOUT = 0, c.BINARY = createjs.AbstractLoader.BINARY, c.CSS = createjs.AbstractLoader.CSS, c.IMAGE = createjs.AbstractLoader.IMAGE, c.JAVASCRIPT = createjs.AbstractLoader.JAVASCRIPT, c.JSON = createjs.AbstractLoader.JSON, c.JSONP = createjs.AbstractLoader.JSONP, c.MANIFEST = createjs.AbstractLoader.MANIFEST, c.SOUND = createjs.AbstractLoader.SOUND, c.VIDEO = createjs.AbstractLoader.VIDEO, c.SVG = createjs.AbstractLoader.SVG, c.TEXT = createjs.AbstractLoader.TEXT, c.XML = createjs.AbstractLoader.XML, c.POST = createjs.AbstractLoader.POST, c.GET = createjs.AbstractLoader.GET, b.registerLoader = function (a) { 2791 if ( ! a || ! a.canLoadItem) throw new Error("loader is of an incorrect type."); 2792 if (-1 != this._availableLoaders.indexOf(a)) throw new Error("loader already exists."); 2793 this._availableLoaders.unshift(a) 2794 }, b.unregisterLoader = function (a) { 2795 var b = this._availableLoaders.indexOf(a); 2796 -1 != b && b < this._defaultLoaderLength - 1 && this._availableLoaders.splice(b, 1) 2797 }, b.setUseXHR = function (a) { 2798 return this.setPreferXHR(a) 2799 }, b.setPreferXHR = function (a) { 2800 return this.preferXHR = 0 != a && null != window.XMLHttpRequest, this.preferXHR 2801 }, b.removeAll = function () { 2802 this.remove() 2803 }, b.remove = function (a) { 2804 var b = null; 2805 if (a && ! Array.isArray(a)) b = [a]; else if (a) b = a; else if (arguments.length > 0) return; 2806 var c = ! 1; 2807 if (b) { 2808 for (; b.length;) { 2809 var d = b.pop(), e = this.getResult(d); 2810 for (f = this._loadQueue.length - 1; f >= 0; f--) if (g = this._loadQueue[f].getItem(), g.id == d || g.src == d) { 2811 this._loadQueue.splice(f, 1)[0].cancel(); 2812 break 2813 } 2814 for (f = this._loadQueueBackup.length - 1; f >= 0; f--) if (g = this._loadQueueBackup[f].getItem(), g.id == d || g.src == d) { 2815 this._loadQueueBackup.splice(f, 1)[0].cancel(); 2816 break 2817 } 2818 if (e) this._disposeItem(this.getItem(d)); else for (var f = this._currentLoads.length - 1; f >= 0; f--) { 2819 var g = this._currentLoads[f].getItem(); 2820 if (g.id == d || g.src == d) { 2821 this._currentLoads.splice(f, 1)[0].cancel(), c = ! 0; 2822 break 2823 } 2824 } 2825 } 2826 c && this._loadNext() 2827 } else { 2828 this.close(); 2829 for (var h in this._loadItemsById) this._disposeItem(this._loadItemsById[h]); 2830 this.init(this.preferXHR, this._basePath) 2831 } 2832 }, b.reset = function () { 2833 this.close(); 2834 for (var a in this._loadItemsById) this._disposeItem(this._loadItemsById[a]); 2835 for (var b = [], c = 0, d = this._loadQueueBackup.length; d > c; c++) b.push(this._loadQueueBackup[c].getItem()); 2836 this.loadManifest(b, ! 1) 2837 }, b.installPlugin = function (a) { 2838 if (null != a && null != a.getPreloadHandlers) { 2839 this._plugins.push(a); 2840 var b = a.getPreloadHandlers(); 2841 if (b.scope = a, null != b.types) for (var c = 0, d = b.types.length; d > c; c++) this._typeCallbacks[b.types[c]] = b; 2842 if (null != b.extensions) for (c = 0, d = b.extensions.length; d > c; c++) this._extensionCallbacks[b.extensions[c]] = b 2843 } 2844 }, b.setMaxConnections = function (a) { 2845 this._maxConnections = a, ! this._paused && this._loadQueue.length > 0 && this._loadNext() 2846 }, b.loadFile = function (a, b, c) { 2847 if (null == a) { 2848 var d = new createjs.ErrorEvent("PRELOAD_NO_FILE"); 2849 return void this._sendError(d) 2850 } 2851 this._addItem(a, null, c), b !== ! 1 ? this.setPaused( ! 1) : this.setPaused( ! 0) 2852 }, b.loadManifest = function (a, b, d) { 2853 var e = null, f = null; 2854 if (Array.isArray(a)) { 2855 if (0 == a.length) { 2856 var g = new createjs.ErrorEvent("PRELOAD_MANIFEST_EMPTY"); 2857 return void this._sendError(g) 2858 } 2859 e = a 2860 } else if ("string" == typeof a) e = [{src: a, type: c.MANIFEST}]; else { 2861 if ("object" != typeof a) { 2862 var g = new createjs.ErrorEvent("PRELOAD_MANIFEST_NULL"); 2863 return void this._sendError(g) 2864 }
vendor: 4,787 bytes, lines 2865-2955
2865 if (void 0 !== a.src) { 2866 if (null == a.type) a.type = c.MANIFEST; else if (a.type != c.MANIFEST) { 2867 var g = new createjs.ErrorEvent("PRELOAD_MANIFEST_TYPE"); 2868 this._sendError(g) 2869 } 2870 e = [a] 2871 } else void 0 !== a.manifest && (e = a.manifest, f = a.path) 2872 } 2873 for (var h = 0, i = e.length; i > h; h++) this._addItem(e[h], f, d); 2874 b !== ! 1 ? this.setPaused( ! 1) : this.setPaused( ! 0) 2875 }, b.load = function () { 2876 this.setPaused( ! 1) 2877 }, b.getItem = function (a) { 2878 return this._loadItemsById[a] || this._loadItemsBySrc[a] 2879 }, b.getResult = function (a, b) { 2880 var c = this._loadItemsById[a] || this._loadItemsBySrc[a]; 2881 if (null == c) return null; 2882 var d = c.id; 2883 return b && this._loadedRawResults[d] ? this._loadedRawResults[d] : this._loadedResults[d] 2884 }, b.getItems = function (a) { 2885 var b = []; 2886 for (var c in this._loadItemsById) { 2887 var d = this._loadItemsById[c], e = this.getResult(c); 2888 (a !== ! 0 || null != e) && b.push({item: d, result: e, rawResult: this.getResult(c, ! 0)}) 2889 } 2890 return b 2891 }, b.setPaused = function (a) { 2892 this._paused = a, this._paused || this._loadNext() 2893 }, b.close = function () { 2894 for (; this._currentLoads.length;) this._currentLoads.pop().cancel(); 2895 this._scriptOrder.length = 0, this._loadedScripts.length = 0, this.loadStartWasDispatched = ! 1, this._itemCount = 0, this._lastProgress = NaN 2896 }, b._addItem = function (a, b, c) { 2897 var d = this._createLoadItem(a, b, c); 2898 if (null != d) { 2899 var e = this._createLoader(d); 2900 null != e && ("plugins" in e && (e.plugins = this._plugins), d._loader = e, this._loadQueue.push(e), this._loadQueueBackup.push(e), this._numItems++, this._updateProgress(), (this.maintainScriptOrder && d.type == createjs.LoadQueue.JAVASCRIPT || d.maintainOrder === ! 0) && (this._scriptOrder.push(d), this._loadedScripts.push(null))) 2901 } 2902 }, b._createLoadItem = function (a, b, c) { 2903 var d = createjs.LoadItem.create(a); 2904 if (null == d) return null; 2905 var e = "", f = c || this._basePath; 2906 if (d.src instanceof Object) { 2907 if ( ! d.type) return null; 2908 if (b) { 2909 e = b; 2910 var g = createjs.RequestUtils.parseURI(b); 2911 null == f || g.absolute || g.relative || (e = f + e) 2912 } else null != f && (e = f) 2913 } else { 2914 var h = createjs.RequestUtils.parseURI(d.src); 2915 h.extension && (d.ext = h.extension), null == d.type && (d.type = createjs.RequestUtils.getTypeByExtension(d.ext)); 2916 var i = d.src; 2917 if ( ! h.absolute && ! h.relative) if (b) { 2918 e = b; 2919 var g = createjs.RequestUtils.parseURI(b); 2920 i = b + i, null == f || g.absolute || g.relative || (e = f + e) 2921 } else null != f && (e = f); 2922 d.src = e + d.src 2923 } 2924 d.path = e, (void 0 === d.id || null === d.id || "" === d.id) && (d.id = i); 2925 var j = this._typeCallbacks[d.type] || this._extensionCallbacks[d.ext]; 2926 if (j) { 2927 var k = j.callback.call(j.scope, d, this); 2928 if (k === ! 1) return null; 2929 k === ! 0 || null != k && (d._loader = k), h = createjs.RequestUtils.parseURI(d.src), null != h.extension && (d.ext = h.extension) 2930 } 2931 return this._loadItemsById[d.id] = d, this._loadItemsBySrc[d.src] = d, null == d.crossOrigin && (d.crossOrigin = this._crossOrigin), d 2932 }, b._createLoader = function (a) { 2933 if (null != a._loader) return a._loader; 2934 for (var b = this.preferXHR, c = 0; c < this._availableLoaders.length; c++) { 2935 var d = this._availableLoaders[c]; 2936 if (d && d.canLoadItem(a)) return new d(a, b) 2937 } 2938 return null 2939 }, b._loadNext = function () { 2940 if ( ! this._paused) { 2941 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; 2942 for (var a = 0; a < this._loadQueue.length && ! (this._currentLoads.length >= this._maxConnections); a++) { 2943 var b = this._loadQueue[a]; 2944 this._canStartLoad(b) && (this._loadQueue.splice(a, 1), a--, this._loadItem(b)) 2945 } 2946 } 2947 }, b._loadItem = function (a) { 2948 a.on("fileload", this._handleFileLoad, this), a.on("progress", this._handleProgress, this), a.on("complete", this._handleFileComplete, this), a.on("error", this._handleError, this), a.on("fileerror", this._handleFileError, this), this._currentLoads.push(a), this._sendFileStart(a.getItem()), a.load() 2949 }, b._handleFileLoad = function (a) { 2950 a.target = null, this.dispatchEvent(a) 2951 }, b._handleFileError = function (a) { 2952 var b = new createjs.ErrorEvent("FILE_LOAD_ERROR", null, a.item); 2953 this._sendError(b) 2954 }, b._handleError = function (a) { 2955 var b = a.target;
vendor: 61,464 bytes, lines 2956-4037
2956 this._numItemsLoaded++, this._finishOrderedItem(b, ! 0), this._updateProgress(); 2957 var c = new createjs.ErrorEvent("FILE_LOAD_ERROR", null, b.getItem()); 2958 this._sendError(c), this.stopOnError ? this.setPaused( ! 0) : (this._removeLoadItem(b), this._cleanLoadItem(b), this._loadNext()) 2959 }, b._handleFileComplete = function (a) { 2960 var b = a.target, c = b.getItem(), d = b.getResult(); 2961 this._loadedResults[c.id] = d; 2962 var e = b.getResult( ! 0); 2963 null != e && e !== d && (this._loadedRawResults[c.id] = e), this._saveLoadedItems(b), this._removeLoadItem(b), this._finishOrderedItem(b) || this._processFinishedLoad(c, b), this._cleanLoadItem(b) 2964 }, b._saveLoadedItems = function (a) { 2965 var b = a.getLoadedItems(); 2966 if (null !== b) for (var c = 0; c < b.length; c++) { 2967 var d = b[c].item; 2968 this._loadItemsBySrc[d.src] = d, this._loadItemsById[d.id] = d, this._loadedResults[d.id] = b[c].result, this._loadedRawResults[d.id] = b[c].rawResult 2969 } 2970 }, b._finishOrderedItem = function (a, b) { 2971 var c = a.getItem(); 2972 if (this.maintainScriptOrder && c.type == createjs.LoadQueue.JAVASCRIPT || c.maintainOrder) { 2973 a instanceof createjs.JavaScriptLoader && (this._currentlyLoadingScript = ! 1); 2974 var d = createjs.indexOf(this._scriptOrder, c); 2975 return -1 == d ? ! 1 : (this._loadedScripts[d] = b === ! 0 ? ! 0 : c, this._checkScriptLoadOrder(), ! 0) 2976 } 2977 return ! 1 2978 }, b._checkScriptLoadOrder = function () { 2979 for (var a = this._loadedScripts.length, b = 0; a > b; b++) { 2980 var c = this._loadedScripts[b]; 2981 if (null === c) break; 2982 if (c !== ! 0) { 2983 var d = this._loadedResults[c.id]; 2984 c.type == createjs.LoadQueue.JAVASCRIPT && createjs.DomUtils.appendToHead(d); 2985 var e = c._loader; 2986 this._processFinishedLoad(c, e), this._loadedScripts[b] = ! 0 2987 } 2988 } 2989 }, b._processFinishedLoad = function (a, b) { 2990 if (this._numItemsLoaded++, ! this.maintainScriptOrder && a.type == createjs.LoadQueue.JAVASCRIPT) { 2991 var c = b.getTag(); 2992 createjs.DomUtils.appendToHead(c) 2993 } 2994 this._updateProgress(), this._sendFileComplete(a, b), this._loadNext() 2995 }, b._canStartLoad = function (a) { 2996 if ( ! this.maintainScriptOrder || a.preferXHR) return ! 0; 2997 var b = a.getItem(); 2998 if (b.type != createjs.LoadQueue.JAVASCRIPT) return ! 0; 2999 if (this._currentlyLoadingScript) return ! 1; 3000 for (var c = this._scriptOrder.indexOf(b), d = 0; c > d;) { 3001 var e = this._loadedScripts[d]; 3002 if (null == e) return ! 1; 3003 d++ 3004 } 3005 return this._currentlyLoadingScript = ! 0, ! 0 3006 }, b._removeLoadItem = function (a) { 3007 for (var b = this._currentLoads.length, c = 0; b > c; c++) if (this._currentLoads[c] == a) { 3008 this._currentLoads.splice(c, 1); 3009 break 3010 } 3011 }, b._cleanLoadItem = function (a) { 3012 var b = a.getItem(); 3013 b && delete b._loader 3014 }, b._handleProgress = function (a) { 3015 var b = a.target; 3016 this._sendFileProgress(b.getItem(), b.progress), this._updateProgress() 3017 }, b._updateProgress = function () { 3018 var a = this._numItemsLoaded / this._numItems, b = this._numItems - this._numItemsLoaded; 3019 if (b > 0) { 3020 for (var c = 0, d = 0, e = this._currentLoads.length; e > d; d++) c += this._currentLoads[d].progress; 3021 a += c / b * (b / this._numItems) 3022 } 3023 this._lastProgress != a && (this._sendProgress(a), this._lastProgress = a) 3024 }, b._disposeItem = function (a) { 3025 delete this._loadedResults[a.id], delete this._loadedRawResults[a.id], delete this._loadItemsById[a.id], delete this._loadItemsBySrc[a.src] 3026 }, b._sendFileProgress = function (a, b) { 3027 if ( ! this._isCanceled() && ! this._paused && this.hasEventListener("fileprogress")) { 3028 var c = new createjs.Event("fileprogress"); 3029 c.progress = b, c.loaded = b, c.total = 1, c.item = a, this.dispatchEvent(c) 3030 } 3031 }, b._sendFileComplete = function (a, b) { 3032 if ( ! this._isCanceled() && ! this._paused) { 3033 var c = new createjs.Event("fileload"); 3034 c.loader = b, c.item = a, c.result = this._loadedResults[a.id], c.rawResult = this._loadedRawResults[a.id], a.completeHandler && a.completeHandler(c), this.hasEventListener("fileload") && this.dispatchEvent(c) 3035 } 3036 }, b._sendFileStart = function (a) { 3037 var b = new createjs.Event("filestart"); 3038 b.item = a, this.hasEventListener("filestart") && this.dispatchEvent(b) 3039 }, b.toString = function () { 3040 return "[PreloadJS LoadQueue]" 3041 }, createjs.LoadQueue = createjs.promote(a, "AbstractLoader") 3042}(),this.createjs = this.createjs || {},function () { 3043 "use strict"; 3044 3045 function a(a) { 3046 this.AbstractLoader_constructor(a, ! 0, createjs.AbstractLoader.TEXT) 3047 } 3048 3049 var b = (createjs.extend(a, createjs.AbstractLoader), a); 3050 b.canLoadItem = function (a) { 3051 return a.type == createjs.AbstractLoader.TEXT 3052 }, createjs.TextLoader = createjs.promote(a, "AbstractLoader") 3053}(),this.createjs = this.createjs || {},function () { 3054 "use strict"; 3055 3056 function a(a) { 3057 this.AbstractLoader_constructor(a, ! 0, createjs.AbstractLoader.BINARY), this.on("initialize", this._updateXHR, this) 3058 } 3059 3060 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3061 c.canLoadItem = function (a) { 3062 return a.type == createjs.AbstractLoader.BINARY 3063 }, b._updateXHR = function (a) { 3064 a.loader.setResponseType("arraybuffer") 3065 }, createjs.BinaryLoader = createjs.promote(a, "AbstractLoader") 3066}(),this.createjs = this.createjs || {},function () { 3067 "use strict"; 3068 3069 function a(a, b) { 3070 this.AbstractLoader_constructor(a, b, createjs.AbstractLoader.CSS), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "href", b ? this._tag = document.createElement("style") : this._tag = document.createElement("link"), this._tag.rel = "stylesheet", this._tag.type = "text/css" 3071 } 3072 3073 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3074 c.canLoadItem = function (a) { 3075 return a.type == createjs.AbstractLoader.CSS 3076 }, b._formatResult = function (a) { 3077 if (this._preferXHR) { 3078 var b = a.getTag(); 3079 if (b.styleSheet) b.styleSheet.cssText = a.getResult( ! 0); else { 3080 var c = document.createTextNode(a.getResult( ! 0)); 3081 b.appendChild(c) 3082 } 3083 } else b = this._tag; 3084 return createjs.DomUtils.appendToHead(b), b 3085 }, createjs.CSSLoader = createjs.promote(a, "AbstractLoader") 3086}(),this.createjs = this.createjs || {},function () { 3087 "use strict"; 3088 3089 function a(a, b) { 3090 this.AbstractLoader_constructor(a, b, createjs.AbstractLoader.IMAGE), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "src", createjs.RequestUtils.isImageTag(a) ? this._tag = a : createjs.RequestUtils.isImageTag(a.src) ? this._tag = a.src : createjs.RequestUtils.isImageTag(a.tag) && (this._tag = a.tag), null != this._tag ? this._preferXHR = ! 1 : this._tag = document.createElement("img"), this.on("initialize", this._updateXHR, this) 3091 } 3092 3093 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3094 c.canLoadItem = function (a) { 3095 return a.type == createjs.AbstractLoader.IMAGE 3096 }, b.load = function () { 3097 if ("" != this._tag.src && this._tag.complete) return void this._sendComplete(); 3098 var a = this._item.crossOrigin; 3099 1 == a && (a = "Anonymous"), null == a || createjs.RequestUtils.isLocal(this._item.src) || (this._tag.crossOrigin = a), this.AbstractLoader_load() 3100 }, b._updateXHR = function (a) { 3101 a.loader.mimeType = "text/plain; charset=x-user-defined-binary", a.loader.setResponseType && a.loader.setResponseType("blob") 3102 }, b._formatResult = function (a) { 3103 return this._formatImage 3104 }, b._formatImage = function (a, b) { 3105 var c = this._tag, d = window.URL || window.webkitURL; 3106 if (this._preferXHR) if (d) { 3107 var e = d.createObjectURL(this.getResult( ! 0)); 3108 c.src = e, c.addEventListener("load", this._cleanUpURL, ! 1), c.addEventListener("error", this._cleanUpURL, ! 1) 3109 } else c.src = this._item.src; else ; 3110 c.complete ? a(c) : (c.onload = createjs.proxy(function () { 3111 a(this._tag) 3112 }, this), c.onerror = createjs.proxy(function () { 3113 b(_this._tag) 3114 }, this)) 3115 }, b._cleanUpURL = function (a) { 3116 var b = window.URL || window.webkitURL; 3117 b.revokeObjectURL(a.target.src) 3118 }, createjs.ImageLoader = createjs.promote(a, "AbstractLoader") 3119}(),this.createjs = this.createjs || {},function () { 3120 "use strict"; 3121 3122 function a(a, b) { 3123 this.AbstractLoader_constructor(a, b, createjs.AbstractLoader.JAVASCRIPT), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "src", this.setTag(document.createElement("script")) 3124 } 3125 3126 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3127 c.canLoadItem = function (a) { 3128 return a.type == createjs.AbstractLoader.JAVASCRIPT 3129 }, b._formatResult = function (a) { 3130 var b = a.getTag(); 3131 return this._preferXHR && (b.text = a.getResult( ! 0)), b 3132 }, createjs.JavaScriptLoader = createjs.promote(a, "AbstractLoader") 3133}(),this.createjs = this.createjs || {},function () { 3134 "use strict"; 3135 3136 function a(a) { 3137 this.AbstractLoader_constructor(a, ! 0, createjs.AbstractLoader.JSON), this.resultFormatter = this._formatResult 3138 } 3139 3140 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3141 c.canLoadItem = function (a) { 3142 return a.type == createjs.AbstractLoader.JSON 3143 }, b._formatResult = function (a) { 3144 var b = null; 3145 try { 3146 b = createjs.DataUtils.parseJSON(a.getResult( ! 0)) 3147 } catch (c) { 3148 var d = new createjs.ErrorEvent("JSON_FORMAT", null, c); 3149 return this._sendError(d), c 3150 } 3151 return b 3152 }, createjs.JSONLoader = createjs.promote(a, "AbstractLoader") 3153}(),this.createjs = this.createjs || {},function () { 3154 "use strict"; 3155 3156 function a(a) { 3157 this.AbstractLoader_constructor(a, ! 1, createjs.AbstractLoader.JSONP), this.setTag(document.createElement("script")), this.getTag().type = "text/javascript" 3158 } 3159 3160 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3161 c.canLoadItem = function (a) { 3162 return a.type == createjs.AbstractLoader.JSONP 3163 }, b.cancel = function () { 3164 this.AbstractLoader_cancel(), this._dispose() 3165 }, b.load = function () { 3166 if (null == this._item.callback) throw new Error("callback is required for loading JSONP requests."); 3167 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."); 3168 window[this._item.callback] = createjs.proxy(this._handleLoad, this), window.document.body.appendChild(this._tag), this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), this._item.loadTimeout), this._tag.src = this._item.src 3169 }, b._handleLoad = function (a) { 3170 this._result = this._rawResult = a, this._sendComplete(), this._dispose() 3171 }, b._handleTimeout = function () { 3172 this._dispose(), this.dispatchEvent(new createjs.ErrorEvent("timeout")) 3173 }, b._dispose = function () { 3174 window.document.body.removeChild(this._tag), delete window[this._item.callback], clearTimeout(this._loadTimeout) 3175 }, createjs.JSONPLoader = createjs.promote(a, "AbstractLoader") 3176}(),this.createjs = this.createjs || {},function () { 3177 "use strict"; 3178 3179 function a(a) { 3180 this.AbstractLoader_constructor(a, null, createjs.AbstractLoader.MANIFEST), this.plugins = null, this._manifestQueue = null 3181 } 3182 3183 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3184 c.MANIFEST_PROGRESS = .25, c.canLoadItem = function (a) { 3185 return a.type == createjs.AbstractLoader.MANIFEST 3186 }, b.load = function () { 3187 this.AbstractLoader_load() 3188 }, b._createRequest = function () { 3189 var a = this._item.callback; 3190 null != a ? this._request = new createjs.JSONPLoader(this._item) : this._request = new createjs.JSONLoader(this._item) 3191 }, b.handleEvent = function (a) { 3192 switch (a.type) { 3193 case"complete": 3194 return this._rawResult = a.target.getResult( ! 0), this._result = a.target.getResult(), this._sendProgress(c.MANIFEST_PROGRESS), void this._loadManifest(this._result); 3195 case"progress": 3196 return a.loaded *= c.MANIFEST_PROGRESS, this.progress = a.loaded / a.total, (isNaN(this.progress) || this.progress == 1 / 0) && (this.progress = 0), void this._sendProgress(a) 3197 } 3198 this.AbstractLoader_handleEvent(a) 3199 }, b.destroy = function () { 3200 this.AbstractLoader_destroy(), this._manifestQueue.close() 3201 }, b._loadManifest = function (a) { 3202 if (a && a.manifest) { 3203 var b = this._manifestQueue = new createjs.LoadQueue; 3204 b.on("fileload", this._handleManifestFileLoad, this), b.on("progress", this._handleManifestProgress, this), b.on("complete", this._handleManifestComplete, this, ! 0), b.on("error", this._handleManifestError, this, ! 0); 3205 for (var c = 0, d = this.plugins.length; d > c; c++) b.installPlugin(this.plugins[c]); 3206 b.loadManifest(a) 3207 } else this._sendComplete() 3208 }, b._handleManifestFileLoad = function (a) { 3209 a.target = null, this.dispatchEvent(a) 3210 }, b._handleManifestComplete = function (a) { 3211 this._loadedItems = this._manifestQueue.getItems( ! 0), this._sendComplete() 3212 }, b._handleManifestProgress = function (a) { 3213 this.progress = a.progress * (1 - c.MANIFEST_PROGRESS) + c.MANIFEST_PROGRESS, this._sendProgress(this.progress) 3214 }, b._handleManifestError = function (a) { 3215 var b = new createjs.Event("fileerror"); 3216 b.item = a.data, this.dispatchEvent(b) 3217 }, createjs.ManifestLoader = createjs.promote(a, "AbstractLoader") 3218}(),this.createjs = this.createjs || {},function () { 3219 "use strict"; 3220 3221 function a(a, b) { 3222 this.AbstractMediaLoader_constructor(a, b, createjs.AbstractLoader.SOUND), createjs.RequestUtils.isAudioTag(a) ? this._tag = a : createjs.RequestUtils.isAudioTag(a.src) ? this._tag = a : createjs.RequestUtils.isAudioTag(a.tag) && (this._tag = createjs.RequestUtils.isAudioTag(a) ? a : a.src), null != this._tag && (this._preferXHR = ! 1) 3223 } 3224 3225 var b = createjs.extend(a, createjs.AbstractMediaLoader), c = a; 3226 c.canLoadItem = function (a) { 3227 return a.type == createjs.AbstractLoader.SOUND 3228 }, b._createTag = function (a) { 3229 var b = document.createElement("audio"); 3230 return b.autoplay = ! 1, b.preload = "none", b.src = a, b 3231 }, createjs.SoundLoader = createjs.promote(a, "AbstractMediaLoader") 3232}(),this.createjs = this.createjs || {},function () { 3233 "use strict"; 3234 3235 function a(a, b) { 3236 this.AbstractMediaLoader_constructor(a, b, createjs.AbstractLoader.VIDEO), createjs.RequestUtils.isVideoTag(a) || createjs.RequestUtils.isVideoTag(a.src) ? (this.setTag(createjs.RequestUtils.isVideoTag(a) ? a : a.src), this._preferXHR = ! 1) : this.setTag(this._createTag()) 3237 } 3238 3239 var b = createjs.extend(a, createjs.AbstractMediaLoader), c = a; 3240 b._createTag = function () { 3241 return document.createElement("video") 3242 }, c.canLoadItem = function (a) { 3243 return a.type == createjs.AbstractLoader.VIDEO 3244 }, createjs.VideoLoader = createjs.promote(a, "AbstractMediaLoader") 3245}(),this.createjs = this.createjs || {},function () { 3246 "use strict"; 3247 3248 function a(a, b) { 3249 this.AbstractLoader_constructor(a, b, createjs.AbstractLoader.SPRITESHEET), this._manifestQueue = null 3250 } 3251 3252 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3253 c.SPRITESHEET_PROGRESS = .25, c.canLoadItem = function (a) { 3254 return a.type == createjs.AbstractLoader.SPRITESHEET 3255 }, b.destroy = function () { 3256 this.AbstractLoader_destroy, this._manifestQueue.close() 3257 }, b._createRequest = function () { 3258 var a = this._item.callback; 3259 null != a ? this._request = new createjs.JSONPLoader(this._item) : this._request = new createjs.JSONLoader(this._item) 3260 }, b.handleEvent = function (a) { 3261 switch (a.type) { 3262 case"complete": 3263 return this._rawResult = a.target.getResult( ! 0), this._result = a.target.getResult(), this._sendProgress(c.SPRITESHEET_PROGRESS), void this._loadManifest(this._result); 3264 case"progress": 3265 return a.loaded *= c.SPRITESHEET_PROGRESS, this.progress = a.loaded / a.total, (isNaN(this.progress) || this.progress == 1 / 0) && (this.progress = 0), void this._sendProgress(a) 3266 } 3267 this.AbstractLoader_handleEvent(a) 3268 }, b._loadManifest = function (a) { 3269 if (a && a.images) { 3270 var b = this._manifestQueue = new createjs.LoadQueue(this._preferXHR, this._item.path, this._item.crossOrigin); 3271 b.on("complete", this._handleManifestComplete, this, ! 0), b.on("fileload", this._handleManifestFileLoad, this), b.on("progress", this._handleManifestProgress, this), b.on("error", this._handleManifestError, this, ! 0), b.loadManifest(a.images) 3272 } 3273 }, b._handleManifestFileLoad = function (a) { 3274 var b = a.result; 3275 if (null != b) { 3276 var c = this.getResult().images, d = c.indexOf(a.item.src); 3277 c[d] = b 3278 } 3279 }, b._handleManifestComplete = function (a) { 3280 this._result = new createjs.SpriteSheet(this._result), this._loadedItems = this._manifestQueue.getItems( ! 0), this._sendComplete() 3281 }, b._handleManifestProgress = function (a) { 3282 this.progress = a.progress * (1 - c.SPRITESHEET_PROGRESS) + c.SPRITESHEET_PROGRESS, this._sendProgress(this.progress) 3283 }, b._handleManifestError = function (a) { 3284 var b = new createjs.Event("fileerror"); 3285 b.item = a.data, this.dispatchEvent(b) 3286 }, createjs.SpriteSheetLoader = createjs.promote(a, "AbstractLoader") 3287}(),this.createjs = this.createjs || {},function () { 3288 "use strict"; 3289 3290 function a(a, b) { 3291 this.AbstractLoader_constructor(a, b, createjs.AbstractLoader.SVG), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "data", b ? this.setTag(document.createElement("svg")) : (this.setTag(document.createElement("object")), this.getTag().type = "image/svg+xml") 3292 } 3293 3294 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3295 c.canLoadItem = function (a) { 3296 return a.type == createjs.AbstractLoader.SVG 3297 }, b._formatResult = function (a) { 3298 var b = createjs.DataUtils.parseXML(a.getResult( ! 0), "text/xml"), c = a.getTag(); 3299 return ! this._preferXHR && document.body.contains(c) && document.body.removeChild(c), null != b.documentElement ? (c.appendChild(b.documentElement), c.style.visibility = "visible", c) : b 3300 }, createjs.SVGLoader = createjs.promote(a, "AbstractLoader") 3301}(),this.createjs = this.createjs || {},function () { 3302 "use strict"; 3303 3304 function a(a) { 3305 this.AbstractLoader_constructor(a, ! 0, createjs.AbstractLoader.XML), this.resultFormatter = this._formatResult 3306 } 3307 3308 var b = createjs.extend(a, createjs.AbstractLoader), c = a; 3309 c.canLoadItem = function (a) { 3310 return a.type == createjs.AbstractLoader.XML 3311 }, b._formatResult = function (a) { 3312 return createjs.DataUtils.parseXML(a.getResult( ! 0), "text/xml") 3313 }, createjs.XMLLoader = createjs.promote(a, "AbstractLoader") 3314}(),this.createjs = this.createjs || {},function () { 3315 var a = createjs.SoundJS = createjs.SoundJS || {}; 3316 a.version = "0.6.2", a.buildDate = "Thu, 26 Nov 2015 20:44:31 GMT" 3317}(),this.createjs = this.createjs || {},createjs.indexOf = function (a, b) { 3318 "use strict"; 3319 for (var c = 0, d = a.length; d > c; c++) if (b === a[c]) return c; 3320 return -1 3321},this.createjs = this.createjs || {},function () { 3322 "use strict"; 3323 createjs.proxy = function (a, b) { 3324 var c = Array.prototype.slice.call(arguments, 2); 3325 return function () { 3326 return a.apply(b, Array.prototype.slice.call(arguments, 0).concat(c)) 3327 } 3328 } 3329}(),this.createjs = this.createjs || {},function () { 3330 "use strict"; 3331 3332 function a() { 3333 throw"BrowserDetect cannot be instantiated" 3334 } 3335 3336 var b = a.agent = window.navigator.userAgent; 3337 a.isWindowPhone = b.indexOf("IEMobile") > -1 || b.indexOf("Windows Phone") > -1, a.isFirefox = b.indexOf("Firefox") > -1, a.isOpera = null != window.opera, a.isChrome = b.indexOf("Chrome") > -1, a.isIOS = (b.indexOf("iPod") > -1 || b.indexOf("iPhone") > -1 || b.indexOf("iPad") > -1) && ! a.isWindowPhone, a.isAndroid = b.indexOf("Android") > -1 && ! a.isWindowPhone, a.isBlackberry = b.indexOf("Blackberry") > -1, createjs.BrowserDetect = a 3338}(),this.createjs = this.createjs || {},function () { 3339 "use strict"; 3340 var a = function () { 3341 this.interrupt = null, this.delay = null, this.offset = null, this.loop = null, this.volume = null, this.pan = null, this.startTime = null, this.duration = null 3342 }, b = a.prototype = {}, c = a; 3343 c.create = function (a) { 3344 if (a instanceof c || a instanceof Object) { 3345 var b = new createjs.PlayPropsConfig; 3346 return b.set(a), b 3347 } 3348 throw new Error("Type not recognized.") 3349 }, b.set = function (a) { 3350 for (var b in a) this[b] = a[b]; 3351 return this 3352 }, b.toString = function () { 3353 return "[PlayPropsConfig]" 3354 }, createjs.PlayPropsConfig = c 3355}(),this.createjs = this.createjs || {},function () { 3356 "use strict"; 3357 3358 function a() { 3359 throw"Sound cannot be instantiated" 3360 } 3361 3362 function b(a, b) { 3363 this.init(a, b) 3364 } 3365 3366 var c = a; 3367 c.INTERRUPT_ANY = "any", c.INTERRUPT_EARLY = "early", c.INTERRUPT_LATE = "late", c.INTERRUPT_NONE = "none", c.PLAY_INITED = "playInited", c.PLAY_SUCCEEDED = "playSucceeded", c.PLAY_INTERRUPTED = "playInterrupted", c.PLAY_FINISHED = "playFinished", c.PLAY_FAILED = "playFailed", c.SUPPORTED_EXTENSIONS = ["mp3", "ogg", "opus", "mpeg", "wav", "m4a", "mp4", "aiff", "wma", "mid"], c.EXTENSION_MAP = {m4a: "mp4"}, c.FILE_PATTERN = /^(?:(\w+:)\/{2}(\w+(?:\.\w+)*\/?))?([\/.]*?(?:[^?]+)?\/)?((?:[^\/?]+)\.(\w+))(?:\?(\S+)?)?$/, c.defaultInterruptBehavior = c.INTERRUPT_NONE, c.alternateExtensions = [], c.activePlugin = null, c._masterVolume = 1, Object.defineProperty(c, "volume", { 3368 get: function () { 3369 return this._masterVolume 3370 }, set: function (a) { 3371 if (null == Number(a)) return ! 1; 3372 if (a = Math.max(0, Math.min(1, a)), c._masterVolume = a, ! this.activePlugin || ! this.activePlugin.setVolume || ! this.activePlugin.setVolume(a)) for (var b = this._instances, d = 0, e = b.length; e > d; d++) b[d].setMasterVolume(a) 3373 } 3374 }), c._masterMute = ! 1, Object.defineProperty(c, "muted", { 3375 get: function () { 3376 return this._masterMute 3377 }, set: function (a) { 3378 if (null == a) return ! 1; 3379 if (this._masterMute = a, ! this.activePlugin || ! this.activePlugin.setMute || ! this.activePlugin.setMute(a)) for (var b = this._instances, c = 0, d = b.length; d > c; c++) b[c].setMasterMute(a); 3380 return ! 0 3381 } 3382 }), Object.defineProperty(c, "capabilities", { 3383 get: function () { 3384 return null == c.activePlugin ? null : c.activePlugin._capabilities 3385 }, set: function (a) { 3386 return ! 1 3387 } 3388 }), c._pluginsRegistered = ! 1, c._lastID = 0, c._instances = [], c._idHash = {}, c._preloadHash = {}, c._defaultPlayPropsHash = {}, c.addEventListener = null, c.removeEventListener = null, c.removeAllEventListeners = null, c.dispatchEvent = null, c.hasEventListener = null, c._listeners = null, createjs.EventDispatcher.initialize(c), c.getPreloadHandlers = function () { 3389 return {callback: createjs.proxy(c.initLoad, c), types: ["sound"], extensions: c.SUPPORTED_EXTENSIONS} 3390 }, c._handleLoadComplete = function (a) { 3391 var b = a.target.getItem().src; 3392 if (c._preloadHash[b]) for (var d = 0, e = c._preloadHash[b].length; e > d; d++) { 3393 var f = c._preloadHash[b][d]; 3394 if (c._preloadHash[b][d] = ! 0, c.hasEventListener("fileload")) { 3395 var a = new createjs.Event("fileload"); 3396 a.src = f.src, a.id = f.id, a.data = f.data, a.sprite = f.sprite, c.dispatchEvent(a) 3397 } 3398 } 3399 }, c._handleLoadError = function (a) { 3400 var b = a.target.getItem().src; 3401 if (c._preloadHash[b]) for (var d = 0, e = c._preloadHash[b].length; e > d; d++) { 3402 var f = c._preloadHash[b][d]; 3403 if (c._preloadHash[b][d] = ! 1, c.hasEventListener("fileerror")) { 3404 var a = new createjs.Event("fileerror"); 3405 a.src = f.src, a.id = f.id, a.data = f.data, a.sprite = f.sprite, c.dispatchEvent(a) 3406 } 3407 } 3408 }, c._registerPlugin = function (a) { 3409 return a.isSupported() ? (c.activePlugin = new a, ! 0) : ! 1 3410 }, c.registerPlugins = function (a) { 3411 c._pluginsRegistered = ! 0; 3412 for (var b = 0, d = a.length; d > b; b++) if (c._registerPlugin(a[b])) return ! 0; 3413 return ! 1 3414 }, c.initializeDefaultPlugins = function () { 3415 return null != c.activePlugin ? ! 0 : c._pluginsRegistered ? ! 1 : c.registerPlugins([createjs.WebAudioPlugin, createjs.HTMLAudioPlugin]) ? ! 0 : ! 1 3416 }, c.isReady = function () { 3417 return null != c.activePlugin 3418 }, c.getCapabilities = function () { 3419 return null == c.activePlugin ? null : c.activePlugin._capabilities 3420 }, c.getCapability = function (a) { 3421 return null == c.activePlugin ? null : c.activePlugin._capabilities[a] 3422 }, c.initLoad = function (a) { 3423 return c._registerSound(a) 3424 }, c._registerSound = function (a) { 3425 if ( ! c.initializeDefaultPlugins()) return ! 1; 3426 var d; 3427 if (a.src instanceof Object ? (d = c._parseSrc(a.src), d.src = a.path + d.src) : d = c._parsePath(a.src), null == d) return ! 1; 3428 a.src = d.src, a.type = "sound"; 3429 var e = a.data, f = null; 3430 if (null != e && (isNaN(e.channels) ? isNaN(e) || (f = parseInt(e)) : f = parseInt(e.channels), e.audioSprite)) for (var g, h = e.audioSprite.length; h--;) g = e.audioSprite[h], c._idHash[g.id] = { 3431 src: a.src, 3432 startTime: parseInt(g.startTime), 3433 duration: parseInt(g.duration) 3434 }, g.defaultPlayProps && (c._defaultPlayPropsHash[g.id] = createjs.PlayPropsConfig.create(g.defaultPlayProps)); 3435 null != a.id && (c._idHash[a.id] = {src: a.src}); 3436 var i = c.activePlugin.register(a); 3437 return b.create(a.src, f), null != e && isNaN(e) ? a.data.channels = f || b.maxPerChannel() : a.data = f || b.maxPerChannel(), i.type && (a.type = i.type), a.defaultPlayProps && (c._defaultPlayPropsHash[a.src] = createjs.PlayPropsConfig.create(a.defaultPlayProps)), i 3438 }, c.registerSound = function (a, b, d, e, f) { 3439 var g = {src: a, id: b, data: d, defaultPlayProps: f}; 3440 a instanceof Object && a.src && (e = b, g = a), g = createjs.LoadItem.create(g), g.path = e, null == e || g.src instanceof Object || (g.src = e + a); 3441 var h = c._registerSound(g); 3442 if ( ! h) return ! 1; 3443 if (c._preloadHash[g.src] || (c._preloadHash[g.src] = []), c._preloadHash[g.src].push(g), 1 == c._preloadHash[g.src].length) h.on("complete", createjs.proxy(this._handleLoadComplete, this)), h.on("error", createjs.proxy(this._handleLoadError, this)), c.activePlugin.preload(h); else if (1 == c._preloadHash[g.src][0]) return ! 0; 3444 return g 3445 }, c.registerSounds = function (a, b) { 3446 var c = []; 3447 a.path && (b ? b += a.path : b = a.path, a = a.manifest); 3448 for (var d = 0, e = a.length; e > d; d++) c[d] = createjs.Sound.registerSound(a[d].src, a[d].id, a[d].data, b, a[d].defaultPlayProps); 3449 return c 3450 }, c.removeSound = function (a, d) { 3451 if (null == c.activePlugin) return ! 1; 3452 a instanceof Object && a.src && (a = a.src); 3453 var e; 3454 if (a instanceof Object ? e = c._parseSrc(a) : (a = c._getSrcById(a).src, e = c._parsePath(a)), null == e) return ! 1; 3455 a = e.src, null != d && (a = d + a); 3456 for (var f in c._idHash) c._idHash[f].src == a && delete c._idHash[f]; 3457 return b.removeSrc(a), delete c._preloadHash[a], c.activePlugin.removeSound(a), ! 0 3458 }, c.removeSounds = function (a, b) { 3459 var c = []; 3460 a.path && (b ? b += a.path : b = a.path, a = a.manifest); 3461 for (var d = 0, e = a.length; e > d; d++) c[d] = createjs.Sound.removeSound(a[d].src, b); 3462 return c 3463 }, c.removeAllSounds = function () { 3464 c._idHash = {}, c._preloadHash = {}, b.removeAll(), c.activePlugin && c.activePlugin.removeAllSounds() 3465 }, c.loadComplete = function (a) { 3466 if ( ! c.isReady()) return ! 1; 3467 var b = c._parsePath(a); 3468 return a = b ? c._getSrcById(b.src).src : c._getSrcById(a).src, void 0 == c._preloadHash[a] ? ! 1 : 1 == c._preloadHash[a][0] 3469 }, c._parsePath = function (a) { 3470 "string" != typeof a && (a = a.toString()); 3471 var b = a.match(c.FILE_PATTERN); 3472 if (null == b) return ! 1; 3473 for (var d = b[4], e = b[5], f = c.capabilities, g = 0; ! f[e];) if (e = c.alternateExtensions[g++], g > c.alternateExtensions.length) return null; 3474 a = a.replace("." + b[5], "." + e); 3475 var h = {name: d, src: a, extension: e}; 3476 return h 3477 }, c._parseSrc = function (a) { 3478 var b = {name: void 0, src: void 0, extension: void 0}, d = c.capabilities; 3479 for (var e in a) if (a.hasOwnProperty(e) && d[e]) { 3480 b.src = a[e], b.extension = e; 3481 break 3482 } 3483 if ( ! b.src) return ! 1; 3484 var f = b.src.lastIndexOf("/"); 3485 return -1 != f ? b.name = b.src.slice(f + 1) : b.name = b.src, b 3486 }, c.play = function (a, b, d, e, f, g, h, i, j) { 3487 var k; 3488 k = b instanceof Object || b instanceof createjs.PlayPropsConfig ? createjs.PlayPropsConfig.create(b) : createjs.PlayPropsConfig.create({ 3489 interrupt: b, 3490 delay: d, 3491 offset: e, 3492 loop: f, 3493 volume: g, 3494 pan: h, 3495 startTime: i, 3496 duration: j 3497 }); 3498 var l = c.createInstance(a, k.startTime, k.duration), m = c._playInstance(l, k); 3499 return m || l._playFailed(), l 3500 }, c.createInstance = function (a, d, e) { 3501 if ( ! c.initializeDefaultPlugins()) return new createjs.DefaultSoundInstance(a, d, e); 3502 var f = c._defaultPlayPropsHash[a]; 3503 a = c._getSrcById(a); 3504 var g = c._parsePath(a.src), h = null; 3505 return null != g && null != g.src ? (b.create(g.src), null == d && (d = a.startTime), h = c.activePlugin.create(g.src, d, e || a.duration), f = f || c._defaultPlayPropsHash[g.src], f && h.applyPlayProps(f)) : h = new createjs.DefaultSoundInstance(a, d, e), h.uniqueId = c._lastID++, h 3506 }, c.stop = function () { 3507 for (var a = this._instances, b = a.length; b--;) a[b].stop() 3508 }, c.setVolume = function (a) { 3509 if (null == Number(a)) return ! 1; 3510 if (a = Math.max(0, Math.min(1, a)), c._masterVolume = a, ! this.activePlugin || ! this.activePlugin.setVolume || ! this.activePlugin.setVolume(a)) for (var b = this._instances, d = 0, e = b.length; e > d; d++) b[d].setMasterVolume(a) 3511 }, c.getVolume = function () { 3512 return this._masterVolume 3513 }, c.setMute = function (a) { 3514 if (null == a) return ! 1; 3515 if (this._masterMute = a, ! this.activePlugin || ! this.activePlugin.setMute || ! this.activePlugin.setMute(a)) for (var b = this._instances, c = 0, d = b.length; d > c; c++) b[c].setMasterMute(a); 3516 return ! 0 3517 }, c.getMute = function () { 3518 return this._masterMute 3519 }, c.setDefaultPlayProps = function (a, b) { 3520 a = c._getSrcById(a), c._defaultPlayPropsHash[c._parsePath(a.src).src] = createjs.PlayPropsConfig.create(b) 3521 }, c.getDefaultPlayProps = function (a) { 3522 return a = c._getSrcById(a), c._defaultPlayPropsHash[c._parsePath(a.src).src] 3523 }, c._playInstance = function (a, b) { 3524 var d = c._defaultPlayPropsHash[a.src] || {}; 3525 if (null == b.interrupt && (b.interrupt = d.interrupt || c.defaultInterruptBehavior), null == b.delay && (b.delay = d.delay || 0), null == b.offset && (b.offset = a.getPosition()), null == b.loop && (b.loop = a.loop), null == b.volume && (b.volume = a.volume), null == b.pan && (b.pan = a.pan), 0 == b.delay) { 3526 var e = c._beginPlaying(a, b); 3527 if ( ! e) return ! 1 3528 } else { 3529 var f = setTimeout(function () { 3530 c._beginPlaying(a, b) 3531 }, b.delay); 3532 a.delayTimeoutId = f 3533 } 3534 return this._instances.push(a), ! 0 3535 }, c._beginPlaying = function (a, c) { 3536 if ( ! b.add(a, c.interrupt)) return ! 1; 3537 var d = a._beginPlaying(c); 3538 if ( ! d) { 3539 var e = createjs.indexOf(this._instances, a); 3540 return e > -1 && this._instances.splice(e, 1), ! 1 3541 } 3542 return ! 0 3543 }, c._getSrcById = function (a) { 3544 return c._idHash[a] || {src: a} 3545 }, c._playFinished = function (a) { 3546 b.remove(a); 3547 var c = createjs.indexOf(this._instances, a); 3548 c > -1 && this._instances.splice(c, 1) 3549 }, createjs.Sound = a, b.channels = {}, b.create = function (a, c) { 3550 var d = b.get(a); 3551 return null == d ? (b.channels[a] = new b(a, c), ! 0) : ! 1 3552 }, b.removeSrc = function (a) { 3553 var c = b.get(a); 3554 return null == c ? ! 1 : (c._removeAll(), delete b.channels[a], ! 0) 3555 }, b.removeAll = function () { 3556 for (var a in b.channels) b.channels[a]._removeAll(); 3557 b.channels = {} 3558 }, b.add = function (a, c) { 3559 var d = b.get(a.src); 3560 return null == d ? ! 1 : d._add(a, c) 3561 }, b.remove = function (a) { 3562 var c = b.get(a.src); 3563 return null == c ? ! 1 : (c._remove(a), ! 0) 3564 }, b.maxPerChannel = function () { 3565 return d.maxDefault 3566 }, b.get = function (a) { 3567 return b.channels[a] 3568 }; 3569 var d = b.prototype; 3570 d.constructor = b, d.src = null, d.max = null, d.maxDefault = 100, d.length = 0, d.init = function (a, b) { 3571 this.src = a, this.max = b || this.maxDefault, -1 == this.max && (this.max = this.maxDefault), this._instances = [] 3572 }, d._get = function (a) { 3573 return this._instances[a] 3574 }, d._add = function (a, b) { 3575 return this._getSlot(b, a) ? (this._instances.push(a), this.length++, ! 0) : ! 1 3576 }, d._remove = function (a) { 3577 var b = createjs.indexOf(this._instances, a); 3578 return -1 == b ? ! 1 : (this._instances.splice(b, 1), this.length--, ! 0) 3579 }, d._removeAll = function () { 3580 for (var a = this.length - 1; a >= 0; a--) this._instances[a].stop() 3581 }, d._getSlot = function (b, c) { 3582 var d, e; 3583 if (b != a.INTERRUPT_NONE && (e = this._get(0), null == e)) return ! 0; 3584 for (var f = 0, g = this.max; g > f; f++) { 3585 if (d = this._get(f), null == d) return ! 0; 3586 if (d.playState == a.PLAY_FINISHED || d.playState == a.PLAY_INTERRUPTED || d.playState == a.PLAY_FAILED) { 3587 e = d; 3588 break 3589 } 3590 b != a.INTERRUPT_NONE && (b == a.INTERRUPT_EARLY && d.getPosition() < e.getPosition() || b == a.INTERRUPT_LATE && d.getPosition() > e.getPosition()) && (e = d) 3591 } 3592 return null != e ? (e._interrupt(), this._remove(e), ! 0) : ! 1 3593 }, d.toString = function () { 3594 return "[Sound SoundChannel]" 3595 } 3596}(),this.createjs = this.createjs || {},function () { 3597 "use strict"; 3598 var a = function (a, b, c, d) { 3599 this.EventDispatcher_constructor(), this.src = a, this.uniqueId = -1, this.playState = null, this.delayTimeoutId = null, this._volume = 1, Object.defineProperty(this, "volume", { 3600 get: this.getVolume, 3601 set: this.setVolume 3602 }), this._pan = 0, Object.defineProperty(this, "pan", { 3603 get: this.getPan, 3604 set: this.setPan 3605 }), this._startTime = Math.max(0, b || 0), Object.defineProperty(this, "startTime", { 3606 get: this.getStartTime, 3607 set: this.setStartTime 3608 }), this._duration = Math.max(0, c || 0), Object.defineProperty(this, "duration", { 3609 get: this.getDuration, 3610 set: this.setDuration 3611 }), this._playbackResource = null, Object.defineProperty(this, "playbackResource", { 3612 get: this.getPlaybackResource, 3613 set: this.setPlaybackResource 3614 }), d !== ! 1 && d !== ! 0 && this.setPlaybackResource(d), this._position = 0, Object.defineProperty(this, "position", { 3615 get: this.getPosition, 3616 set: this.setPosition 3617 }), this._loop = 0, Object.defineProperty(this, "loop", { 3618 get: this.getLoop, 3619 set: this.setLoop 3620 }), this._muted = ! 1, Object.defineProperty(this, "muted", { 3621 get: this.getMuted, 3622 set: this.setMuted 3623 }), this._paused = ! 1, Object.defineProperty(this, "paused", {get: this.getPaused, set: this.setPaused}) 3624 }, b = createjs.extend(a, createjs.EventDispatcher); 3625 b.play = function (a, b, c, d, e, f) { 3626 var g; 3627 return g = a instanceof Object || a instanceof createjs.PlayPropsConfig ? createjs.PlayPropsConfig.create(a) : createjs.PlayPropsConfig.create({ 3628 interrupt: a, 3629 delay: b, 3630 offset: c, 3631 loop: d, 3632 volume: e, 3633 pan: f 3634 }), this.playState == createjs.Sound.PLAY_SUCCEEDED ? (this.applyPlayProps(g), void (this._paused && this.setPaused( ! 1))) : (this._cleanUp(), createjs.Sound._playInstance(this, g), this) 3635 }, b.stop = function () { 3636 return this._position = 0, this._paused = ! 1, this._handleStop(), this._cleanUp(), this.playState = createjs.Sound.PLAY_FINISHED, this 3637 }, b.destroy = function () { 3638 this._cleanUp(), this.src = null, this.playbackResource = null, this.removeAllEventListeners() 3639 }, b.applyPlayProps = function (a) { 3640 return null != a.offset && this.setPosition(a.offset), null != a.loop && this.setLoop(a.loop), null != a.volume && this.setVolume(a.volume), null != a.pan && this.setPan(a.pan), null != a.startTime && (this.setStartTime(a.startTime), this.setDuration(a.duration)), this 3641 }, b.toString = function () { 3642 return "[AbstractSoundInstance]" 3643 }, b.getPaused = function () { 3644 return this._paused 3645 }, b.setPaused = function (a) { 3646 return a !== ! 0 && a !== ! 1 || this._paused == a || 1 == a && this.playState != createjs.Sound.PLAY_SUCCEEDED ? void 0 : (this._paused = a, a ? this._pause() : this._resume(), clearTimeout(this.delayTimeoutId), this) 3647 }, b.setVolume = function (a) { 3648 return a == this._volume ? this : (this._volume = Math.max(0, Math.min(1, a)), this._muted || this._updateVolume(), this) 3649 }, b.getVolume = function () { 3650 return this._volume 3651 }, b.setMuted = function (a) { 3652 return a === ! 0 || a === ! 1 ? (this._muted = a, this._updateVolume(), this) : void 0 3653 }, b.getMuted = function () { 3654 return this._muted 3655 }, b.setPan = function (a) { 3656 return a == this._pan ? this : (this._pan = Math.max(-1, Math.min(1, a)), this._updatePan(), this) 3657 }, b.getPan = function () { 3658 return this._pan 3659 }, b.getPosition = function () { 3660 return this._paused || this.playState != createjs.Sound.PLAY_SUCCEEDED || (this._position = this._calculateCurrentPosition()), this._position 3661 }, b.setPosition = function (a) { 3662 return this._position = Math.max(0, a), this.playState == createjs.Sound.PLAY_SUCCEEDED && this._updatePosition(), this 3663 }, b.getStartTime = function () { 3664 return this._startTime 3665 }, b.setStartTime = function (a) { 3666 return a == this._startTime ? this : (this._startTime = Math.max(0, a || 0), this._updateStartTime(), this) 3667 }, b.getDuration = function () { 3668 return this._duration 3669 }, b.setDuration = function (a) { 3670 return a == this._duration ? this : (this._duration = Math.max(0, a || 0), this._updateDuration(), this) 3671 }, b.setPlaybackResource = function (a) { 3672 return this._playbackResource = a, 0 == this._duration && this._setDurationFromSource(), this 3673 }, b.getPlaybackResource = function () { 3674 return this._playbackResource 3675 }, b.getLoop = function () { 3676 return this._loop 3677 }, b.setLoop = function (a) { 3678 null != this._playbackResource && (0 != this._loop && 0 == a ? this._removeLooping(a) : 0 == this._loop && 0 != a && this._addLooping(a)), this._loop = a 3679 }, b._sendEvent = function (a) { 3680 var b = new createjs.Event(a); 3681 this.dispatchEvent(b) 3682 }, b._cleanUp = function () { 3683 clearTimeout(this.delayTimeoutId), this._handleCleanUp(), this._paused = ! 1, createjs.Sound._playFinished(this) 3684 }, b._interrupt = function () { 3685 this._cleanUp(), this.playState = createjs.Sound.PLAY_INTERRUPTED, this._sendEvent("interrupted") 3686 }, b._beginPlaying = function (a) { 3687 return this.setPosition(a.offset), this.setLoop(a.loop), this.setVolume(a.volume), this.setPan(a.pan), null != a.startTime && (this.setStartTime(a.startTime), this.setDuration(a.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) 3688 }, b._playFailed = function () { 3689 this._cleanUp(), this.playState = createjs.Sound.PLAY_FAILED, this._sendEvent("failed") 3690 }, b._handleSoundComplete = function (a) { 3691 return this._position = 0, 0 != this._loop ? (this._loop--, this._handleLoop(), void this._sendEvent("loop")) : (this._cleanUp(), this.playState = createjs.Sound.PLAY_FINISHED, void this._sendEvent("complete")) 3692 }, b._handleSoundReady = function () { 3693 }, b._updateVolume = function () { 3694 }, b._updatePan = function () { 3695 }, b._updateStartTime = function () { 3696 }, b._updateDuration = function () { 3697 }, b._setDurationFromSource = function () { 3698 }, b._calculateCurrentPosition = function () { 3699 }, b._updatePosition = function () { 3700 }, b._removeLooping = function (a) { 3701 }, b._addLooping = function (a) { 3702 }, b._pause = function () { 3703 }, b._resume = function () { 3704 }, b._handleStop = function () { 3705 }, b._handleCleanUp = function () { 3706 }, b._handleLoop = function () { 3707 }, createjs.AbstractSoundInstance = createjs.promote(a, "EventDispatcher"), createjs.DefaultSoundInstance = createjs.AbstractSoundInstance 3708}(),this.createjs = this.createjs || {},function () { 3709 "use strict"; 3710 var a = function () { 3711 this._capabilities = null, this._loaders = {}, this._audioSources = {}, this._soundInstances = {}, this._volume = 1, this._loaderClass, this._soundInstanceClass 3712 }, b = a.prototype; 3713 a._capabilities = null, a.isSupported = function () { 3714 return ! 0 3715 }, b.register = function (a) { 3716 var b = this._loaders[a.src]; 3717 return b && ! b.canceled ? this._loaders[a.src] : (this._audioSources[a.src] = ! 0, this._soundInstances[a.src] = [], b = new this._loaderClass(a), b.on("complete", this._handlePreloadComplete, this), this._loaders[a.src] = b, b) 3718 }, b.preload = function (a) { 3719 a.on("error", this._handlePreloadError, this), a.load() 3720 }, b.isPreloadStarted = function (a) { 3721 return null != this._audioSources[a] 3722 }, b.isPreloadComplete = function (a) { 3723 return ! (null == this._audioSources[a] || 1 == this._audioSources[a]) 3724 }, b.removeSound = function (a) { 3725 if (this._soundInstances[a]) { 3726 for (var b = this._soundInstances[a].length; b--;) { 3727 var c = this._soundInstances[a][b]; 3728 c.destroy() 3729 } 3730 delete this._soundInstances[a], delete this._audioSources[a], this._loaders[a] && this._loaders[a].destroy(), delete this._loaders[a] 3731 } 3732 }, b.removeAllSounds = function () { 3733 for (var a in this._audioSources) this.removeSound(a) 3734 }, b.create = function (a, b, c) { 3735 this.isPreloadStarted(a) || this.preload(this.register(a)); 3736 var d = new this._soundInstanceClass(a, b, c, this._audioSources[a]); 3737 return this._soundInstances[a].push(d), d 3738 }, b.setVolume = function (a) { 3739 return this._volume = a, this._updateVolume(), ! 0 3740 }, b.getVolume = function () { 3741 return this._volume 3742 }, b.setMute = function (a) { 3743 return this._updateVolume(), ! 0 3744 }, b.toString = function () { 3745 return "[AbstractPlugin]" 3746 }, b._handlePreloadComplete = function (a) { 3747 var b = a.target.getItem().src; 3748 this._audioSources[b] = a.result; 3749 for (var c = 0, d = this._soundInstances[b].length; d > c; c++) { 3750 var e = this._soundInstances[b][c]; 3751 e.setPlaybackResource(this._audioSources[b]); 3752 } 3753 }, b._handlePreloadError = function (a) { 3754 }, b._updateVolume = function () { 3755 }, createjs.AbstractPlugin = a 3756}(),this.createjs = this.createjs || {},function () { 3757 "use strict"; 3758 3759 function a(a) { 3760 this.AbstractLoader_constructor(a, ! 0, createjs.AbstractLoader.SOUND) 3761 } 3762 3763 var b = createjs.extend(a, createjs.AbstractLoader); 3764 a.context = null, b.toString = function () { 3765 return "[WebAudioLoader]" 3766 }, b._createRequest = function () { 3767 this._request = new createjs.XHRRequest(this._item, ! 1), this._request.setResponseType("arraybuffer") 3768 }, b._sendComplete = function (b) { 3769 a.context.decodeAudioData(this._rawResult, createjs.proxy(this._handleAudioDecoded, this), createjs.proxy(this._sendError, this)) 3770 }, b._handleAudioDecoded = function (a) { 3771 this._result = a, this.AbstractLoader__sendComplete() 3772 }, createjs.WebAudioLoader = createjs.promote(a, "AbstractLoader") 3773}(),this.createjs = this.createjs || {},function () { 3774 "use strict"; 3775 3776 function a(a, b, d, e) { 3777 this.AbstractSoundInstance_constructor(a, b, d, e), this.gainNode = c.context.createGain(), this.panNode = c.context.createPanner(), this.panNode.panningModel = c._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) 3778 } 3779 3780 var b = createjs.extend(a, createjs.AbstractSoundInstance), c = a; 3781 c.context = null, c._scratchBuffer = null, c.destinationNode = null, c._panningModel = "equalpower", b.destroy = function () { 3782 this.AbstractSoundInstance_destroy(), this.panNode.disconnect(0), this.panNode = null, this.gainNode.disconnect(0), this.gainNode = null 3783 }, b.toString = function () { 3784 return "[WebAudioSoundInstance]" 3785 }, b._updatePan = function () { 3786 this.panNode.setPosition(this._pan, 0, -.5) 3787 }, b._removeLooping = function (a) { 3788 this._sourceNodeNext = this._cleanUpAudioNode(this._sourceNodeNext) 3789 }, b._addLooping = function (a) { 3790 this.playState == createjs.Sound.PLAY_SUCCEEDED && (this._sourceNodeNext = this._createAndPlayAudioNode(this._playbackStartTime, 0)) 3791 }, b._setDurationFromSource = function () { 3792 this._duration = 1e3 * this.playbackResource.duration 3793 }, b._handleCleanUp = function () { 3794 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 3795 }, b._cleanUpAudioNode = function (a) { 3796 if (a) { 3797 a.stop(0), a.disconnect(0); 3798 try { 3799 a.buffer = c._scratchBuffer 3800 } catch (b) { 3801 } 3802 a = null 3803 } 3804 return a 3805 }, b._handleSoundReady = function (a) { 3806 this.gainNode.connect(c.destinationNode); 3807 var b = .001 * this._duration, d = .001 * this._position; 3808 d > b && (d = b), this.sourceNode = this._createAndPlayAudioNode(c.context.currentTime - b, d), this._playbackStartTime = this.sourceNode.startTime - d, this._soundCompleteTimeout = setTimeout(this._endedHandler, 1e3 * (b - d)), 0 != this._loop && (this._sourceNodeNext = this._createAndPlayAudioNode(this._playbackStartTime, 0)) 3809 }, b._createAndPlayAudioNode = function (a, b) { 3810 var d = c.context.createBufferSource(); 3811 d.buffer = this.playbackResource, d.connect(this.panNode); 3812 var e = .001 * this._duration; 3813 return d.startTime = a + e, d.start(d.startTime, b + .001 * this._startTime, e - b), d 3814 }, b._pause = function () { 3815 this._position = 1e3 * (c.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) 3816 }, b._resume = function () { 3817 this._handleSoundReady() 3818 }, b._updateVolume = function () { 3819 var a = this._muted ? 0 : this._volume; 3820 a != this.gainNode.gain.value && (this.gainNode.gain.value = a) 3821 }, b._calculateCurrentPosition = function () { 3822 return 1e3 * (c.context.currentTime - this._playbackStartTime) 3823 }, b._updatePosition = function () { 3824 this.sourceNode = this._cleanUpAudioNode(this.sourceNode), this._sourceNodeNext = this._cleanUpAudioNode(this._sourceNodeNext), clearTimeout(this._soundCompleteTimeout), this._paused || this._handleSoundReady() 3825 }, b._handleLoop = function () { 3826 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) 3827 }, b._updateDuration = function () { 3828 this.playState == createjs.Sound.PLAY_SUCCEEDED && (this._pause(), this._resume()) 3829 }, createjs.WebAudioSoundInstance = createjs.promote(a, "AbstractSoundInstance") 3830}(),this.createjs = this.createjs || {},function () { 3831 "use strict"; 3832 3833 function a() { 3834 this.AbstractPlugin_constructor(), this._panningModel = c._panningModel, this.context = c.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 = c._capabilities, this._loaderClass = createjs.WebAudioLoader, this._soundInstanceClass = createjs.WebAudioSoundInstance, this._addPropsToClasses() 3835 } 3836 3837 var b = createjs.extend(a, createjs.AbstractPlugin), c = a; 3838 c._capabilities = null, c._panningModel = "equalpower", c.context = null, c._scratchBuffer = null, c._unlocked = ! 1, c.isSupported = function () { 3839 var a = createjs.BrowserDetect.isIOS || createjs.BrowserDetect.isAndroid || createjs.BrowserDetect.isBlackberry; 3840 return "file:" != location.protocol || a || this._isFileXHRSupported() ? (c._generateCapabilities(), null == c.context ? ! 1 : ! 0) : ! 1 3841 }, c.playEmptySound = function () { 3842 if (null != c.context) { 3843 var a = c.context.createBufferSource(); 3844 a.buffer = c._scratchBuffer, a.connect(c.context.destination), a.start(0, 0, 0) 3845 } 3846 }, c._isFileXHRSupported = function () { 3847 var a = ! 0, b = new XMLHttpRequest; 3848 try { 3849 b.open("GET", "WebAudioPluginTest.fail", ! 1) 3850 } catch (c) { 3851 return a = ! 1 3852 } 3853 b.onerror = function () { 3854 a = ! 1 3855 }, b.onload = function () { 3856 a = 404 == this.status || 200 == this.status || 0 == this.status && "" != this.response 3857 }; 3858 try { 3859 b.send() 3860 } catch (c) { 3861 a = ! 1 3862 } 3863 return a 3864 }, c._generateCapabilities = function () { 3865 if (null == c._capabilities) { 3866 var a = document.createElement("audio"); 3867 if (null == a.canPlayType) return null; 3868 if (null == c.context) if (window.AudioContext) c.context = new AudioContext; else { 3869 if ( ! window.webkitAudioContext) return null; 3870 c.context = new webkitAudioContext 3871 } 3872 null == c._scratchBuffer && (c._scratchBuffer = c.context.createBuffer(1, 1, 22050)), c._compatibilitySetUp(), "ontouchstart" in window && "running" != c.context.state && (c._unlock(), document.addEventListener("mousedown", c._unlock, ! 0), document.addEventListener("touchend", c._unlock, ! 0)), c._capabilities = { 3873 panning: ! 0, 3874 volume: ! 0, 3875 tracks: -1 3876 }; 3877 for (var b = createjs.Sound.SUPPORTED_EXTENSIONS, d = createjs.Sound.EXTENSION_MAP, e = 0, f = b.length; f > e; e++) { 3878 var g = b[e], h = d[g] || g; 3879 c._capabilities[g] = "no" != a.canPlayType("audio/" + g) && "" != a.canPlayType("audio/" + g) || "no" != a.canPlayType("audio/" + h) && "" != a.canPlayType("audio/" + h) 3880 } 3881 c.context.destination.numberOfChannels < 2 && (c._capabilities.panning = ! 1) 3882 } 3883 }, c._compatibilitySetUp = function () { 3884 if (c._panningModel = "equalpower", ! c.context.createGain) { 3885 c.context.createGain = c.context.createGainNode; 3886 var a = c.context.createBufferSource(); 3887 a.__proto__.start = a.__proto__.noteGrainOn, a.__proto__.stop = a.__proto__.noteOff, c._panningModel = 0 3888 } 3889 }, c._unlock = function () { 3890 c._unlocked || (c.playEmptySound(), "running" == c.context.state && (document.removeEventListener("mousedown", c._unlock, ! 0), document.removeEventListener("touchend", c._unlock, ! 0), c._unlocked = ! 0)) 3891 }, b.toString = function () { 3892 return "[WebAudioPlugin]" 3893 }, b._addPropsToClasses = function () { 3894 var a = this._soundInstanceClass; 3895 a.context = this.context, a._scratchBuffer = c._scratchBuffer, a.destinationNode = this.gainNode, a._panningModel = this._panningModel, this._loaderClass.context = this.context 3896 }, b._updateVolume = function () { 3897 var a = createjs.Sound._masterMute ? 0 : this._volume; 3898 a != this.gainNode.gain.value && (this.gainNode.gain.value = a) 3899 }, createjs.WebAudioPlugin = createjs.promote(a, "AbstractPlugin") 3900}(),this.createjs = this.createjs || {},function () { 3901 "use strict"; 3902 3903 function a() { 3904 throw"HTMLAudioTagPool cannot be instantiated" 3905 } 3906 3907 function b(a) { 3908 this._tags = [] 3909 } 3910 3911 var c = a; 3912 c._tags = {}, c._tagPool = new b, c._tagUsed = {}, c.get = function (a) { 3913 var b = c._tags[a]; 3914 return null == b ? (b = c._tags[a] = c._tagPool.get(), b.src = a) : c._tagUsed[a] ? (b = c._tagPool.get(), b.src = a) : c._tagUsed[a] = ! 0, b 3915 }, c.set = function (a, b) { 3916 b == c._tags[a] ? c._tagUsed[a] = ! 1 : c._tagPool.set(b) 3917 }, c.remove = function (a) { 3918 var b = c._tags[a]; 3919 return null == b ? ! 1 : (c._tagPool.set(b), delete c._tags[a], delete c._tagUsed[a], ! 0) 3920 }, c.getDuration = function (a) { 3921 var b = c._tags[a]; 3922 return null != b && b.duration ? 1e3 * b.duration : 0 3923 }, createjs.HTMLAudioTagPool = a; 3924 var d = b.prototype; 3925 d.constructor = b, d.get = function () { 3926 var a; 3927 return a = 0 == this._tags.length ? this._createTag() : this._tags.pop(), null == a.parentNode && document.body.appendChild(a), a 3928 }, d.set = function (a) { 3929 var b = createjs.indexOf(this._tags, a); 3930 -1 == b && (this._tags.src = null, this._tags.push(a)) 3931 }, d.toString = function () { 3932 return "[TagPool]" 3933 }, d._createTag = function () { 3934 var a = document.createElement("audio"); 3935 return a.autoplay = ! 1, a.preload = "none", a 3936 } 3937}(),this.createjs = this.createjs || {},function () { 3938 "use strict"; 3939 3940 function a(a, b, c, d) { 3941 this.AbstractSoundInstance_constructor(a, b, c, d), 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), c ? this._audioSpriteStopTime = .001 * (b + c) : this._duration = createjs.HTMLAudioTagPool.getDuration(this.src) 3942 } 3943 3944 var b = createjs.extend(a, createjs.AbstractSoundInstance); 3945 b.setMasterVolume = function (a) { 3946 this._updateVolume() 3947 }, b.setMasterMute = function (a) { 3948 this._updateVolume() 3949 }, b.toString = function () { 3950 return "[HTMLAudioSoundInstance]" 3951 }, b._removeLooping = function () { 3952 null != this._playbackResource && (this._playbackResource.loop = ! 1, this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, ! 1)) 3953 }, b._addLooping = function () { 3954 null == this._playbackResource || this._audioSpriteStopTime || (this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, ! 1), this._playbackResource.loop = ! 0) 3955 }, b._handleCleanUp = function () { 3956 var a = this._playbackResource; 3957 if (null != a) { 3958 a.pause(), a.loop = ! 1, a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_ENDED, this._endedHandler, ! 1), a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY, this._readyHandler, ! 1), a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED, this._stalledHandler, ! 1), a.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, ! 1), a.removeEventListener(createjs.HTMLAudioPlugin._TIME_UPDATE, this._audioSpriteEndHandler, ! 1); 3959 try { 3960 a.currentTime = this._startTime 3961 } catch (b) { 3962 } 3963 createjs.HTMLAudioTagPool.set(this.src, a), this._playbackResource = null 3964 } 3965 }, b._beginPlaying = function (a) { 3966 return this._playbackResource = createjs.HTMLAudioTagPool.get(this.src), this.AbstractSoundInstance__beginPlaying(a) 3967 }, b._handleSoundReady = function (a) { 3968 if (4 !== this._playbackResource.readyState) { 3969 var b = this._playbackResource; 3970 return b.addEventListener(createjs.HTMLAudioPlugin._AUDIO_READY, this._readyHandler, ! 1), b.addEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED, this._stalledHandler, ! 1), b.preload = "auto", void b.load() 3971 } 3972 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() 3973 }, b._handleTagReady = function (a) { 3974 this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_READY, this._readyHandler, ! 1), this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_STALLED, this._stalledHandler, ! 1), this._handleSoundReady() 3975 }, b._pause = function () { 3976 this._playbackResource.pause() 3977 }, b._resume = function () { 3978 this._playbackResource.play() 3979 }, b._updateVolume = function () { 3980 if (null != this._playbackResource) { 3981 var a = this._muted || createjs.Sound._masterMute ? 0 : this._volume * createjs.Sound._masterVolume; 3982 a != this._playbackResource.volume && (this._playbackResource.volume = a) 3983 } 3984 }, b._calculateCurrentPosition = function () { 3985 return 1e3 * this._playbackResource.currentTime - this._startTime 3986 }, b._updatePosition = function () { 3987 this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, ! 1), this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._handleSetPositionSeek, ! 1); 3988 try { 3989 this._playbackResource.currentTime = .001 * (this._position + this._startTime) 3990 } catch (a) { 3991 this._handleSetPositionSeek(null) 3992 } 3993 }, b._handleSetPositionSeek = function (a) { 3994 null != this._playbackResource && (this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._handleSetPositionSeek, ! 1), this._playbackResource.addEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, ! 1)) 3995 }, b._handleAudioSpriteLoop = function (a) { 3996 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"))) 3997 }, b._handleLoop = function (a) { 3998 0 == this._loop && (this._playbackResource.loop = ! 1, this._playbackResource.removeEventListener(createjs.HTMLAudioPlugin._AUDIO_SEEKED, this._loopHandler, ! 1)) 3999 }, b._updateStartTime = function () { 4000 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)) 4001 }, b._updateDuration = function () { 4002 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)) 4003 }, b._setDurationFromSource = function () { 4004 this._duration = createjs.HTMLAudioTagPool.getDuration(this.src), this._playbackResource = null 4005 }, createjs.HTMLAudioSoundInstance = createjs.promote(a, "AbstractSoundInstance") 4006}(),this.createjs = this.createjs || {},function () { 4007 "use strict"; 4008 4009 function a() { 4010 this.AbstractPlugin_constructor(), this.defaultNumChannels = 2, this._capabilities = c._capabilities, this._loaderClass = createjs.SoundLoader, this._soundInstanceClass = createjs.HTMLAudioSoundInstance 4011 } 4012 4013 var b = createjs.extend(a, createjs.AbstractPlugin), c = a; 4014 c.MAX_INSTANCES = 30, c._AUDIO_READY = "canplaythrough", c._AUDIO_ENDED = "ended", c._AUDIO_SEEKED = "seeked", c._AUDIO_STALLED = "stalled", c._TIME_UPDATE = "timeupdate", c._capabilities = null, c.isSupported = function () { 4015 return c._generateCapabilities(), null != c._capabilities 4016 }, c._generateCapabilities = function () { 4017 if (null == c._capabilities) { 4018 var a = document.createElement("audio"); 4019 if (null == a.canPlayType) return null; 4020 c._capabilities = {panning: ! 1, volume: ! 0, tracks: -1}; 4021 for (var b = createjs.Sound.SUPPORTED_EXTENSIONS, d = createjs.Sound.EXTENSION_MAP, e = 0, f = b.length; f > e; e++) { 4022 var g = b[e], h = d[g] || g; 4023 c._capabilities[g] = "no" != a.canPlayType("audio/" + g) && "" != a.canPlayType("audio/" + g) || "no" != a.canPlayType("audio/" + h) && "" != a.canPlayType("audio/" + h) 4024 } 4025 } 4026 }, b.register = function (a) { 4027 var b = createjs.HTMLAudioTagPool.get(a.src), c = this.AbstractPlugin_register(a); 4028 return c.setTag(b), c 4029 }, b.removeSound = function (a) { 4030 this.AbstractPlugin_removeSound(a), createjs.HTMLAudioTagPool.remove(a) 4031 }, b.create = function (a, b, c) { 4032 var d = this.AbstractPlugin_create(a, b, c); 4033 return d.setPlaybackResource(null), d 4034 }, b.toString = function () { 4035 return "[HTMLAudioPlugin]" 4036 }, b.setVolume = b.getVolume = b.setMute = null, createjs.HTMLAudioPlugin = createjs.promote(a, "AbstractPlugin") 4037}
vendor: 11,853 bytes, lines 4037-4280
4037(),this.createjs = this.createjs || {},function () { 4038 "use strict"; 4039 4040 function a(b, c, d) { 4041 this.ignoreGlobalPause = ! 1, this.loop = ! 1, this.duration = 0, this.pluginData = d || {}, this.target = b, 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 = b, this._useTicks = ! 1, this._inited = ! 1, this._registered = ! 1, c && (this._useTicks = c.useTicks, this.ignoreGlobalPause = c.ignoreGlobalPause, this.loop = c.loop, c.onChange && this.addEventListener("change", c.onChange), c.override && a.removeTweens(b)), c && c.paused ? this._paused = ! 0 : createjs.Tween._register(this, ! 0), c && null != c.position && this.setPosition(c.position, a.NONE) 4042 } 4043 4044 var b = createjs.extend(a, createjs.EventDispatcher); 4045 a.NONE = 0, a.LOOP = 1, a.REVERSE = 2, a.IGNORE = {}, a._tweens = [], a._plugins = {}, a.get = function (b, c, d, e) { 4046 return e && a.removeTweens(b), new a(b, c, d) 4047 }, a.tick = function (b, c) { 4048 for (var d = a._tweens.slice(), e = d.length - 1; e >= 0; e--) { 4049 var f = d[e]; 4050 c && ! f.ignoreGlobalPause || f._paused || f.tick(f._useTicks ? 1 : b) 4051 } 4052 }, a.handleEvent = function (a) { 4053 "tick" == a.type && this.tick(a.delta, a.paused) 4054 }, a.removeTweens = function (b) { 4055 if (b.tweenjs_count) { 4056 for (var c = a._tweens, d = c.length - 1; d >= 0; d--) { 4057 var e = c[d]; 4058 e._target == b && (e._paused = ! 0, c.splice(d, 1)) 4059 } 4060 b.tweenjs_count = 0 4061 } 4062 }, a.removeAllTweens = function () { 4063 for (var b = a._tweens, c = 0, d = b.length; d > c; c++) { 4064 var e = b[c]; 4065 e._paused = ! 0, e.target && (e.target.tweenjs_count = 0) 4066 } 4067 b.length = 0 4068 }, a.hasActiveTweens = function (b) { 4069 return b ? null != b.tweenjs_count && !! b.tweenjs_count : a._tweens && !! a._tweens.length 4070 }, a.installPlugin = function (b, c) { 4071 var d = b.priority; 4072 null == d && (b.priority = d = 0); 4073 for (var e = 0, f = c.length, g = a._plugins; f > e; e++) { 4074 var h = c[e]; 4075 if (g[h]) { 4076 for (var i = g[h], j = 0, k = i.length; k > j && ! (d < i[j].priority); j++) ; 4077 g[h].splice(j, 0, b) 4078 } else g[h] = [b] 4079 } 4080 }, a._register = function (b, c) { 4081 var d = b._target, e = a._tweens; 4082 if (c && ! b._registered) d && (d.tweenjs_count = d.tweenjs_count ? d.tweenjs_count + 1 : 1), e.push(b), ! a._inited && createjs.Ticker && (createjs.Ticker.addEventListener("tick", a), a._inited = ! 0); else if ( ! c && b._registered) { 4083 d && d.tweenjs_count--; 4084 for (var f = e.length; f--;) if (e[f] == b) { 4085 e.splice(f, 1); 4086 break 4087 } 4088 } 4089 b._registered = c 4090 }, b.wait = function (a, b) { 4091 if (null == a || 0 >= a) return this; 4092 var c = this._cloneProps(this._curQueueProps); 4093 return this._addStep({d: a, p0: c, e: this._linearEase, p1: c, v: b}) 4094 }, b.to = function (a, b, c) { 4095 return (isNaN(b) || 0 > b) && (b = 0), this._addStep({ 4096 d: b || 0, 4097 p0: this._cloneProps(this._curQueueProps), 4098 e: c, 4099 p1: this._cloneProps(this._appendQueueProps(a)) 4100 }) 4101 }, b.call = function (a, b, c) { 4102 return this._addAction({f: a, p: b ? b : [this], o: c ? c : this._target}) 4103 }, b.set = function (a, b) { 4104 return this._addAction({f: this._set, o: this, p: [a, b ? b : this._target]}) 4105 }, b.play = function (a) { 4106 return a || (a = this), this.call(a.setPaused, [ ! 1], a) 4107 }, b.pause = function (a) { 4108 return a || (a = this), this.call(a.setPaused, [ ! 0], a) 4109 }, b.setPosition = function (a, b) { 4110 0 > a && (a = 0), null == b && (b = 1); 4111 var c = a, d = ! 1; 4112 if (c >= this.duration && (this.loop ? c %= this.duration : (c = this.duration, d = ! 0)), c == this._prevPos) return d; 4113 var e = this._prevPos; 4114 if (this.position = this._prevPos = c, this._prevPosition = a, this._target) if (d) this._updateTargetProps(null, 1); else if (this._steps.length > 0) { 4115 for (var f = 0, g = this._steps.length; g > f && ! (this._steps[f].t > c); f++) ; 4116 var h = this._steps[f - 1]; 4117 this._updateTargetProps(h, (this._stepPosition = c - h.t) / h.d) 4118 } 4119 return 0 != b && this._actions.length > 0 && (this._useTicks ? this._runActions(c, c) : 1 == b && e > c ? (e != this.duration && this._runActions(e, this.duration), this._runActions(0, c, ! 0)) : this._runActions(e, c)), d && this.setPaused( ! 0), this.dispatchEvent("change"), d 4120 }, b.tick = function (a) { 4121 this._paused || this.setPosition(this._prevPosition + a) 4122 }, b.setPaused = function (b) { 4123 return this._paused === !! b ? this : (this._paused = !! b, a._register(this, ! b), this) 4124 }, b.w = b.wait, b.t = b.to, b.c = b.call, b.s = b.set, b.toString = function () { 4125 return "[Tween]" 4126 }, b.clone = function () { 4127 throw"Tween can not be cloned." 4128 }, b._updateTargetProps = function (b, c) { 4129 var d, e, f, g, h, i; 4130 if (b || 1 != c) { 4131 if (this.passive = !! b.v, this.passive) return; 4132 b.e && (c = b.e(c, 0, 1, 1)), d = b.p0, e = b.p1 4133 } else this.passive = ! 1, d = e = this._curQueueProps; 4134 for (var j in this._initQueueProps) { 4135 null == (g = d[j]) && (d[j] = g = this._initQueueProps[j]), null == (h = e[j]) && (e[j] = h = g), f = g == h || 0 == c || 1 == c || "number" != typeof g ? 1 == c ? h : g : g + (h - g) * c; 4136 var k = ! 1; 4137 if (i = a._plugins[j]) for (var l = 0, m = i.length; m > l; l++) { 4138 var n = i[l].tween(this, j, f, d, e, c, !! b && d == e, ! b); 4139 n == a.IGNORE ? k = ! 0 : f = n 4140 } 4141 k || (this._target[j] = f) 4142 } 4143 }, b._runActions = function (a, b, c) { 4144 var d = a, e = b, f = -1, g = this._actions.length, h = 1; 4145 for (a > b && (d = b, e = a, f = g, g = h = -1); (f += h) != g;) { 4146 var i = this._actions[f], j = i.t; 4147 (j == e || j > d && e > j || c && j == a) && i.f.apply(i.o, i.p) 4148 } 4149 }, b._appendQueueProps = function (b) { 4150 var c, d, e, f, g; 4151 for (var h in b) if (void 0 === this._initQueueProps[h]) { 4152 if (d = this._target[h], c = a._plugins[h]) for (e = 0, f = c.length; f > e; e++) d = c[e].init(this, h, d); 4153 this._initQueueProps[h] = this._curQueueProps[h] = void 0 === d ? null : d 4154 } else d = this._curQueueProps[h]; 4155 for (var h in b) { 4156 if (d = this._curQueueProps[h], c = a._plugins[h]) for (g = g || {}, e = 0, f = c.length; f > e; e++) c[e].step && c[e].step(this, h, d, b[h], g); 4157 this._curQueueProps[h] = b[h] 4158 } 4159 return g && this._appendQueueProps(g), this._curQueueProps 4160 }, b._cloneProps = function (a) { 4161 var b = {}; 4162 for (var c in a) b[c] = a[c]; 4163 return b 4164 }, b._addStep = function (a) { 4165 return a.d > 0 && (this._steps.push(a), a.t = this.duration, this.duration += a.d), this 4166 }, b._addAction = function (a) { 4167 return a.t = this.duration, this._actions.push(a), this 4168 }, b._set = function (a, b) { 4169 for (var c in a) b[c] = a[c] 4170 }, createjs.Tween = createjs.promote(a, "EventDispatcher") 4171}(),this.createjs = this.createjs || {},function () { 4172 "use strict"; 4173 4174 function a(a, b, c) { 4175 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, c && (this._useTicks = c.useTicks, this.loop = c.loop, this.ignoreGlobalPause = c.ignoreGlobalPause, c.onChange && this.addEventListener("change", c.onChange)), a && this.addTween.apply(this, a), this.setLabels(b), c && c.paused ? this._paused = ! 0 : createjs.Tween._register(this, ! 0), c && null != c.position && this.setPosition(c.position, createjs.Tween.NONE) 4176 } 4177 4178 var b = createjs.extend(a, createjs.EventDispatcher); 4179 b.addTween = function (a) { 4180 var b = arguments.length; 4181 if (b > 1) { 4182 for (var c = 0; b > c; c++) this.addTween(arguments[c]); 4183 return arguments[0] 4184 } 4185 return 0 == b ? null : (this.removeTween(a), this._tweens.push(a), a.setPaused( ! 0), a._paused = ! 1, a._useTicks = this._useTicks, a.duration > this.duration && (this.duration = a.duration), this._prevPos >= 0 && a.setPosition(this._prevPos, createjs.Tween.NONE), a) 4186 }, b.removeTween = function (a) { 4187 var b = arguments.length; 4188 if (b > 1) { 4189 for (var c = ! 0, d = 0; b > d; d++) c = c && this.removeTween(arguments[d]); 4190 return c 4191 } 4192 if (0 == b) return ! 1; 4193 for (var e = this._tweens, d = e.length; d--;) if (e[d] == a) return e.splice(d, 1), a.duration >= this.duration && this.updateDuration(), ! 0; 4194 return ! 1 4195 }, b.addLabel = function (a, b) { 4196 this._labels[a] = b; 4197 var c = this._labelList; 4198 if (c) { 4199 for (var d = 0, e = c.length; e > d && ! (b < c[d].position); d++) ; 4200 c.splice(d, 0, {label: a, position: b}) 4201 } 4202 }, b.setLabels = function (a) { 4203 this._labels = a ? a : {} 4204 }, b.getLabels = function () { 4205 var a = this._labelList; 4206 if ( ! a) { 4207 a = this._labelList = []; 4208 var b = this._labels; 4209 for (var c in b) a.push({label: c, position: b[c]}); 4210 a.sort(function (a, b) { 4211 return a.position - b.position 4212 }) 4213 } 4214 return a 4215 }, b.getCurrentLabel = function () { 4216 var a = this.getLabels(), b = this.position, c = a.length; 4217 if (c) { 4218 for (var d = 0; c > d && ! (b < a[d].position); d++) ; 4219 return 0 == d ? null : a[d - 1].label 4220 } 4221 return null 4222 }, b.gotoAndPlay = function (a) { 4223 this.setPaused( ! 1), this._goto(a) 4224 }, b.gotoAndStop = function (a) { 4225 this.setPaused( ! 0), this._goto(a) 4226 }, b.setPosition = function (a, b) { 4227 var c = this._calcPosition(a), d = ! this.loop && a >= this.duration; 4228 if (c == this._prevPos) return d; 4229 this._prevPosition = a, this.position = this._prevPos = c; 4230 for (var e = 0, f = this._tweens.length; f > e; e++) if (this._tweens[e].setPosition(c, b), c != this._prevPos) return ! 1; 4231 return d && this.setPaused( ! 0), this.dispatchEvent("change"), d 4232 }, b.setPaused = function (a) { 4233 this._paused = !! a, createjs.Tween._register(this, ! a) 4234 }, b.updateDuration = function () { 4235 this.duration = 0; 4236 for (var a = 0, b = this._tweens.length; b > a; a++) { 4237 var c = this._tweens[a]; 4238 c.duration > this.duration && (this.duration = c.duration) 4239 } 4240 }, b.tick = function (a) { 4241 this.setPosition(this._prevPosition + a) 4242 }, b.resolve = function (a) { 4243 var b = Number(a); 4244 return isNaN(b) && (b = this._labels[a]), b 4245 }, b.toString = function () { 4246 return "[Timeline]" 4247 }, b.clone = function () { 4248 throw"Timeline can not be cloned." 4249 }, b._goto = function (a) { 4250 var b = this.resolve(a); 4251 null != b && this.setPosition(b) 4252 }, b._calcPosition = function (a) { 4253 return 0 > a ? 0 : a < this.duration ? a : this.loop ? a % this.duration : this.duration 4254 }, createjs.Timeline = createjs.promote(a, "EventDispatcher") 4255}(),this.createjs = this.createjs || {},function () { 4256 "use strict"; 4257 4258 function a() { 4259 throw"Ease cannot be instantiated." 4260 } 4261 4262 a.linear = function (a) { 4263 return a 4264 }, a.none = a.linear, a.get = function (a) { 4265 return -1 > a && (a = -1), a > 1 && (a = 1), function (b) { 4266 return 0 == a ? b : 0 > a ? b * (b * -a + 1 + a) : b * ((2 - b) * a + (1 - a)) 4267 } 4268 }, a.getPowIn = function (a) { 4269 return function (b) { 4270 return Math.pow(b, a) 4271 } 4272 }, a.getPowOut = function (a) { 4273 return function (b) { 4274 return 1 - Math.pow(1 - b, a) 4275 } 4276 }, a.getPowInOut = function (a) { 4277 return function (b) { 4278 return (b *= 2) < 1 ? .5 * Math.pow(b, a) : 1 - .5 * Math.abs(Math.pow(2 - b, a)) 4279 } 4280 }, a.quadIn = a.getPowIn(2), a.quadOut = a.getPowOut(2), a.quadInOut = a.getPowInOut(2), a.cubicIn = a.getPowIn(3), a.cub
vendor: 7,147 bytes, lines 4280-4411
4280icOut = a.getPowOut(3), a.cubicInOut = a.getPowInOut(3), a.quartIn = a.getPowIn(4), a.quartOut = a.getPowOut(4), a.quartInOut = a.getPowInOut(4), a.quintIn = a.getPowIn(5), a.quintOut = a.getPowOut(5), a.quintInOut = a.getPowInOut(5), a.sineIn = function (a) { 4281 return 1 - Math.cos(a * Math.PI / 2) 4282 }, a.sineOut = function (a) { 4283 return Math.sin(a * Math.PI / 2) 4284 }, a.sineInOut = function (a) { 4285 return -.5 * (Math.cos(Math.PI * a) - 1) 4286 }, a.getBackIn = function (a) { 4287 return function (b) { 4288 return b * b * ((a + 1) * b - a) 4289 } 4290 }, a.backIn = a.getBackIn(1.7), a.getBackOut = function (a) { 4291 return function (b) { 4292 return --b * b * ((a + 1) * b + a) + 1 4293 } 4294 }, a.backOut = a.getBackOut(1.7), a.getBackInOut = function (a) { 4295 return a *= 1.525, function (b) { 4296 return (b *= 2) < 1 ? .5 * (b * b * ((a + 1) * b - a)) : .5 * ((b -= 2) * b * ((a + 1) * b + a) + 2) 4297 } 4298 }, a.backInOut = a.getBackInOut(1.7), a.circIn = function (a) { 4299 return -(Math.sqrt(1 - a * a) - 1) 4300 }, a.circOut = function (a) { 4301 return Math.sqrt(1 - --a * a) 4302 }, a.circInOut = function (a) { 4303 return (a *= 2) < 1 ? -.5 * (Math.sqrt(1 - a * a) - 1) : .5 * (Math.sqrt(1 - (a -= 2) * a) + 1) 4304 }, a.bounceIn = function (b) { 4305 return 1 - a.bounceOut(1 - b) 4306 }, a.bounceOut = function (a) { 4307 return 1 / 2.75 > a ? 7.5625 * a * a : 2 / 2.75 > a ? 7.5625 * (a -= 1.5 / 2.75) * a + .75 : 2.5 / 2.75 > a ? 7.5625 * (a -= 2.25 / 2.75) * a + .9375 : 7.5625 * (a -= 2.625 / 2.75) * a + .984375 4308 }, a.bounceInOut = function (b) { 4309 return .5 > b ? .5 * a.bounceIn(2 * b) : .5 * a.bounceOut(2 * b - 1) + .5 4310 }, a.getElasticIn = function (a, b) { 4311 var c = 2 * Math.PI; 4312 return function (d) { 4313 if (0 == d || 1 == d) return d; 4314 var e = b / c * Math.asin(1 / a); 4315 return -(a * Math.pow(2, 10 * (d -= 1)) * Math.sin((d - e) * c / b)) 4316 } 4317 }, a.elasticIn = a.getElasticIn(1, .3), a.getElasticOut = function (a, b) { 4318 var c = 2 * Math.PI; 4319 return function (d) { 4320 if (0 == d || 1 == d) return d; 4321 var e = b / c * Math.asin(1 / a); 4322 return a * Math.pow(2, -10 * d) * Math.sin((d - e) * c / b) + 1 4323 } 4324 }, a.elasticOut = a.getElasticOut(1, .3), a.getElasticInOut = function (a, b) { 4325 var c = 2 * Math.PI; 4326 return function (d) { 4327 var e = b / c * Math.asin(1 / a); 4328 return (d *= 2) < 1 ? -.5 * (a * Math.pow(2, 10 * (d -= 1)) * Math.sin((d - e) * c / b)) : a * Math.pow(2, -10 * (d -= 1)) * Math.sin((d - e) * c / b) * .5 + 1 4329 } 4330 }, a.elasticInOut = a.getElasticInOut(1, .3 * 1.5), createjs.Ease = a 4331}(),this.createjs = this.createjs || {},function () { 4332 "use strict"; 4333 4334 function a() { 4335 throw"MotionGuidePlugin cannot be instantiated." 4336 } 4337 4338 a.priority = 0, a._rotOffS, a._rotOffE, a._rotNormS, a._rotNormE, a.install = function () { 4339 return createjs.Tween.installPlugin(a, ["guide", "x", "y", "rotation"]), createjs.Tween.IGNORE 4340 }, a.init = function (a, b, c) { 4341 var d = a.target; 4342 return d.hasOwnProperty("x") || (d.x = 0), d.hasOwnProperty("y") || (d.y = 0), d.hasOwnProperty("rotation") || (d.rotation = 0), "rotation" == b && (a.__needsRot = ! 0), "guide" == b ? null : c 4343 }, a.step = function (b, c, d, e, f) { 4344 if ("rotation" == c && (b.__rotGlobalS = d, b.__rotGlobalE = e, a.testRotData(b, f)), "guide" != c) return e; 4345 var g, h = e; 4346 h.hasOwnProperty("path") || (h.path = []); 4347 var i = h.path; 4348 if (h.hasOwnProperty("end") || (h.end = 1), h.hasOwnProperty("start") || (h.start = d && d.hasOwnProperty("end") && d.path === i ? d.end : 0), h.hasOwnProperty("_segments") && h._length) return e; 4349 var j = i.length, k = 10; 4350 if ( ! (j >= 6 && (j - 2) % 4 == 0)) throw"invalid 'path' data, please see documentation for valid paths"; 4351 h._segments = [], h._length = 0; 4352 for (var l = 2; j > l; l += 4) { 4353 for (var m, n, o = i[l - 2], p = i[l - 1], q = i[l + 0], r = i[l + 1], s = i[l + 2], t = i[l + 3], u = o, v = p, w = 0, x = [], y = 1; k >= y; y++) { 4354 var z = y / k, A = 1 - z; 4355 m = A * A * o + 2 * A * z * q + z * z * s, n = A * A * p + 2 * A * z * r + z * z * t, w += x[x.push(Math.sqrt((g = m - u) * g + (g = n - v) * g)) - 1], u = m, v = n 4356 } 4357 h._segments.push(w), h._segments.push(x), h._length += w 4358 } 4359 g = h.orient, h.orient = ! 0; 4360 var B = {}; 4361 return a.calc(h, h.start, B), b.__rotPathS = Number(B.rotation.toFixed(5)), a.calc(h, h.end, B), b.__rotPathE = Number(B.rotation.toFixed(5)), h.orient = ! 1, a.calc(h, h.end, f), h.orient = g, h.orient ? (b.__guideData = h, a.testRotData(b, f), e) : e 4362 }, a.testRotData = function (a, b) { 4363 if (void 0 === a.__rotGlobalS || void 0 === a.__rotGlobalE) { 4364 if (a.__needsRot) return; 4365 void 0 !== a._curQueueProps.rotation ? a.__rotGlobalS = a.__rotGlobalE = a._curQueueProps.rotation : a.__rotGlobalS = a.__rotGlobalE = b.rotation = a.target.rotation || 0 4366 } 4367 if (void 0 !== a.__guideData) { 4368 var c = a.__guideData, d = a.__rotGlobalE - a.__rotGlobalS, e = a.__rotPathE - a.__rotPathS, f = d - e; 4369 if ("auto" == c.orient) f > 180 ? f -= 360 : -180 > f && (f += 360); else if ("cw" == c.orient) { 4370 for (; 0 > f;) f += 360; 4371 0 == f && d > 0 && 180 != d && (f += 360) 4372 } else if ("ccw" == c.orient) { 4373 for (f = d - (e > 180 ? 360 - e : e); f > 0;) f -= 360; 4374 0 == f && 0 > d && -180 != d && (f -= 360) 4375 } 4376 c.rotDelta = f, c.rotOffS = a.__rotGlobalS - a.__rotPathS, a.__rotGlobalS = a.__rotGlobalE = a.__guideData = a.__needsRot = void 0 4377 } 4378 }, a.tween = function (b, c, d, e, f, g, h, i) { 4379 var j = f.guide; 4380 if (void 0 == j || j === e.guide) return d; 4381 if (j.lastRatio != g) { 4382 var k = (j.end - j.start) * (h ? j.end : g) + j.start; 4383 switch (a.calc(j, k, b.target), j.orient) { 4384 case"cw": 4385 case"ccw": 4386 case"auto": 4387 b.target.rotation += j.rotOffS + j.rotDelta * g; 4388 break; 4389 case"fixed": 4390 default: 4391 b.target.rotation += j.rotOffS 4392 } 4393 j.lastRatio = g 4394 } 4395 return "rotation" != c || j.orient && "false" != j.orient ? b.target[c] : d 4396 }, a.calc = function (a, b, c) { 4397 if (void 0 == a._segments) throw"Missing critical pre-calculated information, please file a bug"; 4398 void 0 == c && (c = {x: 0, y: 0, rotation: 0}); 4399 for (var d = a._segments, e = a.path, f = a._length * b, g = d.length - 2, h = 0; f > d[h] && g > h;) f -= d[h], h += 2; 4400 var i = d[h + 1], j = 0; 4401 for (g = i.length - 1; f > i[j] && g > j;) f -= i[j], j++; 4402 var k = j / ++g + f / (g * i[j]); 4403 h = 2 * h + 2; 4404 var l = 1 - k; 4405 return c.x = l * l * e[h - 2] + 2 * l * k * e[h + 0] + k * k * e[h + 2], c.y = l * l * e[h - 1] + 2 * l * k * e[h + 1] + k * k * e[h + 3], a.orient && (c.rotation = 57.2957795 * Math.atan2((e[h + 1] - e[h - 1]) * l + (e[h + 3] - e[h + 1]) * k, (e[h + 0] - e[h - 2]) * l + (e[h + 2] - e[h + 0]) * k)), c 4406 }, createjs.MotionGuidePlugin = a 4407}(),this.createjs = this.createjs || {},function () { 4408 "use strict"; 4409 var a = createjs.TweenJS = createjs.TweenJS || {}; 4410 a.version = "0.6.2", a.buildDate = "Thu, 26 Nov 2015 20:44:31 GMT" 4411}();
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.