react-tooltip 4.2.20 → 4.2.21

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/dist/index.js CHANGED
@@ -1021,6 +1021,854 @@ function getPopupColors(customColors, type, hasBorder) {
1021
1021
  return colors;
1022
1022
  }
1023
1023
 
1024
+ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
1025
+
1026
+ function createCommonjsModule(fn, module) {
1027
+ return module = { exports: {} }, fn(module, module.exports), module.exports;
1028
+ }
1029
+
1030
+ var check = function (it) {
1031
+ return it && it.Math == Math && it;
1032
+ };
1033
+
1034
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
1035
+ var global_1 =
1036
+ // eslint-disable-next-line es/no-global-this -- safe
1037
+ check(typeof globalThis == 'object' && globalThis) ||
1038
+ check(typeof window == 'object' && window) ||
1039
+ // eslint-disable-next-line no-restricted-globals -- safe
1040
+ check(typeof self == 'object' && self) ||
1041
+ check(typeof commonjsGlobal == 'object' && commonjsGlobal) ||
1042
+ // eslint-disable-next-line no-new-func -- fallback
1043
+ (function () { return this; })() || Function('return this')();
1044
+
1045
+ var fails = function (exec) {
1046
+ try {
1047
+ return !!exec();
1048
+ } catch (error) {
1049
+ return true;
1050
+ }
1051
+ };
1052
+
1053
+ // Detect IE8's incomplete defineProperty implementation
1054
+ var descriptors = !fails(function () {
1055
+ // eslint-disable-next-line es/no-object-defineproperty -- required for testing
1056
+ return Object.defineProperty({}, 1, { get: function () { return 7; } })[1] != 7;
1057
+ });
1058
+
1059
+ var $propertyIsEnumerable = {}.propertyIsEnumerable;
1060
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1061
+ var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1062
+
1063
+ // Nashorn ~ JDK8 bug
1064
+ var NASHORN_BUG = getOwnPropertyDescriptor && !$propertyIsEnumerable.call({ 1: 2 }, 1);
1065
+
1066
+ // `Object.prototype.propertyIsEnumerable` method implementation
1067
+ // https://tc39.es/ecma262/#sec-object.prototype.propertyisenumerable
1068
+ var f = NASHORN_BUG ? function propertyIsEnumerable(V) {
1069
+ var descriptor = getOwnPropertyDescriptor(this, V);
1070
+ return !!descriptor && descriptor.enumerable;
1071
+ } : $propertyIsEnumerable;
1072
+
1073
+ var objectPropertyIsEnumerable = {
1074
+ f: f
1075
+ };
1076
+
1077
+ var createPropertyDescriptor = function (bitmap, value) {
1078
+ return {
1079
+ enumerable: !(bitmap & 1),
1080
+ configurable: !(bitmap & 2),
1081
+ writable: !(bitmap & 4),
1082
+ value: value
1083
+ };
1084
+ };
1085
+
1086
+ var toString = {}.toString;
1087
+
1088
+ var classofRaw = function (it) {
1089
+ return toString.call(it).slice(8, -1);
1090
+ };
1091
+
1092
+ var split = ''.split;
1093
+
1094
+ // fallback for non-array-like ES3 and non-enumerable old V8 strings
1095
+ var indexedObject = fails(function () {
1096
+ // throws an error in rhino, see https://github.com/mozilla/rhino/issues/346
1097
+ // eslint-disable-next-line no-prototype-builtins -- safe
1098
+ return !Object('z').propertyIsEnumerable(0);
1099
+ }) ? function (it) {
1100
+ return classofRaw(it) == 'String' ? split.call(it, '') : Object(it);
1101
+ } : Object;
1102
+
1103
+ // `RequireObjectCoercible` abstract operation
1104
+ // https://tc39.es/ecma262/#sec-requireobjectcoercible
1105
+ var requireObjectCoercible = function (it) {
1106
+ if (it == undefined) throw TypeError("Can't call method on " + it);
1107
+ return it;
1108
+ };
1109
+
1110
+ // toObject with fallback for non-array-like ES3 strings
1111
+
1112
+
1113
+
1114
+ var toIndexedObject = function (it) {
1115
+ return indexedObject(requireObjectCoercible(it));
1116
+ };
1117
+
1118
+ var isObject = function (it) {
1119
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
1120
+ };
1121
+
1122
+ // `ToPrimitive` abstract operation
1123
+ // https://tc39.es/ecma262/#sec-toprimitive
1124
+ // instead of the ES6 spec version, we didn't implement @@toPrimitive case
1125
+ // and the second argument - flag - preferred type is a string
1126
+ var toPrimitive = function (input, PREFERRED_STRING) {
1127
+ if (!isObject(input)) return input;
1128
+ var fn, val;
1129
+ if (PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
1130
+ if (typeof (fn = input.valueOf) == 'function' && !isObject(val = fn.call(input))) return val;
1131
+ if (!PREFERRED_STRING && typeof (fn = input.toString) == 'function' && !isObject(val = fn.call(input))) return val;
1132
+ throw TypeError("Can't convert object to primitive value");
1133
+ };
1134
+
1135
+ // `ToObject` abstract operation
1136
+ // https://tc39.es/ecma262/#sec-toobject
1137
+ var toObject = function (argument) {
1138
+ return Object(requireObjectCoercible(argument));
1139
+ };
1140
+
1141
+ var hasOwnProperty = {}.hasOwnProperty;
1142
+
1143
+ var has = function hasOwn(it, key) {
1144
+ return hasOwnProperty.call(toObject(it), key);
1145
+ };
1146
+
1147
+ var document$1 = global_1.document;
1148
+ // typeof document.createElement is 'object' in old IE
1149
+ var EXISTS = isObject(document$1) && isObject(document$1.createElement);
1150
+
1151
+ var documentCreateElement = function (it) {
1152
+ return EXISTS ? document$1.createElement(it) : {};
1153
+ };
1154
+
1155
+ // Thank's IE8 for his funny defineProperty
1156
+ var ie8DomDefine = !descriptors && !fails(function () {
1157
+ // eslint-disable-next-line es/no-object-defineproperty -- requied for testing
1158
+ return Object.defineProperty(documentCreateElement('div'), 'a', {
1159
+ get: function () { return 7; }
1160
+ }).a != 7;
1161
+ });
1162
+
1163
+ // eslint-disable-next-line es/no-object-getownpropertydescriptor -- safe
1164
+ var $getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor;
1165
+
1166
+ // `Object.getOwnPropertyDescriptor` method
1167
+ // https://tc39.es/ecma262/#sec-object.getownpropertydescriptor
1168
+ var f$1 = descriptors ? $getOwnPropertyDescriptor : function getOwnPropertyDescriptor(O, P) {
1169
+ O = toIndexedObject(O);
1170
+ P = toPrimitive(P, true);
1171
+ if (ie8DomDefine) try {
1172
+ return $getOwnPropertyDescriptor(O, P);
1173
+ } catch (error) { /* empty */ }
1174
+ if (has(O, P)) return createPropertyDescriptor(!objectPropertyIsEnumerable.f.call(O, P), O[P]);
1175
+ };
1176
+
1177
+ var objectGetOwnPropertyDescriptor = {
1178
+ f: f$1
1179
+ };
1180
+
1181
+ var anObject = function (it) {
1182
+ if (!isObject(it)) {
1183
+ throw TypeError(String(it) + ' is not an object');
1184
+ } return it;
1185
+ };
1186
+
1187
+ // eslint-disable-next-line es/no-object-defineproperty -- safe
1188
+ var $defineProperty = Object.defineProperty;
1189
+
1190
+ // `Object.defineProperty` method
1191
+ // https://tc39.es/ecma262/#sec-object.defineproperty
1192
+ var f$2 = descriptors ? $defineProperty : function defineProperty(O, P, Attributes) {
1193
+ anObject(O);
1194
+ P = toPrimitive(P, true);
1195
+ anObject(Attributes);
1196
+ if (ie8DomDefine) try {
1197
+ return $defineProperty(O, P, Attributes);
1198
+ } catch (error) { /* empty */ }
1199
+ if ('get' in Attributes || 'set' in Attributes) throw TypeError('Accessors not supported');
1200
+ if ('value' in Attributes) O[P] = Attributes.value;
1201
+ return O;
1202
+ };
1203
+
1204
+ var objectDefineProperty = {
1205
+ f: f$2
1206
+ };
1207
+
1208
+ var createNonEnumerableProperty = descriptors ? function (object, key, value) {
1209
+ return objectDefineProperty.f(object, key, createPropertyDescriptor(1, value));
1210
+ } : function (object, key, value) {
1211
+ object[key] = value;
1212
+ return object;
1213
+ };
1214
+
1215
+ var setGlobal = function (key, value) {
1216
+ try {
1217
+ createNonEnumerableProperty(global_1, key, value);
1218
+ } catch (error) {
1219
+ global_1[key] = value;
1220
+ } return value;
1221
+ };
1222
+
1223
+ var SHARED = '__core-js_shared__';
1224
+ var store = global_1[SHARED] || setGlobal(SHARED, {});
1225
+
1226
+ var sharedStore = store;
1227
+
1228
+ var functionToString = Function.toString;
1229
+
1230
+ // this helper broken in `3.4.1-3.4.4`, so we can't use `shared` helper
1231
+ if (typeof sharedStore.inspectSource != 'function') {
1232
+ sharedStore.inspectSource = function (it) {
1233
+ return functionToString.call(it);
1234
+ };
1235
+ }
1236
+
1237
+ var inspectSource = sharedStore.inspectSource;
1238
+
1239
+ var WeakMap = global_1.WeakMap;
1240
+
1241
+ var nativeWeakMap = typeof WeakMap === 'function' && /native code/.test(inspectSource(WeakMap));
1242
+
1243
+ var shared = createCommonjsModule(function (module) {
1244
+ (module.exports = function (key, value) {
1245
+ return sharedStore[key] || (sharedStore[key] = value !== undefined ? value : {});
1246
+ })('versions', []).push({
1247
+ version: '3.12.1',
1248
+ mode: 'global',
1249
+ copyright: '© 2021 Denis Pushkarev (zloirock.ru)'
1250
+ });
1251
+ });
1252
+
1253
+ var id = 0;
1254
+ var postfix = Math.random();
1255
+
1256
+ var uid = function (key) {
1257
+ return 'Symbol(' + String(key === undefined ? '' : key) + ')_' + (++id + postfix).toString(36);
1258
+ };
1259
+
1260
+ var keys = shared('keys');
1261
+
1262
+ var sharedKey = function (key) {
1263
+ return keys[key] || (keys[key] = uid(key));
1264
+ };
1265
+
1266
+ var hiddenKeys = {};
1267
+
1268
+ var OBJECT_ALREADY_INITIALIZED = 'Object already initialized';
1269
+ var WeakMap$1 = global_1.WeakMap;
1270
+ var set, get, has$1;
1271
+
1272
+ var enforce = function (it) {
1273
+ return has$1(it) ? get(it) : set(it, {});
1274
+ };
1275
+
1276
+ var getterFor = function (TYPE) {
1277
+ return function (it) {
1278
+ var state;
1279
+ if (!isObject(it) || (state = get(it)).type !== TYPE) {
1280
+ throw TypeError('Incompatible receiver, ' + TYPE + ' required');
1281
+ } return state;
1282
+ };
1283
+ };
1284
+
1285
+ if (nativeWeakMap || sharedStore.state) {
1286
+ var store$1 = sharedStore.state || (sharedStore.state = new WeakMap$1());
1287
+ var wmget = store$1.get;
1288
+ var wmhas = store$1.has;
1289
+ var wmset = store$1.set;
1290
+ set = function (it, metadata) {
1291
+ if (wmhas.call(store$1, it)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
1292
+ metadata.facade = it;
1293
+ wmset.call(store$1, it, metadata);
1294
+ return metadata;
1295
+ };
1296
+ get = function (it) {
1297
+ return wmget.call(store$1, it) || {};
1298
+ };
1299
+ has$1 = function (it) {
1300
+ return wmhas.call(store$1, it);
1301
+ };
1302
+ } else {
1303
+ var STATE = sharedKey('state');
1304
+ hiddenKeys[STATE] = true;
1305
+ set = function (it, metadata) {
1306
+ if (has(it, STATE)) throw new TypeError(OBJECT_ALREADY_INITIALIZED);
1307
+ metadata.facade = it;
1308
+ createNonEnumerableProperty(it, STATE, metadata);
1309
+ return metadata;
1310
+ };
1311
+ get = function (it) {
1312
+ return has(it, STATE) ? it[STATE] : {};
1313
+ };
1314
+ has$1 = function (it) {
1315
+ return has(it, STATE);
1316
+ };
1317
+ }
1318
+
1319
+ var internalState = {
1320
+ set: set,
1321
+ get: get,
1322
+ has: has$1,
1323
+ enforce: enforce,
1324
+ getterFor: getterFor
1325
+ };
1326
+
1327
+ var redefine = createCommonjsModule(function (module) {
1328
+ var getInternalState = internalState.get;
1329
+ var enforceInternalState = internalState.enforce;
1330
+ var TEMPLATE = String(String).split('String');
1331
+
1332
+ (module.exports = function (O, key, value, options) {
1333
+ var unsafe = options ? !!options.unsafe : false;
1334
+ var simple = options ? !!options.enumerable : false;
1335
+ var noTargetGet = options ? !!options.noTargetGet : false;
1336
+ var state;
1337
+ if (typeof value == 'function') {
1338
+ if (typeof key == 'string' && !has(value, 'name')) {
1339
+ createNonEnumerableProperty(value, 'name', key);
1340
+ }
1341
+ state = enforceInternalState(value);
1342
+ if (!state.source) {
1343
+ state.source = TEMPLATE.join(typeof key == 'string' ? key : '');
1344
+ }
1345
+ }
1346
+ if (O === global_1) {
1347
+ if (simple) O[key] = value;
1348
+ else setGlobal(key, value);
1349
+ return;
1350
+ } else if (!unsafe) {
1351
+ delete O[key];
1352
+ } else if (!noTargetGet && O[key]) {
1353
+ simple = true;
1354
+ }
1355
+ if (simple) O[key] = value;
1356
+ else createNonEnumerableProperty(O, key, value);
1357
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
1358
+ })(Function.prototype, 'toString', function toString() {
1359
+ return typeof this == 'function' && getInternalState(this).source || inspectSource(this);
1360
+ });
1361
+ });
1362
+
1363
+ var path = global_1;
1364
+
1365
+ var aFunction = function (variable) {
1366
+ return typeof variable == 'function' ? variable : undefined;
1367
+ };
1368
+
1369
+ var getBuiltIn = function (namespace, method) {
1370
+ return arguments.length < 2 ? aFunction(path[namespace]) || aFunction(global_1[namespace])
1371
+ : path[namespace] && path[namespace][method] || global_1[namespace] && global_1[namespace][method];
1372
+ };
1373
+
1374
+ var ceil = Math.ceil;
1375
+ var floor = Math.floor;
1376
+
1377
+ // `ToInteger` abstract operation
1378
+ // https://tc39.es/ecma262/#sec-tointeger
1379
+ var toInteger = function (argument) {
1380
+ return isNaN(argument = +argument) ? 0 : (argument > 0 ? floor : ceil)(argument);
1381
+ };
1382
+
1383
+ var min = Math.min;
1384
+
1385
+ // `ToLength` abstract operation
1386
+ // https://tc39.es/ecma262/#sec-tolength
1387
+ var toLength = function (argument) {
1388
+ return argument > 0 ? min(toInteger(argument), 0x1FFFFFFFFFFFFF) : 0; // 2 ** 53 - 1 == 9007199254740991
1389
+ };
1390
+
1391
+ var max = Math.max;
1392
+ var min$1 = Math.min;
1393
+
1394
+ // Helper for a popular repeating case of the spec:
1395
+ // Let integer be ? ToInteger(index).
1396
+ // If integer < 0, let result be max((length + integer), 0); else let result be min(integer, length).
1397
+ var toAbsoluteIndex = function (index, length) {
1398
+ var integer = toInteger(index);
1399
+ return integer < 0 ? max(integer + length, 0) : min$1(integer, length);
1400
+ };
1401
+
1402
+ // `Array.prototype.{ indexOf, includes }` methods implementation
1403
+ var createMethod = function (IS_INCLUDES) {
1404
+ return function ($this, el, fromIndex) {
1405
+ var O = toIndexedObject($this);
1406
+ var length = toLength(O.length);
1407
+ var index = toAbsoluteIndex(fromIndex, length);
1408
+ var value;
1409
+ // Array#includes uses SameValueZero equality algorithm
1410
+ // eslint-disable-next-line no-self-compare -- NaN check
1411
+ if (IS_INCLUDES && el != el) while (length > index) {
1412
+ value = O[index++];
1413
+ // eslint-disable-next-line no-self-compare -- NaN check
1414
+ if (value != value) return true;
1415
+ // Array#indexOf ignores holes, Array#includes - not
1416
+ } else for (;length > index; index++) {
1417
+ if ((IS_INCLUDES || index in O) && O[index] === el) return IS_INCLUDES || index || 0;
1418
+ } return !IS_INCLUDES && -1;
1419
+ };
1420
+ };
1421
+
1422
+ var arrayIncludes = {
1423
+ // `Array.prototype.includes` method
1424
+ // https://tc39.es/ecma262/#sec-array.prototype.includes
1425
+ includes: createMethod(true),
1426
+ // `Array.prototype.indexOf` method
1427
+ // https://tc39.es/ecma262/#sec-array.prototype.indexof
1428
+ indexOf: createMethod(false)
1429
+ };
1430
+
1431
+ var indexOf = arrayIncludes.indexOf;
1432
+
1433
+
1434
+ var objectKeysInternal = function (object, names) {
1435
+ var O = toIndexedObject(object);
1436
+ var i = 0;
1437
+ var result = [];
1438
+ var key;
1439
+ for (key in O) !has(hiddenKeys, key) && has(O, key) && result.push(key);
1440
+ // Don't enum bug & hidden keys
1441
+ while (names.length > i) if (has(O, key = names[i++])) {
1442
+ ~indexOf(result, key) || result.push(key);
1443
+ }
1444
+ return result;
1445
+ };
1446
+
1447
+ // IE8- don't enum bug keys
1448
+ var enumBugKeys = [
1449
+ 'constructor',
1450
+ 'hasOwnProperty',
1451
+ 'isPrototypeOf',
1452
+ 'propertyIsEnumerable',
1453
+ 'toLocaleString',
1454
+ 'toString',
1455
+ 'valueOf'
1456
+ ];
1457
+
1458
+ var hiddenKeys$1 = enumBugKeys.concat('length', 'prototype');
1459
+
1460
+ // `Object.getOwnPropertyNames` method
1461
+ // https://tc39.es/ecma262/#sec-object.getownpropertynames
1462
+ // eslint-disable-next-line es/no-object-getownpropertynames -- safe
1463
+ var f$3 = Object.getOwnPropertyNames || function getOwnPropertyNames(O) {
1464
+ return objectKeysInternal(O, hiddenKeys$1);
1465
+ };
1466
+
1467
+ var objectGetOwnPropertyNames = {
1468
+ f: f$3
1469
+ };
1470
+
1471
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- safe
1472
+ var f$4 = Object.getOwnPropertySymbols;
1473
+
1474
+ var objectGetOwnPropertySymbols = {
1475
+ f: f$4
1476
+ };
1477
+
1478
+ // all object keys, includes non-enumerable and symbols
1479
+ var ownKeys$1 = getBuiltIn('Reflect', 'ownKeys') || function ownKeys(it) {
1480
+ var keys = objectGetOwnPropertyNames.f(anObject(it));
1481
+ var getOwnPropertySymbols = objectGetOwnPropertySymbols.f;
1482
+ return getOwnPropertySymbols ? keys.concat(getOwnPropertySymbols(it)) : keys;
1483
+ };
1484
+
1485
+ var copyConstructorProperties = function (target, source) {
1486
+ var keys = ownKeys$1(source);
1487
+ var defineProperty = objectDefineProperty.f;
1488
+ var getOwnPropertyDescriptor = objectGetOwnPropertyDescriptor.f;
1489
+ for (var i = 0; i < keys.length; i++) {
1490
+ var key = keys[i];
1491
+ if (!has(target, key)) defineProperty(target, key, getOwnPropertyDescriptor(source, key));
1492
+ }
1493
+ };
1494
+
1495
+ var replacement = /#|\.prototype\./;
1496
+
1497
+ var isForced = function (feature, detection) {
1498
+ var value = data[normalize(feature)];
1499
+ return value == POLYFILL ? true
1500
+ : value == NATIVE ? false
1501
+ : typeof detection == 'function' ? fails(detection)
1502
+ : !!detection;
1503
+ };
1504
+
1505
+ var normalize = isForced.normalize = function (string) {
1506
+ return String(string).replace(replacement, '.').toLowerCase();
1507
+ };
1508
+
1509
+ var data = isForced.data = {};
1510
+ var NATIVE = isForced.NATIVE = 'N';
1511
+ var POLYFILL = isForced.POLYFILL = 'P';
1512
+
1513
+ var isForced_1 = isForced;
1514
+
1515
+ var getOwnPropertyDescriptor$1 = objectGetOwnPropertyDescriptor.f;
1516
+
1517
+
1518
+
1519
+
1520
+
1521
+
1522
+ /*
1523
+ options.target - name of the target object
1524
+ options.global - target is the global object
1525
+ options.stat - export as static methods of target
1526
+ options.proto - export as prototype methods of target
1527
+ options.real - real prototype method for the `pure` version
1528
+ options.forced - export even if the native feature is available
1529
+ options.bind - bind methods to the target, required for the `pure` version
1530
+ options.wrap - wrap constructors to preventing global pollution, required for the `pure` version
1531
+ options.unsafe - use the simple assignment of property instead of delete + defineProperty
1532
+ options.sham - add a flag to not completely full polyfills
1533
+ options.enumerable - export as enumerable property
1534
+ options.noTargetGet - prevent calling a getter on target
1535
+ */
1536
+ var _export = function (options, source) {
1537
+ var TARGET = options.target;
1538
+ var GLOBAL = options.global;
1539
+ var STATIC = options.stat;
1540
+ var FORCED, target, key, targetProperty, sourceProperty, descriptor;
1541
+ if (GLOBAL) {
1542
+ target = global_1;
1543
+ } else if (STATIC) {
1544
+ target = global_1[TARGET] || setGlobal(TARGET, {});
1545
+ } else {
1546
+ target = (global_1[TARGET] || {}).prototype;
1547
+ }
1548
+ if (target) for (key in source) {
1549
+ sourceProperty = source[key];
1550
+ if (options.noTargetGet) {
1551
+ descriptor = getOwnPropertyDescriptor$1(target, key);
1552
+ targetProperty = descriptor && descriptor.value;
1553
+ } else targetProperty = target[key];
1554
+ FORCED = isForced_1(GLOBAL ? key : TARGET + (STATIC ? '.' : '#') + key, options.forced);
1555
+ // contained in target
1556
+ if (!FORCED && targetProperty !== undefined) {
1557
+ if (typeof sourceProperty === typeof targetProperty) continue;
1558
+ copyConstructorProperties(sourceProperty, targetProperty);
1559
+ }
1560
+ // add a flag to not completely full polyfills
1561
+ if (options.sham || (targetProperty && targetProperty.sham)) {
1562
+ createNonEnumerableProperty(sourceProperty, 'sham', true);
1563
+ }
1564
+ // extend global
1565
+ redefine(target, key, sourceProperty, options);
1566
+ }
1567
+ };
1568
+
1569
+ var aFunction$1 = function (it) {
1570
+ if (typeof it != 'function') {
1571
+ throw TypeError(String(it) + ' is not a function');
1572
+ } return it;
1573
+ };
1574
+
1575
+ // optional / simple context binding
1576
+ var functionBindContext = function (fn, that, length) {
1577
+ aFunction$1(fn);
1578
+ if (that === undefined) return fn;
1579
+ switch (length) {
1580
+ case 0: return function () {
1581
+ return fn.call(that);
1582
+ };
1583
+ case 1: return function (a) {
1584
+ return fn.call(that, a);
1585
+ };
1586
+ case 2: return function (a, b) {
1587
+ return fn.call(that, a, b);
1588
+ };
1589
+ case 3: return function (a, b, c) {
1590
+ return fn.call(that, a, b, c);
1591
+ };
1592
+ }
1593
+ return function (/* ...args */) {
1594
+ return fn.apply(that, arguments);
1595
+ };
1596
+ };
1597
+
1598
+ // `IsArray` abstract operation
1599
+ // https://tc39.es/ecma262/#sec-isarray
1600
+ // eslint-disable-next-line es/no-array-isarray -- safe
1601
+ var isArray = Array.isArray || function isArray(arg) {
1602
+ return classofRaw(arg) == 'Array';
1603
+ };
1604
+
1605
+ var engineUserAgent = getBuiltIn('navigator', 'userAgent') || '';
1606
+
1607
+ var process = global_1.process;
1608
+ var versions = process && process.versions;
1609
+ var v8 = versions && versions.v8;
1610
+ var match, version;
1611
+
1612
+ if (v8) {
1613
+ match = v8.split('.');
1614
+ version = match[0] < 4 ? 1 : match[0] + match[1];
1615
+ } else if (engineUserAgent) {
1616
+ match = engineUserAgent.match(/Edge\/(\d+)/);
1617
+ if (!match || match[1] >= 74) {
1618
+ match = engineUserAgent.match(/Chrome\/(\d+)/);
1619
+ if (match) version = match[1];
1620
+ }
1621
+ }
1622
+
1623
+ var engineV8Version = version && +version;
1624
+
1625
+ /* eslint-disable es/no-symbol -- required for testing */
1626
+
1627
+
1628
+
1629
+ // eslint-disable-next-line es/no-object-getownpropertysymbols -- required for testing
1630
+ var nativeSymbol = !!Object.getOwnPropertySymbols && !fails(function () {
1631
+ return !String(Symbol()) ||
1632
+ // Chrome 38 Symbol has incorrect toString conversion
1633
+ // Chrome 38-40 symbols are not inherited from DOM collections prototypes to instances
1634
+ !Symbol.sham && engineV8Version && engineV8Version < 41;
1635
+ });
1636
+
1637
+ /* eslint-disable es/no-symbol -- required for testing */
1638
+
1639
+
1640
+ var useSymbolAsUid = nativeSymbol
1641
+ && !Symbol.sham
1642
+ && typeof Symbol.iterator == 'symbol';
1643
+
1644
+ var WellKnownSymbolsStore = shared('wks');
1645
+ var Symbol$1 = global_1.Symbol;
1646
+ var createWellKnownSymbol = useSymbolAsUid ? Symbol$1 : Symbol$1 && Symbol$1.withoutSetter || uid;
1647
+
1648
+ var wellKnownSymbol = function (name) {
1649
+ if (!has(WellKnownSymbolsStore, name) || !(nativeSymbol || typeof WellKnownSymbolsStore[name] == 'string')) {
1650
+ if (nativeSymbol && has(Symbol$1, name)) {
1651
+ WellKnownSymbolsStore[name] = Symbol$1[name];
1652
+ } else {
1653
+ WellKnownSymbolsStore[name] = createWellKnownSymbol('Symbol.' + name);
1654
+ }
1655
+ } return WellKnownSymbolsStore[name];
1656
+ };
1657
+
1658
+ var SPECIES = wellKnownSymbol('species');
1659
+
1660
+ // `ArraySpeciesCreate` abstract operation
1661
+ // https://tc39.es/ecma262/#sec-arrayspeciescreate
1662
+ var arraySpeciesCreate = function (originalArray, length) {
1663
+ var C;
1664
+ if (isArray(originalArray)) {
1665
+ C = originalArray.constructor;
1666
+ // cross-realm fallback
1667
+ if (typeof C == 'function' && (C === Array || isArray(C.prototype))) C = undefined;
1668
+ else if (isObject(C)) {
1669
+ C = C[SPECIES];
1670
+ if (C === null) C = undefined;
1671
+ }
1672
+ } return new (C === undefined ? Array : C)(length === 0 ? 0 : length);
1673
+ };
1674
+
1675
+ var push = [].push;
1676
+
1677
+ // `Array.prototype.{ forEach, map, filter, some, every, find, findIndex, filterOut }` methods implementation
1678
+ var createMethod$1 = function (TYPE) {
1679
+ var IS_MAP = TYPE == 1;
1680
+ var IS_FILTER = TYPE == 2;
1681
+ var IS_SOME = TYPE == 3;
1682
+ var IS_EVERY = TYPE == 4;
1683
+ var IS_FIND_INDEX = TYPE == 6;
1684
+ var IS_FILTER_OUT = TYPE == 7;
1685
+ var NO_HOLES = TYPE == 5 || IS_FIND_INDEX;
1686
+ return function ($this, callbackfn, that, specificCreate) {
1687
+ var O = toObject($this);
1688
+ var self = indexedObject(O);
1689
+ var boundFunction = functionBindContext(callbackfn, that, 3);
1690
+ var length = toLength(self.length);
1691
+ var index = 0;
1692
+ var create = specificCreate || arraySpeciesCreate;
1693
+ var target = IS_MAP ? create($this, length) : IS_FILTER || IS_FILTER_OUT ? create($this, 0) : undefined;
1694
+ var value, result;
1695
+ for (;length > index; index++) if (NO_HOLES || index in self) {
1696
+ value = self[index];
1697
+ result = boundFunction(value, index, O);
1698
+ if (TYPE) {
1699
+ if (IS_MAP) target[index] = result; // map
1700
+ else if (result) switch (TYPE) {
1701
+ case 3: return true; // some
1702
+ case 5: return value; // find
1703
+ case 6: return index; // findIndex
1704
+ case 2: push.call(target, value); // filter
1705
+ } else switch (TYPE) {
1706
+ case 4: return false; // every
1707
+ case 7: push.call(target, value); // filterOut
1708
+ }
1709
+ }
1710
+ }
1711
+ return IS_FIND_INDEX ? -1 : IS_SOME || IS_EVERY ? IS_EVERY : target;
1712
+ };
1713
+ };
1714
+
1715
+ var arrayIteration = {
1716
+ // `Array.prototype.forEach` method
1717
+ // https://tc39.es/ecma262/#sec-array.prototype.foreach
1718
+ forEach: createMethod$1(0),
1719
+ // `Array.prototype.map` method
1720
+ // https://tc39.es/ecma262/#sec-array.prototype.map
1721
+ map: createMethod$1(1),
1722
+ // `Array.prototype.filter` method
1723
+ // https://tc39.es/ecma262/#sec-array.prototype.filter
1724
+ filter: createMethod$1(2),
1725
+ // `Array.prototype.some` method
1726
+ // https://tc39.es/ecma262/#sec-array.prototype.some
1727
+ some: createMethod$1(3),
1728
+ // `Array.prototype.every` method
1729
+ // https://tc39.es/ecma262/#sec-array.prototype.every
1730
+ every: createMethod$1(4),
1731
+ // `Array.prototype.find` method
1732
+ // https://tc39.es/ecma262/#sec-array.prototype.find
1733
+ find: createMethod$1(5),
1734
+ // `Array.prototype.findIndex` method
1735
+ // https://tc39.es/ecma262/#sec-array.prototype.findIndex
1736
+ findIndex: createMethod$1(6),
1737
+ // `Array.prototype.filterOut` method
1738
+ // https://github.com/tc39/proposal-array-filtering
1739
+ filterOut: createMethod$1(7)
1740
+ };
1741
+
1742
+ // `Object.keys` method
1743
+ // https://tc39.es/ecma262/#sec-object.keys
1744
+ // eslint-disable-next-line es/no-object-keys -- safe
1745
+ var objectKeys = Object.keys || function keys(O) {
1746
+ return objectKeysInternal(O, enumBugKeys);
1747
+ };
1748
+
1749
+ // `Object.defineProperties` method
1750
+ // https://tc39.es/ecma262/#sec-object.defineproperties
1751
+ // eslint-disable-next-line es/no-object-defineproperties -- safe
1752
+ var objectDefineProperties = descriptors ? Object.defineProperties : function defineProperties(O, Properties) {
1753
+ anObject(O);
1754
+ var keys = objectKeys(Properties);
1755
+ var length = keys.length;
1756
+ var index = 0;
1757
+ var key;
1758
+ while (length > index) objectDefineProperty.f(O, key = keys[index++], Properties[key]);
1759
+ return O;
1760
+ };
1761
+
1762
+ var html = getBuiltIn('document', 'documentElement');
1763
+
1764
+ var GT = '>';
1765
+ var LT = '<';
1766
+ var PROTOTYPE = 'prototype';
1767
+ var SCRIPT = 'script';
1768
+ var IE_PROTO = sharedKey('IE_PROTO');
1769
+
1770
+ var EmptyConstructor = function () { /* empty */ };
1771
+
1772
+ var scriptTag = function (content) {
1773
+ return LT + SCRIPT + GT + content + LT + '/' + SCRIPT + GT;
1774
+ };
1775
+
1776
+ // Create object with fake `null` prototype: use ActiveX Object with cleared prototype
1777
+ var NullProtoObjectViaActiveX = function (activeXDocument) {
1778
+ activeXDocument.write(scriptTag(''));
1779
+ activeXDocument.close();
1780
+ var temp = activeXDocument.parentWindow.Object;
1781
+ activeXDocument = null; // avoid memory leak
1782
+ return temp;
1783
+ };
1784
+
1785
+ // Create object with fake `null` prototype: use iframe Object with cleared prototype
1786
+ var NullProtoObjectViaIFrame = function () {
1787
+ // Thrash, waste and sodomy: IE GC bug
1788
+ var iframe = documentCreateElement('iframe');
1789
+ var JS = 'java' + SCRIPT + ':';
1790
+ var iframeDocument;
1791
+ iframe.style.display = 'none';
1792
+ html.appendChild(iframe);
1793
+ // https://github.com/zloirock/core-js/issues/475
1794
+ iframe.src = String(JS);
1795
+ iframeDocument = iframe.contentWindow.document;
1796
+ iframeDocument.open();
1797
+ iframeDocument.write(scriptTag('document.F=Object'));
1798
+ iframeDocument.close();
1799
+ return iframeDocument.F;
1800
+ };
1801
+
1802
+ // Check for document.domain and active x support
1803
+ // No need to use active x approach when document.domain is not set
1804
+ // see https://github.com/es-shims/es5-shim/issues/150
1805
+ // variation of https://github.com/kitcambridge/es5-shim/commit/4f738ac066346
1806
+ // avoid IE GC bug
1807
+ var activeXDocument;
1808
+ var NullProtoObject = function () {
1809
+ try {
1810
+ /* global ActiveXObject -- old IE */
1811
+ activeXDocument = document.domain && new ActiveXObject('htmlfile');
1812
+ } catch (error) { /* ignore */ }
1813
+ NullProtoObject = activeXDocument ? NullProtoObjectViaActiveX(activeXDocument) : NullProtoObjectViaIFrame();
1814
+ var length = enumBugKeys.length;
1815
+ while (length--) delete NullProtoObject[PROTOTYPE][enumBugKeys[length]];
1816
+ return NullProtoObject();
1817
+ };
1818
+
1819
+ hiddenKeys[IE_PROTO] = true;
1820
+
1821
+ // `Object.create` method
1822
+ // https://tc39.es/ecma262/#sec-object.create
1823
+ var objectCreate = Object.create || function create(O, Properties) {
1824
+ var result;
1825
+ if (O !== null) {
1826
+ EmptyConstructor[PROTOTYPE] = anObject(O);
1827
+ result = new EmptyConstructor();
1828
+ EmptyConstructor[PROTOTYPE] = null;
1829
+ // add "__proto__" for Object.getPrototypeOf polyfill
1830
+ result[IE_PROTO] = O;
1831
+ } else result = NullProtoObject();
1832
+ return Properties === undefined ? result : objectDefineProperties(result, Properties);
1833
+ };
1834
+
1835
+ var UNSCOPABLES = wellKnownSymbol('unscopables');
1836
+ var ArrayPrototype = Array.prototype;
1837
+
1838
+ // Array.prototype[@@unscopables]
1839
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1840
+ if (ArrayPrototype[UNSCOPABLES] == undefined) {
1841
+ objectDefineProperty.f(ArrayPrototype, UNSCOPABLES, {
1842
+ configurable: true,
1843
+ value: objectCreate(null)
1844
+ });
1845
+ }
1846
+
1847
+ // add a key to Array.prototype[@@unscopables]
1848
+ var addToUnscopables = function (key) {
1849
+ ArrayPrototype[UNSCOPABLES][key] = true;
1850
+ };
1851
+
1852
+ var $find = arrayIteration.find;
1853
+
1854
+
1855
+ var FIND = 'find';
1856
+ var SKIPS_HOLES = true;
1857
+
1858
+ // Shouldn't skip holes
1859
+ if (FIND in []) Array(1)[FIND](function () { SKIPS_HOLES = false; });
1860
+
1861
+ // `Array.prototype.find` method
1862
+ // https://tc39.es/ecma262/#sec-array.prototype.find
1863
+ _export({ target: 'Array', proto: true, forced: SKIPS_HOLES }, {
1864
+ find: function find(callbackfn /* , that = undefined */) {
1865
+ return $find(this, callbackfn, arguments.length > 1 ? arguments[1] : undefined);
1866
+ }
1867
+ });
1868
+
1869
+ // https://tc39.es/ecma262/#sec-array.prototype-@@unscopables
1870
+ addToUnscopables(FIND);
1871
+
1024
1872
  var _class, _class2, _temp;
1025
1873
 
1026
1874
  var ReactTooltip = staticMethods(_class = windowListener(_class = customEvent(_class = isCapture(_class = getEffect(_class = bodyMode(_class = trackRemoval(_class = (_temp = _class2 =
@@ -1177,6 +2025,7 @@ function (_React$Component) {
1177
2025
  switch (parentNode.constructor.name) {
1178
2026
  case 'Document':
1179
2027
  case 'HTMLDocument':
2028
+ case undefined:
1180
2029
  domRoot = parentNode.head;
1181
2030
  break;
1182
2031