mocha 9.1.4 → 9.2.0

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.
package/mocha.js CHANGED
@@ -1,4 +1,4 @@
1
- // mocha@9.1.4 transpiled to javascript ES5
1
+ // mocha@9.2.0 transpiled to javascript ES5
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
4
4
  typeof define === 'function' && define.amd ? define(factory) :
@@ -56,9 +56,15 @@
56
56
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
57
57
  });
58
58
 
59
+ var functionBindNative = !fails(function () {
60
+ var test = (function () { /* empty */ }).bind();
61
+ // eslint-disable-next-line no-prototype-builtins -- safe
62
+ return typeof test != 'function' || test.hasOwnProperty('prototype');
63
+ });
64
+
59
65
  var call$2 = Function.prototype.call;
60
66
 
61
- var functionCall = call$2.bind ? call$2.bind(call$2) : function () {
67
+ var functionCall = functionBindNative ? call$2.bind(call$2) : function () {
62
68
  return call$2.apply(call$2, arguments);
63
69
  };
64
70
 
@@ -71,13 +77,13 @@
71
77
 
72
78
  // `Object.prototype.propertyIsEnumerable` method implementation
73
79
  // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
74
- var f$7 = NASHORN_BUG ? function propertyIsEnumerable(V) {
80
+ var f$8 = NASHORN_BUG ? function propertyIsEnumerable(V) {
75
81
  var descriptor = getOwnPropertyDescriptor$3(this, V);
76
82
  return !!descriptor && descriptor.enumerable;
77
83
  } : $propertyIsEnumerable$2;
78
84
 
79
85
  var objectPropertyIsEnumerable = {
80
- f: f$7
86
+ f: f$8
81
87
  };
82
88
 
83
89
  var createPropertyDescriptor = function (bitmap, value) {
@@ -90,12 +96,12 @@
90
96
  };
91
97
 
92
98
  var FunctionPrototype$3 = Function.prototype;
93
- var bind$3 = FunctionPrototype$3.bind;
99
+ var bind$2 = FunctionPrototype$3.bind;
94
100
  var call$1 = FunctionPrototype$3.call;
95
- var callBind = bind$3 && bind$3.bind(call$1);
101
+ var uncurryThis = functionBindNative && bind$2.bind(call$1, call$1);
96
102
 
97
- var functionUncurryThis = bind$3 ? function (fn) {
98
- return fn && callBind(call$1, fn);
103
+ var functionUncurryThis = functionBindNative ? function (fn) {
104
+ return fn && uncurryThis(fn);
99
105
  } : function (fn) {
100
106
  return fn && function () {
101
107
  return call$1.apply(fn, arguments);
@@ -253,11 +259,11 @@
253
259
  };
254
260
 
255
261
  // eslint-disable-next-line es/no-object-defineproperty -- safe
256
- var defineProperty$a = Object.defineProperty;
262
+ var defineProperty$b = Object.defineProperty;
257
263
 
258
264
  var setGlobal = function (key, value) {
259
265
  try {
260
- defineProperty$a(global_1, key, { value: value, configurable: true, writable: true });
266
+ defineProperty$b(global_1, key, { value: value, configurable: true, writable: true });
261
267
  } catch (error) {
262
268
  global_1[key] = value;
263
269
  } return value;
@@ -272,9 +278,11 @@
272
278
  (module.exports = function (key, value) {
273
279
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
274
280
  })('versions', []).push({
275
- version: '3.19.0',
281
+ version: '3.20.3',
276
282
  mode: 'global',
277
- copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
283
+ copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
284
+ license: 'https://github.com/zloirock/core-js/blob/v3.20.3/LICENSE',
285
+ source: 'https://github.com/zloirock/core-js'
278
286
  });
279
287
  });
280
288
 
@@ -354,32 +362,42 @@
354
362
  return EXISTS$1 ? document$3.createElement(it) : {};
355
363
  };
356
364
 
357
- // Thank's IE8 for his funny defineProperty
365
+ // Thanks to IE8 for its funny defineProperty
358
366
  var ie8DomDefine = !descriptors && !fails(function () {
359
- // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
367
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
360
368
  return Object.defineProperty(documentCreateElement('div'), 'a', {
361
369
  get: function () { return 7; }
362
370
  }).a != 7;
363
371
  });
364
372
 
365
373
  // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
366
- var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
374
+ var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
367
375
 
368
376
  // `Object.getOwnPropertyDescriptor` method
369
377
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
370
- var f$6 = descriptors ? $getOwnPropertyDescriptor$1 : function getOwnPropertyDescriptor(O, P) {
378
+ var f$7 = descriptors ? $getOwnPropertyDescriptor$2 : function getOwnPropertyDescriptor(O, P) {
371
379
  O = toIndexedObject(O);
372
380
  P = toPropertyKey(P);
373
381
  if (ie8DomDefine) try {
374
- return $getOwnPropertyDescriptor$1(O, P);
382
+ return $getOwnPropertyDescriptor$2(O, P);
375
383
  } catch (error) { /* empty */ }
376
384
  if (hasOwnProperty_1(O, P)) return createPropertyDescriptor(!functionCall(objectPropertyIsEnumerable.f, O, P), O[P]);
377
385
  };
378
386
 
379
387
  var objectGetOwnPropertyDescriptor = {
380
- f: f$6
388
+ f: f$7
381
389
  };
382
390
 
391
+ // V8 ~ Chrome 36-
392
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3334
393
+ var v8PrototypeDefineBug = descriptors && fails(function () {
394
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
395
+ return Object.defineProperty(function () { /* empty */ }, 'prototype', {
396
+ value: 42,
397
+ writable: false
398
+ }).prototype != 42;
399
+ });
400
+
383
401
  var String$5 = global_1.String;
384
402
  var TypeError$h = global_1.TypeError;
385
403
 
@@ -392,10 +410,30 @@
392
410
  var TypeError$g = global_1.TypeError;
393
411
  // eslint-disable-next-line es/no-object-defineproperty -- safe
394
412
  var $defineProperty$1 = Object.defineProperty;
413
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
414
+ var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
415
+ var ENUMERABLE = 'enumerable';
416
+ var CONFIGURABLE$1 = 'configurable';
417
+ var WRITABLE = 'writable';
395
418
 
396
419
  // `Object.defineProperty` method
397
420
  // https://tc39.es/ecma262/#sec-object.defineproperty
398
- var f$5 = descriptors ? $defineProperty$1 : function defineProperty(O, P, Attributes) {
421
+ var f$6 = descriptors ? v8PrototypeDefineBug ? function defineProperty(O, P, Attributes) {
422
+ anObject(O);
423
+ P = toPropertyKey(P);
424
+ anObject(Attributes);
425
+ if (typeof O === 'function' && P === 'prototype' && 'value' in Attributes && WRITABLE in Attributes && !Attributes[WRITABLE]) {
426
+ var current = $getOwnPropertyDescriptor$1(O, P);
427
+ if (current && current[WRITABLE]) {
428
+ O[P] = Attributes.value;
429
+ Attributes = {
430
+ configurable: CONFIGURABLE$1 in Attributes ? Attributes[CONFIGURABLE$1] : current[CONFIGURABLE$1],
431
+ enumerable: ENUMERABLE in Attributes ? Attributes[ENUMERABLE] : current[ENUMERABLE],
432
+ writable: false
433
+ };
434
+ }
435
+ } return $defineProperty$1(O, P, Attributes);
436
+ } : $defineProperty$1 : function defineProperty(O, P, Attributes) {
399
437
  anObject(O);
400
438
  P = toPropertyKey(P);
401
439
  anObject(Attributes);
@@ -408,7 +446,7 @@
408
446
  };
409
447
 
410
448
  var objectDefineProperty = {
411
- f: f$5
449
+ f: f$6
412
450
  };
413
451
 
414
452
  var createNonEnumerableProperty = descriptors ? function (object, key, value) {
@@ -569,7 +607,7 @@
569
607
  return number !== number || number === 0 ? 0 : (number > 0 ? floor$6 : ceil)(number);
570
608
  };
571
609
 
572
- var max$3 = Math.max;
610
+ var max$4 = Math.max;
573
611
  var min$7 = Math.min;
574
612
 
575
613
  // Helper for a popular repeating case of the spec:
@@ -577,7 +615,7 @@
577
615
  // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
578
616
  var toAbsoluteIndex = function (index, length) {
579
617
  var integer = toIntegerOrInfinity(index);
580
- return integer < 0 ? max$3(integer + length, 0) : min$7(integer, length);
618
+ return integer < 0 ? max$4(integer + length, 0) : min$7(integer, length);
581
619
  };
582
620
 
583
621
  var min$6 = Math.min;
@@ -657,19 +695,19 @@
657
695
  // `Object.getOwnPropertyNames` method
658
696
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
659
697
  // eslint-disable-next-line es/no-object-getownpropertynames -- safe
660
- var f$4 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
698
+ var f$5 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
661
699
  return objectKeysInternal(O, hiddenKeys);
662
700
  };
663
701
 
664
702
  var objectGetOwnPropertyNames = {
665
- f: f$4
703
+ f: f$5
666
704
  };
667
705
 
668
706
  // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
669
- var f$3 = Object.getOwnPropertySymbols;
707
+ var f$4 = Object.getOwnPropertySymbols;
670
708
 
671
709
  var objectGetOwnPropertySymbols = {
672
- f: f$3
710
+ f: f$4
673
711
  };
674
712
 
675
713
  var concat$2 = functionUncurryThis([].concat);
@@ -681,13 +719,15 @@
681
719
  return getOwnPropertySymbols ? concat$2(keys, getOwnPropertySymbols(it)) : keys;
682
720
  };
683
721
 
684
- var copyConstructorProperties = function (target, source) {
722
+ var copyConstructorProperties = function (target, source, exceptions) {
685
723
  var keys = ownKeys$1(source);
686
724
  var defineProperty = objectDefineProperty.f;
687
725
  var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
688
726
  for (var i = 0; i < keys.length; i++) {
689
727
  var key = keys[i];
690
- if (!hasOwnProperty_1(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
728
+ if (!hasOwnProperty_1(target, key) && !(exceptions && hasOwnProperty_1(exceptions, key))) {
729
+ defineProperty(target, key, getOwnPropertyDescriptor(source, key));
730
+ }
691
731
  }
692
732
  };
693
733
 
@@ -812,7 +852,7 @@
812
852
  var exec$2 = functionUncurryThis(constructorRegExp.exec);
813
853
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop$2);
814
854
 
815
- var isConstructorModern = function (argument) {
855
+ var isConstructorModern = function isConstructor(argument) {
816
856
  if (!isCallable(argument)) return false;
817
857
  try {
818
858
  construct(noop$2, empty, argument);
@@ -822,16 +862,25 @@
822
862
  }
823
863
  };
824
864
 
825
- var isConstructorLegacy = function (argument) {
865
+ var isConstructorLegacy = function isConstructor(argument) {
826
866
  if (!isCallable(argument)) return false;
827
867
  switch (classof(argument)) {
828
868
  case 'AsyncFunction':
829
869
  case 'GeneratorFunction':
830
870
  case 'AsyncGeneratorFunction': return false;
871
+ }
872
+ try {
831
873
  // we can't check .prototype since constructors produced by .bind haven't it
832
- } return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
874
+ // `Function#toString` throws on some built-it function in some legacy engines
875
+ // (for example, `DOMQuad` and similar in FF41-)
876
+ return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
877
+ } catch (error) {
878
+ return true;
879
+ }
833
880
  };
834
881
 
882
+ isConstructorLegacy.sham = true;
883
+
835
884
  // `IsConstructor` abstract operation
836
885
  // https://tc39.es/ecma262/#sec-isconstructor
837
886
  var isConstructor = !construct || fails(function () {
@@ -843,7 +892,7 @@
843
892
  }) ? isConstructorLegacy : isConstructorModern;
844
893
 
845
894
  var SPECIES$6 = wellKnownSymbol('species');
846
- var Array$6 = global_1.Array;
895
+ var Array$7 = global_1.Array;
847
896
 
848
897
  // a part of `ArraySpeciesCreate` abstract operation
849
898
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
@@ -852,12 +901,12 @@
852
901
  if (isArray$3(originalArray)) {
853
902
  C = originalArray.constructor;
854
903
  // cross-realm fallback
855
- if (isConstructor(C) && (C === Array$6 || isArray$3(C.prototype))) C = undefined;
904
+ if (isConstructor(C) && (C === Array$7 || isArray$3(C.prototype))) C = undefined;
856
905
  else if (isObject$1(C)) {
857
906
  C = C[SPECIES$6];
858
907
  if (C === null) C = undefined;
859
908
  }
860
- } return C === undefined ? Array$6 : C;
909
+ } return C === undefined ? Array$7 : C;
861
910
  };
862
911
 
863
912
  // `ArraySpeciesCreate` abstract operation
@@ -891,7 +940,7 @@
891
940
  var HAS_SPECIES_SUPPORT$3 = arrayMethodHasSpeciesSupport('splice');
892
941
 
893
942
  var TypeError$e = global_1.TypeError;
894
- var max$2 = Math.max;
943
+ var max$3 = Math.max;
895
944
  var min$5 = Math.min;
896
945
  var MAX_SAFE_INTEGER$1 = 0x1FFFFFFFFFFFFF;
897
946
  var MAXIMUM_ALLOWED_LENGTH_EXCEEDED = 'Maximum allowed length exceeded';
@@ -913,7 +962,7 @@
913
962
  actualDeleteCount = len - actualStart;
914
963
  } else {
915
964
  insertCount = argumentsLength - 2;
916
- actualDeleteCount = min$5(max$2(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
965
+ actualDeleteCount = min$5(max$3(toIntegerOrInfinity(deleteCount), 0), len - actualStart);
917
966
  }
918
967
  if (len + insertCount - actualDeleteCount > MAX_SAFE_INTEGER$1) {
919
968
  throw TypeError$e(MAXIMUM_ALLOWED_LENGTH_EXCEEDED);
@@ -948,6 +997,18 @@
948
997
  }
949
998
  });
950
999
 
1000
+ // `Object.prototype.toString` method implementation
1001
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
1002
+ var objectToString$1 = toStringTagSupport ? {}.toString : function toString() {
1003
+ return '[object ' + classof(this) + ']';
1004
+ };
1005
+
1006
+ // `Object.prototype.toString` method
1007
+ // https://tc39.es/ecma262/#sec-object.prototype.tostring
1008
+ if (!toStringTagSupport) {
1009
+ redefine(Object.prototype, 'toString', objectToString$1, { unsafe: true });
1010
+ }
1011
+
951
1012
  // iterable DOM collections
952
1013
  // flag - `iterable` interface - 'entries', 'keys', 'values', 'forEach' methods
953
1014
  var domIterables = {
@@ -992,12 +1053,12 @@
992
1053
 
993
1054
  var domTokenListPrototype = DOMTokenListPrototype === Object.prototype ? undefined : DOMTokenListPrototype;
994
1055
 
995
- var bind$2 = functionUncurryThis(functionUncurryThis.bind);
1056
+ var bind$1 = functionUncurryThis(functionUncurryThis.bind);
996
1057
 
997
1058
  // optional / simple context binding
998
1059
  var functionBindContext = function (fn, that) {
999
1060
  aCallable(fn);
1000
- return that === undefined ? fn : bind$2 ? bind$2(fn, that) : function (/* ...args */) {
1061
+ return that === undefined ? fn : functionBindNative ? bind$1(fn, that) : function (/* ...args */) {
1001
1062
  return fn.apply(that, arguments);
1002
1063
  };
1003
1064
  };
@@ -1127,11 +1188,11 @@
1127
1188
  return objectKeysInternal(O, enumBugKeys);
1128
1189
  };
1129
1190
 
1130
- var FAILS_ON_PRIMITIVES$4 = fails(function () { objectKeys(1); });
1191
+ var FAILS_ON_PRIMITIVES$5 = fails(function () { objectKeys(1); });
1131
1192
 
1132
1193
  // `Object.keys` method
1133
1194
  // https://tc39.es/ecma262/#sec-object.keys
1134
- _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$4 }, {
1195
+ _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$5 }, {
1135
1196
  keys: function keys(it) {
1136
1197
  return objectKeys(toObject(it));
1137
1198
  }
@@ -1167,7 +1228,13 @@
1167
1228
  return re.exec('abcd') != null;
1168
1229
  });
1169
1230
 
1170
- var BROKEN_CARET = fails(function () {
1231
+ // UC Browser bug
1232
+ // https://github.com/zloirock/core-js/issues/1008
1233
+ var MISSED_STICKY$1 = UNSUPPORTED_Y$3 || fails(function () {
1234
+ return !$RegExp$2('a', 'y').sticky;
1235
+ });
1236
+
1237
+ var BROKEN_CARET = UNSUPPORTED_Y$3 || fails(function () {
1171
1238
  // https://bugzilla.mozilla.org/show_bug.cgi?id=773687
1172
1239
  var re = $RegExp$2('^r', 'gy');
1173
1240
  re.lastIndex = 2;
@@ -1175,14 +1242,15 @@
1175
1242
  });
1176
1243
 
1177
1244
  var regexpStickyHelpers = {
1178
- UNSUPPORTED_Y: UNSUPPORTED_Y$3,
1179
- BROKEN_CARET: BROKEN_CARET
1245
+ BROKEN_CARET: BROKEN_CARET,
1246
+ MISSED_STICKY: MISSED_STICKY$1,
1247
+ UNSUPPORTED_Y: UNSUPPORTED_Y$3
1180
1248
  };
1181
1249
 
1182
1250
  // `Object.defineProperties` method
1183
1251
  // https://tc39.es/ecma262/#sec-object.defineproperties
1184
1252
  // eslint-disable-next-line es/no-object-defineproperties -- safe
1185
- var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
1253
+ var f$3 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
1186
1254
  anObject(O);
1187
1255
  var props = toIndexedObject(Properties);
1188
1256
  var keys = objectKeys(Properties);
@@ -1193,6 +1261,10 @@
1193
1261
  return O;
1194
1262
  };
1195
1263
 
1264
+ var objectDefineProperties = {
1265
+ f: f$3
1266
+ };
1267
+
1196
1268
  var html$1 = getBuiltIn('document', 'documentElement');
1197
1269
 
1198
1270
  /* global ActiveXObject -- old IE, WSH */
@@ -1275,7 +1347,7 @@
1275
1347
  // add "__proto__" for Object.getPrototypeOf polyfill
1276
1348
  result[IE_PROTO$1] = O;
1277
1349
  } else result = NullProtoObject();
1278
- return Properties === undefined ? result : objectDefineProperties(result, Properties);
1350
+ return Properties === undefined ? result : objectDefineProperties.f(result, Properties);
1279
1351
  };
