<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
"http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head><meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>[24364] trunk/wp-includes: Update to jQuery 1.10.0.</title>
</head>
<body>

<style type="text/css"><!--
#msg dl.meta { border: 1px #006 solid; background: #369; padding: 6px; color: #fff; }
#msg dl.meta dt { float: left; width: 6em; font-weight: bold; }
#msg dt:after { content:':';}
#msg dl, #msg dt, #msg ul, #msg li, #header, #footer, #logmsg { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt;  }
#msg dl a { font-weight: bold}
#msg dl a:link    { color:#fc3; }
#msg dl a:active  { color:#ff0; }
#msg dl a:visited { color:#cc6; }
h3 { font-family: verdana,arial,helvetica,sans-serif; font-size: 10pt; font-weight: bold; }
#msg pre { overflow: auto; background: #ffc; border: 1px #fa0 solid; padding: 6px; }
#logmsg { background: #ffc; border: 1px #fa0 solid; padding: 1em 1em 0 1em; }
#logmsg p, #logmsg pre, #logmsg blockquote { margin: 0 0 1em 0; }
#logmsg p, #logmsg li, #logmsg dt, #logmsg dd { line-height: 14pt; }
#logmsg h1, #logmsg h2, #logmsg h3, #logmsg h4, #logmsg h5, #logmsg h6 { margin: .5em 0; }
#logmsg h1:first-child, #logmsg h2:first-child, #logmsg h3:first-child, #logmsg h4:first-child, #logmsg h5:first-child, #logmsg h6:first-child { margin-top: 0; }
#logmsg ul, #logmsg ol { padding: 0; list-style-position: inside; margin: 0 0 0 1em; }
#logmsg ul { text-indent: -1em; padding-left: 1em; }#logmsg ol { text-indent: -1.5em; padding-left: 1.5em; }
#logmsg > ul, #logmsg > ol { margin: 0 0 1em 0; }
#logmsg pre { background: #eee; padding: 1em; }
#logmsg blockquote { border: 1px solid #fa0; border-left-width: 10px; padding: 1em 1em 0 1em; background: white;}
#logmsg dl { margin: 0; }
#logmsg dt { font-weight: bold; }
#logmsg dd { margin: 0; padding: 0 0 0.5em 0; }
#logmsg dd:before { content:'\00bb';}
#logmsg table { border-spacing: 0px; border-collapse: collapse; border-top: 4px solid #fa0; border-bottom: 1px solid #fa0; background: #fff; }
#logmsg table th { text-align: left; font-weight: normal; padding: 0.2em 0.5em; border-top: 1px dotted #fa0; }
#logmsg table td { text-align: right; border-top: 1px dotted #fa0; padding: 0.2em 0.5em; }
#logmsg table thead th { text-align: center; border-bottom: 1px solid #fa0; }
#logmsg table th.Corner { text-align: left; }
#logmsg hr { border: none 0; border-top: 2px dashed #fa0; height: 1px; }
#header, #footer { color: #fff; background: #636; border: 1px #300 solid; padding: 6px; }
#patch { width: 100%; }
#patch h4 {font-family: verdana,arial,helvetica,sans-serif;font-size:10pt;padding:8px;background:#369;color:#fff;margin:0;}
#patch .propset h4, #patch .binary h4 {margin:0;}
#patch pre {padding:0;line-height:1.2em;margin:0;}
#patch .diff {width:100%;background:#eee;padding: 0 0 10px 0;overflow:auto;}
#patch .propset .diff, #patch .binary .diff  {padding:10px 0;}
#patch span {display:block;padding:0 10px;}
#patch .modfile, #patch .addfile, #patch .delfile, #patch .propset, #patch .binary, #patch .copfile {border:1px solid #ccc;margin:10px 0;}
#patch ins {background:#dfd;text-decoration:none;display:block;padding:0 10px;}
#patch del {background:#fdd;text-decoration:none;display:block;padding:0 10px;}
#patch .lines, .info {color:#888;background:#fff;}
--></style>
<div id="msg">
<dl class="meta">
<dt>Revision</dt> <dd><a href="http://core.trac.wordpress.org/changeset/24364">24364</a></dd>
<dt>Author</dt> <dd>ocean90</dd>
<dt>Date</dt> <dd>2013-05-25 22:33:07 +0000 (Sat, 25 May 2013)</dd>
</dl>

<h3>Log Message</h3>
<pre>Update to jQuery 1.10.0. Still includes jQuery in original, unminified form, for ease of testing and bug reporting. fixes <a href="http://core.trac.wordpress.org/ticket/24426">#24426</a>.</pre>

<h3>Modified Paths</h3>
<ul>
<li><a href="#trunkwpincludesjsjqueryjqueryjs">trunk/wp-includes/js/jquery/jquery.js</a></li>
<li><a href="#trunkwpincludesscriptloaderphp">trunk/wp-includes/script-loader.php</a></li>
</ul>

