--- /tmp/dsg/dolibarr/htdocs/includes/jquery/js/github_19.0.3_jquery.js +++ /tmp/dsg/dolibarr/htdocs/includes/jquery/js/client_jquery.js @@ -2 +2 @@ - * jQuery JavaScript Library v3.6.4 + * jQuery JavaScript Library v3.4.1 @@ -8 +8 @@ - * Copyright OpenJS Foundation and other contributors + * Copyright JS Foundation and other contributors @@ -12 +12 @@ - * Date: 2023-03-08T15:28Z + * Date: 2019-05-01T21:04Z @@ -26 +26 @@ - // See ticket trac-14549 for more info. + // See ticket #14549 for more info. @@ -49,0 +50,2 @@ +var document = window.document; + @@ -54,6 +56 @@ -var flat = arr.flat ? function( array ) { - return arr.flat.call( array ); -} : function( array ) { - return arr.concat.apply( [], array ); -}; - +var concat = arr.concat; @@ -79,10 +76,6 @@ - // Support: Chrome <=57, Firefox <=52 - // In some browsers, typeof returns "function" for HTML elements - // (i.e., `typeof document.createElement( "object" ) === "function"`). - // We don't want to classify *any* DOM node as a function. - // Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5 - // Plus for old WebKit, typeof returns "function" for HTML collections - // (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756) - return typeof obj === "function" && typeof obj.nodeType !== "number" && - typeof obj.item !== "function"; - }; + // Support: Chrome <=57, Firefox <=52 + // In some browsers, typeof returns "function" for HTML elements + // (i.e., `typeof document.createElement( "object" ) === "function"`). + // We don't want to classify *any* DOM node as a function. + return typeof obj === "function" && typeof obj.nodeType !== "number"; + }; @@ -95,2 +87,0 @@ - -var document = window.document; @@ -154 +145 @@ - version = "3.6.4", + version = "3.4.1", @@ -162 +153,5 @@ - }; + }, + + // Support: Android <=4.0 only + // Make sure we trim BOM and NBSP + rtrim = /^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g; @@ -226,12 +220,0 @@ - }, - - even: function() { - return this.pushStack( jQuery.grep( this, function( _elem, i ) { - return ( i + 1 ) % 2; - } ) ); - }, - - odd: function() { - return this.pushStack( jQuery.grep( this, function( _elem, i ) { - return i % 2; - } ) ); @@ -373,4 +356,3 @@ - // Evaluates a script in a provided context; falls back to the global one - // if not specified. - globalEval: function( code, options, doc ) { - DOMEval( code, { nonce: options && options.nonce }, doc ); + // Evaluates a script in a global context + globalEval: function( code, options ) { + DOMEval( code, { nonce: options && options.nonce } ); @@ -399,0 +382,7 @@ + // Support: Android <=4.0 only + trim: function( text ) { + return text == null ? + "" : + ( text + "" ).replace( rtrim, "" ); + }, + @@ -408 +397 @@ - [ arr ] : arr + [ arr ] : arr @@ -486 +475 @@ - return flat( ret ); + return concat.apply( [], ret ); @@ -503,3 +492,3 @@ - function( _i, name ) { - class2type[ "[object " + name + "]" ] = name.toLowerCase(); - } ); +function( i, name ) { + class2type[ "[object " + name + "]" ] = name.toLowerCase(); +} ); @@ -525 +514 @@ - * Sizzle CSS Selector Engine v2.3.10 + * Sizzle CSS Selector Engine v2.3.4 @@ -532 +521 @@ - * Date: 2023-02-14 + * Date: 2019-04-08 @@ -534 +523,2 @@ -( function( window ) { +(function( window ) { + @@ -574 +564 @@ - hasOwn = ( {} ).hasOwnProperty, + hasOwn = ({}).hasOwnProperty, @@ -577 +567 @@ - pushNative = arr.push, + push_native = arr.push, @@ -580 +569,0 @@ - @@ -587 +576 @@ - if ( list[ i ] === elem ) { + if ( list[i] === elem ) { @@ -594,2 +583 @@ - booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|" + - "ismap|loop|multiple|open|readonly|required|scoped", + booleans = "checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped", @@ -602,3 +590,2 @@ - // https://www.w3.org/TR/css-syntax-3/#ident-token-diagram - identifier = "(?:\\\\[\\da-fA-F]{1,6}" + whitespace + - "?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", + // http://www.w3.org/TR/CSS21/syndata.html#value-def-identifier + identifier = "(?:\\\\.|[\\w-]|[^\0-\\xa0])+", @@ -608 +594,0 @@ - @@ -611,5 +597,3 @@ - - // "Attribute values must be CSS identifiers [capture 5] - // or strings [capture 3 or capture 4]" - "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + - whitespace + "*\\]", + // "Attribute values must be CSS identifiers [capture 5] or strings [capture 3 or capture 4]" + "*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|(" + identifier + "))|)" + whitespace + + "*\\]", @@ -618 +601,0 @@ - @@ -622 +604,0 @@ - @@ -625 +606,0 @@ - @@ -632,2 +613 @@ - rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + - whitespace + "+$", "g" ), + rtrim = new RegExp( "^" + whitespace + "+|((?:^|[^\\\\])(?:\\\\.)*)" + whitespace + "+$", "g" ), @@ -636,2 +616 @@ - rleadingCombinator = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + - "*" ), + rcombinators = new RegExp( "^" + whitespace + "*([>+~]|" + whitespace + ")" + whitespace + "*" ), @@ -649,3 +628,3 @@ - "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + - whitespace + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + - whitespace + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), + "CHILD": new RegExp( "^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\(" + whitespace + + "*(even|odd|(([+-]|)(\\d*)n|)" + whitespace + "*(?:([+-]|)" + whitespace + + "*(\\d+)|))" + whitespace + "*\\)|)", "i" ), @@ -653 +631,0 @@ - @@ -656,3 +634,2 @@ - "needsContext": new RegExp( "^" + whitespace + - "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + whitespace + - "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) + "needsContext": new RegExp( "^" + whitespace + "*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\(" + + whitespace + "*((?:-\\d)?\\d*)" + whitespace + "*\\)|)(?=[^-]|$)", "i" ) @@ -674,13 +651,8 @@ - runescape = new RegExp( "\\\\[\\da-fA-F]{1,6}" + whitespace + "?|\\\\([^\\r\\n\\f])", "g" ), - funescape = function( escape, nonHex ) { - var high = "0x" + escape.slice( 1 ) - 0x10000; - - return nonHex ? - - // Strip the backslash prefix from a non-hex escape sequence - nonHex : - - // Replace a hexadecimal escape sequence with the encoded Unicode code point - // Support: IE <=11+ - // For values outside the Basic Multilingual Plane (BMP), manually construct a - // surrogate pair + runescape = new RegExp( "\\\\([\\da-f]{1,6}" + whitespace + "?|(" + whitespace + ")|.)", "ig" ), + funescape = function( _, escaped, escapedWhitespace ) { + var high = "0x" + escaped - 0x10000; + // NaN means non-codepoint + // Support: Firefox<24 + // Workaround erroneous numeric interpretation of +"0x" + return high !== high || escapedWhitespace ? + escaped : @@ -687,0 +660 @@ + // BMP codepoint @@ -688,0 +662 @@ + // Supplemental Plane codepoint (surrogate pair) @@ -704,2 +678 @@ - return ch.slice( 0, -1 ) + "\\" + - ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; + return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " "; @@ -730 +703 @@ - ( arr = slice.call( preferredDoc.childNodes ) ), + (arr = slice.call( preferredDoc.childNodes )), @@ -733 +705,0 @@ - @@ -736 +707,0 @@ - // eslint-disable-next-line no-unused-expressions @@ -743 +714 @@ - pushNative.apply( target, slice.call( els ) ); + push_native.apply( target, slice.call(els) ); @@ -751 +721,0 @@ - @@ -753 +723 @@ - while ( ( target[ j++ ] = els[ i++ ] ) ) {} + while ( (target[j++] = els[i++]) ) {} @@ -777 +747,4 @@ - setDocument( context ); + + if ( ( context ? context.ownerDocument || context : preferredDoc ) !== document ) { + setDocument( context ); + } @@ -784 +757 @@ - if ( nodeType !== 11 && ( match = rquickExpr.exec( selector ) ) ) { + if ( nodeType !== 11 && (match = rquickExpr.exec( selector )) ) { @@ -787 +760 @@ - if ( ( m = match[ 1 ] ) ) { + if ( (m = match[1]) ) { @@ -791 +764 @@ - if ( ( elem = context.getElementById( m ) ) ) { + if ( (elem = context.getElementById( m )) ) { @@ -810 +783 @@ - if ( newContext && ( elem = newContext.getElementById( m ) ) && + if ( newContext && (elem = newContext.getElementById( m )) && @@ -820 +793 @@ - } else if ( match[ 2 ] ) { + } else if ( match[2] ) { @@ -825 +798 @@ - } else if ( ( m = match[ 3 ] ) && support.getElementsByClassName && + } else if ( (m = match[3]) && support.getElementsByClassName && @@ -836 +809 @@ - ( !rbuggyQSA || !rbuggyQSA.test( selector ) ) && + (!rbuggyQSA || !rbuggyQSA.test( selector )) && @@ -840 +813 @@ - ( nodeType !== 1 || context.nodeName.toLowerCase() !== "object" ) ) { + (nodeType !== 1 || context.nodeName.toLowerCase() !== "object") ) { @@ -849,2 +821,0 @@ - // The technique has to be used as well when a leading combinator is used - // as such selectors are not recognized by querySelectorAll. @@ -852,17 +823,7 @@ - if ( nodeType === 1 && - ( rdescend.test( selector ) || rleadingCombinator.test( selector ) ) ) { - - // Expand context for sibling selectors - newContext = rsibling.test( selector ) && testContext( context.parentNode ) || - context; - - // We can use :scope instead of the ID hack if the browser - // supports it & if we're not changing the context. - if ( newContext !== context || !support.scope ) { - - // Capture the context ID, setting it first if necessary - if ( ( nid = context.getAttribute( "id" ) ) ) { - nid = nid.replace( rcssescape, fcssescape ); - } else { - context.setAttribute( "id", ( nid = expando ) ); - } + if ( nodeType === 1 && rdescend.test( selector ) ) { + + // Capture the context ID, setting it first if necessary + if ( (nid = context.getAttribute( "id" )) ) { + nid = nid.replace( rcssescape, fcssescape ); + } else { + context.setAttribute( "id", (nid = expando) ); @@ -875,2 +836 @@ - groups[ i ] = ( nid ? "#" + nid : ":scope" ) + " " + - toSelector( groups[ i ] ); + groups[i] = "#" + nid + " " + toSelector( groups[i] ); @@ -878,0 +839,4 @@ + + // Expand context for sibling selectors + newContext = rsibling.test( selector ) && testContext( context.parentNode ) || + context; @@ -911 +874,0 @@ - @@ -914 +876,0 @@ - @@ -918 +880 @@ - return ( cache[ key + " " ] = value ); + return (cache[ key + " " ] = value); @@ -937 +899 @@ - var el = document.createElement( "fieldset" ); + var el = document.createElement("fieldset"); @@ -941 +903 @@ - } catch ( e ) { + } catch (e) { @@ -944 +905,0 @@ - @@ -949 +909,0 @@ - @@ -961 +921 @@ - var arr = attrs.split( "|" ), + var arr = attrs.split("|"), @@ -965 +925 @@ - Expr.attrHandle[ arr[ i ] ] = handler; + Expr.attrHandle[ arr[i] ] = handler; @@ -987 +947 @@ - while ( ( cur = cur.nextSibling ) ) { + while ( (cur = cur.nextSibling) ) { @@ -1015 +975 @@ - return ( name === "input" || name === "button" ) && elem.type === type; + return (name === "input" || name === "button") && elem.type === type; @@ -1058 +1018 @@ - inDisabledFieldset( elem ) === disabled; + inDisabledFieldset( elem ) === disabled; @@ -1080 +1040 @@ - return markFunction( function( argument ) { + return markFunction(function( argument ) { @@ -1082 +1042 @@ - return markFunction( function( seed, matches ) { + return markFunction(function( seed, matches ) { @@ -1089,6 +1049,6 @@ - if ( seed[ ( j = matchIndexes[ i ] ) ] ) { - seed[ j ] = !( matches[ j ] = seed[ j ] ); - } - } - } ); - } ); + if ( seed[ (j = matchIndexes[i]) ] ) { + seed[j] = !(matches[j] = seed[j]); + } + } + }); + }); @@ -1115,2 +1075,2 @@ - var namespace = elem && elem.namespaceURI, - docElem = elem && ( elem.ownerDocument || elem ).documentElement; + var namespace = elem.namespaceURI, + docElem = (elem.ownerDocument || elem).documentElement; @@ -1134,5 +1094 @@ - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( doc == document || doc.nodeType !== 9 || !doc.documentElement ) { + if ( doc === document || doc.nodeType !== 9 || !doc.documentElement ) { @@ -1147 +1103 @@ - // Support: IE 9 - 11+, Edge 12 - 18+ + // Support: IE 9-11, Edge @@ -1149,6 +1105,2 @@ - // Support: IE 11+, Edge 17 - 18+ - // IE/Edge sometimes throw a "Permission denied" error when strict-comparing - // two documents; shallow comparisons work. - // eslint-disable-next-line eqeqeq - if ( preferredDoc != document && - ( subWindow = document.defaultView ) && subWindow.top !== subWindow ) { + if ( preferredDoc !== document && + (subWindow = document.defaultView) && subWindow.top !== subWindow ) { @@ -1166,29 +1117,0 @@ - // Support: IE 8 - 11+, Edge 12 - 18+, Chrome <=16 - 25 only, Firefox <=3.6 - 31 only, - // Safari 4 - 5 only, Opera <=11.6 - 12.x only - // IE/Edge & older browsers don't support the :scope pseudo-class. - // Support: Safari 6.0 only - // Safari 6.0 supports :scope but it's an alias of :root there. - support.scope = assert( function( el ) { - docElem.appendChild( el ).appendChild( document.createElement( "div" ) ); - return typeof el.querySelectorAll !== "undefined" && - !el.querySelectorAll( ":scope fieldset div" ).length; - } ); - - // Support: Chrome 105 - 110+, Safari 15.4 - 16.3+ - // Make sure the the `:has()` argument is parsed unforgivingly. - // We include `*` in the test to detect buggy implementations that are - // _selectively_ forgiving (specifically when the list includes at least - // one valid selector). - // Note that we treat complete lack of support for `:has()` as if it were - // spec-compliant support, which is fine because use of `:has()` in such - // environments will fail in the qSA path and fall back to jQuery traversal - // anyway. - support.cssHas = assert( function() { - try { - document.querySelector( ":has(*,:jqfake)" ); - return false; - } catch ( e ) { - return true; - } - } ); - @@ -1201 +1124 @@ - support.attributes = assert( function( el ) { + support.attributes = assert(function( el ) { @@ -1203,2 +1126,2 @@ - return !el.getAttribute( "className" ); - } ); + return !el.getAttribute("className"); + }); @@ -1210,4 +1133,4 @@ - support.getElementsByTagName = assert( function( el ) { - el.appendChild( document.createComment( "" ) ); - return !el.getElementsByTagName( "*" ).length; - } ); + support.getElementsByTagName = assert(function( el ) { + el.appendChild( document.createComment("") ); + return !el.getElementsByTagName("*").length; + }); @@ -1222 +1145 @@ - support.getById = assert( function( el ) { + support.getById = assert(function( el ) { @@ -1225 +1148 @@ - } ); + }); @@ -1229 +1152 @@ - Expr.filter[ "ID" ] = function( id ) { + Expr.filter["ID"] = function( id ) { @@ -1232 +1155 @@ - return elem.getAttribute( "id" ) === attrId; + return elem.getAttribute("id") === attrId; @@ -1235 +1158 @@ - Expr.find[ "ID" ] = function( id, context ) { + Expr.find["ID"] = function( id, context ) { @@ -1242 +1165 @@ - Expr.filter[ "ID" ] = function( id ) { + Expr.filter["ID"] = function( id ) { @@ -1246 +1169 @@ - elem.getAttributeNode( "id" ); + elem.getAttributeNode("id"); @@ -1253 +1176 @@ - Expr.find[ "ID" ] = function( id, context ) { + Expr.find["ID"] = function( id, context ) { @@ -1261 +1184 @@ - node = elem.getAttributeNode( "id" ); + node = elem.getAttributeNode("id"); @@ -1269,2 +1192,2 @@ - while ( ( elem = elems[ i++ ] ) ) { - node = elem.getAttributeNode( "id" ); + while ( (elem = elems[i++]) ) { + node = elem.getAttributeNode("id"); @@ -1283 +1206 @@ - Expr.find[ "TAG" ] = support.getElementsByTagName ? + Expr.find["TAG"] = support.getElementsByTagName ? @@ -1298 +1220,0 @@ - @@ -1304 +1226 @@ - while ( ( elem = results[ i++ ] ) ) { + while ( (elem = results[i++]) ) { @@ -1316 +1238 @@ - Expr.find[ "CLASS" ] = support.getElementsByClassName && function( className, context ) { + Expr.find["CLASS"] = support.getElementsByClassName && function( className, context ) { @@ -1337,2 +1259 @@ - if ( ( support.qsa = rnative.test( document.querySelectorAll ) ) ) { - + if ( (support.qsa = rnative.test( document.querySelectorAll )) ) { @@ -1341,4 +1262 @@ - assert( function( el ) { - - var input; - + assert(function( el ) { @@ -1358 +1276 @@ - if ( el.querySelectorAll( "[msallowcapture^='']" ).length ) { + if ( el.querySelectorAll("[msallowcapture^='']").length ) { @@ -1364 +1282 @@ - if ( !el.querySelectorAll( "[selected]" ).length ) { + if ( !el.querySelectorAll("[selected]").length ) { @@ -1370,14 +1288 @@ - rbuggyQSA.push( "~=" ); - } - - // Support: IE 11+, Edge 15 - 18+ - // IE 11/Edge don't find elements on a `[name='']` query in some cases. - // Adding a temporary attribute to the document before the selection works - // around the issue. - // Interestingly, IE 10 & older don't seem to have the issue. - input = document.createElement( "input" ); - input.setAttribute( "name", "" ); - el.appendChild( input ); - if ( !el.querySelectorAll( "[name='']" ).length ) { - rbuggyQSA.push( "\\[" + whitespace + "*name" + whitespace + "*=" + - whitespace + "*(?:''|\"\")" ); + rbuggyQSA.push("~="); @@ -1389,2 +1294,2 @@ - if ( !el.querySelectorAll( ":checked" ).length ) { - rbuggyQSA.push( ":checked" ); + if ( !el.querySelectorAll(":checked").length ) { + rbuggyQSA.push(":checked"); @@ -1397,10 +1302,5 @@ - rbuggyQSA.push( ".#.+[+~]" ); - } - - // Support: Firefox <=3.6 - 5 only - // Old Firefox doesn't throw on a badly-escaped identifier. - el.querySelectorAll( "\\\f" ); - rbuggyQSA.push( "[\\r\\n\\f]" ); - } ); - - assert( function( el ) { + rbuggyQSA.push(".#.+[+~]"); + } + }); + + assert(function( el ) { @@ -1412 +1312 @@ - var input = document.createElement( "input" ); + var input = document.createElement("input"); @@ -1418 +1318 @@ - if ( el.querySelectorAll( "[name=d]" ).length ) { + if ( el.querySelectorAll("[name=d]").length ) { @@ -1424 +1324 @@ - if ( el.querySelectorAll( ":enabled" ).length !== 2 ) { + if ( el.querySelectorAll(":enabled").length !== 2 ) { @@ -1431 +1331 @@ - if ( el.querySelectorAll( ":disabled" ).length !== 2 ) { + if ( el.querySelectorAll(":disabled").length !== 2 ) { @@ -1435 +1334,0 @@ - // Support: Opera 10 - 11 only @@ -1437,6 +1336,6 @@ - el.querySelectorAll( "*,:x" ); - rbuggyQSA.push( ",.*:" ); - } ); - } - - if ( ( support.matchesSelector = rnative.test( ( matches = docElem.matches || + el.querySelectorAll("*,:x"); + rbuggyQSA.push(",.*:"); + }); + } + + if ( (support.matchesSelector = rnative.test( (matches = docElem.matches || @@ -1446,4 +1345,3 @@ - docElem.msMatchesSelector ) ) ) ) { - - assert( function( el ) { - + docElem.msMatchesSelector) )) ) { + + assert(function( el ) { @@ -1458,16 +1356,5 @@ - } ); - } - - if ( !support.cssHas ) { - - // Support: Chrome 105 - 110+, Safari 15.4 - 16.3+ - // Our regular `try-catch` mechanism fails to detect natively-unsupported - // pseudo-classes inside `:has()` (such as `:has(:contains("Foo"))`) - // in browsers that parse the `:has()` argument as a forgiving selector list. - // https://drafts.csswg.org/selectors/#relational now requires the argument - // to be parsed unforgivingly, but browsers have not yet fully adjusted. - rbuggyQSA.push( ":has" ); - } - - rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join( "|" ) ); - rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join( "|" ) ); + }); + } + + rbuggyQSA = rbuggyQSA.length && new RegExp( rbuggyQSA.join("|") ); + rbuggyMatches = rbuggyMatches.length && new RegExp( rbuggyMatches.join("|") ); @@ -1484,8 +1371 @@ - - // Support: IE <9 only - // IE doesn't have `contains` on `document` so we need to check for - // `documentElement` presence. - // We need to fall back to `a` when `documentElement` is missing - // as `ownerDocument` of elements within `