react 16.1.0-beta → 16.1.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 +24 -151
- package/cjs/react.production.min.js +22 -23
- package/package.json +1 -1
- package/umd/react.development.js +35 -158
- package/umd/react.production.min.js +21 -22
package/cjs/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.1.
|
|
1
|
+
/** @license React v16.1.1
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -6,70 +6,23 @@
|
|
|
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';
|
|
10
9
|
|
|
10
|
+
'use strict';
|
|
11
11
|
|
|
12
12
|
if (process.env.NODE_ENV !== "production") {
|
|
13
|
-
(function() {
|
|
14
|
-
|
|
13
|
+
(function() {
|
|
15
14
|
'use strict';
|
|
16
15
|
|
|
17
16
|
var _assign = require('object-assign');
|
|
18
|
-
var emptyObject = require('fbjs/lib/emptyObject');
|
|
19
17
|
var invariant = require('fbjs/lib/invariant');
|
|
18
|
+
var emptyObject = require('fbjs/lib/emptyObject');
|
|
20
19
|
var warning = require('fbjs/lib/warning');
|
|
21
20
|
var emptyFunction = require('fbjs/lib/emptyFunction');
|
|
22
21
|
var checkPropTypes = require('prop-types/checkPropTypes');
|
|
23
22
|
|
|
24
|
-
/**
|
|
25
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
26
|
-
*
|
|
27
|
-
* This source code is licensed under the MIT license found in the
|
|
28
|
-
* LICENSE file in the root directory of this source tree.
|
|
29
|
-
*/
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
23
|
// TODO: this is special because it gets imported during build.
|
|
34
24
|
|
|
35
|
-
var ReactVersion = '16.1.
|
|
36
|
-
|
|
37
|
-
var ReactFeatureFlags = {
|
|
38
|
-
enableAsyncSubtreeAPI: true,
|
|
39
|
-
enableAsyncSchedulingByDefaultInReactDOM: false,
|
|
40
|
-
// Mutating mode (React DOM, React ART, React Native):
|
|
41
|
-
enableMutatingReconciler: true,
|
|
42
|
-
// Experimental noop mode (currently unused):
|
|
43
|
-
enableNoopReconciler: false,
|
|
44
|
-
// Experimental persistent mode (CS):
|
|
45
|
-
enablePersistentReconciler: false,
|
|
46
|
-
// Exports React.Fragment
|
|
47
|
-
enableReactFragment: false,
|
|
48
|
-
// Exports ReactDOM.createRoot
|
|
49
|
-
enableCreateRoot: false
|
|
50
|
-
}; /**
|
|
51
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
52
|
-
*
|
|
53
|
-
* This source code is licensed under the MIT license found in the
|
|
54
|
-
* LICENSE file in the root directory of this source tree.
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
{
|
|
60
|
-
if (Object.freeze) {
|
|
61
|
-
Object.freeze(ReactFeatureFlags);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
67
|
-
*
|
|
68
|
-
* This source code is licensed under the MIT license found in the
|
|
69
|
-
* LICENSE file in the root directory of this source tree.
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*/
|
|
25
|
+
var ReactVersion = '16.1.1';
|
|
73
26
|
|
|
74
27
|
/**
|
|
75
28
|
* WARNING: DO NOT manually require this module.
|
|
@@ -78,12 +31,20 @@ var ReactFeatureFlags = {
|
|
|
78
31
|
* It always throws.
|
|
79
32
|
*/
|
|
80
33
|
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
34
|
+
// Exports React.Fragment
|
|
35
|
+
var enableReactFragment = false;
|
|
36
|
+
// Exports ReactDOM.createRoot
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
// Mutating mode (React DOM, React ART, React Native):
|
|
41
|
+
|
|
42
|
+
// Experimental noop mode (currently unused):
|
|
43
|
+
|
|
44
|
+
// Experimental persistent mode (CS):
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
// Only used in www builds.
|
|
87
48
|
|
|
88
49
|
/**
|
|
89
50
|
* Forked from fbjs/warning:
|
|
@@ -138,13 +99,6 @@ var lowPriorityWarning = function () {};
|
|
|
138
99
|
|
|
139
100
|
var lowPriorityWarning$1 = lowPriorityWarning;
|
|
140
101
|
|
|
141
|
-
/**
|
|
142
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
143
|
-
*
|
|
144
|
-
* This source code is licensed under the MIT license found in the
|
|
145
|
-
* LICENSE file in the root directory of this source tree.
|
|
146
|
-
*/
|
|
147
|
-
|
|
148
102
|
var didWarnStateUpdateForUnmountedComponent = {};
|
|
149
103
|
|
|
150
104
|
function warnNoop(publicInstance, callerName) {
|
|
@@ -228,13 +182,6 @@ var ReactNoopUpdateQueue = {
|
|
|
228
182
|
}
|
|
229
183
|
};
|
|
230
184
|
|
|
231
|
-
/**
|
|
232
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
233
|
-
*
|
|
234
|
-
* This source code is licensed under the MIT license found in the
|
|
235
|
-
* LICENSE file in the root directory of this source tree.
|
|
236
|
-
*/
|
|
237
|
-
|
|
238
185
|
/**
|
|
239
186
|
* Base class helpers for the updating state of a component.
|
|
240
187
|
*/
|
|
@@ -374,21 +321,7 @@ var ReactCurrentOwner = {
|
|
|
374
321
|
* @type {ReactComponent}
|
|
375
322
|
*/
|
|
376
323
|
current: null
|
|
377
|
-
};
|
|
378
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
379
|
-
*
|
|
380
|
-
* This source code is licensed under the MIT license found in the
|
|
381
|
-
* LICENSE file in the root directory of this source tree.
|
|
382
|
-
*
|
|
383
|
-
*
|
|
384
|
-
*/
|
|
385
|
-
|
|
386
|
-
/**
|
|
387
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
388
|
-
*
|
|
389
|
-
* This source code is licensed under the MIT license found in the
|
|
390
|
-
* LICENSE file in the root directory of this source tree.
|
|
391
|
-
*/
|
|
324
|
+
};
|
|
392
325
|
|
|
393
326
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
394
327
|
|
|
@@ -699,15 +632,6 @@ function isValidElement(object) {
|
|
|
699
632
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE$1;
|
|
700
633
|
}
|
|
701
634
|
|
|
702
|
-
/**
|
|
703
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
704
|
-
*
|
|
705
|
-
* This source code is licensed under the MIT license found in the
|
|
706
|
-
* LICENSE file in the root directory of this source tree.
|
|
707
|
-
*
|
|
708
|
-
*
|
|
709
|
-
*/
|
|
710
|
-
|
|
711
635
|
var ReactDebugCurrentFrame = {};
|
|
712
636
|
|
|
713
637
|
{
|
|
@@ -723,13 +647,6 @@ var ReactDebugCurrentFrame = {};
|
|
|
723
647
|
};
|
|
724
648
|
}
|
|
725
649
|
|
|
726
|
-
/**
|
|
727
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
728
|
-
*
|
|
729
|
-
* This source code is licensed under the MIT license found in the
|
|
730
|
-
* LICENSE file in the root directory of this source tree.
|
|
731
|
-
*/
|
|
732
|
-
|
|
733
650
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
734
651
|
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
735
652
|
// The Symbol used to tag the ReactElement type. If there is no native Symbol
|
|
@@ -1040,15 +957,6 @@ function onlyChild(children) {
|
|
|
1040
957
|
return children;
|
|
1041
958
|
}
|
|
1042
959
|
|
|
1043
|
-
/**
|
|
1044
|
-
* Copyright (c) 2016-present, Facebook, Inc.
|
|
1045
|
-
*
|
|
1046
|
-
* This source code is licensed under the MIT license found in the
|
|
1047
|
-
* LICENSE file in the root directory of this source tree.
|
|
1048
|
-
*
|
|
1049
|
-
*
|
|
1050
|
-
*/
|
|
1051
|
-
|
|
1052
960
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
1053
961
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1054
962
|
};
|
|
@@ -1063,21 +971,7 @@ function getComponentName(fiber) {
|
|
|
1063
971
|
return type.displayName || type.name;
|
|
1064
972
|
}
|
|
1065
973
|
return null;
|
|
1066
|
-
}
|
|
1067
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1068
|
-
*
|
|
1069
|
-
* This source code is licensed under the MIT license found in the
|
|
1070
|
-
* LICENSE file in the root directory of this source tree.
|
|
1071
|
-
*
|
|
1072
|
-
*
|
|
1073
|
-
*/
|
|
1074
|
-
|
|
1075
|
-
/**
|
|
1076
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
1077
|
-
*
|
|
1078
|
-
* This source code is licensed under the MIT license found in the
|
|
1079
|
-
* LICENSE file in the root directory of this source tree.
|
|
1080
|
-
*/
|
|
974
|
+
}
|
|
1081
975
|
|
|
1082
976
|
/**
|
|
1083
977
|
* ReactElementValidator provides a wrapper around a element factory
|
|
@@ -1316,7 +1210,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1316
1210
|
if (!validType) {
|
|
1317
1211
|
var info = '';
|
|
1318
1212
|
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
1319
|
-
info += ' You likely forgot to export your component from the file ' + "it's defined in.";
|
|
1213
|
+
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
1320
1214
|
}
|
|
1321
1215
|
|
|
1322
1216
|
var sourceInfo = getSourceInfoErrorAddendum(props);
|
|
@@ -1389,13 +1283,6 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
1389
1283
|
return newElement;
|
|
1390
1284
|
}
|
|
1391
1285
|
|
|
1392
|
-
/**
|
|
1393
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1394
|
-
*
|
|
1395
|
-
* This source code is licensed under the MIT license found in the
|
|
1396
|
-
* LICENSE file in the root directory of this source tree.
|
|
1397
|
-
*/
|
|
1398
|
-
|
|
1399
1286
|
var REACT_FRAGMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
|
|
1400
1287
|
|
|
1401
1288
|
var React = {
|
|
@@ -1425,7 +1312,7 @@ var React = {
|
|
|
1425
1312
|
}
|
|
1426
1313
|
};
|
|
1427
1314
|
|
|
1428
|
-
if (
|
|
1315
|
+
if (enableReactFragment) {
|
|
1429
1316
|
React.Fragment = REACT_FRAGMENT_TYPE;
|
|
1430
1317
|
}
|
|
1431
1318
|
|
|
@@ -1447,24 +1334,10 @@ var React$2 = Object.freeze({
|
|
|
1447
1334
|
|
|
1448
1335
|
var React$3 = ( React$2 && React ) || React$2;
|
|
1449
1336
|
|
|
1450
|
-
/**
|
|
1451
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1452
|
-
*
|
|
1453
|
-
* This source code is licensed under the MIT license found in the
|
|
1454
|
-
* LICENSE file in the root directory of this source tree.
|
|
1455
|
-
*
|
|
1456
|
-
*
|
|
1457
|
-
*/
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
1337
|
// TODO: decide on the top-level export form.
|
|
1464
1338
|
// This is hacky but makes it work with both Rollup and Jest.
|
|
1465
1339
|
var react = React$3['default'] ? React$3['default'] : React$3;
|
|
1466
1340
|
|
|
1467
1341
|
module.exports = react;
|
|
1468
|
-
|
|
1469
|
-
})();
|
|
1342
|
+
})();
|
|
1470
1343
|
}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
function t(a){
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
var
|
|
15
|
-
var
|
|
16
|
-
function
|
|
17
|
-
function
|
|
18
|
-
|
|
19
|
-
function
|
|
20
|
-
var
|
|
21
|
-
b)
|
|
22
|
-
|
|
23
|
-
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:B,assign:n}},U=Object.freeze({default:T}),V=U&&T||U;module.exports=V["default"]?V["default"]:V;
|
|
1
|
+
/** @license React v16.1.1
|
|
2
|
+
* react.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
'use strict';var m=require("object-assign"),n=require("fbjs/lib/emptyObject"),p=require("fbjs/lib/emptyFunction");
|
|
10
|
+
function q(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,d=0;d<b;d++)e+="\x26args[]\x3d"+encodeURIComponent(arguments[d+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;}
|
|
11
|
+
var r={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function t(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||r}t.prototype.isReactComponent={};t.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?q("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};t.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
|
|
12
|
+
function u(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||r}function v(){}v.prototype=t.prototype;var w=u.prototype=new v;w.constructor=u;m(w,t.prototype);w.isPureReactComponent=!0;function x(a,b,e){this.props=a;this.context=b;this.refs=n;this.updater=e||r}var y=x.prototype=new v;y.constructor=x;m(y,t.prototype);y.unstable_isAsyncReactComponent=!0;y.render=function(){return this.props.children};
|
|
13
|
+
var z={current:null},A=Object.prototype.hasOwnProperty,B="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,C={key:!0,ref:!0,__self:!0,__source:!0};
|
|
14
|
+
function D(a,b,e){var d,c={},h=null,k=null;if(null!=b)for(d in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(h=""+b.key),b)A.call(b,d)&&!C.hasOwnProperty(d)&&(c[d]=b[d]);var f=arguments.length-2;if(1===f)c.children=e;else if(1<f){for(var g=Array(f),l=0;l<f;l++)g[l]=arguments[l+2];c.children=g}if(a&&a.defaultProps)for(d in f=a.defaultProps,f)void 0===c[d]&&(c[d]=f[d]);return{$$typeof:B,type:a,key:h,ref:k,props:c,_owner:z.current}}function E(a){return"object"===typeof a&&null!==a&&a.$$typeof===B}
|
|
15
|
+
var F="function"===typeof Symbol&&Symbol.iterator,G="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,H="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106;function escape(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var I=/\/+/g,J=[];
|
|
16
|
+
function K(a,b,e,d){if(J.length){var c=J.pop();c.result=a;c.keyPrefix=b;c.func=e;c.context=d;c.count=0;return c}return{result:a,keyPrefix:b,func:e,context:d,count:0}}function L(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>J.length&&J.push(a)}
|
|
17
|
+
function M(a,b,e,d){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;if(null===a||"string"===c||"number"===c||"object"===c&&a.$$typeof===G||"object"===c&&a.$$typeof===H)return e(d,a,""===b?"."+N(a,0):b),1;var h=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){c=a[k];var f=b+N(c,k);h+=M(c,f,e,d)}else if(f=F&&a[F]||a["@@iterator"],"function"===typeof f)for(a=f.call(a),k=0;!(c=a.next()).done;)c=c.value,f=b+N(c,k++),h+=M(c,f,e,d);else"object"===c&&(e=""+a,q("31","[object Object]"===
|
|
18
|
+
e?"object with keys {"+Object.keys(a).join(", ")+"}":e,""));return h}function N(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function O(a,b){a.func.call(a.context,b,a.count++)}
|
|
19
|
+
function P(a,b,e){var d=a.result,c=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?Q(a,d,e,p.thatReturnsArgument):null!=a&&(E(a)&&(b=c+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(I,"$\x26/")+"/")+e,a={$$typeof:B,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),d.push(a))}function Q(a,b,e,d,c){var h="";null!=e&&(h=(""+e).replace(I,"$\x26/")+"/");b=K(b,h,d,c);null==a||M(a,"",P,b);L(b)}"function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.fragment");
|
|
20
|
+
var R={Children:{map:function(a,b,e){if(null==a)return a;var d=[];Q(a,d,null,b,e);return d},forEach:function(a,b,e){if(null==a)return a;b=K(null,null,b,e);null==a||M(a,"",O,b);L(b)},count:function(a){return null==a?0:M(a,"",p.thatReturnsNull,null)},toArray:function(a){var b=[];Q(a,b,null,p.thatReturnsArgument);return b},only:function(a){E(a)?void 0:q("143");return a}},Component:t,PureComponent:u,unstable_AsyncComponent:x,createElement:D,cloneElement:function(a,b,e){var d=m({},a.props),c=a.key,h=a.ref,
|
|
21
|
+
k=a._owner;if(null!=b){void 0!==b.ref&&(h=b.ref,k=z.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var f=a.type.defaultProps;for(g in b)A.call(b,g)&&!C.hasOwnProperty(g)&&(d[g]=void 0===b[g]&&void 0!==f?f[g]:b[g])}var g=arguments.length-2;if(1===g)d.children=e;else if(1<g){f=Array(g);for(var l=0;l<g;l++)f[l]=arguments[l+2];d.children=f}return{$$typeof:B,type:a.type,key:c,ref:h,props:d,_owner:k}},createFactory:function(a){var b=D.bind(null,a);b.type=a;return b},isValidElement:E,
|
|
22
|
+
version:"16.1.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:z,assign:m}},S=Object.freeze({default:R}),T=S&&R||S;module.exports=T["default"]?T["default"]:T;
|
package/package.json
CHANGED
package/umd/react.development.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/** @license React v16.1.
|
|
1
|
+
/** @license React v16.1.1
|
|
2
2
|
* react.development.js
|
|
3
3
|
*
|
|
4
4
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
* LICENSE file in the root directory of this source tree.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
+
'use strict';
|
|
11
|
+
|
|
10
12
|
(function (global, factory) {
|
|
11
13
|
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
|
|
12
14
|
typeof define === 'function' && define.amd ? define(factory) :
|
|
@@ -104,55 +106,9 @@ var objectAssign$1 = shouldUseNative() ? Object.assign : function (target, sourc
|
|
|
104
106
|
return to;
|
|
105
107
|
};
|
|
106
108
|
|
|
107
|
-
/**
|
|
108
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
109
|
-
*
|
|
110
|
-
* This source code is licensed under the MIT license found in the
|
|
111
|
-
* LICENSE file in the root directory of this source tree.
|
|
112
|
-
*/
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
109
|
// TODO: this is special because it gets imported during build.
|
|
117
110
|
|
|
118
|
-
var ReactVersion = '16.1.
|
|
119
|
-
|
|
120
|
-
var ReactFeatureFlags = {
|
|
121
|
-
enableAsyncSubtreeAPI: true,
|
|
122
|
-
enableAsyncSchedulingByDefaultInReactDOM: false,
|
|
123
|
-
// Mutating mode (React DOM, React ART, React Native):
|
|
124
|
-
enableMutatingReconciler: true,
|
|
125
|
-
// Experimental noop mode (currently unused):
|
|
126
|
-
enableNoopReconciler: false,
|
|
127
|
-
// Experimental persistent mode (CS):
|
|
128
|
-
enablePersistentReconciler: false,
|
|
129
|
-
// Exports React.Fragment
|
|
130
|
-
enableReactFragment: false,
|
|
131
|
-
// Exports ReactDOM.createRoot
|
|
132
|
-
enableCreateRoot: false
|
|
133
|
-
}; /**
|
|
134
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
135
|
-
*
|
|
136
|
-
* This source code is licensed under the MIT license found in the
|
|
137
|
-
* LICENSE file in the root directory of this source tree.
|
|
138
|
-
*
|
|
139
|
-
*
|
|
140
|
-
*/
|
|
141
|
-
|
|
142
|
-
{
|
|
143
|
-
if (Object.freeze) {
|
|
144
|
-
Object.freeze(ReactFeatureFlags);
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
/**
|
|
149
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
150
|
-
*
|
|
151
|
-
* This source code is licensed under the MIT license found in the
|
|
152
|
-
* LICENSE file in the root directory of this source tree.
|
|
153
|
-
*
|
|
154
|
-
*
|
|
155
|
-
*/
|
|
111
|
+
var ReactVersion = '16.1.1';
|
|
156
112
|
|
|
157
113
|
/**
|
|
158
114
|
* WARNING: DO NOT manually require this module.
|
|
@@ -171,24 +127,6 @@ var ReactFeatureFlags = {
|
|
|
171
127
|
|
|
172
128
|
|
|
173
129
|
|
|
174
|
-
var emptyObject = {};
|
|
175
|
-
|
|
176
|
-
{
|
|
177
|
-
Object.freeze(emptyObject);
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
var emptyObject_1 = emptyObject;
|
|
181
|
-
|
|
182
|
-
/**
|
|
183
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
184
|
-
*
|
|
185
|
-
* This source code is licensed under the MIT license found in the
|
|
186
|
-
* LICENSE file in the root directory of this source tree.
|
|
187
|
-
*
|
|
188
|
-
*/
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
130
|
/**
|
|
193
131
|
* Use invariant() to assert state which your program assumes to be true.
|
|
194
132
|
*
|
|
@@ -233,13 +171,39 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
233
171
|
|
|
234
172
|
var invariant_1$1 = invariant;
|
|
235
173
|
|
|
174
|
+
// Exports React.Fragment
|
|
175
|
+
var enableReactFragment = false;
|
|
176
|
+
// Exports ReactDOM.createRoot
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
// Mutating mode (React DOM, React ART, React Native):
|
|
181
|
+
|
|
182
|
+
// Experimental noop mode (currently unused):
|
|
183
|
+
|
|
184
|
+
// Experimental persistent mode (CS):
|
|
185
|
+
|
|
186
|
+
|
|
187
|
+
// Only used in www builds.
|
|
188
|
+
|
|
236
189
|
/**
|
|
237
|
-
* Copyright (c)
|
|
190
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
238
191
|
*
|
|
239
192
|
* This source code is licensed under the MIT license found in the
|
|
240
193
|
* LICENSE file in the root directory of this source tree.
|
|
194
|
+
*
|
|
241
195
|
*/
|
|
242
196
|
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
var emptyObject = {};
|
|
200
|
+
|
|
201
|
+
{
|
|
202
|
+
Object.freeze(emptyObject);
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
var emptyObject_1 = emptyObject;
|
|
206
|
+
|
|
243
207
|
/**
|
|
244
208
|
* Forked from fbjs/warning:
|
|
245
209
|
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
@@ -391,13 +355,6 @@ var warning = emptyFunction_1;
|
|
|
391
355
|
|
|
392
356
|
var warning_1$1 = warning;
|
|
393
357
|
|
|
394
|
-
/**
|
|
395
|
-
* Copyright (c) 2015-present, Facebook, Inc.
|
|
396
|
-
*
|
|
397
|
-
* This source code is licensed under the MIT license found in the
|
|
398
|
-
* LICENSE file in the root directory of this source tree.
|
|
399
|
-
*/
|
|
400
|
-
|
|
401
358
|
var didWarnStateUpdateForUnmountedComponent = {};
|
|
402
359
|
|
|
403
360
|
function warnNoop(publicInstance, callerName) {
|
|
@@ -481,13 +438,6 @@ var ReactNoopUpdateQueue = {
|
|
|
481
438
|
}
|
|
482
439
|
};
|
|
483
440
|
|
|
484
|
-
/**
|
|
485
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
486
|
-
*
|
|
487
|
-
* This source code is licensed under the MIT license found in the
|
|
488
|
-
* LICENSE file in the root directory of this source tree.
|
|
489
|
-
*/
|
|
490
|
-
|
|
491
441
|
/**
|
|
492
442
|
* Base class helpers for the updating state of a component.
|
|
493
443
|
*/
|
|
@@ -627,21 +577,7 @@ var ReactCurrentOwner = {
|
|
|
627
577
|
* @type {ReactComponent}
|
|
628
578
|
*/
|
|
629
579
|
current: null
|
|
630
|
-
};
|
|
631
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
632
|
-
*
|
|
633
|
-
* This source code is licensed under the MIT license found in the
|
|
634
|
-
* LICENSE file in the root directory of this source tree.
|
|
635
|
-
*
|
|
636
|
-
*
|
|
637
|
-
*/
|
|
638
|
-
|
|
639
|
-
/**
|
|
640
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
641
|
-
*
|
|
642
|
-
* This source code is licensed under the MIT license found in the
|
|
643
|
-
* LICENSE file in the root directory of this source tree.
|
|
644
|
-
*/
|
|
580
|
+
};
|
|
645
581
|
|
|
646
582
|
var hasOwnProperty$1 = Object.prototype.hasOwnProperty;
|
|
647
583
|
|
|
@@ -952,15 +888,6 @@ function isValidElement(object) {
|
|
|
952
888
|
return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE$1;
|
|
953
889
|
}
|
|
954
890
|
|
|
955
|
-
/**
|
|
956
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
957
|
-
*
|
|
958
|
-
* This source code is licensed under the MIT license found in the
|
|
959
|
-
* LICENSE file in the root directory of this source tree.
|
|
960
|
-
*
|
|
961
|
-
*
|
|
962
|
-
*/
|
|
963
|
-
|
|
964
891
|
var ReactDebugCurrentFrame = {};
|
|
965
892
|
|
|
966
893
|
{
|
|
@@ -976,13 +903,6 @@ var ReactDebugCurrentFrame = {};
|
|
|
976
903
|
};
|
|
977
904
|
}
|
|
978
905
|
|
|
979
|
-
/**
|
|
980
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
981
|
-
*
|
|
982
|
-
* This source code is licensed under the MIT license found in the
|
|
983
|
-
* LICENSE file in the root directory of this source tree.
|
|
984
|
-
*/
|
|
985
|
-
|
|
986
906
|
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
987
907
|
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
988
908
|
// The Symbol used to tag the ReactElement type. If there is no native Symbol
|
|
@@ -1293,15 +1213,6 @@ function onlyChild(children) {
|
|
|
1293
1213
|
return children;
|
|
1294
1214
|
}
|
|
1295
1215
|
|
|
1296
|
-
/**
|
|
1297
|
-
* Copyright (c) 2016-present, Facebook, Inc.
|
|
1298
|
-
*
|
|
1299
|
-
* This source code is licensed under the MIT license found in the
|
|
1300
|
-
* LICENSE file in the root directory of this source tree.
|
|
1301
|
-
*
|
|
1302
|
-
*
|
|
1303
|
-
*/
|
|
1304
|
-
|
|
1305
1216
|
var describeComponentFrame = function (name, source, ownerName) {
|
|
1306
1217
|
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1307
1218
|
};
|
|
@@ -1316,14 +1227,7 @@ function getComponentName(fiber) {
|
|
|
1316
1227
|
return type.displayName || type.name;
|
|
1317
1228
|
}
|
|
1318
1229
|
return null;
|
|
1319
|
-
}
|
|
1320
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1321
|
-
*
|
|
1322
|
-
* This source code is licensed under the MIT license found in the
|
|
1323
|
-
* LICENSE file in the root directory of this source tree.
|
|
1324
|
-
*
|
|
1325
|
-
*
|
|
1326
|
-
*/
|
|
1230
|
+
}
|
|
1327
1231
|
|
|
1328
1232
|
/**
|
|
1329
1233
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
@@ -1398,13 +1302,6 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
1398
1302
|
|
|
1399
1303
|
var checkPropTypes_1$1 = checkPropTypes;
|
|
1400
1304
|
|
|
1401
|
-
/**
|
|
1402
|
-
* Copyright (c) 2014-present, Facebook, Inc.
|
|
1403
|
-
*
|
|
1404
|
-
* This source code is licensed under the MIT license found in the
|
|
1405
|
-
* LICENSE file in the root directory of this source tree.
|
|
1406
|
-
*/
|
|
1407
|
-
|
|
1408
1305
|
/**
|
|
1409
1306
|
* ReactElementValidator provides a wrapper around a element factory
|
|
1410
1307
|
* which validates the props passed to the element. This is intended to be
|
|
@@ -1642,7 +1539,7 @@ function createElementWithValidation(type, props, children) {
|
|
|
1642
1539
|
if (!validType) {
|
|
1643
1540
|
var info = '';
|
|
1644
1541
|
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
1645
|
-
info += ' You likely forgot to export your component from the file ' + "it's defined in.";
|
|
1542
|
+
info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
|
|
1646
1543
|
}
|
|
1647
1544
|
|
|
1648
1545
|
var sourceInfo = getSourceInfoErrorAddendum(props);
|
|
@@ -1715,13 +1612,6 @@ function cloneElementWithValidation(element, props, children) {
|
|
|
1715
1612
|
return newElement;
|
|
1716
1613
|
}
|
|
1717
1614
|
|
|
1718
|
-
/**
|
|
1719
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1720
|
-
*
|
|
1721
|
-
* This source code is licensed under the MIT license found in the
|
|
1722
|
-
* LICENSE file in the root directory of this source tree.
|
|
1723
|
-
*/
|
|
1724
|
-
|
|
1725
1615
|
var REACT_FRAGMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.fragment') || 0xeacb;
|
|
1726
1616
|
|
|
1727
1617
|
var React = {
|
|
@@ -1751,7 +1641,7 @@ var React = {
|
|
|
1751
1641
|
}
|
|
1752
1642
|
};
|
|
1753
1643
|
|
|
1754
|
-
if (
|
|
1644
|
+
if (enableReactFragment) {
|
|
1755
1645
|
React.Fragment = REACT_FRAGMENT_TYPE;
|
|
1756
1646
|
}
|
|
1757
1647
|
|
|
@@ -1773,19 +1663,6 @@ var React$2 = Object.freeze({
|
|
|
1773
1663
|
|
|
1774
1664
|
var React$3 = ( React$2 && React ) || React$2;
|
|
1775
1665
|
|
|
1776
|
-
/**
|
|
1777
|
-
* Copyright (c) 2013-present, Facebook, Inc.
|
|
1778
|
-
*
|
|
1779
|
-
* This source code is licensed under the MIT license found in the
|
|
1780
|
-
* LICENSE file in the root directory of this source tree.
|
|
1781
|
-
*
|
|
1782
|
-
*
|
|
1783
|
-
*/
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
1666
|
// TODO: decide on the top-level export form.
|
|
1790
1667
|
// This is hacky but makes it work with both Rollup and Jest.
|
|
1791
1668
|
var react = React$3['default'] ? React$3['default'] : React$3;
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
b+
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var c=Object(a);for(var e,f=1;f<arguments.length;f++){var d=Object(arguments[f]);for(var
|
|
17
|
-
b,c,e){},enqueueSetState:function(a,b,c,e){}};n.prototype.isReactComponent={};n.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?
|
|
18
|
-
!0;d.render=function(){return this.props.children};var
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
a);b.type=a;return b},isValidElement:B,version:"16.1.0-beta",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:F,assign:v}};var O=Object.freeze({default:d});d=O&&d||O;return d["default"]?d["default"]:d});
|
|
1
|
+
/** @license React v16.1.1
|
|
2
|
+
* react.production.min.js
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2013-present, Facebook, Inc.
|
|
5
|
+
*
|
|
6
|
+
* This source code is licensed under the MIT license found in the
|
|
7
|
+
* LICENSE file in the root directory of this source tree.
|
|
8
|
+
*/
|
|
9
|
+
'use strict';(function(p,l){"object"===typeof exports&&"undefined"!==typeof module?module.exports=l():"function"===typeof define&&define.amd?define(l):p.React=l()})(this,function(){function p(a){for(var b=arguments.length-1,c="Minified React error #"+a+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant\x3d"+a,e=0;e<b;e++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[e+1]);b=Error(c+" 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 l(a){return function(){return a}}function n(a,b,c){this.props=a;this.context=b;this.refs=v;this.updater=c||w}function x(a,b,c){this.props=a;this.context=b;this.refs=v;this.updater=c||w}function y(){}function z(a,b,c){this.props=a;this.context=b;this.refs=v;this.updater=c||w}function F(a,b,c){var e,f={},d=null,h=null;if(null!=b)for(e in void 0!==b.ref&&(h=b.ref),void 0!==b.key&&(d=""+b.key),b)G.call(b,e)&&!H.hasOwnProperty(e)&&(f[e]=b[e]);
|
|
11
|
+
var g=arguments.length-2;if(1===g)f.children=c;else if(1<g){for(var k=Array(g),m=0;m<g;m++)k[m]=arguments[m+2];f.children=k}if(a&&a.defaultProps)for(e in g=a.defaultProps,g)void 0===f[e]&&(f[e]=g[e]);return{$$typeof:r,type:a,key:d,ref:h,props:f,_owner:A.current}}function B(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 I(a,b,c,e){if(t.length){var f=t.pop();f.result=a;f.keyPrefix=
|
|
12
|
+
b;f.func=c;f.context=e;f.count=0;return f}return{result:a,keyPrefix:b,func:c,context:e,count:0}}function J(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>t.length&&t.push(a)}function q(a,b,c,e){var f=typeof a;if("undefined"===f||"boolean"===f)a=null;if(null===a||"string"===f||"number"===f||"object"===f&&a.$$typeof===P||"object"===f&&a.$$typeof===Q)return c(e,a,""===b?"."+C(a,0):b),1;var d=0;b=""===b?".":b+":";if(Array.isArray(a))for(var h=0;h<a.length;h++){f=a[h];var g=
|
|
13
|
+
b+C(f,h);d+=q(f,g,c,e)}else if(g=K&&a[K]||a["@@iterator"],"function"===typeof g)for(a=g.call(a),h=0;!(f=a.next()).done;)f=f.value,g=b+C(f,h++),d+=q(f,g,c,e);else"object"===f&&(c=""+a,p("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return d}function C(a,b){return"object"===typeof a&&null!==a&&null!=a.key?O(a.key):b.toString(36)}function R(a,b,c){a.func.call(a.context,b,a.count++)}function S(a,b,c){var e=a.result,f=a.keyPrefix;a=a.func.call(a.context,b,a.count++);
|
|
14
|
+
Array.isArray(a)?D(a,e,c,E.thatReturnsArgument):null!=a&&(B(a)&&(b=f+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(L,"$\x26/")+"/")+c,a={$$typeof:r,type:a.type,key:b,ref:a.ref,props:a.props,_owner:a._owner}),e.push(a))}function D(a,b,c,e,f){var d="";null!=c&&(d=(""+c).replace(L,"$\x26/")+"/");b=I(b,d,e,f);null==a||q(a,"",S,b);J(b)}var M=Object.getOwnPropertySymbols,T=Object.prototype.hasOwnProperty,U=Object.prototype.propertyIsEnumerable,u=function(){try{if(!Object.assign)return!1;var a=new String("abc");
|
|
15
|
+
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 c={};"abcdefghijklmnopqrst".split("").forEach(function(a){c[a]=a});return"abcdefghijklmnopqrst"!==Object.keys(Object.assign({},c)).join("")?!1:!0}catch(e){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 c=Object(a);for(var e,f=1;f<arguments.length;f++){var d=Object(arguments[f]);for(var h in d)T.call(d,h)&&(c[h]=d[h]);if(M){e=M(d);for(var g=0;g<e.length;g++)U.call(d,e[g])&&(c[e[g]]=d[e[g]])}}return c},v={},d=function(){};d.thatReturns=l;d.thatReturnsFalse=l(!1);d.thatReturnsTrue=l(!0);d.thatReturnsNull=l(null);d.thatReturnsThis=function(){return this};d.thatReturnsArgument=function(a){return a};var E=d,w={isMounted:function(a){return!1},enqueueForceUpdate:function(a,b,c){},enqueueReplaceState:function(a,
|
|
17
|
+
b,c,e){},enqueueSetState:function(a,b,c,e){}};n.prototype.isReactComponent={};n.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?p("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};n.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};y.prototype=n.prototype;d=x.prototype=new y;d.constructor=x;u(d,n.prototype);d.isPureReactComponent=!0;d=z.prototype=new y;d.constructor=z;u(d,n.prototype);d.unstable_isAsyncReactComponent=
|
|
18
|
+
!0;d.render=function(){return this.props.children};var A={current:null},G=Object.prototype.hasOwnProperty,r="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,H={key:!0,ref:!0,__self:!0,__source:!0},K="function"===typeof Symbol&&Symbol.iterator,P="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,Q="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.portal")||60106,L=/\/+/g,t=[];"function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.fragment");
|
|
19
|
+
d={Children:{map:function(a,b,c){if(null==a)return a;var e=[];D(a,e,null,b,c);return e},forEach:function(a,b,c){if(null==a)return a;b=I(null,null,b,c);null==a||q(a,"",R,b);J(b)},count:function(a,b){return null==a?0:q(a,"",E.thatReturnsNull,null)},toArray:function(a){var b=[];D(a,b,null,E.thatReturnsArgument);return b},only:function(a){B(a)?void 0:p("143");return a}},Component:n,PureComponent:x,unstable_AsyncComponent:z,createElement:F,cloneElement:function(a,b,c){var e=u({},a.props),d=a.key,l=a.ref,
|
|
20
|
+
h=a._owner;if(null!=b){void 0!==b.ref&&(l=b.ref,h=A.current);void 0!==b.key&&(d=""+b.key);if(a.type&&a.type.defaultProps)var g=a.type.defaultProps;for(k in b)G.call(b,k)&&!H.hasOwnProperty(k)&&(e[k]=void 0===b[k]&&void 0!==g?g[k]:b[k])}var k=arguments.length-2;if(1===k)e.children=c;else if(1<k){g=Array(k);for(var m=0;m<k;m++)g[m]=arguments[m+2];e.children=g}return{$$typeof:r,type:a.type,key:d,ref:l,props:e,_owner:h}},createFactory:function(a){var b=F.bind(null,a);b.type=a;return b},isValidElement:B,
|
|
21
|
+
version:"16.1.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:A,assign:u}};var N=Object.freeze({default:d});d=N&&d||N;return d["default"]?d["default"]:d});
|