</div>
<div id="patch">
<h3>Diff</h3>
<a id="trunkwpincludesjsjqueryjqueryjs"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/js/jquery/jquery.js (24363 => 24364)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/js/jquery/jquery.js    2013-05-25 22:10:53 UTC (rev 24363)
+++ trunk/wp-includes/js/jquery/jquery.js       2013-05-25 22:33:07 UTC (rev 24364)
</span><span class="lines">@@ -1,15 +1,15 @@
</span><span class="cx"> /*!
</span><del>- * jQuery JavaScript Library v1.9.1
</del><ins>+ * jQuery JavaScript Library v1.10.0
</ins><span class="cx">  * http://jquery.com/
</span><span class="cx">  *
</span><span class="cx">  * Includes Sizzle.js
</span><span class="cx">  * http://sizzlejs.com/
</span><span class="cx">  *
</span><del>- * Copyright 2005, 2012 jQuery Foundation, Inc. and other contributors
</del><ins>+ * Copyright 2005, 2013 jQuery Foundation, Inc. and other contributors
</ins><span class="cx">  * Released under the MIT license
</span><span class="cx">  * http://jquery.org/license
</span><span class="cx">  *
</span><del>- * Date: 2013-2-4
</del><ins>+ * Date: 2013-05-24T18:39Z
</ins><span class="cx">  */
</span><span class="cx"> (function( window, undefined ) {
</span><span class="cx"> 
</span><span class="lines">@@ -25,13 +25,14 @@
</span><span class="cx">  // A central reference to the root jQuery(document)
</span><span class="cx">  rootjQuery,
</span><span class="cx"> 
</span><del>-       // Support: IE<9
-       // For `typeof node.method` instead of `node.method !== undefined`
</del><ins>+        // Support: IE<10
+       // For `typeof xmlNode.method` instead of `xmlNode.method !== undefined`
</ins><span class="cx">   core_strundefined = typeof undefined,
</span><span class="cx"> 
</span><span class="cx">  // Use the correct document accordingly with window argument (sandbox)
</span><ins>+       location = window.location,
</ins><span class="cx">   document = window.document,
</span><del>-       location = window.location,
</del><ins>+        docElem = document.documentElement,
</ins><span class="cx"> 
</span><span class="cx">  // Map over jQuery in case of overwrite
</span><span class="cx">  _jQuery = window.jQuery,
</span><span class="lines">@@ -45,7 +46,7 @@
</span><span class="cx">  // List of deleted data cache ids, so we can reuse them
</span><span class="cx">  core_deletedIds = [],
</span><span class="cx"> 
</span><del>-       core_version = "1.9.1",
</del><ins>+        core_version = "1.10.0",
</ins><span class="cx"> 
</span><span class="cx">  // Save a reference to some core methods
</span><span class="cx">  core_concat = core_deletedIds.concat,
</span><span class="lines">@@ -74,7 +75,7 @@
</span><span class="cx">  // A simple way to check for HTML strings
</span><span class="cx">  // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
</span><span class="cx">  // Strict HTML recognition (#11290: must start with <)
</span><del>-       rquickExpr = /^(?:(<[\w\W]+>)[^>]*|#([\w-]*))$/,
</del><ins>+        rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
</ins><span class="cx"> 
</span><span class="cx">  // Match a standalone tag
</span><span class="cx">  rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
</span><span class="lines">@@ -227,11 +228,6 @@
</span><span class="cx">  // The default length of a jQuery object is 0
</span><span class="cx">  length: 0,
</span><span class="cx"> 
</span><del>-       // The number of elements contained in the matched element set
-       size: function() {
-               return this.length;
-       },
-
</del><span class="cx">   toArray: function() {
</span><span class="cx">          return core_slice.call( this );
</span><span class="cx">  },
</span><span class="lines">@@ -380,6 +376,10 @@
</span><span class="cx"> };
</span><span class="cx"> 
</span><span class="cx"> jQuery.extend({
</span><ins>+       // Unique for each copy of jQuery on the page
+       // Non-digits removed to match rinlinejQuery
+       expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ),
+
</ins><span class="cx">   noConflict: function( deep ) {
</span><span class="cx">          if ( window.$ === jQuery ) {
</span><span class="cx">                  window.$ = _$;
</span><span class="lines">@@ -450,6 +450,7 @@
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="cx">  isWindow: function( obj ) {
</span><ins>+               /* jshint eqeqeq: false */
</ins><span class="cx">           return obj != null && obj == obj.window;
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="lines">@@ -467,6 +468,8 @@
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="cx">  isPlainObject: function( obj ) {
</span><ins>+               var key;
+
</ins><span class="cx">           // Must be an Object.
</span><span class="cx">          // Because of IE, we also have to check the presence of the constructor property.
</span><span class="cx">          // Make sure that DOM nodes and window objects don't pass through, as well
</span><span class="lines">@@ -486,10 +489,16 @@
</span><span class="cx">                  return false;
</span><span class="cx">          }
</span><span class="cx"> 
</span><ins>+               // Support: IE<9
+               // Handle iteration over inherited properties before own properties.
+               if ( jQuery.support.ownLast ) {
+                       for ( key in obj ) {
+                               return core_hasOwn.call( obj, key );
+                       }
+               }
+
</ins><span class="cx">           // Own properties are enumerated firstly, so to speed up,
</span><span class="cx">          // if last one is own, then all properties are own.
</span><del>-
-               var key;
</del><span class="cx">           for ( key in obj ) {}
</span><span class="cx"> 
</span><span class="cx">          return key === undefined || core_hasOwn.call( obj, key );
</span><span class="lines">@@ -879,6 +888,29 @@
</span><span class="cx"> 
</span><span class="cx">  now: function() {
</span><span class="cx">          return ( new Date() ).getTime();
</span><ins>+       },
+
+       // A method for quickly swapping in/out CSS properties to get correct calculations.
+       // Note: this method belongs to the css module but it's needed here for the support module.
+       // If support gets modularized, this method should be moved back to the css module.
+       swap: function( elem, options, callback, args ) {
+               var ret, name,
+                       old = {};
+
+               // Remember the old values, and insert the new ones
+               for ( name in options ) {
+                       old[ name ] = elem.style[ name ];
+                       elem.style[ name ] = options[ name ];
+               }
+
+               ret = callback.apply( elem, args || [] );
+
+               // Revert the old values
+               for ( name in options ) {
+                       elem.style[ name ] = old[ name ];
+               }
+
+               return ret;
</ins><span class="cx">   }
</span><span class="cx"> });
</span><span class="cx"> 
</span><span class="lines">@@ -967,6 +999,2001 @@
</span><span class="cx"> 
</span><span class="cx"> // All jQuery objects should point back to these
</span><span class="cx"> rootjQuery = jQuery(document);
</span><ins>+/*!
+ * Sizzle CSS Selector Engine v1.9.4-pre
+ * http://sizzlejs.com/
+ *
+ * Copyright 2013 jQuery Foundation, Inc. and other contributors
+ * Released under the MIT license
+ * http://jquery.org/license
+ *
+ * Date: 2013-05-15
+ */
+(function( window, undefined ) {
+
+var i,
+       support,
+       cachedruns,
+       Expr,
+       getText,
+       isXML,
+       compile,
+       outermostContext,
+       sortInput,
+
+       // Local document vars
+       setDocument,
+       document,
+       docElem,
+       documentIsHTML,
+       rbuggyQSA,
+       rbuggyMatches,
+       matches,
+       contains,
+
+       // Instance-specific data
+       expando = "sizzle" + -(new Date()),
+       preferredDoc = window.document,
+       dirruns = 0,
+       done = 0,
+       classCache = createCache(),
+       tokenCache = createCache(),
+       compilerCache = createCache(),
+       hasDuplicate = false,
+       sortOrder = function() { return 0; },
+
+       // General-purpose constants
+       strundefined = typeof undefined,
+       MAX_NEGATIVE = 1 << 31,
+
+       // Instance methods
+       hasOwn = ({}).hasOwnProperty,
+       arr = [],
+       pop = arr.pop,
+       push_native = arr.push,
+       push = arr.push,
+       slice = arr.slice,
+       // Use a stripped-down indexOf if we can't use a native one
+       indexOf = arr.indexOf || function( elem ) {
+               var i = 0,
+                       len = this.length;
+               for ( ; i < len; i++ ) {
+                       if ( this[i] === elem ) {
+                               return i;
+                       }
+               }
+               return -1;
+       },
+
+       booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",
+
+       // Regular expressions
+
+       // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
+       whitespace = "[\\x20\\t\\r\\n\\f]",
+       // http://www.w3.org/TR/css3-syntax/#characters
+       characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
+
+       // Loosely modeled on CSS identifier characters
+       // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
+       // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
+       identifier = characterEncoding.replace( "w", "w#" ),
+
+       // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
+       attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace +
+               "*(?:([*^$|!~]?=)" + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",
+
+       // Prefer arguments quoted,
+       //   then not containing pseudos/brackets,
+       //   then attribute selectors/non-parenthetical expressions,
+       //   then anything else
+       // These preferences are here to reduce the number of selectors
+       //   needing tokenize in the PSEUDO preFilter
+       pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)",
+
+       // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
+       rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
+
+       rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
+       rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ),
+
+       rsibling = new RegExp( whitespace + "*[+~]" ),
+       rattributeQuotes = new RegExp( "=" + whitespace + "*([^\\]'\"]*)" + whitespace + "*\\]", "g" ),
+
+       rpseudo = new RegExp( pseudos ),
+       ridentifier = new RegExp( "^" + identifier + "$" ),
+
+       matchExpr = {
+               "ID": new RegExp( "^#(" + characterEncoding + ")" ),
+               "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
+               "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
+               "ATTR": new RegExp( "^" + attributes ),
+               "PSEUDO": new RegExp( "^" + pseudos ),
+               "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
+                       "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
+                       "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
+               "bool": new RegExp( "^(?:" + booleans + ")$", "i" ),
+               // For use in libraries implementing .is()
+               // We use this for POS matching in `select`
+               "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
+                       whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
+       },
+
+       rnative = /^[^{]+\{\s*\[native \w/,
+
+       // Easily-parseable/retrievable ID or TAG or CLASS selectors
+       rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
+
+       rinputs = /^(?:input|select|textarea|button)$/i,
+       rheader = /^h\d$/i,
+
+       rescape = /'|\\/g,
+
+       // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
+       runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ),
+       funescape = function( _, escaped, escapedWhitespace ) {
+               var high = "0x" + escaped - 0x10000;
+               // NaN means non-codepoint
+               // Support: Firefox
+               // Workaround erroneous numeric interpretation of +"0x"
+               return high !== high || escapedWhitespace ?
+                       escaped :
+                       // BMP codepoint
+                       high < 0 ?
+                               String.fromCharCode( high + 0x10000 ) :
+                               // Supplemental Plane codepoint (surrogate pair)
+                               String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
+       };
+
+// Optimize for push.apply( _, NodeList )
+try {
+       push.apply(
+               (arr = slice.call( preferredDoc.childNodes )),
+               preferredDoc.childNodes
+       );
+       // Support: Android<4.0
+       // Detect silently failing push.apply
+       arr[ preferredDoc.childNodes.length ].nodeType;
+} catch ( e ) {
+       push = { apply: arr.length ?
+
+               // Leverage slice if possible
+               function( target, els ) {
+                       push_native.apply( target, slice.call(els) );
+               } :
+
+               // Support: IE<9
+               // Otherwise append directly
+               function( target, els ) {
+                       var j = target.length,
+                               i = 0;
+                       // Can't trust NodeList.length
+                       while ( (target[j++] = els[i++]) ) {}
+                       target.length = j - 1;
+               }
+       };
+}
+
+function Sizzle( selector, context, results, seed ) {
+       var match, elem, m, nodeType,
+               // QSA vars
+               i, groups, old, nid, newContext, newSelector;
+
+       if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
+               setDocument( context );
+       }
+
+       context = context || document;
+       results = results || [];
+
+       if ( !selector || typeof selector !== "string" ) {
+               return results;
+       }
+
+       if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {
+               return [];
+       }
+
+       if ( documentIsHTML && !seed ) {
+
+               // Shortcuts
+               if ( (match = rquickExpr.exec( selector )) ) {
+                       // Speed-up: Sizzle("#ID")
+                       if ( (m = match[1]) ) {
+                               if ( nodeType === 9 ) {
+                                       elem = context.getElementById( m );
+                                       // Check parentNode to catch when Blackberry 4.6 returns
+                                       // nodes that are no longer in the document #6963
+                                       if ( elem && elem.parentNode ) {
+                                               // Handle the case where IE, Opera, and Webkit return items
+                                               // by name instead of ID
+                                               if ( elem.id === m ) {
+                                                       results.push( elem );
+                                                       return results;
+                                               }
+                                       } else {
+                                               return results;
+                                       }
+                               } else {
+                                       // Context is not a document
+                                       if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
+                                               contains( context, elem ) && elem.id === m ) {
+                                               results.push( elem );
+                                               return results;
+                                       }
+                               }
+
+                       // Speed-up: Sizzle("TAG")
+                       } else if ( match[2] ) {
+                               push.apply( results, context.getElementsByTagName( selector ) );
+                               return results;
+
+                       // Speed-up: Sizzle(".CLASS")
+                       } else if ( (m = match[3]) && support.getElementsByClassName && context.getElementsByClassName ) {
+                               push.apply( results, context.getElementsByClassName( m ) );
+                               return results;
+                       }
+               }
+
+               // QSA path
+               if ( support.qsa && (!rbuggyQSA || !rbuggyQSA.test( selector )) ) {
+                       nid = old = expando;
+                       newContext = context;
+                       newSelector = nodeType === 9 && selector;
+
+                       // qSA works strangely on Element-rooted queries
+                       // We can work around this by specifying an extra ID on the root
+                       // and working up from there (Thanks to Andrew Dupont for the technique)
+                       // IE 8 doesn't work on object elements
+                       if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
+                               groups = tokenize( selector );
+
+                               if ( (old = context.getAttribute("id")) ) {
+                                       nid = old.replace( rescape, "\\$&" );
+                               } else {
+                                       context.setAttribute( "id", nid );
+                               }
+                               nid = "[id='" + nid + "'] ";
+
+                               i = groups.length;
+                               while ( i-- ) {
+                                       groups[i] = nid + toSelector( groups[i] );
+                               }
+                               newContext = rsibling.test( selector ) && context.parentNode || context;
+                               newSelector = groups.join(",");
+                       }
+
+                       if ( newSelector ) {
+                               try {
+                                       push.apply( results,
+                                               newContext.querySelectorAll( newSelector )
+                                       );
+                                       return results;
+                               } catch(qsaError) {
+                               } finally {
+                                       if ( !old ) {
+                                               context.removeAttribute("id");
+                                       }
+                               }
+                       }
+               }
+       }
+
+       // All others
+       return select( selector.replace( rtrim, "$1" ), context, results, seed );
+}
+
+/**
+ * For feature detection
+ * @param {Function} fn The function to test for native support
+ */
+function isNative( fn ) {
+       return rnative.test( fn + "" );
+}
+
+/**
+ * Create key-value caches of limited size
+ * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
+ *     property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
+ *     deleting the oldest entry
+ */
+function createCache() {
+       var keys = [];
+
+       function cache( key, value ) {
+               // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
+               if ( keys.push( key += " " ) > Expr.cacheLength ) {
+                       // Only keep the most recent entries
+                       delete cache[ keys.shift() ];
+               }
+               return (cache[ key ] = value);
+       }
+       return cache;
+}
+
+/**
+ * Mark a function for special use by Sizzle
+ * @param {Function} fn The function to mark
+ */
+function markFunction( fn ) {
+       fn[ expando ] = true;
+       return fn;
+}
+
+/**
+ * Support testing using an element
+ * @param {Function} fn Passed the created div and expects a boolean result
+ */
+function assert( fn ) {
+       var div = document.createElement("div");
+
+       try {
+               return !!fn( div );
+       } catch (e) {
+               return false;
+       } finally {
+               // Remove from its parent by default
+               if ( div.parentNode ) {
+                       div.parentNode.removeChild( div );
+               }
+               // release memory in IE
+               div = null;
+       }
+}
+
+/**
+ * Adds the same handler for all of the specified attrs
+ * @param {String} attrs Pipe-separated list of attributes
+ * @param {Function} handler The method that will be applied if the test fails
+ * @param {Boolean} test The result of a test. If true, null will be set as the handler in leiu of the specified handler
+ */
+function addHandle( attrs, handler, test ) {
+       attrs = attrs.split("|");
+       var current,
+               i = attrs.length,
+               setHandle = test ? null : handler;
+
+       while ( i-- ) {
+               // Don't override a user's handler
+               if ( !(current = Expr.attrHandle[ attrs[i] ]) || current === handler ) {
+                       Expr.attrHandle[ attrs[i] ] = setHandle;
+               }
+       }
+}
+
+/**
+ * Fetches boolean attributes by node
+ * @param {Element} elem
+ * @param {String} name
+ */
+function boolHandler( elem, name ) {
+       // XML does not need to be checked as this will not be assigned for XML documents
+       var val = elem.getAttributeNode( name );
+       return val && val.specified ?
+               val.value :
+               elem[ name ] === true ? name.toLowerCase() : null;
+}
+
+/**
+ * Fetches attributes without interpolation
+ * http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
+ * @param {Element} elem
+ * @param {String} name
+ */
+function interpolationHandler( elem, name ) {
+       // XML does not need to be checked as this will not be assigned for XML documents
+       return elem.getAttribute( name, name.toLowerCase() === "type" ? 1 : 2 );
+}
+
+/**
+ * Uses defaultValue to retrieve value in IE6/7
+ * @param {Element} elem
+ * @param {String} name
+ */
+function valueHandler( elem ) {
+       // Ignore the value *property* on inputs by using defaultValue
+       // Fallback to Sizzle.attr by returning undefined where appropriate
+       // XML does not need to be checked as this will not be assigned for XML documents
+       if ( elem.nodeName.toLowerCase() === "input" ) {
+               return elem.defaultValue;
+       }
+}
+
+/**
+ * Checks document order of two siblings
+ * @param {Element} a
+ * @param {Element} b
+ * @returns Returns -1 if a precedes b, 1 if a follows b
+ */
+function siblingCheck( a, b ) {
+       var cur = b && a,
+               diff = cur && a.nodeType === 1 && b.nodeType === 1 &&
+                       ( ~b.sourceIndex || MAX_NEGATIVE ) -
+                       ( ~a.sourceIndex || MAX_NEGATIVE );
+
+       // Use IE sourceIndex if available on both nodes
+       if ( diff ) {
+               return diff;
+       }
+
+       // Check if b follows a
+       if ( cur ) {
+               while ( (cur = cur.nextSibling) ) {
+                       if ( cur === b ) {
+                               return -1;
+                       }
+               }
+       }
+
+       return a ? 1 : -1;
+}
+
+/**
+ * Returns a function to use in pseudos for input types
+ * @param {String} type
+ */
+function createInputPseudo( type ) {
+       return function( elem ) {
+               var name = elem.nodeName.toLowerCase();
+               return name === "input" && elem.type === type;
+       };
+}
+
+/**
+ * Returns a function to use in pseudos for buttons
+ * @param {String} type
+ */
+function createButtonPseudo( type ) {
+       return function( elem ) {
+               var name = elem.nodeName.toLowerCase();
+               return (name === "input" || name === "button") && elem.type === type;
+       };
+}
+
+/**
+ * Returns a function to use in pseudos for positionals
+ * @param {Function} fn
+ */
+function createPositionalPseudo( fn ) {
+       return markFunction(function( argument ) {
+               argument = +argument;
+               return markFunction(function( seed, matches ) {
+                       var j,
+                               matchIndexes = fn( [], seed.length, argument ),
+                               i = matchIndexes.length;
+
+                       // Match elements found at the specified indexes
+                       while ( i-- ) {
+                               if ( seed[ (j = matchIndexes[i]) ] ) {
+                                       seed[j] = !(matches[j] = seed[j]);
+                               }
+                       }
+               });
+       });
+}
+
+/**
+ * Detect xml
+ * @param {Element|Object} elem An element or a document
+ */
+isXML = Sizzle.isXML = function( elem ) {
+       // documentElement is verified for cases where it doesn't yet exist
+       // (such as loading iframes in IE - #4833)
+       var documentElement = elem && (elem.ownerDocument || elem).documentElement;
+       return documentElement ? documentElement.nodeName !== "HTML" : false;
+};
+
+// Expose support vars for convenience
+support = Sizzle.support = {};
+
+/**
+ * Sets document-related variables once based on the current document
+ * @param {Element|Object} [doc] An element or document object to use to set the document
+ * @returns {Object} Returns the current document
+ */
+setDocument = Sizzle.setDocument = function( node ) {
+       var doc = node ? node.ownerDocument || node : preferredDoc;
+
+       // If no document and documentElement is available, return
+       if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
+               return document;
+       }
+
+       // Set our document
+       document = doc;
+       docElem = doc.documentElement;
+
+       // Support tests
+       documentIsHTML = !isXML( doc );
+
+       /* Attributes
+       ---------------------------------------------------------------------- */
+
+       // Support: IE<8
+       // Verify that getAttribute really returns attributes and not properties (excepting IE8 booleans)
+       support.attributes = assert(function( div ) {
+
+               // Support: IE<8
+               // Prevent attribute/property "interpolation"
+               div.innerHTML = "<a href='#'></a>";
+               addHandle( "type|href|height|width", interpolationHandler, div.firstChild.getAttribute("href") === "#" );
+
+               // Support: IE<9
+               // Use getAttributeNode to fetch booleans when getAttribute lies
+               addHandle( booleans, boolHandler, div.getAttribute("disabled") == null );
+
+               div.className = "i";
+               return !div.getAttribute("className");
+       });
+
+       // Support: IE<9
+       // Retrieving value should defer to defaultValue
+       support.input = assert(function( div ) {
+               div.innerHTML = "<input>";
+               div.firstChild.setAttribute( "value", "" );
+               return div.firstChild.getAttribute( "value" ) === "";
+       });
+
+       // IE6/7 still return empty string for value,
+       // but are actually retrieving the property
+       addHandle( "value", valueHandler, support.attributes && support.input );
+
+       /* getElement(s)By*
+       ---------------------------------------------------------------------- */
+
+       // Check if getElementsByTagName("*") returns only elements
+       support.getElementsByTagName = assert(function( div ) {
+               div.appendChild( doc.createComment("") );
+               return !div.getElementsByTagName("*").length;
+       });
+
+       // Check if getElementsByClassName can be trusted
+       support.getElementsByClassName = assert(function( div ) {
+               div.innerHTML = "<div class='a'></div><div class='a i'></div>";
+
+               // Support: Safari<4
+               // Catch class over-caching
+               div.firstChild.className = "i";
+               // Support: Opera<10
+               // Catch gEBCN failure to find non-leading classes
+               return div.getElementsByClassName("i").length === 2;
+       });
+
+       // Support: IE<10
+       // Check if getElementById returns elements by name
+       // The broken getElementById methods don't pick up programatically-set names,
+       // so use a roundabout getElementsByName test
+       support.getById = assert(function( div ) {
+               docElem.appendChild( div ).id = expando;
+               return !doc.getElementsByName || !doc.getElementsByName( expando ).length;
+       });
+
+       // ID find and filter
+       if ( support.getById ) {
+               Expr.find["ID"] = function( id, context ) {
+                       if ( typeof context.getElementById !== strundefined && documentIsHTML ) {
+                               var m = context.getElementById( id );
+                               // Check parentNode to catch when Blackberry 4.6 returns
+                               // nodes that are no longer in the document #6963
+                               return m && m.parentNode ? [m] : [];
+                       }
+               };
+               Expr.filter["ID"] = function( id ) {
+                       var attrId = id.replace( runescape, funescape );
+                       return function( elem ) {
+                               return elem.getAttribute("id") === attrId;
+                       };
+               };
+       } else {
+               // Support: IE6/7
+               // getElementById is not reliable as a find shortcut
+               delete Expr.find["ID"];
+
+               Expr.filter["ID"] =  function( id ) {
+                       var attrId = id.replace( runescape, funescape );
+                       return function( elem ) {
+                               var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
+                               return node && node.value === attrId;
+                       };
+               };
+       }
+
+       // Tag
+       Expr.find["TAG"] = support.getElementsByTagName ?
+               function( tag, context ) {
+                       if ( typeof context.getElementsByTagName !== strundefined ) {
+                               return context.getElementsByTagName( tag );
+                       }
+               } :
+               function( tag, context ) {
+                       var elem,
+                               tmp = [],
+                               i = 0,
+                               results = context.getElementsByTagName( tag );
+
+                       // Filter out possible comments
+                       if ( tag === "*" ) {
+                               while ( (elem = results[i++]) ) {
+                                       if ( elem.nodeType === 1 ) {
+                                               tmp.push( elem );
+                                       }
+                               }
+
+                               return tmp;
+                       }
+                       return results;
+               };
+
+       // Class
+       Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) {
+               if ( typeof context.getElementsByClassName !== strundefined && documentIsHTML ) {
+                       return context.getElementsByClassName( className );
+               }
+       };
+
+       /* QSA/matchesSelector
+       ---------------------------------------------------------------------- */
+
+       // QSA and matchesSelector support
+
+       // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
+       rbuggyMatches = [];
+
+       // qSa(:focus) reports false when true (Chrome 21)
+       // We allow this because of a bug in IE8/9 that throws an error
+       // whenever `document.activeElement` is accessed on an iframe
+       // So, we allow :focus to pass through QSA all the time to avoid the IE error
+       // See http://bugs.jquery.com/ticket/13378
+       rbuggyQSA = [];
+
+       if ( (support.qsa = isNative(doc.querySelectorAll)) ) {
+               // Build QSA regex
+               // Regex strategy adopted from Diego Perini
+               assert(function( div ) {
+                       // Select is set to empty string on purpose
+                       // This is to test IE's treatment of not explicitly
+                       // setting a boolean content attribute,
+                       // since its presence should be enough
+                       // http://bugs.jquery.com/ticket/12359
+                       div.innerHTML = "<select><option selected=''></option></select>";
+
+                       // Support: IE8
+                       // Boolean attributes and "value" are not treated correctly
+                       if ( !div.querySelectorAll("[selected]").length ) {
+                               rbuggyQSA.push( "\\[" + whitespace + "*(?:value|" + booleans + ")" );
+                       }
+
+                       // Webkit/Opera - :checked should return selected option elements
+                       // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+                       // IE8 throws error here and will not see later tests
+                       if ( !div.querySelectorAll(":checked").length ) {
+                               rbuggyQSA.push(":checked");
+                       }
+               });
+
+               assert(function( div ) {
+
+                       // Support: Opera 10-12/IE8
+                       // ^= $= *= and empty values
+                       // Should not select anything
+                       // Support: Windows 8 Native Apps
+                       // The type attribute is restricted during .innerHTML assignment
+                       var input = doc.createElement("input");
+                       input.setAttribute( "type", "hidden" );
+                       div.appendChild( input ).setAttribute( "t", "" );
+
+                       if ( div.querySelectorAll("[t^='']").length ) {
+                               rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:''|\"\")" );
+                       }
+
+                       // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
+                       // IE8 throws error here and will not see later tests
+                       if ( !div.querySelectorAll(":enabled").length ) {
+                               rbuggyQSA.push( ":enabled", ":disabled" );
+                       }
+
+                       // Opera 10-11 does not throw on post-comma invalid pseudos
+                       div.querySelectorAll("*,:x");
+                       rbuggyQSA.push(",.*:");
+               });
+       }
+
+       if ( (support.matchesSelector = isNative( (matches = docElem.webkitMatchesSelector ||
+               docElem.mozMatchesSelector ||
+               docElem.oMatchesSelector ||
+               docElem.msMatchesSelector) )) ) {
+
+               assert(function( div ) {
+                       // Check to see if it's possible to do matchesSelector
+                       // on a disconnected node (IE 9)
+                       support.disconnectedMatch = matches.call( div, "div" );
+
+                       // This should fail with an exception
+                       // Gecko does not error, returns false instead
+                       matches.call( div, "[s!='']:x" );
+                       rbuggyMatches.push( "!=", pseudos );
+               });
+       }
+
+       rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") );
+       rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") );
+
+       /* Contains
+       ---------------------------------------------------------------------- */
+
+       // Element contains another
+       // Purposefully does not implement inclusive descendent
+       // As in, an element does not contain itself
+       contains = isNative(docElem.contains) || docElem.compareDocumentPosition ?
+               function( a, b ) {
+                       var adown = a.nodeType === 9 ? a.documentElement : a,
+                               bup = b && b.parentNode;
+                       return a === bup || !!( bup && bup.nodeType === 1 && (
+                               adown.contains ?
+                                       adown.contains( bup ) :
+                                       a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
+                       ));
+               } :
+               function( a, b ) {
+                       if ( b ) {
+                               while ( (b = b.parentNode) ) {
+                                       if ( b === a ) {
+                                               return true;
+                                       }
+                               }
+                       }
+                       return false;
+               };
+
+       /* Sorting
+       ---------------------------------------------------------------------- */
+
+       // Support: Webkit<537.32 - Safari 6.0.3/Chrome 25 (fixed in Chrome 27)
+       // Detached nodes confoundingly follow *each other*
+       support.sortDetached = assert(function( div1 ) {
+               // Should return 1, but returns 4 (following)
+               return div1.compareDocumentPosition( doc.createElement("div") ) & 1;
+       });
+
+       // Document order sorting
+       sortOrder = docElem.compareDocumentPosition ?
+       function( a, b ) {
+
+               // Flag for duplicate removal
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+               }
+
+               var compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b );
+
+               if ( compare ) {
+                       // Disconnected nodes
+                       if ( compare & 1 ||
+                               (!support.sortDetached && b.compareDocumentPosition( a ) === compare) ) {
+
+                               // Choose the first element that is related to our preferred document
+                               if ( a === doc || contains(preferredDoc, a) ) {
+                                       return -1;
+                               }
+                               if ( b === doc || contains(preferredDoc, b) ) {
+                                       return 1;
+                               }
+
+                               // Maintain original order
+                               return sortInput ?
+                                       ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
+                                       0;
+                       }
+
+                       return compare & 4 ? -1 : 1;
+               }
+
+               // Not directly comparable, sort on existence of method
+               return a.compareDocumentPosition ? -1 : 1;
+       } :
+       function( a, b ) {
+               var cur,
+                       i = 0,
+                       aup = a.parentNode,
+                       bup = b.parentNode,
+                       ap = [ a ],
+                       bp = [ b ];
+
+               // Exit early if the nodes are identical
+               if ( a === b ) {
+                       hasDuplicate = true;
+                       return 0;
+
+               // Parentless nodes are either documents or disconnected
+               } else if ( !aup || !bup ) {
+                       return a === doc ? -1 :
+                               b === doc ? 1 :
+                               aup ? -1 :
+                               bup ? 1 :
+                               sortInput ?
+                               ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
+                               0;
+
+               // If the nodes are siblings, we can do a quick check
+               } else if ( aup === bup ) {
+                       return siblingCheck( a, b );
+               }
+
+               // Otherwise we need full lists of their ancestors for comparison
+               cur = a;
+               while ( (cur = cur.parentNode) ) {
+                       ap.unshift( cur );
+               }
+               cur = b;
+               while ( (cur = cur.parentNode) ) {
+                       bp.unshift( cur );
+               }
+
+               // Walk down the tree looking for a discrepancy
+               while ( ap[i] === bp[i] ) {
+                       i++;
+               }
+
+               return i ?
+                       // Do a sibling check if the nodes have a common ancestor
+                       siblingCheck( ap[i], bp[i] ) :
+
+                       // Otherwise nodes in our document sort first
+                       ap[i] === preferredDoc ? -1 :
+                       bp[i] === preferredDoc ? 1 :
+                       0;
+       };
+
+       return doc;
+};
+
+Sizzle.matches = function( expr, elements ) {
+       return Sizzle( expr, null, null, elements );
+};
+
+Sizzle.matchesSelector = function( elem, expr ) {
+       // Set document vars if needed
+       if ( ( elem.ownerDocument || elem ) !== document ) {
+               setDocument( elem );
+       }
+
+       // Make sure that attribute selectors are quoted
+       expr = expr.replace( rattributeQuotes, "='$1']" );
+
+       if ( support.matchesSelector && documentIsHTML &&
+               ( !rbuggyMatches || !rbuggyMatches.test( expr ) ) &&
+               ( !rbuggyQSA     || !rbuggyQSA.test( expr ) ) ) {
+
+               try {
+                       var ret = matches.call( elem, expr );
+
+                       // IE 9's matchesSelector returns false on disconnected nodes
+                       if ( ret || support.disconnectedMatch ||
+                                       // As well, disconnected nodes are said to be in a document
+                                       // fragment in IE 9
+                                       elem.document && elem.document.nodeType !== 11 ) {
+                               return ret;
+                       }
+               } catch(e) {}
+       }
+
+       return Sizzle( expr, document, null, [elem] ).length > 0;
+};
+
+Sizzle.contains = function( context, elem ) {
+       // Set document vars if needed
+       if ( ( context.ownerDocument || context ) !== document ) {
+               setDocument( context );
+       }
+       return contains( context, elem );
+};
+
+Sizzle.attr = function( elem, name ) {
+       // Set document vars if needed
+       if ( ( elem.ownerDocument || elem ) !== document ) {
+               setDocument( elem );
+       }
+
+       var fn = Expr.attrHandle[ name.toLowerCase() ],
+               // Don't get fooled by Object.prototype properties (jQuery #13807)
+               val = ( fn && hasOwn.call( Expr.attrHandle, name.toLowerCase() ) ?
+                       fn( elem, name, !documentIsHTML ) :
+                       undefined );
+
+       return val === undefined ?
+               support.attributes || !documentIsHTML ?
+                       elem.getAttribute( name ) :
+                       (val = elem.getAttributeNode(name)) && val.specified ?
+                               val.value :
+                               null :
+               val;
+};
+
+Sizzle.error = function( msg ) {
+       throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+/**
+ * Document sorting and removing duplicates
+ * @param {ArrayLike} results
+ */
+Sizzle.uniqueSort = function( results ) {
+       var elem,
+               duplicates = [],
+               j = 0,
+               i = 0;
+
+       // Unless we *know* we can detect duplicates, assume their presence
+       hasDuplicate = !support.detectDuplicates;
+       sortInput = !support.sortStable && results.slice( 0 );
+       results.sort( sortOrder );
+
+       if ( hasDuplicate ) {
+               while ( (elem = results[i++]) ) {
+                       if ( elem === results[ i ] ) {
+                               j = duplicates.push( i );
+                       }
+               }
+               while ( j-- ) {
+                       results.splice( duplicates[ j ], 1 );
+               }
+       }
+
+       return results;
+};
+
+/**
+ * Utility function for retrieving the text value of an array of DOM nodes
+ * @param {Array|Element} elem
+ */
+getText = Sizzle.getText = function( elem ) {
+       var node,
+               ret = "",
+               i = 0,
+               nodeType = elem.nodeType;
+
+       if ( !nodeType ) {
+               // If no nodeType, this is expected to be an array
+               for ( ; (node = elem[i]); i++ ) {
+                       // Do not traverse comment nodes
+                       ret += getText( node );
+               }
+       } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
+               // Use textContent for elements
+               // innerText usage removed for consistency of new lines (see #11153)
+               if ( typeof elem.textContent === "string" ) {
+                       return elem.textContent;
+               } else {
+                       // Traverse its children
+                       for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+                               ret += getText( elem );
+                       }
+               }
+       } else if ( nodeType === 3 || nodeType === 4 ) {
+               return elem.nodeValue;
+       }
+       // Do not include comment or processing instruction nodes
+
+       return ret;
+};
+
+Expr = Sizzle.selectors = {
+
+       // Can be adjusted by the user
+       cacheLength: 50,
+
+       createPseudo: markFunction,
+
+       match: matchExpr,
+
+       attrHandle: {},
+
+       find: {},
+
+       relative: {
+               ">": { dir: "parentNode", first: true },
+               " ": { dir: "parentNode" },
+               "+": { dir: "previousSibling", first: true },
+               "~": { dir: "previousSibling" }
+       },
+
+       preFilter: {
+               "ATTR": function( match ) {
+                       match[1] = match[1].replace( runescape, funescape );
+
+                       // Move the given value to match[3] whether quoted or unquoted
+                       match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape );
+
+                       if ( match[2] === "~=" ) {
+                               match[3] = " " + match[3] + " ";
+                       }
+
+                       return match.slice( 0, 4 );
+               },
+
+               "CHILD": function( match ) {
+                       /* matches from matchExpr["CHILD"]
+                               1 type (only|nth|...)
+                               2 what (child|of-type)
+                               3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
+                               4 xn-component of xn+y argument ([+-]?\d*n|)
+                               5 sign of xn-component
+                               6 x of xn-component
+                               7 sign of y-component
+                               8 y of y-component
+                       */
+                       match[1] = match[1].toLowerCase();
+
+                       if ( match[1].slice( 0, 3 ) === "nth" ) {
+                               // nth-* requires argument
+                               if ( !match[3] ) {
+                                       Sizzle.error( match[0] );
+                               }
+
+                               // numeric x and y parameters for Expr.filter.CHILD
+                               // remember that false/true cast respectively to 0/1
+                               match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
+                               match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
+
+                       // other types prohibit arguments
+                       } else if ( match[3] ) {
+                               Sizzle.error( match[0] );
+                       }
+
+                       return match;
+               },
+
+               "PSEUDO": function( match ) {
+                       var excess,
+                               unquoted = !match[5] && match[2];
+
+                       if ( matchExpr["CHILD"].test( match[0] ) ) {
+                               return null;
+                       }
+
+                       // Accept quoted arguments as-is
+                       if ( match[3] && match[4] !== undefined ) {
+                               match[2] = match[4];
+
+                       // Strip excess characters from unquoted arguments
+                       } else if ( unquoted && rpseudo.test( unquoted ) &&
+                               // Get excess from tokenize (recursively)
+                               (excess = tokenize( unquoted, true )) &&
+                               // advance to the next closing parenthesis
+                               (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
+
+                               // excess is a negative index
+                               match[0] = match[0].slice( 0, excess );
+                               match[2] = unquoted.slice( 0, excess );
+                       }
+
+                       // Return only captures needed by the pseudo filter method (type and argument)
+                       return match.slice( 0, 3 );
+               }
+       },
+
+       filter: {
+
+               "TAG": function( nodeNameSelector ) {
+                       var nodeName = nodeNameSelector.replace( runescape, funescape ).toLowerCase();
+                       return nodeNameSelector === "*" ?
+                               function() { return true; } :
+                               function( elem ) {
+                                       return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
+                               };
+               },
+
+               "CLASS": function( className ) {
+                       var pattern = classCache[ className + " " ];
+
+                       return pattern ||
+                               (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
+                               classCache( className, function( elem ) {
+                                       return pattern.test( typeof elem.className === "string" && elem.className || typeof elem.getAttribute !== strundefined && elem.getAttribute("class") || "" );
+                               });
+               },
+
+               "ATTR": function( name, operator, check ) {
+                       return function( elem ) {
+                               var result = Sizzle.attr( elem, name );
+
+                               if ( result == null ) {
+                                       return operator === "!=";
+                               }
+                               if ( !operator ) {
+                                       return true;
+                               }
+
+                               result += "";
+
+                               return operator === "=" ? result === check :
+                                       operator === "!=" ? result !== check :
+                                       operator === "^=" ? check && result.indexOf( check ) === 0 :
+                                       operator === "*=" ? check && result.indexOf( check ) > -1 :
+                                       operator === "$=" ? check && result.slice( -check.length ) === check :
+                                       operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :
+                                       operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
+                                       false;
+                       };
+               },
+
+               "CHILD": function( type, what, argument, first, last ) {
+                       var simple = type.slice( 0, 3 ) !== "nth",
+                               forward = type.slice( -4 ) !== "last",
+                               ofType = what === "of-type";
+
+                       return first === 1 && last === 0 ?
+
+                               // Shortcut for :nth-*(n)
+                               function( elem ) {
+                                       return !!elem.parentNode;
+                               } :
+
+                               function( elem, context, xml ) {
+                                       var cache, outerCache, node, diff, nodeIndex, start,
+                                               dir = simple !== forward ? "nextSibling" : "previousSibling",
+                                               parent = elem.parentNode,
+                                               name = ofType && elem.nodeName.toLowerCase(),
+                                               useCache = !xml && !ofType;
+
+                                       if ( parent ) {
+
+                                               // :(first|last|only)-(child|of-type)
+                                               if ( simple ) {
+                                                       while ( dir ) {
+                                                               node = elem;
+                                                               while ( (node = node[ dir ]) ) {
+                                                                       if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
+                                                                               return false;
+                                                                       }
+                                                               }
+                                                               // Reverse direction for :only-* (if we haven't yet done so)
+                                                               start = dir = type === "only" && !start && "nextSibling";
+                                                       }
+                                                       return true;
+                                               }
+
+                                               start = [ forward ? parent.firstChild : parent.lastChild ];
+
+                                               // non-xml :nth-child(...) stores cache data on `parent`
+                                               if ( forward && useCache ) {
+                                                       // Seek `elem` from a previously-cached index
+                                                       outerCache = parent[ expando ] || (parent[ expando ] = {});
+                                                       cache = outerCache[ type ] || [];
+                                                       nodeIndex = cache[0] === dirruns && cache[1];
+                                                       diff = cache[0] === dirruns && cache[2];
+                                                       node = nodeIndex && parent.childNodes[ nodeIndex ];
+
+                                                       while ( (node = ++nodeIndex && node && node[ dir ] ||
+
+                                                               // Fallback to seeking `elem` from the start
+                                                               (diff = nodeIndex = 0) || start.pop()) ) {
+
+                                                               // When found, cache indexes on `parent` and break
+                                                               if ( node.nodeType === 1 && ++diff && node === elem ) {
+                                                                       outerCache[ type ] = [ dirruns, nodeIndex, diff ];
+                                                                       break;
+                                                               }
+                                                       }
+
+                                               // Use previously-cached element index if available
+                                               } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
+                                                       diff = cache[1];
+
+                                               // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
+                                               } else {
+                                                       // Use the same loop as above to seek `elem` from the start
+                                                       while ( (node = ++nodeIndex && node && node[ dir ] ||
+                                                               (diff = nodeIndex = 0) || start.pop()) ) {
+
+                                                               if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
+                                                                       // Cache the index of each encountered element
+                                                                       if ( useCache ) {
+                                                                               (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
+                                                                       }
+
+                                                                       if ( node === elem ) {
+                                                                               break;
+                                                                       }
+                                                               }
+                                                       }
+                                               }
+
+                                               // Incorporate the offset, then check against cycle size
+                                               diff -= last;
+                                               return diff === first || ( diff % first === 0 && diff / first >= 0 );
+                                       }
+                               };
+               },
+
+               "PSEUDO": function( pseudo, argument ) {
+                       // pseudo-class names are case-insensitive
+                       // http://www.w3.org/TR/selectors/#pseudo-classes
+                       // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
+                       // Remember that setFilters inherits from pseudos
+                       var args,
+                               fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
+                                       Sizzle.error( "unsupported pseudo: " + pseudo );
+
+                       // The user may use createPseudo to indicate that
+                       // arguments are needed to create the filter function
+                       // just as Sizzle does
+                       if ( fn[ expando ] ) {
+                               return fn( argument );
+                       }
+
+                       // But maintain support for old signatures
+                       if ( fn.length > 1 ) {
+                               args = [ pseudo, pseudo, "", argument ];
+                               return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
+                                       markFunction(function( seed, matches ) {
+                                               var idx,
+                                                       matched = fn( seed, argument ),
+                                                       i = matched.length;
+                                               while ( i-- ) {
+                                                       idx = indexOf.call( seed, matched[i] );
+                                                       seed[ idx ] = !( matches[ idx ] = matched[i] );
+                                               }
+                                       }) :
+                                       function( elem ) {
+                                               return fn( elem, 0, args );
+                                       };
+                       }
+
+                       return fn;
+               }
+       },
+
+       pseudos: {
+               // Potentially complex pseudos
+               "not": markFunction(function( selector ) {
+                       // Trim the selector passed to compile
+                       // to avoid treating leading and trailing
+                       // spaces as combinators
+                       var input = [],
+                               results = [],
+                               matcher = compile( selector.replace( rtrim, "$1" ) );
+
+                       return matcher[ expando ] ?
+                               markFunction(function( seed, matches, context, xml ) {
+                                       var elem,
+                                               unmatched = matcher( seed, null, xml, [] ),
+                                               i = seed.length;
+
+                                       // Match elements unmatched by `matcher`
+                                       while ( i-- ) {
+                                               if ( (elem = unmatched[i]) ) {
+                                                       seed[i] = !(matches[i] = elem);
+                                               }
+                                       }
+                               }) :
+                               function( elem, context, xml ) {
+                                       input[0] = elem;
+                                       matcher( input, null, xml, results );
+                                       return !results.pop();
+                               };
+               }),
+
+               "has": markFunction(function( selector ) {
+                       return function( elem ) {
+                               return Sizzle( selector, elem ).length > 0;
+                       };
+               }),
+
+               "contains": markFunction(function( text ) {
+                       return function( elem ) {
+                               return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
+                       };
+               }),
+
+               // "Whether an element is represented by a :lang() selector
+               // is based solely on the element's language value
+               // being equal to the identifier C,
+               // or beginning with the identifier C immediately followed by "-".
+               // The matching of C against the element's language value is performed case-insensitively.
+               // The identifier C does not have to be a valid language name."
+               // http://www.w3.org/TR/selectors/#lang-pseudo
+               "lang": markFunction( function( lang ) {
+                       // lang value must be a valid identifier
+                       if ( !ridentifier.test(lang || "") ) {
+                               Sizzle.error( "unsupported lang: " + lang );
+                       }
+                       lang = lang.replace( runescape, funescape ).toLowerCase();
+                       return function( elem ) {
+                               var elemLang;
+                               do {
+                                       if ( (elemLang = documentIsHTML ?
+                                               elem.lang :
+                                               elem.getAttribute("xml:lang") || elem.getAttribute("lang")) ) {
+
+                                               elemLang = elemLang.toLowerCase();
+                                               return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
+                                       }
+                               } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
+                               return false;
+                       };
+               }),
+
+               // Miscellaneous
+               "target": function( elem ) {
+                       var hash = window.location && window.location.hash;
+                       return hash && hash.slice( 1 ) === elem.id;
+               },
+
+               "root": function( elem ) {
+                       return elem === docElem;
+               },
+
+               "focus": function( elem ) {
+                       return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
+               },
+
+               // Boolean properties
+               "enabled": function( elem ) {
+                       return elem.disabled === false;
+               },
+
+               "disabled": function( elem ) {
+                       return elem.disabled === true;
+               },
+
+               "checked": function( elem ) {
+                       // In CSS3, :checked should return both checked and selected elements
+                       // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
+                       var nodeName = elem.nodeName.toLowerCase();
+                       return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
+               },
+
+               "selected": function( elem ) {
+                       // Accessing this property makes selected-by-default
+                       // options in Safari work properly
+                       if ( elem.parentNode ) {
+                               elem.parentNode.selectedIndex;
+                       }
+
+                       return elem.selected === true;
+               },
+
+               // Contents
+               "empty": function( elem ) {
+                       // http://www.w3.org/TR/selectors/#empty-pseudo
+                       // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),
+                       //   not comment, processing instructions, or others
+                       // Thanks to Diego Perini for the nodeName shortcut
+                       //   Greater than "@" means alpha characters (specifically not starting with "#" or "?")
+                       for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
+                               if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) {
+                                       return false;
+                               }
+                       }
+                       return true;
+               },
+
+               "parent": function( elem ) {
+                       return !Expr.pseudos["empty"]( elem );
+               },
+
+               // Element/input types
+               "header": function( elem ) {
+                       return rheader.test( elem.nodeName );
+               },
+
+               "input": function( elem ) {
+                       return rinputs.test( elem.nodeName );
+               },
+
+               "button": function( elem ) {
+                       var name = elem.nodeName.toLowerCase();
+                       return name === "input" && elem.type === "button" || name === "button";
+               },
+
+               "text": function( elem ) {
+                       var attr;
+                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
+                       // use getAttribute instead to test this case
+                       return elem.nodeName.toLowerCase() === "input" &&
+                               elem.type === "text" &&
+                               ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type );
+               },
+
+               // Position-in-collection
+               "first": createPositionalPseudo(function() {
+                       return [ 0 ];
+               }),
+
+               "last": createPositionalPseudo(function( matchIndexes, length ) {
+                       return [ length - 1 ];
+               }),
+
+               "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
+                       return [ argument < 0 ? argument + length : argument ];
+               }),
+
+               "even": createPositionalPseudo(function( matchIndexes, length ) {
+                       var i = 0;
+                       for ( ; i < length; i += 2 ) {
+                               matchIndexes.push( i );
+                       }
+                       return matchIndexes;
+               }),
+
+               "odd": createPositionalPseudo(function( matchIndexes, length ) {
+                       var i = 1;
+                       for ( ; i < length; i += 2 ) {
+                               matchIndexes.push( i );
+                       }
+                       return matchIndexes;
+               }),
+
+               "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+                       var i = argument < 0 ? argument + length : argument;
+                       for ( ; --i >= 0; ) {
+                               matchIndexes.push( i );
+                       }
+                       return matchIndexes;
+               }),
+
+               "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+                       var i = argument < 0 ? argument + length : argument;
+                       for ( ; ++i < length; ) {
+                               matchIndexes.push( i );
+                       }
+                       return matchIndexes;
+               })
+       }
+};
+
+// Add button/input type pseudos
+for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
+       Expr.pseudos[ i ] = createInputPseudo( i );
+}
+for ( i in { submit: true, reset: true } ) {
+       Expr.pseudos[ i ] = createButtonPseudo( i );
+}
+
+function tokenize( selector, parseOnly ) {
+       var matched, match, tokens, type,
+               soFar, groups, preFilters,
+               cached = tokenCache[ selector + " " ];
+
+       if ( cached ) {
+               return parseOnly ? 0 : cached.slice( 0 );
+       }
+
+       soFar = selector;
+       groups = [];
+       preFilters = Expr.preFilter;
+
+       while ( soFar ) {
+
+               // Comma and first run
+               if ( !matched || (match = rcomma.exec( soFar )) ) {
+                       if ( match ) {
+                               // Don't consume trailing commas as valid
+                               soFar = soFar.slice( match[0].length ) || soFar;
+                       }
+                       groups.push( tokens = [] );
+               }
+
+               matched = false;
+
+               // Combinators
+               if ( (match = rcombinators.exec( soFar )) ) {
+                       matched = match.shift();
+                       tokens.push({
+                               value: matched,
+                               // Cast descendant combinators to space
+                               type: match[0].replace( rtrim, " " )
+                       });
+                       soFar = soFar.slice( matched.length );
+               }
+
+               // Filters
+               for ( type in Expr.filter ) {
+                       if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
+                               (match = preFilters[ type ]( match ))) ) {
+                               matched = match.shift();
+                               tokens.push({
+                                       value: matched,
+                                       type: type,
+                                       matches: match
+                               });
+                               soFar = soFar.slice( matched.length );
+                       }
+               }
+
+               if ( !matched ) {
+                       break;
+               }
+       }
+
+       // Return the length of the invalid excess
+       // if we're just parsing
+       // Otherwise, throw an error or return tokens
+       return parseOnly ?
+               soFar.length :
+               soFar ?
+                       Sizzle.error( selector ) :
+                       // Cache the tokens
+                       tokenCache( selector, groups ).slice( 0 );
+}
+
+function toSelector( tokens ) {
+       var i = 0,
+               len = tokens.length,
+               selector = "";
+       for ( ; i < len; i++ ) {
+               selector += tokens[i].value;
+       }
+       return selector;
+}
+
+function addCombinator( matcher, combinator, base ) {
+       var dir = combinator.dir,
+               checkNonElements = base && dir === "parentNode",
+               doneName = done++;
+
+       return combinator.first ?
+               // Check against closest ancestor/preceding element
+               function( elem, context, xml ) {
+                       while ( (elem = elem[ dir ]) ) {
+                               if ( elem.nodeType === 1 || checkNonElements ) {
+                                       return matcher( elem, context, xml );
+                               }
+                       }
+               } :
+
+               // Check against all ancestor/preceding elements
+               function( elem, context, xml ) {
+                       var data, cache, outerCache,
+                               dirkey = dirruns + " " + doneName;
+
+                       // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
+                       if ( xml ) {
+                               while ( (elem = elem[ dir ]) ) {
+                                       if ( elem.nodeType === 1 || checkNonElements ) {
+                                               if ( matcher( elem, context, xml ) ) {
+                                                       return true;
+                                               }
+                                       }
+                               }
+                       } else {
+                               while ( (elem = elem[ dir ]) ) {
+                                       if ( elem.nodeType === 1 || checkNonElements ) {
+                                               outerCache = elem[ expando ] || (elem[ expando ] = {});
+                                               if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) {
+                                                       if ( (data = cache[1]) === true || data === cachedruns ) {
+                                                               return data === true;
+                                                       }
+                                               } else {
+                                                       cache = outerCache[ dir ] = [ dirkey ];
+                                                       cache[1] = matcher( elem, context, xml ) || cachedruns;
+                                                       if ( cache[1] === true ) {
+                                                               return true;
+                                                       }
+                                               }
+                                       }
+                               }
+                       }
+               };
+}
+
+function elementMatcher( matchers ) {
+       return matchers.length > 1 ?
+               function( elem, context, xml ) {
+                       var i = matchers.length;
+                       while ( i-- ) {
+                               if ( !matchers[i]( elem, context, xml ) ) {
+                                       return false;
+                               }
+                       }
+                       return true;
+               } :
+               matchers[0];
+}
+
+function condense( unmatched, map, filter, context, xml ) {
+       var elem,
+               newUnmatched = [],
+               i = 0,
+               len = unmatched.length,
+               mapped = map != null;
+
+       for ( ; i < len; i++ ) {
+               if ( (elem = unmatched[i]) ) {
+                       if ( !filter || filter( elem, context, xml ) ) {
+                               newUnmatched.push( elem );
+                               if ( mapped ) {
+                                       map.push( i );
+                               }
+                       }
+               }
+       }
+
+       return newUnmatched;
+}
+
+function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
+       if ( postFilter && !postFilter[ expando ] ) {
+               postFilter = setMatcher( postFilter );
+       }
+       if ( postFinder && !postFinder[ expando ] ) {
+               postFinder = setMatcher( postFinder, postSelector );
+       }
+       return markFunction(function( seed, results, context, xml ) {
+               var temp, i, elem,
+                       preMap = [],
+                       postMap = [],
+                       preexisting = results.length,
+
+                       // Get initial elements from seed or context
+                       elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
+
+                       // Prefilter to get matcher input, preserving a map for seed-results synchronization
+                       matcherIn = preFilter && ( seed || !selector ) ?
+                               condense( elems, preMap, preFilter, context, xml ) :
+                               elems,
+
+                       matcherOut = matcher ?
+                               // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
+                               postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
+
+                                       // ...intermediate processing is necessary
+                                       [] :
+
+                                       // ...otherwise use results directly
+                                       results :
+                               matcherIn;
+
+               // Find primary matches
+               if ( matcher ) {
+                       matcher( matcherIn, matcherOut, context, xml );
+               }
+
+               // Apply postFilter
+               if ( postFilter ) {
+                       temp = condense( matcherOut, postMap );
+                       postFilter( temp, [], context, xml );
+
+                       // Un-match failing elements by moving them back to matcherIn
+                       i = temp.length;
+                       while ( i-- ) {
+                               if ( (elem = temp[i]) ) {
+                                       matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
+                               }
+                       }
+               }
+
+               if ( seed ) {
+                       if ( postFinder || preFilter ) {
+                               if ( postFinder ) {
+                                       // Get the final matcherOut by condensing this intermediate into postFinder contexts
+                                       temp = [];
+                                       i = matcherOut.length;
+                                       while ( i-- ) {
+                                               if ( (elem = matcherOut[i]) ) {
+                                                       // Restore matcherIn since elem is not yet a final match
+                                                       temp.push( (matcherIn[i] = elem) );
+                                               }
+                                       }
+                                       postFinder( null, (matcherOut = []), temp, xml );
+                               }
+
+                               // Move matched elements from seed to results to keep them synchronized
+                               i = matcherOut.length;
+                               while ( i-- ) {
+                                       if ( (elem = matcherOut[i]) &&
+                                               (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {
+
+                                               seed[temp] = !(results[temp] = elem);
+                                       }
+                               }
+                       }
+
+               // Add elements to results, through postFinder if defined
+               } else {
+                       matcherOut = condense(
+                               matcherOut === results ?
+                                       matcherOut.splice( preexisting, matcherOut.length ) :
+                                       matcherOut
+                       );
+                       if ( postFinder ) {
+                               postFinder( null, results, matcherOut, xml );
+                       } else {
+                               push.apply( results, matcherOut );
+                       }
+               }
+       });
+}
+
+function matcherFromTokens( tokens ) {
+       var checkContext, matcher, j,
+               len = tokens.length,
+               leadingRelative = Expr.relative[ tokens[0].type ],
+               implicitRelative = leadingRelative || Expr.relative[" "],
+               i = leadingRelative ? 1 : 0,
+
+               // The foundational matcher ensures that elements are reachable from top-level context(s)
+               matchContext = addCombinator( function( elem ) {
+                       return elem === checkContext;
+               }, implicitRelative, true ),
+               matchAnyContext = addCombinator( function( elem ) {
+                       return indexOf.call( checkContext, elem ) > -1;
+               }, implicitRelative, true ),
+               matchers = [ function( elem, context, xml ) {
+                       return ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
+                               (checkContext = context).nodeType ?
+                                       matchContext( elem, context, xml ) :
+                                       matchAnyContext( elem, context, xml ) );
+               } ];
+
+       for ( ; i < len; i++ ) {
+               if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
+                       matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
+               } else {
+                       matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
+
+                       // Return special upon seeing a positional matcher
+                       if ( matcher[ expando ] ) {
+                               // Find the next relative operator (if any) for proper handling
+                               j = ++i;
+                               for ( ; j < len; j++ ) {
+                                       if ( Expr.relative[ tokens[j].type ] ) {
+                                               break;
+                                       }
+                               }
+                               return setMatcher(
+                                       i > 1 && elementMatcher( matchers ),
+                                       i > 1 && toSelector(
+                                               // If the preceding token was a descendant combinator, insert an implicit any-element `*`
+                                               tokens.slice( 0, i - 1 ).concat({ value: tokens[ i - 2 ].type === " " ? "*" : "" })
+                                       ).replace( rtrim, "$1" ),
+                                       matcher,
+                                       i < j && matcherFromTokens( tokens.slice( i, j ) ),
+                                       j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
+                                       j < len && toSelector( tokens )
+                               );
+                       }
+                       matchers.push( matcher );
+               }
+       }
+
+       return elementMatcher( matchers );
+}
+
+function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
+       // A counter to specify which element is currently being matched
+       var matcherCachedRuns = 0,
+               bySet = setMatchers.length > 0,
+               byElement = elementMatchers.length > 0,
+               superMatcher = function( seed, context, xml, results, expandContext ) {
+                       var elem, j, matcher,
+                               setMatched = [],
+                               matchedCount = 0,
+                               i = "0",
+                               unmatched = seed && [],
+                               outermost = expandContext != null,
+                               contextBackup = outermostContext,
+                               // We must always have either seed elements or context
+                               elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ),
+                               // Use integer dirruns iff this is the outermost matcher
+                               dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1);
+
+                       if ( outermost ) {
+                               outermostContext = context !== document && context;
+                               cachedruns = matcherCachedRuns;
+                       }
+
+                       // Add elements passing elementMatchers directly to results
+                       // Keep `i` a string if there are no elements so `matchedCount` will be "00" below
+                       for ( ; (elem = elems[i]) != null; i++ ) {
+                               if ( byElement && elem ) {
+                                       j = 0;
+                                       while ( (matcher = elementMatchers[j++]) ) {
+                                               if ( matcher( elem, context, xml ) ) {
+                                                       results.push( elem );
+                                                       break;
+                                               }
+                                       }
+                                       if ( outermost ) {
+                                               dirruns = dirrunsUnique;
+                                               cachedruns = ++matcherCachedRuns;
+                                       }
+                               }
+
+                               // Track unmatched elements for set filters
+                               if ( bySet ) {
+                                       // They will have gone through all possible matchers
+                                       if ( (elem = !matcher && elem) ) {
+                                               matchedCount--;
+                                       }
+
+                                       // Lengthen the array for every element, matched or not
+                                       if ( seed ) {
+                                               unmatched.push( elem );
+                                       }
+                               }
+                       }
+
+                       // Apply set filters to unmatched elements
+                       matchedCount += i;
+                       if ( bySet && i !== matchedCount ) {
+                               j = 0;
+                               while ( (matcher = setMatchers[j++]) ) {
+                                       matcher( unmatched, setMatched, context, xml );
+                               }
+
+                               if ( seed ) {
+                                       // Reintegrate element matches to eliminate the need for sorting
+                                       if ( matchedCount > 0 ) {
+                                               while ( i-- ) {
+                                                       if ( !(unmatched[i] || setMatched[i]) ) {
+                                                               setMatched[i] = pop.call( results );
+                                                       }
+                                               }
+                                       }
+
+                                       // Discard index placeholder values to get only actual matches
+                                       setMatched = condense( setMatched );
+                               }
+
+                               // Add matches to results
+                               push.apply( results, setMatched );
+
+                               // Seedless set matches succeeding multiple successful matchers stipulate sorting
+                               if ( outermost && !seed && setMatched.length > 0 &&
+                                       ( matchedCount + setMatchers.length ) > 1 ) {
+
+                                       Sizzle.uniqueSort( results );
+                               }
+                       }
+
+                       // Override manipulation of globals by nested matchers
+                       if ( outermost ) {
+                               dirruns = dirrunsUnique;
+                               outermostContext = contextBackup;
+                       }
+
+                       return unmatched;
+               };
+
+       return bySet ?
+               markFunction( superMatcher ) :
+               superMatcher;
+}
+
+compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
+       var i,
+               setMatchers = [],
+               elementMatchers = [],
+               cached = compilerCache[ selector + " " ];
+
+       if ( !cached ) {
+               // Generate a function of recursive functions that can be used to check each element
+               if ( !group ) {
+                       group = tokenize( selector );
+               }
+               i = group.length;
+               while ( i-- ) {
+                       cached = matcherFromTokens( group[i] );
+                       if ( cached[ expando ] ) {
+                               setMatchers.push( cached );
+                       } else {
+                               elementMatchers.push( cached );
+                       }
+               }
+
+               // Cache the compiled function
+               cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
+       }
+       return cached;
+};
+
+function multipleContexts( selector, contexts, results ) {
+       var i = 0,
+               len = contexts.length;
+       for ( ; i < len; i++ ) {
+               Sizzle( selector, contexts[i], results );
+       }
+       return results;
+}
+
+function select( selector, context, results, seed ) {
+       var i, tokens, token, type, find,
+               match = tokenize( selector );
+
+       if ( !seed ) {
+               // Try to minimize operations if there is only one group
+               if ( match.length === 1 ) {
+
+                       // Take a shortcut and set the context if the root selector is an ID
+                       tokens = match[0] = match[0].slice( 0 );
+                       if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
+                                       support.getById && context.nodeType === 9 && documentIsHTML &&
+                                       Expr.relative[ tokens[1].type ] ) {
+
+                               context = ( Expr.find["ID"]( token.matches[0].replace(runescape, funescape), context ) || [] )[0];
+                               if ( !context ) {
+                                       return results;
+                               }
+                               selector = selector.slice( tokens.shift().value.length );
+                       }
+
+                       // Fetch a seed set for right-to-left matching
+                       i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
+                       while ( i-- ) {
+                               token = tokens[i];
+
+                               // Abort if we hit a combinator
+                               if ( Expr.relative[ (type = token.type) ] ) {
+                                       break;
+                               }
+                               if ( (find = Expr.find[ type ]) ) {
+                                       // Search, expanding context for leading sibling combinators
+                                       if ( (seed = find(
+                                               token.matches[0].replace( runescape, funescape ),
+                                               rsibling.test( tokens[0].type ) && context.parentNode || context
+                                       )) ) {
+
+                                               // If seed is empty or no tokens remain, we can return early
+                                               tokens.splice( i, 1 );
+                                               selector = seed.length && toSelector( tokens );
+                                               if ( !selector ) {
+                                                       push.apply( results, seed );
+                                                       return results;
+                                               }
+
+                                               break;
+                                       }
+                               }
+                       }
+               }
+       }
+
+       // Compile and execute a filtering function
+       // Provide `match` to avoid retokenization if we modified the selector above
+       compile( selector, match )(
+               seed,
+               context,
+               !documentIsHTML,
+               results,
+               rsibling.test( selector )
+       );
+       return results;
+}
+
+// Deprecated
+Expr.pseudos["nth"] = Expr.pseudos["eq"];
+
+// Easy API for creating new setFilters
+function setFilters() {}
+setFilters.prototype = Expr.filters = Expr.pseudos;
+Expr.setFilters = new setFilters();
+
+// One-time assignments
+
+// Sort stability
+support.sortStable = expando.split("").sort( sortOrder ).join("") === expando;
+
+// Initialize against the default document
+setDocument();
+
+// Support: Chrome<<14
+// Always assume duplicates if they aren't passed to the comparison function
+[0, 0].sort( sortOrder );
+support.detectDuplicates = hasDuplicate;
+
+jQuery.find = Sizzle;
+jQuery.expr = Sizzle.selectors;
+jQuery.expr[":"] = jQuery.expr.pseudos;
+jQuery.unique = Sizzle.uniqueSort;
+jQuery.text = Sizzle.getText;
+jQuery.isXMLDoc = Sizzle.isXML;
+jQuery.contains = Sizzle.contains;
+
+
+})( window );
</ins><span class="cx"> // String to Object options format cache
</span><span class="cx"> var optionsCache = {};
</span><span class="cx"> 
</span><span class="lines">@@ -1114,6 +3141,7 @@
</span><span class="cx">                  // Remove all callbacks from the list
</span><span class="cx">                  empty: function() {
</span><span class="cx">                          list = [];
</span><ins>+                               firingLength = 0;
</ins><span class="cx">                           return this;
</span><span class="cx">                  },
</span><span class="cx">                  // Have the list do nothing anymore
</span><span class="lines">@@ -1304,22 +3332,20 @@
</span><span class="cx">          return deferred.promise();
</span><span class="cx">  }
</span><span class="cx"> });
</span><del>-jQuery.support = (function() {
</del><ins>+jQuery.support = (function( support ) {
</ins><span class="cx"> 
</span><del>-       var support, all, a,
-               input, select, fragment,
-               opt, eventName, isSupported, i,
</del><ins>+        var all, a, input, select, fragment, opt, eventName, isSupported, i,
</ins><span class="cx">           div = document.createElement("div");
</span><span class="cx"> 
</span><span class="cx">  // Setup
</span><span class="cx">  div.setAttribute( "className", "t" );
</span><span class="cx">  div.innerHTML = "  <link/><table></table><a href='/a'>a</a><input type='checkbox'/>";
</span><span class="cx"> 
</span><del>-       // Support tests won't run in some limited or non-browser environments
-       all = div.getElementsByTagName("*");
</del><ins>+        // Finish early in limited (non-browser) environments
+       all = div.getElementsByTagName("*") || [];
</ins><span class="cx">   a = div.getElementsByTagName("a")[ 0 ];
</span><del>-       if ( !all || !a || !all.length ) {
-               return {};
</del><ins>+        if ( !a || !a.style || !all.length ) {
+               return support;
</ins><span class="cx">   }
</span><span class="cx"> 
</span><span class="cx">  // First batch of tests
</span><span class="lines">@@ -1328,64 +3354,60 @@
</span><span class="cx">  input = div.getElementsByTagName("input")[ 0 ];
</span><span class="cx"> 
</span><span class="cx">  a.style.cssText = "top:1px;float:left;opacity:.5";
</span><del>-       support = {
-               // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
-               getSetAttribute: div.className !== "t",
</del><span class="cx"> 
</span><del>-               // IE strips leading whitespace when .innerHTML is used
-               leadingWhitespace: div.firstChild.nodeType === 3,
</del><ins>+        // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
+       support.getSetAttribute = div.className !== "t";
</ins><span class="cx"> 
</span><del>-               // Make sure that tbody elements aren't automatically inserted
-               // IE will insert them into empty tables
-               tbody: !div.getElementsByTagName("tbody").length,
</del><ins>+        // IE strips leading whitespace when .innerHTML is used
+       support.leadingWhitespace = div.firstChild.nodeType === 3;
</ins><span class="cx"> 
</span><del>-               // Make sure that link elements get serialized correctly by innerHTML
-               // This requires a wrapper element in IE
-               htmlSerialize: !!div.getElementsByTagName("link").length,
</del><ins>+        // Make sure that tbody elements aren't automatically inserted
+       // IE will insert them into empty tables
+       support.tbody = !div.getElementsByTagName("tbody").length;
</ins><span class="cx"> 
</span><del>-               // Get the style information from getAttribute
-               // (IE uses .cssText instead)
-               style: /top/.test( a.getAttribute("style") ),
</del><ins>+        // Make sure that link elements get serialized correctly by innerHTML
+       // This requires a wrapper element in IE
+       support.htmlSerialize = !!div.getElementsByTagName("link").length;
</ins><span class="cx"> 
</span><del>-               // Make sure that URLs aren't manipulated
-               // (IE normalizes it by default)
-               hrefNormalized: a.getAttribute("href") === "/a",
</del><ins>+        // Get the style information from getAttribute
+       // (IE uses .cssText instead)
+       support.style = /top/.test( a.getAttribute("style") );
</ins><span class="cx"> 
</span><del>-               // Make sure that element opacity exists
-               // (IE uses filter instead)
-               // Use a regex to work around a WebKit issue. See #5145
-               opacity: /^0.5/.test( a.style.opacity ),
</del><ins>+        // Make sure that URLs aren't manipulated
+       // (IE normalizes it by default)
+       support.hrefNormalized = a.getAttribute("href") === "/a";
</ins><span class="cx"> 
</span><del>-               // Verify style float existence
-               // (IE uses styleFloat instead of cssFloat)
-               cssFloat: !!a.style.cssFloat,
</del><ins>+        // Make sure that element opacity exists
+       // (IE uses filter instead)
+       // Use a regex to work around a WebKit issue. See #5145
+       support.opacity = /^0.5/.test( a.style.opacity );
</ins><span class="cx"> 
</span><del>-               // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
-               checkOn: !!input.value,
</del><ins>+        // Verify style float existence
+       // (IE uses styleFloat instead of cssFloat)
+       support.cssFloat = !!a.style.cssFloat;
</ins><span class="cx"> 
</span><del>-               // Make sure that a selected-by-default option has a working selected property.
-               // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
-               optSelected: opt.selected,
</del><ins>+        // Check the default checkbox/radio value ("" on WebKit; "on" elsewhere)
+       support.checkOn = !!input.value;
</ins><span class="cx"> 
</span><del>-               // Tests for enctype support on a form (#6743)
-               enctype: !!document.createElement("form").enctype,
</del><ins>+        // Make sure that a selected-by-default option has a working selected property.
+       // (WebKit defaults to false instead of true, IE too, if it's in an optgroup)
+       support.optSelected = opt.selected;
</ins><span class="cx"> 
</span><del>-               // Makes sure cloning an html5 element does not cause problems
-               // Where outerHTML is undefined, this still works
-               html5Clone: document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>",
</del><ins>+        // Tests for enctype support on a form (#6743)
+       support.enctype = !!document.createElement("form").enctype;
</ins><span class="cx"> 
</span><del>-               // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
-               boxModel: document.compatMode === "CSS1Compat",
</del><ins>+        // Makes sure cloning an html5 element does not cause problems
+       // Where outerHTML is undefined, this still works
+       support.html5Clone = document.createElement("nav").cloneNode( true ).outerHTML !== "<:nav></:nav>";
</ins><span class="cx"> 
</span><del>-               // Will be defined later
-               deleteExpando: true,
-               noCloneEvent: true,
-               inlineBlockNeedsLayout: false,
-               shrinkWrapBlocks: false,
-               reliableMarginRight: true,
-               boxSizingReliable: true,
-               pixelPosition: false
-       };
</del><ins>+        // Will be defined later
+       support.inlineBlockNeedsLayout = false;
+       support.shrinkWrapBlocks = false;
+       support.pixelPosition = false;
+       support.deleteExpando = true;
+       support.noCloneEvent = true;
+       support.reliableMarginRight = true;
+       support.boxSizingReliable = true;
</ins><span class="cx"> 
</span><span class="cx">  // Make sure checked status is properly cloned
</span><span class="cx">  input.checked = true;
</span><span class="lines">@@ -1439,7 +3461,7 @@
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="cx">  // Support: IE<9 (lack submit/change bubble), Firefox 17+ (lack focusin event)
</span><del>-       // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP), test/csp.php
</del><ins>+        // Beware of CSP restrictions (https://developer.mozilla.org/en/Security/CSP)
</ins><span class="cx">   for ( i in { submit: true, change: true, focusin: true }) {
</span><span class="cx">          div.setAttribute( eventName = "on" + i, "t" );
</span><span class="cx"> 
</span><span class="lines">@@ -1450,6 +3472,13 @@
</span><span class="cx">  div.cloneNode( true ).style.backgroundClip = "";
</span><span class="cx">  support.clearCloneStyle = div.style.backgroundClip === "content-box";
</span><span class="cx"> 
</span><ins>+       // Support: IE<9
+       // Iteration over object's inherited properties before its own.
+       for ( i in jQuery( support ) ) {
+               break;
+       }
+       support.ownLast = i !== "0";
+
</ins><span class="cx">   // Run tests that need a body at doc ready
</span><span class="cx">  jQuery(function() {
</span><span class="cx">          var container, marginDiv, tds,
</span><span class="lines">@@ -1485,12 +3514,16 @@
</span><span class="cx">          // Check if empty table cells still have offsetWidth/Height
</span><span class="cx">          support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
</span><span class="cx"> 
</span><del>-               // Check box-sizing and margin behavior
</del><ins>+                // Check box-sizing and margin behavior.
</ins><span class="cx">           div.innerHTML = "";
</span><span class="cx">          div.style.cssText = "box-sizing:border-box;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;padding:1px;border:1px;display:block;width:4px;margin-top:1%;position:absolute;top:1%;";
</span><del>-               support.boxSizing = ( div.offsetWidth === 4 );
-               support.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 );
</del><span class="cx"> 
</span><ins>+               // Workaround failing boxSizing test due to offsetWidth returning wrong value
+               // with some non-1 values of body zoom, ticket #13543
+               jQuery.swap( body, body.style.zoom != null ? { zoom: 1 } : {}, function() {
+                       support.boxSizing = div.offsetWidth === 4;
+               });
+
</ins><span class="cx">           // Use window.getComputedStyle because jsdom on node.js will break without it.
</span><span class="cx">          if ( window.getComputedStyle ) {
</span><span class="cx">                  support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
</span><span class="lines">@@ -1543,7 +3576,7 @@
</span><span class="cx">  all = select = fragment = opt = a = input = null;
</span><span class="cx"> 
</span><span class="cx">  return support;
</span><del>-})();
</del><ins>+})({});
</ins><span class="cx"> 
</span><span class="cx"> var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
</span><span class="cx">  rmultiDash = /([A-Z])/g;
</span><span class="lines">@@ -1553,9 +3586,8 @@
</span><span class="cx">          return;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       var thisCache, ret,
</del><ins>+        var ret, thisCache,
</ins><span class="cx">           internalKey = jQuery.expando,
</span><del>-               getByName = typeof name === "string",
</del><span class="cx"> 
</span><span class="cx">          // We have to handle DOM nodes and JS objects differently because IE6-7
</span><span class="cx">          // can't GC object references properly across the DOM-JS boundary
</span><span class="lines">@@ -1571,7 +3603,7 @@
</span><span class="cx"> 
</span><span class="cx">  // Avoid doing any more work than we need to when trying to get data on an
</span><span class="cx">  // object that has no data at all
</span><del>-       if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {
</del><ins>+        if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && data === undefined && typeof name === "string" ) {
</ins><span class="cx">           return;
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -1579,20 +3611,16 @@
</span><span class="cx">          // Only DOM nodes need a new unique ID for each element since their data
</span><span class="cx">          // ends up in the global cache
</span><span class="cx">          if ( isNode ) {
</span><del>-                       elem[ internalKey ] = id = core_deletedIds.pop() || jQuery.guid++;
</del><ins>+                        id = elem[ internalKey ] = core_deletedIds.pop() || jQuery.guid++;
</ins><span class="cx">           } else {
</span><span class="cx">                  id = internalKey;
</span><span class="cx">          }
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="cx">  if ( !cache[ id ] ) {
</span><del>-               cache[ id ] = {};
-
-               // Avoids exposing jQuery metadata on plain JS objects when the object
</del><ins>+                // Avoid exposing jQuery metadata on plain JS objects when the object
</ins><span class="cx">           // is serialized using JSON.stringify
</span><del>-               if ( !isNode ) {
-                       cache[ id ].toJSON = jQuery.noop;
-               }
</del><ins>+                cache[ id ] = isNode ? {} : { toJSON: jQuery.noop };
</ins><span class="cx">   }
</span><span class="cx"> 
</span><span class="cx">  // An object can be passed to jQuery.data instead of a key/value pair; this gets
</span><span class="lines">@@ -1624,7 +3652,7 @@
</span><span class="cx"> 
</span><span class="cx">  // Check for both converted-to-camel and non-converted data property names
</span><span class="cx">  // If a data property was specified
</span><del>-       if ( getByName ) {
</del><ins>+        if ( typeof name === "string" ) {
</ins><span class="cx"> 
</span><span class="cx">          // First Try to find as-is property data
</span><span class="cx">          ret = thisCache[ name ];
</span><span class="lines">@@ -1647,7 +3675,7 @@
</span><span class="cx">          return;
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       var i, l, thisCache,
</del><ins>+        var thisCache, i,
</ins><span class="cx">           isNode = elem.nodeType,
</span><span class="cx"> 
</span><span class="cx">          // See jQuery.data for more information
</span><span class="lines">@@ -1692,13 +3720,14 @@
</span><span class="cx">                          name = name.concat( jQuery.map( name, jQuery.camelCase ) );
</span><span class="cx">                  }
</span><span class="cx"> 
</span><del>-                       for ( i = 0, l = name.length; i < l; i++ ) {
</del><ins>+                        i = name.length;
+                       while ( i-- ) {
</ins><span class="cx">                           delete thisCache[ name[i] ];
</span><span class="cx">                  }
</span><span class="cx"> 
</span><span class="cx">                  // If there is no data left in the cache, we want to continue
</span><span class="cx">                  // and let the cache object itself get destroyed
</span><del>-                       if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
</del><ins>+                        if ( pvt ? !isEmptyDataObject(thisCache) : !jQuery.isEmptyObject(thisCache) ) {
</ins><span class="cx">                           return;
</span><span class="cx">                  }
</span><span class="cx">          }
</span><span class="lines">@@ -1720,7 +3749,9 @@
</span><span class="cx">          jQuery.cleanData( [ elem ], true );
</span><span class="cx"> 
</span><span class="cx">  // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
</span><ins>+       /* jshint eqeqeq: false */
</ins><span class="cx">   } else if ( jQuery.support.deleteExpando || cache != cache.window ) {
</span><ins>+               /* jshint eqeqeq: true */
</ins><span class="cx">           delete cache[ id ];
</span><span class="cx"> 
</span><span class="cx">  // When all else fails, null
</span><span class="lines">@@ -1732,17 +3763,13 @@
</span><span class="cx"> jQuery.extend({
</span><span class="cx">  cache: {},
</span><span class="cx"> 
</span><del>-       // Unique for each copy of jQuery on the page
-       // Non-digits removed to match rinlinejQuery
-       expando: "jQuery" + ( core_version + Math.random() ).replace( /\D/g, "" ),
-
</del><span class="cx">   // The following elements throw uncatchable exceptions if you
</span><span class="cx">  // attempt to add expando properties to them.
</span><span class="cx">  noData: {
</span><ins>+               "applet": true,
</ins><span class="cx">           "embed": true,
</span><span class="cx">          // Ban all objects except for Flash (which handle expandos)
</span><del>-               "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
-               "applet": true
</del><ins>+                "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
</ins><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">  hasData: function( elem ) {
</span><span class="lines">@@ -1784,10 +3811,13 @@
</span><span class="cx"> jQuery.fn.extend({
</span><span class="cx">  data: function( key, value ) {
</span><span class="cx">          var attrs, name,
</span><del>-                       elem = this[0],
</del><ins>+                        data = null,
</ins><span class="cx">                   i = 0,
</span><del>-                       data = null;
</del><ins>+                        elem = this[0];
</ins><span class="cx"> 
</span><ins>+               // Special expections of .data basically thwart jQuery.access,
+               // so implement the relevant behavior ourselves
+
</ins><span class="cx">           // Gets all values
</span><span class="cx">          if ( key === undefined ) {
</span><span class="cx">                  if ( this.length ) {
</span><span class="lines">@@ -1798,7 +3828,7 @@
</span><span class="cx">                                  for ( ; i < attrs.length; i++ ) {
</span><span class="cx">                                          name = attrs[i].name;
</span><span class="cx"> 
</span><del>-                                               if ( !name.indexOf( "data-" ) ) {
</del><ins>+                                                if ( name.indexOf("data-") === 0 ) {
</ins><span class="cx">                                                   name = jQuery.camelCase( name.slice(5) );
</span><span class="cx"> 
</span><span class="cx">                                                  dataAttr( elem, name, data[ name ] );
</span><span class="lines">@@ -1818,17 +3848,16 @@
</span><span class="cx">                  });
</span><span class="cx">          }
</span><span class="cx"> 
</span><del>-               return jQuery.access( this, function( value ) {
</del><ins>+                return arguments.length > 1 ?
</ins><span class="cx"> 
</span><del>-                       if ( value === undefined ) {
-                               // Try to fetch any internally stored data first
-                               return elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null;
-                       }
-
</del><ins>+                        // Sets one value
</ins><span class="cx">                   this.each(function() {
</span><span class="cx">                          jQuery.data( this, key, value );
</span><del>-                       });
-               }, null, value, arguments.length > 1, null, true );
</del><ins>+                        }) :
+
+                       // Gets one value
+                       // Try to fetch any internally stored data first
+                       elem ? dataAttr( elem, key, jQuery.data( elem, key ) ) : null;
</ins><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">  removeData: function( key ) {
</span><span class="lines">@@ -2033,11 +4062,10 @@
</span><span class="cx">  }
</span><span class="cx"> });
</span><span class="cx"> var nodeHook, boolHook,
</span><del>-       rclass = /[\t\r\n]/g,
</del><ins>+        rclass = /[\t\r\n\f]/g,
</ins><span class="cx">   rreturn = /\r/g,
</span><span class="cx">  rfocusable = /^(?:input|select|textarea|button|object)$/i,
</span><span class="cx">  rclickable = /^(?:a|area)$/i,
</span><del>-       rboolean = /^(?:checked|selected|autofocus|autoplay|async|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped)$/i,
</del><span class="cx">   ruseDefault = /^(?:checked|selected)$/i,
</span><span class="cx">  getSetAttribute = jQuery.support.getSetAttribute,
</span><span class="cx">  getSetInput = jQuery.support.input;
</span><span class="lines">@@ -2226,15 +4254,14 @@
</span><span class="cx">          isFunction = jQuery.isFunction( value );
</span><span class="cx"> 
</span><span class="cx">          return this.each(function( i ) {
</span><del>-                       var val,
-                               self = jQuery(this);
</del><ins>+                        var val;
</ins><span class="cx"> 
</span><span class="cx">                  if ( this.nodeType !== 1 ) {
</span><span class="cx">                          return;
</span><span class="cx">                  }
</span><span class="cx"> 
</span><span class="cx">                  if ( isFunction ) {
</span><del>-                               val = value.call( this, i, self.val() );
</del><ins>+                                val = value.call( this, i, jQuery( this ).val() );
</ins><span class="cx">                   } else {
</span><span class="cx">                          val = value;
</span><span class="cx">                  }
</span><span class="lines">@@ -2264,10 +4291,11 @@
</span><span class="cx">  valHooks: {
</span><span class="cx">          option: {
</span><span class="cx">                  get: function( elem ) {
</span><del>-                               // attributes.value is undefined in Blackberry 4.7 but
-                               // uses .value. See #6932
-                               var val = elem.attributes.value;
-                               return !val || val.specified ? elem.value : elem.text;
</del><ins>+                                // Use proper attribute retrieval(#6932, #12072)
+                               var val = jQuery.find.attr( elem, "value" );
+                               return val != null ?
+                                       val :
+                                       elem.text;
</ins><span class="cx">                   }
</span><span class="cx">          },
</span><span class="cx">          select: {
</span><span class="lines">@@ -2309,13 +4337,20 @@
</span><span class="cx">                  },
</span><span class="cx"> 
</span><span class="cx">                  set: function( elem, value ) {
</span><del>-                               var values = jQuery.makeArray( value );
</del><ins>+                                var optionSet, option,
+                                       options = elem.options,
+                                       values = jQuery.makeArray( value ),
+                                       i = options.length;
</ins><span class="cx"> 
</span><del>-                               jQuery(elem).find("option").each(function() {
-                                       this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
-                               });
</del><ins>+                                while ( i-- ) {
+                                       option = options[ i ];
+                                       if ( (option.selected = jQuery.inArray( jQuery(option).val(), values ) >= 0) ) {
+                                               optionSet = true;
+                                       }
+                               }
</ins><span class="cx"> 
</span><del>-                               if ( !values.length ) {
</del><ins>+                                // force browsers to behave consistently when non-matching value is set
+                               if ( !optionSet ) {
</ins><span class="cx">                                   elem.selectedIndex = -1;
</span><span class="cx">                          }
</span><span class="cx">                          return values;
</span><span class="lines">@@ -2324,7 +4359,7 @@
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="cx">  attr: function( elem, name, value ) {
</span><del>-               var hooks, notxml, ret,
</del><ins>+                var hooks, ret,
</ins><span class="cx">                   nType = elem.nodeType;
</span><span class="cx"> 
</span><span class="cx">          // don't get/set attributes on text, comment and attribute nodes
</span><span class="lines">@@ -2337,13 +4372,12 @@
</span><span class="cx">                  return jQuery.prop( elem, name, value );
</span><span class="cx">          }
</span><span class="cx"> 
</span><del>-               notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
-
</del><span class="cx">           // All attributes are lowercase
</span><span class="cx">          // Grab necessary hook if one is defined
</span><del>-               if ( notxml ) {
</del><ins>+                if ( nType !== 1 || !jQuery.isXMLDoc( elem ) ) {
</ins><span class="cx">                   name = name.toLowerCase();
</span><del>-                       hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
</del><ins>+                        hooks = jQuery.attrHooks[ name ] ||
+                               ( jQuery.expr.match.bool.test( name ) ? boolHook : nodeHook );
</ins><span class="cx">           }
</span><span class="cx"> 
</span><span class="cx">          if ( value !== undefined ) {
</span><span class="lines">@@ -2351,7 +4385,7 @@
</span><span class="cx">                  if ( value === null ) {
</span><span class="cx">                          jQuery.removeAttr( elem, name );
</span><span class="cx"> 
</span><del>-                       } else if ( hooks && notxml && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
</del><ins>+                        } else if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
</ins><span class="cx">                           return ret;
</span><span class="cx"> 
</span><span class="cx">                  } else {
</span><span class="lines">@@ -2359,17 +4393,12 @@
</span><span class="cx">                          return value;
</span><span class="cx">                  }
</span><span class="cx"> 
</span><del>-               } else if ( hooks && notxml && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
</del><ins>+                } else if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
</ins><span class="cx">                   return ret;
</span><span class="cx"> 
</span><span class="cx">          } else {
</span><ins>+                       ret = jQuery.find.attr( elem, name );
</ins><span class="cx"> 
</span><del>-                       // In IE9+, Flash objects don't have .getAttribute (#12945)
-                       // Support: IE9+
-                       if ( typeof elem.getAttribute !== core_strundefined ) {
-                               ret =  elem.getAttribute( name );
-                       }
-
</del><span class="cx">                   // Non-existent attributes return null, we normalize to undefined
</span><span class="cx">                  return ret == null ?
</span><span class="cx">                          undefined :
</span><span class="lines">@@ -2387,14 +4416,15 @@
</span><span class="cx">                          propName = jQuery.propFix[ name ] || name;
</span><span class="cx"> 
</span><span class="cx">                          // Boolean attributes get special treatment (#10870)
</span><del>-                               if ( rboolean.test( name ) ) {
-                                       // Set corresponding property to false for boolean attributes
-                                       // Also clear defaultChecked/defaultSelected (if appropriate) for IE<8
-                                       if ( !getSetAttribute && ruseDefault.test( name ) ) {
</del><ins>+                                if ( jQuery.expr.match.bool.test( name ) ) {
+                                       // Set corresponding property to false
+                                       if ( getSetInput && getSetAttribute || !ruseDefault.test( name ) ) {
+                                               elem[ propName ] = false;
+                                       // Support: IE<9
+                                       // Also clear defaultChecked/defaultSelected (if appropriate)
+                                       } else {
</ins><span class="cx">                                           elem[ jQuery.camelCase( "default-" + name ) ] =
</span><span class="cx">                                                  elem[ propName ] = false;
</span><del>-                                       } else {
-                                               elem[ propName ] = false;
</del><span class="cx">                                   }
</span><span class="cx"> 
</span><span class="cx">                          // See #9699 for explanation of this approach (setting first, then removal)
</span><span class="lines">@@ -2425,18 +4455,8 @@
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="cx">  propFix: {
</span><del>-               tabindex: "tabIndex",
-               readonly: "readOnly",
</del><span class="cx">           "for": "htmlFor",
</span><del>-               "class": "className",
-               maxlength: "maxLength",
-               cellspacing: "cellSpacing",
-               cellpadding: "cellPadding",
-               rowspan: "rowSpan",
-               colspan: "colSpan",
-               usemap: "useMap",
-               frameborder: "frameBorder",
-               contenteditable: "contentEditable"
</del><ins>+                "class": "className"
</ins><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">  prop: function( elem, name, value ) {
</span><span class="lines">@@ -2457,20 +4477,14 @@
</span><span class="cx">          }
</span><span class="cx"> 
</span><span class="cx">          if ( value !== undefined ) {
</span><del>-                       if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
-                               return ret;
</del><ins>+                        return hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ?
+                               ret :
+                               ( elem[ name ] = value );
</ins><span class="cx"> 
</span><del>-                       } else {
-                               return ( elem[ name ] = value );
-                       }
-
</del><span class="cx">           } else {
</span><del>-                       if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
-                               return ret;
-
-                       } else {
-                               return elem[ name ];
-                       }
</del><ins>+                        return hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ?
+                               ret :
+                               elem[ name ];
</ins><span class="cx">           }
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="lines">@@ -2479,44 +4493,21 @@
</span><span class="cx">                  get: function( elem ) {
</span><span class="cx">                          // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
</span><span class="cx">                          // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
</span><del>-                               var attributeNode = elem.getAttributeNode("tabindex");
</del><ins>+                                // Use proper attribute retrieval(#12072)
+                               var tabindex = jQuery.find.attr( elem, "tabindex" );
</ins><span class="cx"> 
</span><del>-                               return attributeNode && attributeNode.specified ?
-                                       parseInt( attributeNode.value, 10 ) :
</del><ins>+                                return tabindex ?
+                                       parseInt( tabindex, 10 ) :
</ins><span class="cx">                                   rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
</span><span class="cx">                                          0 :
</span><del>-                                               undefined;
</del><ins>+                                                -1;
</ins><span class="cx">                   }
</span><span class="cx">          }
</span><span class="cx">  }
</span><span class="cx"> });
</span><span class="cx"> 
</span><del>-// Hook for boolean attributes
</del><ins>+// Hooks for boolean attributes
</ins><span class="cx"> boolHook = {
</span><del>-       get: function( elem, name ) {
-               var
-                       // Use .prop to determine if this attribute is understood as boolean
-                       prop = jQuery.prop( elem, name ),
-
-                       // Fetch it accordingly
-                       attr = typeof prop === "boolean" && elem.getAttribute( name ),
-                       detail = typeof prop === "boolean" ?
-
-                               getSetInput && getSetAttribute ?
-                                       attr != null :
-                                       // oldIE fabricates an empty string for missing boolean attributes
-                                       // and conflates checked/selected into attroperties
-                                       ruseDefault.test( name ) ?
-                                               elem[ jQuery.camelCase( "default-" + name ) ] :
-                                               !!attr :
-
-                               // fetch an attribute node for properties not recognized as boolean
-                               elem.getAttributeNode( name );
-
-               return detail && detail.value !== false ?
-                       name.toLowerCase() :
-                       undefined;
-       },
</del><span class="cx">   set: function( elem, value, name ) {
</span><span class="cx">          if ( value === false ) {
</span><span class="cx">                  // Remove boolean attributes when set to false
</span><span class="lines">@@ -2533,19 +4524,35 @@
</span><span class="cx">          return name;
</span><span class="cx">  }
</span><span class="cx"> };
</span><ins>+jQuery.each( jQuery.expr.match.bool.source.match( /\w+/g ), function( i, name ) {
+       var getter = jQuery.expr.attrHandle[ name ] || jQuery.find.attr;
</ins><span class="cx"> 
</span><del>-// fix oldIE value attroperty
</del><ins>+        jQuery.expr.attrHandle[ name ] = getSetInput && getSetAttribute || !ruseDefault.test( name ) ?
+               function( elem, name, isXML ) {
+                       var fn = jQuery.expr.attrHandle[ name ],
+                               ret = isXML ?
+                                       undefined :
+                                       /* jshint eqeqeq: false */
+                                       (jQuery.expr.attrHandle[ name ] = undefined) !=
+                                               getter( elem, name, isXML ) ?
+
+                                               name.toLowerCase() :
+                                               null;
+                       jQuery.expr.attrHandle[ name ] = fn;
+                       return ret;
+               } :
+               function( elem, name, isXML ) {
+                       return isXML ?
+                               undefined :
+                               elem[ jQuery.camelCase( "default-" + name ) ] ?
+                                       name.toLowerCase() :
+                                       null;
+               };
+});
+
+// fix oldIE attroperties
</ins><span class="cx"> if ( !getSetInput || !getSetAttribute ) {
</span><span class="cx">  jQuery.attrHooks.value = {
</span><del>-               get: function( elem, name ) {
-                       var ret = elem.getAttributeNode( name );
-                       return jQuery.nodeName( elem, "input" ) ?
-
-                               // Ignore the value *property* by using defaultValue
-                               elem.defaultValue :
-
-                               ret && ret.specified ? ret.value : undefined;
-               },
</del><span class="cx">           set: function( elem, value, name ) {
</span><span class="cx">                  if ( jQuery.nodeName( elem, "input" ) ) {
</span><span class="cx">                          // Does not return so that setAttribute is also used
</span><span class="lines">@@ -2563,13 +4570,7 @@
</span><span class="cx"> 
</span><span class="cx">  // Use this for any attribute in IE6/7
</span><span class="cx">  // This fixes almost every IE6/7 issue
</span><del>-       nodeHook = jQuery.valHooks.button = {
-               get: function( elem, name ) {
-                       var ret = elem.getAttributeNode( name );
-                       return ret && ( name === "id" || name === "name" || name === "coords" ? ret.value !== "" : ret.specified ) ?
-                               ret.value :
-                               undefined;
-               },
</del><ins>+        nodeHook = {
</ins><span class="cx">           set: function( elem, value, name ) {
</span><span class="cx">                  // Set the existing or create a new attribute node
</span><span class="cx">                  var ret = elem.getAttributeNode( name );
</span><span class="lines">@@ -2587,11 +4588,29 @@
</span><span class="cx">                          undefined;
</span><span class="cx">          }
</span><span class="cx">  };
</span><ins>+       jQuery.expr.attrHandle.id = jQuery.expr.attrHandle.name = jQuery.expr.attrHandle.coords =
+               // Some attributes are constructed with empty-string values when not defined
+               function( elem, name, isXML ) {
+                       var ret;
+                       return isXML ?
+                               undefined :
+                               (ret = elem.getAttributeNode( name )) && ret.value !== "" ?
+                                       ret.value :
+                                       null;
+               };
+       jQuery.valHooks.button = {
+               get: function( elem, name ) {
+                       var ret = elem.getAttributeNode( name );
+                       return ret && ret.specified ?
+                               ret.value :
+                               undefined;
+               },
+               set: nodeHook.set
+       };
</ins><span class="cx"> 
</span><span class="cx">  // Set contenteditable to false on removals(#10429)
</span><span class="cx">  // Setting to empty string throws an error as an invalid value
</span><span class="cx">  jQuery.attrHooks.contenteditable = {
</span><del>-               get: nodeHook.get,
</del><span class="cx">           set: function( elem, value, name ) {
</span><span class="cx">                  nodeHook.set( elem, value === "" ? false : value, name );
</span><span class="cx">          }
</span><span class="lines">@@ -2600,14 +4619,14 @@
</span><span class="cx">  // Set width and height to auto instead of 0 on empty string( Bug #8150 )
</span><span class="cx">  // This is for removals
</span><span class="cx">  jQuery.each([ "width", "height" ], function( i, name ) {
</span><del>-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
</del><ins>+                jQuery.attrHooks[ name ] = {
</ins><span class="cx">                   set: function( elem, value ) {
</span><span class="cx">                          if ( value === "" ) {
</span><span class="cx">                                  elem.setAttribute( name, "auto" );
</span><span class="cx">                                  return value;
</span><span class="cx">                          }
</span><span class="cx">                  }
</span><del>-               });
</del><ins>+                };
</ins><span class="cx">   });
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="lines">@@ -2615,15 +4634,6 @@
</span><span class="cx"> // Some attributes require a special call on IE
</span><span class="cx"> // http://msdn.microsoft.com/en-us/library/ms536429%28VS.85%29.aspx
</span><span class="cx"> if ( !jQuery.support.hrefNormalized ) {
</span><del>-       jQuery.each([ "href", "src", "width", "height" ], function( i, name ) {
-               jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
-                       get: function( elem ) {
-                               var ret = elem.getAttribute( name, 2 );
-                               return ret == null ? undefined : ret;
-                       }
-               });
-       });
-
</del><span class="cx">   // href/src property should get the full normalized URL (#10299/#12915)
</span><span class="cx">  jQuery.each([ "href", "src" ], function( i, name ) {
</span><span class="cx">          jQuery.propHooks[ name ] = {
</span><span class="lines">@@ -2651,7 +4661,7 @@
</span><span class="cx"> // Safari mis-reports the default selected property of an option
</span><span class="cx"> // Accessing the parent's selectedIndex property fixes it
</span><span class="cx"> if ( !jQuery.support.optSelected ) {
</span><del>-       jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
</del><ins>+        jQuery.propHooks.selected = {
</ins><span class="cx">           get: function( elem ) {
</span><span class="cx">                  var parent = elem.parentNode;
</span><span class="cx"> 
</span><span class="lines">@@ -2665,33 +4675,45 @@
</span><span class="cx">                  }
</span><span class="cx">                  return null;
</span><span class="cx">          }
</span><del>-       });
</del><ins>+        };
</ins><span class="cx"> }
</span><span class="cx"> 
</span><ins>+jQuery.each([
+       "tabIndex",
+       "readOnly",
+       "maxLength",
+       "cellSpacing",
+       "cellPadding",
+       "rowSpan",
+       "colSpan",
+       "useMap",
+       "frameBorder",
+       "contentEditable"
+], function() {
+       jQuery.propFix[ this.toLowerCase() ] = this;
+});
+
</ins><span class="cx"> // IE6/7 call enctype encoding
</span><span class="cx"> if ( !jQuery.support.enctype ) {
</span><span class="cx">  jQuery.propFix.enctype = "encoding";
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> // Radios and checkboxes getter/setter
</span><del>-if ( !jQuery.support.checkOn ) {
-       jQuery.each([ "radio", "checkbox" ], function() {
-               jQuery.valHooks[ this ] = {
-                       get: function( elem ) {
-                               // Handle the case where in Webkit "" is returned instead of "on" if a value isn't specified
-                               return elem.getAttribute("value") === null ? "on" : elem.value;
-                       }
-               };
-       });
-}
</del><span class="cx"> jQuery.each([ "radio", "checkbox" ], function() {
</span><del>-       jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
</del><ins>+        jQuery.valHooks[ this ] = {
</ins><span class="cx">           set: function( elem, value ) {
</span><span class="cx">                  if ( jQuery.isArray( value ) ) {
</span><span class="cx">                          return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
</span><span class="cx">                  }
</span><span class="cx">          }
</span><del>-       });
</del><ins>+        };
+       if ( !jQuery.support.checkOn ) {
+               jQuery.valHooks[ this ].get = function( elem ) {
+                       // Support: Webkit
+                       // "" is returned instead of "on" if a value isn't specified
+                       return elem.getAttribute("value") === null ? "on" : elem.value;
+               };
+       }
</ins><span class="cx"> });
</span><span class="cx"> var rformElems = /^(?:input|select|textarea)$/i,
</span><span class="cx">  rkeyEvent = /^key/,
</span><span class="lines">@@ -2707,6 +4729,12 @@
</span><span class="cx">  return false;
</span><span class="cx"> }
</span><span class="cx"> 
</span><ins>+function safeActiveElement() {
+       try {
+               return document.activeElement;
+       } catch ( err ) { }
+}
+
</ins><span class="cx"> /*
</span><span class="cx">  * Helper functions for managing events -- not part of the public interface.
</span><span class="cx">  * Props to Dean Edwards' addEvent library for many of the ideas.
</span><span class="lines">@@ -2755,7 +4783,6 @@
</span><span class="cx">          }
</span><span class="cx"> 
</span><span class="cx">          // Handle multiple events separated by a space
</span><del>-               // jQuery(...).bind("mouseover mouseout", fn);
</del><span class="cx">           types = ( types || "" ).match( core_rnotwhite ) || [""];
</span><span class="cx">          t = types.length;
</span><span class="cx">          while ( t-- ) {
</span><span class="lines">@@ -2763,6 +4790,11 @@
</span><span class="cx">                  type = origType = tmp[1];
</span><span class="cx">                  namespaces = ( tmp[2] || "" ).split( "." ).sort();
</span><span class="cx"> 
</span><ins>+                       // There *must* be a type, no attaching namespace-only handlers
+                       if ( !type ) {
+                               continue;
+                       }
+
</ins><span class="cx">                   // If event changes its type, use the special event handlers for the changed type
</span><span class="cx">                  special = jQuery.event.special[ type ] || {};
</span><span class="cx"> 
</span><span class="lines">@@ -2930,7 +4962,8 @@
</span><span class="cx">                  event :
</span><span class="cx">                  new jQuery.Event( type, typeof event === "object" && event );
</span><span class="cx"> 
</span><del>-               event.isTrigger = true;
</del><ins>+                // Trigger bitmask: & 1 for native handlers; & 2 for jQuery (always true)
+               event.isTrigger = onlyHandlers ? 2 : 3;
</ins><span class="cx">           event.namespace = namespaces.join(".");
</span><span class="cx">          event.namespace_re = event.namespace ?
</span><span class="cx">                  new RegExp( "(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)" ) :
</span><span class="lines">@@ -2997,8 +5030,8 @@
</span><span class="cx">          // If nobody prevented the default action, do it now
</span><span class="cx">          if ( !onlyHandlers && !event.isDefaultPrevented() ) {
</span><span class="cx"> 
</span><del>-                       if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
-                               !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
</del><ins>+                        if ( (!special._default || special._default.apply( eventPath.pop(), data ) === false) &&
+                               jQuery.acceptData( elem ) ) {
</ins><span class="cx"> 
</span><span class="cx">                          // Call a native DOM method on the target with the same name name as the event.
</span><span class="cx">                          // Can't use an .isFunction() check here because IE6/7 fails that test.
</span><span class="lines">@@ -3102,7 +5135,9 @@
</span><span class="cx">          // Avoid non-left-click bubbling in Firefox (#3861)
</span><span class="cx">          if ( delegateCount && cur.nodeType && (!event.button || event.type !== "click") ) {
</span><span class="cx"> 
</span><ins>+                       /* jshint eqeqeq: false */
</ins><span class="cx">                   for ( ; cur != this; cur = cur.parentNode || this ) {
</span><ins>+                               /* jshint eqeqeq: true */
</ins><span class="cx"> 
</span><span class="cx">                          // Don't check non-elements (#13208)
</span><span class="cx">                          // Don't process clicks on disabled elements (#6911, #8165, #11382, #11764)
</span><span class="lines">@@ -3239,19 +5274,10 @@
</span><span class="cx">                  // Prevent triggered image.load events from bubbling to window.load
</span><span class="cx">                  noBubble: true
</span><span class="cx">          },
</span><del>-               click: {
-                       // For checkbox, fire native event so checked state will be right
-                       trigger: function() {
-                               if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
-                                       this.click();
-                                       return false;
-                               }
-                       }
-               },
</del><span class="cx">           focus: {
</span><span class="cx">                  // Fire native event if possible so blur/focus sequence is correct
</span><span class="cx">                  trigger: function() {
</span><del>-                               if ( this !== document.activeElement && this.focus ) {
</del><ins>+                                if ( this !== safeActiveElement() && this.focus ) {
</ins><span class="cx">                                   try {
</span><span class="cx">                                          this.focus();
</span><span class="cx">                                          return false;
</span><span class="lines">@@ -3266,14 +5292,28 @@
</span><span class="cx">          },
</span><span class="cx">          blur: {
</span><span class="cx">                  trigger: function() {
</span><del>-                               if ( this === document.activeElement && this.blur ) {
</del><ins>+                                if ( this === safeActiveElement() && this.blur ) {
</ins><span class="cx">                                   this.blur();
</span><span class="cx">                                  return false;
</span><span class="cx">                          }
</span><span class="cx">                  },
</span><span class="cx">                  delegateType: "focusout"
</span><span class="cx">          },
</span><ins>+               click: {
+                       // For checkbox, fire native event so checked state will be right
+                       trigger: function() {
+                               if ( jQuery.nodeName( this, "input" ) && this.type === "checkbox" && this.click ) {
+                                       this.click();
+                                       return false;
+                               }
+                       },
</ins><span class="cx"> 
</span><ins>+                       // For cross-browser consistency, don't fire native .click() on links
+                       _default: function( event ) {
+                               return jQuery.nodeName( event.target, "a" );
+                       }
+               },
+
</ins><span class="cx">           beforeunload: {
</span><span class="cx">                  postDispatch: function( event ) {
</span><span class="cx"> 
</span><span class="lines">@@ -3292,7 +5332,8 @@
</span><span class="cx">          var e = jQuery.extend(
</span><span class="cx">                  new jQuery.Event(),
</span><span class="cx">                  event,
</span><del>-                       { type: type,
</del><ins>+                        {
+                               type: type,
</ins><span class="cx">                           isSimulated: true,
</span><span class="cx">                          originalEvent: {}
</span><span class="cx">                  }
</span><span class="lines">@@ -3657,21 +5698,6 @@
</span><span class="cx">          });
</span><span class="cx">  },
</span><span class="cx"> 
</span><del>-       bind: function( types, data, fn ) {
-               return this.on( types, null, data, fn );
-       },
-       unbind: function( types, fn ) {
-               return this.off( types, null, fn );
-       },
-
-       delegate: function( selector, types, data, fn ) {
-               return this.on( types, selector, data, fn );
-       },
-       undelegate: function( selector, types, fn ) {
-               // ( namespace ) or ( selector, types [, fn] )
-               return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
-       },
-
</del><span class="cx">   trigger: function( type, data ) {
</span><span class="cx">          return this.each(function() {
</span><span class="cx">                  jQuery.event.trigger( type, data, this );
</span><span class="lines">@@ -3684,1868 +5710,8 @@
</span><span class="cx">          }
</span><span class="cx">  }
</span><span class="cx"> });
</span><del>-/*!
- * Sizzle CSS Selector Engine
- * Copyright 2012 jQuery Foundation and other contributors
- * Released under the MIT license
- * http://sizzlejs.com/
- */
-(function( window, undefined ) {
-
-var i,
-       cachedruns,
-       Expr,
-       getText,
-       isXML,
-       compile,
-       hasDuplicate,
-       outermostContext,
-
-       // Local document vars
-       setDocument,
-       document,
-       docElem,
-       documentIsXML,
-       rbuggyQSA,
-       rbuggyMatches,
-       matches,
-       contains,
-       sortOrder,
-
-       // Instance-specific data
-       expando = "sizzle" + -(new Date()),
-       preferredDoc = window.document,
-       support = {},
-       dirruns = 0,
-       done = 0,
-       classCache = createCache(),
-       tokenCache = createCache(),
-       compilerCache = createCache(),
-
-       // General-purpose constants
-       strundefined = typeof undefined,
-       MAX_NEGATIVE = 1 << 31,
-
-       // Array methods
-       arr = [],
-       pop = arr.pop,
-       push = arr.push,
-       slice = arr.slice,
-       // Use a stripped-down indexOf if we can't use a native one
-       indexOf = arr.indexOf || function( elem ) {
-               var i = 0,
-                       len = this.length;
-               for ( ; i < len; i++ ) {
-                       if ( this[i] === elem ) {
-                               return i;
-                       }
-               }
-               return -1;
-       },
-
-
-       // Regular expressions
-
-       // Whitespace characters http://www.w3.org/TR/css3-selectors/#whitespace
-       whitespace = "[\\x20\\t\\r\\n\\f]",
-       // http://www.w3.org/TR/css3-syntax/#characters
-       characterEncoding = "(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",
-
-       // Loosely modeled on CSS identifier characters
-       // An unquoted value should be a CSS identifier http://www.w3.org/TR/css3-selectors/#attribute-selectors
-       // Proper syntax: http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier
-       identifier = characterEncoding.replace( "w", "w#" ),
-
-       // Acceptable operators http://www.w3.org/TR/selectors/#attribute-selectors
-       operators = "([*^$|!~]?=)",
-       attributes = "\\[" + whitespace + "*(" + characterEncoding + ")" + whitespace +
-               "*(?:" + operators + whitespace + "*(?:(['\"])((?:\\\\.|[^\\\\])*?)\\3|(" + identifier + ")|)|)" + whitespace + "*\\]",
-
-       // Prefer arguments quoted,
-       //   then not containing pseudos/brackets,
-       //   then attribute selectors/non-parenthetical expressions,
-       //   then anything else
-       // These preferences are here to reduce the number of selectors
-       //   needing tokenize in the PSEUDO preFilter
-       pseudos = ":(" + characterEncoding + ")(?:\\(((['\"])((?:\\\\.|[^\\\\])*?)\\3|((?:\\\\.|[^\\\\()[\\]]|" + attributes.replace( 3, 8 ) + ")*)|.*)\\)|)",
-
-       // Leading and non-escaped trailing whitespace, capturing some non-whitespace characters preceding the latter
-       rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ),
-
-       rcomma = new RegExp( "^" + whitespace + "*," + whitespace + "*" ),
-       rcombinators = new RegExp( "^" + whitespace + "*([\\x20\\t\\r\\n\\f>+~])" + whitespace + "*" ),
-       rpseudo = new RegExp( pseudos ),
-       ridentifier = new RegExp( "^" + identifier + "$" ),
-
-       matchExpr = {
-               "ID": new RegExp( "^#(" + characterEncoding + ")" ),
-               "CLASS": new RegExp( "^\\.(" + characterEncoding + ")" ),
-               "NAME": new RegExp( "^\\[name=['\"]?(" + characterEncoding + ")['\"]?\\]" ),
-               "TAG": new RegExp( "^(" + characterEncoding.replace( "w", "w*" ) + ")" ),
-               "ATTR": new RegExp( "^" + attributes ),
-               "PSEUDO": new RegExp( "^" + pseudos ),
-               "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace +
-                       "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
-                       "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
-               // For use in libraries implementing .is()
-               // We use this for POS matching in `select`
-               "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" +
-                       whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" )
-       },
-
-       rsibling = /[\x20\t\r\n\f]*[+~]/,
-
-       rnative = /^[^{]+\{\s*\[native code/,
-
-       // Easily-parseable/retrievable ID or TAG or CLASS selectors
-       rquickExpr = /^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,
-
-       rinputs = /^(?:input|select|textarea|button)$/i,
-       rheader = /^h\d$/i,
-
-       rescape = /'|\\/g,
-       rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,
-
-       // CSS escapes http://www.w3.org/TR/CSS21/syndata.html#escaped-characters
-       runescape = /\\([\da-fA-F]{1,6}[\x20\t\r\n\f]?|.)/g,
-       funescape = function( _, escaped ) {
-               var high = "0x" + escaped - 0x10000;
-               // NaN means non-codepoint
-               return high !== high ?
-                       escaped :
-                       // BMP codepoint
-                       high < 0 ?
-                               String.fromCharCode( high + 0x10000 ) :
-                               // Supplemental Plane codepoint (surrogate pair)
-                               String.fromCharCode( high >> 10 | 0xD800, high & 0x3FF | 0xDC00 );
-       };
-
-// Use a stripped-down slice if we can't use a native one
-try {
-       slice.call( preferredDoc.documentElement.childNodes, 0 )[0].nodeType;
-} catch ( e ) {
-       slice = function( i ) {
-               var elem,
-                       results = [];
-               while ( (elem = this[i++]) ) {
-                       results.push( elem );
-               }
-               return results;
-       };
-}
-
-/**
- * For feature detection
- * @param {Function} fn The function to test for native support
- */
-function isNative( fn ) {
-       return rnative.test( fn + "" );
-}
-
-/**
- * Create key-value caches of limited size
- * @returns {Function(string, Object)} Returns the Object data after storing it on itself with
- *     property name the (space-suffixed) string and (if the cache is larger than Expr.cacheLength)
- *     deleting the oldest entry
- */
-function createCache() {
-       var cache,
-               keys = [];
-
-       return (cache = function( key, value ) {
-               // Use (key + " ") to avoid collision with native prototype properties (see Issue #157)
-               if ( keys.push( key += " " ) > Expr.cacheLength ) {
-                       // Only keep the most recent entries
-                       delete cache[ keys.shift() ];
-               }
-               return (cache[ key ] = value);
-       });
-}
-
-/**
- * Mark a function for special use by Sizzle
- * @param {Function} fn The function to mark
- */
-function markFunction( fn ) {
-       fn[ expando ] = true;
-       return fn;
-}
-
-/**
- * Support testing using an element
- * @param {Function} fn Passed the created div and expects a boolean result
- */
-function assert( fn ) {
-       var div = document.createElement("div");
-
-       try {
-               return fn( div );
-       } catch (e) {
-               return false;
-       } finally {
-               // release memory in IE
-               div = null;
-       }
-}
-
-function Sizzle( selector, context, results, seed ) {
-       var match, elem, m, nodeType,
-               // QSA vars
-               i, groups, old, nid, newContext, newSelector;
-
-       if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) {
-               setDocument( context );
-       }
-
-       context = context || document;
-       results = results || [];
-
-       if ( !selector || typeof selector !== "string" ) {
-               return results;
-       }
-
-       if ( (nodeType = context.nodeType) !== 1 && nodeType !== 9 ) {
-               return [];
-       }
-
-       if ( !documentIsXML && !seed ) {
-
-               // Shortcuts
-               if ( (match = rquickExpr.exec( selector )) ) {
-                       // Speed-up: Sizzle("#ID")
-                       if ( (m = match[1]) ) {
-                               if ( nodeType === 9 ) {
-                                       elem = context.getElementById( m );
-                                       // Check parentNode to catch when Blackberry 4.6 returns
-                                       // nodes that are no longer in the document #6963
-                                       if ( elem && elem.parentNode ) {
-                                               // Handle the case where IE, Opera, and Webkit return items
-                                               // by name instead of ID
-                                               if ( elem.id === m ) {
-                                                       results.push( elem );
-                                                       return results;
-                                               }
-                                       } else {
-                                               return results;
-                                       }
-                               } else {
-                                       // Context is not a document
-                                       if ( context.ownerDocument && (elem = context.ownerDocument.getElementById( m )) &&
-                                               contains( context, elem ) && elem.id === m ) {
-                                               results.push( elem );
-                                               return results;
-                                       }
-                               }
-
-                       // Speed-up: Sizzle("TAG")
-                       } else if ( match[2] ) {
-                               push.apply( results, slice.call(context.getElementsByTagName( selector ), 0) );
-                               return results;
-
-                       // Speed-up: Sizzle(".CLASS")
-                       } else if ( (m = match[3]) && support.getByClassName && context.getElementsByClassName ) {
-                               push.apply( results, slice.call(context.getElementsByClassName( m ), 0) );
-                               return results;
-                       }
-               }
-
-               // QSA path
-               if ( support.qsa && !rbuggyQSA.test(selector) ) {
-                       old = true;
-                       nid = expando;
-                       newContext = context;
-                       newSelector = nodeType === 9 && selector;
-
-                       // qSA works strangely on Element-rooted queries
-                       // We can work around this by specifying an extra ID on the root
-                       // and working up from there (Thanks to Andrew Dupont for the technique)
-                       // IE 8 doesn't work on object elements
-                       if ( nodeType === 1 && context.nodeName.toLowerCase() !== "object" ) {
-                               groups = tokenize( selector );
-
-                               if ( (old = context.getAttribute("id")) ) {
-                                       nid = old.replace( rescape, "\\$&" );
-                               } else {
-                                       context.setAttribute( "id", nid );
-                               }
-                               nid = "[id='" + nid + "'] ";
-
-                               i = groups.length;
-                               while ( i-- ) {
-                                       groups[i] = nid + toSelector( groups[i] );
-                               }
-                               newContext = rsibling.test( selector ) && context.parentNode || context;
-                               newSelector = groups.join(",");
-                       }
-
-                       if ( newSelector ) {
-                               try {
-                                       push.apply( results, slice.call( newContext.querySelectorAll(
-                                               newSelector
-                                       ), 0 ) );
-                                       return results;
-                               } catch(qsaError) {
-                               } finally {
-                                       if ( !old ) {
-                                               context.removeAttribute("id");
-                                       }
-                               }
-                       }
-               }
-       }
-
-       // All others
-       return select( selector.replace( rtrim, "$1" ), context, results, seed );
-}
-
-/**
- * Detect xml
- * @param {Element|Object} elem An element or a document
- */
-isXML = Sizzle.isXML = function( elem ) {
-       // documentElement is verified for cases where it doesn't yet exist
-       // (such as loading iframes in IE - #4833)
-       var documentElement = elem && (elem.ownerDocument || elem).documentElement;
-       return documentElement ? documentElement.nodeName !== "HTML" : false;
-};
-
-/**
- * Sets document-related variables once based on the current document
- * @param {Element|Object} [doc] An element or document object to use to set the document
- * @returns {Object} Returns the current document
- */
-setDocument = Sizzle.setDocument = function( node ) {
-       var doc = node ? node.ownerDocument || node : preferredDoc;
-
-       // If no document and documentElement is available, return
-       if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) {
-               return document;
-       }
-
-       // Set our document
-       document = doc;
-       docElem = doc.documentElement;
-
-       // Support tests
-       documentIsXML = isXML( doc );
-
-       // Check if getElementsByTagName("*") returns only elements
-       support.tagNameNoComments = assert(function( div ) {
-               div.appendChild( doc.createComment("") );
-               return !div.getElementsByTagName("*").length;
-       });
-
-       // Check if attributes should be retrieved by attribute nodes
-       support.attributes = assert(function( div ) {
-               div.innerHTML = "<select></select>";
-               var type = typeof div.lastChild.getAttribute("multiple");
-               // IE8 returns a string for some attributes even when not present
-               return type !== "boolean" && type !== "string";
-       });
-
-       // Check if getElementsByClassName can be trusted
-       support.getByClassName = assert(function( div ) {
-               // Opera can't find a second classname (in 9.6)
-               div.innerHTML = "<div class='hidden e'></div><div class='hidden'></div>";
-               if ( !div.getElementsByClassName || !div.getElementsByClassName("e").length ) {
-                       return false;
-               }
-
-               // Safari 3.2 caches class attributes and doesn't catch changes
-               div.lastChild.className = "e";
-               return div.getElementsByClassName("e").length === 2;
-       });
-
-       // Check if getElementById returns elements by name
-       // Check if getElementsByName privileges form controls or returns elements by ID
-       support.getByName = assert(function( div ) {
-               // Inject content
-               div.id = expando + 0;
-               div.innerHTML = "<a name='" + expando + "'></a><div name='" + expando + "'></div>";
-               docElem.insertBefore( div, docElem.firstChild );
-
-               // Test
-               var pass = doc.getElementsByName &&
-                       // buggy browsers will return fewer than the correct 2
-                       doc.getElementsByName( expando ).length === 2 +
-                       // buggy browsers will return more than the correct 0
-                       doc.getElementsByName( expando + 0 ).length;
-               support.getIdNotName = !doc.getElementById( expando );
-
-               // Cleanup
-               docElem.removeChild( div );
-
-               return pass;
-       });
-
-       // IE6/7 return modified attributes
-       Expr.attrHandle = assert(function( div ) {
-               div.innerHTML = "<a href='#'></a>";
-               return div.firstChild && typeof div.firstChild.getAttribute !== strundefined &&
-                       div.firstChild.getAttribute("href") === "#";
-       }) ?
-               {} :
-               {
-                       "href": function( elem ) {
-                               return elem.getAttribute( "href", 2 );
-                       },
-                       "type": function( elem ) {
-                               return elem.getAttribute("type");
-                       }
-               };
-
-       // ID find and filter
-       if ( support.getIdNotName ) {
-               Expr.find["ID"] = function( id, context ) {
-                       if ( typeof context.getElementById !== strundefined && !documentIsXML ) {
-                               var m = context.getElementById( id );
-                               // Check parentNode to catch when Blackberry 4.6 returns
-                               // nodes that are no longer in the document #6963
-                               return m && m.parentNode ? [m] : [];
-                       }
-               };
-               Expr.filter["ID"] = function( id ) {
-                       var attrId = id.replace( runescape, funescape );
-                       return function( elem ) {
-                               return elem.getAttribute("id") === attrId;
-                       };
-               };
-       } else {
-               Expr.find["ID"] = function( id, context ) {
-                       if ( typeof context.getElementById !== strundefined && !documentIsXML ) {
-                               var m = context.getElementById( id );
-
-                               return m ?
-                                       m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ?
-                                               [m] :
-                                               undefined :
-                                       [];
-                       }
-               };
-               Expr.filter["ID"] =  function( id ) {
-                       var attrId = id.replace( runescape, funescape );
-                       return function( elem ) {
-                               var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
-                               return node && node.value === attrId;
-                       };
-               };
-       }
-
-       // Tag
-       Expr.find["TAG"] = support.tagNameNoComments ?
-               function( tag, context ) {
-                       if ( typeof context.getElementsByTagName !== strundefined ) {
-                               return context.getElementsByTagName( tag );
-                       }
-               } :
-               function( tag, context ) {
-                       var elem,
-                               tmp = [],
-                               i = 0,
-                               results = context.getElementsByTagName( tag );
-
-                       // Filter out possible comments
-                       if ( tag === "*" ) {
-                               while ( (elem = results[i++]) ) {
-                                       if ( elem.nodeType === 1 ) {
-                                               tmp.push( elem );
-                                       }
-                               }
-
-                               return tmp;
-                       }
-                       return results;
-               };
-
-       // Name
-       Expr.find["NAME"] = support.getByName && function( tag, context ) {
-               if ( typeof context.getElementsByName !== strundefined ) {
-                       return context.getElementsByName( name );
-               }
-       };
-
-       // Class
-       Expr.find["CLASS"] = support.getByClassName && function( className, context ) {
-               if ( typeof context.getElementsByClassName !== strundefined && !documentIsXML ) {
-                       return context.getElementsByClassName( className );
-               }
-       };
-
-       // QSA and matchesSelector support
-
-       // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
-       rbuggyMatches = [];
-
-       // qSa(:focus) reports false when true (Chrome 21),
-       // no need to also add to buggyMatches since matches checks buggyQSA
-       // A support test would require too much code (would include document ready)
-       rbuggyQSA = [ ":focus" ];
-
-       if ( (support.qsa = isNative(doc.querySelectorAll)) ) {
-               // Build QSA regex
-               // Regex strategy adopted from Diego Perini
-               assert(function( div ) {
-                       // Select is set to empty string on purpose
-                       // This is to test IE's treatment of not explictly
-                       // setting a boolean content attribute,
-                       // since its presence should be enough
-                       // http://bugs.jquery.com/ticket/12359
-                       div.innerHTML = "<select><option selected=''></option></select>";
-
-                       // IE8 - Some boolean attributes are not treated correctly
-                       if ( !div.querySelectorAll("[selected]").length ) {
-                               rbuggyQSA.push( "\\[" + whitespace + "*(?:checked|disabled|ismap|multiple|readonly|selected|value)" );
-                       }
-
-                       // Webkit/Opera - :checked should return selected option elements
-                       // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
-                       // IE8 throws error here and will not see later tests
-                       if ( !div.querySelectorAll(":checked").length ) {
-                               rbuggyQSA.push(":checked");
-                       }
-               });
-
-               assert(function( div ) {
-
-                       // Opera 10-12/IE8 - ^= $= *= and empty values
-                       // Should not select anything
-                       div.innerHTML = "<input type='hidden' i=''/>";
-                       if ( div.querySelectorAll("[i^='']").length ) {
-                               rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:\"\"|'')" );
-                       }
-
-                       // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
-                       // IE8 throws error here and will not see later tests
-                       if ( !div.querySelectorAll(":enabled").length ) {
-                               rbuggyQSA.push( ":enabled", ":disabled" );
-                       }
-
-                       // Opera 10-11 does not throw on post-comma invalid pseudos
-                       div.querySelectorAll("*,:x");
-                       rbuggyQSA.push(",.*:");
-               });
-       }
-
-       if ( (support.matchesSelector = isNative( (matches = docElem.matchesSelector ||
-               docElem.mozMatchesSelector ||
-               docElem.webkitMatchesSelector ||
-               docElem.oMatchesSelector ||
-               docElem.msMatchesSelector) )) ) {
-
-               assert(function( div ) {
-                       // Check to see if it's possible to do matchesSelector
-                       // on a disconnected node (IE 9)
-                       support.disconnectedMatch = matches.call( div, "div" );
-
-                       // This should fail with an exception
-                       // Gecko does not error, returns false instead
-                       matches.call( div, "[s!='']:x" );
-                       rbuggyMatches.push( "!=", pseudos );
-               });
-       }
-
-       rbuggyQSA = new RegExp( rbuggyQSA.join("|") );
-       rbuggyMatches = new RegExp( rbuggyMatches.join("|") );
-
-       // Element contains another
-       // Purposefully does not implement inclusive descendent
-       // As in, an element does not contain itself
-       contains = isNative(docElem.contains) || docElem.compareDocumentPosition ?
-               function( a, b ) {
-                       var adown = a.nodeType === 9 ? a.documentElement : a,
-                               bup = b && b.parentNode;
-                       return a === bup || !!( bup && bup.nodeType === 1 && (
-                               adown.contains ?
-                                       adown.contains( bup ) :
-                                       a.compareDocumentPosition && a.compareDocumentPosition( bup ) & 16
-                       ));
-               } :
-               function( a, b ) {
-                       if ( b ) {
-                               while ( (b = b.parentNode) ) {
-                                       if ( b === a ) {
-                                               return true;
-                                       }
-                               }
-                       }
-                       return false;
-               };
-
-       // Document order sorting
-       sortOrder = docElem.compareDocumentPosition ?
-       function( a, b ) {
-               var compare;
-
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-               }
-
-               if ( (compare = b.compareDocumentPosition && a.compareDocumentPosition && a.compareDocumentPosition( b )) ) {
-                       if ( compare & 1 || a.parentNode && a.parentNode.nodeType === 11 ) {
-                               if ( a === doc || contains( preferredDoc, a ) ) {
-                                       return -1;
-                               }
-                               if ( b === doc || contains( preferredDoc, b ) ) {
-                                       return 1;
-                               }
-                               return 0;
-                       }
-                       return compare & 4 ? -1 : 1;
-               }
-
-               return a.compareDocumentPosition ? -1 : 1;
-       } :
-       function( a, b ) {
-               var cur,
-                       i = 0,
-                       aup = a.parentNode,
-                       bup = b.parentNode,
-                       ap = [ a ],
-                       bp = [ b ];
-
-               // Exit early if the nodes are identical
-               if ( a === b ) {
-                       hasDuplicate = true;
-                       return 0;
-
-               // Parentless nodes are either documents or disconnected
-               } else if ( !aup || !bup ) {
-                       return a === doc ? -1 :
-                               b === doc ? 1 :
-                               aup ? -1 :
-                               bup ? 1 :
-                               0;
-
-               // If the nodes are siblings, we can do a quick check
-               } else if ( aup === bup ) {
-                       return siblingCheck( a, b );
-               }
-
-               // Otherwise we need full lists of their ancestors for comparison
-               cur = a;
-               while ( (cur = cur.parentNode) ) {
-                       ap.unshift( cur );
-               }
-               cur = b;
-               while ( (cur = cur.parentNode) ) {
-                       bp.unshift( cur );
-               }
-
-               // Walk down the tree looking for a discrepancy
-               while ( ap[i] === bp[i] ) {
-                       i++;
-               }
-
-               return i ?
-                       // Do a sibling check if the nodes have a common ancestor
-                       siblingCheck( ap[i], bp[i] ) :
-
-                       // Otherwise nodes in our document sort first
-                       ap[i] === preferredDoc ? -1 :
-                       bp[i] === preferredDoc ? 1 :
-                       0;
-       };
-
-       // Always assume the presence of duplicates if sort doesn't
-       // pass them to our comparison function (as in Google Chrome).
-       hasDuplicate = false;
-       [0, 0].sort( sortOrder );
-       support.detectDuplicates = hasDuplicate;
-
-       return document;
-};
-
-Sizzle.matches = function( expr, elements ) {
-       return Sizzle( expr, null, null, elements );
-};
-
-Sizzle.matchesSelector = function( elem, expr ) {
-       // Set document vars if needed
-       if ( ( elem.ownerDocument || elem ) !== document ) {
-               setDocument( elem );
-       }
-
-       // Make sure that attribute selectors are quoted
-       expr = expr.replace( rattributeQuotes, "='$1']" );
-
-       // rbuggyQSA always contains :focus, so no need for an existence check
-       if ( support.matchesSelector && !documentIsXML && (!rbuggyMatches || !rbuggyMatches.test(expr)) && !rbuggyQSA.test(expr) ) {
-               try {
-                       var ret = matches.call( elem, expr );
-
-                       // IE 9's matchesSelector returns false on disconnected nodes
-                       if ( ret || support.disconnectedMatch ||
-                                       // As well, disconnected nodes are said to be in a document
-                                       // fragment in IE 9
-                                       elem.document && elem.document.nodeType !== 11 ) {
-                               return ret;
-                       }
-               } catch(e) {}
-       }
-
-       return Sizzle( expr, document, null, [elem] ).length > 0;
-};
-
-Sizzle.contains = function( context, elem ) {
-       // Set document vars if needed
-       if ( ( context.ownerDocument || context ) !== document ) {
-               setDocument( context );
-       }
-       return contains( context, elem );
-};
-
-Sizzle.attr = function( elem, name ) {
-       var val;
-
-       // Set document vars if needed
-       if ( ( elem.ownerDocument || elem ) !== document ) {
-               setDocument( elem );
-       }
-
-       if ( !documentIsXML ) {
-               name = name.toLowerCase();
-       }
-       if ( (val = Expr.attrHandle[ name ]) ) {
-               return val( elem );
-       }
-       if ( documentIsXML || support.attributes ) {
-               return elem.getAttribute( name );
-       }
-       return ( (val = elem.getAttributeNode( name )) || elem.getAttribute( name ) ) && elem[ name ] === true ?
-               name :
-               val && val.specified ? val.value : null;
-};
-
-Sizzle.error = function( msg ) {
-       throw new Error( "Syntax error, unrecognized expression: " + msg );
-};
-
-// Document sorting and removing duplicates
-Sizzle.uniqueSort = function( results ) {
-       var elem,
-               duplicates = [],
-               i = 1,
-               j = 0;
-
-       // Unless we *know* we can detect duplicates, assume their presence
-       hasDuplicate = !support.detectDuplicates;
-       results.sort( sortOrder );
-
-       if ( hasDuplicate ) {
-               for ( ; (elem = results[i]); i++ ) {
-                       if ( elem === results[ i - 1 ] ) {
-                               j = duplicates.push( i );
-                       }
-               }
-               while ( j-- ) {
-                       results.splice( duplicates[ j ], 1 );
-               }
-       }
-
-       return results;
-};
-
-function siblingCheck( a, b ) {
-       var cur = b && a,
-               diff = cur && ( ~b.sourceIndex || MAX_NEGATIVE ) - ( ~a.sourceIndex || MAX_NEGATIVE );
-
-       // Use IE sourceIndex if available on both nodes
-       if ( diff ) {
-               return diff;
-       }
-
-       // Check if b follows a
-       if ( cur ) {
-               while ( (cur = cur.nextSibling) ) {
-                       if ( cur === b ) {
-                               return -1;
-                       }
-               }
-       }
-
-       return a ? 1 : -1;
-}
-
-// Returns a function to use in pseudos for input types
-function createInputPseudo( type ) {
-       return function( elem ) {
-               var name = elem.nodeName.toLowerCase();
-               return name === "input" && elem.type === type;
-       };
-}
-
-// Returns a function to use in pseudos for buttons
-function createButtonPseudo( type ) {
-       return function( elem ) {
-               var name = elem.nodeName.toLowerCase();
-               return (name === "input" || name === "button") && elem.type === type;
-       };
-}
-
-// Returns a function to use in pseudos for positionals
-function createPositionalPseudo( fn ) {
-       return markFunction(function( argument ) {
-               argument = +argument;
-               return markFunction(function( seed, matches ) {
-                       var j,
-                               matchIndexes = fn( [], seed.length, argument ),
-                               i = matchIndexes.length;
-
-                       // Match elements found at the specified indexes
-                       while ( i-- ) {
-                               if ( seed[ (j = matchIndexes[i]) ] ) {
-                                       seed[j] = !(matches[j] = seed[j]);
-                               }
-                       }
-               });
-       });
-}
-
-/**
- * Utility function for retrieving the text value of an array of DOM nodes
- * @param {Array|Element} elem
- */
-getText = Sizzle.getText = function( elem ) {
-       var node,
-               ret = "",
-               i = 0,
-               nodeType = elem.nodeType;
-
-       if ( !nodeType ) {
-               // If no nodeType, this is expected to be an array
-               for ( ; (node = elem[i]); i++ ) {
-                       // Do not traverse comment nodes
-                       ret += getText( node );
-               }
-       } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
-               // Use textContent for elements
-               // innerText usage removed for consistency of new lines (see #11153)
-               if ( typeof elem.textContent === "string" ) {
-                       return elem.textContent;
-               } else {
-                       // Traverse its children
-                       for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
-                               ret += getText( elem );
-                       }
-               }
-       } else if ( nodeType === 3 || nodeType === 4 ) {
-               return elem.nodeValue;
-       }
-       // Do not include comment or processing instruction nodes
-
-       return ret;
-};
-
-Expr = Sizzle.selectors = {
-
-       // Can be adjusted by the user
-       cacheLength: 50,
-
-       createPseudo: markFunction,
-
-       match: matchExpr,
-
-       find: {},
-
-       relative: {
-               ">": { dir: "parentNode", first: true },
-               " ": { dir: "parentNode" },
-               "+": { dir: "previousSibling", first: true },
-               "~": { dir: "previousSibling" }
-       },
-
-       preFilter: {
-               "ATTR": function( match ) {
-                       match[1] = match[1].replace( runescape, funescape );
-
-                       // Move the given value to match[3] whether quoted or unquoted
-                       match[3] = ( match[4] || match[5] || "" ).replace( runescape, funescape );
-
-                       if ( match[2] === "~=" ) {
-                               match[3] = " " + match[3] + " ";
-                       }
-
-                       return match.slice( 0, 4 );
-               },
-
-               "CHILD": function( match ) {
-                       /* matches from matchExpr["CHILD"]
-                               1 type (only|nth|...)
-                               2 what (child|of-type)
-                               3 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
-                               4 xn-component of xn+y argument ([+-]?\d*n|)
-                               5 sign of xn-component
-                               6 x of xn-component
-                               7 sign of y-component
-                               8 y of y-component
-                       */
-                       match[1] = match[1].toLowerCase();
-
-                       if ( match[1].slice( 0, 3 ) === "nth" ) {
-                               // nth-* requires argument
-                               if ( !match[3] ) {
-                                       Sizzle.error( match[0] );
-                               }
-
-                               // numeric x and y parameters for Expr.filter.CHILD
-                               // remember that false/true cast respectively to 0/1
-                               match[4] = +( match[4] ? match[5] + (match[6] || 1) : 2 * ( match[3] === "even" || match[3] === "odd" ) );
-                               match[5] = +( ( match[7] + match[8] ) || match[3] === "odd" );
-
-                       // other types prohibit arguments
-                       } else if ( match[3] ) {
-                               Sizzle.error( match[0] );
-                       }
-
-                       return match;
-               },
-
-               "PSEUDO": function( match ) {
-                       var excess,
-                               unquoted = !match[5] && match[2];
-
-                       if ( matchExpr["CHILD"].test( match[0] ) ) {
-                               return null;
-                       }
-
-                       // Accept quoted arguments as-is
-                       if ( match[4] ) {
-                               match[2] = match[4];
-
-                       // Strip excess characters from unquoted arguments
-                       } else if ( unquoted && rpseudo.test( unquoted ) &&
-                               // Get excess from tokenize (recursively)
-                               (excess = tokenize( unquoted, true )) &&
-                               // advance to the next closing parenthesis
-                               (excess = unquoted.indexOf( ")", unquoted.length - excess ) - unquoted.length) ) {
-
-                               // excess is a negative index
-                               match[0] = match[0].slice( 0, excess );
-                               match[2] = unquoted.slice( 0, excess );
-                       }
-
-                       // Return only captures needed by the pseudo filter method (type and argument)
-                       return match.slice( 0, 3 );
-               }
-       },
-
-       filter: {
-
-               "TAG": function( nodeName ) {
-                       if ( nodeName === "*" ) {
-                               return function() { return true; };
-                       }
-
-                       nodeName = nodeName.replace( runescape, funescape ).toLowerCase();
-                       return function( elem ) {
-                               return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
-                       };
-               },
-
-               "CLASS": function( className ) {
-                       var pattern = classCache[ className + " " ];
-
-                       return pattern ||
-                               (pattern = new RegExp( "(^|" + whitespace + ")" + className + "(" + whitespace + "|$)" )) &&
-                               classCache( className, function( elem ) {
-                                       return pattern.test( elem.className || (typeof elem.getAttribute !== strundefined && elem.getAttribute("class")) || "" );
-                               });
-               },
-
-               "ATTR": function( name, operator, check ) {
-                       return function( elem ) {
-                               var result = Sizzle.attr( elem, name );
-
-                               if ( result == null ) {
-                                       return operator === "!=";
-                               }
-                               if ( !operator ) {
-                                       return true;
-                               }
-
-                               result += "";
-
-                               return operator === "=" ? result === check :
-                                       operator === "!=" ? result !== check :
-                                       operator === "^=" ? check && result.indexOf( check ) === 0 :
-                                       operator === "*=" ? check && result.indexOf( check ) > -1 :
-                                       operator === "$=" ? check && result.slice( -check.length ) === check :
-                                       operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :
-                                       operator === "|=" ? result === check || result.slice( 0, check.length + 1 ) === check + "-" :
-                                       false;
-                       };
-               },
-
-               "CHILD": function( type, what, argument, first, last ) {
-                       var simple = type.slice( 0, 3 ) !== "nth",
-                               forward = type.slice( -4 ) !== "last",
-                               ofType = what === "of-type";
-
-                       return first === 1 && last === 0 ?
-
-                               // Shortcut for :nth-*(n)
-                               function( elem ) {
-                                       return !!elem.parentNode;
-                               } :
-
-                               function( elem, context, xml ) {
-                                       var cache, outerCache, node, diff, nodeIndex, start,
-                                               dir = simple !== forward ? "nextSibling" : "previousSibling",
-                                               parent = elem.parentNode,
-                                               name = ofType && elem.nodeName.toLowerCase(),
-                                               useCache = !xml && !ofType;
-
-                                       if ( parent ) {
-
-                                               // :(first|last|only)-(child|of-type)
-                                               if ( simple ) {
-                                                       while ( dir ) {
-                                                               node = elem;
-                                                               while ( (node = node[ dir ]) ) {
-                                                                       if ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) {
-                                                                               return false;
-                                                                       }
-                                                               }
-                                                               // Reverse direction for :only-* (if we haven't yet done so)
-                                                               start = dir = type === "only" && !start && "nextSibling";
-                                                       }
-                                                       return true;
-                                               }
-
-                                               start = [ forward ? parent.firstChild : parent.lastChild ];
-
-                                               // non-xml :nth-child(...) stores cache data on `parent`
-                                               if ( forward && useCache ) {
-                                                       // Seek `elem` from a previously-cached index
-                                                       outerCache = parent[ expando ] || (parent[ expando ] = {});
-                                                       cache = outerCache[ type ] || [];
-                                                       nodeIndex = cache[0] === dirruns && cache[1];
-                                                       diff = cache[0] === dirruns && cache[2];
-                                                       node = nodeIndex && parent.childNodes[ nodeIndex ];
-
-                                                       while ( (node = ++nodeIndex && node && node[ dir ] ||
-
-                                                               // Fallback to seeking `elem` from the start
-                                                               (diff = nodeIndex = 0) || start.pop()) ) {
-
-                                                               // When found, cache indexes on `parent` and break
-                                                               if ( node.nodeType === 1 && ++diff && node === elem ) {
-                                                                       outerCache[ type ] = [ dirruns, nodeIndex, diff ];
-                                                                       break;
-                                                               }
-                                                       }
-
-                                               // Use previously-cached element index if available
-                                               } else if ( useCache && (cache = (elem[ expando ] || (elem[ expando ] = {}))[ type ]) && cache[0] === dirruns ) {
-                                                       diff = cache[1];
-
-                                               // xml :nth-child(...) or :nth-last-child(...) or :nth(-last)?-of-type(...)
-                                               } else {
-                                                       // Use the same loop as above to seek `elem` from the start
-                                                       while ( (node = ++nodeIndex && node && node[ dir ] ||
-                                                               (diff = nodeIndex = 0) || start.pop()) ) {
-
-                                                               if ( ( ofType ? node.nodeName.toLowerCase() === name : node.nodeType === 1 ) && ++diff ) {
-                                                                       // Cache the index of each encountered element
-                                                                       if ( useCache ) {
-                                                                               (node[ expando ] || (node[ expando ] = {}))[ type ] = [ dirruns, diff ];
-                                                                       }
-
-                                                                       if ( node === elem ) {
-                                                                               break;
-                                                                       }
-                                                               }
-                                                       }
-                                               }
-
-                                               // Incorporate the offset, then check against cycle size
-                                               diff -= last;
-                                               return diff === first || ( diff % first === 0 && diff / first >= 0 );
-                                       }
-                               };
-               },
-
-               "PSEUDO": function( pseudo, argument ) {
-                       // pseudo-class names are case-insensitive
-                       // http://www.w3.org/TR/selectors/#pseudo-classes
-                       // Prioritize by case sensitivity in case custom pseudos are added with uppercase letters
-                       // Remember that setFilters inherits from pseudos
-                       var args,
-                               fn = Expr.pseudos[ pseudo ] || Expr.setFilters[ pseudo.toLowerCase() ] ||
-                                       Sizzle.error( "unsupported pseudo: " + pseudo );
-
-                       // The user may use createPseudo to indicate that
-                       // arguments are needed to create the filter function
-                       // just as Sizzle does
-                       if ( fn[ expando ] ) {
-                               return fn( argument );
-                       }
-
-                       // But maintain support for old signatures
-                       if ( fn.length > 1 ) {
-                               args = [ pseudo, pseudo, "", argument ];
-                               return Expr.setFilters.hasOwnProperty( pseudo.toLowerCase() ) ?
-                                       markFunction(function( seed, matches ) {
-                                               var idx,
-                                                       matched = fn( seed, argument ),
-                                                       i = matched.length;
-                                               while ( i-- ) {
-                                                       idx = indexOf.call( seed, matched[i] );
-                                                       seed[ idx ] = !( matches[ idx ] = matched[i] );
-                                               }
-                                       }) :
-                                       function( elem ) {
-                                               return fn( elem, 0, args );
-                                       };
-                       }
-
-                       return fn;
-               }
-       },
-
-       pseudos: {
-               // Potentially complex pseudos
-               "not": markFunction(function( selector ) {
-                       // Trim the selector passed to compile
-                       // to avoid treating leading and trailing
-                       // spaces as combinators
-                       var input = [],
-                               results = [],
-                               matcher = compile( selector.replace( rtrim, "$1" ) );
-
-                       return matcher[ expando ] ?
-                               markFunction(function( seed, matches, context, xml ) {
-                                       var elem,
-                                               unmatched = matcher( seed, null, xml, [] ),
-                                               i = seed.length;
-
-                                       // Match elements unmatched by `matcher`
-                                       while ( i-- ) {
-                                               if ( (elem = unmatched[i]) ) {
-                                                       seed[i] = !(matches[i] = elem);
-                                               }
-                                       }
-                               }) :
-                               function( elem, context, xml ) {
-                                       input[0] = elem;
-                                       matcher( input, null, xml, results );
-                                       return !results.pop();
-                               };
-               }),
-
-               "has": markFunction(function( selector ) {
-                       return function( elem ) {
-                               return Sizzle( selector, elem ).length > 0;
-                       };
-               }),
-
-               "contains": markFunction(function( text ) {
-                       return function( elem ) {
-                               return ( elem.textContent || elem.innerText || getText( elem ) ).indexOf( text ) > -1;
-                       };
-               }),
-
-               // "Whether an element is represented by a :lang() selector
-               // is based solely on the element's language value
-               // being equal to the identifier C,
-               // or beginning with the identifier C immediately followed by "-".
-               // The matching of C against the element's language value is performed case-insensitively.
-               // The identifier C does not have to be a valid language name."
-               // http://www.w3.org/TR/selectors/#lang-pseudo
-               "lang": markFunction( function( lang ) {
-                       // lang value must be a valid identifider
-                       if ( !ridentifier.test(lang || "") ) {
-                               Sizzle.error( "unsupported lang: " + lang );
-                       }
-                       lang = lang.replace( runescape, funescape ).toLowerCase();
-                       return function( elem ) {
-                               var elemLang;
-                               do {
-                                       if ( (elemLang = documentIsXML ?
-                                               elem.getAttribute("xml:lang") || elem.getAttribute("lang") :
-                                               elem.lang) ) {
-
-                                               elemLang = elemLang.toLowerCase();
-                                               return elemLang === lang || elemLang.indexOf( lang + "-" ) === 0;
-                                       }
-                               } while ( (elem = elem.parentNode) && elem.nodeType === 1 );
-                               return false;
-                       };
-               }),
-
-               // Miscellaneous
-               "target": function( elem ) {
-                       var hash = window.location && window.location.hash;
-                       return hash && hash.slice( 1 ) === elem.id;
-               },
-
-               "root": function( elem ) {
-                       return elem === docElem;
-               },
-
-               "focus": function( elem ) {
-                       return elem === document.activeElement && (!document.hasFocus || document.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
-               },
-
-               // Boolean properties
-               "enabled": function( elem ) {
-                       return elem.disabled === false;
-               },
-
-               "disabled": function( elem ) {
-                       return elem.disabled === true;
-               },
-
-               "checked": function( elem ) {
-                       // In CSS3, :checked should return both checked and selected elements
-                       // http://www.w3.org/TR/2011/REC-css3-selectors-20110929/#checked
-                       var nodeName = elem.nodeName.toLowerCase();
-                       return (nodeName === "input" && !!elem.checked) || (nodeName === "option" && !!elem.selected);
-               },
-
-               "selected": function( elem ) {
-                       // Accessing this property makes selected-by-default
-                       // options in Safari work properly
-                       if ( elem.parentNode ) {
-                               elem.parentNode.selectedIndex;
-                       }
-
-                       return elem.selected === true;
-               },
-
-               // Contents
-               "empty": function( elem ) {
-                       // http://www.w3.org/TR/selectors/#empty-pseudo
-                       // :empty is only affected by element nodes and content nodes(including text(3), cdata(4)),
-                       //   not comment, processing instructions, or others
-                       // Thanks to Diego Perini for the nodeName shortcut
-                       //   Greater than "@" means alpha characters (specifically not starting with "#" or "?")
-                       for ( elem = elem.firstChild; elem; elem = elem.nextSibling ) {
-                               if ( elem.nodeName > "@" || elem.nodeType === 3 || elem.nodeType === 4 ) {
-                                       return false;
-                               }
-                       }
-                       return true;
-               },
-
-               "parent": function( elem ) {
-                       return !Expr.pseudos["empty"]( elem );
-               },
-
-               // Element/input types
-               "header": function( elem ) {
-                       return rheader.test( elem.nodeName );
-               },
-
-               "input": function( elem ) {
-                       return rinputs.test( elem.nodeName );
-               },
-
-               "button": function( elem ) {
-                       var name = elem.nodeName.toLowerCase();
-                       return name === "input" && elem.type === "button" || name === "button";
-               },
-
-               "text": function( elem ) {
-                       var attr;
-                       // IE6 and 7 will map elem.type to 'text' for new HTML5 types (search, etc)
-                       // use getAttribute instead to test this case
-                       return elem.nodeName.toLowerCase() === "input" &&
-                               elem.type === "text" &&
-                               ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === elem.type );
-               },
-
-               // Position-in-collection
-               "first": createPositionalPseudo(function() {
-                       return [ 0 ];
-               }),
-
-               "last": createPositionalPseudo(function( matchIndexes, length ) {
-                       return [ length - 1 ];
-               }),
-
-               "eq": createPositionalPseudo(function( matchIndexes, length, argument ) {
-                       return [ argument < 0 ? argument + length : argument ];
-               }),
-
-               "even": createPositionalPseudo(function( matchIndexes, length ) {
-                       var i = 0;
-                       for ( ; i < length; i += 2 ) {
-                               matchIndexes.push( i );
-                       }
-                       return matchIndexes;
-               }),
-
-               "odd": createPositionalPseudo(function( matchIndexes, length ) {
-                       var i = 1;
-                       for ( ; i < length; i += 2 ) {
-                               matchIndexes.push( i );
-                       }
-                       return matchIndexes;
-               }),
-
-               "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
-                       var i = argument < 0 ? argument + length : argument;
-                       for ( ; --i >= 0; ) {
-                               matchIndexes.push( i );
-                       }
-                       return matchIndexes;
-               }),
-
-               "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
-                       var i = argument < 0 ? argument + length : argument;
-                       for ( ; ++i < length; ) {
-                               matchIndexes.push( i );
-                       }
-                       return matchIndexes;
-               })
-       }
-};
-
-// Add button/input type pseudos
-for ( i in { radio: true, checkbox: true, file: true, password: true, image: true } ) {
-       Expr.pseudos[ i ] = createInputPseudo( i );
-}
-for ( i in { submit: true, reset: true } ) {
-       Expr.pseudos[ i ] = createButtonPseudo( i );
-}
-
-function tokenize( selector, parseOnly ) {
-       var matched, match, tokens, type,
-               soFar, groups, preFilters,
-               cached = tokenCache[ selector + " " ];
-
-       if ( cached ) {
-               return parseOnly ? 0 : cached.slice( 0 );
-       }
-
-       soFar = selector;
-       groups = [];
-       preFilters = Expr.preFilter;
-
-       while ( soFar ) {
-
-               // Comma and first run
-               if ( !matched || (match = rcomma.exec( soFar )) ) {
-                       if ( match ) {
-                               // Don't consume trailing commas as valid
-                               soFar = soFar.slice( match[0].length ) || soFar;
-                       }
-                       groups.push( tokens = [] );
-               }
-
-               matched = false;
-
-               // Combinators
-               if ( (match = rcombinators.exec( soFar )) ) {
-                       matched = match.shift();
-                       tokens.push( {
-                               value: matched,
-                               // Cast descendant combinators to space
-                               type: match[0].replace( rtrim, " " )
-                       } );
-                       soFar = soFar.slice( matched.length );
-               }
-
-               // Filters
-               for ( type in Expr.filter ) {
-                       if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
-                               (match = preFilters[ type ]( match ))) ) {
-                               matched = match.shift();
-                               tokens.push( {
-                                       value: matched,
-                                       type: type,
-                                       matches: match
-                               } );
-                               soFar = soFar.slice( matched.length );
-                       }
-               }
-
-               if ( !matched ) {
-                       break;
-               }
-       }
-
-       // Return the length of the invalid excess
-       // if we're just parsing
-       // Otherwise, throw an error or return tokens
-       return parseOnly ?
-               soFar.length :
-               soFar ?
-                       Sizzle.error( selector ) :
-                       // Cache the tokens
-                       tokenCache( selector, groups ).slice( 0 );
-}
-
-function toSelector( tokens ) {
-       var i = 0,
-               len = tokens.length,
-               selector = "";
-       for ( ; i < len; i++ ) {
-               selector += tokens[i].value;
-       }
-       return selector;
-}
-
-function addCombinator( matcher, combinator, base ) {
-       var dir = combinator.dir,
-               checkNonElements = base && dir === "parentNode",
-               doneName = done++;
-
-       return combinator.first ?
-               // Check against closest ancestor/preceding element
-               function( elem, context, xml ) {
-                       while ( (elem = elem[ dir ]) ) {
-                               if ( elem.nodeType === 1 || checkNonElements ) {
-                                       return matcher( elem, context, xml );
-                               }
-                       }
-               } :
-
-               // Check against all ancestor/preceding elements
-               function( elem, context, xml ) {
-                       var data, cache, outerCache,
-                               dirkey = dirruns + " " + doneName;
-
-                       // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
-                       if ( xml ) {
-                               while ( (elem = elem[ dir ]) ) {
-                                       if ( elem.nodeType === 1 || checkNonElements ) {
-                                               if ( matcher( elem, context, xml ) ) {
-                                                       return true;
-                                               }
-                                       }
-                               }
-                       } else {
-                               while ( (elem = elem[ dir ]) ) {
-                                       if ( elem.nodeType === 1 || checkNonElements ) {
-                                               outerCache = elem[ expando ] || (elem[ expando ] = {});
-                                               if ( (cache = outerCache[ dir ]) && cache[0] === dirkey ) {
-                                                       if ( (data = cache[1]) === true || data === cachedruns ) {
-                                                               return data === true;
-                                                       }
-                                               } else {
-                                                       cache = outerCache[ dir ] = [ dirkey ];
-                                                       cache[1] = matcher( elem, context, xml ) || cachedruns;
-                                                       if ( cache[1] === true ) {
-                                                               return true;
-                                                       }
-                                               }
-                                       }
-                               }
-                       }
-               };
-}
-
-function elementMatcher( matchers ) {
-       return matchers.length > 1 ?
-               function( elem, context, xml ) {
-                       var i = matchers.length;
-                       while ( i-- ) {
-                               if ( !matchers[i]( elem, context, xml ) ) {
-                                       return false;
-                               }
-                       }
-                       return true;
-               } :
-               matchers[0];
-}
-
-function condense( unmatched, map, filter, context, xml ) {
-       var elem,
-               newUnmatched = [],
-               i = 0,
-               len = unmatched.length,
-               mapped = map != null;
-
-       for ( ; i < len; i++ ) {
-               if ( (elem = unmatched[i]) ) {
-                       if ( !filter || filter( elem, context, xml ) ) {
-                               newUnmatched.push( elem );
-                               if ( mapped ) {
-                                       map.push( i );
-                               }
-                       }
-               }
-       }
-
-       return newUnmatched;
-}
-
-function setMatcher( preFilter, selector, matcher, postFilter, postFinder, postSelector ) {
-       if ( postFilter && !postFilter[ expando ] ) {
-               postFilter = setMatcher( postFilter );
-       }
-       if ( postFinder && !postFinder[ expando ] ) {
-               postFinder = setMatcher( postFinder, postSelector );
-       }
-       return markFunction(function( seed, results, context, xml ) {
-               var temp, i, elem,
-                       preMap = [],
-                       postMap = [],
-                       preexisting = results.length,
-
-                       // Get initial elements from seed or context
-                       elems = seed || multipleContexts( selector || "*", context.nodeType ? [ context ] : context, [] ),
-
-                       // Prefilter to get matcher input, preserving a map for seed-results synchronization
-                       matcherIn = preFilter && ( seed || !selector ) ?
-                               condense( elems, preMap, preFilter, context, xml ) :
-                               elems,
-
-                       matcherOut = matcher ?
-                               // If we have a postFinder, or filtered seed, or non-seed postFilter or preexisting results,
-                               postFinder || ( seed ? preFilter : preexisting || postFilter ) ?
-
-                                       // ...intermediate processing is necessary
-                                       [] :
-
-                                       // ...otherwise use results directly
-                                       results :
-                               matcherIn;
-
-               // Find primary matches
-               if ( matcher ) {
-                       matcher( matcherIn, matcherOut, context, xml );
-               }
-
-               // Apply postFilter
-               if ( postFilter ) {
-                       temp = condense( matcherOut, postMap );
-                       postFilter( temp, [], context, xml );
-
-                       // Un-match failing elements by moving them back to matcherIn
-                       i = temp.length;
-                       while ( i-- ) {
-                               if ( (elem = temp[i]) ) {
-                                       matcherOut[ postMap[i] ] = !(matcherIn[ postMap[i] ] = elem);
-                               }
-                       }
-               }
-
-               if ( seed ) {
-                       if ( postFinder || preFilter ) {
-                               if ( postFinder ) {
-                                       // Get the final matcherOut by condensing this intermediate into postFinder contexts
-                                       temp = [];
-                                       i = matcherOut.length;
-                                       while ( i-- ) {
-                                               if ( (elem = matcherOut[i]) ) {
-                                                       // Restore matcherIn since elem is not yet a final match
-                                                       temp.push( (matcherIn[i] = elem) );
-                                               }
-                                       }
-                                       postFinder( null, (matcherOut = []), temp, xml );
-                               }
-
-                               // Move matched elements from seed to results to keep them synchronized
-                               i = matcherOut.length;
-                               while ( i-- ) {
-                                       if ( (elem = matcherOut[i]) &&
-                                               (temp = postFinder ? indexOf.call( seed, elem ) : preMap[i]) > -1 ) {
-
-                                               seed[temp] = !(results[temp] = elem);
-                                       }
-                               }
-                       }
-
-               // Add elements to results, through postFinder if defined
-               } else {
-                       matcherOut = condense(
-                               matcherOut === results ?
-                                       matcherOut.splice( preexisting, matcherOut.length ) :
-                                       matcherOut
-                       );
-                       if ( postFinder ) {
-                               postFinder( null, results, matcherOut, xml );
-                       } else {
-                               push.apply( results, matcherOut );
-                       }
-               }
-       });
-}
-
-function matcherFromTokens( tokens ) {
-       var checkContext, matcher, j,
-               len = tokens.length,
-               leadingRelative = Expr.relative[ tokens[0].type ],
-               implicitRelative = leadingRelative || Expr.relative[" "],
-               i = leadingRelative ? 1 : 0,
-
-               // The foundational matcher ensures that elements are reachable from top-level context(s)
-               matchContext = addCombinator( function( elem ) {
-                       return elem === checkContext;
-               }, implicitRelative, true ),
-               matchAnyContext = addCombinator( function( elem ) {
-                       return indexOf.call( checkContext, elem ) > -1;
-               }, implicitRelative, true ),
-               matchers = [ function( elem, context, xml ) {
-                       return ( !leadingRelative && ( xml || context !== outermostContext ) ) || (
-                               (checkContext = context).nodeType ?
-                                       matchContext( elem, context, xml ) :
-                                       matchAnyContext( elem, context, xml ) );
-               } ];
-
-       for ( ; i < len; i++ ) {
-               if ( (matcher = Expr.relative[ tokens[i].type ]) ) {
-                       matchers = [ addCombinator(elementMatcher( matchers ), matcher) ];
-               } else {
-                       matcher = Expr.filter[ tokens[i].type ].apply( null, tokens[i].matches );
-
-                       // Return special upon seeing a positional matcher
-                       if ( matcher[ expando ] ) {
-                               // Find the next relative operator (if any) for proper handling
-                               j = ++i;
-                               for ( ; j < len; j++ ) {
-                                       if ( Expr.relative[ tokens[j].type ] ) {
-                                               break;
-                                       }
-                               }
-                               return setMatcher(
-                                       i > 1 && elementMatcher( matchers ),
-                                       i > 1 && toSelector( tokens.slice( 0, i - 1 ) ).replace( rtrim, "$1" ),
-                                       matcher,
-                                       i < j && matcherFromTokens( tokens.slice( i, j ) ),
-                                       j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
-                                       j < len && toSelector( tokens )
-                               );
-                       }
-                       matchers.push( matcher );
-               }
-       }
-
-       return elementMatcher( matchers );
-}
-
-function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
-       // A counter to specify which element is currently being matched
-       var matcherCachedRuns = 0,
-               bySet = setMatchers.length > 0,
-               byElement = elementMatchers.length > 0,
-               superMatcher = function( seed, context, xml, results, expandContext ) {
-                       var elem, j, matcher,
-                               setMatched = [],
-                               matchedCount = 0,
-                               i = "0",
-                               unmatched = seed && [],
-                               outermost = expandContext != null,
-                               contextBackup = outermostContext,
-                               // We must always have either seed elements or context
-                               elems = seed || byElement && Expr.find["TAG"]( "*", expandContext && context.parentNode || context ),
-                               // Use integer dirruns iff this is the outermost matcher
-                               dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.random() || 0.1);
-
-                       if ( outermost ) {
-                               outermostContext = context !== document && context;
-                               cachedruns = matcherCachedRuns;
-                       }
-
-                       // Add elements passing elementMatchers directly to results
-                       // Keep `i` a string if there are no elements so `matchedCount` will be "00" below
-                       for ( ; (elem = elems[i]) != null; i++ ) {
-                               if ( byElement && elem ) {
-                                       j = 0;
-                                       while ( (matcher = elementMatchers[j++]) ) {
-                                               if ( matcher( elem, context, xml ) ) {
-                                                       results.push( elem );
-                                                       break;
-                                               }
-                                       }
-                                       if ( outermost ) {
-                                               dirruns = dirrunsUnique;
-                                               cachedruns = ++matcherCachedRuns;
-                                       }
-                               }
-
-                               // Track unmatched elements for set filters
-                               if ( bySet ) {
-                                       // They will have gone through all possible matchers
-                                       if ( (elem = !matcher && elem) ) {
-                                               matchedCount--;
-                                       }
-
-                                       // Lengthen the array for every element, matched or not
-                                       if ( seed ) {
-                                               unmatched.push( elem );
-                                       }
-                               }
-                       }
-
-                       // Apply set filters to unmatched elements
-                       matchedCount += i;
-                       if ( bySet && i !== matchedCount ) {
-                               j = 0;
-                               while ( (matcher = setMatchers[j++]) ) {
-                                       matcher( unmatched, setMatched, context, xml );
-                               }
-
-                               if ( seed ) {
-                                       // Reintegrate element matches to eliminate the need for sorting
-                                       if ( matchedCount > 0 ) {
-                                               while ( i-- ) {
-                                                       if ( !(unmatched[i] || setMatched[i]) ) {
-                                                               setMatched[i] = pop.call( results );
-                                                       }
-                                               }
-                                       }
-
-                                       // Discard index placeholder values to get only actual matches
-                                       setMatched = condense( setMatched );
-                               }
-
-                               // Add matches to results
-                               push.apply( results, setMatched );
-
-                               // Seedless set matches succeeding multiple successful matchers stipulate sorting
-                               if ( outermost && !seed && setMatched.length > 0 &&
-                                       ( matchedCount + setMatchers.length ) > 1 ) {
-
-                                       Sizzle.uniqueSort( results );
-                               }
-                       }
-
-                       // Override manipulation of globals by nested matchers
-                       if ( outermost ) {
-                               dirruns = dirrunsUnique;
-                               outermostContext = contextBackup;
-                       }
-
-                       return unmatched;
-               };
-
-       return bySet ?
-               markFunction( superMatcher ) :
-               superMatcher;
-}
-
-compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
-       var i,
-               setMatchers = [],
-               elementMatchers = [],
-               cached = compilerCache[ selector + " " ];
-
-       if ( !cached ) {
-               // Generate a function of recursive functions that can be used to check each element
-               if ( !group ) {
-                       group = tokenize( selector );
-               }
-               i = group.length;
-               while ( i-- ) {
-                       cached = matcherFromTokens( group[i] );
-                       if ( cached[ expando ] ) {
-                               setMatchers.push( cached );
-                       } else {
-                               elementMatchers.push( cached );
-                       }
-               }
-
-               // Cache the compiled function
-               cached = compilerCache( selector, matcherFromGroupMatchers( elementMatchers, setMatchers ) );
-       }
-       return cached;
-};
-
-function multipleContexts( selector, contexts, results ) {
-       var i = 0,
-               len = contexts.length;
-       for ( ; i < len; i++ ) {
-               Sizzle( selector, contexts[i], results );
-       }
-       return results;
-}
-
-function select( selector, context, results, seed ) {
-       var i, tokens, token, type, find,
-               match = tokenize( selector );
-
-       if ( !seed ) {
-               // Try to minimize operations if there is only one group
-               if ( match.length === 1 ) {
-
-                       // Take a shortcut and set the context if the root selector is an ID
-                       tokens = match[0] = match[0].slice( 0 );
-                       if ( tokens.length > 2 && (token = tokens[0]).type === "ID" &&
-                                       context.nodeType === 9 && !documentIsXML &&
-                                       Expr.relative[ tokens[1].type ] ) {
-
-                               context = Expr.find["ID"]( token.matches[0].replace( runescape, funescape ), context )[0];
-                               if ( !context ) {
-                                       return results;
-                               }
-
-                               selector = selector.slice( tokens.shift().value.length );
-                       }
-
-                       // Fetch a seed set for right-to-left matching
-                       i = matchExpr["needsContext"].test( selector ) ? 0 : tokens.length;
-                       while ( i-- ) {
-                               token = tokens[i];
-
-                               // Abort if we hit a combinator
-                               if ( Expr.relative[ (type = token.type) ] ) {
-                                       break;
-                               }
-                               if ( (find = Expr.find[ type ]) ) {
-                                       // Search, expanding context for leading sibling combinators
-                                       if ( (seed = find(
-                                               token.matches[0].replace( runescape, funescape ),
-                                               rsibling.test( tokens[0].type ) && context.parentNode || context
-                                       )) ) {
-
-                                               // If seed is empty or no tokens remain, we can return early
-                                               tokens.splice( i, 1 );
-                                               selector = seed.length && toSelector( tokens );
-                                               if ( !selector ) {
-                                                       push.apply( results, slice.call( seed, 0 ) );
-                                                       return results;
-                                               }
-
-                                               break;
-                                       }
-                               }
-                       }
-               }
-       }
-
-       // Compile and execute a filtering function
-       // Provide `match` to avoid retokenization if we modified the selector above
-       compile( selector, match )(
-               seed,
-               context,
-               documentIsXML,
-               results,
-               rsibling.test( selector )
-       );
-       return results;
-}
-
-// Deprecated
-Expr.pseudos["nth"] = Expr.pseudos["eq"];
-
-// Easy API for creating new setFilters
-function setFilters() {}
-Expr.filters = setFilters.prototype = Expr.pseudos;
-Expr.setFilters = new setFilters();
-
-// Initialize with the default document
-setDocument();
-
-// Override sizzle attribute retrieval
-Sizzle.attr = jQuery.attr;
-jQuery.find = Sizzle;
-jQuery.expr = Sizzle.selectors;
-jQuery.expr[":"] = jQuery.expr.pseudos;
-jQuery.unique = Sizzle.uniqueSort;
-jQuery.text = Sizzle.getText;
-jQuery.isXMLDoc = Sizzle.isXML;
-jQuery.contains = Sizzle.contains;
-
-
-})( window );
-var runtil = /Until$/,
</del><ins>+var isSimple = /^.[^:#\[\.,]*$/,
</ins><span class="cx">   rparentsprev = /^(?:parents|prev(?:Until|All))/,
</span><del>-       isSimple = /^.[^:#\[\.,]*$/,
</del><span class="cx">   rneedsContext = jQuery.expr.match.needsContext,
</span><span class="cx">  // methods guaranteed to produce a unique set when starting from a unique set
</span><span class="cx">  guaranteedUnique = {
</span><span class="lines">@@ -5557,11 +5723,12 @@
</span><span class="cx"> 
</span><span class="cx"> jQuery.fn.extend({
</span><span class="cx">  find: function( selector ) {
</span><del>-               var i, ret, self,
-                       len = this.length;
</del><ins>+                var i,
+                       ret = [],
+                       self = this,
+                       len = self.length;
</ins><span class="cx"> 
</span><span class="cx">          if ( typeof selector !== "string" ) {
</span><del>-                       self = this;
</del><span class="cx">                   return this.pushStack( jQuery( selector ).filter(function() {
</span><span class="cx">                          for ( i = 0; i < len; i++ ) {
</span><span class="cx">                                  if ( jQuery.contains( self[ i ], this ) ) {
</span><span class="lines">@@ -5571,14 +5738,13 @@
</span><span class="cx">                  }) );
</span><span class="cx">          }
</span><span class="cx"> 
</span><del>-               ret = [];
</del><span class="cx">           for ( i = 0; i < len; i++ ) {
</span><del>-                       jQuery.find( selector, this[ i ], ret );
</del><ins>+                        jQuery.find( selector, self[ i ], ret );
</ins><span class="cx">           }
</span><span class="cx"> 
</span><span class="cx">          // Needed because $( selector, context ) becomes $( context ).find( selector )
</span><span class="cx">          ret = this.pushStack( len > 1 ? jQuery.unique( ret ) : ret );
</span><del>-               ret.selector = ( this.selector ? this.selector + " " : "" ) + selector;
</del><ins>+                ret.selector = this.selector ? this.selector + " " + selector : selector;
</ins><span class="cx">           return ret;
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="lines">@@ -5597,22 +5763,24 @@
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="cx">  not: function( selector ) {
</span><del>-               return this.pushStack( winnow(this, selector, false) );
</del><ins>+                return this.pushStack( winnow(this, selector || [], true) );
</ins><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">  filter: function( selector ) {
</span><del>-               return this.pushStack( winnow(this, selector, true) );
</del><ins>+                return this.pushStack( winnow(this, selector || [], false) );
</ins><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">  is: function( selector ) {
</span><del>-               return !!selector && (
-                       typeof selector === "string" ?
-                               // If this is a positional/relative selector, check membership in the returned set
-                               // so $("p:first").is("p:last") won't return true for a doc with two "p".
-                               rneedsContext.test( selector ) ?
-                                       jQuery( selector, this.context ).index( this[0] ) >= 0 :
-                                       jQuery.filter( selector, this ).length > 0 :
-                               this.filter( selector ).length > 0 );
</del><ins>+                return !!winnow(
+                       this,
+
+                       // If this is a positional/relative selector, check membership in the returned set
+                       // so $("p:first").is("p:last") won't return true for a doc with two "p".
+                       typeof selector === "string" && rneedsContext.test( selector ) ?
+                               jQuery( selector ) :
+                               selector || [],
+                       false
+               ).length;
</ins><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">  closest: function( selectors, context ) {
</span><span class="lines">@@ -5625,14 +5793,18 @@
</span><span class="cx">                          0;
</span><span class="cx"> 
</span><span class="cx">          for ( ; i < l; i++ ) {
</span><del>-                       cur = this[i];
</del><ins>+                        for ( cur = this[i]; cur && cur !== context; cur = cur.parentNode ) {
+                               // Always skip document fragments
+                               if ( cur.nodeType < 11 && (pos ?
+                                       pos.index(cur) > -1 :
</ins><span class="cx"> 
</span><del>-                       while ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) {
-                               if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
-                                       ret.push( cur );
</del><ins>+                                        // Don't pass non-elements to Sizzle
+                                       cur.nodeType === 1 &&
+                                               jQuery.find.matchesSelector(cur, selectors)) ) {
+
+                                       cur = ret.push( cur );
</ins><span class="cx">                                   break;
</span><span class="cx">                          }
</span><del>-                               cur = cur.parentNode;
</del><span class="cx">                   }
</span><span class="cx">          }
</span><span class="cx"> 
</span><span class="lines">@@ -5675,8 +5847,6 @@
</span><span class="cx">  }
</span><span class="cx"> });
</span><span class="cx"> 
</span><del>-jQuery.fn.andSelf = jQuery.fn.addBack;
-
</del><span class="cx"> function sibling( cur, dir ) {
</span><span class="cx">  do {
</span><span class="cx">          cur = cur[ dir ];
</span><span class="lines">@@ -5729,7 +5899,7 @@
</span><span class="cx">  jQuery.fn[ name ] = function( until, selector ) {
</span><span class="cx">          var ret = jQuery.map( this, fn, until );
</span><span class="cx"> 
</span><del>-               if ( !runtil.test( name ) ) {
</del><ins>+                if ( name.slice( -5 ) !== "Until" ) {
</ins><span class="cx">                   selector = until;
</span><span class="cx">          }
</span><span class="cx"> 
</span><span class="lines">@@ -5737,10 +5907,16 @@
</span><span class="cx">                  ret = jQuery.filter( selector, ret );
</span><span class="cx">          }
</span><span class="cx"> 
</span><del>-               ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
</del><ins>+                if ( this.length > 1 ) {
+                       // Remove duplicates
+                       if ( !guaranteedUnique[ name ] ) {
+                               ret = jQuery.unique( ret );
+                       }
</ins><span class="cx"> 
</span><del>-               if ( this.length > 1 && rparentsprev.test( name ) ) {
-                       ret = ret.reverse();
</del><ins>+                        // Reverse order for parents* and prev-derivatives
+                       if ( rparentsprev.test( name ) ) {
+                               ret = ret.reverse();
+                       }
</ins><span class="cx">           }
</span><span class="cx"> 
</span><span class="cx">          return this.pushStack( ret );
</span><span class="lines">@@ -5749,13 +5925,17 @@
</span><span class="cx"> 
</span><span class="cx"> jQuery.extend({
</span><span class="cx">  filter: function( expr, elems, not ) {
</span><ins>+               var elem = elems[ 0 ];
+
</ins><span class="cx">           if ( not ) {
</span><span class="cx">                  expr = ":not(" + expr + ")";
</span><span class="cx">          }
</span><span class="cx"> 
</span><del>-               return elems.length === 1 ?
-                       jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
-                       jQuery.find.matches(expr, elems);
</del><ins>+                return elems.length === 1 && elem.nodeType === 1 ?
+                       jQuery.find.matchesSelector( elem, expr ) ? [ elem ] : [] :
+                       jQuery.find.matches( expr, jQuery.grep( elems, function( elem ) {
+                               return elem.nodeType === 1;
+                       }));
</ins><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">  dir: function( elem, dir, until ) {
</span><span class="lines">@@ -5785,37 +5965,32 @@
</span><span class="cx"> });
</span><span class="cx"> 
</span><span class="cx"> // Implement the identical functionality for filter and not
</span><del>-function winnow( elements, qualifier, keep ) {
-
-       // Can't pass null or undefined to indexOf in Firefox 4
-       // Set to 0 to skip string check
-       qualifier = qualifier || 0;
-
</del><ins>+function winnow( elements, qualifier, not ) {
</ins><span class="cx">   if ( jQuery.isFunction( qualifier ) ) {
</span><del>-               return jQuery.grep(elements, function( elem, i ) {
-                       var retVal = !!qualifier.call( elem, i, elem );
-                       return retVal === keep;
</del><ins>+                return jQuery.grep( elements, function( elem, i ) {
+                       /* jshint -W018 */
+                       return !!qualifier.call( elem, i, elem ) !== not;
</ins><span class="cx">           });
</span><span class="cx"> 
</span><del>-       } else if ( qualifier.nodeType ) {
-               return jQuery.grep(elements, function( elem ) {
-                       return ( elem === qualifier ) === keep;
-               });
</del><ins>+        }
</ins><span class="cx"> 
</span><del>-       } else if ( typeof qualifier === "string" ) {
-               var filtered = jQuery.grep(elements, function( elem ) {
-                       return elem.nodeType === 1;
</del><ins>+        if ( qualifier.nodeType ) {
+               return jQuery.grep( elements, function( elem ) {
+                       return ( elem === qualifier ) !== not;
</ins><span class="cx">           });
</span><span class="cx"> 
</span><ins>+       }
+
+       if ( typeof qualifier === "string" ) {
</ins><span class="cx">           if ( isSimple.test( qualifier ) ) {
</span><del>-                       return jQuery.filter(qualifier, filtered, !keep);
-               } else {
-                       qualifier = jQuery.filter( qualifier, filtered );
</del><ins>+                        return jQuery.filter( qualifier, elements, not );
</ins><span class="cx">           }
</span><ins>+
+               qualifier = jQuery.filter( qualifier, elements );
</ins><span class="cx">   }
</span><span class="cx"> 
</span><del>-       return jQuery.grep(elements, function( elem ) {
-               return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
</del><ins>+        return jQuery.grep( elements, function( elem ) {
+               return ( jQuery.inArray( elem, qualifier ) >= 0 ) !== not;
</ins><span class="cx">   });
</span><span class="cx"> }
</span><span class="cx"> function createSafeFragment( document ) {
</span><span class="lines">@@ -5880,89 +6055,26 @@
</span><span class="cx">          }, null, value, arguments.length );
</span><span class="cx">  },
</span><span class="cx"> 
</span><del>-       wrapAll: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapAll( html.call(this, i) );
-                       });
-               }
-
-               if ( this[0] ) {
-                       // The elements to wrap the target around
-                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
-
-                       if ( this[0].parentNode ) {
-                               wrap.insertBefore( this[0] );
-                       }
-
-                       wrap.map(function() {
-                               var elem = this;
-
-                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
-                                       elem = elem.firstChild;
-                               }
-
-                               return elem;
-                       }).append( this );
-               }
-
-               return this;
-       },
-
-       wrapInner: function( html ) {
-               if ( jQuery.isFunction( html ) ) {
-                       return this.each(function(i) {
-                               jQuery(this).wrapInner( html.call(this, i) );
-                       });
-               }
-
-               return this.each(function() {
-                       var self = jQuery( this ),
-                               contents = self.contents();
-
-                       if ( contents.length ) {
-                               contents.wrapAll( html );
-
-                       } else {
-                               self.append( html );
-                       }
-               });
-       },
-
-       wrap: function( html ) {
-               var isFunction = jQuery.isFunction( html );
-
-               return this.each(function(i) {
-                       jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
-               });
-       },
-
-       unwrap: function() {
-               return this.parent().each(function() {
-                       if ( !jQuery.nodeName( this, "body" ) ) {
-                               jQuery( this ).replaceWith( this.childNodes );
-                       }
-               }).end();
-       },
-
</del><span class="cx">   append: function() {
</span><del>-               return this.domManip(arguments, true, function( elem ) {
</del><ins>+                return this.domManip( arguments, function( elem ) {
</ins><span class="cx">                   if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
</span><del>-                               this.appendChild( elem );
</del><ins>+                                var target = manipulationTarget( this, elem );
+                               target.appendChild( elem );
</ins><span class="cx">                   }
</span><span class="cx">          });
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="cx">  prepend: function() {
</span><del>-               return this.domManip(arguments, true, function( elem ) {
</del><ins>+                return this.domManip( arguments, function( elem ) {
</ins><span class="cx">                   if ( this.nodeType === 1 || this.nodeType === 11 || this.nodeType === 9 ) {
</span><del>-                               this.insertBefore( elem, this.firstChild );
</del><ins>+                                var target = manipulationTarget( this, elem );
+                               target.insertBefore( elem, target.firstChild );
</ins><span class="cx">                   }
</span><span class="cx">          });
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="cx">  before: function() {
</span><del>-               return this.domManip( arguments, false, function( elem ) {
</del><ins>+                return this.domManip( arguments, function( elem ) {
</ins><span class="cx">                   if ( this.parentNode ) {
</span><span class="cx">                          this.parentNode.insertBefore( elem, this );
</span><span class="cx">                  }
</span><span class="lines">@@ -5970,7 +6082,7 @@
</span><span class="cx">  },
</span><span class="cx"> 
</span><span class="cx">  after: function() {
</span><del>-               return this.domManip( arguments, false, function( elem ) {
</del><ins>+                return this.domManip( arguments, function( elem ) {
</ins><span class="cx">                   if ( this.parentNode ) {
</span><span class="cx">                          this.parentNode.insertBefore( elem, this.nextSibling );
</span><span class="cx">                  }
</span><span class="lines">@@ -5980,20 +6092,20 @@
</span><span class="cx">  // keepData is for internal use only--do not document
</span><span class="cx">  remove: function( selector, keepData ) {
</span><span class="cx">          var elem,
</span><ins>+                       elems = selector ? jQuery.filter( selector, this ) : this,
</ins><span class="cx">                   i = 0;
</span><span class="cx"> 
</span><del>-               for ( ; (elem = this[i]) != null; i++ ) {
-                       if ( !selector || jQuery.filter( selector, [ elem ] ).length > 0 ) {
-                               if ( !keepData && elem.nodeType === 1 ) {
-                                       jQuery.cleanData( getAll( elem ) );
-                               }
</del><ins>+                for ( ; (elem = elems[i]) != null; i++ ) {
</ins><span class="cx"> 
</span><del>-                               if ( elem.parentNode ) {
-                                       if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
-                                               setGlobalEval( getAll( elem, "script" ) );
-                                       }
-                                       elem.parentNode.removeChild( elem );
</del><ins>+                        if ( !keepData && elem.nodeType === 1 ) {
+                               jQuery.cleanData( getAll( elem ) );
+                       }
+
+                       if ( elem.parentNode ) {
+                               if ( keepData && jQuery.contains( elem.ownerDocument, elem ) ) {
+                                       setGlobalEval( getAll( elem, "script" ) );
</ins><span class="cx">                           }
</span><ins>+                               elem.parentNode.removeChild( elem );
</ins><span class="cx">                   }
</span><span class="cx">          }
</span><span class="cx"> 
</span><span class="lines">@@ -6076,31 +6188,39 @@
</span><span class="cx">          }, null, value, arguments.length );
</span><span class="cx">  },
</span><span class="cx"> 
</span><del>-       replaceWith: function( value ) {
-               var isFunc = jQuery.isFunction( value );
</del><ins>+        replaceWith: function() {
+               var
+                       // Snapshot the DOM in case .domManip sweeps something relevant into its fragment
+                       args = jQuery.map( this, function( elem ) {
+                               return [ elem.nextSibling, elem.parentNode ];
+                       }),
+                       i = 0;
</ins><span class="cx"> 
</span><del>-               // Make sure that the elements are removed from the DOM before they are inserted
-               // this can help fix replacing a parent with child elements
-               if ( !isFunc && typeof value !== "string" ) {
-                       value = jQuery( value ).not( this ).detach();
-               }
</del><ins>+                // Make the changes, replacing each context element with the new content
+               this.domManip( arguments, function( elem ) {
+                       var next = args[ i++ ],
+                               parent = args[ i++ ];
</ins><span class="cx"> 
</span><del>-               return this.domManip( [ value ], true, function( elem ) {
-                       var next = this.nextSibling,
-                               parent = this.parentNode;
-
</del><span class="cx">                   if ( parent ) {
</span><ins>+                               // Don't use the snapshot next if it has moved (#13810)
+                               if ( next && next.parentNode !== parent ) {
+                                       next = this.nextSibling;
+                               }
</ins><span class="cx">                           jQuery( this ).remove();
</span><span class="cx">                          parent.insertBefore( elem, next );
</span><span class="cx">                  }
</span><del>-               });
</del><ins>+                // Allow new content to include elements from the context set
+               }, true );
+
+               // Force removal if there was no new content (e.g., from empty arguments)
+               return i ? this : this.remove();
</ins><span class="cx">   },
</span><span class="cx"> 
</span><span class="cx">  detach: function( selector ) {
</span><span class="cx">          return this.remove( selector, true );
</span><span class="cx">  },
</span><span class="cx"> 
</span><del>-       domManip: function( args, table, callback ) {
</del><ins>+        domManip: function( args, callback, allowIntersection ) {
</ins><span class="cx"> 
</span><span class="cx">          // Flatten any nested arrays
</span><span class="cx">          args = core_concat.apply( [], args );
</span><span class="lines">@@ -6119,14 +6239,14 @@
</span><span class="cx">                  return this.each(function( index ) {
</span><span class="cx">                          var self = set.eq( index );
</span><span class="cx">                          if ( isFunction ) {
</span><del>-                                       args[0] = value.call( this, index, table ? self.html() : undefined );
</del><ins>+                                        args[0] = value.call( this, index, self.html() );
</ins><span class="cx">                           }
</span><del>-                               self.domManip( args, table, callback );
</del><ins>+                                self.domManip( args, callback, allowIntersection );
</ins><span class="cx">                   });
</span><span class="cx">          }
</span><span class="cx"> 
</span><span class="cx">          if ( l ) {
</span><del>-                       fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, this );
</del><ins>+                        fragment = jQuery.buildFragment( args, this[ 0 ].ownerDocument, false, !allowIntersection && this );
</ins><span class="cx">                   first = fragment.firstChild;
</span><span class="cx"> 
</span><span class="cx">                  if ( fragment.childNodes.length === 1 ) {
</span><span class="lines">@@ -6134,7 +6254,6 @@
</span><span class="cx">                  }
</span><span class="cx"> 
</span><span class="cx">                  if ( first ) {
</span><del>-                               table = table && jQuery.nodeName( first, "tr" );
</del><span class="cx">                           scripts = jQuery.map( getAll( fragment, "script" ), disableScript );
</span><span class="cx">                          hasScripts = scripts.length;
</span><span class="cx"> 
</span><span class="lines">@@ -6152,13 +6271,7 @@
</span><span class="cx">                                          }
</span><span class="cx">                                  }
</span><span class="cx"> 
</span><del>-                                       callback.call(
-                                               table && jQuery.nodeName( this[i], "table" ) ?
-                                                       findOrAppend( this[i], "tbody" ) :
-                                                       this[i],
-                                               node,
-                                               i
-                                       );
</del><ins>+                                        callback.call( this[i], node, i );
</ins><span class="cx">                           }
</span><span class="cx"> 
</span><span class="cx">                          if ( hasScripts ) {
</span><span class="lines">@@ -6175,14 +6288,7 @@
</span><span class="cx"> 
</span><span class="cx">                                                  if ( node.src ) {
</span><span class="cx">                                                          // Hope ajax is available...
</span><del>-                                                               jQuery.ajax({
-                                                                       url: node.src,
-                                                                       type: "GET",
-                                                                       dataType: "script",
-                                                                       async: false,
-                                                                       global: false,
-                                                                       "throws": true
-                                                               });
</del><ins>+                                                                jQuery._evalUrl( node.src );
</ins><span class="cx">                                                   } else {
</span><span class="cx">                                                          jQuery.globalEval( ( node.text || node.textContent || node.innerHTML || "" ).replace( rcleanScript, "" ) );
</span><span class="cx">                                                  }
</span><span class="lines">@@ -6199,14 +6305,20 @@
</span><span class="cx">  }
</span><span class="cx"> });
</span><span class="cx"> 
</span><del>-function findOrAppend( elem, tag ) {
-       return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) );
</del><ins>+// Support: IE<8
+// Manipulating tables requires a tbody
+function manipulationTarget( elem, content ) {
+       return jQuery.nodeName( elem, "table" ) &&
+               jQuery.nodeName( content.nodeType === 1 ? content : content.firstChild, "tr" ) ?
+
+               elem.getElementsByTagName("tbody")[0] ||
+                       elem.appendChild( elem.ownerDocument.createElement("tbody") ) :
+               elem;
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> // Replace/restore the type attribute of script elements for safe DOM manipulation
</span><span class="cx"> function disableScript( elem ) {
</span><del>-       var attr = elem.getAttributeNode("type");
-       elem.type = ( attr && attr.specified ) + "/" + elem.type;
</del><ins>+        elem.type = (jQuery.find.attr( elem, "type" ) !== null) + "/" + elem.type;
</ins><span class="cx">   return elem;
</span><span class="cx"> }
</span><span class="cx"> function restoreScript( elem ) {
</span><span class="lines">@@ -6612,8 +6724,85 @@
</span><span class="cx">                          }
</span><span class="cx">                  }
</span><span class="cx">          }
</span><ins>+       },
+
+       _evalUrl: function( url ) {
+               return jQuery.ajax({
+                       url: url,
+                       type: "GET",
+                       dataType: "script",
+                       async: false,
+                       global: false,
+                       "throws": true
+               });
</ins><span class="cx">   }
</span><span class="cx"> });
</span><ins>+jQuery.fn.extend({
+       wrapAll: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapAll( html.call(this, i) );
+                       });
+               }
+
+               if ( this[0] ) {
+                       // The elements to wrap the target around
+                       var wrap = jQuery( html, this[0].ownerDocument ).eq(0).clone(true);
+
+                       if ( this[0].parentNode ) {
+                               wrap.insertBefore( this[0] );
+                       }
+
+                       wrap.map(function() {
+                               var elem = this;
+
+                               while ( elem.firstChild && elem.firstChild.nodeType === 1 ) {
+                                       elem = elem.firstChild;
+                               }
+
+                               return elem;
+                       }).append( this );
+               }
+
+               return this;
+       },
+
+       wrapInner: function( html ) {
+               if ( jQuery.isFunction( html ) ) {
+                       return this.each(function(i) {
+                               jQuery(this).wrapInner( html.call(this, i) );
+                       });
+               }
+
+               return this.each(function() {
+                       var self = jQuery( this ),
+                               contents = self.contents();
+
+                       if ( contents.length ) {
+                               contents.wrapAll( html );
+
+                       } else {
+                               self.append( html );
+                       }
+               });
+       },
+
+       wrap: function( html ) {
+               var isFunction = jQuery.isFunction( html );
+
+               return this.each(function(i) {
+                       jQuery( this ).wrapAll( isFunction ? html.call(this, i) : html );
+               });
+       },
+
+       unwrap: function() {
+               return this.parent().each(function() {
+                       if ( !jQuery.nodeName( this, "body" ) ) {
+                               jQuery( this ).replaceWith( this.childNodes );
+                       }
+               }).end();
+       }
+});
</ins><span class="cx"> var iframe, getStyles, curCSS,
</span><span class="cx">  ralpha = /alpha\([^)]*\)/i,
</span><span class="cx">  ropacity = /opacity\s*=\s*([^)]*)/,
</span><span class="lines">@@ -6777,7 +6966,7 @@
</span><span class="cx">          }
</span><span class="cx">  },
</span><span class="cx"> 
</span><del>-       // Exclude the following css properties to add px
</del><ins>+        // Don't automatically add "px" to these possibly-unitless properties
</ins><span class="cx">   cssNumber: {
</span><span class="cx">          "columnCount": true,
</span><span class="cx">          "fillOpacity": true,
</span><span class="lines">@@ -6895,27 +7084,6 @@
</span><span class="cx">                  return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
</span><span class="cx">          }
</span><span class="cx">          return val;
</span><del>-       },
-
-       // A method for quickly swapping in/out CSS properties to get correct calculations
-       swap: function( elem, options, callback, args ) {
-               var ret, name,
-                       old = {};
-
-               // Remember the old values, and insert the new ones
-               for ( name in options ) {
-                       old[ name ] = elem.style[ name ];
-                       elem.style[ name ] = options[ name ];
-               }
-
-               ret = callback.apply( elem, args || [] );
-
-               // Revert the old values
-               for ( name in options ) {
-                       elem.style[ name ] = old[ name ];
-               }
-
-               return ret;
</del><span class="cx">   }
</span><span class="cx"> });
</span><span class="cx"> 
</span><span class="lines">@@ -7404,9 +7572,26 @@
</span><span class="cx">  };
</span><span class="cx"> });
</span><span class="cx"> 
</span><del>-jQuery.fn.hover = function( fnOver, fnOut ) {
-       return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
-};
</del><ins>+jQuery.fn.extend({
+       hover: function( fnOver, fnOut ) {
+               return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+       },
+
+       bind: function( types, data, fn ) {
+               return this.on( types, null, data, fn );
+       },
+       unbind: function( types, fn ) {
+               return this.off( types, null, fn );
+       },
+
+       delegate: function( selector, types, data, fn ) {
+               return this.on( types, selector, data, fn );
+       },
+       undelegate: function( selector, types, fn ) {
+               // ( namespace ) or ( selector, types [, fn] )
+               return arguments.length === 1 ? this.off( selector, "**" ) : this.off( types, selector || "**", fn );
+       }
+});
</ins><span class="cx"> var
</span><span class="cx">  // Document location
</span><span class="cx">  ajaxLocParts,
</span><span class="lines">@@ -7602,25 +7787,6 @@
</span><span class="cx">  };
</span><span class="cx"> });
</span><span class="cx"> 
</span><del>-jQuery.each( [ "get", "post" ], function( i, method ) {
-       jQuery[ method ] = function( url, data, callback, type ) {
-               // shift arguments if data argument was omitted
-               if ( jQuery.isFunction( data ) ) {
-                       type = type || callback;
-                       callback = data;
-                       data = undefined;
-               }
-
-               return jQuery.ajax({
-                       url: url,
-                       type: method,
-                       dataType: type,
-                       data: data,
-                       success: callback
-               });
-       };
-});
-
</del><span class="cx"> jQuery.extend({
</span><span class="cx"> 
</span><span class="cx">  // Counter for holding the number of active queries
</span><span class="lines">@@ -7666,7 +7832,8 @@
</span><span class="cx"> 
</span><span class="cx">          responseFields: {
</span><span class="cx">                  xml: "responseXML",
</span><del>-                       text: "responseText"
</del><ins>+                        text: "responseText",
+                       json: "responseJSON"
</ins><span class="cx">           },
</span><span class="cx"> 
</span><span class="cx">          // Data converters
</span><span class="lines">@@ -7674,7 +7841,7 @@
</span><span class="cx">          converters: {
</span><span class="cx"> 
</span><span class="cx">                  // Convert anything to text
</span><del>-                       "* text": window.String,
</del><ins>+                        "* text": String,
</ins><span class="cx"> 
</span><span class="cx">                  // Text to html (true = no transformation)
</span><span class="cx">                  "text html": true,
</span><span class="lines">@@ -7853,8 +8020,8 @@
</span><span class="cx">                  parts = rurl.exec( s.url.toLowerCase() );
</span><span class="cx">                  s.crossDomain = !!( parts &&
</span><span class="cx">                          ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
</span><del>-                                       ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
-                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
</del><ins>+                                        ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? "80" : "443" ) ) !==
+                                               ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? "80" : "443" ) ) )
</ins><span class="cx">                   );
</span><span class="cx">          }
</span><span class="cx"> 
</span><span class="lines">@@ -8015,13 +8182,19 @@
</span><span class="cx">                  // Set readyState
</span><span class="cx">                  jqXHR.readyState = status > 0 ? 4 : 0;
</span><span class="cx"> 
</span><ins>+                       // Determine if successful
+                       isSuccess = status >= 200 && status < 300 || status === 304;
+
</ins><span class="cx">                   // Get response data
</span><span class="cx">                  if ( responses ) {
</span><span class="cx">                          response = ajaxHandleResponses( s, jqXHR, responses );
</span><span class="cx">                  }
</span><span class="cx"> 
</span><ins>+                       // Convert no matter what (that way responseXXX fields are always set)
+                       response = ajaxConvert( s, response, jqXHR, isSuccess );
+
</ins><span class="cx">                   // If successful, handle type chaining
</span><del>-                       if ( status >= 200 && status < 300 || status === 304 ) {
</del><ins>+                        if ( isSuccess ) {
</ins><span class="cx"> 
</span><span class="cx">                          // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
</span><span class="cx">                          if ( s.ifModified ) {
</span><span class="lines">@@ -8036,21 +8209,18 @@
</span><span class="cx">                          }
</span><span class="cx"> 
</span><span class="cx">                          // if no content
</span><del>-                               if ( status === 204 ) {
-                                       isSuccess = true;
</del><ins>+                                if ( status === 204 || s.type === "HEAD" ) {
</ins><span class="cx">                                   statusText = "nocontent";
</span><span class="cx"> 
</span><span class="cx">                          // if not modified
</span><span class="cx">                          } else if ( status === 304 ) {
</span><del>-                                       isSuccess = true;
</del><span class="cx">                                   statusText = "notmodified";
</span><span class="cx"> 
</span><span class="cx">                          // If we have data, let's convert it
</span><span class="cx">                          } else {
</span><del>-                                       isSuccess = ajaxConvert( s, response );
-                                       statusText = isSuccess.state;
-                                       success = isSuccess.data;
-                                       error = isSuccess.error;
</del><ins>+                                        statusText = response.state;
+                                       success = response.data;
+                                       error = response.error;
</ins><span class="cx">                                   isSuccess = !error;
</span><span class="cx">                          }
</span><span class="cx">                  } else {
</span><span class="lines">@@ -8100,33 +8270,43 @@
</span><span class="cx">          return jqXHR;
</span><span class="cx">  },
</span><span class="cx"> 
</span><ins>+       getJSON: function( url, data, callback ) {
+               return jQuery.get( url, data, callback, "json" );
+       },
+
</ins><span class="cx">   getScript: function( url, callback ) {
</span><span class="cx">          return jQuery.get( url, undefined, callback, "script" );
</span><del>-       },
-
-       getJSON: function( url, data, callback ) {
-               return jQuery.get( url, data, callback, "json" );
</del><span class="cx">   }
</span><span class="cx"> });
</span><span class="cx"> 
</span><ins>+jQuery.each( [ "get", "post" ], function( i, method ) {
+       jQuery[ method ] = function( url, data, callback, type ) {
+               // shift arguments if data argument was omitted
+               if ( jQuery.isFunction( data ) ) {
+                       type = type || callback;
+                       callback = data;
+                       data = undefined;
+               }
+
+               return jQuery.ajax({
+                       url: url,
+                       type: method,
+                       dataType: type,
+                       data: data,
+                       success: callback
+               });
+       };
+});
+
</ins><span class="cx"> /* Handles responses to an ajax request:
</span><del>- * - sets all responseXXX fields accordingly
</del><span class="cx">  * - finds the right dataType (mediates between content-type and expected dataType)
</span><span class="cx">  * - returns the corresponding response
</span><span class="cx">  */
</span><span class="cx"> function ajaxHandleResponses( s, jqXHR, responses ) {
</span><span class="cx">  var firstDataType, ct, finalDataType, type,
</span><span class="cx">          contents = s.contents,
</span><del>-               dataTypes = s.dataTypes,
-               responseFields = s.responseFields;
</del><ins>+                dataTypes = s.dataTypes;
</ins><span class="cx"> 
</span><del>-       // Fill responseXXX fields
-       for ( type in responseFields ) {
-               if ( type in responses ) {
-                       jqXHR[ responseFields[type] ] = responses[ type ];
-               }
-       }
-
</del><span class="cx">   // Remove auto dataType and get content-type in the process
</span><span class="cx">  while( dataTypes[ 0 ] === "*" ) {
</span><span class="cx">          dataTypes.shift();
</span><span class="lines">@@ -8174,20 +8354,15 @@
</span><span class="cx">  }
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-// Chain conversions given the request and the original response
-function ajaxConvert( s, response ) {
-       var conv2, current, conv, tmp,
</del><ins>+/* Chain conversions given the request and the original response
+ * Also sets the responseXXX fields on the jqXHR instance
+ */
+function ajaxConvert( s, response, jqXHR, isSuccess ) {
+       var conv2, current, conv, tmp, prev,
</ins><span class="cx">           converters = {},
</span><del>-               i = 0,
</del><span class="cx">           // Work with a copy of dataTypes in case we need to modify it for conversion
</span><del>-               dataTypes = s.dataTypes.slice(),
-               prev = dataTypes[ 0 ];
</del><ins>+                dataTypes = s.dataTypes.slice();
</ins><span class="cx"> 
</span><del>-       // Apply the dataFilter if provided
-       if ( s.dataFilter ) {
-               response = s.dataFilter( response, s.dataType );
-       }
-
</del><span class="cx">   // Create converters map with lowercased keys
</span><span class="cx">  if ( dataTypes[ 1 ] ) {
</span><span class="cx">          for ( conv in s.converters ) {
</span><span class="lines">@@ -8195,14 +8370,32 @@
</span><span class="cx">          }
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       // Convert to each sequential dataType, tolerating list modification
-       for ( ; (current = dataTypes[++i]); ) {
</del><ins>+        current = dataTypes.shift();
</ins><span class="cx"> 
</span><del>-               // There's only work to do if current dataType is non-auto
-               if ( current !== "*" ) {
</del><ins>+        // Convert to each sequential dataType
+       while ( current ) {
</ins><span class="cx"> 
</span><ins>+               if ( s.responseFields[ current ] ) {
+                       jqXHR[ s.responseFields[ current ] ] = response;
+               }
+
+               // Apply the dataFilter if provided
+               if ( !prev && isSuccess && s.dataFilter ) {
+                       response = s.dataFilter( response, s.dataType );
+               }
+
+               prev = current;
+               current = dataTypes.shift();
+
+               if ( current ) {
+
+                       // There's only work to do if current dataType is non-auto
+                       if ( current === "*" ) {
+
+                               current = prev;
+
</ins><span class="cx">                   // Convert response if prev dataType is non-auto and differs from current
</span><del>-                       if ( prev !== "*" && prev !== current ) {
</del><ins>+                        } else if ( prev !== "*" && prev !== current ) {
</ins><span class="cx"> 
</span><span class="cx">                          // Seek a direct converter
</span><span class="cx">                          conv = converters[ prev + " " + current ] || converters[ "* " + current ];
</span><span class="lines">@@ -8212,7 +8405,7 @@
</span><span class="cx">                                  for ( conv2 in converters ) {
</span><span class="cx"> 
</span><span class="cx">                                          // If conv2 outputs current
</span><del>-                                               tmp = conv2.split(" ");
</del><ins>+                                                tmp = conv2.split( " " );
</ins><span class="cx">                                           if ( tmp[ 1 ] === current ) {
</span><span class="cx"> 
</span><span class="cx">                                                  // If prev can be converted to accepted input
</span><span class="lines">@@ -8226,9 +8419,8 @@
</span><span class="cx">                                                          // Otherwise, insert the intermediate dataType
</span><span class="cx">                                                          } else if ( converters[ conv2 ] !== true ) {
</span><span class="cx">                                                                  current = tmp[ 0 ];
</span><del>-                                                                       dataTypes.splice( i--, 0, current );
</del><ins>+                                                                        dataTypes.unshift( tmp[ 1 ] );
</ins><span class="cx">                                                           }
</span><del>-
</del><span class="cx">                                                           break;
</span><span class="cx">                                                  }
</span><span class="cx">                                          }
</span><span class="lines">@@ -8239,7 +8431,7 @@
</span><span class="cx">                          if ( conv !== true ) {
</span><span class="cx"> 
</span><span class="cx">                                  // Unless errors are allowed to bubble, catch and return them
</span><del>-                                       if ( conv && s["throws"] ) {
</del><ins>+                                        if ( conv && s[ "throws" ] ) {
</ins><span class="cx">                                           response = conv( response );
</span><span class="cx">                                  } else {
</span><span class="cx">                                          try {
</span><span class="lines">@@ -8250,9 +8442,6 @@
</span><span class="cx">                                  }
</span><span class="cx">                          }
</span><span class="cx">                  }
</span><del>-
-                       // Update prev for next iteration
-                       prev = current;
</del><span class="cx">           }
</span><span class="cx">  }
</span><span class="cx"> 
</span><span class="lines">@@ -8638,44 +8827,51 @@
</span><span class="cx">  animationPrefilters = [ defaultPrefilter ],
</span><span class="cx">  tweeners = {
</span><span class="cx">          "*": [function( prop, value ) {
</span><del>-                       var end, unit,
-                               tween = this.createTween( prop, value ),
</del><ins>+                        var tween = this.createTween( prop, value ),
+                               target = tween.cur(),
</ins><span class="cx">                           parts = rfxnum.exec( value ),
</span><del>-                               target = tween.cur(),
-                               start = +target || 0,
</del><ins>+                                unit = parts && parts[ 3 ] || ( jQuery.cssNumber[ prop ] ? "" : "px" ),
+
+                               // Starting value computation is required for potential unit mismatches
+                               start = ( jQuery.cssNumber[ prop ] || unit !== "px" && +target ) &&
+                                       rfxnum.exec( jQuery.css( tween.elem, prop ) ),
</ins><span class="cx">                           scale = 1,
</span><span class="cx">                          maxIterations = 20;
</span><span class="cx"> 
</span><del>-                       if ( parts ) {
-                               end = +parts[2];
-                               unit = parts[3] || ( jQuery.cssNumber[ prop ] ? "" : "px" );
</del><ins>+                        if ( start && start[ 3 ] !== unit ) {
+                               // Trust units reported by jQuery.css
+                               unit = unit || start[ 3 ];
</ins><span class="cx"> 
</span><del>-                               // We need to compute starting value
-                               if ( unit !== "px" && start ) {
-                                       // Iteratively approximate from a nonzero starting point
-                                       // Prefer the current property, because this process will be trivial if it uses the same units
-                                       // Fallback to end or a simple constant
-                                       start = jQuery.css( tween.elem, prop, true ) || end || 1;
</del><ins>+                                // Make sure we update the tween properties later on
+                               parts = parts || [];
</ins><span class="cx"> 
</span><del>-                                       do {
-                                               // If previous iteration zeroed out, double until we get *something*
-                                               // Use a string for doubling factor so we don't accidentally see scale as unchanged below
-                                               scale = scale || ".5";
</del><ins>+                                // Iteratively approximate from a nonzero starting point
+                               start = +target || 1;
</ins><span class="cx"> 
</span><del>-                                               // Adjust and apply
-                                               start = start / scale;
-                                               jQuery.style( tween.elem, prop, start + unit );
</del><ins>+                                do {
+                                       // If previous iteration zeroed out, double until we get *something*
+                                       // Use a string for doubling factor so we don't accidentally see scale as unchanged below
+                                       scale = scale || ".5";
</ins><span class="cx"> 
</span><del>-                                       // Update scale, tolerating zero or NaN from tween.cur()
-                                       // And breaking the loop if scale is unchanged or perfect, or if we've just had enough
-                                       } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
-                               }
</del><ins>+                                        // Adjust and apply
+                                       start = start / scale;
+                                       jQuery.style( tween.elem, prop, start + unit );
</ins><span class="cx"> 
</span><ins>+                               // Update scale, tolerating zero or NaN from tween.cur()
+                               // And breaking the loop if scale is unchanged or perfect, or if we've just had enough
+                               } while ( scale !== (scale = tween.cur() / target) && scale !== 1 && --maxIterations );
+                       }
+
+                       // Update tween properties
+                       if ( parts ) {
</ins><span class="cx">                           tween.unit = unit;
</span><del>-                               tween.start = start;
</del><ins>+                                tween.start = +start || +target || 0;
</ins><span class="cx">                           // If a +=/-= token was provided, we're doing a relative animation
</span><del>-                               tween.end = parts[1] ? start + ( parts[1] + 1 ) * end : end;
</del><ins>+                                tween.end = parts[ 1 ] ?
+                                       start + ( parts[ 1 ] + 1 ) * parts[ 2 ] :
+                                       +parts[ 2 ];
</ins><span class="cx">                   }
</span><ins>+
</ins><span class="cx">                   return tween;
</span><span class="cx">          }]
</span><span class="cx">  };
</span><span class="lines">@@ -8688,19 +8884,18 @@
</span><span class="cx">  return ( fxNow = jQuery.now() );
</span><span class="cx"> }
</span><span class="cx"> 
</span><del>-function createTweens( animation, props ) {
-       jQuery.each( props, function( prop, value ) {
-               var collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
-                       index = 0,
-                       length = collection.length;
-               for ( ; index < length; index++ ) {
-                       if ( collection[ index ].call( animation, prop, value ) ) {
</del><ins>+function createTween( value, prop, animation ) {
+       var tween,
+               collection = ( tweeners[ prop ] || [] ).concat( tweeners[ "*" ] ),
+               index = 0,
+               length = collection.length;
+       for ( ; index < length; index++ ) {
+               if ( (tween = collection[ index ].call( animation, prop, value )) ) {
</ins><span class="cx"> 
</span><del>-                               // we're done with this property
-                               return;
-                       }
</del><ins>+                        // we're done with this property
+                       return tween;
</ins><span class="cx">           }
</span><del>-       });
</del><ins>+        }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function Animation( elem, properties, options ) {
</span><span class="lines">@@ -8786,7 +8981,7 @@
</span><span class="cx">          }
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       createTweens( animation, props );
</del><ins>+        jQuery.map( props, createTween, animation );
</ins><span class="cx"> 
</span><span class="cx">  if ( jQuery.isFunction( animation.opts.start ) ) {
</span><span class="cx">          animation.opts.start.call( elem, animation );
</span><span class="lines">@@ -8808,7 +9003,7 @@
</span><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> function propFilter( props, specialEasing ) {
</span><del>-       var value, name, index, easing, hooks;
</del><ins>+        var index, name, easing, value, hooks;
</ins><span class="cx"> 
</span><span class="cx">  // camelCase, specialEasing and expand cssHook pass
</span><span class="cx">  for ( index in props ) {
</span><span class="lines">@@ -8875,15 +9070,13 @@
</span><span class="cx"> });
</span><span class="cx"> 
</span><span class="cx"> function defaultPrefilter( elem, props, opts ) {
</span><del>-       /*jshint validthis:true */
-       var prop, index, length,
-               value, dataShow, toggle,
-               tween, hooks, oldfire,
</del><ins>+        /* jshint validthis: true */
+       var prop, value, toggle, tween, hooks, oldfire,
</ins><span class="cx">           anim = this,
</span><ins>+               orig = {},
</ins><span class="cx">           style = elem.style,
</span><del>-               orig = {},
-               handled = [],
-               hidden = elem.nodeType && isHidden( elem );
</del><ins>+                hidden = elem.nodeType && isHidden( elem ),
+               dataShow = jQuery._data( elem, "fxshow" );
</ins><span class="cx"> 
</span><span class="cx">  // handle queue: false promises
</span><span class="cx">  if ( !opts.queue ) {
</span><span class="lines">@@ -8948,23 +9141,25 @@
</span><span class="cx"> 
</span><span class="cx"> 
</span><span class="cx">  // show/hide pass
</span><del>-       for ( index in props ) {
-               value = props[ index ];
</del><ins>+        for ( prop in props ) {
+               value = props[ prop ];
</ins><span class="cx">           if ( rfxtypes.exec( value ) ) {
</span><del>-                       delete props[ index ];
</del><ins>+                        delete props[ prop ];
</ins><span class="cx">                   toggle = toggle || value === "toggle";
</span><span class="cx">                  if ( value === ( hidden ? "hide" : "show" ) ) {
</span><span class="cx">                          continue;
</span><span class="cx">                  }
</span><del>-                       handled.push( index );
</del><ins>+                        orig[ prop ] = dataShow && dataShow[ prop ] || jQuery.style( elem, prop );
</ins><span class="cx">           }
</span><span class="cx">  }
</span><span class="cx"> 
</span><del>-       length = handled.length;
-       if ( length ) {
-               dataShow = jQuery._data( elem, "fxshow" ) || jQuery._data( elem, "fxshow", {} );
-               if ( "hidden" in dataShow ) {
-                       hidden = dataShow.hidden;
</del><ins>+        if ( !jQuery.isEmptyObject( orig ) ) {
+               if ( dataShow ) {
+                       if ( "hidden" in dataShow ) {
+                               hidden = dataShow.hidden;
+                       }
+               } else {
+                       dataShow = jQuery._data( elem, "fxshow", {} );
</ins><span class="cx">           }
</span><span class="cx"> 
</span><span class="cx">          // store state if its toggle - enables .stop().toggle() to "reverse"
</span><span class="lines">@@ -8985,10 +9180,8 @@
</span><span class="cx">                          jQuery.style( elem, prop, orig[ prop ] );
</span><span class="cx">                  }
</span><span class="cx">          });
</span><del>-               for ( index = 0 ; index < length ; index++ ) {
-                       prop = handled[ index ];
-                       tween = anim.createTween( prop, hidden ? dataShow[ prop ] : 0 );
-                       orig[ prop ] = dataShow[ prop ] || jQuery.style( elem, prop );
</del><ins>+                for ( prop in orig ) {
+                       tween = createTween( hidden ? dataShow[ prop ] : 0, prop, anim );
</ins><span class="cx"> 
</span><span class="cx">                  if ( !( prop in dataShow ) ) {
</span><span class="cx">                          dataShow[ prop ] = tween.start;
</span><span class="lines">@@ -9084,8 +9277,8 @@
</span><span class="cx">  }
</span><span class="cx"> };
</span><span class="cx"> 
</span><del>-// Remove in 2.0 - this supports IE8's panic based approach
-// to setting things on disconnected nodes
</del><ins>+// Support: IE <=9
+// Panic based approach to setting things on disconnected nodes
</ins><span class="cx"> 
</span><span class="cx"> Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
</span><span class="cx">  set: function( tween ) {
</span><span class="lines">@@ -9486,11 +9679,11 @@
</span><span class="cx"> 
</span><span class="cx">  offsetParent: function() {
</span><span class="cx">          return this.map(function() {
</span><del>-                       var offsetParent = this.offsetParent || document.documentElement;
</del><ins>+                        var offsetParent = this.offsetParent || docElem;
</ins><span class="cx">                   while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) {
</span><span class="cx">                          offsetParent = offsetParent.offsetParent;
</span><span class="cx">                  }
</span><del>-                       return offsetParent || document.documentElement;
</del><ins>+                        return offsetParent || docElem;
</ins><span class="cx">           });
</span><span class="cx">  }
</span><span class="cx"> });
</span><span class="lines">@@ -9574,24 +9767,34 @@
</span><span class="cx"> // Limit scope pollution from any deprecated API
</span><span class="cx"> // (function() {
</span><span class="cx"> 
</span><ins>+// The number of elements contained in the matched element set
+jQuery.fn.size = function() {
+       return this.length;
+};
+
+jQuery.fn.andSelf = jQuery.fn.addBack;
+
</ins><span class="cx"> // })();
</span><del>-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
</del><ins>+if ( typeof module === "object" && typeof module.exports === "object" ) {
+       // Expose jQuery as module.exports in loaders that implement the Node
+       // module pattern (including browserify). Do not create the global, since
+       // the user will be storing it themselves locally, and globals are frowned
+       // upon in the Node module world.
+       module.exports = jQuery;
+} else {
+       // Otherwise expose jQuery to the global object as usual
+       window.jQuery = window.$ = jQuery;
</ins><span class="cx"> 
</span><del>-// Expose jQuery as an AMD module, but only for AMD loaders that
-// understand the issues with loading multiple versions of jQuery
-// in a page that all might call define(). The loader will indicate
-// they have special allowances for multiple jQuery versions by
-// specifying define.amd.jQuery = true. Register as a named module,
-// since jQuery can be concatenated with other files that may use define,
-// but not use a proper concatenation script that understands anonymous
-// AMD modules. A named AMD is safest and most robust way to register.
-// Lowercase jquery is used because AMD module names are derived from
-// file names, and jQuery is normally delivered in a lowercase file name.
-// Do this after creating the global so that if an AMD module wants to call
-// noConflict to hide this version of jQuery, it will work.
-if ( typeof define === "function" && define.amd && define.amd.jQuery ) {
-       define( "jquery", [], function () { return jQuery; } );
</del><ins>+        // Register as a named AMD module, since jQuery can be concatenated with other
+       // files that may use define, but not via a proper concatenation script that
+       // understands anonymous AMD modules. A named AMD is safest and most robust
+       // way to register. Lowercase jquery is used because AMD module names are
+       // derived from file names, and jQuery is normally delivered in a lowercase
+       // file name. Do this after creating the global so that if an AMD module wants
+       // to call noConflict to hide this version of jQuery, it will work.
+       if ( typeof define === "function" && define.amd ) {
+               define( "jquery", [], function () { return jQuery; } );
+       }
</ins><span class="cx"> }
</span><span class="cx"> 
</span><span class="cx"> })( window );
</span></span></pre></div>
<a id="trunkwpincludesscriptloaderphp"></a>
<div class="modfile"><h4>Modified: trunk/wp-includes/script-loader.php (24363 => 24364)</h4>
<pre class="diff"><span>
<span class="info">--- trunk/wp-includes/script-loader.php      2013-05-25 22:10:53 UTC (rev 24363)
+++ trunk/wp-includes/script-loader.php 2013-05-25 22:33:07 UTC (rev 24364)
</span><span class="lines">@@ -132,8 +132,8 @@
</span><span class="cx">  $scripts->add( 'cropper', '/wp-includes/js/crop/cropper.js', array('scriptaculous-dragdrop') );
</span><span class="cx"> 
</span><span class="cx">  // jQuery
</span><del>-       $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.9.1' );
-       $scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.9.1' );
</del><ins>+        $scripts->add( 'jquery', false, array( 'jquery-core', 'jquery-migrate' ), '1.10.0' );
+       $scripts->add( 'jquery-core', '/wp-includes/js/jquery/jquery.js', array(), '1.10.0' );
</ins><span class="cx">   $scripts->add( 'jquery-migrate', '/wp-includes/js/jquery/jquery-migrate.js', array(), '1.2.1' );
</span><span class="cx"> 
</span><span class="cx">  // full jQuery UI
</span></span></pre>
</div>
</div>

</body>
</html>