diff --git "a/jsnew_image-upscaler.js" "b/jsnew_image-upscaler.js" new file mode 100644--- /dev/null +++ "b/jsnew_image-upscaler.js" @@ -0,0 +1,3544 @@ +"use strict"; +var _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) { + return typeof e +} : function(e) { + return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e +}; +! function(e, t) { + "object" == ("undefined" == typeof module ? "undefined" : _typeof(module)) && "object" == _typeof(module.exports) ? module.exports = e.document ? t(e, !0) : function(e) { + if (!e.document) throw new Error("jQuery requires a window with a document"); + return t(e) + } : t(e) +}("undefined" != typeof window ? window : void 0, function(h, e) { + function t(e, t) { + return t.toUpperCase() + } + var n = [], + u = n.slice, + g = n.concat, + a = n.push, + o = n.indexOf, + i = {}, + r = i.toString, + m = i.hasOwnProperty, + v = {}, + y = h.document, + s = "2.1.1 -css/hiddenVisibleSelectors,-effects/animatedSelector", + w = function e(t, n) { + return new e.fn.init(t, n) + }, + l = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g, + c = /^-ms-/, + d = /-([\da-z])/gi; + + function f(e) { + var t = e.length, + n = w.type(e); + return "function" !== n && !w.isWindow(e) && (!(1 !== e.nodeType || !t) || ("array" === n || 0 === t || "number" == typeof t && 0 < t && t - 1 in e)) + } + w.fn = w.prototype = { + jquery: s, + constructor: w, + selector: "", + length: 0, + toArray: function() { + return u.call(this) + }, + get: function(e) { + return null != e ? e < 0 ? this[e + this.length] : this[e] : u.call(this) + }, + pushStack: function(e) { + e = w.merge(this.constructor(), e); + return e.prevObject = this, e.context = this.context, e + }, + each: function(e, t) { + return w.each(this, e, t) + }, + map: function(n) { + return this.pushStack(w.map(this, function(e, t) { + return n.call(e, t, e) + })) + }, + slice: function() { + return this.pushStack(u.apply(this, arguments)) + }, + first: function() { + return this.eq(0) + }, + last: function() { + return this.eq(-1) + }, + eq: function(e) { + var t = this.length, + e = +e + (e < 0 ? t : 0); + return this.pushStack(0 <= e && e < t ? [this[e]] : []) + }, + end: function() { + return this.prevObject || this.constructor(null) + }, + push: a, + sort: n.sort, + splice: n.splice + }, w.extend = w.fn.extend = function() { + var e, t, n, i, o, r = arguments[0] || {}, + s = 1, + a = arguments.length, + l = !1; + for ("boolean" == typeof r && (l = r, r = arguments[s] || {}, s++), "object" == (void 0 === r ? "undefined" : _typeof(r)) || w.isFunction(r) || (r = {}), s === a && (r = this, s--); s < a; s++) + if (null != (e = arguments[s])) + for (t in e) o = r[t], r !== (n = e[t]) && (l && n && (w.isPlainObject(n) || (i = w.isArray(n))) ? (o = i ? (i = !1, o && w.isArray(o) ? o : []) : o && w.isPlainObject(o) ? o : {}, r[t] = w.extend(l, o, n)) : void 0 !== n && (r[t] = n)); + return r + }, w.extend({ + expando: "jQuery" + (s + Math.random()).replace(/\D/g, ""), + isReady: !0, + error: function(e) { + throw new Error(e) + }, + noop: function() {}, + isFunction: function(e) { + return "function" === w.type(e) + }, + isArray: Array.isArray, + isWindow: function(e) { + return null != e && e === e.window + }, + isNumeric: function(e) { + return !w.isArray(e) && 0 <= e - parseFloat(e) + }, + isPlainObject: function(e) { + return "object" === w.type(e) && !e.nodeType && !w.isWindow(e) && !(e.constructor && !m.call(e.constructor.prototype, "isPrototypeOf")) + }, + isEmptyObject: function(e) { + for (var t in e) return !1; + return !0 + }, + type: function(e) { + return null == e ? e + "" : "object" == (void 0 === e ? "undefined" : _typeof(e)) || "function" == typeof e ? i[r.call(e)] || "object" : void 0 === e ? "undefined" : _typeof(e) + }, + globalEval: function(e) { + var t, n = eval; + (e = w.trim(e)) && (1 === e.indexOf("use strict") ? ((t = y.createElement("script")).text = e, y.head.appendChild(t).parentNode.removeChild(t)) : n(e)) + }, + camelCase: function(e) { + return e.replace(c, "ms-").replace(d, t) + }, + nodeName: function(e, t) { + return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() + }, + each: function(e, t, n) { + var i = 0, + o = e.length, + r = f(e); + if (n) { + if (r) + for (; i < o && !1 !== t.apply(e[i], n); i++); + else + for (i in e) + if (!1 === t.apply(e[i], n)) break + } else if (r) + for (; i < o && !1 !== t.call(e[i], i, e[i]); i++); + else + for (i in e) + if (!1 === t.call(e[i], i, e[i])) break; + return e + }, + trim: function(e) { + return null == e ? "" : (e + "").replace(l, "") + }, + makeArray: function(e, t) { + t = t || []; + return null != e && (f(Object(e)) ? w.merge(t, "string" == typeof e ? [e] : e) : a.call(t, e)), t + }, + inArray: function(e, t, n) { + return null == t ? -1 : o.call(t, e, n) + }, + merge: function(e, t) { + for (var n = +t.length, i = 0, o = e.length; i < n; i++) e[o++] = t[i]; + return e.length = o, e + }, + grep: function(e, t, n) { + for (var i = [], o = 0, r = e.length, s = !n; o < r; o++) !t(e[o], o) != s && i.push(e[o]); + return i + }, + map: function(e, t, n) { + var i, o = 0, + r = e.length, + s = []; + if (f(e)) + for (; o < r; o++) null != (i = t(e[o], o, n)) && s.push(i); + else + for (o in e) null != (i = t(e[o], o, n)) && s.push(i); + return g.apply([], s) + }, + guid: 1, + proxy: function(e, t) { + var n, i; + return "string" == typeof t && (i = e[t], t = e, e = i), w.isFunction(e) ? (n = u.call(arguments, 2), (i = function() { + return e.apply(t || this, n.concat(u.call(arguments))) + }).guid = e.guid = e.guid || w.guid++, i) : void 0 + }, + now: Date.now, + support: v + }), w.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(e, t) { + i["[object " + t + "]"] = t.toLowerCase() + }); + + function p(e, t) { + if (e === t) return b = !0, 0; + var n = t.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(t); + return n ? 1 & n ? e === y || w.contains(y, e) ? -1 : t === y || w.contains(y, t) ? 1 : 0 : 4 & n ? -1 : 1 : e.compareDocumentPosition ? -1 : 1 + } + var b, x = (Dt = h.document.documentElement).matches || Dt.webkitMatchesSelector || Dt.mozMatchesSelector || Dt.oMatchesSelector || Dt.msMatchesSelector; + w.extend({ + find: function(e, t, n, i) { + var o, r, s = 0; + if (n = n || [], !e || "string" != typeof e) return n; + if (1 !== (r = (t = t || y).nodeType) && 9 !== r) return []; + if (i) + for (; o = i[s++];) w.find.matchesSelector(o, e) && n.push(o); + else w.merge(n, t.querySelectorAll(e)); + return n + }, + unique: function(e) { + var t, n = [], + i = 0, + o = 0; + if (b = !1, e.sort(p), b) { + for (; t = e[i++];) t === e[i] && (o = n.push(i)); + for (; o--;) e.splice(n[o], 1) + } + return e + }, + text: function(e) { + var t, n = "", + i = 0, + o = e.nodeType; + if (o) { + if (1 === o || 9 === o || 11 === o) return e.textContent; + if (3 === o || 4 === o) return e.nodeValue + } else + for (; t = e[i++];) n += w.text(t); + return n + }, + contains: function(e, t) { + var n = 9 === e.nodeType ? e.documentElement : e, + t = t && t.parentNode; + return e === t || !(!t || 1 !== t.nodeType || !n.contains(t)) + }, + isXMLDoc: function(e) { + return "HTML" !== (e.ownerDocument || e).documentElement.nodeName + }, + expr: { + attrHandle: {}, + match: { + bool: /^(?:checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$/i, + needsContext: /^[\x20\t\r\n\f]*[>+~]/ + } + } + }), w.extend(w.find, { + matches: function(e, t) { + return w.find(e, null, null, t) + }, + matchesSelector: function(e, t) { + return x.call(e, t) + }, + attr: function(e, t) { + return e.getAttribute(t) + } + }); + var $ = w.expr.match.needsContext, + _ = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, + C = /^.[^:#\[\.,]*$/; + + function T(e, n, i) { + if (w.isFunction(n)) return w.grep(e, function(e, t) { + return !!n.call(e, t, e) !== i + }); + if (n.nodeType) return w.grep(e, function(e) { + return e === n !== i + }); + if ("string" == typeof n) { + if (C.test(n)) return w.filter(n, e, i); + n = w.filter(n, e) + } + return w.grep(e, function(e) { + return 0 <= o.call(n, e) !== i + }) + } + w.filter = function(e, t, n) { + var i = t[0]; + return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === i.nodeType ? w.find.matchesSelector(i, e) ? [i] : [] : w.find.matches(e, w.grep(t, function(e) { + return 1 === e.nodeType + })) + }, w.fn.extend({ + find: function(e) { + var t, n = this.length, + i = [], + o = this; + if ("string" != typeof e) return this.pushStack(w(e).filter(function() { + for (t = 0; t < n; t++) + if (w.contains(o[t], this)) return !0 + })); + for (t = 0; t < n; t++) w.find(e, o[t], i); + return (i = this.pushStack(1 < n ? w.unique(i) : i)).selector = this.selector ? this.selector + " " + e : e, i + }, + filter: function(e) { + return this.pushStack(T(this, e || [], !1)) + }, + not: function(e) { + return this.pushStack(T(this, e || [], !0)) + }, + is: function(e) { + return !!T(this, "string" == typeof e && $.test(e) ? w(e) : e || [], !1).length + } + }); + var k, j = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/; + (w.fn.init = function(e, t) { + var n, i; + if (!e) return this; + if ("string" != typeof e) return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : w.isFunction(e) ? void 0 !== k.ready ? k.ready(e) : e(w) : (void 0 !== e.selector && (this.selector = e.selector, this.context = e.context), w.makeArray(e, this)); + if (!(n = "<" === e[0] && ">" === e[e.length - 1] && 3 <= e.length ? [null, e, null] : j.exec(e)) || !n[1] && t) return (!t || t.jquery ? t || k : this.constructor(t)).find(e); + if (n[1]) { + if (t = t instanceof w ? t[0] : t, w.merge(this, w.parseHTML(n[1], t && t.nodeType ? t.ownerDocument || t : y, !0)), _.test(n[1]) && w.isPlainObject(t)) + for (n in t) w.isFunction(this[n]) ? this[n](t[n]) : this.attr(n, t[n]); + return this + } + return (i = y.getElementById(n[2])) && i.parentNode && (this.length = 1, this[0] = i), this.context = y, this.selector = e, this + }).prototype = w.fn, k = w(y); + var q = /^(?:parents|prev(?:Until|All))/, + N = { + children: !0, + contents: !0, + next: !0, + prev: !0 + }; + + function E(e, t) { + for (; + (e = e[t]) && 1 !== e.nodeType;); + return e + } + w.extend({ + dir: function(e, t, n) { + for (var i = [], o = void 0 !== n; + (e = e[t]) && 9 !== e.nodeType;) + if (1 === e.nodeType) { + if (o && w(e).is(n)) break; + i.push(e) + } return i + }, + sibling: function(e, t) { + for (var n = []; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e); + return n + } + }), w.fn.extend({ + has: function(e) { + var t = w(e, this), + n = t.length; + return this.filter(function() { + for (var e = 0; e < n; e++) + if (w.contains(this, t[e])) return !0 + }) + }, + closest: function(e, t) { + for (var n, i = 0, o = this.length, r = [], s = $.test(e) || "string" != typeof e ? w(e, t || this.context) : 0; i < o; i++) + for (n = this[i]; n && n !== t; n = n.parentNode) + if (n.nodeType < 11 && (s ? -1 < s.index(n) : 1 === n.nodeType && w.find.matchesSelector(n, e))) { + r.push(n); + break + } return this.pushStack(1 < r.length ? w.unique(r) : r) + }, + index: function(e) { + return e ? "string" == typeof e ? o.call(w(e), this[0]) : o.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1 + }, + add: function(e, t) { + return this.pushStack(w.unique(w.merge(this.get(), w(e, t)))) + }, + addBack: function(e) { + return this.add(null == e ? this.prevObject : this.prevObject.filter(e)) + } + }), w.each({ + parent: function(e) { + e = e.parentNode; + return e && 11 !== e.nodeType ? e : null + }, + parents: function(e) { + return w.dir(e, "parentNode") + }, + parentsUntil: function(e, t, n) { + return w.dir(e, "parentNode", n) + }, + next: function(e) { + return E(e, "nextSibling") + }, + prev: function(e) { + return E(e, "previousSibling") + }, + nextAll: function(e) { + return w.dir(e, "nextSibling") + }, + prevAll: function(e) { + return w.dir(e, "previousSibling") + }, + nextUntil: function(e, t, n) { + return w.dir(e, "nextSibling", n) + }, + prevUntil: function(e, t, n) { + return w.dir(e, "previousSibling", n) + }, + siblings: function(e) { + return w.sibling((e.parentNode || {}).firstChild, e) + }, + children: function(e) { + return w.sibling(e.firstChild) + }, + contents: function(e) { + return e.contentDocument || w.merge([], e.childNodes) + } + }, function(i, o) { + w.fn[i] = function(e, t) { + var n = w.map(this, o, e); + return "Until" !== i.slice(-5) && (t = e), t && "string" == typeof t && (n = w.filter(t, n)), 1 < this.length && (N[i] || w.unique(n), q.test(i) && n.reverse()), this.pushStack(n) + } + }); + var S, D = /\S+/g, + A = {}; + + function L() { + y.removeEventListener("DOMContentLoaded", L, !1), h.removeEventListener("load", L, !1), w.ready() + } + w.Callbacks = function(o) { + var e, n; + o = "string" == typeof o ? A[o] || (n = A[e = o] = {}, w.each(e.match(D) || [], function(e, t) { + n[t] = !0 + }), n) : w.extend({}, o); + + function i(e) { + for (t = o.memory && e, r = !0, c = a || 0, a = 0, l = u.length, s = !0; u && c < l; c++) + if (!1 === u[c].apply(e[0], e[1]) && o.stopOnFalse) { + t = !1; + break + } s = !1, u && (d ? d.length && i(d.shift()) : t ? u = [] : f.disable()) + } + var t, r, s, a, l, c, u = [], + d = !o.once && [], + f = { + add: function() { + var e; + return u && (e = u.length, function i(e) { + w.each(e, function(e, t) { + var n = w.type(t); + "function" === n ? o.unique && f.has(t) || u.push(t) : t && t.length && "string" !== n && i(t) + }) + }(arguments), s ? l = u.length : t && (a = e, i(t))), this + }, + remove: function() { + return u && w.each(arguments, function(e, t) { + for (var n; - 1 < (n = w.inArray(t, u, n));) u.splice(n, 1), s && (n <= l && l--, n <= c && c--) + }), this + }, + has: function(e) { + return e ? -1 < w.inArray(e, u) : !(!u || !u.length) + }, + empty: function() { + return u = [], l = 0, this + }, + disable: function() { + return u = d = t = void 0, this + }, + disabled: function() { + return !u + }, + lock: function() { + return d = void 0, t || f.disable(), this + }, + locked: function() { + return !d + }, + fireWith: function(e, t) { + return !u || r && !d || (t = [e, (t = t || []).slice ? t.slice() : t], s ? d.push(t) : i(t)), this + }, + fire: function() { + return f.fireWith(this, arguments), this + }, + fired: function() { + return !!r + } + }; + return f + }, w.extend({ + Deferred: function(e) { + var r = [ + ["resolve", "done", w.Callbacks("once memory"), "resolved"], + ["reject", "fail", w.Callbacks("once memory"), "rejected"], + ["notify", "progress", w.Callbacks("memory")] + ], + o = "pending", + s = { + state: function() { + return o + }, + always: function() { + return a.done(arguments).fail(arguments), this + }, + then: function() { + var o = arguments; + return w.Deferred(function(i) { + w.each(r, function(e, t) { + var n = w.isFunction(o[e]) && o[e]; + a[t[1]](function() { + var e = n && n.apply(this, arguments); + e && w.isFunction(e.promise) ? e.promise().done(i.resolve).fail(i.reject).progress(i.notify) : i[t[0] + "With"](this === s ? i.promise() : this, n ? [e] : arguments) + }) + }), o = null + }).promise() + }, + promise: function(e) { + return null != e ? w.extend(e, s) : s + } + }, + a = {}; + return s.pipe = s.then, w.each(r, function(e, t) { + var n = t[2], + i = t[3]; + s[t[1]] = n.add, i && n.add(function() { + o = i + }, r[1 ^ e][2].disable, r[2][2].lock), a[t[0]] = function() { + return a[t[0] + "With"](this === a ? s : this, arguments), this + }, a[t[0] + "With"] = n.fireWith + }), s.promise(a), e && e.call(a, a), a + }, + when: function(e) { + function t(t, n, i) { + return function(e) { + n[t] = this, i[t] = 1 < arguments.length ? u.call(arguments) : e, i === o ? c.notifyWith(n, i) : --l || c.resolveWith(n, i) + } + } + var o, n, i, r = 0, + s = u.call(arguments), + a = s.length, + l = 1 !== a || e && w.isFunction(e.promise) ? a : 0, + c = 1 === l ? e : w.Deferred(); + if (1 < a) + for (o = new Array(a), n = new Array(a), i = new Array(a); r < a; r++) s[r] && w.isFunction(s[r].promise) ? s[r].promise().done(t(r, i, s)).fail(c.reject).progress(t(r, n, o)) : --l; + return l || c.resolveWith(i, s), c.promise() + } + }), w.fn.ready = function(e) { + return w.ready.promise().done(e), this + }, w.extend({ + isReady: !1, + readyWait: 1, + holdReady: function(e) { + e ? w.readyWait++ : w.ready(!0) + }, + ready: function(e) { + (!0 === e ? --w.readyWait : w.isReady) || ((w.isReady = !0) !== e && 0 < --w.readyWait || (S.resolveWith(y, [w]), w.fn.triggerHandler && (w(y).triggerHandler("ready"), w(y).off("ready")))) + } + }), w.ready.promise = function(e) { + return S || (S = w.Deferred(), "complete" === y.readyState ? setTimeout(w.ready) : (y.addEventListener("DOMContentLoaded", L, !1), h.addEventListener("load", L, !1))), S.promise(e) + }, w.ready.promise(); + var O = w.access = function(e, t, n, i, o, r, s) { + var a = 0, + l = e.length, + c = null == n; + if ("object" === w.type(n)) + for (a in o = !0, n) w.access(e, t, a, n[a], !0, r, s); + else if (void 0 !== i && (o = !0, w.isFunction(i) || (s = !0), c && (t = s ? (t.call(e, i), null) : (c = t, function(e, t, n) { + return c.call(w(e), n) + })), t)) + for (; a < l; a++) t(e[a], n, s ? i : i.call(e[a], a, t(e[a], n))); + return o ? e : c ? t.call(e) : l ? t(e[0], n) : r + }; + + function P() { + Object.defineProperty(this.cache = {}, 0, { + get: function() { + return {} + } + }), this.expando = w.expando + Math.random() + } + w.acceptData = function(e) { + return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType + }, P.uid = 1, P.accepts = w.acceptData, P.prototype = { + key: function(t) { + if (!P.accepts(t)) return 0; + var n = {}, + i = t[this.expando]; + if (!i) { + i = P.uid++; + try { + n[this.expando] = { + value: i + }, Object.defineProperties(t, n) + } catch (e) { + n[this.expando] = i, w.extend(t, n) + } + } + return this.cache[i] || (this.cache[i] = {}), i + }, + set: function(e, t, n) { + var i, e = this.key(e), + o = this.cache[e]; + if ("string" == typeof t) o[t] = n; + else if (w.isEmptyObject(o)) w.extend(this.cache[e], t); + else + for (i in t) o[i] = t[i]; + return o + }, + get: function(e, t) { + e = this.cache[this.key(e)]; + return void 0 === t ? e : e[t] + }, + access: function(e, t, n) { + var i; + return void 0 === t || t && "string" == typeof t && void 0 === n ? void 0 !== (i = this.get(e, t)) ? i : this.get(e, w.camelCase(t)) : (this.set(e, t, n), void 0 !== n ? n : t) + }, + remove: function(e, t) { + var n, i, e = this.key(e), + o = this.cache[e]; + if (void 0 === t) this.cache[e] = {}; + else { + n = (i = w.isArray(t) ? t.concat(t.map(w.camelCase)) : (e = w.camelCase(t), t in o ? [t, e] : (i = e) in o ? [i] : i.match(D) || [])).length; + for (; n--;) delete o[i[n]] + } + }, + hasData: function(e) { + return !w.isEmptyObject(this.cache[e[this.expando]] || {}) + }, + discard: function(e) { + e[this.expando] && delete this.cache[e[this.expando]] + } + }; + var H = new P, + M = new P, + I = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, + F = /([A-Z])/g; + + function R(e, t, n) { + var i; + if (void 0 === n && 1 === e.nodeType) + if (i = "data-" + t.replace(F, "-$1").toLowerCase(), "string" == typeof(n = e.getAttribute(i))) { + try { + n = "true" === n || "false" !== n && ("null" === n ? null : +n + "" === n ? +n : I.test(n) ? w.parseJSON(n) : n) + } catch (e) {} + M.set(e, t, n) + } else n = void 0; + return n + } + w.extend({ + hasData: function(e) { + return M.hasData(e) || H.hasData(e) + }, + data: function(e, t, n) { + return M.access(e, t, n) + }, + removeData: function(e, t) { + M.remove(e, t) + }, + _data: function(e, t, n) { + return H.access(e, t, n) + }, + _removeData: function(e, t) { + H.remove(e, t) + } + }), w.fn.extend({ + data: function(i, e) { + var t, n, o, r = this[0], + s = r && r.attributes; + if (void 0 !== i) return "object" == (void 0 === i ? "undefined" : _typeof(i)) ? this.each(function() { + M.set(this, i) + }) : O(this, function(t) { + var e, n = w.camelCase(i); + if (r && void 0 === t) return void 0 !== (e = M.get(r, i)) || void 0 !== (e = M.get(r, n)) ? e : void 0 !== (e = R(r, n, void 0)) ? e : void 0; + this.each(function() { + var e = M.get(this, n); + M.set(this, n, t), -1 !== i.indexOf("-") && void 0 !== e && M.set(this, i, t) + }) + }, null, e, 1 < arguments.length, null, !0); + if (this.length && (o = M.get(r), 1 === r.nodeType && !H.get(r, "hasDataAttrs"))) { + for (t = s.length; t--;) s[t] && (0 === (n = s[t].name).indexOf("data-") && (n = w.camelCase(n.slice(5)), R(r, n, o[n]))); + H.set(r, "hasDataAttrs", !0) + } + return o + }, + removeData: function(e) { + return this.each(function() { + M.remove(this, e) + }) + } + }), w.extend({ + queue: function(e, t, n) { + var i; + return e ? (t = (t || "fx") + "queue", i = H.get(e, t), n && (!i || w.isArray(n) ? i = H.access(e, t, w.makeArray(n)) : i.push(n)), i || []) : void 0 + }, + dequeue: function(e, t) { + t = t || "fx"; + var n = w.queue(e, t), + i = n.length, + o = n.shift(), + r = w._queueHooks(e, t); + "inprogress" === o && (o = n.shift(), i--), o && ("fx" === t && n.unshift("inprogress"), delete r.stop, o.call(e, function() { + w.dequeue(e, t) + }, r)), !i && r && r.empty.fire() + }, + _queueHooks: function(e, t) { + var n = t + "queueHooks"; + return H.get(e, n) || H.access(e, n, { + empty: w.Callbacks("once memory").add(function() { + H.remove(e, [t + "queue", n]) + }) + }) + } + }), w.fn.extend({ + queue: function(t, n) { + var e = 2; + return "string" != typeof t && (n = t, t = "fx", e--), arguments.length < e ? w.queue(this[0], t) : void 0 === n ? this : this.each(function() { + var e = w.queue(this, t, n); + w._queueHooks(this, t), "fx" === t && "inprogress" !== e[0] && w.dequeue(this, t) + }) + }, + dequeue: function(e) { + return this.each(function() { + w.dequeue(this, e) + }) + }, + clearQueue: function(e) { + return this.queue(e || "fx", []) + }, + promise: function(e, t) { + function n() { + --o || r.resolveWith(s, [s]) + } + var i, o = 1, + r = w.Deferred(), + s = this, + a = this.length; + for ("string" != typeof e && (t = e, e = void 0), e = e || "fx"; a--;)(i = H.get(s[a], e + "queueHooks")) && i.empty && (o++, i.empty.add(n)); + return n(), r.promise(t) + } + }); + + function W(e, t) { + return e = t || e, "none" === w.css(e, "display") || !w.contains(e.ownerDocument, e) + } + var z = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, + B = ["Top", "Right", "Bottom", "Left"], + X = /^(?:checkbox|radio)$/i; + n = y.createDocumentFragment().appendChild(y.createElement("div")), (s = y.createElement("input")).setAttribute("type", "radio"), s.setAttribute("checked", "checked"), s.setAttribute("name", "t"), n.appendChild(s), v.checkClone = n.cloneNode(!0).cloneNode(!0).lastChild.checked, n.innerHTML = "", v.noCloneChecked = !!n.cloneNode(!0).lastChild.defaultValue; + var Q = "undefined"; + v.focusinBubbles = "onfocusin" in h; + var U = /^key/, + V = /^(?:mouse|pointer|contextmenu)|click/, + Y = /^(?:focusinfocus|focusoutblur)$/, + G = /^([^.]*)(?:\.(.+)|)$/; + + function J() { + return !0 + } + + function K() { + return !1 + } + + function Z() { + try { + return y.activeElement + } catch (e) {} + } + w.event = { + global: {}, + add: function(t, e, n, i, o) { + var r, s, a, l, c, u, d, f, p, h = H.get(t); + if (h) + for (n.handler && (n = (r = n).handler, o = r.selector), n.guid || (n.guid = w.guid++), (a = h.events) || (a = h.events = {}), (s = h.handle) || (s = h.handle = function(e) { + return (void 0 === w ? "undefined" : _typeof(w)) !== Q && w.event.triggered !== e.type ? w.event.dispatch.apply(t, arguments) : void 0 + }), l = (e = (e || "").match(D) || [""]).length; l--;) d = p = (c = G.exec(e[l]) || [])[1], f = (c[2] || "").split(".").sort(), d && (u = w.event.special[d] || {}, d = (o ? u.delegateType : u.bindType) || d, u = w.event.special[d] || {}, c = w.extend({ + type: d, + origType: p, + data: i, + handler: n, + guid: n.guid, + selector: o, + needsContext: o && w.expr.match.needsContext.test(o), + namespace: f.join(".") + }, r), (p = a[d]) || ((p = a[d] = []).delegateCount = 0, u.setup && !1 !== u.setup.call(t, i, f, s) || t.addEventListener && t.addEventListener(d, s, !1)), u.add && (u.add.call(t, c), c.handler.guid || (c.handler.guid = n.guid)), o ? p.splice(p.delegateCount++, 0, c) : p.push(c), w.event.global[d] = !0) + }, + remove: function(e, t, n, i, o) { + var r, s, a, l, c, u, d, f, p, h, g, m = H.hasData(e) && H.get(e); + if (m && (l = m.events)) { + for (c = (t = (t || "").match(D) || [""]).length; c--;) + if (p = g = (a = G.exec(t[c]) || [])[1], h = (a[2] || "").split(".").sort(), p) { + for (d = w.event.special[p] || {}, f = l[p = (i ? d.delegateType : d.bindType) || p] || [], a = a[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), s = r = f.length; r--;) u = f[r], !o && g !== u.origType || n && n.guid !== u.guid || a && !a.test(u.namespace) || i && i !== u.selector && ("**" !== i || !u.selector) || (f.splice(r, 1), u.selector && f.delegateCount--, d.remove && d.remove.call(e, u)); + s && !f.length && (d.teardown && !1 !== d.teardown.call(e, h, m.handle) || w.removeEvent(e, p, m.handle), delete l[p]) + } else + for (p in l) w.event.remove(e, p + t[c], n, i, !0); + w.isEmptyObject(l) && (delete m.handle, H.remove(e, "events")) + } + }, + trigger: function(e, t, n, i) { + var o, r, s, a, l, c, u = [n || y], + d = m.call(e, "type") ? e.type : e, + f = m.call(e, "namespace") ? e.namespace.split(".") : [], + p = r = n = n || y; + if (3 !== n.nodeType && 8 !== n.nodeType && !Y.test(d + w.event.triggered) && (0 <= d.indexOf(".") && (d = (f = d.split(".")).shift(), f.sort()), a = d.indexOf(":") < 0 && "on" + d, (e = e[w.expando] ? e : new w.Event(d, "object" == (void 0 === e ? "undefined" : _typeof(e)) && e)).isTrigger = i ? 2 : 3, e.namespace = f.join("."), e.namespace_re = e.namespace ? new RegExp("(^|\\.)" + f.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, e.result = void 0, e.target || (e.target = n), t = null == t ? [e] : w.makeArray(t, [e]), c = w.event.special[d] || {}, i || !c.trigger || !1 !== c.trigger.apply(n, t))) { + if (!i && !c.noBubble && !w.isWindow(n)) { + for (s = c.delegateType || d, Y.test(s + d) || (p = p.parentNode); p; p = p.parentNode) u.push(p), r = p; + r === (n.ownerDocument || y) && u.push(r.defaultView || r.parentWindow || h) + } + for (o = 0; + (p = u[o++]) && !e.isPropagationStopped();) e.type = 1 < o ? s : c.bindType || d, (l = (H.get(p, "events") || {})[e.type] && H.get(p, "handle")) && l.apply(p, t), (l = a && p[a]) && l.apply && w.acceptData(p) && (e.result = l.apply(p, t), !1 === e.result && e.preventDefault()); + return e.type = d, i || e.isDefaultPrevented() || c._default && !1 !== c._default.apply(u.pop(), t) || !w.acceptData(n) || a && w.isFunction(n[d]) && !w.isWindow(n) && ((r = n[a]) && (n[a] = null), n[w.event.triggered = d](), w.event.triggered = void 0, r && (n[a] = r)), e.result + } + }, + dispatch: function(e) { + e = w.event.fix(e); + var t, n, i, o, r, s = u.call(arguments), + a = (H.get(this, "events") || {})[e.type] || [], + l = w.event.special[e.type] || {}; + if ((s[0] = e).delegateTarget = this, !l.preDispatch || !1 !== l.preDispatch.call(this, e)) { + for (r = w.event.handlers.call(this, e, a), t = 0; + (i = r[t++]) && !e.isPropagationStopped();) + for (e.currentTarget = i.elem, n = 0; + (o = i.handlers[n++]) && !e.isImmediatePropagationStopped();) e.namespace_re && !e.namespace_re.test(o.namespace) || (e.handleObj = o, e.data = o.data, void 0 !== (o = ((w.event.special[o.origType] || {}).handle || o.handler).apply(i.elem, s)) && !1 === (e.result = o) && (e.preventDefault(), e.stopPropagation())); + return l.postDispatch && l.postDispatch.call(this, e), e.result + } + }, + handlers: function(e, t) { + var n, i, o, r, s = [], + a = t.delegateCount, + l = e.target; + if (a && l.nodeType && (!e.button || "click" !== e.type)) + for (; l !== this; l = l.parentNode || this) + if (!0 !== l.disabled || "click" !== e.type) { + for (i = [], n = 0; n < a; n++) void 0 === i[o = (r = t[n]).selector + " "] && (i[o] = r.needsContext ? 0 <= w(o, this).index(l) : w.find(o, this, null, [l]).length), i[o] && i.push(r); + i.length && s.push({ + elem: l, + handlers: i + }) + } return a < t.length && s.push({ + elem: this, + handlers: t.slice(a) + }), s + }, + props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), + fixHooks: {}, + keyHooks: { + props: "char charCode key keyCode".split(" "), + filter: function(e, t) { + return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e + } + }, + mouseHooks: { + props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "), + filter: function(e, t) { + var n, i, o = t.button; + return null == e.pageX && null != t.clientX && (n = (i = e.target.ownerDocument || y).documentElement, i = i.body, e.pageX = t.clientX + (n && n.scrollLeft || i && i.scrollLeft || 0) - (n && n.clientLeft || i && i.clientLeft || 0), e.pageY = t.clientY + (n && n.scrollTop || i && i.scrollTop || 0) - (n && n.clientTop || i && i.clientTop || 0)), e.which || void 0 === o || (e.which = 1 & o ? 1 : 2 & o ? 3 : 4 & o ? 2 : 0), e + } + }, + fix: function(e) { + if (e[w.expando]) return e; + var t, n, i, o = e.type, + r = e, + s = this.fixHooks[o]; + for (s || (this.fixHooks[o] = s = V.test(o) ? this.mouseHooks : U.test(o) ? this.keyHooks : {}), i = s.props ? this.props.concat(s.props) : this.props, e = new w.Event(r), t = i.length; t--;) e[n = i[t]] = r[n]; + return e.target || (e.target = y), 3 === e.target.nodeType && (e.target = e.target.parentNode), s.filter ? s.filter(e, r) : e + }, + special: { + load: { + noBubble: !0 + }, + focus: { + trigger: function() { + return this !== Z() && this.focus ? (this.focus(), !1) : void 0 + }, + delegateType: "focusin" + }, + blur: { + trigger: function() { + return this === Z() && this.blur ? (this.blur(), !1) : void 0 + }, + delegateType: "focusout" + }, + click: { + trigger: function() { + return "checkbox" === this.type && this.click && w.nodeName(this, "input") ? (this.click(), !1) : void 0 + }, + _default: function(e) { + return w.nodeName(e.target, "a") + } + }, + beforeunload: { + postDispatch: function(e) { + void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result) + } + } + }, + simulate: function(e, t, n, i) { + e = w.extend(new w.Event, n, { + type: e, + isSimulated: !0, + originalEvent: {} + }); + i ? w.event.trigger(e, null, t) : w.event.dispatch.call(t, e), e.isDefaultPrevented() && n.preventDefault() + } + }, w.removeEvent = function(e, t, n) { + e.removeEventListener && e.removeEventListener(t, n, !1) + }, w.Event = function(e, t) { + return this instanceof w.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && !1 === e.returnValue ? J : K) : this.type = e, t && w.extend(this, t), this.timeStamp = e && e.timeStamp || w.now(), void(this[w.expando] = !0)) : new w.Event(e, t) + }, w.Event.prototype = { + isDefaultPrevented: K, + isPropagationStopped: K, + isImmediatePropagationStopped: K, + preventDefault: function() { + var e = this.originalEvent; + this.isDefaultPrevented = J, e && e.preventDefault && e.preventDefault() + }, + stopPropagation: function() { + var e = this.originalEvent; + this.isPropagationStopped = J, e && e.stopPropagation && e.stopPropagation() + }, + stopImmediatePropagation: function() { + var e = this.originalEvent; + this.isImmediatePropagationStopped = J, e && e.stopImmediatePropagation && e.stopImmediatePropagation(), this.stopPropagation() + } + }, w.each({ + mouseenter: "mouseover", + mouseleave: "mouseout", + pointerenter: "pointerover", + pointerleave: "pointerout" + }, function(e, o) { + w.event.special[e] = { + delegateType: o, + bindType: o, + handle: function(e) { + var t, n = e.relatedTarget, + i = e.handleObj; + return n && (n === this || w.contains(this, n)) || (e.type = i.origType, t = i.handler.apply(this, arguments), e.type = o), t + } + } + }), v.focusinBubbles || w.each({ + focus: "focusin", + blur: "focusout" + }, function(n, i) { + function o(e) { + w.event.simulate(i, e.target, w.event.fix(e), !0) + } + w.event.special[i] = { + setup: function() { + var e = this.ownerDocument || this, + t = H.access(e, i); + t || e.addEventListener(n, o, !0), H.access(e, i, (t || 0) + 1) + }, + teardown: function() { + var e = this.ownerDocument || this, + t = H.access(e, i) - 1; + t ? H.access(e, i, t) : (e.removeEventListener(n, o, !0), H.remove(e, i)) + } + } + }), w.fn.extend({ + on: function(e, t, n, i, o) { + var r, s; + if ("object" == (void 0 === e ? "undefined" : _typeof(e))) { + for (s in "string" != typeof t && (n = n || t, t = void 0), e) this.on(s, t, n, e[s], o); + return this + } + if (null == n && null == i ? (i = t, n = t = void 0) : null == i && ("string" == typeof t ? (i = n, n = void 0) : (i = n, n = t, t = void 0)), !1 === i) i = K; + else if (!i) return this; + return 1 === o && (r = i, (i = function(e) { + return w().off(e), r.apply(this, arguments) + }).guid = r.guid || (r.guid = w.guid++)), this.each(function() { + w.event.add(this, e, i, n, t) + }) + }, + one: function(e, t, n, i) { + return this.on(e, t, n, i, 1) + }, + off: function(e, t, n) { + var i, o; + if (e && e.preventDefault && e.handleObj) return i = e.handleObj, w(e.delegateTarget).off(i.namespace ? i.origType + "." + i.namespace : i.origType, i.selector, i.handler), this; + if ("object" != (void 0 === e ? "undefined" : _typeof(e))) return !1 !== t && "function" != typeof t || (n = t, t = void 0), !1 === n && (n = K), this.each(function() { + w.event.remove(this, e, n, t) + }); + for (o in e) this.off(o, t, e[o]); + return this + }, + trigger: function(e, t) { + return this.each(function() { + w.event.trigger(e, t, this) + }) + }, + triggerHandler: function(e, t) { + var n = this[0]; + return n ? w.event.trigger(e, t, n, !0) : void 0 + } + }); + var ee = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, + te = /<([\w:]+)/, + ne = /<|&#?\w+;/, + ie = /<(?:script|style|link)/i, + oe = /checked\s*(?:[^=]|=\s*.checked.)/i, + re = /^$|\/(?:java|ecma)script/i, + se = /^true\/(.*)/, + ae = /^\s*\s*$/g, + le = { + option: [1, ""], + thead: [1, "", "
"], + col: [2, "", "
"], + tr: [2, "", "
"], + td: [3, "", "
"], + _default: [0, "", ""] + }; + + function ce(e, t) { + return w.nodeName(e, "table") && w.nodeName(11 !== t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e + } + + function ue(e) { + return e.type = (null !== e.getAttribute("type")) + "/" + e.type, e + } + + function de(e) { + var t = se.exec(e.type); + return t ? e.type = t[1] : e.removeAttribute("type"), e + } + + function fe(e, t) { + for (var n = 0, i = e.length; n < i; n++) H.set(e[n], "globalEval", !t || H.get(t[n], "globalEval")) + } + + function pe(e, t) { + var n, i, o, r, s, a; + if (1 === t.nodeType) { + if (H.hasData(e) && (r = H.access(e), s = H.set(t, r), a = r.events)) + for (o in delete s.handle, s.events = {}, a) + for (n = 0, i = a[o].length; n < i; n++) w.event.add(t, o, a[o][n]); + M.hasData(e) && (e = M.access(e), e = w.extend({}, e), M.set(t, e)) + } + } + + function he(e, t) { + var n = e.getElementsByTagName ? e.getElementsByTagName(t || "*") : e.querySelectorAll ? e.querySelectorAll(t || "*") : []; + return void 0 === t || t && w.nodeName(e, t) ? w.merge([e], n) : n + } + le.optgroup = le.option, le.tbody = le.tfoot = le.colgroup = le.caption = le.thead, le.th = le.td, w.extend({ + clone: function(e, t, n) { + var i, o, r, s, a, l, c, u = e.cloneNode(!0), + d = w.contains(e.ownerDocument, e); + if (!(v.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || w.isXMLDoc(e))) + for (s = he(u), i = 0, o = (r = he(e)).length; i < o; i++) a = r[i], l = s[i], c = void 0, "input" === (c = l.nodeName.toLowerCase()) && X.test(a.type) ? l.checked = a.checked : "input" !== c && "textarea" !== c || (l.defaultValue = a.defaultValue); + if (t) + if (n) + for (r = r || he(e), s = s || he(u), i = 0, o = r.length; i < o; i++) pe(r[i], s[i]); + else pe(e, u); + return 0 < (s = he(u, "script")).length && fe(s, !d && he(e, "script")), u + }, + buildFragment: function(e, t, n, i) { + for (var o, r, s, a, l, c = t.createDocumentFragment(), u = [], d = 0, f = e.length; d < f; d++) + if ((o = e[d]) || 0 === o) + if ("object" === w.type(o)) w.merge(u, o.nodeType ? [o] : o); + else if (ne.test(o)) { + for (r = r || c.appendChild(t.createElement("div")), s = (te.exec(o) || ["", ""])[1].toLowerCase(), s = le[s] || le._default, r.innerHTML = s[1] + o.replace(ee, "<$1>") + s[2], l = s[0]; l--;) r = r.lastChild; + w.merge(u, r.childNodes), (r = c.firstChild).textContent = "" + } else u.push(t.createTextNode(o)); + for (c.textContent = "", d = 0; o = u[d++];) + if ((!i || -1 === w.inArray(o, i)) && (a = w.contains(o.ownerDocument, o), r = he(c.appendChild(o), "script"), a && fe(r), n)) + for (l = 0; o = r[l++];) re.test(o.type || "") && n.push(o); + return c + }, + cleanData: function(e) { + for (var t, n, i, o, r = w.event.special, s = 0; void 0 !== (n = e[s]); s++) { + if (w.acceptData(n) && ((o = n[H.expando]) && (t = H.cache[o]))) { + if (t.events) + for (i in t.events) r[i] ? w.event.remove(n, i) : w.removeEvent(n, i, t.handle); + H.cache[o] && delete H.cache[o] + } + delete M.cache[n[M.expando]] + } + } + }), w.fn.extend({ + text: function(e) { + return O(this, function(e) { + return void 0 === e ? w.text(this) : this.empty().each(function() { + 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (this.textContent = e) + }) + }, null, e, arguments.length) + }, + append: function() { + return this.domManip(arguments, function(e) { + 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || ce(this, e).appendChild(e) + }) + }, + prepend: function() { + return this.domManip(arguments, function(e) { + var t; + 1 !== this.nodeType && 11 !== this.nodeType && 9 !== this.nodeType || (t = ce(this, e)).insertBefore(e, t.firstChild) + }) + }, + before: function() { + return this.domManip(arguments, function(e) { + this.parentNode && this.parentNode.insertBefore(e, this) + }) + }, + after: function() { + return this.domManip(arguments, function(e) { + this.parentNode && this.parentNode.insertBefore(e, this.nextSibling) + }) + }, + remove: function(e, t) { + for (var n, i = e ? w.filter(e, this) : this, o = 0; null != (n = i[o]); o++) t || 1 !== n.nodeType || w.cleanData(he(n)), n.parentNode && (t && w.contains(n.ownerDocument, n) && fe(he(n, "script")), n.parentNode.removeChild(n)); + return this + }, + empty: function() { + for (var e, t = 0; null != (e = this[t]); t++) 1 === e.nodeType && (w.cleanData(he(e, !1)), e.textContent = ""); + return this + }, + clone: function(e, t) { + return e = null != e && e, t = null == t ? e : t, this.map(function() { + return w.clone(this, e, t) + }) + }, + html: function(e) { + return O(this, function(e) { + var t = this[0] || {}, + n = 0, + i = this.length; + if (void 0 === e && 1 === t.nodeType) return t.innerHTML; + if ("string" == typeof e && !ie.test(e) && !le[(te.exec(e) || ["", ""])[1].toLowerCase()]) { + e = e.replace(ee, "<$1>"); + try { + for (; n < i; n++) 1 === (t = this[n] || {}).nodeType && (w.cleanData(he(t, !1)), t.innerHTML = e); + t = 0 + } catch (e) {} + } + t && this.empty().append(e) + }, null, e, arguments.length) + }, + replaceWith: function(e) { + var t = e; + return this.domManip(arguments, function(e) { + t = this.parentNode, w.cleanData(he(this)), t && t.replaceChild(e, this) + }), t && (t.length || t.nodeType) ? this : this.remove() + }, + detach: function(e) { + return this.remove(e, !0) + }, + domManip: function(n, i) { + n = g.apply([], n); + var e, t, o, r, s, a, l = 0, + c = this.length, + u = this, + d = c - 1, + f = n[0], + p = w.isFunction(f); + if (p || 1 < c && "string" == typeof f && !v.checkClone && oe.test(f)) return this.each(function(e) { + var t = u.eq(e); + p && (n[0] = f.call(this, e, t.html())), t.domManip(n, i) + }); + if (c && (t = (e = w.buildFragment(n, this[0].ownerDocument, !1, this)).firstChild, 1 === e.childNodes.length && (e = t), t)) { + for (r = (o = w.map(he(e, "script"), ue)).length; l < c; l++) s = e, l !== d && (s = w.clone(s, !0, !0), r && w.merge(o, he(s, "script"))), i.call(this[l], s, l); + if (r) + for (a = o[o.length - 1].ownerDocument, w.map(o, de), l = 0; l < r; l++) s = o[l], re.test(s.type || "") && !H.access(s, "globalEval") && w.contains(a, s) && (s.src ? w._evalUrl && w._evalUrl(s.src) : w.globalEval(s.textContent.replace(ae, ""))) + } + return this + } + }), w.each({ + appendTo: "append", + prependTo: "prepend", + insertBefore: "before", + insertAfter: "after", + replaceAll: "replaceWith" + }, function(e, s) { + w.fn[e] = function(e) { + for (var t, n = [], i = w(e), o = i.length - 1, r = 0; r <= o; r++) t = r === o ? this : this.clone(!0), w(i[r])[s](t), a.apply(n, t.get()); + return this.pushStack(n) + } + }); + var ge, me = {}; + + function ve(e, t) { + var t = w(t.createElement(e)).appendTo(t.body), + n = h.getDefaultComputedStyle && (n = h.getDefaultComputedStyle(t[0])) ? n.display : w.css(t[0], "display"); + return t.detach(), n + } + + function ye(e) { + var t = y, + n = me[e]; + return n || ("none" !== (n = ve(e, t)) && n || ((t = (ge = (ge || w("