@spothero/ui 14.3.5-beta.0 → 14.4.0-beta.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.
@@ -15,7 +15,7 @@ import min$2 from 'lodash/min';
15
15
  import times from 'lodash/times';
16
16
  import isEmpty from 'lodash/isEmpty';
17
17
  import forEach$5 from 'lodash/forEach';
18
- import isArray$6 from 'lodash/isArray';
18
+ import isArray$7 from 'lodash/isArray';
19
19
  import isArrayLikeObject from 'lodash/isArrayLikeObject';
20
20
  import includes$5 from 'lodash/includes';
21
21
  import omit from 'lodash/omit';
@@ -38,7 +38,7 @@ var check = function (it) {
38
38
 
39
39
  // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
40
40
  var global_1 =
41
- // eslint-disable-next-line es/no-global-this -- safe
41
+ // eslint-disable-next-line es-x/no-global-this -- safe
42
42
  check(typeof globalThis == 'object' && globalThis) ||
43
43
  check(typeof window == 'object' && window) ||
44
44
  // eslint-disable-next-line no-restricted-globals -- safe
@@ -56,6 +56,7 @@ var fails = function (exec) {
56
56
  };
57
57
 
58
58
  var functionBindNative = !fails(function () {
59
+ // eslint-disable-next-line es-x/no-function-prototype-bind -- safe
59
60
  var test = (function () { /* empty */ }).bind();
60
61
  // eslint-disable-next-line no-prototype-builtins -- safe
61
62
  return typeof test != 'function' || test.hasOwnProperty('prototype');
@@ -65,7 +66,7 @@ var FunctionPrototype$2 = Function.prototype;
65
66
  var apply = FunctionPrototype$2.apply;
66
67
  var call$2 = FunctionPrototype$2.call;
67
68
 
68
- // eslint-disable-next-line es/no-reflect -- safe
69
+ // eslint-disable-next-line es-x/no-reflect -- safe
69
70
  var functionApply = typeof Reflect == 'object' && Reflect.apply || (functionBindNative ? call$2.bind(apply) : function () {
70
71
  return call$2.apply(apply, arguments);
71
72
  });
@@ -91,7 +92,7 @@ var isCallable = function (argument) {
91
92
 
92
93
  // Detect IE8's incomplete defineProperty implementation
93
94
  var descriptors = !fails(function () {
94
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
95
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
95
96
  return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
96
97
  });
97
98
 
@@ -102,7 +103,7 @@ var functionCall = functionBindNative ? call.bind(call) : function () {
102
103
  };
103
104
 
104
105
  var $propertyIsEnumerable$1 = {}.propertyIsEnumerable;
105
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
106
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
106
107
  var getOwnPropertyDescriptor$4 = Object.getOwnPropertyDescriptor;
107
108
 
108
109
  // Nashorn ~ JDK8 bug
@@ -184,8 +185,8 @@ var objectIsPrototypeOf = functionUncurryThis({}.isPrototypeOf);
184
185
  var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
185
186
 
186
187
  var process$4 = global_1.process;
187
- var Deno = global_1.Deno;
188
- var versions = process$4 && process$4.versions || Deno && Deno.version;
188
+ var Deno$1 = global_1.Deno;
189
+ var versions = process$4 && process$4.versions || Deno$1 && Deno$1.version;
189
190
  var v8 = versions && versions.v8;
190
191
  var match, version;
191
192
 
@@ -208,11 +209,11 @@ if (!version && engineUserAgent) {
208
209
 
209
210
  var engineV8Version = version;
210
211
 
211
- /* eslint-disable es/no-symbol -- required for testing */
212
+ /* eslint-disable es-x/no-symbol -- required for testing */
212
213
 
213
214
 
214
215
 
215
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
216
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- required for testing
216
217
  var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
217
218
  var symbol = Symbol();
218
219
  // Chrome 38 Symbol has incorrect toString conversion
@@ -222,7 +223,7 @@ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
222
223
  !Symbol.sham && engineV8Version && engineV8Version < 41;
223
224
  });
224
225
 
225
- /* eslint-disable es/no-symbol -- required for testing */
226
+ /* eslint-disable es-x/no-symbol -- required for testing */
226
227
 
227
228
 
228
229
  var useSymbolAsUid = nativeSymbol
@@ -277,12 +278,12 @@ var ordinaryToPrimitive = function (input, pref) {
277
278
 
278
279
  var isPure = true;
279
280
 
280
- // eslint-disable-next-line es/no-object-defineproperty -- safe
281
- var defineProperty$a = Object.defineProperty;
281
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
282
+ var defineProperty$b = Object.defineProperty;
282
283
 
283
284
  var setGlobal = function (key, value) {
284
285
  try {
285
- defineProperty$a(global_1, key, { value: value, configurable: true, writable: true });
286
+ defineProperty$b(global_1, key, { value: value, configurable: true, writable: true });
286
287
  } catch (error) {
287
288
  global_1[key] = value;
288
289
  } return value;
@@ -297,10 +298,10 @@ var shared = createCommonjsModule(function (module) {
297
298
  (module.exports = function (key, value) {
298
299
  return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
299
300
  })('versions', []).push({
300
- version: '3.21.1',
301
+ version: '3.22.1',
301
302
  mode: 'pure' ,
302
303
  copyright: '© 2014-2022 Denis Pushkarev (zloirock.ru)',
303
- license: 'https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE',
304
+ license: 'https://github.com/zloirock/core-js/blob/v3.22.1/LICENSE',
304
305
  source: 'https://github.com/zloirock/core-js'
305
306
  });
306
307
  });
@@ -317,6 +318,7 @@ var hasOwnProperty = functionUncurryThis({}.hasOwnProperty);
317
318
 
318
319
  // `HasOwnProperty` abstract operation
319
320
  // https://tc39.es/ecma262/#sec-hasownproperty
321
+ // eslint-disable-next-line es-x/no-object-hasown -- safe
320
322
  var hasOwnProperty_1 = Object.hasOwn || function hasOwn(it, key) {
321
323
  return hasOwnProperty(toObject(it), key);
322
324
  };
@@ -348,13 +350,13 @@ var wellKnownSymbol = function (name) {
348
350
  };
349
351
 
350
352
  var TypeError$f = global_1.TypeError;
351
- var TO_PRIMITIVE$1 = wellKnownSymbol('toPrimitive');
353
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
352
354
 
353
355
  // `ToPrimitive` abstract operation
354
356
  // https://tc39.es/ecma262/#sec-toprimitive
355
357
  var toPrimitive = function (input, pref) {
356
358
  if (!isObject$3(input) || isSymbol$2(input)) return input;
357
- var exoticToPrim = getMethod(input, TO_PRIMITIVE$1);
359
+ var exoticToPrim = getMethod(input, TO_PRIMITIVE);
358
360
  var result;
359
361
  if (exoticToPrim) {
360
362
  if (pref === undefined) pref = 'default';
@@ -383,13 +385,13 @@ var documentCreateElement = function (it) {
383
385
 
384
386
  // Thanks to IE8 for its funny defineProperty
385
387
  var ie8DomDefine = !descriptors && !fails(function () {
386
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
388
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
387
389
  return Object.defineProperty(documentCreateElement('div'), 'a', {
388
390
  get: function () { return 7; }
389
391
  }).a != 7;
390
392
  });
391
393
 
392
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
394
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
393
395
  var $getOwnPropertyDescriptor$2 = Object.getOwnPropertyDescriptor;
394
396
 
395
397
  // `Object.getOwnPropertyDescriptor` method
@@ -440,7 +442,7 @@ var functionBindContext = function (fn, that) {
440
442
  // V8 ~ Chrome 36-
441
443
  // https://bugs.chromium.org/p/v8/issues/detail?id=3334
442
444
  var v8PrototypeDefineBug = descriptors && fails(function () {
443
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
445
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
444
446
  return Object.defineProperty(function () { /* empty */ }, 'prototype', {
445
447
  value: 42,
446
448
  writable: false
@@ -457,9 +459,9 @@ var anObject = function (argument) {
457
459
  };
458
460
 
459
461
  var TypeError$d = global_1.TypeError;
460
- // eslint-disable-next-line es/no-object-defineproperty -- safe
462
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
461
463
  var $defineProperty$1 = Object.defineProperty;
462
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
464
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
463
465
  var $getOwnPropertyDescriptor$1 = Object.getOwnPropertyDescriptor;
464
466
  var ENUMERABLE = 'enumerable';
465
467
  var CONFIGURABLE$1 = 'configurable';
@@ -678,7 +680,7 @@ var noop = function () { /* empty */ };
678
680
  var empty = [];
679
681
  var construct$3 = getBuiltIn('Reflect', 'construct');
680
682
  var constructorRegExp = /^\s*(?:class|function)\b/;
681
- var exec$1 = functionUncurryThis(constructorRegExp.exec);
683
+ var exec$2 = functionUncurryThis(constructorRegExp.exec);
682
684
  var INCORRECT_TO_STRING = !constructorRegExp.exec(noop);
683
685
 
684
686
  var isConstructorModern = function isConstructor(argument) {
@@ -702,7 +704,7 @@ var isConstructorLegacy = function isConstructor(argument) {
702
704
  // we can't check .prototype since constructors produced by .bind haven't it
703
705
  // `Function#toString` throws on some built-it function in some legacy engines
704
706
  // (for example, `DOMQuad` and similar in FF41-)
705
- return INCORRECT_TO_STRING || !!exec$1(constructorRegExp, inspectSource(argument));
707
+ return INCORRECT_TO_STRING || !!exec$2(constructorRegExp, inspectSource(argument));
706
708
  } catch (error) {
707
709
  return true;
708
710
  }
@@ -795,7 +797,7 @@ var arrayIncludes = {
795
797
 
796
798
  var hiddenKeys$1 = {};
797
799
 
798
- var indexOf$6 = arrayIncludes.indexOf;
800
+ var indexOf$7 = arrayIncludes.indexOf;
799
801
 
800
802
 
801
803
  var push$4 = functionUncurryThis([].push);
@@ -808,7 +810,7 @@ var objectKeysInternal = function (object, names) {
808
810
  for (key in O) !hasOwnProperty_1(hiddenKeys$1, key) && hasOwnProperty_1(O, key) && push$4(result, key);
809
811
  // Don't enum bug & hidden keys
810
812
  while (names.length > i) if (hasOwnProperty_1(O, key = names[i++])) {
811
- ~indexOf$6(result, key) || push$4(result, key);
813
+ ~indexOf$7(result, key) || push$4(result, key);
812
814
  }
813
815
  return result;
814
816
  };
@@ -826,14 +828,14 @@ var enumBugKeys = [
826
828
 
827
829
  // `Object.keys` method
828
830
  // https://tc39.es/ecma262/#sec-object.keys
829
- // eslint-disable-next-line es/no-object-keys -- safe
831
+ // eslint-disable-next-line es-x/no-object-keys -- safe
830
832
  var objectKeys = Object.keys || function keys(O) {
831
833
  return objectKeysInternal(O, enumBugKeys);
832
834
  };
833
835
 
834
836
  // `Object.defineProperties` method
835
837
  // https://tc39.es/ecma262/#sec-object.defineproperties
836
- // eslint-disable-next-line es/no-object-defineproperties -- safe
838
+ // eslint-disable-next-line es-x/no-object-defineproperties -- safe
837
839
  var f$5 = descriptors && !v8PrototypeDefineBug ? Object.defineProperties : function defineProperties(O, Properties) {
838
840
  anObject(O);
839
841
  var props = toIndexedObject(Properties);
@@ -851,10 +853,10 @@ var objectDefineProperties = {
851
853
 
852
854
  var html = getBuiltIn('document', 'documentElement');
853
855
 
854
- var keys$6 = shared('keys');
856
+ var keys$7 = shared('keys');
855
857
 
856
858
  var sharedKey = function (key) {
857
- return keys$6[key] || (keys$6[key] = uid(key));
859
+ return keys$7[key] || (keys$7[key] = uid(key));
858
860
  };
859
861
 
860
862
  /* global ActiveXObject -- old IE, WSH */
@@ -928,6 +930,7 @@ hiddenKeys$1[IE_PROTO$1] = true;
928
930
 
929
931
  // `Object.create` method
930
932
  // https://tc39.es/ecma262/#sec-object.create
933
+ // eslint-disable-next-line es-x/no-object-create -- safe
931
934
  var objectCreate = Object.create || function create(O, Properties) {
932
935
  var result;
933
936
  if (O !== null) {
@@ -995,8 +998,8 @@ var construct = construct$1;
995
998
 
996
999
  // `IsArray` abstract operation
997
1000
  // https://tc39.es/ecma262/#sec-isarray
998
- // eslint-disable-next-line es/no-array-isarray -- safe
999
- var isArray$5 = Array.isArray || function isArray(argument) {
1001
+ // eslint-disable-next-line es-x/no-array-isarray -- safe
1002
+ var isArray$6 = Array.isArray || function isArray(argument) {
1000
1003
  return classofRaw(argument) == 'Array';
1001
1004
  };
1002
1005
 
@@ -1013,10 +1016,10 @@ var Array$4 = global_1.Array;
1013
1016
  // https://tc39.es/ecma262/#sec-arrayspeciescreate
1014
1017
  var arraySpeciesConstructor = function (originalArray) {
1015
1018
  var C;
1016
- if (isArray$5(originalArray)) {
1019
+ if (isArray$6(originalArray)) {
1017
1020
  C = originalArray.constructor;
1018
1021
  // cross-realm fallback
1019
- if (isConstructor(C) && (C === Array$4 || isArray$5(C.prototype))) C = undefined;
1022
+ if (isConstructor(C) && (C === Array$4 || isArray$6(C.prototype))) C = undefined;
1020
1023
  else if (isObject$3(C)) {
1021
1024
  C = C[SPECIES$5];
1022
1025
  if (C === null) C = undefined;
@@ -1065,7 +1068,7 @@ var SPECIES_SUPPORT = arrayMethodHasSpeciesSupport('concat');
1065
1068
  var isConcatSpreadable = function (O) {
1066
1069
  if (!isObject$3(O)) return false;
1067
1070
  var spreadable = O[IS_CONCAT_SPREADABLE];
1068
- return spreadable !== undefined ? !!spreadable : isArray$5(O);
1071
+ return spreadable !== undefined ? !!spreadable : isArray$6(O);
1069
1072
  };
1070
1073
 
1071
1074
  var FORCED$3 = !IS_CONCAT_SPREADABLE_SUPPORT || !SPECIES_SUPPORT;
@@ -1119,13 +1122,13 @@ function _classCallCheck(instance, Constructor) {
1119
1122
  }
1120
1123
  }
1121
1124
 
1122
- var defineProperty$9 = objectDefineProperty.f;
1125
+ var defineProperty$a = objectDefineProperty.f;
1123
1126
 
1124
1127
  // `Object.defineProperty` method
1125
1128
  // https://tc39.es/ecma262/#sec-object.defineproperty
1126
- // eslint-disable-next-line es/no-object-defineproperty -- safe
1127
- _export({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$9, sham: !descriptors }, {
1128
- defineProperty: defineProperty$9
1129
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
1130
+ _export({ target: 'Object', stat: true, forced: Object.defineProperty !== defineProperty$a, sham: !descriptors }, {
1131
+ defineProperty: defineProperty$a
1129
1132
  });
1130
1133
 
1131
1134
  var defineProperty_1 = createCommonjsModule(function (module) {
@@ -1138,7 +1141,9 @@ var defineProperty = module.exports = function defineProperty(it, key, desc) {
1138
1141
  if (Object.defineProperty.sham) defineProperty.sham = true;
1139
1142
  });
1140
1143
 
1141
- var defineProperty$8 = defineProperty_1;
1144
+ var defineProperty$9 = defineProperty_1;
1145
+
1146
+ var defineProperty$8 = defineProperty$9;
1142
1147
 
1143
1148
  var defineProperty$7 = defineProperty$8;
1144
1149
 
@@ -1171,6 +1176,11 @@ function _assertThisInitialized(self) {
1171
1176
  return self;
1172
1177
  }
1173
1178
 
1179
+ // TODO: Remove from `core-js@4`
1180
+
1181
+
1182
+
1183
+
1174
1184
  // `Object.create` method
1175
1185
  // https://tc39.es/ecma262/#sec-object.create
1176
1186
  _export({ target: 'Object', stat: true, sham: !descriptors }, {
@@ -1179,10 +1189,12 @@ _export({ target: 'Object', stat: true, sham: !descriptors }, {
1179
1189
 
1180
1190
  var Object$2 = path.Object;
1181
1191
 
1182
- var create$4 = function create(P, D) {
1192
+ var create$5 = function create(P, D) {
1183
1193
  return Object$2.create(P, D);
1184
1194
  };
1185
1195
 
1196
+ var create$4 = create$5;
1197
+
1186
1198
  var create$3 = create$4;
1187
1199
 
1188
1200
  var create$2 = create$3;
@@ -1207,13 +1219,13 @@ var aPossiblePrototype = function (argument) {
1207
1219
  // `Object.setPrototypeOf` method
1208
1220
  // https://tc39.es/ecma262/#sec-object.setprototypeof
1209
1221
  // Works with __proto__ only. Old v8 can't work with null proto objects.
1210
- // eslint-disable-next-line es/no-object-setprototypeof -- safe
1222
+ // eslint-disable-next-line es-x/no-object-setprototypeof -- safe
1211
1223
  var objectSetPrototypeOf = Object.setPrototypeOf || ('__proto__' in {} ? function () {
1212
1224
  var CORRECT_SETTER = false;
1213
1225
  var test = {};
1214
1226
  var setter;
1215
1227
  try {
1216
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1228
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
1217
1229
  setter = functionUncurryThis(Object.getOwnPropertyDescriptor(Object.prototype, '__proto__').set);
1218
1230
  setter(test, []);
1219
1231
  CORRECT_SETTER = test instanceof Array;
@@ -1233,7 +1245,9 @@ _export({ target: 'Object', stat: true }, {
1233
1245
  setPrototypeOf: objectSetPrototypeOf
1234
1246
  });
1235
1247
 
1236
- var setPrototypeOf$4 = path.Object.setPrototypeOf;
1248
+ var setPrototypeOf$5 = path.Object.setPrototypeOf;
1249
+
1250
+ var setPrototypeOf$4 = setPrototypeOf$5;
1237
1251
 
1238
1252
  var setPrototypeOf$3 = setPrototypeOf$4;
1239
1253
 
@@ -1278,7 +1292,7 @@ var hiddenKeys = enumBugKeys.concat('length', 'prototype');
1278
1292
 
1279
1293
  // `Object.getOwnPropertyNames` method
1280
1294
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
1281
- // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1295
+ // eslint-disable-next-line es-x/no-object-getownpropertynames -- safe
1282
1296
  var f$4 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1283
1297
  return objectKeysInternal(O, hiddenKeys);
1284
1298
  };
@@ -1300,7 +1314,7 @@ var arraySliceSimple = function (O, start, end) {
1300
1314
  return result;
1301
1315
  };
1302
1316
 
1303
- /* eslint-disable es/no-object-getownpropertynames -- safe */
1317
+ /* eslint-disable es-x/no-object-getownpropertynames -- safe */
1304
1318
 
1305
1319
 
1306
1320
  var $getOwnPropertyNames$1 = objectGetOwnPropertyNames.f;
@@ -1328,7 +1342,7 @@ var objectGetOwnPropertyNamesExternal = {
1328
1342
  f: f$3
1329
1343
  };
1330
1344
 
1331
- // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1345
+ // eslint-disable-next-line es-x/no-object-getownpropertysymbols -- safe
1332
1346
  var f$2 = Object.getOwnPropertySymbols;
1333
1347
 
1334
1348
  var objectGetOwnPropertySymbols = {
@@ -1355,6 +1369,22 @@ var defineWellKnownSymbol = function (NAME) {
1355
1369
  });
1356
1370
  };
1357
1371
 
1372
+ var symbolDefineToPrimitive = function () {
1373
+ var Symbol = getBuiltIn('Symbol');
1374
+ var SymbolPrototype = Symbol && Symbol.prototype;
1375
+ var valueOf = SymbolPrototype && SymbolPrototype.valueOf;
1376
+ var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
1377
+
1378
+ if (SymbolPrototype && !SymbolPrototype[TO_PRIMITIVE]) {
1379
+ // `Symbol.prototype[@@toPrimitive]` method
1380
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
1381
+ // eslint-disable-next-line no-unused-vars -- required for .length
1382
+ redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {
1383
+ return functionCall(valueOf, this);
1384
+ });
1385
+ }
1386
+ };
1387
+
1358
1388
  // `Object.prototype.toString` method implementation
1359
1389
  // https://tc39.es/ecma262/#sec-object.prototype.tostring
1360
1390
  var objectToString$2 = toStringTagSupport ? {}.toString : function toString() {
@@ -1517,17 +1547,15 @@ var $forEach$1 = arrayIteration.forEach;
1517
1547
  var HIDDEN = sharedKey('hidden');
1518
1548
  var SYMBOL = 'Symbol';
1519
1549
  var PROTOTYPE = 'prototype';
1520
- var TO_PRIMITIVE = wellKnownSymbol('toPrimitive');
1521
1550
 
1522
1551
  var setInternalState$5 = internalState.set;
1523
- var getInternalState$3 = internalState.getterFor(SYMBOL);
1552
+ var getInternalState$2 = internalState.getterFor(SYMBOL);
1524
1553
 
1525
1554
  var ObjectPrototype$1 = Object[PROTOTYPE];
1526
1555
  var $Symbol = global_1.Symbol;
1527
1556
  var SymbolPrototype = $Symbol && $Symbol[PROTOTYPE];
1528
1557
  var TypeError$8 = global_1.TypeError;
1529
1558
  var QObject = global_1.QObject;
1530
- var $stringify = getBuiltIn('JSON', 'stringify');
1531
1559
  var nativeGetOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1532
1560
  var nativeDefineProperty = objectDefineProperty.f;
1533
1561
  var nativeGetOwnPropertyNames = objectGetOwnPropertyNamesExternal.f;
@@ -1536,8 +1564,6 @@ var push$1 = functionUncurryThis([].push);
1536
1564
 
1537
1565
  var AllSymbols = shared('symbols');
1538
1566
  var ObjectPrototypeSymbols = shared('op-symbols');
1539
- var StringToSymbolRegistry = shared('string-to-symbol-registry');
1540
- var SymbolToStringRegistry = shared('symbol-to-string-registry');
1541
1567
  var WellKnownSymbolsStore = shared('wks');
1542
1568
 
1543
1569
  // Don't use setters in Qt Script, https://github.com/zloirock/core-js/issues/173
@@ -1626,7 +1652,7 @@ var $getOwnPropertyNames = function getOwnPropertyNames(O) {
1626
1652
  return result;
1627
1653
  };
1628
1654
 
1629
- var $getOwnPropertySymbols = function getOwnPropertySymbols(O) {
1655
+ var $getOwnPropertySymbols = function (O) {
1630
1656
  var IS_OBJECT_PROTOTYPE = O === ObjectPrototype$1;
1631
1657
  var names = nativeGetOwnPropertyNames(IS_OBJECT_PROTOTYPE ? ObjectPrototypeSymbols : toIndexedObject(O));
1632
1658
  var result = [];
@@ -1657,7 +1683,7 @@ if (!nativeSymbol) {
1657
1683
  SymbolPrototype = $Symbol[PROTOTYPE];
1658
1684
 
1659
1685
  redefine(SymbolPrototype, 'toString', function toString() {
1660
- return getInternalState$3(this).tag;
1686
+ return getInternalState$2(this).tag;
1661
1687
  });
1662
1688
 
1663
1689
  redefine($Symbol, 'withoutSetter', function (description) {
@@ -1680,7 +1706,7 @@ if (!nativeSymbol) {
1680
1706
  nativeDefineProperty(SymbolPrototype, 'description', {
1681
1707
  configurable: true,
1682
1708
  get: function description() {
1683
- return getInternalState$3(this).description;
1709
+ return getInternalState$2(this).description;
1684
1710
  }
1685
1711
  });
1686
1712
  }
@@ -1695,22 +1721,6 @@ $forEach$1(objectKeys(WellKnownSymbolsStore), function (name) {
1695
1721
  });
1696
1722
 
1697
1723
  _export({ target: SYMBOL, stat: true, forced: !nativeSymbol }, {
1698
- // `Symbol.for` method
1699
- // https://tc39.es/ecma262/#sec-symbol.for
1700
- 'for': function (key) {
1701
- var string = toString_1(key);
1702
- if (hasOwnProperty_1(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
1703
- var symbol = $Symbol(string);
1704
- StringToSymbolRegistry[string] = symbol;
1705
- SymbolToStringRegistry[symbol] = string;
1706
- return symbol;
1707
- },
1708
- // `Symbol.keyFor` method
1709
- // https://tc39.es/ecma262/#sec-symbol.keyfor
1710
- keyFor: function keyFor(sym) {
1711
- if (!isSymbol$2(sym)) throw TypeError$8(sym + ' is not a symbol');
1712
- if (hasOwnProperty_1(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
1713
- },
1714
1724
  useSetter: function () { USE_SETTER = true; },
1715
1725
  useSimple: function () { USE_SETTER = false; }
1716
1726
  });
@@ -1733,64 +1743,121 @@ _export({ target: 'Object', stat: true, forced: !nativeSymbol, sham: !descriptor
1733
1743
  _export({ target: 'Object', stat: true, forced: !nativeSymbol }, {
1734
1744
  // `Object.getOwnPropertyNames` method
1735
1745
  // https://tc39.es/ecma262/#sec-object.getownpropertynames
1736
- getOwnPropertyNames: $getOwnPropertyNames,
1737
- // `Object.getOwnPropertySymbols` method
1738
- // https://tc39.es/ecma262/#sec-object.getownpropertysymbols
1739
- getOwnPropertySymbols: $getOwnPropertySymbols
1746
+ getOwnPropertyNames: $getOwnPropertyNames
1740
1747
  });
1741
1748
 
1742
- // Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
1743
- // https://bugs.chromium.org/p/v8/issues/detail?id=3443
1744
- _export({ target: 'Object', stat: true, forced: fails(function () { objectGetOwnPropertySymbols.f(1); }) }, {
1745
- getOwnPropertySymbols: function getOwnPropertySymbols(it) {
1746
- return objectGetOwnPropertySymbols.f(toObject(it));
1749
+ // `Symbol.prototype[@@toPrimitive]` method
1750
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
1751
+ symbolDefineToPrimitive();
1752
+
1753
+ // `Symbol.prototype[@@toStringTag]` property
1754
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
1755
+ setToStringTag($Symbol, SYMBOL);
1756
+
1757
+ hiddenKeys$1[HIDDEN] = true;
1758
+
1759
+ /* eslint-disable es-x/no-symbol -- safe */
1760
+ var nativeSymbolRegistry = nativeSymbol && !!Symbol['for'] && !!Symbol.keyFor;
1761
+
1762
+ var StringToSymbolRegistry = shared('string-to-symbol-registry');
1763
+ var SymbolToStringRegistry$1 = shared('symbol-to-string-registry');
1764
+
1765
+ // `Symbol.for` method
1766
+ // https://tc39.es/ecma262/#sec-symbol.for
1767
+ _export({ target: 'Symbol', stat: true, forced: !nativeSymbolRegistry }, {
1768
+ 'for': function (key) {
1769
+ var string = toString_1(key);
1770
+ if (hasOwnProperty_1(StringToSymbolRegistry, string)) return StringToSymbolRegistry[string];
1771
+ var symbol = getBuiltIn('Symbol')(string);
1772
+ StringToSymbolRegistry[string] = symbol;
1773
+ SymbolToStringRegistry$1[symbol] = string;
1774
+ return symbol;
1747
1775
  }
1748
1776
  });
1749
1777
 
1750
- // `JSON.stringify` method behavior with symbols
1751
- // https://tc39.es/ecma262/#sec-json.stringify
1752
- if ($stringify) {
1753
- var FORCED_JSON_STRINGIFY = !nativeSymbol || fails(function () {
1754
- var symbol = $Symbol();
1755
- // MS Edge converts symbol values to JSON as {}
1756
- return $stringify([symbol]) != '[null]'
1757
- // WebKit converts symbol values to JSON as null
1758
- || $stringify({ a: symbol }) != '{}'
1759
- // V8 throws on boxed symbols
1760
- || $stringify(Object(symbol)) != '{}';
1761
- });
1778
+ var SymbolToStringRegistry = shared('symbol-to-string-registry');
1779
+
1780
+ // `Symbol.keyFor` method
1781
+ // https://tc39.es/ecma262/#sec-symbol.keyfor
1782
+ _export({ target: 'Symbol', stat: true, forced: !nativeSymbolRegistry }, {
1783
+ keyFor: function keyFor(sym) {
1784
+ if (!isSymbol$2(sym)) throw TypeError(tryToString(sym) + ' is not a symbol');
1785
+ if (hasOwnProperty_1(SymbolToStringRegistry, sym)) return SymbolToStringRegistry[sym];
1786
+ }
1787
+ });
1788
+
1789
+ var $stringify = getBuiltIn('JSON', 'stringify');
1790
+ var exec$1 = functionUncurryThis(/./.exec);
1791
+ var charAt$2 = functionUncurryThis(''.charAt);
1792
+ var charCodeAt$1 = functionUncurryThis(''.charCodeAt);
1793
+ var replace$2 = functionUncurryThis(''.replace);
1794
+ var numberToString = functionUncurryThis(1.0.toString);
1795
+
1796
+ var tester = /[\uD800-\uDFFF]/g;
1797
+ var low = /^[\uD800-\uDBFF]$/;
1798
+ var hi = /^[\uDC00-\uDFFF]$/;
1799
+
1800
+ var WRONG_SYMBOLS_CONVERSION = !nativeSymbol || fails(function () {
1801
+ var symbol = getBuiltIn('Symbol')();
1802
+ // MS Edge converts symbol values to JSON as {}
1803
+ return $stringify([symbol]) != '[null]'
1804
+ // WebKit converts symbol values to JSON as null
1805
+ || $stringify({ a: symbol }) != '{}'
1806
+ // V8 throws on boxed symbols
1807
+ || $stringify(Object(symbol)) != '{}';
1808
+ });
1809
+
1810
+ // https://github.com/tc39/proposal-well-formed-stringify
1811
+ var ILL_FORMED_UNICODE = fails(function () {
1812
+ return $stringify('\uDF06\uD834') !== '"\\udf06\\ud834"'
1813
+ || $stringify('\uDEAD') !== '"\\udead"';
1814
+ });
1815
+
1816
+ var stringifyWithSymbolsFix = function (it, replacer) {
1817
+ var args = arraySlice(arguments);
1818
+ var $replacer = replacer;
1819
+ if (!isObject$3(replacer) && it === undefined || isSymbol$2(it)) return; // IE8 returns string on undefined
1820
+ if (!isArray$6(replacer)) replacer = function (key, value) {
1821
+ if (isCallable($replacer)) value = functionCall($replacer, this, key, value);
1822
+ if (!isSymbol$2(value)) return value;
1823
+ };
1824
+ args[1] = replacer;
1825
+ return functionApply($stringify, null, args);
1826
+ };
1827
+
1828
+ var fixIllFormed = function (match, offset, string) {
1829
+ var prev = charAt$2(string, offset - 1);
1830
+ var next = charAt$2(string, offset + 1);
1831
+ if ((exec$1(low, match) && !exec$1(hi, next)) || (exec$1(hi, match) && !exec$1(low, prev))) {
1832
+ return '\\u' + numberToString(charCodeAt$1(match, 0), 16);
1833
+ } return match;
1834
+ };
1762
1835
 
1763
- _export({ target: 'JSON', stat: true, forced: FORCED_JSON_STRINGIFY }, {
1836
+ if ($stringify) {
1837
+ // `JSON.stringify` method
1838
+ // https://tc39.es/ecma262/#sec-json.stringify
1839
+ _export({ target: 'JSON', stat: true, forced: WRONG_SYMBOLS_CONVERSION || ILL_FORMED_UNICODE }, {
1764
1840
  // eslint-disable-next-line no-unused-vars -- required for `.length`
1765
1841
  stringify: function stringify(it, replacer, space) {
1766
1842
  var args = arraySlice(arguments);
1767
- var $replacer = replacer;
1768
- if (!isObject$3(replacer) && it === undefined || isSymbol$2(it)) return; // IE8 returns string on undefined
1769
- if (!isArray$5(replacer)) replacer = function (key, value) {
1770
- if (isCallable($replacer)) value = functionCall($replacer, this, key, value);
1771
- if (!isSymbol$2(value)) return value;
1772
- };
1773
- args[1] = replacer;
1774
- return functionApply($stringify, null, args);
1843
+ var result = functionApply(WRONG_SYMBOLS_CONVERSION ? stringifyWithSymbolsFix : $stringify, null, args);
1844
+ return ILL_FORMED_UNICODE && typeof result == 'string' ? replace$2(result, tester, fixIllFormed) : result;
1775
1845
  }
1776
1846
  });
1777
1847
  }
1778
1848
 
1779
- // `Symbol.prototype[@@toPrimitive]` method
1780
- // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
1781
- if (!SymbolPrototype[TO_PRIMITIVE]) {
1782
- var valueOf = SymbolPrototype.valueOf;
1783
- // eslint-disable-next-line no-unused-vars -- required for .length
1784
- redefine(SymbolPrototype, TO_PRIMITIVE, function (hint) {
1785
- // TODO: improve hint logic
1786
- return functionCall(valueOf, this);
1787
- });
1788
- }
1789
- // `Symbol.prototype[@@toStringTag]` property
1790
- // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
1791
- setToStringTag($Symbol, SYMBOL);
1849
+ // V8 ~ Chrome 38 and 39 `Object.getOwnPropertySymbols` fails on primitives
1850
+ // https://bugs.chromium.org/p/v8/issues/detail?id=3443
1851
+ var FORCED$2 = !nativeSymbol || fails(function () { objectGetOwnPropertySymbols.f(1); });
1792
1852
 
1793
- hiddenKeys$1[HIDDEN] = true;
1853
+ // `Object.getOwnPropertySymbols` method
1854
+ // https://tc39.es/ecma262/#sec-object.getownpropertysymbols
1855
+ _export({ target: 'Object', stat: true, forced: FORCED$2 }, {
1856
+ getOwnPropertySymbols: function getOwnPropertySymbols(it) {
1857
+ var $getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
1858
+ return $getOwnPropertySymbols ? $getOwnPropertySymbols(toObject(it)) : [];
1859
+ }
1860
+ });
1794
1861
 
1795
1862
  // `Symbol.asyncIterator` well-known symbol
1796
1863
  // https://tc39.es/ecma262/#sec-symbol.asynciterator
@@ -1836,10 +1903,18 @@ defineWellKnownSymbol('split');
1836
1903
  // https://tc39.es/ecma262/#sec-symbol.toprimitive
1837
1904
  defineWellKnownSymbol('toPrimitive');
1838
1905
 
1906
+ // `Symbol.prototype[@@toPrimitive]` method
1907
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@toprimitive
1908
+ symbolDefineToPrimitive();
1909
+
1839
1910
  // `Symbol.toStringTag` well-known symbol
1840
1911
  // https://tc39.es/ecma262/#sec-symbol.tostringtag
1841
1912
  defineWellKnownSymbol('toStringTag');
1842
1913
 
1914
+ // `Symbol.prototype[@@toStringTag]` property
1915
+ // https://tc39.es/ecma262/#sec-symbol.prototype-@@tostringtag
1916
+ setToStringTag(getBuiltIn('Symbol'), 'Symbol');
1917
+
1843
1918
  // `Symbol.unscopables` well-known symbol
1844
1919
  // https://tc39.es/ecma262/#sec-symbol.unscopables
1845
1920
  defineWellKnownSymbol('unscopables');
@@ -1848,12 +1923,12 @@ defineWellKnownSymbol('unscopables');
1848
1923
  // https://tc39.es/ecma262/#sec-json-@@tostringtag
1849
1924
  setToStringTag(global_1.JSON, 'JSON', true);
1850
1925
 
1851
- var symbol$4 = path.Symbol;
1926
+ var symbol$5 = path.Symbol;
1852
1927
 
1853
1928
  var iterators = {};
1854
1929
 
1855
1930
  var FunctionPrototype = Function.prototype;
1856
- // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1931
+ // eslint-disable-next-line es-x/no-object-getownpropertydescriptor -- safe
1857
1932
  var getDescriptor = descriptors && Object.getOwnPropertyDescriptor;
1858
1933
 
1859
1934
  var EXISTS = hasOwnProperty_1(FunctionPrototype, 'name');
@@ -1870,7 +1945,7 @@ var functionName = {
1870
1945
  var correctPrototypeGetter = !fails(function () {
1871
1946
  function F() { /* empty */ }
1872
1947
  F.prototype.constructor = null;
1873
- // eslint-disable-next-line es/no-object-getprototypeof -- required for testing
1948
+ // eslint-disable-next-line es-x/no-object-getprototypeof -- required for testing
1874
1949
  return Object.getPrototypeOf(new F()) !== F.prototype;
1875
1950
  });
1876
1951
 
@@ -1896,7 +1971,7 @@ var BUGGY_SAFARI_ITERATORS$1 = false;
1896
1971
  // https://tc39.es/ecma262/#sec-%iteratorprototype%-object
1897
1972
  var IteratorPrototype$1, PrototypeOfArrayIteratorPrototype, arrayIterator;
1898
1973
 
1899
- /* eslint-disable es/no-array-prototype-keys -- safe */
1974
+ /* eslint-disable es-x/no-array-prototype-keys -- safe */
1900
1975
  if ([].keys) {
1901
1976
  arrayIterator = [].keys();
1902
1977
  // Safari 8 has buggy iterators w/o `next`
@@ -2020,7 +2095,7 @@ var defineIterator = function (Iterable, NAME, IteratorConstructor, next, DEFAUL
2020
2095
 
2021
2096
  var ARRAY_ITERATOR = 'Array Iterator';
2022
2097
  var setInternalState$4 = internalState.set;
2023
- var getInternalState$2 = internalState.getterFor(ARRAY_ITERATOR);
2098
+ var getInternalState$1 = internalState.getterFor(ARRAY_ITERATOR);
2024
2099
 
2025
2100
  // `Array.prototype.entries` method
2026
2101
  // https://tc39.es/ecma262/#sec-array.prototype.entries
@@ -2042,7 +2117,7 @@ defineIterator(Array, 'Array', function (iterated, kind) {
2042
2117
  // `%ArrayIteratorPrototype%.next` method
2043
2118
  // https://tc39.es/ecma262/#sec-%arrayiteratorprototype%.next
2044
2119
  }, function () {
2045
- var state = getInternalState$2(this);
2120
+ var state = getInternalState$1(this);
2046
2121
  var target = state.target;
2047
2122
  var kind = state.kind;
2048
2123
  var index = state.index++;
@@ -2107,9 +2182,9 @@ for (var COLLECTION_NAME in domIterables) {
2107
2182
  iterators[COLLECTION_NAME] = iterators.Array;
2108
2183
  }
2109
2184
 
2110
- var symbol$3 = symbol$4;
2185
+ var symbol$4 = symbol$5;
2111
2186
 
2112
- var symbol$2 = symbol$3;
2187
+ var symbol$3 = symbol$4;
2113
2188
 
2114
2189
  // `Symbol.asyncDispose` well-known symbol
2115
2190
  // https://github.com/tc39/proposal-using-statement
@@ -2148,6 +2223,8 @@ defineWellKnownSymbol('replaceAll');
2148
2223
  // TODO: Remove from `core-js@4`
2149
2224
 
2150
2225
 
2226
+ var symbol$2 = symbol$3;
2227
+
2151
2228
  var symbol$1 = symbol$2;
2152
2229
 
2153
2230
  var symbol = symbol$1;
@@ -2191,7 +2268,7 @@ var charAt = stringMultibyte.charAt;
2191
2268
 
2192
2269
  var STRING_ITERATOR = 'String Iterator';
2193
2270
  var setInternalState$3 = internalState.set;
2194
- var getInternalState$1 = internalState.getterFor(STRING_ITERATOR);
2271
+ var getInternalState = internalState.getterFor(STRING_ITERATOR);
2195
2272
 
2196
2273
  // `String.prototype[@@iterator]` method
2197
2274
  // https://tc39.es/ecma262/#sec-string.prototype-@@iterator
@@ -2204,7 +2281,7 @@ defineIterator(String, 'String', function (iterated) {
2204
2281
  // `%StringIteratorPrototype%.next` method
2205
2282
  // https://tc39.es/ecma262/#sec-%stringiteratorprototype%.next
2206
2283
  }, function next() {
2207
- var state = getInternalState$1(this);
2284
+ var state = getInternalState(this);
2208
2285
  var string = state.string;
2209
2286
  var index = state.index;
2210
2287
  var point;
@@ -2214,7 +2291,9 @@ defineIterator(String, 'String', function (iterated) {
2214
2291
  return { value: point, done: false };
2215
2292
  });
2216
2293
 
2217
- var iterator$4 = wellKnownSymbolWrapped.f('iterator');
2294
+ var iterator$5 = wellKnownSymbolWrapped.f('iterator');
2295
+
2296
+ var iterator$4 = iterator$5;
2218
2297
 
2219
2298
  var iterator$3 = iterator$4;
2220
2299
 
@@ -2258,7 +2337,9 @@ _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES$3, sham: !co
2258
2337
  }
2259
2338
  });
2260
2339
 
2261
- var getPrototypeOf$4 = path.Object.getPrototypeOf;
2340
+ var getPrototypeOf$5 = path.Object.getPrototypeOf;
2341
+
2342
+ var getPrototypeOf$4 = getPrototypeOf$5;
2262
2343
 
2263
2344
  var getPrototypeOf$3 = getPrototypeOf$4;
2264
2345
 
@@ -4251,12 +4332,12 @@ var redefineAll = function (target, src, options) {
4251
4332
  var arrayBufferNonExtensible = fails(function () {
4252
4333
  if (typeof ArrayBuffer == 'function') {
4253
4334
  var buffer = new ArrayBuffer(8);
4254
- // eslint-disable-next-line es/no-object-isextensible, es/no-object-defineproperty -- safe
4335
+ // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-defineproperty -- safe
4255
4336
  if (Object.isExtensible(buffer)) Object.defineProperty(buffer, 'a', { value: 8 });
4256
4337
  }
4257
4338
  });
4258
4339
 
4259
- // eslint-disable-next-line es/no-object-isextensible -- safe
4340
+ // eslint-disable-next-line es-x/no-object-isextensible -- safe
4260
4341
  var $isExtensible = Object.isExtensible;
4261
4342
  var FAILS_ON_PRIMITIVES$2 = fails(function () { $isExtensible(1); });
4262
4343
 
@@ -4269,7 +4350,7 @@ var objectIsExtensible = (FAILS_ON_PRIMITIVES$2 || arrayBufferNonExtensible) ? f
4269
4350
  } : $isExtensible;
4270
4351
 
4271
4352
  var freezing = !fails(function () {
4272
- // eslint-disable-next-line es/no-object-isextensible, es/no-object-preventextensions -- required for testing
4353
+ // eslint-disable-next-line es-x/no-object-isextensible, es-x/no-object-preventextensions -- required for testing
4273
4354
  return Object.isExtensible(Object.preventExtensions({}));
4274
4355
  });
4275
4356
 
@@ -4374,7 +4455,7 @@ var isArrayIteratorMethod = function (it) {
4374
4455
 
4375
4456
  var ITERATOR$2 = wellKnownSymbol('iterator');
4376
4457
 
4377
- var getIteratorMethod$4 = function (it) {
4458
+ var getIteratorMethod$5 = function (it) {
4378
4459
  if (it != undefined) return getMethod(it, ITERATOR$2)
4379
4460
  || getMethod(it, '@@iterator')
4380
4461
  || iterators[classof(it)];
@@ -4383,7 +4464,7 @@ var getIteratorMethod$4 = function (it) {
4383
4464
  var TypeError$7 = global_1.TypeError;
4384
4465
 
4385
4466
  var getIterator = function (argument, usingIterator) {
4386
- var iteratorMethod = arguments.length < 2 ? getIteratorMethod$4(argument) : usingIterator;
4467
+ var iteratorMethod = arguments.length < 2 ? getIteratorMethod$5(argument) : usingIterator;
4387
4468
  if (aCallable(iteratorMethod)) return anObject(functionCall(iteratorMethod, argument));
4388
4469
  throw TypeError$7(tryToString(argument) + ' is not iterable');
4389
4470
  };
@@ -4440,7 +4521,7 @@ var iterate = function (iterable, unboundFunction, options) {
4440
4521
  if (IS_ITERATOR) {
4441
4522
  iterator = iterable;
4442
4523
  } else {
4443
- iterFn = getIteratorMethod$4(iterable);
4524
+ iterFn = getIteratorMethod$5(iterable);
4444
4525
  if (!iterFn) throw TypeError$6(tryToString(iterable) + ' is not iterable');
4445
4526
  // optimisation for array iterators
4446
4527
  if (isArrayIteratorMethod(iterFn)) {
@@ -4730,17 +4811,17 @@ var weakMap$1 = weakMap$2;
4730
4811
 
4731
4812
  var weakMap = weakMap$1;
4732
4813
 
4733
- var defineProperty$1 = defineProperty$8;
4814
+ var defineProperty$1 = defineProperty$9;
4734
4815
 
4735
4816
  var nativeGetOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
4736
4817
 
4737
4818
 
4738
4819
  var FAILS_ON_PRIMITIVES$1 = fails(function () { nativeGetOwnPropertyDescriptor(1); });
4739
- var FORCED$2 = !descriptors || FAILS_ON_PRIMITIVES$1;
4820
+ var FORCED$1 = !descriptors || FAILS_ON_PRIMITIVES$1;
4740
4821
 
4741
4822
  // `Object.getOwnPropertyDescriptor` method
4742
4823
  // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
4743
- _export({ target: 'Object', stat: true, forced: FORCED$2, sham: !descriptors }, {
4824
+ _export({ target: 'Object', stat: true, forced: FORCED$1, sham: !descriptors }, {
4744
4825
  getOwnPropertyDescriptor: function getOwnPropertyDescriptor(it, key) {
4745
4826
  return nativeGetOwnPropertyDescriptor(toIndexedObject(it), key);
4746
4827
  }
@@ -4766,9 +4847,9 @@ function _interopRequireDefault(obj) {
4766
4847
  };
4767
4848
  }
4768
4849
 
4769
- // eslint-disable-next-line es/no-object-assign -- safe
4850
+ // eslint-disable-next-line es-x/no-object-assign -- safe
4770
4851
  var $assign = Object.assign;
4771
- // eslint-disable-next-line es/no-object-defineproperty -- required for testing
4852
+ // eslint-disable-next-line es-x/no-object-defineproperty -- required for testing
4772
4853
  var defineProperty = Object.defineProperty;
4773
4854
  var concat$1 = functionUncurryThis([].concat);
4774
4855
 
@@ -4788,7 +4869,7 @@ var objectAssign = !$assign || fails(function () {
4788
4869
  // should work with symbols and should have deterministic property order (V8 bug)
4789
4870
  var A = {};
4790
4871
  var B = {};
4791
- // eslint-disable-next-line es/no-symbol -- safe
4872
+ // eslint-disable-next-line es-x/no-symbol -- safe
4792
4873
  var symbol = Symbol();
4793
4874
  var alphabet = 'abcdefghijklmnopqrst';
4794
4875
  A[symbol] = 7;
@@ -4815,12 +4896,14 @@ var objectAssign = !$assign || fails(function () {
4815
4896
 
4816
4897
  // `Object.assign` method
4817
4898
  // https://tc39.es/ecma262/#sec-object.assign
4818
- // eslint-disable-next-line es/no-object-assign -- required for testing
4899
+ // eslint-disable-next-line es-x/no-object-assign -- required for testing
4819
4900
  _export({ target: 'Object', stat: true, forced: Object.assign !== objectAssign }, {
4820
4901
  assign: objectAssign
4821
4902
  });
4822
4903
 
4823
- var assign$4 = path.Object.assign;
4904
+ var assign$5 = path.Object.assign;
4905
+
4906
+ var assign$4 = assign$5;
4824
4907
 
4825
4908
  var assign$3 = assign$4;
4826
4909
 
@@ -4942,7 +5025,9 @@ unwrapExports(ChevronUp);
4942
5025
 
4943
5026
  var chevronUp = ChevronUp;
4944
5027
 
4945
- var getOwnPropertySymbols$5 = path.Object.getOwnPropertySymbols;
5028
+ var getOwnPropertySymbols$6 = path.Object.getOwnPropertySymbols;
5029
+
5030
+ var getOwnPropertySymbols$5 = getOwnPropertySymbols$6;
4946
5031
 
4947
5032
  var getOwnPropertySymbols$4 = getOwnPropertySymbols$5;
4948
5033
 
@@ -4960,7 +5045,7 @@ var arrayMethodIsStrict = function (METHOD_NAME, argument) {
4960
5045
  });
4961
5046
  };
4962
5047
 
4963
- /* eslint-disable es/no-array-prototype-indexof -- required for testing */
5048
+ /* eslint-disable es-x/no-array-prototype-indexof -- required for testing */
4964
5049
 
4965
5050
 
4966
5051
  var $IndexOf = arrayIncludes.indexOf;
@@ -4983,15 +5068,17 @@ _export({ target: 'Array', proto: true, forced: NEGATIVE_ZERO || !STRICT_METHOD$
4983
5068
  }
4984
5069
  });
4985
5070
 
4986
- var indexOf$5 = entryVirtual('Array').indexOf;
5071
+ var indexOf$6 = entryVirtual('Array').indexOf;
4987
5072
 
4988
5073
  var ArrayPrototype$8 = Array.prototype;
4989
5074
 
4990
- var indexOf$4 = function (it) {
5075
+ var indexOf$5 = function (it) {
4991
5076
  var own = it.indexOf;
4992
- return it === ArrayPrototype$8 || (objectIsPrototypeOf(ArrayPrototype$8, it) && own === ArrayPrototype$8.indexOf) ? indexOf$5 : own;
5077
+ return it === ArrayPrototype$8 || (objectIsPrototypeOf(ArrayPrototype$8, it) && own === ArrayPrototype$8.indexOf) ? indexOf$6 : own;
4993
5078
  };
4994
5079
 
5080
+ var indexOf$4 = indexOf$5;
5081
+
4995
5082
  var indexOf$3 = indexOf$4;
4996
5083
 
4997
5084
  var indexOf$2 = indexOf$3;
@@ -5010,7 +5097,9 @@ _export({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {
5010
5097
  }
5011
5098
  });
5012
5099
 
5013
- var keys$5 = path.Object.keys;
5100
+ var keys$6 = path.Object.keys;
5101
+
5102
+ var keys$5 = keys$6;
5014
5103
 
5015
5104
  var keys$4 = keys$5;
5016
5105
 
@@ -5126,12 +5215,12 @@ var STRICT_METHOD$2 = arrayMethodIsStrict('forEach');
5126
5215
  // https://tc39.es/ecma262/#sec-array.prototype.foreach
5127
5216
  var arrayForEach = !STRICT_METHOD$2 ? function forEach(callbackfn /* , thisArg */) {
5128
5217
  return $forEach(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
5129
- // eslint-disable-next-line es/no-array-prototype-foreach -- safe
5218
+ // eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
5130
5219
  } : [].forEach;
5131
5220
 
5132
5221
  // `Array.prototype.forEach` method
5133
5222
  // https://tc39.es/ecma262/#sec-array.prototype.foreach
5134
- // eslint-disable-next-line es/no-array-prototype-foreach -- safe
5223
+ // eslint-disable-next-line es-x/no-array-prototype-foreach -- safe
5135
5224
  _export({ target: 'Array', proto: true, forced: [].forEach != arrayForEach }, {
5136
5225
  forEach: arrayForEach
5137
5226
  });
@@ -5603,10 +5692,12 @@ var _default$9 = Panel;
5603
5692
  // `Array.isArray` method
5604
5693
  // https://tc39.es/ecma262/#sec-array.isarray
5605
5694
  _export({ target: 'Array', stat: true }, {
5606
- isArray: isArray$5
5695
+ isArray: isArray$6
5607
5696
  });
5608
5697
 
5609
- var isArray$4 = path.Array.isArray;
5698
+ var isArray$5 = path.Array.isArray;
5699
+
5700
+ var isArray$4 = isArray$5;
5610
5701
 
5611
5702
  var isArray$3 = isArray$4;
5612
5703
 
@@ -5630,9 +5721,11 @@ function _arrayWithoutHoles(arr) {
5630
5721
  if (isArray(arr)) return _arrayLikeToArray(arr);
5631
5722
  }
5632
5723
 
5633
- var getIteratorMethod_1 = getIteratorMethod$4;
5724
+ var getIteratorMethod_1 = getIteratorMethod$5;
5634
5725
 
5635
- var getIteratorMethod$3 = getIteratorMethod_1;
5726
+ var getIteratorMethod$4 = getIteratorMethod_1;
5727
+
5728
+ var getIteratorMethod$3 = getIteratorMethod$4;
5636
5729
 
5637
5730
  var getIteratorMethod$2 = getIteratorMethod$3;
5638
5731
 
@@ -5660,7 +5753,7 @@ var arrayFrom = function from(arrayLike /* , mapfn = undefined, thisArg = undefi
5660
5753
  var mapfn = argumentsLength > 1 ? arguments[1] : undefined;
5661
5754
  var mapping = mapfn !== undefined;
5662
5755
  if (mapping) mapfn = functionBindContext(mapfn, argumentsLength > 2 ? arguments[2] : undefined);
5663
- var iteratorMethod = getIteratorMethod$4(O);
5756
+ var iteratorMethod = getIteratorMethod$5(O);
5664
5757
  var index = 0;
5665
5758
  var length, result, step, iterator, next, value;
5666
5759
  // if the target is not iterable or it's an array with the default iterator - use a simple case
@@ -5700,7 +5793,7 @@ try {
5700
5793
  iteratorWithReturn[ITERATOR$1] = function () {
5701
5794
  return this;
5702
5795
  };
5703
- // eslint-disable-next-line es/no-array-from, no-throw-literal -- required for testing
5796
+ // eslint-disable-next-line es-x/no-array-from, no-throw-literal -- required for testing
5704
5797
  Array.from(iteratorWithReturn, function () { throw 2; });
5705
5798
  } catch (error) { /* empty */ }
5706
5799
 
@@ -5721,18 +5814,20 @@ var checkCorrectnessOfIteration = function (exec, SKIP_CLOSING) {
5721
5814
  return ITERATION_SUPPORT;
5722
5815
  };
5723
5816
 
5724
- var INCORRECT_ITERATION$1 = !checkCorrectnessOfIteration(function (iterable) {
5725
- // eslint-disable-next-line es/no-array-from -- required for testing
5817
+ var INCORRECT_ITERATION = !checkCorrectnessOfIteration(function (iterable) {
5818
+ // eslint-disable-next-line es-x/no-array-from -- required for testing
5726
5819
  Array.from(iterable);
5727
5820
  });
5728
5821
 
5729
5822
  // `Array.from` method
5730
5823
  // https://tc39.es/ecma262/#sec-array.from
5731
- _export({ target: 'Array', stat: true, forced: INCORRECT_ITERATION$1 }, {
5824
+ _export({ target: 'Array', stat: true, forced: INCORRECT_ITERATION }, {
5732
5825
  from: arrayFrom
5733
5826
  });
5734
5827
 
5735
- var from_1$4 = path.Array.from;
5828
+ var from_1$5 = path.Array.from;
5829
+
5830
+ var from_1$4 = from_1$5;
5736
5831
 
5737
5832
  var from_1$3 = from_1$4;
5738
5833
 
@@ -5763,10 +5858,10 @@ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
5763
5858
  var fin = toAbsoluteIndex(end === undefined ? length : end, length);
5764
5859
  // inline `ArraySpeciesCreate` for usage native `Array#slice` where it's possible
5765
5860
  var Constructor, result, n;
5766
- if (isArray$5(O)) {
5861
+ if (isArray$6(O)) {
5767
5862
  Constructor = O.constructor;
5768
5863
  // cross-realm fallback
5769
- if (isConstructor(Constructor) && (Constructor === Array$1 || isArray$5(Constructor.prototype))) {
5864
+ if (isConstructor(Constructor) && (Constructor === Array$1 || isArray$6(Constructor.prototype))) {
5770
5865
  Constructor = undefined;
5771
5866
  } else if (isObject$3(Constructor)) {
5772
5867
  Constructor = Constructor[SPECIES$3];
@@ -5783,15 +5878,17 @@ _export({ target: 'Array', proto: true, forced: !HAS_SPECIES_SUPPORT$2 }, {
5783
5878
  }
5784
5879
  });
5785
5880
 
5786
- var slice$5 = entryVirtual('Array').slice;
5881
+ var slice$6 = entryVirtual('Array').slice;
5787
5882
 
5788
5883
  var ArrayPrototype$5 = Array.prototype;
5789
5884
 
5790
- var slice$4 = function (it) {
5885
+ var slice$5 = function (it) {
5791
5886
  var own = it.slice;
5792
- return it === ArrayPrototype$5 || (objectIsPrototypeOf(ArrayPrototype$5, it) && own === ArrayPrototype$5.slice) ? slice$5 : own;
5887
+ return it === ArrayPrototype$5 || (objectIsPrototypeOf(ArrayPrototype$5, it) && own === ArrayPrototype$5.slice) ? slice$6 : own;
5793
5888
  };
5794
5889
 
5890
+ var slice$4 = slice$5;
5891
+
5795
5892
  var slice$3 = slice$4;
5796
5893
 
5797
5894
  var slice$2 = slice$3;
@@ -5887,13 +5984,13 @@ var Symbol$1 = global_1.Symbol;
5887
5984
  var ITERATOR = Symbol$1 && Symbol$1.iterator;
5888
5985
  var hex = /^[+-]?0x/i;
5889
5986
  var exec = functionUncurryThis(hex.exec);
5890
- var FORCED$1 = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
5987
+ var FORCED = $parseInt(whitespaces + '08') !== 8 || $parseInt(whitespaces + '0x16') !== 22
5891
5988
  // MS Edge 18- broken with boxed symbols
5892
5989
  || (ITERATOR && !fails(function () { $parseInt(Object(ITERATOR)); }));
5893
5990
 
5894
5991
  // `parseInt` method
5895
5992
  // https://tc39.es/ecma262/#sec-parseint-string-radix
5896
- var numberParseInt = FORCED$1 ? function parseInt(string, radix) {
5993
+ var numberParseInt = FORCED ? function parseInt(string, radix) {
5897
5994
  var S = trim(toString_1(string));
5898
5995
  return $parseInt(S, (radix >>> 0) || (exec(hex, S) ? 16 : 10));
5899
5996
  } : $parseInt;
@@ -6507,14 +6604,15 @@ var copyConstructorProperties = function (target, source, exceptions) {
6507
6604
  }
6508
6605
  };
6509
6606
 
6607
+ var $Error = Error;
6510
6608
  var replace = functionUncurryThis(''.replace);
6511
6609
 
6512
- var TEST = (function (arg) { return String(Error(arg).stack); })('zxcasd');
6610
+ var TEST = (function (arg) { return String($Error(arg).stack); })('zxcasd');
6513
6611
  var V8_OR_CHAKRA_STACK_ENTRY = /\n\s*at [^:]*:[^\n]*/;
6514
6612
  var IS_V8_OR_CHAKRA_STACK = V8_OR_CHAKRA_STACK_ENTRY.test(TEST);
6515
6613
 
6516
6614
  var clearErrorStack = function (stack, dropEntries) {
6517
- if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string') {
6615
+ if (IS_V8_OR_CHAKRA_STACK && typeof stack == 'string' && !$Error.prepareStackTrace) {
6518
6616
  while (dropEntries--) stack = replace(stack, V8_OR_CHAKRA_STACK_ENTRY, '');
6519
6617
  } return stack;
6520
6618
  };
@@ -6534,7 +6632,7 @@ var normalizeStringArgument = function (argument, $default) {
6534
6632
  var errorStackInstallable = !fails(function () {
6535
6633
  var error = Error('a');
6536
6634
  if (!('stack' in error)) return true;
6537
- // eslint-disable-next-line es/no-object-defineproperty -- safe
6635
+ // eslint-disable-next-line es-x/no-object-defineproperty -- safe
6538
6636
  Object.defineProperty(error, 'stack', createPropertyDescriptor(1, 7));
6539
6637
  return error.stack !== 7;
6540
6638
  });
@@ -6577,8 +6675,6 @@ _export({ global: true }, {
6577
6675
  AggregateError: $AggregateError
6578
6676
  });
6579
6677
 
6580
- var nativePromiseConstructor = global_1.Promise;
6581
-
6582
6678
  var SPECIES$2 = wellKnownSymbol('species');
6583
6679
 
6584
6680
  var setSpecies = function (CONSTRUCTOR_NAME) {
@@ -6783,7 +6879,7 @@ if (!queueMicrotask) {
6783
6879
  // for other environments - macrotask based on:
6784
6880
  // - setImmediate
6785
6881
  // - MessageChannel
6786
- // - window.postMessag
6882
+ // - window.postMessage
6787
6883
  // - onreadystatechange
6788
6884
  // - setTimeout
6789
6885
  } else {
@@ -6804,36 +6900,6 @@ var microtask = queueMicrotask || function (fn) {
6804
6900
  } last = task;
6805
6901
  };
6806
6902
 
6807
- var PromiseCapability = function (C) {
6808
- var resolve, reject;
6809
- this.promise = new C(function ($$resolve, $$reject) {
6810
- if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
6811
- resolve = $$resolve;
6812
- reject = $$reject;
6813
- });
6814
- this.resolve = aCallable(resolve);
6815
- this.reject = aCallable(reject);
6816
- };
6817
-
6818
- // `NewPromiseCapability` abstract operation
6819
- // https://tc39.es/ecma262/#sec-newpromisecapability
6820
- var f = function (C) {
6821
- return new PromiseCapability(C);
6822
- };
6823
-
6824
- var newPromiseCapability$1 = {
6825
- f: f
6826
- };
6827
-
6828
- var promiseResolve = function (C, x) {
6829
- anObject(C);
6830
- if (isObject$3(x) && x.constructor === C) return x;
6831
- var promiseCapability = newPromiseCapability$1.f(C);
6832
- var resolve = promiseCapability.resolve;
6833
- resolve(x);
6834
- return promiseCapability.promise;
6835
- };
6836
-
6837
6903
  var hostReportErrors = function (a, b) {
6838
6904
  var console = global_1.console;
6839
6905
  if (console && console.error) {
@@ -6873,13 +6939,69 @@ Queue.prototype = {
6873
6939
 
6874
6940
  var queue = Queue;
6875
6941
 
6876
- var engineIsBrowser = typeof window == 'object';
6942
+ var promiseNativeConstructor = global_1.Promise;
6877
6943
 
6878
- var task = task$1.set;
6944
+ var engineIsBrowser = typeof window == 'object' && typeof Deno != 'object';
6945
+
6946
+ var NativePromisePrototype$2 = promiseNativeConstructor && promiseNativeConstructor.prototype;
6947
+ var SPECIES = wellKnownSymbol('species');
6948
+ var SUBCLASSING = false;
6949
+ var NATIVE_PROMISE_REJECTION_EVENT$1 = isCallable(global_1.PromiseRejectionEvent);
6950
+
6951
+ var FORCED_PROMISE_CONSTRUCTOR$5 = isForced_1('Promise', function () {
6952
+ var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(promiseNativeConstructor);
6953
+ var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(promiseNativeConstructor);
6954
+ // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
6955
+ // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
6956
+ // We can't detect it synchronously, so just check versions
6957
+ if (!GLOBAL_CORE_JS_PROMISE && engineV8Version === 66) return true;
6958
+ // We need Promise#{ catch, finally } in the pure version for preventing prototype pollution
6959
+ if (!(NativePromisePrototype$2['catch'] && NativePromisePrototype$2['finally'])) return true;
6960
+ // We can't use @@species feature detection in V8 since it causes
6961
+ // deoptimization and performance degradation
6962
+ // https://github.com/zloirock/core-js/issues/679
6963
+ if (engineV8Version >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
6964
+ // Detect correctness of subclassing with @@species support
6965
+ var promise = new promiseNativeConstructor(function (resolve) { resolve(1); });
6966
+ var FakePromise = function (exec) {
6967
+ exec(function () { /* empty */ }, function () { /* empty */ });
6968
+ };
6969
+ var constructor = promise.constructor = {};
6970
+ constructor[SPECIES] = FakePromise;
6971
+ SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
6972
+ if (!SUBCLASSING) return true;
6973
+ // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
6974
+ return !GLOBAL_CORE_JS_PROMISE && engineIsBrowser && !NATIVE_PROMISE_REJECTION_EVENT$1;
6975
+ });
6976
+
6977
+ var promiseConstructorDetection = {
6978
+ CONSTRUCTOR: FORCED_PROMISE_CONSTRUCTOR$5,
6979
+ REJECTION_EVENT: NATIVE_PROMISE_REJECTION_EVENT$1,
6980
+ SUBCLASSING: SUBCLASSING
6981
+ };
6879
6982
 
6983
+ var PromiseCapability = function (C) {
6984
+ var resolve, reject;
6985
+ this.promise = new C(function ($$resolve, $$reject) {
6986
+ if (resolve !== undefined || reject !== undefined) throw TypeError('Bad Promise constructor');
6987
+ resolve = $$resolve;
6988
+ reject = $$reject;
6989
+ });
6990
+ this.resolve = aCallable(resolve);
6991
+ this.reject = aCallable(reject);
6992
+ };
6880
6993
 
6994
+ // `NewPromiseCapability` abstract operation
6995
+ // https://tc39.es/ecma262/#sec-newpromisecapability
6996
+ var f = function (C) {
6997
+ return new PromiseCapability(C);
6998
+ };
6881
6999
 
7000
+ var newPromiseCapability$1 = {
7001
+ f: f
7002
+ };
6882
7003
 
7004
+ var task = task$1.set;
6883
7005
 
6884
7006
 
6885
7007
 
@@ -6889,15 +7011,14 @@ var task = task$1.set;
6889
7011
 
6890
7012
 
6891
7013
 
6892
- var SPECIES = wellKnownSymbol('species');
6893
7014
  var PROMISE = 'Promise';
6894
-
6895
- var getInternalState = internalState.getterFor(PROMISE);
6896
- var setInternalState = internalState.set;
7015
+ var FORCED_PROMISE_CONSTRUCTOR$4 = promiseConstructorDetection.CONSTRUCTOR;
7016
+ var NATIVE_PROMISE_REJECTION_EVENT = promiseConstructorDetection.REJECTION_EVENT;
6897
7017
  var getInternalPromiseState = internalState.getterFor(PROMISE);
6898
- var NativePromisePrototype = nativePromiseConstructor && nativePromiseConstructor.prototype;
6899
- var PromiseConstructor = nativePromiseConstructor;
6900
- var PromisePrototype = NativePromisePrototype;
7018
+ var setInternalState = internalState.set;
7019
+ var NativePromisePrototype$1 = promiseNativeConstructor && promiseNativeConstructor.prototype;
7020
+ var PromiseConstructor = promiseNativeConstructor;
7021
+ var PromisePrototype = NativePromisePrototype$1;
6901
7022
  var TypeError$1 = global_1.TypeError;
6902
7023
  var document$1 = global_1.document;
6903
7024
  var process$1 = global_1.process;
@@ -6905,7 +7026,6 @@ var newPromiseCapability = newPromiseCapability$1.f;
6905
7026
  var newGenericPromiseCapability = newPromiseCapability;
6906
7027
 
6907
7028
  var DISPATCH_EVENT = !!(document$1 && document$1.createEvent && global_1.dispatchEvent);
6908
- var NATIVE_REJECTION_EVENT = isCallable(global_1.PromiseRejectionEvent);
6909
7029
  var UNHANDLED_REJECTION = 'unhandledrejection';
6910
7030
  var REJECTION_HANDLED = 'rejectionhandled';
6911
7031
  var PENDING = 0;
@@ -6913,40 +7033,9 @@ var FULFILLED = 1;
6913
7033
  var REJECTED = 2;
6914
7034
  var HANDLED = 1;
6915
7035
  var UNHANDLED = 2;
6916
- var SUBCLASSING = false;
6917
7036
 
6918
7037
  var Internal, OwnPromiseCapability, PromiseWrapper;
6919
7038
 
6920
- var FORCED = isForced_1(PROMISE, function () {
6921
- var PROMISE_CONSTRUCTOR_SOURCE = inspectSource(PromiseConstructor);
6922
- var GLOBAL_CORE_JS_PROMISE = PROMISE_CONSTRUCTOR_SOURCE !== String(PromiseConstructor);
6923
- // V8 6.6 (Node 10 and Chrome 66) have a bug with resolving custom thenables
6924
- // https://bugs.chromium.org/p/chromium/issues/detail?id=830565
6925
- // We can't detect it synchronously, so just check versions
6926
- if (!GLOBAL_CORE_JS_PROMISE && engineV8Version === 66) return true;
6927
- // We need Promise#finally in the pure version for preventing prototype pollution
6928
- if (!PromisePrototype['finally']) return true;
6929
- // We can't use @@species feature detection in V8 since it causes
6930
- // deoptimization and performance degradation
6931
- // https://github.com/zloirock/core-js/issues/679
6932
- if (engineV8Version >= 51 && /native code/.test(PROMISE_CONSTRUCTOR_SOURCE)) return false;
6933
- // Detect correctness of subclassing with @@species support
6934
- var promise = new PromiseConstructor(function (resolve) { resolve(1); });
6935
- var FakePromise = function (exec) {
6936
- exec(function () { /* empty */ }, function () { /* empty */ });
6937
- };
6938
- var constructor = promise.constructor = {};
6939
- constructor[SPECIES] = FakePromise;
6940
- SUBCLASSING = promise.then(function () { /* empty */ }) instanceof FakePromise;
6941
- if (!SUBCLASSING) return true;
6942
- // Unhandled rejections tracking support, NodeJS Promise without it fails @@species test
6943
- return !GLOBAL_CORE_JS_PROMISE && engineIsBrowser && !NATIVE_REJECTION_EVENT;
6944
- });
6945
-
6946
- var INCORRECT_ITERATION = FORCED || !checkCorrectnessOfIteration(function (iterable) {
6947
- PromiseConstructor.all(iterable)['catch'](function () { /* empty */ });
6948
- });
6949
-
6950
7039
  // helpers
6951
7040
  var isThenable = function (it) {
6952
7041
  var then;
@@ -7011,7 +7100,7 @@ var dispatchEvent = function (name, promise, reason) {
7011
7100
  event.initEvent(name, false, true);
7012
7101
  global_1.dispatchEvent(event);
7013
7102
  } else event = { promise: promise, reason: reason };
7014
- if (!NATIVE_REJECTION_EVENT && (handler = global_1['on' + name])) handler(event);
7103
+ if (!NATIVE_PROMISE_REJECTION_EVENT && (handler = global_1['on' + name])) handler(event);
7015
7104
  else if (name === UNHANDLED_REJECTION) hostReportErrors('Unhandled promise rejection', reason);
7016
7105
  };
7017
7106
 
@@ -7092,20 +7181,22 @@ var internalResolve = function (state, value, unwrap) {
7092
7181
  };
7093
7182
 
7094
7183
  // constructor polyfill
7095
- if (FORCED) {
7184
+ if (FORCED_PROMISE_CONSTRUCTOR$4) {
7096
7185
  // 25.4.3.1 Promise(executor)
7097
7186
  PromiseConstructor = function Promise(executor) {
7098
7187
  anInstance(this, PromisePrototype);
7099
7188
  aCallable(executor);
7100
7189
  functionCall(Internal, this);
7101
- var state = getInternalState(this);
7190
+ var state = getInternalPromiseState(this);
7102
7191
  try {
7103
7192
  executor(bind(internalResolve, state), bind(internalReject, state));
7104
7193
  } catch (error) {
7105
7194
  internalReject(state, error);
7106
7195
  }
7107
7196
  };
7197
+
7108
7198
  PromisePrototype = PromiseConstructor.prototype;
7199
+
7109
7200
  // eslint-disable-next-line no-unused-vars -- required for `.length`
7110
7201
  Internal = function Promise(executor) {
7111
7202
  setInternalState(this, {
@@ -7119,6 +7210,7 @@ if (FORCED) {
7119
7210
  value: undefined
7120
7211
  });
7121
7212
  };
7213
+
7122
7214
  Internal.prototype = redefineAll(PromisePrototype, {
7123
7215
  // `Promise.prototype.then` method
7124
7216
  // https://tc39.es/ecma262/#sec-promise.prototype.then
@@ -7135,20 +7227,17 @@ if (FORCED) {
7135
7227
  callReaction(reaction, state);
7136
7228
  });
7137
7229
  return reaction.promise;
7138
- },
7139
- // `Promise.prototype.catch` method
7140
- // https://tc39.es/ecma262/#sec-promise.prototype.catch
7141
- 'catch': function (onRejected) {
7142
- return this.then(undefined, onRejected);
7143
7230
  }
7144
7231
  });
7232
+
7145
7233
  OwnPromiseCapability = function () {
7146
7234
  var promise = new Internal();
7147
- var state = getInternalState(promise);
7235
+ var state = getInternalPromiseState(promise);
7148
7236
  this.promise = promise;
7149
7237
  this.resolve = bind(internalResolve, state);
7150
7238
  this.reject = bind(internalReject, state);
7151
7239
  };
7240
+
7152
7241
  newPromiseCapability$1.f = newPromiseCapability = function (C) {
7153
7242
  return C === PromiseConstructor || C === PromiseWrapper
7154
7243
  ? new OwnPromiseCapability(C)
@@ -7156,40 +7245,25 @@ if (FORCED) {
7156
7245
  };
7157
7246
  }
7158
7247
 
7159
- _export({ global: true, wrap: true, forced: FORCED }, {
7248
+ _export({ global: true, wrap: true, forced: FORCED_PROMISE_CONSTRUCTOR$4 }, {
7160
7249
  Promise: PromiseConstructor
7161
7250
  });
7162
7251
 
7163
7252
  setToStringTag(PromiseConstructor, PROMISE, false, true);
7164
7253
  setSpecies(PROMISE);
7165
7254
 
7166
- PromiseWrapper = getBuiltIn(PROMISE);
7255
+ var FORCED_PROMISE_CONSTRUCTOR$3 = promiseConstructorDetection.CONSTRUCTOR;
7167
7256
 
7168
- // statics
7169
- _export({ target: PROMISE, stat: true, forced: FORCED }, {
7170
- // `Promise.reject` method
7171
- // https://tc39.es/ecma262/#sec-promise.reject
7172
- reject: function reject(r) {
7173
- var capability = newPromiseCapability(this);
7174
- functionCall(capability.reject, undefined, r);
7175
- return capability.promise;
7176
- }
7177
- });
7178
-
7179
- _export({ target: PROMISE, stat: true, forced: isPure }, {
7180
- // `Promise.resolve` method
7181
- // https://tc39.es/ecma262/#sec-promise.resolve
7182
- resolve: function resolve(x) {
7183
- return promiseResolve(this === PromiseWrapper ? PromiseConstructor : this, x);
7184
- }
7257
+ var promiseStaticsIncorrectIteration = FORCED_PROMISE_CONSTRUCTOR$3 || !checkCorrectnessOfIteration(function (iterable) {
7258
+ promiseNativeConstructor.all(iterable).then(undefined, function () { /* empty */ });
7185
7259
  });
7186
7260
 
7187
- _export({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
7188
- // `Promise.all` method
7189
- // https://tc39.es/ecma262/#sec-promise.all
7261
+ // `Promise.all` method
7262
+ // https://tc39.es/ecma262/#sec-promise.all
7263
+ _export({ target: 'Promise', stat: true, forced: promiseStaticsIncorrectIteration }, {
7190
7264
  all: function all(iterable) {
7191
7265
  var C = this;
7192
- var capability = newPromiseCapability(C);
7266
+ var capability = newPromiseCapability$1.f(C);
7193
7267
  var resolve = capability.resolve;
7194
7268
  var reject = capability.reject;
7195
7269
  var result = perform(function () {
@@ -7212,12 +7286,31 @@ _export({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
7212
7286
  });
7213
7287
  if (result.error) reject(result.value);
7214
7288
  return capability.promise;
7215
- },
7216
- // `Promise.race` method
7217
- // https://tc39.es/ecma262/#sec-promise.race
7289
+ }
7290
+ });
7291
+
7292
+ var FORCED_PROMISE_CONSTRUCTOR$2 = promiseConstructorDetection.CONSTRUCTOR;
7293
+
7294
+
7295
+
7296
+
7297
+
7298
+ promiseNativeConstructor && promiseNativeConstructor.prototype;
7299
+
7300
+ // `Promise.prototype.catch` method
7301
+ // https://tc39.es/ecma262/#sec-promise.prototype.catch
7302
+ _export({ target: 'Promise', proto: true, forced: FORCED_PROMISE_CONSTRUCTOR$2, real: true }, {
7303
+ 'catch': function (onRejected) {
7304
+ return this.then(undefined, onRejected);
7305
+ }
7306
+ });
7307
+
7308
+ // `Promise.race` method
7309
+ // https://tc39.es/ecma262/#sec-promise.race
7310
+ _export({ target: 'Promise', stat: true, forced: promiseStaticsIncorrectIteration }, {
7218
7311
  race: function race(iterable) {
7219
7312
  var C = this;
7220
- var capability = newPromiseCapability(C);
7313
+ var capability = newPromiseCapability$1.f(C);
7221
7314
  var reject = capability.reject;
7222
7315
  var result = perform(function () {
7223
7316
  var $promiseResolve = aCallable(C.resolve);
@@ -7230,6 +7323,41 @@ _export({ target: PROMISE, stat: true, forced: INCORRECT_ITERATION }, {
7230
7323
  }
7231
7324
  });
7232
7325
 
7326
+ var FORCED_PROMISE_CONSTRUCTOR$1 = promiseConstructorDetection.CONSTRUCTOR;
7327
+
7328
+ // `Promise.reject` method
7329
+ // https://tc39.es/ecma262/#sec-promise.reject
7330
+ _export({ target: 'Promise', stat: true, forced: FORCED_PROMISE_CONSTRUCTOR$1 }, {
7331
+ reject: function reject(r) {
7332
+ var capability = newPromiseCapability$1.f(this);
7333
+ functionCall(capability.reject, undefined, r);
7334
+ return capability.promise;
7335
+ }
7336
+ });
7337
+
7338
+ var promiseResolve = function (C, x) {
7339
+ anObject(C);
7340
+ if (isObject$3(x) && x.constructor === C) return x;
7341
+ var promiseCapability = newPromiseCapability$1.f(C);
7342
+ var resolve = promiseCapability.resolve;
7343
+ resolve(x);
7344
+ return promiseCapability.promise;
7345
+ };
7346
+
7347
+ var FORCED_PROMISE_CONSTRUCTOR = promiseConstructorDetection.CONSTRUCTOR;
7348
+
7349
+
7350
+ var PromiseConstructorWrapper = getBuiltIn('Promise');
7351
+ var CHECK_WRAPPER = !FORCED_PROMISE_CONSTRUCTOR;
7352
+
7353
+ // `Promise.resolve` method
7354
+ // https://tc39.es/ecma262/#sec-promise.resolve
7355
+ _export({ target: 'Promise', stat: true, forced: isPure }, {
7356
+ resolve: function resolve(x) {
7357
+ return promiseResolve(CHECK_WRAPPER && this === PromiseConstructorWrapper ? promiseNativeConstructor : this, x);
7358
+ }
7359
+ });
7360
+
7233
7361
  // `Promise.allSettled` method
7234
7362
  // https://tc39.es/ecma262/#sec-promise.allsettled
7235
7363
  _export({ target: 'Promise', stat: true }, {
@@ -7305,10 +7433,12 @@ _export({ target: 'Promise', stat: true }, {
7305
7433
  }
7306
7434
  });
7307
7435
 
7436
+ var NativePromisePrototype = promiseNativeConstructor && promiseNativeConstructor.prototype;
7437
+
7308
7438
  // Safari bug https://bugs.webkit.org/show_bug.cgi?id=200829
7309
- var NON_GENERIC = !!nativePromiseConstructor && fails(function () {
7439
+ var NON_GENERIC = !!promiseNativeConstructor && fails(function () {
7310
7440
  // eslint-disable-next-line unicorn/no-thenable -- required for testing
7311
- nativePromiseConstructor.prototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
7441
+ NativePromisePrototype['finally'].call({ then: function () { /* empty */ } }, function () { /* empty */ });
7312
7442
  });
7313
7443
 
7314
7444
  // `Promise.prototype.finally` method
@@ -7945,7 +8075,7 @@ var _promise = _interopRequireDefault(promise);
7945
8075
 
7946
8076
  var _forEach2 = _interopRequireDefault(forEach$5);
7947
8077
 
7948
- var _isArray = _interopRequireDefault(isArray$6);
8078
+ var _isArray = _interopRequireDefault(isArray$7);
7949
8079
 
7950
8080
  var _isArrayLikeObject = _interopRequireDefault(isArrayLikeObject);
7951
8081
 
@@ -9506,7 +9636,7 @@ var defineProperties$2 = objectDefineProperties.f;
9506
9636
 
9507
9637
  // `Object.defineProperties` method
9508
9638
  // https://tc39.es/ecma262/#sec-object.defineproperties
9509
- // eslint-disable-next-line es/no-object-defineproperties -- safe
9639
+ // eslint-disable-next-line es-x/no-object-defineproperties -- safe
9510
9640
  _export({ target: 'Object', stat: true, forced: Object.defineProperties !== defineProperties$2, sham: !descriptors }, {
9511
9641
  defineProperties: defineProperties$2
9512
9642
  });
@@ -9576,9 +9706,9 @@ var filter$1 = filter$2;
9576
9706
 
9577
9707
  var filter = filter$1;
9578
9708
 
9579
- var getOwnPropertySymbols = getOwnPropertySymbols$4;
9709
+ var getOwnPropertySymbols = getOwnPropertySymbols$5;
9580
9710
 
9581
- var keys = keys$4;
9711
+ var keys = keys$5;
9582
9712
 
9583
9713
  var _excluded = ["className", "children", "href", "iconPosition", "block", "disabled", "loading", "onClick"];
9584
9714