tool_bluej_webpack
Version:
支持最新的webpack3.4.1打包 适用于单页应用、多页应用或vue应用 > **必须保留原始目录结构,千万不要删除任何的文件夹**
853 lines (839 loc) • 79.4 kB
JavaScript
/*!
* @license PreloadJS
* Visit http://createjs.com/ for documentation, updates and examples.
*
* Copyright (c) 2011-2015 gskinner.com, inc.
*
* Distributed under the terms of the MIT license.
* http://www.opensource.org/licenses/mit-license.html
*
* This notice shall be included in all copies or substantial portions of the Software.
*/
window.createjs = window.createjs || {}, function () {
"use strict";
var a = createjs.PreloadJS = createjs.PreloadJS || {};
a.version = "0.6.2", a.buildDate = "Thu, 26 Nov 2015 20:44:31 GMT"
}(), window.createjs = window.createjs || {}, createjs.extend = function (a, b) {
"use strict";
function c() {
this.constructor = a
}
return c.prototype = b.prototype, a.prototype = new c
}, window.createjs = window.createjs || {}, createjs.promote = function (a, b) {
"use strict";
var c = a.prototype, d = Object.getPrototypeOf && Object.getPrototypeOf(c) || c.__proto__;
if (d) {
c[(b += "_") + "constructor"] = d.constructor;
for (var e in d)c.hasOwnProperty(e) && "function" == typeof d[e] && (c[b + e] = d[e])
}
return a
}, window.createjs = window.createjs || {}, function () {
"use strict";
createjs.proxy = function (a, b) {
var c = Array.prototype.slice.call(arguments, 2);
return function () {
return a.apply(b, Array.prototype.slice.call(arguments, 0).concat(c))
}
}
}(), window.createjs = window.createjs || {}, createjs.indexOf = function (a, b) {
"use strict";
for (var c = 0, d = a.length; d > c; c++)if (b === a[c])return c;
return -1
}, window.createjs = window.createjs || {}, function () {
"use strict";
function Event(a, b, c) {
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
}
var a = Event.prototype;
a.preventDefault = function () {
this.defaultPrevented = this.cancelable && !0
}, a.stopPropagation = function () {
this.propagationStopped = !0
}, a.stopImmediatePropagation = function () {
this.immediatePropagationStopped = this.propagationStopped = !0
}, a.remove = function () {
this.removed = !0
}, a.clone = function () {
return new Event(this.type, this.bubbles, this.cancelable)
}, a.set = function (a) {
for (var b in a)this[b] = a[b];
return this
}, a.toString = function () {
return "[Event (type=" + this.type + ")]"
}, createjs.Event = Event
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function ErrorEvent(a, b, c) {
this.Event_constructor("error"), this.title = a, this.message = b, this.data = c
}
var a = createjs.extend(ErrorEvent, createjs.Event);
a.clone = function () {
return new createjs.ErrorEvent(this.title, this.message, this.data)
}, createjs.ErrorEvent = createjs.promote(ErrorEvent, "Event")
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function EventDispatcher() {
this._listeners = null, this._captureListeners = null
}
var a = EventDispatcher.prototype;
EventDispatcher.initialize = function (b) {
b.addEventListener = a.addEventListener, b.on = a.on, b.removeEventListener = b.off = a.removeEventListener, b.removeAllEventListeners = a.removeAllEventListeners, b.hasEventListener = a.hasEventListener, b.dispatchEvent = a.dispatchEvent, b._dispatchEvent = a._dispatchEvent, b.willTrigger = a.willTrigger
}, a.addEventListener = function (a, b, c) {
var d;
d = c ? this._captureListeners = this._captureListeners || {} : this._listeners = this._listeners || {};
var e = d[a];
return e && this.removeEventListener(a, b, c), e = d[a], e ? e.push(b) : d[a] = [b], b
}, a.on = function (a, b, c, d, e, f) {
return b.handleEvent && (c = c || b, b = b.handleEvent), c = c || this, this.addEventListener(a, function (a) {
b.call(c, a, e), d && a.remove()
}, f)
}, a.removeEventListener = function (a, b, c) {
var d = c ? this._captureListeners : this._listeners;
if (d) {
var e = d[a];
if (e)for (var f = 0, g = e.length; g > f; f++)if (e[f] == b) {
1 == g ? delete d[a] : e.splice(f, 1);
break
}
}
}, a.off = a.removeEventListener, a.removeAllEventListeners = function (a) {
a ? (this._listeners && delete this._listeners[a], this._captureListeners && delete this._captureListeners[a]) : this._listeners = this._captureListeners = null
}, a.dispatchEvent = function (a, b, c) {
if ("string" == typeof a) {
var d = this._listeners;
if (!(b || d && d[a]))return !0;
a = new createjs.Event(a, b, c)
} else a.target && a.clone && (a = a.clone());
try {
a.target = this
} catch (e) {
}
if (a.bubbles && this.parent) {
for (var f = this, g = [f]; f.parent;)g.push(f = f.parent);
var h, i = g.length;
for (h = i - 1; h >= 0 && !a.propagationStopped; h--)g[h]._dispatchEvent(a, 1 + (0 == h));
for (h = 1; i > h && !a.propagationStopped; h++)g[h]._dispatchEvent(a, 3)
} else this._dispatchEvent(a, 2);
return !a.defaultPrevented
}, a.hasEventListener = function (a) {
var b = this._listeners, c = this._captureListeners;
return !!(b && b[a] || c && c[a])
}, a.willTrigger = function (a) {
for (var b = this; b;) {
if (b.hasEventListener(a))return !0;
b = b.parent
}
return !1
}, a.toString = function () {
return "[EventDispatcher]"
}, a._dispatchEvent = function (a, b) {
var c, d = 1 == b ? this._captureListeners : this._listeners;
if (a && d) {
var e = d[a.type];
if (!e || !(c = e.length))return;
try {
a.currentTarget = this
} catch (f) {
}
try {
a.eventPhase = b
} catch (f) {
}
a.removed = !1, e = e.slice();
for (var g = 0; c > g && !a.immediatePropagationStopped; g++) {
var h = e[g];
h.handleEvent ? h.handleEvent(a) : h(a), a.removed && (this.off(a.type, h, 1 == b), a.removed = !1)
}
}
}, createjs.EventDispatcher = EventDispatcher
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function ProgressEvent(a, b) {
this.Event_constructor("progress"), this.loaded = a, this.total = null == b ? 1 : b, this.progress = 0 == b ? 0 : this.loaded / this.total
}
var a = createjs.extend(ProgressEvent, createjs.Event);
a.clone = function () {
return new createjs.ProgressEvent(this.loaded, this.total)
}, createjs.ProgressEvent = createjs.promote(ProgressEvent, "Event")
}(window), function () {
function a(b, d) {
function f(a) {
if (f[a] !== q)return f[a];
var b;
if ("bug-string-char-index" == a) b = "a" != "a"[0]; else if ("json" == a) b = f("json-stringify") && f("json-parse"); else {
var c, e = '{"a":[1,true,false,null,"\\u0000\\b\\n\\f\\r\\t"]}';
if ("json-stringify" == a) {
var i = d.stringify, k = "function" == typeof i && t;
if (k) {
(c = function () {
return 1
}).toJSON = c;
try {
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))
} catch (l) {
k = !1
}
}
b = k
}
if ("json-parse" == a) {
var m = d.parse;
if ("function" == typeof m)try {
if (0 === m("0") && !m(!1)) {
c = m(e);
var n = 5 == c.a.length && 1 === c.a[0];
if (n) {
try {
n = !m('" "')
} catch (l) {
}
if (n)try {
n = 1 !== m("01")
} catch (l) {
}
if (n)try {
n = 1 !== m("1.")
} catch (l) {
}
}
}
} catch (l) {
n = !1
}
b = n
}
}
return f[a] = !!b
}
b || (b = e.Object()), d || (d = e.Object());
var g = b.Number || e.Number, h = b.String || e.String, i = b.Object || e.Object, j = b.Date || e.Date,
k = b.SyntaxError || e.SyntaxError, l = b.TypeError || e.TypeError, m = b.Math || e.Math,
n = b.JSON || e.JSON;
"object" == typeof n && n && (d.stringify = n.stringify, d.parse = n.parse);
var o, p, q, r = i.prototype, s = r.toString, t = new j(-0xc782b5b800cec);
try {
t = -109252 == t.getUTCFullYear() && 0 === t.getUTCMonth() && 1 === t.getUTCDate() && 10 == t.getUTCHours() && 37 == t.getUTCMinutes() && 6 == t.getUTCSeconds() && 708 == t.getUTCMilliseconds()
} catch (u) {
}
if (!f("json")) {
var v = "[object Function]", w = "[object Date]", x = "[object Number]", y = "[object String]",
z = "[object Array]", A = "[object Boolean]", B = f("bug-string-char-index");
if (!t)var C = m.floor, D = [0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334], E = function (a, b) {
return D[b] + 365 * (a - 1970) + C((a - 1969 + (b = +(b > 1))) / 4) - C((a - 1901 + b) / 100) + C((a - 1601 + b) / 400)
};
if ((o = r.hasOwnProperty) || (o = function (a) {
var b, c = {};
return (c.__proto__ = null, c.__proto__ = {toString: 1}, c).toString != s ? o = function (a) {
var b = this.__proto__, c = a in (this.__proto__ = null, this);
return this.__proto__ = b, c
} : (b = c.constructor, o = function (a) {
var c = (this.constructor || b).prototype;
return a in this && !(a in c && this[a] === c[a])
}), c = null, o.call(this, a)
}), p = function (a, b) {
var d, e, f, g = 0;
(d = function () {
this.valueOf = 0
}).prototype.valueOf = 0, e = new d;
for (f in e)o.call(e, f) && g++;
return d = e = null, g ? p = 2 == g ? function (a, b) {
var c, d = {}, e = s.call(a) == v;
for (c in a)e && "prototype" == c || o.call(d, c) || !(d[c] = 1) || !o.call(a, c) || b(c)
} : function (a, b) {
var c, d, e = s.call(a) == v;
for (c in a)e && "prototype" == c || !o.call(a, c) || (d = "constructor" === c) || b(c);
(d || o.call(a, c = "constructor")) && b(c)
} : (e = ["valueOf", "toString", "toLocaleString", "propertyIsEnumerable", "isPrototypeOf", "hasOwnProperty", "constructor"], p = function (a, b) {
var d, f, g = s.call(a) == v,
h = !g && "function" != typeof a.constructor && c[typeof a.hasOwnProperty] && a.hasOwnProperty || o;
for (d in a)g && "prototype" == d || !h.call(a, d) || b(d);
for (f = e.length; d = e[--f]; h.call(a, d) && b(d));
}), p(a, b)
}, !f("json-stringify")) {
var F = {92: "\\\\", 34: '\\"', 8: "\\b", 12: "\\f", 10: "\\n", 13: "\\r", 9: "\\t"}, G = "000000",
H = function (a, b) {
return (G + (b || 0)).slice(-a)
}, I = "\\u00", J = function (a) {
for (var b = '"', c = 0, d = a.length, e = !B || d > 10,
f = e && (B ? a.split("") : a); d > c; c++) {
var g = a.charCodeAt(c);
switch (g) {
case 8:
case 9:
case 10:
case 12:
case 13:
case 34:
case 92:
b += F[g];
break;
default:
if (32 > g) {
b += I + H(2, g.toString(16));
break
}
b += e ? f[c] : a.charAt(c)
}
}
return b + '"'
}, K = function (a, b, c, d, e, f, g) {
var h, i, j, k, m, n, r, t, u, v, B, D, F, G, I, L;
try {
h = b[a]
} catch (M) {
}
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) {
if (E) {
for (m = C(h / 864e5), j = C(m / 365.2425) + 1970 - 1; E(j + 1, 0) <= m; j++);
for (k = C((m - E(j, 0)) / 30.42); E(j, k + 1) <= m; k++);
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
} else j = h.getUTCFullYear(), k = h.getUTCMonth(), m = h.getUTCDate(), r = h.getUTCHours(), t = h.getUTCMinutes(), u = h.getUTCSeconds(), v = h.getUTCMilliseconds();
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"
} else h = null;
if (c && (h = c.call(b, a, h)), null === h)return "null";
if (i = s.call(h), i == A)return "" + h;
if (i == x)return h > -1 / 0 && 1 / 0 > h ? "" + h : "null";
if (i == y)return J("" + h);
if ("object" == typeof h) {
for (G = g.length; G--;)if (g[G] === h)throw l();
if (g.push(h), B = [], I = f, f += e, i == z) {
for (F = 0, G = h.length; G > F; F++)D = K(F, h, c, d, e, f, g), B.push(D === q ? "null" : D);
L = B.length ? e ? "[\n" + f + B.join(",\n" + f) + "\n" + I + "]" : "[" + B.join(",") + "]" : "[]"
} else p(d || h, function (a) {
var b = K(a, h, c, d, e, f, g);
b !== q && B.push(J(a) + ":" + (e ? " " : "") + b)
}), L = B.length ? e ? "{\n" + f + B.join(",\n" + f) + "\n" + I + "}" : "{" + B.join(",") + "}" : "{}";
return g.pop(), L
}
};
d.stringify = function (a, b, d) {
var e, f, g, h;
if (c[typeof b] && b)if ((h = s.call(b)) == v) f = b; else if (h == z) {
g = {};
for (var i, j = 0,
k = b.length; k > j; i = b[j++], h = s.call(i), (h == y || h == x) && (g[i] = 1));
}
if (d)if ((h = s.call(d)) == x) {
if ((d -= d % 1) > 0)for (e = "", d > 10 && (d = 10); e.length < d; e += " ");
} else h == y && (e = d.length <= 10 ? d : d.slice(0, 10));
return K("", (i = {}, i[""] = a, i), f, g, e, "", [])
}
}
if (!f("json-parse")) {
var L, M, N = h.fromCharCode,
O = {92: "\\", 34: '"', 47: "/", 98: "\b", 116: " ", 110: "\n", 102: "\f", 114: "\r"},
P = function () {
throw L = M = null, k()
}, Q = function () {
for (var a, b, c, d, e, f = M, g = f.length; g > L;)switch (e = f.charCodeAt(L)) {
case 9:
case 10:
case 13:
case 32:
L++;
break;
case 123:
case 125:
case 91:
case 93:
case 58:
case 44:
return a = B ? f.charAt(L) : f[L], L++, a;
case 34:
for (a = "@", L++; g > L;)if (e = f.charCodeAt(L), 32 > e) P(); else if (92 == e)switch (e = f.charCodeAt(++L)) {
case 92:
case 34:
case 47:
case 98:
case 116:
case 110:
case 102:
case 114:
a += O[e], L++;
break;
case 117:
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();
a += N("0x" + f.slice(b, L));
break;
default:
P()
} else {
if (34 == e)break;
for (e = f.charCodeAt(L), b = L; e >= 32 && 92 != e && 34 != e;)e = f.charCodeAt(++L);
a += f.slice(b, L)
}
if (34 == f.charCodeAt(L))return L++, a;
P();
default:
if (b = L, 45 == e && (d = !0, e = f.charCodeAt(++L)), e >= 48 && 57 >= e) {
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++);
if (46 == f.charCodeAt(L)) {
for (c = ++L; g > c && (e = f.charCodeAt(c), e >= 48 && 57 >= e); c++);
c == L && P(), L = c
}
if (e = f.charCodeAt(L), 101 == e || 69 == e) {
for (e = f.charCodeAt(++L), (43 == e || 45 == e) && L++, c = L; g > c && (e = f.charCodeAt(c), e >= 48 && 57 >= e); c++);
c == L && P(), L = c
}
return +f.slice(b, L)
}
if (d && P(), "true" == f.slice(L, L + 4))return L += 4, !0;
if ("false" == f.slice(L, L + 5))return L += 5, !1;
if ("null" == f.slice(L, L + 4))return L += 4, null;
P()
}
return "$"
}, R = function (a) {
var b, c;
if ("$" == a && P(), "string" == typeof a) {
if ("@" == (B ? a.charAt(0) : a[0]))return a.slice(1);
if ("[" == a) {
for (b = []; a = Q(), "]" != a; c || (c = !0))c && ("," == a ? (a = Q(), "]" == a && P()) : P()), "," == a && P(), b.push(R(a));
return b
}
if ("{" == a) {
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());
return b
}
P()
}
return a
}, S = function (a, b, c) {
var d = T(a, b, c);
d === q ? delete a[b] : a[b] = d
}, T = function (a, b, c) {
var d, e = a[b];
if ("object" == typeof e && e)if (s.call(e) == z)for (d = e.length; d--;)S(e, d, c); else p(e, function (a) {
S(e, a, c)
});
return c.call(a, b, e)
};
d.parse = function (a, b) {
var c, d;
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
}
}
}
return d.runInContext = a, d
}
var b = "function" == typeof define && define.amd, c = {"function": !0, object: !0},
d = c[typeof exports] && exports && !exports.nodeType && exports, e = c[typeof window] && window || this,
f = d && c[typeof module] && module && !module.nodeType && "object" == typeof global && global;
if (!f || f.global !== f && f.window !== f && f.self !== f || (e = f), d && !b) a(e, d); else {
var g = e.JSON, h = e.JSON3, i = !1, j = a(e, e.JSON3 = {
noConflict: function () {
return i || (i = !0, e.JSON = g, e.JSON3 = h, g = h = null), j
}
});
e.JSON = {parse: j.parse, stringify: j.stringify}
}
b && define(function () {
return j
})
}.call(this), function () {
var a = {};
a.appendToHead = function (b) {
a.getHead().appendChild(b)
}, a.getHead = function () {
return document.head || document.getElementsByTagName("head")[0]
}, a.getBody = function () {
return document.body || document.getElementsByTagName("body")[0]
}, createjs.DomUtils = a
}(), function () {
var a = {};
a.parseXML = function (a, b) {
var c = null;
try {
if (window.DOMParser) {
var d = new DOMParser;
c = d.parseFromString(a, b)
}
} catch (e) {
}
if (!c)try {
c = new ActiveXObject("Microsoft.XMLDOM"), c.async = !1, c.loadXML(a)
} catch (e) {
c = null
}
return c
}, a.parseJSON = function (a) {
if (null == a)return null;
try {
return JSON.parse(a)
} catch (b) {
throw b
}
}, createjs.DataUtils = a
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function LoadItem() {
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 = b.LOAD_TIMEOUT_DEFAULT
}
var a = LoadItem.prototype = {}, b = LoadItem;
b.LOAD_TIMEOUT_DEFAULT = 8e3, b.create = function (a) {
if ("string" == typeof a) {
var c = new LoadItem;
return c.src = a, c
}
if (a instanceof b)return a;
if (a instanceof Object && a.src)return null == a.loadTimeout && (a.loadTimeout = b.LOAD_TIMEOUT_DEFAULT), a;
throw new Error("Type not recognized.")
}, a.set = function (a) {
for (var b in a)this[b] = a[b];
return this
}, createjs.LoadItem = b
}(), function () {
var a = {};
a.ABSOLUTE_PATT = /^(?:\w+:)?\/{2}/i, a.RELATIVE_PATT = /^[.\/]*?\//i, a.EXTENSION_PATT = /\/?[^\/]+\.(\w{1,5})$/i, a.parseURI = function (b) {
var c = {absolute: !1, relative: !1};
if (null == b)return c;
var d = b.indexOf("?");
d > -1 && (b = b.substr(0, d));
var e;
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
}, a.formatQueryString = function (a, b) {
if (null == a)throw new Error("You must specify data.");
var c = [];
for (var d in a)c.push(d + "=" + escape(a[d]));
return b && (c = c.concat(b)), c.join("&")
}, a.buildPath = function (a, b) {
if (null == b)return a;
var c = [], d = a.indexOf("?");
if (-1 != d) {
var e = a.slice(d + 1);
c = c.concat(e.split("&"))
}
return -1 != d ? a.slice(0, d) + "?" + this.formatQueryString(b, c) : a + "?" + this.formatQueryString(b, c)
}, a.isCrossDomain = function (a) {
var b = document.createElement("a");
b.href = a.src;
var c = document.createElement("a");
c.href = location.href;
var d = "" != b.hostname && (b.port != c.port || b.protocol != c.protocol || b.hostname != c.hostname);
return d
}, a.isLocal = function (a) {
var b = document.createElement("a");
return b.href = a.src, "" == b.hostname && "file:" == b.protocol
}, a.isBinary = function (a) {
switch (a) {
case createjs.AbstractLoader.IMAGE:
case createjs.AbstractLoader.BINARY:
return !0;
default:
return !1
}
}, a.isImageTag = function (a) {
return a instanceof HTMLImageElement
}, a.isAudioTag = function (a) {
return window.HTMLAudioElement ? a instanceof HTMLAudioElement : !1
}, a.isVideoTag = function (a) {
return window.HTMLVideoElement ? a instanceof HTMLVideoElement : !1
}, a.isText = function (a) {
switch (a) {
case createjs.AbstractLoader.TEXT:
case createjs.AbstractLoader.JSON:
case createjs.AbstractLoader.MANIFEST:
case createjs.AbstractLoader.XML:
case createjs.AbstractLoader.CSS:
case createjs.AbstractLoader.SVG:
case createjs.AbstractLoader.JAVASCRIPT:
case createjs.AbstractLoader.SPRITESHEET:
return !0;
default:
return !1
}
}, a.getTypeByExtension = function (a) {
if (null == a)return createjs.AbstractLoader.TEXT;
switch (a.toLowerCase()) {
case"jpeg":
case"jpg":
case"gif":
case"png":
case"webp":
case"bmp":
return createjs.AbstractLoader.IMAGE;
case"ogg":
case"mp3":
case"webm":
return createjs.AbstractLoader.SOUND;
case"mp4":
case"webm":
case"ts":
return createjs.AbstractLoader.VIDEO;
case"json":
return createjs.AbstractLoader.JSON;
case"xml":
return createjs.AbstractLoader.XML;
case"css":
return createjs.AbstractLoader.CSS;
case"js":
return createjs.AbstractLoader.JAVASCRIPT;
case"svg":
return createjs.AbstractLoader.SVG;
default:
return createjs.AbstractLoader.TEXT
}
}, createjs.RequestUtils = a
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function AbstractLoader(a, b, c) {
this.EventDispatcher_constructor(), this.loaded = !1, this.canceled = !1, this.progress = 0, this.type = c, this.resultFormatter = null, this._item = a ? createjs.LoadItem.create(a) : null, this._preferXHR = b, this._result = null, this._rawResult = null, this._loadedItems = null, this._tagSrcAttribute = null, this._tag = null
}
var a = createjs.extend(AbstractLoader, createjs.EventDispatcher), b = AbstractLoader;
b.POST = "POST", b.GET = "GET", b.BINARY = "binary", b.CSS = "css", b.IMAGE = "image", b.JAVASCRIPT = "javascript", b.JSON = "json", b.JSONP = "jsonp", b.MANIFEST = "manifest", b.SOUND = "sound", b.VIDEO = "video", b.SPRITESHEET = "spritesheet", b.SVG = "svg", b.TEXT = "text", b.XML = "xml", a.getItem = function () {
return this._item
}, a.getResult = function (a) {
return a ? this._rawResult : this._result
}, a.getTag = function () {
return this._tag
}, a.setTag = function (a) {
this._tag = a
}, a.load = function () {
this._createRequest(), this._request.on("complete", this, this), this._request.on("progress", this, this), this._request.on("loadStart", this, this), this._request.on("abort", this, this), this._request.on("timeout", this, this), this._request.on("error", this, this);
var a = new createjs.Event("initialize");
a.loader = this._request, this.dispatchEvent(a), this._request.load()
}, a.cancel = function () {
this.canceled = !0, this.destroy()
}, a.destroy = function () {
this._request && (this._request.removeAllEventListeners(), this._request.destroy()), this._request = null, this._item = null, this._rawResult = null, this._result = null, this._loadItems = null, this.removeAllEventListeners()
}, a.getLoadedItems = function () {
return this._loadedItems
}, a._createRequest = function () {
this._request = this._preferXHR ? new createjs.XHRRequest(this._item) : new createjs.TagRequest(this._item, this._tag || this._createTag(), this._tagSrcAttribute)
}, a._createTag = function () {
return null
}, a._sendLoadStart = function () {
this._isCanceled() || this.dispatchEvent("loadstart")
}, a._sendProgress = function (a) {
if (!this._isCanceled()) {
var b = null;
"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) || 1 / 0 == this.progress) && (this.progress = 0)), this.hasEventListener("progress") && this.dispatchEvent(b)
}
}, a._sendComplete = function () {
if (!this._isCanceled()) {
this.loaded = !0;
var a = new createjs.Event("complete");
a.rawResult = this._rawResult, null != this._result && (a.result = this._result), this.dispatchEvent(a)
}
}, a._sendError = function (a) {
!this._isCanceled() && this.hasEventListener("error") && (null == a && (a = new createjs.ErrorEvent("PRELOAD_ERROR_EMPTY")), this.dispatchEvent(a))
}, a._isCanceled = function () {
return null == window.createjs || this.canceled ? !0 : !1
}, a.resultFormatter = null, a.handleEvent = function (a) {
switch (a.type) {
case"complete":
this._rawResult = a.target._response;
var b = this.resultFormatter && this.resultFormatter(this);
b instanceof Function ? b.call(this, createjs.proxy(this._resultFormatSuccess, this), createjs.proxy(this._resultFormatFailed, this)) : (this._result = b || this._rawResult, this._sendComplete());
break;
case"progress":
this._sendProgress(a);
break;
case"error":
this._sendError(a);
break;
case"loadstart":
this._sendLoadStart();
break;
case"abort":
case"timeout":
this._isCanceled() || this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_" + a.type.toUpperCase() + "_ERROR"))
}
}, a._resultFormatSuccess = function (a) {
this._result = a, this._sendComplete()
}, a._resultFormatFailed = function (a) {
this._sendError(a)
}, a.buildPath = function (a, b) {
return createjs.RequestUtils.buildPath(a, b)
}, a.toString = function () {
return "[PreloadJS AbstractLoader]"
}, createjs.AbstractLoader = createjs.promote(AbstractLoader, "EventDispatcher")
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function AbstractMediaLoader(a, b, c) {
this.AbstractLoader_constructor(a, b, c), this.resultFormatter = this._formatResult, this._tagSrcAttribute = "src", this.on("initialize", this._updateXHR, this)
}
var a = createjs.extend(AbstractMediaLoader, createjs.AbstractLoader);
a.load = function () {
this._tag || (this._tag = this._createTag(this._item.src)), this._tag.preload = "auto", this._tag.load(), this.AbstractLoader_load()
}, a._createTag = function () {
}, a._createRequest = function () {
this._request = this._preferXHR ? new createjs.XHRRequest(this._item) : new createjs.MediaTagRequest(this._item, this._tag || this._createTag(), this._tagSrcAttribute)
}, a._updateXHR = function (a) {
a.loader.setResponseType && a.loader.setResponseType("blob")
}, a._formatResult = function (a) {
if (this._tag.removeEventListener && this._tag.removeEventListener("canplaythrough", this._loadedHandler), this._tag.onstalled = null, this._preferXHR) {
var b = window.URL || window.webkitURL, c = a.getResult(!0);
a.getTag().src = b.createObjectURL(c)
}
return a.getTag()
}, createjs.AbstractMediaLoader = createjs.promote(AbstractMediaLoader, "AbstractLoader")
}(), window.createjs = window.createjs || {}, function () {
"use strict";
var AbstractRequest = function (a) {
this._item = a
}, a = createjs.extend(AbstractRequest, createjs.EventDispatcher);
a.load = function () {
}, a.destroy = function () {
}, a.cancel = function () {
}, createjs.AbstractRequest = createjs.promote(AbstractRequest, "EventDispatcher")
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function TagRequest(a, b, c) {
this.AbstractRequest_constructor(a), this._tag = b, this._tagSrcAttribute = c, this._loadedHandler = createjs.proxy(this._handleTagComplete, this), this._addedToDOM = !1, this._startTagVisibility = null
}
var a = createjs.extend(TagRequest, createjs.AbstractRequest);
a.load = function () {
this._tag.onload = createjs.proxy(this._handleTagComplete, this), this._tag.onreadystatechange = createjs.proxy(this._handleReadyStateChange, this), this._tag.onerror = createjs.proxy(this._handleError, this);
var a = new createjs.Event("initialize");
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)
}, a.destroy = function () {
this._clean(), this._tag = null, this.AbstractRequest_destroy()
}, a._handleReadyStateChange = function () {
clearTimeout(this._loadTimeout);
var a = this._tag;
("loaded" == a.readyState || "complete" == a.readyState) && this._handleTagComplete()
}, a._handleError = function () {
this._clean(), this.dispatchEvent("error")
}, a._handleTagComplete = function () {
this._rawResult = this._tag, this._result = this.resultFormatter && this.resultFormatter(this) || this._rawResult, this._clean(), this._showTag(), this.dispatchEvent("complete")
}, a._handleTimeout = function () {
this._clean(), this.dispatchEvent(new createjs.Event("timeout"))
}, a._clean = function () {
this._tag.onload = null, this._tag.onreadystatechange = null, this._tag.onerror = null, this._addedToDOM && null != this._tag.parentNode && this._tag.parentNode.removeChild(this._tag), clearTimeout(this._loadTimeout)
}, a._hideTag = function () {
this._startTagVisibility = this._tag.style.visibility, this._tag.style.visibility = "hidden"
}, a._showTag = function () {
this._tag.style.visibility = this._startTagVisibility
}, a._handleStalled = function () {
}, createjs.TagRequest = createjs.promote(TagRequest, "AbstractRequest")
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function MediaTagRequest(a, b, c) {
this.AbstractRequest_constructor(a), this._tag = b, this._tagSrcAttribute = c, this._loadedHandler = createjs.proxy(this._handleTagComplete, this)
}
var a = createjs.extend(MediaTagRequest, createjs.TagRequest);
a.load = function () {
var a = createjs.proxy(this._handleStalled, this);
this._stalledCallback = a;
var b = createjs.proxy(this._handleProgress, this);
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()
}, a._handleReadyStateChange = function () {
clearTimeout(this._loadTimeout);
var a = this._tag;
("loaded" == a.readyState || "complete" == a.readyState) && this._handleTagComplete()
}, a._handleStalled = function () {
}, a._handleProgress = function (a) {
if (a && !(a.loaded > 0 && 0 == a.total)) {
var b = new createjs.ProgressEvent(a.loaded, a.total);
this.dispatchEvent(b)
}
}, a._clean = function () {
this._tag.removeEventListener && this._tag.removeEventListener("canplaythrough", this._loadedHandler), this._tag.removeEventListener("stalled", this._stalledCallback), this._tag.removeEventListener("progress", this._progressCallback), this.TagRequest__clean()
}, createjs.MediaTagRequest = createjs.promote(MediaTagRequest, "TagRequest")
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function XHRRequest(a) {
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)
}
var a = createjs.extend(XHRRequest, createjs.AbstractRequest);
XHRRequest.ACTIVEX_VERSIONS = ["Msxml2.XMLHTTP.6.0", "Msxml2.XMLHTTP.5.0", "Msxml2.XMLHTTP.4.0", "MSXML2.XMLHTTP.3.0", "MSXML2.XMLHTTP", "Microsoft.XMLHTTP"], a.getResult = function (a) {
return a && this._rawResponse ? this._rawResponse : this._response
}, a.cancel = function () {
this.canceled = !0, this._clean(), this._request.abort()
}, a.load = function () {
if (null == this._request)return void this._handleError();
null != this._request.addEventListener ? (this._request.addEventListener("loadstart", this._handleLoadStartProxy, !1), this._request.addEventListener("progress", this._handleProgressProxy, !1), this._request.addEventListener("abort", this._handleAbortProxy, !1), this._request.addEventListener("error", this._handleErrorProxy, !1), this._request.addEventListener("timeout", this._handleTimeoutProxy, !1), this._request.addEventListener("load", this._handleLoadProxy, !1), this._request.addEventListener("readystatechange", this._handleReadyStateChangeProxy, !1)) : (this._request.onloadstart = this._handleLoadStartProxy, this._request.onprogress = this._handleProgressProxy, this._request.onabort = this._handleAbortProxy, this._request.onerror = this._handleErrorProxy, this._request.ontimeout = this._handleTimeoutProxy, this._request.onload = this._handleLoadProxy, this._request.onreadystatechange = this._handleReadyStateChangeProxy), 1 == this._xhrLevel && (this._loadTimeout = setTimeout(createjs.proxy(this._handleTimeout, this), this._item.loadTimeout));
try {
this._item.values && this._item.method != createjs.AbstractLoader.GET ? this._item.method == createjs.AbstractLoader.POST && this._request.send(createjs.RequestUtils.formatQueryString(this._item.values)) : this._request.send()
} catch (a) {
this.dispatchEvent(new createjs.ErrorEvent("XHR_SEND", null, a))
}
}, a.setResponseType = function (a) {
"blob" === a && (a = window.URL ? "blob" : "arraybuffer", this._responseType = a), this._request.responseType = a
}, a.getAllResponseHeaders = function () {
return this._request.getAllResponseHeaders instanceof Function ? this._request.getAllResponseHeaders() : null
}, a.getResponseHeader = function (a) {
return this._request.getResponseHeader instanceof Function ? this._request.getResponseHeader(a) : null
}, a._handleProgress = function (a) {
if (a && !(a.loaded > 0 && 0 == a.total)) {
var b = new createjs.ProgressEvent(a.loaded, a.total);
this.dispatchEvent(b)
}
}, a._handleLoadStart = function () {
clearTimeout(this._loadTimeout), this.dispatchEvent("loadstart")
}, a._handleAbort = function (a) {
this._clean(), this.dispatchEvent(new createjs.ErrorEvent("XHR_ABORTED", null, a))
}, a._handleError = function (a) {
this._clean(), this.dispatchEvent(new createjs.ErrorEvent(a.message))
}, a._handleReadyStateChange = function () {
4 == this._request.readyState && this._handleLoad()
}, a._handleLoad = function () {
if (!this.loaded) {
this.loaded = !0;
var a = this._checkError();
if (a)return void this._handleError(a);
if (this._response = this._getResponse(), "arraybuffer" === this._responseType)try {
this._response = new Blob([this._response])
} catch (b) {
if (window.BlobBuilder = window.BlobBuilder || window.WebKitBlobBuilder || window.MozBlobBuilder || window.MSBlobBuilder, "TypeError" === b.name && window.BlobBuilder) {
var c = new BlobBuilder;
c.append(this._response), this._response = c.getBlob()
}
}
this._clean(), this.dispatchEvent(new createjs.Event("complete"))
}
}, a._handleTimeout = function (a) {
this._clean(), this.dispatchEvent(new createjs.ErrorEvent("PRELOAD_TIMEOUT", null, a))
}, a._checkError = function () {
var a = parseInt(this._request.status);
switch (a) {
case 404:
case 0:
return new Error(a)
}
return null
}, a._getResponse = function () {
if (null != this._response)return this._response;
if (null != this._request.response)return this._request.response;
try {
if (null != this._request.responseText)return this._request.responseText
} catch (a) {
}
try {
if (null != this._request.responseXML)return this._request.responseXML
} catch (a) {
}
return null
}, a._createXHR = function (a) {
var b = createjs.RequestUtils.isCrossDomain(a), c = {}, d = null;
if (window.XMLHttpRequest) d = new XMLHttpRequest, b && void 0 === d.withCredentials && window.XDomainRequest && (d = new XDomainRequest); else {
for (var e = 0, f = s.ACTIVEX_VERSIONS.length; f > e; e++) {
var g = s.ACTIVEX_VERSIONS[e];
try {
d = new ActiveXObject(g);
break
} catch (h) {
}
}
if (null == d)return !1
}
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;
var i = null;
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];
for (j in c)d.setRequestHeader(j, c[j]);
return d instanceof XMLHttpRequest && void 0 !== a.withCredentials && (d.withCredentials = a.withCredentials), this._request = d, !0
}, a._clean = function () {
clearTimeout(this._loadTimeout), null != this._request.removeEventListener ? (this._request.removeEventListener("loadstart", this._handleLoadStartProxy), this._request.removeEventListener("progress", this._handleProgressProxy), this._request.removeEventListener("abort", this._handleAbortProxy), this._request.removeEventListener("error", this._handleErrorProxy), this._request.removeEventListener("timeout", this._handleTimeoutProxy), this._request.removeEventListener("load", this._handleLoadProxy), this._request.removeEventListener("readystatechange", this._handleReadyStateChangeProxy)) : (this._request.onloadstart = null, this._request.onprogress = null, this._request.onabort = null, this._request.onerror = null, this._request.ontimeout = null, this._request.onload = null, this._request.onreadystatechange = null)
}, a.toString = function () {
return "[PreloadJS XHRRequest]"
}, createjs.XHRRequest = createjs.promote(XHRRequest, "AbstractRequest")
}(), window.createjs = window.createjs || {}, function () {
"use strict";
function LoadQueue(a, b, c) {
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)
}
var a = createjs.extend(LoadQueue, createjs.AbstractLoader), b = LoadQueue;
a.init = function (a, b, c) {
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 = 0 / 0
}, b.loadTimeout = 8e3, b.LOAD_TIMEOUT = 0, b.BINARY = createjs.AbstractLoader.BINARY, b.CSS = createjs.AbstractLoader.CSS, b.IMAGE = createjs.AbstractLoader.IMAGE, b.JAVASCRIPT = createjs.AbstractLoader.JAVASCRIPT, b.JSON = createjs.AbstractLoader.JSON, b.JSONP = createjs.AbstractLoader.JSONP, b.MANIFEST = createjs.AbstractLoader.MANIFEST, b.SOUND = createjs.AbstractLoader.SOUND, b.VIDEO = createjs.AbstractLoader.VIDEO, b.SVG = createjs.AbstractLoader.SVG, b.TEXT = createjs.AbstractLoader.TEXT, b.XML = createjs.AbstractLoader.XML, b.POST = createjs.AbstractLoader.POST, b.GET = createjs.AbstractLoader.