react 15.4.1 → 15.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -7
- package/dist/react-with-addons.js +1005 -778
- package/dist/react-with-addons.min.js +3 -3
- package/dist/react.js +721 -501
- package/dist/react.min.js +2 -2
- package/lib/PooledClass.js +1 -13
- package/lib/React.js +15 -0
- package/lib/ReactAddonsDOMDependencies.js +8 -7
- package/lib/ReactAddonsDOMDependenciesUMDShim.js +13 -9
- package/lib/ReactCSSTransitionGroup.js +5 -3
- package/lib/ReactCSSTransitionGroupChild.js +131 -113
- package/lib/ReactClass.js +7 -1
- package/lib/ReactElementValidator.js +27 -1
- package/lib/ReactPropTypes.js +4 -419
- package/lib/ReactTransitionGroup.js +9 -27
- package/lib/ReactUMDEntry.js +4 -3
- package/lib/ReactVersion.js +1 -1
- package/lib/ReactWithAddonsUMDEntry.js +5 -3
- package/lib/getNextDebugIDUMDShim.js +17 -0
- package/package.json +4 -3
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React (with addons) v15.
|
|
2
|
+
* React (with addons) v15.5.0
|
|
3
3
|
*
|
|
4
4
|
* Copyright 2013-present, Facebook, Inc.
|
|
5
5
|
* All rights reserved.
|
|
@@ -9,5 +9,5 @@
|
|
|
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(40),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},{40:40}],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(18),o=e(24),i={linkState:function(e){return new r(this.state[e],o.createStateKeySetter(this,e))}};t.exports=i},{18:18,24:24}],4:[function(e,t,n){"use strict";var r=e(35),o=(e(43),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,t,n,r,o){var i=this;if(i.instancePool.length){var a=i.instancePool.pop();return i.call(a,e,t,n,r,o),a}return new i(e,t,n,r,o)},c=function(e){var t=this;e instanceof t?void 0:r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},p=10,l=o,f=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||l,n.poolSize||(n.poolSize=p),n.release=c,n},d={addPoolingTo:f,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s,fiveArgumentPooler:u};t.exports=d},{35:35,43:43}],5:[function(e,t,n){"use strict";var r=e(46),o=e(9),i=e(11),a=e(23),s=e(10),u=e(14),c=e(15),p=e(21),l=e(28),f=e(34),d=(e(45),c.createElement),h=c.createFactory,v=c.cloneElement,y=r,m={Children:{map:o.map,forEach:o.forEach,count:o.count,toArray:o.toArray,only:f},Component:i,PureComponent:a,createElement:d,cloneElement:v,isValidElement:c.isValidElement,PropTypes:p,createClass:s.createClass,createFactory:h,createMixin:function(e){return e},DOM:u,version:l,__spread:y};t.exports=m},{10:10,11:11,14:14,15:15,21:21,23:23,28:28,34:34,45:45,46:46,9:9}],6:[function(e,t,n){"use strict";n.getReactDOM=function(){return ReactDOM},n.getReactInstanceMap=function(){return ReactDOM.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactInstanceMap}},{}],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(46),u=e(5),c=e(27),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},{27:27,46:46,5:5,8:8}],8:[function(e,t,n){"use strict";var r=e(5),o=e(6),i=e(39),a=e(26),s=e(34),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},{26:26,34:34,39:39,5:5,6:6}],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,y.thatReturnsArgument):null!=u&&(v.isValidElement(u)&&(u=v.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,y.thatReturnsArgument),t}var h=e(4),v=e(15),y=e(41),m=e(37),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},{15:15,37:37,4:4,41:41}],10:[function(e,t,n){"use strict";function r(e){return e}function o(e,t){var n=b.hasOwnProperty(t)?b[t]:null;P.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,v.isValidElement(t)?f("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,d=l&&!p&&!s&&t.autobind!==!1;if(d)r.push(i,a),n[i]=a;else if(s){var h=b[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 T;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(35),d=e(46),h=e(11),v=e(15),y=(e(20),e(19)),m=e(42),g=(e(43),e(45),"mixins"),E=[],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=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(){}},P={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},w=function(){};d(w.prototype,h.prototype,P);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||y,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 w,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],E.forEach(i.bind(null,t)),i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render?void 0:f("83");for(var n in b)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){E.push(e)}}};t.exports=A},{11:11,15:15,19:19,20:20,35:35,42:42,43:43,45:45,46:46}],11:[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(35),i=e(19),a=(e(31),e(42));e(43),e(45);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&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};t.exports=r},{19:19,31:31,35:35,42:42,43:43,45:45}],12:[function(e,t,n){"use strict";var r=e(36),o={shouldComponentUpdate:function(e,t){return r(this,e,t)}};t.exports=o},{36:36}],13:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],14:[function(e,t,n){"use strict";var r=e(15),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},{15:15}],15:[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(46),a=e(13),s=(e(45),e(31),Object.prototype.hasOwnProperty),u=e(16),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 v=arguments.length-2;if(1===v)u.children=n;else if(v>1){for(var y=Array(v),m=0;m<v;m++)y[m]=arguments[m+2];u.children=y}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,v=e._source,y=e._owner;if(null!=t){r(t)&&(d=t.ref,y=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,v,y,l)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},t.exports=p},{13:13,16:16,31:31,45:45,46:46}],16:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],17:[function(e,t,n){"use strict";var r=e(35),o=e(9),i=e(15),a=e(41),s=(e(43),e(45),{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},{15:15,35:35,41:41,43:43,45:45,9:9}],18:[function(e,t,n){"use strict";function r(e,t){this.value=e,this.requestChange=t}function o(e){var t={value:void 0===e?i.PropTypes.any.isRequired:e.isRequired,requestChange:i.PropTypes.func.isRequired};return i.PropTypes.shape(t)}var i=e(5);r.PropTypes={link:o},t.exports=r},{5:5}],19:[function(e,t,n){"use strict";function r(e,t){}var o=(e(45),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){r(e,"forceUpdate")},enqueueReplaceState:function(e,t){r(e,"replaceState")},enqueueSetState:function(e,t){r(e,"setState")}});t.exports=o},{45:45}],20:[function(e,t,n){"use strict";var r={};t.exports=r},{}],21:[function(e,t,n){"use strict";function r(e,t){return e===t?0!==e||1/e===1/t:e!==e&&t!==t}function o(e){this.message=e,this.stack=""}function i(e){function t(t,n,r,i,a,s,u){if(i=i||x,s=s||r,null==n[r]){var c=P[a];return t?new o(null===n[r]?"The "+c+" `"+s+"` is marked as required "+("in `"+i+"`, but its value is `null`."):"The "+c+" `"+s+"` is marked as required in "+("`"+i+"`, but its value is `undefined`.")):null}return e(n,r,i,a,s)}var n=t.bind(null,!1);return n.isRequired=t.bind(null,!0),n}function a(e){function t(t,n,r,i,a,s){var u=t[n],c=g(u);if(c!==e){var p=P[i],l=E(u);return new o("Invalid "+p+" `"+a+"` of type "+("`"+l+"` supplied to `"+r+"`, expected ")+("`"+e+"`."))}return null}return i(t)}function s(){return i(A.thatReturns(null))}function u(e){function t(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside arrayOf.");var s=t[n];if(!Array.isArray(s)){var u=P[i],c=g(s);return new o("Invalid "+u+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected an array."))}for(var p=0;p<s.length;p++){var l=e(s,p,r,i,a+"["+p+"]",w);if(l instanceof Error)return l}return null}return i(t)}function c(){function e(e,t,n,r,i){var a=e[t];if(!T.isValidElement(a)){var s=P[r],u=g(a);return new o("Invalid "+s+" `"+i+"` of type "+("`"+u+"` supplied to `"+n+"`, expected a single ReactElement."))}return null}return i(e)}function p(e){function t(t,n,r,i,a){if(!(t[n]instanceof e)){var s=P[i],u=e.name||x,c=b(t[n]);return new o("Invalid "+s+" `"+a+"` of type "+("`"+c+"` supplied to `"+r+"`, expected ")+("instance of `"+u+"`."))}return null}return i(t)}function l(e){function t(t,n,i,a,s){for(var u=t[n],c=0;c<e.length;c++)if(r(u,e[c]))return null;var p=P[a],l=JSON.stringify(e);return new o("Invalid "+p+" `"+s+"` of value `"+u+"` "+("supplied to `"+i+"`, expected one of "+l+"."))}return Array.isArray(e)?i(t):A.thatReturnsNull}function f(e){function t(t,n,r,i,a){if("function"!=typeof e)return new o("Property `"+a+"` of component `"+r+"` has invalid PropType notation inside objectOf.");var s=t[n],u=g(s);if("object"!==u){var c=P[i];return new o("Invalid "+c+" `"+a+"` of type "+("`"+u+"` supplied to `"+r+"`, expected an object."))}for(var p in s)if(s.hasOwnProperty(p)){var l=e(s,p,r,i,a+"."+p,w);if(l instanceof Error)return l}return null}return i(t)}function d(e){function t(t,n,r,i,a){for(var s=0;s<e.length;s++){var u=e[s];if(null==u(t,n,r,i,a,w))return null}var c=P[i];return new o("Invalid "+c+" `"+a+"` supplied to "+("`"+r+"`."))}return Array.isArray(e)?i(t):A.thatReturnsNull}function h(){function e(e,t,n,r,i){if(!y(e[t])){var a=P[r];return new o("Invalid "+a+" `"+i+"` supplied to "+("`"+n+"`, expected a ReactNode."))}return null}return i(e)}function v(e){function t(t,n,r,i,a){var s=t[n],u=g(s);if("object"!==u){var c=P[i];return new o("Invalid "+c+" `"+a+"` of type `"+u+"` "+("supplied to `"+r+"`, expected `object`."))}for(var p in e){var l=e[p];if(l){var f=l(s,p,r,i,a+"."+p,w);if(f)return f}}return null}return i(t)}function y(e){switch(typeof e){case"number":case"string":case"undefined":return!0;case"boolean":return!e;case"object":if(Array.isArray(e))return e.every(y);if(null===e||T.isValidElement(e))return!0;var t=_(e);if(!t)return!1;var n,r=t.call(e);if(t!==e.entries){for(;!(n=r.next()).done;)if(!y(n.value))return!1}else for(;!(n=r.next()).done;){var o=n.value;if(o&&!y(o[1]))return!1}return!0;default:return!1}}function m(e,t){return"symbol"===e||"Symbol"===t["@@toStringTag"]||"function"==typeof Symbol&&t instanceof Symbol}function g(e){var t=typeof e;return Array.isArray(e)?"array":e instanceof RegExp?"object":m(t,e)?"symbol":t}function E(e){var t=g(e);if("object"===t){if(e instanceof Date)return"date";if(e instanceof RegExp)return"regexp"}return t}function b(e){return e.constructor&&e.constructor.name?e.constructor.name:x}var T=e(15),P=e(20),w=e(22),A=e(41),_=e(33),x=(e(45),"<<anonymous>>"),O={array:a("array"),bool:a("boolean"),func:a("function"),number:a("number"),object:a("object"),string:a("string"),symbol:a("symbol"),any:s(),arrayOf:u,element:c(),instanceOf:p,node:h(),objectOf:f,oneOf:l,oneOfType:d,shape:v};o.prototype=Error.prototype,t.exports=O},{15:15,20:20,22:22,33:33,41:41,45:45}],22:[function(e,t,n){"use strict";var r="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";t.exports=r},{}],23:[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(46),a=e(11),s=e(19),u=e(42);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,t.exports=r},{11:11,19:19,42:42,46:46}],24:[function(e,t,n){"use strict";function r(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var o={createStateSetter:function(e,t){return function(n,r,o,i,a,s){var u=t.call(e,n,r,o,i,a,s);u&&e.setState(u)}},createStateKeySetter:function(e,t){var n=e.__keySetters||(e.__keySetters={});return n[t]||(n[t]=r(e,t))}};o.Mixin={createStateSetter:function(e){return o.createStateSetter(this,e)},createStateKeySetter:function(e){return o.createStateKeySetter(this,e)}},t.exports=o},{}],25:[function(e,t,n){"use strict";var r=e(32),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},{32:32}],26:[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(40),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,40:40}],27:[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(46),s=e(5),u=(e(6),e(25)),c=e(41),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;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;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;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;t=u.getChildMapping(e.children);var 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},{25:25,41:41,46:46,5:5,6:6}],28:[function(e,t,n){"use strict";t.exports="15.4.1"},{}],29:[function(e,t,n){"use strict";var r=e(3),o=e(5),i=(e(6),e(12)),a=e(7),s=e(17),u=e(27),c=e(36),p=e(38);o.addons={CSSTransitionGroup:a,LinkedStateMixin:r,PureRenderMixin:i,TransitionGroup:u,createFragment:s.create,shallowCompare:c,update:p},t.exports=o},{12:12,17:17,27:27,3:3,36:36,38:38,5:5,6:6,7:7}],30:[function(e,t,n){"use strict";var r=e(46),o=e(29),i=r({__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:{ReactCurrentOwner:e(13)}},o);t.exports=i},{13:13,29:29,46:46}],31:[function(e,t,n){"use strict";var r=!1;t.exports=r},{}],32:[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(37));e(45);"undefined"!=typeof n&&n.env,t.exports=o}).call(this,void 0)},{2:2,37:37,45:45}],33:[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},{}],34:[function(e,t,n){"use strict";function r(e){return i.isValidElement(e)?void 0:o("143"),e}var o=e(35),i=e(15);e(43);t.exports=r},{15:15,35:35,43:43}],35:[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},{}],36:[function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=e(44);t.exports=r},{44:44}],37:[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,v=0,y=""===t?p:t+l;if(Array.isArray(e))for(var m=0;m<e.length;m++)d=e[m],h=y+r(d,m),v+=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=y+r(d,T++),v+=o(d,h,n,i);else for(;!(E=b.next()).done;){var P=E.value;P&&(d=P[1],h=y+c.escape(P[0])+l+r(d,0),v+=o(d,h,n,i))}}else if("object"===f){var w="",A=String(e);a("31","[object Object]"===A?"object with keys {"+Object.keys(e).join(", ")+"}":A,w)}}return v}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=e(35),s=(e(13),e(16)),u=e(33),c=(e(43),e(2)),p=(e(45),"."),l=":";t.exports=i},{13:13,16:16,2:2,33:33,35:35,43:43,45:45}],38:[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",v.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){
|
|
13
|
-
|
|
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||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(39),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},{39:39}],2:[function(e,t,n){"use strict";function r(e){var t={"=":"=0",":":"=2"};return"$"+(""+e).replace(/[=:]/g,function(e){return t[e]})}function o(e){var t={"=0":"=","=2":":"};return(""+("."===e[0]&&"$"===e[1]?e.substring(2):e.substring(1))).replace(/(=0|=2)/g,function(e){return t[e]})}var i={escape:r,unescape:o};t.exports=i},{}],3:[function(e,t,n){"use strict";var r=e(18),o=e(23),i={linkState:function(e){return new r(this.state[e],o.createStateKeySetter(this,e))}};t.exports=i},{18:18,23:23}],4:[function(e,t,n){"use strict";var r=e(34),o=(e(42),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||r("25"),e.destructor(),t.instancePool.length<t.poolSize&&t.instancePool.push(e)},c=o,p=function(e,t){var n=e;return n.instancePool=[],n.getPooled=t||c,n.poolSize||(n.poolSize=10),n.release=u,n},l={addPoolingTo:p,oneArgumentPooler:o,twoArgumentPooler:i,threeArgumentPooler:a,fourArgumentPooler:s};t.exports=l},{34:34,42:42}],5:[function(e,t,n){"use strict";var r=e(45),o=e(9),i=e(11),a=e(22),s=e(10),u=e(14),c=e(15),p=e(21),l=e(27),f=e(33),d=(e(44),c.createElement),h=c.createFactory,y=c.cloneElement,m=r,v={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:m};t.exports=v},{10:10,11:11,14:14,15:15,21:21,22:22,27:27,33:33,44:44,45:45,9:9}],6:[function(e,t,n){"use strict";function r(){if(!o){var t=e(29);o=t.__SECRET_INJECTED_REACT_DOM_DO_NOT_USE_OR_YOU_WILL_BE_FIRED}return o}var o;n.getReactDOM=r},{29:29}],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(45),u=e(5),c=e(47),p=c(u.isValidElement),l=e(26),f=e(8),d=function(e){function t(){var n,i,a;r(this,t);for(var s=arguments.length,c=Array(s),p=0;p<s;p++)c[p]=arguments[p];return n=i=o(this,e.call.apply(e,[this].concat(c))),i._wrapChild=function(e){return u.createElement(f,{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(l,s({},this.props,{childFactory:this._wrapChild}))},t}(u.Component);d.displayName="ReactCSSTransitionGroup",d.propTypes={transitionName:f.propTypes.name,transitionAppear:p.bool,transitionEnter:p.bool,transitionLeave:p.bool,transitionAppearTimeout:a("Appear"),transitionEnterTimeout:a("Enter"),transitionLeaveTimeout:a("Leave")},d.defaultProps={transitionAppear:!1,transitionEnter:!0,transitionLeave:!0},t.exports=d},{26:26,45:45,47:47,5:5,8:8}],8:[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(5),s=e(6),u=e(47),c=u(a.isValidElement),p=e(38),l=e(25),f=e(33),d=17,h=function(e){function t(){var n,i,a;r(this,t);for(var u=arguments.length,c=Array(u),f=0;f<u;f++)c[f]=arguments[f];return n=i=o(this,e.call.apply(e,[this].concat(c))),i._isMounted=!1,i.transition=function(e,t,n){var r=s.getReactDOM().findDOMNode(i);if(!r)return void(t&&t());var o=i.props.name[e]||i.props.name+"-"+e,a=i.props.name[e+"Active"]||o+"-active",u=null,c=function(e){e&&e.target!==r||(clearTimeout(u),p.removeClass(r,o),p.removeClass(r,a),l.removeEndEventListener(r,c),t&&t())};p.addClass(r,o),i.queueClassAndNode(a,r),n?(u=setTimeout(c,n),i.transitionTimeouts.push(u)):l.addEndEventListener(r,c)},i.queueClassAndNode=function(e,t){i.classNameAndNodeQueue.push({className:e,node:t}),i.timeout||(i.timeout=setTimeout(i.flushClassNameAndNodeQueue,d))},i.flushClassNameAndNodeQueue=function(){i._isMounted&&i.classNameAndNodeQueue.forEach(function(e){p.addClass(e.node,e.className)}),i.classNameAndNodeQueue.length=0,i.timeout=null},i.componentWillAppear=function(e){i.props.appear?i.transition("appear",e,i.props.appearTimeout):e()},i.componentWillEnter=function(e){i.props.enter?i.transition("enter",e,i.props.enterTimeout):e()},i.componentWillLeave=function(e){i.props.leave?i.transition("leave",e,i.props.leaveTimeout):e()},a=n,o(i,a)}return i(t,e),t.prototype.componentWillMount=function(){this.classNameAndNodeQueue=[],this.transitionTimeouts=[]},t.prototype.componentDidMount=function(){this._isMounted=!0},t.prototype.componentWillUnmount=function(){this._isMounted=!1,this.timeout&&clearTimeout(this.timeout),this.transitionTimeouts.forEach(function(e){clearTimeout(e)}),this.classNameAndNodeQueue.length=0},t.prototype.render=function(){return f(this.props.children)},t}(a.Component);h.propTypes={name:c.oneOfType([c.string,c.shape({enter:c.string,leave:c.string,active:c.string}),c.shape({enter:c.string,enterActive:c.string,leave:c.string,leaveActive:c.string,appear:c.string,appearActive:c.string})]).isRequired,appear:c.bool,enter:c.bool,leave:c.bool,appearTimeout:c.number,enterTimeout:c.number,leaveTimeout:c.number},t.exports=h},{25:25,33:33,38:38,47:47,5:5,6:6}],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);v(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,m.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);v(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 v(e,l,null)}function d(e){var t=[];return c(e,t,null,m.thatReturnsArgument),t}var h=e(4),y=e(15),m=e(40),v=e(36),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 _={forEach:a,map:p,mapIntoWithKeyPrefixInternal:c,count:f,toArray:d};t.exports=_},{15:15,36:36,4:4,40:40}],10:[function(e,t,n){"use strict";function r(e){return e}function o(e,t){var n=b.hasOwnProperty(t)?b[t]:null;w.hasOwnProperty(t)&&"OVERRIDE_BASE"!==n&&f("73",t),e&&"DEFINE_MANY"!==n&&"DEFINE_MANY_MERGED"!==n&&f("74",t)}function i(e,t){if(t){"function"==typeof t&&f("75"),y.isValidElement(t)&&f("76");var n=e.prototype,r=n.__reactAutoBindPairs;t.hasOwnProperty(E)&&_.mixins(e,t.mixins);for(var i in t)if(t.hasOwnProperty(i)&&i!==E){var a=t[i],s=n.hasOwnProperty(i);if(o(s,i),_.hasOwnProperty(i))_[i](e,a);else{var p=b.hasOwnProperty(i),l="function"==typeof a,d=l&&!p&&!s&&!1!==t.autobind;if(d)r.push(i,a),n[i]=a;else if(s){var h=b[i];(!p||"DEFINE_MANY_MERGED"!==h&&"DEFINE_MANY"!==h)&&f("77",h,i),"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 _;o&&f("78",n);var i=n in e;i&&f("79",n),e[n]=r}}}function s(e,t){e&&t&&"object"==typeof e&&"object"==typeof t||f("80");for(var n in t)t.hasOwnProperty(n)&&(void 0!==e[n]&&f("81",n),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){return t.bind(e)}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(34),d=e(45),h=e(11),y=e(15),m=(e(20),e(19)),v=e(41),E=(e(42),e(44),"mixins"),g=[],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"},_={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(){}},w={replaceState:function(e,t){this.updater.enqueueReplaceState(this,e),t&&this.updater.enqueueCallback(this,t,"replaceState")},isMounted:function(){return this.updater.isMounted(this)}},A=function(){};d(A.prototype,h.prototype,w);var T={createClass:function(e){var t=r(function(e,n,r){this.__reactAutoBindPairs.length&&l(this),this.props=e,this.context=n,this.refs=v,this.updater=r||m,this.state=null;var o=this.getInitialState?this.getInitialState():null;("object"!=typeof o||Array.isArray(o))&&f("82",t.displayName||"ReactCompositeComponent"),this.state=o});t.prototype=new A,t.prototype.constructor=t,t.prototype.__reactAutoBindPairs=[],g.forEach(i.bind(null,t)),i(t,e),t.getDefaultProps&&(t.defaultProps=t.getDefaultProps()),t.prototype.render||f("83");for(var n in b)t.prototype[n]||(t.prototype[n]=null);return t},injection:{injectMixin:function(e){g.push(e)}}};t.exports=T},{11:11,15:15,19:19,20:20,34:34,41:41,42:42,44:44,45:45}],11:[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(34),i=e(19),a=(e(30),e(41));e(42),e(44);r.prototype.isReactComponent={},r.prototype.setState=function(e,t){"object"!=typeof e&&"function"!=typeof e&&null!=e&&o("85"),this.updater.enqueueSetState(this,e),t&&this.updater.enqueueCallback(this,t,"setState")},r.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this),e&&this.updater.enqueueCallback(this,e,"forceUpdate")};t.exports=r},{19:19,30:30,34:34,41:41,42:42,44:44}],12:[function(e,t,n){"use strict";var r=e(35),o={shouldComponentUpdate:function(e,t){return r(this,e,t)}};t.exports=o},{35:35}],13:[function(e,t,n){"use strict";var r={current:null};t.exports=r},{}],14:[function(e,t,n){"use strict";var r=e(15),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},{15:15}],15:[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(45),a=e(13),s=(e(44),e(30),Object.prototype.hasOwnProperty),u=e(16),c={key:!0,ref:!0,__self:!0,__source:!0},p=function(e,t,n,r,o,i,a){return{$$typeof:u,type:e,key:t,ref:n,props:a,_owner:i}};p.createElement=function(e,t,n){var i,u={},l=null,f=null;if(null!=t){r(t)&&(f=t.ref),o(t)&&(l=""+t.key),void 0===t.__self?null:t.__self,void 0===t.__source?null:t.__source;for(i in t)s.call(t,i)&&!c.hasOwnProperty(i)&&(u[i]=t[i])}var d=arguments.length-2;if(1===d)u.children=n;else if(d>1){for(var h=Array(d),y=0;y<d;y++)h[y]=arguments[y+2];u.children=h}if(e&&e.defaultProps){var m=e.defaultProps;for(i in m)void 0===u[i]&&(u[i]=m[i])}return p(e,l,f,0,0,a.current,u)},p.createFactory=function(e){var t=p.createElement.bind(null,e);return t.type=e,t},p.cloneAndReplaceKey=function(e,t){return p(e.type,t,e.ref,e._self,e._source,e._owner,e.props)},p.cloneElement=function(e,t,n){var u,l=i({},e.props),f=e.key,d=e.ref,h=(e._self,e._source,e._owner);if(null!=t){r(t)&&(d=t.ref,h=a.current),o(t)&&(f=""+t.key);var y;e.type&&e.type.defaultProps&&(y=e.type.defaultProps);for(u in t)s.call(t,u)&&!c.hasOwnProperty(u)&&(void 0===t[u]&&void 0!==y?l[u]=y[u]:l[u]=t[u])}var m=arguments.length-2;if(1===m)l.children=n;else if(m>1){for(var v=Array(m),E=0;E<m;E++)v[E]=arguments[E+2];l.children=v}return p(e.type,f,d,0,0,h,l)},p.isValidElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===u},t.exports=p},{13:13,16:16,30:30,44:44,45:45}],16:[function(e,t,n){"use strict";var r="function"==typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103;t.exports=r},{}],17:[function(e,t,n){"use strict";var r=e(34),o=e(9),i=e(15),a=e(40),s=(e(42),e(44),{create:function(e){if("object"!=typeof e||!e||Array.isArray(e))return e;if(i.isValidElement(e))return e;1===e.nodeType&&r("0");var t=[];for(var n in e)o.mapIntoWithKeyPrefixInternal(e[n],t,n,a.thatReturnsArgument);return t}});t.exports=s},{15:15,34:34,40:40,42:42,44:44,9:9}],18:[function(e,t,n){"use strict";function r(e,t){this.value=e,this.requestChange=t}function o(e){var t={value:void 0===e?i.PropTypes.any.isRequired:e.isRequired,requestChange:i.PropTypes.func.isRequired};return i.PropTypes.shape(t)}var i=e(5);r.PropTypes={link:o},t.exports=r},{5:5}],19:[function(e,t,n){"use strict";var r=(e(44),{isMounted:function(e){return!1},enqueueCallback:function(e,t){},enqueueForceUpdate:function(e){},enqueueReplaceState:function(e,t){},enqueueSetState:function(e,t){}});t.exports=r},{44:44}],20:[function(e,t,n){"use strict";var r={};t.exports=r},{}],21:[function(e,t,n){"use strict";var r=e(15),o=r.isValidElement,i=e(47);t.exports=i(o)},{15:15,47:47}],22:[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(45),a=e(11),s=e(19),u=e(41);o.prototype=a.prototype,r.prototype=new o,r.prototype.constructor=r,i(r.prototype,a.prototype),r.prototype.isPureReactComponent=!0,t.exports=r},{11:11,19:19,41:41,45:45}],23:[function(e,t,n){"use strict";function r(e,t){var n={};return function(r){n[t]=r,e.setState(n)}}var o={createStateSetter:function(e,t){return function(n,r,o,i,a,s){var u=t.call(e,n,r,o,i,a,s);u&&e.setState(u)}},createStateKeySetter:function(e,t){var n=e.__keySetters||(e.__keySetters={});return n[t]||(n[t]=r(e,t))}};o.Mixin={createStateSetter:function(e){return o.createStateSetter(this,e)},createStateKeySetter:function(e){return o.createStateKeySetter(this,e)}},t.exports=o},{}],24:[function(e,t,n){"use strict";var r=e(31),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},{31:31}],25:[function(e,t,n){"use strict";function r(e,t,n){e.addEventListener(t,n,!1)}function o(e,t,n){e.removeEventListener(t,n,!1)}var i=e(39),a=e(1),s=[];i.canUseDOM&&function(){var e=a("animationend"),t=a("transitionend");e&&s.push(e),t&&s.push(t)}();var u={addEndEventListener:function(e,t){if(0===s.length)return void window.setTimeout(t,0);s.forEach(function(n){r(e,n,t)})},removeEndEventListener:function(e,t){0!==s.length&&s.forEach(function(n){o(e,n,t)})}};t.exports=u},{1:1,39:39}],26:[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(45),s=e(5),u=e(24),c=e(47),p=c(s.isValidElement),l=e(40),f=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);f.displayName="ReactTransitionGroup",f.propTypes={component:p.any,childFactory:p.func},f.defaultProps={component:"span",childFactory:l.thatReturnsArgument},t.exports=f},{24:24,40:40,45:45,47:47,5:5}],27:[function(e,t,n){"use strict";t.exports="15.5.0"},{}],28:[function(e,t,n){"use strict";var r=e(3),o=e(5),i=(e(6),e(12)),a=e(7),s=e(17),u=e(26),c=e(35),p=e(37);o.addons={CSSTransitionGroup:a,LinkedStateMixin:r,PureRenderMixin:i,TransitionGroup:u,createFragment:s.create,shallowCompare:c,update:p},t.exports=o},{12:12,17:17,26:26,3:3,35:35,37:37,5:5,6:6,7:7}],29:[function(e,t,n){"use strict";var r=e(45),o=e(28),i=r(o,{__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(13)}});t.exports=i},{13:13,28:28,45:45}],30:[function(e,t,n){"use strict";t.exports=!1},{}],31:[function(e,t,n){(function(n){"use strict";function r(e,t,n,r){if(e&&"object"==typeof e){var o=e;void 0===o[n]&&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(36));e(44);void 0!==n&&n.env,t.exports=o}).call(this,void 0)},{2:2,36:36,44:44}],32:[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},{}],33:[function(e,t,n){"use strict";function r(e){return i.isValidElement(e)||o("143"),e}var o=e(34),i=e(15);e(42);t.exports=r},{15:15,34:34,42:42}],34:[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},{}],35:[function(e,t,n){"use strict";function r(e,t,n){return!o(e.props,t)||!o(e.state,n)}var o=e(43);t.exports=r},{43:43}],36:[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,m=""===t?p:t+l;if(Array.isArray(e))for(var v=0;v<e.length;v++)d=e[v],h=m+r(d,v),y+=o(d,h,n,i);else{var E=u(e);if(E){var g,b=E.call(e);if(E!==e.entries)for(var _=0;!(g=b.next()).done;)d=g.value,h=m+r(d,_++),y+=o(d,h,n,i);else for(;!(g=b.next()).done;){var w=g.value;w&&(d=w[1],h=m+c.escape(w[0])+l+r(d,0),y+=o(d,h,n,i))}}else if("object"===f){var A=String(e);a("31","[object Object]"===A?"object with keys {"+Object.keys(e).join(", ")+"}":A,"")}}return y}function i(e,t,n){return null==e?0:o(e,"",t,n)}var a=e(34),s=(e(13),e(16)),u=e(32),c=(e(42),e(2)),p=(e(44),"."),l=":";t.exports=i},{13:13,16:16,2:2,32:32,34:34,42:42,44:44}],37:[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)||a("1",n,e);var r=t[n];Array.isArray(r)||a("2",n,r)}function i(e,t){if("object"!=typeof t&&a("3",y.join(", "),f),u.call(t,f))return 1!==Object.keys(t).length&&a("4",f),t[f];var n=r(e);if(u.call(t,d)){var v=t[d];v&&"object"==typeof v||a("5",d,v),n&&"object"==typeof n||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)||a("7",l,e),Array.isArray(t[l])||a("8",l,t[l]),t[l].forEach(function(e){Array.isArray(e)||a("8",l,t[l]),n.splice.apply(n,e)})),u.call(t,h)&&("function"!=typeof t[h]&&a("9",h,t[h]),n=t[h](n));for(var E in t)m.hasOwnProperty(E)&&m[E]||(n[E]=i(e[E],t[E]));return n}var a=e(34),s=e(45),u=(e(42),{}.hasOwnProperty),c="$push",p="$unshift",l="$splice",f="$set",d="$merge",h="$apply",y=[c,p,l,f,d,h],m={};y.forEach(function(e){m[e]=!0}),t.exports=i},{34:34,42:42,45:45}],38:[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-1!==Array.prototype.indexOf.call(r,e)}var o=e(42),i={addClass:function(e,t){return/\s/.test(t)&&o(!1),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),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),e.classList?!!t&&e.classList.contains(t):(" "+e.className+" ").indexOf(" "+t+" ")>-1},matchesSelector:function(e,t){return(e.matches||e.webkitMatchesSelector||e.mozMatchesSelector||e.msMatchesSelector||function(t){return r(e,t)}).call(e,t)}};t.exports=i},{42:42}],39:[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},{}],40:[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},{}],41:[function(e,t,n){"use strict";var r={};t.exports=r},{}],42:[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},{}],43:[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},{}],44:[function(e,t,n){"use strict";var r=e(40),o=r;t.exports=o},{40:40}],45:[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)}var o=Object.getOwnPropertySymbols,i=Object.prototype.hasOwnProperty,a=Object.prototype.propertyIsEnumerable;t.exports=function(){try{if(!Object.assign)return!1;var e=new String("abc");if(e[5]="de","5"===Object.getOwnPropertyNames(e)[0])return!1;for(var t={},n=0;n<10;n++)t["_"+String.fromCharCode(n)]=n;if("0123456789"!==Object.getOwnPropertyNames(t).map(function(e){return t[e]}).join(""))return!1;var r={};return"abcdefghijklmnopqrst".split("").forEach(function(e){r[e]=e}),"abcdefghijklmnopqrst"===Object.keys(Object.assign({},r)).join("")}catch(e){return!1}}()?Object.assign:function(e,t){for(var n,s,u=r(e),c=1;c<arguments.length;c++){n=Object(arguments[c]);for(var p in n)i.call(n,p)&&(u[p]=n[p]);if(o){s=o(n);for(var l=0;l<s.length;l++)a.call(n,s[l])&&(u[s[l]]=n[s[l]])}}return u}},{}],46:[function(e,t,n){"use strict";function r(e,t,n,r,o){}e(42),e(44),e(48);t.exports=r},{42:42,44:44,48:48}],47:[function(e,t,n){"use strict"
|
|
13
|
+
;var r=(e(40),e(42)),o=(e(44),e(48),e(46));t.exports=function(e){function t(e){this.message=e,this.stack=""}var n,i=("function"==typeof Symbol&&Symbol.iterator,function(){r(!1,"React.PropTypes type checking code is stripped in production.")});i.isRequired=i;var a=function(){return i};return n={array:i,bool:i,func:i,number:i,object:i,string:i,symbol:i,any:i,arrayOf:a,element:i,instanceOf:a,node:i,objectOf:a,oneOf:a,oneOfType:a,shape:a},t.prototype=Error.prototype,n.checkPropTypes=o,n.PropTypes=n,n}},{40:40,42:42,44:44,46:46,48:48}],48:[function(e,t,n){"use strict";t.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},{}]},{},[29])(29)});
|
package/dist/react.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* React v15.
|
|
2
|
+
* React v15.5.0
|
|
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_(25);
|
|
78
78
|
|
|
79
|
-
var invariant = _dereq_(
|
|
79
|
+
var invariant = _dereq_(29);
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* Static poolers. Several custom versions for each potential number of
|
|
@@ -129,17 +129,6 @@ var fourArgumentPooler = function (a1, a2, a3, a4) {
|
|
|
129
129
|
}
|
|
130
130
|
};
|
|
131
131
|
|
|
132
|
-
var fiveArgumentPooler = function (a1, a2, a3, a4, a5) {
|
|
133
|
-
var Klass = this;
|
|
134
|
-
if (Klass.instancePool.length) {
|
|
135
|
-
var instance = Klass.instancePool.pop();
|
|
136
|
-
Klass.call(instance, a1, a2, a3, a4, a5);
|
|
137
|
-
return instance;
|
|
138
|
-
} else {
|
|
139
|
-
return new Klass(a1, a2, a3, a4, a5);
|
|
140
|
-
}
|
|
141
|
-
};
|
|
142
|
-
|
|
143
132
|
var standardReleaser = function (instance) {
|
|
144
133
|
var Klass = this;
|
|
145
134
|
!(instance instanceof Klass) ? "development" !== 'production' ? invariant(false, 'Trying to release an instance into a pool of a different type.') : _prodInvariant('25') : void 0;
|
|
@@ -179,12 +168,11 @@ var PooledClass = {
|
|
|
179
168
|
oneArgumentPooler: oneArgumentPooler,
|
|
180
169
|
twoArgumentPooler: twoArgumentPooler,
|
|
181
170
|
threeArgumentPooler: threeArgumentPooler,
|
|
182
|
-
fourArgumentPooler: fourArgumentPooler
|
|
183
|
-
fiveArgumentPooler: fiveArgumentPooler
|
|
171
|
+
fourArgumentPooler: fourArgumentPooler
|
|
184
172
|
};
|
|
185
173
|
|
|
186
174
|
module.exports = PooledClass;
|
|
187
|
-
},{"
|
|
175
|
+
},{"25":25,"29":29}],3:[function(_dereq_,module,exports){
|
|
188
176
|
/**
|
|
189
177
|
* Copyright 2013-present, Facebook, Inc.
|
|
190
178
|
* All rights reserved.
|
|
@@ -197,7 +185,7 @@ module.exports = PooledClass;
|
|
|
197
185
|
|
|
198
186
|
'use strict';
|
|
199
187
|
|
|
200
|
-
var _assign = _dereq_(
|
|
188
|
+
var _assign = _dereq_(31);
|
|
201
189
|
|
|
202
190
|
var ReactChildren = _dereq_(4);
|
|
203
191
|
var ReactComponent = _dereq_(6);
|
|
@@ -208,15 +196,17 @@ var ReactElement = _dereq_(10);
|
|
|
208
196
|
var ReactPropTypes = _dereq_(15);
|
|
209
197
|
var ReactVersion = _dereq_(19);
|
|
210
198
|
|
|
211
|
-
var onlyChild = _dereq_(
|
|
212
|
-
var warning = _dereq_(
|
|
199
|
+
var onlyChild = _dereq_(24);
|
|
200
|
+
var warning = _dereq_(30);
|
|
213
201
|
|
|
214
202
|
var createElement = ReactElement.createElement;
|
|
215
203
|
var createFactory = ReactElement.createFactory;
|
|
216
204
|
var cloneElement = ReactElement.cloneElement;
|
|
217
205
|
|
|
218
206
|
if ("development" !== 'production') {
|
|
207
|
+
var canDefineProperty = _dereq_(20);
|
|
219
208
|
var ReactElementValidator = _dereq_(12);
|
|
209
|
+
var didWarnPropTypesDeprecated = false;
|
|
220
210
|
createElement = ReactElementValidator.createElement;
|
|
221
211
|
createFactory = ReactElementValidator.createFactory;
|
|
222
212
|
cloneElement = ReactElementValidator.cloneElement;
|
|
@@ -272,8 +262,21 @@ var React = {
|
|
|
272
262
|
__spread: __spread
|
|
273
263
|
};
|
|
274
264
|
|
|
265
|
+
// TODO: Fix tests so that this deprecation warning doesn't cause failures.
|
|
266
|
+
if ("development" !== 'production') {
|
|
267
|
+
if (canDefineProperty) {
|
|
268
|
+
Object.defineProperty(React, 'PropTypes', {
|
|
269
|
+
get: function () {
|
|
270
|
+
"development" !== 'production' ? warning(didWarnPropTypesDeprecated, 'Accessing PropTypes via the main React package is deprecated. Use ' + 'the prop-types package from npm instead.') : void 0;
|
|
271
|
+
didWarnPropTypesDeprecated = true;
|
|
272
|
+
return ReactPropTypes;
|
|
273
|
+
}
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
275
278
|
module.exports = React;
|
|
276
|
-
},{"10":10,"12":12,"15":15,"17":17,"19":19,"
|
|
279
|
+
},{"10":10,"12":12,"15":15,"17":17,"19":19,"20":20,"24":24,"30":30,"31":31,"4":4,"5":5,"6":6,"9":9}],4:[function(_dereq_,module,exports){
|
|
277
280
|
/**
|
|
278
281
|
* Copyright 2013-present, Facebook, Inc.
|
|
279
282
|
* All rights reserved.
|
|
@@ -289,8 +292,8 @@ module.exports = React;
|
|
|
289
292
|
var PooledClass = _dereq_(2);
|
|
290
293
|
var ReactElement = _dereq_(10);
|
|
291
294
|
|
|
292
|
-
var emptyFunction = _dereq_(
|
|
293
|
-
var traverseAllChildren = _dereq_(
|
|
295
|
+
var emptyFunction = _dereq_(27);
|
|
296
|
+
var traverseAllChildren = _dereq_(26);
|
|
294
297
|
|
|
295
298
|
var twoArgumentPooler = PooledClass.twoArgumentPooler;
|
|
296
299
|
var fourArgumentPooler = PooledClass.fourArgumentPooler;
|
|
@@ -464,7 +467,7 @@ var ReactChildren = {
|
|
|
464
467
|
};
|
|
465
468
|
|
|
466
469
|
module.exports = ReactChildren;
|
|
467
|
-
},{"10":10,"2":2,"
|
|
470
|
+
},{"10":10,"2":2,"26":26,"27":27}],5:[function(_dereq_,module,exports){
|
|
468
471
|
/**
|
|
469
472
|
* Copyright 2013-present, Facebook, Inc.
|
|
470
473
|
* All rights reserved.
|
|
@@ -477,17 +480,17 @@ module.exports = ReactChildren;
|
|
|
477
480
|
|
|
478
481
|
'use strict';
|
|
479
482
|
|
|
480
|
-
var _prodInvariant = _dereq_(
|
|
481
|
-
_assign = _dereq_(
|
|
483
|
+
var _prodInvariant = _dereq_(25),
|
|
484
|
+
_assign = _dereq_(31);
|
|
482
485
|
|
|
483
486
|
var ReactComponent = _dereq_(6);
|
|
484
487
|
var ReactElement = _dereq_(10);
|
|
485
488
|
var ReactPropTypeLocationNames = _dereq_(14);
|
|
486
489
|
var ReactNoopUpdateQueue = _dereq_(13);
|
|
487
490
|
|
|
488
|
-
var emptyObject = _dereq_(
|
|
489
|
-
var invariant = _dereq_(
|
|
490
|
-
var warning = _dereq_(
|
|
491
|
+
var emptyObject = _dereq_(28);
|
|
492
|
+
var invariant = _dereq_(29);
|
|
493
|
+
var warning = _dereq_(30);
|
|
491
494
|
|
|
492
495
|
var MIXINS_KEY = 'mixins';
|
|
493
496
|
|
|
@@ -618,7 +621,6 @@ var ReactClassInterface = {
|
|
|
618
621
|
* }
|
|
619
622
|
*
|
|
620
623
|
* @return {ReactComponent}
|
|
621
|
-
* @nosideeffects
|
|
622
624
|
* @required
|
|
623
625
|
*/
|
|
624
626
|
render: 'DEFINE_ONCE',
|
|
@@ -1074,6 +1076,8 @@ var ReactClassMixin = {
|
|
|
1074
1076
|
var ReactClassComponent = function () {};
|
|
1075
1077
|
_assign(ReactClassComponent.prototype, ReactComponent.prototype, ReactClassMixin);
|
|
1076
1078
|
|
|
1079
|
+
var didWarnDeprecated = false;
|
|
1080
|
+
|
|
1077
1081
|
/**
|
|
1078
1082
|
* Module for creating composite components.
|
|
1079
1083
|
*
|
|
@@ -1090,6 +1094,11 @@ var ReactClass = {
|
|
|
1090
1094
|
* @public
|
|
1091
1095
|
*/
|
|
1092
1096
|
createClass: function (spec) {
|
|
1097
|
+
if ("development" !== 'production') {
|
|
1098
|
+
"development" !== 'production' ? warning(didWarnDeprecated, '%s: React.createClass is deprecated and will be removed in version 16. ' + 'Use plain JavaScript classes instead. If you\'re not yet ready to ' + 'migrate, create-react-class is available on npm as a ' + 'drop-in replacement.', spec && spec.displayName || 'A Component') : void 0;
|
|
1099
|
+
didWarnDeprecated = true;
|
|
1100
|
+
}
|
|
1101
|
+
|
|
1093
1102
|
// To keep our warnings more understandable, we'll use a little hack here to
|
|
1094
1103
|
// ensure that Constructor.name !== 'Constructor'. This makes sure we don't
|
|
1095
1104
|
// unnecessarily identify a class without displayName as 'Constructor'.
|
|
@@ -1181,7 +1190,7 @@ var ReactClass = {
|
|
|
1181
1190
|
};
|
|
1182
1191
|
|
|
1183
1192
|
module.exports = ReactClass;
|
|
1184
|
-
},{"10":10,"13":13,"14":14,"
|
|
1193
|
+
},{"10":10,"13":13,"14":14,"25":25,"28":28,"29":29,"30":30,"31":31,"6":6}],6:[function(_dereq_,module,exports){
|
|
1185
1194
|
/**
|
|
1186
1195
|
* Copyright 2013-present, Facebook, Inc.
|
|
1187
1196
|
* All rights reserved.
|
|
@@ -1194,14 +1203,14 @@ module.exports = ReactClass;
|
|
|
1194
1203
|
|
|
1195
1204
|
'use strict';
|
|
1196
1205
|
|
|
1197
|
-
var _prodInvariant = _dereq_(
|
|
1206
|
+
var _prodInvariant = _dereq_(25);
|
|
1198
1207
|
|
|
1199
1208
|
var ReactNoopUpdateQueue = _dereq_(13);
|
|
1200
1209
|
|
|
1201
1210
|
var canDefineProperty = _dereq_(20);
|
|
1202
|
-
var emptyObject = _dereq_(
|
|
1203
|
-
var invariant = _dereq_(
|
|
1204
|
-
var warning = _dereq_(
|
|
1211
|
+
var emptyObject = _dereq_(28);
|
|
1212
|
+
var invariant = _dereq_(29);
|
|
1213
|
+
var warning = _dereq_(30);
|
|
1205
1214
|
|
|
1206
1215
|
/**
|
|
1207
1216
|
* Base class helpers for the updating state of a component.
|
|
@@ -1299,7 +1308,7 @@ if ("development" !== 'production') {
|
|
|
1299
1308
|
}
|
|
1300
1309
|
|
|
1301
1310
|
module.exports = ReactComponent;
|
|
1302
|
-
},{"13":13,"20":20,"
|
|
1311
|
+
},{"13":13,"20":20,"25":25,"28":28,"29":29,"30":30}],7:[function(_dereq_,module,exports){
|
|
1303
1312
|
/**
|
|
1304
1313
|
* Copyright 2016-present, Facebook, Inc.
|
|
1305
1314
|
* All rights reserved.
|
|
@@ -1313,12 +1322,12 @@ module.exports = ReactComponent;
|
|
|
1313
1322
|
|
|
1314
1323
|
'use strict';
|
|
1315
1324
|
|
|
1316
|
-
var _prodInvariant = _dereq_(
|
|
1325
|
+
var _prodInvariant = _dereq_(25);
|
|
1317
1326
|
|
|
1318
1327
|
var ReactCurrentOwner = _dereq_(8);
|
|
1319
1328
|
|
|
1320
|
-
var invariant = _dereq_(
|
|
1321
|
-
var warning = _dereq_(
|
|
1329
|
+
var invariant = _dereq_(29);
|
|
1330
|
+
var warning = _dereq_(30);
|
|
1322
1331
|
|
|
1323
1332
|
function isNative(fn) {
|
|
1324
1333
|
// Based on isNative() from Lodash
|
|
@@ -1633,7 +1642,7 @@ var ReactComponentTreeHook = {
|
|
|
1633
1642
|
};
|
|
1634
1643
|
|
|
1635
1644
|
module.exports = ReactComponentTreeHook;
|
|
1636
|
-
},{"
|
|
1645
|
+
},{"25":25,"29":29,"30":30,"8":8}],8:[function(_dereq_,module,exports){
|
|
1637
1646
|
/**
|
|
1638
1647
|
* Copyright 2013-present, Facebook, Inc.
|
|
1639
1648
|
* All rights reserved.
|
|
@@ -1847,11 +1856,11 @@ module.exports = ReactDOMFactories;
|
|
|
1847
1856
|
|
|
1848
1857
|
'use strict';
|
|
1849
1858
|
|
|
1850
|
-
var _assign = _dereq_(
|
|
1859
|
+
var _assign = _dereq_(31);
|
|
1851
1860
|
|
|
1852
1861
|
var ReactCurrentOwner = _dereq_(8);
|
|
1853
1862
|
|
|
1854
|
-
var warning = _dereq_(
|
|
1863
|
+
var warning = _dereq_(30);
|
|
1855
1864
|
var canDefineProperty = _dereq_(20);
|
|
1856
1865
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
1857
1866
|
|
|
@@ -2175,7 +2184,7 @@ ReactElement.isValidElement = function (object) {
|
|
|
2175
2184
|
};
|
|
2176
2185
|
|
|
2177
2186
|
module.exports = ReactElement;
|
|
2178
|
-
},{"11":11,"20":20,"
|
|
2187
|
+
},{"11":11,"20":20,"30":30,"31":31,"8":8}],11:[function(_dereq_,module,exports){
|
|
2179
2188
|
/**
|
|
2180
2189
|
* Copyright 2014-present, Facebook, Inc.
|
|
2181
2190
|
* All rights reserved.
|
|
@@ -2223,7 +2232,7 @@ var checkReactTypeSpec = _dereq_(21);
|
|
|
2223
2232
|
|
|
2224
2233
|
var canDefineProperty = _dereq_(20);
|
|
2225
2234
|
var getIteratorFn = _dereq_(22);
|
|
2226
|
-
var warning = _dereq_(
|
|
2235
|
+
var warning = _dereq_(30);
|
|
2227
2236
|
|
|
2228
2237
|
function getDeclarationErrorAddendum() {
|
|
2229
2238
|
if (ReactCurrentOwner.current) {
|
|
@@ -2235,6 +2244,16 @@ function getDeclarationErrorAddendum() {
|
|
|
2235
2244
|
return '';
|
|
2236
2245
|
}
|
|
2237
2246
|
|
|
2247
|
+
function getSourceInfoErrorAddendum(elementProps) {
|
|
2248
|
+
if (elementProps !== null && elementProps !== undefined && elementProps.__source !== undefined) {
|
|
2249
|
+
var source = elementProps.__source;
|
|
2250
|
+
var fileName = source.fileName.replace(/^.*[\\\/]/, '');
|
|
2251
|
+
var lineNumber = source.lineNumber;
|
|
2252
|
+
return ' Check your code at ' + fileName + ':' + lineNumber + '.';
|
|
2253
|
+
}
|
|
2254
|
+
return '';
|
|
2255
|
+
}
|
|
2256
|
+
|
|
2238
2257
|
/**
|
|
2239
2258
|
* Warn if there's no key explicitly set on dynamic arrays of children or
|
|
2240
2259
|
* object keys are not valid. This allows us to keep track of children between
|
|
@@ -2360,7 +2379,23 @@ var ReactElementValidator = {
|
|
|
2360
2379
|
// We warn in this case but don't throw. We expect the element creation to
|
|
2361
2380
|
// succeed and there will likely be errors in render.
|
|
2362
2381
|
if (!validType) {
|
|
2363
|
-
|
|
2382
|
+
if (typeof type !== 'function' && typeof type !== 'string') {
|
|
2383
|
+
var info = '';
|
|
2384
|
+
if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
|
|
2385
|
+
info += ' You likely forgot to export your component from the file ' + 'it\'s defined in.';
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2388
|
+
var sourceInfo = getSourceInfoErrorAddendum(props);
|
|
2389
|
+
if (sourceInfo) {
|
|
2390
|
+
info += sourceInfo;
|
|
2391
|
+
} else {
|
|
2392
|
+
info += getDeclarationErrorAddendum();
|
|
2393
|
+
}
|
|
2394
|
+
|
|
2395
|
+
info += ReactComponentTreeHook.getCurrentStackAddendum();
|
|
2396
|
+
|
|
2397
|
+
"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;
|
|
2398
|
+
}
|
|
2364
2399
|
}
|
|
2365
2400
|
|
|
2366
2401
|
var element = ReactElement.createElement.apply(this, arguments);
|
|
@@ -2422,7 +2457,7 @@ var ReactElementValidator = {
|
|
|
2422
2457
|
};
|
|
2423
2458
|
|
|
2424
2459
|
module.exports = ReactElementValidator;
|
|
2425
|
-
},{"10":10,"20":20,"21":21,"22":22,"
|
|
2460
|
+
},{"10":10,"20":20,"21":21,"22":22,"30":30,"7":7,"8":8}],13:[function(_dereq_,module,exports){
|
|
2426
2461
|
/**
|
|
2427
2462
|
* Copyright 2015-present, Facebook, Inc.
|
|
2428
2463
|
* All rights reserved.
|
|
@@ -2435,7 +2470,7 @@ module.exports = ReactElementValidator;
|
|
|
2435
2470
|
|
|
2436
2471
|
'use strict';
|
|
2437
2472
|
|
|
2438
|
-
var warning = _dereq_(
|
|
2473
|
+
var warning = _dereq_(30);
|
|
2439
2474
|
|
|
2440
2475
|
function warnNoop(publicInstance, callerName) {
|
|
2441
2476
|
if ("development" !== 'production') {
|
|
@@ -2518,7 +2553,7 @@ var ReactNoopUpdateQueue = {
|
|
|
2518
2553
|
};
|
|
2519
2554
|
|
|
2520
2555
|
module.exports = ReactNoopUpdateQueue;
|
|
2521
|
-
},{"
|
|
2556
|
+
},{"30":30}],14:[function(_dereq_,module,exports){
|
|
2522
2557
|
/**
|
|
2523
2558
|
* Copyright 2013-present, Facebook, Inc.
|
|
2524
2559
|
* All rights reserved.
|
|
@@ -2556,428 +2591,13 @@ module.exports = ReactPropTypeLocationNames;
|
|
|
2556
2591
|
|
|
2557
2592
|
'use strict';
|
|
2558
2593
|
|
|
2559
|
-
var
|
|
2560
|
-
|
|
2561
|
-
var ReactPropTypesSecret = _dereq_(16);
|
|
2562
|
-
|
|
2563
|
-
var emptyFunction = _dereq_(26);
|
|
2564
|
-
var getIteratorFn = _dereq_(22);
|
|
2565
|
-
var warning = _dereq_(29);
|
|
2566
|
-
|
|
2567
|
-
/**
|
|
2568
|
-
* Collection of methods that allow declaration and validation of props that are
|
|
2569
|
-
* supplied to React components. Example usage:
|
|
2570
|
-
*
|
|
2571
|
-
* var Props = require('ReactPropTypes');
|
|
2572
|
-
* var MyArticle = React.createClass({
|
|
2573
|
-
* propTypes: {
|
|
2574
|
-
* // An optional string prop named "description".
|
|
2575
|
-
* description: Props.string,
|
|
2576
|
-
*
|
|
2577
|
-
* // A required enum prop named "category".
|
|
2578
|
-
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
2579
|
-
*
|
|
2580
|
-
* // A prop named "dialog" that requires an instance of Dialog.
|
|
2581
|
-
* dialog: Props.instanceOf(Dialog).isRequired
|
|
2582
|
-
* },
|
|
2583
|
-
* render: function() { ... }
|
|
2584
|
-
* });
|
|
2585
|
-
*
|
|
2586
|
-
* A more formal specification of how these methods are used:
|
|
2587
|
-
*
|
|
2588
|
-
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
2589
|
-
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
2590
|
-
*
|
|
2591
|
-
* Each and every declaration produces a function with the same signature. This
|
|
2592
|
-
* allows the creation of custom validation functions. For example:
|
|
2593
|
-
*
|
|
2594
|
-
* var MyLink = React.createClass({
|
|
2595
|
-
* propTypes: {
|
|
2596
|
-
* // An optional string or URI prop named "href".
|
|
2597
|
-
* href: function(props, propName, componentName) {
|
|
2598
|
-
* var propValue = props[propName];
|
|
2599
|
-
* if (propValue != null && typeof propValue !== 'string' &&
|
|
2600
|
-
* !(propValue instanceof URI)) {
|
|
2601
|
-
* return new Error(
|
|
2602
|
-
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
2603
|
-
* componentName
|
|
2604
|
-
* );
|
|
2605
|
-
* }
|
|
2606
|
-
* }
|
|
2607
|
-
* },
|
|
2608
|
-
* render: function() {...}
|
|
2609
|
-
* });
|
|
2610
|
-
*
|
|
2611
|
-
* @internal
|
|
2612
|
-
*/
|
|
2613
|
-
|
|
2614
|
-
var ANONYMOUS = '<<anonymous>>';
|
|
2615
|
-
|
|
2616
|
-
var ReactPropTypes = {
|
|
2617
|
-
array: createPrimitiveTypeChecker('array'),
|
|
2618
|
-
bool: createPrimitiveTypeChecker('boolean'),
|
|
2619
|
-
func: createPrimitiveTypeChecker('function'),
|
|
2620
|
-
number: createPrimitiveTypeChecker('number'),
|
|
2621
|
-
object: createPrimitiveTypeChecker('object'),
|
|
2622
|
-
string: createPrimitiveTypeChecker('string'),
|
|
2623
|
-
symbol: createPrimitiveTypeChecker('symbol'),
|
|
2624
|
-
|
|
2625
|
-
any: createAnyTypeChecker(),
|
|
2626
|
-
arrayOf: createArrayOfTypeChecker,
|
|
2627
|
-
element: createElementTypeChecker(),
|
|
2628
|
-
instanceOf: createInstanceTypeChecker,
|
|
2629
|
-
node: createNodeChecker(),
|
|
2630
|
-
objectOf: createObjectOfTypeChecker,
|
|
2631
|
-
oneOf: createEnumTypeChecker,
|
|
2632
|
-
oneOfType: createUnionTypeChecker,
|
|
2633
|
-
shape: createShapeTypeChecker
|
|
2634
|
-
};
|
|
2594
|
+
var _require = _dereq_(10),
|
|
2595
|
+
isValidElement = _require.isValidElement;
|
|
2635
2596
|
|
|
2636
|
-
|
|
2637
|
-
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
2638
|
-
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
2639
|
-
*/
|
|
2640
|
-
/*eslint-disable no-self-compare*/
|
|
2641
|
-
function is(x, y) {
|
|
2642
|
-
// SameValue algorithm
|
|
2643
|
-
if (x === y) {
|
|
2644
|
-
// Steps 1-5, 7-10
|
|
2645
|
-
// Steps 6.b-6.e: +0 != -0
|
|
2646
|
-
return x !== 0 || 1 / x === 1 / y;
|
|
2647
|
-
} else {
|
|
2648
|
-
// Step 6.a: NaN == NaN
|
|
2649
|
-
return x !== x && y !== y;
|
|
2650
|
-
}
|
|
2651
|
-
}
|
|
2652
|
-
/*eslint-enable no-self-compare*/
|
|
2597
|
+
var factory = _dereq_(33);
|
|
2653
2598
|
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
* PropTypes directly and inspect their output. However we don't use real
|
|
2657
|
-
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
2658
|
-
* is prohibitively expensive if they are created too often, such as what
|
|
2659
|
-
* happens in oneOfType() for any type before the one that matched.
|
|
2660
|
-
*/
|
|
2661
|
-
function PropTypeError(message) {
|
|
2662
|
-
this.message = message;
|
|
2663
|
-
this.stack = '';
|
|
2664
|
-
}
|
|
2665
|
-
// Make `instanceof Error` still work for returned errors.
|
|
2666
|
-
PropTypeError.prototype = Error.prototype;
|
|
2667
|
-
|
|
2668
|
-
function createChainableTypeChecker(validate) {
|
|
2669
|
-
if ("development" !== 'production') {
|
|
2670
|
-
var manualPropTypeCallCache = {};
|
|
2671
|
-
}
|
|
2672
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
2673
|
-
componentName = componentName || ANONYMOUS;
|
|
2674
|
-
propFullName = propFullName || propName;
|
|
2675
|
-
if ("development" !== 'production') {
|
|
2676
|
-
if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {
|
|
2677
|
-
var cacheKey = componentName + ':' + propName;
|
|
2678
|
-
if (!manualPropTypeCallCache[cacheKey]) {
|
|
2679
|
-
"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;
|
|
2680
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
2681
|
-
}
|
|
2682
|
-
}
|
|
2683
|
-
}
|
|
2684
|
-
if (props[propName] == null) {
|
|
2685
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2686
|
-
if (isRequired) {
|
|
2687
|
-
if (props[propName] === null) {
|
|
2688
|
-
return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
2689
|
-
}
|
|
2690
|
-
return new PropTypeError('The ' + locationName + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
2691
|
-
}
|
|
2692
|
-
return null;
|
|
2693
|
-
} else {
|
|
2694
|
-
return validate(props, propName, componentName, location, propFullName);
|
|
2695
|
-
}
|
|
2696
|
-
}
|
|
2697
|
-
|
|
2698
|
-
var chainedCheckType = checkType.bind(null, false);
|
|
2699
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
2700
|
-
|
|
2701
|
-
return chainedCheckType;
|
|
2702
|
-
}
|
|
2703
|
-
|
|
2704
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
2705
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
2706
|
-
var propValue = props[propName];
|
|
2707
|
-
var propType = getPropType(propValue);
|
|
2708
|
-
if (propType !== expectedType) {
|
|
2709
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2710
|
-
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
2711
|
-
// check, but we can offer a more precise error message here rather than
|
|
2712
|
-
// 'of type `object`'.
|
|
2713
|
-
var preciseType = getPreciseType(propValue);
|
|
2714
|
-
|
|
2715
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
2716
|
-
}
|
|
2717
|
-
return null;
|
|
2718
|
-
}
|
|
2719
|
-
return createChainableTypeChecker(validate);
|
|
2720
|
-
}
|
|
2721
|
-
|
|
2722
|
-
function createAnyTypeChecker() {
|
|
2723
|
-
return createChainableTypeChecker(emptyFunction.thatReturns(null));
|
|
2724
|
-
}
|
|
2725
|
-
|
|
2726
|
-
function createArrayOfTypeChecker(typeChecker) {
|
|
2727
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2728
|
-
if (typeof typeChecker !== 'function') {
|
|
2729
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
2730
|
-
}
|
|
2731
|
-
var propValue = props[propName];
|
|
2732
|
-
if (!Array.isArray(propValue)) {
|
|
2733
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2734
|
-
var propType = getPropType(propValue);
|
|
2735
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
2736
|
-
}
|
|
2737
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
2738
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
2739
|
-
if (error instanceof Error) {
|
|
2740
|
-
return error;
|
|
2741
|
-
}
|
|
2742
|
-
}
|
|
2743
|
-
return null;
|
|
2744
|
-
}
|
|
2745
|
-
return createChainableTypeChecker(validate);
|
|
2746
|
-
}
|
|
2747
|
-
|
|
2748
|
-
function createElementTypeChecker() {
|
|
2749
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2750
|
-
var propValue = props[propName];
|
|
2751
|
-
if (!ReactElement.isValidElement(propValue)) {
|
|
2752
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2753
|
-
var propType = getPropType(propValue);
|
|
2754
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
2755
|
-
}
|
|
2756
|
-
return null;
|
|
2757
|
-
}
|
|
2758
|
-
return createChainableTypeChecker(validate);
|
|
2759
|
-
}
|
|
2760
|
-
|
|
2761
|
-
function createInstanceTypeChecker(expectedClass) {
|
|
2762
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2763
|
-
if (!(props[propName] instanceof expectedClass)) {
|
|
2764
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2765
|
-
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
2766
|
-
var actualClassName = getClassName(props[propName]);
|
|
2767
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
2768
|
-
}
|
|
2769
|
-
return null;
|
|
2770
|
-
}
|
|
2771
|
-
return createChainableTypeChecker(validate);
|
|
2772
|
-
}
|
|
2773
|
-
|
|
2774
|
-
function createEnumTypeChecker(expectedValues) {
|
|
2775
|
-
if (!Array.isArray(expectedValues)) {
|
|
2776
|
-
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
|
|
2777
|
-
return emptyFunction.thatReturnsNull;
|
|
2778
|
-
}
|
|
2779
|
-
|
|
2780
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2781
|
-
var propValue = props[propName];
|
|
2782
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
2783
|
-
if (is(propValue, expectedValues[i])) {
|
|
2784
|
-
return null;
|
|
2785
|
-
}
|
|
2786
|
-
}
|
|
2787
|
-
|
|
2788
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2789
|
-
var valuesString = JSON.stringify(expectedValues);
|
|
2790
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
2791
|
-
}
|
|
2792
|
-
return createChainableTypeChecker(validate);
|
|
2793
|
-
}
|
|
2794
|
-
|
|
2795
|
-
function createObjectOfTypeChecker(typeChecker) {
|
|
2796
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2797
|
-
if (typeof typeChecker !== 'function') {
|
|
2798
|
-
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
2799
|
-
}
|
|
2800
|
-
var propValue = props[propName];
|
|
2801
|
-
var propType = getPropType(propValue);
|
|
2802
|
-
if (propType !== 'object') {
|
|
2803
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2804
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
2805
|
-
}
|
|
2806
|
-
for (var key in propValue) {
|
|
2807
|
-
if (propValue.hasOwnProperty(key)) {
|
|
2808
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2809
|
-
if (error instanceof Error) {
|
|
2810
|
-
return error;
|
|
2811
|
-
}
|
|
2812
|
-
}
|
|
2813
|
-
}
|
|
2814
|
-
return null;
|
|
2815
|
-
}
|
|
2816
|
-
return createChainableTypeChecker(validate);
|
|
2817
|
-
}
|
|
2818
|
-
|
|
2819
|
-
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
2820
|
-
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
2821
|
-
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
2822
|
-
return emptyFunction.thatReturnsNull;
|
|
2823
|
-
}
|
|
2824
|
-
|
|
2825
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2826
|
-
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
2827
|
-
var checker = arrayOfTypeCheckers[i];
|
|
2828
|
-
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
2829
|
-
return null;
|
|
2830
|
-
}
|
|
2831
|
-
}
|
|
2832
|
-
|
|
2833
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2834
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
2835
|
-
}
|
|
2836
|
-
return createChainableTypeChecker(validate);
|
|
2837
|
-
}
|
|
2838
|
-
|
|
2839
|
-
function createNodeChecker() {
|
|
2840
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2841
|
-
if (!isNode(props[propName])) {
|
|
2842
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2843
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
2844
|
-
}
|
|
2845
|
-
return null;
|
|
2846
|
-
}
|
|
2847
|
-
return createChainableTypeChecker(validate);
|
|
2848
|
-
}
|
|
2849
|
-
|
|
2850
|
-
function createShapeTypeChecker(shapeTypes) {
|
|
2851
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
2852
|
-
var propValue = props[propName];
|
|
2853
|
-
var propType = getPropType(propValue);
|
|
2854
|
-
if (propType !== 'object') {
|
|
2855
|
-
var locationName = ReactPropTypeLocationNames[location];
|
|
2856
|
-
return new PropTypeError('Invalid ' + locationName + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
2857
|
-
}
|
|
2858
|
-
for (var key in shapeTypes) {
|
|
2859
|
-
var checker = shapeTypes[key];
|
|
2860
|
-
if (!checker) {
|
|
2861
|
-
continue;
|
|
2862
|
-
}
|
|
2863
|
-
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
2864
|
-
if (error) {
|
|
2865
|
-
return error;
|
|
2866
|
-
}
|
|
2867
|
-
}
|
|
2868
|
-
return null;
|
|
2869
|
-
}
|
|
2870
|
-
return createChainableTypeChecker(validate);
|
|
2871
|
-
}
|
|
2872
|
-
|
|
2873
|
-
function isNode(propValue) {
|
|
2874
|
-
switch (typeof propValue) {
|
|
2875
|
-
case 'number':
|
|
2876
|
-
case 'string':
|
|
2877
|
-
case 'undefined':
|
|
2878
|
-
return true;
|
|
2879
|
-
case 'boolean':
|
|
2880
|
-
return !propValue;
|
|
2881
|
-
case 'object':
|
|
2882
|
-
if (Array.isArray(propValue)) {
|
|
2883
|
-
return propValue.every(isNode);
|
|
2884
|
-
}
|
|
2885
|
-
if (propValue === null || ReactElement.isValidElement(propValue)) {
|
|
2886
|
-
return true;
|
|
2887
|
-
}
|
|
2888
|
-
|
|
2889
|
-
var iteratorFn = getIteratorFn(propValue);
|
|
2890
|
-
if (iteratorFn) {
|
|
2891
|
-
var iterator = iteratorFn.call(propValue);
|
|
2892
|
-
var step;
|
|
2893
|
-
if (iteratorFn !== propValue.entries) {
|
|
2894
|
-
while (!(step = iterator.next()).done) {
|
|
2895
|
-
if (!isNode(step.value)) {
|
|
2896
|
-
return false;
|
|
2897
|
-
}
|
|
2898
|
-
}
|
|
2899
|
-
} else {
|
|
2900
|
-
// Iterator will provide entry [k,v] tuples rather than values.
|
|
2901
|
-
while (!(step = iterator.next()).done) {
|
|
2902
|
-
var entry = step.value;
|
|
2903
|
-
if (entry) {
|
|
2904
|
-
if (!isNode(entry[1])) {
|
|
2905
|
-
return false;
|
|
2906
|
-
}
|
|
2907
|
-
}
|
|
2908
|
-
}
|
|
2909
|
-
}
|
|
2910
|
-
} else {
|
|
2911
|
-
return false;
|
|
2912
|
-
}
|
|
2913
|
-
|
|
2914
|
-
return true;
|
|
2915
|
-
default:
|
|
2916
|
-
return false;
|
|
2917
|
-
}
|
|
2918
|
-
}
|
|
2919
|
-
|
|
2920
|
-
function isSymbol(propType, propValue) {
|
|
2921
|
-
// Native Symbol.
|
|
2922
|
-
if (propType === 'symbol') {
|
|
2923
|
-
return true;
|
|
2924
|
-
}
|
|
2925
|
-
|
|
2926
|
-
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
2927
|
-
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
2928
|
-
return true;
|
|
2929
|
-
}
|
|
2930
|
-
|
|
2931
|
-
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
2932
|
-
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
2933
|
-
return true;
|
|
2934
|
-
}
|
|
2935
|
-
|
|
2936
|
-
return false;
|
|
2937
|
-
}
|
|
2938
|
-
|
|
2939
|
-
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
2940
|
-
function getPropType(propValue) {
|
|
2941
|
-
var propType = typeof propValue;
|
|
2942
|
-
if (Array.isArray(propValue)) {
|
|
2943
|
-
return 'array';
|
|
2944
|
-
}
|
|
2945
|
-
if (propValue instanceof RegExp) {
|
|
2946
|
-
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
2947
|
-
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
2948
|
-
// passes PropTypes.object.
|
|
2949
|
-
return 'object';
|
|
2950
|
-
}
|
|
2951
|
-
if (isSymbol(propType, propValue)) {
|
|
2952
|
-
return 'symbol';
|
|
2953
|
-
}
|
|
2954
|
-
return propType;
|
|
2955
|
-
}
|
|
2956
|
-
|
|
2957
|
-
// This handles more types than `getPropType`. Only used for error messages.
|
|
2958
|
-
// See `createPrimitiveTypeChecker`.
|
|
2959
|
-
function getPreciseType(propValue) {
|
|
2960
|
-
var propType = getPropType(propValue);
|
|
2961
|
-
if (propType === 'object') {
|
|
2962
|
-
if (propValue instanceof Date) {
|
|
2963
|
-
return 'date';
|
|
2964
|
-
} else if (propValue instanceof RegExp) {
|
|
2965
|
-
return 'regexp';
|
|
2966
|
-
}
|
|
2967
|
-
}
|
|
2968
|
-
return propType;
|
|
2969
|
-
}
|
|
2970
|
-
|
|
2971
|
-
// Returns class name of the object, if any.
|
|
2972
|
-
function getClassName(propValue) {
|
|
2973
|
-
if (!propValue.constructor || !propValue.constructor.name) {
|
|
2974
|
-
return ANONYMOUS;
|
|
2975
|
-
}
|
|
2976
|
-
return propValue.constructor.name;
|
|
2977
|
-
}
|
|
2978
|
-
|
|
2979
|
-
module.exports = ReactPropTypes;
|
|
2980
|
-
},{"10":10,"14":14,"16":16,"22":22,"26":26,"29":29}],16:[function(_dereq_,module,exports){
|
|
2599
|
+
module.exports = factory(isValidElement);
|
|
2600
|
+
},{"10":10,"33":33}],16:[function(_dereq_,module,exports){
|
|
2981
2601
|
/**
|
|
2982
2602
|
* Copyright 2013-present, Facebook, Inc.
|
|
2983
2603
|
* All rights reserved.
|
|
@@ -3007,12 +2627,12 @@ module.exports = ReactPropTypesSecret;
|
|
|
3007
2627
|
|
|
3008
2628
|
'use strict';
|
|
3009
2629
|
|
|
3010
|
-
var _assign = _dereq_(
|
|
2630
|
+
var _assign = _dereq_(31);
|
|
3011
2631
|
|
|
3012
2632
|
var ReactComponent = _dereq_(6);
|
|
3013
2633
|
var ReactNoopUpdateQueue = _dereq_(13);
|
|
3014
2634
|
|
|
3015
|
-
var emptyObject = _dereq_(
|
|
2635
|
+
var emptyObject = _dereq_(28);
|
|
3016
2636
|
|
|
3017
2637
|
/**
|
|
3018
2638
|
* Base class helpers for the updating state of a component.
|
|
@@ -3036,7 +2656,7 @@ _assign(ReactPureComponent.prototype, ReactComponent.prototype);
|
|
|
3036
2656
|
ReactPureComponent.prototype.isPureReactComponent = true;
|
|
3037
2657
|
|
|
3038
2658
|
module.exports = ReactPureComponent;
|
|
3039
|
-
},{"13":13,"
|
|
2659
|
+
},{"13":13,"28":28,"31":31,"6":6}],18:[function(_dereq_,module,exports){
|
|
3040
2660
|
/**
|
|
3041
2661
|
* Copyright 2013-present, Facebook, Inc.
|
|
3042
2662
|
* All rights reserved.
|
|
@@ -3049,26 +2669,27 @@ module.exports = ReactPureComponent;
|
|
|
3049
2669
|
|
|
3050
2670
|
'use strict';
|
|
3051
2671
|
|
|
3052
|
-
var _assign = _dereq_(
|
|
2672
|
+
var _assign = _dereq_(31);
|
|
3053
2673
|
|
|
3054
2674
|
var React = _dereq_(3);
|
|
3055
2675
|
|
|
3056
2676
|
// `version` will be added here by the React module.
|
|
3057
|
-
var ReactUMDEntry = _assign({
|
|
2677
|
+
var ReactUMDEntry = _assign(React, {
|
|
3058
2678
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: {
|
|
3059
2679
|
ReactCurrentOwner: _dereq_(8)
|
|
3060
2680
|
}
|
|
3061
|
-
}
|
|
2681
|
+
});
|
|
3062
2682
|
|
|
3063
2683
|
if ("development" !== 'production') {
|
|
3064
2684
|
_assign(ReactUMDEntry.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED, {
|
|
3065
2685
|
// ReactComponentTreeHook should not be included in production.
|
|
3066
|
-
ReactComponentTreeHook: _dereq_(7)
|
|
2686
|
+
ReactComponentTreeHook: _dereq_(7),
|
|
2687
|
+
getNextDebugID: _dereq_(23)
|
|
3067
2688
|
});
|
|
3068
2689
|
}
|
|
3069
2690
|
|
|
3070
2691
|
module.exports = ReactUMDEntry;
|
|
3071
|
-
},{"3":3,"
|
|
2692
|
+
},{"23":23,"3":3,"31":31,"7":7,"8":8}],19:[function(_dereq_,module,exports){
|
|
3072
2693
|
/**
|
|
3073
2694
|
* Copyright 2013-present, Facebook, Inc.
|
|
3074
2695
|
* All rights reserved.
|
|
@@ -3081,7 +2702,7 @@ module.exports = ReactUMDEntry;
|
|
|
3081
2702
|
|
|
3082
2703
|
'use strict';
|
|
3083
2704
|
|
|
3084
|
-
module.exports = '15.
|
|
2705
|
+
module.exports = '15.5.0';
|
|
3085
2706
|
},{}],20:[function(_dereq_,module,exports){
|
|
3086
2707
|
/**
|
|
3087
2708
|
* Copyright 2013-present, Facebook, Inc.
|
|
@@ -3122,13 +2743,13 @@ module.exports = canDefineProperty;
|
|
|
3122
2743
|
|
|
3123
2744
|
'use strict';
|
|
3124
2745
|
|
|
3125
|
-
var _prodInvariant = _dereq_(
|
|
2746
|
+
var _prodInvariant = _dereq_(25);
|
|
3126
2747
|
|
|
3127
2748
|
var ReactPropTypeLocationNames = _dereq_(14);
|
|
3128
2749
|
var ReactPropTypesSecret = _dereq_(16);
|
|
3129
2750
|
|
|
3130
|
-
var invariant = _dereq_(
|
|
3131
|
-
var warning = _dereq_(
|
|
2751
|
+
var invariant = _dereq_(29);
|
|
2752
|
+
var warning = _dereq_(30);
|
|
3132
2753
|
|
|
3133
2754
|
var ReactComponentTreeHook;
|
|
3134
2755
|
|
|
@@ -3197,7 +2818,7 @@ function checkReactTypeSpec(typeSpecs, values, location, componentName, element,
|
|
|
3197
2818
|
|
|
3198
2819
|
module.exports = checkReactTypeSpec;
|
|
3199
2820
|
}).call(this,undefined)
|
|
3200
|
-
},{"14":14,"16":16,"
|
|
2821
|
+
},{"14":14,"16":16,"25":25,"29":29,"30":30,"7":7}],22:[function(_dereq_,module,exports){
|
|
3201
2822
|
/**
|
|
3202
2823
|
* Copyright 2013-present, Facebook, Inc.
|
|
3203
2824
|
* All rights reserved.
|
|
@@ -3239,6 +2860,27 @@ function getIteratorFn(maybeIterable) {
|
|
|
3239
2860
|
|
|
3240
2861
|
module.exports = getIteratorFn;
|
|
3241
2862
|
},{}],23:[function(_dereq_,module,exports){
|
|
2863
|
+
/**
|
|
2864
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
2865
|
+
* All rights reserved.
|
|
2866
|
+
*
|
|
2867
|
+
* This source code is licensed under the BSD-style license found in the
|
|
2868
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
2869
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
2870
|
+
*
|
|
2871
|
+
*
|
|
2872
|
+
*/
|
|
2873
|
+
|
|
2874
|
+
'use strict';
|
|
2875
|
+
|
|
2876
|
+
var nextDebugID = 1;
|
|
2877
|
+
|
|
2878
|
+
function getNextDebugID() {
|
|
2879
|
+
return nextDebugID++;
|
|
2880
|
+
}
|
|
2881
|
+
|
|
2882
|
+
module.exports = getNextDebugID;
|
|
2883
|
+
},{}],24:[function(_dereq_,module,exports){
|
|
3242
2884
|
/**
|
|
3243
2885
|
* Copyright 2013-present, Facebook, Inc.
|
|
3244
2886
|
* All rights reserved.
|
|
@@ -3250,11 +2892,11 @@ module.exports = getIteratorFn;
|
|
|
3250
2892
|
*/
|
|
3251
2893
|
'use strict';
|
|
3252
2894
|
|
|
3253
|
-
var _prodInvariant = _dereq_(
|
|
2895
|
+
var _prodInvariant = _dereq_(25);
|
|
3254
2896
|
|
|
3255
2897
|
var ReactElement = _dereq_(10);
|
|
3256
2898
|
|
|
3257
|
-
var invariant = _dereq_(
|
|
2899
|
+
var invariant = _dereq_(29);
|
|
3258
2900
|
|
|
3259
2901
|
/**
|
|
3260
2902
|
* Returns the first child in a collection of children and verifies that there
|
|
@@ -3276,7 +2918,7 @@ function onlyChild(children) {
|
|
|
3276
2918
|
}
|
|
3277
2919
|
|
|
3278
2920
|
module.exports = onlyChild;
|
|
3279
|
-
},{"10":10,"
|
|
2921
|
+
},{"10":10,"25":25,"29":29}],25:[function(_dereq_,module,exports){
|
|
3280
2922
|
/**
|
|
3281
2923
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3282
2924
|
* All rights reserved.
|
|
@@ -3315,7 +2957,7 @@ function reactProdInvariant(code) {
|
|
|
3315
2957
|
}
|
|
3316
2958
|
|
|
3317
2959
|
module.exports = reactProdInvariant;
|
|
3318
|
-
},{}],
|
|
2960
|
+
},{}],26:[function(_dereq_,module,exports){
|
|
3319
2961
|
/**
|
|
3320
2962
|
* Copyright 2013-present, Facebook, Inc.
|
|
3321
2963
|
* All rights reserved.
|
|
@@ -3328,15 +2970,15 @@ module.exports = reactProdInvariant;
|
|
|
3328
2970
|
|
|
3329
2971
|
'use strict';
|
|
3330
2972
|
|
|
3331
|
-
var _prodInvariant = _dereq_(
|
|
2973
|
+
var _prodInvariant = _dereq_(25);
|
|
3332
2974
|
|
|
3333
2975
|
var ReactCurrentOwner = _dereq_(8);
|
|
3334
2976
|
var REACT_ELEMENT_TYPE = _dereq_(11);
|
|
3335
2977
|
|
|
3336
2978
|
var getIteratorFn = _dereq_(22);
|
|
3337
|
-
var invariant = _dereq_(
|
|
2979
|
+
var invariant = _dereq_(29);
|
|
3338
2980
|
var KeyEscapeUtils = _dereq_(1);
|
|
3339
|
-
var warning = _dereq_(
|
|
2981
|
+
var warning = _dereq_(30);
|
|
3340
2982
|
|
|
3341
2983
|
var SEPARATOR = '.';
|
|
3342
2984
|
var SUBSEPARATOR = ':';
|
|
@@ -3491,7 +3133,7 @@ function traverseAllChildren(children, callback, traverseContext) {
|
|
|
3491
3133
|
}
|
|
3492
3134
|
|
|
3493
3135
|
module.exports = traverseAllChildren;
|
|
3494
|
-
},{"1":1,"11":11,"22":22,"
|
|
3136
|
+
},{"1":1,"11":11,"22":22,"25":25,"29":29,"30":30,"8":8}],27:[function(_dereq_,module,exports){
|
|
3495
3137
|
"use strict";
|
|
3496
3138
|
|
|
3497
3139
|
/**
|
|
@@ -3530,7 +3172,7 @@ emptyFunction.thatReturnsArgument = function (arg) {
|
|
|
3530
3172
|
};
|
|
3531
3173
|
|
|
3532
3174
|
module.exports = emptyFunction;
|
|
3533
|
-
},{}],
|
|
3175
|
+
},{}],28:[function(_dereq_,module,exports){
|
|
3534
3176
|
/**
|
|
3535
3177
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3536
3178
|
* All rights reserved.
|
|
@@ -3550,7 +3192,7 @@ if ("development" !== 'production') {
|
|
|
3550
3192
|
}
|
|
3551
3193
|
|
|
3552
3194
|
module.exports = emptyObject;
|
|
3553
|
-
},{}],
|
|
3195
|
+
},{}],29:[function(_dereq_,module,exports){
|
|
3554
3196
|
/**
|
|
3555
3197
|
* Copyright (c) 2013-present, Facebook, Inc.
|
|
3556
3198
|
* All rights reserved.
|
|
@@ -3574,12 +3216,18 @@ module.exports = emptyObject;
|
|
|
3574
3216
|
* will remain to ensure logic does not differ in production.
|
|
3575
3217
|
*/
|
|
3576
3218
|
|
|
3577
|
-
function
|
|
3578
|
-
|
|
3219
|
+
var validateFormat = function validateFormat(format) {};
|
|
3220
|
+
|
|
3221
|
+
if ("development" !== 'production') {
|
|
3222
|
+
validateFormat = function validateFormat(format) {
|
|
3579
3223
|
if (format === undefined) {
|
|
3580
3224
|
throw new Error('invariant requires an error message argument');
|
|
3581
3225
|
}
|
|
3582
|
-
}
|
|
3226
|
+
};
|
|
3227
|
+
}
|
|
3228
|
+
|
|
3229
|
+
function invariant(condition, format, a, b, c, d, e, f) {
|
|
3230
|
+
validateFormat(format);
|
|
3583
3231
|
|
|
3584
3232
|
if (!condition) {
|
|
3585
3233
|
var error;
|
|
@@ -3600,7 +3248,7 @@ function invariant(condition, format, a, b, c, d, e, f) {
|
|
|
3600
3248
|
}
|
|
3601
3249
|
|
|
3602
3250
|
module.exports = invariant;
|
|
3603
|
-
},{}],
|
|
3251
|
+
},{}],30:[function(_dereq_,module,exports){
|
|
3604
3252
|
/**
|
|
3605
3253
|
* Copyright 2014-2015, Facebook, Inc.
|
|
3606
3254
|
* All rights reserved.
|
|
@@ -3613,7 +3261,7 @@ module.exports = invariant;
|
|
|
3613
3261
|
|
|
3614
3262
|
'use strict';
|
|
3615
3263
|
|
|
3616
|
-
var emptyFunction = _dereq_(
|
|
3264
|
+
var emptyFunction = _dereq_(27);
|
|
3617
3265
|
|
|
3618
3266
|
/**
|
|
3619
3267
|
* Similar to invariant but only logs a warning if the condition is not met.
|
|
@@ -3667,9 +3315,16 @@ if ("development" !== 'production') {
|
|
|
3667
3315
|
}
|
|
3668
3316
|
|
|
3669
3317
|
module.exports = warning;
|
|
3670
|
-
},{"
|
|
3318
|
+
},{"27":27}],31:[function(_dereq_,module,exports){
|
|
3319
|
+
/*
|
|
3320
|
+
object-assign
|
|
3321
|
+
(c) Sindre Sorhus
|
|
3322
|
+
@license MIT
|
|
3323
|
+
*/
|
|
3324
|
+
|
|
3671
3325
|
'use strict';
|
|
3672
3326
|
/* eslint-disable no-unused-vars */
|
|
3327
|
+
var getOwnPropertySymbols = Object.getOwnPropertySymbols;
|
|
3673
3328
|
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
|
3674
3329
|
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
3675
3330
|
|
|
@@ -3690,7 +3345,7 @@ function shouldUseNative() {
|
|
|
3690
3345
|
// Detect buggy property enumeration order in older V8 versions.
|
|
3691
3346
|
|
|
3692
3347
|
// https://bugs.chromium.org/p/v8/issues/detail?id=4118
|
|
3693
|
-
var test1 = new String('abc'); // eslint-disable-line
|
|
3348
|
+
var test1 = new String('abc'); // eslint-disable-line no-new-wrappers
|
|
3694
3349
|
test1[5] = 'de';
|
|
3695
3350
|
if (Object.getOwnPropertyNames(test1)[0] === '5') {
|
|
3696
3351
|
return false;
|
|
@@ -3719,7 +3374,7 @@ function shouldUseNative() {
|
|
|
3719
3374
|
}
|
|
3720
3375
|
|
|
3721
3376
|
return true;
|
|
3722
|
-
} catch (
|
|
3377
|
+
} catch (err) {
|
|
3723
3378
|
// We don't expect any of the above to throw, but better to be safe.
|
|
3724
3379
|
return false;
|
|
3725
3380
|
}
|
|
@@ -3739,8 +3394,8 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
3739
3394
|
}
|
|
3740
3395
|
}
|
|
3741
3396
|
|
|
3742
|
-
if (
|
|
3743
|
-
symbols =
|
|
3397
|
+
if (getOwnPropertySymbols) {
|
|
3398
|
+
symbols = getOwnPropertySymbols(from);
|
|
3744
3399
|
for (var i = 0; i < symbols.length; i++) {
|
|
3745
3400
|
if (propIsEnumerable.call(from, symbols[i])) {
|
|
3746
3401
|
to[symbols[i]] = from[symbols[i]];
|
|
@@ -3752,5 +3407,570 @@ module.exports = shouldUseNative() ? Object.assign : function (target, source) {
|
|
|
3752
3407
|
return to;
|
|
3753
3408
|
};
|
|
3754
3409
|
|
|
3410
|
+
},{}],32:[function(_dereq_,module,exports){
|
|
3411
|
+
/**
|
|
3412
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
3413
|
+
* All rights reserved.
|
|
3414
|
+
*
|
|
3415
|
+
* This source code is licensed under the BSD-style license found in the
|
|
3416
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3417
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3418
|
+
*/
|
|
3419
|
+
|
|
3420
|
+
'use strict';
|
|
3421
|
+
|
|
3422
|
+
var invariant = _dereq_(29);
|
|
3423
|
+
var warning = _dereq_(30);
|
|
3424
|
+
|
|
3425
|
+
var ReactPropTypesSecret = _dereq_(34);
|
|
3426
|
+
|
|
3427
|
+
var loggedTypeFailures = {};
|
|
3428
|
+
|
|
3429
|
+
/**
|
|
3430
|
+
* Assert that the values match with the type specs.
|
|
3431
|
+
* Error messages are memorized and will only be shown once.
|
|
3432
|
+
*
|
|
3433
|
+
* @param {object} typeSpecs Map of name to a ReactPropType
|
|
3434
|
+
* @param {object} values Runtime values that need to be type-checked
|
|
3435
|
+
* @param {string} location e.g. "prop", "context", "child context"
|
|
3436
|
+
* @param {string} componentName Name of the component for error messages.
|
|
3437
|
+
* @param {?Function} getStack Returns the component stack.
|
|
3438
|
+
* @private
|
|
3439
|
+
*/
|
|
3440
|
+
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
3441
|
+
if ("development" !== 'production') {
|
|
3442
|
+
for (var typeSpecName in typeSpecs) {
|
|
3443
|
+
if (typeSpecs.hasOwnProperty(typeSpecName)) {
|
|
3444
|
+
var error;
|
|
3445
|
+
// Prop type validation may throw. In case they do, we don't want to
|
|
3446
|
+
// fail the render phase where it didn't fail before. So we log it.
|
|
3447
|
+
// After these have been cleaned up, we'll let them throw.
|
|
3448
|
+
try {
|
|
3449
|
+
// This is intentionally an invariant that gets caught. It's the same
|
|
3450
|
+
// behavior as without this statement except with a better message.
|
|
3451
|
+
invariant(typeof typeSpecs[typeSpecName] === 'function', '%s: %s type `%s` is invalid; it must be a function, usually from ' + 'React.PropTypes.', componentName || 'React class', location, typeSpecName);
|
|
3452
|
+
error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
|
|
3453
|
+
} catch (ex) {
|
|
3454
|
+
error = ex;
|
|
3455
|
+
}
|
|
3456
|
+
"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;
|
|
3457
|
+
if (error instanceof Error && !(error.message in loggedTypeFailures)) {
|
|
3458
|
+
// Only monitor this failure once because there tends to be a lot of the
|
|
3459
|
+
// same error.
|
|
3460
|
+
loggedTypeFailures[error.message] = true;
|
|
3461
|
+
|
|
3462
|
+
var stack = getStack ? getStack() : '';
|
|
3463
|
+
|
|
3464
|
+
"development" !== 'production' ? warning(false, 'Failed %s type: %s%s', location, error.message, stack != null ? stack : '') : void 0;
|
|
3465
|
+
}
|
|
3466
|
+
}
|
|
3467
|
+
}
|
|
3468
|
+
}
|
|
3469
|
+
}
|
|
3470
|
+
|
|
3471
|
+
module.exports = checkPropTypes;
|
|
3472
|
+
|
|
3473
|
+
},{"29":29,"30":30,"34":34}],33:[function(_dereq_,module,exports){
|
|
3474
|
+
/**
|
|
3475
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
3476
|
+
* All rights reserved.
|
|
3477
|
+
*
|
|
3478
|
+
* This source code is licensed under the BSD-style license found in the
|
|
3479
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3480
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3481
|
+
*/
|
|
3482
|
+
|
|
3483
|
+
'use strict';
|
|
3484
|
+
|
|
3485
|
+
var emptyFunction = _dereq_(27);
|
|
3486
|
+
var invariant = _dereq_(29);
|
|
3487
|
+
var warning = _dereq_(30);
|
|
3488
|
+
|
|
3489
|
+
var ReactPropTypesSecret = _dereq_(34);
|
|
3490
|
+
var checkPropTypes = _dereq_(32);
|
|
3491
|
+
|
|
3492
|
+
module.exports = function (isValidElement) {
|
|
3493
|
+
/* global Symbol */
|
|
3494
|
+
var ITERATOR_SYMBOL = typeof Symbol === 'function' && Symbol.iterator;
|
|
3495
|
+
var FAUX_ITERATOR_SYMBOL = '@@iterator'; // Before Symbol spec.
|
|
3496
|
+
|
|
3497
|
+
/**
|
|
3498
|
+
* Returns the iterator method function contained on the iterable object.
|
|
3499
|
+
*
|
|
3500
|
+
* Be sure to invoke the function with the iterable as context:
|
|
3501
|
+
*
|
|
3502
|
+
* var iteratorFn = getIteratorFn(myIterable);
|
|
3503
|
+
* if (iteratorFn) {
|
|
3504
|
+
* var iterator = iteratorFn.call(myIterable);
|
|
3505
|
+
* ...
|
|
3506
|
+
* }
|
|
3507
|
+
*
|
|
3508
|
+
* @param {?object} maybeIterable
|
|
3509
|
+
* @return {?function}
|
|
3510
|
+
*/
|
|
3511
|
+
function getIteratorFn(maybeIterable) {
|
|
3512
|
+
var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
|
|
3513
|
+
if (typeof iteratorFn === 'function') {
|
|
3514
|
+
return iteratorFn;
|
|
3515
|
+
}
|
|
3516
|
+
}
|
|
3517
|
+
|
|
3518
|
+
/**
|
|
3519
|
+
* Collection of methods that allow declaration and validation of props that are
|
|
3520
|
+
* supplied to React components. Example usage:
|
|
3521
|
+
*
|
|
3522
|
+
* var Props = require('ReactPropTypes');
|
|
3523
|
+
* var MyArticle = React.createClass({
|
|
3524
|
+
* propTypes: {
|
|
3525
|
+
* // An optional string prop named "description".
|
|
3526
|
+
* description: Props.string,
|
|
3527
|
+
*
|
|
3528
|
+
* // A required enum prop named "category".
|
|
3529
|
+
* category: Props.oneOf(['News','Photos']).isRequired,
|
|
3530
|
+
*
|
|
3531
|
+
* // A prop named "dialog" that requires an instance of Dialog.
|
|
3532
|
+
* dialog: Props.instanceOf(Dialog).isRequired
|
|
3533
|
+
* },
|
|
3534
|
+
* render: function() { ... }
|
|
3535
|
+
* });
|
|
3536
|
+
*
|
|
3537
|
+
* A more formal specification of how these methods are used:
|
|
3538
|
+
*
|
|
3539
|
+
* type := array|bool|func|object|number|string|oneOf([...])|instanceOf(...)
|
|
3540
|
+
* decl := ReactPropTypes.{type}(.isRequired)?
|
|
3541
|
+
*
|
|
3542
|
+
* Each and every declaration produces a function with the same signature. This
|
|
3543
|
+
* allows the creation of custom validation functions. For example:
|
|
3544
|
+
*
|
|
3545
|
+
* var MyLink = React.createClass({
|
|
3546
|
+
* propTypes: {
|
|
3547
|
+
* // An optional string or URI prop named "href".
|
|
3548
|
+
* href: function(props, propName, componentName) {
|
|
3549
|
+
* var propValue = props[propName];
|
|
3550
|
+
* if (propValue != null && typeof propValue !== 'string' &&
|
|
3551
|
+
* !(propValue instanceof URI)) {
|
|
3552
|
+
* return new Error(
|
|
3553
|
+
* 'Expected a string or an URI for ' + propName + ' in ' +
|
|
3554
|
+
* componentName
|
|
3555
|
+
* );
|
|
3556
|
+
* }
|
|
3557
|
+
* }
|
|
3558
|
+
* },
|
|
3559
|
+
* render: function() {...}
|
|
3560
|
+
* });
|
|
3561
|
+
*
|
|
3562
|
+
* @internal
|
|
3563
|
+
*/
|
|
3564
|
+
|
|
3565
|
+
var ANONYMOUS = '<<anonymous>>';
|
|
3566
|
+
|
|
3567
|
+
var ReactPropTypes;
|
|
3568
|
+
|
|
3569
|
+
if ("development" !== 'production') {
|
|
3570
|
+
// Keep in sync with production version below
|
|
3571
|
+
ReactPropTypes = {
|
|
3572
|
+
array: createPrimitiveTypeChecker('array'),
|
|
3573
|
+
bool: createPrimitiveTypeChecker('boolean'),
|
|
3574
|
+
func: createPrimitiveTypeChecker('function'),
|
|
3575
|
+
number: createPrimitiveTypeChecker('number'),
|
|
3576
|
+
object: createPrimitiveTypeChecker('object'),
|
|
3577
|
+
string: createPrimitiveTypeChecker('string'),
|
|
3578
|
+
symbol: createPrimitiveTypeChecker('symbol'),
|
|
3579
|
+
|
|
3580
|
+
any: createAnyTypeChecker(),
|
|
3581
|
+
arrayOf: createArrayOfTypeChecker,
|
|
3582
|
+
element: createElementTypeChecker(),
|
|
3583
|
+
instanceOf: createInstanceTypeChecker,
|
|
3584
|
+
node: createNodeChecker(),
|
|
3585
|
+
objectOf: createObjectOfTypeChecker,
|
|
3586
|
+
oneOf: createEnumTypeChecker,
|
|
3587
|
+
oneOfType: createUnionTypeChecker,
|
|
3588
|
+
shape: createShapeTypeChecker
|
|
3589
|
+
};
|
|
3590
|
+
} else {
|
|
3591
|
+
var productionTypeChecker = function () {
|
|
3592
|
+
invariant(false, 'React.PropTypes type checking code is stripped in production.');
|
|
3593
|
+
};
|
|
3594
|
+
productionTypeChecker.isRequired = productionTypeChecker;
|
|
3595
|
+
var getProductionTypeChecker = function () {
|
|
3596
|
+
return productionTypeChecker;
|
|
3597
|
+
};
|
|
3598
|
+
// Keep in sync with development version above
|
|
3599
|
+
ReactPropTypes = {
|
|
3600
|
+
array: productionTypeChecker,
|
|
3601
|
+
bool: productionTypeChecker,
|
|
3602
|
+
func: productionTypeChecker,
|
|
3603
|
+
number: productionTypeChecker,
|
|
3604
|
+
object: productionTypeChecker,
|
|
3605
|
+
string: productionTypeChecker,
|
|
3606
|
+
symbol: productionTypeChecker,
|
|
3607
|
+
|
|
3608
|
+
any: productionTypeChecker,
|
|
3609
|
+
arrayOf: getProductionTypeChecker,
|
|
3610
|
+
element: productionTypeChecker,
|
|
3611
|
+
instanceOf: getProductionTypeChecker,
|
|
3612
|
+
node: productionTypeChecker,
|
|
3613
|
+
objectOf: getProductionTypeChecker,
|
|
3614
|
+
oneOf: getProductionTypeChecker,
|
|
3615
|
+
oneOfType: getProductionTypeChecker,
|
|
3616
|
+
shape: getProductionTypeChecker
|
|
3617
|
+
};
|
|
3618
|
+
}
|
|
3619
|
+
|
|
3620
|
+
/**
|
|
3621
|
+
* inlined Object.is polyfill to avoid requiring consumers ship their own
|
|
3622
|
+
* https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/is
|
|
3623
|
+
*/
|
|
3624
|
+
/*eslint-disable no-self-compare*/
|
|
3625
|
+
function is(x, y) {
|
|
3626
|
+
// SameValue algorithm
|
|
3627
|
+
if (x === y) {
|
|
3628
|
+
// Steps 1-5, 7-10
|
|
3629
|
+
// Steps 6.b-6.e: +0 != -0
|
|
3630
|
+
return x !== 0 || 1 / x === 1 / y;
|
|
3631
|
+
} else {
|
|
3632
|
+
// Step 6.a: NaN == NaN
|
|
3633
|
+
return x !== x && y !== y;
|
|
3634
|
+
}
|
|
3635
|
+
}
|
|
3636
|
+
/*eslint-enable no-self-compare*/
|
|
3637
|
+
|
|
3638
|
+
/**
|
|
3639
|
+
* We use an Error-like object for backward compatibility as people may call
|
|
3640
|
+
* PropTypes directly and inspect their output. However, we don't use real
|
|
3641
|
+
* Errors anymore. We don't inspect their stack anyway, and creating them
|
|
3642
|
+
* is prohibitively expensive if they are created too often, such as what
|
|
3643
|
+
* happens in oneOfType() for any type before the one that matched.
|
|
3644
|
+
*/
|
|
3645
|
+
function PropTypeError(message) {
|
|
3646
|
+
this.message = message;
|
|
3647
|
+
this.stack = '';
|
|
3648
|
+
}
|
|
3649
|
+
// Make `instanceof Error` still work for returned errors.
|
|
3650
|
+
PropTypeError.prototype = Error.prototype;
|
|
3651
|
+
|
|
3652
|
+
function createChainableTypeChecker(validate) {
|
|
3653
|
+
if ("development" !== 'production') {
|
|
3654
|
+
var manualPropTypeCallCache = {};
|
|
3655
|
+
}
|
|
3656
|
+
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
3657
|
+
componentName = componentName || ANONYMOUS;
|
|
3658
|
+
propFullName = propFullName || propName;
|
|
3659
|
+
if ("development" !== 'production') {
|
|
3660
|
+
if (secret !== ReactPropTypesSecret && typeof console !== 'undefined') {
|
|
3661
|
+
var cacheKey = componentName + ':' + propName;
|
|
3662
|
+
if (!manualPropTypeCallCache[cacheKey]) {
|
|
3663
|
+
"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;
|
|
3664
|
+
manualPropTypeCallCache[cacheKey] = true;
|
|
3665
|
+
}
|
|
3666
|
+
}
|
|
3667
|
+
}
|
|
3668
|
+
if (props[propName] == null) {
|
|
3669
|
+
if (isRequired) {
|
|
3670
|
+
if (props[propName] === null) {
|
|
3671
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required ' + ('in `' + componentName + '`, but its value is `null`.'));
|
|
3672
|
+
}
|
|
3673
|
+
return new PropTypeError('The ' + location + ' `' + propFullName + '` is marked as required in ' + ('`' + componentName + '`, but its value is `undefined`.'));
|
|
3674
|
+
}
|
|
3675
|
+
return null;
|
|
3676
|
+
} else {
|
|
3677
|
+
return validate(props, propName, componentName, location, propFullName);
|
|
3678
|
+
}
|
|
3679
|
+
}
|
|
3680
|
+
|
|
3681
|
+
var chainedCheckType = checkType.bind(null, false);
|
|
3682
|
+
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
3683
|
+
|
|
3684
|
+
return chainedCheckType;
|
|
3685
|
+
}
|
|
3686
|
+
|
|
3687
|
+
function createPrimitiveTypeChecker(expectedType) {
|
|
3688
|
+
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
3689
|
+
var propValue = props[propName];
|
|
3690
|
+
var propType = getPropType(propValue);
|
|
3691
|
+
if (propType !== expectedType) {
|
|
3692
|
+
// `propValue` being instance of, say, date/regexp, pass the 'object'
|
|
3693
|
+
// check, but we can offer a more precise error message here rather than
|
|
3694
|
+
// 'of type `object`'.
|
|
3695
|
+
var preciseType = getPreciseType(propValue);
|
|
3696
|
+
|
|
3697
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'));
|
|
3698
|
+
}
|
|
3699
|
+
return null;
|
|
3700
|
+
}
|
|
3701
|
+
return createChainableTypeChecker(validate);
|
|
3702
|
+
}
|
|
3703
|
+
|
|
3704
|
+
function createAnyTypeChecker() {
|
|
3705
|
+
return createChainableTypeChecker(emptyFunction.thatReturnsNull);
|
|
3706
|
+
}
|
|
3707
|
+
|
|
3708
|
+
function createArrayOfTypeChecker(typeChecker) {
|
|
3709
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3710
|
+
if (typeof typeChecker !== 'function') {
|
|
3711
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside arrayOf.');
|
|
3712
|
+
}
|
|
3713
|
+
var propValue = props[propName];
|
|
3714
|
+
if (!Array.isArray(propValue)) {
|
|
3715
|
+
var propType = getPropType(propValue);
|
|
3716
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an array.'));
|
|
3717
|
+
}
|
|
3718
|
+
for (var i = 0; i < propValue.length; i++) {
|
|
3719
|
+
var error = typeChecker(propValue, i, componentName, location, propFullName + '[' + i + ']', ReactPropTypesSecret);
|
|
3720
|
+
if (error instanceof Error) {
|
|
3721
|
+
return error;
|
|
3722
|
+
}
|
|
3723
|
+
}
|
|
3724
|
+
return null;
|
|
3725
|
+
}
|
|
3726
|
+
return createChainableTypeChecker(validate);
|
|
3727
|
+
}
|
|
3728
|
+
|
|
3729
|
+
function createElementTypeChecker() {
|
|
3730
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3731
|
+
var propValue = props[propName];
|
|
3732
|
+
if (!isValidElement(propValue)) {
|
|
3733
|
+
var propType = getPropType(propValue);
|
|
3734
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected a single ReactElement.'));
|
|
3735
|
+
}
|
|
3736
|
+
return null;
|
|
3737
|
+
}
|
|
3738
|
+
return createChainableTypeChecker(validate);
|
|
3739
|
+
}
|
|
3740
|
+
|
|
3741
|
+
function createInstanceTypeChecker(expectedClass) {
|
|
3742
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3743
|
+
if (!(props[propName] instanceof expectedClass)) {
|
|
3744
|
+
var expectedClassName = expectedClass.name || ANONYMOUS;
|
|
3745
|
+
var actualClassName = getClassName(props[propName]);
|
|
3746
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + actualClassName + '` supplied to `' + componentName + '`, expected ') + ('instance of `' + expectedClassName + '`.'));
|
|
3747
|
+
}
|
|
3748
|
+
return null;
|
|
3749
|
+
}
|
|
3750
|
+
return createChainableTypeChecker(validate);
|
|
3751
|
+
}
|
|
3752
|
+
|
|
3753
|
+
function createEnumTypeChecker(expectedValues) {
|
|
3754
|
+
if (!Array.isArray(expectedValues)) {
|
|
3755
|
+
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOf, expected an instance of array.') : void 0;
|
|
3756
|
+
return emptyFunction.thatReturnsNull;
|
|
3757
|
+
}
|
|
3758
|
+
|
|
3759
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3760
|
+
var propValue = props[propName];
|
|
3761
|
+
for (var i = 0; i < expectedValues.length; i++) {
|
|
3762
|
+
if (is(propValue, expectedValues[i])) {
|
|
3763
|
+
return null;
|
|
3764
|
+
}
|
|
3765
|
+
}
|
|
3766
|
+
|
|
3767
|
+
var valuesString = JSON.stringify(expectedValues);
|
|
3768
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of value `' + propValue + '` ' + ('supplied to `' + componentName + '`, expected one of ' + valuesString + '.'));
|
|
3769
|
+
}
|
|
3770
|
+
return createChainableTypeChecker(validate);
|
|
3771
|
+
}
|
|
3772
|
+
|
|
3773
|
+
function createObjectOfTypeChecker(typeChecker) {
|
|
3774
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3775
|
+
if (typeof typeChecker !== 'function') {
|
|
3776
|
+
return new PropTypeError('Property `' + propFullName + '` of component `' + componentName + '` has invalid PropType notation inside objectOf.');
|
|
3777
|
+
}
|
|
3778
|
+
var propValue = props[propName];
|
|
3779
|
+
var propType = getPropType(propValue);
|
|
3780
|
+
if (propType !== 'object') {
|
|
3781
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
3782
|
+
}
|
|
3783
|
+
for (var key in propValue) {
|
|
3784
|
+
if (propValue.hasOwnProperty(key)) {
|
|
3785
|
+
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
3786
|
+
if (error instanceof Error) {
|
|
3787
|
+
return error;
|
|
3788
|
+
}
|
|
3789
|
+
}
|
|
3790
|
+
}
|
|
3791
|
+
return null;
|
|
3792
|
+
}
|
|
3793
|
+
return createChainableTypeChecker(validate);
|
|
3794
|
+
}
|
|
3795
|
+
|
|
3796
|
+
function createUnionTypeChecker(arrayOfTypeCheckers) {
|
|
3797
|
+
if (!Array.isArray(arrayOfTypeCheckers)) {
|
|
3798
|
+
"development" !== 'production' ? warning(false, 'Invalid argument supplied to oneOfType, expected an instance of array.') : void 0;
|
|
3799
|
+
return emptyFunction.thatReturnsNull;
|
|
3800
|
+
}
|
|
3801
|
+
|
|
3802
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3803
|
+
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
3804
|
+
var checker = arrayOfTypeCheckers[i];
|
|
3805
|
+
if (checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret) == null) {
|
|
3806
|
+
return null;
|
|
3807
|
+
}
|
|
3808
|
+
}
|
|
3809
|
+
|
|
3810
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`.'));
|
|
3811
|
+
}
|
|
3812
|
+
return createChainableTypeChecker(validate);
|
|
3813
|
+
}
|
|
3814
|
+
|
|
3815
|
+
function createNodeChecker() {
|
|
3816
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3817
|
+
if (!isNode(props[propName])) {
|
|
3818
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`, expected a ReactNode.'));
|
|
3819
|
+
}
|
|
3820
|
+
return null;
|
|
3821
|
+
}
|
|
3822
|
+
return createChainableTypeChecker(validate);
|
|
3823
|
+
}
|
|
3824
|
+
|
|
3825
|
+
function createShapeTypeChecker(shapeTypes) {
|
|
3826
|
+
function validate(props, propName, componentName, location, propFullName) {
|
|
3827
|
+
var propValue = props[propName];
|
|
3828
|
+
var propType = getPropType(propValue);
|
|
3829
|
+
if (propType !== 'object') {
|
|
3830
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
3831
|
+
}
|
|
3832
|
+
for (var key in shapeTypes) {
|
|
3833
|
+
var checker = shapeTypes[key];
|
|
3834
|
+
if (!checker) {
|
|
3835
|
+
continue;
|
|
3836
|
+
}
|
|
3837
|
+
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret);
|
|
3838
|
+
if (error) {
|
|
3839
|
+
return error;
|
|
3840
|
+
}
|
|
3841
|
+
}
|
|
3842
|
+
return null;
|
|
3843
|
+
}
|
|
3844
|
+
return createChainableTypeChecker(validate);
|
|
3845
|
+
}
|
|
3846
|
+
|
|
3847
|
+
function isNode(propValue) {
|
|
3848
|
+
switch (typeof propValue) {
|
|
3849
|
+
case 'number':
|
|
3850
|
+
case 'string':
|
|
3851
|
+
case 'undefined':
|
|
3852
|
+
return true;
|
|
3853
|
+
case 'boolean':
|
|
3854
|
+
return !propValue;
|
|
3855
|
+
case 'object':
|
|
3856
|
+
if (Array.isArray(propValue)) {
|
|
3857
|
+
return propValue.every(isNode);
|
|
3858
|
+
}
|
|
3859
|
+
if (propValue === null || isValidElement(propValue)) {
|
|
3860
|
+
return true;
|
|
3861
|
+
}
|
|
3862
|
+
|
|
3863
|
+
var iteratorFn = getIteratorFn(propValue);
|
|
3864
|
+
if (iteratorFn) {
|
|
3865
|
+
var iterator = iteratorFn.call(propValue);
|
|
3866
|
+
var step;
|
|
3867
|
+
if (iteratorFn !== propValue.entries) {
|
|
3868
|
+
while (!(step = iterator.next()).done) {
|
|
3869
|
+
if (!isNode(step.value)) {
|
|
3870
|
+
return false;
|
|
3871
|
+
}
|
|
3872
|
+
}
|
|
3873
|
+
} else {
|
|
3874
|
+
// Iterator will provide entry [k,v] tuples rather than values.
|
|
3875
|
+
while (!(step = iterator.next()).done) {
|
|
3876
|
+
var entry = step.value;
|
|
3877
|
+
if (entry) {
|
|
3878
|
+
if (!isNode(entry[1])) {
|
|
3879
|
+
return false;
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
}
|
|
3883
|
+
}
|
|
3884
|
+
} else {
|
|
3885
|
+
return false;
|
|
3886
|
+
}
|
|
3887
|
+
|
|
3888
|
+
return true;
|
|
3889
|
+
default:
|
|
3890
|
+
return false;
|
|
3891
|
+
}
|
|
3892
|
+
}
|
|
3893
|
+
|
|
3894
|
+
function isSymbol(propType, propValue) {
|
|
3895
|
+
// Native Symbol.
|
|
3896
|
+
if (propType === 'symbol') {
|
|
3897
|
+
return true;
|
|
3898
|
+
}
|
|
3899
|
+
|
|
3900
|
+
// 19.4.3.5 Symbol.prototype[@@toStringTag] === 'Symbol'
|
|
3901
|
+
if (propValue['@@toStringTag'] === 'Symbol') {
|
|
3902
|
+
return true;
|
|
3903
|
+
}
|
|
3904
|
+
|
|
3905
|
+
// Fallback for non-spec compliant Symbols which are polyfilled.
|
|
3906
|
+
if (typeof Symbol === 'function' && propValue instanceof Symbol) {
|
|
3907
|
+
return true;
|
|
3908
|
+
}
|
|
3909
|
+
|
|
3910
|
+
return false;
|
|
3911
|
+
}
|
|
3912
|
+
|
|
3913
|
+
// Equivalent of `typeof` but with special handling for array and regexp.
|
|
3914
|
+
function getPropType(propValue) {
|
|
3915
|
+
var propType = typeof propValue;
|
|
3916
|
+
if (Array.isArray(propValue)) {
|
|
3917
|
+
return 'array';
|
|
3918
|
+
}
|
|
3919
|
+
if (propValue instanceof RegExp) {
|
|
3920
|
+
// Old webkits (at least until Android 4.0) return 'function' rather than
|
|
3921
|
+
// 'object' for typeof a RegExp. We'll normalize this here so that /bla/
|
|
3922
|
+
// passes PropTypes.object.
|
|
3923
|
+
return 'object';
|
|
3924
|
+
}
|
|
3925
|
+
if (isSymbol(propType, propValue)) {
|
|
3926
|
+
return 'symbol';
|
|
3927
|
+
}
|
|
3928
|
+
return propType;
|
|
3929
|
+
}
|
|
3930
|
+
|
|
3931
|
+
// This handles more types than `getPropType`. Only used for error messages.
|
|
3932
|
+
// See `createPrimitiveTypeChecker`.
|
|
3933
|
+
function getPreciseType(propValue) {
|
|
3934
|
+
var propType = getPropType(propValue);
|
|
3935
|
+
if (propType === 'object') {
|
|
3936
|
+
if (propValue instanceof Date) {
|
|
3937
|
+
return 'date';
|
|
3938
|
+
} else if (propValue instanceof RegExp) {
|
|
3939
|
+
return 'regexp';
|
|
3940
|
+
}
|
|
3941
|
+
}
|
|
3942
|
+
return propType;
|
|
3943
|
+
}
|
|
3944
|
+
|
|
3945
|
+
// Returns class name of the object, if any.
|
|
3946
|
+
function getClassName(propValue) {
|
|
3947
|
+
if (!propValue.constructor || !propValue.constructor.name) {
|
|
3948
|
+
return ANONYMOUS;
|
|
3949
|
+
}
|
|
3950
|
+
return propValue.constructor.name;
|
|
3951
|
+
}
|
|
3952
|
+
|
|
3953
|
+
ReactPropTypes.checkPropTypes = checkPropTypes;
|
|
3954
|
+
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
3955
|
+
|
|
3956
|
+
return ReactPropTypes;
|
|
3957
|
+
};
|
|
3958
|
+
|
|
3959
|
+
},{"27":27,"29":29,"30":30,"32":32,"34":34}],34:[function(_dereq_,module,exports){
|
|
3960
|
+
/**
|
|
3961
|
+
* Copyright 2013-present, Facebook, Inc.
|
|
3962
|
+
* All rights reserved.
|
|
3963
|
+
*
|
|
3964
|
+
* This source code is licensed under the BSD-style license found in the
|
|
3965
|
+
* LICENSE file in the root directory of this source tree. An additional grant
|
|
3966
|
+
* of patent rights can be found in the PATENTS file in the same directory.
|
|
3967
|
+
*/
|
|
3968
|
+
|
|
3969
|
+
'use strict';
|
|
3970
|
+
|
|
3971
|
+
const ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
3972
|
+
|
|
3973
|
+
module.exports = ReactPropTypesSecret;
|
|
3974
|
+
|
|
3755
3975
|
},{}]},{},[18])(18)
|
|
3756
3976
|
});
|