summaryrefslogtreecommitdiffstats
path: root/js/vendor/jquery/src
diff options
context:
space:
mode:
Diffstat (limited to 'js/vendor/jquery/src')
-rw-r--r--js/vendor/jquery/src/ajax.js806
-rw-r--r--js/vendor/jquery/src/ajax/jsonp.js89
-rw-r--r--js/vendor/jquery/src/ajax/load.js75
-rw-r--r--js/vendor/jquery/src/ajax/parseJSON.js13
-rw-r--r--js/vendor/jquery/src/ajax/parseXML.js28
-rw-r--r--js/vendor/jquery/src/ajax/script.js64
-rw-r--r--js/vendor/jquery/src/ajax/var/nonce.js5
-rw-r--r--js/vendor/jquery/src/ajax/var/rquery.js3
-rw-r--r--js/vendor/jquery/src/ajax/xhr.js135
-rw-r--r--js/vendor/jquery/src/attributes.js11
-rw-r--r--js/vendor/jquery/src/attributes/attr.js143
-rw-r--r--js/vendor/jquery/src/attributes/classes.js158
-rw-r--r--js/vendor/jquery/src/attributes/prop.js96
-rw-r--r--js/vendor/jquery/src/attributes/support.js35
-rw-r--r--js/vendor/jquery/src/attributes/val.js163
-rw-r--r--js/vendor/jquery/src/callbacks.js205
-rw-r--r--js/vendor/jquery/src/core.js498
-rw-r--r--js/vendor/jquery/src/core/access.js60
-rw-r--r--js/vendor/jquery/src/core/init.js123
-rw-r--r--js/vendor/jquery/src/core/parseHTML.js39
-rw-r--r--js/vendor/jquery/src/core/ready.js97
-rw-r--r--js/vendor/jquery/src/core/var/rsingleTag.js4
-rw-r--r--js/vendor/jquery/src/css.js451
-rw-r--r--js/vendor/jquery/src/css/addGetHookIf.js24
-rw-r--r--js/vendor/jquery/src/css/curCSS.js57
-rw-r--r--js/vendor/jquery/src/css/defaultDisplay.js70
-rw-r--r--js/vendor/jquery/src/css/hiddenVisibleSelectors.js15
-rw-r--r--js/vendor/jquery/src/css/support.js91
-rw-r--r--js/vendor/jquery/src/css/swap.js28
-rw-r--r--js/vendor/jquery/src/css/var/cssExpand.js3
-rw-r--r--js/vendor/jquery/src/css/var/getStyles.js5
-rw-r--r--js/vendor/jquery/src/css/var/isHidden.js13
-rw-r--r--js/vendor/jquery/src/css/var/rmargin.js3
-rw-r--r--js/vendor/jquery/src/css/var/rnumnonpx.js5
-rw-r--r--js/vendor/jquery/src/data.js179
-rw-r--r--js/vendor/jquery/src/data/Data.js181
-rw-r--r--js/vendor/jquery/src/data/accepts.js20
-rw-r--r--js/vendor/jquery/src/data/var/data_priv.js5
-rw-r--r--js/vendor/jquery/src/data/var/data_user.js5
-rw-r--r--js/vendor/jquery/src/deferred.js149
-rw-r--r--js/vendor/jquery/src/deprecated.js13
-rw-r--r--js/vendor/jquery/src/dimensions.js50
-rw-r--r--js/vendor/jquery/src/effects.js649
-rw-r--r--js/vendor/jquery/src/effects/Tween.js114
-rw-r--r--js/vendor/jquery/src/effects/animatedSelector.js13
-rw-r--r--js/vendor/jquery/src/event.js868
-rw-r--r--js/vendor/jquery/src/event/alias.js39
-rw-r--r--js/vendor/jquery/src/event/support.js9
-rw-r--r--js/vendor/jquery/src/exports/amd.js24
-rw-r--r--js/vendor/jquery/src/exports/global.js32
-rw-r--r--js/vendor/jquery/src/intro.js44
-rw-r--r--js/vendor/jquery/src/jquery.js36
-rw-r--r--js/vendor/jquery/src/manipulation.js582
-rw-r--r--js/vendor/jquery/src/manipulation/_evalUrl.js18
-rw-r--r--js/vendor/jquery/src/manipulation/support.js31
-rw-r--r--js/vendor/jquery/src/manipulation/var/rcheckableType.js3
-rw-r--r--js/vendor/jquery/src/offset.js204
-rw-r--r--js/vendor/jquery/src/outro.js1
-rw-r--r--js/vendor/jquery/src/queue.js142
-rw-r--r--js/vendor/jquery/src/queue/delay.js22
-rw-r--r--js/vendor/jquery/src/selector-native.js172
-rw-r--r--js/vendor/jquery/src/selector-sizzle.js14
-rw-r--r--js/vendor/jquery/src/selector.js1
-rw-r--r--js/vendor/jquery/src/serialize.js111
-rw-r--r--js/vendor/jquery/src/sizzle/dist/sizzle.js2044
-rw-r--r--js/vendor/jquery/src/sizzle/dist/sizzle.min.js3
-rw-r--r--js/vendor/jquery/src/sizzle/dist/sizzle.min.map1
-rw-r--r--js/vendor/jquery/src/traversing.js200
-rw-r--r--js/vendor/jquery/src/traversing/findFilter.js100
-rw-r--r--js/vendor/jquery/src/traversing/var/rneedsContext.js6
-rw-r--r--js/vendor/jquery/src/var/arr.js3
-rw-r--r--js/vendor/jquery/src/var/class2type.js4
-rw-r--r--js/vendor/jquery/src/var/concat.js5
-rw-r--r--js/vendor/jquery/src/var/hasOwn.js5
-rw-r--r--js/vendor/jquery/src/var/indexOf.js5
-rw-r--r--js/vendor/jquery/src/var/pnum.js3
-rw-r--r--js/vendor/jquery/src/var/push.js5
-rw-r--r--js/vendor/jquery/src/var/rnotwhite.js3
-rw-r--r--js/vendor/jquery/src/var/slice.js5
-rw-r--r--js/vendor/jquery/src/var/strundefined.js3
-rw-r--r--js/vendor/jquery/src/var/support.js4
-rw-r--r--js/vendor/jquery/src/var/toString.js5
-rw-r--r--js/vendor/jquery/src/wrap.js78
83 files changed, 9828 insertions, 0 deletions
diff --git a/js/vendor/jquery/src/ajax.js b/js/vendor/jquery/src/ajax.js
new file mode 100644
index 000000000..d39de2a9b
--- /dev/null
+++ b/js/vendor/jquery/src/ajax.js
@@ -0,0 +1,806 @@
+define([
+ "./core",
+ "./var/rnotwhite",
+ "./ajax/var/nonce",
+ "./ajax/var/rquery",
+ "./core/init",
+ "./ajax/parseJSON",
+ "./ajax/parseXML",
+ "./deferred"
+], function( jQuery, rnotwhite, nonce, rquery ) {
+
+var
+ // Document location
+ ajaxLocParts,
+ ajaxLocation,
+
+ rhash = /#.*$/,
+ rts = /([?&])_=[^&]*/,
+ rheaders = /^(.*?):[ \t]*([^\r\n]*)$/mg,
+ // #7653, #8125, #8152: local protocol detection
+ rlocalProtocol = /^(?:about|app|app-storage|.+-extension|file|res|widget):$/,
+ rnoContent = /^(?:GET|HEAD)$/,
+ rprotocol = /^\/\//,
+ rurl = /^([\w.+-]+:)(?:\/\/(?:[^\/?#]*@|)([^\/?#:]*)(?::(\d+)|)|)/,
+
+ /* Prefilters
+ * 1) They are useful to introduce custom dataTypes (see ajax/jsonp.js for an example)
+ * 2) These are called:
+ * - BEFORE asking for a transport
+ * - AFTER param serialization (s.data is a string if s.processData is true)
+ * 3) key is the dataType
+ * 4) the catchall symbol "*" can be used
+ * 5) execution will start with transport dataType and THEN continue down to "*" if needed
+ */
+ prefilters = {},
+
+ /* Transports bindings
+ * 1) key is the dataType
+ * 2) the catchall symbol "*" can be used
+ * 3) selection will start with transport dataType and THEN go to "*" if needed
+ */
+ transports = {},
+
+ // Avoid comment-prolog char sequence (#10098); must appease lint and evade compression
+ allTypes = "*/".concat("*");
+
+// #8138, IE may throw an exception when accessing
+// a field from window.location if document.domain has been set
+try {
+ ajaxLocation = location.href;
+} catch( e ) {
+ // Use the href attribute of an A element
+ // since IE will modify it given document.location
+ ajaxLocation = document.createElement( "a" );
+ ajaxLocation.href = "";
+ ajaxLocation = ajaxLocation.href;
+}
+
+// Segment location into parts
+ajaxLocParts = rurl.exec( ajaxLocation.toLowerCase() ) || [];
+
+// Base "constructor" for jQuery.ajaxPrefilter and jQuery.ajaxTransport
+function addToPrefiltersOrTransports( structure ) {
+
+ // dataTypeExpression is optional and defaults to "*"
+ return function( dataTypeExpression, func ) {
+
+ if ( typeof dataTypeExpression !== "string" ) {
+ func = dataTypeExpression;
+ dataTypeExpression = "*";
+ }
+
+ var dataType,
+ i = 0,
+ dataTypes = dataTypeExpression.toLowerCase().match( rnotwhite ) || [];
+
+ if ( jQuery.isFunction( func ) ) {
+ // For each dataType in the dataTypeExpression
+ while ( (dataType = dataTypes[i++]) ) {
+ // Prepend if requested
+ if ( dataType[0] === "+" ) {
+ dataType = dataType.slice( 1 ) || "*";
+ (structure[ dataType ] = structure[ dataType ] || []).unshift( func );
+
+ // Otherwise append
+ } else {
+ (structure[ dataType ] = structure[ dataType ] || []).push( func );
+ }
+ }
+ }
+ };
+}
+
+// Base inspection function for prefilters and transports
+function inspectPrefiltersOrTransports( structure, options, originalOptions, jqXHR ) {
+
+ var inspected = {},
+ seekingTransport = ( structure === transports );
+
+ function inspect( dataType ) {
+ var selected;
+ inspected[ dataType ] = true;
+ jQuery.each( structure[ dataType ] || [], function( _, prefilterOrFactory ) {
+ var dataTypeOrTransport = prefilterOrFactory( options, originalOptions, jqXHR );
+ if ( typeof dataTypeOrTransport === "string" && !seekingTransport && !inspected[ dataTypeOrTransport ] ) {
+ options.dataTypes.unshift( dataTypeOrTransport );
+ inspect( dataTypeOrTransport );
+ return false;
+ } else if ( seekingTransport ) {
+ return !( selected = dataTypeOrTransport );
+ }
+ });
+ return selected;
+ }
+
+ return inspect( options.dataTypes[ 0 ] ) || !inspected[ "*" ] && inspect( "*" );
+}
+
+// A special extend for ajax options
+// that takes "flat" options (not to be deep extended)
+// Fixes #9887
+function ajaxExtend( target, src ) {
+ var key, deep,
+ flatOptions = jQuery.ajaxSettings.flatOptions || {};
+
+ for ( key in src ) {
+ if ( src[ key ] !== undefined ) {
+ ( flatOptions[ key ] ? target : ( deep || (deep = {}) ) )[ key ] = src[ key ];
+ }
+ }
+ if ( deep ) {
+ jQuery.extend( true, target, deep );
+ }
+
+ return target;
+}
+
+/* Handles responses to an ajax request:
+ * - finds the right dataType (mediates between content-type and expected dataType)
+ * - returns the corresponding response
+ */
+function ajaxHandleResponses( s, jqXHR, responses ) {
+
+ var ct, type, finalDataType, firstDataType,
+ contents = s.contents,
+ dataTypes = s.dataTypes;
+
+ // Remove auto dataType and get content-type in the process
+ while ( dataTypes[ 0 ] === "*" ) {
+ dataTypes.shift();
+ if ( ct === undefined ) {
+ ct = s.mimeType || jqXHR.getResponseHeader("Content-Type");
+ }
+ }
+
+ // Check if we're dealing with a known content-type
+ if ( ct ) {
+ for ( type in contents ) {
+ if ( contents[ type ] && contents[ type ].test( ct ) ) {
+ dataTypes.unshift( type );
+ break;
+ }
+ }
+ }
+
+ // Check to see if we have a response for the expected dataType
+ if ( dataTypes[ 0 ] in responses ) {
+ finalDataType = dataTypes[ 0 ];
+ } else {
+ // Try convertible dataTypes
+ for ( type in responses ) {
+ if ( !dataTypes[ 0 ] || s.converters[ type + " " + dataTypes[0] ] ) {
+ finalDataType = type;
+ break;
+ }
+ if ( !firstDataType ) {
+ firstDataType = type;
+ }
+ }
+ // Or just use first one
+ finalDataType = finalDataType || firstDataType;
+ }
+
+ // If we found a dataType
+ // We add the dataType to the list if needed
+ // and return the corresponding response
+ if ( finalDataType ) {
+ if ( finalDataType !== dataTypes[ 0 ] ) {
+ dataTypes.unshift( finalDataType );
+ }
+ return responses[ finalDataType ];
+ }
+}
+
+/* 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,
+ converters = {},
+ // Work with a copy of dataTypes in case we need to modify it for conversion
+ dataTypes = s.dataTypes.slice();
+
+ // Create converters map with lowercased keys
+ if ( dataTypes[ 1 ] ) {
+ for ( conv in s.converters ) {
+ converters[ conv.toLowerCase() ] = s.converters[ conv ];
+ }
+ }
+
+ current = dataTypes.shift();
+
+ // Convert to each sequential dataType
+ while ( current ) {
+
+ 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;
+
+ // Convert response if prev dataType is non-auto and differs from current
+ } else if ( prev !== "*" && prev !== current ) {
+
+ // Seek a direct converter
+ conv = converters[ prev + " " + current ] || converters[ "* " + current ];
+
+ // If none found, seek a pair
+ if ( !conv ) {
+ for ( conv2 in converters ) {
+
+ // If conv2 outputs current
+ tmp = conv2.split( " " );
+ if ( tmp[ 1 ] === current ) {
+
+ // If prev can be converted to accepted input
+ conv = converters[ prev + " " + tmp[ 0 ] ] ||
+ converters[ "* " + tmp[ 0 ] ];
+ if ( conv ) {
+ // Condense equivalence converters
+ if ( conv === true ) {
+ conv = converters[ conv2 ];
+
+ // Otherwise, insert the intermediate dataType
+ } else if ( converters[ conv2 ] !== true ) {
+ current = tmp[ 0 ];
+ dataTypes.unshift( tmp[ 1 ] );
+ }
+ break;
+ }
+ }
+ }
+ }
+
+ // Apply converter (if not an equivalence)
+ if ( conv !== true ) {
+
+ // Unless errors are allowed to bubble, catch and return them
+ if ( conv && s[ "throws" ] ) {
+ response = conv( response );
+ } else {
+ try {
+ response = conv( response );
+ } catch ( e ) {
+ return { state: "parsererror", error: conv ? e : "No conversion from " + prev + " to " + current };
+ }
+ }
+ }
+ }
+ }
+ }
+
+ return { state: "success", data: response };
+}
+
+jQuery.extend({
+
+ // Counter for holding the number of active queries
+ active: 0,
+
+ // Last-Modified header cache for next request
+ lastModified: {},
+ etag: {},
+
+ ajaxSettings: {
+ url: ajaxLocation,
+ type: "GET",
+ isLocal: rlocalProtocol.test( ajaxLocParts[ 1 ] ),
+ global: true,
+ processData: true,
+ async: true,
+ contentType: "application/x-www-form-urlencoded; charset=UTF-8",
+ /*
+ timeout: 0,
+ data: null,
+ dataType: null,
+ username: null,
+ password: null,
+ cache: null,
+ throws: false,
+ traditional: false,
+ headers: {},
+ */
+
+ accepts: {
+ "*": allTypes,
+ text: "text/plain",
+ html: "text/html",
+ xml: "application/xml, text/xml",
+ json: "application/json, text/javascript"
+ },
+
+ contents: {
+ xml: /xml/,
+ html: /html/,
+ json: /json/
+ },
+
+ responseFields: {
+ xml: "responseXML",
+ text: "responseText",
+ json: "responseJSON"
+ },
+
+ // Data converters
+ // Keys separate source (or catchall "*") and destination types with a single space
+ converters: {
+
+ // Convert anything to text
+ "* text": String,
+
+ // Text to html (true = no transformation)
+ "text html": true,
+
+ // Evaluate text as a json expression
+ "text json": jQuery.parseJSON,
+
+ // Parse text as xml
+ "text xml": jQuery.parseXML
+ },
+
+ // For options that shouldn't be deep extended:
+ // you can add your own custom options here if
+ // and when you create one that shouldn't be
+ // deep extended (see ajaxExtend)
+ flatOptions: {
+ url: true,
+ context: true
+ }
+ },
+
+ // Creates a full fledged settings object into target
+ // with both ajaxSettings and settings fields.
+ // If target is omitted, writes into ajaxSettings.
+ ajaxSetup: function( target, settings ) {
+ return settings ?
+
+ // Building a settings object
+ ajaxExtend( ajaxExtend( target, jQuery.ajaxSettings ), settings ) :
+
+ // Extending ajaxSettings
+ ajaxExtend( jQuery.ajaxSettings, target );
+ },
+
+ ajaxPrefilter: addToPrefiltersOrTransports( prefilters ),
+ ajaxTransport: addToPrefiltersOrTransports( transports ),
+</