" !== c[1] || xt.test(o) ? 0 : s : s.firstchild,
i = o && o.childnodes.length;
while (i--)
b.nodename(l = o.childnodes[i], "tbody") && !l.childnodes.length && o.removechild(l)
}
b.merge(d, s.childnodes),
s.textcontent = "";
while (s.firstchild)
s.removechild(s.firstchild);
s = f.lastchild
} else
d.push(t.createtextnode(o));
s && f.removechild(s),
b.support.appendchecked || b.grep(ot(d, "input"), bt),
h = 0;
while (o = d[h++])
if ((!r || -1 === b.inarray(o, r)) && (a = b.contains(o.ownerdocument, o),
s = ot(f.appendchild(o), "script"),
a && mt(s),
n)) {
i = 0;
while (o = s[i++])
kt.test(o.type || "") && n.push(o)
}
return s = null,
f
},
cleandata: function(e, t) {
var n, r, o, a, s = 0, u = b.expando, l = b.cache, p = b.support.deleteexpando, f = b.event.special;
for (; null != (n = e[s]); s++)
if ((t || b.acceptdata(n)) && (o = n[u],
a = o && l[o])) {
if (a.events)
for (r in a.events)
f[r] ? b.event.remove(n, r) : b.removeevent(n, r, a.handle);
l[o] && (delete l[o],
p ? delete n[u] : typeof n.removeattribute !== i ? n.removeattribute(u) : n[u] = null,
c.push(o))
}
}
});
var pt, rt, wt, $t = /alpha\([^)]*\)/i, it = /opacity\s*=\s*([^)]*)/, zt = /^(top|right|bottom|left)$/, xt = /^(none|table(?!-c[ea]).+)/, ut = /^margin/, vt = regexp("^(" + x + ")(.*)$", "i"), yt = regexp("^(" + x + ")(?!px)[a-z%]+$", "i"), jt = regexp("^([+-])=(" + x + ")", "i"), gt = {
body: "block"
}, qt = {
position: "absolute",
visibility: "hidden",
display: "block"
}, kt = {
letterspacing: 0,
fontweight: 400
}, zt = ["top", "right", "bottom", "left"], en = ["webkit", "o", "moz", "ms"];
function tn(e, t) {
if (t in e)
return t;
var n = t.charat(0).touppercase() + t.slice(1)
, r = t
, i = en.length;
while (i--)
if (t = en[i] + n,
t in e)
return t;
return r
}
function nn(e, t) {
return e = t || e,
"none" === b.css(e, "display") || !b.contains(e.ownerdocument, e)
}
function rn(e, t) {
var n, r, i, o = [], a = 0, s = e.length;
for (; s > a; a++)
r = e[a],
r.style && (o[a] = b._data(r, "olddisplay"),
n = r.style.display,
t ? (o[a] || "none" !== n || (r.style.display = ""),
"" === r.style.display && nn(r) && (o[a] = b._data(r, "olddisplay", un(r.nodename)))) : o[a] || (i = nn(r),
(n && "none" !== n || !i) && b._data(r, "olddisplay", i ? n : b.css(r, "display"))));
for (a = 0; s > a; a++)
r = e[a],
r.style && (t && "none" !== r.style.display && "" !== r.style.display || (r.style.display = t ? o[a] || "" : "none"));
return e
}
b.fn.extend({
css: function(e, n) {
return b.access(this, function(e, n, r) {
var i, o, a = {}, s = 0;
if (b.isarray(n)) {
for (o = rt(e),
i = n.length; i > s; s++)
a[n[s]] = b.css(e, n[s], !1, o);
return a
}
return r !== t ? b.style(e, n, r) : b.css(e, n)
}, e, n, arguments.length > 1)
},
show: function() {
return rn(this, !0)
},
hide: function() {
return rn(this)
},
toggle: function(e) {
var t = "boolean" == typeof e;
return this.each(function() {
(t ? e : nn(this)) ? b(this).show() : b(this).hide()
})
}
}),
b.extend({
csshooks: {
opacity: {
get: function(e, t) {
if (t) {
var n = wt(e, "opacity");
return "" === n ? "1" : n
}
}
}
},
cssnumber: {
columncount: !0,
fillopacity: !0,
fontweight: !0,
lineheight: !0,
opacity: !0,
orphans: !0,
widows: !0,
zindex: !0,
zoom: !0
},
cssprops: {
"float": b.support.cssfloat ? "cssfloat" : "stylefloat"
},
style: function(e, n, r, i) {
if (e && 3 !== e.nodetype && 8 !== e.nodetype && e.style) {
var o, a, s, u = b.camelcase(n), l = e.style;
if (n = b.cssprops[u] || (b.cssprops[u] = tn(l, u)),
s = b.csshooks[n] || b.csshooks[u],
r === t)
return s && "get"in s && (o = s.get(e, !1, i)) !== t ? o : l[n];
if (a = typeof r,
"string" === a && (o = jt.exec(r)) && (r = (o[1] + 1) * o[2] + parsefloat(b.css(e, n)),
a = "number"),
!(null == r || "number" === a && isnan(r) || ("number" !== a || b.cssnumber[u] || (r += "px"),
b.support.clearclonestyle || "" !== r || 0 !== n.indexof("background") || (l[n] = "inherit"),
s && "set"in s && (r = s.set(e, r, i)) === t)))
try {
l[n] = r
} catch (c) {}
}
},
css: function(e, n, r, i) {
var o, a, s, u = b.camelcase(n);
return n = b.cssprops[u] || (b.cssprops[u] = tn(e.style, u)),
s = b.csshooks[n] || b.csshooks[u],
s && "get"in s && (a = s.get(e, !0, r)),
a === t && (a = wt(e, n, i)),
"normal" === a && n in kt && (a = kt[n]),
"" === r || r ? (o = parsefloat(a),
r === !0 || b.isnumeric(o) ? o || 0 : a) : a
},
swap: function(e, t, n, r) {
var i, o, a = {};
for (o in t)
a[o] = e.style[o],
e.style[o] = t[o];
i = n.apply(e, r || []);
for (o in t)
e.style[o] = a[o];
return i
}
}),
e.getcomputedstyle ? (rt = function(t) {
return e.getcomputedstyle(t, null)
}
,
wt = function(e, n, r) {
var i, o, a, s = r || rt(e), u = s ? s.getpropertyvalue(n) || s[n] : t, l = e.style;
return s && ("" !== u || b.contains(e.ownerdocument, e) || (u = b.style(e, n)),
yt.test(u) && ut.test(n) && (i = l.width,
o = l.minwidth,
a = l.maxwidth,
l.minwidth = l.maxwidth = l.width = u,
u = s.width,
l.width = i,
l.minwidth = o,
l.maxwidth = a)),
u
}
) : o.documentelement.currentstyle && (rt = function(e) {
return e.currentstyle
}
,
wt = function(e, n, r) {
var i, o, a, s = r || rt(e), u = s ? s[n] : t, l = e.style;
return null == u && l && l[n] && (u = l[n]),
yt.test(u) && !zt.test(n) && (i = l.left,
o = e.runtimestyle,
a = o && o.left,
a && (o.left = e.currentstyle.left),
l.left = "fontsize" === n ? "1em" : u,
u = l.pixelleft + "px",
l.left = i,
a && (o.left = a)),
"" === u ? "auto" : u
}
);
function on(e, t, n) {
var r = vt.exec(t);
return r ? math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t
}
function an(e, t, n, r, i) {
var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0
, a = 0;
for (; 4 > o; o += 2)
"margin" === n && (a += b.css(e, n + zt[o], !0, i)),
r ? ("content" === n && (a -= b.css(e, "padding" + zt[o], !0, i)),
"margin" !== n && (a -= b.css(e, "border" + zt[o] + "width", !0, i))) : (a += b.css(e, "padding" + zt[o], !0, i),
"padding" !== n && (a += b.css(e, "border" + zt[o] + "width", !0, i)));
return a
}
function sn(e, t, n) {
var r = !0
, i = "width" === t ? e.offsetwidth : e.offsetheight
, o = rt(e)
, a = b.support.boxsizing && "border-box" === b.css(e, "boxsizing", !1, o);
if (0 >= i || null == i) {
if (i = wt(e, t, o),
(0 > i || null == i) && (i = e.style[t]),
yt.test(i))
return i;
r = a && (b.support.boxsizingreliable || i === e.style[t]),
i = parsefloat(i) || 0
}
return i + an(e, t, n || (a ? "border" : "content"), r, o) + "px"
}
function un(e) {
var t = o
, n = gt[e];
return n || (n = ln(e, t),
"none" !== n && n || (pt = (pt || b("").css("csstext", "display:block !important")).appendto(t.documentelement),
t = (pt[0].contentwindow || pt[0].contentdocument).document,
t.write(""),
t.close(),
n = ln(e, t),
pt.detach()),
gt[e] = n),
n
}
function ln(e, t) {
var n = b(t.createelement(e)).appendto(t.body)
, r = b.css(n[0], "display");
return n.remove(),
r
}
b.each(["height", "width"], function(e, n) {
b.csshooks[n] = {
get: function(e, r, i) {
return r ? 0 === e.offsetwidth && xt.test(b.css(e, "display")) ? b.swap(e, qt, function() {
return sn(e, n, i)
}) : sn(e, n, i) : t
},
set: function(e, t, r) {
var i = r && rt(e);
return on(e, t, r ? an(e, n, r, b.support.boxsizing && "border-box" === b.css(e, "boxsizing", !1, i), i) : 0)
}
}
}),
b.support.opacity || (b.csshooks.opacity = {
get: function(e, t) {
return it.test((t && e.currentstyle ? e.currentstyle.filter : e.style.filter) || "") ? .01 * parsefloat(regexp.$1) + "" : t ? "1" : ""
},
set: function(e, t) {
var n = e.style
, r = e.currentstyle
, i = b.isnumeric(t) ? "alpha(opacity=" + 100 * t + ")" : ""
, o = r && r.filter || n.filter || "";
n.zoom = 1,
(t >= 1 || "" === t) && "" === b.trim(o.replace($t, "")) && n.removeattribute && (n.removeattribute("filter"),
"" === t || r && !r.filter) || (n.filter = $t.test(o) ? o.replace($t, i) : o + " " + i)
}
}),
b(function() {
b.support.reliablemarginright || (b.csshooks.marginright = {
get: function(e, n) {
return n ? b.swap(e, {
display: "inline-block"
}, wt, [e, "marginright"]) : t
}
}),
!b.support.pixelposition && b.fn.position && b.each(["top", "left"], function(e, n) {
b.csshooks[n] = {
get: function(e, r) {
return r ? (r = wt(e, n),
yt.test(r) ? b(e).position()[n] + "px" : r) : t
}
}
})
}),
b.expr && b.expr.filters && (b.expr.filters.hidden = function(e) {
return 0 >= e.offsetwidth && 0 >= e.offsetheight || !b.support.reliablehiddenoffsets && "none" === (e.style && e.style.display || b.css(e, "display"))
}
,
b.expr.filters.visible = function(e) {
return !b.expr.filters.hidden(e)
}
),
b.each({
margin: "",
padding: "",
border: "width"
}, function(e, t) {
b.csshooks[e + t] = {
expand: function(n) {
var r = 0
, i = {}
, o = "string" == typeof n ? n.split(" ") : [n];
for (; 4 > r; r++)
i[e + zt[r] + t] = o[r] || o[r - 2] || o[0];
return i
}
},
ut.test(e) || (b.csshooks[e + t].set = on)
});
var cn = /%20/g
, pn = /\[\]$/
, fn = /\r?\n/g
, dn = /^(?:submit|button|image|reset|file)$/i
, hn = /^(?:input|select|textarea|keygen)/i;
b.fn.extend({
serialize: function() {
return b.param(this.serializearray())
},
serializearray: function() {
return this.map(function() {
var e = b.prop(this, "elements");
return e ? b.makearray(e) : this
}).filter(function() {
var e = this.type;
return this.name && !b(this).is(":disabled") && hn.test(this.nodename) && !dn.test(e) && (this.checked || !nt.test(e))
}).map(function(e, t) {
var n = b(this).val();
return null == n ? null : b.isarray(n) ? b.map(n, function(e) {
return {
name: t.name,
value: e.replace(fn, "\r\n")
}
}) : {
name: t.name,
value: n.replace(fn, "\r\n")
}
}).get()
}
}),
b.param = function(e, n) {
var r, i = [], o = function(e, t) {
t = b.isfunction(t) ? t() : null == t ? "" : t,
i[i.length] = encodeuricomponent(e) + "=" + encodeuricomponent(t)
};
if (n === t && (n = b.ajaxsettings && b.ajaxsettings.traditional),
b.isarray(e) || e.jquery && !b.isplainobject(e))
b.each(e, function() {
o(this.name, this.value)
});
else
for (r in e)
gn(r, e[r], n, o);
return i.join("&").replace(cn, "+")
}
;
function gn(e, t, n, r) {
var i;
if (b.isarray(t))
b.each(t, function(t, i) {
n || pn.test(e) ? r(e, i) : gn(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r)
});
else if (n || "object" !== b.type(t))
r(e, t);
else
for (i in t)
gn(e + "[" + i + "]", t[i], n, r)
}
b.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) {
b.fn[t] = function(e, n) {
return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t)
}
}),
b.fn.hover = function(e, t) {
return this.mouseenter(e).mouseleave(t || e)
}
;
var mn, yn, vn = b.now(), bn = /\?/, xn = /#.*$/, wn = /([?&])_=[^&]*/, tn = /^(.*?):[ \t]*([^\r\n]*)\r?$/gm, nn = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, cn = /^(?:get|head)$/, kn = /^\/\//, en = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, sn = b.fn.load, an = {}, jn = {}, dn = "*/".concat("*");
try {
yn = a.href
} catch (ln) {
yn = o.createelement("a"),
yn.href = "",
yn = yn.href
}
mn = en.exec(yn.tolowercase()) || [];
function hn(e) {
return function(t, n) {
"string" != typeof t && (n = t,
t = "*");
var r, i = 0, o = t.tolowercase().match(w) || [];
if (b.isfunction(n))
while (r = o[i++])
"+" === r[0] ? (r = r.slice(1) || "*",
(e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n)
}
}
function qn(e, n, r, i) {
var o = {}
, a = e === jn;
function s(u) {
var l;
return o[u] = !0,
b.each(e[u] || [], function(e, u) {
var c = u(n, r, i);
return "string" != typeof c || a || o[c] ? a ? !(l = c) : t : (n.datatypes.unshift(c),
s(c),
!1)
}),
l
}
return s(n.datatypes[0]) || !o["*"] && s("*")
}
function mn(e, n) {
var r, i, o = b.ajaxsettings.flatoptions || {};
for (i in n)
n[i] !== t && ((o[i] ? e : r || (r = {}))[i] = n[i]);
return r && b.extend(!0, e, r),
e
}
b.fn.load = function(e, n, r) {
if ("string" != typeof e && sn)
return sn.apply(this, arguments);
var i, o, a, s = this, u = e.indexof(" ");
return u >= 0 && (i = e.slice(u, e.length),
e = e.slice(0, u)),
b.isfunction(n) ? (r = n,
n = t) : n && "object" == typeof n && (a = "post"),
s.length > 0 && b.ajax({
url: e,
type: a,
datatype: "html",
data: n
}).done(function(e) {
o = arguments,
s.html(i ? b("").append(b.parsehtml(e)).find(i) : e)
}).complete(r && function(e, t) {
s.each(r, o || [e.responsetext, t, e])
}
),
this
}
,
b.each(["ajaxstart", "ajaxstop", "ajaxcomplete", "ajaxerror", "ajaxsuccess", "ajaxsend"], function(e, t) {
b.fn[t] = function(e) {
return this.on(t, e)
}
}),
b.each(["get", "post"], function(e, n) {
b[n] = function(e, r, i, o) {
return b.isfunction(r) && (o = o || i,
i = r,
r = t),
b.ajax({
url: e,
type: n,
datatype: o,
data: r,
success: i
})
}
}),
b.extend({
active: 0,
lastmodified: {},
etag: {},
ajaxsettings: {
url: yn,
type: "get",
islocal: nn.test(mn[1]),
global: !0,
processdata: !0,
async: !0,
contenttype: "application/x-www-form-urlencoded; charset=utf-8",
accepts: {
"*": dn,
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"
},
converters: {
"* text": e.string,
"text html": !0,
"text json": b.parsejson,
"text xml": b.parsexml
},
flatoptions: {
url: !0,
context: !0
}
},
ajaxsetup: function(e, t) {
return t ? mn(mn(e, b.ajaxsettings), t) : mn(b.ajaxsettings, e)
},
ajaxprefilter: hn(an),
ajaxtransport: hn(jn),
ajax: function(e, n) {
"object" == typeof e && (n = e,
e = t),
n = n || {};
var r, i, o, a, s, u, l, c, p = b.ajaxsetup({}, n), f = p.context || p, d = p.context && (f.nodetype || f.jquery) ? b(f) : b.event, h = b.deferred(), g = b.callbacks("once memory"), m = p.statuscode || {}, y = {}, v = {}, x = 0, t = "canceled", n = {
readystate: 0,
getresponseheader: function(e) {
var t;
if (2 === x) {
if (!c) {
c = {};
while (t = tn.exec(a))
c[t[1].tolowercase()] = t[2]
}
t = c[e.tolowercase()]
}
return null == t ? null : t
},
getallresponseheaders: function() {
return 2 === x ? a : null
},
setrequestheader: function(e, t) {
var n = e.tolowercase();
return x || (e = v[n] = v[n] || e,
y[e] = t),
this
},
overridemimetype: function(e) {
return x || (p.mimetype = e),
this
},
statuscode: function(e) {
var t;
if (e)
if (2 > x)
for (t in e)
m[t] = [m[t], e[t]];
else
n.always(e[n.status]);
return this
},
abort: function(e) {
var t = e || t;
return l && l.abort(t),
k(0, t),
this
}
};
if (h.promise(n).complete = g.add,
n.success = n.done,
n.error = n.fail,
p.url = ((e || p.url || yn) + "").replace(xn, "").replace(kn, mn[1] + "//"),
p.type = n.method || n.type || p.method || p.type,
p.datatypes = b.trim(p.datatype || "*").tolowercase().match(w) || [""],
null == p.crossdomain && (r = en.exec(p.url.tolowercase()),
p.crossdomain = !(!r || r[1] === mn[1] && r[2] === mn[2] && (r[3] || ("http:" === r[1] ? 80 : 443)) == (mn[3] || ("http:" === mn[1] ? 80 : 443)))),
p.data && p.processdata && "string" != typeof p.data && (p.data = b.param(p.data, p.traditional)),
qn(an, p, n, n),
2 === x)
return n;
u = p.global,
u && 0 === b.active++ && b.event.trigger("ajaxstart"),
p.type = p.type.touppercase(),
p.hascontent = !cn.test(p.type),
o = p.url,
p.hascontent || (p.data && (o = p.url += (bn.test(o) ? "&" : "?") + p.data,
delete p.data),
p.cache === !1 && (p.url = wn.test(o) ? o.replace(wn, "$1_=" + vn++) : o + (bn.test(o) ? "&" : "?") + "_=" + vn++)),
p.ifmodified && (b.lastmodified[o] && n.setrequestheader("if-modified-since", b.lastmodified[o]),
b.etag[o] && n.setrequestheader("if-none-match", b.etag[o])),
(p.data && p.hascontent && p.contenttype !== !1 || n.contenttype) && n.setrequestheader("content-type", p.contenttype),
n.setrequestheader("accept", p.datatypes[0] && p.accepts[p.datatypes[0]] ? p.accepts[p.datatypes[0]] + ("*" !== p.datatypes[0] ? ", " + dn + "; q=0.01" : "") : p.accepts["*"]);
for (i in p.headers)
n.setrequestheader(i, p.headers[i]);
if (p.beforesend && (p.beforesend.call(f, n, p) === !1 || 2 === x))
return n.abort();
t = "abort";
for (i in {
success: 1,
error: 1,
complete: 1
})
n[i](p[i]);
if (l = qn(jn, p, n, n)) {
n.readystate = 1,
u && d.trigger("ajaxsend", [n, p]),
p.async && p.timeout > 0 && (s = settimeout(function() {
n.abort("timeout")
}, p.timeout));
try {
x = 1,
l.send(y, k)
} catch (c) {
if (!(2 > x))
throw c;
k(-1, c)
}
} else
k(-1, "no transport");
function k(e, n, r, i) {
var c, y, v, w, t, c = n;
2 !== x && (x = 2,
s && cleartimeout(s),
l = t,
a = i || "",
n.readystate = e > 0 ? 4 : 0,
r && (w = _n(p, n, r)),
e >= 200 && 300 > e || 304 === e ? (p.ifmodified && (t = n.getresponseheader("last-modified"),
t && (b.lastmodified[o] = t),
t = n.getresponseheader("etag"),
t && (b.etag[o] = t)),
204 === e ? (c = !0,
c = "nocontent") : 304 === e ? (c = !0,
c = "notmodified") : (c = fn(p, w),
c = c.state,
y = c.data,
v = c.error,
c = !v)) : (v = c,
(e || !c) && (c = "error",
0 > e && (e = 0))),
n.status = e,
n.statustext = (n || c) + "",
c ? h.resolvewith(f, [y, c, n]) : h.rejectwith(f, [n, c, v]),
n.statuscode(m),
m = t,
u && d.trigger(c ? "ajaxsuccess" : "ajaxerror", [n, p, c ? y : v]),
g.firewith(f, [n, c]),
u && (d.trigger("ajaxcomplete", [n, p]),
--b.active || b.event.trigger("ajaxstop")))
}
return n
},
getscript: function(e, n) {
return b.get(e, t, n, "script")
},
getjson: function(e, t, n) {
return b.get(e, t, n, "json")
}
});
function _n(e, n, r) {
var i, o, a, s, u = e.contents, l = e.datatypes, c = e.responsefields;
for (s in c)
s in r && (n[c[s]] = r[s]);
while ("*" === l[0])
l.shift(),
o === t && (o = e.mimetype || n.getresponseheader("content-type"));
if (o)
for (s in u)
if (u[s] && u[s].test(o)) {
l.unshift(s);
break
}
if (l[0]in r)
a = l[0];
else {
for (s in r) {
if (!l[0] || e.converters[s + " " + l[0]]) {
a = s;
break
}
i || (i = s)
}
a = a || i
}
return a ? (a !== l[0] && l.unshift(a),
r[a]) : t
}
function fn(e, t) {
var n, r, i, o, a = {}, s = 0, u = e.datatypes.slice(), l = u[0];
if (e.datafilter && (t = e.datafilter(t, e.datatype)),
u[1])
for (i in e.converters)
a[i.tolowercase()] = e.converters[i];
for (; r = u[++s]; )
if ("*" !== r) {
if ("*" !== l && l !== r) {
if (i = a[l + " " + r] || a["* " + r],
!i)
for (n in a)
if (o = n.split(" "),
o[1] === r && (i = a[l + " " + o[0]] || a["* " + o[0]])) {
i === !0 ? i = a[n] : a[n] !== !0 && (r = o[0],
u.splice(s--, 0, r));
break
}
if (i !== !0)
if (i && e["throws"])
t = i(t);
else
try {
t = i(t)
} catch (c) {
return {
state: "parsererror",
error: i ? c : "no conversion from " + l + " to " + r
}
}
}
l = r
}
return {
state: "success",
data: t
}
}
b.ajaxsetup({
accepts: {
script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
},
contents: {
script: /(?:java|ecma)script/
},
converters: {
"text script": function(e) {
return b.globaleval(e),
e
}
}
}),
b.ajaxprefilter("script", function(e) {
e.cache === t && (e.cache = !1),
e.crossdomain && (e.type = "get",
e.global = !1)
}),
b.ajaxtransport("script", function(e) {
if (e.crossdomain) {
var n, r = o.head || b("head")[0] || o.documentelement;
return {
send: function(t, i) {
n = o.createelement("script"),
n.async = !0,
e.scriptcharset && (n.charset = e.scriptcharset),
n.src = e.url,
n.onload = n.onreadystatechange = function(e, t) {
(t || !n.readystate || /loaded|complete/.test(n.readystate)) && (n.onload = n.onreadystatechange = null,
n.parentnode && n.parentnode.removechild(n),
n = null,
t || i(200, "success"))
}
,
r.insertbefore(n, r.firstchild)
},
abort: function() {
n && n.onload(t, !0)
}
}
}
});
var on = []
, bn = /(=)\?(?=&|$)|\?\?/;
b.ajaxsetup({
jsonp: "callback",
jsonpcallback: function() {
var e = on.pop() || b.expando + "_" + vn++;
return this[e] = !0,
e
}
}),
b.ajaxprefilter("json jsonp", function(n, r, i) {
var o, a, s, u = n.jsonp !== !1 && (bn.test(n.url) ? "url" : "string" == typeof n.data && !(n.contenttype || "").indexof("application/x-www-form-urlencoded") && bn.test(n.data) && "data");
return u || "jsonp" === n.datatypes[0] ? (o = n.jsonpcallback = b.isfunction(n.jsonpcallback) ? n.jsonpcallback() : n.jsonpcallback,
u ? n[u] = n[u].replace(bn, "$1" + o) : n.jsonp !== !1 && (n.url += (bn.test(n.url) ? "&" : "?") + n.jsonp + "=" + o),
n.converters["script json"] = function() {
return s || b.error(o + " was not called"),
s[0]
}
,
n.datatypes[0] = "json",
a = e[o],
e[o] = function() {
s = arguments
}
,
i.always(function() {
e[o] = a,
n[o] && (n.jsonpcallback = r.jsonpcallback,
on.push(o)),
s && b.isfunction(a) && a(s[0]),
s = a = t
}),
"script") : t
});
var pn, rn, wn = 0, $n = e.activexobject && function() {
var e;
for (e in pn)
pn[e](t, !0)
}
;
function in() {
try {
return new e.xmlhttprequest
} catch (t) {}
}
function zn() {
try {
return new e.activexobject("microsoft.xmlhttp")
} catch (t) {}
}
b.ajaxsettings.xhr = e.activexobject ? function() {
return !this.islocal && in() || zn()
}
: in,
rn = b.ajaxsettings.xhr(),
b.support.cors = !!rn && "withcredentials"in rn,
rn = b.support.ajax = !!rn,
rn && b.ajaxtransport(function(n) {
if (!n.crossdomain || b.support.cors) {
var r;
return {
send: function(i, o) {
var a, s, u = n.xhr();
if (n.username ? u.open(n.type, n.url, n.async, n.username, n.password) : u.open(n.type, n.url, n.async),
n.xhrfields)
for (s in n.xhrfields)
u[s] = n.xhrfields[s];
n.mimetype && u.overridemimetype && u.overridemimetype(n.mimetype),
n.crossdomain || i["x-requested-with"] || (i["x-requested-with"] = "xmlhttprequest");
try {
for (s in i)
u.setrequestheader(s, i[s])
} catch (l) {}
u.send(n.hascontent && n.data || null),
r = function(e, i) {
var s, l, c, p;
try {
if (r && (i || 4 === u.readystate))
if (r = t,
a && (u.onreadystatechange = b.noop,
$n && delete pn[a]),
i)
4 !== u.readystate && u.abort();
else {
p = {},
s = u.status,
l = u.getallresponseheaders(),
"string" == typeof u.responsetext && (p.text = u.responsetext);
try {
c = u.statustext
} catch (f) {
c = ""
}
s || !n.islocal || n.crossdomain ? 1223 === s && (s = 204) : s = p.text ? 200 : 404
}
} catch (d) {
i || o(-1, d)
}
p && o(s, c, p, l)
}
,
n.async ? 4 === u.readystate ? settimeout(r) : (a = ++wn,
$n && (pn || (pn = {},
b(e).unload($n)),
pn[a] = r),
u.onreadystatechange = r) : r()
},
abort: function() {
r && r(t, !0)
}
}
}
});
var xn, un, vn = /^(?:toggle|show|hide)$/, yn = regexp("^(?:([+-])=|)(" + x + ")([a-z%]*)$", "i"), jn = /queuehooks$/, gn = [nr], qn = {
"*": [function(e, t) {
var n, r, i = this.createtween(e, t), o = yn.exec(t), a = i.cur(), s = +a || 0, u = 1, l = 20;
if (o) {
if (n = +o[2],
r = o[3] || (b.cssnumber[e] ? "" : "px"),
"px" !== r && s) {
s = b.css(i.elem, e, !0) || n || 1;
do
u = u || ".5",
s /= u,
b.style(i.elem, e, s + r);
while (u !== (u = i.cur() / a) && 1 !== u && --l)
}
i.unit = r,
i.start = s,
i.end = o[1] ? s + (o[1] + 1) * n : n
}
return i
}
]
};
function kn() {
return settimeout(function() {
xn = t
}),
xn = b.now()
}
function zn(e, t) {
b.each(t, function(t, n) {
var r = (qn[t] || []).concat(qn["*"])
, i = 0
, o = r.length;
for (; o > i; i++)
if (r[i].call(e, t, n))
return
})
}
function er(e, t, n) {
var r, i, o = 0, a = gn.length, s = b.deferred().always(function() {
delete u.elem
}), u = function() {
if (i)
return !1;
var t = xn || kn()
, n = math.max(0, l.starttime + l.duration - t)
, r = n / l.duration || 0
, o = 1 - r
, a = 0
, u = l.tweens.length;
for (; u > a; a++)
l.tweens[a].run(o);
return s.notifywith(e, [l, o, n]),
1 > o && u ? n : (s.resolvewith(e, [l]),
!1)
}, l = s.promise({
elem: e,
props: b.extend({}, t),
opts: b.extend(!0, {
specialeasing: {}
}, n),
originalproperties: t,
originaloptions: n,
starttime: xn || kn(),
duration: n.duration,
tweens: [],
createtween: function(t, n) {
var r = b.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 ? s.resolvewith(e, [l, t]) : s.rejectwith(e, [l, t]),
this
}
}), c = l.props;
for (tr(c, l.opts.specialeasing); a > o; o++)
if (r = gn[o].call(l, e, c, l.opts))
return r;
return zn(l, c),
b.isfunction(l.opts.start) && l.opts.start.call(e, l),
b.fx.timer(b.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 tr(e, t) {
var n, r, i, o, a;
for (i in e)
if (r = b.camelcase(i),
o = t[r],
n = e[i],
b.isarray(n) && (o = n[1],
n = e[i] = n[0]),
i !== r && (e[r] = n,
delete e[i]),
a = b.csshooks[r],
a && "expand"in a) {
n = a.expand(n),
delete e[r];
for (i in n)
i in e || (e[i] = n[i],
t[i] = o)
} else
t[r] = o
}
b.animation = b.extend(er, {
tweener: function(e, t) {
b.isfunction(e) ? (t = e,
e = ["*"]) : e = e.split(" ");
var n, r = 0, i = e.length;
for (; i > r; r++)
n = e[r],
qn[n] = qn[n] || [],
qn[n].unshift(t)
},
prefilter: function(e, t) {
t ? gn.unshift(e) : gn.push(e)
}
});
function nr(e, t, n) {
var r, i, o, a, s, u, l, c, p, f = this, d = e.style, h = {}, g = [], m = e.nodetype && nn(e);
n.queue || (c = b._queuehooks(e, "fx"),
null == c.unqueued && (c.unqueued = 0,
p = c.empty.fire,
c.empty.fire = function() {
c.unqueued || p()
}
),
c.unqueued++,
f.always(function() {
f.always(function() {
c.unqueued--,
b.queue(e, "fx").length || c.empty.fire()
})
})),
1 === e.nodetype && ("height"in t || "width"in t) && (n.overflow = [d.overflow, d.overflowx, d.overflowy],
"inline" === b.css(e, "display") && "none" === b.css(e, "float") && (b.support.inlineblockneedslayout && "inline" !== un(e.nodename) ? d.zoom = 1 : d.display = "inline-block")),
n.overflow && (d.overflow = "hidden",
b.support.shrinkwrapblocks || f.always(function() {
d.overflow = n.overflow[0],
d.overflowx = n.overflow[1],
d.overflowy = n.overflow[2]
}));
for (i in t)
if (a = t[i],
vn.exec(a)) {
if (delete t[i],
u = u || "toggle" === a,
a === (m ? "hide" : "show"))
continue;
g.push(i)
}
if (o = g.length) {
s = b._data(e, "fxshow") || b._data(e, "fxshow", {}),
"hidden"in s && (m = s.hidden),
u && (s.hidden = !m),
m ? b(e).show() : f.done(function() {
b(e).hide()
}),
f.done(function() {
var t;
b._removedata(e, "fxshow");
for (t in h)
b.style(e, t, h[t])
});
for (i = 0; o > i; i++)
r = g[i],
l = f.createtween(r, m ? s[r] : 0),
h[r] = s[r] || b.style(e, r),
r in s || (s[r] = l.start,
m && (l.end = l.start,
l.start = "width" === r || "height" === r ? 1 : 0))
}
}
function rr(e, t, n, r, i) {
return new rr.prototype.init(e,t,n,r,i)
}
b.tween = rr,
rr.prototype = {
constructor: rr,
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 || (b.cssnumber[n] ? "" : "px")
},
cur: function() {
var e = rr.prophooks[this.prop];
return e && e.get ? e.get(this) : rr.prophooks._default.get(this)
},
run: function(e) {
var t, n = rr.prophooks[this.prop];
return this.pos = t = this.options.duration ? b.easing[this.easing](e, this.options.duration * e, 0, 1, this.options.duration) : 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) : rr.prophooks._default.set(this),
this
}
},
rr.prototype.init.prototype = rr.prototype,
rr.prophooks = {
_default: {
get: function(e) {
var t;
return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = b.css(e.elem, e.prop, ""),
t && "auto" !== t ? t : 0) : e.elem[e.prop]
},
set: function(e) {
b.fx.step[e.prop] ? b.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[b.cssprops[e.prop]] || b.csshooks[e.prop]) ? b.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now
}
}
},
rr.prophooks.scrolltop = rr.prophooks.scrollleft = {
set: function(e) {
e.elem.nodetype && e.elem.parentnode && (e.elem[e.prop] = e.now)
}
},
b.each(["toggle", "show", "hide"], function(e, t) {
var n = b.fn[t];
b.fn[t] = function(e, r, i) {
return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(ir(t, !0), e, r, i)
}
}),
b.fn.extend({
fadeto: function(e, t, n, r) {
return this.filter(nn).css("opacity", 0).show().end().animate({
opacity: t
}, e, n, r)
},
animate: function(e, t, n, r) {
var i = b.isemptyobject(e)
, o = b.speed(t, n, r)
, a = function() {
var t = er(this, b.extend({}, e), o);
a.finish = function() {
t.stop(!0)
}
,
(i || b._data(this, "finish")) && t.stop(!0)
};
return a.finish = a,
i || o.queue === !1 ? this.each(a) : this.queue(o.queue, a)
},
stop: function(e, n, r) {
var i = function(e) {
var t = e.stop;
delete e.stop,
t(r)
};
return "string" != typeof e && (r = n,
n = e,
e = t),
n && e !== !1 && this.queue(e || "fx", []),
this.each(function() {
var t = !0
, n = null != e && e + "queuehooks"
, o = b.timers
, a = b._data(this);
if (n)
a[n] && a[n].stop && i(a[n]);
else
for (n in a)
a[n] && a[n].stop && jn.test(n) && i(a[n]);
for (n = o.length; n--; )
o[n].elem !== this || null != e && o[n].queue !== e || (o[n].anim.stop(r),
t = !1,
o.splice(n, 1));
(t || !r) && b.dequeue(this, e)
})
},
finish: function(e) {
return e !== !1 && (e = e || "fx"),
this.each(function() {
var t, n = b._data(this), r = n[e + "queue"], i = n[e + "queuehooks"], o = b.timers, a = r ? r.length : 0;
for (n.finish = !0,
b.queue(this, e, []),
i && i.cur && i.cur.finish && i.cur.finish.call(this),
t = o.length; t--; )
o[t].elem === this && o[t].queue === e && (o[t].anim.stop(!0),
o.splice(t, 1));
for (t = 0; a > t; t++)
r[t] && r[t].finish && r[t].finish.call(this);
delete n.finish
})
}
});
function ir(e, t) {
var n, r = {
height: e
}, i = 0;
for (t = t ? 1 : 0; 4 > i; i += 2 - t)
n = zt[i],
r["margin" + n] = r["padding" + n] = e;
return t && (r.opacity = r.width = e),
r
}
b.each({
slidedown: ir("show"),
slideup: ir("hide"),
slidetoggle: ir("toggle"),
fadein: {
opacity: "show"
},
fadeout: {
opacity: "hide"
},
fadetoggle: {
opacity: "toggle"
}
}, function(e, t) {
b.fn[e] = function(e, n, r) {
return this.animate(t, e, n, r)
}
}),
b.speed = function(e, t, n) {
var r = e && "object" == typeof e ? b.extend({}, e) : {
complete: n || !n && t || b.isfunction(e) && e,
duration: e,
easing: n && t || t && !b.isfunction(t) && t
};
return r.duration = b.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in b.fx.speeds ? b.fx.speeds[r.duration] : b.fx.speeds._default,
(null == r.queue || r.queue === !0) && (r.queue = "fx"),
r.old = r.complete,
r.complete = function() {
b.isfunction(r.old) && r.old.call(this),
r.queue && b.dequeue(this, r.queue)
}
,
r
}
,
b.easing = {
linear: function(e) {
return e
},
swing: function(e) {
return .5 - math.cos(e * math.pi) / 2
}
},
b.timers = [],
b.fx = rr.prototype.init,
b.fx.tick = function() {
var e, n = b.timers, r = 0;
for (xn = b.now(); n.length > r; r++)
e = n[r],
e() || n[r] !== e || n.splice(r--, 1);
n.length || b.fx.stop(),
xn = t
}
,
b.fx.timer = function(e) {
e() && b.timers.push(e) && b.fx.start()
}
,
b.fx.interval = 13,
b.fx.start = function() {
un || (un = setinterval(b.fx.tick, b.fx.interval))
}
,
b.fx.stop = function() {
clearinterval(un),
un = null
}
,
b.fx.speeds = {
slow: 600,
fast: 200,
_default: 400
},
b.fx.step = {},
b.expr && b.expr.filters && (b.expr.filters.animated = function(e) {
return b.grep(b.timers, function(t) {
return e === t.elem
}).length
}
),
b.fn.offset = function(e) {
if (arguments.length)
return e === t ? this : this.each(function(t) {
b.offset.setoffset(this, e, t)
});
var n, r, o = {
top: 0,
left: 0
}, a = this[0], s = a && a.ownerdocument;
if (s)
return n = s.documentelement,
b.contains(n, a) ? (typeof a.getboundingclientrect !== i && (o = a.getboundingclientrect()),
r = or(s),
{
top: o.top + (r.pageyoffset || n.scrolltop) - (n.clienttop || 0),
left: o.left + (r.pagexoffset || n.scrollleft) - (n.clientleft || 0)
}) : o
}
,
b.offset = {
setoffset: function(e, t, n) {
var r = b.css(e, "position");
"static" === r && (e.style.position = "relative");
var i = b(e), o = i.offset(), a = b.css(e, "top"), s = b.css(e, "left"), u = ("absolute" === r || "fixed" === r) && b.inarray("auto", [a, s]) > -1, l = {}, c = {}, p, f;
u ? (c = i.position(),
p = c.top,
f = c.left) : (p = parsefloat(a) || 0,
f = parsefloat(s) || 0),
b.isfunction(t) && (t = t.call(e, n, o)),
null != t.top && (l.top = t.top - o.top + p),
null != t.left && (l.left = t.left - o.left + f),
"using"in t ? t.using.call(e, l) : i.css(l)
}
},
b.fn.extend({
position: function() {
if (this[0]) {
var e, t, n = {
top: 0,
left: 0
}, r = this[0];
return "fixed" === b.css(r, "position") ? t = r.getboundingclientrect() : (e = this.offsetparent(),
t = this.offset(),
b.nodename(e[0], "html") || (n = e.offset()),
n.top += b.css(e[0], "bordertopwidth", !0),
n.left += b.css(e[0], "borderleftwidth", !0)),
{
top: t.top - n.top - b.css(r, "margintop", !0),
left: t.left - n.left - b.css(r, "marginleft", !0)
}
}
},
offsetparent: function() {
return this.map(function() {
var e = this.offsetparent || o.documentelement;
while (e && !b.nodename(e, "html") && "static" === b.css(e, "position"))
e = e.offsetparent;
return e || o.documentelement
})
}
}),
b.each({
scrollleft: "pagexoffset",
scrolltop: "pageyoffset"
}, function(e, n) {
var r = /y/.test(n);
b.fn[e] = function(i) {
return b.access(this, function(e, i, o) {
var a = or(e);
return o === t ? a ? n in a ? a[n] : a.document.documentelement[i] : e[i] : (a ? a.scrollto(r ? b(a).scrollleft() : o, r ? o : b(a).scrolltop()) : e[i] = o,
t)
}, e, i, arguments.length, null)
}
});
function or(e) {
return b.iswindow(e) ? e : 9 === e.nodetype ? e.defaultview || e.parentwindow : !1
}
b.each({
height: "height",
width: "width"
}, function(e, n) {
b.each({
padding: "inner" + e,
content: n,
"": "outer" + e
}, function(r, i) {
b.fn[i] = function(i, o) {
var a = arguments.length && (r || "boolean" != typeof i)
, s = r || (i === !0 || o === !0 ? "margin" : "border");
return b.access(this, function(n, r, i) {
var o;
return b.iswindow(n) ? n.document.documentelement["client" + e] : 9 === n.nodetype ? (o = n.documentelement,
math.max(n.body["scroll" + e], o["scroll" + e], n.body["offset" + e], o["offset" + e], o["client" + e])) : i === t ? b.css(n, r, s) : b.style(n, r, i, s)
}, n, a ? i : t, a, null)
}
})
}),
e.jquery = e.$ = b,
"function" == typeof define && define.amd && define.amd.jquery && define("jquery", [], function() {
return b
})
}
)(window);