").append( jQuery.parseHTML( responseText ) ).find( selector ) :
-
- // Otherwise use the full result
- responseText );
-
- }).complete( callback && function( jqXHR, status ) {
- self.each( callback, response || [ jqXHR.responseText, status, jqXHR ] );
- });
- }
-
- return this;
-};
-
-// Attach a bunch of functions for handling common AJAX events
-jQuery.each( [ "ajaxStart", "ajaxStop", "ajaxComplete", "ajaxError", "ajaxSuccess", "ajaxSend" ], function( i, type ){
- jQuery.fn[ type ] = function( fn ){
- return this.on( type, fn );
- };
-});
-
-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
- });
- };
-});
-
-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"
- },
-
- // Data converters
- // Keys separate source (or catchall "*") and destination types with a single space
- converters: {
-
- // Convert anything to text
- "* text": window.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 ),
-
- // Main method
- ajax: function( url, options ) {
-
- // If url is an object, simulate pre-1.5 signature
- if ( typeof url === "object" ) {
- options = url;
- url = undefined;
- }
-
- // Force options to be an object
- options = options || {};
-
- var transport,
- // URL without anti-cache param
- cacheURL,
- // Response headers
- responseHeadersString,
- responseHeaders,
- // timeout handle
- timeoutTimer,
- // Cross-domain detection vars
- parts,
- // To know if global events are to be dispatched
- fireGlobals,
- // Loop variable
- i,
- // Create the final options object
- s = jQuery.ajaxSetup( {}, options ),
- // Callbacks context
- callbackContext = s.context || s,
- // Context for global events is callbackContext if it is a DOM node or jQuery collection
- globalEventContext = s.context && ( callbackContext.nodeType || callbackContext.jquery ) ?
- jQuery( callbackContext ) :
- jQuery.event,
- // Deferreds
- deferred = jQuery.Deferred(),
- completeDeferred = jQuery.Callbacks("once memory"),
- // Status-dependent callbacks
- statusCode = s.statusCode || {},
- // Headers (they are sent all at once)
- requestHeaders = {},
- requestHeadersNames = {},
- // The jqXHR state
- state = 0,
- // Default abort message
- strAbort = "canceled",
- // Fake xhr
- jqXHR = {
- readyState: 0,
-
- // Builds headers hashtable if needed
- getResponseHeader: function( key ) {
- var match;
- if ( state === 2 ) {
- if ( !responseHeaders ) {
- responseHeaders = {};
- while ( (match = rheaders.exec( responseHeadersString )) ) {
- responseHeaders[ match[1].toLowerCase() ] = match[ 2 ];
- }
- }
- match = responseHeaders[ key.toLowerCase() ];
- }
- return match == null ? null : match;
- },
-
- // Raw string
- getAllResponseHeaders: function() {
- return state === 2 ? responseHeadersString : null;
- },
-
- // Caches the header
- setRequestHeader: function( name, value ) {
- var lname = name.toLowerCase();
- if ( !state ) {
- name = requestHeadersNames[ lname ] = requestHeadersNames[ lname ] || name;
- requestHeaders[ name ] = value;
- }
- return this;
- },
-
- // Overrides response content-type header
- overrideMimeType: function( type ) {
- if ( !state ) {
- s.mimeType = type;
- }
- return this;
- },
-
- // Status-dependent callbacks
- statusCode: function( map ) {
- var code;
- if ( map ) {
- if ( state < 2 ) {
- for ( code in map ) {
- // Lazy-add the new callback in a way that preserves old ones
- statusCode[ code ] = [ statusCode[ code ], map[ code ] ];
- }
- } else {
- // Execute the appropriate callbacks
- jqXHR.always( map[ jqXHR.status ] );
- }
- }
- return this;
- },
-
- // Cancel the request
- abort: function( statusText ) {
- var finalText = statusText || strAbort;
- if ( transport ) {
- transport.abort( finalText );
- }
- done( 0, finalText );
- return this;
- }
- };
-
- // Attach deferreds
- deferred.promise( jqXHR ).complete = completeDeferred.add;
- jqXHR.success = jqXHR.done;
- jqXHR.error = jqXHR.fail;
-
- // Remove hash character (#7531: and string promotion)
- // Add protocol if not provided (#5866: IE7 issue with protocol-less urls)
- // Handle falsy url in the settings object (#10093: consistency with old signature)
- // We also use the url parameter if available
- s.url = ( ( url || s.url || ajaxLocation ) + "" ).replace( rhash, "" ).replace( rprotocol, ajaxLocParts[ 1 ] + "//" );
-
- // Alias method option to type as per ticket #12004
- s.type = options.method || options.type || s.method || s.type;
-
- // Extract dataTypes list
- s.dataTypes = jQuery.trim( s.dataType || "*" ).toLowerCase().match( core_rnotwhite ) || [""];
-
- // A cross-domain request is in order when we have a protocol:host:port mismatch
- if ( s.crossDomain == null ) {
- parts = rurl.exec( s.url.toLowerCase() );
- s.crossDomain = !!( parts &&
- ( parts[ 1 ] !== ajaxLocParts[ 1 ] || parts[ 2 ] !== ajaxLocParts[ 2 ] ||
- ( parts[ 3 ] || ( parts[ 1 ] === "http:" ? 80 : 443 ) ) !=
- ( ajaxLocParts[ 3 ] || ( ajaxLocParts[ 1 ] === "http:" ? 80 : 443 ) ) )
- );
- }
-
- // Convert data if not already a string
- if ( s.data && s.processData && typeof s.data !== "string" ) {
- s.data = jQuery.param( s.data, s.traditional );
- }
-
- // Apply prefilters
- inspectPrefiltersOrTransports( prefilters, s, options, jqXHR );
-
- // If request was aborted inside a prefilter, stop there
- if ( state === 2 ) {
- return jqXHR;
- }
-
- // We can fire global events as of now if asked to
- fireGlobals = s.global;
-
- // Watch for a new set of requests
- if ( fireGlobals && jQuery.active++ === 0 ) {
- jQuery.event.trigger("ajaxStart");
- }
-
- // Uppercase the type
- s.type = s.type.toUpperCase();
-
- // Determine if request has content
- s.hasContent = !rnoContent.test( s.type );
-
- // Save the URL in case we're toying with the If-Modified-Since
- // and/or If-None-Match header later on
- cacheURL = s.url;
-
- // More options handling for requests with no content
- if ( !s.hasContent ) {
-
- // If data is available, append data to url
- if ( s.data ) {
- cacheURL = ( s.url += ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + s.data );
- // #9682: remove data so that it's not used in an eventual retry
- delete s.data;
- }
-
- // Add anti-cache in url if needed
- if ( s.cache === false ) {
- s.url = rts.test( cacheURL ) ?
-
- // If there is already a '_' parameter, set its value
- cacheURL.replace( rts, "$1_=" + ajax_nonce++ ) :
-
- // Otherwise add one to the end
- cacheURL + ( ajax_rquery.test( cacheURL ) ? "&" : "?" ) + "_=" + ajax_nonce++;
- }
- }
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- if ( jQuery.lastModified[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-Modified-Since", jQuery.lastModified[ cacheURL ] );
- }
- if ( jQuery.etag[ cacheURL ] ) {
- jqXHR.setRequestHeader( "If-None-Match", jQuery.etag[ cacheURL ] );
- }
- }
-
- // Set the correct header, if data is being sent
- if ( s.data && s.hasContent && s.contentType !== false || options.contentType ) {
- jqXHR.setRequestHeader( "Content-Type", s.contentType );
- }
-
- // Set the Accepts header for the server, depending on the dataType
- jqXHR.setRequestHeader(
- "Accept",
- s.dataTypes[ 0 ] && s.accepts[ s.dataTypes[0] ] ?
- s.accepts[ s.dataTypes[0] ] + ( s.dataTypes[ 0 ] !== "*" ? ", " + allTypes + "; q=0.01" : "" ) :
- s.accepts[ "*" ]
- );
-
- // Check for headers option
- for ( i in s.headers ) {
- jqXHR.setRequestHeader( i, s.headers[ i ] );
- }
-
- // Allow custom headers/mimetypes and early abort
- if ( s.beforeSend && ( s.beforeSend.call( callbackContext, jqXHR, s ) === false || state === 2 ) ) {
- // Abort if not done already and return
- return jqXHR.abort();
- }
-
- // aborting is no longer a cancellation
- strAbort = "abort";
-
- // Install callbacks on deferreds
- for ( i in { success: 1, error: 1, complete: 1 } ) {
- jqXHR[ i ]( s[ i ] );
- }
-
- // Get transport
- transport = inspectPrefiltersOrTransports( transports, s, options, jqXHR );
-
- // If no transport, we auto-abort
- if ( !transport ) {
- done( -1, "No Transport" );
- } else {
- jqXHR.readyState = 1;
-
- // Send global event
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxSend", [ jqXHR, s ] );
- }
- // Timeout
- if ( s.async && s.timeout > 0 ) {
- timeoutTimer = setTimeout(function() {
- jqXHR.abort("timeout");
- }, s.timeout );
- }
-
- try {
- state = 1;
- transport.send( requestHeaders, done );
- } catch ( e ) {
- // Propagate exception as error if not done
- if ( state < 2 ) {
- done( -1, e );
- // Simply rethrow otherwise
- } else {
- throw e;
- }
- }
- }
-
- // Callback for when everything is done
- function done( status, nativeStatusText, responses, headers ) {
- var isSuccess, success, error, response, modified,
- statusText = nativeStatusText;
-
- // Called once
- if ( state === 2 ) {
- return;
- }
-
- // State is "done" now
- state = 2;
-
- // Clear timeout if it exists
- if ( timeoutTimer ) {
- clearTimeout( timeoutTimer );
- }
-
- // Dereference transport for early garbage collection
- // (no matter how long the jqXHR object will be used)
- transport = undefined;
-
- // Cache response headers
- responseHeadersString = headers || "";
-
- // Set readyState
- jqXHR.readyState = status > 0 ? 4 : 0;
-
- // Get response data
- if ( responses ) {
- response = ajaxHandleResponses( s, jqXHR, responses );
- }
-
- // If successful, handle type chaining
- if ( status >= 200 && status < 300 || status === 304 ) {
-
- // Set the If-Modified-Since and/or If-None-Match header, if in ifModified mode.
- if ( s.ifModified ) {
- modified = jqXHR.getResponseHeader("Last-Modified");
- if ( modified ) {
- jQuery.lastModified[ cacheURL ] = modified;
- }
- modified = jqXHR.getResponseHeader("etag");
- if ( modified ) {
- jQuery.etag[ cacheURL ] = modified;
- }
- }
-
- // If not modified
- if ( status === 304 ) {
- isSuccess = true;
- statusText = "notmodified";
-
- // If we have data
- } else {
- isSuccess = ajaxConvert( s, response );
- statusText = isSuccess.state;
- success = isSuccess.data;
- error = isSuccess.error;
- isSuccess = !error;
- }
- } else {
- // We extract error from statusText
- // then normalize statusText and status for non-aborts
- error = statusText;
- if ( status || !statusText ) {
- statusText = "error";
- if ( status < 0 ) {
- status = 0;
- }
- }
- }
-
- // Set data for the fake xhr object
- jqXHR.status = status;
- jqXHR.statusText = ( nativeStatusText || statusText ) + "";
-
- // Success/Error
- if ( isSuccess ) {
- deferred.resolveWith( callbackContext, [ success, statusText, jqXHR ] );
- } else {
- deferred.rejectWith( callbackContext, [ jqXHR, statusText, error ] );
- }
-
- // Status-dependent callbacks
- jqXHR.statusCode( statusCode );
- statusCode = undefined;
-
- if ( fireGlobals ) {
- globalEventContext.trigger( isSuccess ? "ajaxSuccess" : "ajaxError",
- [ jqXHR, s, isSuccess ? success : error ] );
- }
-
- // Complete
- completeDeferred.fireWith( callbackContext, [ jqXHR, statusText ] );
-
- if ( fireGlobals ) {
- globalEventContext.trigger( "ajaxComplete", [ jqXHR, s ] );
- // Handle the global AJAX counter
- if ( !( --jQuery.active ) ) {
- jQuery.event.trigger("ajaxStop");
- }
- }
- }
-
- return jqXHR;
- },
-
- getScript: function( url, callback ) {
- return jQuery.get( url, undefined, callback, "script" );
- },
-
- getJSON: function( url, data, callback ) {
- return jQuery.get( url, data, callback, "json" );
- }
-});
-
-/* Handles responses to an ajax request:
- * - sets all responseXXX fields accordingly
- * - 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,
- responseFields = s.responseFields;
-
- // Fill responseXXX fields
- for ( type in responseFields ) {
- if ( type in responses ) {
- jqXHR[ responseFields[type] ] = responses[ type ];
- }
- }
-
- // 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
-function ajaxConvert( s, response ) {
-
- var conv, conv2, current, tmp,
- converters = {},
- i = 0,
- // Work with a copy of dataTypes in case we need to modify it for conversion
- dataTypes = s.dataTypes.slice(),
- prev = dataTypes[ 0 ];
-
- // Apply the dataFilter if provided
- if ( s.dataFilter ) {
- response = s.dataFilter( response, s.dataType );
- }
-
- // Create converters map with lowercased keys
- if ( dataTypes[ 1 ] ) {
- for ( conv in s.converters ) {
- converters[ conv.toLowerCase() ] = s.converters[ conv ];
- }
- }
-
- // Convert to each sequential dataType, tolerating list modification
- for ( ; (current = dataTypes[++i]); ) {
-
- // There's only work to do if current dataType is non-auto
- if ( current !== "*" ) {
-
- // Convert response if prev dataType is non-auto and differs from current
- 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.splice( i--, 0, current );
- }
-
- 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 };
- }
- }
- }
- }
-
- // Update prev for next iteration
- prev = current;
- }
- }
-
- return { state: "success", data: response };
-}
-// Install script dataType
-jQuery.ajaxSetup({
- accepts: {
- script: "text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"
- },
- contents: {
- script: /(?:java|ecma)script/
- },
- converters: {
- "text script": function( text ) {
- jQuery.globalEval( text );
- return text;
- }
- }
-});
-
-// Handle cache's special case and global
-jQuery.ajaxPrefilter( "script", function( s ) {
- if ( s.cache === undefined ) {
- s.cache = false;
- }
- if ( s.crossDomain ) {
- s.type = "GET";
- s.global = false;
- }
-});
-
-// Bind script tag hack transport
-jQuery.ajaxTransport( "script", function(s) {
-
- // This transport only deals with cross domain requests
- if ( s.crossDomain ) {
-
- var script,
- head = document.head || jQuery("head")[0] || document.documentElement;
-
- return {
-
- send: function( _, callback ) {
-
- script = document.createElement("script");
-
- script.async = true;
-
- if ( s.scriptCharset ) {
- script.charset = s.scriptCharset;
- }
-
- script.src = s.url;
-
- // Attach handlers for all browsers
- script.onload = script.onreadystatechange = function( _, isAbort ) {
-
- if ( isAbort || !script.readyState || /loaded|complete/.test( script.readyState ) ) {
-
- // Handle memory leak in IE
- script.onload = script.onreadystatechange = null;
-
- // Remove the script
- if ( script.parentNode ) {
- script.parentNode.removeChild( script );
- }
-
- // Dereference the script
- script = null;
-
- // Callback if not abort
- if ( !isAbort ) {
- callback( 200, "success" );
- }
- }
- };
-
- // Circumvent IE6 bugs with base elements (#2709 and #4378) by prepending
- // Use native DOM manipulation to avoid our domManip AJAX trickery
- head.insertBefore( script, head.firstChild );
- },
-
- abort: function() {
- if ( script ) {
- script.onload( undefined, true );
- }
- }
- };
- }
-});
-var oldCallbacks = [],
- rjsonp = /(=)\?(?=&|$)|\?\?/;
-
-// Default jsonp settings
-jQuery.ajaxSetup({
- jsonp: "callback",
- jsonpCallback: function() {
- var callback = oldCallbacks.pop() || ( jQuery.expando + "_" + ( ajax_nonce++ ) );
- this[ callback ] = true;
- return callback;
- }
-});
-
-// Detect, normalize options and install callbacks for jsonp requests
-jQuery.ajaxPrefilter( "json jsonp", function( s, originalSettings, jqXHR ) {
-
- var callbackName, overwritten, responseContainer,
- jsonProp = s.jsonp !== false && ( rjsonp.test( s.url ) ?
- "url" :
- typeof s.data === "string" && !( s.contentType || "" ).indexOf("application/x-www-form-urlencoded") && rjsonp.test( s.data ) && "data"
- );
-
- // Handle iff the expected data type is "jsonp" or we have a parameter to set
- if ( jsonProp || s.dataTypes[ 0 ] === "jsonp" ) {
-
- // Get callback name, remembering preexisting value associated with it
- callbackName = s.jsonpCallback = jQuery.isFunction( s.jsonpCallback ) ?
- s.jsonpCallback() :
- s.jsonpCallback;
-
- // Insert callback into url or form data
- if ( jsonProp ) {
- s[ jsonProp ] = s[ jsonProp ].replace( rjsonp, "$1" + callbackName );
- } else if ( s.jsonp !== false ) {
- s.url += ( ajax_rquery.test( s.url ) ? "&" : "?" ) + s.jsonp + "=" + callbackName;
- }
-
- // Use data converter to retrieve json after script execution
- s.converters["script json"] = function() {
- if ( !responseContainer ) {
- jQuery.error( callbackName + " was not called" );
- }
- return responseContainer[ 0 ];
- };
-
- // force json dataType
- s.dataTypes[ 0 ] = "json";
-
- // Install callback
- overwritten = window[ callbackName ];
- window[ callbackName ] = function() {
- responseContainer = arguments;
- };
-
- // Clean-up function (fires after converters)
- jqXHR.always(function() {
- // Restore preexisting value
- window[ callbackName ] = overwritten;
-
- // Save back as free
- if ( s[ callbackName ] ) {
- // make sure that re-using the options doesn't screw things around
- s.jsonpCallback = originalSettings.jsonpCallback;
-
- // save the callback name for future use
- oldCallbacks.push( callbackName );
- }
-
- // Call if it was a function and we have a response
- if ( responseContainer && jQuery.isFunction( overwritten ) ) {
- overwritten( responseContainer[ 0 ] );
- }
-
- responseContainer = overwritten = undefined;
- });
-
- // Delegate to script
- return "script";
- }
-});
-var xhrCallbacks, xhrSupported,
- xhrId = 0,
- // #5280: Internet Explorer will keep connections alive if we don't abort on unload
- xhrOnUnloadAbort = window.ActiveXObject && function() {
- // Abort all pending requests
- var key;
- for ( key in xhrCallbacks ) {
- xhrCallbacks[ key ]( undefined, true );
- }
- };
-
-// Functions to create xhrs
-function createStandardXHR() {
- try {
- return new window.XMLHttpRequest();
- } catch( e ) {}
-}
-
-function createActiveXHR() {
- try {
- return new window.ActiveXObject("Microsoft.XMLHTTP");
- } catch( e ) {}
-}
-
-// Create the request object
-// (This is still attached to ajaxSettings for backward compatibility)
-jQuery.ajaxSettings.xhr = window.ActiveXObject ?
- /* Microsoft failed to properly
- * implement the XMLHttpRequest in IE7 (can't request local files),
- * so we use the ActiveXObject when it is available
- * Additionally XMLHttpRequest can be disabled in IE7/IE8 so
- * we need a fallback.
- */
- function() {
- return !this.isLocal && createStandardXHR() || createActiveXHR();
- } :
- // For all other browsers, use the standard XMLHttpRequest object
- createStandardXHR;
-
-// Determine support properties
-xhrSupported = jQuery.ajaxSettings.xhr();
-jQuery.support.cors = !!xhrSupported && ( "withCredentials" in xhrSupported );
-xhrSupported = jQuery.support.ajax = !!xhrSupported;
-
-// Create transport if the browser can provide an xhr
-if ( xhrSupported ) {
-
- jQuery.ajaxTransport(function( s ) {
- // Cross domain only allowed if supported through XMLHttpRequest
- if ( !s.crossDomain || jQuery.support.cors ) {
-
- var callback;
-
- return {
- send: function( headers, complete ) {
-
- // Get a new xhr
- var handle, i,
- xhr = s.xhr();
-
- // Open the socket
- // Passing null username, generates a login popup on Opera (#2865)
- if ( s.username ) {
- xhr.open( s.type, s.url, s.async, s.username, s.password );
- } else {
- xhr.open( s.type, s.url, s.async );
- }
-
- // Apply custom fields if provided
- if ( s.xhrFields ) {
- for ( i in s.xhrFields ) {
- xhr[ i ] = s.xhrFields[ i ];
- }
- }
-
- // Override mime type if needed
- if ( s.mimeType && xhr.overrideMimeType ) {
- xhr.overrideMimeType( s.mimeType );
- }
-
- // X-Requested-With header
- // For cross-domain requests, seeing as conditions for a preflight are
- // akin to a jigsaw puzzle, we simply never set it to be sure.
- // (it can always be set on a per-request basis or even using ajaxSetup)
- // For same-domain requests, won't change header if already provided.
- if ( !s.crossDomain && !headers["X-Requested-With"] ) {
- headers["X-Requested-With"] = "XMLHttpRequest";
- }
-
- // Need an extra try/catch for cross domain requests in Firefox 3
- try {
- for ( i in headers ) {
- xhr.setRequestHeader( i, headers[ i ] );
- }
- } catch( err ) {}
-
- // Do send the request
- // This may raise an exception which is actually
- // handled in jQuery.ajax (so no try/catch here)
- xhr.send( ( s.hasContent && s.data ) || null );
-
- // Listener
- callback = function( _, isAbort ) {
-
- var status,
- statusText,
- responseHeaders,
- responses,
- xml;
-
- // Firefox throws exceptions when accessing properties
- // of an xhr when a network error occurred
- // http://helpful.knobs-dials.com/index.php/Component_returned_failure_code:_0x80040111_(NS_ERROR_NOT_AVAILABLE)
- try {
-
- // Was never called and is aborted or complete
- if ( callback && ( isAbort || xhr.readyState === 4 ) ) {
-
- // Only called once
- callback = undefined;
-
- // Do not keep as active anymore
- if ( handle ) {
- xhr.onreadystatechange = jQuery.noop;
- if ( xhrOnUnloadAbort ) {
- delete xhrCallbacks[ handle ];
- }
- }
-
- // If it's an abort
- if ( isAbort ) {
- // Abort it manually if needed
- if ( xhr.readyState !== 4 ) {
- xhr.abort();
- }
- } else {
- responses = {};
- status = xhr.status;
- xml = xhr.responseXML;
- responseHeaders = xhr.getAllResponseHeaders();
-
- // Construct response list
- if ( xml && xml.documentElement /* #4958 */ ) {
- responses.xml = xml;
- }
-
- // When requesting binary data, IE6-9 will throw an exception
- // on any attempt to access responseText (#11426)
- if ( typeof xhr.responseText === "string" ) {
- responses.text = xhr.responseText;
- }
-
- // Firefox throws an exception when accessing
- // statusText for faulty cross-domain requests
- try {
- statusText = xhr.statusText;
- } catch( e ) {
- // We normalize with Webkit giving an empty statusText
- statusText = "";
- }
-
- // Filter status for non standard behaviors
-
- // If the request is local and we have data: assume a success
- // (success with no data won't get notified, that's the best we
- // can do given current implementations)
- if ( !status && s.isLocal && !s.crossDomain ) {
- status = responses.text ? 200 : 404;
- // IE - #1450: sometimes returns 1223 when it should be 204
- } else if ( status === 1223 ) {
- status = 204;
- }
- }
- }
- } catch( firefoxAccessException ) {
- if ( !isAbort ) {
- complete( -1, firefoxAccessException );
- }
- }
-
- // Call complete if needed
- if ( responses ) {
- complete( status, statusText, responses, responseHeaders );
- }
- };
-
- if ( !s.async ) {
- // if we're in sync mode we fire the callback
- callback();
- } else if ( xhr.readyState === 4 ) {
- // (IE6 & IE7) if it's in cache and has been
- // retrieved directly we need to fire the callback
- setTimeout( callback );
- } else {
- handle = ++xhrId;
- if ( xhrOnUnloadAbort ) {
- // Create the active xhrs callbacks list if needed
- // and attach the unload handler
- if ( !xhrCallbacks ) {
- xhrCallbacks = {};
- jQuery( window ).unload( xhrOnUnloadAbort );
- }
- // Add to list of active xhrs callbacks
- xhrCallbacks[ handle ] = callback;
- }
- xhr.onreadystatechange = callback;
- }
- },
-
- abort: function() {
- if ( callback ) {
- callback( undefined, true );
- }
- }
- };
- }
- });
-}
-var fxNow, timerId,
- rfxtypes = /^(?:toggle|show|hide)$/,
- rfxnum = new RegExp( "^(?:([+-])=|)(" + core_pnum + ")([a-z%]*)$", "i" ),
- rrun = /queueHooks$/,
- animationPrefilters = [ defaultPrefilter ],
- tweeners = {
- "*": [function( prop, value ) {
- var end, unit,
- tween = this.createTween( prop, value ),
- parts = rfxnum.exec( value ),
- target = tween.cur(),
- start = +target || 0,
- scale = 1,
- maxIterations = 20;
-
- if ( parts ) {
- end = +parts[2];
- unit = parts[3] || ( jQuery.cssNumber[ prop ] ? "" : "px" );
-
- // 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;
-
- 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";
-
- // Adjust and apply
- start = start / scale;
- jQuery.style( tween.elem, prop, start + unit );
-
- // 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 );
- }
-
- tween.unit = unit;
- tween.start = start;
- // If a +=/-= token was provided, we're doing a relative animation
- tween.end = parts[1] ? start + ( parts[1] + 1 ) * end : end;
- }
- return tween;
- }]
- };
-
-// Animations created synchronously will run synchronously
-function createFxNow() {
- setTimeout(function() {
- fxNow = undefined;
- });
- return ( fxNow = jQuery.now() );
-}
-
-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 ) ) {
-
- // we're done with this property
- return;
- }
- }
- });
-}
-
-function Animation( elem, properties, options ) {
- var result,
- stopped,
- index = 0,
- length = animationPrefilters.length,
- deferred = jQuery.Deferred().always( function() {
- // don't match elem in the :animated selector
- delete tick.elem;
- }),
- tick = function() {
- if ( stopped ) {
- return false;
- }
- var currentTime = fxNow || createFxNow(),
- remaining = Math.max( 0, animation.startTime + animation.duration - currentTime ),
- // archaic crash bug won't allow us to use 1 - ( 0.5 || 0 ) (#12497)
- temp = remaining / animation.duration || 0,
- percent = 1 - temp,
- index = 0,
- length = animation.tweens.length;
-
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( percent );
- }
-
- deferred.notifyWith( elem, [ animation, percent, remaining ]);
-
- if ( percent < 1 && length ) {
- return remaining;
- } else {
- deferred.resolveWith( elem, [ animation ] );
- return false;
- }
- },
- animation = deferred.promise({
- elem: elem,
- props: jQuery.extend( {}, properties ),
- opts: jQuery.extend( true, { specialEasing: {} }, options ),
- originalProperties: properties,
- originalOptions: options,
- startTime: fxNow || createFxNow(),
- duration: options.duration,
- tweens: [],
- createTween: function( prop, end ) {
- var tween = jQuery.Tween( elem, animation.opts, prop, end,
- animation.opts.specialEasing[ prop ] || animation.opts.easing );
- animation.tweens.push( tween );
- return tween;
- },
- stop: function( gotoEnd ) {
- var index = 0,
- // if we are going to the end, we want to run all the tweens
- // otherwise we skip this part
- length = gotoEnd ? animation.tweens.length : 0;
- if ( stopped ) {
- return this;
- }
- stopped = true;
- for ( ; index < length ; index++ ) {
- animation.tweens[ index ].run( 1 );
- }
-
- // resolve when we played the last frame
- // otherwise, reject
- if ( gotoEnd ) {
- deferred.resolveWith( elem, [ animation, gotoEnd ] );
- } else {
- deferred.rejectWith( elem, [ animation, gotoEnd ] );
- }
- return this;
- }
- }),
- props = animation.props;
-
- propFilter( props, animation.opts.specialEasing );
-
- for ( ; index < length ; index++ ) {
- result = animationPrefilters[ index ].call( animation, elem, props, animation.opts );
- if ( result ) {
- return result;
- }
- }
-
- createTweens( animation, props );
-
- if ( jQuery.isFunction( animation.opts.start ) ) {
- animation.opts.start.call( elem, animation );
- }
-
- jQuery.fx.timer(
- jQuery.extend( tick, {
- elem: elem,
- anim: animation,
- queue: animation.opts.queue
- })
- );
-
- // attach callbacks from options
- return animation.progress( animation.opts.progress )
- .done( animation.opts.done, animation.opts.complete )
- .fail( animation.opts.fail )
- .always( animation.opts.always );
-}
-
-function propFilter( props, specialEasing ) {
- var index, name, easing, value, hooks;
-
- // camelCase, specialEasing and expand cssHook pass
- for ( index in props ) {
- name = jQuery.camelCase( index );
- easing = specialEasing[ name ];
- value = props[ index ];
- if ( jQuery.isArray( value ) ) {
- easing = value[ 1 ];
- value = props[ index ] = value[ 0 ];
- }
-
- if ( index !== name ) {
- props[ name ] = value;
- delete props[ index ];
- }
-
- hooks = jQuery.cssHooks[ name ];
- if ( hooks && "expand" in hooks ) {
- value = hooks.expand( value );
- delete props[ name ];
-
- // not quite $.extend, this wont overwrite keys already present.
- // also - reusing 'index' from above because we have the correct "name"
- for ( index in value ) {
- if ( !( index in props ) ) {
- props[ index ] = value[ index ];
- specialEasing[ index ] = easing;
- }
- }
- } else {
- specialEasing[ name ] = easing;
- }
- }
-}
-
-jQuery.Animation = jQuery.extend( Animation, {
-
- tweener: function( props, callback ) {
- if ( jQuery.isFunction( props ) ) {
- callback = props;
- props = [ "*" ];
- } else {
- props = props.split(" ");
- }
-
- var prop,
- index = 0,
- length = props.length;
-
- for ( ; index < length ; index++ ) {
- prop = props[ index ];
- tweeners[ prop ] = tweeners[ prop ] || [];
- tweeners[ prop ].unshift( callback );
- }
- },
-
- prefilter: function( callback, prepend ) {
- if ( prepend ) {
- animationPrefilters.unshift( callback );
- } else {
- animationPrefilters.push( callback );
- }
- }
-});
-
-function defaultPrefilter( elem, props, opts ) {
- /*jshint validthis:true */
- var index, prop, value, length, dataShow, toggle, tween, hooks, oldfire,
- anim = this,
- style = elem.style,
- orig = {},
- handled = [],
- hidden = elem.nodeType && isHidden( elem );
-
- // handle queue: false promises
- if ( !opts.queue ) {
- hooks = jQuery._queueHooks( elem, "fx" );
- if ( hooks.unqueued == null ) {
- hooks.unqueued = 0;
- oldfire = hooks.empty.fire;
- hooks.empty.fire = function() {
- if ( !hooks.unqueued ) {
- oldfire();
- }
- };
- }
- hooks.unqueued++;
-
- anim.always(function() {
- // doing this makes sure that the complete handler will be called
- // before this completes
- anim.always(function() {
- hooks.unqueued--;
- if ( !jQuery.queue( elem, "fx" ).length ) {
- hooks.empty.fire();
- }
- });
- });
- }
-
- // height/width overflow pass
- if ( elem.nodeType === 1 && ( "height" in props || "width" in props ) ) {
- // Make sure that nothing sneaks out
- // Record all 3 overflow attributes because IE does not
- // change the overflow attribute when overflowX and
- // overflowY are set to the same value
- opts.overflow = [ style.overflow, style.overflowX, style.overflowY ];
-
- // Set display property to inline-block for height/width
- // animations on inline elements that are having width/height animated
- if ( jQuery.css( elem, "display" ) === "inline" &&
- jQuery.css( elem, "float" ) === "none" ) {
-
- // inline-level elements accept inline-block;
- // block-level elements need to be inline with layout
- if ( !jQuery.support.inlineBlockNeedsLayout || css_defaultDisplay( elem.nodeName ) === "inline" ) {
- style.display = "inline-block";
-
- } else {
- style.zoom = 1;
- }
- }
- }
-
- if ( opts.overflow ) {
- style.overflow = "hidden";
- if ( !jQuery.support.shrinkWrapBlocks ) {
- anim.done(function() {
- style.overflow = opts.overflow[ 0 ];
- style.overflowX = opts.overflow[ 1 ];
- style.overflowY = opts.overflow[ 2 ];
- });
- }
- }
-
-
- // show/hide pass
- for ( index in props ) {
- value = props[ index ];
- if ( rfxtypes.exec( value ) ) {
- delete props[ index ];
- toggle = toggle || value === "toggle";
- if ( value === ( hidden ? "hide" : "show" ) ) {
- continue;
- }
- handled.push( index );
- }
- }
-
- length = handled.length;
- if ( length ) {
- dataShow = jQuery._data( elem, "fxshow" ) || jQuery._data( elem, "fxshow", {} );
- if ( "hidden" in dataShow ) {
- hidden = dataShow.hidden;
- }
-
- // store state if its toggle - enables .stop().toggle() to "reverse"
- if ( toggle ) {
- dataShow.hidden = !hidden;
- }
- if ( hidden ) {
- jQuery( elem ).show();
- } else {
- anim.done(function() {
- jQuery( elem ).hide();
- });
- }
- anim.done(function() {
- var prop;
- jQuery._removeData( elem, "fxshow" );
- for ( prop in orig ) {
- jQuery.style( elem, prop, orig[ prop ] );
- }
- });
- 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 );
-
- if ( !( prop in dataShow ) ) {
- dataShow[ prop ] = tween.start;
- if ( hidden ) {
- tween.end = tween.start;
- tween.start = prop === "width" || prop === "height" ? 1 : 0;
- }
- }
- }
- }
-}
-
-function Tween( elem, options, prop, end, easing ) {
- return new Tween.prototype.init( elem, options, prop, end, easing );
-}
-jQuery.Tween = Tween;
-
-Tween.prototype = {
- constructor: Tween,
- init: function( elem, options, prop, end, easing, unit ) {
- this.elem = elem;
- this.prop = prop;
- this.easing = easing || "swing";
- this.options = options;
- this.start = this.now = this.cur();
- this.end = end;
- this.unit = unit || ( jQuery.cssNumber[ prop ] ? "" : "px" );
- },
- cur: function() {
- var hooks = Tween.propHooks[ this.prop ];
-
- return hooks && hooks.get ?
- hooks.get( this ) :
- Tween.propHooks._default.get( this );
- },
- run: function( percent ) {
- var eased,
- hooks = Tween.propHooks[ this.prop ];
-
- if ( this.options.duration ) {
- this.pos = eased = jQuery.easing[ this.easing ](
- percent, this.options.duration * percent, 0, 1, this.options.duration
- );
- } else {
- this.pos = eased = percent;
- }
- this.now = ( this.end - this.start ) * eased + this.start;
-
- if ( this.options.step ) {
- this.options.step.call( this.elem, this.now, this );
- }
-
- if ( hooks && hooks.set ) {
- hooks.set( this );
- } else {
- Tween.propHooks._default.set( this );
- }
- return this;
- }
-};
-
-Tween.prototype.init.prototype = Tween.prototype;
-
-Tween.propHooks = {
- _default: {
- get: function( tween ) {
- var result;
-
- if ( tween.elem[ tween.prop ] != null &&
- (!tween.elem.style || tween.elem.style[ tween.prop ] == null) ) {
- return tween.elem[ tween.prop ];
- }
-
- // passing a non empty string as a 3rd parameter to .css will automatically
- // attempt a parseFloat and fallback to a string if the parse fails
- // so, simple values such as "10px" are parsed to Float.
- // complex values such as "rotate(1rad)" are returned as is.
- result = jQuery.css( tween.elem, tween.prop, "auto" );
- // Empty strings, null, undefined and "auto" are converted to 0.
- return !result || result === "auto" ? 0 : result;
- },
- set: function( tween ) {
- // use step hook for back compat - use cssHook if its there - use .style if its
- // available and use plain properties where available
- if ( jQuery.fx.step[ tween.prop ] ) {
- jQuery.fx.step[ tween.prop ]( tween );
- } else if ( tween.elem.style && ( tween.elem.style[ jQuery.cssProps[ tween.prop ] ] != null || jQuery.cssHooks[ tween.prop ] ) ) {
- jQuery.style( tween.elem, tween.prop, tween.now + tween.unit );
- } else {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
- }
-};
-
-// Remove in 2.0 - this supports IE8's panic based approach
-// to setting things on disconnected nodes
-
-Tween.propHooks.scrollTop = Tween.propHooks.scrollLeft = {
- set: function( tween ) {
- if ( tween.elem.nodeType && tween.elem.parentNode ) {
- tween.elem[ tween.prop ] = tween.now;
- }
- }
-};
-
-jQuery.each([ "toggle", "show", "hide" ], function( i, name ) {
- var cssFn = jQuery.fn[ name ];
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return speed == null || typeof speed === "boolean" ?
- cssFn.apply( this, arguments ) :
- this.animate( genFx( name, true ), speed, easing, callback );
- };
-});
-
-jQuery.fn.extend({
- fadeTo: function( speed, to, easing, callback ) {
-
- // show any hidden elements after setting opacity to 0
- return this.filter( isHidden ).css( "opacity", 0 ).show()
-
- // animate to the value specified
- .end().animate({ opacity: to }, speed, easing, callback );
- },
- animate: function( prop, speed, easing, callback ) {
- var empty = jQuery.isEmptyObject( prop ),
- optall = jQuery.speed( speed, easing, callback ),
- doAnimation = function() {
- // Operate on a copy of prop so per-property easing won't be lost
- var anim = Animation( this, jQuery.extend( {}, prop ), optall );
- doAnimation.finish = function() {
- anim.stop( true );
- };
- // Empty animations, or finishing resolves immediately
- if ( empty || jQuery._data( this, "finish" ) ) {
- anim.stop( true );
- }
- };
- doAnimation.finish = doAnimation;
-
- return empty || optall.queue === false ?
- this.each( doAnimation ) :
- this.queue( optall.queue, doAnimation );
- },
- stop: function( type, clearQueue, gotoEnd ) {
- var stopQueue = function( hooks ) {
- var stop = hooks.stop;
- delete hooks.stop;
- stop( gotoEnd );
- };
-
- if ( typeof type !== "string" ) {
- gotoEnd = clearQueue;
- clearQueue = type;
- type = undefined;
- }
- if ( clearQueue && type !== false ) {
- this.queue( type || "fx", [] );
- }
-
- return this.each(function() {
- var dequeue = true,
- index = type != null && type + "queueHooks",
- timers = jQuery.timers,
- data = jQuery._data( this );
-
- if ( index ) {
- if ( data[ index ] && data[ index ].stop ) {
- stopQueue( data[ index ] );
- }
- } else {
- for ( index in data ) {
- if ( data[ index ] && data[ index ].stop && rrun.test( index ) ) {
- stopQueue( data[ index ] );
- }
- }
- }
-
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && (type == null || timers[ index ].queue === type) ) {
- timers[ index ].anim.stop( gotoEnd );
- dequeue = false;
- timers.splice( index, 1 );
- }
- }
-
- // start the next in the queue if the last step wasn't forced
- // timers currently will call their complete callbacks, which will dequeue
- // but only if they were gotoEnd
- if ( dequeue || !gotoEnd ) {
- jQuery.dequeue( this, type );
- }
- });
- },
- finish: function( type ) {
- if ( type !== false ) {
- type = type || "fx";
- }
- return this.each(function() {
- var index,
- data = jQuery._data( this ),
- queue = data[ type + "queue" ],
- hooks = data[ type + "queueHooks" ],
- timers = jQuery.timers,
- length = queue ? queue.length : 0;
-
- // enable finishing flag on private data
- data.finish = true;
-
- // empty the queue first
- jQuery.queue( this, type, [] );
-
- if ( hooks && hooks.cur && hooks.cur.finish ) {
- hooks.cur.finish.call( this );
- }
-
- // look for any active animations, and finish them
- for ( index = timers.length; index--; ) {
- if ( timers[ index ].elem === this && timers[ index ].queue === type ) {
- timers[ index ].anim.stop( true );
- timers.splice( index, 1 );
- }
- }
-
- // look for any animations in the old queue and finish them
- for ( index = 0; index < length; index++ ) {
- if ( queue[ index ] && queue[ index ].finish ) {
- queue[ index ].finish.call( this );
- }
- }
-
- // turn off finishing flag
- delete data.finish;
- });
- }
-});
-
-// Generate parameters to create a standard animation
-function genFx( type, includeWidth ) {
- var which,
- attrs = { height: type },
- i = 0;
-
- // if we include width, step value is 1 to do all cssExpand values,
- // if we don't include width, step value is 2 to skip over Left and Right
- includeWidth = includeWidth? 1 : 0;
- for( ; i < 4 ; i += 2 - includeWidth ) {
- which = cssExpand[ i ];
- attrs[ "margin" + which ] = attrs[ "padding" + which ] = type;
- }
-
- if ( includeWidth ) {
- attrs.opacity = attrs.width = type;
- }
-
- return attrs;
-}
-
-// Generate shortcuts for custom animations
-jQuery.each({
- slideDown: genFx("show"),
- slideUp: genFx("hide"),
- slideToggle: genFx("toggle"),
- fadeIn: { opacity: "show" },
- fadeOut: { opacity: "hide" },
- fadeToggle: { opacity: "toggle" }
-}, function( name, props ) {
- jQuery.fn[ name ] = function( speed, easing, callback ) {
- return this.animate( props, speed, easing, callback );
- };
-});
-
-jQuery.speed = function( speed, easing, fn ) {
- var opt = speed && typeof speed === "object" ? jQuery.extend( {}, speed ) : {
- complete: fn || !fn && easing ||
- jQuery.isFunction( speed ) && speed,
- duration: speed,
- easing: fn && easing || easing && !jQuery.isFunction( easing ) && easing
- };
-
- opt.duration = jQuery.fx.off ? 0 : typeof opt.duration === "number" ? opt.duration :
- opt.duration in jQuery.fx.speeds ? jQuery.fx.speeds[ opt.duration ] : jQuery.fx.speeds._default;
-
- // normalize opt.queue - true/undefined/null -> "fx"
- if ( opt.queue == null || opt.queue === true ) {
- opt.queue = "fx";
- }
-
- // Queueing
- opt.old = opt.complete;
-
- opt.complete = function() {
- if ( jQuery.isFunction( opt.old ) ) {
- opt.old.call( this );
- }
-
- if ( opt.queue ) {
- jQuery.dequeue( this, opt.queue );
- }
- };
-
- return opt;
-};
-
-jQuery.easing = {
- linear: function( p ) {
- return p;
- },
- swing: function( p ) {
- return 0.5 - Math.cos( p*Math.PI ) / 2;
- }
-};
-
-jQuery.timers = [];
-jQuery.fx = Tween.prototype.init;
-jQuery.fx.tick = function() {
- var timer,
- timers = jQuery.timers,
- i = 0;
-
- fxNow = jQuery.now();
-
- for ( ; i < timers.length; i++ ) {
- timer = timers[ i ];
- // Checks the timer has not already been removed
- if ( !timer() && timers[ i ] === timer ) {
- timers.splice( i--, 1 );
- }
- }
-
- if ( !timers.length ) {
- jQuery.fx.stop();
- }
- fxNow = undefined;
-};
-
-jQuery.fx.timer = function( timer ) {
- if ( timer() && jQuery.timers.push( timer ) ) {
- jQuery.fx.start();
- }
-};
-
-jQuery.fx.interval = 13;
-
-jQuery.fx.start = function() {
- if ( !timerId ) {
- timerId = setInterval( jQuery.fx.tick, jQuery.fx.interval );
- }
-};
-
-jQuery.fx.stop = function() {
- clearInterval( timerId );
- timerId = null;
-};
-
-jQuery.fx.speeds = {
- slow: 600,
- fast: 200,
- // Default speed
- _default: 400
-};
-
-// Back Compat <1.8 extension point
-jQuery.fx.step = {};
-
-if ( jQuery.expr && jQuery.expr.filters ) {
- jQuery.expr.filters.animated = function( elem ) {
- return jQuery.grep(jQuery.timers, function( fn ) {
- return elem === fn.elem;
- }).length;
- };
-}
-jQuery.fn.offset = function( options ) {
- if ( arguments.length ) {
- return options === undefined ?
- this :
- this.each(function( i ) {
- jQuery.offset.setOffset( this, options, i );
- });
- }
-
- var docElem, win,
- box = { top: 0, left: 0 },
- elem = this[ 0 ],
- doc = elem && elem.ownerDocument;
-
- if ( !doc ) {
- return;
- }
-
- docElem = doc.documentElement;
-
- // Make sure it's not a disconnected DOM node
- if ( !jQuery.contains( docElem, elem ) ) {
- return box;
- }
-
- // If we don't have gBCR, just use 0,0 rather than error
- // BlackBerry 5, iOS 3 (original iPhone)
- if ( typeof elem.getBoundingClientRect !== "undefined" ) {
- box = elem.getBoundingClientRect();
- }
- win = getWindow( doc );
- return {
- top: box.top + ( win.pageYOffset || docElem.scrollTop ) - ( docElem.clientTop || 0 ),
- left: box.left + ( win.pageXOffset || docElem.scrollLeft ) - ( docElem.clientLeft || 0 )
- };
-};
-
-jQuery.offset = {
-
- setOffset: function( elem, options, i ) {
- var position = jQuery.css( elem, "position" );
-
- // set position first, in-case top/left are set even on static elem
- if ( position === "static" ) {
- elem.style.position = "relative";
- }
-
- var curElem = jQuery( elem ),
- curOffset = curElem.offset(),
- curCSSTop = jQuery.css( elem, "top" ),
- curCSSLeft = jQuery.css( elem, "left" ),
- calculatePosition = ( position === "absolute" || position === "fixed" ) && jQuery.inArray("auto", [curCSSTop, curCSSLeft]) > -1,
- props = {}, curPosition = {}, curTop, curLeft;
-
- // need to be able to calculate position if either top or left is auto and position is either absolute or fixed
- if ( calculatePosition ) {
- curPosition = curElem.position();
- curTop = curPosition.top;
- curLeft = curPosition.left;
- } else {
- curTop = parseFloat( curCSSTop ) || 0;
- curLeft = parseFloat( curCSSLeft ) || 0;
- }
-
- if ( jQuery.isFunction( options ) ) {
- options = options.call( elem, i, curOffset );
- }
-
- if ( options.top != null ) {
- props.top = ( options.top - curOffset.top ) + curTop;
- }
- if ( options.left != null ) {
- props.left = ( options.left - curOffset.left ) + curLeft;
- }
-
- if ( "using" in options ) {
- options.using.call( elem, props );
- } else {
- curElem.css( props );
- }
- }
-};
-
-
-jQuery.fn.extend({
-
- position: function() {
- if ( !this[ 0 ] ) {
- return;
- }
-
- var offsetParent, offset,
- parentOffset = { top: 0, left: 0 },
- elem = this[ 0 ];
-
- // fixed elements are offset from window (parentOffset = {top:0, left: 0}, because it is it's only offset parent
- if ( jQuery.css( elem, "position" ) === "fixed" ) {
- // we assume that getBoundingClientRect is available when computed position is fixed
- offset = elem.getBoundingClientRect();
- } else {
- // Get *real* offsetParent
- offsetParent = this.offsetParent();
-
- // Get correct offsets
- offset = this.offset();
- if ( !jQuery.nodeName( offsetParent[ 0 ], "html" ) ) {
- parentOffset = offsetParent.offset();
- }
-
- // Add offsetParent borders
- parentOffset.top += jQuery.css( offsetParent[ 0 ], "borderTopWidth", true );
- parentOffset.left += jQuery.css( offsetParent[ 0 ], "borderLeftWidth", true );
- }
-
- // Subtract parent offsets and element margins
- // note: when an element has margin: auto the offsetLeft and marginLeft
- // are the same in Safari causing offset.left to incorrectly be 0
- return {
- top: offset.top - parentOffset.top - jQuery.css( elem, "marginTop", true ),
- left: offset.left - parentOffset.left - jQuery.css( elem, "marginLeft", true)
- };
- },
-
- offsetParent: function() {
- return this.map(function() {
- var offsetParent = this.offsetParent || document.documentElement;
- while ( offsetParent && ( !jQuery.nodeName( offsetParent, "html" ) && jQuery.css( offsetParent, "position") === "static" ) ) {
- offsetParent = offsetParent.offsetParent;
- }
- return offsetParent || document.documentElement;
- });
- }
-});
-
-
-// Create scrollLeft and scrollTop methods
-jQuery.each( {scrollLeft: "pageXOffset", scrollTop: "pageYOffset"}, function( method, prop ) {
- var top = /Y/.test( prop );
-
- jQuery.fn[ method ] = function( val ) {
- return jQuery.access( this, function( elem, method, val ) {
- var win = getWindow( elem );
-
- if ( val === undefined ) {
- return win ? (prop in win) ? win[ prop ] :
- win.document.documentElement[ method ] :
- elem[ method ];
- }
-
- if ( win ) {
- win.scrollTo(
- !top ? val : jQuery( win ).scrollLeft(),
- top ? val : jQuery( win ).scrollTop()
- );
-
- } else {
- elem[ method ] = val;
- }
- }, method, val, arguments.length, null );
- };
-});
-
-function getWindow( elem ) {
- return jQuery.isWindow( elem ) ?
- elem :
- elem.nodeType === 9 ?
- elem.defaultView || elem.parentWindow :
- false;
-}
-// Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
-jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name }, function( defaultExtra, funcName ) {
- // margin is only for outerHeight, outerWidth
- jQuery.fn[ funcName ] = function( margin, value ) {
- var chainable = arguments.length && ( defaultExtra || typeof margin !== "boolean" ),
- extra = defaultExtra || ( margin === true || value === true ? "margin" : "border" );
-
- return jQuery.access( this, function( elem, type, value ) {
- var doc;
-
- if ( jQuery.isWindow( elem ) ) {
- // As of 5/8/2012 this will yield incorrect results for Mobile Safari, but there
- // isn't a whole lot we can do. See pull request at this URL for discussion:
- // https://github.com/jquery/jquery/pull/764
- return elem.document.documentElement[ "client" + name ];
- }
-
- // Get document width or height
- if ( elem.nodeType === 9 ) {
- doc = elem.documentElement;
-
- // Either scroll[Width/Height] or offset[Width/Height] or client[Width/Height], whichever is greatest
- // unfortunately, this causes bug #3838 in IE6/8 only, but there is currently no good, small way to fix it.
- return Math.max(
- elem.body[ "scroll" + name ], doc[ "scroll" + name ],
- elem.body[ "offset" + name ], doc[ "offset" + name ],
- doc[ "client" + name ]
- );
- }
-
- return value === undefined ?
- // Get width or height on the element, requesting but not forcing parseFloat
- jQuery.css( elem, type, extra ) :
-
- // Set width or height on the element
- jQuery.style( elem, type, value, extra );
- }, type, chainable ? margin : undefined, chainable, null );
- };
- });
-});
-// Limit scope pollution from any deprecated API
-// (function() {
-
-// })();
-// Expose jQuery to the global object
-window.jQuery = window.$ = jQuery;
-
-// 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; } );
-}
-
-})( window );
\ No newline at end of file
diff --git a/addons/im_livechat/static/ext/static/js/livechat.xml b/addons/im_livechat/static/ext/static/js/livechat.xml
new file mode 100644
index 00000000000..1c7b00466d9
--- /dev/null
+++ b/addons/im_livechat/static/ext/static/js/livechat.xml
@@ -0,0 +1,7 @@
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/addons/im_livechat/static/ext/static/js/livesupport.js b/addons/im_livechat/static/ext/static/js/livesupport.js
index c45e9588c83..fd5cecfe7d9 100644
--- a/addons/im_livechat/static/ext/static/js/livesupport.js
+++ b/addons/im_livechat/static/ext/static/js/livesupport.js
@@ -1,46 +1,48 @@
-define(["nova", "underscore", "oeclient", "require", "jquery",
- "jquery.achtung"], function(nova, _, oeclient, require, $) {
+/*
+ This file must compile in EcmaScript 3 and work in IE7.
+*/
+
+define(["openerp", "im_common", "underscore", "require", "jquery",
+ "jquery.achtung"], function(openerp, im_common, _, require, $) {
+ /* jshint es3: true */
+ "use strict";
+
+ var _t = openerp._t;
+
var livesupport = {};
- var templateEngine = new nova.TemplateEngine();
- templateEngine.extendEnvironment({"toUrl": _.bind(require.toUrl, require)});
- var connection;
-
- var defaultInputPlaceholder;
- var userName;
-
livesupport.main = function(server_url, db, login, password, channel, options) {
- var defs = [];
options = options || {};
_.defaults(options, {
- buttonText: "Chat with one of our collaborators",
- inputPlaceholder: "How may I help you?",
+ buttonText: _t("Chat with one of our collaborators"),
+ inputPlaceholder: _t("How may I help you?"),
defaultMessage: null,
auto: false,
- userName: "Anonymous",
+ userName: _t("Anonymous"),
+ anonymous_mode: true
});
- defaultInputPlaceholder = options.inputPlaceholder;
- userName = options.userName;
- defs.push($.ajax({
- url: require.toUrl("./livesupport_templates.js"),
- jsonp: false,
- jsonpCallback: "oe_livesupport_templates_callback",
- dataType: "jsonp",
- cache: true,
- }).then(function(content) {
- return templateEngine.loadFileContent(content);
- }));
- defs.push(add_css("../css/livesupport.css"));
- defs.push(add_css("./jquery.achtung.css"));
- $.when.apply($, defs).then(function() {
- console.log("starting live support customer app");
- connection = new oeclient.Connection(new oeclient.JsonpRPCConnector(server_url), db, login, password);
- connection.connector.call("/im_livechat/available", {db: db, channel: channel}).then(function(activated) {
+ im_common.notification = notification;
+
+ console.log("starting live support customer app");
+ im_common.connection = new openerp.Session(null, server_url, { override_session: true });
+ return im_common.connection.session_authenticate(db, login, password).then(function() {
+ var defs = [];
+ defs.push(add_css("/im/static/src/css/im_common.css"));
+ defs.push(add_css("/im_livechat/static/ext/static/lib/jquery-achtung/src/ui.achtung.css"));
+ defs.push(im_common.connection.rpc('/web/proxy/load', {path: '/im_livechat/static/ext/static/js/livechat.xml'}).then(function(xml) {
+ openerp.qweb.add_template(xml);
+ }));
+ defs.push(im_common.connection.rpc('/web/proxy/load', {path: '/im/static/src/xml/im_common.xml'}).then(function(xml) {
+ openerp.qweb.add_template(xml);
+ }));
+ return $.when.apply($, defs);
+ }).then(function() {
+ return im_common.connection.rpc("/im_livechat/available", {db: db, channel: channel}).then(function(activated) {
if (! activated & ! options.auto)
return;
- var button = new livesupport.ChatButton(null, channel, options);
+ var button = new im_common.ChatButton(null, channel, options);
button.appendTo($("body"));
if (options.auto)
button.click();
@@ -50,7 +52,7 @@ define(["nova", "underscore", "oeclient", "require", "jquery",
var add_css = function(relative_file_name) {
var css_def = $.Deferred();
- $('
')
+ $('
')
.appendTo($("head")).ready(function() {
css_def.resolve();
});
@@ -61,25 +63,24 @@ define(["nova", "underscore", "oeclient", "require", "jquery",
$.achtung({message: message, timeout: 0, showEffects: false, hideEffects: false});
};
- var ERROR_DELAY = 5000;
-
- livesupport.ChatButton = nova.Widget.$extend({
+ im_common.ChatButton = openerp.Widget.extend({
className: "openerp_style oe_chat_button",
events: {
- "click": "click",
+ "click": "click"
},
- __init__: function(parent, channel, options) {
- this.$super(parent);
+ init: function(parent, channel, options) {
+ this._super(parent);
this.channel = channel;
this.options = options;
this.text = options.buttonText;
},
- render: function() {
- this.$().append(templateEngine.chatButton({widget: this}));
+ start: function() {
+ this.$().append(openerp.qweb.render("chatButton", {widget: this}));
},
click: function() {
if (! this.manager) {
- this.manager = new livesupport.ConversationManager(null);
+ this.manager = new im_common.ConversationManager(this, this.options);
+ this.manager.set("bottom_offset", 37);
this.activated_def = this.manager.start_polling();
}
var def = $.Deferred();
@@ -92,362 +93,28 @@ define(["nova", "underscore", "oeclient", "require", "jquery",
def.reject();
}, 5000);
def.then(_.bind(this.chat, this), function() {
- notification("It seems the connection to the server is encountering problems, please try again later.");
+ im_common.notification(_t("It seems the connection to the server is encountering problems, please try again later."));
});
},
chat: function() {
var self = this;
if (this.manager.conversations.length > 0)
return;
- connection.getModel("im_livechat.channel").call("get_available_user", [this.channel]).then(function(user_id) {
+ im_common.connection.model("im_livechat.channel").call("get_available_user", [this.channel]).then(function(user_id) {
if (! user_id) {
- notification("None of our collaborators seems to be available, please try again later.");
+ im_common.notification(_t("None of our collaborators seems to be available, please try again later."));
return;
}
self.manager.ensure_users([user_id]).then(function() {
var conv = self.manager.activate_user(self.manager.get_user(user_id), true);
if (self.options.defaultMessage) {
conv.received_message({message: self.options.defaultMessage,
- date: oeclient.datetime_to_str(new Date())});
+ date: openerp.datetime_to_str(new Date())});
}
});
});
- },
+ }
});
- livesupport.ImUser = nova.Class.$extend({
- __include__: [nova.DynamicProperties],
- __init__: function(parent, user_rec) {
- nova.DynamicProperties.__init__.call(this, parent);
- user_rec.image_url = require.toUrl("../img/avatar/avatar.jpeg");
- if (user_rec.image)
- user_rec.image_url = "data:image/png;base64," + user_rec.image;
- this.set(user_rec);
- this.set("watcher_count", 0);
- this.on("change:watcher_count", this, function() {
- if (this.get("watcher_count") === 0)
- this.destroy();
- });
- },
- destroy: function() {
- this.trigger("destroyed");
- nova.DynamicProperties.destroy.call(this);
- },
- add_watcher: function() {
- this.set("watcher_count", this.get("watcher_count") + 1);
- },
- remove_watcher: function() {
- this.set("watcher_count", this.get("watcher_count") - 1);
- },
- });
-
- livesupport.ConversationManager = nova.Class.$extend({
- __include__: [nova.DynamicProperties],
- __init__: function(parent) {
- nova.DynamicProperties.__init__.call(this, parent);
- this.set("right_offset", 0);
- this.conversations = [];
- this.users = {};
- this.on("change:right_offset", this, this.calc_positions);
- this.set("window_focus", true);
- this.set("waiting_messages", 0);
- this.focus_hdl = _.bind(function() {
- this.set("window_focus", true);
- }, this);
- $(window).bind("focus", this.focus_hdl);
- this.blur_hdl = _.bind(function() {
- this.set("window_focus", false);
- }, this);
- $(window).bind("blur", this.blur_hdl);
- this.on("change:window_focus", this, this.window_focus_change);
- this.window_focus_change();
- this.on("change:waiting_messages", this, this.messages_change);
- this.messages_change();
- this.create_ting();
- this.activated = false;
- this.users_cache = {};
- this.last = null;
- this.unload_event_handler = _.bind(this.unload, this);
- },
- start_polling: function() {
- var self = this;
-
- var uuid = localStorage["oe_livesupport_uuid"];
- var def = $.when(uuid);
-
- if (! uuid) {
- def = connection.connector.call("/longpolling/im/gen_uuid", {});
- }
- return def.then(function(uuid) {
- localStorage["oe_livesupport_uuid"] = uuid;
- return connection.getModel("im.user").call("get_by_user_id", [uuid]);
- }).then(function(my_id) {
- self.my_id = my_id["id"];
- return connection.getModel("im.user").call("assign_name", [uuid, userName]);
- }).then(function() {
- return self.ensure_users([self.my_id])
- }).then(function() {
- var me = self.users_cache[self.my_id];
- delete self.users_cache[self.my_id];
- self.me = me;
- me.set("name", "You");
- return connection.connector.call("/longpolling/im/activated", {});
- }).then(function(activated) {
- if (activated) {
- self.activated = true;
- $(window).on("unload", self.unload_event_handler);
- self.poll();
- } else {
- return $.Deferred().reject();
- }
- });
- },
- unload: function() {
- connection.getModel("im.user").call("im_disconnect", [], {uuid: this.me.get("uuid"), context: {}});
- },
- ensure_users: function(user_ids) {
- var no_cache = {};
- _.each(user_ids, function(el) {
- if (! this.users_cache[el])
- no_cache[el] = el;
- }, this);
- var self = this;
- if (_.size(no_cache) === 0)
- return $.when();
- else
- return connection.getModel("im.user").call("read", [_.values(no_cache), []]).then(function(users) {
- self.add_to_user_cache(users);
- });
- },
- add_to_user_cache: function(user_recs) {
- _.each(user_recs, function(user_rec) {
- if (! this.users_cache[user_rec.id]) {
- var user = new livesupport.ImUser(this, user_rec);
- this.users_cache[user_rec.id] = user;
- user.on("destroyed", this, function() {
- delete this.users_cache[user_rec.id];
- });
- }
- }, this);
- },
- get_user: function(user_id) {
- return this.users_cache[user_id];
- },
- poll: function() {
- console.debug("live support beggin polling");
- var self = this;
- var user_ids = _.map(this.users_cache, function(el) {
- return el.get("id");
- });
- connection.connector.call("/longpolling/im/poll", {
- last: this.last,
- users_watch: user_ids,
- db: connection.database,
- uid: connection.userId,
- password: connection.password,
- uuid: self.me.get("uuid"),
- }).then(function(result) {
- _.each(result.users_status, function(el) {
- if (self.get_user(el.id))
- self.get_user(el.id).set(el);
- });
- self.last = result.last;
- var user_ids = _.pluck(_.pluck(result.res, "from_id"), 0);
- self.ensure_users(user_ids).then(function() {
- _.each(result.res, function(mes) {
- var user = self.get_user(mes.from_id[0]);
- self.received_message(mes, user);
- });
- self.poll();
- });
- }, function() {
- setTimeout(_.bind(self.poll, self), ERROR_DELAY);
- });
- },
- get_activated: function() {
- return this.activated;
- },
- create_ting: function() {
- if (typeof(Audio) === "undefined") {
- this.ting = {play: function() {}};
- return;
- }
- this.ting = new Audio(new Audio().canPlayType("audio/ogg; codecs=vorbis") ?
- require.toUrl("../audio/Ting.ogg") :
- require.toUrl("../audio/Ting.mp3")
- );
- },
- window_focus_change: function() {
- if (this.get("window_focus")) {
- this.set("waiting_messages", 0);
- }
- },
- messages_change: function() {
- /*if (! instance.webclient.set_title_part)
- return;
- instance.webclient.set_title_part("im_messages", this.get("waiting_messages") === 0 ? undefined :
- _.str.sprintf(_t("%d Messages"), this.get("waiting_messages")));*/
- },
- activate_user: function(user, focus) {
- var conv = this.users[user.get('id')];
- if (! conv) {
- conv = new livesupport.Conversation(this, user, this.me);
- conv.appendTo($("body"));
- conv.on("destroyed", this, function() {
- this.conversations = _.without(this.conversations, conv);
- delete this.users[conv.user.get('id')];
- this.calc_positions();
- });
- this.conversations.push(conv);
- this.users[user.get('id')] = conv;
- this.calc_positions();
- }
- if (focus)
- conv.focus();
- return conv;
- },
- received_message: function(message, user) {
- if (! this.get("window_focus")) {
- this.set("waiting_messages", this.get("waiting_messages") + 1);
- this.ting.play();
- this.create_ting();
- }
- var conv = this.activate_user(user);
- conv.received_message(message);
- },
- calc_positions: function() {
- var current = this.get("right_offset");
- _.each(_.range(this.conversations.length), function(i) {
- this.conversations[i].set("right_position", current);
- current += this.conversations[i].$().outerWidth(true);
- }, this);
- },
- destroy: function() {
- $(window).off("unload", this.unload_event_handler);
- $(window).unbind("blur", this.blur_hdl);
- $(window).unbind("focus", this.focus_hdl);
- nova.DynamicProperties.destroy.call(this);
- },
- });
-
- livesupport.Conversation = nova.Widget.$extend({
- className: "openerp_style oe_im_chatview",
- events: {
- "keydown input": "send_message",
- "click .oe_im_chatview_close": "destroy",
- "click .oe_im_chatview_header": "show_hide",
- },
- __init__: function(parent, user, me) {
- this.$super(parent);
- this.me = me;
- this.user = user;
- this.user.add_watcher();
- this.set("right_position", 0);
- this.shown = true;
- this.set("pending", 0);
- this.inputPlaceholder = defaultInputPlaceholder;
- },
- render: function() {
- this.$().append(templateEngine.conversation({widget: this}));
- var change_status = function() {
- this.$().toggleClass("oe_im_chatview_disconnected_status", this.user.get("im_status") === false);
- this.$(".oe_im_chatview_online").toggle(this.user.get("im_status") === true);
- this._go_bottom();
- };
- this.user.on("change:im_status", this, change_status);
- change_status.call(this);
-
- this.on("change:right_position", this, this.calc_pos);
- this.full_height = this.$().height();
- this.calc_pos();
- this.on("change:pending", this, _.bind(function() {
- if (this.get("pending") === 0) {
- this.$(".oe_im_chatview_nbr_messages").text("");
- } else {
- this.$(".oe_im_chatview_nbr_messages").text("(" + this.get("pending") + ")");
- }
- }, this));
- },
- show_hide: function() {
- if (this.shown) {
- this.$().animate({
- height: this.$(".oe_im_chatview_header").outerHeight(),
- });
- } else {
- this.$().animate({
- height: this.full_height,
- });
- }
- this.shown = ! this.shown;
- if (this.shown) {
- this.set("pending", 0);
- }
- },
- calc_pos: function() {
- this.$().css("right", this.get("right_position"));
- },
- received_message: function(message) {
- if (this.shown) {
- this.set("pending", 0);
- } else {
- this.set("pending", this.get("pending") + 1);
- }
- this._add_bubble(this.user, message.message, oeclient.str_to_datetime(message.date));
- },
- send_message: function(e) {
- if(e && e.which !== 13) {
- return;
- }
- var mes = this.$("input").val();
- if (! mes.trim()) {
- return;
- }
- this.$("input").val("");
- var send_it = _.bind(function() {
- var model = connection.getModel("im.message");
- return model.call("post", [mes, this.user.get('id')], {uuid: this.me.get("uuid"), context: {}});
- }, this);
- var tries = 0;
- send_it().then(_.bind(function() {
- this._add_bubble(this.me, mes, new Date());
- }, this), function(error, e) {
- tries += 1;
- if (tries < 3)
- return send_it();
- });
- },
- _add_bubble: function(user, item, date) {
- var items = [item];
- if (user === this.last_user) {
- this.last_bubble.remove();
- items = this.last_items.concat(items);
- }
- this.last_user = user;
- this.last_items = items;
- var zpad = function(str, size) {
- str = "" + str;
- return new Array(size - str.length + 1).join('0') + str;
- };
- date = "" + zpad(date.getHours(), 2) + ":" + zpad(date.getMinutes(), 2);
-
- this.last_bubble = $(templateEngine.conversation_bubble({"items": items, "user": user, "time": date}));
- $(this.$(".oe_im_chatview_content").children()[0]).append(this.last_bubble);
- this._go_bottom();
- },
- _go_bottom: function() {
- this.$(".oe_im_chatview_content").scrollTop($(this.$(".oe_im_chatview_content").children()[0]).height());
- },
- focus: function() {
- this.$(".oe_im_chatview_input").focus();
- },
- destroy: function() {
- this.user.remove_watcher();
- this.trigger("destroyed");
- return this.$super();
- },
- });
-
-
-
return livesupport;
});
diff --git a/addons/im_livechat/static/ext/static/js/livesupport_templates.html b/addons/im_livechat/static/ext/static/js/livesupport_templates.html
deleted file mode 100644
index 54cdf450dc1..00000000000
--- a/addons/im_livechat/static/ext/static/js/livesupport_templates.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-<%def name="conversation">
-
-
- ${widget.user.get("name") + " is offline. He/She will receive your messages on his/her next connection."}
-
-
-
-%def>
-
-<%def name="conversation_bubble">
-
-
-
-
-
${user.get('name') || 'You'}
-
- % _.each(items, function(item) {
-
${item}
- % });
-
-
${time}
-
-%def>
-
-<%def name="chatButton">
- ${widget.text}
-%def>
\ No newline at end of file
diff --git a/addons/im_livechat/static/ext/static/js/livesupport_templates.js b/addons/im_livechat/static/ext/static/js/livesupport_templates.js
deleted file mode 100644
index aaabfd38caf..00000000000
--- a/addons/im_livechat/static/ext/static/js/livesupport_templates.js
+++ /dev/null
@@ -1 +0,0 @@
-window.oe_livesupport_templates_callback("\n<%def name=\"conversation\">\n \n
\n ${widget.user.get(\"name\") + \" is offline. He/She will receive your messages on his/her next connection.\"}\n
\n
\n \n%def>\n\n<%def name=\"conversation_bubble\">\n
\n
\n
\n
\n
${user.get('name') || 'You'}
\n
\n % _.each(items, function(item) {\n
${item}
\n % });\n
\n
${time}
\n
\n%def>\n\n<%def name=\"chatButton\">\n ${widget.text}\n%def>");
diff --git a/addons/im_livechat/static/ext/static/js/nova.js b/addons/im_livechat/static/ext/static/js/nova.js
deleted file mode 100644
index eee00741fb6..00000000000
--- a/addons/im_livechat/static/ext/static/js/nova.js
+++ /dev/null
@@ -1,988 +0,0 @@
-/*
-Copyright (c) 2012, Nicolas Vanhoren
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-(function() {
-
-if (typeof(define) !== "undefined") { // requirejs
- define(["jquery", "underscore"], nova_declare);
-} else if (typeof(exports) !== "undefined") { // node
- var _ = require("underscore")
- _.extend(exports, nova_declare(null, _));
-} else { // define global variable 'nova'
- nova = nova_declare($, _);
-}
-
-function nova_declare($, _) {
- var nova = {};
- nova.internal = {};
-
- /*
- * Modified Armin Ronacher's Classy library.
- *
- * Defines The Class object. That object can be used to define and inherit classes using
- * the $extend() method.
- *
- * Example:
- *
- * var Person = nova.Class.$extend({
- * __init__: function(isDancing){
- * this.dancing = isDancing;
- * },
- * dance: function(){
- * return this.dancing;
- * }
- * });
- *
- * The __init__() method act as a constructor. This class can be instancied this way:
- *
- * var person = new Person(true);
- * person.dance();
- *
- * The Person class can also be extended again:
- *
- * var Ninja = Person.$extend({
- * __init__: function(){
- * this.$super( false );
- * },
- * dance: function(){
- * // Call the inherited version of dance()
- * return this.$super();
- * },
- * swingSword: function(){
- * return true;
- * }
- * });
- *
- * When extending a class, each re-defined method can use this.$super() to call the previous
- * implementation of that method.
- */
- /**
- * Classy - classy classes for JavaScript
- *
- * :copyright: (c) 2011 by Armin Ronacher.
- * :license: BSD.
- */
- (function(){
- var
- context = this,
- disable_constructor = false;
-
- /* we check if $super is in use by a class if we can. But first we have to
- check if the JavaScript interpreter supports that. This also matches
- to false positives later, but that does not do any harm besides slightly
- slowing calls down. */
- var probe_super = (function(){this.$super();}).toString().indexOf('$super') > 0;
- function usesSuper(obj) {
- return !probe_super || /\B\$super\b/.test(obj.toString());
- }
-
- /* helper function to set the attribute of something to a value or
- removes it if the value is undefined. */
- function setOrUnset(obj, key, value) {
- if (value === undefined)
- delete obj[key];
- else
- obj[key] = value;
- }
-
- /* gets the own property of an object */
- function getOwnProperty(obj, name) {
- return Object.prototype.hasOwnProperty.call(obj, name)
- ? obj[name] : undefined;
- }
-
- /* instanciate a class without calling the constructor */
- function cheapNew(cls) {
- disable_constructor = true;
- var rv = new cls;
- disable_constructor = false;
- return rv;
- }
-
- /* the base class we export */
- var Class = function() {};
-
- /* extend functionality */
- Class.$extend = function(properties) {
- var super_prototype = this.prototype;
-
- /* disable constructors and instanciate prototype. Because the
- prototype can't raise an exception when created, we are safe
- without a try/finally here. */
- var prototype = cheapNew(this);
-
- /* copy all properties of the includes over if there are any */
- prototype.__mixin_ids = _.clone(prototype.__mixin_ids || {});
- if (properties.__include__)
- for (var i = 0, n = properties.__include__.length; i != n; ++i) {
- var mixin = properties.__include__[i];
- if (mixin instanceof nova.Mixin) {
- _.extend(prototype.__mixin_ids, mixin.__mixin_ids);
- mixin = mixin.__mixin_properties;
- }
- for (var name in mixin) {
- var value = getOwnProperty(mixin, name);
- if (value !== undefined)
- prototype[name] = mixin[name];
- }
- }
-
- /* copy class vars from the superclass */
- properties.__classvars__ = properties.__classvars__ || {};
- if (prototype.__classvars__)
- for (var key in prototype.__classvars__)
- if (!properties.__classvars__[key]) {
- var value = getOwnProperty(prototype.__classvars__, key);
- properties.__classvars__[key] = value;
- }
-
- /* copy all properties over to the new prototype */
- for (var name in properties) {
- var value = getOwnProperty(properties, name);
- if (name === '__include__' ||
- value === undefined)
- continue;
-
- prototype[name] = typeof value === 'function' && usesSuper(value) ?
- (function(meth, name) {
- return function() {
- var old_super = getOwnProperty(this, '$super');
- this.$super = super_prototype[name];
- try {
- return meth.apply(this, arguments);
- }
- finally {
- setOrUnset(this, '$super', old_super);
- }
- };
- })(value, name) : value
- }
-
- var class_init = this.__class_init__ || function() {};
- var p_class_init = prototype.__class_init__ || function() {};
- delete prototype.__class_init__;
- var n_class_init = function() {
- class_init.apply(null, arguments);
- p_class_init.apply(null, arguments);
- }
- n_class_init(prototype);
-
- /* dummy constructor */
- var instance = function() {
- if (disable_constructor)
- return;
- var proper_this = context === this ? cheapNew(arguments.callee) : this;
- if (proper_this.__init__)
- proper_this.__init__.apply(proper_this, arguments);
- proper_this.$class = instance;
- return proper_this;
- }
-
- /* copy all class vars over of any */
- for (var key in properties.__classvars__) {
- var value = getOwnProperty(properties.__classvars__, key);
- if (value !== undefined)
- instance[key] = value;
- }
-
- /* copy prototype and constructor over, reattach $extend and
- return the class */
- instance.prototype = prototype;
- instance.constructor = instance;
- instance.$extend = this.$extend;
- instance.$withData = this.$withData;
- instance.__class_init__ = n_class_init;
- return instance;
- };
-
- /* instanciate with data functionality */
- Class.$withData = function(data) {
- var rv = cheapNew(this);
- for (var key in data) {
- var value = getOwnProperty(data, key);
- if (value !== undefined)
- rv[key] = value;
- }
- return rv;
- };
-
- /* export the class */
- this.Class = Class;
- }).call(nova);
- // end of Armin Ronacher's code
-
- var mixinId = 1;
- nova.Mixin = nova.Class.$extend({
- __init__: function() {
- this.__mixin_properties = {};
- this.__mixin_id = mixinId;
- mixinId++;
- this.__mixin_ids = {};
- this.__mixin_ids[this.__mixin_id] = true;
- _.each(_.toArray(arguments), function(el) {
- if (el instanceof nova.Mixin) {
- _.extend(this.__mixin_properties, el.__mixin_properties);
- _.extend(this.__mixin_ids, el.__mixin_ids);
- } else { // object
- _.extend(this.__mixin_properties, el)
- }
- }, this);
- _.extend(this, this.__mixin_properties);
- }
- });
-
- nova.Interface = nova.Mixin.$extend({
- __init__: function() {
- var lst = [];
- _.each(_.toArray(arguments), function(el) {
- if (el instanceof nova.Interface) {
- lst.push(el);
- } else if (el instanceof nova.Mixin) {
- var tmp = new nova.Interface(el.__mixin_properties);
- tmp.__mixin_ids = el.__mixin_ids;
- lst.push(tmp);
- } else { // object
- var nprops = {};
- _.each(el, function(v, k) {
- nprops[k] = function() {
- throw new nova.NotImplementedError();
- };
- });
- lst.push(nprops);
- }
- });
- this.$super.apply(this, lst);
- }
- });
-
- nova.hasMixin = function(object, mixin) {
- if (! object)
- return false;
- return (object.__mixin_ids || {})[mixin.__mixin_id] === true;
- };
-
- var ErrorBase = function() {
- };
- ErrorBase.prototype = new Error();
- ErrorBase.$extend = nova.Class.$extend;
- ErrorBase.$withData = nova.Class.$withData;
-
- nova.Error = ErrorBase.$extend({
- name: "nova.Error",
- defaultMessage: "",
- __init__: function(message) {
- this.message = message || this.defaultMessage;
- }
- });
-
- nova.NotImplementedError = nova.Error.$extend({
- name: "nova.NotImplementedError",
- defaultMessage: "This method is not implemented"
- });
-
- nova.InvalidArgumentError = nova.Error.$extend({
- name: "nova.InvalidArgumentError"
- });
-
- /**
- * Mixin to express the concept of destroying an object.
- * When an object is destroyed, it should release any resource
- * it could have reserved before.
- */
- nova.Destroyable = new nova.Mixin({
- __init__: function() {
- this.__destroyableDestroyed = false;
- },
- /**
- * Returns true if destroy() was called on the current object.
- */
- isDestroyed : function() {
- return this.__destroyableDestroyed;
- },
- /**
- * Inform the object it should destroy itself, releasing any
- * resource it could have reserved.
- */
- destroy : function() {
- this.__destroyableDestroyed = true;
- }
- });
-
- /**
- * Mixin to structure objects' life-cycles folowing a parent-children
- * relationship. Each object can a have a parent and multiple children.
- * When an object is destroyed, all its children are destroyed too.
- */
- nova.Parented = new nova.Mixin(nova.Destroyable, {
- __parentedMixin : true,
- __init__: function() {
- nova.Destroyable.__init__.apply(this);
- this.__parentedChildren = [];
- this.__parentedParent = null;
- },
- /**
- * Set the parent of the current object. When calling this method, the
- * parent will also be informed and will return the current object
- * when its getChildren() method is called. If the current object did
- * already have a parent, it is unregistered before, which means the
- * previous parent will not return the current object anymore when its
- * getChildren() method is called.
- */
- setParent : function(parent) {
- if (this.getParent()) {
- if (this.getParent().__parentedMixin) {
- this.getParent().__parentedChildren = _.without(this
- .getParent().getChildren(), this);
- }
- }
- this.__parentedParent = parent;
- if (parent && parent.__parentedMixin) {
- parent.__parentedChildren.push(this);
- }
- },
- /**
- * Return the current parent of the object (or null).
- */
- getParent : function() {
- return this.__parentedParent;
- },
- /**
- * Return a list of the children of the current object.
- */
- getChildren : function() {
- return _.clone(this.__parentedChildren);
- },
- destroy : function() {
- _.each(this.getChildren(), function(el) {
- el.destroy();
- });
- this.setParent(undefined);
- nova.Destroyable.destroy.apply(this);
- }
- });
-
- /*
- * Yes, we steal Backbone's events :)
- *
- * This class just handle the dispatching of events, it is not meant to be extended,
- * nor used directly. All integration with parenting and automatic unregistration of
- * events is done in the mixin EventDispatcher.
- */
- // (c) 2010-2012 Jeremy Ashkenas, DocumentCloud Inc.
- // Backbone may be freely distributed under the MIT license.
- // For all details and documentation:
- // http://backbonejs.org
- nova.internal.Events = nova.Class.$extend({
- on : function(events, callback, context) {
- var ev;
- events = events.split(/\s+/);
- var calls = this._callbacks || (this._callbacks = {});
- while (ev = events.shift()) {
- var list = calls[ev] || (calls[ev] = {});
- var tail = list.tail || (list.tail = list.next = {});
- tail.callback = callback;
- tail.context = context;
- list.tail = tail.next = {};
- }
- return this;
- },
- off : function(events, callback, context) {
- var ev, calls, node;
- if (!events) {
- delete this._callbacks;
- } else if (calls = this._callbacks) {
- events = events.split(/\s+/);
- while (ev = events.shift()) {
- node = calls[ev];
- delete calls[ev];
- if (!callback || !node)
- continue;
- while ((node = node.next) && node.next) {
- if (node.callback === callback
- && (!context || node.context === context))
- continue;
- this.on(ev, node.callback, node.context);
- }
- }
- }
- return this;
- },
- callbackList: function() {
- var lst = [];
- _.each(this._callbacks || {}, function(el, eventName) {
- var node = el;
- while ((node = node.next) && node.next) {
- lst.push([eventName, node.callback, node.context]);
- }
- });
- return lst;
- },
- trigger : function(events) {
- var event, node, calls, tail, args, all, rest;
- if (!(calls = this._callbacks))
- return this;
- all = calls['all'];
- (events = events.split(/\s+/)).push(null);
- // Save references to the current heads & tails.
- while (event = events.shift()) {
- if (all)
- events.push({
- next : all.next,
- tail : all.tail,
- event : event
- });
- if (!(node = calls[event]))
- continue;
- events.push({
- next : node.next,
- tail : node.tail
- });
- }
- rest = Array.prototype.slice.call(arguments, 1);
- while (node = events.pop()) {
- tail = node.tail;
- args = node.event ? [ node.event ].concat(rest) : rest;
- while ((node = node.next) !== tail) {
- node.callback.apply(node.context || this, args);
- }
- }
- return this;
- }
- });
- // end of Backbone's events class
-
- nova.EventDispatcher = new nova.Mixin(nova.Parented, {
- __eventDispatcherMixin: true,
- __init__: function() {
- nova.Parented.__init__.apply(this);
- this.__edispatcherEvents = new nova.internal.Events();
- this.__edispatcherRegisteredEvents = [];
- },
- on: function(events, dest, func) {
- var self = this;
- events = events.split(/\s+/);
- _.each(events, function(eventName) {
- self.__edispatcherEvents.on(eventName, func, dest);
- if (dest && dest.__eventDispatcherMixin) {
- dest.__edispatcherRegisteredEvents.push({name: eventName, func: func, source: self});
- }
- });
- return this;
- },
- off: function(events, dest, func) {
- var self = this;
- events = events.split(/\s+/);
- _.each(events, function(eventName) {
- self.__edispatcherEvents.off(eventName, func, dest);
- if (dest && dest.__eventDispatcherMixin) {
- dest.__edispatcherRegisteredEvents = _.filter(dest.__edispatcherRegisteredEvents, function(el) {
- return !(el.name === eventName && el.func === func && el.source === self);
- });
- }
- });
- return this;
- },
- trigger: function(events) {
- this.__edispatcherEvents.trigger.apply(this.__edispatcherEvents, arguments);
- return this;
- },
- destroy: function() {
- var self = this;
- _.each(this.__edispatcherRegisteredEvents, function(event) {
- event.source.__edispatcherEvents.off(event.name, event.func, self);
- });
- this.__edispatcherRegisteredEvents = [];
- _.each(this.__edispatcherEvents.callbackList(), function(cal) {
- this.off(cal[0], cal[2], cal[1]);
- }, this);
- this.__edispatcherEvents.off();
- nova.Parented.destroy.apply(this);
- }
- });
-
- nova.Properties = new nova.Mixin(nova.EventDispatcher, {
- __class_init__: function(proto) {
- var props = {};
- _.each(proto.__properties || {}, function(v, k) {
- props[k] = _.clone(v);
- });
- _.each(proto, function(v, k) {
- if (typeof v === "function") {
- var res = /^((?:get)|(?:set))([A-Z]\w*)$/.exec(k);
- if (! res)
- return;
- var name = res[2][0].toLowerCase() + res[2].slice(1);
- var prop = props[name] || (props[name] = {});
- prop[res[1]] = v;
- }
- });
- proto.__properties = props;
- },
- __init__: function() {
- nova.EventDispatcher.__init__.apply(this);
- this.__dynamicProperties = {};
- },
- set: function(arg1, arg2) {
- var self = this;
- var map;
- if (typeof arg1 === "string") {
- map = {};
- map[arg1] = arg2;
- } else {
- map = arg1;
- }
- var tmp_set = this.__props_setting;
- this.__props_setting = false;
- _.each(map, function(val, key) {
- var prop = self.__properties[key];
- if (prop) {
- if (! prop.set)
- throw new nova.InvalidArgumentError("Property " + key + " does not have a setter method.");
- prop.set.call(self, val);
- } else {
- self.fallbackSet(key, val);
- }
- });
- this.__props_setting = tmp_set;
- if (! this.__props_setting && this.__props_setted) {
- this.__props_setted = false;
- self.trigger("change", self);
- }
- },
- get: function(key) {
- var prop = this.__properties[key];
- if (prop) {
- if (! prop.get)
- throw new nova.InvalidArgumentError("Property " + key + " does not have a getter method.");
- return prop.get.call(this);
- } else {
- return this.fallbackGet(key);
- }
- },
- fallbackSet: function(key, val) {
- throw new nova.InvalidArgumentError("Property " + key + " is not defined.");
- },
- fallbackGet: function(key) {
- throw new nova.InvalidArgumentError("Property " + key + " is not defined.");
- },
- trigger: function(name) {
- nova.EventDispatcher.trigger.apply(this, arguments);
- if (/(\s|^)change\:.*/.exec(name)) {
- if (! this.__props_setting)
- this.trigger("change");
- else
- this.__props_setted = true;
- }
- }
- });
-
- nova.DynamicProperties = new nova.Mixin(nova.Properties, {
- __init__: function() {
- nova.Properties.__init__.apply(this);
- this.__dynamicProperties = {};
- },
- fallbackSet: function(key, val) {
- var tmp = this.__dynamicProperties[key];
- if (tmp === val)
- return;
- this.__dynamicProperties[key] = val;
- this.trigger("change:" + key, this, {
- oldValue: tmp,
- newValue: val
- });
- },
- fallbackGet: function(key) {
- return this.__dynamicProperties[key];
- }
- });
-
- nova.Widget = nova.Class.$extend({
- __include__ : [nova.DynamicProperties],
- tagName: 'div',
- className: '',
- attributes: {},
- events: {},
- __init__: function(parent) {
- nova.Properties.__init__.apply(this);
- this.__widget_element = $(document.createElement(this.tagName));
- this.$().addClass(this.className);
- _.each(this.attributes, function(val, key) {
- this.$().attr(key, val);
- }, this);
- _.each(this.events, function(val, key) {
- key = key.split(" ");
- val = _.bind(typeof val === "string" ? this[val] : val, this);
- if (key.length > 1) {
- this.$().on(key[0], key[1], val);
- } else {
- this.$().on(key[0], val);
- }
- }, this);
-
- this.setParent(parent);
- },
- $: function(attr) {
- if (attr)
- return this.__widget_element.find.apply(this.__widget_element, arguments);
- else
- return this.__widget_element;
- },
- /**
- * Destroys the current widget, also destroys all its children before destroying itself.
- */
- destroy: function() {
- _.each(this.getChildren(), function(el) {
- el.destroy();
- });
- this.$().remove();
- nova.Properties.destroy.apply(this);
- },
- /**
- * Renders the current widget and appends it to the given jQuery object or Widget.
- *
- * @param target A jQuery object or a Widget instance.
- */
- appendTo: function(target) {
- this.$().appendTo(target);
- return this.render();
- },
- /**
- * Renders the current widget and prepends it to the given jQuery object or Widget.
- *
- * @param target A jQuery object or a Widget instance.
- */
- prependTo: function(target) {
- this.$().prependTo(target);
- return this.render();
- },
- /**
- * Renders the current widget and inserts it after to the given jQuery object or Widget.
- *
- * @param target A jQuery object or a Widget instance.
- */
- insertAfter: function(target) {
- this.$().insertAfter(target);
- return this.render();
- },
- /**
- * Renders the current widget and inserts it before to the given jQuery object or Widget.
- *
- * @param target A jQuery object or a Widget instance.
- */
- insertBefore: function(target) {
- this.$().insertBefore(target);
- return this.render();
- },
- /**
- * Renders the current widget and replaces the given jQuery object.
- *
- * @param target A jQuery object or a Widget instance.
- */
- replace: function(target) {
- this.$().replace(target);
- return this.render();
- },
- /**
- * This is the method to implement to render the Widget.
- */
- render: function() {}
- });
-
- /*
- Nova Template Engine
- */
- var escape_ = function(text) {
- return JSON.stringify(text);
- }
- var indent_ = function(txt) {
- var tmp = _.map(txt.split("\n"), function(x) { return " " + x; });
- tmp.pop();
- tmp.push("");
- return tmp.join("\n");
- };
- var tparams = {
- def_begin: /<%\s*def\s+(?:name=(?:(?:"(.+?)")|(?:'(.+?)')))\s*>/g,
- def_end: /<\/%\s*def\s*>/g,
- comment_multi_begin: /<%\s*doc\s*>/g,
- comment_multi_end: /<\/%\s*doc\s*>/g,
- eval_long_begin: /<%/g,
- eval_long_end: /%>/g,
- eval_short_begin: /(?:^|\n)[[ \t]*%(?!{)/g,
- eval_short_end: /\n|$/g,
- escape_begin: /\${/g,
- interpolate_begin: /%{/g,
- comment_begin: /##/g,
- comment_end: /\n|$/g
- };
- // /<%\s*def\s+(?:name=(?:"(.+?)"))\s*%>([\s\S]*?)<%\s*def\s*%>/g
- var allbegin = new RegExp(
- "((?:\\\\)*)(" +
- "(" + tparams.def_begin.source + ")|" +
- "(" + tparams.def_end.source + ")|" +
- "(" + tparams.comment_multi_begin.source + ")|" +
- "(" + tparams.eval_long_begin.source + ")|" +
- "(" + tparams.interpolate_begin.source + ")|" +
- "(" + tparams.eval_short_begin.source + ")|" +
- "(" + tparams.escape_begin.source + ")|" +
- "(" + tparams.comment_begin.source + ")" +
- ")"
- , "g");
- allbegin.global = true;
- var regexes = {
- slashes: 1,
- match: 2,
- def_begin: 3,
- def_name1: 4,
- def_name2: 5,
- def_end: 6,
- comment_multi_begin: 7,
- eval_long: 8,
- interpolate: 9,
- eval_short: 10,
- escape: 11,
- comment: 12
- };
- var regex_count = 4;
-
- var compileTemplate = function(text, options) {
- options = _.extend({start: 0, indent: true}, options);
- start = options.start;
- var source = "";
- var current = start;
- allbegin.lastIndex = current;
- var text_end = text.length;
- var restart = end;
- var found;
- var functions = [];
- var indent = options.indent ? indent_ : function (txt) { return txt; };
- var rmWhite = options.removeWhitespaces ? function(txt) {
- if (! txt)
- return txt;
- txt = _.map(txt.split("\n"), function(x) { return x.trim() });
- var last = txt.pop();
- txt = _.reject(txt, function(x) { return !x });
- txt.push(last);
- return txt.join("\n") || "\n";
- } : function(x) { return x };
- while (found = allbegin.exec(text)) {
- var to_add = rmWhite(text.slice(current, found.index));
- source += to_add ? "__p+=" + escape_(to_add) + ";\n" : '';
- current = found.index;
-
- // slash escaping handling
- var slashes = found[regexes.slashes] || "";
- var nbr = slashes.length;
- var nslash = slashes.slice(0, Math.floor(nbr / 2));
- source += nbr !== 0 ? "__p+=" + escape_(nslash) + ";\n" : "";
- if (nbr % 2 !== 0) {
- source += "__p+=" + escape_(found[regexes.match]) + ";\n";
- current = found.index + found[0].length;
- allbegin.lastIndex = current;
- continue;
- }
-
- if (found[regexes.def_begin]) {
- var sub_compile = compileTemplate(text, _.extend({}, options, {start: found.index + found[0].length}));
- var name = (found[regexes.def_name1] || found[regexes.def_name2]);
- source += "var " + name + " = function(context) {\n" + indent(sub_compile.header + sub_compile.source
- + sub_compile.footer) + "}\n";
- functions.push(name);
- current = sub_compile.end;
- } else if (found[regexes.def_end]) {
- text_end = found.index;
- restart = found.index + found[0].length;
- break;
- } else if (found[regexes.comment_multi_begin]) {
- tparams.comment_multi_end.lastIndex = found.index + found[0].length;
- var end = tparams.comment_multi_end.exec(text);
- if (!end)
- throw new Error("<%doc> without corresponding %doc>");
- current = end.index + end[0].length;
- } else if (found[regexes.eval_long]) {
- tparams.eval_long_end.lastIndex = found.index + found[0].length;
- var end = tparams.eval_long_end.exec(text);
- if (!end)
- throw new Error("<% without matching %>");
- var code = text.slice(found.index + found[0].length, end.index);
- code = _(code.split("\n")).chain().map(function(x) { return x.trim() })
- .reject(function(x) { return !x }).value().join("\n");
- source += code + "\n";
- current = end.index + end[0].length;
- } else if (found[regexes.interpolate]) {
- var braces = /{|}/g;
- braces.lastIndex = found.index + found[0].length;
- var b_count = 1;
- var brace;
- while (brace = braces.exec(text)) {
- if (brace[0] === "{")
- b_count++;
- else {
- b_count--;
- }
- if (b_count === 0)
- break;
- }
- if (b_count !== 0)
- throw new Error("%{ without a matching }");
- source += "__p+=" + text.slice(found.index + found[0].length, brace.index) + ";\n"
- current = brace.index + brace[0].length;
- } else if (found[regexes.eval_short]) {
- tparams.eval_short_end.lastIndex = found.index + found[0].length;
- var end = tparams.eval_short_end.exec(text);
- if (!end)
- throw new Error("impossible state!!");
- source += text.slice(found.index + found[0].length, end.index).trim() + "\n";
- current = end.index;
- } else if (found[regexes.escape]) {
- var braces = /{|}/g;
- braces.lastIndex = found.index + found[0].length;
- var b_count = 1;
- var brace;
- while (brace = braces.exec(text)) {
- if (brace[0] === "{")
- b_count++;
- else {
- b_count--;
- }
- if (b_count === 0)
- break;
- }
- if (b_count !== 0)
- throw new Error("${ without a matching }");
- source += "__p+=_.escape(" + text.slice(found.index + found[0].length, brace.index) + ");\n"
- current = brace.index + brace[0].length;
- } else { // comment
- tparams.comment_end.lastIndex = found.index + found[0].length;
- var end = tparams.comment_end.exec(text);
- if (!end)
- throw new Error("impossible state!!");
- current = end.index + end[0].length;
- }
- allbegin.lastIndex = current;
- }
- var to_add = rmWhite(text.slice(current, text_end));
- source += to_add ? "__p+=" + escape_(to_add) + ";\n" : "";
-
- var header = "var __p = ''; var print = function() { __p+=Array.prototype.join.call(arguments, '') };\n" +
- "with (context || {}) {\n";
- var footer = "}\nreturn __p;\n";
- source = indent(source);
-
- return {
- header: header,
- source: source,
- footer: footer,
- end: restart,
- functions: functions,
- };
- };
-
- nova.TemplateEngine = nova.Class.$extend({
- __init__: function() {
- this.resetEnvironment();
- this.options = {
- includeInDom: $ ? true : false,
- indent: true,
- removeWhitespaces: true,
- };
- },
- loadFile: function(filename) {
- var self = this;
- return $.get(filename).pipe(function(content) {
- return self.loadFileContent(content);
- });
- },
- loadFileContent: function(file_content) {
- var code = this.compileFile(file_content);
-
- if (this.options.includeInDom) {
- var varname = _.uniqueId("novajstemplate");
- var previous = window[varname];
- code = "window." + varname + " = " + code + ";";
- var def = $.Deferred();
- var script = document.createElement("script");
- script.type = "text/javascript";
- script.text = code;
- $("head")[0].appendChild(script);
- $(script).ready(function() {
- def.resolve();
- });
- def.then(_.bind(function() {
- var tmp = window[varname];
- window[varname] = previous;
- this.includeTemplates(tmp);
- }, this));
- return def;
- } else {
- console.log("return (" + code + ")(context);");
- return this.includeTemplates(new Function('context', "return (" + code + ")(context);"));
- }
- },
- compileFile: function(file_content) {
- var result = compileTemplate(file_content, _.extend({}, this.options));
- var to_append = "";
- _.each(result.functions, function(name) {
- to_append += name + ": " + name + ",\n";
- }, this);
- to_append = this.options.indent ? indent_(to_append) : to_append;
- to_append = "return {\n" + to_append + "};\n";
- to_append = this.options.indent ? indent_(to_append) : to_append;
- var code = "function(context) {\n" + result.header +
- result.source + to_append + result.footer + "}\n";
- return code;
- },
- includeTemplates: function(fct) {
- var add = _.extend({engine: this}, this._env);
- var functions = fct(add);
- _.each(functions, function(func, name) {
- if (this[name])
- throw new Error("The template '" + name + "' is already defined");
- this[name] = func;
- }, this);
- },
- buildTemplate: function(text) {
- var comp = compileTemplate(text, _.extend({}, this.options));
- var result = comp.header + comp.source + comp.footer;
- var add = _.extend({engine: this}, this._env);
- var func = new Function('context', result);
- return function(data) {
- return func.call(this, _.extend(add, data));
- };
- },
- eval: function(text, context) {
- return this.buildTemplate(text)(context);
- },
- resetEnvironment: function(nenv) {
- this._env = {_: _};
- this.extendEnvironment(nenv);
- },
- extendEnvironment: function(env) {
- _.extend(this._env, env || {});
- },
- });
-
- return nova;
-};
-})();
diff --git a/addons/im_livechat/static/ext/static/js/oeclient.js b/addons/im_livechat/static/ext/static/js/oeclient.js
deleted file mode 100644
index b3192b786e2..00000000000
--- a/addons/im_livechat/static/ext/static/js/oeclient.js
+++ /dev/null
@@ -1,362 +0,0 @@
-/*
-Copyright (c) 2013, OpenERP
-All rights reserved.
-
-Redistribution and use in source and binary forms, with or without
-modification, are permitted provided that the following conditions are met:
-
-1. Redistributions of source code must retain the above copyright notice, this
- list of conditions and the following disclaimer.
-2. Redistributions in binary form must reproduce the above copyright notice,
- this list of conditions and the following disclaimer in the documentation
- and/or other materials provided with the distribution.
-
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
-WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
-DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
-ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
-(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
-LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
-ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
-SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-define(["underscore", "jquery", "nova"], function(_, $, nova) {
-
- var oeclient = {};
-
- var genericJsonRPC = function(fct_name, params, fct) {
- var data = {
- jsonrpc: "2.0",
- method: fct_name,
- params: params,
- id: Math.floor(Math.random()* (1000*1000*1000)),
- };
- return fct(data).pipe(function(result) {
- if (result.error !== undefined) {
- console.error("Server application error", result.error);
- return $.Deferred().reject("server", result.error);
- } else {
- return result.result;
- }
- }, function() {
- console.error("JsonRPC communication error", _.toArray(arguments));
- var def = $.Deferred();
- return def.reject.apply(def, ["communication"].concat(_.toArray(arguments)));
- });
- };
-
- oeclient.jsonRpc = function(url, fct_name, params, settings) {
- return genericJsonRPC(fct_name, params, function(data) {
- return $.ajax(url, _.extend({}, settings, {
- url: url,
- dataType: 'json',
- type: 'POST',
- data: JSON.stringify(data),
- contentType: 'application/json',
- }));
- });
- };
-
- oeclient.jsonpRpc = function(url, fct_name, params, settings) {
- return genericJsonRPC(fct_name, params, function(data) {
- return $.ajax(url, _.extend({}, settings, {
- url: url,
- dataType: 'jsonp',
- jsonp: 'jsonp',
- type: 'GET',
- cache: false,
- data: {r: JSON.stringify(data)},
- }));
- });
- };
-
- oeclient.Connector = nova.Class.$extend({
- getService: function(serviceName) {
- return new oeclient.Service(this, serviceName);
- },
- });
-
- oeclient.JsonRPCConnector = oeclient.Connector.$extend({
- __init__: function(url) {
- this.url = url;
- },
- call: function(sub_url, content) {
- return oeclient.jsonRpc(this.url + sub_url, "call", content);
- },
- send: function(serviceName, method, args) {
- return this.call("/jsonrpc", {"service": serviceName, "method": method, "args": args});
- },
- });
-
- oeclient.JsonpRPCConnector = oeclient.JsonRPCConnector.$extend({
- call: function(sub_url, content) {
- return oeclient.jsonpRpc(this.url + sub_url, "call", content);
- },
- });
-
- oeclient.Service = nova.Class.$extend({
- __init__: function(connector, serviceName) {
- this.connector = connector;
- this.serviceName = serviceName;
- },
- call: function(method, args) {
- return this.connector.send(this.serviceName, method, args);
- },
- });
-
- oeclient.AuthenticationError = nova.Error.$extend({
- name: "oeclient.AuthenticationError",
- defaultMessage: "An error occured during authentication."
- });
-
- oeclient.Connection = nova.Class.$extend({
- __init__: function(connector, database, login, password, userId) {
- this.connector = connector;
- this.setLoginInfo(database, login, password, userId);
- this.userContext = null;
- },
- setLoginInfo: function(database, login, password, userId) {
- this.database = database;
- this.login = login;
- this.password = password;
- this.userId = userId;
- },
- checkLogin: function(force) {
- force = force === undefined ? true: force;
- if (this.userId && ! force)
- return $.when();
-
- if (! this.database || ! this.login || ! this.password)
- throw new oeclient.AuthenticationError();
-
- return this.getService("common").call("login", [this.database, this.login, this.password])
- .then(_.bind(function(result) {
- this.userId = result;
- if (! this.userId) {
- console.error("Authentication failure");
- return $.Deferred().reject({message:"Authentication failure"});
- }
- }, this));
- },
- getUserContext: function() {
- if (! this.userContext) {
- return this.getModel("res.users").call("context_get").then(_.bind(function(result) {
- this.userContext = result;
- return this.userContext;
- }, this));
- }
- return $.when(this.userContext);
- },
- getModel: function(modelName) {
- return new oeclient.Model(this, modelName);
- },
- getService: function(serviceName) {
- return this.connector.getService(serviceName);
- },
- });
-
- oeclient.Model = nova.Class.$extend({
- __init__: function(connection, modelName) {
- this.connection = connection;
- this.modelName = modelName;
- },
- call: function(method, args, kw) {
- return this.connection.checkLogin().then(_.bind(function() {
- return this.connection.getService("object").call("execute_kw", [
- this.connection.database,
- this.connection.userId,
- this.connection.password,
- this.modelName,
- method,
- args || [],
- kw || {},
- ]);
- }, this));
- },
- search_read: function(domain, fields, offset, limit, order, context) {
- return this.call("search", [domain || [], offset || 0, limit || false, order || false, context || {}]).then(_.bind(function(record_ids) {
- if (! record_ids) {
- return [];
- }
- return this.call("read", [record_ids, fields || [], context || {}]).then(function(records) {
- var index = {};
- _.each(records, function(r) {
- index[r.id] = r;
- });
- var res = [];
- _.each(record_ids, function(id) {
- if (index[id])
- res.push(index[id]);
- });
- return res;
- });
- }, this));
- },
- });
-
- /**
- * Converts a string to a Date javascript object using OpenERP's
- * datetime string format (exemple: '2011-12-01 15:12:35').
- *
- * The time zone is assumed to be UTC (standard for OpenERP 6.1)
- * and will be converted to the browser's time zone.
- *
- * @param {String} str A string representing a datetime.
- * @returns {Date}
- */
- oeclient.str_to_datetime = function(str) {
- if(!str) {
- return str;
- }
- var regex = /^(\d\d\d\d)-(\d\d)-(\d\d) (\d\d):(\d\d):(\d\d(?:\.\d+)?)$/;
- var res = regex.exec(str);
- if ( !res ) {
- throw new Error("'" + str + "' is not a valid datetime");
- }
- var tmp = new Date();
- tmp.setUTCFullYear(parseFloat(res[1]));
- tmp.setUTCMonth(parseFloat(res[2]) - 1);
- tmp.setUTCDate(parseFloat(res[3]));
- tmp.setUTCHours(parseFloat(res[4]));
- tmp.setUTCMinutes(parseFloat(res[5]));
- tmp.setUTCSeconds(parseFloat(res[6]));
- return tmp;
- };
-
- /**
- * Converts a string to a Date javascript object using OpenERP's
- * date string format (exemple: '2011-12-01').
- *
- * As a date is not subject to time zones, we assume it should be
- * represented as a Date javascript object at 00:00:00 in the
- * time zone of the browser.
- *
- * @param {String} str A string representing a date.
- * @returns {Date}
- */
- oeclient.str_to_date = function(str) {
- if(!str) {
- return str;
- }
- var regex = /^(\d\d\d\d)-(\d\d)-(\d\d)$/;
- var res = regex.exec(str);
- if ( !res ) {
- throw new Error("'" + str + "' is not a valid date");
- }
- var tmp = new Date();
- tmp.setFullYear(parseFloat(res[1]));
- tmp.setMonth(parseFloat(res[2]) - 1);
- tmp.setDate(parseFloat(res[3]));
- tmp.setHours(0);
- tmp.setMinutes(0);
- tmp.setSeconds(0);
- return tmp;
- };
-
- /**
- * Converts a string to a Date javascript object using OpenERP's
- * time string format (exemple: '15:12:35').
- *
- * The OpenERP times are supposed to always be naive times. We assume it is
- * represented using a javascript Date with a date 1 of January 1970 and a
- * time corresponding to the meant time in the browser's time zone.
- *
- * @param {String} str A string representing a time.
- * @returns {Date}
- */
- oeclient.str_to_time = function(str) {
- if(!str) {
- return str;
- }
- var regex = /^(\d\d):(\d\d):(\d\d(?:\.\d+)?)$/;
- var res = regex.exec(str);
- if ( !res ) {
- throw new Error("'" + str + "' is not a valid time");
- }
- debugger;
- var tmp = new Date();
- tmp.setFullYear(1970);
- tmp.setMonth(0);
- tmp.setDate(1);
- tmp.setHours(parseFloat(res[1]));
- tmp.setMinutes(parseFloat(res[2]));
- tmp.setSeconds(parseFloat(res[3]));
- return tmp;
- };
-
- /*
- * Left-pad provided arg 1 with zeroes until reaching size provided by second
- * argument.
- *
- * @param {Number|String} str value to pad
- * @param {Number} size size to reach on the final padded value
- * @returns {String} padded string
- */
- var zpad = function(str, size) {
- str = "" + str;
- return new Array(size - str.length + 1).join('0') + str;
- };
-
- /**
- * Converts a Date javascript object to a string using OpenERP's
- * datetime string format (exemple: '2011-12-01 15:12:35').
- *
- * The time zone of the Date object is assumed to be the one of the
- * browser and it will be converted to UTC (standard for OpenERP 6.1).
- *
- * @param {Date} obj
- * @returns {String} A string representing a datetime.
- */
- oeclient.datetime_to_str = function(obj) {
- if (!obj) {
- return false;
- }
- return zpad(obj.getUTCFullYear(),4) + "-" + zpad(obj.getUTCMonth() + 1,2) + "-"
- + zpad(obj.getUTCDate(),2) + " " + zpad(obj.getUTCHours(),2) + ":"
- + zpad(obj.getUTCMinutes(),2) + ":" + zpad(obj.getUTCSeconds(),2);
- };
-
- /**
- * Converts a Date javascript object to a string using OpenERP's
- * date string format (exemple: '2011-12-01').
- *
- * As a date is not subject to time zones, we assume it should be
- * represented as a Date javascript object at 00:00:00 in the
- * time zone of the browser.
- *
- * @param {Date} obj
- * @returns {String} A string representing a date.
- */
- oeclient.date_to_str = function(obj) {
- if (!obj) {
- return false;
- }
- return zpad(obj.getFullYear(),4) + "-" + zpad(obj.getMonth() + 1,2) + "-"
- + zpad(obj.getDate(),2);
- };
-
- /**
- * Converts a Date javascript object to a string using OpenERP's
- * time string format (exemple: '15:12:35').
- *
- * The OpenERP times are supposed to always be naive times. We assume it is
- * represented using a javascript Date with a date 1 of January 1970 and a
- * time corresponding to the meant time in the browser's time zone.
- *
- * @param {Date} obj
- * @returns {String} A string representing a time.
- */
- oeclient.time_to_str = function(obj) {
- if (!obj) {
- return false;
- }
- return zpad(obj.getHours(),2) + ":" + zpad(obj.getMinutes(),2) + ":"
- + zpad(obj.getSeconds(),2);
- };
-
- return oeclient;
-
-});
\ No newline at end of file
diff --git a/addons/im_livechat/static/ext/static/js/to_jsonp.py b/addons/im_livechat/static/ext/static/js/to_jsonp.py
deleted file mode 100644
index 61f1a885768..00000000000
--- a/addons/im_livechat/static/ext/static/js/to_jsonp.py
+++ /dev/null
@@ -1,12 +0,0 @@
-
-import sys
-import json
-
-file_name = sys.argv[1]
-function_name = sys.argv[2]
-
-with open(file_name) as file_:
- content = file_.read()
-
-print "window.%s(%s);" % (function_name, json.dumps(content))
-
diff --git a/addons/im_livechat/static/ext/static/js/jquery.achtung.css b/addons/im_livechat/static/ext/static/lib/jquery-achtung/src/ui.achtung.css
similarity index 82%
rename from addons/im_livechat/static/ext/static/js/jquery.achtung.css
rename to addons/im_livechat/static/ext/static/lib/jquery-achtung/src/ui.achtung.css
index 820ae3e9194..27284c0e2ab 100644
--- a/addons/im_livechat/static/ext/static/js/jquery.achtung.css
+++ b/addons/im_livechat/static/ext/static/lib/jquery-achtung/src/ui.achtung.css
@@ -1,6 +1,6 @@
/**
- * achtung 0.3.0
- *
+ * achtung %%VERSION%%
+ *
* Growl-like notifications for jQuery
*
* Copyright (c) 2009 Josh Varner
@@ -11,10 +11,10 @@
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
* copies of the Software, and to permit persons to whom the Software is
* furnished to do so, subject to the following conditions:
- *
+ *
* The above copyright notice and this permission notice shall be included in
* all copies or substantial portions of the Software.
- *
+ *
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
@@ -29,43 +29,138 @@
* @author Josh Varner
*/
+#achtung-overlay {
+ overflow: hidden;
+ position: fixed;
+ top: 0;
+ right: 0;
+ z-index: 50;
+}
+
/* IE 6 doesn't support position: fixed */
* html #achtung-overlay {
- position:absolute;
+ position: absolute;
}
/* IE6 includes padding in width */
* html .achtung {
- width: 280px;
+ width: 260px;
}
-#achtung-overlay {
+#achtung-wrapper {
overflow: hidden;
- position: fixed;
- top: 15px;
- right: 15px;
- width: 280px;
- z-index:50;
+ padding: 25px 30px 10px 10px;
}
.achtung {
- display:none;
+ display: none;
+ float: right;
+ clear: right;
margin-bottom: 8px;
- padding: 15px 15px;
- background-color: #000;
- color: white;
- width: 250px;
- font-weight: bold;
- position:relative;
- overflow: hidden;
- -moz-box-shadow: #aaa 1px 1px 2px;
- -webkit-box-shadow: #aaa 1px 1px 2px;
- box-shadow: #aaa 1px 1px 2px;
- -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px;
+ padding: 15px;
+ background: #000;
+ background: rgba(0,0,0,.95);
+ color: white;
+ width: 230px;
+ font-weight: normal;
+ font-style: italic;
+ font-size: 1.05em;
+ position: relative;
+ overflow: hidden;
+ text-shadow: -1px -1px 0 rgba(0,0,0,.3);
+ box-shadow: rgba(0,0,0,.3) 0 1px 4px;
+ -moz-box-shadow: rgba(0,0,0,.3) 0 1px 4px;
+ -webkit-box-shadow: rgba(0,0,0,.3) 0 1px 4px;
+ border-radius: 4px;
+ -moz-border-radius: 4px;
+ -webkit-border-radius: 4px;
+ opacity: 1.0;
+ filter:Alpha(Opacity=100);
+}
+
+.achtung-default {
+ background: #000;
+ background: -moz-linear-gradient(top, rgba(150,150,150,.9), rgba(120,120,120,.9) 70%);
+ background: -webkit-gradient(linear, left top, left bottom,
+ from(rgba(150,150,150,.9)),
+ color-stop(70%, rgba(120,120,120,.9)),
+ to(rgba(120,120,120,.9))
+ ) no-repeat;
+ color: white;
+}
+
+.achtung .achtung-message-icon {
+ float: left;
+ margin: 0 .8em 0 -.5em;
+ zoom: 1;
+}
+
+.achtung .ui-icon.achtung-close-button {
+ overflow: hidden;
+ float: right;
+ position: relative;
+ top: -8px;
+ right: -8px;
+ cursor: pointer;
+ background-image: url('images/ui-icons_cccccc_256x240.png');
+}
+
+.achtung .ui-icon.achtung-close-button:hover {
+ background-image: url('images/ui-icons_ffffff_256x240.png');
+}
+
+/* Slightly darker for these colors (readability) */
+.achtungSuccess, .achtungFail, .achtungWait {
/* Note that if using show/hide animations, IE will lose
this setting */
- opacity: .85;
- filter:Alpha(Opacity=85);
+ opacity: 1.0;
+ filter:Alpha(Opacity=100);
+}
+
+.achtungSuccess {
+ background: #6a5;
+ background: #6a5 -moz-linear-gradient(top, #8c7, #6a5 70%);
+ background: #6a5 -webkit-gradient(linear, left top, left bottom,
+ from(#8c7),
+ color-stop(70%, #6a5),
+ to(#6a5)
+ ) no-repeat;
+}
+.achtungFail {
+ background: #a55;
+ background: #a55 -moz-linear-gradient(top, #c66, #a44 70%);
+ background: #789 -webkit-gradient(linear, left top, left bottom,
+ from(#c66),
+ color-stop(70%, #a44),
+ to(#a44)
+ ) no-repeat;
+}
+.achtungWait {
+ background: #789;
+ background: #789 -moz-linear-gradient(top, #89a, #678 70%);
+ background: #789 -webkit-gradient(linear, left top, left bottom,
+ from(#89a),
+ color-stop(70%, #678),
+ to(#678)
+ ) no-repeat;
+}
+
+.achtungSuccess .ui-icon.achtung-close-button,
+.achtungFail .ui-icon.achtung-close-button {
+ background-image: url('images/ui-icons_444444_256x240.png');
+}
+
+.achtungSuccess .ui-icon.achtung-close-button:hover,
+.achtungFail .ui-icon.achtung-close-button:hover {
+ background-image: url('images/ui-icons_ffffff_256x240.png');
+}
+
+.achtung .wait-icon {
+ background-image: url('images/wait.gif');
+}
+
+.achtung .achtung-message {
+ display: inline;
}
/**
@@ -74,8 +169,8 @@
* Can (and should) be removed if you are already loading the jQuery UI CSS
* to reduce payload size.
*/
-.ui-icon { display: block; overflow: hidden; background-repeat: no-repeat; }
-.ui-icon { width: 16px; height: 16px; }
+.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
+.ui-icon { width: 16px; height: 16px; background-image: url('images/ui-icons_222222_256x240.png'); }
.ui-icon-carat-1-n { background-position: 0 0; }
.ui-icon-carat-1-ne { background-position: -16px 0; }
.ui-icon-carat-1-e { background-position: -32px 0; }
@@ -249,58 +344,3 @@
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
-
-.achtung .achtung-message-icon {
- margin-top: 0px;
- margin-left: -.5em;
- margin-right: .5em;
- float: left;
- zoom: 1;
-}
-
-.achtung .ui-icon.achtung-close-button {
- float: right;
- margin-right: -8px;
- margin-top: -12px;
- cursor: pointer;
- color: white;
- text-align: right;
-}
-
-.achtung .ui-icon.achtung-close-button:after {
- content: "x"
-}
-
-/* Slightly darker for these colors (readability) */
-.achtungSuccess, .achtungFail, .achtungWait {
- /* Note that if using show/hide animations, IE will lose
- this setting */
- opacity: .93; filter:Alpha(Opacity=93);
-}
-
-.achtungSuccess {
- background-color: #4DB559;
-}
-
-.achtungFail {
- background-color: #D64450;
-}
-
-.achtungWait {
- background-color: #658093;
-}
-
-.achtungSuccess .ui-icon.achtung-close-button,
-.achtungFail .ui-icon.achtung-close-button {
-}
-
-.achtungSuccess .ui-icon.achtung-close-button-hover,
-.achtungFail .ui-icon.achtung-close-button-hover {
-}
-
-.achtung .wait-icon {
-}
-
-.achtung .achtung-message {
- display: inline;
-}
diff --git a/addons/im_livechat/static/ext/static/lib/jquery-achtung/src/ui.achtung.js b/addons/im_livechat/static/ext/static/lib/jquery-achtung/src/ui.achtung.js
new file mode 100644
index 00000000000..e9d7cd0ef99
--- /dev/null
+++ b/addons/im_livechat/static/ext/static/lib/jquery-achtung/src/ui.achtung.js
@@ -0,0 +1,282 @@
+/**
+ * achtung %%VERSION%%
+ *
+ * Growl-like notifications for jQuery
+ *
+ * Copyright (c) 2009 Josh Varner
+ *
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
+ * of this software and associated documentation files (the "Software"), to deal
+ * in the Software without restriction, including without limitation the rights
+ * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+ * copies of the Software, and to permit persons to whom the Software is
+ * furnished to do so, subject to the following conditions:
+ *
+ * The above copyright notice and this permission notice shall be included in
+ * all copies or substantial portions of the Software.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+ * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+ * THE SOFTWARE.
+ *
+ * @license http://www.opensource.org/licenses/mit-license.php
+ * @author Josh Varner
+ */
+
+/*jslint browser:true, white:false, onevar:false, nomen:false, bitwise:false, plusplus:false, immed: false */
+/*globals window, jQuery */
+(function ($) {
+
+var widgetName = 'achtung';
+
+/**
+ * This is based on the jQuery UI $.widget code. I would have just made this
+ * a $.widget but I didn't want the jQuery UI dependency.
+ */
+$.fn.achtung = function (options) {
+ var isMethodCall = (typeof options === 'string'),
+ args = Array.prototype.slice.call(arguments, isMethodCall ? 1 : 0);
+
+ // handle initialization and non-getter methods
+ return this.each(function () {
+ // prevent calls to internal methods
+ if (isMethodCall && options.substring(0, 1) === '_') {
+ return;
+ }
+
+ var instance = $.data(this, widgetName);
+
+ // constructor
+ if (!instance && !isMethodCall) {
+ $.data(this, widgetName, new $.achtung(this))._init(args);
+ }
+
+ if (!!instance && isMethodCall && $.isFunction(instance[options])) {
+ instance[options].apply(instance, args);
+ }
+ });
+};
+
+$.achtung = function (element) {
+ if (!element || !element.nodeType) {
+ var el = $('');
+ return el.achtung.apply(el, arguments);
+ }
+
+ this.container = $(element);
+};
+
+
+/**
+ * Static members
+ **/
+$.extend($.achtung, {
+ version: '%%VERSION%%',
+ overlay: false,
+ wrapper: false,
+ defaults: {
+ timeout: 10,
+ disableClose: false,
+ icon: false,
+ className: 'achtung-default',
+ crossFadeMessage: 500, // 0 to disable
+ animateClassSwitch: 0, // 0 to disable (doesn't work with gradient backgrounds)
+ showEffects: {'opacity':'toggle'}, // ,'height':'toggle'},
+ hideEffects: {'opacity':'toggle'}, // ,'height':'toggle'},
+ showEffectDuration: 300,
+ hideEffectDuration: 500
+ }
+});
+
+/**
+ * Non-static members
+ **/
+$.extend($.achtung.prototype, {
+ container: false,
+ icon: false,
+ message: false,
+ closeTimer: false,
+ options: {},
+
+ _init: function (args) {
+ var o, self = this;
+
+ o = this.options = $.extend.apply($, [{}, $.achtung.defaults].concat(args));
+
+ if ((o.animateClassSwitch > 0) && !('switchClass' in $.fn)) {
+ o.animateClassSwitch = this.options.animateClassSwitch = 0;
+ }
+
+ if (!o.disableClose) {
+ $('
')
+ .prependTo(this.container)
+ .bind({
+ click: function () { self.close(); }
+ });
+ }
+
+ this.changeIcon(o.icon, true);
+
+ if (o.message) {
+ this.message = $('
', {
+ 'class': 'achtung-message',
+ html: o.message
+ }).appendTo(this.container);
+ }
+
+ if ('className' in o) {
+ this.container.addClass(o.className);
+ }
+
+ if ('css' in o) {
+ this.container.css(o.css);
+ }
+
+ if (!$.achtung.overlay) {
+ $.achtung.overlay = $('');
+ $.achtung.overlay.appendTo(document.body);
+ $.achtung.wrapper = $('#achtung-wrapper');
+ }
+
+ this.container.addClass('achtung').hide().appendTo($.achtung.wrapper);
+
+ if (o.showEffects) {
+ this.container.animate(o.showEffects, o.showEffectDuration);
+ } else {
+ this.container.show();
+ }
+
+ this.timeout(o.timeout);
+ },
+
+ timeout: function (timeout) {
+ var self = this;
+
+ if (this.closeTimer) {
+ clearTimeout(this.closeTimer);
+ }
+
+ if (timeout > 0) {
+ this.closeTimer = setTimeout(function () { self.close(); }, timeout * 1000);
+ this.options.timeout = timeout;
+ } else if (timeout < 0) {
+ this.close();
+ }
+ },
+
+ /**
+ * Change the CSS class associated with this message.
+ *
+ * @param newClass string Name of new class to associate
+ */
+ changeClass: function (newClass) {
+ var oldClass = '' + this.options.className,
+ self = this;
+
+ if (oldClass === newClass) {
+ return;
+ }
+
+ this.container.queue(function (next) {
+ if (self.options.animateClassSwitch > 0) {
+ $(this).switchClass(oldClass, newClass, self.options.animateClassSwitch);
+ } else {
+ $(this).removeClass(oldClass).addClass(newClass);
+ }
+ next();
+ });
+
+ this.options.className = newClass;
+ },
+
+ changeIcon: function (newIcon, force) {
+ if (!force && this.options.icon === newIcon) {
+ return;
+ }
+
+ if (!!this.icon) {
+ if (newIcon) {
+ this.icon.removeClass(this.options.icon).addClass(newIcon);
+ } else {
+ this.icon.remove();
+ this.icon = false;
+ }
+ } else if (newIcon) {
+ this.icon = $(' ');
+ this.container.prepend(this.icon);
+ }
+
+ this.options.icon = newIcon;
+ },
+
+ changeMessage: function (newMessage) {
+ if (this.options.crossFadeMessage > 0) {
+ this.message.clone()
+ .css('position', 'absolute')
+ .insertBefore(this.message)
+ .fadeOut(this.options.crossFadeMessage, function () { $(this).remove(); });
+
+ this.message.hide().html(newMessage).fadeIn(this.options.crossFadeMessage);
+ } else {
+ this.message.html(newMessage);
+ }
+
+ this.options.message = newMessage;
+ },
+
+ update: function () {
+ var options = $.extend.apply($, [{}].concat(Array.prototype.slice.call(arguments, 0))),
+ map = {
+ className: 'changeClass',
+ css: 'css',
+ icon: 'changeIcon',
+ message: 'changeMessage',
+ timeout: 'timeout'
+ };
+
+ for (var prop in map) {
+ if (prop in options) {
+ this[map[prop]](options[prop]);
+ }
+ }
+ },
+
+ isVisible: function () {
+ return (true === this.container.is(':visible'));
+ },
+
+ _trigger: function (type, data) {
+ this.container.trigger(widgetName + type, data);
+ },
+
+ close: function () {
+ var o = this.options, self = this;
+
+ this._trigger('close');
+
+ if (o.hideEffects) {
+ this.container.animate(o.hideEffects, o.hideEffectDuration, function () {
+ self.remove();
+ });
+ } else {
+ this.container.hide();
+ this.remove();
+ }
+ },
+
+ remove: function () {
+ this.container.remove();
+
+ if ($.achtung.wrapper && !($.achtung.wrapper.contents().length)) {
+ $.achtung.wrapper = false;
+ $.achtung.overlay.remove();
+ $.achtung.overlay = false;
+ }
+ }
+});
+
+})(jQuery);
\ No newline at end of file
diff --git a/addons/im_livechat/static/ext/static/lib/jquery/jquery.js b/addons/im_livechat/static/ext/static/lib/jquery/jquery.js
new file mode 100644
index 00000000000..b4318519e88
--- /dev/null
+++ b/addons/im_livechat/static/ext/static/lib/jquery/jquery.js
@@ -0,0 +1,9472 @@
+/*!
+ * jQuery JavaScript Library v1.8.3
+ * http://jquery.com/
+ *
+ * Includes Sizzle.js
+ * http://sizzlejs.com/
+ *
+ * Copyright 2012 jQuery Foundation and other contributors
+ * Released under the MIT license
+ * http://jquery.org/license
+ *
+ * Date: Tue Nov 13 2012 08:20:33 GMT-0500 (Eastern Standard Time)
+ */
+(function( window, undefined ) {
+var
+ // A central reference to the root jQuery(document)
+ rootjQuery,
+
+ // The deferred used on DOM ready
+ readyList,
+
+ // Use the correct document accordingly with window argument (sandbox)
+ document = window.document,
+ location = window.location,
+ navigator = window.navigator,
+
+ // Map over jQuery in case of overwrite
+ _jQuery = window.jQuery,
+
+ // Map over the $ in case of overwrite
+ _$ = window.$,
+
+ // Save a reference to some core methods
+ core_push = Array.prototype.push,
+ core_slice = Array.prototype.slice,
+ core_indexOf = Array.prototype.indexOf,
+ core_toString = Object.prototype.toString,
+ core_hasOwn = Object.prototype.hasOwnProperty,
+ core_trim = String.prototype.trim,
+
+ // Define a local copy of jQuery
+ jQuery = function( selector, context ) {
+ // The jQuery object is actually just the init constructor 'enhanced'
+ return new jQuery.fn.init( selector, context, rootjQuery );
+ },
+
+ // Used for matching numbers
+ core_pnum = /[\-+]?(?:\d*\.|)\d+(?:[eE][\-+]?\d+|)/.source,
+
+ // Used for detecting and trimming whitespace
+ core_rnotwhite = /\S/,
+ core_rspace = /\s+/,
+
+ // Make sure we trim BOM and NBSP (here's looking at you, Safari 5.0 and IE)
+ rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,
+
+ // A simple way to check for HTML strings
+ // Prioritize #id over to avoid XSS via location.hash (#9521)
+ rquickExpr = /^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,
+
+ // Match a standalone tag
+ rsingleTag = /^<(\w+)\s*\/?>(?:<\/\1>|)$/,
+
+ // JSON RegExp
+ rvalidchars = /^[\],:{}\s]*$/,
+ rvalidbraces = /(?:^|:|,)(?:\s*\[)+/g,
+ rvalidescape = /\\(?:["\\\/bfnrt]|u[\da-fA-F]{4})/g,
+ rvalidtokens = /"[^"\\\r\n]*"|true|false|null|-?(?:\d\d*\.|)\d+(?:[eE][\-+]?\d+|)/g,
+
+ // Matches dashed string for camelizing
+ rmsPrefix = /^-ms-/,
+ rdashAlpha = /-([\da-z])/gi,
+
+ // Used by jQuery.camelCase as callback to replace()
+ fcamelCase = function( all, letter ) {
+ return ( letter + "" ).toUpperCase();
+ },
+
+ // The ready event handler and self cleanup method
+ DOMContentLoaded = function() {
+ if ( document.addEventListener ) {
+ document.removeEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+ jQuery.ready();
+ } else if ( document.readyState === "complete" ) {
+ // we're here because readyState === "complete" in oldIE
+ // which is good enough for us to call the dom ready!
+ document.detachEvent( "onreadystatechange", DOMContentLoaded );
+ jQuery.ready();
+ }
+ },
+
+ // [[Class]] -> type pairs
+ class2type = {};
+
+jQuery.fn = jQuery.prototype = {
+ constructor: jQuery,
+ init: function( selector, context, rootjQuery ) {
+ var match, elem, ret, doc;
+
+ // Handle $(""), $(null), $(undefined), $(false)
+ if ( !selector ) {
+ return this;
+ }
+
+ // Handle $(DOMElement)
+ if ( selector.nodeType ) {
+ this.context = this[0] = selector;
+ this.length = 1;
+ return this;
+ }
+
+ // Handle HTML strings
+ if ( typeof selector === "string" ) {
+ if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
+ // Assume that strings that start and end with <> are HTML and skip the regex check
+ match = [ null, selector, null ];
+
+ } else {
+ match = rquickExpr.exec( selector );
+ }
+
+ // Match html or make sure no context is specified for #id
+ if ( match && (match[1] || !context) ) {
+
+ // HANDLE: $(html) -> $(array)
+ if ( match[1] ) {
+ context = context instanceof jQuery ? context[0] : context;
+ doc = ( context && context.nodeType ? context.ownerDocument || context : document );
+
+ // scripts is true for back-compat
+ selector = jQuery.parseHTML( match[1], doc, true );
+ if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
+ this.attr.call( selector, context, true );
+ }
+
+ return jQuery.merge( this, selector );
+
+ // HANDLE: $(#id)
+ } else {
+ elem = document.getElementById( match[2] );
+
+ // 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 and Opera return items
+ // by name instead of ID
+ if ( elem.id !== match[2] ) {
+ return rootjQuery.find( selector );
+ }
+
+ // Otherwise, we inject the element directly into the jQuery object
+ this.length = 1;
+ this[0] = elem;
+ }
+
+ this.context = document;
+ this.selector = selector;
+ return this;
+ }
+
+ // HANDLE: $(expr, $(...))
+ } else if ( !context || context.jquery ) {
+ return ( context || rootjQuery ).find( selector );
+
+ // HANDLE: $(expr, context)
+ // (which is just equivalent to: $(context).find(expr)
+ } else {
+ return this.constructor( context ).find( selector );
+ }
+
+ // HANDLE: $(function)
+ // Shortcut for document ready
+ } else if ( jQuery.isFunction( selector ) ) {
+ return rootjQuery.ready( selector );
+ }
+
+ if ( selector.selector !== undefined ) {
+ this.selector = selector.selector;
+ this.context = selector.context;
+ }
+
+ return jQuery.makeArray( selector, this );
+ },
+
+ // Start with an empty selector
+ selector: "",
+
+ // The current version of jQuery being used
+ jquery: "1.8.3",
+
+ // The default length of a jQuery object is 0
+ length: 0,
+
+ // The number of elements contained in the matched element set
+ size: function() {
+ return this.length;
+ },
+
+ toArray: function() {
+ return core_slice.call( this );
+ },
+
+ // Get the Nth element in the matched element set OR
+ // Get the whole matched element set as a clean array
+ get: function( num ) {
+ return num == null ?
+
+ // Return a 'clean' array
+ this.toArray() :
+
+ // Return just the object
+ ( num < 0 ? this[ this.length + num ] : this[ num ] );
+ },
+
+ // Take an array of elements and push it onto the stack
+ // (returning the new matched element set)
+ pushStack: function( elems, name, selector ) {
+
+ // Build a new jQuery matched element set
+ var ret = jQuery.merge( this.constructor(), elems );
+
+ // Add the old object onto the stack (as a reference)
+ ret.prevObject = this;
+
+ ret.context = this.context;
+
+ if ( name === "find" ) {
+ ret.selector = this.selector + ( this.selector ? " " : "" ) + selector;
+ } else if ( name ) {
+ ret.selector = this.selector + "." + name + "(" + selector + ")";
+ }
+
+ // Return the newly-formed element set
+ return ret;
+ },
+
+ // Execute a callback for every element in the matched set.
+ // (You can seed the arguments with an array of args, but this is
+ // only used internally.)
+ each: function( callback, args ) {
+ return jQuery.each( this, callback, args );
+ },
+
+ ready: function( fn ) {
+ // Add the callback
+ jQuery.ready.promise().done( fn );
+
+ return this;
+ },
+
+ eq: function( i ) {
+ i = +i;
+ return i === -1 ?
+ this.slice( i ) :
+ this.slice( i, i + 1 );
+ },
+
+ first: function() {
+ return this.eq( 0 );
+ },
+
+ last: function() {
+ return this.eq( -1 );
+ },
+
+ slice: function() {
+ return this.pushStack( core_slice.apply( this, arguments ),
+ "slice", core_slice.call(arguments).join(",") );
+ },
+
+ map: function( callback ) {
+ return this.pushStack( jQuery.map(this, function( elem, i ) {
+ return callback.call( elem, i, elem );
+ }));
+ },
+
+ end: function() {
+ return this.prevObject || this.constructor(null);
+ },
+
+ // For internal use only.
+ // Behaves like an Array's method, not like a jQuery method.
+ push: core_push,
+ sort: [].sort,
+ splice: [].splice
+};
+
+// Give the init function the jQuery prototype for later instantiation
+jQuery.fn.init.prototype = jQuery.fn;
+
+jQuery.extend = jQuery.fn.extend = function() {
+ var options, name, src, copy, copyIsArray, clone,
+ target = arguments[0] || {},
+ i = 1,
+ length = arguments.length,
+ deep = false;
+
+ // Handle a deep copy situation
+ if ( typeof target === "boolean" ) {
+ deep = target;
+ target = arguments[1] || {};
+ // skip the boolean and the target
+ i = 2;
+ }
+
+ // Handle case when target is a string or something (possible in deep copy)
+ if ( typeof target !== "object" && !jQuery.isFunction(target) ) {
+ target = {};
+ }
+
+ // extend jQuery itself if only one argument is passed
+ if ( length === i ) {
+ target = this;
+ --i;
+ }
+
+ for ( ; i < length; i++ ) {
+ // Only deal with non-null/undefined values
+ if ( (options = arguments[ i ]) != null ) {
+ // Extend the base object
+ for ( name in options ) {
+ src = target[ name ];
+ copy = options[ name ];
+
+ // Prevent never-ending loop
+ if ( target === copy ) {
+ continue;
+ }
+
+ // Recurse if we're merging plain objects or arrays
+ if ( deep && copy && ( jQuery.isPlainObject(copy) || (copyIsArray = jQuery.isArray(copy)) ) ) {
+ if ( copyIsArray ) {
+ copyIsArray = false;
+ clone = src && jQuery.isArray(src) ? src : [];
+
+ } else {
+ clone = src && jQuery.isPlainObject(src) ? src : {};
+ }
+
+ // Never move original objects, clone them
+ target[ name ] = jQuery.extend( deep, clone, copy );
+
+ // Don't bring in undefined values
+ } else if ( copy !== undefined ) {
+ target[ name ] = copy;
+ }
+ }
+ }
+ }
+
+ // Return the modified object
+ return target;
+};
+
+jQuery.extend({
+ noConflict: function( deep ) {
+ if ( window.$ === jQuery ) {
+ window.$ = _$;
+ }
+
+ if ( deep && window.jQuery === jQuery ) {
+ window.jQuery = _jQuery;
+ }
+
+ return jQuery;
+ },
+
+ // Is the DOM ready to be used? Set to true once it occurs.
+ isReady: false,
+
+ // A counter to track how many items to wait for before
+ // the ready event fires. See #6781
+ readyWait: 1,
+
+ // Hold (or release) the ready event
+ holdReady: function( hold ) {
+ if ( hold ) {
+ jQuery.readyWait++;
+ } else {
+ jQuery.ready( true );
+ }
+ },
+
+ // Handle when the DOM is ready
+ ready: function( wait ) {
+
+ // Abort if there are pending holds or we're already ready
+ if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
+ return;
+ }
+
+ // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
+ if ( !document.body ) {
+ return setTimeout( jQuery.ready, 1 );
+ }
+
+ // Remember that the DOM is ready
+ jQuery.isReady = true;
+
+ // If a normal DOM Ready event fired, decrement, and wait if need be
+ if ( wait !== true && --jQuery.readyWait > 0 ) {
+ return;
+ }
+
+ // If there are functions bound, to execute
+ readyList.resolveWith( document, [ jQuery ] );
+
+ // Trigger any bound ready events
+ if ( jQuery.fn.trigger ) {
+ jQuery( document ).trigger("ready").off("ready");
+ }
+ },
+
+ // See test/unit/core.js for details concerning isFunction.
+ // Since version 1.3, DOM methods and functions like alert
+ // aren't supported. They return false on IE (#2968).
+ isFunction: function( obj ) {
+ return jQuery.type(obj) === "function";
+ },
+
+ isArray: Array.isArray || function( obj ) {
+ return jQuery.type(obj) === "array";
+ },
+
+ isWindow: function( obj ) {
+ return obj != null && obj == obj.window;
+ },
+
+ isNumeric: function( obj ) {
+ return !isNaN( parseFloat(obj) ) && isFinite( obj );
+ },
+
+ type: function( obj ) {
+ return obj == null ?
+ String( obj ) :
+ class2type[ core_toString.call(obj) ] || "object";
+ },
+
+ isPlainObject: function( obj ) {
+ // Must be an Object.
+ // Because of IE, we also have to check the presence of the constructor property.
+ // Make sure that DOM nodes and window objects don't pass through, as well
+ if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
+ return false;
+ }
+
+ try {
+ // Not own constructor property must be Object
+ if ( obj.constructor &&
+ !core_hasOwn.call(obj, "constructor") &&
+ !core_hasOwn.call(obj.constructor.prototype, "isPrototypeOf") ) {
+ return false;
+ }
+ } catch ( e ) {
+ // IE8,9 Will throw exceptions on certain host objects #9897
+ return false;
+ }
+
+ // Own properties are enumerated firstly, so to speed up,
+ // if last one is own, then all properties are own.
+
+ var key;
+ for ( key in obj ) {}
+
+ return key === undefined || core_hasOwn.call( obj, key );
+ },
+
+ isEmptyObject: function( obj ) {
+ var name;
+ for ( name in obj ) {
+ return false;
+ }
+ return true;
+ },
+
+ error: function( msg ) {
+ throw new Error( msg );
+ },
+
+ // data: string of html
+ // context (optional): If specified, the fragment will be created in this context, defaults to document
+ // scripts (optional): If true, will include scripts passed in the html string
+ parseHTML: function( data, context, scripts ) {
+ var parsed;
+ if ( !data || typeof data !== "string" ) {
+ return null;
+ }
+ if ( typeof context === "boolean" ) {
+ scripts = context;
+ context = 0;
+ }
+ context = context || document;
+
+ // Single tag
+ if ( (parsed = rsingleTag.exec( data )) ) {
+ return [ context.createElement( parsed[1] ) ];
+ }
+
+ parsed = jQuery.buildFragment( [ data ], context, scripts ? null : [] );
+ return jQuery.merge( [],
+ (parsed.cacheable ? jQuery.clone( parsed.fragment ) : parsed.fragment).childNodes );
+ },
+
+ parseJSON: function( data ) {
+ if ( !data || typeof data !== "string") {
+ return null;
+ }
+
+ // Make sure leading/trailing whitespace is removed (IE can't handle it)
+ data = jQuery.trim( data );
+
+ // Attempt to parse using the native JSON parser first
+ if ( window.JSON && window.JSON.parse ) {
+ return window.JSON.parse( data );
+ }
+
+ // Make sure the incoming data is actual JSON
+ // Logic borrowed from http://json.org/json2.js
+ if ( rvalidchars.test( data.replace( rvalidescape, "@" )
+ .replace( rvalidtokens, "]" )
+ .replace( rvalidbraces, "")) ) {
+
+ return ( new Function( "return " + data ) )();
+
+ }
+ jQuery.error( "Invalid JSON: " + data );
+ },
+
+ // Cross-browser xml parsing
+ parseXML: function( data ) {
+ var xml, tmp;
+ if ( !data || typeof data !== "string" ) {
+ return null;
+ }
+ try {
+ if ( window.DOMParser ) { // Standard
+ tmp = new DOMParser();
+ xml = tmp.parseFromString( data , "text/xml" );
+ } else { // IE
+ xml = new ActiveXObject( "Microsoft.XMLDOM" );
+ xml.async = "false";
+ xml.loadXML( data );
+ }
+ } catch( e ) {
+ xml = undefined;
+ }
+ if ( !xml || !xml.documentElement || xml.getElementsByTagName( "parsererror" ).length ) {
+ jQuery.error( "Invalid XML: " + data );
+ }
+ return xml;
+ },
+
+ noop: function() {},
+
+ // Evaluates a script in a global context
+ // Workarounds based on findings by Jim Driscoll
+ // http://weblogs.java.net/blog/driscoll/archive/2009/09/08/eval-javascript-global-context
+ globalEval: function( data ) {
+ if ( data && core_rnotwhite.test( data ) ) {
+ // We use execScript on Internet Explorer
+ // We use an anonymous function so that context is window
+ // rather than jQuery in Firefox
+ ( window.execScript || function( data ) {
+ window[ "eval" ].call( window, data );
+ } )( data );
+ }
+ },
+
+ // Convert dashed to camelCase; used by the css and data modules
+ // Microsoft forgot to hump their vendor prefix (#9572)
+ camelCase: function( string ) {
+ return string.replace( rmsPrefix, "ms-" ).replace( rdashAlpha, fcamelCase );
+ },
+
+ nodeName: function( elem, name ) {
+ return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
+ },
+
+ // args is for internal usage only
+ each: function( obj, callback, args ) {
+ var name,
+ i = 0,
+ length = obj.length,
+ isObj = length === undefined || jQuery.isFunction( obj );
+
+ if ( args ) {
+ if ( isObj ) {
+ for ( name in obj ) {
+ if ( callback.apply( obj[ name ], args ) === false ) {
+ break;
+ }
+ }
+ } else {
+ for ( ; i < length; ) {
+ if ( callback.apply( obj[ i++ ], args ) === false ) {
+ break;
+ }
+ }
+ }
+
+ // A special, fast, case for the most common use of each
+ } else {
+ if ( isObj ) {
+ for ( name in obj ) {
+ if ( callback.call( obj[ name ], name, obj[ name ] ) === false ) {
+ break;
+ }
+ }
+ } else {
+ for ( ; i < length; ) {
+ if ( callback.call( obj[ i ], i, obj[ i++ ] ) === false ) {
+ break;
+ }
+ }
+ }
+ }
+
+ return obj;
+ },
+
+ // Use native String.trim function wherever possible
+ trim: core_trim && !core_trim.call("\uFEFF\xA0") ?
+ function( text ) {
+ return text == null ?
+ "" :
+ core_trim.call( text );
+ } :
+
+ // Otherwise use our own trimming functionality
+ function( text ) {
+ return text == null ?
+ "" :
+ ( text + "" ).replace( rtrim, "" );
+ },
+
+ // results is for internal usage only
+ makeArray: function( arr, results ) {
+ var type,
+ ret = results || [];
+
+ if ( arr != null ) {
+ // The window, strings (and functions) also have 'length'
+ // Tweaked logic slightly to handle Blackberry 4.7 RegExp issues #6930
+ type = jQuery.type( arr );
+
+ if ( arr.length == null || type === "string" || type === "function" || type === "regexp" || jQuery.isWindow( arr ) ) {
+ core_push.call( ret, arr );
+ } else {
+ jQuery.merge( ret, arr );
+ }
+ }
+
+ return ret;
+ },
+
+ inArray: function( elem, arr, i ) {
+ var len;
+
+ if ( arr ) {
+ if ( core_indexOf ) {
+ return core_indexOf.call( arr, elem, i );
+ }
+
+ len = arr.length;
+ i = i ? i < 0 ? Math.max( 0, len + i ) : i : 0;
+
+ for ( ; i < len; i++ ) {
+ // Skip accessing in sparse arrays
+ if ( i in arr && arr[ i ] === elem ) {
+ return i;
+ }
+ }
+ }
+
+ return -1;
+ },
+
+ merge: function( first, second ) {
+ var l = second.length,
+ i = first.length,
+ j = 0;
+
+ if ( typeof l === "number" ) {
+ for ( ; j < l; j++ ) {
+ first[ i++ ] = second[ j ];
+ }
+
+ } else {
+ while ( second[j] !== undefined ) {
+ first[ i++ ] = second[ j++ ];
+ }
+ }
+
+ first.length = i;
+
+ return first;
+ },
+
+ grep: function( elems, callback, inv ) {
+ var retVal,
+ ret = [],
+ i = 0,
+ length = elems.length;
+ inv = !!inv;
+
+ // Go through the array, only saving the items
+ // that pass the validator function
+ for ( ; i < length; i++ ) {
+ retVal = !!callback( elems[ i ], i );
+ if ( inv !== retVal ) {
+ ret.push( elems[ i ] );
+ }
+ }
+
+ return ret;
+ },
+
+ // arg is for internal usage only
+ map: function( elems, callback, arg ) {
+ var value, key,
+ ret = [],
+ i = 0,
+ length = elems.length,
+ // jquery objects are treated as arrays
+ isArray = elems instanceof jQuery || length !== undefined && typeof length === "number" && ( ( length > 0 && elems[ 0 ] && elems[ length -1 ] ) || length === 0 || jQuery.isArray( elems ) ) ;
+
+ // Go through the array, translating each of the items to their
+ if ( isArray ) {
+ for ( ; i < length; i++ ) {
+ value = callback( elems[ i ], i, arg );
+
+ if ( value != null ) {
+ ret[ ret.length ] = value;
+ }
+ }
+
+ // Go through every key on the object,
+ } else {
+ for ( key in elems ) {
+ value = callback( elems[ key ], key, arg );
+
+ if ( value != null ) {
+ ret[ ret.length ] = value;
+ }
+ }
+ }
+
+ // Flatten any nested arrays
+ return ret.concat.apply( [], ret );
+ },
+
+ // A global GUID counter for objects
+ guid: 1,
+
+ // Bind a function to a context, optionally partially applying any
+ // arguments.
+ proxy: function( fn, context ) {
+ var tmp, args, proxy;
+
+ if ( typeof context === "string" ) {
+ tmp = fn[ context ];
+ context = fn;
+ fn = tmp;
+ }
+
+ // Quick check to determine if target is callable, in the spec
+ // this throws a TypeError, but we will just return undefined.
+ if ( !jQuery.isFunction( fn ) ) {
+ return undefined;
+ }
+
+ // Simulated bind
+ args = core_slice.call( arguments, 2 );
+ proxy = function() {
+ return fn.apply( context, args.concat( core_slice.call( arguments ) ) );
+ };
+
+ // Set the guid of unique handler to the same of original handler, so it can be removed
+ proxy.guid = fn.guid = fn.guid || jQuery.guid++;
+
+ return proxy;
+ },
+
+ // Multifunctional method to get and set values of a collection
+ // The value/s can optionally be executed if it's a function
+ access: function( elems, fn, key, value, chainable, emptyGet, pass ) {
+ var exec,
+ bulk = key == null,
+ i = 0,
+ length = elems.length;
+
+ // Sets many values
+ if ( key && typeof key === "object" ) {
+ for ( i in key ) {
+ jQuery.access( elems, fn, i, key[i], 1, emptyGet, value );
+ }
+ chainable = 1;
+
+ // Sets one value
+ } else if ( value !== undefined ) {
+ // Optionally, function values get executed if exec is true
+ exec = pass === undefined && jQuery.isFunction( value );
+
+ if ( bulk ) {
+ // Bulk operations only iterate when executing function values
+ if ( exec ) {
+ exec = fn;
+ fn = function( elem, key, value ) {
+ return exec.call( jQuery( elem ), value );
+ };
+
+ // Otherwise they run against the entire set
+ } else {
+ fn.call( elems, value );
+ fn = null;
+ }
+ }
+
+ if ( fn ) {
+ for (; i < length; i++ ) {
+ fn( elems[i], key, exec ? value.call( elems[i], i, fn( elems[i], key ) ) : value, pass );
+ }
+ }
+
+ chainable = 1;
+ }
+
+ return chainable ?
+ elems :
+
+ // Gets
+ bulk ?
+ fn.call( elems ) :
+ length ? fn( elems[0], key ) : emptyGet;
+ },
+
+ now: function() {
+ return ( new Date() ).getTime();
+ }
+});
+
+jQuery.ready.promise = function( obj ) {
+ if ( !readyList ) {
+
+ readyList = jQuery.Deferred();
+
+ // Catch cases where $(document).ready() is called after the browser event has already occurred.
+ // we once tried to use readyState "interactive" here, but it caused issues like the one
+ // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
+ if ( document.readyState === "complete" ) {
+ // Handle it asynchronously to allow scripts the opportunity to delay ready
+ setTimeout( jQuery.ready, 1 );
+
+ // Standards-based browsers support DOMContentLoaded
+ } else if ( document.addEventListener ) {
+ // Use the handy event callback
+ document.addEventListener( "DOMContentLoaded", DOMContentLoaded, false );
+
+ // A fallback to window.onload, that will always work
+ window.addEventListener( "load", jQuery.ready, false );
+
+ // If IE event model is used
+ } else {
+ // Ensure firing before onload, maybe late but safe also for iframes
+ document.attachEvent( "onreadystatechange", DOMContentLoaded );
+
+ // A fallback to window.onload, that will always work
+ window.attachEvent( "onload", jQuery.ready );
+
+ // If IE and not a frame
+ // continually check to see if the document is ready
+ var top = false;
+
+ try {
+ top = window.frameElement == null && document.documentElement;
+ } catch(e) {}
+
+ if ( top && top.doScroll ) {
+ (function doScrollCheck() {
+ if ( !jQuery.isReady ) {
+
+ try {
+ // Use the trick by Diego Perini
+ // http://javascript.nwbox.com/IEContentLoaded/
+ top.doScroll("left");
+ } catch(e) {
+ return setTimeout( doScrollCheck, 50 );
+ }
+
+ // and execute any waiting functions
+ jQuery.ready();
+ }
+ })();
+ }
+ }
+ }
+ return readyList.promise( obj );
+};
+
+// Populate the class2type map
+jQuery.each("Boolean Number String Function Array Date RegExp Object".split(" "), function(i, name) {
+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
+});
+
+// All jQuery objects should point back to these
+rootjQuery = jQuery(document);
+// String to Object options format cache
+var optionsCache = {};
+
+// Convert String-formatted options into Object-formatted ones and store in cache
+function createOptions( options ) {
+ var object = optionsCache[ options ] = {};
+ jQuery.each( options.split( core_rspace ), function( _, flag ) {
+ object[ flag ] = true;
+ });
+ return object;
+}
+
+/*
+ * Create a callback list using the following parameters:
+ *
+ * options: an optional list of space-separated options that will change how
+ * the callback list behaves or a more traditional option object
+ *
+ * By default a callback list will act like an event callback list and can be
+ * "fired" multiple times.
+ *
+ * Possible options:
+ *
+ * once: will ensure the callback list can only be fired once (like a Deferred)
+ *
+ * memory: will keep track of previous values and will call any callback added
+ * after the list has been fired right away with the latest "memorized"
+ * values (like a Deferred)
+ *
+ * unique: will ensure a callback can only be added once (no duplicate in the list)
+ *
+ * stopOnFalse: interrupt callings when a callback returns false
+ *
+ */
+jQuery.Callbacks = function( options ) {
+
+ // Convert options from String-formatted to Object-formatted if needed
+ // (we check in cache first)
+ options = typeof options === "string" ?
+ ( optionsCache[ options ] || createOptions( options ) ) :
+ jQuery.extend( {}, options );
+
+ var // Last fire value (for non-forgettable lists)
+ memory,
+ // Flag to know if list was already fired
+ fired,
+ // Flag to know if list is currently firing
+ firing,
+ // First callback to fire (used internally by add and fireWith)
+ firingStart,
+ // End of the loop when firing
+ firingLength,
+ // Index of currently firing callback (modified by remove if needed)
+ firingIndex,
+ // Actual callback list
+ list = [],
+ // Stack of fire calls for repeatable lists
+ stack = !options.once && [],
+ // Fire callbacks
+ fire = function( data ) {
+ memory = options.memory && data;
+ fired = true;
+ firingIndex = firingStart || 0;
+ firingStart = 0;
+ firingLength = list.length;
+ firing = true;
+ for ( ; list && firingIndex < firingLength; firingIndex++ ) {
+ if ( list[ firingIndex ].apply( data[ 0 ], data[ 1 ] ) === false && options.stopOnFalse ) {
+ memory = false; // To prevent further calls using add
+ break;
+ }
+ }
+ firing = false;
+ if ( list ) {
+ if ( stack ) {
+ if ( stack.length ) {
+ fire( stack.shift() );
+ }
+ } else if ( memory ) {
+ list = [];
+ } else {
+ self.disable();
+ }
+ }
+ },
+ // Actual Callbacks object
+ self = {
+ // Add a callback or a collection of callbacks to the list
+ add: function() {
+ if ( list ) {
+ // First, we save the current length
+ var start = list.length;
+ (function add( args ) {
+ jQuery.each( args, function( _, arg ) {
+ var type = jQuery.type( arg );
+ if ( type === "function" ) {
+ if ( !options.unique || !self.has( arg ) ) {
+ list.push( arg );
+ }
+ } else if ( arg && arg.length && type !== "string" ) {
+ // Inspect recursively
+ add( arg );
+ }
+ });
+ })( arguments );
+ // Do we need to add the callbacks to the
+ // current firing batch?
+ if ( firing ) {
+ firingLength = list.length;
+ // With memory, if we're not firing then
+ // we should call right away
+ } else if ( memory ) {
+ firingStart = start;
+ fire( memory );
+ }
+ }
+ return this;
+ },
+ // Remove a callback from the list
+ remove: function() {
+ if ( list ) {
+ jQuery.each( arguments, function( _, arg ) {
+ var index;
+ while( ( index = jQuery.inArray( arg, list, index ) ) > -1 ) {
+ list.splice( index, 1 );
+ // Handle firing indexes
+ if ( firing ) {
+ if ( index <= firingLength ) {
+ firingLength--;
+ }
+ if ( index <= firingIndex ) {
+ firingIndex--;
+ }
+ }
+ }
+ });
+ }
+ return this;
+ },
+ // Control if a given callback is in the list
+ has: function( fn ) {
+ return jQuery.inArray( fn, list ) > -1;
+ },
+ // Remove all callbacks from the list
+ empty: function() {
+ list = [];
+ return this;
+ },
+ // Have the list do nothing anymore
+ disable: function() {
+ list = stack = memory = undefined;
+ return this;
+ },
+ // Is it disabled?
+ disabled: function() {
+ return !list;
+ },
+ // Lock the list in its current state
+ lock: function() {
+ stack = undefined;
+ if ( !memory ) {
+ self.disable();
+ }
+ return this;
+ },
+ // Is it locked?
+ locked: function() {
+ return !stack;
+ },
+ // Call all callbacks with the given context and arguments
+ fireWith: function( context, args ) {
+ args = args || [];
+ args = [ context, args.slice ? args.slice() : args ];
+ if ( list && ( !fired || stack ) ) {
+ if ( firing ) {
+ stack.push( args );
+ } else {
+ fire( args );
+ }
+ }
+ return this;
+ },
+ // Call all the callbacks with the given arguments
+ fire: function() {
+ self.fireWith( this, arguments );
+ return this;
+ },
+ // To know if the callbacks have already been called at least once
+ fired: function() {
+ return !!fired;
+ }
+ };
+
+ return self;
+};
+jQuery.extend({
+
+ Deferred: function( func ) {
+ var tuples = [
+ // action, add listener, listener list, final state
+ [ "resolve", "done", jQuery.Callbacks("once memory"), "resolved" ],
+ [ "reject", "fail", jQuery.Callbacks("once memory"), "rejected" ],
+ [ "notify", "progress", jQuery.Callbacks("memory") ]
+ ],
+ state = "pending",
+ promise = {
+ state: function() {
+ return state;
+ },
+ always: function() {
+ deferred.done( arguments ).fail( arguments );
+ return this;
+ },
+ then: function( /* fnDone, fnFail, fnProgress */ ) {
+ var fns = arguments;
+ return jQuery.Deferred(function( newDefer ) {
+ jQuery.each( tuples, function( i, tuple ) {
+ var action = tuple[ 0 ],
+ fn = fns[ i ];
+ // deferred[ done | fail | progress ] for forwarding actions to newDefer
+ deferred[ tuple[1] ]( jQuery.isFunction( fn ) ?
+ function() {
+ var returned = fn.apply( this, arguments );
+ if ( returned && jQuery.isFunction( returned.promise ) ) {
+ returned.promise()
+ .done( newDefer.resolve )
+ .fail( newDefer.reject )
+ .progress( newDefer.notify );
+ } else {
+ newDefer[ action + "With" ]( this === deferred ? newDefer : this, [ returned ] );
+ }
+ } :
+ newDefer[ action ]
+ );
+ });
+ fns = null;
+ }).promise();
+ },
+ // Get a promise for this deferred
+ // If obj is provided, the promise aspect is added to the object
+ promise: function( obj ) {
+ return obj != null ? jQuery.extend( obj, promise ) : promise;
+ }
+ },
+ deferred = {};
+
+ // Keep pipe for back-compat
+ promise.pipe = promise.then;
+
+ // Add list-specific methods
+ jQuery.each( tuples, function( i, tuple ) {
+ var list = tuple[ 2 ],
+ stateString = tuple[ 3 ];
+
+ // promise[ done | fail | progress ] = list.add
+ promise[ tuple[1] ] = list.add;
+
+ // Handle state
+ if ( stateString ) {
+ list.add(function() {
+ // state = [ resolved | rejected ]
+ state = stateString;
+
+ // [ reject_list | resolve_list ].disable; progress_list.lock
+ }, tuples[ i ^ 1 ][ 2 ].disable, tuples[ 2 ][ 2 ].lock );
+ }
+
+ // deferred[ resolve | reject | notify ] = list.fire
+ deferred[ tuple[0] ] = list.fire;
+ deferred[ tuple[0] + "With" ] = list.fireWith;
+ });
+
+ // Make the deferred a promise
+ promise.promise( deferred );
+
+ // Call given func if any
+ if ( func ) {
+ func.call( deferred, deferred );
+ }
+
+ // All done!
+ return deferred;
+ },
+
+ // Deferred helper
+ when: function( subordinate /* , ..., subordinateN */ ) {
+ var i = 0,
+ resolveValues = core_slice.call( arguments ),
+ length = resolveValues.length,
+
+ // the count of uncompleted subordinates
+ remaining = length !== 1 || ( subordinate && jQuery.isFunction( subordinate.promise ) ) ? length : 0,
+
+ // the master Deferred. If resolveValues consist of only a single Deferred, just use that.
+ deferred = remaining === 1 ? subordinate : jQuery.Deferred(),
+
+ // Update function for both resolve and progress values
+ updateFunc = function( i, contexts, values ) {
+ return function( value ) {
+ contexts[ i ] = this;
+ values[ i ] = arguments.length > 1 ? core_slice.call( arguments ) : value;
+ if( values === progressValues ) {
+ deferred.notifyWith( contexts, values );
+ } else if ( !( --remaining ) ) {
+ deferred.resolveWith( contexts, values );
+ }
+ };
+ },
+
+ progressValues, progressContexts, resolveContexts;
+
+ // add listeners to Deferred subordinates; treat others as resolved
+ if ( length > 1 ) {
+ progressValues = new Array( length );
+ progressContexts = new Array( length );
+ resolveContexts = new Array( length );
+ for ( ; i < length; i++ ) {
+ if ( resolveValues[ i ] && jQuery.isFunction( resolveValues[ i ].promise ) ) {
+ resolveValues[ i ].promise()
+ .done( updateFunc( i, resolveContexts, resolveValues ) )
+ .fail( deferred.reject )
+ .progress( updateFunc( i, progressContexts, progressValues ) );
+ } else {
+ --remaining;
+ }
+ }
+ }
+
+ // if we're not waiting on anything, resolve the master
+ if ( !remaining ) {
+ deferred.resolveWith( resolveContexts, resolveValues );
+ }
+
+ return deferred.promise();
+ }
+});
+jQuery.support = (function() {
+
+ var support,
+ all,
+ a,
+ select,
+ opt,
+ input,
+ fragment,
+ eventName,
+ i,
+ isSupported,
+ clickFn,
+ div = document.createElement("div");
+
+ // Setup
+ div.setAttribute( "className", "t" );
+ div.innerHTML = " a ";
+
+ // Support tests won't run in some limited or non-browser environments
+ all = div.getElementsByTagName("*");
+ a = div.getElementsByTagName("a")[ 0 ];
+ if ( !all || !a || !all.length ) {
+ return {};
+ }
+
+ // First batch of tests
+ select = document.createElement("select");
+ opt = select.appendChild( document.createElement("option") );
+ input = div.getElementsByTagName("input")[ 0 ];
+
+ a.style.cssText = "top:1px;float:left;opacity:.5";
+ support = {
+ // IE strips leading whitespace when .innerHTML is used
+ leadingWhitespace: ( div.firstChild.nodeType === 3 ),
+
+ // Make sure that tbody elements aren't automatically inserted
+ // IE will insert them into empty tables
+ tbody: !div.getElementsByTagName("tbody").length,
+
+ // Make sure that link elements get serialized correctly by innerHTML
+ // This requires a wrapper element in IE
+ htmlSerialize: !!div.getElementsByTagName("link").length,
+
+ // Get the style information from getAttribute
+ // (IE uses .cssText instead)
+ style: /top/.test( a.getAttribute("style") ),
+
+ // Make sure that URLs aren't manipulated
+ // (IE normalizes it by default)
+ hrefNormalized: ( a.getAttribute("href") === "/a" ),
+
+ // 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 ),
+
+ // Verify style float existence
+ // (IE uses styleFloat instead of cssFloat)
+ cssFloat: !!a.style.cssFloat,
+
+ // Make sure that if no value is specified for a checkbox
+ // that it defaults to "on".
+ // (WebKit defaults to "" instead)
+ checkOn: ( input.value === "on" ),
+
+ // 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,
+
+ // Test setAttribute on camelCase class. If it works, we need attrFixes when doing get/setAttribute (ie6/7)
+ getSetAttribute: div.className !== "t",
+
+ // Tests for enctype support on a form (#6743)
+ enctype: !!document.createElement("form").enctype,
+
+ // 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>",
+
+ // jQuery.support.boxModel DEPRECATED in 1.8 since we don't support Quirks Mode
+ boxModel: ( document.compatMode === "CSS1Compat" ),
+
+ // Will be defined later
+ submitBubbles: true,
+ changeBubbles: true,
+ focusinBubbles: false,
+ deleteExpando: true,
+ noCloneEvent: true,
+ inlineBlockNeedsLayout: false,
+ shrinkWrapBlocks: false,
+ reliableMarginRight: true,
+ boxSizingReliable: true,
+ pixelPosition: false
+ };
+
+ // Make sure checked status is properly cloned
+ input.checked = true;
+ support.noCloneChecked = input.cloneNode( true ).checked;
+
+ // Make sure that the options inside disabled selects aren't marked as disabled
+ // (WebKit marks them as disabled)
+ select.disabled = true;
+ support.optDisabled = !opt.disabled;
+
+ // Test to see if it's possible to delete an expando from an element
+ // Fails in Internet Explorer
+ try {
+ delete div.test;
+ } catch( e ) {
+ support.deleteExpando = false;
+ }
+
+ if ( !div.addEventListener && div.attachEvent && div.fireEvent ) {
+ div.attachEvent( "onclick", clickFn = function() {
+ // Cloning a node shouldn't copy over any
+ // bound event handlers (IE does this)
+ support.noCloneEvent = false;
+ });
+ div.cloneNode( true ).fireEvent("onclick");
+ div.detachEvent( "onclick", clickFn );
+ }
+
+ // Check if a radio maintains its value
+ // after being appended to the DOM
+ input = document.createElement("input");
+ input.value = "t";
+ input.setAttribute( "type", "radio" );
+ support.radioValue = input.value === "t";
+
+ input.setAttribute( "checked", "checked" );
+
+ // #11217 - WebKit loses check when the name is after the checked attribute
+ input.setAttribute( "name", "t" );
+
+ div.appendChild( input );
+ fragment = document.createDocumentFragment();
+ fragment.appendChild( div.lastChild );
+
+ // WebKit doesn't clone checked state correctly in fragments
+ support.checkClone = fragment.cloneNode( true ).cloneNode( true ).lastChild.checked;
+
+ // Check if a disconnected checkbox will retain its checked
+ // value of true after appended to the DOM (IE6/7)
+ support.appendChecked = input.checked;
+
+ fragment.removeChild( input );
+ fragment.appendChild( div );
+
+ // Technique from Juriy Zaytsev
+ // http://perfectionkills.com/detecting-event-support-without-browser-sniffing/
+ // We only care about the case where non-standard event systems
+ // are used, namely in IE. Short-circuiting here helps us to
+ // avoid an eval call (in setAttribute) which can cause CSP
+ // to go haywire. See: https://developer.mozilla.org/en/Security/CSP
+ if ( div.attachEvent ) {
+ for ( i in {
+ submit: true,
+ change: true,
+ focusin: true
+ }) {
+ eventName = "on" + i;
+ isSupported = ( eventName in div );
+ if ( !isSupported ) {
+ div.setAttribute( eventName, "return;" );
+ isSupported = ( typeof div[ eventName ] === "function" );
+ }
+ support[ i + "Bubbles" ] = isSupported;
+ }
+ }
+
+ // Run tests that need a body at doc ready
+ jQuery(function() {
+ var container, div, tds, marginDiv,
+ divReset = "padding:0;margin:0;border:0;display:block;overflow:hidden;",
+ body = document.getElementsByTagName("body")[0];
+
+ if ( !body ) {
+ // Return for frameset docs that don't have a body
+ return;
+ }
+
+ container = document.createElement("div");
+ container.style.cssText = "visibility:hidden;border:0;width:0;height:0;position:static;top:0;margin-top:1px";
+ body.insertBefore( container, body.firstChild );
+
+ // Construct the test element
+ div = document.createElement("div");
+ container.appendChild( div );
+
+ // Check if table cells still have offsetWidth/Height when they are set
+ // to display:none and there are still other visible table cells in a
+ // table row; if so, offsetWidth/Height are not reliable for use when
+ // determining if an element has been hidden directly using
+ // display:none (it is still safe to use offsets if a parent element is
+ // hidden; don safety goggles and see bug #4512 for more information).
+ // (only IE 8 fails this test)
+ div.innerHTML = "";
+ tds = div.getElementsByTagName("td");
+ tds[ 0 ].style.cssText = "padding:0;margin:0;border:0;display:none";
+ isSupported = ( tds[ 0 ].offsetHeight === 0 );
+
+ tds[ 0 ].style.display = "";
+ tds[ 1 ].style.display = "none";
+
+ // Check if empty table cells still have offsetWidth/Height
+ // (IE <= 8 fail this test)
+ support.reliableHiddenOffsets = isSupported && ( tds[ 0 ].offsetHeight === 0 );
+
+ // Check box-sizing and margin behavior
+ div.innerHTML = "";
+ 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%;";
+ support.boxSizing = ( div.offsetWidth === 4 );
+ support.doesNotIncludeMarginInBodyOffset = ( body.offsetTop !== 1 );
+
+ // NOTE: To any future maintainer, we've window.getComputedStyle
+ // because jsdom on node.js will break without it.
+ if ( window.getComputedStyle ) {
+ support.pixelPosition = ( window.getComputedStyle( div, null ) || {} ).top !== "1%";
+ support.boxSizingReliable = ( window.getComputedStyle( div, null ) || { width: "4px" } ).width === "4px";
+
+ // Check if div with explicit width and no margin-right incorrectly
+ // gets computed margin-right based on width of container. For more
+ // info see bug #3333
+ // Fails in WebKit before Feb 2011 nightlies
+ // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+ marginDiv = document.createElement("div");
+ marginDiv.style.cssText = div.style.cssText = divReset;
+ marginDiv.style.marginRight = marginDiv.style.width = "0";
+ div.style.width = "1px";
+ div.appendChild( marginDiv );
+ support.reliableMarginRight =
+ !parseFloat( ( window.getComputedStyle( marginDiv, null ) || {} ).marginRight );
+ }
+
+ if ( typeof div.style.zoom !== "undefined" ) {
+ // Check if natively block-level elements act like inline-block
+ // elements when setting their display to 'inline' and giving
+ // them layout
+ // (IE < 8 does this)
+ div.innerHTML = "";
+ div.style.cssText = divReset + "width:1px;padding:1px;display:inline;zoom:1";
+ support.inlineBlockNeedsLayout = ( div.offsetWidth === 3 );
+
+ // Check if elements with layout shrink-wrap their children
+ // (IE 6 does this)
+ div.style.display = "block";
+ div.style.overflow = "visible";
+ div.innerHTML = "
";
+ div.firstChild.style.width = "5px";
+ support.shrinkWrapBlocks = ( div.offsetWidth !== 3 );
+
+ container.style.zoom = 1;
+ }
+
+ // Null elements to avoid leaks in IE
+ body.removeChild( container );
+ container = div = tds = marginDiv = null;
+ });
+
+ // Null elements to avoid leaks in IE
+ fragment.removeChild( div );
+ all = a = select = opt = input = fragment = div = null;
+
+ return support;
+})();
+var rbrace = /(?:\{[\s\S]*\}|\[[\s\S]*\])$/,
+ rmultiDash = /([A-Z])/g;
+
+jQuery.extend({
+ cache: {},
+
+ deletedIds: [],
+
+ // Remove at next major release (1.9/2.0)
+ uuid: 0,
+
+ // Unique for each copy of jQuery on the page
+ // Non-digits removed to match rinlinejQuery
+ expando: "jQuery" + ( jQuery.fn.jquery + Math.random() ).replace( /\D/g, "" ),
+
+ // The following elements throw uncatchable exceptions if you
+ // attempt to add expando properties to them.
+ noData: {
+ "embed": true,
+ // Ban all objects except for Flash (which handle expandos)
+ "object": "clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",
+ "applet": true
+ },
+
+ hasData: function( elem ) {
+ elem = elem.nodeType ? jQuery.cache[ elem[jQuery.expando] ] : elem[ jQuery.expando ];
+ return !!elem && !isEmptyDataObject( elem );
+ },
+
+ data: function( elem, name, data, pvt /* Internal Use Only */ ) {
+ if ( !jQuery.acceptData( elem ) ) {
+ return;
+ }
+
+ var thisCache, ret,
+ internalKey = jQuery.expando,
+ getByName = typeof name === "string",
+
+ // We have to handle DOM nodes and JS objects differently because IE6-7
+ // can't GC object references properly across the DOM-JS boundary
+ isNode = elem.nodeType,
+
+ // Only DOM nodes need the global jQuery cache; JS object data is
+ // attached directly to the object so GC can occur automatically
+ cache = isNode ? jQuery.cache : elem,
+
+ // Only defining an ID for JS objects if its cache already exists allows
+ // the code to shortcut on the same path as a DOM node with no cache
+ id = isNode ? elem[ internalKey ] : elem[ internalKey ] && internalKey;
+
+ // Avoid doing any more work than we need to when trying to get data on an
+ // object that has no data at all
+ if ( (!id || !cache[id] || (!pvt && !cache[id].data)) && getByName && data === undefined ) {
+ return;
+ }
+
+ if ( !id ) {
+ // Only DOM nodes need a new unique ID for each element since their data
+ // ends up in the global cache
+ if ( isNode ) {
+ elem[ internalKey ] = id = jQuery.deletedIds.pop() || jQuery.guid++;
+ } else {
+ id = internalKey;
+ }
+ }
+
+ if ( !cache[ id ] ) {
+ cache[ id ] = {};
+
+ // Avoids exposing jQuery metadata on plain JS objects when the object
+ // is serialized using JSON.stringify
+ if ( !isNode ) {
+ cache[ id ].toJSON = jQuery.noop;
+ }
+ }
+
+ // An object can be passed to jQuery.data instead of a key/value pair; this gets
+ // shallow copied over onto the existing cache
+ if ( typeof name === "object" || typeof name === "function" ) {
+ if ( pvt ) {
+ cache[ id ] = jQuery.extend( cache[ id ], name );
+ } else {
+ cache[ id ].data = jQuery.extend( cache[ id ].data, name );
+ }
+ }
+
+ thisCache = cache[ id ];
+
+ // jQuery data() is stored in a separate object inside the object's internal data
+ // cache in order to avoid key collisions between internal data and user-defined
+ // data.
+ if ( !pvt ) {
+ if ( !thisCache.data ) {
+ thisCache.data = {};
+ }
+
+ thisCache = thisCache.data;
+ }
+
+ if ( data !== undefined ) {
+ thisCache[ jQuery.camelCase( name ) ] = data;
+ }
+
+ // Check for both converted-to-camel and non-converted data property names
+ // If a data property was specified
+ if ( getByName ) {
+
+ // First Try to find as-is property data
+ ret = thisCache[ name ];
+
+ // Test for null|undefined property data
+ if ( ret == null ) {
+
+ // Try to find the camelCased property
+ ret = thisCache[ jQuery.camelCase( name ) ];
+ }
+ } else {
+ ret = thisCache;
+ }
+
+ return ret;
+ },
+
+ removeData: function( elem, name, pvt /* Internal Use Only */ ) {
+ if ( !jQuery.acceptData( elem ) ) {
+ return;
+ }
+
+ var thisCache, i, l,
+
+ isNode = elem.nodeType,
+
+ // See jQuery.data for more information
+ cache = isNode ? jQuery.cache : elem,
+ id = isNode ? elem[ jQuery.expando ] : jQuery.expando;
+
+ // If there is already no cache entry for this object, there is no
+ // purpose in continuing
+ if ( !cache[ id ] ) {
+ return;
+ }
+
+ if ( name ) {
+
+ thisCache = pvt ? cache[ id ] : cache[ id ].data;
+
+ if ( thisCache ) {
+
+ // Support array or space separated string names for data keys
+ if ( !jQuery.isArray( name ) ) {
+
+ // try the string as a key before any manipulation
+ if ( name in thisCache ) {
+ name = [ name ];
+ } else {
+
+ // split the camel cased version by spaces unless a key with the spaces exists
+ name = jQuery.camelCase( name );
+ if ( name in thisCache ) {
+ name = [ name ];
+ } else {
+ name = name.split(" ");
+ }
+ }
+ }
+
+ for ( i = 0, l = name.length; i < l; i++ ) {
+ delete thisCache[ name[i] ];
+ }
+
+ // If there is no data left in the cache, we want to continue
+ // and let the cache object itself get destroyed
+ if ( !( pvt ? isEmptyDataObject : jQuery.isEmptyObject )( thisCache ) ) {
+ return;
+ }
+ }
+ }
+
+ // See jQuery.data for more information
+ if ( !pvt ) {
+ delete cache[ id ].data;
+
+ // Don't destroy the parent cache unless the internal data object
+ // had been the only thing left in it
+ if ( !isEmptyDataObject( cache[ id ] ) ) {
+ return;
+ }
+ }
+
+ // Destroy the cache
+ if ( isNode ) {
+ jQuery.cleanData( [ elem ], true );
+
+ // Use delete when supported for expandos or `cache` is not a window per isWindow (#10080)
+ } else if ( jQuery.support.deleteExpando || cache != cache.window ) {
+ delete cache[ id ];
+
+ // When all else fails, null
+ } else {
+ cache[ id ] = null;
+ }
+ },
+
+ // For internal use only.
+ _data: function( elem, name, data ) {
+ return jQuery.data( elem, name, data, true );
+ },
+
+ // A method for determining if a DOM node can handle the data expando
+ acceptData: function( elem ) {
+ var noData = elem.nodeName && jQuery.noData[ elem.nodeName.toLowerCase() ];
+
+ // nodes accept data unless otherwise specified; rejection can be conditional
+ return !noData || noData !== true && elem.getAttribute("classid") === noData;
+ }
+});
+
+jQuery.fn.extend({
+ data: function( key, value ) {
+ var parts, part, attr, name, l,
+ elem = this[0],
+ i = 0,
+ data = null;
+
+ // Gets all values
+ if ( key === undefined ) {
+ if ( this.length ) {
+ data = jQuery.data( elem );
+
+ if ( elem.nodeType === 1 && !jQuery._data( elem, "parsedAttrs" ) ) {
+ attr = elem.attributes;
+ for ( l = attr.length; i < l; i++ ) {
+ name = attr[i].name;
+
+ if ( !name.indexOf( "data-" ) ) {
+ name = jQuery.camelCase( name.substring(5) );
+
+ dataAttr( elem, name, data[ name ] );
+ }
+ }
+ jQuery._data( elem, "parsedAttrs", true );
+ }
+ }
+
+ return data;
+ }
+
+ // Sets multiple values
+ if ( typeof key === "object" ) {
+ return this.each(function() {
+ jQuery.data( this, key );
+ });
+ }
+
+ parts = key.split( ".", 2 );
+ parts[1] = parts[1] ? "." + parts[1] : "";
+ part = parts[1] + "!";
+
+ return jQuery.access( this, function( value ) {
+
+ if ( value === undefined ) {
+ data = this.triggerHandler( "getData" + part, [ parts[0] ] );
+
+ // Try to fetch any internally stored data first
+ if ( data === undefined && elem ) {
+ data = jQuery.data( elem, key );
+ data = dataAttr( elem, key, data );
+ }
+
+ return data === undefined && parts[1] ?
+ this.data( parts[0] ) :
+ data;
+ }
+
+ parts[1] = value;
+ this.each(function() {
+ var self = jQuery( this );
+
+ self.triggerHandler( "setData" + part, parts );
+ jQuery.data( this, key, value );
+ self.triggerHandler( "changeData" + part, parts );
+ });
+ }, null, value, arguments.length > 1, null, false );
+ },
+
+ removeData: function( key ) {
+ return this.each(function() {
+ jQuery.removeData( this, key );
+ });
+ }
+});
+
+function dataAttr( elem, key, data ) {
+ // If nothing was found internally, try to fetch any
+ // data from the HTML5 data-* attribute
+ if ( data === undefined && elem.nodeType === 1 ) {
+
+ var name = "data-" + key.replace( rmultiDash, "-$1" ).toLowerCase();
+
+ data = elem.getAttribute( name );
+
+ if ( typeof data === "string" ) {
+ try {
+ data = data === "true" ? true :
+ data === "false" ? false :
+ data === "null" ? null :
+ // Only convert to a number if it doesn't change the string
+ +data + "" === data ? +data :
+ rbrace.test( data ) ? jQuery.parseJSON( data ) :
+ data;
+ } catch( e ) {}
+
+ // Make sure we set the data so it isn't changed later
+ jQuery.data( elem, key, data );
+
+ } else {
+ data = undefined;
+ }
+ }
+
+ return data;
+}
+
+// checks a cache object for emptiness
+function isEmptyDataObject( obj ) {
+ var name;
+ for ( name in obj ) {
+
+ // if the public data object is empty, the private is still empty
+ if ( name === "data" && jQuery.isEmptyObject( obj[name] ) ) {
+ continue;
+ }
+ if ( name !== "toJSON" ) {
+ return false;
+ }
+ }
+
+ return true;
+}
+jQuery.extend({
+ queue: function( elem, type, data ) {
+ var queue;
+
+ if ( elem ) {
+ type = ( type || "fx" ) + "queue";
+ queue = jQuery._data( elem, type );
+
+ // Speed up dequeue by getting out quickly if this is just a lookup
+ if ( data ) {
+ if ( !queue || jQuery.isArray(data) ) {
+ queue = jQuery._data( elem, type, jQuery.makeArray(data) );
+ } else {
+ queue.push( data );
+ }
+ }
+ return queue || [];
+ }
+ },
+
+ dequeue: function( elem, type ) {
+ type = type || "fx";
+
+ var queue = jQuery.queue( elem, type ),
+ startLength = queue.length,
+ fn = queue.shift(),
+ hooks = jQuery._queueHooks( elem, type ),
+ next = function() {
+ jQuery.dequeue( elem, type );
+ };
+
+ // If the fx queue is dequeued, always remove the progress sentinel
+ if ( fn === "inprogress" ) {
+ fn = queue.shift();
+ startLength--;
+ }
+
+ if ( fn ) {
+
+ // Add a progress sentinel to prevent the fx queue from being
+ // automatically dequeued
+ if ( type === "fx" ) {
+ queue.unshift( "inprogress" );
+ }
+
+ // clear up the last queue stop function
+ delete hooks.stop;
+ fn.call( elem, next, hooks );
+ }
+
+ if ( !startLength && hooks ) {
+ hooks.empty.fire();
+ }
+ },
+
+ // not intended for public consumption - generates a queueHooks object, or returns the current one
+ _queueHooks: function( elem, type ) {
+ var key = type + "queueHooks";
+ return jQuery._data( elem, key ) || jQuery._data( elem, key, {
+ empty: jQuery.Callbacks("once memory").add(function() {
+ jQuery.removeData( elem, type + "queue", true );
+ jQuery.removeData( elem, key, true );
+ })
+ });
+ }
+});
+
+jQuery.fn.extend({
+ queue: function( type, data ) {
+ var setter = 2;
+
+ if ( typeof type !== "string" ) {
+ data = type;
+ type = "fx";
+ setter--;
+ }
+
+ if ( arguments.length < setter ) {
+ return jQuery.queue( this[0], type );
+ }
+
+ return data === undefined ?
+ this :
+ this.each(function() {
+ var queue = jQuery.queue( this, type, data );
+
+ // ensure a hooks for this queue
+ jQuery._queueHooks( this, type );
+
+ if ( type === "fx" && queue[0] !== "inprogress" ) {
+ jQuery.dequeue( this, type );
+ }
+ });
+ },
+ dequeue: function( type ) {
+ return this.each(function() {
+ jQuery.dequeue( this, type );
+ });
+ },
+ // Based off of the plugin by Clint Helfers, with permission.
+ // http://blindsignals.com/index.php/2009/07/jquery-delay/
+ delay: function( time, type ) {
+ time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
+ type = type || "fx";
+
+ return this.queue( type, function( next, hooks ) {
+ var timeout = setTimeout( next, time );
+ hooks.stop = function() {
+ clearTimeout( timeout );
+ };
+ });
+ },
+ clearQueue: function( type ) {
+ return this.queue( type || "fx", [] );
+ },
+ // Get a promise resolved when queues of a certain type
+ // are emptied (fx is the type by default)
+ promise: function( type, obj ) {
+ var tmp,
+ count = 1,
+ defer = jQuery.Deferred(),
+ elements = this,
+ i = this.length,
+ resolve = function() {
+ if ( !( --count ) ) {
+ defer.resolveWith( elements, [ elements ] );
+ }
+ };
+
+ if ( typeof type !== "string" ) {
+ obj = type;
+ type = undefined;
+ }
+ type = type || "fx";
+
+ while( i-- ) {
+ tmp = jQuery._data( elements[ i ], type + "queueHooks" );
+ if ( tmp && tmp.empty ) {
+ count++;
+ tmp.empty.add( resolve );
+ }
+ }
+ resolve();
+ return defer.promise( obj );
+ }
+});
+var nodeHook, boolHook, fixSpecified,
+ rclass = /[\t\r\n]/g,
+ rreturn = /\r/g,
+ rtype = /^(?:button|input)$/i,
+ rfocusable = /^(?:button|input|object|select|textarea)$/i,
+ rclickable = /^a(?:rea|)$/i,
+ rboolean = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
+ getSetAttribute = jQuery.support.getSetAttribute;
+
+jQuery.fn.extend({
+ attr: function( name, value ) {
+ return jQuery.access( this, jQuery.attr, name, value, arguments.length > 1 );
+ },
+
+ removeAttr: function( name ) {
+ return this.each(function() {
+ jQuery.removeAttr( this, name );
+ });
+ },
+
+ prop: function( name, value ) {
+ return jQuery.access( this, jQuery.prop, name, value, arguments.length > 1 );
+ },
+
+ removeProp: function( name ) {
+ name = jQuery.propFix[ name ] || name;
+ return this.each(function() {
+ // try/catch handles cases where IE balks (such as removing a property on window)
+ try {
+ this[ name ] = undefined;
+ delete this[ name ];
+ } catch( e ) {}
+ });
+ },
+
+ addClass: function( value ) {
+ var classNames, i, l, elem,
+ setClass, c, cl;
+
+ if ( jQuery.isFunction( value ) ) {
+ return this.each(function( j ) {
+ jQuery( this ).addClass( value.call(this, j, this.className) );
+ });
+ }
+
+ if ( value && typeof value === "string" ) {
+ classNames = value.split( core_rspace );
+
+ for ( i = 0, l = this.length; i < l; i++ ) {
+ elem = this[ i ];
+
+ if ( elem.nodeType === 1 ) {
+ if ( !elem.className && classNames.length === 1 ) {
+ elem.className = value;
+
+ } else {
+ setClass = " " + elem.className + " ";
+
+ for ( c = 0, cl = classNames.length; c < cl; c++ ) {
+ if ( setClass.indexOf( " " + classNames[ c ] + " " ) < 0 ) {
+ setClass += classNames[ c ] + " ";
+ }
+ }
+ elem.className = jQuery.trim( setClass );
+ }
+ }
+ }
+ }
+
+ return this;
+ },
+
+ removeClass: function( value ) {
+ var removes, className, elem, c, cl, i, l;
+
+ if ( jQuery.isFunction( value ) ) {
+ return this.each(function( j ) {
+ jQuery( this ).removeClass( value.call(this, j, this.className) );
+ });
+ }
+ if ( (value && typeof value === "string") || value === undefined ) {
+ removes = ( value || "" ).split( core_rspace );
+
+ for ( i = 0, l = this.length; i < l; i++ ) {
+ elem = this[ i ];
+ if ( elem.nodeType === 1 && elem.className ) {
+
+ className = (" " + elem.className + " ").replace( rclass, " " );
+
+ // loop over each item in the removal list
+ for ( c = 0, cl = removes.length; c < cl; c++ ) {
+ // Remove until there is nothing to remove,
+ while ( className.indexOf(" " + removes[ c ] + " ") >= 0 ) {
+ className = className.replace( " " + removes[ c ] + " " , " " );
+ }
+ }
+ elem.className = value ? jQuery.trim( className ) : "";
+ }
+ }
+ }
+
+ return this;
+ },
+
+ toggleClass: function( value, stateVal ) {
+ var type = typeof value,
+ isBool = typeof stateVal === "boolean";
+
+ if ( jQuery.isFunction( value ) ) {
+ return this.each(function( i ) {
+ jQuery( this ).toggleClass( value.call(this, i, this.className, stateVal), stateVal );
+ });
+ }
+
+ return this.each(function() {
+ if ( type === "string" ) {
+ // toggle individual class names
+ var className,
+ i = 0,
+ self = jQuery( this ),
+ state = stateVal,
+ classNames = value.split( core_rspace );
+
+ while ( (className = classNames[ i++ ]) ) {
+ // check each className given, space separated list
+ state = isBool ? state : !self.hasClass( className );
+ self[ state ? "addClass" : "removeClass" ]( className );
+ }
+
+ } else if ( type === "undefined" || type === "boolean" ) {
+ if ( this.className ) {
+ // store className if set
+ jQuery._data( this, "__className__", this.className );
+ }
+
+ // toggle whole className
+ this.className = this.className || value === false ? "" : jQuery._data( this, "__className__" ) || "";
+ }
+ });
+ },
+
+ hasClass: function( selector ) {
+ var className = " " + selector + " ",
+ i = 0,
+ l = this.length;
+ for ( ; i < l; i++ ) {
+ if ( this[i].nodeType === 1 && (" " + this[i].className + " ").replace(rclass, " ").indexOf( className ) >= 0 ) {
+ return true;
+ }
+ }
+
+ return false;
+ },
+
+ val: function( value ) {
+ var hooks, ret, isFunction,
+ elem = this[0];
+
+ if ( !arguments.length ) {
+ if ( elem ) {
+ hooks = jQuery.valHooks[ elem.type ] || jQuery.valHooks[ elem.nodeName.toLowerCase() ];
+
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, "value" )) !== undefined ) {
+ return ret;
+ }
+
+ ret = elem.value;
+
+ return typeof ret === "string" ?
+ // handle most common string cases
+ ret.replace(rreturn, "") :
+ // handle cases where value is null/undef or number
+ ret == null ? "" : ret;
+ }
+
+ return;
+ }
+
+ isFunction = jQuery.isFunction( value );
+
+ return this.each(function( i ) {
+ var val,
+ self = jQuery(this);
+
+ if ( this.nodeType !== 1 ) {
+ return;
+ }
+
+ if ( isFunction ) {
+ val = value.call( this, i, self.val() );
+ } else {
+ val = value;
+ }
+
+ // Treat null/undefined as ""; convert numbers to string
+ if ( val == null ) {
+ val = "";
+ } else if ( typeof val === "number" ) {
+ val += "";
+ } else if ( jQuery.isArray( val ) ) {
+ val = jQuery.map(val, function ( value ) {
+ return value == null ? "" : value + "";
+ });
+ }
+
+ hooks = jQuery.valHooks[ this.type ] || jQuery.valHooks[ this.nodeName.toLowerCase() ];
+
+ // If set returns undefined, fall back to normal setting
+ if ( !hooks || !("set" in hooks) || hooks.set( this, val, "value" ) === undefined ) {
+ this.value = val;
+ }
+ });
+ }
+});
+
+jQuery.extend({
+ valHooks: {
+ option: {
+ get: function( elem ) {
+ // 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;
+ }
+ },
+ select: {
+ get: function( elem ) {
+ var value, option,
+ options = elem.options,
+ index = elem.selectedIndex,
+ one = elem.type === "select-one" || index < 0,
+ values = one ? null : [],
+ max = one ? index + 1 : options.length,
+ i = index < 0 ?
+ max :
+ one ? index : 0;
+
+ // Loop through all the selected options
+ for ( ; i < max; i++ ) {
+ option = options[ i ];
+
+ // oldIE doesn't update selected after form reset (#2551)
+ if ( ( option.selected || i === index ) &&
+ // Don't return options that are disabled or in a disabled optgroup
+ ( jQuery.support.optDisabled ? !option.disabled : option.getAttribute("disabled") === null ) &&
+ ( !option.parentNode.disabled || !jQuery.nodeName( option.parentNode, "optgroup" ) ) ) {
+
+ // Get the specific value for the option
+ value = jQuery( option ).val();
+
+ // We don't need an array for one selects
+ if ( one ) {
+ return value;
+ }
+
+ // Multi-Selects return an array
+ values.push( value );
+ }
+ }
+
+ return values;
+ },
+
+ set: function( elem, value ) {
+ var values = jQuery.makeArray( value );
+
+ jQuery(elem).find("option").each(function() {
+ this.selected = jQuery.inArray( jQuery(this).val(), values ) >= 0;
+ });
+
+ if ( !values.length ) {
+ elem.selectedIndex = -1;
+ }
+ return values;
+ }
+ }
+ },
+
+ // Unused in 1.8, left in so attrFn-stabbers won't die; remove in 1.9
+ attrFn: {},
+
+ attr: function( elem, name, value, pass ) {
+ var ret, hooks, notxml,
+ nType = elem.nodeType;
+
+ // don't get/set attributes on text, comment and attribute nodes
+ if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+ return;
+ }
+
+ if ( pass && jQuery.isFunction( jQuery.fn[ name ] ) ) {
+ return jQuery( elem )[ name ]( value );
+ }
+
+ // Fallback to prop when attributes are not supported
+ if ( typeof elem.getAttribute === "undefined" ) {
+ return jQuery.prop( elem, name, value );
+ }
+
+ notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+ // All attributes are lowercase
+ // Grab necessary hook if one is defined
+ if ( notxml ) {
+ name = name.toLowerCase();
+ hooks = jQuery.attrHooks[ name ] || ( rboolean.test( name ) ? boolHook : nodeHook );
+ }
+
+ if ( value !== undefined ) {
+
+ if ( value === null ) {
+ jQuery.removeAttr( elem, name );
+ return;
+
+ } else if ( hooks && "set" in hooks && notxml && (ret = hooks.set( elem, value, name )) !== undefined ) {
+ return ret;
+
+ } else {
+ elem.setAttribute( name, value + "" );
+ return value;
+ }
+
+ } else if ( hooks && "get" in hooks && notxml && (ret = hooks.get( elem, name )) !== null ) {
+ return ret;
+
+ } else {
+
+ ret = elem.getAttribute( name );
+
+ // Non-existent attributes return null, we normalize to undefined
+ return ret === null ?
+ undefined :
+ ret;
+ }
+ },
+
+ removeAttr: function( elem, value ) {
+ var propName, attrNames, name, isBool,
+ i = 0;
+
+ if ( value && elem.nodeType === 1 ) {
+
+ attrNames = value.split( core_rspace );
+
+ for ( ; i < attrNames.length; i++ ) {
+ name = attrNames[ i ];
+
+ if ( name ) {
+ propName = jQuery.propFix[ name ] || name;
+ isBool = rboolean.test( name );
+
+ // See #9699 for explanation of this approach (setting first, then removal)
+ // Do not do this for boolean attributes (see #10870)
+ if ( !isBool ) {
+ jQuery.attr( elem, name, "" );
+ }
+ elem.removeAttribute( getSetAttribute ? name : propName );
+
+ // Set corresponding property to false for boolean attributes
+ if ( isBool && propName in elem ) {
+ elem[ propName ] = false;
+ }
+ }
+ }
+ }
+ },
+
+ attrHooks: {
+ type: {
+ set: function( elem, value ) {
+ // We can't allow the type property to be changed (since it causes problems in IE)
+ if ( rtype.test( elem.nodeName ) && elem.parentNode ) {
+ jQuery.error( "type property can't be changed" );
+ } else if ( !jQuery.support.radioValue && value === "radio" && jQuery.nodeName(elem, "input") ) {
+ // Setting the type on a radio button after the value resets the value in IE6-9
+ // Reset value to it's default in case type is set after value
+ // This is for element creation
+ var val = elem.value;
+ elem.setAttribute( "type", value );
+ if ( val ) {
+ elem.value = val;
+ }
+ return value;
+ }
+ }
+ },
+ // Use the value property for back compat
+ // Use the nodeHook for button elements in IE6/7 (#1954)
+ value: {
+ get: function( elem, name ) {
+ if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+ return nodeHook.get( elem, name );
+ }
+ return name in elem ?
+ elem.value :
+ null;
+ },
+ set: function( elem, value, name ) {
+ if ( nodeHook && jQuery.nodeName( elem, "button" ) ) {
+ return nodeHook.set( elem, value, name );
+ }
+ // Does not return so that setAttribute is also used
+ elem.value = value;
+ }
+ }
+ },
+
+ propFix: {
+ tabindex: "tabIndex",
+ readonly: "readOnly",
+ "for": "htmlFor",
+ "class": "className",
+ maxlength: "maxLength",
+ cellspacing: "cellSpacing",
+ cellpadding: "cellPadding",
+ rowspan: "rowSpan",
+ colspan: "colSpan",
+ usemap: "useMap",
+ frameborder: "frameBorder",
+ contenteditable: "contentEditable"
+ },
+
+ prop: function( elem, name, value ) {
+ var ret, hooks, notxml,
+ nType = elem.nodeType;
+
+ // don't get/set properties on text, comment and attribute nodes
+ if ( !elem || nType === 3 || nType === 8 || nType === 2 ) {
+ return;
+ }
+
+ notxml = nType !== 1 || !jQuery.isXMLDoc( elem );
+
+ if ( notxml ) {
+ // Fix name and attach hooks
+ name = jQuery.propFix[ name ] || name;
+ hooks = jQuery.propHooks[ name ];
+ }
+
+ if ( value !== undefined ) {
+ if ( hooks && "set" in hooks && (ret = hooks.set( elem, value, name )) !== undefined ) {
+ return ret;
+
+ } else {
+ return ( elem[ name ] = value );
+ }
+
+ } else {
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, name )) !== null ) {
+ return ret;
+
+ } else {
+ return elem[ name ];
+ }
+ }
+ },
+
+ propHooks: {
+ tabIndex: {
+ get: function( elem ) {
+ // elem.tabIndex doesn't always return the correct value when it hasn't been explicitly set
+ // http://fluidproject.org/blog/2008/01/09/getting-setting-and-removing-tabindex-values-with-javascript/
+ var attributeNode = elem.getAttributeNode("tabindex");
+
+ return attributeNode && attributeNode.specified ?
+ parseInt( attributeNode.value, 10 ) :
+ rfocusable.test( elem.nodeName ) || rclickable.test( elem.nodeName ) && elem.href ?
+ 0 :
+ undefined;
+ }
+ }
+ }
+});
+
+// Hook for boolean attributes
+boolHook = {
+ get: function( elem, name ) {
+ // Align boolean attributes with corresponding properties
+ // Fall back to attribute presence where some booleans are not supported
+ var attrNode,
+ property = jQuery.prop( elem, name );
+ return property === true || typeof property !== "boolean" && ( attrNode = elem.getAttributeNode(name) ) && attrNode.nodeValue !== false ?
+ name.toLowerCase() :
+ undefined;
+ },
+ set: function( elem, value, name ) {
+ var propName;
+ if ( value === false ) {
+ // Remove boolean attributes when set to false
+ jQuery.removeAttr( elem, name );
+ } else {
+ // value is true since we know at this point it's type boolean and not false
+ // Set boolean attributes to the same name and set the DOM property
+ propName = jQuery.propFix[ name ] || name;
+ if ( propName in elem ) {
+ // Only set the IDL specifically if it already exists on the element
+ elem[ propName ] = true;
+ }
+
+ elem.setAttribute( name, name.toLowerCase() );
+ }
+ return name;
+ }
+};
+
+// IE6/7 do not support getting/setting some attributes with get/setAttribute
+if ( !getSetAttribute ) {
+
+ fixSpecified = {
+ name: true,
+ id: true,
+ coords: true
+ };
+
+ // Use this for any attribute in IE6/7
+ // This fixes almost every IE6/7 issue
+ nodeHook = jQuery.valHooks.button = {
+ get: function( elem, name ) {
+ var ret;
+ ret = elem.getAttributeNode( name );
+ return ret && ( fixSpecified[ name ] ? ret.value !== "" : ret.specified ) ?
+ ret.value :
+ undefined;
+ },
+ set: function( elem, value, name ) {
+ // Set the existing or create a new attribute node
+ var ret = elem.getAttributeNode( name );
+ if ( !ret ) {
+ ret = document.createAttribute( name );
+ elem.setAttributeNode( ret );
+ }
+ return ( ret.value = value + "" );
+ }
+ };
+
+ // Set width and height to auto instead of 0 on empty string( Bug #8150 )
+ // This is for removals
+ jQuery.each([ "width", "height" ], function( i, name ) {
+ jQuery.attrHooks[ name ] = jQuery.extend( jQuery.attrHooks[ name ], {
+ set: function( elem, value ) {
+ if ( value === "" ) {
+ elem.setAttribute( name, "auto" );
+ return value;
+ }
+ }
+ });
+ });
+
+ // Set contenteditable to false on removals(#10429)
+ // Setting to empty string throws an error as an invalid value
+ jQuery.attrHooks.contenteditable = {
+ get: nodeHook.get,
+ set: function( elem, value, name ) {
+ if ( value === "" ) {
+ value = "false";
+ }
+ nodeHook.set( elem, value, name );
+ }
+ };
+}
+
+
+// Some attributes require a special call on IE
+if ( !jQuery.support.hrefNormalized ) {
+ 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;
+ }
+ });
+ });
+}
+
+if ( !jQuery.support.style ) {
+ jQuery.attrHooks.style = {
+ get: function( elem ) {
+ // Return undefined in the case of empty string
+ // Normalize to lowercase since IE uppercases css property names
+ return elem.style.cssText.toLowerCase() || undefined;
+ },
+ set: function( elem, value ) {
+ return ( elem.style.cssText = value + "" );
+ }
+ };
+}
+
+// Safari mis-reports the default selected property of an option
+// Accessing the parent's selectedIndex property fixes it
+if ( !jQuery.support.optSelected ) {
+ jQuery.propHooks.selected = jQuery.extend( jQuery.propHooks.selected, {
+ get: function( elem ) {
+ var parent = elem.parentNode;
+
+ if ( parent ) {
+ parent.selectedIndex;
+
+ // Make sure that it also works with optgroups, see #5701
+ if ( parent.parentNode ) {
+ parent.parentNode.selectedIndex;
+ }
+ }
+ return null;
+ }
+ });
+}
+
+// IE6/7 call enctype encoding
+if ( !jQuery.support.enctype ) {
+ jQuery.propFix.enctype = "encoding";
+}
+
+// Radios and checkboxes getter/setter
+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;
+ }
+ };
+ });
+}
+jQuery.each([ "radio", "checkbox" ], function() {
+ jQuery.valHooks[ this ] = jQuery.extend( jQuery.valHooks[ this ], {
+ set: function( elem, value ) {
+ if ( jQuery.isArray( value ) ) {
+ return ( elem.checked = jQuery.inArray( jQuery(elem).val(), value ) >= 0 );
+ }
+ }
+ });
+});
+var rformElems = /^(?:textarea|input|select)$/i,
+ rtypenamespace = /^([^\.]*|)(?:\.(.+)|)$/,
+ rhoverHack = /(?:^|\s)hover(\.\S+|)\b/,
+ rkeyEvent = /^key/,
+ rmouseEvent = /^(?:mouse|contextmenu)|click/,
+ rfocusMorph = /^(?:focusinfocus|focusoutblur)$/,
+ hoverHack = function( events ) {
+ return jQuery.event.special.hover ? events : events.replace( rhoverHack, "mouseenter$1 mouseleave$1" );
+ };
+
+/*
+ * Helper functions for managing events -- not part of the public interface.
+ * Props to Dean Edwards' addEvent library for many of the ideas.
+ */
+jQuery.event = {
+
+ add: function( elem, types, handler, data, selector ) {
+
+ var elemData, eventHandle, events,
+ t, tns, type, namespaces, handleObj,
+ handleObjIn, handlers, special;
+
+ // Don't attach events to noData or text/comment nodes (allow plain objects tho)
+ if ( elem.nodeType === 3 || elem.nodeType === 8 || !types || !handler || !(elemData = jQuery._data( elem )) ) {
+ return;
+ }
+
+ // Caller can pass in an object of custom data in lieu of the handler
+ if ( handler.handler ) {
+ handleObjIn = handler;
+ handler = handleObjIn.handler;
+ selector = handleObjIn.selector;
+ }
+
+ // Make sure that the handler has a unique ID, used to find/remove it later
+ if ( !handler.guid ) {
+ handler.guid = jQuery.guid++;
+ }
+
+ // Init the element's event structure and main handler, if this is the first
+ events = elemData.events;
+ if ( !events ) {
+ elemData.events = events = {};
+ }
+ eventHandle = elemData.handle;
+ if ( !eventHandle ) {
+ elemData.handle = eventHandle = function( e ) {
+ // Discard the second event of a jQuery.event.trigger() and
+ // when an event is called after a page has unloaded
+ return typeof jQuery !== "undefined" && (!e || jQuery.event.triggered !== e.type) ?
+ jQuery.event.dispatch.apply( eventHandle.elem, arguments ) :
+ undefined;
+ };
+ // Add elem as a property of the handle fn to prevent a memory leak with IE non-native events
+ eventHandle.elem = elem;
+ }
+
+ // Handle multiple events separated by a space
+ // jQuery(...).bind("mouseover mouseout", fn);
+ types = jQuery.trim( hoverHack(types) ).split( " " );
+ for ( t = 0; t < types.length; t++ ) {
+
+ tns = rtypenamespace.exec( types[t] ) || [];
+ type = tns[1];
+ namespaces = ( tns[2] || "" ).split( "." ).sort();
+
+ // If event changes its type, use the special event handlers for the changed type
+ special = jQuery.event.special[ type ] || {};
+
+ // If selector defined, determine special event api type, otherwise given type
+ type = ( selector ? special.delegateType : special.bindType ) || type;
+
+ // Update special based on newly reset type
+ special = jQuery.event.special[ type ] || {};
+
+ // handleObj is passed to all event handlers
+ handleObj = jQuery.extend({
+ type: type,
+ origType: tns[1],
+ data: data,
+ handler: handler,
+ guid: handler.guid,
+ selector: selector,
+ needsContext: selector && jQuery.expr.match.needsContext.test( selector ),
+ namespace: namespaces.join(".")
+ }, handleObjIn );
+
+ // Init the event handler queue if we're the first
+ handlers = events[ type ];
+ if ( !handlers ) {
+ handlers = events[ type ] = [];
+ handlers.delegateCount = 0;
+
+ // Only use addEventListener/attachEvent if the special events handler returns false
+ if ( !special.setup || special.setup.call( elem, data, namespaces, eventHandle ) === false ) {
+ // Bind the global event handler to the element
+ if ( elem.addEventListener ) {
+ elem.addEventListener( type, eventHandle, false );
+
+ } else if ( elem.attachEvent ) {
+ elem.attachEvent( "on" + type, eventHandle );
+ }
+ }
+ }
+
+ if ( special.add ) {
+ special.add.call( elem, handleObj );
+
+ if ( !handleObj.handler.guid ) {
+ handleObj.handler.guid = handler.guid;
+ }
+ }
+
+ // Add to the element's handler list, delegates in front
+ if ( selector ) {
+ handlers.splice( handlers.delegateCount++, 0, handleObj );
+ } else {
+ handlers.push( handleObj );
+ }
+
+ // Keep track of which events have ever been used, for event optimization
+ jQuery.event.global[ type ] = true;
+ }
+
+ // Nullify elem to prevent memory leaks in IE
+ elem = null;
+ },
+
+ global: {},
+
+ // Detach an event or set of events from an element
+ remove: function( elem, types, handler, selector, mappedTypes ) {
+
+ var t, tns, type, origType, namespaces, origCount,
+ j, events, special, eventType, handleObj,
+ elemData = jQuery.hasData( elem ) && jQuery._data( elem );
+
+ if ( !elemData || !(events = elemData.events) ) {
+ return;
+ }
+
+ // Once for each type.namespace in types; type may be omitted
+ types = jQuery.trim( hoverHack( types || "" ) ).split(" ");
+ for ( t = 0; t < types.length; t++ ) {
+ tns = rtypenamespace.exec( types[t] ) || [];
+ type = origType = tns[1];
+ namespaces = tns[2];
+
+ // Unbind all events (on this namespace, if provided) for the element
+ if ( !type ) {
+ for ( type in events ) {
+ jQuery.event.remove( elem, type + types[ t ], handler, selector, true );
+ }
+ continue;
+ }
+
+ special = jQuery.event.special[ type ] || {};
+ type = ( selector? special.delegateType : special.bindType ) || type;
+ eventType = events[ type ] || [];
+ origCount = eventType.length;
+ namespaces = namespaces ? new RegExp("(^|\\.)" + namespaces.split(".").sort().join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
+
+ // Remove matching events
+ for ( j = 0; j < eventType.length; j++ ) {
+ handleObj = eventType[ j ];
+
+ if ( ( mappedTypes || origType === handleObj.origType ) &&
+ ( !handler || handler.guid === handleObj.guid ) &&
+ ( !namespaces || namespaces.test( handleObj.namespace ) ) &&
+ ( !selector || selector === handleObj.selector || selector === "**" && handleObj.selector ) ) {
+ eventType.splice( j--, 1 );
+
+ if ( handleObj.selector ) {
+ eventType.delegateCount--;
+ }
+ if ( special.remove ) {
+ special.remove.call( elem, handleObj );
+ }
+ }
+ }
+
+ // Remove generic event handler if we removed something and no more handlers exist
+ // (avoids potential for endless recursion during removal of special event handlers)
+ if ( eventType.length === 0 && origCount !== eventType.length ) {
+ if ( !special.teardown || special.teardown.call( elem, namespaces, elemData.handle ) === false ) {
+ jQuery.removeEvent( elem, type, elemData.handle );
+ }
+
+ delete events[ type ];
+ }
+ }
+
+ // Remove the expando if it's no longer used
+ if ( jQuery.isEmptyObject( events ) ) {
+ delete elemData.handle;
+
+ // removeData also checks for emptiness and clears the expando if empty
+ // so use it instead of delete
+ jQuery.removeData( elem, "events", true );
+ }
+ },
+
+ // Events that are safe to short-circuit if no handlers are attached.
+ // Native DOM events should not be added, they may have inline handlers.
+ customEvent: {
+ "getData": true,
+ "setData": true,
+ "changeData": true
+ },
+
+ trigger: function( event, data, elem, onlyHandlers ) {
+ // Don't do events on text and comment nodes
+ if ( elem && (elem.nodeType === 3 || elem.nodeType === 8) ) {
+ return;
+ }
+
+ // Event object or event type
+ var cache, exclusive, i, cur, old, ontype, special, handle, eventPath, bubbleType,
+ type = event.type || event,
+ namespaces = [];
+
+ // focus/blur morphs to focusin/out; ensure we're not firing them right now
+ if ( rfocusMorph.test( type + jQuery.event.triggered ) ) {
+ return;
+ }
+
+ if ( type.indexOf( "!" ) >= 0 ) {
+ // Exclusive events trigger only for the exact event (no namespaces)
+ type = type.slice(0, -1);
+ exclusive = true;
+ }
+
+ if ( type.indexOf( "." ) >= 0 ) {
+ // Namespaced trigger; create a regexp to match event type in handle()
+ namespaces = type.split(".");
+ type = namespaces.shift();
+ namespaces.sort();
+ }
+
+ if ( (!elem || jQuery.event.customEvent[ type ]) && !jQuery.event.global[ type ] ) {
+ // No jQuery handlers for this event type, and it can't have inline handlers
+ return;
+ }
+
+ // Caller can pass in an Event, Object, or just an event type string
+ event = typeof event === "object" ?
+ // jQuery.Event object
+ event[ jQuery.expando ] ? event :
+ // Object literal
+ new jQuery.Event( type, event ) :
+ // Just the event type (string)
+ new jQuery.Event( type );
+
+ event.type = type;
+ event.isTrigger = true;
+ event.exclusive = exclusive;
+ event.namespace = namespaces.join( "." );
+ event.namespace_re = event.namespace? new RegExp("(^|\\.)" + namespaces.join("\\.(?:.*\\.|)") + "(\\.|$)") : null;
+ ontype = type.indexOf( ":" ) < 0 ? "on" + type : "";
+
+ // Handle a global trigger
+ if ( !elem ) {
+
+ // TODO: Stop taunting the data cache; remove global events and always attach to document
+ cache = jQuery.cache;
+ for ( i in cache ) {
+ if ( cache[ i ].events && cache[ i ].events[ type ] ) {
+ jQuery.event.trigger( event, data, cache[ i ].handle.elem, true );
+ }
+ }
+ return;
+ }
+
+ // Clean up the event in case it is being reused
+ event.result = undefined;
+ if ( !event.target ) {
+ event.target = elem;
+ }
+
+ // Clone any incoming data and prepend the event, creating the handler arg list
+ data = data != null ? jQuery.makeArray( data ) : [];
+ data.unshift( event );
+
+ // Allow special events to draw outside the lines
+ special = jQuery.event.special[ type ] || {};
+ if ( special.trigger && special.trigger.apply( elem, data ) === false ) {
+ return;
+ }
+
+ // Determine event propagation path in advance, per W3C events spec (#9951)
+ // Bubble up to document, then to window; watch for a global ownerDocument var (#9724)
+ eventPath = [[ elem, special.bindType || type ]];
+ if ( !onlyHandlers && !special.noBubble && !jQuery.isWindow( elem ) ) {
+
+ bubbleType = special.delegateType || type;
+ cur = rfocusMorph.test( bubbleType + type ) ? elem : elem.parentNode;
+ for ( old = elem; cur; cur = cur.parentNode ) {
+ eventPath.push([ cur, bubbleType ]);
+ old = cur;
+ }
+
+ // Only add window if we got to document (e.g., not plain obj or detached DOM)
+ if ( old === (elem.ownerDocument || document) ) {
+ eventPath.push([ old.defaultView || old.parentWindow || window, bubbleType ]);
+ }
+ }
+
+ // Fire handlers on the event path
+ for ( i = 0; i < eventPath.length && !event.isPropagationStopped(); i++ ) {
+
+ cur = eventPath[i][0];
+ event.type = eventPath[i][1];
+
+ handle = ( jQuery._data( cur, "events" ) || {} )[ event.type ] && jQuery._data( cur, "handle" );
+ if ( handle ) {
+ handle.apply( cur, data );
+ }
+ // Note that this is a bare JS function and not a jQuery handler
+ handle = ontype && cur[ ontype ];
+ if ( handle && jQuery.acceptData( cur ) && handle.apply && handle.apply( cur, data ) === false ) {
+ event.preventDefault();
+ }
+ }
+ event.type = type;
+
+ // If nobody prevented the default action, do it now
+ if ( !onlyHandlers && !event.isDefaultPrevented() ) {
+
+ if ( (!special._default || special._default.apply( elem.ownerDocument, data ) === false) &&
+ !(type === "click" && jQuery.nodeName( elem, "a" )) && jQuery.acceptData( elem ) ) {
+
+ // Call a native DOM method on the target with the same name name as the event.
+ // Can't use an .isFunction() check here because IE6/7 fails that test.
+ // Don't do default actions on window, that's where global variables be (#6170)
+ // IE<9 dies on focus/blur to hidden element (#1486)
+ if ( ontype && elem[ type ] && ((type !== "focus" && type !== "blur") || event.target.offsetWidth !== 0) && !jQuery.isWindow( elem ) ) {
+
+ // Don't re-trigger an onFOO event when we call its FOO() method
+ old = elem[ ontype ];
+
+ if ( old ) {
+ elem[ ontype ] = null;
+ }
+
+ // Prevent re-triggering of the same event, since we already bubbled it above
+ jQuery.event.triggered = type;
+ elem[ type ]();
+ jQuery.event.triggered = undefined;
+
+ if ( old ) {
+ elem[ ontype ] = old;
+ }
+ }
+ }
+ }
+
+ return event.result;
+ },
+
+ dispatch: function( event ) {
+
+ // Make a writable jQuery.Event from the native event object
+ event = jQuery.event.fix( event || window.event );
+
+ var i, j, cur, ret, selMatch, matched, matches, handleObj, sel, related,
+ handlers = ( (jQuery._data( this, "events" ) || {} )[ event.type ] || []),
+ delegateCount = handlers.delegateCount,
+ args = core_slice.call( arguments ),
+ run_all = !event.exclusive && !event.namespace,
+ special = jQuery.event.special[ event.type ] || {},
+ handlerQueue = [];
+
+ // Use the fix-ed jQuery.Event rather than the (read-only) native event
+ args[0] = event;
+ event.delegateTarget = this;
+
+ // Call the preDispatch hook for the mapped type, and let it bail if desired
+ if ( special.preDispatch && special.preDispatch.call( this, event ) === false ) {
+ return;
+ }
+
+ // Determine handlers that should run if there are delegated events
+ // Avoid non-left-click bubbling in Firefox (#3861)
+ if ( delegateCount && !(event.button && event.type === "click") ) {
+
+ for ( cur = event.target; cur != this; cur = cur.parentNode || this ) {
+
+ // Don't process clicks (ONLY) on disabled elements (#6911, #8165, #11382, #11764)
+ if ( cur.disabled !== true || event.type !== "click" ) {
+ selMatch = {};
+ matches = [];
+ for ( i = 0; i < delegateCount; i++ ) {
+ handleObj = handlers[ i ];
+ sel = handleObj.selector;
+
+ if ( selMatch[ sel ] === undefined ) {
+ selMatch[ sel ] = handleObj.needsContext ?
+ jQuery( sel, this ).index( cur ) >= 0 :
+ jQuery.find( sel, this, null, [ cur ] ).length;
+ }
+ if ( selMatch[ sel ] ) {
+ matches.push( handleObj );
+ }
+ }
+ if ( matches.length ) {
+ handlerQueue.push({ elem: cur, matches: matches });
+ }
+ }
+ }
+ }
+
+ // Add the remaining (directly-bound) handlers
+ if ( handlers.length > delegateCount ) {
+ handlerQueue.push({ elem: this, matches: handlers.slice( delegateCount ) });
+ }
+
+ // Run delegates first; they may want to stop propagation beneath us
+ for ( i = 0; i < handlerQueue.length && !event.isPropagationStopped(); i++ ) {
+ matched = handlerQueue[ i ];
+ event.currentTarget = matched.elem;
+
+ for ( j = 0; j < matched.matches.length && !event.isImmediatePropagationStopped(); j++ ) {
+ handleObj = matched.matches[ j ];
+
+ // Triggered event must either 1) be non-exclusive and have no namespace, or
+ // 2) have namespace(s) a subset or equal to those in the bound event (both can have no namespace).
+ if ( run_all || (!event.namespace && !handleObj.namespace) || event.namespace_re && event.namespace_re.test( handleObj.namespace ) ) {
+
+ event.data = handleObj.data;
+ event.handleObj = handleObj;
+
+ ret = ( (jQuery.event.special[ handleObj.origType ] || {}).handle || handleObj.handler )
+ .apply( matched.elem, args );
+
+ if ( ret !== undefined ) {
+ event.result = ret;
+ if ( ret === false ) {
+ event.preventDefault();
+ event.stopPropagation();
+ }
+ }
+ }
+ }
+ }
+
+ // Call the postDispatch hook for the mapped type
+ if ( special.postDispatch ) {
+ special.postDispatch.call( this, event );
+ }
+
+ return event.result;
+ },
+
+ // Includes some event props shared by KeyEvent and MouseEvent
+ // *** attrChange attrName relatedNode srcElement are not normalized, non-W3C, deprecated, will be removed in 1.8 ***
+ props: "attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),
+
+ fixHooks: {},
+
+ keyHooks: {
+ props: "char charCode key keyCode".split(" "),
+ filter: function( event, original ) {
+
+ // Add which for key events
+ if ( event.which == null ) {
+ event.which = original.charCode != null ? original.charCode : original.keyCode;
+ }
+
+ return event;
+ }
+ },
+
+ mouseHooks: {
+ props: "button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement".split(" "),
+ filter: function( event, original ) {
+ var eventDoc, doc, body,
+ button = original.button,
+ fromElement = original.fromElement;
+
+ // Calculate pageX/Y if missing and clientX/Y available
+ if ( event.pageX == null && original.clientX != null ) {
+ eventDoc = event.target.ownerDocument || document;
+ doc = eventDoc.documentElement;
+ body = eventDoc.body;
+
+ event.pageX = original.clientX + ( doc && doc.scrollLeft || body && body.scrollLeft || 0 ) - ( doc && doc.clientLeft || body && body.clientLeft || 0 );
+ event.pageY = original.clientY + ( doc && doc.scrollTop || body && body.scrollTop || 0 ) - ( doc && doc.clientTop || body && body.clientTop || 0 );
+ }
+
+ // Add relatedTarget, if necessary
+ if ( !event.relatedTarget && fromElement ) {
+ event.relatedTarget = fromElement === event.target ? original.toElement : fromElement;
+ }
+
+ // Add which for click: 1 === left; 2 === middle; 3 === right
+ // Note: button is not normalized, so don't use it
+ if ( !event.which && button !== undefined ) {
+ event.which = ( button & 1 ? 1 : ( button & 2 ? 3 : ( button & 4 ? 2 : 0 ) ) );
+ }
+
+ return event;
+ }
+ },
+
+ fix: function( event ) {
+ if ( event[ jQuery.expando ] ) {
+ return event;
+ }
+
+ // Create a writable copy of the event object and normalize some properties
+ var i, prop,
+ originalEvent = event,
+ fixHook = jQuery.event.fixHooks[ event.type ] || {},
+ copy = fixHook.props ? this.props.concat( fixHook.props ) : this.props;
+
+ event = jQuery.Event( originalEvent );
+
+ for ( i = copy.length; i; ) {
+ prop = copy[ --i ];
+ event[ prop ] = originalEvent[ prop ];
+ }
+
+ // Fix target property, if necessary (#1925, IE 6/7/8 & Safari2)
+ if ( !event.target ) {
+ event.target = originalEvent.srcElement || document;
+ }
+
+ // Target should not be a text node (#504, Safari)
+ if ( event.target.nodeType === 3 ) {
+ event.target = event.target.parentNode;
+ }
+
+ // For mouse/key events, metaKey==false if it's undefined (#3368, #11328; IE6/7/8)
+ event.metaKey = !!event.metaKey;
+
+ return fixHook.filter? fixHook.filter( event, originalEvent ) : event;
+ },
+
+ special: {
+ load: {
+ // Prevent triggered image.load events from bubbling to window.load
+ noBubble: true
+ },
+
+ focus: {
+ delegateType: "focusin"
+ },
+ blur: {
+ delegateType: "focusout"
+ },
+
+ beforeunload: {
+ setup: function( data, namespaces, eventHandle ) {
+ // We only want to do this special case on windows
+ if ( jQuery.isWindow( this ) ) {
+ this.onbeforeunload = eventHandle;
+ }
+ },
+
+ teardown: function( namespaces, eventHandle ) {
+ if ( this.onbeforeunload === eventHandle ) {
+ this.onbeforeunload = null;
+ }
+ }
+ }
+ },
+
+ simulate: function( type, elem, event, bubble ) {
+ // Piggyback on a donor event to simulate a different one.
+ // Fake originalEvent to avoid donor's stopPropagation, but if the
+ // simulated event prevents default then we do the same on the donor.
+ var e = jQuery.extend(
+ new jQuery.Event(),
+ event,
+ { type: type,
+ isSimulated: true,
+ originalEvent: {}
+ }
+ );
+ if ( bubble ) {
+ jQuery.event.trigger( e, null, elem );
+ } else {
+ jQuery.event.dispatch.call( elem, e );
+ }
+ if ( e.isDefaultPrevented() ) {
+ event.preventDefault();
+ }
+ }
+};
+
+// Some plugins are using, but it's undocumented/deprecated and will be removed.
+// The 1.7 special event interface should provide all the hooks needed now.
+jQuery.event.handle = jQuery.event.dispatch;
+
+jQuery.removeEvent = document.removeEventListener ?
+ function( elem, type, handle ) {
+ if ( elem.removeEventListener ) {
+ elem.removeEventListener( type, handle, false );
+ }
+ } :
+ function( elem, type, handle ) {
+ var name = "on" + type;
+
+ if ( elem.detachEvent ) {
+
+ // #8545, #7054, preventing memory leaks for custom events in IE6-8
+ // detachEvent needed property on element, by name of that event, to properly expose it to GC
+ if ( typeof elem[ name ] === "undefined" ) {
+ elem[ name ] = null;
+ }
+
+ elem.detachEvent( name, handle );
+ }
+ };
+
+jQuery.Event = function( src, props ) {
+ // Allow instantiation without the 'new' keyword
+ if ( !(this instanceof jQuery.Event) ) {
+ return new jQuery.Event( src, props );
+ }
+
+ // Event object
+ if ( src && src.type ) {
+ this.originalEvent = src;
+ this.type = src.type;
+
+ // Events bubbling up the document may have been marked as prevented
+ // by a handler lower down the tree; reflect the correct value.
+ this.isDefaultPrevented = ( src.defaultPrevented || src.returnValue === false ||
+ src.getPreventDefault && src.getPreventDefault() ) ? returnTrue : returnFalse;
+
+ // Event type
+ } else {
+ this.type = src;
+ }
+
+ // Put explicitly provided properties onto the event object
+ if ( props ) {
+ jQuery.extend( this, props );
+ }
+
+ // Create a timestamp if incoming event doesn't have one
+ this.timeStamp = src && src.timeStamp || jQuery.now();
+
+ // Mark it as fixed
+ this[ jQuery.expando ] = true;
+};
+
+function returnFalse() {
+ return false;
+}
+function returnTrue() {
+ return true;
+}
+
+// jQuery.Event is based on DOM3 Events as specified by the ECMAScript Language Binding
+// http://www.w3.org/TR/2003/WD-DOM-Level-3-Events-20030331/ecma-script-binding.html
+jQuery.Event.prototype = {
+ preventDefault: function() {
+ this.isDefaultPrevented = returnTrue;
+
+ var e = this.originalEvent;
+ if ( !e ) {
+ return;
+ }
+
+ // if preventDefault exists run it on the original event
+ if ( e.preventDefault ) {
+ e.preventDefault();
+
+ // otherwise set the returnValue property of the original event to false (IE)
+ } else {
+ e.returnValue = false;
+ }
+ },
+ stopPropagation: function() {
+ this.isPropagationStopped = returnTrue;
+
+ var e = this.originalEvent;
+ if ( !e ) {
+ return;
+ }
+ // if stopPropagation exists run it on the original event
+ if ( e.stopPropagation ) {
+ e.stopPropagation();
+ }
+ // otherwise set the cancelBubble property of the original event to true (IE)
+ e.cancelBubble = true;
+ },
+ stopImmediatePropagation: function() {
+ this.isImmediatePropagationStopped = returnTrue;
+ this.stopPropagation();
+ },
+ isDefaultPrevented: returnFalse,
+ isPropagationStopped: returnFalse,
+ isImmediatePropagationStopped: returnFalse
+};
+
+// Create mouseenter/leave events using mouseover/out and event-time checks
+jQuery.each({
+ mouseenter: "mouseover",
+ mouseleave: "mouseout"
+}, function( orig, fix ) {
+ jQuery.event.special[ orig ] = {
+ delegateType: fix,
+ bindType: fix,
+
+ handle: function( event ) {
+ var ret,
+ target = this,
+ related = event.relatedTarget,
+ handleObj = event.handleObj,
+ selector = handleObj.selector;
+
+ // For mousenter/leave call the handler if related is outside the target.
+ // NB: No relatedTarget if the mouse left/entered the browser window
+ if ( !related || (related !== target && !jQuery.contains( target, related )) ) {
+ event.type = handleObj.origType;
+ ret = handleObj.handler.apply( this, arguments );
+ event.type = fix;
+ }
+ return ret;
+ }
+ };
+});
+
+// IE submit delegation
+if ( !jQuery.support.submitBubbles ) {
+
+ jQuery.event.special.submit = {
+ setup: function() {
+ // Only need this for delegated form submit events
+ if ( jQuery.nodeName( this, "form" ) ) {
+ return false;
+ }
+
+ // Lazy-add a submit handler when a descendant form may potentially be submitted
+ jQuery.event.add( this, "click._submit keypress._submit", function( e ) {
+ // Node name check avoids a VML-related crash in IE (#9807)
+ var elem = e.target,
+ form = jQuery.nodeName( elem, "input" ) || jQuery.nodeName( elem, "button" ) ? elem.form : undefined;
+ if ( form && !jQuery._data( form, "_submit_attached" ) ) {
+ jQuery.event.add( form, "submit._submit", function( event ) {
+ event._submit_bubble = true;
+ });
+ jQuery._data( form, "_submit_attached", true );
+ }
+ });
+ // return undefined since we don't need an event listener
+ },
+
+ postDispatch: function( event ) {
+ // If form was submitted by the user, bubble the event up the tree
+ if ( event._submit_bubble ) {
+ delete event._submit_bubble;
+ if ( this.parentNode && !event.isTrigger ) {
+ jQuery.event.simulate( "submit", this.parentNode, event, true );
+ }
+ }
+ },
+
+ teardown: function() {
+ // Only need this for delegated form submit events
+ if ( jQuery.nodeName( this, "form" ) ) {
+ return false;
+ }
+
+ // Remove delegated handlers; cleanData eventually reaps submit handlers attached above
+ jQuery.event.remove( this, "._submit" );
+ }
+ };
+}
+
+// IE change delegation and checkbox/radio fix
+if ( !jQuery.support.changeBubbles ) {
+
+ jQuery.event.special.change = {
+
+ setup: function() {
+
+ if ( rformElems.test( this.nodeName ) ) {
+ // IE doesn't fire change on a check/radio until blur; trigger it on click
+ // after a propertychange. Eat the blur-change in special.change.handle.
+ // This still fires onchange a second time for check/radio after blur.
+ if ( this.type === "checkbox" || this.type === "radio" ) {
+ jQuery.event.add( this, "propertychange._change", function( event ) {
+ if ( event.originalEvent.propertyName === "checked" ) {
+ this._just_changed = true;
+ }
+ });
+ jQuery.event.add( this, "click._change", function( event ) {
+ if ( this._just_changed && !event.isTrigger ) {
+ this._just_changed = false;
+ }
+ // Allow triggered, simulated change events (#11500)
+ jQuery.event.simulate( "change", this, event, true );
+ });
+ }
+ return false;
+ }
+ // Delegated event; lazy-add a change handler on descendant inputs
+ jQuery.event.add( this, "beforeactivate._change", function( e ) {
+ var elem = e.target;
+
+ if ( rformElems.test( elem.nodeName ) && !jQuery._data( elem, "_change_attached" ) ) {
+ jQuery.event.add( elem, "change._change", function( event ) {
+ if ( this.parentNode && !event.isSimulated && !event.isTrigger ) {
+ jQuery.event.simulate( "change", this.parentNode, event, true );
+ }
+ });
+ jQuery._data( elem, "_change_attached", true );
+ }
+ });
+ },
+
+ handle: function( event ) {
+ var elem = event.target;
+
+ // Swallow native change events from checkbox/radio, we already triggered them above
+ if ( this !== elem || event.isSimulated || event.isTrigger || (elem.type !== "radio" && elem.type !== "checkbox") ) {
+ return event.handleObj.handler.apply( this, arguments );
+ }
+ },
+
+ teardown: function() {
+ jQuery.event.remove( this, "._change" );
+
+ return !rformElems.test( this.nodeName );
+ }
+ };
+}
+
+// Create "bubbling" focus and blur events
+if ( !jQuery.support.focusinBubbles ) {
+ jQuery.each({ focus: "focusin", blur: "focusout" }, function( orig, fix ) {
+
+ // Attach a single capturing handler while someone wants focusin/focusout
+ var attaches = 0,
+ handler = function( event ) {
+ jQuery.event.simulate( fix, event.target, jQuery.event.fix( event ), true );
+ };
+
+ jQuery.event.special[ fix ] = {
+ setup: function() {
+ if ( attaches++ === 0 ) {
+ document.addEventListener( orig, handler, true );
+ }
+ },
+ teardown: function() {
+ if ( --attaches === 0 ) {
+ document.removeEventListener( orig, handler, true );
+ }
+ }
+ };
+ });
+}
+
+jQuery.fn.extend({
+
+ on: function( types, selector, data, fn, /*INTERNAL*/ one ) {
+ var origFn, type;
+
+ // Types can be a map of types/handlers
+ if ( typeof types === "object" ) {
+ // ( types-Object, selector, data )
+ if ( typeof selector !== "string" ) { // && selector != null
+ // ( types-Object, data )
+ data = data || selector;
+ selector = undefined;
+ }
+ for ( type in types ) {
+ this.on( type, selector, data, types[ type ], one );
+ }
+ return this;
+ }
+
+ if ( data == null && fn == null ) {
+ // ( types, fn )
+ fn = selector;
+ data = selector = undefined;
+ } else if ( fn == null ) {
+ if ( typeof selector === "string" ) {
+ // ( types, selector, fn )
+ fn = data;
+ data = undefined;
+ } else {
+ // ( types, data, fn )
+ fn = data;
+ data = selector;
+ selector = undefined;
+ }
+ }
+ if ( fn === false ) {
+ fn = returnFalse;
+ } else if ( !fn ) {
+ return this;
+ }
+
+ if ( one === 1 ) {
+ origFn = fn;
+ fn = function( event ) {
+ // Can use an empty set, since event contains the info
+ jQuery().off( event );
+ return origFn.apply( this, arguments );
+ };
+ // Use same guid so caller can remove using origFn
+ fn.guid = origFn.guid || ( origFn.guid = jQuery.guid++ );
+ }
+ return this.each( function() {
+ jQuery.event.add( this, types, fn, data, selector );
+ });
+ },
+ one: function( types, selector, data, fn ) {
+ return this.on( types, selector, data, fn, 1 );
+ },
+ off: function( types, selector, fn ) {
+ var handleObj, type;
+ if ( types && types.preventDefault && types.handleObj ) {
+ // ( event ) dispatched jQuery.Event
+ handleObj = types.handleObj;
+ jQuery( types.delegateTarget ).off(
+ handleObj.namespace ? handleObj.origType + "." + handleObj.namespace : handleObj.origType,
+ handleObj.selector,
+ handleObj.handler
+ );
+ return this;
+ }
+ if ( typeof types === "object" ) {
+ // ( types-object [, selector] )
+ for ( type in types ) {
+ this.off( type, selector, types[ type ] );
+ }
+ return this;
+ }
+ if ( selector === false || typeof selector === "function" ) {
+ // ( types [, fn] )
+ fn = selector;
+ selector = undefined;
+ }
+ if ( fn === false ) {
+ fn = returnFalse;
+ }
+ return this.each(function() {
+ jQuery.event.remove( this, types, fn, selector );
+ });
+ },
+
+ bind: function( types, data, fn ) {
+ return this.on( types, null, data, fn );
+ },
+ unbind: function( types, fn ) {
+ return this.off( types, null, fn );
+ },
+
+ live: function( types, data, fn ) {
+ jQuery( this.context ).on( types, this.selector, data, fn );
+ return this;
+ },
+ die: function( types, fn ) {
+ jQuery( this.context ).off( types, this.selector || "**", fn );
+ return this;
+ },
+
+ 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 );
+ },
+
+ trigger: function( type, data ) {
+ return this.each(function() {
+ jQuery.event.trigger( type, data, this );
+ });
+ },
+ triggerHandler: function( type, data ) {
+ if ( this[0] ) {
+ return jQuery.event.trigger( type, data, this[0], true );
+ }
+ },
+
+ toggle: function( fn ) {
+ // Save reference to arguments for access in closure
+ var args = arguments,
+ guid = fn.guid || jQuery.guid++,
+ i = 0,
+ toggler = function( event ) {
+ // Figure out which function to execute
+ var lastToggle = ( jQuery._data( this, "lastToggle" + fn.guid ) || 0 ) % i;
+ jQuery._data( this, "lastToggle" + fn.guid, lastToggle + 1 );
+
+ // Make sure that clicks stop
+ event.preventDefault();
+
+ // and execute the function
+ return args[ lastToggle ].apply( this, arguments ) || false;
+ };
+
+ // link all the functions, so any of them can unbind this click handler
+ toggler.guid = guid;
+ while ( i < args.length ) {
+ args[ i++ ].guid = guid;
+ }
+
+ return this.click( toggler );
+ },
+
+ hover: function( fnOver, fnOut ) {
+ return this.mouseenter( fnOver ).mouseleave( fnOut || fnOver );
+ }
+});
+
+jQuery.each( ("blur focus focusin focusout load resize scroll unload click dblclick " +
+ "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
+ "change select submit keydown keypress keyup error contextmenu").split(" "), function( i, name ) {
+
+ // Handle event binding
+ jQuery.fn[ name ] = function( data, fn ) {
+ if ( fn == null ) {
+ fn = data;
+ data = null;
+ }
+
+ return arguments.length > 0 ?
+ this.on( name, null, data, fn ) :
+ this.trigger( name );
+ };
+
+ if ( rkeyEvent.test( name ) ) {
+ jQuery.event.fixHooks[ name ] = jQuery.event.keyHooks;
+ }
+
+ if ( rmouseEvent.test( name ) ) {
+ jQuery.event.fixHooks[ name ] = jQuery.event.mouseHooks;
+ }
+});
+/*!
+ * Sizzle CSS Selector Engine
+ * Copyright 2012 jQuery Foundation and other contributors
+ * Released under the MIT license
+ * http://sizzlejs.com/
+ */
+(function( window, undefined ) {
+
+var cachedruns,
+ assertGetIdNotName,
+ Expr,
+ getText,
+ isXML,
+ contains,
+ compile,
+ sortOrder,
+ hasDuplicate,
+ outermostContext,
+
+ baseHasDuplicate = true,
+ strundefined = "undefined",
+
+ expando = ( "sizcache" + Math.random() ).replace( ".", "" ),
+
+ Token = String,
+ document = window.document,
+ docElem = document.documentElement,
+ dirruns = 0,
+ done = 0,
+ pop = [].pop,
+ push = [].push,
+ slice = [].slice,
+ // Use a stripped-down indexOf if a native one is unavailable
+ indexOf = [].indexOf || function( elem ) {
+ var i = 0,
+ len = this.length;
+ for ( ; i < len; i++ ) {
+ if ( this[i] === elem ) {
+ return i;
+ }
+ }
+ return -1;
+ },
+
+ // Augment a function for special use by Sizzle
+ markFunction = function( fn, value ) {
+ fn[ expando ] = value == null || value;
+ return fn;
+ },
+
+ createCache = function() {
+ var cache = {},
+ keys = [];
+
+ return markFunction(function( key, value ) {
+ // Only keep the most recent entries
+ if ( keys.push( key ) > Expr.cacheLength ) {
+ delete cache[ keys.shift() ];
+ }
+
+ // Retrieve with (key + " ") to avoid collision with native Object.prototype properties (see Issue #157)
+ return (cache[ key + " " ] = value);
+ }, cache );
+ },
+
+ classCache = createCache(),
+ tokenCache = createCache(),
+ compilerCache = createCache(),
+
+ // Regex
+
+ // 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 not in parens/brackets,
+ // then attribute selectors and non-pseudos (denoted by :),
+ // then anything else
+ // These preferences are here to reduce the number of selectors
+ // needing tokenize in the PSEUDO preFilter
+ pseudos = ":(" + characterEncoding + ")(?:\\((?:(['\"])((?:\\\\.|[^\\\\])*?)\\2|([^()[\\]]*|(?:(?:" + attributes + ")|[^:]|\\\\.)*|.*))\\)|)",
+
+ // For matchExpr.POS and matchExpr.needsContext
+ pos = ":(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace +
+ "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)",
+
+ // 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 ),
+
+ // Easily-parseable/retrievable ID or TAG or CLASS selectors
+ rquickExpr = /^(?:#([\w\-]+)|(\w+)|\.([\w\-]+))$/,
+
+ rnot = /^:not/,
+ rsibling = /[\x20\t\r\n\f]*[+~]/,
+ rendsWithNot = /:not\($/,
+
+ rheader = /h\d/i,
+ rinputs = /input|select|textarea|button/i,
+
+ rbackslash = /\\(?!\\)/g,
+
+ 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 ),
+ "POS": new RegExp( pos, "i" ),
+ "CHILD": new RegExp( "^:(only|nth|first|last)-child(?:\\(" + whitespace +
+ "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace +
+ "*(\\d+)|))" + whitespace + "*\\)|)", "i" ),
+ // For use in libraries implementing .is()
+ "needsContext": new RegExp( "^" + whitespace + "*[>+~]|" + pos, "i" )
+ },
+
+ // Support
+
+ // Used for testing something on an element
+ assert = function( fn ) {
+ var div = document.createElement("div");
+
+ try {
+ return fn( div );
+ } catch (e) {
+ return false;
+ } finally {
+ // release memory in IE
+ div = null;
+ }
+ },
+
+ // Check if getElementsByTagName("*") returns only elements
+ assertTagNameNoComments = assert(function( div ) {
+ div.appendChild( document.createComment("") );
+ return !div.getElementsByTagName("*").length;
+ }),
+
+ // Check if getAttribute returns normalized href attributes
+ assertHrefNotNormalized = assert(function( div ) {
+ div.innerHTML = " ";
+ return div.firstChild && typeof div.firstChild.getAttribute !== strundefined &&
+ div.firstChild.getAttribute("href") === "#";
+ }),
+
+ // Check if attributes should be retrieved by attribute nodes
+ assertAttributes = assert(function( div ) {
+ div.innerHTML = " ";
+ 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
+ assertUsableClassName = assert(function( div ) {
+ // Opera can't find a second classname (in 9.6)
+ div.innerHTML = "
";
+ 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
+ assertUsableName = assert(function( div ) {
+ // Inject content
+ div.id = expando + 0;
+ div.innerHTML = "
";
+ docElem.insertBefore( div, docElem.firstChild );
+
+ // Test
+ var pass = document.getElementsByName &&
+ // buggy browsers will return fewer than the correct 2
+ document.getElementsByName( expando ).length === 2 +
+ // buggy browsers will return more than the correct 0
+ document.getElementsByName( expando + 0 ).length;
+ assertGetIdNotName = !document.getElementById( expando );
+
+ // Cleanup
+ docElem.removeChild( div );
+
+ return pass;
+ });
+
+// If slice is not available, provide a backup
+try {
+ slice.call( docElem.childNodes, 0 )[0].nodeType;
+} catch ( e ) {
+ slice = function( i ) {
+ var elem,
+ results = [];
+ for ( ; (elem = this[i]); i++ ) {
+ results.push( elem );
+ }
+ return results;
+ };
+}
+
+function Sizzle( selector, context, results, seed ) {
+ results = results || [];
+ context = context || document;
+ var match, elem, xml, m,
+ nodeType = context.nodeType;
+
+ if ( !selector || typeof selector !== "string" ) {
+ return results;
+ }
+
+ if ( nodeType !== 1 && nodeType !== 9 ) {
+ return [];
+ }
+
+ xml = isXML( context );
+
+ if ( !xml && !seed ) {
+ 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]) && assertUsableClassName && context.getElementsByClassName ) {
+ push.apply( results, slice.call(context.getElementsByClassName( m ), 0) );
+ return results;
+ }
+ }
+ }
+
+ // All others
+ return select( selector.replace( rtrim, "$1" ), context, results, seed, xml );
+}
+
+Sizzle.matches = function( expr, elements ) {
+ return Sizzle( expr, null, null, elements );
+};
+
+Sizzle.matchesSelector = function( elem, expr ) {
+ return Sizzle( expr, null, null, [ elem ] ).length > 0;
+};
+
+// 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 ( 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
+ } else {
+
+ // If no nodeType, this is expected to be an array
+ for ( ; (node = elem[i]); i++ ) {
+ // Do not traverse comment nodes
+ ret += getText( node );
+ }
+ }
+ return ret;
+};
+
+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;
+};
+
+// Element contains another
+contains = Sizzle.contains = docElem.contains ?
+ 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) );
+ } :
+ docElem.compareDocumentPosition ?
+ function( a, b ) {
+ return b && !!( a.compareDocumentPosition( b ) & 16 );
+ } :
+ function( a, b ) {
+ while ( (b = b.parentNode) ) {
+ if ( b === a ) {
+ return true;
+ }
+ }
+ return false;
+ };
+
+Sizzle.attr = function( elem, name ) {
+ var val,
+ xml = isXML( elem );
+
+ if ( !xml ) {
+ name = name.toLowerCase();
+ }
+ if ( (val = Expr.attrHandle[ name ]) ) {
+ return val( elem );
+ }
+ if ( xml || assertAttributes ) {
+ return elem.getAttribute( name );
+ }
+ val = elem.getAttributeNode( name );
+ return val ?
+ typeof elem[ name ] === "boolean" ?
+ elem[ name ] ? name : null :
+ val.specified ? val.value : null :
+ null;
+};
+
+Expr = Sizzle.selectors = {
+
+ // Can be adjusted by the user
+ cacheLength: 50,
+
+ createPseudo: markFunction,
+
+ match: matchExpr,
+
+ // IE6/7 return a modified href
+ attrHandle: assertHrefNotNormalized ?
+ {} :
+ {
+ "href": function( elem ) {
+ return elem.getAttribute( "href", 2 );
+ },
+ "type": function( elem ) {
+ return elem.getAttribute("type");
+ }
+ },
+
+ find: {
+ "ID": assertGetIdNotName ?
+ function( id, context, xml ) {
+ if ( typeof context.getElementById !== strundefined && !xml ) {
+ 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] : [];
+ }
+ } :
+ function( id, context, xml ) {
+ if ( typeof context.getElementById !== strundefined && !xml ) {
+ var m = context.getElementById( id );
+
+ return m ?
+ m.id === id || typeof m.getAttributeNode !== strundefined && m.getAttributeNode("id").value === id ?
+ [m] :
+ undefined :
+ [];
+ }
+ },
+
+ "TAG": assertTagNameNoComments ?
+ function( tag, context ) {
+ if ( typeof context.getElementsByTagName !== strundefined ) {
+ return context.getElementsByTagName( tag );
+ }
+ } :
+ function( tag, context ) {
+ var results = context.getElementsByTagName( tag );
+
+ // Filter out possible comments
+ if ( tag === "*" ) {
+ var elem,
+ tmp = [],
+ i = 0;
+
+ for ( ; (elem = results[i]); i++ ) {
+ if ( elem.nodeType === 1 ) {
+ tmp.push( elem );
+ }
+ }
+
+ return tmp;
+ }
+ return results;
+ },
+
+ "NAME": assertUsableName && function( tag, context ) {
+ if ( typeof context.getElementsByName !== strundefined ) {
+ return context.getElementsByName( name );
+ }
+ },
+
+ "CLASS": assertUsableClassName && function( className, context, xml ) {
+ if ( typeof context.getElementsByClassName !== strundefined && !xml ) {
+ return context.getElementsByClassName( className );
+ }
+ }
+ },
+
+ relative: {
+ ">": { dir: "parentNode", first: true },
+ " ": { dir: "parentNode" },
+ "+": { dir: "previousSibling", first: true },
+ "~": { dir: "previousSibling" }
+ },
+
+ preFilter: {
+ "ATTR": function( match ) {
+ match[1] = match[1].replace( rbackslash, "" );
+
+ // Move the given value to match[3] whether quoted or unquoted
+ match[3] = ( match[4] || match[5] || "" ).replace( rbackslash, "" );
+
+ if ( match[2] === "~=" ) {
+ match[3] = " " + match[3] + " ";
+ }
+
+ return match.slice( 0, 4 );
+ },
+
+ "CHILD": function( match ) {
+ /* matches from matchExpr["CHILD"]
+ 1 type (only|nth|...)
+ 2 argument (even|odd|\d*|\d*n([+-]\d+)?|...)
+ 3 xn-component of xn+y argument ([+-]?\d*n|)
+ 4 sign of xn-component
+ 5 x of xn-component
+ 6 sign of y-component
+ 7 y of y-component
+ */
+ match[1] = match[1].toLowerCase();
+
+ if ( match[1] === "nth" ) {
+ // nth-child requires argument
+ if ( !match[2] ) {
+ Sizzle.error( match[0] );
+ }
+
+ // numeric x and y parameters for Expr.filter.CHILD
+ // remember that false/true cast respectively to 0/1
+ match[3] = +( match[3] ? match[4] + (match[5] || 1) : 2 * ( match[2] === "even" || match[2] === "odd" ) );
+ match[4] = +( ( match[6] + match[7] ) || match[2] === "odd" );
+
+ // other types prohibit arguments
+ } else if ( match[2] ) {
+ Sizzle.error( match[0] );
+ }
+
+ return match;
+ },
+
+ "PSEUDO": function( match ) {
+ var unquoted, excess;
+ if ( matchExpr["CHILD"].test( match[0] ) ) {
+ return null;
+ }
+
+ if ( match[3] ) {
+ match[2] = match[3];
+ } else if ( (unquoted = match[4]) ) {
+ // Only check arguments that contain a pseudo
+ if ( 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
+ unquoted = unquoted.slice( 0, excess );
+ match[0] = match[0].slice( 0, excess );
+ }
+ match[2] = unquoted;
+ }
+
+ // Return only captures needed by the pseudo filter method (type and argument)
+ return match.slice( 0, 3 );
+ }
+ },
+
+ filter: {
+ "ID": assertGetIdNotName ?
+ function( id ) {
+ id = id.replace( rbackslash, "" );
+ return function( elem ) {
+ return elem.getAttribute("id") === id;
+ };
+ } :
+ function( id ) {
+ id = id.replace( rbackslash, "" );
+ return function( elem ) {
+ var node = typeof elem.getAttributeNode !== strundefined && elem.getAttributeNode("id");
+ return node && node.value === id;
+ };
+ },
+
+ "TAG": function( nodeName ) {
+ if ( nodeName === "*" ) {
+ return function() { return true; };
+ }
+ nodeName = nodeName.replace( rbackslash, "" ).toLowerCase();
+
+ return function( elem ) {
+ return elem.nodeName && elem.nodeName.toLowerCase() === nodeName;
+ };
+ },
+
+ "CLASS": function( className ) {
+ var pattern = classCache[ expando ][ 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, context ) {
+ 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.substr( result.length - check.length ) === check :
+ operator === "~=" ? ( " " + result + " " ).indexOf( check ) > -1 :
+ operator === "|=" ? result === check || result.substr( 0, check.length + 1 ) === check + "-" :
+ false;
+ };
+ },
+
+ "CHILD": function( type, argument, first, last ) {
+
+ if ( type === "nth" ) {
+ return function( elem ) {
+ var node, diff,
+ parent = elem.parentNode;
+
+ if ( first === 1 && last === 0 ) {
+ return true;
+ }
+
+ if ( parent ) {
+ diff = 0;
+ for ( node = parent.firstChild; node; node = node.nextSibling ) {
+ if ( node.nodeType === 1 ) {
+ diff++;
+ if ( elem === node ) {
+ break;
+ }
+ }
+ }
+ }
+
+ // Incorporate the offset (or cast to NaN), then check against cycle size
+ diff -= last;
+ return diff === first || ( diff % first === 0 && diff / first >= 0 );
+ };
+ }
+
+ return function( elem ) {
+ var node = elem;
+
+ switch ( type ) {
+ case "only":
+ case "first":
+ while ( (node = node.previousSibling) ) {
+ if ( node.nodeType === 1 ) {
+ return false;
+ }
+ }
+
+ if ( type === "first" ) {
+ return true;
+ }
+
+ node = elem;
+
+ /* falls through */
+ case "last":
+ while ( (node = node.nextSibling) ) {
+ if ( node.nodeType === 1 ) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+ };
+ },
+
+ "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: {
+ "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;
+ };
+ }),
+
+ "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;
+ },
+
+ "parent": function( elem ) {
+ return !Expr.pseudos["empty"]( elem );
+ },
+
+ "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 "?")
+ var nodeType;
+ elem = elem.firstChild;
+ while ( elem ) {
+ if ( elem.nodeName > "@" || (nodeType = elem.nodeType) === 3 || nodeType === 4 ) {
+ return false;
+ }
+ elem = elem.nextSibling;
+ }
+ return true;
+ },
+
+ "header": function( elem ) {
+ return rheader.test( elem.nodeName );
+ },
+
+ "text": function( elem ) {
+ var type, 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" &&
+ (type = elem.type) === "text" &&
+ ( (attr = elem.getAttribute("type")) == null || attr.toLowerCase() === type );
+ },
+
+ // Input types
+ "radio": createInputPseudo("radio"),
+ "checkbox": createInputPseudo("checkbox"),
+ "file": createInputPseudo("file"),
+ "password": createInputPseudo("password"),
+ "image": createInputPseudo("image"),
+
+ "submit": createButtonPseudo("submit"),
+ "reset": createButtonPseudo("reset"),
+
+ "button": function( elem ) {
+ var name = elem.nodeName.toLowerCase();
+ return name === "input" && elem.type === "button" || name === "button";
+ },
+
+ "input": function( elem ) {
+ return rinputs.test( elem.nodeName );
+ },
+
+ "focus": function( elem ) {
+ var doc = elem.ownerDocument;
+ return elem === doc.activeElement && (!doc.hasFocus || doc.hasFocus()) && !!(elem.type || elem.href || ~elem.tabIndex);
+ },
+
+ "active": function( elem ) {
+ return elem === elem.ownerDocument.activeElement;
+ },
+
+ // Positional types
+ "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 ) {
+ for ( var i = 0; i < length; i += 2 ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ }),
+
+ "odd": createPositionalPseudo(function( matchIndexes, length ) {
+ for ( var i = 1; i < length; i += 2 ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ }),
+
+ "lt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+ for ( var i = argument < 0 ? argument + length : argument; --i >= 0; ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ }),
+
+ "gt": createPositionalPseudo(function( matchIndexes, length, argument ) {
+ for ( var i = argument < 0 ? argument + length : argument; ++i < length; ) {
+ matchIndexes.push( i );
+ }
+ return matchIndexes;
+ })
+ }
+};
+
+function siblingCheck( a, b, ret ) {
+ if ( a === b ) {
+ return ret;
+ }
+
+ var cur = a.nextSibling;
+
+ while ( cur ) {
+ if ( cur === b ) {
+ return -1;
+ }
+
+ cur = cur.nextSibling;
+ }
+
+ return 1;
+}
+
+sortOrder = docElem.compareDocumentPosition ?
+ function( a, b ) {
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+ }
+
+ return ( !a.compareDocumentPosition || !b.compareDocumentPosition ?
+ a.compareDocumentPosition :
+ a.compareDocumentPosition(b) & 4
+ ) ? -1 : 1;
+ } :
+ function( a, b ) {
+ // The nodes are identical, we can exit early
+ if ( a === b ) {
+ hasDuplicate = true;
+ return 0;
+
+ // Fallback to using sourceIndex (in IE) if it's available on both nodes
+ } else if ( a.sourceIndex && b.sourceIndex ) {
+ return a.sourceIndex - b.sourceIndex;
+ }
+
+ var al, bl,
+ ap = [],
+ bp = [],
+ aup = a.parentNode,
+ bup = b.parentNode,
+ cur = aup;
+
+ // If the nodes are siblings (or identical) we can do a quick check
+ if ( aup === bup ) {
+ return siblingCheck( a, b );
+
+ // If no parents were found then the nodes are disconnected
+ } else if ( !aup ) {
+ return -1;
+
+ } else if ( !bup ) {
+ return 1;
+ }
+
+ // Otherwise they're somewhere else in the tree so we need
+ // to build up a full list of the parentNodes for comparison
+ while ( cur ) {
+ ap.unshift( cur );
+ cur = cur.parentNode;
+ }
+
+ cur = bup;
+
+ while ( cur ) {
+ bp.unshift( cur );
+ cur = cur.parentNode;
+ }
+
+ al = ap.length;
+ bl = bp.length;
+
+ // Start walking down the tree looking for a discrepancy
+ for ( var i = 0; i < al && i < bl; i++ ) {
+ if ( ap[i] !== bp[i] ) {
+ return siblingCheck( ap[i], bp[i] );
+ }
+ }
+
+ // We ended someplace up the tree so do a sibling check
+ return i === al ?
+ siblingCheck( a, bp[i], -1 ) :
+ siblingCheck( ap[i], b, 1 );
+ };
+
+// Always assume the presence of duplicates if sort doesn't
+// pass them to our comparison function (as in Google Chrome).
+[0, 0].sort( sortOrder );
+baseHasDuplicate = !hasDuplicate;
+
+// Document sorting and removing duplicates
+Sizzle.uniqueSort = function( results ) {
+ var elem,
+ duplicates = [],
+ i = 1,
+ j = 0;
+
+ hasDuplicate = baseHasDuplicate;
+ 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;
+};
+
+Sizzle.error = function( msg ) {
+ throw new Error( "Syntax error, unrecognized expression: " + msg );
+};
+
+function tokenize( selector, parseOnly ) {
+ var matched, match, tokens, type,
+ soFar, groups, preFilters,
+ cached = tokenCache[ expando ][ 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 )) ) {
+ tokens.push( matched = new Token( match.shift() ) );
+ soFar = soFar.slice( matched.length );
+
+ // Cast descendant combinators to space
+ matched.type = match[0].replace( rtrim, " " );
+ }
+
+ // Filters
+ for ( type in Expr.filter ) {
+ if ( (match = matchExpr[ type ].exec( soFar )) && (!preFilters[ type ] ||
+ (match = preFilters[ type ]( match ))) ) {
+
+ tokens.push( matched = new Token( match.shift() ) );
+ soFar = soFar.slice( matched.length );
+ matched.type = type;
+ matched.matches = match;
+ }
+ }
+
+ 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 addCombinator( matcher, combinator, base ) {
+ var dir = combinator.dir,
+ checkNonElements = base && combinator.dir === "parentNode",
+ doneName = done++;
+
+ return combinator.first ?
+ // Check against closest ancestor/preceding element
+ function( elem, context, xml ) {
+ while ( (elem = elem[ dir ]) ) {
+ if ( checkNonElements || elem.nodeType === 1 ) {
+ return matcher( elem, context, xml );
+ }
+ }
+ } :
+
+ // Check against all ancestor/preceding elements
+ function( elem, context, xml ) {
+ // We can't set arbitrary data on XML nodes, so they don't benefit from dir caching
+ if ( !xml ) {
+ var cache,
+ dirkey = dirruns + " " + doneName + " ",
+ cachedkey = dirkey + cachedruns;
+ while ( (elem = elem[ dir ]) ) {
+ if ( checkNonElements || elem.nodeType === 1 ) {
+ if ( (cache = elem[ expando ]) === cachedkey ) {
+ return elem.sizset;
+ } else if ( typeof cache === "string" && cache.indexOf(dirkey) === 0 ) {
+ if ( elem.sizset ) {
+ return elem;
+ }
+ } else {
+ elem[ expando ] = cachedkey;
+ if ( matcher( elem, context, xml ) ) {
+ elem.sizset = true;
+ return elem;
+ }
+ elem.sizset = false;
+ }
+ }
+ }
+ } else {
+ while ( (elem = elem[ dir ]) ) {
+ if ( checkNonElements || elem.nodeType === 1 ) {
+ if ( matcher( elem, context, xml ) ) {
+ return elem;
+ }
+ }
+ }
+ }
+ };
+}
+
+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 && tokens.slice( 0, i - 1 ).join("").replace( rtrim, "$1" ),
+ matcher,
+ i < j && matcherFromTokens( tokens.slice( i, j ) ),
+ j < len && matcherFromTokens( (tokens = tokens.slice( j )) ),
+ j < len && tokens.join("")
+ );
+ }
+ matchers.push( matcher );
+ }
+ }
+
+ return elementMatcher( matchers );
+}
+
+function matcherFromGroupMatchers( elementMatchers, setMatchers ) {
+ var 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 ),
+ // Nested matchers should use non-integer dirruns
+ dirrunsUnique = (dirruns += contextBackup == null ? 1 : Math.E);
+
+ if ( outermost ) {
+ outermostContext = context !== document && context;
+ cachedruns = superMatcher.el;
+ }
+
+ // Add elements passing elementMatchers directly to results
+ for ( ; (elem = elems[i]) != null; i++ ) {
+ if ( byElement && elem ) {
+ for ( j = 0; (matcher = elementMatchers[j]); j++ ) {
+ if ( matcher( elem, context, xml ) ) {
+ results.push( elem );
+ break;
+ }
+ }
+ if ( outermost ) {
+ dirruns = dirrunsUnique;
+ cachedruns = ++superMatcher.el;
+ }
+ }
+
+ // 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 ) {
+ for ( j = 0; (matcher = setMatchers[j]); 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;
+ };
+
+ superMatcher.el = 0;
+ return bySet ?
+ markFunction( superMatcher ) :
+ superMatcher;
+}
+
+compile = Sizzle.compile = function( selector, group /* Internal Use Only */ ) {
+ var i,
+ setMatchers = [],
+ elementMatchers = [],
+ cached = compilerCache[ expando ][ 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, xml ) {
+ var i, tokens, token, type, find,
+ match = tokenize( selector ),
+ j = match.length;
+
+ 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 && !xml &&
+ Expr.relative[ tokens[1].type ] ) {
+
+ context = Expr.find["ID"]( token.matches[0].replace( rbackslash, "" ), context, xml )[0];
+ if ( !context ) {
+ return results;
+ }
+
+ selector = selector.slice( tokens.shift().length );
+ }
+
+ // Fetch a seed set for right-to-left matching
+ for ( i = matchExpr["POS"].test( selector ) ? -1 : tokens.length - 1; i >= 0; 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( rbackslash, "" ),
+ rsibling.test( tokens[0].type ) && context.parentNode || context,
+ xml
+ )) ) {
+
+ // If seed is empty or no tokens remain, we can return early
+ tokens.splice( i, 1 );
+ selector = seed.length && tokens.join("");
+ 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,
+ xml,
+ results,
+ rsibling.test( selector )
+ );
+ return results;
+}
+
+if ( document.querySelectorAll ) {
+ (function() {
+ var disconnectedMatch,
+ oldSelect = select,
+ rescape = /'|\\/g,
+ rattributeQuotes = /\=[\x20\t\r\n\f]*([^'"\]]*)[\x20\t\r\n\f]*\]/g,
+
+ // 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" ],
+
+ // matchesSelector(:active) reports false when true (IE9/Opera 11.5)
+ // A support test would require too much code (would include document ready)
+ // just skip matchesSelector for :active
+ rbuggyMatches = [ ":active" ],
+ matches = docElem.matchesSelector ||
+ docElem.mozMatchesSelector ||
+ docElem.webkitMatchesSelector ||
+ docElem.oMatchesSelector ||
+ docElem.msMatchesSelector;
+
+ // 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 = " ";
+
+ // 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 (do not put tests after this one)
+ if ( !div.querySelectorAll(":checked").length ) {
+ rbuggyQSA.push(":checked");
+ }
+ });
+
+ assert(function( div ) {
+
+ // Opera 10-12/IE9 - ^= $= *= and empty values
+ // Should not select anything
+ div.innerHTML = "
";
+ if ( div.querySelectorAll("[test^='']").length ) {
+ rbuggyQSA.push( "[*^$]=" + whitespace + "*(?:\"\"|'')" );
+ }
+
+ // FF 3.5 - :enabled/:disabled and hidden elements (hidden elements are still enabled)
+ // IE8 throws error here (do not put tests after this one)
+ div.innerHTML = " ";
+ if ( !div.querySelectorAll(":enabled").length ) {
+ rbuggyQSA.push(":enabled", ":disabled");
+ }
+ });
+
+ // rbuggyQSA always contains :focus, so no need for a length check
+ rbuggyQSA = /* rbuggyQSA.length && */ new RegExp( rbuggyQSA.join("|") );
+
+ select = function( selector, context, results, seed, xml ) {
+ // Only use querySelectorAll when not filtering,
+ // when this is not xml,
+ // and when no QSA bugs apply
+ if ( !seed && !xml && !rbuggyQSA.test( selector ) ) {
+ var groups, i,
+ old = true,
+ nid = expando,
+ newContext = context,
+ newSelector = context.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 ( context.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 + groups[i].join("");
+ }
+ 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");
+ }
+ }
+ }
+ }
+
+ return oldSelect( selector, context, results, seed, xml );
+ };
+
+ if ( matches ) {
+ assert(function( div ) {
+ // Check to see if it's possible to do matchesSelector
+ // on a disconnected node (IE 9)
+ disconnectedMatch = matches.call( div, "div" );
+
+ // This should fail with an exception
+ // Gecko does not error, returns false instead
+ try {
+ matches.call( div, "[test!='']:sizzle" );
+ rbuggyMatches.push( "!=", pseudos );
+ } catch ( e ) {}
+ });
+
+ // rbuggyMatches always contains :active and :focus, so no need for a length check
+ rbuggyMatches = /* rbuggyMatches.length && */ new RegExp( rbuggyMatches.join("|") );
+
+ Sizzle.matchesSelector = function( elem, expr ) {
+ // Make sure that attribute selectors are quoted
+ expr = expr.replace( rattributeQuotes, "='$1']" );
+
+ // rbuggyMatches always contains :active, so no need for an existence check
+ if ( !isXML( elem ) && !rbuggyMatches.test( expr ) && !rbuggyQSA.test( expr ) ) {
+ try {
+ var ret = matches.call( elem, expr );
+
+ // IE 9's matchesSelector returns false on disconnected nodes
+ if ( ret || 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, null, null, [ elem ] ).length > 0;
+ };
+ }
+ })();
+}
+
+// Deprecated
+Expr.pseudos["nth"] = Expr.pseudos["eq"];
+
+// Back-compat
+function setFilters() {}
+Expr.filters = setFilters.prototype = Expr.pseudos;
+Expr.setFilters = new setFilters();
+
+// 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$/,
+ rparentsprev = /^(?:parents|prev(?:Until|All))/,
+ isSimple = /^.[^:#\[\.,]*$/,
+ rneedsContext = jQuery.expr.match.needsContext,
+ // methods guaranteed to produce a unique set when starting from a unique set
+ guaranteedUnique = {
+ children: true,
+ contents: true,
+ next: true,
+ prev: true
+ };
+
+jQuery.fn.extend({
+ find: function( selector ) {
+ var i, l, length, n, r, ret,
+ self = this;
+
+ if ( typeof selector !== "string" ) {
+ return jQuery( selector ).filter(function() {
+ for ( i = 0, l = self.length; i < l; i++ ) {
+ if ( jQuery.contains( self[ i ], this ) ) {
+ return true;
+ }
+ }
+ });
+ }
+
+ ret = this.pushStack( "", "find", selector );
+
+ for ( i = 0, l = this.length; i < l; i++ ) {
+ length = ret.length;
+ jQuery.find( selector, this[i], ret );
+
+ if ( i > 0 ) {
+ // Make sure that the results are unique
+ for ( n = length; n < ret.length; n++ ) {
+ for ( r = 0; r < length; r++ ) {
+ if ( ret[r] === ret[n] ) {
+ ret.splice(n--, 1);
+ break;
+ }
+ }
+ }
+ }
+ }
+
+ return ret;
+ },
+
+ has: function( target ) {
+ var i,
+ targets = jQuery( target, this ),
+ len = targets.length;
+
+ return this.filter(function() {
+ for ( i = 0; i < len; i++ ) {
+ if ( jQuery.contains( this, targets[i] ) ) {
+ return true;
+ }
+ }
+ });
+ },
+
+ not: function( selector ) {
+ return this.pushStack( winnow(this, selector, false), "not", selector);
+ },
+
+ filter: function( selector ) {
+ return this.pushStack( winnow(this, selector, true), "filter", selector );
+ },
+
+ is: function( selector ) {
+ 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 );
+ },
+
+ closest: function( selectors, context ) {
+ var cur,
+ i = 0,
+ l = this.length,
+ ret = [],
+ pos = rneedsContext.test( selectors ) || typeof selectors !== "string" ?
+ jQuery( selectors, context || this.context ) :
+ 0;
+
+ for ( ; i < l; i++ ) {
+ cur = this[i];
+
+ while ( cur && cur.ownerDocument && cur !== context && cur.nodeType !== 11 ) {
+ if ( pos ? pos.index(cur) > -1 : jQuery.find.matchesSelector(cur, selectors) ) {
+ ret.push( cur );
+ break;
+ }
+ cur = cur.parentNode;
+ }
+ }
+
+ ret = ret.length > 1 ? jQuery.unique( ret ) : ret;
+
+ return this.pushStack( ret, "closest", selectors );
+ },
+
+ // Determine the position of an element within
+ // the matched set of elements
+ index: function( elem ) {
+
+ // No argument, return index in parent
+ if ( !elem ) {
+ return ( this[0] && this[0].parentNode ) ? this.prevAll().length : -1;
+ }
+
+ // index in selector
+ if ( typeof elem === "string" ) {
+ return jQuery.inArray( this[0], jQuery( elem ) );
+ }
+
+ // Locate the position of the desired element
+ return jQuery.inArray(
+ // If it receives a jQuery object, the first element is used
+ elem.jquery ? elem[0] : elem, this );
+ },
+
+ add: function( selector, context ) {
+ var set = typeof selector === "string" ?
+ jQuery( selector, context ) :
+ jQuery.makeArray( selector && selector.nodeType ? [ selector ] : selector ),
+ all = jQuery.merge( this.get(), set );
+
+ return this.pushStack( isDisconnected( set[0] ) || isDisconnected( all[0] ) ?
+ all :
+ jQuery.unique( all ) );
+ },
+
+ addBack: function( selector ) {
+ return this.add( selector == null ?
+ this.prevObject : this.prevObject.filter(selector)
+ );
+ }
+});
+
+jQuery.fn.andSelf = jQuery.fn.addBack;
+
+// A painfully simple check to see if an element is disconnected
+// from a document (should be improved, where feasible).
+function isDisconnected( node ) {
+ return !node || !node.parentNode || node.parentNode.nodeType === 11;
+}
+
+function sibling( cur, dir ) {
+ do {
+ cur = cur[ dir ];
+ } while ( cur && cur.nodeType !== 1 );
+
+ return cur;
+}
+
+jQuery.each({
+ parent: function( elem ) {
+ var parent = elem.parentNode;
+ return parent && parent.nodeType !== 11 ? parent : null;
+ },
+ parents: function( elem ) {
+ return jQuery.dir( elem, "parentNode" );
+ },
+ parentsUntil: function( elem, i, until ) {
+ return jQuery.dir( elem, "parentNode", until );
+ },
+ next: function( elem ) {
+ return sibling( elem, "nextSibling" );
+ },
+ prev: function( elem ) {
+ return sibling( elem, "previousSibling" );
+ },
+ nextAll: function( elem ) {
+ return jQuery.dir( elem, "nextSibling" );
+ },
+ prevAll: function( elem ) {
+ return jQuery.dir( elem, "previousSibling" );
+ },
+ nextUntil: function( elem, i, until ) {
+ return jQuery.dir( elem, "nextSibling", until );
+ },
+ prevUntil: function( elem, i, until ) {
+ return jQuery.dir( elem, "previousSibling", until );
+ },
+ siblings: function( elem ) {
+ return jQuery.sibling( ( elem.parentNode || {} ).firstChild, elem );
+ },
+ children: function( elem ) {
+ return jQuery.sibling( elem.firstChild );
+ },
+ contents: function( elem ) {
+ return jQuery.nodeName( elem, "iframe" ) ?
+ elem.contentDocument || elem.contentWindow.document :
+ jQuery.merge( [], elem.childNodes );
+ }
+}, function( name, fn ) {
+ jQuery.fn[ name ] = function( until, selector ) {
+ var ret = jQuery.map( this, fn, until );
+
+ if ( !runtil.test( name ) ) {
+ selector = until;
+ }
+
+ if ( selector && typeof selector === "string" ) {
+ ret = jQuery.filter( selector, ret );
+ }
+
+ ret = this.length > 1 && !guaranteedUnique[ name ] ? jQuery.unique( ret ) : ret;
+
+ if ( this.length > 1 && rparentsprev.test( name ) ) {
+ ret = ret.reverse();
+ }
+
+ return this.pushStack( ret, name, core_slice.call( arguments ).join(",") );
+ };
+});
+
+jQuery.extend({
+ filter: function( expr, elems, not ) {
+ if ( not ) {
+ expr = ":not(" + expr + ")";
+ }
+
+ return elems.length === 1 ?
+ jQuery.find.matchesSelector(elems[0], expr) ? [ elems[0] ] : [] :
+ jQuery.find.matches(expr, elems);
+ },
+
+ dir: function( elem, dir, until ) {
+ var matched = [],
+ cur = elem[ dir ];
+
+ while ( cur && cur.nodeType !== 9 && (until === undefined || cur.nodeType !== 1 || !jQuery( cur ).is( until )) ) {
+ if ( cur.nodeType === 1 ) {
+ matched.push( cur );
+ }
+ cur = cur[dir];
+ }
+ return matched;
+ },
+
+ sibling: function( n, elem ) {
+ var r = [];
+
+ for ( ; n; n = n.nextSibling ) {
+ if ( n.nodeType === 1 && n !== elem ) {
+ r.push( n );
+ }
+ }
+
+ return r;
+ }
+});
+
+// Implement the identical functionality for filter and not
+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;
+
+ if ( jQuery.isFunction( qualifier ) ) {
+ return jQuery.grep(elements, function( elem, i ) {
+ var retVal = !!qualifier.call( elem, i, elem );
+ return retVal === keep;
+ });
+
+ } else if ( qualifier.nodeType ) {
+ return jQuery.grep(elements, function( elem, i ) {
+ return ( elem === qualifier ) === keep;
+ });
+
+ } else if ( typeof qualifier === "string" ) {
+ var filtered = jQuery.grep(elements, function( elem ) {
+ return elem.nodeType === 1;
+ });
+
+ if ( isSimple.test( qualifier ) ) {
+ return jQuery.filter(qualifier, filtered, !keep);
+ } else {
+ qualifier = jQuery.filter( qualifier, filtered );
+ }
+ }
+
+ return jQuery.grep(elements, function( elem, i ) {
+ return ( jQuery.inArray( elem, qualifier ) >= 0 ) === keep;
+ });
+}
+function createSafeFragment( document ) {
+ var list = nodeNames.split( "|" ),
+ safeFrag = document.createDocumentFragment();
+
+ if ( safeFrag.createElement ) {
+ while ( list.length ) {
+ safeFrag.createElement(
+ list.pop()
+ );
+ }
+ }
+ return safeFrag;
+}
+
+var nodeNames = "abbr|article|aside|audio|bdi|canvas|data|datalist|details|figcaption|figure|footer|" +
+ "header|hgroup|mark|meter|nav|output|progress|section|summary|time|video",
+ rinlinejQuery = / jQuery\d+="(?:null|\d+)"/g,
+ rleadingWhitespace = /^\s+/,
+ rxhtmlTag = /<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,
+ rtagName = /<([\w:]+)/,
+ rtbody = / ]", "i"),
+ rcheckableType = /^(?:checkbox|radio)$/,
+ // checked="checked" or checked
+ rchecked = /checked\s*(?:[^=]|=\s*.checked.)/i,
+ rscriptType = /\/(java|ecma)script/i,
+ rcleanScript = /^\s*\s*$/g,
+ wrapMap = {
+ option: [ 1, "", " " ],
+ legend: [ 1, "", " " ],
+ thead: [ 1, "" ],
+ tr: [ 2, "" ],
+ td: [ 3, "" ],
+ col: [ 2, "" ],
+ area: [ 1, "", " " ],
+ _default: [ 0, "", "" ]
+ },
+ safeFragment = createSafeFragment( document ),
+ fragmentDiv = safeFragment.appendChild( document.createElement("div") );
+
+wrapMap.optgroup = wrapMap.option;
+wrapMap.tbody = wrapMap.tfoot = wrapMap.colgroup = wrapMap.caption = wrapMap.thead;
+wrapMap.th = wrapMap.td;
+
+// IE6-8 can't serialize link, script, style, or any html5 (NoScope) tags,
+// unless wrapped in a div with non-breaking characters in front of it.
+if ( !jQuery.support.htmlSerialize ) {
+ wrapMap._default = [ 1, "X", "
" ];
+}
+
+jQuery.fn.extend({
+ text: function( value ) {
+ return jQuery.access( this, function( value ) {
+ return value === undefined ?
+ jQuery.text( this ) :
+ this.empty().append( ( this[0] && this[0].ownerDocument || document ).createTextNode( value ) );
+ }, null, value, arguments.length );
+ },
+
+ 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();
+ },
+
+ append: function() {
+ return this.domManip(arguments, true, function( elem ) {
+ if ( this.nodeType === 1 || this.nodeType === 11 ) {
+ this.appendChild( elem );
+ }
+ });
+ },
+
+ prepend: function() {
+ return this.domManip(arguments, true, function( elem ) {
+ if ( this.nodeType === 1 || this.nodeType === 11 ) {
+ this.insertBefore( elem, this.firstChild );
+ }
+ });
+ },
+
+ before: function() {
+ if ( !isDisconnected( this[0] ) ) {
+ return this.domManip(arguments, false, function( elem ) {
+ this.parentNode.insertBefore( elem, this );
+ });
+ }
+
+ if ( arguments.length ) {
+ var set = jQuery.clean( arguments );
+ return this.pushStack( jQuery.merge( set, this ), "before", this.selector );
+ }
+ },
+
+ after: function() {
+ if ( !isDisconnected( this[0] ) ) {
+ return this.domManip(arguments, false, function( elem ) {
+ this.parentNode.insertBefore( elem, this.nextSibling );
+ });
+ }
+
+ if ( arguments.length ) {
+ var set = jQuery.clean( arguments );
+ return this.pushStack( jQuery.merge( this, set ), "after", this.selector );
+ }
+ },
+
+ // keepData is for internal use only--do not document
+ remove: function( selector, keepData ) {
+ var elem,
+ i = 0;
+
+ for ( ; (elem = this[i]) != null; i++ ) {
+ if ( !selector || jQuery.filter( selector, [ elem ] ).length ) {
+ if ( !keepData && elem.nodeType === 1 ) {
+ jQuery.cleanData( elem.getElementsByTagName("*") );
+ jQuery.cleanData( [ elem ] );
+ }
+
+ if ( elem.parentNode ) {
+ elem.parentNode.removeChild( elem );
+ }
+ }
+ }
+
+ return this;
+ },
+
+ empty: function() {
+ var elem,
+ i = 0;
+
+ for ( ; (elem = this[i]) != null; i++ ) {
+ // Remove element nodes and prevent memory leaks
+ if ( elem.nodeType === 1 ) {
+ jQuery.cleanData( elem.getElementsByTagName("*") );
+ }
+
+ // Remove any remaining nodes
+ while ( elem.firstChild ) {
+ elem.removeChild( elem.firstChild );
+ }
+ }
+
+ return this;
+ },
+
+ clone: function( dataAndEvents, deepDataAndEvents ) {
+ dataAndEvents = dataAndEvents == null ? false : dataAndEvents;
+ deepDataAndEvents = deepDataAndEvents == null ? dataAndEvents : deepDataAndEvents;
+
+ return this.map( function () {
+ return jQuery.clone( this, dataAndEvents, deepDataAndEvents );
+ });
+ },
+
+ html: function( value ) {
+ return jQuery.access( this, function( value ) {
+ var elem = this[0] || {},
+ i = 0,
+ l = this.length;
+
+ if ( value === undefined ) {
+ return elem.nodeType === 1 ?
+ elem.innerHTML.replace( rinlinejQuery, "" ) :
+ undefined;
+ }
+
+ // See if we can take a shortcut and just use innerHTML
+ if ( typeof value === "string" && !rnoInnerhtml.test( value ) &&
+ ( jQuery.support.htmlSerialize || !rnoshimcache.test( value ) ) &&
+ ( jQuery.support.leadingWhitespace || !rleadingWhitespace.test( value ) ) &&
+ !wrapMap[ ( rtagName.exec( value ) || ["", ""] )[1].toLowerCase() ] ) {
+
+ value = value.replace( rxhtmlTag, "<$1>$2>" );
+
+ try {
+ for (; i < l; i++ ) {
+ // Remove element nodes and prevent memory leaks
+ elem = this[i] || {};
+ if ( elem.nodeType === 1 ) {
+ jQuery.cleanData( elem.getElementsByTagName( "*" ) );
+ elem.innerHTML = value;
+ }
+ }
+
+ elem = 0;
+
+ // If using innerHTML throws an exception, use the fallback method
+ } catch(e) {}
+ }
+
+ if ( elem ) {
+ this.empty().append( value );
+ }
+ }, null, value, arguments.length );
+ },
+
+ replaceWith: function( value ) {
+ if ( !isDisconnected( this[0] ) ) {
+ // 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 ( jQuery.isFunction( value ) ) {
+ return this.each(function(i) {
+ var self = jQuery(this), old = self.html();
+ self.replaceWith( value.call( this, i, old ) );
+ });
+ }
+
+ if ( typeof value !== "string" ) {
+ value = jQuery( value ).detach();
+ }
+
+ return this.each(function() {
+ var next = this.nextSibling,
+ parent = this.parentNode;
+
+ jQuery( this ).remove();
+
+ if ( next ) {
+ jQuery(next).before( value );
+ } else {
+ jQuery(parent).append( value );
+ }
+ });
+ }
+
+ return this.length ?
+ this.pushStack( jQuery(jQuery.isFunction(value) ? value() : value), "replaceWith", value ) :
+ this;
+ },
+
+ detach: function( selector ) {
+ return this.remove( selector, true );
+ },
+
+ domManip: function( args, table, callback ) {
+
+ // Flatten any nested arrays
+ args = [].concat.apply( [], args );
+
+ var results, first, fragment, iNoClone,
+ i = 0,
+ value = args[0],
+ scripts = [],
+ l = this.length;
+
+ // We can't cloneNode fragments that contain checked, in WebKit
+ if ( !jQuery.support.checkClone && l > 1 && typeof value === "string" && rchecked.test( value ) ) {
+ return this.each(function() {
+ jQuery(this).domManip( args, table, callback );
+ });
+ }
+
+ if ( jQuery.isFunction(value) ) {
+ return this.each(function(i) {
+ var self = jQuery(this);
+ args[0] = value.call( this, i, table ? self.html() : undefined );
+ self.domManip( args, table, callback );
+ });
+ }
+
+ if ( this[0] ) {
+ results = jQuery.buildFragment( args, this, scripts );
+ fragment = results.fragment;
+ first = fragment.firstChild;
+
+ if ( fragment.childNodes.length === 1 ) {
+ fragment = first;
+ }
+
+ if ( first ) {
+ table = table && jQuery.nodeName( first, "tr" );
+
+ // Use the original fragment for the last item instead of the first because it can end up
+ // being emptied incorrectly in certain situations (#8070).
+ // Fragments from the fragment cache must always be cloned and never used in place.
+ for ( iNoClone = results.cacheable || l - 1; i < l; i++ ) {
+ callback.call(
+ table && jQuery.nodeName( this[i], "table" ) ?
+ findOrAppend( this[i], "tbody" ) :
+ this[i],
+ i === iNoClone ?
+ fragment :
+ jQuery.clone( fragment, true, true )
+ );
+ }
+ }
+
+ // Fix #11809: Avoid leaking memory
+ fragment = first = null;
+
+ if ( scripts.length ) {
+ jQuery.each( scripts, function( i, elem ) {
+ if ( elem.src ) {
+ if ( jQuery.ajax ) {
+ jQuery.ajax({
+ url: elem.src,
+ type: "GET",
+ dataType: "script",
+ async: false,
+ global: false,
+ "throws": true
+ });
+ } else {
+ jQuery.error("no ajax");
+ }
+ } else {
+ jQuery.globalEval( ( elem.text || elem.textContent || elem.innerHTML || "" ).replace( rcleanScript, "" ) );
+ }
+
+ if ( elem.parentNode ) {
+ elem.parentNode.removeChild( elem );
+ }
+ });
+ }
+ }
+
+ return this;
+ }
+});
+
+function findOrAppend( elem, tag ) {
+ return elem.getElementsByTagName( tag )[0] || elem.appendChild( elem.ownerDocument.createElement( tag ) );
+}
+
+function cloneCopyEvent( src, dest ) {
+
+ if ( dest.nodeType !== 1 || !jQuery.hasData( src ) ) {
+ return;
+ }
+
+ var type, i, l,
+ oldData = jQuery._data( src ),
+ curData = jQuery._data( dest, oldData ),
+ events = oldData.events;
+
+ if ( events ) {
+ delete curData.handle;
+ curData.events = {};
+
+ for ( type in events ) {
+ for ( i = 0, l = events[ type ].length; i < l; i++ ) {
+ jQuery.event.add( dest, type, events[ type ][ i ] );
+ }
+ }
+ }
+
+ // make the cloned public data object a copy from the original
+ if ( curData.data ) {
+ curData.data = jQuery.extend( {}, curData.data );
+ }
+}
+
+function cloneFixAttributes( src, dest ) {
+ var nodeName;
+
+ // We do not need to do anything for non-Elements
+ if ( dest.nodeType !== 1 ) {
+ return;
+ }
+
+ // clearAttributes removes the attributes, which we don't want,
+ // but also removes the attachEvent events, which we *do* want
+ if ( dest.clearAttributes ) {
+ dest.clearAttributes();
+ }
+
+ // mergeAttributes, in contrast, only merges back on the
+ // original attributes, not the events
+ if ( dest.mergeAttributes ) {
+ dest.mergeAttributes( src );
+ }
+
+ nodeName = dest.nodeName.toLowerCase();
+
+ if ( nodeName === "object" ) {
+ // IE6-10 improperly clones children of object elements using classid.
+ // IE10 throws NoModificationAllowedError if parent is null, #12132.
+ if ( dest.parentNode ) {
+ dest.outerHTML = src.outerHTML;
+ }
+
+ // This path appears unavoidable for IE9. When cloning an object
+ // element in IE9, the outerHTML strategy above is not sufficient.
+ // If the src has innerHTML and the destination does not,
+ // copy the src.innerHTML into the dest.innerHTML. #10324
+ if ( jQuery.support.html5Clone && (src.innerHTML && !jQuery.trim(dest.innerHTML)) ) {
+ dest.innerHTML = src.innerHTML;
+ }
+
+ } else if ( nodeName === "input" && rcheckableType.test( src.type ) ) {
+ // IE6-8 fails to persist the checked state of a cloned checkbox
+ // or radio button. Worse, IE6-7 fail to give the cloned element
+ // a checked appearance if the defaultChecked value isn't also set
+
+ dest.defaultChecked = dest.checked = src.checked;
+
+ // IE6-7 get confused and end up setting the value of a cloned
+ // checkbox/radio button to an empty string instead of "on"
+ if ( dest.value !== src.value ) {
+ dest.value = src.value;
+ }
+
+ // IE6-8 fails to return the selected option to the default selected
+ // state when cloning options
+ } else if ( nodeName === "option" ) {
+ dest.selected = src.defaultSelected;
+
+ // IE6-8 fails to set the defaultValue to the correct value when
+ // cloning other types of input fields
+ } else if ( nodeName === "input" || nodeName === "textarea" ) {
+ dest.defaultValue = src.defaultValue;
+
+ // IE blanks contents when cloning scripts
+ } else if ( nodeName === "script" && dest.text !== src.text ) {
+ dest.text = src.text;
+ }
+
+ // Event data gets referenced instead of copied if the expando
+ // gets copied too
+ dest.removeAttribute( jQuery.expando );
+}
+
+jQuery.buildFragment = function( args, context, scripts ) {
+ var fragment, cacheable, cachehit,
+ first = args[ 0 ];
+
+ // Set context from what may come in as undefined or a jQuery collection or a node
+ // Updated to fix #12266 where accessing context[0] could throw an exception in IE9/10 &
+ // also doubles as fix for #8950 where plain objects caused createDocumentFragment exception
+ context = context || document;
+ context = !context.nodeType && context[0] || context;
+ context = context.ownerDocument || context;
+
+ // Only cache "small" (1/2 KB) HTML strings that are associated with the main document
+ // Cloning options loses the selected state, so don't cache them
+ // IE 6 doesn't like it when you put or elements in a fragment
+ // Also, WebKit does not clone 'checked' attributes on cloneNode, so don't cache
+ // Lastly, IE6,7,8 will not correctly reuse cached fragments that were created from unknown elems #10501
+ if ( args.length === 1 && typeof first === "string" && first.length < 512 && context === document &&
+ first.charAt(0) === "<" && !rnocache.test( first ) &&
+ (jQuery.support.checkClone || !rchecked.test( first )) &&
+ (jQuery.support.html5Clone || !rnoshimcache.test( first )) ) {
+
+ // Mark cacheable and look for a hit
+ cacheable = true;
+ fragment = jQuery.fragments[ first ];
+ cachehit = fragment !== undefined;
+ }
+
+ if ( !fragment ) {
+ fragment = context.createDocumentFragment();
+ jQuery.clean( args, context, fragment, scripts );
+
+ // Update the cache, but only store false
+ // unless this is a second parsing of the same content
+ if ( cacheable ) {
+ jQuery.fragments[ first ] = cachehit && fragment;
+ }
+ }
+
+ return { fragment: fragment, cacheable: cacheable };
+};
+
+jQuery.fragments = {};
+
+jQuery.each({
+ appendTo: "append",
+ prependTo: "prepend",
+ insertBefore: "before",
+ insertAfter: "after",
+ replaceAll: "replaceWith"
+}, function( name, original ) {
+ jQuery.fn[ name ] = function( selector ) {
+ var elems,
+ i = 0,
+ ret = [],
+ insert = jQuery( selector ),
+ l = insert.length,
+ parent = this.length === 1 && this[0].parentNode;
+
+ if ( (parent == null || parent && parent.nodeType === 11 && parent.childNodes.length === 1) && l === 1 ) {
+ insert[ original ]( this[0] );
+ return this;
+ } else {
+ for ( ; i < l; i++ ) {
+ elems = ( i > 0 ? this.clone(true) : this ).get();
+ jQuery( insert[i] )[ original ]( elems );
+ ret = ret.concat( elems );
+ }
+
+ return this.pushStack( ret, name, insert.selector );
+ }
+ };
+});
+
+function getAll( elem ) {
+ if ( typeof elem.getElementsByTagName !== "undefined" ) {
+ return elem.getElementsByTagName( "*" );
+
+ } else if ( typeof elem.querySelectorAll !== "undefined" ) {
+ return elem.querySelectorAll( "*" );
+
+ } else {
+ return [];
+ }
+}
+
+// Used in clean, fixes the defaultChecked property
+function fixDefaultChecked( elem ) {
+ if ( rcheckableType.test( elem.type ) ) {
+ elem.defaultChecked = elem.checked;
+ }
+}
+
+jQuery.extend({
+ clone: function( elem, dataAndEvents, deepDataAndEvents ) {
+ var srcElements,
+ destElements,
+ i,
+ clone;
+
+ if ( jQuery.support.html5Clone || jQuery.isXMLDoc(elem) || !rnoshimcache.test( "<" + elem.nodeName + ">" ) ) {
+ clone = elem.cloneNode( true );
+
+ // IE<=8 does not properly clone detached, unknown element nodes
+ } else {
+ fragmentDiv.innerHTML = elem.outerHTML;
+ fragmentDiv.removeChild( clone = fragmentDiv.firstChild );
+ }
+
+ if ( (!jQuery.support.noCloneEvent || !jQuery.support.noCloneChecked) &&
+ (elem.nodeType === 1 || elem.nodeType === 11) && !jQuery.isXMLDoc(elem) ) {
+ // IE copies events bound via attachEvent when using cloneNode.
+ // Calling detachEvent on the clone will also remove the events
+ // from the original. In order to get around this, we use some
+ // proprietary methods to clear the events. Thanks to MooTools
+ // guys for this hotness.
+
+ cloneFixAttributes( elem, clone );
+
+ // Using Sizzle here is crazy slow, so we use getElementsByTagName instead
+ srcElements = getAll( elem );
+ destElements = getAll( clone );
+
+ // Weird iteration because IE will replace the length property
+ // with an element if you are cloning the body and one of the
+ // elements on the page has a name or id of "length"
+ for ( i = 0; srcElements[i]; ++i ) {
+ // Ensure that the destination node is not null; Fixes #9587
+ if ( destElements[i] ) {
+ cloneFixAttributes( srcElements[i], destElements[i] );
+ }
+ }
+ }
+
+ // Copy the events from the original to the clone
+ if ( dataAndEvents ) {
+ cloneCopyEvent( elem, clone );
+
+ if ( deepDataAndEvents ) {
+ srcElements = getAll( elem );
+ destElements = getAll( clone );
+
+ for ( i = 0; srcElements[i]; ++i ) {
+ cloneCopyEvent( srcElements[i], destElements[i] );
+ }
+ }
+ }
+
+ srcElements = destElements = null;
+
+ // Return the cloned set
+ return clone;
+ },
+
+ clean: function( elems, context, fragment, scripts ) {
+ var i, j, elem, tag, wrap, depth, div, hasBody, tbody, len, handleScript, jsTags,
+ safe = context === document && safeFragment,
+ ret = [];
+
+ // Ensure that context is a document
+ if ( !context || typeof context.createDocumentFragment === "undefined" ) {
+ context = document;
+ }
+
+ // Use the already-created safe fragment if context permits
+ for ( i = 0; (elem = elems[i]) != null; i++ ) {
+ if ( typeof elem === "number" ) {
+ elem += "";
+ }
+
+ if ( !elem ) {
+ continue;
+ }
+
+ // Convert html string into DOM nodes
+ if ( typeof elem === "string" ) {
+ if ( !rhtml.test( elem ) ) {
+ elem = context.createTextNode( elem );
+ } else {
+ // Ensure a safe container in which to render the html
+ safe = safe || createSafeFragment( context );
+ div = context.createElement("div");
+ safe.appendChild( div );
+
+ // Fix "XHTML"-style tags in all browsers
+ elem = elem.replace(rxhtmlTag, "<$1>$2>");
+
+ // Go to html and back, then peel off extra wrappers
+ tag = ( rtagName.exec( elem ) || ["", ""] )[1].toLowerCase();
+ wrap = wrapMap[ tag ] || wrapMap._default;
+ depth = wrap[0];
+ div.innerHTML = wrap[1] + elem + wrap[2];
+
+ // Move to the right depth
+ while ( depth-- ) {
+ div = div.lastChild;
+ }
+
+ // Remove IE's autoinserted from table fragments
+ if ( !jQuery.support.tbody ) {
+
+ // String was a , *may* have spurious
+ hasBody = rtbody.test(elem);
+ tbody = tag === "table" && !hasBody ?
+ div.firstChild && div.firstChild.childNodes :
+
+ // String was a bare or
+ wrap[1] === "" && !hasBody ?
+ div.childNodes :
+ [];
+
+ for ( j = tbody.length - 1; j >= 0 ; --j ) {
+ if ( jQuery.nodeName( tbody[ j ], "tbody" ) && !tbody[ j ].childNodes.length ) {
+ tbody[ j ].parentNode.removeChild( tbody[ j ] );
+ }
+ }
+ }
+
+ // IE completely kills leading whitespace when innerHTML is used
+ if ( !jQuery.support.leadingWhitespace && rleadingWhitespace.test( elem ) ) {
+ div.insertBefore( context.createTextNode( rleadingWhitespace.exec(elem)[0] ), div.firstChild );
+ }
+
+ elem = div.childNodes;
+
+ // Take out of fragment container (we need a fresh div each time)
+ div.parentNode.removeChild( div );
+ }
+ }
+
+ if ( elem.nodeType ) {
+ ret.push( elem );
+ } else {
+ jQuery.merge( ret, elem );
+ }
+ }
+
+ // Fix #11356: Clear elements from safeFragment
+ if ( div ) {
+ elem = div = safe = null;
+ }
+
+ // Reset defaultChecked for any radios and checkboxes
+ // about to be appended to the DOM in IE 6/7 (#8060)
+ if ( !jQuery.support.appendChecked ) {
+ for ( i = 0; (elem = ret[i]) != null; i++ ) {
+ if ( jQuery.nodeName( elem, "input" ) ) {
+ fixDefaultChecked( elem );
+ } else if ( typeof elem.getElementsByTagName !== "undefined" ) {
+ jQuery.grep( elem.getElementsByTagName("input"), fixDefaultChecked );
+ }
+ }
+ }
+
+ // Append elements to a provided document fragment
+ if ( fragment ) {
+ // Special handling of each script element
+ handleScript = function( elem ) {
+ // Check if we consider it executable
+ if ( !elem.type || rscriptType.test( elem.type ) ) {
+ // Detach the script and store it in the scripts array (if provided) or the fragment
+ // Return truthy to indicate that it has been handled
+ return scripts ?
+ scripts.push( elem.parentNode ? elem.parentNode.removeChild( elem ) : elem ) :
+ fragment.appendChild( elem );
+ }
+ };
+
+ for ( i = 0; (elem = ret[i]) != null; i++ ) {
+ // Check if we're done after handling an executable script
+ if ( !( jQuery.nodeName( elem, "script" ) && handleScript( elem ) ) ) {
+ // Append to fragment and handle embedded scripts
+ fragment.appendChild( elem );
+ if ( typeof elem.getElementsByTagName !== "undefined" ) {
+ // handleScript alters the DOM, so use jQuery.merge to ensure snapshot iteration
+ jsTags = jQuery.grep( jQuery.merge( [], elem.getElementsByTagName("script") ), handleScript );
+
+ // Splice the scripts into ret after their former ancestor and advance our index beyond them
+ ret.splice.apply( ret, [i + 1, 0].concat( jsTags ) );
+ i += jsTags.length;
+ }
+ }
+ }
+ }
+
+ return ret;
+ },
+
+ cleanData: function( elems, /* internal */ acceptData ) {
+ var data, id, elem, type,
+ i = 0,
+ internalKey = jQuery.expando,
+ cache = jQuery.cache,
+ deleteExpando = jQuery.support.deleteExpando,
+ special = jQuery.event.special;
+
+ for ( ; (elem = elems[i]) != null; i++ ) {
+
+ if ( acceptData || jQuery.acceptData( elem ) ) {
+
+ id = elem[ internalKey ];
+ data = id && cache[ id ];
+
+ if ( data ) {
+ if ( data.events ) {
+ for ( type in data.events ) {
+ if ( special[ type ] ) {
+ jQuery.event.remove( elem, type );
+
+ // This is a shortcut to avoid jQuery.event.remove's overhead
+ } else {
+ jQuery.removeEvent( elem, type, data.handle );
+ }
+ }
+ }
+
+ // Remove cache only if it was not already removed by jQuery.event.remove
+ if ( cache[ id ] ) {
+
+ delete cache[ id ];
+
+ // IE does not allow us to delete expando properties from nodes,
+ // nor does it have a removeAttribute function on Document nodes;
+ // we must handle all of these cases
+ if ( deleteExpando ) {
+ delete elem[ internalKey ];
+
+ } else if ( elem.removeAttribute ) {
+ elem.removeAttribute( internalKey );
+
+ } else {
+ elem[ internalKey ] = null;
+ }
+
+ jQuery.deletedIds.push( id );
+ }
+ }
+ }
+ }
+ }
+});
+// Limit scope pollution from any deprecated API
+(function() {
+
+var matched, browser;
+
+// Use of jQuery.browser is frowned upon.
+// More details: http://api.jquery.com/jQuery.browser
+// jQuery.uaMatch maintained for back-compat
+jQuery.uaMatch = function( ua ) {
+ ua = ua.toLowerCase();
+
+ var match = /(chrome)[ \/]([\w.]+)/.exec( ua ) ||
+ /(webkit)[ \/]([\w.]+)/.exec( ua ) ||
+ /(opera)(?:.*version|)[ \/]([\w.]+)/.exec( ua ) ||
+ /(msie) ([\w.]+)/.exec( ua ) ||
+ ua.indexOf("compatible") < 0 && /(mozilla)(?:.*? rv:([\w.]+)|)/.exec( ua ) ||
+ [];
+
+ return {
+ browser: match[ 1 ] || "",
+ version: match[ 2 ] || "0"
+ };
+};
+
+matched = jQuery.uaMatch( navigator.userAgent );
+browser = {};
+
+if ( matched.browser ) {
+ browser[ matched.browser ] = true;
+ browser.version = matched.version;
+}
+
+// Chrome is Webkit, but Webkit is also Safari.
+if ( browser.chrome ) {
+ browser.webkit = true;
+} else if ( browser.webkit ) {
+ browser.safari = true;
+}
+
+jQuery.browser = browser;
+
+jQuery.sub = function() {
+ function jQuerySub( selector, context ) {
+ return new jQuerySub.fn.init( selector, context );
+ }
+ jQuery.extend( true, jQuerySub, this );
+ jQuerySub.superclass = this;
+ jQuerySub.fn = jQuerySub.prototype = this();
+ jQuerySub.fn.constructor = jQuerySub;
+ jQuerySub.sub = this.sub;
+ jQuerySub.fn.init = function init( selector, context ) {
+ if ( context && context instanceof jQuery && !(context instanceof jQuerySub) ) {
+ context = jQuerySub( context );
+ }
+
+ return jQuery.fn.init.call( this, selector, context, rootjQuerySub );
+ };
+ jQuerySub.fn.init.prototype = jQuerySub.fn;
+ var rootjQuerySub = jQuerySub(document);
+ return jQuerySub;
+};
+
+})();
+var curCSS, iframe, iframeDoc,
+ ralpha = /alpha\([^)]*\)/i,
+ ropacity = /opacity=([^)]*)/,
+ rposition = /^(top|right|bottom|left)$/,
+ // swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
+ // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
+ rdisplayswap = /^(none|table(?!-c[ea]).+)/,
+ rmargin = /^margin/,
+ rnumsplit = new RegExp( "^(" + core_pnum + ")(.*)$", "i" ),
+ rnumnonpx = new RegExp( "^(" + core_pnum + ")(?!px)[a-z%]+$", "i" ),
+ rrelNum = new RegExp( "^([-+])=(" + core_pnum + ")", "i" ),
+ elemdisplay = { BODY: "block" },
+
+ cssShow = { position: "absolute", visibility: "hidden", display: "block" },
+ cssNormalTransform = {
+ letterSpacing: 0,
+ fontWeight: 400
+ },
+
+ cssExpand = [ "Top", "Right", "Bottom", "Left" ],
+ cssPrefixes = [ "Webkit", "O", "Moz", "ms" ],
+
+ eventsToggle = jQuery.fn.toggle;
+
+// return a css property mapped to a potentially vendor prefixed property
+function vendorPropName( style, name ) {
+
+ // shortcut for names that are not vendor prefixed
+ if ( name in style ) {
+ return name;
+ }
+
+ // check for vendor prefixed names
+ var capName = name.charAt(0).toUpperCase() + name.slice(1),
+ origName = name,
+ i = cssPrefixes.length;
+
+ while ( i-- ) {
+ name = cssPrefixes[ i ] + capName;
+ if ( name in style ) {
+ return name;
+ }
+ }
+
+ return origName;
+}
+
+function isHidden( elem, el ) {
+ elem = el || elem;
+ return jQuery.css( elem, "display" ) === "none" || !jQuery.contains( elem.ownerDocument, elem );
+}
+
+function showHide( elements, show ) {
+ var elem, display,
+ values = [],
+ index = 0,
+ length = elements.length;
+
+ for ( ; index < length; index++ ) {
+ elem = elements[ index ];
+ if ( !elem.style ) {
+ continue;
+ }
+ values[ index ] = jQuery._data( elem, "olddisplay" );
+ if ( show ) {
+ // Reset the inline display of this element to learn if it is
+ // being hidden by cascaded rules or not
+ if ( !values[ index ] && elem.style.display === "none" ) {
+ elem.style.display = "";
+ }
+
+ // Set elements which have been overridden with display: none
+ // in a stylesheet to whatever the default browser style is
+ // for such an element
+ if ( elem.style.display === "" && isHidden( elem ) ) {
+ values[ index ] = jQuery._data( elem, "olddisplay", css_defaultDisplay(elem.nodeName) );
+ }
+ } else {
+ display = curCSS( elem, "display" );
+
+ if ( !values[ index ] && display !== "none" ) {
+ jQuery._data( elem, "olddisplay", display );
+ }
+ }
+ }
+
+ // Set the display of most of the elements in a second loop
+ // to avoid the constant reflow
+ for ( index = 0; index < length; index++ ) {
+ elem = elements[ index ];
+ if ( !elem.style ) {
+ continue;
+ }
+ if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
+ elem.style.display = show ? values[ index ] || "" : "none";
+ }
+ }
+
+ return elements;
+}
+
+jQuery.fn.extend({
+ css: function( name, value ) {
+ return jQuery.access( this, function( elem, name, value ) {
+ return value !== undefined ?
+ jQuery.style( elem, name, value ) :
+ jQuery.css( elem, name );
+ }, name, value, arguments.length > 1 );
+ },
+ show: function() {
+ return showHide( this, true );
+ },
+ hide: function() {
+ return showHide( this );
+ },
+ toggle: function( state, fn2 ) {
+ var bool = typeof state === "boolean";
+
+ if ( jQuery.isFunction( state ) && jQuery.isFunction( fn2 ) ) {
+ return eventsToggle.apply( this, arguments );
+ }
+
+ return this.each(function() {
+ if ( bool ? state : isHidden( this ) ) {
+ jQuery( this ).show();
+ } else {
+ jQuery( this ).hide();
+ }
+ });
+ }
+});
+
+jQuery.extend({
+ // Add in style property hooks for overriding the default
+ // behavior of getting and setting a style property
+ cssHooks: {
+ opacity: {
+ get: function( elem, computed ) {
+ if ( computed ) {
+ // We should always get a number back from opacity
+ var ret = curCSS( elem, "opacity" );
+ return ret === "" ? "1" : ret;
+
+ }
+ }
+ }
+ },
+
+ // Exclude the following css properties to add px
+ cssNumber: {
+ "fillOpacity": true,
+ "fontWeight": true,
+ "lineHeight": true,
+ "opacity": true,
+ "orphans": true,
+ "widows": true,
+ "zIndex": true,
+ "zoom": true
+ },
+
+ // Add in properties whose names you wish to fix before
+ // setting or getting the value
+ cssProps: {
+ // normalize float css property
+ "float": jQuery.support.cssFloat ? "cssFloat" : "styleFloat"
+ },
+
+ // Get and set the style property on a DOM Node
+ style: function( elem, name, value, extra ) {
+ // Don't set styles on text and comment nodes
+ if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
+ return;
+ }
+
+ // Make sure that we're working with the right name
+ var ret, type, hooks,
+ origName = jQuery.camelCase( name ),
+ style = elem.style;
+
+ name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
+
+ // gets hook for the prefixed version
+ // followed by the unprefixed version
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
+
+ // Check if we're setting a value
+ if ( value !== undefined ) {
+ type = typeof value;
+
+ // convert relative number strings (+= or -=) to relative numbers. #7345
+ if ( type === "string" && (ret = rrelNum.exec( value )) ) {
+ value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
+ // Fixes bug #9237
+ type = "number";
+ }
+
+ // Make sure that NaN and null values aren't set. See: #7116
+ if ( value == null || type === "number" && isNaN( value ) ) {
+ return;
+ }
+
+ // If a number was passed in, add 'px' to the (except for certain CSS properties)
+ if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
+ value += "px";
+ }
+
+ // If a hook was provided, use that value, otherwise just set the specified value
+ if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
+ // Wrapped to prevent IE from throwing errors when 'invalid' values are provided
+ // Fixes bug #5509
+ try {
+ style[ name ] = value;
+ } catch(e) {}
+ }
+
+ } else {
+ // If a hook was provided get the non-computed value from there
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
+ return ret;
+ }
+
+ // Otherwise just get the value from the style object
+ return style[ name ];
+ }
+ },
+
+ css: function( elem, name, numeric, extra ) {
+ var val, num, hooks,
+ origName = jQuery.camelCase( name );
+
+ // Make sure that we're working with the right name
+ name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
+
+ // gets hook for the prefixed version
+ // followed by the unprefixed version
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
+
+ // If a hook was provided get the computed value from there
+ if ( hooks && "get" in hooks ) {
+ val = hooks.get( elem, true, extra );
+ }
+
+ // Otherwise, if a way to get the computed value exists, use that
+ if ( val === undefined ) {
+ val = curCSS( elem, name );
+ }
+
+ //convert "normal" to computed value
+ if ( val === "normal" && name in cssNormalTransform ) {
+ val = cssNormalTransform[ name ];
+ }
+
+ // Return, converting to number if forced or a qualifier was provided and val looks numeric
+ if ( numeric || extra !== undefined ) {
+ num = parseFloat( val );
+ return numeric || jQuery.isNumeric( num ) ? num || 0 : val;
+ }
+ return val;
+ },
+
+ // A method for quickly swapping in/out CSS properties to get correct calculations
+ swap: function( elem, options, callback ) {
+ 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.call( elem );
+
+ // Revert the old values
+ for ( name in options ) {
+ elem.style[ name ] = old[ name ];
+ }
+
+ return ret;
+ }
+});
+
+// NOTE: To any future maintainer, we've window.getComputedStyle
+// because jsdom on node.js will break without it.
+if ( window.getComputedStyle ) {
+ curCSS = function( elem, name ) {
+ var ret, width, minWidth, maxWidth,
+ computed = window.getComputedStyle( elem, null ),
+ style = elem.style;
+
+ if ( computed ) {
+
+ // getPropertyValue is only needed for .css('filter') in IE9, see #12537
+ ret = computed.getPropertyValue( name ) || computed[ name ];
+
+ if ( ret === "" && !jQuery.contains( elem.ownerDocument, elem ) ) {
+ ret = jQuery.style( elem, name );
+ }
+
+ // A tribute to the "awesome hack by Dean Edwards"
+ // Chrome < 17 and Safari 5.0 uses "computed value" instead of "used value" for margin-right
+ // Safari 5.1.7 (at least) returns percentage for a larger set of values, but width seems to be reliably pixels
+ // this is against the CSSOM draft spec: http://dev.w3.org/csswg/cssom/#resolved-values
+ if ( rnumnonpx.test( ret ) && rmargin.test( name ) ) {
+ width = style.width;
+ minWidth = style.minWidth;
+ maxWidth = style.maxWidth;
+
+ style.minWidth = style.maxWidth = style.width = ret;
+ ret = computed.width;
+
+ style.width = width;
+ style.minWidth = minWidth;
+ style.maxWidth = maxWidth;
+ }
+ }
+
+ return ret;
+ };
+} else if ( document.documentElement.currentStyle ) {
+ curCSS = function( elem, name ) {
+ var left, rsLeft,
+ ret = elem.currentStyle && elem.currentStyle[ name ],
+ style = elem.style;
+
+ // Avoid setting ret to empty string here
+ // so we don't default to auto
+ if ( ret == null && style && style[ name ] ) {
+ ret = style[ name ];
+ }
+
+ // From the awesome hack by Dean Edwards
+ // http://erik.eae.net/archives/2007/07/27/18.54.15/#comment-102291
+
+ // If we're not dealing with a regular pixel number
+ // but a number that has a weird ending, we need to convert it to pixels
+ // but not position css attributes, as those are proportional to the parent element instead
+ // and we can't measure the parent instead because it might trigger a "stacking dolls" problem
+ if ( rnumnonpx.test( ret ) && !rposition.test( name ) ) {
+
+ // Remember the original values
+ left = style.left;
+ rsLeft = elem.runtimeStyle && elem.runtimeStyle.left;
+
+ // Put in the new values to get a computed value out
+ if ( rsLeft ) {
+ elem.runtimeStyle.left = elem.currentStyle.left;
+ }
+ style.left = name === "fontSize" ? "1em" : ret;
+ ret = style.pixelLeft + "px";
+
+ // Revert the changed values
+ style.left = left;
+ if ( rsLeft ) {
+ elem.runtimeStyle.left = rsLeft;
+ }
+ }
+
+ return ret === "" ? "auto" : ret;
+ };
+}
+
+function setPositiveNumber( elem, value, subtract ) {
+ var matches = rnumsplit.exec( value );
+ return matches ?
+ Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
+ value;
+}
+
+function augmentWidthOrHeight( elem, name, extra, isBorderBox ) {
+ var i = extra === ( isBorderBox ? "border" : "content" ) ?
+ // If we already have the right measurement, avoid augmentation
+ 4 :
+ // Otherwise initialize for horizontal or vertical properties
+ name === "width" ? 1 : 0,
+
+ val = 0;
+
+ for ( ; i < 4; i += 2 ) {
+ // both box models exclude margin, so add it if we want it
+ if ( extra === "margin" ) {
+ // we use jQuery.css instead of curCSS here
+ // because of the reliableMarginRight CSS hook!
+ val += jQuery.css( elem, extra + cssExpand[ i ], true );
+ }
+
+ // From this point on we use curCSS for maximum performance (relevant in animations)
+ if ( isBorderBox ) {
+ // border-box includes padding, so remove it if we want content
+ if ( extra === "content" ) {
+ val -= parseFloat( curCSS( elem, "padding" + cssExpand[ i ] ) ) || 0;
+ }
+
+ // at this point, extra isn't border nor margin, so remove border
+ if ( extra !== "margin" ) {
+ val -= parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
+ }
+ } else {
+ // at this point, extra isn't content, so add padding
+ val += parseFloat( curCSS( elem, "padding" + cssExpand[ i ] ) ) || 0;
+
+ // at this point, extra isn't content nor padding, so add border
+ if ( extra !== "padding" ) {
+ val += parseFloat( curCSS( elem, "border" + cssExpand[ i ] + "Width" ) ) || 0;
+ }
+ }
+ }
+
+ return val;
+}
+
+function getWidthOrHeight( elem, name, extra ) {
+
+ // Start with offset property, which is equivalent to the border-box value
+ var val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
+ valueIsBorderBox = true,
+ isBorderBox = jQuery.support.boxSizing && jQuery.css( elem, "boxSizing" ) === "border-box";
+
+ // some non-html elements return undefined for offsetWidth, so check for null/undefined
+ // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
+ // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
+ if ( val <= 0 || val == null ) {
+ // Fall back to computed then uncomputed css if necessary
+ val = curCSS( elem, name );
+ if ( val < 0 || val == null ) {
+ val = elem.style[ name ];
+ }
+
+ // Computed unit is not pixels. Stop here and return.
+ if ( rnumnonpx.test(val) ) {
+ return val;
+ }
+
+ // we need the check for style in case a browser which returns unreliable values
+ // for getComputedStyle silently falls back to the reliable elem.style
+ valueIsBorderBox = isBorderBox && ( jQuery.support.boxSizingReliable || val === elem.style[ name ] );
+
+ // Normalize "", auto, and prepare for extra
+ val = parseFloat( val ) || 0;
+ }
+
+ // use the active box-sizing model to add/subtract irrelevant styles
+ return ( val +
+ augmentWidthOrHeight(
+ elem,
+ name,
+ extra || ( isBorderBox ? "border" : "content" ),
+ valueIsBorderBox
+ )
+ ) + "px";
+}
+
+
+// Try to determine the default display value of an element
+function css_defaultDisplay( nodeName ) {
+ if ( elemdisplay[ nodeName ] ) {
+ return elemdisplay[ nodeName ];
+ }
+
+ var elem = jQuery( "<" + nodeName + ">" ).appendTo( document.body ),
+ display = elem.css("display");
+ elem.remove();
+
+ // If the simple way fails,
+ // get element's real default display by attaching it to a temp iframe
+ if ( display === "none" || display === "" ) {
+ // Use the already-created iframe if possible
+ iframe = document.body.appendChild(
+ iframe || jQuery.extend( document.createElement("iframe"), {
+ frameBorder: 0,
+ width: 0,
+ height: 0
+ })
+ );
+
+ // Create a cacheable copy of the iframe document on first call.
+ // IE and Opera will allow us to reuse the iframeDoc without re-writing the fake HTML
+ // document to it; WebKit & Firefox won't allow reusing the iframe document.
+ if ( !iframeDoc || !iframe.createElement ) {
+ iframeDoc = ( iframe.contentWindow || iframe.contentDocument ).document;
+ iframeDoc.write("");
+ iframeDoc.close();
+ }
+
+ elem = iframeDoc.body.appendChild( iframeDoc.createElement(nodeName) );
+
+ display = curCSS( elem, "display" );
+ document.body.removeChild( iframe );
+ }
+
+ // Store the correct default display
+ elemdisplay[ nodeName ] = display;
+
+ return display;
+}
+
+jQuery.each([ "height", "width" ], function( i, name ) {
+ jQuery.cssHooks[ name ] = {
+ get: function( elem, computed, extra ) {
+ if ( computed ) {
+ // certain elements can have dimension info if we invisibly show them
+ // however, it must have a current display style that would benefit from this
+ if ( elem.offsetWidth === 0 && rdisplayswap.test( curCSS( elem, "display" ) ) ) {
+ return jQuery.swap( elem, cssShow, function() {
+ return getWidthOrHeight( elem, name, extra );
+ });
+ } else {
+ return getWidthOrHeight( elem, name, extra );
+ }
+ }
+ },
+
+ set: function( elem, value, extra ) {
+ return setPositiveNumber( elem, value, extra ?
+ augmentWidthOrHeight(
+ elem,
+ name,
+ extra,
+ jQuery.support.boxSizing && jQuery.css( elem, "boxSizing" ) === "border-box"
+ ) : 0
+ );
+ }
+ };
+});
+
+if ( !jQuery.support.opacity ) {
+ jQuery.cssHooks.opacity = {
+ get: function( elem, computed ) {
+ // IE uses filters for opacity
+ return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
+ ( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
+ computed ? "1" : "";
+ },
+
+ set: function( elem, value ) {
+ var style = elem.style,
+ currentStyle = elem.currentStyle,
+ opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
+ filter = currentStyle && currentStyle.filter || style.filter || "";
+
+ // IE has trouble with opacity if it does not have layout
+ // Force it by setting the zoom level
+ style.zoom = 1;
+
+ // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
+ if ( value >= 1 && jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
+ style.removeAttribute ) {
+
+ // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
+ // if "filter:" is present at all, clearType is disabled, we want to avoid this
+ // style.removeAttribute is IE Only, but so apparently is this code path...
+ style.removeAttribute( "filter" );
+
+ // if there there is no filter style applied in a css rule, we are done
+ if ( currentStyle && !currentStyle.filter ) {
+ return;
+ }
+ }
+
+ // otherwise, set new filter values
+ style.filter = ralpha.test( filter ) ?
+ filter.replace( ralpha, opacity ) :
+ filter + " " + opacity;
+ }
+ };
+}
+
+// These hooks cannot be added until DOM ready because the support test
+// for it is not run until after DOM ready
+jQuery(function() {
+ if ( !jQuery.support.reliableMarginRight ) {
+ jQuery.cssHooks.marginRight = {
+ get: function( elem, computed ) {
+ // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
+ // Work around by temporarily setting element display to inline-block
+ return jQuery.swap( elem, { "display": "inline-block" }, function() {
+ if ( computed ) {
+ return curCSS( elem, "marginRight" );
+ }
+ });
+ }
+ };
+ }
+
+ // Webkit bug: https://bugs.webkit.org/show_bug.cgi?id=29084
+ // getComputedStyle returns percent when specified for top/left/bottom/right
+ // rather than make the css module depend on the offset module, we just check for it here
+ if ( !jQuery.support.pixelPosition && jQuery.fn.position ) {
+ jQuery.each( [ "top", "left" ], function( i, prop ) {
+ jQuery.cssHooks[ prop ] = {
+ get: function( elem, computed ) {
+ if ( computed ) {
+ var ret = curCSS( elem, prop );
+ // if curCSS returns percentage, fallback to offset
+ return rnumnonpx.test( ret ) ? jQuery( elem ).position()[ prop ] + "px" : ret;
+ }
+ }
+ };
+ });
+ }
+
+});
+
+if ( jQuery.expr && jQuery.expr.filters ) {
+ jQuery.expr.filters.hidden = function( elem ) {
+ return ( elem.offsetWidth === 0 && elem.offsetHeight === 0 ) || (!jQuery.support.reliableHiddenOffsets && ((elem.style && elem.style.display) || curCSS( elem, "display" )) === "none");
+ };
+
+ jQuery.expr.filters.visible = function( elem ) {
+ return !jQuery.expr.filters.hidden( elem );
+ };
+}
+
+// These hooks are used by animate to expand properties
+jQuery.each({
+ margin: "",
+ padding: "",
+ border: "Width"
+}, function( prefix, suffix ) {
+ jQuery.cssHooks[ prefix + suffix ] = {
+ expand: function( value ) {
+ var i,
+
+ // assumes a single number if not a string
+ parts = typeof value === "string" ? value.split(" ") : [ value ],
+ expanded = {};
+
+ for ( i = 0; i < 4; i++ ) {
+ expanded[ prefix + cssExpand[ i ] + suffix ] =
+ parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
+ }
+
+ return expanded;
+ }
+ };
+
+ if ( !rmargin.test( prefix ) ) {
+ jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
+ }
+});
+var r20 = /%20/g,
+ rbracket = /\[\]$/,
+ rCRLF = /\r?\n/g,
+ rinput = /^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,
+ rselectTextarea = /^(?:select|textarea)/i;
+
+jQuery.fn.extend({
+ serialize: function() {
+ return jQuery.param( this.serializeArray() );
+ },
+ serializeArray: function() {
+ return this.map(function(){
+ return this.elements ? jQuery.makeArray( this.elements ) : this;
+ })
+ .filter(function(){
+ return this.name && !this.disabled &&
+ ( this.checked || rselectTextarea.test( this.nodeName ) ||
+ rinput.test( this.type ) );
+ })
+ .map(function( i, elem ){
+ var val = jQuery( this ).val();
+
+ return val == null ?
+ null :
+ jQuery.isArray( val ) ?
+ jQuery.map( val, function( val, i ){
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+ }) :
+ { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
+ }).get();
+ }
+});
+
+//Serialize an array of form elements or a set of
+//key/values into a query string
+jQuery.param = function( a, traditional ) {
+ var prefix,
+ s = [],
+ add = function( key, value ) {
+ // If value is a function, invoke it and return its value
+ value = jQuery.isFunction( value ) ? value() : ( value == null ? "" : value );
+ s[ s.length ] = encodeURIComponent( key ) + "=" + encodeURIComponent( value );
+ };
+
+ // Set traditional to true for jQuery <= 1.3.2 behavior.
+ if ( traditional === undefined ) {
+ traditional = jQuery.ajaxSettings && jQuery.ajaxSettings.traditional;
+ }
+
+ // If an array was passed in, assume that it is an array of form elements.
+ if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
+ // Serialize the form elements
+ jQuery.each( a, function() {
+ add( this.name, this.value );
+ });
+
+ } else {
+ // If traditional, encode the "old" way (the way 1.3.2 or older
+ // did it), otherwise encode params recursively.
+ for ( prefix in a ) {
+ buildParams( prefix, a[ prefix ], traditional, add );
+ }
+ }
+
+ // Return the resulting serialization
+ return s.join( "&" ).replace( r20, "+" );
+};
+
+function buildParams( prefix, obj, traditional, add ) {
+ var name;
+
+ if ( jQuery.isArray( obj ) ) {
+ // Serialize array item.
+ jQuery.each( obj, function( i, v ) {
+ if ( traditional || rbracket.test( prefix ) ) {
+ // Treat each array item as a scalar.
+ add( prefix, v );
+
+ } else {
+ // If array item is non-scalar (array or object), encode its
+ // numeric index to resolve deserialization ambiguity issues.
+ // Note that rack (as of 1.0.0) can't currently deserialize
+ // nested arrays properly, and attempting to do so may cause
+ // a server error. Possible fixes are to modify rack's
+ // deserialization algorithm or to provide an option or flag
+ // to force array serialization to be shallow.
+ buildParams( prefix + "[" + ( typeof v === "object" ? i : "" ) + "]", v, traditional, add );
+ }
+ });
+
+ } else if ( !traditional && jQuery.type( obj ) === "object" ) {
+ // Serialize object item.
+ for ( name in obj ) {
+ buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
+ }
+
+ } else {
+ // Serialize scalar item.
+ add( prefix, obj );
+ }
+}
+var
+ // Document location
+ ajaxLocParts,
+ ajaxLocation,
+
+ rhash = /#.*$/,
+ rheaders = /^(.*?):[ \t]*([^\r\n]*)\r?$/mg, // IE leaves an \r character at EOL
+ // #7653, #8125, #8152: local protocol detection
+ rlocalProtocol = /^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,
+ rnoContent = /^(?:GET|HEAD)$/,
+ rprotocol = /^\/\//,
+ rquery = /\?/,
+ rscript = /
-
+
+
diff --git a/addons/l10n_be/__openerp__.py b/addons/l10n_be/__openerp__.py
index a956ea7ebe0..cd822045e64 100644
--- a/addons/l10n_be/__openerp__.py
+++ b/addons/l10n_be/__openerp__.py
@@ -58,6 +58,7 @@ Wizards provided by this module:
'base_iban',
'account_chart',
'l10n_be_coda',
+ 'l10n_multilang',
],
'data': [
'account_financial_report.xml',
@@ -68,11 +69,11 @@ Wizards provided by this module:
'wizard/l10n_be_account_vat_declaration_view.xml',
'wizard/l10n_be_vat_intra_view.xml',
'wizard/l10n_be_partner_vat_listing.xml',
+ 'wizard/account_wizard.xml',
'l10n_be_sequence.xml',
'fiscal_templates.xml',
'account_fiscal_position_tax_template.xml',
'security/ir.model.access.csv',
- 'l10n_be_wizard.yml'
],
'demo': [],
'installable': True,
diff --git a/addons/l10n_be/account_chart_template.xml b/addons/l10n_be/account_chart_template.xml
index 5c803ac3df3..55726fdc335 100644
--- a/addons/l10n_be/account_chart_template.xml
+++ b/addons/l10n_be/account_chart_template.xml
@@ -12,6 +12,7 @@
+
diff --git a/addons/l10n_be/i18n_extra/nl_BE.po b/addons/l10n_be/i18n_extra/nl_BE.po
new file mode 100644
index 00000000000..7b60578713d
--- /dev/null
+++ b/addons/l10n_be/i18n_extra/nl_BE.po
@@ -0,0 +1,5104 @@
+# Translation of OpenERP Server.
+# This file contains the translation of the following modules:
+# * l10n_be
+# Geert , 2013.
+msgid ""
+msgstr ""
+"Project-Id-Version: OpenERP Server 7.0\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2013-02-14 13:31+0000\n"
+"PO-Revision-Date: 2013-03-14 16:41+0100\n"
+"Last-Translator: Geert Janssens \n"
+"Language-Team: \n"
+"Language: nl\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+"Plural-Forms: nplurals=2; plural=(n != 1);\n"
+"X-Generator: Poedit 1.5.4\n"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1
+msgid "CLASSE 1"
+msgstr ""
+"KLASSE 1 - EIGEN VERMOGEN, VOORZIENINGEN VOOR RISICO'S EN KOSTEN EN SCHULDEN "
+"OP MEER DAN ÉÉN JAAR"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a10
+msgid "CAPITAL"
+msgstr "KAPITAAL"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a100
+msgid "Capital souscrit ou capital personnel"
+msgstr "Geplaatst of persoonlijk kapitaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1000
+msgid "Capital non amorti"
+msgstr "Niet-afgeschreven kapitaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1001
+msgid "Capital amorti"
+msgstr "Afgeschreven kapitaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a101
+msgid "Capital non appelé"
+msgstr "Niet-opgevraagd kapitaal (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a109
+msgid "Compte de l'exploitant"
+msgstr "Rekening van de uitbater"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1090
+msgid "Opérations courantes"
+msgstr "Lopende rekeningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1091
+msgid "Impôts personnels"
+msgstr "Persoonlijke belastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1092
+msgid "Rémunérations et autres avantages"
+msgstr "Vergoedingen en andere voordelen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a11
+msgid "PRIMES D'EMISSION"
+msgstr "Uitgiftepremies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a12
+msgid "PLUS-VALUES DE REEVALUATION"
+msgstr "Vergoedingen en andere voordelen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a120
+msgid "Plus-values de réévaluation sur immobilisations incorporelles"
+msgstr "Herwaarderingsmeerwaarden op immateriële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1200
+#: model:account.account.template,name:l10n_be.a1210
+#: model:account.account.template,name:l10n_be.a1220
+msgid "Plus-values de réévaluation"
+msgstr "Vergoedingen en andere voordelen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1201
+#: model:account.account.template,name:l10n_be.a1211
+#: model:account.account.template,name:l10n_be.a1221
+msgid "Reprises de réductions de valeur"
+msgstr "Terugneming van waardeverminderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a121
+msgid "Plus-values de réévaluation sur immobilisations corporelles"
+msgstr "Herwaarderingsmeerwaarden op materiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a122
+msgid "Plus-values de réévaluation sur immobilisations financières"
+msgstr "Herwaarderingsmeerwaarden op financiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a123
+msgid "Plus-values de réévaluation sur stocks"
+msgstr "Herwaarderingsmeerwaarden op voorraden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a124
+msgid "Reprises de réductions de valeur sur placements de trésorerie"
+msgstr "Terugneming van waardeverminderingen op geldbeleggingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a13
+msgid "RESERVES"
+msgstr "Reserves"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a130
+msgid "Réserve légale"
+msgstr "Wettelijke reserve"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a131
+msgid "Réserves indisponibles"
+msgstr "Onbeschikbare reserves"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1310
+msgid "Réserve pour actions propres"
+msgstr "Reserve voor eigen aandelen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1311
+msgid "Autres réserves indisponibles"
+msgstr "Andere onbeschikbare reserves"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a132
+msgid "Réserves immunisées"
+msgstr "Belastingvrije reserves"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a133
+msgid "Réserves disponibles"
+msgstr "Beschikbare reserves"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1330
+msgid "Réserve pour régularisation de dividendes"
+msgstr "Reserve voor regularisering van dividenden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1331
+msgid "Réserve pour renouvellement des immobilisations"
+msgstr "Reserve voor de vernieuwing van vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1332
+msgid "Réserve pour installations en faveur du personnel 1333 Réserves libres"
+msgstr ""
+"Reserve voor installaties ten behoeve van het personeel 1333 Vrije reserves"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a14
+msgid "BENEFICE (PERTE) REPORTE(E)"
+msgstr "Overgedragen winst (of Overgedragen verlies (-) )"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a140
+msgid "Bénéfice reporté"
+msgstr "Overgedragen winst"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a141
+msgid "Perte reportée"
+msgstr "Overgedragen verlies (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a15
+msgid "SUBSIDES EN CAPITAL"
+msgstr "Kapitaalsubsidies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a150
+msgid "Montants obtenus"
+msgstr "Ontvangen bedragen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a151
+msgid "Montants transférés aux résultats"
+msgstr "Bedragen komende van het resultaat"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a16
+msgid "PROVISIONS POUR RISQUES ET CHARGES"
+msgstr "Voorzieningen en uitgestelde belastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a160
+#: model:account.account.template,name:l10n_be.a635
+msgid "Provisions pour pensions et obligations similaires"
+msgstr "Voorzieningen voor pensioenen en soortgelijke verplichtingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a161
+msgid "Provisions pour charges fiscales"
+msgstr "Voorzieningen voor belastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a162
+#: model:account.account.template,name:l10n_be.a636
+msgid "Provisions pour grosses réparations et gros entretiens"
+msgstr "Voorzieningen voor grote herstellingswerken en grote onderhoudswerken"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a163
+#: model:account.account.template,name:l10n_be.a169
+#: model:account.account.template,name:l10n_be.a637
+msgid "Provisions pour autres risques et charges"
+msgstr "Voorzieningen voor overige risico's en kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a164
+msgid ""
+"Provisions pour sûretés personnelles ou réelles constituées à l'appui de "
+"dettes et d'engagements de tiers"
+msgstr ""
+"Voorzieningen voor persoonlijke of zakelijke zekerheden om de schuld "
+"en verplichtingen van derden te ondersteunen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a165
+msgid ""
+"Provisions pour engagements relatifs à l'acquisition ou à la cession "
+"d'immobilisations"
+msgstr ""
+"Voorzieningen voor engagementen met betrekking tot de aankoop of verkoop van "
+"vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a166
+msgid "Provisions pour exécution de commandes passées ou reçues"
+msgstr "Voorzieningen voor uitvoering van geplaatste of ontvangen bestellingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a167
+msgid ""
+"Provisions pour positions et marchés à terme en devises ou positions et "
+"marchés à terme en marchandises"
+msgstr "Voorzieningen voor posities en futures in valuta of handelsgoederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a168
+msgid ""
+"Provisions pour garanties techniques attachées aux ventes et prestations "
+"déjà effectuées par l'entreprise"
+msgstr ""
+"Voorzieningen voor technische garanties gekoppeld aan verkopen en reeds "
+"geleverde prestaties door de firma"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1690
+msgid "Pour litiges en cours"
+msgstr "Voor hangende geschillen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1691
+msgid "Pour amendes, doubles droits, pénalités"
+msgstr "Voor boetes en dubbele rechten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1692
+msgid "Pour propre assureur"
+msgstr "Voor eigen verzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1693
+msgid "Pour risques inhérents aux opérations de crédits à moyen ou long terme"
+msgstr ""
+"Voor risico's die inherent zijn aan krediettransacties op de middellange of "
+"lange termijn"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1695
+msgid "Provision pour charge de liquidation"
+msgstr "Voorziening voor kosten van vereffening"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1696
+msgid "Provision pour départ de personnel"
+msgstr "Voorziening voor ontslag personeel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1699
+msgid "Pour risques divers "
+msgstr "Voor diverse risico's"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a17
+msgid "DETTES A PLUS D'UN AN"
+msgstr "Schulden op meer dan één jaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a170
+#: model:account.account.template,name:l10n_be.a420
+msgid "Emprunts subordonnés"
+msgstr "Achtergestelde leningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1700
+#: model:account.account.template,name:l10n_be.a1710
+#: model:account.account.template,name:l10n_be.a4200
+#: model:account.account.template,name:l10n_be.a4210
+msgid "Convertibles"
+msgstr "Converteerbaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1701
+#: model:account.account.template,name:l10n_be.a1711
+#: model:account.account.template,name:l10n_be.a4201
+#: model:account.account.template,name:l10n_be.a4211
+msgid "Non convertibles"
+msgstr "Niet converteerbaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a171
+#: model:account.account.template,name:l10n_be.a421
+msgid "Emprunts obligataires non subordonnés"
+msgstr "Niet-achtergestelde obligatieleningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a172
+msgid "Dettes de location-financement et assimilés"
+msgstr "Leasingschulden en soortgelijke"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1720
+msgid "Dettes de location-financement de biens immobiliers"
+msgstr "Leasingschulden van onroerende goederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1721
+msgid "Dettes de location-financement de biens mobiliers"
+msgstr "Leasingschulden van roerende goederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1722
+msgid "Dettes sur droits réels sur immeubles"
+msgstr "Schulden op zakelijke rechten op gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a173
+#: model:account.account.template,name:l10n_be.a423
+msgid "Etablissements de crédit"
+msgstr "Kredietinstellingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1730
+#: model:account.account.template,name:l10n_be.a4230
+msgid "Dettes en compte"
+msgstr "Schulden op rekeningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a17300
+#: model:account.account.template,name:l10n_be.a17310
+#: model:account.account.template,name:l10n_be.a17320
+msgid "Banque A"
+msgstr "Bank A"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a17301
+#: model:account.account.template,name:l10n_be.a17311
+#: model:account.account.template,name:l10n_be.a17321
+msgid "Banque B"
+msgstr "Bank B"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1731
+#: model:account.account.template,name:l10n_be.a4231
+msgid "Promesses"
+msgstr "Promessen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1732
+#: model:account.account.template,name:l10n_be.a4232
+msgid "Crédits d'acceptation"
+msgstr "Acceptkredieten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a174
+#: model:account.account.template,name:l10n_be.a424
+#: model:account.account.template,name:l10n_be.a439
+msgid "Autres emprunts"
+msgstr "Overige leningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a175
+#: model:account.account.template,name:l10n_be.a425
+msgid "Dettes commerciales"
+msgstr "Handelsschulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1750
+msgid "Fournisseurs : dettes en compte"
+msgstr "Leveranciers"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a17500
+#: model:account.account.template,name:l10n_be.a17510
+#: model:account.account.template,name:l10n_be.a4400
+#: model:account.account.template,name:l10n_be.a4410
+msgid "Entreprises apparentées"
+msgstr "Aanverwante bedrijven"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a175000
+#: model:account.account.template,name:l10n_be.a175100
+#: model:account.account.template,name:l10n_be.a1790
+#: model:account.account.template,name:l10n_be.a4020
+#: model:account.account.template,name:l10n_be.a4030
+#: model:account.account.template,name:l10n_be.a4290
+#: model:account.account.template,name:l10n_be.a44100
+#: model:account.account.template,name:l10n_be.a_pay
+msgid "Entreprises liées"
+msgstr "Aanverwante bedrijven"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a175001
+#: model:account.account.template,name:l10n_be.a175101
+#: model:account.account.template,name:l10n_be.a4291
+#: model:account.account.template,name:l10n_be.a44001
+#: model:account.account.template,name:l10n_be.a44101
+msgid "Entreprises avec lesquelles il existe un lien de participation"
+msgstr "Bedrijven waarin een participatie is"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a17501
+#: model:account.account.template,name:l10n_be.a17511
+#: model:account.account.template,name:l10n_be.a4401
+#: model:account.account.template,name:l10n_be.a4411
+msgid "Fournisseurs ordinaires"
+msgstr "Vaste leveranciers"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a175010
+#: model:account.account.template,name:l10n_be.a175110
+#: model:account.account.template,name:l10n_be.a44010
+#: model:account.account.template,name:l10n_be.a44110
+msgid "Fournisseurs belges"
+msgstr "Belgische leveranciers"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a175011
+#: model:account.account.template,name:l10n_be.a175111
+msgid "Fournisseurs C.E.E."
+msgstr "EEG leveranciers"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a175012
+#: model:account.account.template,name:l10n_be.a175112
+#: model:account.account.template,name:l10n_be.a44012
+#: model:account.account.template,name:l10n_be.a44112
+msgid "Fournisseurs importation"
+msgstr "Import leveranciers"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1751
+#: model:account.account.template,name:l10n_be.a4251
+#: model:account.account.template,name:l10n_be.a441
+msgid "Effets à payer"
+msgstr "Te betalen wissels"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a176
+msgid "Acomptes reçus sur commandes"
+msgstr "Ontvangen vooruitbetalingen op bestellingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a178
+#: model:account.account.template,name:l10n_be.a426
+#: model:account.account.template,name:l10n_be.a488
+msgid "Cautionnements reçus en numéraires"
+msgstr "Borgtochten ontvangen in contanten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a179
+#: model:account.account.template,name:l10n_be.a429
+msgid "Dettes diverses"
+msgstr "Overige schulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1791
+#: model:account.account.template,name:l10n_be.a4021
+#: model:account.account.template,name:l10n_be.a4031
+msgid "Autres entreprises avec lesquelles il existe un lien de participation"
+msgstr "Overige bedrijven waarin een participatie is"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1792
+#: model:account.account.template,name:l10n_be.a4292
+msgid "Administrateurs, gérants, associés"
+msgstr "Bestuurders, zaakvoerders, partners"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1794
+msgid "Rentes viagères capitalisées"
+msgstr "Geactiveerde lijfrenten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1798
+msgid ""
+"Dettes envers les coparticipants des associations momentanées et en "
+"participation"
+msgstr "Schulden aan deelnemers van tijdelijke verenigingen en participaties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a1799
+#: model:account.account.template,name:l10n_be.a489
+msgid "Autres dettes diverses"
+msgstr "Overige diverse schulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a18
+msgid "COMPTES DE LIAISON DES ETABLISSEMENTS ET SUCCURSALES"
+msgstr "VESTIGINGEN EN FILIALEN"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2
+msgid ""
+"CLASSE 2. FRAIS D'ETABLISSEMENT. ACTIFS IMMOBILISES ET CREANCES A PLUS D'UN "
+"AN"
+msgstr ""
+"KLASSE 2. OPRICHTINGSKOSTEN, VASTE ACTIVA EN VORDERINGEN OP MEER DAN ÉÉN JAAR"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a20
+msgid "FRAIS D'ETABLISSEMENT"
+msgstr "Oprichtingskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a200
+#: model:account.account.template,name:l10n_be.a2000
+msgid "Frais de constitution et d'augmentation de capital"
+msgstr "Oprichtingskosten en kapitaalverhoging"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2009
+msgid "Amortissements sur frais de constitution et d'augmentation de capital"
+msgstr "Afschrijvingen op oprichtingskosten en kapitaalverhoging"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a201
+msgid "Frais d'émission d'emprunts et primes de remboursement"
+msgstr "Kosten bij uitgifte van leningen en terugbetalingspremies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2010
+msgid "Agios sur emprunts et frais d'émission d'emprunts"
+msgstr "Premies op leningen en kosten op uitgifte van leningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2019
+msgid "Amortissements sur agios sur emprunts et frais d'émission d'emprunts"
+msgstr ""
+"Afschrijving van premies op leningen en kosten op uitgifte van leningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a202
+#: model:account.account.template,name:l10n_be.a2020
+msgid "Autres frais d'établissement"
+msgstr "Overige oprichtingskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2029
+msgid "Amortissements sur autres frais d'établissement"
+msgstr "Afschrijvingen op overige oprichtingskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a203
+#: model:account.account.template,name:l10n_be.a2030
+msgid "Intérêts intercalaires"
+msgstr "Bouwrente"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2039
+msgid "Amortissements sur intérêts intercalaires"
+msgstr "Afschrijving van bouwrente"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a204
+msgid "Frais de restructuration"
+msgstr "Herstructureringskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2040
+msgid "Coût des frais de restructuration"
+msgstr "Kosten op herstructureringskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2049
+msgid "Amortissements sur frais de restructuration"
+msgstr "Afschrijving op herstructureringskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a21
+msgid "IMMOBILISATIONS INCORPORELLES"
+msgstr "Immateriële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a210
+msgid "Frais de recherche et de développement"
+msgstr "Kosten van onderzoek en ontwikkeling"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2100
+msgid "Frais de recherche et de mise au point"
+msgstr "Kosten van onderzoek en ontwikkeling"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2108
+msgid "Plus-values actées sur frais de recherche et de mise au point"
+msgstr "Gerealiseerde meerwaarden op onderzoek en ontwikkeling"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2109
+msgid "Amortissements sur frais de recherche et de mise au point"
+msgstr "Afschrijving van kosten van onderzoek en ontwikkeling"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a211
+msgid ""
+"Concessions, brevets, licences, savoir-faire, marques et droits similaires"
+msgstr ""
+"Concessies, octrooien, licenties, know-how, merken en soortgelijke rechten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2110
+msgid "Concessions, brevets, licences, savoir-faire, marques, etc..."
+msgstr "Consessies, octrooien, licenties, ..."
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2118
+msgid "Plus-values actées sur concessions, brevets, etc..."
+msgstr "Gerealiseerde meerwaarden op consessies, octrooien, licenties, ..."
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2119
+msgid "Amortissements sur concessions, brevets, etc..."
+msgstr "Afschrijvingen op consessies, octrooien, licenties, ..."
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a212
+msgid "Goodwill"
+msgstr "Goodwill"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2120
+msgid "Coût d'acquisition"
+msgstr "Overnameprijs"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2128
+#: model:account.account.template,name:l10n_be.a2218
+#: model:account.account.template,name:l10n_be.a2228
+#: model:account.account.template,name:l10n_be.a2238
+#: model:account.account.template,name:l10n_be.a238
+#: model:account.account.template,name:l10n_be.a2408
+#: model:account.account.template,name:l10n_be.a2808
+#: model:account.account.template,name:l10n_be.a2828
+#: model:account.account.template,name:l10n_be.a2848
+msgid "Plus-values actées"
+msgstr "Gerealiseerde meerwaarden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2129
+msgid "Amortissements sur goodwill"
+msgstr "Afschrijvingen op goodwill"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a213
+#: model:account.account.template,name:l10n_be.a2906
+#: model:account.account.template,name:l10n_be.a360
+#: model:account.account.template,name:l10n_be.a406
+msgid "Acomptes versés"
+msgstr "Vooruitbetalingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22
+msgid "TERRAINS ET CONSTRUCTIONS"
+msgstr "Terreinen en gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a220
+#: model:account.account.template,name:l10n_be.a2200
+#: model:account.account.template,name:l10n_be.a2500
+msgid "Terrains"
+msgstr "Terreinen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2201
+msgid "Frais d'acquisition sur terrains"
+msgstr "Verwervingskosten van terreinen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2208
+msgid "Plus-values actées sur terrains"
+msgstr "Gerealiseerde meerwaarden op terreinen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2209
+msgid "Amortissements et réductions de valeur"
+msgstr "Afschrijvingen & waardeverminderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22090
+msgid "Amortissements sur frais d'acquisition"
+msgstr "Afschrijvingen op verwervingskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22091
+msgid "Réductions de valeur sur terrains"
+msgstr "Waardevermindering van terreinen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a221
+#: model:account.account.template,name:l10n_be.a2501
+#: model:account.account.template,name:l10n_be.a2700
+msgid "Constructions"
+msgstr "Gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2210
+#: model:account.account.template,name:l10n_be.a22200
+msgid "Bâtiments industriels"
+msgstr "Industriële gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2211
+#: model:account.account.template,name:l10n_be.a22201
+msgid "Bâtiments administratifs et commerciaux"
+msgstr "Administratieve en commerciële gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2212
+#: model:account.account.template,name:l10n_be.a22202
+msgid "Autres bâtiments d'exploitation"
+msgstr "Andere uitbatingsgebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2213
+#: model:account.account.template,name:l10n_be.a22203
+msgid "Voies de transport et ouvrages d'art"
+msgstr "Transportwegen en kunstwerken"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2215
+msgid "Constructions sur sol d'autrui"
+msgstr "Gebouwen in buitenland"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2216
+msgid "Frais d'acquisition sur constructions"
+msgstr "Verwervingskosten van gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22180
+#: model:account.account.template,name:l10n_be.a22190
+#: model:account.account.template,name:l10n_be.a22280
+#: model:account.account.template,name:l10n_be.a22290
+msgid "Sur bâtiments industriels"
+msgstr "Op industriële gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22181
+#: model:account.account.template,name:l10n_be.a22191
+#: model:account.account.template,name:l10n_be.a22281
+#: model:account.account.template,name:l10n_be.a22291
+msgid "Sur bâtiments administratifs et commerciaux"
+msgstr "Op administratieve en commerciële gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22182
+#: model:account.account.template,name:l10n_be.a22192
+#: model:account.account.template,name:l10n_be.a22282
+#: model:account.account.template,name:l10n_be.a22292
+msgid "Sur autres bâtiments d'exploitation"
+msgstr "Op andere uitbatingsgebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22184
+#: model:account.account.template,name:l10n_be.a22194
+#: model:account.account.template,name:l10n_be.a22283
+#: model:account.account.template,name:l10n_be.a22293
+msgid "Sur voies de transport et ouvrages d'art"
+msgstr "Op transportwegen en kunstwerken"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2219
+msgid "Amortissements sur constructions"
+msgstr "Afschrijvingen op gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22195
+msgid "Sur constructions sur sol d'autrui"
+msgstr "Op gebouwen in het buitenland"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22196
+msgid "Sur frais d'acquisition sur constructions"
+msgstr "Op verwervingskosten van gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a222
+msgid "Terrains bâtis"
+msgstr "Bebouwde terreinen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2220
+#: model:account.account.template,name:l10n_be.a2230
+#: model:account.account.template,name:l10n_be.a2800
+#: model:account.account.template,name:l10n_be.a2820
+#: model:account.account.template,name:l10n_be.a2840
+#: model:account.account.template,name:l10n_be.a300
+#: model:account.account.template,name:l10n_be.a310
+#: model:account.account.template,name:l10n_be.a320
+#: model:account.account.template,name:l10n_be.a330
+#: model:account.account.template,name:l10n_be.a340
+#: model:account.account.template,name:l10n_be.a350
+#: model:account.account.template,name:l10n_be.a370
+#: model:account.account.template,name:l10n_be.a510
+#: model:account.account.template,name:l10n_be.a520
+msgid "Valeur d'acquisition"
+msgstr "Aanschaffingswaarde"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22204
+msgid "Frais d'acquisition des terrains à bâtir"
+msgstr "Verwervingskosten van bouwgronden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2229
+msgid "Amortissements sur terrains bâtis"
+msgstr "Afschrijvingen op bebouwde terreinen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a22294
+msgid "Sur frais d'acquisition des terrains bâtis"
+msgstr "Op verwervingskosten van bebouwde terreinen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a223
+msgid "Autres droits réels sur des immeubles"
+msgstr "Overige zakelijke rechten op onroerende goederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2239
+#: model:account.account.template,name:l10n_be.a239
+#: model:account.account.template,name:l10n_be.a2409
+msgid "Amortissements"
+msgstr "Afschijvingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a23
+msgid "INSTALLATIONS, MACHINES ET OUTILLAGE"
+msgstr "Installaties, machines en uitrusting"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a230
+#: model:account.account.template,name:l10n_be.a2510
+msgid "Installations"
+msgstr "Installaties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2300
+msgid "Installation d'eau"
+msgstr "Waterinstallatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2301
+msgid "Installation d'électricité"
+msgstr "Electriciteitsinstallatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2302
+msgid "Installation de vapeur"
+msgstr "Stoominstallatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2303
+msgid "Installation de gaz"
+msgstr "Gasinstallatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2304
+msgid "Installation de chauffage"
+msgstr "Verwarmingsinstallatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2305
+msgid "Installation de conditionnement d'air"
+msgstr "Luchtverversingsinstallatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2306
+msgid "Installation de chargement"
+msgstr "Oplaadinstallatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a231
+#: model:account.account.template,name:l10n_be.a2511
+msgid "Machines"
+msgstr "Machines"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2310
+#: model:account.account.template,name:l10n_be.a2370
+msgid "Division A"
+msgstr "Divisie A"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2311
+#: model:account.account.template,name:l10n_be.a2371
+msgid "Division B"
+msgstr "Divisie B"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a237
+#: model:account.account.template,name:l10n_be.a2512
+msgid "Outillage"
+msgstr "Uitrusting"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2380
+#: model:account.account.template,name:l10n_be.a2390
+msgid "Sur installations"
+msgstr "Op installaties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2381
+#: model:account.account.template,name:l10n_be.a2391
+msgid "Sur machines"
+msgstr "Op machines"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2382
+#: model:account.account.template,name:l10n_be.a2392
+msgid "Sur outillage"
+msgstr "Op uitrusting"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24
+msgid "MOBILIER ET MATERIEL ROULANT"
+msgstr "Meubilair en rollend materieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a240
+#: model:account.account.template,name:l10n_be.a2400
+#: model:account.account.template,name:l10n_be.a2520
+msgid "Mobilier"
+msgstr "Meubilair"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24000
+msgid "Mobilier des bâtiments industriels"
+msgstr "Van industriële gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24001
+msgid "Mobilier des bâtiments administratifs et commerciaux"
+msgstr "Van administratieve en commerciële gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24002
+msgid "Mobilier des autres bâtiments d'exploitation"
+msgstr "Van andere uitbatingsgebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24003
+msgid "Mobilier oeuvres sociales"
+msgstr "Van sociale werkplaatsen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2401
+msgid "Matériel de bureau et de service social"
+msgstr "Kantoormateriaal en materiaal van sociale dienst"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24010
+msgid "Des bâtiments industriels"
+msgstr "Van industriële gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24011
+msgid "Des bâtiments administratifs et commerciaux"
+msgstr ""
+"Van administratieve en commerciële gebouwenDes bâtiments administratifs et "
+"commerciaux"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24012
+msgid "Des autres bâtiments d'exploitation"
+msgstr "Van andere uitbatingsgebouwenDes autres bâtiments d'exploitation"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24013
+msgid "Des oeuvres sociales"
+msgstr "Van sociale werkplaatsenDes oeuvres sociales"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24080
+msgid "Plus-values actées sur mobilier"
+msgstr "Gerealiseerde meerwaarden op meubilair"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24081
+msgid "Plus-values actées sur matériel de bureau et service social"
+msgstr ""
+"Gerealiseerde meerwaarden op kantoormateriaal en materiaal van sociale dienst"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24090
+msgid "Amortissements sur mobilier"
+msgstr "Afschrijvingen op meubilair"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24091
+msgid "Amortissements sur matériel de bureau et service social"
+msgstr "Afschrijvingen op kantoormateriaal en materiaal van sociale dienst"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a241
+#: model:account.account.template,name:l10n_be.a2521
+msgid "Matériel roulant"
+msgstr "Rollend materieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2410
+msgid "Matériel automobile"
+msgstr "Wagens"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24100
+msgid "Voitures"
+msgstr "Wagens"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24105
+msgid "Camions"
+msgstr "Vrachtwagens"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2411
+msgid "Matériel ferroviaire"
+msgstr "Spoorwegmaterieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2412
+msgid "Matériel fluvial"
+msgstr "Binnenscheepvaartmaterieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2413
+msgid "Matériel naval"
+msgstr "Scheepvaartmaterieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2414
+msgid "Matériel aérien"
+msgstr "Luchtvaartmaterieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2418
+msgid "Plus-values sur matériel roulant"
+msgstr "Gerealiseerde meerwaarden op rollend materieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24180
+msgid "Plus-values sur matériel automobile"
+msgstr "Gerealiseerde meerwaarden op wagenuitrusting"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24181
+#: model:account.account.template,name:l10n_be.a24191
+msgid "Idem sur matériel ferroviaire"
+msgstr "Idem op spoorwegmaterieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24182
+#: model:account.account.template,name:l10n_be.a24192
+msgid "Idem sur matériel fluvial"
+msgstr "Idem op binnenscheepvaartmaterieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24183
+#: model:account.account.template,name:l10n_be.a24193
+msgid "Idem sur matériel naval"
+msgstr "Idem op scheepvaartmaterieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24184
+#: model:account.account.template,name:l10n_be.a24194
+msgid "Idem sur matériel aérien"
+msgstr "Idem op luchtvaartmaterieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2419
+msgid "Amortissements sur matériel roulant"
+msgstr "Afschrijvingen op rollend materieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a24190
+msgid "Amortissements sur matériel automobile"
+msgstr "Afschrijvingen op wagenuitrusting"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a25
+msgid "IMMOBILISATION DETENUES EN LOCATION-FINANCEMENT ET DROITS SIMILAIRES"
+msgstr "Vaste activa in leasing of op grond van een soortgelijk recht"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a250
+msgid "Terrains et constructions"
+msgstr "Terreinen en gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2508
+msgid ""
+"Plus-values sur emphytéose, leasing et droits similaires : terrains et "
+"constructions"
+msgstr ""
+"Winsten op erfpacht, leasing en soortgelijke rechten: terreinen en gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2509
+msgid ""
+"Amortissements et réductions de valeur sur terrains et constructions en "
+"leasing"
+msgstr ""
+"Afschrijvingen en waardeverminderingen op terreinen en gehuurde gebouwen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a251
+#: model:account.account.template,name:l10n_be.a2701
+msgid "Installations, machines et outillage"
+msgstr "Installaties, machines en uitrusting"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2518
+msgid ""
+"Plus-values actées sur installations, machines et outillage pris en leasing"
+msgstr ""
+"Gerealiseerde meerwaarden op geleasde installaties, machines en gereeddschap"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2519
+msgid "Amortissements sur installations, machines et outillage pris en leasing"
+msgstr "Afschrijvingen op geleasde installaties, machines en gereeddschap"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a252
+#: model:account.account.template,name:l10n_be.a2702
+msgid "Mobilier et matériel roulant"
+msgstr "Meubilair en rollend materieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2528
+msgid "Plus-values actées sur mobilier et matériel roulant en leasing"
+msgstr "Gerealiseerde meerwaarden op geleasd rollend materieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2529
+msgid "Amortissements sur mobilier et matériel roulant en leasing"
+msgstr "Afschrijvingen op geleasd rollend materieel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a26
+msgid "AUTRES IMMOBILISATIONS CORPORELLES"
+msgstr "Andere materiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a260
+msgid "Frais d'aménagements de locaux pris en location"
+msgstr "Inrichtingskosten gehuurde lokalen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a261
+msgid "Maison d'habitation"
+msgstr "Woonhuis"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a262
+msgid "Réserve immobilière"
+msgstr "Vastgoed reserve"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a263
+msgid "Matériel d'emballage"
+msgstr "Verpakkingsmateriaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a264
+#: model:account.account.template,name:l10n_be.a31061
+msgid "Emballages récupérables"
+msgstr "Herbruikbare verpakkingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a268
+msgid "Plus-values actées sur autres immobilisations corporelles"
+msgstr "Gerealiseerde meerwaarden op overige vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a269
+msgid "Amortissements sur autres immobilisations corporelles"
+msgstr "Afschrijvingen overige vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2690
+msgid "Amortissements sur frais d'aménagement des locaux pris en location"
+msgstr "Op inrichtingskosten gehuurde lokalen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2691
+msgid "Amortissements sur maison d'habitation"
+msgstr "Op woonhuis"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2692
+msgid "Amortissements sur réserve immobilière"
+msgstr "Op vastgoed reserve"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2693
+msgid "Amortissements sur matériel d'emballage"
+msgstr "Op verpakkingsmateriaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2694
+msgid "Amortissements sur emballages récupérables"
+msgstr "Op Herbruikbare verpakkingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a27
+msgid "IMMOBILISATIONS CORPORELLES EN COURS ET ACOMPTES VERSES"
+msgstr "Vaste activa in aanbouw en vooruitbetalingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a270
+msgid "Immobilisations en cours"
+msgstr "Gebouwen in aanbouw"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2703
+msgid "Autres immobilisations corporelles"
+msgstr "Overige vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a271
+msgid "Avances et acomptes versés sur immobilisations en cours"
+msgstr "Voorschotten en vooruitbetalingen bestemd voor gebouwen in aanbouw"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a28
+msgid "IMMOBILISATIONS FINANCIERES"
+msgstr "Financiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a280
+msgid "Participations dans des entreprises liées"
+msgstr "Deelnemingen in verbonden ondernemingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2801
+#: model:account.account.template,name:l10n_be.a2821
+#: model:account.account.template,name:l10n_be.a2841
+#: model:account.account.template,name:l10n_be.a511
+msgid "Montants non appelés"
+msgstr "Nog te storten bedragen (-) "
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2809
+#: model:account.account.template,name:l10n_be.a2819
+#: model:account.account.template,name:l10n_be.a2829
+#: model:account.account.template,name:l10n_be.a2839
+#: model:account.account.template,name:l10n_be.a359
+msgid "Réductions de valeurs actées"
+msgstr "Geboekte waardeverminderingen (-) "
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a281
+msgid "Créances sur des entreprises liées"
+msgstr "Vorderingen op verbonden ondernemingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2810
+#: model:account.account.template,name:l10n_be.a2830
+#: model:account.account.template,name:l10n_be.a2850
+#: model:account.account.template,name:l10n_be.a2910
+msgid "Créances en compte"
+msgstr "Vorderingen op rekening"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2811
+#: model:account.account.template,name:l10n_be.a2831
+#: model:account.account.template,name:l10n_be.a2851
+#: model:account.account.template,name:l10n_be.a2901
+#: model:account.account.template,name:l10n_be.a2911
+#: model:account.account.template,name:l10n_be.a401
+#: model:account.account.template,name:l10n_be.a4010
+msgid "Effets à recevoir"
+msgstr "Te innen wissels"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2812
+msgid "Titres à revenu fixes"
+msgstr "Vastrentende effecten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2817
+#: model:account.account.template,name:l10n_be.a2837
+#: model:account.account.template,name:l10n_be.a2857
+#: model:account.account.template,name:l10n_be.a2907
+#: model:account.account.template,name:l10n_be.a2917
+#: model:account.account.template,name:l10n_be.a407
+#: model:account.account.template,name:l10n_be.a417
+msgid "Créances douteuses"
+msgstr "Dubieuze debiteuren"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a282
+msgid ""
+"Participations dans des entreprises avec lesquelles il existe un lien de "
+"participation"
+msgstr ""
+"Deelnemingen in ondernemingen waarmee een deelnemingsverhouding bestaat"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a283
+msgid ""
+"Créances sur des entreprises avec lesquelles il existe un lien de "
+"participation"
+msgstr "Vorderingen op ondernemingen waarmee een deelnemingsverhouding bestaat"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2832
+#: model:account.account.template,name:l10n_be.a2852
+msgid "Titres à revenu fixe"
+msgstr "Vastrentende effecten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a284
+msgid "Autres actions et parts"
+msgstr "Andere aandelen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2849
+#: model:account.account.template,name:l10n_be.a2859
+#: model:account.account.template,name:l10n_be.a2909
+#: model:account.account.template,name:l10n_be.a2919
+#: model:account.account.template,name:l10n_be.a309
+#: model:account.account.template,name:l10n_be.a319
+#: model:account.account.template,name:l10n_be.a329
+#: model:account.account.template,name:l10n_be.a339
+#: model:account.account.template,name:l10n_be.a349
+#: model:account.account.template,name:l10n_be.a369
+#: model:account.account.template,name:l10n_be.a379
+#: model:account.account.template,name:l10n_be.a409
+#: model:account.account.template,name:l10n_be.a419
+#: model:account.account.template,name:l10n_be.a519
+#: model:account.account.template,name:l10n_be.a529
+#: model:account.account.template,name:l10n_be.a539
+msgid "Réductions de valeur actées"
+msgstr "Geboekte waardeverminderingen (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a285
+#: model:account.account.template,name:l10n_be.a291
+#: model:account.account.template,name:l10n_be.a41671
+msgid "Autres créances"
+msgstr "Overige vorderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a288
+#: model:account.account.template,name:l10n_be.a418
+msgid "Cautionnements versés en numéraires"
+msgstr "Borgtochten betaald in contanten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2880
+msgid "Téléphone, télefax, télex"
+msgstr "Telefoon, fax, telex"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2881
+#: model:account.account.template,name:l10n_be.a61201
+msgid "Gaz"
+msgstr "Gas"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2882
+#: model:account.account.template,name:l10n_be.a61200
+msgid "Eau"
+msgstr "Water"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2883
+#: model:account.account.template,name:l10n_be.a61202
+msgid "Electricité"
+msgstr "Elektriciteit"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2887
+msgid "Autres cautionnements versés en numéraires"
+msgstr "Andere borgtochten betaald in contanten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29
+msgid "CREANCES A PLUS D'UN AN"
+msgstr "Vorderingen op meer dan één jaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a290
+msgid "Créances commerciales"
+msgstr "Handelsvorderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2900
+#: model:account.account.template,name:l10n_be.a400
+#: model:account.account.template,name:l10n_be.a_recv
+msgid "Clients"
+msgstr "Klanten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29000
+msgid "Créances en compte sur entreprises liées"
+msgstr "Vorderingen voor rekening van verbonden ondernemingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29001
+#: model:account.account.template,name:l10n_be.a29011
+#: model:account.account.template,name:l10n_be.a29111
+msgid "Sur entreprises avec lesquelles il existe un lien de participation"
+msgstr "Op bedrijven waarin een deelneming bestaat"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29002
+#: model:account.account.template,name:l10n_be.a29012
+msgid "Sur clients Belgique"
+msgstr "Op Belgische klanten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29003
+#: model:account.account.template,name:l10n_be.a29013
+msgid "Sur clients C.E.E."
+msgstr "Op klanten binnen de EEG"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29004
+#: model:account.account.template,name:l10n_be.a29014
+msgid "Sur clients exportation hors C.E.E."
+msgstr "Op exportklanten buiten de EEG"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29005
+msgid "Créances sur les coparticipants"
+msgstr "Op co-participanten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29010
+#: model:account.account.template,name:l10n_be.a29110
+msgid "Sur entreprises liées"
+msgstr "Op verbonden ondernemingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2905
+msgid "Retenues sur garanties"
+msgstr "Inhoudingen op garanties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29100
+msgid "Créances entreprises liées"
+msgstr "Lening aan verbonden ondernemingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29101
+msgid "Créances entreprises avec lesquelles il existe un lien de participation"
+msgstr "Op bedrijven waarin een deelneming bestaat"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29102
+msgid "Créances autres débiteurs"
+msgstr "Lening aan andere debiteuren"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a29112
+msgid "Sur autres débiteurs"
+msgstr "Op andere debiteuren"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a2912
+msgid "Créances résultant de la cession d'immobilisations données en leasing"
+msgstr "Vorderingen als gevolg van de verkoop van geleased vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3
+msgid "CLASSE 3. STOCK ET COMMANDES EN COURS D'EXECUTION"
+msgstr "KLASSE 3 - VOORRADEN EN BESTELLINGEN IN UITVOERING"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a30
+msgid "APPROVISIONNEMENTS - MATIERES PREMIERES"
+msgstr "Grondstoffen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a31
+msgid "APPROVISIONNEMENTS ET FOURNITURES"
+msgstr "Hulpstoffen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3100
+msgid "Matières d'approvisionnement"
+msgstr "Aan te leveren materiaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3101
+msgid "Energie, charbon, coke, Mazout, essence, propane"
+msgstr "Energie, steenkool, cokes, stookolie, benzine, propaan"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3102
+msgid "Produits d'entretien"
+msgstr "Onderhoudsproducten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3103
+msgid "Fournitures diverses et petit outillage"
+msgstr "Diverse benodigdheden en klein gereedschap"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3104
+#: model:account.account.template,name:l10n_be.a6123
+msgid "Imprimés et fournitures de bureau"
+msgstr "Printers en kantoorbenodigdheden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3105
+msgid "Fournitures de services sociaux"
+msgstr "Sociale diensten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3106
+msgid "Emballages commerciaux"
+msgstr "Commerciele verpakking"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a31060
+msgid "Emballages perdus"
+msgstr "Verloren verpakking"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a32
+msgid "EN COURS DE FABRICATION"
+msgstr "Goederen in bewerking"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3200
+msgid "Produits semi-ouvrés"
+msgstr "Halffabrikaten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3201
+msgid "Produits en cours de fabrication"
+msgstr "Goederen in productie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3202
+msgid "Travaux en cours"
+msgstr "Werken in uitvoering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3205
+msgid "Déchets"
+msgstr "Afval"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3206
+msgid "Rebuts"
+msgstr "Restmateriaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3209
+msgid "Travaux en association momentanée"
+msgstr "Werken in joint-venture"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a33
+msgid "PRODUITS FINIS"
+msgstr "Gereed product"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3300
+msgid "Produits finis"
+msgstr "Gereed product"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a34
+msgid "MARCHANDISES"
+msgstr "Handelsgoederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3400
+msgid "Groupe A"
+msgstr "Groep A"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3401
+msgid "Groupe B"
+msgstr "Groep B"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a35
+msgid "IMMEUBLES DESTINES A LA VENTE"
+msgstr "Onroerende goederen bestemd voor verkoop"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3500
+#: model:account.account.template,name:l10n_be.a3510
+msgid "Immeuble A"
+msgstr "Onroerend goed A"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a3501
+#: model:account.account.template,name:l10n_be.a3511
+msgid "Immeuble B"
+msgstr "Onroerend goed B"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a351
+msgid "Immeubles construits en vue de leur revente"
+msgstr "Vastgoed gebouwd om te verkopen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a36
+msgid "ACOMPTES VERSES SUR ACHATS POUR STOCKS"
+msgstr "Vooruitbetalingen op voorraadinkopen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a37
+msgid "COMMANDES EN COURS D'EXECUTION"
+msgstr "Bestellingen in uitvoering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a371
+msgid "Bénéfice pris en compte"
+msgstr "Toegerekende winst"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4
+msgid "CLASSE 4. CREANCES ET DETTES A UN AN AU PLUS"
+msgstr "KLASSE 4 - VORDERINGEN EN SCHULDEN OP TEN HOOGSTE EEN JAAR"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a40
+msgid "CREANCES COMMERCIALES"
+msgstr "Handelsvorderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4007
+msgid ""
+"Rabais, remises, ristournes à accorder et autres notes de crédit à établir"
+msgstr "Kortingen, rabatten en andere op te maken creditnota's"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4008
+msgid "Créances résultant de livraisons de biens"
+msgstr "Vorderingen op geleverde goederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4013
+msgid "Effets à l'encaissement"
+msgstr "Wissels aan toonder"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4015
+msgid "Effets à l'escompte"
+msgstr "Wissels op rekening"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a402
+msgid ""
+"Clients, créances courantes, entreprises apparentées, administrateurs et "
+"gérants"
+msgstr ""
+"Klanten, vorderingen, gerelateerde bedrijven, bestuurders en zaakvoerders"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4022
+msgid "Administrateurs et gérants d'entreprise"
+msgstr "Bestuurders en zaakvoerders van de onderneming"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a403
+msgid ""
+"Effets à recevoir sur entreprises apparentées et administrateurs et gérants"
+msgstr ""
+"Te ontvangen wissels van gerelateerde bedrijven, bestuurders en zaakvoerders"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4032
+msgid "Administrateurs et gérants de l'entreprise"
+msgstr "Bestuurders en zaakvoerders"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a404
+#: model:account.account.template,name:l10n_be.a414
+msgid "Produits à recevoir"
+msgstr "Te innen opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a405
+msgid "Clients : retenues sur garanties"
+msgstr "Klanten : inhouding op garanties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a408
+msgid "Compensation clients"
+msgstr "Klanten compensatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a41
+msgid "AUTRES CREANCES"
+msgstr "Overige vorderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a410
+msgid "Capital appelé, non versé"
+msgstr "Opgevraagd, niet-gestort kapitaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4100
+msgid "Appels de fonds"
+msgstr "Opvraging fondsen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4101
+msgid "Actionnaires défaillants"
+msgstr "Falende aandeelhouders"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a411
+msgid "T.V.A. à récupérer"
+msgstr "Terug te vorderen BTW"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a411059
+msgid "T.V.A Déductible"
+msgstr "Aftrekbare BTW"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4112
+#: model:account.account.template,name:l10n_be.a4512
+msgid "Compte courant administration T.V.A."
+msgstr "Rekening Courant BTW-Administratie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4118
+#: model:account.account.template,name:l10n_be.a4518
+msgid "Taxe d'égalisation due"
+msgstr "Verschuldigde egalisatiebelasting"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a412
+msgid "Impôts et versements fiscaux à récupérer"
+msgstr "Terug te vorderen belastingen en voorheffingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4120
+msgid "à 4124 Impôts belges sur le résultat"
+msgstr "tot 4124 Belgische winstbelastingen "
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4125
+msgid "à 4127 Autres impôts belges"
+msgstr "tot 4127 Andere Belgische belastingen "
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4128
+msgid "Impôts étrangers"
+msgstr "Buitenlandse belastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a416
+msgid "Créances diverses"
+msgstr "Diverse vorderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4160
+msgid "Associés"
+msgstr "Vennoten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4161
+msgid "Avances et prêts au personnel"
+msgstr "Voorschotten en leningen aan het personeel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4162
+msgid "Compte courant des associés en S.P.R.L."
+msgstr "Rekening courant vennoten in B.V.B.A"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4163
+msgid "Compte courant des administrateurs et gérants"
+msgstr "Rekening courant bestuurders en zaakvoerders"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4164
+msgid "Créances sur sociétés apparentées"
+msgstr "Vorderingen op gerelateerde bedrijven"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4166
+msgid "Emballages et matériel à rendre"
+msgstr "Terug te geven materiaal en verpakkingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4167
+msgid "Etat et établissements publics"
+msgstr "Overheid en openbare instellingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a41670
+msgid "Subsides à recevoir"
+msgstr "Te ontvangen subsidies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4168
+msgid "Rabais, ristournes, remises à obtenir et autres avoirs non encore reçus"
+msgstr "Kortingen, rabatten en andere nog te ontvangen tegoeden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a42
+msgid "DETTES A PLUS D'UN AN ECHEANT DANS L'ANNEE"
+msgstr "Schulden op meer dan één jaar die binnen het jaar vervallen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a422
+msgid "Dettes de location-financement et assimilées"
+msgstr "Leasingschulden en soortgelijke"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4220
+msgid "Financement de biens immobiliers"
+msgstr "Financiering vastgoed"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4221
+msgid "Financement de biens mobiliers"
+msgstr "Financiering roerend goed"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4250
+#: model:account.account.template,name:l10n_be.a440
+msgid "Fournisseurs"
+msgstr "Leveranciers"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4299
+msgid "Autres dettes"
+msgstr "Overige schulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a43
+msgid "DETTES FINANCIERES"
+msgstr "Financiële schulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a430
+msgid "Etablissements de crédit. Emprunts en compte à terme fixe"
+msgstr "Kredietinstellingen - Leningen op rekeningen met vaste termijn"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a431
+msgid "Etablissements de crédit. Promesses"
+msgstr "Kredietinstellingen - Promessen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a432
+msgid "Etablissements de crédit. Crédits d'acceptation"
+msgstr "Kredietinstellingen - Acceptkredieten "
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a433
+msgid "Etablissements de crédit. Dettes en compte courant"
+msgstr "Kredietinstellingen - Schulden in rekening courant"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a44
+msgid "DETTES COMMERCIALES"
+msgstr "Handelsschulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a44011
+#: model:account.account.template,name:l10n_be.a44111
+msgid "Fournisseurs CEE"
+msgstr "Leveranciers EEG"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4402
+msgid "Dettes envers les coparticipants"
+msgstr "Schulden aan mede participanten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4403
+msgid "Fournisseurs - retenues de garanties"
+msgstr "Levernaciers - inhoudingen op garanties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a444
+msgid "Factures à recevoir"
+msgstr "Te ontvangen facturen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a446
+msgid "Acomptes reçus"
+msgstr "Ontvangen voorschotten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a448
+msgid "Compensations fournisseurs"
+msgstr "Compensaties leveranciers"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a45
+msgid "DETTES FISCALES, SALARIALES ET SOCIALES"
+msgstr ""
+"Schulden met betrekking tot belastingen, bezoldigingen en sociale lasten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a450
+msgid "Dettes fiscales estimées"
+msgstr "Geraamd bedrag der belastingschulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4501
+msgid "à 4504 Impôts sur le résultat"
+msgstr "tot 4504 Belgische winstbelastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4505
+msgid "à 4507 Autres impôts en Belgique"
+msgstr "tot 4507 Andere Belgische belastingen en taksen "
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4508
+msgid "Impôts à l'étranger"
+msgstr "Buitenlandse belastingen en taksen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a451
+#: model:account.account.template,name:l10n_be.a451054
+msgid "T.V.A. à payer"
+msgstr "Te betalen BTW"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a451055
+msgid "T.V.A. à payer - Intra-communautaire"
+msgstr "Te betalen BTW - Intracommunautair"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a451056
+msgid "T.V.A. à payer - Cocontractant"
+msgstr "Te betalen BTW - Medecontractant"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a451057
+msgid "T.V.A. à payer - Import"
+msgstr "Te betalen BTW - Import"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a452
+msgid "Impôts et taxes à payer"
+msgstr "Te betalen belastingen en taksen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4520
+msgid "Autres impôts sur le résultat"
+msgstr "Andere Belgische winstbelastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4525
+msgid "Autres impôts et taxes en Belgique"
+msgstr "Andere Belgische belastingen en taksen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a45250
+msgid "Précompte immobilier"
+msgstr "Onroerende voorheffing"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a45251
+msgid "Impôts communaux à payer"
+msgstr "Te betalen gemeentebelasting"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a45252
+msgid "Impôts provinciaux à payer"
+msgstr "Te betalen provinciale belasting"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a45253
+msgid "Autres impôts et taxes à payer"
+msgstr "Andere te betalen belastingen en taksen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4528
+msgid "Impôts et taxes à l'étranger"
+msgstr "Buitenlandse belastingen en taksen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a453
+msgid "Précomptes retenus"
+msgstr "Ingehouden voorheffingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4530
+msgid "Précompte professionnel retenu sur rémunérations"
+msgstr "Bedrijfsvoorheffing ingehouden op bezoldigingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4531
+msgid "Précompte professionnel retenu sur tantièmes"
+msgstr "Bedrijfsvoorheffing ingehouden op tantièmes"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4532
+msgid "Précompte mobilier retenu sur dividendes attribués"
+msgstr "Roerende voorheffing ingehouden op uitgekeerde dividenden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4533
+msgid "Précompte mobilier retenu sur intérêts payés"
+msgstr "Roerende voorheffing ingehouden op betaalde intresten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4538
+msgid "Autres précomptes retenus"
+msgstr "Andere ingehouden voorheffingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a454
+msgid "Office National de la Sécurité Sociale"
+msgstr "Rijksdienst voor Sociale Zekerheid"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4540
+msgid "Arriérés"
+msgstr "Achterstallen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4541
+msgid "1er trimestre"
+msgstr "1e kwartaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4542
+msgid "2ème trimestre"
+msgstr "2e kwartaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4543
+msgid "3ème trimestre"
+msgstr "3e kwartaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4544
+msgid "4ème trimestre"
+msgstr "4e kwartaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a455
+msgid "Rémunérations"
+msgstr "Bezoldigingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4550
+msgid "Administrateurs, gérants et commissaires"
+msgstr "Bestuurders, zaakvoerders en commissarissen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4551
+#: model:account.account.template,name:l10n_be.a4560
+msgid "Direction"
+msgstr "Directiepersoneel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4552
+#: model:account.account.template,name:l10n_be.a4561
+#: model:account.account.template,name:l10n_be.a6202
+msgid "Employés"
+msgstr "Bedienden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4553
+#: model:account.account.template,name:l10n_be.a4562
+#: model:account.account.template,name:l10n_be.a6203
+msgid "Ouvriers"
+msgstr "Arbeiders"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a456
+msgid "Pécules de vacances"
+msgstr "Vakantiegeld"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a459
+msgid "Autres dettes sociales"
+msgstr "Andere sociale schulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4590
+msgid "Provision pour gratifications de fin d'année"
+msgstr "Voorziening voor eindejaarspremie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4591
+msgid "Départs de personnel"
+msgstr "Ontslag personeel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4592
+msgid "Oppositions sur rémunérations"
+msgstr "Loonbeslag"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4593
+msgid "Assurances relatives au personnel"
+msgstr "Personeelsverzekeringen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a45930
+msgid "Assurance loi"
+msgstr "Wetsverzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a45931
+msgid "Assurance salaire garanti "
+msgstr "Verzekering gewaarborgd inkomen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a45932
+msgid "Assurance groupe "
+msgstr "Groepsverzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a45933
+#: model:account.account.template,name:l10n_be.a62302
+msgid "Assurances individuelles"
+msgstr "Individuele verzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4594
+msgid "Caisse d'assurances sociales pour travailleurs indépendants"
+msgstr "Sociale kas voor zelfstandigen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4597
+msgid "Dettes et provisions sociales diverses"
+msgstr "Diverse sociale schulden en provisies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a46
+msgid "ACOMPTES RECUS SUR COMMANDES"
+msgstr "Ontvangen vooruitbetalingen op bestellingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a47
+msgid "DETTES DECOULANT DE L'AFFECTATION DES RESULTATS"
+msgstr "Schulden uit de bestemming van het resultaat"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a470
+msgid "Dividendes et tantièmes d'exercices antérieurs"
+msgstr "Dividenden en tantièmes over vorige boekjaren"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a471
+msgid "Dividendes de l'exercice"
+msgstr "Dividenden over het boekjaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a472
+msgid "Tantièmes de l'exercice"
+msgstr "Tantièmes over het boekjaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a473
+#: model:account.account.template,name:l10n_be.a696
+msgid "Autres allocataires"
+msgstr "Andere rechthebbenden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a48
+msgid "DETTES DIVERSES"
+msgstr "Diverse schulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a480
+msgid "Obligations et coupons échus"
+msgstr "Vervallen obligaties en coupons"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a481
+msgid "Actionnaires - capital à rembourser"
+msgstr "Aandeelhouders : terug te betalen kapitaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a482
+msgid "Participation du personnel à payer"
+msgstr "Personeelsparticipatie te betalen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a483
+msgid "Acomptes reçus d'autres tiers à moins d'un an"
+msgstr "Ontvangen voorschotten van derden minder dan 1 jaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a486
+msgid "Emballages et matériel consignés"
+msgstr "Verpakkingen en materiaal in consignatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a49
+msgid "COMPTES DE REGULARISATION ET COMPTES D'ATTENTE"
+msgstr "Overlopende rekeningen en wachtrekeningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a490
+msgid "Charges à reporter"
+msgstr "Over te dragen kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a491
+msgid "Produits acquis"
+msgstr "Verkregen opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4910
+msgid "Produits d'exploitation"
+msgstr "Bedrijfsopbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a49100
+msgid "Ristournes, rabais à obtenir"
+msgstr "Te ontvangen kortingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a49101
+msgid "Commissions à obtenir"
+msgstr "Te ontvangen commissies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a49102
+msgid "Autres produits d'exploitation"
+msgstr "Andere bedrijfsopbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4911
+msgid "Produits financiers"
+msgstr "Financiële opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a49110
+msgid "Intérêts courus et non échus sur prêts et débits"
+msgstr "Oplopende en onbetaalde rente op leningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a49111
+msgid "Autres produits financiers"
+msgstr "Overige financiële opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a492
+msgid "Charges à imputer"
+msgstr "Toe te rekenen kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a493
+msgid "Produits à reporter"
+msgstr "Over te dragen opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4930
+msgid "Produits d'exploitation à reporter"
+msgstr "Over te dragen bedrijfsopbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4931
+msgid "Produits financiers à reporter"
+msgstr "Over te dragen financiële opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a499
+msgid "Comptes d'attente"
+msgstr "Wachtrekeningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4990
+msgid "Compte d'attente"
+msgstr "Wachtrekening"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4991
+msgid "Compte de répartition périodique des charges"
+msgstr "Staat van periodieke kostenverdeling"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a4999
+msgid "Transferts d'exercice"
+msgstr "Fiscale transfers"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a5
+msgid "CLASSE 5. PLACEMENTS DE TRESORERIE ET DE VALEURS DISPONIBLES"
+msgstr "KLASSE 5 - GELDBELEGGINGEN EN LIQUIDE MIDDELEN"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a50
+msgid "ACTIONS PROPRES"
+msgstr "Eigen aandelen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a51
+msgid "ACTIONS ET PARTS"
+msgstr "Aandelen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a52
+msgid "TITRES A REVENUS FIXES"
+msgstr "Vastrentende effecten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a53
+msgid "DEPOTS A TERME"
+msgstr "Termijndeposito's"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a530
+msgid "De plus d'un an"
+msgstr "Op meer dan één jaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a531
+msgid "De plus d'un mois et à un an au plus"
+msgstr "Op meer dan één maand en op ten hoogste één jaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a532
+msgid "D'un mois au plus"
+msgstr "Op ten hoogste één maand"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a54
+msgid "VALEURS ECHUES A L'ENCAISSEMENT"
+msgstr "Te incasseren vervallen waarden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a540
+msgid "Chèques à encaisser"
+msgstr "Te incasseren cheques"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a541
+msgid "Coupons à encaisser"
+msgstr "Te incasseren coupons"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a55
+msgid "ETABLISSEMENTS DE CREDIT."
+msgstr "Kredietinstellingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a550
+msgid "Comptes ouverts auprès des divers établissements"
+msgstr " Rekeningen geopend bij verschillende instellingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a56
+msgid "OFFICE DES CHEQUES POSTAUX"
+msgstr "Postcheque en girodienst"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a560
+msgid "Compte courant"
+msgstr "Rekening-courant"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a561
+msgid "Chèques émis"
+msgstr "Uitgeschreven cheques (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a57
+msgid "CAISSES"
+msgstr "Kassen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a570
+msgid "Caisses - espèces"
+msgstr "Kassen-contanten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a578
+msgid "Caisses - timbres"
+msgstr "Kassen-zegels"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a58
+msgid "VIREMENTS INTERNES"
+msgstr "Interne overboekingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6
+msgid "CLASSE 6. - CHARGES"
+msgstr "KLASSE 6 - KOSTEN"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a60
+msgid "APPROVISIONNEMENTS ET MARCHANDISES"
+msgstr "Handelsgoederen, grond- en hulpstoffen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a601
+msgid "Achats de fournitures"
+msgstr "Aankopen van hulpstoffen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a602
+msgid "Achats de services, travaux et études"
+msgstr "Aankopen van diensten, werk en studies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a603
+msgid "Sous-traitances générales"
+msgstr "Algemene onderaannemingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a604
+msgid "Achats de marchandises"
+msgstr "Aankopen van handelsgoederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a605
+msgid "Achats d'immeubles destinés à la revente"
+msgstr "Aankopen van onroerende goederen bestemd voor verkoop"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a608
+msgid "Remises, ristournes et rabais obtenus sur achats"
+msgstr "Ontvangen kortingen, ristorno's en rabatten (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a609
+msgid "Variations de stocks"
+msgstr "Voorraadwijzigingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6090
+msgid "De matières premières"
+msgstr "van grondstoffen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6091
+msgid "De fournitures"
+msgstr "van hulpstoffen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6094
+msgid "De marchandises"
+msgstr "van handelsgoederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6095
+msgid "D'immeubles destinés à la vente"
+msgstr "van gekochte onroerende goederen bestemd voor verkoop"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61
+msgid "SERVICES ET BIENS DIVERS"
+msgstr "Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a610
+msgid "Loyers et charges locatives"
+msgstr "Huur en huurlasten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6100
+msgid "Loyers divers"
+msgstr "Diverse huren"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6101
+msgid "Charges locatives"
+msgstr "Huurlasten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a611
+msgid "Entretien et réparation"
+msgstr "Onderhoud en herstellingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a612
+msgid "Fournitures faites à l'entreprise"
+msgstr "Leveringen aan de onderneming"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6120
+msgid "Eau, gaz, électricité, vapeur"
+msgstr "Water, gas, electriciteit, stoom"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61203
+msgid "Vapeur"
+msgstr "Stoom"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6121
+msgid "Téléphone, télégrammes, télex, téléfax, frais postaux"
+msgstr "Telefoon, telegram, telex, telefax, portkosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61210
+msgid "Téléphone"
+msgstr "Telefoon"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61211
+msgid "Télégrammes"
+msgstr "Telegram"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61212
+msgid "Télex et téléfax"
+msgstr "Telex en telefax"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61213
+msgid "Frais postaux"
+msgstr "Portkosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6122
+msgid "Livres, bibliothèque"
+msgstr "Boeken en documentatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a613
+msgid "Rétributions de tiers"
+msgstr "Vergoedingen aan derden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6130
+msgid "Redevances et royalties"
+msgstr "Commissies en auteursrechten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61300
+msgid "Redevances pour brevets, licences, marques, accessoires"
+msgstr "Commissies voor brevetten, licencies, merken en accessoires"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61301
+msgid "Autres redevances"
+msgstr "Andere commissies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6131
+msgid "Assurances non relatives au personnel"
+msgstr "Verzekeringen niet personeelsgerelateerd"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61310
+msgid "Assurance incendie"
+msgstr "Brandverzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61311
+msgid "Assurance vol"
+msgstr "Diefstalverzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61312
+msgid "Assurance autos"
+msgstr "Autoverzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61313
+msgid "Assurance crédit"
+msgstr "Kredietverzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61314
+msgid "Assurances frais généraux"
+msgstr "Kostenverzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6132
+#: model:account.account.template,name:l10n_be.a62322
+msgid "Divers"
+msgstr "Diversen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61320
+msgid "Commissions aux tiers"
+msgstr "Commisie aan derden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61321
+msgid "Honoraires d'avocats, d'experts, etc ..."
+msgstr "Erelonen advocaten, experten, ..."
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61322
+msgid "Cotisations aux groupements professionnels"
+msgstr "Bijdragen aan beroepsverenigingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61323
+msgid "Dons, libéralités, ..."
+msgstr "Giften en schenkingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61324
+msgid "Frais de contentieux"
+msgstr "Juridische kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61325
+msgid "Publications légales"
+msgstr "Wettelijke publicaties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6133
+msgid "Transports et déplacements"
+msgstr "Transport en verplaatsingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61330
+msgid "Transports de personnel"
+msgstr "Personeelsverplaatsingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61331
+msgid "Voyages, déplacements, représentations"
+msgstr "Reizen, verplaatsingen, vertegenwoordigingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6134
+msgid "Personnel intérimaire"
+msgstr "Interim personeel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a614
+msgid "Annonces, publicité, propagande et documentation"
+msgstr "Advertenties, publiciteit, propaganda en documentatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6140
+msgid "Annonces et insertions"
+msgstr "Advertenties en inlassingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6141
+msgid "Catalogues et imprimés"
+msgstr "Catalogi en drukwerken"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6142
+msgid "Echantillons"
+msgstr "Stalen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6143
+msgid "Foires et expositions"
+msgstr "Beurzen en tentoonstellingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6144
+msgid "Primes"
+msgstr "Premies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6145
+msgid "Cadeaux à la clientèle"
+msgstr "Relatiegeschenken"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6146
+msgid "Missions et réceptions"
+msgstr "Onthaalkosten en recepties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6147
+msgid "Documentation"
+msgstr "Documentatie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a615
+msgid "Sous-traitants"
+msgstr "Onderaannemers"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6150
+msgid "Sous-traitants pour activités propres"
+msgstr "Onderaannemers voor eigen activiteiten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6151
+msgid "Sous-traitants d'associations momentanées"
+msgstr "Onderaannemers voor joint-ventures"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6152
+msgid "Quote-part bénéficiaire des coparticipants"
+msgstr "Aandeel in het resultaat van de joint-venture"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61700
+msgid ""
+"Personnel intérimaire et personnes mises à la disposition de l'entreprise"
+msgstr "Uitzendkrachten en personen ter beschikking gesteld van de onderneming"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a61800
+msgid "Rémunérations, primes pour assurances extralégales"
+msgstr ""
+"Bezoldigingen, premies voor buitenwettelijke verzekeringen, ouderdoms- en "
+"overlevingspensioenen van bestuurders, zaakvoerders en werkende vennoten, "
+"die niet worden toegekend uit hoofde van een arbeidsovereenkomst"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a62
+msgid "REMUNERATIONS, CHARGES SOCIALES ET PENSIONS"
+msgstr "Bezoldigingen, sociale lasten en pensioenen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a620
+msgid "Rémunérations et avantages sociaux directs"
+msgstr "Bezoldigingen en rechtstreekse sociale voordelen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6200
+#: model:account.account.template,name:l10n_be.a695
+msgid "Administrateurs ou gérants"
+msgstr "Bestuurders of zaakvoerders"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6201
+msgid "Personnel de direction"
+msgstr "Directiepersoneel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6204
+msgid "Autres membres du personnel"
+msgstr "Andere personeelsleden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a621
+msgid "Cotisations patronales d'assurances sociales"
+msgstr "Werkgeversbijdragen voor sociale verzekeringen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6210
+msgid "Sur salaires"
+msgstr "Op lonen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6211
+msgid "Sur appointements et commissions"
+msgstr "Op uitkeringen en commissies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a622
+msgid "Primes patronales pour assurances extralégales"
+msgstr "Werkgeverspremies voor bovenwettelijke verzekeringen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a623
+msgid "Autres frais de personnel"
+msgstr "Andere personeelskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6230
+msgid "Assurances du personnel"
+msgstr "Peronseelsverzekering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a62300
+msgid "Assurances loi, responsabilité civile, chemin du travail"
+msgstr "Wettelijke verzekeringen, burgerlijke aansprakelijkheid, woon-werk"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a62301
+msgid "Assurance salaire garanti"
+msgstr "Verzekering gewaarborgd inkomen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6231
+msgid "Charges sociales diverses"
+msgstr "Diverse sociale kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a62310
+msgid "Jours fériés payés"
+msgstr "Betaalde feestdagen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a62311
+msgid "Salaire hebdomadaire garanti"
+msgstr "Gegarandeerd weekloon"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a62312
+msgid "Allocations familiales complémentaires"
+msgstr "Extra kinderbijslag"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6232
+msgid "Charges sociales des administrateurs, gérants et commissaires"
+msgstr "Sociale kosten voor bestuurders, zaakvoerders en commissarissen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a62320
+msgid "Allocations familiales complémentaires pour non salariés"
+msgstr "Extra kinderbijslag voor niet-loontrekkenden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a62321
+msgid "Lois sociales pour indépendants"
+msgstr "Sociale wetgevingen voor zelfstandigen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a624
+msgid "Pensions de retraite et de survie"
+msgstr "Ouderdoms- en overlevingspensioenen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6240
+msgid "Administrateurs et gérants"
+msgstr "Bestuurders en zaakvoerders"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6241
+msgid "Personnel"
+msgstr "Personeel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a625
+msgid "Provision pour pécule de vacances"
+msgstr "Voorziening voor vakantiegeld"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6250
+#: model:account.account.template,name:l10n_be.a6310
+#: model:account.account.template,name:l10n_be.a6320
+#: model:account.account.template,name:l10n_be.a6330
+#: model:account.account.template,name:l10n_be.a6340
+#: model:account.account.template,name:l10n_be.a6350
+#: model:account.account.template,name:l10n_be.a6360
+msgid "Dotations"
+msgstr "Waardeverminderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6251
+#: model:account.account.template,name:l10n_be.a6351
+#: model:account.account.template,name:l10n_be.a6361
+#: model:account.account.template,name:l10n_be.a6371
+msgid "Utilisations et reprises"
+msgstr "Toewijzingen en terugnames"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a63
+msgid ""
+"AMORTISSEMENTS, REDUCTIONS DE VALEUR ET PROVISIONS POUR RISQUES ET CHARGES"
+msgstr ""
+"Afschrijvingen, waardeverminderingen en voorzieningen voor risico's en kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a630
+msgid ""
+"Dotations aux amortissements et aux réductions de valeur sur immobilisations"
+msgstr "Afschrijvingen en waardeverminderingen op vaste activa - Toevoeging"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6300
+msgid "Dotations aux amortissements sur frais d'établissement"
+msgstr "Afschrijvingen op oprichtingskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6301
+msgid "Dotations aux amortissements sur immobilisations incorporelles"
+msgstr "Afschrijvingen op immateriële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6302
+msgid "Dotations aux amortissements sur immobilisations corporelles"
+msgstr "Afschrijvingen op materiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6308
+msgid "Dotations aux réductions de valeur sur immobilisations incorporelles"
+msgstr "Waardeverminderingen op immateriële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6309
+msgid "Dotations aux réductions de valeur sur immobilisations corporelles"
+msgstr "Waardeverminderingen op materiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a631
+msgid "Réductions de valeur sur stocks"
+msgstr "Waardeverminderingen op voorraden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6311
+#: model:account.account.template,name:l10n_be.a6321
+#: model:account.account.template,name:l10n_be.a6331
+#: model:account.account.template,name:l10n_be.a6341
+#: model:account.account.template,name:l10n_be.a6511
+msgid "Reprises"
+msgstr "Terugneming (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a632
+msgid "Réductions de valeur sur commandes en cours d'exécution"
+msgstr "Waardeverminderingen op bestellingen in uitvoering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a633
+msgid "Réductions de valeur sur créances commerciales à plus d'un an"
+msgstr "Waardeverminderingen op handelsvorderingen op meer dan één jaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a634
+msgid "Réductions de valeur sur créances commerciales à un an au plus"
+msgstr "Waardeverminderingen op handelsvorderingen op ten hoogste één jaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6370
+#: model:account.account.template,name:l10n_be.a6510
+msgid "Dotations "
+msgstr "Toevoeging"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a64
+msgid "AUTRES CHARGES D'EXPLOITATION"
+msgstr "Andere bedrijfskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a640
+msgid "Charges fiscales d'exploitation"
+msgstr "Bedrijfsbelastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6400
+msgid "Taxes et impôts directs"
+msgstr "Directe belastingen en taksen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a64000
+msgid "Taxes sur autos et camions"
+msgstr "Verkeersbelasting bedrijfswagens"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6401
+msgid "Taxes et impôts indirects"
+msgstr "Indirecte belastingen en taksen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a64010
+msgid "Timbres fiscaux pris en charge par la firme"
+msgstr "Fiscale zegels ten laste van de onderneming"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a64011
+msgid "Droits d'enregistrement"
+msgstr "Registratierechten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a64012
+msgid "T.V.A. non déductible"
+msgstr "Niet aftrekbare BTW"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6402
+msgid "Impôts provinciaux et communaux"
+msgstr "Provinciale en gemeentelijke belastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a64020
+msgid "Taxe sur la force motrice"
+msgstr "Roerende voorheffing"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a64021
+msgid "Taxe sur le personnel occupé"
+msgstr "Taks op tewerkgesteld personeel"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6403
+msgid "Taxes diverses"
+msgstr "Diverse taksen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a641
+msgid "Moins-values sur réalisations courantes d'immobilisations corporelles"
+msgstr "Minderwaarden op de courante realisatie van vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a642
+msgid "Moins-values sur réalisations de créances commerciales"
+msgstr "Minderwaarden op de realisatie van handelsvorderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a643
+msgid "à 648 Charges d'exploitations diverses"
+msgstr "tot 648 Diverse bedrijfskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a649
+msgid "Charges d'exploitation portées à l'actif au titre de restructuration"
+msgstr "Als herstructureringskosten geactiveerde bedrijfskosten (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a65
+msgid "CHARGES FINANCIERES"
+msgstr "Financiële kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a650
+msgid "Charges des dettes"
+msgstr "Kosten van schulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6500
+msgid "Intérêts, commissions et frais afférents aux dettes"
+msgstr "Rente, commissies en kosten verbonden aan schulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6501
+msgid "Amortissements des agios et frais d'émission d'emprunts"
+msgstr "Afschrijving van kosten bij uitgifte van leningen en van disagio"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6502
+msgid "Autres charges de dettes"
+msgstr "Andere kosten van schulden"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6503
+msgid "Intérêts intercalaires portés à l'actif"
+msgstr "Geactiveerde intercalaire interesten (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a651
+msgid "Réductions de valeur sur actifs circulants"
+msgstr "Waardeverminderingen op vlottende activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a652
+msgid "Moins-values sur réalisation d'actifs circulants"
+msgstr "Minderwaarden op de realisatie van vlottende activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a653
+msgid "Charges d'escompte de créances"
+msgstr "Discontokosten op vorderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a654
+#: model:account.account.template,name:l10n_be.a754
+msgid "Différences de change"
+msgstr "Wisselresultaten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a655
+#: model:account.account.template,name:l10n_be.a755
+msgid "Ecarts de conversion des devises"
+msgstr "Resultaten uit de omrekening van vreemde valuta"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a656
+msgid "Frais de banques, de chèques postaux"
+msgstr "Bank en chequekosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a657
+msgid "Commissions sur ouvertures de crédit, cautions, avals"
+msgstr "Commissies bij opening van krediet"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a658
+msgid "Frais de vente des titres"
+msgstr "Verkoop van effecten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a66
+msgid "CHARGES EXCEPTIONNELLES"
+msgstr "Uitzonderlijke kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a660
+msgid "Amortissements et réductions de valeur exceptionnels"
+msgstr "Uitzonderlijke afschrijvingen en waardeverminderingen (toevoeging)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6600
+msgid "Sur frais d'établissement"
+msgstr "op oprichtingskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6601
+#: model:account.account.template,name:l10n_be.a6630
+#: model:account.account.template,name:l10n_be.a7600
+#: model:account.account.template,name:l10n_be.a7630
+msgid "Sur immobilisations incorporelles"
+msgstr "op immateriële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6602
+#: model:account.account.template,name:l10n_be.a6631
+#: model:account.account.template,name:l10n_be.a7601
+#: model:account.account.template,name:l10n_be.a7631
+msgid "Sur immobilisations corporelles"
+msgstr "op materiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a661
+msgid "Réductions de valeur sur immobilisations financières"
+msgstr "Waardeverminderingen op financiële vaste activa (toevoeging)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a662
+msgid "Provisions pour risques et charges exceptionnels"
+msgstr "Voorzieningen voor uitzonderlijke risico's en kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a663
+msgid "Moins-values sur réalisation d'actifs immobilisés"
+msgstr "Minderwaarden op de realisatie van vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6632
+msgid ""
+"Sur immobilisations détenues en location-financement et droits similaires"
+msgstr "Op financiele leasing en gelijkaardige rechten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6633
+#: model:account.account.template,name:l10n_be.a7632
+msgid "Sur immobilisations financières"
+msgstr "Op financiele vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6634
+msgid "Sur immeubles acquis ou construits en vue de la revente"
+msgstr "Op onroerende goederen bestemd voor verkoop"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a664
+msgid "Pénalités et amendes diverses"
+msgstr "Diverse boetes en straffen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a665
+msgid "Différence de charge"
+msgstr "Kostenverschillen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a668
+msgid "Autres charges exceptionnelles"
+msgstr "Andere uitzonderlijke kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a669
+msgid ""
+"Charges exceptionnelles transférées à l'actif en frais de restructuration"
+msgstr ""
+"Uitzonderlijke kosten als herstructureringskosten opgenomen onder de activa "
+"(-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a67
+msgid "IMPOTS SUR LE RESULTAT"
+msgstr "Belastingen op het resultaat"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a670
+msgid "Impôts belges sur le résultat de l'exercice"
+msgstr "Belgische belastingen op het resultaat van het boekjaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6700
+msgid "Impôts et précomptes dus ou versés"
+msgstr "Verschuldigde of gestorte belastingen en voorheffingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6701
+msgid "Excédent de versements d'impôts et précomptes porté à l'actif"
+msgstr ""
+"Geactiveerde overschotten van betaalde belastingen en voorheffingen (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6702
+msgid "Charges fiscales estimées"
+msgstr "Geraamde belastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a671
+msgid "Impôts belges sur le résultat d'exercices antérieurs"
+msgstr "Belgische belastingen op het resultaat van vorige boekjaren"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6710
+msgid "Suppléments d'impôts dus ou versés"
+msgstr "Verschuldigde of gestorte belastingsupplementen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6711
+msgid "Suppléments d'impôts estimés"
+msgstr "Geraamde belastingsupplementen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a6712
+msgid "Provisions fiscales constituées"
+msgstr "Gevormde fiscale voorzieningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a672
+msgid "Impôts étrangers sur le résultat de l'exercice"
+msgstr "Buitenlandse belastingen op het resultaat van het boekjaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a673
+msgid "Impôts étrangers sur le résultat d'exercices antérieurs"
+msgstr "Buitenlandse belastingen op het resultaat van vorige boekjaren"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a68
+msgid "TRANSFERTS AUX RESERVES IMMUNISEES"
+msgstr ""
+"Overboeking naar de uitgestelde belastingen en naar de belastingvrije "
+"reserves"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a69
+msgid "AFFECTATION DES RESULTATS"
+msgstr "Resultaatverwerking"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a690
+msgid "Perte reportée de l'exercice précédent"
+msgstr "Overgedragen verlies van het vorige boekjaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a691
+msgid "Dotation à la réserve légale"
+msgstr "Toevoeging aan het kapitaal en aan de uitgiftepremie"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a692
+msgid "Dotation aux autres réserves"
+msgstr "Toevoeging aan de reserves"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a693
+msgid "Bénéfice à reporter"
+msgstr "Over te dragen winst"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a694
+msgid "Rémunération du capital"
+msgstr "Vergoeding van het kapitaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7
+msgid "CLASSE 7. - PRODUITS"
+msgstr "KLASSE 7 - OPBRENGSTEN"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a70
+msgid "CHIFFRE D'AFFAIRES"
+msgstr "Omzet"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a700
+msgid "Ventes de marchandises"
+msgstr "Verkopen van handelsgoederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7000
+#: model:account.account.template,name:l10n_be.a7020
+#: model:account.account.template,name:l10n_be.a_sale
+msgid "Ventes en Belgique"
+msgstr "Verkopen in België"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7001
+#: model:account.account.template,name:l10n_be.a7011
+#: model:account.account.template,name:l10n_be.a7021
+msgid "Ventes dans les pays membres de la C.E.E."
+msgstr "Verkopen in lidstaten van de E.E.G."
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7002
+#: model:account.account.template,name:l10n_be.a7012
+#: model:account.account.template,name:l10n_be.a7022
+msgid "Ventes à l'exportation"
+msgstr "Verkopen buiten de E.E.G. (export)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a701
+msgid "Ventes de produits finis"
+msgstr "Verkopen van afgewerkte produkten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a702
+msgid "Ventes de déchets et rebuts"
+msgstr "Verkoop van afval en restmateriaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a703
+msgid "Ventes d'emballages récupérables"
+msgstr "Verkoop van herbruikbare verpakking"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a704
+msgid "Facturations des travaux en cours"
+msgstr "Facturatie werk in uitvoering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a705
+#: model:account.account.template,name:l10n_be.a746
+msgid "Prestations de services"
+msgstr "Dienstverlening"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7050
+msgid "Prestations de services en Belgique"
+msgstr "Dienstverlening in België"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7051
+msgid "Prestations de services dans les pays membres de la C.E.E."
+msgstr "Dienstverlening in lidstaten van de E.E.G."
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7052
+msgid "Prestations de services en vue de l'exportation"
+msgstr "Dienstverlening buiten de E.E.G. (export)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a706
+msgid "Pénalités et dédits obtenus par l'entreprise"
+msgstr "Boeten en verbeurdverklaringen verkregen door de onderneming"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a708
+msgid "Remises, ristournes et rabais accordés"
+msgstr "Toegekende kortingen, ristorno's en rabatten (-)"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7080
+msgid "Sur ventes de marchandises"
+msgstr "op handelsgoederen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7081
+msgid "Sur ventes de produits finis"
+msgstr "op afgewerkte produkten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7082
+msgid "Sur ventes de déchets et rebuts"
+msgstr "op afval en restmateriaal"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7083
+msgid "Sur prestations de services"
+msgstr "op dienstverlening"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7084
+msgid "Mali sur travaux facturés aux associations momentanées"
+msgstr "Mali op gefactureerde werken in joint-venture"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a71
+msgid "VARIATION DES STOCKS ET DES COMMANDES EN COURS D'EXECUTION"
+msgstr "Wijzigingen in de voorraden en in de bestellingen in uitvoering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a712
+msgid "Des en cours de fabrication"
+msgstr "In de voorraad goederen in bewerking"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a713
+msgid "Des produits finis"
+msgstr "In de voorraad gereed product"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a715
+msgid "Des immeubles construits destinés à la vente"
+msgstr "In de voorraad onroerende goederen bestemd voor verkoop"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a717
+msgid "Des commandes en cours d'exécution"
+msgstr "In de bestellingen in uitvoering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7170
+msgid "Commandes en cours - Coût de revient"
+msgstr "Aanschafwaarde"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a71700
+msgid "Coût des commandes en cours d'exécution"
+msgstr "Kost van bestellingen in uitvoering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a71701
+msgid "Coût des travaux en cours des associations momentanées"
+msgstr "Kost van werken in uitvoering in joint-ventures"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7171
+msgid "Bénéfices portés en compte sur commandes en cours"
+msgstr "Toegerekende winst"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a71710
+msgid "Sur commandes en cours d'exécution"
+msgstr "Op bestellingen in uitvoering"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a71711
+msgid "Sur travaux en cours des associations momentanées"
+msgstr "Op werken in uitvoering in joint-ventures"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a72
+msgid "PRODUCTION IMMOBILISEE"
+msgstr "Geproduceerde vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a720
+msgid "En frais d'établissement"
+msgstr "In oprichtingskosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a721
+msgid "En immobilisations incorporelles"
+msgstr "In immateriële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a722
+msgid "En immobilisations corporelles"
+msgstr "In materiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a723
+msgid "En immobilisations en cours"
+msgstr "In vaste activa in aanbouw"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a74
+msgid "AUTRES PRODUITS D'EXPLOITATION"
+msgstr "Andere bedrijfsopbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a740
+msgid "Subsides d'exploitation et montants compensatoires"
+msgstr "Bedrijfssubsidies en compenserende bedragen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a741
+msgid "Plus-values sur réalisations courantes d'immobilisations corporelles"
+msgstr "Meerwaarden op de courante realisatie van materiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a742
+msgid "Plus-values sur réalisations de créances commerciales"
+msgstr "Meerwaarden op de realisatie van handelsvorderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a743
+msgid "Produits de services exploités dans l'intérêt du personnel"
+msgstr "Recuperatie personeelskost"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a744
+msgid "Commissions et courtages"
+msgstr "Commissies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a745
+msgid "Redevances pour brevets et licences"
+msgstr "Commissies voor brevetten en licenties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a747
+msgid "Revenus des immeubles affectés aux activités non professionnelles"
+msgstr "Inkomsten uit vastgoed verbonden aan niet-professionele activiteiten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a748
+msgid "Locations diverses à caractère professionnel"
+msgstr "Diverse verhuring met professioneel karakter"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a749
+msgid "Produits divers"
+msgstr "Diverse opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7490
+msgid "Bonis sur reprises d'emballages consignés"
+msgstr "Boni bij terugneming herbruikbare verpakking"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7491
+msgid "Bonis sur travaux en associations momentanées"
+msgstr "Boni op werken in joint-venture"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a75
+msgid "PRODUITS FINANCIERS"
+msgstr "Financiële opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a750
+msgid "Produits des immobilisations financières"
+msgstr "Opbrengsten uit financiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7500
+msgid "Revenus des actions"
+msgstr "Opbrengsten uit aandelen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7501
+msgid "Revenus des obligations"
+msgstr "Opbrengsten uit obligaties"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7502
+msgid "Revenus des créances à plus d'un an"
+msgstr "Inkomsten uit schuld > 1 jaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a751
+msgid "Produits des actifs circulants"
+msgstr "Opbrengsten uit vlottende activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a752
+msgid "Plus-values sur réalisations d'actifs circulants"
+msgstr "Meerwaarden op de realisatie van vlottende activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a753
+msgid "Subsides en capital et en intérêts"
+msgstr "Kapitaal- en interestsubsidies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a756
+msgid "Produits des autres créances"
+msgstr "Diverse financiële opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a757
+msgid "Escomptes obtenus"
+msgstr "Bekomen kortingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a76
+msgid "PRODUITS EXCEPTIONNELS"
+msgstr "Uitzonderlijke opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a760
+msgid "Reprises d'amortissements et de réductions de valeur"
+msgstr "Terugneming van afschrijvingen en waardeverminderingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a761
+msgid "Reprises de réductions de valeur sur immobilisations financières"
+msgstr "Terugneming van waardeverminderingen op financiële vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a762
+msgid "Reprises de provisions pour risques et charges exceptionnelles"
+msgstr "Terugneming van voorzieningen voor uitzonderlijke risico's en kosten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a763
+msgid "Plus-values sur réalisation d'actifs immobilisés"
+msgstr "Meerwaarden op de realisatie van vaste activa"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a764
+msgid "Autres produits exceptionnels"
+msgstr "Andere uitzonderlijke opbrengsten"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a77
+msgid "REGULARISATIONS D'IMPOTS ET REPRISES DE PROVISIONS FISCALES"
+msgstr ""
+"Regularisering van belastingen en terugneming van fiscale voorzieningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a771
+msgid "Impôts belges sur le résultat"
+msgstr "Belgische belastingen op het resultaat"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7710
+msgid "Régularisations d'impôts dus ou versés"
+msgstr "Regularisering van verschuldigde of betaalde belastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7711
+msgid "Régularisations d'impôts estimés"
+msgstr "Regularisering van geraamde belastingen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a7712
+msgid "Reprises de provisions fiscales"
+msgstr "Terugneming van fiscale voorzieningen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a773
+msgid "Impôts étrangers sur le résultat"
+msgstr "Buitenlandse belastingen op het resultaat"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a79
+msgid "AFFECTATION AUX RESULTATS"
+msgstr "Resultaatverwerking"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a790
+msgid "Bénéfice reporté de l'exercice précédent"
+msgstr "Overgedragen winst van het vorige boekjaar"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a791
+msgid "Prélèvement sur le capital et les primes d'émission"
+msgstr "Onttrekking aan het kapitaal en aan de uitgiftepremies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a792
+msgid "Prélèvement sur les réserves"
+msgstr "Onttrekking aan de reserves"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a793
+msgid "Perte à reporter"
+msgstr "Over te dragen verlies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a794
+msgid "Intervention d'associés"
+msgstr "Tussenkomst van vennoten (of van de eigenaar) in het verlies"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a_expense
+msgid "Achats de matières premières"
+msgstr "Aankopen van grondstoffen"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.a_root
+msgid "PLAN COMPTABLE MINIMUM NORMALISE"
+msgstr "MINIMUM GENORMALISEERD REKENINGSTELSEL"
+
+#. module: l10n_be
+#: model:account.account.template,name:l10n_be.cash
+msgid "Caisse principale"
+msgstr "Kas"
+
+#. module: l10n_be
+#: model:account.fiscal.position.template,name:l10n_be.fiscal_position_template_1
+msgid "Régime National"
+msgstr "Nationaal"
+
+#. module: l10n_be
+#: model:account.fiscal.position.template,name:l10n_be.fiscal_position_template_2
+msgid "Régime Extra-Communautaire"
+msgstr "Export"
+
+#. module: l10n_be
+#: model:account.fiscal.position.template,name:l10n_be.fiscal_position_template_3
+msgid "Régime Intra-Communautaire"
+msgstr "Intra-Communautair"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_00
+#: model:account.tax.code.template,name:l10n_be.atctn_IIA
+msgid "Opérations soumises à un régime particulier"
+msgstr "Handelingen onderworpen aan een bijzondere regeling"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_01
+msgid "Opérations avec TVA à 6%"
+msgstr "Aan het tarief van 6%"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_02
+msgid "Opérations avec TVA à 12%"
+msgstr "Aan het tarief van 12%"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_03
+msgid "Opérations avec TVA à 21%"
+msgstr "Aan het tarief van 21%"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_44
+msgid "Services intra-communautaires"
+msgstr ""
+"Diensten waarvoor de buitenlandse btw verschuldigd is door de medecontractant"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_45
+#: model:account.tax.code.template,name:l10n_be.atctn_IID
+msgid "Opérations avec TVA due par le cocontractant"
+msgstr "Handelingen waarvoor de btw verschuldigd is door de medecontractant"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_46
+#: model:account.tax.code.template,name:l10n_be.atctn_IIE
+msgid "Livraisons intra-communautaire exemptées"
+msgstr ""
+"Vrijgestelde intracommunautaire leveringen verricht in België en ABC-verkopen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_46L
+msgid "Livraisons biens intra-communautaire exemptées"
+msgstr "Vrijgestelde intracommunautaire leveringen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_46T
+msgid "ABC intra-communautaires"
+msgstr "Vrijgestelde intracommunautaire ABC-verkopen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_47
+#: model:account.tax.code.template,name:l10n_be.atctn_IIF
+msgid "Autres opérations exemptées"
+msgstr ""
+"Andere vrijgestelde handelingen en andere handelingen verricht in het "
+"buitenland"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_48
+msgid "Notes de crédit aux opérations grilles [44] et [46]"
+msgstr "Met betrekking tot de handelingen ingeschreven in de roosters 44 en 46"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_48s44
+msgid "Notes de crédit aux opérations grille [44]"
+msgstr "Met betrekking tot de handelingen ingeschreven in rooster 44"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_48s46L
+msgid "Notes de crédit aux opérations grille [46L]"
+msgstr "Met betrekking tot de handelingen ingeschreven in rooster 46L"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_48s46T
+msgid "Notes de crédit aux opérations grille [46T]"
+msgstr "Met betrekking tot de handelingen ingeschreven in rooster 46T"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_49
+msgid "Notes de crédit aux opérations du point II"
+msgstr "Met betrekking tot de andere handelingen van kader II"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_54
+msgid "TVA sur opérations des grilles [01], [02], [03]"
+msgstr "Btw op de handelingen aangegeven in de roosters 01, 02 en 03"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_55
+msgid "TVA sur opérations des grilles [86] et [88]"
+msgstr "Btw op de handelingen aangegeven in de roosters 86 en 88"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_56
+msgid "TVA sur opérations de la grille [87]"
+msgstr ""
+"Btw op de handelingen aangegeven in rooster 87, met uitzondering van "
+"invoeren met verlegging van heffing"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_57
+#: model:account.tax.code.template,name:l10n_be.atctn_IVB
+msgid "TVA relatives aux importations"
+msgstr "Btw op invoeren met verlegging van heffing"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_59
+#: model:account.tax.code.template,name:l10n_be.atctn_VA
+msgid "TVA déductible"
+msgstr "Aftrekbare BTW"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_61
+#: model:account.tax.code.template,name:l10n_be.atctn_IVC
+msgid "Diverses régularisations en faveur de l'Etat"
+msgstr "Diverse btw-regularisaties in het voordeel van de Staat"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_62
+#: model:account.tax.code.template,name:l10n_be.atctn_VB
+msgid "Régularisations TVA en faveur du déclarant"
+msgstr "Diverse btw-regularisaties in het voordeel van de aangever"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_63
+#: model:account.tax.code.template,name:l10n_be.atctn_IVD
+msgid "TVA à reverser sur notes de crédit reçues"
+msgstr "Terug te storten btw vermeld op ontvangen creditnota's"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_64
+#: model:account.tax.code.template,name:l10n_be.atctn_VC
+msgid "TVA à recuperer sur notes de crédit delivrées"
+msgstr "Te recupereren btw vermeld op uitgereikte creditnota's"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_81
+msgid "Marchandises, matières premières et auxiliaires"
+msgstr "Handelsgoederen, grond- en hulpstoffen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_82
+msgid "Services et biens divers"
+msgstr "Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_83
+msgid "Biens d'investissement"
+msgstr "Bedrijfsmiddelen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_84
+msgid "Notes de crédits sur opérations case [86] et [88]"
+msgstr ""
+"Creditnota's met betrekking tot de handelingen ingeschreven in de roosters "
+"86 en 88"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_85
+msgid "Notes de crédits autres opérations"
+msgstr "Creditnota's met betrekking tot de andere handelingen van kader III"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_86
+#: model:account.tax.code.template,name:l10n_be.atctn_IIIC
+msgid "Acquisition intra-communautaires et ventes ABC"
+msgstr "Intracommunautaire verwervingen verricht in België en ABC-verkopen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_87
+msgid "Autres opérations"
+msgstr ""
+"Andere inkomende handelingen waarvoor de btw verschuldigd is door de aangever"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_88
+msgid "Acquisition services intra-communautaires"
+msgstr "Intracommunautaire diensten met verlegging van heffing"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_91
+msgid "TVA due pour la période du 1er au 20 décembre"
+msgstr "Werkelijk verschuldigde btw voor de periode van 1 tot 20 december"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_I
+msgid "Plan de Taxes Belge"
+msgstr "Belgisch BTW stelsel"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_II
+msgid "Opérations à la sortie"
+msgstr "Uitgaande handelingen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_IIB
+msgid "TVA due par le déclarant"
+msgstr "Handelingen waarvoor de btw verschuldigd is door de aangever"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_IIC
+msgid "TVA étrangère due par le cocontractant"
+msgstr ""
+"Diensten waarvoor de buitenlandse btw verschuldigd is door de medecontractant"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_IIG
+msgid "Notes de crédit délivrées et corrections négatives"
+msgstr "Uitgereikte creditnota's en de negatieve verbeteringen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_III
+msgid "Opérations a l'entrée"
+msgstr "Inkomende handelingen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_IIIA
+msgid "Opérations à l'entrée y compris notes de crédit et corrections"
+msgstr ""
+"Inkomende handelingen rekening houdend met de ontvangen creditnota's en "
+"andere verbeteringen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_IIIB
+msgid "Notes de crédit reçues et corrections négatives"
+msgstr "Ontvangen creditnota's en de negatieve verbeteringen"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_IIID
+msgid "Autres opérations à l'entrée avec TVA due par le déclarant"
+msgstr ""
+"Andere inkomende handelingen waarvoor de btw verschuldigd is door de aangever"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_IIIE
+msgid "Services intracommunautaires avec report de perception"
+msgstr "Intracommunautaire diensten met verlegging van heffing"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_IVA
+msgid "TVA aux opérations en grilles 01, 02, 03, 86 et 87"
+msgstr "Btw op de handelingen aangegeven in rooster 01, 02, 03, 86 et 87"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_VI
+msgid "Solde (71-72)"
+msgstr "Saldo (71-72)"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_VII
+msgid "Acompte"
+msgstr "Voorschot"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_XX
+msgid "A payer - Total"
+msgstr "Te betalen - Totaal"
+
+#. module: l10n_be
+#: model:account.tax.code.template,name:l10n_be.atctn_YY
+msgid "A déduire - Total"
+msgstr "Af te trekken - Totaal"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00
+msgid "TVA à l'entrée 0% - Approvisionn. et marchandises"
+msgstr "BTW inkomend 0% - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-C1
+msgid "VAT-IN-V81-00-C1"
+msgstr "VAT-IN-V81-00-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-C2
+msgid "VAT-IN-V81-00-C2"
+msgstr "VAT-IN-V81-00-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-CC
+msgid "TVA à l'entrée 0% Cocontract. - Approvisionn. et marchandises"
+msgstr "BTW inkomend 0% Medecontr. - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-CC-C1
+msgid "VAT-IN-V81-00-CC-C1"
+msgstr "VAT-IN-V81-00-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-CC-C2
+msgid "VAT-IN-V81-00-CC-C2"
+msgstr "VAT-IN-V81-00-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-CC-C3
+msgid "VAT-IN-V81-00-CC-C3"
+msgstr "VAT-IN-V81-00-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-EU
+msgid "TVA à l'entrée 0% Intracomm. - Approvisionn. et marchandises"
+msgstr "BTW inkomend 0% Intracomm. - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-EU-C1
+msgid "VAT-IN-V81-00-EU-C1"
+msgstr "VAT-IN-V81-00-EU-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-EU-C2
+msgid "VAT-IN-V81-00-EU-C2"
+msgstr "VAT-IN-V81-00-EU-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-EU-C3
+msgid "VAT-IN-V81-00-EU-C3"
+msgstr "VAT-IN-V81-00-EU-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-ROW-CC
+msgid "TVA à l'entrée 0% Hors EU - Approvisionn. et marchandises"
+msgstr "BTW inkomend 0% Buiten EU - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-ROW-CC-C1
+msgid "VAT-IN-V81-00-ROW-CC-C1"
+msgstr "VAT-IN-V81-00-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-00-ROW-CC-C2
+msgid "VAT-IN-V81-00-ROW-CC-C2"
+msgstr "VAT-IN-V81-00-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06
+msgid "TVA Déductible 6% - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 6% - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-C1
+msgid "VAT-IN-V81-06-C1"
+msgstr "VAT-IN-V81-06-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-C2
+msgid "VAT-IN-V81-06-C2"
+msgstr "VAT-IN-V81-06-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-CC
+msgid "TVA Déductible 6% Cocontract. - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 6% Medecontr. - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-CC-C1
+msgid "VAT-IN-V81-06-CC-C1"
+msgstr "VAT-IN-V81-06-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-CC-C2
+msgid "VAT-IN-V81-06-CC-C2"
+msgstr "VAT-IN-V81-06-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-CC-C3
+msgid "VAT-IN-V81-06-CC-C3"
+msgstr "VAT-IN-V81-06-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-EU
+msgid "TVA Déductible 6% Intracomm. - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 6% Intracomm. - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-EU-C1
+msgid "VAT-IN-V81-06-EU-C1"
+msgstr "VAT-IN-V81-06-EU-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-EU-C2
+msgid "VAT-IN-V81-06-EU-C2"
+msgstr "VAT-IN-V81-06-EU-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-EU-C3
+msgid "VAT-IN-V81-06-EU-C3"
+msgstr "VAT-IN-V81-06-EU-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-ROW-CC
+msgid "TVA Déductible 6% Hors EU - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 6% Buiten EU - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-ROW-CC-C1
+msgid "VAT-IN-V81-06-ROW-CC-C1"
+msgstr "VAT-IN-V81-06-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-ROW-CC-C2
+msgid "VAT-IN-V81-06-ROW-CC-C2"
+msgstr "VAT-IN-V81-06-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-06-ROW-CC-C3
+msgid "VAT-IN-V81-06-ROW-CC-C3"
+msgstr "VAT-IN-V81-06-ROW-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12
+msgid "TVA Déductible 12% - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 12% - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-C1
+msgid "VAT-IN-V81-12-C1"
+msgstr "VAT-IN-V81-12-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-C2
+msgid "VAT-IN-V81-12-C2"
+msgstr "VAT-IN-V81-12-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-CC
+msgid "TVA Déductible 12% Cocontract. - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 12% Medecontr. - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-CC-C1
+msgid "VAT-IN-V81-12-CC-C1"
+msgstr "VAT-IN-V81-12-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-CC-C2
+msgid "VAT-IN-V81-12-CC-C2"
+msgstr "VAT-IN-V81-12-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-CC-C3
+msgid "VAT-IN-V81-12-CC-C3"
+msgstr "VAT-IN-V81-12-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-EU
+msgid "TVA Déductible 12% Intracomm. - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 12% Intracomm. - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-EU-C1
+msgid "VAT-IN-V81-12-EU-C1"
+msgstr "VAT-IN-V81-12-EU-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-EU-C2
+msgid "VAT-IN-V81-12-EU-C2"
+msgstr "VAT-IN-V81-12-EU-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-EU-C3
+msgid "VAT-IN-V81-12-EU-C3"
+msgstr "VAT-IN-V81-12-EU-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-ROW-CC
+msgid "TVA Déductible 12% Hors EU - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 12% Buiten EU - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-ROW-CC-C1
+msgid "VAT-IN-V81-12-ROW-CC-C1"
+msgstr "VAT-IN-V81-12-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-ROW-CC-C2
+msgid "VAT-IN-V81-12-ROW-CC-C2"
+msgstr "VAT-IN-V81-12-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-12-ROW-CC-C3
+msgid "VAT-IN-V81-12-ROW-CC-C3"
+msgstr "VAT-IN-V81-12-ROW-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21
+msgid "TVA Déductible 21% - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 21% - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-C1
+msgid "VAT-IN-V81-21-C1"
+msgstr "VAT-IN-V81-21-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-C2
+msgid "VAT-IN-V81-21-C2"
+msgstr "VAT-IN-V81-21-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-CC
+msgid "TVA Déductible 21% Cocontract. - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 21% Medecontr. - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-CC-C1
+msgid "VAT-IN-V81-21-CC-C1"
+msgstr "VAT-IN-V81-21-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-CC-C2
+msgid "VAT-IN-V81-21-CC-C2"
+msgstr "VAT-IN-V81-21-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-CC-C3
+msgid "VAT-IN-V81-21-CC-C3"
+msgstr "VAT-IN-V81-21-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-EU
+msgid "TVA Déductible 21% Intracomm. - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 21% Intracomm. - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-EU-C1
+msgid "VAT-IN-V81-21-EU-C1"
+msgstr "VAT-IN-V81-21-EU-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-EU-C2
+msgid "VAT-IN-V81-21-EU-C2"
+msgstr "VAT-IN-V81-21-EU-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-EU-C3
+msgid "VAT-IN-V81-21-EU-C3"
+msgstr "VAT-IN-V81-21-EU-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-ROW-CC
+msgid "TVA Déductible 21% Hors EU - Approvisionn. et marchandises"
+msgstr "BTW aftrekbaar 21% Buiten EU - Grondstoffen en handelsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-ROW-CC-C1
+msgid "VAT-IN-V81-21-ROW-CC-C1"
+msgstr "VAT-IN-V81-21-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-ROW-CC-C2
+msgid "VAT-IN-V81-21-ROW-CC-C2"
+msgstr "VAT-IN-V81-21-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V81-21-ROW-CC-C3
+msgid "VAT-IN-V81-21-ROW-CC-C3"
+msgstr "VAT-IN-V81-21-ROW-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-CC
+msgid "TVA à l'entrée 0% Cocontract. - Services and other goods"
+msgstr "BTW inkomend 0% Medecontr. - Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-CC-C1
+msgid "VAT-IN-V82-00-CC-C1"
+msgstr "VAT-IN-V82-00-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-CC-C2
+msgid "VAT-IN-V82-00-CC-C2"
+msgstr "VAT-IN-V82-00-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-CC-C3
+msgid "VAT-IN-V82-00-CC-C3"
+msgstr "VAT-IN-V82-00-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-EU-G
+msgid "TVA à l'entrée 0% Intracomm. - Biens divers"
+msgstr "BTW inkomend 0% Intracomm. - Diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-EU-G-C1
+msgid "VAT-IN-V82-00-EU-G-C1"
+msgstr "VAT-IN-V82-00-EU-G-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-EU-G-C2
+msgid "VAT-IN-V82-00-EU-G-C2"
+msgstr "VAT-IN-V82-00-EU-G-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-EU-G-C3
+msgid "VAT-IN-V82-00-EU-G-C3"
+msgstr "VAT-IN-V82-00-EU-G-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-EU-S
+msgid "TVA à l'entrée 0% Intracomm. - Services"
+msgstr "BTW inkomend 0% Intracomm. - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-EU-S-C1
+msgid "VAT-IN-V82-00-EU-S-C1"
+msgstr "VAT-IN-V82-00-EU-S-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-EU-S-C2
+msgid "VAT-IN-V82-00-EU-S-C2"
+msgstr "VAT-IN-V82-00-EU-S-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-EU-S-C3
+msgid "VAT-IN-V82-00-EU-S-C3"
+msgstr "VAT-IN-V82-00-EU-S-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-G
+msgid "TVA à l'entrée 0% - Biens divers"
+msgstr "BTW inkomend 0% - Diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-G-C1
+msgid "VAT-IN-V82-00-G-C1"
+msgstr "VAT-IN-V82-00-G-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-G-C2
+msgid "VAT-IN-V82-00-G-C2"
+msgstr "VAT-IN-V82-00-G-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-ROW-CC
+msgid "TVA à l'entrée 0% Hors EU - Services and other goods"
+msgstr "BTW inkomend 0% Buiten EU - Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-ROW-CC-C1
+msgid "VAT-IN-V82-00-ROW-CC-C1"
+msgstr "VAT-IN-V82-00-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-ROW-CC-C2
+msgid "VAT-IN-V82-00-ROW-CC-C2"
+msgstr "VAT-IN-V82-00-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-S
+msgid "TVA à l'entrée 0% - Services"
+msgstr "BTW inkomend 0% - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-S-C1
+msgid "VAT-IN-V82-00-S-C1"
+msgstr "VAT-IN-V82-00-S-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-00-S-C2
+msgid "VAT-IN-V82-00-S-C2"
+msgstr "VAT-IN-V82-00-S-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-CC
+msgid "TVA Déductible 6% Cocontract. - Services and other goods"
+msgstr "BTW aftrekbaar 6% Medecontr. - Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-CC-C1
+msgid "VAT-IN-V82-06-CC-C1"
+msgstr "VAT-IN-V82-06-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-CC-C2
+msgid "VAT-IN-V82-06-CC-C2"
+msgstr "VAT-IN-V82-06-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-CC-C3
+msgid "VAT-IN-V82-06-CC-C3"
+msgstr "VAT-IN-V82-06-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-EU-G
+msgid "TVA Déductible 6% Intracomm. - Biens divers"
+msgstr "BTW aftrekbaar 6% Intracomm. - Diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-EU-G-C1
+msgid "VAT-IN-V82-06-EU-G-C1"
+msgstr "VAT-IN-V82-06-EU-G-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-EU-G-C2
+msgid "VAT-IN-V82-06-EU-G-C2"
+msgstr "VAT-IN-V82-06-EU-G-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-EU-G-C3
+msgid "VAT-IN-V82-06-EU-G-C3"
+msgstr "VAT-IN-V82-06-EU-G-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-EU-S
+msgid "TVA Déductible 6% Intracomm. - Services"
+msgstr "BTW aftrekbaar 6% Intracomm. - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-EU-S-C1
+msgid "VAT-IN-V82-06-EU-S-C1"
+msgstr "VAT-IN-V82-06-EU-S-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-EU-S-C2
+msgid "VAT-IN-V82-06-EU-S-C2"
+msgstr "VAT-IN-V82-06-EU-S-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-EU-S-C3
+msgid "VAT-IN-V82-06-EU-S-C3"
+msgstr "VAT-IN-V82-06-EU-S-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-G
+msgid "TVA Déductible 6% - Biens divers"
+msgstr "BTW aftrekbaar 6% - Diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-G-C1
+msgid "VAT-IN-V82-06-G-C1"
+msgstr "VAT-IN-V82-06-G-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-G-C2
+msgid "VAT-IN-V82-06-G-C2"
+msgstr "VAT-IN-V82-06-G-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-ROW-CC
+msgid "TVA Déductible 6% Hors EU - Services and other goods"
+msgstr "BTW afrekbaar 6% Buiten EU - Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-ROW-CC-C1
+msgid "VAT-IN-V82-06-ROW-CC-C1"
+msgstr "VAT-IN-V82-06-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-ROW-CC-C2
+msgid "VAT-IN-V82-06-ROW-CC-C2"
+msgstr "VAT-IN-V82-06-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-ROW-CC-C3
+msgid "VAT-IN-V82-06-ROW-CC-C3"
+msgstr "VAT-IN-V82-06-ROW-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-S
+msgid "TVA Déductible 6% - Services"
+msgstr "BTW aftrekbaar 6% - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-S-C1
+msgid "VAT-IN-V82-06-S-C1"
+msgstr "VAT-IN-V82-06-S-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-06-S-C2
+msgid "VAT-IN-V82-06-S-C2"
+msgstr "VAT-IN-V82-06-S-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-CC
+msgid "TVA Déductible 12% Cocontract. - Services and other goods"
+msgstr "BTW aftrekbaar 12% Medecontr. - Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-CC-C1
+msgid "VAT-IN-V82-12-CC-C1"
+msgstr "VAT-IN-V82-12-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-CC-C2
+msgid "VAT-IN-V82-12-CC-C2"
+msgstr "VAT-IN-V82-12-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-CC-C3
+msgid "VAT-IN-V82-12-CC-C3"
+msgstr "VAT-IN-V82-12-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-EU-G
+msgid "TVA Déductible 12% Intracomm. - Biens divers"
+msgstr "BTW aftrekbaar 12% Intracomm. - Diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-EU-G-C1
+msgid "VAT-IN-V82-12-EU-G-C1"
+msgstr "VAT-IN-V82-12-EU-G-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-EU-G-C2
+msgid "VAT-IN-V82-12-EU-G-C2"
+msgstr "VAT-IN-V82-12-EU-G-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-EU-G-C3
+msgid "VAT-IN-V82-12-EU-G-C3"
+msgstr "VAT-IN-V82-12-EU-G-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-EU-S
+msgid "TVA Déductible 12% Intracomm. - Services"
+msgstr "BTW aftrekbaar 12% Intracomm. - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-EU-S-C1
+msgid "VAT-IN-V82-12-EU-S-C1"
+msgstr "VAT-IN-V82-12-EU-S-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-EU-S-C2
+msgid "VAT-IN-V82-12-EU-S-C2"
+msgstr "VAT-IN-V82-12-EU-S-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-EU-S-C3
+msgid "VAT-IN-V82-12-EU-S-C3"
+msgstr "VAT-IN-V82-12-EU-S-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-G
+msgid "TVA Déductible 12% - Biens divers"
+msgstr "BTW aftrekbaar 12% - Diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-G-C1
+msgid "VAT-IN-V82-12-G-C1"
+msgstr "VAT-IN-V82-12-G-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-G-C2
+msgid "VAT-IN-V82-12-G-C2"
+msgstr "VAT-IN-V82-12-G-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-ROW-CC
+msgid "TVA Déductible 12% Hors EU - Services and other goods"
+msgstr "BTW afrekbaar 12% Buiten EU - Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-ROW-CC-C1
+msgid "VAT-IN-V82-12-ROW-CC-C1"
+msgstr "VAT-IN-V82-12-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-ROW-CC-C2
+msgid "VAT-IN-V82-12-ROW-CC-C2"
+msgstr "VAT-IN-V82-12-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-ROW-CC-C3
+msgid "VAT-IN-V82-12-ROW-CC-C3"
+msgstr "VAT-IN-V82-12-ROW-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-S
+msgid "TVA Déductible 12% - Services"
+msgstr "BTW aftrekbaar 12% - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-S-C1
+msgid "VAT-IN-V82-12-S-C1"
+msgstr "VAT-IN-V82-12-S-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-12-S-C2
+msgid "VAT-IN-V82-12-S-C2"
+msgstr "VAT-IN-V82-12-S-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-CC
+msgid "TVA Déductible 21% Cocontract. - Services and other goods"
+msgstr "BTW aftrekbaar 21% Medecontr. - Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-CC-C1
+msgid "VAT-IN-V82-21-CC-C1"
+msgstr "VAT-IN-V82-21-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-CC-C2
+msgid "VAT-IN-V82-21-CC-C2"
+msgstr "VAT-IN-V82-21-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-CC-C3
+msgid "VAT-IN-V82-21-CC-C3"
+msgstr "VAT-IN-V82-21-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-EU-G
+msgid "TVA Déductible 21% Intracomm. - Biens divers"
+msgstr "BTW aftrekbaar 21% Intracomm. - Diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-EU-G-C1
+msgid "VAT-IN-V82-21-EU-G-C1"
+msgstr "VAT-IN-V82-21-EU-G-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-EU-G-C2
+msgid "VAT-IN-V82-21-EU-G-C2"
+msgstr "VAT-IN-V82-21-EU-G-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-EU-G-C3
+msgid "VAT-IN-V82-21-EU-G-C3"
+msgstr "VAT-IN-V82-21-EU-G-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-EU-S
+msgid "TVA Déductible 21% Intracomm. - Services"
+msgstr "BTW aftrekbaar 21% Intracomm. - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-EU-S-C1
+msgid "VAT-IN-V82-21-EU-S-C1"
+msgstr "VAT-IN-V82-21-EU-S-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-EU-S-C2
+msgid "VAT-IN-V82-21-EU-S-C2"
+msgstr "VAT-IN-V82-21-EU-S-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-EU-S-C3
+msgid "VAT-IN-V82-21-EU-S-C3"
+msgstr "VAT-IN-V82-21-EU-S-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-G
+msgid "TVA Déductible 21% - Biens divers"
+msgstr "BTW aftrekbaar 21% - Diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-G-C1
+msgid "VAT-IN-V82-21-G-C1"
+msgstr "VAT-IN-V82-21-G-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-G-C2
+msgid "VAT-IN-V82-21-G-C2"
+msgstr "VAT-IN-V82-21-G-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-ROW-CC
+msgid "TVA Déductible 21% Hors EU - Services and other goods"
+msgstr "BTW afrekbaar 21% Buiten EU - Diensten en diverse goederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-ROW-CC-C1
+msgid "VAT-IN-V82-21-ROW-CC-C1"
+msgstr "VAT-IN-V82-21-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-ROW-CC-C2
+msgid "VAT-IN-V82-21-ROW-CC-C2"
+msgstr "VAT-IN-V82-21-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-ROW-CC-C3
+msgid "VAT-IN-V82-21-ROW-CC-C3"
+msgstr "VAT-IN-V82-21-ROW-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-S
+msgid "TVA Déductible 21% - Services"
+msgstr "BTW aftrekbaar 21% - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-S-C1
+msgid "VAT-IN-V82-21-S-C1"
+msgstr "VAT-IN-V82-21-S-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-21-S-C2
+msgid "VAT-IN-V82-21-S-C2"
+msgstr "VAT-IN-V82-21-S-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-CAR-EXC
+msgid "TVA Entrant - Frais de voiture - VAT 50% Non Deductible (Price Excl.)"
+msgstr "BTW inkomend - onkosten wagen - BTW 50% Niet-aftrekbaar (Prijs Excl.)"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-CAR-EXC-C1
+msgid "Frais de voiture - VAT 50% Non Deductible"
+msgstr "Onkosten wagen - BTW 50% Niet aftrekbaar"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-CAR-EXC-C2
+msgid "Frais de voiture - VAT 50% Deductible (Price Excl.)"
+msgstr "Onkosten wagen - BTW 50% Aftrekbaar (Prijs Excl.)"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-CAR-EXC-C3
+msgid "Frais de voiture - Montant de la note de crédit (Price Excl.)"
+msgstr "Onkosten wagen - Bedrag creditnota (Prijs Excl.)"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-CAR-INC
+msgid "TVA Entrant - Frais de voiture - VAT 50% Non Deductible (Price Incl.)"
+msgstr "BTW inkomend - onkosten wagen - BTW 50% Niet aftrekbaar (Prijs Incl.)"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-CAR-INC-C1
+msgid "Frais de voiture - VAT 50% Deductible"
+msgstr "Onkosten wagen - BTW 50% Aftrekbaar"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V82-CAR-INC-C2
+msgid "Frais de voiture - Montant de la note de crédit"
+msgstr "Onkosten wagen - Bedrag creditnota"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00
+msgid "TVA à l'entrée 0% - Biens d'investissement"
+msgstr "BTW inkomend 0% - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-C1
+msgid "VAT-IN-V83-00-C1"
+msgstr "VAT-IN-V83-00-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-C2
+msgid "VAT-IN-V83-00-C2"
+msgstr "VAT-IN-V83-00-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-CC
+msgid "TVA à l'entrée 0% Cocontract. - Biens d'investissement"
+msgstr "BTW inkomend 0% Medecontr. - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-CC-C1
+msgid "VAT-IN-V83-00-CC-C1"
+msgstr "VAT-IN-V83-00-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-CC-C2
+msgid "VAT-IN-V83-00-CC-C2"
+msgstr "VAT-IN-V83-00-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-CC-C3
+msgid "VAT-IN-V83-00-CC-C3"
+msgstr "VAT-IN-V83-00-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-EU
+msgid "TVA à l'entrée 0% Intracomm. - Biens d'investissement"
+msgstr "BTW inkomend 0% Intracomm. - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-EU-C1
+msgid "VAT-IN-V83-00-EU-C1"
+msgstr "VAT-IN-V83-00-EU-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-EU-C2
+msgid "VAT-IN-V83-00-EU-C2"
+msgstr "VAT-IN-V83-00-EU-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-EU-C3
+msgid "VAT-IN-V83-00-EU-C3"
+msgstr "VAT-IN-V83-00-EU-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-ROW-CC
+msgid "TVA à l'entrée 0% Hors EU - Biens d'investissement"
+msgstr "BTW inkomend 0% Buiten EU - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-ROW-CC-C1
+msgid "VAT-IN-V83-00-ROW-CC-C1"
+msgstr "VAT-IN-V83-00-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-00-ROW-CC-C2
+msgid "VAT-IN-V83-00-ROW-CC-C2"
+msgstr "VAT-IN-V83-00-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06
+msgid "TVA Déductible 6% - Biens d'investissement"
+msgstr "BTW aftrekbaar 6% - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-C1
+msgid "VAT-IN-V83-06-C1"
+msgstr "VAT-IN-V83-06-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-C2
+msgid "VAT-IN-V83-06-C2"
+msgstr "VAT-IN-V83-06-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-CC
+msgid "TVA Déductible 6% Cocontract. - Biens d'investissement"
+msgstr "BTW aftrekbaar 6% Medecontr. - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-CC-C1
+msgid "VAT-IN-V83-06-CC-C1"
+msgstr "VAT-IN-V83-06-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-CC-C2
+msgid "VAT-IN-V83-06-CC-C2"
+msgstr "VAT-IN-V83-06-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-CC-C3
+msgid "VAT-IN-V83-06-CC-C3"
+msgstr "VAT-IN-V83-06-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-EU
+msgid "TVA Déductible 6% Intracomm. - Biens d'investissement"
+msgstr "BTW aftrekbaar 6% Intracomm. - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-EU-C1
+msgid "VAT-IN-V83-06-EU-C1"
+msgstr "VAT-IN-V83-06-EU-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-EU-C2
+msgid "VAT-IN-V83-06-EU-C2"
+msgstr "VAT-IN-V83-06-EU-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-EU-C3
+msgid "VAT-IN-V83-06-EU-C3"
+msgstr "VAT-IN-V83-06-EU-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-ROW-CC
+msgid "TVA Déductible 6% Hors EU - Biens d'investissement"
+msgstr "BTW aftrekbaar 6% Buiten EU - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-ROW-CC-C1
+msgid "VAT-IN-V83-06-ROW-CC-C1"
+msgstr "VAT-IN-V83-06-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-ROW-CC-C2
+msgid "VAT-IN-V83-06-ROW-CC-C2"
+msgstr "VAT-IN-V83-06-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-06-ROW-CC-C3
+msgid "VAT-IN-V83-06-ROW-CC-C3"
+msgstr "VAT-IN-V83-06-ROW-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12
+msgid "TVA Déductible 12% - Biens d'investissement"
+msgstr "BTW aftrekbaar 12% - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-C1
+msgid "VAT-IN-V83-12-C1"
+msgstr "VAT-IN-V83-12-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-C2
+msgid "VAT-IN-V83-12-C2"
+msgstr "VAT-IN-V83-12-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-CC
+msgid "TVA Déductible 12% Cocontract. - Biens d'investissement"
+msgstr "BTW aftrekbaar 12% Medecontr. - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-CC-C1
+msgid "VAT-IN-V83-12-CC-C1"
+msgstr "VAT-IN-V83-12-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-CC-C2
+msgid "VAT-IN-V83-12-CC-C2"
+msgstr "VAT-IN-V83-12-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-CC-C3
+msgid "VAT-IN-V83-12-CC-C3"
+msgstr "VAT-IN-V83-12-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-EU
+msgid "TVA Déductible 12% Intracomm. - Biens d'investissement"
+msgstr "BTW aftrekbaar 12% Intracomm. - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-EU-C1
+msgid "VAT-IN-V83-12-EU-C1"
+msgstr "VAT-IN-V83-12-EU-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-EU-C2
+msgid "VAT-IN-V83-12-EU-C2"
+msgstr "VAT-IN-V83-12-EU-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-EU-C3
+msgid "VAT-IN-V83-12-EU-C3"
+msgstr "VAT-IN-V83-12-EU-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-ROW-CC
+msgid "TVA Déductible 12% Hors EU - Biens d'investissement"
+msgstr "BTW aftrekbaar 12% Buiten EU - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-ROW-CC-C1
+msgid "VAT-IN-V83-12-ROW-CC-C1"
+msgstr "VAT-IN-V83-12-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-ROW-CC-C2
+msgid "VAT-IN-V83-12-ROW-CC-C2"
+msgstr "VAT-IN-V83-12-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-12-ROW-CC-C3
+msgid "VAT-IN-V83-12-ROW-CC-C3"
+msgstr "VAT-IN-V83-12-ROW-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21
+msgid "TVA Déductible 21% - Biens d'investissement"
+msgstr "BTW aftrekbaar 21% - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-C1
+msgid "VAT-IN-V83-21-C1"
+msgstr "VAT-IN-V83-21-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-C2
+msgid "VAT-IN-V83-21-C2"
+msgstr "VAT-IN-V83-21-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-CC
+msgid "TVA Déductible 21% Cocontract. - Biens d'investissement"
+msgstr "BTW aftrekbaar 21% Medecontr. - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-CC-C1
+msgid "VAT-IN-V83-21-CC-C1"
+msgstr "VAT-IN-V83-21-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-CC-C2
+msgid "VAT-IN-V83-21-CC-C2"
+msgstr "VAT-IN-V83-21-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-CC-C3
+msgid "VAT-IN-V83-21-CC-C3"
+msgstr "VAT-IN-V83-21-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-EU
+msgid "TVA Déductible 21% Intracomm. - Biens d'investissement"
+msgstr "BTW aftrekbaar 21% Intracomm. - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-EU-C1
+msgid "VAT-IN-V83-21-EU-C1"
+msgstr "VAT-IN-V83-21-EU-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-EU-C2
+msgid "VAT-IN-V83-21-EU-C2"
+msgstr "VAT-IN-V83-21-EU-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-EU-C3
+msgid "VAT-IN-V83-21-EU-C3"
+msgstr "VAT-IN-V83-21-EU-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-ROW-CC
+msgid "TVA Déductible 21% Hors EU - Biens d'investissement"
+msgstr "BTW aftrekbaar 21% Buiten EU - Investeringsgoederen"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-ROW-CC-C1
+msgid "VAT-IN-V83-21-ROW-CC-C1"
+msgstr "VAT-IN-V83-21-ROW-CC-C1"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-ROW-CC-C2
+msgid "VAT-IN-V83-21-ROW-CC-C2"
+msgstr "VAT-IN-V83-21-ROW-CC-C2"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-IN-V83-21-ROW-CC-C3
+msgid "VAT-IN-V83-21-ROW-CC-C3"
+msgstr "VAT-IN-V83-21-ROW-CC-C3"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-00-CC
+msgid "VAT 0% Cocontractant"
+msgstr "BTW 0% Medecontractant"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-00-EU-L
+msgid "Marchandises EU (Code L)"
+msgstr "Handelsgoederen EU (Code L)"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-00-EU-S
+msgid "Services EU"
+msgstr "Diensten EU"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-00-EU-T
+msgid "Marchandises EU (Code T)"
+msgstr "Handelsgoederen EU (Code T)"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-00-L
+msgid "VAT 0%"
+msgstr "BTW 0%"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-00-ROW
+msgid "Export hors EU"
+msgstr "Export Buiten EU"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-00-S
+msgid "VAT 0% - Services"
+msgstr "BTW 0% - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-06-L
+msgid "VAT 6%"
+msgstr "BTW 6%"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-06-S
+msgid "VAT 6% - Services"
+msgstr "BTW 6% - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-12-L
+msgid "VAT 12%"
+msgstr "BTW 12%"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-12-S
+msgid "VAT 12% - Services"
+msgstr "BTW 12% - Diensten"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-21-L
+msgid "VAT 21%"
+msgstr "BTW 21%"
+
+#. module: l10n_be
+#: model:account.tax.template,name:l10n_be.attn_VAT-OUT-21-S
+msgid "VAT 21% - Services"
+msgstr "BTW 21% - Diensten"
diff --git a/addons/l10n_be/wizard/account_wizard.xml b/addons/l10n_be/wizard/account_wizard.xml
new file mode 100644
index 00000000000..dde7a77516a
--- /dev/null
+++ b/addons/l10n_be/wizard/account_wizard.xml
@@ -0,0 +1,7 @@
+
+
+
+ open
+
+
+
diff --git a/addons/l10n_be/wizard/l10n_be_vat_intra.py b/addons/l10n_be/wizard/l10n_be_vat_intra.py
index a572c3b83b4..56ed91e13fb 100644
--- a/addons/l10n_be/wizard/l10n_be_vat_intra.py
+++ b/addons/l10n_be/wizard/l10n_be_vat_intra.py
@@ -202,11 +202,11 @@ class partner_vat_intra(osv.osv_memory):
'vatnum': row['vat'][2:].replace(' ','').upper(),
'vat': row['vat'],
'country': row['vat'][:2],
- 'amount': amt,
+ 'amount': round(amt,2),
'intra_code': row['intra_code'],
'code': intra_code})
- xmldict.update({'dnum': dnum, 'clientnbr': str(seq), 'amountsum': amount_sum, 'partner_wo_vat': p_count})
+ xmldict.update({'dnum': dnum, 'clientnbr': str(seq), 'amountsum': round(amount_sum,2), 'partner_wo_vat': p_count})
return xmldict
def create_xml(self, cursor, user, ids, context=None):
diff --git a/addons/l10n_be_hr_payroll_account/__openerp__.py b/addons/l10n_be_hr_payroll_account/__openerp__.py
index 7ba7caaa3e0..f9e078a0e49 100644
--- a/addons/l10n_be_hr_payroll_account/__openerp__.py
+++ b/addons/l10n_be_hr_payroll_account/__openerp__.py
@@ -32,6 +32,7 @@ Accounting Data for Belgian Payroll Rules.
'auto_install': True,
'demo': [],
'data':[
+ 'l10n_be_wizard.yml',
'l10n_be_hr_payroll_account_data.xml',
'data/hr.salary.rule.csv',
],
diff --git a/addons/l10n_be/l10n_be_wizard.yml b/addons/l10n_be_hr_payroll_account/l10n_be_wizard.yml
similarity index 100%
rename from addons/l10n_be/l10n_be_wizard.yml
rename to addons/l10n_be_hr_payroll_account/l10n_be_wizard.yml
diff --git a/addons/l10n_be_invoice_bba/invoice.py b/addons/l10n_be_invoice_bba/invoice.py
index fca743928bf..854593a87cc 100644
--- a/addons/l10n_be_invoice_bba/invoice.py
+++ b/addons/l10n_be_invoice_bba/invoice.py
@@ -207,6 +207,19 @@ class account_invoice(osv.osv):
'\nPlease create manually a unique BBA Structured Communication.'))
return super(account_invoice, self).write(cr, uid, ids, vals, context)
+ def copy(self, cr, uid, id, default=None, context=None):
+ default = default or {}
+ invoice = self.browse(cr, uid, id, context=context)
+ if invoice.type in ['out_invoice']:
+ reference_type = invoice.reference_type or 'none'
+ default['reference_type'] = reference_type
+ if reference_type == 'bba':
+ partner = invoice.partner_id
+ default['reference'] = self.generate_bbacomm(cr, uid, id,
+ invoice.type, reference_type,
+ partner.id, '', context=context)['value']['reference']
+ return super(account_invoice, self).copy(cr, uid, id, default, context=context)
+
_columns = {
'reference': fields.char('Communication', size=64, help="The partner reference of this invoice."),
'reference_type': fields.selection(_get_reference_type, 'Communication Type',
diff --git a/addons/l10n_ca/__openerp__.py b/addons/l10n_ca/__openerp__.py
index 945327a06bc..6ba9907b088 100644
--- a/addons/l10n_ca/__openerp__.py
+++ b/addons/l10n_ca/__openerp__.py
@@ -20,7 +20,7 @@
##############################################################################
{
'name': 'Canada - Accounting',
- 'version': '1.1',
+ 'version': '1.2',
'author': 'Savoir-faire Linux',
'website': 'http://www.savoirfairelinux.com',
'category': 'Localization/Account Charts',
@@ -29,6 +29,28 @@ This is the module to manage the English and French - Canadian accounting chart
===========================================================================================
Canadian accounting charts and localizations.
+
+Fiscal positions
+----------------
+
+When considering taxes to be applied, it is the province where the delivery occurs that matters.
+Therefore we decided to implement the most common case in the fiscal positions: delivery is the
+responsibility of the supplier and done at the customer location.
+
+Some examples:
+
+1) You have a customer from another province and you deliver to his location.
+On the customer, set the fiscal position to his province.
+
+2) You have a customer from another province. However this customer comes to your location
+with their truck to pick up products. On the customer, do not set any fiscal position.
+
+3) An international supplier doesn't charge you any tax. Taxes are charged at customs
+by the customs broker. On the supplier, set the fiscal position to International.
+
+4) An international supplier charge you your provincial tax. They are registered with your
+provincial government and remit taxes themselves. On the supplier, do not set any fiscal
+position.
""",
'depends': [
'base',
diff --git a/addons/l10n_ca/account_chart_en.xml b/addons/l10n_ca/account_chart_en.xml
index 0a596bcd4f6..a929e213842 100644
--- a/addons/l10n_ca/account_chart_en.xml
+++ b/addons/l10n_ca/account_chart_en.xml
@@ -131,7 +131,7 @@
other
-
+
GST receivable
@@ -140,17 +140,43 @@
other
-
+
PST/QST receivable
1183
+ view
+
+ HST receivable
+
+
+
+ 11831
+
other
-
- HST receivable
+
+ HST receivable - 13%
+
+
+
+ 11832
+
+ other
+
+
+ HST receivable - 14%
+
+
+
+ 11833
+
+ other
+
+
+ HST receivable - 15%
@@ -257,7 +283,7 @@
other
-
+
GST to pay
@@ -266,17 +292,43 @@
other
-
+
PST/QST to pay
2133
+ view
+
+ HST to pay
+
+
+
+ 21331
+
other
-
- HST to pay
+
+ HST to pay - 13%
+
+
+
+ 21332
+
+ other
+
+
+ HST to pay - 14%
+
+
+
+ 21333
+
+ other
+
+
+ HST to pay - 15%
diff --git a/addons/l10n_ca/account_chart_fr.xml b/addons/l10n_ca/account_chart_fr.xml
index c168833b733..57e6c84aa71 100644
--- a/addons/l10n_ca/account_chart_fr.xml
+++ b/addons/l10n_ca/account_chart_fr.xml
@@ -130,7 +130,7 @@
other
-
+
TPS à recevoir
@@ -139,17 +139,43 @@
other
-
+
TVP/TVQ à recevoir
1183
+ view
+
+ TVH à recevoir
+
+
+
+ 11831
+
other
-
- TVH à recevoir
+
+ TVH à recevoir - 13%
+
+
+
+ 11832
+
+ other
+
+
+ TVH à recevoir - 14%
+
+
+
+ 11833
+
+ other
+
+
+ TVH à recevoir - 15%
@@ -256,7 +282,7 @@
other
-
+
TPS à payer
@@ -265,17 +291,43 @@
other
-
+
TVP/TVQ à payer
2133
+ view
+
+ TVH à payer
+
+
+
+ 21331
+
other
-
- TVH à payer
+
+ TVH à payer - 13%
+
+
+
+ 21332
+
+ other
+
+
+ TVH à payer - 14%
+
+
+
+ 21333
+
+ other
+
+
+ TVH à payer - 15%
@@ -672,7 +724,7 @@
5112
other
-
+
Achats dans des provinces harmonisées
@@ -680,7 +732,7 @@
5113
other
-
+
Achats dans des provinces non-harmonisées
@@ -688,7 +740,7 @@
5114
other
-
+
Achats à l'étranger
diff --git a/addons/l10n_ca/account_tax_code_en.xml b/addons/l10n_ca/account_tax_code_en.xml
index d446f431c96..77698ae14de 100644
--- a/addons/l10n_ca/account_tax_code_en.xml
+++ b/addons/l10n_ca/account_tax_code_en.xml
@@ -31,6 +31,21 @@
+
+ HST paid - 13%
+
+
+
+
+ HST paid - 14%
+
+
+
+
+ HST paid - 15%
+
+
+
Taxes received
@@ -51,6 +66,21 @@
+
+ HST received - 13%
+
+
+
+
+ HST received - 14%
+
+
+
+
+ HST received - 15%
+
+
+
Taxes Base
@@ -76,6 +106,21 @@
+
+ Base of HST for Sales - 13%
+
+
+
+
+ Base of HST for Sales - 14%
+
+
+
+
+ Base of HST for Sales - 15%
+
+
+
Base of Purchases Tax
@@ -96,5 +141,20 @@
+
+ Base of HST for Purchases - 13%
+
+
+
+
+ Base of HST for Purchases - 14%
+
+
+
+
+ Base of HST for Purchases - 15%
+
+
+
diff --git a/addons/l10n_ca/account_tax_code_fr.xml b/addons/l10n_ca/account_tax_code_fr.xml
index 2b6acd2b992..ac4414922e2 100644
--- a/addons/l10n_ca/account_tax_code_fr.xml
+++ b/addons/l10n_ca/account_tax_code_fr.xml
@@ -16,41 +16,71 @@
-
+
TPS payée
-
+
TVP/TVQ payée
-
+
TVH payée
+
+ TVH payée - 13%
+
+
+
+
+ TVH payée - 14%
+
+
+
+
+ TVH payée - 15%
+
+
+
Taxes reçues
-
+
TPS reçue
-
+
TVP/TVQ reçue
-
+
TVH reçue
+
+ TVH reçue - 13%
+
+
+
+
+ TVH reçue - 14%
+
+
+
+
+ TVH reçue - 15%
+
+
+
Base de taxes
@@ -61,40 +91,70 @@
-
+
Base de la TPS pour les ventes
-
+
Base de la TVP/TVQ pour les ventes
-
+
Base de la TVH pour les ventes
+
+ Base de la TVH pour les ventes - 13%
+
+
+
+
+ Base de la TVH pour les ventes - 14%
+
+
+
+
+ Base de la TVH pour les ventes - 15%
+
+
+
Base des taxes d'achats
-
+
Base de la TPS pour les achats
-
+
Base de la TVP/TVQ pour les achats
-
+
Base de la TVH pour les achats
+
+ Base de la TVH pour les achats - 13%
+
+
+
+
+ Base de la TVH pour les achats - 14%
+
+
+
+
+ Base de la TVH pour les achats - 15%
+
+
+
diff --git a/addons/l10n_ca/account_tax_en.xml b/addons/l10n_ca/account_tax_en.xml
index f0d2670d077..4c15ebb68ed 100644
--- a/addons/l10n_ca/account_tax_en.xml
+++ b/addons/l10n_ca/account_tax_en.xml
@@ -4,6 +4,53 @@
+
+
+
+
+ GST + PST for sales (BC)
+ GSTPST_BC_SALE
+ sale
+ 1
+ percent
+ 1
+
+
+
+
+ GST for sales - 5% (BC)
+ GST
+ sale
+ 0.050000
+ percent
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+ PST for sales - 7% (BC)
+ PST
+ sale
+ 0.070000
+ percent
+ 2
+
+
+
+
+
+
+
+
+
@@ -13,6 +60,7 @@
sale
1
percent
+
@@ -35,10 +83,10 @@
- PST for sales - 7%
+ PST for sales - 8% (MB)
PST
sale
- 0.070000
+ 0.080000
percent
2
@@ -50,65 +98,19 @@
-
-
-
-
- GST + PST for sales (PE)
- GSTPST_PE_SALE
- sale
- 1
- 1
- percent
-
-
-
-
- GST for sales - 5% (PE)
- GST
- sale
- 0.050000
- percent
- 1
-
-
-
-
-
-
-
-
-
-
-
-
- PST for sale - 10%
- PST
- sale
- 0.100000
- percent
- 2
-
-
-
-
-
-
-
-
-
-
+
GST + QST for sales
GSTQST_SALE
sale
1
percent
+
-
+
GST for sales - 5% (QC)
GST
@@ -122,10 +124,10 @@
-
+
-
+
QST for sales - 9.975%
QST
@@ -139,7 +141,7 @@
-
+
@@ -151,6 +153,7 @@
sale
1
percent
+
@@ -190,21 +193,6 @@
-
-
- HST for sales - 12%
- HST12_SALE
- sale
- 0.120000
- percent
-
-
-
-
-
-
-
-
HST for sales - 13%
@@ -212,27 +200,27 @@
sale
0.130000
percent
-
-
-
-
-
-
+
+
+
+
+
+
-
+
- HST for sales - 13.5%
- HST135_SALE
+ HST for sales - 14%
+ HST14_SALE
sale
- 0.135000
+ 0.14000
percent
-
-
-
-
-
-
+
+
+
+
+
+
@@ -242,12 +230,12 @@
sale
0.150000
percent
-
-
-
-
-
-
+
+
+
+
+
+
@@ -267,9 +255,55 @@
-
+
+
+
+
+ GST + PST for purchases (BC)
+ GSTPST_BC_PURC
+ purchase
+ 1
+ percent
+ 1
+
+
+
+
+ GST for purchases - 5% (BC)
+ GST
+ purchase
+ 0.050000
+ percent
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+ PST for purchases - 7% (BC)
+ PST
+ purchase
+ 0.070000
+ percent
+ 2
+
+
+
+
+
+
+
+
+
@@ -279,6 +313,7 @@
purchase
1
percent
+
@@ -301,10 +336,10 @@
- PST for purchases - 7%
+ PST for purchases - 8% (MB)
PST
purchase
- 0.070000
+ 0.080000
percent
2
@@ -316,65 +351,19 @@
-
-
-
-
- GST + PST for purchases (PE)
- GSTPST_PE_PURC
- purchase
- 1
- 1
- percent
-
-
-
-
- GST for purchases - 5% (PE)
- GST
- purchase
- 0.050000
- percent
- 1
-
-
-
-
-
-
-
-
-
-
-
-
- PST for purchases - 10%
- PST
- purchase
- 0.100000
- percent
- 2
-
-
-
-
-
-
-
-
-
-
+
GST + QST for purchases
GSTQST_PURC
purchase
1
percent
+
-
+
GST for purchases - 5% (QC)
GST
@@ -388,10 +377,10 @@
-
+
-
+
QST for purchases - 9.975%
QST
@@ -405,7 +394,7 @@
-
+
@@ -417,6 +406,7 @@
purchase
1
percent
+
@@ -456,21 +446,6 @@
-
-
- HST for purchases - 12%
- HST12_PURC
- purchase
- 0.120000
- percent
-
-
-
-
-
-
-
-
HST for purchases - 13%
@@ -478,27 +453,27 @@
purchase
0.130000
percent
-
-
-
-
-
-
+
+
+
+
+
+
-
+
- HST for purchases - 13.5%
- HST135_PURC
+ HST for purchases - 14%
+ HST14_PURC
purchase
- 0.135000
+ 0.140000
percent
-
-
-
-
-
-
+
+
+
+
+
+
@@ -508,12 +483,12 @@
purchase
0.150000
percent
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/addons/l10n_ca/account_tax_fr.xml b/addons/l10n_ca/account_tax_fr.xml
index c34f329be3a..6c37befa139 100644
--- a/addons/l10n_ca/account_tax_fr.xml
+++ b/addons/l10n_ca/account_tax_fr.xml
@@ -4,18 +4,66 @@
+
+
+
+
+ TPS + TVP sur les ventes (BC)
+ TPSTVP_BC_SALE
+ sale
+ 1
+ 1
+ percent
+
+
+
+
+ TPS sur les ventes - 5% (BC)
+ TPS
+ sale
+ 0.050000
+ percent
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+ TVP sur les ventes - 7% (BC)
+ TVP
+ sale
+ 0.070000
+ percent
+ 2
+
+
+
+
+
+
+
+
+
-
+
TPS + TVP sur les ventes (MB)
TPSTVP_MB_SALE
sale
1
percent
+
-
+
TPS sur les ventes - 5% (MB)
TPS
@@ -26,89 +74,43 @@
-
-
-
-
-
+
+
+
+
+
-
+
- TVP sur les ventes - 7%
+ TVP sur les ventes - 8% (MB)
TVP
sale
- 0.070000
+ 0.080000
percent
2
-
-
-
-
-
-
-
-
-
-
-
- TPS + TVP sur les ventes (PE)
- TPSTVP_PE_SALE
- sale
- 1
- 1
- percent
-
-
-
-
- TPS sur les ventes - 5% (PE)
- TPS
- sale
- 0.050000
- percent
- 1
-
-
-
-
-
-
-
-
-
-
-
-
- TVP for sale - 10%
- TVP
- sale
- 0.100000
- percent
- 2
-
-
-
-
-
-
-
+
+
+
+
+
-
+
TPS + TVQ sur les ventes
TPSTVQ_SALE
sale
1
percent
+
-
+
TPS sur les ventes - 5% (QC)
TPS
@@ -118,11 +120,11 @@
1
-
-
-
-
-
+
+
+
+
+
@@ -135,25 +137,26 @@
2
-
-
-
-
-
+
+
+
+
+
-
+
TPS + TVP sur les ventes (SK)
TPSTVP_SK_SALE
sale
1
percent
+
-
+
TPS sur les ventes - 5% (SK)
TPS
@@ -164,14 +167,14 @@
-
-
-
-
-
+
+
+
+
+
-
+
TVP sur les ventes - 5% (SK)
TVP
@@ -181,78 +184,63 @@
2
-
-
-
-
-
+
+
+
+
+
-
-
- TVH sur les ventes - 12%
- TVH12_SALE
- sale
- 0.120000
- percent
-
-
-
-
-
-
-
-
-
+
TVH sur les ventes - 13%
TVH13_SALE
sale
0.130000
percent
-
-
-
-
-
-
+
+
+
+
+
+
-
+
- TVH sur les ventes - 13.5%
- TVH135_SALE
+ TVH sur les ventes - 14%
+ TVH14_SALE
sale
- 0.135000
+ 0.140000
percent
-
-
-
-
-
-
+
+
+
+
+
+
-
+
TVH sur les ventes - 15%
TVH15_SALE
sale
0.150000
percent
-
-
-
-
-
-
+
+
+
+
+
+
-
+
TPS sur les ventes - 5%
TPS_SALE
@@ -261,27 +249,75 @@
percent
-
-
-
-
+
+
+
+
+
+
+
+
+ TPS + TVP sur les achats (BC)
+ TPSTVP_BC_PURC
+ purchase
+ 1
+ percent
+ 1
+
+
+
+
+ TPS sur les achats - 5% (BC)
+ TPS
+ purchase
+ 0.050000
+ percent
+ 1
+
+
+
+
+
+
+
+
+
+
+
+
+ TVP sur les achats - 7% (BC)
+ TVP
+ purchase
+ 0.070000
+ percent
+ 2
+
+
+
+
+
+
+
+
+
-
+
TPS + TVP sur les achats (MB)
TPSTVP_MB_PURC
purchase
1
percent
+
-
+
TPS sur les achats - 5% (MB)
TPS
@@ -292,89 +328,43 @@
-
-
-
-
-
+
+
+
+
+
-
+
- TVP sur les achats - 7%
+ TVP sur les achats - 8% (MB)
TVP
purchase
- 0.070000
+ 0.080000
percent
2
-
-
-
-
-
-
-
-
-
-
-
- TPS + TVP sur les achats (PE)
- TPSTVP_PE_PURC
- purchase
- 1
- 1
- percent
-
-
-
-
- TPS sur les achats - 5% (PE)
- TPS
- purchase
- 0.050000
- percent
- 1
-
-
-
-
-
-
-
-
-
-
-
-
- TVP sur les achats - 10%
- TVP
- purchase
- 0.100000
- percent
- 2
-
-
-
-
-
-
-
+
+
+
+
+
-
+
TPS + TVQ sur les achats
TPSTVQ_PURC
purchase
1
percent
+
-
+
TPS sur les achats - 5% (QC)
TPS
@@ -384,11 +374,11 @@
1
-
-
-
-
-
+
+
+
+
+
@@ -401,25 +391,26 @@
2
-
-
-
-
-
+
+
+
+
+
-
+
TPS + TVP sur les achats (SK)
TPSTVP_SK_PURC
purchase
1
percent
+
-
+
TPS sur les achats - 5% (SK)
TPS
@@ -430,14 +421,14 @@
-
-
-
-
-
+
+
+
+
+
-
+
TVP sur les achats - 5% (SK)
TVP
@@ -447,78 +438,63 @@
2
-
-
-
-
-
+
+
+
+
+
-
-
- TVH sur les achats - 12%
- TVH12_PURC
- purchase
- 0.120000
- percent
-
-
-
-
-
-
-
-
-
+
TVH sur les achats - 13%
TVH13_PURC
purchase
0.130000
percent
-
-
-
-
-
-
+
+
+
+
+
+
-
+
- TVH sur les achats - 13.5%
- TVH135_PURC
+ TVH sur les achats - 14%
+ TVH14_PURC
purchase
- 0.135000
+ 0.140000
percent
-
-
-
-
-
-
+
+
+
+
+
+
-
+
TVH sur les achats - 15%
TVH15_PURC
purchase
0.150000
percent
-
-
-
-
-
-
+
+
+
+
+
+
-
+
TPS sur les achats - 5%
TPS_PURC
@@ -527,10 +503,10 @@
percent
-
-
-
-
+
+
+
+
diff --git a/addons/l10n_ca/doc/Taxes.csv b/addons/l10n_ca/doc/Taxes.csv
new file mode 100644
index 00000000000..368b06d1c1a
--- /dev/null
+++ b/addons/l10n_ca/doc/Taxes.csv
@@ -0,0 +1,23 @@
+;Product/Service is delivered in;;;;;;;;;;;;;
+Supplier is in ;Alberta;British Columbia;Manitoba;New Brunswick;"Newfoundland
+And Labrador";Nova Scotia;"Northwest
+Territories";Nunavut;Ontario;"Prince Edward
+Islands";Quebec;Saskatchewan;Yukon;International
+Alberta;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+British Columbia;GST – 5%;"GST – 5%
+PST – 7%";GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+Manitoba;GST – 5%;GST – 5%;"GST – 5%
+PST – 8%";HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+New Brunswick;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+Newfoundland and Labrador;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+Nova Scotia;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+Northwest Territories;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+Nunavut;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+Ontario;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+Prince Edward Islands;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+Quebec;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;"GST – 5%
+QST – 9,975%";GST – 5%;GST – 5%;
+Saskatchewan;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;"GST – 5%
+PST – 5%";GST – 5%;
+Yukon;GST – 5%;GST – 5%;GST – 5%;HST – 13%;HST – 13%;HST – 15%;GST – 5%;GST – 5%;HST – 13%;HST – 14%;GST – 5%;GST – 5%;GST – 5%;
+International;;;;;;;;;;;;;;
diff --git a/addons/l10n_ca/fiscal_templates_en.xml b/addons/l10n_ca/fiscal_templates_en.xml
index a3bab5b89dd..5bdd72b0c1d 100644
--- a/addons/l10n_ca/fiscal_templates_en.xml
+++ b/addons/l10n_ca/fiscal_templates_en.xml
@@ -4,653 +4,1543 @@
-
- Provincial Regime (PROV)
+
+ Alberta (AB)
-
- Harmonized Provinces Regime (12%) (BC)
+
+ British Columbia (BC)
-
- Harmonized Provinces Regime (13%) (ON, NB, NL)
+
+ Manitoba (MB)
-
- Harmonized Provinces Regime (13.5%)
+
+ New Brunswick (NB)
-
- Harmonized Provinces Regime (15%) (NS)
+
+ Newfoundland and Labrador (NL)
-
- Non-Harmonized Provinces Regime (AB, MB, SK, PE, NT, NU, YT)
+
+ Nova Scotia (NS)
-
- International Regime (INTL)
+
+ Northwest Territories (NT)
-
+
+ Nunavut (NU)
+
+
+
+
+ Ontario (ON)
+
+
+
+
+ Prince Edward Islands (PE)
+
+
+
+
+ Quebec (QC)
+
+
+
+
+ Saskatchewan (SK)
+
+
+
+
+ Yukon (YT)
+
+
+
+
+ International (INTL)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+ Already created by nb2mb_sale
+
+
+
+
+
-
-
-
-
+ Already creted by nb2ns_sale
+
+
+
+
-
-
-
-
+ Already creted by nb2nt_sale
+
+
+
+
-
-
-
-
+ Already created nb2nu_sale
+
+
+
+
-
-
-
-
+ Already created by nb2pe_sale
+
+
+
+
-
-
-
-
+ Already created by nb2qc_sale
+
+
+
+
-
-
-
+ Already created by nb2sk_sale
+
+
+
+
-
+ Already created by nb2yt_sale
+
+
+
+
+
-
-
-
-
+ Already created by nb2intl_sale
+
+
+
+ -->
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+ Already created by ab2ns_sale
+
+
+
+
+
-
-
-
-
+ Already created by ab2on_sale
+
+
+
+
-
-
-
-
+ Already created by ab2pe_sale
+
+
+
+
-
-
-
-
+ Already created by ab2intl_sale
+
+
+
+ -->
-
-
-
-
+
+
+
+
+
-
-
-
+
+ Already created by ab2nl_sale
+
+
+
+
+
-
-
-
-
+ Already created by ab2ns_sale
+
+
+
+
-
-
-
-
+ Already created by ab2on_sale
+
+
+
+
-
-
-
-
+ Already created by ab2pe_sale
+
+
+
+
-
-
-
-
+ Already created by ab2intl_sale
+
+
+
+ -->
+
+
-
-
-
-
+
-
-
-
+
+
+
+ Already created by nb2mb_sale
+
+
+
+
+
+ Already created by nb2ns_sale
+
+
+
+
+
-
+ Already created by nb2nt_sale
+
+
+
+
+
+
+ Already created nb2nu_sale
+
+
+
+
+
-
-
-
-
+ Already created by nb2pe_sale
+
+
+
+
-
-
-
-
+ Already created by nb2qc_sale
+
+
+
+
-
-
-
-
+ Already created by nb2sk_sale
+
+
+
+
-
-
-
-
+ Already created by nb2yt_sale
+
+
+
+
-
-
-
+ Already created by nb2intl_sale
+
+
+
+ -->
-
+
-
-
-
-
+
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
diff --git a/addons/l10n_ca/fiscal_templates_fr.xml b/addons/l10n_ca/fiscal_templates_fr.xml
index b01ab0985ea..465f53a1229 100644
--- a/addons/l10n_ca/fiscal_templates_fr.xml
+++ b/addons/l10n_ca/fiscal_templates_fr.xml
@@ -4,653 +4,1543 @@
-
- Régime Provincial (PROV)
+
+ Alberta (AB)
-
- Régime Provinces Harmonisées à 12% (BC)
+
+ British Columbia (BC)
-
- Régime Provinces Harmonisées à 13% (NB, ON, NL)
+
+ Manitoba (MB)
-
- Régime Provinces Harmonisées à 13.5% ()
+
+ New Brunswick (NB)
-
- Régime Provinces Harmonisées à 15% (NS)
+
+ Newfoundland and Labrador (NL)
-
- Régime Provinces Non-Harmonisées (AB, MB, SK, PE, NT, NU, YT)
+
+ Nova Scotia (NS)
-
- Régime International (INTL)
+
+ Northwest Territories (NT)
-
+
+ Nunavut (NU)
+
+
+
+
+ Ontario (ON)
+
+
+
+
+ Prince Edward Islands (PE)
+
+
+
+
+ Quebec (QC)
+
+
+
+
+ Saskatchewan (SK)
+
+
+
+
+ Yukon (YT)
+
+
+
+
+ International (INTL)
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+ Already created by nb2mb_sale
+
+
+
+
+
-
-
-
-
+ Already creted by nb2ns_sale
+
+
+
+
-
-
-
-
+ Already creted by nb2nt_sale
+
+
+
+
-
-
-
-
+ Already created nb2nu_sale
+
+
+
+
-
-
-
-
+ Already created by nb2pe_sale
+
+
+
+
-
-
-
-
+ Already created by nb2qc_sale
+
+
+
+
-
-
-
+ Already created by nb2sk_sale
+
+
+
+
-
+ Already created by nb2yt_sale
+
+
+
+
+
-
-
-
-
+ Already created by nb2intl_sale
+
+
+
+ -->
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+ Already created by ab2ns_sale
+
+
+
+
+
-
-
-
-
+ Already created by ab2on_sale
+
+
+
+
-
-
-
-
+ Already created by ab2pe_sale
+
+
+
+
-
-
-
-
+ Already created by ab2intl_sale
+
+
+
+ -->
-
-
-
-
+
+
+
+
+
-
-
-
+
+ Already created by ab2nl_sale
+
+
+
+
+
-
-
-
-
+ Already created by ab2ns_sale
+
+
+
+
-
-
-
-
+ Already created by ab2on_sale
+
+
+
+
-
-
-
-
+ Already created by ab2pe_sale
+
+
+
+
-
-
-
-
+ Already created by ab2intl_sale
+
+
+
+ -->
+
+
-
-
-
-
+
-
-
-
+
+
+
+ Already created by nb2mb_sale
+
+
+
+
+
+ Already created by nb2ns_sale
+
+
+
+
+
-
+ Already created by nb2nt_sale
+
+
+
+
+
+
+ Already created nb2nu_sale
+
+
+
+
+
-
-
-
-
+ Already created by nb2pe_sale
+
+
+
+
-
-
-
-
+ Already created by nb2qc_sale
+
+
+
+
-
-
-
-
+ Already created by nb2sk_sale
+
+
+
+
-
-
-
-
+ Already created by nb2yt_sale
+
+
+
+
-
-
-
+ Already created by nb2intl_sale
+
+
+
+ -->
-
+
-
-
-
-
+
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
-
-
-
-
+
+
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
-
-
-
-
+
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
+
+
+
+
-
+
+
+
+
+
-
-
-
-
+
+
+
+
-
-
-
-
+
+