1280
1352
 
1281
1353
  // babel-minify and Closure Compiler transpiles RegExp('.', 's') -> /./s and it causes SyntaxError
@@ -1324,7 +1396,7 @@
1324
1396
  return re1.lastIndex !== 0 || re2.lastIndex !== 0;
1325
1397
  })();
1326
1398
 
1327
- var UNSUPPORTED_Y$2 = regexpStickyHelpers.UNSUPPORTED_Y || regexpStickyHelpers.BROKEN_CARET;
1399
+ var UNSUPPORTED_Y$2 = regexpStickyHelpers.BROKEN_CARET;
1328
1400
 
1329
1401
  // nonparticipating capturing group, copied from es5-shim's String#split patch.
1330
1402
  var NPCG_INCLUDED = /()??/.exec('')[1] !== undefined;
@@ -1332,7 +1404,6 @@
1332
1404
  var PATCH = UPDATES_LAST_INDEX_WRONG || NPCG_INCLUDED || UNSUPPORTED_Y$2 || regexpUnsupportedDotAll || regexpUnsupportedNcg;
1333
1405
 
1334
1406
  if (PATCH) {
1335
- // eslint-disable-next-line max-statements -- TODO
1336
1407
  patchedExec = function exec(string) {
1337
1408
  var re = this;
1338
1409
  var state = getInternalState$5(re);
@@ -1566,12 +1637,12 @@
1566
1637
  return spreadable !== undefined ? !!spreadable : isArray$3(O);
1567
1638
  };
1568
1639
 
1569
- var FORCED$8 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1640
+ var FORCED$7 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
1570
1641
 
1571
1642
  // `Array.prototype.concat` method
1572
1643
  // https://tc39.es/ecma262/#sec-array.prototype.concat
1573
1644
  // with adding support of @@isConcatSpreadable and @@species
1574
- _export({ target: 'Array', proto: true, forced: FORCED$8 }, {
1645
+ _export({ target: 'Array', proto: true, forced: FORCED$7 }, {
1575
1646
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1576
1647
  concat: function concat(arg) {
1577
1648
  var O = toObject(this);
@@ -1672,7 +1743,7 @@
1672
1743
  }
1673
1744
  }
1674
1745
 
1675
- var queue$2 = [];
1746
+ var queue$3 = [];
1676
1747
  var draining$1 = false;
1677
1748
  var currentQueue$1;
1678
1749
  var queueIndex$1 = -1;
@@ -1685,12 +1756,12 @@
1685
1756
  draining$1 = false;
1686
1757
 
1687
1758
  if (currentQueue$1.length) {
1688
- queue$2 = currentQueue$1.concat(queue$2);
1759
+ queue$3 = currentQueue$1.concat(queue$3);
1689
1760
  } else {
1690
1761
  queueIndex$1 = -1;
1691
1762
  }
1692
1763
 
1693
- if (queue$2.length) {
1764
+ if (queue$3.length) {
1694
1765
  drainQueue$1();
1695
1766
  }
1696
1767
  }
@@ -1702,11 +1773,11 @@
1702
1773
 
1703
1774
  var timeout = runTimeout$1(cleanUpNextTick$1);
1704
1775
  draining$1 = true;
1705
- var len = queue$2.length;
1776
+ var len = queue$3.length;
1706
1777
 
1707
1778
  while (len) {
1708
- currentQueue$1 = queue$2;
1709
- queue$2 = [];
1779
+ currentQueue$1 = queue$3;
1780
+ queue$3 = [];
1710
1781
 
1711
1782
  while (++queueIndex$1 < len) {
1712
1783
  if (currentQueue$1) {
@@ -1715,7 +1786,7 @@
1715
1786
  }
1716
1787
 
1717
1788
  queueIndex$1 = -1;
1718
- len = queue$2.length;
1789
+ len = queue$3.length;
1719
1790
  }
1720
1791
 
1721
1792
  currentQueue$1 = null;
@@ -1732,9 +1803,9 @@
1732
1803
  }
1733
1804
  }
1734
1805
 
1735
- queue$2.push(new Item$1(fun, args));
1806
+ queue$3.push(new Item$1(fun, args));
1736
1807
 
1737
- if (queue$2.length === 1 && !draining$1) {
1808
+ if (queue$3.length === 1 && !draining$1) {
1738
1809
  runTimeout$1(drainQueue$1);
1739
1810
  }
1740
1811
  } // v8 likes predictible objects
@@ -1838,19 +1909,7 @@
1838
1909
  uptime: uptime$1
1839
1910
  };
1840
1911
 
1841
- // `Object.prototype.toString` method implementation
1842
- // https://tc39.es/ecma262/#sec-object.prototype.tostring
1843
- var objectToString$1 = toStringTagSupport ? {}.toString : function toString() {
1844
- return '[object ' + classof(this) + ']';
1845
- };
1846
-
1847
- // `Object.prototype.toString` method
1848
- // https://tc39.es/ecma262/#sec-object.prototype.tostring
1849
- if (!toStringTagSupport) {
1850
- redefine(Object.prototype, 'toString', objectToString$1, { unsafe: true });
1851
- }
1852
-
1853
- var PROPER_FUNCTION_NAME$4 = functionName.PROPER;
1912
+ var PROPER_FUNCTION_NAME$3 = functionName.PROPER;
1854
1913
 
1855
1914
 
1856
1915
 
@@ -1865,7 +1924,7 @@
1865
1924
 
1866
1925
  var NOT_GENERIC = fails(function () { return n$ToString.call({ source: 'a', flags: 'b' }) != '/a/b'; });
1867
1926
  // FF44- RegExp#toString has a wrong name
1868
- var INCORRECT_NAME = PROPER_FUNCTION_NAME$4 && n$ToString.name != TO_STRING;
1927
+ var INCORRECT_NAME = PROPER_FUNCTION_NAME$3 && n$ToString.name != TO_STRING;
1869
1928
 
1870
1929
  // `RegExp.prototype.toString` method
1871
1930
  // https://tc39.es/ecma262/#sec-regexp.prototype.tostring
@@ -1901,11 +1960,11 @@
1901
1960
  } return object instanceof Object$1 ? ObjectPrototype$3 : null;
1902
1961
  };
