react 16.0.0-alpha → 16.0.0-alpha.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/react-with-addons.js +595 -536
- package/dist/react-with-addons.min.js +7 -2
- package/dist/react.js +547 -486
- package/dist/react.min.js +7 -2
- package/lib/React.js +17 -19
- package/lib/ReactAddonsDOMDependencies.js +1 -1
- package/lib/{ReactComponent.js → ReactBaseClasses.js} +27 -2
- package/lib/ReactClass.js +9 -9
- package/lib/ReactComponentTreeHook.js +8 -47
- package/lib/ReactDebugCurrentFrame.js +55 -0
- package/lib/ReactElementValidator.js +40 -22
- package/lib/ReactFiberComponentTreeHook.js +62 -0
- package/lib/ReactNoopUpdateQueue.js +1 -1
- package/lib/ReactPropTypes.js +33 -31
- package/lib/{ReactPropTypeLocations.js → ReactPropTypesSecret.js} +5 -1
- package/lib/ReactVersion.js +1 -1
- package/lib/checkPropTypes.js +64 -0
- package/lib/checkReactTypeSpec.js +5 -80
- package/lib/getComponentName.js +14 -16
- package/lib/traverseAllChildren.js +16 -27
- package/lib/update.js +2 -2
- package/package.json +2 -2
- package/lib/ReactPropTypeLocationNames.js +0 -24
- package/lib/ReactPureComponent.js +0 -41
- package/lib/ReactStateSetters.js +0 -103
- package/lib/sliceChildren.js +0 -33
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React (with addons) v16.0.0-alpha
|
|
2
|
+
* React (with addons) v16.0.0-alpha.4
|
|
3
3
|
*
|
|
4
4
|
* Copyright 2013-present, Facebook, Inc.
|
|
5
5
|
* All rights reserved.
|
|
@@ -9,4 +9,9 @@
|
|
|
9
9
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
10
10
|
*
|
|
11
11
|
*/
|
|
12
|
-
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.React=e()}}(function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return o(n?n:e)},p,p.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var i=e(36),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},{36:36}],2:[function(e,t,n){"use strict";function r(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var i={escape:r,unescape:o};t.exports=i},{}],3:[function(e,t,n){"use strict";var r=e(31),o=(e(39),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},u=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,p=o,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=c),n.release=u,n},f={addPoolingTo:l,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};t.exports=f},{31:31,39:39}],4:[function(e,t,n){"use strict";var r=e(42),o=e(8),i=e(10),a=e(20),s=e(9),u=e(13),c=e(14),p=e(19),l=e(24),f=e(30),d=(e(41),c.createElement),h=c.createFactory,y=c.cloneElement,v=r,m={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:f},Component:i,PureComponent:a,createElement:d,cloneElement:y,isValidElement:c.isValidElement,PropTypes:p,createClass:s.createClass,createFactory:h,createMixin:function(e){return e},DOM:u,version:l,__spread:v};t.exports=m},{10:10,13:13,14:14,19:19,20:20,24:24,30:30,41:41,42:42,8:8,9:9}],5:[function(e,t,n){"use strict";function r(){if(!o){var t=e(26);o=t.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}return o}var o;n.getReactDOM=r},{26:26}],6:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to ReactCSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}}}var s=e(42),u=e(4),c=e(23),p=e(7),l=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(c))),i._wrapChild=function(e){return u.createElement(p,{name:i.props.transitionName,appear:i.props.transitionAppear,enter:i.props.transitionEnter,leave:i.props.transitionLeave,appearTimeout:i.props.transitionAppearTimeout,enterTimeout:i.props.transitionEnterTimeout,leaveTimeout:i.props.transitionLeaveTimeout},e)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){return u.createElement(c,s({},this.props,{childFactory:this._wrapChild}))},t}(u.Component);l.displayName="ReactCSSTransitionGroup",l.propTypes={transitionName:p.propTypes.name,transitionAppear:u.PropTypes.bool,transitionEnter:u.PropTypes.bool,transitionLeave:u.PropTypes.bool,transitionAppearTimeout:a("Appear"),transitionEnterTimeout:a("Enter"),transitionLeaveTimeout:a("Leave")},l.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.exports=l},{23:23,4:4,42:42,7:7}],7:[function(e,t,n){"use strict";var r=e(4),o=e(5),i=e(35),a=e(22),s=e(30),u=17,c=r.createClass({displayName:"ReactCSSTransitionGroupChild",propTypes:{name:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.shape({enter:r.PropTypes.string,leave:r.PropTypes.string,active:r.PropTypes.string}),r.PropTypes.shape({enter:r.PropTypes.string,enterActive:r.PropTypes.string,leave:r.PropTypes.string,leaveActive:r.PropTypes.string,appear:r.PropTypes.string,appearActive:r.PropTypes.string})]).isRequired,appear:r.PropTypes.bool,enter:r.PropTypes.bool,leave:r.PropTypes.bool,appearTimeout:r.PropTypes.number,enterTimeout:r.PropTypes.number,leaveTimeout:r.PropTypes.number},transition:function(e,t,n){var r=o.getReactDOM().findDOMNode(this);if(!r)return void(t&&t());var s=this.props.name[e]||this.props.name+"-"+e,u=this.props.name[e+"Active"]||s+"-active",c=null,p=function(e){e&&e.target!==r||(clearTimeout(c),i.removeClass(r,s),i.removeClass(r,u),a.removeEndEventListener(r,p),t&&t())};i.addClass(r,s),this.queueClassAndNode(u,r),n?(c=setTimeout(p,n),this.transitionTimeouts.push(c)):a.addEndEventListener(r,p)},queueClassAndNode:function(e,t){this.classNameAndNodeQueue.push({className:e,node:t}),this.timeout||(this.timeout=setTimeout(this.flushClassNameAndNodeQueue,u))},flushClassNameAndNodeQueue:function(){this.isMounted()&&this.classNameAndNodeQueue.forEach(function(e){i.addClass(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},componentWillAppear:function(e){this.props.appear?this.transition("appear",e,this.props.appearTimeout):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e,this.props.enterTimeout):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e,this.props.leaveTimeout):e()},render:function(){return s(this.props.children)}});t.exports=c},{22:22,30:30,35:35,4:4,5:5}],8:[function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);m(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?c(u,o,n,v.thatReturnsArgument):null!=u&&(y.isValidElement(u)&&(u=y.cloneAndReplaceKey(u,i+(!u.key||t&&t.key===u.key?"":r(u.key)+"/")+n)),o.push(u))}function c(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=s.getPooled(t,a,o,i);m(e,u,c),s.release(c)}function p(e,t,n){if(null==e)return e;var r=[];return c(e,r,null,t,n),r}function l(e,t,n){return null}function f(e,t){return m(e,l,null)}function d(e){var t=[];return c(e,t,null,v.thatReturnsArgument),t}var h=e(3),y=e(14),v=e(37),m=e(33),g=h.twoArgumentPooler,E=h.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,g),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,E);var T={forEach:a,map:p,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=T},{14:14,3:3,33:33,37:37}],9:[function(e,t,n){"use strict";function r(e){return e}function o(e,t){var n=E.hasOwnProperty(t)?E[t]:null;T.hasOwnProperty(t)&&("OVERRIDE_BASE"!==n?f("73",t):void 0),e&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?f("74",t):void 0)}function i(e,t){if(t){"function"==typeof t?f("75"):void 0,y.isValidElement(t)?f("76"):void 0;var n=e.prototype,r=n.__reactAutoBindPairs;t.hasOwnProperty(g)&&b.mixins(e,t.mixins);for(var i in t)if(t.hasOwnProperty(i)&&i!==g){var a=t[i],s=n.hasOwnProperty(i);if(o(s,i),b.hasOwnProperty(i))b[i](e,a);else{var p=E.hasOwnProperty(i),l="function"==typeof a,d=l&&!p&&!s&&t.autobind!==!1;if(d)r.push(i,a),n[i]=a;else if(s){var h=E[i];!p||"DEFINE_MANY_MERGED"!==h&&"DEFINE_MANY"!==h?f("77",h,i):void 0,"DEFINE_MANY_MERGED"===h?n[i]=u(n[i],a):"DEFINE_MANY"===h&&(n[i]=c(n[i],a))}else n[i]=a}}}}function a(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in b;o?f("78",n):void 0;var i=n in e;i?f("79",n):void 0,e[n]=r}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:f("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?f("81",n):void 0,e[n]=t[n]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return s(o,n),s(o,r),o}}function c(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function p(e,t){var n=t.bind(e);return n}function l(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=p(e,o)}}var f=e(31),d=e(42),h=e(10),y=e(14),v=(e(18),e(17)),m=e(38),g=(e(39),e(41),"mixins"),E={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},b={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=d({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=d({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=u(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=d({},e.propTypes,t)},statics:function(e,t){a(e,t)},autobind:function(){}},T={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},_=function(){};d(_.prototype,h.prototype,T);var P={createClass:function(e){var t=r(function(e,n,r){this.__reactAutoBindPairs.length&&l(this),this.props=e,this.context=n,this.refs=m,this.updater=r||v,this.state=null;var o=this.getInitialState?this.getInitialState():null;"object"!=typeof o||Array.isArray(o)?f("82",t.displayName||"ReactCompositeComponent"):void 0,this.state=o});t.prototype=new _,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:f("83");for(var n in E)t.prototype[n]||(t.prototype[n]=null);return t}};t.exports=P},{10:10,14:14,17:17,18:18,31:31,38:38,39:39,41:41,42:42}],10:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=a,this.updater=n||i}var o=e(31),i=e(17),a=(e(27),e(38));e(39),e(41);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?o("85"):void 0,this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};t.exports=r},{17:17,27:27,31:31,38:38,39:39,41:41}],11:[function(e,t,n){"use strict";var r=e(32),o={shouldComponentUpdate:function(e,t){return r(this,e,t)}};t.exports=o},{32:32}],12:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],13:[function(e,t,n){"use strict";var r=e(14),o=r.createFactory,i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};t.exports=i},{14:14}],14:[function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function o(e){return void 0!==e.key}var i=e(42),a=e(12),s=(e(41),e(27),Object.prototype.hasOwnProperty),u=e(15),c={key:!0,ref:!0,__self:!0,__source:!0},p=function(e,t,n,r,o,i,a){var s={$$typeof:u,type:e,key:t,ref:n,props:a,_owner:i};return s};p.createElement=function(e,t,n){var i,u={},l=null,f=null,d=null,h=null;if(null!=t){r(t)&&(f=t.ref),o(t)&&(l=""+t.key),d=void 0===t.__self?null:t.__self,h=void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!c.hasOwnProperty(i)&&(u[i]=t[i])}var y=arguments.length-2;if(1===y)u.children=n;else if(y>1){for(var v=Array(y),m=0;m<y;m++)v[m]=arguments[m+2];u.children=v}if(e&&e.defaultProps){var g=e.defaultProps;for(i in g)void 0===u[i]&&(u[i]=g[i])}return p(e,l,f,d,h,a.current,u)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceKey=function(e,t){var n=p(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},p.cloneElement=function(e,t,n){var u,l=i({},e.props),f=e.key,d=e.ref,h=e._self,y=e._source,v=e._owner;if(null!=t){r(t)&&(d=t.ref,v=a.current),o(t)&&(f=""+t.key);var m;e.type&&e.type.defaultProps&&(m=e.type.defaultProps);for(u in t)s.call(t,u)&&!c.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==m?l[u]=m[u]:l[u]=t[u])}var g=arguments.length-2;if(1===g)l.children=n;else if(g>1){for(var E=Array(g),b=0;b<g;b++)E[b]=arguments[b+2];l.children=E}return p(e.type,f,d,h,y,v,l)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},t.exports=p},{12:12,15:15,27:27,41:41,42:42}],15:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],16:[function(e,t,n){"use strict";var r=e(31),o=e(8),i=e(14),a=e(37),s=(e(39),e(41),{create:function(e){if("object"!=typeof e||!e||Array.isArray(e))return e;if(i.isValidElement(e))return e;1===e.nodeType?r("0"):void 0;var t=[];for(var n in e)o.mapIntoWithKeyPrefixInternal(e[n],t,n,a.thatReturnsArgument);return t}});t.exports=s},{14:14,31:31,37:37,39:39,41:41,8:8}],17:[function(e,t,n){"use strict";function r(e,t){}var o=(e(41),{isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){r(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){r(e,"replaceState")},enqueueSetState:function(e,t,n,o){r(e,"setState")}});t.exports=o},{41:41}],18:[function(e,t,n){"use strict";var r={};t.exports=r},{}],19:[function(e,t,n){"use strict";function r(e){this.message=e,this.stack=""}var o,i=(e(31),e(14),e(18),e(37),e(29),e(39)),a=(e(41),function(){i(!1,"React.PropTypes type checking code is stripped in production.")});a.isRequired=a;var s=function(){return a};o={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s},r.prototype=Error.prototype,t.exports=o},{14:14,18:18,29:29,31:31,37:37,39:39,41:41}],20:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=u,this.updater=n||s}function o(){}var i=e(42),a=e(10),s=e(17),u=e(38);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,t.exports=r},{10:10,17:17,38:38,42:42}],21:[function(e,t,n){"use strict";var r=e(28),o={getChildMapping:function(e,t){return e?r(e):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}};t.exports=o},{28:28}],22:[function(e,t,n){"use strict";function r(){var e=s("animationend"),t=s("transitionend");e&&u.push(e),t&&u.push(t)}function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}var a=e(36),s=e(1),u=[];a.canUseDOM&&r();var c={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){i(e,n,t)})}};t.exports=c},{1:1,36:36}],23:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e(42),s=e(4),u=e(21),c=e(37),p=function(e){function t(){var n,i,s;r(this,t);for(var c=arguments.length,p=Array(c),l=0;l<c;l++)p[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(p))),i.state={children:u.getChildMapping(i.props.children)},i.performAppear=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillAppear?t.componentWillAppear(i._handleDoneAppearing.bind(i,e)):i._handleDoneAppearing(e)},i._handleDoneAppearing=function(e){var t=i.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e)},i.performEnter=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillEnter?t.componentWillEnter(i._handleDoneEntering.bind(i,e)):i._handleDoneEntering(e)},i._handleDoneEntering=function(e){var t=i.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e)},i.performLeave=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillLeave?t.componentWillLeave(i._handleDoneLeaving.bind(i,e)):i._handleDoneLeaving(e)},i._handleDoneLeaving=function(e){var t=i.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)?i.performEnter(e):i.setState(function(t){var n=a({},t.children);return delete n[e],{children:n}})},s=n,o(i,s)}return i(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},t.prototype.componentWillReceiveProps=function(e){var t=u.getChildMapping(e.children),n=this.state.children;this.setState({children:u.mergeChildMappings(n,t)});var r;for(r in t){var o=n&&n.hasOwnProperty(r);!t[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var i=t&&t.hasOwnProperty(r);!n[r]||i||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},t.prototype.componentDidUpdate=function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},t.prototype.render=function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(s.cloneElement(this.props.childFactory(n),{ref:t,key:t}))}var r=a({},this.props);return delete r.transitionLeave,delete r.transitionName,delete r.transitionAppear,delete r.transitionEnter,delete r.childFactory,delete r.transitionLeaveTimeout,delete r.transitionEnterTimeout,delete r.transitionAppearTimeout,delete r.component,s.createElement(this.props.component,r,e)},t}(s.Component);p.displayName="ReactTransitionGroup",p.propTypes={component:s.PropTypes.any,childFactory:s.PropTypes.func},p.defaultProps={component:"span",childFactory:c.thatReturnsArgument},t.exports=p},{21:21,37:37,4:4,42:42}],24:[function(e,t,n){"use strict";t.exports="16.0.0-alpha"},{}],25:[function(e,t,n){"use strict";var r=e(4),o=(e(5),e(11)),i=e(6),a=e(16),s=e(23),u=e(32),c=e(34);r.addons={CSSTransitionGroup:i,PureRenderMixin:o,TransitionGroup:s,createFragment:a.create,shallowCompare:u,update:c},t.exports=r},{11:11,16:16,23:23,32:32,34:34,4:4,5:5,6:6}],26:[function(e,t,n){"use strict";var r=e(42),o=e(25),i=r({__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:null,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:e(12)}},o);t.exports=i},{12:12,25:25,42:42}],27:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],28:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var o=e,i=void 0===o[n];i&&null!=t&&(o[n]=t)}}function o(e,t){if(null==e)return e;var n={};return i(e,r,n),n}var i=(e(2),e(33));e(41);"undefined"!=typeof n&&n.env,t.exports=o}).call(this,void 0)},{2:2,33:33,41:41}],29:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],30:[function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("143"),e}var o=e(31),i=e(14);e(39);t.exports=r},{14:14,31:31,39:39}],31:[function(e,t,n){"use strict";function r(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}t.exports=r},{}],32:[function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=e(40);t.exports=r},{40:40}],33:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var f=typeof e;if("undefined"!==f&&"boolean"!==f||(e=null),null===e||"string"===f||"number"===f||"object"===f&&e.$$typeof===s)return n(i,e,""===t?p+r(e,0):t),1;var d,h,y=0,v=""===t?p:t+l;if(Array.isArray(e))for(var m=0;m<e.length;m++)d=e[m],h=v+r(d,m),y+=o(d,h,n,i);else{var g=u(e);if(g){var E,b=g.call(e);if(g!==e.entries)for(var T=0;!(E=b.next()).done;)d=E.value,h=v+r(d,T++),y+=o(d,h,n,i);else for(;!(E=b.next()).done;){var _=E.value;_&&(d=_[1],h=v+c.escape(_[0])+l+r(d,0),y+=o(d,h,n,i))}}else if("object"===f){var P="",w=String(e);a("31","[object Object]"===w?"object with keys {"+Object.keys(e).join(", ")+"}":w,P)}}return y}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=e(31),s=(e(12),e(15)),u=e(29),c=(e(39),e(2)),p=(e(41),"."),l=":";t.exports=i},{12:12,15:15,2:2,29:29,31:31,39:39,41:41}],34:[function(e,t,n){"use strict";function r(e){return Array.isArray(e)?e.concat():e&&"object"==typeof e?s(new e.constructor,e):e}function o(e,t,n){Array.isArray(e)?void 0:a("1",n,e);var r=t[n];Array.isArray(r)?void 0:a("2",n,r)}function i(e,t){if("object"!=typeof t?a("3",y.join(", "),f):void 0,u.call(t,f))return 1!==Object.keys(t).length?a("4",f):void 0,t[f];var n=r(e);if(u.call(t,d)){var m=t[d];m&&"object"==typeof m?void 0:a("5",d,m),n&&"object"==typeof n?void 0:a("6",d,n),s(n,t[d])}u.call(t,c)&&(o(e,t,c),t[c].forEach(function(e){n.push(e)})),u.call(t,p)&&(o(e,t,p),t[p].forEach(function(e){n.unshift(e)})),u.call(t,l)&&(Array.isArray(e)?void 0:a("7",l,e),Array.isArray(t[l])?void 0:a("8",l,t[l]),t[l].forEach(function(e){Array.isArray(e)?void 0:a("8",l,t[l]),n.splice.apply(n,e)})),u.call(t,h)&&("function"!=typeof t[h]?a("9",h,t[h]):void 0,n=t[h](n));for(var g in t)v.hasOwnProperty(g)&&v[g]||(n[g]=i(e[g],t[g]));return n}var a=e(31),s=e(42),u=(e(39),{}.hasOwnProperty),c="$push",p="$unshift",l="$splice",f="$set",d="$merge",h="$apply",y=[c,p,l,f,d,h],v={};y.forEach(function(e){v[e]=!0}),t.exports=i},{31:31,39:39,42:42}],35:[function(e,t,n){"use strict";function r(e,t){for(var n=e;n.parentNode;)n=n.parentNode;var r=n.querySelectorAll(t);return Array.prototype.indexOf.call(r,e)!==-1}var o=e(39),i={addClass:function(e,t){return/\s/.test(t)?o(!1):void 0,t&&(e.classList?e.classList.add(t):i.hasClass(e,t)||(e.className=e.className+" "+t)),e},removeClass:function(e,t){return/\s/.test(t)?o(!1):void 0,t&&(e.classList?e.classList.remove(t):i.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?i.addClass:i.removeClass)(e,t)},hasClass:function(e,t){return/\s/.test(t)?o(!1):void 0,e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1},matchesSelector:function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(t){return r(e,t)};return n.call(e,t)}};t.exports=i},{39:39}],36:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],37:[function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],38:[function(e,t,n){"use strict";var r={};t.exports=r},{}],39:[function(e,t,n){"use strict";function r(e,t,n,r,o,i,a,s){if(!e){var u;if(void 0===t)u=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,s],p=0;u=new Error(t.replace(/%s/g,function(){return c[p++]})),u.name="Invariant Violation"}throw u.framesToPop=1,u}}t.exports=r},{}],40:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(console.log("shallowEqual()",e,t),n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(console.log(" is()",e[n[a]],t[n[a]],r(e[n[a]],t[n[a]])),!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;t.exports=o},{}],41:[function(e,t,n){"use strict";var r=e(37),o=r;t.exports=o},{37:37}],42:[function(e,t,n){"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){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;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,s=r(e),u=1;u<arguments.length;u++){n=Object(arguments[u]);for(var c in n)i.call(n,c)&&(s[c]=n[c]);if(Object.getOwnPropertySymbols){o=Object.getOwnPropertySymbols(n);for(var p=0;p<o.length;p++)a.call(n,o[p])&&(s[o[p]]=n[o[p]])}}return s}},{}]},{},[26])(26)});
|
|
12
|
+
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var t;t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this,t.React=e()}}(function(){return function e(t,n,r){function o(a,s){if(!n[a]){if(!t[a]){var u="function"==typeof require&&require;if(!s&&u)return u(a,!0);if(i)return i(a,!0);var c=new Error("Cannot find module '"+a+"'");throw c.code="MODULE_NOT_FOUND",c}var p=n[a]={exports:{}};t[a][0].call(p.exports,function(e){var n=t[a][1][e];return o(n?n:e)},p,p.exports,e,t,n,r)}return n[a].exports}for(var i="function"==typeof require&&require,a=0;a<r.length;a++)o(r[a]);return o}({1:[function(e,t,n){"use strict";function r(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n["ms"+e]="MS"+t,n["O"+e]="o"+t.toLowerCase(),n}function o(e){if(s[e])return s[e];if(!a[e])return e;var t=a[e];for(var n in t)if(t.hasOwnProperty(n)&&n in u)return s[e]=t[n];return""}var i=e(36),a={animationend:r("Animation","AnimationEnd"),animationiteration:r("Animation","AnimationIteration"),animationstart:r("Animation","AnimationStart"),transitionend:r("Transition","TransitionEnd")},s={},u={};i.canUseDOM&&(u=document.createElement("div").style,"AnimationEvent"in window||(delete a.animationend.animation,delete a.animationiteration.animation,delete a.animationstart.animation),"TransitionEvent"in window||delete a.transitionend.transition),t.exports=o},{36:36}],2:[function(e,t,n){"use strict";function r(e){var t=/[=:]/g,n={"=":"=0",":":"=2"},r=(""+e).replace(t,function(e){return n[e]});return"$"+r}function o(e){var t=/(=0|=2)/g,n={"=0":"=","=2":":"},r="."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1);return(""+r).replace(t,function(e){return n[e]})}var i={escape:r,unescape:o};t.exports=i},{}],3:[function(e,t,n){"use strict";var r=e(31),o=(e(39),function(e){var t=this;if(t.instancePool.length){var n=t.instancePool.pop();return t.call(n,e),n}return new t(e)}),i=function(e,t){var n=this;if(n.instancePool.length){var r=n.instancePool.pop();return n.call(r,e,t),r}return new n(e,t)},a=function(e,t,n){var r=this;if(r.instancePool.length){var o=r.instancePool.pop();return r.call(o,e,t,n),o}return new r(e,t,n)},s=function(e,t,n,r){var o=this;if(o.instancePool.length){var i=o.instancePool.pop();return o.call(i,e,t,n,r),i}return new o(e,t,n,r)},u=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=10,p=o,l=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||p,n.poolSize||(n.poolSize=c),n.release=u,n},f={addPoolingTo:l,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};t.exports=f},{31:31,39:39}],4:[function(e,t,n){"use strict";var r=e(6),o=e(9),i=e(10),a=e(13),s=e(14),u=e(18),c=e(23),p=e(30),l=(e(41),e(27)),f=s.createElement,d=s.createFactory,h=s.cloneElement,y=function(e){return e},v={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:p},Component:r.Component,PureComponent:r.PureComponent,createElement:f,cloneElement:h,isValidElement:s.isValidElement,checkPropTypes:l,PropTypes:u,createClass:i.createClass,createFactory:d,createMixin:y,DOM:a,version:c};t.exports=v},{10:10,13:13,14:14,18:18,23:23,27:27,30:30,41:41,6:6,9:9}],5:[function(e,t,n){"use strict";function r(){if(!o){var t=e(25);o=t.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}return o}var o;n.getReactDOM=r},{25:25}],6:[function(e,t,n){"use strict";function r(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function o(e,t,n){this.props=e,this.context=t,this.refs=c,this.updater=n||u}function i(){}var a=e(31),s=e(42),u=e(17),c=(e(26),e(38));e(39),e(41);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e?a("85"):void 0,this.updater.enqueueSetState(this,e,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};i.prototype=r.prototype,o.prototype=new i,o.prototype.constructor=o,s(o.prototype,r.prototype),o.prototype.isPureReactComponent=!0,t.exports={Component:r,PureComponent:o}},{17:17,26:26,31:31,38:38,39:39,41:41,42:42}],7:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}function a(e){var t="transition"+e+"Timeout",n="transition"+e;return function(e){if(e[n]){if(null==e[t])return new Error(t+" wasn't supplied to ReactCSSTransitionGroup: this can cause unreliable animations and won't be supported in a future version of React. See https://fb.me/react-animation-transition-group-timeout for more information.");if("number"!=typeof e[t])return new Error(t+" must be a number (in milliseconds)")}}}var s=e(42),u=e(4),c=e(22),p=e(8),l=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,c=Array(s),l=0;l<s;l++)c[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(c))),i._wrapChild=function(e){return u.createElement(p,{name:i.props.transitionName,appear:i.props.transitionAppear,enter:i.props.transitionEnter,leave:i.props.transitionLeave,appearTimeout:i.props.transitionAppearTimeout,enterTimeout:i.props.transitionEnterTimeout,leaveTimeout:i.props.transitionLeaveTimeout},e)},a=n,o(i,a)}return i(t,e),t.prototype.render=function(){return u.createElement(c,s({},this.props,{childFactory:this._wrapChild}))},t}(u.Component);l.displayName="ReactCSSTransitionGroup",l.propTypes={transitionName:p.propTypes.name,transitionAppear:u.PropTypes.bool,transitionEnter:u.PropTypes.bool,transitionLeave:u.PropTypes.bool,transitionAppearTimeout:a("Appear"),transitionEnterTimeout:a("Enter"),transitionLeaveTimeout:a("Leave")},l.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.exports=l},{22:22,4:4,42:42,8:8}],8:[function(e,t,n){"use strict";var r=e(4),o=e(5),i=e(35),a=e(21),s=e(30),u=17,c=r.createClass({displayName:"ReactCSSTransitionGroupChild",propTypes:{name:r.PropTypes.oneOfType([r.PropTypes.string,r.PropTypes.shape({enter:r.PropTypes.string,leave:r.PropTypes.string,active:r.PropTypes.string}),r.PropTypes.shape({enter:r.PropTypes.string,enterActive:r.PropTypes.string,leave:r.PropTypes.string,leaveActive:r.PropTypes.string,appear:r.PropTypes.string,appearActive:r.PropTypes.string})]).isRequired,appear:r.PropTypes.bool,enter:r.PropTypes.bool,leave:r.PropTypes.bool,appearTimeout:r.PropTypes.number,enterTimeout:r.PropTypes.number,leaveTimeout:r.PropTypes.number},transition:function(e,t,n){var r=o.getReactDOM().findDOMNode(this);if(!r)return void(t&&t());var s=this.props.name[e]||this.props.name+"-"+e,u=this.props.name[e+"Active"]||s+"-active",c=null,p=function(e){e&&e.target!==r||(clearTimeout(c),i.removeClass(r,s),i.removeClass(r,u),a.removeEndEventListener(r,p),t&&t())};i.addClass(r,s),this.queueClassAndNode(u,r),n?(c=setTimeout(p,n),this.transitionTimeouts.push(c)):a.addEndEventListener(r,p)},queueClassAndNode:function(e,t){this.classNameAndNodeQueue.push({className:e,node:t}),this.timeout||(this.timeout=setTimeout(this.flushClassNameAndNodeQueue,u))},flushClassNameAndNodeQueue:function(){this.isMounted()&&this.classNameAndNodeQueue.forEach(function(e){i.addClass(e.node,e.className)}),this.classNameAndNodeQueue.length=0,this.timeout=null},componentWillMount:function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},componentWillUnmount:function(){this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},componentWillAppear:function(e){this.props.appear?this.transition("appear",e,this.props.appearTimeout):e()},componentWillEnter:function(e){this.props.enter?this.transition("enter",e,this.props.enterTimeout):e()},componentWillLeave:function(e){this.props.leave?this.transition("leave",e,this.props.leaveTimeout):e()},render:function(){return s(this.props.children)}});t.exports=c},{21:21,30:30,35:35,4:4,5:5}],9:[function(e,t,n){"use strict";function r(e){return(""+e).replace(b,"$&/")}function o(e,t){this.func=e,this.context=t,this.count=0}function i(e,t,n){var r=e.func,o=e.context;r.call(o,t,e.count++)}function a(e,t,n){if(null==e)return e;var r=o.getPooled(t,n);m(e,i,r),o.release(r)}function s(e,t,n,r){this.result=e,this.keyPrefix=t,this.func=n,this.context=r,this.count=0}function u(e,t,n){var o=e.result,i=e.keyPrefix,a=e.func,s=e.context,u=a.call(s,t,e.count++);Array.isArray(u)?c(u,o,n,v.thatReturnsArgument):null!=u&&(y.isValidElement(u)&&(u=y.cloneAndReplaceKey(u,i+(!u.key||t&&t.key===u.key?"":r(u.key)+"/")+n)),o.push(u))}function c(e,t,n,o,i){var a="";null!=n&&(a=r(n)+"/");var c=s.getPooled(t,a,o,i);m(e,u,c),s.release(c)}function p(e,t,n){if(null==e)return e;var r=[];return c(e,r,null,t,n),r}function l(e,t,n){return null}function f(e,t){return m(e,l,null)}function d(e){var t=[];return c(e,t,null,v.thatReturnsArgument),t}var h=e(3),y=e(14),v=e(37),m=e(33),E=h.twoArgumentPooler,g=h.fourArgumentPooler,b=/\/+/g;o.prototype.destructor=function(){this.func=null,this.context=null,this.count=0},h.addPoolingTo(o,E),s.prototype.destructor=function(){this.result=null,this.keyPrefix=null,this.func=null,this.context=null,this.count=0},h.addPoolingTo(s,g);var T={forEach:a,map:p,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=T},{14:14,3:3,33:33,37:37}],10:[function(e,t,n){"use strict";function r(e){return e}function o(e,t){var n=b.hasOwnProperty(t)?b[t]:null;_.hasOwnProperty(t)&&("OVERRIDE_BASE"!==n?d("73",t):void 0),e&&("DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n?d("74",t):void 0)}function i(e,t){if(t){"function"==typeof t?d("75"):void 0,y.isValidElement(t)?d("76"):void 0;var n=e.prototype,r=n.__reactAutoBindPairs;t.hasOwnProperty(g)&&T.mixins(e,t.mixins);for(var i in t)if(t.hasOwnProperty(i)&&i!==g){var a=t[i],s=n.hasOwnProperty(i);if(o(s,i),T.hasOwnProperty(i))T[i](e,a);else{var p=b.hasOwnProperty(i),l="function"==typeof a,f=l&&!p&&!s&&t.autobind!==!1;if(f)r.push(i,a),n[i]=a;else if(s){var h=b[i];!p||"DEFINE_MANY_MERGED"!==h&&"DEFINE_MANY"!==h?d("77",h,i):void 0,"DEFINE_MANY_MERGED"===h?n[i]=u(n[i],a):"DEFINE_MANY"===h&&(n[i]=c(n[i],a))}else n[i]=a}}}}function a(e,t){if(t)for(var n in t){var r=t[n];if(t.hasOwnProperty(n)){var o=n in T;o?d("78",n):void 0;var i=n in e;i?d("79",n):void 0,e[n]=r}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t?void 0:d("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]?d("81",n):void 0,e[n]=t[n]);return e}function u(e,t){return function(){var n=e.apply(this,arguments),r=t.apply(this,arguments);if(null==n)return r;if(null==r)return n;var o={};return s(o,n),s(o,r),o}}function c(e,t){return function(){e.apply(this,arguments),t.apply(this,arguments)}}function p(e,t){var n=t.bind(e);return n}function l(e){for(var t=e.__reactAutoBindPairs,n=0;n<t.length;n+=2){var r=t[n],o=t[n+1];e[r]=p(e,o)}}var f=e(42),d=e(31),h=e(6),y=e(14),v=e(17),m=e(38),E=(e(39),e(41),h.Component),g="mixins",b={mixins:"DEFINE_MANY",statics:"DEFINE_MANY",propTypes:"DEFINE_MANY",contextTypes:"DEFINE_MANY",childContextTypes:"DEFINE_MANY",getDefaultProps:"DEFINE_MANY_MERGED",getInitialState:"DEFINE_MANY_MERGED",getChildContext:"DEFINE_MANY_MERGED",render:"DEFINE_ONCE",componentWillMount:"DEFINE_MANY",componentDidMount:"DEFINE_MANY",componentWillReceiveProps:"DEFINE_MANY",shouldComponentUpdate:"DEFINE_ONCE",componentWillUpdate:"DEFINE_MANY",componentDidUpdate:"DEFINE_MANY",componentWillUnmount:"DEFINE_MANY",updateComponent:"OVERRIDE_BASE"},T={displayName:function(e,t){e.displayName=t},mixins:function(e,t){if(t)for(var n=0;n<t.length;n++)i(e,t[n])},childContextTypes:function(e,t){e.childContextTypes=f({},e.childContextTypes,t)},contextTypes:function(e,t){e.contextTypes=f({},e.contextTypes,t)},getDefaultProps:function(e,t){e.getDefaultProps?e.getDefaultProps=u(e.getDefaultProps,t):e.getDefaultProps=t},propTypes:function(e,t){e.propTypes=f({},e.propTypes,t)},statics:function(e,t){a(e,t)},autobind:function(){}},_={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},P=function(){};f(P.prototype,E.prototype,_);var A={createClass:function(e){var t=r(function(e,n,r){this.__reactAutoBindPairs.length&&l(this),this.props=e,this.context=n,this.refs=m,this.updater=r||v,this.state=null;var o=this.getInitialState?this.getInitialState():null;"object"!=typeof o||Array.isArray(o)?d("82",t.displayName||"ReactCompositeComponent"):void 0,this.state=o});t.prototype=new P,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:d("83");for(var n in b)t.prototype[n]||(t.prototype[n]=null);return t}};t.exports=A},{14:14,17:17,31:31,38:38,39:39,41:41,42:42,6:6}],11:[function(e,t,n){"use strict";var r=e(32),o={shouldComponentUpdate:function(e,t){return r(this,e,t)}};t.exports=o},{32:32}],12:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],13:[function(e,t,n){"use strict";var r=e(14),o=r.createFactory,i={a:o("a"),abbr:o("abbr"),address:o("address"),area:o("area"),article:o("article"),aside:o("aside"),audio:o("audio"),b:o("b"),base:o("base"),bdi:o("bdi"),bdo:o("bdo"),big:o("big"),blockquote:o("blockquote"),body:o("body"),br:o("br"),button:o("button"),canvas:o("canvas"),caption:o("caption"),cite:o("cite"),code:o("code"),col:o("col"),colgroup:o("colgroup"),data:o("data"),datalist:o("datalist"),dd:o("dd"),del:o("del"),details:o("details"),dfn:o("dfn"),dialog:o("dialog"),div:o("div"),dl:o("dl"),dt:o("dt"),em:o("em"),embed:o("embed"),fieldset:o("fieldset"),figcaption:o("figcaption"),figure:o("figure"),footer:o("footer"),form:o("form"),h1:o("h1"),h2:o("h2"),h3:o("h3"),h4:o("h4"),h5:o("h5"),h6:o("h6"),head:o("head"),header:o("header"),hgroup:o("hgroup"),hr:o("hr"),html:o("html"),i:o("i"),iframe:o("iframe"),img:o("img"),input:o("input"),ins:o("ins"),kbd:o("kbd"),keygen:o("keygen"),label:o("label"),legend:o("legend"),li:o("li"),link:o("link"),main:o("main"),map:o("map"),mark:o("mark"),menu:o("menu"),menuitem:o("menuitem"),meta:o("meta"),meter:o("meter"),nav:o("nav"),noscript:o("noscript"),object:o("object"),ol:o("ol"),optgroup:o("optgroup"),option:o("option"),output:o("output"),p:o("p"),param:o("param"),picture:o("picture"),pre:o("pre"),progress:o("progress"),q:o("q"),rp:o("rp"),rt:o("rt"),ruby:o("ruby"),s:o("s"),samp:o("samp"),script:o("script"),section:o("section"),select:o("select"),small:o("small"),source:o("source"),span:o("span"),strong:o("strong"),style:o("style"),sub:o("sub"),summary:o("summary"),sup:o("sup"),table:o("table"),tbody:o("tbody"),td:o("td"),textarea:o("textarea"),tfoot:o("tfoot"),th:o("th"),thead:o("thead"),time:o("time"),title:o("title"),tr:o("tr"),track:o("track"),u:o("u"),ul:o("ul"),var:o("var"),video:o("video"),wbr:o("wbr"),circle:o("circle"),clipPath:o("clipPath"),defs:o("defs"),ellipse:o("ellipse"),g:o("g"),image:o("image"),line:o("line"),linearGradient:o("linearGradient"),mask:o("mask"),path:o("path"),pattern:o("pattern"),polygon:o("polygon"),polyline:o("polyline"),radialGradient:o("radialGradient"),rect:o("rect"),stop:o("stop"),svg:o("svg"),text:o("text"),tspan:o("tspan")};t.exports=i},{14:14}],14:[function(e,t,n){"use strict";function r(e){return void 0!==e.ref}function o(e){return void 0!==e.key}var i=e(42),a=e(12),s=(e(41),e(26),Object.prototype.hasOwnProperty),u=e(15),c={key:!0,ref:!0,__self:!0,__source:!0},p=function(e,t,n,r,o,i,a){var s={$$typeof:u,type:e,key:t,ref:n,props:a,_owner:i};return s};p.createElement=function(e,t,n){var i,u={},l=null,f=null,d=null,h=null;if(null!=t){r(t)&&(f=t.ref),o(t)&&(l=""+t.key),d=void 0===t.__self?null:t.__self,h=void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!c.hasOwnProperty(i)&&(u[i]=t[i])}var y=arguments.length-2;if(1===y)u.children=n;else if(y>1){for(var v=Array(y),m=0;m<y;m++)v[m]=arguments[m+2];u.children=v}if(e&&e.defaultProps){var E=e.defaultProps;for(i in E)void 0===u[i]&&(u[i]=E[i])}return p(e,l,f,d,h,a.current,u)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceKey=function(e,t){var n=p(e.type,t,e.ref,e._self,e._source,e._owner,e.props);return n},p.cloneElement=function(e,t,n){var u,l=i({},e.props),f=e.key,d=e.ref,h=e._self,y=e._source,v=e._owner;if(null!=t){r(t)&&(d=t.ref,v=a.current),o(t)&&(f=""+t.key);var m;e.type&&e.type.defaultProps&&(m=e.type.defaultProps);for(u in t)s.call(t,u)&&!c.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==m?l[u]=m[u]:l[u]=t[u])}var E=arguments.length-2;if(1===E)l.children=n;else if(E>1){for(var g=Array(E),b=0;b<E;b++)g[b]=arguments[b+2];l.children=g}return p(e.type,f,d,h,y,v,l)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},t.exports=p},{12:12,15:15,26:26,41:41,42:42}],15:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],16:[function(e,t,n){"use strict";var r=e(31),o=e(9),i=e(14),a=e(37),s=(e(39),e(41),{create:function(e){if("object"!=typeof e||!e||Array.isArray(e))return e;if(i.isValidElement(e))return e;1===e.nodeType?r("0"):void 0;var t=[];for(var n in e)o.mapIntoWithKeyPrefixInternal(e[n],t,n,a.thatReturnsArgument);return t}});t.exports=s},{14:14,31:31,37:37,39:39,41:41,9:9}],17:[function(e,t,n){"use strict";function r(e,t){}var o=(e(41),{isMounted:function(e){return!1},enqueueForceUpdate:function(e,t,n){r(e,"forceUpdate")},enqueueReplaceState:function(e,t,n,o){r(e,"replaceState")},enqueueSetState:function(e,t,n,o){r(e,"setState")}});t.exports=o},{41:41}],18:[function(e,t,n){"use strict";function r(e){this.message=e,this.stack=""}var o,i=e(31),a=(e(14),e(19),e(37),e(29),e(39),e(41),function(){i("144")});a.isRequired=a;var s=function(){return a};o={array:a,bool:a,func:a,number:a,object:a,string:a,symbol:a,any:a,arrayOf:s,element:a,instanceOf:s,node:a,objectOf:s,oneOf:s,oneOfType:s,shape:s},r.prototype=Error.prototype,t.exports=o},{14:14,19:19,29:29,31:31,37:37,39:39,41:41}],19:[function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=r},{}],20:[function(e,t,n){"use strict";var r=e(28),o={getChildMapping:function(e,t){return e?r(e):e},mergeChildMappings:function(e,t){function n(n){return t.hasOwnProperty(n)?t[n]:e[n]}e=e||{},t=t||{};var r={},o=[];for(var i in e)t.hasOwnProperty(i)?o.length&&(r[i]=o,o=[]):o.push(i);var a,s={};for(var u in t){if(r.hasOwnProperty(u))for(a=0;a<r[u].length;a++){var c=r[u][a];s[r[u][a]]=n(c)}s[u]=n(u)}for(a=0;a<o.length;a++)s[o[a]]=n(o[a]);return s}};t.exports=o},{28:28}],21:[function(e,t,n){"use strict";function r(){var e=s("animationend"),t=s("transitionend");e&&u.push(e),t&&u.push(t)}function o(e,t,n){e.addEventListener(t,n,!1)}function i(e,t,n){e.removeEventListener(t,n,!1)}var a=e(36),s=e(1),u=[];a.canUseDOM&&r();var c={addEndEventListener:function(e,t){return 0===u.length?void window.setTimeout(t,0):void u.forEach(function(n){o(e,n,t)})},removeEndEventListener:function(e,t){0!==u.length&&u.forEach(function(n){i(e,n,t)})}};t.exports=c},{1:1,36:36}],22:[function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function i(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var a=e(42),s=e(4),u=e(20),c=e(37),p=function(e){function t(){var n,i,s;r(this,t);for(var c=arguments.length,p=Array(c),l=0;l<c;l++)p[l]=arguments[l];return n=i=o(this,e.call.apply(e,[this].concat(p))),i.state={children:u.getChildMapping(i.props.children)},i.performAppear=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillAppear?t.componentWillAppear(i._handleDoneAppearing.bind(i,e)):i._handleDoneAppearing(e)},i._handleDoneAppearing=function(e){var t=i.refs[e];t.componentDidAppear&&t.componentDidAppear(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e)},i.performEnter=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillEnter?t.componentWillEnter(i._handleDoneEntering.bind(i,e)):i._handleDoneEntering(e)},i._handleDoneEntering=function(e){var t=i.refs[e];t.componentDidEnter&&t.componentDidEnter(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)||i.performLeave(e)},i.performLeave=function(e){i.currentlyTransitioningKeys[e]=!0;var t=i.refs[e];t.componentWillLeave?t.componentWillLeave(i._handleDoneLeaving.bind(i,e)):i._handleDoneLeaving(e)},i._handleDoneLeaving=function(e){var t=i.refs[e];t.componentDidLeave&&t.componentDidLeave(),delete i.currentlyTransitioningKeys[e];var n=u.getChildMapping(i.props.children);n&&n.hasOwnProperty(e)?i.performEnter(e):i.setState(function(t){var n=a({},t.children);return delete n[e],{children:n}})},s=n,o(i,s)}return i(t,e),t.prototype.componentWillMount=function(){this.currentlyTransitioningKeys={},this.keysToEnter=[],this.keysToLeave=[]},t.prototype.componentDidMount=function(){var e=this.state.children;for(var t in e)e[t]&&this.performAppear(t)},t.prototype.componentWillReceiveProps=function(e){var t=u.getChildMapping(e.children),n=this.state.children;this.setState({children:u.mergeChildMappings(n,t)});var r;for(r in t){var o=n&&n.hasOwnProperty(r);!t[r]||o||this.currentlyTransitioningKeys[r]||this.keysToEnter.push(r)}for(r in n){var i=t&&t.hasOwnProperty(r);!n[r]||i||this.currentlyTransitioningKeys[r]||this.keysToLeave.push(r)}},t.prototype.componentDidUpdate=function(){var e=this.keysToEnter;this.keysToEnter=[],e.forEach(this.performEnter);var t=this.keysToLeave;this.keysToLeave=[],t.forEach(this.performLeave)},t.prototype.render=function(){var e=[];for(var t in this.state.children){var n=this.state.children[t];n&&e.push(s.cloneElement(this.props.childFactory(n),{ref:t,key:t}))}var r=a({},this.props);return delete r.transitionLeave,delete r.transitionName,delete r.transitionAppear,delete r.transitionEnter,delete r.childFactory,delete r.transitionLeaveTimeout,delete r.transitionEnterTimeout,delete r.transitionAppearTimeout,delete r.component,s.createElement(this.props.component,r,e)},t}(s.Component);p.displayName="ReactTransitionGroup",p.propTypes={component:s.PropTypes.any,childFactory:s.PropTypes.func},p.defaultProps={component:"span",childFactory:c.thatReturnsArgument},t.exports=p},{20:20,37:37,4:4,42:42}],23:[function(e,t,n){"use strict";t.exports="16.0.0-alpha.4"},{}],24:[function(e,t,n){"use strict";var r=e(4),o=(e(5),e(11)),i=e(7),a=e(16),s=e(22),u=e(32),c=e(34);r.addons={CSSTransitionGroup:i,PureRenderMixin:o,TransitionGroup:s,createFragment:a.create,shallowCompare:u,update:c},t.exports=r},{11:11,16:16,22:22,32:32,34:34,4:4,5:5,7:7}],25:[function(e,t,n){"use strict";var r=e(42),o=e(24),i=r({__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:null,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:e(12)}},o);t.exports=i},{12:12,24:24,42:42}],26:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],27:[function(e,t,n){"use strict";function r(e,t,n,r,o){}e(31),e(19),e(39),e(41);t.exports=r},{19:19,31:31,39:39,41:41}],28:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var o=e,i=void 0===o[n];i&&null!=t&&(o[n]=t)}}function o(e,t){if(null==e)return e;var n={};return i(e,r,n),n}var i=(e(2),e(33));e(41);"undefined"!=typeof n&&n.env,t.exports=o}).call(this,void 0)},{2:2,33:33,41:41}],29:[function(e,t,n){"use strict";function r(e){var t=e&&(o&&e[o]||e[i]);if("function"==typeof t)return t}var o="function"==typeof Symbol&&Symbol.iterator,i="@@iterator";t.exports=r},{}],30:[function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("143"),e}var o=e(31),i=e(14);e(39);t.exports=r},{14:14,31:31,39:39}],31:[function(e,t,n){"use strict";function r(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}t.exports=r},{}],32:[function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=e(40);t.exports=r},{40:40}],33:[function(e,t,n){"use strict";function r(e,t){return e&&"object"==typeof e&&null!=e.key?c.escape(e.key):t.toString(36)}function o(e,t,n,i){var c=typeof e;if("undefined"!==c&&"boolean"!==c||(e=null),null===e||"string"===c||"number"===c||"object"===c&&e.$$typeof===s)return n(i,e,""===t?p+r(e,0):t),1;var f,d,h=0,y=""===t?p:t+l;if(Array.isArray(e))for(var v=0;v<e.length;v++)f=e[v],d=y+r(f,v),h+=o(f,d,n,i);else{var m=u(e);if(m)for(var E,g=m.call(e),b=0;!(E=g.next()).done;)f=E.value,d=y+r(f,b++),h+=o(f,d,n,i);else if("object"===c){var T="",_=""+e;a("31","[object Object]"===_?"object with keys {"+Object.keys(e).join(", ")+"}":_,T)}}return h}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=e(31),s=(e(12),e(15)),u=e(29),c=(e(39),e(2)),p=(e(41),"."),l=":";t.exports=i},{12:12,15:15,2:2,29:29,31:31,39:39,41:41}],34:[function(e,t,n){"use strict";function r(e){return Array.isArray(e)?e.concat():e&&"object"==typeof e?a(new e.constructor,e):e}function o(e,t,n){Array.isArray(e)?void 0:s("1",n,e);var r=t[n];Array.isArray(r)?void 0:s("2",n,r)}function i(e,t){if("object"!=typeof t?s("3",y.join(", "),f):void 0,u.call(t,f))return 1!==Object.keys(t).length?s("4",f):void 0,t[f];var n=r(e);if(u.call(t,d)){var m=t[d];m&&"object"==typeof m?void 0:s("5",d,m),n&&"object"==typeof n?void 0:s("6",d,n),a(n,t[d])}u.call(t,c)&&(o(e,t,c),t[c].forEach(function(e){n.push(e)})),u.call(t,p)&&(o(e,t,p),t[p].forEach(function(e){n.unshift(e)})),u.call(t,l)&&(Array.isArray(e)?void 0:s("7",l,e),Array.isArray(t[l])?void 0:s("8",l,t[l]),t[l].forEach(function(e){Array.isArray(e)?void 0:s("8",l,t[l]),n.splice.apply(n,e)})),u.call(t,h)&&("function"!=typeof t[h]?s("9",h,t[h]):void 0,n=t[h](n));for(var E in t)v.hasOwnProperty(E)&&v[E]||(n[E]=i(e[E],t[E]));return n}var a=e(42),s=e(31),u=(e(39),{}.hasOwnProperty),c="$push",p="$unshift",l="$splice",f="$set",d="$merge",h="$apply",y=[c,p,l,f,d,h],v={};y.forEach(function(e){v[e]=!0}),t.exports=i},{31:31,39:39,42:42}],35:[function(e,t,n){"use strict";function r(e,t){for(var n=e;n.parentNode;)n=n.parentNode;var r=n.querySelectorAll(t);return Array.prototype.indexOf.call(r,e)!==-1}var o=e(39),i={addClass:function(e,t){return/\s/.test(t)?o(!1):void 0,t&&(e.classList?e.classList.add(t):i.hasClass(e,t)||(e.className=e.className+" "+t)),e},removeClass:function(e,t){return/\s/.test(t)?o(!1):void 0,t&&(e.classList?e.classList.remove(t):i.hasClass(e,t)&&(e.className=e.className.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,""))),e},conditionClass:function(e,t,n){return(n?i.addClass:i.removeClass)(e,t)},hasClass:function(e,t){return/\s/.test(t)?o(!1):void 0,e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1},matchesSelector:function(e,t){var n=e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(t){return r(e,t)};return n.call(e,t)}};t.exports=i},{39:39}],36:[function(e,t,n){"use strict";var r=!("undefined"==typeof window||!window.document||!window.document.createElement),o={canUseDOM:r,canUseWorkers:"undefined"!=typeof Worker,canUseEventListeners:r&&!(!window.addEventListener&&!window.attachEvent),canUseViewport:r&&!!window.screen,isInWorker:!r};t.exports=o},{}],37:[function(e,t,n){"use strict";function r(e){return function(){return e}}var o=function(){};o.thatReturns=r,o.thatReturnsFalse=r(!1),o.thatReturnsTrue=r(!0),o.thatReturnsNull=r(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(e){return e},t.exports=o},{}],38:[function(e,t,n){"use strict";var r={};t.exports=r},{}],39:[function(e,t,n){"use strict";function r(e,t,n,r,i,a,s,u){if(o(t),!e){var c;if(void 0===t)c=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var p=[n,r,i,a,s,u],l=0;c=new Error(t.replace(/%s/g,function(){return p[l++]})),c.name="Invariant Violation"}throw c.framesToPop=1,c}}var o=function(e){};t.exports=r},{}],40:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||0!==t||1/e===1/t:e!==e&&t!==t}function o(e,t){if(r(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),o=Object.keys(t);if(n.length!==o.length)return!1;for(var a=0;a<n.length;a++)if(!i.call(t,n[a])||!r(e[n[a]],t[n[a]]))return!1;return!0}var i=Object.prototype.hasOwnProperty;t.exports=o},{}],41:[function(e,t,n){"use strict";var r=e(37),o=r;t.exports=o},{37:37}],42:[function(e,t,n){/*
|
|
13
|
+
object-assign
|
|
14
|
+
(c) Sindre Sorhus
|
|
15
|
+
@license MIT
|
|
16
|
+
*/
|
|
17
|
+
"use strict";function r(e){if(null===e||void 0===e)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(e)}function o(){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;var r=Object.getOwnPropertyNames(t).map(function(e){return t[e]});if("0123456789"!==r.join(""))return!1;var o={};return"abcdefghijklmnopqrst".split("").forEach(function(e){o[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},o)).join("")}catch(e){return!1}}var i=Object.getOwnPropertySymbols,a=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;t.exports=o()?Object.assign:function(e,t){for(var n,o,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var p in n)a.call(n,p)&&(u[p]=n[p]);if(i){o=i(n);for(var l=0;l<o.length;l++)s.call(n,o[l])&&(u[o[l]]=n[o[l]])}}return u}},{}]},{},[25])(25)});
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React v16.0.0-alpha
|
|
2
|
+
* React v16.0.0-alpha.4
|
|
3
3
|
*/
|
|
4
4
|
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.React = f()}})(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
|
|
5
5
|
/**
|
|
@@ -74,9 +74,9 @@ module.exports = KeyEscapeUtils;
|
|
|
74
74
|
|
|
75
75
|
'use strict';
|
|
76
76
|
|
|
77
|
-
var _prodInvariant = _dereq_(
|
|
77
|
+
var _prodInvariant = _dereq_(27);
|
|
78
78
|
|
|
79
|
-
var invariant = _dereq_(
|
|
79
|
+
var invariant = _dereq_(31);
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* Static poolers. Several custom versions for each potential number of
|
|
@@ -172,7 +172,7 @@ var PooledClass = {
|
|
|
172
172
|
};
|
|
173
173
|
|
|
174
174
|
module.exports = PooledClass;
|
|
175
|
-
},{"
|
|
175
|
+
},{"27":27,"31":31}],3:[function(_dereq_,module,exports){
|
|
176
176
|
/**
|
|
177
177
|
* Copyright 2013-present, Facebook, Inc.
|
|
178
178
|
* All rights reserved.
|
|
@@ -185,39 +185,40 @@ module.exports = PooledClass;
|
|
|
185
185
|
|
|
186
186
|
'use strict';
|
|
187
187
|
|
|
188
|
-
var
|
|
189
|
-
|
|
190
|
-
var
|
|
191
|
-
var ReactComponent = _dereq_(6);
|
|
192
|
-
var ReactPureComponent = _dereq_(16);
|
|
193
|
-
var ReactClass = _dereq_(5);
|
|
188
|
+
var ReactBaseClasses = _dereq_(4);
|
|
189
|
+
var ReactChildren = _dereq_(5);
|
|
190
|
+
var ReactClass = _dereq_(6);
|
|
194
191
|
var ReactDOMFactories = _dereq_(9);
|
|
195
|
-
var ReactElement = _dereq_(
|
|
196
|
-
var ReactPropTypes = _dereq_(
|
|
197
|
-
var ReactVersion = _dereq_(
|
|
192
|
+
var ReactElement = _dereq_(11);
|
|
193
|
+
var ReactPropTypes = _dereq_(16);
|
|
194
|
+
var ReactVersion = _dereq_(20);
|
|
198
195
|
|
|
199
|
-
var onlyChild = _dereq_(
|
|
200
|
-
var warning = _dereq_(
|
|
196
|
+
var onlyChild = _dereq_(26);
|
|
197
|
+
var warning = _dereq_(32);
|
|
198
|
+
var checkPropTypes = _dereq_(22);
|
|
201
199
|
|
|
202
200
|
var createElement = ReactElement.createElement;
|
|
203
201
|
var createFactory = ReactElement.createFactory;
|
|
204
202
|
var cloneElement = ReactElement.cloneElement;
|
|
205
203
|
|
|
206
204
|
if ("development" !== 'production') {
|
|
207
|
-
var ReactElementValidator = _dereq_(
|
|
205
|
+
var ReactElementValidator = _dereq_(13);
|
|
208
206
|
createElement = ReactElementValidator.createElement;
|
|
209
207
|
createFactory = ReactElementValidator.createFactory;
|
|
210
208
|
cloneElement = ReactElementValidator.cloneElement;
|
|
211
209
|
}
|
|
212
210
|
|
|
213
|
-
var
|
|
211
|
+
var createMixin = function (mixin) {
|
|
212
|
+
return mixin;
|
|
213
|
+
};
|
|
214
214
|
|
|
215
215
|
if ("development" !== 'production') {
|
|
216
|
-
var
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
216
|
+
var warnedForCreateMixin = false;
|
|
217
|
+
|
|
218
|
+
createMixin = function (mixin) {
|
|
219
|
+
"development" !== 'production' ? warning(warnedForCreateMixin, 'React.createMixin is deprecated and should not be used. You ' + 'can use this mixin directly instead.') : void 0;
|
|
220
|
+
warnedForCreateMixin = true;
|
|
221
|
+
return mixin;
|
|
221
222
|
};
|
|
222
223
|
}
|
|
223
224
|
|
|
@@ -233,35 +234,169 @@ var React = {
|
|
|
233
234
|
only: onlyChild
|
|
234
235
|
},
|
|
235
236
|
|
|
236
|
-
Component:
|
|
237
|
-
PureComponent:
|
|
237
|
+
Component: ReactBaseClasses.Component,
|
|
238
|
+
PureComponent: ReactBaseClasses.PureComponent,
|
|
238
239
|
|
|
239
240
|
createElement: createElement,
|
|
240
241
|
cloneElement: cloneElement,
|
|
241
242
|
isValidElement: ReactElement.isValidElement,
|
|
242
243
|
|
|
244
|
+
checkPropTypes: checkPropTypes,
|
|
245
|
+
|
|
243
246
|
// Classic
|
|
244
247
|
|
|
245
248
|
PropTypes: ReactPropTypes,
|
|
246
249
|
createClass: ReactClass.createClass,
|
|
247
250
|
createFactory: createFactory,
|
|
248
|
-
createMixin:
|
|
249
|
-
// Currently a noop. Will be used to validate and trace mixins.
|
|
250
|
-
return mixin;
|
|
251
|
-
},
|
|
251
|
+
createMixin: createMixin,
|
|
252
252
|
|
|
253
253
|
// This looks DOM specific but these are actually isomorphic helpers
|
|
254
254
|
// since they are just generating DOM strings.
|
|
255
255
|
DOM: ReactDOMFactories,
|
|
256
256
|
|
|
257
|
-
version: ReactVersion
|
|
257
|
+
version: ReactVersion
|
|
258
258
|
|
|
259
|
-
// Deprecated hook for JSX spread, don't use this for anything.
|
|
260
|
-
__spread: __spread
|
|
261
259
|
};
|
|
262
260
|
|
|
263
261
|
module.exports = React;
|
|
264
|
-
},{"
|
|
262
|
+
},{"11":11,"13":13,"16":16,"20":20,"22":22,"26":26,"32":32,"4":4,"5":5,"6":6,"9":9}],4:[function(_dereq_,module,exports){
|
|
263
|
+
/**
|
|
264
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
265
|
+
* All rights reserved.
|
|
266
|
+
*
|
|
267
|
+
* This source code is licensed under the BSD-style license found in the
|
|
268
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
269
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
270
|
+
*
|
|
271
|
+
*/
|
|
272
|
+
|
|
273
|
+
'use strict';
|
|
274
|
+
|
|
275
|
+
var _prodInvariant = _dereq_(27),
|
|
276
|
+
_assign = _dereq_(33);
|
|
277
|
+
|
|
278
|
+
var ReactNoopUpdateQueue = _dereq_(15);
|
|
279
|
+
|
|
280
|
+
var canDefineProperty = _dereq_(21);
|
|
281
|
+
var emptyObject = _dereq_(30);
|
|
282
|
+
var invariant = _dereq_(31);
|
|
283
|
+
var warning = _dereq_(32);
|
|
284
|
+
|
|
285
|
+
/**
|
|
286
|
+
* Base class helpers for the updating state of a component.
|
|
287
|
+
*/
|
|
288
|
+
function ReactComponent(props, context, updater) {
|
|
289
|
+
this.props = props;
|
|
290
|
+
this.context = context;
|
|
291
|
+
this.refs = emptyObject;
|
|
292
|
+
// We initialize the default updater but the real one gets injected by the
|
|
293
|
+
// renderer.
|
|
294
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
ReactComponent.prototype.isReactComponent = {};
|
|
298
|
+
|
|
299
|
+
/**
|
|
300
|
+
* Sets a subset of the state. Always use this to mutate
|
|
301
|
+
* state. You should treat `this.state` as immutable.
|
|
302
|
+
*
|
|
303
|
+
* There is no guarantee that `this.state` will be immediately updated, so
|
|
304
|
+
* accessing `this.state` after calling this method may return the old value.
|
|
305
|
+
*
|
|
306
|
+
* There is no guarantee that calls to `setState` will run synchronously,
|
|
307
|
+
* as they may eventually be batched together. You can provide an optional
|
|
308
|
+
* callback that will be executed when the call to setState is actually
|
|
309
|
+
* completed.
|
|
310
|
+
*
|
|
311
|
+
* When a function is provided to setState, it will be called at some point in
|
|
312
|
+
* the future (not synchronously). It will be called with the up to date
|
|
313
|
+
* component arguments (state, props, context). These values can be different
|
|
314
|
+
* from this.* because your function may be called after receiveProps but before
|
|
315
|
+
* shouldComponentUpdate, and this new state, props, and context will not yet be
|
|
316
|
+
* assigned to this.
|
|
317
|
+
*
|
|
318
|
+
* @param {object|function} partialState Next partial state or function to
|
|
319
|
+
* produce next partial state to be merged with current state.
|
|
320
|
+
* @param {?function} callback Called after state is updated.
|
|
321
|
+
* @final
|
|
322
|
+
* @protected
|
|
323
|
+
*/
|
|
324
|
+
ReactComponent.prototype.setState = function (partialState, callback) {
|
|
325
|
+
!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? "development" !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
|
|
326
|
+
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
327
|
+
};
|
|
328
|
+
|
|
329
|
+
/**
|
|
330
|
+
* Forces an update. This should only be invoked when it is known with
|
|
331
|
+
* certainty that we are **not** in a DOM transaction.
|
|
332
|
+
*
|
|
333
|
+
* You may want to call this when you know that some deeper aspect of the
|
|
334
|
+
* component's state has changed but `setState` was not called.
|
|
335
|
+
*
|
|
336
|
+
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
337
|
+
* `componentWillUpdate` and `componentDidUpdate`.
|
|
338
|
+
*
|
|
339
|
+
* @param {?function} callback Called after update is complete.
|
|
340
|
+
* @final
|
|
341
|
+
* @protected
|
|
342
|
+
*/
|
|
343
|
+
ReactComponent.prototype.forceUpdate = function (callback) {
|
|
344
|
+
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
|
|
345
|
+
};
|
|
346
|
+
|
|
347
|
+
/**
|
|
348
|
+
* Deprecated APIs. These APIs used to exist on classic React classes but since
|
|
349
|
+
* we would like to deprecate them, we're not going to move them over to this
|
|
350
|
+
* modern base class. Instead, we define a getter that warns if it's accessed.
|
|
351
|
+
*/
|
|
352
|
+
if ("development" !== 'production') {
|
|
353
|
+
var deprecatedAPIs = {
|
|
354
|
+
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
|
|
355
|
+
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
|
|
356
|
+
};
|
|
357
|
+
var defineDeprecationWarning = function (methodName, info) {
|
|
358
|
+
if (canDefineProperty) {
|
|
359
|
+
Object.defineProperty(ReactComponent.prototype, methodName, {
|
|
360
|
+
get: function () {
|
|
361
|
+
"development" !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
|
|
362
|
+
return undefined;
|
|
363
|
+
}
|
|
364
|
+
});
|
|
365
|
+
}
|
|
366
|
+
};
|
|
367
|
+
for (var fnName in deprecatedAPIs) {
|
|
368
|
+
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
369
|
+
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
370
|
+
}
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/**
|
|
375
|
+
* Base class helpers for the updating state of a component.
|
|
376
|
+
*/
|
|
377
|
+
function ReactPureComponent(props, context, updater) {
|
|
378
|
+
// Duplicated from ReactComponent.
|
|
379
|
+
this.props = props;
|
|
380
|
+
this.context = context;
|
|
381
|
+
this.refs = emptyObject;
|
|
382
|
+
// We initialize the default updater but the real one gets injected by the
|
|
383
|
+
// renderer.
|
|
384
|
+
this.updater = updater || ReactNoopUpdateQueue;
|
|
385
|
+
}
|
|
386
|
+
|
|
387
|
+
function ComponentDummy() {}
|
|
388
|
+
ComponentDummy.prototype = ReactComponent.prototype;
|
|
389
|
+
ReactPureComponent.prototype = new ComponentDummy();
|
|
390
|
+
ReactPureComponent.prototype.constructor = ReactPureComponent;
|
|
391
|
+
// Avoid an extra prototype jump for these methods.
|
|
392
|
+
_assign(ReactPureComponent.prototype, ReactComponent.prototype);
|
|
393
|
+
ReactPureComponent.prototype.isPureReactComponent = true;
|
|
394
|
+
|
|
395
|
+
module.exports = {
|
|
396
|
+
Component: ReactComponent,
|
|
397
|
+
PureComponent: ReactPureComponent
|
|
398
|
+
};
|
|
399
|
+
},{"15":15,"21":21,"27":27,"30":30,"31":31,"32":32,"33":33}],5:[function(_dereq_,module,exports){
|
|
265
400
|
/**
|
|
266
401
|
* Copyright 2013-present, Facebook, Inc.
|
|
267
402
|
* All rights reserved.
|
|
@@ -275,10 +410,10 @@ module.exports = React;
|
|
|
275
410
|
'use strict';
|
|
276
411
|
|
|
277
412
|
var PooledClass = _dereq_(2);
|
|
278
|
-
var ReactElement = _dereq_(
|
|
413
|
+
var ReactElement = _dereq_(11);
|
|
279
414
|
|
|
280
|
-
var emptyFunction = _dereq_(
|
|
281
|
-
var traverseAllChildren = _dereq_(
|
|
415
|
+
var emptyFunction = _dereq_(29);
|
|
416
|
+
var traverseAllChildren = _dereq_(28);
|
|
282
417
|
|
|
283
418
|
var twoArgumentPooler = PooledClass.twoArgumentPooler;
|
|
284
419
|
var fourArgumentPooler = PooledClass.fourArgumentPooler;
|
|
@@ -452,7 +587,7 @@ var ReactChildren = {
|
|
|
452
587
|
};
|
|
453
588
|
|
|
454
589
|
module.exports = ReactChildren;
|
|
455
|
-
},{"
|
|
590
|
+
},{"11":11,"2":2,"28":28,"29":29}],6:[function(_dereq_,module,exports){
|
|
456
591
|
/**
|
|
457
592
|
* Copyright 2013-present, Facebook, Inc.
|
|
458
593
|
* All rights reserved.
|
|
@@ -465,17 +600,18 @@ module.exports = ReactChildren;
|
|
|
465
600
|
|
|
466
601
|
'use strict';
|
|
467
602
|
|
|
468
|
-
var
|
|
469
|
-
|
|
603
|
+
var _assign = _dereq_(33),
|
|
604
|
+
_prodInvariant = _dereq_(27);
|
|
605
|
+
|
|
606
|
+
var ReactBaseClasses = _dereq_(4);
|
|
607
|
+
var ReactElement = _dereq_(11);
|
|
608
|
+
var ReactNoopUpdateQueue = _dereq_(15);
|
|
470
609
|
|
|
471
|
-
var
|
|
472
|
-
var
|
|
473
|
-
var
|
|
474
|
-
var ReactNoopUpdateQueue = _dereq_(13);
|
|
610
|
+
var emptyObject = _dereq_(30);
|
|
611
|
+
var invariant = _dereq_(31);
|
|
612
|
+
var warning = _dereq_(32);
|
|
475
613
|
|
|
476
|
-
var
|
|
477
|
-
var invariant = _dereq_(29);
|
|
478
|
-
var warning = _dereq_(30);
|
|
614
|
+
var ReactComponent = ReactBaseClasses.Component;
|
|
479
615
|
|
|
480
616
|
var MIXINS_KEY = 'mixins';
|
|
481
617
|
|
|
@@ -604,7 +740,6 @@ var ReactClassInterface = {
|
|
|
604
740
|
* }
|
|
605
741
|
*
|
|
606
742
|
* @return {ReactComponent}
|
|
607
|
-
* @nosideeffects
|
|
608
743
|
* @required
|
|
609
744
|
*/
|
|
610
745
|
render: 'DEFINE_ONCE',
|
|
@@ -757,7 +892,7 @@ var RESERVED_SPEC_KEYS = {
|
|
|
757
892
|
},
|
|
758
893
|
childContextTypes: function (Constructor, childContextTypes) {
|
|
759
894
|
if ("development" !== 'production') {
|
|
760
|
-
validateTypeDef(Constructor, childContextTypes, '
|
|
895
|
+
validateTypeDef(Constructor, childContextTypes, 'child context');
|
|
761
896
|
}
|
|
762
897
|
Constructor.childContextTypes = _assign({}, Constructor.childContextTypes, childContextTypes);
|
|
763
898
|
},
|
|
@@ -794,7 +929,7 @@ function validateTypeDef(Constructor, typeDef, location) {
|
|
|
794
929
|
if (typeDef.hasOwnProperty(propName)) {
|
|
795
930
|
// use a warning instead of an invariant so components
|
|
796
931
|
// don't show up in prod but only in __DEV__
|
|
797
|
-
"development" !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass',
|
|
932
|
+
"development" !== 'production' ? warning(typeof typeDef[propName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', Constructor.displayName || 'ReactClass', location, propName) : void 0;
|
|
798
933
|
}
|
|
799
934
|
}
|
|
800
935
|
}
|
|
@@ -1000,9 +1135,9 @@ function bindAutoBindMethod(component, method) {
|
|
|
1000
1135
|
// ignore the value of "this" that the user is trying to use, so
|
|
1001
1136
|
// let's warn.
|
|
1002
1137
|
if (newThis !== component && newThis !== null) {
|
|
1003
|
-
"development" !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance
|
|
1138
|
+
"development" !== 'production' ? warning(false, 'bind(): React component methods may only be bound to the ' + 'component instance.\n\nSee %s', componentName) : void 0;
|
|
1004
1139
|
} else if (!args.length) {
|
|
1005
|
-
"development" !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call
|
|
1140
|
+
"development" !== 'production' ? warning(false, 'bind(): You are binding a component method to the component. ' + 'React does this for you automatically in a high-performance ' + 'way, so you can safely remove this call.\n\nSee %s', componentName) : void 0;
|
|
1006
1141
|
return boundMethod;
|
|
1007
1142
|
}
|
|
1008
1143
|
var reboundMethod = _bind.apply(boundMethod, arguments);
|
|
@@ -1156,119 +1291,7 @@ var ReactClass = {
|
|
|
1156
1291
|
};
|
|
1157
1292
|
|
|
1158
1293
|
module.exports = ReactClass;
|
|
1159
|
-
},{"
|
|
1160
|
-
/**
|
|
1161
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
1162
|
-
* All rights reserved.
|
|
1163
|
-
*
|
|
1164
|
-
* This source code is licensed under the BSD-style license found in the
|
|
1165
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
1166
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
1167
|
-
*
|
|
1168
|
-
*/
|
|
1169
|
-
|
|
1170
|
-
'use strict';
|
|
1171
|
-
|
|
1172
|
-
var _prodInvariant = _dereq_(25);
|
|
1173
|
-
|
|
1174
|
-
var ReactNoopUpdateQueue = _dereq_(13);
|
|
1175
|
-
|
|
1176
|
-
var canDefineProperty = _dereq_(20);
|
|
1177
|
-
var emptyObject = _dereq_(28);
|
|
1178
|
-
var invariant = _dereq_(29);
|
|
1179
|
-
var warning = _dereq_(30);
|
|
1180
|
-
|
|
1181
|
-
/**
|
|
1182
|
-
* Base class helpers for the updating state of a component.
|
|
1183
|
-
*/
|
|
1184
|
-
function ReactComponent(props, context, updater) {
|
|
1185
|
-
this.props = props;
|
|
1186
|
-
this.context = context;
|
|
1187
|
-
this.refs = emptyObject;
|
|
1188
|
-
// We initialize the default updater but the real one gets injected by the
|
|
1189
|
-
// renderer.
|
|
1190
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
1191
|
-
}
|
|
1192
|
-
|
|
1193
|
-
ReactComponent.prototype.isReactComponent = {};
|
|
1194
|
-
|
|
1195
|
-
/**
|
|
1196
|
-
* Sets a subset of the state. Always use this to mutate
|
|
1197
|
-
* state. You should treat `this.state` as immutable.
|
|
1198
|
-
*
|
|
1199
|
-
* There is no guarantee that `this.state` will be immediately updated, so
|
|
1200
|
-
* accessing `this.state` after calling this method may return the old value.
|
|
1201
|
-
*
|
|
1202
|
-
* There is no guarantee that calls to `setState` will run synchronously,
|
|
1203
|
-
* as they may eventually be batched together. You can provide an optional
|
|
1204
|
-
* callback that will be executed when the call to setState is actually
|
|
1205
|
-
* completed.
|
|
1206
|
-
*
|
|
1207
|
-
* When a function is provided to setState, it will be called at some point in
|
|
1208
|
-
* the future (not synchronously). It will be called with the up to date
|
|
1209
|
-
* component arguments (state, props, context). These values can be different
|
|
1210
|
-
* from this.* because your function may be called after receiveProps but before
|
|
1211
|
-
* shouldComponentUpdate, and this new state, props, and context will not yet be
|
|
1212
|
-
* assigned to this.
|
|
1213
|
-
*
|
|
1214
|
-
* @param {object|function} partialState Next partial state or function to
|
|
1215
|
-
* produce next partial state to be merged with current state.
|
|
1216
|
-
* @param {?function} callback Called after state is updated.
|
|
1217
|
-
* @final
|
|
1218
|
-
* @protected
|
|
1219
|
-
*/
|
|
1220
|
-
ReactComponent.prototype.setState = function (partialState, callback) {
|
|
1221
|
-
!(typeof partialState === 'object' || typeof partialState === 'function' || partialState == null) ? "development" !== 'production' ? invariant(false, 'setState(...): takes an object of state variables to update or a function which returns an object of state variables.') : _prodInvariant('85') : void 0;
|
|
1222
|
-
this.updater.enqueueSetState(this, partialState, callback, 'setState');
|
|
1223
|
-
};
|
|
1224
|
-
|
|
1225
|
-
/**
|
|
1226
|
-
* Forces an update. This should only be invoked when it is known with
|
|
1227
|
-
* certainty that we are **not** in a DOM transaction.
|
|
1228
|
-
*
|
|
1229
|
-
* You may want to call this when you know that some deeper aspect of the
|
|
1230
|
-
* component's state has changed but `setState` was not called.
|
|
1231
|
-
*
|
|
1232
|
-
* This will not invoke `shouldComponentUpdate`, but it will invoke
|
|
1233
|
-
* `componentWillUpdate` and `componentDidUpdate`.
|
|
1234
|
-
*
|
|
1235
|
-
* @param {?function} callback Called after update is complete.
|
|
1236
|
-
* @final
|
|
1237
|
-
* @protected
|
|
1238
|
-
*/
|
|
1239
|
-
ReactComponent.prototype.forceUpdate = function (callback) {
|
|
1240
|
-
this.updater.enqueueForceUpdate(this, callback, 'forceUpdate');
|
|
1241
|
-
};
|
|
1242
|
-
|
|
1243
|
-
/**
|
|
1244
|
-
* Deprecated APIs. These APIs used to exist on classic React classes but since
|
|
1245
|
-
* we would like to deprecate them, we're not going to move them over to this
|
|
1246
|
-
* modern base class. Instead, we define a getter that warns if it's accessed.
|
|
1247
|
-
*/
|
|
1248
|
-
if ("development" !== 'production') {
|
|
1249
|
-
var deprecatedAPIs = {
|
|
1250
|
-
isMounted: ['isMounted', 'Instead, make sure to clean up subscriptions and pending requests in ' + 'componentWillUnmount to prevent memory leaks.'],
|
|
1251
|
-
replaceState: ['replaceState', 'Refactor your code to use setState instead (see ' + 'https://github.com/facebook/react/issues/3236).']
|
|
1252
|
-
};
|
|
1253
|
-
var defineDeprecationWarning = function (methodName, info) {
|
|
1254
|
-
if (canDefineProperty) {
|
|
1255
|
-
Object.defineProperty(ReactComponent.prototype, methodName, {
|
|
1256
|
-
get: function () {
|
|
1257
|
-
"development" !== 'production' ? warning(false, '%s(...) is deprecated in plain JavaScript React classes. %s', info[0], info[1]) : void 0;
|
|
1258
|
-
return undefined;
|
|
1259
|
-
}
|
|
1260
|
-
});
|
|
1261
|
-
}
|
|
1262
|
-
};
|
|
1263
|
-
for (var fnName in deprecatedAPIs) {
|
|
1264
|
-
if (deprecatedAPIs.hasOwnProperty(fnName)) {
|
|
1265
|
-
defineDeprecationWarning(fnName, deprecatedAPIs[fnName]);
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
}
|
|
1269
|
-
|
|
1270
|
-
module.exports = ReactComponent;
|
|
1271
|
-
},{"13":13,"20":20,"25":25,"28":28,"29":29,"30":30}],7:[function(_dereq_,module,exports){
|
|
1294
|
+
},{"11":11,"15":15,"27":27,"30":30,"31":31,"32":32,"33":33,"4":4}],7:[function(_dereq_,module,exports){
|
|
1272
1295
|
/**
|
|
1273
1296
|
* Copyright 2016-present, Facebook, Inc.
|
|
1274
1297
|
* All rights reserved.
|
|
@@ -1282,19 +1305,17 @@ module.exports = ReactComponent;
|
|
|
1282
1305
|
|
|
1283
1306
|
'use strict';
|
|
1284
1307
|
|
|
1285
|
-
var _prodInvariant = _dereq_(
|
|
1308
|
+
var _prodInvariant = _dereq_(27);
|
|
1286
1309
|
|
|
1287
1310
|
var ReactCurrentOwner = _dereq_(8);
|
|
1288
|
-
var ReactTypeOfWork = _dereq_(17);
|
|
1289
|
-
var IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent,
|
|
1290
|
-
FunctionalComponent = ReactTypeOfWork.FunctionalComponent,
|
|
1291
|
-
ClassComponent = ReactTypeOfWork.ClassComponent,
|
|
1292
|
-
HostComponent = ReactTypeOfWork.HostComponent;
|
|
1293
1311
|
|
|
1312
|
+
var _require = _dereq_(14),
|
|
1313
|
+
getStackAddendumByWorkInProgressFiber = _require.getStackAddendumByWorkInProgressFiber,
|
|
1314
|
+
describeComponentFrame = _require.describeComponentFrame;
|
|
1294
1315
|
|
|
1295
|
-
var
|
|
1296
|
-
var
|
|
1297
|
-
var
|
|
1316
|
+
var invariant = _dereq_(31);
|
|
1317
|
+
var warning = _dereq_(32);
|
|
1318
|
+
var getComponentName = _dereq_(24);
|
|
1298
1319
|
|
|
1299
1320
|
function isNative(fn) {
|
|
1300
1321
|
// Based on isNative() from Lodash
|
|
@@ -1415,10 +1436,6 @@ function purgeDeep(id) {
|
|
|
1415
1436
|
}
|
|
1416
1437
|
}
|
|
1417
1438
|
|
|
1418
|
-
function describeComponentFrame(name, source, ownerName) {
|
|
1419
|
-
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
1420
|
-
}
|
|
1421
|
-
|
|
1422
1439
|
function getDisplayName(element) {
|
|
1423
1440
|
if (element == null) {
|
|
1424
1441
|
return '#empty';
|
|
@@ -1435,31 +1452,13 @@ function describeID(id) {
|
|
|
1435
1452
|
var name = ReactComponentTreeHook.getDisplayName(id);
|
|
1436
1453
|
var element = ReactComponentTreeHook.getElement(id);
|
|
1437
1454
|
var ownerID = ReactComponentTreeHook.getOwnerID(id);
|
|
1438
|
-
var ownerName;
|
|
1455
|
+
var ownerName = void 0;
|
|
1456
|
+
|
|
1439
1457
|
if (ownerID) {
|
|
1440
1458
|
ownerName = ReactComponentTreeHook.getDisplayName(ownerID);
|
|
1441
1459
|
}
|
|
1442
1460
|
"development" !== 'production' ? warning(element, 'ReactComponentTreeHook: Missing React element for debugID %s when ' + 'building stack', id) : void 0;
|
|
1443
|
-
return describeComponentFrame(name, element && element._source, ownerName);
|
|
1444
|
-
}
|
|
1445
|
-
|
|
1446
|
-
function describeFiber(fiber) {
|
|
1447
|
-
switch (fiber.tag) {
|
|
1448
|
-
case IndeterminateComponent:
|
|
1449
|
-
case FunctionalComponent:
|
|
1450
|
-
case ClassComponent:
|
|
1451
|
-
case HostComponent:
|
|
1452
|
-
var owner = fiber._debugOwner;
|
|
1453
|
-
var source = fiber._debugSource;
|
|
1454
|
-
var name = getComponentName(fiber);
|
|
1455
|
-
var ownerName = null;
|
|
1456
|
-
if (owner) {
|
|
1457
|
-
ownerName = getComponentName(owner);
|
|
1458
|
-
}
|
|
1459
|
-
return describeComponentFrame(name, source, ownerName);
|
|
1460
|
-
default:
|
|
1461
|
-
return '';
|
|
1462
|
-
}
|
|
1461
|
+
return describeComponentFrame(name || '', element && element._source, ownerName || '');
|
|
1463
1462
|
}
|
|
1464
1463
|
|
|
1465
1464
|
var ReactComponentTreeHook = {
|
|
@@ -1567,7 +1566,7 @@ var ReactComponentTreeHook = {
|
|
|
1567
1566
|
var workInProgress = currentOwner;
|
|
1568
1567
|
// Safe because if current owner exists, we are reconciling,
|
|
1569
1568
|
// and it is guaranteed to be the work-in-progress version.
|
|
1570
|
-
info +=
|
|
1569
|
+
info += getStackAddendumByWorkInProgressFiber(workInProgress);
|
|
1571
1570
|
} else if (typeof currentOwner._debugID === 'number') {
|
|
1572
1571
|
info += ReactComponentTreeHook.getStackAddendumByID(currentOwner._debugID);
|
|
1573
1572
|
}
|
|
@@ -1582,21 +1581,6 @@ var ReactComponentTreeHook = {
|
|
|
1582
1581
|
}
|
|
1583
1582
|
return info;
|
|
1584
1583
|
},
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
// This function can only be called with a work-in-progress fiber and
|
|
1588
|
-
// only during begin or complete phase. Do not call it under any other
|
|
1589
|
-
// circumstances.
|
|
1590
|
-
getStackAddendumByWorkInProgressFiber: function (workInProgress) {
|
|
1591
|
-
var info = '';
|
|
1592
|
-
var node = workInProgress;
|
|
1593
|
-
do {
|
|
1594
|
-
info += describeFiber(node);
|
|
1595
|
-
// Otherwise this return pointer might point to the wrong tree:
|
|
1596
|
-
node = node['return'];
|
|
1597
|
-
} while (node);
|
|
1598
|
-
return info;
|
|
1599
|
-
},
|
|
1600
1584
|
getChildIDs: function (id) {
|
|
1601
1585
|
var item = getItem(id);
|
|
1602
1586
|
return item ? item.childIDs : [];
|
|
@@ -1650,7 +1634,7 @@ var ReactComponentTreeHook = {
|
|
|
1650
1634
|
};
|
|
1651
1635
|
|
|
1652
1636
|
module.exports = ReactComponentTreeHook;
|
|
1653
|
-
},{"
|
|
1637
|
+
},{"14":14,"24":24,"27":27,"31":31,"32":32,"8":8}],8:[function(_dereq_,module,exports){
|
|
1654
1638
|
/**
|
|
1655
1639
|
* Copyright 2013-present, Facebook, Inc.
|
|
1656
1640
|
* All rights reserved.
|
|
@@ -1694,7 +1678,7 @@ module.exports = ReactCurrentOwner;
|
|
|
1694
1678
|
|
|
1695
1679
|
'use strict';
|
|
1696
1680
|
|
|
1697
|
-
var ReactElement = _dereq_(
|
|
1681
|
+
var ReactElement = _dereq_(11);
|
|
1698
1682
|
|
|
1699
1683
|
/**
|
|
1700
1684
|
* Create a factory that creates HTML tag elements.
|
|
@@ -1703,7 +1687,7 @@ var ReactElement = _dereq_(10);
|
|
|
1703
1687
|
*/
|
|
1704
1688
|
var createDOMFactory = ReactElement.createFactory;
|
|
1705
1689
|
if ("development" !== 'production') {
|
|
1706
|
-
var ReactElementValidator = _dereq_(
|
|
1690
|
+
var ReactElementValidator = _dereq_(13);
|
|
1707
1691
|
createDOMFactory = ReactElementValidator.createFactory;
|
|
1708
1692
|
}
|
|
1709
1693
|
|
|
@@ -1851,7 +1835,63 @@ var ReactDOMFactories = {
|
|
|
1851
1835
|
};
|
|
1852
1836
|
|
|
1853
1837
|
module.exports = ReactDOMFactories;
|
|
1854
|
-
},{"
|
|
1838
|
+
},{"11":11,"13":13}],10:[function(_dereq_,module,exports){
|
|
1839
|
+
/**
|
|
1840
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
1841
|
+
* All rights reserved.
|
|
1842
|
+
*
|
|
1843
|
+
* This source code is licensed under the BSD-style license found in the
|
|
1844
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
1845
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
1846
|
+
*
|
|
1847
|
+
*
|
|
1848
|
+
*/
|
|
1849
|
+
|
|
1850
|
+
'use strict';
|
|
1851
|
+
|
|
1852
|
+
var ReactDebugCurrentFrame = {};
|
|
1853
|
+
|
|
1854
|
+
if ("development" !== 'production') {
|
|
1855
|
+
var _require = _dereq_(7),
|
|
1856
|
+
getStackAddendumByID = _require.getStackAddendumByID,
|
|
1857
|
+
getCurrentStackAddendum = _require.getCurrentStackAddendum;
|
|
1858
|
+
|
|
1859
|
+
var _require2 = _dereq_(14),
|
|
1860
|
+
getStackAddendumByWorkInProgressFiber = _require2.getStackAddendumByWorkInProgressFiber;
|
|
1861
|
+
|
|
1862
|
+
// Component that is being worked on
|
|
1863
|
+
|
|
1864
|
+
|
|
1865
|
+
ReactDebugCurrentFrame.current = null;
|
|
1866
|
+
|
|
1867
|
+
// Element that is being cloned or created
|
|
1868
|
+
ReactDebugCurrentFrame.element = null;
|
|
1869
|
+
|
|
1870
|
+
ReactDebugCurrentFrame.getStackAddendum = function () {
|
|
1871
|
+
var stack = null;
|
|
1872
|
+
var current = ReactDebugCurrentFrame.current;
|
|
1873
|
+
var element = ReactDebugCurrentFrame.element;
|
|
1874
|
+
if (current !== null) {
|
|
1875
|
+
if (typeof current === 'number') {
|
|
1876
|
+
// DebugID from Stack.
|
|
1877
|
+
var debugID = current;
|
|
1878
|
+
stack = getStackAddendumByID(debugID);
|
|
1879
|
+
} else if (typeof current.tag === 'number') {
|
|
1880
|
+
// This is a Fiber.
|
|
1881
|
+
// The stack will only be correct if this is a work in progress
|
|
1882
|
+
// version and we're calling it during reconciliation.
|
|
1883
|
+
var workInProgress = current;
|
|
1884
|
+
stack = getStackAddendumByWorkInProgressFiber(workInProgress);
|
|
1885
|
+
}
|
|
1886
|
+
} else if (element !== null) {
|
|
1887
|
+
stack = getCurrentStackAddendum(element);
|
|
1888
|
+
}
|
|
1889
|
+
return stack;
|
|
1890
|
+
};
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
module.exports = ReactDebugCurrentFrame;
|
|
1894
|
+
},{"14":14,"7":7}],11:[function(_dereq_,module,exports){
|
|
1855
1895
|
/**
|
|
1856
1896
|
* Copyright 2014-present, Facebook, Inc.
|
|
1857
1897
|
* All rights reserved.
|
|
@@ -1864,15 +1904,15 @@ module.exports = ReactDOMFactories;
|
|
|
1864
1904
|
|
|
1865
1905
|
'use strict';
|
|
1866
1906
|
|
|
1867
|
-
var _assign = _dereq_(
|
|
1907
|
+
var _assign = _dereq_(33);
|
|
1868
1908
|
|
|
1869
1909
|
var ReactCurrentOwner = _dereq_(8);
|
|
1870
1910
|
|
|
1871
|
-
var warning = _dereq_(
|
|
1872
|
-
var canDefineProperty = _dereq_(
|
|
1911
|
+
var warning = _dereq_(32);
|
|
1912
|
+
var canDefineProperty = _dereq_(21);
|
|
1873
1913
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1874
1914
|
|
|
1875
|
-
var REACT_ELEMENT_TYPE = _dereq_(
|
|
1915
|
+
var REACT_ELEMENT_TYPE = _dereq_(12);
|
|
1876
1916
|
|
|
1877
1917
|
var RESERVED_PROPS = {
|
|
1878
1918
|
key: true,
|
|
@@ -2192,7 +2232,7 @@ ReactElement.isValidElement = function (object) {
|
|
|
2192
2232
|
};
|
|
2193
2233
|
|
|
2194
2234
|
module.exports = ReactElement;
|
|
2195
|
-
},{"
|
|
2235
|
+
},{"12":12,"21":21,"32":32,"33":33,"8":8}],12:[function(_dereq_,module,exports){
|
|
2196
2236
|
/**
|
|
2197
2237
|
* Copyright 2014-present, Facebook, Inc.
|
|
2198
2238
|
* All rights reserved.
|
|
@@ -2212,7 +2252,7 @@ module.exports = ReactElement;
|
|
|
2212
2252
|
var REACT_ELEMENT_TYPE = typeof Symbol === 'function' && Symbol['for'] && Symbol['for']('react.element') || 0xeac7;
|
|
2213
2253
|
|
|
2214
2254
|
module.exports = REACT_ELEMENT_TYPE;
|
|
2215
|
-
},{}],
|
|
2255
|
+
},{}],13:[function(_dereq_,module,exports){
|
|
2216
2256
|
/**
|
|
2217
2257
|
* Copyright 2014-present, Facebook, Inc.
|
|
2218
2258
|
* All rights reserved.
|
|
@@ -2233,21 +2273,27 @@ module.exports = REACT_ELEMENT_TYPE;
|
|
|
2233
2273
|
'use strict';
|
|
2234
2274
|
|
|
2235
2275
|
var ReactCurrentOwner = _dereq_(8);
|
|
2236
|
-
var
|
|
2237
|
-
var ReactElement = _dereq_(10);
|
|
2276
|
+
var ReactElement = _dereq_(11);
|
|
2238
2277
|
|
|
2239
|
-
var checkReactTypeSpec = _dereq_(
|
|
2278
|
+
var checkReactTypeSpec = _dereq_(23);
|
|
2240
2279
|
|
|
2241
|
-
var canDefineProperty = _dereq_(
|
|
2242
|
-
var getComponentName = _dereq_(
|
|
2243
|
-
var getIteratorFn = _dereq_(
|
|
2244
|
-
|
|
2280
|
+
var canDefineProperty = _dereq_(21);
|
|
2281
|
+
var getComponentName = _dereq_(24);
|
|
2282
|
+
var getIteratorFn = _dereq_(25);
|
|
2283
|
+
|
|
2284
|
+
if ("development" !== 'production') {
|
|
2285
|
+
var warning = _dereq_(32);
|
|
2286
|
+
var ReactDebugCurrentFrame = _dereq_(10);
|
|
2287
|
+
|
|
2288
|
+
var _require = _dereq_(7),
|
|
2289
|
+
getCurrentStackAddendum = _require.getCurrentStackAddendum;
|
|
2290
|
+
}
|
|
2245
2291
|
|
|
2246
2292
|
function getDeclarationErrorAddendum() {
|
|
2247
2293
|
if (ReactCurrentOwner.current) {
|
|
2248
2294
|
var name = getComponentName(ReactCurrentOwner.current);
|
|
2249
2295
|
if (name) {
|
|
2250
|
-
return '
|
|
2296
|
+
return '\n\nCheck the render method of `' + name + '`.';
|
|
2251
2297
|
}
|
|
2252
2298
|
}
|
|
2253
2299
|
return '';
|
|
@@ -2258,7 +2304,7 @@ function getSourceInfoErrorAddendum(elementProps) {
|
|
|
2258
2304
|
var source = elementProps.__source;
|
|
2259
2305
|
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
2260
2306
|
var lineNumber = source.lineNumber;
|
|
2261
|
-
return '
|
|
2307
|
+
return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
|
|
2262
2308
|
}
|
|
2263
2309
|
return '';
|
|
2264
2310
|
}
|
|
@@ -2276,7 +2322,7 @@ function getCurrentComponentErrorInfo(parentType) {
|
|
|
2276
2322
|
if (!info) {
|
|
2277
2323
|
var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
|
|
2278
2324
|
if (parentName) {
|
|
2279
|
-
info = '
|
|
2325
|
+
info = '\n\nCheck the top-level render call using <' + parentName + '>.';
|
|
2280
2326
|
}
|
|
2281
2327
|
}
|
|
2282
2328
|
return info;
|
|
@@ -2316,7 +2362,7 @@ function validateExplicitKey(element, parentType) {
|
|
|
2316
2362
|
childOwner = ' It was passed a child from ' + getComponentName(element._owner) + '.';
|
|
2317
2363
|
}
|
|
2318
2364
|
|
|
2319
|
-
"development" !== 'production' ? warning(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,
|
|
2365
|
+
"development" !== 'production' ? warning(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, getCurrentStackAddendum(element)) : void 0;
|
|
2320
2366
|
}
|
|
2321
2367
|
|
|
2322
2368
|
/**
|
|
@@ -2374,7 +2420,7 @@ function validatePropTypes(element) {
|
|
|
2374
2420
|
}
|
|
2375
2421
|
var name = componentClass.displayName || componentClass.name;
|
|
2376
2422
|
if (componentClass.propTypes) {
|
|
2377
|
-
checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name
|
|
2423
|
+
checkReactTypeSpec(componentClass.propTypes, element.props, 'prop', name);
|
|
2378
2424
|
}
|
|
2379
2425
|
if (typeof componentClass.getDefaultProps === 'function') {
|
|
2380
2426
|
"development" !== 'production' ? warning(componentClass.getDefaultProps.isReactClassApproved, 'getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.') : void 0;
|
|
@@ -2384,27 +2430,25 @@ function validatePropTypes(element) {
|
|
|
2384
2430
|
var ReactElementValidator = {
|
|
2385
2431
|
|
|
2386
2432
|
createElement: function (type, props, children) {
|
|
2387
|
-
var validType = typeof type === 'string' || typeof type === 'function'
|
|
2433
|
+
var validType = typeof type === 'string' || typeof type === 'function';
|
|
2388
2434
|
// We warn in this case but don't throw. We expect the element creation to
|
|
2389
2435
|
// succeed and there will likely be errors in render.
|
|
2390
2436
|
if (!validType) {
|
|
2391
|
-
|
|
2392
|
-
|
|
2393
|
-
|
|
2394
|
-
|
|
2395
|
-
}
|
|
2437
|
+
var info = '';
|
|
2438
|
+
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
2439
|
+
info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
|
|
2440
|
+
}
|
|
2396
2441
|
|
|
2397
|
-
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2442
|
+
var sourceInfo = getSourceInfoErrorAddendum(props);
|
|
2443
|
+
if (sourceInfo) {
|
|
2444
|
+
info += sourceInfo;
|
|
2445
|
+
} else {
|
|
2446
|
+
info += getDeclarationErrorAddendum();
|
|
2447
|
+
}
|
|
2403
2448
|
|
|
2404
|
-
|
|
2449
|
+
info += getCurrentStackAddendum();
|
|
2405
2450
|
|
|
2406
|
-
|
|
2407
|
-
}
|
|
2451
|
+
"development" !== 'production' ? 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', type == null ? type : typeof type, info) : void 0;
|
|
2408
2452
|
}
|
|
2409
2453
|
|
|
2410
2454
|
var element = ReactElement.createElement.apply(this, arguments);
|
|
@@ -2415,6 +2459,10 @@ var ReactElementValidator = {
|
|
|
2415
2459
|
return element;
|
|
2416
2460
|
}
|
|
2417
2461
|
|
|
2462
|
+
if ("development" !== 'production') {
|
|
2463
|
+
ReactDebugCurrentFrame.element = element;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2418
2466
|
// Skip key warning if the type isn't valid since our key validation logic
|
|
2419
2467
|
// doesn't expect a non-string/function type and can throw confusing errors.
|
|
2420
2468
|
// We don't want exception behavior to differ between dev and prod.
|
|
@@ -2428,6 +2476,10 @@ var ReactElementValidator = {
|
|
|
2428
2476
|
|
|
2429
2477
|
validatePropTypes(element);
|
|
2430
2478
|
|
|
2479
|
+
if ("development" !== 'production') {
|
|
2480
|
+
ReactDebugCurrentFrame.element = null;
|
|
2481
|
+
}
|
|
2482
|
+
|
|
2431
2483
|
return element;
|
|
2432
2484
|
},
|
|
2433
2485
|
|
|
@@ -2456,17 +2508,86 @@ var ReactElementValidator = {
|
|
|
2456
2508
|
|
|
2457
2509
|
cloneElement: function (element, props, children) {
|
|
2458
2510
|
var newElement = ReactElement.cloneElement.apply(this, arguments);
|
|
2511
|
+
if ("development" !== 'production') {
|
|
2512
|
+
ReactDebugCurrentFrame.element = newElement;
|
|
2513
|
+
}
|
|
2459
2514
|
for (var i = 2; i < arguments.length; i++) {
|
|
2460
2515
|
validateChildKeys(arguments[i], newElement.type);
|
|
2461
2516
|
}
|
|
2462
2517
|
validatePropTypes(newElement);
|
|
2518
|
+
if ("development" !== 'production') {
|
|
2519
|
+
ReactDebugCurrentFrame.element = null;
|
|
2520
|
+
}
|
|
2463
2521
|
return newElement;
|
|
2464
2522
|
}
|
|
2465
2523
|
|
|
2466
2524
|
};
|
|
2467
2525
|
|
|
2468
2526
|
module.exports = ReactElementValidator;
|
|
2469
|
-
},{"10":10,"
|
|
2527
|
+
},{"10":10,"11":11,"21":21,"23":23,"24":24,"25":25,"32":32,"7":7,"8":8}],14:[function(_dereq_,module,exports){
|
|
2528
|
+
/**
|
|
2529
|
+
* Copyright 2016-present, Facebook, Inc.
|
|
2530
|
+
* All rights reserved.
|
|
2531
|
+
*
|
|
2532
|
+
* This source code is licensed under the BSD-style license found in the
|
|
2533
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
2534
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
2535
|
+
*
|
|
2536
|
+
*
|
|
2537
|
+
*/
|
|
2538
|
+
|
|
2539
|
+
'use strict';
|
|
2540
|
+
|
|
2541
|
+
var ReactTypeOfWork = _dereq_(18);
|
|
2542
|
+
var IndeterminateComponent = ReactTypeOfWork.IndeterminateComponent,
|
|
2543
|
+
FunctionalComponent = ReactTypeOfWork.FunctionalComponent,
|
|
2544
|
+
ClassComponent = ReactTypeOfWork.ClassComponent,
|
|
2545
|
+
HostComponent = ReactTypeOfWork.HostComponent;
|
|
2546
|
+
|
|
2547
|
+
var getComponentName = _dereq_(24);
|
|
2548
|
+
|
|
2549
|
+
function describeComponentFrame(name, source, ownerName) {
|
|
2550
|
+
return '\n in ' + (name || 'Unknown') + (source ? ' (at ' + source.fileName.replace(/^.*[\\\/]/, '') + ':' + source.lineNumber + ')' : ownerName ? ' (created by ' + ownerName + ')' : '');
|
|
2551
|
+
}
|
|
2552
|
+
|
|
2553
|
+
function describeFiber(fiber) {
|
|
2554
|
+
switch (fiber.tag) {
|
|
2555
|
+
case IndeterminateComponent:
|
|
2556
|
+
case FunctionalComponent:
|
|
2557
|
+
case ClassComponent:
|
|
2558
|
+
case HostComponent:
|
|
2559
|
+
var owner = fiber._debugOwner;
|
|
2560
|
+
var source = fiber._debugSource;
|
|
2561
|
+
var name = getComponentName(fiber);
|
|
2562
|
+
var ownerName = null;
|
|
2563
|
+
if (owner) {
|
|
2564
|
+
ownerName = getComponentName(owner);
|
|
2565
|
+
}
|
|
2566
|
+
return describeComponentFrame(name, source, ownerName);
|
|
2567
|
+
default:
|
|
2568
|
+
return '';
|
|
2569
|
+
}
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
// This function can only be called with a work-in-progress fiber and
|
|
2573
|
+
// only during begin or complete phase. Do not call it under any other
|
|
2574
|
+
// circumstances.
|
|
2575
|
+
function getStackAddendumByWorkInProgressFiber(workInProgress) {
|
|
2576
|
+
var info = '';
|
|
2577
|
+
var node = workInProgress;
|
|
2578
|
+
do {
|
|
2579
|
+
info += describeFiber(node);
|
|
2580
|
+
// Otherwise this return pointer might point to the wrong tree:
|
|
2581
|
+
node = node['return'];
|
|
2582
|
+
} while (node);
|
|
2583
|
+
return info;
|
|
2584
|
+
}
|
|
2585
|
+
|
|
2586
|
+
module.exports = {
|
|
2587
|
+
getStackAddendumByWorkInProgressFiber: getStackAddendumByWorkInProgressFiber,
|
|
2588
|
+
describeComponentFrame: describeComponentFrame
|
|
2589
|
+
};
|
|
2590
|
+
},{"18":18,"24":24}],15:[function(_dereq_,module,exports){
|
|
2470
2591
|
/**
|
|
2471
2592
|
* Copyright 2015-present, Facebook, Inc.
|
|
2472
2593
|
* All rights reserved.
|
|
@@ -2479,12 +2600,12 @@ module.exports = ReactElementValidator;
|
|
|
2479
2600
|
|
|
2480
2601
|
'use strict';
|
|
2481
2602
|
|
|
2482
|
-
var warning = _dereq_(
|
|
2603
|
+
var warning = _dereq_(32);
|
|
2483
2604
|
|
|
2484
2605
|
function warnNoop(publicInstance, callerName) {
|
|
2485
2606
|
if ("development" !== 'production') {
|
|
2486
2607
|
var constructor = publicInstance.constructor;
|
|
2487
|
-
"development" !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op
|
|
2608
|
+
"development" !== 'production' ? warning(false, '%s(...): Can only update a mounted or mounting component. ' + 'This usually means you called %s() on an unmounted component. ' + 'This is a no-op.\n\nPlease check the code for the %s component.', callerName, callerName, constructor && (constructor.displayName || constructor.name) || 'ReactClass') : void 0;
|
|
2488
2609
|
}
|
|
2489
2610
|
}
|
|
2490
2611
|
|
|
@@ -2558,32 +2679,7 @@ var ReactNoopUpdateQueue = {
|
|
|
2558
2679
|
};
|
|
2559
2680
|
|
|
2560
2681
|
module.exports = ReactNoopUpdateQueue;
|
|
2561
|
-
},{"
|
|
2562
|
-
/**
|
|
2563
|
-
* Copyright 2013-present, Facebook, Inc.
|
|
2564
|
-
* All rights reserved.
|
|
2565
|
-
*
|
|
2566
|
-
* This source code is licensed under the BSD-style license found in the
|
|
2567
|
-
* LICENSE file in the root directory of this source tree. An additional grant
|
|
2568
|
-
* of patent rights can be found in the PATENTS file in the same directory.
|
|
2569
|
-
*
|
|
2570
|
-
*
|
|
2571
|
-
*/
|
|
2572
|
-
|
|
2573
|
-
'use strict';
|
|
2574
|
-
|
|
2575
|
-
var ReactPropTypeLocationNames = {};
|
|
2576
|
-
|
|
2577
|
-
if ("development" !== 'production') {
|
|
2578
|
-
ReactPropTypeLocationNames = {
|
|
2579
|
-
prop: 'prop',
|
|
2580
|
-
context: 'context',
|
|
2581
|
-
childContext: 'child context'
|
|
2582
|
-
};
|
|
2583
|
-
}
|
|
2584
|
-
|
|
2585
|
-
module.exports = ReactPropTypeLocationNames;
|
|
2586
|
-
},{}],15:[function(_dereq_,module,exports){
|
|
2682
|
+
},{"32":32}],16:[function(_dereq_,module,exports){
|
|
2587
2683
|
/**
|
|
2588
2684
|
* Copyright 2013-present, Facebook, Inc.
|
|
2589
2685
|
* All rights reserved.
|
|
@@ -2596,15 +2692,15 @@ module.exports = ReactPropTypeLocationNames;
|
|
|
2596
2692
|
|
|
2597
2693
|
'use strict';
|
|
2598
2694
|
|
|
2599
|
-
var _prodInvariant = _dereq_(
|
|
2695
|
+
var _prodInvariant = _dereq_(27);
|
|
2600
2696
|
|
|
2601
|
-
var ReactElement = _dereq_(
|
|
2602
|
-
var
|
|
2697
|
+
var ReactElement = _dereq_(11);
|
|
2698
|
+
var ReactPropTypesSecret = _dereq_(17);
|
|
2603
2699
|
|
|
2604
|
-
var emptyFunction = _dereq_(
|
|
2605
|
-
var getIteratorFn = _dereq_(
|
|
2606
|
-
var invariant = _dereq_(
|
|
2607
|
-
var warning = _dereq_(
|
|
2700
|
+
var emptyFunction = _dereq_(29);
|
|
2701
|
+
var getIteratorFn = _dereq_(25);
|
|
2702
|
+
var invariant = _dereq_(31);
|
|
2703
|
+
var warning = _dereq_(32);
|
|
2608
2704
|
|
|
2609
2705
|
/**
|
|
2610
2706
|
* Collection of methods that allow declaration and validation of props that are
|
|
@@ -2680,7 +2776,7 @@ if ("development" !== 'production') {
|
|
|
2680
2776
|
};
|
|
2681
2777
|
} else {
|
|
2682
2778
|
var productionTypeChecker = function () {
|
|
2683
|
-
invariant(false, 'React.PropTypes type checking code is stripped in production.');
|
|
2779
|
+
!false ? "development" !== 'production' ? invariant(false, 'React.PropTypes type checking code is stripped in production.') : _prodInvariant('144') : void 0;
|
|
2684
2780
|
};
|
|
2685
2781
|
productionTypeChecker.isRequired = productionTypeChecker;
|
|
2686
2782
|
var getProductionTypeChecker = function () {
|
|
@@ -2728,7 +2824,7 @@ function is(x, y) {
|
|
|
2728
2824
|
|
|
2729
2825
|
/**
|
|
2730
2826
|
* We use an Error-like object for backward compatibility as people may call
|
|
2731
|
-
* PropTypes directly and inspect their output. However we don't use real
|
|
2827
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
2732
2828
|
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
2733
2829
|
* is prohibitively expensive if they are created too often, such as what
|
|
2734
2830
|
* happens in oneOfType() for any type before the one that matched.
|
|
@@ -2741,16 +2837,27 @@ function PropTypeError(message) {
|
|
|
2741
2837
|
PropTypeError.prototype = Error.prototype;
|
|
2742
2838
|
|
|
2743
2839
|
function createChainableTypeChecker(validate) {
|
|
2744
|
-
|
|
2840
|
+
if ("development" !== 'production') {
|
|
2841
|
+
var manualPropTypeCallCache = {};
|
|
2842
|
+
}
|
|
2843
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
2745
2844
|
componentName = componentName || ANONYMOUS;
|
|
2746
2845
|
propFullName = propFullName || propName;
|
|
2846
|
+
if ("development" !== 'production') {
|
|
2847
|
+
if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {
|
|
2848
|
+
var cacheKey = componentName + ':' + propName;
|
|
2849
|
+
if (!manualPropTypeCallCache[cacheKey]) {
|
|
2850
|
+
"development" !== 'production' ? warning(false, 'You are manually calling a React.PropTypes validation ' + 'function for the `%s` prop on `%s`. This is deprecated ' + 'and will not work in production with the next major version. ' + 'You may be seeing this warning due to a third-party PropTypes ' + 'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.', propFullName, componentName) : void 0;
|
|
2851
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
}
|
|
2747
2855
|
if (props[propName] == null) {
|
|
2748
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2749
2856
|
if (isRequired) {
|
|
2750
2857
|
if (props[propName] === null) {
|
|
2751
|
-
return new PropTypeError('The ' +
|
|
2858
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
2752
2859
|
}
|
|
2753
|
-
return new PropTypeError('The ' +
|
|
2860
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
2754
2861
|
}
|
|
2755
2862
|
return null;
|
|
2756
2863
|
} else {
|
|
@@ -2765,17 +2872,16 @@ function createChainableTypeChecker(validate) {
|
|
|
2765
2872
|
}
|
|
2766
2873
|
|
|
2767
2874
|
function createPrimitiveTypeChecker(expectedType) {
|
|
2768
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2875
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
2769
2876
|
var propValue = props[propName];
|
|
2770
2877
|
var propType = getPropType(propValue);
|
|
2771
2878
|
if (propType !== expectedType) {
|
|
2772
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2773
2879
|
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
2774
2880
|
// check, but we can offer a more precise error message here rather than
|
|
2775
2881
|
// 'of type `object`'.
|
|
2776
2882
|
var preciseType = getPreciseType(propValue);
|
|
2777
2883
|
|
|
2778
|
-
return new PropTypeError('Invalid ' +
|
|
2884
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
2779
2885
|
}
|
|
2780
2886
|
return null;
|
|
2781
2887
|
}
|
|
@@ -2783,7 +2889,7 @@ function createPrimitiveTypeChecker(expectedType) {
|
|
|
2783
2889
|
}
|
|
2784
2890
|
|
|
2785
2891
|
function createAnyTypeChecker() {
|
|
2786
|
-
return createChainableTypeChecker(emptyFunction.
|
|
2892
|
+
return createChainableTypeChecker(emptyFunction.thatReturnsNull);
|
|
2787
2893
|
}
|
|
2788
2894
|
|
|
2789
2895
|
function createArrayOfTypeChecker(typeChecker) {
|
|
@@ -2793,12 +2899,11 @@ function createArrayOfTypeChecker(typeChecker) {
|
|
|
2793
2899
|
}
|
|
2794
2900
|
var propValue = props[propName];
|
|
2795
2901
|
if (!Array.isArray(propValue)) {
|
|
2796
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2797
2902
|
var propType = getPropType(propValue);
|
|
2798
|
-
return new PropTypeError('Invalid ' +
|
|
2903
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
2799
2904
|
}
|
|
2800
2905
|
for (var i = 0; i < propValue.length; i++) {
|
|
2801
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']');
|
|
2906
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
2802
2907
|
if (error instanceof Error) {
|
|
2803
2908
|
return error;
|
|
2804
2909
|
}
|
|
@@ -2812,9 +2917,8 @@ function createElementTypeChecker() {
|
|
|
2812
2917
|
function validate(props, propName, componentName, location, propFullName) {
|
|
2813
2918
|
var propValue = props[propName];
|
|
2814
2919
|
if (!ReactElement.isValidElement(propValue)) {
|
|
2815
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2816
2920
|
var propType = getPropType(propValue);
|
|
2817
|
-
return new PropTypeError('Invalid ' +
|
|
2921
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
2818
2922
|
}
|
|
2819
2923
|
return null;
|
|
2820
2924
|
}
|
|
@@ -2824,10 +2928,9 @@ function createElementTypeChecker() {
|
|
|
2824
2928
|
function createInstanceTypeChecker(expectedClass) {
|
|
2825
2929
|
function validate(props, propName, componentName, location, propFullName) {
|
|
2826
2930
|
if (!(props[propName] instanceof expectedClass)) {
|
|
2827
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2828
2931
|
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
2829
2932
|
var actualClassName = getClassName(props[propName]);
|
|
2830
|
-
return new PropTypeError('Invalid ' +
|
|
2933
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
2831
2934
|
}
|
|
2832
2935
|
return null;
|
|
2833
2936
|
}
|
|
@@ -2848,9 +2951,8 @@ function createEnumTypeChecker(expectedValues) {
|
|
|
2848
2951
|
}
|
|
2849
2952
|
}
|
|
2850
2953
|
|
|
2851
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2852
2954
|
var valuesString = JSON.stringify(expectedValues);
|
|
2853
|
-
return new PropTypeError('Invalid ' +
|
|
2955
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
2854
2956
|
}
|
|
2855
2957
|
return createChainableTypeChecker(validate);
|
|
2856
2958
|
}
|
|
@@ -2863,12 +2965,11 @@ function createObjectOfTypeChecker(typeChecker) {
|
|
|
2863
2965
|
var propValue = props[propName];
|
|
2864
2966
|
var propType = getPropType(propValue);
|
|
2865
2967
|
if (propType !== 'object') {
|
|
2866
|
-
|
|
2867
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
2968
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
2868
2969
|
}
|
|
2869
2970
|
for (var key in propValue) {
|
|
2870
2971
|
if (propValue.hasOwnProperty(key)) {
|
|
2871
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key);
|
|
2972
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2872
2973
|
if (error instanceof Error) {
|
|
2873
2974
|
return error;
|
|
2874
2975
|
}
|
|
@@ -2888,13 +2989,12 @@ function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
|
2888
2989
|
function validate(props, propName, componentName, location, propFullName) {
|
|
2889
2990
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
2890
2991
|
var checker = arrayOfTypeCheckers[i];
|
|
2891
|
-
if (checker(props, propName, componentName, location, propFullName) == null) {
|
|
2992
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
2892
2993
|
return null;
|
|
2893
2994
|
}
|
|
2894
2995
|
}
|
|
2895
2996
|
|
|
2896
|
-
|
|
2897
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
2997
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
2898
2998
|
}
|
|
2899
2999
|
return createChainableTypeChecker(validate);
|
|
2900
3000
|
}
|
|
@@ -2902,8 +3002,7 @@ function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
|
2902
3002
|
function createNodeChecker() {
|
|
2903
3003
|
function validate(props, propName, componentName, location, propFullName) {
|
|
2904
3004
|
if (!isNode(props[propName])) {
|
|
2905
|
-
|
|
2906
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
3005
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
2907
3006
|
}
|
|
2908
3007
|
return null;
|
|
2909
3008
|
}
|
|
@@ -2915,15 +3014,14 @@ function createShapeTypeChecker(shapeTypes) {
|
|
|
2915
3014
|
var propValue = props[propName];
|
|
2916
3015
|
var propType = getPropType(propValue);
|
|
2917
3016
|
if (propType !== 'object') {
|
|
2918
|
-
|
|
2919
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
3017
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
2920
3018
|
}
|
|
2921
3019
|
for (var key in shapeTypes) {
|
|
2922
3020
|
var checker = shapeTypes[key];
|
|
2923
3021
|
if (!checker) {
|
|
2924
3022
|
continue;
|
|
2925
3023
|
}
|
|
2926
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key);
|
|
3024
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2927
3025
|
if (error) {
|
|
2928
3026
|
return error;
|
|
2929
3027
|
}
|
|
@@ -3040,7 +3138,7 @@ function getClassName(propValue) {
|
|
|
3040
3138
|
}
|
|
3041
3139
|
|
|
3042
3140
|
module.exports = ReactPropTypes;
|
|
3043
|
-
},{"
|
|
3141
|
+
},{"11":11,"17":17,"25":25,"27":27,"29":29,"31":31,"32":32}],17:[function(_dereq_,module,exports){
|
|
3044
3142
|
/**
|
|
3045
3143
|
* Copyright 2013-present, Facebook, Inc.
|
|
3046
3144
|
* All rights reserved.
|
|
@@ -3049,40 +3147,15 @@ module.exports = ReactPropTypes;
|
|
|
3049
3147
|
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3050
3148
|
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3051
3149
|
*
|
|
3150
|
+
*
|
|
3052
3151
|
*/
|
|
3053
3152
|
|
|
3054
3153
|
'use strict';
|
|
3055
3154
|
|
|
3056
|
-
var
|
|
3057
|
-
|
|
3058
|
-
var ReactComponent = _dereq_(6);
|
|
3059
|
-
var ReactNoopUpdateQueue = _dereq_(13);
|
|
3155
|
+
var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
3060
3156
|
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
/**
|
|
3064
|
-
* Base class helpers for the updating state of a component.
|
|
3065
|
-
*/
|
|
3066
|
-
function ReactPureComponent(props, context, updater) {
|
|
3067
|
-
// Duplicated from ReactComponent.
|
|
3068
|
-
this.props = props;
|
|
3069
|
-
this.context = context;
|
|
3070
|
-
this.refs = emptyObject;
|
|
3071
|
-
// We initialize the default updater but the real one gets injected by the
|
|
3072
|
-
// renderer.
|
|
3073
|
-
this.updater = updater || ReactNoopUpdateQueue;
|
|
3074
|
-
}
|
|
3075
|
-
|
|
3076
|
-
function ComponentDummy() {}
|
|
3077
|
-
ComponentDummy.prototype = ReactComponent.prototype;
|
|
3078
|
-
ReactPureComponent.prototype = new ComponentDummy();
|
|
3079
|
-
ReactPureComponent.prototype.constructor = ReactPureComponent;
|
|
3080
|
-
// Avoid an extra prototype jump for these methods.
|
|
3081
|
-
_assign(ReactPureComponent.prototype, ReactComponent.prototype);
|
|
3082
|
-
ReactPureComponent.prototype.isPureReactComponent = true;
|
|
3083
|
-
|
|
3084
|
-
module.exports = ReactPureComponent;
|
|
3085
|
-
},{"13":13,"28":28,"31":31,"6":6}],17:[function(_dereq_,module,exports){
|
|
3157
|
+
module.exports = ReactPropTypesSecret;
|
|
3158
|
+
},{}],18:[function(_dereq_,module,exports){
|
|
3086
3159
|
/**
|
|
3087
3160
|
* Copyright 2013-present, Facebook, Inc.
|
|
3088
3161
|
* All rights reserved.
|
|
@@ -3109,7 +3182,7 @@ module.exports = {
|
|
|
3109
3182
|
YieldComponent: 9,
|
|
3110
3183
|
Fragment: 10
|
|
3111
3184
|
};
|
|
3112
|
-
},{}],
|
|
3185
|
+
},{}],19:[function(_dereq_,module,exports){
|
|
3113
3186
|
/**
|
|
3114
3187
|
* Copyright 2013-present, Facebook, Inc.
|
|
3115
3188
|
* All rights reserved.
|
|
@@ -3122,7 +3195,7 @@ module.exports = {
|
|
|
3122
3195
|
|
|
3123
3196
|
'use strict';
|
|
3124
3197
|
|
|
3125
|
-
var _assign = _dereq_(
|
|
3198
|
+
var _assign = _dereq_(33);
|
|
3126
3199
|
|
|
3127
3200
|
var React = _dereq_(3);
|
|
3128
3201
|
|
|
@@ -3141,7 +3214,7 @@ if ("development" !== 'production') {
|
|
|
3141
3214
|
}
|
|
3142
3215
|
|
|
3143
3216
|
module.exports = ReactUMDEntry;
|
|
3144
|
-
},{"3":3,"
|
|
3217
|
+
},{"3":3,"33":33,"7":7,"8":8}],20:[function(_dereq_,module,exports){
|
|
3145
3218
|
/**
|
|
3146
3219
|
* Copyright 2013-present, Facebook, Inc.
|
|
3147
3220
|
* All rights reserved.
|
|
@@ -3154,8 +3227,8 @@ module.exports = ReactUMDEntry;
|
|
|
3154
3227
|
|
|
3155
3228
|
'use strict';
|
|
3156
3229
|
|
|
3157
|
-
module.exports = '16.0.0-alpha';
|
|
3158
|
-
},{}],
|
|
3230
|
+
module.exports = '16.0.0-alpha.4';
|
|
3231
|
+
},{}],21:[function(_dereq_,module,exports){
|
|
3159
3232
|
/**
|
|
3160
3233
|
* Copyright 2013-present, Facebook, Inc.
|
|
3161
3234
|
* All rights reserved.
|
|
@@ -3181,8 +3254,7 @@ if ("development" !== 'production') {
|
|
|
3181
3254
|
}
|
|
3182
3255
|
|
|
3183
3256
|
module.exports = canDefineProperty;
|
|
3184
|
-
},{}],
|
|
3185
|
-
(function (process){
|
|
3257
|
+
},{}],22:[function(_dereq_,module,exports){
|
|
3186
3258
|
/**
|
|
3187
3259
|
* Copyright 2013-present, Facebook, Inc.
|
|
3188
3260
|
* All rights reserved.
|
|
@@ -3195,23 +3267,12 @@ module.exports = canDefineProperty;
|
|
|
3195
3267
|
|
|
3196
3268
|
'use strict';
|
|
3197
3269
|
|
|
3198
|
-
var _prodInvariant = _dereq_(
|
|
3199
|
-
|
|
3200
|
-
var ReactPropTypeLocationNames = _dereq_(14);
|
|
3270
|
+
var _prodInvariant = _dereq_(27);
|
|
3201
3271
|
|
|
3202
|
-
var
|
|
3203
|
-
var warning = _dereq_(30);
|
|
3272
|
+
var ReactPropTypesSecret = _dereq_(17);
|
|
3204
3273
|
|
|
3205
|
-
var
|
|
3206
|
-
|
|
3207
|
-
if (typeof process !== 'undefined' && process.env && "development" === 'test') {
|
|
3208
|
-
// Temporary hack.
|
|
3209
|
-
// Inline requires don't work well with Jest:
|
|
3210
|
-
// https://github.com/facebook/react/issues/7240
|
|
3211
|
-
// Remove the inline requires when we don't need them anymore:
|
|
3212
|
-
// https://github.com/facebook/react/pull/7178
|
|
3213
|
-
ReactComponentTreeHook = _dereq_(7);
|
|
3214
|
-
}
|
|
3274
|
+
var invariant = _dereq_(31);
|
|
3275
|
+
var warning = _dereq_(32);
|
|
3215
3276
|
|
|
3216
3277
|
var loggedTypeFailures = {};
|
|
3217
3278
|
|
|
@@ -3223,65 +3284,65 @@ var loggedTypeFailures = {};
|
|
|
3223
3284
|
* @param {object} values Runtime values that need to be type-checked
|
|
3224
3285
|
* @param {string} location e.g. "prop", "context", "child context"
|
|
3225
3286
|
* @param {string} componentName Name of the component for error messages.
|
|
3226
|
-
* @param {?
|
|
3227
|
-
* @param {?number} workInProgressOrDebugID The React component instance that is being type-checked
|
|
3287
|
+
* @param {?Function} getStack Returns the component stack.
|
|
3228
3288
|
* @private
|
|
3229
3289
|
*/
|
|
3230
|
-
function
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
|
|
3246
|
-
|
|
3247
|
-
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
loggedTypeFailures[error.message] = true;
|
|
3290
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
3291
|
+
if ("development" !== 'production') {
|
|
3292
|
+
for (var typeSpecName in typeSpecs) {
|
|
3293
|
+
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
|
3294
|
+
var error;
|
|
3295
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
3296
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
3297
|
+
// After these have been cleaned up, we'll let them throw.
|
|
3298
|
+
try {
|
|
3299
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
3300
|
+
// behavior as without this statement except with a better message.
|
|
3301
|
+
!(typeof typeSpecs[typeSpecName] === 'function') ? "development" !== 'production' ? invariant(false, '%s: %s type `%s` is invalid; it must be a function, usually from React.PropTypes.', componentName || 'React class', location, typeSpecName) : _prodInvariant('84', componentName || 'React class', location, typeSpecName) : void 0;
|
|
3302
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
3303
|
+
} catch (ex) {
|
|
3304
|
+
error = ex;
|
|
3305
|
+
}
|
|
3306
|
+
"development" !== 'production' ? warning(!error || error instanceof Error, '%s: type specification of %s `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error) : void 0;
|
|
3307
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
3308
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
3309
|
+
// same error.
|
|
3310
|
+
loggedTypeFailures[error.message] = true;
|
|
3252
3311
|
|
|
3253
|
-
|
|
3312
|
+
var stack = getStack ? getStack() : '';
|
|
3254
3313
|
|
|
3255
|
-
|
|
3256
|
-
if (!ReactComponentTreeHook) {
|
|
3257
|
-
ReactComponentTreeHook = _dereq_(7);
|
|
3258
|
-
}
|
|
3259
|
-
if (workInProgressOrDebugID != null) {
|
|
3260
|
-
if (typeof workInProgressOrDebugID === 'number') {
|
|
3261
|
-
// DebugID from Stack.
|
|
3262
|
-
var debugID = workInProgressOrDebugID;
|
|
3263
|
-
componentStackInfo = ReactComponentTreeHook.getStackAddendumByID(debugID);
|
|
3264
|
-
} else if (typeof workInProgressOrDebugID.tag === 'number') {
|
|
3265
|
-
// This is a Fiber.
|
|
3266
|
-
// The stack will only be correct if this is a work in progress
|
|
3267
|
-
// version and we're calling it during reconciliation.
|
|
3268
|
-
var workInProgress = workInProgressOrDebugID;
|
|
3269
|
-
componentStackInfo = ReactComponentTreeHook.getStackAddendumByWorkInProgressFiber(workInProgress);
|
|
3270
|
-
}
|
|
3271
|
-
} else if (element !== null) {
|
|
3272
|
-
componentStackInfo = ReactComponentTreeHook.getCurrentStackAddendum(element);
|
|
3273
|
-
}
|
|
3314
|
+
"development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '') : void 0;
|
|
3274
3315
|
}
|
|
3275
|
-
|
|
3276
|
-
"development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, componentStackInfo) : void 0;
|
|
3277
3316
|
}
|
|
3278
3317
|
}
|
|
3279
3318
|
}
|
|
3280
3319
|
}
|
|
3281
3320
|
|
|
3321
|
+
module.exports = checkPropTypes;
|
|
3322
|
+
},{"17":17,"27":27,"31":31,"32":32}],23:[function(_dereq_,module,exports){
|
|
3323
|
+
/**
|
|
3324
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
3325
|
+
* All rights reserved.
|
|
3326
|
+
*
|
|
3327
|
+
* This source code is licensed under the BSD-style license found in the
|
|
3328
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3329
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3330
|
+
*
|
|
3331
|
+
*/
|
|
3332
|
+
|
|
3333
|
+
'use strict';
|
|
3334
|
+
|
|
3335
|
+
var checkPropTypes = _dereq_(22);
|
|
3336
|
+
|
|
3337
|
+
var _require = _dereq_(10),
|
|
3338
|
+
getStackAddendum = _require.getStackAddendum;
|
|
3339
|
+
|
|
3340
|
+
function checkReactTypeSpec(typeSpecs, values, location, componentName) {
|
|
3341
|
+
checkPropTypes(typeSpecs, values, location, componentName, getStackAddendum);
|
|
3342
|
+
}
|
|
3343
|
+
|
|
3282
3344
|
module.exports = checkReactTypeSpec;
|
|
3283
|
-
}
|
|
3284
|
-
},{"14":14,"25":25,"29":29,"30":30,"7":7}],22:[function(_dereq_,module,exports){
|
|
3345
|
+
},{"10":10,"22":22}],24:[function(_dereq_,module,exports){
|
|
3285
3346
|
/**
|
|
3286
3347
|
* Copyright 2013-present, Facebook, Inc.
|
|
3287
3348
|
* All rights reserved.
|
|
@@ -3296,30 +3357,28 @@ module.exports = checkReactTypeSpec;
|
|
|
3296
3357
|
'use strict';
|
|
3297
3358
|
|
|
3298
3359
|
function getComponentName(instanceOrFiber) {
|
|
3299
|
-
if (
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
return type.displayName || type.name || null;
|
|
3315
|
-
}
|
|
3360
|
+
if (typeof instanceOrFiber.getName === 'function') {
|
|
3361
|
+
// Stack reconciler
|
|
3362
|
+
var instance = instanceOrFiber;
|
|
3363
|
+
return instance.getName();
|
|
3364
|
+
}
|
|
3365
|
+
if (typeof instanceOrFiber.tag === 'number') {
|
|
3366
|
+
// Fiber reconciler
|
|
3367
|
+
var fiber = instanceOrFiber;
|
|
3368
|
+
var type = fiber.type;
|
|
3369
|
+
|
|
3370
|
+
if (typeof type === 'string') {
|
|
3371
|
+
return type;
|
|
3372
|
+
}
|
|
3373
|
+
if (typeof type === 'function') {
|
|
3374
|
+
return type.displayName || type.name;
|
|
3316
3375
|
}
|
|
3317
3376
|
}
|
|
3318
3377
|
return null;
|
|
3319
3378
|
}
|
|
3320
3379
|
|
|
3321
3380
|
module.exports = getComponentName;
|
|
3322
|
-
},{}],
|
|
3381
|
+
},{}],25:[function(_dereq_,module,exports){
|
|
3323
3382
|
/**
|
|
3324
3383
|
* Copyright 2013-present, Facebook, Inc.
|
|
3325
3384
|
* All rights reserved.
|
|
@@ -3360,7 +3419,7 @@ function getIteratorFn(maybeIterable) {
|
|
|
3360
3419
|
}
|
|
3361
3420
|
|
|
3362
3421
|
module.exports = getIteratorFn;
|
|
3363
|
-
},{}],
|
|
3422
|
+
},{}],26:[function(_dereq_,module,exports){
|
|
3364
3423
|
/**
|
|
3365
3424
|
* Copyright 2013-present, Facebook, Inc.
|
|
3366
3425
|
* All rights reserved.
|
|
@@ -3372,11 +3431,11 @@ module.exports = getIteratorFn;
|
|
|
3372
3431
|
*/
|
|
3373
3432
|
'use strict';
|
|
3374
3433
|
|
|
3375
|
-
var _prodInvariant = _dereq_(
|
|
3434
|
+
var _prodInvariant = _dereq_(27);
|
|
3376
3435
|
|
|
3377
|
-
var ReactElement = _dereq_(
|
|
3436
|
+
var ReactElement = _dereq_(11);
|
|
3378
3437
|
|
|
3379
|
-
var invariant = _dereq_(
|
|
3438
|
+
var invariant = _dereq_(31);
|
|
3380
3439
|
|
|
3381
3440
|
/**
|
|
3382
3441
|
* Returns the first child in a collection of children and verifies that there
|
|
@@ -3398,7 +3457,7 @@ function onlyChild(children) {
|
|
|
3398
3457
|
}
|
|
3399
3458
|
|
|
3400
3459
|
module.exports = onlyChild;
|
|
3401
|
-
},{"
|
|
3460
|
+
},{"11":11,"27":27,"31":31}],27:[function(_dereq_,module,exports){
|
|
3402
3461
|
/**
|
|
3403
3462
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3404
3463
|
* All rights reserved.
|
|
@@ -3437,7 +3496,7 @@ function reactProdInvariant(code) {
|
|
|
3437
3496
|
}
|
|
3438
3497
|
|
|
3439
3498
|
module.exports = reactProdInvariant;
|
|
3440
|
-
},{}],
|
|
3499
|
+
},{}],28:[function(_dereq_,module,exports){
|
|
3441
3500
|
/**
|
|
3442
3501
|
* Copyright 2013-present, Facebook, Inc.
|
|
3443
3502
|
* All rights reserved.
|
|
@@ -3450,15 +3509,15 @@ module.exports = reactProdInvariant;
|
|
|
3450
3509
|
|
|
3451
3510
|
'use strict';
|
|
3452
3511
|
|
|
3453
|
-
var _prodInvariant = _dereq_(
|
|
3512
|
+
var _prodInvariant = _dereq_(27);
|
|
3454
3513
|
|
|
3455
3514
|
var ReactCurrentOwner = _dereq_(8);
|
|
3456
|
-
var REACT_ELEMENT_TYPE = _dereq_(
|
|
3515
|
+
var REACT_ELEMENT_TYPE = _dereq_(12);
|
|
3457
3516
|
|
|
3458
|
-
var getIteratorFn = _dereq_(
|
|
3459
|
-
var invariant = _dereq_(
|
|
3517
|
+
var getIteratorFn = _dereq_(25);
|
|
3518
|
+
var invariant = _dereq_(31);
|
|
3460
3519
|
var KeyEscapeUtils = _dereq_(1);
|
|
3461
|
-
var warning = _dereq_(
|
|
3520
|
+
var warning = _dereq_(32);
|
|
3462
3521
|
|
|
3463
3522
|
var SEPARATOR = '.';
|
|
3464
3523
|
var SUBSEPARATOR = ':';
|
|
@@ -3535,52 +3594,41 @@ function traverseAllChildrenImpl(children, nameSoFar, callback, traverseContext)
|
|
|
3535
3594
|
} else {
|
|
3536
3595
|
var iteratorFn = getIteratorFn(children);
|
|
3537
3596
|
if (iteratorFn) {
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
var ii = 0;
|
|
3542
|
-
while (!(step = iterator.next()).done) {
|
|
3543
|
-
child = step.value;
|
|
3544
|
-
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
|
3545
|
-
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
3546
|
-
}
|
|
3547
|
-
} else {
|
|
3548
|
-
if ("development" !== 'production') {
|
|
3597
|
+
if ("development" !== 'production') {
|
|
3598
|
+
// Warn about using Maps as children
|
|
3599
|
+
if (iteratorFn === children.entries) {
|
|
3549
3600
|
var mapsAsChildrenAddendum = '';
|
|
3550
3601
|
if (ReactCurrentOwner.current) {
|
|
3551
3602
|
var mapsAsChildrenOwnerName = ReactCurrentOwner.current.getName();
|
|
3552
3603
|
if (mapsAsChildrenOwnerName) {
|
|
3553
|
-
mapsAsChildrenAddendum = '
|
|
3604
|
+
mapsAsChildrenAddendum = '\n\nCheck the render method of `' + mapsAsChildrenOwnerName + '`.';
|
|
3554
3605
|
}
|
|
3555
3606
|
}
|
|
3556
|
-
"development" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is
|
|
3607
|
+
"development" !== 'production' ? warning(didWarnAboutMaps, 'Using Maps as children is unsupported and will likely yield ' + 'unexpected results. Convert it to a sequence/iterable of keyed ' + 'ReactElements instead.%s', mapsAsChildrenAddendum) : void 0;
|
|
3557
3608
|
didWarnAboutMaps = true;
|
|
3558
3609
|
}
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3610
|
+
}
|
|
3611
|
+
|
|
3612
|
+
var iterator = iteratorFn.call(children);
|
|
3613
|
+
var step;
|
|
3614
|
+
var ii = 0;
|
|
3615
|
+
while (!(step = iterator.next()).done) {
|
|
3616
|
+
child = step.value;
|
|
3617
|
+
nextName = nextNamePrefix + getComponentKey(child, ii++);
|
|
3618
|
+
subtreeCount += traverseAllChildrenImpl(child, nextName, callback, traverseContext);
|
|
3568
3619
|
}
|
|
3569
3620
|
} else if (type === 'object') {
|
|
3570
3621
|
var addendum = '';
|
|
3571
3622
|
if ("development" !== 'production') {
|
|
3572
3623
|
addendum = ' If you meant to render a collection of children, use an array ' + 'instead or wrap the object using createFragment(object) from the ' + 'React add-ons.';
|
|
3573
|
-
if (children._isReactElement) {
|
|
3574
|
-
addendum = ' It looks like you\'re using an element created by a different ' + 'version of React. Make sure to use only one copy of React.';
|
|
3575
|
-
}
|
|
3576
3624
|
if (ReactCurrentOwner.current) {
|
|
3577
3625
|
var name = ReactCurrentOwner.current.getName();
|
|
3578
3626
|
if (name) {
|
|
3579
|
-
addendum += '
|
|
3627
|
+
addendum += '\n\nCheck the render method of `' + name + '`.';
|
|
3580
3628
|
}
|
|
3581
3629
|
}
|
|
3582
3630
|
}
|
|
3583
|
-
var childrenString =
|
|
3631
|
+
var childrenString = '' + children;
|
|
3584
3632
|
!false ? "development" !== 'production' ? invariant(false, 'Objects are not valid as a React child (found: %s).%s', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : _prodInvariant('31', childrenString === '[object Object]' ? 'object with keys {' + Object.keys(children).join(', ') + '}' : childrenString, addendum) : void 0;
|
|
3585
3633
|
}
|
|
3586
3634
|
}
|
|
@@ -3613,7 +3661,7 @@ function traverseAllChildren(children, callback, traverseContext) {
|
|
|
3613
3661
|
}
|
|
3614
3662
|
|
|
3615
3663
|
module.exports = traverseAllChildren;
|
|
3616
|
-
},{"1":1,"
|
|
3664
|
+
},{"1":1,"12":12,"25":25,"27":27,"31":31,"32":32,"8":8}],29:[function(_dereq_,module,exports){
|
|
3617
3665
|
"use strict";
|
|
3618
3666
|
|
|
3619
3667
|
/**
|
|
@@ -3652,7 +3700,7 @@ emptyFunction.thatReturnsArgument = function (arg) {
|
|
|
3652
3700
|
};
|
|
3653
3701
|
|
|
3654
3702
|
module.exports = emptyFunction;
|
|
3655
|
-
},{}],
|
|
3703
|
+
},{}],30:[function(_dereq_,module,exports){
|
|
3656
3704
|
/**
|
|
3657
3705
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3658
3706
|
* All rights reserved.
|
|
@@ -3672,7 +3720,7 @@ if ("development" !== 'production') {
|
|
|
3672
3720
|
}
|
|
3673
3721
|
|
|
3674
3722
|
module.exports = emptyObject;
|
|
3675
|
-
},{}],
|
|
3723
|
+
},{}],31:[function(_dereq_,module,exports){
|
|
3676
3724
|
/**
|
|
3677
3725
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3678
3726
|
* All rights reserved.
|
|
@@ -3696,12 +3744,18 @@ module.exports = emptyObject;
|
|
|
3696
3744
|
* will remain to ensure logic does not differ in production.
|
|
3697
3745
|
*/
|
|
3698
3746
|
|
|
3699
|
-
function
|
|
3700
|
-
|
|
3747
|
+
var validateFormat = function validateFormat(format) {};
|
|
3748
|
+
|
|
3749
|
+
if ("development" !== 'production') {
|
|
3750
|
+
validateFormat = function validateFormat(format) {
|
|
3701
3751
|
if (format === undefined) {
|
|
3702
3752
|
throw new Error('invariant requires an error message argument');
|
|
3703
3753
|
}
|
|
3704
|
-
}
|
|
3754
|
+
};
|
|
3755
|
+
}
|
|
3756
|
+
|
|
3757
|
+
function invariant(condition, format, a, b, c, d, e, f) {
|
|
3758
|
+
validateFormat(format);
|
|
3705
3759
|
|
|
3706
3760
|
if (!condition) {
|
|
3707
3761
|
var error;
|
|
@@ -3722,7 +3776,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
3722
3776
|
}
|
|
3723
3777
|
|
|
3724
3778
|
module.exports = invariant;
|
|
3725
|
-
},{}],
|
|
3779
|
+
},{}],32:[function(_dereq_,module,exports){
|
|
3726
3780
|
/**
|
|
3727
3781
|
* Copyright 2014-2015, Facebook, Inc.
|
|
3728
3782
|
* All rights reserved.
|
|
@@ -3735,7 +3789,7 @@ module.exports = invariant;
|
|
|
3735
3789
|
|
|
3736
3790
|
'use strict';
|
|
3737
3791
|
|
|
3738
|
-
var emptyFunction = _dereq_(
|
|
3792
|
+
var emptyFunction = _dereq_(29);
|
|
3739
3793
|
|
|
3740
3794
|
/**
|
|
3741
3795
|
* Similar to invariant but only logs a warning if the condition is not met.
|
|
@@ -3789,9 +3843,16 @@ if ("development" !== 'production') {
|
|
|
3789
3843
|
}
|
|
3790
3844
|
|
|
3791
3845
|
module.exports = warning;
|
|
3792
|
-
},{"
|
|
3846
|
+
},{"29":29}],33:[function(_dereq_,module,exports){
|
|
3847
|
+
/*
|
|
3848
|
+
object-assign
|
|
3849
|
+
(c) Sindre Sorhus
|
|
3850
|
+
@license MIT
|
|
3851
|
+
*/
|
|
3852
|
+
|
|
3793
3853
|
'use strict';
|
|
3794
3854
|
/* eslint-disable no-unused-vars */
|
|
3855
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
3795
3856
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3796
3857
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
3797
3858
|
|
|
@@ -3812,7 +3873,7 @@ function shouldUseNative() {
|
|
|
3812
3873
|
// Detect buggy property enumeration order in older V8 versions.
|
|
3813
3874
|
|
|
3814
3875
|
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
3815
|
-
var test1 = new String('abc'); // eslint-disable-line
|
|
3876
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
3816
3877
|
test1[5] = 'de';
|
|
3817
3878
|
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
3818
3879
|
return false;
|
|
@@ -3841,7 +3902,7 @@ function shouldUseNative() {
|
|
|
3841
3902
|
}
|
|
3842
3903
|
|
|
3843
3904
|
return true;
|
|
3844
|
-
} catch (
|
|
3905
|
+
} catch (err) {
|
|
3845
3906
|
// We don't expect any of the above to throw, but better to be safe.
|
|
3846
3907
|
return false;
|
|
3847
3908
|
}
|
|
@@ -3861,8 +3922,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
3861
3922
|
}
|
|
3862
3923
|
}
|
|
3863
3924
|
|
|
3864
|
-
if (
|
|
3865
|
-
symbols =
|
|
3925
|
+
if (getOwnPropertySymbols) {
|
|
3926
|
+
symbols = getOwnPropertySymbols(from);
|
|
3866
3927
|
for (var i = 0; i < symbols.length; i++) {
|
|
3867
3928
|
if (propIsEnumerable.call(from, symbols[i])) {
|
|
3868
3929
|
to[symbols[i]] = from[symbols[i]];
|
|
@@ -3874,5 +3935,5 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
3874
3935
|
return to;
|
|
3875
3936
|
};
|
|
3876
3937
|
|
|
3877
|
-
},{}]},{},[
|
|
3938
|
+
},{}]},{},[19])(19)
|
|
3878
3939
|
});
|