Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !function(e, t) {
- "object" == 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 : this, function(e, t) {
- function n(e) {
- var t = "length" in e && e.length,
- n = Z.type(e);
- return "function" === n || Z.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || 0 === t || "number" == typeof t && t > 0 && t - 1 in e
- }
- function r(e, t, n) {
- if (Z.isFunction(t)) return Z.grep(e, function(e, r) {
- return !!t.call(e, r, e) !== n
- });
- if (t.nodeType) return Z.grep(e, function(e) {
- return e === t !== n
- });
- if ("string" == typeof t) {
- if (ae.test(t)) return Z.filter(t, e, n);
- t = Z.filter(t, e)
- }
- return Z.grep(e, function(e) {
- return X.call(t, e) >= 0 !== n
- })
- }
- function i(e, t) {
- for (;
- (e = e[t]) && 1 !== e.nodeType;);
- return e
- }
- function o(e) {
- var t = he[e] = {};
- return Z.each(e.match(de) || [], function(e, n) {
- t[n] = !0
- }), t
- }
- function s() {
- J.removeEventListener("DOMContentLoaded", s, !1), e.removeEventListener("load", s, !1), Z.ready()
- }
- function a() {
- Object.defineProperty(this.cache = {}, 0, {
- get: function() {
- return {}
- }
- }), this.expando = Z.expando + a.uid++
- }
- function u(e, t, n) {
- var r;
- if (void 0 === n && 1 === e.nodeType)
- if (r = "data-" + t.replace(be, "-$1").toLowerCase(), n = e.getAttribute(r), "string" == typeof n) {
- try {
- n = "true" === n ? !0 : "false" === n ? !1 : "null" === n ? null : +n + "" === n ? +n : xe.test(n) ? Z.parseJSON(n) : n
- } catch (i) {}
- ye.set(e, t, n)
- } else n = void 0;
- return n
- }
- function l() {
- return !0
- }
- function $() {
- return !1
- }
- function c() {
- try {
- return J.activeElement
- } catch (e) {}
- }
- function f(e, t) {
- return Z.nodeName(e, "table") && Z.nodeName(11 !== t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e
- }
- function p(e) {
- return e.type = (null !== e.getAttribute("type")) + "/" + e.type, e
- }
- function d(e) {
- var t = Fe.exec(e.type);
- return t ? e.type = t[1] : e.removeAttribute("type"), e
- }
- function h(e, t) {
- for (var n = 0, r = e.length; r > n; n++) ve.set(e[n], "globalEval", !t || ve.get(t[n], "globalEval"))
- }
- function g(e, t) {
- var n, r, i, o, s, a, u, l;
- if (1 === t.nodeType) {
- if (ve.hasData(e) && (o = ve.access(e), s = ve.set(t, o), l = o.events)) {
- delete s.handle, s.events = {};
- for (i in l)
- for (n = 0, r = l[i].length; r > n; n++) Z.event.add(t, i, l[i][n])
- }
- ye.hasData(e) && (a = ye.access(e), u = Z.extend({}, a), ye.set(t, u))
- }
- }
- function m(e, t) {
- var n = e.getElementsByTagName ? e.getElementsByTagName(t || "*") : e.querySelectorAll ? e.querySelectorAll(t || "*") : [];
- return void 0 === t || t && Z.nodeName(e, t) ? Z.merge([e], n) : n
- }
- function v(e, t) {
- var n = t.nodeName.toLowerCase();
- "input" === n && Ne.test(e.type) ? t.checked = e.checked : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue)
- }
- function y(t, n) {
- var r, i = Z(n.createElement(t)).appendTo(n.body),
- o = e.getDefaultComputedStyle && (r = e.getDefaultComputedStyle(i[0])) ? r.display : Z.css(i[0], "display");
- return i.detach(), o
- }
- function x(e) {
- var t = J,
- n = Ie[e];
- return n || (n = y(e, t), "none" !== n && n || (Re = (Re || Z("<iframe frameborder='0' width='0' height='0'/>")).appendTo(t.documentElement), t = Re[0].contentDocument, t.write(), t.close(), n = y(e, t), Re.detach()), Ie[e] = n), n
- }
- function b(e, t, n) {
- var r, i, o, s, a = e.style;
- return n = n || _e(e), n && (s = n.getPropertyValue(t) || n[t]), n && ("" !== s || Z.contains(e.ownerDocument, e) || (s = Z.style(e, t)), Be.test(s) && We.test(t) && (r = a.width, i = a.minWidth, o = a.maxWidth, a.minWidth = a.maxWidth = a.width = s, s = n.width, a.width = r, a.minWidth = i, a.maxWidth = o)), void 0 !== s ? s + "" : s
- }
- function w(e, t) {
- return {
- get: function() {
- return e() ? void delete this.get : (this.get = t).apply(this, arguments)
- }
- }
- }
- function C(e, t) {
- if (t in e) return t;
- for (var n = t[0].toUpperCase() + t.slice(1), r = t, i = Qe.length; i--;)
- if (t = Qe[i] + n, t in e) return t;
- return r
- }
- function T(e, t, n) {
- var r = Ue.exec(t);
- return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t
- }
- function N(e, t, n, r, i) {
- for (var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0, s = 0; 4 > o; o += 2) "margin" === n && (s += Z.css(e, n + Ce[o], !0, i)), r ? ("content" === n && (s -= Z.css(e, "padding" + Ce[o], !0, i)), "margin" !== n && (s -= Z.css(e, "border" + Ce[o] + "Width", !0, i))) : (s += Z.css(e, "padding" + Ce[o], !0, i), "padding" !== n && (s += Z.css(e, "border" + Ce[o] + "Width", !0, i)));
- return s
- }
- function k(e, t, n) {
- var r = !0,
- i = "width" === t ? e.offsetWidth : e.offsetHeight,
- o = _e(e),
- s = "border-box" === Z.css(e, "boxSizing", !1, o);
- if (0 >= i || null == i) {
- if (i = b(e, t, o), (0 > i || null == i) && (i = e.style[t]), Be.test(i)) return i;
- r = s && (G.boxSizingReliable() || i === e.style[t]), i = parseFloat(i) || 0
- }
- return i + N(e, t, n || (s ? "border" : "content"), r, o) + "px"
- }
- function E(e, t) {
- for (var n, r, i, o = [], s = 0, a = e.length; a > s; s++) r = e[s], r.style && (o[s] = ve.get(r, "olddisplay"), n = r.style.display, t ? (o[s] || "none" !== n || (r.style.display = ""), "" === r.style.display && Te(r) && (o[s] = ve.access(r, "olddisplay", x(r.nodeName)))) : (i = Te(r), "none" === n && i || ve.set(r, "olddisplay", i ? n : Z.css(r, "display"))));
- for (s = 0; a > s; s++) r = e[s], r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[s] || "" : "none"));
- return e
- }
- function S(e, t, n, r, i) {
- return new S.prototype.init(e, t, n, r, i)
- }
- function j() {
- return setTimeout(function() {
- Ge = void 0
- }), Ge = Z.now()
- }
- function D(e, t) {
- var n, r = 0,
- i = {
- height: e
- };
- for (t = t ? 1 : 0; 4 > r; r += 2 - t) n = Ce[r], i["margin" + n] = i["padding" + n] = e;
- return t && (i.opacity = i.width = e), i
- }
- function A(e, t, n) {
- for (var r, i = (nt[t] || []).concat(nt["*"]), o = 0, s = i.length; s > o; o++)
- if (r = i[o].call(n, t, e)) return r
- }
- function L(e, t, n) {
- var r, i, o, s, a, u, l, c, f = this,
- p = {},
- d = e.style,
- h = e.nodeType && Te(e),
- g = ve.get(e, "fxshow");
- n.queue || (a = Z._queueHooks(e, "fx"), null == a.unqueued && (a.unqueued = 0, u = a.empty.fire, a.empty.fire = function() {
- a.unqueued || u()
- }), a.unqueued++, f.always(function() {
- f.always(function() {
- a.unqueued--, Z.queue(e, "fx").length || a.empty.fire()
- })
- })), 1 === e.nodeType && ("height" in t || "width" in t) && (n.overflow = [d.overflow, d.overflowX, d.overflowY], l = Z.css(e, "display"), c = "none" === l ? ve.get(e, "olddisplay") || x(e.nodeName) : l, "inline" === c && "none" === Z.css(e, "float") && (d.display = "inline-block")), n.overflow && (d.overflow = "hidden", f.always(function() {
- d.overflow = n.overflow[0], d.overflowX = n.overflow[1], d.overflowY = n.overflow[2]
- }));
- for (r in t)
- if (i = t[r], Ke.exec(i)) {
- if (delete t[r], o = o || "toggle" === i, i === (h ? "hide" : "show")) {
- if ("show" !== i || !g || void 0 === g[r]) continue;
- h = !0
- }
- p[r] = g && g[r] || Z.style(e, r)
- } else l = void 0;
- if (Z.isEmptyObject(p)) "inline" === ("none" === l ? x(e.nodeName) : l) && (d.display = l);
- else {
- g ? "hidden" in g && (h = g.hidden) : g = ve.access(e, "fxshow", {}), o && (g.hidden = !h), h ? Z(e).show() : f.done(function() {
- Z(e).hide()
- }), f.done(function() {
- var t;
- ve.remove(e, "fxshow");
- for (t in p) Z.style(e, t, p[t])
- });
- for (r in p) s = A(h ? g[r] : 0, r, f), r in g || (g[r] = s.start, h && (s.end = s.start, s.start = "width" === r || "height" === r ? 1 : 0))
- }
- }
- function H(e, t) {
- var n, r, i, o, s;
- for (n in e)
- if (r = Z.camelCase(n), i = t[r], o = e[n], Z.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), s = Z.cssHooks[r], s && "expand" in s) {
- o = s.expand(o), delete e[r];
- for (n in o) n in e || (e[n] = o[n], t[n] = i)
- } else t[r] = i
- }
- function q(e, t, n) {
- var r, i, o = 0,
- s = tt.length,
- a = Z.Deferred().always(function() {
- delete u.elem
- }),
- u = function() {
- if (i) return !1;
- for (var t = Ge || j(), n = Math.max(0, l.startTime + l.duration - t), r = n / l.duration || 0, o = 1 - r, s = 0, u = l.tweens.length; u > s; s++) l.tweens[s].run(o);
- return a.notifyWith(e, [l, o, n]), 1 > o && u ? n : (a.resolveWith(e, [l]), !1)
- },
- l = a.promise({
- elem: e,
- props: Z.extend({}, t),
- opts: Z.extend(!0, {
- specialEasing: {}
- }, n),
- originalProperties: t,
- originalOptions: n,
- startTime: Ge || j(),
- duration: n.duration,
- tweens: [],
- createTween: function(t, n) {
- var r = Z.Tween(e, l.opts, t, n, l.opts.specialEasing[t] || l.opts.easing);
- return l.tweens.push(r), r
- },
- stop: function(t) {
- var n = 0,
- r = t ? l.tweens.length : 0;
- if (i) return this;
- for (i = !0; r > n; n++) l.tweens[n].run(1);
- return t ? a.resolveWith(e, [l, t]) : a.rejectWith(e, [l, t]), this
- }
- }),
- c = l.props;
- for (H(c, l.opts.specialEasing); s > o; o++)
- if (r = tt[o].call(l, e, c, l.opts)) return r;
- return Z.map(c, A, l), Z.isFunction(l.opts.start) && l.opts.start.call(e, l), Z.fx.timer(Z.extend(u, {
- elem: e,
- anim: l,
- queue: l.opts.queue
- })), l.progress(l.opts.progress).done(l.opts.done, l.opts.complete).fail(l.opts.fail).always(l.opts.always)
- }
- function O(e) {
- return function(t, n) {
- "string" != typeof t && (n = t, t = "*");
- var r, i = 0,
- o = t.toLowerCase().match(de) || [];
- if (Z.isFunction(n))
- for (; r = o[i++];) "+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n)
- }
- }
- function P(e, t, n, r) {
- function i(a) {
- var u;
- return o[a] = !0, Z.each(e[a] || [], function(e, a) {
- var l = a(t, n, r);
- return "string" != typeof l || s || o[l] ? s ? !(u = l) : void 0 : (t.dataTypes.unshift(l), i(l), !1)
- }), u
- }
- var o = {},
- s = e === xt;
- return i(t.dataTypes[0]) || !o["*"] && i("*")
- }
- function F(e, t) {
- var n, r, i = Z.ajaxSettings.flatOptions || {};
- for (n in t) void 0 !== t[n] && ((i[n] ? e : r || (r = {}))[n] = t[n]);
- return r && Z.extend(!0, e, r), e
- }
- function M(e, t, n) {
- for (var r, i, o, s, a = e.contents, u = e.dataTypes;
- "*" === u[0];) u.shift(), void 0 === r && (r = e.mimeType || t.getResponseHeader("Content-Type"));
- if (r)
- for (i in a)
- if (a[i] && a[i].test(r)) {
- u.unshift(i);
- break
- }
- if (u[0] in n) o = u[0];
- else {
- for (i in n) {
- if (!u[0] || e.converters[i + " " + u[0]]) {
- o = i;
- break
- }
- s || (s = i)
- }
- o = o || s
- }
- return o ? (o !== u[0] && u.unshift(o), n[o]) : void 0
- }
- function R(e, t, n, r) {
- var i, o, s, a, u, l = {},
- c = e.dataTypes.slice();
- if (c[1])
- for (s in e.converters) l[s.toLowerCase()] = e.converters[s];
- for (o = c.shift(); o;)
- if (e.responseFields[o] && (n[e.responseFields[o]] = t), !u && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), u = o, o = c.shift())
- if ("*" === o) o = u;
- else if ("*" !== u && u !== o) {
- if (s = l[u + " " + o] || l["* " + o], !s)
- for (i in l)
- if (a = i.split(" "), a[1] === o && (s = l[u + " " + a[0]] || l["* " + a[0]])) {
- s === !0 ? s = l[i] : l[i] !== !0 && (o = a[0], c.unshift(a[1]));
- break
- }
- if (s !== !0)
- if (s && e["throws"]) t = s(t);
- else try {
- t = s(t)
- } catch (f) {
- return {
- state: "parsererror",
- error: s ? f : "No conversion from " + u + " to " + o
- }
- }
- }
- return {
- state: "success",
- data: t
- }
- }
- function I(e, t, n, r) {
- var i;
- if (Z.isArray(t)) Z.each(t, function(t, i) {
- n || Nt.test(e) ? r(e, i) : I(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r)
- });
- else if (n || "object" !== Z.type(t)) r(e, t);
- else
- for (i in t) I(e + "[" + i + "]", t[i], n, r)
- }
- function W(e) {
- return Z.isWindow(e) ? e : 9 === e.nodeType && e.defaultView
- }
- var B = [],
- _ = B.slice,
- z = B.concat,
- U = B.push,
- X = B.indexOf,
- V = {},
- Y = V.toString,
- Q = V.hasOwnProperty,
- G = {},
- J = e.document,
- K = "2.1.4",
- Z = function(e, t) {
- return new Z.fn.init(e, t)
- },
- ee = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
- te = /^-ms-/,
- ne = /-([\da-z])/gi,
- re = function(e, t) {
- return t.toUpperCase()
- };
- Z.fn = Z.prototype = {
- jquery: K,
- constructor: Z,
- selector: "",
- length: 0,
- toArray: function() {
- return _.call(this)
- },
- get: function(e) {
- return null != e ? 0 > e ? this[e + this.length] : this[e] : _.call(this)
- },
- pushStack: function(e) {
- var t = Z.merge(this.constructor(), e);
- return t.prevObject = this, t.context = this.context, t
- },
- each: function(e, t) {
- return Z.each(this, e, t)
- },
- map: function(e) {
- return this.pushStack(Z.map(this, function(t, n) {
- return e.call(t, n, t)
- }))
- },
- slice: function() {
- return this.pushStack(_.apply(this, arguments))
- },
- first: function() {
- return this.eq(0)
- },
- last: function() {
- return this.eq(-1)
- },
- eq: function(e) {
- var t = this.length,
- n = +e + (0 > e ? t : 0);
- return this.pushStack(n >= 0 && t > n ? [this[n]] : [])
- },
- end: function() {
- return this.prevObject || this.constructor(null)
- },
- push: U,
- sort: B.sort,
- splice: B.splice
- }, Z.extend = Z.fn.extend = function() {
- var e, t, n, r, i, o, s = arguments[0] || {},
- a = 1,
- u = arguments.length,
- l = !1;
- for ("boolean" == typeof s && (l = s, s = arguments[a] || {}, a++), "object" == typeof s || Z.isFunction(s) || (s = {}), a === u && (s = this, a--); u > a; a++)
- if (null != (e = arguments[a]))
- for (t in e) n = s[t], r = e[t], s !== r && (l && r && (Z.isPlainObject(r) || (i = Z.isArray(r))) ? (i ? (i = !1, o = n && Z.isArray(n) ? n : []) : o = n && Z.isPlainObject(n) ? n : {}, s[t] = Z.extend(l, o, r)) : void 0 !== r && (s[t] = r));
- return s
- }, Z.extend({
- expando: "jQuery" + (K + Math.random()).replace(/\D/g, ""),
- isReady: !0,
- error: function(e) {
- throw new Error(e)
- },
- noop: function() {},
- isFunction: function(e) {
- return "function" === Z.type(e)
- },
- isArray: Array.isArray,
- isWindow: function(e) {
- return null != e && e === e.window
- },
- isNumeric: function(e) {
- return !Z.isArray(e) && e - parseFloat(e) + 1 >= 0
- },
- isPlainObject: function(e) {
- return "object" !== Z.type(e) || e.nodeType || Z.isWindow(e) ? !1 : e.constructor && !Q.call(e.constructor.prototype, "isPrototypeOf") ? !1 : !0
- },
- isEmptyObject: function(e) {
- var t;
- for (t in e) return !1;
- return !0
- },
- type: function(e) {
- return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? V[Y.call(e)] || "object" : typeof e
- },
- globalEval: function(e) {
- var t, n = eval;
- e = Z.trim(e), e && (1 === e.indexOf("use strict") ? (t = J.createElement("script"), t.text = e, J.head.appendChild(t).parentNode.removeChild(t)) : n(e))
- },
- camelCase: function(e) {
- return e.replace(te, "ms-").replace(ne, re)
- },
- nodeName: function(e, t) {
- return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase()
- },
- each: function(e, t, r) {
- var i, o = 0,
- s = e.length,
- a = n(e);
- if (r) {
- if (a)
- for (; s > o && (i = t.apply(e[o], r), i !== !1); o++);
- else
- for (o in e)
- if (i = t.apply(e[o], r), i === !1) break
- } else if (a)
- for (; s > o && (i = t.call(e[o], o, e[o]), i !== !1); o++);
- else
- for (o in e)
- if (i = t.call(e[o], o, e[o]), i === !1) break; return e
- },
- trim: function(e) {
- return null == e ? "" : (e + "").replace(ee, "")
- },
- makeArray: function(e, t) {
- var r = t || [];
- return null != e && (n(Object(e)) ? Z.merge(r, "string" == typeof e ? [e] : e) : U.call(r, e)), r
- },
- inArray: function(e, t, n) {
- return null == t ? -1 : X.call(t, e, n)
- },
- merge: function(e, t) {
- for (var n = +t.length, r = 0, i = e.length; n > r; r++) e[i++] = t[r];
- return e.length = i, e
- },
- grep: function(e, t, n) {
- for (var r, i = [], o = 0, s = e.length, a = !n; s > o; o++) r = !t(e[o], o), r !== a && i.push(e[o]);
- return i
- },
- map: function(e, t, r) {
- var i, o = 0,
- s = e.length,
- a = n(e),
- u = [];
- if (a)
- for (; s > o; o++) i = t(e[o], o, r), null != i && u.push(i);
- else
- for (o in e) i = t(e[o], o, r), null != i && u.push(i);
- return z.apply([], u)
- },
- guid: 1,
- proxy: function(e, t) {
- var n, r, i;
- return "string" == typeof t && (n = e[t], t = e, e = n), Z.isFunction(e) ? (r = _.call(arguments, 2), i = function() {
- return e.apply(t || this, r.concat(_.call(arguments)))
- }, i.guid = e.guid = e.guid || Z.guid++, i) : void 0
- },
- now: Date.now,
- support: G
- }), Z.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function(e, t) {
- V["[object " + t + "]"] = t.toLowerCase()
- });
- var ie = function(e) {
- function t(e, t, n, r) {
- var i, o, s, a, u, l, f, d, h, g;
- if ((t ? t.ownerDocument || t : W) !== H && L(t), t = t || H, n = n || [], a = t.nodeType, "string" != typeof e || !e || 1 !== a && 9 !== a && 11 !== a) return n;
- if (!r && O) {
- if (11 !== a && (i = ye.exec(e)))
- if (s = i[1]) {
- if (9 === a) {
- if (o = t.getElementById(s), !o || !o.parentNode) return n;
- if (o.id === s) return n.push(o), n
- } else if (t.ownerDocument && (o = t.ownerDocument.getElementById(s)) && R(t, o) && o.id === s) return n.push(o), n
- } else {
- if (i[2]) return Z.apply(n, t.getElementsByTagName(e)), n;
- if ((s = i[3]) && w.getElementsByClassName) return Z.apply(n, t.getElementsByClassName(s)), n
- }
- if (w.qsa && (!P || !P.test(e))) {
- if (d = f = I, h = t, g = 1 !== a && e, 1 === a && "object" !== t.nodeName.toLowerCase()) {
- for (l = k(e), (f = t.getAttribute("id")) ? d = f.replace(be, "\\$&") : t.setAttribute("id", d), d = "[id='" + d + "'] ", u = l.length; u--;) l[u] = d + p(l[u]);
- h = xe.test(e) && c(t.parentNode) || t, g = l.join(",")
- }
- if (g) try {
- return Z.apply(n, h.querySelectorAll(g)), n
- } catch (m) {} finally {
- f || t.removeAttribute("id")
- }
- }
- }
- return S(e.replace(le, "$1"), t, n, r)
- }
- function n() {
- function e(n, r) {
- return t.push(n + " ") > C.cacheLength && delete e[t.shift()], e[n + " "] = r
- }
- var t = [];
- return e
- }
- function r(e) {
- return e[I] = !0, e
- }
- function i(e) {
- var t = H.createElement("div");
- try {
- return !!e(t)
- } catch (n) {
- return !1
- } finally {
- t.parentNode && t.parentNode.removeChild(t), t = null
- }
- }
- function o(e, t) {
- for (var n = e.split("|"), r = e.length; r--;) C.attrHandle[n[r]] = t
- }
- function s(e, t) {
- var n = t && e,
- r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || Y) - (~e.sourceIndex || Y);
- if (r) return r;
- if (n)
- for (; n = n.nextSibling;)
- if (n === t) return -1;
- return e ? 1 : -1
- }
- function a(e) {
- return function(t) {
- var n = t.nodeName.toLowerCase();
- return "input" === n && t.type === e
- }
- }
- function u(e) {
- return function(t) {
- var n = t.nodeName.toLowerCase();
- return ("input" === n || "button" === n) && t.type === e
- }
- }
- function l(e) {
- return r(function(t) {
- return t = +t, r(function(n, r) {
- for (var i, o = e([], n.length, t), s = o.length; s--;) n[i = o[s]] && (n[i] = !(r[i] = n[i]))
- })
- })
- }
- function c(e) {
- return e && "undefined" != typeof e.getElementsByTagName && e
- }
- function f() {}
- function p(e) {
- for (var t = 0, n = e.length, r = ""; n > t; t++) r += e[t].value;
- return r
- }
- function d(e, t, n) {
- var r = t.dir,
- i = n && "parentNode" === r,
- o = _++;
- return t.first ? function(t, n, o) {
- for (; t = t[r];)
- if (1 === t.nodeType || i) return e(t, n, o)
- } : function(t, n, s) {
- var a, u, l = [B, o];
- if (s) {
- for (; t = t[r];)
- if ((1 === t.nodeType || i) && e(t, n, s)) return !0
- } else
- for (; t = t[r];)
- if (1 === t.nodeType || i) {
- if (u = t[I] || (t[I] = {}), (a = u[r]) && a[0] === B && a[1] === o) return l[2] = a[2];
- if (u[r] = l, l[2] = e(t, n, s)) return !0
- }
- }
- }
- function h(e) {
- return e.length > 1 ? function(t, n, r) {
- for (var i = e.length; i--;)
- if (!e[i](t, n, r)) return !1;
- return !0
- } : e[0]
- }
- function g(e, n, r) {
- for (var i = 0, o = n.length; o > i; i++) t(e, n[i], r);
- return r
- }
- function m(e, t, n, r, i) {
- for (var o, s = [], a = 0, u = e.length, l = null != t; u > a; a++)(o = e[a]) && (!n || n(o, r, i)) && (s.push(o), l && t.push(a));
- return s
- }
- function v(e, t, n, i, o, s) {
- return i && !i[I] && (i = v(i)), o && !o[I] && (o = v(o, s)), r(function(r, s, a, u) {
- var l, c, f, p = [],
- d = [],
- h = s.length,
- v = r || g(t || "*", a.nodeType ? [a] : a, []),
- y = !e || !r && t ? v : m(v, p, e, a, u),
- x = n ? o || (r ? e : h || i) ? [] : s : y;
- if (n && n(y, x, a, u), i)
- for (l = m(x, d), i(l, [], a, u), c = l.length; c--;)(f = l[c]) && (x[d[c]] = !(y[d[c]] = f));
- if (r) {
- if (o || e) {
- if (o) {
- for (l = [], c = x.length; c--;)(f = x[c]) && l.push(y[c] = f);
- o(null, x = [], l, u)
- }
- for (c = x.length; c--;)(f = x[c]) && (l = o ? te(r, f) : p[c]) > -1 && (r[l] = !(s[l] = f))
- }
- } else x = m(x === s ? x.splice(h, x.length) : x), o ? o(null, s, x, u) : Z.apply(s, x)
- })
- }
- function y(e) {
- for (var t, n, r, i = e.length, o = C.relative[e[0].type], s = o || C.relative[" "], a = o ? 1 : 0, u = d(function(e) {
- return e === t
- }, s, !0), l = d(function(e) {
- return te(t, e) > -1
- }, s, !0), c = [function(e, n, r) {
- var i = !o && (r || n !== j) || ((t = n).nodeType ? u(e, n, r) : l(e, n, r));
- return t = null, i
- }]; i > a; a++)
- if (n = C.relative[e[a].type]) c = [d(h(c), n)];
- else {
- if (n = C.filter[e[a].type].apply(null, e[a].matches), n[I]) {
- for (r = ++a; i > r && !C.relative[e[r].type]; r++);
- return v(a > 1 && h(c), a > 1 && p(e.slice(0, a - 1).concat({
- value: " " === e[a - 2].type ? "*" : ""
- })).replace(le, "$1"), n, r > a && y(e.slice(a, r)), i > r && y(e = e.slice(r)), i > r && p(e))
- }
- c.push(n)
- }
- return h(c)
- }
- function x(e, n) {
- var i = n.length > 0,
- o = e.length > 0,
- s = function(r, s, a, u, l) {
- var c, f, p, d = 0,
- h = "0",
- g = r && [],
- v = [],
- y = j,
- x = r || o && C.find.TAG("*", l),
- b = B += null == y ? 1 : Math.random() || .1,
- w = x.length;
- for (l && (j = s !== H && s); h !== w && null != (c = x[h]); h++) {
- if (o && c) {
- for (f = 0; p = e[f++];)
- if (p(c, s, a)) {
- u.push(c);
- break
- }
- l && (B = b)
- }
- i && ((c = !p && c) && d--, r && g.push(c))
- }
- if (d += h, i && h !== d) {
- for (f = 0; p = n[f++];) p(g, v, s, a);
- if (r) {
- if (d > 0)
- for (; h--;) g[h] || v[h] || (v[h] = J.call(u));
- v = m(v)
- }
- Z.apply(u, v), l && !r && v.length > 0 && d + n.length > 1 && t.uniqueSort(u)
- }
- return l && (B = b, j = y), g
- };
- return i ? r(s) : s
- }
- var b, w, C, T, N, k, E, S, j, D, A, L, H, q, O, P, F, M, R, I = "sizzle" + 1 * new Date,
- W = e.document,
- B = 0,
- _ = 0,
- z = n(),
- U = n(),
- X = n(),
- V = function(e, t) {
- return e === t && (A = !0), 0
- },
- Y = 1 << 31,
- Q = {}.hasOwnProperty,
- G = [],
- J = G.pop,
- K = G.push,
- Z = G.push,
- ee = G.slice,
- te = function(e, t) {
- for (var n = 0, r = e.length; r > n; n++)
- if (e[n] === t) return n;
- return -1
- },
- ne = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
- re = "[\\x20\\t\\r\\n\\f]",
- ie = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
- oe = ie.replace("w", "w#"),
- se = "\\[" + re + "*(" + ie + ")(?:" + re + "*([*^$|!~]?=)" + re + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + oe + "))|)" + re + "*\\]",
- ae = ":(" + ie + ")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|" + se + ")*)|.*)\\)|)",
- ue = new RegExp(re + "+", "g"),
- le = new RegExp("^" + re + "+|((?:^|[^\\\\])(?:\\\\.)*)" + re + "+$", "g"),
- ce = new RegExp("^" + re + "*," + re + "*"),
- fe = new RegExp("^" + re + "*([>+~]|" + re + ")" + re + "*"),
- pe = new RegExp("=" + re + "*([^\\]'\"]*?)" + re + "*\\]", "g"),
- de = new RegExp(ae),
- he = new RegExp("^" + oe + "$"),
- ge = {
- ID: new RegExp("^#(" + ie + ")"),
- CLASS: new RegExp("^\\.(" + ie + ")"),
- TAG: new RegExp("^(" + ie.replace("w", "w*") + ")"),
- ATTR: new RegExp("^" + se),
- PSEUDO: new RegExp("^" + ae),
- CHILD: new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + re + "*(even|odd|(([+-]|)(\\d*)n|)" + re + "*(?:([+-]|)" + re + "*(\\d+)|))" + re + "*\\)|)", "i"),
- bool: new RegExp("^(?:" + ne + ")$", "i"),
- needsContext: new RegExp("^" + re + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + re + "*((?:-\\d)?\\d*)" + re + "*\\)|)(?=[^-]|$)", "i")
- },
- me = /^(?:input|select|textarea|button)$/i,
- ve = /^h\d$/i,
- $ = /^[^{]+\{\s*\[native \w/,
- ye = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
- xe = /[+~]/,
- be = /'|\\/g,
- we = new RegExp("\\\\([\\da-f]{1,6}" + re + "?|(" + re + ")|.)", "ig"),
- Ce = function(e, t, n) {
- var r = "0x" + t - 65536;
- return r !== r || n ? t : 0 > r ? String.fromCharCode(r + 65536) : String.fromCharCode(r >> 10 | 55296, 1023 & r | 56320)
- },
- Te = function() {
- L()
- };
- try {
- Z.apply(G = ee.call(W.childNodes), W.childNodes), G[W.childNodes.length].nodeType
- } catch (Ne) {
- Z = {
- apply: G.length ? function(e, t) {
- K.apply(e, ee.call(t))
- } : function(e, t) {
- for (var n = e.length, r = 0; e[n++] = t[r++];);
- e.length = n - 1
- }
- }
- }
- w = t.support = {}, N = t.isXML = function(e) {
- var t = e && (e.ownerDocument || e).documentElement;
- return t ? "HTML" !== t.nodeName : !1
- }, L = t.setDocument = function(e) {
- var t, n, r = e ? e.ownerDocument || e : W;
- return r !== H && 9 === r.nodeType && r.documentElement ? (H = r, q = r.documentElement, n = r.defaultView, n && n !== n.top && (n.addEventListener ? n.addEventListener("unload", Te, !1) : n.attachEvent && n.attachEvent("onunload", Te)), O = !N(r), w.attributes = i(function(e) {
- return e.className = "i", !e.getAttribute("className")
- }), w.getElementsByTagName = i(function(e) {
- return e.appendChild(r.createComment("")), !e.getElementsByTagName("*").length
- }), w.getElementsByClassName = $.test(r.getElementsByClassName), w.getById = i(function(e) {
- return q.appendChild(e).id = I, !r.getElementsByName || !r.getElementsByName(I).length
- }), w.getById ? (C.find.ID = function(e, t) {
- if ("undefined" != typeof t.getElementById && O) {
- var n = t.getElementById(e);
- return n && n.parentNode ? [n] : []
- }
- }, C.filter.ID = function(e) {
- var t = e.replace(we, Ce);
- return function(e) {
- return e.getAttribute("id") === t
- }
- }) : (delete C.find.ID, C.filter.ID = function(e) {
- var t = e.replace(we, Ce);
- return function(e) {
- var n = "undefined" != typeof e.getAttributeNode && e.getAttributeNode("id");
- return n && n.value === t
- }
- }), C.find.TAG = w.getElementsByTagName ? function(e, t) {
- return "undefined" != typeof t.getElementsByTagName ? t.getElementsByTagName(e) : w.qsa ? t.querySelectorAll(e) : void 0
- } : function(e, t) {
- var n, r = [],
- i = 0,
- o = t.getElementsByTagName(e);
- if ("*" === e) {
- for (; n = o[i++];) 1 === n.nodeType && r.push(n);
- return r
- }
- return o
- }, C.find.CLASS = w.getElementsByClassName && function(e, t) {
- return O ? t.getElementsByClassName(e) : void 0
- }, F = [], P = [], (w.qsa = $.test(r.querySelectorAll)) && (i(function(e) {
- q.appendChild(e).innerHTML = "<a id='" + I + "'></a><select id='" + I + "-\f]' msallowcapture=''><option selected=''></option></select>", e.querySelectorAll("[msallowcapture^='']").length && P.push("[*^$]=" + re + "*(?:''|\"\")"), e.querySelectorAll("[selected]").length || P.push("\\[" + re + "*(?:value|" + ne + ")"), e.querySelectorAll("[id~=" + I + "-]").length || P.push("~="), e.querySelectorAll(":checked").length || P.push(":checked"), e.querySelectorAll("a#" + I + "+*").length || P.push(".#.+[+~]")
- }), i(function(e) {
- var t = r.createElement("input");
- t.setAttribute("type", "hidden"), e.appendChild(t).setAttribute("name", "D"), e.querySelectorAll("[name=d]").length && P.push("name" + re + "*[*^$|!~]?="), e.querySelectorAll(":enabled").length || P.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), P.push(",.*:")
- })), (w.matchesSelector = $.test(M = q.matches || q.webkitMatchesSelector || q.mozMatchesSelector || q.oMatchesSelector || q.msMatchesSelector)) && i(function(e) {
- w.disconnectedMatch = M.call(e, "div"), M.call(e, "[s!='']:x"), F.push("!=", ae)
- }), P = P.length && new RegExp(P.join("|")), F = F.length && new RegExp(F.join("|")), t = $.test(q.compareDocumentPosition), R = t || $.test(q.contains) ? function(e, t) {
- var n = 9 === e.nodeType ? e.documentElement : e,
- r = t && t.parentNode;
- return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r)))
- } : function(e, t) {
- if (t)
- for (; t = t.parentNode;)
- if (t === e) return !0;
- return !1
- }, V = t ? function(e, t) {
- if (e === t) return A = !0, 0;
- var n = !e.compareDocumentPosition - !t.compareDocumentPosition;
- return n ? n : (n = (e.ownerDocument || e) === (t.ownerDocument || t) ? e.compareDocumentPosition(t) : 1, 1 & n || !w.sortDetached && t.compareDocumentPosition(e) === n ? e === r || e.ownerDocument === W && R(W, e) ? -1 : t === r || t.ownerDocument === W && R(W, t) ? 1 : D ? te(D, e) - te(D, t) : 0 : 4 & n ? -1 : 1)
- } : function(e, t) {
- if (e === t) return A = !0, 0;
- var n, i = 0,
- o = e.parentNode,
- a = t.parentNode,
- u = [e],
- l = [t];
- if (!o || !a) return e === r ? -1 : t === r ? 1 : o ? -1 : a ? 1 : D ? te(D, e) - te(D, t) : 0;
- if (o === a) return s(e, t);
- for (n = e; n = n.parentNode;) u.unshift(n);
- for (n = t; n = n.parentNode;) l.unshift(n);
- for (; u[i] === l[i];) i++;
- return i ? s(u[i], l[i]) : u[i] === W ? -1 : l[i] === W ? 1 : 0
- }, r) : H
- }, t.matches = function(e, n) {
- return t(e, null, null, n)
- }, t.matchesSelector = function(e, n) {
- if ((e.ownerDocument || e) !== H && L(e), n = n.replace(pe, "='$1']"), !(!w.matchesSelector || !O || F && F.test(n) || P && P.test(n))) try {
- var r = M.call(e, n);
- if (r || w.disconnectedMatch || e.document && 11 !== e.document.nodeType) return r
- } catch (i) {}
- return t(n, H, null, [e]).length > 0
- }, t.contains = function(e, t) {
- return (e.ownerDocument || e) !== H && L(e), R(e, t)
- }, t.attr = function(e, t) {
- (e.ownerDocument || e) !== H && L(e);
- var n = C.attrHandle[t.toLowerCase()],
- r = n && Q.call(C.attrHandle, t.toLowerCase()) ? n(e, t, !O) : void 0;
- return void 0 !== r ? r : w.attributes || !O ? e.getAttribute(t) : (r = e.getAttributeNode(t)) && r.specified ? r.value : null
- }, t.error = function(e) {
- throw new Error("Syntax error, unrecognized expression: " + e)
- }, t.uniqueSort = function(e) {
- var t, n = [],
- r = 0,
- i = 0;
- if (A = !w.detectDuplicates, D = !w.sortStable && e.slice(0), e.sort(V), A) {
- for (; t = e[i++];) t === e[i] && (r = n.push(i));
- for (; r--;) e.splice(n[r], 1)
- }
- return D = null, e
- }, T = t.getText = function(e) {
- var t, n = "",
- r = 0,
- i = e.nodeType;
- if (i) {
- if (1 === i || 9 === i || 11 === i) {
- if ("string" == typeof e.textContent) return e.textContent;
- for (e = e.firstChild; e; e = e.nextSibling) n += T(e)
- } else if (3 === i || 4 === i) return e.nodeValue
- } else
- for (; t = e[r++];) n += T(t);
- return n
- }, C = t.selectors = {
- cacheLength: 50,
- createPseudo: r,
- match: ge,
- attrHandle: {},
- find: {},
- relative: {
- ">": {
- dir: "parentNode",
- first: !0
- },
- " ": {
- dir: "parentNode"
- },
- "+": {
- dir: "previousSibling",
- first: !0
- },
- "~": {
- dir: "previousSibling"
- }
- },
- preFilter: {
- ATTR: function(e) {
- return e[1] = e[1].replace(we, Ce), e[3] = (e[3] || e[4] || e[5] || "").replace(we, Ce), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4)
- },
- CHILD: function(e) {
- return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || t.error(e[0]), e[4] = +(e[4] ? e[5] + (e[6] || 1) : 2 * ("even" === e[3] || "odd" === e[3])), e[5] = +(e[7] + e[8] || "odd" === e[3])) : e[3] && t.error(e[0]), e
- },
- PSEUDO: function(e) {
- var t, n = !e[6] && e[2];
- return ge.CHILD.test(e[0]) ? null : (e[3] ? e[2] = e[4] || e[5] || "" : n && de.test(n) && (t = k(n, !0)) && (t = n.indexOf(")", n.length - t) - n.length) && (e[0] = e[0].slice(0, t), e[2] = n.slice(0, t)), e.slice(0, 3))
- }
- },
- filter: {
- TAG: function(e) {
- var t = e.replace(we, Ce).toLowerCase();
- return "*" === e ? function() {
- return !0
- } : function(e) {
- return e.nodeName && e.nodeName.toLowerCase() === t
- }
- },
- CLASS: function(e) {
- var t = z[e + " "];
- return t || (t = new RegExp("(^|" + re + ")" + e + "(" + re + "|$)")) && z(e, function(e) {
- return t.test("string" == typeof e.className && e.className || "undefined" != typeof e.getAttribute && e.getAttribute("class") || "")
- })
- },
- ATTR: function(e, n, r) {
- return function(i) {
- var o = t.attr(i, e);
- return null == o ? "!=" === n : n ? (o += "", "=" === n ? o === r : "!=" === n ? o !== r : "^=" === n ? r && 0 === o.indexOf(r) : "*=" === n ? r && o.indexOf(r) > -1 : "$=" === n ? r && o.slice(-r.length) === r : "~=" === n ? (" " + o.replace(ue, " ") + " ").indexOf(r) > -1 : "|=" === n ? o === r || o.slice(0, r.length + 1) === r + "-" : !1) : !0
- }
- },
- CHILD: function(e, t, n, r, i) {
- var o = "nth" !== e.slice(0, 3),
- s = "last" !== e.slice(-4),
- a = "of-type" === t;
- return 1 === r && 0 === i ? function(e) {
- return !!e.parentNode
- } : function(t, n, u) {
- var l, c, f, p, d, h, g = o !== s ? "nextSibling" : "previousSibling",
- m = t.parentNode,
- v = a && t.nodeName.toLowerCase(),
- y = !u && !a;
- if (m) {
- if (o) {
- for (; g;) {
- for (f = t; f = f[g];)
- if (a ? f.nodeName.toLowerCase() === v : 1 === f.nodeType) return !1;
- h = g = "only" === e && !h && "nextSibling"
- }
- return !0
- }
- if (h = [s ? m.firstChild : m.lastChild], s && y) {
- for (c = m[I] || (m[I] = {}), l = c[e] || [], d = l[0] === B && l[1], p = l[0] === B && l[2], f = d && m.childNodes[d]; f = ++d && f && f[g] || (p = d = 0) || h.pop();)
- if (1 === f.nodeType && ++p && f === t) {
- c[e] = [B, d, p];
- break
- }
- } else if (y && (l = (t[I] || (t[I] = {}))[e]) && l[0] === B) p = l[1];
- else
- for (;
- (f = ++d && f && f[g] || (p = d = 0) || h.pop()) && ((a ? f.nodeName.toLowerCase() !== v : 1 !== f.nodeType) || !++p || (y && ((f[I] || (f[I] = {}))[e] = [B, p]), f !== t)););
- return p -= i, p === r || p % r === 0 && p / r >= 0
- }
- }
- },
- PSEUDO: function(e, n) {
- var i, o = C.pseudos[e] || C.setFilters[e.toLowerCase()] || t.error("unsupported pseudo: " + e);
- return o[I] ? o(n) : o.length > 1 ? (i = [e, e, "", n], C.setFilters.hasOwnProperty(e.toLowerCase()) ? r(function(e, t) {
- for (var r, i = o(e, n), s = i.length; s--;) r = te(e, i[s]), e[r] = !(t[r] = i[s])
- }) : function(e) {
- return o(e, 0, i)
- }) : o
- }
- },
- pseudos: {
- not: r(function(e) {
- var t = [],
- n = [],
- i = E(e.replace(le, "$1"));
- return i[I] ? r(function(e, t, n, r) {
- for (var o, s = i(e, null, r, []), a = e.length; a--;)(o = s[a]) && (e[a] = !(t[a] = o))
- }) : function(e, r, o) {
- return t[0] = e, i(t, null, o, n), t[0] = null, !n.pop()
- }
- }),
- has: r(function(e) {
- return function(n) {
- return t(e, n).length > 0
- }
- }),
- contains: r(function(e) {
- return e = e.replace(we, Ce),
- function(t) {
- return (t.textContent || t.innerText || T(t)).indexOf(e) > -1
- }
- }),
- lang: r(function(e) {
- return he.test(e || "") || t.error("unsupported lang: " + e), e = e.replace(we, Ce).toLowerCase(),
- function(t) {
- var n;
- do
- if (n = O ? t.lang : t.getAttribute("xml:lang") || t.getAttribute("lang")) return n = n.toLowerCase(), n === e || 0 === n.indexOf(e + "-");
- while ((t = t.parentNode) && 1 === t.nodeType);
- return !1
- }
- }),
- target: function(t) {
- var n = e.location && e.location.hash;
- return n && n.slice(1) === t.id
- },
- root: function(e) {
- return e === q
- },
- focus: function(e) {
- return e === H.activeElement && (!H.hasFocus || H.hasFocus()) && !!(e.type || e.href || ~e.tabIndex)
- },
- enabled: function(e) {
- return e.disabled === !1
- },
- disabled: function(e) {
- return e.disabled === !0
- },
- checked: function(e) {
- var t = e.nodeName.toLowerCase();
- return "input" === t && !!e.checked || "option" === t && !!e.selected
- },
- selected: function(e) {
- return e.parentNode && e.parentNode.selectedIndex, e.selected === !0
- },
- empty: function(e) {
- for (e = e.firstChild; e; e = e.nextSibling)
- if (e.nodeType < 6) return !1;
- return !0
- },
- parent: function(e) {
- return !C.pseudos.empty(e)
- },
- header: function(e) {
- return ve.test(e.nodeName)
- },
- input: function(e) {
- return me.test(e.nodeName)
- },
- button: function(e) {
- var t = e.nodeName.toLowerCase();
- return "input" === t && "button" === e.type || "button" === t
- },
- text: function(e) {
- var t;
- return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || "text" === t.toLowerCase())
- },
- first: l(function() {
- return [0]
- }),
- last: l(function(e, t) {
- return [t - 1]
- }),
- eq: l(function(e, t, n) {
- return [0 > n ? n + t : n]
- }),
- even: l(function(e, t) {
- for (var n = 0; t > n; n += 2) e.push(n);
- return e
- }),
- odd: l(function(e, t) {
- for (var n = 1; t > n; n += 2) e.push(n);
- return e
- }),
- lt: l(function(e, t, n) {
- for (var r = 0 > n ? n + t : n; --r >= 0;) e.push(r);
- return e
- }),
- gt: l(function(e, t, n) {
- for (var r = 0 > n ? n + t : n; ++r < t;) e.push(r);
- return e
- })
- }
- }, C.pseudos.nth = C.pseudos.eq;
- for (b in {
- radio: !0,
- checkbox: !0,
- file: !0,
- password: !0,
- image: !0
- }) C.pseudos[b] = a(b);
- for (b in {
- submit: !0,
- reset: !0
- }) C.pseudos[b] = u(b);
- return f.prototype = C.filters = C.pseudos, C.setFilters = new f, k = t.tokenize = function(e, n) {
- var r, i, o, s, a, u, l, c = U[e + " "];
- if (c) return n ? 0 : c.slice(0);
- for (a = e, u = [], l = C.preFilter; a;) {
- (!r || (i = ce.exec(a))) && (i && (a = a.slice(i[0].length) || a), u.push(o = [])), r = !1, (i = fe.exec(a)) && (r = i.shift(), o.push({
- value: r,
- type: i[0].replace(le, " ")
- }), a = a.slice(r.length));
- for (s in C.filter) !(i = ge[s].exec(a)) || l[s] && !(i = l[s](i)) || (r = i.shift(), o.push({
- value: r,
- type: s,
- matches: i
- }), a = a.slice(r.length));
- if (!r) break
- }
- return n ? a.length : a ? t.error(e) : U(e, u).slice(0)
- }, E = t.compile = function(e, t) {
- var n, r = [],
- i = [],
- o = X[e + " "];
- if (!o) {
- for (t || (t = k(e)), n = t.length; n--;) o = y(t[n]), o[I] ? r.push(o) : i.push(o);
- o = X(e, x(i, r)), o.selector = e
- }
- return o
- }, S = t.select = function(e, t, n, r) {
- var i, o, s, a, u, l = "function" == typeof e && e,
- f = !r && k(e = l.selector || e);
- if (n = n || [], 1 === f.length) {
- if (o = f[0] = f[0].slice(0), o.length > 2 && "ID" === (s = o[0]).type && w.getById && 9 === t.nodeType && O && C.relative[o[1].type]) {
- if (t = (C.find.ID(s.matches[0].replace(we, Ce), t) || [])[0], !t) return n;
- l && (t = t.parentNode), e = e.slice(o.shift().value.length)
- }
- for (i = ge.needsContext.test(e) ? 0 : o.length; i-- && (s = o[i], !C.relative[a = s.type]);)
- if ((u = C.find[a]) && (r = u(s.matches[0].replace(we, Ce), xe.test(o[0].type) && c(t.parentNode) || t))) {
- if (o.splice(i, 1), e = r.length && p(o), !e) return Z.apply(n, r), n;
- break
- }
- }
- return (l || E(e, f))(r, t, !O, n, xe.test(e) && c(t.parentNode) || t), n
- }, w.sortStable = I.split("").sort(V).join("") === I, w.detectDuplicates = !!A, L(), w.sortDetached = i(function(e) {
- return 1 & e.compareDocumentPosition(H.createElement("div"))
- }), i(function(e) {
- return e.innerHTML = "<a href='#'></a>", "#" === e.firstChild.getAttribute("href")
- }) || o("type|href|height|width", function(e, t, n) {
- return n ? void 0 : e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2)
- }), w.attributes && i(function(e) {
- return e.innerHTML = "<input/>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value")
- }) || o("value", function(e, t, n) {
- return n || "input" !== e.nodeName.toLowerCase() ? void 0 : e.defaultValue
- }), i(function(e) {
- return null == e.getAttribute("disabled")
- }) || o(ne, function(e, t, n) {
- var r;
- return n ? void 0 : e[t] === !0 ? t.toLowerCase() : (r = e.getAttributeNode(t)) && r.specified ? r.value : null
- }), t
- }(e);
- Z.find = ie, Z.expr = ie.selectors, Z.expr[":"] = Z.expr.pseudos, Z.unique = ie.uniqueSort, Z.text = ie.getText, Z.isXMLDoc = ie.isXML, Z.contains = ie.contains;
- var oe = Z.expr.match.needsContext,
- se = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
- ae = /^.[^:#\[\.,]*$/;
- Z.filter = function(e, t, n) {
- var r = t[0];
- return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? Z.find.matchesSelector(r, e) ? [r] : [] : Z.find.matches(e, Z.grep(t, function(e) {
- return 1 === e.nodeType
- }))
- }, Z.fn.extend({
- find: function(e) {
- var t, n = this.length,
- r = [],
- i = this;
- if ("string" != typeof e) return this.pushStack(Z(e).filter(function() {
- for (t = 0; n > t; t++)
- if (Z.contains(i[t], this)) return !0
- }));
- for (t = 0; n > t; t++) Z.find(e, i[t], r);
- return r = this.pushStack(n > 1 ? Z.unique(r) : r), r.selector = this.selector ? this.selector + " " + e : e, r
- },
- filter: function(e) {
- return this.pushStack(r(this, e || [], !1))
- },
- not: function(e) {
- return this.pushStack(r(this, e || [], !0))
- },
- is: function(e) {
- return !!r(this, "string" == typeof e && oe.test(e) ? Z(e) : e || [], !1).length
- }
- });
- var ue, le = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
- ce = Z.fn.init = function(e, t) {
- var n, r;
- if (!e) return this;
- if ("string" == typeof e) {
- if (n = "<" === e[0] && ">" === e[e.length - 1] && e.length >= 3 ? [null, e, null] : le.exec(e), !n || !n[1] && t) return !t || t.jquery ? (t || ue).find(e) : this.constructor(t).find(e);
- if (n[1]) {
- if (t = t instanceof Z ? t[0] : t, Z.merge(this, Z.parseHTML(n[1], t && t.nodeType ? t.ownerDocument || t : J, !0)), se.test(n[1]) && Z.isPlainObject(t))
- for (n in t) Z.isFunction(this[n]) ? this[n](t[n]) : this.attr(n, t[n]);
- return this
- }
- return r = J.getElementById(n[2]), r && r.parentNode && (this.length = 1, this[0] = r), this.context = J, this.selector = e, this
- }
- return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : Z.isFunction(e) ? "undefined" != typeof ue.ready ? ue.ready(e) : e(Z) : (void 0 !== e.selector && (this.selector = e.selector, this.context = e.context), Z.makeArray(e, this))
- };
- ce.prototype = Z.fn, ue = Z(J);
- var fe = /^(?:parents|prev(?:Until|All))/,
- pe = {
- children: !0,
- contents: !0,
- next: !0,
- prev: !0
- };
- Z.extend({
- dir: function(e, t, n) {
- for (var r = [], i = void 0 !== n;
- (e = e[t]) && 9 !== e.nodeType;)
- if (1 === e.nodeType) {
- if (i && Z(e).is(n)) break;
- r.push(e)
- }
- return r
- },
- sibling: function(e, t) {
- for (var n = []; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e);
- return n
- }
- }), Z.fn.extend({
- has: function(e) {
- var t = Z(e, this),
- n = t.length;
- return this.filter(function() {
- for (var e = 0; n > e; e++)
- if (Z.contains(this, t[e])) return !0
- })
- },
- closest: function(e, t) {
- for (var n, r = 0, i = this.length, o = [], s = oe.test(e) || "string" != typeof e ? Z(e, t || this.context) : 0; i > r; r++)
- for (n = this[r]; n && n !== t; n = n.parentNode)
- if (n.nodeType < 11 && (s ? s.index(n) > -1 : 1 === n.nodeType && Z.find.matchesSelector(n, e))) {
- o.push(n);
- break
- }
- return this.pushStack(o.length > 1 ? Z.unique(o) : o)
- },
- index: function(e) {
- return e ? "string" == typeof e ? X.call(Z(e), this[0]) : X.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1
- },
- add: function(e, t) {
- return this.pushStack(Z.unique(Z.merge(this.get(), Z(e, t))))
- },
- addBack: function(e) {
- return this.add(null == e ? this.prevObject : this.prevObject.filter(e))
- }
- }), Z.each({
- parent: function(e) {
- var t = e.parentNode;
- return t && 11 !== t.nodeType ? t : null
- },
- parents: function(e) {
- return Z.dir(e, "parentNode")
- },
- parentsUntil: function(e, t, n) {
- return Z.dir(e, "parentNode", n)
- },
- next: function(e) {
- return i(e, "nextSibling")
- },
- prev: function(e) {
- return i(e, "previousSibling")
- },
- nextAll: function(e) {
- return Z.dir(e, "nextSibling")
- },
- prevAll: function(e) {
- return Z.dir(e, "previousSibling")
- },
- nextUntil: function(e, t, n) {
- return Z.dir(e, "nextSibling", n)
- },
- prevUntil: function(e, t, n) {
- return Z.dir(e, "previousSibling", n)
- },
- siblings: function(e) {
- return Z.sibling((e.parentNode || {}).firstChild, e)
- },
- children: function(e) {
- return Z.sibling(e.firstChild)
- },
- contents: function(e) {
- return e.contentDocument || Z.merge([], e.childNodes)
- }
- }, function(e, t) {
- Z.fn[e] = function(n, r) {
- var i = Z.map(this, t, n);
- return "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = Z.filter(r, i)), this.length > 1 && (pe[e] || Z.unique(i), fe.test(e) && i.reverse()), this.pushStack(i)
- }
- });
- var de = /\S+/g,
- he = {};
- Z.Callbacks = function(e) {
- e = "string" == typeof e ? he[e] || o(e) : Z.extend({}, e);
- var t, n, r, i, s, a, u = [],
- l = !e.once && [],
- c = function(o) {
- for (t = e.memory && o, n = !0, a = i || 0, i = 0, s = u.length, r = !0; u && s > a; a++)
- if (u[a].apply(o[0], o[1]) === !1 && e.stopOnFalse) {
- t = !1;
- break
- }
- r = !1, u && (l ? l.length && c(l.shift()) : t ? u = [] : f.disable())
- },
- f = {
- add: function() {
- if (u) {
- var n = u.length;
- ! function o(t) {
- Z.each(t, function(t, n) {
- var r = Z.type(n);
- "function" === r ? e.unique && f.has(n) || u.push(n) : n && n.length && "string" !== r && o(n)
- })
- }(arguments), r ? s = u.length : t && (i = n, c(t))
- }
- return this
- },
- remove: function() {
- return u && Z.each(arguments, function(e, t) {
- for (var n;
- (n = Z.inArray(t, u, n)) > -1;) u.splice(n, 1), r && (s >= n && s--, a >= n && a--)
- }), this
- },
- has: function(e) {
- return e ? Z.inArray(e, u) > -1 : !(!u || !u.length)
- },
- empty: function() {
- return u = [], s = 0, this
- },
- disable: function() {
- return u = l = t = void 0, this
- },
- disabled: function() {
- return !u
- },
- lock: function() {
- return l = void 0, t || f.disable(), this
- },
- locked: function() {
- return !l
- },
- fireWith: function(e, t) {
- return !u || n && !l || (t = t || [], t = [e, t.slice ? t.slice() : t], r ? l.push(t) : c(t)), this
- },
- fire: function() {
- return f.fireWith(this, arguments), this
- },
- fired: function() {
- return !!n
- }
- };
- return f
- }, Z.extend({
- Deferred: function(e) {
- var t = [
- ["resolve", "done", Z.Callbacks("once memory"), "resolved"],
- ["reject", "fail", Z.Callbacks("once memory"), "rejected"],
- ["notify", "progress", Z.Callbacks("memory")]
- ],
- n = "pending",
- r = {
- state: function() {
- return n
- },
- always: function() {
- return i.done(arguments).fail(arguments), this
- },
- then: function() {
- var e = arguments;
- return Z.Deferred(function(n) {
- Z.each(t, function(t, o) {
- var s = Z.isFunction(e[t]) && e[t];
- i[o[1]](function() {
- var e = s && s.apply(this, arguments);
- e && Z.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[o[0] + "With"](this === r ? n.promise() : this, s ? [e] : arguments)
- })
- }), e = null
- }).promise()
- },
- promise: function(e) {
- return null != e ? Z.extend(e, r) : r
- }
- },
- i = {};
- return r.pipe = r.then, Z.each(t, function(e, o) {
- var s = o[2],
- a = o[3];
- r[o[1]] = s.add, a && s.add(function() {
- n = a
- }, t[1 ^ e][2].disable, t[2][2].lock), i[o[0]] = function() {
- return i[o[0] + "With"](this === i ? r : this, arguments), this
- }, i[o[0] + "With"] = s.fireWith
- }), r.promise(i), e && e.call(i, i), i
- },
- when: function(e) {
- var t = 0,
- n = _.call(arguments),
- r = n.length,
- i = 1 !== r || e && Z.isFunction(e.promise) ? r : 0,
- o = 1 === i ? e : Z.Deferred(),
- s = function(e, t, n) {
- return function(r) {
- t[e] = this, n[e] = arguments.length > 1 ? _.call(arguments) : r, n === a ? o.notifyWith(t, n) : --i || o.resolveWith(t, n)
- }
- },
- a, u, l;
- if (r > 1)
- for (a = new Array(r), u = new Array(r), l = new Array(r); r > t; t++) n[t] && Z.isFunction(n[t].promise) ? n[t].promise().done(s(t, l, n)).fail(o.reject).progress(s(t, u, a)) : --i;
- return i || o.resolveWith(l, n), o.promise()
- }
- });
- var ge;
- Z.fn.ready = function(e) {
- return Z.ready.promise().done(e), this
- }, Z.extend({
- isReady: !1,
- readyWait: 1,
- holdReady: function(e) {
- e ? Z.readyWait++ : Z.ready(!0)
- },
- ready: function(e) {
- (e === !0 ? --Z.readyWait : Z.isReady) || (Z.isReady = !0, e !== !0 && --Z.readyWait > 0 || (ge.resolveWith(J, [Z]), Z.fn.triggerHandler && (Z(J).triggerHandler("ready"), Z(J).off("ready"))))
- }
- }), Z.ready.promise = function(t) {
- return ge || (ge = Z.Deferred(), "complete" === J.readyState ? setTimeout(Z.ready) : (J.addEventListener("DOMContentLoaded", s, !1), e.addEventListener("load", s, !1))), ge.promise(t)
- }, Z.ready.promise();
- var me = Z.access = function(e, t, n, r, i, o, s) {
- var a = 0,
- u = e.length,
- l = null == n;
- if ("object" === Z.type(n)) {
- i = !0;
- for (a in n) Z.access(e, t, a, n[a], !0, o, s)
- } else if (void 0 !== r && (i = !0, Z.isFunction(r) || (s = !0), l && (s ? (t.call(e, r), t = null) : (l = t, t = function(e, t, n) {
- return l.call(Z(e), n)
- })), t))
- for (; u > a; a++) t(e[a], n, s ? r : r.call(e[a], a, t(e[a], n)));
- return i ? e : l ? t.call(e) : u ? t(e[0], n) : o
- };
- Z.acceptData = function(e) {
- return 1 === e.nodeType || 9 === e.nodeType || !+e.nodeType
- }, a.uid = 1, a.accepts = Z.acceptData, a.prototype = {
- key: function(e) {
- if (!a.accepts(e)) return 0;
- var t = {},
- n = e[this.expando];
- if (!n) {
- n = a.uid++;
- try {
- t[this.expando] = {
- value: n
- }, Object.defineProperties(e, t)
- } catch (r) {
- t[this.expando] = n, Z.extend(e, t)
- }
- }
- return this.cache[n] || (this.cache[n] = {}), n
- },
- set: function(e, t, n) {
- var r, i = this.key(e),
- o = this.cache[i];
- if ("string" == typeof t) o[t] = n;
- else if (Z.isEmptyObject(o)) Z.extend(this.cache[i], t);
- else
- for (r in t) o[r] = t[r];
- return o
- },
- get: function(e, t) {
- var n = this.cache[this.key(e)];
- return void 0 === t ? n : n[t]
- },
- access: function(e, t, n) {
- var r;
- return void 0 === t || t && "string" == typeof t && void 0 === n ? (r = this.get(e, t), void 0 !== r ? r : this.get(e, Z.camelCase(t))) : (this.set(e, t, n), void 0 !== n ? n : t)
- },
- remove: function(e, t) {
- var n, r, i, o = this.key(e),
- s = this.cache[o];
- if (void 0 === t) this.cache[o] = {};
- else {
- Z.isArray(t) ? r = t.concat(t.map(Z.camelCase)) : (i = Z.camelCase(t), t in s ? r = [t, i] : (r = i, r = r in s ? [r] : r.match(de) || [])), n = r.length;
- for (; n--;) delete s[r[n]]
- }
- },
- hasData: function(e) {
- return !Z.isEmptyObject(this.cache[e[this.expando]] || {})
- },
- discard: function(e) {
- e[this.expando] && delete this.cache[e[this.expando]]
- }
- };
- var ve = new a,
- ye = new a,
- xe = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
- be = /([A-Z])/g;
- Z.extend({
- hasData: function(e) {
- return ye.hasData(e) || ve.hasData(e)
- },
- data: function(e, t, n) {
- return ye.access(e, t, n)
- },
- removeData: function(e, t) {
- ye.remove(e, t)
- },
- _data: function(e, t, n) {
- return ve.access(e, t, n)
- },
- _removeData: function(e, t) {
- ve.remove(e, t)
- }
- }), Z.fn.extend({
- data: function(e, t) {
- var n, r, i, o = this[0],
- s = o && o.attributes;
- if (void 0 === e) {
- if (this.length && (i = ye.get(o), 1 === o.nodeType && !ve.get(o, "hasDataAttrs"))) {
- for (n = s.length; n--;) s[n] && (r = s[n].name, 0 === r.indexOf("data-") && (r = Z.camelCase(r.slice(5)), u(o, r, i[r])));
- ve.set(o, "hasDataAttrs", !0)
- }
- return i
- }
- return "object" == typeof e ? this.each(function() {
- ye.set(this, e)
- }) : me(this, function(t) {
- var n, r = Z.camelCase(e);
- if (o && void 0 === t) {
- if (n = ye.get(o, e), void 0 !== n) return n;
- if (n = ye.get(o, r), void 0 !== n) return n;
- if (n = u(o, r, void 0), void 0 !== n) return n
- } else this.each(function() {
- var n = ye.get(this, r);
- ye.set(this, r, t), -1 !== e.indexOf("-") && void 0 !== n && ye.set(this, e, t)
- })
- }, null, t, arguments.length > 1, null, !0)
- },
- removeData: function(e) {
- return this.each(function() {
- ye.remove(this, e)
- })
- }
- }), Z.extend({
- queue: function(e, t, n) {
- var r;
- return e ? (t = (t || "fx") + "queue", r = ve.get(e, t), n && (!r || Z.isArray(n) ? r = ve.access(e, t, Z.makeArray(n)) : r.push(n)), r || []) : void 0
- },
- dequeue: function(e, t) {
- t = t || "fx";
- var n = Z.queue(e, t),
- r = n.length,
- i = n.shift(),
- o = Z._queueHooks(e, t),
- s = function() {
- Z.dequeue(e, t)
- };
- "inprogress" === i && (i = n.shift(), r--), i && ("fx" === t && n.unshift("inprogress"), delete o.stop, i.call(e, s, o)), !r && o && o.empty.fire()
- },
- _queueHooks: function(e, t) {
- var n = t + "queueHooks";
- return ve.get(e, n) || ve.access(e, n, {
- empty: Z.Callbacks("once memory").add(function() {
- ve.remove(e, [t + "queue", n])
- })
- })
- }
- }), Z.fn.extend({
- queue: function(e, t) {
- var n = 2;
- return "string" != typeof e && (t = e, e = "fx", n--), arguments.length < n ? Z.queue(this[0], e) : void 0 === t ? this : this.each(function() {
- var n = Z.queue(this, e, t);
- Z._queueHooks(this, e), "fx" === e && "inprogress" !== n[0] && Z.dequeue(this, e)
- })
- },
- dequeue: function(e) {
- return this.each(function() {
- Z.dequeue(this, e)
- })
- },
- clearQueue: function(e) {
- return this.queue(e || "fx", [])
- },
- promise: function(e, t) {
- var n, r = 1,
- i = Z.Deferred(),
- o = this,
- s = this.length,
- a = function() {
- --r || i.resolveWith(o, [o])
- };
- for ("string" != typeof e && (t = e, e = void 0), e = e || "fx"; s--;) n = ve.get(o[s], e + "queueHooks"), n && n.empty && (r++, n.empty.add(a));
- return a(), i.promise(t)
- }
- });
- var we = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,
- Ce = ["Top", "Right", "Bottom", "Left"],
- Te = function(e, t) {
- return e = t || e, "none" === Z.css(e, "display") || !Z.contains(e.ownerDocument, e)
- },
- Ne = /^(?:checkbox|radio)$/i;
- ! function() {
- var e = J.createDocumentFragment(),
- t = e.appendChild(J.createElement("div")),
- n = J.createElement("input");
- n.setAttribute("type", "radio"), n.setAttribute("checked", "checked"), n.setAttribute("name", "t"), t.appendChild(n), G.checkClone = t.cloneNode(!0).cloneNode(!0).lastChild.checked, t.innerHTML = "<textarea>x</textarea>", G.noCloneChecked = !!t.cloneNode(!0).lastChild.defaultValue
- }();
- var ke = "undefined";
- G.focusinBubbles = "onfocusin" in e;
- var Ee = /^key/,
- Se = /^(?:mouse|pointer|contextmenu)|click/,
- je = /^(?:focusinfocus|focusoutblur)$/,
- De = /^([^.]*)(?:\.(.+)|)$/;
- Z.event = {
- global: {},
- add: function(e, t, n, r, i) {
- var o, s, a, u, l, c, f, p, d, h, g, m = ve.get(e);
- if (m)
- for (n.handler && (o = n, n = o.handler, i = o.selector), n.guid || (n.guid = Z.guid++), (u = m.events) || (u = m.events = {}), (s = m.handle) || (s = m.handle = function(t) {
- return typeof Z !== ke && Z.event.triggered !== t.type ? Z.event.dispatch.apply(e, arguments) : void 0
- }), t = (t || "").match(de) || [""], l = t.length; l--;) a = De.exec(t[l]) || [], d = g = a[1], h = (a[2] || "").split(".").sort(), d && (f = Z.event.special[d] || {}, d = (i ? f.delegateType : f.bindType) || d, f = Z.event.special[d] || {}, c = Z.extend({
- type: d,
- origType: g,
- data: r,
- handler: n,
- guid: n.guid,
- selector: i,
- needsContext: i && Z.expr.match.needsContext.test(i),
- namespace: h.join(".")
- }, o), (p = u[d]) || (p = u[d] = [], p.delegateCount = 0, f.setup && f.setup.call(e, r, h, s) !== !1 || e.addEventListener && e.addEventListener(d, s, !1)), f.add && (f.add.call(e, c), c.handler.guid || (c.handler.guid = n.guid)), i ? p.splice(p.delegateCount++, 0, c) : p.push(c), Z.event.global[d] = !0)
- },
- remove: function(e, t, n, r, i) {
- var o, s, a, u, l, c, f, p, d, h, g, m = ve.hasData(e) && ve.get(e);
- if (m && (u = m.events)) {
- for (t = (t || "").match(de) || [""], l = t.length; l--;)
- if (a = De.exec(t[l]) || [], d = g = a[1], h = (a[2] || "").split(".").sort(), d) {
- for (f = Z.event.special[d] || {}, d = (r ? f.delegateType : f.bindType) || d, p = u[d] || [], a = a[2] && new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)"), s = o = p.length; o--;) c = p[o], !i && g !== c.origType || n && n.guid !== c.guid || a && !a.test(c.namespace) || r && r !== c.selector && ("**" !== r || !c.selector) || (p.splice(o, 1), c.selector && p.delegateCount--, f.remove && f.remove.call(e, c));
- s && !p.length && (f.teardown && f.teardown.call(e, h, m.handle) !== !1 || Z.removeEvent(e, d, m.handle), delete u[d])
- } else
- for (d in u) Z.event.remove(e, d + t[l], n, r, !0);
- Z.isEmptyObject(u) && (delete m.handle, ve.remove(e, "events"))
- }
- },
- trigger: function(t, n, r, i) {
- var o, s, a, u, l, c, f, p = [r || J],
- d = Q.call(t, "type") ? t.type : t,
- h = Q.call(t, "namespace") ? t.namespace.split(".") : [];
- if (s = a = r = r || J, 3 !== r.nodeType && 8 !== r.nodeType && !je.test(d + Z.event.triggered) && (d.indexOf(".") >= 0 && (h = d.split("."), d = h.shift(), h.sort()), l = d.indexOf(":") < 0 && "on" + d, t = t[Z.expando] ? t : new Z.Event(d, "object" == typeof t && t), t.isTrigger = i ? 2 : 3, t.namespace = h.join("."), t.namespace_re = t.namespace ? new RegExp("(^|\\.)" + h.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = void 0, t.target || (t.target = r), n = null == n ? [t] : Z.makeArray(n, [t]), f = Z.event.special[d] || {}, i || !f.trigger || f.trigger.apply(r, n) !== !1)) {
- if (!i && !f.noBubble && !Z.isWindow(r)) {
- for (u = f.delegateType || d, je.test(u + d) || (s = s.parentNode); s; s = s.parentNode) p.push(s), a = s;
- a === (r.ownerDocument || J) && p.push(a.defaultView || a.parentWindow || e)
- }
- for (o = 0;
- (s = p[o++]) && !t.isPropagationStopped();) t.type = o > 1 ? u : f.bindType || d, c = (ve.get(s, "events") || {})[t.type] && ve.get(s, "handle"), c && c.apply(s, n), c = l && s[l], c && c.apply && Z.acceptData(s) && (t.result = c.apply(s, n), t.result === !1 && t.preventDefault());
- return t.type = d, i || t.isDefaultPrevented() || f._default && f._default.apply(p.pop(), n) !== !1 || !Z.acceptData(r) || l && Z.isFunction(r[d]) && !Z.isWindow(r) && (a = r[l], a && (r[l] = null), Z.event.triggered = d, r[d](), Z.event.triggered = void 0, a && (r[l] = a)), t.result
- }
- },
- dispatch: function(e) {
- e = Z.event.fix(e);
- var t, n, r, i, o, s = [],
- a = _.call(arguments),
- u = (ve.get(this, "events") || {})[e.type] || [],
- l = Z.event.special[e.type] || {};
- if (a[0] = e, e.delegateTarget = this, !l.preDispatch || l.preDispatch.call(this, e) !== !1) {
- for (s = Z.event.handlers.call(this, e, u), t = 0;
- (i = s[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, r = ((Z.event.special[o.origType] || {}).handle || o.handler).apply(i.elem, a), void 0 !== r && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation()));
- return l.postDispatch && l.postDispatch.call(this, e), e.result
- }
- },
- handlers: function(e, t) {
- var n, r, i, o, s = [],
- a = t.delegateCount,
- u = e.target;
- if (a && u.nodeType && (!e.button || "click" !== e.type))
- for (; u !== this; u = u.parentNode || this)
- if (u.disabled !== !0 || "click" !== e.type) {
- for (r = [], n = 0; a > n; n++) o = t[n], i = o.selector + " ", void 0 === r[i] && (r[i] = o.needsContext ? Z(i, this).index(u) >= 0 : Z.find(i, this, null, [u]).length), r[i] && r.push(o);
- r.length && s.push({
- elem: u,
- handlers: r
- })
- }
- 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, r, i, o = t.button;
- return null == e.pageX && null != t.clientX && (n = e.target.ownerDocument || J, r = n.documentElement, i = n.body, e.pageX = t.clientX + (r && r.scrollLeft || i && i.scrollLeft || 0) - (r && r.clientLeft || i && i.clientLeft || 0), e.pageY = t.clientY + (r && r.scrollTop || i && i.scrollTop || 0) - (r && r.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[Z.expando]) return e;
- var t, n, r, i = e.type,
- o = e,
- s = this.fixHooks[i];
- for (s || (this.fixHooks[i] = s = Se.test(i) ? this.mouseHooks : Ee.test(i) ? this.keyHooks : {}), r = s.props ? this.props.concat(s.props) : this.props, e = new Z.Event(o), t = r.length; t--;) n = r[t], e[n] = o[n];
- return e.target || (e.target = J), 3 === e.target.nodeType && (e.target = e.target.parentNode), s.filter ? s.filter(e, o) : e
- },
- special: {
- load: {
- noBubble: !0
- },
- focus: {
- trigger: function() {
- return this !== c() && this.focus ? (this.focus(), !1) : void 0
- },
- delegateType: "focusin"
- },
- blur: {
- trigger: function() {
- return this === c() && this.blur ? (this.blur(), !1) : void 0
- },
- delegateType: "focusout"
- },
- click: {
- trigger: function() {
- return "checkbox" === this.type && this.click && Z.nodeName(this, "input") ? (this.click(), !1) : void 0
- },
- _default: function(e) {
- return Z.nodeName(e.target, "a")
- }
- },
- beforeunload: {
- postDispatch: function(e) {
- void 0 !== e.result && e.originalEvent && (e.originalEvent.returnValue = e.result)
- }
- }
- },
- simulate: function(e, t, n, r) {
- var i = Z.extend(new Z.Event, n, {
- type: e,
- isSimulated: !0,
- originalEvent: {}
- });
- r ? Z.event.trigger(i, null, t) : Z.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault()
- }
- }, Z.removeEvent = function(e, t, n) {
- e.removeEventListener && e.removeEventListener(t, n, !1)
- }, Z.Event = function(e, t) {
- return this instanceof Z.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || void 0 === e.defaultPrevented && e.returnValue === !1 ? l : $) : this.type = e, t && Z.extend(this, t), this.timeStamp = e && e.timeStamp || Z.now(), void(this[Z.expando] = !0)) : new Z.Event(e, t)
- }, Z.Event.prototype = {
- isDefaultPrevented: $,
- isPropagationStopped: $,
- isImmediatePropagationStopped: $,
- preventDefault: function() {
- var e = this.originalEvent;
- this.isDefaultPrevented = l, e && e.preventDefault && e.preventDefault()
- },
- stopPropagation: function() {
- var e = this.originalEvent;
- this.isPropagationStopped = l, e && e.stopPropagation && e.stopPropagation()
- },
- stopImmediatePropagation: function() {
- var e = this.originalEvent;
- this.isImmediatePropagationStopped = l, e && e.stopImmediatePropagation && e.stopImmediatePropagation(), this.stopPropagation()
- }
- }, Z.each({
- mouseenter: "mouseover",
- mouseleave: "mouseout",
- pointerenter: "pointerover",
- pointerleave: "pointerout"
- }, function(e, t) {
- Z.event.special[e] = {
- delegateType: t,
- bindType: t,
- handle: function(e) {
- var n, r = this,
- i = e.relatedTarget,
- o = e.handleObj;
- return (!i || i !== r && !Z.contains(r, i)) && (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n
- }
- }
- }), G.focusinBubbles || Z.each({
- focus: "focusin",
- blur: "focusout"
- }, function(e, t) {
- var n = function(e) {
- Z.event.simulate(t, e.target, Z.event.fix(e), !0)
- };
- Z.event.special[t] = {
- setup: function() {
- var r = this.ownerDocument || this,
- i = ve.access(r, t);
- i || r.addEventListener(e, n, !0), ve.access(r, t, (i || 0) + 1)
- },
- teardown: function() {
- var r = this.ownerDocument || this,
- i = ve.access(r, t) - 1;
- i ? ve.access(r, t, i) : (r.removeEventListener(e, n, !0), ve.remove(r, t))
- }
- }
- }), Z.fn.extend({
- on: function(e, t, n, r, i) {
- var o, s;
- if ("object" == typeof e) {
- "string" != typeof t && (n = n || t, t = void 0);
- for (s in e) this.on(s, t, n, e[s], i);
- return this
- }
- if (null == n && null == r ? (r = t, n = t = void 0) : null == r && ("string" == typeof t ? (r = n, n = void 0) : (r = n, n = t, t = void 0)), r === !1) r = $;
- else if (!r) return this;
- return 1 === i && (o = r, r = function(e) {
- return Z().off(e), o.apply(this, arguments)
- }, r.guid = o.guid || (o.guid = Z.guid++)), this.each(function() {
- Z.event.add(this, e, r, n, t)
- })
- },
- one: function(e, t, n, r) {
- return this.on(e, t, n, r, 1)
- },
- off: function(e, t, n) {
- var r, i;
- if (e && e.preventDefault && e.handleObj) return r = e.handleObj, Z(e.delegateTarget).off(r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, r.handler), this;
- if ("object" == typeof e) {
- for (i in e) this.off(i, t, e[i]);
- return this
- }
- return (t === !1 || "function" == typeof t) && (n = t, t = void 0), n === !1 && (n = $), this.each(function() {
- Z.event.remove(this, e, n, t)
- })
- },
- trigger: function(e, t) {
- return this.each(function() {
- Z.event.trigger(e, t, this)
- })
- },
- triggerHandler: function(e, t) {
- var n = this[0];
- return n ? Z.event.trigger(e, t, n, !0) : void 0
- }
- });
- var Ae = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
- Le = /<([\w:]+)/,
- He = /<|&#?\w+;/,
- qe = /<(?:script|style|link)/i,
- Oe = /checked\s*(?:[^=]|=\s*.checked.)/i,
- Pe = /^$|\/(?:java|ecma)script/i,
- Fe = /^true\/(.*)/,
- $e = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g,
- Me = {
- option: [1, "<select multiple='multiple'>", "</select>"],
- thead: [1, "<table>", "</table>"],
- col: [2, "<table><colgroup>", "</colgroup></table>"],
- tr: [2, "<table><tbody>", "</tbody></table>"],
- td: [3, "<table><tbody><tr>", "</tr></tbody></table>"],
- _default: [0, "", ""]
- };
- Me.optgroup = Me.option, Me.tbody = Me.tfoot = Me.colgroup = Me.caption = Me.thead, Me.th = Me.td, Z.extend({
- clone: function(e, t, n) {
- var r, i, o, s, a = e.cloneNode(!0),
- u = Z.contains(e.ownerDocument, e);
- if (!(G.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || Z.isXMLDoc(e)))
- for (s = m(a), o = m(e), r = 0, i = o.length; i > r; r++) v(o[r], s[r]);
- if (t)
- if (n)
- for (o = o || m(e), s = s || m(a), r = 0, i = o.length; i > r; r++) g(o[r], s[r]);
- else g(e, a);
- return s = m(a, "script"), s.length > 0 && h(s, !u && m(e, "script")), a
- },
- buildFragment: function(e, t, n, r) {
- for (var i, o, s, a, u, l, c = t.createDocumentFragment(), f = [], p = 0, d = e.length; d > p; p++)
- if (i = e[p], i || 0 === i)
- if ("object" === Z.type(i)) Z.merge(f, i.nodeType ? [i] : i);
- else if (He.test(i)) {
- for (o = o || c.appendChild(t.createElement("div")), s = (Le.exec(i) || ["", ""])[1].toLowerCase(), a = Me[s] || Me._default, o.innerHTML = a[1] + i.replace(Ae, "<$1></$2>") + a[2], l = a[0]; l--;) o = o.lastChild;
- Z.merge(f, o.childNodes), o = c.firstChild, o.textContent = ""
- } else f.push(t.createTextNode(i));
- for (c.textContent = "", p = 0; i = f[p++];)
- if ((!r || -1 === Z.inArray(i, r)) && (u = Z.contains(i.ownerDocument, i), o = m(c.appendChild(i), "script"), u && h(o), n))
- for (l = 0; i = o[l++];) Pe.test(i.type || "") && n.push(i);
- return c
- },
- cleanData: function(e) {
- for (var t, n, r, i, o = Z.event.special, s = 0; void 0 !== (n = e[s]); s++) {
- if (Z.acceptData(n) && (i = n[ve.expando], i && (t = ve.cache[i]))) {
- if (t.events)
- for (r in t.events) o[r] ? Z.event.remove(n, r) : Z.removeEvent(n, r, t.handle);
- ve.cache[i] && delete ve.cache[i]
- }
- delete ye.cache[n[ye.expando]]
- }
- }
- }), Z.fn.extend({
- text: function(e) {
- return me(this, function(e) {
- return void 0 === e ? Z.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) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var t = f(this, e);
- t.appendChild(e)
- }
- })
- },
- prepend: function() {
- return this.domManip(arguments, function(e) {
- if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) {
- var t = f(this, e);
- t.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, r = e ? Z.filter(e, this) : this, i = 0; null != (n = r[i]); i++) t || 1 !== n.nodeType || Z.cleanData(m(n)), n.parentNode && (t && Z.contains(n.ownerDocument, n) && h(m(n, "script")), n.parentNode.removeChild(n));
- return this
- },
- empty: function() {
- for (var e, t = 0; null != (e = this[t]); t++) 1 === e.nodeType && (Z.cleanData(m(e, !1)), e.textContent = "");
- return this
- },
- clone: function(e, t) {
- return e = null == e ? !1 : e, t = null == t ? e : t, this.map(function() {
- return Z.clone(this, e, t)
- })
- },
- html: function(e) {
- return me(this, function(e) {
- var t = this[0] || {},
- n = 0,
- r = this.length;
- if (void 0 === e && 1 === t.nodeType) return t.innerHTML;
- if ("string" == typeof e && !qe.test(e) && !Me[(Le.exec(e) || ["", ""])[1].toLowerCase()]) {
- e = e.replace(Ae, "<$1></$2>");
- try {
- for (; r > n; n++) t = this[n] || {}, 1 === t.nodeType && (Z.cleanData(m(t, !1)), t.innerHTML = e);
- t = 0
- } catch (i) {}
- }
- t && this.empty().append(e)
- }, null, e, arguments.length)
- },
- replaceWith: function() {
- var e = arguments[0];
- return this.domManip(arguments, function(t) {
- e = this.parentNode, Z.cleanData(m(this)), e && e.replaceChild(t, this)
- }), e && (e.length || e.nodeType) ? this : this.remove()
- },
- detach: function(e) {
- return this.remove(e, !0)
- },
- domManip: function(e, t) {
- e = z.apply([], e);
- var n, r, i, o, s, a, u = 0,
- l = this.length,
- c = this,
- f = l - 1,
- h = e[0],
- g = Z.isFunction(h);
- if (g || l > 1 && "string" == typeof h && !G.checkClone && Oe.test(h)) return this.each(function(n) {
- var r = c.eq(n);
- g && (e[0] = h.call(this, n, r.html())), r.domManip(e, t)
- });
- if (l && (n = Z.buildFragment(e, this[0].ownerDocument, !1, this), r = n.firstChild, 1 === n.childNodes.length && (n = r), r)) {
- for (i = Z.map(m(n, "script"), p), o = i.length; l > u; u++) s = n, u !== f && (s = Z.clone(s, !0, !0), o && Z.merge(i, m(s, "script"))), t.call(this[u], s, u);
- if (o)
- for (a = i[i.length - 1].ownerDocument, Z.map(i, d), u = 0; o > u; u++) s = i[u], Pe.test(s.type || "") && !ve.access(s, "globalEval") && Z.contains(a, s) && (s.src ? Z._evalUrl && Z._evalUrl(s.src) : Z.globalEval(s.textContent.replace($e, "")))
- }
- return this
- }
- }), Z.each({
- appendTo: "append",
- prependTo: "prepend",
- insertBefore: "before",
- insertAfter: "after",
- replaceAll: "replaceWith"
- }, function(e, t) {
- Z.fn[e] = function(e) {
- for (var n, r = [], i = Z(e), o = i.length - 1, s = 0; o >= s; s++) n = s === o ? this : this.clone(!0), Z(i[s])[t](n), U.apply(r, n.get());
- return this.pushStack(r)
- }
- });
- var Re, Ie = {},
- We = /^margin/,
- Be = new RegExp("^(" + we + ")(?!px)[a-z%]+$", "i"),
- _e = function(t) {
- return t.ownerDocument.defaultView.opener ? t.ownerDocument.defaultView.getComputedStyle(t, null) : e.getComputedStyle(t, null)
- };
- ! function() {
- function t() {
- s.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;display:block;margin-top:1%;top:1%;border:1px;padding:1px;width:4px;position:absolute", s.innerHTML = "", i.appendChild(o);
- var t = e.getComputedStyle(s, null);
- n = "1%" !== t.top, r = "4px" === t.width, i.removeChild(o)
- }
- var n, r, i = J.documentElement,
- o = J.createElement("div"),
- s = J.createElement("div");
- s.style && (s.style.backgroundClip = "content-box", s.cloneNode(!0).style.backgroundClip = "", G.clearCloneStyle = "content-box" === s.style.backgroundClip, o.style.cssText = "border:0;width:0;height:0;top:0;left:-9999px;margin-top:1px;position:absolute", o.appendChild(s), e.getComputedStyle && Z.extend(G, {
- pixelPosition: function() {
- return t(), n
- },
- boxSizingReliable: function() {
- return null == r && t(), r
- },
- reliableMarginRight: function() {
- var t, n = s.appendChild(J.createElement("div"));
- return n.style.cssText = s.style.cssText = "-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;display:block;margin:0;border:0;padding:0", n.style.marginRight = n.style.width = "0", s.style.width = "1px", i.appendChild(o), t = !parseFloat(e.getComputedStyle(n, null).marginRight), i.removeChild(o), s.removeChild(n), t
- }
- }))
- }(), Z.swap = function(e, t, n, r) {
- var i, o, s = {};
- for (o in t) s[o] = e.style[o], e.style[o] = t[o];
- i = n.apply(e, r || []);
- for (o in t) e.style[o] = s[o];
- return i
- };
- var ze = /^(none|table(?!-c[ea]).+)/,
- Ue = new RegExp("^(" + we + ")(.*)$", "i"),
- Xe = new RegExp("^([+-])=(" + we + ")", "i"),
- Ve = {
- position: "absolute",
- visibility: "hidden",
- display: "block"
- },
- Ye = {
- letterSpacing: "0",
- fontWeight: "400"
- },
- Qe = ["Webkit", "O", "Moz", "ms"];
- Z.extend({
- cssHooks: {
- opacity: {
- get: function(e, t) {
- if (t) {
- var n = b(e, "opacity");
- return "" === n ? "1" : n
- }
- }
- }
- },
- cssNumber: {
- columnCount: !0,
- fillOpacity: !0,
- flexGrow: !0,
- flexShrink: !0,
- fontWeight: !0,
- lineHeight: !0,
- opacity: !0,
- order: !0,
- orphans: !0,
- widows: !0,
- zIndex: !0,
- zoom: !0
- },
- cssProps: {
- "float": "cssFloat"
- },
- style: function(e, t, n, r) {
- if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) {
- var i, o, s, a = Z.camelCase(t),
- u = e.style;
- return t = Z.cssProps[a] || (Z.cssProps[a] = C(u, a)), s = Z.cssHooks[t] || Z.cssHooks[a], void 0 === n ? s && "get" in s && void 0 !== (i = s.get(e, !1, r)) ? i : u[t] : (o = typeof n, "string" === o && (i = Xe.exec(n)) && (n = (i[1] + 1) * i[2] + parseFloat(Z.css(e, t)), o = "number"), void(null != n && n === n && ("number" !== o || Z.cssNumber[a] || (n += "px"), G.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (u[t] = "inherit"), s && "set" in s && void 0 === (n = s.set(e, n, r)) || (u[t] = n))))
- }
- },
- css: function(e, t, n, r) {
- var i, o, s, a = Z.camelCase(t);
- return t = Z.cssProps[a] || (Z.cssProps[a] = C(e.style, a)), s = Z.cssHooks[t] || Z.cssHooks[a], s && "get" in s && (i = s.get(e, !0, n)), void 0 === i && (i = b(e, t, r)), "normal" === i && t in Ye && (i = Ye[t]), "" === n || n ? (o = parseFloat(i), n === !0 || Z.isNumeric(o) ? o || 0 : i) : i
- }
- }), Z.each(["height", "width"], function(e, t) {
- Z.cssHooks[t] = {
- get: function(e, n, r) {
- return n ? ze.test(Z.css(e, "display")) && 0 === e.offsetWidth ? Z.swap(e, Ve, function() {
- return k(e, t, r)
- }) : k(e, t, r) : void 0
- },
- set: function(e, n, r) {
- var i = r && _e(e);
- return T(e, n, r ? N(e, t, r, "border-box" === Z.css(e, "boxSizing", !1, i), i) : 0)
- }
- }
- }), Z.cssHooks.marginRight = w(G.reliableMarginRight, function(e, t) {
- return t ? Z.swap(e, {
- display: "inline-block"
- }, b, [e, "marginRight"]) : void 0
- }), Z.each({
- margin: "",
- padding: "",
- border: "Width"
- }, function(e, t) {
- Z.cssHooks[e + t] = {
- expand: function(n) {
- for (var r = 0, i = {}, o = "string" == typeof n ? n.split(" ") : [n]; 4 > r; r++) i[e + Ce[r] + t] = o[r] || o[r - 2] || o[0];
- return i
- }
- }, We.test(e) || (Z.cssHooks[e + t].set = T)
- }), Z.fn.extend({
- css: function(e, t) {
- return me(this, function(e, t, n) {
- var r, i, o = {},
- s = 0;
- if (Z.isArray(t)) {
- for (r = _e(e), i = t.length; i > s; s++) o[t[s]] = Z.css(e, t[s], !1, r);
- return o
- }
- return void 0 !== n ? Z.style(e, t, n) : Z.css(e, t)
- }, e, t, arguments.length > 1)
- },
- show: function() {
- return E(this, !0)
- },
- hide: function() {
- return E(this)
- },
- toggle: function(e) {
- return "boolean" == typeof e ? e ? this.show() : this.hide() : this.each(function() {
- Te(this) ? Z(this).show() : Z(this).hide()
- })
- }
- }), Z.Tween = S, S.prototype = {
- constructor: S,
- init: function(e, t, n, r, i, o) {
- this.elem = e, this.prop = n, this.easing = i || "swing", this.options = t, this.start = this.now = this.cur(), this.end = r, this.unit = o || (Z.cssNumber[n] ? "" : "px")
- },
- cur: function() {
- var e = S.propHooks[this.prop];
- return e && e.get ? e.get(this) : S.propHooks._default.get(this)
- },
- run: function(e) {
- var t, n = S.propHooks[this.prop];
- return this.options.duration ? this.pos = t = Z.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : this.pos = t = e, this.now = (this.end - this.start) * t + this.start, this.options.step && this.options.step.call(this.elem, this.now, this), n && n.set ? n.set(this) : S.propHooks._default.set(this), this
- }
- }, S.prototype.init.prototype = S.prototype, S.propHooks = {
- _default: {
- get: function(e) {
- var t;
- return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = Z.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0) : e.elem[e.prop]
- },
- set: function(e) {
- Z.fx.step[e.prop] ? Z.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[Z.cssProps[e.prop]] || Z.cssHooks[e.prop]) ? Z.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now
- }
- }
- }, S.propHooks.scrollTop = S.propHooks.scrollLeft = {
- set: function(e) {
- e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now)
- }
- }, Z.easing = {
- linear: function(e) {
- return e
- },
- swing: function(e) {
- return .5 - Math.cos(e * Math.PI) / 2
- }
- }, Z.fx = S.prototype.init, Z.fx.step = {};
- var Ge, Je, Ke = /^(?:toggle|show|hide)$/,
- Ze = new RegExp("^(?:([+-])=|)(" + we + ")([a-z%]*)$", "i"),
- et = /queueHooks$/,
- tt = [L],
- nt = {
- "*": [function(e, t) {
- var n = this.createTween(e, t),
- r = n.cur(),
- i = Ze.exec(t),
- o = i && i[3] || (Z.cssNumber[e] ? "" : "px"),
- s = (Z.cssNumber[e] || "px" !== o && +r) && Ze.exec(Z.css(n.elem, e)),
- a = 1,
- u = 20;
- if (s && s[3] !== o) {
- o = o || s[3], i = i || [], s = +r || 1;
- do a = a || ".5", s /= a, Z.style(n.elem, e, s + o); while (a !== (a = n.cur() / r) && 1 !== a && --u)
- }
- return i && (s = n.start = +s || +r || 0, n.unit = o, n.end = i[1] ? s + (i[1] + 1) * i[2] : +i[2]), n
- }]
- };
- Z.Animation = Z.extend(q, {
- tweener: function(e, t) {
- Z.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" ");
- for (var n, r = 0, i = e.length; i > r; r++) n = e[r], nt[n] = nt[n] || [], nt[n].unshift(t)
- },
- prefilter: function(e, t) {
- t ? tt.unshift(e) : tt.push(e)
- }
- }), Z.speed = function(e, t, n) {
- var r = e && "object" == typeof e ? Z.extend({}, e) : {
- complete: n || !n && t || Z.isFunction(e) && e,
- duration: e,
- easing: n && t || t && !Z.isFunction(t) && t
- };
- return r.duration = Z.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in Z.fx.speeds ? Z.fx.speeds[r.duration] : Z.fx.speeds._default, (null == r.queue || r.queue === !0) && (r.queue = "fx"), r.old = r.complete, r.complete = function() {
- Z.isFunction(r.old) && r.old.call(this), r.queue && Z.dequeue(this, r.queue)
- }, r
- }, Z.fn.extend({
- fadeTo: function(e, t, n, r) {
- return this.filter(Te).css("opacity", 0).show().end().animate({
- opacity: t
- }, e, n, r)
- },
- animate: function(e, t, n, r) {
- var i = Z.isEmptyObject(e),
- o = Z.speed(t, n, r),
- s = function() {
- var t = q(this, Z.extend({}, e), o);
- (i || ve.get(this, "finish")) && t.stop(!0)
- };
- return s.finish = s, i || o.queue === !1 ? this.each(s) : this.queue(o.queue, s)
- },
- stop: function(e, t, n) {
- var r = function(e) {
- var t = e.stop;
- delete e.stop, t(n)
- };
- return "string" != typeof e && (n = t, t = e, e = void 0), t && e !== !1 && this.queue(e || "fx", []), this.each(function() {
- var t = !0,
- i = null != e && e + "queueHooks",
- o = Z.timers,
- s = ve.get(this);
- if (i) s[i] && s[i].stop && r(s[i]);
- else
- for (i in s) s[i] && s[i].stop && et.test(i) && r(s[i]);
- for (i = o.length; i--;) o[i].elem !== this || null != e && o[i].queue !== e || (o[i].anim.stop(n), t = !1, o.splice(i, 1));
- (t || !n) && Z.dequeue(this, e)
- })
- },
- finish: function(e) {
- return e !== !1 && (e = e || "fx"), this.each(function() {
- var t, n = ve.get(this),
- r = n[e + "queue"],
- i = n[e + "queueHooks"],
- o = Z.timers,
- s = r ? r.length : 0;
- for (n.finish = !0, Z.queue(this, e, []), i && i.stop && i.stop.call(this, !0), t = o.length; t--;) o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0), o.splice(t, 1));
- for (t = 0; s > t; t++) r[t] && r[t].finish && r[t].finish.call(this);
- delete n.finish
- })
- }
- }), Z.each(["toggle", "show", "hide"], function(e, t) {
- var n = Z.fn[t];
- Z.fn[t] = function(e, r, i) {
- return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(D(t, !0), e, r, i)
- }
- }), Z.each({
- slideDown: D("show"),
- slideUp: D("hide"),
- slideToggle: D("toggle"),
- fadeIn: {
- opacity: "show"
- },
- fadeOut: {
- opacity: "hide"
- },
- fadeToggle: {
- opacity: "toggle"
- }
- }, function(e, t) {
- Z.fn[e] = function(e, n, r) {
- return this.animate(t, e, n, r)
- }
- }), Z.timers = [], Z.fx.tick = function() {
- var e, t = 0,
- n = Z.timers;
- for (Ge = Z.now(); t < n.length; t++) e = n[t], e() || n[t] !== e || n.splice(t--, 1);
- n.length || Z.fx.stop(), Ge = void 0
- }, Z.fx.timer = function(e) {
- Z.timers.push(e), e() ? Z.fx.start() : Z.timers.pop()
- }, Z.fx.interval = 13, Z.fx.start = function() {
- Je || (Je = setInterval(Z.fx.tick, Z.fx.interval))
- }, Z.fx.stop = function() {
- clearInterval(Je), Je = null
- }, Z.fx.speeds = {
- slow: 600,
- fast: 200,
- _default: 400
- }, Z.fn.delay = function(e, t) {
- return e = Z.fx ? Z.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function(t, n) {
- var r = setTimeout(t, e);
- n.stop = function() {
- clearTimeout(r)
- }
- })
- },
- function() {
- var e = J.createElement("input"),
- t = J.createElement("select"),
- n = t.appendChild(J.createElement("option"));
- e.type = "checkbox", G.checkOn = "" !== e.value, G.optSelected = n.selected, t.disabled = !0, G.optDisabled = !n.disabled, e = J.createElement("input"), e.value = "t", e.type = "radio", G.radioValue = "t" === e.value
- }();
- var rt, it, ot = Z.expr.attrHandle;
- Z.fn.extend({
- attr: function(e, t) {
- return me(this, Z.attr, e, t, arguments.length > 1)
- },
- removeAttr: function(e) {
- return this.each(function() {
- Z.removeAttr(this, e)
- })
- }
- }), Z.extend({
- attr: function(e, t, n) {
- var r, i, o = e.nodeType;
- return e && 3 !== o && 8 !== o && 2 !== o ? typeof e.getAttribute === ke ? Z.prop(e, t, n) : (1 === o && Z.isXMLDoc(e) || (t = t.toLowerCase(), r = Z.attrHooks[t] || (Z.expr.match.bool.test(t) ? it : rt)), void 0 === n ? r && "get" in r && null !== (i = r.get(e, t)) ? i : (i = Z.find.attr(e, t), null == i ? void 0 : i) : null !== n ? r && "set" in r && void 0 !== (i = r.set(e, n, t)) ? i : (e.setAttribute(t, n + ""), n) : void Z.removeAttr(e, t)) : void 0
- },
- removeAttr: function(e, t) {
- var n, r, i = 0,
- o = t && t.match(de);
- if (o && 1 === e.nodeType)
- for (; n = o[i++];) r = Z.propFix[n] || n, Z.expr.match.bool.test(n) && (e[r] = !1), e.removeAttribute(n)
- },
- attrHooks: {
- type: {
- set: function(e, t) {
- if (!G.radioValue && "radio" === t && Z.nodeName(e, "input")) {
- var n = e.value;
- return e.setAttribute("type", t), n && (e.value = n), t
- }
- }
- }
- }
- }), it = {
- set: function(e, t, n) {
- return t === !1 ? Z.removeAttr(e, n) : e.setAttribute(n, n), n
- }
- }, Z.each(Z.expr.match.bool.source.match(/\w+/g), function(e, t) {
- var n = ot[t] || Z.find.attr;
- ot[t] = function(e, t, r) {
- var i, o;
- return r || (o = ot[t], ot[t] = i, i = null != n(e, t, r) ? t.toLowerCase() : null, ot[t] = o), i
- }
- });
- var st = /^(?:input|select|textarea|button)$/i;
- Z.fn.extend({
- prop: function(e, t) {
- return me(this, Z.prop, e, t, arguments.length > 1)
- },
- removeProp: function(e) {
- return this.each(function() {
- delete this[Z.propFix[e] || e]
- })
- }
- }), Z.extend({
- propFix: {
- "for": "htmlFor",
- "class": "className"
- },
- prop: function(e, t, n) {
- var r, i, o, s = e.nodeType;
- return e && 3 !== s && 8 !== s && 2 !== s ? (o = 1 !== s || !Z.isXMLDoc(e), o && (t = Z.propFix[t] || t, i = Z.propHooks[t]), void 0 !== n ? i && "set" in i && void 0 !== (r = i.set(e, n, t)) ? r : e[t] = n : i && "get" in i && null !== (r = i.get(e, t)) ? r : e[t]) : void 0
- },
- propHooks: {
- tabIndex: {
- get: function(e) {
- return e.hasAttribute("tabindex") || st.test(e.nodeName) || e.href ? e.tabIndex : -1
- }
- }
- }
- }), G.optSelected || (Z.propHooks.selected = {
- get: function(e) {
- var t = e.parentNode;
- return t && t.parentNode && t.parentNode.selectedIndex, null
- }
- }), Z.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function() {
- Z.propFix[this.toLowerCase()] = this
- });
- var at = /[\t\r\n\f]/g;
- Z.fn.extend({
- addClass: function(e) {
- var t, n, r, i, o, s, a = "string" == typeof e && e,
- u = 0,
- l = this.length;
- if (Z.isFunction(e)) return this.each(function(t) {
- Z(this).addClass(e.call(this, t, this.className))
- });
- if (a)
- for (t = (e || "").match(de) || []; l > u; u++)
- if (n = this[u], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(at, " ") : " ")) {
- for (o = 0; i = t[o++];) r.indexOf(" " + i + " ") < 0 && (r += i + " ");
- s = Z.trim(r), n.className !== s && (n.className = s)
- }
- return this
- },
- removeClass: function(e) {
- var t, n, r, i, o, s, a = 0 === arguments.length || "string" == typeof e && e,
- u = 0,
- l = this.length;
- if (Z.isFunction(e)) return this.each(function(t) {
- Z(this).removeClass(e.call(this, t, this.className))
- });
- if (a)
- for (t = (e || "").match(de) || []; l > u; u++)
- if (n = this[u], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(at, " ") : "")) {
- for (o = 0; i = t[o++];)
- for (; r.indexOf(" " + i + " ") >= 0;) r = r.replace(" " + i + " ", " ");
- s = e ? Z.trim(r) : "", n.className !== s && (n.className = s)
- }
- return this
- },
- toggleClass: function(e, t) {
- var n = typeof e;
- return "boolean" == typeof t && "string" === n ? t ? this.addClass(e) : this.removeClass(e) : this.each(Z.isFunction(e) ? function(n) {
- Z(this).toggleClass(e.call(this, n, this.className, t), t)
- } : function() {
- if ("string" === n)
- for (var t, r = 0, i = Z(this), o = e.match(de) || []; t = o[r++];) i.hasClass(t) ? i.removeClass(t) : i.addClass(t);
- else(n === ke || "boolean" === n) && (this.className && ve.set(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : ve.get(this, "__className__") || "")
- })
- },
- hasClass: function(e) {
- for (var t = " " + e + " ", n = 0, r = this.length; r > n; n++)
- if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(at, " ").indexOf(t) >= 0) return !0;
- return !1
- }
- });
- var ut = /\r/g;
- Z.fn.extend({
- val: function(e) {
- var t, n, r, i = this[0];
- return arguments.length ? (r = Z.isFunction(e), this.each(function(n) {
- var i;
- 1 === this.nodeType && (i = r ? e.call(this, n, Z(this).val()) : e, null == i ? i = "" : "number" == typeof i ? i += "" : Z.isArray(i) && (i = Z.map(i, function(e) {
- return null == e ? "" : e + ""
- })), t = Z.valHooks[this.type] || Z.valHooks[this.nodeName.toLowerCase()], t && "set" in t && void 0 !== t.set(this, i, "value") || (this.value = i))
- })) : i ? (t = Z.valHooks[i.type] || Z.valHooks[i.nodeName.toLowerCase()], t && "get" in t && void 0 !== (n = t.get(i, "value")) ? n : (n = i.value, "string" == typeof n ? n.replace(ut, "") : null == n ? "" : n)) : void 0
- }
- }), Z.extend({
- valHooks: {
- option: {
- get: function(e) {
- var t = Z.find.attr(e, "value");
- return null != t ? t : Z.trim(Z.text(e))
- }
- },
- select: {
- get: function(e) {
- for (var t, n, r = e.options, i = e.selectedIndex, o = "select-one" === e.type || 0 > i, s = o ? null : [], a = o ? i + 1 : r.length, u = 0 > i ? a : o ? i : 0; a > u; u++)
- if (n = r[u], !(!n.selected && u !== i || (G.optDisabled ? n.disabled : null !== n.getAttribute("disabled")) || n.parentNode.disabled && Z.nodeName(n.parentNode, "optgroup"))) {
- if (t = Z(n).val(), o) return t;
- s.push(t)
- }
- return s
- },
- set: function(e, t) {
- for (var n, r, i = e.options, o = Z.makeArray(t), s = i.length; s--;) r = i[s], (r.selected = Z.inArray(r.value, o) >= 0) && (n = !0);
- return n || (e.selectedIndex = -1), o
- }
- }
- }
- }), Z.each(["radio", "checkbox"], function() {
- Z.valHooks[this] = {
- set: function(e, t) {
- return Z.isArray(t) ? e.checked = Z.inArray(Z(e).val(), t) >= 0 : void 0
- }
- }, G.checkOn || (Z.valHooks[this].get = function(e) {
- return null === e.getAttribute("value") ? "on" : e.value
- })
- }), Z.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "), function(e, t) {
- Z.fn[t] = function(e, n) {
- return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
- }
- }), Z.fn.extend({
- hover: function(e, t) {
- return this.mouseenter(e).mouseleave(t || e)
- },
- bind: function(e, t, n) {
- return this.on(e, null, t, n)
- },
- unbind: function(e, t) {
- return this.off(e, null, t)
- },
- delegate: function(e, t, n, r) {
- return this.on(t, e, n, r)
- },
- undelegate: function(e, t, n) {
- return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n)
- }
- });
- var lt = Z.now(),
- ct = /\?/;
- Z.parseJSON = function(e) {
- return JSON.parse(e + "")
- }, Z.parseXML = function(e) {
- var t, n;
- if (!e || "string" != typeof e) return null;
- try {
- n = new DOMParser, t = n.parseFromString(e, "text/xml")
- } catch (r) {
- t = void 0
- }
- return (!t || t.getElementsByTagName("parsererror").length) && Z.error("Invalid XML: " + e), t
- };
- var ft = /#.*$/,
- pt = /([?&])_=[^&]*/,
- dt = /^(.*?):[ \t]*([^\r\n]*)$/gm,
- ht = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
- gt = /^(?:GET|HEAD)$/,
- mt = /^\/\//,
- vt = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
- yt = {},
- xt = {},
- bt = "*/".concat("*"),
- wt = e.location.href,
- Ct = vt.exec(wt.toLowerCase()) || [];
- Z.extend({
- active: 0,
- lastModified: {},
- etag: {},
- ajaxSettings: {
- url: wt,
- type: "GET",
- isLocal: ht.test(Ct[1]),
- global: !0,
- processData: !0,
- async: !0,
- contentType: "application/x-www-form-urlencoded; charset=UTF-8",
- accepts: {
- "*": bt,
- text: "text/plain",
- html: "text/html",
- xml: "application/xml, text/xml",
- json: "application/json, text/javascript"
- },
- contents: {
- xml: /xml/,
- html: /html/,
- json: /json/
- },
- responseFields: {
- xml: "responseXML",
- text: "responseText",
- json: "responseJSON"
- },
- converters: {
- "* text": String,
- "text html": !0,
- "text json": Z.parseJSON,
- "text xml": Z.parseXML
- },
- flatOptions: {
- url: !0,
- context: !0
- }
- },
- ajaxSetup: function(e, t) {
- return t ? F(F(e, Z.ajaxSettings), t) : F(Z.ajaxSettings, e)
- },
- ajaxPrefilter: O(yt),
- ajaxTransport: O(xt),
- ajax: function(e, t) {
- function n(e, t, n, s) {
- var u, c, v, y, b, C = t;
- 2 !== x && (x = 2, a && clearTimeout(a), r = void 0, o = s || "", w.readyState = e > 0 ? 4 : 0, u = e >= 200 && 300 > e || 304 === e, n && (y = M(f, w, n)), y = R(f, y, w, u), u ? (f.ifModified && (b = w.getResponseHeader("Last-Modified"), b && (Z.lastModified[i] = b), b = w.getResponseHeader("etag"), b && (Z.etag[i] = b)), 204 === e || "HEAD" === f.type ? C = "nocontent" : 304 === e ? C = "notmodified" : (C = y.state, c = y.data, v = y.error, u = !v)) : (v = C, (e || !C) && (C = "error", 0 > e && (e = 0))), w.status = e, w.statusText = (t || C) + "", u ? h.resolveWith(p, [c, C, w]) : h.rejectWith(p, [w, C, v]), w.statusCode(m), m = void 0, l && d.trigger(u ? "ajaxSuccess" : "ajaxError", [w, f, u ? c : v]), g.fireWith(p, [w, C]), l && (d.trigger("ajaxComplete", [w, f]), --Z.active || Z.event.trigger("ajaxStop")))
- }
- "object" == typeof e && (t = e, e = void 0), t = t || {};
- var r, i, o, s, a, u, l, c, f = Z.ajaxSetup({}, t),
- p = f.context || f,
- d = f.context && (p.nodeType || p.jquery) ? Z(p) : Z.event,
- h = Z.Deferred(),
- g = Z.Callbacks("once memory"),
- m = f.statusCode || {},
- v = {},
- y = {},
- x = 0,
- b = "canceled",
- w = {
- readyState: 0,
- getResponseHeader: function(e) {
- var t;
- if (2 === x) {
- if (!s)
- for (s = {}; t = dt.exec(o);) s[t[1].toLowerCase()] = t[2];
- t = s[e.toLowerCase()]
- }
- return null == t ? null : t
- },
- getAllResponseHeaders: function() {
- return 2 === x ? o : null
- },
- setRequestHeader: function(e, t) {
- var n = e.toLowerCase();
- return x || (e = y[n] = y[n] || e, v[e] = t), this
- },
- overrideMimeType: function(e) {
- return x || (f.mimeType = e), this
- },
- statusCode: function(e) {
- var t;
- if (e)
- if (2 > x)
- for (t in e) m[t] = [m[t], e[t]];
- else w.always(e[w.status]);
- return this
- },
- abort: function(e) {
- var t = e || b;
- return r && r.abort(t), n(0, t), this
- }
- };
- if (h.promise(w).complete = g.add, w.success = w.done, w.error = w.fail, f.url = ((e || f.url || wt) + "").replace(ft, "").replace(mt, Ct[1] + "//"), f.type = t.method || t.type || f.method || f.type, f.dataTypes = Z.trim(f.dataType || "*").toLowerCase().match(de) || [""], null == f.crossDomain && (u = vt.exec(f.url.toLowerCase()), f.crossDomain = !(!u || u[1] === Ct[1] && u[2] === Ct[2] && (u[3] || ("http:" === u[1] ? "80" : "443")) === (Ct[3] || ("http:" === Ct[1] ? "80" : "443")))), f.data && f.processData && "string" != typeof f.data && (f.data = Z.param(f.data, f.traditional)), P(yt, f, t, w), 2 === x) return w;
- l = Z.event && f.global, l && 0 === Z.active++ && Z.event.trigger("ajaxStart"), f.type = f.type.toUpperCase(), f.hasContent = !gt.test(f.type), i = f.url, f.hasContent || (f.data && (i = f.url += (ct.test(i) ? "&" : "?") + f.data, delete f.data), f.cache === !1 && (f.url = pt.test(i) ? i.replace(pt, "$1_=" + lt++) : i + (ct.test(i) ? "&" : "?") + "_=" + lt++)), f.ifModified && (Z.lastModified[i] && w.setRequestHeader("If-Modified-Since", Z.lastModified[i]), Z.etag[i] && w.setRequestHeader("If-None-Match", Z.etag[i])), (f.data && f.hasContent && f.contentType !== !1 || t.contentType) && w.setRequestHeader("Content-Type", f.contentType), w.setRequestHeader("Accept", f.dataTypes[0] && f.accepts[f.dataTypes[0]] ? f.accepts[f.dataTypes[0]] + ("*" !== f.dataTypes[0] ? ", " + bt + "; q=0.01" : "") : f.accepts["*"]);
- for (c in f.headers) w.setRequestHeader(c, f.headers[c]);
- if (f.beforeSend && (f.beforeSend.call(p, w, f) === !1 || 2 === x)) return w.abort();
- b = "abort";
- for (c in {
- success: 1,
- error: 1,
- complete: 1
- }) w[c](f[c]);
- if (r = P(xt, f, t, w)) {
- w.readyState = 1, l && d.trigger("ajaxSend", [w, f]), f.async && f.timeout > 0 && (a = setTimeout(function() {
- w.abort("timeout")
- }, f.timeout));
- try {
- x = 1, r.send(v, n)
- } catch (C) {
- if (!(2 > x)) throw C;
- n(-1, C)
- }
- } else n(-1, "No Transport");
- return w
- },
- getJSON: function(e, t, n) {
- return Z.get(e, t, n, "json")
- },
- getScript: function(e, t) {
- return Z.get(e, void 0, t, "script")
- }
- }), Z.each(["get", "post"], function(e, t) {
- Z[t] = function(e, n, r, i) {
- return Z.isFunction(n) && (i = i || r, r = n, n = void 0), Z.ajax({
- url: e,
- type: t,
- dataType: i,
- data: n,
- success: r
- })
- }
- }), Z._evalUrl = function(e) {
- return Z.ajax({
- url: e,
- type: "GET",
- dataType: "script",
- async: !1,
- global: !1,
- "throws": !0
- })
- }, Z.fn.extend({
- wrapAll: function(e) {
- var t;
- return Z.isFunction(e) ? this.each(function(t) {
- Z(this).wrapAll(e.call(this, t))
- }) : (this[0] && (t = Z(e, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && t.insertBefore(this[0]), t.map(function() {
- for (var e = this; e.firstElementChild;) e = e.firstElementChild;
- return e
- }).append(this)), this)
- },
- wrapInner: function(e) {
- return this.each(Z.isFunction(e) ? function(t) {
- Z(this).wrapInner(e.call(this, t))
- } : function() {
- var t = Z(this),
- n = t.contents();
- n.length ? n.wrapAll(e) : t.append(e)
- })
- },
- wrap: function(e) {
- var t = Z.isFunction(e);
- return this.each(function(n) {
- Z(this).wrapAll(t ? e.call(this, n) : e)
- })
- },
- unwrap: function() {
- return this.parent().each(function() {
- Z.nodeName(this, "body") || Z(this).replaceWith(this.childNodes)
- }).end()
- }
- }), Z.expr.filters.hidden = function(e) {
- return e.offsetWidth <= 0 && e.offsetHeight <= 0
- }, Z.expr.filters.visible = function(e) {
- return !Z.expr.filters.hidden(e)
- };
- var Tt = /%20/g,
- Nt = /\[\]$/,
- kt = /\r?\n/g,
- Et = /^(?:submit|button|image|reset|file)$/i,
- St = /^(?:input|select|textarea|keygen)/i;
- Z.param = function(e, t) {
- var n, r = [],
- i = function(e, t) {
- t = Z.isFunction(t) ? t() : null == t ? "" : t, r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t)
- };
- if (void 0 === t && (t = Z.ajaxSettings && Z.ajaxSettings.traditional), Z.isArray(e) || e.jquery && !Z.isPlainObject(e)) Z.each(e, function() {
- i(this.name, this.value)
- });
- else
- for (n in e) I(n, e[n], t, i);
- return r.join("&").replace(Tt, "+")
- }, Z.fn.extend({
- serialize: function() {
- return Z.param(this.serializeArray())
- },
- serializeArray: function() {
- return this.map(function() {
- var e = Z.prop(this, "elements");
- return e ? Z.makeArray(e) : this
- }).filter(function() {
- var e = this.type;
- return this.name && !Z(this).is(":disabled") && St.test(this.nodeName) && !Et.test(e) && (this.checked || !Ne.test(e))
- }).map(function(e, t) {
- var n = Z(this).val();
- return null == n ? null : Z.isArray(n) ? Z.map(n, function(e) {
- return {
- name: t.name,
- value: e.replace(kt, "\r\n")
- }
- }) : {
- name: t.name,
- value: n.replace(kt, "\r\n")
- }
- }).get()
- }
- }), Z.ajaxSettings.xhr = function() {
- try {
- return new XMLHttpRequest
- } catch (e) {}
- };
- var jt = 0,
- Dt = {},
- At = {
- 0: 200,
- 1223: 204
- },
- Lt = Z.ajaxSettings.xhr();
- e.attachEvent && e.attachEvent("onunload", function() {
- for (var e in Dt) Dt[e]()
- }), G.cors = !!Lt && "withCredentials" in Lt, G.ajax = Lt = !!Lt, Z.ajaxTransport(function(e) {
- var t;
- return G.cors || Lt && !e.crossDomain ? {
- send: function(n, r) {
- var i, o = e.xhr(),
- s = ++jt;
- if (o.open(e.type, e.url, e.async, e.username, e.password), e.xhrFields)
- for (i in e.xhrFields) o[i] = e.xhrFields[i];
- e.mimeType && o.overrideMimeType && o.overrideMimeType(e.mimeType), e.crossDomain || n["X-Requested-With"] || (n["X-Requested-With"] = "XMLHttpRequest");
- for (i in n) o.setRequestHeader(i, n[i]);
- t = function(e) {
- return function() {
- t && (delete Dt[s], t = o.onload = o.onerror = null, "abort" === e ? o.abort() : "error" === e ? r(o.status, o.statusText) : r(At[o.status] || o.status, o.statusText, "string" == typeof o.responseText ? {
- text: o.responseText
- } : void 0, o.getAllResponseHeaders()))
- }
- }, o.onload = t(), o.onerror = t("error"), t = Dt[s] = t("abort");
- try {
- o.send(e.hasContent && e.data || null)
- } catch (a) {
- if (t) throw a
- }
- },
- abort: function() {
- t && t()
- }
- } : void 0
- }), Z.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /(?:java|ecma)script/
- },
- converters: {
- "text script": function(e) {
- return Z.globalEval(e), e
- }
- }
- }), Z.ajaxPrefilter("script", function(e) {
- void 0 === e.cache && (e.cache = !1), e.crossDomain && (e.type = "GET")
- }), Z.ajaxTransport("script", function(e) {
- if (e.crossDomain) {
- var t, n;
- return {
- send: function(r, i) {
- t = Z("<script>").prop({
- async: !0,
- charset: e.scriptCharset,
- src: e.url
- }).on("load error", n = function(e) {
- t.remove(), n = null, e && i("error" === e.type ? 404 : 200, e.type)
- }), J.head.appendChild(t[0])
- },
- abort: function() {
- n && n()
- }
- }
- }
- });
- var Ht = [],
- qt = /(=)\?(?=&|$)|\?\?/;
- Z.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function() {
- var e = Ht.pop() || Z.expando + "_" + lt++;
- return this[e] = !0, e
- }
- }), Z.ajaxPrefilter("json jsonp", function(t, n, r) {
- var i, o, s, a = t.jsonp !== !1 && (qt.test(t.url) ? "url" : "string" == typeof t.data && !(t.contentType || "").indexOf("application/x-www-form-urlencoded") && qt.test(t.data) && "data");
- return a || "jsonp" === t.dataTypes[0] ? (i = t.jsonpCallback = Z.isFunction(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, a ? t[a] = t[a].replace(qt, "$1" + i) : t.jsonp !== !1 && (t.url += (ct.test(t.url) ? "&" : "?") + t.jsonp + "=" + i), t.converters["script json"] = function() {
- return s || Z.error(i + " was not called"), s[0]
- }, t.dataTypes[0] = "json", o = e[i], e[i] = function() {
- s = arguments
- }, r.always(function() {
- e[i] = o, t[i] && (t.jsonpCallback = n.jsonpCallback, Ht.push(i)), s && Z.isFunction(o) && o(s[0]), s = o = void 0
- }), "script") : void 0
- }), Z.parseHTML = function(e, t, n) {
- if (!e || "string" != typeof e) return null;
- "boolean" == typeof t && (n = t, t = !1), t = t || J;
- var r = se.exec(e),
- i = !n && [];
- return r ? [t.createElement(r[1])] : (r = Z.buildFragment([e], t, i), i && i.length && Z(i).remove(), Z.merge([], r.childNodes))
- };
- var Ot = Z.fn.load;
- Z.fn.load = function(e, t, n) {
- if ("string" != typeof e && Ot) return Ot.apply(this, arguments);
- var r, i, o, s = this,
- a = e.indexOf(" ");
- return a >= 0 && (r = Z.trim(e.slice(a)), e = e.slice(0, a)), Z.isFunction(t) ? (n = t, t = void 0) : t && "object" == typeof t && (i = "POST"), s.length > 0 && Z.ajax({
- url: e,
- type: i,
- dataType: "html",
- data: t
- }).done(function(e) {
- o = arguments, s.html(r ? Z("<div>").append(Z.parseHTML(e)).find(r) : e)
- }).complete(n && function(e, t) {
- s.each(n, o || [e.responseText, t, e])
- }), this
- }, Z.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function(e, t) {
- Z.fn[t] = function(e) {
- return this.on(t, e)
- }
- }), Z.expr.filters.animated = function(e) {
- return Z.grep(Z.timers, function(t) {
- return e === t.elem
- }).length
- };
- var Pt = e.document.documentElement;
- Z.offset = {
- setOffset: function(e, t, n) {
- var r, i, o, s, a, u, l, c = Z.css(e, "position"),
- f = Z(e),
- p = {};
- "static" === c && (e.style.position = "relative"), a = f.offset(), o = Z.css(e, "top"), u = Z.css(e, "left"), l = ("absolute" === c || "fixed" === c) && (o + u).indexOf("auto") > -1, l ? (r = f.position(), s = r.top, i = r.left) : (s = parseFloat(o) || 0, i = parseFloat(u) || 0), Z.isFunction(t) && (t = t.call(e, n, a)), null != t.top && (p.top = t.top - a.top + s), null != t.left && (p.left = t.left - a.left + i), "using" in t ? t.using.call(e, p) : f.css(p)
- }
- }, Z.fn.extend({
- offset: function(e) {
- if (arguments.length) return void 0 === e ? this : this.each(function(t) {
- Z.offset.setOffset(this, e, t)
- });
- var t, n, r = this[0],
- i = {
- top: 0,
- left: 0
- },
- o = r && r.ownerDocument;
- return o ? (t = o.documentElement, Z.contains(t, r) ? (typeof r.getBoundingClientRect !== ke && (i = r.getBoundingClientRect()), n = W(o), {
- top: i.top + n.pageYOffset - t.clientTop,
- left: i.left + n.pageXOffset - t.clientLeft
- }) : i) : void 0
- },
- position: function() {
- if (this[0]) {
- var e, t, n = this[0],
- r = {
- top: 0,
- left: 0
- };
- return "fixed" === Z.css(n, "position") ? t = n.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), Z.nodeName(e[0], "html") || (r = e.offset()), r.top += Z.css(e[0], "borderTopWidth", !0), r.left += Z.css(e[0], "borderLeftWidth", !0)), {
- top: t.top - r.top - Z.css(n, "marginTop", !0),
- left: t.left - r.left - Z.css(n, "marginLeft", !0)
- }
- }
- },
- offsetParent: function() {
- return this.map(function() {
- for (var e = this.offsetParent || Pt; e && !Z.nodeName(e, "html") && "static" === Z.css(e, "position");) e = e.offsetParent;
- return e || Pt
- })
- }
- }), Z.each({
- scrollLeft: "pageXOffset",
- scrollTop: "pageYOffset"
- }, function(t, n) {
- var r = "pageYOffset" === n;
- Z.fn[t] = function(i) {
- return me(this, function(t, i, o) {
- var s = W(t);
- return void 0 === o ? s ? s[n] : t[i] : void(s ? s.scrollTo(r ? e.pageXOffset : o, r ? o : e.pageYOffset) : t[i] = o)
- }, t, i, arguments.length, null)
- }
- }), Z.each(["top", "left"], function(e, t) {
- Z.cssHooks[t] = w(G.pixelPosition, function(e, n) {
- return n ? (n = b(e, t), Be.test(n) ? Z(e).position()[t] + "px" : n) : void 0
- })
- }), Z.each({
- Height: "height",
- Width: "width"
- }, function(e, t) {
- Z.each({
- padding: "inner" + e,
- content: t,
- "": "outer" + e
- }, function(n, r) {
- Z.fn[r] = function(r, i) {
- var o = arguments.length && (n || "boolean" != typeof r),
- s = n || (r === !0 || i === !0 ? "margin" : "border");
- return me(this, function(t, n, r) {
- var i;
- return Z.isWindow(t) ? t.document.documentElement["client" + e] : 9 === t.nodeType ? (i = t.documentElement, Math.max(t.body["scroll" + e], i["scroll" + e], t.body["offset" + e], i["offset" + e], i["client" + e])) : void 0 === r ? Z.css(t, n, s) : Z.style(t, n, r, s)
- }, t, o ? r : void 0, o, null)
- }
- })
- }), Z.fn.size = function() {
- return this.length
- }, Z.fn.andSelf = Z.fn.addBack, "function" == typeof define && define.amd && define("jquery", [], function() {
- return Z
- });
- var Ft = e.jQuery,
- $t = e.$;
- return Z.noConflict = function(t) {
- return e.$ === Z && (e.$ = $t), t && e.jQuery === Z && (e.jQuery = Ft), Z
- }, typeof t === ke && (e.jQuery = e.$ = Z), Z
- }),
- function(e, t) {
- "use strict";
- var n = function() {
- var n = {
- bcClass: "sf-breadcrumb",
- menuClass: "sf-js-enabled",
- anchorClass: "sf-with-ul",
- menuArrowClass: "sf-arrows"
- },
- r = function() {
- var n = /iPhone|iPad|iPod/i.test(navigator.userAgent);
- return n && e(t).load(function() {
- e("body").children().on("click", e.noop)
- }), n
- }(),
- i = function() {
- var e = document.documentElement.style;
- return "behavior" in e && "fill" in e && /iemobile/i.test(navigator.userAgent)
- }(),
- o = function() {
- return !!t.PointerEvent
- }(),
- s = function(e, t) {
- var r = n.menuClass;
- t.cssArrows && (r += " " + n.menuArrowClass), e.toggleClass(r)
- },
- a = function(t, r) {
- return t.find("li." + r.pathClass).slice(0, r.pathLevels).addClass(r.hoverClass + " " + n.bcClass).filter(function() {
- return e(this).children(r.popUpSelector).hide().show().length
- }).removeClass(r.pathClass)
- },
- u = function(e) {
- e.children("a").toggleClass(n.anchorClass)
- },
- l = function(e) {
- var t = e.css("ms-touch-action"),
- n = e.css("touch-action");
- n = n || t, n = "pan-y" === n ? "auto" : "pan-y", e.css({
- "ms-touch-action": n,
- "touch-action": n
- })
- },
- c = function(t, n) {
- var s = "li:has(" + n.popUpSelector + ")";
- e.fn.hoverIntent && !n.disableHI ? t.hoverIntent(p, d, s) : t.on("mouseenter.superfish", s, p).on("mouseleave.superfish", s, d);
- var a = "MSPointerDown.superfish";
- o && (a = "pointerdown.superfish"), r || (a += " touchend.superfish"), i && (a += " mousedown.superfish"), t.on("focusin.superfish", "li", p).on("focusout.superfish", "li", d).on(a, "a", n, f)
- },
- f = function(t) {
- var n = e(this),
- r = m(n),
- i = n.siblings(t.data.popUpSelector);
- return r.onHandleTouch.call(i) === !1 ? this : void(i.length > 0 && i.is(":hidden") && (n.one("click.superfish", !1), "MSPointerDown" === t.type || "pointerdown" === t.type ? n.trigger("focus") : e.proxy(p, n.parent("li"))()))
- },
- p = function() {
- var t = e(this),
- n = m(t);
- clearTimeout(n.sfTimer), t.siblings().superfish("hide").end().superfish("show")
- },
- d = function() {
- var t = e(this),
- n = m(t);
- r ? e.proxy(h, t, n)() : (clearTimeout(n.sfTimer), n.sfTimer = setTimeout(e.proxy(h, t, n), n.delay))
- },
- h = function(t) {
- t.retainPath = e.inArray(this[0], t.$path) > -1, this.superfish("hide"), this.parents("." + t.hoverClass).length || (t.onIdle.call(g(this)), t.$path.length && e.proxy(p, t.$path)())
- },
- g = function(e) {
- return e.closest("." + n.menuClass)
- },
- m = function(e) {
- return g(e).data("sf-options")
- };
- return {
- hide: function(t) {
- if (this.length) {
- var n = this,
- r = m(n);
- if (!r) return this;
- var i = r.retainPath === !0 ? r.$path : "",
- o = n.find("li." + r.hoverClass).add(this).not(i).removeClass(r.hoverClass).children(r.popUpSelector),
- s = r.speedOut;
- if (t && (o.show(), s = 0), r.retainPath = !1, r.onBeforeHide.call(o) === !1) return this;
- o.stop(!0, !0).animate(r.animationOut, s, function() {
- var t = e(this);
- r.onHide.call(t)
- })
- }
- return this
- },
- show: function() {
- var e = m(this);
- if (!e) return this;
- var t = this.addClass(e.hoverClass),
- n = t.children(e.popUpSelector);
- return e.onBeforeShow.call(n) === !1 ? this : (n.stop(!0, !0).animate(e.animation, e.speed, function() {
- e.onShow.call(n)
- }), this)
- },
- destroy: function() {
- return this.each(function() {
- var t, r = e(this),
- i = r.data("sf-options");
- return i ? (t = r.find(i.popUpSelector).parent("li"), clearTimeout(i.sfTimer), s(r, i), u(t), l(r), r.off(".superfish").off(".hoverIntent"), t.children(i.popUpSelector).attr("style", function(e, t) {
- return t.replace(/display[^;]+;?/g, "")
- }), i.$path.removeClass(i.hoverClass + " " + n.bcClass).addClass(i.pathClass), r.find("." + i.hoverClass).removeClass(i.hoverClass), i.onDestroy.call(r), void r.removeData("sf-options")) : !1
- })
- },
- init: function(t) {
- return this.each(function() {
- var r = e(this);
- if (r.data("sf-options")) return !1;
- var i = e.extend({}, e.fn.superfish.defaults, t),
- o = r.find(i.popUpSelector).parent("li");
- i.$path = a(r, i), r.data("sf-options", i), s(r, i), u(o), l(r), c(r, i), o.not("." + n.bcClass).superfish("hide", !0), i.onInit.call(this)
- })
- }
- }
- }();
- e.fn.superfish = function(t) {
- return n[t] ? n[t].apply(this, Array.prototype.slice.call(arguments, 1)) : "object" != typeof t && t ? e.error("Method " + t + " does not exist on jQuery.fn.superfish") : n.init.apply(this, arguments)
- }, e.fn.superfish.defaults = {
- popUpSelector: "ul,.sf-mega",
- hoverClass: "sfHover",
- pathClass: "overrideThisToUse",
- pathLevels: 1,
- delay: 800,
- animation: {
- opacity: "show"
- },
- animationOut: {
- opacity: "hide"
- },
- speed: "normal",
- speedOut: "fast",
- cssArrows: !0,
- disableHI: !1,
- onInit: e.noop,
- onBeforeShow: e.noop,
- onShow: e.noop,
- onBeforeHide: e.noop,
- onHide: e.noop,
- onIdle: e.noop,
- onDestroy: e.noop,
- onHandleTouch: e.noop
- }
- }(jQuery, window),
- function($, e, t) {
- $.fn.tinyNav = function(n) {
- var r = $.extend({
- active: "selected",
- indent: "- "
- }, n);
- return this.each(function() {
- t++;
- var n = $(this),
- i = "tinynav",
- o = i + t,
- s = ".l_" + o,
- a = $("<select/>").attr("id", o).addClass(i + " " + o);
- if (n.is("ul,ol")) {
- var u = "";
- n.addClass("l_" + o).find("a").each(function() {
- u += '<option value="' + $(this).attr("href") + '">';
- var e;
- for (e = 0; e < $(this).parents("ul, ol").length - 1; e++) u += r.indent;
- u += $(this).text() + "</option>"
- }), a.append(u), a.find(":eq(" + $(s + " li").index($(s + " li." + r.active)) + ")").attr("selected", !0), a.change(function() {
- e.location.href = $(this).val()
- }), $(s).after(a)
- }
- })
- }
- }(jQuery, this, 0),
- function($) {
- "use strict";
- $.fn.fitVids = function(e) {
- var t = {
- customSelector: null,
- ignore: null
- };
- if (!document.getElementById("fit-vids-style")) {
- var n = document.head || document.getElementsByTagName("head")[0],
- r = ".fluid-width-video-wrapper{width:100%;position:relative;padding:0;}.fluid-width-video-wrapper iframe,.fluid-width-video-wrapper object,.fluid-width-video-wrapper embed {position:absolute;top:0;left:0;width:100%;height:100%;}",
- i = document.createElement("div");
- i.innerHTML = '<p>x</p><style id="fit-vids-style">' + r + "</style>", n.appendChild(i.childNodes[1])
- }
- return e && $.extend(t, e), this.each(function() {
- var e = ['iframe[src*="player.vimeo.com"]', 'iframe[src*="youtube.com"]', 'iframe[src*="youtube-nocookie.com"]', 'iframe[src*="kickstarter.com"][src*="video.html"]', "object", "embed"];
- t.customSelector && e.push(t.customSelector);
- var n = ".fitvidsignore";
- t.ignore && (n = n + ", " + t.ignore);
- var r = $(this).find(e.join(","));
- r = r.not("object object"), r = r.not(n), r.each(function(e) {
- var t = $(this);
- if (!(t.parents(n).length > 0 || "embed" === this.tagName.toLowerCase() && t.parent("object").length || t.parent(".fluid-width-video-wrapper").length)) {
- t.css("height") || t.css("width") || !isNaN(t.attr("height")) && !isNaN(t.attr("width")) || (t.attr("height", 9), t.attr("width", 16));
- var r = "object" === this.tagName.toLowerCase() || t.attr("height") && !isNaN(parseInt(t.attr("height"), 10)) ? parseInt(t.attr("height"), 10) : t.height(),
- i = isNaN(parseInt(t.attr("width"), 10)) ? t.width() : parseInt(t.attr("width"), 10),
- o = r / i;
- if (!t.attr("id")) {
- var s = "fitvid" + e;
- t.attr("id", s)
- }
- t.wrap('<div class="fluid-width-video-wrapper"></div>').parent(".fluid-width-video-wrapper").css("padding-top", 100 * o + "%"), t.removeAttr("height").removeAttr("width")
- }
- })
- })
- }
- }(window.jQuery || window.Zepto), $(document).ready(function() {
- function e() {
- if (document.getElementsByTagName)
- for (var e = document.getElementsByTagName("a"), t = 0; t < e.length; t++) {
- var n = e[t];
- n.getAttribute("href") && "external" === n.getAttribute("rel") && (n.target = "_blank")
- }
- }
- $(".site-navigation-inner").superfish({
- delay: 500,
- animation: {
- height: "show"
- },
- speed: "fast",
- autoArrows: !1
- }), $(".site-navigation-inner > ul").tinyNav(), $(".site-navigation-inner select").wrap('<div class="select"></div>');
- var t = $(".site-logo img").width();
- if (
- $(".site-logo img").width(t / 2),
- $("br").not(".site-content-inner br").remove(), // <<< EDIT MADE HERE! -RUF
- $(".thumbnail-wrap, .thumbnail-frame").attr("style", ""),
- $(".photo-frame")[0]
- ) {
- var n = $(".photo-frame").attr("src");
- $(".photo-background").attr("style", 'background-image: url("' + n + '");'), $("body").append('<div class="body-overlay"></div>');
- var r = $(".photo-frame").attr("width") / 2,
- i = $(".photo-frame").attr("height") / 2;
- $(".photo-frame").attr("style", "margin-left: -" + r + "px; margin-top: -" + i + "px;")
- }
- $(".site-content").fitVids(), $(".site-content-inner > iframe").wrap('<div class="embed-responsive embed-responsive-16by9"></div>'), window.onload = e
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement