utopia-project 0.20.0 → 0.20.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
1
  /*!
2
- * jQuery JavaScript Library v3.5.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector
2
+ * jQuery JavaScript Library v3.6.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector
3
3
  * https://jquery.com/
4
4
  *
5
5
  * Includes Sizzle.js
6
6
  * https://sizzlejs.com/
7
7
  *
8
- * Copyright JS Foundation and other contributors
8
+ * Copyright OpenJS Foundation and other contributors
9
9
  * Released under the MIT license
10
10
  * https://jquery.org/license
11
11
  *
12
- * Date: 2020-05-04T22:49Z
12
+ * Date: 2021-03-02T17:08Z
13
13
  */
14
14
  ( function( global, factory ) {
15
15
 
@@ -76,12 +76,16 @@ var support = {};
76
76
 
77
77
  var isFunction = function isFunction( obj ) {
78
78
 
79
- // Support: Chrome <=57, Firefox <=52
80
- // In some browsers, typeof returns "function" for HTML <object> elements
81
- // (i.e., `typeof document.createElement( "object" ) === "function"`).
82
- // We don't want to classify *any* DOM node as a function.
83
- return typeof obj === "function" && typeof obj.nodeType !== "number";
84
- };
79
+ // Support: Chrome <=57, Firefox <=52
80
+ // In some browsers, typeof returns "function" for HTML <object> elements
81
+ // (i.e., `typeof document.createElement( "object" ) === "function"`).
82
+ // We don't want to classify *any* DOM node as a function.
83
+ // Support: QtWeb <=3.8.5, WebKit <=534.34, wkhtmltopdf tool <=0.12.5
84
+ // Plus for old WebKit, typeof returns "function" for HTML collections
85
+ // (e.g., `typeof document.getElementsByTagName("div") === "function"`). (gh-4756)
86
+ return typeof obj === "function" && typeof obj.nodeType !== "number" &&
87
+ typeof obj.item !== "function";
88
+ };
85
89
 
86
90
 
87
91
  var isWindow = function isWindow( obj ) {
@@ -147,7 +151,7 @@ function toType( obj ) {
147
151
 
148
152
 
149
153
  var
150
- version = "3.5.1 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector",
154
+ version = "3.6.0 -ajax,-ajax/jsonp,-ajax/load,-ajax/script,-ajax/var/location,-ajax/var/nonce,-ajax/var/rquery,-ajax/xhr,-manipulation/_evalUrl,-deprecated/ajax-event-alias,-effects,-effects/Tween,-effects/animatedSelector",
151
155
 
152
156
  // Define a local copy of jQuery
153
157
  jQuery = function( selector, context ) {
@@ -401,7 +405,7 @@ jQuery.extend( {
401
405
  if ( isArrayLike( Object( arr ) ) ) {
402
406
  jQuery.merge( ret,
403
407
  typeof arr === "string" ?
404
- [ arr ] : arr
408
+ [ arr ] : arr
405
409
  );
406
410
  } else {
407
411
  push.call( ret, arr );
@@ -496,9 +500,9 @@ if ( typeof Symbol === "function" ) {
496
500
 
497
501
  // Populate the class2type map
498
502
  jQuery.each( "Boolean Number String Function Array Date RegExp Object Error Symbol".split( " " ),
499
- function( _i, name ) {
500
- class2type[ "[object " + name + "]" ] = name.toLowerCase();
501
- } );
503
+ function( _i, name ) {
504
+ class2type[ "[object " + name + "]" ] = name.toLowerCase();
505
+ } );
502
506
 
503
507
  function isArrayLike( obj ) {
504
508
 
@@ -518,14 +522,14 @@ function isArrayLike( obj ) {
518
522
  }
519
523
  var Sizzle =
520
524
  /*!
521
- * Sizzle CSS Selector Engine v2.3.5
525
+ * Sizzle CSS Selector Engine v2.3.6
522
526
  * https://sizzlejs.com/
523
527
  *
524
528
  * Copyright JS Foundation and other contributors
525
529
  * Released under the MIT license
526
530
  * https://js.foundation/
527
531
  *
528
- * Date: 2020-03-14
532
+ * Date: 2021-02-16
529
533
  */
530
534
  ( function( window ) {
531
535
  var i,
@@ -1108,8 +1112,8 @@ support = Sizzle.support = {};
1108
1112
  * @returns {Boolean} True iff elem is a non-HTML XML node
1109
1113
  */
1110
1114
  isXML = Sizzle.isXML = function( elem ) {
1111
- var namespace = elem.namespaceURI,
1112
- docElem = ( elem.ownerDocument || elem ).documentElement;
1115
+ var namespace = elem && elem.namespaceURI,
1116
+ docElem = elem && ( elem.ownerDocument || elem ).documentElement;
1113
1117
 
1114
1118
  // Support: IE <=8
1115
1119
  // Assume HTML when documentElement doesn't yet exist, such as inside loading iframes
@@ -3024,9 +3028,9 @@ var rneedsContext = jQuery.expr.match.needsContext;
3024
3028
 
3025
3029
  function nodeName( elem, name ) {
3026
3030
 
3027
- return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
3031
+ return elem.nodeName && elem.nodeName.toLowerCase() === name.toLowerCase();
3028
3032
 
3029
- };
3033
+ }
3030
3034
  var rsingleTag = ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );
3031
3035
 
3032
3036
 
@@ -3997,8 +4001,8 @@ jQuery.extend( {
3997
4001
  resolveContexts = Array( i ),
3998
4002
  resolveValues = slice.call( arguments ),
3999
4003
 
4000
- // the master Deferred
4001
- master = jQuery.Deferred(),
4004
+ // the primary Deferred
4005
+ primary = jQuery.Deferred(),
4002
4006
 
4003
4007
  // subordinate callback factory
4004
4008
  updateFunc = function( i ) {
@@ -4006,30 +4010,30 @@ jQuery.extend( {
4006
4010
  resolveContexts[ i ] = this;
4007
4011
  resolveValues[ i ] = arguments.length > 1 ? slice.call( arguments ) : value;
4008
4012
  if ( !( --remaining ) ) {
4009
- master.resolveWith( resolveContexts, resolveValues );
4013
+ primary.resolveWith( resolveContexts, resolveValues );
4010
4014
  }
4011
4015
  };
4012
4016
  };
4013
4017
 
4014
4018
  // Single- and empty arguments are adopted like Promise.resolve
4015
4019
  if ( remaining <= 1 ) {
4016
- adoptValue( singleValue, master.done( updateFunc( i ) ).resolve, master.reject,
4020
+ adoptValue( singleValue, primary.done( updateFunc( i ) ).resolve, primary.reject,
4017
4021
  !remaining );
4018
4022
 
4019
4023
  // Use .then() to unwrap secondary thenables (cf. gh-3000)
4020
- if ( master.state() === "pending" ||
4024
+ if ( primary.state() === "pending" ||
4021
4025
  isFunction( resolveValues[ i ] && resolveValues[ i ].then ) ) {
4022
4026
 
4023
- return master.then();
4027
+ return primary.then();
4024
4028
  }
4025
4029
  }
4026
4030
 
4027
4031
  // Multiple arguments are aggregated like Promise.all array elements
4028
4032
  while ( i-- ) {
4029
- adoptValue( resolveValues[ i ], updateFunc( i ), master.reject );
4033
+ adoptValue( resolveValues[ i ], updateFunc( i ), primary.reject );
4030
4034
  }
4031
4035
 
4032
- return master.promise();
4036
+ return primary.promise();
4033
4037
  }
4034
4038
  } );
4035
4039
 
@@ -4180,8 +4184,8 @@ var access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
4180
4184
  for ( ; i < len; i++ ) {
4181
4185
  fn(
4182
4186
  elems[ i ], key, raw ?
4183
- value :
4184
- value.call( elems[ i ], i, fn( elems[ i ], key ) )
4187
+ value :
4188
+ value.call( elems[ i ], i, fn( elems[ i ], key ) )
4185
4189
  );
4186
4190
  }
4187
4191
  }
@@ -5089,10 +5093,7 @@ function buildFragment( elems, context, scripts, selection, ignored ) {
5089
5093
  }
5090
5094
 
5091
5095
 
5092
- var
5093
- rkeyEvent = /^key/,
5094
- rmouseEvent = /^(?:mouse|pointer|contextmenu|drag|drop)|click/,
5095
- rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
5096
+ var rtypenamespace = /^([^.]*)(?:\.(.+)|)/;
5096
5097
 
5097
5098
  function returnTrue() {
5098
5099
  return true;
@@ -5387,8 +5388,8 @@ jQuery.event = {
5387
5388
  event = jQuery.event.fix( nativeEvent ),
5388
5389
 
5389
5390
  handlers = (
5390
- dataPriv.get( this, "events" ) || Object.create( null )
5391
- )[ event.type ] || [],
5391
+ dataPriv.get( this, "events" ) || Object.create( null )
5392
+ )[ event.type ] || [],
5392
5393
  special = jQuery.event.special[ event.type ] || {};
5393
5394
 
5394
5395
  // Use the fix-ed jQuery.Event rather than the (read-only) native event
@@ -5512,12 +5513,12 @@ jQuery.event = {
5512
5513
  get: isFunction( hook ) ?
5513
5514
  function() {
5514
5515
  if ( this.originalEvent ) {
5515
- return hook( this.originalEvent );
5516
+ return hook( this.originalEvent );
5516
5517
  }
5517
5518
  } :
5518
5519
  function() {
5519
5520
  if ( this.originalEvent ) {
5520
- return this.originalEvent[ name ];
5521
+ return this.originalEvent[ name ];
5521
5522
  }
5522
5523
  },
5523
5524
 
@@ -5656,7 +5657,13 @@ function leverageNative( el, type, expectSync ) {
5656
5657
  // Cancel the outer synthetic event
5657
5658
  event.stopImmediatePropagation();
5658
5659
  event.preventDefault();
5659
- return result.value;
5660
+
5661
+ // Support: Chrome 86+
5662
+ // In Chrome, if an element having a focusout handler is blurred by
5663
+ // clicking outside of it, it invokes the handler synchronously. If
5664
+ // that handler calls `.remove()` on the element, the data is cleared,
5665
+ // leaving `result` undefined. We need to guard against this.
5666
+ return result && result.value;
5660
5667
  }
5661
5668
 
5662
5669
  // If this is an inner synthetic event for an event with a bubbling surrogate
@@ -5821,34 +5828,7 @@ jQuery.each( {
5821
5828
  targetTouches: true,
5822
5829
  toElement: true,
5823
5830
  touches: true,
5824
-
5825
- which: function( event ) {
5826
- var button = event.button;
5827
-
5828
- // Add which for key events
5829
- if ( event.which == null && rkeyEvent.test( event.type ) ) {
5830
- return event.charCode != null ? event.charCode : event.keyCode;
5831
- }
5832
-
5833
- // Add which for click: 1 === left; 2 === middle; 3 === right
5834
- if ( !event.which && button !== undefined && rmouseEvent.test( event.type ) ) {
5835
- if ( button & 1 ) {
5836
- return 1;
5837
- }
5838
-
5839
- if ( button & 2 ) {
5840
- return 3;
5841
- }
5842
-
5843
- if ( button & 4 ) {
5844
- return 2;
5845
- }
5846
-
5847
- return 0;
5848
- }
5849
-
5850
- return event.which;
5851
- }
5831
+ which: true
5852
5832
  }, jQuery.event.addProp );
5853
5833
 
5854
5834
  jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateType ) {
@@ -5874,6 +5854,12 @@ jQuery.each( { focus: "focusin", blur: "focusout" }, function( type, delegateTyp
5874
5854
  return true;
5875
5855
  },
5876
5856
 
5857
+ // Suppress native focus or blur as it's already being fired
5858
+ // in leverageNative.
5859
+ _default: function() {
5860
+ return true;
5861
+ },
5862
+
5877
5863
  delegateType: delegateType
5878
5864
  };
5879
5865
  } );
@@ -6541,6 +6527,10 @@ var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
6541
6527
  // set in CSS while `offset*` properties report correct values.
6542
6528
  // Behavior in IE 9 is more subtle than in newer versions & it passes
6543
6529
  // some versions of this test; make sure not to make it pass there!
6530
+ //
6531
+ // Support: Firefox 70+
6532
+ // Only Firefox includes border widths
6533
+ // in computed dimensions. (gh-4529)
6544
6534
  reliableTrDimensions: function() {
6545
6535
  var table, tr, trChild, trStyle;
6546
6536
  if ( reliableTrDimensionsVal == null ) {
@@ -6548,17 +6538,32 @@ var rboxStyle = new RegExp( cssExpand.join( "|" ), "i" );
6548
6538
  tr = document.createElement( "tr" );
6549
6539
  trChild = document.createElement( "div" );
6550
6540
 
6551
- table.style.cssText = "position:absolute;left:-11111px";
6541
+ table.style.cssText = "position:absolute;left:-11111px;border-collapse:separate";
6542
+ tr.style.cssText = "border:1px solid";
6543
+
6544
+ // Support: Chrome 86+
6545
+ // Height set through cssText does not get applied.
6546
+ // Computed height then comes back as 0.
6552
6547
  tr.style.height = "1px";
6553
6548
  trChild.style.height = "9px";
6554
6549
 
6550
+ // Support: Android 8 Chrome 86+
6551
+ // In our bodyBackground.html iframe,
6552
+ // display for all div elements is set to "inline",
6553
+ // which causes a problem only in Android 8 Chrome 86.
6554
+ // Ensuring the div is display: block
6555
+ // gets around this issue.
6556
+ trChild.style.display = "block";
6557
+
6555
6558
  documentElement
6556
6559
  .appendChild( table )
6557
6560
  .appendChild( tr )
6558
6561
  .appendChild( trChild );
6559
6562
 
6560
6563
  trStyle = window.getComputedStyle( tr );
6561
- reliableTrDimensionsVal = parseInt( trStyle.height ) > 3;
6564
+ reliableTrDimensionsVal = ( parseInt( trStyle.height, 10 ) +
6565
+ parseInt( trStyle.borderTopWidth, 10 ) +
6566
+ parseInt( trStyle.borderBottomWidth, 10 ) ) === tr.offsetHeight;
6562
6567
 
6563
6568
  documentElement.removeChild( table );
6564
6569
  }
@@ -7022,10 +7027,10 @@ jQuery.each( [ "height", "width" ], function( _i, dimension ) {
7022
7027
  // Running getBoundingClientRect on a disconnected node
7023
7028
  // in IE throws an error.
7024
7029
  ( !elem.getClientRects().length || !elem.getBoundingClientRect().width ) ?
7025
- swap( elem, cssShow, function() {
7026
- return getWidthOrHeight( elem, dimension, extra );
7027
- } ) :
7028
- getWidthOrHeight( elem, dimension, extra );
7030
+ swap( elem, cssShow, function() {
7031
+ return getWidthOrHeight( elem, dimension, extra );
7032
+ } ) :
7033
+ getWidthOrHeight( elem, dimension, extra );
7029
7034
  }
7030
7035
  },
7031
7036
 
@@ -7084,7 +7089,7 @@ jQuery.cssHooks.marginLeft = addGetHookIf( support.reliableMarginLeft,
7084
7089
  swap( elem, { marginLeft: 0 }, function() {
7085
7090
  return elem.getBoundingClientRect().left;
7086
7091
  } )
7087
- ) + "px";
7092
+ ) + "px";
7088
7093
  }
7089
7094
  }
7090
7095
  );
@@ -7608,8 +7613,8 @@ jQuery.fn.extend( {
7608
7613
  if ( this.setAttribute ) {
7609
7614
  this.setAttribute( "class",
7610
7615
  className || value === false ?
7611
- "" :
7612
- dataPriv.get( this, "__className__" ) || ""
7616
+ "" :
7617
+ dataPriv.get( this, "__className__" ) || ""
7613
7618
  );
7614
7619
  }
7615
7620
  }
@@ -7624,7 +7629,7 @@ jQuery.fn.extend( {
7624
7629
  while ( ( elem = this[ i++ ] ) ) {
7625
7630
  if ( elem.nodeType === 1 &&
7626
7631
  ( " " + stripAndCollapse( getClass( elem ) ) + " " ).indexOf( className ) > -1 ) {
7627
- return true;
7632
+ return true;
7628
7633
  }
7629
7634
  }
7630
7635
 
@@ -7914,9 +7919,7 @@ jQuery.extend( jQuery.event, {
7914
7919
  special.bindType || type;
7915
7920
 
7916
7921
  // jQuery handler
7917
- handle = (
7918
- dataPriv.get( cur, "events" ) || Object.create( null )
7919
- )[ event.type ] &&
7922
+ handle = ( dataPriv.get( cur, "events" ) || Object.create( null ) )[ event.type ] &&
7920
7923
  dataPriv.get( cur, "handle" );
7921
7924
  if ( handle ) {
7922
7925
  handle.apply( cur, data );
@@ -8057,7 +8060,7 @@ if ( !support.focusin ) {
8057
8060
 
8058
8061
  // Cross-browser xml parsing
8059
8062
  jQuery.parseXML = function( data ) {
8060
- var xml;
8063
+ var xml, parserErrorElem;
8061
8064
  if ( !data || typeof data !== "string" ) {
8062
8065
  return null;
8063
8066
  }
@@ -8066,12 +8069,17 @@ jQuery.parseXML = function( data ) {
8066
8069
  // IE throws on parseFromString with invalid input.
8067
8070
  try {
8068
8071
  xml = ( new window.DOMParser() ).parseFromString( data, "text/xml" );
8069
- } catch ( e ) {
8070
- xml = undefined;
8071
- }
8072
-
8073
- if ( !xml || xml.getElementsByTagName( "parsererror" ).length ) {
8074
- jQuery.error( "Invalid XML: " + data );
8072
+ } catch ( e ) {}
8073
+
8074
+ parserErrorElem = xml && xml.getElementsByTagName( "parsererror" )[ 0 ];
8075
+ if ( !xml || parserErrorElem ) {
8076
+ jQuery.error( "Invalid XML: " + (
8077
+ parserErrorElem ?
8078
+ jQuery.map( parserErrorElem.childNodes, function( el ) {
8079
+ return el.textContent;
8080
+ } ).join( "\n" ) :
8081
+ data
8082
+ ) );
8075
8083
  }
8076
8084
  return xml;
8077
8085
  };
@@ -8172,16 +8180,14 @@ jQuery.fn.extend( {
8172
8180
  // Can add propHook for "elements" to filter or add form elements
8173
8181
  var elements = jQuery.prop( this, "elements" );
8174
8182
  return elements ? jQuery.makeArray( elements ) : this;
8175
- } )
8176
- .filter( function() {
8183
+ } ).filter( function() {
8177
8184
  var type = this.type;
8178
8185
 
8179
8186
  // Use .is( ":disabled" ) so that fieldset[disabled] works
8180
8187
  return this.name && !jQuery( this ).is( ":disabled" ) &&
8181
8188
  rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
8182
8189
  ( this.checked || !rcheckableType.test( type ) );
8183
- } )
8184
- .map( function( _i, elem ) {
8190
+ } ).map( function( _i, elem ) {
8185
8191
  var val = jQuery( this ).val();
8186
8192
 
8187
8193
  if ( val == null ) {
@@ -8387,12 +8393,6 @@ jQuery.offset = {
8387
8393
  options.using.call( elem, props );
8388
8394
 
8389
8395
  } else {
8390
- if ( typeof props.top === "number" ) {
8391
- props.top += "px";
8392
- }
8393
- if ( typeof props.left === "number" ) {
8394
- props.left += "px";
8395
- }
8396
8396
  curElem.css( props );
8397
8397
  }
8398
8398
  }
@@ -8561,8 +8561,11 @@ jQuery.each( [ "top", "left" ], function( _i, prop ) {
8561
8561
 
8562
8562
  // Create innerHeight, innerWidth, height, width, outerHeight and outerWidth methods
8563
8563
  jQuery.each( { Height: "height", Width: "width" }, function( name, type ) {
8564
- jQuery.each( { padding: "inner" + name, content: type, "": "outer" + name },
8565
- function( defaultExtra, funcName ) {
8564
+ jQuery.each( {
8565
+ padding: "inner" + name,
8566
+ content: type,
8567
+ "": "outer" + name
8568
+ }, function( defaultExtra, funcName ) {
8566
8569
 
8567
8570
  // Margin is only for outerHeight, outerWidth
8568
8571
  jQuery.fn[ funcName ] = function( margin, value ) {
@@ -8631,7 +8634,8 @@ jQuery.fn.extend( {
8631
8634
  }
8632
8635
  } );
8633
8636
 
8634
- jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
8637
+ jQuery.each(
8638
+ ( "blur focus focusin focusout resize scroll click dblclick " +
8635
8639
  "mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave " +
8636
8640
  "change select submit keydown keypress keyup contextmenu" ).split( " " ),
8637
8641
  function( _i, name ) {
@@ -8642,7 +8646,8 @@ jQuery.each( ( "blur focus focusin focusout resize scroll click dblclick " +
8642
8646
  this.on( name, null, data, fn ) :
8643
8647
  this.trigger( name );
8644
8648
  };
8645
- } );
8649
+ }
8650
+ );
8646
8651
 
8647
8652
 
8648
8653