Mercurial > hg > LGServices
comparison src/main/webapp/resources/js/jquery.min.js.2.0.2 @ 95:b27a99201cbe
New feature: new full text search with MySQL ngram parser (5.7.6 above)
author | Calvin Yeh <cyeh@mpipw-berlin.mpg.com> |
---|---|
date | Mon, 03 Jul 2017 23:48:53 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
94:d0dcbe8254f5 | 95:b27a99201cbe |
---|---|
1 /*! jQuery v2.0.2 | (c) 2005, 2013 jQuery Foundation, Inc. | jquery.org/license | |
2 //@ sourceMappingURL=jquery-2.0.2.min.map | |
3 */ | |
4 ( | |
5 function (e, undefined) { | |
6 var t, n, r = typeof undefined, | |
7 i = e.location, | |
8 o = e.document, | |
9 s = o.documentElement, | |
10 a = e.jQuery, | |
11 u = e.$, | |
12 l = {}, c = [], | |
13 p = "2.0.2", | |
14 f = c.concat, | |
15 h = c.push, | |
16 d = c.slice, | |
17 g = c.indexOf, | |
18 m = l.toString, | |
19 y = l.hasOwnProperty, | |
20 v = p.trim, | |
21 x = function (e, n) { | |
22 return new x.fn.init(e, n, t) | |
23 }, b = /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source, | |
24 w = /\S+/g, | |
25 T = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/, | |
26 C = /^<(\w+)\s*\/?>(?:<\/\1>|)$/, | |
27 k = /^-ms-/, | |
28 N = /-([\da-z])/gi, | |
29 E = function (e, t) { | |
30 return t.toUpperCase() | |
31 }, S = function () { | |
32 o.removeEventListener("DOMContentLoaded", S, !1), e.removeEventListener("load", S, !1), x.ready() | |
33 }; | |
34 x.fn = x.prototype = { | |
35 jquery: p, | |
36 constructor: x, | |
37 init: function (e, t, n) { | |
38 var r, i; | |
39 if (!e) return this; | |
40 if ("string" == typeof e) { | |
41 if (r = "<" === e.charAt(0) && ">" === e.charAt(e.length - 1) && e.length >= 3 ? [null, e, null] : T.exec(e), !r || !r[1] && t) return !t || t.jquery ? (t || n).find(e) : this.constructor(t).find(e); | |
42 if (r[1]) { | |
43 if (t = t instanceof x ? t[0] : t, x.merge(this, x.parseHTML(r[1], t && t.nodeType ? t.ownerDocument || t : o, !0)), C.test(r[1]) && x.isPlainObject(t)) | |
44 for (r in t) x.isFunction(this[r]) ? this[r](t[r]) : this.attr(r, t[r]); | |
45 return this | |
46 } | |
47 return i = o.getElementById(r[2]), i && i.parentNode && (this.length = 1, this[0] = i), this.context = o, this.selector = e, this | |
48 } | |
49 return e.nodeType ? (this.context = this[0] = e, this.length = 1, this) : x.isFunction(e) ? n.ready(e) : (e.selector !== undefined && (this.selector = e.selector, this.context = e.context), x.makeArray(e, this)) | |
50 }, | |
51 selector: "", | |
52 length: 0, | |
53 toArray: function () { | |
54 return d.call(this) | |
55 }, | |
56 get: function (e) { | |
57 return null == e ? this.toArray() : 0 > e ? this[this.length + e] : this[e] | |
58 }, | |
59 pushStack: function (e) { | |
60 var t = x.merge(this.constructor(), e); | |
61 return t.prevObject = this, t.context = this.context, t | |
62 }, | |
63 each: function (e, t) { | |
64 return x.each(this, e, t) | |
65 }, | |
66 ready: function (e) { | |
67 return x.ready.promise().done(e), this | |
68 }, | |
69 slice: function () { | |
70 return this.pushStack(d.apply(this, arguments)) | |
71 }, | |
72 first: function () { | |
73 return this.eq(0) | |
74 }, | |
75 last: function () { | |
76 return this.eq(-1) | |
77 }, | |
78 eq: function (e) { | |
79 var t = this.length, | |
80 n = +e + (0 > e ? t : 0); | |
81 return this.pushStack(n >= 0 && t > n ? [this[n]] : []) | |
82 }, | |
83 map: function (e) { | |
84 return this.pushStack(x.map(this, function (t, n) { | |
85 return e.call(t, n, t) | |
86 })) | |
87 }, | |
88 end: function () { | |
89 return this.prevObject || this.constructor(null) | |
90 }, | |
91 push: h, | |
92 sort: [].sort, | |
93 splice: [].splice | |
94 }, x.fn.init.prototype = x.fn, x.extend = x.fn.extend = function () { | |
95 var e, t, n, r, i, o, s = arguments[0] || {}, a = 1, | |
96 u = arguments.length, | |
97 l = !1; | |
98 for ("boolean" == typeof s && (l = s, s = arguments[1] || {}, a = 2), "object" == typeof s || x.isFunction(s) || (s = {}), u === a && (s = this, --a); u > a; a++) | |
99 if (null != (e = arguments[a])) | |
100 for (t in e) n = s[t], r = e[t], s !== r && (l && r && (x.isPlainObject(r) || (i = x.isArray(r))) ? (i ? (i = !1, o = n && x.isArray(n) ? n : []) : o = n && x.isPlainObject(n) ? n : {}, s[t] = x.extend(l, o, r)) : r !== undefined && (s[t] = r)); | |
101 return s | |
102 }, x.extend({ | |
103 expando: "jQuery" + (p + Math.random()).replace(/\D/g, ""), | |
104 noConflict: function (t) { | |
105 return e.$ === x && (e.$ = u), t && e.jQuery === x && (e.jQuery = a), x | |
106 }, | |
107 isReady: !1, | |
108 readyWait: 1, | |
109 holdReady: function (e) { | |
110 e ? x.readyWait++ : x.ready(!0) | |
111 }, | |
112 ready: function (e) { | |
113 (e === !0 ? --x.readyWait : x.isReady) || (x.isReady = !0, e !== !0 && --x.readyWait > 0 || (n.resolveWith(o, [x]), x.fn.trigger && x(o).trigger("ready").off("ready"))) | |
114 }, | |
115 isFunction: function (e) { | |
116 return "function" === x.type(e) | |
117 }, | |
118 isArray: Array.isArray, | |
119 isWindow: function (e) { | |
120 return null != e && e === e.window | |
121 }, | |
122 isNumeric: function (e) { | |
123 return !isNaN(parseFloat(e)) && isFinite(e) | |
124 }, | |
125 type: function (e) { | |
126 return null == e ? e + "" : "object" == typeof e || "function" == typeof e ? l[m.call(e)] || "object" : typeof e | |
127 }, | |
128 isPlainObject: function (e) { | |
129 if ("object" !== x.type(e) || e.nodeType || x.isWindow(e)) return !1; | |
130 try { | |
131 if (e.constructor && !y.call(e.constructor.prototype, "isPrototypeOf")) return !1 | |
132 } catch (t) { | |
133 return !1 | |
134 } | |
135 return !0 | |
136 }, | |
137 isEmptyObject: function (e) { | |
138 var t; | |
139 for (t in e) return !1; | |
140 return !0 | |
141 }, | |
142 error: function (e) { | |
143 throw Error(e) | |
144 }, | |
145 parseHTML: function (e, t, n) { | |
146 if (!e || "string" != typeof e) return null; | |
147 "boolean" == typeof t && (n = t, t = !1), t = t || o; | |
148 var r = C.exec(e), | |
149 i = !n && []; | |
150 return r ? [t.createElement(r[1])] : (r = x.buildFragment([e], t, i), i && x(i).remove(), x.merge([], r.childNodes)) | |
151 }, | |
152 parseJSON: JSON.parse, | |
153 parseXML: function (e) { | |
154 var t, n; | |
155 if (!e || "string" != typeof e) return null; | |
156 try { | |
157 n = new DOMParser, t = n.parseFromString(e, "text/xml") | |
158 } catch (r) { | |
159 t = undefined | |
160 } | |
161 return (!t || t.getElementsByTagName("parsererror").length) && x.error("Invalid XML: " + e), t | |
162 }, | |
163 noop: function () {}, | |
164 globalEval: function (e) { | |
165 var t, n = eval; | |
166 e = x.trim(e), e && (1 === e.indexOf("use strict") ? (t = o.createElement("script"), t.text = e, o.head.appendChild(t).parentNode.removeChild(t)) : n(e)) | |
167 }, | |
168 camelCase: function (e) { | |
169 return e.replace(k, "ms-").replace(N, E) | |
170 }, | |
171 nodeName: function (e, t) { | |
172 return e.nodeName && e.nodeName.toLowerCase() === t.toLowerCase() | |
173 }, | |
174 each: function (e, t, n) { | |
175 var r, i = 0, | |
176 o = e.length, | |
177 s = j(e); | |
178 if (n) { | |
179 if (s) { | |
180 for (; o > i; i++) | |
181 if (r = t.apply(e[i], n), r === !1) break | |
182 } else | |
183 for (i in e) | |
184 if (r = t.apply(e[i], n), r === !1) break | |
185 } else if (s) { | |
186 for (; o > i; i++) | |
187 if (r = t.call(e[i], i, e[i]), r === !1) break | |
188 } else | |
189 for (i in e) | |
190 if (r = t.call(e[i], i, e[i]), r === !1) break; return e | |
191 }, | |
192 trim: function (e) { | |
193 return null == e ? "" : v.call(e) | |
194 }, | |
195 makeArray: function (e, t) { | |
196 var n = t || []; | |
197 return null != e && (j(Object(e)) ? x.merge(n, "string" == typeof e ? [e] : e) : h.call(n, e)), n | |
198 }, | |
199 inArray: function (e, t, n) { | |
200 return null == t ? -1 : g.call(t, e, n) | |
201 }, | |
202 merge: function (e, t) { | |
203 var n = t.length, | |
204 r = e.length, | |
205 i = 0; | |
206 if ("number" == typeof n) | |
207 for (; n > i; i++) e[r++] = t[i]; | |
208 else | |
209 while (t[i] !== undefined) e[r++] = t[i++]; | |
210 return e.length = r, e | |
211 }, | |
212 grep: function (e, t, n) { | |
213 var r, i = [], | |
214 o = 0, | |
215 s = e.length; | |
216 for (n = !! n; s > o; o++) r = !! t(e[o], o), n !== r && i.push(e[o]); | |
217 return i | |
218 }, | |
219 map: function (e, t, n) { | |
220 var r, i = 0, | |
221 o = e.length, | |
222 s = j(e), | |
223 a = []; | |
224 if (s) | |
225 for (; o > i; i++) r = t(e[i], i, n), null != r && (a[a.length] = r); | |
226 else | |
227 for (i in e) r = t(e[i], i, n), null != r && (a[a.length] = r); | |
228 return f.apply([], a) | |
229 }, | |
230 guid: 1, | |
231 proxy: function (e, t) { | |
232 var n, r, i; | |
233 return "string" == typeof t && (n = e[t], t = e, e = n), x.isFunction(e) ? (r = d.call(arguments, 2), i = function () { | |
234 return e.apply(t || this, r.concat(d.call(arguments))) | |
235 }, i.guid = e.guid = e.guid || x.guid++, i) : undefined | |
236 }, | |
237 access: function (e, t, n, r, i, o, s) { | |
238 var a = 0, | |
239 u = e.length, | |
240 l = null == n; | |
241 if ("object" === x.type(n)) { | |
242 i = !0; | |
243 for (a in n) x.access(e, t, a, n[a], !0, o, s) | |
244 } else if (r !== undefined && (i = !0, x.isFunction(r) || (s = !0), l && (s ? (t.call(e, r), t = null) : (l = t, t = function (e, t, n) { | |
245 return l.call(x(e), n) | |
246 })), t)) | |
247 for (; u > a; a++) t(e[a], n, s ? r : r.call(e[a], a, t(e[a], n))); | |
248 return i ? e : l ? t.call(e) : u ? t(e[0], n) : o | |
249 }, | |
250 now: Date.now, | |
251 swap: function (e, t, n, r) { | |
252 var i, o, s = {}; | |
253 for (o in t) s[o] = e.style[o], e.style[o] = t[o]; | |
254 i = n.apply(e, r || []); | |
255 for (o in t) e.style[o] = s[o]; | |
256 return i | |
257 } | |
258 }), x.ready.promise = function (t) { | |
259 return n || (n = x.Deferred(), "complete" === o.readyState ? setTimeout(x.ready) : (o.addEventListener("DOMContentLoaded", S, !1), e.addEventListener("load", S, !1))), n.promise(t) | |
260 }, x.each("Boolean Number String Function Array Date RegExp Object Error".split(" "), function (e, t) { | |
261 l["[object " + t + "]"] = t.toLowerCase() | |
262 }); | |
263 | |
264 function j(e) { | |
265 var t = e.length, | |
266 n = x.type(e); | |
267 return x.isWindow(e) ? !1 : 1 === e.nodeType && t ? !0 : "array" === n || "function" !== n && (0 === t || "number" == typeof t && t > 0 && t - 1 in e) | |
268 } | |
269 t = x(o), | |
270 function (e, undefined) { | |
271 var t, n, r, i, o, s, a, u, l, c, p, f, h, d, g, m, y, v = "sizzle" + -new Date, | |
272 b = e.document, | |
273 w = 0, | |
274 T = 0, | |
275 C = at(), | |
276 k = at(), | |
277 N = at(), | |
278 E = !1, | |
279 S = function () { | |
280 return 0 | |
281 }, j = typeof undefined, | |
282 D = 1 << 31, | |
283 A = {}.hasOwnProperty, | |
284 L = [], | |
285 H = L.pop, | |
286 q = L.push, | |
287 O = L.push, | |
288 F = L.slice, | |
289 P = L.indexOf || function (e) { | |
290 var t = 0, | |
291 n = this.length; | |
292 for (; n > t; t++) | |
293 if (this[t] === e) return t; | |
294 return -1 | |
295 }, R = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", | |
296 M = "[\\x20\\t\\r\\n\\f]", | |
297 W = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+", | |
298 $ = W.replace("w", "w#"), | |
299 B = "\\[" + M + "*(" + W + ")" + M + "*(?:([*^$|!~]?=)" + M + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + $ + ")|)|)" + M + "*\\]", | |
300 I = ":(" + W + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + B.replace(3, 8) + ")*)|.*)\\)|)", | |
301 z = RegExp("^" + M + "+|((?:^|[^\\\\])(?:\\\\.)*)" + M + "+$", "g"), | |
302 _ = RegExp("^" + M + "*," + M + "*"), | |
303 X = RegExp("^" + M + "*([>+~]|" + M + ")" + M + "*"), | |
304 U = RegExp(M + "*[+~]"), | |
305 Y = RegExp("=" + M + "*([^\\]'\"]*)" + M + "*\\]", "g"), | |
306 V = RegExp(I), | |
307 G = RegExp("^" + $ + "$"), | |
308 J = { | |
309 ID: RegExp("^#(" + W + ")"), | |
310 CLASS: RegExp("^\\.(" + W + ")"), | |
311 TAG: RegExp("^(" + W.replace("w", "w*") + ")"), | |
312 ATTR: RegExp("^" + B), | |
313 PSEUDO: RegExp("^" + I), | |
314 CHILD: RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + M + "*(even|odd|(([+-]|)(\\d*)n|)" + M + "*(?:([+-]|)" + M + "*(\\d+)|))" + M + "*\\)|)", "i"), | |
315 bool: RegExp("^(?:" + R + ")$", "i"), | |
316 needsContext: RegExp("^" + M + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + M + "*((?:-\\d)?\\d*)" + M + "*\\)|)(?=[^-]|$)", "i") | |
317 }, Q = /^[^{]+\{\s*\[native \w/, | |
318 K = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, | |
319 Z = /^(?:input|select|textarea|button)$/i, | |
320 et = /^h\d$/i, | |
321 tt = /'|\\/g, | |
322 nt = RegExp("\\\\([\\da-f]{1,6}" + M + "?|(" + M + ")|.)", "ig"), | |
323 rt = function (e, t, n) { | |
324 var r = "0x" + t - 65536; | |
325 return r !== r || n ? t : 0 > r ? String.fromCharCode(r + 65536) : String.fromCharCode(55296 | r >> 10, 56320 | 1023 & r) | |
326 }; | |
327 try { | |
328 O.apply(L = F.call(b.childNodes), b.childNodes), L[b.childNodes.length].nodeType | |
329 } catch (it) { | |
330 O = { | |
331 apply: L.length ? function (e, t) { | |
332 q.apply(e, F.call(t)) | |
333 } : function (e, t) { | |
334 var n = e.length, | |
335 r = 0; | |
336 while (e[n++] = t[r++]); | |
337 e.length = n - 1 | |
338 } | |
339 } | |
340 } | |
341 | |
342 function ot(e, t, r, i) { | |
343 var o, s, a, u, l, f, g, m, x, w; | |
344 if ((t ? t.ownerDocument || t : b) !== p && c(t), t = t || p, r = r || [], !e || "string" != typeof e) return r; | |
345 if (1 !== (u = t.nodeType) && 9 !== u) return []; | |
346 if (h && !i) { | |
347 if (o = K.exec(e)) | |
348 if (a = o[1]) { | |
349 if (9 === u) { | |
350 if (s = t.getElementById(a), !s || !s.parentNode) return r; | |
351 if (s.id === a) return r.push(s), r | |
352 } else if (t.ownerDocument && (s = t.ownerDocument.getElementById(a)) && y(t, s) && s.id === a) return r.push(s), r | |
353 } else { | |
354 if (o[2]) return O.apply(r, t.getElementsByTagName(e)), r; | |
355 if ((a = o[3]) && n.getElementsByClassName && t.getElementsByClassName) return O.apply(r, t.getElementsByClassName(a)), r | |
356 } | |
357 if (n.qsa && (!d || !d.test(e))) { | |
358 if (m = g = v, x = t, w = 9 === u && e, 1 === u && "object" !== t.nodeName.toLowerCase()) { | |
359 f = vt(e), (g = t.getAttribute("id")) ? m = g.replace(tt, "\\$&") : t.setAttribute("id", m), m = "[id='" + m + "'] ", l = f.length; | |
360 while (l--) f[l] = m + xt(f[l]); | |
361 x = U.test(e) && t.parentNode || t, w = f.join(",") | |
362 } | |
363 if (w) try { | |
364 return O.apply(r, x.querySelectorAll(w)), r | |
365 } catch (T) {} finally { | |
366 g || t.removeAttribute("id") | |
367 } | |
368 } | |
369 } | |
370 return St(e.replace(z, "$1"), t, r, i) | |
371 } | |
372 | |
373 function st(e) { | |
374 return Q.test(e + "") | |
375 } | |
376 | |
377 function at() { | |
378 var e = []; | |
379 | |
380 function t(n, r) { | |
381 return e.push(n += " ") > i.cacheLength && delete t[e.shift()], t[n] = r | |
382 } | |
383 return t | |
384 } | |
385 | |
386 function ut(e) { | |
387 return e[v] = !0, e | |
388 } | |
389 | |
390 function lt(e) { | |
391 var t = p.createElement("div"); | |
392 try { | |
393 return !!e(t) | |
394 } catch (n) { | |
395 return !1 | |
396 } finally { | |
397 t.parentNode && t.parentNode.removeChild(t), t = null | |
398 } | |
399 } | |
400 | |
401 function ct(e, t, n) { | |
402 e = e.split("|"); | |
403 var r, o = e.length, | |
404 s = n ? null : t; | |
405 while (o--)(r = i.attrHandle[e[o]]) && r !== t || (i.attrHandle[e[o]] = s) | |
406 } | |
407 | |
408 function pt(e, t) { | |
409 var n = e.getAttributeNode(t); | |
410 return n && n.specified ? n.value : e[t] === !0 ? t.toLowerCase() : null | |
411 } | |
412 | |
413 function ft(e, t) { | |
414 return e.getAttribute(t, "type" === t.toLowerCase() ? 1 : 2) | |
415 } | |
416 | |
417 function ht(e) { | |
418 return "input" === e.nodeName.toLowerCase() ? e.defaultValue : undefined | |
419 } | |
420 | |
421 function dt(e, t) { | |
422 var n = t && e, | |
423 r = n && 1 === e.nodeType && 1 === t.nodeType && (~t.sourceIndex || D) - (~e.sourceIndex || D); | |
424 if (r) return r; | |
425 if (n) | |
426 while (n = n.nextSibling) | |
427 if (n === t) return -1; | |
428 return e ? 1 : -1 | |
429 } | |
430 | |
431 function gt(e) { | |
432 return function (t) { | |
433 var n = t.nodeName.toLowerCase(); | |
434 return "input" === n && t.type === e | |
435 } | |
436 } | |
437 | |
438 function mt(e) { | |
439 return function (t) { | |
440 var n = t.nodeName.toLowerCase(); | |
441 return ("input" === n || "button" === n) && t.type === e | |
442 } | |
443 } | |
444 | |
445 function yt(e) { | |
446 return ut(function (t) { | |
447 return t = +t, ut(function (n, r) { | |
448 var i, o = e([], n.length, t), | |
449 s = o.length; | |
450 while (s--) n[i = o[s]] && (n[i] = !(r[i] = n[i])) | |
451 }) | |
452 }) | |
453 } | |
454 s = ot.isXML = function (e) { | |
455 var t = e && (e.ownerDocument || e).documentElement; | |
456 return t ? "HTML" !== t.nodeName : !1 | |
457 }, n = ot.support = {}, c = ot.setDocument = function (e) { | |
458 var t = e ? e.ownerDocument || e : b, | |
459 r = t.parentWindow; | |
460 return t !== p && 9 === t.nodeType && t.documentElement ? (p = t, f = t.documentElement, h = !s(t), r && r.frameElement && r.attachEvent("onbeforeunload", function () { | |
461 c() | |
462 }), n.attributes = lt(function (e) { | |
463 return e.innerHTML = "<a href='#'></a>", ct("type|href|height|width", ft, "#" === e.firstChild.getAttribute("href")), ct(R, pt, null == e.getAttribute("disabled")), e.className = "i", !e.getAttribute("className") | |
464 }), n.input = lt(function (e) { | |
465 return e.innerHTML = "<input>", e.firstChild.setAttribute("value", ""), "" === e.firstChild.getAttribute("value") | |
466 }), ct("value", ht, n.attributes && n.input), n.getElementsByTagName = lt(function (e) { | |
467 return e.appendChild(t.createComment("")), !e.getElementsByTagName("*").length | |
468 }), n.getElementsByClassName = lt(function (e) { | |
469 return e.innerHTML = "<div class='a'></div><div class='a i'></div>", e.firstChild.className = "i", 2 === e.getElementsByClassName("i").length | |
470 }), n.getById = lt(function (e) { | |
471 return f.appendChild(e).id = v, !t.getElementsByName || !t.getElementsByName(v).length | |
472 }), n.getById ? (i.find.ID = function (e, t) { | |
473 if (typeof t.getElementById !== j && h) { | |
474 var n = t.getElementById(e); | |
475 return n && n.parentNode ? [n] : [] | |
476 } | |
477 }, i.filter.ID = function (e) { | |
478 var t = e.replace(nt, rt); | |
479 return function (e) { | |
480 return e.getAttribute("id") === t | |
481 } | |
482 }) : (delete i.find.ID, i.filter.ID = function (e) { | |
483 var t = e.replace(nt, rt); | |
484 return function (e) { | |
485 var n = typeof e.getAttributeNode !== j && e.getAttributeNode("id"); | |
486 return n && n.value === t | |
487 } | |
488 }), i.find.TAG = n.getElementsByTagName ? function (e, t) { | |
489 return typeof t.getElementsByTagName !== j ? t.getElementsByTagName(e) : undefined | |
490 } : function (e, t) { | |
491 var n, r = [], | |
492 i = 0, | |
493 o = t.getElementsByTagName(e); | |
494 if ("*" === e) { | |
495 while (n = o[i++]) 1 === n.nodeType && r.push(n); | |
496 return r | |
497 } | |
498 return o | |
499 }, i.find.CLASS = n.getElementsByClassName && function (e, t) { | |
500 return typeof t.getElementsByClassName !== j && h ? t.getElementsByClassName(e) : undefined | |
501 }, g = [], d = [], (n.qsa = st(t.querySelectorAll)) && (lt(function (e) { | |
502 e.innerHTML = "<select><option selected=''></option></select>", e.querySelectorAll("[selected]").length || d.push("\\[" + M + "*(?:value|" + R + ")"), e.querySelectorAll(":checked").length || d.push(":checked") | |
503 }), lt(function (e) { | |
504 var n = t.createElement("input"); | |
505 n.setAttribute("type", "hidden"), e.appendChild(n).setAttribute("t", ""), e.querySelectorAll("[t^='']").length && d.push("[*^$]=" + M + "*(?:''|\"\")"), e.querySelectorAll(":enabled").length || d.push(":enabled", ":disabled"), e.querySelectorAll("*,:x"), d.push(",.*:") | |
506 })), (n.matchesSelector = st(m = f.webkitMatchesSelector || f.mozMatchesSelector || f.oMatchesSelector || f.msMatchesSelector)) && lt(function (e) { | |
507 n.disconnectedMatch = m.call(e, "div"), m.call(e, "[s!='']:x"), g.push("!=", I) | |
508 }), d = d.length && RegExp(d.join("|")), g = g.length && RegExp(g.join("|")), y = st(f.contains) || f.compareDocumentPosition ? function (e, t) { | |
509 var n = 9 === e.nodeType ? e.documentElement : e, | |
510 r = t && t.parentNode; | |
511 return e === r || !(!r || 1 !== r.nodeType || !(n.contains ? n.contains(r) : e.compareDocumentPosition && 16 & e.compareDocumentPosition(r))) | |
512 } : function (e, t) { | |
513 if (t) | |
514 while (t = t.parentNode) | |
515 if (t === e) return !0; | |
516 return !1 | |
517 }, n.sortDetached = lt(function (e) { | |
518 return 1 & e.compareDocumentPosition(t.createElement("div")) | |
519 }), S = f.compareDocumentPosition ? function (e, r) { | |
520 if (e === r) return E = !0, 0; | |
521 var i = r.compareDocumentPosition && e.compareDocumentPosition && e.compareDocumentPosition(r); | |
522 return i ? 1 & i || !n.sortDetached && r.compareDocumentPosition(e) === i ? e === t || y(b, e) ? -1 : r === t || y(b, r) ? 1 : l ? P.call(l, e) - P.call(l, r) : 0 : 4 & i ? -1 : 1 : e.compareDocumentPosition ? -1 : 1 | |
523 } : function (e, n) { | |
524 var r, i = 0, | |
525 o = e.parentNode, | |
526 s = n.parentNode, | |
527 a = [e], | |
528 u = [n]; | |
529 if (e === n) return E = !0, 0; | |
530 if (!o || !s) return e === t ? -1 : n === t ? 1 : o ? -1 : s ? 1 : l ? P.call(l, e) - P.call(l, n) : 0; | |
531 if (o === s) return dt(e, n); | |
532 r = e; | |
533 while (r = r.parentNode) a.unshift(r); | |
534 r = n; | |
535 while (r = r.parentNode) u.unshift(r); | |
536 while (a[i] === u[i]) i++; | |
537 return i ? dt(a[i], u[i]) : a[i] === b ? -1 : u[i] === b ? 1 : 0 | |
538 }, t) : p | |
539 }, ot.matches = function (e, t) { | |
540 return ot(e, null, null, t) | |
541 }, ot.matchesSelector = function (e, t) { | |
542 if ((e.ownerDocument || e) !== p && c(e), t = t.replace(Y, "='$1']"), !(!n.matchesSelector || !h || g && g.test(t) || d && d.test(t))) try { | |
543 var r = m.call(e, t); | |
544 if (r || n.disconnectedMatch || e.document && 11 !== e.document.nodeType) return r | |
545 } catch (i) {} | |
546 return ot(t, p, null, [e]).length > 0 | |
547 }, ot.contains = function (e, t) { | |
548 return (e.ownerDocument || e) !== p && c(e), y(e, t) | |
549 }, ot.attr = function (e, t) { | |
550 (e.ownerDocument || e) !== p && c(e); | |
551 var r = i.attrHandle[t.toLowerCase()], | |
552 o = r && A.call(i.attrHandle, t.toLowerCase()) ? r(e, t, !h) : undefined; | |
553 return o === undefined ? n.attributes || !h ? e.getAttribute(t) : (o = e.getAttributeNode(t)) && o.specified ? o.value : null : o | |
554 }, ot.error = function (e) { | |
555 throw Error("Syntax error, unrecognized expression: " + e) | |
556 }, ot.uniqueSort = function (e) { | |
557 var t, r = [], | |
558 i = 0, | |
559 o = 0; | |
560 if (E = !n.detectDuplicates, l = !n.sortStable && e.slice(0), e.sort(S), E) { | |
561 while (t = e[o++]) t === e[o] && (i = r.push(o)); | |
562 while (i--) e.splice(r[i], 1) | |
563 } | |
564 return e | |
565 }, o = ot.getText = function (e) { | |
566 var t, n = "", | |
567 r = 0, | |
568 i = e.nodeType; | |
569 if (i) { | |
570 if (1 === i || 9 === i || 11 === i) { | |
571 if ("string" == typeof e.textContent) return e.textContent; | |
572 for (e = e.firstChild; e; e = e.nextSibling) n += o(e) | |
573 } else if (3 === i || 4 === i) return e.nodeValue | |
574 } else | |
575 for (; t = e[r]; r++) n += o(t); | |
576 return n | |
577 }, i = ot.selectors = { | |
578 cacheLength: 50, | |
579 createPseudo: ut, | |
580 match: J, | |
581 attrHandle: {}, | |
582 find: {}, | |
583 relative: { | |
584 ">": { | |
585 dir: "parentNode", | |
586 first: !0 | |
587 }, | |
588 " ": { | |
589 dir: "parentNode" | |
590 }, | |
591 "+": { | |
592 dir: "previousSibling", | |
593 first: !0 | |
594 }, | |
595 "~": { | |
596 dir: "previousSibling" | |
597 } | |
598 }, | |
599 preFilter: { | |
600 ATTR: function (e) { | |
601 return e[1] = e[1].replace(nt, rt), e[3] = (e[4] || e[5] || "").replace(nt, rt), "~=" === e[2] && (e[3] = " " + e[3] + " "), e.slice(0, 4) | |
602 }, | |
603 CHILD: function (e) { | |
604 return e[1] = e[1].toLowerCase(), "nth" === e[1].slice(0, 3) ? (e[3] || ot.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] && ot.error(e[0]), e | |
605 }, | |
606 PSEUDO: function (e) { | |
607 var t, n = !e[5] && e[2]; | |
608 return J.CHILD.test(e[0]) ? null : (e[3] && e[4] !== undefined ? e[2] = e[4] : n && V.test(n) && (t = vt(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)) | |
609 } | |
610 }, | |
611 filter: { | |
612 TAG: function (e) { | |
613 var t = e.replace(nt, rt).toLowerCase(); | |
614 return "*" === e ? function () { | |
615 return !0 | |
616 } : function (e) { | |
617 return e.nodeName && e.nodeName.toLowerCase() === t | |
618 } | |
619 }, | |
620 CLASS: function (e) { | |
621 var t = C[e + " "]; | |
622 return t || (t = RegExp("(^|" + M + ")" + e + "(" + M + "|$)")) && C(e, function (e) { | |
623 return t.test("string" == typeof e.className && e.className || typeof e.getAttribute !== j && e.getAttribute("class") || "") | |
624 }) | |
625 }, | |
626 ATTR: function (e, t, n) { | |
627 return function (r) { | |
628 var i = ot.attr(r, e); | |
629 return null == i ? "!=" === t : t ? (i += "", "=" === t ? i === n : "!=" === t ? i !== n : "^=" === t ? n && 0 === i.indexOf(n) : "*=" === t ? n && i.indexOf(n) > -1 : "$=" === t ? n && i.slice(-n.length) === n : "~=" === t ? (" " + i + " ").indexOf(n) > -1 : "|=" === t ? i === n || i.slice(0, n.length + 1) === n + "-" : !1) : !0 | |
630 } | |
631 }, | |
632 CHILD: function (e, t, n, r, i) { | |
633 var o = "nth" !== e.slice(0, 3), | |
634 s = "last" !== e.slice(-4), | |
635 a = "of-type" === t; | |
636 return 1 === r && 0 === i ? function (e) { | |
637 return !!e.parentNode | |
638 } : function (t, n, u) { | |
639 var l, c, p, f, h, d, g = o !== s ? "nextSibling" : "previousSibling", | |
640 m = t.parentNode, | |
641 y = a && t.nodeName.toLowerCase(), | |
642 x = !u && !a; | |
643 if (m) { | |
644 if (o) { | |
645 while (g) { | |
646 p = t; | |
647 while (p = p[g]) | |
648 if (a ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) return !1; | |
649 d = g = "only" === e && !d && "nextSibling" | |
650 } | |
651 return !0 | |
652 } | |
653 if (d = [s ? m.firstChild : m.lastChild], s && x) { | |
654 c = m[v] || (m[v] = {}), l = c[e] || [], h = l[0] === w && l[1], f = l[0] === w && l[2], p = h && m.childNodes[h]; | |
655 while (p = ++h && p && p[g] || (f = h = 0) || d.pop()) | |
656 if (1 === p.nodeType && ++f && p === t) { | |
657 c[e] = [w, h, f]; | |
658 break | |
659 } | |
660 } else if (x && (l = (t[v] || (t[v] = {}))[e]) && l[0] === w) f = l[1]; | |
661 else | |
662 while (p = ++h && p && p[g] || (f = h = 0) || d.pop()) | |
663 if ((a ? p.nodeName.toLowerCase() === y : 1 === p.nodeType) && ++f && (x && ((p[v] || (p[v] = {}))[e] = [w, f]), p === t)) break; return f -= i, f === r || 0 === f % r && f / r >= 0 | |
664 } | |
665 } | |
666 }, | |
667 PSEUDO: function (e, t) { | |
668 var n, r = i.pseudos[e] || i.setFilters[e.toLowerCase()] || ot.error("unsupported pseudo: " + e); | |
669 return r[v] ? r(t) : r.length > 1 ? (n = [e, e, "", t], i.setFilters.hasOwnProperty(e.toLowerCase()) ? ut(function (e, n) { | |
670 var i, o = r(e, t), | |
671 s = o.length; | |
672 while (s--) i = P.call(e, o[s]), e[i] = !(n[i] = o[s]) | |
673 }) : function (e) { | |
674 return r(e, 0, n) | |
675 }) : r | |
676 } | |
677 }, | |
678 pseudos: { | |
679 not: ut(function (e) { | |
680 var t = [], | |
681 n = [], | |
682 r = a(e.replace(z, "$1")); | |
683 return r[v] ? ut(function (e, t, n, i) { | |
684 var o, s = r(e, null, i, []), | |
685 a = e.length; | |
686 while (a--)(o = s[a]) && (e[a] = !(t[a] = o)) | |
687 }) : function (e, i, o) { | |
688 return t[0] = e, r(t, null, o, n), !n.pop() | |
689 } | |
690 }), | |
691 has: ut(function (e) { | |
692 return function (t) { | |
693 return ot(e, t).length > 0 | |
694 } | |
695 }), | |
696 contains: ut(function (e) { | |
697 return function (t) { | |
698 return (t.textContent || t.innerText || o(t)).indexOf(e) > -1 | |
699 } | |
700 }), | |
701 lang: ut(function (e) { | |
702 return G.test(e || "") || ot.error("unsupported lang: " + e), e = e.replace(nt, rt).toLowerCase(), | |
703 function (t) { | |
704 var n; | |
705 do | |
706 if (n = h ? 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); | |
707 return !1 | |
708 } | |
709 }), | |
710 target: function (t) { | |
711 var n = e.location && e.location.hash; | |
712 return n && n.slice(1) === t.id | |
713 }, | |
714 root: function (e) { | |
715 return e === f | |
716 }, | |
717 focus: function (e) { | |
718 return e === p.activeElement && (!p.hasFocus || p.hasFocus()) && !! (e.type || e.href || ~e.tabIndex) | |
719 }, | |
720 enabled: function (e) { | |
721 return e.disabled === !1 | |
722 }, | |
723 disabled: function (e) { | |
724 return e.disabled === !0 | |
725 }, | |
726 checked: function (e) { | |
727 var t = e.nodeName.toLowerCase(); | |
728 return "input" === t && !! e.checked || "option" === t && !! e.selected | |
729 }, | |
730 selected: function (e) { | |
731 return e.parentNode && e.parentNode.selectedIndex, e.selected === !0 | |
732 }, | |
733 empty: function (e) { | |
734 for (e = e.firstChild; e; e = e.nextSibling) | |
735 if (e.nodeName > "@" || 3 === e.nodeType || 4 === e.nodeType) return !1; | |
736 return !0 | |
737 }, | |
738 parent: function (e) { | |
739 return !i.pseudos.empty(e) | |
740 }, | |
741 header: function (e) { | |
742 return et.test(e.nodeName) | |
743 }, | |
744 input: function (e) { | |
745 return Z.test(e.nodeName) | |
746 }, | |
747 button: function (e) { | |
748 var t = e.nodeName.toLowerCase(); | |
749 return "input" === t && "button" === e.type || "button" === t | |
750 }, | |
751 text: function (e) { | |
752 var t; | |
753 return "input" === e.nodeName.toLowerCase() && "text" === e.type && (null == (t = e.getAttribute("type")) || t.toLowerCase() === e.type) | |
754 }, | |
755 first: yt(function () { | |
756 return [0] | |
757 }), | |
758 last: yt(function (e, t) { | |
759 return [t - 1] | |
760 }), | |
761 eq: yt(function (e, t, n) { | |
762 return [0 > n ? n + t : n] | |
763 }), | |
764 even: yt(function (e, t) { | |
765 var n = 0; | |
766 for (; t > n; n += 2) e.push(n); | |
767 return e | |
768 }), | |
769 odd: yt(function (e, t) { | |
770 var n = 1; | |
771 for (; t > n; n += 2) e.push(n); | |
772 return e | |
773 }), | |
774 lt: yt(function (e, t, n) { | |
775 var r = 0 > n ? n + t : n; | |
776 for (; --r >= 0;) e.push(r); | |
777 return e | |
778 }), | |
779 gt: yt(function (e, t, n) { | |
780 var r = 0 > n ? n + t : n; | |
781 for (; t > ++r;) e.push(r); | |
782 return e | |
783 }) | |
784 } | |
785 }; | |
786 for (t in { | |
787 radio: !0, | |
788 checkbox: !0, | |
789 file: !0, | |
790 password: !0, | |
791 image: !0 | |
792 }) i.pseudos[t] = gt(t); | |
793 for (t in { | |
794 submit: !0, | |
795 reset: !0 | |
796 }) i.pseudos[t] = mt(t); | |
797 | |
798 function vt(e, t) { | |
799 var n, r, o, s, a, u, l, c = k[e + " "]; | |
800 if (c) return t ? 0 : c.slice(0); | |
801 a = e, u = [], l = i.preFilter; | |
802 while (a) { | |
803 (!n || (r = _.exec(a))) && (r && (a = a.slice(r[0].length) || a), u.push(o = [])), n = !1, (r = X.exec(a)) && (n = r.shift(), o.push({ | |
804 value: n, | |
805 type: r[0].replace(z, " ") | |
806 }), a = a.slice(n.length)); | |
807 for (s in i.filter)!(r = J[s].exec(a)) || l[s] && !(r = l[s](r)) || (n = r.shift(), o.push({ | |
808 value: n, | |
809 type: s, | |
810 matches: r | |
811 }), a = a.slice(n.length)); | |
812 if (!n) break | |
813 } | |
814 return t ? a.length : a ? ot.error(e) : k(e, u).slice(0) | |
815 } | |
816 | |
817 function xt(e) { | |
818 var t = 0, | |
819 n = e.length, | |
820 r = ""; | |
821 for (; n > t; t++) r += e[t].value; | |
822 return r | |
823 } | |
824 | |
825 function bt(e, t, n) { | |
826 var i = t.dir, | |
827 o = n && "parentNode" === i, | |
828 s = T++; | |
829 return t.first ? function (t, n, r) { | |
830 while (t = t[i]) | |
831 if (1 === t.nodeType || o) return e(t, n, r) | |
832 } : function (t, n, a) { | |
833 var u, l, c, p = w + " " + s; | |
834 if (a) { | |
835 while (t = t[i]) | |
836 if ((1 === t.nodeType || o) && e(t, n, a)) return !0 | |
837 } else | |
838 while (t = t[i]) | |
839 if (1 === t.nodeType || o) | |
840 if (c = t[v] || (t[v] = {}), (l = c[i]) && l[0] === p) { | |
841 if ((u = l[1]) === !0 || u === r) return u === !0 | |
842 } else if (l = c[i] = [p], l[1] = e(t, n, a) || r, l[1] === !0) return !0 | |
843 } | |
844 } | |
845 | |
846 function wt(e) { | |
847 return e.length > 1 ? function (t, n, r) { | |
848 var i = e.length; | |
849 while (i--) | |
850 if (!e[i](t, n, r)) return !1; | |
851 return !0 | |
852 } : e[0] | |
853 } | |
854 | |
855 function Tt(e, t, n, r, i) { | |
856 var o, s = [], | |
857 a = 0, | |
858 u = e.length, | |
859 l = null != t; | |
860 for (; u > a; a++)(o = e[a]) && (!n || n(o, r, i)) && (s.push(o), l && t.push(a)); | |
861 return s | |
862 } | |
863 | |
864 function Ct(e, t, n, r, i, o) { | |
865 return r && !r[v] && (r = Ct(r)), i && !i[v] && (i = Ct(i, o)), ut(function (o, s, a, u) { | |
866 var l, c, p, f = [], | |
867 h = [], | |
868 d = s.length, | |
869 g = o || Et(t || "*", a.nodeType ? [a] : a, []), | |
870 m = !e || !o && t ? g : Tt(g, f, e, a, u), | |
871 y = n ? i || (o ? e : d || r) ? [] : s : m; | |
872 if (n && n(m, y, a, u), r) { | |
873 l = Tt(y, h), r(l, [], a, u), c = l.length; | |
874 while (c--)(p = l[c]) && (y[h[c]] = !(m[h[c]] = p)) | |
875 } | |
876 if (o) { | |
877 if (i || e) { | |
878 if (i) { | |
879 l = [], c = y.length; | |
880 while (c--)(p = y[c]) && l.push(m[c] = p); | |
881 i(null, y = [], l, u) | |
882 } | |
883 c = y.length; | |
884 while (c--)(p = y[c]) && (l = i ? P.call(o, p) : f[c]) > -1 && (o[l] = !(s[l] = p)) | |
885 } | |
886 } else y = Tt(y === s ? y.splice(d, y.length) : y), i ? i(null, s, y, u) : O.apply(s, y) | |
887 }) | |
888 } | |
889 | |
890 function kt(e) { | |
891 var t, n, r, o = e.length, | |
892 s = i.relative[e[0].type], | |
893 a = s || i.relative[" "], | |
894 l = s ? 1 : 0, | |
895 c = bt(function (e) { | |
896 return e === t | |
897 }, a, !0), | |
898 p = bt(function (e) { | |
899 return P.call(t, e) > -1 | |
900 }, a, !0), | |
901 f = [ | |
902 function (e, n, r) { | |
903 return !s && (r || n !== u) || ((t = n).nodeType ? c(e, n, r) : p(e, n, r)) | |
904 } | |
905 ]; | |
906 for (; o > l; l++) | |
907 if (n = i.relative[e[l].type]) f = [bt(wt(f), n)]; | |
908 else { | |
909 if (n = i.filter[e[l].type].apply(null, e[l].matches), n[v]) { | |
910 for (r = ++l; o > r; r++) | |
911 if (i.relative[e[r].type]) break; | |
912 return Ct(l > 1 && wt(f), l > 1 && xt(e.slice(0, l - 1).concat({ | |
913 value: " " === e[l - 2].type ? "*" : "" | |
914 })).replace(z, "$1"), n, r > l && kt(e.slice(l, r)), o > r && kt(e = e.slice(r)), o > r && xt(e)) | |
915 } | |
916 f.push(n) | |
917 } | |
918 return wt(f) | |
919 } | |
920 | |
921 function Nt(e, t) { | |
922 var n = 0, | |
923 o = t.length > 0, | |
924 s = e.length > 0, | |
925 a = function (a, l, c, f, h) { | |
926 var d, g, m, y = [], | |
927 v = 0, | |
928 x = "0", | |
929 b = a && [], | |
930 T = null != h, | |
931 C = u, | |
932 k = a || s && i.find.TAG("*", h && l.parentNode || l), | |
933 N = w += null == C ? 1 : Math.random() || .1; | |
934 for (T && (u = l !== p && l, r = n); null != (d = k[x]); x++) { | |
935 if (s && d) { | |
936 g = 0; | |
937 while (m = e[g++]) | |
938 if (m(d, l, c)) { | |
939 f.push(d); | |
940 break | |
941 } | |
942 T && (w = N, r = ++n) | |
943 } | |
944 o && ((d = !m && d) && v--, a && b.push(d)) | |
945 } | |
946 if (v += x, o && x !== v) { | |
947 g = 0; | |
948 while (m = t[g++]) m(b, y, l, c); | |
949 if (a) { | |
950 if (v > 0) | |
951 while (x--) b[x] || y[x] || (y[x] = H.call(f)); | |
952 y = Tt(y) | |
953 } | |
954 O.apply(f, y), T && !a && y.length > 0 && v + t.length > 1 && ot.uniqueSort(f) | |
955 } | |
956 return T && (w = N, u = C), b | |
957 }; | |
958 return o ? ut(a) : a | |
959 } | |
960 a = ot.compile = function (e, t) { | |
961 var n, r = [], | |
962 i = [], | |
963 o = N[e + " "]; | |
964 if (!o) { | |
965 t || (t = vt(e)), n = t.length; | |
966 while (n--) o = kt(t[n]), o[v] ? r.push(o) : i.push(o); | |
967 o = N(e, Nt(i, r)) | |
968 } | |
969 return o | |
970 }; | |
971 | |
972 function Et(e, t, n) { | |
973 var r = 0, | |
974 i = t.length; | |
975 for (; i > r; r++) ot(e, t[r], n); | |
976 return n | |
977 } | |
978 | |
979 function St(e, t, r, o) { | |
980 var s, u, l, c, p, f = vt(e); | |
981 if (!o && 1 === f.length) { | |
982 if (u = f[0] = f[0].slice(0), u.length > 2 && "ID" === (l = u[0]).type && n.getById && 9 === t.nodeType && h && i.relative[u[1].type]) { | |
983 if (t = (i.find.ID(l.matches[0].replace(nt, rt), t) || [])[0], !t) return r; | |
984 e = e.slice(u.shift().value.length) | |
985 } | |
986 s = J.needsContext.test(e) ? 0 : u.length; | |
987 while (s--) { | |
988 if (l = u[s], i.relative[c = l.type]) break; | |
989 if ((p = i.find[c]) && (o = p(l.matches[0].replace(nt, rt), U.test(u[0].type) && t.parentNode || t))) { | |
990 if (u.splice(s, 1), e = o.length && xt(u), !e) return O.apply(r, o), r; | |
991 break | |
992 } | |
993 } | |
994 } | |
995 return a(e, f)(o, t, !h, r, U.test(e)), r | |
996 } | |
997 i.pseudos.nth = i.pseudos.eq; | |
998 | |
999 function jt() {} | |
1000 jt.prototype = i.filters = i.pseudos, i.setFilters = new jt, n.sortStable = v.split("").sort(S).join("") === v, c(), [0, 0].sort(S), n.detectDuplicates = E, x.find = ot, x.expr = ot.selectors, x.expr[":"] = x.expr.pseudos, x.unique = ot.uniqueSort, x.text = ot.getText, x.isXMLDoc = ot.isXML, x.contains = ot.contains | |
1001 }(e); | |
1002 var D = {}; | |
1003 | |
1004 function A(e) { | |
1005 var t = D[e] = {}; | |
1006 return x.each(e.match(w) || [], function (e, n) { | |
1007 t[n] = !0 | |
1008 }), t | |
1009 } | |
1010 x.Callbacks = function (e) { | |
1011 e = "string" == typeof e ? D[e] || A(e) : x.extend({}, e); | |
1012 var t, n, r, i, o, s, a = [], | |
1013 u = !e.once && [], | |
1014 l = function (p) { | |
1015 for (t = e.memory && p, n = !0, s = i || 0, i = 0, o = a.length, r = !0; a && o > s; s++) | |
1016 if (a[s].apply(p[0], p[1]) === !1 && e.stopOnFalse) { | |
1017 t = !1; | |
1018 break | |
1019 } | |
1020 r = !1, a && (u ? u.length && l(u.shift()) : t ? a = [] : c.disable()) | |
1021 }, c = { | |
1022 add: function () { | |
1023 if (a) { | |
1024 var n = a.length; | |
1025 (function s(t) { | |
1026 x.each(t, function (t, n) { | |
1027 var r = x.type(n); | |
1028 "function" === r ? e.unique && c.has(n) || a.push(n) : n && n.length && "string" !== r && s(n) | |
1029 }) | |
1030 })(arguments), r ? o = a.length : t && (i = n, l(t)) | |
1031 } | |
1032 return this | |
1033 }, | |
1034 remove: function () { | |
1035 return a && x.each(arguments, function (e, t) { | |
1036 var n; | |
1037 while ((n = x.inArray(t, a, n)) > -1) a.splice(n, 1), r && (o >= n && o--, s >= n && s--) | |
1038 }), this | |
1039 }, | |
1040 has: function (e) { | |
1041 return e ? x.inArray(e, a) > -1 : !(!a || !a.length) | |
1042 }, | |
1043 empty: function () { | |
1044 return a = [], o = 0, this | |
1045 }, | |
1046 disable: function () { | |
1047 return a = u = t = undefined, this | |
1048 }, | |
1049 disabled: function () { | |
1050 return !a | |
1051 }, | |
1052 lock: function () { | |
1053 return u = undefined, t || c.disable(), this | |
1054 }, | |
1055 locked: function () { | |
1056 return !u | |
1057 }, | |
1058 fireWith: function (e, t) { | |
1059 return t = t || [], t = [e, t.slice ? t.slice() : t], !a || n && !u || (r ? u.push(t) : l(t)), this | |
1060 }, | |
1061 fire: function () { | |
1062 return c.fireWith(this, arguments), this | |
1063 }, | |
1064 fired: function () { | |
1065 return !!n | |
1066 } | |
1067 }; | |
1068 return c | |
1069 }, x.extend({ | |
1070 Deferred: function (e) { | |
1071 var t = [ | |
1072 ["resolve", "done", x.Callbacks("once memory"), "resolved"], | |
1073 ["reject", "fail", x.Callbacks("once memory"), "rejected"], | |
1074 ["notify", "progress", x.Callbacks("memory")] | |
1075 ], | |
1076 n = "pending", | |
1077 r = { | |
1078 state: function () { | |
1079 return n | |
1080 }, | |
1081 always: function () { | |
1082 return i.done(arguments).fail(arguments), this | |
1083 }, | |
1084 then: function () { | |
1085 var e = arguments; | |
1086 return x.Deferred(function (n) { | |
1087 x.each(t, function (t, o) { | |
1088 var s = o[0], | |
1089 a = x.isFunction(e[t]) && e[t]; | |
1090 i[o[1]](function () { | |
1091 var e = a && a.apply(this, arguments); | |
1092 e && x.isFunction(e.promise) ? e.promise().done(n.resolve).fail(n.reject).progress(n.notify) : n[s + "With"](this === r ? n.promise() : this, a ? [e] : arguments) | |
1093 }) | |
1094 }), e = null | |
1095 }).promise() | |
1096 }, | |
1097 promise: function (e) { | |
1098 return null != e ? x.extend(e, r) : r | |
1099 } | |
1100 }, i = {}; | |
1101 return r.pipe = r.then, x.each(t, function (e, o) { | |
1102 var s = o[2], | |
1103 a = o[3]; | |
1104 r[o[1]] = s.add, a && s.add(function () { | |
1105 n = a | |
1106 }, t[1 ^ e][2].disable, t[2][2].lock), i[o[0]] = function () { | |
1107 return i[o[0] + "With"](this === i ? r : this, arguments), this | |
1108 }, i[o[0] + "With"] = s.fireWith | |
1109 }), r.promise(i), e && e.call(i, i), i | |
1110 }, | |
1111 when: function (e) { | |
1112 var t = 0, | |
1113 n = d.call(arguments), | |
1114 r = n.length, | |
1115 i = 1 !== r || e && x.isFunction(e.promise) ? r : 0, | |
1116 o = 1 === i ? e : x.Deferred(), | |
1117 s = function (e, t, n) { | |
1118 return function (r) { | |
1119 t[e] = this, n[e] = arguments.length > 1 ? d.call(arguments) : r, n === a ? o.notifyWith(t, n) : --i || o.resolveWith(t, n) | |
1120 } | |
1121 }, a, u, l; | |
1122 if (r > 1) | |
1123 for (a = Array(r), u = Array(r), l = Array(r); r > t; t++) n[t] && x.isFunction(n[t].promise) ? n[t].promise().done(s(t, l, n)).fail(o.reject).progress(s(t, u, a)) : --i; | |
1124 return i || o.resolveWith(l, n), o.promise() | |
1125 } | |
1126 }), x.support = function (t) { | |
1127 var n = o.createElement("input"), | |
1128 r = o.createDocumentFragment(), | |
1129 i = o.createElement("div"), | |
1130 s = o.createElement("select"), | |
1131 a = s.appendChild(o.createElement("option")); | |
1132 return n.type ? (n.type = "checkbox", t.checkOn = "" !== n.value, t.optSelected = a.selected, t.reliableMarginRight = !0, t.boxSizingReliable = !0, t.pixelPosition = !1, n.checked = !0, t.noCloneChecked = n.cloneNode(!0).checked, s.disabled = !0, t.optDisabled = !a.disabled, n = o.createElement("input"), n.value = "t", n.type = "radio", t.radioValue = "t" === n.value, n.setAttribute("checked", "t"), n.setAttribute("name", "t"), r.appendChild(n), t.checkClone = r.cloneNode(!0).cloneNode(!0).lastChild.checked, t.focusinBubbles = "onfocusin" in e, i.style.backgroundClip = "content-box", i.cloneNode(!0).style.backgroundClip = "", t.clearCloneStyle = "content-box" === i.style.backgroundClip, x(function () { | |
1133 var n, r, s = "padding:0;margin:0;border:0;display:block;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box", | |
1134 a = o.getElementsByTagName("body")[0]; | |
1135 a && (n = o.createElement("div"), n.style.cssText = "border:0;width:0;height:0;position:absolute;top:0;left:-9999px;margin-top:1px", a.appendChild(n).appendChild(i), i.innerHTML = "", i.style.cssText = "-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%", x.swap(a, null != a.style.zoom ? { | |
1136 zoom: 1 | |
1137 } : {}, function () { | |
1138 t.boxSizing = 4 === i.offsetWidth | |
1139 }), e.getComputedStyle && (t.pixelPosition = "1%" !== (e.getComputedStyle(i, null) || {}).top, t.boxSizingReliable = "4px" === (e.getComputedStyle(i, null) || { | |
1140 width: "4px" | |
1141 }).width, r = i.appendChild(o.createElement("div")), r.style.cssText = i.style.cssText = s, r.style.marginRight = r.style.width = "0", i.style.width = "1px", t.reliableMarginRight = !parseFloat((e.getComputedStyle(r, null) || {}).marginRight)), a.removeChild(n)) | |
1142 }), t) : t | |
1143 }({}); | |
1144 var L, H, q = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/, | |
1145 O = /([A-Z])/g; | |
1146 | |
1147 function F() { | |
1148 Object.defineProperty(this.cache = {}, 0, { | |
1149 get: function () { | |
1150 return {} | |
1151 } | |
1152 }), this.expando = x.expando + Math.random() | |
1153 } | |
1154 F.uid = 1, F.accepts = function (e) { | |
1155 return e.nodeType ? 1 === e.nodeType || 9 === e.nodeType : !0 | |
1156 }, F.prototype = { | |
1157 key: function (e) { | |
1158 if (!F.accepts(e)) return 0; | |
1159 var t = {}, n = e[this.expando]; | |
1160 if (!n) { | |
1161 n = F.uid++; | |
1162 try { | |
1163 t[this.expando] = { | |
1164 value: n | |
1165 }, Object.defineProperties(e, t) | |
1166 } catch (r) { | |
1167 t[this.expando] = n, x.extend(e, t) | |
1168 } | |
1169 } | |
1170 return this.cache[n] || (this.cache[n] = {}), n | |
1171 }, | |
1172 set: function (e, t, n) { | |
1173 var r, i = this.key(e), | |
1174 o = this.cache[i]; | |
1175 if ("string" == typeof t) o[t] = n; | |
1176 else if (x.isEmptyObject(o)) x.extend(this.cache[i], t); | |
1177 else | |
1178 for (r in t) o[r] = t[r]; | |
1179 return o | |
1180 }, | |
1181 get: function (e, t) { | |
1182 var n = this.cache[this.key(e)]; | |
1183 return t === undefined ? n : n[t] | |
1184 }, | |
1185 access: function (e, t, n) { | |
1186 return t === undefined || t && "string" == typeof t && n === undefined ? this.get(e, t) : (this.set(e, t, n), n !== undefined ? n : t) | |
1187 }, | |
1188 remove: function (e, t) { | |
1189 var n, r, i, o = this.key(e), | |
1190 s = this.cache[o]; | |
1191 if (t === undefined) this.cache[o] = {}; | |
1192 else { | |
1193 x.isArray(t) ? r = t.concat(t.map(x.camelCase)) : (i = x.camelCase(t), t in s ? r = [t, i] : (r = i, r = r in s ? [r] : r.match(w) || [])), n = r.length; | |
1194 while (n--) delete s[r[n]] | |
1195 } | |
1196 }, | |
1197 hasData: function (e) { | |
1198 return !x.isEmptyObject(this.cache[e[this.expando]] || {}) | |
1199 }, | |
1200 discard: function (e) { | |
1201 e[this.expando] && delete this.cache[e[this.expando]] | |
1202 } | |
1203 }, L = new F, H = new F, x.extend({ | |
1204 acceptData: F.accepts, | |
1205 hasData: function (e) { | |
1206 return L.hasData(e) || H.hasData(e) | |
1207 }, | |
1208 data: function (e, t, n) { | |
1209 return L.access(e, t, n) | |
1210 }, | |
1211 removeData: function (e, t) { | |
1212 L.remove(e, t) | |
1213 }, | |
1214 _data: function (e, t, n) { | |
1215 return H.access(e, t, n) | |
1216 }, | |
1217 _removeData: function (e, t) { | |
1218 H.remove(e, t) | |
1219 } | |
1220 }), x.fn.extend({ | |
1221 data: function (e, t) { | |
1222 var n, r, i = this[0], | |
1223 o = 0, | |
1224 s = null; | |
1225 if (e === undefined) { | |
1226 if (this.length && (s = L.get(i), 1 === i.nodeType && !H.get(i, "hasDataAttrs"))) { | |
1227 for (n = i.attributes; n.length > o; o++) r = n[o].name, 0 === r.indexOf("data-") && (r = x.camelCase(r.slice(5)), P(i, r, s[r])); | |
1228 H.set(i, "hasDataAttrs", !0) | |
1229 } | |
1230 return s | |
1231 } | |
1232 return "object" == typeof e ? this.each(function () { | |
1233 L.set(this, e) | |
1234 }) : x.access(this, function (t) { | |
1235 var n, r = x.camelCase(e); | |
1236 if (i && t === undefined) { | |
1237 if (n = L.get(i, e), n !== undefined) return n; | |
1238 if (n = L.get(i, r), n !== undefined) return n; | |
1239 if (n = P(i, r, undefined), n !== undefined) return n | |
1240 } else this.each(function () { | |
1241 var n = L.get(this, r); | |
1242 L.set(this, r, t), -1 !== e.indexOf("-") && n !== undefined && L.set(this, e, t) | |
1243 }) | |
1244 }, null, t, arguments.length > 1, null, !0) | |
1245 }, | |
1246 removeData: function (e) { | |
1247 return this.each(function () { | |
1248 L.remove(this, e) | |
1249 }) | |
1250 } | |
1251 }); | |
1252 | |
1253 function P(e, t, n) { | |
1254 var r; | |
1255 if (n === undefined && 1 === e.nodeType) | |
1256 if (r = "data-" + t.replace(O, "-$1").toLowerCase(), n = e.getAttribute(r), "string" == typeof n) { | |
1257 try { | |
1258 n = "true" === n ? !0 : "false" === n ? !1 : "null" === n ? null : +n + "" === n ? +n : q.test(n) ? JSON.parse(n) : n | |
1259 } catch (i) {} | |
1260 L.set(e, t, n) | |
1261 } else n = undefined; | |
1262 return n | |
1263 } | |
1264 x.extend({ | |
1265 queue: function (e, t, n) { | |
1266 var r; | |
1267 return e ? (t = (t || "fx") + "queue", r = H.get(e, t), n && (!r || x.isArray(n) ? r = H.access(e, t, x.makeArray(n)) : r.push(n)), r || []) : undefined | |
1268 }, | |
1269 dequeue: function (e, t) { | |
1270 t = t || "fx"; | |
1271 var n = x.queue(e, t), | |
1272 r = n.length, | |
1273 i = n.shift(), | |
1274 o = x._queueHooks(e, t), | |
1275 s = function () { | |
1276 x.dequeue(e, t) | |
1277 }; | |
1278 "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() | |
1279 }, | |
1280 _queueHooks: function (e, t) { | |
1281 var n = t + "queueHooks"; | |
1282 return H.get(e, n) || H.access(e, n, { | |
1283 empty: x.Callbacks("once memory").add(function () { | |
1284 H.remove(e, [t + "queue", n]) | |
1285 }) | |
1286 }) | |
1287 } | |
1288 }), x.fn.extend({ | |
1289 queue: function (e, t) { | |
1290 var n = 2; | |
1291 return "string" != typeof e && (t = e, e = "fx", n--), n > arguments.length ? x.queue(this[0], e) : t === undefined ? this : this.each(function () { | |
1292 var n = x.queue(this, e, t); | |
1293 x._queueHooks(this, e), "fx" === e && "inprogress" !== n[0] && x.dequeue(this, e) | |
1294 }) | |
1295 }, | |
1296 dequeue: function (e) { | |
1297 return this.each(function () { | |
1298 x.dequeue(this, e) | |
1299 }) | |
1300 }, | |
1301 delay: function (e, t) { | |
1302 return e = x.fx ? x.fx.speeds[e] || e : e, t = t || "fx", this.queue(t, function (t, n) { | |
1303 var r = setTimeout(t, e); | |
1304 n.stop = function () { | |
1305 clearTimeout(r) | |
1306 } | |
1307 }) | |
1308 }, | |
1309 clearQueue: function (e) { | |
1310 return this.queue(e || "fx", []) | |
1311 }, | |
1312 promise: function (e, t) { | |
1313 var n, r = 1, | |
1314 i = x.Deferred(), | |
1315 o = this, | |
1316 s = this.length, | |
1317 a = function () { | |
1318 --r || i.resolveWith(o, [o]) | |
1319 }; | |
1320 "string" != typeof e && (t = e, e = undefined), e = e || "fx"; | |
1321 while (s--) n = H.get(o[s], e + "queueHooks"), n && n.empty && (r++, n.empty.add(a)); | |
1322 return a(), i.promise(t) | |
1323 } | |
1324 }); | |
1325 var R, M, W = /[\t\r\n\f]/g, | |
1326 $ = /\r/g, | |
1327 B = /^(?:input|select|textarea|button)$/i; | |
1328 x.fn.extend({ | |
1329 attr: function (e, t) { | |
1330 return x.access(this, x.attr, e, t, arguments.length > 1) | |
1331 }, | |
1332 removeAttr: function (e) { | |
1333 return this.each(function () { | |
1334 x.removeAttr(this, e) | |
1335 }) | |
1336 }, | |
1337 prop: function (e, t) { | |
1338 return x.access(this, x.prop, e, t, arguments.length > 1) | |
1339 }, | |
1340 removeProp: function (e) { | |
1341 return this.each(function () { | |
1342 delete this[x.propFix[e] || e] | |
1343 }) | |
1344 }, | |
1345 addClass: function (e) { | |
1346 var t, n, r, i, o, s = 0, | |
1347 a = this.length, | |
1348 u = "string" == typeof e && e; | |
1349 if (x.isFunction(e)) return this.each(function (t) { | |
1350 x(this).addClass(e.call(this, t, this.className)) | |
1351 }); | |
1352 if (u) | |
1353 for (t = (e || "").match(w) || []; a > s; s++) | |
1354 if (n = this[s], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(W, " ") : " ")) { | |
1355 o = 0; | |
1356 while (i = t[o++]) 0 > r.indexOf(" " + i + " ") && (r += i + " "); | |
1357 n.className = x.trim(r) | |
1358 } | |
1359 return this | |
1360 }, | |
1361 removeClass: function (e) { | |
1362 var t, n, r, i, o, s = 0, | |
1363 a = this.length, | |
1364 u = 0 === arguments.length || "string" == typeof e && e; | |
1365 if (x.isFunction(e)) return this.each(function (t) { | |
1366 x(this).removeClass(e.call(this, t, this.className)) | |
1367 }); | |
1368 if (u) | |
1369 for (t = (e || "").match(w) || []; a > s; s++) | |
1370 if (n = this[s], r = 1 === n.nodeType && (n.className ? (" " + n.className + " ").replace(W, " ") : "")) { | |
1371 o = 0; | |
1372 while (i = t[o++]) | |
1373 while (r.indexOf(" " + i + " ") >= 0) r = r.replace(" " + i + " ", " "); | |
1374 n.className = e ? x.trim(r) : "" | |
1375 } | |
1376 return this | |
1377 }, | |
1378 toggleClass: function (e, t) { | |
1379 var n = typeof e, | |
1380 i = "boolean" == typeof t; | |
1381 return x.isFunction(e) ? this.each(function (n) { | |
1382 x(this).toggleClass(e.call(this, n, this.className, t), t) | |
1383 }) : this.each(function () { | |
1384 if ("string" === n) { | |
1385 var o, s = 0, | |
1386 a = x(this), | |
1387 u = t, | |
1388 l = e.match(w) || []; | |
1389 while (o = l[s++]) u = i ? u : !a.hasClass(o), a[u ? "addClass" : "removeClass"](o) | |
1390 } else(n === r || "boolean" === n) && (this.className && H.set(this, "__className__", this.className), this.className = this.className || e === !1 ? "" : H.get(this, "__className__") || "") | |
1391 }) | |
1392 }, | |
1393 hasClass: function (e) { | |
1394 var t = " " + e + " ", | |
1395 n = 0, | |
1396 r = this.length; | |
1397 for (; r > n; n++) | |
1398 if (1 === this[n].nodeType && (" " + this[n].className + " ").replace(W, " ").indexOf(t) >= 0) return !0; | |
1399 return !1 | |
1400 }, | |
1401 val: function (e) { | |
1402 var t, n, r, i = this[0]; { | |
1403 if (arguments.length) return r = x.isFunction(e), this.each(function (n) { | |
1404 var i; | |
1405 1 === this.nodeType && (i = r ? e.call(this, n, x(this).val()) : e, null == i ? i = "" : "number" == typeof i ? i += "" : x.isArray(i) && (i = x.map(i, function (e) { | |
1406 return null == e ? "" : e + "" | |
1407 })), t = x.valHooks[this.type] || x.valHooks[this.nodeName.toLowerCase()], t && "set" in t && t.set(this, i, "value") !== undefined || (this.value = i)) | |
1408 }); | |
1409 if (i) return t = x.valHooks[i.type] || x.valHooks[i.nodeName.toLowerCase()], t && "get" in t && (n = t.get(i, "value")) !== undefined ? n : (n = i.value, "string" == typeof n ? n.replace($, "") : null == n ? "" : n) | |
1410 } | |
1411 } | |
1412 }), x.extend({ | |
1413 valHooks: { | |
1414 option: { | |
1415 get: function (e) { | |
1416 var t = e.attributes.value; | |
1417 return !t || t.specified ? e.value : e.text | |
1418 } | |
1419 }, | |
1420 select: { | |
1421 get: function (e) { | |
1422 var t, n, r = e.options, | |
1423 i = e.selectedIndex, | |
1424 o = "select-one" === e.type || 0 > i, | |
1425 s = o ? null : [], | |
1426 a = o ? i + 1 : r.length, | |
1427 u = 0 > i ? a : o ? i : 0; | |
1428 for (; a > u; u++) | |
1429 if (n = r[u], !(!n.selected && u !== i || (x.support.optDisabled ? n.disabled : null !== n.getAttribute("disabled")) || n.parentNode.disabled && x.nodeName(n.parentNode, "optgroup"))) { | |
1430 if (t = x(n).val(), o) return t; | |
1431 s.push(t) | |
1432 } | |
1433 return s | |
1434 }, | |
1435 set: function (e, t) { | |
1436 var n, r, i = e.options, | |
1437 o = x.makeArray(t), | |
1438 s = i.length; | |
1439 while (s--) r = i[s], (r.selected = x.inArray(x(r).val(), o) >= 0) && (n = !0); | |
1440 return n || (e.selectedIndex = -1), o | |
1441 } | |
1442 } | |
1443 }, | |
1444 attr: function (e, t, n) { | |
1445 var i, o, s = e.nodeType; | |
1446 if (e && 3 !== s && 8 !== s && 2 !== s) return typeof e.getAttribute === r ? x.prop(e, t, n) : (1 === s && x.isXMLDoc(e) || (t = t.toLowerCase(), i = x.attrHooks[t] || (x.expr.match.bool.test(t) ? M : R)), n === undefined ? i && "get" in i && null !== (o = i.get(e, t)) ? o : (o = x.find.attr(e, t), null == o ? undefined : o) : null !== n ? i && "set" in i && (o = i.set(e, n, t)) !== undefined ? o : (e.setAttribute(t, n + ""), n) : (x.removeAttr(e, t), undefined)) | |
1447 }, | |
1448 removeAttr: function (e, t) { | |
1449 var n, r, i = 0, | |
1450 o = t && t.match(w); | |
1451 if (o && 1 === e.nodeType) | |
1452 while (n = o[i++]) r = x.propFix[n] || n, x.expr.match.bool.test(n) && (e[r] = !1), e.removeAttribute(n) | |
1453 }, | |
1454 attrHooks: { | |
1455 type: { | |
1456 set: function (e, t) { | |
1457 if (!x.support.radioValue && "radio" === t && x.nodeName(e, "input")) { | |
1458 var n = e.value; | |
1459 return e.setAttribute("type", t), n && (e.value = n), t | |
1460 } | |
1461 } | |
1462 } | |
1463 }, | |
1464 propFix: { | |
1465 "for": "htmlFor", | |
1466 "class": "className" | |
1467 }, | |
1468 prop: function (e, t, n) { | |
1469 var r, i, o, s = e.nodeType; | |
1470 if (e && 3 !== s && 8 !== s && 2 !== s) return o = 1 !== s || !x.isXMLDoc(e), o && (t = x.propFix[t] || t, i = x.propHooks[t]), n !== undefined ? i && "set" in i && (r = i.set(e, n, t)) !== undefined ? r : e[t] = n : i && "get" in i && null !== (r = i.get(e, t)) ? r : e[t] | |
1471 }, | |
1472 propHooks: { | |
1473 tabIndex: { | |
1474 get: function (e) { | |
1475 return e.hasAttribute("tabindex") || B.test(e.nodeName) || e.href ? e.tabIndex : -1 | |
1476 } | |
1477 } | |
1478 } | |
1479 }), M = { | |
1480 set: function (e, t, n) { | |
1481 return t === !1 ? x.removeAttr(e, n) : e.setAttribute(n, n), n | |
1482 } | |
1483 }, x.each(x.expr.match.bool.source.match(/\w+/g), function (e, t) { | |
1484 var n = x.expr.attrHandle[t] || x.find.attr; | |
1485 x.expr.attrHandle[t] = function (e, t, r) { | |
1486 var i = x.expr.attrHandle[t], | |
1487 o = r ? undefined : (x.expr.attrHandle[t] = undefined) != n(e, t, r) ? t.toLowerCase() : null; | |
1488 return x.expr.attrHandle[t] = i, o | |
1489 } | |
1490 }), x.support.optSelected || (x.propHooks.selected = { | |
1491 get: function (e) { | |
1492 var t = e.parentNode; | |
1493 return t && t.parentNode && t.parentNode.selectedIndex, null | |
1494 } | |
1495 }), x.each(["tabIndex", "readOnly", "maxLength", "cellSpacing", "cellPadding", "rowSpan", "colSpan", "useMap", "frameBorder", "contentEditable"], function () { | |
1496 x.propFix[this.toLowerCase()] = this | |
1497 }), x.each(["radio", "checkbox"], function () { | |
1498 x.valHooks[this] = { | |
1499 set: function (e, t) { | |
1500 return x.isArray(t) ? e.checked = x.inArray(x(e).val(), t) >= 0 : undefined | |
1501 } | |
1502 }, x.support.checkOn || (x.valHooks[this].get = function (e) { | |
1503 return null === e.getAttribute("value") ? "on" : e.value | |
1504 }) | |
1505 }); | |
1506 var I = /^key/, | |
1507 z = /^(?:mouse|contextmenu)|click/, | |
1508 _ = /^(?:focusinfocus|focusoutblur)$/, | |
1509 X = /^([^.]*)(?:\.(.+)|)$/; | |
1510 | |
1511 function U() { | |
1512 return !0 | |
1513 } | |
1514 | |
1515 function Y() { | |
1516 return !1 | |
1517 } | |
1518 | |
1519 function V() { | |
1520 try { | |
1521 return o.activeElement | |
1522 } catch (e) {} | |
1523 } | |
1524 x.event = { | |
1525 global: {}, | |
1526 add: function (e, t, n, i, o) { | |
1527 var s, a, u, l, c, p, f, h, d, g, m, y = H.get(e); | |
1528 if (y) { | |
1529 n.handler && (s = n, n = s.handler, o = s.selector), n.guid || (n.guid = x.guid++), (l = y.events) || (l = y.events = {}), (a = y.handle) || (a = y.handle = function (e) { | |
1530 return typeof x === r || e && x.event.triggered === e.type ? undefined : x.event.dispatch.apply(a.elem, arguments) | |
1531 }, a.elem = e), t = (t || "").match(w) || [""], c = t.length; | |
1532 while (c--) u = X.exec(t[c]) || [], d = m = u[1], g = (u[2] || "").split(".").sort(), d && (f = x.event.special[d] || {}, d = (o ? f.delegateType : f.bindType) || d, f = x.event.special[d] || {}, p = x.extend({ | |
1533 type: d, | |
1534 origType: m, | |
1535 data: i, | |
1536 handler: n, | |
1537 guid: n.guid, | |
1538 selector: o, | |
1539 needsContext: o && x.expr.match.needsContext.test(o), | |
1540 namespace: g.join(".") | |
1541 }, s), (h = l[d]) || (h = l[d] = [], h.delegateCount = 0, f.setup && f.setup.call(e, i, g, a) !== !1 || e.addEventListener && e.addEventListener(d, a, !1)), f.add && (f.add.call(e, p), p.handler.guid || (p.handler.guid = n.guid)), o ? h.splice(h.delegateCount++, 0, p) : h.push(p), x.event.global[d] = !0); | |
1542 e = null | |
1543 } | |
1544 }, | |
1545 remove: function (e, t, n, r, i) { | |
1546 var o, s, a, u, l, c, p, f, h, d, g, m = H.hasData(e) && H.get(e); | |
1547 if (m && (u = m.events)) { | |
1548 t = (t || "").match(w) || [""], l = t.length; | |
1549 while (l--) | |
1550 if (a = X.exec(t[l]) || [], h = g = a[1], d = (a[2] || "").split(".").sort(), h) { | |
1551 p = x.event.special[h] || {}, h = (r ? p.delegateType : p.bindType) || h, f = u[h] || [], a = a[2] && RegExp("(^|\\.)" + d.join("\\.(?:.*\\.|)") + "(\\.|$)"), s = o = f.length; | |
1552 while (o--) c = f[o], !i && g !== c.origType || n && n.guid !== c.guid || a && !a.test(c.namespace) || r && r !== c.selector && ("**" !== r || !c.selector) || (f.splice(o, 1), c.selector && f.delegateCount--, p.remove && p.remove.call(e, c)); | |
1553 s && !f.length && (p.teardown && p.teardown.call(e, d, m.handle) !== !1 || x.removeEvent(e, h, m.handle), delete u[h]) | |
1554 } else | |
1555 for (h in u) x.event.remove(e, h + t[l], n, r, !0); | |
1556 x.isEmptyObject(u) && (delete m.handle, H.remove(e, "events")) | |
1557 } | |
1558 }, | |
1559 trigger: function (t, n, r, i) { | |
1560 var s, a, u, l, c, p, f, h = [r || o], | |
1561 d = y.call(t, "type") ? t.type : t, | |
1562 g = y.call(t, "namespace") ? t.namespace.split(".") : []; | |
1563 if (a = u = r = r || o, 3 !== r.nodeType && 8 !== r.nodeType && !_.test(d + x.event.triggered) && (d.indexOf(".") >= 0 && (g = d.split("."), d = g.shift(), g.sort()), c = 0 > d.indexOf(":") && "on" + d, t = t[x.expando] ? t : new x.Event(d, "object" == typeof t && t), t.isTrigger = i ? 2 : 3, t.namespace = g.join("."), t.namespace_re = t.namespace ? RegExp("(^|\\.)" + g.join("\\.(?:.*\\.|)") + "(\\.|$)") : null, t.result = undefined, t.target || (t.target = r), n = null == n ? [t] : x.makeArray(n, [t]), f = x.event.special[d] || {}, i || !f.trigger || f.trigger.apply(r, n) !== !1)) { | |
1564 if (!i && !f.noBubble && !x.isWindow(r)) { | |
1565 for (l = f.delegateType || d, _.test(l + d) || (a = a.parentNode); a; a = a.parentNode) h.push(a), u = a; | |
1566 u === (r.ownerDocument || o) && h.push(u.defaultView || u.parentWindow || e) | |
1567 } | |
1568 s = 0; | |
1569 while ((a = h[s++]) && !t.isPropagationStopped()) t.type = s > 1 ? l : f.bindType || d, p = (H.get(a, "events") || {})[t.type] && H.get(a, "handle"), p && p.apply(a, n), p = c && a[c], p && x.acceptData(a) && p.apply && p.apply(a, n) === !1 && t.preventDefault(); | |
1570 return t.type = d, i || t.isDefaultPrevented() || f._default && f._default.apply(h.pop(), n) !== !1 || !x.acceptData(r) || c && x.isFunction(r[d]) && !x.isWindow(r) && (u = r[c], u && (r[c] = null), x.event.triggered = d, r[d](), x.event.triggered = undefined, u && (r[c] = u)), t.result | |
1571 } | |
1572 }, | |
1573 dispatch: function (e) { | |
1574 e = x.event.fix(e); | |
1575 var t, n, r, i, o, s = [], | |
1576 a = d.call(arguments), | |
1577 u = (H.get(this, "events") || {})[e.type] || [], | |
1578 l = x.event.special[e.type] || {}; | |
1579 if (a[0] = e, e.delegateTarget = this, !l.preDispatch || l.preDispatch.call(this, e) !== !1) { | |
1580 s = x.event.handlers.call(this, e, u), t = 0; | |
1581 while ((i = s[t++]) && !e.isPropagationStopped()) { | |
1582 e.currentTarget = i.elem, n = 0; | |
1583 while ((o = i.handlers[n++]) && !e.isImmediatePropagationStopped())(!e.namespace_re || e.namespace_re.test(o.namespace)) && (e.handleObj = o, e.data = o.data, r = ((x.event.special[o.origType] || {}).handle || o.handler).apply(i.elem, a), r !== undefined && (e.result = r) === !1 && (e.preventDefault(), e.stopPropagation())) | |
1584 } | |
1585 return l.postDispatch && l.postDispatch.call(this, e), e.result | |
1586 } | |
1587 }, | |
1588 handlers: function (e, t) { | |
1589 var n, r, i, o, s = [], | |
1590 a = t.delegateCount, | |
1591 u = e.target; | |
1592 if (a && u.nodeType && (!e.button || "click" !== e.type)) | |
1593 for (; u !== this; u = u.parentNode || this) | |
1594 if (u.disabled !== !0 || "click" !== e.type) { | |
1595 for (r = [], n = 0; a > n; n++) o = t[n], i = o.selector + " ", r[i] === undefined && (r[i] = o.needsContext ? x(i, this).index(u) >= 0 : x.find(i, this, null, [u]).length), r[i] && r.push(o); | |
1596 r.length && s.push({ | |
1597 elem: u, | |
1598 handlers: r | |
1599 }) | |
1600 } | |
1601 return t.length > a && s.push({ | |
1602 elem: this, | |
1603 handlers: t.slice(a) | |
1604 }), s | |
1605 }, | |
1606 props: "altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "), | |
1607 fixHooks: {}, | |
1608 keyHooks: { | |
1609 props: "char charCode key keyCode".split(" "), | |
1610 filter: function (e, t) { | |
1611 return null == e.which && (e.which = null != t.charCode ? t.charCode : t.keyCode), e | |
1612 } | |
1613 }, | |
1614 mouseHooks: { | |
1615 props: "button buttons clientX clientY offsetX offsetY pageX pageY screenX screenY toElement".split(" "), | |
1616 filter: function (e, t) { | |
1617 var n, r, i, s = t.button; | |
1618 return null == e.pageX && null != t.clientX && (n = e.target.ownerDocument || o, 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 || s === undefined || (e.which = 1 & s ? 1 : 2 & s ? 3 : 4 & s ? 2 : 0), e | |
1619 } | |
1620 }, | |
1621 fix: function (e) { | |
1622 if (e[x.expando]) return e; | |
1623 var t, n, r, i = e.type, | |
1624 s = e, | |
1625 a = this.fixHooks[i]; | |
1626 a || (this.fixHooks[i] = a = z.test(i) ? this.mouseHooks : I.test(i) ? this.keyHooks : {}), r = a.props ? this.props.concat(a.props) : this.props, e = new x.Event(s), t = r.length; | |
1627 while (t--) n = r[t], e[n] = s[n]; | |
1628 return e.target || (e.target = o), 3 === e.target.nodeType && (e.target = e.target.parentNode), a.filter ? a.filter(e, s) : e | |
1629 }, | |
1630 special: { | |
1631 load: { | |
1632 noBubble: !0 | |
1633 }, | |
1634 focus: { | |
1635 trigger: function () { | |
1636 return this !== V() && this.focus ? (this.focus(), !1) : undefined | |
1637 }, | |
1638 delegateType: "focusin" | |
1639 }, | |
1640 blur: { | |
1641 trigger: function () { | |
1642 return this === V() && this.blur ? (this.blur(), !1) : undefined | |
1643 }, | |
1644 delegateType: "focusout" | |
1645 }, | |
1646 click: { | |
1647 trigger: function () { | |
1648 return "checkbox" === this.type && this.click && x.nodeName(this, "input") ? (this.click(), !1) : undefined | |
1649 }, | |
1650 _default: function (e) { | |
1651 return x.nodeName(e.target, "a") | |
1652 } | |
1653 }, | |
1654 beforeunload: { | |
1655 postDispatch: function (e) { | |
1656 e.result !== undefined && (e.originalEvent.returnValue = e.result) | |
1657 } | |
1658 } | |
1659 }, | |
1660 simulate: function (e, t, n, r) { | |
1661 var i = x.extend(new x.Event, n, { | |
1662 type: e, | |
1663 isSimulated: !0, | |
1664 originalEvent: {} | |
1665 }); | |
1666 r ? x.event.trigger(i, null, t) : x.event.dispatch.call(t, i), i.isDefaultPrevented() && n.preventDefault() | |
1667 } | |
1668 }, x.removeEvent = function (e, t, n) { | |
1669 e.removeEventListener && e.removeEventListener(t, n, !1) | |
1670 }, x.Event = function (e, t) { | |
1671 return this instanceof x.Event ? (e && e.type ? (this.originalEvent = e, this.type = e.type, this.isDefaultPrevented = e.defaultPrevented || e.getPreventDefault && e.getPreventDefault() ? U : Y) : this.type = e, t && x.extend(this, t), this.timeStamp = e && e.timeStamp || x.now(), this[x.expando] = !0, undefined) : new x.Event(e, t) | |
1672 }, x.Event.prototype = { | |
1673 isDefaultPrevented: Y, | |
1674 isPropagationStopped: Y, | |
1675 isImmediatePropagationStopped: Y, | |
1676 preventDefault: function () { | |
1677 var e = this.originalEvent; | |
1678 this.isDefaultPrevented = U, e && e.preventDefault && e.preventDefault() | |
1679 }, | |
1680 stopPropagation: function () { | |
1681 var e = this.originalEvent; | |
1682 this.isPropagationStopped = U, e && e.stopPropagation && e.stopPropagation() | |
1683 }, | |
1684 stopImmediatePropagation: function () { | |
1685 this.isImmediatePropagationStopped = U, this.stopPropagation() | |
1686 } | |
1687 }, x.each({ | |
1688 mouseenter: "mouseover", | |
1689 mouseleave: "mouseout" | |
1690 }, function (e, t) { | |
1691 x.event.special[e] = { | |
1692 delegateType: t, | |
1693 bindType: t, | |
1694 handle: function (e) { | |
1695 var n, r = this, | |
1696 i = e.relatedTarget, | |
1697 o = e.handleObj; | |
1698 return (!i || i !== r && !x.contains(r, i)) && (e.type = o.origType, n = o.handler.apply(this, arguments), e.type = t), n | |
1699 } | |
1700 } | |
1701 }), x.support.focusinBubbles || x.each({ | |
1702 focus: "focusin", | |
1703 blur: "focusout" | |
1704 }, function (e, t) { | |
1705 var n = 0, | |
1706 r = function (e) { | |
1707 x.event.simulate(t, e.target, x.event.fix(e), !0) | |
1708 }; | |
1709 x.event.special[t] = { | |
1710 setup: function () { | |
1711 0 === n++ && o.addEventListener(e, r, !0) | |
1712 }, | |
1713 teardown: function () { | |
1714 0 === --n && o.removeEventListener(e, r, !0) | |
1715 } | |
1716 } | |
1717 }), x.fn.extend({ | |
1718 on: function (e, t, n, r, i) { | |
1719 var o, s; | |
1720 if ("object" == typeof e) { | |
1721 "string" != typeof t && (n = n || t, t = undefined); | |
1722 for (s in e) this.on(s, t, n, e[s], i); | |
1723 return this | |
1724 } | |
1725 if (null == n && null == r ? (r = t, n = t = undefined) : null == r && ("string" == typeof t ? (r = n, n = undefined) : (r = n, n = t, t = undefined)), r === !1) r = Y; | |
1726 else if (!r) return this; | |
1727 return 1 === i && (o = r, r = function (e) { | |
1728 return x().off(e), o.apply(this, arguments) | |
1729 }, r.guid = o.guid || (o.guid = x.guid++)), this.each(function () { | |
1730 x.event.add(this, e, r, n, t) | |
1731 }) | |
1732 }, | |
1733 one: function (e, t, n, r) { | |
1734 return this.on(e, t, n, r, 1) | |
1735 }, | |
1736 off: function (e, t, n) { | |
1737 var r, i; | |
1738 if (e && e.preventDefault && e.handleObj) return r = e.handleObj, x(e.delegateTarget).off(r.namespace ? r.origType + "." + r.namespace : r.origType, r.selector, r.handler), this; | |
1739 if ("object" == typeof e) { | |
1740 for (i in e) this.off(i, t, e[i]); | |
1741 return this | |
1742 } | |
1743 return (t === !1 || "function" == typeof t) && (n = t, t = undefined), n === !1 && (n = Y), this.each(function () { | |
1744 x.event.remove(this, e, n, t) | |
1745 }) | |
1746 }, | |
1747 trigger: function (e, t) { | |
1748 return this.each(function () { | |
1749 x.event.trigger(e, t, this) | |
1750 }) | |
1751 }, | |
1752 triggerHandler: function (e, t) { | |
1753 var n = this[0]; | |
1754 return n ? x.event.trigger(e, t, n, !0) : undefined | |
1755 } | |
1756 }); | |
1757 var G = /^.[^:#\[\.,]*$/, | |
1758 J = /^(?:parents|prev(?:Until|All))/, | |
1759 Q = x.expr.match.needsContext, | |
1760 K = { | |
1761 children: !0, | |
1762 contents: !0, | |
1763 next: !0, | |
1764 prev: !0 | |
1765 }; | |
1766 x.fn.extend({ | |
1767 find: function (e) { | |
1768 var t, n = [], | |
1769 r = this, | |
1770 i = r.length; | |
1771 if ("string" != typeof e) return this.pushStack(x(e).filter(function () { | |
1772 for (t = 0; i > t; t++) | |
1773 if (x.contains(r[t], this)) return !0 | |
1774 })); | |
1775 for (t = 0; i > t; t++) x.find(e, r[t], n); | |
1776 return n = this.pushStack(i > 1 ? x.unique(n) : n), n.selector = this.selector ? this.selector + " " + e : e, n | |
1777 }, | |
1778 has: function (e) { | |
1779 var t = x(e, this), | |
1780 n = t.length; | |
1781 return this.filter(function () { | |
1782 var e = 0; | |
1783 for (; n > e; e++) | |
1784 if (x.contains(this, t[e])) return !0 | |
1785 }) | |
1786 }, | |
1787 not: function (e) { | |
1788 return this.pushStack(et(this, e || [], !0)) | |
1789 }, | |
1790 filter: function (e) { | |
1791 return this.pushStack(et(this, e || [], !1)) | |
1792 }, | |
1793 is: function (e) { | |
1794 return !!et(this, "string" == typeof e && Q.test(e) ? x(e) : e || [], !1).length | |
1795 }, | |
1796 closest: function (e, t) { | |
1797 var n, r = 0, | |
1798 i = this.length, | |
1799 o = [], | |
1800 s = Q.test(e) || "string" != typeof e ? x(e, t || this.context) : 0; | |
1801 for (; i > r; r++) | |
1802 for (n = this[r]; n && n !== t; n = n.parentNode) | |
1803 if (11 > n.nodeType && (s ? s.index(n) > -1 : 1 === n.nodeType && x.find.matchesSelector(n, e))) { | |
1804 n = o.push(n); | |
1805 break | |
1806 } | |
1807 return this.pushStack(o.length > 1 ? x.unique(o) : o) | |
1808 }, | |
1809 index: function (e) { | |
1810 return e ? "string" == typeof e ? g.call(x(e), this[0]) : g.call(this, e.jquery ? e[0] : e) : this[0] && this[0].parentNode ? this.first().prevAll().length : -1 | |
1811 }, | |
1812 add: function (e, t) { | |
1813 var n = "string" == typeof e ? x(e, t) : x.makeArray(e && e.nodeType ? [e] : e), | |
1814 r = x.merge(this.get(), n); | |
1815 return this.pushStack(x.unique(r)) | |
1816 }, | |
1817 addBack: function (e) { | |
1818 return this.add(null == e ? this.prevObject : this.prevObject.filter(e)) | |
1819 } | |
1820 }); | |
1821 | |
1822 function Z(e, t) { | |
1823 while ((e = e[t]) && 1 !== e.nodeType); | |
1824 return e | |
1825 } | |
1826 x.each({ | |
1827 parent: function (e) { | |
1828 var t = e.parentNode; | |
1829 return t && 11 !== t.nodeType ? t : null | |
1830 }, | |
1831 parents: function (e) { | |
1832 return x.dir(e, "parentNode") | |
1833 }, | |
1834 parentsUntil: function (e, t, n) { | |
1835 return x.dir(e, "parentNode", n) | |
1836 }, | |
1837 next: function (e) { | |
1838 return Z(e, "nextSibling") | |
1839 }, | |
1840 prev: function (e) { | |
1841 return Z(e, "previousSibling") | |
1842 }, | |
1843 nextAll: function (e) { | |
1844 return x.dir(e, "nextSibling") | |
1845 }, | |
1846 prevAll: function (e) { | |
1847 return x.dir(e, "previousSibling") | |
1848 }, | |
1849 nextUntil: function (e, t, n) { | |
1850 return x.dir(e, "nextSibling", n) | |
1851 }, | |
1852 prevUntil: function (e, t, n) { | |
1853 return x.dir(e, "previousSibling", n) | |
1854 }, | |
1855 siblings: function (e) { | |
1856 return x.sibling((e.parentNode || {}).firstChild, e) | |
1857 }, | |
1858 children: function (e) { | |
1859 return x.sibling(e.firstChild) | |
1860 }, | |
1861 contents: function (e) { | |
1862 return e.contentDocument || x.merge([], e.childNodes) | |
1863 } | |
1864 }, function (e, t) { | |
1865 x.fn[e] = function (n, r) { | |
1866 var i = x.map(this, t, n); | |
1867 return "Until" !== e.slice(-5) && (r = n), r && "string" == typeof r && (i = x.filter(r, i)), this.length > 1 && (K[e] || x.unique(i), J.test(e) && i.reverse()), this.pushStack(i) | |
1868 } | |
1869 }), x.extend({ | |
1870 filter: function (e, t, n) { | |
1871 var r = t[0]; | |
1872 return n && (e = ":not(" + e + ")"), 1 === t.length && 1 === r.nodeType ? x.find.matchesSelector(r, e) ? [r] : [] : x.find.matches(e, x.grep(t, function (e) { | |
1873 return 1 === e.nodeType | |
1874 })) | |
1875 }, | |
1876 dir: function (e, t, n) { | |
1877 var r = [], | |
1878 i = n !== undefined; | |
1879 while ((e = e[t]) && 9 !== e.nodeType) | |
1880 if (1 === e.nodeType) { | |
1881 if (i && x(e).is(n)) break; | |
1882 r.push(e) | |
1883 } | |
1884 return r | |
1885 }, | |
1886 sibling: function (e, t) { | |
1887 var n = []; | |
1888 for (; e; e = e.nextSibling) 1 === e.nodeType && e !== t && n.push(e); | |
1889 return n | |
1890 } | |
1891 }); | |
1892 | |
1893 function et(e, t, n) { | |
1894 if (x.isFunction(t)) return x.grep(e, function (e, r) { | |
1895 return !!t.call(e, r, e) !== n | |
1896 }); | |
1897 if (t.nodeType) return x.grep(e, function (e) { | |
1898 return e === t !== n | |
1899 }); | |
1900 if ("string" == typeof t) { | |
1901 if (G.test(t)) return x.filter(t, e, n); | |
1902 t = x.filter(t, e) | |
1903 } | |
1904 return x.grep(e, function (e) { | |
1905 return g.call(t, e) >= 0 !== n | |
1906 }) | |
1907 } | |
1908 var tt = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi, | |
1909 nt = /<([\w:]+)/, | |
1910 rt = /<|&#?\w+;/, | |
1911 it = /<(?:script|style|link)/i, | |
1912 ot = /^(?:checkbox|radio)$/i, | |
1913 st = /checked\s*(?:[^=]|=\s*.checked.)/i, | |
1914 at = /^$|\/(?:java|ecma)script/i, | |
1915 ut = /^true\/(.*)/, | |
1916 lt = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g, | |
1917 ct = { | |
1918 option: [1, "<select multiple='multiple'>", "</select>"], | |
1919 thead: [1, "<table>", "</table>"], | |
1920 col: [2, "<table><colgroup>", "</colgroup></table>"], | |
1921 tr: [2, "<table><tbody>", "</tbody></table>"], | |
1922 td: [3, "<table><tbody><tr>", "</tr></tbody></table>"], | |
1923 _default: [0, "", ""] | |
1924 }; | |
1925 ct.optgroup = ct.option, ct.tbody = ct.tfoot = ct.colgroup = ct.caption = ct.thead, ct.th = ct.td, x.fn.extend({ | |
1926 text: function (e) { | |
1927 return x.access(this, function (e) { | |
1928 return e === undefined ? x.text(this) : this.empty().append((this[0] && this[0].ownerDocument || o).createTextNode(e)) | |
1929 }, null, e, arguments.length) | |
1930 }, | |
1931 append: function () { | |
1932 return this.domManip(arguments, function (e) { | |
1933 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { | |
1934 var t = pt(this, e); | |
1935 t.appendChild(e) | |
1936 } | |
1937 }) | |
1938 }, | |
1939 prepend: function () { | |
1940 return this.domManip(arguments, function (e) { | |
1941 if (1 === this.nodeType || 11 === this.nodeType || 9 === this.nodeType) { | |
1942 var t = pt(this, e); | |
1943 t.insertBefore(e, t.firstChild) | |
1944 } | |
1945 }) | |
1946 }, | |
1947 before: function () { | |
1948 return this.domManip(arguments, function (e) { | |
1949 this.parentNode && this.parentNode.insertBefore(e, this) | |
1950 }) | |
1951 }, | |
1952 after: function () { | |
1953 return this.domManip(arguments, function (e) { | |
1954 this.parentNode && this.parentNode.insertBefore(e, this.nextSibling) | |
1955 }) | |
1956 }, | |
1957 remove: function (e, t) { | |
1958 var n, r = e ? x.filter(e, this) : this, | |
1959 i = 0; | |
1960 for (; null != (n = r[i]); i++) t || 1 !== n.nodeType || x.cleanData(mt(n)), n.parentNode && (t && x.contains(n.ownerDocument, n) && dt(mt(n, "script")), n.parentNode.removeChild(n)); | |
1961 return this | |
1962 }, | |
1963 empty: function () { | |
1964 var e, t = 0; | |
1965 for (; null != (e = this[t]); t++) 1 === e.nodeType && (x.cleanData(mt(e, !1)), e.textContent = ""); | |
1966 return this | |
1967 }, | |
1968 clone: function (e, t) { | |
1969 return e = null == e ? !1 : e, t = null == t ? e : t, this.map(function () { | |
1970 return x.clone(this, e, t) | |
1971 }) | |
1972 }, | |
1973 html: function (e) { | |
1974 return x.access(this, function (e) { | |
1975 var t = this[0] || {}, n = 0, | |
1976 r = this.length; | |
1977 if (e === undefined && 1 === t.nodeType) return t.innerHTML; | |
1978 if ("string" == typeof e && !it.test(e) && !ct[(nt.exec(e) || ["", ""])[1].toLowerCase()]) { | |
1979 e = e.replace(tt, "<$1></$2>"); | |
1980 try { | |
1981 for (; r > n; n++) t = this[n] || {}, 1 === t.nodeType && (x.cleanData(mt(t, !1)), t.innerHTML = e); | |
1982 t = 0 | |
1983 } catch (i) {} | |
1984 } | |
1985 t && this.empty().append(e) | |
1986 }, null, e, arguments.length) | |
1987 }, | |
1988 replaceWith: function () { | |
1989 var e = x.map(this, function (e) { | |
1990 return [e.nextSibling, e.parentNode] | |
1991 }), | |
1992 t = 0; | |
1993 return this.domManip(arguments, function (n) { | |
1994 var r = e[t++], | |
1995 i = e[t++]; | |
1996 i && (r && r.parentNode !== i && (r = this.nextSibling), x(this).remove(), i.insertBefore(n, r)) | |
1997 }, !0), t ? this : this.remove() | |
1998 }, | |
1999 detach: function (e) { | |
2000 return this.remove(e, !0) | |
2001 }, | |
2002 domManip: function (e, t, n) { | |
2003 e = f.apply([], e); | |
2004 var r, i, o, s, a, u, l = 0, | |
2005 c = this.length, | |
2006 p = this, | |
2007 h = c - 1, | |
2008 d = e[0], | |
2009 g = x.isFunction(d); | |
2010 if (g || !(1 >= c || "string" != typeof d || x.support.checkClone) && st.test(d)) return this.each(function (r) { | |
2011 var i = p.eq(r); | |
2012 g && (e[0] = d.call(this, r, i.html())), i.domManip(e, t, n) | |
2013 }); | |
2014 if (c && (r = x.buildFragment(e, this[0].ownerDocument, !1, !n && this), i = r.firstChild, 1 === r.childNodes.length && (r = i), i)) { | |
2015 for (o = x.map(mt(r, "script"), ft), s = o.length; c > l; l++) a = r, l !== h && (a = x.clone(a, !0, !0), s && x.merge(o, mt(a, "script"))), t.call(this[l], a, l); | |
2016 if (s) | |
2017 for (u = o[o.length - 1].ownerDocument, x.map(o, ht), l = 0; s > l; l++) a = o[l], at.test(a.type || "") && !H.access(a, "globalEval") && x.contains(u, a) && (a.src ? x._evalUrl(a.src) : x.globalEval(a.textContent.replace(lt, ""))) | |
2018 } | |
2019 return this | |
2020 } | |
2021 }), x.each({ | |
2022 appendTo: "append", | |
2023 prependTo: "prepend", | |
2024 insertBefore: "before", | |
2025 insertAfter: "after", | |
2026 replaceAll: "replaceWith" | |
2027 }, function (e, t) { | |
2028 x.fn[e] = function (e) { | |
2029 var n, r = [], | |
2030 i = x(e), | |
2031 o = i.length - 1, | |
2032 s = 0; | |
2033 for (; o >= s; s++) n = s === o ? this : this.clone(!0), x(i[s])[t](n), h.apply(r, n.get()); | |
2034 return this.pushStack(r) | |
2035 } | |
2036 }), x.extend({ | |
2037 clone: function (e, t, n) { | |
2038 var r, i, o, s, a = e.cloneNode(!0), | |
2039 u = x.contains(e.ownerDocument, e); | |
2040 if (!(x.support.noCloneChecked || 1 !== e.nodeType && 11 !== e.nodeType || x.isXMLDoc(e))) | |
2041 for (s = mt(a), o = mt(e), r = 0, i = o.length; i > r; r++) yt(o[r], s[r]); | |
2042 if (t) | |
2043 if (n) | |
2044 for (o = o || mt(e), s = s || mt(a), r = 0, i = o.length; i > r; r++) gt(o[r], s[r]); | |
2045 else gt(e, a); | |
2046 return s = mt(a, "script"), s.length > 0 && dt(s, !u && mt(e, "script")), a | |
2047 }, | |
2048 buildFragment: function (e, t, n, r) { | |
2049 var i, o, s, a, u, l, c = 0, | |
2050 p = e.length, | |
2051 f = t.createDocumentFragment(), | |
2052 h = []; | |
2053 for (; p > c; c++) | |
2054 if (i = e[c], i || 0 === i) | |
2055 if ("object" === x.type(i)) x.merge(h, i.nodeType ? [i] : i); | |
2056 else if (rt.test(i)) { | |
2057 o = o || f.appendChild(t.createElement("div")), s = (nt.exec(i) || ["", ""])[1].toLowerCase(), a = ct[s] || ct._default, o.innerHTML = a[1] + i.replace(tt, "<$1></$2>") + a[2], l = a[0]; | |
2058 while (l--) o = o.firstChild; | |
2059 x.merge(h, o.childNodes), o = f.firstChild, o.textContent = "" | |
2060 } else h.push(t.createTextNode(i)); | |
2061 f.textContent = "", c = 0; | |
2062 while (i = h[c++]) | |
2063 if ((!r || -1 === x.inArray(i, r)) && (u = x.contains(i.ownerDocument, i), o = mt(f.appendChild(i), "script"), u && dt(o), n)) { | |
2064 l = 0; | |
2065 while (i = o[l++]) at.test(i.type || "") && n.push(i) | |
2066 } | |
2067 return f | |
2068 }, | |
2069 cleanData: function (e) { | |
2070 var t, n, r, i, o, s, a = x.event.special, | |
2071 u = 0; | |
2072 for (; | |
2073 (n = e[u]) !== undefined; u++) { | |
2074 if (F.accepts(n) && (o = n[H.expando], o && (t = H.cache[o]))) { | |
2075 if (r = Object.keys(t.events || {}), r.length) | |
2076 for (s = 0; | |
2077 (i = r[s]) !== undefined; s++) a[i] ? x.event.remove(n, i) : x.removeEvent(n, i, t.handle); | |
2078 H.cache[o] && delete H.cache[o] | |
2079 } | |
2080 delete L.cache[n[L.expando]] | |
2081 } | |
2082 }, | |
2083 _evalUrl: function (e) { | |
2084 return x.ajax({ | |
2085 url: e, | |
2086 type: "GET", | |
2087 dataType: "script", | |
2088 async: !1, | |
2089 global: !1, | |
2090 "throws": !0 | |
2091 }) | |
2092 } | |
2093 }); | |
2094 | |
2095 function pt(e, t) { | |
2096 return x.nodeName(e, "table") && x.nodeName(1 === t.nodeType ? t : t.firstChild, "tr") ? e.getElementsByTagName("tbody")[0] || e.appendChild(e.ownerDocument.createElement("tbody")) : e | |
2097 } | |
2098 | |
2099 function ft(e) { | |
2100 return e.type = (null !== e.getAttribute("type")) + "/" + e.type, e | |
2101 } | |
2102 | |
2103 function ht(e) { | |
2104 var t = ut.exec(e.type); | |
2105 return t ? e.type = t[1] : e.removeAttribute("type"), e | |
2106 } | |
2107 | |
2108 function dt(e, t) { | |
2109 var n = e.length, | |
2110 r = 0; | |
2111 for (; n > r; r++) H.set(e[r], "globalEval", !t || H.get(t[r], "globalEval")) | |
2112 } | |
2113 | |
2114 function gt(e, t) { | |
2115 var n, r, i, o, s, a, u, l; | |
2116 if (1 === t.nodeType) { | |
2117 if (H.hasData(e) && (o = H.access(e), s = H.set(t, o), l = o.events)) { | |
2118 delete s.handle, s.events = {}; | |
2119 for (i in l) | |
2120 for (n = 0, r = l[i].length; r > n; n++) x.event.add(t, i, l[i][n]) | |
2121 } | |
2122 L.hasData(e) && (a = L.access(e), u = x.extend({}, a), L.set(t, u)) | |
2123 } | |
2124 } | |
2125 | |
2126 function mt(e, t) { | |
2127 var n = e.getElementsByTagName ? e.getElementsByTagName(t || "*") : e.querySelectorAll ? e.querySelectorAll(t || "*") : []; | |
2128 return t === undefined || t && x.nodeName(e, t) ? x.merge([e], n) : n | |
2129 } | |
2130 | |
2131 function yt(e, t) { | |
2132 var n = t.nodeName.toLowerCase(); | |
2133 "input" === n && ot.test(e.type) ? t.checked = e.checked : ("input" === n || "textarea" === n) && (t.defaultValue = e.defaultValue) | |
2134 } | |
2135 x.fn.extend({ | |
2136 wrapAll: function (e) { | |
2137 var t; | |
2138 return x.isFunction(e) ? this.each(function (t) { | |
2139 x(this).wrapAll(e.call(this, t)) | |
2140 }) : (this[0] && (t = x(e, this[0].ownerDocument).eq(0).clone(!0), this[0].parentNode && t.insertBefore(this[0]), t.map(function () { | |
2141 var e = this; | |
2142 while (e.firstElementChild) e = e.firstElementChild; | |
2143 return e | |
2144 }).append(this)), this) | |
2145 }, | |
2146 wrapInner: function (e) { | |
2147 return x.isFunction(e) ? this.each(function (t) { | |
2148 x(this).wrapInner(e.call(this, t)) | |
2149 }) : this.each(function () { | |
2150 var t = x(this), | |
2151 n = t.contents(); | |
2152 n.length ? n.wrapAll(e) : t.append(e) | |
2153 }) | |
2154 }, | |
2155 wrap: function (e) { | |
2156 var t = x.isFunction(e); | |
2157 return this.each(function (n) { | |
2158 x(this).wrapAll(t ? e.call(this, n) : e) | |
2159 }) | |
2160 }, | |
2161 unwrap: function () { | |
2162 return this.parent().each(function () { | |
2163 x.nodeName(this, "body") || x(this).replaceWith(this.childNodes) | |
2164 }).end() | |
2165 } | |
2166 }); | |
2167 var vt, xt, bt = /^(none|table(?!-c[ea]).+)/, | |
2168 wt = /^margin/, | |
2169 Tt = RegExp("^(" + b + ")(.*)$", "i"), | |
2170 Ct = RegExp("^(" + b + ")(?!px)[a-z%]+$", "i"), | |
2171 kt = RegExp("^([+-])=(" + b + ")", "i"), | |
2172 Nt = { | |
2173 BODY: "block" | |
2174 }, Et = { | |
2175 position: "absolute", | |
2176 visibility: "hidden", | |
2177 display: "block" | |
2178 }, St = { | |
2179 letterSpacing: 0, | |
2180 fontWeight: 400 | |
2181 }, jt = ["Top", "Right", "Bottom", "Left"], | |
2182 Dt = ["Webkit", "O", "Moz", "ms"]; | |
2183 | |
2184 function At(e, t) { | |
2185 if (t in e) return t; | |
2186 var n = t.charAt(0).toUpperCase() + t.slice(1), | |
2187 r = t, | |
2188 i = Dt.length; | |
2189 while (i--) | |
2190 if (t = Dt[i] + n, t in e) return t; | |
2191 return r | |
2192 } | |
2193 | |
2194 function Lt(e, t) { | |
2195 return e = t || e, "none" === x.css(e, "display") || !x.contains(e.ownerDocument, e) | |
2196 } | |
2197 | |
2198 function Ht(t) { | |
2199 return e.getComputedStyle(t, null) | |
2200 } | |
2201 | |
2202 function qt(e, t) { | |
2203 var n, r, i, o = [], | |
2204 s = 0, | |
2205 a = e.length; | |
2206 for (; a > s; s++) r = e[s], r.style && (o[s] = H.get(r, "olddisplay"), n = r.style.display, t ? (o[s] || "none" !== n || (r.style.display = ""), "" === r.style.display && Lt(r) && (o[s] = H.access(r, "olddisplay", Rt(r.nodeName)))) : o[s] || (i = Lt(r), (n && "none" !== n || !i) && H.set(r, "olddisplay", i ? n : x.css(r, "display")))); | |
2207 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")); | |
2208 return e | |
2209 } | |
2210 x.fn.extend({ | |
2211 css: function (e, t) { | |
2212 return x.access(this, function (e, t, n) { | |
2213 var r, i, o = {}, s = 0; | |
2214 if (x.isArray(t)) { | |
2215 for (r = Ht(e), i = t.length; i > s; s++) o[t[s]] = x.css(e, t[s], !1, r); | |
2216 return o | |
2217 } | |
2218 return n !== undefined ? x.style(e, t, n) : x.css(e, t) | |
2219 }, e, t, arguments.length > 1) | |
2220 }, | |
2221 show: function () { | |
2222 return qt(this, !0) | |
2223 }, | |
2224 hide: function () { | |
2225 return qt(this) | |
2226 }, | |
2227 toggle: function (e) { | |
2228 var t = "boolean" == typeof e; | |
2229 return this.each(function () { | |
2230 (t ? e : Lt(this)) ? x(this).show() : x(this).hide() | |
2231 }) | |
2232 } | |
2233 }), x.extend({ | |
2234 cssHooks: { | |
2235 opacity: { | |
2236 get: function (e, t) { | |
2237 if (t) { | |
2238 var n = vt(e, "opacity"); | |
2239 return "" === n ? "1" : n | |
2240 } | |
2241 } | |
2242 } | |
2243 }, | |
2244 cssNumber: { | |
2245 columnCount: !0, | |
2246 fillOpacity: !0, | |
2247 fontWeight: !0, | |
2248 lineHeight: !0, | |
2249 opacity: !0, | |
2250 orphans: !0, | |
2251 widows: !0, | |
2252 zIndex: !0, | |
2253 zoom: !0 | |
2254 }, | |
2255 cssProps: { | |
2256 "float": "cssFloat" | |
2257 }, | |
2258 style: function (e, t, n, r) { | |
2259 if (e && 3 !== e.nodeType && 8 !== e.nodeType && e.style) { | |
2260 var i, o, s, a = x.camelCase(t), | |
2261 u = e.style; | |
2262 return t = x.cssProps[a] || (x.cssProps[a] = At(u, a)), s = x.cssHooks[t] || x.cssHooks[a], n === undefined ? s && "get" in s && (i = s.get(e, !1, r)) !== undefined ? i : u[t] : (o = typeof n, "string" === o && (i = kt.exec(n)) && (n = (i[1] + 1) * i[2] + parseFloat(x.css(e, t)), o = "number"), null == n || "number" === o && isNaN(n) || ("number" !== o || x.cssNumber[a] || (n += "px"), x.support.clearCloneStyle || "" !== n || 0 !== t.indexOf("background") || (u[t] = "inherit"), s && "set" in s && (n = s.set(e, n, r)) === undefined || (u[t] = n)), undefined) | |
2263 } | |
2264 }, | |
2265 css: function (e, t, n, r) { | |
2266 var i, o, s, a = x.camelCase(t); | |
2267 return t = x.cssProps[a] || (x.cssProps[a] = At(e.style, a)), s = x.cssHooks[t] || x.cssHooks[a], s && "get" in s && (i = s.get(e, !0, n)), i === undefined && (i = vt(e, t, r)), "normal" === i && t in St && (i = St[t]), "" === n || n ? (o = parseFloat(i), n === !0 || x.isNumeric(o) ? o || 0 : i) : i | |
2268 } | |
2269 }), vt = function (e, t, n) { | |
2270 var r, i, o, s = n || Ht(e), | |
2271 a = s ? s.getPropertyValue(t) || s[t] : undefined, | |
2272 u = e.style; | |
2273 return s && ("" !== a || x.contains(e.ownerDocument, e) || (a = x.style(e, t)), Ct.test(a) && wt.test(t) && (r = u.width, i = u.minWidth, o = u.maxWidth, u.minWidth = u.maxWidth = u.width = a, a = s.width, u.width = r, u.minWidth = i, u.maxWidth = o)), a | |
2274 }; | |
2275 | |
2276 function Ot(e, t, n) { | |
2277 var r = Tt.exec(t); | |
2278 return r ? Math.max(0, r[1] - (n || 0)) + (r[2] || "px") : t | |
2279 } | |
2280 | |
2281 function Ft(e, t, n, r, i) { | |
2282 var o = n === (r ? "border" : "content") ? 4 : "width" === t ? 1 : 0, | |
2283 s = 0; | |
2284 for (; 4 > o; o += 2) "margin" === n && (s += x.css(e, n + jt[o], !0, i)), r ? ("content" === n && (s -= x.css(e, "padding" + jt[o], !0, i)), "margin" !== n && (s -= x.css(e, "border" + jt[o] + "Width", !0, i))) : (s += x.css(e, "padding" + jt[o], !0, i), "padding" !== n && (s += x.css(e, "border" + jt[o] + "Width", !0, i))); | |
2285 return s | |
2286 } | |
2287 | |
2288 function Pt(e, t, n) { | |
2289 var r = !0, | |
2290 i = "width" === t ? e.offsetWidth : e.offsetHeight, | |
2291 o = Ht(e), | |
2292 s = x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, o); | |
2293 if (0 >= i || null == i) { | |
2294 if (i = vt(e, t, o), (0 > i || null == i) && (i = e.style[t]), Ct.test(i)) return i; | |
2295 r = s && (x.support.boxSizingReliable || i === e.style[t]), i = parseFloat(i) || 0 | |
2296 } | |
2297 return i + Ft(e, t, n || (s ? "border" : "content"), r, o) + "px" | |
2298 } | |
2299 | |
2300 function Rt(e) { | |
2301 var t = o, | |
2302 n = Nt[e]; | |
2303 return n || (n = Mt(e, t), "none" !== n && n || (xt = (xt || x("<iframe frameborder='0' width='0' height='0'/>").css("cssText", "display:block !important")).appendTo(t.documentElement), t = (xt[0].contentWindow || xt[0].contentDocument).document, t.write("<!doctype html><html><body>"), t.close(), n = Mt(e, t), xt.detach()), Nt[e] = n), n | |
2304 } | |
2305 | |
2306 function Mt(e, t) { | |
2307 var n = x(t.createElement(e)).appendTo(t.body), | |
2308 r = x.css(n[0], "display"); | |
2309 return n.remove(), r | |
2310 } | |
2311 x.each(["height", "width"], function (e, t) { | |
2312 x.cssHooks[t] = { | |
2313 get: function (e, n, r) { | |
2314 return n ? 0 === e.offsetWidth && bt.test(x.css(e, "display")) ? x.swap(e, Et, function () { | |
2315 return Pt(e, t, r) | |
2316 }) : Pt(e, t, r) : undefined | |
2317 }, | |
2318 set: function (e, n, r) { | |
2319 var i = r && Ht(e); | |
2320 return Ot(e, n, r ? Ft(e, t, r, x.support.boxSizing && "border-box" === x.css(e, "boxSizing", !1, i), i) : 0) | |
2321 } | |
2322 } | |
2323 }), x(function () { | |
2324 x.support.reliableMarginRight || (x.cssHooks.marginRight = { | |
2325 get: function (e, t) { | |
2326 return t ? x.swap(e, { | |
2327 display: "inline-block" | |
2328 }, vt, [e, "marginRight"]) : undefined | |
2329 } | |
2330 }), !x.support.pixelPosition && x.fn.position && x.each(["top", "left"], function (e, t) { | |
2331 x.cssHooks[t] = { | |
2332 get: function (e, n) { | |
2333 return n ? (n = vt(e, t), Ct.test(n) ? x(e).position()[t] + "px" : n) : undefined | |
2334 } | |
2335 } | |
2336 }) | |
2337 }), x.expr && x.expr.filters && (x.expr.filters.hidden = function (e) { | |
2338 return 0 >= e.offsetWidth && 0 >= e.offsetHeight | |
2339 }, x.expr.filters.visible = function (e) { | |
2340 return !x.expr.filters.hidden(e) | |
2341 }), x.each({ | |
2342 margin: "", | |
2343 padding: "", | |
2344 border: "Width" | |
2345 }, function (e, t) { | |
2346 x.cssHooks[e + t] = { | |
2347 expand: function (n) { | |
2348 var r = 0, | |
2349 i = {}, o = "string" == typeof n ? n.split(" ") : [n]; | |
2350 for (; 4 > r; r++) i[e + jt[r] + t] = o[r] || o[r - 2] || o[0]; | |
2351 return i | |
2352 } | |
2353 }, wt.test(e) || (x.cssHooks[e + t].set = Ot) | |
2354 }); | |
2355 var Wt = /%20/g, | |
2356 $t = /\[\]$/, | |
2357 Bt = /\r?\n/g, | |
2358 It = /^(?:submit|button|image|reset|file)$/i, | |
2359 zt = /^(?:input|select|textarea|keygen)/i; | |
2360 x.fn.extend({ | |
2361 serialize: function () { | |
2362 return x.param(this.serializeArray()) | |
2363 }, | |
2364 serializeArray: function () { | |
2365 return this.map(function () { | |
2366 var e = x.prop(this, "elements"); | |
2367 return e ? x.makeArray(e) : this | |
2368 }).filter(function () { | |
2369 var e = this.type; | |
2370 return this.name && !x(this).is(":disabled") && zt.test(this.nodeName) && !It.test(e) && (this.checked || !ot.test(e)) | |
2371 }).map(function (e, t) { | |
2372 var n = x(this).val(); | |
2373 return null == n ? null : x.isArray(n) ? x.map(n, function (e) { | |
2374 return { | |
2375 name: t.name, | |
2376 value: e.replace(Bt, "\r\n") | |
2377 } | |
2378 }) : { | |
2379 name: t.name, | |
2380 value: n.replace(Bt, "\r\n") | |
2381 } | |
2382 }).get() | |
2383 } | |
2384 }), x.param = function (e, t) { | |
2385 var n, r = [], | |
2386 i = function (e, t) { | |
2387 t = x.isFunction(t) ? t() : null == t ? "" : t, r[r.length] = encodeURIComponent(e) + "=" + encodeURIComponent(t) | |
2388 }; | |
2389 if (t === undefined && (t = x.ajaxSettings && x.ajaxSettings.traditional), x.isArray(e) || e.jquery && !x.isPlainObject(e)) x.each(e, function () { | |
2390 i(this.name, this.value) | |
2391 }); | |
2392 else | |
2393 for (n in e) _t(n, e[n], t, i); | |
2394 return r.join("&").replace(Wt, "+") | |
2395 }; | |
2396 | |
2397 function _t(e, t, n, r) { | |
2398 var i; | |
2399 if (x.isArray(t)) x.each(t, function (t, i) { | |
2400 n || $t.test(e) ? r(e, i) : _t(e + "[" + ("object" == typeof i ? t : "") + "]", i, n, r) | |
2401 }); | |
2402 else if (n || "object" !== x.type(t)) r(e, t); | |
2403 else | |
2404 for (i in t) _t(e + "[" + i + "]", t[i], n, r) | |
2405 } | |
2406 x.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) { | |
2407 x.fn[t] = function (e, n) { | |
2408 return arguments.length > 0 ? this.on(t, null, e, n) : this.trigger(t) | |
2409 } | |
2410 }), x.fn.extend({ | |
2411 hover: function (e, t) { | |
2412 return this.mouseenter(e).mouseleave(t || e) | |
2413 }, | |
2414 bind: function (e, t, n) { | |
2415 return this.on(e, null, t, n) | |
2416 }, | |
2417 unbind: function (e, t) { | |
2418 return this.off(e, null, t) | |
2419 }, | |
2420 delegate: function (e, t, n, r) { | |
2421 return this.on(t, e, n, r) | |
2422 }, | |
2423 undelegate: function (e, t, n) { | |
2424 return 1 === arguments.length ? this.off(e, "**") : this.off(t, e || "**", n) | |
2425 } | |
2426 }); | |
2427 var Xt, Ut, Yt = x.now(), | |
2428 Vt = /\?/, | |
2429 Gt = /#.*$/, | |
2430 Jt = /([?&])_=[^&]*/, | |
2431 Qt = /^(.*?):[ \t]*([^\r\n]*)$/gm, | |
2432 Kt = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/, | |
2433 Zt = /^(?:GET|HEAD)$/, | |
2434 en = /^\/\//, | |
2435 tn = /^([\w.+-]+:)(?:\/\/([^\/?#:]*)(?::(\d+)|)|)/, | |
2436 nn = x.fn.load, | |
2437 rn = {}, on = {}, sn = "*/".concat("*"); | |
2438 try { | |
2439 Ut = i.href | |
2440 } catch (an) { | |
2441 Ut = o.createElement("a"), Ut.href = "", Ut = Ut.href | |
2442 } | |
2443 Xt = tn.exec(Ut.toLowerCase()) || []; | |
2444 | |
2445 function un(e) { | |
2446 return function (t, n) { | |
2447 "string" != typeof t && (n = t, t = "*"); | |
2448 var r, i = 0, | |
2449 o = t.toLowerCase().match(w) || []; | |
2450 if (x.isFunction(n)) | |
2451 while (r = o[i++]) "+" === r[0] ? (r = r.slice(1) || "*", (e[r] = e[r] || []).unshift(n)) : (e[r] = e[r] || []).push(n) | |
2452 } | |
2453 } | |
2454 | |
2455 function ln(e, t, n, r) { | |
2456 var i = {}, o = e === on; | |
2457 | |
2458 function s(a) { | |
2459 var u; | |
2460 return i[a] = !0, x.each(e[a] || [], function (e, a) { | |
2461 var l = a(t, n, r); | |
2462 return "string" != typeof l || o || i[l] ? o ? !(u = l) : undefined : (t.dataTypes.unshift(l), s(l), !1) | |
2463 }), u | |
2464 } | |
2465 return s(t.dataTypes[0]) || !i["*"] && s("*") | |
2466 } | |
2467 | |
2468 function cn(e, t) { | |
2469 var n, r, i = x.ajaxSettings.flatOptions || {}; | |
2470 for (n in t) t[n] !== undefined && ((i[n] ? e : r || (r = {}))[n] = t[n]); | |
2471 return r && x.extend(!0, e, r), e | |
2472 } | |
2473 x.fn.load = function (e, t, n) { | |
2474 if ("string" != typeof e && nn) return nn.apply(this, arguments); | |
2475 var r, i, o, s = this, | |
2476 a = e.indexOf(" "); | |
2477 return a >= 0 && (r = e.slice(a), e = e.slice(0, a)), x.isFunction(t) ? (n = t, t = undefined) : t && "object" == typeof t && (i = "POST"), s.length > 0 && x.ajax({ | |
2478 url: e, | |
2479 type: i, | |
2480 dataType: "html", | |
2481 data: t | |
2482 }).done(function (e) { | |
2483 o = arguments, s.html(r ? x("<div>").append(x.parseHTML(e)).find(r) : e) | |
2484 }).complete(n && function (e, t) { | |
2485 s.each(n, o || [e.responseText, t, e]) | |
2486 }), this | |
2487 }, x.each(["ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend"], function (e, t) { | |
2488 x.fn[t] = function (e) { | |
2489 return this.on(t, e) | |
2490 } | |
2491 }), x.extend({ | |
2492 active: 0, | |
2493 lastModified: {}, | |
2494 etag: {}, | |
2495 ajaxSettings: { | |
2496 url: Ut, | |
2497 type: "GET", | |
2498 isLocal: Kt.test(Xt[1]), | |
2499 global: !0, | |
2500 processData: !0, | |
2501 async: !0, | |
2502 contentType: "application/x-www-form-urlencoded; charset=UTF-8", | |
2503 accepts: { | |
2504 "*": sn, | |
2505 text: "text/plain", | |
2506 html: "text/html", | |
2507 xml: "application/xml, text/xml", | |
2508 json: "application/json, text/javascript" | |
2509 }, | |
2510 contents: { | |
2511 xml: /xml/, | |
2512 html: /html/, | |
2513 json: /json/ | |
2514 }, | |
2515 responseFields: { | |
2516 xml: "responseXML", | |
2517 text: "responseText", | |
2518 json: "responseJSON" | |
2519 }, | |
2520 converters: { | |
2521 "* text": String, | |
2522 "text html": !0, | |
2523 "text json": x.parseJSON, | |
2524 "text xml": x.parseXML | |
2525 }, | |
2526 flatOptions: { | |
2527 url: !0, | |
2528 context: !0 | |
2529 } | |
2530 }, | |
2531 ajaxSetup: function (e, t) { | |
2532 return t ? cn(cn(e, x.ajaxSettings), t) : cn(x.ajaxSettings, e) | |
2533 }, | |
2534 ajaxPrefilter: un(rn), | |
2535 ajaxTransport: un(on), | |
2536 ajax: function (e, t) { | |
2537 "object" == typeof e && (t = e, e = undefined), t = t || {}; | |
2538 var n, r, i, o, s, a, u, l, c = x.ajaxSetup({}, t), | |
2539 p = c.context || c, | |
2540 f = c.context && (p.nodeType || p.jquery) ? x(p) : x.event, | |
2541 h = x.Deferred(), | |
2542 d = x.Callbacks("once memory"), | |
2543 g = c.statusCode || {}, m = {}, y = {}, v = 0, | |
2544 b = "canceled", | |
2545 T = { | |
2546 readyState: 0, | |
2547 getResponseHeader: function (e) { | |
2548 var t; | |
2549 if (2 === v) { | |
2550 if (!o) { | |
2551 o = {}; | |
2552 while (t = Qt.exec(i)) o[t[1].toLowerCase()] = t[2] | |
2553 } | |
2554 t = o[e.toLowerCase()] | |
2555 } | |
2556 return null == t ? null : t | |
2557 }, | |
2558 getAllResponseHeaders: function () { | |
2559 return 2 === v ? i : null | |
2560 }, | |
2561 setRequestHeader: function (e, t) { | |
2562 var n = e.toLowerCase(); | |
2563 return v || (e = y[n] = y[n] || e, m[e] = t), this | |
2564 }, | |
2565 overrideMimeType: function (e) { | |
2566 return v || (c.mimeType = e), this | |
2567 }, | |
2568 statusCode: function (e) { | |
2569 var t; | |
2570 if (e) | |
2571 if (2 > v) | |
2572 for (t in e) g[t] = [g[t], e[t]]; | |
2573 else T.always(e[T.status]); | |
2574 return this | |
2575 }, | |
2576 abort: function (e) { | |
2577 var t = e || b; | |
2578 return n && n.abort(t), k(0, t), this | |
2579 } | |
2580 }; | |
2581 if (h.promise(T).complete = d.add, T.success = T.done, T.error = T.fail, c.url = ((e || c.url || Ut) + "").replace(Gt, "").replace(en, Xt[1] + "//"), c.type = t.method || t.type || c.method || c.type, c.dataTypes = x.trim(c.dataType || "*").toLowerCase().match(w) || [""], null == c.crossDomain && (a = tn.exec(c.url.toLowerCase()), c.crossDomain = !(!a || a[1] === Xt[1] && a[2] === Xt[2] && (a[3] || ("http:" === a[1] ? "80" : "443")) === (Xt[3] || ("http:" === Xt[1] ? "80" : "443")))), c.data && c.processData && "string" != typeof c.data && (c.data = x.param(c.data, c.traditional)), ln(rn, c, t, T), 2 === v) return T; | |
2582 u = c.global, u && 0 === x.active++ && x.event.trigger("ajaxStart"), c.type = c.type.toUpperCase(), c.hasContent = !Zt.test(c.type), r = c.url, c.hasContent || (c.data && (r = c.url += (Vt.test(r) ? "&" : "?") + c.data, delete c.data), c.cache === !1 && (c.url = Jt.test(r) ? r.replace(Jt, "$1_=" + Yt++) : r + (Vt.test(r) ? "&" : "?") + "_=" + Yt++)), c.ifModified && (x.lastModified[r] && T.setRequestHeader("If-Modified-Since", x.lastModified[r]), x.etag[r] && T.setRequestHeader("If-None-Match", x.etag[r])), (c.data && c.hasContent && c.contentType !== !1 || t.contentType) && T.setRequestHeader("Content-Type", c.contentType), T.setRequestHeader("Accept", c.dataTypes[0] && c.accepts[c.dataTypes[0]] ? c.accepts[c.dataTypes[0]] + ("*" !== c.dataTypes[0] ? ", " + sn + "; q=0.01" : "") : c.accepts["*"]); | |
2583 for (l in c.headers) T.setRequestHeader(l, c.headers[l]); | |
2584 if (c.beforeSend && (c.beforeSend.call(p, T, c) === !1 || 2 === v)) return T.abort(); | |
2585 b = "abort"; | |
2586 for (l in { | |
2587 success: 1, | |
2588 error: 1, | |
2589 complete: 1 | |
2590 }) T[l](c[l]); | |
2591 if (n = ln(on, c, t, T)) { | |
2592 T.readyState = 1, u && f.trigger("ajaxSend", [T, c]), c.async && c.timeout > 0 && (s = setTimeout(function () { | |
2593 T.abort("timeout") | |
2594 }, c.timeout)); | |
2595 try { | |
2596 v = 1, n.send(m, k) | |
2597 } catch (C) { | |
2598 if (!(2 > v)) throw C; | |
2599 k(-1, C) | |
2600 } | |
2601 } else k(-1, "No Transport"); | |
2602 | |
2603 function k(e, t, o, a) { | |
2604 var l, m, y, b, w, C = t; | |
2605 2 !== v && (v = 2, s && clearTimeout(s), n = undefined, i = a || "", T.readyState = e > 0 ? 4 : 0, l = e >= 200 && 300 > e || 304 === e, o && (b = pn(c, T, o)), b = fn(c, b, T, l), l ? (c.ifModified && (w = T.getResponseHeader("Last-Modified"), w && (x.lastModified[r] = w), w = T.getResponseHeader("etag"), w && (x.etag[r] = w)), 204 === e || "HEAD" === c.type ? C = "nocontent" : 304 === e ? C = "notmodified" : (C = b.state, m = b.data, y = b.error, l = !y)) : (y = C, (e || !C) && (C = "error", 0 > e && (e = 0))), T.status = e, T.statusText = (t || C) + "", l ? h.resolveWith(p, [m, C, T]) : h.rejectWith(p, [T, C, y]), T.statusCode(g), g = undefined, u && f.trigger(l ? "ajaxSuccess" : "ajaxError", [T, c, l ? m : y]), d.fireWith(p, [T, C]), u && (f.trigger("ajaxComplete", [T, c]), --x.active || x.event.trigger("ajaxStop"))) | |
2606 } | |
2607 return T | |
2608 }, | |
2609 getJSON: function (e, t, n) { | |
2610 return x.get(e, t, n, "json") | |
2611 }, | |
2612 getScript: function (e, t) { | |
2613 return x.get(e, undefined, t, "script") | |
2614 } | |
2615 }), x.each(["get", "post"], function (e, t) { | |
2616 x[t] = function (e, n, r, i) { | |
2617 return x.isFunction(n) && (i = i || r, r = n, n = undefined), x.ajax({ | |
2618 url: e, | |
2619 type: t, | |
2620 dataType: i, | |
2621 data: n, | |
2622 success: r | |
2623 }) | |
2624 } | |
2625 }); | |
2626 | |
2627 function pn(e, t, n) { | |
2628 var r, i, o, s, a = e.contents, | |
2629 u = e.dataTypes; | |
2630 while ("*" === u[0]) u.shift(), r === undefined && (r = e.mimeType || t.getResponseHeader("Content-Type")); | |
2631 if (r) | |
2632 for (i in a) | |
2633 if (a[i] && a[i].test(r)) { | |
2634 u.unshift(i); | |
2635 break | |
2636 } | |
2637 if (u[0] in n) o = u[0]; | |
2638 else { | |
2639 for (i in n) { | |
2640 if (!u[0] || e.converters[i + " " + u[0]]) { | |
2641 o = i; | |
2642 break | |
2643 } | |
2644 s || (s = i) | |
2645 } | |
2646 o = o || s | |
2647 } | |
2648 return o ? (o !== u[0] && u.unshift(o), n[o]) : undefined | |
2649 } | |
2650 | |
2651 function fn(e, t, n, r) { | |
2652 var i, o, s, a, u, l = {}, c = e.dataTypes.slice(); | |
2653 if (c[1]) | |
2654 for (s in e.converters) l[s.toLowerCase()] = e.converters[s]; | |
2655 o = c.shift(); | |
2656 while (o) | |
2657 if (e.responseFields[o] && (n[e.responseFields[o]] = t), !u && r && e.dataFilter && (t = e.dataFilter(t, e.dataType)), u = o, o = c.shift()) | |
2658 if ("*" === o) o = u; | |
2659 else if ("*" !== u && u !== o) { | |
2660 if (s = l[u + " " + o] || l["* " + o], !s) | |
2661 for (i in l) | |
2662 if (a = i.split(" "), a[1] === o && (s = l[u + " " + a[0]] || l["* " + a[0]])) { | |
2663 s === !0 ? s = l[i] : l[i] !== !0 && (o = a[0], c.unshift(a[1])); | |
2664 break | |
2665 } | |
2666 if (s !== !0) | |
2667 if (s && e["throws"]) t = s(t); | |
2668 else try { | |
2669 t = s(t) | |
2670 } catch (p) { | |
2671 return { | |
2672 state: "parsererror", | |
2673 error: s ? p : "No conversion from " + u + " to " + o | |
2674 } | |
2675 } | |
2676 } | |
2677 return { | |
2678 state: "success", | |
2679 data: t | |
2680 } | |
2681 } | |
2682 x.ajaxSetup({ | |
2683 accepts: { | |
2684 script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript" | |
2685 }, | |
2686 contents: { | |
2687 script: /(?:java|ecma)script/ | |
2688 }, | |
2689 converters: { | |
2690 "text script": function (e) { | |
2691 return x.globalEval(e), e | |
2692 } | |
2693 } | |
2694 }), x.ajaxPrefilter("script", function (e) { | |
2695 e.cache === undefined && (e.cache = !1), e.crossDomain && (e.type = "GET") | |
2696 }), x.ajaxTransport("script", function (e) { | |
2697 if (e.crossDomain) { | |
2698 var t, n; | |
2699 return { | |
2700 send: function (r, i) { | |
2701 t = x("<script>").prop({ | |
2702 async: !0, | |
2703 charset: e.scriptCharset, | |
2704 src: e.url | |
2705 }).on("load error", n = function (e) { | |
2706 t.remove(), n = null, e && i("error" === e.type ? 404 : 200, e.type) | |
2707 }), o.head.appendChild(t[0]) | |
2708 }, | |
2709 abort: function () { | |
2710 n && n() | |
2711 } | |
2712 } | |
2713 } | |
2714 }); | |
2715 var hn = [], | |
2716 dn = /(=)\?(?=&|$)|\?\?/; | |
2717 x.ajaxSetup({ | |
2718 jsonp: "callback", | |
2719 jsonpCallback: function () { | |
2720 var e = hn.pop() || x.expando + "_" + Yt++; | |
2721 return this[e] = !0, e | |
2722 } | |
2723 }), x.ajaxPrefilter("json jsonp", function (t, n, r) { | |
2724 var i, o, s, a = t.jsonp !== !1 && (dn.test(t.url) ? "url" : "string" == typeof t.data && !(t.contentType || "").indexOf("application/x-www-form-urlencoded") && dn.test(t.data) && "data"); | |
2725 return a || "jsonp" === t.dataTypes[0] ? (i = t.jsonpCallback = x.isFunction(t.jsonpCallback) ? t.jsonpCallback() : t.jsonpCallback, a ? t[a] = t[a].replace(dn, "$1" + i) : t.jsonp !== !1 && (t.url += (Vt.test(t.url) ? "&" : "?") + t.jsonp + "=" + i), t.converters["script json"] = function () { | |
2726 return s || x.error(i + " was not called"), s[0] | |
2727 }, t.dataTypes[0] = "json", o = e[i], e[i] = function () { | |
2728 s = arguments | |
2729 }, r.always(function () { | |
2730 e[i] = o, t[i] && (t.jsonpCallback = n.jsonpCallback, hn.push(i)), s && x.isFunction(o) && o(s[0]), s = o = undefined | |
2731 }), "script") : undefined | |
2732 }), x.ajaxSettings.xhr = function () { | |
2733 try { | |
2734 return new XMLHttpRequest | |
2735 } catch (e) {} | |
2736 }; | |
2737 var gn = x.ajaxSettings.xhr(), | |
2738 mn = { | |
2739 0: 200, | |
2740 1223: 204 | |
2741 }, yn = 0, | |
2742 vn = {}; | |
2743 e.ActiveXObject && x(e).on("unload", function () { | |
2744 for (var e in vn) vn[e](); | |
2745 vn = undefined | |
2746 }), x.support.cors = !! gn && "withCredentials" in gn, x.support.ajax = gn = !! gn, x.ajaxTransport(function (e) { | |
2747 var t; | |
2748 return x.support.cors || gn && !e.crossDomain ? { | |
2749 send: function (n, r) { | |
2750 var i, o, s = e.xhr(); | |
2751 if (s.open(e.type, e.url, e.async, e.username, e.password), e.xhrFields) | |
2752 for (i in e.xhrFields) s[i] = e.xhrFields[i]; | |
2753 e.mimeType && s.overrideMimeType && s.overrideMimeType(e.mimeType), e.crossDomain || n["X-Requested-With"] || (n["X-Requested-With"] = "XMLHttpRequest"); | |
2754 for (i in n) s.setRequestHeader(i, n[i]); | |
2755 t = function (e) { | |
2756 return function () { | |
2757 t && (delete vn[o], t = s.onload = s.onerror = null, "abort" === e ? s.abort() : "error" === e ? r(s.status || 404, s.statusText) : r(mn[s.status] || s.status, s.statusText, "string" == typeof s.responseText ? { | |
2758 text: s.responseText | |
2759 } : undefined, s.getAllResponseHeaders())) | |
2760 } | |
2761 }, s.onload = t(), s.onerror = t("error"), t = vn[o = yn++] = t("abort"), s.send(e.hasContent && e.data || null) | |
2762 }, | |
2763 abort: function () { | |
2764 t && t() | |
2765 } | |
2766 } : undefined | |
2767 }); | |
2768 var xn, bn, wn = /^(?:toggle|show|hide)$/, | |
2769 Tn = RegExp("^(?:([+-])=|)(" + b + ")([a-z%]*)$", "i"), | |
2770 Cn = /queueHooks$/, | |
2771 kn = [An], | |
2772 Nn = { | |
2773 "*": [ | |
2774 function (e, t) { | |
2775 var n = this.createTween(e, t), | |
2776 r = n.cur(), | |
2777 i = Tn.exec(t), | |
2778 o = i && i[3] || (x.cssNumber[e] ? "" : "px"), | |
2779 s = (x.cssNumber[e] || "px" !== o && +r) && Tn.exec(x.css(n.elem, e)), | |
2780 a = 1, | |
2781 u = 20; | |
2782 if (s && s[3] !== o) { | |
2783 o = o || s[3], i = i || [], s = +r || 1; | |
2784 do a = a || ".5", s /= a, x.style(n.elem, e, s + o); while (a !== (a = n.cur() / r) && 1 !== a && --u) | |
2785 } | |
2786 return i && (s = n.start = +s || +r || 0, n.unit = o, n.end = i[1] ? s + (i[1] + 1) * i[2] : +i[2]), n | |
2787 } | |
2788 ] | |
2789 }; | |
2790 | |
2791 function En() { | |
2792 return setTimeout(function () { | |
2793 xn = undefined | |
2794 }), xn = x.now() | |
2795 } | |
2796 | |
2797 function Sn(e, t, n) { | |
2798 var r, i = (Nn[t] || []).concat(Nn["*"]), | |
2799 o = 0, | |
2800 s = i.length; | |
2801 for (; s > o; o++) | |
2802 if (r = i[o].call(n, t, e)) return r | |
2803 } | |
2804 | |
2805 function jn(e, t, n) { | |
2806 var r, i, o = 0, | |
2807 s = kn.length, | |
2808 a = x.Deferred().always(function () { | |
2809 delete u.elem | |
2810 }), | |
2811 u = function () { | |
2812 if (i) return !1; | |
2813 var t = xn || En(), | |
2814 n = Math.max(0, l.startTime + l.duration - t), | |
2815 r = n / l.duration || 0, | |
2816 o = 1 - r, | |
2817 s = 0, | |
2818 u = l.tweens.length; | |
2819 for (; u > s; s++) l.tweens[s].run(o); | |
2820 return a.notifyWith(e, [l, o, n]), 1 > o && u ? n : (a.resolveWith(e, [l]), !1) | |
2821 }, l = a.promise({ | |
2822 elem: e, | |
2823 props: x.extend({}, t), | |
2824 opts: x.extend(!0, { | |
2825 specialEasing: {} | |
2826 }, n), | |
2827 originalProperties: t, | |
2828 originalOptions: n, | |
2829 startTime: xn || En(), | |
2830 duration: n.duration, | |
2831 tweens: [], | |
2832 createTween: function (t, n) { | |
2833 var r = x.Tween(e, l.opts, t, n, l.opts.specialEasing[t] || l.opts.easing); | |
2834 return l.tweens.push(r), r | |
2835 }, | |
2836 stop: function (t) { | |
2837 var n = 0, | |
2838 r = t ? l.tweens.length : 0; | |
2839 if (i) return this; | |
2840 for (i = !0; r > n; n++) l.tweens[n].run(1); | |
2841 return t ? a.resolveWith(e, [l, t]) : a.rejectWith(e, [l, t]), this | |
2842 } | |
2843 }), | |
2844 c = l.props; | |
2845 for (Dn(c, l.opts.specialEasing); s > o; o++) | |
2846 if (r = kn[o].call(l, e, c, l.opts)) return r; | |
2847 return x.map(c, Sn, l), x.isFunction(l.opts.start) && l.opts.start.call(e, l), x.fx.timer(x.extend(u, { | |
2848 elem: e, | |
2849 anim: l, | |
2850 queue: l.opts.queue | |
2851 })), l.progress(l.opts.progress).done(l.opts.done, l.opts.complete).fail(l.opts.fail).always(l.opts.always) | |
2852 } | |
2853 | |
2854 function Dn(e, t) { | |
2855 var n, r, i, o, s; | |
2856 for (n in e) | |
2857 if (r = x.camelCase(n), i = t[r], o = e[n], x.isArray(o) && (i = o[1], o = e[n] = o[0]), n !== r && (e[r] = o, delete e[n]), s = x.cssHooks[r], s && "expand" in s) { | |
2858 o = s.expand(o), delete e[r]; | |
2859 for (n in o) n in e || (e[n] = o[n], t[n] = i) | |
2860 } else t[r] = i | |
2861 } | |
2862 x.Animation = x.extend(jn, { | |
2863 tweener: function (e, t) { | |
2864 x.isFunction(e) ? (t = e, e = ["*"]) : e = e.split(" "); | |
2865 var n, r = 0, | |
2866 i = e.length; | |
2867 for (; i > r; r++) n = e[r], Nn[n] = Nn[n] || [], Nn[n].unshift(t) | |
2868 }, | |
2869 prefilter: function (e, t) { | |
2870 t ? kn.unshift(e) : kn.push(e) | |
2871 } | |
2872 }); | |
2873 | |
2874 function An(e, t, n) { | |
2875 var r, i, o, s, a, u, l = this, | |
2876 c = {}, p = e.style, | |
2877 f = e.nodeType && Lt(e), | |
2878 h = H.get(e, "fxshow"); | |
2879 n.queue || (a = x._queueHooks(e, "fx"), null == a.unqueued && (a.unqueued = 0, u = a.empty.fire, a.empty.fire = function () { | |
2880 a.unqueued || u() | |
2881 }), a.unqueued++, l.always(function () { | |
2882 l.always(function () { | |
2883 a.unqueued--, x.queue(e, "fx").length || a.empty.fire() | |
2884 }) | |
2885 })), 1 === e.nodeType && ("height" in t || "width" in t) && (n.overflow = [p.overflow, p.overflowX, p.overflowY], "inline" === x.css(e, "display") && "none" === x.css(e, "float") && (p.display = "inline-block")), n.overflow && (p.overflow = "hidden", l.always(function () { | |
2886 p.overflow = n.overflow[0], p.overflowX = n.overflow[1], p.overflowY = n.overflow[2] | |
2887 })); | |
2888 for (r in t) | |
2889 if (i = t[r], wn.exec(i)) { | |
2890 if (delete t[r], o = o || "toggle" === i, i === (f ? "hide" : "show")) { | |
2891 if ("show" !== i || !h || h[r] === undefined) continue; | |
2892 f = !0 | |
2893 } | |
2894 c[r] = h && h[r] || x.style(e, r) | |
2895 } | |
2896 if (!x.isEmptyObject(c)) { | |
2897 h ? "hidden" in h && (f = h.hidden) : h = H.access(e, "fxshow", {}), o && (h.hidden = !f), f ? x(e).show() : l.done(function () { | |
2898 x(e).hide() | |
2899 }), l.done(function () { | |
2900 var t; | |
2901 H.remove(e, "fxshow"); | |
2902 for (t in c) x.style(e, t, c[t]) | |
2903 }); | |
2904 for (r in c) s = Sn(f ? h[r] : 0, r, l), r in h || (h[r] = s.start, f && (s.end = s.start, s.start = "width" === r || "height" === r ? 1 : 0)) | |
2905 } | |
2906 } | |
2907 | |
2908 function Ln(e, t, n, r, i) { | |
2909 return new Ln.prototype.init(e, t, n, r, i) | |
2910 } | |
2911 x.Tween = Ln, Ln.prototype = { | |
2912 constructor: Ln, | |
2913 init: function (e, t, n, r, i, o) { | |
2914 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 || (x.cssNumber[n] ? "" : "px") | |
2915 }, | |
2916 cur: function () { | |
2917 var e = Ln.propHooks[this.prop]; | |
2918 return e && e.get ? e.get(this) : Ln.propHooks._default.get(this) | |
2919 }, | |
2920 run: function (e) { | |
2921 var t, n = Ln.propHooks[this.prop]; | |
2922 return this.pos = t = this.options.duration ? x.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) : Ln.propHooks._default.set(this), this | |
2923 } | |
2924 }, Ln.prototype.init.prototype = Ln.prototype, Ln.propHooks = { | |
2925 _default: { | |
2926 get: function (e) { | |
2927 var t; | |
2928 return null == e.elem[e.prop] || e.elem.style && null != e.elem.style[e.prop] ? (t = x.css(e.elem, e.prop, ""), t && "auto" !== t ? t : 0) : e.elem[e.prop] | |
2929 }, | |
2930 set: function (e) { | |
2931 x.fx.step[e.prop] ? x.fx.step[e.prop](e) : e.elem.style && (null != e.elem.style[x.cssProps[e.prop]] || x.cssHooks[e.prop]) ? x.style(e.elem, e.prop, e.now + e.unit) : e.elem[e.prop] = e.now | |
2932 } | |
2933 } | |
2934 }, Ln.propHooks.scrollTop = Ln.propHooks.scrollLeft = { | |
2935 set: function (e) { | |
2936 e.elem.nodeType && e.elem.parentNode && (e.elem[e.prop] = e.now) | |
2937 } | |
2938 }, x.each(["toggle", "show", "hide"], function (e, t) { | |
2939 var n = x.fn[t]; | |
2940 x.fn[t] = function (e, r, i) { | |
2941 return null == e || "boolean" == typeof e ? n.apply(this, arguments) : this.animate(Hn(t, !0), e, r, i) | |
2942 } | |
2943 }), x.fn.extend({ | |
2944 fadeTo: function (e, t, n, r) { | |
2945 return this.filter(Lt).css("opacity", 0).show().end().animate({ | |
2946 opacity: t | |
2947 }, e, n, r) | |
2948 }, | |
2949 animate: function (e, t, n, r) { | |
2950 var i = x.isEmptyObject(e), | |
2951 o = x.speed(t, n, r), | |
2952 s = function () { | |
2953 var t = jn(this, x.extend({}, e), o); | |
2954 (i || H.get(this, "finish")) && t.stop(!0) | |
2955 }; | |
2956 return s.finish = s, i || o.queue === !1 ? this.each(s) : this.queue(o.queue, s) | |
2957 }, | |
2958 stop: function (e, t, n) { | |
2959 var r = function (e) { | |
2960 var t = e.stop; | |
2961 delete e.stop, t(n) | |
2962 }; | |
2963 return "string" != typeof e && (n = t, t = e, e = undefined), t && e !== !1 && this.queue(e || "fx", []), this.each(function () { | |
2964 var t = !0, | |
2965 i = null != e && e + "queueHooks", | |
2966 o = x.timers, | |
2967 s = H.get(this); | |
2968 if (i) s[i] && s[i].stop && r(s[i]); | |
2969 else | |
2970 for (i in s) s[i] && s[i].stop && Cn.test(i) && r(s[i]); | |
2971 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)); | |
2972 (t || !n) && x.dequeue(this, e) | |
2973 }) | |
2974 }, | |
2975 finish: function (e) { | |
2976 return e !== !1 && (e = e || "fx"), this.each(function () { | |
2977 var t, n = H.get(this), | |
2978 r = n[e + "queue"], | |
2979 i = n[e + "queueHooks"], | |
2980 o = x.timers, | |
2981 s = r ? r.length : 0; | |
2982 for (n.finish = !0, x.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)); | |
2983 for (t = 0; s > t; t++) r[t] && r[t].finish && r[t].finish.call(this); | |
2984 delete n.finish | |
2985 }) | |
2986 } | |
2987 }); | |
2988 | |
2989 function Hn(e, t) { | |
2990 var n, r = { | |
2991 height: e | |
2992 }, i = 0; | |
2993 for (t = t ? 1 : 0; 4 > i; i += 2 - t) n = jt[i], r["margin" + n] = r["padding" + n] = e; | |
2994 return t && (r.opacity = r.width = e), r | |
2995 } | |
2996 x.each({ | |
2997 slideDown: Hn("show"), | |
2998 slideUp: Hn("hide"), | |
2999 slideToggle: Hn("toggle"), | |
3000 fadeIn: { | |
3001 opacity: "show" | |
3002 }, | |
3003 fadeOut: { | |
3004 opacity: "hide" | |
3005 }, | |
3006 fadeToggle: { | |
3007 opacity: "toggle" | |
3008 } | |
3009 }, function (e, t) { | |
3010 x.fn[e] = function (e, n, r) { | |
3011 return this.animate(t, e, n, r) | |
3012 } | |
3013 }), x.speed = function (e, t, n) { | |
3014 var r = e && "object" == typeof e ? x.extend({}, e) : { | |
3015 complete: n || !n && t || x.isFunction(e) && e, | |
3016 duration: e, | |
3017 easing: n && t || t && !x.isFunction(t) && t | |
3018 }; | |
3019 return r.duration = x.fx.off ? 0 : "number" == typeof r.duration ? r.duration : r.duration in x.fx.speeds ? x.fx.speeds[r.duration] : x.fx.speeds._default, (null == r.queue || r.queue === !0) && (r.queue = "fx"), r.old = r.complete, r.complete = function () { | |
3020 x.isFunction(r.old) && r.old.call(this), r.queue && x.dequeue(this, r.queue) | |
3021 }, r | |
3022 }, x.easing = { | |
3023 linear: function (e) { | |
3024 return e | |
3025 }, | |
3026 swing: function (e) { | |
3027 return .5 - Math.cos(e * Math.PI) / 2 | |
3028 } | |
3029 }, x.timers = [], x.fx = Ln.prototype.init, x.fx.tick = function () { | |
3030 var e, t = x.timers, | |
3031 n = 0; | |
3032 for (xn = x.now(); t.length > n; n++) e = t[n], e() || t[n] !== e || t.splice(n--, 1); | |
3033 t.length || x.fx.stop(), xn = undefined | |
3034 }, x.fx.timer = function (e) { | |
3035 e() && x.timers.push(e) && x.fx.start() | |
3036 }, x.fx.interval = 13, x.fx.start = function () { | |
3037 bn || (bn = setInterval(x.fx.tick, x.fx.interval)) | |
3038 }, x.fx.stop = function () { | |
3039 clearInterval(bn), bn = null | |
3040 }, x.fx.speeds = { | |
3041 slow: 600, | |
3042 fast: 200, | |
3043 _default: 400 | |
3044 }, x.fx.step = {}, x.expr && x.expr.filters && (x.expr.filters.animated = function (e) { | |
3045 return x.grep(x.timers, function (t) { | |
3046 return e === t.elem | |
3047 }).length | |
3048 }), x.fn.offset = function (e) { | |
3049 if (arguments.length) return e === undefined ? this : this.each(function (t) { | |
3050 x.offset.setOffset(this, e, t) | |
3051 }); | |
3052 var t, n, i = this[0], | |
3053 o = { | |
3054 top: 0, | |
3055 left: 0 | |
3056 }, s = i && i.ownerDocument; | |
3057 if (s) return t = s.documentElement, x.contains(t, i) ? (typeof i.getBoundingClientRect !== r && (o = i.getBoundingClientRect()), n = qn(s), { | |
3058 top: o.top + n.pageYOffset - t.clientTop, | |
3059 left: o.left + n.pageXOffset - t.clientLeft | |
3060 }) : o | |
3061 }, x.offset = { | |
3062 setOffset: function (e, t, n) { | |
3063 var r, i, o, s, a, u, l, c = x.css(e, "position"), | |
3064 p = x(e), | |
3065 f = {}; | |
3066 "static" === c && (e.style.position = "relative"), a = p.offset(), o = x.css(e, "top"), u = x.css(e, "left"), l = ("absolute" === c || "fixed" === c) && (o + u).indexOf("auto") > -1, l ? (r = p.position(), s = r.top, i = r.left) : (s = parseFloat(o) || 0, i = parseFloat(u) || 0), x.isFunction(t) && (t = t.call(e, n, a)), null != t.top && (f.top = t.top - a.top + s), null != t.left && (f.left = t.left - a.left + i), "using" in t ? t.using.call(e, f) : p.css(f) | |
3067 } | |
3068 }, x.fn.extend({ | |
3069 position: function () { | |
3070 if (this[0]) { | |
3071 var e, t, n = this[0], | |
3072 r = { | |
3073 top: 0, | |
3074 left: 0 | |
3075 }; | |
3076 return "fixed" === x.css(n, "position") ? t = n.getBoundingClientRect() : (e = this.offsetParent(), t = this.offset(), x.nodeName(e[0], "html") || (r = e.offset()), r.top += x.css(e[0], "borderTopWidth", !0), r.left += x.css(e[0], "borderLeftWidth", !0)), { | |
3077 top: t.top - r.top - x.css(n, "marginTop", !0), | |
3078 left: t.left - r.left - x.css(n, "marginLeft", !0) | |
3079 } | |
3080 } | |
3081 }, | |
3082 offsetParent: function () { | |
3083 return this.map(function () { | |
3084 var e = this.offsetParent || s; | |
3085 while (e && !x.nodeName(e, "html") && "static" === x.css(e, "position")) e = e.offsetParent; | |
3086 return e || s | |
3087 }) | |
3088 } | |
3089 }), x.each({ | |
3090 scrollLeft: "pageXOffset", | |
3091 scrollTop: "pageYOffset" | |
3092 }, function (t, n) { | |
3093 var r = "pageYOffset" === n; | |
3094 x.fn[t] = function (i) { | |
3095 return x.access(this, function (t, i, o) { | |
3096 var s = qn(t); | |
3097 return o === undefined ? s ? s[n] : t[i] : (s ? s.scrollTo(r ? e.pageXOffset : o, r ? o : e.pageYOffset) : t[i] = o, undefined) | |
3098 }, t, i, arguments.length, null) | |
3099 } | |
3100 }); | |
3101 | |
3102 function qn(e) { | |
3103 return x.isWindow(e) ? e : 9 === e.nodeType && e.defaultView | |
3104 } | |
3105 x.each({ | |
3106 Height: "height", | |
3107 Width: "width" | |
3108 }, function (e, t) { | |
3109 x.each({ | |
3110 padding: "inner" + e, | |
3111 content: t, | |
3112 "": "outer" + e | |
3113 }, function (n, r) { | |
3114 x.fn[r] = function (r, i) { | |
3115 var o = arguments.length && (n || "boolean" != typeof r), | |
3116 s = n || (r === !0 || i === !0 ? "margin" : "border"); | |
3117 return x.access(this, function (t, n, r) { | |
3118 var i; | |
3119 return x.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])) : r === undefined ? x.css(t, n, s) : x.style(t, n, r, s) | |
3120 }, t, o ? r : undefined, o, null) | |
3121 } | |
3122 }) | |
3123 }), x.fn.size = function () { | |
3124 return this.length | |
3125 }, x.fn.andSelf = x.fn.addBack, "object" == typeof module && module && "object" == typeof module.exports ? module.exports = x : "function" == typeof define && define.amd && define("jquery", [], function () { | |
3126 return x | |
3127 }), "object" == typeof e && "object" == typeof e.document && (e.jQuery = e.$ = x) | |
3128 })(window); |