react 16.0.0-beta.5 → 16.0.0-rc.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.
@@ -63,7 +63,7 @@ var ReactNoopUpdateQueue = {
63
63
  *
64
64
  * @param {ReactClass} publicInstance The instance that should rerender.
65
65
  * @param {?function} callback Called after component is updated.
66
- * @param {?string} Name of the calling function in the public API.
66
+ * @param {?string} callerName name of the calling function in the public API.
67
67
  * @internal
68
68
  */
69
69
  enqueueForceUpdate: function (publicInstance, callback, callerName) {
@@ -80,7 +80,7 @@ var ReactNoopUpdateQueue = {
80
80
  * @param {ReactClass} publicInstance The instance that should rerender.
81
81
  * @param {object} completeState Next state.
82
82
  * @param {?function} callback Called after component is updated.
83
- * @param {?string} Name of the calling function in the public API.
83
+ * @param {?string} callerName name of the calling function in the public API.
84
84
  * @internal
85
85
  */
86
86
  enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
@@ -1002,7 +1002,7 @@ var ReactChildren_1 = ReactChildren;
1002
1002
  * @providesModule ReactVersion
1003
1003
  */
1004
1004
 
1005
- var ReactVersion = '16.0.0-beta.5';
1005
+ var ReactVersion = '16.0.0-rc.1';
1006
1006
 
1007
1007
  /**
1008
1008
  * Returns the first child in a collection of children and verifies that there
@@ -1185,7 +1185,9 @@ function validateExplicitKey(element, parentType) {
1185
1185
  }
1186
1186
 
1187
1187
  currentlyValidatingElement = element;
1188
- warning$3(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum$1());
1188
+ {
1189
+ warning$3(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum$1());
1190
+ }
1189
1191
  currentlyValidatingElement = null;
1190
1192
  }
1191
1193
 
@@ -1 +1,14 @@
1
- "use strict";function e(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}function t(e,t){}function n(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||R}function r(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||R}function o(){}function u(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||R}function l(e){return void 0!==e.ref}function i(e){return void 0!==e.key}function c(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function a(e){return(""+e).replace(B,"$&/")}function f(e,t,n,r){if(Y.length){var o=Y.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function p(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,Y.length<W&&Y.push(e)}function s(e,t,n,r){var o=typeof e;if("undefined"!==o&&"boolean"!==o||(e=null),null===e||"string"===o||"number"===o||"object"===o&&e.$$typeof===D)return n(r,e,""===t?K+d(e,0):t),1;var u,l,i=0,c=""===t?K:t+M;if(Array.isArray(e))for(var a=0;a<e.length;a++)u=e[a],l=c+d(u,a),i+=s(u,l,n,r);else{var f=T&&e[T]||e[L];if("function"==typeof f)for(var p,y=f.call(e),m=0;!(p=y.next()).done;)u=p.value,l=c+d(u,m++),i+=s(u,l,n,r);else if("object"===o){var h=""+e;C("31","[object Object]"===h?"object with keys {"+Object.keys(e).join(", ")+"}":h,"")}}return i}function y(e,t,n){return null==e?0:s(e,"",t,n)}function d(e,t){return"object"==typeof e&&null!==e&&null!=e.key?c(e.key):t.toString(36)}function m(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function h(e,t,n){if(null==e)return e;var r=f(null,null,t,n);y(e,m,r),p(r)}function v(e,t,n){var r=e.result,o=e.keyPrefix,u=e.func,l=e.context,i=u.call(l,t,e.count++);Array.isArray(i)?b(i,r,n,j.thatReturnsArgument):null!=i&&(N.isValidElement(i)&&(i=N.cloneAndReplaceKey(i,o+(!i.key||t&&t.key===i.key?"":a(i.key)+"/")+n)),r.push(i))}function b(e,t,n,r,o){var u="";null!=n&&(u=a(n)+"/");var l=f(t,u,r,o);y(e,v,l),p(l)}function _(e,t,n){if(null==e)return e;var r=[];return b(e,r,null,t,n),r}function E(e,t){return y(e,j.thatReturnsNull,null)}function S(e){var t=[];return b(e,t,null,j.thatReturnsArgument),t}function k(e){return N.isValidElement(e)||C("143"),e}var A=require("object-assign"),g=require("fbjs/lib/emptyObject");require("fbjs/lib/invariant");var j=require("fbjs/lib/emptyFunction"),C=e,P={isMounted:function(e){return!1},enqueueForceUpdate:function(e,n,r){t(e,"forceUpdate")},enqueueReplaceState:function(e,n,r,o){t(e,"replaceState")},enqueueSetState:function(e,n,r,o){t(e,"setState")}},R=P;n.prototype.isReactComponent={},n.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&C("85"),this.updater.enqueueSetState(this,e,t,"setState")},n.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=n.prototype;var x=r.prototype=new o;x.constructor=r,A(x,n.prototype),x.isPureReactComponent=!0;var w=u.prototype=new o;w.constructor=u,A(w,n.prototype),w.unstable_isAsyncReactComponent=!0,w.render=function(){return this.props.children};var O={Component:n,PureComponent:r,AsyncComponent:u},q={current:null},U=q,$=Object.prototype.hasOwnProperty,F="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,V={key:!0,ref:!0,__self:!0,__source:!0},I=function(e,t,n,r,o,u,l){return{$$typeof:F,type:e,key:t,ref:n,props:l,_owner:u}};I.createElement=function(e,t,n){var r,o={},u=null,c=null,a=null,f=null;if(null!=t){l(t)&&(c=t.ref),i(t)&&(u=""+t.key),a=void 0===t.__self?null:t.__self,f=void 0===t.__source?null:t.__source;for(r in t)$.call(t,r)&&!V.hasOwnProperty(r)&&(o[r]=t[r])}var p=arguments.length-2;if(1===p)o.children=n;else if(p>1){for(var s=Array(p),y=0;y<p;y++)s[y]=arguments[y+2];o.children=s}if(e&&e.defaultProps){var d=e.defaultProps;for(r in d)void 0===o[r]&&(o[r]=d[r])}return I(e,u,c,a,f,U.current,o)},I.createFactory=function(e){var t=I.createElement.bind(null,e);return t.type=e,t},I.cloneAndReplaceKey=function(e,t){return I(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},I.cloneElement=function(e,t,n){var r,o=A({},e.props),u=e.key,c=e.ref,a=e._self,f=e._source,p=e._owner;if(null!=t){l(t)&&(c=t.ref,p=U.current),i(t)&&(u=""+t.key);var s;e.type&&e.type.defaultProps&&(s=e.type.defaultProps);for(r in t)$.call(t,r)&&!V.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==s?o[r]=s[r]:o[r]=t[r])}var y=arguments.length-2;if(1===y)o.children=n;else if(y>1){for(var d=Array(y),m=0;m<y;m++)d[m]=arguments[m+2];o.children=d}return I(e.type,u,c,a,f,p,o)},I.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===F};var N=I,T="function"==typeof Symbol&&Symbol.iterator,L="@@iterator",D="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,K=".",M=":",B=/\/+/g,W=10,Y=[],z={forEach:h,map:_,count:E,toArray:S},G=z,H="16.0.0-beta.5",J=k,Q=N.createElement,X=N.createFactory,Z=N.cloneElement,ee={Children:{map:G.map,forEach:G.forEach,count:G.count,toArray:G.toArray,only:J},Component:O.Component,PureComponent:O.PureComponent,unstable_AsyncComponent:O.AsyncComponent,createElement:Q,cloneElement:Z,isValidElement:N.isValidElement,createFactory:X,version:H,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:U}},te=ee;module.exports=te;
1
+ var f=require("object-assign"),p=require("fbjs/lib/emptyObject");require("fbjs/lib/invariant");var r=require("fbjs/lib/emptyFunction");
2
+ function t(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,e=0;e<b;e++)d+="\x26args[]\x3d"+encodeURIComponent(arguments[e+1]);b=Error(d+" 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;}
3
+ var u={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}};function v(a,b,d){this.props=a;this.context=b;this.refs=p;this.updater=d||u}v.prototype.isReactComponent={};v.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?t("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};v.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};
4
+ function w(a,b,d){this.props=a;this.context=b;this.refs=p;this.updater=d||u}function x(){}x.prototype=v.prototype;var y=w.prototype=new x;y.constructor=w;f(y,v.prototype);y.isPureReactComponent=!0;function z(a,b,d){this.props=a;this.context=b;this.refs=p;this.updater=d||u}var A=z.prototype=new x;A.constructor=z;f(A,v.prototype);A.unstable_isAsyncReactComponent=!0;A.render=function(){return this.props.children};
5
+ var B={Component:v,PureComponent:w,AsyncComponent:z},C={current:null},D=Object.prototype.hasOwnProperty,E="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,F={key:!0,ref:!0,__self:!0,__source:!0};function G(a,b,d,e,c,g,k){return{$$typeof:E,type:a,key:b,ref:d,props:k,_owner:g}}
6
+ G.createElement=function(a,b,d){var e,c={},g=null,k=null,m=null,q=null;if(null!=b)for(e in void 0!==b.ref&&(k=b.ref),void 0!==b.key&&(g=""+b.key),m=void 0===b.__self?null:b.__self,q=void 0===b.__source?null:b.__source,b)D.call(b,e)&&!F.hasOwnProperty(e)&&(c[e]=b[e]);var l=arguments.length-2;if(1===l)c.children=d;else if(1<l){for(var h=Array(l),n=0;n<l;n++)h[n]=arguments[n+2];c.children=h}if(a&&a.defaultProps)for(e in l=a.defaultProps,l)void 0===c[e]&&(c[e]=l[e]);return G(a,g,k,m,q,C.current,c)};
7
+ G.createFactory=function(a){var b=G.createElement.bind(null,a);b.type=a;return b};G.cloneAndReplaceKey=function(a,b){return G(a.type,b,a.ref,a._self,a._source,a._owner,a.props)};
8
+ G.cloneElement=function(a,b,d){var e=f({},a.props),c=a.key,g=a.ref,k=a._self,m=a._source,q=a._owner;if(null!=b){void 0!==b.ref&&(g=b.ref,q=C.current);void 0!==b.key&&(c=""+b.key);if(a.type&&a.type.defaultProps)var l=a.type.defaultProps;for(h in b)D.call(b,h)&&!F.hasOwnProperty(h)&&(e[h]=void 0===b[h]&&void 0!==l?l[h]:b[h])}var h=arguments.length-2;if(1===h)e.children=d;else if(1<h){l=Array(h);for(var n=0;n<h;n++)l[n]=arguments[n+2];e.children=l}return G(a.type,c,g,k,m,q,e)};
9
+ G.isValidElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===E};var H="function"===typeof Symbol&&Symbol.iterator,I="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103;function escape(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}var J=/\/+/g,K=[];
10
+ function L(a,b,d,e){if(K.length){var c=K.pop();c.result=a;c.keyPrefix=b;c.func=d;c.context=e;c.count=0;return c}return{result:a,keyPrefix:b,func:d,context:e,count:0}}function M(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>K.length&&K.push(a)}
11
+ function N(a,b,d,e){var c=typeof a;if("undefined"===c||"boolean"===c)a=null;if(null===a||"string"===c||"number"===c||"object"===c&&a.$$typeof===I)return d(e,a,""===b?"."+O(a,0):b),1;var g=0;b=""===b?".":b+":";if(Array.isArray(a))for(var k=0;k<a.length;k++){c=a[k];var m=b+O(c,k);g+=N(c,m,d,e)}else if(m=H&&a[H]||a["@@iterator"],"function"===typeof m)for(a=m.call(a),k=0;!(c=a.next()).done;)c=c.value,m=b+O(c,k++),g+=N(c,m,d,e);else"object"===c&&(d=""+a,t("31","[object Object]"===d?"object with keys {"+
12
+ Object.keys(a).join(", ")+"}":d,""));return g}function O(a,b){return"object"===typeof a&&null!==a&&null!=a.key?escape(a.key):b.toString(36)}function P(a,b){a.func.call(a.context,b,a.count++)}function Q(a,b,d){var e=a.result,c=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?R(a,e,d,r.thatReturnsArgument):null!=a&&(G.isValidElement(a)&&(a=G.cloneAndReplaceKey(a,c+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(J,"$\x26/")+"/")+d)),e.push(a))}
13
+ function R(a,b,d,e,c){var g="";null!=d&&(g=(""+d).replace(J,"$\x26/")+"/");b=L(b,g,e,c);null==a||N(a,"",Q,b);M(b)}var S={forEach:function(a,b,d){if(null==a)return a;b=L(null,null,b,d);null==a||N(a,"",P,b);M(b)},map:function(a,b,d){if(null==a)return a;var e=[];R(a,e,null,b,d);return e},count:function(a){return null==a?0:N(a,"",r.thatReturnsNull,null)},toArray:function(a){var b=[];R(a,b,null,r.thatReturnsArgument);return b}};
14
+ module.exports={Children:{map:S.map,forEach:S.forEach,count:S.count,toArray:S.toArray,only:function(a){G.isValidElement(a)?void 0:t("143");return a}},Component:B.Component,PureComponent:B.PureComponent,unstable_AsyncComponent:B.AsyncComponent,createElement:G.createElement,cloneElement:G.cloneElement,isValidElement:G.isValidElement,createFactory:G.createFactory,version:"16.0.0-rc.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:C}};
package/index.js CHANGED
@@ -1,6 +1,50 @@
1
1
  'use strict';
2
2
 
3
+ function testMinificationUsedDCE() {
4
+ if (process.env.NODE_ENV === 'development') {
5
+ // We expect this method only to be called in production.
6
+ throw new Error('This is unreachable');
7
+ }
8
+ try {
9
+ // use scoped variable for our initial test, in case
10
+ // 'top-level' mangling is not enabled.
11
+ const source = testMinificationUsedDCE.toString();
12
+ const longVariableName = true;
13
+ if (longVariableName && source.match(/longVariableName/g).length === 3) {
14
+ // We are not minified.
15
+ // This might be a Node environment where DCE is not expected anyway.
16
+ return;
17
+ }
18
+ if (source.match(/toString/g).length !== 2) {
19
+ // We always look for two matches:
20
+ // The actual occurence and then the call to 'match'
21
+ //
22
+ // We know for a fact the above line exists so there should be 2
23
+ // matches.
24
+ // Therefore the browser gave us invalid source.
25
+ return;
26
+ }
27
+ if (source.match(/unreachable/g).length === 2) {
28
+ // We always look for two matches:
29
+ // The actual occurence and then the call to 'match'
30
+
31
+ // Dead code elimination would have stripped that branch
32
+ // because it is impossible to reach in production.
33
+ setTimeout(function() {
34
+ // Ensure it gets reported to production logging
35
+ throw new Error(
36
+ 'React is running in production mode, but dead code ' +
37
+ 'elimination has not been applied. Read how to correctly ' +
38
+ 'configure React for production: ' +
39
+ 'https://fburl.com/react-perf-use-the-production-build'
40
+ );
41
+ });
42
+ }
43
+ } catch (e) {}
44
+ }
45
+
3
46
  if (process.env.NODE_ENV === 'production') {
47
+ testMinificationUsedDCE();
4
48
  module.exports = require('./cjs/react.production.min.js');
5
49
  } else {
6
50
  module.exports = require('./cjs/react.development.js');
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "react",
3
3
  "description": "React is a JavaScript library for building user interfaces.",
4
- "version": "16.0.0-beta.5",
4
+ "version": "16.0.0-rc.1",
5
5
  "keywords": [
6
6
  "react"
7
7
  ],
@@ -1,5 +1,5 @@
1
1
  /**
2
- * react.development.js v16.0.0-beta.5
2
+ * react.development.js v16.0.0-rc.1
3
3
  */
4
4
 
5
5
  (function (global, factory) {
@@ -157,45 +157,43 @@ var emptyFunction_1 = emptyFunction;
157
157
  var warning$1 = emptyFunction_1;
158
158
 
159
159
  {
160
- (function () {
161
- var printWarning = function printWarning(format) {
162
- for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
163
- args[_key - 1] = arguments[_key];
164
- }
165
-
166
- var argIndex = 0;
167
- var message = 'Warning: ' + format.replace(/%s/g, function () {
168
- return args[argIndex++];
169
- });
170
- if (typeof console !== 'undefined') {
171
- console.error(message);
172
- }
173
- try {
174
- // --- Welcome to debugging React ---
175
- // This error was thrown as a convenience so that you can use this stack
176
- // to find the callsite that caused this warning to fire.
177
- throw new Error(message);
178
- } catch (x) {}
179
- };
160
+ var printWarning = function printWarning(format) {
161
+ for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
162
+ args[_key - 1] = arguments[_key];
163
+ }
180
164
 
181
- warning$1 = function warning(condition, format) {
182
- if (format === undefined) {
183
- throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
184
- }
165
+ var argIndex = 0;
166
+ var message = 'Warning: ' + format.replace(/%s/g, function () {
167
+ return args[argIndex++];
168
+ });
169
+ if (typeof console !== 'undefined') {
170
+ console.error(message);
171
+ }
172
+ try {
173
+ // --- Welcome to debugging React ---
174
+ // This error was thrown as a convenience so that you can use this stack
175
+ // to find the callsite that caused this warning to fire.
176
+ throw new Error(message);
177
+ } catch (x) {}
178
+ };
185
179
 
186
- if (format.indexOf('Failed Composite propType: ') === 0) {
187
- return; // Ignore CompositeComponent proptype check.
188
- }
180
+ warning$1 = function warning(condition, format) {
181
+ if (format === undefined) {
182
+ throw new Error('`warning(condition, format, ...args)` requires a warning ' + 'message argument');
183
+ }
189
184
 
190
- if (!condition) {
191
- for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
192
- args[_key2 - 2] = arguments[_key2];
193
- }
185
+ if (format.indexOf('Failed Composite propType: ') === 0) {
186
+ return; // Ignore CompositeComponent proptype check.
187
+ }
194
188
 
195
- printWarning.apply(undefined, [format].concat(args));
189
+ if (!condition) {
190
+ for (var _len2 = arguments.length, args = Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
191
+ args[_key2 - 2] = arguments[_key2];
196
192
  }
197
- };
198
- })();
193
+
194
+ printWarning.apply(undefined, [format].concat(args));
195
+ }
196
+ };
199
197
  }
200
198
 
201
199
  var warning_1 = warning$1;
@@ -238,7 +236,7 @@ var ReactNoopUpdateQueue = {
238
236
  *
239
237
  * @param {ReactClass} publicInstance The instance that should rerender.
240
238
  * @param {?function} callback Called after component is updated.
241
- * @param {?string} Name of the calling function in the public API.
239
+ * @param {?string} callerName name of the calling function in the public API.
242
240
  * @internal
243
241
  */
244
242
  enqueueForceUpdate: function (publicInstance, callback, callerName) {
@@ -255,7 +253,7 @@ var ReactNoopUpdateQueue = {
255
253
  * @param {ReactClass} publicInstance The instance that should rerender.
256
254
  * @param {object} completeState Next state.
257
255
  * @param {?function} callback Called after component is updated.
258
- * @param {?string} Name of the calling function in the public API.
256
+ * @param {?string} callerName name of the calling function in the public API.
259
257
  * @internal
260
258
  */
261
259
  enqueueReplaceState: function (publicInstance, completeState, callback, callerName) {
@@ -381,7 +379,7 @@ var invariant_1 = invariant;
381
379
  var lowPriorityWarning = function () {};
382
380
 
383
381
  {
384
- var printWarning = function (format) {
382
+ var printWarning$1 = function (format) {
385
383
  for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
386
384
  args[_key - 1] = arguments[_key];
387
385
  }
@@ -410,7 +408,7 @@ var lowPriorityWarning = function () {};
410
408
  args[_key2 - 2] = arguments[_key2];
411
409
  }
412
410
 
413
- printWarning.apply(undefined, [format].concat(args));
411
+ printWarning$1.apply(undefined, [format].concat(args));
414
412
  }
415
413
  };
416
414
  }
@@ -1249,7 +1247,7 @@ var ReactChildren_1 = ReactChildren;
1249
1247
  * @providesModule ReactVersion
1250
1248
  */
1251
1249
 
1252
- var ReactVersion = '16.0.0-beta.5';
1250
+ var ReactVersion = '16.0.0-rc.1';
1253
1251
 
1254
1252
  /**
1255
1253
  * Returns the first child in a collection of children and verifies that there
@@ -1496,7 +1494,9 @@ function validateExplicitKey(element, parentType) {
1496
1494
  }
1497
1495
 
1498
1496
  currentlyValidatingElement = element;
1499
- warning$4(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum$1());
1497
+ {
1498
+ warning$4(false, 'Each child in an array or iterator should have a unique "key" prop.' + '%s%s See https://fb.me/react-warning-keys for more information.%s', currentComponentErrorInfo, childOwner, getStackAddendum$1());
1499
+ }
1500
1500
  currentlyValidatingElement = null;
1501
1501
  }
1502
1502
 
@@ -1,4 +1,13 @@
1
- /**
2
- * react.production.min.js v16.0.0-beta.5
3
- */
4
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.React=t()}(this,function(){"use strict";function e(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function t(e){for(var t=arguments.length-1,n="Minified React error #"+e+"; visit http://facebook.github.io/react/docs/error-decoder.html?invariant="+e,r=0;r<t;r++)n+="&args[]="+encodeURIComponent(arguments[r+1]);n+=" for the full message or use the non-minified dev environment for full errors and additional helpful warnings.";var o=new Error(n);throw o.name="Invariant Violation",o.framesToPop=1,o}function n(e,t,n){this.props=e,this.context=t,this.refs=$,this.updater=n||C}function r(e,t,n){this.props=e,this.context=t,this.refs=$,this.updater=n||C}function o(){}function u(e,t,n){this.props=e,this.context=t,this.refs=$,this.updater=n||C}function i(e){return void 0!==e.ref}function c(e){return void 0!==e.key}function l(e){return function(){return e}}function a(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function f(e){return(""+e).replace(J,"$&/")}function s(e,t,n,r){if(X.length){var o=X.pop();return o.result=e,o.keyPrefix=t,o.func=n,o.context=r,o.count=0,o}return{result:e,keyPrefix:t,func:n,context:r,count:0}}function p(e){e.result=null,e.keyPrefix=null,e.func=null,e.context=null,e.count=0,X.length<Q&&X.push(e)}function y(e,t,n,r){var o=typeof e;if("undefined"!==o&&"boolean"!==o||(e=null),null===e||"string"===o||"number"===o||"object"===o&&e.$$typeof===z)return n(r,e,""===t?G+d(e,0):t),1;var u,i,c=0,l=""===t?G:t+H;if(Array.isArray(e))for(var a=0;a<e.length;a++)u=e[a],i=l+d(u,a),c+=y(u,i,n,r);else{var f=W&&e[W]||e[Y];if("function"==typeof f)for(var s,p=f.call(e),h=0;!(s=p.next()).done;)u=s.value,i=l+d(u,h++),c+=y(u,i,n,r);else if("object"===o){var m=""+e;P("31","[object Object]"===m?"object with keys {"+Object.keys(e).join(", ")+"}":m,"")}}return c}function h(e,t,n){return null==e?0:y(e,"",t,n)}function d(e,t){return"object"==typeof e&&null!==e&&null!=e.key?a(e.key):t.toString(36)}function m(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function v(e,t,n){if(null==e)return e;var r=s(null,null,t,n);h(e,m,r),p(r)}function b(e,t,n){var r=e.result,o=e.keyPrefix,u=e.func,i=e.context,c=u.call(i,t,e.count++);Array.isArray(c)?_(c,r,n,B.thatReturnsArgument):null!=c&&(K.isValidElement(c)&&(c=K.cloneAndReplaceKey(c,o+(!c.key||t&&t.key===c.key?"":f(c.key)+"/")+n)),r.push(c))}function _(e,t,n,r,o){var u="";null!=n&&(u=f(n)+"/");var i=s(t,u,r,o);h(e,b,i),p(i)}function g(e,t,n){if(null==e)return e;var r=[];return _(e,r,null,t,n),r}function j(e,t){return h(e,B.thatReturnsNull,null)}function O(e){var t=[];return _(e,t,null,B.thatReturnsArgument),t}function E(e){return K.isValidElement(e)||P("143"),e}var R=Object.getOwnPropertySymbols,k=Object.prototype.hasOwnProperty,S=Object.prototype.propertyIsEnumerable,w=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(t,n){for(var r,o,u=e(t),i=1;i<arguments.length;i++){r=Object(arguments[i]);for(var c in r)k.call(r,c)&&(u[c]=r[c]);if(R){o=R(r);for(var l=0;l<o.length;l++)S.call(r,o[l])&&(u[o[l]]=r[o[l]])}}return u},P=t,A={isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){},enqueueReplaceState:function(e,t,n,r){},enqueueSetState:function(e,t,n,r){}},C=A,x={},$=x;n.prototype.isReactComponent={},n.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&P("85"),this.updater.enqueueSetState(this,e,t,"setState")},n.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},o.prototype=n.prototype;var q=r.prototype=new o;q.constructor=r,w(q,n.prototype),q.isPureReactComponent=!0;var F=u.prototype=new o;F.constructor=u,w(F,n.prototype),F.unstable_isAsyncReactComponent=!0,F.render=function(){return this.props.children};var N={Component:n,PureComponent:r,AsyncComponent:u},T={current:null},U=T,I=Object.prototype.hasOwnProperty,V="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,L={key:!0,ref:!0,__self:!0,__source:!0},D=function(e,t,n,r,o,u,i){return{$$typeof:V,type:e,key:t,ref:n,props:i,_owner:u}};D.createElement=function(e,t,n){var r,o={},u=null,l=null;if(null!=t){i(t)&&(l=t.ref),c(t)&&(u=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(r in t)I.call(t,r)&&!L.hasOwnProperty(r)&&(o[r]=t[r])}var a=arguments.length-2;if(1===a)o.children=n;else if(a>1){for(var f=Array(a),s=0;s<a;s++)f[s]=arguments[s+2];o.children=f}if(e&&e.defaultProps){var p=e.defaultProps;for(r in p)void 0===o[r]&&(o[r]=p[r])}return D(e,u,l,0,0,U.current,o)},D.createFactory=function(e){var t=D.createElement.bind(null,e);return t.type=e,t},D.cloneAndReplaceKey=function(e,t){return D(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},D.cloneElement=function(e,t,n){var r,o=w({},e.props),u=e.key,l=e.ref,a=(e._self,e._source,e._owner);if(null!=t){i(t)&&(l=t.ref,a=U.current),c(t)&&(u=""+t.key);var f;e.type&&e.type.defaultProps&&(f=e.type.defaultProps);for(r in t)I.call(t,r)&&!L.hasOwnProperty(r)&&(void 0===t[r]&&void 0!==f?o[r]=f[r]:o[r]=t[r])}var s=arguments.length-2;if(1===s)o.children=n;else if(s>1){for(var p=Array(s),y=0;y<s;y++)p[y]=arguments[y+2];o.children=p}return D(e.type,u,l,0,0,a,o)},D.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===V};var K=D,M=function(){};M.thatReturns=l,M.thatReturnsFalse=l(!1),M.thatReturnsTrue=l(!0),M.thatReturnsNull=l(null),M.thatReturnsThis=function(){return this},M.thatReturnsArgument=function(e){return e};var B=M,W="function"==typeof Symbol&&Symbol.iterator,Y="@@iterator",z="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,G=".",H=":",J=/\/+/g,Q=10,X=[],Z={forEach:v,map:g,count:j,toArray:O},ee=Z,te=E,ne=K.createElement,re=K.createFactory;return{Children:{map:ee.map,forEach:ee.forEach,count:ee.count,toArray:ee.toArray,only:te},Component:N.Component,PureComponent:N.PureComponent,unstable_AsyncComponent:N.AsyncComponent,createElement:ne,cloneElement:K.cloneElement,isValidElement:K.isValidElement,createFactory:re,version:"16.0.0-beta.5",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:U}}});
1
+ function x(){function q(){}function n(a,b,c,d,e,f,g){return{$$typeof:J,type:a,key:b,ref:c,props:g,_owner:f}}function y(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,d=0;d<b;d++)c+="\x26args[]\x3d"+encodeURIComponent(arguments[d+1]);b=Error(c+" 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;
2
+ }function r(a,b,c){this.props=a;this.context=b;this.refs=z;this.updater=c||A}function B(a,b,c){this.props=a;this.context=b;this.refs=z;this.updater=c||A}function C(){}function D(a,b,c){this.props=a;this.context=b;this.refs=z;this.updater=c||A}function v(a){return function(){return a}}function R(a){var b={"\x3d":"\x3d0",":":"\x3d2"};return"$"+(""+a).replace(/[=:]/g,function(a){return b[a]})}function K(a,b,c,d){if(w.length){var e=w.pop();e.result=a;e.keyPrefix=b;e.func=c;e.context=d;e.count=0;return e}return{result:a,
3
+ keyPrefix:b,func:c,context:d,count:0}}function L(a){a.result=null;a.keyPrefix=null;a.func=null;a.context=null;a.count=0;10>w.length&&w.push(a)}function u(a,b,c,d){var e=typeof a;if("undefined"===e||"boolean"===e)a=null;if(null===a||"string"===e||"number"===e||"object"===e&&a.$$typeof===S)return c(d,a,""===b?"."+E(a,0):b),1;var f=0;b=""===b?".":b+":";if(Array.isArray(a))for(var g=0;g<a.length;g++){e=a[g];var h=b+E(e,g);f+=u(e,h,c,d)}else if(h=M&&a[M]||a["@@iterator"],"function"===typeof h)for(a=h.call(a),
4
+ g=0;!(e=a.next()).done;)e=e.value,h=b+E(e,g++),f+=u(e,h,c,d);else"object"===e&&(c=""+a,y("31","[object Object]"===c?"object with keys {"+Object.keys(a).join(", ")+"}":c,""));return f}function E(a,b){return"object"===typeof a&&null!==a&&null!=a.key?R(a.key):b.toString(36)}function T(a,b){a.func.call(a.context,b,a.count++)}function U(a,b,c){var d=a.result,e=a.keyPrefix;a=a.func.call(a.context,b,a.count++);Array.isArray(a)?F(a,d,c,G.thatReturnsArgument):null!=a&&(t.isValidElement(a)&&(a=t.cloneAndReplaceKey(a,
5
+ e+(!a.key||b&&b.key===a.key?"":(""+a.key).replace(N,"$\x26/")+"/")+c)),d.push(a))}function F(a,b,c,d,e){var f="";null!=c&&(f=(""+c).replace(N,"$\x26/")+"/");b=K(b,f,d,e);null==a||u(a,"",U,b);L(b)}var O=Object.getOwnPropertySymbols,V=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,H=function(){try{if(!Object.assign)return!1;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"!==
6
+ 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(d){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");var c=Object(a);for(var d,e=1;e<arguments.length;e++){var f=Object(arguments[e]);for(var g in f)V.call(f,g)&&(c[g]=f[g]);if(O){d=
7
+ O(f);for(var h=0;h<d.length;h++)W.call(f,d[h])&&(c[d[h]]=f[d[h]])}}return c},A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},z={};r.prototype.isReactComponent={};r.prototype.setState=function(a,b){"object"!==typeof a&&"function"!==typeof a&&null!=a?y("85"):void 0;this.updater.enqueueSetState(this,a,b,"setState")};r.prototype.forceUpdate=function(a){this.updater.enqueueForceUpdate(this,a,"forceUpdate")};C.prototype=r.prototype;
8
+ var k=B.prototype=new C;k.constructor=B;H(k,r.prototype);k.isPureReactComponent=!0;k=D.prototype=new C;k.constructor=D;H(k,r.prototype);k.unstable_isAsyncReactComponent=!0;k.render=function(){return this.props.children};var I={current:null},P=Object.prototype.hasOwnProperty,J="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,Q={key:!0,ref:!0,__self:!0,__source:!0};n.createElement=function(a,b,c){var d,e={},f=null,g=null,h=null,k=null;if(null!=b)for(d in void 0!==b.ref&&
9
+ (g=b.ref),void 0!==b.key&&(f=""+b.key),h=void 0===b.__self?null:b.__self,k=void 0===b.__source?null:b.__source,b)P.call(b,d)&&!Q.hasOwnProperty(d)&&(e[d]=b[d]);var m=arguments.length-2;if(1===m)e.children=c;else if(1<m){for(var l=Array(m),p=0;p<m;p++)l[p]=arguments[p+2];e.children=l}if(a&&a.defaultProps)for(d in m=a.defaultProps,m)void 0===e[d]&&(e[d]=m[d]);return n(a,f,g,h,k,I.current,e)};n.createFactory=function(a){var b=n.createElement.bind(null,a);b.type=a;return b};n.cloneAndReplaceKey=function(a,
10
+ b){return n(a.type,b,a.ref,a._self,a._source,a._owner,a.props)};n.cloneElement=function(a,b,c){var d=H({},a.props),e=a.key,f=a.ref,g=a._self,h=a._source,k=a._owner;if(null!=b){void 0!==b.ref&&(f=b.ref,k=I.current);void 0!==b.key&&(e=""+b.key);if(a.type&&a.type.defaultProps)var m=a.type.defaultProps;for(l in b)P.call(b,l)&&!Q.hasOwnProperty(l)&&(d[l]=void 0===b[l]&&void 0!==m?m[l]:b[l])}var l=arguments.length-2;if(1===l)d.children=c;else if(1<l){m=Array(l);for(var p=0;p<l;p++)m[p]=arguments[p+2];d.children=
11
+ m}return n(a.type,e,f,g,h,k,d)};n.isValidElement=function(a){return"object"===typeof a&&null!==a&&a.$$typeof===J};var t=n;q.thatReturns=v;q.thatReturnsFalse=v(!1);q.thatReturnsTrue=v(!0);q.thatReturnsNull=v(null);q.thatReturnsThis=function(){return this};q.thatReturnsArgument=function(a){return a};var G=q,M="function"===typeof Symbol&&Symbol.iterator,S="function"===typeof Symbol&&Symbol["for"]&&Symbol["for"]("react.element")||60103,N=/\/+/g,w=[];return{Children:{map:function(a,b,c){if(null==a)return a;
12
+ var d=[];F(a,d,null,b,c);return d},forEach:function(a,b,c){if(null==a)return a;b=K(null,null,b,c);null==a||u(a,"",T,b);L(b)},count:function(a){return null==a?0:u(a,"",G.thatReturnsNull,null)},toArray:function(a){var b=[];F(a,b,null,G.thatReturnsArgument);return b},only:function(a){t.isValidElement(a)?void 0:y("143");return a}},Component:r,PureComponent:B,unstable_AsyncComponent:D,createElement:t.createElement,cloneElement:t.cloneElement,isValidElement:t.isValidElement,createFactory:t.createFactory,
13
+ version:"16.0.0-rc.1",__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:I}}}"object"===typeof exports&&"undefined"!==typeof module?module.exports=x():"function"===typeof define&&define.amd?define(x):this.React=x();