1903
1962
 
1904
- var FAILS_ON_PRIMITIVES$3 = fails(function () { objectGetPrototypeOf(1); });
1963
+ var FAILS_ON_PRIMITIVES$4 = fails(function () { objectGetPrototypeOf(1); });
1905
1964
 
1906
1965
  // `Object.getPrototypeOf` method
1907
1966
  // https://tc39.es/ecma262/#sec-object.getprototypeof
1908
- _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$3, sham: !correctPrototypeGetter }, {
1967
+ _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$4, sham: !correctPrototypeGetter }, {
1909
1968
  getPrototypeOf: function getPrototypeOf(it) {
1910
1969
  return objectGetPrototypeOf(toObject(it));
1911
1970
  }
@@ -1913,18 +1972,18 @@
1913
1972
 
1914
1973
  var FUNCTION_NAME_EXISTS = functionName.EXISTS;
1915
1974
 
1916
- var defineProperty$9 = objectDefineProperty.f;
1975
+ var defineProperty$a = objectDefineProperty.f;
1917
1976
 
1918
1977
  var FunctionPrototype$1 = Function.prototype;
1919
1978
  var functionToString = functionUncurryThis(FunctionPrototype$1.toString);
1920
- var nameRE = /^\s*function ([^ (]*)/;
1979
+ var nameRE = /function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/;
1921
1980
  var regExpExec = functionUncurryThis(nameRE.exec);
1922
1981
  var NAME$1 = 'name';
1923
1982
 
1924
1983
  // Function instances `.name` property
1925
1984
  // https://tc39.es/ecma262/#sec-function-instances-name
1926
1985
  if (descriptors && !FUNCTION_NAME_EXISTS) {
1927
- defineProperty$9(FunctionPrototype$1, NAME$1, {
1986
+ defineProperty$a(FunctionPrototype$1, NAME$1, {
1928
1987
  configurable: true,
1929
1988
  get: function () {
1930
1989
  try {
@@ -2384,19 +2443,63 @@
2384
2443
  return ret;
2385
2444
  }
2386
2445
 
2446
+ function _asyncIterator(iterable) {
2447
+ var method,
2448
+ async,
2449
+ sync,
2450
+ retry = 2;
2451
+
2452
+ for ("undefined" != typeof Symbol && (async = Symbol.asyncIterator, sync = Symbol.iterator); retry--;) {
2453
+ if (async && null != (method = iterable[async])) return method.call(iterable);
2454
+ if (sync && null != (method = iterable[sync])) return new AsyncFromSyncIterator(method.call(iterable));
2455
+ async = "@@asyncIterator", sync = "@@iterator";
2456
+ }
2457
+
2458
+ throw new TypeError("Object is not async iterable");
2459
+ }
2460
+
2461
+ function AsyncFromSyncIterator(s) {
2462
+ function AsyncFromSyncIteratorContinuation(r) {
2463
+ if (Object(r) !== r) return Promise.reject(new TypeError(r + " is not an object."));
2464
+ var done = r.done;
2465
+ return Promise.resolve(r.value).then(function (value) {
2466
+ return {
2467
+ value: value,
2468
+ done: done
2469
+ };
2470
+ });
2471
+ }
2472
+
2473
+ return AsyncFromSyncIterator = function (s) {
2474
+ this.s = s, this.n = s.next;
2475
+ }, AsyncFromSyncIterator.prototype = {
2476
+ s: null,
2477
+ n: null,
2478
+ next: function () {
2479
+ return AsyncFromSyncIteratorContinuation(this.n.apply(this.s, arguments));
2480
+ },
2481
+ return: function (value) {
2482
+ var ret = this.s.return;
2483
+ return void 0 === ret ? Promise.resolve({
2484
+ value: value,
2485
+ done: !0
2486
+ }) : AsyncFromSyncIteratorContinuation(ret.apply(this.s, arguments));
2487
+ },
2488
+ throw: function (value) {
2489
+ var thr = this.s.return;
2490
+ return void 0 === thr ? Promise.reject(value) : AsyncFromSyncIteratorContinuation(thr.apply(this.s, arguments));
2491
+ }
2492
+ }, new AsyncFromSyncIterator(s);
2493
+ }
2494
+
2387
2495
  function ownKeys(object, enumerableOnly) {
2388
2496
  var keys = Object.keys(object);
2389
2497
 
2390
2498
  if (Object.getOwnPropertySymbols) {
2391
2499
  var symbols = Object.getOwnPropertySymbols(object);
2392
-
2393
- if (enumerableOnly) {
2394
- symbols = symbols.filter(function (sym) {
2395
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
2396
- });
2397
- }
2398
-
2399
- keys.push.apply(keys, symbols);
2500
+ enumerableOnly && (symbols = symbols.filter(function (sym) {
2501
+ return Object.getOwnPropertyDescriptor(object, sym).enumerable;
2502
+ })), keys.push.apply(keys, symbols);
2400
2503
  }
2401
2504
 
2402
2505
  return keys;
@@ -2404,19 +2507,12 @@
2404
2507
 
2405
2508
  function _objectSpread2(target) {
2406
2509
  for (var i = 1; i < arguments.length; i++) {
2407
- var source = arguments[i] != null ? arguments[i] : {};
2408
-
2409
- if (i % 2) {
2410
- ownKeys(Object(source), true).forEach(function (key) {
2411
- _defineProperty(target, key, source[key]);
2412
- });
2413
- } else if (Object.getOwnPropertyDescriptors) {
2414
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
2415
- } else {
2416
- ownKeys(Object(source)).forEach(function (key) {
2417
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2418
- });
2419
- }
2510
+ var source = null != arguments[i] ? arguments[i] : {};
2511
+ i % 2 ? ownKeys(Object(source), !0).forEach(function (key) {
2512
+ _defineProperty(target, key, source[key]);
2513
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) {
2514
+ Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
2515
+ });
2420
2516
  }
2421
2517
 
2422
2518
  return target;
@@ -2425,31 +2521,11 @@
2425
2521
  function _typeof(obj) {
2426
2522
  "@babel/helpers - typeof";
2427
2523
 
2428
- if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") {
2429
- _typeof = function (obj) {
2430
- return typeof obj;
2431
- };
2432
- } else {
2433
- _typeof = function (obj) {
2434
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2435
- };
2436
- }
2437
-
2438
- return _typeof(obj);
2439
- }
2440
-
2441
- function _asyncIterator(iterable) {
2442
- var method;
2443
-
2444
- if (typeof Symbol !== "undefined") {
2445
- if (Symbol.asyncIterator) method = iterable[Symbol.asyncIterator];
2446
- if (method == null && Symbol.iterator) method = iterable[Symbol.iterator];
2447
- }
2448
-
2449
- if (method == null) method = iterable["@@asyncIterator"];
2450
- if (method == null) method = iterable["@@iterator"];
2451
- if (method == null) throw new TypeError("Object is not async iterable");
2452
- return method.call(iterable);
2524
+ return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
2525
+ return typeof obj;
2526
+ } : function (obj) {
2527
+ return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2528
+ }, _typeof(obj);
2453
2529
  }
2454
2530
 
2455
2531
  function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
@@ -2494,6 +2570,25 @@
2494
2570
  }
2495
2571
  }
2496
2572
 
2573
+ function _defineProperties(target, props) {
2574
+ for (var i = 0; i < props.length; i++) {
2575
+ var descriptor = props[i];
2576
+ descriptor.enumerable = descriptor.enumerable || false;
2577
+ descriptor.configurable = true;
2578
+ if ("value" in descriptor) descriptor.writable = true;
2579
+ Object.defineProperty(target, descriptor.key, descriptor);
2580
+ }
2581
+ }
2582
+
2583
+ function _createClass(Constructor, protoProps, staticProps) {
2584
+ if (protoProps) _defineProperties(Constructor.prototype, protoProps);
2585
+ if (staticProps) _defineProperties(Constructor, staticProps);
2586
+ Object.defineProperty(Constructor, "prototype", {
2587
+ writable: false
2588
+ });
2589
+ return Constructor;
2590
+ }
2591
+
2497
2592
  function _defineProperty(obj, key, value) {
2498
2593
  if (key in obj) {
2499
2594
  Object.defineProperty(obj, key, {
@@ -2521,6 +2616,9 @@
2521
2616
  configurable: true
2522
2617
  }
2523
2618
  });
2619
+ Object.defineProperty(subClass, "prototype", {
2620
+ writable: false
2621
+ });
2524
2622
  if (superClass) _setPrototypeOf(subClass, superClass);
2525
2623
  }
2526
2624
 
@@ -2638,11 +2736,10 @@
2638
2736
 
2639
2737
  var FunctionPrototype = Function.prototype;
2640
2738
  var apply = FunctionPrototype.apply;
2641
- var bind$1 = FunctionPrototype.bind;
2642
2739
  var call = FunctionPrototype.call;
2643
2740
 
2644
2741
  // eslint-disable-next-line es/no-reflect -- safe
2645
- var functionApply = typeof Reflect == 'object' && Reflect.apply || (bind$1 ? call.bind(apply) : function () {
2742
+ var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call.bind(apply) : function () {
2646
2743
  return call.apply(apply, arguments);
2647
2744
  });
2648
2745
 
@@ -2729,7 +2826,7 @@
2729
2826
  };
2730
2827
 
2731
2828
  var REPLACE = wellKnownSymbol('replace');
2732
- var max$1 = Math.max;
2829
+ var max$2 = Math.max;
2733
2830
  var min$4 = Math.min;
2734
2831
  var concat$1 = functionUncurryThis([].concat);
2735
2832
  var push$4 = functionUncurryThis([].push);
@@ -2821,7 +2918,7 @@
2821
2918
  result = results[i];
2822
2919
 
2823
2920
  var matched = toString_1(result[0]);
2824
- var position = max$1(min$4(toIntegerOrInfinity(result.index), S.length), 0);
2921
+ var position = max$2(min$4(toIntegerOrInfinity(result.index), S.length), 0);
2825
2922
  var captures = [];
2826
2923
  // NOTE: This is equivalent to
2827
2924
  // captures = result.slice(1).map(maybeToString)
@@ -2935,7 +3032,7 @@
2935
3032
 
2936
3033
  var getOwnPropertyNames$3 = objectGetOwnPropertyNames.f;
2937
3034
  var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
2938
- var defineProperty$8 = objectDefineProperty.f;
3035
+ var defineProperty$9 = objectDefineProperty.f;
2939
3036
 
2940
3037
  var trim = stringTrim.trim;
2941
3038
 
@@ -3002,7 +3099,7 @@
3002
3099
  'fromString,range'
3003
3100
  ).split(','), j$1 = 0, key$1; keys$3.length > j$1; j$1++) {
3004
3101
  if (hasOwnProperty_1(NativeNumber, key$1 = keys$3[j$1]) && !hasOwnProperty_1(NumberWrapper, key$1)) {
3005
- defineProperty$8(NumberWrapper, key$1, getOwnPropertyDescriptor$1(NativeNumber, key$1));
3102
+ defineProperty$9(NumberWrapper, key$1, getOwnPropertyDescriptor$1(NativeNumber, key$1));
3006
3103
  }
3007
3104
  }
3008
3105
  NumberWrapper.prototype = NumberPrototype;
@@ -3033,7 +3130,7 @@
3033
3130
  }
3034
3131
  };
3035
3132
 
3036
- var defineProperty$7 = objectDefineProperty.f;
3133
+ var defineProperty$8 = objectDefineProperty.f;
3037
3134
  var getOwnPropertyNames$2 = objectGetOwnPropertyNames.f;
3038
3135
 
3039
3136
 
@@ -3067,10 +3164,11 @@
3067
3164
  // "new" should create a new object, old webkit bug
3068
3165
  var CORRECT_NEW = new NativeRegExp(re1) !== re1;
3069
3166
 
3167
+ var MISSED_STICKY = regexpStickyHelpers.MISSED_STICKY;
3070
3168
  var UNSUPPORTED_Y$1 = regexpStickyHelpers.UNSUPPORTED_Y;
3071
3169
 
3072
3170
  var BASE_FORCED = descriptors &&
3073
- (!CORRECT_NEW || UNSUPPORTED_Y$1 || regexpUnsupportedDotAll || regexpUnsupportedNcg || fails(function () {
3171
+ (!CORRECT_NEW || MISSED_STICKY || regexpUnsupportedDotAll || regexpUnsupportedNcg || fails(function () {
3074
3172
  re2[MATCH$1] = false;
3075
3173
  // RegExp constructor can alter flags and IsRegExp works correct with @@match
3076
3174
  return NativeRegExp(re1) != re1 || NativeRegExp(re2) == re2 || NativeRegExp(re1, 'i') != '/a/i';
@@ -3175,9 +3273,9 @@
3175
3273
 
3176
3274
  rawFlags = flags;
3177
3275
 
3178
- if (UNSUPPORTED_Y$1 && 'sticky' in re1) {
3276
+ if (MISSED_STICKY && 'sticky' in re1) {
3179
3277
  sticky = !!flags && stringIndexOf$1(flags, 'y') > -1;
3180
- if (sticky) flags = replace$1(flags, /y/g, '');
3278
+ if (sticky && UNSUPPORTED_Y$1) flags = replace$1(flags, /y/g, '');
3181
3279
  }
3182
3280
 
3183
3281
  if (regexpUnsupportedNcg) {
@@ -3207,7 +3305,7 @@
3207
3305
  };
3208
3306
 
3209
3307
  var proxy = function (key) {
3210
- key in RegExpWrapper || defineProperty$7(RegExpWrapper, key, {
3308
+ key in RegExpWrapper || defineProperty$8(RegExpWrapper, key, {
3211
3309
  configurable: true,
3212
3310
  get: function () { return NativeRegExp[key]; },
3213
3311
  set: function (it) { NativeRegExp[key] = it; }
@@ -3226,7 +3324,18 @@
3226
3324
  // https://tc39.es/ecma262/#sec-get-regexp-@@species
3227
3325
  setSpecies('RegExp');
3228
3326
 
3229
- var arraySlice = functionUncurryThis([].slice);
3327
+ var Array$6 = global_1.Array;
3328
+ var max$1 = Math.max;
3329
+
3330
+ var arraySliceSimple = function (O, start, end) {
3331
+ var length = lengthOfArrayLike(O);
3332
+ var k = toAbsoluteIndex(start, length);
3333
+ var fin = toAbsoluteIndex(end === undefined ? length : end, length);
3334
+ var result = Array$6(max$1(fin - k, 0));
3335
+ for (var n = 0; k < fin; k++, n++) createProperty(result, n, O[k]);
3336
+ result.length = n;
3337
+ return result;
3338
+ };
3230
3339
 
3231
3340
  /* eslint-disable es/no-object-getownpropertynames -- safe */
3232
3341
 
@@ -3241,7 +3350,7 @@
3241
3350
  try {
3242
3351
  return $getOwnPropertyNames$1(it);
3243
3352
  } catch (error) {
3244
- return arraySlice(windowNames);
3353
+ return arraySliceSimple(windowNames);
3245
3354
  }
3246
3355
  };
3247
3356
 
@@ -3259,11 +3368,11 @@
3259
3368
  var getOwnPropertyNames$1 = objectGetOwnPropertyNamesExternal.f;
3260
3369
 
3261
3370
  // eslint-disable-next-line es/no-object-getownpropertynames -- required for testing
3262
- var FAILS_ON_PRIMITIVES$2 = fails(function () { return !Object.getOwnPropertyNames(1); });
3371
+ var FAILS_ON_PRIMITIVES$3 = fails(function () { return !Object.getOwnPropertyNames(1); });
3263
3372
 
3264
3373
  // `Object.getOwnPropertyNames` method
3265
3374
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
3266
- _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$2 }, {
3375
+ _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$3 }, {
3267
3376
  getOwnPropertyNames: getOwnPropertyNames$1
3268
3377
  });
3269
3378
 
@@ -3321,12 +3430,12 @@
3321
3430
  var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
3322
3431
 
3323
3432
 
3324
- var FAILS_ON_PRIMITIVES$1 = fails(function () { nativeGetOwnPropertyDescriptor$1(1); });
3325
- var FORCED$7 = !descriptors || FAILS_ON_PRIMITIVES$1;
3433
+ var FAILS_ON_PRIMITIVES$2 = fails(function () { nativeGetOwnPropertyDescriptor$1(1); });
3434
+ var FORCED$6 = !descriptors || FAILS_ON_PRIMITIVES$2;
3326
3435
 
3327
3436
  // `Object.getOwnPropertyDescriptor` method
3328
3437
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
3329
- _export({ target: 'Object', stat: true, forced: FORCED$7, sham: !descriptors }, {
3438
+ _export({ target: 'Object', stat: true, forced: FORCED$6, sham: !descriptors }, {
3330
3439
  getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
3331
3440
  return nativeGetOwnPropertyDescriptor$1(toIndexedObject(it), key);
3332
3441
  }
@@ -3405,7 +3514,7 @@
3405
3514
  lastIndex = separatorCopy.lastIndex;
3406
3515
  if (lastIndex > lastLastIndex) {
3407
3516
  push$3(output, stringSlice$2(string, lastLastIndex, match.index));
3408
- if (match.length > 1 && match.index < string.length) functionApply($push, output, arraySlice(match, 1));
3517
+ if (match.length > 1 && match.index < string.length) functionApply($push, output, arraySliceSimple(match, 1));
3409
3518
  lastLength = match[0].length;
3410
3519
  lastLastIndex = lastIndex;
3411
3520
  if (output.length >= lim) break;
@@ -3415,7 +3524,7 @@
3415
3524
  if (lastLastIndex === string.length) {
3416
3525
  if (lastLength || !exec(separatorCopy, '')) push$3(output, '');
3417
3526
  } else push$3(output, stringSlice$2(string, lastLastIndex));
3418
- return output.length > lim ? arraySlice(output, 0, lim) : output;
3527
+ return output.length > lim ? arraySliceSimple(output, 0, lim) : output;
3419
3528
  };
3420
3529
  // Chakra, V8
3421
3530
  } else if ('0'.split(undefined, 0).length) {
@@ -3546,15 +3655,16 @@
3546
3655
  BUGGY_SAFARI_ITERATORS: BUGGY_SAFARI_ITERATORS$1
3547
3656
  };
3548
3657
 
3549
- var defineProperty$6 = objectDefineProperty.f;
3658
+ var defineProperty$7 = objectDefineProperty.f;
3550
3659
 
3551
3660
 
3552
3661
 
3553
3662
  var TO_STRING_TAG$2 = wellKnownSymbol('toStringTag');
3554
3663
 
3555
- var setToStringTag = function (it, TAG, STATIC) {
3556
- if (it && !hasOwnProperty_1(it = STATIC ? it : it.prototype, TO_STRING_TAG$2)) {
3557
- defineProperty$6(it, TO_STRING_TAG$2, { configurable: true, value: TAG });
3664
+ var setToStringTag = function (target, TAG, STATIC) {
3665
+ if (target && !STATIC) target = target.prototype;
3666
+ if (target && !hasOwnProperty_1(target, TO_STRING_TAG$2)) {
3667
+ defineProperty$7(target, TO_STRING_TAG$2, { configurable: true, value: TAG });
3558
3668
  }
3559
3669
  };
3560
3670
 
@@ -3566,15 +3676,15 @@
3566
3676
 
3567
3677
  var returnThis$1 = function () { return this; };
3568
3678
 
3569
- var createIteratorConstructor = function (IteratorConstructor, NAME, next) {
3679
+ var createIteratorConstructor = function (IteratorConstructor, NAME, next, ENUMERABLE_NEXT) {
3570
3680
  var TO_STRING_TAG = NAME + ' Iterator';
3571
- IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(1, next) });
3681
+ IteratorConstructor.prototype = objectCreate(IteratorPrototype$1, { next: createPropertyDescriptor(+!ENUMERABLE_NEXT, next) });
3572
3682
  setToStringTag(IteratorConstructor, TO_STRING_TAG, false);
3573
3683
  iterators[TO_STRING_TAG] = returnThis$1;
3574
3684
  return IteratorConstructor;
3575
3685
  };
3576
3686
 
3577
- var PROPER_FUNCTION_NAME$3 = functionName.PROPER;
3687
+ var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
3578
3688
  var CONFIGURABLE_FUNCTION_NAME$1 = functionName.CONFIGURABLE;
3579
3689
  var IteratorPrototype = iteratorsCore.IteratorPrototype;
3580
3690
  var BUGGY_SAFARI_ITERATORS = iteratorsCore.BUGGY_SAFARI_ITERATORS;
@@ -3625,7 +3735,7 @@
3625
3735
  }
3626
3736
 
3627
3737
  // fix Array.prototype.{ values, @@iterator }.name in V8 / FF
3628
- if (PROPER_FUNCTION_NAME$3 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
3738
+ if (PROPER_FUNCTION_NAME$2 && DEFAULT == VALUES && nativeIterator && nativeIterator.name !== VALUES) {
3629
3739
  if (CONFIGURABLE_FUNCTION_NAME$1) {
3630
3740
  createNonEnumerableProperty(IterablePrototype, 'name', VALUES);
3631
3741
  } else {
@@ -3657,6 +3767,11 @@
3657
3767
  return methods;
3658
3768
  };
3659
3769
 
3770
+ var defineProperty$6 = objectDefineProperty.f;
3771
+
3772
+
3773
+
3774
+
3660
3775
  var ARRAY_ITERATOR = 'Array Iterator';
3661
3776
  var setInternalState$5 = internalState.set;
3662
3777
  var getInternalState$4 = internalState.getterFor(ARRAY_ITERATOR);
@@ -3697,13 +3812,18 @@
3697
3812
  // argumentsList[@@iterator] is %ArrayProto_values%
3698
3813
  // https://tc39.es/ecma262/#sec-createunmappedargumentsobject
3699
3814
  // https://tc39.es/ecma262/#sec-createmappedargumentsobject
3700
- iterators.Arguments = iterators.Array;
3815
+ var values = iterators.Arguments = iterators.Array;
3701
3816
 
3702
3817
  // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
3703
3818
  addToUnscopables('keys');
3704
3819
  addToUnscopables('values');
3705
3820
  addToUnscopables('entries');
3706
3821
 
3822
+ // V8 ~ Chrome 45- bug
3823
+ if (descriptors && values.name !== 'values') try {
3824
+ defineProperty$6(values, 'name', { value: 'values' });
3825
+ } catch (error) { /* empty */ }
3826
+
3707
3827
  var ITERATOR$4 = wellKnownSymbol('iterator');
3708
3828
  var SAFE_CLOSING = false;
3709
3829
 
@@ -3751,12 +3871,12 @@
3751
3871
 
3752
3872
 
3753
3873
 
3754
- var Int8Array$3 = global_1.Int8Array;
3755
- var Int8ArrayPrototype = Int8Array$3 && Int8Array$3.prototype;
3756
- var Uint8ClampedArray = global_1.Uint8ClampedArray;
3757
- var Uint8ClampedArrayPrototype = Uint8ClampedArray && Uint8ClampedArray.prototype;
3758
- var TypedArray = Int8Array$3 && objectGetPrototypeOf(Int8Array$3);
3759
- var TypedArrayPrototype = Int8ArrayPrototype && objectGetPrototypeOf(Int8ArrayPrototype);
3874
+ var Int8Array$4 = global_1.Int8Array;
3875
+ var Int8ArrayPrototype$1 = Int8Array$4 && Int8Array$4.prototype;
3876
+ var Uint8ClampedArray$1 = global_1.Uint8ClampedArray;
3877
+ var Uint8ClampedArrayPrototype = Uint8ClampedArray$1 && Uint8ClampedArray$1.prototype;
3878
+ var TypedArray = Int8Array$4 && objectGetPrototypeOf(Int8Array$4);
3879
+ var TypedArrayPrototype$1 = Int8ArrayPrototype$1 && objectGetPrototypeOf(Int8ArrayPrototype$1);
3760
3880
  var ObjectPrototype$2 = Object.prototype;
3761
3881
  var TypeError$8 = global_1.TypeError;
3762
3882
 
@@ -3765,7 +3885,7 @@
3765
3885
  var TYPED_ARRAY_CONSTRUCTOR$1 = uid('TYPED_ARRAY_CONSTRUCTOR');
3766
3886
  // Fixing native typed arrays in Opera Presto crashes the browser, see #595
3767
3887
  var NATIVE_ARRAY_BUFFER_VIEWS$1 = arrayBufferNative && !!objectSetPrototypeOf && classof(global_1.opera) !== 'Opera';
3768
- var TYPED_ARRAY_TAG_REQIRED = false;
3888
+ var TYPED_ARRAY_TAG_REQUIRED = false;
3769
3889
  var NAME, Constructor, Prototype;
3770
3890
 
3771
3891
  var TypedArrayConstructorsList = {
@@ -3810,17 +3930,22 @@
3810
3930
  throw TypeError$8(tryToString(C) + ' is not a typed array constructor');
3811
3931
  };
3812
3932
 
3813
- var exportTypedArrayMethod$n = function (KEY, property, forced) {
3933
+ var exportTypedArrayMethod$n = function (KEY, property, forced, options) {
3814
3934
  if (!descriptors) return;
3815
3935
  if (forced) for (var ARRAY in TypedArrayConstructorsList) {
3816
3936
  var TypedArrayConstructor = global_1[ARRAY];
3817
3937
  if (TypedArrayConstructor && hasOwnProperty_1(TypedArrayConstructor.prototype, KEY)) try {
3818
3938
  delete TypedArrayConstructor.prototype[KEY];
3819
- } catch (error) { /* empty */ }
3939
+ } catch (error) {
3940
+ // old WebKit bug - some methods are non-configurable
3941
+ try {
3942
+ TypedArrayConstructor.prototype[KEY] = property;
3943
+ } catch (error2) { /* empty */ }
3944
+ }
3820
3945
  }
3821
- if (!TypedArrayPrototype[KEY] || forced) {
3822
- redefine(TypedArrayPrototype, KEY, forced ? property
3823
- : NATIVE_ARRAY_BUFFER_VIEWS$1 && Int8ArrayPrototype[KEY] || property);
3946
+ if (!TypedArrayPrototype$1[KEY] || forced) {
3947
+ redefine(TypedArrayPrototype$1, KEY, forced ? property
3948
+ : NATIVE_ARRAY_BUFFER_VIEWS$1 && Int8ArrayPrototype$1[KEY] || property, options);
3824
3949
  }
3825
3950
  };
3826
3951
 
@@ -3873,21 +3998,21 @@
3873
3998
  }
3874
3999
  }
3875
4000
 
3876
- if (!NATIVE_ARRAY_BUFFER_VIEWS$1 || !TypedArrayPrototype || TypedArrayPrototype === ObjectPrototype$2) {
3877
- TypedArrayPrototype = TypedArray.prototype;
4001
+ if (!NATIVE_ARRAY_BUFFER_VIEWS$1 || !TypedArrayPrototype$1 || TypedArrayPrototype$1 === ObjectPrototype$2) {
4002
+ TypedArrayPrototype$1 = TypedArray.prototype;
3878
4003
  if (NATIVE_ARRAY_BUFFER_VIEWS$1) for (NAME in TypedArrayConstructorsList) {
3879
- if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME].prototype, TypedArrayPrototype);
4004
+ if (global_1[NAME]) objectSetPrototypeOf(global_1[NAME].prototype, TypedArrayPrototype$1);
3880
4005
  }
3881
4006
  }
3882
4007
 
3883
4008
  // WebKit bug - one more object in Uint8ClampedArray prototype chain
3884
- if (NATIVE_ARRAY_BUFFER_VIEWS$1 && objectGetPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype) {
3885
- objectSetPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype);
4009
+ if (NATIVE_ARRAY_BUFFER_VIEWS$1 && objectGetPrototypeOf(Uint8ClampedArrayPrototype) !== TypedArrayPrototype$1) {
4010
+ objectSetPrototypeOf(Uint8ClampedArrayPrototype, TypedArrayPrototype$1);
3886
4011
  }
3887
4012
 
3888
- if (descriptors && !hasOwnProperty_1(TypedArrayPrototype, TO_STRING_TAG$1)) {
3889
- TYPED_ARRAY_TAG_REQIRED = true;
3890
- defineProperty$5(TypedArrayPrototype, TO_STRING_TAG$1, { get: function () {
4013
+ if (descriptors && !hasOwnProperty_1(TypedArrayPrototype$1, TO_STRING_TAG$1)) {
4014
+ TYPED_ARRAY_TAG_REQUIRED = true;
4015
+ defineProperty$5(TypedArrayPrototype$1, TO_STRING_TAG$1, { get: function () {
3891
4016
  return isObject$1(this) ? this[TYPED_ARRAY_TAG] : undefined;
3892
4017
  } });
3893
4018
  for (NAME in TypedArrayConstructorsList) if (global_1[NAME]) {
@@ -3898,7 +4023,7 @@
3898
4023
  var arrayBufferViewCore = {
3899
4024
  NATIVE_ARRAY_BUFFER_VIEWS: NATIVE_ARRAY_BUFFER_VIEWS$1,
3900
4025
  TYPED_ARRAY_CONSTRUCTOR: TYPED_ARRAY_CONSTRUCTOR$1,
3901
- TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQIRED && TYPED_ARRAY_TAG,
4026
+ TYPED_ARRAY_TAG: TYPED_ARRAY_TAG_REQUIRED && TYPED_ARRAY_TAG,
3902
4027
  aTypedArray: aTypedArray$m,
3903
4028
  aTypedArrayConstructor: aTypedArrayConstructor$2,
3904
4029
  exportTypedArrayMethod: exportTypedArrayMethod$n,
@@ -3906,7 +4031,7 @@
3906
4031
  isView: isView,
3907
4032
  isTypedArray: isTypedArray,
3908
4033
  TypedArray: TypedArray,
3909
- TypedArrayPrototype: TypedArrayPrototype
4034
+ TypedArrayPrototype: TypedArrayPrototype$1
3910
4035
  };
3911
4036
 
3912
4037
  /* eslint-disable no-new -- required for testing */
@@ -3916,20 +4041,20 @@
3916
4041
  var NATIVE_ARRAY_BUFFER_VIEWS = arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS;
3917
4042
 
3918
4043
  var ArrayBuffer$2 = global_1.ArrayBuffer;
3919
- var Int8Array$2 = global_1.Int8Array;
4044
+ var Int8Array$3 = global_1.Int8Array;
3920
4045
 
3921
4046
  var typedArrayConstructorsRequireWrappers = !NATIVE_ARRAY_BUFFER_VIEWS || !fails(function () {
3922
- Int8Array$2(1);
4047
+ Int8Array$3(1);
3923
4048
  }) || !fails(function () {
3924
- new Int8Array$2(-1);
4049
+ new Int8Array$3(-1);
3925
4050
  }) || !checkCorrectnessOfIteration(function (iterable) {
3926
- new Int8Array$2();
3927
- new Int8Array$2(null);
3928
- new Int8Array$2(1.5);
3929
- new Int8Array$2(iterable);
4051
+ new Int8Array$3();
4052
+ new Int8Array$3(null);
4053
+ new Int8Array$3(1.5);
4054
+ new Int8Array$3(iterable);
3930
4055
  }, true) || fails(function () {
3931
4056
  // Safari (11+) bug - a reason why even Safari 13 should load a typed array polyfill
3932
- return new Int8Array$2(new ArrayBuffer$2(2), 1, undefined).length !== 1;
4057
+ return new Int8Array$3(new ArrayBuffer$2(2), 1, undefined).length !== 1;
3933
4058
  });
3934
4059
 
3935
4060
  var redefineAll = function (target, src, options) {
@@ -3983,7 +4108,8 @@
3983
4108
  exponent = eMax;
3984
4109
  } else {
3985
4110
  exponent = floor$4(log$2(number) / LN2);
3986
- if (number * (c = pow$1(2, -exponent)) < 1) {
4111
+ c = pow$1(2, -exponent);
4112
+ if (number * c < 1) {
3987
4113
  exponent--;
3988
4114
  c *= 2;
3989
4115
  }
@@ -4007,10 +4133,18 @@
4007
4133
  exponent = 0;
4008
4134
  }
4009
4135
  }
4010
- for (; mantissaLength >= 8; buffer[index++] = mantissa & 255, mantissa /= 256, mantissaLength -= 8);
4136
+ while (mantissaLength >= 8) {
4137
+ buffer[index++] = mantissa & 255;
4138
+ mantissa /= 256;
4139
+ mantissaLength -= 8;
4140
+ }
4011
4141
  exponent = exponent << mantissaLength | mantissa;
4012
4142
  exponentLength += mantissaLength;
4013
- for (; exponentLength > 0; buffer[index++] = exponent & 255, exponent /= 256, exponentLength -= 8);
4143
+ while (exponentLength > 0) {
4144
+ buffer[index++] = exponent & 255;
4145
+ exponent /= 256;
4146
+ exponentLength -= 8;
4147
+ }
4014
4148
  buffer[--index] |= sign * 128;
4015
4149
  return buffer;
4016
4150
  };
@@ -4026,11 +4160,17 @@
4026
4160
  var exponent = sign & 127;
4027
4161
  var mantissa;
4028
4162
  sign >>= 7;
4029
- for (; nBits > 0; exponent = exponent * 256 + buffer[index], index--, nBits -= 8);
4163
+ while (nBits > 0) {
4164
+ exponent = exponent * 256 + buffer[index--];
4165
+ nBits -= 8;
4166
+ }
4030
4167
  mantissa = exponent & (1 << -nBits) - 1;
4031
4168
  exponent >>= -nBits;
4032
4169
  nBits += mantissaLength;
4033
- for (; nBits > 0; mantissa = mantissa * 256 + buffer[index], index--, nBits -= 8);
4170
+ while (nBits > 0) {
4171
+ mantissa = mantissa * 256 + buffer[index--];
4172
+ nBits -= 8;
4173
+ }
4034
4174
  if (exponent === 0) {
4035
4175
  exponent = 1 - eBias;
4036
4176
  } else if (exponent === eMax) {
@@ -4066,7 +4206,7 @@
4066
4206
 
4067
4207
 
4068
4208
 
4069
- var PROPER_FUNCTION_NAME$2 = functionName.PROPER;
4209
+ var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
4070
4210
  var CONFIGURABLE_FUNCTION_NAME = functionName.CONFIGURABLE;
4071
4211
  var getInternalState$3 = internalState.get;
4072
4212
  var setInternalState$4 = internalState.set;
@@ -4123,7 +4263,7 @@
4123
4263
  if (intIndex + count > store.byteLength) throw RangeError$6(WRONG_INDEX);
4124
4264
  var bytes = getInternalState$3(store.buffer).bytes;
4125
4265
  var start = intIndex + store.byteOffset;
4126
- var pack = arraySlice(bytes, start, start + count);
4266
+ var pack = arraySliceSimple(bytes, start, start + count);
4127
4267
  return isLittleEndian ? pack : reverse(pack);
4128
4268
  };
4129
4269
 
@@ -4232,7 +4372,7 @@
4232
4372
  }
4233
4373
  });
4234
4374
  } else {
4235
- var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME$2 && NativeArrayBuffer$1.name !== ARRAY_BUFFER$1;
4375
+ var INCORRECT_ARRAY_BUFFER_NAME = PROPER_FUNCTION_NAME$1 && NativeArrayBuffer$1.name !== ARRAY_BUFFER$1;
4236
4376
  /* eslint-disable no-new -- required for testing */
4237
4377
  if (!fails(function () {
4238
4378
  NativeArrayBuffer$1(1);
@@ -4686,7 +4826,7 @@
4686
4826
 
4687
4827
  var arrayFromConstructorAndList = function (Constructor, list) {
4688
4828
  var index = 0;
4689
- var length = list.length;
4829
+ var length = lengthOfArrayLike(list);
4690
4830
  var result = new Constructor(length);
4691
4831
  while (length > index) result[index] = list[index++];
4692
4832
  return result;
@@ -4773,11 +4913,6 @@
4773
4913
  return $indexOf(aTypedArray$d(this), searchElement, arguments.length > 1 ? arguments[1] : undefined);
4774
4914
  });
4775
4915
 
4776
- var PROPER_FUNCTION_NAME$1 = functionName.PROPER;
4777
-
4778
-
4779
-
4780
-
4781
4916
  var ITERATOR$1 = wellKnownSymbol('iterator');
4782
4917
  var Uint8Array$2 = global_1.Uint8Array;
4783
4918
  var arrayValues = functionUncurryThis(es_array_iterator.values);
@@ -4785,9 +4920,16 @@
4785
4920
  var arrayEntries = functionUncurryThis(es_array_iterator.entries);
4786
4921
  var aTypedArray$c = arrayBufferViewCore.aTypedArray;
4787
4922
  var exportTypedArrayMethod$d = arrayBufferViewCore.exportTypedArrayMethod;
4788
- var nativeTypedArrayIterator = Uint8Array$2 && Uint8Array$2.prototype[ITERATOR$1];
4923
+ var TypedArrayPrototype = Uint8Array$2 && Uint8Array$2.prototype;
4924
+
4925
+ var GENERIC = !fails(function () {
4926
+ TypedArrayPrototype[ITERATOR$1].call([1]);
4927
+ });
4789
4928
 
4790
- var PROPER_ARRAY_VALUES_NAME = !!nativeTypedArrayIterator && nativeTypedArrayIterator.name === 'values';
4929
+ var ITERATOR_IS_VALUES = !!TypedArrayPrototype
4930
+ && TypedArrayPrototype.values
4931
+ && TypedArrayPrototype[ITERATOR$1] === TypedArrayPrototype.values
4932
+ && TypedArrayPrototype.values.name === 'values';
4791
4933
 
4792
4934
  var typedArrayValues = function values() {
4793
4935
  return arrayValues(aTypedArray$c(this));
@@ -4797,18 +4939,18 @@
4797
4939
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.entries
4798
4940
  exportTypedArrayMethod$d('entries', function entries() {
4799
4941
  return arrayEntries(aTypedArray$c(this));
4800
- });
4942
+ }, GENERIC);
4801
4943
  // `%TypedArray%.prototype.keys` method
4802
4944
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.keys
4803
4945
  exportTypedArrayMethod$d('keys', function keys() {
4804
4946
  return arrayKeys(aTypedArray$c(this));
4805
- });
4947
+ }, GENERIC);
4806
4948
  // `%TypedArray%.prototype.values` method
4807
4949
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype.values
4808
- exportTypedArrayMethod$d('values', typedArrayValues, PROPER_FUNCTION_NAME$1 && !PROPER_ARRAY_VALUES_NAME);
4950
+ exportTypedArrayMethod$d('values', typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' });
4809
4951
  // `%TypedArray%.prototype[@@iterator]` method
4810
4952
  // https://tc39.es/ecma262/#sec-%typedarray%.prototype-@@iterator
4811
- exportTypedArrayMethod$d(ITERATOR$1, typedArrayValues, PROPER_FUNCTION_NAME$1 && !PROPER_ARRAY_VALUES_NAME);
4953
+ exportTypedArrayMethod$d(ITERATOR$1, typedArrayValues, GENERIC || !ITERATOR_IS_VALUES, { name: 'values' });
4812
4954
 
4813
4955
  var aTypedArray$b = arrayBufferViewCore.aTypedArray;
4814
4956
  var exportTypedArrayMethod$c = arrayBufferViewCore.exportTypedArrayMethod;
@@ -4831,11 +4973,11 @@
4831
4973
  var $lastIndexOf = [].lastIndexOf;
4832
4974
  var NEGATIVE_ZERO = !!$lastIndexOf && 1 / [1].lastIndexOf(1, -0) < 0;
4833
4975
  var STRICT_METHOD$1 = arrayMethodIsStrict('lastIndexOf');
4834
- var FORCED$6 = NEGATIVE_ZERO || !STRICT_METHOD$1;
4976
+ var FORCED$5 = NEGATIVE_ZERO || !STRICT_METHOD$1;
4835
4977
 
4836
4978
  // `Array.prototype.lastIndexOf` method implementation
4837
4979
  // https://tc39.es/ecma262/#sec-array.prototype.lastindexof
4838
- var arrayLastIndexOf = FORCED$6 ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
4980
+ var arrayLastIndexOf = FORCED$5 ? function lastIndexOf(searchElement /* , fromIndex = @[*-1] */) {
4839
4981
  // convert -0 to +0
4840
4982
  if (NEGATIVE_ZERO) return functionApply($lastIndexOf, this, arguments) || 0;
4841
4983
  var O = toIndexedObject(this);
@@ -4953,12 +5095,25 @@
4953
5095
  });
4954
5096
 
4955
5097
  var RangeError$3 = global_1.RangeError;
5098
+ var Int8Array$2 = global_1.Int8Array;
5099
+ var Int8ArrayPrototype = Int8Array$2 && Int8Array$2.prototype;
5100
+ var $set = Int8ArrayPrototype && Int8ArrayPrototype.set;
4956
5101
  var aTypedArray$5 = arrayBufferViewCore.aTypedArray;
4957
5102
  var exportTypedArrayMethod$6 = arrayBufferViewCore.exportTypedArrayMethod;
4958
5103
 
4959
- var FORCED$5 = fails(function () {
5104
+ var WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS = !fails(function () {
4960
5105
  // eslint-disable-next-line es/no-typed-arrays -- required for testing
4961
- new Int8Array(1).set({});
5106
+ var array = new Uint8ClampedArray(2);
5107
+ functionCall($set, array, { length: 1, 0: 3 }, 1);
5108
+ return array[1] !== 3;
5109
+ });
5110
+
5111
+ // https://bugs.chromium.org/p/v8/issues/detail?id=11294 and other
5112
+ var TO_OBJECT_BUG = WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS && arrayBufferViewCore.NATIVE_ARRAY_BUFFER_VIEWS && fails(function () {
5113
+ var array = new Int8Array$2(2);
5114
+ array.set(1);
5115
+ array.set('2', 1);
5116
+ return array[0] !== 0 || array[1] !== 2;
4962
5117
  });
4963
5118
 
4964
5119
  // `%TypedArray%.prototype.set` method
@@ -4966,13 +5121,16 @@
4966
5121
  exportTypedArrayMethod$6('set', function set(arrayLike /* , offset */) {
4967
5122
  aTypedArray$5(this);
4968
5123
  var offset = toOffset(arguments.length > 1 ? arguments[1] : undefined, 1);
4969
- var length = this.length;
4970
5124
  var src = toObject(arrayLike);
5125
+ if (WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS) return functionCall($set, this, src, offset);
5126
+ var length = this.length;
4971
5127
  var len = lengthOfArrayLike(src);
4972
5128
  var index = 0;
4973
5129
  if (len + offset > length) throw RangeError$3('Wrong length');
4974
5130
  while (index < len) this[offset + index] = src[index++];
4975
- }, FORCED$5);
5131
+ }, !WORKS_WITH_OBJECTS_AND_GEERIC_ON_TYPED_ARRAYS || TO_OBJECT_BUG);
5132
+
5133
+ var arraySlice = functionUncurryThis([].slice);
4976
5134
 
4977
5135
  var aTypedArray$4 = arrayBufferViewCore.aTypedArray;
4978
5136
  var exportTypedArrayMethod$5 = arrayBufferViewCore.exportTypedArrayMethod;
@@ -5012,8 +5170,8 @@
5012
5170
  var middle = floor$1(length / 2);
5013
5171
  return length < 8 ? insertionSort(array, comparefn) : merge(
5014
5172
  array,
5015
- mergeSort(arraySlice(array, 0, middle), comparefn),
5016
- mergeSort(arraySlice(array, middle), comparefn),
5173
+ mergeSort(arraySliceSimple(array, 0, middle), comparefn),
5174
+ mergeSort(arraySliceSimple(array, middle), comparefn),
5017
5175
  comparefn
5018
5176
  );
5019
5177
  };
@@ -5366,6 +5524,7 @@
5366
5524
 
5367
5525
  objectPropertyIsEnumerable.f = $propertyIsEnumerable$1;
5368
5526
  objectDefineProperty.f = $defineProperty;
5527
+ objectDefineProperties.f = $defineProperties;
5369
5528
  objectGetOwnPropertyDescriptor.f = $getOwnPropertyDescriptor;
5370
5529
  objectGetOwnPropertyNames.f = objectGetOwnPropertyNamesExternal.f = $getOwnPropertyNames;
5371
5530
  objectGetOwnPropertySymbols.f = $getOwnPropertySymbols;
@@ -7775,7 +7934,7 @@
7775
7934
  }
7776
7935
  }
7777
7936
 
7778
- var queue$1 = [];
7937
+ var queue$2 = [];
7779
7938
  var draining = false;
7780
7939
  var currentQueue;
7781
7940
  var queueIndex = -1;
@@ -7788,12 +7947,12 @@
7788
7947
  draining = false;
7789
7948
 
7790
7949
  if (currentQueue.length) {
7791
- queue$1 = currentQueue.concat(queue$1);
7950
+ queue$2 = currentQueue.concat(queue$2);
7792
7951
  } else {
7793
7952
  queueIndex = -1;
7794
7953
  }
7795
7954
 
7796
- if (queue$1.length) {
7955
+ if (queue$2.length) {
7797
7956
  drainQueue();
7798
7957
  }
7799
7958
  }
@@ -7805,11 +7964,11 @@
7805
7964
 
7806
7965
  var timeout = runTimeout(cleanUpNextTick);
7807
7966
  draining = true;
7808
- var len = queue$1.length;
7967
+ var len = queue$2.length;
7809
7968
 
7810
7969
  while (len) {
7811
- currentQueue = queue$1;
7812
- queue$1 = [];
7970
+ currentQueue = queue$2;
7971
+ queue$2 = [];
7813
7972
 
7814
7973
  while (++queueIndex < len) {
7815
7974
  if (currentQueue) {
@@ -7818,7 +7977,7 @@
7818
7977
  }
7819
7978
 
7820
7979
  queueIndex = -1;
7821
- len = queue$1.length;
7980
+ len = queue$2.length;
7822
7981
  }
7823
7982
 
7824
7983
  currentQueue = null;
@@ -7835,9 +7994,9 @@
7835
7994
  }
7836
7995
  }
7837
7996
 
7838
- queue$1.push(new Item(fun, args));
7997
+ queue$2.push(new Item(fun, args));
7839
7998
 
7840
- if (queue$1.length === 1 && !draining) {
7999
+ if (queue$2.length === 1 && !draining) {
7841
8000
  runTimeout(drainQueue);
7842
8001
  }
7843
8002
  } // v8 likes predictible objects
@@ -12613,7 +12772,7 @@
12613
12772
  var MessageChannel = global_1.MessageChannel;
12614
12773
  var String$2 = global_1.String;
12615
12774
  var counter = 0;
12616
- var queue = {};
12775
+ var queue$1 = {};
12617
12776
  var ONREADYSTATECHANGE = 'onreadystatechange';
12618
12777
  var location$1, defer, channel, port;
12619
12778
 
@@ -12623,9 +12782,9 @@
12623
12782
  } catch (error) { /* empty */ }
12624
12783
 
12625
12784
  var run = function (id) {
12626
- if (hasOwnProperty_1(queue, id)) {
12627
- var fn = queue[id];
12628
- delete queue[id];
12785
+ if (hasOwnProperty_1(queue$1, id)) {
12786
+ var fn = queue$1[id];
12787
+ delete queue$1[id];
12629
12788
  fn();
12630
12789
  }
12631
12790
  };
@@ -12649,14 +12808,14 @@
12649
12808
  if (!set || !clear) {
12650
12809
  set = function setImmediate(fn) {
12651
12810
  var args = arraySlice(arguments, 1);
12652
- queue[++counter] = function () {
12811
+ queue$1[++counter] = function () {
12653
12812
  functionApply(isCallable(fn) ? fn : Function$1(fn), undefined, args);
12654
12813
  };
12655
12814
  defer(counter);
12656
12815
  return counter;
12657
12816
  };
12658
12817
  clear = function clearImmediate(id) {
12659
- delete queue[id];
12818
+ delete queue$1[id];
12660
12819
  };
12661
12820
  // Node.js 0.8-
12662
12821
  if (engineIsNode) {
@@ -12840,6 +12999,30 @@
12840
12999
  }
12841
13000
  };
12842
13001
 
13002
+ var Queue = function () {
13003
+ this.head = null;
13004
+ this.tail = null;
13005
+ };
13006
+
13007
+ Queue.prototype = {
13008
+ add: function (item) {
13009
+ var entry = { item: item, next: null };
13010
+ if (this.head) this.tail.next = entry;
13011
+ else this.head = entry;
13012
+ this.tail = entry;
13013
+ },
13014
+ get: function () {
13015
+ var entry = this.head;
13016
+ if (entry) {
13017
+ this.head = entry.next;
13018
+ if (this.tail === entry) this.tail = null;
13019
+ return entry.item;
13020
+ }
13021
+ }
13022
+ };
13023
+
13024
+ var queue = Queue;
13025
+
12843
13026
  var engineIsBrowser = typeof window == 'object';
12844
13027
 
12845
13028
  var task = task$1.set;
@@ -12855,10 +13038,11 @@
12855
13038
 
12856
13039
 
12857
13040
 
13041
+
12858
13042
  var SPECIES = wellKnownSymbol('species');
12859
13043
  var PROMISE = 'Promise';
12860
13044
 
12861
- var getInternalState = internalState.get;
13045
+ var getInternalState = internalState.getterFor(PROMISE);
12862
13046
  var setInternalState$1 = internalState.set;
12863
13047
  var getInternalPromiseState = internalState.getterFor(PROMISE);
12864
13048
  var NativePromisePrototype = nativePromiseConstructor && nativePromiseConstructor.prototype;
@@ -12917,49 +13101,50 @@
12917
13101
  return isObject$1(it) && isCallable(then = it.then) ? then : false;
12918
13102
  };
12919
13103
 
13104
+ var callReaction = function (reaction, state) {
13105
+ var value = state.value;
13106
+ var ok = state.state == FULFILLED;
13107
+ var handler = ok ? reaction.ok : reaction.fail;
13108
+ var resolve = reaction.resolve;
13109
+ var reject = reaction.reject;
13110
+ var domain = reaction.domain;
13111
+ var result, then, exited;
13112
+ try {
13113
+ if (handler) {
13114
+ if (!ok) {
13115
+ if (state.rejection === UNHANDLED) onHandleUnhandled(state);
13116
+ state.rejection = HANDLED;
13117
+ }
13118
+ if (handler === true) result = value;
13119
+ else {
13120
+ if (domain) domain.enter();
13121
+ result = handler(value); // can throw
13122
+ if (domain) {
13123
+ domain.exit();
13124
+ exited = true;
13125
+ }
13126
+ }
13127
+ if (result === reaction.promise) {
13128
+ reject(TypeError$1('Promise-chain cycle'));
13129
+ } else if (then = isThenable(result)) {
13130
+ functionCall(then, result, resolve, reject);
13131
+ } else resolve(result);
13132
+ } else reject(value);
13133
+ } catch (error) {
13134
+ if (domain && !exited) domain.exit();
13135
+ reject(error);
13136
+ }
13137
+ };
13138
+
12920
13139
  var notify$1 = function (state, isReject) {
12921
13140
  if (state.notified) return;
12922
13141
  state.notified = true;
12923
- var chain = state.reactions;
12924
13142
  microtask(function () {
12925
- var value = state.value;
12926
- var ok = state.state == FULFILLED;
12927
- var index = 0;
12928
- // variable length - can't use forEach
12929
- while (chain.length > index) {
12930
- var reaction = chain[index++];
12931
- var handler = ok ? reaction.ok : reaction.fail;
12932
- var resolve = reaction.resolve;
12933
- var reject = reaction.reject;
12934
- var domain = reaction.domain;
12935
- var result, then, exited;
12936
- try {
12937
- if (handler) {
12938
- if (!ok) {
12939
- if (state.rejection === UNHANDLED) onHandleUnhandled(state);
12940
- state.rejection = HANDLED;
12941
- }
12942
- if (handler === true) result = value;
12943
- else {
12944
- if (domain) domain.enter();
12945
- result = handler(value); // can throw
12946
- if (domain) {
12947
- domain.exit();
12948
- exited = true;
12949
- }
12950
- }
12951
- if (result === reaction.promise) {
12952
- reject(TypeError$1('Promise-chain cycle'));
12953
- } else if (then = isThenable(result)) {
12954
- functionCall(then, result, resolve, reject);
12955
- } else resolve(result);
12956
- } else reject(value);
12957
- } catch (error) {
12958
- if (domain && !exited) domain.exit();
12959
- reject(error);
12960
- }
13143
+ var reactions = state.reactions;
13144
+ var reaction;
13145
+ while (reaction = reactions.get()) {
13146
+ callReaction(reaction, state);
12961
13147
  }
12962
- state.reactions = [];
12963
13148
  state.notified = false;
12964
13149
  if (isReject && !state.rejection) onUnhandled(state);
12965
13150
  });
@@ -13076,7 +13261,7 @@
13076
13261
  done: false,
13077
13262
  notified: false,
13078
13263
  parent: false,
13079
- reactions: [],
13264
+ reactions: new queue(),
13080
13265
  rejection: false,
13081
13266
  state: PENDING,
13082
13267
  value: undefined
@@ -13085,16 +13270,18 @@
13085
13270
  Internal.prototype = redefineAll(PromisePrototype, {
13086
13271
  // `Promise.prototype.then` method
13087
13272
  // https://tc39.es/ecma262/#sec-promise.prototype.then
13273
+ // eslint-disable-next-line unicorn/no-thenable -- safe
13088
13274
  then: function then(onFulfilled, onRejected) {
13089
13275
  var state = getInternalPromiseState(this);
13090
- var reactions = state.reactions;
13091
13276
  var reaction = newPromiseCapability(speciesConstructor(this, PromiseConstructor));
13277
+ state.parent = true;
13092
13278
  reaction.ok = isCallable(onFulfilled) ? onFulfilled : true;
13093
13279
  reaction.fail = isCallable(onRejected) && onRejected;
13094
13280
  reaction.domain = engineIsNode ? process.domain : undefined;
13095
- state.parent = true;
13096
- reactions[reactions.length] = reaction;
13097
- if (state.state != PENDING) notify$1(state, false);
13281
+ if (state.state == PENDING) state.reactions.add(reaction);
13282
+ else microtask(function () {
13283
+ callReaction(reaction, state);
13284
+ });
13098
13285
  return reaction.promise;
13099
13286
  },
13100
13287
  // `Promise.prototype.catch` method
@@ -16104,6 +16291,29 @@
16104
16291
  return Math.round(ms / n) + ' ' + name + (isPlural ? 's' : '');
16105
16292
  }
16106
16293
 
16294
+ // FF26- bug: ArrayBuffers are non-extensible, but Object.isExtensible does not report it
16295
+
16296
+
16297
+ var arrayBufferNonExtensible = fails(function () {
16298
+ if (typeof ArrayBuffer == 'function') {
16299
+ var buffer = new ArrayBuffer(8);
16300
+ // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
16301
+ if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });
16302
+ }
16303
+ });
16304
+
16305
+ // eslint-disable-next-line es/no-object-isextensible -- safe
16306
+ var $isExtensible = Object.isExtensible;
16307
+ var FAILS_ON_PRIMITIVES$1 = fails(function () { $isExtensible(1); });
16308
+
16309
+ // `Object.isExtensible` method
16310
+ // https://tc39.es/ecma262/#sec-object.isextensible
16311
+ var objectIsExtensible = (FAILS_ON_PRIMITIVES$1 || arrayBufferNonExtensible) ? function isExtensible(it) {
16312
+ if (!isObject$1(it)) return false;
16313
+ if (arrayBufferNonExtensible && classofRaw(it) == 'ArrayBuffer') return false;
16314
+ return $isExtensible ? $isExtensible(it) : true;
16315
+ } : $isExtensible;
16316
+
16107
16317
  var freezing = !fails(function () {
16108
16318
  // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
16109
16319
  return Object.isExtensible(Object.preventExtensions({}));
@@ -16116,15 +16326,11 @@
16116
16326
 
16117
16327
 
16118
16328
 
16329
+
16119
16330
  var REQUIRED = false;
16120
16331
  var METADATA = uid('meta');
16121
16332
  var id = 0;
16122
16333
 
16123
- // eslint-disable-next-line es/no-object-isextensible -- safe
16124
- var isExtensible = Object.isExtensible || function () {
16125
- return true;
16126
- };
16127
-
16128
16334
  var setMetadata = function (it) {
16129
16335
  defineProperty(it, METADATA, { value: {
16130
16336
  objectID: 'O' + id++, // object ID
@@ -16137,7 +16343,7 @@
16137
16343
  if (!isObject$1(it)) return typeof it == 'symbol' ? it : (typeof it == 'string' ? 'S' : 'P') + it;
16138
16344
  if (!hasOwnProperty_1(it, METADATA)) {
16139
16345
  // can't set metadata to uncaught frozen object
16140
- if (!isExtensible(it)) return 'F';
16346
+ if (!objectIsExtensible(it)) return 'F';
16141
16347
  // not necessary to add metadata
16142
16348
  if (!create) return 'E';
16143
16349
  // add missing metadata
@@ -16149,7 +16355,7 @@
16149
16355
  var getWeakData = function (it, create) {
16150
16356
  if (!hasOwnProperty_1(it, METADATA)) {
16151
16357
  // can't set metadata to uncaught frozen object
16152
- if (!isExtensible(it)) return true;
16358
+ if (!objectIsExtensible(it)) return true;
16153
16359
  // not necessary to add metadata
16154
16360
  if (!create) return false;
16155
16361
  // add missing metadata
@@ -16160,7 +16366,7 @@
16160
16366
 
16161
16367
  // add metadata on freeze-family methods calling
16162
16368
  var onFreeze = function (it) {
16163
- if (freezing && REQUIRED && isExtensible(it) && !hasOwnProperty_1(it, METADATA)) setMetadata(it);
16369
+ if (freezing && REQUIRED && objectIsExtensible(it) && !hasOwnProperty_1(it, METADATA)) setMetadata(it);
16164
16370
  return it;
16165
16371
  };
16166
16372
 
@@ -16570,18 +16776,14 @@
16570
16776
 
16571
16777
  var browser$2 = true;
16572
16778
 
16573
- // This alphabet uses `A-Za-z0-9_-` symbols. The genetic algorithm helped
16574
- // optimize the gzip compression for this alphabet.
16575
- var urlAlphabet = 'ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW';
16779
+ var urlAlphabet = 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict';
16576
16780
 
16577
16781
  var customAlphabet = function customAlphabet(alphabet, size) {
16578
16782
  return function () {
16579
- var id = ''; // A compact alternative for `for (var i = 0; i < step; i++)`.
16580
-
16783
+ var id = '';
16581
16784
  var i = size;
16582
16785
 
16583
16786
  while (i--) {
16584
- // `| 0` is more compact and faster than `Math.floor()`.
16585
16787
  id += alphabet[Math.random() * alphabet.length | 0];
16586
16788
  }
16587
16789
 
@@ -16591,12 +16793,10 @@
16591
16793
 
16592
16794
  var nanoid = function nanoid() {
16593
16795
  var size = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 21;
16594
- var id = ''; // A compact alternative for `for (var i = 0; i < step; i++)`.
16595
-
16796
+ var id = '';
16596
16797
  var i = size;
16597
16798
 
16598
16799
  while (i--) {
16599
- // `| 0` is more compact and faster than `Math.floor()`.
16600
16800
  id += urlAlphabet[Math.random() * 64 | 0];
16601
16801
  }
16602
16802
 
@@ -21606,7 +21806,7 @@
21606
21806
  createDebug.formatters = {};
21607
21807
  /**
21608
21808
  * Selects a color for a debug namespace
21609
- * @param {String} namespace The namespace string for the for the debug instance to be colored
21809
+ * @param {String} namespace The namespace string for the debug instance to be colored
21610
21810
  * @return {Number|String} An ANSI color code for the given namespace
21611
21811
  * @api private
21612
21812
  */
@@ -24161,7 +24361,7 @@
24161
24361
  return _this;
24162
24362
  }
24163
24363
 
24164
- return Runner;
24364
+ return _createClass(Runner);
24165
24365
  }(EventEmitter);
24166
24366
  /**
24167
24367
  * Wrapper for setImmediate, process.nextTick, or browser polyfill.
@@ -26493,6 +26693,7 @@
26493
26693
  var result = '0';
26494
26694
  var e, z, j, k;
26495
26695
 
26696
+ // TODO: ES2018 increased the maximum number of fraction digits to 100, need to improve the implementation
26496
26697
  if (fractDigits < 0 || fractDigits > 20) throw RangeError$1('Incorrect fraction digits');
26497
26698
  // eslint-disable-next-line no-self-compare -- NaN check
26498
26699
  if (number != number) return 'NaN';
@@ -28107,7 +28308,7 @@
28107
28308
  });
28108
28309
 
28109
28310
  var name = "mocha";
28110
- var version = "9.1.4";
28311
+ var version = "9.2.0";
28111
28312
  var homepage = "https://mochajs.org/";
28112
28313
  var notifyLogo = "https://ibin.co/4QuRuGjXvl36.png";
28113
28314
  var _package = {
@@ -29090,14 +29291,6 @@
29090
29291
  exports: exports$1
29091
29292
  };
29092
29293
 
29093
- /**
29094
- * @module Context
29095
- */
29096
-
29097
- /**
29098
- * Expose `Context`.
29099
- */
29100
-
29101
29294
  var context = Context;
29102
29295
  /**
29103
29296
  * Initialize a new `Context`.