PageSourceSearch

https://www.hemmingen.de/fileadmin/templates/js/libs/jquery/jquery-3.3.1_edited.js

js hemmingen.de collected 2026-10-02 16:47:21 UTC 271,575 bytes, 10,350 lines download raw bytes

1/**
2 * What have you Done Saninn!!!!?????
3 * 
4 * Ruhig, ruhig... smell the flower and blow the candle.
5 * jQuery dist does not have any export module to use with es2015 modules (in development), so
6 * what I did was completely removed the first self called function that looks if we are in a node environment
7 * and then save and export the second self called function as a "seudo" constructor : jQuerySeudoConstructor, 
8 * 
9 * Of course, I also export an instance of jQuery as jQuery and $.
10 * 
11 * Usage:
12 * import { $ } from "../libs/jquery/jquery-3.3.1_edited.js";
13 * or
14 * import { jQuery } from "../libs/jquery/jquery-3.3.1_edited.js"; 
15 * 
16 * TODO: Look if a new version of jQuery has already an exported module because I do not know if every import
17 * will create some kind of memory leak and I do not have time for check this.
18 * 
19 */
20
21//@ts-ignore
22export function jQuerySeudoConstructor 
vendor: 41,730 bytes, lines 22-1571
22( window, noGlobal ) {
23
24// Edge <= 12 - 13+, Firefox <=18 - 45+, IE 10 - 11, Safari 5.1 - 9+, iOS 6 - 9.1
25// throw exceptions when non-strict code (e.g., ASP.NET 4.5) accesses strict mode
26// arguments.callee.caller (trac-13335). But as of jQuery 3.0 (2016), strict mode should be common
27// enough that all such attempts are guarded in a try block.
28"use strict";
29
30var arr = [];
31
32var document = window.document;
33
34var getProto = Object.getPrototypeOf;
35
36var slice = arr.slice;
37
38var concat = arr.concat;
39
40var push = arr.push;
41
42var indexOf = arr.indexOf;
43
44var class2type = {};
45
46var toString = class2type.toString;
47
48var hasOwn = class2type.hasOwnProperty;
49
50var fnToString = hasOwn.toString;
51
52var ObjectFunctionString = fnToString.call( Object );
53
54var support = {};
55
56var isFunction = function isFunction( obj ) {
57
58      // Support: Chrome <=57, Firefox <=52
59      // In some browsers, typeof returns "function" for HTML <object> elements
60      // (i.e., `typeof document.createElement( "object" ) === "function"`).
61      // We don't want to classify *any* DOM node as a function.
62      return typeof obj === "function" && typeof obj.nodeType !== "number";
63  };
64
65
66var isWindow = function isWindow( obj ) {
67		return obj != null && obj === obj.window;
68	};
69
70
71
72
73	var preservedScriptAttributes = {
74		type: true,
75		src: true,
76		noModule: true
77	};
78
79	function DOMEval( code, doc, node ) {
80		doc = doc || document;
81
82		var i,
83			script = doc.createElement( "script" );
84
85		script.text = code;
86		if ( node ) {
87			for ( i in preservedScriptAttributes ) {
88				if ( node[ i ] ) {
89					script[ i ] = node[ i ];
90				}
91			}
92		}
93		doc.head.appendChild( script ).parentNode.removeChild( script );
94	}
95
96
97function toType( obj ) {
98	if ( obj == null ) {
99		return obj + "";
100	}
101
102	// Support: Android <=2.3 only (functionish RegExp)
103	return typeof obj === "object" || typeof obj === "function" ?
104		class2type[ toString.call( obj ) ] || "object" :
105		typeof obj;
106}
107/* global Symbol */
108// Defining this global in .eslintrc.json would create a danger of using the global
109// unguarded in another place, it seems safer to define global only for this module
110
111
112
113var
114	version = "3.3.1",
115
116	// Define a local copy of jQuery
117	jQuery = function( selector, context ) {
118
119		// The jQuery object is actually just the init constructor 'enhanced'
120		// Need init if jQuery is called (just allow error to be thrown if not included)
121		return new jQuery.fn.init( selector, context );
122	},
123
124	// Support: Android <=4.0 only
125	// Make sure we trim BOM and NBSP
126	rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;
127
128jQuery.fn = jQuery.prototype = {
129
130	// The current version of jQuery being used
131	jquery: version,
132
133	constructor: jQuery,
134
135	// The default length of a jQuery object is 0
136	length: 0,
137
138	toArray: function() {
139		return slice.call( this );
140	},
141
142	// Get the Nth element in the matched element set OR
143	// Get the whole matched element set as a clean array
144	get: function( num ) {
145
146		// Return all the elements in a clean array
147		if ( num == null ) {
148			return slice.call( this );
149		}
150
151		// Return just the one element from the set
152		return num < 0 ? this[ num + this.length ] : this[ num ];
153	},
154
155	// Take an array of elements and push it onto the stack
156	// (returning the new matched element set)
157	pushStack: function( elems ) {
158
159		// Build a new jQuery matched element set
160		var ret = jQuery.merge( this.constructor(), elems );
161
162		// Add the old object onto the stack (as a reference)
163		ret.prevObject = this;
164
165		// Return the newly-formed element set
166		return ret;
167	},
168
169	// Execute a callback for every element in the matched set.
170	each: function( callback ) {
171		return jQuery.each( this, callback );
172	},
173
174	map: function( callback ) {
175		return this.pushStack( jQuery.map( this, function( elem, i ) {
176			return callback.call( elem, i, elem );
177		} ) );
178	},
179
180	slice: function() {
181		return this.pushStack( slice.apply( this, arguments ) );
182	},
183
184	first: function() {
185		return this.eq( 0 );
186	},
187
188	last: function() {
189		return this.eq( -1 );
190	},
191
192	eq: function( i ) {
193		var len = this.length,
194			j = +i + ( i < 0 ? len : 0 );
195		return this.pushStack( j >= 0 && j < len ? [ this[ j ] ] : [] );
196	},
197
198	end: function() {
199		return this.prevObject || this.constructor();
200	},
201
202	// For internal use only.
203	// Behaves like an Array's method, not like a jQuery method.
204	push: push,
205	sort: arr.sort,
206	splice: arr.splice
207};
208
209jQuery.extend = jQuery.fn.extend = function() {
210	var options, name, src, copy, copyIsArray, clone,
211		target = arguments[ 0 ] || {},
212		i = 1,
213		length = arguments.length,
214		deep = false;
215
216	// Handle a deep copy situation
217	if ( typeof target === "boolean" ) {
218		deep = target;
219
220		// Skip the boolean and the target
221		target = arguments[ i ] || {};
222		i++;
223	}
224
225	// Handle case when target is a string or something (possible in deep copy)
226	if ( typeof target !== "object" && !isFunction( target ) ) {
227		target = {};
228	}
229
230	// Extend jQuery itself if only one argument is passed
231	if ( i === length ) {
232		target = this;
233		i--;
234	}
235
236	for ( ; i < length; i++ ) {
237
238		// Only deal with non-null/undefined values
239		if ( ( options = arguments[ i ] ) != null ) {
240
241			// Extend the base object
242			for ( name in options ) {
243				src = target[ name ];
244				copy = options[ name ];
245
246				// Prevent never-ending loop
247				if ( target === copy ) {
248					continue;
249				}
250
251				// Recurse if we're merging plain objects or arrays
252				if ( deep && copy && ( jQuery.isPlainObject( copy ) ||
253					( copyIsArray = Array.isArray( copy ) ) ) ) {
254
255					if ( copyIsArray ) {
256						copyIsArray = false;
257						clone = src && Array.isArray( src ) ? src : [];
258
259					} else {
260						clone = src && jQuery.isPlainObject( src ) ? src : {};
261					}
262
263					// Never move original objects, clone them
264					target[ name ] = jQuery.extend( deep, clone, copy );
265
266				// Don't bring in undefined values
267				} else if ( copy !== undefined ) {
268					target[ name ] = copy;
269				}
270			}
271		}
272	}
273
274	// Return the modified object
275	return target;
276};
277
278jQuery.extend( {
279
280	// Unique for each copy of jQuery on the page
281	expando: "jQuery" + ( version + Math.random() ).replace( /\D/g, "" ),
282
283	// Assume jQuery is ready without the ready module
284	isReady: true,
285
286	error: function( msg ) {
287		throw new Error( msg );
288	},
289
290	noop: function() {},
291
292	isPlainObject: function( obj ) {
293		var proto, Ctor;
294
295		// Detect obvious negatives
296		// Use toString instead of jQuery.type to catch host objects
297		if ( !obj || toString.call( obj ) !== "[object Object]" ) {
298			return false;
299		}
300
301		proto = getProto( obj );
302
303		// Objects with no prototype (e.g., `Object.create( null )`) are plain
304		if ( !proto ) {
305			return true;
306		}
307
308		// Objects with prototype are plain iff they were constructed by a global Object function
309		Ctor = hasOwn.call( proto, "constructor" ) && proto.constructor;
310		return typeof Ctor === "function" && fnToString.call( Ctor ) === ObjectFunctionString;
311	},
312
313	isEmptyObject: function( obj ) {
314
315		/* eslint-disable no-unused-vars */
316		// See https://github.com/eslint/eslint/issues/6125
317		var name;
318
319		for ( name in obj ) {
320			return false;
321		}
322		return true;
323	},
324
325	// Evaluates a script in a global context
326	globalEval: function( code ) {
327		DOMEval( code );
328	},
329
330	each: function( obj, callback ) {
331		var length, i = 0;
332
333		if ( isArrayLike( obj ) ) {
334			length = obj.length;
335			for ( ; i < length; i++ ) {
336				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
337					break;
338				}
339			}
340		} else {
341			for ( i in obj ) {
342				if ( callback.call( obj[ i ], i, obj[ i ] ) === false ) {
343					break;
344				}
345			}
346		}
347
348		return obj;
349	},
350
351	// Support: Android <=4.0 only
352	trim: function( text ) {
353		return text == null ?
354			"" :
355			( text + "" ).replace( rtrim, "" );
356	},
357
358	// results is for internal usage only
359	makeArray: function( arr, results ) {
360		var ret = results || [];
361
362		if ( arr != null ) {
363			if ( isArrayLike( Object( arr ) ) ) {
364				jQuery.merge( ret,
365					typeof arr === "string" ?
366					[ arr ] : arr
367				);
368			} else {
369				push.call( ret, arr );
370			}
371		}
372
373		return ret;
374	},
375
376	inArray: function( elem, arr, i ) {
377		return arr == null ? -1 : indexOf.call( arr, elem, i );
378	},
379
380	// Support: Android <=4.0 only, PhantomJS 1 only
381	// push.apply(_, arraylike) throws on ancient WebKit
382	merge: function( first, second ) {
383		var len = +second.length,
384			j = 0,
385			i = first.length;
386
387		for ( ; j < len; j++ ) {
388			first[ i++ ] = second[ j ];
389		}
390
391		first.length = i;
392
393		return first;
394	},
395
396	grep: function( elems, callback, invert ) {
397		var callbackInverse,
398			matches = [],
399			i = 0,
400			length = elems.length,
401			callbackExpect = !invert;
402
403		// Go through the array, only saving the items
404		// that pass the validator function
405		for ( ; i < length; i++ ) {
406			callbackInverse = !callback( elems[ i ], i );
407			if ( callbackInverse !== callbackExpect ) {
408				matches.push( elems[ i ] );
409			}
410		}
411
412		return matches;
413	},
414
415	// arg is for internal usage only
416	map: function( elems, callback, arg ) {
417		var length, value,
418			i = 0,
419			ret = [];
420
421		// Go through the array, translating each of the items to their new values
422		if ( isArrayLike( elems ) ) {
423			length = elems.length;
424			for ( ; i < length; i++ ) {
425				value = callback( elems[ i ], i, arg );
426
427				if ( value != null ) {
428					ret.push( value );
429				}
430			}
431
432		// Go through every key on the object,
433		} else {
434			for ( i in elems ) {
435				value = callback( elems[ i ], i, arg );
436
437				if ( value != null ) {
438					ret.push( value );
439				}
440			}
441		}
442
443		// Flatten any nested arrays
444		return concat.apply( [], ret );
445	},
446
447	// A global GUID counter for objects
448	guid: 1,
449
450	// jQuery.support is not used in Core but other projects attach their
451	// properties to it so it needs to exist.
452	support: support
453} );
454
455if ( typeof Symbol === "function" ) {
456	jQuery.fn[ Symbol.iterator ] = arr[ Symbol.iterator ];
457}
458
459// Populate the class2type map
460jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
461function( i, name ) {
462	class2type[ "[object " + name + "]" ] = name.toLowerCase();
463} );
464
465function isArrayLike( obj ) {
466
467	// Support: real iOS 8.2 only (not reproducible in simulator)
468	// `in` check used to prevent JIT error (gh-2145)
469	// hasOwn isn't used here due to false negatives
470	// regarding Nodelist length in IE
471	var length = !!obj && "length" in obj && obj.length,
472		type = toType( obj );
473
474	if ( isFunction( obj ) || isWindow( obj ) ) {
475		return false;
476	}
477
478	return type === "array" || length === 0 ||
479		typeof length === "number" && length > 0 && ( length - 1 ) in obj;
480}
481var Sizzle =
482/*!
483 * Sizzle CSS Selector Engine v2.3.3
484 * https://sizzlejs.com/
485 *
486 * Copyright jQuery Foundation and other contributors
487 * Released under the MIT license
488 * http://jquery.org/license
489 *
490 * Date: 2016-08-08
491 */
492(function( window ) {
493
494var i,
495	support,
496	Expr,
497	getText,
498	isXML,
499	tokenize,
500	compile,
501	select,
502	outermostContext,
503	sortInput,
504	hasDuplicate,
505
506	// Local document vars
507	setDocument,
508	document,
509	docElem,
510	documentIsHTML,
511	rbuggyQSA,
512	rbuggyMatches,
513	matches,
514	contains,
515
516	// Instance-specific data
517	expando = "sizzle" + 1 * new Date(),
518	preferredDoc = window.document,
519	dirruns = 0,
520	done = 0,
521	classCache = createCache(),
522	tokenCache = createCache(),
523	compilerCache = createCache(),
524	sortOrder = function( a, b ) {
525		if ( a === b ) {
526			hasDuplicate = true;
527		}
528		return 0;
529	},
530
531	// Instance methods
532	hasOwn = ({}).hasOwnProperty,
533	arr = [],
534	pop = arr.pop,
535	push_native = arr.push,
536	push = arr.push,
537	slice = arr.slice,
538	// Use a stripped-down indexOf as it's faster than native
539	// https://jsperf.com/thor-indexof-vs-for/5
540	indexOf = function( list, elem ) {
541		var i = 0,
542			len = list.length;
543		for ( ; i < len; i++ ) {
544			if ( list[i] === elem ) {
545				return i;
546			}
547		}
548		return -1;
549	},
550
551	booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
552
553	// Regular expressions
554
555	// http://www.w3.org/TR/css3-selectors/#whitespace
556	whitespace = "[\\x20\\t\\r\\n\\f]",
557
558	// http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
559	identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+",
560
561	// Attribute selectors: http://www.w3.org/TR/selectors/#attribute-selectors
562	attributes = "\\[" + whitespace + "*(" + identifier + ")(?:" + whitespace +
563		// Operator (capture 2)
564		"*([*^$|!~]?=)" + whitespace +
565		// "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]"
566		"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace +
567		"*\\]",
568
569	pseudos = ":(" + identifier + ")(?:\\((" +
570		// To reduce the number of selectors needing tokenize in the preFilter, prefer arguments:
571		// 1. quoted (capture 3; capture 4 or capture 5)
572		"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|" +
573		// 2. simple (capture 6)
574		"((?:\\\\.|[^\\\\()[\\]]|" + attributes + ")*)|" +
575		// 3. anything else (capture 2)
576		".*" +
577		")\\)|)",
578
579	// Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
580	rwhitespace = new RegExp( whitespace + "+", "g" ),
581	rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
582
583	rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
584	rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
585
586	rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*?)" + whitespace + "*\\]", "g" ),
587
588	rpseudo = new RegExp( pseudos ),
589	ridentifier = new RegExp( "^" + identifier + "$" ),
590
591	matchExpr = {
592		"ID": new RegExp( "^#(" + identifier + ")" ),
593		"CLASS": new RegExp( "^\\.(" + identifier + ")" ),
594		"TAG": new RegExp( "^(" + identifier + "|[*])" ),
595		"ATTR": new RegExp( "^" + attributes ),
596		"PSEUDO": new RegExp( "^" + pseudos ),
597		"CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
598			"*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
599			"*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
600		"bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
601		// For use in libraries implementing .is()
602		// We use this for POS matching in `select`
603		"needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
604			whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
605	},
606
607	rinputs = /^(?:input|select|textarea|button)$/i,
608	rheader = /^h\d$/i,
609
610	rnative = /^[^{]+\{\s*\[native \w/,
611
612	// Easily-parseable/retrievable ID or TAG or CLASS selectors
613	rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
614
615	rsibling = /[+~]/,
616
617	// CSS escapes
618	// http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
619	runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
620	funescape = function( _, escaped, escapedWhitespace ) {
621		var high = "0x" + escaped - 0x10000;
622		// NaN means non-codepoint
623		// Support: Firefox<24
624		// Workaround erroneous numeric interpretation of +"0x"
625		return high !== high || escapedWhitespace ?
626			escaped :
627			high < 0 ?
628				// BMP codepoint
629				String.fromCharCode( high + 0x10000 ) :
630				// Supplemental Plane codepoint (surrogate pair)
631				String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
632	},
633
634	// CSS string/identifier serialization
635	// https://drafts.csswg.org/cssom/#common-serializing-idioms
636	rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,
637	fcssescape = function( ch, asCodePoint ) {
638		if ( asCodePoint ) {
639
640			// U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
641			if ( ch === "\0" ) {
642				return "\uFFFD";
643			}
644
645			// Control characters and (dependent upon position) numbers get escaped as code points
646			return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
647		}
648
649		// Other potentially-special ASCII characters get backslash-escaped
650		return "\\" + ch;
651	},
652
653	// Used for iframes
654	// See setDocument()
655	// Removing the function wrapper causes a "Permission Denied"
656	// error in IE
657	unloadHandler = function() {
658		setDocument();
659	},
660
661	disabledAncestor = addCombinator(
662		function( elem ) {
663			return elem.disabled === true && ("form" in elem || "label" in elem);
664		},
665		{ dir: "parentNode", next: "legend" }
666	);
667
668// Optimize for push.apply( _, NodeList )
669try {
670	push.apply(
671		(arr = slice.call( preferredDoc.childNodes )),
672		preferredDoc.childNodes
673	);
674	// Support: Android<4.0
675	// Detect silently failing push.apply
676	arr[ preferredDoc.childNodes.length ].nodeType;
677} catch ( e ) {
678	push = { apply: arr.length ?
679
680		// Leverage slice if possible
681		function( target, els ) {
682			push_native.apply( target, slice.call(els) );
683		} :
684
685		// Support: IE<9
686		// Otherwise append directly
687		function( target, els ) {
688			var j = target.length,
689				i = 0;
690			// Can't trust NodeList.length
691			while ( (target[j++] = els[i++]) ) {}
692			target.length = j - 1;
693		}
694	};
695}
696
697function Sizzle( selector, context, results, seed ) {
698	var m, i, elem, nid, match, groups, newSelector,
699		newContext = context && context.ownerDocument,
700
701		// nodeType defaults to 9, since context defaults to document
702		nodeType = context ? context.nodeType : 9;
703
704	results = results || [];
705
706	// Return early from calls with invalid selector or context
707	if ( typeof selector !== "string" || !selector ||
708		nodeType !== 1 && nodeType !== 9 && nodeType !== 11 ) {
709
710		return results;
711	}
712
713	// Try to shortcut find operations (as opposed to filters) in HTML documents
714	if ( !seed ) {
715
716		if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
717			setDocument( context );
718		}
719		context = context || document;
720
721		if ( documentIsHTML ) {
722
723			// If the selector is sufficiently simple, try using a "get*By*" DOM method
724			// (excepting DocumentFragment context, where the methods don't exist)
725			if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) {
726
727				// ID selector
728				if ( (m = match[1]) ) {
729
730					// Document context
731					if ( nodeType === 9 ) {
732						if ( (elem = context.getElementById( m )) ) {
733
734							// Support: IE, Opera, Webkit
735							// TODO: identify versions
736							// getElementById can match elements by name instead of ID
737							if ( elem.id === m ) {
738								results.push( elem );
739								return results;
740							}
741						} else {
742							return results;
743						}
744
745					// Element context
746					} else {
747
748						// Support: IE, Opera, Webkit
749						// TODO: identify versions
750						// getElementById can match elements by name instead of ID
751						if ( newContext && (elem = newContext.getElementById( m )) &&
752							contains( context, elem ) &&
753							elem.id === m ) {
754
755							results.push( elem );
756							return results;
757						}
758					}
759
760				// Type selector
761				} else if ( match[2] ) {
762					push.apply( results, context.getElementsByTagName( selector ) );
763					return results;
764
765				// Class selector
766				} else if ( (m = match[3]) && support.getElementsByClassName &&
767					context.getElementsByClassName ) {
768
769					push.apply( results, context.getElementsByClassName( m ) );
770					return results;
771				}
772			}
773
774			// Take advantage of querySelectorAll
775			if ( support.qsa &&
776				!compilerCache[ selector + " " ] &&
777				(!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
778
779				if ( nodeType !== 1 ) {
780					newContext = context;
781					newSelector = selector;
782
783				// qSA looks outside Element context, which is not what we want
784				// Thanks to Andrew Dupont for this workaround technique
785				// Support: IE <=8
786				// Exclude object elements
787				} else if ( context.nodeName.toLowerCase() !== "object" ) {
788
789					// Capture the context ID, setting it first if necessary
790					if ( (nid = context.getAttribute( "id" )) ) {
791						nid = nid.replace( rcssescape, fcssescape );
792					} else {
793						context.setAttribute( "id", (nid = expando) );
794					}
795
796					// Prefix every selector in the list
797					groups = tokenize( selector );
798					i = groups.length;
799					while ( i-- ) {
800						groups[i] = "#" + nid + " " + toSelector( groups[i] );
801					}
802					newSelector = groups.join( "," );
803
804					// Expand context for sibling selectors
805					newContext = rsibling.test( selector ) && testContext( context.parentNode ) ||
806						context;
807				}
808
809				if ( newSelector ) {
810					try {
811						push.apply( results,
812							newContext.querySelectorAll( newSelector )
813						);
814						return results;
815					} catch ( qsaError ) {
816					} finally {
817						if ( nid === expando ) {
818							context.removeAttribute( "id" );
819						}
820					}
821				}
822			}
823		}
824	}
825
826	// All others
827	return select( selector.replace( rtrim, "$1" ), context, results, seed );
828}
829
830/**
831 * Create key-value caches of limited size
832 * @returns {function(string, object)} Returns the Object data after storing it on itself with
833 *	property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
834 *	deleting the oldest entry
835 */
836function createCache() {
837	var keys = [];
838
839	function cache( key, value ) {
840		// Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
841		if ( keys.push( key + " " ) > Expr.cacheLength ) {
842			// Only keep the most recent entries
843			delete cache[ keys.shift() ];
844		}
845		return (cache[ key + " " ] = value);
846	}
847	return cache;
848}
849
850/**
851 * Mark a function for special use by Sizzle
852 * @param {Function} fn The function to mark
853 */
854function markFunction( fn ) {
855	fn[ expando ] = true;
856	return fn;
857}
858
859/**
860 * Support testing using an element
861 * @param {Function} fn Passed the created element and returns a boolean result
862 */
863function assert( fn ) {
864	var el = document.createElement("fieldset");
865
866	try {
867		return !!fn( el );
868	} catch (e) {
869		return false;
870	} finally {
871		// Remove from its parent by default
872		if ( el.parentNode ) {
873			el.parentNode.removeChild( el );
874		}
875		// release memory in IE
876		el = null;
877	}
878}
879
880/**
881 * Adds the same handler for all of the specified attrs
882 * @param {String} attrs Pipe-separated list of attributes
883 * @param {Function} handler The method that will be applied
884 */
885function addHandle( attrs, handler ) {
886	var arr = attrs.split("|"),
887		i = arr.length;
888
889	while ( i-- ) {
890		Expr.attrHandle[ arr[i] ] = handler;
891	}
892}
893
894/**
895 * Checks document order of two siblings
896 * @param {Element} a
897 * @param {Element} b
898 * @returns {Number} Returns less than 0 if a precedes b, greater than 0 if a follows b
899 */
900function siblingCheck( a, b ) {
901	var cur = b && a,
902		diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
903			a.sourceIndex - b.sourceIndex;
904
905	// Use IE sourceIndex if available on both nodes
906	if ( diff ) {
907		return diff;
908	}
909
910	// Check if b follows a
911	if ( cur ) {
912		while ( (cur = cur.nextSibling) ) {
913			if ( cur === b ) {
914				return -1;
915			}
916		}
917	}
918
919	return a ? 1 : -1;
920}
921
922/**
923 * Returns a function to use in pseudos for input types
924 * @param {String} type
925 */
926function createInputPseudo( type ) {
927	return function( elem ) {
928		var name = elem.nodeName.toLowerCase();
929		return name === "input" && elem.type === type;
930	};
931}
932
933/**
934 * Returns a function to use in pseudos for buttons
935 * @param {String} type
936 */
937function createButtonPseudo( type ) {
938	return function( elem ) {
939		var name = elem.nodeName.toLowerCase();
940		return (name === "input" || name === "button") && elem.type === type;
941	};
942}
943
944/**
945 * Returns a function to use in pseudos for :enabled/:disabled
946 * @param {Boolean} disabled true for :disabled; false for :enabled
947 */
948function createDisabledPseudo( disabled ) {
949
950	// Known :disabled false positives: fieldset[disabled] > legend:nth-of-type(n+2) :can-disable
951	return function( elem ) {
952
953		// Only certain elements can match :enabled or :disabled
954		// https://html.spec.whatwg.org/multipage/scripting.html#selector-enabled
955		// https://html.spec.whatwg.org/multipage/scripting.html#selector-disabled
956		if ( "form" in elem ) {
957
958			// Check for inherited disabledness on relevant non-disabled elements:
959			// * listed form-associated elements in a disabled fieldset
960			//   https://html.spec.whatwg.org/multipage/forms.html#category-listed
961			//   https://html.spec.whatwg.org/multipage/forms.html#concept-fe-disabled
962			// * option elements in a disabled optgroup
963			//   https://html.spec.whatwg.org/multipage/forms.html#concept-option-disabled
964			// All such elements have a "form" property.
965			if ( elem.parentNode && elem.disabled === false ) {
966
967				// Option elements defer to a parent optgroup if present
968				if ( "label" in elem ) {
969					if ( "label" in elem.parentNode ) {
970						return elem.parentNode.disabled === disabled;
971					} else {
972						return elem.disabled === disabled;
973					}
974				}
975
976				// Support: IE 6 - 11
977				// Use the isDisabled shortcut property to check for disabled fieldset ancestors
978				return elem.isDisabled === disabled ||
979
980					// Where there is no isDisabled, check manually
981					/* jshint -W018 */
982					elem.isDisabled !== !disabled &&
983						disabledAncestor( elem ) === disabled;
984			}
985
986			return elem.disabled === disabled;
987
988		// Try to winnow out elements that can't be disabled before trusting the disabled property.
989		// Some victims get caught in our net (label, legend, menu, track), but it shouldn't
990		// even exist on them, let alone have a boolean value.
991		} else if ( "label" in elem ) {
992			return elem.disabled === disabled;
993		}
994
995		// Remaining elements are neither :enabled nor :disabled
996		return false;
997	};
998}
999
1000/**
1001 * Returns a function to use in pseudos for positionals
1002 * @param {Function} fn
1003 */
1004function createPositionalPseudo( fn ) {
1005	return markFunction(function( argument ) {
1006		argument = +argument;
1007		return markFunction(function( seed, matches ) {
1008			var j,
1009				matchIndexes = fn( [], seed.length, argument ),
1010				i = matchIndexes.length;
1011
1012			// Match elements found at the specified indexes
1013			while ( i-- ) {
1014				if ( seed[ (j = matchIndexes[i]) ] ) {
1015					seed[j] = !(matches[j] = seed[j]);
1016				}
1017			}
1018		});
1019	});
1020}
1021
1022/**
1023 * Checks a node for validity as a Sizzle context
1024 * @param {Element|Object=} context
1025 * @returns {Element|Object|Boolean} The input node if acceptable, otherwise a falsy value
1026 */
1027function testContext( context ) {
1028	return context && typeof context.getElementsByTagName !== "undefined" && context;
1029}
1030
1031// Expose support vars for convenience
1032support = Sizzle.support = {};
1033
1034/**
1035 * Detects XML nodes
1036 * @param {Element|Object} elem An element or a document
1037 * @returns {Boolean} True iff elem is a non-HTML XML node
1038 */
1039isXML = Sizzle.isXML = function( elem ) {
1040	// documentElement is verified for cases where it doesn't yet exist
1041	// (such as loading iframes in IE - #4833)
1042	var documentElement = elem && (elem.ownerDocument || elem).documentElement;
1043	return documentElement ? documentElement.nodeName !== "HTML" : false;
1044};
1045
1046/**
1047 * Sets document-related variables once based on the current document
1048 * @param {Element|Object} [doc] An element or document object to use to set the document
1049 * @returns {Object} Returns the current document
1050 */
1051setDocument = Sizzle.setDocument = function( node ) {
1052	var hasCompare, subWindow,
1053		doc = node ? node.ownerDocument || node : preferredDoc;
1054
1055	// Return early if doc is invalid or already selected
1056	if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
1057		return document;
1058	}
1059
1060	// Update global variables
1061	document = doc;
1062	docElem = document.documentElement;
1063	documentIsHTML = !isXML( document );
1064
1065	// Support: IE 9-11, Edge
1066	// Accessing iframe documents after unload throws "permission denied" errors (jQuery #13936)
1067	if ( preferredDoc !== document &&
1068		(subWindow = document.defaultView) && subWindow.top !== subWindow ) {
1069
1070		// Support: IE 11, Edge
1071		if ( subWindow.addEventListener ) {
1072			subWindow.addEventListener( "unload", unloadHandler, false );
1073
1074		// Support: IE 9 - 10 only
1075		} else if ( subWindow.attachEvent ) {
1076			subWindow.attachEvent( "onunload", unloadHandler );
1077		}
1078	}
1079
1080	/* Attributes
1081	---------------------------------------------------------------------- */
1082
1083	// Support: IE<8
1084	// Verify that getAttribute really returns attributes and not properties
1085	// (excepting IE8 booleans)
1086	support.attributes = assert(function( el ) {
1087		el.className = "i";
1088		return !el.getAttribute("className");
1089	});
1090
1091	/* getElement(s)By*
1092	---------------------------------------------------------------------- */
1093
1094	// Check if getElementsByTagName("*") returns only elements
1095	support.getElementsByTagName = assert(function( el ) {
1096		el.appendChild( document.createComment("") );
1097		return !el.getElementsByTagName("*").length;
1098	});
1099
1100	// Support: IE<9
1101	support.getElementsByClassName = rnative.test( document.getElementsByClassName );
1102
1103	// Support: IE<10
1104	// Check if getElementById returns elements by name
1105	// The broken getElementById methods don't pick up programmatically-set names,
1106	// so use a roundabout getElementsByName test
1107	support.getById = assert(function( el ) {
1108		docElem.appendChild( el ).id = expando;
1109		return !document.getElementsByName || !document.getElementsByName( expando ).length;
1110	});
1111
1112	// ID filter and find
1113	if ( support.getById ) {
1114		Expr.filter["ID"] = function( id ) {
1115			var attrId = id.replace( runescape, funescape );
1116			return function( elem ) {
1117				return elem.getAttribute("id") === attrId;
1118			};
1119		};
1120		Expr.find["ID"] = function( id, context ) {
1121			if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
1122				var elem = context.getElementById( id );
1123				return elem ? [ elem ] : [];
1124			}
1125		};
1126	} else {
1127		Expr.filter["ID"] =  function( id ) {
1128			var attrId = id.replace( runescape, funescape );
1129			return function( elem ) {
1130				var node = typeof elem.getAttributeNode !== "undefined" &&
1131					elem.getAttributeNode("id");
1132				return node && node.value === attrId;
1133			};
1134		};
1135
1136		// Support: IE 6 - 7 only
1137		// getElementById is not reliable as a find shortcut
1138		Expr.find["ID"] = function( id, context ) {
1139			if ( typeof context.getElementById !== "undefined" && documentIsHTML ) {
1140				var node, i, elems,
1141					elem = context.getElementById( id );
1142
1143				if ( elem ) {
1144
1145					// Verify the id attribute
1146					node = elem.getAttributeNode("id");
1147					if ( node && node.value === id ) {
1148						return [ elem ];
1149					}
1150
1151					// Fall back on getElementsByName
1152					elems = context.getElementsByName( id );
1153					i = 0;
1154					while ( (elem = elems[i++]) ) {
1155						node = elem.getAttributeNode("id");
1156						if ( node && node.value === id ) {
1157							return [ elem ];
1158						}
1159					}
1160				}
1161
1162				return [];
1163			}
1164		};
1165	}
1166
1167	// Tag
1168	Expr.find["TAG"] = support.getElementsByTagName ?
1169		function( tag, context ) {
1170			if ( typeof context.getElementsByTagName !== "undefined" ) {
1171				return context.getElementsByTagName( tag );
1172
1173			// DocumentFragment nodes don't have gEBTN
1174			} else if ( support.qsa ) {
1175				return context.querySelectorAll( tag );
1176			}
1177		} :
1178
1179		function( tag, context ) {
1180			var elem,
1181				tmp = [],
1182				i = 0,
1183				// By happy coincidence, a (broken) gEBTN appears on DocumentFragment nodes too
1184				results = context.getElementsByTagName( tag );
1185
1186			// Filter out possible comments
1187			if ( tag === "*" ) {
1188				while ( (elem = results[i++]) ) {
1189					if ( elem.nodeType === 1 ) {
1190						tmp.push( elem );
1191					}
1192				}
1193
1194				return tmp;
1195			}
1196			return results;
1197		};
1198
1199	// Class
1200	Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
1201		if ( typeof context.getElementsByClassName !== "undefined" && documentIsHTML ) {
1202			return context.getElementsByClassName( className );
1203		}
1204	};
1205
1206	/* QSA/matchesSelector
1207	---------------------------------------------------------------------- */
1208
1209	// QSA and matchesSelector support
1210
1211	// matchesSelector(:active) reports false when true (IE9/Opera 11.5)
1212	rbuggyMatches = [];
1213
1214	// qSa(:focus) reports false when true (Chrome 21)
1215	// We allow this because of a bug in IE8/9 that throws an error
1216	// whenever `document.activeElement` is accessed on an iframe
1217	// So, we allow :focus to pass through QSA all the time to avoid the IE error
1218	// See https://bugs.jquery.com/ticket/13378
1219	rbuggyQSA = [];
1220
1221	if ( (support.qsa = rnative.test( document.querySelectorAll )) ) {
1222		// Build QSA regex
1223		// Regex strategy adopted from Diego Perini
1224		assert(function( el ) {
1225			// Select is set to empty string on purpose
1226			// This is to test IE's treatment of not explicitly
1227			// setting a boolean content attribute,
1228			// since its presence should be enough
1229			// https://bugs.jquery.com/ticket/12359
1230			docElem.appendChild( el ).innerHTML = "<a id='" + expando + "'></a>" +
1231				"<select id='" + expando + "-\r\\' msallowcapture=''>" +
1232				"<option selected=''></option></select>";
1233
1234			// Support: IE8, Opera 11-12.16
1235			// Nothing should be selected when empty strings follow ^= or $= or *=
1236			// The test attribute must be unknown in Opera but "safe" for WinRT
1237			// https://msdn.microsoft.com/en-us/library/ie/hh465388.aspx#attribute_section
1238			if ( el.querySelectorAll("[msallowcapture^='']").length ) {
1239				rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
1240			}
1241
1242			// Support: IE8
1243			// Boolean attributes and "value" are not treated correctly
1244			if ( !el.querySelectorAll("[selected]").length ) {
1245				rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
1246			}
1247
1248			// Support: Chrome<29, Android<4.4, Safari<7.0+, iOS<7.0+, PhantomJS<1.9.8+
1249			if ( !el.querySelectorAll( "[id~=" + expando + "-]" ).length ) {
1250				rbuggyQSA.push("~=");
1251			}
1252
1253			// Webkit/Opera - :checked should return selected option elements
1254			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
1255			// IE8 throws error here and will not see later tests
1256			if ( !el.querySelectorAll(":checked").length ) {
1257				rbuggyQSA.push(":checked");
1258			}
1259
1260			// Support: Safari 8+, iOS 8+
1261			// https://bugs.webkit.org/show_bug.cgi?id=136851
1262			// In-page `selector#id sibling-combinator selector` fails
1263			if ( !el.querySelectorAll( "a#" + expando + "+*" ).length ) {
1264				rbuggyQSA.push(".#.+[+~]");
1265			}
1266		});
1267
1268		assert(function( el ) {
1269			el.innerHTML = "<a href='' disabled='disabled'></a>" +
1270				"<select disabled='disabled'><option/></select>";
1271
1272			// Support: Windows 8 Native Apps
1273			// The type and name attributes are restricted during .innerHTML assignment
1274			var input = document.createElement("input");
1275			input.setAttribute( "type", "hidden" );
1276			el.appendChild( input ).setAttribute( "name", "D" );
1277
1278			// Support: IE8
1279			// Enforce case-sensitivity of name attribute
1280			if ( el.querySelectorAll("[name=d]").length ) {
1281				rbuggyQSA.push( "name" + whitespace + "*[*^$|!~]?=" );
1282			}
1283
1284			// FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
1285			// IE8 throws error here and will not see later tests
1286			if ( el.querySelectorAll(":enabled").length !== 2 ) {
1287				rbuggyQSA.push( ":enabled", ":disabled" );
1288			}
1289
1290			// Support: IE9-11+
1291			// IE's :disabled selector does not pick up the children of disabled fieldsets
1292			docElem.appendChild( el ).disabled = true;
1293			if ( el.querySelectorAll(":disabled").length !== 2 ) {
1294				rbuggyQSA.push( ":enabled", ":disabled" );
1295			}
1296
1297			// Opera 10-11 does not throw on post-comma invalid pseudos
1298			el.querySelectorAll("*,:x");
1299			rbuggyQSA.push(",.*:");
1300		});
1301	}
1302
1303	if ( (support.matchesSelector = rnative.test( (matches = docElem.matches ||
1304		docElem.webkitMatchesSelector ||
1305		docElem.mozMatchesSelector ||
1306		docElem.oMatchesSelector ||
1307		docElem.msMatchesSelector) )) ) {
1308
1309		assert(function( el ) {
1310			// Check to see if it's possible to do matchesSelector
1311			// on a disconnected node (IE 9)
1312			support.disconnectedMatch = matches.call( el, "*" );
1313
1314			// This should fail with an exception
1315			// Gecko does not error, returns false instead
1316			matches.call( el, "[s!='']:x" );
1317			rbuggyMatches.push( "!=", pseudos );
1318		});
1319	}
1320
1321	rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
1322	rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
1323
1324	/* Contains
1325	---------------------------------------------------------------------- */
1326	hasCompare = rnative.test( docElem.compareDocumentPosition );
1327
1328	// Element contains another
1329	// Purposefully self-exclusive
1330	// As in, an element does not contain itself
1331	contains = hasCompare || rnative.test( docElem.contains ) ?
1332		function( a, b ) {
1333			var adown = a.nodeType === 9 ? a.documentElement : a,
1334				bup = b && b.parentNode;
1335			return a === bup || !!( bup && bup.nodeType === 1 && (
1336				adown.contains ?
1337					adown.contains( bup ) :
1338					a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
1339			));
1340		} :
1341		function( a, b ) {
1342			if ( b ) {
1343				while ( (b = b.parentNode) ) {
1344					if ( b === a ) {
1345						return true;
1346					}
1347				}
1348			}
1349			return false;
1350		};
1351
1352	/* Sorting
1353	---------------------------------------------------------------------- */
1354
1355	// Document order sorting
1356	sortOrder = hasCompare ?
1357	function( a, b ) {
1358
1359		// Flag for duplicate removal
1360		if ( a === b ) {
1361			hasDuplicate = true;
1362			return 0;
1363		}
1364
1365		// Sort on method existence if only one input has compareDocumentPosition
1366		var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
1367		if ( compare ) {
1368			return compare;
1369		}
1370
1371		// Calculate position if both inputs belong to the same document
1372		compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
1373			a.compareDocumentPosition( b ) :
1374
1375			// Otherwise we know they are disconnected
1376			1;
1377
1378		// Disconnected nodes
1379		if ( compare & 1 ||
1380			(!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
1381
1382			// Choose the first element that is related to our preferred document
1383			if ( a === document || a.ownerDocument === preferredDoc && contains(preferredDoc, a) ) {
1384				return -1;
1385			}
1386			if ( b === document || b.ownerDocument === preferredDoc && contains(preferredDoc, b) ) {
1387				return 1;
1388			}
1389
1390			// Maintain original order
1391			return sortInput ?
1392				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
1393				0;
1394		}
1395
1396		return compare & 4 ? -1 : 1;
1397	} :
1398	function( a, b ) {
1399		// Exit early if the nodes are identical
1400		if ( a === b ) {
1401			hasDuplicate = true;
1402			return 0;
1403		}
1404
1405		var cur,
1406			i = 0,
1407			aup = a.parentNode,
1408			bup = b.parentNode,
1409			ap = [ a ],
1410			bp = [ b ];
1411
1412		// Parentless nodes are either documents or disconnected
1413		if ( !aup || !bup ) {
1414			return a === document ? -1 :
1415				b === document ? 1 :
1416				aup ? -1 :
1417				bup ? 1 :
1418				sortInput ?
1419				( indexOf( sortInput, a ) - indexOf( sortInput, b ) ) :
1420				0;
1421
1422		// If the nodes are siblings, we can do a quick check
1423		} else if ( aup === bup ) {
1424			return siblingCheck( a, b );
1425		}
1426
1427		// Otherwise we need full lists of their ancestors for comparison
1428		cur = a;
1429		while ( (cur = cur.parentNode) ) {
1430			ap.unshift( cur );
1431		}
1432		cur = b;
1433		while ( (cur = cur.parentNode) ) {
1434			bp.unshift( cur );
1435		}
1436
1437		// Walk down the tree looking for a discrepancy
1438		while ( ap[i] === bp[i] ) {
1439			i++;
1440		}
1441
1442		return i ?
1443			// Do a sibling check if the nodes have a common ancestor
1444			siblingCheck( ap[i], bp[i] ) :
1445
1446			// Otherwise nodes in our document sort first
1447			ap[i] === preferredDoc ? -1 :
1448			bp[i] === preferredDoc ? 1 :
1449			0;
1450	};
1451
1452	return document;
1453};
1454
1455Sizzle.matches = function( expr, elements ) {
1456	return Sizzle( expr, null, null, elements );
1457};
1458
1459Sizzle.matchesSelector = function( elem, expr ) {
1460	// Set document vars if needed
1461	if ( ( elem.ownerDocument || elem ) !== document ) {
1462		setDocument( elem );
1463	}
1464
1465	// Make sure that attribute selectors are quoted
1466	expr = expr.replace( rattributeQuotes, "='$1']" );
1467
1468	if ( support.matchesSelector && documentIsHTML &&
1469		!compilerCache[ expr + " " ] &&
1470		( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
1471		( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
1472
1473		try {
1474			var ret = matches.call( elem, expr );
1475
1476			// IE 9's matchesSelector returns false on disconnected nodes
1477			if ( ret || support.disconnectedMatch ||
1478					// As well, disconnected nodes are said to be in a document
1479					// fragment in IE 9
1480					elem.document && elem.document.nodeType !== 11 ) {
1481				return ret;
1482			}
1483		} catch (e) {}
1484	}
1485
1486	return Sizzle( expr, document, null, [ elem ] ).length > 0;
1487};
1488
1489Sizzle.contains = function( context, elem ) {
1490	// Set document vars if needed
1491	if ( ( context.ownerDocument || context ) !== document ) {
1492		setDocument( context );
1493	}
1494	return contains( context, elem );
1495};
1496
1497Sizzle.attr = function( elem, name ) {
1498	// Set document vars if needed
1499	if ( ( elem.ownerDocument || elem ) !== document ) {
1500		setDocument( elem );
1501	}
1502
1503	var fn = Expr.attrHandle[ name.toLowerCase() ],
1504		// Don't get fooled by Object.prototype properties (jQuery #13807)
1505		val = fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
1506			fn( elem, name, !documentIsHTML ) :
1507			undefined;
1508
1509	return val !== undefined ?
1510		val :
1511		support.attributes || !documentIsHTML ?
1512			elem.getAttribute( name ) :
1513			(val = elem.getAttributeNode(name)) && val.specified ?
1514				val.value :
1515				null;
1516};
1517
1518Sizzle.escape = function( sel ) {
1519	return (sel + "").replace( rcssescape, fcssescape );
1520};
1521
1522Sizzle.error = function( msg ) {
1523	throw new Error( "Syntax error, unrecognized expression: " + msg );
1524};
1525
1526/**
1527 * Document sorting and removing duplicates
1528 * @param {ArrayLike} results
1529 */
1530Sizzle.uniqueSort = function( results ) {
1531	var elem,
1532		duplicates = [],
1533		j = 0,
1534		i = 0;
1535
1536	// Unless we *know* we can detect duplicates, assume their presence
1537	hasDuplicate = !support.detectDuplicates;
1538	sortInput = !support.sortStable && results.slice( 0 );
1539	results.sort( sortOrder );
1540
1541	if ( hasDuplicate ) {
1542		while ( (elem = results[i++]) ) {
1543			if ( elem === results[ i ] ) {
1544				j = duplicates.push( i );
1545			}
1546		}
1547		while ( j-- ) {
1548			results.splice( duplicates[ j ], 1 );
1549		}
1550	}
1551
1552	// Clear input after sorting to release objects
1553	// See https://github.com/jquery/sizzle/pull/225
1554	sortInput = null;
1555
1556	return results;
1557};
1558
1559/**
1560 * Utility function for retrieving the text value of an array of DOM nodes
1561 * @param {Array|Element} elem
1562 */
1563getText = Sizzle.getText = function( elem ) {
1564	var node,
1565		ret = "",
1566		i = 0,
1567		nodeType = elem.nodeType;
1568
1569	if ( !nodeType ) {
1570		// If no nodeType, this is expected to be an array
1571		while ( (node = elem[i++]) ) {
vendor: 11,976 bytes, lines 1572-1970
1572			// Do not traverse comment nodes
1573			ret += getText( node );
1574		}
1575	} else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
1576		// Use textContent for elements
1577		// innerText usage removed for consistency of new lines (jQuery #11153)
1578		if ( typeof elem.textContent === "string" ) {
1579			return elem.textContent;
1580		} else {
1581			// Traverse its children
1582			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
1583				ret += getText( elem );
1584			}
1585		}
1586	} else if ( nodeType === 3 || nodeType === 4 ) {
1587		return elem.nodeValue;
1588	}
1589	// Do not include comment or processing instruction nodes
1590
1591	return ret;
1592};
1593
1594Expr = Sizzle.selectors = {
1595
1596	// Can be adjusted by the user
1597	cacheLength: 50,
1598
1599	createPseudo: markFunction,
1600
1601	match: matchExpr,
1602
1603	attrHandle: {},
1604
1605	find: {},
1606
1607	relative: {
1608		">": { dir: "parentNode", first: true },
1609		" ": { dir: "parentNode" },
1610		"+": { dir: "previousSibling", first: true },
1611		"~": { dir: "previousSibling" }
1612	},
1613
1614	preFilter: {
1615		"ATTR": function( match ) {
1616			match[1] = match[1].replace( runescape, funescape );
1617
1618			// Move the given value to match[3] whether quoted or unquoted
1619			match[3] = ( match[3] || match[4] || match[5] || "" ).replace( runescape, funescape );
1620
1621			if ( match[2] === "~=" ) {
1622				match[3] = " " + match[3] + " ";
1623			}
1624
1625			return match.slice( 0, 4 );
1626		},
1627
1628		"CHILD": function( match ) {
1629			/* matches from matchExpr["CHILD"]
1630				1 type (only|nth|...)
1631				2 what (child|of-type)
1632				3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
1633				4 xn-component of xn+y argument ([+-]?\d*n|)
1634				5 sign of xn-component
1635				6 x of xn-component
1636				7 sign of y-component
1637				8 y of y-component
1638			*/
1639			match[1] = match[1].toLowerCase();
1640
1641			if ( match[1].slice( 0, 3 ) === "nth" ) {
1642				// nth-* requires argument
1643				if ( !match[3] ) {
1644					Sizzle.error( match[0] );
1645				}
1646
1647				// numeric x and y parameters for Expr.filter.CHILD
1648				// remember that false/true cast respectively to 0/1
1649				match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
1650				match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
1651
1652			// other types prohibit arguments
1653			} else if ( match[3] ) {
1654				Sizzle.error( match[0] );
1655			}
1656
1657			return match;
1658		},
1659
1660		"PSEUDO": function( match ) {
1661			var excess,
1662				unquoted = !match[6] && match[2];
1663
1664			if ( matchExpr["CHILD"].test( match[0] ) ) {
1665				return null;
1666			}
1667
1668			// Accept quoted arguments as-is
1669			if ( match[3] ) {
1670				match[2] = match[4] || match[5] || "";
1671
1672			// Strip excess characters from unquoted arguments
1673			} else if ( unquoted && rpseudo.test( unquoted ) &&
1674				// Get excess from tokenize (recursively)
1675				(excess = tokenize( unquoted, true )) &&
1676				// advance to the next closing parenthesis
1677				(excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
1678
1679				// excess is a negative index
1680				match[0] = match[0].slice( 0, excess );
1681				match[2] = unquoted.slice( 0, excess );
1682			}
1683
1684			// Return only captures needed by the pseudo filter method (type and argument)
1685			return match.slice( 0, 3 );
1686		}
1687	},
1688
1689	filter: {
1690
1691		"TAG": function( nodeNameSelector ) {
1692			var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
1693			return nodeNameSelector === "*" ?
1694				function() { return true; } :
1695				function( elem ) {
1696					return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
1697				};
1698		},
1699
1700		"CLASS": function( className ) {
1701			var pattern = classCache[ className + " " ];
1702
1703			return pattern ||
1704				(pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
1705				classCache( className, function( elem ) {
1706					return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== "undefined" && elem.getAttribute("class") || "" );
1707				});
1708		},
1709
1710		"ATTR": function( name, operator, check ) {
1711			return function( elem ) {
1712				var result = Sizzle.attr( elem, name );
1713
1714				if ( result == null ) {
1715					return operator === "!=";
1716				}
1717				if ( !operator ) {
1718					return true;
1719				}
1720
1721				result += "";
1722
1723				return operator === "=" ? result === check :
1724					operator === "!=" ? result !== check :
1725					operator === "^=" ? check && result.indexOf( check ) === 0 :
1726					operator === "*=" ? check && result.indexOf( check ) > -1 :
1727					operator === "$=" ? check && result.slice( -check.length ) === check :
1728					operator === "~=" ? ( " " + result.replace( rwhitespace, " " ) + " " ).indexOf( check ) > -1 :
1729					operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
1730					false;
1731			};
1732		},
1733
1734		"CHILD": function( type, what, argument, first, last ) {
1735			var simple = type.slice( 0, 3 ) !== "nth",
1736				forward = type.slice( -4 ) !== "last",
1737				ofType = what === "of-type";
1738
1739			return first === 1 && last === 0 ?
1740
1741				// Shortcut for :nth-*(n)
1742				function( elem ) {
1743					return !!elem.parentNode;
1744				} :
1745
1746				function( elem, context, xml ) {
1747					var cache, uniqueCache, outerCache, node, nodeIndex, start,
1748						dir = simple !== forward ? "nextSibling" : "previousSibling",
1749						parent = elem.parentNode,
1750						name = ofType && elem.nodeName.toLowerCase(),
1751						useCache = !xml && !ofType,
1752						diff = false;
1753
1754					if ( parent ) {
1755
1756						// :(first|last|only)-(child|of-type)
1757						if ( simple ) {
1758							while ( dir ) {
1759								node = elem;
1760								while ( (node = node[ dir ]) ) {
1761									if ( ofType ?
1762										node.nodeName.toLowerCase() === name :
1763										node.nodeType === 1 ) {
1764
1765										return false;
1766									}
1767								}
1768								// Reverse direction for :only-* (if we haven't yet done so)
1769								start = dir = type === "only" && !start && "nextSibling";
1770							}
1771							return true;
1772						}
1773
1774						start = [ forward ? parent.firstChild : parent.lastChild ];
1775
1776						// non-xml :nth-child(...) stores cache data on `parent`
1777						if ( forward && useCache ) {
1778
1779							// Seek `elem` from a previously-cached index
1780
1781							// ...in a gzip-friendly way
1782							node = parent;
1783							outerCache = node[ expando ] || (node[ expando ] = {});
1784
1785							// Support: IE <9 only
1786							// Defend against cloned attroperties (jQuery gh-1709)
1787							uniqueCache = outerCache[ node.uniqueID ] ||
1788								(outerCache[ node.uniqueID ] = {});
1789
1790							cache = uniqueCache[ type ] || [];
1791							nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
1792							diff = nodeIndex && cache[ 2 ];
1793							node = nodeIndex && parent.childNodes[ nodeIndex ];
1794
1795							while ( (node = ++nodeIndex && node && node[ dir ] ||
1796
1797								// Fallback to seeking `elem` from the start
1798								(diff = nodeIndex = 0) || start.pop()) ) {
1799
1800								// When found, cache indexes on `parent` and break
1801								if ( node.nodeType === 1 && ++diff && node === elem ) {
1802									uniqueCache[ type ] = [ dirruns, nodeIndex, diff ];
1803									break;
1804								}
1805							}
1806
1807						} else {
1808							// Use previously-cached element index if available
1809							if ( useCache ) {
1810								// ...in a gzip-friendly way
1811								node = elem;
1812								outerCache = node[ expando ] || (node[ expando ] = {});
1813
1814								// Support: IE <9 only
1815								// Defend against cloned attroperties (jQuery gh-1709)
1816								uniqueCache = outerCache[ node.uniqueID ] ||
1817									(outerCache[ node.uniqueID ] = {});
1818
1819								cache = uniqueCache[ type ] || [];
1820								nodeIndex = cache[ 0 ] === dirruns && cache[ 1 ];
1821								diff = nodeIndex;
1822							}
1823
1824							// xml :nth-child(...)
1825							// or :nth-last-child(...) or :nth(-last)?-of-type(...)
1826							if ( diff === false ) {
1827								// Use the same loop as above to seek `elem` from the start
1828								while ( (node = ++nodeIndex && node && node[ dir ] ||
1829									(diff = nodeIndex = 0) || start.pop()) ) {
1830
1831									if ( ( ofType ?
1832										node.nodeName.toLowerCase() === name :
1833										node.nodeType === 1 ) &&
1834										++diff ) {
1835
1836										// Cache the index of each encountered element
1837										if ( useCache ) {
1838											outerCache = node[ expando ] || (node[ expando ] = {});
1839
1840											// Support: IE <9 only
1841											// Defend against cloned attroperties (jQuery gh-1709)
1842											uniqueCache = outerCache[ node.uniqueID ] ||
1843												(outerCache[ node.uniqueID ] = {});
1844
1845											uniqueCache[ type ] = [ dirruns, diff ];
1846										}
1847
1848										if ( node === elem ) {
1849											break;
1850										}
1851									}
1852								}
1853							}
1854						}
1855
1856						// Incorporate the offset, then check against cycle size
1857						diff -= last;
1858						return diff === first || ( diff % first === 0 && diff / first >= 0 );
1859					}
1860				};
1861		},
1862
1863		"PSEUDO": function( pseudo, argument ) {
1864			// pseudo-class names are case-insensitive
1865			// http://www.w3.org/TR/selectors/#pseudo-classes
1866			// Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
1867			// Remember that setFilters inherits from pseudos
1868			var args,
1869				fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
1870					Sizzle.error( "unsupported pseudo: " + pseudo );
1871
1872			// The user may use createPseudo to indicate that
1873			// arguments are needed to create the filter function
1874			// just as Sizzle does
1875			if ( fn[ expando ] ) {
1876				return fn( argument );
1877			}
1878
1879			// But maintain support for old signatures
1880			if ( fn.length > 1 ) {
1881				args = [ pseudo, pseudo, "", argument ];
1882				return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
1883					markFunction(function( seed, matches ) {
1884						var idx,
1885							matched = fn( seed, argument ),
1886							i = matched.length;
1887						while ( i-- ) {
1888							idx = indexOf( seed, matched[i] );
1889							seed[ idx ] = !( matches[ idx ] = matched[i] );
1890						}
1891					}) :
1892					function( elem ) {
1893						return fn( elem, 0, args );
1894					};
1895			}
1896
1897			return fn;
1898		}
1899	},
1900
1901	pseudos: {
1902		// Potentially complex pseudos
1903		"not": markFunction(function( selector ) {
1904			// Trim the selector passed to compile
1905			// to avoid treating leading and trailing
1906			// spaces as combinators
1907			var input = [],
1908				results = [],
1909				matcher = compile( selector.replace( rtrim, "$1" ) );
1910
1911			return matcher[ expando ] ?
1912				markFunction(function( seed, matches, context, xml ) {
1913					var elem,
1914						unmatched = matcher( seed, null, xml, [] ),
1915						i = seed.length;
1916
1917					// Match elements unmatched by `matcher`
1918					while ( i-- ) {
1919						if ( (elem = unmatched[i]) ) {
1920							seed[i] = !(matches[i] = elem);
1921						}
1922					}
1923				}) :
1924				function( elem, context, xml ) {
1925					input[0] = elem;
1926					matcher( input, null, xml, results );
1927					// Don't keep the element (issue #299)
1928					input[0] = null;
1929					return !results.pop();
1930				};
1931		}),
1932
1933		"has": markFunction(function( selector ) {
1934			return function( elem ) {
1935				return Sizzle( selector, elem ).length > 0;
1936			};
1937		}),
1938
1939		"contains": markFunction(function( text ) {
1940			text = text.replace( runescape, funescape );
1941			return function( elem ) {
1942				return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
1943			};
1944		}),
1945
1946		// "Whether an element is represented by a :lang() selector
1947		// is based solely on the element's language value
1948		// being equal to the identifier C,
1949		// or beginning with the identifier C immediately followed by "-".
1950		// The matching of C against the element's language value is performed case-insensitively.
1951		// The identifier C does not have to be a valid language name."
1952		// http://www.w3.org/TR/selectors/#lang-pseudo
1953		"lang": markFunction( function( lang ) {
1954			// lang value must be a valid identifier
1955			if ( !ridentifier.test(lang || "") ) {
1956				Sizzle.error( "unsupported lang: " + lang );
1957			}
1958			lang = lang.replace( runescape, funescape ).toLowerCase();
1959			return function( elem ) {
1960				var elemLang;
1961				do {
1962					if ( (elemLang = documentIsHTML ?
1963						elem.lang :
1964						elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
1965
1966						elemLang = elemLang.toLowerCase();
1967						return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
1968					}
1969				} while ( (elem = elem.parentNode) && elem.nodeType === 1 );
1970				return false;
vendor: 23,967 bytes, lines 1971-2842
1971			};
1972		}),
1973
1974		// Miscellaneous
1975		"target": function( elem ) {
1976			var hash = window.location && window.location.hash;
1977			return hash && hash.slice( 1 ) === elem.id;
1978		},
1979
1980		"root": function( elem ) {
1981			return elem === docElem;
1982		},
1983
1984		"focus": function( elem ) {
1985			return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
1986		},
1987
1988		// Boolean properties
1989		"enabled": createDisabledPseudo( false ),
1990		"disabled": createDisabledPseudo( true ),
1991
1992		"checked": function( elem ) {
1993			// In CSS3, :checked should return both checked and selected elements
1994			// http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
1995			var nodeName = elem.nodeName.toLowerCase();
1996			return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
1997		},
1998
1999		"selected": function( elem ) {
2000			// Accessing this property makes selected-by-default
2001			// options in Safari work properly
2002			if ( elem.parentNode ) {
2003				elem.parentNode.selectedIndex;
2004			}
2005
2006			return elem.selected === true;
2007		},
2008
2009		// Contents
2010		"empty": function( elem ) {
2011			// http://www.w3.org/TR/selectors/#empty-pseudo
2012			// :empty is negated by element (1) or content nodes (text: 3; cdata: 4; entity ref: 5),
2013			//   but not by others (comment: 8; processing instruction: 7; etc.)
2014			// nodeType < 6 works because attributes (2) do not appear as children
2015			for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
2016				if ( elem.nodeType < 6 ) {
2017					return false;
2018				}
2019			}
2020			return true;
2021		},
2022
2023		"parent": function( elem ) {
2024			return !Expr.pseudos["empty"]( elem );
2025		},
2026
2027		// Element/input types
2028		"header": function( elem ) {
2029			return rheader.test( elem.nodeName );
2030		},
2031
2032		"input": function( elem ) {
2033			return rinputs.test( elem.nodeName );
2034		},
2035
2036		"button": function( elem ) {
2037			var name = elem.nodeName.toLowerCase();
2038			return name === "input" && elem.type === "button" || name === "button";
2039		},
2040
2041		"text": function( elem ) {
2042			var attr;
2043			return elem.nodeName.toLowerCase() === "input" &&
2044				elem.type === "text" &&
2045
2046				// Support: IE<8
2047				// New HTML5 attribute values (e.g., "search") appear with elem.type === "text"
2048				( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === "text" );
2049		},
2050
2051		// Position-in-collection
2052		"first": createPositionalPseudo(function() {
2053			return [ 0 ];
2054		}),
2055
2056		"last": createPositionalPseudo(function( matchIndexes, length ) {
2057			return [ length - 1 ];
2058		}),
2059
2060		"eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
2061			return [ argument < 0 ? argument + length : argument ];
2062		}),
2063
2064		"even": createPositionalPseudo(function( matchIndexes, length ) {
2065			var i = 0;
2066			for ( ; i < length; i += 2 ) {
2067				matchIndexes.push( i );
2068			}
2069			return matchIndexes;
2070		}),
2071
2072		"odd": createPositionalPseudo(function( matchIndexes, length ) {
2073			var i = 1;
2074			for ( ; i < length; i += 2 ) {
2075				matchIndexes.push( i );
2076			}
2077			return matchIndexes;
2078		}),
2079
2080		"lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
2081			var i = argument < 0 ? argument + length : argument;
2082			for ( ; --i >= 0; ) {
2083				matchIndexes.push( i );
2084			}
2085			return matchIndexes;
2086		}),
2087
2088		"gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
2089			var i = argument < 0 ? argument + length : argument;
2090			for ( ; ++i < length; ) {
2091				matchIndexes.push( i );
2092			}
2093			return matchIndexes;
2094		})
2095	}
2096};
2097
2098Expr.pseudos["nth"] = Expr.pseudos["eq"];
2099
2100// Add button/input type pseudos
2101for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
2102	Expr.pseudos[ i ] = createInputPseudo( i );
2103}
2104for ( i in { submit: true, reset: true } ) {
2105	Expr.pseudos[ i ] = createButtonPseudo( i );
2106}
2107
2108// Easy API for creating new setFilters
2109function setFilters() {}
2110setFilters.prototype = Expr.filters = Expr.pseudos;
2111Expr.setFilters = new setFilters();
2112
2113tokenize = Sizzle.tokenize = function( selector, parseOnly ) {
2114	var matched, match, tokens, type,
2115		soFar, groups, preFilters,
2116		cached = tokenCache[ selector + " " ];
2117
2118	if ( cached ) {
2119		return parseOnly ? 0 : cached.slice( 0 );
2120	}
2121
2122	soFar = selector;
2123	groups = [];
2124	preFilters = Expr.preFilter;
2125
2126	while ( soFar ) {
2127
2128		// Comma and first run
2129		if ( !matched || (match = rcomma.exec( soFar )) ) {
2130			if ( match ) {
2131				// Don't consume trailing commas as valid
2132				soFar = soFar.slice( match[0].length ) || soFar;
2133			}
2134			groups.push( (tokens = []) );
2135		}
2136
2137		matched = false;
2138
2139		// Combinators
2140		if ( (match = rcombinators.exec( soFar )) ) {
2141			matched = match.shift();
2142			tokens.push({
2143				value: matched,
2144				// Cast descendant combinators to space
2145				type: match[0].replace( rtrim, " " )
2146			});
2147			soFar = soFar.slice( matched.length );
2148		}
2149
2150		// Filters
2151		for ( type in Expr.filter ) {
2152			if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
2153				(match = preFilters[ type ]( match ))) ) {
2154				matched = match.shift();
2155				tokens.push({
2156					value: matched,
2157					type: type,
2158					matches: match
2159				});
2160				soFar = soFar.slice( matched.length );
2161			}
2162		}
2163
2164		if ( !matched ) {
2165			break;
2166		}
2167	}
2168
2169	// Return the length of the invalid excess
2170	// if we're just parsing
2171	// Otherwise, throw an error or return tokens
2172	return parseOnly ?
2173		soFar.length :
2174		soFar ?
2175			Sizzle.error( selector ) :
2176			// Cache the tokens
2177			tokenCache( selector, groups ).slice( 0 );
2178};
2179
2180function toSelector( tokens ) {
2181	var i = 0,
2182		len = tokens.length,
2183		selector = "";
2184	for ( ; i < len; i++ ) {
2185		selector += tokens[i].value;
2186	}
2187	return selector;
2188}
2189
2190function addCombinator( matcher, combinator, base ) {
2191	var dir = combinator.dir,
2192		skip = combinator.next,
2193		key = skip || dir,
2194		checkNonElements = base && key === "parentNode",
2195		doneName = done++;
2196
2197	return combinator.first ?
2198		// Check against closest ancestor/preceding element
2199		function( elem, context, xml ) {
2200			while ( (elem = elem[ dir ]) ) {
2201				if ( elem.nodeType === 1 || checkNonElements ) {
2202					return matcher( elem, context, xml );
2203				}
2204			}
2205			return false;
2206		} :
2207
2208		// Check against all ancestor/preceding elements
2209		function( elem, context, xml ) {
2210			var oldCache, uniqueCache, outerCache,
2211				newCache = [ dirruns, doneName ];
2212
2213			// We can't set arbitrary data on XML nodes, so they don't benefit from combinator caching
2214			if ( xml ) {
2215				while ( (elem = elem[ dir ]) ) {
2216					if ( elem.nodeType === 1 || checkNonElements ) {
2217						if ( matcher( elem, context, xml ) ) {
2218							return true;
2219						}
2220					}
2221				}
2222			} else {
2223				while ( (elem = elem[ dir ]) ) {
2224					if ( elem.nodeType === 1 || checkNonElements ) {
2225						outerCache = elem[ expando ] || (elem[ expando ] = {});
2226
2227						// Support: IE <9 only
2228						// Defend against cloned attroperties (jQuery gh-1709)
2229						uniqueCache = outerCache[ elem.uniqueID ] || (outerCache[ elem.uniqueID ] = {});
2230
2231						if ( skip && skip === elem.nodeName.toLowerCase() ) {
2232							elem = elem[ dir ] || elem;
2233						} else if ( (oldCache = uniqueCache[ key ]) &&
2234							oldCache[ 0 ] === dirruns && oldCache[ 1 ] === doneName ) {
2235
2236							// Assign to newCache so results back-propagate to previous elements
2237							return (newCache[ 2 ] = oldCache[ 2 ]);
2238						} else {
2239							// Reuse newcache so results back-propagate to previous elements
2240							uniqueCache[ key ] = newCache;
2241
2242							// A match means we're done; a fail means we have to keep checking
2243							if ( (newCache[ 2 ] = matcher( elem, context, xml )) ) {
2244								return true;
2245							}
2246						}
2247					}
2248				}
2249			}
2250			return false;
2251		};
2252}
2253
2254function elementMatcher( matchers ) {
2255	return matchers.length > 1 ?
2256		function( elem, context, xml ) {
2257			var i = matchers.length;
2258			while ( i-- ) {
2259				if ( !matchers[i]( elem, context, xml ) ) {
2260					return false;
2261				}
2262			}
2263			return true;
2264		} :
2265		matchers[0];
2266}
2267
2268function multipleContexts( selector, contexts, results ) {
2269	var i = 0,
2270		len = contexts.length;
2271	for ( ; i < len; i++ ) {
2272		Sizzle( selector, contexts[i], results );
2273	}
2274	return results;
2275}
2276
2277function condense( unmatched, map, filter, context, xml ) {
2278	var elem,
2279		newUnmatched = [],
2280		i = 0,
2281		len = unmatched.length,
2282		mapped = map != null;
2283
2284	for ( ; i < len; i++ ) {
2285		if ( (elem = unmatched[i]) ) {
2286			if ( !filter || filter( elem, context, xml ) ) {
2287				newUnmatched.push( elem );
2288				if ( mapped ) {
2289					map.push( i );
2290				}
2291			}
2292		}
2293	}
2294
2295	return newUnmatched;
2296}
2297
2298function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
2299	if ( postFilter && !postFilter[ expando ] ) {
2300		postFilter = setMatcher( postFilter );
2301	}
2302	if ( postFinder && !postFinder[ expando ] ) {
2303		postFinder = setMatcher( postFinder, postSelector );
2304	}
2305	return markFunction(function( seed, results, context, xml ) {
2306		var temp, i, elem,
2307			preMap = [],
2308			postMap = [],
2309			preexisting = results.length,
2310
2311			// Get initial elements from seed or context
2312			elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
2313
2314			// Prefilter to get matcher input, preserving a map for seed-results synchronization
2315			matcherIn = preFilter && ( seed || !selector ) ?
2316				condense( elems, preMap, preFilter, context, xml ) :
2317				elems,
2318
2319			matcherOut = matcher ?
2320				// If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
2321				postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
2322
2323					// ...intermediate processing is necessary
2324					[] :
2325
2326					// ...otherwise use results directly
2327					results :
2328				matcherIn;
2329
2330		// Find primary matches
2331		if ( matcher ) {
2332			matcher( matcherIn, matcherOut, context, xml );
2333		}
2334
2335		// Apply postFilter
2336		if ( postFilter ) {
2337			temp = condense( matcherOut, postMap );
2338			postFilter( temp, [], context, xml );
2339
2340			// Un-match failing elements by moving them back to matcherIn
2341			i = temp.length;
2342			while ( i-- ) {
2343				if ( (elem = temp[i]) ) {
2344					matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
2345				}
2346			}
2347		}
2348
2349		if ( seed ) {
2350			if ( postFinder || preFilter ) {
2351				if ( postFinder ) {
2352					// Get the final matcherOut by condensing this intermediate into postFinder contexts
2353					temp = [];
2354					i = matcherOut.length;
2355					while ( i-- ) {
2356						if ( (elem = matcherOut[i]) ) {
2357							// Restore matcherIn since elem is not yet a final match
2358							temp.push( (matcherIn[i] = elem) );
2359						}
2360					}
2361					postFinder( null, (matcherOut = []), temp, xml );
2362				}
2363
2364				// Move matched elements from seed to results to keep them synchronized
2365				i = matcherOut.length;
2366				while ( i-- ) {
2367					if ( (elem = matcherOut[i]) &&
2368						(temp = postFinder ? indexOf( seed, elem ) : preMap[i]) > -1 ) {
2369
2370						seed[temp] = !(results[temp] = elem);
2371					}
2372				}
2373			}
2374
2375		// Add elements to results, through postFinder if defined
2376		} else {
2377			matcherOut = condense(
2378				matcherOut === results ?
2379					matcherOut.splice( preexisting, matcherOut.length ) :
2380					matcherOut
2381			);
2382			if ( postFinder ) {
2383				postFinder( null, results, matcherOut, xml );
2384			} else {
2385				push.apply( results, matcherOut );
2386			}
2387		}
2388	});
2389}
2390
2391function matcherFromTokens( tokens ) {
2392	var checkContext, matcher, j,
2393		len = tokens.length,
2394		leadingRelative = Expr.relative[ tokens[0].type ],
2395		implicitRelative = leadingRelative || Expr.relative[" "],
2396		i = leadingRelative ? 1 : 0,
2397
2398		// The foundational matcher ensures that elements are reachable from top-level context(s)
2399		matchContext = addCombinator( function( elem ) {
2400			return elem === checkContext;
2401		}, implicitRelative, true ),
2402		matchAnyContext = addCombinator( function( elem ) {
2403			return indexOf( checkContext, elem ) > -1;
2404		}, implicitRelative, true ),
2405		matchers = [ function( elem, context, xml ) {
2406			var ret = ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
2407				(checkContext = context).nodeType ?
2408					matchContext( elem, context, xml ) :
2409					matchAnyContext( elem, context, xml ) );
2410			// Avoid hanging onto element (issue #299)
2411			checkContext = null;
2412			return ret;
2413		} ];
2414
2415	for ( ; i < len; i++ ) {
2416		if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
2417			matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
2418		} else {
2419			matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
2420
2421			// Return special upon seeing a positional matcher
2422			if ( matcher[ expando ] ) {
2423				// Find the next relative operator (if any) for proper handling
2424				j = ++i;
2425				for ( ; j < len; j++ ) {
2426					if ( Expr.relative[ tokens[j].type ] ) {
2427						break;
2428					}
2429				}
2430				return setMatcher(
2431					i > 1 && elementMatcher( matchers ),
2432					i > 1 && toSelector(
2433						// If the preceding token was a descendant combinator, insert an implicit any-element `*`
2434						tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
2435					).replace( rtrim, "$1" ),
2436					matcher,
2437					i < j && matcherFromTokens( tokens.slice( i, j ) ),
2438					j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
2439					j < len && toSelector( tokens )
2440				);
2441			}
2442			matchers.push( matcher );
2443		}
2444	}
2445
2446	return elementMatcher( matchers );
2447}
2448
2449function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
2450	var bySet = setMatchers.length > 0,
2451		byElement = elementMatchers.length > 0,
2452		superMatcher = function( seed, context, xml, results, outermost ) {
2453			var elem, j, matcher,
2454				matchedCount = 0,
2455				i = "0",
2456				unmatched = seed && [],
2457				setMatched = [],
2458				contextBackup = outermostContext,
2459				// We must always have either seed elements or outermost context
2460				elems = seed || byElement && Expr.find["TAG"]( "*", outermost ),
2461				// Use integer dirruns iff this is the outermost matcher
2462				dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1),
2463				len = elems.length;
2464
2465			if ( outermost ) {
2466				outermostContext = context === document || context || outermost;
2467			}
2468
2469			// Add elements passing elementMatchers directly to results
2470			// Support: IE<9, Safari
2471			// Tolerate NodeList properties (IE: "length"; Safari: <number>) matching elements by id
2472			for ( ; i !== len && (elem = elems[i]) != null; i++ ) {
2473				if ( byElement && elem ) {
2474					j = 0;
2475					if ( !context && elem.ownerDocument !== document ) {
2476						setDocument( elem );
2477						xml = !documentIsHTML;
2478					}
2479					while ( (matcher = elementMatchers[j++]) ) {
2480						if ( matcher( elem, context || document, xml) ) {
2481							results.push( elem );
2482							break;
2483						}
2484					}
2485					if ( outermost ) {
2486						dirruns = dirrunsUnique;
2487					}
2488				}
2489
2490				// Track unmatched elements for set filters
2491				if ( bySet ) {
2492					// They will have gone through all possible matchers
2493					if ( (elem = !matcher && elem) ) {
2494						matchedCount--;
2495					}
2496
2497					// Lengthen the array for every element, matched or not
2498					if ( seed ) {
2499						unmatched.push( elem );
2500					}
2501				}
2502			}
2503
2504			// `i` is now the count of elements visited above, and adding it to `matchedCount`
2505			// makes the latter nonnegative.
2506			matchedCount += i;
2507
2508			// Apply set filters to unmatched elements
2509			// NOTE: This can be skipped if there are no unmatched elements (i.e., `matchedCount`
2510			// equals `i`), unless we didn't visit _any_ elements in the above loop because we have
2511			// no element matchers and no seed.
2512			// Incrementing an initially-string "0" `i` allows `i` to remain a string only in that
2513			// case, which will result in a "00" `matchedCount` that differs from `i` but is also
2514			// numerically zero.
2515			if ( bySet && i !== matchedCount ) {
2516				j = 0;
2517				while ( (matcher = setMatchers[j++]) ) {
2518					matcher( unmatched, setMatched, context, xml );
2519				}
2520
2521				if ( seed ) {
2522					// Reintegrate element matches to eliminate the need for sorting
2523					if ( matchedCount > 0 ) {
2524						while ( i-- ) {
2525							if ( !(unmatched[i] || setMatched[i]) ) {
2526								setMatched[i] = pop.call( results );
2527							}
2528						}
2529					}
2530
2531					// Discard index placeholder values to get only actual matches
2532					setMatched = condense( setMatched );
2533				}
2534
2535				// Add matches to results
2536				push.apply( results, setMatched );
2537
2538				// Seedless set matches succeeding multiple successful matchers stipulate sorting
2539				if ( outermost && !seed && setMatched.length > 0 &&
2540					( matchedCount + setMatchers.length ) > 1 ) {
2541
2542					Sizzle.uniqueSort( results );
2543				}
2544			}
2545
2546			// Override manipulation of globals by nested matchers
2547			if ( outermost ) {
2548				dirruns = dirrunsUnique;
2549				outermostContext = contextBackup;
2550			}
2551
2552			return unmatched;
2553		};
2554
2555	return bySet ?
2556		markFunction( superMatcher ) :
2557		superMatcher;
2558}
2559
2560compile = Sizzle.compile = function( selector, match /* Internal Use Only */ ) {
2561	var i,
2562		setMatchers = [],
2563		elementMatchers = [],
2564		cached = compilerCache[ selector + " " ];
2565
2566	if ( !cached ) {
2567		// Generate a function of recursive functions that can be used to check each element
2568		if ( !match ) {
2569			match = tokenize( selector );
2570		}
2571		i = match.length;
2572		while ( i-- ) {
2573			cached = matcherFromTokens( match[i] );
2574			if ( cached[ expando ] ) {
2575				setMatchers.push( cached );
2576			} else {
2577				elementMatchers.push( cached );
2578			}
2579		}
2580
2581		// Cache the compiled function
2582		cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
2583
2584		// Save selector and tokenization
2585		cached.selector = selector;
2586	}
2587	return cached;
2588};
2589
2590/**
2591 * A low-level selection function that works with Sizzle's compiled
2592 *  selector functions
2593 * @param {String|Function} selector A selector or a pre-compiled
2594 *  selector function built with Sizzle.compile
2595 * @param {Element} context
2596 * @param {Array} [results]
2597 * @param {Array} [seed] A set of elements to match against
2598 */
2599select = Sizzle.select = function( selector, context, results, seed ) {
2600	var i, tokens, token, type, find,
2601		compiled = typeof selector === "function" && selector,
2602		match = !seed && tokenize( (selector = compiled.selector || selector) );
2603
2604	results = results || [];
2605
2606	// Try to minimize operations if there is only one selector in the list and no seed
2607	// (the latter of which guarantees us context)
2608	if ( match.length === 1 ) {
2609
2610		// Reduce context if the leading compound selector is an ID
2611		tokens = match[0] = match[0].slice( 0 );
2612		if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
2613				context.nodeType === 9 && documentIsHTML && Expr.relative[ tokens[1].type ] ) {
2614
2615			context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
2616			if ( !context ) {
2617				return results;
2618
2619			// Precompiled matchers will still verify ancestry, so step up a level
2620			} else if ( compiled ) {
2621				context = context.parentNode;
2622			}
2623
2624			selector = selector.slice( tokens.shift().value.length );
2625		}
2626
2627		// Fetch a seed set for right-to-left matching
2628		i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
2629		while ( i-- ) {
2630			token = tokens[i];
2631
2632			// Abort if we hit a combinator
2633			if ( Expr.relative[ (type = token.type) ] ) {
2634				break;
2635			}
2636			if ( (find = Expr.find[ type ]) ) {
2637				// Search, expanding context for leading sibling combinators
2638				if ( (seed = find(
2639					token.matches[0].replace( runescape, funescape ),
2640					rsibling.test( tokens[0].type ) && testContext( context.parentNode ) || context
2641				)) ) {
2642
2643					// If seed is empty or no tokens remain, we can return early
2644					tokens.splice( i, 1 );
2645					selector = seed.length && toSelector( tokens );
2646					if ( !selector ) {
2647						push.apply( results, seed );
2648						return results;
2649					}
2650
2651					break;
2652				}
2653			}
2654		}
2655	}
2656
2657	// Compile and execute a filtering function if one is not provided
2658	// Provide `match` to avoid retokenization if we modified the selector above
2659	( compiled || compile( selector, match ) )(
2660		seed,
2661		context,
2662		!documentIsHTML,
2663		results,
2664		!context || rsibling.test( selector ) && testContext( context.parentNode ) || context
2665	);
2666	return results;
2667};
2668
2669// One-time assignments
2670
2671// Sort stability
2672support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
2673
2674// Support: Chrome 14-35+
2675// Always assume duplicates if they aren't passed to the comparison function
2676support.detectDuplicates = !!hasDuplicate;
2677
2678// Initialize against the default document
2679setDocument();
2680
2681// Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
2682// Detached nodes confoundingly follow *each other*
2683support.sortDetached = assert(function( el ) {
2684	// Should return 1, but returns 4 (following)
2685	return el.compareDocumentPosition( document.createElement("fieldset") ) & 1;
2686});
2687
2688// Support: IE<8
2689// Prevent attribute/property "interpolation"
2690// https://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
2691if ( !assert(function( el ) {
2692	el.innerHTML = "<a href='#'></a>";
2693	return el.firstChild.getAttribute("href") === "#" ;
2694}) ) {
2695	addHandle( "type|href|height|width", function( elem, name, isXML ) {
2696		if ( !isXML ) {
2697			return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
2698		}
2699	});
2700}
2701
2702// Support: IE<9
2703// Use defaultValue in place of getAttribute("value")
2704if ( !support.attributes || !assert(function( el ) {
2705	el.innerHTML = "<input/>";
2706	el.firstChild.setAttribute( "value", "" );
2707	return el.firstChild.getAttribute( "value" ) === "";
2708}) ) {
2709	addHandle( "value", function( elem, name, isXML ) {
2710		if ( !isXML && elem.nodeName.toLowerCase() === "input" ) {
2711			return elem.defaultValue;
2712		}
2713	});
2714}
2715
2716// Support: IE<9
2717// Use getAttributeNode to fetch booleans when getAttribute lies
2718if ( !assert(function( el ) {
2719	return el.getAttribute("disabled") == null;
2720}) ) {
2721	addHandle( booleans, function( elem, name, isXML ) {
2722		var val;
2723		if ( !isXML ) {
2724			return elem[ name ] === true ? name.toLowerCase() :
2725					(val = elem.getAttributeNode( name )) && val.specified ?
2726					val.value :
2727				null;
2728		}
2729	});
2730}
2731
2732return Sizzle;
2733
2734})( window );
2735
2736
2737
2738jQuery.find = Sizzle;
2739jQuery.expr = Sizzle.selectors;
2740
2741// Deprecated
2742jQuery.expr[ ":" ] = jQuery.expr.pseudos;
2743jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
2744jQuery.text = Sizzle.getText;
2745jQuery.isXMLDoc = Sizzle.isXML;
2746jQuery.contains = Sizzle.contains;
2747jQuery.escapeSelector = Sizzle.escape;
2748
2749
2750
2751
2752var dir = function( elem, dir, until ) {
2753	var matched = [],
2754		truncate = until !== undefined;
2755
2756	while ( ( elem = elem[ dir ] ) && elem.nodeType !== 9 ) {
2757		if ( elem.nodeType === 1 ) {
2758			if ( truncate && jQuery( elem ).is( until ) ) {
2759				break;
2760			}
2761			matched.push( elem );
2762		}
2763	}
2764	return matched;
2765};
2766
2767
2768var siblings = function( n, elem ) {
2769	var matched = [];
2770
2771	for ( ; n; n = n.nextSibling ) {
2772		if ( n.nodeType === 1 && n !== elem ) {
2773			matched.push( n );
2774		}
2775	}
2776
2777	return matched;
2778};
2779
2780
2781var rneedsContext = jQuery.expr.match.needsContext;
2782
2783
2784
2785function nodeName( elem, name ) {
2786
2787  return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
2788
2789};
2790var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
2791
2792
2793
2794// Implement the identical functionality for filter and not
2795function winnow( elements, qualifier, not ) {
2796	if ( isFunction( qualifier ) ) {
2797		return jQuery.grep( elements, function( elem, i ) {
2798			return !!qualifier.call( elem, i, elem ) !== not;
2799		} );
2800	}
2801
2802	// Single element
2803	if ( qualifier.nodeType ) {
2804		return jQuery.grep( elements, function( elem ) {
2805			return ( elem === qualifier ) !== not;
2806		} );
2807	}
2808
2809	// Arraylike of elements (jQuery, arguments, Array)
2810	if ( typeof qualifier !== "string" ) {
2811		return jQuery.grep( elements, function( elem ) {
2812			return ( indexOf.call( qualifier, elem ) > -1 ) !== not;
2813		} );
2814	}
2815
2816	// Filtered directly for both simple and complex selectors
2817	return jQuery.filter( qualifier, elements, not );
2818}
2819
2820jQuery.filter = function( expr, elems, not ) {
2821	var elem = elems[ 0 ];
2822
2823	if ( not ) {
2824		expr = ":not(" + expr + ")";
2825	}
2826
2827	if ( elems.length === 1 && elem.nodeType === 1 ) {
2828		return jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [];
2829	}
2830
2831	return jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
2832		return elem.nodeType === 1;
2833	} ) );
2834};
2835
2836jQuery.fn.extend( {
2837	find: function( selector ) {
2838		var i, ret,
2839			len = this.length,
2840			self = this;
2841
2842		if ( typeof selector !== "string" ) {
vendor: 4,662 bytes, lines 2843-3028
2843			return this.pushStack( jQuery( selector ).filter( function() {
2844				for ( i = 0; i < len; i++ ) {
2845					if ( jQuery.contains( self[ i ], this ) ) {
2846						return true;
2847					}
2848				}
2849			} ) );
2850		}
2851
2852		ret = this.pushStack( [] );
2853
2854		for ( i = 0; i < len; i++ ) {
2855			jQuery.find( selector, self[ i ], ret );
2856		}
2857
2858		return len > 1 ? jQuery.uniqueSort( ret ) : ret;
2859	},
2860	filter: function( selector ) {
2861		return this.pushStack( winnow( this, selector || [], false ) );
2862	},
2863	not: function( selector ) {
2864		return this.pushStack( winnow( this, selector || [], true ) );
2865	},
2866	is: function( selector ) {
2867		return !!winnow(
2868			this,
2869
2870			// If this is a positional/relative selector, check membership in the returned set
2871			// so $("p:first").is("p:last") won't return true for a doc with two "p".
2872			typeof selector === "string" && rneedsContext.test( selector ) ?
2873				jQuery( selector ) :
2874				selector || [],
2875			false
2876		).length;
2877	}
2878} );
2879
2880
2881// Initialize a jQuery object
2882
2883
2884// A central reference to the root jQuery(document)
2885var rootjQuery,
2886
2887	// A simple way to check for HTML strings
2888	// Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
2889	// Strict HTML recognition (#11290: must start with <)
2890	// Shortcut simple #id case for speed
2891	rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,
2892
2893	init = jQuery.fn.init = function( selector, context, root ) {
2894		var match, elem;
2895
2896		// HANDLE: $(""), $(null), $(undefined), $(false)
2897		if ( !selector ) {
2898			return this;
2899		}
2900
2901		// Method init() accepts an alternate rootjQuery
2902		// so migrate can support jQuery.sub (gh-2101)
2903		root = root || rootjQuery;
2904
2905		// Handle HTML strings
2906		if ( typeof selector === "string" ) {
2907			if ( selector[ 0 ] === "<" &&
2908				selector[ selector.length - 1 ] === ">" &&
2909				selector.length >= 3 ) {
2910
2911				// Assume that strings that start and end with <> are HTML and skip the regex check
2912				match = [ null, selector, null ];
2913
2914			} else {
2915				match = rquickExpr.exec( selector );
2916			}
2917
2918			// Match html or make sure no context is specified for #id
2919			if ( match && ( match[ 1 ] || !context ) ) {
2920
2921				// HANDLE: $(html) -> $(array)
2922				if ( match[ 1 ] ) {
2923					context = context instanceof jQuery ? context[ 0 ] : context;
2924
2925					// Option to run scripts is true for back-compat
2926					// Intentionally let the error be thrown if parseHTML is not present
2927					jQuery.merge( this, jQuery.parseHTML(
2928						match[ 1 ],
2929						context && context.nodeType ? context.ownerDocument || context : document,
2930						true
2931					) );
2932
2933					// HANDLE: $(html, props)
2934					if ( rsingleTag.test( match[ 1 ] ) && jQuery.isPlainObject( context ) ) {
2935						for ( match in context ) {
2936
2937							// Properties of context are called as methods if possible
2938							if ( isFunction( this[ match ] ) ) {
2939								this[ match ]( context[ match ] );
2940
2941							// ...and otherwise set as attributes
2942							} else {
2943								this.attr( match, context[ match ] );
2944							}
2945						}
2946					}
2947
2948					return this;
2949
2950				// HANDLE: $(#id)
2951				} else {
2952					elem = document.getElementById( match[ 2 ] );
2953
2954					if ( elem ) {
2955
2956						// Inject the element directly into the jQuery object
2957						this[ 0 ] = elem;
2958						this.length = 1;
2959					}
2960					return this;
2961				}
2962
2963			// HANDLE: $(expr, $(...))
2964			} else if ( !context || context.jquery ) {
2965				return ( context || root ).find( selector );
2966
2967			// HANDLE: $(expr, context)
2968			// (which is just equivalent to: $(context).find(expr)
2969			} else {
2970				return this.constructor( context ).find( selector );
2971			}
2972
2973		// HANDLE: $(DOMElement)
2974		} else if ( selector.nodeType ) {
2975			this[ 0 ] = selector;
2976			this.length = 1;
2977			return this;
2978
2979		// HANDLE: $(function)
2980		// Shortcut for document ready
2981		} else if ( isFunction( selector ) ) {
2982			return root.ready !== undefined ?
2983				root.ready( selector ) :
2984
2985				// Execute immediately if ready is not present
2986				selector( jQuery );
2987		}
2988
2989		return jQuery.makeArray( selector, this );
2990	};
2991
2992// Give the init function the jQuery prototype for later instantiation
2993init.prototype = jQuery.fn;
2994
2995// Initialize central reference
2996rootjQuery = jQuery( document );
2997
2998
2999var rparentsprev = /^(?:parents|prev(?:Until|All))/,
3000
3001	// Methods guaranteed to produce a unique set when starting from a unique set
3002	guaranteedUnique = {
3003		children: true,
3004		contents: true,
3005		next: true,
3006		prev: true
3007	};
3008
3009jQuery.fn.extend( {
3010	has: function( target ) {
3011		var targets = jQuery( target, this ),
3012			l = targets.length;
3013
3014		return this.filter( function() {
3015			var i = 0;
3016			for ( ; i < l; i++ ) {
3017				if ( jQuery.contains( this, targets[ i ] ) ) {
3018					return true;
3019				}
3020			}
3021		} );
3022	},
3023
3024	closest: function( selectors, context ) {
3025		var cur,
3026			i = 0,
3027			l = this.length,
3028			matched = [],
vendor: 6,003 bytes, lines 3029-3255
3029			targets = typeof selectors !== "string" && jQuery( selectors );
3030
3031		// Positional selectors never match, since there's no _selection_ context
3032		if ( !rneedsContext.test( selectors ) ) {
3033			for ( ; i < l; i++ ) {
3034				for ( cur = this[ i ]; cur && cur !== context; cur = cur.parentNode ) {
3035
3036					// Always skip document fragments
3037					if ( cur.nodeType < 11 && ( targets ?
3038						targets.index( cur ) > -1 :
3039
3040						// Don't pass non-elements to Sizzle
3041						cur.nodeType === 1 &&
3042							jQuery.find.matchesSelector( cur, selectors ) ) ) {
3043
3044						matched.push( cur );
3045						break;
3046					}
3047				}
3048			}
3049		}
3050
3051		return this.pushStack( matched.length > 1 ? jQuery.uniqueSort( matched ) : matched );
3052	},
3053
3054	// Determine the position of an element within the set
3055	index: function( elem ) {
3056
3057		// No argument, return index in parent
3058		if ( !elem ) {
3059			return ( this[ 0 ] && this[ 0 ].parentNode ) ? this.first().prevAll().length : -1;
3060		}
3061
3062		// Index in selector
3063		if ( typeof elem === "string" ) {
3064			return indexOf.call( jQuery( elem ), this[ 0 ] );
3065		}
3066
3067		// Locate the position of the desired element
3068		return indexOf.call( this,
3069
3070			// If it receives a jQuery object, the first element is used
3071			elem.jquery ? elem[ 0 ] : elem
3072		);
3073	},
3074
3075	add: function( selector, context ) {
3076		return this.pushStack(
3077			jQuery.uniqueSort(
3078				jQuery.merge( this.get(), jQuery( selector, context ) )
3079			)
3080		);
3081	},
3082
3083	addBack: function( selector ) {
3084		return this.add( selector == null ?
3085			this.prevObject : this.prevObject.filter( selector )
3086		);
3087	}
3088} );
3089
3090function sibling( cur, dir ) {
3091	while ( ( cur = cur[ dir ] ) && cur.nodeType !== 1 ) {}
3092	return cur;
3093}
3094
3095jQuery.each( {
3096	parent: function( elem ) {
3097		var parent = elem.parentNode;
3098		return parent && parent.nodeType !== 11 ? parent : null;
3099	},
3100	parents: function( elem ) {
3101		return dir( elem, "parentNode" );
3102	},
3103	parentsUntil: function( elem, i, until ) {
3104		return dir( elem, "parentNode", until );
3105	},
3106	next: function( elem ) {
3107		return sibling( elem, "nextSibling" );
3108	},
3109	prev: function( elem ) {
3110		return sibling( elem, "previousSibling" );
3111	},
3112	nextAll: function( elem ) {
3113		return dir( elem, "nextSibling" );
3114	},
3115	prevAll: function( elem ) {
3116		return dir( elem, "previousSibling" );
3117	},
3118	nextUntil: function( elem, i, until ) {
3119		return dir( elem, "nextSibling", until );
3120	},
3121	prevUntil: function( elem, i, until ) {
3122		return dir( elem, "previousSibling", until );
3123	},
3124	siblings: function( elem ) {
3125		return siblings( ( elem.parentNode || {} ).firstChild, elem );
3126	},
3127	children: function( elem ) {
3128		return siblings( elem.firstChild );
3129	},
3130	contents: function( elem ) {
3131        if ( nodeName( elem, "iframe" ) ) {
3132            return elem.contentDocument;
3133        }
3134
3135        // Support: IE 9 - 11 only, iOS 7 only, Android Browser <=4.3 only
3136        // Treat the template element as a regular one in browsers that
3137        // don't support it.
3138        if ( nodeName( elem, "template" ) ) {
3139            elem = elem.content || elem;
3140        }
3141
3142        return jQuery.merge( [], elem.childNodes );
3143	}
3144}, function( name, fn ) {
3145	jQuery.fn[ name ] = function( until, selector ) {
3146		var matched = jQuery.map( this, fn, until );
3147
3148		if ( name.slice( -5 ) !== "Until" ) {
3149			selector = until;
3150		}
3151
3152		if ( selector && typeof selector === "string" ) {
3153			matched = jQuery.filter( selector, matched );
3154		}
3155
3156		if ( this.length > 1 ) {
3157
3158			// Remove duplicates
3159			if ( !guaranteedUnique[ name ] ) {
3160				jQuery.uniqueSort( matched );
3161			}
3162
3163			// Reverse order for parents* and prev-derivatives
3164			if ( rparentsprev.test( name ) ) {
3165				matched.reverse();
3166			}
3167		}
3168
3169		return this.pushStack( matched );
3170	};
3171} );
3172var rnothtmlwhite = ( /[^\x20\t\r\n\f]+/g );
3173
3174
3175
3176// Convert String-formatted options into Object-formatted ones
3177function createOptions( options ) {
3178	var object = {};
3179	jQuery.each( options.match( rnothtmlwhite ) || [], function( _, flag ) {
3180		object[ flag ] = true;
3181	} );
3182	return object;
3183}
3184
3185/*
3186 * Create a callback list using the following parameters:
3187 *
3188 *	options: an optional list of space-separated options that will change how
3189 *			the callback list behaves or a more traditional option object
3190 *
3191 * By default a callback list will act like an event callback list and can be
3192 * "fired" multiple times.
3193 *
3194 * Possible options:
3195 *
3196 *	once:			will ensure the callback list can only be fired once (like a Deferred)
3197 *
3198 *	memory:			will keep track of previous values and will call any callback added
3199 *					after the list has been fired right away with the latest "memorized"
3200 *					values (like a Deferred)
3201 *
3202 *	unique:			will ensure a callback can only be added once (no duplicate in the list)
3203 *
3204 *	stopOnFalse:	interrupt callings when a callback returns false
3205 *
3206 */
3207jQuery.Callbacks = function( options ) {
3208
3209	// Convert options from String-formatted to Object-formatted if needed
3210	// (we check in cache first)
3211	options = typeof options === "string" ?
3212		createOptions( options ) :
3213		jQuery.extend( {}, options );
3214
3215	var // Flag to know if list is currently firing
3216		firing,
3217
3218		// Last fire value for non-forgettable lists
3219		memory,
3220
3221		// Flag to know if list was already fired
3222		fired,
3223
3224		// Flag to prevent firing
3225		locked,
3226
3227		// Actual callback list
3228		list = [],
3229
3230		// Queue of execution data for repeatable lists
3231		queue = [],
3232
3233		// Index of currently firing callback (modified by add/remove as needed)
3234		firingIndex = -1,
3235
3236		// Fire callbacks
3237		fire = function() {
3238
3239			// Enforce single-firing
3240			locked = locked || options.once;
3241
3242			// Execute callbacks for all pending executions,
3243			// respecting firingIndex overrides and runtime changes
3244			fired = firing = true;
3245			for ( ; queue.length; firingIndex = -1 ) {
3246				memory = queue.shift();
3247				while ( ++firingIndex < list.length ) {
3248
3249					// Run callback and check for early termination
3250					if ( list[ firingIndex ].apply( memory[ 0 ], memory[ 1 ] ) === false &&
3251						options.stopOnFalse ) {
3252
3253						// Jump to end and forget the data so .add doesn't re-fire
3254						firingIndex = list.length;
3255						memory = false;
vendor: 4,918 bytes, lines 3256-3465
3256					}
3257				}
3258			}
3259
3260			// Forget the data if we're done with it
3261			if ( !options.memory ) {
3262				memory = false;
3263			}
3264
3265			firing = false;
3266
3267			// Clean up if we're done firing for good
3268			if ( locked ) {
3269
3270				// Keep an empty list if we have data for future add calls
3271				if ( memory ) {
3272					list = [];
3273
3274				// Otherwise, this object is spent
3275				} else {
3276					list = "";
3277				}
3278			}
3279		},
3280
3281		// Actual Callbacks object
3282		self = {
3283
3284			// Add a callback or a collection of callbacks to the list
3285			add: function() {
3286				if ( list ) {
3287
3288					// If we have memory from a past run, we should fire after adding
3289					if ( memory && !firing ) {
3290						firingIndex = list.length - 1;
3291						queue.push( memory );
3292					}
3293
3294					( function add( args ) {
3295						jQuery.each( args, function( _, arg ) {
3296							if ( isFunction( arg ) ) {
3297								if ( !options.unique || !self.has( arg ) ) {
3298									list.push( arg );
3299								}
3300							} else if ( arg && arg.length && toType( arg ) !== "string" ) {
3301
3302								// Inspect recursively
3303								add( arg );
3304							}
3305						} );
3306					} )( arguments );
3307
3308					if ( memory && !firing ) {
3309						fire();
3310					}
3311				}
3312				return this;
3313			},
3314
3315			// Remove a callback from the list
3316			remove: function() {
3317				jQuery.each( arguments, function( _, arg ) {
3318					var index;
3319					while ( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
3320						list.splice( index, 1 );
3321
3322						// Handle firing indexes
3323						if ( index <= firingIndex ) {
3324							firingIndex--;
3325						}
3326					}
3327				} );
3328				return this;
3329			},
3330
3331			// Check if a given callback is in the list.
3332			// If no argument is given, return whether or not list has callbacks attached.
3333			has: function( fn ) {
3334				return fn ?
3335					jQuery.inArray( fn, list ) > -1 :
3336					list.length > 0;
3337			},
3338
3339			// Remove all callbacks from the list
3340			empty: function() {
3341				if ( list ) {
3342					list = [];
3343				}
3344				return this;
3345			},
3346
3347			// Disable .fire and .add
3348			// Abort any current/pending executions
3349			// Clear all callbacks and values
3350			disable: function() {
3351				locked = queue = [];
3352				list = memory = "";
3353				return this;
3354			},
3355			disabled: function() {
3356				return !list;
3357			},
3358
3359			// Disable .fire
3360			// Also disable .add unless we have memory (since it would have no effect)
3361			// Abort any pending executions
3362			lock: function() {
3363				locked = queue = [];
3364				if ( !memory && !firing ) {
3365					list = memory = "";
3366				}
3367				return this;
3368			},
3369			locked: function() {
3370				return !!locked;
3371			},
3372
3373			// Call all callbacks with the given context and arguments
3374			fireWith: function( context, args ) {
3375				if ( !locked ) {
3376					args = args || [];
3377					args = [ context, args.slice ? args.slice() : args ];
3378					queue.push( args );
3379					if ( !firing ) {
3380						fire();
3381					}
3382				}
3383				return this;
3384			},
3385
3386			// Call all the callbacks with the given arguments
3387			fire: function() {
3388				self.fireWith( this, arguments );
3389				return this;
3390			},
3391
3392			// To know if the callbacks have already been called at least once
3393			fired: function() {
3394				return !!fired;
3395			}
3396		};
3397
3398	return self;
3399};
3400
3401
3402function Identity( v ) {
3403	return v;
3404}
3405function Thrower( ex ) {
3406	throw ex;
3407}
3408
3409function adoptValue( value, resolve, reject, noValue ) {
3410	var method;
3411
3412	try {
3413
3414		// Check for promise aspect first to privilege synchronous behavior
3415		if ( value && isFunction( ( method = value.promise ) ) ) {
3416			method.call( value ).done( resolve ).fail( reject );
3417
3418		// Other thenables
3419		} else if ( value && isFunction( ( method = value.then ) ) ) {
3420			method.call( value, resolve, reject );
3421
3422		// Other non-thenables
3423		} else {
3424
3425			// Control `resolve` arguments by letting Array#slice cast boolean `noValue` to integer:
3426			// * false: [ value ].slice( 0 ) => resolve( value )
3427			// * true: [ value ].slice( 1 ) => resolve()
3428			resolve.apply( undefined, [ value ].slice( noValue ) );
3429		}
3430
3431	// For Promises/A+, convert exceptions into rejections
3432	// Since jQuery.when doesn't unwrap thenables, we can skip the extra checks appearing in
3433	// Deferred#then to conditionally suppress rejection.
3434	} catch ( value ) {
3435
3436		// Support: Android 4.0 only
3437		// Strict mode functions invoked without .call/.apply get global-object context
3438		reject.apply( undefined, [ value ] );
3439	}
3440}
3441
3442jQuery.extend( {
3443
3444	Deferred: function( func ) {
3445		var tuples = [
3446
3447				// action, add listener, callbacks,
3448				// ... .then handlers, argument index, [final state]
3449				[ "notify", "progress", jQuery.Callbacks( "memory" ),
3450					jQuery.Callbacks( "memory" ), 2 ],
3451				[ "resolve", "done", jQuery.Callbacks( "once memory" ),
3452					jQuery.Callbacks( "once memory" ), 0, "resolved" ],
3453				[ "reject", "fail", jQuery.Callbacks( "once memory" ),
3454					jQuery.Callbacks( "once memory" ), 1, "rejected" ]
3455			],
3456			state = "pending",
3457			promise = {
3458				state: function() {
3459					return state;
3460				},
3461				always: function() {
3462					deferred.done( arguments ).fail( arguments );
3463					return this;
3464				},
3465				"catch": function( fn ) {
vendor: 15,167 bytes, lines 3466-4057
3466					return promise.then( null, fn );
3467				},
3468
3469				// Keep pipe for back-compat
3470				pipe: function( /* fnDone, fnFail, fnProgress */ ) {
3471					var fns = arguments;
3472
3473					return jQuery.Deferred( function( newDefer ) {
3474						jQuery.each( tuples, function( i, tuple ) {
3475
3476							// Map tuples (progress, done, fail) to arguments (done, fail, progress)
3477							var fn = isFunction( fns[ tuple[ 4 ] ] ) && fns[ tuple[ 4 ] ];
3478
3479							// deferred.progress(function() { bind to newDefer or newDefer.notify })
3480							// deferred.done(function() { bind to newDefer or newDefer.resolve })
3481							// deferred.fail(function() { bind to newDefer or newDefer.reject })
3482							deferred[ tuple[ 1 ] ]( function() {
3483								var returned = fn && fn.apply( this, arguments );
3484								if ( returned && isFunction( returned.promise ) ) {
3485									returned.promise()
3486										.progress( newDefer.notify )
3487										.done( newDefer.resolve )
3488										.fail( newDefer.reject );
3489								} else {
3490									newDefer[ tuple[ 0 ] + "With" ](
3491										this,
3492										fn ? [ returned ] : arguments
3493									);
3494								}
3495							} );
3496						} );
3497						fns = null;
3498					} ).promise();
3499				},
3500				then: function( onFulfilled, onRejected, onProgress ) {
3501					var maxDepth = 0;
3502					function resolve( depth, deferred, handler, special ) {
3503						return function() {
3504							var that = this,
3505								args = arguments,
3506								mightThrow = function() {
3507									var returned, then;
3508
3509									// Support: Promises/A+ section 2.3.3.3.3
3510									// https://promisesaplus.com/#point-59
3511									// Ignore double-resolution attempts
3512									if ( depth < maxDepth ) {
3513										return;
3514									}
3515
3516									returned = handler.apply( that, args );
3517
3518									// Support: Promises/A+ section 2.3.1
3519									// https://promisesaplus.com/#point-48
3520									if ( returned === deferred.promise() ) {
3521										throw new TypeError( "Thenable self-resolution" );
3522									}
3523
3524									// Support: Promises/A+ sections 2.3.3.1, 3.5
3525									// https://promisesaplus.com/#point-54
3526									// https://promisesaplus.com/#point-75
3527									// Retrieve `then` only once
3528									then = returned &&
3529
3530										// Support: Promises/A+ section 2.3.4
3531										// https://promisesaplus.com/#point-64
3532										// Only check objects and functions for thenability
3533										( typeof returned === "object" ||
3534											typeof returned === "function" ) &&
3535										returned.then;
3536
3537									// Handle a returned thenable
3538									if ( isFunction( then ) ) {
3539
3540										// Special processors (notify) just wait for resolution
3541										if ( special ) {
3542											then.call(
3543												returned,
3544												resolve( maxDepth, deferred, Identity, special ),
3545												resolve( maxDepth, deferred, Thrower, special )
3546											);
3547
3548										// Normal processors (resolve) also hook into progress
3549										} else {
3550
3551											// ...and disregard older resolution values
3552											maxDepth++;
3553
3554											then.call(
3555												returned,
3556												resolve( maxDepth, deferred, Identity, special ),
3557												resolve( maxDepth, deferred, Thrower, special ),
3558												resolve( maxDepth, deferred, Identity,
3559													deferred.notifyWith )
3560											);
3561										}
3562
3563									// Handle all other returned values
3564									} else {
3565
3566										// Only substitute handlers pass on context
3567										// and multiple values (non-spec behavior)
3568										if ( handler !== Identity ) {
3569											that = undefined;
3570											args = [ returned ];
3571										}
3572
3573										// Process the value(s)
3574										// Default process is resolve
3575										( special || deferred.resolveWith )( that, args );
3576									}
3577								},
3578
3579								// Only normal processors (resolve) catch and reject exceptions
3580								process = special ?
3581									mightThrow :
3582									function() {
3583										try {
3584											mightThrow();
3585										} catch ( e ) {
3586
3587											if ( jQuery.Deferred.exceptionHook ) {
3588												jQuery.Deferred.exceptionHook( e,
3589													process.stackTrace );
3590											}
3591
3592											// Support: Promises/A+ section 2.3.3.3.4.1
3593											// https://promisesaplus.com/#point-61
3594											// Ignore post-resolution exceptions
3595											if ( depth + 1 >= maxDepth ) {
3596
3597												// Only substitute handlers pass on context
3598												// and multiple values (non-spec behavior)
3599												if ( handler !== Thrower ) {
3600													that = undefined;
3601													args = [ e ];
3602												}
3603
3604												deferred.rejectWith( that, args );
3605											}
3606										}
3607									};
3608
3609							// Support: Promises/A+ section 2.3.3.3.1
3610							// https://promisesaplus.com/#point-57
3611							// Re-resolve promises immediately to dodge false rejection from
3612							// subsequent errors
3613							if ( depth ) {
3614								process();
3615							} else {
3616
3617								// Call an optional hook to record the stack, in case of exception
3618								// since it's otherwise lost when execution goes async
3619								if ( jQuery.Deferred.getStackHook ) {
3620									process.stackTrace = jQuery.Deferred.getStackHook();
3621								}
3622								window.setTimeout( process );
3623							}
3624						};
3625					}
3626
3627					return jQuery.Deferred( function( newDefer ) {
3628
3629						// progress_handlers.add( ... )
3630						tuples[ 0 ][ 3 ].add(
3631							resolve(
3632								0,
3633								newDefer,
3634								isFunction( onProgress ) ?
3635									onProgress :
3636									Identity,
3637								newDefer.notifyWith
3638							)
3639						);
3640
3641						// fulfilled_handlers.add( ... )
3642						tuples[ 1 ][ 3 ].add(
3643							resolve(
3644								0,
3645								newDefer,
3646								isFunction( onFulfilled ) ?
3647									onFulfilled :
3648									Identity
3649							)
3650						);
3651
3652						// rejected_handlers.add( ... )
3653						tuples[ 2 ][ 3 ].add(
3654							resolve(
3655								0,
3656								newDefer,
3657								isFunction( onRejected ) ?
3658									onRejected :
3659									Thrower
3660							)
3661						);
3662					} ).promise();
3663				},
3664
3665				// Get a promise for this deferred
3666				// If obj is provided, the promise aspect is added to the object
3667				promise: function( obj ) {
3668					return obj != null ? jQuery.extend( obj, promise ) : promise;
3669				}
3670			},
3671			deferred = {};
3672
3673		// Add list-specific methods
3674		jQuery.each( tuples, function( i, tuple ) {
3675			var list = tuple[ 2 ],
3676				stateString = tuple[ 5 ];
3677
3678			// promise.progress = list.add
3679			// promise.done = list.add
3680			// promise.fail = list.add
3681			promise[ tuple[ 1 ] ] = list.add;
3682
3683			// Handle state
3684			if ( stateString ) {
3685				list.add(
3686					function() {
3687
3688						// state = "resolved" (i.e., fulfilled)
3689						// state = "rejected"
3690						state = stateString;
3691					},
3692
3693					// rejected_callbacks.disable
3694					// fulfilled_callbacks.disable
3695					tuples[ 3 - i ][ 2 ].disable,
3696
3697					// rejected_handlers.disable
3698					// fulfilled_handlers.disable
3699					tuples[ 3 - i ][ 3 ].disable,
3700
3701					// progress_callbacks.lock
3702					tuples[ 0 ][ 2 ].lock,
3703
3704					// progress_handlers.lock
3705					tuples[ 0 ][ 3 ].lock
3706				);
3707			}
3708
3709			// progress_handlers.fire
3710			// fulfilled_handlers.fire
3711			// rejected_handlers.fire
3712			list.add( tuple[ 3 ].fire );
3713
3714			// deferred.notify = function() { deferred.notifyWith(...) }
3715			// deferred.resolve = function() { deferred.resolveWith(...) }
3716			// deferred.reject = function() { deferred.rejectWith(...) }
3717			deferred[ tuple[ 0 ] ] = function() {
3718				deferred[ tuple[ 0 ] + "With" ]( this === deferred ? undefined : this, arguments );
3719				return this;
3720			};
3721
3722			// deferred.notifyWith = list.fireWith
3723			// deferred.resolveWith = list.fireWith
3724			// deferred.rejectWith = list.fireWith
3725			deferred[ tuple[ 0 ] + "With" ] = list.fireWith;
3726		} );
3727
3728		// Make the deferred a promise
3729		promise.promise( deferred );
3730
3731		// Call given func if any
3732		if ( func ) {
3733			func.call( deferred, deferred );
3734		}
3735
3736		// All done!
3737		return deferred;
3738	},
3739
3740	// Deferred helper
3741	when: function( singleValue ) {
3742		var
3743
3744			// count of uncompleted subordinates
3745			remaining = arguments.length,
3746
3747			// count of unprocessed arguments
3748			i = remaining,
3749
3750			// subordinate fulfillment data
3751			resolveContexts = Array( i ),
3752			resolveValues = slice.call( arguments ),
3753
3754			// the master Deferred
3755			master = jQuery.Deferred(),
3756
3757			// subordinate callback factory
3758			updateFunc = function( i ) {
3759				return function( value ) {
3760					resolveContexts[ i ] = this;
3761					resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
3762					if ( !( --remaining ) ) {
3763						master.resolveWith( resolveContexts, resolveValues );
3764					}
3765				};
3766			};
3767
3768		// Single- and empty arguments are adopted like Promise.resolve
3769		if ( remaining <= 1 ) {
3770			adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,
3771				!remaining );
3772
3773			// Use .then() to unwrap secondary thenables (cf. gh-3000)
3774			if ( master.state() === "pending" ||
3775				isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
3776
3777				return master.then();
3778			}
3779		}
3780
3781		// Multiple arguments are aggregated like Promise.all array elements
3782		while ( i-- ) {
3783			adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
3784		}
3785
3786		return master.promise();
3787	}
3788} );
3789
3790
3791// These usually indicate a programmer mistake during development,
3792// warn about them ASAP rather than swallowing them by default.
3793var rerrorNames = /^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;
3794
3795jQuery.Deferred.exceptionHook = function( error, stack ) {
3796
3797	// Support: IE 8 - 9 only
3798	// Console exists when dev tools are open, which can happen at any time
3799	if ( window.console && window.console.warn && error && rerrorNames.test( error.name ) ) {
3800		window.console.warn( "jQuery.Deferred exception: " + error.message, error.stack, stack );
3801	}
3802};
3803
3804
3805
3806
3807jQuery.readyException = function( error ) {
3808	window.setTimeout( function() {
3809		throw error;
3810	} );
3811};
3812
3813
3814
3815
3816// The deferred used on DOM ready
3817var readyList = jQuery.Deferred();
3818
3819jQuery.fn.ready = function( fn ) {
3820
3821	readyList
3822		.then( fn )
3823
3824		// Wrap jQuery.readyException in a function so that the lookup
3825		// happens at the time of error handling instead of callback
3826		// registration.
3827		.catch( function( error ) {
3828			jQuery.readyException( error );
3829		} );
3830
3831	return this;
3832};
3833
3834jQuery.extend( {
3835
3836	// Is the DOM ready to be used? Set to true once it occurs.
3837	isReady: false,
3838
3839	// A counter to track how many items to wait for before
3840	// the ready event fires. See #6781
3841	readyWait: 1,
3842
3843	// Handle when the DOM is ready
3844	ready: function( wait ) {
3845
3846		// Abort if there are pending holds or we're already ready
3847		if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
3848			return;
3849		}
3850
3851		// Remember that the DOM is ready
3852		jQuery.isReady = true;
3853
3854		// If a normal DOM Ready event fired, decrement, and wait if need be
3855		if ( wait !== true && --jQuery.readyWait > 0 ) {
3856			return;
3857		}
3858
3859		// If there are functions bound, to execute
3860		readyList.resolveWith( document, [ jQuery ] );
3861	}
3862} );
3863
3864jQuery.ready.then = readyList.then;
3865
3866// The ready event handler and self cleanup method
3867function completed() {
3868	document.removeEventListener( "DOMContentLoaded", completed );
3869	window.removeEventListener( "load", completed );
3870	jQuery.ready();
3871}
3872
3873// Catch cases where $(document).ready() is called
3874// after the browser event has already occurred.
3875// Support: IE <=9 - 10 only
3876// Older IE sometimes signals "interactive" too soon
3877if ( document.readyState === "complete" ||
3878	( document.readyState !== "loading" && !document.documentElement.doScroll ) ) {
3879
3880	// Handle it asynchronously to allow scripts the opportunity to delay ready
3881	window.setTimeout( jQuery.ready );
3882
3883} else {
3884
3885	// Use the handy event callback
3886	document.addEventListener( "DOMContentLoaded", completed );
3887
3888	// A fallback to window.onload, that will always work
3889	window.addEventListener( "load", completed );
3890}
3891
3892
3893
3894
3895// Multifunctional method to get and set values of a collection
3896// The value/s can optionally be executed if it's a function
3897var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
3898	var i = 0,
3899		len = elems.length,
3900		bulk = key == null;
3901
3902	// Sets many values
3903	if ( toType( key ) === "object" ) {
3904		chainable = true;
3905		for ( i in key ) {
3906			access( elems, fn, i, key[ i ], true, emptyGet, raw );
3907		}
3908
3909	// Sets one value
3910	} else if ( value !== undefined ) {
3911		chainable = true;
3912
3913		if ( !isFunction( value ) ) {
3914			raw = true;
3915		}
3916
3917		if ( bulk ) {
3918
3919			// Bulk operations run against the entire set
3920			if ( raw ) {
3921				fn.call( elems, value );
3922				fn = null;
3923
3924			// ...except when executing function values
3925			} else {
3926				bulk = fn;
3927				fn = function( elem, key, value ) {
3928					return bulk.call( jQuery( elem ), value );
3929				};
3930			}
3931		}
3932
3933		if ( fn ) {
3934			for ( ; i < len; i++ ) {
3935				fn(
3936					elems[ i ], key, raw ?
3937					value :
3938					value.call( elems[ i ], i, fn( elems[ i ], key ) )
3939				);
3940			}
3941		}
3942	}
3943
3944	if ( chainable ) {
3945		return elems;
3946	}
3947
3948	// Gets
3949	if ( bulk ) {
3950		return fn.call( elems );
3951	}
3952
3953	return len ? fn( elems[ 0 ], key ) : emptyGet;
3954};
3955
3956
3957// Matches dashed string for camelizing
3958var rmsPrefix = /^-ms-/,
3959	rdashAlpha = /-([a-z])/g;
3960
3961// Used by camelCase as callback to replace()
3962function fcamelCase( all, letter ) {
3963	return letter.toUpperCase();
3964}
3965
3966// Convert dashed to camelCase; used by the css and data modules
3967// Support: IE <=9 - 11, Edge 12 - 15
3968// Microsoft forgot to hump their vendor prefix (#9572)
3969function camelCase( string ) {
3970	return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
3971}
3972var acceptData = function( owner ) {
3973
3974	// Accepts only:
3975	//  - Node
3976	//    - Node.ELEMENT_NODE
3977	//    - Node.DOCUMENT_NODE
3978	//  - Object
3979	//    - Any
3980	return owner.nodeType === 1 || owner.nodeType === 9 || !( +owner.nodeType );
3981};
3982
3983
3984
3985
3986function Data() {
3987	this.expando = jQuery.expando + Data.uid++;
3988}
3989
3990Data.uid = 1;
3991
3992Data.prototype = {
3993
3994	cache: function( owner ) {
3995
3996		// Check if the owner object already has a cache
3997		var value = owner[ this.expando ];
3998
3999		// If not, create one
4000		if ( !value ) {
4001			value = {};
4002
4003			// We can accept data for non-element nodes in modern browsers,
4004			// but we should not, see #8335.
4005			// Always return an empty object.
4006			if ( acceptData( owner ) ) {
4007
4008				// If it is a node unlikely to be stringify-ed or looped over
4009				// use plain assignment
4010				if ( owner.nodeType ) {
4011					owner[ this.expando ] = value;
4012
4013				// Otherwise secure it in a non-enumerable property
4014				// configurable must be true to allow the property to be
4015				// deleted when data is removed
4016				} else {
4017					Object.defineProperty( owner, this.expando, {
4018						value: value,
4019						configurable: true
4020					} );
4021				}
4022			}
4023		}
4024
4025		return value;
4026	},
4027	set: function( owner, data, value ) {
4028		var prop,
4029			cache = this.cache( owner );
4030
4031		// Handle: [ owner, key, value ] args
4032		// Always use camelCase key (gh-2257)
4033		if ( typeof data === "string" ) {
4034			cache[ camelCase( data ) ] = value;
4035
4036		// Handle: [ owner, { properties } ] args
4037		} else {
4038
4039			// Copy the properties one-by-one to the cache object
4040			for ( prop in data ) {
4041				cache[ camelCase( prop ) ] = data[ prop ];
4042			}
4043		}
4044		return cache;
4045	},
4046	get: function( owner, key ) {
4047		return key === undefined ?
4048			this.cache( owner ) :
4049
4050			// Always use camelCase key (gh-2257)
4051			owner[ this.expando ] && owner[ this.expando ][ camelCase( key ) ];
4052	},
4053	access: function( owner, key, value ) {
4054
4055		// In cases where either:
4056		//
4057		//   1. No key was specified
vendor: 8,694 bytes, lines 4058-4416
4058		//   2. A string key was specified, but no value provided
4059		//
4060		// Take the "read" path and allow the get method to determine
4061		// which value to return, respectively either:
4062		//
4063		//   1. The entire cache object
4064		//   2. The data stored at the key
4065		//
4066		if ( key === undefined ||
4067				( ( key && typeof key === "string" ) && value === undefined ) ) {
4068
4069			return this.get( owner, key );
4070		}
4071
4072		// When the key is not a string, or both a key and value
4073		// are specified, set or extend (existing objects) with either:
4074		//
4075		//   1. An object of properties
4076		//   2. A key and value
4077		//
4078		this.set( owner, key, value );
4079
4080		// Since the "set" path can have two possible entry points
4081		// return the expected data based on which path was taken[*]
4082		return value !== undefined ? value : key;
4083	},
4084	remove: function( owner, key ) {
4085		var i,
4086			cache = owner[ this.expando ];
4087
4088		if ( cache === undefined ) {
4089			return;
4090		}
4091
4092		if ( key !== undefined ) {
4093
4094			// Support array or space separated string of keys
4095			if ( Array.isArray( key ) ) {
4096
4097				// If key is an array of keys...
4098				// We always set camelCase keys, so remove that.
4099				key = key.map( camelCase );
4100			} else {
4101				key = camelCase( key );
4102
4103				// If a key with the spaces exists, use it.
4104				// Otherwise, create an array by matching non-whitespace
4105				key = key in cache ?
4106					[ key ] :
4107					( key.match( rnothtmlwhite ) || [] );
4108			}
4109
4110			i = key.length;
4111
4112			while ( i-- ) {
4113				delete cache[ key[ i ] ];
4114			}
4115		}
4116
4117		// Remove the expando if there's no more data
4118		if ( key === undefined || jQuery.isEmptyObject( cache ) ) {
4119
4120			// Support: Chrome <=35 - 45
4121			// Webkit & Blink performance suffers when deleting properties
4122			// from DOM nodes, so set to undefined instead
4123			// https://bugs.chromium.org/p/chromium/issues/detail?id=378607 (bug restricted)
4124			if ( owner.nodeType ) {
4125				owner[ this.expando ] = undefined;
4126			} else {
4127				delete owner[ this.expando ];
4128			}
4129		}
4130	},
4131	hasData: function( owner ) {
4132		var cache = owner[ this.expando ];
4133		return cache !== undefined && !jQuery.isEmptyObject( cache );
4134	}
4135};
4136var dataPriv = new Data();
4137
4138var dataUser = new Data();
4139
4140
4141
4142//	Implementation Summary
4143//
4144//	1. Enforce API surface and semantic compatibility with 1.9.x branch
4145//	2. Improve the module's maintainability by reducing the storage
4146//		paths to a single mechanism.
4147//	3. Use the same single mechanism to support "private" and "user" data.
4148//	4. _Never_ expose "private" data to user code (TODO: Drop _data, _removeData)
4149//	5. Avoid exposing implementation details on user objects (eg. expando properties)
4150//	6. Provide a clear path for implementation upgrade to WeakMap in 2014
4151
4152var rbrace = /^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,
4153	rmultiDash = /[A-Z]/g;
4154
4155function getData( data ) {
4156	if ( data === "true" ) {
4157		return true;
4158	}
4159
4160	if ( data === "false" ) {
4161		return false;
4162	}
4163
4164	if ( data === "null" ) {
4165		return null;
4166	}
4167
4168	// Only convert to a number if it doesn't change the string
4169	if ( data === +data + "" ) {
4170		return +data;
4171	}
4172
4173	if ( rbrace.test( data ) ) {
4174		return JSON.parse( data );
4175	}
4176
4177	return data;
4178}
4179
4180function dataAttr( elem, key, data ) {
4181	var name;
4182
4183	// If nothing was found internally, try to fetch any
4184	// data from the HTML5 data-* attribute
4185	if ( data === undefined && elem.nodeType === 1 ) {
4186		name = "data-" + key.replace( rmultiDash, "-$&" ).toLowerCase();
4187		data = elem.getAttribute( name );
4188
4189		if ( typeof data === "string" ) {
4190			try {
4191				data = getData( data );
4192			} catch ( e ) {}
4193
4194			// Make sure we set the data so it isn't changed later
4195			dataUser.set( elem, key, data );
4196		} else {
4197			data = undefined;
4198		}
4199	}
4200	return data;
4201}
4202
4203jQuery.extend( {
4204	hasData: function( elem ) {
4205		return dataUser.hasData( elem ) || dataPriv.hasData( elem );
4206	},
4207
4208	data: function( elem, name, data ) {
4209		return dataUser.access( elem, name, data );
4210	},
4211
4212	removeData: function( elem, name ) {
4213		dataUser.remove( elem, name );
4214	},
4215
4216	// TODO: Now that all calls to _data and _removeData have been replaced
4217	// with direct calls to dataPriv methods, these can be deprecated.
4218	_data: function( elem, name, data ) {
4219		return dataPriv.access( elem, name, data );
4220	},
4221
4222	_removeData: function( elem, name ) {
4223		dataPriv.remove( elem, name );
4224	}
4225} );
4226
4227jQuery.fn.extend( {
4228	data: function( key, value ) {
4229		var i, name, data,
4230			elem = this[ 0 ],
4231			attrs = elem && elem.attributes;
4232
4233		// Gets all values
4234		if ( key === undefined ) {
4235			if ( this.length ) {
4236				data = dataUser.get( elem );
4237
4238				if ( elem.nodeType === 1 && !dataPriv.get( elem, "hasDataAttrs" ) ) {
4239					i = attrs.length;
4240					while ( i-- ) {
4241
4242						// Support: IE 11 only
4243						// The attrs elements can be null (#14894)
4244						if ( attrs[ i ] ) {
4245							name = attrs[ i ].name;
4246							if ( name.indexOf( "data-" ) === 0 ) {
4247								name = camelCase( name.slice( 5 ) );
4248								dataAttr( elem, name, data[ name ] );
4249							}
4250						}
4251					}
4252					dataPriv.set( elem, "hasDataAttrs", true );
4253				}
4254			}
4255
4256			return data;
4257		}
4258
4259		// Sets multiple values
4260		if ( typeof key === "object" ) {
4261			return this.each( function() {
4262				dataUser.set( this, key );
4263			} );
4264		}
4265
4266		return access( this, function( value ) {
4267			var data;
4268
4269			// The calling jQuery object (element matches) is not empty
4270			// (and therefore has an element appears at this[ 0 ]) and the
4271			// `value` parameter was not undefined. An empty jQuery object
4272			// will result in `undefined` for elem = this[ 0 ] which will
4273			// throw an exception if an attempt to read a data cache is made.
4274			if ( elem && value === undefined ) {
4275
4276				// Attempt to get data from the cache
4277				// The key will always be camelCased in Data
4278				data = dataUser.get( elem, key );
4279				if ( data !== undefined ) {
4280					return data;
4281				}
4282
4283				// Attempt to "discover" the data in
4284				// HTML5 custom data-* attrs
4285				data = dataAttr( elem, key );
4286				if ( data !== undefined ) {
4287					return data;
4288				}
4289
4290				// We tried really hard, but the data doesn't exist.
4291				return;
4292			}
4293
4294			// Set the data...
4295			this.each( function() {
4296
4297				// We always store the camelCased key
4298				dataUser.set( this, key, value );
4299			} );
4300		}, null, value, arguments.length > 1, null, true );
4301	},
4302
4303	removeData: function( key ) {
4304		return this.each( function() {
4305			dataUser.remove( this, key );
4306		} );
4307	}
4308} );
4309
4310
4311jQuery.extend( {
4312	queue: function( elem, type, data ) {
4313		var queue;
4314
4315		if ( elem ) {
4316			type = ( type || "fx" ) + "queue";
4317			queue = dataPriv.get( elem, type );
4318
4319			// Speed up dequeue by getting out quickly if this is just a lookup
4320			if ( data ) {
4321				if ( !queue || Array.isArray( data ) ) {
4322					queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
4323				} else {
4324					queue.push( data );
4325				}
4326			}
4327			return queue || [];
4328		}
4329	},
4330
4331	dequeue: function( elem, type ) {
4332		type = type || "fx";
4333
4334		var queue = jQuery.queue( elem, type ),
4335			startLength = queue.length,
4336			fn = queue.shift(),
4337			hooks = jQuery._queueHooks( elem, type ),
4338			next = function() {
4339				jQuery.dequeue( elem, type );
4340			};
4341
4342		// If the fx queue is dequeued, always remove the progress sentinel
4343		if ( fn === "inprogress" ) {
4344			fn = queue.shift();
4345			startLength--;
4346		}
4347
4348		if ( fn ) {
4349
4350			// Add a progress sentinel to prevent the fx queue from being
4351			// automatically dequeued
4352			if ( type === "fx" ) {
4353				queue.unshift( "inprogress" );
4354			}
4355
4356			// Clear up the last queue stop function
4357			delete hooks.stop;
4358			fn.call( elem, next, hooks );
4359		}
4360
4361		if ( !startLength && hooks ) {
4362			hooks.empty.fire();
4363		}
4364	},
4365
4366	// Not public - generate a queueHooks object, or return the current one
4367	_queueHooks: function( elem, type ) {
4368		var key = type + "queueHooks";
4369		return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
4370			empty: jQuery.Callbacks( "once memory" ).add( function() {
4371				dataPriv.remove( elem, [ type + "queue", key ] );
4372			} )
4373		} );
4374	}
4375} );
4376
4377jQuery.fn.extend( {
4378	queue: function( type, data ) {
4379		var setter = 2;
4380
4381		if ( typeof type !== "string" ) {
4382			data = type;
4383			type = "fx";
4384			setter--;
4385		}
4386
4387		if ( arguments.length < setter ) {
4388			return jQuery.queue( this[ 0 ], type );
4389		}
4390
4391		return data === undefined ?
4392			this :
4393			this.each( function() {
4394				var queue = jQuery.queue( this, type, data );
4395
4396				// Ensure a hooks for this queue
4397				jQuery._queueHooks( this, type );
4398
4399				if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
4400					jQuery.dequeue( this, type );
4401				}
4402			} );
4403	},
4404	dequeue: function( type ) {
4405		return this.each( function() {
4406			jQuery.dequeue( this, type );
4407		} );
4408	},
4409	clearQueue: function( type ) {
4410		return this.queue( type || "fx", [] );
4411	},
4412
4413	// Get a promise resolved when queues of a certain type
4414	// are emptied (fx is the type by default)
4415	promise: function( type, obj ) {
4416		var tmp,
vendor: 37,137 bytes, lines 4417-5842
4417			count = 1,
4418			defer = jQuery.Deferred(),
4419			elements = this,
4420			i = this.length,
4421			resolve = function() {
4422				if ( !( --count ) ) {
4423					defer.resolveWith( elements, [ elements ] );
4424				}
4425			};
4426
4427		if ( typeof type !== "string" ) {
4428			obj = type;
4429			type = undefined;
4430		}
4431		type = type || "fx";
4432
4433		while ( i-- ) {
4434			tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
4435			if ( tmp && tmp.empty ) {
4436				count++;
4437				tmp.empty.add( resolve );
4438			}
4439		}
4440		resolve();
4441		return defer.promise( obj );
4442	}
4443} );
4444var pnum = ( /[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/ ).source;
4445
4446var rcssNum = new RegExp( "^(?:([+-])=|)(" + pnum + ")([a-z%]*)$", "i" );
4447
4448
4449var cssExpand = [ "Top", "Right", "Bottom", "Left" ];
4450
4451var isHiddenWithinTree = function( elem, el ) {
4452
4453		// isHiddenWithinTree might be called from jQuery#filter function;
4454		// in that case, element will be second argument
4455		elem = el || elem;
4456
4457		// Inline style trumps all
4458		return elem.style.display === "none" ||
4459			elem.style.display === "" &&
4460
4461			// Otherwise, check computed style
4462			// Support: Firefox <=43 - 45
4463			// Disconnected elements can have computed display: none, so first confirm that elem is
4464			// in the document.
4465			jQuery.contains( elem.ownerDocument, elem ) &&
4466
4467			jQuery.css( elem, "display" ) === "none";
4468	};
4469
4470var swap = function( elem, options, callback, args ) {
4471	var ret, name,
4472		old = {};
4473
4474	// Remember the old values, and insert the new ones
4475	for ( name in options ) {
4476		old[ name ] = elem.style[ name ];
4477		elem.style[ name ] = options[ name ];
4478	}
4479
4480	ret = callback.apply( elem, args || [] );
4481
4482	// Revert the old values
4483	for ( name in options ) {
4484		elem.style[ name ] = old[ name ];
4485	}
4486
4487	return ret;
4488};
4489
4490
4491
4492
4493function adjustCSS( elem, prop, valueParts, tween ) {
4494	var adjusted, scale,
4495		maxIterations = 20,
4496		currentValue = tween ?
4497			function() {
4498				return tween.cur();
4499			} :
4500			function() {
4501				return jQuery.css( elem, prop, "" );
4502			},
4503		initial = currentValue(),
4504		unit = valueParts && valueParts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
4505
4506		// Starting value computation is required for potential unit mismatches
4507		initialInUnit = ( jQuery.cssNumber[ prop ] || unit !== "px" && +initial ) &&
4508			rcssNum.exec( jQuery.css( elem, prop ) );
4509
4510	if ( initialInUnit && initialInUnit[ 3 ] !== unit ) {
4511
4512		// Support: Firefox <=54
4513		// Halve the iteration target value to prevent interference from CSS upper bounds (gh-2144)
4514		initial = initial / 2;
4515
4516		// Trust units reported by jQuery.css
4517		unit = unit || initialInUnit[ 3 ];
4518
4519		// Iteratively approximate from a nonzero starting point
4520		initialInUnit = +initial || 1;
4521
4522		while ( maxIterations-- ) {
4523
4524			// Evaluate and update our best guess (doubling guesses that zero out).
4525			// Finish if the scale equals or crosses 1 (making the old*new product non-positive).
4526			jQuery.style( elem, prop, initialInUnit + unit );
4527			if ( ( 1 - scale ) * ( 1 - ( scale = currentValue() / initial || 0.5 ) ) <= 0 ) {
4528				maxIterations = 0;
4529			}
4530			initialInUnit = initialInUnit / scale;
4531
4532		}
4533
4534		initialInUnit = initialInUnit * 2;
4535		jQuery.style( elem, prop, initialInUnit + unit );
4536
4537		// Make sure we update the tween properties later on
4538		valueParts = valueParts || [];
4539	}
4540
4541	if ( valueParts ) {
4542		initialInUnit = +initialInUnit || +initial || 0;
4543
4544		// Apply relative offset (+=/-=) if specified
4545		adjusted = valueParts[ 1 ] ?
4546			initialInUnit + ( valueParts[ 1 ] + 1 ) * valueParts[ 2 ] :
4547			+valueParts[ 2 ];
4548		if ( tween ) {
4549			tween.unit = unit;
4550			tween.start = initialInUnit;
4551			tween.end = adjusted;
4552		}
4553	}
4554	return adjusted;
4555}
4556
4557
4558var defaultDisplayMap = {};
4559
4560function getDefaultDisplay( elem ) {
4561	var temp,
4562		doc = elem.ownerDocument,
4563		nodeName = elem.nodeName,
4564		display = defaultDisplayMap[ nodeName ];
4565
4566	if ( display ) {
4567		return display;
4568	}
4569
4570	temp = doc.body.appendChild( doc.createElement( nodeName ) );
4571	display = jQuery.css( temp, "display" );
4572
4573	temp.parentNode.removeChild( temp );
4574
4575	if ( display === "none" ) {
4576		display = "block";
4577	}
4578	defaultDisplayMap[ nodeName ] = display;
4579
4580	return display;
4581}
4582
4583function showHide( elements, show ) {
4584	var display, elem,
4585		values = [],
4586		index = 0,
4587		length = elements.length;
4588
4589	// Determine new display value for elements that need to change
4590	for ( ; index < length; index++ ) {
4591		elem = elements[ index ];
4592		if ( !elem.style ) {
4593			continue;
4594		}
4595
4596		display = elem.style.display;
4597		if ( show ) {
4598
4599			// Since we force visibility upon cascade-hidden elements, an immediate (and slow)
4600			// check is required in this first loop unless we have a nonempty display value (either
4601			// inline or about-to-be-restored)
4602			if ( display === "none" ) {
4603				values[ index ] = dataPriv.get( elem, "display" ) || null;
4604				if ( !values[ index ] ) {
4605					elem.style.display = "";
4606				}
4607			}
4608			if ( elem.style.display === "" && isHiddenWithinTree( elem ) ) {
4609				values[ index ] = getDefaultDisplay( elem );
4610			}
4611		} else {
4612			if ( display !== "none" ) {
4613				values[ index ] = "none";
4614
4615				// Remember what we're overwriting
4616				dataPriv.set( elem, "display", display );
4617			}
4618		}
4619	}
4620
4621	// Set the display of the elements in a second loop to avoid constant reflow
4622	for ( index = 0; index < length; index++ ) {
4623		if ( values[ index ] != null ) {
4624			elements[ index ].style.display = values[ index ];
4625		}
4626	}
4627
4628	return elements;
4629}
4630
4631jQuery.fn.extend( {
4632	show: function() {
4633		return showHide( this, true );
4634	},
4635	hide: function() {
4636		return showHide( this );
4637	},
4638	toggle: function( state ) {
4639		if ( typeof state === "boolean" ) {
4640			return state ? this.show() : this.hide();
4641		}
4642
4643		return this.each( function() {
4644			if ( isHiddenWithinTree( this ) ) {
4645				jQuery( this ).show();
4646			} else {
4647				jQuery( this ).hide();
4648			}
4649		} );
4650	}
4651} );
4652var rcheckableType = ( /^(?:checkbox|radio)$/i );
4653
4654var rtagName = ( /<([a-z][^\/\0>\x20\t\r\n\f]+)/i );
4655
4656var rscriptType = ( /^$|^module$|\/(?:java|ecma)script/i );
4657
4658
4659
4660// We have to close these tags to support XHTML (#13200)
4661var wrapMap = {
4662
4663	// Support: IE <=9 only
4664	option: [ 1, "<select multiple='multiple'>", "</select>" ],
4665
4666	// XHTML parsers do not magically insert elements in the
4667	// same way that tag soup parsers do. So we cannot shorten
4668	// this by omitting <tbody> or other required elements.
4669	thead: [ 1, "<table>", "</table>" ],
4670	col: [ 2, "<table><colgroup>", "</colgroup></table>" ],
4671	tr: [ 2, "<table><tbody>", "</tbody></table>" ],
4672	td: [ 3, "<table><tbody><tr>", "</tr></tbody></table>" ],
4673
4674	_default: [ 0, "", "" ]
4675};
4676
4677// Support: IE <=9 only
4678wrapMap.optgroup = wrapMap.option;
4679
4680wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
4681wrapMap.th = wrapMap.td;
4682
4683
4684function getAll( context, tag ) {
4685
4686	// Support: IE <=9 - 11 only
4687	// Use typeof to avoid zero-argument method invocation on host objects (#15151)
4688	var ret;
4689
4690	if ( typeof context.getElementsByTagName !== "undefined" ) {
4691		ret = context.getElementsByTagName( tag || "*" );
4692
4693	} else if ( typeof context.querySelectorAll !== "undefined" ) {
4694		ret = context.querySelectorAll( tag || "*" );
4695
4696	} else {
4697		ret = [];
4698	}
4699
4700	if ( tag === undefined || tag && nodeName( context, tag ) ) {
4701		return jQuery.merge( [ context ], ret );
4702	}
4703
4704	return ret;
4705}
4706
4707
4708// Mark scripts as having already been evaluated
4709function setGlobalEval( elems, refElements ) {
4710	var i = 0,
4711		l = elems.length;
4712
4713	for ( ; i < l; i++ ) {
4714		dataPriv.set(
4715			elems[ i ],
4716			"globalEval",
4717			!refElements || dataPriv.get( refElements[ i ], "globalEval" )
4718		);
4719	}
4720}
4721
4722
4723var rhtml = /<|&#?\w+;/;
4724
4725function buildFragment( elems, context, scripts, selection, ignored ) {
4726	var elem, tmp, tag, wrap, contains, j,
4727		fragment = context.createDocumentFragment(),
4728		nodes = [],
4729		i = 0,
4730		l = elems.length;
4731
4732	for ( ; i < l; i++ ) {
4733		elem = elems[ i ];
4734
4735		if ( elem || elem === 0 ) {
4736
4737			// Add nodes directly
4738			if ( toType( elem ) === "object" ) {
4739
4740				// Support: Android <=4.0 only, PhantomJS 1 only
4741				// push.apply(_, arraylike) throws on ancient WebKit
4742				jQuery.merge( nodes, elem.nodeType ? [ elem ] : elem );
4743
4744			// Convert non-html into a text node
4745			} else if ( !rhtml.test( elem ) ) {
4746				nodes.push( context.createTextNode( elem ) );
4747
4748			// Convert html into DOM nodes
4749			} else {
4750				tmp = tmp || fragment.appendChild( context.createElement( "div" ) );
4751
4752				// Deserialize a standard representation
4753				tag = ( rtagName.exec( elem ) || [ "", "" ] )[ 1 ].toLowerCase();
4754				wrap = wrapMap[ tag ] || wrapMap._default;
4755				tmp.innerHTML = wrap[ 1 ] + jQuery.htmlPrefilter( elem ) + wrap[ 2 ];
4756
4757				// Descend through wrappers to the right content
4758				j = wrap[ 0 ];
4759				while ( j-- ) {
4760					tmp = tmp.lastChild;
4761				}
4762
4763				// Support: Android <=4.0 only, PhantomJS 1 only
4764				// push.apply(_, arraylike) throws on ancient WebKit
4765				jQuery.merge( nodes, tmp.childNodes );
4766
4767				// Remember the top-level container
4768				tmp = fragment.firstChild;
4769
4770				// Ensure the created nodes are orphaned (#12392)
4771				tmp.textContent = "";
4772			}
4773		}
4774	}
4775
4776	// Remove wrapper from fragment
4777	fragment.textContent = "";
4778
4779	i = 0;
4780	while ( ( elem = nodes[ i++ ] ) ) {
4781
4782		// Skip elements already in the context collection (trac-4087)
4783		if ( selection && jQuery.inArray( elem, selection ) > -1 ) {
4784			if ( ignored ) {
4785				ignored.push( elem );
4786			}
4787			continue;
4788		}
4789
4790		contains = jQuery.contains( elem.ownerDocument, elem );
4791
4792		// Append to fragment
4793		tmp = getAll( fragment.appendChild( elem ), "script" );
4794
4795		// Preserve script evaluation history
4796		if ( contains ) {
4797			setGlobalEval( tmp );
4798		}
4799
4800		// Capture executables
4801		if ( scripts ) {
4802			j = 0;
4803			while ( ( elem = tmp[ j++ ] ) ) {
4804				if ( rscriptType.test( elem.type || "" ) ) {
4805					scripts.push( elem );
4806				}
4807			}
4808		}
4809	}
4810
4811	return fragment;
4812}
4813
4814
4815( function() {
4816	var fragment = document.createDocumentFragment(),
4817		div = fragment.appendChild( document.createElement( "div" ) ),
4818		input = document.createElement( "input" );
4819
4820	// Support: Android 4.0 - 4.3 only
4821	// Check state lost if the name is set (#11217)
4822	// Support: Windows Web Apps (WWA)
4823	// `name` and `type` must use .setAttribute for WWA (#14901)
4824	input.setAttribute( "type", "radio" );
4825	input.setAttribute( "checked", "checked" );
4826	input.setAttribute( "name", "t" );
4827
4828	div.appendChild( input );
4829
4830	// Support: Android <=4.1 only
4831	// Older WebKit doesn't clone checked state correctly in fragments
4832	support.checkClone = div.cloneNode( true ).cloneNode( true ).lastChild.checked;
4833
4834	// Support: IE <=11 only
4835	// Make sure textarea (and checkbox) defaultValue is properly cloned
4836	div.innerHTML = "<textarea>x</textarea>";
4837	support.noCloneChecked = !!div.cloneNode( true ).lastChild.defaultValue;
4838} )();
4839var documentElement = document.documentElement;
4840
4841
4842
4843var
4844	rkeyEvent = /^key/,
4845	rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
4846	rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
4847
4848function returnTrue() {
4849	return true;
4850}
4851
4852function returnFalse() {
4853	return false;
4854}
4855
4856// Support: IE <=9 only
4857// See #13393 for more info
4858function safeActiveElement() {
4859	try {
4860		return document.activeElement;
4861	} catch ( err ) { }
4862}
4863
4864function on( elem, types, selector, data, fn, one ) {
4865	var origFn, type;
4866
4867	// Types can be a map of types/handlers
4868	if ( typeof types === "object" ) {
4869
4870		// ( types-Object, selector, data )
4871		if ( typeof selector !== "string" ) {
4872
4873			// ( types-Object, data )
4874			data = data || selector;
4875			selector = undefined;
4876		}
4877		for ( type in types ) {
4878			on( elem, type, selector, data, types[ type ], one );
4879		}
4880		return elem;
4881	}
4882
4883	if ( data == null && fn == null ) {
4884
4885		// ( types, fn )
4886		fn = selector;
4887		data = selector = undefined;
4888	} else if ( fn == null ) {
4889		if ( typeof selector === "string" ) {
4890
4891			// ( types, selector, fn )
4892			fn = data;
4893			data = undefined;
4894		} else {
4895
4896			// ( types, data, fn )
4897			fn = data;
4898			data = selector;
4899			selector = undefined;
4900		}
4901	}
4902	if ( fn === false ) {
4903		fn = returnFalse;
4904	} else if ( !fn ) {
4905		return elem;
4906	}
4907
4908	if ( one === 1 ) {
4909		origFn = fn;
4910		fn = function( event ) {
4911
4912			// Can use an empty set, since event contains the info
4913			jQuery().off( event );
4914			return origFn.apply( this, arguments );
4915		};
4916
4917		// Use same guid so caller can remove using origFn
4918		fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
4919	}
4920	return elem.each( function() {
4921		jQuery.event.add( this, types, fn, data, selector );
4922	} );
4923}
4924
4925/*
4926 * Helper functions for managing events -- not part of the public interface.
4927 * Props to Dean Edwards' addEvent library for many of the ideas.
4928 */
4929jQuery.event = {
4930
4931	global: {},
4932
4933	add: function( elem, types, handler, data, selector ) {
4934
4935		var handleObjIn, eventHandle, tmp,
4936			events, t, handleObj,
4937			special, handlers, type, namespaces, origType,
4938			elemData = dataPriv.get( elem );
4939
4940		// Don't attach events to noData or text/comment nodes (but allow plain objects)
4941		if ( !elemData ) {
4942			return;
4943		}
4944
4945		// Caller can pass in an object of custom data in lieu of the handler
4946		if ( handler.handler ) {
4947			handleObjIn = handler;
4948			handler = handleObjIn.handler;
4949			selector = handleObjIn.selector;
4950		}
4951
4952		// Ensure that invalid selectors throw exceptions at attach time
4953		// Evaluate against documentElement in case elem is a non-element node (e.g., document)
4954		if ( selector ) {
4955			jQuery.find.matchesSelector( documentElement, selector );
4956		}
4957
4958		// Make sure that the handler has a unique ID, used to find/remove it later
4959		if ( !handler.guid ) {
4960			handler.guid = jQuery.guid++;
4961		}
4962
4963		// Init the element's event structure and main handler, if this is the first
4964		if ( !( events = elemData.events ) ) {
4965			events = elemData.events = {};
4966		}
4967		if ( !( eventHandle = elemData.handle ) ) {
4968			eventHandle = elemData.handle = function( e ) {
4969
4970				// Discard the second event of a jQuery.event.trigger() and
4971				// when an event is called after a page has unloaded
4972				return typeof jQuery !== "undefined" && jQuery.event.triggered !== e.type ?
4973					jQuery.event.dispatch.apply( elem, arguments ) : undefined;
4974			};
4975		}
4976
4977		// Handle multiple events separated by a space
4978		types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
4979		t = types.length;
4980		while ( t-- ) {
4981			tmp = rtypenamespace.exec( types[ t ] ) || [];
4982			type = origType = tmp[ 1 ];
4983			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
4984
4985			// There *must* be a type, no attaching namespace-only handlers
4986			if ( !type ) {
4987				continue;
4988			}
4989
4990			// If event changes its type, use the special event handlers for the changed type
4991			special = jQuery.event.special[ type ] || {};
4992
4993			// If selector defined, determine special event api type, otherwise given type
4994			type = ( selector ? special.delegateType : special.bindType ) || type;
4995
4996			// Update special based on newly reset type
4997			special = jQuery.event.special[ type ] || {};
4998
4999			// handleObj is passed to all event handlers
5000			handleObj = jQuery.extend( {
5001				type: type,
5002				origType: origType,
5003				data: data,
5004				handler: handler,
5005				guid: handler.guid,
5006				selector: selector,
5007				needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
5008				namespace: namespaces.join( "." )
5009			}, handleObjIn );
5010
5011			// Init the event handler queue if we're the first
5012			if ( !( handlers = events[ type ] ) ) {
5013				handlers = events[ type ] = [];
5014				handlers.delegateCount = 0;
5015
5016				// Only use addEventListener if the special events handler returns false
5017				if ( !special.setup ||
5018					special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
5019
5020					if ( elem.addEventListener ) {
5021						elem.addEventListener( type, eventHandle );
5022					}
5023				}
5024			}
5025
5026			if ( special.add ) {
5027				special.add.call( elem, handleObj );
5028
5029				if ( !handleObj.handler.guid ) {
5030					handleObj.handler.guid = handler.guid;
5031				}
5032			}
5033
5034			// Add to the element's handler list, delegates in front
5035			if ( selector ) {
5036				handlers.splice( handlers.delegateCount++, 0, handleObj );
5037			} else {
5038				handlers.push( handleObj );
5039			}
5040
5041			// Keep track of which events have ever been used, for event optimization
5042			jQuery.event.global[ type ] = true;
5043		}
5044
5045	},
5046
5047	// Detach an event or set of events from an element
5048	remove: function( elem, types, handler, selector, mappedTypes ) {
5049
5050		var j, origCount, tmp,
5051			events, t, handleObj,
5052			special, handlers, type, namespaces, origType,
5053			elemData = dataPriv.hasData( elem ) && dataPriv.get( elem );
5054
5055		if ( !elemData || !( events = elemData.events ) ) {
5056			return;
5057		}
5058
5059		// Once for each type.namespace in types; type may be omitted
5060		types = ( types || "" ).match( rnothtmlwhite ) || [ "" ];
5061		t = types.length;
5062		while ( t-- ) {
5063			tmp = rtypenamespace.exec( types[ t ] ) || [];
5064			type = origType = tmp[ 1 ];
5065			namespaces = ( tmp[ 2 ] || "" ).split( "." ).sort();
5066
5067			// Unbind all events (on this namespace, if provided) for the element
5068			if ( !type ) {
5069				for ( type in events ) {
5070					jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
5071				}
5072				continue;
5073			}
5074
5075			special = jQuery.event.special[ type ] || {};
5076			type = ( selector ? special.delegateType : special.bindType ) || type;
5077			handlers = events[ type ] || [];
5078			tmp = tmp[ 2 ] &&
5079				new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" );
5080
5081			// Remove matching events
5082			origCount = j = handlers.length;
5083			while ( j-- ) {
5084				handleObj = handlers[ j ];
5085
5086				if ( ( mappedTypes || origType === handleObj.origType ) &&
5087					( !handler || handler.guid === handleObj.guid ) &&
5088					( !tmp || tmp.test( handleObj.namespace ) ) &&
5089					( !selector || selector === handleObj.selector ||
5090						selector === "**" && handleObj.selector ) ) {
5091					handlers.splice( j, 1 );
5092
5093					if ( handleObj.selector ) {
5094						handlers.delegateCount--;
5095					}
5096					if ( special.remove ) {
5097						special.remove.call( elem, handleObj );
5098					}
5099				}
5100			}
5101
5102			// Remove generic event handler if we removed something and no more handlers exist
5103			// (avoids potential for endless recursion during removal of special event handlers)
5104			if ( origCount && !handlers.length ) {
5105				if ( !special.teardown ||
5106					special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
5107
5108					jQuery.removeEvent( elem, type, elemData.handle );
5109				}
5110
5111				delete events[ type ];
5112			}
5113		}
5114
5115		// Remove data and the expando if it's no longer used
5116		if ( jQuery.isEmptyObject( events ) ) {
5117			dataPriv.remove( elem, "handle events" );
5118		}
5119	},
5120
5121	dispatch: function( nativeEvent ) {
5122
5123		// Make a writable jQuery.Event from the native event object
5124		var event = jQuery.event.fix( nativeEvent );
5125
5126		var i, j, ret, matched, handleObj, handlerQueue,
5127			args = new Array( arguments.length ),
5128			handlers = ( dataPriv.get( this, "events" ) || {} )[ event.type ] || [],
5129			special = jQuery.event.special[ event.type ] || {};
5130
5131		// Use the fix-ed jQuery.Event rather than the (read-only) native event
5132		args[ 0 ] = event;
5133
5134		for ( i = 1; i < arguments.length; i++ ) {
5135			args[ i ] = arguments[ i ];
5136		}
5137
5138		event.delegateTarget = this;
5139
5140		// Call the preDispatch hook for the mapped type, and let it bail if desired
5141		if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
5142			return;
5143		}
5144
5145		// Determine handlers
5146		handlerQueue = jQuery.event.handlers.call( this, event, handlers );
5147
5148		// Run delegates first; they may want to stop propagation beneath us
5149		i = 0;
5150		while ( ( matched = handlerQueue[ i++ ] ) && !event.isPropagationStopped() ) {
5151			event.currentTarget = matched.elem;
5152
5153			j = 0;
5154			while ( ( handleObj = matched.handlers[ j++ ] ) &&
5155				!event.isImmediatePropagationStopped() ) {
5156
5157				// Triggered event must either 1) have no namespace, or 2) have namespace(s)
5158				// a subset or equal to those in the bound event (both can have no namespace).
5159				if ( !event.rnamespace || event.rnamespace.test( handleObj.namespace ) ) {
5160
5161					event.handleObj = handleObj;
5162					event.data = handleObj.data;
5163
5164					ret = ( ( jQuery.event.special[ handleObj.origType ] || {} ).handle ||
5165						handleObj.handler ).apply( matched.elem, args );
5166
5167					if ( ret !== undefined ) {
5168						if ( ( event.result = ret ) === false ) {
5169							event.preventDefault();
5170							event.stopPropagation();
5171						}
5172					}
5173				}
5174			}
5175		}
5176
5177		// Call the postDispatch hook for the mapped type
5178		if ( special.postDispatch ) {
5179			special.postDispatch.call( this, event );
5180		}
5181
5182		return event.result;
5183	},
5184
5185	handlers: function( event, handlers ) {
5186		var i, handleObj, sel, matchedHandlers, matchedSelectors,
5187			handlerQueue = [],
5188			delegateCount = handlers.delegateCount,
5189			cur = event.target;
5190
5191		// Find delegate handlers
5192		if ( delegateCount &&
5193
5194			// Support: IE <=9
5195			// Black-hole SVG <use> instance trees (trac-13180)
5196			cur.nodeType &&
5197
5198			// Support: Firefox <=42
5199			// Suppress spec-violating clicks indicating a non-primary pointer button (trac-3861)
5200			// https://www.w3.org/TR/DOM-Level-3-Events/#event-type-click
5201			// Support: IE 11 only
5202			// ...but not arrow key "clicks" of radio inputs, which can have `button` -1 (gh-2343)
5203			!( event.type === "click" && event.button >= 1 ) ) {
5204
5205			for ( ; cur !== this; cur = cur.parentNode || this ) {
5206
5207				// Don't check non-elements (#13208)
5208				// Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
5209				if ( cur.nodeType === 1 && !( event.type === "click" && cur.disabled === true ) ) {
5210					matchedHandlers = [];
5211					matchedSelectors = {};
5212					for ( i = 0; i < delegateCount; i++ ) {
5213						handleObj = handlers[ i ];
5214
5215						// Don't conflict with Object.prototype properties (#13203)
5216						sel = handleObj.selector + " ";
5217
5218						if ( matchedSelectors[ sel ] === undefined ) {
5219							matchedSelectors[ sel ] = handleObj.needsContext ?
5220								jQuery( sel, this ).index( cur ) > -1 :
5221								jQuery.find( sel, this, null, [ cur ] ).length;
5222						}
5223						if ( matchedSelectors[ sel ] ) {
5224							matchedHandlers.push( handleObj );
5225						}
5226					}
5227					if ( matchedHandlers.length ) {
5228						handlerQueue.push( { elem: cur, handlers: matchedHandlers } );
5229					}
5230				}
5231			}
5232		}
5233
5234		// Add the remaining (directly-bound) handlers
5235		cur = this;
5236		if ( delegateCount < handlers.length ) {
5237			handlerQueue.push( { elem: cur, handlers: handlers.slice( delegateCount ) } );
5238		}
5239
5240		return handlerQueue;
5241	},
5242
5243	addProp: function( name, hook ) {
5244		Object.defineProperty( jQuery.Event.prototype, name, {
5245			enumerable: true,
5246			configurable: true,
5247
5248			get: isFunction( hook ) ?
5249				function() {
5250					if ( this.originalEvent ) {
5251							return hook( this.originalEvent );
5252					}
5253				} :
5254				function() {
5255					if ( this.originalEvent ) {
5256							return this.originalEvent[ name ];
5257					}
5258				},
5259
5260			set: function( value ) {
5261				Object.defineProperty( this, name, {
5262					enumerable: true,
5263					configurable: true,
5264					writable: true,
5265					value: value
5266				} );
5267			}
5268		} );
5269	},
5270
5271	fix: function( originalEvent ) {
5272		return originalEvent[ jQuery.expando ] ?
5273			originalEvent :
5274			new jQuery.Event( originalEvent );
5275	},
5276
5277	special: {
5278		load: {
5279
5280			// Prevent triggered image.load events from bubbling to window.load
5281			noBubble: true
5282		},
5283		focus: {
5284
5285			// Fire native event if possible so blur/focus sequence is correct
5286			trigger: function() {
5287				if ( this !== safeActiveElement() && this.focus ) {
5288					this.focus();
5289					return false;
5290				}
5291			},
5292			delegateType: "focusin"
5293		},
5294		blur: {
5295			trigger: function() {
5296				if ( this === safeActiveElement() && this.blur ) {
5297					this.blur();
5298					return false;
5299				}
5300			},
5301			delegateType: "focusout"
5302		},
5303		click: {
5304
5305			// For checkbox, fire native event so checked state will be right
5306			trigger: function() {
5307				if ( this.type === "checkbox" && this.click && nodeName( this, "input" ) ) {
5308					this.click();
5309					return false;
5310				}
5311			},
5312
5313			// For cross-browser consistency, don't fire native .click() on links
5314			_default: function( event ) {
5315				return nodeName( event.target, "a" );
5316			}
5317		},
5318
5319		beforeunload: {
5320			postDispatch: function( event ) {
5321
5322				// Support: Firefox 20+
5323				// Firefox doesn't alert if the returnValue field is not set.
5324				if ( event.result !== undefined && event.originalEvent ) {
5325					event.originalEvent.returnValue = event.result;
5326				}
5327			}
5328		}
5329	}
5330};
5331
5332jQuery.removeEvent = function( elem, type, handle ) {
5333
5334	// This "if" is needed for plain objects
5335	if ( elem.removeEventListener ) {
5336		elem.removeEventListener( type, handle );
5337	}
5338};
5339
5340jQuery.Event = function( src, props ) {
5341
5342	// Allow instantiation without the 'new' keyword
5343	if ( !( this instanceof jQuery.Event ) ) {
5344		return new jQuery.Event( src, props );
5345	}
5346
5347	// Event object
5348	if ( src && src.type ) {
5349		this.originalEvent = src;
5350		this.type = src.type;
5351
5352		// Events bubbling up the document may have been marked as prevented
5353		// by a handler lower down the tree; reflect the correct value.
5354		this.isDefaultPrevented = src.defaultPrevented ||
5355				src.defaultPrevented === undefined &&
5356
5357				// Support: Android <=2.3 only
5358				src.returnValue === false ?
5359			returnTrue :
5360			returnFalse;
5361
5362		// Create target properties
5363		// Support: Safari <=6 - 7 only
5364		// Target should not be a text node (#504, #13143)
5365		this.target = ( src.target && src.target.nodeType === 3 ) ?
5366			src.target.parentNode :
5367			src.target;
5368
5369		this.currentTarget = src.currentTarget;
5370		this.relatedTarget = src.relatedTarget;
5371
5372	// Event type
5373	} else {
5374		this.type = src;
5375	}
5376
5377	// Put explicitly provided properties onto the event object
5378	if ( props ) {
5379		jQuery.extend( this, props );
5380	}
5381
5382	// Create a timestamp if incoming event doesn't have one
5383	this.timeStamp = src && src.timeStamp || Date.now();
5384
5385	// Mark it as fixed
5386	this[ jQuery.expando ] = true;
5387};
5388
5389// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
5390// https://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
5391jQuery.Event.prototype = {
5392	constructor: jQuery.Event,
5393	isDefaultPrevented: returnFalse,
5394	isPropagationStopped: returnFalse,
5395	isImmediatePropagationStopped: returnFalse,
5396	isSimulated: false,
5397
5398	preventDefault: function() {
5399		var e = this.originalEvent;
5400
5401		this.isDefaultPrevented = returnTrue;
5402
5403		if ( e && !this.isSimulated ) {
5404			e.preventDefault();
5405		}
5406	},
5407	stopPropagation: function() {
5408		var e = this.originalEvent;
5409
5410		this.isPropagationStopped = returnTrue;
5411
5412		if ( e && !this.isSimulated ) {
5413			e.stopPropagation();
5414		}
5415	},
5416	stopImmediatePropagation: function() {
5417		var e = this.originalEvent;
5418
5419		this.isImmediatePropagationStopped = returnTrue;
5420
5421		if ( e && !this.isSimulated ) {
5422			e.stopImmediatePropagation();
5423		}
5424
5425		this.stopPropagation();
5426	}
5427};
5428
5429// Includes all common event props including KeyEvent and MouseEvent specific props
5430jQuery.each( {
5431	altKey: true,
5432	bubbles: true,
5433	cancelable: true,
5434	changedTouches: true,
5435	ctrlKey: true,
5436	detail: true,
5437	eventPhase: true,
5438	metaKey: true,
5439	pageX: true,
5440	pageY: true,
5441	shiftKey: true,
5442	view: true,
5443	"char": true,
5444	charCode: true,
5445	key: true,
5446	keyCode: true,
5447	button: true,
5448	buttons: true,
5449	clientX: true,
5450	clientY: true,
5451	offsetX: true,
5452	offsetY: true,
5453	pointerId: true,
5454	pointerType: true,
5455	screenX: true,
5456	screenY: true,
5457	targetTouches: true,
5458	toElement: true,
5459	touches: true,
5460
5461	which: function( event ) {
5462		var button = event.button;
5463
5464		// Add which for key events
5465		if ( event.which == null && rkeyEvent.test( event.type ) ) {
5466			return event.charCode != null ? event.charCode : event.keyCode;
5467		}
5468
5469		// Add which for click: 1 === left; 2 === middle; 3 === right
5470		if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
5471			if ( button & 1 ) {
5472				return 1;
5473			}
5474
5475			if ( button & 2 ) {
5476				return 3;
5477			}
5478
5479			if ( button & 4 ) {
5480				return 2;
5481			}
5482
5483			return 0;
5484		}
5485
5486		return event.which;
5487	}
5488}, jQuery.event.addProp );
5489
5490// Create mouseenter/leave events using mouseover/out and event-time checks
5491// so that event delegation works in jQuery.
5492// Do the same for pointerenter/pointerleave and pointerover/pointerout
5493//
5494// Support: Safari 7 only
5495// Safari sends mouseenter too often; see:
5496// https://bugs.chromium.org/p/chromium/issues/detail?id=470258
5497// for the description of the bug (it existed in older Chrome versions as well).
5498jQuery.each( {
5499	mouseenter: "mouseover",
5500	mouseleave: "mouseout",
5501	pointerenter: "pointerover",
5502	pointerleave: "pointerout"
5503}, function( orig, fix ) {
5504	jQuery.event.special[ orig ] = {
5505		delegateType: fix,
5506		bindType: fix,
5507
5508		handle: function( event ) {
5509			var ret,
5510				target = this,
5511				related = event.relatedTarget,
5512				handleObj = event.handleObj;
5513
5514			// For mouseenter/leave call the handler if related is outside the target.
5515			// NB: No relatedTarget if the mouse left/entered the browser window
5516			if ( !related || ( related !== target && !jQuery.contains( target, related ) ) ) {
5517				event.type = handleObj.origType;
5518				ret = handleObj.handler.apply( this, arguments );
5519				event.type = fix;
5520			}
5521			return ret;
5522		}
5523	};
5524} );
5525
5526jQuery.fn.extend( {
5527
5528	on: function( types, selector, data, fn ) {
5529		return on( this, types, selector, data, fn );
5530	},
5531	one: function( types, selector, data, fn ) {
5532		return on( this, types, selector, data, fn, 1 );
5533	},
5534	off: function( types, selector, fn ) {
5535		var handleObj, type;
5536		if ( types && types.preventDefault && types.handleObj ) {
5537
5538			// ( event )  dispatched jQuery.Event
5539			handleObj = types.handleObj;
5540			jQuery( types.delegateTarget ).off(
5541				handleObj.namespace ?
5542					handleObj.origType + "." + handleObj.namespace :
5543					handleObj.origType,
5544				handleObj.selector,
5545				handleObj.handler
5546			);
5547			return this;
5548		}
5549		if ( typeof types === "object" ) {
5550
5551			// ( types-object [, selector] )
5552			for ( type in types ) {
5553				this.off( type, selector, types[ type ] );
5554			}
5555			return this;
5556		}
5557		if ( selector === false || typeof selector === "function" ) {
5558
5559			// ( types [, fn] )
5560			fn = selector;
5561			selector = undefined;
5562		}
5563		if ( fn === false ) {
5564			fn = returnFalse;
5565		}
5566		return this.each( function() {
5567			jQuery.event.remove( this, types, fn, selector );
5568		} );
5569	}
5570} );
5571
5572
5573var
5574
5575	/* eslint-disable max-len */
5576
5577	// See https://github.com/eslint/eslint/issues/3229
5578	rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,
5579
5580	/* eslint-enable */
5581
5582	// Support: IE <=10 - 11, Edge 12 - 13 only
5583	// In IE/Edge using regex groups here causes severe slowdowns.
5584	// See https://connect.microsoft.com/IE/feedback/details/1736512/
5585	rnoInnerhtml = /<script|<style|<link/i,
5586
5587	// checked="checked" or checked
5588	rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
5589	rcleanScript = /^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;
5590
5591// Prefer a tbody over its parent table for containing new rows
5592function manipulationTarget( elem, content ) {
5593	if ( nodeName( elem, "table" ) &&
5594		nodeName( content.nodeType !== 11 ? content : content.firstChild, "tr" ) ) {
5595
5596		return jQuery( elem ).children( "tbody" )[ 0 ] || elem;
5597	}
5598
5599	return elem;
5600}
5601
5602// Replace/restore the type attribute of script elements for safe DOM manipulation
5603function disableScript( elem ) {
5604	elem.type = ( elem.getAttribute( "type" ) !== null ) + "/" + elem.type;
5605	return elem;
5606}
5607function restoreScript( elem ) {
5608	if ( ( elem.type || "" ).slice( 0, 5 ) === "true/" ) {
5609		elem.type = elem.type.slice( 5 );
5610	} else {
5611		elem.removeAttribute( "type" );
5612	}
5613
5614	return elem;
5615}
5616
5617function cloneCopyEvent( src, dest ) {
5618	var i, l, type, pdataOld, pdataCur, udataOld, udataCur, events;
5619
5620	if ( dest.nodeType !== 1 ) {
5621		return;
5622	}
5623
5624	// 1. Copy private data: events, handlers, etc.
5625	if ( dataPriv.hasData( src ) ) {
5626		pdataOld = dataPriv.access( src );
5627		pdataCur = dataPriv.set( dest, pdataOld );
5628		events = pdataOld.events;
5629
5630		if ( events ) {
5631			delete pdataCur.handle;
5632			pdataCur.events = {};
5633
5634			for ( type in events ) {
5635				for ( i = 0, l = events[ type ].length; i < l; i++ ) {
5636					jQuery.event.add( dest, type, events[ type ][ i ] );
5637				}
5638			}
5639		}
5640	}
5641
5642	// 2. Copy user data
5643	if ( dataUser.hasData( src ) ) {
5644		udataOld = dataUser.access( src );
5645		udataCur = jQuery.extend( {}, udataOld );
5646
5647		dataUser.set( dest, udataCur );
5648	}
5649}
5650
5651// Fix IE bugs, see support tests
5652function fixInput( src, dest ) {
5653	var nodeName = dest.nodeName.toLowerCase();
5654
5655	// Fails to persist the checked state of a cloned checkbox or radio button.
5656	if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
5657		dest.checked = src.checked;
5658
5659	// Fails to return the selected option to the default selected state when cloning options
5660	} else if ( nodeName === "input" || nodeName === "textarea" ) {
5661		dest.defaultValue = src.defaultValue;
5662	}
5663}
5664
5665function domManip( collection, args, callback, ignored ) {
5666
5667	// Flatten any nested arrays
5668	args = concat.apply( [], args );
5669
5670	var fragment, first, scripts, hasScripts, node, doc,
5671		i = 0,
5672		l = collection.length,
5673		iNoClone = l - 1,
5674		value = args[ 0 ],
5675		valueIsFunction = isFunction( value );
5676
5677	// We can't cloneNode fragments that contain checked, in WebKit
5678	if ( valueIsFunction ||
5679			( l > 1 && typeof value === "string" &&
5680				!support.checkClone && rchecked.test( value ) ) ) {
5681		return collection.each( function( index ) {
5682			var self = collection.eq( index );
5683			if ( valueIsFunction ) {
5684				args[ 0 ] = value.call( this, index, self.html() );
5685			}
5686			domManip( self, args, callback, ignored );
5687		} );
5688	}
5689
5690	if ( l ) {
5691		fragment = buildFragment( args, collection[ 0 ].ownerDocument, false, collection, ignored );
5692		first = fragment.firstChild;
5693
5694		if ( fragment.childNodes.length === 1 ) {
5695			fragment = first;
5696		}
5697
5698		// Require either new content or an interest in ignored elements to invoke the callback
5699		if ( first || ignored ) {
5700			scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
5701			hasScripts = scripts.length;
5702
5703			// Use the original fragment for the last item
5704			// instead of the first because it can end up
5705			// being emptied incorrectly in certain situations (#8070).
5706			for ( ; i < l; i++ ) {
5707				node = fragment;
5708
5709				if ( i !== iNoClone ) {
5710					node = jQuery.clone( node, true, true );
5711
5712					// Keep references to cloned scripts for later restoration
5713					if ( hasScripts ) {
5714
5715						// Support: Android <=4.0 only, PhantomJS 1 only
5716						// push.apply(_, arraylike) throws on ancient WebKit
5717						jQuery.merge( scripts, getAll( node, "script" ) );
5718					}
5719				}
5720
5721				callback.call( collection[ i ], node, i );
5722			}
5723
5724			if ( hasScripts ) {
5725				doc = scripts[ scripts.length - 1 ].ownerDocument;
5726
5727				// Reenable scripts
5728				jQuery.map( scripts, restoreScript );
5729
5730				// Evaluate executable scripts on first document insertion
5731				for ( i = 0; i < hasScripts; i++ ) {
5732					node = scripts[ i ];
5733					if ( rscriptType.test( node.type || "" ) &&
5734						!dataPriv.access( node, "globalEval" ) &&
5735						jQuery.contains( doc, node ) ) {
5736
5737						if ( node.src && ( node.type || "" ).toLowerCase()  !== "module" ) {
5738
5739							// Optional AJAX dependency, but won't run scripts if not present
5740							if ( jQuery._evalUrl ) {
5741								jQuery._evalUrl( node.src );
5742							}
5743						} else {
5744							DOMEval( node.textContent.replace( rcleanScript, "" ), doc, node );
5745						}
5746					}
5747				}
5748			}
5749		}
5750	}
5751
5752	return collection;
5753}
5754
5755function remove( elem, selector, keepData ) {
5756	var node,
5757		nodes = selector ? jQuery.filter( selector, elem ) : elem,
5758		i = 0;
5759
5760	for ( ; ( node = nodes[ i ] ) != null; i++ ) {
5761		if ( !keepData && node.nodeType === 1 ) {
5762			jQuery.cleanData( getAll( node ) );
5763		}
5764
5765		if ( node.parentNode ) {
5766			if ( keepData && jQuery.contains( node.ownerDocument, node ) ) {
5767				setGlobalEval( getAll( node, "script" ) );
5768			}
5769			node.parentNode.removeChild( node );
5770		}
5771	}
5772
5773	return elem;
5774}
5775
5776jQuery.extend( {
5777	htmlPrefilter: function( html ) {
5778		return html.replace( rxhtmlTag, "<$1></$2>" );
5779	},
5780
5781	clone: function( elem, dataAndEvents, deepDataAndEvents ) {
5782		var i, l, srcElements, destElements,
5783			clone = elem.cloneNode( true ),
5784			inPage = jQuery.contains( elem.ownerDocument, elem );
5785
5786		// Fix IE cloning issues
5787		if ( !support.noCloneChecked && ( elem.nodeType === 1 || elem.nodeType === 11 ) &&
5788				!jQuery.isXMLDoc( elem ) ) {
5789
5790			// We eschew Sizzle here for performance reasons: https://jsperf.com/getall-vs-sizzle/2
5791			destElements = getAll( clone );
5792			srcElements = getAll( elem );
5793
5794			for ( i = 0, l = srcElements.length; i < l; i++ ) {
5795				fixInput( srcElements[ i ], destElements[ i ] );
5796			}
5797		}
5798
5799		// Copy the events from the original to the clone
5800		if ( dataAndEvents ) {
5801			if ( deepDataAndEvents ) {
5802				srcElements = srcElements || getAll( elem );
5803				destElements = destElements || getAll( clone );
5804
5805				for ( i = 0, l = srcElements.length; i < l; i++ ) {
5806					cloneCopyEvent( srcElements[ i ], destElements[ i ] );
5807				}
5808			} else {
5809				cloneCopyEvent( elem, clone );
5810			}
5811		}
5812
5813		// Preserve script evaluation history
5814		destElements = getAll( clone, "script" );
5815		if ( destElements.length > 0 ) {
5816			setGlobalEval( destElements, !inPage && getAll( elem, "script" ) );
5817		}
5818
5819		// Return the cloned set
5820		return clone;
5821	},
5822
5823	cleanData: function( elems ) {
5824		var data, elem, type,
5825			special = jQuery.event.special,
5826			i = 0;
5827
5828		for ( ; ( elem = elems[ i ] ) !== undefined; i++ ) {
5829			if ( acceptData( elem ) ) {
5830				if ( ( data = elem[ dataPriv.expando ] ) ) {
5831					if ( data.events ) {
5832						for ( type in data.events ) {
5833							if ( special[ type ] ) {
5834								jQuery.event.remove( elem, type );
5835
5836							// This is a shortcut to avoid jQuery.event.remove's overhead
5837							} else {
5838								jQuery.removeEvent( elem, type, data.handle );
5839							}
5840						}
5841					}
5842
vendor: 1,119 bytes, lines 5843-5887
5843					// Support: Chrome <=35 - 45+
5844					// Assign undefined instead of using delete, see Data#remove
5845					elem[ dataPriv.expando ] = undefined;
5846				}
5847				if ( elem[ dataUser.expando ] ) {
5848
5849					// Support: Chrome <=35 - 45+
5850					// Assign undefined instead of using delete, see Data#remove
5851					elem[ dataUser.expando ] = undefined;
5852				}
5853			}
5854		}
5855	}
5856} );
5857
5858jQuery.fn.extend( {
5859	detach: function( selector ) {
5860		return remove( this, selector, true );
5861	},
5862
5863	remove: function( selector ) {
5864		return remove( this, selector );
5865	},
5866
5867	text: function( value ) {
5868		return access( this, function( value ) {
5869			return value === undefined ?
5870				jQuery.text( this ) :
5871				this.empty().each( function() {
5872					if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
5873						this.textContent = value;
5874					}
5875				} );
5876		}, null, value, arguments.length );
5877	},
5878
5879	append: function() {
5880		return domManip( this, arguments, function( elem ) {
5881			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
5882				var target = manipulationTarget( this, elem );
5883				target.appendChild( elem );
5884			}
5885		} );
5886	},
5887
vendor: 52,786 bytes, lines 5888-7942
5888	prepend: function() {
5889		return domManip( this, arguments, function( elem ) {
5890			if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
5891				var target = manipulationTarget( this, elem );
5892				target.insertBefore( elem, target.firstChild );
5893			}
5894		} );
5895	},
5896
5897	before: function() {
5898		return domManip( this, arguments, function( elem ) {
5899			if ( this.parentNode ) {
5900				this.parentNode.insertBefore( elem, this );
5901			}
5902		} );
5903	},
5904
5905	after: function() {
5906		return domManip( this, arguments, function( elem ) {
5907			if ( this.parentNode ) {
5908				this.parentNode.insertBefore( elem, this.nextSibling );
5909			}
5910		} );
5911	},
5912
5913	empty: function() {
5914		var elem,
5915			i = 0;
5916
5917		for ( ; ( elem = this[ i ] ) != null; i++ ) {
5918			if ( elem.nodeType === 1 ) {
5919
5920				// Prevent memory leaks
5921				jQuery.cleanData( getAll( elem, false ) );
5922
5923				// Remove any remaining nodes
5924				elem.textContent = "";
5925			}
5926		}
5927
5928		return this;
5929	},
5930
5931	clone: function( dataAndEvents, deepDataAndEvents ) {
5932		dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
5933		deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
5934
5935		return this.map( function() {
5936			return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
5937		} );
5938	},
5939
5940	html: function( value ) {
5941		return access( this, function( value ) {
5942			var elem = this[ 0 ] || {},
5943				i = 0,
5944				l = this.length;
5945
5946			if ( value === undefined && elem.nodeType === 1 ) {
5947				return elem.innerHTML;
5948			}
5949
5950			// See if we can take a shortcut and just use innerHTML
5951			if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
5952				!wrapMap[ ( rtagName.exec( value ) || [ "", "" ] )[ 1 ].toLowerCase() ] ) {
5953
5954				value = jQuery.htmlPrefilter( value );
5955
5956				try {
5957					for ( ; i < l; i++ ) {
5958						elem = this[ i ] || {};
5959
5960						// Remove element nodes and prevent memory leaks
5961						if ( elem.nodeType === 1 ) {
5962							jQuery.cleanData( getAll( elem, false ) );
5963							elem.innerHTML = value;
5964						}
5965					}
5966
5967					elem = 0;
5968
5969				// If using innerHTML throws an exception, use the fallback method
5970				} catch ( e ) {}
5971			}
5972
5973			if ( elem ) {
5974				this.empty().append( value );
5975			}
5976		}, null, value, arguments.length );
5977	},
5978
5979	replaceWith: function() {
5980		var ignored = [];
5981
5982		// Make the changes, replacing each non-ignored context element with the new content
5983		return domManip( this, arguments, function( elem ) {
5984			var parent = this.parentNode;
5985
5986			if ( jQuery.inArray( this, ignored ) < 0 ) {
5987				jQuery.cleanData( getAll( this ) );
5988				if ( parent ) {
5989					parent.replaceChild( elem, this );
5990				}
5991			}
5992
5993		// Force callback invocation
5994		}, ignored );
5995	}
5996} );
5997
5998jQuery.each( {
5999	appendTo: "append",
6000	prependTo: "prepend",
6001	insertBefore: "before",
6002	insertAfter: "after",
6003	replaceAll: "replaceWith"
6004}, function( name, original ) {
6005	jQuery.fn[ name ] = function( selector ) {
6006		var elems,
6007			ret = [],
6008			insert = jQuery( selector ),
6009			last = insert.length - 1,
6010			i = 0;
6011
6012		for ( ; i <= last; i++ ) {
6013			elems = i === last ? this : this.clone( true );
6014			jQuery( insert[ i ] )[ original ]( elems );
6015
6016			// Support: Android <=4.0 only, PhantomJS 1 only
6017			// .get() because push.apply(_, arraylike) throws on ancient WebKit
6018			push.apply( ret, elems.get() );
6019		}
6020
6021		return this.pushStack( ret );
6022	};
6023} );
6024var rnumnonpx = new RegExp( "^(" + pnum + ")(?!px)[a-z%]+$", "i" );
6025
6026var getStyles = function( elem ) {
6027
6028		// Support: IE <=11 only, Firefox <=30 (#15098, #14150)
6029		// IE throws on elements created in popups
6030		// FF meanwhile throws on frame elements through "defaultView.getComputedStyle"
6031		var view = elem.ownerDocument.defaultView;
6032
6033		if ( !view || !view.opener ) {
6034			view = window;
6035		}
6036
6037		return view.getComputedStyle( elem );
6038	};
6039
6040var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
6041
6042
6043
6044( function() {
6045
6046	// Executing both pixelPosition & boxSizingReliable tests require only one layout
6047	// so they're executed at the same time to save the second computation.
6048	function computeStyleTests() {
6049
6050		// This is a singleton, we need to execute it only once
6051		if ( !div ) {
6052			return;
6053		}
6054
6055		container.style.cssText = "position:absolute;left:-11111px;width:60px;" +
6056			"margin-top:1px;padding:0;border:0";
6057		div.style.cssText =
6058			"position:relative;display:block;box-sizing:border-box;overflow:scroll;" +
6059			"margin:auto;border:1px;padding:1px;" +
6060			"width:60%;top:1%";
6061		documentElement.appendChild( container ).appendChild( div );
6062
6063		var divStyle = window.getComputedStyle( div );
6064		pixelPositionVal = divStyle.top !== "1%";
6065
6066		// Support: Android 4.0 - 4.3 only, Firefox <=3 - 44
6067		reliableMarginLeftVal = roundPixelMeasures( divStyle.marginLeft ) === 12;
6068
6069		// Support: Android 4.0 - 4.3 only, Safari <=9.1 - 10.1, iOS <=7.0 - 9.3
6070		// Some styles come back with percentage values, even though they shouldn't
6071		div.style.right = "60%";
6072		pixelBoxStylesVal = roundPixelMeasures( divStyle.right ) === 36;
6073
6074		// Support: IE 9 - 11 only
6075		// Detect misreporting of content dimensions for box-sizing:border-box elements
6076		boxSizingReliableVal = roundPixelMeasures( divStyle.width ) === 36;
6077
6078		// Support: IE 9 only
6079		// Detect overflow:scroll screwiness (gh-3699)
6080		div.style.position = "absolute";
6081		scrollboxSizeVal = div.offsetWidth === 36 || "absolute";
6082
6083		documentElement.removeChild( container );
6084
6085		// Nullify the div so it wouldn't be stored in the memory and
6086		// it will also be a sign that checks already performed
6087		div = null;
6088	}
6089
6090	function roundPixelMeasures( measure ) {
6091		return Math.round( parseFloat( measure ) );
6092	}
6093
6094	var pixelPositionVal, boxSizingReliableVal, scrollboxSizeVal, pixelBoxStylesVal,
6095		reliableMarginLeftVal,
6096		container = document.createElement( "div" ),
6097		div = document.createElement( "div" );
6098
6099	// Finish early in limited (non-browser) environments
6100	if ( !div.style ) {
6101		return;
6102	}
6103
6104	// Support: IE <=9 - 11 only
6105	// Style of cloned element affects source element cloned (#8908)
6106	div.style.backgroundClip = "content-box";
6107	div.cloneNode( true ).style.backgroundClip = "";
6108	support.clearCloneStyle = div.style.backgroundClip === "content-box";
6109
6110	jQuery.extend( support, {
6111		boxSizingReliable: function() {
6112			computeStyleTests();
6113			return boxSizingReliableVal;
6114		},
6115		pixelBoxStyles: function() {
6116			computeStyleTests();
6117			return pixelBoxStylesVal;
6118		},
6119		pixelPosition: function() {
6120			computeStyleTests();
6121			return pixelPositionVal;
6122		},
6123		reliableMarginLeft: function() {
6124			computeStyleTests();
6125			return reliableMarginLeftVal;
6126		},
6127		scrollboxSize: function() {
6128			computeStyleTests();
6129			return scrollboxSizeVal;
6130		}
6131	} );
6132} )();
6133
6134
6135function curCSS( elem, name, computed ) {
6136	var width, minWidth, maxWidth, ret,
6137
6138		// Support: Firefox 51+
6139		// Retrieving style before computed somehow
6140		// fixes an issue with getting wrong values
6141		// on detached elements
6142		style = elem.style;
6143
6144	computed = computed || getStyles( elem );
6145
6146	// getPropertyValue is needed for:
6147	//   .css('filter') (IE 9 only, #12537)
6148	//   .css('--customProperty) (#3144)
6149	if ( computed ) {
6150		ret = computed.getPropertyValue( name ) || computed[ name ];
6151
6152		if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
6153			ret = jQuery.style( elem, name );
6154		}
6155
6156		// A tribute to the "awesome hack by Dean Edwards"
6157		// Android Browser returns percentage for some values,
6158		// but width seems to be reliably pixels.
6159		// This is against the CSSOM draft spec:
6160		// https://drafts.csswg.org/cssom/#resolved-values
6161		if ( !support.pixelBoxStyles() && rnumnonpx.test( ret ) && rboxStyle.test( name ) ) {
6162
6163			// Remember the original values
6164			width = style.width;
6165			minWidth = style.minWidth;
6166			maxWidth = style.maxWidth;
6167
6168			// Put in the new values to get a computed value out
6169			style.minWidth = style.maxWidth = style.width = ret;
6170			ret = computed.width;
6171
6172			// Revert the changed values
6173			style.width = width;
6174			style.minWidth = minWidth;
6175			style.maxWidth = maxWidth;
6176		}
6177	}
6178
6179	return ret !== undefined ?
6180
6181		// Support: IE <=9 - 11 only
6182		// IE returns zIndex value as an integer.
6183		ret + "" :
6184		ret;
6185}
6186
6187
6188function addGetHookIf( conditionFn, hookFn ) {
6189
6190	// Define the hook, we'll check on the first run if it's really needed.
6191	return {
6192		get: function() {
6193			if ( conditionFn() ) {
6194
6195				// Hook not needed (or it's not possible to use it due
6196				// to missing dependency), remove it.
6197				delete this.get;
6198				return;
6199			}
6200
6201			// Hook needed; redefine it so that the support test is not executed again.
6202			return ( this.get = hookFn ).apply( this, arguments );
6203		}
6204	};
6205}
6206
6207
6208var
6209
6210	// Swappable if display is none or starts with table
6211	// except "table", "table-cell", or "table-caption"
6212	// See here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
6213	rdisplayswap = /^(none|table(?!-c[ea]).+)/,
6214	rcustomProp = /^--/,
6215	cssShow = { position: "absolute", visibility: "hidden", display: "block" },
6216	cssNormalTransform = {
6217		letterSpacing: "0",
6218		fontWeight: "400"
6219	},
6220
6221	cssPrefixes = [ "Webkit", "Moz", "ms" ],
6222	emptyStyle = document.createElement( "div" ).style;
6223
6224// Return a css property mapped to a potentially vendor prefixed property
6225function vendorPropName( name ) {
6226
6227	// Shortcut for names that are not vendor prefixed
6228	if ( name in emptyStyle ) {
6229		return name;
6230	}
6231
6232	// Check for vendor prefixed names
6233	var capName = name[ 0 ].toUpperCase() + name.slice( 1 ),
6234		i = cssPrefixes.length;
6235
6236	while ( i-- ) {
6237		name = cssPrefixes[ i ] + capName;
6238		if ( name in emptyStyle ) {
6239			return name;
6240		}
6241	}
6242}
6243
6244// Return a property mapped along what jQuery.cssProps suggests or to
6245// a vendor prefixed property.
6246function finalPropName( name ) {
6247	var ret = jQuery.cssProps[ name ];
6248	if ( !ret ) {
6249		ret = jQuery.cssProps[ name ] = vendorPropName( name ) || name;
6250	}
6251	return ret;
6252}
6253
6254function setPositiveNumber( elem, value, subtract ) {
6255
6256	// Any relative (+/-) values have already been
6257	// normalized at this point
6258	var matches = rcssNum.exec( value );
6259	return matches ?
6260
6261		// Guard against undefined "subtract", e.g., when used as in cssHooks
6262		Math.max( 0, matches[ 2 ] - ( subtract || 0 ) ) + ( matches[ 3 ] || "px" ) :
6263		value;
6264}
6265
6266function boxModelAdjustment( elem, dimension, box, isBorderBox, styles, computedVal ) {
6267	var i = dimension === "width" ? 1 : 0,
6268		extra = 0,
6269		delta = 0;
6270
6271	// Adjustment may not be necessary
6272	if ( box === ( isBorderBox ? "border" : "content" ) ) {
6273		return 0;
6274	}
6275
6276	for ( ; i < 4; i += 2 ) {
6277
6278		// Both box models exclude margin
6279		if ( box === "margin" ) {
6280			delta += jQuery.css( elem, box + cssExpand[ i ], true, styles );
6281		}
6282
6283		// If we get here with a content-box, we're seeking "padding" or "border" or "margin"
6284		if ( !isBorderBox ) {
6285
6286			// Add padding
6287			delta += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
6288
6289			// For "border" or "margin", add border
6290			if ( box !== "padding" ) {
6291				delta += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
6292
6293			// But still keep track of it otherwise
6294			} else {
6295				extra += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
6296			}
6297
6298		// If we get here with a border-box (content + padding + border), we're seeking "content" or
6299		// "padding" or "margin"
6300		} else {
6301
6302			// For "content", subtract padding
6303			if ( box === "content" ) {
6304				delta -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
6305			}
6306
6307			// For "content" or "padding", subtract border
6308			if ( box !== "margin" ) {
6309				delta -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
6310			}
6311		}
6312	}
6313
6314	// Account for positive content-box scroll gutter when requested by providing computedVal
6315	if ( !isBorderBox && computedVal >= 0 ) {
6316
6317		// offsetWidth/offsetHeight is a rounded sum of content, padding, scroll gutter, and border
6318		// Assuming integer scroll gutter, subtract the rest and round down
6319		delta += Math.max( 0, Math.ceil(
6320			elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
6321			computedVal -
6322			delta -
6323			extra -
6324			0.5
6325		) );
6326	}
6327
6328	return delta;
6329}
6330
6331function getWidthOrHeight( elem, dimension, extra ) {
6332
6333	// Start with computed style
6334	var styles = getStyles( elem ),
6335		val = curCSS( elem, dimension, styles ),
6336		isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
6337		valueIsBorderBox = isBorderBox;
6338
6339	// Support: Firefox <=54
6340	// Return a confounding non-pixel value or feign ignorance, as appropriate.
6341	if ( rnumnonpx.test( val ) ) {
6342		if ( !extra ) {
6343			return val;
6344		}
6345		val = "auto";
6346	}
6347
6348	// Check for style in case a browser which returns unreliable values
6349	// for getComputedStyle silently falls back to the reliable elem.style
6350	valueIsBorderBox = valueIsBorderBox &&
6351		( support.boxSizingReliable() || val === elem.style[ dimension ] );
6352
6353	// Fall back to offsetWidth/offsetHeight when value is "auto"
6354	// This happens for inline elements with no explicit setting (gh-3571)
6355	// Support: Android <=4.1 - 4.3 only
6356	// Also use offsetWidth/offsetHeight for misreported inline dimensions (gh-3602)
6357	if ( val === "auto" ||
6358		!parseFloat( val ) && jQuery.css( elem, "display", false, styles ) === "inline" ) {
6359
6360		val = elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ];
6361
6362		// offsetWidth/offsetHeight provide border-box values
6363		valueIsBorderBox = true;
6364	}
6365
6366	// Normalize "" and auto
6367	val = parseFloat( val ) || 0;
6368
6369	// Adjust for the element's box model
6370	return ( val +
6371		boxModelAdjustment(
6372			elem,
6373			dimension,
6374			extra || ( isBorderBox ? "border" : "content" ),
6375			valueIsBorderBox,
6376			styles,
6377
6378			// Provide the current computed size to request scroll gutter calculation (gh-3589)
6379			val
6380		)
6381	) + "px";
6382}
6383
6384jQuery.extend( {
6385
6386	// Add in style property hooks for overriding the default
6387	// behavior of getting and setting a style property
6388	cssHooks: {
6389		opacity: {
6390			get: function( elem, computed ) {
6391				if ( computed ) {
6392
6393					// We should always get a number back from opacity
6394					var ret = curCSS( elem, "opacity" );
6395					return ret === "" ? "1" : ret;
6396				}
6397			}
6398		}
6399	},
6400
6401	// Don't automatically add "px" to these possibly-unitless properties
6402	cssNumber: {
6403		"animationIterationCount": true,
6404		"columnCount": true,
6405		"fillOpacity": true,
6406		"flexGrow": true,
6407		"flexShrink": true,
6408		"fontWeight": true,
6409		"lineHeight": true,
6410		"opacity": true,
6411		"order": true,
6412		"orphans": true,
6413		"widows": true,
6414		"zIndex": true,
6415		"zoom": true
6416	},
6417
6418	// Add in properties whose names you wish to fix before
6419	// setting or getting the value
6420	cssProps: {},
6421
6422	// Get and set the style property on a DOM Node
6423	style: function( elem, name, value, extra ) {
6424
6425		// Don't set styles on text and comment nodes
6426		if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
6427			return;
6428		}
6429
6430		// Make sure that we're working with the right name
6431		var ret, type, hooks,
6432			origName = camelCase( name ),
6433			isCustomProp = rcustomProp.test( name ),
6434			style = elem.style;
6435
6436		// Make sure that we're working with the right name. We don't
6437		// want to query the value if it is a CSS custom property
6438		// since they are user-defined.
6439		if ( !isCustomProp ) {
6440			name = finalPropName( origName );
6441		}
6442
6443		// Gets hook for the prefixed version, then unprefixed version
6444		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6445
6446		// Check if we're setting a value
6447		if ( value !== undefined ) {
6448			type = typeof value;
6449
6450			// Convert "+=" or "-=" to relative numbers (#7345)
6451			if ( type === "string" && ( ret = rcssNum.exec( value ) ) && ret[ 1 ] ) {
6452				value = adjustCSS( elem, name, ret );
6453
6454				// Fixes bug #9237
6455				type = "number";
6456			}
6457
6458			// Make sure that null and NaN values aren't set (#7116)
6459			if ( value == null || value !== value ) {
6460				return;
6461			}
6462
6463			// If a number was passed in, add the unit (except for certain CSS properties)
6464			if ( type === "number" ) {
6465				value += ret && ret[ 3 ] || ( jQuery.cssNumber[ origName ] ? "" : "px" );
6466			}
6467
6468			// background-* props affect original clone's values
6469			if ( !support.clearCloneStyle && value === "" && name.indexOf( "background" ) === 0 ) {
6470				style[ name ] = "inherit";
6471			}
6472
6473			// If a hook was provided, use that value, otherwise just set the specified value
6474			if ( !hooks || !( "set" in hooks ) ||
6475				( value = hooks.set( elem, value, extra ) ) !== undefined ) {
6476
6477				if ( isCustomProp ) {
6478					style.setProperty( name, value );
6479				} else {
6480					style[ name ] = value;
6481				}
6482			}
6483
6484		} else {
6485
6486			// If a hook was provided get the non-computed value from there
6487			if ( hooks && "get" in hooks &&
6488				( ret = hooks.get( elem, false, extra ) ) !== undefined ) {
6489
6490				return ret;
6491			}
6492
6493			// Otherwise just get the value from the style object
6494			return style[ name ];
6495		}
6496	},
6497
6498	css: function( elem, name, extra, styles ) {
6499		var val, num, hooks,
6500			origName = camelCase( name ),
6501			isCustomProp = rcustomProp.test( name );
6502
6503		// Make sure that we're working with the right name. We don't
6504		// want to modify the value if it is a CSS custom property
6505		// since they are user-defined.
6506		if ( !isCustomProp ) {
6507			name = finalPropName( origName );
6508		}
6509
6510		// Try prefixed name followed by the unprefixed name
6511		hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
6512
6513		// If a hook was provided get the computed value from there
6514		if ( hooks && "get" in hooks ) {
6515			val = hooks.get( elem, true, extra );
6516		}
6517
6518		// Otherwise, if a way to get the computed value exists, use that
6519		if ( val === undefined ) {
6520			val = curCSS( elem, name, styles );
6521		}
6522
6523		// Convert "normal" to computed value
6524		if ( val === "normal" && name in cssNormalTransform ) {
6525			val = cssNormalTransform[ name ];
6526		}
6527
6528		// Make numeric if forced or a qualifier was provided and val looks numeric
6529		if ( extra === "" || extra ) {
6530			num = parseFloat( val );
6531			return extra === true || isFinite( num ) ? num || 0 : val;
6532		}
6533
6534		return val;
6535	}
6536} );
6537
6538jQuery.each( [ "height", "width" ], function( i, dimension ) {
6539	jQuery.cssHooks[ dimension ] = {
6540		get: function( elem, computed, extra ) {
6541			if ( computed ) {
6542
6543				// Certain elements can have dimension info if we invisibly show them
6544				// but it must have a current display style that would benefit
6545				return rdisplayswap.test( jQuery.css( elem, "display" ) ) &&
6546
6547					// Support: Safari 8+
6548					// Table columns in Safari have non-zero offsetWidth & zero
6549					// getBoundingClientRect().width unless display is changed.
6550					// Support: IE <=11 only
6551					// Running getBoundingClientRect on a disconnected node
6552					// in IE throws an error.
6553					( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
6554						swap( elem, cssShow, function() {
6555							return getWidthOrHeight( elem, dimension, extra );
6556						} ) :
6557						getWidthOrHeight( elem, dimension, extra );
6558			}
6559		},
6560
6561		set: function( elem, value, extra ) {
6562			var matches,
6563				styles = getStyles( elem ),
6564				isBorderBox = jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
6565				subtract = extra && boxModelAdjustment(
6566					elem,
6567					dimension,
6568					extra,
6569					isBorderBox,
6570					styles
6571				);
6572
6573			// Account for unreliable border-box dimensions by comparing offset* to computed and
6574			// faking a content-box to get border and padding (gh-3699)
6575			if ( isBorderBox && support.scrollboxSize() === styles.position ) {
6576				subtract -= Math.ceil(
6577					elem[ "offset" + dimension[ 0 ].toUpperCase() + dimension.slice( 1 ) ] -
6578					parseFloat( styles[ dimension ] ) -
6579					boxModelAdjustment( elem, dimension, "border", false, styles ) -
6580					0.5
6581				);
6582			}
6583
6584			// Convert to pixels if value adjustment is needed
6585			if ( subtract && ( matches = rcssNum.exec( value ) ) &&
6586				( matches[ 3 ] || "px" ) !== "px" ) {
6587
6588				elem.style[ dimension ] = value;
6589				value = jQuery.css( elem, dimension );
6590			}
6591
6592			return setPositiveNumber( elem, value, subtract );
6593		}
6594	};
6595} );
6596
6597jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
6598	function( elem, computed ) {
6599		if ( computed ) {
6600			return ( parseFloat( curCSS( elem, "marginLeft" ) ) ||
6601				elem.getBoundingClientRect().left -
6602					swap( elem, { marginLeft: 0 }, function() {
6603						return elem.getBoundingClientRect().left;
6604					} )
6605				) + "px";
6606		}
6607	}
6608);
6609
6610// These hooks are used by animate to expand properties
6611jQuery.each( {
6612	margin: "",
6613	padding: "",
6614	border: "Width"
6615}, function( prefix, suffix ) {
6616	jQuery.cssHooks[ prefix + suffix ] = {
6617		expand: function( value ) {
6618			var i = 0,
6619				expanded = {},
6620
6621				// Assumes a single number if not a string
6622				parts = typeof value === "string" ? value.split( " " ) : [ value ];
6623
6624			for ( ; i < 4; i++ ) {
6625				expanded[ prefix + cssExpand[ i ] + suffix ] =
6626					parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
6627			}
6628
6629			return expanded;
6630		}
6631	};
6632
6633	if ( prefix !== "margin" ) {
6634		jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
6635	}
6636} );
6637
6638jQuery.fn.extend( {
6639	css: function( name, value ) {
6640		return access( this, function( elem, name, value ) {
6641			var styles, len,
6642				map = {},
6643				i = 0;
6644
6645			if ( Array.isArray( name ) ) {
6646				styles = getStyles( elem );
6647				len = name.length;
6648
6649				for ( ; i < len; i++ ) {
6650					map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
6651				}
6652
6653				return map;
6654			}
6655
6656			return value !== undefined ?
6657				jQuery.style( elem, name, value ) :
6658				jQuery.css( elem, name );
6659		}, name, value, arguments.length > 1 );
6660	}
6661} );
6662
6663
6664function Tween( elem, options, prop, end, easing ) {
6665	return new Tween.prototype.init( elem, options, prop, end, easing );
6666}
6667jQuery.Tween = Tween;
6668
6669Tween.prototype = {
6670	constructor: Tween,
6671	init: function( elem, options, prop, end, easing, unit ) {
6672		this.elem = elem;
6673		this.prop = prop;
6674		this.easing = easing || jQuery.easing._default;
6675		this.options = options;
6676		this.start = this.now = this.cur();
6677		this.end = end;
6678		this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
6679	},
6680	cur: function() {
6681		var hooks = Tween.propHooks[ this.prop ];
6682
6683		return hooks && hooks.get ?
6684			hooks.get( this ) :
6685			Tween.propHooks._default.get( this );
6686	},
6687	run: function( percent ) {
6688		var eased,
6689			hooks = Tween.propHooks[ this.prop ];
6690
6691		if ( this.options.duration ) {
6692			this.pos = eased = jQuery.easing[ this.easing ](
6693				percent, this.options.duration * percent, 0, 1, this.options.duration
6694			);
6695		} else {
6696			this.pos = eased = percent;
6697		}
6698		this.now = ( this.end - this.start ) * eased + this.start;
6699
6700		if ( this.options.step ) {
6701			this.options.step.call( this.elem, this.now, this );
6702		}
6703
6704		if ( hooks && hooks.set ) {
6705			hooks.set( this );
6706		} else {
6707			Tween.propHooks._default.set( this );
6708		}
6709		return this;
6710	}
6711};
6712
6713Tween.prototype.init.prototype = Tween.prototype;
6714
6715Tween.propHooks = {
6716	_default: {
6717		get: function( tween ) {
6718			var result;
6719
6720			// Use a property on the element directly when it is not a DOM element,
6721			// or when there is no matching style property that exists.
6722			if ( tween.elem.nodeType !== 1 ||
6723				tween.elem[ tween.prop ] != null && tween.elem.style[ tween.prop ] == null ) {
6724				return tween.elem[ tween.prop ];
6725			}
6726
6727			// Passing an empty string as a 3rd parameter to .css will automatically
6728			// attempt a parseFloat and fallback to a string if the parse fails.
6729			// Simple values such as "10px" are parsed to Float;
6730			// complex values such as "rotate(1rad)" are returned as-is.
6731			result = jQuery.css( tween.elem, tween.prop, "" );
6732
6733			// Empty strings, null, undefined and "auto" are converted to 0.
6734			return !result || result === "auto" ? 0 : result;
6735		},
6736		set: function( tween ) {
6737
6738			// Use step hook for back compat.
6739			// Use cssHook if its there.
6740			// Use .style if available and use plain properties where available.
6741			if ( jQuery.fx.step[ tween.prop ] ) {
6742				jQuery.fx.step[ tween.prop ]( tween );
6743			} else if ( tween.elem.nodeType === 1 &&
6744				( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null ||
6745					jQuery.cssHooks[ tween.prop ] ) ) {
6746				jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
6747			} else {
6748				tween.elem[ tween.prop ] = tween.now;
6749			}
6750		}
6751	}
6752};
6753
6754// Support: IE <=9 only
6755// Panic based approach to setting things on disconnected nodes
6756Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
6757	set: function( tween ) {
6758		if ( tween.elem.nodeType && tween.elem.parentNode ) {
6759			tween.elem[ tween.prop ] = tween.now;
6760		}
6761	}
6762};
6763
6764jQuery.easing = {
6765	linear: function( p ) {
6766		return p;
6767	},
6768	swing: function( p ) {
6769		return 0.5 - Math.cos( p * Math.PI ) / 2;
6770	},
6771	_default: "swing"
6772};
6773
6774jQuery.fx = Tween.prototype.init;
6775
6776// Back compat <1.8 extension point
6777jQuery.fx.step = {};
6778
6779
6780
6781
6782var
6783	fxNow, inProgress,
6784	rfxtypes = /^(?:toggle|show|hide)$/,
6785	rrun = /queueHooks$/;
6786
6787function schedule() {
6788	if ( inProgress ) {
6789		if ( document.hidden === false && window.requestAnimationFrame ) {
6790			window.requestAnimationFrame( schedule );
6791		} else {
6792			window.setTimeout( schedule, jQuery.fx.interval );
6793		}
6794
6795		jQuery.fx.tick();
6796	}
6797}
6798
6799// Animations created synchronously will run synchronously
6800function createFxNow() {
6801	window.setTimeout( function() {
6802		fxNow = undefined;
6803	} );
6804	return ( fxNow = Date.now() );
6805}
6806
6807// Generate parameters to create a standard animation
6808function genFx( type, includeWidth ) {
6809	var which,
6810		i = 0,
6811		attrs = { height: type };
6812
6813	// If we include width, step value is 1 to do all cssExpand values,
6814	// otherwise step value is 2 to skip over Left and Right
6815	includeWidth = includeWidth ? 1 : 0;
6816	for ( ; i < 4; i += 2 - includeWidth ) {
6817		which = cssExpand[ i ];
6818		attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
6819	}
6820
6821	if ( includeWidth ) {
6822		attrs.opacity = attrs.width = type;
6823	}
6824
6825	return attrs;
6826}
6827
6828function createTween( value, prop, animation ) {
6829	var tween,
6830		collection = ( Animation.tweeners[ prop ] || [] ).concat( Animation.tweeners[ "*" ] ),
6831		index = 0,
6832		length = collection.length;
6833	for ( ; index < length; index++ ) {
6834		if ( ( tween = collection[ index ].call( animation, prop, value ) ) ) {
6835
6836			// We're done with this property
6837			return tween;
6838		}
6839	}
6840}
6841
6842function defaultPrefilter( elem, props, opts ) {
6843	var prop, value, toggle, hooks, oldfire, propTween, restoreDisplay, display,
6844		isBox = "width" in props || "height" in props,
6845		anim = this,
6846		orig = {},
6847		style = elem.style,
6848		hidden = elem.nodeType && isHiddenWithinTree( elem ),
6849		dataShow = dataPriv.get( elem, "fxshow" );
6850
6851	// Queue-skipping animations hijack the fx hooks
6852	if ( !opts.queue ) {
6853		hooks = jQuery._queueHooks( elem, "fx" );
6854		if ( hooks.unqueued == null ) {
6855			hooks.unqueued = 0;
6856			oldfire = hooks.empty.fire;
6857			hooks.empty.fire = function() {
6858				if ( !hooks.unqueued ) {
6859					oldfire();
6860				}
6861			};
6862		}
6863		hooks.unqueued++;
6864
6865		anim.always( function() {
6866
6867			// Ensure the complete handler is called before this completes
6868			anim.always( function() {
6869				hooks.unqueued--;
6870				if ( !jQuery.queue( elem, "fx" ).length ) {
6871					hooks.empty.fire();
6872				}
6873			} );
6874		} );
6875	}
6876
6877	// Detect show/hide animations
6878	for ( prop in props ) {
6879		value = props[ prop ];
6880		if ( rfxtypes.test( value ) ) {
6881			delete props[ prop ];
6882			toggle = toggle || value === "toggle";
6883			if ( value === ( hidden ? "hide" : "show" ) ) {
6884
6885				// Pretend to be hidden if this is a "show" and
6886				// there is still data from a stopped show/hide
6887				if ( value === "show" && dataShow && dataShow[ prop ] !== undefined ) {
6888					hidden = true;
6889
6890				// Ignore all other no-op show/hide data
6891				} else {
6892					continue;
6893				}
6894			}
6895			orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
6896		}
6897	}
6898
6899	// Bail out if this is a no-op like .hide().hide()
6900	propTween = !jQuery.isEmptyObject( props );
6901	if ( !propTween && jQuery.isEmptyObject( orig ) ) {
6902		return;
6903	}
6904
6905	// Restrict "overflow" and "display" styles during box animations
6906	if ( isBox && elem.nodeType === 1 ) {
6907
6908		// Support: IE <=9 - 11, Edge 12 - 15
6909		// Record all 3 overflow attributes because IE does not infer the shorthand
6910		// from identically-valued overflowX and overflowY and Edge just mirrors
6911		// the overflowX value there.
6912		opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
6913
6914		// Identify a display type, preferring old show/hide data over the CSS cascade
6915		restoreDisplay = dataShow && dataShow.display;
6916		if ( restoreDisplay == null ) {
6917			restoreDisplay = dataPriv.get( elem, "display" );
6918		}
6919		display = jQuery.css( elem, "display" );
6920		if ( display === "none" ) {
6921			if ( restoreDisplay ) {
6922				display = restoreDisplay;
6923			} else {
6924
6925				// Get nonempty value(s) by temporarily forcing visibility
6926				showHide( [ elem ], true );
6927				restoreDisplay = elem.style.display || restoreDisplay;
6928				display = jQuery.css( elem, "display" );
6929				showHide( [ elem ] );
6930			}
6931		}
6932
6933		// Animate inline elements as inline-block
6934		if ( display === "inline" || display === "inline-block" && restoreDisplay != null ) {
6935			if ( jQuery.css( elem, "float" ) === "none" ) {
6936
6937				// Restore the original display value at the end of pure show/hide animations
6938				if ( !propTween ) {
6939					anim.done( function() {
6940						style.display = restoreDisplay;
6941					} );
6942					if ( restoreDisplay == null ) {
6943						display = style.display;
6944						restoreDisplay = display === "none" ? "" : display;
6945					}
6946				}
6947				style.display = "inline-block";
6948			}
6949		}
6950	}
6951
6952	if ( opts.overflow ) {
6953		style.overflow = "hidden";
6954		anim.always( function() {
6955			style.overflow = opts.overflow[ 0 ];
6956			style.overflowX = opts.overflow[ 1 ];
6957			style.overflowY = opts.overflow[ 2 ];
6958		} );
6959	}
6960
6961	// Implement show/hide animations
6962	propTween = false;
6963	for ( prop in orig ) {
6964
6965		// General show/hide setup for this element animation
6966		if ( !propTween ) {
6967			if ( dataShow ) {
6968				if ( "hidden" in dataShow ) {
6969					hidden = dataShow.hidden;
6970				}
6971			} else {
6972				dataShow = dataPriv.access( elem, "fxshow", { display: restoreDisplay } );
6973			}
6974
6975			// Store hidden/visible for toggle so `.stop().toggle()` "reverses"
6976			if ( toggle ) {
6977				dataShow.hidden = !hidden;
6978			}
6979
6980			// Show elements before animating them
6981			if ( hidden ) {
6982				showHide( [ elem ], true );
6983			}
6984
6985			/* eslint-disable no-loop-func */
6986
6987			anim.done( function() {
6988
6989			/* eslint-enable no-loop-func */
6990
6991				// The final step of a "hide" animation is actually hiding the element
6992				if ( !hidden ) {
6993					showHide( [ elem ] );
6994				}
6995				dataPriv.remove( elem, "fxshow" );
6996				for ( prop in orig ) {
6997					jQuery.style( elem, prop, orig[ prop ] );
6998				}
6999			} );
7000		}
7001
7002		// Per-property setup
7003		propTween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
7004		if ( !( prop in dataShow ) ) {
7005			dataShow[ prop ] = propTween.start;
7006			if ( hidden ) {
7007				propTween.end = propTween.start;
7008				propTween.start = 0;
7009			}
7010		}
7011	}
7012}
7013
7014function propFilter( props, specialEasing ) {
7015	var index, name, easing, value, hooks;
7016
7017	// camelCase, specialEasing and expand cssHook pass
7018	for ( index in props ) {
7019		name = camelCase( index );
7020		easing = specialEasing[ name ];
7021		value = props[ index ];
7022		if ( Array.isArray( value ) ) {
7023			easing = value[ 1 ];
7024			value = props[ index ] = value[ 0 ];
7025		}
7026
7027		if ( index !== name ) {
7028			props[ name ] = value;
7029			delete props[ index ];
7030		}
7031
7032		hooks = jQuery.cssHooks[ name ];
7033		if ( hooks && "expand" in hooks ) {
7034			value = hooks.expand( value );
7035			delete props[ name ];
7036
7037			// Not quite $.extend, this won't overwrite existing keys.
7038			// Reusing 'index' because we have the correct "name"
7039			for ( index in value ) {
7040				if ( !( index in props ) ) {
7041					props[ index ] = value[ index ];
7042					specialEasing[ index ] = easing;
7043				}
7044			}
7045		} else {
7046			specialEasing[ name ] = easing;
7047		}
7048	}
7049}
7050
7051function Animation( elem, properties, options ) {
7052	var result,
7053		stopped,
7054		index = 0,
7055		length = Animation.prefilters.length,
7056		deferred = jQuery.Deferred().always( function() {
7057
7058			// Don't match elem in the :animated selector
7059			delete tick.elem;
7060		} ),
7061		tick = function() {
7062			if ( stopped ) {
7063				return false;
7064			}
7065			var currentTime = fxNow || createFxNow(),
7066				remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
7067
7068				// Support: Android 2.3 only
7069				// Archaic crash bug won't allow us to use `1 - ( 0.5 || 0 )` (#12497)
7070				temp = remaining / animation.duration || 0,
7071				percent = 1 - temp,
7072				index = 0,
7073				length = animation.tweens.length;
7074
7075			for ( ; index < length; index++ ) {
7076				animation.tweens[ index ].run( percent );
7077			}
7078
7079			deferred.notifyWith( elem, [ animation, percent, remaining ] );
7080
7081			// If there's more to do, yield
7082			if ( percent < 1 && length ) {
7083				return remaining;
7084			}
7085
7086			// If this was an empty animation, synthesize a final progress notification
7087			if ( !length ) {
7088				deferred.notifyWith( elem, [ animation, 1, 0 ] );
7089			}
7090
7091			// Resolve the animation and report its conclusion
7092			deferred.resolveWith( elem, [ animation ] );
7093			return false;
7094		},
7095		animation = deferred.promise( {
7096			elem: elem,
7097			props: jQuery.extend( {}, properties ),
7098			opts: jQuery.extend( true, {
7099				specialEasing: {},
7100				easing: jQuery.easing._default
7101			}, options ),
7102			originalProperties: properties,
7103			originalOptions: options,
7104			startTime: fxNow || createFxNow(),
7105			duration: options.duration,
7106			tweens: [],
7107			createTween: function( prop, end ) {
7108				var tween = jQuery.Tween( elem, animation.opts, prop, end,
7109						animation.opts.specialEasing[ prop ] || animation.opts.easing );
7110				animation.tweens.push( tween );
7111				return tween;
7112			},
7113			stop: function( gotoEnd ) {
7114				var index = 0,
7115
7116					// If we are going to the end, we want to run all the tweens
7117					// otherwise we skip this part
7118					length = gotoEnd ? animation.tweens.length : 0;
7119				if ( stopped ) {
7120					return this;
7121				}
7122				stopped = true;
7123				for ( ; index < length; index++ ) {
7124					animation.tweens[ index ].run( 1 );
7125				}
7126
7127				// Resolve when we played the last frame; otherwise, reject
7128				if ( gotoEnd ) {
7129					deferred.notifyWith( elem, [ animation, 1, 0 ] );
7130					deferred.resolveWith( elem, [ animation, gotoEnd ] );
7131				} else {
7132					deferred.rejectWith( elem, [ animation, gotoEnd ] );
7133				}
7134				return this;
7135			}
7136		} ),
7137		props = animation.props;
7138
7139	propFilter( props, animation.opts.specialEasing );
7140
7141	for ( ; index < length; index++ ) {
7142		result = Animation.prefilters[ index ].call( animation, elem, props, animation.opts );
7143		if ( result ) {
7144			if ( isFunction( result.stop ) ) {
7145				jQuery._queueHooks( animation.elem, animation.opts.queue ).stop =
7146					result.stop.bind( result );
7147			}
7148			return result;
7149		}
7150	}
7151
7152	jQuery.map( props, createTween, animation );
7153
7154	if ( isFunction( animation.opts.start ) ) {
7155		animation.opts.start.call( elem, animation );
7156	}
7157
7158	// Attach callbacks from options
7159	animation
7160		.progress( animation.opts.progress )
7161		.done( animation.opts.done, animation.opts.complete )
7162		.fail( animation.opts.fail )
7163		.always( animation.opts.always );
7164
7165	jQuery.fx.timer(
7166		jQuery.extend( tick, {
7167			elem: elem,
7168			anim: animation,
7169			queue: animation.opts.queue
7170		} )
7171	);
7172
7173	return animation;
7174}
7175
7176jQuery.Animation = jQuery.extend( Animation, {
7177
7178	tweeners: {
7179		"*": [ function( prop, value ) {
7180			var tween = this.createTween( prop, value );
7181			adjustCSS( tween.elem, prop, rcssNum.exec( value ), tween );
7182			return tween;
7183		} ]
7184	},
7185
7186	tweener: function( props, callback ) {
7187		if ( isFunction( props ) ) {
7188			callback = props;
7189			props = [ "*" ];
7190		} else {
7191			props = props.match( rnothtmlwhite );
7192		}
7193
7194		var prop,
7195			index = 0,
7196			length = props.length;
7197
7198		for ( ; index < length; index++ ) {
7199			prop = props[ index ];
7200			Animation.tweeners[ prop ] = Animation.tweeners[ prop ] || [];
7201			Animation.tweeners[ prop ].unshift( callback );
7202		}
7203	},
7204
7205	prefilters: [ defaultPrefilter ],
7206
7207	prefilter: function( callback, prepend ) {
7208		if ( prepend ) {
7209			Animation.prefilters.unshift( callback );
7210		} else {
7211			Animation.prefilters.push( callback );
7212		}
7213	}
7214} );
7215
7216jQuery.speed = function( speed, easing, fn ) {
7217	var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
7218		complete: fn || !fn && easing ||
7219			isFunction( speed ) && speed,
7220		duration: speed,
7221		easing: fn && easing || easing && !isFunction( easing ) && easing
7222	};
7223
7224	// Go to the end state if fx are off
7225	if ( jQuery.fx.off ) {
7226		opt.duration = 0;
7227
7228	} else {
7229		if ( typeof opt.duration !== "number" ) {
7230			if ( opt.duration in jQuery.fx.speeds ) {
7231				opt.duration = jQuery.fx.speeds[ opt.duration ];
7232
7233			} else {
7234				opt.duration = jQuery.fx.speeds._default;
7235			}
7236		}
7237	}
7238
7239	// Normalize opt.queue - true/undefined/null -> "fx"
7240	if ( opt.queue == null || opt.queue === true ) {
7241		opt.queue = "fx";
7242	}
7243
7244	// Queueing
7245	opt.old = opt.complete;
7246
7247	opt.complete = function() {
7248		if ( isFunction( opt.old ) ) {
7249			opt.old.call( this );
7250		}
7251
7252		if ( opt.queue ) {
7253			jQuery.dequeue( this, opt.queue );
7254		}
7255	};
7256
7257	return opt;
7258};
7259
7260jQuery.fn.extend( {
7261	fadeTo: function( speed, to, easing, callback ) {
7262
7263		// Show any hidden elements after setting opacity to 0
7264		return this.filter( isHiddenWithinTree ).css( "opacity", 0 ).show()
7265
7266			// Animate to the value specified
7267			.end().animate( { opacity: to }, speed, easing, callback );
7268	},
7269	animate: function( prop, speed, easing, callback ) {
7270		var empty = jQuery.isEmptyObject( prop ),
7271			optall = jQuery.speed( speed, easing, callback ),
7272			doAnimation = function() {
7273
7274				// Operate on a copy of prop so per-property easing won't be lost
7275				var anim = Animation( this, jQuery.extend( {}, prop ), optall );
7276
7277				// Empty animations, or finishing resolves immediately
7278				if ( empty || dataPriv.get( this, "finish" ) ) {
7279					anim.stop( true );
7280				}
7281			};
7282			doAnimation.finish = doAnimation;
7283
7284		return empty || optall.queue === false ?
7285			this.each( doAnimation ) :
7286			this.queue( optall.queue, doAnimation );
7287	},
7288	stop: function( type, clearQueue, gotoEnd ) {
7289		var stopQueue = function( hooks ) {
7290			var stop = hooks.stop;
7291			delete hooks.stop;
7292			stop( gotoEnd );
7293		};
7294
7295		if ( typeof type !== "string" ) {
7296			gotoEnd = clearQueue;
7297			clearQueue = type;
7298			type = undefined;
7299		}
7300		if ( clearQueue && type !== false ) {
7301			this.queue( type || "fx", [] );
7302		}
7303
7304		return this.each( function() {
7305			var dequeue = true,
7306				index = type != null && type + "queueHooks",
7307				timers = jQuery.timers,
7308				data = dataPriv.get( this );
7309
7310			if ( index ) {
7311				if ( data[ index ] && data[ index ].stop ) {
7312					stopQueue( data[ index ] );
7313				}
7314			} else {
7315				for ( index in data ) {
7316					if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
7317						stopQueue( data[ index ] );
7318					}
7319				}
7320			}
7321
7322			for ( index = timers.length; index--; ) {
7323				if ( timers[ index ].elem === this &&
7324					( type == null || timers[ index ].queue === type ) ) {
7325
7326					timers[ index ].anim.stop( gotoEnd );
7327					dequeue = false;
7328					timers.splice( index, 1 );
7329				}
7330			}
7331
7332			// Start the next in the queue if the last step wasn't forced.
7333			// Timers currently will call their complete callbacks, which
7334			// will dequeue but only if they were gotoEnd.
7335			if ( dequeue || !gotoEnd ) {
7336				jQuery.dequeue( this, type );
7337			}
7338		} );
7339	},
7340	finish: function( type ) {
7341		if ( type !== false ) {
7342			type = type || "fx";
7343		}
7344		return this.each( function() {
7345			var index,
7346				data = dataPriv.get( this ),
7347				queue = data[ type + "queue" ],
7348				hooks = data[ type + "queueHooks" ],
7349				timers = jQuery.timers,
7350				length = queue ? queue.length : 0;
7351
7352			// Enable finishing flag on private data
7353			data.finish = true;
7354
7355			// Empty the queue first
7356			jQuery.queue( this, type, [] );
7357
7358			if ( hooks && hooks.stop ) {
7359				hooks.stop.call( this, true );
7360			}
7361
7362			// Look for any active animations, and finish them
7363			for ( index = timers.length; index--; ) {
7364				if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
7365					timers[ index ].anim.stop( true );
7366					timers.splice( index, 1 );
7367				}
7368			}
7369
7370			// Look for any animations in the old queue and finish them
7371			for ( index = 0; index < length; index++ ) {
7372				if ( queue[ index ] && queue[ index ].finish ) {
7373					queue[ index ].finish.call( this );
7374				}
7375			}
7376
7377			// Turn off finishing flag
7378			delete data.finish;
7379		} );
7380	}
7381} );
7382
7383jQuery.each( [ "toggle", "show", "hide" ], function( i, name ) {
7384	var cssFn = jQuery.fn[ name ];
7385	jQuery.fn[ name ] = function( speed, easing, callback ) {
7386		return speed == null || typeof speed === "boolean" ?
7387			cssFn.apply( this, arguments ) :
7388			this.animate( genFx( name, true ), speed, easing, callback );
7389	};
7390} );
7391
7392// Generate shortcuts for custom animations
7393jQuery.each( {
7394	slideDown: genFx( "show" ),
7395	slideUp: genFx( "hide" ),
7396	slideToggle: genFx( "toggle" ),
7397	fadeIn: { opacity: "show" },
7398	fadeOut: { opacity: "hide" },
7399	fadeToggle: { opacity: "toggle" }
7400}, function( name, props ) {
7401	jQuery.fn[ name ] = function( speed, easing, callback ) {
7402		return this.animate( props, speed, easing, callback );
7403	};
7404} );
7405
7406jQuery.timers = [];
7407jQuery.fx.tick = function() {
7408	var timer,
7409		i = 0,
7410		timers = jQuery.timers;
7411
7412	fxNow = Date.now();
7413
7414	for ( ; i < timers.length; i++ ) {
7415		timer = timers[ i ];
7416
7417		// Run the timer and safely remove it when done (allowing for external removal)
7418		if ( !timer() && timers[ i ] === timer ) {
7419			timers.splice( i--, 1 );
7420		}
7421	}
7422
7423	if ( !timers.length ) {
7424		jQuery.fx.stop();
7425	}
7426	fxNow = undefined;
7427};
7428
7429jQuery.fx.timer = function( timer ) {
7430	jQuery.timers.push( timer );
7431	jQuery.fx.start();
7432};
7433
7434jQuery.fx.interval = 13;
7435jQuery.fx.start = function() {
7436	if ( inProgress ) {
7437		return;
7438	}
7439
7440	inProgress = true;
7441	schedule();
7442};
7443
7444jQuery.fx.stop = function() {
7445	inProgress = null;
7446};
7447
7448jQuery.fx.speeds = {
7449	slow: 600,
7450	fast: 200,
7451
7452	// Default speed
7453	_default: 400
7454};
7455
7456
7457// Based off of the plugin by Clint Helfers, with permission.
7458// https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
7459jQuery.fn.delay = function( time, type ) {
7460	time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
7461	type = type || "fx";
7462
7463	return this.queue( type, function( next, hooks ) {
7464		var timeout = window.setTimeout( next, time );
7465		hooks.stop = function() {
7466			window.clearTimeout( timeout );
7467		};
7468	} );
7469};
7470
7471
7472( function() {
7473	var input = document.createElement( "input" ),
7474		select = document.createElement( "select" ),
7475		opt = select.appendChild( document.createElement( "option" ) );
7476
7477	input.type = "checkbox";
7478
7479	// Support: Android <=4.3 only
7480	// Default value for a checkbox should be "on"
7481	support.checkOn = input.value !== "";
7482
7483	// Support: IE <=11 only
7484	// Must access selectedIndex to make default options select
7485	support.optSelected = opt.selected;
7486
7487	// Support: IE <=11 only
7488	// An input loses its value after becoming a radio
7489	input = document.createElement( "input" );
7490	input.value = "t";
7491	input.type = "radio";
7492	support.radioValue = input.value === "t";
7493} )();
7494
7495
7496var boolHook,
7497	attrHandle = jQuery.expr.attrHandle;
7498
7499jQuery.fn.extend( {
7500	attr: function( name, value ) {
7501		return access( this, jQuery.attr, name, value, arguments.length > 1 );
7502	},
7503
7504	removeAttr: function( name ) {
7505		return this.each( function() {
7506			jQuery.removeAttr( this, name );
7507		} );
7508	}
7509} );
7510
7511jQuery.extend( {
7512	attr: function( elem, name, value ) {
7513		var ret, hooks,
7514			nType = elem.nodeType;
7515
7516		// Don't get/set attributes on text, comment and attribute nodes
7517		if ( nType === 3 || nType === 8 || nType === 2 ) {
7518			return;
7519		}
7520
7521		// Fallback to prop when attributes are not supported
7522		if ( typeof elem.getAttribute === "undefined" ) {
7523			return jQuery.prop( elem, name, value );
7524		}
7525
7526		// Attribute hooks are determined by the lowercase version
7527		// Grab necessary hook if one is defined
7528		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
7529			hooks = jQuery.attrHooks[ name.toLowerCase() ] ||
7530				( jQuery.expr.match.bool.test( name ) ? boolHook : undefined );
7531		}
7532
7533		if ( value !== undefined ) {
7534			if ( value === null ) {
7535				jQuery.removeAttr( elem, name );
7536				return;
7537			}
7538
7539			if ( hooks && "set" in hooks &&
7540				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
7541				return ret;
7542			}
7543
7544			elem.setAttribute( name, value + "" );
7545			return value;
7546		}
7547
7548		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
7549			return ret;
7550		}
7551
7552		ret = jQuery.find.attr( elem, name );
7553
7554		// Non-existent attributes return null, we normalize to undefined
7555		return ret == null ? undefined : ret;
7556	},
7557
7558	attrHooks: {
7559		type: {
7560			set: function( elem, value ) {
7561				if ( !support.radioValue && value === "radio" &&
7562					nodeName( elem, "input" ) ) {
7563					var val = elem.value;
7564					elem.setAttribute( "type", value );
7565					if ( val ) {
7566						elem.value = val;
7567					}
7568					return value;
7569				}
7570			}
7571		}
7572	},
7573
7574	removeAttr: function( elem, value ) {
7575		var name,
7576			i = 0,
7577
7578			// Attribute names can contain non-HTML whitespace characters
7579			// https://html.spec.whatwg.org/multipage/syntax.html#attributes-2
7580			attrNames = value && value.match( rnothtmlwhite );
7581
7582		if ( attrNames && elem.nodeType === 1 ) {
7583			while ( ( name = attrNames[ i++ ] ) ) {
7584				elem.removeAttribute( name );
7585			}
7586		}
7587	}
7588} );
7589
7590// Hooks for boolean attributes
7591boolHook = {
7592	set: function( elem, value, name ) {
7593		if ( value === false ) {
7594
7595			// Remove boolean attributes when set to false
7596			jQuery.removeAttr( elem, name );
7597		} else {
7598			elem.setAttribute( name, name );
7599		}
7600		return name;
7601	}
7602};
7603
7604jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
7605	var getter = attrHandle[ name ] || jQuery.find.attr;
7606
7607	attrHandle[ name ] = function( elem, name, isXML ) {
7608		var ret, handle,
7609			lowercaseName = name.toLowerCase();
7610
7611		if ( !isXML ) {
7612
7613			// Avoid an infinite loop by temporarily removing this function from the getter
7614			handle = attrHandle[ lowercaseName ];
7615			attrHandle[ lowercaseName ] = ret;
7616			ret = getter( elem, name, isXML ) != null ?
7617				lowercaseName :
7618				null;
7619			attrHandle[ lowercaseName ] = handle;
7620		}
7621		return ret;
7622	};
7623} );
7624
7625
7626
7627
7628var rfocusable = /^(?:input|select|textarea|button)$/i,
7629	rclickable = /^(?:a|area)$/i;
7630
7631jQuery.fn.extend( {
7632	prop: function( name, value ) {
7633		return access( this, jQuery.prop, name, value, arguments.length > 1 );
7634	},
7635
7636	removeProp: function( name ) {
7637		return this.each( function() {
7638			delete this[ jQuery.propFix[ name ] || name ];
7639		} );
7640	}
7641} );
7642
7643jQuery.extend( {
7644	prop: function( elem, name, value ) {
7645		var ret, hooks,
7646			nType = elem.nodeType;
7647
7648		// Don't get/set properties on text, comment and attribute nodes
7649		if ( nType === 3 || nType === 8 || nType === 2 ) {
7650			return;
7651		}
7652
7653		if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
7654
7655			// Fix name and attach hooks
7656			name = jQuery.propFix[ name ] || name;
7657			hooks = jQuery.propHooks[ name ];
7658		}
7659
7660		if ( value !== undefined ) {
7661			if ( hooks && "set" in hooks &&
7662				( ret = hooks.set( elem, value, name ) ) !== undefined ) {
7663				return ret;
7664			}
7665
7666			return ( elem[ name ] = value );
7667		}
7668
7669		if ( hooks && "get" in hooks && ( ret = hooks.get( elem, name ) ) !== null ) {
7670			return ret;
7671		}
7672
7673		return elem[ name ];
7674	},
7675
7676	propHooks: {
7677		tabIndex: {
7678			get: function( elem ) {
7679
7680				// Support: IE <=9 - 11 only
7681				// elem.tabIndex doesn't always return the
7682				// correct value when it hasn't been explicitly set
7683				// https://web.archive.org/web/20141116233347/http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
7684				// Use proper attribute retrieval(#12072)
7685				var tabindex = jQuery.find.attr( elem, "tabindex" );
7686
7687				if ( tabindex ) {
7688					return parseInt( tabindex, 10 );
7689				}
7690
7691				if (
7692					rfocusable.test( elem.nodeName ) ||
7693					rclickable.test( elem.nodeName ) &&
7694					elem.href
7695				) {
7696					return 0;
7697				}
7698
7699				return -1;
7700			}
7701		}
7702	},
7703
7704	propFix: {
7705		"for": "htmlFor",
7706		"class": "className"
7707	}
7708} );
7709
7710// Support: IE <=11 only
7711// Accessing the selectedIndex property
7712// forces the browser to respect setting selected
7713// on the option
7714// The getter ensures a default option is selected
7715// when in an optgroup
7716// eslint rule "no-unused-expressions" is disabled for this code
7717// since it considers such accessions noop
7718if ( !support.optSelected ) {
7719	jQuery.propHooks.selected = {
7720		get: function( elem ) {
7721
7722			/* eslint no-unused-expressions: "off" */
7723
7724			var parent = elem.parentNode;
7725			if ( parent && parent.parentNode ) {
7726				parent.parentNode.selectedIndex;
7727			}
7728			return null;
7729		},
7730		set: function( elem ) {
7731
7732			/* eslint no-unused-expressions: "off" */
7733
7734			var parent = elem.parentNode;
7735			if ( parent ) {
7736				parent.selectedIndex;
7737
7738				if ( parent.parentNode ) {
7739					parent.parentNode.selectedIndex;
7740				}
7741			}
7742		}
7743	};
7744}
7745
7746jQuery.each( [
7747	"tabIndex",
7748	"readOnly",
7749	"maxLength",
7750	"cellSpacing",
7751	"cellPadding",
7752	"rowSpan",
7753	"colSpan",
7754	"useMap",
7755	"frameBorder",
7756	"contentEditable"
7757], function() {
7758	jQuery.propFix[ this.toLowerCase() ] = this;
7759} );
7760
7761
7762
7763
7764	// Strip and collapse whitespace according to HTML spec
7765	// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
7766	function stripAndCollapse( value ) {
7767		var tokens = value.match( rnothtmlwhite ) || [];
7768		return tokens.join( " " );
7769	}
7770
7771
7772function getClass( elem ) {
7773	return elem.getAttribute && elem.getAttribute( "class" ) || "";
7774}
7775
7776function classesToArray( value ) {
7777	if ( Array.isArray( value ) ) {
7778		return value;
7779	}
7780	if ( typeof value === "string" ) {
7781		return value.match( rnothtmlwhite ) || [];
7782	}
7783	return [];
7784}
7785
7786jQuery.fn.extend( {
7787	addClass: function( value ) {
7788		var classes, elem, cur, curValue, clazz, j, finalValue,
7789			i = 0;
7790
7791		if ( isFunction( value ) ) {
7792			return this.each( function( j ) {
7793				jQuery( this ).addClass( value.call( this, j, getClass( this ) ) );
7794			} );
7795		}
7796
7797		classes = classesToArray( value );
7798
7799		if ( classes.length ) {
7800			while ( ( elem = this[ i++ ] ) ) {
7801				curValue = getClass( elem );
7802				cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
7803
7804				if ( cur ) {
7805					j = 0;
7806					while ( ( clazz = classes[ j++ ] ) ) {
7807						if ( cur.indexOf( " " + clazz + " " ) < 0 ) {
7808							cur += clazz + " ";
7809						}
7810					}
7811
7812					// Only assign if different to avoid unneeded rendering.
7813					finalValue = stripAndCollapse( cur );
7814					if ( curValue !== finalValue ) {
7815						elem.setAttribute( "class", finalValue );
7816					}
7817				}
7818			}
7819		}
7820
7821		return this;
7822	},
7823
7824	removeClass: function( value ) {
7825		var classes, elem, cur, curValue, clazz, j, finalValue,
7826			i = 0;
7827
7828		if ( isFunction( value ) ) {
7829			return this.each( function( j ) {
7830				jQuery( this ).removeClass( value.call( this, j, getClass( this ) ) );
7831			} );
7832		}
7833
7834		if ( !arguments.length ) {
7835			return this.attr( "class", "" );
7836		}
7837
7838		classes = classesToArray( value );
7839
7840		if ( classes.length ) {
7841			while ( ( elem = this[ i++ ] ) ) {
7842				curValue = getClass( elem );
7843
7844				// This expression is here for better compressibility (see addClass)
7845				cur = elem.nodeType === 1 && ( " " + stripAndCollapse( curValue ) + " " );
7846
7847				if ( cur ) {
7848					j = 0;
7849					while ( ( clazz = classes[ j++ ] ) ) {
7850
7851						// Remove *all* instances
7852						while ( cur.indexOf( " " + clazz + " " ) > -1 ) {
7853							cur = cur.replace( " " + clazz + " ", " " );
7854						}
7855					}
7856
7857					// Only assign if different to avoid unneeded rendering.
7858					finalValue = stripAndCollapse( cur );
7859					if ( curValue !== finalValue ) {
7860						elem.setAttribute( "class", finalValue );
7861					}
7862				}
7863			}
7864		}
7865
7866		return this;
7867	},
7868
7869	toggleClass: function( value, stateVal ) {
7870		var type = typeof value,
7871			isValidValue = type === "string" || Array.isArray( value );
7872
7873		if ( typeof stateVal === "boolean" && isValidValue ) {
7874			return stateVal ? this.addClass( value ) : this.removeClass( value );
7875		}
7876
7877		if ( isFunction( value ) ) {
7878			return this.each( function( i ) {
7879				jQuery( this ).toggleClass(
7880					value.call( this, i, getClass( this ), stateVal ),
7881					stateVal
7882				);
7883			} );
7884		}
7885
7886		return this.each( function() {
7887			var className, i, self, classNames;
7888
7889			if ( isValidValue ) {
7890
7891				// Toggle individual class names
7892				i = 0;
7893				self = jQuery( this );
7894				classNames = classesToArray( value );
7895
7896				while ( ( className = classNames[ i++ ] ) ) {
7897
7898					// Check each className given, space separated list
7899					if ( self.hasClass( className ) ) {
7900						self.removeClass( className );
7901					} else {
7902						self.addClass( className );
7903					}
7904				}
7905
7906			// Toggle whole class name
7907			} else if ( value === undefined || type === "boolean" ) {
7908				className = getClass( this );
7909				if ( className ) {
7910
7911					// Store className if set
7912					dataPriv.set( this, "__className__", className );
7913				}
7914
7915				// If the element has a class name or if we're passed `false`,
7916				// then remove the whole classname (if there was one, the above saved it).
7917				// Otherwise bring back whatever was previously saved (if anything),
7918				// falling back to the empty string if nothing was stored.
7919				if ( this.setAttribute ) {
7920					this.setAttribute( "class",
7921						className || value === false ?
7922						"" :
7923						dataPriv.get( this, "__className__" ) || ""
7924					);
7925				}
7926			}
7927		} );
7928	},
7929
7930	hasClass: function( selector ) {
7931		var className, elem,
7932			i = 0;
7933
7934		className = " " + selector + " ";
7935		while ( ( elem = this[ i++ ] ) ) {
7936			if ( elem.nodeType === 1 &&
7937				( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) {
7938					return true;
7939			}
7940		}
7941
7942		return false;
vendor: 5,544 bytes, lines 7943-8178
7943	}
7944} );
7945
7946
7947
7948
7949var rreturn = /\r/g;
7950
7951jQuery.fn.extend( {
7952	val: function( value ) {
7953		var hooks, ret, valueIsFunction,
7954			elem = this[ 0 ];
7955
7956		if ( !arguments.length ) {
7957			if ( elem ) {
7958				hooks = jQuery.valHooks[ elem.type ] ||
7959					jQuery.valHooks[ elem.nodeName.toLowerCase() ];
7960
7961				if ( hooks &&
7962					"get" in hooks &&
7963					( ret = hooks.get( elem, "value" ) ) !== undefined
7964				) {
7965					return ret;
7966				}
7967
7968				ret = elem.value;
7969
7970				// Handle most common string cases
7971				if ( typeof ret === "string" ) {
7972					return ret.replace( rreturn, "" );
7973				}
7974
7975				// Handle cases where value is null/undef or number
7976				return ret == null ? "" : ret;
7977			}
7978
7979			return;
7980		}
7981
7982		valueIsFunction = isFunction( value );
7983
7984		return this.each( function( i ) {
7985			var val;
7986
7987			if ( this.nodeType !== 1 ) {
7988				return;
7989			}
7990
7991			if ( valueIsFunction ) {
7992				val = value.call( this, i, jQuery( this ).val() );
7993			} else {
7994				val = value;
7995			}
7996
7997			// Treat null/undefined as ""; convert numbers to string
7998			if ( val == null ) {
7999				val = "";
8000
8001			} else if ( typeof val === "number" ) {
8002				val += "";
8003
8004			} else if ( Array.isArray( val ) ) {
8005				val = jQuery.map( val, function( value ) {
8006					return value == null ? "" : value + "";
8007				} );
8008			}
8009
8010			hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
8011
8012			// If set returns undefined, fall back to normal setting
8013			if ( !hooks || !( "set" in hooks ) || hooks.set( this, val, "value" ) === undefined ) {
8014				this.value = val;
8015			}
8016		} );
8017	}
8018} );
8019
8020jQuery.extend( {
8021	valHooks: {
8022		option: {
8023			get: function( elem ) {
8024
8025				var val = jQuery.find.attr( elem, "value" );
8026				return val != null ?
8027					val :
8028
8029					// Support: IE <=10 - 11 only
8030					// option.text throws exceptions (#14686, #14858)
8031					// Strip and collapse whitespace
8032					// https://html.spec.whatwg.org/#strip-and-collapse-whitespace
8033					stripAndCollapse( jQuery.text( elem ) );
8034			}
8035		},
8036		select: {
8037			get: function( elem ) {
8038				var value, option, i,
8039					options = elem.options,
8040					index = elem.selectedIndex,
8041					one = elem.type === "select-one",
8042					values = one ? null : [],
8043					max = one ? index + 1 : options.length;
8044
8045				if ( index < 0 ) {
8046					i = max;
8047
8048				} else {
8049					i = one ? index : 0;
8050				}
8051
8052				// Loop through all the selected options
8053				for ( ; i < max; i++ ) {
8054					option = options[ i ];
8055
8056					// Support: IE <=9 only
8057					// IE8-9 doesn't update selected after form reset (#2551)
8058					if ( ( option.selected || i === index ) &&
8059
8060							// Don't return options that are disabled or in a disabled optgroup
8061							!option.disabled &&
8062							( !option.parentNode.disabled ||
8063								!nodeName( option.parentNode, "optgroup" ) ) ) {
8064
8065						// Get the specific value for the option
8066						value = jQuery( option ).val();
8067
8068						// We don't need an array for one selects
8069						if ( one ) {
8070							return value;
8071						}
8072
8073						// Multi-Selects return an array
8074						values.push( value );
8075					}
8076				}
8077
8078				return values;
8079			},
8080
8081			set: function( elem, value ) {
8082				var optionSet, option,
8083					options = elem.options,
8084					values = jQuery.makeArray( value ),
8085					i = options.length;
8086
8087				while ( i-- ) {
8088					option = options[ i ];
8089
8090					/* eslint-disable no-cond-assign */
8091
8092					if ( option.selected =
8093						jQuery.inArray( jQuery.valHooks.option.get( option ), values ) > -1
8094					) {
8095						optionSet = true;
8096					}
8097
8098					/* eslint-enable no-cond-assign */
8099				}
8100
8101				// Force browsers to behave consistently when non-matching value is set
8102				if ( !optionSet ) {
8103					elem.selectedIndex = -1;
8104				}
8105				return values;
8106			}
8107		}
8108	}
8109} );
8110
8111// Radios and checkboxes getter/setter
8112jQuery.each( [ "radio", "checkbox" ], function() {
8113	jQuery.valHooks[ this ] = {
8114		set: function( elem, value ) {
8115			if ( Array.isArray( value ) ) {
8116				return ( elem.checked = jQuery.inArray( jQuery( elem ).val(), value ) > -1 );
8117			}
8118		}
8119	};
8120	if ( !support.checkOn ) {
8121		jQuery.valHooks[ this ].get = function( elem ) {
8122			return elem.getAttribute( "value" ) === null ? "on" : elem.value;
8123		};
8124	}
8125} );
8126
8127
8128
8129
8130// Return jQuery for attributes-only inclusion
8131
8132
8133support.focusin = "onfocusin" in window;
8134
8135
8136var rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
8137	stopPropagationCallback = function( e ) {
8138		e.stopPropagation();
8139	};
8140
8141jQuery.extend( jQuery.event, {
8142
8143	trigger: function( event, data, elem, onlyHandlers ) {
8144
8145		var i, cur, tmp, bubbleType, ontype, handle, special, lastElement,
8146			eventPath = [ elem || document ],
8147			type = hasOwn.call( event, "type" ) ? event.type : event,
8148			namespaces = hasOwn.call( event, "namespace" ) ? event.namespace.split( "." ) : [];
8149
8150		cur = lastElement = tmp = elem = elem || document;
8151
8152		// Don't do events on text and comment nodes
8153		if ( elem.nodeType === 3 || elem.nodeType === 8 ) {
8154			return;
8155		}
8156
8157		// focus/blur morphs to focusin/out; ensure we're not firing them right now
8158		if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
8159			return;
8160		}
8161
8162		if ( type.indexOf( "." ) > -1 ) {
8163
8164			// Namespaced trigger; create a regexp to match event type in handle()
8165			namespaces = type.split( "." );
8166			type = namespaces.shift();
8167			namespaces.sort();
8168		}
8169		ontype = type.indexOf( ":" ) < 0 && "on" + type;
8170
8171		// Caller can pass in a jQuery.Event object, Object, or just an event type string
8172		event = event[ jQuery.expando ] ?
8173			event :
8174			new jQuery.Event( type, typeof event === "object" && event );
8175
8176		// Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
8177		event.isTrigger = onlyHandlers ? 2 : 3;
8178		event.namespace = namespaces.join( "." );
vendor: 32,532 bytes, lines 8179-9450
8179		event.rnamespace = event.namespace ?
8180			new RegExp( "(^|\\.)" + namespaces.join( "\\.(?:.*\\.|)" ) + "(\\.|$)" ) :
8181			null;
8182
8183		// Clean up the event in case it is being reused
8184		event.result = undefined;
8185		if ( !event.target ) {
8186			event.target = elem;
8187		}
8188
8189		// Clone any incoming data and prepend the event, creating the handler arg list
8190		data = data == null ?
8191			[ event ] :
8192			jQuery.makeArray( data, [ event ] );
8193
8194		// Allow special events to draw outside the lines
8195		special = jQuery.event.special[ type ] || {};
8196		if ( !onlyHandlers && special.trigger && special.trigger.apply( elem, data ) === false ) {
8197			return;
8198		}
8199
8200		// Determine event propagation path in advance, per W3C events spec (#9951)
8201		// Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
8202		if ( !onlyHandlers && !special.noBubble && !isWindow( elem ) ) {
8203
8204			bubbleType = special.delegateType || type;
8205			if ( !rfocusMorph.test( bubbleType + type ) ) {
8206				cur = cur.parentNode;
8207			}
8208			for ( ; cur; cur = cur.parentNode ) {
8209				eventPath.push( cur );
8210				tmp = cur;
8211			}
8212
8213			// Only add window if we got to document (e.g., not plain obj or detached DOM)
8214			if ( tmp === ( elem.ownerDocument || document ) ) {
8215				eventPath.push( tmp.defaultView || tmp.parentWindow || window );
8216			}
8217		}
8218
8219		// Fire handlers on the event path
8220		i = 0;
8221		while ( ( cur = eventPath[ i++ ] ) && !event.isPropagationStopped() ) {
8222			lastElement = cur;
8223			event.type = i > 1 ?
8224				bubbleType :
8225				special.bindType || type;
8226
8227			// jQuery handler
8228			handle = ( dataPriv.get( cur, "events" ) || {} )[ event.type ] &&
8229				dataPriv.get( cur, "handle" );
8230			if ( handle ) {
8231				handle.apply( cur, data );
8232			}
8233
8234			// Native handler
8235			handle = ontype && cur[ ontype ];
8236			if ( handle && handle.apply && acceptData( cur ) ) {
8237				event.result = handle.apply( cur, data );
8238				if ( event.result === false ) {
8239					event.preventDefault();
8240				}
8241			}
8242		}
8243		event.type = type;
8244
8245		// If nobody prevented the default action, do it now
8246		if ( !onlyHandlers && !event.isDefaultPrevented() ) {
8247
8248			if ( ( !special._default ||
8249				special._default.apply( eventPath.pop(), data ) === false ) &&
8250				acceptData( elem ) ) {
8251
8252				// Call a native DOM method on the target with the same name as the event.
8253				// Don't do default actions on window, that's where global variables be (#6170)
8254				if ( ontype && isFunction( elem[ type ] ) && !isWindow( elem ) ) {
8255
8256					// Don't re-trigger an onFOO event when we call its FOO() method
8257					tmp = elem[ ontype ];
8258
8259					if ( tmp ) {
8260						elem[ ontype ] = null;
8261					}
8262
8263					// Prevent re-triggering of the same event, since we already bubbled it above
8264					jQuery.event.triggered = type;
8265
8266					if ( event.isPropagationStopped() ) {
8267						lastElement.addEventListener( type, stopPropagationCallback );
8268					}
8269
8270					elem[ type ]();
8271
8272					if ( event.isPropagationStopped() ) {
8273						lastElement.removeEventListener( type, stopPropagationCallback );
8274					}
8275
8276					jQuery.event.triggered = undefined;
8277
8278					if ( tmp ) {
8279						elem[ ontype ] = tmp;
8280					}
8281				}
8282			}
8283		}
8284
8285		return event.result;
8286	},
8287
8288	// Piggyback on a donor event to simulate a different one
8289	// Used only for `focus(in | out)` events
8290	simulate: function( type, elem, event ) {
8291		var e = jQuery.extend(
8292			new jQuery.Event(),
8293			event,
8294			{
8295				type: type,
8296				isSimulated: true
8297			}
8298		);
8299
8300		jQuery.event.trigger( e, null, elem );
8301	}
8302
8303} );
8304
8305jQuery.fn.extend( {
8306
8307	trigger: function( type, data ) {
8308		return this.each( function() {
8309			jQuery.event.trigger( type, data, this );
8310		} );
8311	},
8312	triggerHandler: function( type, data ) {
8313		var elem = this[ 0 ];
8314		if ( elem ) {
8315			return jQuery.event.trigger( type, data, elem, true );
8316		}
8317	}
8318} );
8319
8320
8321// Support: Firefox <=44
8322// Firefox doesn't have focus(in | out) events
8323// Related ticket - https://bugzilla.mozilla.org/show_bug.cgi?id=687787
8324//
8325// Support: Chrome <=48 - 49, Safari <=9.0 - 9.1
8326// focus(in | out) events fire after focus & blur events,
8327// which is spec violation - http://www.w3.org/TR/DOM-Level-3-Events/#events-focusevent-event-order
8328// Related ticket - https://bugs.chromium.org/p/chromium/issues/detail?id=449857
8329if ( !support.focusin ) {
8330	jQuery.each( { focus: "focusin", blur: "focusout" }, function( orig, fix ) {
8331
8332		// Attach a single capturing handler on the document while someone wants focusin/focusout
8333		var handler = function( event ) {
8334			jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ) );
8335		};
8336
8337		jQuery.event.special[ fix ] = {
8338			setup: function() {
8339				var doc = this.ownerDocument || this,
8340					attaches = dataPriv.access( doc, fix );
8341
8342				if ( !attaches ) {
8343					doc.addEventListener( orig, handler, true );
8344				}
8345				dataPriv.access( doc, fix, ( attaches || 0 ) + 1 );
8346			},
8347			teardown: function() {
8348				var doc = this.ownerDocument || this,
8349					attaches = dataPriv.access( doc, fix ) - 1;
8350
8351				if ( !attaches ) {
8352					doc.removeEventListener( orig, handler, true );
8353					dataPriv.remove( doc, fix );
8354
8355				} else {
8356					dataPriv.access( doc, fix, attaches );
8357				}
8358			}
8359		};
8360	} );
8361}
8362var location = window.location;
8363
8364var nonce = Date.now();
8365
8366var rquery = ( /\?/ );
8367
8368
8369
8370// Cross-browser xml parsing
8371jQuery.parseXML = function( data ) {
8372	var xml;
8373	if ( !data || typeof data !== "string" ) {
8374		return null;
8375	}
8376
8377	// Support: IE 9 - 11 only
8378	// IE throws on parseFromString with invalid input.
8379	try {
8380		xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
8381	} catch ( e ) {
8382		xml = undefined;
8383	}
8384
8385	if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
8386		jQuery.error( "Invalid XML: " + data );
8387	}
8388	return xml;
8389};
8390
8391
8392var
8393	rbracket = /\[\]$/,
8394	rCRLF = /\r?\n/g,
8395	rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
8396	rsubmittable = /^(?:input|select|textarea|keygen)/i;
8397
8398function buildParams( prefix, obj, traditional, add ) {
8399	var name;
8400
8401	if ( Array.isArray( obj ) ) {
8402
8403		// Serialize array item.
8404		jQuery.each( obj, function( i, v ) {
8405			if ( traditional || rbracket.test( prefix ) ) {
8406
8407				// Treat each array item as a scalar.
8408				add( prefix, v );
8409
8410			} else {
8411
8412				// Item is non-scalar (array or object), encode its numeric index.
8413				buildParams(
8414					prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
8415					v,
8416					traditional,
8417					add
8418				);
8419			}
8420		} );
8421
8422	} else if ( !traditional && toType( obj ) === "object" ) {
8423
8424		// Serialize object item.
8425		for ( name in obj ) {
8426			buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
8427		}
8428
8429	} else {
8430
8431		// Serialize scalar item.
8432		add( prefix, obj );
8433	}
8434}
8435
8436// Serialize an array of form elements or a set of
8437// key/values into a query string
8438jQuery.param = function( a, traditional ) {
8439	var prefix,
8440		s = [],
8441		add = function( key, valueOrFunction ) {
8442
8443			// If value is a function, invoke it and use its return value
8444			var value = isFunction( valueOrFunction ) ?
8445				valueOrFunction() :
8446				valueOrFunction;
8447
8448			s[ s.length ] = encodeURIComponent( key ) + "=" +
8449				encodeURIComponent( value == null ? "" : value );
8450		};
8451
8452	// If an array was passed in, assume that it is an array of form elements.
8453	if ( Array.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
8454
8455		// Serialize the form elements
8456		jQuery.each( a, function() {
8457			add( this.name, this.value );
8458		} );
8459
8460	} else {
8461
8462		// If traditional, encode the "old" way (the way 1.3.2 or older
8463		// did it), otherwise encode params recursively.
8464		for ( prefix in a ) {
8465			buildParams( prefix, a[ prefix ], traditional, add );
8466		}
8467	}
8468
8469	// Return the resulting serialization
8470	return s.join( "&" );
8471};
8472
8473jQuery.fn.extend( {
8474	serialize: function() {
8475		return jQuery.param( this.serializeArray() );
8476	},
8477	serializeArray: function() {
8478		return this.map( function() {
8479
8480			// Can add propHook for "elements" to filter or add form elements
8481			var elements = jQuery.prop( this, "elements" );
8482			return elements ? jQuery.makeArray( elements ) : this;
8483		} )
8484		.filter( function() {
8485			var type = this.type;
8486
8487			// Use .is( ":disabled" ) so that fieldset[disabled] works
8488			return this.name && !jQuery( this ).is( ":disabled" ) &&
8489				rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
8490				( this.checked || !rcheckableType.test( type ) );
8491		} )
8492		.map( function( i, elem ) {
8493			var val = jQuery( this ).val();
8494
8495			if ( val == null ) {
8496				return null;
8497			}
8498
8499			if ( Array.isArray( val ) ) {
8500				return jQuery.map( val, function( val ) {
8501					return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
8502				} );
8503			}
8504
8505			return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
8506		} ).get();
8507	}
8508} );
8509
8510
8511var
8512	r20 = /%20/g,
8513	rhash = /#.*$/,
8514	rantiCache = /([?&])_=[^&]*/,
8515	rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
8516
8517	// #7653, #8125, #8152: local protocol detection
8518	rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
8519	rnoContent = /^(?:GET|HEAD)$/,
8520	rprotocol = /^\/\//,
8521
8522	/* Prefilters
8523	 * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
8524	 * 2) These are called:
8525	 *    - BEFORE asking for a transport
8526	 *    - AFTER param serialization (s.data is a string if s.processData is true)
8527	 * 3) key is the dataType
8528	 * 4) the catchall symbol "*" can be used
8529	 * 5) execution will start with transport dataType and THEN continue down to "*" if needed
8530	 */
8531	prefilters = {},
8532
8533	/* Transports bindings
8534	 * 1) key is the dataType
8535	 * 2) the catchall symbol "*" can be used
8536	 * 3) selection will start with transport dataType and THEN go to "*" if needed
8537	 */
8538	transports = {},
8539
8540	// Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
8541	allTypes = "*/".concat( "*" ),
8542
8543	// Anchor tag for parsing the document origin
8544	originAnchor = document.createElement( "a" );
8545	originAnchor.href = location.href;
8546
8547// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
8548function addToPrefiltersOrTransports( structure ) {
8549
8550	// dataTypeExpression is optional and defaults to "*"
8551	return function( dataTypeExpression, func ) {
8552
8553		if ( typeof dataTypeExpression !== "string" ) {
8554			func = dataTypeExpression;
8555			dataTypeExpression = "*";
8556		}
8557
8558		var dataType,
8559			i = 0,
8560			dataTypes = dataTypeExpression.toLowerCase().match( rnothtmlwhite ) || [];
8561
8562		if ( isFunction( func ) ) {
8563
8564			// For each dataType in the dataTypeExpression
8565			while ( ( dataType = dataTypes[ i++ ] ) ) {
8566
8567				// Prepend if requested
8568				if ( dataType[ 0 ] === "+" ) {
8569					dataType = dataType.slice( 1 ) || "*";
8570					( structure[ dataType ] = structure[ dataType ] || [] ).unshift( func );
8571
8572				// Otherwise append
8573				} else {
8574					( structure[ dataType ] = structure[ dataType ] || [] ).push( func );
8575				}
8576			}
8577		}
8578	};
8579}
8580
8581// Base inspection function for prefilters and transports
8582function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
8583
8584	var inspected = {},
8585		seekingTransport = ( structure === transports );
8586
8587	function inspect( dataType ) {
8588		var selected;
8589		inspected[ dataType ] = true;
8590		jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
8591			var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
8592			if ( typeof dataTypeOrTransport === "string" &&
8593				!seekingTransport && !inspected[ dataTypeOrTransport ] ) {
8594
8595				options.dataTypes.unshift( dataTypeOrTransport );
8596				inspect( dataTypeOrTransport );
8597				return false;
8598			} else if ( seekingTransport ) {
8599				return !( selected = dataTypeOrTransport );
8600			}
8601		} );
8602		return selected;
8603	}
8604
8605	return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
8606}
8607
8608// A special extend for ajax options
8609// that takes "flat" options (not to be deep extended)
8610// Fixes #9887
8611function ajaxExtend( target, src ) {
8612	var key, deep,
8613		flatOptions = jQuery.ajaxSettings.flatOptions || {};
8614
8615	for ( key in src ) {
8616		if ( src[ key ] !== undefined ) {
8617			( flatOptions[ key ] ? target : ( deep || ( deep = {} ) ) )[ key ] = src[ key ];
8618		}
8619	}
8620	if ( deep ) {
8621		jQuery.extend( true, target, deep );
8622	}
8623
8624	return target;
8625}
8626
8627/* Handles responses to an ajax request:
8628 * - finds the right dataType (mediates between content-type and expected dataType)
8629 * - returns the corresponding response
8630 */
8631function ajaxHandleResponses( s, jqXHR, responses ) {
8632
8633	var ct, type, finalDataType, firstDataType,
8634		contents = s.contents,
8635		dataTypes = s.dataTypes;
8636
8637	// Remove auto dataType and get content-type in the process
8638	while ( dataTypes[ 0 ] === "*" ) {
8639		dataTypes.shift();
8640		if ( ct === undefined ) {
8641			ct = s.mimeType || jqXHR.getResponseHeader( "Content-Type" );
8642		}
8643	}
8644
8645	// Check if we're dealing with a known content-type
8646	if ( ct ) {
8647		for ( type in contents ) {
8648			if ( contents[ type ] && contents[ type ].test( ct ) ) {
8649				dataTypes.unshift( type );
8650				break;
8651			}
8652		}
8653	}
8654
8655	// Check to see if we have a response for the expected dataType
8656	if ( dataTypes[ 0 ] in responses ) {
8657		finalDataType = dataTypes[ 0 ];
8658	} else {
8659
8660		// Try convertible dataTypes
8661		for ( type in responses ) {
8662			if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[ 0 ] ] ) {
8663				finalDataType = type;
8664				break;
8665			}
8666			if ( !firstDataType ) {
8667				firstDataType = type;
8668			}
8669		}
8670
8671		// Or just use first one
8672		finalDataType = finalDataType || firstDataType;
8673	}
8674
8675	// If we found a dataType
8676	// We add the dataType to the list if needed
8677	// and return the corresponding response
8678	if ( finalDataType ) {
8679		if ( finalDataType !== dataTypes[ 0 ] ) {
8680			dataTypes.unshift( finalDataType );
8681		}
8682		return responses[ finalDataType ];
8683	}
8684}
8685
8686/* Chain conversions given the request and the original response
8687 * Also sets the responseXXX fields on the jqXHR instance
8688 */
8689function ajaxConvert( s, response, jqXHR, isSuccess ) {
8690	var conv2, current, conv, tmp, prev,
8691		converters = {},
8692
8693		// Work with a copy of dataTypes in case we need to modify it for conversion
8694		dataTypes = s.dataTypes.slice();
8695
8696	// Create converters map with lowercased keys
8697	if ( dataTypes[ 1 ] ) {
8698		for ( conv in s.converters ) {
8699			converters[ conv.toLowerCase() ] = s.converters[ conv ];
8700		}
8701	}
8702
8703	current = dataTypes.shift();
8704
8705	// Convert to each sequential dataType
8706	while ( current ) {
8707
8708		if ( s.responseFields[ current ] ) {
8709			jqXHR[ s.responseFields[ current ] ] = response;
8710		}
8711
8712		// Apply the dataFilter if provided
8713		if ( !prev && isSuccess && s.dataFilter ) {
8714			response = s.dataFilter( response, s.dataType );
8715		}
8716
8717		prev = current;
8718		current = dataTypes.shift();
8719
8720		if ( current ) {
8721
8722			// There's only work to do if current dataType is non-auto
8723			if ( current === "*" ) {
8724
8725				current = prev;
8726
8727			// Convert response if prev dataType is non-auto and differs from current
8728			} else if ( prev !== "*" && prev !== current ) {
8729
8730				// Seek a direct converter
8731				conv = converters[ prev + " " + current ] || converters[ "* " + current ];
8732
8733				// If none found, seek a pair
8734				if ( !conv ) {
8735					for ( conv2 in converters ) {
8736
8737						// If conv2 outputs current
8738						tmp = conv2.split( " " );
8739						if ( tmp[ 1 ] === current ) {
8740
8741							// If prev can be converted to accepted input
8742							conv = converters[ prev + " " + tmp[ 0 ] ] ||
8743								converters[ "* " + tmp[ 0 ] ];
8744							if ( conv ) {
8745
8746								// Condense equivalence converters
8747								if ( conv === true ) {
8748									conv = converters[ conv2 ];
8749
8750								// Otherwise, insert the intermediate dataType
8751								} else if ( converters[ conv2 ] !== true ) {
8752									current = tmp[ 0 ];
8753									dataTypes.unshift( tmp[ 1 ] );
8754								}
8755								break;
8756							}
8757						}
8758					}
8759				}
8760
8761				// Apply converter (if not an equivalence)
8762				if ( conv !== true ) {
8763
8764					// Unless errors are allowed to bubble, catch and return them
8765					if ( conv && s.throws ) {
8766						response = conv( response );
8767					} else {
8768						try {
8769							response = conv( response );
8770						} catch ( e ) {
8771							return {
8772								state: "parsererror",
8773								error: conv ? e : "No conversion from " + prev + " to " + current
8774							};
8775						}
8776					}
8777				}
8778			}
8779		}
8780	}
8781
8782	return { state: "success", data: response };
8783}
8784
8785jQuery.extend( {
8786
8787	// Counter for holding the number of active queries
8788	active: 0,
8789
8790	// Last-Modified header cache for next request
8791	lastModified: {},
8792	etag: {},
8793
8794	ajaxSettings: {
8795		url: location.href,
8796		type: "GET",
8797		isLocal: rlocalProtocol.test( location.protocol ),
8798		global: true,
8799		processData: true,
8800		async: true,
8801		contentType: "application/x-www-form-urlencoded; charset=UTF-8",
8802
8803		/*
8804		timeout: 0,
8805		data: null,
8806		dataType: null,
8807		username: null,
8808		password: null,
8809		cache: null,
8810		throws: false,
8811		traditional: false,
8812		headers: {},
8813		*/
8814
8815		accepts: {
8816			"*": allTypes,
8817			text: "text/plain",
8818			html: "text/html",
8819			xml: "application/xml, text/xml",
8820			json: "application/json, text/javascript"
8821		},
8822
8823		contents: {
8824			xml: /\bxml\b/,
8825			html: /\bhtml/,
8826			json: /\bjson\b/
8827		},
8828
8829		responseFields: {
8830			xml: "responseXML",
8831			text: "responseText",
8832			json: "responseJSON"
8833		},
8834
8835		// Data converters
8836		// Keys separate source (or catchall "*") and destination types with a single space
8837		converters: {
8838
8839			// Convert anything to text
8840			"* text": String,
8841
8842			// Text to html (true = no transformation)
8843			"text html": true,
8844
8845			// Evaluate text as a json expression
8846			"text json": JSON.parse,
8847
8848			// Parse text as xml
8849			"text xml": jQuery.parseXML
8850		},
8851
8852		// For options that shouldn't be deep extended:
8853		// you can add your own custom options here if
8854		// and when you create one that shouldn't be
8855		// deep extended (see ajaxExtend)
8856		flatOptions: {
8857			url: true,
8858			context: true
8859		}
8860	},
8861
8862	// Creates a full fledged settings object into target
8863	// with both ajaxSettings and settings fields.
8864	// If target is omitted, writes into ajaxSettings.
8865	ajaxSetup: function( target, settings ) {
8866		return settings ?
8867
8868			// Building a settings object
8869			ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
8870
8871			// Extending ajaxSettings
8872			ajaxExtend( jQuery.ajaxSettings, target );
8873	},
8874
8875	ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
8876	ajaxTransport: addToPrefiltersOrTransports( transports ),
8877
8878	// Main method
8879	ajax: function( url, options ) {
8880
8881		// If url is an object, simulate pre-1.5 signature
8882		if ( typeof url === "object" ) {
8883			options = url;
8884			url = undefined;
8885		}
8886
8887		// Force options to be an object
8888		options = options || {};
8889
8890		var transport,
8891
8892			// URL without anti-cache param
8893			cacheURL,
8894
8895			// Response headers
8896			responseHeadersString,
8897			responseHeaders,
8898
8899			// timeout handle
8900			timeoutTimer,
8901
8902			// Url cleanup var
8903			urlAnchor,
8904
8905			// Request state (becomes false upon send and true upon completion)
8906			completed,
8907
8908			// To know if global events are to be dispatched
8909			fireGlobals,
8910
8911			// Loop variable
8912			i,
8913
8914			// uncached part of the url
8915			uncached,
8916
8917			// Create the final options object
8918			s = jQuery.ajaxSetup( {}, options ),
8919
8920			// Callbacks context
8921			callbackContext = s.context || s,
8922
8923			// Context for global events is callbackContext if it is a DOM node or jQuery collection
8924			globalEventContext = s.context &&
8925				( callbackContext.nodeType || callbackContext.jquery ) ?
8926					jQuery( callbackContext ) :
8927					jQuery.event,
8928
8929			// Deferreds
8930			deferred = jQuery.Deferred(),
8931			completeDeferred = jQuery.Callbacks( "once memory" ),
8932
8933			// Status-dependent callbacks
8934			statusCode = s.statusCode || {},
8935
8936			// Headers (they are sent all at once)
8937			requestHeaders = {},
8938			requestHeadersNames = {},
8939
8940			// Default abort message
8941			strAbort = "canceled",
8942
8943			// Fake xhr
8944			jqXHR = {
8945				readyState: 0,
8946
8947				// Builds headers hashtable if needed
8948				getResponseHeader: function( key ) {
8949					var match;
8950					if ( completed ) {
8951						if ( !responseHeaders ) {
8952							responseHeaders = {};
8953							while ( ( match = rheaders.exec( responseHeadersString ) ) ) {
8954								responseHeaders[ match[ 1 ].toLowerCase() ] = match[ 2 ];
8955							}
8956						}
8957						match = responseHeaders[ key.toLowerCase() ];
8958					}
8959					return match == null ? null : match;
8960				},
8961
8962				// Raw string
8963				getAllResponseHeaders: function() {
8964					return completed ? responseHeadersString : null;
8965				},
8966
8967				// Caches the header
8968				setRequestHeader: function( name, value ) {
8969					if ( completed == null ) {
8970						name = requestHeadersNames[ name.toLowerCase() ] =
8971							requestHeadersNames[ name.toLowerCase() ] || name;
8972						requestHeaders[ name ] = value;
8973					}
8974					return this;
8975				},
8976
8977				// Overrides response content-type header
8978				overrideMimeType: function( type ) {
8979					if ( completed == null ) {
8980						s.mimeType = type;
8981					}
8982					return this;
8983				},
8984
8985				// Status-dependent callbacks
8986				statusCode: function( map ) {
8987					var code;
8988					if ( map ) {
8989						if ( completed ) {
8990
8991							// Execute the appropriate callbacks
8992							jqXHR.always( map[ jqXHR.status ] );
8993						} else {
8994
8995							// Lazy-add the new callbacks in a way that preserves old ones
8996							for ( code in map ) {
8997								statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
8998							}
8999						}
9000					}
9001					return this;
9002				},
9003
9004				// Cancel the request
9005				abort: function( statusText ) {
9006					var finalText = statusText || strAbort;
9007					if ( transport ) {
9008						transport.abort( finalText );
9009					}
9010					done( 0, finalText );
9011					return this;
9012				}
9013			};
9014
9015		// Attach deferreds
9016		deferred.promise( jqXHR );
9017
9018		// Add protocol if not provided (prefilters might expect it)
9019		// Handle falsy url in the settings object (#10093: consistency with old signature)
9020		// We also use the url parameter if available
9021		s.url = ( ( url || s.url || location.href ) + "" )
9022			.replace( rprotocol, location.protocol + "//" );
9023
9024		// Alias method option to type as per ticket #12004
9025		s.type = options.method || options.type || s.method || s.type;
9026
9027		// Extract dataTypes list
9028		s.dataTypes = ( s.dataType || "*" ).toLowerCase().match( rnothtmlwhite ) || [ "" ];
9029
9030		// A cross-domain request is in order when the origin doesn't match the current origin.
9031		if ( s.crossDomain == null ) {
9032			urlAnchor = document.createElement( "a" );
9033
9034			// Support: IE <=8 - 11, Edge 12 - 15
9035			// IE throws exception on accessing the href property if url is malformed,
9036			// e.g. http://example.com:80x/
9037			try {
9038				urlAnchor.href = s.url;
9039
9040				// Support: IE <=8 - 11 only
9041				// Anchor's host property isn't correctly set when s.url is relative
9042				urlAnchor.href = urlAnchor.href;
9043				s.crossDomain = originAnchor.protocol + "//" + originAnchor.host !==
9044					urlAnchor.protocol + "//" + urlAnchor.host;
9045			} catch ( e ) {
9046
9047				// If there is an error parsing the URL, assume it is crossDomain,
9048				// it can be rejected by the transport if it is invalid
9049				s.crossDomain = true;
9050			}
9051		}
9052
9053		// Convert data if not already a string
9054		if ( s.data && s.processData && typeof s.data !== "string" ) {
9055			s.data = jQuery.param( s.data, s.traditional );
9056		}
9057
9058		// Apply prefilters
9059		inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
9060
9061		// If request was aborted inside a prefilter, stop there
9062		if ( completed ) {
9063			return jqXHR;
9064		}
9065
9066		// We can fire global events as of now if asked to
9067		// Don't fire events if jQuery.event is undefined in an AMD-usage scenario (#15118)
9068		fireGlobals = jQuery.event && s.global;
9069
9070		// Watch for a new set of requests
9071		if ( fireGlobals && jQuery.active++ === 0 ) {
9072			jQuery.event.trigger( "ajaxStart" );
9073		}
9074
9075		// Uppercase the type
9076		s.type = s.type.toUpperCase();
9077
9078		// Determine if request has content
9079		s.hasContent = !rnoContent.test( s.type );
9080
9081		// Save the URL in case we're toying with the If-Modified-Since
9082		// and/or If-None-Match header later on
9083		// Remove hash to simplify url manipulation
9084		cacheURL = s.url.replace( rhash, "" );
9085
9086		// More options handling for requests with no content
9087		if ( !s.hasContent ) {
9088
9089			// Remember the hash so we can put it back
9090			uncached = s.url.slice( cacheURL.length );
9091
9092			// If data is available and should be processed, append data to url
9093			if ( s.data && ( s.processData || typeof s.data === "string" ) ) {
9094				cacheURL += ( rquery.test( cacheURL ) ? "&" : "?" ) + s.data;
9095
9096				// #9682: remove data so that it's not used in an eventual retry
9097				delete s.data;
9098			}
9099
9100			// Add or update anti-cache param if needed
9101			if ( s.cache === false ) {
9102				cacheURL = cacheURL.replace( rantiCache, "$1" );
9103				uncached = ( rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ( nonce++ ) + uncached;
9104			}
9105
9106			// Put hash and anti-cache on the URL that will be requested (gh-1732)
9107			s.url = cacheURL + uncached;
9108
9109		// Change '%20' to '+' if this is encoded form body content (gh-2658)
9110		} else if ( s.data && s.processData &&
9111			( s.contentType || "" ).indexOf( "application/x-www-form-urlencoded" ) === 0 ) {
9112			s.data = s.data.replace( r20, "+" );
9113		}
9114
9115		// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
9116		if ( s.ifModified ) {
9117			if ( jQuery.lastModified[ cacheURL ] ) {
9118				jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
9119			}
9120			if ( jQuery.etag[ cacheURL ] ) {
9121				jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
9122			}
9123		}
9124
9125		// Set the correct header, if data is being sent
9126		if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
9127			jqXHR.setRequestHeader( "Content-Type", s.contentType );
9128		}
9129
9130		// Set the Accepts header for the server, depending on the dataType
9131		jqXHR.setRequestHeader(
9132			"Accept",
9133			s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[ 0 ] ] ?
9134				s.accepts[ s.dataTypes[ 0 ] ] +
9135					( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
9136				s.accepts[ "*" ]
9137		);
9138
9139		// Check for headers option
9140		for ( i in s.headers ) {
9141			jqXHR.setRequestHeader( i, s.headers[ i ] );
9142		}
9143
9144		// Allow custom headers/mimetypes and early abort
9145		if ( s.beforeSend &&
9146			( s.beforeSend.call( callbackContext, jqXHR, s ) === false || completed ) ) {
9147
9148			// Abort if not done already and return
9149			return jqXHR.abort();
9150		}
9151
9152		// Aborting is no longer a cancellation
9153		strAbort = "abort";
9154
9155		// Install callbacks on deferreds
9156		completeDeferred.add( s.complete );
9157		jqXHR.done( s.success );
9158		jqXHR.fail( s.error );
9159
9160		// Get transport
9161		transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
9162
9163		// If no transport, we auto-abort
9164		if ( !transport ) {
9165			done( -1, "No Transport" );
9166		} else {
9167			jqXHR.readyState = 1;
9168
9169			// Send global event
9170			if ( fireGlobals ) {
9171				globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
9172			}
9173
9174			// If request was aborted inside ajaxSend, stop there
9175			if ( completed ) {
9176				return jqXHR;
9177			}
9178
9179			// Timeout
9180			if ( s.async && s.timeout > 0 ) {
9181				timeoutTimer = window.setTimeout( function() {
9182					jqXHR.abort( "timeout" );
9183				}, s.timeout );
9184			}
9185
9186			try {
9187				completed = false;
9188				transport.send( requestHeaders, done );
9189			} catch ( e ) {
9190
9191				// Rethrow post-completion exceptions
9192				if ( completed ) {
9193					throw e;
9194				}
9195
9196				// Propagate others as results
9197				done( -1, e );
9198			}
9199		}
9200
9201		// Callback for when everything is done
9202		function done( status, nativeStatusText, responses, headers ) {
9203			var isSuccess, success, error, response, modified,
9204				statusText = nativeStatusText;
9205
9206			// Ignore repeat invocations
9207			if ( completed ) {
9208				return;
9209			}
9210
9211			completed = true;
9212
9213			// Clear timeout if it exists
9214			if ( timeoutTimer ) {
9215				window.clearTimeout( timeoutTimer );
9216			}
9217
9218			// Dereference transport for early garbage collection
9219			// (no matter how long the jqXHR object will be used)
9220			transport = undefined;
9221
9222			// Cache response headers
9223			responseHeadersString = headers || "";
9224
9225			// Set readyState
9226			jqXHR.readyState = status > 0 ? 4 : 0;
9227
9228			// Determine if successful
9229			isSuccess = status >= 200 && status < 300 || status === 304;
9230
9231			// Get response data
9232			if ( responses ) {
9233				response = ajaxHandleResponses( s, jqXHR, responses );
9234			}
9235
9236			// Convert no matter what (that way responseXXX fields are always set)
9237			response = ajaxConvert( s, response, jqXHR, isSuccess );
9238
9239			// If successful, handle type chaining
9240			if ( isSuccess ) {
9241
9242				// Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
9243				if ( s.ifModified ) {
9244					modified = jqXHR.getResponseHeader( "Last-Modified" );
9245					if ( modified ) {
9246						jQuery.lastModified[ cacheURL ] = modified;
9247					}
9248					modified = jqXHR.getResponseHeader( "etag" );
9249					if ( modified ) {
9250						jQuery.etag[ cacheURL ] = modified;
9251					}
9252				}
9253
9254				// if no content
9255				if ( status === 204 || s.type === "HEAD" ) {
9256					statusText = "nocontent";
9257
9258				// if not modified
9259				} else if ( status === 304 ) {
9260					statusText = "notmodified";
9261
9262				// If we have data, let's convert it
9263				} else {
9264					statusText = response.state;
9265					success = response.data;
9266					error = response.error;
9267					isSuccess = !error;
9268				}
9269			} else {
9270
9271				// Extract error from statusText and normalize for non-aborts
9272				error = statusText;
9273				if ( status || !statusText ) {
9274					statusText = "error";
9275					if ( status < 0 ) {
9276						status = 0;
9277					}
9278				}
9279			}
9280
9281			// Set data for the fake xhr object
9282			jqXHR.status = status;
9283			jqXHR.statusText = ( nativeStatusText || statusText ) + "";
9284
9285			// Success/Error
9286			if ( isSuccess ) {
9287				deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
9288			} else {
9289				deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
9290			}
9291
9292			// Status-dependent callbacks
9293			jqXHR.statusCode( statusCode );
9294			statusCode = undefined;
9295
9296			if ( fireGlobals ) {
9297				globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
9298					[ jqXHR, s, isSuccess ? success : error ] );
9299			}
9300
9301			// Complete
9302			completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
9303
9304			if ( fireGlobals ) {
9305				globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
9306
9307				// Handle the global AJAX counter
9308				if ( !( --jQuery.active ) ) {
9309					jQuery.event.trigger( "ajaxStop" );
9310				}
9311			}
9312		}
9313
9314		return jqXHR;
9315	},
9316
9317	getJSON: function( url, data, callback ) {
9318		return jQuery.get( url, data, callback, "json" );
9319	},
9320
9321	getScript: function( url, callback ) {
9322		return jQuery.get( url, undefined, callback, "script" );
9323	}
9324} );
9325
9326jQuery.each( [ "get", "post" ], function( i, method ) {
9327	jQuery[ method ] = function( url, data, callback, type ) {
9328
9329		// Shift arguments if data argument was omitted
9330		if ( isFunction( data ) ) {
9331			type = type || callback;
9332			callback = data;
9333			data = undefined;
9334		}
9335
9336		// The url can be an options object (which then must have .url)
9337		return jQuery.ajax( jQuery.extend( {
9338			url: url,
9339			type: method,
9340			dataType: type,
9341			data: data,
9342			success: callback
9343		}, jQuery.isPlainObject( url ) && url ) );
9344	};
9345} );
9346
9347
9348jQuery._evalUrl = function( url ) {
9349	return jQuery.ajax( {
9350		url: url,
9351
9352		// Make this explicit, since user can override this through ajaxSetup (#11264)
9353		type: "GET",
9354		dataType: "script",
9355		cache: true,
9356		async: false,
9357		global: false,
9358		"throws": true
9359	} );
9360};
9361
9362
9363jQuery.fn.extend( {
9364	wrapAll: function( html ) {
9365		var wrap;
9366
9367		if ( this[ 0 ] ) {
9368			if ( isFunction( html ) ) {
9369				html = html.call( this[ 0 ] );
9370			}
9371
9372			// The elements to wrap the target around
9373			wrap = jQuery( html, this[ 0 ].ownerDocument ).eq( 0 ).clone( true );
9374
9375			if ( this[ 0 ].parentNode ) {
9376				wrap.insertBefore( this[ 0 ] );
9377			}
9378
9379			wrap.map( function() {
9380				var elem = this;
9381
9382				while ( elem.firstElementChild ) {
9383					elem = elem.firstElementChild;
9384				}
9385
9386				return elem;
9387			} ).append( this );
9388		}
9389
9390		return this;
9391	},
9392
9393	wrapInner: function( html ) {
9394		if ( isFunction( html ) ) {
9395			return this.each( function( i ) {
9396				jQuery( this ).wrapInner( html.call( this, i ) );
9397			} );
9398		}
9399
9400		return this.each( function() {
9401			var self = jQuery( this ),
9402				contents = self.contents();
9403
9404			if ( contents.length ) {
9405				contents.wrapAll( html );
9406
9407			} else {
9408				self.append( html );
9409			}
9410		} );
9411	},
9412
9413	wrap: function( html ) {
9414		var htmlIsFunction = isFunction( html );
9415
9416		return this.each( function( i ) {
9417			jQuery( this ).wrapAll( htmlIsFunction ? html.call( this, i ) : html );
9418		} );
9419	},
9420
9421	unwrap: function( selector ) {
9422		this.parent( selector ).not( "body" ).each( function() {
9423			jQuery( this ).replaceWith( this.childNodes );
9424		} );
9425		return this;
9426	}
9427} );
9428
9429
9430jQuery.expr.pseudos.hidden = function( elem ) {
9431	return !jQuery.expr.pseudos.visible( elem );
9432};
9433jQuery.expr.pseudos.visible = function( elem ) {
9434	return !!( elem.offsetWidth || elem.offsetHeight || elem.getClientRects().length );
9435};
9436
9437
9438
9439
9440jQuery.ajaxSettings.xhr = function() {
9441	try {
9442		return new window.XMLHttpRequest();
9443	} catch ( e ) {}
9444};
9445
9446var xhrSuccessStatus = {
9447
9448		// File protocol always yields status code 0, assume 200
9449		0: 200,
9450
vendor: 1,240 bytes, lines 9451-9493
9451		// Support: IE <=9 only
9452		// #1450: sometimes IE returns 1223 when it should be 204
9453		1223: 204
9454	},
9455	xhrSupported = jQuery.ajaxSettings.xhr();
9456
9457support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
9458support.ajax = xhrSupported = !!xhrSupported;
9459
9460jQuery.ajaxTransport( function( options ) {
9461	var callback, errorCallback;
9462
9463	// Cross domain only allowed if supported through XMLHttpRequest
9464	if ( support.cors || xhrSupported && !options.crossDomain ) {
9465		return {
9466			send: function( headers, complete ) {
9467				var i,
9468					xhr = options.xhr();
9469
9470				xhr.open(
9471					options.type,
9472					options.url,
9473					options.async,
9474					options.username,
9475					options.password
9476				);
9477
9478				// Apply custom fields if provided
9479				if ( options.xhrFields ) {
9480					for ( i in options.xhrFields ) {
9481						xhr[ i ] = options.xhrFields[ i ];
9482					}
9483				}
9484
9485				// Override mime type if needed
9486				if ( options.mimeType && xhr.overrideMimeType ) {
9487					xhr.overrideMimeType( options.mimeType );
9488				}
9489
9490				// X-Requested-With header
9491				// For cross-domain requests, seeing as conditions for a preflight are
9492				// akin to a jigsaw puzzle, we simply never set it to be sure.
9493				// (it can always be set on a per-request basis or even using ajaxSetup)
vendor: 5,627 bytes, lines 9494-9715
9494				// For same-domain requests, won't change header if already provided.
9495				if ( !options.crossDomain && !headers[ "X-Requested-With" ] ) {
9496					headers[ "X-Requested-With" ] = "XMLHttpRequest";
9497				}
9498
9499				// Set headers
9500				for ( i in headers ) {
9501					xhr.setRequestHeader( i, headers[ i ] );
9502				}
9503
9504				// Callback
9505				callback = function( type ) {
9506					return function() {
9507						if ( callback ) {
9508							callback = errorCallback = xhr.onload =
9509								xhr.onerror = xhr.onabort = xhr.ontimeout =
9510									xhr.onreadystatechange = null;
9511
9512							if ( type === "abort" ) {
9513								xhr.abort();
9514							} else if ( type === "error" ) {
9515
9516								// Support: IE <=9 only
9517								// On a manual native abort, IE9 throws
9518								// errors on any property access that is not readyState
9519								if ( typeof xhr.status !== "number" ) {
9520									complete( 0, "error" );
9521								} else {
9522									complete(
9523
9524										// File: protocol always yields status 0; see #8605, #14207
9525										xhr.status,
9526										xhr.statusText
9527									);
9528								}
9529							} else {
9530								complete(
9531									xhrSuccessStatus[ xhr.status ] || xhr.status,
9532									xhr.statusText,
9533
9534									// Support: IE <=9 only
9535									// IE9 has no XHR2 but throws on binary (trac-11426)
9536									// For XHR2 non-text, let the caller handle it (gh-2498)
9537									( xhr.responseType || "text" ) !== "text"  ||
9538									typeof xhr.responseText !== "string" ?
9539										{ binary: xhr.response } :
9540										{ text: xhr.responseText },
9541									xhr.getAllResponseHeaders()
9542								);
9543							}
9544						}
9545					};
9546				};
9547
9548				// Listen to events
9549				xhr.onload = callback();
9550				errorCallback = xhr.onerror = xhr.ontimeout = callback( "error" );
9551
9552				// Support: IE 9 only
9553				// Use onreadystatechange to replace onabort
9554				// to handle uncaught aborts
9555				if ( xhr.onabort !== undefined ) {
9556					xhr.onabort = errorCallback;
9557				} else {
9558					xhr.onreadystatechange = function() {
9559
9560						// Check readyState before timeout as it changes
9561						if ( xhr.readyState === 4 ) {
9562
9563							// Allow onerror to be called first,
9564							// but that will not handle a native abort
9565							// Also, save errorCallback to a variable
9566							// as xhr.onerror cannot be accessed
9567							window.setTimeout( function() {
9568								if ( callback ) {
9569									errorCallback();
9570								}
9571							} );
9572						}
9573					};
9574				}
9575
9576				// Create the abort callback
9577				callback = callback( "abort" );
9578
9579				try {
9580
9581					// Do send the request (this may raise an exception)
9582					xhr.send( options.hasContent && options.data || null );
9583				} catch ( e ) {
9584
9585					// #14683: Only rethrow if this hasn't been notified as an error yet
9586					if ( callback ) {
9587						throw e;
9588					}
9589				}
9590			},
9591
9592			abort: function() {
9593				if ( callback ) {
9594					callback();
9595				}
9596			}
9597		};
9598	}
9599} );
9600
9601
9602
9603
9604// Prevent auto-execution of scripts when no explicit dataType was provided (See gh-2432)
9605jQuery.ajaxPrefilter( function( s ) {
9606	if ( s.crossDomain ) {
9607		s.contents.script = false;
9608	}
9609} );
9610
9611// Install script dataType
9612jQuery.ajaxSetup( {
9613	accepts: {
9614		script: "text/javascript, application/javascript, " +
9615			"application/ecmascript, application/x-ecmascript"
9616	},
9617	contents: {
9618		script: /\b(?:java|ecma)script\b/
9619	},
9620	converters: {
9621		"text script": function( text ) {
9622			jQuery.globalEval( text );
9623			return text;
9624		}
9625	}
9626} );
9627
9628// Handle cache's special case and crossDomain
9629jQuery.ajaxPrefilter( "script", function( s ) {
9630	if ( s.cache === undefined ) {
9631		s.cache = false;
9632	}
9633	if ( s.crossDomain ) {
9634		s.type = "GET";
9635	}
9636} );
9637
9638// Bind script tag hack transport
9639jQuery.ajaxTransport( "script", function( s ) {
9640
9641	// This transport only deals with cross domain requests
9642	if ( s.crossDomain ) {
9643		var script, callback;
9644		return {
9645			send: function( _, complete ) {
9646				script = jQuery( "<script>" ).prop( {
9647					charset: s.scriptCharset,
9648					src: s.url
9649				} ).on(
9650					"load error",
9651					callback = function( evt ) {
9652						script.remove();
9653						callback = null;
9654						if ( evt ) {
9655							complete( evt.type === "error" ? 404 : 200, evt.type );
9656						}
9657					}
9658				);
9659
9660				// Use native DOM manipulation to avoid our domManip AJAX trickery
9661				document.head.appendChild( script[ 0 ] );
9662			},
9663			abort: function() {
9664				if ( callback ) {
9665					callback();
9666				}
9667			}
9668		};
9669	}
9670} );
9671
9672
9673
9674
9675var oldCallbacks = [],
9676	rjsonp = /(=)\?(?=&|$)|\?\?/;
9677
9678// Default jsonp settings
9679jQuery.ajaxSetup( {
9680	jsonp: "callback",
9681	jsonpCallback: function() {
9682		var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( nonce++ ) );
9683		this[ callback ] = true;
9684		return callback;
9685	}
9686} );
9687
9688// Detect, normalize options and install callbacks for jsonp requests
9689jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
9690
9691	var callbackName, overwritten, responseContainer,
9692		jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
9693			"url" :
9694			typeof s.data === "string" &&
9695				( s.contentType || "" )
9696					.indexOf( "application/x-www-form-urlencoded" ) === 0 &&
9697				rjsonp.test( s.data ) && "data"
9698		);
9699
9700	// Handle iff the expected data type is "jsonp" or we have a parameter to set
9701	if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
9702
9703		// Get callback name, remembering preexisting value associated with it
9704		callbackName = s.jsonpCallback = isFunction( s.jsonpCallback ) ?
9705			s.jsonpCallback() :
9706			s.jsonpCallback;
9707
9708		// Insert callback into url or form data
9709		if ( jsonProp ) {
9710			s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
9711		} else if ( s.jsonp !== false ) {
9712			s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
9713		}
9714
9715		// Use data converter to retrieve json after script execution
vendor: 2,987 bytes, lines 9716-9825
9716		s.converters[ "script json" ] = function() {
9717			if ( !responseContainer ) {
9718				jQuery.error( callbackName + " was not called" );
9719			}
9720			return responseContainer[ 0 ];
9721		};
9722
9723		// Force json dataType
9724		s.dataTypes[ 0 ] = "json";
9725
9726		// Install callback
9727		overwritten = window[ callbackName ];
9728		window[ callbackName ] = function() {
9729			responseContainer = arguments;
9730		};
9731
9732		// Clean-up function (fires after converters)
9733		jqXHR.always( function() {
9734
9735			// If previous value didn't exist - remove it
9736			if ( overwritten === undefined ) {
9737				jQuery( window ).removeProp( callbackName );
9738
9739			// Otherwise restore preexisting value
9740			} else {
9741				window[ callbackName ] = overwritten;
9742			}
9743
9744			// Save back as free
9745			if ( s[ callbackName ] ) {
9746
9747				// Make sure that re-using the options doesn't screw things around
9748				s.jsonpCallback = originalSettings.jsonpCallback;
9749
9750				// Save the callback name for future use
9751				oldCallbacks.push( callbackName );
9752			}
9753
9754			// Call if it was a function and we have a response
9755			if ( responseContainer && isFunction( overwritten ) ) {
9756				overwritten( responseContainer[ 0 ] );
9757			}
9758
9759			responseContainer = overwritten = undefined;
9760		} );
9761
9762		// Delegate to script
9763		return "script";
9764	}
9765} );
9766
9767
9768
9769
9770// Support: Safari 8 only
9771// In Safari 8 documents created via document.implementation.createHTMLDocument
9772// collapse sibling forms: the second one becomes a child of the first one.
9773// Because of that, this security measure has to be disabled in Safari 8.
9774// https://bugs.webkit.org/show_bug.cgi?id=137337
9775support.createHTMLDocument = ( function() {
9776	var body = document.implementation.createHTMLDocument( "" ).body;
9777	body.innerHTML = "<form></form><form></form>";
9778	return body.childNodes.length === 2;
9779} )();
9780
9781
9782// Argument "data" should be string of html
9783// context (optional): If specified, the fragment will be created in this context,
9784// defaults to document
9785// keepScripts (optional): If true, will include scripts passed in the html string
9786jQuery.parseHTML = function( data, context, keepScripts ) {
9787	if ( typeof data !== "string" ) {
9788		return [];
9789	}
9790	if ( typeof context === "boolean" ) {
9791		keepScripts = context;
9792		context = false;
9793	}
9794
9795	var base, parsed, scripts;
9796
9797	if ( !context ) {
9798
9799		// Stop scripts or inline event handlers from being executed immediately
9800		// by using document.implementation
9801		if ( support.createHTMLDocument ) {
9802			context = document.implementation.createHTMLDocument( "" );
9803
9804			// Set the base href for the created document
9805			// so any parsed elements with URLs
9806			// are based on the document's URL (gh-2965)
9807			base = context.createElement( "base" );
9808			base.href = document.location.href;
9809			context.head.appendChild( base );
9810		} else {
9811			context = document;
9812		}
9813	}
9814
9815	parsed = rsingleTag.exec( data );
9816	scripts = !keepScripts && [];
9817
9818	// Single tag
9819	if ( parsed ) {
9820		return [ context.createElement( parsed[ 1 ] ) ];
9821	}
9822
9823	parsed = buildFragment( [ data ], context, scripts );
9824
9825	if ( scripts && scripts.length ) {
vendor: 14,507 bytes, lines 9826-10346
9826		jQuery( scripts ).remove();
9827	}
9828
9829	return jQuery.merge( [], parsed.childNodes );
9830};
9831
9832
9833/**
9834 * Load a url into a page
9835 */
9836jQuery.fn.load = function( url, params, callback ) {
9837	var selector, type, response,
9838		self = this,
9839		off = url.indexOf( " " );
9840
9841	if ( off > -1 ) {
9842		selector = stripAndCollapse( url.slice( off ) );
9843		url = url.slice( 0, off );
9844	}
9845
9846	// If it's a function
9847	if ( isFunction( params ) ) {
9848
9849		// We assume that it's the callback
9850		callback = params;
9851		params = undefined;
9852
9853	// Otherwise, build a param string
9854	} else if ( params && typeof params === "object" ) {
9855		type = "POST";
9856	}
9857
9858	// If we have elements to modify, make the request
9859	if ( self.length > 0 ) {
9860		jQuery.ajax( {
9861			url: url,
9862
9863			// If "type" variable is undefined, then "GET" method will be used.
9864			// Make value of this field explicit since
9865			// user can override it through ajaxSetup method
9866			type: type || "GET",
9867			dataType: "html",
9868			data: params
9869		} ).done( function( responseText ) {
9870
9871			// Save response for use in complete callback
9872			response = arguments;
9873
9874			self.html( selector ?
9875
9876				// If a selector was specified, locate the right elements in a dummy div
9877				// Exclude scripts to avoid IE 'Permission Denied' errors
9878				jQuery( "<div>" ).append( jQuery.parseHTML( responseText ) ).find( selector ) :
9879
9880				// Otherwise use the full result
9881				responseText );
9882
9883		// If the request succeeds, this function gets "data", "status", "jqXHR"
9884		// but they are ignored because response was set above.
9885		// If it fails, this function gets "jqXHR", "status", "error"
9886		} ).always( callback && function( jqXHR, status ) {
9887			self.each( function() {
9888				callback.apply( this, response || [ jqXHR.responseText, status, jqXHR ] );
9889			} );
9890		} );
9891	}
9892
9893	return this;
9894};
9895
9896
9897
9898
9899// Attach a bunch of functions for handling common AJAX events
9900jQuery.each( [
9901	"ajaxStart",
9902	"ajaxStop",
9903	"ajaxComplete",
9904	"ajaxError",
9905	"ajaxSuccess",
9906	"ajaxSend"
9907], function( i, type ) {
9908	jQuery.fn[ type ] = function( fn ) {
9909		return this.on( type, fn );
9910	};
9911} );
9912
9913
9914
9915
9916jQuery.expr.pseudos.animated = function( elem ) {
9917	return jQuery.grep( jQuery.timers, function( fn ) {
9918		return elem === fn.elem;
9919	} ).length;
9920};
9921
9922
9923
9924
9925jQuery.offset = {
9926	setOffset: function( elem, options, i ) {
9927		var curPosition, curLeft, curCSSTop, curTop, curOffset, curCSSLeft, calculatePosition,
9928			position = jQuery.css( elem, "position" ),
9929			curElem = jQuery( elem ),
9930			props = {};
9931
9932		// Set position first, in-case top/left are set even on static elem
9933		if ( position === "static" ) {
9934			elem.style.position = "relative";
9935		}
9936
9937		curOffset = curElem.offset();
9938		curCSSTop = jQuery.css( elem, "top" );
9939		curCSSLeft = jQuery.css( elem, "left" );
9940		calculatePosition = ( position === "absolute" || position === "fixed" ) &&
9941			( curCSSTop + curCSSLeft ).indexOf( "auto" ) > -1;
9942
9943		// Need to be able to calculate position if either
9944		// top or left is auto and position is either absolute or fixed
9945		if ( calculatePosition ) {
9946			curPosition = curElem.position();
9947			curTop = curPosition.top;
9948			curLeft = curPosition.left;
9949
9950		} else {
9951			curTop = parseFloat( curCSSTop ) || 0;
9952			curLeft = parseFloat( curCSSLeft ) || 0;
9953		}
9954
9955		if ( isFunction( options ) ) {
9956
9957			// Use jQuery.extend here to allow modification of coordinates argument (gh-1848)
9958			options = options.call( elem, i, jQuery.extend( {}, curOffset ) );
9959		}
9960
9961		if ( options.top != null ) {
9962			props.top = ( options.top - curOffset.top ) + curTop;
9963		}
9964		if ( options.left != null ) {
9965			props.left = ( options.left - curOffset.left ) + curLeft;
9966		}
9967
9968		if ( "using" in options ) {
9969			options.using.call( elem, props );
9970
9971		} else {
9972			curElem.css( props );
9973		}
9974	}
9975};
9976
9977jQuery.fn.extend( {
9978
9979	// offset() relates an element's border box to the document origin
9980	offset: function( options ) {
9981
9982		// Preserve chaining for setter
9983		if ( arguments.length ) {
9984			return options === undefined ?
9985				this :
9986				this.each( function( i ) {
9987					jQuery.offset.setOffset( this, options, i );
9988				} );
9989		}
9990
9991		var rect, win,
9992			elem = this[ 0 ];
9993
9994		if ( !elem ) {
9995			return;
9996		}
9997
9998		// Return zeros for disconnected and hidden (display: none) elements (gh-2310)
9999		// Support: IE <=11 only
10000		// Running getBoundingClientRect on a
10001		// disconnected node in IE throws an error
10002		if ( !elem.getClientRects().length ) {
10003			return { top: 0, left: 0 };
10004		}
10005
10006		// Get document-relative position by adding viewport scroll to viewport-relative gBCR
10007		rect = elem.getBoundingClientRect();
10008		win = elem.ownerDocument.defaultView;
10009		return {
10010			top: rect.top + win.pageYOffset,
10011			left: rect.left + win.pageXOffset
10012		};
10013	},
10014
10015	// position() relates an element's margin box to its offset parent's padding box
10016	// This corresponds to the behavior of CSS absolute positioning
10017	position: function() {
10018		if ( !this[ 0 ] ) {
10019			return;
10020		}
10021
10022		var offsetParent, offset, doc,
10023			elem = this[ 0 ],
10024			parentOffset = { top: 0, left: 0 };
10025
10026		// position:fixed elements are offset from the viewport, which itself always has zero offset
10027		if ( jQuery.css( elem, "position" ) === "fixed" ) {
10028
10029			// Assume position:fixed implies availability of getBoundingClientRect
10030			offset = elem.getBoundingClientRect();
10031
10032		} else {
10033			offset = this.offset();
10034
10035			// Account for the *real* offset parent, which can be the document or its root element
10036			// when a statically positioned element is identified
10037			doc = elem.ownerDocument;
10038			offsetParent = elem.offsetParent || doc.documentElement;
10039			while ( offsetParent &&
10040				( offsetParent === doc.body || offsetParent === doc.documentElement ) &&
10041				jQuery.css( offsetParent, "position" ) === "static" ) {
10042
10043				offsetParent = offsetParent.parentNode;
10044			}
10045			if ( offsetParent && offsetParent !== elem && offsetParent.nodeType === 1 ) {
10046
10047				// Incorporate borders into its offset, since they are outside its content origin
10048				parentOffset = jQuery( offsetParent ).offset();
10049				parentOffset.top += jQuery.css( offsetParent, "borderTopWidth", true );
10050				parentOffset.left += jQuery.css( offsetParent, "borderLeftWidth", true );
10051			}
10052		}
10053
10054		// Subtract parent offsets and element margins
10055		return {
10056			top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
10057			left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true )
10058		};
10059	},
10060
10061	// This method will return documentElement in the following cases:
10062	// 1) For the element inside the iframe without offsetParent, this method will return
10063	//    documentElement of the parent window
10064	// 2) For the hidden or detached element
10065	// 3) For body or html element, i.e. in case of the html node - it will return itself
10066	//
10067	// but those exceptions were never presented as a real life use-cases
10068	// and might be considered as more preferable results.
10069	//
10070	// This logic, however, is not guaranteed and can change at any point in the future
10071	offsetParent: function() {
10072		return this.map( function() {
10073			var offsetParent = this.offsetParent;
10074
10075			while ( offsetParent && jQuery.css( offsetParent, "position" ) === "static" ) {
10076				offsetParent = offsetParent.offsetParent;
10077			}
10078
10079			return offsetParent || documentElement;
10080		} );
10081	}
10082} );
10083
10084// Create scrollLeft and scrollTop methods
10085jQuery.each( { scrollLeft: "pageXOffset", scrollTop: "pageYOffset" }, function( method, prop ) {
10086	var top = "pageYOffset" === prop;
10087
10088	jQuery.fn[ method ] = function( val ) {
10089		return access( this, function( elem, method, val ) {
10090
10091			// Coalesce documents and windows
10092			var win;
10093			if ( isWindow( elem ) ) {
10094				win = elem;
10095			} else if ( elem.nodeType === 9 ) {
10096				win = elem.defaultView;
10097			}
10098
10099			if ( val === undefined ) {
10100				return win ? win[ prop ] : elem[ method ];
10101			}
10102
10103			if ( win ) {
10104				win.scrollTo(
10105					!top ? val : win.pageXOffset,
10106					top ? val : win.pageYOffset
10107				);
10108
10109			} else {
10110				elem[ method ] = val;
10111			}
10112		}, method, val, arguments.length );
10113	};
10114} );
10115
10116// Support: Safari <=7 - 9.1, Chrome <=37 - 49
10117// Add the top/left cssHooks using jQuery.fn.position
10118// Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
10119// Blink bug: https://bugs.chromium.org/p/chromium/issues/detail?id=589347
10120// getComputedStyle returns percent when specified for top/left/bottom/right;
10121// rather than make the css module depend on the offset module, just check for it here
10122jQuery.each( [ "top", "left" ], function( i, prop ) {
10123	jQuery.cssHooks[ prop ] = addGetHookIf( support.pixelPosition,
10124		function( elem, computed ) {
10125			if ( computed ) {
10126				computed = curCSS( elem, prop );
10127
10128				// If curCSS returns percentage, fallback to offset
10129				return rnumnonpx.test( computed ) ?
10130					jQuery( elem ).position()[ prop ] + "px" :
10131					computed;
10132			}
10133		}
10134	);
10135} );
10136
10137
10138// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
10139jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
10140	jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
10141		function( defaultExtra, funcName ) {
10142
10143		// Margin is only for outerHeight, outerWidth
10144		jQuery.fn[ funcName ] = function( margin, value ) {
10145			var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
10146				extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
10147
10148			return access( this, function( elem, type, value ) {
10149				var doc;
10150
10151				if ( isWindow( elem ) ) {
10152
10153					// $( window ).outerWidth/Height return w/h including scrollbars (gh-1729)
10154					return funcName.indexOf( "outer" ) === 0 ?
10155						elem[ "inner" + name ] :
10156						elem.document.documentElement[ "client" + name ];
10157				}
10158
10159				// Get document width or height
10160				if ( elem.nodeType === 9 ) {
10161					doc = elem.documentElement;
10162
10163					// Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height],
10164					// whichever is greatest
10165					return Math.max(
10166						elem.body[ "scroll" + name ], doc[ "scroll" + name ],
10167						elem.body[ "offset" + name ], doc[ "offset" + name ],
10168						doc[ "client" + name ]
10169					);
10170				}
10171
10172				return value === undefined ?
10173
10174					// Get width or height on the element, requesting but not forcing parseFloat
10175					jQuery.css( elem, type, extra ) :
10176
10177					// Set width or height on the element
10178					jQuery.style( elem, type, value, extra );
10179			}, type, chainable ? margin : undefined, chainable );
10180		};
10181	} );
10182} );
10183
10184
10185jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
10186	"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
10187	"change select submit keydown keypress keyup contextmenu" ).split( " " ),
10188	function( i, name ) {
10189
10190	// Handle event binding
10191	jQuery.fn[ name ] = function( data, fn ) {
10192		return arguments.length > 0 ?
10193			this.on( name, null, data, fn ) :
10194			this.trigger( name );
10195	};
10196} );
10197
10198jQuery.fn.extend( {
10199	hover: function( fnOver, fnOut ) {
10200		return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
10201	}
10202} );
10203
10204
10205
10206
10207jQuery.fn.extend( {
10208
10209	bind: function( types, data, fn ) {
10210		return this.on( types, null, data, fn );
10211	},
10212	unbind: function( types, fn ) {
10213		return this.off( types, null, fn );
10214	},
10215
10216	delegate: function( selector, types, data, fn ) {
10217		return this.on( types, selector, data, fn );
10218	},
10219	undelegate: function( selector, types, fn ) {
10220
10221		// ( namespace ) or ( selector, types [, fn] )
10222		return arguments.length === 1 ?
10223			this.off( selector, "**" ) :
10224			this.off( types, selector || "**", fn );
10225	}
10226} );
10227
10228// Bind a function to a context, optionally partially applying any
10229// arguments.
10230// jQuery.proxy is deprecated to promote standards (specifically Function#bind)
10231// However, it is not slated for removal any time soon
10232jQuery.proxy = function( fn, context ) {
10233	var tmp, args, proxy;
10234
10235	if ( typeof context === "string" ) {
10236		tmp = fn[ context ];
10237		context = fn;
10238		fn = tmp;
10239	}
10240
10241	// Quick check to determine if target is callable, in the spec
10242	// this throws a TypeError, but we will just return undefined.
10243	if ( !isFunction( fn ) ) {
10244		return undefined;
10245	}
10246
10247	// Simulated bind
10248	args = slice.call( arguments, 2 );
10249	proxy = function() {
10250		return fn.apply( context || this, args.concat( slice.call( arguments ) ) );
10251	};
10252
10253	// Set the guid of unique handler to the same of original handler, so it can be removed
10254	proxy.guid = fn.guid = fn.guid || jQuery.guid++;
10255
10256	return proxy;
10257};
10258
10259jQuery.holdReady = function( hold ) {
10260	if ( hold ) {
10261		jQuery.readyWait++;
10262	} else {
10263		jQuery.ready( true );
10264	}
10265};
10266jQuery.isArray = Array.isArray;
10267jQuery.parseJSON = JSON.parse;
10268jQuery.nodeName = nodeName;
10269jQuery.isFunction = isFunction;
10270jQuery.isWindow = isWindow;
10271jQuery.camelCase = camelCase;
10272jQuery.type = toType;
10273
10274jQuery.now = Date.now;
10275
10276jQuery.isNumeric = function( obj ) {
10277
10278	// As of jQuery 3.0, isNumeric is limited to
10279	// strings and numbers (primitives or objects)
10280	// that can be coerced to finite numbers (gh-2662)
10281	var type = jQuery.type( obj );
10282	return ( type === "number" || type === "string" ) &&
10283
10284		// parseFloat NaNs numeric-cast false positives ("")
10285		// ...but misinterprets leading-number strings, particularly hex literals ("0x...")
10286		// subtraction forces infinities to NaN
10287		!isNaN( obj - parseFloat( obj ) );
10288};
10289
10290
10291
10292
10293// Register as a named AMD module, since jQuery can be concatenated with other
10294// files that may use define, but not via a proper concatenation script that
10295// understands anonymous AMD modules. A named AMD is safest and most robust
10296// way to register. Lowercase jquery is used because AMD module names are
10297// derived from file names, and jQuery is normally delivered in a lowercase
10298// file name. Do this after creating the global so that if an AMD module wants
10299// to call noConflict to hide this version of jQuery, it will work.
10300
10301// Note that for maximum portability, libraries that are not jQuery should
10302// declare themselves as anonymous modules, and avoid setting a global if an
10303// AMD loader is present. jQuery is a special case. For more information, see
10304// https://github.com/jrburke/requirejs/wiki/Updating-existing-libraries#wiki-anon
10305
10306if ( typeof define === "function" && define.amd ) {
10307	define( "jquery", [], function() {
10308		return jQuery;
10309	} );
10310}
10311
10312
10313
10314
10315var
10316
10317	// Map over jQuery in case of overwrite
10318	_jQuery = window.jQuery,
10319
10320	// Map over the $ in case of overwrite
10321	_$ = window.$;
10322
10323jQuery.noConflict = function( deep ) {
10324	if ( window.$ === jQuery ) {
10325		window.$ = _$;
10326	}
10327
10328	if ( deep && window.jQuery === jQuery ) {
10329		window.jQuery = _jQuery;
10330	}
10331
10332	return jQuery;
10333};
10334
10335// Expose jQuery and $ identifiers, even in AMD
10336// (#7102#comment:10, https://github.com/jquery/jquery/pull/557)
10337// and CommonJS for browser emulators (#13566)
10338if ( !noGlobal ) {
10339	window.jQuery = window.$ = jQuery;
10340}
10341
10342
10343
10344
10345return jQuery;
10346}
10346;
10347
10348
10349export const jQuery = jQuerySeudoConstructor(window); 
10350export const $ = jQuery;

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.