react 16.6.0-alpha.400d197 → 16.6.1
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/cjs/react.development.js +144 -125
- package/cjs/react.production.min.js +15 -15
- package/package.json +2 -2
- package/umd/react.development.js +214 -198
- package/umd/react.production.min.js +24 -24
- package/umd/react.profiling.min.js +28 -29
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -20,7 +20,7 @@ var checkPropTypes = require('prop-types/checkPropTypes');
|
|
|
20
20
|
|
|
21
21
|
// TODO: this is special because it gets imported during build.
|
|
22
22
|
|
|
23
|
-
var ReactVersion = '16.6.
|
|
23
|
+
var ReactVersion = '16.6.1';
|
|
24
24
|
|
|
25
25
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
26
26
|
// nor polyfill, then a plain number is used for performance.
|
|
@@ -33,10 +33,12 @@ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for('react.strict_mode') : 0xeac
|
|
|
33
33
|
var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for('react.profiler') : 0xead2;
|
|
34
34
|
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for('react.provider') : 0xeacd;
|
|
35
35
|
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for('react.context') : 0xeace;
|
|
36
|
+
|
|
36
37
|
var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for('react.concurrent_mode') : 0xeacf;
|
|
37
38
|
var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for('react.forward_ref') : 0xead0;
|
|
38
|
-
var
|
|
39
|
-
var
|
|
39
|
+
var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
40
|
+
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
41
|
+
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
40
42
|
|
|
41
43
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
42
44
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
@@ -52,12 +54,7 @@ function getIteratorFn(maybeIterable) {
|
|
|
52
54
|
return null;
|
|
53
55
|
}
|
|
54
56
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
// Suspense
|
|
59
|
-
var enableSuspense = false;
|
|
60
|
-
var enableHooks_DEPRECATED = false;
|
|
57
|
+
var enableHooks = false;
|
|
61
58
|
// Helps identify side effects in begin-phase lifecycle hooks and setState reducers:
|
|
62
59
|
|
|
63
60
|
|
|
@@ -89,6 +86,11 @@ var enableHooks_DEPRECATED = false;
|
|
|
89
86
|
// React Fire: prevent the value and checked attributes from syncing
|
|
90
87
|
// with their related DOM properties
|
|
91
88
|
|
|
89
|
+
|
|
90
|
+
// These APIs will no longer be "unstable" in the upcoming 16.7 release,
|
|
91
|
+
// Control this behavior with a flag to support 16.6 minor releases in the meanwhile.
|
|
92
|
+
var enableStableConcurrentModeAPIs = false;
|
|
93
|
+
|
|
92
94
|
/**
|
|
93
95
|
* Use invariant() to assert state which your program assumes to be true.
|
|
94
96
|
*
|
|
@@ -213,63 +215,24 @@ var warningWithoutStack = function () {};
|
|
|
213
215
|
return;
|
|
214
216
|
}
|
|
215
217
|
if (typeof console !== 'undefined') {
|
|
216
|
-
var
|
|
218
|
+
var argsWithFormat = args.map(function (item) {
|
|
217
219
|
return '' + item;
|
|
218
|
-
})
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
f = _args$map[5],
|
|
225
|
-
g = _args$map[6],
|
|
226
|
-
h = _args$map[7];
|
|
227
|
-
|
|
228
|
-
var message = 'Warning: ' + format;
|
|
229
|
-
|
|
230
|
-
// We intentionally don't use spread (or .apply) because it breaks IE9:
|
|
231
|
-
// https://github.com/facebook/react/issues/13610
|
|
232
|
-
switch (args.length) {
|
|
233
|
-
case 0:
|
|
234
|
-
console.error(message);
|
|
235
|
-
break;
|
|
236
|
-
case 1:
|
|
237
|
-
console.error(message, a);
|
|
238
|
-
break;
|
|
239
|
-
case 2:
|
|
240
|
-
console.error(message, a, b);
|
|
241
|
-
break;
|
|
242
|
-
case 3:
|
|
243
|
-
console.error(message, a, b, c);
|
|
244
|
-
break;
|
|
245
|
-
case 4:
|
|
246
|
-
console.error(message, a, b, c, d);
|
|
247
|
-
break;
|
|
248
|
-
case 5:
|
|
249
|
-
console.error(message, a, b, c, d, e);
|
|
250
|
-
break;
|
|
251
|
-
case 6:
|
|
252
|
-
console.error(message, a, b, c, d, e, f);
|
|
253
|
-
break;
|
|
254
|
-
case 7:
|
|
255
|
-
console.error(message, a, b, c, d, e, f, g);
|
|
256
|
-
break;
|
|
257
|
-
case 8:
|
|
258
|
-
console.error(message, a, b, c, d, e, f, g, h);
|
|
259
|
-
break;
|
|
260
|
-
default:
|
|
261
|
-
throw new Error('warningWithoutStack() currently supports at most 8 arguments.');
|
|
262
|
-
}
|
|
220
|
+
});
|
|
221
|
+
argsWithFormat.unshift('Warning: ' + format);
|
|
222
|
+
|
|
223
|
+
// We intentionally don't use spread (or .apply) directly because it
|
|
224
|
+
// breaks IE9: https://github.com/facebook/react/issues/13610
|
|
225
|
+
Function.prototype.apply.call(console.error, console, argsWithFormat);
|
|
263
226
|
}
|
|
264
227
|
try {
|
|
265
228
|
// --- Welcome to debugging React ---
|
|
266
229
|
// This error was thrown as a convenience so that you can use this stack
|
|
267
230
|
// to find the callsite that caused this warning to fire.
|
|
268
231
|
var argIndex = 0;
|
|
269
|
-
var
|
|
232
|
+
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
270
233
|
return args[argIndex++];
|
|
271
234
|
});
|
|
272
|
-
throw new Error(
|
|
235
|
+
throw new Error(message);
|
|
273
236
|
} catch (x) {}
|
|
274
237
|
};
|
|
275
238
|
}
|
|
@@ -529,10 +492,13 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
529
492
|
var Resolved = 1;
|
|
530
493
|
|
|
531
494
|
|
|
495
|
+
function refineResolvedLazyComponent(lazyComponent) {
|
|
496
|
+
return lazyComponent._status === Resolved ? lazyComponent._result : null;
|
|
497
|
+
}
|
|
532
498
|
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
return
|
|
499
|
+
function getWrappedName(outerType, innerType, wrapperName) {
|
|
500
|
+
var functionName = innerType.displayName || innerType.name || '';
|
|
501
|
+
return outerType.displayName || (functionName !== '' ? wrapperName + '(' + functionName + ')' : wrapperName);
|
|
536
502
|
}
|
|
537
503
|
|
|
538
504
|
function getComponentName(type) {
|
|
@@ -562,8 +528,8 @@ function getComponentName(type) {
|
|
|
562
528
|
return 'Profiler';
|
|
563
529
|
case REACT_STRICT_MODE_TYPE:
|
|
564
530
|
return 'StrictMode';
|
|
565
|
-
case
|
|
566
|
-
return '
|
|
531
|
+
case REACT_SUSPENSE_TYPE:
|
|
532
|
+
return 'Suspense';
|
|
567
533
|
}
|
|
568
534
|
if (typeof type === 'object') {
|
|
569
535
|
switch (type.$$typeof) {
|
|
@@ -572,16 +538,17 @@ function getComponentName(type) {
|
|
|
572
538
|
case REACT_PROVIDER_TYPE:
|
|
573
539
|
return 'Context.Provider';
|
|
574
540
|
case REACT_FORWARD_REF_TYPE:
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
return type.
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
541
|
+
return getWrappedName(type, type.render, 'ForwardRef');
|
|
542
|
+
case REACT_MEMO_TYPE:
|
|
543
|
+
return getComponentName(type.type);
|
|
544
|
+
case REACT_LAZY_TYPE:
|
|
545
|
+
{
|
|
546
|
+
var thenable = type;
|
|
547
|
+
var resolvedThenable = refineResolvedLazyComponent(thenable);
|
|
548
|
+
if (resolvedThenable) {
|
|
549
|
+
return getComponentName(resolvedThenable);
|
|
550
|
+
}
|
|
551
|
+
}
|
|
585
552
|
}
|
|
586
553
|
}
|
|
587
554
|
return null;
|
|
@@ -1296,12 +1263,6 @@ function onlyChild(children) {
|
|
|
1296
1263
|
return children;
|
|
1297
1264
|
}
|
|
1298
1265
|
|
|
1299
|
-
function readContext(context, observedBits) {
|
|
1300
|
-
var dispatcher = ReactCurrentOwner.currentDispatcher;
|
|
1301
|
-
!(dispatcher !== null) ? invariant(false, 'Context.unstable_read(): Context can only be read while React is rendering, e.g. inside the render method or getDerivedStateFromProps.') : void 0;
|
|
1302
|
-
return dispatcher.readContext(context, observedBits);
|
|
1303
|
-
}
|
|
1304
|
-
|
|
1305
1266
|
function createContext(defaultValue, calculateChangedBits) {
|
|
1306
1267
|
if (calculateChangedBits === undefined) {
|
|
1307
1268
|
calculateChangedBits = null;
|
|
@@ -1323,16 +1284,69 @@ function createContext(defaultValue, calculateChangedBits) {
|
|
|
1323
1284
|
_currentValue2: defaultValue,
|
|
1324
1285
|
// These are circular
|
|
1325
1286
|
Provider: null,
|
|
1326
|
-
Consumer: null
|
|
1327
|
-
unstable_read: null
|
|
1287
|
+
Consumer: null
|
|
1328
1288
|
};
|
|
1329
1289
|
|
|
1330
1290
|
context.Provider = {
|
|
1331
1291
|
$$typeof: REACT_PROVIDER_TYPE,
|
|
1332
1292
|
_context: context
|
|
1333
1293
|
};
|
|
1334
|
-
|
|
1335
|
-
|
|
1294
|
+
|
|
1295
|
+
var hasWarnedAboutUsingNestedContextConsumers = false;
|
|
1296
|
+
var hasWarnedAboutUsingConsumerProvider = false;
|
|
1297
|
+
|
|
1298
|
+
{
|
|
1299
|
+
// A separate object, but proxies back to the original context object for
|
|
1300
|
+
// backwards compatibility. It has a different $$typeof, so we can properly
|
|
1301
|
+
// warn for the incorrect usage of Context as a Consumer.
|
|
1302
|
+
var Consumer = {
|
|
1303
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1304
|
+
_context: context,
|
|
1305
|
+
_calculateChangedBits: context._calculateChangedBits
|
|
1306
|
+
};
|
|
1307
|
+
// $FlowFixMe: Flow complains about not setting a value, which is intentional here
|
|
1308
|
+
Object.defineProperties(Consumer, {
|
|
1309
|
+
Provider: {
|
|
1310
|
+
get: function () {
|
|
1311
|
+
if (!hasWarnedAboutUsingConsumerProvider) {
|
|
1312
|
+
hasWarnedAboutUsingConsumerProvider = true;
|
|
1313
|
+
warning$1(false, 'Rendering <Context.Consumer.Provider> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Provider> instead?');
|
|
1314
|
+
}
|
|
1315
|
+
return context.Provider;
|
|
1316
|
+
},
|
|
1317
|
+
set: function (_Provider) {
|
|
1318
|
+
context.Provider = _Provider;
|
|
1319
|
+
}
|
|
1320
|
+
},
|
|
1321
|
+
_currentValue: {
|
|
1322
|
+
get: function () {
|
|
1323
|
+
return context._currentValue;
|
|
1324
|
+
},
|
|
1325
|
+
set: function (_currentValue) {
|
|
1326
|
+
context._currentValue = _currentValue;
|
|
1327
|
+
}
|
|
1328
|
+
},
|
|
1329
|
+
_currentValue2: {
|
|
1330
|
+
get: function () {
|
|
1331
|
+
return context._currentValue2;
|
|
1332
|
+
},
|
|
1333
|
+
set: function (_currentValue2) {
|
|
1334
|
+
context._currentValue2 = _currentValue2;
|
|
1335
|
+
}
|
|
1336
|
+
},
|
|
1337
|
+
Consumer: {
|
|
1338
|
+
get: function () {
|
|
1339
|
+
if (!hasWarnedAboutUsingNestedContextConsumers) {
|
|
1340
|
+
hasWarnedAboutUsingNestedContextConsumers = true;
|
|
1341
|
+
warning$1(false, 'Rendering <Context.Consumer.Consumer> is not supported and will be removed in ' + 'a future major release. Did you mean to render <Context.Consumer> instead?');
|
|
1342
|
+
}
|
|
1343
|
+
return context.Consumer;
|
|
1344
|
+
}
|
|
1345
|
+
}
|
|
1346
|
+
});
|
|
1347
|
+
// $FlowFixMe: Flow complains about missing properties because it doesn't understand defineProperty
|
|
1348
|
+
context.Consumer = Consumer;
|
|
1349
|
+
}
|
|
1336
1350
|
|
|
1337
1351
|
{
|
|
1338
1352
|
context._currentRenderer = null;
|
|
@@ -1343,26 +1357,20 @@ function createContext(defaultValue, calculateChangedBits) {
|
|
|
1343
1357
|
}
|
|
1344
1358
|
|
|
1345
1359
|
function lazy(ctor) {
|
|
1346
|
-
var thenable = null;
|
|
1347
1360
|
return {
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
// Lazily create thenable by wrapping in an extra thenable.
|
|
1351
|
-
thenable = ctor();
|
|
1352
|
-
ctor = null;
|
|
1353
|
-
}
|
|
1354
|
-
return thenable.then(resolve, reject);
|
|
1355
|
-
},
|
|
1356
|
-
|
|
1361
|
+
$$typeof: REACT_LAZY_TYPE,
|
|
1362
|
+
_ctor: ctor,
|
|
1357
1363
|
// React uses these fields to store the result.
|
|
1358
|
-
|
|
1359
|
-
|
|
1364
|
+
_status: -1,
|
|
1365
|
+
_result: null
|
|
1360
1366
|
};
|
|
1361
1367
|
}
|
|
1362
1368
|
|
|
1363
1369
|
function forwardRef(render) {
|
|
1364
1370
|
{
|
|
1365
|
-
if (
|
|
1371
|
+
if (render != null && render.$$typeof === REACT_MEMO_TYPE) {
|
|
1372
|
+
warningWithoutStack$1(false, 'forwardRef requires a render function but received a `memo` ' + 'component. Instead of forwardRef(memo(...)), use ' + 'memo(forwardRef(...)).');
|
|
1373
|
+
} else if (typeof render !== 'function') {
|
|
1366
1374
|
warningWithoutStack$1(false, 'forwardRef requires a render function but was given %s.', render === null ? 'null' : typeof render);
|
|
1367
1375
|
} else {
|
|
1368
1376
|
!(
|
|
@@ -1381,33 +1389,47 @@ function forwardRef(render) {
|
|
|
1381
1389
|
};
|
|
1382
1390
|
}
|
|
1383
1391
|
|
|
1384
|
-
function
|
|
1392
|
+
function isValidElementType(type) {
|
|
1393
|
+
return typeof type === 'string' || typeof type === 'function' ||
|
|
1394
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1395
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
function memo(type, compare) {
|
|
1385
1399
|
{
|
|
1386
|
-
if (
|
|
1387
|
-
warningWithoutStack$1(false, '
|
|
1388
|
-
} else {
|
|
1389
|
-
var prototype = render.prototype;
|
|
1390
|
-
if (prototype && prototype.isReactComponent) {
|
|
1391
|
-
warningWithoutStack$1(false, 'pure: The first argument must be a function component. Classes ' + 'are not supported. Use React.PureComponent instead.');
|
|
1392
|
-
}
|
|
1400
|
+
if (!isValidElementType(type)) {
|
|
1401
|
+
warningWithoutStack$1(false, 'memo: The first argument must be a component. Instead ' + 'received: %s', type === null ? 'null' : typeof type);
|
|
1393
1402
|
}
|
|
1394
1403
|
}
|
|
1395
1404
|
return {
|
|
1396
|
-
$$typeof:
|
|
1397
|
-
|
|
1405
|
+
$$typeof: REACT_MEMO_TYPE,
|
|
1406
|
+
type: type,
|
|
1398
1407
|
compare: compare === undefined ? null : compare
|
|
1399
1408
|
};
|
|
1400
1409
|
}
|
|
1401
1410
|
|
|
1402
1411
|
function resolveDispatcher() {
|
|
1403
1412
|
var dispatcher = ReactCurrentOwner.currentDispatcher;
|
|
1404
|
-
!(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a
|
|
1413
|
+
!(dispatcher !== null) ? invariant(false, 'Hooks can only be called inside the body of a function component.') : void 0;
|
|
1405
1414
|
return dispatcher;
|
|
1406
1415
|
}
|
|
1407
1416
|
|
|
1408
|
-
function useContext(
|
|
1417
|
+
function useContext(Context, observedBits) {
|
|
1409
1418
|
var dispatcher = resolveDispatcher();
|
|
1410
|
-
|
|
1419
|
+
{
|
|
1420
|
+
// TODO: add a more generic warning for invalid values.
|
|
1421
|
+
if (Context._context !== undefined) {
|
|
1422
|
+
var realContext = Context._context;
|
|
1423
|
+
// Don't deduplicate because this legitimately causes bugs
|
|
1424
|
+
// and nobody should be using this in existing code.
|
|
1425
|
+
if (realContext.Consumer === Context) {
|
|
1426
|
+
warning$1(false, 'Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be ' + 'removed in a future major release. Did you mean to call useContext(Context) instead?');
|
|
1427
|
+
} else if (realContext.Provider === Context) {
|
|
1428
|
+
warning$1(false, 'Calling useContext(Context.Provider) is not supported. ' + 'Did you mean to call useContext(Context) instead?');
|
|
1429
|
+
}
|
|
1430
|
+
}
|
|
1431
|
+
}
|
|
1432
|
+
return dispatcher.useContext(Context, observedBits);
|
|
1411
1433
|
}
|
|
1412
1434
|
|
|
1413
1435
|
function useState(initialState) {
|
|
@@ -1450,15 +1472,9 @@ function useMemo(create, inputs) {
|
|
|
1450
1472
|
return dispatcher.useMemo(create, inputs);
|
|
1451
1473
|
}
|
|
1452
1474
|
|
|
1453
|
-
function
|
|
1475
|
+
function useImperativeMethods(ref, create, inputs) {
|
|
1454
1476
|
var dispatcher = resolveDispatcher();
|
|
1455
|
-
return dispatcher.
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
function isValidElementType(type) {
|
|
1459
|
-
return typeof type === 'string' || typeof type === 'function' ||
|
|
1460
|
-
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1461
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_PLACEHOLDER_TYPE || typeof type === 'object' && type !== null && (typeof type.then === 'function' || type.$$typeof === REACT_PURE_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE);
|
|
1477
|
+
return dispatcher.useImperativeMethods(ref, create, inputs);
|
|
1462
1478
|
}
|
|
1463
1479
|
|
|
1464
1480
|
/**
|
|
@@ -1758,12 +1774,12 @@ var React = {
|
|
|
1758
1774
|
|
|
1759
1775
|
createContext: createContext,
|
|
1760
1776
|
forwardRef: forwardRef,
|
|
1761
|
-
|
|
1777
|
+
lazy: lazy,
|
|
1778
|
+
memo: memo,
|
|
1762
1779
|
|
|
1763
1780
|
Fragment: REACT_FRAGMENT_TYPE,
|
|
1764
1781
|
StrictMode: REACT_STRICT_MODE_TYPE,
|
|
1765
|
-
|
|
1766
|
-
unstable_Profiler: REACT_PROFILER_TYPE,
|
|
1782
|
+
Suspense: REACT_SUSPENSE_TYPE,
|
|
1767
1783
|
|
|
1768
1784
|
createElement: createElementWithValidation,
|
|
1769
1785
|
cloneElement: cloneElementWithValidation,
|
|
@@ -1775,16 +1791,19 @@ var React = {
|
|
|
1775
1791
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: ReactSharedInternals
|
|
1776
1792
|
};
|
|
1777
1793
|
|
|
1778
|
-
if (
|
|
1779
|
-
React.
|
|
1780
|
-
React.
|
|
1794
|
+
if (enableStableConcurrentModeAPIs) {
|
|
1795
|
+
React.ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1796
|
+
React.Profiler = REACT_PROFILER_TYPE;
|
|
1797
|
+
} else {
|
|
1798
|
+
React.unstable_ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
1799
|
+
React.unstable_Profiler = REACT_PROFILER_TYPE;
|
|
1781
1800
|
}
|
|
1782
1801
|
|
|
1783
|
-
if (
|
|
1784
|
-
React.useAPI = useAPI;
|
|
1802
|
+
if (enableHooks) {
|
|
1785
1803
|
React.useCallback = useCallback;
|
|
1786
1804
|
React.useContext = useContext;
|
|
1787
1805
|
React.useEffect = useEffect;
|
|
1806
|
+
React.useImperativeMethods = useImperativeMethods;
|
|
1788
1807
|
React.useLayoutEffect = useLayoutEffect;
|
|
1789
1808
|
React.useMemo = useMemo;
|
|
1790
1809
|
React.useMutationEffect = useMutationEffect;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.6.
|
|
1
|
+
/** @license React v16.6.1
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
@@ -7,18 +7,18 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var k=require("object-assign"),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.concurrent_mode"):60111,y=n?Symbol.for("react.forward_ref"):60112
|
|
11
|
-
|
|
12
|
-
function
|
|
13
|
-
function
|
|
14
|
-
|
|
15
|
-
function
|
|
16
|
-
function
|
|
10
|
+
'use strict';var k=require("object-assign"),n="function"===typeof Symbol&&Symbol.for,p=n?Symbol.for("react.element"):60103,q=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,t=n?Symbol.for("react.strict_mode"):60108,u=n?Symbol.for("react.profiler"):60114,v=n?Symbol.for("react.provider"):60109,w=n?Symbol.for("react.context"):60110,x=n?Symbol.for("react.concurrent_mode"):60111,y=n?Symbol.for("react.forward_ref"):60112,z=n?Symbol.for("react.suspense"):60113,A=n?Symbol.for("react.memo"):
|
|
11
|
+
60115,B=n?Symbol.for("react.lazy"):60116,C="function"===typeof Symbol&&Symbol.iterator;function aa(a,b,e,c,d,g,h,f){if(!a){a=void 0;if(void 0===b)a=Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var l=[e,c,d,g,h,f],m=0;a=Error(b.replace(/%s/g,function(){return l[m++]}));a.name="Invariant Violation"}a.framesToPop=1;throw a;}}
|
|
12
|
+
function D(a){for(var b=arguments.length-1,e="https://reactjs.org/docs/error-decoder.html?invariant="+a,c=0;c<b;c++)e+="&args[]="+encodeURIComponent(arguments[c+1]);aa(!1,"Minified React error #"+a+"; visit %s for the full message or use the non-minified dev environment for full errors and additional helpful warnings. ",e)}var E={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},F={};
|
|
13
|
+
function G(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}G.prototype.isReactComponent={};G.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?D("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};G.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function H(){}H.prototype=G.prototype;function I(a,b,e){this.props=a;this.context=b;this.refs=F;this.updater=e||E}var J=I.prototype=new H;
|
|
14
|
+
J.constructor=I;k(J,G.prototype);J.isPureReactComponent=!0;var K={current:null,currentDispatcher:null},L=Object.prototype.hasOwnProperty,M={key:!0,ref:!0,__self:!0,__source:!0};
|
|
15
|
+
function N(a,b,e){var c=void 0,d={},g=null,h=null;if(null!=b)for(c in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(g=""+b.key),b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var l=Array(f),m=0;m<f;m++)l[m]=arguments[m+2];d.children=l}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:p,type:a,key:g,ref:h,props:d,_owner:K.current}}
|
|
16
|
+
function ba(a,b){return{$$typeof:p,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}}function O(a){return"object"===typeof a&&null!==a&&a.$$typeof===p}function escape(a){var b={"=":"=0",":":"=2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var P=/\/+/g,Q=[];function R(a,b,e,c){if(Q.length){var d=Q.pop();d.result=a;d.keyPrefix=b;d.func=e;d.context=c;d.count=0;return d}return{result:a,keyPrefix:b,func:e,context:c,count:0}}
|
|
17
17
|
function S(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>Q.length&&Q.push(a)}
|
|
18
|
-
function T(a,b,
|
|
19
|
-
0;!(
|
|
20
|
-
function
|
|
21
|
-
var X={Children:{map:function(a,b,
|
|
22
|
-
_currentValue:a,_currentValue2:a,Provider:null,Consumer:null
|
|
23
|
-
|
|
24
|
-
|
|
18
|
+
function T(a,b,e,c){var d=typeof a;if("undefined"===d||"boolean"===d)a=null;var g=!1;if(null===a)g=!0;else switch(d){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case p:case q:g=!0}}if(g)return e(c,a,""===b?"."+U(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var h=0;h<a.length;h++){d=a[h];var f=b+U(d,h);g+=T(d,f,e,c)}else if(null===a||"object"!==typeof a?f=null:(f=C&&a[C]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),h=
|
|
19
|
+
0;!(d=a.next()).done;)d=d.value,f=b+U(d,h++),g+=T(d,f,e,c);else"object"===d&&(e=""+a,D("31","[object Object]"===e?"object with keys {"+Object.keys(a).join(", ")+"}":e,""));return g}function V(a,b,e){return null==a?0:T(a,"",b,e)}function U(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function ca(a,b){a.func.call(a.context,b,a.count++)}
|
|
20
|
+
function da(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?W(a,c,e,function(a){return a}):null!=a&&(O(a)&&(a=ba(a,d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(P,"$&/")+"/")+e)),c.push(a))}function W(a,b,e,c,d){var g="";null!=e&&(g=(""+e).replace(P,"$&/")+"/");b=R(b,g,c,d);V(a,da,b);S(b)}
|
|
21
|
+
var X={Children:{map:function(a,b,e){if(null==a)return a;var c=[];W(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=R(null,null,b,e);V(a,ca,b);S(b)},count:function(a){return V(a,function(){return null},null)},toArray:function(a){var b=[];W(a,b,null,function(a){return a});return b},only:function(a){O(a)?void 0:D("143");return a}},createRef:function(){return{current:null}},Component:G,PureComponent:I,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:w,_calculateChangedBits:b,
|
|
22
|
+
_currentValue:a,_currentValue2:a,Provider:null,Consumer:null};a.Provider={$$typeof:v,_context:a};return a.Consumer=a},forwardRef:function(a){return{$$typeof:y,render:a}},lazy:function(a){return{$$typeof:B,_ctor:a,_status:-1,_result:null}},memo:function(a,b){return{$$typeof:A,type:a,compare:void 0===b?null:b}},Fragment:r,StrictMode:t,Suspense:z,createElement:N,cloneElement:function(a,b,e){null===a||void 0===a?D("267",a):void 0;var c=void 0,d=k({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=b){void 0!==
|
|
23
|
+
b.ref&&(h=b.ref,f=K.current);void 0!==b.key&&(g=""+b.key);var l=void 0;a.type&&a.type.defaultProps&&(l=a.type.defaultProps);for(c in b)L.call(b,c)&&!M.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==l?l[c]:b[c])}c=arguments.length-2;if(1===c)d.children=e;else if(1<c){l=Array(c);for(var m=0;m<c;m++)l[m]=arguments[m+2];d.children=l}return{$$typeof:p,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=N.bind(null,a);b.type=a;return b},isValidElement:O,version:"16.6.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:K,
|
|
24
|
+
assign:k}};X.unstable_ConcurrentMode=x;X.unstable_Profiler=u;var Y={default:X},Z=Y&&X||Y;module.exports=Z.default||Z;
|