react 16.2.0 → 16.3.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cjs/react.development.js +99 -53
- package/cjs/react.production.min.js +12 -12
- package/package.json +1 -1
- package/umd/react.development.js +99 -53
- package/umd/react.production.min.js +14 -14
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.3.0-alpha.0
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -24,7 +24,7 @@ var checkPropTypes = require('prop-types/checkPropTypes');
|
|
|
24
24
|
|
|
25
25
|
// TODO: this is special because it gets imported during build.
|
|
26
26
|
|
|
27
|
-
var ReactVersion = '16.
|
|
27
|
+
var ReactVersion = '16.3.0-alpha.0';
|
|
28
28
|
|
|
29
29
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
30
30
|
// nor polyfill, then a plain number is used for performance.
|
|
@@ -35,6 +35,10 @@ var REACT_CALL_TYPE = hasSymbol ? Symbol['for']('react.call') : 0xeac8;
|
|
|
35
35
|
var REACT_RETURN_TYPE = hasSymbol ? Symbol['for']('react.return') : 0xeac9;
|
|
36
36
|
var REACT_PORTAL_TYPE = hasSymbol ? Symbol['for']('react.portal') : 0xeaca;
|
|
37
37
|
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;
|
|
38
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol['for']('react.strict_mode') : 0xeacc;
|
|
39
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol['for']('react.provider') : 0xeacd;
|
|
40
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol['for']('react.context') : 0xeace;
|
|
41
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol['for']('react.async_mode') : 0xeacf;
|
|
38
42
|
|
|
39
43
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
40
44
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
@@ -114,8 +118,8 @@ var didWarnStateUpdateForUnmountedComponent = {};
|
|
|
114
118
|
|
|
115
119
|
function warnNoop(publicInstance, callerName) {
|
|
116
120
|
{
|
|
117
|
-
var
|
|
118
|
-
var componentName =
|
|
121
|
+
var _constructor = publicInstance.constructor;
|
|
122
|
+
var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
|
|
119
123
|
var warningKey = componentName + '.' + callerName;
|
|
120
124
|
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
121
125
|
return;
|
|
@@ -280,46 +284,25 @@ Component.prototype.forceUpdate = function (callback) {
|
|
|
280
284
|
}
|
|
281
285
|
}
|
|
282
286
|
|
|
287
|
+
function ComponentDummy() {}
|
|
288
|
+
ComponentDummy.prototype = Component.prototype;
|
|
289
|
+
|
|
283
290
|
/**
|
|
284
|
-
*
|
|
291
|
+
* Convenience component with default shallow equality check for sCU.
|
|
285
292
|
*/
|
|
286
293
|
function PureComponent(props, context, updater) {
|
|
287
|
-
// Duplicated from Component.
|
|
288
294
|
this.props = props;
|
|
289
295
|
this.context = context;
|
|
290
296
|
this.refs = emptyObject;
|
|
291
|
-
// We initialize the default updater but the real one gets injected by the
|
|
292
|
-
// renderer.
|
|
293
297
|
this.updater = updater || ReactNoopUpdateQueue;
|
|
294
298
|
}
|
|
295
299
|
|
|
296
|
-
function ComponentDummy() {}
|
|
297
|
-
ComponentDummy.prototype = Component.prototype;
|
|
298
300
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
299
301
|
pureComponentPrototype.constructor = PureComponent;
|
|
300
302
|
// Avoid an extra prototype jump for these methods.
|
|
301
303
|
_assign(pureComponentPrototype, Component.prototype);
|
|
302
304
|
pureComponentPrototype.isPureReactComponent = true;
|
|
303
305
|
|
|
304
|
-
function AsyncComponent(props, context, updater) {
|
|
305
|
-
// Duplicated from Component.
|
|
306
|
-
this.props = props;
|
|
307
|
-
this.context = context;
|
|
308
|
-
this.refs = emptyObject;
|
|
309
|
-
// We initialize the default updater but the real one gets injected by the
|
|
310
|
-
// renderer.
|
|
311
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
var asyncComponentPrototype = AsyncComponent.prototype = new ComponentDummy();
|
|
315
|
-
asyncComponentPrototype.constructor = AsyncComponent;
|
|
316
|
-
// Avoid an extra prototype jump for these methods.
|
|
317
|
-
_assign(asyncComponentPrototype, Component.prototype);
|
|
318
|
-
asyncComponentPrototype.unstable_isAsyncReactComponent = true;
|
|
319
|
-
asyncComponentPrototype.render = function () {
|
|
320
|
-
return this.props.children;
|
|
321
|
-
};
|
|
322
|
-
|
|
323
306
|
/**
|
|
324
307
|
* Keeps track of the current owner.
|
|
325
308
|
*
|
|
@@ -343,8 +326,8 @@ var RESERVED_PROPS = {
|
|
|
343
326
|
__source: true
|
|
344
327
|
};
|
|
345
328
|
|
|
346
|
-
var specialPropKeyWarningShown;
|
|
347
|
-
var specialPropRefWarningShown;
|
|
329
|
+
var specialPropKeyWarningShown = void 0;
|
|
330
|
+
var specialPropRefWarningShown = void 0;
|
|
348
331
|
|
|
349
332
|
function hasValidRef(config) {
|
|
350
333
|
{
|
|
@@ -479,7 +462,7 @@ var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
|
479
462
|
* See https://reactjs.org/docs/react-api.html#createelement
|
|
480
463
|
*/
|
|
481
464
|
function createElement(type, config, children) {
|
|
482
|
-
var propName;
|
|
465
|
+
var propName = void 0;
|
|
483
466
|
|
|
484
467
|
// Reserved names are extracted
|
|
485
468
|
var props = {};
|
|
@@ -567,7 +550,7 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
|
|
567
550
|
* See https://reactjs.org/docs/react-api.html#cloneelement
|
|
568
551
|
*/
|
|
569
552
|
function cloneElement(element, config, children) {
|
|
570
|
-
var propName;
|
|
553
|
+
var propName = void 0;
|
|
571
554
|
|
|
572
555
|
// Original props are copied
|
|
573
556
|
var props = _assign({}, element.props);
|
|
@@ -596,7 +579,7 @@ function cloneElement(element, config, children) {
|
|
|
596
579
|
}
|
|
597
580
|
|
|
598
581
|
// Remaining properties override existing props
|
|
599
|
-
var defaultProps;
|
|
582
|
+
var defaultProps = void 0;
|
|
600
583
|
if (element.type && element.type.defaultProps) {
|
|
601
584
|
defaultProps = element.type.defaultProps;
|
|
602
585
|
}
|
|
@@ -750,8 +733,6 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
750
733
|
case 'object':
|
|
751
734
|
switch (children.$$typeof) {
|
|
752
735
|
case REACT_ELEMENT_TYPE:
|
|
753
|
-
case REACT_CALL_TYPE:
|
|
754
|
-
case REACT_RETURN_TYPE:
|
|
755
736
|
case REACT_PORTAL_TYPE:
|
|
756
737
|
invokeCallback = true;
|
|
757
738
|
}
|
|
@@ -766,8 +747,8 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
766
747
|
return 1;
|
|
767
748
|
}
|
|
768
749
|
|
|
769
|
-
var child;
|
|
770
|
-
var nextName;
|
|
750
|
+
var child = void 0;
|
|
751
|
+
var nextName = void 0;
|
|
771
752
|
var subtreeCount = 0; // Count of children found in the current subtree.
|
|
772
753
|
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
773
754
|
|
|
@@ -789,7 +770,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
789
770
|
}
|
|
790
771
|
|
|
791
772
|
var iterator = iteratorFn.call(children);
|
|
792
|
-
var step;
|
|
773
|
+
var step = void 0;
|
|
793
774
|
var ii = 0;
|
|
794
775
|
while (!(step = iterator.next()).done) {
|
|
795
776
|
child = step.value;
|
|
@@ -976,6 +957,39 @@ function onlyChild(children) {
|
|
|
976
957
|
return children;
|
|
977
958
|
}
|
|
978
959
|
|
|
960
|
+
function createContext(defaultValue, calculateChangedBits) {
|
|
961
|
+
if (calculateChangedBits === undefined) {
|
|
962
|
+
calculateChangedBits = null;
|
|
963
|
+
} else {
|
|
964
|
+
{
|
|
965
|
+
warning(calculateChangedBits === null || typeof calculateChangedBits === 'function', 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
|
|
969
|
+
var context = {
|
|
970
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
971
|
+
calculateChangedBits: calculateChangedBits,
|
|
972
|
+
defaultValue: defaultValue,
|
|
973
|
+
currentValue: defaultValue,
|
|
974
|
+
changedBits: 0,
|
|
975
|
+
// These are circular
|
|
976
|
+
Provider: null,
|
|
977
|
+
Consumer: null
|
|
978
|
+
};
|
|
979
|
+
|
|
980
|
+
context.Provider = {
|
|
981
|
+
$$typeof: REACT_PROVIDER_TYPE,
|
|
982
|
+
context: context
|
|
983
|
+
};
|
|
984
|
+
context.Consumer = context;
|
|
985
|
+
|
|
986
|
+
{
|
|
987
|
+
context._currentRenderer = null;
|
|
988
|
+
}
|
|
989
|
+
|
|
990
|
+
return context;
|
|
991
|
+
}
|
|
992
|
+
|
|
979
993
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
980
994
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
981
995
|
};
|
|
@@ -983,11 +997,21 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
983
997
|
function getComponentName(fiber) {
|
|
984
998
|
var type = fiber.type;
|
|
985
999
|
|
|
1000
|
+
if (typeof type === 'function') {
|
|
1001
|
+
return type.displayName || type.name;
|
|
1002
|
+
}
|
|
986
1003
|
if (typeof type === 'string') {
|
|
987
1004
|
return type;
|
|
988
1005
|
}
|
|
989
|
-
|
|
990
|
-
|
|
1006
|
+
switch (type) {
|
|
1007
|
+
case REACT_FRAGMENT_TYPE:
|
|
1008
|
+
return 'ReactFragment';
|
|
1009
|
+
case REACT_PORTAL_TYPE:
|
|
1010
|
+
return 'ReactPortal';
|
|
1011
|
+
case REACT_CALL_TYPE:
|
|
1012
|
+
return 'ReactCall';
|
|
1013
|
+
case REACT_RETURN_TYPE:
|
|
1014
|
+
return 'ReactReturn';
|
|
991
1015
|
}
|
|
992
1016
|
return null;
|
|
993
1017
|
}
|
|
@@ -999,12 +1023,20 @@ function getComponentName(fiber) {
|
|
|
999
1023
|
* that support it.
|
|
1000
1024
|
*/
|
|
1001
1025
|
|
|
1026
|
+
var currentlyValidatingElement = void 0;
|
|
1027
|
+
var propTypesMisspellWarningShown = void 0;
|
|
1028
|
+
|
|
1029
|
+
var getDisplayName = function () {};
|
|
1030
|
+
var getStackAddendum = function () {};
|
|
1031
|
+
|
|
1032
|
+
var VALID_FRAGMENT_PROPS = void 0;
|
|
1033
|
+
|
|
1002
1034
|
{
|
|
1003
|
-
|
|
1035
|
+
currentlyValidatingElement = null;
|
|
1004
1036
|
|
|
1005
|
-
|
|
1037
|
+
propTypesMisspellWarningShown = false;
|
|
1006
1038
|
|
|
1007
|
-
|
|
1039
|
+
getDisplayName = function (element) {
|
|
1008
1040
|
if (element == null) {
|
|
1009
1041
|
return '#empty';
|
|
1010
1042
|
} else if (typeof element === 'string' || typeof element === 'number') {
|
|
@@ -1018,7 +1050,7 @@ function getComponentName(fiber) {
|
|
|
1018
1050
|
}
|
|
1019
1051
|
};
|
|
1020
1052
|
|
|
1021
|
-
|
|
1053
|
+
getStackAddendum = function () {
|
|
1022
1054
|
var stack = '';
|
|
1023
1055
|
if (currentlyValidatingElement) {
|
|
1024
1056
|
var name = getDisplayName(currentlyValidatingElement);
|
|
@@ -1029,7 +1061,7 @@ function getComponentName(fiber) {
|
|
|
1029
1061
|
return stack;
|
|
1030
1062
|
};
|
|
1031
1063
|
|
|
1032
|
-
|
|
1064
|
+
VALID_FRAGMENT_PROPS = new Map([['children', true], ['key', true]]);
|
|
1033
1065
|
}
|
|
1034
1066
|
|
|
1035
1067
|
function getDeclarationErrorAddendum() {
|
|
@@ -1142,7 +1174,7 @@ function validateChildKeys(node, parentType) {
|
|
|
1142
1174
|
// but now we print a separate warning for them later.
|
|
1143
1175
|
if (iteratorFn !== node.entries) {
|
|
1144
1176
|
var iterator = iteratorFn.call(node);
|
|
1145
|
-
var step;
|
|
1177
|
+
var step = void 0;
|
|
1146
1178
|
while (!(step = iterator.next()).done) {
|
|
1147
1179
|
if (isValidElement(step.value)) {
|
|
1148
1180
|
validateExplicitKey(step.value, parentType);
|
|
@@ -1222,7 +1254,10 @@ function validateFragmentProps(fragment) {
|
|
|
1222
1254
|
}
|
|
1223
1255
|
|
|
1224
1256
|
function createElementWithValidation(type, props, children) {
|
|
1225
|
-
var validType = typeof type === 'string' || typeof type === 'function' ||
|
|
1257
|
+
var validType = typeof type === 'string' || typeof type === 'function' ||
|
|
1258
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1259
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE);
|
|
1260
|
+
|
|
1226
1261
|
// We warn in this case but don't throw. We expect the element creation to
|
|
1227
1262
|
// succeed and there will likely be errors in render.
|
|
1228
1263
|
if (!validType) {
|
|
@@ -1240,7 +1275,16 @@ function createElementWithValidation(type, props, children) {
|
|
|
1240
1275
|
|
|
1241
1276
|
info += getStackAddendum() || '';
|
|
1242
1277
|
|
|
1243
|
-
|
|
1278
|
+
var typeString = void 0;
|
|
1279
|
+
if (type === null) {
|
|
1280
|
+
typeString = 'null';
|
|
1281
|
+
} else if (Array.isArray(type)) {
|
|
1282
|
+
typeString = 'array';
|
|
1283
|
+
} else {
|
|
1284
|
+
typeString = typeof type;
|
|
1285
|
+
}
|
|
1286
|
+
|
|
1287
|
+
warning(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
|
1244
1288
|
}
|
|
1245
1289
|
|
|
1246
1290
|
var element = createElement.apply(this, arguments);
|
|
@@ -1262,7 +1306,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1262
1306
|
}
|
|
1263
1307
|
}
|
|
1264
1308
|
|
|
1265
|
-
if (
|
|
1309
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
1266
1310
|
validateFragmentProps(element);
|
|
1267
1311
|
} else {
|
|
1268
1312
|
validatePropTypes(element);
|
|
@@ -1273,9 +1317,8 @@ function createElementWithValidation(type, props, children) {
|
|
|
1273
1317
|
|
|
1274
1318
|
function createFactoryWithValidation(type) {
|
|
1275
1319
|
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
1276
|
-
// Legacy hook TODO: Warn if this is accessed
|
|
1277
1320
|
validatedFactory.type = type;
|
|
1278
|
-
|
|
1321
|
+
// Legacy hook: remove it
|
|
1279
1322
|
{
|
|
1280
1323
|
Object.defineProperty(validatedFactory, 'type', {
|
|
1281
1324
|
enumerable: false,
|
|
@@ -1312,9 +1355,12 @@ var React = {
|
|
|
1312
1355
|
|
|
1313
1356
|
Component: Component,
|
|
1314
1357
|
PureComponent: PureComponent,
|
|
1315
|
-
|
|
1358
|
+
|
|
1359
|
+
createContext: createContext,
|
|
1316
1360
|
|
|
1317
1361
|
Fragment: REACT_FRAGMENT_TYPE,
|
|
1362
|
+
StrictMode: REACT_STRICT_MODE_TYPE,
|
|
1363
|
+
unstable_AsyncMode: REACT_ASYNC_MODE_TYPE,
|
|
1318
1364
|
|
|
1319
1365
|
createElement: createElementWithValidation,
|
|
1320
1366
|
cloneElement: cloneElementWithValidation,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.3.0-alpha.0
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -7,15 +7,15 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
'use strict';var m=require("object-assign"),n=require("fbjs/lib/emptyObject"),p=require("fbjs/lib/emptyFunction"),q="function"===typeof Symbol&&Symbol["for"],r=q?Symbol["for"]("react.element"):60103,t=q?Symbol["for"]("react.
|
|
11
|
-
function
|
|
12
|
-
var
|
|
13
|
-
|
|
14
|
-
function J(a,b,e){var c,d={},g=null,
|
|
15
|
-
function escape(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var L=/\/+/g,M=[];function N(a,b,e,c){if(M.length){var d=M.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}}function O(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>M.length&&M.push(a)}
|
|
16
|
-
function P(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 r:case t:
|
|
17
|
-
|
|
10
|
+
'use strict';var m=require("object-assign"),n=require("fbjs/lib/emptyObject"),p=require("fbjs/lib/emptyFunction"),q="function"===typeof Symbol&&Symbol["for"],r=q?Symbol["for"]("react.element"):60103,t=q?Symbol["for"]("react.portal"):60106,u=q?Symbol["for"]("react.fragment"):60107,v=q?Symbol["for"]("react.strict_mode"):60108,w=q?Symbol["for"]("react.provider"):60109,x=q?Symbol["for"]("react.context"):60110,y=q?Symbol["for"]("react.async_mode"):60111,z="function"===typeof Symbol&&Symbol.iterator;
|
|
11
|
+
function A(a){for(var b=arguments.length-1,e="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,c=0;c<b;c++)e+="\x26args[]\x3d"+encodeURIComponent(arguments[c+1]);b=Error(e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");b.name="Invariant Violation";b.framesToPop=1;throw b;}
|
|
12
|
+
var B={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function C(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||B}C.prototype.isReactComponent={};C.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?A("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};C.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};function D(){}
|
|
13
|
+
D.prototype=C.prototype;function E(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||B}var F=E.prototype=new D;F.constructor=E;m(F,C.prototype);F.isPureReactComponent=!0;var G={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0};
|
|
14
|
+
function J(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)H.call(b,c)&&!I.hasOwnProperty(c)&&(d[c]=b[c]);var f=arguments.length-2;if(1===f)d.children=e;else if(1<f){for(var k=Array(f),l=0;l<f;l++)k[l]=arguments[l+2];d.children=k}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===d[c]&&(d[c]=f[c]);return{$$typeof:r,type:a,key:g,ref:h,props:d,_owner:G.current}}
|
|
15
|
+
function K(a){return"object"===typeof a&&null!==a&&a.$$typeof===r}function escape(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var L=/\/+/g,M=[];function N(a,b,e,c){if(M.length){var d=M.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}}function O(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>M.length&&M.push(a)}
|
|
16
|
+
function P(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 r:case t:g=!0}}if(g)return e(c,a,""===b?"."+Q(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+Q(d,h);g+=P(d,f,e,c)}else if(null===a||"undefined"===typeof a?f=null:(f=z&&a[z]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),
|
|
17
|
+
h=0;!(d=a.next()).done;)d=d.value,f=b+Q(d,h++),g+=P(d,f,e,c);else"object"===d&&(e=""+a,A("31","[object Object]"===e?"object with keys {"+Object.keys(a).join(", ")+"}":e,""));return g}function Q(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function R(a,b){a.func.call(a.context,b,a.count++)}
|
|
18
18
|
function S(a,b,e){var c=a.result,d=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?T(a,c,e,p.thatReturnsArgument):null!=a&&(K(a)&&(b=d+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(L,"$\x26/")+"/")+e,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),c.push(a))}function T(a,b,e,c,d){var g="";null!=e&&(g=(""+e).replace(L,"$\x26/")+"/");b=N(b,g,c,d);null==a||P(a,"",S,b);O(b)}
|
|
19
|
-
var U={Children:{map:function(a,b,e){if(null==a)return a;var c=[];T(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=N(null,null,b,e);null==a||P(a,"",R,b);O(b)},count:function(a){return null==a?0:P(a,"",p.thatReturnsNull,null)},toArray:function(a){var b=[];T(a,b,null,p.thatReturnsArgument);return b},only:function(a){K(a)?void 0:
|
|
20
|
-
d=a.
|
|
21
|
-
isValidElement:K,version:"16.
|
|
19
|
+
var U={Children:{map:function(a,b,e){if(null==a)return a;var c=[];T(a,c,null,b,e);return c},forEach:function(a,b,e){if(null==a)return a;b=N(null,null,b,e);null==a||P(a,"",R,b);O(b)},count:function(a){return null==a?0:P(a,"",p.thatReturnsNull,null)},toArray:function(a){var b=[];T(a,b,null,p.thatReturnsArgument);return b},only:function(a){K(a)?void 0:A("143");return a}},Component:C,PureComponent:E,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:x,calculateChangedBits:b,defaultValue:a,currentValue:a,
|
|
20
|
+
changedBits:0,Provider:null,Consumer:null};a.Provider={$$typeof:w,context:a};return a.Consumer=a},Fragment:u,StrictMode:v,unstable_AsyncMode:y,createElement:J,cloneElement:function(a,b,e){var c=void 0,d=m({},a.props),g=a.key,h=a.ref,f=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,f=G.current);void 0!==b.key&&(g=""+b.key);var k=void 0;a.type&&a.type.defaultProps&&(k=a.type.defaultProps);for(c in b)H.call(b,c)&&!I.hasOwnProperty(c)&&(d[c]=void 0===b[c]&&void 0!==k?k[c]:b[c])}c=arguments.length-2;if(1===
|
|
21
|
+
c)d.children=e;else if(1<c){k=Array(c);for(var l=0;l<c;l++)k[l]=arguments[l+2];d.children=k}return{$$typeof:r,type:a.type,key:g,ref:h,props:d,_owner:f}},createFactory:function(a){var b=J.bind(null,a);b.type=a;return b},isValidElement:K,version:"16.3.0-alpha.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:G,assign:m}},V=Object.freeze({default:U}),W=V&&U||V;module.exports=W["default"]?W["default"]:W;
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.3.0-alpha.0
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -108,7 +108,7 @@ var objectAssign = shouldUseNative() ? Object.assign : function (target, source)
|
|
|
108
108
|
|
|
109
109
|
// TODO: this is special because it gets imported during build.
|
|
110
110
|
|
|
111
|
-
var ReactVersion = '16.
|
|
111
|
+
var ReactVersion = '16.3.0-alpha.0';
|
|
112
112
|
|
|
113
113
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
114
114
|
// nor polyfill, then a plain number is used for performance.
|
|
@@ -119,6 +119,10 @@ var REACT_CALL_TYPE = hasSymbol ? Symbol['for']('react.call') : 0xeac8;
|
|
|
119
119
|
var REACT_RETURN_TYPE = hasSymbol ? Symbol['for']('react.return') : 0xeac9;
|
|
120
120
|
var REACT_PORTAL_TYPE = hasSymbol ? Symbol['for']('react.portal') : 0xeaca;
|
|
121
121
|
var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol['for']('react.fragment') : 0xeacb;
|
|
122
|
+
var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol['for']('react.strict_mode') : 0xeacc;
|
|
123
|
+
var REACT_PROVIDER_TYPE = hasSymbol ? Symbol['for']('react.provider') : 0xeacd;
|
|
124
|
+
var REACT_CONTEXT_TYPE = hasSymbol ? Symbol['for']('react.context') : 0xeace;
|
|
125
|
+
var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol['for']('react.async_mode') : 0xeacf;
|
|
122
126
|
|
|
123
127
|
var MAYBE_ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
124
128
|
var FAUX_ITERATOR_SYMBOL = '@@iterator';
|
|
@@ -368,8 +372,8 @@ var didWarnStateUpdateForUnmountedComponent = {};
|
|
|
368
372
|
|
|
369
373
|
function warnNoop(publicInstance, callerName) {
|
|
370
374
|
{
|
|
371
|
-
var
|
|
372
|
-
var componentName =
|
|
375
|
+
var _constructor = publicInstance.constructor;
|
|
376
|
+
var componentName = _constructor && (_constructor.displayName || _constructor.name) || 'ReactClass';
|
|
373
377
|
var warningKey = componentName + '.' + callerName;
|
|
374
378
|
if (didWarnStateUpdateForUnmountedComponent[warningKey]) {
|
|
375
379
|
return;
|
|
@@ -534,46 +538,25 @@ Component.prototype.forceUpdate = function (callback) {
|
|
|
534
538
|
}
|
|
535
539
|
}
|
|
536
540
|
|
|
541
|
+
function ComponentDummy() {}
|
|
542
|
+
ComponentDummy.prototype = Component.prototype;
|
|
543
|
+
|
|
537
544
|
/**
|
|
538
|
-
*
|
|
545
|
+
* Convenience component with default shallow equality check for sCU.
|
|
539
546
|
*/
|
|
540
547
|
function PureComponent(props, context, updater) {
|
|
541
|
-
// Duplicated from Component.
|
|
542
548
|
this.props = props;
|
|
543
549
|
this.context = context;
|
|
544
550
|
this.refs = emptyObject_1;
|
|
545
|
-
// We initialize the default updater but the real one gets injected by the
|
|
546
|
-
// renderer.
|
|
547
551
|
this.updater = updater || ReactNoopUpdateQueue;
|
|
548
552
|
}
|
|
549
553
|
|
|
550
|
-
function ComponentDummy() {}
|
|
551
|
-
ComponentDummy.prototype = Component.prototype;
|
|
552
554
|
var pureComponentPrototype = PureComponent.prototype = new ComponentDummy();
|
|
553
555
|
pureComponentPrototype.constructor = PureComponent;
|
|
554
556
|
// Avoid an extra prototype jump for these methods.
|
|
555
557
|
objectAssign(pureComponentPrototype, Component.prototype);
|
|
556
558
|
pureComponentPrototype.isPureReactComponent = true;
|
|
557
559
|
|
|
558
|
-
function AsyncComponent(props, context, updater) {
|
|
559
|
-
// Duplicated from Component.
|
|
560
|
-
this.props = props;
|
|
561
|
-
this.context = context;
|
|
562
|
-
this.refs = emptyObject_1;
|
|
563
|
-
// We initialize the default updater but the real one gets injected by the
|
|
564
|
-
// renderer.
|
|
565
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
var asyncComponentPrototype = AsyncComponent.prototype = new ComponentDummy();
|
|
569
|
-
asyncComponentPrototype.constructor = AsyncComponent;
|
|
570
|
-
// Avoid an extra prototype jump for these methods.
|
|
571
|
-
objectAssign(asyncComponentPrototype, Component.prototype);
|
|
572
|
-
asyncComponentPrototype.unstable_isAsyncReactComponent = true;
|
|
573
|
-
asyncComponentPrototype.render = function () {
|
|
574
|
-
return this.props.children;
|
|
575
|
-
};
|
|
576
|
-
|
|
577
560
|
/**
|
|
578
561
|
* Keeps track of the current owner.
|
|
579
562
|
*
|
|
@@ -597,8 +580,8 @@ var RESERVED_PROPS = {
|
|
|
597
580
|
__source: true
|
|
598
581
|
};
|
|
599
582
|
|
|
600
|
-
var specialPropKeyWarningShown;
|
|
601
|
-
var specialPropRefWarningShown;
|
|
583
|
+
var specialPropKeyWarningShown = void 0;
|
|
584
|
+
var specialPropRefWarningShown = void 0;
|
|
602
585
|
|
|
603
586
|
function hasValidRef(config) {
|
|
604
587
|
{
|
|
@@ -733,7 +716,7 @@ var ReactElement = function (type, key, ref, self, source, owner, props) {
|
|
|
733
716
|
* See https://reactjs.org/docs/react-api.html#createelement
|
|
734
717
|
*/
|
|
735
718
|
function createElement(type, config, children) {
|
|
736
|
-
var propName;
|
|
719
|
+
var propName = void 0;
|
|
737
720
|
|
|
738
721
|
// Reserved names are extracted
|
|
739
722
|
var props = {};
|
|
@@ -821,7 +804,7 @@ function cloneAndReplaceKey(oldElement, newKey) {
|
|
|
821
804
|
* See https://reactjs.org/docs/react-api.html#cloneelement
|
|
822
805
|
*/
|
|
823
806
|
function cloneElement(element, config, children) {
|
|
824
|
-
var propName;
|
|
807
|
+
var propName = void 0;
|
|
825
808
|
|
|
826
809
|
// Original props are copied
|
|
827
810
|
var props = objectAssign({}, element.props);
|
|
@@ -850,7 +833,7 @@ function cloneElement(element, config, children) {
|
|
|
850
833
|
}
|
|
851
834
|
|
|
852
835
|
// Remaining properties override existing props
|
|
853
|
-
var defaultProps;
|
|
836
|
+
var defaultProps = void 0;
|
|
854
837
|
if (element.type && element.type.defaultProps) {
|
|
855
838
|
defaultProps = element.type.defaultProps;
|
|
856
839
|
}
|
|
@@ -1004,8 +987,6 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
1004
987
|
case 'object':
|
|
1005
988
|
switch (children.$$typeof) {
|
|
1006
989
|
case REACT_ELEMENT_TYPE:
|
|
1007
|
-
case REACT_CALL_TYPE:
|
|
1008
|
-
case REACT_RETURN_TYPE:
|
|
1009
990
|
case REACT_PORTAL_TYPE:
|
|
1010
991
|
invokeCallback = true;
|
|
1011
992
|
}
|
|
@@ -1020,8 +1001,8 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
1020
1001
|
return 1;
|
|
1021
1002
|
}
|
|
1022
1003
|
|
|
1023
|
-
var child;
|
|
1024
|
-
var nextName;
|
|
1004
|
+
var child = void 0;
|
|
1005
|
+
var nextName = void 0;
|
|
1025
1006
|
var subtreeCount = 0; // Count of children found in the current subtree.
|
|
1026
1007
|
var nextNamePrefix = nameSoFar === '' ? SEPARATOR : nameSoFar + SUBSEPARATOR;
|
|
1027
1008
|
|
|
@@ -1043,7 +1024,7 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
1043
1024
|
}
|
|
1044
1025
|
|
|
1045
1026
|
var iterator = iteratorFn.call(children);
|
|
1046
|
-
var step;
|
|
1027
|
+
var step = void 0;
|
|
1047
1028
|
var ii = 0;
|
|
1048
1029
|
while (!(step = iterator.next()).done) {
|
|
1049
1030
|
child = step.value;
|
|
@@ -1230,6 +1211,39 @@ function onlyChild(children) {
|
|
|
1230
1211
|
return children;
|
|
1231
1212
|
}
|
|
1232
1213
|
|
|
1214
|
+
function createContext(defaultValue, calculateChangedBits) {
|
|
1215
|
+
if (calculateChangedBits === undefined) {
|
|
1216
|
+
calculateChangedBits = null;
|
|
1217
|
+
} else {
|
|
1218
|
+
{
|
|
1219
|
+
warning_1(calculateChangedBits === null || typeof calculateChangedBits === 'function', 'createContext: Expected the optional second argument to be a ' + 'function. Instead received: %s', calculateChangedBits);
|
|
1220
|
+
}
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
var context = {
|
|
1224
|
+
$$typeof: REACT_CONTEXT_TYPE,
|
|
1225
|
+
calculateChangedBits: calculateChangedBits,
|
|
1226
|
+
defaultValue: defaultValue,
|
|
1227
|
+
currentValue: defaultValue,
|
|
1228
|
+
changedBits: 0,
|
|
1229
|
+
// These are circular
|
|
1230
|
+
Provider: null,
|
|
1231
|
+
Consumer: null
|
|
1232
|
+
};
|
|
1233
|
+
|
|
1234
|
+
context.Provider = {
|
|
1235
|
+
$$typeof: REACT_PROVIDER_TYPE,
|
|
1236
|
+
context: context
|
|
1237
|
+
};
|
|
1238
|
+
context.Consumer = context;
|
|
1239
|
+
|
|
1240
|
+
{
|
|
1241
|
+
context._currentRenderer = null;
|
|
1242
|
+
}
|
|
1243
|
+
|
|
1244
|
+
return context;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1233
1247
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
1234
1248
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1235
1249
|
};
|
|
@@ -1237,11 +1251,21 @@ var describeComponentFrame = function (name, source, ownerName) {
|
|
|
1237
1251
|
function getComponentName(fiber) {
|
|
1238
1252
|
var type = fiber.type;
|
|
1239
1253
|
|
|
1254
|
+
if (typeof type === 'function') {
|
|
1255
|
+
return type.displayName || type.name;
|
|
1256
|
+
}
|
|
1240
1257
|
if (typeof type === 'string') {
|
|
1241
1258
|
return type;
|
|
1242
1259
|
}
|
|
1243
|
-
|
|
1244
|
-
|
|
1260
|
+
switch (type) {
|
|
1261
|
+
case REACT_FRAGMENT_TYPE:
|
|
1262
|
+
return 'ReactFragment';
|
|
1263
|
+
case REACT_PORTAL_TYPE:
|
|
1264
|
+
return 'ReactPortal';
|
|
1265
|
+
case REACT_CALL_TYPE:
|
|
1266
|
+
return 'ReactCall';
|
|
1267
|
+
case REACT_RETURN_TYPE:
|
|
1268
|
+
return 'ReactReturn';
|
|
1245
1269
|
}
|
|
1246
1270
|
return null;
|
|
1247
1271
|
}
|
|
@@ -1326,12 +1350,20 @@ var checkPropTypes_1 = checkPropTypes;
|
|
|
1326
1350
|
* that support it.
|
|
1327
1351
|
*/
|
|
1328
1352
|
|
|
1353
|
+
var currentlyValidatingElement = void 0;
|
|
1354
|
+
var propTypesMisspellWarningShown = void 0;
|
|
1355
|
+
|
|
1356
|
+
var getDisplayName = function () {};
|
|
1357
|
+
var getStackAddendum = function () {};
|
|
1358
|
+
|
|
1359
|
+
var VALID_FRAGMENT_PROPS = void 0;
|
|
1360
|
+
|
|
1329
1361
|
{
|
|
1330
|
-
|
|
1362
|
+
currentlyValidatingElement = null;
|
|
1331
1363
|
|
|
1332
|
-
|
|
1364
|
+
propTypesMisspellWarningShown = false;
|
|
1333
1365
|
|
|
1334
|
-
|
|
1366
|
+
getDisplayName = function (element) {
|
|
1335
1367
|
if (element == null) {
|
|
1336
1368
|
return '#empty';
|
|
1337
1369
|
} else if (typeof element === 'string' || typeof element === 'number') {
|
|
@@ -1345,7 +1377,7 @@ var checkPropTypes_1 = checkPropTypes;
|
|
|
1345
1377
|
}
|
|
1346
1378
|
};
|
|
1347
1379
|
|
|
1348
|
-
|
|
1380
|
+
getStackAddendum = function () {
|
|
1349
1381
|
var stack = '';
|
|
1350
1382
|
if (currentlyValidatingElement) {
|
|
1351
1383
|
var name = getDisplayName(currentlyValidatingElement);
|
|
@@ -1356,7 +1388,7 @@ var checkPropTypes_1 = checkPropTypes;
|
|
|
1356
1388
|
return stack;
|
|
1357
1389
|
};
|
|
1358
1390
|
|
|
1359
|
-
|
|
1391
|
+
VALID_FRAGMENT_PROPS = new Map([['children', true], ['key', true]]);
|
|
1360
1392
|
}
|
|
1361
1393
|
|
|
1362
1394
|
function getDeclarationErrorAddendum() {
|
|
@@ -1469,7 +1501,7 @@ function validateChildKeys(node, parentType) {
|
|
|
1469
1501
|
// but now we print a separate warning for them later.
|
|
1470
1502
|
if (iteratorFn !== node.entries) {
|
|
1471
1503
|
var iterator = iteratorFn.call(node);
|
|
1472
|
-
var step;
|
|
1504
|
+
var step = void 0;
|
|
1473
1505
|
while (!(step = iterator.next()).done) {
|
|
1474
1506
|
if (isValidElement(step.value)) {
|
|
1475
1507
|
validateExplicitKey(step.value, parentType);
|
|
@@ -1549,7 +1581,10 @@ function validateFragmentProps(fragment) {
|
|
|
1549
1581
|
}
|
|
1550
1582
|
|
|
1551
1583
|
function createElementWithValidation(type, props, children) {
|
|
1552
|
-
var validType = typeof type === 'string' || typeof type === 'function' ||
|
|
1584
|
+
var validType = typeof type === 'string' || typeof type === 'function' ||
|
|
1585
|
+
// Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
1586
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_ASYNC_MODE_TYPE || type === REACT_STRICT_MODE_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE);
|
|
1587
|
+
|
|
1553
1588
|
// We warn in this case but don't throw. We expect the element creation to
|
|
1554
1589
|
// succeed and there will likely be errors in render.
|
|
1555
1590
|
if (!validType) {
|
|
@@ -1567,7 +1602,16 @@ function createElementWithValidation(type, props, children) {
|
|
|
1567
1602
|
|
|
1568
1603
|
info += getStackAddendum() || '';
|
|
1569
1604
|
|
|
1570
|
-
|
|
1605
|
+
var typeString = void 0;
|
|
1606
|
+
if (type === null) {
|
|
1607
|
+
typeString = 'null';
|
|
1608
|
+
} else if (Array.isArray(type)) {
|
|
1609
|
+
typeString = 'array';
|
|
1610
|
+
} else {
|
|
1611
|
+
typeString = typeof type;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
warning_1(false, 'React.createElement: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
|
|
1571
1615
|
}
|
|
1572
1616
|
|
|
1573
1617
|
var element = createElement.apply(this, arguments);
|
|
@@ -1589,7 +1633,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1589
1633
|
}
|
|
1590
1634
|
}
|
|
1591
1635
|
|
|
1592
|
-
if (
|
|
1636
|
+
if (type === REACT_FRAGMENT_TYPE) {
|
|
1593
1637
|
validateFragmentProps(element);
|
|
1594
1638
|
} else {
|
|
1595
1639
|
validatePropTypes(element);
|
|
@@ -1600,9 +1644,8 @@ function createElementWithValidation(type, props, children) {
|
|
|
1600
1644
|
|
|
1601
1645
|
function createFactoryWithValidation(type) {
|
|
1602
1646
|
var validatedFactory = createElementWithValidation.bind(null, type);
|
|
1603
|
-
// Legacy hook TODO: Warn if this is accessed
|
|
1604
1647
|
validatedFactory.type = type;
|
|
1605
|
-
|
|
1648
|
+
// Legacy hook: remove it
|
|
1606
1649
|
{
|
|
1607
1650
|
Object.defineProperty(validatedFactory, 'type', {
|
|
1608
1651
|
enumerable: false,
|
|
@@ -1639,9 +1682,12 @@ var React = {
|
|
|
1639
1682
|
|
|
1640
1683
|
Component: Component,
|
|
1641
1684
|
PureComponent: PureComponent,
|
|
1642
|
-
|
|
1685
|
+
|
|
1686
|
+
createContext: createContext,
|
|
1643
1687
|
|
|
1644
1688
|
Fragment: REACT_FRAGMENT_TYPE,
|
|
1689
|
+
StrictMode: REACT_STRICT_MODE_TYPE,
|
|
1690
|
+
unstable_AsyncMode: REACT_ASYNC_MODE_TYPE,
|
|
1645
1691
|
|
|
1646
1692
|
createElement: createElementWithValidation,
|
|
1647
1693
|
cloneElement: cloneElementWithValidation,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.
|
|
1
|
+
/** @license React v16.3.0-alpha.0
|
|
2
2
|
* react.production.min.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,16 +6,16 @@
|
|
|
6
6
|
* This source code is licensed under the MIT license found in the
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
|
-
'use strict';(function(q,
|
|
10
|
-
b.name="Invariant Violation";b.framesToPop=1;throw b;}function
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};p.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
|
|
19
|
-
|
|
20
|
-
cloneElement:function(a,b,
|
|
21
|
-
G.bind(null,a);b.type=a;return b},isValidElement:
|
|
9
|
+
'use strict';(function(q,m){"object"===typeof exports&&"undefined"!==typeof module?module.exports=m():"function"===typeof define&&define.amd?define(m):q.React=m()})(this,function(){function q(a){for(var b=arguments.length-1,d="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,c=0;c<b;c++)d+="\x26args[]\x3d"+encodeURIComponent(arguments[c+1]);b=Error(d+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.");
|
|
10
|
+
b.name="Invariant Violation";b.framesToPop=1;throw b;}function m(a){return function(){return a}}function p(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||E}function F(){}function v(a,b,d){this.props=a;this.context=b;this.refs=D;this.updater=d||E}function G(a,b,d){var c=void 0,e={},g=null,l=null;if(null!=b)for(c in void 0!==b.ref&&(l=b.ref),void 0!==b.key&&(g=""+b.key),b)H.call(b,c)&&!I.hasOwnProperty(c)&&(e[c]=b[c]);var f=arguments.length-2;if(1===f)e.children=d;else if(1<f){for(var k=
|
|
11
|
+
Array(f),h=0;h<f;h++)k[h]=arguments[h+2];e.children=k}if(a&&a.defaultProps)for(c in f=a.defaultProps,f)void 0===e[c]&&(e[c]=f[c]);return{$$typeof:r,type:a,key:g,ref:l,props:e,_owner:w.current}}function x(a){return"object"===typeof a&&null!==a&&a.$$typeof===r}function O(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function J(a,b,d,c){if(u.length){var e=u.pop();e.result=a;e.keyPrefix=b;e.func=d;e.context=c;e.count=0;return e}return{result:a,keyPrefix:b,
|
|
12
|
+
func:d,context:c,count:0}}function K(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>u.length&&u.push(a)}function t(a,b,d,c){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;var g=!1;if(null===a)g=!0;else switch(e){case "string":case "number":g=!0;break;case "object":switch(a.$$typeof){case r:case P:g=!0}}if(g)return d(c,a,""===b?"."+y(a,0):b),1;g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var l=0;l<a.length;l++){e=a[l];var f=b+y(e,l);g+=t(e,f,d,c)}else if(null===
|
|
13
|
+
a||"undefined"===typeof a?f=null:(f=L&&a[L]||a["@@iterator"],f="function"===typeof f?f:null),"function"===typeof f)for(a=f.call(a),l=0;!(e=a.next()).done;)e=e.value,f=b+y(e,l++),g+=t(e,f,d,c);else"object"===e&&(d=""+a,q("31","[object Object]"===d?"object with keys {"+Object.keys(a).join(", ")+"}":d,""));return g}function y(a,b){return"object"===typeof a&&null!==a&&null!=a.key?O(a.key):b.toString(36)}function Q(a,b,d){a.func.call(a.context,b,a.count++)}function R(a,b,d){var c=a.result,e=a.keyPrefix;
|
|
14
|
+
a=a.func.call(a.context,b,a.count++);Array.isArray(a)?z(a,c,d,A.thatReturnsArgument):null!=a&&(x(a)&&(b=e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(M,"$\x26/")+"/")+d,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),c.push(a))}function z(a,b,d,c,e){var g="";null!=d&&(g=(""+d).replace(M,"$\x26/")+"/");b=J(b,g,c,e);null==a||t(a,"",R,b);K(b)}var N=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable,B=function(){try{if(!Object.assign)return!1;
|
|
15
|
+
var a=new String("abc");a[5]="de";if("5"===Object.getOwnPropertyNames(a)[0])return!1;var b={};for(a=0;10>a;a++)b["_"+String.fromCharCode(a)]=a;if("0123456789"!==Object.getOwnPropertyNames(b).map(function(a){return b[a]}).join(""))return!1;var d={};"abcdefghijklmnopqrst".split("").forEach(function(a){d[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},d)).join("")?!1:!0}catch(c){return!1}}()?Object.assign:function(a,b){if(null===a||void 0===a)throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
16
|
+
var d=Object(a);for(var c,e=1;e<arguments.length;e++){var g=Object(arguments[e]);for(var l in g)S.call(g,l)&&(d[l]=g[l]);if(N){c=N(g);for(var f=0;f<c.length;f++)T.call(g,c[f])&&(d[c[f]]=g[c[f]])}}return d},h="function"===typeof Symbol&&Symbol["for"],r=h?Symbol["for"]("react.element"):60103,P=h?Symbol["for"]("react.portal"):60106,n=h?Symbol["for"]("react.fragment"):60107,C=h?Symbol["for"]("react.strict_mode"):60108,U=h?Symbol["for"]("react.provider"):60109,V=h?Symbol["for"]("react.context"):60110;
|
|
17
|
+
h=h?Symbol["for"]("react.async_mode"):60111;var L="function"===typeof Symbol&&Symbol.iterator,D={},k=function(){};k.thatReturns=m;k.thatReturnsFalse=m(!1);k.thatReturnsTrue=m(!0);k.thatReturnsNull=m(null);k.thatReturnsThis=function(){return this};k.thatReturnsArgument=function(a){return a};var A=k,E={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,d){},enqueueReplaceState:function(a,b,d,c){},enqueueSetState:function(a,b,d,c){}};p.prototype.isReactComponent={};p.prototype.setState=
|
|
18
|
+
function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};p.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};F.prototype=p.prototype;k=v.prototype=new F;k.constructor=v;B(k,p.prototype);k.isPureReactComponent=!0;var w={current:null},H=Object.prototype.hasOwnProperty,I={key:!0,ref:!0,__self:!0,__source:!0},M=/\/+/g,u=[];n={Children:{map:function(a,b,d){if(null==a)return a;var c=[];z(a,
|
|
19
|
+
c,null,b,d);return c},forEach:function(a,b,d){if(null==a)return a;b=J(null,null,b,d);null==a||t(a,"",Q,b);K(b)},count:function(a,b){return null==a?0:t(a,"",A.thatReturnsNull,null)},toArray:function(a){var b=[];z(a,b,null,A.thatReturnsArgument);return b},only:function(a){x(a)?void 0:q("143");return a}},Component:p,PureComponent:v,createContext:function(a,b){void 0===b&&(b=null);a={$$typeof:V,calculateChangedBits:b,defaultValue:a,currentValue:a,changedBits:0,Provider:null,Consumer:null};a.Provider=
|
|
20
|
+
{$$typeof:U,context:a};return a.Consumer=a},Fragment:n,StrictMode:C,unstable_AsyncMode:h,createElement:G,cloneElement:function(a,b,d){var c=void 0,e=B({},a.props),g=a.key,l=a.ref,f=a._owner;if(null!=b){void 0!==b.ref&&(l=b.ref,f=w.current);void 0!==b.key&&(g=""+b.key);var h=void 0;a.type&&a.type.defaultProps&&(h=a.type.defaultProps);for(c in b)H.call(b,c)&&!I.hasOwnProperty(c)&&(e[c]=void 0===b[c]&&void 0!==h?h[c]:b[c])}c=arguments.length-2;if(1===c)e.children=d;else if(1<c){h=Array(c);for(var k=
|
|
21
|
+
0;k<c;k++)h[k]=arguments[k+2];e.children=h}return{$$typeof:r,type:a.type,key:g,ref:l,props:e,_owner:f}},createFactory:function(a){var b=G.bind(null,a);b.type=a;return b},isValidElement:x,version:"16.3.0-alpha.0",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:w,assign:B}};n=(C=Object.freeze({default:n}))&&n||C;return n["default"]?n["default"]:n});
|